From 63d88581be71e95c98fb98afef2f94cd2ce0df97 Mon Sep 17 00:00:00 2001 From: Owl Bot Date: Thu, 23 Jun 2022 02:39:11 +0000 Subject: [PATCH 1/4] feat: Enable REST transport for most of Java and Go clients PiperOrigin-RevId: 456641589 Source-Link: https://github.com/googleapis/googleapis/commit/8a251f5225b789b2383207ffd978f6aa3d77fcf7 Source-Link: https://github.com/googleapis/googleapis-gen/commit/4ca52a529cf01308d9714950edffbea3560cfbdb Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiNGNhNTJhNTI5Y2YwMTMwOGQ5NzE0OTUwZWRmZmJlYTM1NjBjZmJkYiJ9 --- .../v1beta3/DocumentProcessorServiceGrpc.java | 1359 - .../v1/DocumentProcessorServiceClient.java | 44 +- .../v1/DocumentProcessorServiceSettings.java | 30 +- .../cloud/documentai/v1/gapic_metadata.json | 0 .../cloud/documentai/v1/package-info.java | 0 .../v1/stub/DocumentProcessorServiceStub.java | 6 +- .../DocumentProcessorServiceStubSettings.java | 59 +- ...cumentProcessorServiceCallableFactory.java | 0 .../GrpcDocumentProcessorServiceStub.java | 1 + ...cumentProcessorServiceCallableFactory.java | 105 + .../HttpJsonDocumentProcessorServiceStub.java | 366 + ...entProcessorServiceClientHttpJsonTest.java | 356 + .../DocumentProcessorServiceClientTest.java | 0 .../v1/MockDocumentProcessorService.java | 0 .../v1/MockDocumentProcessorServiceImpl.java | 0 .../v1/DocumentProcessorServiceGrpc.java | 414 +- .../v1/BatchDocumentsInputConfig.java | 495 +- .../BatchDocumentsInputConfigOrBuilder.java | 34 +- .../documentai/v1/BatchProcessMetadata.java | 1685 +- .../v1/BatchProcessMetadataOrBuilder.java | 92 +- .../documentai/v1/BatchProcessRequest.java | 603 +- .../v1/BatchProcessRequestOrBuilder.java | 54 +- .../documentai/v1/BatchProcessResponse.java | 235 +- .../v1/BatchProcessResponseOrBuilder.java | 9 + .../cloud/documentai/v1/BoundingPoly.java | 505 +- .../documentai/v1/BoundingPolyOrBuilder.java | 51 +- .../v1/CommonOperationMetadata.java | 665 +- .../v1/CommonOperationMetadataOrBuilder.java | 49 +- .../google/cloud/documentai/v1/Document.java | 25005 +++++---------- .../v1/DocumentAiProcessorService.java | 274 + .../cloud/documentai/v1/DocumentIoProto.java | 133 + .../documentai/v1/DocumentOrBuilder.java | 175 +- .../documentai/v1/DocumentOutputConfig.java | 801 +- .../v1/DocumentOutputConfigOrBuilder.java | 38 +- .../cloud/documentai/v1/DocumentProto.java | 625 + .../cloud/documentai/v1/GcsDocument.java | 380 +- .../documentai/v1/GcsDocumentOrBuilder.java | 36 +- .../cloud/documentai/v1/GcsDocuments.java | 371 +- .../documentai/v1/GcsDocumentsOrBuilder.java | 36 +- .../google/cloud/documentai/v1/GcsPrefix.java | 298 +- .../documentai/v1/GcsPrefixOrBuilder.java | 29 + .../cloud/documentai/v1/GeometryProto.java | 80 + .../documentai/v1/HumanReviewConfigName.java | 0 .../documentai/v1/HumanReviewStatus.java | 535 +- .../v1/HumanReviewStatusOrBuilder.java | 42 +- .../cloud/documentai/v1/NormalizedVertex.java | 306 +- .../v1/NormalizedVertexOrBuilder.java | 29 + .../documentai/v1/OperationMetadataProto.java | 64 + .../cloud/documentai/v1/ProcessRequest.java | 616 +- .../v1/ProcessRequestOrBuilder.java | 54 +- .../cloud/documentai/v1/ProcessResponse.java | 429 +- .../v1/ProcessResponseOrBuilder.java | 34 +- .../cloud/documentai/v1/ProcessorName.java | 0 .../cloud/documentai/v1/RawDocument.java | 337 +- .../documentai/v1/RawDocumentOrBuilder.java | 30 +- .../v1/ReviewDocumentOperationMetadata.java | 448 +- ...iewDocumentOperationMetadataOrBuilder.java | 35 +- .../documentai/v1/ReviewDocumentRequest.java | 652 +- .../v1/ReviewDocumentRequestOrBuilder.java | 52 +- .../documentai/v1/ReviewDocumentResponse.java | 314 +- .../v1/ReviewDocumentResponseOrBuilder.java | 29 + .../google/cloud/documentai/v1/Vertex.java | 289 +- .../cloud/documentai/v1/VertexOrBuilder.java | 29 + .../google/cloud/documentai/v1/document.proto | 0 .../cloud/documentai/v1/document_io.proto | 0 .../v1/document_processor_service.proto | 0 .../google/cloud/documentai/v1/geometry.proto | 0 .../documentai/v1/operation_metadata.proto | 0 .../AsyncBatchProcessDocuments.java | 53 + .../AsyncBatchProcessDocumentsLRO.java | 56 + .../SyncBatchProcessDocuments.java | 50 + ...yncBatchProcessDocumentsProcessorname.java | 41 + .../SyncBatchProcessDocumentsString.java | 41 + .../SyncCreateSetCredentialsProvider.java | 42 + .../SyncCreateSetCredentialsProvider1.java | 41 + .../create/SyncCreateSetEndpoint.java | 39 + .../processdocument/AsyncProcessDocument.java | 49 + .../processdocument/SyncProcessDocument.java | 45 + .../SyncProcessDocumentProcessorname.java | 40 + .../SyncProcessDocumentString.java | 40 + .../reviewdocument/AsyncReviewDocument.java | 50 + .../AsyncReviewDocumentLRO.java | 51 + .../reviewdocument/SyncReviewDocument.java | 47 + ...ncReviewDocumentHumanreviewconfigname.java | 42 + .../SyncReviewDocumentString.java | 42 + .../processdocument/SyncProcessDocument.java | 47 + .../processdocument/SyncProcessDocument.java | 47 + .../DocumentUnderstandingServiceClient.java | 6 +- .../DocumentUnderstandingServiceSettings.java | 7 +- .../documentai/v1beta1/gapic_metadata.json | 0 .../documentai/v1beta1/package-info.java | 0 .../DocumentUnderstandingServiceStub.java | 0 ...umentUnderstandingServiceStubSettings.java | 6 +- ...ntUnderstandingServiceCallableFactory.java | 0 .../GrpcDocumentUnderstandingServiceStub.java | 1 + ...ocumentUnderstandingServiceClientTest.java | 0 .../MockDocumentUnderstandingService.java | 0 .../MockDocumentUnderstandingServiceImpl.java | 0 .../DocumentUnderstandingServiceGrpc.java | 221 +- .../v1beta1/BatchProcessDocumentsRequest.java | 582 +- ...BatchProcessDocumentsRequestOrBuilder.java | 62 +- .../BatchProcessDocumentsResponse.java | 426 +- ...atchProcessDocumentsResponseOrBuilder.java | 33 +- .../documentai/v1beta1/BoundingPoly.java | 608 +- .../v1beta1/BoundingPolyOrBuilder.java | 66 +- .../cloud/documentai/v1beta1/Document.java | 16907 ++++------ .../documentai/v1beta1/DocumentAiProto.java | 300 + .../documentai/v1beta1/DocumentOrBuilder.java | 153 +- .../documentai/v1beta1/DocumentProto.java | 422 + .../v1beta1/EntityExtractionParams.java | 351 +- .../EntityExtractionParamsOrBuilder.java | 30 +- .../v1beta1/FormExtractionParams.java | 573 +- .../FormExtractionParamsOrBuilder.java | 60 +- .../documentai/v1beta1/GcsDestination.java | 297 +- .../v1beta1/GcsDestinationOrBuilder.java | 21 + .../cloud/documentai/v1beta1/GcsSource.java | 287 +- .../v1beta1/GcsSourceOrBuilder.java | 21 + .../documentai/v1beta1/GeometryProto.java | 84 + .../cloud/documentai/v1beta1/InputConfig.java | 448 +- .../v1beta1/InputConfigOrBuilder.java | 35 +- .../documentai/v1beta1/KeyValuePairHint.java | 422 +- .../v1beta1/KeyValuePairHintOrBuilder.java | 45 +- .../documentai/v1beta1/NormalizedVertex.java | 313 +- .../v1beta1/NormalizedVertexOrBuilder.java | 29 + .../cloud/documentai/v1beta1/OcrParams.java | 333 +- .../v1beta1/OcrParamsOrBuilder.java | 36 +- .../documentai/v1beta1/OperationMetadata.java | 674 +- .../v1beta1/OperationMetadataOrBuilder.java | 49 +- .../documentai/v1beta1/OutputConfig.java | 415 +- .../v1beta1/OutputConfigOrBuilder.java | 29 +- .../v1beta1/ProcessDocumentRequest.java | 1161 +- .../ProcessDocumentRequestOrBuilder.java | 126 +- .../v1beta1/ProcessDocumentResponse.java | 436 +- .../ProcessDocumentResponseOrBuilder.java | 34 +- .../documentai/v1beta1/TableBoundHint.java | 367 +- .../v1beta1/TableBoundHintOrBuilder.java | 29 +- .../v1beta1/TableExtractionParams.java | 689 +- .../TableExtractionParamsOrBuilder.java | 83 +- .../cloud/documentai/v1beta1/Vertex.java | 293 +- .../documentai/v1beta1/VertexOrBuilder.java | 29 + .../cloud/documentai/v1beta1/document.proto | 0 .../v1beta1/document_understanding.proto | 0 .../cloud/documentai/v1beta1/geometry.proto | 0 .../AsyncBatchProcessDocuments.java | 50 + .../AsyncBatchProcessDocumentsLRO.java | 53 + .../SyncBatchProcessDocuments.java | 47 + ...ssDocumentsListprocessdocumentrequest.java | 43 + .../SyncCreateSetCredentialsProvider.java | 42 + .../create/SyncCreateSetEndpoint.java | 39 + .../SyncBatchProcessDocuments.java | 47 + .../SyncBatchProcessDocuments.java | 47 + .../DocumentUnderstandingServiceClient.java | 6 +- .../DocumentUnderstandingServiceSettings.java | 7 +- .../documentai/v1beta2/gapic_metadata.json | 0 .../documentai/v1beta2/package-info.java | 0 .../DocumentUnderstandingServiceStub.java | 0 ...umentUnderstandingServiceStubSettings.java | 6 +- ...ntUnderstandingServiceCallableFactory.java | 0 .../GrpcDocumentUnderstandingServiceStub.java | 1 + ...ocumentUnderstandingServiceClientTest.java | 0 .../MockDocumentUnderstandingService.java | 0 .../MockDocumentUnderstandingServiceImpl.java | 0 .../DocumentUnderstandingServiceGrpc.java | 330 +- .../documentai/v1beta2/AutoMlParams.java | 308 +- .../v1beta2/AutoMlParamsOrBuilder.java | 27 +- .../v1beta2/BatchProcessDocumentsRequest.java | 582 +- ...BatchProcessDocumentsRequestOrBuilder.java | 62 +- .../BatchProcessDocumentsResponse.java | 426 +- ...atchProcessDocumentsResponseOrBuilder.java | 33 +- .../documentai/v1beta2/BoundingPoly.java | 608 +- .../v1beta2/BoundingPolyOrBuilder.java | 66 +- .../cloud/documentai/v1beta2/Document.java | 19394 ++++------- .../documentai/v1beta2/DocumentAiProto.java | 324 + .../documentai/v1beta2/DocumentOrBuilder.java | 171 +- .../documentai/v1beta2/DocumentProto.java | 474 + .../v1beta2/EntityExtractionParams.java | 351 +- .../EntityExtractionParamsOrBuilder.java | 30 +- .../v1beta2/FormExtractionParams.java | 573 +- .../FormExtractionParamsOrBuilder.java | 60 +- .../documentai/v1beta2/GcsDestination.java | 297 +- .../v1beta2/GcsDestinationOrBuilder.java | 21 + .../cloud/documentai/v1beta2/GcsSource.java | 287 +- .../v1beta2/GcsSourceOrBuilder.java | 21 + .../documentai/v1beta2/GeometryProto.java | 84 + .../cloud/documentai/v1beta2/InputConfig.java | 507 +- .../v1beta2/InputConfigOrBuilder.java | 41 +- .../documentai/v1beta2/KeyValuePairHint.java | 422 +- .../v1beta2/KeyValuePairHintOrBuilder.java | 45 +- .../documentai/v1beta2/NormalizedVertex.java | 313 +- .../v1beta2/NormalizedVertexOrBuilder.java | 29 + .../cloud/documentai/v1beta2/OcrParams.java | 333 +- .../v1beta2/OcrParamsOrBuilder.java | 36 +- .../documentai/v1beta2/OperationMetadata.java | 674 +- .../v1beta2/OperationMetadataOrBuilder.java | 49 +- .../documentai/v1beta2/OutputConfig.java | 415 +- .../v1beta2/OutputConfigOrBuilder.java | 29 +- .../v1beta2/ProcessDocumentRequest.java | 1338 +- .../ProcessDocumentRequestOrBuilder.java | 143 +- .../v1beta2/ProcessDocumentResponse.java | 436 +- .../ProcessDocumentResponseOrBuilder.java | 34 +- .../documentai/v1beta2/TableBoundHint.java | 367 +- .../v1beta2/TableBoundHintOrBuilder.java | 29 +- .../v1beta2/TableExtractionParams.java | 689 +- .../TableExtractionParamsOrBuilder.java | 83 +- .../cloud/documentai/v1beta2/Vertex.java | 293 +- .../documentai/v1beta2/VertexOrBuilder.java | 29 + .../cloud/documentai/v1beta2/document.proto | 0 .../v1beta2/document_understanding.proto | 0 .../cloud/documentai/v1beta2/geometry.proto | 0 .../AsyncBatchProcessDocuments.java | 50 + .../AsyncBatchProcessDocumentsLRO.java | 53 + .../SyncBatchProcessDocuments.java | 47 + ...ssDocumentsListprocessdocumentrequest.java | 43 + .../SyncCreateSetCredentialsProvider.java | 42 + .../create/SyncCreateSetEndpoint.java | 39 + .../processdocument/AsyncProcessDocument.java | 62 + .../processdocument/SyncProcessDocument.java | 58 + .../processdocument/SyncProcessDocument.java | 47 + .../processdocument/SyncProcessDocument.java | 47 + .../DocumentProcessorServiceClient.java | 54 +- .../DocumentProcessorServiceSettings.java | 30 +- .../documentai/v1beta3/gapic_metadata.json | 0 .../documentai/v1beta3/package-info.java | 0 .../stub/DocumentProcessorServiceStub.java | 6 +- .../DocumentProcessorServiceStubSettings.java | 59 +- ...cumentProcessorServiceCallableFactory.java | 0 .../GrpcDocumentProcessorServiceStub.java | 1 + ...cumentProcessorServiceCallableFactory.java | 105 + .../HttpJsonDocumentProcessorServiceStub.java | 766 + ...entProcessorServiceClientHttpJsonTest.java | 851 + .../DocumentProcessorServiceClientTest.java | 0 .../v1beta3/MockDocumentProcessorService.java | 0 .../MockDocumentProcessorServiceImpl.java | 0 .../v1beta3/DocumentProcessorServiceGrpc.java | 1022 + .../v1beta3/BatchDocumentsInputConfig.java | 501 +- .../BatchDocumentsInputConfigOrBuilder.java | 34 +- .../v1beta3/BatchProcessMetadata.java | 1869 +- .../BatchProcessMetadataOrBuilder.java | 93 +- .../v1beta3/BatchProcessRequest.java | 2064 +- .../v1beta3/BatchProcessRequestOrBuilder.java | 140 +- .../v1beta3/BatchProcessResponse.java | 238 +- .../BatchProcessResponseOrBuilder.java | 9 + .../documentai/v1beta3/BoundingPoly.java | 608 +- .../v1beta3/BoundingPolyOrBuilder.java | 66 +- .../v1beta3/CommonOperationMetadata.java | 668 +- .../CommonOperationMetadataOrBuilder.java | 49 +- .../v1beta3/CreateProcessorRequest.java | 488 +- .../CreateProcessorRequestOrBuilder.java | 55 +- .../v1beta3/DeleteProcessorMetadata.java | 355 +- .../DeleteProcessorMetadataOrBuilder.java | 26 +- .../v1beta3/DeleteProcessorRequest.java | 342 +- .../DeleteProcessorRequestOrBuilder.java | 29 + .../v1beta3/DisableProcessorMetadata.java | 362 +- .../DisableProcessorMetadataOrBuilder.java | 26 +- .../v1beta3/DisableProcessorRequest.java | 342 +- .../DisableProcessorRequestOrBuilder.java | 29 + .../v1beta3/DisableProcessorResponse.java | 245 +- .../DisableProcessorResponseOrBuilder.java | 9 + .../cloud/documentai/v1beta3/Document.java | 26588 ++++++---------- .../v1beta3/DocumentAiProcessor.java | 87 + .../v1beta3/DocumentAiProcessorService.java | 534 + .../v1beta3/DocumentAiProcessorType.java | 84 + .../documentai/v1beta3/DocumentIoProto.java | 137 + .../documentai/v1beta3/DocumentOrBuilder.java | 186 +- .../v1beta3/DocumentOutputConfig.java | 902 +- .../DocumentOutputConfigOrBuilder.java | 38 + .../documentai/v1beta3/DocumentProto.java | 637 + .../v1beta3/EnableProcessorMetadata.java | 355 +- .../EnableProcessorMetadataOrBuilder.java | 26 +- .../v1beta3/EnableProcessorRequest.java | 342 +- .../EnableProcessorRequestOrBuilder.java | 29 + .../v1beta3/EnableProcessorResponse.java | 238 +- .../EnableProcessorResponseOrBuilder.java | 9 + .../v1beta3/FetchProcessorTypesRequest.java | 360 +- .../FetchProcessorTypesRequestOrBuilder.java | 31 + .../v1beta3/FetchProcessorTypesResponse.java | 389 +- .../FetchProcessorTypesResponseOrBuilder.java | 36 +- .../cloud/documentai/v1beta3/GcsDocument.java | 383 +- .../v1beta3/GcsDocumentOrBuilder.java | 36 +- .../documentai/v1beta3/GcsDocuments.java | 376 +- .../v1beta3/GcsDocumentsOrBuilder.java | 36 +- .../cloud/documentai/v1beta3/GcsPrefix.java | 301 +- .../v1beta3/GcsPrefixOrBuilder.java | 29 + .../documentai/v1beta3/GeometryProto.java | 84 + .../v1beta3/HumanReviewConfigName.java | 0 .../documentai/v1beta3/HumanReviewStatus.java | 547 +- .../v1beta3/HumanReviewStatusOrBuilder.java | 42 +- .../v1beta3/ListProcessorsRequest.java | 455 +- .../ListProcessorsRequestOrBuilder.java | 47 +- .../v1beta3/ListProcessorsResponse.java | 461 +- .../ListProcessorsResponseOrBuilder.java | 45 +- .../documentai/v1beta3/LocationName.java | 0 .../documentai/v1beta3/NormalizedVertex.java | 313 +- .../v1beta3/NormalizedVertexOrBuilder.java | 29 + .../v1beta3/OperationMetadataProto.java | 68 + .../documentai/v1beta3/ProcessRequest.java | 774 +- .../v1beta3/ProcessRequestOrBuilder.java | 79 +- .../documentai/v1beta3/ProcessResponse.java | 566 +- .../v1beta3/ProcessResponseOrBuilder.java | 55 +- .../cloud/documentai/v1beta3/Processor.java | 1043 +- .../documentai/v1beta3/ProcessorName.java | 0 .../v1beta3/ProcessorOrBuilder.java | 110 +- .../documentai/v1beta3/ProcessorType.java | 1110 +- .../documentai/v1beta3/ProcessorTypeName.java | 0 .../v1beta3/ProcessorTypeOrBuilder.java | 86 +- .../cloud/documentai/v1beta3/RawDocument.java | 340 +- .../v1beta3/RawDocumentOrBuilder.java | 30 +- .../ReviewDocumentOperationMetadata.java | 915 +- ...iewDocumentOperationMetadataOrBuilder.java | 66 +- .../v1beta3/ReviewDocumentRequest.java | 802 +- .../ReviewDocumentRequestOrBuilder.java | 77 +- .../v1beta3/ReviewDocumentResponse.java | 314 +- .../ReviewDocumentResponseOrBuilder.java | 29 + .../cloud/documentai/v1beta3/Vertex.java | 293 +- .../documentai/v1beta3/VertexOrBuilder.java | 29 + .../cloud/documentai/v1beta3/document.proto | 0 .../documentai/v1beta3/document_io.proto | 0 .../v1beta3/document_processor_service.proto | 0 .../cloud/documentai/v1beta3/geometry.proto | 0 .../v1beta3/operation_metadata.proto | 0 .../cloud/documentai/v1beta3/processor.proto | 0 .../documentai/v1beta3/processor_type.proto | 0 .../AsyncBatchProcessDocuments.java | 56 + .../AsyncBatchProcessDocumentsLRO.java | 59 + .../SyncBatchProcessDocuments.java | 53 + ...yncBatchProcessDocumentsProcessorname.java | 41 + .../SyncBatchProcessDocumentsString.java | 41 + .../SyncCreateSetCredentialsProvider.java | 42 + .../SyncCreateSetCredentialsProvider1.java | 41 + .../create/SyncCreateSetEndpoint.java | 39 + .../createprocessor/AsyncCreateProcessor.java | 49 + .../createprocessor/SyncCreateProcessor.java | 45 + ...cCreateProcessorLocationnameProcessor.java | 41 + .../SyncCreateProcessorStringProcessor.java | 41 + .../deleteprocessor/AsyncDeleteProcessor.java | 48 + .../AsyncDeleteProcessorLRO.java | 49 + .../deleteprocessor/SyncDeleteProcessor.java | 44 + .../SyncDeleteProcessorProcessorname.java | 40 + .../SyncDeleteProcessorString.java | 40 + .../AsyncDisableProcessor.java | 48 + .../AsyncDisableProcessorLRO.java | 49 + .../SyncDisableProcessor.java | 45 + .../enableprocessor/AsyncEnableProcessor.java | 48 + .../AsyncEnableProcessorLRO.java | 49 + .../enableprocessor/SyncEnableProcessor.java | 45 + .../AsyncFetchProcessorTypes.java | 48 + .../SyncFetchProcessorTypes.java | 45 + .../SyncFetchProcessorTypesLocationname.java | 41 + .../SyncFetchProcessorTypesString.java | 41 + .../listprocessors/AsyncListProcessors.java | 52 + .../AsyncListProcessorsPaged.java | 60 + .../listprocessors/SyncListProcessors.java | 49 + .../SyncListProcessorsLocationname.java | 42 + .../SyncListProcessorsString.java | 42 + .../processdocument/AsyncProcessDocument.java | 51 + .../processdocument/SyncProcessDocument.java | 47 + .../SyncProcessDocumentProcessorname.java | 40 + .../SyncProcessDocumentString.java | 40 + .../reviewdocument/AsyncReviewDocument.java | 52 + .../AsyncReviewDocumentLRO.java | 53 + .../reviewdocument/SyncReviewDocument.java | 49 + ...ncReviewDocumentHumanreviewconfigname.java | 42 + .../SyncReviewDocumentString.java | 42 + .../processdocument/SyncProcessDocument.java | 47 + .../processdocument/SyncProcessDocument.java | 47 + .../v1/BatchProcessResponseOrBuilder.java | 24 - .../v1/DocumentAiProcessorService.java | 298 - .../cloud/documentai/v1/DocumentIoProto.java | 154 - .../cloud/documentai/v1/DocumentProto.java | 749 - .../documentai/v1/GcsPrefixOrBuilder.java | 50 - .../cloud/documentai/v1/GeometryProto.java | 95 - .../v1/NormalizedVertexOrBuilder.java | 51 - .../documentai/v1/OperationMetadataProto.java | 79 - .../v1/ReviewDocumentResponseOrBuilder.java | 50 - .../cloud/documentai/v1/VertexOrBuilder.java | 51 - .../documentai/v1beta1/DocumentAiProto.java | 335 - .../documentai/v1beta1/DocumentProto.java | 514 - .../v1beta1/GcsDestinationOrBuilder.java | 38 - .../v1beta1/GcsSourceOrBuilder.java | 38 - .../documentai/v1beta1/GeometryProto.java | 101 - .../v1beta1/NormalizedVertexOrBuilder.java | 51 - .../documentai/v1beta1/VertexOrBuilder.java | 51 - .../documentai/v1beta2/DocumentAiProto.java | 362 - .../documentai/v1beta2/DocumentProto.java | 578 - .../v1beta2/GcsDestinationOrBuilder.java | 38 - .../v1beta2/GcsSourceOrBuilder.java | 38 - .../documentai/v1beta2/GeometryProto.java | 101 - .../v1beta2/NormalizedVertexOrBuilder.java | 51 - .../documentai/v1beta2/VertexOrBuilder.java | 51 - .../BatchProcessResponseOrBuilder.java | 24 - .../DeleteProcessorRequestOrBuilder.java | 54 - .../DisableProcessorRequestOrBuilder.java | 54 - .../DisableProcessorResponseOrBuilder.java | 24 - .../v1beta3/DocumentAiProcessor.java | 109 - .../v1beta3/DocumentAiProcessorService.java | 587 - .../v1beta3/DocumentAiProcessorType.java | 102 - .../documentai/v1beta3/DocumentIoProto.java | 160 - .../DocumentOutputConfigOrBuilder.java | 70 - .../documentai/v1beta3/DocumentProto.java | 781 - .../EnableProcessorRequestOrBuilder.java | 54 - .../EnableProcessorResponseOrBuilder.java | 24 - .../FetchProcessorTypesRequestOrBuilder.java | 56 - .../v1beta3/GcsPrefixOrBuilder.java | 50 - .../documentai/v1beta3/GeometryProto.java | 101 - .../v1beta3/NormalizedVertexOrBuilder.java | 51 - .../v1beta3/OperationMetadataProto.java | 83 - .../ReviewDocumentResponseOrBuilder.java | 50 - .../documentai/v1beta3/VertexOrBuilder.java | 51 - 408 files changed, 61572 insertions(+), 99386 deletions(-) delete mode 100644 grpc-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/DocumentProcessorServiceGrpc.java rename {google-cloud-document-ai => owl-bot-staging/v1/google-cloud-document-ai}/src/main/java/com/google/cloud/documentai/v1/DocumentProcessorServiceClient.java (92%) rename {google-cloud-document-ai => owl-bot-staging/v1/google-cloud-document-ai}/src/main/java/com/google/cloud/documentai/v1/DocumentProcessorServiceSettings.java (89%) rename {google-cloud-document-ai => owl-bot-staging/v1/google-cloud-document-ai}/src/main/java/com/google/cloud/documentai/v1/gapic_metadata.json (100%) rename {google-cloud-document-ai => owl-bot-staging/v1/google-cloud-document-ai}/src/main/java/com/google/cloud/documentai/v1/package-info.java (100%) rename {google-cloud-document-ai => owl-bot-staging/v1/google-cloud-document-ai}/src/main/java/com/google/cloud/documentai/v1/stub/DocumentProcessorServiceStub.java (95%) rename {google-cloud-document-ai => owl-bot-staging/v1/google-cloud-document-ai}/src/main/java/com/google/cloud/documentai/v1/stub/DocumentProcessorServiceStubSettings.java (88%) rename {google-cloud-document-ai => owl-bot-staging/v1/google-cloud-document-ai}/src/main/java/com/google/cloud/documentai/v1/stub/GrpcDocumentProcessorServiceCallableFactory.java (100%) rename {google-cloud-document-ai => owl-bot-staging/v1/google-cloud-document-ai}/src/main/java/com/google/cloud/documentai/v1/stub/GrpcDocumentProcessorServiceStub.java (99%) create mode 100644 owl-bot-staging/v1/google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1/stub/HttpJsonDocumentProcessorServiceCallableFactory.java create mode 100644 owl-bot-staging/v1/google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1/stub/HttpJsonDocumentProcessorServiceStub.java create mode 100644 owl-bot-staging/v1/google-cloud-document-ai/src/test/java/com/google/cloud/documentai/v1/DocumentProcessorServiceClientHttpJsonTest.java rename {google-cloud-document-ai => owl-bot-staging/v1/google-cloud-document-ai}/src/test/java/com/google/cloud/documentai/v1/DocumentProcessorServiceClientTest.java (100%) rename {google-cloud-document-ai => owl-bot-staging/v1/google-cloud-document-ai}/src/test/java/com/google/cloud/documentai/v1/MockDocumentProcessorService.java (100%) rename {google-cloud-document-ai => owl-bot-staging/v1/google-cloud-document-ai}/src/test/java/com/google/cloud/documentai/v1/MockDocumentProcessorServiceImpl.java (100%) rename {grpc-google-cloud-document-ai-v1 => owl-bot-staging/v1/grpc-google-cloud-document-ai-v1}/src/main/java/com/google/cloud/documentai/v1/DocumentProcessorServiceGrpc.java (51%) rename {proto-google-cloud-document-ai-v1 => owl-bot-staging/v1/proto-google-cloud-document-ai-v1}/src/main/java/com/google/cloud/documentai/v1/BatchDocumentsInputConfig.java (70%) rename {proto-google-cloud-document-ai-v1 => owl-bot-staging/v1/proto-google-cloud-document-ai-v1}/src/main/java/com/google/cloud/documentai/v1/BatchDocumentsInputConfigOrBuilder.java (73%) rename {proto-google-cloud-document-ai-v1 => owl-bot-staging/v1/proto-google-cloud-document-ai-v1}/src/main/java/com/google/cloud/documentai/v1/BatchProcessMetadata.java (69%) rename {proto-google-cloud-document-ai-v1 => owl-bot-staging/v1/proto-google-cloud-document-ai-v1}/src/main/java/com/google/cloud/documentai/v1/BatchProcessMetadataOrBuilder.java (64%) rename {proto-google-cloud-document-ai-v1 => owl-bot-staging/v1/proto-google-cloud-document-ai-v1}/src/main/java/com/google/cloud/documentai/v1/BatchProcessRequest.java (69%) rename {proto-google-cloud-document-ai-v1 => owl-bot-staging/v1/proto-google-cloud-document-ai-v1}/src/main/java/com/google/cloud/documentai/v1/BatchProcessRequestOrBuilder.java (69%) rename {proto-google-cloud-document-ai-v1 => owl-bot-staging/v1/proto-google-cloud-document-ai-v1}/src/main/java/com/google/cloud/documentai/v1/BatchProcessResponse.java (67%) create mode 100644 owl-bot-staging/v1/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/BatchProcessResponseOrBuilder.java rename {proto-google-cloud-document-ai-v1 => owl-bot-staging/v1/proto-google-cloud-document-ai-v1}/src/main/java/com/google/cloud/documentai/v1/BoundingPoly.java (76%) rename {proto-google-cloud-document-ai-v1 => owl-bot-staging/v1/proto-google-cloud-document-ai-v1}/src/main/java/com/google/cloud/documentai/v1/BoundingPolyOrBuilder.java (74%) rename {proto-google-cloud-document-ai-v1 => owl-bot-staging/v1/proto-google-cloud-document-ai-v1}/src/main/java/com/google/cloud/documentai/v1/CommonOperationMetadata.java (71%) rename {proto-google-cloud-document-ai-v1 => owl-bot-staging/v1/proto-google-cloud-document-ai-v1}/src/main/java/com/google/cloud/documentai/v1/CommonOperationMetadataOrBuilder.java (74%) rename {proto-google-cloud-document-ai-v1 => owl-bot-staging/v1/proto-google-cloud-document-ai-v1}/src/main/java/com/google/cloud/documentai/v1/Document.java (74%) create mode 100644 owl-bot-staging/v1/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/DocumentAiProcessorService.java create mode 100644 owl-bot-staging/v1/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/DocumentIoProto.java rename {proto-google-cloud-document-ai-v1 => owl-bot-staging/v1/proto-google-cloud-document-ai-v1}/src/main/java/com/google/cloud/documentai/v1/DocumentOrBuilder.java (89%) rename {proto-google-cloud-document-ai-v1 => owl-bot-staging/v1/proto-google-cloud-document-ai-v1}/src/main/java/com/google/cloud/documentai/v1/DocumentOutputConfig.java (66%) rename {proto-google-cloud-document-ai-v1 => owl-bot-staging/v1/proto-google-cloud-document-ai-v1}/src/main/java/com/google/cloud/documentai/v1/DocumentOutputConfigOrBuilder.java (56%) create mode 100644 owl-bot-staging/v1/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/DocumentProto.java rename {proto-google-cloud-document-ai-v1 => owl-bot-staging/v1/proto-google-cloud-document-ai-v1}/src/main/java/com/google/cloud/documentai/v1/GcsDocument.java (69%) rename {proto-google-cloud-document-ai-v1 => owl-bot-staging/v1/proto-google-cloud-document-ai-v1}/src/main/java/com/google/cloud/documentai/v1/GcsDocumentOrBuilder.java (54%) rename {proto-google-cloud-document-ai-v1 => owl-bot-staging/v1/proto-google-cloud-document-ai-v1}/src/main/java/com/google/cloud/documentai/v1/GcsDocuments.java (73%) rename {proto-google-cloud-document-ai-v1 => owl-bot-staging/v1/proto-google-cloud-document-ai-v1}/src/main/java/com/google/cloud/documentai/v1/GcsDocumentsOrBuilder.java (61%) rename {proto-google-cloud-document-ai-v1 => owl-bot-staging/v1/proto-google-cloud-document-ai-v1}/src/main/java/com/google/cloud/documentai/v1/GcsPrefix.java (68%) create mode 100644 owl-bot-staging/v1/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/GcsPrefixOrBuilder.java create mode 100644 owl-bot-staging/v1/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/GeometryProto.java rename {proto-google-cloud-document-ai-v1 => owl-bot-staging/v1/proto-google-cloud-document-ai-v1}/src/main/java/com/google/cloud/documentai/v1/HumanReviewConfigName.java (100%) rename {proto-google-cloud-document-ai-v1 => owl-bot-staging/v1/proto-google-cloud-document-ai-v1}/src/main/java/com/google/cloud/documentai/v1/HumanReviewStatus.java (74%) rename {proto-google-cloud-document-ai-v1 => owl-bot-staging/v1/proto-google-cloud-document-ai-v1}/src/main/java/com/google/cloud/documentai/v1/HumanReviewStatusOrBuilder.java (71%) rename {proto-google-cloud-document-ai-v1 => owl-bot-staging/v1/proto-google-cloud-document-ai-v1}/src/main/java/com/google/cloud/documentai/v1/NormalizedVertex.java (68%) create mode 100644 owl-bot-staging/v1/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/NormalizedVertexOrBuilder.java create mode 100644 owl-bot-staging/v1/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/OperationMetadataProto.java rename {proto-google-cloud-document-ai-v1 => owl-bot-staging/v1/proto-google-cloud-document-ai-v1}/src/main/java/com/google/cloud/documentai/v1/ProcessRequest.java (70%) rename {proto-google-cloud-document-ai-v1 => owl-bot-staging/v1/proto-google-cloud-document-ai-v1}/src/main/java/com/google/cloud/documentai/v1/ProcessRequestOrBuilder.java (68%) rename {proto-google-cloud-document-ai-v1 => owl-bot-staging/v1/proto-google-cloud-document-ai-v1}/src/main/java/com/google/cloud/documentai/v1/ProcessResponse.java (71%) rename {proto-google-cloud-document-ai-v1 => owl-bot-staging/v1/proto-google-cloud-document-ai-v1}/src/main/java/com/google/cloud/documentai/v1/ProcessResponseOrBuilder.java (73%) rename {proto-google-cloud-document-ai-v1 => owl-bot-staging/v1/proto-google-cloud-document-ai-v1}/src/main/java/com/google/cloud/documentai/v1/ProcessorName.java (100%) rename {proto-google-cloud-document-ai-v1 => owl-bot-staging/v1/proto-google-cloud-document-ai-v1}/src/main/java/com/google/cloud/documentai/v1/RawDocument.java (70%) rename {proto-google-cloud-document-ai-v1 => owl-bot-staging/v1/proto-google-cloud-document-ai-v1}/src/main/java/com/google/cloud/documentai/v1/RawDocumentOrBuilder.java (55%) rename {proto-google-cloud-document-ai-v1 => owl-bot-staging/v1/proto-google-cloud-document-ai-v1}/src/main/java/com/google/cloud/documentai/v1/ReviewDocumentOperationMetadata.java (68%) rename {proto-google-cloud-document-ai-v1 => owl-bot-staging/v1/proto-google-cloud-document-ai-v1}/src/main/java/com/google/cloud/documentai/v1/ReviewDocumentOperationMetadataOrBuilder.java (65%) rename {proto-google-cloud-document-ai-v1 => owl-bot-staging/v1/proto-google-cloud-document-ai-v1}/src/main/java/com/google/cloud/documentai/v1/ReviewDocumentRequest.java (70%) rename {proto-google-cloud-document-ai-v1 => owl-bot-staging/v1/proto-google-cloud-document-ai-v1}/src/main/java/com/google/cloud/documentai/v1/ReviewDocumentRequestOrBuilder.java (67%) rename {proto-google-cloud-document-ai-v1 => owl-bot-staging/v1/proto-google-cloud-document-ai-v1}/src/main/java/com/google/cloud/documentai/v1/ReviewDocumentResponse.java (69%) create mode 100644 owl-bot-staging/v1/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/ReviewDocumentResponseOrBuilder.java rename {proto-google-cloud-document-ai-v1 => owl-bot-staging/v1/proto-google-cloud-document-ai-v1}/src/main/java/com/google/cloud/documentai/v1/Vertex.java (69%) create mode 100644 owl-bot-staging/v1/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/VertexOrBuilder.java rename {proto-google-cloud-document-ai-v1 => owl-bot-staging/v1/proto-google-cloud-document-ai-v1}/src/main/proto/google/cloud/documentai/v1/document.proto (100%) rename {proto-google-cloud-document-ai-v1 => owl-bot-staging/v1/proto-google-cloud-document-ai-v1}/src/main/proto/google/cloud/documentai/v1/document_io.proto (100%) rename {proto-google-cloud-document-ai-v1 => owl-bot-staging/v1/proto-google-cloud-document-ai-v1}/src/main/proto/google/cloud/documentai/v1/document_processor_service.proto (100%) rename {proto-google-cloud-document-ai-v1 => owl-bot-staging/v1/proto-google-cloud-document-ai-v1}/src/main/proto/google/cloud/documentai/v1/geometry.proto (100%) rename {proto-google-cloud-document-ai-v1 => owl-bot-staging/v1/proto-google-cloud-document-ai-v1}/src/main/proto/google/cloud/documentai/v1/operation_metadata.proto (100%) create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/documentai/v1/documentprocessorserviceclient/batchprocessdocuments/AsyncBatchProcessDocuments.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/documentai/v1/documentprocessorserviceclient/batchprocessdocuments/AsyncBatchProcessDocumentsLRO.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/documentai/v1/documentprocessorserviceclient/batchprocessdocuments/SyncBatchProcessDocuments.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/documentai/v1/documentprocessorserviceclient/batchprocessdocuments/SyncBatchProcessDocumentsProcessorname.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/documentai/v1/documentprocessorserviceclient/batchprocessdocuments/SyncBatchProcessDocumentsString.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/documentai/v1/documentprocessorserviceclient/create/SyncCreateSetCredentialsProvider.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/documentai/v1/documentprocessorserviceclient/create/SyncCreateSetCredentialsProvider1.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/documentai/v1/documentprocessorserviceclient/create/SyncCreateSetEndpoint.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/documentai/v1/documentprocessorserviceclient/processdocument/AsyncProcessDocument.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/documentai/v1/documentprocessorserviceclient/processdocument/SyncProcessDocument.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/documentai/v1/documentprocessorserviceclient/processdocument/SyncProcessDocumentProcessorname.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/documentai/v1/documentprocessorserviceclient/processdocument/SyncProcessDocumentString.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/documentai/v1/documentprocessorserviceclient/reviewdocument/AsyncReviewDocument.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/documentai/v1/documentprocessorserviceclient/reviewdocument/AsyncReviewDocumentLRO.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/documentai/v1/documentprocessorserviceclient/reviewdocument/SyncReviewDocument.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/documentai/v1/documentprocessorserviceclient/reviewdocument/SyncReviewDocumentHumanreviewconfigname.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/documentai/v1/documentprocessorserviceclient/reviewdocument/SyncReviewDocumentString.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/documentai/v1/documentprocessorservicesettings/processdocument/SyncProcessDocument.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/documentai/v1/stub/documentprocessorservicestubsettings/processdocument/SyncProcessDocument.java rename {google-cloud-document-ai => owl-bot-staging/v1beta1/google-cloud-document-ai}/src/main/java/com/google/cloud/documentai/v1beta1/DocumentUnderstandingServiceClient.java (97%) rename {google-cloud-document-ai => owl-bot-staging/v1beta1/google-cloud-document-ai}/src/main/java/com/google/cloud/documentai/v1beta1/DocumentUnderstandingServiceSettings.java (96%) rename {google-cloud-document-ai => owl-bot-staging/v1beta1/google-cloud-document-ai}/src/main/java/com/google/cloud/documentai/v1beta1/gapic_metadata.json (100%) rename {google-cloud-document-ai => owl-bot-staging/v1beta1/google-cloud-document-ai}/src/main/java/com/google/cloud/documentai/v1beta1/package-info.java (100%) rename {google-cloud-document-ai => owl-bot-staging/v1beta1/google-cloud-document-ai}/src/main/java/com/google/cloud/documentai/v1beta1/stub/DocumentUnderstandingServiceStub.java (100%) rename {google-cloud-document-ai => owl-bot-staging/v1beta1/google-cloud-document-ai}/src/main/java/com/google/cloud/documentai/v1beta1/stub/DocumentUnderstandingServiceStubSettings.java (98%) rename {google-cloud-document-ai => owl-bot-staging/v1beta1/google-cloud-document-ai}/src/main/java/com/google/cloud/documentai/v1beta1/stub/GrpcDocumentUnderstandingServiceCallableFactory.java (100%) rename {google-cloud-document-ai => owl-bot-staging/v1beta1/google-cloud-document-ai}/src/main/java/com/google/cloud/documentai/v1beta1/stub/GrpcDocumentUnderstandingServiceStub.java (99%) rename {google-cloud-document-ai => owl-bot-staging/v1beta1/google-cloud-document-ai}/src/test/java/com/google/cloud/documentai/v1beta1/DocumentUnderstandingServiceClientTest.java (100%) rename {google-cloud-document-ai => owl-bot-staging/v1beta1/google-cloud-document-ai}/src/test/java/com/google/cloud/documentai/v1beta1/MockDocumentUnderstandingService.java (100%) rename {google-cloud-document-ai => owl-bot-staging/v1beta1/google-cloud-document-ai}/src/test/java/com/google/cloud/documentai/v1beta1/MockDocumentUnderstandingServiceImpl.java (100%) rename {grpc-google-cloud-document-ai-v1beta1 => owl-bot-staging/v1beta1/grpc-google-cloud-document-ai-v1beta1}/src/main/java/com/google/cloud/documentai/v1beta1/DocumentUnderstandingServiceGrpc.java (55%) rename {proto-google-cloud-document-ai-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-document-ai-v1beta1}/src/main/java/com/google/cloud/documentai/v1beta1/BatchProcessDocumentsRequest.java (64%) rename {proto-google-cloud-document-ai-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-document-ai-v1beta1}/src/main/java/com/google/cloud/documentai/v1beta1/BatchProcessDocumentsRequestOrBuilder.java (52%) rename {proto-google-cloud-document-ai-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-document-ai-v1beta1}/src/main/java/com/google/cloud/documentai/v1beta1/BatchProcessDocumentsResponse.java (70%) rename {proto-google-cloud-document-ai-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-document-ai-v1beta1}/src/main/java/com/google/cloud/documentai/v1beta1/BatchProcessDocumentsResponseOrBuilder.java (67%) rename {proto-google-cloud-document-ai-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-document-ai-v1beta1}/src/main/java/com/google/cloud/documentai/v1beta1/BoundingPoly.java (73%) rename {proto-google-cloud-document-ai-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-document-ai-v1beta1}/src/main/java/com/google/cloud/documentai/v1beta1/BoundingPolyOrBuilder.java (68%) rename {proto-google-cloud-document-ai-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-document-ai-v1beta1}/src/main/java/com/google/cloud/documentai/v1beta1/Document.java (71%) create mode 100644 owl-bot-staging/v1beta1/proto-google-cloud-document-ai-v1beta1/src/main/java/com/google/cloud/documentai/v1beta1/DocumentAiProto.java rename {proto-google-cloud-document-ai-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-document-ai-v1beta1}/src/main/java/com/google/cloud/documentai/v1beta1/DocumentOrBuilder.java (86%) create mode 100644 owl-bot-staging/v1beta1/proto-google-cloud-document-ai-v1beta1/src/main/java/com/google/cloud/documentai/v1beta1/DocumentProto.java rename {proto-google-cloud-document-ai-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-document-ai-v1beta1}/src/main/java/com/google/cloud/documentai/v1beta1/EntityExtractionParams.java (70%) rename {proto-google-cloud-document-ai-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-document-ai-v1beta1}/src/main/java/com/google/cloud/documentai/v1beta1/EntityExtractionParamsOrBuilder.java (57%) rename {proto-google-cloud-document-ai-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-document-ai-v1beta1}/src/main/java/com/google/cloud/documentai/v1beta1/FormExtractionParams.java (79%) rename {proto-google-cloud-document-ai-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-document-ai-v1beta1}/src/main/java/com/google/cloud/documentai/v1beta1/FormExtractionParamsOrBuilder.java (82%) rename {proto-google-cloud-document-ai-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-document-ai-v1beta1}/src/main/java/com/google/cloud/documentai/v1beta1/GcsDestination.java (68%) create mode 100644 owl-bot-staging/v1beta1/proto-google-cloud-document-ai-v1beta1/src/main/java/com/google/cloud/documentai/v1beta1/GcsDestinationOrBuilder.java rename {proto-google-cloud-document-ai-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-document-ai-v1beta1}/src/main/java/com/google/cloud/documentai/v1beta1/GcsSource.java (69%) create mode 100644 owl-bot-staging/v1beta1/proto-google-cloud-document-ai-v1beta1/src/main/java/com/google/cloud/documentai/v1beta1/GcsSourceOrBuilder.java create mode 100644 owl-bot-staging/v1beta1/proto-google-cloud-document-ai-v1beta1/src/main/java/com/google/cloud/documentai/v1beta1/GeometryProto.java rename {proto-google-cloud-document-ai-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-document-ai-v1beta1}/src/main/java/com/google/cloud/documentai/v1beta1/InputConfig.java (72%) rename {proto-google-cloud-document-ai-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-document-ai-v1beta1}/src/main/java/com/google/cloud/documentai/v1beta1/InputConfigOrBuilder.java (70%) rename {proto-google-cloud-document-ai-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-document-ai-v1beta1}/src/main/java/com/google/cloud/documentai/v1beta1/KeyValuePairHint.java (73%) rename {proto-google-cloud-document-ai-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-document-ai-v1beta1}/src/main/java/com/google/cloud/documentai/v1beta1/KeyValuePairHintOrBuilder.java (71%) rename {proto-google-cloud-document-ai-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-document-ai-v1beta1}/src/main/java/com/google/cloud/documentai/v1beta1/NormalizedVertex.java (67%) create mode 100644 owl-bot-staging/v1beta1/proto-google-cloud-document-ai-v1beta1/src/main/java/com/google/cloud/documentai/v1beta1/NormalizedVertexOrBuilder.java rename {proto-google-cloud-document-ai-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-document-ai-v1beta1}/src/main/java/com/google/cloud/documentai/v1beta1/OcrParams.java (77%) rename {proto-google-cloud-document-ai-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-document-ai-v1beta1}/src/main/java/com/google/cloud/documentai/v1beta1/OcrParamsOrBuilder.java (79%) rename {proto-google-cloud-document-ai-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-document-ai-v1beta1}/src/main/java/com/google/cloud/documentai/v1beta1/OperationMetadata.java (71%) rename {proto-google-cloud-document-ai-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-document-ai-v1beta1}/src/main/java/com/google/cloud/documentai/v1beta1/OperationMetadataOrBuilder.java (75%) rename {proto-google-cloud-document-ai-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-document-ai-v1beta1}/src/main/java/com/google/cloud/documentai/v1beta1/OutputConfig.java (73%) rename {proto-google-cloud-document-ai-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-document-ai-v1beta1}/src/main/java/com/google/cloud/documentai/v1beta1/OutputConfigOrBuilder.java (75%) rename {proto-google-cloud-document-ai-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-document-ai-v1beta1}/src/main/java/com/google/cloud/documentai/v1beta1/ProcessDocumentRequest.java (67%) rename {proto-google-cloud-document-ai-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-document-ai-v1beta1}/src/main/java/com/google/cloud/documentai/v1beta1/ProcessDocumentRequestOrBuilder.java (72%) rename {proto-google-cloud-document-ai-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-document-ai-v1beta1}/src/main/java/com/google/cloud/documentai/v1beta1/ProcessDocumentResponse.java (71%) rename {proto-google-cloud-document-ai-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-document-ai-v1beta1}/src/main/java/com/google/cloud/documentai/v1beta1/ProcessDocumentResponseOrBuilder.java (76%) rename {proto-google-cloud-document-ai-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-document-ai-v1beta1}/src/main/java/com/google/cloud/documentai/v1beta1/TableBoundHint.java (72%) rename {proto-google-cloud-document-ai-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-document-ai-v1beta1}/src/main/java/com/google/cloud/documentai/v1beta1/TableBoundHintOrBuilder.java (71%) rename {proto-google-cloud-document-ai-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-document-ai-v1beta1}/src/main/java/com/google/cloud/documentai/v1beta1/TableExtractionParams.java (71%) rename {proto-google-cloud-document-ai-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-document-ai-v1beta1}/src/main/java/com/google/cloud/documentai/v1beta1/TableExtractionParamsOrBuilder.java (67%) rename {proto-google-cloud-document-ai-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-document-ai-v1beta1}/src/main/java/com/google/cloud/documentai/v1beta1/Vertex.java (68%) create mode 100644 owl-bot-staging/v1beta1/proto-google-cloud-document-ai-v1beta1/src/main/java/com/google/cloud/documentai/v1beta1/VertexOrBuilder.java rename {proto-google-cloud-document-ai-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-document-ai-v1beta1}/src/main/proto/google/cloud/documentai/v1beta1/document.proto (100%) rename {proto-google-cloud-document-ai-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-document-ai-v1beta1}/src/main/proto/google/cloud/documentai/v1beta1/document_understanding.proto (100%) rename {proto-google-cloud-document-ai-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-document-ai-v1beta1}/src/main/proto/google/cloud/documentai/v1beta1/geometry.proto (100%) create mode 100644 owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/documentai/v1beta1/documentunderstandingserviceclient/batchprocessdocuments/AsyncBatchProcessDocuments.java create mode 100644 owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/documentai/v1beta1/documentunderstandingserviceclient/batchprocessdocuments/AsyncBatchProcessDocumentsLRO.java create mode 100644 owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/documentai/v1beta1/documentunderstandingserviceclient/batchprocessdocuments/SyncBatchProcessDocuments.java create mode 100644 owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/documentai/v1beta1/documentunderstandingserviceclient/batchprocessdocuments/SyncBatchProcessDocumentsListprocessdocumentrequest.java create mode 100644 owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/documentai/v1beta1/documentunderstandingserviceclient/create/SyncCreateSetCredentialsProvider.java create mode 100644 owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/documentai/v1beta1/documentunderstandingserviceclient/create/SyncCreateSetEndpoint.java create mode 100644 owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/documentai/v1beta1/documentunderstandingservicesettings/batchprocessdocuments/SyncBatchProcessDocuments.java create mode 100644 owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/documentai/v1beta1/stub/documentunderstandingservicestubsettings/batchprocessdocuments/SyncBatchProcessDocuments.java rename {google-cloud-document-ai => owl-bot-staging/v1beta2/google-cloud-document-ai}/src/main/java/com/google/cloud/documentai/v1beta2/DocumentUnderstandingServiceClient.java (98%) rename {google-cloud-document-ai => owl-bot-staging/v1beta2/google-cloud-document-ai}/src/main/java/com/google/cloud/documentai/v1beta2/DocumentUnderstandingServiceSettings.java (96%) rename {google-cloud-document-ai => owl-bot-staging/v1beta2/google-cloud-document-ai}/src/main/java/com/google/cloud/documentai/v1beta2/gapic_metadata.json (100%) rename {google-cloud-document-ai => owl-bot-staging/v1beta2/google-cloud-document-ai}/src/main/java/com/google/cloud/documentai/v1beta2/package-info.java (100%) rename {google-cloud-document-ai => owl-bot-staging/v1beta2/google-cloud-document-ai}/src/main/java/com/google/cloud/documentai/v1beta2/stub/DocumentUnderstandingServiceStub.java (100%) rename {google-cloud-document-ai => owl-bot-staging/v1beta2/google-cloud-document-ai}/src/main/java/com/google/cloud/documentai/v1beta2/stub/DocumentUnderstandingServiceStubSettings.java (98%) rename {google-cloud-document-ai => owl-bot-staging/v1beta2/google-cloud-document-ai}/src/main/java/com/google/cloud/documentai/v1beta2/stub/GrpcDocumentUnderstandingServiceCallableFactory.java (100%) rename {google-cloud-document-ai => owl-bot-staging/v1beta2/google-cloud-document-ai}/src/main/java/com/google/cloud/documentai/v1beta2/stub/GrpcDocumentUnderstandingServiceStub.java (99%) rename {google-cloud-document-ai => owl-bot-staging/v1beta2/google-cloud-document-ai}/src/test/java/com/google/cloud/documentai/v1beta2/DocumentUnderstandingServiceClientTest.java (100%) rename {google-cloud-document-ai => owl-bot-staging/v1beta2/google-cloud-document-ai}/src/test/java/com/google/cloud/documentai/v1beta2/MockDocumentUnderstandingService.java (100%) rename {google-cloud-document-ai => owl-bot-staging/v1beta2/google-cloud-document-ai}/src/test/java/com/google/cloud/documentai/v1beta2/MockDocumentUnderstandingServiceImpl.java (100%) rename {grpc-google-cloud-document-ai-v1beta2 => owl-bot-staging/v1beta2/grpc-google-cloud-document-ai-v1beta2}/src/main/java/com/google/cloud/documentai/v1beta2/DocumentUnderstandingServiceGrpc.java (51%) rename {proto-google-cloud-document-ai-v1beta2 => owl-bot-staging/v1beta2/proto-google-cloud-document-ai-v1beta2}/src/main/java/com/google/cloud/documentai/v1beta2/AutoMlParams.java (69%) rename {proto-google-cloud-document-ai-v1beta2 => owl-bot-staging/v1beta2/proto-google-cloud-document-ai-v1beta2}/src/main/java/com/google/cloud/documentai/v1beta2/AutoMlParamsOrBuilder.java (52%) rename {proto-google-cloud-document-ai-v1beta2 => owl-bot-staging/v1beta2/proto-google-cloud-document-ai-v1beta2}/src/main/java/com/google/cloud/documentai/v1beta2/BatchProcessDocumentsRequest.java (64%) rename {proto-google-cloud-document-ai-v1beta2 => owl-bot-staging/v1beta2/proto-google-cloud-document-ai-v1beta2}/src/main/java/com/google/cloud/documentai/v1beta2/BatchProcessDocumentsRequestOrBuilder.java (52%) rename {proto-google-cloud-document-ai-v1beta2 => owl-bot-staging/v1beta2/proto-google-cloud-document-ai-v1beta2}/src/main/java/com/google/cloud/documentai/v1beta2/BatchProcessDocumentsResponse.java (70%) rename {proto-google-cloud-document-ai-v1beta2 => owl-bot-staging/v1beta2/proto-google-cloud-document-ai-v1beta2}/src/main/java/com/google/cloud/documentai/v1beta2/BatchProcessDocumentsResponseOrBuilder.java (67%) rename {proto-google-cloud-document-ai-v1beta2 => owl-bot-staging/v1beta2/proto-google-cloud-document-ai-v1beta2}/src/main/java/com/google/cloud/documentai/v1beta2/BoundingPoly.java (73%) rename {proto-google-cloud-document-ai-v1beta2 => owl-bot-staging/v1beta2/proto-google-cloud-document-ai-v1beta2}/src/main/java/com/google/cloud/documentai/v1beta2/BoundingPolyOrBuilder.java (68%) rename {proto-google-cloud-document-ai-v1beta2 => owl-bot-staging/v1beta2/proto-google-cloud-document-ai-v1beta2}/src/main/java/com/google/cloud/documentai/v1beta2/Document.java (71%) create mode 100644 owl-bot-staging/v1beta2/proto-google-cloud-document-ai-v1beta2/src/main/java/com/google/cloud/documentai/v1beta2/DocumentAiProto.java rename {proto-google-cloud-document-ai-v1beta2 => owl-bot-staging/v1beta2/proto-google-cloud-document-ai-v1beta2}/src/main/java/com/google/cloud/documentai/v1beta2/DocumentOrBuilder.java (87%) create mode 100644 owl-bot-staging/v1beta2/proto-google-cloud-document-ai-v1beta2/src/main/java/com/google/cloud/documentai/v1beta2/DocumentProto.java rename {proto-google-cloud-document-ai-v1beta2 => owl-bot-staging/v1beta2/proto-google-cloud-document-ai-v1beta2}/src/main/java/com/google/cloud/documentai/v1beta2/EntityExtractionParams.java (70%) rename {proto-google-cloud-document-ai-v1beta2 => owl-bot-staging/v1beta2/proto-google-cloud-document-ai-v1beta2}/src/main/java/com/google/cloud/documentai/v1beta2/EntityExtractionParamsOrBuilder.java (57%) rename {proto-google-cloud-document-ai-v1beta2 => owl-bot-staging/v1beta2/proto-google-cloud-document-ai-v1beta2}/src/main/java/com/google/cloud/documentai/v1beta2/FormExtractionParams.java (79%) rename {proto-google-cloud-document-ai-v1beta2 => owl-bot-staging/v1beta2/proto-google-cloud-document-ai-v1beta2}/src/main/java/com/google/cloud/documentai/v1beta2/FormExtractionParamsOrBuilder.java (83%) rename {proto-google-cloud-document-ai-v1beta2 => owl-bot-staging/v1beta2/proto-google-cloud-document-ai-v1beta2}/src/main/java/com/google/cloud/documentai/v1beta2/GcsDestination.java (68%) create mode 100644 owl-bot-staging/v1beta2/proto-google-cloud-document-ai-v1beta2/src/main/java/com/google/cloud/documentai/v1beta2/GcsDestinationOrBuilder.java rename {proto-google-cloud-document-ai-v1beta2 => owl-bot-staging/v1beta2/proto-google-cloud-document-ai-v1beta2}/src/main/java/com/google/cloud/documentai/v1beta2/GcsSource.java (69%) create mode 100644 owl-bot-staging/v1beta2/proto-google-cloud-document-ai-v1beta2/src/main/java/com/google/cloud/documentai/v1beta2/GcsSourceOrBuilder.java create mode 100644 owl-bot-staging/v1beta2/proto-google-cloud-document-ai-v1beta2/src/main/java/com/google/cloud/documentai/v1beta2/GeometryProto.java rename {proto-google-cloud-document-ai-v1beta2 => owl-bot-staging/v1beta2/proto-google-cloud-document-ai-v1beta2}/src/main/java/com/google/cloud/documentai/v1beta2/InputConfig.java (75%) rename {proto-google-cloud-document-ai-v1beta2 => owl-bot-staging/v1beta2/proto-google-cloud-document-ai-v1beta2}/src/main/java/com/google/cloud/documentai/v1beta2/InputConfigOrBuilder.java (80%) rename {proto-google-cloud-document-ai-v1beta2 => owl-bot-staging/v1beta2/proto-google-cloud-document-ai-v1beta2}/src/main/java/com/google/cloud/documentai/v1beta2/KeyValuePairHint.java (73%) rename {proto-google-cloud-document-ai-v1beta2 => owl-bot-staging/v1beta2/proto-google-cloud-document-ai-v1beta2}/src/main/java/com/google/cloud/documentai/v1beta2/KeyValuePairHintOrBuilder.java (71%) rename {proto-google-cloud-document-ai-v1beta2 => owl-bot-staging/v1beta2/proto-google-cloud-document-ai-v1beta2}/src/main/java/com/google/cloud/documentai/v1beta2/NormalizedVertex.java (67%) create mode 100644 owl-bot-staging/v1beta2/proto-google-cloud-document-ai-v1beta2/src/main/java/com/google/cloud/documentai/v1beta2/NormalizedVertexOrBuilder.java rename {proto-google-cloud-document-ai-v1beta2 => owl-bot-staging/v1beta2/proto-google-cloud-document-ai-v1beta2}/src/main/java/com/google/cloud/documentai/v1beta2/OcrParams.java (77%) rename {proto-google-cloud-document-ai-v1beta2 => owl-bot-staging/v1beta2/proto-google-cloud-document-ai-v1beta2}/src/main/java/com/google/cloud/documentai/v1beta2/OcrParamsOrBuilder.java (79%) rename {proto-google-cloud-document-ai-v1beta2 => owl-bot-staging/v1beta2/proto-google-cloud-document-ai-v1beta2}/src/main/java/com/google/cloud/documentai/v1beta2/OperationMetadata.java (71%) rename {proto-google-cloud-document-ai-v1beta2 => owl-bot-staging/v1beta2/proto-google-cloud-document-ai-v1beta2}/src/main/java/com/google/cloud/documentai/v1beta2/OperationMetadataOrBuilder.java (75%) rename {proto-google-cloud-document-ai-v1beta2 => owl-bot-staging/v1beta2/proto-google-cloud-document-ai-v1beta2}/src/main/java/com/google/cloud/documentai/v1beta2/OutputConfig.java (73%) rename {proto-google-cloud-document-ai-v1beta2 => owl-bot-staging/v1beta2/proto-google-cloud-document-ai-v1beta2}/src/main/java/com/google/cloud/documentai/v1beta2/OutputConfigOrBuilder.java (75%) rename {proto-google-cloud-document-ai-v1beta2 => owl-bot-staging/v1beta2/proto-google-cloud-document-ai-v1beta2}/src/main/java/com/google/cloud/documentai/v1beta2/ProcessDocumentRequest.java (69%) rename {proto-google-cloud-document-ai-v1beta2 => owl-bot-staging/v1beta2/proto-google-cloud-document-ai-v1beta2}/src/main/java/com/google/cloud/documentai/v1beta2/ProcessDocumentRequestOrBuilder.java (77%) rename {proto-google-cloud-document-ai-v1beta2 => owl-bot-staging/v1beta2/proto-google-cloud-document-ai-v1beta2}/src/main/java/com/google/cloud/documentai/v1beta2/ProcessDocumentResponse.java (71%) rename {proto-google-cloud-document-ai-v1beta2 => owl-bot-staging/v1beta2/proto-google-cloud-document-ai-v1beta2}/src/main/java/com/google/cloud/documentai/v1beta2/ProcessDocumentResponseOrBuilder.java (76%) rename {proto-google-cloud-document-ai-v1beta2 => owl-bot-staging/v1beta2/proto-google-cloud-document-ai-v1beta2}/src/main/java/com/google/cloud/documentai/v1beta2/TableBoundHint.java (72%) rename {proto-google-cloud-document-ai-v1beta2 => owl-bot-staging/v1beta2/proto-google-cloud-document-ai-v1beta2}/src/main/java/com/google/cloud/documentai/v1beta2/TableBoundHintOrBuilder.java (71%) rename {proto-google-cloud-document-ai-v1beta2 => owl-bot-staging/v1beta2/proto-google-cloud-document-ai-v1beta2}/src/main/java/com/google/cloud/documentai/v1beta2/TableExtractionParams.java (71%) rename {proto-google-cloud-document-ai-v1beta2 => owl-bot-staging/v1beta2/proto-google-cloud-document-ai-v1beta2}/src/main/java/com/google/cloud/documentai/v1beta2/TableExtractionParamsOrBuilder.java (67%) rename {proto-google-cloud-document-ai-v1beta2 => owl-bot-staging/v1beta2/proto-google-cloud-document-ai-v1beta2}/src/main/java/com/google/cloud/documentai/v1beta2/Vertex.java (68%) create mode 100644 owl-bot-staging/v1beta2/proto-google-cloud-document-ai-v1beta2/src/main/java/com/google/cloud/documentai/v1beta2/VertexOrBuilder.java rename {proto-google-cloud-document-ai-v1beta2 => owl-bot-staging/v1beta2/proto-google-cloud-document-ai-v1beta2}/src/main/proto/google/cloud/documentai/v1beta2/document.proto (100%) rename {proto-google-cloud-document-ai-v1beta2 => owl-bot-staging/v1beta2/proto-google-cloud-document-ai-v1beta2}/src/main/proto/google/cloud/documentai/v1beta2/document_understanding.proto (100%) rename {proto-google-cloud-document-ai-v1beta2 => owl-bot-staging/v1beta2/proto-google-cloud-document-ai-v1beta2}/src/main/proto/google/cloud/documentai/v1beta2/geometry.proto (100%) create mode 100644 owl-bot-staging/v1beta2/samples/snippets/generated/com/google/cloud/documentai/v1beta2/documentunderstandingserviceclient/batchprocessdocuments/AsyncBatchProcessDocuments.java create mode 100644 owl-bot-staging/v1beta2/samples/snippets/generated/com/google/cloud/documentai/v1beta2/documentunderstandingserviceclient/batchprocessdocuments/AsyncBatchProcessDocumentsLRO.java create mode 100644 owl-bot-staging/v1beta2/samples/snippets/generated/com/google/cloud/documentai/v1beta2/documentunderstandingserviceclient/batchprocessdocuments/SyncBatchProcessDocuments.java create mode 100644 owl-bot-staging/v1beta2/samples/snippets/generated/com/google/cloud/documentai/v1beta2/documentunderstandingserviceclient/batchprocessdocuments/SyncBatchProcessDocumentsListprocessdocumentrequest.java create mode 100644 owl-bot-staging/v1beta2/samples/snippets/generated/com/google/cloud/documentai/v1beta2/documentunderstandingserviceclient/create/SyncCreateSetCredentialsProvider.java create mode 100644 owl-bot-staging/v1beta2/samples/snippets/generated/com/google/cloud/documentai/v1beta2/documentunderstandingserviceclient/create/SyncCreateSetEndpoint.java create mode 100644 owl-bot-staging/v1beta2/samples/snippets/generated/com/google/cloud/documentai/v1beta2/documentunderstandingserviceclient/processdocument/AsyncProcessDocument.java create mode 100644 owl-bot-staging/v1beta2/samples/snippets/generated/com/google/cloud/documentai/v1beta2/documentunderstandingserviceclient/processdocument/SyncProcessDocument.java create mode 100644 owl-bot-staging/v1beta2/samples/snippets/generated/com/google/cloud/documentai/v1beta2/documentunderstandingservicesettings/processdocument/SyncProcessDocument.java create mode 100644 owl-bot-staging/v1beta2/samples/snippets/generated/com/google/cloud/documentai/v1beta2/stub/documentunderstandingservicestubsettings/processdocument/SyncProcessDocument.java rename {google-cloud-document-ai => owl-bot-staging/v1beta3/google-cloud-document-ai}/src/main/java/com/google/cloud/documentai/v1beta3/DocumentProcessorServiceClient.java (96%) rename {google-cloud-document-ai => owl-bot-staging/v1beta3/google-cloud-document-ai}/src/main/java/com/google/cloud/documentai/v1beta3/DocumentProcessorServiceSettings.java (93%) rename {google-cloud-document-ai => owl-bot-staging/v1beta3/google-cloud-document-ai}/src/main/java/com/google/cloud/documentai/v1beta3/gapic_metadata.json (100%) rename {google-cloud-document-ai => owl-bot-staging/v1beta3/google-cloud-document-ai}/src/main/java/com/google/cloud/documentai/v1beta3/package-info.java (100%) rename {google-cloud-document-ai => owl-bot-staging/v1beta3/google-cloud-document-ai}/src/main/java/com/google/cloud/documentai/v1beta3/stub/DocumentProcessorServiceStub.java (97%) rename {google-cloud-document-ai => owl-bot-staging/v1beta3/google-cloud-document-ai}/src/main/java/com/google/cloud/documentai/v1beta3/stub/DocumentProcessorServiceStubSettings.java (93%) rename {google-cloud-document-ai => owl-bot-staging/v1beta3/google-cloud-document-ai}/src/main/java/com/google/cloud/documentai/v1beta3/stub/GrpcDocumentProcessorServiceCallableFactory.java (100%) rename {google-cloud-document-ai => owl-bot-staging/v1beta3/google-cloud-document-ai}/src/main/java/com/google/cloud/documentai/v1beta3/stub/GrpcDocumentProcessorServiceStub.java (99%) create mode 100644 owl-bot-staging/v1beta3/google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1beta3/stub/HttpJsonDocumentProcessorServiceCallableFactory.java create mode 100644 owl-bot-staging/v1beta3/google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1beta3/stub/HttpJsonDocumentProcessorServiceStub.java create mode 100644 owl-bot-staging/v1beta3/google-cloud-document-ai/src/test/java/com/google/cloud/documentai/v1beta3/DocumentProcessorServiceClientHttpJsonTest.java rename {google-cloud-document-ai => owl-bot-staging/v1beta3/google-cloud-document-ai}/src/test/java/com/google/cloud/documentai/v1beta3/DocumentProcessorServiceClientTest.java (100%) rename {google-cloud-document-ai => owl-bot-staging/v1beta3/google-cloud-document-ai}/src/test/java/com/google/cloud/documentai/v1beta3/MockDocumentProcessorService.java (100%) rename {google-cloud-document-ai => owl-bot-staging/v1beta3/google-cloud-document-ai}/src/test/java/com/google/cloud/documentai/v1beta3/MockDocumentProcessorServiceImpl.java (100%) create mode 100644 owl-bot-staging/v1beta3/grpc-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/DocumentProcessorServiceGrpc.java rename {proto-google-cloud-document-ai-v1beta3 => owl-bot-staging/v1beta3/proto-google-cloud-document-ai-v1beta3}/src/main/java/com/google/cloud/documentai/v1beta3/BatchDocumentsInputConfig.java (70%) rename {proto-google-cloud-document-ai-v1beta3 => owl-bot-staging/v1beta3/proto-google-cloud-document-ai-v1beta3}/src/main/java/com/google/cloud/documentai/v1beta3/BatchDocumentsInputConfigOrBuilder.java (73%) rename {proto-google-cloud-document-ai-v1beta3 => owl-bot-staging/v1beta3/proto-google-cloud-document-ai-v1beta3}/src/main/java/com/google/cloud/documentai/v1beta3/BatchProcessMetadata.java (67%) rename {proto-google-cloud-document-ai-v1beta3 => owl-bot-staging/v1beta3/proto-google-cloud-document-ai-v1beta3}/src/main/java/com/google/cloud/documentai/v1beta3/BatchProcessMetadataOrBuilder.java (63%) rename {proto-google-cloud-document-ai-v1beta3 => owl-bot-staging/v1beta3/proto-google-cloud-document-ai-v1beta3}/src/main/java/com/google/cloud/documentai/v1beta3/BatchProcessRequest.java (62%) rename {proto-google-cloud-document-ai-v1beta3 => owl-bot-staging/v1beta3/proto-google-cloud-document-ai-v1beta3}/src/main/java/com/google/cloud/documentai/v1beta3/BatchProcessRequestOrBuilder.java (53%) rename {proto-google-cloud-document-ai-v1beta3 => owl-bot-staging/v1beta3/proto-google-cloud-document-ai-v1beta3}/src/main/java/com/google/cloud/documentai/v1beta3/BatchProcessResponse.java (67%) create mode 100644 owl-bot-staging/v1beta3/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/BatchProcessResponseOrBuilder.java rename {proto-google-cloud-document-ai-v1beta3 => owl-bot-staging/v1beta3/proto-google-cloud-document-ai-v1beta3}/src/main/java/com/google/cloud/documentai/v1beta3/BoundingPoly.java (73%) rename {proto-google-cloud-document-ai-v1beta3 => owl-bot-staging/v1beta3/proto-google-cloud-document-ai-v1beta3}/src/main/java/com/google/cloud/documentai/v1beta3/BoundingPolyOrBuilder.java (68%) rename {proto-google-cloud-document-ai-v1beta3 => owl-bot-staging/v1beta3/proto-google-cloud-document-ai-v1beta3}/src/main/java/com/google/cloud/documentai/v1beta3/CommonOperationMetadata.java (71%) rename {proto-google-cloud-document-ai-v1beta3 => owl-bot-staging/v1beta3/proto-google-cloud-document-ai-v1beta3}/src/main/java/com/google/cloud/documentai/v1beta3/CommonOperationMetadataOrBuilder.java (75%) rename {proto-google-cloud-document-ai-v1beta3 => owl-bot-staging/v1beta3/proto-google-cloud-document-ai-v1beta3}/src/main/java/com/google/cloud/documentai/v1beta3/CreateProcessorRequest.java (65%) rename {proto-google-cloud-document-ai-v1beta3 => owl-bot-staging/v1beta3/proto-google-cloud-document-ai-v1beta3}/src/main/java/com/google/cloud/documentai/v1beta3/CreateProcessorRequestOrBuilder.java (53%) rename {proto-google-cloud-document-ai-v1beta3 => owl-bot-staging/v1beta3/proto-google-cloud-document-ai-v1beta3}/src/main/java/com/google/cloud/documentai/v1beta3/DeleteProcessorMetadata.java (68%) rename {proto-google-cloud-document-ai-v1beta3 => owl-bot-staging/v1beta3/proto-google-cloud-document-ai-v1beta3}/src/main/java/com/google/cloud/documentai/v1beta3/DeleteProcessorMetadataOrBuilder.java (63%) rename {proto-google-cloud-document-ai-v1beta3 => owl-bot-staging/v1beta3/proto-google-cloud-document-ai-v1beta3}/src/main/java/com/google/cloud/documentai/v1beta3/DeleteProcessorRequest.java (65%) create mode 100644 owl-bot-staging/v1beta3/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/DeleteProcessorRequestOrBuilder.java rename {proto-google-cloud-document-ai-v1beta3 => owl-bot-staging/v1beta3/proto-google-cloud-document-ai-v1beta3}/src/main/java/com/google/cloud/documentai/v1beta3/DisableProcessorMetadata.java (68%) rename {proto-google-cloud-document-ai-v1beta3 => owl-bot-staging/v1beta3/proto-google-cloud-document-ai-v1beta3}/src/main/java/com/google/cloud/documentai/v1beta3/DisableProcessorMetadataOrBuilder.java (63%) rename {proto-google-cloud-document-ai-v1beta3 => owl-bot-staging/v1beta3/proto-google-cloud-document-ai-v1beta3}/src/main/java/com/google/cloud/documentai/v1beta3/DisableProcessorRequest.java (65%) create mode 100644 owl-bot-staging/v1beta3/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/DisableProcessorRequestOrBuilder.java rename {proto-google-cloud-document-ai-v1beta3 => owl-bot-staging/v1beta3/proto-google-cloud-document-ai-v1beta3}/src/main/java/com/google/cloud/documentai/v1beta3/DisableProcessorResponse.java (66%) create mode 100644 owl-bot-staging/v1beta3/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/DisableProcessorResponseOrBuilder.java rename {proto-google-cloud-document-ai-v1beta3 => owl-bot-staging/v1beta3/proto-google-cloud-document-ai-v1beta3}/src/main/java/com/google/cloud/documentai/v1beta3/Document.java (72%) create mode 100644 owl-bot-staging/v1beta3/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/DocumentAiProcessor.java create mode 100644 owl-bot-staging/v1beta3/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/DocumentAiProcessorService.java create mode 100644 owl-bot-staging/v1beta3/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/DocumentAiProcessorType.java create mode 100644 owl-bot-staging/v1beta3/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/DocumentIoProto.java rename {proto-google-cloud-document-ai-v1beta3 => owl-bot-staging/v1beta3/proto-google-cloud-document-ai-v1beta3}/src/main/java/com/google/cloud/documentai/v1beta3/DocumentOrBuilder.java (88%) rename {proto-google-cloud-document-ai-v1beta3 => owl-bot-staging/v1beta3/proto-google-cloud-document-ai-v1beta3}/src/main/java/com/google/cloud/documentai/v1beta3/DocumentOutputConfig.java (61%) create mode 100644 owl-bot-staging/v1beta3/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/DocumentOutputConfigOrBuilder.java create mode 100644 owl-bot-staging/v1beta3/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/DocumentProto.java rename {proto-google-cloud-document-ai-v1beta3 => owl-bot-staging/v1beta3/proto-google-cloud-document-ai-v1beta3}/src/main/java/com/google/cloud/documentai/v1beta3/EnableProcessorMetadata.java (68%) rename {proto-google-cloud-document-ai-v1beta3 => owl-bot-staging/v1beta3/proto-google-cloud-document-ai-v1beta3}/src/main/java/com/google/cloud/documentai/v1beta3/EnableProcessorMetadataOrBuilder.java (63%) rename {proto-google-cloud-document-ai-v1beta3 => owl-bot-staging/v1beta3/proto-google-cloud-document-ai-v1beta3}/src/main/java/com/google/cloud/documentai/v1beta3/EnableProcessorRequest.java (65%) create mode 100644 owl-bot-staging/v1beta3/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/EnableProcessorRequestOrBuilder.java rename {proto-google-cloud-document-ai-v1beta3 => owl-bot-staging/v1beta3/proto-google-cloud-document-ai-v1beta3}/src/main/java/com/google/cloud/documentai/v1beta3/EnableProcessorResponse.java (67%) create mode 100644 owl-bot-staging/v1beta3/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/EnableProcessorResponseOrBuilder.java rename {proto-google-cloud-document-ai-v1beta3 => owl-bot-staging/v1beta3/proto-google-cloud-document-ai-v1beta3}/src/main/java/com/google/cloud/documentai/v1beta3/FetchProcessorTypesRequest.java (64%) create mode 100644 owl-bot-staging/v1beta3/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/FetchProcessorTypesRequestOrBuilder.java rename {proto-google-cloud-document-ai-v1beta3 => owl-bot-staging/v1beta3/proto-google-cloud-document-ai-v1beta3}/src/main/java/com/google/cloud/documentai/v1beta3/FetchProcessorTypesResponse.java (73%) rename {proto-google-cloud-document-ai-v1beta3 => owl-bot-staging/v1beta3/proto-google-cloud-document-ai-v1beta3}/src/main/java/com/google/cloud/documentai/v1beta3/FetchProcessorTypesResponseOrBuilder.java (65%) rename {proto-google-cloud-document-ai-v1beta3 => owl-bot-staging/v1beta3/proto-google-cloud-document-ai-v1beta3}/src/main/java/com/google/cloud/documentai/v1beta3/GcsDocument.java (70%) rename {proto-google-cloud-document-ai-v1beta3 => owl-bot-staging/v1beta3/proto-google-cloud-document-ai-v1beta3}/src/main/java/com/google/cloud/documentai/v1beta3/GcsDocumentOrBuilder.java (54%) rename {proto-google-cloud-document-ai-v1beta3 => owl-bot-staging/v1beta3/proto-google-cloud-document-ai-v1beta3}/src/main/java/com/google/cloud/documentai/v1beta3/GcsDocuments.java (73%) rename {proto-google-cloud-document-ai-v1beta3 => owl-bot-staging/v1beta3/proto-google-cloud-document-ai-v1beta3}/src/main/java/com/google/cloud/documentai/v1beta3/GcsDocumentsOrBuilder.java (64%) rename {proto-google-cloud-document-ai-v1beta3 => owl-bot-staging/v1beta3/proto-google-cloud-document-ai-v1beta3}/src/main/java/com/google/cloud/documentai/v1beta3/GcsPrefix.java (69%) create mode 100644 owl-bot-staging/v1beta3/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/GcsPrefixOrBuilder.java create mode 100644 owl-bot-staging/v1beta3/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/GeometryProto.java rename {proto-google-cloud-document-ai-v1beta3 => owl-bot-staging/v1beta3/proto-google-cloud-document-ai-v1beta3}/src/main/java/com/google/cloud/documentai/v1beta3/HumanReviewConfigName.java (100%) rename {proto-google-cloud-document-ai-v1beta3 => owl-bot-staging/v1beta3/proto-google-cloud-document-ai-v1beta3}/src/main/java/com/google/cloud/documentai/v1beta3/HumanReviewStatus.java (73%) rename {proto-google-cloud-document-ai-v1beta3 => owl-bot-staging/v1beta3/proto-google-cloud-document-ai-v1beta3}/src/main/java/com/google/cloud/documentai/v1beta3/HumanReviewStatusOrBuilder.java (71%) rename {proto-google-cloud-document-ai-v1beta3 => owl-bot-staging/v1beta3/proto-google-cloud-document-ai-v1beta3}/src/main/java/com/google/cloud/documentai/v1beta3/ListProcessorsRequest.java (69%) rename {proto-google-cloud-document-ai-v1beta3 => owl-bot-staging/v1beta3/proto-google-cloud-document-ai-v1beta3}/src/main/java/com/google/cloud/documentai/v1beta3/ListProcessorsRequestOrBuilder.java (59%) rename {proto-google-cloud-document-ai-v1beta3 => owl-bot-staging/v1beta3/proto-google-cloud-document-ai-v1beta3}/src/main/java/com/google/cloud/documentai/v1beta3/ListProcessorsResponse.java (73%) rename {proto-google-cloud-document-ai-v1beta3 => owl-bot-staging/v1beta3/proto-google-cloud-document-ai-v1beta3}/src/main/java/com/google/cloud/documentai/v1beta3/ListProcessorsResponseOrBuilder.java (67%) rename {proto-google-cloud-document-ai-v1beta3 => owl-bot-staging/v1beta3/proto-google-cloud-document-ai-v1beta3}/src/main/java/com/google/cloud/documentai/v1beta3/LocationName.java (100%) rename {proto-google-cloud-document-ai-v1beta3 => owl-bot-staging/v1beta3/proto-google-cloud-document-ai-v1beta3}/src/main/java/com/google/cloud/documentai/v1beta3/NormalizedVertex.java (68%) create mode 100644 owl-bot-staging/v1beta3/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/NormalizedVertexOrBuilder.java create mode 100644 owl-bot-staging/v1beta3/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/OperationMetadataProto.java rename {proto-google-cloud-document-ai-v1beta3 => owl-bot-staging/v1beta3/proto-google-cloud-document-ai-v1beta3}/src/main/java/com/google/cloud/documentai/v1beta3/ProcessRequest.java (69%) rename {proto-google-cloud-document-ai-v1beta3 => owl-bot-staging/v1beta3/proto-google-cloud-document-ai-v1beta3}/src/main/java/com/google/cloud/documentai/v1beta3/ProcessRequestOrBuilder.java (67%) rename {proto-google-cloud-document-ai-v1beta3 => owl-bot-staging/v1beta3/proto-google-cloud-document-ai-v1beta3}/src/main/java/com/google/cloud/documentai/v1beta3/ProcessResponse.java (70%) rename {proto-google-cloud-document-ai-v1beta3 => owl-bot-staging/v1beta3/proto-google-cloud-document-ai-v1beta3}/src/main/java/com/google/cloud/documentai/v1beta3/ProcessResponseOrBuilder.java (72%) rename {proto-google-cloud-document-ai-v1beta3 => owl-bot-staging/v1beta3/proto-google-cloud-document-ai-v1beta3}/src/main/java/com/google/cloud/documentai/v1beta3/Processor.java (70%) rename {proto-google-cloud-document-ai-v1beta3 => owl-bot-staging/v1beta3/proto-google-cloud-document-ai-v1beta3}/src/main/java/com/google/cloud/documentai/v1beta3/ProcessorName.java (100%) rename {proto-google-cloud-document-ai-v1beta3 => owl-bot-staging/v1beta3/proto-google-cloud-document-ai-v1beta3}/src/main/java/com/google/cloud/documentai/v1beta3/ProcessorOrBuilder.java (64%) rename {proto-google-cloud-document-ai-v1beta3 => owl-bot-staging/v1beta3/proto-google-cloud-document-ai-v1beta3}/src/main/java/com/google/cloud/documentai/v1beta3/ProcessorType.java (69%) rename {proto-google-cloud-document-ai-v1beta3 => owl-bot-staging/v1beta3/proto-google-cloud-document-ai-v1beta3}/src/main/java/com/google/cloud/documentai/v1beta3/ProcessorTypeName.java (100%) rename {proto-google-cloud-document-ai-v1beta3 => owl-bot-staging/v1beta3/proto-google-cloud-document-ai-v1beta3}/src/main/java/com/google/cloud/documentai/v1beta3/ProcessorTypeOrBuilder.java (59%) rename {proto-google-cloud-document-ai-v1beta3 => owl-bot-staging/v1beta3/proto-google-cloud-document-ai-v1beta3}/src/main/java/com/google/cloud/documentai/v1beta3/RawDocument.java (71%) rename {proto-google-cloud-document-ai-v1beta3 => owl-bot-staging/v1beta3/proto-google-cloud-document-ai-v1beta3}/src/main/java/com/google/cloud/documentai/v1beta3/RawDocumentOrBuilder.java (55%) rename {proto-google-cloud-document-ai-v1beta3 => owl-bot-staging/v1beta3/proto-google-cloud-document-ai-v1beta3}/src/main/java/com/google/cloud/documentai/v1beta3/ReviewDocumentOperationMetadata.java (69%) rename {proto-google-cloud-document-ai-v1beta3 => owl-bot-staging/v1beta3/proto-google-cloud-document-ai-v1beta3}/src/main/java/com/google/cloud/documentai/v1beta3/ReviewDocumentOperationMetadataOrBuilder.java (80%) rename {proto-google-cloud-document-ai-v1beta3 => owl-bot-staging/v1beta3/proto-google-cloud-document-ai-v1beta3}/src/main/java/com/google/cloud/documentai/v1beta3/ReviewDocumentRequest.java (68%) rename {proto-google-cloud-document-ai-v1beta3 => owl-bot-staging/v1beta3/proto-google-cloud-document-ai-v1beta3}/src/main/java/com/google/cloud/documentai/v1beta3/ReviewDocumentRequestOrBuilder.java (65%) rename {proto-google-cloud-document-ai-v1beta3 => owl-bot-staging/v1beta3/proto-google-cloud-document-ai-v1beta3}/src/main/java/com/google/cloud/documentai/v1beta3/ReviewDocumentResponse.java (69%) create mode 100644 owl-bot-staging/v1beta3/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/ReviewDocumentResponseOrBuilder.java rename {proto-google-cloud-document-ai-v1beta3 => owl-bot-staging/v1beta3/proto-google-cloud-document-ai-v1beta3}/src/main/java/com/google/cloud/documentai/v1beta3/Vertex.java (68%) create mode 100644 owl-bot-staging/v1beta3/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/VertexOrBuilder.java rename {proto-google-cloud-document-ai-v1beta3 => owl-bot-staging/v1beta3/proto-google-cloud-document-ai-v1beta3}/src/main/proto/google/cloud/documentai/v1beta3/document.proto (100%) rename {proto-google-cloud-document-ai-v1beta3 => owl-bot-staging/v1beta3/proto-google-cloud-document-ai-v1beta3}/src/main/proto/google/cloud/documentai/v1beta3/document_io.proto (100%) rename {proto-google-cloud-document-ai-v1beta3 => owl-bot-staging/v1beta3/proto-google-cloud-document-ai-v1beta3}/src/main/proto/google/cloud/documentai/v1beta3/document_processor_service.proto (100%) rename {proto-google-cloud-document-ai-v1beta3 => owl-bot-staging/v1beta3/proto-google-cloud-document-ai-v1beta3}/src/main/proto/google/cloud/documentai/v1beta3/geometry.proto (100%) rename {proto-google-cloud-document-ai-v1beta3 => owl-bot-staging/v1beta3/proto-google-cloud-document-ai-v1beta3}/src/main/proto/google/cloud/documentai/v1beta3/operation_metadata.proto (100%) rename {proto-google-cloud-document-ai-v1beta3 => owl-bot-staging/v1beta3/proto-google-cloud-document-ai-v1beta3}/src/main/proto/google/cloud/documentai/v1beta3/processor.proto (100%) rename {proto-google-cloud-document-ai-v1beta3 => owl-bot-staging/v1beta3/proto-google-cloud-document-ai-v1beta3}/src/main/proto/google/cloud/documentai/v1beta3/processor_type.proto (100%) create mode 100644 owl-bot-staging/v1beta3/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorserviceclient/batchprocessdocuments/AsyncBatchProcessDocuments.java create mode 100644 owl-bot-staging/v1beta3/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorserviceclient/batchprocessdocuments/AsyncBatchProcessDocumentsLRO.java create mode 100644 owl-bot-staging/v1beta3/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorserviceclient/batchprocessdocuments/SyncBatchProcessDocuments.java create mode 100644 owl-bot-staging/v1beta3/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorserviceclient/batchprocessdocuments/SyncBatchProcessDocumentsProcessorname.java create mode 100644 owl-bot-staging/v1beta3/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorserviceclient/batchprocessdocuments/SyncBatchProcessDocumentsString.java create mode 100644 owl-bot-staging/v1beta3/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorserviceclient/create/SyncCreateSetCredentialsProvider.java create mode 100644 owl-bot-staging/v1beta3/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorserviceclient/create/SyncCreateSetCredentialsProvider1.java create mode 100644 owl-bot-staging/v1beta3/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorserviceclient/create/SyncCreateSetEndpoint.java create mode 100644 owl-bot-staging/v1beta3/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorserviceclient/createprocessor/AsyncCreateProcessor.java create mode 100644 owl-bot-staging/v1beta3/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorserviceclient/createprocessor/SyncCreateProcessor.java create mode 100644 owl-bot-staging/v1beta3/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorserviceclient/createprocessor/SyncCreateProcessorLocationnameProcessor.java create mode 100644 owl-bot-staging/v1beta3/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorserviceclient/createprocessor/SyncCreateProcessorStringProcessor.java create mode 100644 owl-bot-staging/v1beta3/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorserviceclient/deleteprocessor/AsyncDeleteProcessor.java create mode 100644 owl-bot-staging/v1beta3/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorserviceclient/deleteprocessor/AsyncDeleteProcessorLRO.java create mode 100644 owl-bot-staging/v1beta3/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorserviceclient/deleteprocessor/SyncDeleteProcessor.java create mode 100644 owl-bot-staging/v1beta3/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorserviceclient/deleteprocessor/SyncDeleteProcessorProcessorname.java create mode 100644 owl-bot-staging/v1beta3/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorserviceclient/deleteprocessor/SyncDeleteProcessorString.java create mode 100644 owl-bot-staging/v1beta3/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorserviceclient/disableprocessor/AsyncDisableProcessor.java create mode 100644 owl-bot-staging/v1beta3/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorserviceclient/disableprocessor/AsyncDisableProcessorLRO.java create mode 100644 owl-bot-staging/v1beta3/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorserviceclient/disableprocessor/SyncDisableProcessor.java create mode 100644 owl-bot-staging/v1beta3/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorserviceclient/enableprocessor/AsyncEnableProcessor.java create mode 100644 owl-bot-staging/v1beta3/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorserviceclient/enableprocessor/AsyncEnableProcessorLRO.java create mode 100644 owl-bot-staging/v1beta3/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorserviceclient/enableprocessor/SyncEnableProcessor.java create mode 100644 owl-bot-staging/v1beta3/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorserviceclient/fetchprocessortypes/AsyncFetchProcessorTypes.java create mode 100644 owl-bot-staging/v1beta3/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorserviceclient/fetchprocessortypes/SyncFetchProcessorTypes.java create mode 100644 owl-bot-staging/v1beta3/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorserviceclient/fetchprocessortypes/SyncFetchProcessorTypesLocationname.java create mode 100644 owl-bot-staging/v1beta3/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorserviceclient/fetchprocessortypes/SyncFetchProcessorTypesString.java create mode 100644 owl-bot-staging/v1beta3/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorserviceclient/listprocessors/AsyncListProcessors.java create mode 100644 owl-bot-staging/v1beta3/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorserviceclient/listprocessors/AsyncListProcessorsPaged.java create mode 100644 owl-bot-staging/v1beta3/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorserviceclient/listprocessors/SyncListProcessors.java create mode 100644 owl-bot-staging/v1beta3/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorserviceclient/listprocessors/SyncListProcessorsLocationname.java create mode 100644 owl-bot-staging/v1beta3/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorserviceclient/listprocessors/SyncListProcessorsString.java create mode 100644 owl-bot-staging/v1beta3/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorserviceclient/processdocument/AsyncProcessDocument.java create mode 100644 owl-bot-staging/v1beta3/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorserviceclient/processdocument/SyncProcessDocument.java create mode 100644 owl-bot-staging/v1beta3/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorserviceclient/processdocument/SyncProcessDocumentProcessorname.java create mode 100644 owl-bot-staging/v1beta3/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorserviceclient/processdocument/SyncProcessDocumentString.java create mode 100644 owl-bot-staging/v1beta3/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorserviceclient/reviewdocument/AsyncReviewDocument.java create mode 100644 owl-bot-staging/v1beta3/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorserviceclient/reviewdocument/AsyncReviewDocumentLRO.java create mode 100644 owl-bot-staging/v1beta3/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorserviceclient/reviewdocument/SyncReviewDocument.java create mode 100644 owl-bot-staging/v1beta3/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorserviceclient/reviewdocument/SyncReviewDocumentHumanreviewconfigname.java create mode 100644 owl-bot-staging/v1beta3/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorserviceclient/reviewdocument/SyncReviewDocumentString.java create mode 100644 owl-bot-staging/v1beta3/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorservicesettings/processdocument/SyncProcessDocument.java create mode 100644 owl-bot-staging/v1beta3/samples/snippets/generated/com/google/cloud/documentai/v1beta3/stub/documentprocessorservicestubsettings/processdocument/SyncProcessDocument.java delete mode 100644 proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/BatchProcessResponseOrBuilder.java delete mode 100644 proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/DocumentAiProcessorService.java delete mode 100644 proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/DocumentIoProto.java delete mode 100644 proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/DocumentProto.java delete mode 100644 proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/GcsPrefixOrBuilder.java delete mode 100644 proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/GeometryProto.java delete mode 100644 proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/NormalizedVertexOrBuilder.java delete mode 100644 proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/OperationMetadataProto.java delete mode 100644 proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/ReviewDocumentResponseOrBuilder.java delete mode 100644 proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/VertexOrBuilder.java delete mode 100644 proto-google-cloud-document-ai-v1beta1/src/main/java/com/google/cloud/documentai/v1beta1/DocumentAiProto.java delete mode 100644 proto-google-cloud-document-ai-v1beta1/src/main/java/com/google/cloud/documentai/v1beta1/DocumentProto.java delete mode 100644 proto-google-cloud-document-ai-v1beta1/src/main/java/com/google/cloud/documentai/v1beta1/GcsDestinationOrBuilder.java delete mode 100644 proto-google-cloud-document-ai-v1beta1/src/main/java/com/google/cloud/documentai/v1beta1/GcsSourceOrBuilder.java delete mode 100644 proto-google-cloud-document-ai-v1beta1/src/main/java/com/google/cloud/documentai/v1beta1/GeometryProto.java delete mode 100644 proto-google-cloud-document-ai-v1beta1/src/main/java/com/google/cloud/documentai/v1beta1/NormalizedVertexOrBuilder.java delete mode 100644 proto-google-cloud-document-ai-v1beta1/src/main/java/com/google/cloud/documentai/v1beta1/VertexOrBuilder.java delete mode 100644 proto-google-cloud-document-ai-v1beta2/src/main/java/com/google/cloud/documentai/v1beta2/DocumentAiProto.java delete mode 100644 proto-google-cloud-document-ai-v1beta2/src/main/java/com/google/cloud/documentai/v1beta2/DocumentProto.java delete mode 100644 proto-google-cloud-document-ai-v1beta2/src/main/java/com/google/cloud/documentai/v1beta2/GcsDestinationOrBuilder.java delete mode 100644 proto-google-cloud-document-ai-v1beta2/src/main/java/com/google/cloud/documentai/v1beta2/GcsSourceOrBuilder.java delete mode 100644 proto-google-cloud-document-ai-v1beta2/src/main/java/com/google/cloud/documentai/v1beta2/GeometryProto.java delete mode 100644 proto-google-cloud-document-ai-v1beta2/src/main/java/com/google/cloud/documentai/v1beta2/NormalizedVertexOrBuilder.java delete mode 100644 proto-google-cloud-document-ai-v1beta2/src/main/java/com/google/cloud/documentai/v1beta2/VertexOrBuilder.java delete mode 100644 proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/BatchProcessResponseOrBuilder.java delete mode 100644 proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/DeleteProcessorRequestOrBuilder.java delete mode 100644 proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/DisableProcessorRequestOrBuilder.java delete mode 100644 proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/DisableProcessorResponseOrBuilder.java delete mode 100644 proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/DocumentAiProcessor.java delete mode 100644 proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/DocumentAiProcessorService.java delete mode 100644 proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/DocumentAiProcessorType.java delete mode 100644 proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/DocumentIoProto.java delete mode 100644 proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/DocumentOutputConfigOrBuilder.java delete mode 100644 proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/DocumentProto.java delete mode 100644 proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/EnableProcessorRequestOrBuilder.java delete mode 100644 proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/EnableProcessorResponseOrBuilder.java delete mode 100644 proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/FetchProcessorTypesRequestOrBuilder.java delete mode 100644 proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/GcsPrefixOrBuilder.java delete mode 100644 proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/GeometryProto.java delete mode 100644 proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/NormalizedVertexOrBuilder.java delete mode 100644 proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/OperationMetadataProto.java delete mode 100644 proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/ReviewDocumentResponseOrBuilder.java delete mode 100644 proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/VertexOrBuilder.java diff --git a/grpc-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/DocumentProcessorServiceGrpc.java b/grpc-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/DocumentProcessorServiceGrpc.java deleted file mode 100644 index 4c967e9f..00000000 --- a/grpc-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/DocumentProcessorServiceGrpc.java +++ /dev/null @@ -1,1359 +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. - */ -package com.google.cloud.documentai.v1beta3; - -import static io.grpc.MethodDescriptor.generateFullMethodName; - -/** - * - * - *
- * Service to call Cloud DocumentAI to process documents according to the
- * processor's definition. Processors are built using state-of-the-art Google
- * AI such as natural language, computer vision, and translation to extract
- * structured information from unstructured or semi-structured documents.
- * 
- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/documentai/v1beta3/document_processor_service.proto") -@io.grpc.stub.annotations.GrpcGenerated -public final class DocumentProcessorServiceGrpc { - - private DocumentProcessorServiceGrpc() {} - - public static final String SERVICE_NAME = - "google.cloud.documentai.v1beta3.DocumentProcessorService"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.documentai.v1beta3.ProcessRequest, - com.google.cloud.documentai.v1beta3.ProcessResponse> - getProcessDocumentMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ProcessDocument", - requestType = com.google.cloud.documentai.v1beta3.ProcessRequest.class, - responseType = com.google.cloud.documentai.v1beta3.ProcessResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.documentai.v1beta3.ProcessRequest, - com.google.cloud.documentai.v1beta3.ProcessResponse> - getProcessDocumentMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.documentai.v1beta3.ProcessRequest, - com.google.cloud.documentai.v1beta3.ProcessResponse> - getProcessDocumentMethod; - if ((getProcessDocumentMethod = DocumentProcessorServiceGrpc.getProcessDocumentMethod) - == null) { - synchronized (DocumentProcessorServiceGrpc.class) { - if ((getProcessDocumentMethod = DocumentProcessorServiceGrpc.getProcessDocumentMethod) - == null) { - DocumentProcessorServiceGrpc.getProcessDocumentMethod = - getProcessDocumentMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ProcessDocument")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.documentai.v1beta3.ProcessRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.documentai.v1beta3.ProcessResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new DocumentProcessorServiceMethodDescriptorSupplier("ProcessDocument")) - .build(); - } - } - } - return getProcessDocumentMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.documentai.v1beta3.BatchProcessRequest, com.google.longrunning.Operation> - getBatchProcessDocumentsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "BatchProcessDocuments", - requestType = com.google.cloud.documentai.v1beta3.BatchProcessRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.documentai.v1beta3.BatchProcessRequest, com.google.longrunning.Operation> - getBatchProcessDocumentsMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.documentai.v1beta3.BatchProcessRequest, - com.google.longrunning.Operation> - getBatchProcessDocumentsMethod; - if ((getBatchProcessDocumentsMethod = - DocumentProcessorServiceGrpc.getBatchProcessDocumentsMethod) - == null) { - synchronized (DocumentProcessorServiceGrpc.class) { - if ((getBatchProcessDocumentsMethod = - DocumentProcessorServiceGrpc.getBatchProcessDocumentsMethod) - == null) { - DocumentProcessorServiceGrpc.getBatchProcessDocumentsMethod = - getBatchProcessDocumentsMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "BatchProcessDocuments")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.documentai.v1beta3.BatchProcessRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new DocumentProcessorServiceMethodDescriptorSupplier( - "BatchProcessDocuments")) - .build(); - } - } - } - return getBatchProcessDocumentsMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.documentai.v1beta3.FetchProcessorTypesRequest, - com.google.cloud.documentai.v1beta3.FetchProcessorTypesResponse> - getFetchProcessorTypesMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "FetchProcessorTypes", - requestType = com.google.cloud.documentai.v1beta3.FetchProcessorTypesRequest.class, - responseType = com.google.cloud.documentai.v1beta3.FetchProcessorTypesResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.documentai.v1beta3.FetchProcessorTypesRequest, - com.google.cloud.documentai.v1beta3.FetchProcessorTypesResponse> - getFetchProcessorTypesMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.documentai.v1beta3.FetchProcessorTypesRequest, - com.google.cloud.documentai.v1beta3.FetchProcessorTypesResponse> - getFetchProcessorTypesMethod; - if ((getFetchProcessorTypesMethod = DocumentProcessorServiceGrpc.getFetchProcessorTypesMethod) - == null) { - synchronized (DocumentProcessorServiceGrpc.class) { - if ((getFetchProcessorTypesMethod = - DocumentProcessorServiceGrpc.getFetchProcessorTypesMethod) - == null) { - DocumentProcessorServiceGrpc.getFetchProcessorTypesMethod = - getFetchProcessorTypesMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "FetchProcessorTypes")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.documentai.v1beta3.FetchProcessorTypesRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.documentai.v1beta3.FetchProcessorTypesResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new DocumentProcessorServiceMethodDescriptorSupplier( - "FetchProcessorTypes")) - .build(); - } - } - } - return getFetchProcessorTypesMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.documentai.v1beta3.ListProcessorsRequest, - com.google.cloud.documentai.v1beta3.ListProcessorsResponse> - getListProcessorsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListProcessors", - requestType = com.google.cloud.documentai.v1beta3.ListProcessorsRequest.class, - responseType = com.google.cloud.documentai.v1beta3.ListProcessorsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.documentai.v1beta3.ListProcessorsRequest, - com.google.cloud.documentai.v1beta3.ListProcessorsResponse> - getListProcessorsMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.documentai.v1beta3.ListProcessorsRequest, - com.google.cloud.documentai.v1beta3.ListProcessorsResponse> - getListProcessorsMethod; - if ((getListProcessorsMethod = DocumentProcessorServiceGrpc.getListProcessorsMethod) == null) { - synchronized (DocumentProcessorServiceGrpc.class) { - if ((getListProcessorsMethod = DocumentProcessorServiceGrpc.getListProcessorsMethod) - == null) { - DocumentProcessorServiceGrpc.getListProcessorsMethod = - getListProcessorsMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListProcessors")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.documentai.v1beta3.ListProcessorsRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.documentai.v1beta3.ListProcessorsResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new DocumentProcessorServiceMethodDescriptorSupplier("ListProcessors")) - .build(); - } - } - } - return getListProcessorsMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.documentai.v1beta3.CreateProcessorRequest, - com.google.cloud.documentai.v1beta3.Processor> - getCreateProcessorMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateProcessor", - requestType = com.google.cloud.documentai.v1beta3.CreateProcessorRequest.class, - responseType = com.google.cloud.documentai.v1beta3.Processor.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.documentai.v1beta3.CreateProcessorRequest, - com.google.cloud.documentai.v1beta3.Processor> - getCreateProcessorMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.documentai.v1beta3.CreateProcessorRequest, - com.google.cloud.documentai.v1beta3.Processor> - getCreateProcessorMethod; - if ((getCreateProcessorMethod = DocumentProcessorServiceGrpc.getCreateProcessorMethod) - == null) { - synchronized (DocumentProcessorServiceGrpc.class) { - if ((getCreateProcessorMethod = DocumentProcessorServiceGrpc.getCreateProcessorMethod) - == null) { - DocumentProcessorServiceGrpc.getCreateProcessorMethod = - getCreateProcessorMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateProcessor")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.documentai.v1beta3.CreateProcessorRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.documentai.v1beta3.Processor.getDefaultInstance())) - .setSchemaDescriptor( - new DocumentProcessorServiceMethodDescriptorSupplier("CreateProcessor")) - .build(); - } - } - } - return getCreateProcessorMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.documentai.v1beta3.DeleteProcessorRequest, - com.google.longrunning.Operation> - getDeleteProcessorMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteProcessor", - requestType = com.google.cloud.documentai.v1beta3.DeleteProcessorRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.documentai.v1beta3.DeleteProcessorRequest, - com.google.longrunning.Operation> - getDeleteProcessorMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.documentai.v1beta3.DeleteProcessorRequest, - com.google.longrunning.Operation> - getDeleteProcessorMethod; - if ((getDeleteProcessorMethod = DocumentProcessorServiceGrpc.getDeleteProcessorMethod) - == null) { - synchronized (DocumentProcessorServiceGrpc.class) { - if ((getDeleteProcessorMethod = DocumentProcessorServiceGrpc.getDeleteProcessorMethod) - == null) { - DocumentProcessorServiceGrpc.getDeleteProcessorMethod = - getDeleteProcessorMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteProcessor")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.documentai.v1beta3.DeleteProcessorRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new DocumentProcessorServiceMethodDescriptorSupplier("DeleteProcessor")) - .build(); - } - } - } - return getDeleteProcessorMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.documentai.v1beta3.EnableProcessorRequest, - com.google.longrunning.Operation> - getEnableProcessorMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "EnableProcessor", - requestType = com.google.cloud.documentai.v1beta3.EnableProcessorRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.documentai.v1beta3.EnableProcessorRequest, - com.google.longrunning.Operation> - getEnableProcessorMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.documentai.v1beta3.EnableProcessorRequest, - com.google.longrunning.Operation> - getEnableProcessorMethod; - if ((getEnableProcessorMethod = DocumentProcessorServiceGrpc.getEnableProcessorMethod) - == null) { - synchronized (DocumentProcessorServiceGrpc.class) { - if ((getEnableProcessorMethod = DocumentProcessorServiceGrpc.getEnableProcessorMethod) - == null) { - DocumentProcessorServiceGrpc.getEnableProcessorMethod = - getEnableProcessorMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "EnableProcessor")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.documentai.v1beta3.EnableProcessorRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new DocumentProcessorServiceMethodDescriptorSupplier("EnableProcessor")) - .build(); - } - } - } - return getEnableProcessorMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.documentai.v1beta3.DisableProcessorRequest, - com.google.longrunning.Operation> - getDisableProcessorMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DisableProcessor", - requestType = com.google.cloud.documentai.v1beta3.DisableProcessorRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.documentai.v1beta3.DisableProcessorRequest, - com.google.longrunning.Operation> - getDisableProcessorMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.documentai.v1beta3.DisableProcessorRequest, - com.google.longrunning.Operation> - getDisableProcessorMethod; - if ((getDisableProcessorMethod = DocumentProcessorServiceGrpc.getDisableProcessorMethod) - == null) { - synchronized (DocumentProcessorServiceGrpc.class) { - if ((getDisableProcessorMethod = DocumentProcessorServiceGrpc.getDisableProcessorMethod) - == null) { - DocumentProcessorServiceGrpc.getDisableProcessorMethod = - getDisableProcessorMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DisableProcessor")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.documentai.v1beta3.DisableProcessorRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new DocumentProcessorServiceMethodDescriptorSupplier("DisableProcessor")) - .build(); - } - } - } - return getDisableProcessorMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.documentai.v1beta3.ReviewDocumentRequest, - com.google.longrunning.Operation> - getReviewDocumentMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ReviewDocument", - requestType = com.google.cloud.documentai.v1beta3.ReviewDocumentRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.documentai.v1beta3.ReviewDocumentRequest, - com.google.longrunning.Operation> - getReviewDocumentMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.documentai.v1beta3.ReviewDocumentRequest, - com.google.longrunning.Operation> - getReviewDocumentMethod; - if ((getReviewDocumentMethod = DocumentProcessorServiceGrpc.getReviewDocumentMethod) == null) { - synchronized (DocumentProcessorServiceGrpc.class) { - if ((getReviewDocumentMethod = DocumentProcessorServiceGrpc.getReviewDocumentMethod) - == null) { - DocumentProcessorServiceGrpc.getReviewDocumentMethod = - getReviewDocumentMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ReviewDocument")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.documentai.v1beta3.ReviewDocumentRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new DocumentProcessorServiceMethodDescriptorSupplier("ReviewDocument")) - .build(); - } - } - } - return getReviewDocumentMethod; - } - - /** Creates a new async stub that supports all call types for the service */ - public static DocumentProcessorServiceStub newStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public DocumentProcessorServiceStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new DocumentProcessorServiceStub(channel, callOptions); - } - }; - return DocumentProcessorServiceStub.newStub(factory, channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static DocumentProcessorServiceBlockingStub newBlockingStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public DocumentProcessorServiceBlockingStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new DocumentProcessorServiceBlockingStub(channel, callOptions); - } - }; - return DocumentProcessorServiceBlockingStub.newStub(factory, channel); - } - - /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ - public static DocumentProcessorServiceFutureStub newFutureStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public DocumentProcessorServiceFutureStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new DocumentProcessorServiceFutureStub(channel, callOptions); - } - }; - return DocumentProcessorServiceFutureStub.newStub(factory, channel); - } - - /** - * - * - *
-   * Service to call Cloud DocumentAI to process documents according to the
-   * processor's definition. Processors are built using state-of-the-art Google
-   * AI such as natural language, computer vision, and translation to extract
-   * structured information from unstructured or semi-structured documents.
-   * 
- */ - public abstract static class DocumentProcessorServiceImplBase implements io.grpc.BindableService { - - /** - * - * - *
-     * Processes a single document.
-     * 
- */ - public void processDocument( - com.google.cloud.documentai.v1beta3.ProcessRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getProcessDocumentMethod(), responseObserver); - } - - /** - * - * - *
-     * LRO endpoint to batch process many documents. The output is written
-     * to Cloud Storage as JSON in the [Document] format.
-     * 
- */ - public void batchProcessDocuments( - com.google.cloud.documentai.v1beta3.BatchProcessRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getBatchProcessDocumentsMethod(), responseObserver); - } - - /** - * - * - *
-     * Fetches processor types.
-     * 
- */ - public void fetchProcessorTypes( - com.google.cloud.documentai.v1beta3.FetchProcessorTypesRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getFetchProcessorTypesMethod(), responseObserver); - } - - /** - * - * - *
-     * Lists all processors which belong to this project.
-     * 
- */ - public void listProcessors( - com.google.cloud.documentai.v1beta3.ListProcessorsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListProcessorsMethod(), responseObserver); - } - - /** - * - * - *
-     * Creates a processor from the type processor that the user chose.
-     * The processor will be at "ENABLED" state by default after its creation.
-     * 
- */ - public void createProcessor( - com.google.cloud.documentai.v1beta3.CreateProcessorRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getCreateProcessorMethod(), responseObserver); - } - - /** - * - * - *
-     * Deletes the processor, unloads all deployed model artifacts if it was
-     * enabled and then deletes all artifacts associated with this processor.
-     * 
- */ - public void deleteProcessor( - com.google.cloud.documentai.v1beta3.DeleteProcessorRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getDeleteProcessorMethod(), responseObserver); - } - - /** - * - * - *
-     * Enables a processor
-     * 
- */ - public void enableProcessor( - com.google.cloud.documentai.v1beta3.EnableProcessorRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getEnableProcessorMethod(), responseObserver); - } - - /** - * - * - *
-     * Disables a processor
-     * 
- */ - public void disableProcessor( - com.google.cloud.documentai.v1beta3.DisableProcessorRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getDisableProcessorMethod(), responseObserver); - } - - /** - * - * - *
-     * Send a document for Human Review. The input document should be processed by
-     * the specified processor.
-     * 
- */ - public void reviewDocument( - com.google.cloud.documentai.v1beta3.ReviewDocumentRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getReviewDocumentMethod(), responseObserver); - } - - @java.lang.Override - public final io.grpc.ServerServiceDefinition bindService() { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getProcessDocumentMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.documentai.v1beta3.ProcessRequest, - com.google.cloud.documentai.v1beta3.ProcessResponse>( - this, METHODID_PROCESS_DOCUMENT))) - .addMethod( - getBatchProcessDocumentsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.documentai.v1beta3.BatchProcessRequest, - com.google.longrunning.Operation>(this, METHODID_BATCH_PROCESS_DOCUMENTS))) - .addMethod( - getFetchProcessorTypesMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.documentai.v1beta3.FetchProcessorTypesRequest, - com.google.cloud.documentai.v1beta3.FetchProcessorTypesResponse>( - this, METHODID_FETCH_PROCESSOR_TYPES))) - .addMethod( - getListProcessorsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.documentai.v1beta3.ListProcessorsRequest, - com.google.cloud.documentai.v1beta3.ListProcessorsResponse>( - this, METHODID_LIST_PROCESSORS))) - .addMethod( - getCreateProcessorMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.documentai.v1beta3.CreateProcessorRequest, - com.google.cloud.documentai.v1beta3.Processor>( - this, METHODID_CREATE_PROCESSOR))) - .addMethod( - getDeleteProcessorMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.documentai.v1beta3.DeleteProcessorRequest, - com.google.longrunning.Operation>(this, METHODID_DELETE_PROCESSOR))) - .addMethod( - getEnableProcessorMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.documentai.v1beta3.EnableProcessorRequest, - com.google.longrunning.Operation>(this, METHODID_ENABLE_PROCESSOR))) - .addMethod( - getDisableProcessorMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.documentai.v1beta3.DisableProcessorRequest, - com.google.longrunning.Operation>(this, METHODID_DISABLE_PROCESSOR))) - .addMethod( - getReviewDocumentMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.documentai.v1beta3.ReviewDocumentRequest, - com.google.longrunning.Operation>(this, METHODID_REVIEW_DOCUMENT))) - .build(); - } - } - - /** - * - * - *
-   * Service to call Cloud DocumentAI to process documents according to the
-   * processor's definition. Processors are built using state-of-the-art Google
-   * AI such as natural language, computer vision, and translation to extract
-   * structured information from unstructured or semi-structured documents.
-   * 
- */ - public static final class DocumentProcessorServiceStub - extends io.grpc.stub.AbstractAsyncStub { - private DocumentProcessorServiceStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected DocumentProcessorServiceStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new DocumentProcessorServiceStub(channel, callOptions); - } - - /** - * - * - *
-     * Processes a single document.
-     * 
- */ - public void processDocument( - com.google.cloud.documentai.v1beta3.ProcessRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getProcessDocumentMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * LRO endpoint to batch process many documents. The output is written
-     * to Cloud Storage as JSON in the [Document] format.
-     * 
- */ - public void batchProcessDocuments( - com.google.cloud.documentai.v1beta3.BatchProcessRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getBatchProcessDocumentsMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Fetches processor types.
-     * 
- */ - public void fetchProcessorTypes( - com.google.cloud.documentai.v1beta3.FetchProcessorTypesRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getFetchProcessorTypesMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Lists all processors which belong to this project.
-     * 
- */ - public void listProcessors( - com.google.cloud.documentai.v1beta3.ListProcessorsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListProcessorsMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Creates a processor from the type processor that the user chose.
-     * The processor will be at "ENABLED" state by default after its creation.
-     * 
- */ - public void createProcessor( - com.google.cloud.documentai.v1beta3.CreateProcessorRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateProcessorMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Deletes the processor, unloads all deployed model artifacts if it was
-     * enabled and then deletes all artifacts associated with this processor.
-     * 
- */ - public void deleteProcessor( - com.google.cloud.documentai.v1beta3.DeleteProcessorRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteProcessorMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Enables a processor
-     * 
- */ - public void enableProcessor( - com.google.cloud.documentai.v1beta3.EnableProcessorRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getEnableProcessorMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Disables a processor
-     * 
- */ - public void disableProcessor( - com.google.cloud.documentai.v1beta3.DisableProcessorRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDisableProcessorMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Send a document for Human Review. The input document should be processed by
-     * the specified processor.
-     * 
- */ - public void reviewDocument( - com.google.cloud.documentai.v1beta3.ReviewDocumentRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getReviewDocumentMethod(), getCallOptions()), - request, - responseObserver); - } - } - - /** - * - * - *
-   * Service to call Cloud DocumentAI to process documents according to the
-   * processor's definition. Processors are built using state-of-the-art Google
-   * AI such as natural language, computer vision, and translation to extract
-   * structured information from unstructured or semi-structured documents.
-   * 
- */ - public static final class DocumentProcessorServiceBlockingStub - extends io.grpc.stub.AbstractBlockingStub { - private DocumentProcessorServiceBlockingStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected DocumentProcessorServiceBlockingStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new DocumentProcessorServiceBlockingStub(channel, callOptions); - } - - /** - * - * - *
-     * Processes a single document.
-     * 
- */ - public com.google.cloud.documentai.v1beta3.ProcessResponse processDocument( - com.google.cloud.documentai.v1beta3.ProcessRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getProcessDocumentMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * LRO endpoint to batch process many documents. The output is written
-     * to Cloud Storage as JSON in the [Document] format.
-     * 
- */ - public com.google.longrunning.Operation batchProcessDocuments( - com.google.cloud.documentai.v1beta3.BatchProcessRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getBatchProcessDocumentsMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Fetches processor types.
-     * 
- */ - public com.google.cloud.documentai.v1beta3.FetchProcessorTypesResponse fetchProcessorTypes( - com.google.cloud.documentai.v1beta3.FetchProcessorTypesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getFetchProcessorTypesMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Lists all processors which belong to this project.
-     * 
- */ - public com.google.cloud.documentai.v1beta3.ListProcessorsResponse listProcessors( - com.google.cloud.documentai.v1beta3.ListProcessorsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListProcessorsMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Creates a processor from the type processor that the user chose.
-     * The processor will be at "ENABLED" state by default after its creation.
-     * 
- */ - public com.google.cloud.documentai.v1beta3.Processor createProcessor( - com.google.cloud.documentai.v1beta3.CreateProcessorRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateProcessorMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Deletes the processor, unloads all deployed model artifacts if it was
-     * enabled and then deletes all artifacts associated with this processor.
-     * 
- */ - public com.google.longrunning.Operation deleteProcessor( - com.google.cloud.documentai.v1beta3.DeleteProcessorRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteProcessorMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Enables a processor
-     * 
- */ - public com.google.longrunning.Operation enableProcessor( - com.google.cloud.documentai.v1beta3.EnableProcessorRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getEnableProcessorMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Disables a processor
-     * 
- */ - public com.google.longrunning.Operation disableProcessor( - com.google.cloud.documentai.v1beta3.DisableProcessorRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDisableProcessorMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Send a document for Human Review. The input document should be processed by
-     * the specified processor.
-     * 
- */ - public com.google.longrunning.Operation reviewDocument( - com.google.cloud.documentai.v1beta3.ReviewDocumentRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getReviewDocumentMethod(), getCallOptions(), request); - } - } - - /** - * - * - *
-   * Service to call Cloud DocumentAI to process documents according to the
-   * processor's definition. Processors are built using state-of-the-art Google
-   * AI such as natural language, computer vision, and translation to extract
-   * structured information from unstructured or semi-structured documents.
-   * 
- */ - public static final class DocumentProcessorServiceFutureStub - extends io.grpc.stub.AbstractFutureStub { - private DocumentProcessorServiceFutureStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected DocumentProcessorServiceFutureStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new DocumentProcessorServiceFutureStub(channel, callOptions); - } - - /** - * - * - *
-     * Processes a single document.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.documentai.v1beta3.ProcessResponse> - processDocument(com.google.cloud.documentai.v1beta3.ProcessRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getProcessDocumentMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * LRO endpoint to batch process many documents. The output is written
-     * to Cloud Storage as JSON in the [Document] format.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - batchProcessDocuments(com.google.cloud.documentai.v1beta3.BatchProcessRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getBatchProcessDocumentsMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Fetches processor types.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.documentai.v1beta3.FetchProcessorTypesResponse> - fetchProcessorTypes( - com.google.cloud.documentai.v1beta3.FetchProcessorTypesRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getFetchProcessorTypesMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Lists all processors which belong to this project.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.documentai.v1beta3.ListProcessorsResponse> - listProcessors(com.google.cloud.documentai.v1beta3.ListProcessorsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListProcessorsMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Creates a processor from the type processor that the user chose.
-     * The processor will be at "ENABLED" state by default after its creation.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.documentai.v1beta3.Processor> - createProcessor(com.google.cloud.documentai.v1beta3.CreateProcessorRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateProcessorMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Deletes the processor, unloads all deployed model artifacts if it was
-     * enabled and then deletes all artifacts associated with this processor.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - deleteProcessor(com.google.cloud.documentai.v1beta3.DeleteProcessorRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteProcessorMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Enables a processor
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - enableProcessor(com.google.cloud.documentai.v1beta3.EnableProcessorRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getEnableProcessorMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Disables a processor
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - disableProcessor(com.google.cloud.documentai.v1beta3.DisableProcessorRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDisableProcessorMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Send a document for Human Review. The input document should be processed by
-     * the specified processor.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - reviewDocument(com.google.cloud.documentai.v1beta3.ReviewDocumentRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getReviewDocumentMethod(), getCallOptions()), request); - } - } - - private static final int METHODID_PROCESS_DOCUMENT = 0; - private static final int METHODID_BATCH_PROCESS_DOCUMENTS = 1; - private static final int METHODID_FETCH_PROCESSOR_TYPES = 2; - private static final int METHODID_LIST_PROCESSORS = 3; - private static final int METHODID_CREATE_PROCESSOR = 4; - private static final int METHODID_DELETE_PROCESSOR = 5; - private static final int METHODID_ENABLE_PROCESSOR = 6; - private static final int METHODID_DISABLE_PROCESSOR = 7; - private static final int METHODID_REVIEW_DOCUMENT = 8; - - 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 DocumentProcessorServiceImplBase serviceImpl; - private final int methodId; - - MethodHandlers(DocumentProcessorServiceImplBase serviceImpl, int methodId) { - this.serviceImpl = serviceImpl; - this.methodId = methodId; - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - case METHODID_PROCESS_DOCUMENT: - serviceImpl.processDocument( - (com.google.cloud.documentai.v1beta3.ProcessRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_BATCH_PROCESS_DOCUMENTS: - serviceImpl.batchProcessDocuments( - (com.google.cloud.documentai.v1beta3.BatchProcessRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_FETCH_PROCESSOR_TYPES: - serviceImpl.fetchProcessorTypes( - (com.google.cloud.documentai.v1beta3.FetchProcessorTypesRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.documentai.v1beta3.FetchProcessorTypesResponse>) - responseObserver); - break; - case METHODID_LIST_PROCESSORS: - serviceImpl.listProcessors( - (com.google.cloud.documentai.v1beta3.ListProcessorsRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.documentai.v1beta3.ListProcessorsResponse>) - responseObserver); - break; - case METHODID_CREATE_PROCESSOR: - serviceImpl.createProcessor( - (com.google.cloud.documentai.v1beta3.CreateProcessorRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_DELETE_PROCESSOR: - serviceImpl.deleteProcessor( - (com.google.cloud.documentai.v1beta3.DeleteProcessorRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_ENABLE_PROCESSOR: - serviceImpl.enableProcessor( - (com.google.cloud.documentai.v1beta3.EnableProcessorRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DISABLE_PROCESSOR: - serviceImpl.disableProcessor( - (com.google.cloud.documentai.v1beta3.DisableProcessorRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_REVIEW_DOCUMENT: - serviceImpl.reviewDocument( - (com.google.cloud.documentai.v1beta3.ReviewDocumentRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - default: - throw new AssertionError(); - } - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public io.grpc.stub.StreamObserver invoke( - io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - default: - throw new AssertionError(); - } - } - } - - private abstract static class DocumentProcessorServiceBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, - io.grpc.protobuf.ProtoServiceDescriptorSupplier { - DocumentProcessorServiceBaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return com.google.cloud.documentai.v1beta3.DocumentAiProcessorService.getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("DocumentProcessorService"); - } - } - - private static final class DocumentProcessorServiceFileDescriptorSupplier - extends DocumentProcessorServiceBaseDescriptorSupplier { - DocumentProcessorServiceFileDescriptorSupplier() {} - } - - private static final class DocumentProcessorServiceMethodDescriptorSupplier - extends DocumentProcessorServiceBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final String methodName; - - DocumentProcessorServiceMethodDescriptorSupplier(String methodName) { - this.methodName = methodName; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { - return getServiceDescriptor().findMethodByName(methodName); - } - } - - private static volatile io.grpc.ServiceDescriptor serviceDescriptor; - - public static io.grpc.ServiceDescriptor getServiceDescriptor() { - io.grpc.ServiceDescriptor result = serviceDescriptor; - if (result == null) { - synchronized (DocumentProcessorServiceGrpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = - result = - io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new DocumentProcessorServiceFileDescriptorSupplier()) - .addMethod(getProcessDocumentMethod()) - .addMethod(getBatchProcessDocumentsMethod()) - .addMethod(getFetchProcessorTypesMethod()) - .addMethod(getListProcessorsMethod()) - .addMethod(getCreateProcessorMethod()) - .addMethod(getDeleteProcessorMethod()) - .addMethod(getEnableProcessorMethod()) - .addMethod(getDisableProcessorMethod()) - .addMethod(getReviewDocumentMethod()) - .build(); - } - } - } - return result; - } -} diff --git a/google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1/DocumentProcessorServiceClient.java b/owl-bot-staging/v1/google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1/DocumentProcessorServiceClient.java similarity index 92% rename from google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1/DocumentProcessorServiceClient.java rename to owl-bot-staging/v1/google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1/DocumentProcessorServiceClient.java index 858c5b47..1bad88b1 100644 --- a/google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1/DocumentProcessorServiceClient.java +++ b/owl-bot-staging/v1/google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1/DocumentProcessorServiceClient.java @@ -17,13 +17,13 @@ package com.google.cloud.documentai.v1; import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.httpjson.longrunning.OperationsClient; import com.google.api.gax.longrunning.OperationFuture; import com.google.api.gax.rpc.OperationCallable; import com.google.api.gax.rpc.UnaryCallable; import com.google.cloud.documentai.v1.stub.DocumentProcessorServiceStub; import com.google.cloud.documentai.v1.stub.DocumentProcessorServiceStubSettings; import com.google.longrunning.Operation; -import com.google.longrunning.OperationsClient; import java.io.IOException; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; @@ -56,13 +56,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. *
* @@ -99,13 +99,29 @@ * DocumentProcessorServiceClient.create(documentProcessorServiceSettings); * } * + *

To use REST (HTTP1.1/JSON) transport (instead of gRPC) for sending and receiving requests over + * the wire: + * + *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
+ * DocumentProcessorServiceSettings documentProcessorServiceSettings =
+ *     DocumentProcessorServiceSettings.newBuilder()
+ *         .setTransportChannelProvider(
+ *             DocumentProcessorServiceSettings.defaultHttpJsonTransportProviderBuilder().build())
+ *         .build();
+ * DocumentProcessorServiceClient documentProcessorServiceClient =
+ *     DocumentProcessorServiceClient.create(documentProcessorServiceSettings);
+ * }
+ * *

Please refer to the GitHub repository's samples for more quickstart code snippets. */ @Generated("by gapic-generator-java") public class DocumentProcessorServiceClient implements BackgroundResource { private final DocumentProcessorServiceSettings settings; private final DocumentProcessorServiceStub stub; - private final OperationsClient operationsClient; + private final OperationsClient httpJsonOperationsClient; + private final com.google.longrunning.OperationsClient operationsClient; /** Constructs an instance of DocumentProcessorServiceClient with default settings. */ public static final DocumentProcessorServiceClient create() throws IOException { @@ -139,13 +155,17 @@ protected DocumentProcessorServiceClient(DocumentProcessorServiceSettings settin throws IOException { this.settings = settings; this.stub = ((DocumentProcessorServiceStubSettings) settings.getStubSettings()).createStub(); - this.operationsClient = OperationsClient.create(this.stub.getOperationsStub()); + this.operationsClient = + com.google.longrunning.OperationsClient.create(this.stub.getOperationsStub()); + this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } protected DocumentProcessorServiceClient(DocumentProcessorServiceStub stub) { this.settings = null; this.stub = stub; - this.operationsClient = OperationsClient.create(this.stub.getOperationsStub()); + this.operationsClient = + com.google.longrunning.OperationsClient.create(this.stub.getOperationsStub()); + this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } public final DocumentProcessorServiceSettings getSettings() { @@ -160,10 +180,18 @@ public DocumentProcessorServiceStub getStub() { * Returns the OperationsClient that can be used to query the status of a long-running operation * returned by another API method call. */ - public final OperationsClient getOperationsClient() { + public final com.google.longrunning.OperationsClient getOperationsClient() { return operationsClient; } + /** + * Returns the OperationsClient that can be used to query the status of a long-running operation + * returned by another API method call. + */ + public final OperationsClient getHttpJsonOperationsClient() { + return httpJsonOperationsClient; + } + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Processes a single document. diff --git a/google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1/DocumentProcessorServiceSettings.java b/owl-bot-staging/v1/google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1/DocumentProcessorServiceSettings.java similarity index 89% rename from google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1/DocumentProcessorServiceSettings.java rename to owl-bot-staging/v1/google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1/DocumentProcessorServiceSettings.java index d483d039..23043a53 100644 --- a/google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1/DocumentProcessorServiceSettings.java +++ b/owl-bot-staging/v1/google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1/DocumentProcessorServiceSettings.java @@ -21,10 +21,12 @@ import com.google.api.gax.core.GoogleCredentialsProvider; import com.google.api.gax.core.InstantiatingExecutorProvider; import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; +import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; 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.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.documentai.v1.stub.DocumentProcessorServiceStubSettings; @@ -40,9 +42,9 @@ *

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

    - *
  • The default service address (documentai.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 (documentai.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 @@ -128,11 +130,18 @@ public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilde return DocumentProcessorServiceStubSettings.defaultCredentialsProviderBuilder(); } - /** Returns a builder for the default ChannelProvider for this service. */ + /** Returns a builder for the default gRPC ChannelProvider for this service. */ public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { return DocumentProcessorServiceStubSettings.defaultGrpcTransportProviderBuilder(); } + /** Returns a builder for the default REST ChannelProvider for this service. */ + @BetaApi + public static InstantiatingHttpJsonChannelProvider.Builder + defaultHttpJsonTransportProviderBuilder() { + return DocumentProcessorServiceStubSettings.defaultHttpJsonTransportProviderBuilder(); + } + public static TransportChannelProvider defaultTransportChannelProvider() { return DocumentProcessorServiceStubSettings.defaultTransportChannelProvider(); } @@ -142,11 +151,17 @@ public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuil return DocumentProcessorServiceStubSettings.defaultApiClientHeaderProviderBuilder(); } - /** Returns a new builder for this class. */ + /** Returns a new gRPC builder for this class. */ public static Builder newBuilder() { return Builder.createDefault(); } + /** Returns a new REST builder for this class. */ + @BetaApi + public static Builder newHttpJsonBuilder() { + return Builder.createHttpJsonDefault(); + } + /** Returns a new builder for this class. */ public static Builder newBuilder(ClientContext clientContext) { return new Builder(clientContext); @@ -185,6 +200,11 @@ private static Builder createDefault() { return new Builder(DocumentProcessorServiceStubSettings.newBuilder()); } + @BetaApi + private static Builder createHttpJsonDefault() { + return new Builder(DocumentProcessorServiceStubSettings.newHttpJsonBuilder()); + } + public DocumentProcessorServiceStubSettings.Builder getStubSettingsBuilder() { return ((DocumentProcessorServiceStubSettings.Builder) getStubSettings()); } diff --git a/google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1/gapic_metadata.json b/owl-bot-staging/v1/google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1/gapic_metadata.json similarity index 100% rename from google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1/gapic_metadata.json rename to owl-bot-staging/v1/google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1/gapic_metadata.json diff --git a/google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1/package-info.java b/owl-bot-staging/v1/google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1/package-info.java similarity index 100% rename from google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1/package-info.java rename to owl-bot-staging/v1/google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1/package-info.java diff --git a/google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1/stub/DocumentProcessorServiceStub.java b/owl-bot-staging/v1/google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1/stub/DocumentProcessorServiceStub.java similarity index 95% rename from google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1/stub/DocumentProcessorServiceStub.java rename to owl-bot-staging/v1/google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1/stub/DocumentProcessorServiceStub.java index aea812f9..370b89a2 100644 --- a/google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1/stub/DocumentProcessorServiceStub.java +++ b/owl-bot-staging/v1/google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1/stub/DocumentProcessorServiceStub.java @@ -41,7 +41,11 @@ public abstract class DocumentProcessorServiceStub implements BackgroundResource { public OperationsStub getOperationsStub() { - throw new UnsupportedOperationException("Not implemented: getOperationsStub()"); + return null; + } + + public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + return null; } public UnaryCallable processDocumentCallable() { diff --git a/google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1/stub/DocumentProcessorServiceStubSettings.java b/owl-bot-staging/v1/google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1/stub/DocumentProcessorServiceStubSettings.java similarity index 88% rename from google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1/stub/DocumentProcessorServiceStubSettings.java rename to owl-bot-staging/v1/google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1/stub/DocumentProcessorServiceStubSettings.java index abed65d9..c5e48287 100644 --- a/google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1/stub/DocumentProcessorServiceStubSettings.java +++ b/owl-bot-staging/v1/google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1/stub/DocumentProcessorServiceStubSettings.java @@ -25,6 +25,9 @@ import com.google.api.gax.grpc.GrpcTransportChannel; import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; import com.google.api.gax.grpc.ProtoOperationTransformers; +import com.google.api.gax.httpjson.GaxHttpJsonProperties; +import com.google.api.gax.httpjson.HttpJsonTransportChannel; +import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; import com.google.api.gax.longrunning.OperationSnapshot; import com.google.api.gax.longrunning.OperationTimedPollAlgorithm; import com.google.api.gax.retrying.RetrySettings; @@ -60,9 +63,9 @@ *

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

    - *
  • The default service address (documentai.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 (documentai.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 @@ -139,6 +142,11 @@ public DocumentProcessorServiceStub createStub() throws IOException { .equals(GrpcTransportChannel.getGrpcTransportName())) { return GrpcDocumentProcessorServiceStub.create(this); } + if (getTransportChannelProvider() + .getTransportName() + .equals(HttpJsonTransportChannel.getHttpJsonTransportName())) { + return HttpJsonDocumentProcessorServiceStub.create(this); + } throw new UnsupportedOperationException( String.format( "Transport not supported: %s", getTransportChannelProvider().getTransportName())); @@ -171,18 +179,25 @@ public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilde .setUseJwtAccessWithScope(true); } - /** Returns a builder for the default ChannelProvider for this service. */ + /** Returns a builder for the default gRPC ChannelProvider for this service. */ public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { return InstantiatingGrpcChannelProvider.newBuilder() .setMaxInboundMessageSize(Integer.MAX_VALUE); } + /** Returns a builder for the default REST ChannelProvider for this service. */ + @BetaApi + public static InstantiatingHttpJsonChannelProvider.Builder + defaultHttpJsonTransportProviderBuilder() { + return InstantiatingHttpJsonChannelProvider.newBuilder(); + } + public static TransportChannelProvider defaultTransportChannelProvider() { return defaultGrpcTransportProviderBuilder().build(); } @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") - public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + public static ApiClientHeaderProvider.Builder defaultGrpcApiClientHeaderProviderBuilder() { return ApiClientHeaderProvider.newBuilder() .setGeneratedLibToken( "gapic", GaxProperties.getLibraryVersion(DocumentProcessorServiceStubSettings.class)) @@ -190,11 +205,30 @@ public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuil GaxGrpcProperties.getGrpcTokenName(), GaxGrpcProperties.getGrpcVersion()); } - /** Returns a new builder for this class. */ + @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") + public static ApiClientHeaderProvider.Builder defaultHttpJsonApiClientHeaderProviderBuilder() { + return ApiClientHeaderProvider.newBuilder() + .setGeneratedLibToken( + "gapic", GaxProperties.getLibraryVersion(DocumentProcessorServiceStubSettings.class)) + .setTransportToken( + GaxHttpJsonProperties.getHttpJsonTokenName(), + GaxHttpJsonProperties.getHttpJsonVersion()); + } + + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return DocumentProcessorServiceStubSettings.defaultGrpcApiClientHeaderProviderBuilder(); + } + + /** Returns a new gRPC builder for this class. */ public static Builder newBuilder() { return Builder.createDefault(); } + /** Returns a new REST builder for this class. */ + public static Builder newHttpJsonBuilder() { + return Builder.createHttpJsonDefault(); + } + /** Returns a new builder for this class. */ public static Builder newBuilder(ClientContext clientContext) { return new Builder(clientContext); @@ -312,6 +346,19 @@ private static Builder createDefault() { return initDefaults(builder); } + private static Builder createHttpJsonDefault() { + Builder builder = new Builder(((ClientContext) null)); + + builder.setTransportChannelProvider(defaultHttpJsonTransportProviderBuilder().build()); + builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); + builder.setInternalHeaderProvider(defaultHttpJsonApiClientHeaderProviderBuilder().build()); + builder.setEndpoint(getDefaultEndpoint()); + builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); + builder.setSwitchToMtlsEndpointAllowed(true); + + return initDefaults(builder); + } + private static Builder initDefaults(Builder builder) { builder .processDocumentSettings() diff --git a/google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1/stub/GrpcDocumentProcessorServiceCallableFactory.java b/owl-bot-staging/v1/google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1/stub/GrpcDocumentProcessorServiceCallableFactory.java similarity index 100% rename from google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1/stub/GrpcDocumentProcessorServiceCallableFactory.java rename to owl-bot-staging/v1/google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1/stub/GrpcDocumentProcessorServiceCallableFactory.java diff --git a/google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1/stub/GrpcDocumentProcessorServiceStub.java b/owl-bot-staging/v1/google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1/stub/GrpcDocumentProcessorServiceStub.java similarity index 99% rename from google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1/stub/GrpcDocumentProcessorServiceStub.java rename to owl-bot-staging/v1/google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1/stub/GrpcDocumentProcessorServiceStub.java index 7c8c7f96..058f35f0 100644 --- a/google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1/stub/GrpcDocumentProcessorServiceStub.java +++ b/owl-bot-staging/v1/google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1/stub/GrpcDocumentProcessorServiceStub.java @@ -37,6 +37,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/owl-bot-staging/v1/google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1/stub/HttpJsonDocumentProcessorServiceCallableFactory.java b/owl-bot-staging/v1/google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1/stub/HttpJsonDocumentProcessorServiceCallableFactory.java new file mode 100644 index 00000000..d1c4d2a5 --- /dev/null +++ b/owl-bot-staging/v1/google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1/stub/HttpJsonDocumentProcessorServiceCallableFactory.java @@ -0,0 +1,105 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.documentai.v1.stub; + +import com.google.api.core.BetaApi; +import com.google.api.gax.httpjson.HttpJsonCallSettings; +import com.google.api.gax.httpjson.HttpJsonCallableFactory; +import com.google.api.gax.httpjson.HttpJsonOperationSnapshotCallable; +import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; +import com.google.api.gax.httpjson.longrunning.stub.OperationsStub; +import com.google.api.gax.rpc.BatchingCallSettings; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallable; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.longrunning.Operation; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * REST callable factory implementation for the DocumentProcessorService service API. + * + *

This class is for advanced usage. + */ +@Generated("by gapic-generator-java") +@BetaApi +public class HttpJsonDocumentProcessorServiceCallableFactory + implements HttpJsonStubCallableFactory { + + @Override + public UnaryCallable createUnaryCallable( + HttpJsonCallSettings httpJsonCallSettings, + UnaryCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createUnaryCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public + UnaryCallable createPagedCallable( + HttpJsonCallSettings httpJsonCallSettings, + PagedCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createPagedCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public UnaryCallable createBatchingCallable( + HttpJsonCallSettings httpJsonCallSettings, + BatchingCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createBatchingCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + @Override + public + OperationCallable createOperationCallable( + HttpJsonCallSettings httpJsonCallSettings, + OperationCallSettings callSettings, + ClientContext clientContext, + OperationsStub operationsStub) { + UnaryCallable innerCallable = + HttpJsonCallableFactory.createBaseUnaryCallable( + httpJsonCallSettings, callSettings.getInitialCallSettings(), clientContext); + HttpJsonOperationSnapshotCallable initialCallable = + new HttpJsonOperationSnapshotCallable( + innerCallable, + httpJsonCallSettings.getMethodDescriptor().getOperationSnapshotFactory()); + return HttpJsonCallableFactory.createOperationCallable( + callSettings, clientContext, operationsStub.longRunningClient(), initialCallable); + } + + @Override + public + ServerStreamingCallable createServerStreamingCallable( + HttpJsonCallSettings httpJsonCallSettings, + ServerStreamingCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createServerStreamingCallable( + httpJsonCallSettings, callSettings, clientContext); + } +} diff --git a/owl-bot-staging/v1/google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1/stub/HttpJsonDocumentProcessorServiceStub.java b/owl-bot-staging/v1/google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1/stub/HttpJsonDocumentProcessorServiceStub.java new file mode 100644 index 00000000..7732538e --- /dev/null +++ b/owl-bot-staging/v1/google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1/stub/HttpJsonDocumentProcessorServiceStub.java @@ -0,0 +1,366 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.documentai.v1.stub; + +import com.google.api.core.BetaApi; +import com.google.api.core.InternalApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.core.BackgroundResourceAggregation; +import com.google.api.gax.httpjson.ApiMethodDescriptor; +import com.google.api.gax.httpjson.HttpJsonCallSettings; +import com.google.api.gax.httpjson.HttpJsonOperationSnapshot; +import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; +import com.google.api.gax.httpjson.ProtoMessageRequestFormatter; +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; +import com.google.cloud.documentai.v1.BatchProcessMetadata; +import com.google.cloud.documentai.v1.BatchProcessRequest; +import com.google.cloud.documentai.v1.BatchProcessResponse; +import com.google.cloud.documentai.v1.ProcessRequest; +import com.google.cloud.documentai.v1.ProcessResponse; +import com.google.cloud.documentai.v1.ReviewDocumentOperationMetadata; +import com.google.cloud.documentai.v1.ReviewDocumentRequest; +import com.google.cloud.documentai.v1.ReviewDocumentResponse; +import com.google.longrunning.Operation; +import com.google.protobuf.TypeRegistry; +import java.io.IOException; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * REST stub implementation for the DocumentProcessorService service API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@Generated("by gapic-generator-java") +@BetaApi +public class HttpJsonDocumentProcessorServiceStub extends DocumentProcessorServiceStub { + private static final TypeRegistry typeRegistry = + TypeRegistry.newBuilder() + .add(BatchProcessResponse.getDescriptor()) + .add(ReviewDocumentResponse.getDescriptor()) + .add(ReviewDocumentOperationMetadata.getDescriptor()) + .add(BatchProcessMetadata.getDescriptor()) + .build(); + + private static final ApiMethodDescriptor + processDocumentMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.documentai.v1.DocumentProcessorService/ProcessDocument") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/processors/*}:process", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearName().build())) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ProcessResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + batchProcessDocumentsMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.documentai.v1.DocumentProcessorService/BatchProcessDocuments") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/processors/*}:batchProcess", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearName().build())) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (BatchProcessRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private static final ApiMethodDescriptor + reviewDocumentMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.documentai.v1.DocumentProcessorService/ReviewDocument") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{humanReviewConfig=projects/*/locations/*/processors/*/humanReviewConfig}:reviewDocument", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam( + fields, "humanReviewConfig", request.getHumanReviewConfig()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody( + "*", request.toBuilder().clearHumanReviewConfig().build())) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (ReviewDocumentRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private final UnaryCallable processDocumentCallable; + private final UnaryCallable batchProcessDocumentsCallable; + private final OperationCallable + batchProcessDocumentsOperationCallable; + private final UnaryCallable reviewDocumentCallable; + private final OperationCallable< + ReviewDocumentRequest, ReviewDocumentResponse, ReviewDocumentOperationMetadata> + reviewDocumentOperationCallable; + + private final BackgroundResource backgroundResources; + private final HttpJsonOperationsStub httpJsonOperationsStub; + private final HttpJsonStubCallableFactory callableFactory; + + public static final HttpJsonDocumentProcessorServiceStub create( + DocumentProcessorServiceStubSettings settings) throws IOException { + return new HttpJsonDocumentProcessorServiceStub(settings, ClientContext.create(settings)); + } + + public static final HttpJsonDocumentProcessorServiceStub create(ClientContext clientContext) + throws IOException { + return new HttpJsonDocumentProcessorServiceStub( + DocumentProcessorServiceStubSettings.newHttpJsonBuilder().build(), clientContext); + } + + public static final HttpJsonDocumentProcessorServiceStub create( + ClientContext clientContext, HttpJsonStubCallableFactory callableFactory) throws IOException { + return new HttpJsonDocumentProcessorServiceStub( + DocumentProcessorServiceStubSettings.newHttpJsonBuilder().build(), + clientContext, + callableFactory); + } + + /** + * Constructs an instance of HttpJsonDocumentProcessorServiceStub, using the given settings. This + * is protected so that it is easy to make a subclass, but otherwise, the static factory methods + * should be preferred. + */ + protected HttpJsonDocumentProcessorServiceStub( + DocumentProcessorServiceStubSettings settings, ClientContext clientContext) + throws IOException { + this(settings, clientContext, new HttpJsonDocumentProcessorServiceCallableFactory()); + } + + /** + * Constructs an instance of HttpJsonDocumentProcessorServiceStub, using the given settings. This + * is protected so that it is easy to make a subclass, but otherwise, the static factory methods + * should be preferred. + */ + protected HttpJsonDocumentProcessorServiceStub( + DocumentProcessorServiceStubSettings settings, + ClientContext clientContext, + HttpJsonStubCallableFactory callableFactory) + throws IOException { + this.callableFactory = callableFactory; + this.httpJsonOperationsStub = + HttpJsonOperationsStub.create(clientContext, callableFactory, typeRegistry); + + HttpJsonCallSettings processDocumentTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(processDocumentMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings batchProcessDocumentsTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(batchProcessDocumentsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings reviewDocumentTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(reviewDocumentMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + + this.processDocumentCallable = + callableFactory.createUnaryCallable( + processDocumentTransportSettings, settings.processDocumentSettings(), clientContext); + this.batchProcessDocumentsCallable = + callableFactory.createUnaryCallable( + batchProcessDocumentsTransportSettings, + settings.batchProcessDocumentsSettings(), + clientContext); + this.batchProcessDocumentsOperationCallable = + callableFactory.createOperationCallable( + batchProcessDocumentsTransportSettings, + settings.batchProcessDocumentsOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.reviewDocumentCallable = + callableFactory.createUnaryCallable( + reviewDocumentTransportSettings, settings.reviewDocumentSettings(), clientContext); + this.reviewDocumentOperationCallable = + callableFactory.createOperationCallable( + reviewDocumentTransportSettings, + settings.reviewDocumentOperationSettings(), + clientContext, + httpJsonOperationsStub); + + this.backgroundResources = + new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + } + + @InternalApi + public static List getMethodDescriptors() { + List methodDescriptors = new ArrayList<>(); + methodDescriptors.add(processDocumentMethodDescriptor); + methodDescriptors.add(batchProcessDocumentsMethodDescriptor); + methodDescriptors.add(reviewDocumentMethodDescriptor); + return methodDescriptors; + } + + public HttpJsonOperationsStub getHttpJsonOperationsStub() { + return httpJsonOperationsStub; + } + + @Override + public UnaryCallable processDocumentCallable() { + return processDocumentCallable; + } + + @Override + public UnaryCallable batchProcessDocumentsCallable() { + return batchProcessDocumentsCallable; + } + + @Override + public OperationCallable + batchProcessDocumentsOperationCallable() { + return batchProcessDocumentsOperationCallable; + } + + @Override + public UnaryCallable reviewDocumentCallable() { + return reviewDocumentCallable; + } + + @Override + public OperationCallable< + ReviewDocumentRequest, ReviewDocumentResponse, ReviewDocumentOperationMetadata> + reviewDocumentOperationCallable() { + return reviewDocumentOperationCallable; + } + + @Override + public final void close() { + try { + backgroundResources.close(); + } catch (RuntimeException e) { + throw e; + } catch (Exception e) { + throw new IllegalStateException("Failed to close resource", e); + } + } + + @Override + public void shutdown() { + backgroundResources.shutdown(); + } + + @Override + public boolean isShutdown() { + return backgroundResources.isShutdown(); + } + + @Override + public boolean isTerminated() { + return backgroundResources.isTerminated(); + } + + @Override + public void shutdownNow() { + backgroundResources.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return backgroundResources.awaitTermination(duration, unit); + } +} diff --git a/owl-bot-staging/v1/google-cloud-document-ai/src/test/java/com/google/cloud/documentai/v1/DocumentProcessorServiceClientHttpJsonTest.java b/owl-bot-staging/v1/google-cloud-document-ai/src/test/java/com/google/cloud/documentai/v1/DocumentProcessorServiceClientHttpJsonTest.java new file mode 100644 index 00000000..e1de51f9 --- /dev/null +++ b/owl-bot-staging/v1/google-cloud-document-ai/src/test/java/com/google/cloud/documentai/v1/DocumentProcessorServiceClientHttpJsonTest.java @@ -0,0 +1,356 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.documentai.v1; + +import com.google.api.gax.core.NoCredentialsProvider; +import com.google.api.gax.httpjson.GaxHttpJsonProperties; +import com.google.api.gax.httpjson.testing.MockHttpService; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ApiException; +import com.google.api.gax.rpc.ApiExceptionFactory; +import com.google.api.gax.rpc.InvalidArgumentException; +import com.google.api.gax.rpc.StatusCode; +import com.google.api.gax.rpc.testing.FakeStatusCode; +import com.google.cloud.documentai.v1.stub.HttpJsonDocumentProcessorServiceStub; +import com.google.longrunning.Operation; +import com.google.protobuf.Any; +import java.io.IOException; +import java.util.List; +import java.util.concurrent.ExecutionException; +import javax.annotation.Generated; +import org.junit.After; +import org.junit.AfterClass; +import org.junit.Assert; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; + +@Generated("by gapic-generator-java") +public class DocumentProcessorServiceClientHttpJsonTest { + private static MockHttpService mockService; + private static DocumentProcessorServiceClient client; + + @BeforeClass + public static void startStaticServer() throws IOException { + mockService = + new MockHttpService( + HttpJsonDocumentProcessorServiceStub.getMethodDescriptors(), + DocumentProcessorServiceSettings.getDefaultEndpoint()); + DocumentProcessorServiceSettings settings = + DocumentProcessorServiceSettings.newHttpJsonBuilder() + .setTransportChannelProvider( + DocumentProcessorServiceSettings.defaultHttpJsonTransportProviderBuilder() + .setHttpTransport(mockService) + .build()) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = DocumentProcessorServiceClient.create(settings); + } + + @AfterClass + public static void stopServer() { + client.close(); + } + + @Before + public void setUp() {} + + @After + public void tearDown() throws Exception { + mockService.reset(); + } + + @Test + public void processDocumentTest() throws Exception { + ProcessResponse expectedResponse = + ProcessResponse.newBuilder() + .setDocument(Document.newBuilder().build()) + .setHumanReviewStatus(HumanReviewStatus.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + ProcessorName name = ProcessorName.of("[PROJECT]", "[LOCATION]", "[PROCESSOR]"); + + ProcessResponse actualResponse = client.processDocument(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void processDocumentExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ProcessorName name = ProcessorName.of("[PROJECT]", "[LOCATION]", "[PROCESSOR]"); + client.processDocument(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void processDocumentTest2() throws Exception { + ProcessResponse expectedResponse = + ProcessResponse.newBuilder() + .setDocument(Document.newBuilder().build()) + .setHumanReviewStatus(HumanReviewStatus.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + String name = "projects/project-5167/locations/location-5167/processors/processor-5167"; + + ProcessResponse actualResponse = client.processDocument(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void processDocumentExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "projects/project-5167/locations/location-5167/processors/processor-5167"; + client.processDocument(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void batchProcessDocumentsTest() throws Exception { + BatchProcessResponse expectedResponse = BatchProcessResponse.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("batchProcessDocumentsTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + ProcessorName name = ProcessorName.of("[PROJECT]", "[LOCATION]", "[PROCESSOR]"); + + BatchProcessResponse actualResponse = client.batchProcessDocumentsAsync(name).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void batchProcessDocumentsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ProcessorName name = ProcessorName.of("[PROJECT]", "[LOCATION]", "[PROCESSOR]"); + client.batchProcessDocumentsAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void batchProcessDocumentsTest2() throws Exception { + BatchProcessResponse expectedResponse = BatchProcessResponse.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("batchProcessDocumentsTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + String name = "projects/project-5167/locations/location-5167/processors/processor-5167"; + + BatchProcessResponse actualResponse = client.batchProcessDocumentsAsync(name).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void batchProcessDocumentsExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "projects/project-5167/locations/location-5167/processors/processor-5167"; + client.batchProcessDocumentsAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void reviewDocumentTest() throws Exception { + ReviewDocumentResponse expectedResponse = + ReviewDocumentResponse.newBuilder().setGcsDestination("gcsDestination-1612392329").build(); + Operation resultOperation = + Operation.newBuilder() + .setName("reviewDocumentTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + HumanReviewConfigName humanReviewConfig = + HumanReviewConfigName.of("[PROJECT]", "[LOCATION]", "[PROCESSOR]"); + + ReviewDocumentResponse actualResponse = client.reviewDocumentAsync(humanReviewConfig).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void reviewDocumentExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + HumanReviewConfigName humanReviewConfig = + HumanReviewConfigName.of("[PROJECT]", "[LOCATION]", "[PROCESSOR]"); + client.reviewDocumentAsync(humanReviewConfig).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void reviewDocumentTest2() throws Exception { + ReviewDocumentResponse expectedResponse = + ReviewDocumentResponse.newBuilder().setGcsDestination("gcsDestination-1612392329").build(); + Operation resultOperation = + Operation.newBuilder() + .setName("reviewDocumentTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + String humanReviewConfig = + "projects/project-1917/locations/location-1917/processors/processor-1917/humanReviewConfig"; + + ReviewDocumentResponse actualResponse = client.reviewDocumentAsync(humanReviewConfig).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void reviewDocumentExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String humanReviewConfig = + "projects/project-1917/locations/location-1917/processors/processor-1917/humanReviewConfig"; + client.reviewDocumentAsync(humanReviewConfig).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } +} diff --git a/google-cloud-document-ai/src/test/java/com/google/cloud/documentai/v1/DocumentProcessorServiceClientTest.java b/owl-bot-staging/v1/google-cloud-document-ai/src/test/java/com/google/cloud/documentai/v1/DocumentProcessorServiceClientTest.java similarity index 100% rename from google-cloud-document-ai/src/test/java/com/google/cloud/documentai/v1/DocumentProcessorServiceClientTest.java rename to owl-bot-staging/v1/google-cloud-document-ai/src/test/java/com/google/cloud/documentai/v1/DocumentProcessorServiceClientTest.java diff --git a/google-cloud-document-ai/src/test/java/com/google/cloud/documentai/v1/MockDocumentProcessorService.java b/owl-bot-staging/v1/google-cloud-document-ai/src/test/java/com/google/cloud/documentai/v1/MockDocumentProcessorService.java similarity index 100% rename from google-cloud-document-ai/src/test/java/com/google/cloud/documentai/v1/MockDocumentProcessorService.java rename to owl-bot-staging/v1/google-cloud-document-ai/src/test/java/com/google/cloud/documentai/v1/MockDocumentProcessorService.java diff --git a/google-cloud-document-ai/src/test/java/com/google/cloud/documentai/v1/MockDocumentProcessorServiceImpl.java b/owl-bot-staging/v1/google-cloud-document-ai/src/test/java/com/google/cloud/documentai/v1/MockDocumentProcessorServiceImpl.java similarity index 100% rename from google-cloud-document-ai/src/test/java/com/google/cloud/documentai/v1/MockDocumentProcessorServiceImpl.java rename to owl-bot-staging/v1/google-cloud-document-ai/src/test/java/com/google/cloud/documentai/v1/MockDocumentProcessorServiceImpl.java diff --git a/grpc-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/DocumentProcessorServiceGrpc.java b/owl-bot-staging/v1/grpc-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/DocumentProcessorServiceGrpc.java similarity index 51% rename from grpc-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/DocumentProcessorServiceGrpc.java rename to owl-bot-staging/v1/grpc-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/DocumentProcessorServiceGrpc.java index 8301f3f8..0a350199 100644 --- a/grpc-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/DocumentProcessorServiceGrpc.java +++ b/owl-bot-staging/v1/grpc-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/DocumentProcessorServiceGrpc.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.documentai.v1; import static io.grpc.MethodDescriptor.generateFullMethodName; /** - * - * *

  * Service to call Cloud DocumentAI to process documents according to the
  * processor's definition. Processors are built using state-of-the-art Google
@@ -38,190 +21,144 @@ private DocumentProcessorServiceGrpc() {}
   public static final String SERVICE_NAME = "google.cloud.documentai.v1.DocumentProcessorService";
 
   // Static method descriptors that strictly reflect the proto.
-  private static volatile io.grpc.MethodDescriptor<
-          com.google.cloud.documentai.v1.ProcessRequest,
-          com.google.cloud.documentai.v1.ProcessResponse>
-      getProcessDocumentMethod;
+  private static volatile io.grpc.MethodDescriptor getProcessDocumentMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "ProcessDocument",
       requestType = com.google.cloud.documentai.v1.ProcessRequest.class,
       responseType = com.google.cloud.documentai.v1.ProcessResponse.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor<
-          com.google.cloud.documentai.v1.ProcessRequest,
-          com.google.cloud.documentai.v1.ProcessResponse>
-      getProcessDocumentMethod() {
-    io.grpc.MethodDescriptor<
-            com.google.cloud.documentai.v1.ProcessRequest,
-            com.google.cloud.documentai.v1.ProcessResponse>
-        getProcessDocumentMethod;
-    if ((getProcessDocumentMethod = DocumentProcessorServiceGrpc.getProcessDocumentMethod)
-        == null) {
+  public static io.grpc.MethodDescriptor getProcessDocumentMethod() {
+    io.grpc.MethodDescriptor getProcessDocumentMethod;
+    if ((getProcessDocumentMethod = DocumentProcessorServiceGrpc.getProcessDocumentMethod) == null) {
       synchronized (DocumentProcessorServiceGrpc.class) {
-        if ((getProcessDocumentMethod = DocumentProcessorServiceGrpc.getProcessDocumentMethod)
-            == null) {
-          DocumentProcessorServiceGrpc.getProcessDocumentMethod =
-              getProcessDocumentMethod =
-                  io.grpc.MethodDescriptor
-                      .
-                          newBuilder()
-                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ProcessDocument"))
-                      .setSampledToLocalTracing(true)
-                      .setRequestMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.cloud.documentai.v1.ProcessRequest.getDefaultInstance()))
-                      .setResponseMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.cloud.documentai.v1.ProcessResponse.getDefaultInstance()))
-                      .setSchemaDescriptor(
-                          new DocumentProcessorServiceMethodDescriptorSupplier("ProcessDocument"))
-                      .build();
+        if ((getProcessDocumentMethod = DocumentProcessorServiceGrpc.getProcessDocumentMethod) == null) {
+          DocumentProcessorServiceGrpc.getProcessDocumentMethod = getProcessDocumentMethod =
+              io.grpc.MethodDescriptor.newBuilder()
+              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ProcessDocument"))
+              .setSampledToLocalTracing(true)
+              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.cloud.documentai.v1.ProcessRequest.getDefaultInstance()))
+              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.cloud.documentai.v1.ProcessResponse.getDefaultInstance()))
+              .setSchemaDescriptor(new DocumentProcessorServiceMethodDescriptorSupplier("ProcessDocument"))
+              .build();
         }
       }
     }
     return getProcessDocumentMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor<
-          com.google.cloud.documentai.v1.BatchProcessRequest, com.google.longrunning.Operation>
-      getBatchProcessDocumentsMethod;
+  private static volatile io.grpc.MethodDescriptor getBatchProcessDocumentsMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "BatchProcessDocuments",
       requestType = com.google.cloud.documentai.v1.BatchProcessRequest.class,
       responseType = com.google.longrunning.Operation.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor<
-          com.google.cloud.documentai.v1.BatchProcessRequest, com.google.longrunning.Operation>
-      getBatchProcessDocumentsMethod() {
-    io.grpc.MethodDescriptor<
-            com.google.cloud.documentai.v1.BatchProcessRequest, com.google.longrunning.Operation>
-        getBatchProcessDocumentsMethod;
-    if ((getBatchProcessDocumentsMethod =
-            DocumentProcessorServiceGrpc.getBatchProcessDocumentsMethod)
-        == null) {
+  public static io.grpc.MethodDescriptor getBatchProcessDocumentsMethod() {
+    io.grpc.MethodDescriptor getBatchProcessDocumentsMethod;
+    if ((getBatchProcessDocumentsMethod = DocumentProcessorServiceGrpc.getBatchProcessDocumentsMethod) == null) {
       synchronized (DocumentProcessorServiceGrpc.class) {
-        if ((getBatchProcessDocumentsMethod =
-                DocumentProcessorServiceGrpc.getBatchProcessDocumentsMethod)
-            == null) {
-          DocumentProcessorServiceGrpc.getBatchProcessDocumentsMethod =
-              getBatchProcessDocumentsMethod =
-                  io.grpc.MethodDescriptor
-                      .
-                          newBuilder()
-                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-                      .setFullMethodName(
-                          generateFullMethodName(SERVICE_NAME, "BatchProcessDocuments"))
-                      .setSampledToLocalTracing(true)
-                      .setRequestMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.cloud.documentai.v1.BatchProcessRequest
-                                  .getDefaultInstance()))
-                      .setResponseMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.longrunning.Operation.getDefaultInstance()))
-                      .setSchemaDescriptor(
-                          new DocumentProcessorServiceMethodDescriptorSupplier(
-                              "BatchProcessDocuments"))
-                      .build();
+        if ((getBatchProcessDocumentsMethod = DocumentProcessorServiceGrpc.getBatchProcessDocumentsMethod) == null) {
+          DocumentProcessorServiceGrpc.getBatchProcessDocumentsMethod = getBatchProcessDocumentsMethod =
+              io.grpc.MethodDescriptor.newBuilder()
+              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "BatchProcessDocuments"))
+              .setSampledToLocalTracing(true)
+              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.cloud.documentai.v1.BatchProcessRequest.getDefaultInstance()))
+              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.longrunning.Operation.getDefaultInstance()))
+              .setSchemaDescriptor(new DocumentProcessorServiceMethodDescriptorSupplier("BatchProcessDocuments"))
+              .build();
         }
       }
     }
     return getBatchProcessDocumentsMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor<
-          com.google.cloud.documentai.v1.ReviewDocumentRequest, com.google.longrunning.Operation>
-      getReviewDocumentMethod;
+  private static volatile io.grpc.MethodDescriptor getReviewDocumentMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "ReviewDocument",
       requestType = com.google.cloud.documentai.v1.ReviewDocumentRequest.class,
       responseType = com.google.longrunning.Operation.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor<
-          com.google.cloud.documentai.v1.ReviewDocumentRequest, com.google.longrunning.Operation>
-      getReviewDocumentMethod() {
-    io.grpc.MethodDescriptor<
-            com.google.cloud.documentai.v1.ReviewDocumentRequest, com.google.longrunning.Operation>
-        getReviewDocumentMethod;
+  public static io.grpc.MethodDescriptor getReviewDocumentMethod() {
+    io.grpc.MethodDescriptor getReviewDocumentMethod;
     if ((getReviewDocumentMethod = DocumentProcessorServiceGrpc.getReviewDocumentMethod) == null) {
       synchronized (DocumentProcessorServiceGrpc.class) {
-        if ((getReviewDocumentMethod = DocumentProcessorServiceGrpc.getReviewDocumentMethod)
-            == null) {
-          DocumentProcessorServiceGrpc.getReviewDocumentMethod =
-              getReviewDocumentMethod =
-                  io.grpc.MethodDescriptor
-                      .
-                          newBuilder()
-                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ReviewDocument"))
-                      .setSampledToLocalTracing(true)
-                      .setRequestMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.cloud.documentai.v1.ReviewDocumentRequest
-                                  .getDefaultInstance()))
-                      .setResponseMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.longrunning.Operation.getDefaultInstance()))
-                      .setSchemaDescriptor(
-                          new DocumentProcessorServiceMethodDescriptorSupplier("ReviewDocument"))
-                      .build();
+        if ((getReviewDocumentMethod = DocumentProcessorServiceGrpc.getReviewDocumentMethod) == null) {
+          DocumentProcessorServiceGrpc.getReviewDocumentMethod = getReviewDocumentMethod =
+              io.grpc.MethodDescriptor.newBuilder()
+              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ReviewDocument"))
+              .setSampledToLocalTracing(true)
+              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.cloud.documentai.v1.ReviewDocumentRequest.getDefaultInstance()))
+              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.longrunning.Operation.getDefaultInstance()))
+              .setSchemaDescriptor(new DocumentProcessorServiceMethodDescriptorSupplier("ReviewDocument"))
+              .build();
         }
       }
     }
     return getReviewDocumentMethod;
   }
 
-  /** 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 DocumentProcessorServiceStub newStub(io.grpc.Channel channel) {
     io.grpc.stub.AbstractStub.StubFactory factory =
-        new io.grpc.stub.AbstractStub.StubFactory() {
-          @java.lang.Override
-          public DocumentProcessorServiceStub newStub(
-              io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
-            return new DocumentProcessorServiceStub(channel, callOptions);
-          }
-        };
+      new io.grpc.stub.AbstractStub.StubFactory() {
+        @java.lang.Override
+        public DocumentProcessorServiceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+          return new DocumentProcessorServiceStub(channel, callOptions);
+        }
+      };
     return DocumentProcessorServiceStub.newStub(factory, channel);
   }
 
   /**
    * Creates a new blocking-style stub that supports unary and streaming output calls on the service
    */
-  public static DocumentProcessorServiceBlockingStub newBlockingStub(io.grpc.Channel channel) {
+  public static DocumentProcessorServiceBlockingStub newBlockingStub(
+      io.grpc.Channel channel) {
     io.grpc.stub.AbstractStub.StubFactory factory =
-        new io.grpc.stub.AbstractStub.StubFactory() {
-          @java.lang.Override
-          public DocumentProcessorServiceBlockingStub newStub(
-              io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
-            return new DocumentProcessorServiceBlockingStub(channel, callOptions);
-          }
-        };
+      new io.grpc.stub.AbstractStub.StubFactory() {
+        @java.lang.Override
+        public DocumentProcessorServiceBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+          return new DocumentProcessorServiceBlockingStub(channel, callOptions);
+        }
+      };
     return DocumentProcessorServiceBlockingStub.newStub(factory, channel);
   }
 
-  /** Creates a new ListenableFuture-style stub that supports unary calls on the service */
-  public static DocumentProcessorServiceFutureStub newFutureStub(io.grpc.Channel channel) {
+  /**
+   * Creates a new ListenableFuture-style stub that supports unary calls on the service
+   */
+  public static DocumentProcessorServiceFutureStub newFutureStub(
+      io.grpc.Channel channel) {
     io.grpc.stub.AbstractStub.StubFactory factory =
-        new io.grpc.stub.AbstractStub.StubFactory() {
-          @java.lang.Override
-          public DocumentProcessorServiceFutureStub newStub(
-              io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
-            return new DocumentProcessorServiceFutureStub(channel, callOptions);
-          }
-        };
+      new io.grpc.stub.AbstractStub.StubFactory() {
+        @java.lang.Override
+        public DocumentProcessorServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+          return new DocumentProcessorServiceFutureStub(channel, callOptions);
+        }
+      };
     return DocumentProcessorServiceFutureStub.newStub(factory, channel);
   }
 
   /**
-   *
-   *
    * 
    * Service to call Cloud DocumentAI to process documents according to the
    * processor's definition. Processors are built using state-of-the-art Google
@@ -229,82 +166,68 @@ public DocumentProcessorServiceFutureStub newStub(
    * structured information from unstructured or semi-structured documents.
    * 
*/ - public abstract static class DocumentProcessorServiceImplBase implements io.grpc.BindableService { + public static abstract class DocumentProcessorServiceImplBase implements io.grpc.BindableService { /** - * - * *
      * Processes a single document.
      * 
*/ - public void processDocument( - com.google.cloud.documentai.v1.ProcessRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getProcessDocumentMethod(), responseObserver); + public void processDocument(com.google.cloud.documentai.v1.ProcessRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getProcessDocumentMethod(), responseObserver); } /** - * - * *
      * LRO endpoint to batch process many documents. The output is written
      * to Cloud Storage as JSON in the [Document] format.
      * 
*/ - public void batchProcessDocuments( - com.google.cloud.documentai.v1.BatchProcessRequest request, + public void batchProcessDocuments(com.google.cloud.documentai.v1.BatchProcessRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getBatchProcessDocumentsMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getBatchProcessDocumentsMethod(), responseObserver); } /** - * - * *
      * Send a document for Human Review. The input document should be processed by
      * the specified processor.
      * 
*/ - public void reviewDocument( - com.google.cloud.documentai.v1.ReviewDocumentRequest request, + public void reviewDocument(com.google.cloud.documentai.v1.ReviewDocumentRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getReviewDocumentMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getReviewDocumentMethod(), 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( - getProcessDocumentMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.documentai.v1.ProcessRequest, - com.google.cloud.documentai.v1.ProcessResponse>( - this, METHODID_PROCESS_DOCUMENT))) + getProcessDocumentMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.documentai.v1.ProcessRequest, + com.google.cloud.documentai.v1.ProcessResponse>( + this, METHODID_PROCESS_DOCUMENT))) .addMethod( - getBatchProcessDocumentsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.documentai.v1.BatchProcessRequest, - com.google.longrunning.Operation>(this, METHODID_BATCH_PROCESS_DOCUMENTS))) + getBatchProcessDocumentsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.documentai.v1.BatchProcessRequest, + com.google.longrunning.Operation>( + this, METHODID_BATCH_PROCESS_DOCUMENTS))) .addMethod( - getReviewDocumentMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.documentai.v1.ReviewDocumentRequest, - com.google.longrunning.Operation>(this, METHODID_REVIEW_DOCUMENT))) + getReviewDocumentMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.documentai.v1.ReviewDocumentRequest, + com.google.longrunning.Operation>( + this, METHODID_REVIEW_DOCUMENT))) .build(); } } /** - * - * *
    * Service to call Cloud DocumentAI to process documents according to the
    * processor's definition. Processors are built using state-of-the-art Google
@@ -312,9 +235,9 @@ public final io.grpc.ServerServiceDefinition bindService() {
    * structured information from unstructured or semi-structured documents.
    * 
*/ - public static final class DocumentProcessorServiceStub - extends io.grpc.stub.AbstractAsyncStub { - private DocumentProcessorServiceStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + public static final class DocumentProcessorServiceStub extends io.grpc.stub.AbstractAsyncStub { + private DocumentProcessorServiceStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @@ -325,60 +248,42 @@ protected DocumentProcessorServiceStub build( } /** - * - * *
      * Processes a single document.
      * 
*/ - public void processDocument( - com.google.cloud.documentai.v1.ProcessRequest request, - io.grpc.stub.StreamObserver - responseObserver) { + public void processDocument(com.google.cloud.documentai.v1.ProcessRequest request, + io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getProcessDocumentMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getProcessDocumentMethod(), getCallOptions()), request, responseObserver); } /** - * - * *
      * LRO endpoint to batch process many documents. The output is written
      * to Cloud Storage as JSON in the [Document] format.
      * 
*/ - public void batchProcessDocuments( - com.google.cloud.documentai.v1.BatchProcessRequest request, + public void batchProcessDocuments(com.google.cloud.documentai.v1.BatchProcessRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getBatchProcessDocumentsMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getBatchProcessDocumentsMethod(), getCallOptions()), request, responseObserver); } /** - * - * *
      * Send a document for Human Review. The input document should be processed by
      * the specified processor.
      * 
*/ - public void reviewDocument( - com.google.cloud.documentai.v1.ReviewDocumentRequest request, + public void reviewDocument(com.google.cloud.documentai.v1.ReviewDocumentRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getReviewDocumentMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getReviewDocumentMethod(), getCallOptions()), request, responseObserver); } } /** - * - * *
    * Service to call Cloud DocumentAI to process documents according to the
    * processor's definition. Processors are built using state-of-the-art Google
@@ -386,8 +291,7 @@ public void reviewDocument(
    * structured information from unstructured or semi-structured documents.
    * 
*/ - public static final class DocumentProcessorServiceBlockingStub - extends io.grpc.stub.AbstractBlockingStub { + public static final class DocumentProcessorServiceBlockingStub extends io.grpc.stub.AbstractBlockingStub { private DocumentProcessorServiceBlockingStub( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); @@ -400,50 +304,39 @@ protected DocumentProcessorServiceBlockingStub build( } /** - * - * *
      * Processes a single document.
      * 
*/ - public com.google.cloud.documentai.v1.ProcessResponse processDocument( - com.google.cloud.documentai.v1.ProcessRequest request) { + public com.google.cloud.documentai.v1.ProcessResponse processDocument(com.google.cloud.documentai.v1.ProcessRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getProcessDocumentMethod(), getCallOptions(), request); } /** - * - * *
      * LRO endpoint to batch process many documents. The output is written
      * to Cloud Storage as JSON in the [Document] format.
      * 
*/ - public com.google.longrunning.Operation batchProcessDocuments( - com.google.cloud.documentai.v1.BatchProcessRequest request) { + public com.google.longrunning.Operation batchProcessDocuments(com.google.cloud.documentai.v1.BatchProcessRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getBatchProcessDocumentsMethod(), getCallOptions(), request); } /** - * - * *
      * Send a document for Human Review. The input document should be processed by
      * the specified processor.
      * 
*/ - public com.google.longrunning.Operation reviewDocument( - com.google.cloud.documentai.v1.ReviewDocumentRequest request) { + public com.google.longrunning.Operation reviewDocument(com.google.cloud.documentai.v1.ReviewDocumentRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getReviewDocumentMethod(), getCallOptions(), request); } } /** - * - * *
    * Service to call Cloud DocumentAI to process documents according to the
    * processor's definition. Processors are built using state-of-the-art Google
@@ -451,8 +344,7 @@ public com.google.longrunning.Operation reviewDocument(
    * structured information from unstructured or semi-structured documents.
    * 
*/ - public static final class DocumentProcessorServiceFutureStub - extends io.grpc.stub.AbstractFutureStub { + public static final class DocumentProcessorServiceFutureStub extends io.grpc.stub.AbstractFutureStub { private DocumentProcessorServiceFutureStub( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); @@ -465,43 +357,36 @@ protected DocumentProcessorServiceFutureStub build( } /** - * - * *
      * Processes a single document.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.documentai.v1.ProcessResponse> - processDocument(com.google.cloud.documentai.v1.ProcessRequest request) { + public com.google.common.util.concurrent.ListenableFuture processDocument( + com.google.cloud.documentai.v1.ProcessRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getProcessDocumentMethod(), getCallOptions()), request); } /** - * - * *
      * LRO endpoint to batch process many documents. The output is written
      * to Cloud Storage as JSON in the [Document] format.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture - batchProcessDocuments(com.google.cloud.documentai.v1.BatchProcessRequest request) { + public com.google.common.util.concurrent.ListenableFuture batchProcessDocuments( + com.google.cloud.documentai.v1.BatchProcessRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getBatchProcessDocumentsMethod(), getCallOptions()), request); } /** - * - * *
      * Send a document for Human Review. The input document should be processed by
      * the specified processor.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture - reviewDocument(com.google.cloud.documentai.v1.ReviewDocumentRequest request) { + public com.google.common.util.concurrent.ListenableFuture reviewDocument( + com.google.cloud.documentai.v1.ReviewDocumentRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getReviewDocumentMethod(), getCallOptions()), request); } @@ -511,11 +396,11 @@ protected DocumentProcessorServiceFutureStub build( private static final int METHODID_BATCH_PROCESS_DOCUMENTS = 1; private static final int METHODID_REVIEW_DOCUMENT = 2; - 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 DocumentProcessorServiceImplBase serviceImpl; private final int methodId; @@ -529,19 +414,15 @@ private static final class MethodHandlers public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { switch (methodId) { case METHODID_PROCESS_DOCUMENT: - serviceImpl.processDocument( - (com.google.cloud.documentai.v1.ProcessRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); + serviceImpl.processDocument((com.google.cloud.documentai.v1.ProcessRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_BATCH_PROCESS_DOCUMENTS: - serviceImpl.batchProcessDocuments( - (com.google.cloud.documentai.v1.BatchProcessRequest) request, + serviceImpl.batchProcessDocuments((com.google.cloud.documentai.v1.BatchProcessRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_REVIEW_DOCUMENT: - serviceImpl.reviewDocument( - (com.google.cloud.documentai.v1.ReviewDocumentRequest) request, + serviceImpl.reviewDocument((com.google.cloud.documentai.v1.ReviewDocumentRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; default: @@ -560,9 +441,8 @@ public io.grpc.stub.StreamObserver invoke( } } - private abstract static class DocumentProcessorServiceBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, - io.grpc.protobuf.ProtoServiceDescriptorSupplier { + private static abstract class DocumentProcessorServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { DocumentProcessorServiceBaseDescriptorSupplier() {} @java.lang.Override @@ -604,14 +484,12 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { synchronized (DocumentProcessorServiceGrpc.class) { result = serviceDescriptor; if (result == null) { - serviceDescriptor = - result = - io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new DocumentProcessorServiceFileDescriptorSupplier()) - .addMethod(getProcessDocumentMethod()) - .addMethod(getBatchProcessDocumentsMethod()) - .addMethod(getReviewDocumentMethod()) - .build(); + serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new DocumentProcessorServiceFileDescriptorSupplier()) + .addMethod(getProcessDocumentMethod()) + .addMethod(getBatchProcessDocumentsMethod()) + .addMethod(getReviewDocumentMethod()) + .build(); } } } diff --git a/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/BatchDocumentsInputConfig.java b/owl-bot-staging/v1/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/BatchDocumentsInputConfig.java similarity index 70% rename from proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/BatchDocumentsInputConfig.java rename to owl-bot-staging/v1/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/BatchDocumentsInputConfig.java index a7bd674a..9a487ca3 100644 --- a/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/BatchDocumentsInputConfig.java +++ b/owl-bot-staging/v1/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/BatchDocumentsInputConfig.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/documentai/v1/document_io.proto package com.google.cloud.documentai.v1; /** - * - * *
  * The common config to specify a set of documents used as input.
  * 
* * Protobuf type {@code google.cloud.documentai.v1.BatchDocumentsInputConfig} */ -public final class BatchDocumentsInputConfig extends com.google.protobuf.GeneratedMessageV3 - implements +public final class BatchDocumentsInputConfig extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.documentai.v1.BatchDocumentsInputConfig) BatchDocumentsInputConfigOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use BatchDocumentsInputConfig.newBuilder() to construct. private BatchDocumentsInputConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private BatchDocumentsInputConfig() {} + private BatchDocumentsInputConfig() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new BatchDocumentsInputConfig(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private BatchDocumentsInputConfig( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -68,45 +52,41 @@ private BatchDocumentsInputConfig( case 0: done = true; break; - case 10: - { - com.google.cloud.documentai.v1.GcsPrefix.Builder subBuilder = null; - if (sourceCase_ == 1) { - subBuilder = ((com.google.cloud.documentai.v1.GcsPrefix) source_).toBuilder(); - } - source_ = - input.readMessage( - com.google.cloud.documentai.v1.GcsPrefix.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.documentai.v1.GcsPrefix) source_); - source_ = subBuilder.buildPartial(); - } - sourceCase_ = 1; - break; + case 10: { + com.google.cloud.documentai.v1.GcsPrefix.Builder subBuilder = null; + if (sourceCase_ == 1) { + subBuilder = ((com.google.cloud.documentai.v1.GcsPrefix) source_).toBuilder(); } - case 18: - { - com.google.cloud.documentai.v1.GcsDocuments.Builder subBuilder = null; - if (sourceCase_ == 2) { - subBuilder = ((com.google.cloud.documentai.v1.GcsDocuments) source_).toBuilder(); - } - source_ = - input.readMessage( - com.google.cloud.documentai.v1.GcsDocuments.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.documentai.v1.GcsDocuments) source_); - source_ = subBuilder.buildPartial(); - } - sourceCase_ = 2; - break; + source_ = + input.readMessage(com.google.cloud.documentai.v1.GcsPrefix.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.cloud.documentai.v1.GcsPrefix) source_); + source_ = subBuilder.buildPartial(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + sourceCase_ = 1; + break; + } + case 18: { + com.google.cloud.documentai.v1.GcsDocuments.Builder subBuilder = null; + if (sourceCase_ == 2) { + subBuilder = ((com.google.cloud.documentai.v1.GcsDocuments) source_).toBuilder(); + } + source_ = + input.readMessage(com.google.cloud.documentai.v1.GcsDocuments.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.cloud.documentai.v1.GcsDocuments) source_); + source_ = subBuilder.buildPartial(); } + sourceCase_ = 2; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -114,40 +94,35 @@ private BatchDocumentsInputConfig( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.documentai.v1.DocumentIoProto - .internal_static_google_cloud_documentai_v1_BatchDocumentsInputConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.documentai.v1.DocumentIoProto.internal_static_google_cloud_documentai_v1_BatchDocumentsInputConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.documentai.v1.DocumentIoProto - .internal_static_google_cloud_documentai_v1_BatchDocumentsInputConfig_fieldAccessorTable + return com.google.cloud.documentai.v1.DocumentIoProto.internal_static_google_cloud_documentai_v1_BatchDocumentsInputConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.documentai.v1.BatchDocumentsInputConfig.class, - com.google.cloud.documentai.v1.BatchDocumentsInputConfig.Builder.class); + com.google.cloud.documentai.v1.BatchDocumentsInputConfig.class, com.google.cloud.documentai.v1.BatchDocumentsInputConfig.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_PREFIX(1), GCS_DOCUMENTS(2), SOURCE_NOT_SET(0); private final int value; - private SourceCase(int value) { this.value = value; } @@ -163,36 +138,30 @@ public static SourceCase valueOf(int value) { public static SourceCase forNumber(int value) { switch (value) { - case 1: - return GCS_PREFIX; - case 2: - return GCS_DOCUMENTS; - case 0: - return SOURCE_NOT_SET; - default: - return null; + case 1: return GCS_PREFIX; + case 2: return GCS_DOCUMENTS; + 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_PREFIX_FIELD_NUMBER = 1; /** - * - * *
    * The set of documents that match the specified Cloud Storage [gcs_prefix].
    * 
* * .google.cloud.documentai.v1.GcsPrefix gcs_prefix = 1; - * * @return Whether the gcsPrefix field is set. */ @java.lang.Override @@ -200,26 +169,21 @@ public boolean hasGcsPrefix() { return sourceCase_ == 1; } /** - * - * *
    * The set of documents that match the specified Cloud Storage [gcs_prefix].
    * 
* * .google.cloud.documentai.v1.GcsPrefix gcs_prefix = 1; - * * @return The gcsPrefix. */ @java.lang.Override public com.google.cloud.documentai.v1.GcsPrefix getGcsPrefix() { if (sourceCase_ == 1) { - return (com.google.cloud.documentai.v1.GcsPrefix) source_; + return (com.google.cloud.documentai.v1.GcsPrefix) source_; } return com.google.cloud.documentai.v1.GcsPrefix.getDefaultInstance(); } /** - * - * *
    * The set of documents that match the specified Cloud Storage [gcs_prefix].
    * 
@@ -229,21 +193,18 @@ public com.google.cloud.documentai.v1.GcsPrefix getGcsPrefix() { @java.lang.Override public com.google.cloud.documentai.v1.GcsPrefixOrBuilder getGcsPrefixOrBuilder() { if (sourceCase_ == 1) { - return (com.google.cloud.documentai.v1.GcsPrefix) source_; + return (com.google.cloud.documentai.v1.GcsPrefix) source_; } return com.google.cloud.documentai.v1.GcsPrefix.getDefaultInstance(); } public static final int GCS_DOCUMENTS_FIELD_NUMBER = 2; /** - * - * *
    * The set of documents individually specified on Cloud Storage.
    * 
* * .google.cloud.documentai.v1.GcsDocuments gcs_documents = 2; - * * @return Whether the gcsDocuments field is set. */ @java.lang.Override @@ -251,26 +212,21 @@ public boolean hasGcsDocuments() { return sourceCase_ == 2; } /** - * - * *
    * The set of documents individually specified on Cloud Storage.
    * 
* * .google.cloud.documentai.v1.GcsDocuments gcs_documents = 2; - * * @return The gcsDocuments. */ @java.lang.Override public com.google.cloud.documentai.v1.GcsDocuments getGcsDocuments() { if (sourceCase_ == 2) { - return (com.google.cloud.documentai.v1.GcsDocuments) source_; + return (com.google.cloud.documentai.v1.GcsDocuments) source_; } return com.google.cloud.documentai.v1.GcsDocuments.getDefaultInstance(); } /** - * - * *
    * The set of documents individually specified on Cloud Storage.
    * 
@@ -280,13 +236,12 @@ public com.google.cloud.documentai.v1.GcsDocuments getGcsDocuments() { @java.lang.Override public com.google.cloud.documentai.v1.GcsDocumentsOrBuilder getGcsDocumentsOrBuilder() { if (sourceCase_ == 2) { - return (com.google.cloud.documentai.v1.GcsDocuments) source_; + return (com.google.cloud.documentai.v1.GcsDocuments) source_; } return com.google.cloud.documentai.v1.GcsDocuments.getDefaultInstance(); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -298,7 +253,8 @@ public final boolean isInitialized() { } @java.lang.Override - public 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.documentai.v1.GcsPrefix) source_); } @@ -315,14 +271,12 @@ public int getSerializedSize() { size = 0; if (sourceCase_ == 1) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 1, (com.google.cloud.documentai.v1.GcsPrefix) source_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, (com.google.cloud.documentai.v1.GcsPrefix) source_); } if (sourceCase_ == 2) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 2, (com.google.cloud.documentai.v1.GcsDocuments) source_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, (com.google.cloud.documentai.v1.GcsDocuments) source_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -332,21 +286,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.documentai.v1.BatchDocumentsInputConfig)) { return super.equals(obj); } - com.google.cloud.documentai.v1.BatchDocumentsInputConfig other = - (com.google.cloud.documentai.v1.BatchDocumentsInputConfig) obj; + com.google.cloud.documentai.v1.BatchDocumentsInputConfig other = (com.google.cloud.documentai.v1.BatchDocumentsInputConfig) obj; if (!getSourceCase().equals(other.getSourceCase())) return false; switch (sourceCase_) { case 1: - if (!getGcsPrefix().equals(other.getGcsPrefix())) return false; + if (!getGcsPrefix() + .equals(other.getGcsPrefix())) return false; break; case 2: - if (!getGcsDocuments().equals(other.getGcsDocuments())) return false; + if (!getGcsDocuments() + .equals(other.getGcsDocuments())) return false; break; case 0: default: @@ -380,127 +335,117 @@ public int hashCode() { } public static com.google.cloud.documentai.v1.BatchDocumentsInputConfig parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.documentai.v1.BatchDocumentsInputConfig parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.documentai.v1.BatchDocumentsInputConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.documentai.v1.BatchDocumentsInputConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.documentai.v1.BatchDocumentsInputConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.documentai.v1.BatchDocumentsInputConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.documentai.v1.BatchDocumentsInputConfig parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.documentai.v1.BatchDocumentsInputConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.documentai.v1.BatchDocumentsInputConfig parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.documentai.v1.BatchDocumentsInputConfig parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.documentai.v1.BatchDocumentsInputConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.documentai.v1.BatchDocumentsInputConfig parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.documentai.v1.BatchDocumentsInputConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.documentai.v1.BatchDocumentsInputConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.documentai.v1.BatchDocumentsInputConfig prototype) { + public static Builder newBuilder(com.google.cloud.documentai.v1.BatchDocumentsInputConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 common config to specify a set of documents used as input.
    * 
* * Protobuf type {@code google.cloud.documentai.v1.BatchDocumentsInputConfig} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.documentai.v1.BatchDocumentsInputConfig) com.google.cloud.documentai.v1.BatchDocumentsInputConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.documentai.v1.DocumentIoProto - .internal_static_google_cloud_documentai_v1_BatchDocumentsInputConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.documentai.v1.DocumentIoProto.internal_static_google_cloud_documentai_v1_BatchDocumentsInputConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.documentai.v1.DocumentIoProto - .internal_static_google_cloud_documentai_v1_BatchDocumentsInputConfig_fieldAccessorTable + return com.google.cloud.documentai.v1.DocumentIoProto.internal_static_google_cloud_documentai_v1_BatchDocumentsInputConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.documentai.v1.BatchDocumentsInputConfig.class, - com.google.cloud.documentai.v1.BatchDocumentsInputConfig.Builder.class); + com.google.cloud.documentai.v1.BatchDocumentsInputConfig.class, com.google.cloud.documentai.v1.BatchDocumentsInputConfig.Builder.class); } // Construct using com.google.cloud.documentai.v1.BatchDocumentsInputConfig.newBuilder() @@ -508,15 +453,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(); @@ -526,9 +472,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.documentai.v1.DocumentIoProto - .internal_static_google_cloud_documentai_v1_BatchDocumentsInputConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.documentai.v1.DocumentIoProto.internal_static_google_cloud_documentai_v1_BatchDocumentsInputConfig_descriptor; } @java.lang.Override @@ -547,8 +493,7 @@ public com.google.cloud.documentai.v1.BatchDocumentsInputConfig build() { @java.lang.Override public com.google.cloud.documentai.v1.BatchDocumentsInputConfig buildPartial() { - com.google.cloud.documentai.v1.BatchDocumentsInputConfig result = - new com.google.cloud.documentai.v1.BatchDocumentsInputConfig(this); + com.google.cloud.documentai.v1.BatchDocumentsInputConfig result = new com.google.cloud.documentai.v1.BatchDocumentsInputConfig(this); if (sourceCase_ == 1) { if (gcsPrefixBuilder_ == null) { result.source_ = source_; @@ -572,39 +517,38 @@ public com.google.cloud.documentai.v1.BatchDocumentsInputConfig buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.documentai.v1.BatchDocumentsInputConfig) { - return mergeFrom((com.google.cloud.documentai.v1.BatchDocumentsInputConfig) other); + return mergeFrom((com.google.cloud.documentai.v1.BatchDocumentsInputConfig)other); } else { super.mergeFrom(other); return this; @@ -612,23 +556,19 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.documentai.v1.BatchDocumentsInputConfig other) { - if (other == com.google.cloud.documentai.v1.BatchDocumentsInputConfig.getDefaultInstance()) - return this; + if (other == com.google.cloud.documentai.v1.BatchDocumentsInputConfig.getDefaultInstance()) return this; switch (other.getSourceCase()) { - case GCS_PREFIX: - { - mergeGcsPrefix(other.getGcsPrefix()); - break; - } - case GCS_DOCUMENTS: - { - mergeGcsDocuments(other.getGcsDocuments()); - break; - } - case SOURCE_NOT_SET: - { - break; - } + case GCS_PREFIX: { + mergeGcsPrefix(other.getGcsPrefix()); + break; + } + case GCS_DOCUMENTS: { + mergeGcsDocuments(other.getGcsDocuments()); + break; + } + case SOURCE_NOT_SET: { + break; + } } this.mergeUnknownFields(other.unknownFields); onChanged(); @@ -649,8 +589,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.documentai.v1.BatchDocumentsInputConfig) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.documentai.v1.BatchDocumentsInputConfig) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -659,12 +598,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() { @@ -674,20 +613,15 @@ public Builder clearSource() { return this; } + private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.documentai.v1.GcsPrefix, - com.google.cloud.documentai.v1.GcsPrefix.Builder, - com.google.cloud.documentai.v1.GcsPrefixOrBuilder> - gcsPrefixBuilder_; + com.google.cloud.documentai.v1.GcsPrefix, com.google.cloud.documentai.v1.GcsPrefix.Builder, com.google.cloud.documentai.v1.GcsPrefixOrBuilder> gcsPrefixBuilder_; /** - * - * *
      * The set of documents that match the specified Cloud Storage [gcs_prefix].
      * 
* * .google.cloud.documentai.v1.GcsPrefix gcs_prefix = 1; - * * @return Whether the gcsPrefix field is set. */ @java.lang.Override @@ -695,14 +629,11 @@ public boolean hasGcsPrefix() { return sourceCase_ == 1; } /** - * - * *
      * The set of documents that match the specified Cloud Storage [gcs_prefix].
      * 
* * .google.cloud.documentai.v1.GcsPrefix gcs_prefix = 1; - * * @return The gcsPrefix. */ @java.lang.Override @@ -720,8 +651,6 @@ public com.google.cloud.documentai.v1.GcsPrefix getGcsPrefix() { } } /** - * - * *
      * The set of documents that match the specified Cloud Storage [gcs_prefix].
      * 
@@ -742,15 +671,14 @@ public Builder setGcsPrefix(com.google.cloud.documentai.v1.GcsPrefix value) { return this; } /** - * - * *
      * The set of documents that match the specified Cloud Storage [gcs_prefix].
      * 
* * .google.cloud.documentai.v1.GcsPrefix gcs_prefix = 1; */ - public Builder setGcsPrefix(com.google.cloud.documentai.v1.GcsPrefix.Builder builderForValue) { + public Builder setGcsPrefix( + com.google.cloud.documentai.v1.GcsPrefix.Builder builderForValue) { if (gcsPrefixBuilder_ == null) { source_ = builderForValue.build(); onChanged(); @@ -761,8 +689,6 @@ public Builder setGcsPrefix(com.google.cloud.documentai.v1.GcsPrefix.Builder bui return this; } /** - * - * *
      * The set of documents that match the specified Cloud Storage [gcs_prefix].
      * 
@@ -771,13 +697,10 @@ public Builder setGcsPrefix(com.google.cloud.documentai.v1.GcsPrefix.Builder bui */ public Builder mergeGcsPrefix(com.google.cloud.documentai.v1.GcsPrefix value) { if (gcsPrefixBuilder_ == null) { - if (sourceCase_ == 1 - && source_ != com.google.cloud.documentai.v1.GcsPrefix.getDefaultInstance()) { - source_ = - com.google.cloud.documentai.v1.GcsPrefix.newBuilder( - (com.google.cloud.documentai.v1.GcsPrefix) source_) - .mergeFrom(value) - .buildPartial(); + if (sourceCase_ == 1 && + source_ != com.google.cloud.documentai.v1.GcsPrefix.getDefaultInstance()) { + source_ = com.google.cloud.documentai.v1.GcsPrefix.newBuilder((com.google.cloud.documentai.v1.GcsPrefix) source_) + .mergeFrom(value).buildPartial(); } else { source_ = value; } @@ -793,8 +716,6 @@ public Builder mergeGcsPrefix(com.google.cloud.documentai.v1.GcsPrefix value) { return this; } /** - * - * *
      * The set of documents that match the specified Cloud Storage [gcs_prefix].
      * 
@@ -818,8 +739,6 @@ public Builder clearGcsPrefix() { return this; } /** - * - * *
      * The set of documents that match the specified Cloud Storage [gcs_prefix].
      * 
@@ -830,8 +749,6 @@ public com.google.cloud.documentai.v1.GcsPrefix.Builder getGcsPrefixBuilder() { return getGcsPrefixFieldBuilder().getBuilder(); } /** - * - * *
      * The set of documents that match the specified Cloud Storage [gcs_prefix].
      * 
@@ -850,8 +767,6 @@ public com.google.cloud.documentai.v1.GcsPrefixOrBuilder getGcsPrefixOrBuilder() } } /** - * - * *
      * The set of documents that match the specified Cloud Storage [gcs_prefix].
      * 
@@ -859,44 +774,32 @@ public com.google.cloud.documentai.v1.GcsPrefixOrBuilder getGcsPrefixOrBuilder() * .google.cloud.documentai.v1.GcsPrefix gcs_prefix = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.documentai.v1.GcsPrefix, - com.google.cloud.documentai.v1.GcsPrefix.Builder, - com.google.cloud.documentai.v1.GcsPrefixOrBuilder> + com.google.cloud.documentai.v1.GcsPrefix, com.google.cloud.documentai.v1.GcsPrefix.Builder, com.google.cloud.documentai.v1.GcsPrefixOrBuilder> getGcsPrefixFieldBuilder() { if (gcsPrefixBuilder_ == null) { if (!(sourceCase_ == 1)) { source_ = com.google.cloud.documentai.v1.GcsPrefix.getDefaultInstance(); } - gcsPrefixBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.documentai.v1.GcsPrefix, - com.google.cloud.documentai.v1.GcsPrefix.Builder, - com.google.cloud.documentai.v1.GcsPrefixOrBuilder>( + gcsPrefixBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.documentai.v1.GcsPrefix, com.google.cloud.documentai.v1.GcsPrefix.Builder, com.google.cloud.documentai.v1.GcsPrefixOrBuilder>( (com.google.cloud.documentai.v1.GcsPrefix) source_, getParentForChildren(), isClean()); source_ = null; } sourceCase_ = 1; - onChanged(); - ; + onChanged();; return gcsPrefixBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.documentai.v1.GcsDocuments, - com.google.cloud.documentai.v1.GcsDocuments.Builder, - com.google.cloud.documentai.v1.GcsDocumentsOrBuilder> - gcsDocumentsBuilder_; + com.google.cloud.documentai.v1.GcsDocuments, com.google.cloud.documentai.v1.GcsDocuments.Builder, com.google.cloud.documentai.v1.GcsDocumentsOrBuilder> gcsDocumentsBuilder_; /** - * - * *
      * The set of documents individually specified on Cloud Storage.
      * 
* * .google.cloud.documentai.v1.GcsDocuments gcs_documents = 2; - * * @return Whether the gcsDocuments field is set. */ @java.lang.Override @@ -904,14 +807,11 @@ public boolean hasGcsDocuments() { return sourceCase_ == 2; } /** - * - * *
      * The set of documents individually specified on Cloud Storage.
      * 
* * .google.cloud.documentai.v1.GcsDocuments gcs_documents = 2; - * * @return The gcsDocuments. */ @java.lang.Override @@ -929,8 +829,6 @@ public com.google.cloud.documentai.v1.GcsDocuments getGcsDocuments() { } } /** - * - * *
      * The set of documents individually specified on Cloud Storage.
      * 
@@ -951,8 +849,6 @@ public Builder setGcsDocuments(com.google.cloud.documentai.v1.GcsDocuments value return this; } /** - * - * *
      * The set of documents individually specified on Cloud Storage.
      * 
@@ -971,8 +867,6 @@ public Builder setGcsDocuments( return this; } /** - * - * *
      * The set of documents individually specified on Cloud Storage.
      * 
@@ -981,13 +875,10 @@ public Builder setGcsDocuments( */ public Builder mergeGcsDocuments(com.google.cloud.documentai.v1.GcsDocuments value) { if (gcsDocumentsBuilder_ == null) { - if (sourceCase_ == 2 - && source_ != com.google.cloud.documentai.v1.GcsDocuments.getDefaultInstance()) { - source_ = - com.google.cloud.documentai.v1.GcsDocuments.newBuilder( - (com.google.cloud.documentai.v1.GcsDocuments) source_) - .mergeFrom(value) - .buildPartial(); + if (sourceCase_ == 2 && + source_ != com.google.cloud.documentai.v1.GcsDocuments.getDefaultInstance()) { + source_ = com.google.cloud.documentai.v1.GcsDocuments.newBuilder((com.google.cloud.documentai.v1.GcsDocuments) source_) + .mergeFrom(value).buildPartial(); } else { source_ = value; } @@ -1003,8 +894,6 @@ public Builder mergeGcsDocuments(com.google.cloud.documentai.v1.GcsDocuments val return this; } /** - * - * *
      * The set of documents individually specified on Cloud Storage.
      * 
@@ -1028,8 +917,6 @@ public Builder clearGcsDocuments() { return this; } /** - * - * *
      * The set of documents individually specified on Cloud Storage.
      * 
@@ -1040,8 +927,6 @@ public com.google.cloud.documentai.v1.GcsDocuments.Builder getGcsDocumentsBuilde return getGcsDocumentsFieldBuilder().getBuilder(); } /** - * - * *
      * The set of documents individually specified on Cloud Storage.
      * 
@@ -1060,8 +945,6 @@ public com.google.cloud.documentai.v1.GcsDocumentsOrBuilder getGcsDocumentsOrBui } } /** - * - * *
      * The set of documents individually specified on Cloud Storage.
      * 
@@ -1069,32 +952,26 @@ public com.google.cloud.documentai.v1.GcsDocumentsOrBuilder getGcsDocumentsOrBui * .google.cloud.documentai.v1.GcsDocuments gcs_documents = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.documentai.v1.GcsDocuments, - com.google.cloud.documentai.v1.GcsDocuments.Builder, - com.google.cloud.documentai.v1.GcsDocumentsOrBuilder> + com.google.cloud.documentai.v1.GcsDocuments, com.google.cloud.documentai.v1.GcsDocuments.Builder, com.google.cloud.documentai.v1.GcsDocumentsOrBuilder> getGcsDocumentsFieldBuilder() { if (gcsDocumentsBuilder_ == null) { if (!(sourceCase_ == 2)) { source_ = com.google.cloud.documentai.v1.GcsDocuments.getDefaultInstance(); } - gcsDocumentsBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.documentai.v1.GcsDocuments, - com.google.cloud.documentai.v1.GcsDocuments.Builder, - com.google.cloud.documentai.v1.GcsDocumentsOrBuilder>( + gcsDocumentsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.documentai.v1.GcsDocuments, com.google.cloud.documentai.v1.GcsDocuments.Builder, com.google.cloud.documentai.v1.GcsDocumentsOrBuilder>( (com.google.cloud.documentai.v1.GcsDocuments) source_, getParentForChildren(), isClean()); source_ = null; } sourceCase_ = 2; - onChanged(); - ; + onChanged();; return gcsDocumentsBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1104,12 +981,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.documentai.v1.BatchDocumentsInputConfig) } // @@protoc_insertion_point(class_scope:google.cloud.documentai.v1.BatchDocumentsInputConfig) private static final com.google.cloud.documentai.v1.BatchDocumentsInputConfig DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.documentai.v1.BatchDocumentsInputConfig(); } @@ -1118,16 +995,16 @@ public static com.google.cloud.documentai.v1.BatchDocumentsInputConfig getDefaul return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public BatchDocumentsInputConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new BatchDocumentsInputConfig(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BatchDocumentsInputConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new BatchDocumentsInputConfig(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1142,4 +1019,6 @@ public com.google.protobuf.Parser getParserForType() public com.google.cloud.documentai.v1.BatchDocumentsInputConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/BatchDocumentsInputConfigOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/BatchDocumentsInputConfigOrBuilder.java similarity index 73% rename from proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/BatchDocumentsInputConfigOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/BatchDocumentsInputConfigOrBuilder.java index 63ef0988..5f79ede9 100644 --- a/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/BatchDocumentsInputConfigOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/BatchDocumentsInputConfigOrBuilder.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/documentai/v1/document_io.proto package com.google.cloud.documentai.v1; -public interface BatchDocumentsInputConfigOrBuilder - extends +public interface BatchDocumentsInputConfigOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.documentai.v1.BatchDocumentsInputConfig) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The set of documents that match the specified Cloud Storage [gcs_prefix].
    * 
* * .google.cloud.documentai.v1.GcsPrefix gcs_prefix = 1; - * * @return Whether the gcsPrefix field is set. */ boolean hasGcsPrefix(); /** - * - * *
    * The set of documents that match the specified Cloud Storage [gcs_prefix].
    * 
* * .google.cloud.documentai.v1.GcsPrefix gcs_prefix = 1; - * * @return The gcsPrefix. */ com.google.cloud.documentai.v1.GcsPrefix getGcsPrefix(); /** - * - * *
    * The set of documents that match the specified Cloud Storage [gcs_prefix].
    * 
@@ -59,32 +35,24 @@ public interface BatchDocumentsInputConfigOrBuilder com.google.cloud.documentai.v1.GcsPrefixOrBuilder getGcsPrefixOrBuilder(); /** - * - * *
    * The set of documents individually specified on Cloud Storage.
    * 
* * .google.cloud.documentai.v1.GcsDocuments gcs_documents = 2; - * * @return Whether the gcsDocuments field is set. */ boolean hasGcsDocuments(); /** - * - * *
    * The set of documents individually specified on Cloud Storage.
    * 
* * .google.cloud.documentai.v1.GcsDocuments gcs_documents = 2; - * * @return The gcsDocuments. */ com.google.cloud.documentai.v1.GcsDocuments getGcsDocuments(); /** - * - * *
    * The set of documents individually specified on Cloud Storage.
    * 
diff --git a/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/BatchProcessMetadata.java b/owl-bot-staging/v1/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/BatchProcessMetadata.java similarity index 69% rename from proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/BatchProcessMetadata.java rename to owl-bot-staging/v1/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/BatchProcessMetadata.java index d1060ac9..acb6ec47 100644 --- a/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/BatchProcessMetadata.java +++ b/owl-bot-staging/v1/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/BatchProcessMetadata.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/documentai/v1/document_processor_service.proto package com.google.cloud.documentai.v1; /** - * - * *
  * The long running operation metadata for batch process method.
  * 
* * Protobuf type {@code google.cloud.documentai.v1.BatchProcessMetadata} */ -public final class BatchProcessMetadata extends com.google.protobuf.GeneratedMessageV3 - implements +public final class BatchProcessMetadata extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.documentai.v1.BatchProcessMetadata) BatchProcessMetadataOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use BatchProcessMetadata.newBuilder() to construct. private BatchProcessMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private BatchProcessMetadata() { state_ = 0; stateMessage_ = ""; @@ -45,15 +27,16 @@ private BatchProcessMetadata() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new BatchProcessMetadata(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private BatchProcessMetadata( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -73,73 +56,60 @@ private BatchProcessMetadata( case 0: done = true; break; - case 8: - { - int rawValue = input.readEnum(); + case 8: { + int rawValue = input.readEnum(); - state_ = rawValue; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + state_ = rawValue; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - stateMessage_ = s; - break; + stateMessage_ = s; + break; + } + case 26: { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (createTime_ != null) { + subBuilder = createTime_.toBuilder(); } - case 26: - { - 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 34: - { - 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 34: { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (updateTime_ != null) { + subBuilder = updateTime_.toBuilder(); } - case 42: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - individualProcessStatuses_ = - new java.util.ArrayList< - com.google.cloud.documentai.v1.BatchProcessMetadata - .IndividualProcessStatus>(); - mutable_bitField0_ |= 0x00000001; - } - individualProcessStatuses_.add( - input.readMessage( - com.google.cloud.documentai.v1.BatchProcessMetadata.IndividualProcessStatus - .parser(), - extensionRegistry)); - break; + 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; + } + case 42: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + individualProcessStatuses_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } + individualProcessStatuses_.add( + input.readMessage(com.google.cloud.documentai.v1.BatchProcessMetadata.IndividualProcessStatus.parser(), extensionRegistry)); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -147,45 +117,39 @@ private BatchProcessMetadata( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { - individualProcessStatuses_ = - java.util.Collections.unmodifiableList(individualProcessStatuses_); + individualProcessStatuses_ = java.util.Collections.unmodifiableList(individualProcessStatuses_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.documentai.v1.DocumentAiProcessorService - .internal_static_google_cloud_documentai_v1_BatchProcessMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.documentai.v1.DocumentAiProcessorService.internal_static_google_cloud_documentai_v1_BatchProcessMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.documentai.v1.DocumentAiProcessorService - .internal_static_google_cloud_documentai_v1_BatchProcessMetadata_fieldAccessorTable + return com.google.cloud.documentai.v1.DocumentAiProcessorService.internal_static_google_cloud_documentai_v1_BatchProcessMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.documentai.v1.BatchProcessMetadata.class, - com.google.cloud.documentai.v1.BatchProcessMetadata.Builder.class); + com.google.cloud.documentai.v1.BatchProcessMetadata.class, com.google.cloud.documentai.v1.BatchProcessMetadata.Builder.class); } /** - * - * *
    * Possible states of the batch processing operation.
    * 
* * Protobuf enum {@code google.cloud.documentai.v1.BatchProcessMetadata.State} */ - public enum State implements com.google.protobuf.ProtocolMessageEnum { + public enum State + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * The default value. This value is used if the state is omitted.
      * 
@@ -194,8 +158,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ STATE_UNSPECIFIED(0), /** - * - * *
      * Request operation is waiting for scheduling.
      * 
@@ -204,8 +166,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ WAITING(1), /** - * - * *
      * Request is being processed.
      * 
@@ -214,8 +174,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ RUNNING(2), /** - * - * *
      * The batch processing completed successfully.
      * 
@@ -224,8 +182,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ SUCCEEDED(3), /** - * - * *
      * The batch processing was being cancelled.
      * 
@@ -234,8 +190,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ CANCELLING(4), /** - * - * *
      * The batch processing was cancelled.
      * 
@@ -244,8 +198,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ CANCELLED(5), /** - * - * *
      * The batch processing has failed.
      * 
@@ -257,8 +209,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
      * The default value. This value is used if the state is omitted.
      * 
@@ -267,8 +217,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int STATE_UNSPECIFIED_VALUE = 0; /** - * - * *
      * Request operation is waiting for scheduling.
      * 
@@ -277,8 +225,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int WAITING_VALUE = 1; /** - * - * *
      * Request is being processed.
      * 
@@ -287,8 +233,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int RUNNING_VALUE = 2; /** - * - * *
      * The batch processing completed successfully.
      * 
@@ -297,8 +241,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int SUCCEEDED_VALUE = 3; /** - * - * *
      * The batch processing was being cancelled.
      * 
@@ -307,8 +249,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int CANCELLING_VALUE = 4; /** - * - * *
      * The batch processing was cancelled.
      * 
@@ -317,8 +257,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int CANCELLED_VALUE = 5; /** - * - * *
      * The batch processing has failed.
      * 
@@ -327,6 +265,7 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int FAILED_VALUE = 6; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -351,59 +290,53 @@ public static State valueOf(int value) { */ public static State forNumber(int value) { switch (value) { - case 0: - return STATE_UNSPECIFIED; - case 1: - return WAITING; - case 2: - return RUNNING; - case 3: - return SUCCEEDED; - case 4: - return CANCELLING; - case 5: - return CANCELLED; - case 6: - return FAILED; - default: - return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { - return internalValueMap; + case 0: return STATE_UNSPECIFIED; + case 1: return WAITING; + case 2: return RUNNING; + case 3: return SUCCEEDED; + case 4: return CANCELLING; + case 5: return CANCELLED; + case 6: return FAILED; + default: return null; + } } - 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 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() { + 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.documentai.v1.BatchProcessMetadata.getDescriptor() - .getEnumTypes() - .get(0); + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.google.cloud.documentai.v1.BatchProcessMetadata.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; @@ -420,14 +353,11 @@ private State(int value) { // @@protoc_insertion_point(enum_scope:google.cloud.documentai.v1.BatchProcessMetadata.State) } - public interface IndividualProcessStatusOrBuilder - extends + public interface IndividualProcessStatusOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.documentai.v1.BatchProcessMetadata.IndividualProcessStatus) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * The source of the document, same as the [input_gcs_source] field in the
      * request when the batch process started. The batch process is started by
@@ -436,13 +366,10 @@ public interface IndividualProcessStatusOrBuilder
      * 
* * string input_gcs_source = 1; - * * @return The inputGcsSource. */ java.lang.String getInputGcsSource(); /** - * - * *
      * The source of the document, same as the [input_gcs_source] field in the
      * request when the batch process started. The batch process is started by
@@ -451,38 +378,30 @@ public interface IndividualProcessStatusOrBuilder
      * 
* * string input_gcs_source = 1; - * * @return The bytes for inputGcsSource. */ - com.google.protobuf.ByteString getInputGcsSourceBytes(); + com.google.protobuf.ByteString + getInputGcsSourceBytes(); /** - * - * *
      * The status of the processing of the document.
      * 
* * .google.rpc.Status status = 2; - * * @return Whether the status field is set. */ boolean hasStatus(); /** - * - * *
      * The status of the processing of the document.
      * 
* * .google.rpc.Status status = 2; - * * @return The status. */ com.google.rpc.Status getStatus(); /** - * - * *
      * The status of the processing of the document.
      * 
@@ -492,59 +411,46 @@ public interface IndividualProcessStatusOrBuilder com.google.rpc.StatusOrBuilder getStatusOrBuilder(); /** - * - * *
      * The output_gcs_destination (in the request as 'output_gcs_destination')
      * of the processed document if it was successful, otherwise empty.
      * 
* * string output_gcs_destination = 3; - * * @return The outputGcsDestination. */ java.lang.String getOutputGcsDestination(); /** - * - * *
      * The output_gcs_destination (in the request as 'output_gcs_destination')
      * of the processed document if it was successful, otherwise empty.
      * 
* * string output_gcs_destination = 3; - * * @return The bytes for outputGcsDestination. */ - com.google.protobuf.ByteString getOutputGcsDestinationBytes(); + com.google.protobuf.ByteString + getOutputGcsDestinationBytes(); /** - * - * *
      * The status of human review on the processed document.
      * 
* * .google.cloud.documentai.v1.HumanReviewStatus human_review_status = 5; - * * @return Whether the humanReviewStatus field is set. */ boolean hasHumanReviewStatus(); /** - * - * *
      * The status of human review on the processed document.
      * 
* * .google.cloud.documentai.v1.HumanReviewStatus human_review_status = 5; - * * @return The humanReviewStatus. */ com.google.cloud.documentai.v1.HumanReviewStatus getHumanReviewStatus(); /** - * - * *
      * The status of human review on the processed document.
      * 
@@ -554,24 +460,21 @@ public interface IndividualProcessStatusOrBuilder com.google.cloud.documentai.v1.HumanReviewStatusOrBuilder getHumanReviewStatusOrBuilder(); } /** - * - * *
    * The status of a each individual document in the batch process.
    * 
* * Protobuf type {@code google.cloud.documentai.v1.BatchProcessMetadata.IndividualProcessStatus} */ - public static final class IndividualProcessStatus extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class IndividualProcessStatus extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.documentai.v1.BatchProcessMetadata.IndividualProcessStatus) IndividualProcessStatusOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use IndividualProcessStatus.newBuilder() to construct. private IndividualProcessStatus(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private IndividualProcessStatus() { inputGcsSource_ = ""; outputGcsDestination_ = ""; @@ -579,15 +482,16 @@ private IndividualProcessStatus() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new IndividualProcessStatus(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private IndividualProcessStatus( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -606,58 +510,51 @@ private IndividualProcessStatus( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - inputGcsSource_ = s; - break; + inputGcsSource_ = s; + break; + } + case 18: { + com.google.rpc.Status.Builder subBuilder = null; + if (status_ != null) { + subBuilder = status_.toBuilder(); } - case 18: - { - com.google.rpc.Status.Builder subBuilder = null; - if (status_ != null) { - subBuilder = status_.toBuilder(); - } - status_ = input.readMessage(com.google.rpc.Status.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(status_); - status_ = subBuilder.buildPartial(); - } - - break; + status_ = input.readMessage(com.google.rpc.Status.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(status_); + status_ = subBuilder.buildPartial(); } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - outputGcsDestination_ = s; - break; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + outputGcsDestination_ = s; + break; + } + case 42: { + com.google.cloud.documentai.v1.HumanReviewStatus.Builder subBuilder = null; + if (humanReviewStatus_ != null) { + subBuilder = humanReviewStatus_.toBuilder(); } - case 42: - { - com.google.cloud.documentai.v1.HumanReviewStatus.Builder subBuilder = null; - if (humanReviewStatus_ != null) { - subBuilder = humanReviewStatus_.toBuilder(); - } - humanReviewStatus_ = - input.readMessage( - com.google.cloud.documentai.v1.HumanReviewStatus.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(humanReviewStatus_); - humanReviewStatus_ = subBuilder.buildPartial(); - } - - break; + humanReviewStatus_ = input.readMessage(com.google.cloud.documentai.v1.HumanReviewStatus.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(humanReviewStatus_); + humanReviewStatus_ = 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) { @@ -665,34 +562,29 @@ private IndividualProcessStatus( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.documentai.v1.DocumentAiProcessorService - .internal_static_google_cloud_documentai_v1_BatchProcessMetadata_IndividualProcessStatus_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.documentai.v1.DocumentAiProcessorService.internal_static_google_cloud_documentai_v1_BatchProcessMetadata_IndividualProcessStatus_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.documentai.v1.DocumentAiProcessorService - .internal_static_google_cloud_documentai_v1_BatchProcessMetadata_IndividualProcessStatus_fieldAccessorTable + return com.google.cloud.documentai.v1.DocumentAiProcessorService.internal_static_google_cloud_documentai_v1_BatchProcessMetadata_IndividualProcessStatus_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.documentai.v1.BatchProcessMetadata.IndividualProcessStatus.class, - com.google.cloud.documentai.v1.BatchProcessMetadata.IndividualProcessStatus.Builder - .class); + com.google.cloud.documentai.v1.BatchProcessMetadata.IndividualProcessStatus.class, com.google.cloud.documentai.v1.BatchProcessMetadata.IndividualProcessStatus.Builder.class); } public static final int INPUT_GCS_SOURCE_FIELD_NUMBER = 1; private volatile java.lang.Object inputGcsSource_; /** - * - * *
      * The source of the document, same as the [input_gcs_source] field in the
      * request when the batch process started. The batch process is started by
@@ -701,7 +593,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
      * 
* * string input_gcs_source = 1; - * * @return The inputGcsSource. */ @java.lang.Override @@ -710,15 +601,14 @@ public java.lang.String getInputGcsSource() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); inputGcsSource_ = s; return s; } } /** - * - * *
      * The source of the document, same as the [input_gcs_source] field in the
      * request when the batch process started. The batch process is started by
@@ -727,15 +617,16 @@ public java.lang.String getInputGcsSource() {
      * 
* * string input_gcs_source = 1; - * * @return The bytes for inputGcsSource. */ @java.lang.Override - public com.google.protobuf.ByteString getInputGcsSourceBytes() { + public com.google.protobuf.ByteString + getInputGcsSourceBytes() { java.lang.Object ref = inputGcsSource_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); inputGcsSource_ = b; return b; } else { @@ -746,14 +637,11 @@ public com.google.protobuf.ByteString getInputGcsSourceBytes() { public static final int STATUS_FIELD_NUMBER = 2; private com.google.rpc.Status status_; /** - * - * *
      * The status of the processing of the document.
      * 
* * .google.rpc.Status status = 2; - * * @return Whether the status field is set. */ @java.lang.Override @@ -761,14 +649,11 @@ public boolean hasStatus() { return status_ != null; } /** - * - * *
      * The status of the processing of the document.
      * 
* * .google.rpc.Status status = 2; - * * @return The status. */ @java.lang.Override @@ -776,8 +661,6 @@ public com.google.rpc.Status getStatus() { return status_ == null ? com.google.rpc.Status.getDefaultInstance() : status_; } /** - * - * *
      * The status of the processing of the document.
      * 
@@ -792,15 +675,12 @@ public com.google.rpc.StatusOrBuilder getStatusOrBuilder() { public static final int OUTPUT_GCS_DESTINATION_FIELD_NUMBER = 3; private volatile java.lang.Object outputGcsDestination_; /** - * - * *
      * The output_gcs_destination (in the request as 'output_gcs_destination')
      * of the processed document if it was successful, otherwise empty.
      * 
* * string output_gcs_destination = 3; - * * @return The outputGcsDestination. */ @java.lang.Override @@ -809,30 +689,30 @@ public java.lang.String getOutputGcsDestination() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); outputGcsDestination_ = s; return s; } } /** - * - * *
      * The output_gcs_destination (in the request as 'output_gcs_destination')
      * of the processed document if it was successful, otherwise empty.
      * 
* * string output_gcs_destination = 3; - * * @return The bytes for outputGcsDestination. */ @java.lang.Override - public com.google.protobuf.ByteString getOutputGcsDestinationBytes() { + public com.google.protobuf.ByteString + getOutputGcsDestinationBytes() { java.lang.Object ref = outputGcsDestination_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); outputGcsDestination_ = b; return b; } else { @@ -843,14 +723,11 @@ public com.google.protobuf.ByteString getOutputGcsDestinationBytes() { public static final int HUMAN_REVIEW_STATUS_FIELD_NUMBER = 5; private com.google.cloud.documentai.v1.HumanReviewStatus humanReviewStatus_; /** - * - * *
      * The status of human review on the processed document.
      * 
* * .google.cloud.documentai.v1.HumanReviewStatus human_review_status = 5; - * * @return Whether the humanReviewStatus field is set. */ @java.lang.Override @@ -858,25 +735,18 @@ public boolean hasHumanReviewStatus() { return humanReviewStatus_ != null; } /** - * - * *
      * The status of human review on the processed document.
      * 
* * .google.cloud.documentai.v1.HumanReviewStatus human_review_status = 5; - * * @return The humanReviewStatus. */ @java.lang.Override public com.google.cloud.documentai.v1.HumanReviewStatus getHumanReviewStatus() { - return humanReviewStatus_ == null - ? com.google.cloud.documentai.v1.HumanReviewStatus.getDefaultInstance() - : humanReviewStatus_; + return humanReviewStatus_ == null ? com.google.cloud.documentai.v1.HumanReviewStatus.getDefaultInstance() : humanReviewStatus_; } /** - * - * *
      * The status of human review on the processed document.
      * 
@@ -884,13 +754,11 @@ public com.google.cloud.documentai.v1.HumanReviewStatus getHumanReviewStatus() { * .google.cloud.documentai.v1.HumanReviewStatus human_review_status = 5; */ @java.lang.Override - public com.google.cloud.documentai.v1.HumanReviewStatusOrBuilder - getHumanReviewStatusOrBuilder() { + public com.google.cloud.documentai.v1.HumanReviewStatusOrBuilder getHumanReviewStatusOrBuilder() { return getHumanReviewStatus(); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -902,7 +770,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(inputGcsSource_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, inputGcsSource_); } @@ -928,13 +797,15 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, inputGcsSource_); } if (status_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getStatus()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getStatus()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(outputGcsDestination_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, outputGcsDestination_); } if (humanReviewStatus_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getHumanReviewStatus()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, getHumanReviewStatus()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -944,24 +815,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.documentai.v1.BatchProcessMetadata.IndividualProcessStatus)) { + if (!(obj instanceof com.google.cloud.documentai.v1.BatchProcessMetadata.IndividualProcessStatus)) { return super.equals(obj); } - com.google.cloud.documentai.v1.BatchProcessMetadata.IndividualProcessStatus other = - (com.google.cloud.documentai.v1.BatchProcessMetadata.IndividualProcessStatus) obj; + com.google.cloud.documentai.v1.BatchProcessMetadata.IndividualProcessStatus other = (com.google.cloud.documentai.v1.BatchProcessMetadata.IndividualProcessStatus) obj; - if (!getInputGcsSource().equals(other.getInputGcsSource())) return false; + if (!getInputGcsSource() + .equals(other.getInputGcsSource())) return false; if (hasStatus() != other.hasStatus()) return false; if (hasStatus()) { - if (!getStatus().equals(other.getStatus())) return false; + if (!getStatus() + .equals(other.getStatus())) return false; } - if (!getOutputGcsDestination().equals(other.getOutputGcsDestination())) return false; + if (!getOutputGcsDestination() + .equals(other.getOutputGcsDestination())) return false; if (hasHumanReviewStatus() != other.hasHumanReviewStatus()) return false; if (hasHumanReviewStatus()) { - if (!getHumanReviewStatus().equals(other.getHumanReviewStatus())) return false; + if (!getHumanReviewStatus() + .equals(other.getHumanReviewStatus())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -991,101 +864,88 @@ public int hashCode() { return hash; } - public static com.google.cloud.documentai.v1.BatchProcessMetadata.IndividualProcessStatus - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.documentai.v1.BatchProcessMetadata.IndividualProcessStatus parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.documentai.v1.BatchProcessMetadata.IndividualProcessStatus - parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.documentai.v1.BatchProcessMetadata.IndividualProcessStatus parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.documentai.v1.BatchProcessMetadata.IndividualProcessStatus - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.documentai.v1.BatchProcessMetadata.IndividualProcessStatus parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.documentai.v1.BatchProcessMetadata.IndividualProcessStatus - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.documentai.v1.BatchProcessMetadata.IndividualProcessStatus parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.documentai.v1.BatchProcessMetadata.IndividualProcessStatus - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.documentai.v1.BatchProcessMetadata.IndividualProcessStatus parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.documentai.v1.BatchProcessMetadata.IndividualProcessStatus - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.documentai.v1.BatchProcessMetadata.IndividualProcessStatus parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.documentai.v1.BatchProcessMetadata.IndividualProcessStatus - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.documentai.v1.BatchProcessMetadata.IndividualProcessStatus parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.documentai.v1.BatchProcessMetadata.IndividualProcessStatus - parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.documentai.v1.BatchProcessMetadata.IndividualProcessStatus parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.documentai.v1.BatchProcessMetadata.IndividualProcessStatus - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.documentai.v1.BatchProcessMetadata.IndividualProcessStatus parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.documentai.v1.BatchProcessMetadata.IndividualProcessStatus - 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.documentai.v1.BatchProcessMetadata.IndividualProcessStatus 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.documentai.v1.BatchProcessMetadata.IndividualProcessStatus - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.documentai.v1.BatchProcessMetadata.IndividualProcessStatus parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.documentai.v1.BatchProcessMetadata.IndividualProcessStatus - parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.documentai.v1.BatchProcessMetadata.IndividualProcessStatus parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.documentai.v1.BatchProcessMetadata.IndividualProcessStatus prototype) { + public static Builder newBuilder(com.google.cloud.documentai.v1.BatchProcessMetadata.IndividualProcessStatus prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -1095,50 +955,44 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * The status of a each individual document in the batch process.
      * 
* * Protobuf type {@code google.cloud.documentai.v1.BatchProcessMetadata.IndividualProcessStatus} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.documentai.v1.BatchProcessMetadata.IndividualProcessStatus) com.google.cloud.documentai.v1.BatchProcessMetadata.IndividualProcessStatusOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.documentai.v1.DocumentAiProcessorService - .internal_static_google_cloud_documentai_v1_BatchProcessMetadata_IndividualProcessStatus_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.documentai.v1.DocumentAiProcessorService.internal_static_google_cloud_documentai_v1_BatchProcessMetadata_IndividualProcessStatus_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.documentai.v1.DocumentAiProcessorService - .internal_static_google_cloud_documentai_v1_BatchProcessMetadata_IndividualProcessStatus_fieldAccessorTable + return com.google.cloud.documentai.v1.DocumentAiProcessorService.internal_static_google_cloud_documentai_v1_BatchProcessMetadata_IndividualProcessStatus_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.documentai.v1.BatchProcessMetadata.IndividualProcessStatus.class, - com.google.cloud.documentai.v1.BatchProcessMetadata.IndividualProcessStatus.Builder - .class); + com.google.cloud.documentai.v1.BatchProcessMetadata.IndividualProcessStatus.class, com.google.cloud.documentai.v1.BatchProcessMetadata.IndividualProcessStatus.Builder.class); } - // Construct using - // com.google.cloud.documentai.v1.BatchProcessMetadata.IndividualProcessStatus.newBuilder() + // Construct using com.google.cloud.documentai.v1.BatchProcessMetadata.IndividualProcessStatus.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(); @@ -1162,22 +1016,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.documentai.v1.DocumentAiProcessorService - .internal_static_google_cloud_documentai_v1_BatchProcessMetadata_IndividualProcessStatus_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.documentai.v1.DocumentAiProcessorService.internal_static_google_cloud_documentai_v1_BatchProcessMetadata_IndividualProcessStatus_descriptor; } @java.lang.Override - public com.google.cloud.documentai.v1.BatchProcessMetadata.IndividualProcessStatus - getDefaultInstanceForType() { - return com.google.cloud.documentai.v1.BatchProcessMetadata.IndividualProcessStatus - .getDefaultInstance(); + public com.google.cloud.documentai.v1.BatchProcessMetadata.IndividualProcessStatus getDefaultInstanceForType() { + return com.google.cloud.documentai.v1.BatchProcessMetadata.IndividualProcessStatus.getDefaultInstance(); } @java.lang.Override public com.google.cloud.documentai.v1.BatchProcessMetadata.IndividualProcessStatus build() { - com.google.cloud.documentai.v1.BatchProcessMetadata.IndividualProcessStatus result = - buildPartial(); + com.google.cloud.documentai.v1.BatchProcessMetadata.IndividualProcessStatus result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -1185,10 +1036,8 @@ public com.google.cloud.documentai.v1.BatchProcessMetadata.IndividualProcessStat } @java.lang.Override - public com.google.cloud.documentai.v1.BatchProcessMetadata.IndividualProcessStatus - buildPartial() { - com.google.cloud.documentai.v1.BatchProcessMetadata.IndividualProcessStatus result = - new com.google.cloud.documentai.v1.BatchProcessMetadata.IndividualProcessStatus(this); + public com.google.cloud.documentai.v1.BatchProcessMetadata.IndividualProcessStatus buildPartial() { + com.google.cloud.documentai.v1.BatchProcessMetadata.IndividualProcessStatus result = new com.google.cloud.documentai.v1.BatchProcessMetadata.IndividualProcessStatus(this); result.inputGcsSource_ = inputGcsSource_; if (statusBuilder_ == null) { result.status_ = status_; @@ -1209,55 +1058,46 @@ public com.google.cloud.documentai.v1.BatchProcessMetadata.IndividualProcessStat public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.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.documentai.v1.BatchProcessMetadata.IndividualProcessStatus) { - return mergeFrom( - (com.google.cloud.documentai.v1.BatchProcessMetadata.IndividualProcessStatus) other); + if (other instanceof com.google.cloud.documentai.v1.BatchProcessMetadata.IndividualProcessStatus) { + return mergeFrom((com.google.cloud.documentai.v1.BatchProcessMetadata.IndividualProcessStatus)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.documentai.v1.BatchProcessMetadata.IndividualProcessStatus other) { - if (other - == com.google.cloud.documentai.v1.BatchProcessMetadata.IndividualProcessStatus - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.documentai.v1.BatchProcessMetadata.IndividualProcessStatus other) { + if (other == com.google.cloud.documentai.v1.BatchProcessMetadata.IndividualProcessStatus.getDefaultInstance()) return this; if (!other.getInputGcsSource().isEmpty()) { inputGcsSource_ = other.inputGcsSource_; onChanged(); @@ -1287,14 +1127,11 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.documentai.v1.BatchProcessMetadata.IndividualProcessStatus parsedMessage = - null; + com.google.cloud.documentai.v1.BatchProcessMetadata.IndividualProcessStatus parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.documentai.v1.BatchProcessMetadata.IndividualProcessStatus) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.documentai.v1.BatchProcessMetadata.IndividualProcessStatus) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -1306,8 +1143,6 @@ public Builder mergeFrom( private java.lang.Object inputGcsSource_ = ""; /** - * - * *
        * The source of the document, same as the [input_gcs_source] field in the
        * request when the batch process started. The batch process is started by
@@ -1316,13 +1151,13 @@ public Builder mergeFrom(
        * 
* * string input_gcs_source = 1; - * * @return The inputGcsSource. */ public java.lang.String getInputGcsSource() { java.lang.Object ref = inputGcsSource_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); inputGcsSource_ = s; return s; @@ -1331,8 +1166,6 @@ public java.lang.String getInputGcsSource() { } } /** - * - * *
        * The source of the document, same as the [input_gcs_source] field in the
        * request when the batch process started. The batch process is started by
@@ -1341,14 +1174,15 @@ public java.lang.String getInputGcsSource() {
        * 
* * string input_gcs_source = 1; - * * @return The bytes for inputGcsSource. */ - public com.google.protobuf.ByteString getInputGcsSourceBytes() { + public com.google.protobuf.ByteString + getInputGcsSourceBytes() { java.lang.Object ref = inputGcsSource_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); inputGcsSource_ = b; return b; } else { @@ -1356,8 +1190,6 @@ public com.google.protobuf.ByteString getInputGcsSourceBytes() { } } /** - * - * *
        * The source of the document, same as the [input_gcs_source] field in the
        * request when the batch process started. The batch process is started by
@@ -1366,22 +1198,20 @@ public com.google.protobuf.ByteString getInputGcsSourceBytes() {
        * 
* * string input_gcs_source = 1; - * * @param value The inputGcsSource to set. * @return This builder for chaining. */ - public Builder setInputGcsSource(java.lang.String value) { + public Builder setInputGcsSource( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + inputGcsSource_ = value; onChanged(); return this; } /** - * - * *
        * The source of the document, same as the [input_gcs_source] field in the
        * request when the batch process started. The batch process is started by
@@ -1390,18 +1220,15 @@ public Builder setInputGcsSource(java.lang.String value) {
        * 
* * string input_gcs_source = 1; - * * @return This builder for chaining. */ public Builder clearInputGcsSource() { - + inputGcsSource_ = getDefaultInstance().getInputGcsSource(); onChanged(); return this; } /** - * - * *
        * The source of the document, same as the [input_gcs_source] field in the
        * request when the batch process started. The batch process is started by
@@ -1410,16 +1237,16 @@ public Builder clearInputGcsSource() {
        * 
* * string input_gcs_source = 1; - * * @param value The bytes for inputGcsSource to set. * @return This builder for chaining. */ - public Builder setInputGcsSourceBytes(com.google.protobuf.ByteString value) { + public Builder setInputGcsSourceBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + inputGcsSource_ = value; onChanged(); return this; @@ -1427,31 +1254,24 @@ public Builder setInputGcsSourceBytes(com.google.protobuf.ByteString value) { private com.google.rpc.Status status_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> - statusBuilder_; + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> statusBuilder_; /** - * - * *
        * The status of the processing of the document.
        * 
* * .google.rpc.Status status = 2; - * * @return Whether the status field is set. */ public boolean hasStatus() { return statusBuilder_ != null || status_ != null; } /** - * - * *
        * The status of the processing of the document.
        * 
* * .google.rpc.Status status = 2; - * * @return The status. */ public com.google.rpc.Status getStatus() { @@ -1462,8 +1282,6 @@ public com.google.rpc.Status getStatus() { } } /** - * - * *
        * The status of the processing of the document.
        * 
@@ -1484,15 +1302,14 @@ public Builder setStatus(com.google.rpc.Status value) { return this; } /** - * - * *
        * The status of the processing of the document.
        * 
* * .google.rpc.Status status = 2; */ - public Builder setStatus(com.google.rpc.Status.Builder builderForValue) { + public Builder setStatus( + com.google.rpc.Status.Builder builderForValue) { if (statusBuilder_ == null) { status_ = builderForValue.build(); onChanged(); @@ -1503,8 +1320,6 @@ public Builder setStatus(com.google.rpc.Status.Builder builderForValue) { return this; } /** - * - * *
        * The status of the processing of the document.
        * 
@@ -1514,7 +1329,8 @@ public Builder setStatus(com.google.rpc.Status.Builder builderForValue) { public Builder mergeStatus(com.google.rpc.Status value) { if (statusBuilder_ == null) { if (status_ != null) { - status_ = com.google.rpc.Status.newBuilder(status_).mergeFrom(value).buildPartial(); + status_ = + com.google.rpc.Status.newBuilder(status_).mergeFrom(value).buildPartial(); } else { status_ = value; } @@ -1526,8 +1342,6 @@ public Builder mergeStatus(com.google.rpc.Status value) { return this; } /** - * - * *
        * The status of the processing of the document.
        * 
@@ -1546,8 +1360,6 @@ public Builder clearStatus() { return this; } /** - * - * *
        * The status of the processing of the document.
        * 
@@ -1555,13 +1367,11 @@ public Builder clearStatus() { * .google.rpc.Status status = 2; */ public com.google.rpc.Status.Builder getStatusBuilder() { - + onChanged(); return getStatusFieldBuilder().getBuilder(); } /** - * - * *
        * The status of the processing of the document.
        * 
@@ -1572,12 +1382,11 @@ public com.google.rpc.StatusOrBuilder getStatusOrBuilder() { if (statusBuilder_ != null) { return statusBuilder_.getMessageOrBuilder(); } else { - return status_ == null ? com.google.rpc.Status.getDefaultInstance() : status_; + return status_ == null ? + com.google.rpc.Status.getDefaultInstance() : status_; } } /** - * - * *
        * The status of the processing of the document.
        * 
@@ -1585,14 +1394,14 @@ public com.google.rpc.StatusOrBuilder getStatusOrBuilder() { * .google.rpc.Status status = 2; */ 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> getStatusFieldBuilder() { if (statusBuilder_ == null) { - statusBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.rpc.Status, - com.google.rpc.Status.Builder, - com.google.rpc.StatusOrBuilder>(getStatus(), getParentForChildren(), isClean()); + statusBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder>( + getStatus(), + getParentForChildren(), + isClean()); status_ = null; } return statusBuilder_; @@ -1600,21 +1409,19 @@ public com.google.rpc.StatusOrBuilder getStatusOrBuilder() { private java.lang.Object outputGcsDestination_ = ""; /** - * - * *
        * The output_gcs_destination (in the request as 'output_gcs_destination')
        * of the processed document if it was successful, otherwise empty.
        * 
* * string output_gcs_destination = 3; - * * @return The outputGcsDestination. */ public java.lang.String getOutputGcsDestination() { java.lang.Object ref = outputGcsDestination_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); outputGcsDestination_ = s; return s; @@ -1623,22 +1430,21 @@ public java.lang.String getOutputGcsDestination() { } } /** - * - * *
        * The output_gcs_destination (in the request as 'output_gcs_destination')
        * of the processed document if it was successful, otherwise empty.
        * 
* * string output_gcs_destination = 3; - * * @return The bytes for outputGcsDestination. */ - public com.google.protobuf.ByteString getOutputGcsDestinationBytes() { + public com.google.protobuf.ByteString + getOutputGcsDestinationBytes() { java.lang.Object ref = outputGcsDestination_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); outputGcsDestination_ = b; return b; } else { @@ -1646,64 +1452,57 @@ public com.google.protobuf.ByteString getOutputGcsDestinationBytes() { } } /** - * - * *
        * The output_gcs_destination (in the request as 'output_gcs_destination')
        * of the processed document if it was successful, otherwise empty.
        * 
* * string output_gcs_destination = 3; - * * @param value The outputGcsDestination to set. * @return This builder for chaining. */ - public Builder setOutputGcsDestination(java.lang.String value) { + public Builder setOutputGcsDestination( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + outputGcsDestination_ = value; onChanged(); return this; } /** - * - * *
        * The output_gcs_destination (in the request as 'output_gcs_destination')
        * of the processed document if it was successful, otherwise empty.
        * 
* * string output_gcs_destination = 3; - * * @return This builder for chaining. */ public Builder clearOutputGcsDestination() { - + outputGcsDestination_ = getDefaultInstance().getOutputGcsDestination(); onChanged(); return this; } /** - * - * *
        * The output_gcs_destination (in the request as 'output_gcs_destination')
        * of the processed document if it was successful, otherwise empty.
        * 
* * string output_gcs_destination = 3; - * * @param value The bytes for outputGcsDestination to set. * @return This builder for chaining. */ - public Builder setOutputGcsDestinationBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + public Builder setOutputGcsDestinationBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + outputGcsDestination_ = value; onChanged(); return this; @@ -1711,47 +1510,34 @@ public Builder setOutputGcsDestinationBytes(com.google.protobuf.ByteString value private com.google.cloud.documentai.v1.HumanReviewStatus humanReviewStatus_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.documentai.v1.HumanReviewStatus, - com.google.cloud.documentai.v1.HumanReviewStatus.Builder, - com.google.cloud.documentai.v1.HumanReviewStatusOrBuilder> - humanReviewStatusBuilder_; + com.google.cloud.documentai.v1.HumanReviewStatus, com.google.cloud.documentai.v1.HumanReviewStatus.Builder, com.google.cloud.documentai.v1.HumanReviewStatusOrBuilder> humanReviewStatusBuilder_; /** - * - * *
        * The status of human review on the processed document.
        * 
* * .google.cloud.documentai.v1.HumanReviewStatus human_review_status = 5; - * * @return Whether the humanReviewStatus field is set. */ public boolean hasHumanReviewStatus() { return humanReviewStatusBuilder_ != null || humanReviewStatus_ != null; } /** - * - * *
        * The status of human review on the processed document.
        * 
* * .google.cloud.documentai.v1.HumanReviewStatus human_review_status = 5; - * * @return The humanReviewStatus. */ public com.google.cloud.documentai.v1.HumanReviewStatus getHumanReviewStatus() { if (humanReviewStatusBuilder_ == null) { - return humanReviewStatus_ == null - ? com.google.cloud.documentai.v1.HumanReviewStatus.getDefaultInstance() - : humanReviewStatus_; + return humanReviewStatus_ == null ? com.google.cloud.documentai.v1.HumanReviewStatus.getDefaultInstance() : humanReviewStatus_; } else { return humanReviewStatusBuilder_.getMessage(); } } /** - * - * *
        * The status of human review on the processed document.
        * 
@@ -1772,8 +1558,6 @@ public Builder setHumanReviewStatus(com.google.cloud.documentai.v1.HumanReviewSt return this; } /** - * - * *
        * The status of human review on the processed document.
        * 
@@ -1792,22 +1576,17 @@ public Builder setHumanReviewStatus( return this; } /** - * - * *
        * The status of human review on the processed document.
        * 
* * .google.cloud.documentai.v1.HumanReviewStatus human_review_status = 5; */ - public Builder mergeHumanReviewStatus( - com.google.cloud.documentai.v1.HumanReviewStatus value) { + public Builder mergeHumanReviewStatus(com.google.cloud.documentai.v1.HumanReviewStatus value) { if (humanReviewStatusBuilder_ == null) { if (humanReviewStatus_ != null) { humanReviewStatus_ = - com.google.cloud.documentai.v1.HumanReviewStatus.newBuilder(humanReviewStatus_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.documentai.v1.HumanReviewStatus.newBuilder(humanReviewStatus_).mergeFrom(value).buildPartial(); } else { humanReviewStatus_ = value; } @@ -1819,8 +1598,6 @@ public Builder mergeHumanReviewStatus( return this; } /** - * - * *
        * The status of human review on the processed document.
        * 
@@ -1839,42 +1616,33 @@ public Builder clearHumanReviewStatus() { return this; } /** - * - * *
        * The status of human review on the processed document.
        * 
* * .google.cloud.documentai.v1.HumanReviewStatus human_review_status = 5; */ - public com.google.cloud.documentai.v1.HumanReviewStatus.Builder - getHumanReviewStatusBuilder() { - + public com.google.cloud.documentai.v1.HumanReviewStatus.Builder getHumanReviewStatusBuilder() { + onChanged(); return getHumanReviewStatusFieldBuilder().getBuilder(); } /** - * - * *
        * The status of human review on the processed document.
        * 
* * .google.cloud.documentai.v1.HumanReviewStatus human_review_status = 5; */ - public com.google.cloud.documentai.v1.HumanReviewStatusOrBuilder - getHumanReviewStatusOrBuilder() { + public com.google.cloud.documentai.v1.HumanReviewStatusOrBuilder getHumanReviewStatusOrBuilder() { if (humanReviewStatusBuilder_ != null) { return humanReviewStatusBuilder_.getMessageOrBuilder(); } else { - return humanReviewStatus_ == null - ? com.google.cloud.documentai.v1.HumanReviewStatus.getDefaultInstance() - : humanReviewStatus_; + return humanReviewStatus_ == null ? + com.google.cloud.documentai.v1.HumanReviewStatus.getDefaultInstance() : humanReviewStatus_; } } /** - * - * *
        * The status of human review on the processed document.
        * 
@@ -1882,22 +1650,18 @@ public Builder clearHumanReviewStatus() { * .google.cloud.documentai.v1.HumanReviewStatus human_review_status = 5; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.documentai.v1.HumanReviewStatus, - com.google.cloud.documentai.v1.HumanReviewStatus.Builder, - com.google.cloud.documentai.v1.HumanReviewStatusOrBuilder> + com.google.cloud.documentai.v1.HumanReviewStatus, com.google.cloud.documentai.v1.HumanReviewStatus.Builder, com.google.cloud.documentai.v1.HumanReviewStatusOrBuilder> getHumanReviewStatusFieldBuilder() { if (humanReviewStatusBuilder_ == null) { - humanReviewStatusBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.documentai.v1.HumanReviewStatus, - com.google.cloud.documentai.v1.HumanReviewStatus.Builder, - com.google.cloud.documentai.v1.HumanReviewStatusOrBuilder>( - getHumanReviewStatus(), getParentForChildren(), isClean()); + humanReviewStatusBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.documentai.v1.HumanReviewStatus, com.google.cloud.documentai.v1.HumanReviewStatus.Builder, com.google.cloud.documentai.v1.HumanReviewStatusOrBuilder>( + getHumanReviewStatus(), + getParentForChildren(), + isClean()); humanReviewStatus_ = null; } return humanReviewStatusBuilder_; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1910,33 +1674,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.documentai.v1.BatchProcessMetadata.IndividualProcessStatus) } // @@protoc_insertion_point(class_scope:google.cloud.documentai.v1.BatchProcessMetadata.IndividualProcessStatus) - private static final com.google.cloud.documentai.v1.BatchProcessMetadata.IndividualProcessStatus - DEFAULT_INSTANCE; - + private static final com.google.cloud.documentai.v1.BatchProcessMetadata.IndividualProcessStatus DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.documentai.v1.BatchProcessMetadata.IndividualProcessStatus(); + DEFAULT_INSTANCE = new com.google.cloud.documentai.v1.BatchProcessMetadata.IndividualProcessStatus(); } - public static com.google.cloud.documentai.v1.BatchProcessMetadata.IndividualProcessStatus - getDefaultInstance() { + public static com.google.cloud.documentai.v1.BatchProcessMetadata.IndividualProcessStatus getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public IndividualProcessStatus parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new IndividualProcessStatus(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public IndividualProcessStatus parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new IndividualProcessStatus(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1948,62 +1709,48 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.documentai.v1.BatchProcessMetadata.IndividualProcessStatus - getDefaultInstanceForType() { + public com.google.cloud.documentai.v1.BatchProcessMetadata.IndividualProcessStatus getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } public static final int STATE_FIELD_NUMBER = 1; private int state_; /** - * - * *
    * The state of the current batch processing.
    * 
* * .google.cloud.documentai.v1.BatchProcessMetadata.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 state of the current batch processing.
    * 
* * .google.cloud.documentai.v1.BatchProcessMetadata.State state = 1; - * * @return The state. */ - @java.lang.Override - public com.google.cloud.documentai.v1.BatchProcessMetadata.State getState() { + @java.lang.Override public com.google.cloud.documentai.v1.BatchProcessMetadata.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.documentai.v1.BatchProcessMetadata.State result = - com.google.cloud.documentai.v1.BatchProcessMetadata.State.valueOf(state_); - return result == null - ? com.google.cloud.documentai.v1.BatchProcessMetadata.State.UNRECOGNIZED - : result; + com.google.cloud.documentai.v1.BatchProcessMetadata.State result = com.google.cloud.documentai.v1.BatchProcessMetadata.State.valueOf(state_); + return result == null ? com.google.cloud.documentai.v1.BatchProcessMetadata.State.UNRECOGNIZED : result; } public static final int STATE_MESSAGE_FIELD_NUMBER = 2; private volatile java.lang.Object stateMessage_; /** - * - * *
    * A message providing more details about the current state of processing.
    * For example, the error message if the operation is failed.
    * 
* * string state_message = 2; - * * @return The stateMessage. */ @java.lang.Override @@ -2012,30 +1759,30 @@ public java.lang.String getStateMessage() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); stateMessage_ = s; return s; } } /** - * - * *
    * A message providing more details about the current state of processing.
    * For example, the error message if the operation is failed.
    * 
* * string state_message = 2; - * * @return The bytes for stateMessage. */ @java.lang.Override - public com.google.protobuf.ByteString getStateMessageBytes() { + public com.google.protobuf.ByteString + getStateMessageBytes() { java.lang.Object ref = stateMessage_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); stateMessage_ = b; return b; } else { @@ -2046,14 +1793,11 @@ public com.google.protobuf.ByteString getStateMessageBytes() { public static final int CREATE_TIME_FIELD_NUMBER = 3; private com.google.protobuf.Timestamp createTime_; /** - * - * *
    * The creation time of the operation.
    * 
* * .google.protobuf.Timestamp create_time = 3; - * * @return Whether the createTime field is set. */ @java.lang.Override @@ -2061,14 +1805,11 @@ public boolean hasCreateTime() { return createTime_ != null; } /** - * - * *
    * The creation time of the operation.
    * 
* * .google.protobuf.Timestamp create_time = 3; - * * @return The createTime. */ @java.lang.Override @@ -2076,8 +1817,6 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** - * - * *
    * The creation time of the operation.
    * 
@@ -2092,14 +1831,11 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int UPDATE_TIME_FIELD_NUMBER = 4; private com.google.protobuf.Timestamp updateTime_; /** - * - * *
    * The last update time of the operation.
    * 
* * .google.protobuf.Timestamp update_time = 4; - * * @return Whether the updateTime field is set. */ @java.lang.Override @@ -2107,14 +1843,11 @@ public boolean hasUpdateTime() { return updateTime_ != null; } /** - * - * *
    * The last update time of the operation.
    * 
* * .google.protobuf.Timestamp update_time = 4; - * * @return The updateTime. */ @java.lang.Override @@ -2122,8 +1855,6 @@ public com.google.protobuf.Timestamp getUpdateTime() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } /** - * - * *
    * The last update time of the operation.
    * 
@@ -2136,93 +1867,66 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { } public static final int INDIVIDUAL_PROCESS_STATUSES_FIELD_NUMBER = 5; - private java.util.List< - com.google.cloud.documentai.v1.BatchProcessMetadata.IndividualProcessStatus> - individualProcessStatuses_; + private java.util.List individualProcessStatuses_; /** - * - * *
    * The list of response details of each document.
    * 
* - * - * repeated .google.cloud.documentai.v1.BatchProcessMetadata.IndividualProcessStatus individual_process_statuses = 5; - * + * repeated .google.cloud.documentai.v1.BatchProcessMetadata.IndividualProcessStatus individual_process_statuses = 5; */ @java.lang.Override - public java.util.List - getIndividualProcessStatusesList() { + public java.util.List getIndividualProcessStatusesList() { return individualProcessStatuses_; } /** - * - * *
    * The list of response details of each document.
    * 
* - * - * repeated .google.cloud.documentai.v1.BatchProcessMetadata.IndividualProcessStatus individual_process_statuses = 5; - * + * repeated .google.cloud.documentai.v1.BatchProcessMetadata.IndividualProcessStatus individual_process_statuses = 5; */ @java.lang.Override - public java.util.List< - ? extends - com.google.cloud.documentai.v1.BatchProcessMetadata.IndividualProcessStatusOrBuilder> + public java.util.List getIndividualProcessStatusesOrBuilderList() { return individualProcessStatuses_; } /** - * - * *
    * The list of response details of each document.
    * 
* - * - * repeated .google.cloud.documentai.v1.BatchProcessMetadata.IndividualProcessStatus individual_process_statuses = 5; - * + * repeated .google.cloud.documentai.v1.BatchProcessMetadata.IndividualProcessStatus individual_process_statuses = 5; */ @java.lang.Override public int getIndividualProcessStatusesCount() { return individualProcessStatuses_.size(); } /** - * - * *
    * The list of response details of each document.
    * 
* - * - * repeated .google.cloud.documentai.v1.BatchProcessMetadata.IndividualProcessStatus individual_process_statuses = 5; - * + * repeated .google.cloud.documentai.v1.BatchProcessMetadata.IndividualProcessStatus individual_process_statuses = 5; */ @java.lang.Override - public com.google.cloud.documentai.v1.BatchProcessMetadata.IndividualProcessStatus - getIndividualProcessStatuses(int index) { + public com.google.cloud.documentai.v1.BatchProcessMetadata.IndividualProcessStatus getIndividualProcessStatuses(int index) { return individualProcessStatuses_.get(index); } /** - * - * *
    * The list of response details of each document.
    * 
* - * - * repeated .google.cloud.documentai.v1.BatchProcessMetadata.IndividualProcessStatus individual_process_statuses = 5; - * + * repeated .google.cloud.documentai.v1.BatchProcessMetadata.IndividualProcessStatus individual_process_statuses = 5; */ @java.lang.Override - public com.google.cloud.documentai.v1.BatchProcessMetadata.IndividualProcessStatusOrBuilder - getIndividualProcessStatusesOrBuilder(int index) { + public com.google.cloud.documentai.v1.BatchProcessMetadata.IndividualProcessStatusOrBuilder getIndividualProcessStatusesOrBuilder( + int index) { return individualProcessStatuses_.get(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -2234,10 +1938,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.documentai.v1.BatchProcessMetadata.State.STATE_UNSPECIFIED - .getNumber()) { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (state_ != com.google.cloud.documentai.v1.BatchProcessMetadata.State.STATE_UNSPECIFIED.getNumber()) { output.writeEnum(1, state_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(stateMessage_)) { @@ -2261,24 +1964,24 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (state_ - != com.google.cloud.documentai.v1.BatchProcessMetadata.State.STATE_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, state_); + if (state_ != com.google.cloud.documentai.v1.BatchProcessMetadata.State.STATE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, state_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(stateMessage_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, stateMessage_); } if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getCreateTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getCreateTime()); } if (updateTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getUpdateTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getUpdateTime()); } for (int i = 0; i < individualProcessStatuses_.size(); i++) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 5, individualProcessStatuses_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, individualProcessStatuses_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -2288,26 +1991,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.documentai.v1.BatchProcessMetadata)) { return super.equals(obj); } - com.google.cloud.documentai.v1.BatchProcessMetadata other = - (com.google.cloud.documentai.v1.BatchProcessMetadata) obj; + com.google.cloud.documentai.v1.BatchProcessMetadata other = (com.google.cloud.documentai.v1.BatchProcessMetadata) obj; if (state_ != other.state_) return false; - if (!getStateMessage().equals(other.getStateMessage())) return false; + if (!getStateMessage() + .equals(other.getStateMessage())) 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 (!getIndividualProcessStatusesList().equals(other.getIndividualProcessStatusesList())) - return false; + if (!getIndividualProcessStatusesList() + .equals(other.getIndividualProcessStatusesList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -2341,126 +2046,117 @@ public int hashCode() { } public static com.google.cloud.documentai.v1.BatchProcessMetadata parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.documentai.v1.BatchProcessMetadata parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.documentai.v1.BatchProcessMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.documentai.v1.BatchProcessMetadata parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.documentai.v1.BatchProcessMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.documentai.v1.BatchProcessMetadata parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.documentai.v1.BatchProcessMetadata parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.documentai.v1.BatchProcessMetadata parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.documentai.v1.BatchProcessMetadata parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.documentai.v1.BatchProcessMetadata parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.documentai.v1.BatchProcessMetadata parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.documentai.v1.BatchProcessMetadata parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.documentai.v1.BatchProcessMetadata parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.documentai.v1.BatchProcessMetadata parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.documentai.v1.BatchProcessMetadata prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 long running operation metadata for batch process method.
    * 
* * Protobuf type {@code google.cloud.documentai.v1.BatchProcessMetadata} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.documentai.v1.BatchProcessMetadata) com.google.cloud.documentai.v1.BatchProcessMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.documentai.v1.DocumentAiProcessorService - .internal_static_google_cloud_documentai_v1_BatchProcessMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.documentai.v1.DocumentAiProcessorService.internal_static_google_cloud_documentai_v1_BatchProcessMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.documentai.v1.DocumentAiProcessorService - .internal_static_google_cloud_documentai_v1_BatchProcessMetadata_fieldAccessorTable + return com.google.cloud.documentai.v1.DocumentAiProcessorService.internal_static_google_cloud_documentai_v1_BatchProcessMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.documentai.v1.BatchProcessMetadata.class, - com.google.cloud.documentai.v1.BatchProcessMetadata.Builder.class); + com.google.cloud.documentai.v1.BatchProcessMetadata.class, com.google.cloud.documentai.v1.BatchProcessMetadata.Builder.class); } // Construct using com.google.cloud.documentai.v1.BatchProcessMetadata.newBuilder() @@ -2468,17 +2164,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) { getIndividualProcessStatusesFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -2508,9 +2204,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.documentai.v1.DocumentAiProcessorService - .internal_static_google_cloud_documentai_v1_BatchProcessMetadata_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.documentai.v1.DocumentAiProcessorService.internal_static_google_cloud_documentai_v1_BatchProcessMetadata_descriptor; } @java.lang.Override @@ -2529,8 +2225,7 @@ public com.google.cloud.documentai.v1.BatchProcessMetadata build() { @java.lang.Override public com.google.cloud.documentai.v1.BatchProcessMetadata buildPartial() { - com.google.cloud.documentai.v1.BatchProcessMetadata result = - new com.google.cloud.documentai.v1.BatchProcessMetadata(this); + com.google.cloud.documentai.v1.BatchProcessMetadata result = new com.google.cloud.documentai.v1.BatchProcessMetadata(this); int from_bitField0_ = bitField0_; result.state_ = state_; result.stateMessage_ = stateMessage_; @@ -2546,8 +2241,7 @@ public com.google.cloud.documentai.v1.BatchProcessMetadata buildPartial() { } if (individualProcessStatusesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { - individualProcessStatuses_ = - java.util.Collections.unmodifiableList(individualProcessStatuses_); + individualProcessStatuses_ = java.util.Collections.unmodifiableList(individualProcessStatuses_); bitField0_ = (bitField0_ & ~0x00000001); } result.individualProcessStatuses_ = individualProcessStatuses_; @@ -2562,39 +2256,38 @@ public com.google.cloud.documentai.v1.BatchProcessMetadata buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.documentai.v1.BatchProcessMetadata) { - return mergeFrom((com.google.cloud.documentai.v1.BatchProcessMetadata) other); + return mergeFrom((com.google.cloud.documentai.v1.BatchProcessMetadata)other); } else { super.mergeFrom(other); return this; @@ -2602,8 +2295,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.documentai.v1.BatchProcessMetadata other) { - if (other == com.google.cloud.documentai.v1.BatchProcessMetadata.getDefaultInstance()) - return this; + if (other == com.google.cloud.documentai.v1.BatchProcessMetadata.getDefaultInstance()) return this; if (other.state_ != 0) { setStateValue(other.getStateValue()); } @@ -2635,10 +2327,9 @@ public Builder mergeFrom(com.google.cloud.documentai.v1.BatchProcessMetadata oth individualProcessStatusesBuilder_ = null; individualProcessStatuses_ = other.individualProcessStatuses_; bitField0_ = (bitField0_ & ~0x00000001); - individualProcessStatusesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getIndividualProcessStatusesFieldBuilder() - : null; + individualProcessStatusesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getIndividualProcessStatusesFieldBuilder() : null; } else { individualProcessStatusesBuilder_.addAllMessages(other.individualProcessStatuses_); } @@ -2663,8 +2354,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.documentai.v1.BatchProcessMetadata) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.documentai.v1.BatchProcessMetadata) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -2673,72 +2363,55 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private int state_ = 0; /** - * - * *
      * The state of the current batch processing.
      * 
* * .google.cloud.documentai.v1.BatchProcessMetadata.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 state of the current batch processing.
      * 
* * .google.cloud.documentai.v1.BatchProcessMetadata.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 state of the current batch processing.
      * 
* * .google.cloud.documentai.v1.BatchProcessMetadata.State state = 1; - * * @return The state. */ @java.lang.Override public com.google.cloud.documentai.v1.BatchProcessMetadata.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.documentai.v1.BatchProcessMetadata.State result = - com.google.cloud.documentai.v1.BatchProcessMetadata.State.valueOf(state_); - return result == null - ? com.google.cloud.documentai.v1.BatchProcessMetadata.State.UNRECOGNIZED - : result; + com.google.cloud.documentai.v1.BatchProcessMetadata.State result = com.google.cloud.documentai.v1.BatchProcessMetadata.State.valueOf(state_); + return result == null ? com.google.cloud.documentai.v1.BatchProcessMetadata.State.UNRECOGNIZED : result; } /** - * - * *
      * The state of the current batch processing.
      * 
* * .google.cloud.documentai.v1.BatchProcessMetadata.State state = 1; - * * @param value The state to set. * @return This builder for chaining. */ @@ -2746,24 +2419,21 @@ public Builder setState(com.google.cloud.documentai.v1.BatchProcessMetadata.Stat if (value == null) { throw new NullPointerException(); } - + state_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * The state of the current batch processing.
      * 
* * .google.cloud.documentai.v1.BatchProcessMetadata.State state = 1; - * * @return This builder for chaining. */ public Builder clearState() { - + state_ = 0; onChanged(); return this; @@ -2771,21 +2441,19 @@ public Builder clearState() { private java.lang.Object stateMessage_ = ""; /** - * - * *
      * A message providing more details about the current state of processing.
      * For example, the error message if the operation is failed.
      * 
* * string state_message = 2; - * * @return The stateMessage. */ public java.lang.String getStateMessage() { java.lang.Object ref = stateMessage_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); stateMessage_ = s; return s; @@ -2794,22 +2462,21 @@ public java.lang.String getStateMessage() { } } /** - * - * *
      * A message providing more details about the current state of processing.
      * For example, the error message if the operation is failed.
      * 
* * string state_message = 2; - * * @return The bytes for stateMessage. */ - public com.google.protobuf.ByteString getStateMessageBytes() { + public com.google.protobuf.ByteString + getStateMessageBytes() { java.lang.Object ref = stateMessage_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); stateMessage_ = b; return b; } else { @@ -2817,64 +2484,57 @@ public com.google.protobuf.ByteString getStateMessageBytes() { } } /** - * - * *
      * A message providing more details about the current state of processing.
      * For example, the error message if the operation is failed.
      * 
* * string state_message = 2; - * * @param value The stateMessage to set. * @return This builder for chaining. */ - public Builder setStateMessage(java.lang.String value) { + public Builder setStateMessage( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + stateMessage_ = value; onChanged(); return this; } /** - * - * *
      * A message providing more details about the current state of processing.
      * For example, the error message if the operation is failed.
      * 
* * string state_message = 2; - * * @return This builder for chaining. */ public Builder clearStateMessage() { - + stateMessage_ = getDefaultInstance().getStateMessage(); onChanged(); return this; } /** - * - * *
      * A message providing more details about the current state of processing.
      * For example, the error message if the operation is failed.
      * 
* * string state_message = 2; - * * @param value The bytes for stateMessage to set. * @return This builder for chaining. */ - public Builder setStateMessageBytes(com.google.protobuf.ByteString value) { + public Builder setStateMessageBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + stateMessage_ = value; onChanged(); return this; @@ -2882,47 +2542,34 @@ public Builder setStateMessageBytes(com.google.protobuf.ByteString value) { 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 creation time of the operation.
      * 
* * .google.protobuf.Timestamp create_time = 3; - * * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return createTimeBuilder_ != null || createTime_ != null; } /** - * - * *
      * The creation time of the operation.
      * 
* * .google.protobuf.Timestamp create_time = 3; - * * @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 creation time of the operation.
      * 
@@ -2943,15 +2590,14 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * The creation time of the operation.
      * 
* * .google.protobuf.Timestamp create_time = 3; */ - 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(); @@ -2962,8 +2608,6 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * The creation time of the operation.
      * 
@@ -2974,7 +2618,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; } @@ -2986,8 +2630,6 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * The creation time of the operation.
      * 
@@ -3006,8 +2648,6 @@ public Builder clearCreateTime() { return this; } /** - * - * *
      * The creation time of the operation.
      * 
@@ -3015,13 +2655,11 @@ public Builder clearCreateTime() { * .google.protobuf.Timestamp create_time = 3; */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - + onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * The creation time of the operation.
      * 
@@ -3032,14 +2670,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 creation time of the operation.
      * 
@@ -3047,17 +2682,14 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { * .google.protobuf.Timestamp create_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> 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_; @@ -3065,47 +2697,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 last update time of the operation.
      * 
* * .google.protobuf.Timestamp update_time = 4; - * * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { return updateTimeBuilder_ != null || updateTime_ != null; } /** - * - * *
      * The last update time of the operation.
      * 
* * .google.protobuf.Timestamp update_time = 4; - * * @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 last update time of the operation.
      * 
@@ -3126,15 +2745,14 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * The last update time of the operation.
      * 
* * .google.protobuf.Timestamp update_time = 4; */ - 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(); @@ -3145,8 +2763,6 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * The last update time of the operation.
      * 
@@ -3157,7 +2773,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; } @@ -3169,8 +2785,6 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * The last update time of the operation.
      * 
@@ -3189,8 +2803,6 @@ public Builder clearUpdateTime() { return this; } /** - * - * *
      * The last update time of the operation.
      * 
@@ -3198,13 +2810,11 @@ public Builder clearUpdateTime() { * .google.protobuf.Timestamp update_time = 4; */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { - + onChanged(); return getUpdateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * The last update time of the operation.
      * 
@@ -3215,14 +2825,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 last update time of the operation.
      * 
@@ -3230,56 +2837,39 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { * .google.protobuf.Timestamp update_time = 4; */ 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_; } - private java.util.List< - com.google.cloud.documentai.v1.BatchProcessMetadata.IndividualProcessStatus> - individualProcessStatuses_ = java.util.Collections.emptyList(); - + private java.util.List individualProcessStatuses_ = + java.util.Collections.emptyList(); private void ensureIndividualProcessStatusesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - individualProcessStatuses_ = - new java.util.ArrayList< - com.google.cloud.documentai.v1.BatchProcessMetadata.IndividualProcessStatus>( - individualProcessStatuses_); + individualProcessStatuses_ = new java.util.ArrayList(individualProcessStatuses_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.documentai.v1.BatchProcessMetadata.IndividualProcessStatus, - com.google.cloud.documentai.v1.BatchProcessMetadata.IndividualProcessStatus.Builder, - com.google.cloud.documentai.v1.BatchProcessMetadata.IndividualProcessStatusOrBuilder> - individualProcessStatusesBuilder_; + com.google.cloud.documentai.v1.BatchProcessMetadata.IndividualProcessStatus, com.google.cloud.documentai.v1.BatchProcessMetadata.IndividualProcessStatus.Builder, com.google.cloud.documentai.v1.BatchProcessMetadata.IndividualProcessStatusOrBuilder> individualProcessStatusesBuilder_; /** - * - * *
      * The list of response details of each document.
      * 
* - * - * repeated .google.cloud.documentai.v1.BatchProcessMetadata.IndividualProcessStatus individual_process_statuses = 5; - * + * repeated .google.cloud.documentai.v1.BatchProcessMetadata.IndividualProcessStatus individual_process_statuses = 5; */ - public java.util.List< - com.google.cloud.documentai.v1.BatchProcessMetadata.IndividualProcessStatus> - getIndividualProcessStatusesList() { + public java.util.List getIndividualProcessStatusesList() { if (individualProcessStatusesBuilder_ == null) { return java.util.Collections.unmodifiableList(individualProcessStatuses_); } else { @@ -3287,15 +2877,11 @@ private void ensureIndividualProcessStatusesIsMutable() { } } /** - * - * *
      * The list of response details of each document.
      * 
* - * - * repeated .google.cloud.documentai.v1.BatchProcessMetadata.IndividualProcessStatus individual_process_statuses = 5; - * + * repeated .google.cloud.documentai.v1.BatchProcessMetadata.IndividualProcessStatus individual_process_statuses = 5; */ public int getIndividualProcessStatusesCount() { if (individualProcessStatusesBuilder_ == null) { @@ -3305,18 +2891,13 @@ public int getIndividualProcessStatusesCount() { } } /** - * - * *
      * The list of response details of each document.
      * 
* - * - * repeated .google.cloud.documentai.v1.BatchProcessMetadata.IndividualProcessStatus individual_process_statuses = 5; - * + * repeated .google.cloud.documentai.v1.BatchProcessMetadata.IndividualProcessStatus individual_process_statuses = 5; */ - public com.google.cloud.documentai.v1.BatchProcessMetadata.IndividualProcessStatus - getIndividualProcessStatuses(int index) { + public com.google.cloud.documentai.v1.BatchProcessMetadata.IndividualProcessStatus getIndividualProcessStatuses(int index) { if (individualProcessStatusesBuilder_ == null) { return individualProcessStatuses_.get(index); } else { @@ -3324,19 +2905,14 @@ public int getIndividualProcessStatusesCount() { } } /** - * - * *
      * The list of response details of each document.
      * 
* - * - * repeated .google.cloud.documentai.v1.BatchProcessMetadata.IndividualProcessStatus individual_process_statuses = 5; - * + * repeated .google.cloud.documentai.v1.BatchProcessMetadata.IndividualProcessStatus individual_process_statuses = 5; */ public Builder setIndividualProcessStatuses( - int index, - com.google.cloud.documentai.v1.BatchProcessMetadata.IndividualProcessStatus value) { + int index, com.google.cloud.documentai.v1.BatchProcessMetadata.IndividualProcessStatus value) { if (individualProcessStatusesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3350,20 +2926,14 @@ public Builder setIndividualProcessStatuses( return this; } /** - * - * *
      * The list of response details of each document.
      * 
* - * - * repeated .google.cloud.documentai.v1.BatchProcessMetadata.IndividualProcessStatus individual_process_statuses = 5; - * + * repeated .google.cloud.documentai.v1.BatchProcessMetadata.IndividualProcessStatus individual_process_statuses = 5; */ public Builder setIndividualProcessStatuses( - int index, - com.google.cloud.documentai.v1.BatchProcessMetadata.IndividualProcessStatus.Builder - builderForValue) { + int index, com.google.cloud.documentai.v1.BatchProcessMetadata.IndividualProcessStatus.Builder builderForValue) { if (individualProcessStatusesBuilder_ == null) { ensureIndividualProcessStatusesIsMutable(); individualProcessStatuses_.set(index, builderForValue.build()); @@ -3374,18 +2944,13 @@ public Builder setIndividualProcessStatuses( return this; } /** - * - * *
      * The list of response details of each document.
      * 
* - * - * repeated .google.cloud.documentai.v1.BatchProcessMetadata.IndividualProcessStatus individual_process_statuses = 5; - * + * repeated .google.cloud.documentai.v1.BatchProcessMetadata.IndividualProcessStatus individual_process_statuses = 5; */ - public Builder addIndividualProcessStatuses( - com.google.cloud.documentai.v1.BatchProcessMetadata.IndividualProcessStatus value) { + public Builder addIndividualProcessStatuses(com.google.cloud.documentai.v1.BatchProcessMetadata.IndividualProcessStatus value) { if (individualProcessStatusesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3399,19 +2964,14 @@ public Builder addIndividualProcessStatuses( return this; } /** - * - * *
      * The list of response details of each document.
      * 
* - * - * repeated .google.cloud.documentai.v1.BatchProcessMetadata.IndividualProcessStatus individual_process_statuses = 5; - * + * repeated .google.cloud.documentai.v1.BatchProcessMetadata.IndividualProcessStatus individual_process_statuses = 5; */ public Builder addIndividualProcessStatuses( - int index, - com.google.cloud.documentai.v1.BatchProcessMetadata.IndividualProcessStatus value) { + int index, com.google.cloud.documentai.v1.BatchProcessMetadata.IndividualProcessStatus value) { if (individualProcessStatusesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3425,19 +2985,14 @@ public Builder addIndividualProcessStatuses( return this; } /** - * - * *
      * The list of response details of each document.
      * 
* - * - * repeated .google.cloud.documentai.v1.BatchProcessMetadata.IndividualProcessStatus individual_process_statuses = 5; - * + * repeated .google.cloud.documentai.v1.BatchProcessMetadata.IndividualProcessStatus individual_process_statuses = 5; */ public Builder addIndividualProcessStatuses( - com.google.cloud.documentai.v1.BatchProcessMetadata.IndividualProcessStatus.Builder - builderForValue) { + com.google.cloud.documentai.v1.BatchProcessMetadata.IndividualProcessStatus.Builder builderForValue) { if (individualProcessStatusesBuilder_ == null) { ensureIndividualProcessStatusesIsMutable(); individualProcessStatuses_.add(builderForValue.build()); @@ -3448,20 +3003,14 @@ public Builder addIndividualProcessStatuses( return this; } /** - * - * *
      * The list of response details of each document.
      * 
* - * - * repeated .google.cloud.documentai.v1.BatchProcessMetadata.IndividualProcessStatus individual_process_statuses = 5; - * + * repeated .google.cloud.documentai.v1.BatchProcessMetadata.IndividualProcessStatus individual_process_statuses = 5; */ public Builder addIndividualProcessStatuses( - int index, - com.google.cloud.documentai.v1.BatchProcessMetadata.IndividualProcessStatus.Builder - builderForValue) { + int index, com.google.cloud.documentai.v1.BatchProcessMetadata.IndividualProcessStatus.Builder builderForValue) { if (individualProcessStatusesBuilder_ == null) { ensureIndividualProcessStatusesIsMutable(); individualProcessStatuses_.add(index, builderForValue.build()); @@ -3472,24 +3021,18 @@ public Builder addIndividualProcessStatuses( return this; } /** - * - * *
      * The list of response details of each document.
      * 
* - * - * repeated .google.cloud.documentai.v1.BatchProcessMetadata.IndividualProcessStatus individual_process_statuses = 5; - * + * repeated .google.cloud.documentai.v1.BatchProcessMetadata.IndividualProcessStatus individual_process_statuses = 5; */ public Builder addAllIndividualProcessStatuses( - java.lang.Iterable< - ? extends - com.google.cloud.documentai.v1.BatchProcessMetadata.IndividualProcessStatus> - values) { + java.lang.Iterable values) { if (individualProcessStatusesBuilder_ == null) { ensureIndividualProcessStatusesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, individualProcessStatuses_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, individualProcessStatuses_); onChanged(); } else { individualProcessStatusesBuilder_.addAllMessages(values); @@ -3497,15 +3040,11 @@ public Builder addAllIndividualProcessStatuses( return this; } /** - * - * *
      * The list of response details of each document.
      * 
* - * - * repeated .google.cloud.documentai.v1.BatchProcessMetadata.IndividualProcessStatus individual_process_statuses = 5; - * + * repeated .google.cloud.documentai.v1.BatchProcessMetadata.IndividualProcessStatus individual_process_statuses = 5; */ public Builder clearIndividualProcessStatuses() { if (individualProcessStatusesBuilder_ == null) { @@ -3518,15 +3057,11 @@ public Builder clearIndividualProcessStatuses() { return this; } /** - * - * *
      * The list of response details of each document.
      * 
* - * - * repeated .google.cloud.documentai.v1.BatchProcessMetadata.IndividualProcessStatus individual_process_statuses = 5; - * + * repeated .google.cloud.documentai.v1.BatchProcessMetadata.IndividualProcessStatus individual_process_statuses = 5; */ public Builder removeIndividualProcessStatuses(int index) { if (individualProcessStatusesBuilder_ == null) { @@ -3539,55 +3074,39 @@ public Builder removeIndividualProcessStatuses(int index) { return this; } /** - * - * *
      * The list of response details of each document.
      * 
* - * - * repeated .google.cloud.documentai.v1.BatchProcessMetadata.IndividualProcessStatus individual_process_statuses = 5; - * + * repeated .google.cloud.documentai.v1.BatchProcessMetadata.IndividualProcessStatus individual_process_statuses = 5; */ - public com.google.cloud.documentai.v1.BatchProcessMetadata.IndividualProcessStatus.Builder - getIndividualProcessStatusesBuilder(int index) { + public com.google.cloud.documentai.v1.BatchProcessMetadata.IndividualProcessStatus.Builder getIndividualProcessStatusesBuilder( + int index) { return getIndividualProcessStatusesFieldBuilder().getBuilder(index); } /** - * - * *
      * The list of response details of each document.
      * 
* - * - * repeated .google.cloud.documentai.v1.BatchProcessMetadata.IndividualProcessStatus individual_process_statuses = 5; - * + * repeated .google.cloud.documentai.v1.BatchProcessMetadata.IndividualProcessStatus individual_process_statuses = 5; */ - public com.google.cloud.documentai.v1.BatchProcessMetadata.IndividualProcessStatusOrBuilder - getIndividualProcessStatusesOrBuilder(int index) { + public com.google.cloud.documentai.v1.BatchProcessMetadata.IndividualProcessStatusOrBuilder getIndividualProcessStatusesOrBuilder( + int index) { if (individualProcessStatusesBuilder_ == null) { - return individualProcessStatuses_.get(index); - } else { + return individualProcessStatuses_.get(index); } else { return individualProcessStatusesBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * The list of response details of each document.
      * 
* - * - * repeated .google.cloud.documentai.v1.BatchProcessMetadata.IndividualProcessStatus individual_process_statuses = 5; - * + * repeated .google.cloud.documentai.v1.BatchProcessMetadata.IndividualProcessStatus individual_process_statuses = 5; */ - public java.util.List< - ? extends - com.google.cloud.documentai.v1.BatchProcessMetadata - .IndividualProcessStatusOrBuilder> - getIndividualProcessStatusesOrBuilderList() { + public java.util.List + getIndividualProcessStatusesOrBuilderList() { if (individualProcessStatusesBuilder_ != null) { return individualProcessStatusesBuilder_.getMessageOrBuilderList(); } else { @@ -3595,71 +3114,45 @@ public Builder removeIndividualProcessStatuses(int index) { } } /** - * - * *
      * The list of response details of each document.
      * 
* - * - * repeated .google.cloud.documentai.v1.BatchProcessMetadata.IndividualProcessStatus individual_process_statuses = 5; - * + * repeated .google.cloud.documentai.v1.BatchProcessMetadata.IndividualProcessStatus individual_process_statuses = 5; */ - public com.google.cloud.documentai.v1.BatchProcessMetadata.IndividualProcessStatus.Builder - addIndividualProcessStatusesBuilder() { - return getIndividualProcessStatusesFieldBuilder() - .addBuilder( - com.google.cloud.documentai.v1.BatchProcessMetadata.IndividualProcessStatus - .getDefaultInstance()); + public com.google.cloud.documentai.v1.BatchProcessMetadata.IndividualProcessStatus.Builder addIndividualProcessStatusesBuilder() { + return getIndividualProcessStatusesFieldBuilder().addBuilder( + com.google.cloud.documentai.v1.BatchProcessMetadata.IndividualProcessStatus.getDefaultInstance()); } /** - * - * *
      * The list of response details of each document.
      * 
* - * - * repeated .google.cloud.documentai.v1.BatchProcessMetadata.IndividualProcessStatus individual_process_statuses = 5; - * + * repeated .google.cloud.documentai.v1.BatchProcessMetadata.IndividualProcessStatus individual_process_statuses = 5; */ - public com.google.cloud.documentai.v1.BatchProcessMetadata.IndividualProcessStatus.Builder - addIndividualProcessStatusesBuilder(int index) { - return getIndividualProcessStatusesFieldBuilder() - .addBuilder( - index, - com.google.cloud.documentai.v1.BatchProcessMetadata.IndividualProcessStatus - .getDefaultInstance()); + public com.google.cloud.documentai.v1.BatchProcessMetadata.IndividualProcessStatus.Builder addIndividualProcessStatusesBuilder( + int index) { + return getIndividualProcessStatusesFieldBuilder().addBuilder( + index, com.google.cloud.documentai.v1.BatchProcessMetadata.IndividualProcessStatus.getDefaultInstance()); } /** - * - * *
      * The list of response details of each document.
      * 
* - * - * repeated .google.cloud.documentai.v1.BatchProcessMetadata.IndividualProcessStatus individual_process_statuses = 5; - * + * repeated .google.cloud.documentai.v1.BatchProcessMetadata.IndividualProcessStatus individual_process_statuses = 5; */ - public java.util.List< - com.google.cloud.documentai.v1.BatchProcessMetadata.IndividualProcessStatus.Builder> - getIndividualProcessStatusesBuilderList() { + public java.util.List + getIndividualProcessStatusesBuilderList() { return getIndividualProcessStatusesFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.documentai.v1.BatchProcessMetadata.IndividualProcessStatus, - com.google.cloud.documentai.v1.BatchProcessMetadata.IndividualProcessStatus.Builder, - com.google.cloud.documentai.v1.BatchProcessMetadata.IndividualProcessStatusOrBuilder> + com.google.cloud.documentai.v1.BatchProcessMetadata.IndividualProcessStatus, com.google.cloud.documentai.v1.BatchProcessMetadata.IndividualProcessStatus.Builder, com.google.cloud.documentai.v1.BatchProcessMetadata.IndividualProcessStatusOrBuilder> getIndividualProcessStatusesFieldBuilder() { if (individualProcessStatusesBuilder_ == null) { - individualProcessStatusesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.documentai.v1.BatchProcessMetadata.IndividualProcessStatus, - com.google.cloud.documentai.v1.BatchProcessMetadata.IndividualProcessStatus.Builder, - com.google.cloud.documentai.v1.BatchProcessMetadata - .IndividualProcessStatusOrBuilder>( + individualProcessStatusesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.documentai.v1.BatchProcessMetadata.IndividualProcessStatus, com.google.cloud.documentai.v1.BatchProcessMetadata.IndividualProcessStatus.Builder, com.google.cloud.documentai.v1.BatchProcessMetadata.IndividualProcessStatusOrBuilder>( individualProcessStatuses_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -3668,9 +3161,9 @@ public Builder removeIndividualProcessStatuses(int index) { } return individualProcessStatusesBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -3680,12 +3173,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.documentai.v1.BatchProcessMetadata) } // @@protoc_insertion_point(class_scope:google.cloud.documentai.v1.BatchProcessMetadata) private static final com.google.cloud.documentai.v1.BatchProcessMetadata DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.documentai.v1.BatchProcessMetadata(); } @@ -3694,16 +3187,16 @@ public static com.google.cloud.documentai.v1.BatchProcessMetadata getDefaultInst return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public BatchProcessMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new BatchProcessMetadata(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BatchProcessMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new BatchProcessMetadata(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -3718,4 +3211,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.documentai.v1.BatchProcessMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/BatchProcessMetadataOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/BatchProcessMetadataOrBuilder.java similarity index 64% rename from proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/BatchProcessMetadataOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/BatchProcessMetadataOrBuilder.java index 56bb10b2..96bf472e 100644 --- a/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/BatchProcessMetadataOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/BatchProcessMetadataOrBuilder.java @@ -1,107 +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/documentai/v1/document_processor_service.proto package com.google.cloud.documentai.v1; -public interface BatchProcessMetadataOrBuilder - extends +public interface BatchProcessMetadataOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.documentai.v1.BatchProcessMetadata) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The state of the current batch processing.
    * 
* * .google.cloud.documentai.v1.BatchProcessMetadata.State state = 1; - * * @return The enum numeric value on the wire for state. */ int getStateValue(); /** - * - * *
    * The state of the current batch processing.
    * 
* * .google.cloud.documentai.v1.BatchProcessMetadata.State state = 1; - * * @return The state. */ com.google.cloud.documentai.v1.BatchProcessMetadata.State getState(); /** - * - * *
    * A message providing more details about the current state of processing.
    * For example, the error message if the operation is failed.
    * 
* * string state_message = 2; - * * @return The stateMessage. */ java.lang.String getStateMessage(); /** - * - * *
    * A message providing more details about the current state of processing.
    * For example, the error message if the operation is failed.
    * 
* * string state_message = 2; - * * @return The bytes for stateMessage. */ - com.google.protobuf.ByteString getStateMessageBytes(); + com.google.protobuf.ByteString + getStateMessageBytes(); /** - * - * *
    * The creation time of the operation.
    * 
* * .google.protobuf.Timestamp create_time = 3; - * * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** - * - * *
    * The creation time of the operation.
    * 
* * .google.protobuf.Timestamp create_time = 3; - * * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** - * - * *
    * The creation time of the operation.
    * 
@@ -111,32 +76,24 @@ public interface BatchProcessMetadataOrBuilder com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** - * - * *
    * The last update time of the operation.
    * 
* * .google.protobuf.Timestamp update_time = 4; - * * @return Whether the updateTime field is set. */ boolean hasUpdateTime(); /** - * - * *
    * The last update time of the operation.
    * 
* * .google.protobuf.Timestamp update_time = 4; - * * @return The updateTime. */ com.google.protobuf.Timestamp getUpdateTime(); /** - * - * *
    * The last update time of the operation.
    * 
@@ -146,69 +103,46 @@ public interface BatchProcessMetadataOrBuilder com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); /** - * - * *
    * The list of response details of each document.
    * 
* - * - * repeated .google.cloud.documentai.v1.BatchProcessMetadata.IndividualProcessStatus individual_process_statuses = 5; - * + * repeated .google.cloud.documentai.v1.BatchProcessMetadata.IndividualProcessStatus individual_process_statuses = 5; */ - java.util.List + java.util.List getIndividualProcessStatusesList(); /** - * - * *
    * The list of response details of each document.
    * 
* - * - * repeated .google.cloud.documentai.v1.BatchProcessMetadata.IndividualProcessStatus individual_process_statuses = 5; - * + * repeated .google.cloud.documentai.v1.BatchProcessMetadata.IndividualProcessStatus individual_process_statuses = 5; */ - com.google.cloud.documentai.v1.BatchProcessMetadata.IndividualProcessStatus - getIndividualProcessStatuses(int index); + com.google.cloud.documentai.v1.BatchProcessMetadata.IndividualProcessStatus getIndividualProcessStatuses(int index); /** - * - * *
    * The list of response details of each document.
    * 
* - * - * repeated .google.cloud.documentai.v1.BatchProcessMetadata.IndividualProcessStatus individual_process_statuses = 5; - * + * repeated .google.cloud.documentai.v1.BatchProcessMetadata.IndividualProcessStatus individual_process_statuses = 5; */ int getIndividualProcessStatusesCount(); /** - * - * *
    * The list of response details of each document.
    * 
* - * - * repeated .google.cloud.documentai.v1.BatchProcessMetadata.IndividualProcessStatus individual_process_statuses = 5; - * + * repeated .google.cloud.documentai.v1.BatchProcessMetadata.IndividualProcessStatus individual_process_statuses = 5; */ - java.util.List< - ? extends - com.google.cloud.documentai.v1.BatchProcessMetadata.IndividualProcessStatusOrBuilder> + java.util.List getIndividualProcessStatusesOrBuilderList(); /** - * - * *
    * The list of response details of each document.
    * 
* - * - * repeated .google.cloud.documentai.v1.BatchProcessMetadata.IndividualProcessStatus individual_process_statuses = 5; - * + * repeated .google.cloud.documentai.v1.BatchProcessMetadata.IndividualProcessStatus individual_process_statuses = 5; */ - com.google.cloud.documentai.v1.BatchProcessMetadata.IndividualProcessStatusOrBuilder - getIndividualProcessStatusesOrBuilder(int index); + com.google.cloud.documentai.v1.BatchProcessMetadata.IndividualProcessStatusOrBuilder getIndividualProcessStatusesOrBuilder( + int index); } diff --git a/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/BatchProcessRequest.java b/owl-bot-staging/v1/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/BatchProcessRequest.java similarity index 69% rename from proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/BatchProcessRequest.java rename to owl-bot-staging/v1/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/BatchProcessRequest.java index 775eb6cf..28f7ffb4 100644 --- a/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/BatchProcessRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/BatchProcessRequest.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/documentai/v1/document_processor_service.proto package com.google.cloud.documentai.v1; /** - * - * *
  * Request message for batch process document method.
  * 
* * Protobuf type {@code google.cloud.documentai.v1.BatchProcessRequest} */ -public final class BatchProcessRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class BatchProcessRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.documentai.v1.BatchProcessRequest) BatchProcessRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use BatchProcessRequest.newBuilder() to construct. private BatchProcessRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private BatchProcessRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new BatchProcessRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private BatchProcessRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,59 +53,50 @@ private BatchProcessRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; + name_ = s; + break; + } + case 32: { + + skipHumanReview_ = input.readBool(); + break; + } + case 42: { + com.google.cloud.documentai.v1.BatchDocumentsInputConfig.Builder subBuilder = null; + if (inputDocuments_ != null) { + subBuilder = inputDocuments_.toBuilder(); } - case 32: - { - skipHumanReview_ = input.readBool(); - break; + inputDocuments_ = input.readMessage(com.google.cloud.documentai.v1.BatchDocumentsInputConfig.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(inputDocuments_); + inputDocuments_ = subBuilder.buildPartial(); } - case 42: - { - com.google.cloud.documentai.v1.BatchDocumentsInputConfig.Builder subBuilder = null; - if (inputDocuments_ != null) { - subBuilder = inputDocuments_.toBuilder(); - } - inputDocuments_ = - input.readMessage( - com.google.cloud.documentai.v1.BatchDocumentsInputConfig.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(inputDocuments_); - inputDocuments_ = subBuilder.buildPartial(); - } - break; + break; + } + case 50: { + com.google.cloud.documentai.v1.DocumentOutputConfig.Builder subBuilder = null; + if (documentOutputConfig_ != null) { + subBuilder = documentOutputConfig_.toBuilder(); } - case 50: - { - com.google.cloud.documentai.v1.DocumentOutputConfig.Builder subBuilder = null; - if (documentOutputConfig_ != null) { - subBuilder = documentOutputConfig_.toBuilder(); - } - documentOutputConfig_ = - input.readMessage( - com.google.cloud.documentai.v1.DocumentOutputConfig.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(documentOutputConfig_); - documentOutputConfig_ = subBuilder.buildPartial(); - } - - break; + documentOutputConfig_ = input.readMessage(com.google.cloud.documentai.v1.DocumentOutputConfig.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(documentOutputConfig_); + documentOutputConfig_ = 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,41 +104,34 @@ private BatchProcessRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.documentai.v1.DocumentAiProcessorService - .internal_static_google_cloud_documentai_v1_BatchProcessRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.documentai.v1.DocumentAiProcessorService.internal_static_google_cloud_documentai_v1_BatchProcessRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.documentai.v1.DocumentAiProcessorService - .internal_static_google_cloud_documentai_v1_BatchProcessRequest_fieldAccessorTable + return com.google.cloud.documentai.v1.DocumentAiProcessorService.internal_static_google_cloud_documentai_v1_BatchProcessRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.documentai.v1.BatchProcessRequest.class, - com.google.cloud.documentai.v1.BatchProcessRequest.Builder.class); + com.google.cloud.documentai.v1.BatchProcessRequest.class, com.google.cloud.documentai.v1.BatchProcessRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Required. The processor resource name.
    * 
* - * - * string 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 @@ -173,31 +140,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; } } /** - * - * *
    * Required. The processor resource name.
    * 
* - * - * string 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 { @@ -208,14 +173,11 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int INPUT_DOCUMENTS_FIELD_NUMBER = 5; private com.google.cloud.documentai.v1.BatchDocumentsInputConfig inputDocuments_; /** - * - * *
    * The input documents for batch process.
    * 
* * .google.cloud.documentai.v1.BatchDocumentsInputConfig input_documents = 5; - * * @return Whether the inputDocuments field is set. */ @java.lang.Override @@ -223,25 +185,18 @@ public boolean hasInputDocuments() { return inputDocuments_ != null; } /** - * - * *
    * The input documents for batch process.
    * 
* * .google.cloud.documentai.v1.BatchDocumentsInputConfig input_documents = 5; - * * @return The inputDocuments. */ @java.lang.Override public com.google.cloud.documentai.v1.BatchDocumentsInputConfig getInputDocuments() { - return inputDocuments_ == null - ? com.google.cloud.documentai.v1.BatchDocumentsInputConfig.getDefaultInstance() - : inputDocuments_; + return inputDocuments_ == null ? com.google.cloud.documentai.v1.BatchDocumentsInputConfig.getDefaultInstance() : inputDocuments_; } /** - * - * *
    * The input documents for batch process.
    * 
@@ -249,22 +204,18 @@ public com.google.cloud.documentai.v1.BatchDocumentsInputConfig getInputDocument * .google.cloud.documentai.v1.BatchDocumentsInputConfig input_documents = 5; */ @java.lang.Override - public com.google.cloud.documentai.v1.BatchDocumentsInputConfigOrBuilder - getInputDocumentsOrBuilder() { + public com.google.cloud.documentai.v1.BatchDocumentsInputConfigOrBuilder getInputDocumentsOrBuilder() { return getInputDocuments(); } public static final int DOCUMENT_OUTPUT_CONFIG_FIELD_NUMBER = 6; private com.google.cloud.documentai.v1.DocumentOutputConfig documentOutputConfig_; /** - * - * *
    * The overall output config for batch process.
    * 
* * .google.cloud.documentai.v1.DocumentOutputConfig document_output_config = 6; - * * @return Whether the documentOutputConfig field is set. */ @java.lang.Override @@ -272,25 +223,18 @@ public boolean hasDocumentOutputConfig() { return documentOutputConfig_ != null; } /** - * - * *
    * The overall output config for batch process.
    * 
* * .google.cloud.documentai.v1.DocumentOutputConfig document_output_config = 6; - * * @return The documentOutputConfig. */ @java.lang.Override public com.google.cloud.documentai.v1.DocumentOutputConfig getDocumentOutputConfig() { - return documentOutputConfig_ == null - ? com.google.cloud.documentai.v1.DocumentOutputConfig.getDefaultInstance() - : documentOutputConfig_; + return documentOutputConfig_ == null ? com.google.cloud.documentai.v1.DocumentOutputConfig.getDefaultInstance() : documentOutputConfig_; } /** - * - * *
    * The overall output config for batch process.
    * 
@@ -298,23 +242,19 @@ public com.google.cloud.documentai.v1.DocumentOutputConfig getDocumentOutputConf * .google.cloud.documentai.v1.DocumentOutputConfig document_output_config = 6; */ @java.lang.Override - public com.google.cloud.documentai.v1.DocumentOutputConfigOrBuilder - getDocumentOutputConfigOrBuilder() { + public com.google.cloud.documentai.v1.DocumentOutputConfigOrBuilder getDocumentOutputConfigOrBuilder() { return getDocumentOutputConfig(); } public static final int SKIP_HUMAN_REVIEW_FIELD_NUMBER = 4; private boolean skipHumanReview_; /** - * - * *
    * Whether Human Review feature should be skipped for this request. Default to
    * false.
    * 
* * bool skip_human_review = 4; - * * @return The skipHumanReview. */ @java.lang.Override @@ -323,7 +263,6 @@ public boolean getSkipHumanReview() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -335,7 +274,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.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,14 +301,16 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (skipHumanReview_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, skipHumanReview_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(4, skipHumanReview_); } if (inputDocuments_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getInputDocuments()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, getInputDocuments()); } if (documentOutputConfig_ != null) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(6, getDocumentOutputConfig()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, getDocumentOutputConfig()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -378,24 +320,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.documentai.v1.BatchProcessRequest)) { return super.equals(obj); } - com.google.cloud.documentai.v1.BatchProcessRequest other = - (com.google.cloud.documentai.v1.BatchProcessRequest) obj; + com.google.cloud.documentai.v1.BatchProcessRequest other = (com.google.cloud.documentai.v1.BatchProcessRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (hasInputDocuments() != other.hasInputDocuments()) return false; if (hasInputDocuments()) { - if (!getInputDocuments().equals(other.getInputDocuments())) return false; + if (!getInputDocuments() + .equals(other.getInputDocuments())) return false; } if (hasDocumentOutputConfig() != other.hasDocumentOutputConfig()) return false; if (hasDocumentOutputConfig()) { - if (!getDocumentOutputConfig().equals(other.getDocumentOutputConfig())) return false; + if (!getDocumentOutputConfig() + .equals(other.getDocumentOutputConfig())) return false; } - if (getSkipHumanReview() != other.getSkipHumanReview()) return false; + if (getSkipHumanReview() + != other.getSkipHumanReview()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -418,133 +363,125 @@ public int hashCode() { hash = (53 * hash) + getDocumentOutputConfig().hashCode(); } hash = (37 * hash) + SKIP_HUMAN_REVIEW_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getSkipHumanReview()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getSkipHumanReview()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.documentai.v1.BatchProcessRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.documentai.v1.BatchProcessRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.documentai.v1.BatchProcessRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.documentai.v1.BatchProcessRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.documentai.v1.BatchProcessRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.documentai.v1.BatchProcessRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.documentai.v1.BatchProcessRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.documentai.v1.BatchProcessRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.documentai.v1.BatchProcessRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.documentai.v1.BatchProcessRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.documentai.v1.BatchProcessRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.documentai.v1.BatchProcessRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.documentai.v1.BatchProcessRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.documentai.v1.BatchProcessRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.documentai.v1.BatchProcessRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 batch process document method.
    * 
* * Protobuf type {@code google.cloud.documentai.v1.BatchProcessRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.documentai.v1.BatchProcessRequest) com.google.cloud.documentai.v1.BatchProcessRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.documentai.v1.DocumentAiProcessorService - .internal_static_google_cloud_documentai_v1_BatchProcessRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.documentai.v1.DocumentAiProcessorService.internal_static_google_cloud_documentai_v1_BatchProcessRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.documentai.v1.DocumentAiProcessorService - .internal_static_google_cloud_documentai_v1_BatchProcessRequest_fieldAccessorTable + return com.google.cloud.documentai.v1.DocumentAiProcessorService.internal_static_google_cloud_documentai_v1_BatchProcessRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.documentai.v1.BatchProcessRequest.class, - com.google.cloud.documentai.v1.BatchProcessRequest.Builder.class); + com.google.cloud.documentai.v1.BatchProcessRequest.class, com.google.cloud.documentai.v1.BatchProcessRequest.Builder.class); } // Construct using com.google.cloud.documentai.v1.BatchProcessRequest.newBuilder() @@ -552,15 +489,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(); @@ -584,9 +522,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.documentai.v1.DocumentAiProcessorService - .internal_static_google_cloud_documentai_v1_BatchProcessRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.documentai.v1.DocumentAiProcessorService.internal_static_google_cloud_documentai_v1_BatchProcessRequest_descriptor; } @java.lang.Override @@ -605,8 +543,7 @@ public com.google.cloud.documentai.v1.BatchProcessRequest build() { @java.lang.Override public com.google.cloud.documentai.v1.BatchProcessRequest buildPartial() { - com.google.cloud.documentai.v1.BatchProcessRequest result = - new com.google.cloud.documentai.v1.BatchProcessRequest(this); + com.google.cloud.documentai.v1.BatchProcessRequest result = new com.google.cloud.documentai.v1.BatchProcessRequest(this); result.name_ = name_; if (inputDocumentsBuilder_ == null) { result.inputDocuments_ = inputDocuments_; @@ -627,39 +564,38 @@ public com.google.cloud.documentai.v1.BatchProcessRequest buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.documentai.v1.BatchProcessRequest) { - return mergeFrom((com.google.cloud.documentai.v1.BatchProcessRequest) other); + return mergeFrom((com.google.cloud.documentai.v1.BatchProcessRequest)other); } else { super.mergeFrom(other); return this; @@ -667,8 +603,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.documentai.v1.BatchProcessRequest other) { - if (other == com.google.cloud.documentai.v1.BatchProcessRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.documentai.v1.BatchProcessRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -701,8 +636,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.documentai.v1.BatchProcessRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.documentai.v1.BatchProcessRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -714,22 +648,18 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * Required. The processor resource name.
      * 
* - * - * string 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; @@ -738,23 +668,20 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The processor resource name.
      * 
* - * - * string 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 { @@ -762,67 +689,54 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The processor resource name.
      * 
* - * - * 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 processor resource name.
      * 
* - * - * string 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 processor resource name.
      * 
* - * - * 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; @@ -830,55 +744,41 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private com.google.cloud.documentai.v1.BatchDocumentsInputConfig inputDocuments_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.documentai.v1.BatchDocumentsInputConfig, - com.google.cloud.documentai.v1.BatchDocumentsInputConfig.Builder, - com.google.cloud.documentai.v1.BatchDocumentsInputConfigOrBuilder> - inputDocumentsBuilder_; + com.google.cloud.documentai.v1.BatchDocumentsInputConfig, com.google.cloud.documentai.v1.BatchDocumentsInputConfig.Builder, com.google.cloud.documentai.v1.BatchDocumentsInputConfigOrBuilder> inputDocumentsBuilder_; /** - * - * *
      * The input documents for batch process.
      * 
* * .google.cloud.documentai.v1.BatchDocumentsInputConfig input_documents = 5; - * * @return Whether the inputDocuments field is set. */ public boolean hasInputDocuments() { return inputDocumentsBuilder_ != null || inputDocuments_ != null; } /** - * - * *
      * The input documents for batch process.
      * 
* * .google.cloud.documentai.v1.BatchDocumentsInputConfig input_documents = 5; - * * @return The inputDocuments. */ public com.google.cloud.documentai.v1.BatchDocumentsInputConfig getInputDocuments() { if (inputDocumentsBuilder_ == null) { - return inputDocuments_ == null - ? com.google.cloud.documentai.v1.BatchDocumentsInputConfig.getDefaultInstance() - : inputDocuments_; + return inputDocuments_ == null ? com.google.cloud.documentai.v1.BatchDocumentsInputConfig.getDefaultInstance() : inputDocuments_; } else { return inputDocumentsBuilder_.getMessage(); } } /** - * - * *
      * The input documents for batch process.
      * 
* * .google.cloud.documentai.v1.BatchDocumentsInputConfig input_documents = 5; */ - public Builder setInputDocuments( - com.google.cloud.documentai.v1.BatchDocumentsInputConfig value) { + public Builder setInputDocuments(com.google.cloud.documentai.v1.BatchDocumentsInputConfig value) { if (inputDocumentsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -892,8 +792,6 @@ public Builder setInputDocuments( return this; } /** - * - * *
      * The input documents for batch process.
      * 
@@ -912,22 +810,17 @@ public Builder setInputDocuments( return this; } /** - * - * *
      * The input documents for batch process.
      * 
* * .google.cloud.documentai.v1.BatchDocumentsInputConfig input_documents = 5; */ - public Builder mergeInputDocuments( - com.google.cloud.documentai.v1.BatchDocumentsInputConfig value) { + public Builder mergeInputDocuments(com.google.cloud.documentai.v1.BatchDocumentsInputConfig value) { if (inputDocumentsBuilder_ == null) { if (inputDocuments_ != null) { inputDocuments_ = - com.google.cloud.documentai.v1.BatchDocumentsInputConfig.newBuilder(inputDocuments_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.documentai.v1.BatchDocumentsInputConfig.newBuilder(inputDocuments_).mergeFrom(value).buildPartial(); } else { inputDocuments_ = value; } @@ -939,8 +832,6 @@ public Builder mergeInputDocuments( return this; } /** - * - * *
      * The input documents for batch process.
      * 
@@ -959,42 +850,33 @@ public Builder clearInputDocuments() { return this; } /** - * - * *
      * The input documents for batch process.
      * 
* * .google.cloud.documentai.v1.BatchDocumentsInputConfig input_documents = 5; */ - public com.google.cloud.documentai.v1.BatchDocumentsInputConfig.Builder - getInputDocumentsBuilder() { - + public com.google.cloud.documentai.v1.BatchDocumentsInputConfig.Builder getInputDocumentsBuilder() { + onChanged(); return getInputDocumentsFieldBuilder().getBuilder(); } /** - * - * *
      * The input documents for batch process.
      * 
* * .google.cloud.documentai.v1.BatchDocumentsInputConfig input_documents = 5; */ - public com.google.cloud.documentai.v1.BatchDocumentsInputConfigOrBuilder - getInputDocumentsOrBuilder() { + public com.google.cloud.documentai.v1.BatchDocumentsInputConfigOrBuilder getInputDocumentsOrBuilder() { if (inputDocumentsBuilder_ != null) { return inputDocumentsBuilder_.getMessageOrBuilder(); } else { - return inputDocuments_ == null - ? com.google.cloud.documentai.v1.BatchDocumentsInputConfig.getDefaultInstance() - : inputDocuments_; + return inputDocuments_ == null ? + com.google.cloud.documentai.v1.BatchDocumentsInputConfig.getDefaultInstance() : inputDocuments_; } } /** - * - * *
      * The input documents for batch process.
      * 
@@ -1002,17 +884,14 @@ public Builder clearInputDocuments() { * .google.cloud.documentai.v1.BatchDocumentsInputConfig input_documents = 5; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.documentai.v1.BatchDocumentsInputConfig, - com.google.cloud.documentai.v1.BatchDocumentsInputConfig.Builder, - com.google.cloud.documentai.v1.BatchDocumentsInputConfigOrBuilder> + com.google.cloud.documentai.v1.BatchDocumentsInputConfig, com.google.cloud.documentai.v1.BatchDocumentsInputConfig.Builder, com.google.cloud.documentai.v1.BatchDocumentsInputConfigOrBuilder> getInputDocumentsFieldBuilder() { if (inputDocumentsBuilder_ == null) { - inputDocumentsBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.documentai.v1.BatchDocumentsInputConfig, - com.google.cloud.documentai.v1.BatchDocumentsInputConfig.Builder, - com.google.cloud.documentai.v1.BatchDocumentsInputConfigOrBuilder>( - getInputDocuments(), getParentForChildren(), isClean()); + inputDocumentsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.documentai.v1.BatchDocumentsInputConfig, com.google.cloud.documentai.v1.BatchDocumentsInputConfig.Builder, com.google.cloud.documentai.v1.BatchDocumentsInputConfigOrBuilder>( + getInputDocuments(), + getParentForChildren(), + isClean()); inputDocuments_ = null; } return inputDocumentsBuilder_; @@ -1020,55 +899,41 @@ public Builder clearInputDocuments() { private com.google.cloud.documentai.v1.DocumentOutputConfig documentOutputConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.documentai.v1.DocumentOutputConfig, - com.google.cloud.documentai.v1.DocumentOutputConfig.Builder, - com.google.cloud.documentai.v1.DocumentOutputConfigOrBuilder> - documentOutputConfigBuilder_; + com.google.cloud.documentai.v1.DocumentOutputConfig, com.google.cloud.documentai.v1.DocumentOutputConfig.Builder, com.google.cloud.documentai.v1.DocumentOutputConfigOrBuilder> documentOutputConfigBuilder_; /** - * - * *
      * The overall output config for batch process.
      * 
* * .google.cloud.documentai.v1.DocumentOutputConfig document_output_config = 6; - * * @return Whether the documentOutputConfig field is set. */ public boolean hasDocumentOutputConfig() { return documentOutputConfigBuilder_ != null || documentOutputConfig_ != null; } /** - * - * *
      * The overall output config for batch process.
      * 
* * .google.cloud.documentai.v1.DocumentOutputConfig document_output_config = 6; - * * @return The documentOutputConfig. */ public com.google.cloud.documentai.v1.DocumentOutputConfig getDocumentOutputConfig() { if (documentOutputConfigBuilder_ == null) { - return documentOutputConfig_ == null - ? com.google.cloud.documentai.v1.DocumentOutputConfig.getDefaultInstance() - : documentOutputConfig_; + return documentOutputConfig_ == null ? com.google.cloud.documentai.v1.DocumentOutputConfig.getDefaultInstance() : documentOutputConfig_; } else { return documentOutputConfigBuilder_.getMessage(); } } /** - * - * *
      * The overall output config for batch process.
      * 
* * .google.cloud.documentai.v1.DocumentOutputConfig document_output_config = 6; */ - public Builder setDocumentOutputConfig( - com.google.cloud.documentai.v1.DocumentOutputConfig value) { + public Builder setDocumentOutputConfig(com.google.cloud.documentai.v1.DocumentOutputConfig value) { if (documentOutputConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1082,8 +947,6 @@ public Builder setDocumentOutputConfig( return this; } /** - * - * *
      * The overall output config for batch process.
      * 
@@ -1102,22 +965,17 @@ public Builder setDocumentOutputConfig( return this; } /** - * - * *
      * The overall output config for batch process.
      * 
* * .google.cloud.documentai.v1.DocumentOutputConfig document_output_config = 6; */ - public Builder mergeDocumentOutputConfig( - com.google.cloud.documentai.v1.DocumentOutputConfig value) { + public Builder mergeDocumentOutputConfig(com.google.cloud.documentai.v1.DocumentOutputConfig value) { if (documentOutputConfigBuilder_ == null) { if (documentOutputConfig_ != null) { documentOutputConfig_ = - com.google.cloud.documentai.v1.DocumentOutputConfig.newBuilder(documentOutputConfig_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.documentai.v1.DocumentOutputConfig.newBuilder(documentOutputConfig_).mergeFrom(value).buildPartial(); } else { documentOutputConfig_ = value; } @@ -1129,8 +987,6 @@ public Builder mergeDocumentOutputConfig( return this; } /** - * - * *
      * The overall output config for batch process.
      * 
@@ -1149,42 +1005,33 @@ public Builder clearDocumentOutputConfig() { return this; } /** - * - * *
      * The overall output config for batch process.
      * 
* * .google.cloud.documentai.v1.DocumentOutputConfig document_output_config = 6; */ - public com.google.cloud.documentai.v1.DocumentOutputConfig.Builder - getDocumentOutputConfigBuilder() { - + public com.google.cloud.documentai.v1.DocumentOutputConfig.Builder getDocumentOutputConfigBuilder() { + onChanged(); return getDocumentOutputConfigFieldBuilder().getBuilder(); } /** - * - * *
      * The overall output config for batch process.
      * 
* * .google.cloud.documentai.v1.DocumentOutputConfig document_output_config = 6; */ - public com.google.cloud.documentai.v1.DocumentOutputConfigOrBuilder - getDocumentOutputConfigOrBuilder() { + public com.google.cloud.documentai.v1.DocumentOutputConfigOrBuilder getDocumentOutputConfigOrBuilder() { if (documentOutputConfigBuilder_ != null) { return documentOutputConfigBuilder_.getMessageOrBuilder(); } else { - return documentOutputConfig_ == null - ? com.google.cloud.documentai.v1.DocumentOutputConfig.getDefaultInstance() - : documentOutputConfig_; + return documentOutputConfig_ == null ? + com.google.cloud.documentai.v1.DocumentOutputConfig.getDefaultInstance() : documentOutputConfig_; } } /** - * - * *
      * The overall output config for batch process.
      * 
@@ -1192,33 +1039,27 @@ public Builder clearDocumentOutputConfig() { * .google.cloud.documentai.v1.DocumentOutputConfig document_output_config = 6; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.documentai.v1.DocumentOutputConfig, - com.google.cloud.documentai.v1.DocumentOutputConfig.Builder, - com.google.cloud.documentai.v1.DocumentOutputConfigOrBuilder> + com.google.cloud.documentai.v1.DocumentOutputConfig, com.google.cloud.documentai.v1.DocumentOutputConfig.Builder, com.google.cloud.documentai.v1.DocumentOutputConfigOrBuilder> getDocumentOutputConfigFieldBuilder() { if (documentOutputConfigBuilder_ == null) { - documentOutputConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.documentai.v1.DocumentOutputConfig, - com.google.cloud.documentai.v1.DocumentOutputConfig.Builder, - com.google.cloud.documentai.v1.DocumentOutputConfigOrBuilder>( - getDocumentOutputConfig(), getParentForChildren(), isClean()); + documentOutputConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.documentai.v1.DocumentOutputConfig, com.google.cloud.documentai.v1.DocumentOutputConfig.Builder, com.google.cloud.documentai.v1.DocumentOutputConfigOrBuilder>( + getDocumentOutputConfig(), + getParentForChildren(), + isClean()); documentOutputConfig_ = null; } return documentOutputConfigBuilder_; } - private boolean skipHumanReview_; + private boolean skipHumanReview_ ; /** - * - * *
      * Whether Human Review feature should be skipped for this request. Default to
      * false.
      * 
* * bool skip_human_review = 4; - * * @return The skipHumanReview. */ @java.lang.Override @@ -1226,45 +1067,39 @@ public boolean getSkipHumanReview() { return skipHumanReview_; } /** - * - * *
      * Whether Human Review feature should be skipped for this request. Default to
      * false.
      * 
* * bool skip_human_review = 4; - * * @param value The skipHumanReview to set. * @return This builder for chaining. */ public Builder setSkipHumanReview(boolean value) { - + skipHumanReview_ = value; onChanged(); return this; } /** - * - * *
      * Whether Human Review feature should be skipped for this request. Default to
      * false.
      * 
* * bool skip_human_review = 4; - * * @return This builder for chaining. */ public Builder clearSkipHumanReview() { - + skipHumanReview_ = 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); } @@ -1274,12 +1109,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.documentai.v1.BatchProcessRequest) } // @@protoc_insertion_point(class_scope:google.cloud.documentai.v1.BatchProcessRequest) private static final com.google.cloud.documentai.v1.BatchProcessRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.documentai.v1.BatchProcessRequest(); } @@ -1288,16 +1123,16 @@ public static com.google.cloud.documentai.v1.BatchProcessRequest getDefaultInsta return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public BatchProcessRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new BatchProcessRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BatchProcessRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new BatchProcessRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1312,4 +1147,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.documentai.v1.BatchProcessRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/BatchProcessRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/BatchProcessRequestOrBuilder.java similarity index 69% rename from proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/BatchProcessRequestOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/BatchProcessRequestOrBuilder.java index a108c9af..5a1f9146 100644 --- a/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/BatchProcessRequestOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/BatchProcessRequestOrBuilder.java @@ -1,84 +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/documentai/v1/document_processor_service.proto package com.google.cloud.documentai.v1; -public interface BatchProcessRequestOrBuilder - extends +public interface BatchProcessRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.documentai.v1.BatchProcessRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The processor resource name.
    * 
* - * - * string 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 processor resource name.
    * 
* - * - * string 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 input documents for batch process.
    * 
* * .google.cloud.documentai.v1.BatchDocumentsInputConfig input_documents = 5; - * * @return Whether the inputDocuments field is set. */ boolean hasInputDocuments(); /** - * - * *
    * The input documents for batch process.
    * 
* * .google.cloud.documentai.v1.BatchDocumentsInputConfig input_documents = 5; - * * @return The inputDocuments. */ com.google.cloud.documentai.v1.BatchDocumentsInputConfig getInputDocuments(); /** - * - * *
    * The input documents for batch process.
    * 
@@ -88,32 +55,24 @@ public interface BatchProcessRequestOrBuilder com.google.cloud.documentai.v1.BatchDocumentsInputConfigOrBuilder getInputDocumentsOrBuilder(); /** - * - * *
    * The overall output config for batch process.
    * 
* * .google.cloud.documentai.v1.DocumentOutputConfig document_output_config = 6; - * * @return Whether the documentOutputConfig field is set. */ boolean hasDocumentOutputConfig(); /** - * - * *
    * The overall output config for batch process.
    * 
* * .google.cloud.documentai.v1.DocumentOutputConfig document_output_config = 6; - * * @return The documentOutputConfig. */ com.google.cloud.documentai.v1.DocumentOutputConfig getDocumentOutputConfig(); /** - * - * *
    * The overall output config for batch process.
    * 
@@ -123,15 +82,12 @@ public interface BatchProcessRequestOrBuilder com.google.cloud.documentai.v1.DocumentOutputConfigOrBuilder getDocumentOutputConfigOrBuilder(); /** - * - * *
    * Whether Human Review feature should be skipped for this request. Default to
    * false.
    * 
* * bool skip_human_review = 4; - * * @return The skipHumanReview. */ boolean getSkipHumanReview(); diff --git a/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/BatchProcessResponse.java b/owl-bot-staging/v1/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/BatchProcessResponse.java similarity index 67% rename from proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/BatchProcessResponse.java rename to owl-bot-staging/v1/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/BatchProcessResponse.java index 5a667357..172eca30 100644 --- a/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/BatchProcessResponse.java +++ b/owl-bot-staging/v1/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/BatchProcessResponse.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/documentai/v1/document_processor_service.proto package com.google.cloud.documentai.v1; /** - * - * *
  * Response message for batch process document method.
  * 
* * Protobuf type {@code google.cloud.documentai.v1.BatchProcessResponse} */ -public final class BatchProcessResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class BatchProcessResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.documentai.v1.BatchProcessResponse) BatchProcessResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use BatchProcessResponse.newBuilder() to construct. private BatchProcessResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private BatchProcessResponse() {} + private BatchProcessResponse() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new BatchProcessResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private BatchProcessResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -68,13 +52,13 @@ private BatchProcessResponse( case 0: done = true; break; - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -82,30 +66,27 @@ private BatchProcessResponse( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.documentai.v1.DocumentAiProcessorService - .internal_static_google_cloud_documentai_v1_BatchProcessResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.documentai.v1.DocumentAiProcessorService.internal_static_google_cloud_documentai_v1_BatchProcessResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.documentai.v1.DocumentAiProcessorService - .internal_static_google_cloud_documentai_v1_BatchProcessResponse_fieldAccessorTable + return com.google.cloud.documentai.v1.DocumentAiProcessorService.internal_static_google_cloud_documentai_v1_BatchProcessResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.documentai.v1.BatchProcessResponse.class, - com.google.cloud.documentai.v1.BatchProcessResponse.Builder.class); + com.google.cloud.documentai.v1.BatchProcessResponse.class, com.google.cloud.documentai.v1.BatchProcessResponse.Builder.class); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -117,7 +98,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { unknownFields.writeTo(output); } @@ -135,13 +117,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.documentai.v1.BatchProcessResponse)) { return super.equals(obj); } - com.google.cloud.documentai.v1.BatchProcessResponse other = - (com.google.cloud.documentai.v1.BatchProcessResponse) obj; + com.google.cloud.documentai.v1.BatchProcessResponse other = (com.google.cloud.documentai.v1.BatchProcessResponse) obj; if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -160,126 +141,117 @@ public int hashCode() { } public static com.google.cloud.documentai.v1.BatchProcessResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.documentai.v1.BatchProcessResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.documentai.v1.BatchProcessResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.documentai.v1.BatchProcessResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.documentai.v1.BatchProcessResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.documentai.v1.BatchProcessResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.documentai.v1.BatchProcessResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.documentai.v1.BatchProcessResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.documentai.v1.BatchProcessResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.documentai.v1.BatchProcessResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.documentai.v1.BatchProcessResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.documentai.v1.BatchProcessResponse parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.documentai.v1.BatchProcessResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.documentai.v1.BatchProcessResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.documentai.v1.BatchProcessResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 batch process document method.
    * 
* * Protobuf type {@code google.cloud.documentai.v1.BatchProcessResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.documentai.v1.BatchProcessResponse) com.google.cloud.documentai.v1.BatchProcessResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.documentai.v1.DocumentAiProcessorService - .internal_static_google_cloud_documentai_v1_BatchProcessResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.documentai.v1.DocumentAiProcessorService.internal_static_google_cloud_documentai_v1_BatchProcessResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.documentai.v1.DocumentAiProcessorService - .internal_static_google_cloud_documentai_v1_BatchProcessResponse_fieldAccessorTable + return com.google.cloud.documentai.v1.DocumentAiProcessorService.internal_static_google_cloud_documentai_v1_BatchProcessResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.documentai.v1.BatchProcessResponse.class, - com.google.cloud.documentai.v1.BatchProcessResponse.Builder.class); + com.google.cloud.documentai.v1.BatchProcessResponse.class, com.google.cloud.documentai.v1.BatchProcessResponse.Builder.class); } // Construct using com.google.cloud.documentai.v1.BatchProcessResponse.newBuilder() @@ -287,15 +259,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(); @@ -303,9 +276,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.documentai.v1.DocumentAiProcessorService - .internal_static_google_cloud_documentai_v1_BatchProcessResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.documentai.v1.DocumentAiProcessorService.internal_static_google_cloud_documentai_v1_BatchProcessResponse_descriptor; } @java.lang.Override @@ -324,8 +297,7 @@ public com.google.cloud.documentai.v1.BatchProcessResponse build() { @java.lang.Override public com.google.cloud.documentai.v1.BatchProcessResponse buildPartial() { - com.google.cloud.documentai.v1.BatchProcessResponse result = - new com.google.cloud.documentai.v1.BatchProcessResponse(this); + com.google.cloud.documentai.v1.BatchProcessResponse result = new com.google.cloud.documentai.v1.BatchProcessResponse(this); onBuilt(); return result; } @@ -334,39 +306,38 @@ public com.google.cloud.documentai.v1.BatchProcessResponse buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.documentai.v1.BatchProcessResponse) { - return mergeFrom((com.google.cloud.documentai.v1.BatchProcessResponse) other); + return mergeFrom((com.google.cloud.documentai.v1.BatchProcessResponse)other); } else { super.mergeFrom(other); return this; @@ -374,8 +345,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.documentai.v1.BatchProcessResponse other) { - if (other == com.google.cloud.documentai.v1.BatchProcessResponse.getDefaultInstance()) - return this; + if (other == com.google.cloud.documentai.v1.BatchProcessResponse.getDefaultInstance()) return this; this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -395,8 +365,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.documentai.v1.BatchProcessResponse) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.documentai.v1.BatchProcessResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -405,9 +374,9 @@ public Builder mergeFrom( } return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -417,12 +386,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.documentai.v1.BatchProcessResponse) } // @@protoc_insertion_point(class_scope:google.cloud.documentai.v1.BatchProcessResponse) private static final com.google.cloud.documentai.v1.BatchProcessResponse DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.documentai.v1.BatchProcessResponse(); } @@ -431,16 +400,16 @@ public static com.google.cloud.documentai.v1.BatchProcessResponse getDefaultInst return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public BatchProcessResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new BatchProcessResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BatchProcessResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new BatchProcessResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -455,4 +424,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.documentai.v1.BatchProcessResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/BatchProcessResponseOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/BatchProcessResponseOrBuilder.java new file mode 100644 index 00000000..aa9891c6 --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/BatchProcessResponseOrBuilder.java @@ -0,0 +1,9 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/documentai/v1/document_processor_service.proto + +package com.google.cloud.documentai.v1; + +public interface BatchProcessResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.documentai.v1.BatchProcessResponse) + com.google.protobuf.MessageOrBuilder { +} diff --git a/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/BoundingPoly.java b/owl-bot-staging/v1/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/BoundingPoly.java similarity index 76% rename from proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/BoundingPoly.java rename to owl-bot-staging/v1/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/BoundingPoly.java index 5527278c..1e02c184 100644 --- a/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/BoundingPoly.java +++ b/owl-bot-staging/v1/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/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/documentai/v1/geometry.proto package com.google.cloud.documentai.v1; /** - * - * *
  * A bounding polygon for the detected image annotation.
  * 
* * Protobuf type {@code google.cloud.documentai.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.documentai.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,36 +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.documentai.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.documentai.v1.NormalizedVertex.parser(), extensionRegistry)); - break; + vertices_.add( + input.readMessage(com.google.cloud.documentai.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.documentai.v1.NormalizedVertex.parser(), extensionRegistry)); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -109,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_); @@ -121,27 +100,22 @@ private BoundingPoly( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.documentai.v1.GeometryProto - .internal_static_google_cloud_documentai_v1_BoundingPoly_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.documentai.v1.GeometryProto.internal_static_google_cloud_documentai_v1_BoundingPoly_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.documentai.v1.GeometryProto - .internal_static_google_cloud_documentai_v1_BoundingPoly_fieldAccessorTable + return com.google.cloud.documentai.v1.GeometryProto.internal_static_google_cloud_documentai_v1_BoundingPoly_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.documentai.v1.BoundingPoly.class, - com.google.cloud.documentai.v1.BoundingPoly.Builder.class); + com.google.cloud.documentai.v1.BoundingPoly.class, com.google.cloud.documentai.v1.BoundingPoly.Builder.class); } public static final int VERTICES_FIELD_NUMBER = 1; private java.util.List vertices_; /** - * - * *
    * The bounding polygon vertices.
    * 
@@ -153,8 +127,6 @@ public java.util.List getVerticesList() { return vertices_; } /** - * - * *
    * The bounding polygon vertices.
    * 
@@ -162,13 +134,11 @@ public java.util.List getVerticesList() { * repeated .google.cloud.documentai.v1.Vertex vertices = 1; */ @java.lang.Override - public java.util.List + public java.util.List getVerticesOrBuilderList() { return vertices_; } /** - * - * *
    * The bounding polygon vertices.
    * 
@@ -180,8 +150,6 @@ public int getVerticesCount() { return vertices_.size(); } /** - * - * *
    * The bounding polygon vertices.
    * 
@@ -193,8 +161,6 @@ public com.google.cloud.documentai.v1.Vertex getVertices(int index) { return vertices_.get(index); } /** - * - * *
    * The bounding polygon vertices.
    * 
@@ -202,15 +168,14 @@ public com.google.cloud.documentai.v1.Vertex getVertices(int index) { * repeated .google.cloud.documentai.v1.Vertex vertices = 1; */ @java.lang.Override - public com.google.cloud.documentai.v1.VertexOrBuilder getVerticesOrBuilder(int index) { + public com.google.cloud.documentai.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.
    * 
@@ -218,13 +183,10 @@ public com.google.cloud.documentai.v1.VertexOrBuilder getVerticesOrBuilder(int i * repeated .google.cloud.documentai.v1.NormalizedVertex normalized_vertices = 2; */ @java.lang.Override - public java.util.List - getNormalizedVerticesList() { + public java.util.List getNormalizedVerticesList() { return normalizedVertices_; } /** - * - * *
    * The bounding polygon normalized vertices.
    * 
@@ -232,13 +194,11 @@ public com.google.cloud.documentai.v1.VertexOrBuilder getVerticesOrBuilder(int i * repeated .google.cloud.documentai.v1.NormalizedVertex normalized_vertices = 2; */ @java.lang.Override - public java.util.List + public java.util.List getNormalizedVerticesOrBuilderList() { return normalizedVertices_; } /** - * - * *
    * The bounding polygon normalized vertices.
    * 
@@ -250,8 +210,6 @@ public int getNormalizedVerticesCount() { return normalizedVertices_.size(); } /** - * - * *
    * The bounding polygon normalized vertices.
    * 
@@ -263,8 +221,6 @@ public com.google.cloud.documentai.v1.NormalizedVertex getNormalizedVertices(int return normalizedVertices_.get(index); } /** - * - * *
    * The bounding polygon normalized vertices.
    * 
@@ -278,7 +234,6 @@ public com.google.cloud.documentai.v1.NormalizedVertexOrBuilder getNormalizedVer } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -290,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)); } @@ -307,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; @@ -321,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.documentai.v1.BoundingPoly)) { return super.equals(obj); } - com.google.cloud.documentai.v1.BoundingPoly other = - (com.google.cloud.documentai.v1.BoundingPoly) obj; + com.google.cloud.documentai.v1.BoundingPoly other = (com.google.cloud.documentai.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; } @@ -355,127 +313,118 @@ public int hashCode() { return hash; } - public static com.google.cloud.documentai.v1.BoundingPoly parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.documentai.v1.BoundingPoly parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.documentai.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.documentai.v1.BoundingPoly parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.documentai.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.documentai.v1.BoundingPoly parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.documentai.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.documentai.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.documentai.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.documentai.v1.BoundingPoly parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.documentai.v1.BoundingPoly parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.documentai.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.documentai.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.documentai.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.documentai.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.documentai.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.documentai.v1.BoundingPoly) com.google.cloud.documentai.v1.BoundingPolyOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.documentai.v1.GeometryProto - .internal_static_google_cloud_documentai_v1_BoundingPoly_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.documentai.v1.GeometryProto.internal_static_google_cloud_documentai_v1_BoundingPoly_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.documentai.v1.GeometryProto - .internal_static_google_cloud_documentai_v1_BoundingPoly_fieldAccessorTable + return com.google.cloud.documentai.v1.GeometryProto.internal_static_google_cloud_documentai_v1_BoundingPoly_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.documentai.v1.BoundingPoly.class, - com.google.cloud.documentai.v1.BoundingPoly.Builder.class); + com.google.cloud.documentai.v1.BoundingPoly.class, com.google.cloud.documentai.v1.BoundingPoly.Builder.class); } // Construct using com.google.cloud.documentai.v1.BoundingPoly.newBuilder() @@ -483,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(); @@ -514,9 +463,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.documentai.v1.GeometryProto - .internal_static_google_cloud_documentai_v1_BoundingPoly_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.documentai.v1.GeometryProto.internal_static_google_cloud_documentai_v1_BoundingPoly_descriptor; } @java.lang.Override @@ -535,8 +484,7 @@ public com.google.cloud.documentai.v1.BoundingPoly build() { @java.lang.Override public com.google.cloud.documentai.v1.BoundingPoly buildPartial() { - com.google.cloud.documentai.v1.BoundingPoly result = - new com.google.cloud.documentai.v1.BoundingPoly(this); + com.google.cloud.documentai.v1.BoundingPoly result = new com.google.cloud.documentai.v1.BoundingPoly(this); int from_bitField0_ = bitField0_; if (verticesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -564,39 +512,38 @@ public com.google.cloud.documentai.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.documentai.v1.BoundingPoly) { - return mergeFrom((com.google.cloud.documentai.v1.BoundingPoly) other); + return mergeFrom((com.google.cloud.documentai.v1.BoundingPoly)other); } else { super.mergeFrom(other); return this; @@ -623,10 +570,9 @@ public Builder mergeFrom(com.google.cloud.documentai.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_); } @@ -650,10 +596,9 @@ public Builder mergeFrom(com.google.cloud.documentai.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_); } @@ -687,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.documentai.v1.Vertex, - com.google.cloud.documentai.v1.Vertex.Builder, - com.google.cloud.documentai.v1.VertexOrBuilder> - verticesBuilder_; + com.google.cloud.documentai.v1.Vertex, com.google.cloud.documentai.v1.Vertex.Builder, com.google.cloud.documentai.v1.VertexOrBuilder> verticesBuilder_; /** - * - * *
      * The bounding polygon vertices.
      * 
@@ -723,8 +661,6 @@ public java.util.List getVerticesList() { } } /** - * - * *
      * The bounding polygon vertices.
      * 
@@ -739,8 +675,6 @@ public int getVerticesCount() { } } /** - * - * *
      * The bounding polygon vertices.
      * 
@@ -755,15 +689,14 @@ public com.google.cloud.documentai.v1.Vertex getVertices(int index) { } } /** - * - * *
      * The bounding polygon vertices.
      * 
* * repeated .google.cloud.documentai.v1.Vertex vertices = 1; */ - public Builder setVertices(int index, com.google.cloud.documentai.v1.Vertex value) { + public Builder setVertices( + int index, com.google.cloud.documentai.v1.Vertex value) { if (verticesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -777,8 +710,6 @@ public Builder setVertices(int index, com.google.cloud.documentai.v1.Vertex valu return this; } /** - * - * *
      * The bounding polygon vertices.
      * 
@@ -797,8 +728,6 @@ public Builder setVertices( return this; } /** - * - * *
      * The bounding polygon vertices.
      * 
@@ -819,15 +748,14 @@ public Builder addVertices(com.google.cloud.documentai.v1.Vertex value) { return this; } /** - * - * *
      * The bounding polygon vertices.
      * 
* * repeated .google.cloud.documentai.v1.Vertex vertices = 1; */ - public Builder addVertices(int index, com.google.cloud.documentai.v1.Vertex value) { + public Builder addVertices( + int index, com.google.cloud.documentai.v1.Vertex value) { if (verticesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -841,15 +769,14 @@ public Builder addVertices(int index, com.google.cloud.documentai.v1.Vertex valu return this; } /** - * - * *
      * The bounding polygon vertices.
      * 
* * repeated .google.cloud.documentai.v1.Vertex vertices = 1; */ - public Builder addVertices(com.google.cloud.documentai.v1.Vertex.Builder builderForValue) { + public Builder addVertices( + com.google.cloud.documentai.v1.Vertex.Builder builderForValue) { if (verticesBuilder_ == null) { ensureVerticesIsMutable(); vertices_.add(builderForValue.build()); @@ -860,8 +787,6 @@ public Builder addVertices(com.google.cloud.documentai.v1.Vertex.Builder builder return this; } /** - * - * *
      * The bounding polygon vertices.
      * 
@@ -880,8 +805,6 @@ public Builder addVertices( return this; } /** - * - * *
      * The bounding polygon vertices.
      * 
@@ -892,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); @@ -900,8 +824,6 @@ public Builder addAllVertices( return this; } /** - * - * *
      * The bounding polygon vertices.
      * 
@@ -919,8 +841,6 @@ public Builder clearVertices() { return this; } /** - * - * *
      * The bounding polygon vertices.
      * 
@@ -938,44 +858,39 @@ public Builder removeVertices(int index) { return this; } /** - * - * *
      * The bounding polygon vertices.
      * 
* * repeated .google.cloud.documentai.v1.Vertex vertices = 1; */ - public com.google.cloud.documentai.v1.Vertex.Builder getVerticesBuilder(int index) { + public com.google.cloud.documentai.v1.Vertex.Builder getVerticesBuilder( + int index) { return getVerticesFieldBuilder().getBuilder(index); } /** - * - * *
      * The bounding polygon vertices.
      * 
* * repeated .google.cloud.documentai.v1.Vertex vertices = 1; */ - public com.google.cloud.documentai.v1.VertexOrBuilder getVerticesOrBuilder(int index) { + public com.google.cloud.documentai.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.documentai.v1.Vertex vertices = 1; */ - public java.util.List - getVerticesOrBuilderList() { + public java.util.List + getVerticesOrBuilderList() { if (verticesBuilder_ != null) { return verticesBuilder_.getMessageOrBuilderList(); } else { @@ -983,8 +898,6 @@ public com.google.cloud.documentai.v1.VertexOrBuilder getVerticesOrBuilder(int i } } /** - * - * *
      * The bounding polygon vertices.
      * 
@@ -992,81 +905,67 @@ public com.google.cloud.documentai.v1.VertexOrBuilder getVerticesOrBuilder(int i * repeated .google.cloud.documentai.v1.Vertex vertices = 1; */ public com.google.cloud.documentai.v1.Vertex.Builder addVerticesBuilder() { - return getVerticesFieldBuilder() - .addBuilder(com.google.cloud.documentai.v1.Vertex.getDefaultInstance()); + return getVerticesFieldBuilder().addBuilder( + com.google.cloud.documentai.v1.Vertex.getDefaultInstance()); } /** - * - * *
      * The bounding polygon vertices.
      * 
* * repeated .google.cloud.documentai.v1.Vertex vertices = 1; */ - public com.google.cloud.documentai.v1.Vertex.Builder addVerticesBuilder(int index) { - return getVerticesFieldBuilder() - .addBuilder(index, com.google.cloud.documentai.v1.Vertex.getDefaultInstance()); + public com.google.cloud.documentai.v1.Vertex.Builder addVerticesBuilder( + int index) { + return getVerticesFieldBuilder().addBuilder( + index, com.google.cloud.documentai.v1.Vertex.getDefaultInstance()); } /** - * - * *
      * The bounding polygon vertices.
      * 
* * repeated .google.cloud.documentai.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.documentai.v1.Vertex, - com.google.cloud.documentai.v1.Vertex.Builder, - com.google.cloud.documentai.v1.VertexOrBuilder> + com.google.cloud.documentai.v1.Vertex, com.google.cloud.documentai.v1.Vertex.Builder, com.google.cloud.documentai.v1.VertexOrBuilder> getVerticesFieldBuilder() { if (verticesBuilder_ == null) { - verticesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.documentai.v1.Vertex, - com.google.cloud.documentai.v1.Vertex.Builder, - com.google.cloud.documentai.v1.VertexOrBuilder>( - vertices_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + verticesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.documentai.v1.Vertex, com.google.cloud.documentai.v1.Vertex.Builder, com.google.cloud.documentai.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.documentai.v1.NormalizedVertex, - com.google.cloud.documentai.v1.NormalizedVertex.Builder, - com.google.cloud.documentai.v1.NormalizedVertexOrBuilder> - normalizedVerticesBuilder_; + com.google.cloud.documentai.v1.NormalizedVertex, com.google.cloud.documentai.v1.NormalizedVertex.Builder, com.google.cloud.documentai.v1.NormalizedVertexOrBuilder> normalizedVerticesBuilder_; /** - * - * *
      * The bounding polygon normalized vertices.
      * 
* * repeated .google.cloud.documentai.v1.NormalizedVertex normalized_vertices = 2; */ - public java.util.List - getNormalizedVerticesList() { + public java.util.List getNormalizedVerticesList() { if (normalizedVerticesBuilder_ == null) { return java.util.Collections.unmodifiableList(normalizedVertices_); } else { @@ -1074,8 +973,6 @@ private void ensureNormalizedVerticesIsMutable() { } } /** - * - * *
      * The bounding polygon normalized vertices.
      * 
@@ -1090,8 +987,6 @@ public int getNormalizedVerticesCount() { } } /** - * - * *
      * The bounding polygon normalized vertices.
      * 
@@ -1106,8 +1001,6 @@ public com.google.cloud.documentai.v1.NormalizedVertex getNormalizedVertices(int } } /** - * - * *
      * The bounding polygon normalized vertices.
      * 
@@ -1129,8 +1022,6 @@ public Builder setNormalizedVertices( return this; } /** - * - * *
      * The bounding polygon normalized vertices.
      * 
@@ -1149,8 +1040,6 @@ public Builder setNormalizedVertices( return this; } /** - * - * *
      * The bounding polygon normalized vertices.
      * 
@@ -1171,8 +1060,6 @@ public Builder addNormalizedVertices(com.google.cloud.documentai.v1.NormalizedVe return this; } /** - * - * *
      * The bounding polygon normalized vertices.
      * 
@@ -1194,8 +1081,6 @@ public Builder addNormalizedVertices( return this; } /** - * - * *
      * The bounding polygon normalized vertices.
      * 
@@ -1214,8 +1099,6 @@ public Builder addNormalizedVertices( return this; } /** - * - * *
      * The bounding polygon normalized vertices.
      * 
@@ -1234,8 +1117,6 @@ public Builder addNormalizedVertices( return this; } /** - * - * *
      * The bounding polygon normalized vertices.
      * 
@@ -1246,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); @@ -1254,8 +1136,6 @@ public Builder addAllNormalizedVertices( return this; } /** - * - * *
      * The bounding polygon normalized vertices.
      * 
@@ -1273,8 +1153,6 @@ public Builder clearNormalizedVertices() { return this; } /** - * - * *
      * The bounding polygon normalized vertices.
      * 
@@ -1292,8 +1170,6 @@ public Builder removeNormalizedVertices(int index) { return this; } /** - * - * *
      * The bounding polygon normalized vertices.
      * 
@@ -1305,8 +1181,6 @@ public com.google.cloud.documentai.v1.NormalizedVertex.Builder getNormalizedVert return getNormalizedVerticesFieldBuilder().getBuilder(index); } /** - * - * *
      * The bounding polygon normalized vertices.
      * 
@@ -1316,22 +1190,19 @@ public com.google.cloud.documentai.v1.NormalizedVertex.Builder getNormalizedVert public com.google.cloud.documentai.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.documentai.v1.NormalizedVertex normalized_vertices = 2; */ - public java.util.List - getNormalizedVerticesOrBuilderList() { + public java.util.List + getNormalizedVerticesOrBuilderList() { if (normalizedVerticesBuilder_ != null) { return normalizedVerticesBuilder_.getMessageOrBuilderList(); } else { @@ -1339,8 +1210,6 @@ public com.google.cloud.documentai.v1.NormalizedVertexOrBuilder getNormalizedVer } } /** - * - * *
      * The bounding polygon normalized vertices.
      * 
@@ -1348,12 +1217,10 @@ public com.google.cloud.documentai.v1.NormalizedVertexOrBuilder getNormalizedVer * repeated .google.cloud.documentai.v1.NormalizedVertex normalized_vertices = 2; */ public com.google.cloud.documentai.v1.NormalizedVertex.Builder addNormalizedVerticesBuilder() { - return getNormalizedVerticesFieldBuilder() - .addBuilder(com.google.cloud.documentai.v1.NormalizedVertex.getDefaultInstance()); + return getNormalizedVerticesFieldBuilder().addBuilder( + com.google.cloud.documentai.v1.NormalizedVertex.getDefaultInstance()); } /** - * - * *
      * The bounding polygon normalized vertices.
      * 
@@ -1362,34 +1229,26 @@ public com.google.cloud.documentai.v1.NormalizedVertex.Builder addNormalizedVert */ public com.google.cloud.documentai.v1.NormalizedVertex.Builder addNormalizedVerticesBuilder( int index) { - return getNormalizedVerticesFieldBuilder() - .addBuilder(index, com.google.cloud.documentai.v1.NormalizedVertex.getDefaultInstance()); + return getNormalizedVerticesFieldBuilder().addBuilder( + index, com.google.cloud.documentai.v1.NormalizedVertex.getDefaultInstance()); } /** - * - * *
      * The bounding polygon normalized vertices.
      * 
* * repeated .google.cloud.documentai.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.documentai.v1.NormalizedVertex, - com.google.cloud.documentai.v1.NormalizedVertex.Builder, - com.google.cloud.documentai.v1.NormalizedVertexOrBuilder> + com.google.cloud.documentai.v1.NormalizedVertex, com.google.cloud.documentai.v1.NormalizedVertex.Builder, com.google.cloud.documentai.v1.NormalizedVertexOrBuilder> getNormalizedVerticesFieldBuilder() { if (normalizedVerticesBuilder_ == null) { - normalizedVerticesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.documentai.v1.NormalizedVertex, - com.google.cloud.documentai.v1.NormalizedVertex.Builder, - com.google.cloud.documentai.v1.NormalizedVertexOrBuilder>( + normalizedVerticesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.documentai.v1.NormalizedVertex, com.google.cloud.documentai.v1.NormalizedVertex.Builder, com.google.cloud.documentai.v1.NormalizedVertexOrBuilder>( normalizedVertices_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), @@ -1398,9 +1257,9 @@ public com.google.cloud.documentai.v1.NormalizedVertex.Builder addNormalizedVert } 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); } @@ -1410,12 +1269,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.documentai.v1.BoundingPoly) } // @@protoc_insertion_point(class_scope:google.cloud.documentai.v1.BoundingPoly) private static final com.google.cloud.documentai.v1.BoundingPoly DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.documentai.v1.BoundingPoly(); } @@ -1424,16 +1283,16 @@ public static com.google.cloud.documentai.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; @@ -1448,4 +1307,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.documentai.v1.BoundingPoly getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/BoundingPolyOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/BoundingPolyOrBuilder.java similarity index 74% rename from proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/BoundingPolyOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/BoundingPolyOrBuilder.java index 3337f777..5887c0d2 100644 --- a/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/BoundingPolyOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/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/documentai/v1/geometry.proto package com.google.cloud.documentai.v1; -public interface BoundingPolyOrBuilder - extends +public interface BoundingPolyOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.documentai.v1.BoundingPoly) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The bounding polygon vertices.
    * 
* * repeated .google.cloud.documentai.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.documentai.v1.Vertex getVertices(int index); /** - * - * *
    * The bounding polygon vertices.
    * 
@@ -54,40 +33,34 @@ public interface BoundingPolyOrBuilder */ int getVerticesCount(); /** - * - * *
    * The bounding polygon vertices.
    * 
* * repeated .google.cloud.documentai.v1.Vertex vertices = 1; */ - java.util.List + java.util.List getVerticesOrBuilderList(); /** - * - * *
    * The bounding polygon vertices.
    * 
* * repeated .google.cloud.documentai.v1.Vertex vertices = 1; */ - com.google.cloud.documentai.v1.VertexOrBuilder getVerticesOrBuilder(int index); + com.google.cloud.documentai.v1.VertexOrBuilder getVerticesOrBuilder( + int index); /** - * - * *
    * The bounding polygon normalized vertices.
    * 
* * repeated .google.cloud.documentai.v1.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.documentai.v1.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.documentai.v1.NormalizedVertex normalized_vertices = 2; */ - java.util.List + java.util.List getNormalizedVerticesOrBuilderList(); /** - * - * *
    * The bounding polygon normalized vertices.
    * 
diff --git a/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/CommonOperationMetadata.java b/owl-bot-staging/v1/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/CommonOperationMetadata.java similarity index 71% rename from proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/CommonOperationMetadata.java rename to owl-bot-staging/v1/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/CommonOperationMetadata.java index b28a63f6..95f752d2 100644 --- a/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/CommonOperationMetadata.java +++ b/owl-bot-staging/v1/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/CommonOperationMetadata.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/documentai/v1/operation_metadata.proto package com.google.cloud.documentai.v1; /** - * - * *
  * The common metadata for long running operations.
  * 
* * Protobuf type {@code google.cloud.documentai.v1.CommonOperationMetadata} */ -public final class CommonOperationMetadata extends com.google.protobuf.GeneratedMessageV3 - implements +public final class CommonOperationMetadata extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.documentai.v1.CommonOperationMetadata) CommonOperationMetadataOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use CommonOperationMetadata.newBuilder() to construct. private CommonOperationMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private CommonOperationMetadata() { state_ = 0; stateMessage_ = ""; @@ -44,15 +26,16 @@ private CommonOperationMetadata() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new CommonOperationMetadata(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private CommonOperationMetadata( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,57 +54,51 @@ private CommonOperationMetadata( case 0: done = true; break; - case 8: - { - int rawValue = input.readEnum(); + case 8: { + int rawValue = input.readEnum(); - state_ = rawValue; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + state_ = rawValue; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - stateMessage_ = s; - break; + stateMessage_ = s; + break; + } + case 26: { + 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(); } - case 26: - { - 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 34: { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (updateTime_ != null) { + subBuilder = updateTime_.toBuilder(); } - case 34: - { - 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; + 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) { @@ -129,41 +106,36 @@ private CommonOperationMetadata( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.documentai.v1.OperationMetadataProto - .internal_static_google_cloud_documentai_v1_CommonOperationMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.documentai.v1.OperationMetadataProto.internal_static_google_cloud_documentai_v1_CommonOperationMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.documentai.v1.OperationMetadataProto - .internal_static_google_cloud_documentai_v1_CommonOperationMetadata_fieldAccessorTable + return com.google.cloud.documentai.v1.OperationMetadataProto.internal_static_google_cloud_documentai_v1_CommonOperationMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.documentai.v1.CommonOperationMetadata.class, - com.google.cloud.documentai.v1.CommonOperationMetadata.Builder.class); + com.google.cloud.documentai.v1.CommonOperationMetadata.class, com.google.cloud.documentai.v1.CommonOperationMetadata.Builder.class); } /** - * - * *
    * State of the longrunning operation.
    * 
* * Protobuf enum {@code google.cloud.documentai.v1.CommonOperationMetadata.State} */ - public enum State implements com.google.protobuf.ProtocolMessageEnum { + public enum State + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * Unspecified state.
      * 
@@ -172,8 +144,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ STATE_UNSPECIFIED(0), /** - * - * *
      * Operation is still running.
      * 
@@ -182,8 +152,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ RUNNING(1), /** - * - * *
      * Operation is being cancelled.
      * 
@@ -192,8 +160,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ CANCELLING(2), /** - * - * *
      * Operation succeeded.
      * 
@@ -202,8 +168,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ SUCCEEDED(3), /** - * - * *
      * Operation failed.
      * 
@@ -212,8 +176,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ FAILED(4), /** - * - * *
      * Operation is cancelled.
      * 
@@ -225,8 +187,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
      * Unspecified state.
      * 
@@ -235,8 +195,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int STATE_UNSPECIFIED_VALUE = 0; /** - * - * *
      * Operation is still running.
      * 
@@ -245,8 +203,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int RUNNING_VALUE = 1; /** - * - * *
      * Operation is being cancelled.
      * 
@@ -255,8 +211,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int CANCELLING_VALUE = 2; /** - * - * *
      * Operation succeeded.
      * 
@@ -265,8 +219,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int SUCCEEDED_VALUE = 3; /** - * - * *
      * Operation failed.
      * 
@@ -275,8 +227,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int FAILED_VALUE = 4; /** - * - * *
      * Operation is cancelled.
      * 
@@ -285,6 +235,7 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int CANCELLED_VALUE = 5; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -309,57 +260,52 @@ public static State valueOf(int value) { */ public static State forNumber(int value) { switch (value) { - case 0: - return STATE_UNSPECIFIED; - case 1: - return RUNNING; - case 2: - return CANCELLING; - case 3: - return SUCCEEDED; - case 4: - return FAILED; - case 5: - return CANCELLED; - default: - return null; + case 0: return STATE_UNSPECIFIED; + case 1: return RUNNING; + case 2: return CANCELLING; + case 3: return SUCCEEDED; + case 4: return FAILED; + case 5: 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.documentai.v1.CommonOperationMetadata.getDescriptor() - .getEnumTypes() - .get(0); + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.google.cloud.documentai.v1.CommonOperationMetadata.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; @@ -379,52 +325,38 @@ private State(int value) { public static final int STATE_FIELD_NUMBER = 1; private int state_; /** - * - * *
    * The state of the operation.
    * 
* * .google.cloud.documentai.v1.CommonOperationMetadata.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 state of the operation.
    * 
* * .google.cloud.documentai.v1.CommonOperationMetadata.State state = 1; - * * @return The state. */ - @java.lang.Override - public com.google.cloud.documentai.v1.CommonOperationMetadata.State getState() { + @java.lang.Override public com.google.cloud.documentai.v1.CommonOperationMetadata.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.documentai.v1.CommonOperationMetadata.State result = - com.google.cloud.documentai.v1.CommonOperationMetadata.State.valueOf(state_); - return result == null - ? com.google.cloud.documentai.v1.CommonOperationMetadata.State.UNRECOGNIZED - : result; + com.google.cloud.documentai.v1.CommonOperationMetadata.State result = com.google.cloud.documentai.v1.CommonOperationMetadata.State.valueOf(state_); + return result == null ? com.google.cloud.documentai.v1.CommonOperationMetadata.State.UNRECOGNIZED : result; } public static final int STATE_MESSAGE_FIELD_NUMBER = 2; private volatile java.lang.Object stateMessage_; /** - * - * *
    * A message providing more details about the current state of processing.
    * 
* * string state_message = 2; - * * @return The stateMessage. */ @java.lang.Override @@ -433,29 +365,29 @@ public java.lang.String getStateMessage() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); stateMessage_ = s; return s; } } /** - * - * *
    * A message providing more details about the current state of processing.
    * 
* * string state_message = 2; - * * @return The bytes for stateMessage. */ @java.lang.Override - public com.google.protobuf.ByteString getStateMessageBytes() { + public com.google.protobuf.ByteString + getStateMessageBytes() { java.lang.Object ref = stateMessage_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); stateMessage_ = b; return b; } else { @@ -466,14 +398,11 @@ public com.google.protobuf.ByteString getStateMessageBytes() { public static final int CREATE_TIME_FIELD_NUMBER = 3; private com.google.protobuf.Timestamp createTime_; /** - * - * *
    * The creation time of the operation.
    * 
* * .google.protobuf.Timestamp create_time = 3; - * * @return Whether the createTime field is set. */ @java.lang.Override @@ -481,14 +410,11 @@ public boolean hasCreateTime() { return createTime_ != null; } /** - * - * *
    * The creation time of the operation.
    * 
* * .google.protobuf.Timestamp create_time = 3; - * * @return The createTime. */ @java.lang.Override @@ -496,8 +422,6 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** - * - * *
    * The creation time of the operation.
    * 
@@ -512,14 +436,11 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int UPDATE_TIME_FIELD_NUMBER = 4; private com.google.protobuf.Timestamp updateTime_; /** - * - * *
    * The last update time of the operation.
    * 
* * .google.protobuf.Timestamp update_time = 4; - * * @return Whether the updateTime field is set. */ @java.lang.Override @@ -527,14 +448,11 @@ public boolean hasUpdateTime() { return updateTime_ != null; } /** - * - * *
    * The last update time of the operation.
    * 
* * .google.protobuf.Timestamp update_time = 4; - * * @return The updateTime. */ @java.lang.Override @@ -542,8 +460,6 @@ public com.google.protobuf.Timestamp getUpdateTime() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } /** - * - * *
    * The last update time of the operation.
    * 
@@ -556,7 +472,6 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -568,10 +483,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.documentai.v1.CommonOperationMetadata.State.STATE_UNSPECIFIED - .getNumber()) { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (state_ != com.google.cloud.documentai.v1.CommonOperationMetadata.State.STATE_UNSPECIFIED.getNumber()) { output.writeEnum(1, state_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(stateMessage_)) { @@ -592,19 +506,20 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (state_ - != com.google.cloud.documentai.v1.CommonOperationMetadata.State.STATE_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, state_); + if (state_ != com.google.cloud.documentai.v1.CommonOperationMetadata.State.STATE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, state_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(stateMessage_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, stateMessage_); } if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getCreateTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getCreateTime()); } if (updateTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getUpdateTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getUpdateTime()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -614,23 +529,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.documentai.v1.CommonOperationMetadata)) { return super.equals(obj); } - com.google.cloud.documentai.v1.CommonOperationMetadata other = - (com.google.cloud.documentai.v1.CommonOperationMetadata) obj; + com.google.cloud.documentai.v1.CommonOperationMetadata other = (com.google.cloud.documentai.v1.CommonOperationMetadata) obj; if (state_ != other.state_) return false; - if (!getStateMessage().equals(other.getStateMessage())) return false; + if (!getStateMessage() + .equals(other.getStateMessage())) 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; @@ -661,127 +578,117 @@ public int hashCode() { } public static com.google.cloud.documentai.v1.CommonOperationMetadata parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.documentai.v1.CommonOperationMetadata parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.documentai.v1.CommonOperationMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.documentai.v1.CommonOperationMetadata parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.documentai.v1.CommonOperationMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.documentai.v1.CommonOperationMetadata parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.documentai.v1.CommonOperationMetadata parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.documentai.v1.CommonOperationMetadata parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.documentai.v1.CommonOperationMetadata parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.documentai.v1.CommonOperationMetadata parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.documentai.v1.CommonOperationMetadata parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.documentai.v1.CommonOperationMetadata parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.documentai.v1.CommonOperationMetadata parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.documentai.v1.CommonOperationMetadata parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.documentai.v1.CommonOperationMetadata prototype) { + public static Builder newBuilder(com.google.cloud.documentai.v1.CommonOperationMetadata prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 common metadata for long running operations.
    * 
* * Protobuf type {@code google.cloud.documentai.v1.CommonOperationMetadata} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.documentai.v1.CommonOperationMetadata) com.google.cloud.documentai.v1.CommonOperationMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.documentai.v1.OperationMetadataProto - .internal_static_google_cloud_documentai_v1_CommonOperationMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.documentai.v1.OperationMetadataProto.internal_static_google_cloud_documentai_v1_CommonOperationMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.documentai.v1.OperationMetadataProto - .internal_static_google_cloud_documentai_v1_CommonOperationMetadata_fieldAccessorTable + return com.google.cloud.documentai.v1.OperationMetadataProto.internal_static_google_cloud_documentai_v1_CommonOperationMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.documentai.v1.CommonOperationMetadata.class, - com.google.cloud.documentai.v1.CommonOperationMetadata.Builder.class); + com.google.cloud.documentai.v1.CommonOperationMetadata.class, com.google.cloud.documentai.v1.CommonOperationMetadata.Builder.class); } // Construct using com.google.cloud.documentai.v1.CommonOperationMetadata.newBuilder() @@ -789,15 +696,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(); @@ -821,9 +729,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.documentai.v1.OperationMetadataProto - .internal_static_google_cloud_documentai_v1_CommonOperationMetadata_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.documentai.v1.OperationMetadataProto.internal_static_google_cloud_documentai_v1_CommonOperationMetadata_descriptor; } @java.lang.Override @@ -842,8 +750,7 @@ public com.google.cloud.documentai.v1.CommonOperationMetadata build() { @java.lang.Override public com.google.cloud.documentai.v1.CommonOperationMetadata buildPartial() { - com.google.cloud.documentai.v1.CommonOperationMetadata result = - new com.google.cloud.documentai.v1.CommonOperationMetadata(this); + com.google.cloud.documentai.v1.CommonOperationMetadata result = new com.google.cloud.documentai.v1.CommonOperationMetadata(this); result.state_ = state_; result.stateMessage_ = stateMessage_; if (createTimeBuilder_ == null) { @@ -864,39 +771,38 @@ public com.google.cloud.documentai.v1.CommonOperationMetadata buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.documentai.v1.CommonOperationMetadata) { - return mergeFrom((com.google.cloud.documentai.v1.CommonOperationMetadata) other); + return mergeFrom((com.google.cloud.documentai.v1.CommonOperationMetadata)other); } else { super.mergeFrom(other); return this; @@ -904,8 +810,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.documentai.v1.CommonOperationMetadata other) { - if (other == com.google.cloud.documentai.v1.CommonOperationMetadata.getDefaultInstance()) - return this; + if (other == com.google.cloud.documentai.v1.CommonOperationMetadata.getDefaultInstance()) return this; if (other.state_ != 0) { setStateValue(other.getStateValue()); } @@ -938,8 +843,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.documentai.v1.CommonOperationMetadata) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.documentai.v1.CommonOperationMetadata) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -951,67 +855,51 @@ public Builder mergeFrom( private int state_ = 0; /** - * - * *
      * The state of the operation.
      * 
* * .google.cloud.documentai.v1.CommonOperationMetadata.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 state of the operation.
      * 
* * .google.cloud.documentai.v1.CommonOperationMetadata.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 state of the operation.
      * 
* * .google.cloud.documentai.v1.CommonOperationMetadata.State state = 1; - * * @return The state. */ @java.lang.Override public com.google.cloud.documentai.v1.CommonOperationMetadata.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.documentai.v1.CommonOperationMetadata.State result = - com.google.cloud.documentai.v1.CommonOperationMetadata.State.valueOf(state_); - return result == null - ? com.google.cloud.documentai.v1.CommonOperationMetadata.State.UNRECOGNIZED - : result; + com.google.cloud.documentai.v1.CommonOperationMetadata.State result = com.google.cloud.documentai.v1.CommonOperationMetadata.State.valueOf(state_); + return result == null ? com.google.cloud.documentai.v1.CommonOperationMetadata.State.UNRECOGNIZED : result; } /** - * - * *
      * The state of the operation.
      * 
* * .google.cloud.documentai.v1.CommonOperationMetadata.State state = 1; - * * @param value The state to set. * @return This builder for chaining. */ @@ -1019,24 +907,21 @@ public Builder setState(com.google.cloud.documentai.v1.CommonOperationMetadata.S if (value == null) { throw new NullPointerException(); } - + state_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * The state of the operation.
      * 
* * .google.cloud.documentai.v1.CommonOperationMetadata.State state = 1; - * * @return This builder for chaining. */ public Builder clearState() { - + state_ = 0; onChanged(); return this; @@ -1044,20 +929,18 @@ public Builder clearState() { private java.lang.Object stateMessage_ = ""; /** - * - * *
      * A message providing more details about the current state of processing.
      * 
* * string state_message = 2; - * * @return The stateMessage. */ public java.lang.String getStateMessage() { java.lang.Object ref = stateMessage_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); stateMessage_ = s; return s; @@ -1066,21 +949,20 @@ public java.lang.String getStateMessage() { } } /** - * - * *
      * A message providing more details about the current state of processing.
      * 
* * string state_message = 2; - * * @return The bytes for stateMessage. */ - public com.google.protobuf.ByteString getStateMessageBytes() { + public com.google.protobuf.ByteString + getStateMessageBytes() { java.lang.Object ref = stateMessage_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); stateMessage_ = b; return b; } else { @@ -1088,61 +970,54 @@ public com.google.protobuf.ByteString getStateMessageBytes() { } } /** - * - * *
      * A message providing more details about the current state of processing.
      * 
* * string state_message = 2; - * * @param value The stateMessage to set. * @return This builder for chaining. */ - public Builder setStateMessage(java.lang.String value) { + public Builder setStateMessage( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + stateMessage_ = value; onChanged(); return this; } /** - * - * *
      * A message providing more details about the current state of processing.
      * 
* * string state_message = 2; - * * @return This builder for chaining. */ public Builder clearStateMessage() { - + stateMessage_ = getDefaultInstance().getStateMessage(); onChanged(); return this; } /** - * - * *
      * A message providing more details about the current state of processing.
      * 
* * string state_message = 2; - * * @param value The bytes for stateMessage to set. * @return This builder for chaining. */ - public Builder setStateMessageBytes(com.google.protobuf.ByteString value) { + public Builder setStateMessageBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + stateMessage_ = value; onChanged(); return this; @@ -1150,47 +1025,34 @@ public Builder setStateMessageBytes(com.google.protobuf.ByteString value) { 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 creation time of the operation.
      * 
* * .google.protobuf.Timestamp create_time = 3; - * * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return createTimeBuilder_ != null || createTime_ != null; } /** - * - * *
      * The creation time of the operation.
      * 
* * .google.protobuf.Timestamp create_time = 3; - * * @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 creation time of the operation.
      * 
@@ -1211,15 +1073,14 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * The creation time of the operation.
      * 
* * .google.protobuf.Timestamp create_time = 3; */ - 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(); @@ -1230,8 +1091,6 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * The creation time of the operation.
      * 
@@ -1242,7 +1101,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; } @@ -1254,8 +1113,6 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * The creation time of the operation.
      * 
@@ -1274,8 +1131,6 @@ public Builder clearCreateTime() { return this; } /** - * - * *
      * The creation time of the operation.
      * 
@@ -1283,13 +1138,11 @@ public Builder clearCreateTime() { * .google.protobuf.Timestamp create_time = 3; */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - + onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * The creation time of the operation.
      * 
@@ -1300,14 +1153,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 creation time of the operation.
      * 
@@ -1315,17 +1165,14 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { * .google.protobuf.Timestamp create_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> 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_; @@ -1333,47 +1180,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 last update time of the operation.
      * 
* * .google.protobuf.Timestamp update_time = 4; - * * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { return updateTimeBuilder_ != null || updateTime_ != null; } /** - * - * *
      * The last update time of the operation.
      * 
* * .google.protobuf.Timestamp update_time = 4; - * * @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 last update time of the operation.
      * 
@@ -1394,15 +1228,14 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * The last update time of the operation.
      * 
* * .google.protobuf.Timestamp update_time = 4; */ - 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(); @@ -1413,8 +1246,6 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * The last update time of the operation.
      * 
@@ -1425,7 +1256,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; } @@ -1437,8 +1268,6 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * The last update time of the operation.
      * 
@@ -1457,8 +1286,6 @@ public Builder clearUpdateTime() { return this; } /** - * - * *
      * The last update time of the operation.
      * 
@@ -1466,13 +1293,11 @@ public Builder clearUpdateTime() { * .google.protobuf.Timestamp update_time = 4; */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { - + onChanged(); return getUpdateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * The last update time of the operation.
      * 
@@ -1483,14 +1308,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 last update time of the operation.
      * 
@@ -1498,24 +1320,21 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { * .google.protobuf.Timestamp update_time = 4; */ 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); } @@ -1525,12 +1344,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.documentai.v1.CommonOperationMetadata) } // @@protoc_insertion_point(class_scope:google.cloud.documentai.v1.CommonOperationMetadata) private static final com.google.cloud.documentai.v1.CommonOperationMetadata DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.documentai.v1.CommonOperationMetadata(); } @@ -1539,16 +1358,16 @@ public static com.google.cloud.documentai.v1.CommonOperationMetadata getDefaultI return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CommonOperationMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CommonOperationMetadata(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CommonOperationMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CommonOperationMetadata(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1563,4 +1382,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.documentai.v1.CommonOperationMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/CommonOperationMetadataOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/CommonOperationMetadataOrBuilder.java similarity index 74% rename from proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/CommonOperationMetadataOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/CommonOperationMetadataOrBuilder.java index efb39be1..cf8ba9ae 100644 --- a/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/CommonOperationMetadataOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/CommonOperationMetadataOrBuilder.java @@ -1,105 +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/documentai/v1/operation_metadata.proto package com.google.cloud.documentai.v1; -public interface CommonOperationMetadataOrBuilder - extends +public interface CommonOperationMetadataOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.documentai.v1.CommonOperationMetadata) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The state of the operation.
    * 
* * .google.cloud.documentai.v1.CommonOperationMetadata.State state = 1; - * * @return The enum numeric value on the wire for state. */ int getStateValue(); /** - * - * *
    * The state of the operation.
    * 
* * .google.cloud.documentai.v1.CommonOperationMetadata.State state = 1; - * * @return The state. */ com.google.cloud.documentai.v1.CommonOperationMetadata.State getState(); /** - * - * *
    * A message providing more details about the current state of processing.
    * 
* * string state_message = 2; - * * @return The stateMessage. */ java.lang.String getStateMessage(); /** - * - * *
    * A message providing more details about the current state of processing.
    * 
* * string state_message = 2; - * * @return The bytes for stateMessage. */ - com.google.protobuf.ByteString getStateMessageBytes(); + com.google.protobuf.ByteString + getStateMessageBytes(); /** - * - * *
    * The creation time of the operation.
    * 
* * .google.protobuf.Timestamp create_time = 3; - * * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** - * - * *
    * The creation time of the operation.
    * 
* * .google.protobuf.Timestamp create_time = 3; - * * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** - * - * *
    * The creation time of the operation.
    * 
@@ -109,32 +74,24 @@ public interface CommonOperationMetadataOrBuilder com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** - * - * *
    * The last update time of the operation.
    * 
* * .google.protobuf.Timestamp update_time = 4; - * * @return Whether the updateTime field is set. */ boolean hasUpdateTime(); /** - * - * *
    * The last update time of the operation.
    * 
* * .google.protobuf.Timestamp update_time = 4; - * * @return The updateTime. */ com.google.protobuf.Timestamp getUpdateTime(); /** - * - * *
    * The last update time of the operation.
    * 
diff --git a/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/Document.java b/owl-bot-staging/v1/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/Document.java similarity index 74% rename from proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/Document.java rename to owl-bot-staging/v1/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/Document.java index 31f5ed59..03b04167 100644 --- a/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/Document.java +++ b/owl-bot-staging/v1/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/Document.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/documentai/v1/document.proto package com.google.cloud.documentai.v1; /** - * - * *
  * Document represents the canonical document resource in Document Understanding
  * AI.
@@ -31,16 +14,15 @@
  *
  * Protobuf type {@code google.cloud.documentai.v1.Document}
  */
-public final class Document extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class Document extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.documentai.v1.Document)
     DocumentOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use Document.newBuilder() to construct.
   private Document(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private Document() {
     mimeType_ = "";
     text_ = "";
@@ -54,15 +36,16 @@ private Document() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new Document();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private Document(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -82,146 +65,116 @@ private Document(
           case 0:
             done = true;
             break;
-          case 10:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
-              sourceCase_ = 1;
-              source_ = s;
-              break;
-            }
-          case 18:
-            {
-              source_ = input.readBytes();
-              sourceCase_ = 2;
-              break;
-            }
-          case 26:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+          case 10: {
+            java.lang.String s = input.readStringRequireUtf8();
+            sourceCase_ = 1;
+            source_ = s;
+            break;
+          }
+          case 18: {
+            source_ = input.readBytes();
+            sourceCase_ = 2;
+            break;
+          }
+          case 26: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              mimeType_ = s;
-              break;
-            }
-          case 34:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+            mimeType_ = s;
+            break;
+          }
+          case 34: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              text_ = s;
-              break;
+            text_ = s;
+            break;
+          }
+          case 42: {
+            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+              textStyles_ = new java.util.ArrayList();
+              mutable_bitField0_ |= 0x00000001;
             }
-          case 42:
-            {
-              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-                textStyles_ =
-                    new java.util.ArrayList();
-                mutable_bitField0_ |= 0x00000001;
-              }
-              textStyles_.add(
-                  input.readMessage(
-                      com.google.cloud.documentai.v1.Document.Style.parser(), extensionRegistry));
-              break;
+            textStyles_.add(
+                input.readMessage(com.google.cloud.documentai.v1.Document.Style.parser(), extensionRegistry));
+            break;
+          }
+          case 50: {
+            if (!((mutable_bitField0_ & 0x00000002) != 0)) {
+              pages_ = new java.util.ArrayList();
+              mutable_bitField0_ |= 0x00000002;
             }
-          case 50:
-            {
-              if (!((mutable_bitField0_ & 0x00000002) != 0)) {
-                pages_ = new java.util.ArrayList();
-                mutable_bitField0_ |= 0x00000002;
-              }
-              pages_.add(
-                  input.readMessage(
-                      com.google.cloud.documentai.v1.Document.Page.parser(), extensionRegistry));
-              break;
+            pages_.add(
+                input.readMessage(com.google.cloud.documentai.v1.Document.Page.parser(), extensionRegistry));
+            break;
+          }
+          case 58: {
+            if (!((mutable_bitField0_ & 0x00000004) != 0)) {
+              entities_ = new java.util.ArrayList();
+              mutable_bitField0_ |= 0x00000004;
             }
-          case 58:
-            {
-              if (!((mutable_bitField0_ & 0x00000004) != 0)) {
-                entities_ =
-                    new java.util.ArrayList();
-                mutable_bitField0_ |= 0x00000004;
-              }
-              entities_.add(
-                  input.readMessage(
-                      com.google.cloud.documentai.v1.Document.Entity.parser(), extensionRegistry));
-              break;
+            entities_.add(
+                input.readMessage(com.google.cloud.documentai.v1.Document.Entity.parser(), extensionRegistry));
+            break;
+          }
+          case 66: {
+            if (!((mutable_bitField0_ & 0x00000008) != 0)) {
+              entityRelations_ = new java.util.ArrayList();
+              mutable_bitField0_ |= 0x00000008;
             }
-          case 66:
-            {
-              if (!((mutable_bitField0_ & 0x00000008) != 0)) {
-                entityRelations_ =
-                    new java.util.ArrayList<
-                        com.google.cloud.documentai.v1.Document.EntityRelation>();
-                mutable_bitField0_ |= 0x00000008;
-              }
-              entityRelations_.add(
-                  input.readMessage(
-                      com.google.cloud.documentai.v1.Document.EntityRelation.parser(),
-                      extensionRegistry));
-              break;
+            entityRelations_.add(
+                input.readMessage(com.google.cloud.documentai.v1.Document.EntityRelation.parser(), extensionRegistry));
+            break;
+          }
+          case 74: {
+            com.google.cloud.documentai.v1.Document.ShardInfo.Builder subBuilder = null;
+            if (shardInfo_ != null) {
+              subBuilder = shardInfo_.toBuilder();
             }
-          case 74:
-            {
-              com.google.cloud.documentai.v1.Document.ShardInfo.Builder subBuilder = null;
-              if (shardInfo_ != null) {
-                subBuilder = shardInfo_.toBuilder();
-              }
-              shardInfo_ =
-                  input.readMessage(
-                      com.google.cloud.documentai.v1.Document.ShardInfo.parser(),
-                      extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(shardInfo_);
-                shardInfo_ = subBuilder.buildPartial();
-              }
-
-              break;
+            shardInfo_ = input.readMessage(com.google.cloud.documentai.v1.Document.ShardInfo.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(shardInfo_);
+              shardInfo_ = subBuilder.buildPartial();
             }
-          case 82:
-            {
-              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 82: {
+            com.google.rpc.Status.Builder subBuilder = null;
+            if (error_ != null) {
+              subBuilder = error_.toBuilder();
             }
-          case 106:
-            {
-              if (!((mutable_bitField0_ & 0x00000020) != 0)) {
-                revisions_ =
-                    new java.util.ArrayList();
-                mutable_bitField0_ |= 0x00000020;
-              }
-              revisions_.add(
-                  input.readMessage(
-                      com.google.cloud.documentai.v1.Document.Revision.parser(),
-                      extensionRegistry));
-              break;
+            error_ = input.readMessage(com.google.rpc.Status.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(error_);
+              error_ = subBuilder.buildPartial();
             }
-          case 114:
-            {
-              if (!((mutable_bitField0_ & 0x00000010) != 0)) {
-                textChanges_ =
-                    new java.util.ArrayList();
-                mutable_bitField0_ |= 0x00000010;
-              }
-              textChanges_.add(
-                  input.readMessage(
-                      com.google.cloud.documentai.v1.Document.TextChange.parser(),
-                      extensionRegistry));
-              break;
+
+            break;
+          }
+          case 106: {
+            if (!((mutable_bitField0_ & 0x00000020) != 0)) {
+              revisions_ = new java.util.ArrayList();
+              mutable_bitField0_ |= 0x00000020;
             }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+            revisions_.add(
+                input.readMessage(com.google.cloud.documentai.v1.Document.Revision.parser(), extensionRegistry));
+            break;
+          }
+          case 114: {
+            if (!((mutable_bitField0_ & 0x00000010) != 0)) {
+              textChanges_ = new java.util.ArrayList();
+              mutable_bitField0_ |= 0x00000010;
+            }
+            textChanges_.add(
+                input.readMessage(com.google.cloud.documentai.v1.Document.TextChange.parser(), extensionRegistry));
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -229,7 +182,8 @@ private Document(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       if (((mutable_bitField0_ & 0x00000001) != 0)) {
         textStyles_ = java.util.Collections.unmodifiableList(textStyles_);
@@ -253,56 +207,44 @@ private Document(
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.documentai.v1.DocumentProto
-        .internal_static_google_cloud_documentai_v1_Document_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.documentai.v1.DocumentProto.internal_static_google_cloud_documentai_v1_Document_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.documentai.v1.DocumentProto
-        .internal_static_google_cloud_documentai_v1_Document_fieldAccessorTable
+    return com.google.cloud.documentai.v1.DocumentProto.internal_static_google_cloud_documentai_v1_Document_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.documentai.v1.Document.class,
-            com.google.cloud.documentai.v1.Document.Builder.class);
+            com.google.cloud.documentai.v1.Document.class, com.google.cloud.documentai.v1.Document.Builder.class);
   }
 
-  public interface ShardInfoOrBuilder
-      extends
+  public interface ShardInfoOrBuilder extends
       // @@protoc_insertion_point(interface_extends:google.cloud.documentai.v1.Document.ShardInfo)
       com.google.protobuf.MessageOrBuilder {
 
     /**
-     *
-     *
      * 
      * The 0-based index of this shard.
      * 
* * int64 shard_index = 1; - * * @return The shardIndex. */ long getShardIndex(); /** - * - * *
      * Total number of shards.
      * 
* * int64 shard_count = 2; - * * @return The shardCount. */ long getShardCount(); /** - * - * *
      * The index of the first character in
      * [Document.text][google.cloud.documentai.v1.Document.text] in the overall
@@ -310,14 +252,11 @@ public interface ShardInfoOrBuilder
      * 
* * int64 text_offset = 3; - * * @return The textOffset. */ long getTextOffset(); } /** - * - * *
    * For a large document, sharding may be performed to produce several
    * document shards. Each document shard contains this field to detail which
@@ -326,29 +265,30 @@ public interface ShardInfoOrBuilder
    *
    * Protobuf type {@code google.cloud.documentai.v1.Document.ShardInfo}
    */
-  public static final class ShardInfo extends com.google.protobuf.GeneratedMessageV3
-      implements
+  public static final class ShardInfo extends
+      com.google.protobuf.GeneratedMessageV3 implements
       // @@protoc_insertion_point(message_implements:google.cloud.documentai.v1.Document.ShardInfo)
       ShardInfoOrBuilder {
-    private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
     // Use ShardInfo.newBuilder() to construct.
     private ShardInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) {
       super(builder);
     }
-
-    private ShardInfo() {}
+    private ShardInfo() {
+    }
 
     @java.lang.Override
     @SuppressWarnings({"unused"})
-    protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+    protected java.lang.Object newInstance(
+        UnusedPrivateParameter unused) {
       return new ShardInfo();
     }
 
     @java.lang.Override
-    public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+    public final com.google.protobuf.UnknownFieldSet
+    getUnknownFields() {
       return this.unknownFields;
     }
-
     private ShardInfo(
         com.google.protobuf.CodedInputStream input,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -367,28 +307,28 @@ private ShardInfo(
             case 0:
               done = true;
               break;
-            case 8:
-              {
-                shardIndex_ = input.readInt64();
-                break;
-              }
-            case 16:
-              {
-                shardCount_ = input.readInt64();
-                break;
-              }
-            case 24:
-              {
-                textOffset_ = input.readInt64();
-                break;
-              }
-            default:
-              {
-                if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                  done = true;
-                }
-                break;
+            case 8: {
+
+              shardIndex_ = input.readInt64();
+              break;
+            }
+            case 16: {
+
+              shardCount_ = input.readInt64();
+              break;
+            }
+            case 24: {
+
+              textOffset_ = input.readInt64();
+              break;
+            }
+            default: {
+              if (!parseUnknownField(
+                  input, unknownFields, extensionRegistry, tag)) {
+                done = true;
               }
+              break;
+            }
           }
         }
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -396,39 +336,34 @@ private ShardInfo(
       } catch (com.google.protobuf.UninitializedMessageException e) {
         throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
       } catch (java.io.IOException e) {
-        throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+        throw new com.google.protobuf.InvalidProtocolBufferException(
+            e).setUnfinishedMessage(this);
       } finally {
         this.unknownFields = unknownFields.build();
         makeExtensionsImmutable();
       }
     }
-
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.documentai.v1.DocumentProto
-          .internal_static_google_cloud_documentai_v1_Document_ShardInfo_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.documentai.v1.DocumentProto.internal_static_google_cloud_documentai_v1_Document_ShardInfo_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.documentai.v1.DocumentProto
-          .internal_static_google_cloud_documentai_v1_Document_ShardInfo_fieldAccessorTable
+      return com.google.cloud.documentai.v1.DocumentProto.internal_static_google_cloud_documentai_v1_Document_ShardInfo_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.documentai.v1.Document.ShardInfo.class,
-              com.google.cloud.documentai.v1.Document.ShardInfo.Builder.class);
+              com.google.cloud.documentai.v1.Document.ShardInfo.class, com.google.cloud.documentai.v1.Document.ShardInfo.Builder.class);
     }
 
     public static final int SHARD_INDEX_FIELD_NUMBER = 1;
     private long shardIndex_;
     /**
-     *
-     *
      * 
      * The 0-based index of this shard.
      * 
* * int64 shard_index = 1; - * * @return The shardIndex. */ @java.lang.Override @@ -439,14 +374,11 @@ public long getShardIndex() { public static final int SHARD_COUNT_FIELD_NUMBER = 2; private long shardCount_; /** - * - * *
      * Total number of shards.
      * 
* * int64 shard_count = 2; - * * @return The shardCount. */ @java.lang.Override @@ -457,8 +389,6 @@ public long getShardCount() { public static final int TEXT_OFFSET_FIELD_NUMBER = 3; private long textOffset_; /** - * - * *
      * The index of the first character in
      * [Document.text][google.cloud.documentai.v1.Document.text] in the overall
@@ -466,7 +396,6 @@ public long getShardCount() {
      * 
* * int64 text_offset = 3; - * * @return The textOffset. */ @java.lang.Override @@ -475,7 +404,6 @@ public long getTextOffset() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -487,7 +415,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (shardIndex_ != 0L) { output.writeInt64(1, shardIndex_); } @@ -507,13 +436,16 @@ public int getSerializedSize() { size = 0; if (shardIndex_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(1, shardIndex_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(1, shardIndex_); } if (shardCount_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, shardCount_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(2, shardCount_); } if (textOffset_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(3, textOffset_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(3, textOffset_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -523,17 +455,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.documentai.v1.Document.ShardInfo)) { return super.equals(obj); } - com.google.cloud.documentai.v1.Document.ShardInfo other = - (com.google.cloud.documentai.v1.Document.ShardInfo) obj; + com.google.cloud.documentai.v1.Document.ShardInfo other = (com.google.cloud.documentai.v1.Document.ShardInfo) obj; - if (getShardIndex() != other.getShardIndex()) return false; - if (getShardCount() != other.getShardCount()) return false; - if (getTextOffset() != other.getTextOffset()) return false; + if (getShardIndex() + != other.getShardIndex()) return false; + if (getShardCount() + != other.getShardCount()) return false; + if (getTextOffset() + != other.getTextOffset()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -546,104 +480,101 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + SHARD_INDEX_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getShardIndex()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getShardIndex()); hash = (37 * hash) + SHARD_COUNT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getShardCount()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getShardCount()); hash = (37 * hash) + TEXT_OFFSET_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getTextOffset()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getTextOffset()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.documentai.v1.Document.ShardInfo parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.documentai.v1.Document.ShardInfo parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.documentai.v1.Document.ShardInfo parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.documentai.v1.Document.ShardInfo parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.documentai.v1.Document.ShardInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.documentai.v1.Document.ShardInfo parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.documentai.v1.Document.ShardInfo parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.documentai.v1.Document.ShardInfo parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.documentai.v1.Document.ShardInfo parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.documentai.v1.Document.ShardInfo parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.documentai.v1.Document.ShardInfo parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.documentai.v1.Document.ShardInfo parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.documentai.v1.Document.ShardInfo parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.documentai.v1.Document.ShardInfo parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.documentai.v1.Document.ShardInfo prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -653,8 +584,6 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * For a large document, sharding may be performed to produce several
      * document shards. Each document shard contains this field to detail which
@@ -663,24 +592,21 @@ protected Builder newBuilderForType(
      *
      * Protobuf type {@code google.cloud.documentai.v1.Document.ShardInfo}
      */
-    public static final class Builder
-        extends com.google.protobuf.GeneratedMessageV3.Builder
-        implements
+    public static final class Builder extends
+        com.google.protobuf.GeneratedMessageV3.Builder implements
         // @@protoc_insertion_point(builder_implements:google.cloud.documentai.v1.Document.ShardInfo)
         com.google.cloud.documentai.v1.Document.ShardInfoOrBuilder {
-      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-        return com.google.cloud.documentai.v1.DocumentProto
-            .internal_static_google_cloud_documentai_v1_Document_ShardInfo_descriptor;
+      public static final com.google.protobuf.Descriptors.Descriptor
+          getDescriptor() {
+        return com.google.cloud.documentai.v1.DocumentProto.internal_static_google_cloud_documentai_v1_Document_ShardInfo_descriptor;
       }
 
       @java.lang.Override
       protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internalGetFieldAccessorTable() {
-        return com.google.cloud.documentai.v1.DocumentProto
-            .internal_static_google_cloud_documentai_v1_Document_ShardInfo_fieldAccessorTable
+        return com.google.cloud.documentai.v1.DocumentProto.internal_static_google_cloud_documentai_v1_Document_ShardInfo_fieldAccessorTable
             .ensureFieldAccessorsInitialized(
-                com.google.cloud.documentai.v1.Document.ShardInfo.class,
-                com.google.cloud.documentai.v1.Document.ShardInfo.Builder.class);
+                com.google.cloud.documentai.v1.Document.ShardInfo.class, com.google.cloud.documentai.v1.Document.ShardInfo.Builder.class);
       }
 
       // Construct using com.google.cloud.documentai.v1.Document.ShardInfo.newBuilder()
@@ -688,15 +614,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();
@@ -710,9 +637,9 @@ public Builder clear() {
       }
 
       @java.lang.Override
-      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-        return com.google.cloud.documentai.v1.DocumentProto
-            .internal_static_google_cloud_documentai_v1_Document_ShardInfo_descriptor;
+      public com.google.protobuf.Descriptors.Descriptor
+          getDescriptorForType() {
+        return com.google.cloud.documentai.v1.DocumentProto.internal_static_google_cloud_documentai_v1_Document_ShardInfo_descriptor;
       }
 
       @java.lang.Override
@@ -731,8 +658,7 @@ public com.google.cloud.documentai.v1.Document.ShardInfo build() {
 
       @java.lang.Override
       public com.google.cloud.documentai.v1.Document.ShardInfo buildPartial() {
-        com.google.cloud.documentai.v1.Document.ShardInfo result =
-            new com.google.cloud.documentai.v1.Document.ShardInfo(this);
+        com.google.cloud.documentai.v1.Document.ShardInfo result = new com.google.cloud.documentai.v1.Document.ShardInfo(this);
         result.shardIndex_ = shardIndex_;
         result.shardCount_ = shardCount_;
         result.textOffset_ = textOffset_;
@@ -744,41 +670,38 @@ public com.google.cloud.documentai.v1.Document.ShardInfo buildPartial() {
       public Builder clone() {
         return super.clone();
       }
-
       @java.lang.Override
       public Builder setField(
-          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+          com.google.protobuf.Descriptors.FieldDescriptor field,
+          java.lang.Object value) {
         return super.setField(field, value);
       }
-
       @java.lang.Override
-      public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+      public Builder clearField(
+          com.google.protobuf.Descriptors.FieldDescriptor field) {
         return super.clearField(field);
       }
-
       @java.lang.Override
-      public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+      public Builder clearOneof(
+          com.google.protobuf.Descriptors.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.documentai.v1.Document.ShardInfo) {
-          return mergeFrom((com.google.cloud.documentai.v1.Document.ShardInfo) other);
+          return mergeFrom((com.google.cloud.documentai.v1.Document.ShardInfo)other);
         } else {
           super.mergeFrom(other);
           return this;
@@ -786,8 +709,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
       }
 
       public Builder mergeFrom(com.google.cloud.documentai.v1.Document.ShardInfo other) {
-        if (other == com.google.cloud.documentai.v1.Document.ShardInfo.getDefaultInstance())
-          return this;
+        if (other == com.google.cloud.documentai.v1.Document.ShardInfo.getDefaultInstance()) return this;
         if (other.getShardIndex() != 0L) {
           setShardIndex(other.getShardIndex());
         }
@@ -816,8 +738,7 @@ public Builder mergeFrom(
         try {
           parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
         } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-          parsedMessage =
-              (com.google.cloud.documentai.v1.Document.ShardInfo) e.getUnfinishedMessage();
+          parsedMessage = (com.google.cloud.documentai.v1.Document.ShardInfo) e.getUnfinishedMessage();
           throw e.unwrapIOException();
         } finally {
           if (parsedMessage != null) {
@@ -827,16 +748,13 @@ public Builder mergeFrom(
         return this;
       }
 
-      private long shardIndex_;
+      private long shardIndex_ ;
       /**
-       *
-       *
        * 
        * The 0-based index of this shard.
        * 
* * int64 shard_index = 1; - * * @return The shardIndex. */ @java.lang.Override @@ -844,51 +762,42 @@ public long getShardIndex() { return shardIndex_; } /** - * - * *
        * The 0-based index of this shard.
        * 
* * int64 shard_index = 1; - * * @param value The shardIndex to set. * @return This builder for chaining. */ public Builder setShardIndex(long value) { - + shardIndex_ = value; onChanged(); return this; } /** - * - * *
        * The 0-based index of this shard.
        * 
* * int64 shard_index = 1; - * * @return This builder for chaining. */ public Builder clearShardIndex() { - + shardIndex_ = 0L; onChanged(); return this; } - private long shardCount_; + private long shardCount_ ; /** - * - * *
        * Total number of shards.
        * 
* * int64 shard_count = 2; - * * @return The shardCount. */ @java.lang.Override @@ -896,45 +805,37 @@ public long getShardCount() { return shardCount_; } /** - * - * *
        * Total number of shards.
        * 
* * int64 shard_count = 2; - * * @param value The shardCount to set. * @return This builder for chaining. */ public Builder setShardCount(long value) { - + shardCount_ = value; onChanged(); return this; } /** - * - * *
        * Total number of shards.
        * 
* * int64 shard_count = 2; - * * @return This builder for chaining. */ public Builder clearShardCount() { - + shardCount_ = 0L; onChanged(); return this; } - private long textOffset_; + private long textOffset_ ; /** - * - * *
        * The index of the first character in
        * [Document.text][google.cloud.documentai.v1.Document.text] in the overall
@@ -942,7 +843,6 @@ public Builder clearShardCount() {
        * 
* * int64 text_offset = 3; - * * @return The textOffset. */ @java.lang.Override @@ -950,8 +850,6 @@ public long getTextOffset() { return textOffset_; } /** - * - * *
        * The index of the first character in
        * [Document.text][google.cloud.documentai.v1.Document.text] in the overall
@@ -959,19 +857,16 @@ public long getTextOffset() {
        * 
* * int64 text_offset = 3; - * * @param value The textOffset to set. * @return This builder for chaining. */ public Builder setTextOffset(long value) { - + textOffset_ = value; onChanged(); return this; } /** - * - * *
        * The index of the first character in
        * [Document.text][google.cloud.documentai.v1.Document.text] in the overall
@@ -979,16 +874,14 @@ public Builder setTextOffset(long value) {
        * 
* * int64 text_offset = 3; - * * @return This builder for chaining. */ public Builder clearTextOffset() { - + textOffset_ = 0L; onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1001,12 +894,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.documentai.v1.Document.ShardInfo) } // @@protoc_insertion_point(class_scope:google.cloud.documentai.v1.Document.ShardInfo) private static final com.google.cloud.documentai.v1.Document.ShardInfo DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.documentai.v1.Document.ShardInfo(); } @@ -1015,16 +908,16 @@ public static com.google.cloud.documentai.v1.Document.ShardInfo getDefaultInstan return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ShardInfo parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ShardInfo(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ShardInfo parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ShardInfo(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1039,42 +932,34 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.documentai.v1.Document.ShardInfo getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } - public interface StyleOrBuilder - extends + public interface StyleOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.documentai.v1.Document.Style) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * Text anchor indexing into the
      * [Document.text][google.cloud.documentai.v1.Document.text].
      * 
* * .google.cloud.documentai.v1.Document.TextAnchor text_anchor = 1; - * * @return Whether the textAnchor field is set. */ boolean hasTextAnchor(); /** - * - * *
      * Text anchor indexing into the
      * [Document.text][google.cloud.documentai.v1.Document.text].
      * 
* * .google.cloud.documentai.v1.Document.TextAnchor text_anchor = 1; - * * @return The textAnchor. */ com.google.cloud.documentai.v1.Document.TextAnchor getTextAnchor(); /** - * - * *
      * Text anchor indexing into the
      * [Document.text][google.cloud.documentai.v1.Document.text].
@@ -1085,32 +970,24 @@ public interface StyleOrBuilder
     com.google.cloud.documentai.v1.Document.TextAnchorOrBuilder getTextAnchorOrBuilder();
 
     /**
-     *
-     *
      * 
      * Text color.
      * 
* * .google.type.Color color = 2; - * * @return Whether the color field is set. */ boolean hasColor(); /** - * - * *
      * Text color.
      * 
* * .google.type.Color color = 2; - * * @return The color. */ com.google.type.Color getColor(); /** - * - * *
      * Text color.
      * 
@@ -1120,32 +997,24 @@ public interface StyleOrBuilder com.google.type.ColorOrBuilder getColorOrBuilder(); /** - * - * *
      * Text background color.
      * 
* * .google.type.Color background_color = 3; - * * @return Whether the backgroundColor field is set. */ boolean hasBackgroundColor(); /** - * - * *
      * Text background color.
      * 
* * .google.type.Color background_color = 3; - * * @return The backgroundColor. */ com.google.type.Color getBackgroundColor(); /** - * - * *
      * Text background color.
      * 
@@ -1155,62 +1024,50 @@ public interface StyleOrBuilder com.google.type.ColorOrBuilder getBackgroundColorOrBuilder(); /** - * - * *
      * Font weight. Possible values are normal, bold, bolder, and lighter.
      * https://www.w3schools.com/cssref/pr_font_weight.asp
      * 
* * string font_weight = 4; - * * @return The fontWeight. */ java.lang.String getFontWeight(); /** - * - * *
      * Font weight. Possible values are normal, bold, bolder, and lighter.
      * https://www.w3schools.com/cssref/pr_font_weight.asp
      * 
* * string font_weight = 4; - * * @return The bytes for fontWeight. */ - com.google.protobuf.ByteString getFontWeightBytes(); + com.google.protobuf.ByteString + getFontWeightBytes(); /** - * - * *
      * Text style. Possible values are normal, italic, and oblique.
      * https://www.w3schools.com/cssref/pr_font_font-style.asp
      * 
* * string text_style = 5; - * * @return The textStyle. */ java.lang.String getTextStyle(); /** - * - * *
      * Text style. Possible values are normal, italic, and oblique.
      * https://www.w3schools.com/cssref/pr_font_font-style.asp
      * 
* * string text_style = 5; - * * @return The bytes for textStyle. */ - com.google.protobuf.ByteString getTextStyleBytes(); + com.google.protobuf.ByteString + getTextStyleBytes(); /** - * - * *
      * Text decoration. Follows CSS standard.
      * <text-decoration-line> <text-decoration-color> <text-decoration-style>
@@ -1218,13 +1075,10 @@ public interface StyleOrBuilder
      * 
* * string text_decoration = 6; - * * @return The textDecoration. */ java.lang.String getTextDecoration(); /** - * - * *
      * Text decoration. Follows CSS standard.
      * <text-decoration-line> <text-decoration-color> <text-decoration-style>
@@ -1232,38 +1086,30 @@ public interface StyleOrBuilder
      * 
* * string text_decoration = 6; - * * @return The bytes for textDecoration. */ - com.google.protobuf.ByteString getTextDecorationBytes(); + com.google.protobuf.ByteString + getTextDecorationBytes(); /** - * - * *
      * Font size.
      * 
* * .google.cloud.documentai.v1.Document.Style.FontSize font_size = 7; - * * @return Whether the fontSize field is set. */ boolean hasFontSize(); /** - * - * *
      * Font size.
      * 
* * .google.cloud.documentai.v1.Document.Style.FontSize font_size = 7; - * * @return The fontSize. */ com.google.cloud.documentai.v1.Document.Style.FontSize getFontSize(); /** - * - * *
      * Font size.
      * 
@@ -1273,8 +1119,6 @@ public interface StyleOrBuilder com.google.cloud.documentai.v1.Document.Style.FontSizeOrBuilder getFontSizeOrBuilder(); } /** - * - * *
    * Annotation for common text style attributes. This adheres to CSS
    * conventions as much as possible.
@@ -1282,16 +1126,15 @@ public interface StyleOrBuilder
    *
    * Protobuf type {@code google.cloud.documentai.v1.Document.Style}
    */
-  public static final class Style extends com.google.protobuf.GeneratedMessageV3
-      implements
+  public static final class Style extends
+      com.google.protobuf.GeneratedMessageV3 implements
       // @@protoc_insertion_point(message_implements:google.cloud.documentai.v1.Document.Style)
       StyleOrBuilder {
-    private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
     // Use Style.newBuilder() to construct.
     private Style(com.google.protobuf.GeneratedMessageV3.Builder builder) {
       super(builder);
     }
-
     private Style() {
       fontWeight_ = "";
       textStyle_ = "";
@@ -1300,15 +1143,16 @@ private Style() {
 
     @java.lang.Override
     @SuppressWarnings({"unused"})
-    protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+    protected java.lang.Object newInstance(
+        UnusedPrivateParameter unused) {
       return new Style();
     }
 
     @java.lang.Override
-    public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+    public final com.google.protobuf.UnknownFieldSet
+    getUnknownFields() {
       return this.unknownFields;
     }
-
     private Style(
         com.google.protobuf.CodedInputStream input,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -1327,97 +1171,83 @@ private Style(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                com.google.cloud.documentai.v1.Document.TextAnchor.Builder subBuilder = null;
-                if (textAnchor_ != null) {
-                  subBuilder = textAnchor_.toBuilder();
-                }
-                textAnchor_ =
-                    input.readMessage(
-                        com.google.cloud.documentai.v1.Document.TextAnchor.parser(),
-                        extensionRegistry);
-                if (subBuilder != null) {
-                  subBuilder.mergeFrom(textAnchor_);
-                  textAnchor_ = subBuilder.buildPartial();
-                }
-
-                break;
+            case 10: {
+              com.google.cloud.documentai.v1.Document.TextAnchor.Builder subBuilder = null;
+              if (textAnchor_ != null) {
+                subBuilder = textAnchor_.toBuilder();
               }
-            case 18:
-              {
-                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;
+              textAnchor_ = input.readMessage(com.google.cloud.documentai.v1.Document.TextAnchor.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(textAnchor_);
+                textAnchor_ = subBuilder.buildPartial();
               }
-            case 26:
-              {
-                com.google.type.Color.Builder subBuilder = null;
-                if (backgroundColor_ != null) {
-                  subBuilder = backgroundColor_.toBuilder();
-                }
-                backgroundColor_ =
-                    input.readMessage(com.google.type.Color.parser(), extensionRegistry);
-                if (subBuilder != null) {
-                  subBuilder.mergeFrom(backgroundColor_);
-                  backgroundColor_ = subBuilder.buildPartial();
-                }
 
-                break;
+              break;
+            }
+            case 18: {
+              com.google.type.Color.Builder subBuilder = null;
+              if (color_ != null) {
+                subBuilder = color_.toBuilder();
               }
-            case 34:
-              {
-                java.lang.String s = input.readStringRequireUtf8();
-
-                fontWeight_ = s;
-                break;
+              color_ = input.readMessage(com.google.type.Color.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(color_);
+                color_ = subBuilder.buildPartial();
               }
-            case 42:
-              {
-                java.lang.String s = input.readStringRequireUtf8();
 
-                textStyle_ = s;
-                break;
+              break;
+            }
+            case 26: {
+              com.google.type.Color.Builder subBuilder = null;
+              if (backgroundColor_ != null) {
+                subBuilder = backgroundColor_.toBuilder();
               }
-            case 50:
-              {
-                java.lang.String s = input.readStringRequireUtf8();
-
-                textDecoration_ = s;
-                break;
+              backgroundColor_ = input.readMessage(com.google.type.Color.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(backgroundColor_);
+                backgroundColor_ = subBuilder.buildPartial();
               }
-            case 58:
-              {
-                com.google.cloud.documentai.v1.Document.Style.FontSize.Builder subBuilder = null;
-                if (fontSize_ != null) {
-                  subBuilder = fontSize_.toBuilder();
-                }
-                fontSize_ =
-                    input.readMessage(
-                        com.google.cloud.documentai.v1.Document.Style.FontSize.parser(),
-                        extensionRegistry);
-                if (subBuilder != null) {
-                  subBuilder.mergeFrom(fontSize_);
-                  fontSize_ = subBuilder.buildPartial();
-                }
 
-                break;
+              break;
+            }
+            case 34: {
+              java.lang.String s = input.readStringRequireUtf8();
+
+              fontWeight_ = s;
+              break;
+            }
+            case 42: {
+              java.lang.String s = input.readStringRequireUtf8();
+
+              textStyle_ = s;
+              break;
+            }
+            case 50: {
+              java.lang.String s = input.readStringRequireUtf8();
+
+              textDecoration_ = s;
+              break;
+            }
+            case 58: {
+              com.google.cloud.documentai.v1.Document.Style.FontSize.Builder subBuilder = null;
+              if (fontSize_ != null) {
+                subBuilder = fontSize_.toBuilder();
               }
-            default:
-              {
-                if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                  done = true;
-                }
-                break;
+              fontSize_ = input.readMessage(com.google.cloud.documentai.v1.Document.Style.FontSize.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(fontSize_);
+                fontSize_ = subBuilder.buildPartial();
+              }
+
+              break;
+            }
+            default: {
+              if (!parseUnknownField(
+                  input, unknownFields, extensionRegistry, tag)) {
+                done = true;
               }
+              break;
+            }
           }
         }
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -1425,105 +1255,92 @@ private Style(
       } catch (com.google.protobuf.UninitializedMessageException e) {
         throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
       } catch (java.io.IOException e) {
-        throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+        throw new com.google.protobuf.InvalidProtocolBufferException(
+            e).setUnfinishedMessage(this);
       } finally {
         this.unknownFields = unknownFields.build();
         makeExtensionsImmutable();
       }
     }
-
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.documentai.v1.DocumentProto
-          .internal_static_google_cloud_documentai_v1_Document_Style_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.documentai.v1.DocumentProto.internal_static_google_cloud_documentai_v1_Document_Style_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.documentai.v1.DocumentProto
-          .internal_static_google_cloud_documentai_v1_Document_Style_fieldAccessorTable
+      return com.google.cloud.documentai.v1.DocumentProto.internal_static_google_cloud_documentai_v1_Document_Style_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.documentai.v1.Document.Style.class,
-              com.google.cloud.documentai.v1.Document.Style.Builder.class);
+              com.google.cloud.documentai.v1.Document.Style.class, com.google.cloud.documentai.v1.Document.Style.Builder.class);
     }
 
-    public interface FontSizeOrBuilder
-        extends
+    public interface FontSizeOrBuilder extends
         // @@protoc_insertion_point(interface_extends:google.cloud.documentai.v1.Document.Style.FontSize)
         com.google.protobuf.MessageOrBuilder {
 
       /**
-       *
-       *
        * 
        * Font size for the text.
        * 
* * float size = 1; - * * @return The size. */ float getSize(); /** - * - * *
        * Unit for the font size. Follows CSS naming (in, px, pt, etc.).
        * 
* * string unit = 2; - * * @return The unit. */ java.lang.String getUnit(); /** - * - * *
        * Unit for the font size. Follows CSS naming (in, px, pt, etc.).
        * 
* * string unit = 2; - * * @return The bytes for unit. */ - com.google.protobuf.ByteString getUnitBytes(); + com.google.protobuf.ByteString + getUnitBytes(); } /** - * - * *
      * Font size with unit.
      * 
* * Protobuf type {@code google.cloud.documentai.v1.Document.Style.FontSize} */ - public static final class FontSize extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class FontSize extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.documentai.v1.Document.Style.FontSize) FontSizeOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use FontSize.newBuilder() to construct. private FontSize(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private FontSize() { unit_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new FontSize(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private FontSize( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -1542,25 +1359,24 @@ private FontSize( case 0: done = true; break; - case 13: - { - size_ = input.readFloat(); - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + case 13: { - unit_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + size_ = input.readFloat(); + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + unit_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1568,40 +1384,34 @@ private FontSize( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.documentai.v1.DocumentProto - .internal_static_google_cloud_documentai_v1_Document_Style_FontSize_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.documentai.v1.DocumentProto.internal_static_google_cloud_documentai_v1_Document_Style_FontSize_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.documentai.v1.DocumentProto - .internal_static_google_cloud_documentai_v1_Document_Style_FontSize_fieldAccessorTable + return com.google.cloud.documentai.v1.DocumentProto.internal_static_google_cloud_documentai_v1_Document_Style_FontSize_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.documentai.v1.Document.Style.FontSize.class, - com.google.cloud.documentai.v1.Document.Style.FontSize.Builder.class); + com.google.cloud.documentai.v1.Document.Style.FontSize.class, com.google.cloud.documentai.v1.Document.Style.FontSize.Builder.class); } public static final int SIZE_FIELD_NUMBER = 1; private float size_; /** - * - * *
        * Font size for the text.
        * 
* * float size = 1; - * * @return The size. */ @java.lang.Override @@ -1612,14 +1422,11 @@ public float getSize() { public static final int UNIT_FIELD_NUMBER = 2; private volatile java.lang.Object unit_; /** - * - * *
        * Unit for the font size. Follows CSS naming (in, px, pt, etc.).
        * 
* * string unit = 2; - * * @return The unit. */ @java.lang.Override @@ -1628,29 +1435,29 @@ public java.lang.String getUnit() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); unit_ = s; return s; } } /** - * - * *
        * Unit for the font size. Follows CSS naming (in, px, pt, etc.).
        * 
* * string unit = 2; - * * @return The bytes for unit. */ @java.lang.Override - public com.google.protobuf.ByteString getUnitBytes() { + public com.google.protobuf.ByteString + getUnitBytes() { java.lang.Object ref = unit_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); unit_ = b; return b; } else { @@ -1659,7 +1466,6 @@ public com.google.protobuf.ByteString getUnitBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1671,7 +1477,8 @@ public final boolean isInitialized() { } @java.lang.Override - public 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(size_) != 0) { output.writeFloat(1, size_); } @@ -1688,7 +1495,8 @@ public int getSerializedSize() { size = 0; if (java.lang.Float.floatToRawIntBits(size_) != 0) { - size += com.google.protobuf.CodedOutputStream.computeFloatSize(1, size_); + size += com.google.protobuf.CodedOutputStream + .computeFloatSize(1, size_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(unit_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, unit_); @@ -1701,17 +1509,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.documentai.v1.Document.Style.FontSize)) { return super.equals(obj); } - com.google.cloud.documentai.v1.Document.Style.FontSize other = - (com.google.cloud.documentai.v1.Document.Style.FontSize) obj; + com.google.cloud.documentai.v1.Document.Style.FontSize other = (com.google.cloud.documentai.v1.Document.Style.FontSize) obj; if (java.lang.Float.floatToIntBits(getSize()) - != java.lang.Float.floatToIntBits(other.getSize())) return false; - if (!getUnit().equals(other.getUnit())) return false; + != java.lang.Float.floatToIntBits( + other.getSize())) return false; + if (!getUnit() + .equals(other.getUnit())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -1724,7 +1533,8 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + SIZE_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits(getSize()); + hash = (53 * hash) + java.lang.Float.floatToIntBits( + getSize()); hash = (37 * hash) + UNIT_FIELD_NUMBER; hash = (53 * hash) + getUnit().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); @@ -1733,94 +1543,87 @@ public int hashCode() { } public static com.google.cloud.documentai.v1.Document.Style.FontSize parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.documentai.v1.Document.Style.FontSize parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.documentai.v1.Document.Style.FontSize parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.documentai.v1.Document.Style.FontSize parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.documentai.v1.Document.Style.FontSize parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.documentai.v1.Document.Style.FontSize parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.documentai.v1.Document.Style.FontSize parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.documentai.v1.Document.Style.FontSize parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.documentai.v1.Document.Style.FontSize parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.documentai.v1.Document.Style.FontSize parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.documentai.v1.Document.Style.FontSize parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.documentai.v1.Document.Style.FontSize parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.documentai.v1.Document.Style.FontSize parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.documentai.v1.Document.Style.FontSize parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.documentai.v1.Document.Style.FontSize prototype) { + public static Builder newBuilder(com.google.cloud.documentai.v1.Document.Style.FontSize prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -1830,32 +1633,27 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
        * Font size with unit.
        * 
* * Protobuf type {@code google.cloud.documentai.v1.Document.Style.FontSize} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.documentai.v1.Document.Style.FontSize) com.google.cloud.documentai.v1.Document.Style.FontSizeOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.documentai.v1.DocumentProto - .internal_static_google_cloud_documentai_v1_Document_Style_FontSize_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.documentai.v1.DocumentProto.internal_static_google_cloud_documentai_v1_Document_Style_FontSize_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.documentai.v1.DocumentProto - .internal_static_google_cloud_documentai_v1_Document_Style_FontSize_fieldAccessorTable + return com.google.cloud.documentai.v1.DocumentProto.internal_static_google_cloud_documentai_v1_Document_Style_FontSize_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.documentai.v1.Document.Style.FontSize.class, - com.google.cloud.documentai.v1.Document.Style.FontSize.Builder.class); + com.google.cloud.documentai.v1.Document.Style.FontSize.class, com.google.cloud.documentai.v1.Document.Style.FontSize.Builder.class); } // Construct using com.google.cloud.documentai.v1.Document.Style.FontSize.newBuilder() @@ -1863,15 +1661,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(); @@ -1883,9 +1682,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.documentai.v1.DocumentProto - .internal_static_google_cloud_documentai_v1_Document_Style_FontSize_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.documentai.v1.DocumentProto.internal_static_google_cloud_documentai_v1_Document_Style_FontSize_descriptor; } @java.lang.Override @@ -1904,8 +1703,7 @@ public com.google.cloud.documentai.v1.Document.Style.FontSize build() { @java.lang.Override public com.google.cloud.documentai.v1.Document.Style.FontSize buildPartial() { - com.google.cloud.documentai.v1.Document.Style.FontSize result = - new com.google.cloud.documentai.v1.Document.Style.FontSize(this); + com.google.cloud.documentai.v1.Document.Style.FontSize result = new com.google.cloud.documentai.v1.Document.Style.FontSize(this); result.size_ = size_; result.unit_ = unit_; onBuilt(); @@ -1916,41 +1714,38 @@ public com.google.cloud.documentai.v1.Document.Style.FontSize buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.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.documentai.v1.Document.Style.FontSize) { - return mergeFrom((com.google.cloud.documentai.v1.Document.Style.FontSize) other); + return mergeFrom((com.google.cloud.documentai.v1.Document.Style.FontSize)other); } else { super.mergeFrom(other); return this; @@ -1958,8 +1753,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.documentai.v1.Document.Style.FontSize other) { - if (other == com.google.cloud.documentai.v1.Document.Style.FontSize.getDefaultInstance()) - return this; + if (other == com.google.cloud.documentai.v1.Document.Style.FontSize.getDefaultInstance()) return this; if (other.getSize() != 0F) { setSize(other.getSize()); } @@ -1986,8 +1780,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.documentai.v1.Document.Style.FontSize) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.documentai.v1.Document.Style.FontSize) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -1997,16 +1790,13 @@ public Builder mergeFrom( return this; } - private float size_; + private float size_ ; /** - * - * *
          * Font size for the text.
          * 
* * float size = 1; - * * @return The size. */ @java.lang.Override @@ -2014,36 +1804,30 @@ public float getSize() { return size_; } /** - * - * *
          * Font size for the text.
          * 
* * float size = 1; - * * @param value The size to set. * @return This builder for chaining. */ public Builder setSize(float value) { - + size_ = value; onChanged(); return this; } /** - * - * *
          * Font size for the text.
          * 
* * float size = 1; - * * @return This builder for chaining. */ public Builder clearSize() { - + size_ = 0F; onChanged(); return this; @@ -2051,20 +1835,18 @@ public Builder clearSize() { private java.lang.Object unit_ = ""; /** - * - * *
          * Unit for the font size. Follows CSS naming (in, px, pt, etc.).
          * 
* * string unit = 2; - * * @return The unit. */ public java.lang.String getUnit() { java.lang.Object ref = unit_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); unit_ = s; return s; @@ -2073,21 +1855,20 @@ public java.lang.String getUnit() { } } /** - * - * *
          * Unit for the font size. Follows CSS naming (in, px, pt, etc.).
          * 
* * string unit = 2; - * * @return The bytes for unit. */ - public com.google.protobuf.ByteString getUnitBytes() { + public com.google.protobuf.ByteString + getUnitBytes() { java.lang.Object ref = unit_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); unit_ = b; return b; } else { @@ -2095,66 +1876,58 @@ public com.google.protobuf.ByteString getUnitBytes() { } } /** - * - * *
          * Unit for the font size. Follows CSS naming (in, px, pt, etc.).
          * 
* * string unit = 2; - * * @param value The unit to set. * @return This builder for chaining. */ - public Builder setUnit(java.lang.String value) { + public Builder setUnit( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + unit_ = value; onChanged(); return this; } /** - * - * *
          * Unit for the font size. Follows CSS naming (in, px, pt, etc.).
          * 
* * string unit = 2; - * * @return This builder for chaining. */ public Builder clearUnit() { - + unit_ = getDefaultInstance().getUnit(); onChanged(); return this; } /** - * - * *
          * Unit for the font size. Follows CSS naming (in, px, pt, etc.).
          * 
* * string unit = 2; - * * @param value The bytes for unit to set. * @return This builder for chaining. */ - public Builder setUnitBytes(com.google.protobuf.ByteString value) { + public Builder setUnitBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + unit_ = value; onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -2167,12 +1940,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.documentai.v1.Document.Style.FontSize) } // @@protoc_insertion_point(class_scope:google.cloud.documentai.v1.Document.Style.FontSize) private static final com.google.cloud.documentai.v1.Document.Style.FontSize DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.documentai.v1.Document.Style.FontSize(); } @@ -2181,16 +1954,16 @@ public static com.google.cloud.documentai.v1.Document.Style.FontSize getDefaultI return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public FontSize parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new FontSize(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FontSize parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new FontSize(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2205,20 +1978,18 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.documentai.v1.Document.Style.FontSize getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } public static final int TEXT_ANCHOR_FIELD_NUMBER = 1; private com.google.cloud.documentai.v1.Document.TextAnchor textAnchor_; /** - * - * *
      * Text anchor indexing into the
      * [Document.text][google.cloud.documentai.v1.Document.text].
      * 
* * .google.cloud.documentai.v1.Document.TextAnchor text_anchor = 1; - * * @return Whether the textAnchor field is set. */ @java.lang.Override @@ -2226,26 +1997,19 @@ public boolean hasTextAnchor() { return textAnchor_ != null; } /** - * - * *
      * Text anchor indexing into the
      * [Document.text][google.cloud.documentai.v1.Document.text].
      * 
* * .google.cloud.documentai.v1.Document.TextAnchor text_anchor = 1; - * * @return The textAnchor. */ @java.lang.Override public com.google.cloud.documentai.v1.Document.TextAnchor getTextAnchor() { - return textAnchor_ == null - ? com.google.cloud.documentai.v1.Document.TextAnchor.getDefaultInstance() - : textAnchor_; + return textAnchor_ == null ? com.google.cloud.documentai.v1.Document.TextAnchor.getDefaultInstance() : textAnchor_; } /** - * - * *
      * Text anchor indexing into the
      * [Document.text][google.cloud.documentai.v1.Document.text].
@@ -2261,14 +2025,11 @@ public com.google.cloud.documentai.v1.Document.TextAnchorOrBuilder getTextAnchor
     public static final int COLOR_FIELD_NUMBER = 2;
     private com.google.type.Color color_;
     /**
-     *
-     *
      * 
      * Text color.
      * 
* * .google.type.Color color = 2; - * * @return Whether the color field is set. */ @java.lang.Override @@ -2276,14 +2037,11 @@ public boolean hasColor() { return color_ != null; } /** - * - * *
      * Text color.
      * 
* * .google.type.Color color = 2; - * * @return The color. */ @java.lang.Override @@ -2291,8 +2049,6 @@ public com.google.type.Color getColor() { return color_ == null ? com.google.type.Color.getDefaultInstance() : color_; } /** - * - * *
      * Text color.
      * 
@@ -2307,14 +2063,11 @@ public com.google.type.ColorOrBuilder getColorOrBuilder() { public static final int BACKGROUND_COLOR_FIELD_NUMBER = 3; private com.google.type.Color backgroundColor_; /** - * - * *
      * Text background color.
      * 
* * .google.type.Color background_color = 3; - * * @return Whether the backgroundColor field is set. */ @java.lang.Override @@ -2322,25 +2075,18 @@ public boolean hasBackgroundColor() { return backgroundColor_ != null; } /** - * - * *
      * Text background color.
      * 
* * .google.type.Color background_color = 3; - * * @return The backgroundColor. */ @java.lang.Override public com.google.type.Color getBackgroundColor() { - return backgroundColor_ == null - ? com.google.type.Color.getDefaultInstance() - : backgroundColor_; + return backgroundColor_ == null ? com.google.type.Color.getDefaultInstance() : backgroundColor_; } /** - * - * *
      * Text background color.
      * 
@@ -2355,15 +2101,12 @@ public com.google.type.ColorOrBuilder getBackgroundColorOrBuilder() { public static final int FONT_WEIGHT_FIELD_NUMBER = 4; private volatile java.lang.Object fontWeight_; /** - * - * *
      * Font weight. Possible values are normal, bold, bolder, and lighter.
      * https://www.w3schools.com/cssref/pr_font_weight.asp
      * 
* * string font_weight = 4; - * * @return The fontWeight. */ @java.lang.Override @@ -2372,30 +2115,30 @@ public java.lang.String getFontWeight() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); fontWeight_ = s; return s; } } /** - * - * *
      * Font weight. Possible values are normal, bold, bolder, and lighter.
      * https://www.w3schools.com/cssref/pr_font_weight.asp
      * 
* * string font_weight = 4; - * * @return The bytes for fontWeight. */ @java.lang.Override - public com.google.protobuf.ByteString getFontWeightBytes() { + public com.google.protobuf.ByteString + getFontWeightBytes() { java.lang.Object ref = fontWeight_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); fontWeight_ = b; return b; } else { @@ -2406,15 +2149,12 @@ public com.google.protobuf.ByteString getFontWeightBytes() { public static final int TEXT_STYLE_FIELD_NUMBER = 5; private volatile java.lang.Object textStyle_; /** - * - * *
      * Text style. Possible values are normal, italic, and oblique.
      * https://www.w3schools.com/cssref/pr_font_font-style.asp
      * 
* * string text_style = 5; - * * @return The textStyle. */ @java.lang.Override @@ -2423,30 +2163,30 @@ public java.lang.String getTextStyle() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); textStyle_ = s; return s; } } /** - * - * *
      * Text style. Possible values are normal, italic, and oblique.
      * https://www.w3schools.com/cssref/pr_font_font-style.asp
      * 
* * string text_style = 5; - * * @return The bytes for textStyle. */ @java.lang.Override - public com.google.protobuf.ByteString getTextStyleBytes() { + public com.google.protobuf.ByteString + getTextStyleBytes() { java.lang.Object ref = textStyle_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); textStyle_ = b; return b; } else { @@ -2457,8 +2197,6 @@ public com.google.protobuf.ByteString getTextStyleBytes() { public static final int TEXT_DECORATION_FIELD_NUMBER = 6; private volatile java.lang.Object textDecoration_; /** - * - * *
      * Text decoration. Follows CSS standard.
      * <text-decoration-line> <text-decoration-color> <text-decoration-style>
@@ -2466,7 +2204,6 @@ public com.google.protobuf.ByteString getTextStyleBytes() {
      * 
* * string text_decoration = 6; - * * @return The textDecoration. */ @java.lang.Override @@ -2475,15 +2212,14 @@ public java.lang.String getTextDecoration() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); textDecoration_ = s; return s; } } /** - * - * *
      * Text decoration. Follows CSS standard.
      * <text-decoration-line> <text-decoration-color> <text-decoration-style>
@@ -2491,15 +2227,16 @@ public java.lang.String getTextDecoration() {
      * 
* * string text_decoration = 6; - * * @return The bytes for textDecoration. */ @java.lang.Override - public com.google.protobuf.ByteString getTextDecorationBytes() { + public com.google.protobuf.ByteString + getTextDecorationBytes() { java.lang.Object ref = textDecoration_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); textDecoration_ = b; return b; } else { @@ -2510,14 +2247,11 @@ public com.google.protobuf.ByteString getTextDecorationBytes() { public static final int FONT_SIZE_FIELD_NUMBER = 7; private com.google.cloud.documentai.v1.Document.Style.FontSize fontSize_; /** - * - * *
      * Font size.
      * 
* * .google.cloud.documentai.v1.Document.Style.FontSize font_size = 7; - * * @return Whether the fontSize field is set. */ @java.lang.Override @@ -2525,25 +2259,18 @@ public boolean hasFontSize() { return fontSize_ != null; } /** - * - * *
      * Font size.
      * 
* * .google.cloud.documentai.v1.Document.Style.FontSize font_size = 7; - * * @return The fontSize. */ @java.lang.Override public com.google.cloud.documentai.v1.Document.Style.FontSize getFontSize() { - return fontSize_ == null - ? com.google.cloud.documentai.v1.Document.Style.FontSize.getDefaultInstance() - : fontSize_; + return fontSize_ == null ? com.google.cloud.documentai.v1.Document.Style.FontSize.getDefaultInstance() : fontSize_; } /** - * - * *
      * Font size.
      * 
@@ -2556,7 +2283,6 @@ public com.google.cloud.documentai.v1.Document.Style.FontSizeOrBuilder getFontSi } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -2568,7 +2294,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (textAnchor_ != null) { output.writeMessage(1, getTextAnchor()); } @@ -2600,13 +2327,16 @@ public int getSerializedSize() { size = 0; if (textAnchor_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getTextAnchor()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getTextAnchor()); } if (color_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getColor()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getColor()); } if (backgroundColor_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getBackgroundColor()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getBackgroundColor()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(fontWeight_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, fontWeight_); @@ -2618,7 +2348,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, textDecoration_); } if (fontSize_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getFontSize()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(7, getFontSize()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -2628,32 +2359,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.documentai.v1.Document.Style)) { return super.equals(obj); } - com.google.cloud.documentai.v1.Document.Style other = - (com.google.cloud.documentai.v1.Document.Style) obj; + com.google.cloud.documentai.v1.Document.Style other = (com.google.cloud.documentai.v1.Document.Style) obj; if (hasTextAnchor() != other.hasTextAnchor()) return false; if (hasTextAnchor()) { - if (!getTextAnchor().equals(other.getTextAnchor())) return false; + if (!getTextAnchor() + .equals(other.getTextAnchor())) return false; } if (hasColor() != other.hasColor()) return false; if (hasColor()) { - if (!getColor().equals(other.getColor())) return false; + if (!getColor() + .equals(other.getColor())) return false; } if (hasBackgroundColor() != other.hasBackgroundColor()) return false; if (hasBackgroundColor()) { - if (!getBackgroundColor().equals(other.getBackgroundColor())) return false; - } - if (!getFontWeight().equals(other.getFontWeight())) return false; - if (!getTextStyle().equals(other.getTextStyle())) return false; - if (!getTextDecoration().equals(other.getTextDecoration())) return false; + if (!getBackgroundColor() + .equals(other.getBackgroundColor())) return false; + } + if (!getFontWeight() + .equals(other.getFontWeight())) return false; + if (!getTextStyle() + .equals(other.getTextStyle())) return false; + if (!getTextDecoration() + .equals(other.getTextDecoration())) return false; if (hasFontSize() != other.hasFontSize()) return false; if (hasFontSize()) { - if (!getFontSize().equals(other.getFontSize())) return false; + if (!getFontSize() + .equals(other.getFontSize())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -2693,94 +2430,88 @@ public int hashCode() { return hash; } - public static com.google.cloud.documentai.v1.Document.Style parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.documentai.v1.Document.Style parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.documentai.v1.Document.Style parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.documentai.v1.Document.Style parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.documentai.v1.Document.Style parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.documentai.v1.Document.Style parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.documentai.v1.Document.Style parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.documentai.v1.Document.Style parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.documentai.v1.Document.Style parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.documentai.v1.Document.Style parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.documentai.v1.Document.Style parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.documentai.v1.Document.Style parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.documentai.v1.Document.Style parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.documentai.v1.Document.Style parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.documentai.v1.Document.Style prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -2790,8 +2521,6 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * Annotation for common text style attributes. This adheres to CSS
      * conventions as much as possible.
@@ -2799,24 +2528,21 @@ protected Builder newBuilderForType(
      *
      * Protobuf type {@code google.cloud.documentai.v1.Document.Style}
      */
-    public static final class Builder
-        extends com.google.protobuf.GeneratedMessageV3.Builder
-        implements
+    public static final class Builder extends
+        com.google.protobuf.GeneratedMessageV3.Builder implements
         // @@protoc_insertion_point(builder_implements:google.cloud.documentai.v1.Document.Style)
         com.google.cloud.documentai.v1.Document.StyleOrBuilder {
-      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-        return com.google.cloud.documentai.v1.DocumentProto
-            .internal_static_google_cloud_documentai_v1_Document_Style_descriptor;
+      public static final com.google.protobuf.Descriptors.Descriptor
+          getDescriptor() {
+        return com.google.cloud.documentai.v1.DocumentProto.internal_static_google_cloud_documentai_v1_Document_Style_descriptor;
       }
 
       @java.lang.Override
       protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internalGetFieldAccessorTable() {
-        return com.google.cloud.documentai.v1.DocumentProto
-            .internal_static_google_cloud_documentai_v1_Document_Style_fieldAccessorTable
+        return com.google.cloud.documentai.v1.DocumentProto.internal_static_google_cloud_documentai_v1_Document_Style_fieldAccessorTable
             .ensureFieldAccessorsInitialized(
-                com.google.cloud.documentai.v1.Document.Style.class,
-                com.google.cloud.documentai.v1.Document.Style.Builder.class);
+                com.google.cloud.documentai.v1.Document.Style.class, com.google.cloud.documentai.v1.Document.Style.Builder.class);
       }
 
       // Construct using com.google.cloud.documentai.v1.Document.Style.newBuilder()
@@ -2824,15 +2550,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();
@@ -2870,9 +2597,9 @@ public Builder clear() {
       }
 
       @java.lang.Override
-      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-        return com.google.cloud.documentai.v1.DocumentProto
-            .internal_static_google_cloud_documentai_v1_Document_Style_descriptor;
+      public com.google.protobuf.Descriptors.Descriptor
+          getDescriptorForType() {
+        return com.google.cloud.documentai.v1.DocumentProto.internal_static_google_cloud_documentai_v1_Document_Style_descriptor;
       }
 
       @java.lang.Override
@@ -2891,8 +2618,7 @@ public com.google.cloud.documentai.v1.Document.Style build() {
 
       @java.lang.Override
       public com.google.cloud.documentai.v1.Document.Style buildPartial() {
-        com.google.cloud.documentai.v1.Document.Style result =
-            new com.google.cloud.documentai.v1.Document.Style(this);
+        com.google.cloud.documentai.v1.Document.Style result = new com.google.cloud.documentai.v1.Document.Style(this);
         if (textAnchorBuilder_ == null) {
           result.textAnchor_ = textAnchor_;
         } else {
@@ -2924,41 +2650,38 @@ public com.google.cloud.documentai.v1.Document.Style buildPartial() {
       public Builder clone() {
         return super.clone();
       }
-
       @java.lang.Override
       public Builder setField(
-          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+          com.google.protobuf.Descriptors.FieldDescriptor field,
+          java.lang.Object value) {
         return super.setField(field, value);
       }
-
       @java.lang.Override
-      public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+      public Builder clearField(
+          com.google.protobuf.Descriptors.FieldDescriptor field) {
         return super.clearField(field);
       }
-
       @java.lang.Override
-      public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+      public Builder clearOneof(
+          com.google.protobuf.Descriptors.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.documentai.v1.Document.Style) {
-          return mergeFrom((com.google.cloud.documentai.v1.Document.Style) other);
+          return mergeFrom((com.google.cloud.documentai.v1.Document.Style)other);
         } else {
           super.mergeFrom(other);
           return this;
@@ -2966,8 +2689,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
       }
 
       public Builder mergeFrom(com.google.cloud.documentai.v1.Document.Style other) {
-        if (other == com.google.cloud.documentai.v1.Document.Style.getDefaultInstance())
-          return this;
+        if (other == com.google.cloud.documentai.v1.Document.Style.getDefaultInstance()) return this;
         if (other.hasTextAnchor()) {
           mergeTextAnchor(other.getTextAnchor());
         }
@@ -3023,49 +2745,36 @@ public Builder mergeFrom(
 
       private com.google.cloud.documentai.v1.Document.TextAnchor textAnchor_;
       private com.google.protobuf.SingleFieldBuilderV3<
-              com.google.cloud.documentai.v1.Document.TextAnchor,
-              com.google.cloud.documentai.v1.Document.TextAnchor.Builder,
-              com.google.cloud.documentai.v1.Document.TextAnchorOrBuilder>
-          textAnchorBuilder_;
+          com.google.cloud.documentai.v1.Document.TextAnchor, com.google.cloud.documentai.v1.Document.TextAnchor.Builder, com.google.cloud.documentai.v1.Document.TextAnchorOrBuilder> textAnchorBuilder_;
       /**
-       *
-       *
        * 
        * Text anchor indexing into the
        * [Document.text][google.cloud.documentai.v1.Document.text].
        * 
* * .google.cloud.documentai.v1.Document.TextAnchor text_anchor = 1; - * * @return Whether the textAnchor field is set. */ public boolean hasTextAnchor() { return textAnchorBuilder_ != null || textAnchor_ != null; } /** - * - * *
        * Text anchor indexing into the
        * [Document.text][google.cloud.documentai.v1.Document.text].
        * 
* * .google.cloud.documentai.v1.Document.TextAnchor text_anchor = 1; - * * @return The textAnchor. */ public com.google.cloud.documentai.v1.Document.TextAnchor getTextAnchor() { if (textAnchorBuilder_ == null) { - return textAnchor_ == null - ? com.google.cloud.documentai.v1.Document.TextAnchor.getDefaultInstance() - : textAnchor_; + return textAnchor_ == null ? com.google.cloud.documentai.v1.Document.TextAnchor.getDefaultInstance() : textAnchor_; } else { return textAnchorBuilder_.getMessage(); } } /** - * - * *
        * Text anchor indexing into the
        * [Document.text][google.cloud.documentai.v1.Document.text].
@@ -3087,8 +2796,6 @@ public Builder setTextAnchor(com.google.cloud.documentai.v1.Document.TextAnchor
         return this;
       }
       /**
-       *
-       *
        * 
        * Text anchor indexing into the
        * [Document.text][google.cloud.documentai.v1.Document.text].
@@ -3108,8 +2815,6 @@ public Builder setTextAnchor(
         return this;
       }
       /**
-       *
-       *
        * 
        * Text anchor indexing into the
        * [Document.text][google.cloud.documentai.v1.Document.text].
@@ -3121,9 +2826,7 @@ public Builder mergeTextAnchor(com.google.cloud.documentai.v1.Document.TextAncho
         if (textAnchorBuilder_ == null) {
           if (textAnchor_ != null) {
             textAnchor_ =
-                com.google.cloud.documentai.v1.Document.TextAnchor.newBuilder(textAnchor_)
-                    .mergeFrom(value)
-                    .buildPartial();
+              com.google.cloud.documentai.v1.Document.TextAnchor.newBuilder(textAnchor_).mergeFrom(value).buildPartial();
           } else {
             textAnchor_ = value;
           }
@@ -3135,8 +2838,6 @@ public Builder mergeTextAnchor(com.google.cloud.documentai.v1.Document.TextAncho
         return this;
       }
       /**
-       *
-       *
        * 
        * Text anchor indexing into the
        * [Document.text][google.cloud.documentai.v1.Document.text].
@@ -3156,8 +2857,6 @@ public Builder clearTextAnchor() {
         return this;
       }
       /**
-       *
-       *
        * 
        * Text anchor indexing into the
        * [Document.text][google.cloud.documentai.v1.Document.text].
@@ -3166,13 +2865,11 @@ public Builder clearTextAnchor() {
        * .google.cloud.documentai.v1.Document.TextAnchor text_anchor = 1;
        */
       public com.google.cloud.documentai.v1.Document.TextAnchor.Builder getTextAnchorBuilder() {
-
+        
         onChanged();
         return getTextAnchorFieldBuilder().getBuilder();
       }
       /**
-       *
-       *
        * 
        * Text anchor indexing into the
        * [Document.text][google.cloud.documentai.v1.Document.text].
@@ -3184,14 +2881,11 @@ public com.google.cloud.documentai.v1.Document.TextAnchorOrBuilder getTextAnchor
         if (textAnchorBuilder_ != null) {
           return textAnchorBuilder_.getMessageOrBuilder();
         } else {
-          return textAnchor_ == null
-              ? com.google.cloud.documentai.v1.Document.TextAnchor.getDefaultInstance()
-              : textAnchor_;
+          return textAnchor_ == null ?
+              com.google.cloud.documentai.v1.Document.TextAnchor.getDefaultInstance() : textAnchor_;
         }
       }
       /**
-       *
-       *
        * 
        * Text anchor indexing into the
        * [Document.text][google.cloud.documentai.v1.Document.text].
@@ -3200,17 +2894,14 @@ public com.google.cloud.documentai.v1.Document.TextAnchorOrBuilder getTextAnchor
        * .google.cloud.documentai.v1.Document.TextAnchor text_anchor = 1;
        */
       private com.google.protobuf.SingleFieldBuilderV3<
-              com.google.cloud.documentai.v1.Document.TextAnchor,
-              com.google.cloud.documentai.v1.Document.TextAnchor.Builder,
-              com.google.cloud.documentai.v1.Document.TextAnchorOrBuilder>
+          com.google.cloud.documentai.v1.Document.TextAnchor, com.google.cloud.documentai.v1.Document.TextAnchor.Builder, com.google.cloud.documentai.v1.Document.TextAnchorOrBuilder> 
           getTextAnchorFieldBuilder() {
         if (textAnchorBuilder_ == null) {
-          textAnchorBuilder_ =
-              new com.google.protobuf.SingleFieldBuilderV3<
-                  com.google.cloud.documentai.v1.Document.TextAnchor,
-                  com.google.cloud.documentai.v1.Document.TextAnchor.Builder,
-                  com.google.cloud.documentai.v1.Document.TextAnchorOrBuilder>(
-                  getTextAnchor(), getParentForChildren(), isClean());
+          textAnchorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+              com.google.cloud.documentai.v1.Document.TextAnchor, com.google.cloud.documentai.v1.Document.TextAnchor.Builder, com.google.cloud.documentai.v1.Document.TextAnchorOrBuilder>(
+                  getTextAnchor(),
+                  getParentForChildren(),
+                  isClean());
           textAnchor_ = null;
         }
         return textAnchorBuilder_;
@@ -3218,31 +2909,24 @@ public com.google.cloud.documentai.v1.Document.TextAnchorOrBuilder getTextAnchor
 
       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_;
       /**
-       *
-       *
        * 
        * Text color.
        * 
* * .google.type.Color color = 2; - * * @return Whether the color field is set. */ public boolean hasColor() { return colorBuilder_ != null || color_ != null; } /** - * - * *
        * Text color.
        * 
* * .google.type.Color color = 2; - * * @return The color. */ public com.google.type.Color getColor() { @@ -3253,8 +2937,6 @@ public com.google.type.Color getColor() { } } /** - * - * *
        * Text color.
        * 
@@ -3275,15 +2957,14 @@ public Builder setColor(com.google.type.Color value) { return this; } /** - * - * *
        * Text color.
        * 
* * .google.type.Color color = 2; */ - 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(); @@ -3294,8 +2975,6 @@ public Builder setColor(com.google.type.Color.Builder builderForValue) { return this; } /** - * - * *
        * Text color.
        * 
@@ -3305,7 +2984,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; } @@ -3317,8 +2997,6 @@ public Builder mergeColor(com.google.type.Color value) { return this; } /** - * - * *
        * Text color.
        * 
@@ -3337,8 +3015,6 @@ public Builder clearColor() { return this; } /** - * - * *
        * Text color.
        * 
@@ -3346,13 +3022,11 @@ public Builder clearColor() { * .google.type.Color color = 2; */ public com.google.type.Color.Builder getColorBuilder() { - + onChanged(); return getColorFieldBuilder().getBuilder(); } /** - * - * *
        * Text color.
        * 
@@ -3363,12 +3037,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_; } } /** - * - * *
        * Text color.
        * 
@@ -3376,14 +3049,14 @@ public com.google.type.ColorOrBuilder getColorOrBuilder() { * .google.type.Color color = 2; */ 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_; @@ -3391,45 +3064,34 @@ public com.google.type.ColorOrBuilder getColorOrBuilder() { private com.google.type.Color backgroundColor_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.type.Color, com.google.type.Color.Builder, com.google.type.ColorOrBuilder> - backgroundColorBuilder_; + com.google.type.Color, com.google.type.Color.Builder, com.google.type.ColorOrBuilder> backgroundColorBuilder_; /** - * - * *
        * Text background color.
        * 
* * .google.type.Color background_color = 3; - * * @return Whether the backgroundColor field is set. */ public boolean hasBackgroundColor() { return backgroundColorBuilder_ != null || backgroundColor_ != null; } /** - * - * *
        * Text background color.
        * 
* * .google.type.Color background_color = 3; - * * @return The backgroundColor. */ public com.google.type.Color getBackgroundColor() { if (backgroundColorBuilder_ == null) { - return backgroundColor_ == null - ? com.google.type.Color.getDefaultInstance() - : backgroundColor_; + return backgroundColor_ == null ? com.google.type.Color.getDefaultInstance() : backgroundColor_; } else { return backgroundColorBuilder_.getMessage(); } } /** - * - * *
        * Text background color.
        * 
@@ -3450,15 +3112,14 @@ public Builder setBackgroundColor(com.google.type.Color value) { return this; } /** - * - * *
        * Text background color.
        * 
* * .google.type.Color background_color = 3; */ - public Builder setBackgroundColor(com.google.type.Color.Builder builderForValue) { + public Builder setBackgroundColor( + com.google.type.Color.Builder builderForValue) { if (backgroundColorBuilder_ == null) { backgroundColor_ = builderForValue.build(); onChanged(); @@ -3469,8 +3130,6 @@ public Builder setBackgroundColor(com.google.type.Color.Builder builderForValue) return this; } /** - * - * *
        * Text background color.
        * 
@@ -3481,7 +3140,7 @@ public Builder mergeBackgroundColor(com.google.type.Color value) { if (backgroundColorBuilder_ == null) { if (backgroundColor_ != null) { backgroundColor_ = - com.google.type.Color.newBuilder(backgroundColor_).mergeFrom(value).buildPartial(); + com.google.type.Color.newBuilder(backgroundColor_).mergeFrom(value).buildPartial(); } else { backgroundColor_ = value; } @@ -3493,8 +3152,6 @@ public Builder mergeBackgroundColor(com.google.type.Color value) { return this; } /** - * - * *
        * Text background color.
        * 
@@ -3513,8 +3170,6 @@ public Builder clearBackgroundColor() { return this; } /** - * - * *
        * Text background color.
        * 
@@ -3522,13 +3177,11 @@ public Builder clearBackgroundColor() { * .google.type.Color background_color = 3; */ public com.google.type.Color.Builder getBackgroundColorBuilder() { - + onChanged(); return getBackgroundColorFieldBuilder().getBuilder(); } /** - * - * *
        * Text background color.
        * 
@@ -3539,14 +3192,11 @@ public com.google.type.ColorOrBuilder getBackgroundColorOrBuilder() { if (backgroundColorBuilder_ != null) { return backgroundColorBuilder_.getMessageOrBuilder(); } else { - return backgroundColor_ == null - ? com.google.type.Color.getDefaultInstance() - : backgroundColor_; + return backgroundColor_ == null ? + com.google.type.Color.getDefaultInstance() : backgroundColor_; } } /** - * - * *
        * Text background color.
        * 
@@ -3554,15 +3204,14 @@ public com.google.type.ColorOrBuilder getBackgroundColorOrBuilder() { * .google.type.Color background_color = 3; */ 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> getBackgroundColorFieldBuilder() { if (backgroundColorBuilder_ == null) { - backgroundColorBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.type.Color, - com.google.type.Color.Builder, - com.google.type.ColorOrBuilder>( - getBackgroundColor(), getParentForChildren(), isClean()); + backgroundColorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Color, com.google.type.Color.Builder, com.google.type.ColorOrBuilder>( + getBackgroundColor(), + getParentForChildren(), + isClean()); backgroundColor_ = null; } return backgroundColorBuilder_; @@ -3570,21 +3219,19 @@ public com.google.type.ColorOrBuilder getBackgroundColorOrBuilder() { private java.lang.Object fontWeight_ = ""; /** - * - * *
        * Font weight. Possible values are normal, bold, bolder, and lighter.
        * https://www.w3schools.com/cssref/pr_font_weight.asp
        * 
* * string font_weight = 4; - * * @return The fontWeight. */ public java.lang.String getFontWeight() { java.lang.Object ref = fontWeight_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); fontWeight_ = s; return s; @@ -3593,22 +3240,21 @@ public java.lang.String getFontWeight() { } } /** - * - * *
        * Font weight. Possible values are normal, bold, bolder, and lighter.
        * https://www.w3schools.com/cssref/pr_font_weight.asp
        * 
* * string font_weight = 4; - * * @return The bytes for fontWeight. */ - public com.google.protobuf.ByteString getFontWeightBytes() { + public com.google.protobuf.ByteString + getFontWeightBytes() { java.lang.Object ref = fontWeight_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); fontWeight_ = b; return b; } else { @@ -3616,64 +3262,57 @@ public com.google.protobuf.ByteString getFontWeightBytes() { } } /** - * - * *
        * Font weight. Possible values are normal, bold, bolder, and lighter.
        * https://www.w3schools.com/cssref/pr_font_weight.asp
        * 
* * string font_weight = 4; - * * @param value The fontWeight to set. * @return This builder for chaining. */ - public Builder setFontWeight(java.lang.String value) { + public Builder setFontWeight( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + fontWeight_ = value; onChanged(); return this; } /** - * - * *
        * Font weight. Possible values are normal, bold, bolder, and lighter.
        * https://www.w3schools.com/cssref/pr_font_weight.asp
        * 
* * string font_weight = 4; - * * @return This builder for chaining. */ public Builder clearFontWeight() { - + fontWeight_ = getDefaultInstance().getFontWeight(); onChanged(); return this; } /** - * - * *
        * Font weight. Possible values are normal, bold, bolder, and lighter.
        * https://www.w3schools.com/cssref/pr_font_weight.asp
        * 
* * string font_weight = 4; - * * @param value The bytes for fontWeight to set. * @return This builder for chaining. */ - public Builder setFontWeightBytes(com.google.protobuf.ByteString value) { + public Builder setFontWeightBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + fontWeight_ = value; onChanged(); return this; @@ -3681,21 +3320,19 @@ public Builder setFontWeightBytes(com.google.protobuf.ByteString value) { private java.lang.Object textStyle_ = ""; /** - * - * *
        * Text style. Possible values are normal, italic, and oblique.
        * https://www.w3schools.com/cssref/pr_font_font-style.asp
        * 
* * string text_style = 5; - * * @return The textStyle. */ public java.lang.String getTextStyle() { java.lang.Object ref = textStyle_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); textStyle_ = s; return s; @@ -3704,22 +3341,21 @@ public java.lang.String getTextStyle() { } } /** - * - * *
        * Text style. Possible values are normal, italic, and oblique.
        * https://www.w3schools.com/cssref/pr_font_font-style.asp
        * 
* * string text_style = 5; - * * @return The bytes for textStyle. */ - public com.google.protobuf.ByteString getTextStyleBytes() { + public com.google.protobuf.ByteString + getTextStyleBytes() { java.lang.Object ref = textStyle_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); textStyle_ = b; return b; } else { @@ -3727,64 +3363,57 @@ public com.google.protobuf.ByteString getTextStyleBytes() { } } /** - * - * *
        * Text style. Possible values are normal, italic, and oblique.
        * https://www.w3schools.com/cssref/pr_font_font-style.asp
        * 
* * string text_style = 5; - * * @param value The textStyle to set. * @return This builder for chaining. */ - public Builder setTextStyle(java.lang.String value) { + public Builder setTextStyle( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + textStyle_ = value; onChanged(); return this; } /** - * - * *
        * Text style. Possible values are normal, italic, and oblique.
        * https://www.w3schools.com/cssref/pr_font_font-style.asp
        * 
* * string text_style = 5; - * * @return This builder for chaining. */ public Builder clearTextStyle() { - + textStyle_ = getDefaultInstance().getTextStyle(); onChanged(); return this; } /** - * - * *
        * Text style. Possible values are normal, italic, and oblique.
        * https://www.w3schools.com/cssref/pr_font_font-style.asp
        * 
* * string text_style = 5; - * * @param value The bytes for textStyle to set. * @return This builder for chaining. */ - public Builder setTextStyleBytes(com.google.protobuf.ByteString value) { + public Builder setTextStyleBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + textStyle_ = value; onChanged(); return this; @@ -3792,8 +3421,6 @@ public Builder setTextStyleBytes(com.google.protobuf.ByteString value) { private java.lang.Object textDecoration_ = ""; /** - * - * *
        * Text decoration. Follows CSS standard.
        * <text-decoration-line> <text-decoration-color> <text-decoration-style>
@@ -3801,13 +3428,13 @@ public Builder setTextStyleBytes(com.google.protobuf.ByteString value) {
        * 
* * string text_decoration = 6; - * * @return The textDecoration. */ public java.lang.String getTextDecoration() { java.lang.Object ref = textDecoration_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); textDecoration_ = s; return s; @@ -3816,8 +3443,6 @@ public java.lang.String getTextDecoration() { } } /** - * - * *
        * Text decoration. Follows CSS standard.
        * <text-decoration-line> <text-decoration-color> <text-decoration-style>
@@ -3825,14 +3450,15 @@ public java.lang.String getTextDecoration() {
        * 
* * string text_decoration = 6; - * * @return The bytes for textDecoration. */ - public com.google.protobuf.ByteString getTextDecorationBytes() { + public com.google.protobuf.ByteString + getTextDecorationBytes() { java.lang.Object ref = textDecoration_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); textDecoration_ = b; return b; } else { @@ -3840,8 +3466,6 @@ public com.google.protobuf.ByteString getTextDecorationBytes() { } } /** - * - * *
        * Text decoration. Follows CSS standard.
        * <text-decoration-line> <text-decoration-color> <text-decoration-style>
@@ -3849,22 +3473,20 @@ public com.google.protobuf.ByteString getTextDecorationBytes() {
        * 
* * string text_decoration = 6; - * * @param value The textDecoration to set. * @return This builder for chaining. */ - public Builder setTextDecoration(java.lang.String value) { + public Builder setTextDecoration( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + textDecoration_ = value; onChanged(); return this; } /** - * - * *
        * Text decoration. Follows CSS standard.
        * <text-decoration-line> <text-decoration-color> <text-decoration-style>
@@ -3872,18 +3494,15 @@ public Builder setTextDecoration(java.lang.String value) {
        * 
* * string text_decoration = 6; - * * @return This builder for chaining. */ public Builder clearTextDecoration() { - + textDecoration_ = getDefaultInstance().getTextDecoration(); onChanged(); return this; } /** - * - * *
        * Text decoration. Follows CSS standard.
        * <text-decoration-line> <text-decoration-color> <text-decoration-style>
@@ -3891,16 +3510,16 @@ public Builder clearTextDecoration() {
        * 
* * string text_decoration = 6; - * * @param value The bytes for textDecoration to set. * @return This builder for chaining. */ - public Builder setTextDecorationBytes(com.google.protobuf.ByteString value) { + public Builder setTextDecorationBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + textDecoration_ = value; onChanged(); return this; @@ -3908,47 +3527,34 @@ public Builder setTextDecorationBytes(com.google.protobuf.ByteString value) { private com.google.cloud.documentai.v1.Document.Style.FontSize fontSize_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.documentai.v1.Document.Style.FontSize, - com.google.cloud.documentai.v1.Document.Style.FontSize.Builder, - com.google.cloud.documentai.v1.Document.Style.FontSizeOrBuilder> - fontSizeBuilder_; + com.google.cloud.documentai.v1.Document.Style.FontSize, com.google.cloud.documentai.v1.Document.Style.FontSize.Builder, com.google.cloud.documentai.v1.Document.Style.FontSizeOrBuilder> fontSizeBuilder_; /** - * - * *
        * Font size.
        * 
* * .google.cloud.documentai.v1.Document.Style.FontSize font_size = 7; - * * @return Whether the fontSize field is set. */ public boolean hasFontSize() { return fontSizeBuilder_ != null || fontSize_ != null; } /** - * - * *
        * Font size.
        * 
* * .google.cloud.documentai.v1.Document.Style.FontSize font_size = 7; - * * @return The fontSize. */ public com.google.cloud.documentai.v1.Document.Style.FontSize getFontSize() { if (fontSizeBuilder_ == null) { - return fontSize_ == null - ? com.google.cloud.documentai.v1.Document.Style.FontSize.getDefaultInstance() - : fontSize_; + return fontSize_ == null ? com.google.cloud.documentai.v1.Document.Style.FontSize.getDefaultInstance() : fontSize_; } else { return fontSizeBuilder_.getMessage(); } } /** - * - * *
        * Font size.
        * 
@@ -3969,8 +3575,6 @@ public Builder setFontSize(com.google.cloud.documentai.v1.Document.Style.FontSiz return this; } /** - * - * *
        * Font size.
        * 
@@ -3989,8 +3593,6 @@ public Builder setFontSize( return this; } /** - * - * *
        * Font size.
        * 
@@ -4001,9 +3603,7 @@ public Builder mergeFontSize(com.google.cloud.documentai.v1.Document.Style.FontS if (fontSizeBuilder_ == null) { if (fontSize_ != null) { fontSize_ = - com.google.cloud.documentai.v1.Document.Style.FontSize.newBuilder(fontSize_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.documentai.v1.Document.Style.FontSize.newBuilder(fontSize_).mergeFrom(value).buildPartial(); } else { fontSize_ = value; } @@ -4015,8 +3615,6 @@ public Builder mergeFontSize(com.google.cloud.documentai.v1.Document.Style.FontS return this; } /** - * - * *
        * Font size.
        * 
@@ -4035,8 +3633,6 @@ public Builder clearFontSize() { return this; } /** - * - * *
        * Font size.
        * 
@@ -4044,32 +3640,26 @@ public Builder clearFontSize() { * .google.cloud.documentai.v1.Document.Style.FontSize font_size = 7; */ public com.google.cloud.documentai.v1.Document.Style.FontSize.Builder getFontSizeBuilder() { - + onChanged(); return getFontSizeFieldBuilder().getBuilder(); } /** - * - * *
        * Font size.
        * 
* * .google.cloud.documentai.v1.Document.Style.FontSize font_size = 7; */ - public com.google.cloud.documentai.v1.Document.Style.FontSizeOrBuilder - getFontSizeOrBuilder() { + public com.google.cloud.documentai.v1.Document.Style.FontSizeOrBuilder getFontSizeOrBuilder() { if (fontSizeBuilder_ != null) { return fontSizeBuilder_.getMessageOrBuilder(); } else { - return fontSize_ == null - ? com.google.cloud.documentai.v1.Document.Style.FontSize.getDefaultInstance() - : fontSize_; + return fontSize_ == null ? + com.google.cloud.documentai.v1.Document.Style.FontSize.getDefaultInstance() : fontSize_; } } /** - * - * *
        * Font size.
        * 
@@ -4077,22 +3667,18 @@ public com.google.cloud.documentai.v1.Document.Style.FontSize.Builder getFontSiz * .google.cloud.documentai.v1.Document.Style.FontSize font_size = 7; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.documentai.v1.Document.Style.FontSize, - com.google.cloud.documentai.v1.Document.Style.FontSize.Builder, - com.google.cloud.documentai.v1.Document.Style.FontSizeOrBuilder> + com.google.cloud.documentai.v1.Document.Style.FontSize, com.google.cloud.documentai.v1.Document.Style.FontSize.Builder, com.google.cloud.documentai.v1.Document.Style.FontSizeOrBuilder> getFontSizeFieldBuilder() { if (fontSizeBuilder_ == null) { - fontSizeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.documentai.v1.Document.Style.FontSize, - com.google.cloud.documentai.v1.Document.Style.FontSize.Builder, - com.google.cloud.documentai.v1.Document.Style.FontSizeOrBuilder>( - getFontSize(), getParentForChildren(), isClean()); + fontSizeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.documentai.v1.Document.Style.FontSize, com.google.cloud.documentai.v1.Document.Style.FontSize.Builder, com.google.cloud.documentai.v1.Document.Style.FontSizeOrBuilder>( + getFontSize(), + getParentForChildren(), + isClean()); fontSize_ = null; } return fontSizeBuilder_; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -4105,12 +3691,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.documentai.v1.Document.Style) } // @@protoc_insertion_point(class_scope:google.cloud.documentai.v1.Document.Style) private static final com.google.cloud.documentai.v1.Document.Style DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.documentai.v1.Document.Style(); } @@ -4119,16 +3705,16 @@ public static com.google.cloud.documentai.v1.Document.Style getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser