From 743a23d35b05873ffed61fe8f7b9558adba062aa Mon Sep 17 00:00:00 2001 From: Owl Bot Date: Thu, 3 Feb 2022 20:48:32 +0000 Subject: [PATCH 1/2] feat: add question_id field in ReviewDocumentOperationMetadata PiperOrigin-RevId: 426180523 Source-Link: https://github.com/googleapis/googleapis/commit/38a8eb97e2b3d0f0cceefc8190c12bdcefff7214 Source-Link: https://github.com/googleapis/googleapis-gen/commit/9a1a88b211e2e94bc8e35855378e0523cb8a6683 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiOWExYTg4YjIxMWUyZTk0YmM4ZTM1ODU1Mzc4ZTA1MjNjYjhhNjY4MyJ9 --- .../v1beta3/DocumentProcessorServiceGrpc.java | 1359 - .../v1/DocumentProcessorServiceClient.java | 6 +- .../v1/DocumentProcessorServiceSettings.java | 7 +- .../cloud/documentai/v1/gapic_metadata.json | 0 .../cloud/documentai/v1/package-info.java | 0 .../v1/stub/DocumentProcessorServiceStub.java | 0 .../DocumentProcessorServiceStubSettings.java | 6 +- ...cumentProcessorServiceCallableFactory.java | 0 .../GrpcDocumentProcessorServiceStub.java | 1 + .../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 | 24141 +++++---------- .../v1/DocumentAiProcessorService.java | 277 + .../cloud/documentai/v1/DocumentIoProto.java | 135 + .../documentai/v1/DocumentOrBuilder.java | 175 +- .../documentai/v1/DocumentOutputConfig.java | 801 +- .../v1/DocumentOutputConfigOrBuilder.java | 38 +- .../cloud/documentai/v1/DocumentProto.java | 611 + .../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 | 83 + .../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 | 67 + .../cloud/documentai/v1/ProcessRequest.java | 616 +- .../v1/ProcessRequestOrBuilder.java | 54 +- .../cloud/documentai/v1/ProcessResponse.java | 431 +- .../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 .../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 | 414 + .../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 .../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 | 19495 ++++-------- .../documentai/v1beta2/DocumentAiProto.java | 324 + .../documentai/v1beta2/DocumentOrBuilder.java | 171 +- .../documentai/v1beta2/DocumentProto.java | 476 + .../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 .../DocumentProcessorServiceClient.java | 16 +- .../DocumentProcessorServiceSettings.java | 7 +- .../documentai/v1beta3/gapic_metadata.json | 0 .../documentai/v1beta3/package-info.java | 0 .../stub/DocumentProcessorServiceStub.java | 0 .../DocumentProcessorServiceStubSettings.java | 6 +- ...cumentProcessorServiceCallableFactory.java | 0 .../GrpcDocumentProcessorServiceStub.java | 1 + .../DocumentProcessorServiceClientTest.java | 0 .../v1beta3/MockDocumentProcessorService.java | 0 .../MockDocumentProcessorServiceImpl.java | 0 .../v1beta3/DocumentProcessorServiceGrpc.java | 1022 + .../v1beta3/BatchDocumentsInputConfig.java | 501 +- .../BatchDocumentsInputConfigOrBuilder.java | 34 +- .../v1beta3/BatchProcessMetadata.java | 1819 +- .../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 | 25690 ++++++---------- .../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 | 620 + .../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 | 758 +- .../v1beta3/ProcessRequestOrBuilder.java | 71 +- .../documentai/v1beta3/ProcessResponse.java | 538 +- .../v1beta3/ProcessResponseOrBuilder.java | 47 +- .../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 | 1000 +- ...iewDocumentOperationMetadataOrBuilder.java | 77 +- .../v1beta3/ReviewDocumentRequest.java | 786 +- .../ReviewDocumentRequestOrBuilder.java | 69 +- .../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 | 3 + .../cloud/documentai/v1beta3/geometry.proto | 0 .../v1beta3/operation_metadata.proto | 0 .../cloud/documentai/v1beta3/processor.proto | 0 .../documentai/v1beta3/processor_type.proto | 0 .../v1/BatchProcessResponseOrBuilder.java | 24 - .../v1/DocumentAiProcessorService.java | 301 - .../cloud/documentai/v1/DocumentIoProto.java | 158 - .../cloud/documentai/v1/DocumentProto.java | 731 - .../documentai/v1/GcsPrefixOrBuilder.java | 50 - .../cloud/documentai/v1/GeometryProto.java | 100 - .../v1/NormalizedVertexOrBuilder.java | 51 - .../documentai/v1/OperationMetadataProto.java | 82 - .../v1/ReviewDocumentResponseOrBuilder.java | 50 - .../cloud/documentai/v1/VertexOrBuilder.java | 51 - .../documentai/v1beta1/DocumentAiProto.java | 335 - .../documentai/v1beta1/DocumentProto.java | 506 - .../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 | 587 - .../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 | 760 - .../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 - 322 files changed, 54611 insertions(+), 98113 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 (98%) rename {google-cloud-document-ai => owl-bot-staging/v1/google-cloud-document-ai}/src/main/java/com/google/cloud/documentai/v1/DocumentProcessorServiceSettings.java (96%) 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 (100%) rename {google-cloud-document-ai => owl-bot-staging/v1/google-cloud-document-ai}/src/main/java/com/google/cloud/documentai/v1/stub/DocumentProcessorServiceStubSettings.java (98%) 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%) 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 (72%) 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 (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/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 (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/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%) 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 (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/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%) 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 (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/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%) rename {google-cloud-document-ai => owl-bot-staging/v1beta3/google-cloud-document-ai}/src/main/java/com/google/cloud/documentai/v1beta3/DocumentProcessorServiceClient.java (98%) rename {google-cloud-document-ai => owl-bot-staging/v1beta3/google-cloud-document-ai}/src/main/java/com/google/cloud/documentai/v1beta3/DocumentProcessorServiceSettings.java (97%) 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 (100%) rename {google-cloud-document-ai => owl-bot-staging/v1beta3/google-cloud-document-ai}/src/main/java/com/google/cloud/documentai/v1beta3/stub/DocumentProcessorServiceStubSettings.java (99%) 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%) 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 (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/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 (51%) 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 (67%) 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 (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/ProcessResponse.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/ProcessResponseOrBuilder.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/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 (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/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 (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/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 (99%) 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%) 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 98% 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 dbf4de02..2d01ec5a 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 @@ -55,13 +55,13 @@ * methods: * *
    - *
  1. A "flattened" method. With this type of method, the fields of the request type have been + *
  2. A "flattened" method. With this type of method, the fields of the request type have been * converted into function parameters. It may be the case that not all fields are available as * parameters, and not every API method will have a flattened method entry point. - *
  3. A "request object" method. This type of method only takes one parameter, a request object, + *
  4. A "request object" method. This type of method only takes one parameter, a request object, * which must be constructed before the call. Not every API method will have a request object * method. - *
  5. A "callable" method. This type of method takes no parameters and returns an immutable API + *
  6. A "callable" method. This type of method takes no parameters and returns an immutable API * callable object, which can be used to initiate calls to the service. *
* diff --git a/google-cloud-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 96% 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 86198bfd..fb0796e0 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 @@ -25,6 +25,7 @@ import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.ClientSettings; import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.StubSettings; import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.cloud.documentai.v1.stub.DocumentProcessorServiceStubSettings; @@ -40,9 +41,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 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 100% 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 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 98% 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 56062561..872a2039 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 @@ -60,9 +60,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 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 70819895..60c68ee6 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/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 b54cd376..c22d98cc 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,84 +52,75 @@ 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) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.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; } @@ -161,36 +136,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 @@ -198,26 +167,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].
    * 
@@ -227,21 +191,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 @@ -249,26 +210,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.
    * 
@@ -278,13 +234,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; @@ -296,7 +251,8 @@ public final boolean isInitialized() { } @java.lang.Override - public 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_); } @@ -313,14 +269,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; @@ -330,21 +284,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: @@ -378,127 +333,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() @@ -506,15 +451,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(); @@ -524,9 +470,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 @@ -545,8 +491,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_; @@ -570,39 +515,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; @@ -610,23 +554,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(); @@ -647,8 +587,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) { @@ -657,12 +596,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() { @@ -672,20 +611,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 @@ -693,14 +627,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 @@ -718,8 +649,6 @@ public com.google.cloud.documentai.v1.GcsPrefix getGcsPrefix() { } } /** - * - * *
      * The set of documents that match the specified Cloud Storage [gcs_prefix].
      * 
@@ -740,15 +669,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(); @@ -759,8 +687,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].
      * 
@@ -769,13 +695,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; } @@ -790,8 +713,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].
      * 
@@ -815,8 +736,6 @@ public Builder clearGcsPrefix() { return this; } /** - * - * *
      * The set of documents that match the specified Cloud Storage [gcs_prefix].
      * 
@@ -827,8 +746,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].
      * 
@@ -847,8 +764,6 @@ public com.google.cloud.documentai.v1.GcsPrefixOrBuilder getGcsPrefixOrBuilder() } } /** - * - * *
      * The set of documents that match the specified Cloud Storage [gcs_prefix].
      * 
@@ -856,44 +771,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 @@ -901,14 +804,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 @@ -926,8 +826,6 @@ public com.google.cloud.documentai.v1.GcsDocuments getGcsDocuments() { } } /** - * - * *
      * The set of documents individually specified on Cloud Storage.
      * 
@@ -948,8 +846,6 @@ public Builder setGcsDocuments(com.google.cloud.documentai.v1.GcsDocuments value return this; } /** - * - * *
      * The set of documents individually specified on Cloud Storage.
      * 
@@ -968,8 +864,6 @@ public Builder setGcsDocuments( return this; } /** - * - * *
      * The set of documents individually specified on Cloud Storage.
      * 
@@ -978,13 +872,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; } @@ -999,8 +890,6 @@ public Builder mergeGcsDocuments(com.google.cloud.documentai.v1.GcsDocuments val return this; } /** - * - * *
      * The set of documents individually specified on Cloud Storage.
      * 
@@ -1024,8 +913,6 @@ public Builder clearGcsDocuments() { return this; } /** - * - * *
      * The set of documents individually specified on Cloud Storage.
      * 
@@ -1036,8 +923,6 @@ public com.google.cloud.documentai.v1.GcsDocuments.Builder getGcsDocumentsBuilde return getGcsDocumentsFieldBuilder().getBuilder(); } /** - * - * *
      * The set of documents individually specified on Cloud Storage.
      * 
@@ -1056,8 +941,6 @@ public com.google.cloud.documentai.v1.GcsDocumentsOrBuilder getGcsDocumentsOrBui } } /** - * - * *
      * The set of documents individually specified on Cloud Storage.
      * 
@@ -1065,32 +948,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); } @@ -1100,12 +977,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(); } @@ -1114,16 +991,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; @@ -1138,4 +1015,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 62a0e944..1886683a 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,117 +56,98 @@ 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) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - 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.
      * 
@@ -192,8 +156,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ STATE_UNSPECIFIED(0), /** - * - * *
      * Request operation is waiting for scheduling.
      * 
@@ -202,8 +164,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ WAITING(1), /** - * - * *
      * Request is being processed.
      * 
@@ -212,8 +172,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ RUNNING(2), /** - * - * *
      * The batch processing completed successfully.
      * 
@@ -222,8 +180,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ SUCCEEDED(3), /** - * - * *
      * The batch processing was being cancelled.
      * 
@@ -232,8 +188,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ CANCELLING(4), /** - * - * *
      * The batch processing was cancelled.
      * 
@@ -242,8 +196,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ CANCELLED(5), /** - * - * *
      * The batch processing has failed.
      * 
@@ -255,8 +207,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
      * The default value. This value is used if the state is omitted.
      * 
@@ -265,8 +215,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int STATE_UNSPECIFIED_VALUE = 0; /** - * - * *
      * Request operation is waiting for scheduling.
      * 
@@ -275,8 +223,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int WAITING_VALUE = 1; /** - * - * *
      * Request is being processed.
      * 
@@ -285,8 +231,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int RUNNING_VALUE = 2; /** - * - * *
      * The batch processing completed successfully.
      * 
@@ -295,8 +239,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int SUCCEEDED_VALUE = 3; /** - * - * *
      * The batch processing was being cancelled.
      * 
@@ -305,8 +247,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int CANCELLING_VALUE = 4; /** - * - * *
      * The batch processing was cancelled.
      * 
@@ -315,8 +255,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int CANCELLED_VALUE = 5; /** - * - * *
      * The batch processing has failed.
      * 
@@ -325,6 +263,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( @@ -349,59 +288,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; @@ -418,14 +351,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
@@ -434,13 +364,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
@@ -449,38 +376,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.
      * 
@@ -490,59 +409,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.
      * 
@@ -552,24 +458,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_ = ""; @@ -577,15 +480,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) @@ -604,91 +508,79 @@ 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) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.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
@@ -697,7 +589,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
      * 
* * string input_gcs_source = 1; - * * @return The inputGcsSource. */ @java.lang.Override @@ -706,15 +597,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
@@ -723,15 +613,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 { @@ -742,14 +633,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 @@ -757,14 +645,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 @@ -772,8 +657,6 @@ public com.google.rpc.Status getStatus() { return status_ == null ? com.google.rpc.Status.getDefaultInstance() : status_; } /** - * - * *
      * The status of the processing of the document.
      * 
@@ -788,15 +671,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 @@ -805,30 +685,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 { @@ -839,14 +719,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 @@ -854,25 +731,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.
      * 
@@ -880,13 +750,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; @@ -898,7 +766,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.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_); } @@ -924,13 +793,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; @@ -940,24 +811,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; @@ -987,101 +860,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 @@ -1091,50 +951,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(); @@ -1158,22 +1012,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); } @@ -1181,10 +1032,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_; @@ -1205,55 +1054,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(); @@ -1283,14 +1123,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) { @@ -1302,8 +1139,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
@@ -1312,13 +1147,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; @@ -1327,8 +1162,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
@@ -1337,14 +1170,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 { @@ -1352,8 +1186,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
@@ -1362,22 +1194,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
@@ -1386,18 +1216,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
@@ -1406,16 +1233,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; @@ -1423,31 +1250,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() { @@ -1458,8 +1278,6 @@ public com.google.rpc.Status getStatus() { } } /** - * - * *
        * The status of the processing of the document.
        * 
@@ -1480,15 +1298,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(); @@ -1499,8 +1316,6 @@ public Builder setStatus(com.google.rpc.Status.Builder builderForValue) { return this; } /** - * - * *
        * The status of the processing of the document.
        * 
@@ -1510,7 +1325,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; } @@ -1522,8 +1338,6 @@ public Builder mergeStatus(com.google.rpc.Status value) { return this; } /** - * - * *
        * The status of the processing of the document.
        * 
@@ -1542,8 +1356,6 @@ public Builder clearStatus() { return this; } /** - * - * *
        * The status of the processing of the document.
        * 
@@ -1551,13 +1363,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.
        * 
@@ -1568,12 +1378,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.
        * 
@@ -1581,14 +1390,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_; @@ -1596,21 +1405,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; @@ -1619,22 +1426,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 { @@ -1642,64 +1448,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; @@ -1707,47 +1506,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.
        * 
@@ -1768,8 +1554,6 @@ public Builder setHumanReviewStatus(com.google.cloud.documentai.v1.HumanReviewSt return this; } /** - * - * *
        * The status of human review on the processed document.
        * 
@@ -1788,22 +1572,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; } @@ -1815,8 +1594,6 @@ public Builder mergeHumanReviewStatus( return this; } /** - * - * *
        * The status of human review on the processed document.
        * 
@@ -1835,42 +1612,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.
        * 
@@ -1878,22 +1646,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) { @@ -1906,33 +1670,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; @@ -1944,62 +1705,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 @@ -2008,30 +1755,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 { @@ -2042,14 +1789,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 @@ -2057,14 +1801,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 @@ -2072,8 +1813,6 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** - * - * *
    * The creation time of the operation.
    * 
@@ -2088,14 +1827,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 @@ -2103,14 +1839,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 @@ -2118,8 +1851,6 @@ public com.google.protobuf.Timestamp getUpdateTime() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } /** - * - * *
    * The last update time of the operation.
    * 
@@ -2132,93 +1863,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; @@ -2230,10 +1934,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_)) { @@ -2257,24 +1960,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; @@ -2284,26 +1987,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; } @@ -2337,126 +2042,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() @@ -2464,17 +2160,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(); @@ -2504,9 +2200,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 @@ -2525,8 +2221,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_; @@ -2542,8 +2237,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_; @@ -2558,39 +2252,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; @@ -2598,8 +2291,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()); } @@ -2631,10 +2323,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_); } @@ -2659,8 +2350,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) { @@ -2669,72 +2359,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. */ @@ -2742,24 +2415,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; @@ -2767,21 +2437,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; @@ -2790,22 +2458,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 { @@ -2813,64 +2480,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; @@ -2878,47 +2538,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.
      * 
@@ -2939,15 +2586,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(); @@ -2958,8 +2604,6 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * The creation time of the operation.
      * 
@@ -2970,7 +2614,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; } @@ -2982,8 +2626,6 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * The creation time of the operation.
      * 
@@ -3002,8 +2644,6 @@ public Builder clearCreateTime() { return this; } /** - * - * *
      * The creation time of the operation.
      * 
@@ -3011,13 +2651,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.
      * 
@@ -3028,14 +2666,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.
      * 
@@ -3043,17 +2678,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_; @@ -3061,47 +2693,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.
      * 
@@ -3122,15 +2741,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(); @@ -3141,8 +2759,6 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * The last update time of the operation.
      * 
@@ -3153,7 +2769,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; } @@ -3165,8 +2781,6 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * The last update time of the operation.
      * 
@@ -3185,8 +2799,6 @@ public Builder clearUpdateTime() { return this; } /** - * - * *
      * The last update time of the operation.
      * 
@@ -3194,13 +2806,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.
      * 
@@ -3211,14 +2821,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.
      * 
@@ -3226,56 +2833,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 { @@ -3283,15 +2873,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) { @@ -3301,18 +2887,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 { @@ -3320,19 +2901,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(); @@ -3346,20 +2922,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()); @@ -3370,18 +2940,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(); @@ -3395,19 +2960,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(); @@ -3421,19 +2981,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()); @@ -3444,20 +2999,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()); @@ -3468,24 +3017,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); @@ -3493,15 +3036,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) { @@ -3514,15 +3053,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) { @@ -3535,55 +3070,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 { @@ -3591,71 +3110,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(), @@ -3664,9 +3157,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); } @@ -3676,12 +3169,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(); } @@ -3690,16 +3183,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; @@ -3714,4 +3207,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 94a9bf16..5413d504 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,99 +53,83 @@ 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) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.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 @@ -171,31 +138,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 { @@ -206,14 +171,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 @@ -221,25 +183,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.
    * 
@@ -247,22 +202,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 @@ -270,25 +221,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.
    * 
@@ -296,23 +240,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 @@ -321,7 +261,6 @@ public boolean getSkipHumanReview() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -333,7 +272,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.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_); } @@ -359,14 +299,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; @@ -376,24 +318,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; } @@ -416,133 +361,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() @@ -550,15 +487,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(); @@ -582,9 +520,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 @@ -603,8 +541,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_; @@ -625,39 +562,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; @@ -665,8 +601,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(); @@ -699,8 +634,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) { @@ -712,22 +646,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; @@ -736,23 +666,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 { @@ -760,67 +687,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; @@ -828,55 +742,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(); @@ -890,8 +790,6 @@ public Builder setInputDocuments( return this; } /** - * - * *
      * The input documents for batch process.
      * 
@@ -910,22 +808,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; } @@ -937,8 +830,6 @@ public Builder mergeInputDocuments( return this; } /** - * - * *
      * The input documents for batch process.
      * 
@@ -957,42 +848,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.
      * 
@@ -1000,17 +882,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_; @@ -1018,55 +897,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(); @@ -1080,8 +945,6 @@ public Builder setDocumentOutputConfig( return this; } /** - * - * *
      * The overall output config for batch process.
      * 
@@ -1100,22 +963,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; } @@ -1127,8 +985,6 @@ public Builder mergeDocumentOutputConfig( return this; } /** - * - * *
      * The overall output config for batch process.
      * 
@@ -1147,42 +1003,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.
      * 
@@ -1190,33 +1037,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 @@ -1224,45 +1065,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); } @@ -1272,12 +1107,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(); } @@ -1286,16 +1121,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; @@ -1310,4 +1145,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 f6177071..37caa495 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,42 +52,39 @@ 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) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.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; @@ -115,7 +96,8 @@ public final boolean isInitialized() { } @java.lang.Override - 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); } @@ -133,13 +115,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; @@ -158,126 +139,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() @@ -285,15 +257,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(); @@ -301,9 +274,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 @@ -322,8 +295,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; } @@ -332,39 +304,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; @@ -372,8 +343,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; @@ -393,8 +363,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) { @@ -403,9 +372,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); } @@ -415,12 +384,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(); } @@ -429,16 +398,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; @@ -453,4 +422,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 7c591d90..a88ea67e 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,42 +55,38 @@ 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) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - 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_); @@ -119,27 +98,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.
    * 
@@ -151,8 +125,6 @@ public java.util.List getVerticesList() { return vertices_; } /** - * - * *
    * The bounding polygon vertices.
    * 
@@ -160,13 +132,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.
    * 
@@ -178,8 +148,6 @@ public int getVerticesCount() { return vertices_.size(); } /** - * - * *
    * The bounding polygon vertices.
    * 
@@ -191,8 +159,6 @@ public com.google.cloud.documentai.v1.Vertex getVertices(int index) { return vertices_.get(index); } /** - * - * *
    * The bounding polygon vertices.
    * 
@@ -200,15 +166,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.
    * 
@@ -216,13 +181,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.
    * 
@@ -230,13 +192,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.
    * 
@@ -248,8 +208,6 @@ public int getNormalizedVerticesCount() { return normalizedVertices_.size(); } /** - * - * *
    * The bounding polygon normalized vertices.
    * 
@@ -261,8 +219,6 @@ public com.google.cloud.documentai.v1.NormalizedVertex getNormalizedVertices(int return normalizedVertices_.get(index); } /** - * - * *
    * The bounding polygon normalized vertices.
    * 
@@ -276,7 +232,6 @@ public com.google.cloud.documentai.v1.NormalizedVertexOrBuilder getNormalizedVer } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -288,7 +243,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < vertices_.size(); i++) { output.writeMessage(1, vertices_.get(i)); } @@ -305,11 +261,12 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < vertices_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, vertices_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, vertices_.get(i)); } for (int i = 0; i < normalizedVertices_.size(); i++) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(2, normalizedVertices_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, normalizedVertices_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -319,16 +276,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.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; } @@ -353,127 +311,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() @@ -481,18 +430,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(); @@ -512,9 +461,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 @@ -533,8 +482,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)) { @@ -562,39 +510,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; @@ -621,10 +568,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_); } @@ -648,10 +594,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_); } @@ -685,28 +630,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.
      * 
@@ -721,8 +659,6 @@ public java.util.List getVerticesList() { } } /** - * - * *
      * The bounding polygon vertices.
      * 
@@ -737,8 +673,6 @@ public int getVerticesCount() { } } /** - * - * *
      * The bounding polygon vertices.
      * 
@@ -753,15 +687,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(); @@ -775,8 +708,6 @@ public Builder setVertices(int index, com.google.cloud.documentai.v1.Vertex valu return this; } /** - * - * *
      * The bounding polygon vertices.
      * 
@@ -795,8 +726,6 @@ public Builder setVertices( return this; } /** - * - * *
      * The bounding polygon vertices.
      * 
@@ -817,15 +746,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(); @@ -839,15 +767,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()); @@ -858,8 +785,6 @@ public Builder addVertices(com.google.cloud.documentai.v1.Vertex.Builder builder return this; } /** - * - * *
      * The bounding polygon vertices.
      * 
@@ -878,8 +803,6 @@ public Builder addVertices( return this; } /** - * - * *
      * The bounding polygon vertices.
      * 
@@ -890,7 +813,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); @@ -898,8 +822,6 @@ public Builder addAllVertices( return this; } /** - * - * *
      * The bounding polygon vertices.
      * 
@@ -917,8 +839,6 @@ public Builder clearVertices() { return this; } /** - * - * *
      * The bounding polygon vertices.
      * 
@@ -936,44 +856,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 { @@ -981,8 +896,6 @@ public com.google.cloud.documentai.v1.VertexOrBuilder getVerticesOrBuilder(int i } } /** - * - * *
      * The bounding polygon vertices.
      * 
@@ -990,81 +903,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 { @@ -1072,8 +971,6 @@ private void ensureNormalizedVerticesIsMutable() { } } /** - * - * *
      * The bounding polygon normalized vertices.
      * 
@@ -1088,8 +985,6 @@ public int getNormalizedVerticesCount() { } } /** - * - * *
      * The bounding polygon normalized vertices.
      * 
@@ -1104,8 +999,6 @@ public com.google.cloud.documentai.v1.NormalizedVertex getNormalizedVertices(int } } /** - * - * *
      * The bounding polygon normalized vertices.
      * 
@@ -1127,8 +1020,6 @@ public Builder setNormalizedVertices( return this; } /** - * - * *
      * The bounding polygon normalized vertices.
      * 
@@ -1147,8 +1038,6 @@ public Builder setNormalizedVertices( return this; } /** - * - * *
      * The bounding polygon normalized vertices.
      * 
@@ -1169,8 +1058,6 @@ public Builder addNormalizedVertices(com.google.cloud.documentai.v1.NormalizedVe return this; } /** - * - * *
      * The bounding polygon normalized vertices.
      * 
@@ -1192,8 +1079,6 @@ public Builder addNormalizedVertices( return this; } /** - * - * *
      * The bounding polygon normalized vertices.
      * 
@@ -1212,8 +1097,6 @@ public Builder addNormalizedVertices( return this; } /** - * - * *
      * The bounding polygon normalized vertices.
      * 
@@ -1232,8 +1115,6 @@ public Builder addNormalizedVertices( return this; } /** - * - * *
      * The bounding polygon normalized vertices.
      * 
@@ -1244,7 +1125,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); @@ -1252,8 +1134,6 @@ public Builder addAllNormalizedVertices( return this; } /** - * - * *
      * The bounding polygon normalized vertices.
      * 
@@ -1271,8 +1151,6 @@ public Builder clearNormalizedVertices() { return this; } /** - * - * *
      * The bounding polygon normalized vertices.
      * 
@@ -1290,8 +1168,6 @@ public Builder removeNormalizedVertices(int index) { return this; } /** - * - * *
      * The bounding polygon normalized vertices.
      * 
@@ -1303,8 +1179,6 @@ public com.google.cloud.documentai.v1.NormalizedVertex.Builder getNormalizedVert return getNormalizedVerticesFieldBuilder().getBuilder(index); } /** - * - * *
      * The bounding polygon normalized vertices.
      * 
@@ -1314,22 +1188,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 { @@ -1337,8 +1208,6 @@ public com.google.cloud.documentai.v1.NormalizedVertexOrBuilder getNormalizedVer } } /** - * - * *
      * The bounding polygon normalized vertices.
      * 
@@ -1346,12 +1215,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.
      * 
@@ -1360,34 +1227,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(), @@ -1396,9 +1255,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); } @@ -1408,12 +1267,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(); } @@ -1422,16 +1281,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; @@ -1446,4 +1305,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 70cc4ed3..9eebda05 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,97 +54,86 @@ 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) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.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.
      * 
@@ -170,8 +142,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ STATE_UNSPECIFIED(0), /** - * - * *
      * Operation is still running.
      * 
@@ -180,8 +150,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ RUNNING(1), /** - * - * *
      * Operation is being cancelled.
      * 
@@ -190,8 +158,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ CANCELLING(2), /** - * - * *
      * Operation succeeded.
      * 
@@ -200,8 +166,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ SUCCEEDED(3), /** - * - * *
      * Operation failed.
      * 
@@ -210,8 +174,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ FAILED(4), /** - * - * *
      * Operation is cancelled.
      * 
@@ -223,8 +185,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
      * Unspecified state.
      * 
@@ -233,8 +193,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int STATE_UNSPECIFIED_VALUE = 0; /** - * - * *
      * Operation is still running.
      * 
@@ -243,8 +201,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int RUNNING_VALUE = 1; /** - * - * *
      * Operation is being cancelled.
      * 
@@ -253,8 +209,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int CANCELLING_VALUE = 2; /** - * - * *
      * Operation succeeded.
      * 
@@ -263,8 +217,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int SUCCEEDED_VALUE = 3; /** - * - * *
      * Operation failed.
      * 
@@ -273,8 +225,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int FAILED_VALUE = 4; /** - * - * *
      * Operation is cancelled.
      * 
@@ -283,6 +233,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( @@ -307,57 +258,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; @@ -377,52 +323,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 @@ -431,29 +363,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 { @@ -464,14 +396,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 @@ -479,14 +408,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 @@ -494,8 +420,6 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** - * - * *
    * The creation time of the operation.
    * 
@@ -510,14 +434,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 @@ -525,14 +446,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 @@ -540,8 +458,6 @@ public com.google.protobuf.Timestamp getUpdateTime() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } /** - * - * *
    * The last update time of the operation.
    * 
@@ -554,7 +470,6 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -566,10 +481,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_)) { @@ -590,19 +504,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; @@ -612,23 +527,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; @@ -659,127 +576,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() @@ -787,15 +694,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(); @@ -819,9 +727,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 @@ -840,8 +748,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) { @@ -862,39 +769,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; @@ -902,8 +808,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()); } @@ -936,8 +841,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) { @@ -949,67 +853,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. */ @@ -1017,24 +905,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; @@ -1042,20 +927,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; @@ -1064,21 +947,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 { @@ -1086,61 +968,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; @@ -1148,47 +1023,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.
      * 
@@ -1209,15 +1071,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(); @@ -1228,8 +1089,6 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * The creation time of the operation.
      * 
@@ -1240,7 +1099,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; } @@ -1252,8 +1111,6 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * The creation time of the operation.
      * 
@@ -1272,8 +1129,6 @@ public Builder clearCreateTime() { return this; } /** - * - * *
      * The creation time of the operation.
      * 
@@ -1281,13 +1136,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.
      * 
@@ -1298,14 +1151,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.
      * 
@@ -1313,17 +1163,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_; @@ -1331,47 +1178,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.
      * 
@@ -1392,15 +1226,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(); @@ -1411,8 +1244,6 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * The last update time of the operation.
      * 
@@ -1423,7 +1254,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; } @@ -1435,8 +1266,6 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * The last update time of the operation.
      * 
@@ -1455,8 +1284,6 @@ public Builder clearUpdateTime() { return this; } /** - * - * *
      * The last update time of the operation.
      * 
@@ -1464,13 +1291,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.
      * 
@@ -1481,14 +1306,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.
      * 
@@ -1496,24 +1318,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); } @@ -1523,12 +1342,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(); } @@ -1537,16 +1356,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; @@ -1561,4 +1380,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 032cf995..570440ec 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,152 +65,123 @@ private Document(
           case 0:
             done = true;
             break;
-          case 10:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
-              sourceCase_ = 1;
-              source_ = s;
-              break;
-            }
-          case 18:
-            {
-              sourceCase_ = 2;
-              source_ = input.readBytes();
-              break;
-            }
-          case 26:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+          case 10: {
+            java.lang.String s = input.readStringRequireUtf8();
+            sourceCase_ = 1;
+            source_ = s;
+            break;
+          }
+          case 18: {
+            sourceCase_ = 2;
+            source_ = input.readBytes();
+            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) {
       throw e.setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      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_);
@@ -251,70 +205,55 @@ 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
      * document global text.
      * 
* * 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
@@ -323,29 +262,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)
@@ -364,66 +304,61 @@ 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) {
         throw e.setUnfinishedMessage(this);
       } catch (java.io.IOException e) {
-        throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+        throw new com.google.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 @@ -434,14 +369,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 @@ -452,15 +384,12 @@ 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
      * document global text.
      * 
* * int64 text_offset = 3; - * * @return The textOffset. */ @java.lang.Override @@ -469,7 +398,6 @@ public long getTextOffset() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -481,7 +409,8 @@ public final boolean isInitialized() { } @java.lang.Override - public 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_); } @@ -501,13 +430,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; @@ -517,17 +449,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; } @@ -540,104 +474,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 @@ -647,8 +578,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
@@ -657,24 +586,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()
@@ -682,15 +608,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();
@@ -704,9 +631,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
@@ -725,8 +652,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_;
@@ -738,41 +664,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;
@@ -780,8 +703,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());
         }
@@ -810,8 +732,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) {
@@ -821,16 +742,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 @@ -838,51 +756,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 @@ -890,52 +799,43 @@ 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
        * document global text.
        * 
* * int64 text_offset = 3; - * * @return The textOffset. */ @java.lang.Override @@ -943,43 +843,36 @@ public long getTextOffset() { return textOffset_; } /** - * - * *
        * The index of the first character in [Document.text][google.cloud.documentai.v1.Document.text] in the overall
        * document global text.
        * 
* * 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
        * document global text.
        * 
* * 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) { @@ -992,12 +885,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(); } @@ -1006,16 +899,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; @@ -1030,40 +923,32 @@ 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].
      * 
@@ -1073,32 +958,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.
      * 
@@ -1108,32 +985,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.
      * 
@@ -1143,62 +1012,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>
@@ -1206,13 +1063,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>
@@ -1220,38 +1074,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.
      * 
@@ -1261,8 +1107,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.
@@ -1270,16 +1114,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_ = "";
@@ -1288,15 +1131,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)
@@ -1315,201 +1159,174 @@ 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) {
         throw e.setUnfinishedMessage(this);
       } catch (java.io.IOException e) {
-        throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+        throw new com.google.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) @@ -1528,64 +1345,57 @@ 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) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(this); + throw new com.google.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 @@ -1596,14 +1406,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 @@ -1612,29 +1419,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 { @@ -1643,7 +1450,6 @@ public com.google.protobuf.ByteString getUnitBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1655,7 +1461,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (size_ != 0F) { output.writeFloat(1, size_); } @@ -1672,7 +1479,8 @@ public int getSerializedSize() { size = 0; if (size_ != 0F) { - 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_); @@ -1685,17 +1493,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; } @@ -1708,7 +1517,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(); @@ -1717,94 +1527,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 @@ -1814,32 +1617,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() @@ -1847,15 +1645,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(); @@ -1867,9 +1666,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 @@ -1888,8 +1687,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(); @@ -1900,41 +1698,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; @@ -1942,8 +1737,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()); } @@ -1970,8 +1764,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) { @@ -1981,16 +1774,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 @@ -1998,36 +1788,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; @@ -2035,20 +1819,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; @@ -2057,21 +1839,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 { @@ -2079,66 +1860,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) { @@ -2151,12 +1924,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(); } @@ -2165,16 +1938,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; @@ -2189,19 +1962,17 @@ 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 @@ -2209,25 +1980,18 @@ 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].
      * 
@@ -2242,14 +2006,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 @@ -2257,14 +2018,11 @@ public boolean hasColor() { return color_ != null; } /** - * - * *
      * Text color.
      * 
* * .google.type.Color color = 2; - * * @return The color. */ @java.lang.Override @@ -2272,8 +2030,6 @@ public com.google.type.Color getColor() { return color_ == null ? com.google.type.Color.getDefaultInstance() : color_; } /** - * - * *
      * Text color.
      * 
@@ -2288,14 +2044,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 @@ -2303,25 +2056,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.
      * 
@@ -2336,15 +2082,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 @@ -2353,30 +2096,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 { @@ -2387,15 +2130,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 @@ -2404,30 +2144,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 { @@ -2438,8 +2178,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>
@@ -2447,7 +2185,6 @@ public com.google.protobuf.ByteString getTextStyleBytes() {
      * 
* * string text_decoration = 6; - * * @return The textDecoration. */ @java.lang.Override @@ -2456,15 +2193,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>
@@ -2472,15 +2208,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 { @@ -2491,14 +2228,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 @@ -2506,25 +2240,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.
      * 
@@ -2537,7 +2264,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; @@ -2549,7 +2275,8 @@ public final boolean isInitialized() { } @java.lang.Override - public 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()); } @@ -2581,13 +2308,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_); @@ -2599,7 +2329,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; @@ -2609,32 +2340,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; @@ -2674,94 +2411,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 @@ -2771,8 +2502,6 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * Annotation for common text style attributes. This adheres to CSS
      * conventions as much as possible.
@@ -2780,24 +2509,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()
@@ -2805,15 +2531,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();
@@ -2851,9 +2578,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
@@ -2872,8 +2599,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 {
@@ -2905,41 +2631,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;
@@ -2947,8 +2670,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());
         }
@@ -3004,47 +2726,34 @@ 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].
        * 
@@ -3065,8 +2774,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].
        * 
@@ -3085,8 +2792,6 @@ public Builder setTextAnchor( return this; } /** - * - * *
        * Text anchor indexing into the [Document.text][google.cloud.documentai.v1.Document.text].
        * 
@@ -3097,9 +2802,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; } @@ -3111,8 +2814,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].
        * 
@@ -3131,8 +2832,6 @@ public Builder clearTextAnchor() { return this; } /** - * - * *
        * Text anchor indexing into the [Document.text][google.cloud.documentai.v1.Document.text].
        * 
@@ -3140,13 +2839,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].
        * 
@@ -3157,14 +2854,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].
        * 
@@ -3172,17 +2866,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_; @@ -3190,31 +2881,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() { @@ -3225,8 +2909,6 @@ public com.google.type.Color getColor() { } } /** - * - * *
        * Text color.
        * 
@@ -3247,15 +2929,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(); @@ -3266,8 +2947,6 @@ public Builder setColor(com.google.type.Color.Builder builderForValue) { return this; } /** - * - * *
        * Text color.
        * 
@@ -3277,7 +2956,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; } @@ -3289,8 +2969,6 @@ public Builder mergeColor(com.google.type.Color value) { return this; } /** - * - * *
        * Text color.
        * 
@@ -3309,8 +2987,6 @@ public Builder clearColor() { return this; } /** - * - * *
        * Text color.
        * 
@@ -3318,13 +2994,11 @@ public Builder clearColor() { * .google.type.Color color = 2; */ public com.google.type.Color.Builder getColorBuilder() { - + onChanged(); return getColorFieldBuilder().getBuilder(); } /** - * - * *
        * Text color.
        * 
@@ -3335,12 +3009,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.
        * 
@@ -3348,14 +3021,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_; @@ -3363,45 +3036,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.
        * 
@@ -3422,15 +3084,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(); @@ -3441,8 +3102,6 @@ public Builder setBackgroundColor(com.google.type.Color.Builder builderForValue) return this; } /** - * - * *
        * Text background color.
        * 
@@ -3453,7 +3112,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; } @@ -3465,8 +3124,6 @@ public Builder mergeBackgroundColor(com.google.type.Color value) { return this; } /** - * - * *
        * Text background color.
        * 
@@ -3485,8 +3142,6 @@ public Builder clearBackgroundColor() { return this; } /** - * - * *
        * Text background color.
        * 
@@ -3494,13 +3149,11 @@ public Builder clearBackgroundColor() { * .google.type.Color background_color = 3; */ public com.google.type.Color.Builder getBackgroundColorBuilder() { - + onChanged(); return getBackgroundColorFieldBuilder().getBuilder(); } /** - * - * *
        * Text background color.
        * 
@@ -3511,14 +3164,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.
        * 
@@ -3526,15 +3176,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_; @@ -3542,21 +3191,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; @@ -3565,22 +3212,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 { @@ -3588,64 +3234,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; @@ -3653,21 +3292,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; @@ -3676,22 +3313,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 { @@ -3699,64 +3335,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; @@ -3764,8 +3393,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>
@@ -3773,13 +3400,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; @@ -3788,8 +3415,6 @@ public java.lang.String getTextDecoration() { } } /** - * - * *
        * Text decoration. Follows CSS standard.
        * <text-decoration-line> <text-decoration-color> <text-decoration-style>
@@ -3797,14 +3422,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 { @@ -3812,8 +3438,6 @@ public com.google.protobuf.ByteString getTextDecorationBytes() { } } /** - * - * *
        * Text decoration. Follows CSS standard.
        * <text-decoration-line> <text-decoration-color> <text-decoration-style>
@@ -3821,22 +3445,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>
@@ -3844,18 +3466,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>
@@ -3863,16 +3482,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; @@ -3880,47 +3499,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.
        * 
@@ -3941,8 +3547,6 @@ public Builder setFontSize(com.google.cloud.documentai.v1.Document.Style.FontSiz return this; } /** - * - * *
        * Font size.
        * 
@@ -3961,8 +3565,6 @@ public Builder setFontSize( return this; } /** - * - * *
        * Font size.
        * 
@@ -3973,9 +3575,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; } @@ -3987,8 +3587,6 @@ public Builder mergeFontSize(com.google.cloud.documentai.v1.Document.Style.FontS return this; } /** - * - * *
        * Font size.
        * 
@@ -4007,8 +3605,6 @@ public Builder clearFontSize() { return this; } /** - * - * *
        * Font size.
        * 
@@ -4016,32 +3612,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.
        * 
@@ -4049,22 +3639,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) { @@ -4077,12 +3663,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(); } @@ -4091,16 +3677,16 @@ public static com.google.cloud.documentai.v1.Document.Style getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser