From c873d103a625d41838c582737f4b98da6605d47f Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Tue, 20 Jun 2023 17:06:24 -0400 Subject: [PATCH] feat: [documentai] add StyleInfo to document.proto (#9551) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * feat: add StyleInfo to document.proto feat: add REPLACE enum to OperationType in document.proto feat: add PropertyMetadata and EntityTypeMetadata to document_schema.proto feat: add IMPORTING enum to State in processor.proto chore: updated comments PiperOrigin-RevId: 540932243 Source-Link: https://github.com/googleapis/googleapis/commit/120a89c6c7660b0503a796f91e6e469fb3354131 Source-Link: https://github.com/googleapis/googleapis-gen/commit/82a61cd89b4899ac94c87791916b77bf2ab73d16 Copy-Tag: eyJwIjoiamF2YS1kb2N1bWVudC1haS8uT3dsQm90LnlhbWwiLCJoIjoiODJhNjFjZDg5YjQ4OTlhYzk0Yzg3NzkxOTE2Yjc3YmYyYWI3M2QxNiJ9 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * feat: add StyleInfo to document.proto feat: add IMPORTING enum to State in processor.proto chore: updated comments PiperOrigin-RevId: 540937637 Source-Link: https://github.com/googleapis/googleapis/commit/b2b372306493306c2c08e808def1412366df690a Source-Link: https://github.com/googleapis/googleapis-gen/commit/9f620d19ce9a3aaf50136c9985d605106f72baeb Copy-Tag: eyJwIjoiamF2YS1kb2N1bWVudC1haS8uT3dsQm90LnlhbWwiLCJoIjoiOWY2MjBkMTljZTlhM2FhZjUwMTM2Yzk5ODVkNjA1MTA2ZjcyYmFlYiJ9 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot --- java-document-ai/README.md | 2 +- .../v1/DocumentProcessorServiceClient.java | 92 +- .../cloud/documentai/v1/package-info.java | 2 +- .../DocumentProcessorServiceStubSettings.java | 34 +- .../DocumentProcessorServiceClient.java | 98 +- .../v1beta3/DocumentServiceClient.java | 801 +++ .../v1beta3/DocumentServiceSettings.java | 274 + .../documentai/v1beta3/gapic_metadata.json | 24 + .../documentai/v1beta3/package-info.java | 20 +- .../DocumentProcessorServiceStubSettings.java | 34 +- .../v1beta3/stub/DocumentServiceStub.java | 89 + .../stub/DocumentServiceStubSettings.java | 541 ++ .../GrpcDocumentServiceCallableFactory.java | 115 + .../v1beta3/stub/GrpcDocumentServiceStub.java | 323 ++ ...ttpJsonDocumentServiceCallableFactory.java | 105 + .../stub/HttpJsonDocumentServiceStub.java | 529 ++ .../DocumentServiceClientHttpJsonTest.java | 405 ++ .../v1beta3/DocumentServiceClientTest.java | 360 ++ .../v1beta3/MockDocumentService.java | 59 + .../v1beta3/MockDocumentServiceImpl.java | 124 + .../v1/DocumentProcessorServiceGrpc.java | 60 +- .../v1beta3/DocumentProcessorServiceGrpc.java | 60 +- .../v1beta3/DocumentServiceGrpc.java | 617 ++ .../documentai/v1/BatchProcessMetadata.java | 96 +- .../documentai/v1/BatchProcessRequest.java | 118 +- .../v1/BatchProcessRequestOrBuilder.java | 28 +- .../documentai/v1/BatchProcessResponse.java | 6 +- .../documentai/v1/CreateProcessorRequest.java | 112 +- .../v1/CreateProcessorRequestOrBuilder.java | 24 +- .../v1/DeleteProcessorMetadata.java | 32 +- .../v1/DeleteProcessorMetadataOrBuilder.java | 6 +- .../documentai/v1/DeleteProcessorRequest.java | 8 +- .../v1/DeleteProcessorVersionMetadata.java | 32 +- ...leteProcessorVersionMetadataOrBuilder.java | 6 +- .../v1/DeleteProcessorVersionRequest.java | 8 +- .../v1/DeployProcessorVersionMetadata.java | 32 +- ...ployProcessorVersionMetadataOrBuilder.java | 6 +- .../v1/DeployProcessorVersionRequest.java | 8 +- .../v1/DeployProcessorVersionResponse.java | 8 +- .../v1/DisableProcessorMetadata.java | 32 +- .../v1/DisableProcessorMetadataOrBuilder.java | 6 +- .../v1/DisableProcessorRequest.java | 8 +- .../v1/DisableProcessorResponse.java | 10 +- .../google/cloud/documentai/v1/Document.java | 3775 ++++++++++-- .../documentai/v1/DocumentAiProcessor.java | 54 +- .../documentai/v1/DocumentOrBuilder.java | 31 +- .../cloud/documentai/v1/DocumentProto.java | 93 +- .../cloud/documentai/v1/DocumentSchema.java | 101 +- .../v1/EnableProcessorMetadata.java | 32 +- .../v1/EnableProcessorMetadataOrBuilder.java | 6 +- .../documentai/v1/EnableProcessorRequest.java | 8 +- .../v1/EnableProcessorResponse.java | 10 +- .../v1/EvaluateProcessorVersionMetadata.java | 32 +- ...uateProcessorVersionMetadataOrBuilder.java | 6 +- .../v1/EvaluateProcessorVersionRequest.java | 8 +- .../v1/EvaluateProcessorVersionResponse.java | 8 +- .../v1/FetchProcessorTypesRequest.java | 45 +- .../FetchProcessorTypesRequestOrBuilder.java | 10 +- .../v1/FetchProcessorTypesResponse.java | 8 +- .../documentai/v1/GetProcessorRequest.java | 8 +- .../v1/GetProcessorTypeRequest.java | 8 +- .../v1/GetProcessorVersionRequest.java | 8 +- .../documentai/v1/HumanReviewStatus.java | 66 +- .../v1/HumanReviewStatusOrBuilder.java | 16 +- .../documentai/v1/ListEvaluationsRequest.java | 22 +- .../v1/ListEvaluationsRequestOrBuilder.java | 4 +- .../v1/ListEvaluationsResponse.java | 4 +- .../v1/ListProcessorTypesRequest.java | 61 +- .../ListProcessorTypesRequestOrBuilder.java | 14 +- .../v1/ListProcessorTypesResponse.java | 8 +- .../v1/ListProcessorVersionsRequest.java | 16 +- ...ListProcessorVersionsRequestOrBuilder.java | 4 +- .../v1/ListProcessorVersionsResponse.java | 8 +- .../documentai/v1/ListProcessorsRequest.java | 16 +- .../v1/ListProcessorsRequestOrBuilder.java | 4 +- .../documentai/v1/ListProcessorsResponse.java | 8 +- .../cloud/documentai/v1/ProcessRequest.java | 108 +- .../v1/ProcessRequestOrBuilder.java | 25 +- .../cloud/documentai/v1/ProcessResponse.java | 8 +- .../google/cloud/documentai/v1/Processor.java | 56 +- .../documentai/v1/ProcessorOrBuilder.java | 16 +- .../cloud/documentai/v1/ProcessorType.java | 41 +- .../documentai/v1/ProcessorTypeOrBuilder.java | 4 +- .../cloud/documentai/v1/ProcessorVersion.java | 44 +- .../v1/ProcessorVersionOrBuilder.java | 2 +- .../v1/ReviewDocumentOperationMetadata.java | 32 +- ...iewDocumentOperationMetadataOrBuilder.java | 6 +- .../documentai/v1/ReviewDocumentRequest.java | 43 +- .../v1/ReviewDocumentRequestOrBuilder.java | 10 +- .../documentai/v1/ReviewDocumentResponse.java | 8 +- .../SetDefaultProcessorVersionMetadata.java | 30 +- ...aultProcessorVersionMetadataOrBuilder.java | 6 +- .../v1/SetDefaultProcessorVersionRequest.java | 8 +- .../SetDefaultProcessorVersionResponse.java | 8 +- .../v1/TrainProcessorVersionMetadata.java | 24 +- ...rainProcessorVersionMetadataOrBuilder.java | 6 +- .../v1/TrainProcessorVersionRequest.java | 50 +- ...TrainProcessorVersionRequestOrBuilder.java | 9 +- .../v1/TrainProcessorVersionResponse.java | 6 +- .../v1/UndeployProcessorVersionMetadata.java | 30 +- ...ployProcessorVersionMetadataOrBuilder.java | 6 +- .../v1/UndeployProcessorVersionRequest.java | 8 +- .../v1/UndeployProcessorVersionResponse.java | 8 +- .../google/cloud/documentai/v1/barcode.proto | 2 +- .../google/cloud/documentai/v1/document.proto | 116 +- .../cloud/documentai/v1/document_io.proto | 2 +- .../v1/document_processor_service.proto | 302 +- .../cloud/documentai/v1/document_schema.proto | 15 +- .../cloud/documentai/v1/evaluation.proto | 2 +- .../google/cloud/documentai/v1/geometry.proto | 2 +- .../documentai/v1/operation_metadata.proto | 2 +- .../cloud/documentai/v1/processor.proto | 22 +- .../cloud/documentai/v1/processor_type.proto | 7 +- .../v1beta3/BatchProcessMetadata.java | 186 +- .../v1beta3/BatchProcessRequest.java | 224 +- .../v1beta3/BatchProcessRequestOrBuilder.java | 32 +- .../v1beta3/BatchProcessResponse.java | 6 +- .../v1beta3/CreateProcessorRequest.java | 112 +- .../CreateProcessorRequestOrBuilder.java | 24 +- .../cloud/documentai/v1beta3/Dataset.java | 5108 +++++++++++++++++ .../documentai/v1beta3/DatasetOrBuilder.java | 273 + .../documentai/v1beta3/DatasetProto.java | 185 + .../documentai/v1beta3/DatasetSchema.java | 930 +++ .../documentai/v1beta3/DatasetSchemaName.java | 226 + .../v1beta3/DatasetSchemaOrBuilder.java | 95 + .../v1beta3/DeleteProcessorMetadata.java | 32 +- .../DeleteProcessorMetadataOrBuilder.java | 6 +- .../v1beta3/DeleteProcessorRequest.java | 8 +- .../DeleteProcessorVersionMetadata.java | 32 +- ...leteProcessorVersionMetadataOrBuilder.java | 6 +- .../DeleteProcessorVersionRequest.java | 8 +- .../DeployProcessorVersionMetadata.java | 32 +- ...ployProcessorVersionMetadataOrBuilder.java | 6 +- .../DeployProcessorVersionRequest.java | 8 +- .../DeployProcessorVersionResponse.java | 8 +- .../v1beta3/DisableProcessorMetadata.java | 32 +- .../DisableProcessorMetadataOrBuilder.java | 6 +- .../v1beta3/DisableProcessorRequest.java | 8 +- .../v1beta3/DisableProcessorResponse.java | 10 +- .../cloud/documentai/v1beta3/Document.java | 3818 ++++++++++-- .../v1beta3/DocumentAiDocumentSchema.java | 104 +- .../v1beta3/DocumentAiDocumentService.java | 174 + .../v1beta3/DocumentAiProcessor.java | 56 +- .../v1beta3/DocumentAiProcessorService.java | 794 +-- .../documentai/v1beta3/DocumentIoProto.java | 20 +- .../documentai/v1beta3/DocumentOrBuilder.java | 31 +- .../documentai/v1beta3/DocumentProto.java | 297 +- .../documentai/v1beta3/DocumentSchema.java | 804 ++- .../v1beta3/EnableProcessorMetadata.java | 32 +- .../EnableProcessorMetadataOrBuilder.java | 6 +- .../v1beta3/EnableProcessorRequest.java | 8 +- .../v1beta3/EnableProcessorResponse.java | 10 +- .../v1beta3/EntityTypeMetadata.java | 535 ++ .../v1beta3/EntityTypeMetadataOrBuilder.java | 38 + .../EvaluateProcessorVersionMetadata.java | 32 +- ...uateProcessorVersionMetadataOrBuilder.java | 6 +- .../EvaluateProcessorVersionRequest.java | 8 +- .../EvaluateProcessorVersionResponse.java | 8 +- .../v1beta3/FetchProcessorTypesRequest.java | 45 +- .../FetchProcessorTypesRequestOrBuilder.java | 10 +- .../v1beta3/FetchProcessorTypesResponse.java | 8 +- .../v1beta3/GetDatasetSchemaRequest.java | 746 +++ .../GetDatasetSchemaRequestOrBuilder.java | 71 + .../v1beta3/GetProcessorRequest.java | 8 +- .../v1beta3/GetProcessorTypeRequest.java | 8 +- .../v1beta3/GetProcessorVersionRequest.java | 8 +- .../documentai/v1beta3/HumanReviewStatus.java | 66 +- .../v1beta3/HumanReviewStatusOrBuilder.java | 16 +- .../ImportProcessorVersionMetadata.java | 30 +- ...portProcessorVersionMetadataOrBuilder.java | 6 +- .../ImportProcessorVersionRequest.java | 73 +- ...mportProcessorVersionRequestOrBuilder.java | 9 +- .../ImportProcessorVersionResponse.java | 8 +- .../v1beta3/ListEvaluationsRequest.java | 22 +- .../ListEvaluationsRequestOrBuilder.java | 4 +- .../v1beta3/ListEvaluationsResponse.java | 4 +- .../v1beta3/ListProcessorTypesRequest.java | 61 +- .../ListProcessorTypesRequestOrBuilder.java | 14 +- .../v1beta3/ListProcessorTypesResponse.java | 8 +- .../v1beta3/ListProcessorVersionsRequest.java | 16 +- ...ListProcessorVersionsRequestOrBuilder.java | 4 +- .../ListProcessorVersionsResponse.java | 8 +- .../v1beta3/ListProcessorsRequest.java | 16 +- .../ListProcessorsRequestOrBuilder.java | 4 +- .../v1beta3/ListProcessorsResponse.java | 8 +- .../cloud/documentai/v1beta3/OcrConfig.java | 197 +- .../v1beta3/OcrConfigOrBuilder.java | 45 +- .../documentai/v1beta3/ProcessOptions.java | 24 +- .../v1beta3/ProcessOptionsOrBuilder.java | 6 +- .../documentai/v1beta3/ProcessRequest.java | 176 +- .../v1beta3/ProcessRequestOrBuilder.java | 44 +- .../documentai/v1beta3/ProcessResponse.java | 64 +- .../v1beta3/ProcessResponseOrBuilder.java | 16 +- .../cloud/documentai/v1beta3/Processor.java | 56 +- .../v1beta3/ProcessorOrBuilder.java | 16 +- .../documentai/v1beta3/ProcessorType.java | 41 +- .../v1beta3/ProcessorTypeOrBuilder.java | 4 +- .../documentai/v1beta3/ProcessorVersion.java | 44 +- .../v1beta3/ProcessorVersionOrBuilder.java | 2 +- .../documentai/v1beta3/PropertyMetadata.java | 534 ++ .../v1beta3/PropertyMetadataOrBuilder.java | 38 + .../ReviewDocumentOperationMetadata.java | 34 +- ...iewDocumentOperationMetadataOrBuilder.java | 6 +- .../v1beta3/ReviewDocumentRequest.java | 51 +- .../ReviewDocumentRequestOrBuilder.java | 14 +- .../v1beta3/ReviewDocumentResponse.java | 8 +- .../SetDefaultProcessorVersionMetadata.java | 30 +- ...aultProcessorVersionMetadataOrBuilder.java | 6 +- .../SetDefaultProcessorVersionRequest.java | 8 +- .../SetDefaultProcessorVersionResponse.java | 8 +- .../TrainProcessorVersionMetadata.java | 24 +- ...rainProcessorVersionMetadataOrBuilder.java | 6 +- .../v1beta3/TrainProcessorVersionRequest.java | 1428 ++++- ...TrainProcessorVersionRequestOrBuilder.java | 56 +- .../TrainProcessorVersionResponse.java | 6 +- .../UndeployProcessorVersionMetadata.java | 30 +- ...ployProcessorVersionMetadataOrBuilder.java | 6 +- .../UndeployProcessorVersionRequest.java | 8 +- .../UndeployProcessorVersionResponse.java | 8 +- .../UpdateDatasetOperationMetadata.java | 711 +++ ...dateDatasetOperationMetadataOrBuilder.java | 60 + .../v1beta3/UpdateDatasetRequest.java | 986 ++++ .../UpdateDatasetRequestOrBuilder.java | 104 + .../v1beta3/UpdateDatasetSchemaRequest.java | 1011 ++++ .../UpdateDatasetSchemaRequestOrBuilder.java | 104 + .../cloud/documentai/v1beta3/barcode.proto | 2 +- .../cloud/documentai/v1beta3/dataset.proto | 138 + .../cloud/documentai/v1beta3/document.proto | 118 +- .../documentai/v1beta3/document_io.proto | 13 +- .../v1beta3/document_processor_service.proto | 397 +- .../documentai/v1beta3/document_schema.proto | 53 +- .../documentai/v1beta3/document_service.proto | 112 + .../cloud/documentai/v1beta3/evaluation.proto | 2 +- .../cloud/documentai/v1beta3/geometry.proto | 2 +- .../v1beta3/operation_metadata.proto | 2 +- .../cloud/documentai/v1beta3/processor.proto | 22 +- .../documentai/v1beta3/processor_type.proto | 7 +- .../SyncBatchProcessDocumentsString.java | 7 +- .../SyncProcessDocumentString.java | 7 +- .../SyncCreateSetCredentialsProvider.java | 45 + .../SyncCreateSetCredentialsProvider1.java | 41 + .../create/SyncCreateSetEndpoint.java | 42 + .../AsyncGetDatasetSchema.java | 51 + .../SyncGetDatasetSchema.java | 47 + ...SyncGetDatasetSchemaDatasetschemaname.java | 42 + .../SyncGetDatasetSchemaString.java | 42 + .../getlocation/AsyncGetLocation.java | 45 + .../getlocation/SyncGetLocation.java | 42 + .../listlocations/AsyncListLocations.java | 54 + .../AsyncListLocationsPaged.java | 62 + .../listlocations/SyncListLocations.java | 50 + .../updatedataset/AsyncUpdateDataset.java | 52 + .../updatedataset/AsyncUpdateDatasetLRO.java | 52 + .../updatedataset/SyncUpdateDataset.java | 47 + .../SyncUpdateDatasetDatasetFieldmask.java | 43 + .../AsyncUpdateDatasetSchema.java | 51 + .../SyncUpdateDatasetSchema.java | 47 + ...teDatasetSchemaDatasetschemaFieldmask.java | 43 + .../SyncGetDatasetSchema.java | 49 + .../SyncGetDatasetSchema.java | 49 + 260 files changed, 30727 insertions(+), 3766 deletions(-) create mode 100644 java-document-ai/google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1beta3/DocumentServiceClient.java create mode 100644 java-document-ai/google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1beta3/DocumentServiceSettings.java create mode 100644 java-document-ai/google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1beta3/stub/DocumentServiceStub.java create mode 100644 java-document-ai/google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1beta3/stub/DocumentServiceStubSettings.java create mode 100644 java-document-ai/google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1beta3/stub/GrpcDocumentServiceCallableFactory.java create mode 100644 java-document-ai/google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1beta3/stub/GrpcDocumentServiceStub.java create mode 100644 java-document-ai/google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1beta3/stub/HttpJsonDocumentServiceCallableFactory.java create mode 100644 java-document-ai/google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1beta3/stub/HttpJsonDocumentServiceStub.java create mode 100644 java-document-ai/google-cloud-document-ai/src/test/java/com/google/cloud/documentai/v1beta3/DocumentServiceClientHttpJsonTest.java create mode 100644 java-document-ai/google-cloud-document-ai/src/test/java/com/google/cloud/documentai/v1beta3/DocumentServiceClientTest.java create mode 100644 java-document-ai/google-cloud-document-ai/src/test/java/com/google/cloud/documentai/v1beta3/MockDocumentService.java create mode 100644 java-document-ai/google-cloud-document-ai/src/test/java/com/google/cloud/documentai/v1beta3/MockDocumentServiceImpl.java create mode 100644 java-document-ai/grpc-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/DocumentServiceGrpc.java create mode 100644 java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/Dataset.java create mode 100644 java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/DatasetOrBuilder.java create mode 100644 java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/DatasetProto.java create mode 100644 java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/DatasetSchema.java create mode 100644 java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/DatasetSchemaName.java create mode 100644 java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/DatasetSchemaOrBuilder.java create mode 100644 java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/DocumentAiDocumentService.java create mode 100644 java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/EntityTypeMetadata.java create mode 100644 java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/EntityTypeMetadataOrBuilder.java create mode 100644 java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/GetDatasetSchemaRequest.java create mode 100644 java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/GetDatasetSchemaRequestOrBuilder.java create mode 100644 java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/PropertyMetadata.java create mode 100644 java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/PropertyMetadataOrBuilder.java create mode 100644 java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/UpdateDatasetOperationMetadata.java create mode 100644 java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/UpdateDatasetOperationMetadataOrBuilder.java create mode 100644 java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/UpdateDatasetRequest.java create mode 100644 java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/UpdateDatasetRequestOrBuilder.java create mode 100644 java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/UpdateDatasetSchemaRequest.java create mode 100644 java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/UpdateDatasetSchemaRequestOrBuilder.java create mode 100644 java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/proto/google/cloud/documentai/v1beta3/dataset.proto create mode 100644 java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/proto/google/cloud/documentai/v1beta3/document_service.proto create mode 100644 java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentservice/create/SyncCreateSetCredentialsProvider.java create mode 100644 java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentservice/create/SyncCreateSetCredentialsProvider1.java create mode 100644 java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentservice/create/SyncCreateSetEndpoint.java create mode 100644 java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentservice/getdatasetschema/AsyncGetDatasetSchema.java create mode 100644 java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentservice/getdatasetschema/SyncGetDatasetSchema.java create mode 100644 java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentservice/getdatasetschema/SyncGetDatasetSchemaDatasetschemaname.java create mode 100644 java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentservice/getdatasetschema/SyncGetDatasetSchemaString.java create mode 100644 java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentservice/getlocation/AsyncGetLocation.java create mode 100644 java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentservice/getlocation/SyncGetLocation.java create mode 100644 java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentservice/listlocations/AsyncListLocations.java create mode 100644 java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentservice/listlocations/AsyncListLocationsPaged.java create mode 100644 java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentservice/listlocations/SyncListLocations.java create mode 100644 java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentservice/updatedataset/AsyncUpdateDataset.java create mode 100644 java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentservice/updatedataset/AsyncUpdateDatasetLRO.java create mode 100644 java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentservice/updatedataset/SyncUpdateDataset.java create mode 100644 java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentservice/updatedataset/SyncUpdateDatasetDatasetFieldmask.java create mode 100644 java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentservice/updatedatasetschema/AsyncUpdateDatasetSchema.java create mode 100644 java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentservice/updatedatasetschema/SyncUpdateDatasetSchema.java create mode 100644 java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentservice/updatedatasetschema/SyncUpdateDatasetSchemaDatasetschemaFieldmask.java create mode 100644 java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentservicesettings/getdatasetschema/SyncGetDatasetSchema.java create mode 100644 java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/stub/documentservicestubsettings/getdatasetschema/SyncGetDatasetSchema.java diff --git a/java-document-ai/README.md b/java-document-ai/README.md index 8b70184d0fdf..2a2bf14c9c75 100644 --- a/java-document-ai/README.md +++ b/java-document-ai/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.16.0 + 26.17.0 pom import diff --git a/java-document-ai/google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1/DocumentProcessorServiceClient.java b/java-document-ai/google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1/DocumentProcessorServiceClient.java index 438b4e2a4dcc..51873b4c19dd 100644 --- a/java-document-ai/google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1/DocumentProcessorServiceClient.java +++ b/java-document-ai/google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1/DocumentProcessorServiceClient.java @@ -45,7 +45,7 @@ // AUTO-GENERATED DOCUMENTATION AND CLASS. /** - * Service Description: Service to call Cloud DocumentAI to process documents according to the + * Service Description: Service to call Document AI 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. @@ -525,8 +525,9 @@ public final UnaryCallable batchProcessDocuments // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Fetches processor types. Note that we do not use ListProcessorTypes here because it is not - * paginated. + * Fetches processor types. Note that we don't use + * [ListProcessorTypes][google.cloud.documentai.v1.DocumentProcessorService.ListProcessorTypes] + * here, because it isn't paginated. * *

Sample code: * @@ -544,9 +545,8 @@ public final UnaryCallable batchProcessDocuments * } * } * - * @param parent Required. The project of processor type to list. The available processor types - * may depend on the allow-listing on projects. Format: - * `projects/{project}/locations/{location}` + * @param parent Required. The location of processor types to list. Format: + * `projects/{project}/locations/{location}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final FetchProcessorTypesResponse fetchProcessorTypes(LocationName parent) { @@ -559,8 +559,9 @@ public final FetchProcessorTypesResponse fetchProcessorTypes(LocationName parent // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Fetches processor types. Note that we do not use ListProcessorTypes here because it is not - * paginated. + * Fetches processor types. Note that we don't use + * [ListProcessorTypes][google.cloud.documentai.v1.DocumentProcessorService.ListProcessorTypes] + * here, because it isn't paginated. * *

Sample code: * @@ -578,9 +579,8 @@ public final FetchProcessorTypesResponse fetchProcessorTypes(LocationName parent * } * } * - * @param parent Required. The project of processor type to list. The available processor types - * may depend on the allow-listing on projects. Format: - * `projects/{project}/locations/{location}` + * @param parent Required. The location of processor types to list. Format: + * `projects/{project}/locations/{location}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final FetchProcessorTypesResponse fetchProcessorTypes(String parent) { @@ -591,8 +591,9 @@ public final FetchProcessorTypesResponse fetchProcessorTypes(String parent) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Fetches processor types. Note that we do not use ListProcessorTypes here because it is not - * paginated. + * Fetches processor types. Note that we don't use + * [ListProcessorTypes][google.cloud.documentai.v1.DocumentProcessorService.ListProcessorTypes] + * here, because it isn't paginated. * *

Sample code: * @@ -622,8 +623,9 @@ public final FetchProcessorTypesResponse fetchProcessorTypes(FetchProcessorTypes // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Fetches processor types. Note that we do not use ListProcessorTypes here because it is not - * paginated. + * Fetches processor types. Note that we don't use + * [ListProcessorTypes][google.cloud.documentai.v1.DocumentProcessorService.ListProcessorTypes] + * here, because it isn't paginated. * *

Sample code: * @@ -673,9 +675,8 @@ public final FetchProcessorTypesResponse fetchProcessorTypes(FetchProcessorTypes * } * } * - * @param parent Required. The location of processor type to list. The available processor types - * may depend on the allow-listing on projects. Format: - * `projects/{project}/locations/{location}` + * @param parent Required. The location of processor types to list. Format: + * `projects/{project}/locations/{location}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListProcessorTypesPagedResponse listProcessorTypes(LocationName parent) { @@ -708,9 +709,8 @@ public final ListProcessorTypesPagedResponse listProcessorTypes(LocationName par * } * } * - * @param parent Required. The location of processor type to list. The available processor types - * may depend on the allow-listing on projects. Format: - * `projects/{project}/locations/{location}` + * @param parent Required. The location of processor types to list. Format: + * `projects/{project}/locations/{location}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListProcessorTypesPagedResponse listProcessorTypes(String parent) { @@ -1232,7 +1232,7 @@ public final UnaryCallable getProcessorCallable( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Trains a new processor version. Operation metadata is returned as - * cloud_documentai_core.TrainProcessorVersionMetadata. + * [TrainProcessorVersionMetadata][google.cloud.documentai.v1.TrainProcessorVersionMetadata]. * *

Sample code: * @@ -1269,7 +1269,7 @@ public final UnaryCallable getProcessorCallable( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Trains a new processor version. Operation metadata is returned as - * cloud_documentai_core.TrainProcessorVersionMetadata. + * [TrainProcessorVersionMetadata][google.cloud.documentai.v1.TrainProcessorVersionMetadata]. * *

Sample code: * @@ -1306,7 +1306,7 @@ public final UnaryCallable getProcessorCallable( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Trains a new processor version. Operation metadata is returned as - * cloud_documentai_core.TrainProcessorVersionMetadata. + * [TrainProcessorVersionMetadata][google.cloud.documentai.v1.TrainProcessorVersionMetadata]. * *

Sample code: * @@ -1342,7 +1342,7 @@ public final UnaryCallable getProcessorCallable( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Trains a new processor version. Operation metadata is returned as - * cloud_documentai_core.TrainProcessorVersionMetadata. + * [TrainProcessorVersionMetadata][google.cloud.documentai.v1.TrainProcessorVersionMetadata]. * *

Sample code: * @@ -1382,7 +1382,7 @@ public final UnaryCallable getProcessorCallable( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Trains a new processor version. Operation metadata is returned as - * cloud_documentai_core.TrainProcessorVersionMetadata. + * [TrainProcessorVersionMetadata][google.cloud.documentai.v1.TrainProcessorVersionMetadata]. * *

Sample code: * @@ -2223,8 +2223,8 @@ public final OperationFuture deleteProces // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Creates a processor from the type processor that the user chose. The processor will be at - * "ENABLED" state by default after its creation. + * Creates a processor from the [ProcessorType][google.cloud.documentai.v1.ProcessorType] + * provided. The processor will be at `ENABLED` state by default after its creation. * *

Sample code: * @@ -2244,8 +2244,11 @@ public final OperationFuture deleteProces * * @param parent Required. The parent (project and location) under which to create the processor. * Format: `projects/{project}/locations/{location}` - * @param processor Required. The processor to be created, requires [processor_type] and - * [display_name] to be set. Also, the processor is under CMEK if CMEK fields are set. + * @param processor Required. The processor to be created, requires + * [Processor.type][google.cloud.documentai.v1.Processor.type] and [Processor.display_name]][] + * to be set. Also, the + * [Processor.kms_key_name][google.cloud.documentai.v1.Processor.kms_key_name] field must be + * set if the processor is under CMEK. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final Processor createProcessor(LocationName parent, Processor processor) { @@ -2259,8 +2262,8 @@ public final Processor createProcessor(LocationName parent, Processor processor) // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Creates a processor from the type processor that the user chose. The processor will be at - * "ENABLED" state by default after its creation. + * Creates a processor from the [ProcessorType][google.cloud.documentai.v1.ProcessorType] + * provided. The processor will be at `ENABLED` state by default after its creation. * *

Sample code: * @@ -2280,8 +2283,11 @@ public final Processor createProcessor(LocationName parent, Processor processor) * * @param parent Required. The parent (project and location) under which to create the processor. * Format: `projects/{project}/locations/{location}` - * @param processor Required. The processor to be created, requires [processor_type] and - * [display_name] to be set. Also, the processor is under CMEK if CMEK fields are set. + * @param processor Required. The processor to be created, requires + * [Processor.type][google.cloud.documentai.v1.Processor.type] and [Processor.display_name]][] + * to be set. Also, the + * [Processor.kms_key_name][google.cloud.documentai.v1.Processor.kms_key_name] field must be + * set if the processor is under CMEK. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final Processor createProcessor(String parent, Processor processor) { @@ -2292,8 +2298,8 @@ public final Processor createProcessor(String parent, Processor processor) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Creates a processor from the type processor that the user chose. The processor will be at - * "ENABLED" state by default after its creation. + * Creates a processor from the [ProcessorType][google.cloud.documentai.v1.ProcessorType] + * provided. The processor will be at `ENABLED` state by default after its creation. * *

Sample code: * @@ -2323,8 +2329,8 @@ public final Processor createProcessor(CreateProcessorRequest request) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Creates a processor from the type processor that the user chose. The processor will be at - * "ENABLED" state by default after its creation. + * Creates a processor from the [ProcessorType][google.cloud.documentai.v1.ProcessorType] + * provided. The processor will be at `ENABLED` state by default after its creation. * *

Sample code: * @@ -2825,8 +2831,9 @@ public final UnaryCallable disableProcessorC * } * } * - * @param humanReviewConfig Required. The resource name of the HumanReviewConfig that the document - * will be reviewed with. + * @param humanReviewConfig Required. The resource name of the + * [HumanReviewConfig][google.cloud.documentai.v1.HumanReviewConfig] that the document will be + * reviewed with. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture @@ -2860,8 +2867,9 @@ public final UnaryCallable disableProcessorC * } * } * - * @param humanReviewConfig Required. The resource name of the HumanReviewConfig that the document - * will be reviewed with. + * @param humanReviewConfig Required. The resource name of the + * [HumanReviewConfig][google.cloud.documentai.v1.HumanReviewConfig] that the document will be + * reviewed with. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture diff --git a/java-document-ai/google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1/package-info.java b/java-document-ai/google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1/package-info.java index e4724fc41c7a..7656b669c7fd 100644 --- a/java-document-ai/google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1/package-info.java +++ b/java-document-ai/google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1/package-info.java @@ -21,7 +21,7 @@ * *

======================= DocumentProcessorServiceClient ======================= * - *

Service Description: Service to call Cloud DocumentAI to process documents according to the + *

Service Description: Service to call Document AI 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. diff --git a/java-document-ai/google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1/stub/DocumentProcessorServiceStubSettings.java b/java-document-ai/google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1/stub/DocumentProcessorServiceStubSettings.java index 6a7e5f0a0df9..347955b08128 100644 --- a/java-document-ai/google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1/stub/DocumentProcessorServiceStubSettings.java +++ b/java-document-ai/google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1/stub/DocumentProcessorServiceStubSettings.java @@ -1023,6 +1023,11 @@ public static class Builder ImmutableSet.copyOf( Lists.newArrayList( StatusCode.Code.DEADLINE_EXCEEDED, StatusCode.Code.UNAVAILABLE))); + definitions.put( + "retry_policy_1_codes", + ImmutableSet.copyOf( + Lists.newArrayList( + StatusCode.Code.DEADLINE_EXCEEDED, StatusCode.Code.UNAVAILABLE))); definitions.put("no_retry_codes", ImmutableSet.copyOf(Lists.newArrayList())); RETRYABLE_CODE_DEFINITIONS = definitions.build(); } @@ -1032,6 +1037,17 @@ public static class Builder static { ImmutableMap.Builder definitions = ImmutableMap.builder(); RetrySettings settings = null; + settings = + RetrySettings.newBuilder() + .setInitialRetryDelay(Duration.ofMillis(100L)) + .setRetryDelayMultiplier(1.3) + .setMaxRetryDelay(Duration.ofMillis(60000L)) + .setInitialRpcTimeout(Duration.ofMillis(300000L)) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeout(Duration.ofMillis(300000L)) + .setTotalTimeout(Duration.ofMillis(300000L)) + .build(); + definitions.put("retry_policy_0_params", settings); settings = RetrySettings.newBuilder() .setInitialRetryDelay(Duration.ofMillis(100L)) @@ -1042,7 +1058,7 @@ public static class Builder .setMaxRpcTimeout(Duration.ofMillis(120000L)) .setTotalTimeout(Duration.ofMillis(120000L)) .build(); - definitions.put("retry_policy_0_params", settings); + definitions.put("retry_policy_1_params", settings); settings = RetrySettings.newBuilder().setRpcTimeoutMultiplier(1.0).build(); definitions.put("no_retry_params", settings); RETRY_PARAM_DEFINITIONS = definitions.build(); @@ -1229,8 +1245,8 @@ private static Builder initDefaults(Builder builder) { builder .batchProcessDocumentsSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_1_params")); builder .fetchProcessorTypesSettings() @@ -1314,8 +1330,8 @@ private static Builder initDefaults(Builder builder) { builder .reviewDocumentSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_1_params")); builder .evaluateProcessorVersionSettings() @@ -1347,8 +1363,8 @@ private static Builder initDefaults(Builder builder) { .setInitialCallSettings( UnaryCallSettings .newUnaryCallSettingsBuilder() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")) + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_1_params")) .build()) .setResponseTransformer( ProtoOperationTransformers.ResponseTransformer.create(BatchProcessResponse.class)) @@ -1573,8 +1589,8 @@ private static Builder initDefaults(Builder builder) { .setInitialCallSettings( UnaryCallSettings .newUnaryCallSettingsBuilder() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")) + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_1_params")) .build()) .setResponseTransformer( ProtoOperationTransformers.ResponseTransformer.create(ReviewDocumentResponse.class)) diff --git a/java-document-ai/google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1beta3/DocumentProcessorServiceClient.java b/java-document-ai/google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1beta3/DocumentProcessorServiceClient.java index 7b798fd59deb..1e43f32f072b 100644 --- a/java-document-ai/google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1beta3/DocumentProcessorServiceClient.java +++ b/java-document-ai/google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1beta3/DocumentProcessorServiceClient.java @@ -45,7 +45,7 @@ // AUTO-GENERATED DOCUMENTATION AND CLASS. /** - * Service Description: Service to call Cloud DocumentAI to process documents according to the + * Service Description: Service to call Document AI 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. @@ -267,10 +267,7 @@ public final ProcessResponse processDocument(ResourceName name) { * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DocumentProcessorServiceClient documentProcessorServiceClient = * DocumentProcessorServiceClient.create()) { - * String name = - * EvaluationName.of( - * "[PROJECT]", "[LOCATION]", "[PROCESSOR]", "[PROCESSOR_VERSION]", "[EVALUATION]") - * .toString(); + * String name = DatasetSchemaName.of("[PROJECT]", "[LOCATION]", "[PROCESSOR]").toString(); * ProcessResponse response = documentProcessorServiceClient.processDocument(name); * } * } @@ -406,10 +403,7 @@ public final UnaryCallable processDocumentCalla * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DocumentProcessorServiceClient documentProcessorServiceClient = * DocumentProcessorServiceClient.create()) { - * String name = - * EvaluationName.of( - * "[PROJECT]", "[LOCATION]", "[PROCESSOR]", "[PROCESSOR_VERSION]", "[EVALUATION]") - * .toString(); + * String name = DatasetSchemaName.of("[PROJECT]", "[LOCATION]", "[PROCESSOR]").toString(); * BatchProcessResponse response = * documentProcessorServiceClient.batchProcessDocumentsAsync(name).get(); * } @@ -543,8 +537,9 @@ public final UnaryCallable batchProcessDocuments // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Fetches processor types. Note that we do not use ListProcessorTypes here because it is not - * paginated. + * Fetches processor types. Note that we don't use + * [ListProcessorTypes][google.cloud.documentai.v1beta3.DocumentProcessorService.ListProcessorTypes] + * here, because it isn't paginated. * *

Sample code: * @@ -562,9 +557,8 @@ public final UnaryCallable batchProcessDocuments * } * } * - * @param parent Required. The project of processor type to list. The available processor types - * may depend on the allow-listing on projects. Format: - * `projects/{project}/locations/{location}` + * @param parent Required. The location of processor types to list. Format: + * `projects/{project}/locations/{location}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final FetchProcessorTypesResponse fetchProcessorTypes(LocationName parent) { @@ -577,8 +571,9 @@ public final FetchProcessorTypesResponse fetchProcessorTypes(LocationName parent // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Fetches processor types. Note that we do not use ListProcessorTypes here because it is not - * paginated. + * Fetches processor types. Note that we don't use + * [ListProcessorTypes][google.cloud.documentai.v1beta3.DocumentProcessorService.ListProcessorTypes] + * here, because it isn't paginated. * *

Sample code: * @@ -596,9 +591,8 @@ public final FetchProcessorTypesResponse fetchProcessorTypes(LocationName parent * } * } * - * @param parent Required. The project of processor type to list. The available processor types - * may depend on the allow-listing on projects. Format: - * `projects/{project}/locations/{location}` + * @param parent Required. The location of processor types to list. Format: + * `projects/{project}/locations/{location}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final FetchProcessorTypesResponse fetchProcessorTypes(String parent) { @@ -609,8 +603,9 @@ public final FetchProcessorTypesResponse fetchProcessorTypes(String parent) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Fetches processor types. Note that we do not use ListProcessorTypes here because it is not - * paginated. + * Fetches processor types. Note that we don't use + * [ListProcessorTypes][google.cloud.documentai.v1beta3.DocumentProcessorService.ListProcessorTypes] + * here, because it isn't paginated. * *

Sample code: * @@ -640,8 +635,9 @@ public final FetchProcessorTypesResponse fetchProcessorTypes(FetchProcessorTypes // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Fetches processor types. Note that we do not use ListProcessorTypes here because it is not - * paginated. + * Fetches processor types. Note that we don't use + * [ListProcessorTypes][google.cloud.documentai.v1beta3.DocumentProcessorService.ListProcessorTypes] + * here, because it isn't paginated. * *

Sample code: * @@ -691,9 +687,8 @@ public final FetchProcessorTypesResponse fetchProcessorTypes(FetchProcessorTypes * } * } * - * @param parent Required. The location of processor type to list. The available processor types - * may depend on the allow-listing on projects. Format: - * `projects/{project}/locations/{location}` + * @param parent Required. The location of processor types to list. Format: + * `projects/{project}/locations/{location}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListProcessorTypesPagedResponse listProcessorTypes(LocationName parent) { @@ -726,9 +721,8 @@ public final ListProcessorTypesPagedResponse listProcessorTypes(LocationName par * } * } * - * @param parent Required. The location of processor type to list. The available processor types - * may depend on the allow-listing on projects. Format: - * `projects/{project}/locations/{location}` + * @param parent Required. The location of processor types to list. Format: + * `projects/{project}/locations/{location}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListProcessorTypesPagedResponse listProcessorTypes(String parent) { @@ -1250,7 +1244,7 @@ public final UnaryCallable getProcessorCallable( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Trains a new processor version. Operation metadata is returned as - * cloud_documentai_core.TrainProcessorVersionMetadata. + * [TrainProcessorVersionMetadata][google.cloud.documentai.v1beta3.TrainProcessorVersionMetadata]. * *

Sample code: * @@ -1287,7 +1281,7 @@ public final UnaryCallable getProcessorCallable( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Trains a new processor version. Operation metadata is returned as - * cloud_documentai_core.TrainProcessorVersionMetadata. + * [TrainProcessorVersionMetadata][google.cloud.documentai.v1beta3.TrainProcessorVersionMetadata]. * *

Sample code: * @@ -1324,7 +1318,7 @@ public final UnaryCallable getProcessorCallable( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Trains a new processor version. Operation metadata is returned as - * cloud_documentai_core.TrainProcessorVersionMetadata. + * [TrainProcessorVersionMetadata][google.cloud.documentai.v1beta3.TrainProcessorVersionMetadata]. * *

Sample code: * @@ -1360,7 +1354,7 @@ public final UnaryCallable getProcessorCallable( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Trains a new processor version. Operation metadata is returned as - * cloud_documentai_core.TrainProcessorVersionMetadata. + * [TrainProcessorVersionMetadata][google.cloud.documentai.v1beta3.TrainProcessorVersionMetadata]. * *

Sample code: * @@ -1400,7 +1394,7 @@ public final UnaryCallable getProcessorCallable( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Trains a new processor version. Operation metadata is returned as - * cloud_documentai_core.TrainProcessorVersionMetadata. + * [TrainProcessorVersionMetadata][google.cloud.documentai.v1beta3.TrainProcessorVersionMetadata]. * *

Sample code: * @@ -2241,8 +2235,8 @@ public final OperationFuture deleteProces // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Creates a processor from the type processor that the user chose. The processor will be at - * "ENABLED" state by default after its creation. + * Creates a processor from the [ProcessorType][google.cloud.documentai.v1beta3.ProcessorType] + * provided. The processor will be at `ENABLED` state by default after its creation. * *

Sample code: * @@ -2262,8 +2256,11 @@ public final OperationFuture deleteProces * * @param parent Required. The parent (project and location) under which to create the processor. * Format: `projects/{project}/locations/{location}` - * @param processor Required. The processor to be created, requires [processor_type] and - * [display_name] to be set. Also, the processor is under CMEK if CMEK fields are set. + * @param processor Required. The processor to be created, requires + * [Processor.type][google.cloud.documentai.v1beta3.Processor.type] and + * [Processor.display_name]][] to be set. Also, the + * [Processor.kms_key_name][google.cloud.documentai.v1beta3.Processor.kms_key_name] field must + * be set if the processor is under CMEK. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final Processor createProcessor(LocationName parent, Processor processor) { @@ -2277,8 +2274,8 @@ public final Processor createProcessor(LocationName parent, Processor processor) // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Creates a processor from the type processor that the user chose. The processor will be at - * "ENABLED" state by default after its creation. + * Creates a processor from the [ProcessorType][google.cloud.documentai.v1beta3.ProcessorType] + * provided. The processor will be at `ENABLED` state by default after its creation. * *

Sample code: * @@ -2298,8 +2295,11 @@ public final Processor createProcessor(LocationName parent, Processor processor) * * @param parent Required. The parent (project and location) under which to create the processor. * Format: `projects/{project}/locations/{location}` - * @param processor Required. The processor to be created, requires [processor_type] and - * [display_name] to be set. Also, the processor is under CMEK if CMEK fields are set. + * @param processor Required. The processor to be created, requires + * [Processor.type][google.cloud.documentai.v1beta3.Processor.type] and + * [Processor.display_name]][] to be set. Also, the + * [Processor.kms_key_name][google.cloud.documentai.v1beta3.Processor.kms_key_name] field must + * be set if the processor is under CMEK. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final Processor createProcessor(String parent, Processor processor) { @@ -2310,8 +2310,8 @@ public final Processor createProcessor(String parent, Processor processor) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Creates a processor from the type processor that the user chose. The processor will be at - * "ENABLED" state by default after its creation. + * Creates a processor from the [ProcessorType][google.cloud.documentai.v1beta3.ProcessorType] + * provided. The processor will be at `ENABLED` state by default after its creation. * *

Sample code: * @@ -2341,8 +2341,8 @@ public final Processor createProcessor(CreateProcessorRequest request) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Creates a processor from the type processor that the user chose. The processor will be at - * "ENABLED" state by default after its creation. + * Creates a processor from the [ProcessorType][google.cloud.documentai.v1beta3.ProcessorType] + * provided. The processor will be at `ENABLED` state by default after its creation. * *

Sample code: * @@ -2843,7 +2843,8 @@ public final UnaryCallable disableProcessorC * } * } * - * @param humanReviewConfig Required. The resource name of the HumanReviewConfig that the document + * @param humanReviewConfig Required. The resource name of the + * [HumanReviewConfig][google.cloud.documentai.v1beta3.HumanReviewConfig] that the document * will be reviewed with. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ @@ -2878,7 +2879,8 @@ public final UnaryCallable disableProcessorC * } * } * - * @param humanReviewConfig Required. The resource name of the HumanReviewConfig that the document + * @param humanReviewConfig Required. The resource name of the + * [HumanReviewConfig][google.cloud.documentai.v1beta3.HumanReviewConfig] that the document * will be reviewed with. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ diff --git a/java-document-ai/google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1beta3/DocumentServiceClient.java b/java-document-ai/google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1beta3/DocumentServiceClient.java new file mode 100644 index 000000000000..639e94ee0733 --- /dev/null +++ b/java-document-ai/google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1beta3/DocumentServiceClient.java @@ -0,0 +1,801 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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 com.google.api.core.ApiFuture; +import com.google.api.core.ApiFutures; +import com.google.api.core.BetaApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.httpjson.longrunning.OperationsClient; +import com.google.api.gax.longrunning.OperationFuture; +import com.google.api.gax.paging.AbstractFixedSizeCollection; +import com.google.api.gax.paging.AbstractPage; +import com.google.api.gax.paging.AbstractPagedListResponse; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.PageContext; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.documentai.v1beta3.stub.DocumentServiceStub; +import com.google.cloud.documentai.v1beta3.stub.DocumentServiceStubSettings; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.common.util.concurrent.MoreExecutors; +import com.google.longrunning.Operation; +import com.google.protobuf.FieldMask; +import java.io.IOException; +import java.util.List; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Service Description: Service to call Cloud DocumentAI to manage document collection (dataset). + * + *

This class provides the ability to make remote calls to the backing service through method + * calls that map to API methods. Sample code to get started: + * + *

{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (DocumentServiceClient documentServiceClient = DocumentServiceClient.create()) {
+ *   DatasetSchemaName name = DatasetSchemaName.of("[PROJECT]", "[LOCATION]", "[PROCESSOR]");
+ *   DatasetSchema response = documentServiceClient.getDatasetSchema(name);
+ * }
+ * }
+ * + *

Note: close() needs to be called on the DocumentServiceClient object to clean up resources + * such as threads. In the example above, try-with-resources is used, which automatically calls + * close(). + * + *

The surface of this class includes several types of Java methods for each of the API's + * methods: + * + *

    + *
  1. 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. + *
  2. 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. + *
  3. 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. + *
+ * + *

See the individual methods for example code. + * + *

Many parameters require resource names to be formatted in a particular way. To assist with + * these names, this class includes a format method for each type of name, and additionally a parse + * method to extract the individual identifiers contained within names that are returned. + * + *

This class can be customized by passing in a custom instance of DocumentServiceSettings to + * create(). For example: + * + *

To customize credentials: + * + *

{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * DocumentServiceSettings documentServiceSettings =
+ *     DocumentServiceSettings.newBuilder()
+ *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
+ *         .build();
+ * DocumentServiceClient documentServiceClient =
+ *     DocumentServiceClient.create(documentServiceSettings);
+ * }
+ * + *

To customize the endpoint: + * + *

{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * DocumentServiceSettings documentServiceSettings =
+ *     DocumentServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
+ * DocumentServiceClient documentServiceClient =
+ *     DocumentServiceClient.create(documentServiceSettings);
+ * }
+ * + *

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

{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * DocumentServiceSettings documentServiceSettings =
+ *     DocumentServiceSettings.newHttpJsonBuilder().build();
+ * DocumentServiceClient documentServiceClient =
+ *     DocumentServiceClient.create(documentServiceSettings);
+ * }
+ * + *

Please refer to the GitHub repository's samples for more quickstart code snippets. + */ +@BetaApi +@Generated("by gapic-generator-java") +public class DocumentServiceClient implements BackgroundResource { + private final DocumentServiceSettings settings; + private final DocumentServiceStub stub; + private final OperationsClient httpJsonOperationsClient; + private final com.google.longrunning.OperationsClient operationsClient; + + /** Constructs an instance of DocumentServiceClient with default settings. */ + public static final DocumentServiceClient create() throws IOException { + return create(DocumentServiceSettings.newBuilder().build()); + } + + /** + * Constructs an instance of DocumentServiceClient, using the given settings. The channels are + * created based on the settings passed in, or defaults for any settings that are not set. + */ + public static final DocumentServiceClient create(DocumentServiceSettings settings) + throws IOException { + return new DocumentServiceClient(settings); + } + + /** + * Constructs an instance of DocumentServiceClient, using the given stub for making calls. This is + * for advanced usage - prefer using create(DocumentServiceSettings). + */ + public static final DocumentServiceClient create(DocumentServiceStub stub) { + return new DocumentServiceClient(stub); + } + + /** + * Constructs an instance of DocumentServiceClient, using the given settings. This is protected so + * that it is easy to make a subclass, but otherwise, the static factory methods should be + * preferred. + */ + protected DocumentServiceClient(DocumentServiceSettings settings) throws IOException { + this.settings = settings; + this.stub = ((DocumentServiceStubSettings) settings.getStubSettings()).createStub(); + this.operationsClient = + com.google.longrunning.OperationsClient.create(this.stub.getOperationsStub()); + this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); + } + + protected DocumentServiceClient(DocumentServiceStub stub) { + this.settings = null; + this.stub = stub; + this.operationsClient = + com.google.longrunning.OperationsClient.create(this.stub.getOperationsStub()); + this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); + } + + public final DocumentServiceSettings getSettings() { + return settings; + } + + public DocumentServiceStub getStub() { + return stub; + } + + /** + * Returns the OperationsClient that can be used to query the status of a long-running operation + * returned by another API method call. + */ + public final com.google.longrunning.OperationsClient getOperationsClient() { + return operationsClient; + } + + /** + * Returns the OperationsClient that can be used to query the status of a long-running operation + * returned by another API method call. + */ + @BetaApi + public final OperationsClient getHttpJsonOperationsClient() { + return httpJsonOperationsClient; + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates metadata associated with a dataset. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DocumentServiceClient documentServiceClient = DocumentServiceClient.create()) {
+   *   Dataset dataset = Dataset.newBuilder().build();
+   *   FieldMask updateMask = FieldMask.newBuilder().build();
+   *   Dataset response = documentServiceClient.updateDatasetAsync(dataset, updateMask).get();
+   * }
+   * }
+ * + * @param dataset Required. The `name` field of the `Dataset` is used to identify the resource to + * be updated. + * @param updateMask The update mask applies to the resource. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture updateDatasetAsync( + Dataset dataset, FieldMask updateMask) { + UpdateDatasetRequest request = + UpdateDatasetRequest.newBuilder().setDataset(dataset).setUpdateMask(updateMask).build(); + return updateDatasetAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates metadata associated with a dataset. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DocumentServiceClient documentServiceClient = DocumentServiceClient.create()) {
+   *   UpdateDatasetRequest request =
+   *       UpdateDatasetRequest.newBuilder()
+   *           .setDataset(Dataset.newBuilder().build())
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .build();
+   *   Dataset response = documentServiceClient.updateDatasetAsync(request).get();
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture updateDatasetAsync( + UpdateDatasetRequest request) { + return updateDatasetOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates metadata associated with a dataset. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DocumentServiceClient documentServiceClient = DocumentServiceClient.create()) {
+   *   UpdateDatasetRequest request =
+   *       UpdateDatasetRequest.newBuilder()
+   *           .setDataset(Dataset.newBuilder().build())
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .build();
+   *   OperationFuture future =
+   *       documentServiceClient.updateDatasetOperationCallable().futureCall(request);
+   *   // Do something.
+   *   Dataset response = future.get();
+   * }
+   * }
+ */ + public final OperationCallable + updateDatasetOperationCallable() { + return stub.updateDatasetOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates metadata associated with a dataset. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DocumentServiceClient documentServiceClient = DocumentServiceClient.create()) {
+   *   UpdateDatasetRequest request =
+   *       UpdateDatasetRequest.newBuilder()
+   *           .setDataset(Dataset.newBuilder().build())
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .build();
+   *   ApiFuture future =
+   *       documentServiceClient.updateDatasetCallable().futureCall(request);
+   *   // Do something.
+   *   Operation response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable updateDatasetCallable() { + return stub.updateDatasetCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets the `DatasetSchema` of a `Dataset`. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DocumentServiceClient documentServiceClient = DocumentServiceClient.create()) {
+   *   DatasetSchemaName name = DatasetSchemaName.of("[PROJECT]", "[LOCATION]", "[PROCESSOR]");
+   *   DatasetSchema response = documentServiceClient.getDatasetSchema(name);
+   * }
+   * }
+ * + * @param name Required. The dataset schema resource name. Format: + * projects/{project}/locations/{location}/processors/{processor}/dataset/datasetSchema + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final DatasetSchema getDatasetSchema(DatasetSchemaName name) { + GetDatasetSchemaRequest request = + GetDatasetSchemaRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return getDatasetSchema(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets the `DatasetSchema` of a `Dataset`. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DocumentServiceClient documentServiceClient = DocumentServiceClient.create()) {
+   *   String name = DatasetSchemaName.of("[PROJECT]", "[LOCATION]", "[PROCESSOR]").toString();
+   *   DatasetSchema response = documentServiceClient.getDatasetSchema(name);
+   * }
+   * }
+ * + * @param name Required. The dataset schema resource name. Format: + * projects/{project}/locations/{location}/processors/{processor}/dataset/datasetSchema + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final DatasetSchema getDatasetSchema(String name) { + GetDatasetSchemaRequest request = GetDatasetSchemaRequest.newBuilder().setName(name).build(); + return getDatasetSchema(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets the `DatasetSchema` of a `Dataset`. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DocumentServiceClient documentServiceClient = DocumentServiceClient.create()) {
+   *   GetDatasetSchemaRequest request =
+   *       GetDatasetSchemaRequest.newBuilder()
+   *           .setName(DatasetSchemaName.of("[PROJECT]", "[LOCATION]", "[PROCESSOR]").toString())
+   *           .setVisibleFieldsOnly(true)
+   *           .build();
+   *   DatasetSchema response = documentServiceClient.getDatasetSchema(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final DatasetSchema getDatasetSchema(GetDatasetSchemaRequest request) { + return getDatasetSchemaCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets the `DatasetSchema` of a `Dataset`. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DocumentServiceClient documentServiceClient = DocumentServiceClient.create()) {
+   *   GetDatasetSchemaRequest request =
+   *       GetDatasetSchemaRequest.newBuilder()
+   *           .setName(DatasetSchemaName.of("[PROJECT]", "[LOCATION]", "[PROCESSOR]").toString())
+   *           .setVisibleFieldsOnly(true)
+   *           .build();
+   *   ApiFuture future =
+   *       documentServiceClient.getDatasetSchemaCallable().futureCall(request);
+   *   // Do something.
+   *   DatasetSchema response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable getDatasetSchemaCallable() { + return stub.getDatasetSchemaCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates a `DatasetSchema`. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DocumentServiceClient documentServiceClient = DocumentServiceClient.create()) {
+   *   DatasetSchema datasetSchema = DatasetSchema.newBuilder().build();
+   *   FieldMask updateMask = FieldMask.newBuilder().build();
+   *   DatasetSchema response = documentServiceClient.updateDatasetSchema(datasetSchema, updateMask);
+   * }
+   * }
+ * + * @param datasetSchema Required. The name field of the `DatasetSchema` is used to identify the + * resource to be updated. + * @param updateMask The update mask applies to the resource. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final DatasetSchema updateDatasetSchema( + DatasetSchema datasetSchema, FieldMask updateMask) { + UpdateDatasetSchemaRequest request = + UpdateDatasetSchemaRequest.newBuilder() + .setDatasetSchema(datasetSchema) + .setUpdateMask(updateMask) + .build(); + return updateDatasetSchema(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates a `DatasetSchema`. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DocumentServiceClient documentServiceClient = DocumentServiceClient.create()) {
+   *   UpdateDatasetSchemaRequest request =
+   *       UpdateDatasetSchemaRequest.newBuilder()
+   *           .setDatasetSchema(DatasetSchema.newBuilder().build())
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .build();
+   *   DatasetSchema response = documentServiceClient.updateDatasetSchema(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final DatasetSchema updateDatasetSchema(UpdateDatasetSchemaRequest request) { + return updateDatasetSchemaCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates a `DatasetSchema`. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DocumentServiceClient documentServiceClient = DocumentServiceClient.create()) {
+   *   UpdateDatasetSchemaRequest request =
+   *       UpdateDatasetSchemaRequest.newBuilder()
+   *           .setDatasetSchema(DatasetSchema.newBuilder().build())
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .build();
+   *   ApiFuture future =
+   *       documentServiceClient.updateDatasetSchemaCallable().futureCall(request);
+   *   // Do something.
+   *   DatasetSchema response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + updateDatasetSchemaCallable() { + return stub.updateDatasetSchemaCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists information about the supported locations for this service. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DocumentServiceClient documentServiceClient = DocumentServiceClient.create()) {
+   *   ListLocationsRequest request =
+   *       ListLocationsRequest.newBuilder()
+   *           .setName("name3373707")
+   *           .setFilter("filter-1274492040")
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   for (Location element : documentServiceClient.listLocations(request).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListLocationsPagedResponse listLocations(ListLocationsRequest request) { + return listLocationsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists information about the supported locations for this service. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DocumentServiceClient documentServiceClient = DocumentServiceClient.create()) {
+   *   ListLocationsRequest request =
+   *       ListLocationsRequest.newBuilder()
+   *           .setName("name3373707")
+   *           .setFilter("filter-1274492040")
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   ApiFuture future =
+   *       documentServiceClient.listLocationsPagedCallable().futureCall(request);
+   *   // Do something.
+   *   for (Location element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listLocationsPagedCallable() { + return stub.listLocationsPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists information about the supported locations for this service. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DocumentServiceClient documentServiceClient = DocumentServiceClient.create()) {
+   *   ListLocationsRequest request =
+   *       ListLocationsRequest.newBuilder()
+   *           .setName("name3373707")
+   *           .setFilter("filter-1274492040")
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   while (true) {
+   *     ListLocationsResponse response =
+   *         documentServiceClient.listLocationsCallable().call(request);
+   *     for (Location element : response.getLocationsList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable listLocationsCallable() { + return stub.listLocationsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets information about a location. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DocumentServiceClient documentServiceClient = DocumentServiceClient.create()) {
+   *   GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
+   *   Location response = documentServiceClient.getLocation(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Location getLocation(GetLocationRequest request) { + return getLocationCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets information about a location. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DocumentServiceClient documentServiceClient = DocumentServiceClient.create()) {
+   *   GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
+   *   ApiFuture future = documentServiceClient.getLocationCallable().futureCall(request);
+   *   // Do something.
+   *   Location response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable getLocationCallable() { + return stub.getLocationCallable(); + } + + @Override + public final void close() { + stub.close(); + } + + @Override + public void shutdown() { + stub.shutdown(); + } + + @Override + public boolean isShutdown() { + return stub.isShutdown(); + } + + @Override + public boolean isTerminated() { + return stub.isTerminated(); + } + + @Override + public void shutdownNow() { + stub.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return stub.awaitTermination(duration, unit); + } + + public static class ListLocationsPagedResponse + extends AbstractPagedListResponse< + ListLocationsRequest, + ListLocationsResponse, + Location, + ListLocationsPage, + ListLocationsFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListLocationsPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListLocationsPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListLocationsPagedResponse(ListLocationsPage page) { + super(page, ListLocationsFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListLocationsPage + extends AbstractPage< + ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { + + private ListLocationsPage( + PageContext context, + ListLocationsResponse response) { + super(context, response); + } + + private static ListLocationsPage createEmptyPage() { + return new ListLocationsPage(null, null); + } + + @Override + protected ListLocationsPage createPage( + PageContext context, + ListLocationsResponse response) { + return new ListLocationsPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListLocationsFixedSizeCollection + extends AbstractFixedSizeCollection< + ListLocationsRequest, + ListLocationsResponse, + Location, + ListLocationsPage, + ListLocationsFixedSizeCollection> { + + private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListLocationsFixedSizeCollection createEmptyCollection() { + return new ListLocationsFixedSizeCollection(null, 0); + } + + @Override + protected ListLocationsFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListLocationsFixedSizeCollection(pages, collectionSize); + } + } +} diff --git a/java-document-ai/google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1beta3/DocumentServiceSettings.java b/java-document-ai/google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1beta3/DocumentServiceSettings.java new file mode 100644 index 000000000000..fcbd2828a62d --- /dev/null +++ b/java-document-ai/google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1beta3/DocumentServiceSettings.java @@ -0,0 +1,274 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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 com.google.cloud.documentai.v1beta3.DocumentServiceClient.ListLocationsPagedResponse; + +import com.google.api.core.ApiFunction; +import com.google.api.core.BetaApi; +import com.google.api.gax.core.GoogleCredentialsProvider; +import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; +import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.ClientSettings; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.TransportChannelProvider; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.cloud.documentai.v1beta3.stub.DocumentServiceStubSettings; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.longrunning.Operation; +import java.io.IOException; +import java.util.List; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Settings class to configure an instance of {@link DocumentServiceClient}. + * + *

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 builder of this class is recursive, so contained classes are themselves builders. When + * build() is called, the tree of builders is called to create the complete settings object. + * + *

For example, to set the total timeout of getDatasetSchema to 30 seconds: + * + *

{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * DocumentServiceSettings.Builder documentServiceSettingsBuilder =
+ *     DocumentServiceSettings.newBuilder();
+ * documentServiceSettingsBuilder
+ *     .getDatasetSchemaSettings()
+ *     .setRetrySettings(
+ *         documentServiceSettingsBuilder
+ *             .getDatasetSchemaSettings()
+ *             .getRetrySettings()
+ *             .toBuilder()
+ *             .setTotalTimeout(Duration.ofSeconds(30))
+ *             .build());
+ * DocumentServiceSettings documentServiceSettings = documentServiceSettingsBuilder.build();
+ * }
+ */ +@BetaApi +@Generated("by gapic-generator-java") +public class DocumentServiceSettings extends ClientSettings { + + /** Returns the object with the settings used for calls to updateDataset. */ + public UnaryCallSettings updateDatasetSettings() { + return ((DocumentServiceStubSettings) getStubSettings()).updateDatasetSettings(); + } + + /** Returns the object with the settings used for calls to updateDataset. */ + public OperationCallSettings + updateDatasetOperationSettings() { + return ((DocumentServiceStubSettings) getStubSettings()).updateDatasetOperationSettings(); + } + + /** Returns the object with the settings used for calls to getDatasetSchema. */ + public UnaryCallSettings getDatasetSchemaSettings() { + return ((DocumentServiceStubSettings) getStubSettings()).getDatasetSchemaSettings(); + } + + /** Returns the object with the settings used for calls to updateDatasetSchema. */ + public UnaryCallSettings + updateDatasetSchemaSettings() { + return ((DocumentServiceStubSettings) getStubSettings()).updateDatasetSchemaSettings(); + } + + /** Returns the object with the settings used for calls to listLocations. */ + public PagedCallSettings + listLocationsSettings() { + return ((DocumentServiceStubSettings) getStubSettings()).listLocationsSettings(); + } + + /** Returns the object with the settings used for calls to getLocation. */ + public UnaryCallSettings getLocationSettings() { + return ((DocumentServiceStubSettings) getStubSettings()).getLocationSettings(); + } + + public static final DocumentServiceSettings create(DocumentServiceStubSettings stub) + throws IOException { + return new DocumentServiceSettings.Builder(stub.toBuilder()).build(); + } + + /** Returns a builder for the default ExecutorProvider for this service. */ + public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { + return DocumentServiceStubSettings.defaultExecutorProviderBuilder(); + } + + /** Returns the default service endpoint. */ + public static String getDefaultEndpoint() { + return DocumentServiceStubSettings.getDefaultEndpoint(); + } + + /** Returns the default service scopes. */ + public static List getDefaultServiceScopes() { + return DocumentServiceStubSettings.getDefaultServiceScopes(); + } + + /** Returns a builder for the default credentials for this service. */ + public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { + return DocumentServiceStubSettings.defaultCredentialsProviderBuilder(); + } + + /** Returns a builder for the default gRPC ChannelProvider for this service. */ + public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { + return DocumentServiceStubSettings.defaultGrpcTransportProviderBuilder(); + } + + /** Returns a builder for the default REST ChannelProvider for this service. */ + @BetaApi + public static InstantiatingHttpJsonChannelProvider.Builder + defaultHttpJsonTransportProviderBuilder() { + return DocumentServiceStubSettings.defaultHttpJsonTransportProviderBuilder(); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return DocumentServiceStubSettings.defaultTransportChannelProvider(); + } + + @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return DocumentServiceStubSettings.defaultApiClientHeaderProviderBuilder(); + } + + /** Returns a new gRPC builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** Returns a new REST builder for this class. */ + @BetaApi + public static Builder newHttpJsonBuilder() { + return Builder.createHttpJsonDefault(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder(ClientContext clientContext) { + return new Builder(clientContext); + } + + /** Returns a builder containing all the values of this settings class. */ + public Builder toBuilder() { + return new Builder(this); + } + + protected DocumentServiceSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + } + + /** Builder for DocumentServiceSettings. */ + public static class Builder extends ClientSettings.Builder { + + protected Builder() throws IOException { + this(((ClientContext) null)); + } + + protected Builder(ClientContext clientContext) { + super(DocumentServiceStubSettings.newBuilder(clientContext)); + } + + protected Builder(DocumentServiceSettings settings) { + super(settings.getStubSettings().toBuilder()); + } + + protected Builder(DocumentServiceStubSettings.Builder stubSettings) { + super(stubSettings); + } + + private static Builder createDefault() { + return new Builder(DocumentServiceStubSettings.newBuilder()); + } + + @BetaApi + private static Builder createHttpJsonDefault() { + return new Builder(DocumentServiceStubSettings.newHttpJsonBuilder()); + } + + public DocumentServiceStubSettings.Builder getStubSettingsBuilder() { + return ((DocumentServiceStubSettings.Builder) getStubSettings()); + } + + /** + * Applies the given settings updater function to all of the unary API methods in this service. + * + *

Note: This method does not support applying settings to streaming methods. + */ + public Builder applyToAllUnaryMethods( + ApiFunction, Void> settingsUpdater) { + super.applyToAllUnaryMethods( + getStubSettingsBuilder().unaryMethodSettingsBuilders(), settingsUpdater); + return this; + } + + /** Returns the builder for the settings used for calls to updateDataset. */ + public UnaryCallSettings.Builder updateDatasetSettings() { + return getStubSettingsBuilder().updateDatasetSettings(); + } + + /** Returns the builder for the settings used for calls to updateDataset. */ + public OperationCallSettings.Builder< + UpdateDatasetRequest, Dataset, UpdateDatasetOperationMetadata> + updateDatasetOperationSettings() { + return getStubSettingsBuilder().updateDatasetOperationSettings(); + } + + /** Returns the builder for the settings used for calls to getDatasetSchema. */ + public UnaryCallSettings.Builder + getDatasetSchemaSettings() { + return getStubSettingsBuilder().getDatasetSchemaSettings(); + } + + /** Returns the builder for the settings used for calls to updateDatasetSchema. */ + public UnaryCallSettings.Builder + updateDatasetSchemaSettings() { + return getStubSettingsBuilder().updateDatasetSchemaSettings(); + } + + /** Returns the builder for the settings used for calls to listLocations. */ + public PagedCallSettings.Builder< + ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> + listLocationsSettings() { + return getStubSettingsBuilder().listLocationsSettings(); + } + + /** Returns the builder for the settings used for calls to getLocation. */ + public UnaryCallSettings.Builder getLocationSettings() { + return getStubSettingsBuilder().getLocationSettings(); + } + + @Override + public DocumentServiceSettings build() throws IOException { + return new DocumentServiceSettings(this); + } + } +} diff --git a/java-document-ai/google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1beta3/gapic_metadata.json b/java-document-ai/google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1beta3/gapic_metadata.json index 301f4cbec589..f3dad60bf858 100644 --- a/java-document-ai/google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1beta3/gapic_metadata.json +++ b/java-document-ai/google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1beta3/gapic_metadata.json @@ -88,6 +88,30 @@ } } } + }, + "DocumentService": { + "clients": { + "grpc": { + "libraryClient": "DocumentServiceClient", + "rpcs": { + "GetDatasetSchema": { + "methods": ["getDatasetSchema", "getDatasetSchema", "getDatasetSchema", "getDatasetSchemaCallable"] + }, + "GetLocation": { + "methods": ["getLocation", "getLocationCallable"] + }, + "ListLocations": { + "methods": ["listLocations", "listLocationsPagedCallable", "listLocationsCallable"] + }, + "UpdateDataset": { + "methods": ["updateDatasetAsync", "updateDatasetAsync", "updateDatasetOperationCallable", "updateDatasetCallable"] + }, + "UpdateDatasetSchema": { + "methods": ["updateDatasetSchema", "updateDatasetSchema", "updateDatasetSchemaCallable"] + } + } + } + } } } } \ No newline at end of file diff --git a/java-document-ai/google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1beta3/package-info.java b/java-document-ai/google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1beta3/package-info.java index 1bb9490d0f7e..d40b13c216a0 100644 --- a/java-document-ai/google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1beta3/package-info.java +++ b/java-document-ai/google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1beta3/package-info.java @@ -21,7 +21,7 @@ * *

======================= DocumentProcessorServiceClient ======================= * - *

Service Description: Service to call Cloud DocumentAI to process documents according to the + *

Service Description: Service to call Document AI 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. @@ -40,6 +40,24 @@ * ProcessResponse response = documentProcessorServiceClient.processDocument(name); * } * } + * + *

======================= DocumentServiceClient ======================= + * + *

Service Description: Service to call Cloud DocumentAI to manage document collection (dataset). + * + *

Sample for DocumentServiceClient: + * + *

{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (DocumentServiceClient documentServiceClient = DocumentServiceClient.create()) {
+ *   DatasetSchemaName name = DatasetSchemaName.of("[PROJECT]", "[LOCATION]", "[PROCESSOR]");
+ *   DatasetSchema response = documentServiceClient.getDatasetSchema(name);
+ * }
+ * }
*/ @Generated("by gapic-generator-java") package com.google.cloud.documentai.v1beta3; diff --git a/java-document-ai/google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1beta3/stub/DocumentProcessorServiceStubSettings.java b/java-document-ai/google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1beta3/stub/DocumentProcessorServiceStubSettings.java index 66b47eaf722e..120210c288ca 100644 --- a/java-document-ai/google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1beta3/stub/DocumentProcessorServiceStubSettings.java +++ b/java-document-ai/google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1beta3/stub/DocumentProcessorServiceStubSettings.java @@ -1059,6 +1059,11 @@ public static class Builder ImmutableSet.copyOf( Lists.newArrayList( StatusCode.Code.DEADLINE_EXCEEDED, StatusCode.Code.UNAVAILABLE))); + definitions.put( + "retry_policy_1_codes", + ImmutableSet.copyOf( + Lists.newArrayList( + StatusCode.Code.DEADLINE_EXCEEDED, StatusCode.Code.UNAVAILABLE))); definitions.put("no_retry_codes", ImmutableSet.copyOf(Lists.newArrayList())); RETRYABLE_CODE_DEFINITIONS = definitions.build(); } @@ -1068,6 +1073,17 @@ public static class Builder static { ImmutableMap.Builder definitions = ImmutableMap.builder(); RetrySettings settings = null; + settings = + RetrySettings.newBuilder() + .setInitialRetryDelay(Duration.ofMillis(100L)) + .setRetryDelayMultiplier(1.3) + .setMaxRetryDelay(Duration.ofMillis(60000L)) + .setInitialRpcTimeout(Duration.ofMillis(300000L)) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeout(Duration.ofMillis(300000L)) + .setTotalTimeout(Duration.ofMillis(300000L)) + .build(); + definitions.put("retry_policy_0_params", settings); settings = RetrySettings.newBuilder() .setInitialRetryDelay(Duration.ofMillis(100L)) @@ -1078,7 +1094,7 @@ public static class Builder .setMaxRpcTimeout(Duration.ofMillis(120000L)) .setTotalTimeout(Duration.ofMillis(120000L)) .build(); - definitions.put("retry_policy_0_params", settings); + definitions.put("retry_policy_1_params", settings); settings = RetrySettings.newBuilder().setRpcTimeoutMultiplier(1.0).build(); definitions.put("no_retry_params", settings); RETRY_PARAM_DEFINITIONS = definitions.build(); @@ -1272,8 +1288,8 @@ private static Builder initDefaults(Builder builder) { builder .batchProcessDocumentsSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_1_params")); builder .fetchProcessorTypesSettings() @@ -1357,8 +1373,8 @@ private static Builder initDefaults(Builder builder) { builder .reviewDocumentSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_1_params")); builder .evaluateProcessorVersionSettings() @@ -1395,8 +1411,8 @@ private static Builder initDefaults(Builder builder) { .setInitialCallSettings( UnaryCallSettings .newUnaryCallSettingsBuilder() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")) + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_1_params")) .build()) .setResponseTransformer( ProtoOperationTransformers.ResponseTransformer.create(BatchProcessResponse.class)) @@ -1621,8 +1637,8 @@ private static Builder initDefaults(Builder builder) { .setInitialCallSettings( UnaryCallSettings .newUnaryCallSettingsBuilder() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")) + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_1_params")) .build()) .setResponseTransformer( ProtoOperationTransformers.ResponseTransformer.create(ReviewDocumentResponse.class)) diff --git a/java-document-ai/google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1beta3/stub/DocumentServiceStub.java b/java-document-ai/google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1beta3/stub/DocumentServiceStub.java new file mode 100644 index 000000000000..2d1755e20c7d --- /dev/null +++ b/java-document-ai/google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1beta3/stub/DocumentServiceStub.java @@ -0,0 +1,89 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.stub; + +import static com.google.cloud.documentai.v1beta3.DocumentServiceClient.ListLocationsPagedResponse; + +import com.google.api.core.BetaApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.documentai.v1beta3.Dataset; +import com.google.cloud.documentai.v1beta3.DatasetSchema; +import com.google.cloud.documentai.v1beta3.GetDatasetSchemaRequest; +import com.google.cloud.documentai.v1beta3.UpdateDatasetOperationMetadata; +import com.google.cloud.documentai.v1beta3.UpdateDatasetRequest; +import com.google.cloud.documentai.v1beta3.UpdateDatasetSchemaRequest; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.longrunning.Operation; +import com.google.longrunning.stub.OperationsStub; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Base stub class for the DocumentService service API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@BetaApi +@Generated("by gapic-generator-java") +public abstract class DocumentServiceStub implements BackgroundResource { + + public OperationsStub getOperationsStub() { + return null; + } + + public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + return null; + } + + public OperationCallable + updateDatasetOperationCallable() { + throw new UnsupportedOperationException("Not implemented: updateDatasetOperationCallable()"); + } + + public UnaryCallable updateDatasetCallable() { + throw new UnsupportedOperationException("Not implemented: updateDatasetCallable()"); + } + + public UnaryCallable getDatasetSchemaCallable() { + throw new UnsupportedOperationException("Not implemented: getDatasetSchemaCallable()"); + } + + public UnaryCallable updateDatasetSchemaCallable() { + throw new UnsupportedOperationException("Not implemented: updateDatasetSchemaCallable()"); + } + + public UnaryCallable + listLocationsPagedCallable() { + throw new UnsupportedOperationException("Not implemented: listLocationsPagedCallable()"); + } + + public UnaryCallable listLocationsCallable() { + throw new UnsupportedOperationException("Not implemented: listLocationsCallable()"); + } + + public UnaryCallable getLocationCallable() { + throw new UnsupportedOperationException("Not implemented: getLocationCallable()"); + } + + @Override + public abstract void close(); +} diff --git a/java-document-ai/google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1beta3/stub/DocumentServiceStubSettings.java b/java-document-ai/google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1beta3/stub/DocumentServiceStubSettings.java new file mode 100644 index 000000000000..10f3ef710be1 --- /dev/null +++ b/java-document-ai/google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1beta3/stub/DocumentServiceStubSettings.java @@ -0,0 +1,541 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.stub; + +import static com.google.cloud.documentai.v1beta3.DocumentServiceClient.ListLocationsPagedResponse; + +import com.google.api.core.ApiFunction; +import com.google.api.core.ApiFuture; +import com.google.api.core.BetaApi; +import com.google.api.gax.core.GaxProperties; +import com.google.api.gax.core.GoogleCredentialsProvider; +import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.grpc.GaxGrpcProperties; +import com.google.api.gax.grpc.GrpcTransportChannel; +import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; +import com.google.api.gax.grpc.ProtoOperationTransformers; +import com.google.api.gax.httpjson.GaxHttpJsonProperties; +import com.google.api.gax.httpjson.HttpJsonTransportChannel; +import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; +import com.google.api.gax.longrunning.OperationSnapshot; +import com.google.api.gax.longrunning.OperationTimedPollAlgorithm; +import com.google.api.gax.retrying.RetrySettings; +import com.google.api.gax.rpc.ApiCallContext; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.PageContext; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.PagedListDescriptor; +import com.google.api.gax.rpc.PagedListResponseFactory; +import com.google.api.gax.rpc.StatusCode; +import com.google.api.gax.rpc.StubSettings; +import com.google.api.gax.rpc.TransportChannelProvider; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.documentai.v1beta3.Dataset; +import com.google.cloud.documentai.v1beta3.DatasetSchema; +import com.google.cloud.documentai.v1beta3.GetDatasetSchemaRequest; +import com.google.cloud.documentai.v1beta3.UpdateDatasetOperationMetadata; +import com.google.cloud.documentai.v1beta3.UpdateDatasetRequest; +import com.google.cloud.documentai.v1beta3.UpdateDatasetSchemaRequest; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.common.collect.ImmutableList; +import com.google.common.collect.ImmutableMap; +import com.google.common.collect.ImmutableSet; +import com.google.common.collect.Lists; +import com.google.longrunning.Operation; +import java.io.IOException; +import java.util.List; +import javax.annotation.Generated; +import org.threeten.bp.Duration; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Settings class to configure an instance of {@link DocumentServiceStub}. + * + *

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 builder of this class is recursive, so contained classes are themselves builders. When + * build() is called, the tree of builders is called to create the complete settings object. + * + *

For example, to set the total timeout of getDatasetSchema to 30 seconds: + * + *

{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * DocumentServiceStubSettings.Builder documentServiceSettingsBuilder =
+ *     DocumentServiceStubSettings.newBuilder();
+ * documentServiceSettingsBuilder
+ *     .getDatasetSchemaSettings()
+ *     .setRetrySettings(
+ *         documentServiceSettingsBuilder
+ *             .getDatasetSchemaSettings()
+ *             .getRetrySettings()
+ *             .toBuilder()
+ *             .setTotalTimeout(Duration.ofSeconds(30))
+ *             .build());
+ * DocumentServiceStubSettings documentServiceSettings = documentServiceSettingsBuilder.build();
+ * }
+ */ +@BetaApi +@Generated("by gapic-generator-java") +public class DocumentServiceStubSettings extends StubSettings { + /** The default scopes of the service. */ + private static final ImmutableList DEFAULT_SERVICE_SCOPES = + ImmutableList.builder().add("https://www.googleapis.com/auth/cloud-platform").build(); + + private final UnaryCallSettings updateDatasetSettings; + private final OperationCallSettings + updateDatasetOperationSettings; + private final UnaryCallSettings getDatasetSchemaSettings; + private final UnaryCallSettings + updateDatasetSchemaSettings; + private final PagedCallSettings< + ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> + listLocationsSettings; + private final UnaryCallSettings getLocationSettings; + + private static final PagedListDescriptor + LIST_LOCATIONS_PAGE_STR_DESC = + new PagedListDescriptor() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListLocationsRequest injectToken(ListLocationsRequest payload, String token) { + return ListLocationsRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListLocationsRequest injectPageSize(ListLocationsRequest payload, int pageSize) { + return ListLocationsRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(ListLocationsRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListLocationsResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources(ListLocationsResponse payload) { + return payload.getLocationsList() == null + ? ImmutableList.of() + : payload.getLocationsList(); + } + }; + + private static final PagedListResponseFactory< + ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> + LIST_LOCATIONS_PAGE_STR_FACT = + new PagedListResponseFactory< + ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + ListLocationsRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext pageContext = + PageContext.create(callable, LIST_LOCATIONS_PAGE_STR_DESC, request, context); + return ListLocationsPagedResponse.createAsync(pageContext, futureResponse); + } + }; + + /** Returns the object with the settings used for calls to updateDataset. */ + public UnaryCallSettings updateDatasetSettings() { + return updateDatasetSettings; + } + + /** Returns the object with the settings used for calls to updateDataset. */ + public OperationCallSettings + updateDatasetOperationSettings() { + return updateDatasetOperationSettings; + } + + /** Returns the object with the settings used for calls to getDatasetSchema. */ + public UnaryCallSettings getDatasetSchemaSettings() { + return getDatasetSchemaSettings; + } + + /** Returns the object with the settings used for calls to updateDatasetSchema. */ + public UnaryCallSettings + updateDatasetSchemaSettings() { + return updateDatasetSchemaSettings; + } + + /** Returns the object with the settings used for calls to listLocations. */ + public PagedCallSettings + listLocationsSettings() { + return listLocationsSettings; + } + + /** Returns the object with the settings used for calls to getLocation. */ + public UnaryCallSettings getLocationSettings() { + return getLocationSettings; + } + + public DocumentServiceStub createStub() throws IOException { + if (getTransportChannelProvider() + .getTransportName() + .equals(GrpcTransportChannel.getGrpcTransportName())) { + return GrpcDocumentServiceStub.create(this); + } + if (getTransportChannelProvider() + .getTransportName() + .equals(HttpJsonTransportChannel.getHttpJsonTransportName())) { + return HttpJsonDocumentServiceStub.create(this); + } + throw new UnsupportedOperationException( + String.format( + "Transport not supported: %s", getTransportChannelProvider().getTransportName())); + } + + /** Returns a builder for the default ExecutorProvider for this service. */ + public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { + return InstantiatingExecutorProvider.newBuilder(); + } + + /** Returns the default service endpoint. */ + public static String getDefaultEndpoint() { + return "documentai.googleapis.com:443"; + } + + /** Returns the default mTLS service endpoint. */ + public static String getDefaultMtlsEndpoint() { + return "documentai.mtls.googleapis.com:443"; + } + + /** Returns the default service scopes. */ + public static List getDefaultServiceScopes() { + return DEFAULT_SERVICE_SCOPES; + } + + /** Returns a builder for the default credentials for this service. */ + public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { + return GoogleCredentialsProvider.newBuilder() + .setScopesToApply(DEFAULT_SERVICE_SCOPES) + .setUseJwtAccessWithScope(true); + } + + /** Returns a builder for the default gRPC ChannelProvider for this service. */ + public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { + return InstantiatingGrpcChannelProvider.newBuilder() + .setMaxInboundMessageSize(Integer.MAX_VALUE); + } + + /** Returns a builder for the default REST ChannelProvider for this service. */ + @BetaApi + public static InstantiatingHttpJsonChannelProvider.Builder + defaultHttpJsonTransportProviderBuilder() { + return InstantiatingHttpJsonChannelProvider.newBuilder(); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return defaultGrpcTransportProviderBuilder().build(); + } + + @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") + public static ApiClientHeaderProvider.Builder defaultGrpcApiClientHeaderProviderBuilder() { + return ApiClientHeaderProvider.newBuilder() + .setGeneratedLibToken( + "gapic", GaxProperties.getLibraryVersion(DocumentServiceStubSettings.class)) + .setTransportToken( + GaxGrpcProperties.getGrpcTokenName(), GaxGrpcProperties.getGrpcVersion()); + } + + @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") + public static ApiClientHeaderProvider.Builder defaultHttpJsonApiClientHeaderProviderBuilder() { + return ApiClientHeaderProvider.newBuilder() + .setGeneratedLibToken( + "gapic", GaxProperties.getLibraryVersion(DocumentServiceStubSettings.class)) + .setTransportToken( + GaxHttpJsonProperties.getHttpJsonTokenName(), + GaxHttpJsonProperties.getHttpJsonVersion()); + } + + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return DocumentServiceStubSettings.defaultGrpcApiClientHeaderProviderBuilder(); + } + + /** Returns a new gRPC builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** Returns a new REST builder for this class. */ + public static Builder newHttpJsonBuilder() { + return Builder.createHttpJsonDefault(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder(ClientContext clientContext) { + return new Builder(clientContext); + } + + /** Returns a builder containing all the values of this settings class. */ + public Builder toBuilder() { + return new Builder(this); + } + + protected DocumentServiceStubSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + + updateDatasetSettings = settingsBuilder.updateDatasetSettings().build(); + updateDatasetOperationSettings = settingsBuilder.updateDatasetOperationSettings().build(); + getDatasetSchemaSettings = settingsBuilder.getDatasetSchemaSettings().build(); + updateDatasetSchemaSettings = settingsBuilder.updateDatasetSchemaSettings().build(); + listLocationsSettings = settingsBuilder.listLocationsSettings().build(); + getLocationSettings = settingsBuilder.getLocationSettings().build(); + } + + /** Builder for DocumentServiceStubSettings. */ + public static class Builder extends StubSettings.Builder { + private final ImmutableList> unaryMethodSettingsBuilders; + private final UnaryCallSettings.Builder updateDatasetSettings; + private final OperationCallSettings.Builder< + UpdateDatasetRequest, Dataset, UpdateDatasetOperationMetadata> + updateDatasetOperationSettings; + private final UnaryCallSettings.Builder + getDatasetSchemaSettings; + private final UnaryCallSettings.Builder + updateDatasetSchemaSettings; + private final PagedCallSettings.Builder< + ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> + listLocationsSettings; + private final UnaryCallSettings.Builder getLocationSettings; + private static final ImmutableMap> + RETRYABLE_CODE_DEFINITIONS; + + static { + ImmutableMap.Builder> definitions = + ImmutableMap.builder(); + definitions.put("no_retry_codes", ImmutableSet.copyOf(Lists.newArrayList())); + RETRYABLE_CODE_DEFINITIONS = definitions.build(); + } + + private static final ImmutableMap RETRY_PARAM_DEFINITIONS; + + static { + ImmutableMap.Builder definitions = ImmutableMap.builder(); + RetrySettings settings = null; + settings = RetrySettings.newBuilder().setRpcTimeoutMultiplier(1.0).build(); + definitions.put("no_retry_params", settings); + RETRY_PARAM_DEFINITIONS = definitions.build(); + } + + protected Builder() { + this(((ClientContext) null)); + } + + protected Builder(ClientContext clientContext) { + super(clientContext); + + updateDatasetSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + updateDatasetOperationSettings = OperationCallSettings.newBuilder(); + getDatasetSchemaSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + updateDatasetSchemaSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + listLocationsSettings = PagedCallSettings.newBuilder(LIST_LOCATIONS_PAGE_STR_FACT); + getLocationSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + + unaryMethodSettingsBuilders = + ImmutableList.>of( + updateDatasetSettings, + getDatasetSchemaSettings, + updateDatasetSchemaSettings, + listLocationsSettings, + getLocationSettings); + initDefaults(this); + } + + protected Builder(DocumentServiceStubSettings settings) { + super(settings); + + updateDatasetSettings = settings.updateDatasetSettings.toBuilder(); + updateDatasetOperationSettings = settings.updateDatasetOperationSettings.toBuilder(); + getDatasetSchemaSettings = settings.getDatasetSchemaSettings.toBuilder(); + updateDatasetSchemaSettings = settings.updateDatasetSchemaSettings.toBuilder(); + listLocationsSettings = settings.listLocationsSettings.toBuilder(); + getLocationSettings = settings.getLocationSettings.toBuilder(); + + unaryMethodSettingsBuilders = + ImmutableList.>of( + updateDatasetSettings, + getDatasetSchemaSettings, + updateDatasetSchemaSettings, + listLocationsSettings, + getLocationSettings); + } + + private static Builder createDefault() { + Builder builder = new Builder(((ClientContext) null)); + + builder.setTransportChannelProvider(defaultTransportChannelProvider()); + builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); + builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); + builder.setEndpoint(getDefaultEndpoint()); + builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); + builder.setSwitchToMtlsEndpointAllowed(true); + + return initDefaults(builder); + } + + private static Builder createHttpJsonDefault() { + Builder builder = new Builder(((ClientContext) null)); + + builder.setTransportChannelProvider(defaultHttpJsonTransportProviderBuilder().build()); + builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); + builder.setInternalHeaderProvider(defaultHttpJsonApiClientHeaderProviderBuilder().build()); + builder.setEndpoint(getDefaultEndpoint()); + builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); + builder.setSwitchToMtlsEndpointAllowed(true); + + return initDefaults(builder); + } + + private static Builder initDefaults(Builder builder) { + builder + .updateDatasetSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .getDatasetSchemaSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .updateDatasetSchemaSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .listLocationsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .getLocationSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .updateDatasetOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + .newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(Dataset.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create( + UpdateDatasetOperationMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelay(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelay(Duration.ofMillis(45000L)) + .setInitialRpcTimeout(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeout(Duration.ZERO) + .setTotalTimeout(Duration.ofMillis(300000L)) + .build())); + + return builder; + } + + /** + * Applies the given settings updater function to all of the unary API methods in this service. + * + *

Note: This method does not support applying settings to streaming methods. + */ + public Builder applyToAllUnaryMethods( + ApiFunction, Void> settingsUpdater) { + super.applyToAllUnaryMethods(unaryMethodSettingsBuilders, settingsUpdater); + return this; + } + + public ImmutableList> unaryMethodSettingsBuilders() { + return unaryMethodSettingsBuilders; + } + + /** Returns the builder for the settings used for calls to updateDataset. */ + public UnaryCallSettings.Builder updateDatasetSettings() { + return updateDatasetSettings; + } + + /** Returns the builder for the settings used for calls to updateDataset. */ + @BetaApi( + "The surface for use by generated code is not stable yet and may change in the future.") + public OperationCallSettings.Builder< + UpdateDatasetRequest, Dataset, UpdateDatasetOperationMetadata> + updateDatasetOperationSettings() { + return updateDatasetOperationSettings; + } + + /** Returns the builder for the settings used for calls to getDatasetSchema. */ + public UnaryCallSettings.Builder + getDatasetSchemaSettings() { + return getDatasetSchemaSettings; + } + + /** Returns the builder for the settings used for calls to updateDatasetSchema. */ + public UnaryCallSettings.Builder + updateDatasetSchemaSettings() { + return updateDatasetSchemaSettings; + } + + /** Returns the builder for the settings used for calls to listLocations. */ + public PagedCallSettings.Builder< + ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> + listLocationsSettings() { + return listLocationsSettings; + } + + /** Returns the builder for the settings used for calls to getLocation. */ + public UnaryCallSettings.Builder getLocationSettings() { + return getLocationSettings; + } + + @Override + public DocumentServiceStubSettings build() throws IOException { + return new DocumentServiceStubSettings(this); + } + } +} diff --git a/java-document-ai/google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1beta3/stub/GrpcDocumentServiceCallableFactory.java b/java-document-ai/google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1beta3/stub/GrpcDocumentServiceCallableFactory.java new file mode 100644 index 000000000000..7626498004c5 --- /dev/null +++ b/java-document-ai/google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1beta3/stub/GrpcDocumentServiceCallableFactory.java @@ -0,0 +1,115 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.stub; + +import com.google.api.core.BetaApi; +import com.google.api.gax.grpc.GrpcCallSettings; +import com.google.api.gax.grpc.GrpcCallableFactory; +import com.google.api.gax.grpc.GrpcStubCallableFactory; +import com.google.api.gax.rpc.BatchingCallSettings; +import com.google.api.gax.rpc.BidiStreamingCallable; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.ClientStreamingCallable; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallable; +import com.google.api.gax.rpc.StreamingCallSettings; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.longrunning.Operation; +import com.google.longrunning.stub.OperationsStub; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * gRPC callable factory implementation for the DocumentService service API. + * + *

This class is for advanced usage. + */ +@BetaApi +@Generated("by gapic-generator-java") +public class GrpcDocumentServiceCallableFactory implements GrpcStubCallableFactory { + + @Override + public UnaryCallable createUnaryCallable( + GrpcCallSettings grpcCallSettings, + UnaryCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createUnaryCallable(grpcCallSettings, callSettings, clientContext); + } + + @Override + public + UnaryCallable createPagedCallable( + GrpcCallSettings grpcCallSettings, + PagedCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createPagedCallable(grpcCallSettings, callSettings, clientContext); + } + + @Override + public UnaryCallable createBatchingCallable( + GrpcCallSettings grpcCallSettings, + BatchingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createBatchingCallable( + grpcCallSettings, callSettings, clientContext); + } + + @Override + public + OperationCallable createOperationCallable( + GrpcCallSettings grpcCallSettings, + OperationCallSettings callSettings, + ClientContext clientContext, + OperationsStub operationsStub) { + return GrpcCallableFactory.createOperationCallable( + grpcCallSettings, callSettings, clientContext, operationsStub); + } + + @Override + public + BidiStreamingCallable createBidiStreamingCallable( + GrpcCallSettings grpcCallSettings, + StreamingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createBidiStreamingCallable( + grpcCallSettings, callSettings, clientContext); + } + + @Override + public + ServerStreamingCallable createServerStreamingCallable( + GrpcCallSettings grpcCallSettings, + ServerStreamingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createServerStreamingCallable( + grpcCallSettings, callSettings, clientContext); + } + + @Override + public + ClientStreamingCallable createClientStreamingCallable( + GrpcCallSettings grpcCallSettings, + StreamingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createClientStreamingCallable( + grpcCallSettings, callSettings, clientContext); + } +} diff --git a/java-document-ai/google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1beta3/stub/GrpcDocumentServiceStub.java b/java-document-ai/google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1beta3/stub/GrpcDocumentServiceStub.java new file mode 100644 index 000000000000..af8922df392b --- /dev/null +++ b/java-document-ai/google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1beta3/stub/GrpcDocumentServiceStub.java @@ -0,0 +1,323 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.stub; + +import static com.google.cloud.documentai.v1beta3.DocumentServiceClient.ListLocationsPagedResponse; + +import com.google.api.core.BetaApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.core.BackgroundResourceAggregation; +import com.google.api.gax.grpc.GrpcCallSettings; +import com.google.api.gax.grpc.GrpcStubCallableFactory; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.RequestParamsBuilder; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.documentai.v1beta3.Dataset; +import com.google.cloud.documentai.v1beta3.DatasetSchema; +import com.google.cloud.documentai.v1beta3.GetDatasetSchemaRequest; +import com.google.cloud.documentai.v1beta3.UpdateDatasetOperationMetadata; +import com.google.cloud.documentai.v1beta3.UpdateDatasetRequest; +import com.google.cloud.documentai.v1beta3.UpdateDatasetSchemaRequest; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.longrunning.Operation; +import com.google.longrunning.stub.GrpcOperationsStub; +import io.grpc.MethodDescriptor; +import io.grpc.protobuf.ProtoUtils; +import java.io.IOException; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * gRPC stub implementation for the DocumentService service API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@BetaApi +@Generated("by gapic-generator-java") +public class GrpcDocumentServiceStub extends DocumentServiceStub { + private static final MethodDescriptor + updateDatasetMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.documentai.v1beta3.DocumentService/UpdateDataset") + .setRequestMarshaller( + ProtoUtils.marshaller(UpdateDatasetRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + getDatasetSchemaMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.documentai.v1beta3.DocumentService/GetDatasetSchema") + .setRequestMarshaller( + ProtoUtils.marshaller(GetDatasetSchemaRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(DatasetSchema.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + updateDatasetSchemaMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.documentai.v1beta3.DocumentService/UpdateDatasetSchema") + .setRequestMarshaller( + ProtoUtils.marshaller(UpdateDatasetSchemaRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(DatasetSchema.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + listLocationsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.location.Locations/ListLocations") + .setRequestMarshaller( + ProtoUtils.marshaller(ListLocationsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListLocationsResponse.getDefaultInstance())) + .build(); + + private static final MethodDescriptor getLocationMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.location.Locations/GetLocation") + .setRequestMarshaller(ProtoUtils.marshaller(GetLocationRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Location.getDefaultInstance())) + .build(); + + private final UnaryCallable updateDatasetCallable; + private final OperationCallable + updateDatasetOperationCallable; + private final UnaryCallable getDatasetSchemaCallable; + private final UnaryCallable + updateDatasetSchemaCallable; + private final UnaryCallable listLocationsCallable; + private final UnaryCallable + listLocationsPagedCallable; + private final UnaryCallable getLocationCallable; + + private final BackgroundResource backgroundResources; + private final GrpcOperationsStub operationsStub; + private final GrpcStubCallableFactory callableFactory; + + public static final GrpcDocumentServiceStub create(DocumentServiceStubSettings settings) + throws IOException { + return new GrpcDocumentServiceStub(settings, ClientContext.create(settings)); + } + + public static final GrpcDocumentServiceStub create(ClientContext clientContext) + throws IOException { + return new GrpcDocumentServiceStub( + DocumentServiceStubSettings.newBuilder().build(), clientContext); + } + + public static final GrpcDocumentServiceStub create( + ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException { + return new GrpcDocumentServiceStub( + DocumentServiceStubSettings.newBuilder().build(), clientContext, callableFactory); + } + + /** + * Constructs an instance of GrpcDocumentServiceStub, using the given settings. This is protected + * so that it is easy to make a subclass, but otherwise, the static factory methods should be + * preferred. + */ + protected GrpcDocumentServiceStub( + DocumentServiceStubSettings settings, ClientContext clientContext) throws IOException { + this(settings, clientContext, new GrpcDocumentServiceCallableFactory()); + } + + /** + * Constructs an instance of GrpcDocumentServiceStub, using the given settings. This is protected + * so that it is easy to make a subclass, but otherwise, the static factory methods should be + * preferred. + */ + protected GrpcDocumentServiceStub( + DocumentServiceStubSettings settings, + ClientContext clientContext, + GrpcStubCallableFactory callableFactory) + throws IOException { + this.callableFactory = callableFactory; + this.operationsStub = GrpcOperationsStub.create(clientContext, callableFactory); + + GrpcCallSettings updateDatasetTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(updateDatasetMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("dataset.name", String.valueOf(request.getDataset().getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings getDatasetSchemaTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getDatasetSchemaMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings + updateDatasetSchemaTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(updateDatasetSchemaMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add( + "dataset_schema.name", + String.valueOf(request.getDatasetSchema().getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings listLocationsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(listLocationsMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings getLocationTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getLocationMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + + this.updateDatasetCallable = + callableFactory.createUnaryCallable( + updateDatasetTransportSettings, settings.updateDatasetSettings(), clientContext); + this.updateDatasetOperationCallable = + callableFactory.createOperationCallable( + updateDatasetTransportSettings, + settings.updateDatasetOperationSettings(), + clientContext, + operationsStub); + this.getDatasetSchemaCallable = + callableFactory.createUnaryCallable( + getDatasetSchemaTransportSettings, settings.getDatasetSchemaSettings(), clientContext); + this.updateDatasetSchemaCallable = + callableFactory.createUnaryCallable( + updateDatasetSchemaTransportSettings, + settings.updateDatasetSchemaSettings(), + clientContext); + this.listLocationsCallable = + callableFactory.createUnaryCallable( + listLocationsTransportSettings, settings.listLocationsSettings(), clientContext); + this.listLocationsPagedCallable = + callableFactory.createPagedCallable( + listLocationsTransportSettings, settings.listLocationsSettings(), clientContext); + this.getLocationCallable = + callableFactory.createUnaryCallable( + getLocationTransportSettings, settings.getLocationSettings(), clientContext); + + this.backgroundResources = + new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + } + + public GrpcOperationsStub getOperationsStub() { + return operationsStub; + } + + @Override + public UnaryCallable updateDatasetCallable() { + return updateDatasetCallable; + } + + @Override + public OperationCallable + updateDatasetOperationCallable() { + return updateDatasetOperationCallable; + } + + @Override + public UnaryCallable getDatasetSchemaCallable() { + return getDatasetSchemaCallable; + } + + @Override + public UnaryCallable updateDatasetSchemaCallable() { + return updateDatasetSchemaCallable; + } + + @Override + public UnaryCallable listLocationsCallable() { + return listLocationsCallable; + } + + @Override + public UnaryCallable + listLocationsPagedCallable() { + return listLocationsPagedCallable; + } + + @Override + public UnaryCallable getLocationCallable() { + return getLocationCallable; + } + + @Override + public final void close() { + try { + backgroundResources.close(); + } catch (RuntimeException e) { + throw e; + } catch (Exception e) { + throw new IllegalStateException("Failed to close resource", e); + } + } + + @Override + public void shutdown() { + backgroundResources.shutdown(); + } + + @Override + public boolean isShutdown() { + return backgroundResources.isShutdown(); + } + + @Override + public boolean isTerminated() { + return backgroundResources.isTerminated(); + } + + @Override + public void shutdownNow() { + backgroundResources.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return backgroundResources.awaitTermination(duration, unit); + } +} diff --git a/java-document-ai/google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1beta3/stub/HttpJsonDocumentServiceCallableFactory.java b/java-document-ai/google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1beta3/stub/HttpJsonDocumentServiceCallableFactory.java new file mode 100644 index 000000000000..21034ed56f29 --- /dev/null +++ b/java-document-ai/google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1beta3/stub/HttpJsonDocumentServiceCallableFactory.java @@ -0,0 +1,105 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.stub; + +import com.google.api.core.BetaApi; +import com.google.api.gax.httpjson.HttpJsonCallSettings; +import com.google.api.gax.httpjson.HttpJsonCallableFactory; +import com.google.api.gax.httpjson.HttpJsonOperationSnapshotCallable; +import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; +import com.google.api.gax.httpjson.longrunning.stub.OperationsStub; +import com.google.api.gax.rpc.BatchingCallSettings; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallable; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.longrunning.Operation; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * REST callable factory implementation for the DocumentService service API. + * + *

This class is for advanced usage. + */ +@BetaApi +@Generated("by gapic-generator-java") +public class HttpJsonDocumentServiceCallableFactory + implements HttpJsonStubCallableFactory { + + @Override + public UnaryCallable createUnaryCallable( + HttpJsonCallSettings httpJsonCallSettings, + UnaryCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createUnaryCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public + UnaryCallable createPagedCallable( + HttpJsonCallSettings httpJsonCallSettings, + PagedCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createPagedCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public UnaryCallable createBatchingCallable( + HttpJsonCallSettings httpJsonCallSettings, + BatchingCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createBatchingCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + @Override + public + OperationCallable createOperationCallable( + HttpJsonCallSettings httpJsonCallSettings, + OperationCallSettings callSettings, + ClientContext clientContext, + OperationsStub operationsStub) { + UnaryCallable innerCallable = + HttpJsonCallableFactory.createBaseUnaryCallable( + httpJsonCallSettings, callSettings.getInitialCallSettings(), clientContext); + HttpJsonOperationSnapshotCallable initialCallable = + new HttpJsonOperationSnapshotCallable( + innerCallable, + httpJsonCallSettings.getMethodDescriptor().getOperationSnapshotFactory()); + return HttpJsonCallableFactory.createOperationCallable( + callSettings, clientContext, operationsStub.longRunningClient(), initialCallable); + } + + @Override + public + ServerStreamingCallable createServerStreamingCallable( + HttpJsonCallSettings httpJsonCallSettings, + ServerStreamingCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createServerStreamingCallable( + httpJsonCallSettings, callSettings, clientContext); + } +} diff --git a/java-document-ai/google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1beta3/stub/HttpJsonDocumentServiceStub.java b/java-document-ai/google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1beta3/stub/HttpJsonDocumentServiceStub.java new file mode 100644 index 000000000000..f0ce8f9e63bf --- /dev/null +++ b/java-document-ai/google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1beta3/stub/HttpJsonDocumentServiceStub.java @@ -0,0 +1,529 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.stub; + +import static com.google.cloud.documentai.v1beta3.DocumentServiceClient.ListLocationsPagedResponse; + +import com.google.api.HttpRule; +import com.google.api.core.BetaApi; +import com.google.api.core.InternalApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.core.BackgroundResourceAggregation; +import com.google.api.gax.httpjson.ApiMethodDescriptor; +import com.google.api.gax.httpjson.HttpJsonCallSettings; +import com.google.api.gax.httpjson.HttpJsonOperationSnapshot; +import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; +import com.google.api.gax.httpjson.ProtoMessageRequestFormatter; +import com.google.api.gax.httpjson.ProtoMessageResponseParser; +import com.google.api.gax.httpjson.ProtoRestSerializer; +import com.google.api.gax.httpjson.longrunning.stub.HttpJsonOperationsStub; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.RequestParamsBuilder; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.documentai.v1beta3.Dataset; +import com.google.cloud.documentai.v1beta3.DatasetSchema; +import com.google.cloud.documentai.v1beta3.GetDatasetSchemaRequest; +import com.google.cloud.documentai.v1beta3.UpdateDatasetOperationMetadata; +import com.google.cloud.documentai.v1beta3.UpdateDatasetRequest; +import com.google.cloud.documentai.v1beta3.UpdateDatasetSchemaRequest; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.common.collect.ImmutableMap; +import com.google.longrunning.Operation; +import com.google.protobuf.TypeRegistry; +import java.io.IOException; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * REST stub implementation for the DocumentService service API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@BetaApi +@Generated("by gapic-generator-java") +public class HttpJsonDocumentServiceStub extends DocumentServiceStub { + private static final TypeRegistry typeRegistry = + TypeRegistry.newBuilder() + .add(Dataset.getDescriptor()) + .add(UpdateDatasetOperationMetadata.getDescriptor()) + .build(); + + private static final ApiMethodDescriptor + updateDatasetMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.documentai.v1beta3.DocumentService/UpdateDataset") + .setHttpMethod("PATCH") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta3/{dataset.name=projects/*/locations/*/processors/*/dataset}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam( + fields, "dataset.name", request.getDataset().getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "updateMask", request.getUpdateMask()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("dataset", request.getDataset(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (UpdateDatasetRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private static final ApiMethodDescriptor + getDatasetSchemaMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.documentai.v1beta3.DocumentService/GetDatasetSchema") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta3/{name=projects/*/locations/*/processors/*/dataset/datasetSchema}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam( + fields, "visibleFieldsOnly", request.getVisibleFieldsOnly()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(DatasetSchema.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + updateDatasetSchemaMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.documentai.v1beta3.DocumentService/UpdateDatasetSchema") + .setHttpMethod("PATCH") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta3/{datasetSchema.name=projects/*/locations/*/processors/*/dataset/datasetSchema}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam( + fields, "datasetSchema.name", request.getDatasetSchema().getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "updateMask", request.getUpdateMask()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("datasetSchema", request.getDatasetSchema(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(DatasetSchema.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + listLocationsMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.location.Locations/ListLocations") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta3/{name=projects/*}/locations", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setAdditionalPaths("/uiv1beta3/{name=projects/*}/locations") + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ListLocationsResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + getLocationMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.location.Locations/GetLocation") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta3/{name=projects/*/locations/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setAdditionalPaths("/uiv1beta3/{name=projects/*/locations/*}") + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Location.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private final UnaryCallable updateDatasetCallable; + private final OperationCallable + updateDatasetOperationCallable; + private final UnaryCallable getDatasetSchemaCallable; + private final UnaryCallable + updateDatasetSchemaCallable; + private final UnaryCallable listLocationsCallable; + private final UnaryCallable + listLocationsPagedCallable; + private final UnaryCallable getLocationCallable; + + private final BackgroundResource backgroundResources; + private final HttpJsonOperationsStub httpJsonOperationsStub; + private final HttpJsonStubCallableFactory callableFactory; + + public static final HttpJsonDocumentServiceStub create(DocumentServiceStubSettings settings) + throws IOException { + return new HttpJsonDocumentServiceStub(settings, ClientContext.create(settings)); + } + + public static final HttpJsonDocumentServiceStub create(ClientContext clientContext) + throws IOException { + return new HttpJsonDocumentServiceStub( + DocumentServiceStubSettings.newHttpJsonBuilder().build(), clientContext); + } + + public static final HttpJsonDocumentServiceStub create( + ClientContext clientContext, HttpJsonStubCallableFactory callableFactory) throws IOException { + return new HttpJsonDocumentServiceStub( + DocumentServiceStubSettings.newHttpJsonBuilder().build(), clientContext, callableFactory); + } + + /** + * Constructs an instance of HttpJsonDocumentServiceStub, using the given settings. This is + * protected so that it is easy to make a subclass, but otherwise, the static factory methods + * should be preferred. + */ + protected HttpJsonDocumentServiceStub( + DocumentServiceStubSettings settings, ClientContext clientContext) throws IOException { + this(settings, clientContext, new HttpJsonDocumentServiceCallableFactory()); + } + + /** + * Constructs an instance of HttpJsonDocumentServiceStub, using the given settings. This is + * protected so that it is easy to make a subclass, but otherwise, the static factory methods + * should be preferred. + */ + protected HttpJsonDocumentServiceStub( + DocumentServiceStubSettings settings, + ClientContext clientContext, + HttpJsonStubCallableFactory callableFactory) + throws IOException { + this.callableFactory = callableFactory; + this.httpJsonOperationsStub = + HttpJsonOperationsStub.create( + clientContext, + callableFactory, + typeRegistry, + ImmutableMap.builder() + .put( + "google.longrunning.Operations.CancelOperation", + HttpRule.newBuilder() + .setPost("/v1beta3/{name=projects/*/locations/*/operations/*}:cancel") + .addAdditionalBindings( + HttpRule.newBuilder() + .setPost( + "/uiv1beta3/{name=projects/*/locations/*/operations/*}:cancel") + .build()) + .build()) + .put( + "google.longrunning.Operations.GetOperation", + HttpRule.newBuilder() + .setGet("/v1beta3/{name=projects/*/locations/*/operations/*}") + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet("/uiv1beta3/{name=projects/*/locations/*/operations/*}") + .build()) + .build()) + .put( + "google.longrunning.Operations.ListOperations", + HttpRule.newBuilder() + .setGet("/v1beta3/{name=projects/*/locations/*/operations}") + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet("/uiv1beta3/{name=projects/*/locations/*/operations}") + .build()) + .build()) + .build()); + + HttpJsonCallSettings updateDatasetTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(updateDatasetMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("dataset.name", String.valueOf(request.getDataset().getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings getDatasetSchemaTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getDatasetSchemaMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + updateDatasetSchemaTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(updateDatasetSchemaMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add( + "dataset_schema.name", + String.valueOf(request.getDatasetSchema().getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + listLocationsTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(listLocationsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings getLocationTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getLocationMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + + this.updateDatasetCallable = + callableFactory.createUnaryCallable( + updateDatasetTransportSettings, settings.updateDatasetSettings(), clientContext); + this.updateDatasetOperationCallable = + callableFactory.createOperationCallable( + updateDatasetTransportSettings, + settings.updateDatasetOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.getDatasetSchemaCallable = + callableFactory.createUnaryCallable( + getDatasetSchemaTransportSettings, settings.getDatasetSchemaSettings(), clientContext); + this.updateDatasetSchemaCallable = + callableFactory.createUnaryCallable( + updateDatasetSchemaTransportSettings, + settings.updateDatasetSchemaSettings(), + clientContext); + this.listLocationsCallable = + callableFactory.createUnaryCallable( + listLocationsTransportSettings, settings.listLocationsSettings(), clientContext); + this.listLocationsPagedCallable = + callableFactory.createPagedCallable( + listLocationsTransportSettings, settings.listLocationsSettings(), clientContext); + this.getLocationCallable = + callableFactory.createUnaryCallable( + getLocationTransportSettings, settings.getLocationSettings(), clientContext); + + this.backgroundResources = + new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + } + + @InternalApi + public static List getMethodDescriptors() { + List methodDescriptors = new ArrayList<>(); + methodDescriptors.add(updateDatasetMethodDescriptor); + methodDescriptors.add(getDatasetSchemaMethodDescriptor); + methodDescriptors.add(updateDatasetSchemaMethodDescriptor); + methodDescriptors.add(listLocationsMethodDescriptor); + methodDescriptors.add(getLocationMethodDescriptor); + return methodDescriptors; + } + + public HttpJsonOperationsStub getHttpJsonOperationsStub() { + return httpJsonOperationsStub; + } + + @Override + public UnaryCallable updateDatasetCallable() { + return updateDatasetCallable; + } + + @Override + public OperationCallable + updateDatasetOperationCallable() { + return updateDatasetOperationCallable; + } + + @Override + public UnaryCallable getDatasetSchemaCallable() { + return getDatasetSchemaCallable; + } + + @Override + public UnaryCallable updateDatasetSchemaCallable() { + return updateDatasetSchemaCallable; + } + + @Override + public UnaryCallable listLocationsCallable() { + return listLocationsCallable; + } + + @Override + public UnaryCallable + listLocationsPagedCallable() { + return listLocationsPagedCallable; + } + + @Override + public UnaryCallable getLocationCallable() { + return getLocationCallable; + } + + @Override + public final void close() { + try { + backgroundResources.close(); + } catch (RuntimeException e) { + throw e; + } catch (Exception e) { + throw new IllegalStateException("Failed to close resource", e); + } + } + + @Override + public void shutdown() { + backgroundResources.shutdown(); + } + + @Override + public boolean isShutdown() { + return backgroundResources.isShutdown(); + } + + @Override + public boolean isTerminated() { + return backgroundResources.isTerminated(); + } + + @Override + public void shutdownNow() { + backgroundResources.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return backgroundResources.awaitTermination(duration, unit); + } +} diff --git a/java-document-ai/google-cloud-document-ai/src/test/java/com/google/cloud/documentai/v1beta3/DocumentServiceClientHttpJsonTest.java b/java-document-ai/google-cloud-document-ai/src/test/java/com/google/cloud/documentai/v1beta3/DocumentServiceClientHttpJsonTest.java new file mode 100644 index 000000000000..fc73c0cd913a --- /dev/null +++ b/java-document-ai/google-cloud-document-ai/src/test/java/com/google/cloud/documentai/v1beta3/DocumentServiceClientHttpJsonTest.java @@ -0,0 +1,405 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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 com.google.cloud.documentai.v1beta3.DocumentServiceClient.ListLocationsPagedResponse; + +import com.google.api.gax.core.NoCredentialsProvider; +import com.google.api.gax.httpjson.GaxHttpJsonProperties; +import com.google.api.gax.httpjson.testing.MockHttpService; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ApiException; +import com.google.api.gax.rpc.ApiExceptionFactory; +import com.google.api.gax.rpc.InvalidArgumentException; +import com.google.api.gax.rpc.StatusCode; +import com.google.api.gax.rpc.testing.FakeStatusCode; +import com.google.cloud.documentai.v1beta3.stub.HttpJsonDocumentServiceStub; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.common.collect.Lists; +import com.google.longrunning.Operation; +import com.google.protobuf.Any; +import com.google.protobuf.FieldMask; +import java.io.IOException; +import java.util.Arrays; +import java.util.HashMap; +import java.util.List; +import java.util.concurrent.ExecutionException; +import javax.annotation.Generated; +import org.junit.After; +import org.junit.AfterClass; +import org.junit.Assert; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; + +@Generated("by gapic-generator-java") +public class DocumentServiceClientHttpJsonTest { + private static MockHttpService mockService; + private static DocumentServiceClient client; + + @BeforeClass + public static void startStaticServer() throws IOException { + mockService = + new MockHttpService( + HttpJsonDocumentServiceStub.getMethodDescriptors(), + DocumentServiceSettings.getDefaultEndpoint()); + DocumentServiceSettings settings = + DocumentServiceSettings.newHttpJsonBuilder() + .setTransportChannelProvider( + DocumentServiceSettings.defaultHttpJsonTransportProviderBuilder() + .setHttpTransport(mockService) + .build()) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = DocumentServiceClient.create(settings); + } + + @AfterClass + public static void stopServer() { + client.close(); + } + + @Before + public void setUp() {} + + @After + public void tearDown() throws Exception { + mockService.reset(); + } + + @Test + public void updateDatasetTest() throws Exception { + Dataset expectedResponse = Dataset.newBuilder().setName("name3373707").build(); + Operation resultOperation = + Operation.newBuilder() + .setName("updateDatasetTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + Dataset dataset = + Dataset.newBuilder() + .setName( + "projects/project-2550/locations/location-2550/processors/processor-2550/dataset") + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + Dataset actualResponse = client.updateDatasetAsync(dataset, updateMask).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void updateDatasetExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + Dataset dataset = + Dataset.newBuilder() + .setName( + "projects/project-2550/locations/location-2550/processors/processor-2550/dataset") + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateDatasetAsync(dataset, updateMask).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void getDatasetSchemaTest() throws Exception { + DatasetSchema expectedResponse = + DatasetSchema.newBuilder() + .setName(DatasetSchemaName.of("[PROJECT]", "[LOCATION]", "[PROCESSOR]").toString()) + .setDocumentSchema(DocumentSchema.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + DatasetSchemaName name = DatasetSchemaName.of("[PROJECT]", "[LOCATION]", "[PROCESSOR]"); + + DatasetSchema actualResponse = client.getDatasetSchema(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getDatasetSchemaExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + DatasetSchemaName name = DatasetSchemaName.of("[PROJECT]", "[LOCATION]", "[PROCESSOR]"); + client.getDatasetSchema(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getDatasetSchemaTest2() throws Exception { + DatasetSchema expectedResponse = + DatasetSchema.newBuilder() + .setName(DatasetSchemaName.of("[PROJECT]", "[LOCATION]", "[PROCESSOR]").toString()) + .setDocumentSchema(DocumentSchema.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + String name = + "projects/project-540/locations/location-540/processors/processor-540/dataset/datasetSchema"; + + DatasetSchema actualResponse = client.getDatasetSchema(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getDatasetSchemaExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-540/locations/location-540/processors/processor-540/dataset/datasetSchema"; + client.getDatasetSchema(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void updateDatasetSchemaTest() throws Exception { + DatasetSchema expectedResponse = + DatasetSchema.newBuilder() + .setName(DatasetSchemaName.of("[PROJECT]", "[LOCATION]", "[PROCESSOR]").toString()) + .setDocumentSchema(DocumentSchema.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + DatasetSchema datasetSchema = + DatasetSchema.newBuilder() + .setName(DatasetSchemaName.of("[PROJECT]", "[LOCATION]", "[PROCESSOR]").toString()) + .setDocumentSchema(DocumentSchema.newBuilder().build()) + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + DatasetSchema actualResponse = client.updateDatasetSchema(datasetSchema, updateMask); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void updateDatasetSchemaExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + DatasetSchema datasetSchema = + DatasetSchema.newBuilder() + .setName(DatasetSchemaName.of("[PROJECT]", "[LOCATION]", "[PROCESSOR]").toString()) + .setDocumentSchema(DocumentSchema.newBuilder().build()) + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateDatasetSchema(datasetSchema, updateMask); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listLocationsTest() throws Exception { + Location responsesElement = Location.newBuilder().build(); + ListLocationsResponse expectedResponse = + ListLocationsResponse.newBuilder() + .setNextPageToken("") + .addAllLocations(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + ListLocationsRequest request = + ListLocationsRequest.newBuilder() + .setName("projects/project-3664") + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + + ListLocationsPagedResponse pagedListResponse = client.listLocations(request); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getLocationsList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listLocationsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ListLocationsRequest request = + ListLocationsRequest.newBuilder() + .setName("projects/project-3664") + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + client.listLocations(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getLocationTest() throws Exception { + Location expectedResponse = + Location.newBuilder() + .setName("name3373707") + .setLocationId("locationId1541836720") + .setDisplayName("displayName1714148973") + .putAllLabels(new HashMap()) + .setMetadata(Any.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + GetLocationRequest request = + GetLocationRequest.newBuilder() + .setName("projects/project-9062/locations/location-9062") + .build(); + + Location actualResponse = client.getLocation(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getLocationExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + GetLocationRequest request = + GetLocationRequest.newBuilder() + .setName("projects/project-9062/locations/location-9062") + .build(); + client.getLocation(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } +} diff --git a/java-document-ai/google-cloud-document-ai/src/test/java/com/google/cloud/documentai/v1beta3/DocumentServiceClientTest.java b/java-document-ai/google-cloud-document-ai/src/test/java/com/google/cloud/documentai/v1beta3/DocumentServiceClientTest.java new file mode 100644 index 000000000000..719c1fcc8f38 --- /dev/null +++ b/java-document-ai/google-cloud-document-ai/src/test/java/com/google/cloud/documentai/v1beta3/DocumentServiceClientTest.java @@ -0,0 +1,360 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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 com.google.cloud.documentai.v1beta3.DocumentServiceClient.ListLocationsPagedResponse; + +import com.google.api.gax.core.NoCredentialsProvider; +import com.google.api.gax.grpc.GaxGrpcProperties; +import com.google.api.gax.grpc.testing.LocalChannelProvider; +import com.google.api.gax.grpc.testing.MockGrpcService; +import com.google.api.gax.grpc.testing.MockServiceHelper; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.InvalidArgumentException; +import com.google.api.gax.rpc.StatusCode; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.common.collect.Lists; +import com.google.longrunning.Operation; +import com.google.protobuf.AbstractMessage; +import com.google.protobuf.Any; +import com.google.protobuf.FieldMask; +import io.grpc.StatusRuntimeException; +import java.io.IOException; +import java.util.Arrays; +import java.util.HashMap; +import java.util.List; +import java.util.UUID; +import java.util.concurrent.ExecutionException; +import javax.annotation.Generated; +import org.junit.After; +import org.junit.AfterClass; +import org.junit.Assert; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; + +@Generated("by gapic-generator-java") +public class DocumentServiceClientTest { + private static MockDocumentService mockDocumentService; + private static MockLocations mockLocations; + private static MockServiceHelper mockServiceHelper; + private LocalChannelProvider channelProvider; + private DocumentServiceClient client; + + @BeforeClass + public static void startStaticServer() { + mockDocumentService = new MockDocumentService(); + mockLocations = new MockLocations(); + mockServiceHelper = + new MockServiceHelper( + UUID.randomUUID().toString(), + Arrays.asList(mockDocumentService, mockLocations)); + mockServiceHelper.start(); + } + + @AfterClass + public static void stopServer() { + mockServiceHelper.stop(); + } + + @Before + public void setUp() throws IOException { + mockServiceHelper.reset(); + channelProvider = mockServiceHelper.createChannelProvider(); + DocumentServiceSettings settings = + DocumentServiceSettings.newBuilder() + .setTransportChannelProvider(channelProvider) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = DocumentServiceClient.create(settings); + } + + @After + public void tearDown() throws Exception { + client.close(); + } + + @Test + public void updateDatasetTest() throws Exception { + Dataset expectedResponse = Dataset.newBuilder().setName("name3373707").build(); + Operation resultOperation = + Operation.newBuilder() + .setName("updateDatasetTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockDocumentService.addResponse(resultOperation); + + Dataset dataset = Dataset.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + Dataset actualResponse = client.updateDatasetAsync(dataset, updateMask).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockDocumentService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + UpdateDatasetRequest actualRequest = ((UpdateDatasetRequest) actualRequests.get(0)); + + Assert.assertEquals(dataset, actualRequest.getDataset()); + Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void updateDatasetExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDocumentService.addException(exception); + + try { + Dataset dataset = Dataset.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateDatasetAsync(dataset, updateMask).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void getDatasetSchemaTest() throws Exception { + DatasetSchema expectedResponse = + DatasetSchema.newBuilder() + .setName(DatasetSchemaName.of("[PROJECT]", "[LOCATION]", "[PROCESSOR]").toString()) + .setDocumentSchema(DocumentSchema.newBuilder().build()) + .build(); + mockDocumentService.addResponse(expectedResponse); + + DatasetSchemaName name = DatasetSchemaName.of("[PROJECT]", "[LOCATION]", "[PROCESSOR]"); + + DatasetSchema actualResponse = client.getDatasetSchema(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockDocumentService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetDatasetSchemaRequest actualRequest = ((GetDatasetSchemaRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getDatasetSchemaExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDocumentService.addException(exception); + + try { + DatasetSchemaName name = DatasetSchemaName.of("[PROJECT]", "[LOCATION]", "[PROCESSOR]"); + client.getDatasetSchema(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getDatasetSchemaTest2() throws Exception { + DatasetSchema expectedResponse = + DatasetSchema.newBuilder() + .setName(DatasetSchemaName.of("[PROJECT]", "[LOCATION]", "[PROCESSOR]").toString()) + .setDocumentSchema(DocumentSchema.newBuilder().build()) + .build(); + mockDocumentService.addResponse(expectedResponse); + + String name = "name3373707"; + + DatasetSchema actualResponse = client.getDatasetSchema(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockDocumentService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetDatasetSchemaRequest actualRequest = ((GetDatasetSchemaRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getDatasetSchemaExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDocumentService.addException(exception); + + try { + String name = "name3373707"; + client.getDatasetSchema(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void updateDatasetSchemaTest() throws Exception { + DatasetSchema expectedResponse = + DatasetSchema.newBuilder() + .setName(DatasetSchemaName.of("[PROJECT]", "[LOCATION]", "[PROCESSOR]").toString()) + .setDocumentSchema(DocumentSchema.newBuilder().build()) + .build(); + mockDocumentService.addResponse(expectedResponse); + + DatasetSchema datasetSchema = DatasetSchema.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + DatasetSchema actualResponse = client.updateDatasetSchema(datasetSchema, updateMask); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockDocumentService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + UpdateDatasetSchemaRequest actualRequest = ((UpdateDatasetSchemaRequest) actualRequests.get(0)); + + Assert.assertEquals(datasetSchema, actualRequest.getDatasetSchema()); + Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void updateDatasetSchemaExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDocumentService.addException(exception); + + try { + DatasetSchema datasetSchema = DatasetSchema.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateDatasetSchema(datasetSchema, updateMask); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listLocationsTest() throws Exception { + Location responsesElement = Location.newBuilder().build(); + ListLocationsResponse expectedResponse = + ListLocationsResponse.newBuilder() + .setNextPageToken("") + .addAllLocations(Arrays.asList(responsesElement)) + .build(); + mockLocations.addResponse(expectedResponse); + + ListLocationsRequest request = + ListLocationsRequest.newBuilder() + .setName("name3373707") + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + + ListLocationsPagedResponse pagedListResponse = client.listLocations(request); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getLocationsList().get(0), resources.get(0)); + + List actualRequests = mockLocations.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListLocationsRequest actualRequest = ((ListLocationsRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getName(), actualRequest.getName()); + Assert.assertEquals(request.getFilter(), actualRequest.getFilter()); + Assert.assertEquals(request.getPageSize(), actualRequest.getPageSize()); + Assert.assertEquals(request.getPageToken(), actualRequest.getPageToken()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listLocationsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockLocations.addException(exception); + + try { + ListLocationsRequest request = + ListLocationsRequest.newBuilder() + .setName("name3373707") + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + client.listLocations(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getLocationTest() throws Exception { + Location expectedResponse = + Location.newBuilder() + .setName("name3373707") + .setLocationId("locationId1541836720") + .setDisplayName("displayName1714148973") + .putAllLabels(new HashMap()) + .setMetadata(Any.newBuilder().build()) + .build(); + mockLocations.addResponse(expectedResponse); + + GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build(); + + Location actualResponse = client.getLocation(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockLocations.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetLocationRequest actualRequest = ((GetLocationRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getName(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getLocationExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockLocations.addException(exception); + + try { + GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build(); + client.getLocation(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } +} diff --git a/java-document-ai/google-cloud-document-ai/src/test/java/com/google/cloud/documentai/v1beta3/MockDocumentService.java b/java-document-ai/google-cloud-document-ai/src/test/java/com/google/cloud/documentai/v1beta3/MockDocumentService.java new file mode 100644 index 000000000000..dacf876a662f --- /dev/null +++ b/java-document-ai/google-cloud-document-ai/src/test/java/com/google/cloud/documentai/v1beta3/MockDocumentService.java @@ -0,0 +1,59 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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 com.google.api.core.BetaApi; +import com.google.api.gax.grpc.testing.MockGrpcService; +import com.google.protobuf.AbstractMessage; +import io.grpc.ServerServiceDefinition; +import java.util.List; +import javax.annotation.Generated; + +@BetaApi +@Generated("by gapic-generator-java") +public class MockDocumentService implements MockGrpcService { + private final MockDocumentServiceImpl serviceImpl; + + public MockDocumentService() { + serviceImpl = new MockDocumentServiceImpl(); + } + + @Override + public List getRequests() { + return serviceImpl.getRequests(); + } + + @Override + public void addResponse(AbstractMessage response) { + serviceImpl.addResponse(response); + } + + @Override + public void addException(Exception exception) { + serviceImpl.addException(exception); + } + + @Override + public ServerServiceDefinition getServiceDefinition() { + return serviceImpl.bindService(); + } + + @Override + public void reset() { + serviceImpl.reset(); + } +} diff --git a/java-document-ai/google-cloud-document-ai/src/test/java/com/google/cloud/documentai/v1beta3/MockDocumentServiceImpl.java b/java-document-ai/google-cloud-document-ai/src/test/java/com/google/cloud/documentai/v1beta3/MockDocumentServiceImpl.java new file mode 100644 index 000000000000..6f8fb5085724 --- /dev/null +++ b/java-document-ai/google-cloud-document-ai/src/test/java/com/google/cloud/documentai/v1beta3/MockDocumentServiceImpl.java @@ -0,0 +1,124 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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 com.google.api.core.BetaApi; +import com.google.cloud.documentai.v1beta3.DocumentServiceGrpc.DocumentServiceImplBase; +import com.google.longrunning.Operation; +import com.google.protobuf.AbstractMessage; +import io.grpc.stub.StreamObserver; +import java.util.ArrayList; +import java.util.LinkedList; +import java.util.List; +import java.util.Queue; +import javax.annotation.Generated; + +@BetaApi +@Generated("by gapic-generator-java") +public class MockDocumentServiceImpl extends DocumentServiceImplBase { + private List requests; + private Queue responses; + + public MockDocumentServiceImpl() { + requests = new ArrayList<>(); + responses = new LinkedList<>(); + } + + public List getRequests() { + return requests; + } + + public void addResponse(AbstractMessage response) { + responses.add(response); + } + + public void setResponses(List responses) { + this.responses = new LinkedList(responses); + } + + public void addException(Exception exception) { + responses.add(exception); + } + + public void reset() { + requests = new ArrayList<>(); + responses = new LinkedList<>(); + } + + @Override + public void updateDataset( + UpdateDatasetRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Operation) { + requests.add(request); + responseObserver.onNext(((Operation) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method UpdateDataset, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void getDatasetSchema( + GetDatasetSchemaRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof DatasetSchema) { + requests.add(request); + responseObserver.onNext(((DatasetSchema) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method GetDatasetSchema, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + DatasetSchema.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void updateDatasetSchema( + UpdateDatasetSchemaRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof DatasetSchema) { + requests.add(request); + responseObserver.onNext(((DatasetSchema) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method UpdateDatasetSchema, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + DatasetSchema.class.getName(), + Exception.class.getName()))); + } + } +} diff --git a/java-document-ai/grpc-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/DocumentProcessorServiceGrpc.java b/java-document-ai/grpc-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/DocumentProcessorServiceGrpc.java index a5b763570cc9..29602671a4b3 100644 --- a/java-document-ai/grpc-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/DocumentProcessorServiceGrpc.java +++ b/java-document-ai/grpc-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/DocumentProcessorServiceGrpc.java @@ -21,7 +21,7 @@ * * *
- * Service to call Cloud DocumentAI to process documents according to the
+ * Service to call Document AI 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.
@@ -1163,7 +1163,7 @@ public DocumentProcessorServiceFutureStub newStub(
    *
    *
    * 
-   * Service to call Cloud DocumentAI to process documents according to the
+   * Service to call Document AI 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.
@@ -1205,8 +1205,9 @@ default void batchProcessDocuments(
      *
      *
      * 
-     * Fetches processor types. Note that we do not use ListProcessorTypes here
-     * because it is not paginated.
+     * Fetches processor types. Note that we don't use
+     * [ListProcessorTypes][google.cloud.documentai.v1.DocumentProcessorService.ListProcessorTypes]
+     * here, because it isn't paginated.
      * 
*/ default void fetchProcessorTypes( @@ -1282,7 +1283,7 @@ default void getProcessor( *
      * Trains a new processor version.
      * Operation metadata is returned as
-     * cloud_documentai_core.TrainProcessorVersionMetadata.
+     * [TrainProcessorVersionMetadata][google.cloud.documentai.v1.TrainProcessorVersionMetadata].
      * 
*/ default void trainProcessorVersion( @@ -1369,8 +1370,9 @@ default void undeployProcessorVersion( * * *
-     * Creates a processor from the type processor that the user chose.
-     * The processor will be at "ENABLED" state by default after its creation.
+     * Creates a processor from the
+     * [ProcessorType][google.cloud.documentai.v1.ProcessorType] provided. The
+     * processor will be at `ENABLED` state by default after its creation.
      * 
*/ default void createProcessor( @@ -1505,7 +1507,7 @@ default void listEvaluations( * Base class for the server implementation of the service DocumentProcessorService. * *
-   * Service to call Cloud DocumentAI to process documents according to the
+   * Service to call Document AI 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.
@@ -1524,7 +1526,7 @@ public final io.grpc.ServerServiceDefinition bindService() {
    * A stub to allow clients to do asynchronous rpc calls to service DocumentProcessorService.
    *
    * 
-   * Service to call Cloud DocumentAI to process documents according to the
+   * Service to call Document AI 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.
@@ -1580,8 +1582,9 @@ public void batchProcessDocuments(
      *
      *
      * 
-     * Fetches processor types. Note that we do not use ListProcessorTypes here
-     * because it is not paginated.
+     * Fetches processor types. Note that we don't use
+     * [ListProcessorTypes][google.cloud.documentai.v1.DocumentProcessorService.ListProcessorTypes]
+     * here, because it isn't paginated.
      * 
*/ public void fetchProcessorTypes( @@ -1667,7 +1670,7 @@ public void getProcessor( *
      * Trains a new processor version.
      * Operation metadata is returned as
-     * cloud_documentai_core.TrainProcessorVersionMetadata.
+     * [TrainProcessorVersionMetadata][google.cloud.documentai.v1.TrainProcessorVersionMetadata].
      * 
*/ public void trainProcessorVersion( @@ -1766,8 +1769,9 @@ public void undeployProcessorVersion( * * *
-     * Creates a processor from the type processor that the user chose.
-     * The processor will be at "ENABLED" state by default after its creation.
+     * Creates a processor from the
+     * [ProcessorType][google.cloud.documentai.v1.ProcessorType] provided. The
+     * processor will be at `ENABLED` state by default after its creation.
      * 
*/ public void createProcessor( @@ -1920,7 +1924,7 @@ public void listEvaluations( * A stub to allow clients to do synchronous rpc calls to service DocumentProcessorService. * *
-   * Service to call Cloud DocumentAI to process documents according to the
+   * Service to call Document AI 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.
@@ -1970,8 +1974,9 @@ public com.google.longrunning.Operation batchProcessDocuments(
      *
      *
      * 
-     * Fetches processor types. Note that we do not use ListProcessorTypes here
-     * because it is not paginated.
+     * Fetches processor types. Note that we don't use
+     * [ListProcessorTypes][google.cloud.documentai.v1.DocumentProcessorService.ListProcessorTypes]
+     * here, because it isn't paginated.
      * 
*/ public com.google.cloud.documentai.v1.FetchProcessorTypesResponse fetchProcessorTypes( @@ -2038,7 +2043,7 @@ public com.google.cloud.documentai.v1.Processor getProcessor( *
      * Trains a new processor version.
      * Operation metadata is returned as
-     * cloud_documentai_core.TrainProcessorVersionMetadata.
+     * [TrainProcessorVersionMetadata][google.cloud.documentai.v1.TrainProcessorVersionMetadata].
      * 
*/ public com.google.longrunning.Operation trainProcessorVersion( @@ -2117,8 +2122,9 @@ public com.google.longrunning.Operation undeployProcessorVersion( * * *
-     * Creates a processor from the type processor that the user chose.
-     * The processor will be at "ENABLED" state by default after its creation.
+     * Creates a processor from the
+     * [ProcessorType][google.cloud.documentai.v1.ProcessorType] provided. The
+     * processor will be at `ENABLED` state by default after its creation.
      * 
*/ public com.google.cloud.documentai.v1.Processor createProcessor( @@ -2244,7 +2250,7 @@ public com.google.cloud.documentai.v1.ListEvaluationsResponse listEvaluations( * DocumentProcessorService. * *
-   * Service to call Cloud DocumentAI to process documents according to the
+   * Service to call Document AI 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.
@@ -2295,8 +2301,9 @@ protected DocumentProcessorServiceFutureStub build(
      *
      *
      * 
-     * Fetches processor types. Note that we do not use ListProcessorTypes here
-     * because it is not paginated.
+     * Fetches processor types. Note that we don't use
+     * [ListProcessorTypes][google.cloud.documentai.v1.DocumentProcessorService.ListProcessorTypes]
+     * here, because it isn't paginated.
      * 
*/ public com.google.common.util.concurrent.ListenableFuture< @@ -2368,7 +2375,7 @@ protected DocumentProcessorServiceFutureStub build( *
      * Trains a new processor version.
      * Operation metadata is returned as
-     * cloud_documentai_core.TrainProcessorVersionMetadata.
+     * [TrainProcessorVersionMetadata][google.cloud.documentai.v1.TrainProcessorVersionMetadata].
      * 
*/ public com.google.common.util.concurrent.ListenableFuture @@ -2452,8 +2459,9 @@ protected DocumentProcessorServiceFutureStub build( * * *
-     * Creates a processor from the type processor that the user chose.
-     * The processor will be at "ENABLED" state by default after its creation.
+     * Creates a processor from the
+     * [ProcessorType][google.cloud.documentai.v1.ProcessorType] provided. The
+     * processor will be at `ENABLED` state by default after its creation.
      * 
*/ public com.google.common.util.concurrent.ListenableFuture< diff --git a/java-document-ai/grpc-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/DocumentProcessorServiceGrpc.java b/java-document-ai/grpc-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/DocumentProcessorServiceGrpc.java index f1e314bac906..ddb5c13dde73 100644 --- a/java-document-ai/grpc-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/DocumentProcessorServiceGrpc.java +++ b/java-document-ai/grpc-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/DocumentProcessorServiceGrpc.java @@ -21,7 +21,7 @@ * * *
- * Service to call Cloud DocumentAI to process documents according to the
+ * Service to call Document AI 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.
@@ -1232,7 +1232,7 @@ public DocumentProcessorServiceFutureStub newStub(
    *
    *
    * 
-   * Service to call Cloud DocumentAI to process documents according to the
+   * Service to call Document AI 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.
@@ -1274,8 +1274,9 @@ default void batchProcessDocuments(
      *
      *
      * 
-     * Fetches processor types. Note that we do not use ListProcessorTypes here
-     * because it is not paginated.
+     * Fetches processor types. Note that we don't use
+     * [ListProcessorTypes][google.cloud.documentai.v1beta3.DocumentProcessorService.ListProcessorTypes]
+     * here, because it isn't paginated.
      * 
*/ default void fetchProcessorTypes( @@ -1352,7 +1353,7 @@ default void getProcessor( *
      * Trains a new processor version.
      * Operation metadata is returned as
-     * cloud_documentai_core.TrainProcessorVersionMetadata.
+     * [TrainProcessorVersionMetadata][google.cloud.documentai.v1beta3.TrainProcessorVersionMetadata].
      * 
*/ default void trainProcessorVersion( @@ -1440,8 +1441,9 @@ default void undeployProcessorVersion( * * *
-     * Creates a processor from the type processor that the user chose.
-     * The processor will be at "ENABLED" state by default after its creation.
+     * Creates a processor from the
+     * [ProcessorType][google.cloud.documentai.v1beta3.ProcessorType] provided.
+     * The processor will be at `ENABLED` state by default after its creation.
      * 
*/ default void createProcessor( @@ -1592,7 +1594,7 @@ default void importProcessorVersion( * Base class for the server implementation of the service DocumentProcessorService. * *
-   * Service to call Cloud DocumentAI to process documents according to the
+   * Service to call Document AI 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.
@@ -1611,7 +1613,7 @@ public final io.grpc.ServerServiceDefinition bindService() {
    * A stub to allow clients to do asynchronous rpc calls to service DocumentProcessorService.
    *
    * 
-   * Service to call Cloud DocumentAI to process documents according to the
+   * Service to call Document AI 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.
@@ -1667,8 +1669,9 @@ public void batchProcessDocuments(
      *
      *
      * 
-     * Fetches processor types. Note that we do not use ListProcessorTypes here
-     * because it is not paginated.
+     * Fetches processor types. Note that we don't use
+     * [ListProcessorTypes][google.cloud.documentai.v1beta3.DocumentProcessorService.ListProcessorTypes]
+     * here, because it isn't paginated.
      * 
*/ public void fetchProcessorTypes( @@ -1755,7 +1758,7 @@ public void getProcessor( *
      * Trains a new processor version.
      * Operation metadata is returned as
-     * cloud_documentai_core.TrainProcessorVersionMetadata.
+     * [TrainProcessorVersionMetadata][google.cloud.documentai.v1beta3.TrainProcessorVersionMetadata].
      * 
*/ public void trainProcessorVersion( @@ -1855,8 +1858,9 @@ public void undeployProcessorVersion( * * *
-     * Creates a processor from the type processor that the user chose.
-     * The processor will be at "ENABLED" state by default after its creation.
+     * Creates a processor from the
+     * [ProcessorType][google.cloud.documentai.v1beta3.ProcessorType] provided.
+     * The processor will be at `ENABLED` state by default after its creation.
      * 
*/ public void createProcessor( @@ -2027,7 +2031,7 @@ public void importProcessorVersion( * A stub to allow clients to do synchronous rpc calls to service DocumentProcessorService. * *
-   * Service to call Cloud DocumentAI to process documents according to the
+   * Service to call Document AI 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.
@@ -2077,8 +2081,9 @@ public com.google.longrunning.Operation batchProcessDocuments(
      *
      *
      * 
-     * Fetches processor types. Note that we do not use ListProcessorTypes here
-     * because it is not paginated.
+     * Fetches processor types. Note that we don't use
+     * [ListProcessorTypes][google.cloud.documentai.v1beta3.DocumentProcessorService.ListProcessorTypes]
+     * here, because it isn't paginated.
      * 
*/ public com.google.cloud.documentai.v1beta3.FetchProcessorTypesResponse fetchProcessorTypes( @@ -2145,7 +2150,7 @@ public com.google.cloud.documentai.v1beta3.Processor getProcessor( *
      * Trains a new processor version.
      * Operation metadata is returned as
-     * cloud_documentai_core.TrainProcessorVersionMetadata.
+     * [TrainProcessorVersionMetadata][google.cloud.documentai.v1beta3.TrainProcessorVersionMetadata].
      * 
*/ public com.google.longrunning.Operation trainProcessorVersion( @@ -2224,8 +2229,9 @@ public com.google.longrunning.Operation undeployProcessorVersion( * * *
-     * Creates a processor from the type processor that the user chose.
-     * The processor will be at "ENABLED" state by default after its creation.
+     * Creates a processor from the
+     * [ProcessorType][google.cloud.documentai.v1beta3.ProcessorType] provided.
+     * The processor will be at `ENABLED` state by default after its creation.
      * 
*/ public com.google.cloud.documentai.v1beta3.Processor createProcessor( @@ -2364,7 +2370,7 @@ public com.google.longrunning.Operation importProcessorVersion( * DocumentProcessorService. * *
-   * Service to call Cloud DocumentAI to process documents according to the
+   * Service to call Document AI 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.
@@ -2415,8 +2421,9 @@ protected DocumentProcessorServiceFutureStub build(
      *
      *
      * 
-     * Fetches processor types. Note that we do not use ListProcessorTypes here
-     * because it is not paginated.
+     * Fetches processor types. Note that we don't use
+     * [ListProcessorTypes][google.cloud.documentai.v1beta3.DocumentProcessorService.ListProcessorTypes]
+     * here, because it isn't paginated.
      * 
*/ public com.google.common.util.concurrent.ListenableFuture< @@ -2489,7 +2496,7 @@ protected DocumentProcessorServiceFutureStub build( *
      * Trains a new processor version.
      * Operation metadata is returned as
-     * cloud_documentai_core.TrainProcessorVersionMetadata.
+     * [TrainProcessorVersionMetadata][google.cloud.documentai.v1beta3.TrainProcessorVersionMetadata].
      * 
*/ public com.google.common.util.concurrent.ListenableFuture @@ -2576,8 +2583,9 @@ protected DocumentProcessorServiceFutureStub build( * * *
-     * Creates a processor from the type processor that the user chose.
-     * The processor will be at "ENABLED" state by default after its creation.
+     * Creates a processor from the
+     * [ProcessorType][google.cloud.documentai.v1beta3.ProcessorType] provided.
+     * The processor will be at `ENABLED` state by default after its creation.
      * 
*/ public com.google.common.util.concurrent.ListenableFuture< diff --git a/java-document-ai/grpc-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/DocumentServiceGrpc.java b/java-document-ai/grpc-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/DocumentServiceGrpc.java new file mode 100644 index 000000000000..c95de0257aa3 --- /dev/null +++ b/java-document-ai/grpc-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/DocumentServiceGrpc.java @@ -0,0 +1,617 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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 manage document collection (dataset).
+ * 
+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: google/cloud/documentai/v1beta3/document_service.proto") +@io.grpc.stub.annotations.GrpcGenerated +public final class DocumentServiceGrpc { + + private DocumentServiceGrpc() {} + + public static final String SERVICE_NAME = "google.cloud.documentai.v1beta3.DocumentService"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.documentai.v1beta3.UpdateDatasetRequest, + com.google.longrunning.Operation> + getUpdateDatasetMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateDataset", + requestType = com.google.cloud.documentai.v1beta3.UpdateDatasetRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.documentai.v1beta3.UpdateDatasetRequest, + com.google.longrunning.Operation> + getUpdateDatasetMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.documentai.v1beta3.UpdateDatasetRequest, + com.google.longrunning.Operation> + getUpdateDatasetMethod; + if ((getUpdateDatasetMethod = DocumentServiceGrpc.getUpdateDatasetMethod) == null) { + synchronized (DocumentServiceGrpc.class) { + if ((getUpdateDatasetMethod = DocumentServiceGrpc.getUpdateDatasetMethod) == null) { + DocumentServiceGrpc.getUpdateDatasetMethod = + getUpdateDatasetMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateDataset")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.documentai.v1beta3.UpdateDatasetRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new DocumentServiceMethodDescriptorSupplier("UpdateDataset")) + .build(); + } + } + } + return getUpdateDatasetMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.documentai.v1beta3.GetDatasetSchemaRequest, + com.google.cloud.documentai.v1beta3.DatasetSchema> + getGetDatasetSchemaMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetDatasetSchema", + requestType = com.google.cloud.documentai.v1beta3.GetDatasetSchemaRequest.class, + responseType = com.google.cloud.documentai.v1beta3.DatasetSchema.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.documentai.v1beta3.GetDatasetSchemaRequest, + com.google.cloud.documentai.v1beta3.DatasetSchema> + getGetDatasetSchemaMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.documentai.v1beta3.GetDatasetSchemaRequest, + com.google.cloud.documentai.v1beta3.DatasetSchema> + getGetDatasetSchemaMethod; + if ((getGetDatasetSchemaMethod = DocumentServiceGrpc.getGetDatasetSchemaMethod) == null) { + synchronized (DocumentServiceGrpc.class) { + if ((getGetDatasetSchemaMethod = DocumentServiceGrpc.getGetDatasetSchemaMethod) == null) { + DocumentServiceGrpc.getGetDatasetSchemaMethod = + getGetDatasetSchemaMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetDatasetSchema")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.documentai.v1beta3.GetDatasetSchemaRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.documentai.v1beta3.DatasetSchema + .getDefaultInstance())) + .setSchemaDescriptor( + new DocumentServiceMethodDescriptorSupplier("GetDatasetSchema")) + .build(); + } + } + } + return getGetDatasetSchemaMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.documentai.v1beta3.UpdateDatasetSchemaRequest, + com.google.cloud.documentai.v1beta3.DatasetSchema> + getUpdateDatasetSchemaMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateDatasetSchema", + requestType = com.google.cloud.documentai.v1beta3.UpdateDatasetSchemaRequest.class, + responseType = com.google.cloud.documentai.v1beta3.DatasetSchema.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.documentai.v1beta3.UpdateDatasetSchemaRequest, + com.google.cloud.documentai.v1beta3.DatasetSchema> + getUpdateDatasetSchemaMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.documentai.v1beta3.UpdateDatasetSchemaRequest, + com.google.cloud.documentai.v1beta3.DatasetSchema> + getUpdateDatasetSchemaMethod; + if ((getUpdateDatasetSchemaMethod = DocumentServiceGrpc.getUpdateDatasetSchemaMethod) == null) { + synchronized (DocumentServiceGrpc.class) { + if ((getUpdateDatasetSchemaMethod = DocumentServiceGrpc.getUpdateDatasetSchemaMethod) + == null) { + DocumentServiceGrpc.getUpdateDatasetSchemaMethod = + getUpdateDatasetSchemaMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "UpdateDatasetSchema")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.documentai.v1beta3.UpdateDatasetSchemaRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.documentai.v1beta3.DatasetSchema + .getDefaultInstance())) + .setSchemaDescriptor( + new DocumentServiceMethodDescriptorSupplier("UpdateDatasetSchema")) + .build(); + } + } + } + return getUpdateDatasetSchemaMethod; + } + + /** Creates a new async stub that supports all call types for the service */ + public static DocumentServiceStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public DocumentServiceStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new DocumentServiceStub(channel, callOptions); + } + }; + return DocumentServiceStub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static DocumentServiceBlockingStub newBlockingStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public DocumentServiceBlockingStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new DocumentServiceBlockingStub(channel, callOptions); + } + }; + return DocumentServiceBlockingStub.newStub(factory, channel); + } + + /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ + public static DocumentServiceFutureStub newFutureStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public DocumentServiceFutureStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new DocumentServiceFutureStub(channel, callOptions); + } + }; + return DocumentServiceFutureStub.newStub(factory, channel); + } + + /** + * + * + *
+   * Service to call Cloud DocumentAI to manage document collection (dataset).
+   * 
+ */ + public interface AsyncService { + + /** + * + * + *
+     * Updates metadata associated with a dataset.
+     * 
+ */ + default void updateDataset( + com.google.cloud.documentai.v1beta3.UpdateDatasetRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateDatasetMethod(), responseObserver); + } + + /** + * + * + *
+     * Gets the `DatasetSchema` of a `Dataset`.
+     * 
+ */ + default void getDatasetSchema( + com.google.cloud.documentai.v1beta3.GetDatasetSchemaRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetDatasetSchemaMethod(), responseObserver); + } + + /** + * + * + *
+     * Updates a `DatasetSchema`.
+     * 
+ */ + default void updateDatasetSchema( + com.google.cloud.documentai.v1beta3.UpdateDatasetSchemaRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateDatasetSchemaMethod(), responseObserver); + } + } + + /** + * Base class for the server implementation of the service DocumentService. + * + *
+   * Service to call Cloud DocumentAI to manage document collection (dataset).
+   * 
+ */ + public abstract static class DocumentServiceImplBase + implements io.grpc.BindableService, AsyncService { + + @java.lang.Override + public final io.grpc.ServerServiceDefinition bindService() { + return DocumentServiceGrpc.bindService(this); + } + } + + /** + * A stub to allow clients to do asynchronous rpc calls to service DocumentService. + * + *
+   * Service to call Cloud DocumentAI to manage document collection (dataset).
+   * 
+ */ + public static final class DocumentServiceStub + extends io.grpc.stub.AbstractAsyncStub { + private DocumentServiceStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected DocumentServiceStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new DocumentServiceStub(channel, callOptions); + } + + /** + * + * + *
+     * Updates metadata associated with a dataset.
+     * 
+ */ + public void updateDataset( + com.google.cloud.documentai.v1beta3.UpdateDatasetRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateDatasetMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Gets the `DatasetSchema` of a `Dataset`.
+     * 
+ */ + public void getDatasetSchema( + com.google.cloud.documentai.v1beta3.GetDatasetSchemaRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetDatasetSchemaMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Updates a `DatasetSchema`.
+     * 
+ */ + public void updateDatasetSchema( + com.google.cloud.documentai.v1beta3.UpdateDatasetSchemaRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateDatasetSchemaMethod(), getCallOptions()), + request, + responseObserver); + } + } + + /** + * A stub to allow clients to do synchronous rpc calls to service DocumentService. + * + *
+   * Service to call Cloud DocumentAI to manage document collection (dataset).
+   * 
+ */ + public static final class DocumentServiceBlockingStub + extends io.grpc.stub.AbstractBlockingStub { + private DocumentServiceBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected DocumentServiceBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new DocumentServiceBlockingStub(channel, callOptions); + } + + /** + * + * + *
+     * Updates metadata associated with a dataset.
+     * 
+ */ + public com.google.longrunning.Operation updateDataset( + com.google.cloud.documentai.v1beta3.UpdateDatasetRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateDatasetMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Gets the `DatasetSchema` of a `Dataset`.
+     * 
+ */ + public com.google.cloud.documentai.v1beta3.DatasetSchema getDatasetSchema( + com.google.cloud.documentai.v1beta3.GetDatasetSchemaRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetDatasetSchemaMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Updates a `DatasetSchema`.
+     * 
+ */ + public com.google.cloud.documentai.v1beta3.DatasetSchema updateDatasetSchema( + com.google.cloud.documentai.v1beta3.UpdateDatasetSchemaRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateDatasetSchemaMethod(), getCallOptions(), request); + } + } + + /** + * A stub to allow clients to do ListenableFuture-style rpc calls to service DocumentService. + * + *
+   * Service to call Cloud DocumentAI to manage document collection (dataset).
+   * 
+ */ + public static final class DocumentServiceFutureStub + extends io.grpc.stub.AbstractFutureStub { + private DocumentServiceFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected DocumentServiceFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new DocumentServiceFutureStub(channel, callOptions); + } + + /** + * + * + *
+     * Updates metadata associated with a dataset.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + updateDataset(com.google.cloud.documentai.v1beta3.UpdateDatasetRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateDatasetMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Gets the `DatasetSchema` of a `Dataset`.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.documentai.v1beta3.DatasetSchema> + getDatasetSchema(com.google.cloud.documentai.v1beta3.GetDatasetSchemaRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetDatasetSchemaMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Updates a `DatasetSchema`.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.documentai.v1beta3.DatasetSchema> + updateDatasetSchema( + com.google.cloud.documentai.v1beta3.UpdateDatasetSchemaRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateDatasetSchemaMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_UPDATE_DATASET = 0; + private static final int METHODID_GET_DATASET_SCHEMA = 1; + private static final int METHODID_UPDATE_DATASET_SCHEMA = 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 final AsyncService serviceImpl; + private final int methodId; + + MethodHandlers(AsyncService 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_UPDATE_DATASET: + serviceImpl.updateDataset( + (com.google.cloud.documentai.v1beta3.UpdateDatasetRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_DATASET_SCHEMA: + serviceImpl.getDatasetSchema( + (com.google.cloud.documentai.v1beta3.GetDatasetSchemaRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_UPDATE_DATASET_SCHEMA: + serviceImpl.updateDatasetSchema( + (com.google.cloud.documentai.v1beta3.UpdateDatasetSchemaRequest) 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(); + } + } + } + + public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getUpdateDatasetMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.documentai.v1beta3.UpdateDatasetRequest, + com.google.longrunning.Operation>(service, METHODID_UPDATE_DATASET))) + .addMethod( + getGetDatasetSchemaMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.documentai.v1beta3.GetDatasetSchemaRequest, + com.google.cloud.documentai.v1beta3.DatasetSchema>( + service, METHODID_GET_DATASET_SCHEMA))) + .addMethod( + getUpdateDatasetSchemaMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.documentai.v1beta3.UpdateDatasetSchemaRequest, + com.google.cloud.documentai.v1beta3.DatasetSchema>( + service, METHODID_UPDATE_DATASET_SCHEMA))) + .build(); + } + + private abstract static class DocumentServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, + io.grpc.protobuf.ProtoServiceDescriptorSupplier { + DocumentServiceBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.cloud.documentai.v1beta3.DocumentAiDocumentService.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("DocumentService"); + } + } + + private static final class DocumentServiceFileDescriptorSupplier + extends DocumentServiceBaseDescriptorSupplier { + DocumentServiceFileDescriptorSupplier() {} + } + + private static final class DocumentServiceMethodDescriptorSupplier + extends DocumentServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final String methodName; + + DocumentServiceMethodDescriptorSupplier(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 (DocumentServiceGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = + result = + io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new DocumentServiceFileDescriptorSupplier()) + .addMethod(getUpdateDatasetMethod()) + .addMethod(getGetDatasetSchemaMethod()) + .addMethod(getUpdateDatasetSchemaMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/java-document-ai/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/BatchProcessMetadata.java b/java-document-ai/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/BatchProcessMetadata.java index e3cb96d39969..e11e3ab6e659 100644 --- a/java-document-ai/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/BatchProcessMetadata.java +++ b/java-document-ai/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/BatchProcessMetadata.java @@ -22,7 +22,8 @@ * * *
- * The long running operation metadata for batch process method.
+ * The long-running operation metadata for
+ * [BatchProcessDocuments][google.cloud.documentai.v1.DocumentProcessorService.BatchProcessDocuments].
  * 
* * Protobuf type {@code google.cloud.documentai.v1.BatchProcessMetadata} @@ -320,10 +321,9 @@ public interface IndividualProcessStatusOrBuilder * * *
-     * 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
-     * take snapshot of that document, since a user can move or change that
-     * document during the process.
+     * The source of the document, same as the
+     * [input_gcs_source][google.cloud.documentai.v1.BatchProcessMetadata.IndividualProcessStatus.input_gcs_source]
+     * field in the request when the batch process started.
      * 
* * string input_gcs_source = 1; @@ -335,10 +335,9 @@ public interface IndividualProcessStatusOrBuilder * * *
-     * 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
-     * take snapshot of that document, since a user can move or change that
-     * document during the process.
+     * The source of the document, same as the
+     * [input_gcs_source][google.cloud.documentai.v1.BatchProcessMetadata.IndividualProcessStatus.input_gcs_source]
+     * field in the request when the batch process started.
      * 
* * string input_gcs_source = 1; @@ -386,7 +385,8 @@ public interface IndividualProcessStatusOrBuilder * * *
-     * The output_gcs_destination (in the request as `output_gcs_destination`)
+     * The Cloud Storage output destination (in the request as
+     * [DocumentOutputConfig.GcsOutputConfig.gcs_uri][google.cloud.documentai.v1.DocumentOutputConfig.GcsOutputConfig.gcs_uri])
      * of the processed document if it was successful, otherwise empty.
      * 
* @@ -399,7 +399,8 @@ public interface IndividualProcessStatusOrBuilder * * *
-     * The output_gcs_destination (in the request as `output_gcs_destination`)
+     * The Cloud Storage output destination (in the request as
+     * [DocumentOutputConfig.GcsOutputConfig.gcs_uri][google.cloud.documentai.v1.DocumentOutputConfig.GcsOutputConfig.gcs_uri])
      * of the processed document if it was successful, otherwise empty.
      * 
* @@ -498,10 +499,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-     * 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
-     * take snapshot of that document, since a user can move or change that
-     * document during the process.
+     * The source of the document, same as the
+     * [input_gcs_source][google.cloud.documentai.v1.BatchProcessMetadata.IndividualProcessStatus.input_gcs_source]
+     * field in the request when the batch process started.
      * 
* * string input_gcs_source = 1; @@ -524,10 +524,9 @@ 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
-     * take snapshot of that document, since a user can move or change that
-     * document during the process.
+     * The source of the document, same as the
+     * [input_gcs_source][google.cloud.documentai.v1.BatchProcessMetadata.IndividualProcessStatus.input_gcs_source]
+     * field in the request when the batch process started.
      * 
* * string input_gcs_source = 1; @@ -601,7 +600,8 @@ public com.google.rpc.StatusOrBuilder getStatusOrBuilder() { * * *
-     * The output_gcs_destination (in the request as `output_gcs_destination`)
+     * The Cloud Storage output destination (in the request as
+     * [DocumentOutputConfig.GcsOutputConfig.gcs_uri][google.cloud.documentai.v1.DocumentOutputConfig.GcsOutputConfig.gcs_uri])
      * of the processed document if it was successful, otherwise empty.
      * 
* @@ -625,7 +625,8 @@ public java.lang.String getOutputGcsDestination() { * * *
-     * The output_gcs_destination (in the request as `output_gcs_destination`)
+     * The Cloud Storage output destination (in the request as
+     * [DocumentOutputConfig.GcsOutputConfig.gcs_uri][google.cloud.documentai.v1.DocumentOutputConfig.GcsOutputConfig.gcs_uri])
      * of the processed document if it was successful, otherwise empty.
      * 
* @@ -1158,10 +1159,9 @@ public Builder mergeFrom( * * *
-       * 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
-       * take snapshot of that document, since a user can move or change that
-       * document during the process.
+       * The source of the document, same as the
+       * [input_gcs_source][google.cloud.documentai.v1.BatchProcessMetadata.IndividualProcessStatus.input_gcs_source]
+       * field in the request when the batch process started.
        * 
* * string input_gcs_source = 1; @@ -1183,10 +1183,9 @@ 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
-       * take snapshot of that document, since a user can move or change that
-       * document during the process.
+       * The source of the document, same as the
+       * [input_gcs_source][google.cloud.documentai.v1.BatchProcessMetadata.IndividualProcessStatus.input_gcs_source]
+       * field in the request when the batch process started.
        * 
* * string input_gcs_source = 1; @@ -1208,10 +1207,9 @@ 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
-       * take snapshot of that document, since a user can move or change that
-       * document during the process.
+       * The source of the document, same as the
+       * [input_gcs_source][google.cloud.documentai.v1.BatchProcessMetadata.IndividualProcessStatus.input_gcs_source]
+       * field in the request when the batch process started.
        * 
* * string input_gcs_source = 1; @@ -1232,10 +1230,9 @@ public Builder setInputGcsSource(java.lang.String value) { * * *
-       * 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
-       * take snapshot of that document, since a user can move or change that
-       * document during the process.
+       * The source of the document, same as the
+       * [input_gcs_source][google.cloud.documentai.v1.BatchProcessMetadata.IndividualProcessStatus.input_gcs_source]
+       * field in the request when the batch process started.
        * 
* * string input_gcs_source = 1; @@ -1252,10 +1249,9 @@ public Builder clearInputGcsSource() { * * *
-       * 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
-       * take snapshot of that document, since a user can move or change that
-       * document during the process.
+       * The source of the document, same as the
+       * [input_gcs_source][google.cloud.documentai.v1.BatchProcessMetadata.IndividualProcessStatus.input_gcs_source]
+       * field in the request when the batch process started.
        * 
* * string input_gcs_source = 1; @@ -1453,7 +1449,8 @@ public com.google.rpc.StatusOrBuilder getStatusOrBuilder() { * * *
-       * The output_gcs_destination (in the request as `output_gcs_destination`)
+       * The Cloud Storage output destination (in the request as
+       * [DocumentOutputConfig.GcsOutputConfig.gcs_uri][google.cloud.documentai.v1.DocumentOutputConfig.GcsOutputConfig.gcs_uri])
        * of the processed document if it was successful, otherwise empty.
        * 
* @@ -1476,7 +1473,8 @@ public java.lang.String getOutputGcsDestination() { * * *
-       * The output_gcs_destination (in the request as `output_gcs_destination`)
+       * The Cloud Storage output destination (in the request as
+       * [DocumentOutputConfig.GcsOutputConfig.gcs_uri][google.cloud.documentai.v1.DocumentOutputConfig.GcsOutputConfig.gcs_uri])
        * of the processed document if it was successful, otherwise empty.
        * 
* @@ -1499,7 +1497,8 @@ public com.google.protobuf.ByteString getOutputGcsDestinationBytes() { * * *
-       * The output_gcs_destination (in the request as `output_gcs_destination`)
+       * The Cloud Storage output destination (in the request as
+       * [DocumentOutputConfig.GcsOutputConfig.gcs_uri][google.cloud.documentai.v1.DocumentOutputConfig.GcsOutputConfig.gcs_uri])
        * of the processed document if it was successful, otherwise empty.
        * 
* @@ -1521,7 +1520,8 @@ public Builder setOutputGcsDestination(java.lang.String value) { * * *
-       * The output_gcs_destination (in the request as `output_gcs_destination`)
+       * The Cloud Storage output destination (in the request as
+       * [DocumentOutputConfig.GcsOutputConfig.gcs_uri][google.cloud.documentai.v1.DocumentOutputConfig.GcsOutputConfig.gcs_uri])
        * of the processed document if it was successful, otherwise empty.
        * 
* @@ -1539,7 +1539,8 @@ public Builder clearOutputGcsDestination() { * * *
-       * The output_gcs_destination (in the request as `output_gcs_destination`)
+       * The Cloud Storage output destination (in the request as
+       * [DocumentOutputConfig.GcsOutputConfig.gcs_uri][google.cloud.documentai.v1.DocumentOutputConfig.GcsOutputConfig.gcs_uri])
        * of the processed document if it was successful, otherwise empty.
        * 
* @@ -2303,7 +2304,8 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * The long running operation metadata for batch process method.
+   * The long-running operation metadata for
+   * [BatchProcessDocuments][google.cloud.documentai.v1.DocumentProcessorService.BatchProcessDocuments].
    * 
* * Protobuf type {@code google.cloud.documentai.v1.BatchProcessMetadata} diff --git a/java-document-ai/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/BatchProcessRequest.java b/java-document-ai/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/BatchProcessRequest.java index 727d02ac8d23..b79840a97c2a 100644 --- a/java-document-ai/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/BatchProcessRequest.java +++ b/java-document-ai/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/BatchProcessRequest.java @@ -22,7 +22,8 @@ * * *
- * Request message for batch process document method.
+ * Request message for
+ * [BatchProcessDocuments][google.cloud.documentai.v1.DocumentProcessorService.BatchProcessDocuments].
  * 
* * Protobuf type {@code google.cloud.documentai.v1.BatchProcessRequest} @@ -133,7 +134,9 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
-   * The input documents for batch process.
+   * The input documents for the
+   * [BatchProcessDocuments][google.cloud.documentai.v1.DocumentProcessorService.BatchProcessDocuments]
+   * method.
    * 
* * .google.cloud.documentai.v1.BatchDocumentsInputConfig input_documents = 5; @@ -148,7 +151,9 @@ public boolean hasInputDocuments() { * * *
-   * The input documents for batch process.
+   * The input documents for the
+   * [BatchProcessDocuments][google.cloud.documentai.v1.DocumentProcessorService.BatchProcessDocuments]
+   * method.
    * 
* * .google.cloud.documentai.v1.BatchDocumentsInputConfig input_documents = 5; @@ -165,7 +170,9 @@ public com.google.cloud.documentai.v1.BatchDocumentsInputConfig getInputDocument * * *
-   * The input documents for batch process.
+   * The input documents for the
+   * [BatchProcessDocuments][google.cloud.documentai.v1.DocumentProcessorService.BatchProcessDocuments]
+   * method.
    * 
* * .google.cloud.documentai.v1.BatchDocumentsInputConfig input_documents = 5; @@ -184,7 +191,9 @@ public com.google.cloud.documentai.v1.BatchDocumentsInputConfig getInputDocument * * *
-   * The overall output config for batch process.
+   * The output configuration for the
+   * [BatchProcessDocuments][google.cloud.documentai.v1.DocumentProcessorService.BatchProcessDocuments]
+   * method.
    * 
* * .google.cloud.documentai.v1.DocumentOutputConfig document_output_config = 6; @@ -199,7 +208,9 @@ public boolean hasDocumentOutputConfig() { * * *
-   * The overall output config for batch process.
+   * The output configuration for the
+   * [BatchProcessDocuments][google.cloud.documentai.v1.DocumentProcessorService.BatchProcessDocuments]
+   * method.
    * 
* * .google.cloud.documentai.v1.DocumentOutputConfig document_output_config = 6; @@ -216,7 +227,9 @@ public com.google.cloud.documentai.v1.DocumentOutputConfig getDocumentOutputConf * * *
-   * The overall output config for batch process.
+   * The output configuration for the
+   * [BatchProcessDocuments][google.cloud.documentai.v1.DocumentProcessorService.BatchProcessDocuments]
+   * method.
    * 
* * .google.cloud.documentai.v1.DocumentOutputConfig document_output_config = 6; @@ -235,8 +248,8 @@ public com.google.cloud.documentai.v1.DocumentOutputConfig getDocumentOutputConf * * *
-   * Whether Human Review feature should be skipped for this request. Default to
-   * false.
+   * Whether human review should be skipped for this request. Default to
+   * `false`.
    * 
* * bool skip_human_review = 4; @@ -449,7 +462,8 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * Request message for batch process document method.
+   * Request message for
+   * [BatchProcessDocuments][google.cloud.documentai.v1.DocumentProcessorService.BatchProcessDocuments].
    * 
* * Protobuf type {@code google.cloud.documentai.v1.BatchProcessRequest} @@ -831,7 +845,9 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { * * *
-     * The input documents for batch process.
+     * The input documents for the
+     * [BatchProcessDocuments][google.cloud.documentai.v1.DocumentProcessorService.BatchProcessDocuments]
+     * method.
      * 
* * .google.cloud.documentai.v1.BatchDocumentsInputConfig input_documents = 5; @@ -845,7 +861,9 @@ public boolean hasInputDocuments() { * * *
-     * The input documents for batch process.
+     * The input documents for the
+     * [BatchProcessDocuments][google.cloud.documentai.v1.DocumentProcessorService.BatchProcessDocuments]
+     * method.
      * 
* * .google.cloud.documentai.v1.BatchDocumentsInputConfig input_documents = 5; @@ -865,7 +883,9 @@ public com.google.cloud.documentai.v1.BatchDocumentsInputConfig getInputDocument * * *
-     * The input documents for batch process.
+     * The input documents for the
+     * [BatchProcessDocuments][google.cloud.documentai.v1.DocumentProcessorService.BatchProcessDocuments]
+     * method.
      * 
* * .google.cloud.documentai.v1.BatchDocumentsInputConfig input_documents = 5; @@ -888,7 +908,9 @@ public Builder setInputDocuments( * * *
-     * The input documents for batch process.
+     * The input documents for the
+     * [BatchProcessDocuments][google.cloud.documentai.v1.DocumentProcessorService.BatchProcessDocuments]
+     * method.
      * 
* * .google.cloud.documentai.v1.BatchDocumentsInputConfig input_documents = 5; @@ -908,7 +930,9 @@ public Builder setInputDocuments( * * *
-     * The input documents for batch process.
+     * The input documents for the
+     * [BatchProcessDocuments][google.cloud.documentai.v1.DocumentProcessorService.BatchProcessDocuments]
+     * method.
      * 
* * .google.cloud.documentai.v1.BatchDocumentsInputConfig input_documents = 5; @@ -935,7 +959,9 @@ public Builder mergeInputDocuments( * * *
-     * The input documents for batch process.
+     * The input documents for the
+     * [BatchProcessDocuments][google.cloud.documentai.v1.DocumentProcessorService.BatchProcessDocuments]
+     * method.
      * 
* * .google.cloud.documentai.v1.BatchDocumentsInputConfig input_documents = 5; @@ -954,7 +980,9 @@ public Builder clearInputDocuments() { * * *
-     * The input documents for batch process.
+     * The input documents for the
+     * [BatchProcessDocuments][google.cloud.documentai.v1.DocumentProcessorService.BatchProcessDocuments]
+     * method.
      * 
* * .google.cloud.documentai.v1.BatchDocumentsInputConfig input_documents = 5; @@ -969,7 +997,9 @@ public Builder clearInputDocuments() { * * *
-     * The input documents for batch process.
+     * The input documents for the
+     * [BatchProcessDocuments][google.cloud.documentai.v1.DocumentProcessorService.BatchProcessDocuments]
+     * method.
      * 
* * .google.cloud.documentai.v1.BatchDocumentsInputConfig input_documents = 5; @@ -988,7 +1018,9 @@ public Builder clearInputDocuments() { * * *
-     * The input documents for batch process.
+     * The input documents for the
+     * [BatchProcessDocuments][google.cloud.documentai.v1.DocumentProcessorService.BatchProcessDocuments]
+     * method.
      * 
* * .google.cloud.documentai.v1.BatchDocumentsInputConfig input_documents = 5; @@ -1020,7 +1052,9 @@ public Builder clearInputDocuments() { * * *
-     * The overall output config for batch process.
+     * The output configuration for the
+     * [BatchProcessDocuments][google.cloud.documentai.v1.DocumentProcessorService.BatchProcessDocuments]
+     * method.
      * 
* * .google.cloud.documentai.v1.DocumentOutputConfig document_output_config = 6; @@ -1034,7 +1068,9 @@ public boolean hasDocumentOutputConfig() { * * *
-     * The overall output config for batch process.
+     * The output configuration for the
+     * [BatchProcessDocuments][google.cloud.documentai.v1.DocumentProcessorService.BatchProcessDocuments]
+     * method.
      * 
* * .google.cloud.documentai.v1.DocumentOutputConfig document_output_config = 6; @@ -1054,7 +1090,9 @@ public com.google.cloud.documentai.v1.DocumentOutputConfig getDocumentOutputConf * * *
-     * The overall output config for batch process.
+     * The output configuration for the
+     * [BatchProcessDocuments][google.cloud.documentai.v1.DocumentProcessorService.BatchProcessDocuments]
+     * method.
      * 
* * .google.cloud.documentai.v1.DocumentOutputConfig document_output_config = 6; @@ -1077,7 +1115,9 @@ public Builder setDocumentOutputConfig( * * *
-     * The overall output config for batch process.
+     * The output configuration for the
+     * [BatchProcessDocuments][google.cloud.documentai.v1.DocumentProcessorService.BatchProcessDocuments]
+     * method.
      * 
* * .google.cloud.documentai.v1.DocumentOutputConfig document_output_config = 6; @@ -1097,7 +1137,9 @@ public Builder setDocumentOutputConfig( * * *
-     * The overall output config for batch process.
+     * The output configuration for the
+     * [BatchProcessDocuments][google.cloud.documentai.v1.DocumentProcessorService.BatchProcessDocuments]
+     * method.
      * 
* * .google.cloud.documentai.v1.DocumentOutputConfig document_output_config = 6; @@ -1124,7 +1166,9 @@ public Builder mergeDocumentOutputConfig( * * *
-     * The overall output config for batch process.
+     * The output configuration for the
+     * [BatchProcessDocuments][google.cloud.documentai.v1.DocumentProcessorService.BatchProcessDocuments]
+     * method.
      * 
* * .google.cloud.documentai.v1.DocumentOutputConfig document_output_config = 6; @@ -1143,7 +1187,9 @@ public Builder clearDocumentOutputConfig() { * * *
-     * The overall output config for batch process.
+     * The output configuration for the
+     * [BatchProcessDocuments][google.cloud.documentai.v1.DocumentProcessorService.BatchProcessDocuments]
+     * method.
      * 
* * .google.cloud.documentai.v1.DocumentOutputConfig document_output_config = 6; @@ -1158,7 +1204,9 @@ public Builder clearDocumentOutputConfig() { * * *
-     * The overall output config for batch process.
+     * The output configuration for the
+     * [BatchProcessDocuments][google.cloud.documentai.v1.DocumentProcessorService.BatchProcessDocuments]
+     * method.
      * 
* * .google.cloud.documentai.v1.DocumentOutputConfig document_output_config = 6; @@ -1177,7 +1225,9 @@ public Builder clearDocumentOutputConfig() { * * *
-     * The overall output config for batch process.
+     * The output configuration for the
+     * [BatchProcessDocuments][google.cloud.documentai.v1.DocumentProcessorService.BatchProcessDocuments]
+     * method.
      * 
* * .google.cloud.documentai.v1.DocumentOutputConfig document_output_config = 6; @@ -1204,8 +1254,8 @@ public Builder clearDocumentOutputConfig() { * * *
-     * Whether Human Review feature should be skipped for this request. Default to
-     * false.
+     * Whether human review should be skipped for this request. Default to
+     * `false`.
      * 
* * bool skip_human_review = 4; @@ -1220,8 +1270,8 @@ public boolean getSkipHumanReview() { * * *
-     * Whether Human Review feature should be skipped for this request. Default to
-     * false.
+     * Whether human review should be skipped for this request. Default to
+     * `false`.
      * 
* * bool skip_human_review = 4; @@ -1240,8 +1290,8 @@ public Builder setSkipHumanReview(boolean value) { * * *
-     * Whether Human Review feature should be skipped for this request. Default to
-     * false.
+     * Whether human review should be skipped for this request. Default to
+     * `false`.
      * 
* * bool skip_human_review = 4; diff --git a/java-document-ai/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/BatchProcessRequestOrBuilder.java b/java-document-ai/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/BatchProcessRequestOrBuilder.java index a85c8daeb473..234086b43bfc 100644 --- a/java-document-ai/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/BatchProcessRequestOrBuilder.java +++ b/java-document-ai/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/BatchProcessRequestOrBuilder.java @@ -66,7 +66,9 @@ public interface BatchProcessRequestOrBuilder * * *
-   * The input documents for batch process.
+   * The input documents for the
+   * [BatchProcessDocuments][google.cloud.documentai.v1.DocumentProcessorService.BatchProcessDocuments]
+   * method.
    * 
* * .google.cloud.documentai.v1.BatchDocumentsInputConfig input_documents = 5; @@ -78,7 +80,9 @@ public interface BatchProcessRequestOrBuilder * * *
-   * The input documents for batch process.
+   * The input documents for the
+   * [BatchProcessDocuments][google.cloud.documentai.v1.DocumentProcessorService.BatchProcessDocuments]
+   * method.
    * 
* * .google.cloud.documentai.v1.BatchDocumentsInputConfig input_documents = 5; @@ -90,7 +94,9 @@ public interface BatchProcessRequestOrBuilder * * *
-   * The input documents for batch process.
+   * The input documents for the
+   * [BatchProcessDocuments][google.cloud.documentai.v1.DocumentProcessorService.BatchProcessDocuments]
+   * method.
    * 
* * .google.cloud.documentai.v1.BatchDocumentsInputConfig input_documents = 5; @@ -101,7 +107,9 @@ public interface BatchProcessRequestOrBuilder * * *
-   * The overall output config for batch process.
+   * The output configuration for the
+   * [BatchProcessDocuments][google.cloud.documentai.v1.DocumentProcessorService.BatchProcessDocuments]
+   * method.
    * 
* * .google.cloud.documentai.v1.DocumentOutputConfig document_output_config = 6; @@ -113,7 +121,9 @@ public interface BatchProcessRequestOrBuilder * * *
-   * The overall output config for batch process.
+   * The output configuration for the
+   * [BatchProcessDocuments][google.cloud.documentai.v1.DocumentProcessorService.BatchProcessDocuments]
+   * method.
    * 
* * .google.cloud.documentai.v1.DocumentOutputConfig document_output_config = 6; @@ -125,7 +135,9 @@ public interface BatchProcessRequestOrBuilder * * *
-   * The overall output config for batch process.
+   * The output configuration for the
+   * [BatchProcessDocuments][google.cloud.documentai.v1.DocumentProcessorService.BatchProcessDocuments]
+   * method.
    * 
* * .google.cloud.documentai.v1.DocumentOutputConfig document_output_config = 6; @@ -136,8 +148,8 @@ public interface BatchProcessRequestOrBuilder * * *
-   * Whether Human Review feature should be skipped for this request. Default to
-   * false.
+   * Whether human review should be skipped for this request. Default to
+   * `false`.
    * 
* * bool skip_human_review = 4; diff --git a/java-document-ai/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/BatchProcessResponse.java b/java-document-ai/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/BatchProcessResponse.java index 3f0b26342913..46687e5faa57 100644 --- a/java-document-ai/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/BatchProcessResponse.java +++ b/java-document-ai/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/BatchProcessResponse.java @@ -22,7 +22,8 @@ * * *
- * Response message for batch process document method.
+ * Response message for
+ * [BatchProcessDocuments][google.cloud.documentai.v1.DocumentProcessorService.BatchProcessDocuments].
  * 
* * Protobuf type {@code google.cloud.documentai.v1.BatchProcessResponse} @@ -214,7 +215,8 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * Response message for batch process document method.
+   * Response message for
+   * [BatchProcessDocuments][google.cloud.documentai.v1.DocumentProcessorService.BatchProcessDocuments].
    * 
* * Protobuf type {@code google.cloud.documentai.v1.BatchProcessResponse} diff --git a/java-document-ai/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/CreateProcessorRequest.java b/java-document-ai/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/CreateProcessorRequest.java index 6c4563d563cc..20ae9d551dd2 100644 --- a/java-document-ai/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/CreateProcessorRequest.java +++ b/java-document-ai/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/CreateProcessorRequest.java @@ -22,9 +22,11 @@ * * *
- * Request message for create a processor. Notice this request is sent to
- * a regionalized backend service, and if the processor type is not available
- * on that region, the creation will fail.
+ * Request message for the
+ * [CreateProcessor][google.cloud.documentai.v1.DocumentProcessorService.CreateProcessor]
+ * method. Notice this request is sent to a regionalized backend service. If the
+ * [ProcessorType][google.cloud.documentai.v1.ProcessorType] isn't available in
+ * that region, the creation fails.
  * 
* * Protobuf type {@code google.cloud.documentai.v1.CreateProcessorRequest} @@ -127,9 +129,11 @@ public com.google.protobuf.ByteString getParentBytes() { * * *
-   * Required. The processor to be created, requires [processor_type] and
-   * [display_name] to be set. Also, the processor is under CMEK if CMEK fields
-   * are set.
+   * Required. The processor to be created, requires
+   * [Processor.type][google.cloud.documentai.v1.Processor.type] and
+   * [Processor.display_name]][] to be set. Also, the
+   * [Processor.kms_key_name][google.cloud.documentai.v1.Processor.kms_key_name]
+   * field must be set if the processor is under CMEK.
    * 
* * @@ -146,9 +150,11 @@ public boolean hasProcessor() { * * *
-   * Required. The processor to be created, requires [processor_type] and
-   * [display_name] to be set. Also, the processor is under CMEK if CMEK fields
-   * are set.
+   * Required. The processor to be created, requires
+   * [Processor.type][google.cloud.documentai.v1.Processor.type] and
+   * [Processor.display_name]][] to be set. Also, the
+   * [Processor.kms_key_name][google.cloud.documentai.v1.Processor.kms_key_name]
+   * field must be set if the processor is under CMEK.
    * 
* * @@ -167,9 +173,11 @@ public com.google.cloud.documentai.v1.Processor getProcessor() { * * *
-   * Required. The processor to be created, requires [processor_type] and
-   * [display_name] to be set. Also, the processor is under CMEK if CMEK fields
-   * are set.
+   * Required. The processor to be created, requires
+   * [Processor.type][google.cloud.documentai.v1.Processor.type] and
+   * [Processor.display_name]][] to be set. Also, the
+   * [Processor.kms_key_name][google.cloud.documentai.v1.Processor.kms_key_name]
+   * field must be set if the processor is under CMEK.
    * 
* * @@ -361,9 +369,11 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * Request message for create a processor. Notice this request is sent to
-   * a regionalized backend service, and if the processor type is not available
-   * on that region, the creation will fail.
+   * Request message for the
+   * [CreateProcessor][google.cloud.documentai.v1.DocumentProcessorService.CreateProcessor]
+   * method. Notice this request is sent to a regionalized backend service. If the
+   * [ProcessorType][google.cloud.documentai.v1.ProcessorType] isn't available in
+   * that region, the creation fails.
    * 
* * Protobuf type {@code google.cloud.documentai.v1.CreateProcessorRequest} @@ -690,9 +700,11 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { * * *
-     * Required. The processor to be created, requires [processor_type] and
-     * [display_name] to be set. Also, the processor is under CMEK if CMEK fields
-     * are set.
+     * Required. The processor to be created, requires
+     * [Processor.type][google.cloud.documentai.v1.Processor.type] and
+     * [Processor.display_name]][] to be set. Also, the
+     * [Processor.kms_key_name][google.cloud.documentai.v1.Processor.kms_key_name]
+     * field must be set if the processor is under CMEK.
      * 
* * @@ -708,9 +720,11 @@ public boolean hasProcessor() { * * *
-     * Required. The processor to be created, requires [processor_type] and
-     * [display_name] to be set. Also, the processor is under CMEK if CMEK fields
-     * are set.
+     * Required. The processor to be created, requires
+     * [Processor.type][google.cloud.documentai.v1.Processor.type] and
+     * [Processor.display_name]][] to be set. Also, the
+     * [Processor.kms_key_name][google.cloud.documentai.v1.Processor.kms_key_name]
+     * field must be set if the processor is under CMEK.
      * 
* * @@ -732,9 +746,11 @@ public com.google.cloud.documentai.v1.Processor getProcessor() { * * *
-     * Required. The processor to be created, requires [processor_type] and
-     * [display_name] to be set. Also, the processor is under CMEK if CMEK fields
-     * are set.
+     * Required. The processor to be created, requires
+     * [Processor.type][google.cloud.documentai.v1.Processor.type] and
+     * [Processor.display_name]][] to be set. Also, the
+     * [Processor.kms_key_name][google.cloud.documentai.v1.Processor.kms_key_name]
+     * field must be set if the processor is under CMEK.
      * 
* * @@ -758,9 +774,11 @@ public Builder setProcessor(com.google.cloud.documentai.v1.Processor value) { * * *
-     * Required. The processor to be created, requires [processor_type] and
-     * [display_name] to be set. Also, the processor is under CMEK if CMEK fields
-     * are set.
+     * Required. The processor to be created, requires
+     * [Processor.type][google.cloud.documentai.v1.Processor.type] and
+     * [Processor.display_name]][] to be set. Also, the
+     * [Processor.kms_key_name][google.cloud.documentai.v1.Processor.kms_key_name]
+     * field must be set if the processor is under CMEK.
      * 
* * @@ -781,9 +799,11 @@ public Builder setProcessor(com.google.cloud.documentai.v1.Processor.Builder bui * * *
-     * Required. The processor to be created, requires [processor_type] and
-     * [display_name] to be set. Also, the processor is under CMEK if CMEK fields
-     * are set.
+     * Required. The processor to be created, requires
+     * [Processor.type][google.cloud.documentai.v1.Processor.type] and
+     * [Processor.display_name]][] to be set. Also, the
+     * [Processor.kms_key_name][google.cloud.documentai.v1.Processor.kms_key_name]
+     * field must be set if the processor is under CMEK.
      * 
* * @@ -810,9 +830,11 @@ public Builder mergeProcessor(com.google.cloud.documentai.v1.Processor value) { * * *
-     * Required. The processor to be created, requires [processor_type] and
-     * [display_name] to be set. Also, the processor is under CMEK if CMEK fields
-     * are set.
+     * Required. The processor to be created, requires
+     * [Processor.type][google.cloud.documentai.v1.Processor.type] and
+     * [Processor.display_name]][] to be set. Also, the
+     * [Processor.kms_key_name][google.cloud.documentai.v1.Processor.kms_key_name]
+     * field must be set if the processor is under CMEK.
      * 
* * @@ -833,9 +855,11 @@ public Builder clearProcessor() { * * *
-     * Required. The processor to be created, requires [processor_type] and
-     * [display_name] to be set. Also, the processor is under CMEK if CMEK fields
-     * are set.
+     * Required. The processor to be created, requires
+     * [Processor.type][google.cloud.documentai.v1.Processor.type] and
+     * [Processor.display_name]][] to be set. Also, the
+     * [Processor.kms_key_name][google.cloud.documentai.v1.Processor.kms_key_name]
+     * field must be set if the processor is under CMEK.
      * 
* * @@ -851,9 +875,11 @@ public com.google.cloud.documentai.v1.Processor.Builder getProcessorBuilder() { * * *
-     * Required. The processor to be created, requires [processor_type] and
-     * [display_name] to be set. Also, the processor is under CMEK if CMEK fields
-     * are set.
+     * Required. The processor to be created, requires
+     * [Processor.type][google.cloud.documentai.v1.Processor.type] and
+     * [Processor.display_name]][] to be set. Also, the
+     * [Processor.kms_key_name][google.cloud.documentai.v1.Processor.kms_key_name]
+     * field must be set if the processor is under CMEK.
      * 
* * @@ -873,9 +899,11 @@ public com.google.cloud.documentai.v1.ProcessorOrBuilder getProcessorOrBuilder() * * *
-     * Required. The processor to be created, requires [processor_type] and
-     * [display_name] to be set. Also, the processor is under CMEK if CMEK fields
-     * are set.
+     * Required. The processor to be created, requires
+     * [Processor.type][google.cloud.documentai.v1.Processor.type] and
+     * [Processor.display_name]][] to be set. Also, the
+     * [Processor.kms_key_name][google.cloud.documentai.v1.Processor.kms_key_name]
+     * field must be set if the processor is under CMEK.
      * 
* * diff --git a/java-document-ai/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/CreateProcessorRequestOrBuilder.java b/java-document-ai/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/CreateProcessorRequestOrBuilder.java index 80c4ef2e9389..fd462e0b8dc9 100644 --- a/java-document-ai/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/CreateProcessorRequestOrBuilder.java +++ b/java-document-ai/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/CreateProcessorRequestOrBuilder.java @@ -58,9 +58,11 @@ public interface CreateProcessorRequestOrBuilder * * *
-   * Required. The processor to be created, requires [processor_type] and
-   * [display_name] to be set. Also, the processor is under CMEK if CMEK fields
-   * are set.
+   * Required. The processor to be created, requires
+   * [Processor.type][google.cloud.documentai.v1.Processor.type] and
+   * [Processor.display_name]][] to be set. Also, the
+   * [Processor.kms_key_name][google.cloud.documentai.v1.Processor.kms_key_name]
+   * field must be set if the processor is under CMEK.
    * 
* * @@ -74,9 +76,11 @@ public interface CreateProcessorRequestOrBuilder * * *
-   * Required. The processor to be created, requires [processor_type] and
-   * [display_name] to be set. Also, the processor is under CMEK if CMEK fields
-   * are set.
+   * Required. The processor to be created, requires
+   * [Processor.type][google.cloud.documentai.v1.Processor.type] and
+   * [Processor.display_name]][] to be set. Also, the
+   * [Processor.kms_key_name][google.cloud.documentai.v1.Processor.kms_key_name]
+   * field must be set if the processor is under CMEK.
    * 
* * @@ -90,9 +94,11 @@ public interface CreateProcessorRequestOrBuilder * * *
-   * Required. The processor to be created, requires [processor_type] and
-   * [display_name] to be set. Also, the processor is under CMEK if CMEK fields
-   * are set.
+   * Required. The processor to be created, requires
+   * [Processor.type][google.cloud.documentai.v1.Processor.type] and
+   * [Processor.display_name]][] to be set. Also, the
+   * [Processor.kms_key_name][google.cloud.documentai.v1.Processor.kms_key_name]
+   * field must be set if the processor is under CMEK.
    * 
* * diff --git a/java-document-ai/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/DeleteProcessorMetadata.java b/java-document-ai/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/DeleteProcessorMetadata.java index feb7c891ad09..aba62d657d07 100644 --- a/java-document-ai/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/DeleteProcessorMetadata.java +++ b/java-document-ai/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/DeleteProcessorMetadata.java @@ -22,7 +22,9 @@ * * *
- * The long running operation metadata for delete processor method.
+ * The long-running operation metadata for the
+ * [DeleteProcessor][google.cloud.documentai.v1.DocumentProcessorService.DeleteProcessor]
+ * method.
  * 
* * Protobuf type {@code google.cloud.documentai.v1.DeleteProcessorMetadata} @@ -66,7 +68,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * The basic metadata of the long running operation.
+   * The basic metadata of the long-running operation.
    * 
* * .google.cloud.documentai.v1.CommonOperationMetadata common_metadata = 5; @@ -81,7 +83,7 @@ public boolean hasCommonMetadata() { * * *
-   * The basic metadata of the long running operation.
+   * The basic metadata of the long-running operation.
    * 
* * .google.cloud.documentai.v1.CommonOperationMetadata common_metadata = 5; @@ -98,7 +100,7 @@ public com.google.cloud.documentai.v1.CommonOperationMetadata getCommonMetadata( * * *
-   * The basic metadata of the long running operation.
+   * The basic metadata of the long-running operation.
    * 
* * .google.cloud.documentai.v1.CommonOperationMetadata common_metadata = 5; @@ -280,7 +282,9 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * The long running operation metadata for delete processor method.
+   * The long-running operation metadata for the
+   * [DeleteProcessor][google.cloud.documentai.v1.DocumentProcessorService.DeleteProcessor]
+   * method.
    * 
* * Protobuf type {@code google.cloud.documentai.v1.DeleteProcessorMetadata} @@ -472,7 +476,7 @@ public Builder mergeFrom( * * *
-     * The basic metadata of the long running operation.
+     * The basic metadata of the long-running operation.
      * 
* * .google.cloud.documentai.v1.CommonOperationMetadata common_metadata = 5; @@ -486,7 +490,7 @@ public boolean hasCommonMetadata() { * * *
-     * The basic metadata of the long running operation.
+     * The basic metadata of the long-running operation.
      * 
* * .google.cloud.documentai.v1.CommonOperationMetadata common_metadata = 5; @@ -506,7 +510,7 @@ public com.google.cloud.documentai.v1.CommonOperationMetadata getCommonMetadata( * * *
-     * The basic metadata of the long running operation.
+     * The basic metadata of the long-running operation.
      * 
* * .google.cloud.documentai.v1.CommonOperationMetadata common_metadata = 5; @@ -528,7 +532,7 @@ public Builder setCommonMetadata(com.google.cloud.documentai.v1.CommonOperationM * * *
-     * The basic metadata of the long running operation.
+     * The basic metadata of the long-running operation.
      * 
* * .google.cloud.documentai.v1.CommonOperationMetadata common_metadata = 5; @@ -548,7 +552,7 @@ public Builder setCommonMetadata( * * *
-     * The basic metadata of the long running operation.
+     * The basic metadata of the long-running operation.
      * 
* * .google.cloud.documentai.v1.CommonOperationMetadata common_metadata = 5; @@ -575,7 +579,7 @@ public Builder mergeCommonMetadata( * * *
-     * The basic metadata of the long running operation.
+     * The basic metadata of the long-running operation.
      * 
* * .google.cloud.documentai.v1.CommonOperationMetadata common_metadata = 5; @@ -594,7 +598,7 @@ public Builder clearCommonMetadata() { * * *
-     * The basic metadata of the long running operation.
+     * The basic metadata of the long-running operation.
      * 
* * .google.cloud.documentai.v1.CommonOperationMetadata common_metadata = 5; @@ -609,7 +613,7 @@ public Builder clearCommonMetadata() { * * *
-     * The basic metadata of the long running operation.
+     * The basic metadata of the long-running operation.
      * 
* * .google.cloud.documentai.v1.CommonOperationMetadata common_metadata = 5; @@ -628,7 +632,7 @@ public Builder clearCommonMetadata() { * * *
-     * The basic metadata of the long running operation.
+     * The basic metadata of the long-running operation.
      * 
* * .google.cloud.documentai.v1.CommonOperationMetadata common_metadata = 5; diff --git a/java-document-ai/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/DeleteProcessorMetadataOrBuilder.java b/java-document-ai/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/DeleteProcessorMetadataOrBuilder.java index 0a783b3192c4..cbfb65c647f8 100644 --- a/java-document-ai/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/DeleteProcessorMetadataOrBuilder.java +++ b/java-document-ai/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/DeleteProcessorMetadataOrBuilder.java @@ -27,7 +27,7 @@ public interface DeleteProcessorMetadataOrBuilder * * *
-   * The basic metadata of the long running operation.
+   * The basic metadata of the long-running operation.
    * 
* * .google.cloud.documentai.v1.CommonOperationMetadata common_metadata = 5; @@ -39,7 +39,7 @@ public interface DeleteProcessorMetadataOrBuilder * * *
-   * The basic metadata of the long running operation.
+   * The basic metadata of the long-running operation.
    * 
* * .google.cloud.documentai.v1.CommonOperationMetadata common_metadata = 5; @@ -51,7 +51,7 @@ public interface DeleteProcessorMetadataOrBuilder * * *
-   * The basic metadata of the long running operation.
+   * The basic metadata of the long-running operation.
    * 
* * .google.cloud.documentai.v1.CommonOperationMetadata common_metadata = 5; diff --git a/java-document-ai/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/DeleteProcessorRequest.java b/java-document-ai/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/DeleteProcessorRequest.java index 02de944d067d..539a45e2d695 100644 --- a/java-document-ai/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/DeleteProcessorRequest.java +++ b/java-document-ai/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/DeleteProcessorRequest.java @@ -22,7 +22,9 @@ * * *
- * Request message for the delete processor method.
+ * Request message for the
+ * [DeleteProcessor][google.cloud.documentai.v1.DocumentProcessorService.DeleteProcessor]
+ * method.
  * 
* * Protobuf type {@code google.cloud.documentai.v1.DeleteProcessorRequest} @@ -281,7 +283,9 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * Request message for the delete processor method.
+   * Request message for the
+   * [DeleteProcessor][google.cloud.documentai.v1.DocumentProcessorService.DeleteProcessor]
+   * method.
    * 
* * Protobuf type {@code google.cloud.documentai.v1.DeleteProcessorRequest} diff --git a/java-document-ai/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/DeleteProcessorVersionMetadata.java b/java-document-ai/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/DeleteProcessorVersionMetadata.java index 4a389bd10099..97847aa500d4 100644 --- a/java-document-ai/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/DeleteProcessorVersionMetadata.java +++ b/java-document-ai/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/DeleteProcessorVersionMetadata.java @@ -22,7 +22,9 @@ * * *
- * The long running operation metadata for delete processor version method.
+ * The long-running operation metadata for the
+ * [DeleteProcessorVersion][google.cloud.documentai.v1.DocumentProcessorService.DeleteProcessorVersion]
+ * method.
  * 
* * Protobuf type {@code google.cloud.documentai.v1.DeleteProcessorVersionMetadata} @@ -67,7 +69,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * The basic metadata of the long running operation.
+   * The basic metadata of the long-running operation.
    * 
* * .google.cloud.documentai.v1.CommonOperationMetadata common_metadata = 1; @@ -82,7 +84,7 @@ public boolean hasCommonMetadata() { * * *
-   * The basic metadata of the long running operation.
+   * The basic metadata of the long-running operation.
    * 
* * .google.cloud.documentai.v1.CommonOperationMetadata common_metadata = 1; @@ -99,7 +101,7 @@ public com.google.cloud.documentai.v1.CommonOperationMetadata getCommonMetadata( * * *
-   * The basic metadata of the long running operation.
+   * The basic metadata of the long-running operation.
    * 
* * .google.cloud.documentai.v1.CommonOperationMetadata common_metadata = 1; @@ -281,7 +283,9 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * The long running operation metadata for delete processor version method.
+   * The long-running operation metadata for the
+   * [DeleteProcessorVersion][google.cloud.documentai.v1.DocumentProcessorService.DeleteProcessorVersion]
+   * method.
    * 
* * Protobuf type {@code google.cloud.documentai.v1.DeleteProcessorVersionMetadata} @@ -476,7 +480,7 @@ public Builder mergeFrom( * * *
-     * The basic metadata of the long running operation.
+     * The basic metadata of the long-running operation.
      * 
* * .google.cloud.documentai.v1.CommonOperationMetadata common_metadata = 1; @@ -490,7 +494,7 @@ public boolean hasCommonMetadata() { * * *
-     * The basic metadata of the long running operation.
+     * The basic metadata of the long-running operation.
      * 
* * .google.cloud.documentai.v1.CommonOperationMetadata common_metadata = 1; @@ -510,7 +514,7 @@ public com.google.cloud.documentai.v1.CommonOperationMetadata getCommonMetadata( * * *
-     * The basic metadata of the long running operation.
+     * The basic metadata of the long-running operation.
      * 
* * .google.cloud.documentai.v1.CommonOperationMetadata common_metadata = 1; @@ -532,7 +536,7 @@ public Builder setCommonMetadata(com.google.cloud.documentai.v1.CommonOperationM * * *
-     * The basic metadata of the long running operation.
+     * The basic metadata of the long-running operation.
      * 
* * .google.cloud.documentai.v1.CommonOperationMetadata common_metadata = 1; @@ -552,7 +556,7 @@ public Builder setCommonMetadata( * * *
-     * The basic metadata of the long running operation.
+     * The basic metadata of the long-running operation.
      * 
* * .google.cloud.documentai.v1.CommonOperationMetadata common_metadata = 1; @@ -579,7 +583,7 @@ public Builder mergeCommonMetadata( * * *
-     * The basic metadata of the long running operation.
+     * The basic metadata of the long-running operation.
      * 
* * .google.cloud.documentai.v1.CommonOperationMetadata common_metadata = 1; @@ -598,7 +602,7 @@ public Builder clearCommonMetadata() { * * *
-     * The basic metadata of the long running operation.
+     * The basic metadata of the long-running operation.
      * 
* * .google.cloud.documentai.v1.CommonOperationMetadata common_metadata = 1; @@ -613,7 +617,7 @@ public Builder clearCommonMetadata() { * * *
-     * The basic metadata of the long running operation.
+     * The basic metadata of the long-running operation.
      * 
* * .google.cloud.documentai.v1.CommonOperationMetadata common_metadata = 1; @@ -632,7 +636,7 @@ public Builder clearCommonMetadata() { * * *
-     * The basic metadata of the long running operation.
+     * The basic metadata of the long-running operation.
      * 
* * .google.cloud.documentai.v1.CommonOperationMetadata common_metadata = 1; diff --git a/java-document-ai/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/DeleteProcessorVersionMetadataOrBuilder.java b/java-document-ai/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/DeleteProcessorVersionMetadataOrBuilder.java index d59aed8f3e5b..cf93d1f81ca6 100644 --- a/java-document-ai/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/DeleteProcessorVersionMetadataOrBuilder.java +++ b/java-document-ai/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/DeleteProcessorVersionMetadataOrBuilder.java @@ -27,7 +27,7 @@ public interface DeleteProcessorVersionMetadataOrBuilder * * *
-   * The basic metadata of the long running operation.
+   * The basic metadata of the long-running operation.
    * 
* * .google.cloud.documentai.v1.CommonOperationMetadata common_metadata = 1; @@ -39,7 +39,7 @@ public interface DeleteProcessorVersionMetadataOrBuilder * * *
-   * The basic metadata of the long running operation.
+   * The basic metadata of the long-running operation.
    * 
* * .google.cloud.documentai.v1.CommonOperationMetadata common_metadata = 1; @@ -51,7 +51,7 @@ public interface DeleteProcessorVersionMetadataOrBuilder * * *
-   * The basic metadata of the long running operation.
+   * The basic metadata of the long-running operation.
    * 
* * .google.cloud.documentai.v1.CommonOperationMetadata common_metadata = 1; diff --git a/java-document-ai/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/DeleteProcessorVersionRequest.java b/java-document-ai/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/DeleteProcessorVersionRequest.java index 1c032554b16b..d53d3cfdd6b9 100644 --- a/java-document-ai/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/DeleteProcessorVersionRequest.java +++ b/java-document-ai/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/DeleteProcessorVersionRequest.java @@ -22,7 +22,9 @@ * * *
- * Request message for the delete processor version method.
+ * Request message for the
+ * [DeleteProcessorVersion][google.cloud.documentai.v1.DocumentProcessorService.DeleteProcessorVersion]
+ * method.
  * 
* * Protobuf type {@code google.cloud.documentai.v1.DeleteProcessorVersionRequest} @@ -281,7 +283,9 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * Request message for the delete processor version method.
+   * Request message for the
+   * [DeleteProcessorVersion][google.cloud.documentai.v1.DocumentProcessorService.DeleteProcessorVersion]
+   * method.
    * 
* * Protobuf type {@code google.cloud.documentai.v1.DeleteProcessorVersionRequest} diff --git a/java-document-ai/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/DeployProcessorVersionMetadata.java b/java-document-ai/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/DeployProcessorVersionMetadata.java index ba030b30e8ee..c26231bc0e20 100644 --- a/java-document-ai/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/DeployProcessorVersionMetadata.java +++ b/java-document-ai/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/DeployProcessorVersionMetadata.java @@ -22,7 +22,9 @@ * * *
- * The long running operation metadata for deploy processor version method.
+ * The long-running operation metadata for the
+ * [DeployProcessorVersion][google.cloud.documentai.v1.DocumentProcessorService.DeployProcessorVersion]
+ * method.
  * 
* * Protobuf type {@code google.cloud.documentai.v1.DeployProcessorVersionMetadata} @@ -67,7 +69,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * The basic metadata of the long running operation.
+   * The basic metadata of the long-running operation.
    * 
* * .google.cloud.documentai.v1.CommonOperationMetadata common_metadata = 1; @@ -82,7 +84,7 @@ public boolean hasCommonMetadata() { * * *
-   * The basic metadata of the long running operation.
+   * The basic metadata of the long-running operation.
    * 
* * .google.cloud.documentai.v1.CommonOperationMetadata common_metadata = 1; @@ -99,7 +101,7 @@ public com.google.cloud.documentai.v1.CommonOperationMetadata getCommonMetadata( * * *
-   * The basic metadata of the long running operation.
+   * The basic metadata of the long-running operation.
    * 
* * .google.cloud.documentai.v1.CommonOperationMetadata common_metadata = 1; @@ -281,7 +283,9 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * The long running operation metadata for deploy processor version method.
+   * The long-running operation metadata for the
+   * [DeployProcessorVersion][google.cloud.documentai.v1.DocumentProcessorService.DeployProcessorVersion]
+   * method.
    * 
* * Protobuf type {@code google.cloud.documentai.v1.DeployProcessorVersionMetadata} @@ -476,7 +480,7 @@ public Builder mergeFrom( * * *
-     * The basic metadata of the long running operation.
+     * The basic metadata of the long-running operation.
      * 
* * .google.cloud.documentai.v1.CommonOperationMetadata common_metadata = 1; @@ -490,7 +494,7 @@ public boolean hasCommonMetadata() { * * *
-     * The basic metadata of the long running operation.
+     * The basic metadata of the long-running operation.
      * 
* * .google.cloud.documentai.v1.CommonOperationMetadata common_metadata = 1; @@ -510,7 +514,7 @@ public com.google.cloud.documentai.v1.CommonOperationMetadata getCommonMetadata( * * *
-     * The basic metadata of the long running operation.
+     * The basic metadata of the long-running operation.
      * 
* * .google.cloud.documentai.v1.CommonOperationMetadata common_metadata = 1; @@ -532,7 +536,7 @@ public Builder setCommonMetadata(com.google.cloud.documentai.v1.CommonOperationM * * *
-     * The basic metadata of the long running operation.
+     * The basic metadata of the long-running operation.
      * 
* * .google.cloud.documentai.v1.CommonOperationMetadata common_metadata = 1; @@ -552,7 +556,7 @@ public Builder setCommonMetadata( * * *
-     * The basic metadata of the long running operation.
+     * The basic metadata of the long-running operation.
      * 
* * .google.cloud.documentai.v1.CommonOperationMetadata common_metadata = 1; @@ -579,7 +583,7 @@ public Builder mergeCommonMetadata( * * *
-     * The basic metadata of the long running operation.
+     * The basic metadata of the long-running operation.
      * 
* * .google.cloud.documentai.v1.CommonOperationMetadata common_metadata = 1; @@ -598,7 +602,7 @@ public Builder clearCommonMetadata() { * * *
-     * The basic metadata of the long running operation.
+     * The basic metadata of the long-running operation.
      * 
* * .google.cloud.documentai.v1.CommonOperationMetadata common_metadata = 1; @@ -613,7 +617,7 @@ public Builder clearCommonMetadata() { * * *
-     * The basic metadata of the long running operation.
+     * The basic metadata of the long-running operation.
      * 
* * .google.cloud.documentai.v1.CommonOperationMetadata common_metadata = 1; @@ -632,7 +636,7 @@ public Builder clearCommonMetadata() { * * *
-     * The basic metadata of the long running operation.
+     * The basic metadata of the long-running operation.
      * 
* * .google.cloud.documentai.v1.CommonOperationMetadata common_metadata = 1; diff --git a/java-document-ai/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/DeployProcessorVersionMetadataOrBuilder.java b/java-document-ai/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/DeployProcessorVersionMetadataOrBuilder.java index bcc967e0fdd6..df457ac5c3db 100644 --- a/java-document-ai/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/DeployProcessorVersionMetadataOrBuilder.java +++ b/java-document-ai/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/DeployProcessorVersionMetadataOrBuilder.java @@ -27,7 +27,7 @@ public interface DeployProcessorVersionMetadataOrBuilder * * *
-   * The basic metadata of the long running operation.
+   * The basic metadata of the long-running operation.
    * 
* * .google.cloud.documentai.v1.CommonOperationMetadata common_metadata = 1; @@ -39,7 +39,7 @@ public interface DeployProcessorVersionMetadataOrBuilder * * *
-   * The basic metadata of the long running operation.
+   * The basic metadata of the long-running operation.
    * 
* * .google.cloud.documentai.v1.CommonOperationMetadata common_metadata = 1; @@ -51,7 +51,7 @@ public interface DeployProcessorVersionMetadataOrBuilder * * *
-   * The basic metadata of the long running operation.
+   * The basic metadata of the long-running operation.
    * 
* * .google.cloud.documentai.v1.CommonOperationMetadata common_metadata = 1; diff --git a/java-document-ai/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/DeployProcessorVersionRequest.java b/java-document-ai/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/DeployProcessorVersionRequest.java index 8cde84550df9..1319adb7f68f 100644 --- a/java-document-ai/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/DeployProcessorVersionRequest.java +++ b/java-document-ai/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/DeployProcessorVersionRequest.java @@ -22,7 +22,9 @@ * * *
- * Request message for the deploy processor version method.
+ * Request message for the
+ * [DeployProcessorVersion][google.cloud.documentai.v1.DocumentProcessorService.DeployProcessorVersion]
+ * method.
  * 
* * Protobuf type {@code google.cloud.documentai.v1.DeployProcessorVersionRequest} @@ -281,7 +283,9 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * Request message for the deploy processor version method.
+   * Request message for the
+   * [DeployProcessorVersion][google.cloud.documentai.v1.DocumentProcessorService.DeployProcessorVersion]
+   * method.
    * 
* * Protobuf type {@code google.cloud.documentai.v1.DeployProcessorVersionRequest} diff --git a/java-document-ai/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/DeployProcessorVersionResponse.java b/java-document-ai/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/DeployProcessorVersionResponse.java index 504960dcdde8..5d436b8669c0 100644 --- a/java-document-ai/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/DeployProcessorVersionResponse.java +++ b/java-document-ai/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/DeployProcessorVersionResponse.java @@ -22,7 +22,9 @@ * * *
- * Response message for the deploy processor version method.
+ * Response message for the
+ * [DeployProcessorVersion][google.cloud.documentai.v1.DocumentProcessorService.DeployProcessorVersion]
+ * method.
  * 
* * Protobuf type {@code google.cloud.documentai.v1.DeployProcessorVersionResponse} @@ -216,7 +218,9 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * Response message for the deploy processor version method.
+   * Response message for the
+   * [DeployProcessorVersion][google.cloud.documentai.v1.DocumentProcessorService.DeployProcessorVersion]
+   * method.
    * 
* * Protobuf type {@code google.cloud.documentai.v1.DeployProcessorVersionResponse} diff --git a/java-document-ai/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/DisableProcessorMetadata.java b/java-document-ai/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/DisableProcessorMetadata.java index 93e928b67d11..17307059ae48 100644 --- a/java-document-ai/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/DisableProcessorMetadata.java +++ b/java-document-ai/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/DisableProcessorMetadata.java @@ -22,7 +22,9 @@ * * *
- * The long running operation metadata for disable processor method.
+ * The long-running operation metadata for the
+ * [DisableProcessor][google.cloud.documentai.v1.DocumentProcessorService.DisableProcessor]
+ * method.
  * 
* * Protobuf type {@code google.cloud.documentai.v1.DisableProcessorMetadata} @@ -66,7 +68,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * The basic metadata of the long running operation.
+   * The basic metadata of the long-running operation.
    * 
* * .google.cloud.documentai.v1.CommonOperationMetadata common_metadata = 5; @@ -81,7 +83,7 @@ public boolean hasCommonMetadata() { * * *
-   * The basic metadata of the long running operation.
+   * The basic metadata of the long-running operation.
    * 
* * .google.cloud.documentai.v1.CommonOperationMetadata common_metadata = 5; @@ -98,7 +100,7 @@ public com.google.cloud.documentai.v1.CommonOperationMetadata getCommonMetadata( * * *
-   * The basic metadata of the long running operation.
+   * The basic metadata of the long-running operation.
    * 
* * .google.cloud.documentai.v1.CommonOperationMetadata common_metadata = 5; @@ -280,7 +282,9 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * The long running operation metadata for disable processor method.
+   * The long-running operation metadata for the
+   * [DisableProcessor][google.cloud.documentai.v1.DocumentProcessorService.DisableProcessor]
+   * method.
    * 
* * Protobuf type {@code google.cloud.documentai.v1.DisableProcessorMetadata} @@ -472,7 +476,7 @@ public Builder mergeFrom( * * *
-     * The basic metadata of the long running operation.
+     * The basic metadata of the long-running operation.
      * 
* * .google.cloud.documentai.v1.CommonOperationMetadata common_metadata = 5; @@ -486,7 +490,7 @@ public boolean hasCommonMetadata() { * * *
-     * The basic metadata of the long running operation.
+     * The basic metadata of the long-running operation.
      * 
* * .google.cloud.documentai.v1.CommonOperationMetadata common_metadata = 5; @@ -506,7 +510,7 @@ public com.google.cloud.documentai.v1.CommonOperationMetadata getCommonMetadata( * * *
-     * The basic metadata of the long running operation.
+     * The basic metadata of the long-running operation.
      * 
* * .google.cloud.documentai.v1.CommonOperationMetadata common_metadata = 5; @@ -528,7 +532,7 @@ public Builder setCommonMetadata(com.google.cloud.documentai.v1.CommonOperationM * * *
-     * The basic metadata of the long running operation.
+     * The basic metadata of the long-running operation.
      * 
* * .google.cloud.documentai.v1.CommonOperationMetadata common_metadata = 5; @@ -548,7 +552,7 @@ public Builder setCommonMetadata( * * *
-     * The basic metadata of the long running operation.
+     * The basic metadata of the long-running operation.
      * 
* * .google.cloud.documentai.v1.CommonOperationMetadata common_metadata = 5; @@ -575,7 +579,7 @@ public Builder mergeCommonMetadata( * * *
-     * The basic metadata of the long running operation.
+     * The basic metadata of the long-running operation.
      * 
* * .google.cloud.documentai.v1.CommonOperationMetadata common_metadata = 5; @@ -594,7 +598,7 @@ public Builder clearCommonMetadata() { * * *
-     * The basic metadata of the long running operation.
+     * The basic metadata of the long-running operation.
      * 
* * .google.cloud.documentai.v1.CommonOperationMetadata common_metadata = 5; @@ -609,7 +613,7 @@ public Builder clearCommonMetadata() { * * *
-     * The basic metadata of the long running operation.
+     * The basic metadata of the long-running operation.
      * 
* * .google.cloud.documentai.v1.CommonOperationMetadata common_metadata = 5; @@ -628,7 +632,7 @@ public Builder clearCommonMetadata() { * * *
-     * The basic metadata of the long running operation.
+     * The basic metadata of the long-running operation.
      * 
* * .google.cloud.documentai.v1.CommonOperationMetadata common_metadata = 5; diff --git a/java-document-ai/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/DisableProcessorMetadataOrBuilder.java b/java-document-ai/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/DisableProcessorMetadataOrBuilder.java index bec9e39502c1..c482ad76cb32 100644 --- a/java-document-ai/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/DisableProcessorMetadataOrBuilder.java +++ b/java-document-ai/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/DisableProcessorMetadataOrBuilder.java @@ -27,7 +27,7 @@ public interface DisableProcessorMetadataOrBuilder * * *
-   * The basic metadata of the long running operation.
+   * The basic metadata of the long-running operation.
    * 
* * .google.cloud.documentai.v1.CommonOperationMetadata common_metadata = 5; @@ -39,7 +39,7 @@ public interface DisableProcessorMetadataOrBuilder * * *
-   * The basic metadata of the long running operation.
+   * The basic metadata of the long-running operation.
    * 
* * .google.cloud.documentai.v1.CommonOperationMetadata common_metadata = 5; @@ -51,7 +51,7 @@ public interface DisableProcessorMetadataOrBuilder * * *
-   * The basic metadata of the long running operation.
+   * The basic metadata of the long-running operation.
    * 
* * .google.cloud.documentai.v1.CommonOperationMetadata common_metadata = 5; diff --git a/java-document-ai/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/DisableProcessorRequest.java b/java-document-ai/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/DisableProcessorRequest.java index 36b7b14a44b5..635bfe59d04d 100644 --- a/java-document-ai/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/DisableProcessorRequest.java +++ b/java-document-ai/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/DisableProcessorRequest.java @@ -22,7 +22,9 @@ * * *
- * Request message for the disable processor method.
+ * Request message for the
+ * [DisableProcessor][google.cloud.documentai.v1.DocumentProcessorService.DisableProcessor]
+ * method.
  * 
* * Protobuf type {@code google.cloud.documentai.v1.DisableProcessorRequest} @@ -281,7 +283,9 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * Request message for the disable processor method.
+   * Request message for the
+   * [DisableProcessor][google.cloud.documentai.v1.DocumentProcessorService.DisableProcessor]
+   * method.
    * 
* * Protobuf type {@code google.cloud.documentai.v1.DisableProcessorRequest} diff --git a/java-document-ai/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/DisableProcessorResponse.java b/java-document-ai/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/DisableProcessorResponse.java index 736103f9df1c..317e27eda826 100644 --- a/java-document-ai/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/DisableProcessorResponse.java +++ b/java-document-ai/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/DisableProcessorResponse.java @@ -22,8 +22,9 @@ * * *
- * Response message for the disable processor method.
- * Intentionally empty proto for adding fields in future.
+ * Response message for the
+ * [DisableProcessor][google.cloud.documentai.v1.DocumentProcessorService.DisableProcessor]
+ * method. Intentionally empty proto for adding fields in future.
  * 
* * Protobuf type {@code google.cloud.documentai.v1.DisableProcessorResponse} @@ -216,8 +217,9 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * Response message for the disable processor method.
-   * Intentionally empty proto for adding fields in future.
+   * Response message for the
+   * [DisableProcessor][google.cloud.documentai.v1.DocumentProcessorService.DisableProcessor]
+   * method. Intentionally empty proto for adding fields in future.
    * 
* * Protobuf type {@code google.cloud.documentai.v1.DisableProcessorResponse} diff --git a/java-document-ai/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/Document.java b/java-document-ai/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/Document.java index 8f00deea1144..f8a34cdb2d31 100644 --- a/java-document-ai/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/Document.java +++ b/java-document-ai/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/Document.java @@ -954,8 +954,8 @@ public interface StyleOrBuilder * * *
-     * Font weight. Possible values are normal, bold, bolder, and lighter.
-     * https://www.w3schools.com/cssref/pr_font_weight.asp
+     * [Font weight](https://www.w3schools.com/cssref/pr_font_weight.asp).
+     * Possible values are `normal`, `bold`, `bolder`, and `lighter`.
      * 
* * string font_weight = 4; @@ -967,8 +967,8 @@ public interface StyleOrBuilder * * *
-     * Font weight. Possible values are normal, bold, bolder, and lighter.
-     * https://www.w3schools.com/cssref/pr_font_weight.asp
+     * [Font weight](https://www.w3schools.com/cssref/pr_font_weight.asp).
+     * Possible values are `normal`, `bold`, `bolder`, and `lighter`.
      * 
* * string font_weight = 4; @@ -981,8 +981,8 @@ public interface StyleOrBuilder * * *
-     * Text style. Possible values are normal, italic, and oblique.
-     * https://www.w3schools.com/cssref/pr_font_font-style.asp
+     * [Text style](https://www.w3schools.com/cssref/pr_font_font-style.asp).
+     * Possible values are `normal`, `italic`, and `oblique`.
      * 
* * string text_style = 5; @@ -994,8 +994,8 @@ public interface StyleOrBuilder * * *
-     * Text style. Possible values are normal, italic, and oblique.
-     * https://www.w3schools.com/cssref/pr_font_font-style.asp
+     * [Text style](https://www.w3schools.com/cssref/pr_font_font-style.asp).
+     * Possible values are `normal`, `italic`, and `oblique`.
      * 
* * string text_style = 5; @@ -1008,9 +1008,10 @@ public interface StyleOrBuilder * * *
-     * Text decoration. Follows CSS standard.
-     * <text-decoration-line> <text-decoration-color> <text-decoration-style>
-     * https://www.w3schools.com/cssref/pr_text_text-decoration.asp
+     * [Text
+     * decoration](https://www.w3schools.com/cssref/pr_text_text-decoration.asp).
+     * Follows CSS standard. <text-decoration-line> <text-decoration-color>
+     * <text-decoration-style>
      * 
* * string text_decoration = 6; @@ -1022,9 +1023,10 @@ public interface StyleOrBuilder * * *
-     * Text decoration. Follows CSS standard.
-     * <text-decoration-line> <text-decoration-color> <text-decoration-style>
-     * https://www.w3schools.com/cssref/pr_text_text-decoration.asp
+     * [Text
+     * decoration](https://www.w3schools.com/cssref/pr_text_text-decoration.asp).
+     * Follows CSS standard. <text-decoration-line> <text-decoration-color>
+     * <text-decoration-style>
      * 
* * string text_decoration = 6; @@ -1165,7 +1167,8 @@ public interface FontSizeOrBuilder * * *
-       * Unit for the font size. Follows CSS naming (in, px, pt, etc.).
+       * Unit for the font size. Follows CSS naming (such as `in`, `px`, and
+       * `pt`).
        * 
* * string unit = 2; @@ -1177,7 +1180,8 @@ public interface FontSizeOrBuilder * * *
-       * Unit for the font size. Follows CSS naming (in, px, pt, etc.).
+       * Unit for the font size. Follows CSS naming (such as `in`, `px`, and
+       * `pt`).
        * 
* * string unit = 2; @@ -1256,7 +1260,8 @@ public float getSize() { * * *
-       * Unit for the font size. Follows CSS naming (in, px, pt, etc.).
+       * Unit for the font size. Follows CSS naming (such as `in`, `px`, and
+       * `pt`).
        * 
* * string unit = 2; @@ -1279,7 +1284,8 @@ public java.lang.String getUnit() { * * *
-       * Unit for the font size. Follows CSS naming (in, px, pt, etc.).
+       * Unit for the font size. Follows CSS naming (such as `in`, `px`, and
+       * `pt`).
        * 
* * string unit = 2; @@ -1727,7 +1733,8 @@ public Builder clearSize() { * * *
-         * Unit for the font size. Follows CSS naming (in, px, pt, etc.).
+         * Unit for the font size. Follows CSS naming (such as `in`, `px`, and
+         * `pt`).
          * 
* * string unit = 2; @@ -1749,7 +1756,8 @@ public java.lang.String getUnit() { * * *
-         * Unit for the font size. Follows CSS naming (in, px, pt, etc.).
+         * Unit for the font size. Follows CSS naming (such as `in`, `px`, and
+         * `pt`).
          * 
* * string unit = 2; @@ -1771,7 +1779,8 @@ public com.google.protobuf.ByteString getUnitBytes() { * * *
-         * Unit for the font size. Follows CSS naming (in, px, pt, etc.).
+         * Unit for the font size. Follows CSS naming (such as `in`, `px`, and
+         * `pt`).
          * 
* * string unit = 2; @@ -1792,7 +1801,8 @@ public Builder setUnit(java.lang.String value) { * * *
-         * Unit for the font size. Follows CSS naming (in, px, pt, etc.).
+         * Unit for the font size. Follows CSS naming (such as `in`, `px`, and
+         * `pt`).
          * 
* * string unit = 2; @@ -1809,7 +1819,8 @@ public Builder clearUnit() { * * *
-         * Unit for the font size. Follows CSS naming (in, px, pt, etc.).
+         * Unit for the font size. Follows CSS naming (such as `in`, `px`, and
+         * `pt`).
          * 
* * string unit = 2; @@ -2049,8 +2060,8 @@ public com.google.type.ColorOrBuilder getBackgroundColorOrBuilder() { * * *
-     * Font weight. Possible values are normal, bold, bolder, and lighter.
-     * https://www.w3schools.com/cssref/pr_font_weight.asp
+     * [Font weight](https://www.w3schools.com/cssref/pr_font_weight.asp).
+     * Possible values are `normal`, `bold`, `bolder`, and `lighter`.
      * 
* * string font_weight = 4; @@ -2073,8 +2084,8 @@ public java.lang.String getFontWeight() { * * *
-     * Font weight. Possible values are normal, bold, bolder, and lighter.
-     * https://www.w3schools.com/cssref/pr_font_weight.asp
+     * [Font weight](https://www.w3schools.com/cssref/pr_font_weight.asp).
+     * Possible values are `normal`, `bold`, `bolder`, and `lighter`.
      * 
* * string font_weight = 4; @@ -2102,8 +2113,8 @@ public com.google.protobuf.ByteString getFontWeightBytes() { * * *
-     * Text style. Possible values are normal, italic, and oblique.
-     * https://www.w3schools.com/cssref/pr_font_font-style.asp
+     * [Text style](https://www.w3schools.com/cssref/pr_font_font-style.asp).
+     * Possible values are `normal`, `italic`, and `oblique`.
      * 
* * string text_style = 5; @@ -2126,8 +2137,8 @@ public java.lang.String getTextStyle() { * * *
-     * Text style. Possible values are normal, italic, and oblique.
-     * https://www.w3schools.com/cssref/pr_font_font-style.asp
+     * [Text style](https://www.w3schools.com/cssref/pr_font_font-style.asp).
+     * Possible values are `normal`, `italic`, and `oblique`.
      * 
* * string text_style = 5; @@ -2155,9 +2166,10 @@ public com.google.protobuf.ByteString getTextStyleBytes() { * * *
-     * Text decoration. Follows CSS standard.
-     * <text-decoration-line> <text-decoration-color> <text-decoration-style>
-     * https://www.w3schools.com/cssref/pr_text_text-decoration.asp
+     * [Text
+     * decoration](https://www.w3schools.com/cssref/pr_text_text-decoration.asp).
+     * Follows CSS standard. <text-decoration-line> <text-decoration-color>
+     * <text-decoration-style>
      * 
* * string text_decoration = 6; @@ -2180,9 +2192,10 @@ public java.lang.String getTextDecoration() { * * *
-     * Text decoration. Follows CSS standard.
-     * <text-decoration-line> <text-decoration-color> <text-decoration-style>
-     * https://www.w3schools.com/cssref/pr_text_text-decoration.asp
+     * [Text
+     * decoration](https://www.w3schools.com/cssref/pr_text_text-decoration.asp).
+     * Follows CSS standard. <text-decoration-line> <text-decoration-color>
+     * <text-decoration-style>
      * 
* * string text_decoration = 6; @@ -3403,8 +3416,8 @@ public com.google.type.ColorOrBuilder getBackgroundColorOrBuilder() { * * *
-       * Font weight. Possible values are normal, bold, bolder, and lighter.
-       * https://www.w3schools.com/cssref/pr_font_weight.asp
+       * [Font weight](https://www.w3schools.com/cssref/pr_font_weight.asp).
+       * Possible values are `normal`, `bold`, `bolder`, and `lighter`.
        * 
* * string font_weight = 4; @@ -3426,8 +3439,8 @@ public java.lang.String getFontWeight() { * * *
-       * Font weight. Possible values are normal, bold, bolder, and lighter.
-       * https://www.w3schools.com/cssref/pr_font_weight.asp
+       * [Font weight](https://www.w3schools.com/cssref/pr_font_weight.asp).
+       * Possible values are `normal`, `bold`, `bolder`, and `lighter`.
        * 
* * string font_weight = 4; @@ -3449,8 +3462,8 @@ 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
+       * [Font weight](https://www.w3schools.com/cssref/pr_font_weight.asp).
+       * Possible values are `normal`, `bold`, `bolder`, and `lighter`.
        * 
* * string font_weight = 4; @@ -3471,8 +3484,8 @@ public Builder setFontWeight(java.lang.String value) { * * *
-       * Font weight. Possible values are normal, bold, bolder, and lighter.
-       * https://www.w3schools.com/cssref/pr_font_weight.asp
+       * [Font weight](https://www.w3schools.com/cssref/pr_font_weight.asp).
+       * Possible values are `normal`, `bold`, `bolder`, and `lighter`.
        * 
* * string font_weight = 4; @@ -3489,8 +3502,8 @@ public Builder clearFontWeight() { * * *
-       * Font weight. Possible values are normal, bold, bolder, and lighter.
-       * https://www.w3schools.com/cssref/pr_font_weight.asp
+       * [Font weight](https://www.w3schools.com/cssref/pr_font_weight.asp).
+       * Possible values are `normal`, `bold`, `bolder`, and `lighter`.
        * 
* * string font_weight = 4; @@ -3514,8 +3527,8 @@ public Builder setFontWeightBytes(com.google.protobuf.ByteString value) { * * *
-       * Text style. Possible values are normal, italic, and oblique.
-       * https://www.w3schools.com/cssref/pr_font_font-style.asp
+       * [Text style](https://www.w3schools.com/cssref/pr_font_font-style.asp).
+       * Possible values are `normal`, `italic`, and `oblique`.
        * 
* * string text_style = 5; @@ -3537,8 +3550,8 @@ public java.lang.String getTextStyle() { * * *
-       * Text style. Possible values are normal, italic, and oblique.
-       * https://www.w3schools.com/cssref/pr_font_font-style.asp
+       * [Text style](https://www.w3schools.com/cssref/pr_font_font-style.asp).
+       * Possible values are `normal`, `italic`, and `oblique`.
        * 
* * string text_style = 5; @@ -3560,8 +3573,8 @@ 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
+       * [Text style](https://www.w3schools.com/cssref/pr_font_font-style.asp).
+       * Possible values are `normal`, `italic`, and `oblique`.
        * 
* * string text_style = 5; @@ -3582,8 +3595,8 @@ public Builder setTextStyle(java.lang.String value) { * * *
-       * Text style. Possible values are normal, italic, and oblique.
-       * https://www.w3schools.com/cssref/pr_font_font-style.asp
+       * [Text style](https://www.w3schools.com/cssref/pr_font_font-style.asp).
+       * Possible values are `normal`, `italic`, and `oblique`.
        * 
* * string text_style = 5; @@ -3600,8 +3613,8 @@ public Builder clearTextStyle() { * * *
-       * Text style. Possible values are normal, italic, and oblique.
-       * https://www.w3schools.com/cssref/pr_font_font-style.asp
+       * [Text style](https://www.w3schools.com/cssref/pr_font_font-style.asp).
+       * Possible values are `normal`, `italic`, and `oblique`.
        * 
* * string text_style = 5; @@ -3625,9 +3638,10 @@ public Builder setTextStyleBytes(com.google.protobuf.ByteString value) { * * *
-       * Text decoration. Follows CSS standard.
-       * <text-decoration-line> <text-decoration-color> <text-decoration-style>
-       * https://www.w3schools.com/cssref/pr_text_text-decoration.asp
+       * [Text
+       * decoration](https://www.w3schools.com/cssref/pr_text_text-decoration.asp).
+       * Follows CSS standard. <text-decoration-line> <text-decoration-color>
+       * <text-decoration-style>
        * 
* * string text_decoration = 6; @@ -3649,9 +3663,10 @@ public java.lang.String getTextDecoration() { * * *
-       * Text decoration. Follows CSS standard.
-       * <text-decoration-line> <text-decoration-color> <text-decoration-style>
-       * https://www.w3schools.com/cssref/pr_text_text-decoration.asp
+       * [Text
+       * decoration](https://www.w3schools.com/cssref/pr_text_text-decoration.asp).
+       * Follows CSS standard. <text-decoration-line> <text-decoration-color>
+       * <text-decoration-style>
        * 
* * string text_decoration = 6; @@ -3673,9 +3688,10 @@ public com.google.protobuf.ByteString getTextDecorationBytes() { * * *
-       * Text decoration. Follows CSS standard.
-       * <text-decoration-line> <text-decoration-color> <text-decoration-style>
-       * https://www.w3schools.com/cssref/pr_text_text-decoration.asp
+       * [Text
+       * decoration](https://www.w3schools.com/cssref/pr_text_text-decoration.asp).
+       * Follows CSS standard. <text-decoration-line> <text-decoration-color>
+       * <text-decoration-style>
        * 
* * string text_decoration = 6; @@ -3696,9 +3712,10 @@ public Builder setTextDecoration(java.lang.String value) { * * *
-       * Text decoration. Follows CSS standard.
-       * <text-decoration-line> <text-decoration-color> <text-decoration-style>
-       * https://www.w3schools.com/cssref/pr_text_text-decoration.asp
+       * [Text
+       * decoration](https://www.w3schools.com/cssref/pr_text_text-decoration.asp).
+       * Follows CSS standard. <text-decoration-line> <text-decoration-color>
+       * <text-decoration-style>
        * 
* * string text_decoration = 6; @@ -3715,9 +3732,10 @@ public Builder clearTextDecoration() { * * *
-       * Text decoration. Follows CSS standard.
-       * <text-decoration-line> <text-decoration-color> <text-decoration-style>
-       * https://www.w3schools.com/cssref/pr_text_text-decoration.asp
+       * [Text
+       * decoration](https://www.w3schools.com/cssref/pr_text_text-decoration.asp).
+       * Follows CSS standard. <text-decoration-line> <text-decoration-color>
+       * <text-decoration-style>
        * 
* * string text_decoration = 6; @@ -4869,7 +4887,7 @@ com.google.cloud.documentai.v1.Document.Page.FormFieldOrBuilder getFormFieldsOrB * * *
-     * Image Quality Scores.
+     * Image quality scores.
      * 
* * .google.cloud.documentai.v1.Document.Page.ImageQualityScores image_quality_scores = 17; @@ -4882,7 +4900,7 @@ com.google.cloud.documentai.v1.Document.Page.FormFieldOrBuilder getFormFieldsOrB * * *
-     * Image Quality Scores.
+     * Image quality scores.
      * 
* * .google.cloud.documentai.v1.Document.Page.ImageQualityScores image_quality_scores = 17; @@ -4895,7 +4913,7 @@ com.google.cloud.documentai.v1.Document.Page.FormFieldOrBuilder getFormFieldsOrB * * *
-     * Image Quality Scores.
+     * Image quality scores.
      * 
* * .google.cloud.documentai.v1.Document.Page.ImageQualityScores image_quality_scores = 17; @@ -4915,7 +4933,7 @@ com.google.cloud.documentai.v1.Document.Page.FormFieldOrBuilder getFormFieldsOrB * * * @deprecated google.cloud.documentai.v1.Document.Page.provenance is deprecated. See - * google/cloud/documentai/v1/document.proto;l=488 + * google/cloud/documentai/v1/document.proto;l=548 * @return Whether the provenance field is set. */ @java.lang.Deprecated @@ -4931,7 +4949,7 @@ com.google.cloud.documentai.v1.Document.Page.FormFieldOrBuilder getFormFieldsOrB *
* * @deprecated google.cloud.documentai.v1.Document.Page.provenance is deprecated. See - * google/cloud/documentai/v1/document.proto;l=488 + * google/cloud/documentai/v1/document.proto;l=548 * @return The provenance. */ @java.lang.Deprecated @@ -5881,7 +5899,9 @@ public interface ImageOrBuilder * * *
-       * Encoding mime type for the image.
+       * Encoding [media type (MIME
+       * type)](https://www.iana.org/assignments/media-types/media-types.xhtml)
+       * for the image.
        * 
* * string mime_type = 2; @@ -5893,7 +5913,9 @@ public interface ImageOrBuilder * * *
-       * Encoding mime type for the image.
+       * Encoding [media type (MIME
+       * type)](https://www.iana.org/assignments/media-types/media-types.xhtml)
+       * for the image.
        * 
* * string mime_type = 2; @@ -5999,7 +6021,9 @@ public com.google.protobuf.ByteString getContent() { * * *
-       * Encoding mime type for the image.
+       * Encoding [media type (MIME
+       * type)](https://www.iana.org/assignments/media-types/media-types.xhtml)
+       * for the image.
        * 
* * string mime_type = 2; @@ -6022,7 +6046,9 @@ public java.lang.String getMimeType() { * * *
-       * Encoding mime type for the image.
+       * Encoding [media type (MIME
+       * type)](https://www.iana.org/assignments/media-types/media-types.xhtml)
+       * for the image.
        * 
* * string mime_type = 2; @@ -6551,7 +6577,9 @@ public Builder clearContent() { * * *
-         * Encoding mime type for the image.
+         * Encoding [media type (MIME
+         * type)](https://www.iana.org/assignments/media-types/media-types.xhtml)
+         * for the image.
          * 
* * string mime_type = 2; @@ -6573,7 +6601,9 @@ public java.lang.String getMimeType() { * * *
-         * Encoding mime type for the image.
+         * Encoding [media type (MIME
+         * type)](https://www.iana.org/assignments/media-types/media-types.xhtml)
+         * for the image.
          * 
* * string mime_type = 2; @@ -6595,7 +6625,9 @@ public com.google.protobuf.ByteString getMimeTypeBytes() { * * *
-         * Encoding mime type for the image.
+         * Encoding [media type (MIME
+         * type)](https://www.iana.org/assignments/media-types/media-types.xhtml)
+         * for the image.
          * 
* * string mime_type = 2; @@ -6616,7 +6648,9 @@ public Builder setMimeType(java.lang.String value) { * * *
-         * Encoding mime type for the image.
+         * Encoding [media type (MIME
+         * type)](https://www.iana.org/assignments/media-types/media-types.xhtml)
+         * for the image.
          * 
* * string mime_type = 2; @@ -6633,7 +6667,9 @@ public Builder clearMimeType() { * * *
-         * Encoding mime type for the image.
+         * Encoding [media type (MIME
+         * type)](https://www.iana.org/assignments/media-types/media-types.xhtml)
+         * for the image.
          * 
* * string mime_type = 2; @@ -9429,7 +9465,7 @@ public interface BlockOrBuilder *
* * @deprecated google.cloud.documentai.v1.Document.Page.Block.provenance is deprecated. See - * google/cloud/documentai/v1/document.proto;l=203 + * google/cloud/documentai/v1/document.proto;l=207 * @return Whether the provenance field is set. */ @java.lang.Deprecated @@ -9445,7 +9481,7 @@ public interface BlockOrBuilder *
* * @deprecated google.cloud.documentai.v1.Document.Page.Block.provenance is deprecated. See - * google/cloud/documentai/v1/document.proto;l=203 + * google/cloud/documentai/v1/document.proto;l=207 * @return The provenance. */ @java.lang.Deprecated @@ -9660,7 +9696,7 @@ public com.google.cloud.documentai.v1.Document.Page.DetectedLanguage getDetected *
* * @deprecated google.cloud.documentai.v1.Document.Page.Block.provenance is deprecated. See - * google/cloud/documentai/v1/document.proto;l=203 + * google/cloud/documentai/v1/document.proto;l=207 * @return Whether the provenance field is set. */ @java.lang.Override @@ -9679,7 +9715,7 @@ public boolean hasProvenance() { *
* * @deprecated google.cloud.documentai.v1.Document.Page.Block.provenance is deprecated. See - * google/cloud/documentai/v1/document.proto;l=203 + * google/cloud/documentai/v1/document.proto;l=207 * @return The provenance. */ @java.lang.Override @@ -10791,7 +10827,7 @@ public Builder removeDetectedLanguages(int index) { *
* * @deprecated google.cloud.documentai.v1.Document.Page.Block.provenance is deprecated. See - * google/cloud/documentai/v1/document.proto;l=203 + * google/cloud/documentai/v1/document.proto;l=207 * @return Whether the provenance field is set. */ @java.lang.Deprecated @@ -10809,7 +10845,7 @@ public boolean hasProvenance() { *
* * @deprecated google.cloud.documentai.v1.Document.Page.Block.provenance is deprecated. See - * google/cloud/documentai/v1/document.proto;l=203 + * google/cloud/documentai/v1/document.proto;l=207 * @return The provenance. */ @java.lang.Deprecated @@ -11164,7 +11200,7 @@ public interface ParagraphOrBuilder *
* * @deprecated google.cloud.documentai.v1.Document.Page.Paragraph.provenance is deprecated. - * See google/cloud/documentai/v1/document.proto;l=216 + * See google/cloud/documentai/v1/document.proto;l=220 * @return Whether the provenance field is set. */ @java.lang.Deprecated @@ -11180,7 +11216,7 @@ public interface ParagraphOrBuilder *
* * @deprecated google.cloud.documentai.v1.Document.Page.Paragraph.provenance is deprecated. - * See google/cloud/documentai/v1/document.proto;l=216 + * See google/cloud/documentai/v1/document.proto;l=220 * @return The provenance. */ @java.lang.Deprecated @@ -11394,7 +11430,7 @@ public com.google.cloud.documentai.v1.Document.Page.DetectedLanguage getDetected *
* * @deprecated google.cloud.documentai.v1.Document.Page.Paragraph.provenance is deprecated. - * See google/cloud/documentai/v1/document.proto;l=216 + * See google/cloud/documentai/v1/document.proto;l=220 * @return Whether the provenance field is set. */ @java.lang.Override @@ -11413,7 +11449,7 @@ public boolean hasProvenance() { *
* * @deprecated google.cloud.documentai.v1.Document.Page.Paragraph.provenance is deprecated. - * See google/cloud/documentai/v1/document.proto;l=216 + * See google/cloud/documentai/v1/document.proto;l=220 * @return The provenance. */ @java.lang.Override @@ -12524,7 +12560,7 @@ public Builder removeDetectedLanguages(int index) { *
* * @deprecated google.cloud.documentai.v1.Document.Page.Paragraph.provenance is deprecated. - * See google/cloud/documentai/v1/document.proto;l=216 + * See google/cloud/documentai/v1/document.proto;l=220 * @return Whether the provenance field is set. */ @java.lang.Deprecated @@ -12542,7 +12578,7 @@ public boolean hasProvenance() { *
* * @deprecated google.cloud.documentai.v1.Document.Page.Paragraph.provenance is deprecated. - * See google/cloud/documentai/v1/document.proto;l=216 + * See google/cloud/documentai/v1/document.proto;l=220 * @return The provenance. */ @java.lang.Deprecated @@ -12897,7 +12933,7 @@ public interface LineOrBuilder *
* * @deprecated google.cloud.documentai.v1.Document.Page.Line.provenance is deprecated. See - * google/cloud/documentai/v1/document.proto;l=230 + * google/cloud/documentai/v1/document.proto;l=234 * @return Whether the provenance field is set. */ @java.lang.Deprecated @@ -12913,7 +12949,7 @@ public interface LineOrBuilder *
* * @deprecated google.cloud.documentai.v1.Document.Page.Line.provenance is deprecated. See - * google/cloud/documentai/v1/document.proto;l=230 + * google/cloud/documentai/v1/document.proto;l=234 * @return The provenance. */ @java.lang.Deprecated @@ -13128,7 +13164,7 @@ public com.google.cloud.documentai.v1.Document.Page.DetectedLanguage getDetected *
* * @deprecated google.cloud.documentai.v1.Document.Page.Line.provenance is deprecated. See - * google/cloud/documentai/v1/document.proto;l=230 + * google/cloud/documentai/v1/document.proto;l=234 * @return Whether the provenance field is set. */ @java.lang.Override @@ -13147,7 +13183,7 @@ public boolean hasProvenance() { *
* * @deprecated google.cloud.documentai.v1.Document.Page.Line.provenance is deprecated. See - * google/cloud/documentai/v1/document.proto;l=230 + * google/cloud/documentai/v1/document.proto;l=234 * @return The provenance. */ @java.lang.Override @@ -14259,7 +14295,7 @@ public Builder removeDetectedLanguages(int index) { * * * @deprecated google.cloud.documentai.v1.Document.Page.Line.provenance is deprecated. See - * google/cloud/documentai/v1/document.proto;l=230 + * google/cloud/documentai/v1/document.proto;l=234 * @return Whether the provenance field is set. */ @java.lang.Deprecated @@ -14277,7 +14313,7 @@ public boolean hasProvenance() { * * * @deprecated google.cloud.documentai.v1.Document.Page.Line.provenance is deprecated. See - * google/cloud/documentai/v1/document.proto;l=230 + * google/cloud/documentai/v1/document.proto;l=234 * @return The provenance. */ @java.lang.Deprecated @@ -14674,7 +14710,7 @@ public interface TokenOrBuilder * * * @deprecated google.cloud.documentai.v1.Document.Page.Token.provenance is deprecated. See - * google/cloud/documentai/v1/document.proto;l=269 + * google/cloud/documentai/v1/document.proto;l=326 * @return Whether the provenance field is set. */ @java.lang.Deprecated @@ -14690,7 +14726,7 @@ public interface TokenOrBuilder * * * @deprecated google.cloud.documentai.v1.Document.Page.Token.provenance is deprecated. See - * google/cloud/documentai/v1/document.proto;l=269 + * google/cloud/documentai/v1/document.proto;l=326 * @return The provenance. */ @java.lang.Deprecated @@ -14707,6 +14743,41 @@ public interface TokenOrBuilder */ @java.lang.Deprecated com.google.cloud.documentai.v1.Document.ProvenanceOrBuilder getProvenanceOrBuilder(); + + /** + * + * + *
+       * Text style attributes.
+       * 
+ * + * .google.cloud.documentai.v1.Document.Page.Token.StyleInfo style_info = 5; + * + * @return Whether the styleInfo field is set. + */ + boolean hasStyleInfo(); + /** + * + * + *
+       * Text style attributes.
+       * 
+ * + * .google.cloud.documentai.v1.Document.Page.Token.StyleInfo style_info = 5; + * + * @return The styleInfo. + */ + com.google.cloud.documentai.v1.Document.Page.Token.StyleInfo getStyleInfo(); + /** + * + * + *
+       * Text style attributes.
+       * 
+ * + * .google.cloud.documentai.v1.Document.Page.Token.StyleInfo style_info = 5; + */ + com.google.cloud.documentai.v1.Document.Page.Token.StyleInfoOrBuilder getStyleInfoOrBuilder(); } /** * @@ -15312,182 +15383,2656 @@ public Builder clone() { } @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.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.Page.Token.DetectedBreak) { + return mergeFrom( + (com.google.cloud.documentai.v1.Document.Page.Token.DetectedBreak) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.documentai.v1.Document.Page.Token.DetectedBreak other) { + if (other + == com.google.cloud.documentai.v1.Document.Page.Token.DetectedBreak + .getDefaultInstance()) return this; + if (other.type_ != 0) { + setTypeValue(other.getTypeValue()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + type_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private int type_ = 0; + /** + * + * + *
+           * Detected break type.
+           * 
+ * + * .google.cloud.documentai.v1.Document.Page.Token.DetectedBreak.Type type = 1; + * + * + * @return The enum numeric value on the wire for type. + */ + @java.lang.Override + public int getTypeValue() { + return type_; + } + /** + * + * + *
+           * Detected break type.
+           * 
+ * + * .google.cloud.documentai.v1.Document.Page.Token.DetectedBreak.Type type = 1; + * + * + * @param value The enum numeric value on the wire for type to set. + * @return This builder for chaining. + */ + public Builder setTypeValue(int value) { + type_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+           * Detected break type.
+           * 
+ * + * .google.cloud.documentai.v1.Document.Page.Token.DetectedBreak.Type type = 1; + * + * + * @return The type. + */ + @java.lang.Override + public com.google.cloud.documentai.v1.Document.Page.Token.DetectedBreak.Type getType() { + com.google.cloud.documentai.v1.Document.Page.Token.DetectedBreak.Type result = + com.google.cloud.documentai.v1.Document.Page.Token.DetectedBreak.Type.forNumber( + type_); + return result == null + ? com.google.cloud.documentai.v1.Document.Page.Token.DetectedBreak.Type.UNRECOGNIZED + : result; + } + /** + * + * + *
+           * Detected break type.
+           * 
+ * + * .google.cloud.documentai.v1.Document.Page.Token.DetectedBreak.Type type = 1; + * + * + * @param value The type to set. + * @return This builder for chaining. + */ + public Builder setType( + com.google.cloud.documentai.v1.Document.Page.Token.DetectedBreak.Type value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + type_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+           * Detected break type.
+           * 
+ * + * .google.cloud.documentai.v1.Document.Page.Token.DetectedBreak.Type type = 1; + * + * + * @return This builder for chaining. + */ + public Builder clearType() { + bitField0_ = (bitField0_ & ~0x00000001); + type_ = 0; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.documentai.v1.Document.Page.Token.DetectedBreak) + } + + // @@protoc_insertion_point(class_scope:google.cloud.documentai.v1.Document.Page.Token.DetectedBreak) + private static final com.google.cloud.documentai.v1.Document.Page.Token.DetectedBreak + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.documentai.v1.Document.Page.Token.DetectedBreak(); + } + + public static com.google.cloud.documentai.v1.Document.Page.Token.DetectedBreak + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DetectedBreak parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.documentai.v1.Document.Page.Token.DetectedBreak + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface StyleInfoOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.documentai.v1.Document.Page.Token.StyleInfo) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+         * Font size in points (`1` point is `¹⁄₇₂` inches).
+         * 
+ * + * int32 font_size = 1; + * + * @return The fontSize. + */ + int getFontSize(); + + /** + * + * + *
+         * Font size in pixels, equal to _unrounded
+         * [font_size][google.cloud.documentai.v1.Document.Page.Token.StyleInfo.font_size]_
+         * * _resolution_ ÷ `72.0`.
+         * 
+ * + * double pixel_font_size = 2; + * + * @return The pixelFontSize. + */ + double getPixelFontSize(); + + /** + * + * + *
+         * Letter spacing in points.
+         * 
+ * + * double letter_spacing = 3; + * + * @return The letterSpacing. + */ + double getLetterSpacing(); + + /** + * + * + *
+         * Name or style of the font.
+         * 
+ * + * string font_type = 4; + * + * @return The fontType. + */ + java.lang.String getFontType(); + /** + * + * + *
+         * Name or style of the font.
+         * 
+ * + * string font_type = 4; + * + * @return The bytes for fontType. + */ + com.google.protobuf.ByteString getFontTypeBytes(); + + /** + * + * + *
+         * Whether the text is bold (equivalent to
+         * [font_weight][google.cloud.documentai.v1.Document.Page.Token.StyleInfo.font_weight]
+         * is at least `700`).
+         * 
+ * + * bool bold = 5; + * + * @return The bold. + */ + boolean getBold(); + + /** + * + * + *
+         * Whether the text is italic.
+         * 
+ * + * bool italic = 6; + * + * @return The italic. + */ + boolean getItalic(); + + /** + * + * + *
+         * Whether the text is underlined.
+         * 
+ * + * bool underlined = 7; + * + * @return The underlined. + */ + boolean getUnderlined(); + + /** + * + * + *
+         * Whether the text is strikethrough.
+         * 
+ * + * bool strikeout = 8; + * + * @return The strikeout. + */ + boolean getStrikeout(); + + /** + * + * + *
+         * Whether the text is a subscript.
+         * 
+ * + * bool subscript = 9; + * + * @return The subscript. + */ + boolean getSubscript(); + + /** + * + * + *
+         * Whether the text is a superscript.
+         * 
+ * + * bool superscript = 10; + * + * @return The superscript. + */ + boolean getSuperscript(); + + /** + * + * + *
+         * Whether the text is in small caps.
+         * 
+ * + * bool smallcaps = 11; + * + * @return The smallcaps. + */ + boolean getSmallcaps(); + + /** + * + * + *
+         * TrueType weight on a scale `100` (thin) to `1000` (ultra-heavy).
+         * Normal is `400`, bold is `700`.
+         * 
+ * + * int32 font_weight = 12; + * + * @return The fontWeight. + */ + int getFontWeight(); + + /** + * + * + *
+         * Whether the text is handwritten.
+         * 
+ * + * bool handwritten = 13; + * + * @return The handwritten. + */ + boolean getHandwritten(); + + /** + * + * + *
+         * Color of the text.
+         * 
+ * + * .google.type.Color text_color = 14; + * + * @return Whether the textColor field is set. + */ + boolean hasTextColor(); + /** + * + * + *
+         * Color of the text.
+         * 
+ * + * .google.type.Color text_color = 14; + * + * @return The textColor. + */ + com.google.type.Color getTextColor(); + /** + * + * + *
+         * Color of the text.
+         * 
+ * + * .google.type.Color text_color = 14; + */ + com.google.type.ColorOrBuilder getTextColorOrBuilder(); + + /** + * + * + *
+         * Color of the background.
+         * 
+ * + * .google.type.Color background_color = 15; + * + * @return Whether the backgroundColor field is set. + */ + boolean hasBackgroundColor(); + /** + * + * + *
+         * Color of the background.
+         * 
+ * + * .google.type.Color background_color = 15; + * + * @return The backgroundColor. + */ + com.google.type.Color getBackgroundColor(); + /** + * + * + *
+         * Color of the background.
+         * 
+ * + * .google.type.Color background_color = 15; + */ + com.google.type.ColorOrBuilder getBackgroundColorOrBuilder(); + } + /** + * + * + *
+       * Font and other text style attributes.
+       * 
+ * + * Protobuf type {@code google.cloud.documentai.v1.Document.Page.Token.StyleInfo} + */ + public static final class StyleInfo extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.documentai.v1.Document.Page.Token.StyleInfo) + StyleInfoOrBuilder { + private static final long serialVersionUID = 0L; + // Use StyleInfo.newBuilder() to construct. + private StyleInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private StyleInfo() { + fontType_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new StyleInfo(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.documentai.v1.DocumentProto + .internal_static_google_cloud_documentai_v1_Document_Page_Token_StyleInfo_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_Page_Token_StyleInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.documentai.v1.Document.Page.Token.StyleInfo.class, + com.google.cloud.documentai.v1.Document.Page.Token.StyleInfo.Builder.class); + } + + public static final int FONT_SIZE_FIELD_NUMBER = 1; + private int fontSize_ = 0; + /** + * + * + *
+         * Font size in points (`1` point is `¹⁄₇₂` inches).
+         * 
+ * + * int32 font_size = 1; + * + * @return The fontSize. + */ + @java.lang.Override + public int getFontSize() { + return fontSize_; + } + + public static final int PIXEL_FONT_SIZE_FIELD_NUMBER = 2; + private double pixelFontSize_ = 0D; + /** + * + * + *
+         * Font size in pixels, equal to _unrounded
+         * [font_size][google.cloud.documentai.v1.Document.Page.Token.StyleInfo.font_size]_
+         * * _resolution_ ÷ `72.0`.
+         * 
+ * + * double pixel_font_size = 2; + * + * @return The pixelFontSize. + */ + @java.lang.Override + public double getPixelFontSize() { + return pixelFontSize_; + } + + public static final int LETTER_SPACING_FIELD_NUMBER = 3; + private double letterSpacing_ = 0D; + /** + * + * + *
+         * Letter spacing in points.
+         * 
+ * + * double letter_spacing = 3; + * + * @return The letterSpacing. + */ + @java.lang.Override + public double getLetterSpacing() { + return letterSpacing_; + } + + public static final int FONT_TYPE_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object fontType_ = ""; + /** + * + * + *
+         * Name or style of the font.
+         * 
+ * + * string font_type = 4; + * + * @return The fontType. + */ + @java.lang.Override + public java.lang.String getFontType() { + java.lang.Object ref = fontType_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + fontType_ = s; + return s; + } + } + /** + * + * + *
+         * Name or style of the font.
+         * 
+ * + * string font_type = 4; + * + * @return The bytes for fontType. + */ + @java.lang.Override + public com.google.protobuf.ByteString getFontTypeBytes() { + java.lang.Object ref = fontType_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + fontType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int BOLD_FIELD_NUMBER = 5; + private boolean bold_ = false; + /** + * + * + *
+         * Whether the text is bold (equivalent to
+         * [font_weight][google.cloud.documentai.v1.Document.Page.Token.StyleInfo.font_weight]
+         * is at least `700`).
+         * 
+ * + * bool bold = 5; + * + * @return The bold. + */ + @java.lang.Override + public boolean getBold() { + return bold_; + } + + public static final int ITALIC_FIELD_NUMBER = 6; + private boolean italic_ = false; + /** + * + * + *
+         * Whether the text is italic.
+         * 
+ * + * bool italic = 6; + * + * @return The italic. + */ + @java.lang.Override + public boolean getItalic() { + return italic_; + } + + public static final int UNDERLINED_FIELD_NUMBER = 7; + private boolean underlined_ = false; + /** + * + * + *
+         * Whether the text is underlined.
+         * 
+ * + * bool underlined = 7; + * + * @return The underlined. + */ + @java.lang.Override + public boolean getUnderlined() { + return underlined_; + } + + public static final int STRIKEOUT_FIELD_NUMBER = 8; + private boolean strikeout_ = false; + /** + * + * + *
+         * Whether the text is strikethrough.
+         * 
+ * + * bool strikeout = 8; + * + * @return The strikeout. + */ + @java.lang.Override + public boolean getStrikeout() { + return strikeout_; + } + + public static final int SUBSCRIPT_FIELD_NUMBER = 9; + private boolean subscript_ = false; + /** + * + * + *
+         * Whether the text is a subscript.
+         * 
+ * + * bool subscript = 9; + * + * @return The subscript. + */ + @java.lang.Override + public boolean getSubscript() { + return subscript_; + } + + public static final int SUPERSCRIPT_FIELD_NUMBER = 10; + private boolean superscript_ = false; + /** + * + * + *
+         * Whether the text is a superscript.
+         * 
+ * + * bool superscript = 10; + * + * @return The superscript. + */ + @java.lang.Override + public boolean getSuperscript() { + return superscript_; + } + + public static final int SMALLCAPS_FIELD_NUMBER = 11; + private boolean smallcaps_ = false; + /** + * + * + *
+         * Whether the text is in small caps.
+         * 
+ * + * bool smallcaps = 11; + * + * @return The smallcaps. + */ + @java.lang.Override + public boolean getSmallcaps() { + return smallcaps_; + } + + public static final int FONT_WEIGHT_FIELD_NUMBER = 12; + private int fontWeight_ = 0; + /** + * + * + *
+         * TrueType weight on a scale `100` (thin) to `1000` (ultra-heavy).
+         * Normal is `400`, bold is `700`.
+         * 
+ * + * int32 font_weight = 12; + * + * @return The fontWeight. + */ + @java.lang.Override + public int getFontWeight() { + return fontWeight_; + } + + public static final int HANDWRITTEN_FIELD_NUMBER = 13; + private boolean handwritten_ = false; + /** + * + * + *
+         * Whether the text is handwritten.
+         * 
+ * + * bool handwritten = 13; + * + * @return The handwritten. + */ + @java.lang.Override + public boolean getHandwritten() { + return handwritten_; + } + + public static final int TEXT_COLOR_FIELD_NUMBER = 14; + private com.google.type.Color textColor_; + /** + * + * + *
+         * Color of the text.
+         * 
+ * + * .google.type.Color text_color = 14; + * + * @return Whether the textColor field is set. + */ + @java.lang.Override + public boolean hasTextColor() { + return textColor_ != null; + } + /** + * + * + *
+         * Color of the text.
+         * 
+ * + * .google.type.Color text_color = 14; + * + * @return The textColor. + */ + @java.lang.Override + public com.google.type.Color getTextColor() { + return textColor_ == null ? com.google.type.Color.getDefaultInstance() : textColor_; + } + /** + * + * + *
+         * Color of the text.
+         * 
+ * + * .google.type.Color text_color = 14; + */ + @java.lang.Override + public com.google.type.ColorOrBuilder getTextColorOrBuilder() { + return textColor_ == null ? com.google.type.Color.getDefaultInstance() : textColor_; + } + + public static final int BACKGROUND_COLOR_FIELD_NUMBER = 15; + private com.google.type.Color backgroundColor_; + /** + * + * + *
+         * Color of the background.
+         * 
+ * + * .google.type.Color background_color = 15; + * + * @return Whether the backgroundColor field is set. + */ + @java.lang.Override + public boolean hasBackgroundColor() { + return backgroundColor_ != null; + } + /** + * + * + *
+         * Color of the background.
+         * 
+ * + * .google.type.Color background_color = 15; + * + * @return The backgroundColor. + */ + @java.lang.Override + public com.google.type.Color getBackgroundColor() { + return backgroundColor_ == null + ? com.google.type.Color.getDefaultInstance() + : backgroundColor_; + } + /** + * + * + *
+         * Color of the background.
+         * 
+ * + * .google.type.Color background_color = 15; + */ + @java.lang.Override + public com.google.type.ColorOrBuilder getBackgroundColorOrBuilder() { + return backgroundColor_ == null + ? com.google.type.Color.getDefaultInstance() + : backgroundColor_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (fontSize_ != 0) { + output.writeInt32(1, fontSize_); + } + if (java.lang.Double.doubleToRawLongBits(pixelFontSize_) != 0) { + output.writeDouble(2, pixelFontSize_); + } + if (java.lang.Double.doubleToRawLongBits(letterSpacing_) != 0) { + output.writeDouble(3, letterSpacing_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(fontType_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, fontType_); + } + if (bold_ != false) { + output.writeBool(5, bold_); + } + if (italic_ != false) { + output.writeBool(6, italic_); + } + if (underlined_ != false) { + output.writeBool(7, underlined_); + } + if (strikeout_ != false) { + output.writeBool(8, strikeout_); + } + if (subscript_ != false) { + output.writeBool(9, subscript_); + } + if (superscript_ != false) { + output.writeBool(10, superscript_); + } + if (smallcaps_ != false) { + output.writeBool(11, smallcaps_); + } + if (fontWeight_ != 0) { + output.writeInt32(12, fontWeight_); + } + if (handwritten_ != false) { + output.writeBool(13, handwritten_); + } + if (textColor_ != null) { + output.writeMessage(14, getTextColor()); + } + if (backgroundColor_ != null) { + output.writeMessage(15, getBackgroundColor()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (fontSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(1, fontSize_); + } + if (java.lang.Double.doubleToRawLongBits(pixelFontSize_) != 0) { + size += com.google.protobuf.CodedOutputStream.computeDoubleSize(2, pixelFontSize_); + } + if (java.lang.Double.doubleToRawLongBits(letterSpacing_) != 0) { + size += com.google.protobuf.CodedOutputStream.computeDoubleSize(3, letterSpacing_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(fontType_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, fontType_); + } + if (bold_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(5, bold_); + } + if (italic_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(6, italic_); + } + if (underlined_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(7, underlined_); + } + if (strikeout_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(8, strikeout_); + } + if (subscript_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(9, subscript_); + } + if (superscript_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(10, superscript_); + } + if (smallcaps_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(11, smallcaps_); + } + if (fontWeight_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(12, fontWeight_); + } + if (handwritten_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(13, handwritten_); + } + if (textColor_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(14, getTextColor()); + } + if (backgroundColor_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(15, getBackgroundColor()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.documentai.v1.Document.Page.Token.StyleInfo)) { + return super.equals(obj); + } + com.google.cloud.documentai.v1.Document.Page.Token.StyleInfo other = + (com.google.cloud.documentai.v1.Document.Page.Token.StyleInfo) obj; + + if (getFontSize() != other.getFontSize()) return false; + if (java.lang.Double.doubleToLongBits(getPixelFontSize()) + != java.lang.Double.doubleToLongBits(other.getPixelFontSize())) return false; + if (java.lang.Double.doubleToLongBits(getLetterSpacing()) + != java.lang.Double.doubleToLongBits(other.getLetterSpacing())) return false; + if (!getFontType().equals(other.getFontType())) return false; + if (getBold() != other.getBold()) return false; + if (getItalic() != other.getItalic()) return false; + if (getUnderlined() != other.getUnderlined()) return false; + if (getStrikeout() != other.getStrikeout()) return false; + if (getSubscript() != other.getSubscript()) return false; + if (getSuperscript() != other.getSuperscript()) return false; + if (getSmallcaps() != other.getSmallcaps()) return false; + if (getFontWeight() != other.getFontWeight()) return false; + if (getHandwritten() != other.getHandwritten()) return false; + if (hasTextColor() != other.hasTextColor()) return false; + if (hasTextColor()) { + if (!getTextColor().equals(other.getTextColor())) return false; + } + if (hasBackgroundColor() != other.hasBackgroundColor()) return false; + if (hasBackgroundColor()) { + if (!getBackgroundColor().equals(other.getBackgroundColor())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + FONT_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getFontSize(); + hash = (37 * hash) + PIXEL_FONT_SIZE_FIELD_NUMBER; + hash = + (53 * hash) + + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getPixelFontSize())); + hash = (37 * hash) + LETTER_SPACING_FIELD_NUMBER; + hash = + (53 * hash) + + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getLetterSpacing())); + hash = (37 * hash) + FONT_TYPE_FIELD_NUMBER; + hash = (53 * hash) + getFontType().hashCode(); + hash = (37 * hash) + BOLD_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getBold()); + hash = (37 * hash) + ITALIC_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getItalic()); + hash = (37 * hash) + UNDERLINED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getUnderlined()); + hash = (37 * hash) + STRIKEOUT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getStrikeout()); + hash = (37 * hash) + SUBSCRIPT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getSubscript()); + hash = (37 * hash) + SUPERSCRIPT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getSuperscript()); + hash = (37 * hash) + SMALLCAPS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getSmallcaps()); + hash = (37 * hash) + FONT_WEIGHT_FIELD_NUMBER; + hash = (53 * hash) + getFontWeight(); + hash = (37 * hash) + HANDWRITTEN_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getHandwritten()); + if (hasTextColor()) { + hash = (37 * hash) + TEXT_COLOR_FIELD_NUMBER; + hash = (53 * hash) + getTextColor().hashCode(); + } + if (hasBackgroundColor()) { + hash = (37 * hash) + BACKGROUND_COLOR_FIELD_NUMBER; + hash = (53 * hash) + getBackgroundColor().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.documentai.v1.Document.Page.Token.StyleInfo parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.documentai.v1.Document.Page.Token.StyleInfo 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.Document.Page.Token.StyleInfo parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.documentai.v1.Document.Page.Token.StyleInfo parseFrom( + com.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.Page.Token.StyleInfo parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.documentai.v1.Document.Page.Token.StyleInfo 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.Document.Page.Token.StyleInfo 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.Page.Token.StyleInfo 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.Document.Page.Token.StyleInfo + 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.Page.Token.StyleInfo + 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.Document.Page.Token.StyleInfo 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.Document.Page.Token.StyleInfo 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 static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.documentai.v1.Document.Page.Token.StyleInfo prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+         * Font and other text style attributes.
+         * 
+ * + * Protobuf type {@code google.cloud.documentai.v1.Document.Page.Token.StyleInfo} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.documentai.v1.Document.Page.Token.StyleInfo) + com.google.cloud.documentai.v1.Document.Page.Token.StyleInfoOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.documentai.v1.DocumentProto + .internal_static_google_cloud_documentai_v1_Document_Page_Token_StyleInfo_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_Page_Token_StyleInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.documentai.v1.Document.Page.Token.StyleInfo.class, + com.google.cloud.documentai.v1.Document.Page.Token.StyleInfo.Builder.class); + } + + // Construct using + // com.google.cloud.documentai.v1.Document.Page.Token.StyleInfo.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + fontSize_ = 0; + pixelFontSize_ = 0D; + letterSpacing_ = 0D; + fontType_ = ""; + bold_ = false; + italic_ = false; + underlined_ = false; + strikeout_ = false; + subscript_ = false; + superscript_ = false; + smallcaps_ = false; + fontWeight_ = 0; + handwritten_ = false; + textColor_ = null; + if (textColorBuilder_ != null) { + textColorBuilder_.dispose(); + textColorBuilder_ = null; + } + backgroundColor_ = null; + if (backgroundColorBuilder_ != null) { + backgroundColorBuilder_.dispose(); + backgroundColorBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.documentai.v1.DocumentProto + .internal_static_google_cloud_documentai_v1_Document_Page_Token_StyleInfo_descriptor; + } + + @java.lang.Override + public com.google.cloud.documentai.v1.Document.Page.Token.StyleInfo + getDefaultInstanceForType() { + return com.google.cloud.documentai.v1.Document.Page.Token.StyleInfo + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.documentai.v1.Document.Page.Token.StyleInfo build() { + com.google.cloud.documentai.v1.Document.Page.Token.StyleInfo result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.documentai.v1.Document.Page.Token.StyleInfo buildPartial() { + com.google.cloud.documentai.v1.Document.Page.Token.StyleInfo result = + new com.google.cloud.documentai.v1.Document.Page.Token.StyleInfo(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.documentai.v1.Document.Page.Token.StyleInfo result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.fontSize_ = fontSize_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.pixelFontSize_ = pixelFontSize_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.letterSpacing_ = letterSpacing_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.fontType_ = fontType_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.bold_ = bold_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.italic_ = italic_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.underlined_ = underlined_; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.strikeout_ = strikeout_; + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.subscript_ = subscript_; + } + if (((from_bitField0_ & 0x00000200) != 0)) { + result.superscript_ = superscript_; + } + if (((from_bitField0_ & 0x00000400) != 0)) { + result.smallcaps_ = smallcaps_; + } + if (((from_bitField0_ & 0x00000800) != 0)) { + result.fontWeight_ = fontWeight_; + } + if (((from_bitField0_ & 0x00001000) != 0)) { + result.handwritten_ = handwritten_; + } + if (((from_bitField0_ & 0x00002000) != 0)) { + result.textColor_ = + textColorBuilder_ == null ? textColor_ : textColorBuilder_.build(); + } + if (((from_bitField0_ & 0x00004000) != 0)) { + result.backgroundColor_ = + backgroundColorBuilder_ == null + ? backgroundColor_ + : backgroundColorBuilder_.build(); + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.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.Page.Token.StyleInfo) { + return mergeFrom( + (com.google.cloud.documentai.v1.Document.Page.Token.StyleInfo) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.documentai.v1.Document.Page.Token.StyleInfo other) { + if (other + == com.google.cloud.documentai.v1.Document.Page.Token.StyleInfo + .getDefaultInstance()) return this; + if (other.getFontSize() != 0) { + setFontSize(other.getFontSize()); + } + if (other.getPixelFontSize() != 0D) { + setPixelFontSize(other.getPixelFontSize()); + } + if (other.getLetterSpacing() != 0D) { + setLetterSpacing(other.getLetterSpacing()); + } + if (!other.getFontType().isEmpty()) { + fontType_ = other.fontType_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (other.getBold() != false) { + setBold(other.getBold()); + } + if (other.getItalic() != false) { + setItalic(other.getItalic()); + } + if (other.getUnderlined() != false) { + setUnderlined(other.getUnderlined()); + } + if (other.getStrikeout() != false) { + setStrikeout(other.getStrikeout()); + } + if (other.getSubscript() != false) { + setSubscript(other.getSubscript()); + } + if (other.getSuperscript() != false) { + setSuperscript(other.getSuperscript()); + } + if (other.getSmallcaps() != false) { + setSmallcaps(other.getSmallcaps()); + } + if (other.getFontWeight() != 0) { + setFontWeight(other.getFontWeight()); + } + if (other.getHandwritten() != false) { + setHandwritten(other.getHandwritten()); + } + if (other.hasTextColor()) { + mergeTextColor(other.getTextColor()); + } + if (other.hasBackgroundColor()) { + mergeBackgroundColor(other.getBackgroundColor()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + fontSize_ = input.readInt32(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 17: + { + pixelFontSize_ = input.readDouble(); + bitField0_ |= 0x00000002; + break; + } // case 17 + case 25: + { + letterSpacing_ = input.readDouble(); + bitField0_ |= 0x00000004; + break; + } // case 25 + case 34: + { + fontType_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 40: + { + bold_ = input.readBool(); + bitField0_ |= 0x00000010; + break; + } // case 40 + case 48: + { + italic_ = input.readBool(); + bitField0_ |= 0x00000020; + break; + } // case 48 + case 56: + { + underlined_ = input.readBool(); + bitField0_ |= 0x00000040; + break; + } // case 56 + case 64: + { + strikeout_ = input.readBool(); + bitField0_ |= 0x00000080; + break; + } // case 64 + case 72: + { + subscript_ = input.readBool(); + bitField0_ |= 0x00000100; + break; + } // case 72 + case 80: + { + superscript_ = input.readBool(); + bitField0_ |= 0x00000200; + break; + } // case 80 + case 88: + { + smallcaps_ = input.readBool(); + bitField0_ |= 0x00000400; + break; + } // case 88 + case 96: + { + fontWeight_ = input.readInt32(); + bitField0_ |= 0x00000800; + break; + } // case 96 + case 104: + { + handwritten_ = input.readBool(); + bitField0_ |= 0x00001000; + break; + } // case 104 + case 114: + { + input.readMessage(getTextColorFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00002000; + break; + } // case 114 + case 122: + { + input.readMessage( + getBackgroundColorFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00004000; + break; + } // case 122 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private int fontSize_; + /** + * + * + *
+           * Font size in points (`1` point is `¹⁄₇₂` inches).
+           * 
+ * + * int32 font_size = 1; + * + * @return The fontSize. + */ + @java.lang.Override + public int getFontSize() { + return fontSize_; + } + /** + * + * + *
+           * Font size in points (`1` point is `¹⁄₇₂` inches).
+           * 
+ * + * int32 font_size = 1; + * + * @param value The fontSize to set. + * @return This builder for chaining. + */ + public Builder setFontSize(int value) { + + fontSize_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+           * Font size in points (`1` point is `¹⁄₇₂` inches).
+           * 
+ * + * int32 font_size = 1; + * + * @return This builder for chaining. + */ + public Builder clearFontSize() { + bitField0_ = (bitField0_ & ~0x00000001); + fontSize_ = 0; + onChanged(); + return this; + } + + private double pixelFontSize_; + /** + * + * + *
+           * Font size in pixels, equal to _unrounded
+           * [font_size][google.cloud.documentai.v1.Document.Page.Token.StyleInfo.font_size]_
+           * * _resolution_ ÷ `72.0`.
+           * 
+ * + * double pixel_font_size = 2; + * + * @return The pixelFontSize. + */ + @java.lang.Override + public double getPixelFontSize() { + return pixelFontSize_; + } + /** + * + * + *
+           * Font size in pixels, equal to _unrounded
+           * [font_size][google.cloud.documentai.v1.Document.Page.Token.StyleInfo.font_size]_
+           * * _resolution_ ÷ `72.0`.
+           * 
+ * + * double pixel_font_size = 2; + * + * @param value The pixelFontSize to set. + * @return This builder for chaining. + */ + public Builder setPixelFontSize(double value) { + + pixelFontSize_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+           * Font size in pixels, equal to _unrounded
+           * [font_size][google.cloud.documentai.v1.Document.Page.Token.StyleInfo.font_size]_
+           * * _resolution_ ÷ `72.0`.
+           * 
+ * + * double pixel_font_size = 2; + * + * @return This builder for chaining. + */ + public Builder clearPixelFontSize() { + bitField0_ = (bitField0_ & ~0x00000002); + pixelFontSize_ = 0D; + onChanged(); + return this; + } + + private double letterSpacing_; + /** + * + * + *
+           * Letter spacing in points.
+           * 
+ * + * double letter_spacing = 3; + * + * @return The letterSpacing. + */ + @java.lang.Override + public double getLetterSpacing() { + return letterSpacing_; + } + /** + * + * + *
+           * Letter spacing in points.
+           * 
+ * + * double letter_spacing = 3; + * + * @param value The letterSpacing to set. + * @return This builder for chaining. + */ + public Builder setLetterSpacing(double value) { + + letterSpacing_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+           * Letter spacing in points.
+           * 
+ * + * double letter_spacing = 3; + * + * @return This builder for chaining. + */ + public Builder clearLetterSpacing() { + bitField0_ = (bitField0_ & ~0x00000004); + letterSpacing_ = 0D; + onChanged(); + return this; + } + + private java.lang.Object fontType_ = ""; + /** + * + * + *
+           * Name or style of the font.
+           * 
+ * + * string font_type = 4; + * + * @return The fontType. + */ + public java.lang.String getFontType() { + java.lang.Object ref = fontType_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + fontType_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+           * Name or style of the font.
+           * 
+ * + * string font_type = 4; + * + * @return The bytes for fontType. + */ + public com.google.protobuf.ByteString getFontTypeBytes() { + java.lang.Object ref = fontType_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + fontType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+           * Name or style of the font.
+           * 
+ * + * string font_type = 4; + * + * @param value The fontType to set. + * @return This builder for chaining. + */ + public Builder setFontType(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + fontType_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+           * Name or style of the font.
+           * 
+ * + * string font_type = 4; + * + * @return This builder for chaining. + */ + public Builder clearFontType() { + fontType_ = getDefaultInstance().getFontType(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + * + * + *
+           * Name or style of the font.
+           * 
+ * + * string font_type = 4; + * + * @param value The bytes for fontType to set. + * @return This builder for chaining. + */ + public Builder setFontTypeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + fontType_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private boolean bold_; + /** + * + * + *
+           * Whether the text is bold (equivalent to
+           * [font_weight][google.cloud.documentai.v1.Document.Page.Token.StyleInfo.font_weight]
+           * is at least `700`).
+           * 
+ * + * bool bold = 5; + * + * @return The bold. + */ + @java.lang.Override + public boolean getBold() { + return bold_; + } + /** + * + * + *
+           * Whether the text is bold (equivalent to
+           * [font_weight][google.cloud.documentai.v1.Document.Page.Token.StyleInfo.font_weight]
+           * is at least `700`).
+           * 
+ * + * bool bold = 5; + * + * @param value The bold to set. + * @return This builder for chaining. + */ + public Builder setBold(boolean value) { + + bold_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
+           * Whether the text is bold (equivalent to
+           * [font_weight][google.cloud.documentai.v1.Document.Page.Token.StyleInfo.font_weight]
+           * is at least `700`).
+           * 
+ * + * bool bold = 5; + * + * @return This builder for chaining. + */ + public Builder clearBold() { + bitField0_ = (bitField0_ & ~0x00000010); + bold_ = false; + onChanged(); + return this; + } + + private boolean italic_; + /** + * + * + *
+           * Whether the text is italic.
+           * 
+ * + * bool italic = 6; + * + * @return The italic. + */ + @java.lang.Override + public boolean getItalic() { + return italic_; + } + /** + * + * + *
+           * Whether the text is italic.
+           * 
+ * + * bool italic = 6; + * + * @param value The italic to set. + * @return This builder for chaining. + */ + public Builder setItalic(boolean value) { + + italic_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + * + * + *
+           * Whether the text is italic.
+           * 
+ * + * bool italic = 6; + * + * @return This builder for chaining. + */ + public Builder clearItalic() { + bitField0_ = (bitField0_ & ~0x00000020); + italic_ = false; + onChanged(); + return this; + } + + private boolean underlined_; + /** + * + * + *
+           * Whether the text is underlined.
+           * 
+ * + * bool underlined = 7; + * + * @return The underlined. + */ + @java.lang.Override + public boolean getUnderlined() { + return underlined_; + } + /** + * + * + *
+           * Whether the text is underlined.
+           * 
+ * + * bool underlined = 7; + * + * @param value The underlined to set. + * @return This builder for chaining. + */ + public Builder setUnderlined(boolean value) { + + underlined_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + /** + * + * + *
+           * Whether the text is underlined.
+           * 
+ * + * bool underlined = 7; + * + * @return This builder for chaining. + */ + public Builder clearUnderlined() { + bitField0_ = (bitField0_ & ~0x00000040); + underlined_ = false; + onChanged(); + return this; + } + + private boolean strikeout_; + /** + * + * + *
+           * Whether the text is strikethrough.
+           * 
+ * + * bool strikeout = 8; + * + * @return The strikeout. + */ + @java.lang.Override + public boolean getStrikeout() { + return strikeout_; + } + /** + * + * + *
+           * Whether the text is strikethrough.
+           * 
+ * + * bool strikeout = 8; + * + * @param value The strikeout to set. + * @return This builder for chaining. + */ + public Builder setStrikeout(boolean value) { + + strikeout_ = value; + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + /** + * + * + *
+           * Whether the text is strikethrough.
+           * 
+ * + * bool strikeout = 8; + * + * @return This builder for chaining. + */ + public Builder clearStrikeout() { + bitField0_ = (bitField0_ & ~0x00000080); + strikeout_ = false; + onChanged(); + return this; + } + + private boolean subscript_; + /** + * + * + *
+           * Whether the text is a subscript.
+           * 
+ * + * bool subscript = 9; + * + * @return The subscript. + */ + @java.lang.Override + public boolean getSubscript() { + return subscript_; + } + /** + * + * + *
+           * Whether the text is a subscript.
+           * 
+ * + * bool subscript = 9; + * + * @param value The subscript to set. + * @return This builder for chaining. + */ + public Builder setSubscript(boolean value) { + + subscript_ = value; + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + /** + * + * + *
+           * Whether the text is a subscript.
+           * 
+ * + * bool subscript = 9; + * + * @return This builder for chaining. + */ + public Builder clearSubscript() { + bitField0_ = (bitField0_ & ~0x00000100); + subscript_ = false; + onChanged(); + return this; + } + + private boolean superscript_; + /** + * + * + *
+           * Whether the text is a superscript.
+           * 
+ * + * bool superscript = 10; + * + * @return The superscript. + */ + @java.lang.Override + public boolean getSuperscript() { + return superscript_; + } + /** + * + * + *
+           * Whether the text is a superscript.
+           * 
+ * + * bool superscript = 10; + * + * @param value The superscript to set. + * @return This builder for chaining. + */ + public Builder setSuperscript(boolean value) { + + superscript_ = value; + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + /** + * + * + *
+           * Whether the text is a superscript.
+           * 
+ * + * bool superscript = 10; + * + * @return This builder for chaining. + */ + public Builder clearSuperscript() { + bitField0_ = (bitField0_ & ~0x00000200); + superscript_ = false; + onChanged(); + return this; + } + + private boolean smallcaps_; + /** + * + * + *
+           * Whether the text is in small caps.
+           * 
+ * + * bool smallcaps = 11; + * + * @return The smallcaps. + */ + @java.lang.Override + public boolean getSmallcaps() { + return smallcaps_; + } + /** + * + * + *
+           * Whether the text is in small caps.
+           * 
+ * + * bool smallcaps = 11; + * + * @param value The smallcaps to set. + * @return This builder for chaining. + */ + public Builder setSmallcaps(boolean value) { + + smallcaps_ = value; + bitField0_ |= 0x00000400; + onChanged(); + return this; + } + /** + * + * + *
+           * Whether the text is in small caps.
+           * 
+ * + * bool smallcaps = 11; + * + * @return This builder for chaining. + */ + public Builder clearSmallcaps() { + bitField0_ = (bitField0_ & ~0x00000400); + smallcaps_ = false; + onChanged(); + return this; + } + + private int fontWeight_; + /** + * + * + *
+           * TrueType weight on a scale `100` (thin) to `1000` (ultra-heavy).
+           * Normal is `400`, bold is `700`.
+           * 
+ * + * int32 font_weight = 12; + * + * @return The fontWeight. + */ + @java.lang.Override + public int getFontWeight() { + return fontWeight_; + } + /** + * + * + *
+           * TrueType weight on a scale `100` (thin) to `1000` (ultra-heavy).
+           * Normal is `400`, bold is `700`.
+           * 
+ * + * int32 font_weight = 12; + * + * @param value The fontWeight to set. + * @return This builder for chaining. + */ + public Builder setFontWeight(int value) { + + fontWeight_ = value; + bitField0_ |= 0x00000800; + onChanged(); + return this; + } + /** + * + * + *
+           * TrueType weight on a scale `100` (thin) to `1000` (ultra-heavy).
+           * Normal is `400`, bold is `700`.
+           * 
+ * + * int32 font_weight = 12; + * + * @return This builder for chaining. + */ + public Builder clearFontWeight() { + bitField0_ = (bitField0_ & ~0x00000800); + fontWeight_ = 0; + onChanged(); + return this; + } + + private boolean handwritten_; + /** + * + * + *
+           * Whether the text is handwritten.
+           * 
+ * + * bool handwritten = 13; + * + * @return The handwritten. + */ + @java.lang.Override + public boolean getHandwritten() { + return handwritten_; } + /** + * + * + *
+           * Whether the text is handwritten.
+           * 
+ * + * bool handwritten = 13; + * + * @param value The handwritten to set. + * @return This builder for chaining. + */ + public Builder setHandwritten(boolean value) { - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); + handwritten_ = value; + bitField0_ |= 0x00001000; + onChanged(); + return this; } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); + /** + * + * + *
+           * Whether the text is handwritten.
+           * 
+ * + * bool handwritten = 13; + * + * @return This builder for chaining. + */ + public Builder clearHandwritten() { + bitField0_ = (bitField0_ & ~0x00001000); + handwritten_ = false; + onChanged(); + return this; } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { - return super.setRepeatedField(field, index, value); + private com.google.type.Color textColor_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Color, + com.google.type.Color.Builder, + com.google.type.ColorOrBuilder> + textColorBuilder_; + /** + * + * + *
+           * Color of the text.
+           * 
+ * + * .google.type.Color text_color = 14; + * + * @return Whether the textColor field is set. + */ + public boolean hasTextColor() { + return ((bitField0_ & 0x00002000) != 0); } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); + /** + * + * + *
+           * Color of the text.
+           * 
+ * + * .google.type.Color text_color = 14; + * + * @return The textColor. + */ + public com.google.type.Color getTextColor() { + if (textColorBuilder_ == null) { + return textColor_ == null ? com.google.type.Color.getDefaultInstance() : textColor_; + } else { + return textColorBuilder_.getMessage(); + } } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.documentai.v1.Document.Page.Token.DetectedBreak) { - return mergeFrom( - (com.google.cloud.documentai.v1.Document.Page.Token.DetectedBreak) other); + /** + * + * + *
+           * Color of the text.
+           * 
+ * + * .google.type.Color text_color = 14; + */ + public Builder setTextColor(com.google.type.Color value) { + if (textColorBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + textColor_ = value; } else { - super.mergeFrom(other); - return this; + textColorBuilder_.setMessage(value); } + bitField0_ |= 0x00002000; + onChanged(); + return this; } - - public Builder mergeFrom( - com.google.cloud.documentai.v1.Document.Page.Token.DetectedBreak other) { - if (other - == com.google.cloud.documentai.v1.Document.Page.Token.DetectedBreak - .getDefaultInstance()) return this; - if (other.type_ != 0) { - setTypeValue(other.getTypeValue()); + /** + * + * + *
+           * Color of the text.
+           * 
+ * + * .google.type.Color text_color = 14; + */ + public Builder setTextColor(com.google.type.Color.Builder builderForValue) { + if (textColorBuilder_ == null) { + textColor_ = builderForValue.build(); + } else { + textColorBuilder_.setMessage(builderForValue.build()); } - this.mergeUnknownFields(other.getUnknownFields()); + bitField0_ |= 0x00002000; onChanged(); return this; } - - @java.lang.Override - public final boolean isInitialized() { - return true; + /** + * + * + *
+           * Color of the text.
+           * 
+ * + * .google.type.Color text_color = 14; + */ + public Builder mergeTextColor(com.google.type.Color value) { + if (textColorBuilder_ == null) { + if (((bitField0_ & 0x00002000) != 0) + && textColor_ != null + && textColor_ != com.google.type.Color.getDefaultInstance()) { + getTextColorBuilder().mergeFrom(value); + } else { + textColor_ = value; + } + } else { + textColorBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00002000; + onChanged(); + return this; } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); + /** + * + * + *
+           * Color of the text.
+           * 
+ * + * .google.type.Color text_color = 14; + */ + public Builder clearTextColor() { + bitField0_ = (bitField0_ & ~0x00002000); + textColor_ = null; + if (textColorBuilder_ != null) { + textColorBuilder_.dispose(); + textColorBuilder_ = null; } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: - { - type_ = input.readEnum(); - bitField0_ |= 0x00000001; - break; - } // case 8 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally + onChanged(); return this; } - - private int bitField0_; - - private int type_ = 0; /** * * *
-           * Detected break type.
+           * Color of the text.
            * 
* - * .google.cloud.documentai.v1.Document.Page.Token.DetectedBreak.Type type = 1; - * + * .google.type.Color text_color = 14; + */ + public com.google.type.Color.Builder getTextColorBuilder() { + bitField0_ |= 0x00002000; + onChanged(); + return getTextColorFieldBuilder().getBuilder(); + } + /** * - * @return The enum numeric value on the wire for type. + * + *
+           * Color of the text.
+           * 
+ * + * .google.type.Color text_color = 14; */ - @java.lang.Override - public int getTypeValue() { - return type_; + public com.google.type.ColorOrBuilder getTextColorOrBuilder() { + if (textColorBuilder_ != null) { + return textColorBuilder_.getMessageOrBuilder(); + } else { + return textColor_ == null ? com.google.type.Color.getDefaultInstance() : textColor_; + } } /** * * *
-           * Detected break type.
+           * Color of the text.
            * 
* - * .google.cloud.documentai.v1.Document.Page.Token.DetectedBreak.Type type = 1; - * + * .google.type.Color text_color = 14; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Color, + com.google.type.Color.Builder, + com.google.type.ColorOrBuilder> + getTextColorFieldBuilder() { + if (textColorBuilder_ == null) { + textColorBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Color, + com.google.type.Color.Builder, + com.google.type.ColorOrBuilder>( + getTextColor(), getParentForChildren(), isClean()); + textColor_ = null; + } + return textColorBuilder_; + } + + 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_; + /** * - * @param value The enum numeric value on the wire for type to set. - * @return This builder for chaining. + * + *
+           * Color of the background.
+           * 
+ * + * .google.type.Color background_color = 15; + * + * @return Whether the backgroundColor field is set. */ - public Builder setTypeValue(int value) { - type_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; + public boolean hasBackgroundColor() { + return ((bitField0_ & 0x00004000) != 0); } /** * * *
-           * Detected break type.
+           * Color of the background.
            * 
* - * .google.cloud.documentai.v1.Document.Page.Token.DetectedBreak.Type type = 1; - * + * .google.type.Color background_color = 15; * - * @return The type. + * @return The backgroundColor. */ - @java.lang.Override - public com.google.cloud.documentai.v1.Document.Page.Token.DetectedBreak.Type getType() { - com.google.cloud.documentai.v1.Document.Page.Token.DetectedBreak.Type result = - com.google.cloud.documentai.v1.Document.Page.Token.DetectedBreak.Type.forNumber( - type_); - return result == null - ? com.google.cloud.documentai.v1.Document.Page.Token.DetectedBreak.Type.UNRECOGNIZED - : result; + public com.google.type.Color getBackgroundColor() { + if (backgroundColorBuilder_ == null) { + return backgroundColor_ == null + ? com.google.type.Color.getDefaultInstance() + : backgroundColor_; + } else { + return backgroundColorBuilder_.getMessage(); + } } /** * * *
-           * Detected break type.
+           * Color of the background.
            * 
* - * .google.cloud.documentai.v1.Document.Page.Token.DetectedBreak.Type type = 1; - * + * .google.type.Color background_color = 15; + */ + public Builder setBackgroundColor(com.google.type.Color value) { + if (backgroundColorBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + backgroundColor_ = value; + } else { + backgroundColorBuilder_.setMessage(value); + } + bitField0_ |= 0x00004000; + onChanged(); + return this; + } + /** * - * @param value The type to set. - * @return This builder for chaining. + * + *
+           * Color of the background.
+           * 
+ * + * .google.type.Color background_color = 15; */ - public Builder setType( - com.google.cloud.documentai.v1.Document.Page.Token.DetectedBreak.Type value) { - if (value == null) { - throw new NullPointerException(); + public Builder setBackgroundColor(com.google.type.Color.Builder builderForValue) { + if (backgroundColorBuilder_ == null) { + backgroundColor_ = builderForValue.build(); + } else { + backgroundColorBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000001; - type_ = value.getNumber(); + bitField0_ |= 0x00004000; onChanged(); return this; } @@ -15495,20 +18040,103 @@ public Builder setType( * * *
-           * Detected break type.
+           * Color of the background.
            * 
* - * .google.cloud.documentai.v1.Document.Page.Token.DetectedBreak.Type type = 1; - * + * .google.type.Color background_color = 15; + */ + public Builder mergeBackgroundColor(com.google.type.Color value) { + if (backgroundColorBuilder_ == null) { + if (((bitField0_ & 0x00004000) != 0) + && backgroundColor_ != null + && backgroundColor_ != com.google.type.Color.getDefaultInstance()) { + getBackgroundColorBuilder().mergeFrom(value); + } else { + backgroundColor_ = value; + } + } else { + backgroundColorBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00004000; + onChanged(); + return this; + } + /** * - * @return This builder for chaining. + * + *
+           * Color of the background.
+           * 
+ * + * .google.type.Color background_color = 15; */ - public Builder clearType() { - bitField0_ = (bitField0_ & ~0x00000001); - type_ = 0; + public Builder clearBackgroundColor() { + bitField0_ = (bitField0_ & ~0x00004000); + backgroundColor_ = null; + if (backgroundColorBuilder_ != null) { + backgroundColorBuilder_.dispose(); + backgroundColorBuilder_ = null; + } onChanged(); return this; } + /** + * + * + *
+           * Color of the background.
+           * 
+ * + * .google.type.Color background_color = 15; + */ + public com.google.type.Color.Builder getBackgroundColorBuilder() { + bitField0_ |= 0x00004000; + onChanged(); + return getBackgroundColorFieldBuilder().getBuilder(); + } + /** + * + * + *
+           * Color of the background.
+           * 
+ * + * .google.type.Color background_color = 15; + */ + public com.google.type.ColorOrBuilder getBackgroundColorOrBuilder() { + if (backgroundColorBuilder_ != null) { + return backgroundColorBuilder_.getMessageOrBuilder(); + } else { + return backgroundColor_ == null + ? com.google.type.Color.getDefaultInstance() + : backgroundColor_; + } + } + /** + * + * + *
+           * Color of the background.
+           * 
+ * + * .google.type.Color background_color = 15; + */ + private com.google.protobuf.SingleFieldBuilderV3< + 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()); + backgroundColor_ = null; + } + return backgroundColorBuilder_; + } @java.lang.Override public final Builder setUnknownFields( @@ -15522,26 +18150,26 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.documentai.v1.Document.Page.Token.DetectedBreak) + // @@protoc_insertion_point(builder_scope:google.cloud.documentai.v1.Document.Page.Token.StyleInfo) } - // @@protoc_insertion_point(class_scope:google.cloud.documentai.v1.Document.Page.Token.DetectedBreak) - private static final com.google.cloud.documentai.v1.Document.Page.Token.DetectedBreak + // @@protoc_insertion_point(class_scope:google.cloud.documentai.v1.Document.Page.Token.StyleInfo) + private static final com.google.cloud.documentai.v1.Document.Page.Token.StyleInfo DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new com.google.cloud.documentai.v1.Document.Page.Token.DetectedBreak(); + DEFAULT_INSTANCE = new com.google.cloud.documentai.v1.Document.Page.Token.StyleInfo(); } - public static com.google.cloud.documentai.v1.Document.Page.Token.DetectedBreak + public static com.google.cloud.documentai.v1.Document.Page.Token.StyleInfo getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { @java.lang.Override - public DetectedBreak parsePartialFrom( + public StyleInfo parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { @@ -15561,17 +18189,17 @@ public DetectedBreak parsePartialFrom( } }; - public static com.google.protobuf.Parser parser() { + public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override - public com.google.protobuf.Parser getParserForType() { + public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override - public com.google.cloud.documentai.v1.Document.Page.Token.DetectedBreak + public com.google.cloud.documentai.v1.Document.Page.Token.StyleInfo getDefaultInstanceForType() { return DEFAULT_INSTANCE; } @@ -15786,7 +18414,7 @@ public com.google.cloud.documentai.v1.Document.Page.DetectedLanguage getDetected * * * @deprecated google.cloud.documentai.v1.Document.Page.Token.provenance is deprecated. See - * google/cloud/documentai/v1/document.proto;l=269 + * google/cloud/documentai/v1/document.proto;l=326 * @return Whether the provenance field is set. */ @java.lang.Override @@ -15805,7 +18433,7 @@ public boolean hasProvenance() { * * * @deprecated google.cloud.documentai.v1.Document.Page.Token.provenance is deprecated. See - * google/cloud/documentai/v1/document.proto;l=269 + * google/cloud/documentai/v1/document.proto;l=326 * @return The provenance. */ @java.lang.Override @@ -15833,6 +18461,57 @@ public com.google.cloud.documentai.v1.Document.ProvenanceOrBuilder getProvenance : provenance_; } + public static final int STYLE_INFO_FIELD_NUMBER = 5; + private com.google.cloud.documentai.v1.Document.Page.Token.StyleInfo styleInfo_; + /** + * + * + *
+       * Text style attributes.
+       * 
+ * + * .google.cloud.documentai.v1.Document.Page.Token.StyleInfo style_info = 5; + * + * @return Whether the styleInfo field is set. + */ + @java.lang.Override + public boolean hasStyleInfo() { + return styleInfo_ != null; + } + /** + * + * + *
+       * Text style attributes.
+       * 
+ * + * .google.cloud.documentai.v1.Document.Page.Token.StyleInfo style_info = 5; + * + * @return The styleInfo. + */ + @java.lang.Override + public com.google.cloud.documentai.v1.Document.Page.Token.StyleInfo getStyleInfo() { + return styleInfo_ == null + ? com.google.cloud.documentai.v1.Document.Page.Token.StyleInfo.getDefaultInstance() + : styleInfo_; + } + /** + * + * + *
+       * Text style attributes.
+       * 
+ * + * .google.cloud.documentai.v1.Document.Page.Token.StyleInfo style_info = 5; + */ + @java.lang.Override + public com.google.cloud.documentai.v1.Document.Page.Token.StyleInfoOrBuilder + getStyleInfoOrBuilder() { + return styleInfo_ == null + ? com.google.cloud.documentai.v1.Document.Page.Token.StyleInfo.getDefaultInstance() + : styleInfo_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -15859,6 +18538,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (provenance_ != null) { output.writeMessage(4, getProvenance()); } + if (styleInfo_ != null) { + output.writeMessage(5, getStyleInfo()); + } getUnknownFields().writeTo(output); } @@ -15882,6 +18564,9 @@ public int getSerializedSize() { if (provenance_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getProvenance()); } + if (styleInfo_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getStyleInfo()); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -15911,6 +18596,10 @@ public boolean equals(final java.lang.Object obj) { if (hasProvenance()) { if (!getProvenance().equals(other.getProvenance())) return false; } + if (hasStyleInfo() != other.hasStyleInfo()) return false; + if (hasStyleInfo()) { + if (!getStyleInfo().equals(other.getStyleInfo())) return false; + } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -15938,6 +18627,10 @@ public int hashCode() { hash = (37 * hash) + PROVENANCE_FIELD_NUMBER; hash = (53 * hash) + getProvenance().hashCode(); } + if (hasStyleInfo()) { + hash = (37 * hash) + STYLE_INFO_FIELD_NUMBER; + hash = (53 * hash) + getStyleInfo().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -16102,6 +18795,11 @@ public Builder clear() { provenanceBuilder_.dispose(); provenanceBuilder_ = null; } + styleInfo_ = null; + if (styleInfoBuilder_ != null) { + styleInfoBuilder_.dispose(); + styleInfoBuilder_ = null; + } return this; } @@ -16163,6 +18861,9 @@ private void buildPartial0(com.google.cloud.documentai.v1.Document.Page.Token re result.provenance_ = provenanceBuilder_ == null ? provenance_ : provenanceBuilder_.build(); } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.styleInfo_ = styleInfoBuilder_ == null ? styleInfo_ : styleInfoBuilder_.build(); + } } @java.lang.Override @@ -16249,6 +18950,9 @@ public Builder mergeFrom(com.google.cloud.documentai.v1.Document.Page.Token othe if (other.hasProvenance()) { mergeProvenance(other.getProvenance()); } + if (other.hasStyleInfo()) { + mergeStyleInfo(other.getStyleInfo()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -16308,6 +19012,12 @@ public Builder mergeFrom( bitField0_ |= 0x00000008; break; } // case 34 + case 42: + { + input.readMessage(getStyleInfoFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 42 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -17160,7 +19870,7 @@ public Builder removeDetectedLanguages(int index) { * * * @deprecated google.cloud.documentai.v1.Document.Page.Token.provenance is deprecated. See - * google/cloud/documentai/v1/document.proto;l=269 + * google/cloud/documentai/v1/document.proto;l=326 * @return Whether the provenance field is set. */ @java.lang.Deprecated @@ -17178,7 +19888,7 @@ public boolean hasProvenance() { * * * @deprecated google.cloud.documentai.v1.Document.Page.Token.provenance is deprecated. See - * google/cloud/documentai/v1/document.proto;l=269 + * google/cloud/documentai/v1/document.proto;l=326 * @return The provenance. */ @java.lang.Deprecated @@ -17350,6 +20060,196 @@ public com.google.cloud.documentai.v1.Document.Provenance.Builder getProvenanceB return provenanceBuilder_; } + private com.google.cloud.documentai.v1.Document.Page.Token.StyleInfo styleInfo_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.documentai.v1.Document.Page.Token.StyleInfo, + com.google.cloud.documentai.v1.Document.Page.Token.StyleInfo.Builder, + com.google.cloud.documentai.v1.Document.Page.Token.StyleInfoOrBuilder> + styleInfoBuilder_; + /** + * + * + *
+         * Text style attributes.
+         * 
+ * + * .google.cloud.documentai.v1.Document.Page.Token.StyleInfo style_info = 5; + * + * @return Whether the styleInfo field is set. + */ + public boolean hasStyleInfo() { + return ((bitField0_ & 0x00000010) != 0); + } + /** + * + * + *
+         * Text style attributes.
+         * 
+ * + * .google.cloud.documentai.v1.Document.Page.Token.StyleInfo style_info = 5; + * + * @return The styleInfo. + */ + public com.google.cloud.documentai.v1.Document.Page.Token.StyleInfo getStyleInfo() { + if (styleInfoBuilder_ == null) { + return styleInfo_ == null + ? com.google.cloud.documentai.v1.Document.Page.Token.StyleInfo.getDefaultInstance() + : styleInfo_; + } else { + return styleInfoBuilder_.getMessage(); + } + } + /** + * + * + *
+         * Text style attributes.
+         * 
+ * + * .google.cloud.documentai.v1.Document.Page.Token.StyleInfo style_info = 5; + */ + public Builder setStyleInfo( + com.google.cloud.documentai.v1.Document.Page.Token.StyleInfo value) { + if (styleInfoBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + styleInfo_ = value; + } else { + styleInfoBuilder_.setMessage(value); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
+         * Text style attributes.
+         * 
+ * + * .google.cloud.documentai.v1.Document.Page.Token.StyleInfo style_info = 5; + */ + public Builder setStyleInfo( + com.google.cloud.documentai.v1.Document.Page.Token.StyleInfo.Builder builderForValue) { + if (styleInfoBuilder_ == null) { + styleInfo_ = builderForValue.build(); + } else { + styleInfoBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
+         * Text style attributes.
+         * 
+ * + * .google.cloud.documentai.v1.Document.Page.Token.StyleInfo style_info = 5; + */ + public Builder mergeStyleInfo( + com.google.cloud.documentai.v1.Document.Page.Token.StyleInfo value) { + if (styleInfoBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0) + && styleInfo_ != null + && styleInfo_ + != com.google.cloud.documentai.v1.Document.Page.Token.StyleInfo + .getDefaultInstance()) { + getStyleInfoBuilder().mergeFrom(value); + } else { + styleInfo_ = value; + } + } else { + styleInfoBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
+         * Text style attributes.
+         * 
+ * + * .google.cloud.documentai.v1.Document.Page.Token.StyleInfo style_info = 5; + */ + public Builder clearStyleInfo() { + bitField0_ = (bitField0_ & ~0x00000010); + styleInfo_ = null; + if (styleInfoBuilder_ != null) { + styleInfoBuilder_.dispose(); + styleInfoBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+         * Text style attributes.
+         * 
+ * + * .google.cloud.documentai.v1.Document.Page.Token.StyleInfo style_info = 5; + */ + public com.google.cloud.documentai.v1.Document.Page.Token.StyleInfo.Builder + getStyleInfoBuilder() { + bitField0_ |= 0x00000010; + onChanged(); + return getStyleInfoFieldBuilder().getBuilder(); + } + /** + * + * + *
+         * Text style attributes.
+         * 
+ * + * .google.cloud.documentai.v1.Document.Page.Token.StyleInfo style_info = 5; + */ + public com.google.cloud.documentai.v1.Document.Page.Token.StyleInfoOrBuilder + getStyleInfoOrBuilder() { + if (styleInfoBuilder_ != null) { + return styleInfoBuilder_.getMessageOrBuilder(); + } else { + return styleInfo_ == null + ? com.google.cloud.documentai.v1.Document.Page.Token.StyleInfo.getDefaultInstance() + : styleInfo_; + } + } + /** + * + * + *
+         * Text style attributes.
+         * 
+ * + * .google.cloud.documentai.v1.Document.Page.Token.StyleInfo style_info = 5; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.documentai.v1.Document.Page.Token.StyleInfo, + com.google.cloud.documentai.v1.Document.Page.Token.StyleInfo.Builder, + com.google.cloud.documentai.v1.Document.Page.Token.StyleInfoOrBuilder> + getStyleInfoFieldBuilder() { + if (styleInfoBuilder_ == null) { + styleInfoBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.documentai.v1.Document.Page.Token.StyleInfo, + com.google.cloud.documentai.v1.Document.Page.Token.StyleInfo.Builder, + com.google.cloud.documentai.v1.Document.Page.Token.StyleInfoOrBuilder>( + getStyleInfo(), getParentForChildren(), isClean()); + styleInfo_ = null; + } + return styleInfoBuilder_; + } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -20648,10 +23548,14 @@ com.google.cloud.documentai.v1.Document.Page.Table.TableRowOrBuilder getBodyRows * The history of this table. *
* - * .google.cloud.documentai.v1.Document.Provenance provenance = 5; + * .google.cloud.documentai.v1.Document.Provenance provenance = 5 [deprecated = true]; + * * + * @deprecated google.cloud.documentai.v1.Document.Page.Table.provenance is deprecated. See + * google/cloud/documentai/v1/document.proto;l=395 * @return Whether the provenance field is set. */ + @java.lang.Deprecated boolean hasProvenance(); /** * @@ -20660,10 +23564,14 @@ com.google.cloud.documentai.v1.Document.Page.Table.TableRowOrBuilder getBodyRows * The history of this table. *
* - * .google.cloud.documentai.v1.Document.Provenance provenance = 5; + * .google.cloud.documentai.v1.Document.Provenance provenance = 5 [deprecated = true]; + * * + * @deprecated google.cloud.documentai.v1.Document.Page.Table.provenance is deprecated. See + * google/cloud/documentai/v1/document.proto;l=395 * @return The provenance. */ + @java.lang.Deprecated com.google.cloud.documentai.v1.Document.Provenance getProvenance(); /** * @@ -20672,8 +23580,10 @@ com.google.cloud.documentai.v1.Document.Page.Table.TableRowOrBuilder getBodyRows * The history of this table. *
* - * .google.cloud.documentai.v1.Document.Provenance provenance = 5; + * .google.cloud.documentai.v1.Document.Provenance provenance = 5 [deprecated = true]; + * */ + @java.lang.Deprecated com.google.cloud.documentai.v1.Document.ProvenanceOrBuilder getProvenanceOrBuilder(); } /** @@ -23701,11 +26611,15 @@ public com.google.cloud.documentai.v1.Document.Page.DetectedLanguage getDetected * The history of this table. *
* - * .google.cloud.documentai.v1.Document.Provenance provenance = 5; + * .google.cloud.documentai.v1.Document.Provenance provenance = 5 [deprecated = true]; + * * + * @deprecated google.cloud.documentai.v1.Document.Page.Table.provenance is deprecated. See + * google/cloud/documentai/v1/document.proto;l=395 * @return Whether the provenance field is set. */ @java.lang.Override + @java.lang.Deprecated public boolean hasProvenance() { return provenance_ != null; } @@ -23716,11 +26630,15 @@ public boolean hasProvenance() { * The history of this table. *
* - * .google.cloud.documentai.v1.Document.Provenance provenance = 5; + * .google.cloud.documentai.v1.Document.Provenance provenance = 5 [deprecated = true]; + * * + * @deprecated google.cloud.documentai.v1.Document.Page.Table.provenance is deprecated. See + * google/cloud/documentai/v1/document.proto;l=395 * @return The provenance. */ @java.lang.Override + @java.lang.Deprecated public com.google.cloud.documentai.v1.Document.Provenance getProvenance() { return provenance_ == null ? com.google.cloud.documentai.v1.Document.Provenance.getDefaultInstance() @@ -23733,9 +26651,11 @@ public com.google.cloud.documentai.v1.Document.Provenance getProvenance() { * The history of this table. *
* - * .google.cloud.documentai.v1.Document.Provenance provenance = 5; + * .google.cloud.documentai.v1.Document.Provenance provenance = 5 [deprecated = true]; + * */ @java.lang.Override + @java.lang.Deprecated public com.google.cloud.documentai.v1.Document.ProvenanceOrBuilder getProvenanceOrBuilder() { return provenance_ == null ? com.google.cloud.documentai.v1.Document.Provenance.getDefaultInstance() @@ -25733,10 +28653,14 @@ public Builder removeDetectedLanguages(int index) { * The history of this table. *
* - * .google.cloud.documentai.v1.Document.Provenance provenance = 5; + * .google.cloud.documentai.v1.Document.Provenance provenance = 5 [deprecated = true]; + * * + * @deprecated google.cloud.documentai.v1.Document.Page.Table.provenance is deprecated. See + * google/cloud/documentai/v1/document.proto;l=395 * @return Whether the provenance field is set. */ + @java.lang.Deprecated public boolean hasProvenance() { return ((bitField0_ & 0x00000010) != 0); } @@ -25747,10 +28671,14 @@ public boolean hasProvenance() { * The history of this table. *
* - * .google.cloud.documentai.v1.Document.Provenance provenance = 5; + * .google.cloud.documentai.v1.Document.Provenance provenance = 5 [deprecated = true]; + * * + * @deprecated google.cloud.documentai.v1.Document.Page.Table.provenance is deprecated. See + * google/cloud/documentai/v1/document.proto;l=395 * @return The provenance. */ + @java.lang.Deprecated public com.google.cloud.documentai.v1.Document.Provenance getProvenance() { if (provenanceBuilder_ == null) { return provenance_ == null @@ -25767,8 +28695,10 @@ public com.google.cloud.documentai.v1.Document.Provenance getProvenance() { * The history of this table. *
* - * .google.cloud.documentai.v1.Document.Provenance provenance = 5; + * .google.cloud.documentai.v1.Document.Provenance provenance = 5 [deprecated = true]; + * */ + @java.lang.Deprecated public Builder setProvenance(com.google.cloud.documentai.v1.Document.Provenance value) { if (provenanceBuilder_ == null) { if (value == null) { @@ -25789,8 +28719,10 @@ public Builder setProvenance(com.google.cloud.documentai.v1.Document.Provenance * The history of this table. *
* - * .google.cloud.documentai.v1.Document.Provenance provenance = 5; + * .google.cloud.documentai.v1.Document.Provenance provenance = 5 [deprecated = true]; + * */ + @java.lang.Deprecated public Builder setProvenance( com.google.cloud.documentai.v1.Document.Provenance.Builder builderForValue) { if (provenanceBuilder_ == null) { @@ -25809,8 +28741,10 @@ public Builder setProvenance( * The history of this table. *
* - * .google.cloud.documentai.v1.Document.Provenance provenance = 5; + * .google.cloud.documentai.v1.Document.Provenance provenance = 5 [deprecated = true]; + * */ + @java.lang.Deprecated public Builder mergeProvenance(com.google.cloud.documentai.v1.Document.Provenance value) { if (provenanceBuilder_ == null) { if (((bitField0_ & 0x00000010) != 0) @@ -25835,8 +28769,10 @@ public Builder mergeProvenance(com.google.cloud.documentai.v1.Document.Provenanc * The history of this table. *
* - * .google.cloud.documentai.v1.Document.Provenance provenance = 5; + * .google.cloud.documentai.v1.Document.Provenance provenance = 5 [deprecated = true]; + * */ + @java.lang.Deprecated public Builder clearProvenance() { bitField0_ = (bitField0_ & ~0x00000010); provenance_ = null; @@ -25854,8 +28790,10 @@ public Builder clearProvenance() { * The history of this table. * * - * .google.cloud.documentai.v1.Document.Provenance provenance = 5; + * .google.cloud.documentai.v1.Document.Provenance provenance = 5 [deprecated = true]; + * */ + @java.lang.Deprecated public com.google.cloud.documentai.v1.Document.Provenance.Builder getProvenanceBuilder() { bitField0_ |= 0x00000010; onChanged(); @@ -25868,8 +28806,10 @@ public com.google.cloud.documentai.v1.Document.Provenance.Builder getProvenanceB * The history of this table. * * - * .google.cloud.documentai.v1.Document.Provenance provenance = 5; + * .google.cloud.documentai.v1.Document.Provenance provenance = 5 [deprecated = true]; + * */ + @java.lang.Deprecated public com.google.cloud.documentai.v1.Document.ProvenanceOrBuilder getProvenanceOrBuilder() { if (provenanceBuilder_ != null) { @@ -25887,7 +28827,8 @@ public com.google.cloud.documentai.v1.Document.Provenance.Builder getProvenanceB * The history of this table. * * - * .google.cloud.documentai.v1.Document.Provenance provenance = 5; + * .google.cloud.documentai.v1.Document.Provenance provenance = 5 [deprecated = true]; + * */ private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.documentai.v1.Document.Provenance, @@ -30417,9 +33358,9 @@ public interface DetectedLanguageOrBuilder * * *
-       * The BCP-47 language code, such as `en-US` or `sr-Latn`. For more
-       * information, see
-       * https://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
+       * The [BCP-47 language
+       * code](https://www.unicode.org/reports/tr35/#Unicode_locale_identifier),
+       * such as `en-US` or `sr-Latn`.
        * 
* * string language_code = 1; @@ -30431,9 +33372,9 @@ public interface DetectedLanguageOrBuilder * * *
-       * The BCP-47 language code, such as `en-US` or `sr-Latn`. For more
-       * information, see
-       * https://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
+       * The [BCP-47 language
+       * code](https://www.unicode.org/reports/tr35/#Unicode_locale_identifier),
+       * such as `en-US` or `sr-Latn`.
        * 
* * string language_code = 1; @@ -30507,9 +33448,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-       * The BCP-47 language code, such as `en-US` or `sr-Latn`. For more
-       * information, see
-       * https://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
+       * The [BCP-47 language
+       * code](https://www.unicode.org/reports/tr35/#Unicode_locale_identifier),
+       * such as `en-US` or `sr-Latn`.
        * 
* * string language_code = 1; @@ -30532,9 +33473,9 @@ public java.lang.String getLanguageCode() { * * *
-       * The BCP-47 language code, such as `en-US` or `sr-Latn`. For more
-       * information, see
-       * https://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
+       * The [BCP-47 language
+       * code](https://www.unicode.org/reports/tr35/#Unicode_locale_identifier),
+       * such as `en-US` or `sr-Latn`.
        * 
* * string language_code = 1; @@ -30954,9 +33895,9 @@ public Builder mergeFrom( * * *
-         * The BCP-47 language code, such as `en-US` or `sr-Latn`. For more
-         * information, see
-         * https://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
+         * The [BCP-47 language
+         * code](https://www.unicode.org/reports/tr35/#Unicode_locale_identifier),
+         * such as `en-US` or `sr-Latn`.
          * 
* * string language_code = 1; @@ -30978,9 +33919,9 @@ public java.lang.String getLanguageCode() { * * *
-         * The BCP-47 language code, such as `en-US` or `sr-Latn`. For more
-         * information, see
-         * https://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
+         * The [BCP-47 language
+         * code](https://www.unicode.org/reports/tr35/#Unicode_locale_identifier),
+         * such as `en-US` or `sr-Latn`.
          * 
* * string language_code = 1; @@ -31002,9 +33943,9 @@ public com.google.protobuf.ByteString getLanguageCodeBytes() { * * *
-         * The BCP-47 language code, such as `en-US` or `sr-Latn`. For more
-         * information, see
-         * https://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
+         * The [BCP-47 language
+         * code](https://www.unicode.org/reports/tr35/#Unicode_locale_identifier),
+         * such as `en-US` or `sr-Latn`.
          * 
* * string language_code = 1; @@ -31025,9 +33966,9 @@ public Builder setLanguageCode(java.lang.String value) { * * *
-         * The BCP-47 language code, such as `en-US` or `sr-Latn`. For more
-         * information, see
-         * https://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
+         * The [BCP-47 language
+         * code](https://www.unicode.org/reports/tr35/#Unicode_locale_identifier),
+         * such as `en-US` or `sr-Latn`.
          * 
* * string language_code = 1; @@ -31044,9 +33985,9 @@ public Builder clearLanguageCode() { * * *
-         * The BCP-47 language code, such as `en-US` or `sr-Latn`. For more
-         * information, see
-         * https://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
+         * The [BCP-47 language
+         * code](https://www.unicode.org/reports/tr35/#Unicode_locale_identifier),
+         * such as `en-US` or `sr-Latn`.
          * 
* * string language_code = 1; @@ -31194,7 +34135,7 @@ public interface ImageQualityScoresOrBuilder * * *
-       * The overall quality score. Range `[0, 1]` where 1 is perfect quality.
+       * The overall quality score. Range `[0, 1]` where `1` is perfect quality.
        * 
* * float quality_score = 1; @@ -31275,7 +34216,7 @@ public interface ImageQualityScoresOrBuilder * * *
-     * Image Quality Scores for the page image
+     * Image quality scores for the page image.
      * 
* * Protobuf type {@code google.cloud.documentai.v1.Document.Page.ImageQualityScores} @@ -31367,8 +34308,8 @@ public interface DetectedDefectOrBuilder * * *
-         * Confidence of detected defect. Range `[0, 1]` where 1 indicates
-         * strong confidence of that the defect exists.
+         * Confidence of detected defect. Range `[0, 1]` where `1` indicates
+         * strong confidence that the defect exists.
          * 
* * float confidence = 2; @@ -31499,8 +34440,8 @@ public com.google.protobuf.ByteString getTypeBytes() { * * *
-         * Confidence of detected defect. Range `[0, 1]` where 1 indicates
-         * strong confidence of that the defect exists.
+         * Confidence of detected defect. Range `[0, 1]` where `1` indicates
+         * strong confidence that the defect exists.
          * 
* * float confidence = 2; @@ -32072,8 +35013,8 @@ public Builder setTypeBytes(com.google.protobuf.ByteString value) { * * *
-           * Confidence of detected defect. Range `[0, 1]` where 1 indicates
-           * strong confidence of that the defect exists.
+           * Confidence of detected defect. Range `[0, 1]` where `1` indicates
+           * strong confidence that the defect exists.
            * 
* * float confidence = 2; @@ -32088,8 +35029,8 @@ public float getConfidence() { * * *
-           * Confidence of detected defect. Range `[0, 1]` where 1 indicates
-           * strong confidence of that the defect exists.
+           * Confidence of detected defect. Range `[0, 1]` where `1` indicates
+           * strong confidence that the defect exists.
            * 
* * float confidence = 2; @@ -32108,8 +35049,8 @@ public Builder setConfidence(float value) { * * *
-           * Confidence of detected defect. Range `[0, 1]` where 1 indicates
-           * strong confidence of that the defect exists.
+           * Confidence of detected defect. Range `[0, 1]` where `1` indicates
+           * strong confidence that the defect exists.
            * 
* * float confidence = 2; @@ -32198,7 +35139,7 @@ public com.google.protobuf.Parser getParserForType() { * * *
-       * The overall quality score. Range `[0, 1]` where 1 is perfect quality.
+       * The overall quality score. Range `[0, 1]` where `1` is perfect quality.
        * 
* * float quality_score = 1; @@ -32480,7 +35421,7 @@ protected Builder newBuilderForType( * * *
-       * Image Quality Scores for the page image
+       * Image quality scores for the page image.
        * 
* * Protobuf type {@code google.cloud.documentai.v1.Document.Page.ImageQualityScores} @@ -32736,7 +35677,7 @@ public Builder mergeFrom( * * *
-         * The overall quality score. Range `[0, 1]` where 1 is perfect quality.
+         * The overall quality score. Range `[0, 1]` where `1` is perfect quality.
          * 
* * float quality_score = 1; @@ -32751,7 +35692,7 @@ public float getQualityScore() { * * *
-         * The overall quality score. Range `[0, 1]` where 1 is perfect quality.
+         * The overall quality score. Range `[0, 1]` where `1` is perfect quality.
          * 
* * float quality_score = 1; @@ -32770,7 +35711,7 @@ public Builder setQualityScore(float value) { * * *
-         * The overall quality score. Range `[0, 1]` where 1 is perfect quality.
+         * The overall quality score. Range `[0, 1]` where `1` is perfect quality.
          * 
* * float quality_score = 1; @@ -34328,7 +37269,7 @@ public com.google.cloud.documentai.v1.Document.Page.DetectedBarcode getDetectedB * * *
-     * Image Quality Scores.
+     * Image quality scores.
      * 
* * .google.cloud.documentai.v1.Document.Page.ImageQualityScores image_quality_scores = 17; @@ -34344,7 +37285,7 @@ public boolean hasImageQualityScores() { * * *
-     * Image Quality Scores.
+     * Image quality scores.
      * 
* * .google.cloud.documentai.v1.Document.Page.ImageQualityScores image_quality_scores = 17; @@ -34362,7 +37303,7 @@ public com.google.cloud.documentai.v1.Document.Page.ImageQualityScores getImageQ * * *
-     * Image Quality Scores.
+     * Image quality scores.
      * 
* * .google.cloud.documentai.v1.Document.Page.ImageQualityScores image_quality_scores = 17; @@ -34389,7 +37330,7 @@ public com.google.cloud.documentai.v1.Document.Page.ImageQualityScores getImageQ * * * @deprecated google.cloud.documentai.v1.Document.Page.provenance is deprecated. See - * google/cloud/documentai/v1/document.proto;l=488 + * google/cloud/documentai/v1/document.proto;l=548 * @return Whether the provenance field is set. */ @java.lang.Override @@ -34408,7 +37349,7 @@ public boolean hasProvenance() { *
* * @deprecated google.cloud.documentai.v1.Document.Page.provenance is deprecated. See - * google/cloud/documentai/v1/document.proto;l=488 + * google/cloud/documentai/v1/document.proto;l=548 * @return The provenance. */ @java.lang.Override @@ -40527,7 +43468,7 @@ public Builder removeDetectedBarcodes(int index) { * * *
-       * Image Quality Scores.
+       * Image quality scores.
        * 
* * @@ -40543,7 +43484,7 @@ public boolean hasImageQualityScores() { * * *
-       * Image Quality Scores.
+       * Image quality scores.
        * 
* * @@ -40566,7 +43507,7 @@ public boolean hasImageQualityScores() { * * *
-       * Image Quality Scores.
+       * Image quality scores.
        * 
* * @@ -40591,7 +43532,7 @@ public Builder setImageQualityScores( * * *
-       * Image Quality Scores.
+       * Image quality scores.
        * 
* * @@ -40613,7 +43554,7 @@ public Builder setImageQualityScores( * * *
-       * Image Quality Scores.
+       * Image quality scores.
        * 
* * @@ -40643,7 +43584,7 @@ public Builder mergeImageQualityScores( * * *
-       * Image Quality Scores.
+       * Image quality scores.
        * 
* * @@ -40664,7 +43605,7 @@ public Builder clearImageQualityScores() { * * *
-       * Image Quality Scores.
+       * Image quality scores.
        * 
* * @@ -40681,7 +43622,7 @@ public Builder clearImageQualityScores() { * * *
-       * Image Quality Scores.
+       * Image quality scores.
        * 
* * @@ -40702,7 +43643,7 @@ public Builder clearImageQualityScores() { * * *
-       * Image Quality Scores.
+       * Image quality scores.
        * 
* * @@ -40743,7 +43684,7 @@ public Builder clearImageQualityScores() { * * * @deprecated google.cloud.documentai.v1.Document.Page.provenance is deprecated. See - * google/cloud/documentai/v1/document.proto;l=488 + * google/cloud/documentai/v1/document.proto;l=548 * @return Whether the provenance field is set. */ @java.lang.Deprecated @@ -40761,7 +43702,7 @@ public boolean hasProvenance() { *
* * @deprecated google.cloud.documentai.v1.Document.Page.provenance is deprecated. See - * google/cloud/documentai/v1/document.proto;l=488 + * google/cloud/documentai/v1/document.proto;l=548 * @return The provenance. */ @java.lang.Deprecated @@ -50462,7 +53403,7 @@ public interface PageRefOrBuilder *
* * @deprecated google.cloud.documentai.v1.Document.PageAnchor.PageRef.layout_id is deprecated. - * See google/cloud/documentai/v1/document.proto;l=692 + * See google/cloud/documentai/v1/document.proto;l=752 * @return The layoutId. */ @java.lang.Deprecated @@ -50480,7 +53421,7 @@ public interface PageRefOrBuilder *
* * @deprecated google.cloud.documentai.v1.Document.PageAnchor.PageRef.layout_id is deprecated. - * See google/cloud/documentai/v1/document.proto;l=692 + * See google/cloud/documentai/v1/document.proto;l=752 * @return The bytes for layoutId. */ @java.lang.Deprecated @@ -50969,7 +53910,7 @@ public com.google.cloud.documentai.v1.Document.PageAnchor.PageRef.LayoutType get *
* * @deprecated google.cloud.documentai.v1.Document.PageAnchor.PageRef.layout_id is deprecated. - * See google/cloud/documentai/v1/document.proto;l=692 + * See google/cloud/documentai/v1/document.proto;l=752 * @return The layoutId. */ @java.lang.Override @@ -50998,7 +53939,7 @@ public java.lang.String getLayoutId() { *
* * @deprecated google.cloud.documentai.v1.Document.PageAnchor.PageRef.layout_id is deprecated. - * See google/cloud/documentai/v1/document.proto;l=692 + * See google/cloud/documentai/v1/document.proto;l=752 * @return The bytes for layoutId. */ @java.lang.Override @@ -51741,7 +54682,7 @@ public Builder clearLayoutType() { *
* * @deprecated google.cloud.documentai.v1.Document.PageAnchor.PageRef.layout_id is - * deprecated. See google/cloud/documentai/v1/document.proto;l=692 + * deprecated. See google/cloud/documentai/v1/document.proto;l=752 * @return The layoutId. */ @java.lang.Deprecated @@ -51769,7 +54710,7 @@ public java.lang.String getLayoutId() { *
* * @deprecated google.cloud.documentai.v1.Document.PageAnchor.PageRef.layout_id is - * deprecated. See google/cloud/documentai/v1/document.proto;l=692 + * deprecated. See google/cloud/documentai/v1/document.proto;l=752 * @return The bytes for layoutId. */ @java.lang.Deprecated @@ -51797,7 +54738,7 @@ public com.google.protobuf.ByteString getLayoutIdBytes() { *
* * @deprecated google.cloud.documentai.v1.Document.PageAnchor.PageRef.layout_id is - * deprecated. See google/cloud/documentai/v1/document.proto;l=692 + * deprecated. See google/cloud/documentai/v1/document.proto;l=752 * @param value The layoutId to set. * @return This builder for chaining. */ @@ -51824,7 +54765,7 @@ public Builder setLayoutId(java.lang.String value) { *
* * @deprecated google.cloud.documentai.v1.Document.PageAnchor.PageRef.layout_id is - * deprecated. See google/cloud/documentai/v1/document.proto;l=692 + * deprecated. See google/cloud/documentai/v1/document.proto;l=752 * @return This builder for chaining. */ @java.lang.Deprecated @@ -51847,7 +54788,7 @@ public Builder clearLayoutId() { * * * @deprecated google.cloud.documentai.v1.Document.PageAnchor.PageRef.layout_id is - * deprecated. See google/cloud/documentai/v1/document.proto;l=692 + * deprecated. See google/cloud/documentai/v1/document.proto;l=752 * @param value The bytes for layoutId to set. * @return This builder for chaining. */ @@ -53133,7 +56074,7 @@ public interface ProvenanceOrBuilder * int32 revision = 1 [deprecated = true]; * * @deprecated google.cloud.documentai.v1.Document.Provenance.revision is deprecated. See - * google/cloud/documentai/v1/document.proto;l=759 + * google/cloud/documentai/v1/document.proto;l=819 * @return The revision. */ @java.lang.Deprecated @@ -53150,7 +56091,7 @@ public interface ProvenanceOrBuilder * int32 id = 2 [deprecated = true]; * * @deprecated google.cloud.documentai.v1.Document.Provenance.id is deprecated. See - * google/cloud/documentai/v1/document.proto;l=763 + * google/cloud/documentai/v1/document.proto;l=823 * @return The id. */ @java.lang.Deprecated @@ -53326,9 +56267,9 @@ public enum OperationType implements com.google.protobuf.ProtocolMessageEnum { * *
        * Updates any fields within the given provenance scope of the message. It
-       * 'overwrites'  the fields rather than replacing them.  This is
-       * especially relevant when we just want to update a field value of an
-       * entity without also affecting all the child properties.
+       * overwrites the fields rather than replacing them.  Use this when you
+       * want to update a field value of an entity without also updating all the
+       * child properties.
        * 
* * UPDATE = 7; @@ -53418,9 +56359,9 @@ public enum OperationType implements com.google.protobuf.ProtocolMessageEnum { * *
        * Updates any fields within the given provenance scope of the message. It
-       * 'overwrites'  the fields rather than replacing them.  This is
-       * especially relevant when we just want to update a field value of an
-       * entity without also affecting all the child properties.
+       * overwrites the fields rather than replacing them.  Use this when you
+       * want to update a field value of an entity without also updating all the
+       * child properties.
        * 
* * UPDATE = 7; @@ -53608,7 +56549,7 @@ public interface ParentOrBuilder * int32 id = 2 [deprecated = true]; * * @deprecated google.cloud.documentai.v1.Document.Provenance.Parent.id is deprecated. See - * google/cloud/documentai/v1/document.proto;l=722 + * google/cloud/documentai/v1/document.proto;l=782 * @return The id. */ @java.lang.Deprecated @@ -53706,7 +56647,7 @@ public int getIndex() { * int32 id = 2 [deprecated = true]; * * @deprecated google.cloud.documentai.v1.Document.Provenance.Parent.id is deprecated. See - * google/cloud/documentai/v1/document.proto;l=722 + * google/cloud/documentai/v1/document.proto;l=782 * @return The id. */ @java.lang.Override @@ -54228,7 +57169,7 @@ public Builder clearIndex() { * int32 id = 2 [deprecated = true]; * * @deprecated google.cloud.documentai.v1.Document.Provenance.Parent.id is deprecated. See - * google/cloud/documentai/v1/document.proto;l=722 + * google/cloud/documentai/v1/document.proto;l=782 * @return The id. */ @java.lang.Override @@ -54246,7 +57187,7 @@ public int getId() { * int32 id = 2 [deprecated = true]; * * @deprecated google.cloud.documentai.v1.Document.Provenance.Parent.id is deprecated. See - * google/cloud/documentai/v1/document.proto;l=722 + * google/cloud/documentai/v1/document.proto;l=782 * @param value The id to set. * @return This builder for chaining. */ @@ -54268,7 +57209,7 @@ public Builder setId(int value) { * int32 id = 2 [deprecated = true]; * * @deprecated google.cloud.documentai.v1.Document.Provenance.Parent.id is deprecated. See - * google/cloud/documentai/v1/document.proto;l=722 + * google/cloud/documentai/v1/document.proto;l=782 * @return This builder for chaining. */ @java.lang.Deprecated @@ -54356,7 +57297,7 @@ public com.google.cloud.documentai.v1.Document.Provenance.Parent getDefaultInsta * int32 revision = 1 [deprecated = true]; * * @deprecated google.cloud.documentai.v1.Document.Provenance.revision is deprecated. See - * google/cloud/documentai/v1/document.proto;l=759 + * google/cloud/documentai/v1/document.proto;l=819 * @return The revision. */ @java.lang.Override @@ -54378,7 +57319,7 @@ public int getRevision() { * int32 id = 2 [deprecated = true]; * * @deprecated google.cloud.documentai.v1.Document.Provenance.id is deprecated. See - * google/cloud/documentai/v1/document.proto;l=763 + * google/cloud/documentai/v1/document.proto;l=823 * @return The id. */ @java.lang.Override @@ -54977,7 +57918,7 @@ public Builder mergeFrom( * int32 revision = 1 [deprecated = true]; * * @deprecated google.cloud.documentai.v1.Document.Provenance.revision is deprecated. See - * google/cloud/documentai/v1/document.proto;l=759 + * google/cloud/documentai/v1/document.proto;l=819 * @return The revision. */ @java.lang.Override @@ -54995,7 +57936,7 @@ public int getRevision() { * int32 revision = 1 [deprecated = true]; * * @deprecated google.cloud.documentai.v1.Document.Provenance.revision is deprecated. See - * google/cloud/documentai/v1/document.proto;l=759 + * google/cloud/documentai/v1/document.proto;l=819 * @param value The revision to set. * @return This builder for chaining. */ @@ -55017,7 +57958,7 @@ public Builder setRevision(int value) { * int32 revision = 1 [deprecated = true]; * * @deprecated google.cloud.documentai.v1.Document.Provenance.revision is deprecated. See - * google/cloud/documentai/v1/document.proto;l=759 + * google/cloud/documentai/v1/document.proto;l=819 * @return This builder for chaining. */ @java.lang.Deprecated @@ -55040,7 +57981,7 @@ public Builder clearRevision() { * int32 id = 2 [deprecated = true]; * * @deprecated google.cloud.documentai.v1.Document.Provenance.id is deprecated. See - * google/cloud/documentai/v1/document.proto;l=763 + * google/cloud/documentai/v1/document.proto;l=823 * @return The id. */ @java.lang.Override @@ -55059,7 +58000,7 @@ public int getId() { * int32 id = 2 [deprecated = true]; * * @deprecated google.cloud.documentai.v1.Document.Provenance.id is deprecated. See - * google/cloud/documentai/v1/document.proto;l=763 + * google/cloud/documentai/v1/document.proto;l=823 * @param value The id to set. * @return This builder for chaining. */ @@ -55082,7 +58023,7 @@ public Builder setId(int value) { * int32 id = 2 [deprecated = true]; * * @deprecated google.cloud.documentai.v1.Document.Provenance.id is deprecated. See - * google/cloud/documentai/v1/document.proto;l=763 + * google/cloud/documentai/v1/document.proto;l=823 * @return This builder for chaining. */ @java.lang.Deprecated @@ -55739,7 +58680,7 @@ public interface RevisionOrBuilder * repeated int32 parent = 2 [deprecated = true]; * * @deprecated google.cloud.documentai.v1.Document.Revision.parent is deprecated. See - * google/cloud/documentai/v1/document.proto;l=802 + * google/cloud/documentai/v1/document.proto;l=862 * @return A list containing the parent. */ @java.lang.Deprecated @@ -55756,7 +58697,7 @@ public interface RevisionOrBuilder * repeated int32 parent = 2 [deprecated = true]; * * @deprecated google.cloud.documentai.v1.Document.Revision.parent is deprecated. See - * google/cloud/documentai/v1/document.proto;l=802 + * google/cloud/documentai/v1/document.proto;l=862 * @return The count of parent. */ @java.lang.Deprecated @@ -55773,7 +58714,7 @@ public interface RevisionOrBuilder * repeated int32 parent = 2 [deprecated = true]; * * @deprecated google.cloud.documentai.v1.Document.Revision.parent is deprecated. See - * google/cloud/documentai/v1/document.proto;l=802 + * google/cloud/documentai/v1/document.proto;l=862 * @param index The index of the element to return. * @return The parent at the given index. */ @@ -57089,7 +60030,7 @@ public com.google.protobuf.ByteString getIdBytes() { * repeated int32 parent = 2 [deprecated = true]; * * @deprecated google.cloud.documentai.v1.Document.Revision.parent is deprecated. See - * google/cloud/documentai/v1/document.proto;l=802 + * google/cloud/documentai/v1/document.proto;l=862 * @return A list containing the parent. */ @java.lang.Override @@ -57109,7 +60050,7 @@ public java.util.List getParentList() { * repeated int32 parent = 2 [deprecated = true]; * * @deprecated google.cloud.documentai.v1.Document.Revision.parent is deprecated. See - * google/cloud/documentai/v1/document.proto;l=802 + * google/cloud/documentai/v1/document.proto;l=862 * @return The count of parent. */ @java.lang.Deprecated @@ -57128,7 +60069,7 @@ public int getParentCount() { * repeated int32 parent = 2 [deprecated = true]; * * @deprecated google.cloud.documentai.v1.Document.Revision.parent is deprecated. See - * google/cloud/documentai/v1/document.proto;l=802 + * google/cloud/documentai/v1/document.proto;l=862 * @param index The index of the element to return. * @return The parent at the given index. */ @@ -58326,7 +61267,7 @@ private void ensureParentIsMutable() { * repeated int32 parent = 2 [deprecated = true]; * * @deprecated google.cloud.documentai.v1.Document.Revision.parent is deprecated. See - * google/cloud/documentai/v1/document.proto;l=802 + * google/cloud/documentai/v1/document.proto;l=862 * @return A list containing the parent. */ @java.lang.Deprecated @@ -58347,7 +61288,7 @@ public java.util.List getParentList() { * repeated int32 parent = 2 [deprecated = true]; * * @deprecated google.cloud.documentai.v1.Document.Revision.parent is deprecated. See - * google/cloud/documentai/v1/document.proto;l=802 + * google/cloud/documentai/v1/document.proto;l=862 * @return The count of parent. */ @java.lang.Deprecated @@ -58366,7 +61307,7 @@ public int getParentCount() { * repeated int32 parent = 2 [deprecated = true]; * * @deprecated google.cloud.documentai.v1.Document.Revision.parent is deprecated. See - * google/cloud/documentai/v1/document.proto;l=802 + * google/cloud/documentai/v1/document.proto;l=862 * @param index The index of the element to return. * @return The parent at the given index. */ @@ -58386,7 +61327,7 @@ public int getParent(int index) { * repeated int32 parent = 2 [deprecated = true]; * * @deprecated google.cloud.documentai.v1.Document.Revision.parent is deprecated. See - * google/cloud/documentai/v1/document.proto;l=802 + * google/cloud/documentai/v1/document.proto;l=862 * @param index The index to set the value at. * @param value The parent to set. * @return This builder for chaining. @@ -58411,7 +61352,7 @@ public Builder setParent(int index, int value) { * repeated int32 parent = 2 [deprecated = true]; * * @deprecated google.cloud.documentai.v1.Document.Revision.parent is deprecated. See - * google/cloud/documentai/v1/document.proto;l=802 + * google/cloud/documentai/v1/document.proto;l=862 * @param value The parent to add. * @return This builder for chaining. */ @@ -58435,7 +61376,7 @@ public Builder addParent(int value) { * repeated int32 parent = 2 [deprecated = true]; * * @deprecated google.cloud.documentai.v1.Document.Revision.parent is deprecated. See - * google/cloud/documentai/v1/document.proto;l=802 + * google/cloud/documentai/v1/document.proto;l=862 * @param values The parent to add. * @return This builder for chaining. */ @@ -58458,7 +61399,7 @@ public Builder addAllParent(java.lang.Iterable valu * repeated int32 parent = 2 [deprecated = true]; * * @deprecated google.cloud.documentai.v1.Document.Revision.parent is deprecated. See - * google/cloud/documentai/v1/document.proto;l=802 + * google/cloud/documentai/v1/document.proto;l=862 * @return This builder for chaining. */ @java.lang.Deprecated @@ -60821,10 +63762,9 @@ public SourceCase getSourceCase() { * *
    * Optional. Currently supports Google Cloud Storage URI of the form
-   *    `gs://bucket_name/object_name`. Object versioning is not supported.
-   *    See [Google Cloud Storage Request
-   *    URIs](https://cloud.google.com/storage/docs/reference-uris) for more
-   *    info.
+   * `gs://bucket_name/object_name`. Object versioning is not supported.
+   * For more information, refer to [Google Cloud Storage Request
+   * URIs](https://cloud.google.com/storage/docs/reference-uris).
    * 
* * string uri = 1 [(.google.api.field_behavior) = OPTIONAL]; @@ -60839,10 +63779,9 @@ public boolean hasUri() { * *
    * Optional. Currently supports Google Cloud Storage URI of the form
-   *    `gs://bucket_name/object_name`. Object versioning is not supported.
-   *    See [Google Cloud Storage Request
-   *    URIs](https://cloud.google.com/storage/docs/reference-uris) for more
-   *    info.
+   * `gs://bucket_name/object_name`. Object versioning is not supported.
+   * For more information, refer to [Google Cloud Storage Request
+   * URIs](https://cloud.google.com/storage/docs/reference-uris).
    * 
* * string uri = 1 [(.google.api.field_behavior) = OPTIONAL]; @@ -60870,10 +63809,9 @@ public java.lang.String getUri() { * *
    * Optional. Currently supports Google Cloud Storage URI of the form
-   *    `gs://bucket_name/object_name`. Object versioning is not supported.
-   *    See [Google Cloud Storage Request
-   *    URIs](https://cloud.google.com/storage/docs/reference-uris) for more
-   *    info.
+   * `gs://bucket_name/object_name`. Object versioning is not supported.
+   * For more information, refer to [Google Cloud Storage Request
+   * URIs](https://cloud.google.com/storage/docs/reference-uris).
    * 
* * string uri = 1 [(.google.api.field_behavior) = OPTIONAL]; @@ -60944,9 +63882,8 @@ public com.google.protobuf.ByteString getContent() { * * *
-   * An IANA published MIME type (also referred to as media type). For more
-   * information, see
-   * https://www.iana.org/assignments/media-types/media-types.xhtml.
+   * An IANA published [media type (MIME
+   * type)](https://www.iana.org/assignments/media-types/media-types.xhtml).
    * 
* * string mime_type = 3; @@ -60969,9 +63906,8 @@ public java.lang.String getMimeType() { * * *
-   * An IANA published MIME type (also referred to as media type). For more
-   * information, see
-   * https://www.iana.org/assignments/media-types/media-types.xhtml.
+   * An IANA published [media type (MIME
+   * type)](https://www.iana.org/assignments/media-types/media-types.xhtml).
    * 
* * string mime_type = 3; @@ -62544,10 +65480,9 @@ public Builder clearSource() { * *
      * Optional. Currently supports Google Cloud Storage URI of the form
-     *    `gs://bucket_name/object_name`. Object versioning is not supported.
-     *    See [Google Cloud Storage Request
-     *    URIs](https://cloud.google.com/storage/docs/reference-uris) for more
-     *    info.
+     * `gs://bucket_name/object_name`. Object versioning is not supported.
+     * For more information, refer to [Google Cloud Storage Request
+     * URIs](https://cloud.google.com/storage/docs/reference-uris).
      * 
* * string uri = 1 [(.google.api.field_behavior) = OPTIONAL]; @@ -62563,10 +65498,9 @@ public boolean hasUri() { * *
      * Optional. Currently supports Google Cloud Storage URI of the form
-     *    `gs://bucket_name/object_name`. Object versioning is not supported.
-     *    See [Google Cloud Storage Request
-     *    URIs](https://cloud.google.com/storage/docs/reference-uris) for more
-     *    info.
+     * `gs://bucket_name/object_name`. Object versioning is not supported.
+     * For more information, refer to [Google Cloud Storage Request
+     * URIs](https://cloud.google.com/storage/docs/reference-uris).
      * 
* * string uri = 1 [(.google.api.field_behavior) = OPTIONAL]; @@ -62595,10 +65529,9 @@ public java.lang.String getUri() { * *
      * Optional. Currently supports Google Cloud Storage URI of the form
-     *    `gs://bucket_name/object_name`. Object versioning is not supported.
-     *    See [Google Cloud Storage Request
-     *    URIs](https://cloud.google.com/storage/docs/reference-uris) for more
-     *    info.
+     * `gs://bucket_name/object_name`. Object versioning is not supported.
+     * For more information, refer to [Google Cloud Storage Request
+     * URIs](https://cloud.google.com/storage/docs/reference-uris).
      * 
* * string uri = 1 [(.google.api.field_behavior) = OPTIONAL]; @@ -62627,10 +65560,9 @@ public com.google.protobuf.ByteString getUriBytes() { * *
      * Optional. Currently supports Google Cloud Storage URI of the form
-     *    `gs://bucket_name/object_name`. Object versioning is not supported.
-     *    See [Google Cloud Storage Request
-     *    URIs](https://cloud.google.com/storage/docs/reference-uris) for more
-     *    info.
+     * `gs://bucket_name/object_name`. Object versioning is not supported.
+     * For more information, refer to [Google Cloud Storage Request
+     * URIs](https://cloud.google.com/storage/docs/reference-uris).
      * 
* * string uri = 1 [(.google.api.field_behavior) = OPTIONAL]; @@ -62652,10 +65584,9 @@ public Builder setUri(java.lang.String value) { * *
      * Optional. Currently supports Google Cloud Storage URI of the form
-     *    `gs://bucket_name/object_name`. Object versioning is not supported.
-     *    See [Google Cloud Storage Request
-     *    URIs](https://cloud.google.com/storage/docs/reference-uris) for more
-     *    info.
+     * `gs://bucket_name/object_name`. Object versioning is not supported.
+     * For more information, refer to [Google Cloud Storage Request
+     * URIs](https://cloud.google.com/storage/docs/reference-uris).
      * 
* * string uri = 1 [(.google.api.field_behavior) = OPTIONAL]; @@ -62675,10 +65606,9 @@ public Builder clearUri() { * *
      * Optional. Currently supports Google Cloud Storage URI of the form
-     *    `gs://bucket_name/object_name`. Object versioning is not supported.
-     *    See [Google Cloud Storage Request
-     *    URIs](https://cloud.google.com/storage/docs/reference-uris) for more
-     *    info.
+     * `gs://bucket_name/object_name`. Object versioning is not supported.
+     * For more information, refer to [Google Cloud Storage Request
+     * URIs](https://cloud.google.com/storage/docs/reference-uris).
      * 
* * string uri = 1 [(.google.api.field_behavior) = OPTIONAL]; @@ -62782,9 +65712,8 @@ public Builder clearContent() { * * *
-     * An IANA published MIME type (also referred to as media type). For more
-     * information, see
-     * https://www.iana.org/assignments/media-types/media-types.xhtml.
+     * An IANA published [media type (MIME
+     * type)](https://www.iana.org/assignments/media-types/media-types.xhtml).
      * 
* * string mime_type = 3; @@ -62806,9 +65735,8 @@ public java.lang.String getMimeType() { * * *
-     * An IANA published MIME type (also referred to as media type). For more
-     * information, see
-     * https://www.iana.org/assignments/media-types/media-types.xhtml.
+     * An IANA published [media type (MIME
+     * type)](https://www.iana.org/assignments/media-types/media-types.xhtml).
      * 
* * string mime_type = 3; @@ -62830,9 +65758,8 @@ public com.google.protobuf.ByteString getMimeTypeBytes() { * * *
-     * An IANA published MIME type (also referred to as media type). For more
-     * information, see
-     * https://www.iana.org/assignments/media-types/media-types.xhtml.
+     * An IANA published [media type (MIME
+     * type)](https://www.iana.org/assignments/media-types/media-types.xhtml).
      * 
* * string mime_type = 3; @@ -62853,9 +65780,8 @@ public Builder setMimeType(java.lang.String value) { * * *
-     * An IANA published MIME type (also referred to as media type). For more
-     * information, see
-     * https://www.iana.org/assignments/media-types/media-types.xhtml.
+     * An IANA published [media type (MIME
+     * type)](https://www.iana.org/assignments/media-types/media-types.xhtml).
      * 
* * string mime_type = 3; @@ -62872,9 +65798,8 @@ public Builder clearMimeType() { * * *
-     * An IANA published MIME type (also referred to as media type). For more
-     * information, see
-     * https://www.iana.org/assignments/media-types/media-types.xhtml.
+     * An IANA published [media type (MIME
+     * type)](https://www.iana.org/assignments/media-types/media-types.xhtml).
      * 
* * string mime_type = 3; diff --git a/java-document-ai/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/DocumentAiProcessor.java b/java-document-ai/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/DocumentAiProcessor.java index 0ecc502e31f2..eb133d5d1863 100644 --- a/java-document-ai/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/DocumentAiProcessor.java +++ b/java-document-ai/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/DocumentAiProcessor.java @@ -54,7 +54,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "source.proto\0320google/cloud/documentai/v1" + "/document_schema.proto\032+google/cloud/doc" + "umentai/v1/evaluation.proto\032\037google/prot" - + "obuf/timestamp.proto\"\241\007\n\020ProcessorVersio" + + "obuf/timestamp.proto\"\260\007\n\020ProcessorVersio" + "n\022\014\n\004name\030\001 \001(\t\022\024\n\014display_name\030\002 \001(\t\022C\n" + "\017document_schema\030\014 \001(\0132*.google.cloud.do" + "cumentai.v1.DocumentSchema\022A\n\005state\030\006 \001(" @@ -70,34 +70,34 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "fo\0224\n\020deprecation_time\030\001 \001(\0132\032.google.pr" + "otobuf.Timestamp\022V\n\035replacement_processo" + "r_version\030\002 \001(\tB/\372A,\n*documentai.googlea" - + "pis.com/ProcessorVersion\"\204\001\n\005State\022\025\n\021ST" + + "pis.com/ProcessorVersion\"\223\001\n\005State\022\025\n\021ST" + "ATE_UNSPECIFIED\020\000\022\014\n\010DEPLOYED\020\001\022\r\n\tDEPLO" + "YING\020\002\022\016\n\nUNDEPLOYED\020\003\022\017\n\013UNDEPLOYING\020\004\022" - + "\014\n\010CREATING\020\005\022\014\n\010DELETING\020\006\022\n\n\006FAILED\020\007:" - + "\226\001\352A\222\001\n*documentai.googleapis.com/Proces" - + "sorVersion\022dprojects/{project}/locations" - + "/{location}/processors/{processor}/proce" - + "ssorVersions/{processor_version}\"\254\004\n\tPro" - + "cessor\022\023\n\004name\030\001 \001(\tB\005\342A\002\005\003\022\014\n\004type\030\002 \001(" - + "\t\022\024\n\014display_name\030\003 \001(\t\022@\n\005state\030\004 \001(\0162+" - + ".google.cloud.documentai.v1.Processor.St" - + "ateB\004\342A\001\003\022R\n\031default_processor_version\030\t" - + " \001(\tB/\372A,\n*documentai.googleapis.com/Pro" - + "cessorVersion\022\037\n\020process_endpoint\030\006 \001(\tB" - + "\005\342A\002\003\005\022/\n\013create_time\030\007 \001(\0132\032.google.pro" - + "tobuf.Timestamp\022\024\n\014kms_key_name\030\010 \001(\t\"~\n" - + "\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022\013\n\007ENABLED" - + "\020\001\022\014\n\010DISABLED\020\002\022\014\n\010ENABLING\020\003\022\r\n\tDISABL" - + "ING\020\004\022\014\n\010CREATING\020\005\022\n\n\006FAILED\020\006\022\014\n\010DELET" - + "ING\020\007:h\352Ae\n#documentai.googleapis.com/Pr" - + "ocessor\022>projects/{project}/locations/{l" - + "ocation}/processors/{processor}B\321\001\n\036com." - + "google.cloud.documentai.v1B\023DocumentAiPr" - + "ocessorP\001Z>cloud.google.com/go/documenta" - + "i/apiv1/documentaipb;documentaipb\252\002\032Goog" - + "le.Cloud.DocumentAI.V1\312\002\032Google\\Cloud\\Do" - + "cumentAI\\V1\352\002\035Google::Cloud::DocumentAI:" - + ":V1b\006proto3" + + "\014\n\010CREATING\020\005\022\014\n\010DELETING\020\006\022\n\n\006FAILED\020\007\022" + + "\r\n\tIMPORTING\020\010:\226\001\352A\222\001\n*documentai.google" + + "apis.com/ProcessorVersion\022dprojects/{pro" + + "ject}/locations/{location}/processors/{p" + + "rocessor}/processorVersions/{processor_v" + + "ersion}\"\254\004\n\tProcessor\022\023\n\004name\030\001 \001(\tB\005\342A\002" + + "\005\003\022\014\n\004type\030\002 \001(\t\022\024\n\014display_name\030\003 \001(\t\022@" + + "\n\005state\030\004 \001(\0162+.google.cloud.documentai." + + "v1.Processor.StateB\004\342A\001\003\022R\n\031default_proc" + + "essor_version\030\t \001(\tB/\372A,\n*documentai.goo" + + "gleapis.com/ProcessorVersion\022\037\n\020process_" + + "endpoint\030\006 \001(\tB\005\342A\002\003\005\022/\n\013create_time\030\007 \001" + + "(\0132\032.google.protobuf.Timestamp\022\024\n\014kms_ke" + + "y_name\030\010 \001(\t\"~\n\005State\022\025\n\021STATE_UNSPECIFI" + + "ED\020\000\022\013\n\007ENABLED\020\001\022\014\n\010DISABLED\020\002\022\014\n\010ENABL" + + "ING\020\003\022\r\n\tDISABLING\020\004\022\014\n\010CREATING\020\005\022\n\n\006FA" + + "ILED\020\006\022\014\n\010DELETING\020\007:h\352Ae\n#documentai.go" + + "ogleapis.com/Processor\022>projects/{projec" + + "t}/locations/{location}/processors/{proc" + + "essor}B\321\001\n\036com.google.cloud.documentai.v" + + "1B\023DocumentAiProcessorP\001Z>cloud.google.c" + + "om/go/documentai/apiv1/documentaipb;docu" + + "mentaipb\252\002\032Google.Cloud.DocumentAI.V1\312\002\032" + + "Google\\Cloud\\DocumentAI\\V1\352\002\035Google::Clo" + + "ud::DocumentAI::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-document-ai/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/DocumentOrBuilder.java b/java-document-ai/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/DocumentOrBuilder.java index d3a8a76f055f..73d4f287f6b2 100644 --- a/java-document-ai/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/DocumentOrBuilder.java +++ b/java-document-ai/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/DocumentOrBuilder.java @@ -28,10 +28,9 @@ public interface DocumentOrBuilder * *
    * Optional. Currently supports Google Cloud Storage URI of the form
-   *    `gs://bucket_name/object_name`. Object versioning is not supported.
-   *    See [Google Cloud Storage Request
-   *    URIs](https://cloud.google.com/storage/docs/reference-uris) for more
-   *    info.
+   * `gs://bucket_name/object_name`. Object versioning is not supported.
+   * For more information, refer to [Google Cloud Storage Request
+   * URIs](https://cloud.google.com/storage/docs/reference-uris).
    * 
* * string uri = 1 [(.google.api.field_behavior) = OPTIONAL]; @@ -44,10 +43,9 @@ public interface DocumentOrBuilder * *
    * Optional. Currently supports Google Cloud Storage URI of the form
-   *    `gs://bucket_name/object_name`. Object versioning is not supported.
-   *    See [Google Cloud Storage Request
-   *    URIs](https://cloud.google.com/storage/docs/reference-uris) for more
-   *    info.
+   * `gs://bucket_name/object_name`. Object versioning is not supported.
+   * For more information, refer to [Google Cloud Storage Request
+   * URIs](https://cloud.google.com/storage/docs/reference-uris).
    * 
* * string uri = 1 [(.google.api.field_behavior) = OPTIONAL]; @@ -60,10 +58,9 @@ public interface DocumentOrBuilder * *
    * Optional. Currently supports Google Cloud Storage URI of the form
-   *    `gs://bucket_name/object_name`. Object versioning is not supported.
-   *    See [Google Cloud Storage Request
-   *    URIs](https://cloud.google.com/storage/docs/reference-uris) for more
-   *    info.
+   * `gs://bucket_name/object_name`. Object versioning is not supported.
+   * For more information, refer to [Google Cloud Storage Request
+   * URIs](https://cloud.google.com/storage/docs/reference-uris).
    * 
* * string uri = 1 [(.google.api.field_behavior) = OPTIONAL]; @@ -105,9 +102,8 @@ public interface DocumentOrBuilder * * *
-   * An IANA published MIME type (also referred to as media type). For more
-   * information, see
-   * https://www.iana.org/assignments/media-types/media-types.xhtml.
+   * An IANA published [media type (MIME
+   * type)](https://www.iana.org/assignments/media-types/media-types.xhtml).
    * 
* * string mime_type = 3; @@ -119,9 +115,8 @@ public interface DocumentOrBuilder * * *
-   * An IANA published MIME type (also referred to as media type). For more
-   * information, see
-   * https://www.iana.org/assignments/media-types/media-types.xhtml.
+   * An IANA published [media type (MIME
+   * type)](https://www.iana.org/assignments/media-types/media-types.xhtml).
    * 
* * string mime_type = 3; diff --git a/java-document-ai/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/DocumentProto.java b/java-document-ai/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/DocumentProto.java index 2e2cec15d6de..6eb7fdc38a73 100644 --- a/java-document-ai/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/DocumentProto.java +++ b/java-document-ai/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/DocumentProto.java @@ -83,6 +83,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_documentai_v1_Document_Page_Token_DetectedBreak_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_documentai_v1_Document_Page_Token_DetectedBreak_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_documentai_v1_Document_Page_Token_StyleInfo_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_documentai_v1_Document_Page_Token_StyleInfo_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_documentai_v1_Document_Page_Symbol_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -189,7 +193,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "s.proto\032\027google/type/color.proto\032\026google" + "/type/date.proto\032\032google/type/datetime.p" + "roto\032\027google/type/money.proto\032 google/ty" - + "pe/postal_address.proto\"\343A\n\010Document\022\023\n\003" + + "pe/postal_address.proto\"\233E\n\010Document\022\023\n\003" + "uri\030\001 \001(\tB\004\342A\001\001H\000\022\027\n\007content\030\002 \001(\014B\004\342A\001\001" + "H\000\022\021\n\tmime_type\030\003 \001(\t\022\022\n\004text\030\004 \001(\tB\004\342A\001" + "\001\022C\n\013text_styles\030\005 \003(\0132*.google.cloud.do" @@ -215,7 +219,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "oration\030\006 \001(\t\022F\n\tfont_size\030\007 \001(\01323.googl" + "e.cloud.documentai.v1.Document.Style.Fon" + "tSize\022\023\n\013font_family\030\010 \001(\t\032&\n\010FontSize\022\014" - + "\n\004size\030\001 \001(\002\022\014\n\004unit\030\002 \001(\t\032\212&\n\004Page\022\023\n\013p" + + "\n\004size\030\001 \001(\002\022\014\n\004unit\030\002 \001(\t\032\302)\n\004Page\022\023\n\013p" + "age_number\030\001 \001(\005\022>\n\005image\030\r \001(\0132/.google" + ".cloud.documentai.v1.Document.Page.Image" + "\022D\n\ntransforms\030\016 \003(\01320.google.cloud.docu" @@ -277,7 +281,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "gle.cloud.documentai.v1.Document.Page.De" + "tectedLanguage\022G\n\nprovenance\030\003 \001(\0132/.goo" + "gle.cloud.documentai.v1.Document.Provena" - + "nceB\002\030\001\032\352\003\n\005Token\022@\n\006layout\030\001 \001(\01320.goog" + + "nceB\002\030\001\032\236\007\n\005Token\022@\n\006layout\030\001 \001(\01320.goog" + "le.cloud.documentai.v1.Document.Page.Lay" + "out\022U\n\016detected_break\030\002 \001(\0132=.google.clo" + "ud.documentai.v1.Document.Page.Token.Det" @@ -285,29 +289,40 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + ".google.cloud.documentai.v1.Document.Pag" + "e.DetectedLanguage\022G\n\nprovenance\030\004 \001(\0132/" + ".google.cloud.documentai.v1.Document.Pro" - + "venanceB\002\030\001\032\246\001\n\rDetectedBreak\022P\n\004type\030\001 " - + "\001(\0162B.google.cloud.documentai.v1.Documen" - + "t.Page.Token.DetectedBreak.Type\"C\n\004Type\022" - + "\024\n\020TYPE_UNSPECIFIED\020\000\022\t\n\005SPACE\020\001\022\016\n\nWIDE" - + "_SPACE\020\002\022\n\n\006HYPHEN\020\003\032\242\001\n\006Symbol\022@\n\006layou" - + "t\030\001 \001(\01320.google.cloud.documentai.v1.Doc" - + "ument.Page.Layout\022V\n\022detected_languages\030" - + "\002 \003(\0132:.google.cloud.documentai.v1.Docum" - + "ent.Page.DetectedLanguage\032\267\001\n\rVisualElem" - + "ent\022@\n\006layout\030\001 \001(\01320.google.cloud.docum" - + "entai.v1.Document.Page.Layout\022\014\n\004type\030\002 " - + "\001(\t\022V\n\022detected_languages\030\003 \003(\0132:.google" - + ".cloud.documentai.v1.Document.Page.Detec" - + "tedLanguage\032\244\005\n\005Table\022@\n\006layout\030\001 \001(\01320." - + "google.cloud.documentai.v1.Document.Page" - + ".Layout\022M\n\013header_rows\030\002 \003(\01328.google.cl" - + "oud.documentai.v1.Document.Page.Table.Ta" - + "bleRow\022K\n\tbody_rows\030\003 \003(\01328.google.cloud" - + ".documentai.v1.Document.Page.Table.Table" - + "Row\022V\n\022detected_languages\030\004 \003(\0132:.google" - + ".cloud.documentai.v1.Document.Page.Detec" - + "tedLanguage\022C\n\nprovenance\030\005 \001(\0132/.google" - + ".cloud.documentai.v1.Document.Provenance" + + "venanceB\002\030\001\022M\n\nstyle_info\030\005 \001(\01329.google" + + ".cloud.documentai.v1.Document.Page.Token" + + ".StyleInfo\032\246\001\n\rDetectedBreak\022P\n\004type\030\001 \001" + + "(\0162B.google.cloud.documentai.v1.Document" + + ".Page.Token.DetectedBreak.Type\"C\n\004Type\022\024" + + "\n\020TYPE_UNSPECIFIED\020\000\022\t\n\005SPACE\020\001\022\016\n\nWIDE_" + + "SPACE\020\002\022\n\n\006HYPHEN\020\003\032\342\002\n\tStyleInfo\022\021\n\tfon" + + "t_size\030\001 \001(\005\022\027\n\017pixel_font_size\030\002 \001(\001\022\026\n" + + "\016letter_spacing\030\003 \001(\001\022\021\n\tfont_type\030\004 \001(\t" + + "\022\014\n\004bold\030\005 \001(\010\022\016\n\006italic\030\006 \001(\010\022\022\n\nunderl" + + "ined\030\007 \001(\010\022\021\n\tstrikeout\030\010 \001(\010\022\021\n\tsubscri" + + "pt\030\t \001(\010\022\023\n\013superscript\030\n \001(\010\022\021\n\tsmallca" + + "ps\030\013 \001(\010\022\023\n\013font_weight\030\014 \001(\005\022\023\n\013handwri" + + "tten\030\r \001(\010\022&\n\ntext_color\030\016 \001(\0132\022.google." + + "type.Color\022,\n\020background_color\030\017 \001(\0132\022.g" + + "oogle.type.Color\032\242\001\n\006Symbol\022@\n\006layout\030\001 " + + "\001(\01320.google.cloud.documentai.v1.Documen" + + "t.Page.Layout\022V\n\022detected_languages\030\002 \003(" + + "\0132:.google.cloud.documentai.v1.Document." + + "Page.DetectedLanguage\032\267\001\n\rVisualElement\022" + + "@\n\006layout\030\001 \001(\01320.google.cloud.documenta" + + "i.v1.Document.Page.Layout\022\014\n\004type\030\002 \001(\t\022" + + "V\n\022detected_languages\030\003 \003(\0132:.google.clo" + + "ud.documentai.v1.Document.Page.DetectedL" + + "anguage\032\250\005\n\005Table\022@\n\006layout\030\001 \001(\01320.goog" + + "le.cloud.documentai.v1.Document.Page.Lay" + + "out\022M\n\013header_rows\030\002 \003(\01328.google.cloud." + + "documentai.v1.Document.Page.Table.TableR" + + "ow\022K\n\tbody_rows\030\003 \003(\01328.google.cloud.doc" + + "umentai.v1.Document.Page.Table.TableRow\022" + + "V\n\022detected_languages\030\004 \003(\0132:.google.clo" + + "ud.documentai.v1.Document.Page.DetectedL" + + "anguage\022G\n\nprovenance\030\005 \001(\0132/.google.clo" + + "ud.documentai.v1.Document.ProvenanceB\002\030\001" + "\032T\n\010TableRow\022H\n\005cells\030\001 \003(\01329.google.clo" + "ud.documentai.v1.Document.Page.Table.Tab" + "leCell\032\311\001\n\tTableCell\022@\n\006layout\030\001 \001(\01320.g" @@ -561,7 +576,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_documentai_v1_Document_Page_Token_descriptor, new java.lang.String[] { - "Layout", "DetectedBreak", "DetectedLanguages", "Provenance", + "Layout", "DetectedBreak", "DetectedLanguages", "Provenance", "StyleInfo", }); internal_static_google_cloud_documentai_v1_Document_Page_Token_DetectedBreak_descriptor = internal_static_google_cloud_documentai_v1_Document_Page_Token_descriptor @@ -573,6 +588,30 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "Type", }); + internal_static_google_cloud_documentai_v1_Document_Page_Token_StyleInfo_descriptor = + internal_static_google_cloud_documentai_v1_Document_Page_Token_descriptor + .getNestedTypes() + .get(1); + internal_static_google_cloud_documentai_v1_Document_Page_Token_StyleInfo_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_documentai_v1_Document_Page_Token_StyleInfo_descriptor, + new java.lang.String[] { + "FontSize", + "PixelFontSize", + "LetterSpacing", + "FontType", + "Bold", + "Italic", + "Underlined", + "Strikeout", + "Subscript", + "Superscript", + "Smallcaps", + "FontWeight", + "Handwritten", + "TextColor", + "BackgroundColor", + }); internal_static_google_cloud_documentai_v1_Document_Page_Symbol_descriptor = internal_static_google_cloud_documentai_v1_Document_Page_descriptor.getNestedTypes().get(8); internal_static_google_cloud_documentai_v1_Document_Page_Symbol_fieldAccessorTable = diff --git a/java-document-ai/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/DocumentSchema.java b/java-document-ai/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/DocumentSchema.java index 50b05f23c7db..96f5cb000a4a 100644 --- a/java-document-ai/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/DocumentSchema.java +++ b/java-document-ai/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/DocumentSchema.java @@ -150,16 +150,15 @@ public interface EntityTypeOrBuilder * *
      * Name of the type. It must be unique within the schema file and
-     * cannot be a 'Common Type'.  Besides that we use the following naming
-     * conventions:
+     * cannot be a "Common Type".  The following naming conventions are used:
      *
-     * - *use `snake_casing`*
-     * - name matching is case-sensitive
+     * - Use `snake_casing`.
+     * - Name matching is case-sensitive.
      * - Maximum 64 characters.
      * - Must start with a letter.
      * - Allowed characters: ASCII letters `[a-z0-9_-]`.  (For backward
      *   compatibility internal infrastructure and tooling can handle any ascii
-     *   character)
+     *   character.)
      * - The `/` is sometimes used to denote a property of a type.  For example
      *   `line_item/amount`.  This convention is deprecated, but will still be
      *   honored for backward compatibility.
@@ -175,16 +174,15 @@ public interface EntityTypeOrBuilder
      *
      * 
      * Name of the type. It must be unique within the schema file and
-     * cannot be a 'Common Type'.  Besides that we use the following naming
-     * conventions:
+     * cannot be a "Common Type".  The following naming conventions are used:
      *
-     * - *use `snake_casing`*
-     * - name matching is case-sensitive
+     * - Use `snake_casing`.
+     * - Name matching is case-sensitive.
      * - Maximum 64 characters.
      * - Must start with a letter.
      * - Allowed characters: ASCII letters `[a-z0-9_-]`.  (For backward
      *   compatibility internal infrastructure and tooling can handle any ascii
-     *   character)
+     *   character.)
      * - The `/` is sometimes used to denote a property of a type.  For example
      *   `line_item/amount`.  This convention is deprecated, but will still be
      *   honored for backward compatibility.
@@ -2634,16 +2632,15 @@ public com.google.protobuf.ByteString getDisplayNameBytes() {
      *
      * 
      * Name of the type. It must be unique within the schema file and
-     * cannot be a 'Common Type'.  Besides that we use the following naming
-     * conventions:
+     * cannot be a "Common Type".  The following naming conventions are used:
      *
-     * - *use `snake_casing`*
-     * - name matching is case-sensitive
+     * - Use `snake_casing`.
+     * - Name matching is case-sensitive.
      * - Maximum 64 characters.
      * - Must start with a letter.
      * - Allowed characters: ASCII letters `[a-z0-9_-]`.  (For backward
      *   compatibility internal infrastructure and tooling can handle any ascii
-     *   character)
+     *   character.)
      * - The `/` is sometimes used to denote a property of a type.  For example
      *   `line_item/amount`.  This convention is deprecated, but will still be
      *   honored for backward compatibility.
@@ -2670,16 +2667,15 @@ public java.lang.String getName() {
      *
      * 
      * Name of the type. It must be unique within the schema file and
-     * cannot be a 'Common Type'.  Besides that we use the following naming
-     * conventions:
+     * cannot be a "Common Type".  The following naming conventions are used:
      *
-     * - *use `snake_casing`*
-     * - name matching is case-sensitive
+     * - Use `snake_casing`.
+     * - Name matching is case-sensitive.
      * - Maximum 64 characters.
      * - Must start with a letter.
      * - Allowed characters: ASCII letters `[a-z0-9_-]`.  (For backward
      *   compatibility internal infrastructure and tooling can handle any ascii
-     *   character)
+     *   character.)
      * - The `/` is sometimes used to denote a property of a type.  For example
      *   `line_item/amount`.  This convention is deprecated, but will still be
      *   honored for backward compatibility.
@@ -3790,16 +3786,15 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) {
        *
        * 
        * Name of the type. It must be unique within the schema file and
-       * cannot be a 'Common Type'.  Besides that we use the following naming
-       * conventions:
+       * cannot be a "Common Type".  The following naming conventions are used:
        *
-       * - *use `snake_casing`*
-       * - name matching is case-sensitive
+       * - Use `snake_casing`.
+       * - Name matching is case-sensitive.
        * - Maximum 64 characters.
        * - Must start with a letter.
        * - Allowed characters: ASCII letters `[a-z0-9_-]`.  (For backward
        *   compatibility internal infrastructure and tooling can handle any ascii
-       *   character)
+       *   character.)
        * - The `/` is sometimes used to denote a property of a type.  For example
        *   `line_item/amount`.  This convention is deprecated, but will still be
        *   honored for backward compatibility.
@@ -3825,16 +3820,15 @@ public java.lang.String getName() {
        *
        * 
        * Name of the type. It must be unique within the schema file and
-       * cannot be a 'Common Type'.  Besides that we use the following naming
-       * conventions:
+       * cannot be a "Common Type".  The following naming conventions are used:
        *
-       * - *use `snake_casing`*
-       * - name matching is case-sensitive
+       * - Use `snake_casing`.
+       * - Name matching is case-sensitive.
        * - Maximum 64 characters.
        * - Must start with a letter.
        * - Allowed characters: ASCII letters `[a-z0-9_-]`.  (For backward
        *   compatibility internal infrastructure and tooling can handle any ascii
-       *   character)
+       *   character.)
        * - The `/` is sometimes used to denote a property of a type.  For example
        *   `line_item/amount`.  This convention is deprecated, but will still be
        *   honored for backward compatibility.
@@ -3860,16 +3854,15 @@ public com.google.protobuf.ByteString getNameBytes() {
        *
        * 
        * Name of the type. It must be unique within the schema file and
-       * cannot be a 'Common Type'.  Besides that we use the following naming
-       * conventions:
+       * cannot be a "Common Type".  The following naming conventions are used:
        *
-       * - *use `snake_casing`*
-       * - name matching is case-sensitive
+       * - Use `snake_casing`.
+       * - Name matching is case-sensitive.
        * - Maximum 64 characters.
        * - Must start with a letter.
        * - Allowed characters: ASCII letters `[a-z0-9_-]`.  (For backward
        *   compatibility internal infrastructure and tooling can handle any ascii
-       *   character)
+       *   character.)
        * - The `/` is sometimes used to denote a property of a type.  For example
        *   `line_item/amount`.  This convention is deprecated, but will still be
        *   honored for backward compatibility.
@@ -3894,16 +3887,15 @@ public Builder setName(java.lang.String value) {
        *
        * 
        * Name of the type. It must be unique within the schema file and
-       * cannot be a 'Common Type'.  Besides that we use the following naming
-       * conventions:
+       * cannot be a "Common Type".  The following naming conventions are used:
        *
-       * - *use `snake_casing`*
-       * - name matching is case-sensitive
+       * - Use `snake_casing`.
+       * - Name matching is case-sensitive.
        * - Maximum 64 characters.
        * - Must start with a letter.
        * - Allowed characters: ASCII letters `[a-z0-9_-]`.  (For backward
        *   compatibility internal infrastructure and tooling can handle any ascii
-       *   character)
+       *   character.)
        * - The `/` is sometimes used to denote a property of a type.  For example
        *   `line_item/amount`.  This convention is deprecated, but will still be
        *   honored for backward compatibility.
@@ -3924,16 +3916,15 @@ public Builder clearName() {
        *
        * 
        * Name of the type. It must be unique within the schema file and
-       * cannot be a 'Common Type'.  Besides that we use the following naming
-       * conventions:
+       * cannot be a "Common Type".  The following naming conventions are used:
        *
-       * - *use `snake_casing`*
-       * - name matching is case-sensitive
+       * - Use `snake_casing`.
+       * - Name matching is case-sensitive.
        * - Maximum 64 characters.
        * - Must start with a letter.
        * - Allowed characters: ASCII letters `[a-z0-9_-]`.  (For backward
        *   compatibility internal infrastructure and tooling can handle any ascii
-       *   character)
+       *   character.)
        * - The `/` is sometimes used to denote a property of a type.  For example
        *   `line_item/amount`.  This convention is deprecated, but will still be
        *   honored for backward compatibility.
@@ -4622,8 +4613,8 @@ public interface MetadataOrBuilder
      *
      *
      * 
-     * If true, a `document` entity type can be applied to subdocument (
-     * splitting). Otherwise, it can only be applied to the entire document
+     * If true, a `document` entity type can be applied to subdocument
+     * (splitting). Otherwise, it can only be applied to the entire document
      * (classification).
      * 
* @@ -4723,8 +4714,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-     * If true, a `document` entity type can be applied to subdocument (
-     * splitting). Otherwise, it can only be applied to the entire document
+     * If true, a `document` entity type can be applied to subdocument
+     * (splitting). Otherwise, it can only be applied to the entire document
      * (classification).
      * 
* @@ -5214,8 +5205,8 @@ public Builder mergeFrom( * * *
-       * If true, a `document` entity type can be applied to subdocument (
-       * splitting). Otherwise, it can only be applied to the entire document
+       * If true, a `document` entity type can be applied to subdocument
+       * (splitting). Otherwise, it can only be applied to the entire document
        * (classification).
        * 
* @@ -5231,8 +5222,8 @@ public boolean getDocumentSplitter() { * * *
-       * If true, a `document` entity type can be applied to subdocument (
-       * splitting). Otherwise, it can only be applied to the entire document
+       * If true, a `document` entity type can be applied to subdocument
+       * (splitting). Otherwise, it can only be applied to the entire document
        * (classification).
        * 
* @@ -5252,8 +5243,8 @@ public Builder setDocumentSplitter(boolean value) { * * *
-       * If true, a `document` entity type can be applied to subdocument (
-       * splitting). Otherwise, it can only be applied to the entire document
+       * If true, a `document` entity type can be applied to subdocument
+       * (splitting). Otherwise, it can only be applied to the entire document
        * (classification).
        * 
* diff --git a/java-document-ai/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/EnableProcessorMetadata.java b/java-document-ai/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/EnableProcessorMetadata.java index c4e132ce7eb3..a68e9b20a2dc 100644 --- a/java-document-ai/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/EnableProcessorMetadata.java +++ b/java-document-ai/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/EnableProcessorMetadata.java @@ -22,7 +22,9 @@ * * *
- * The long running operation metadata for enable processor method.
+ * The long-running operation metadata for the
+ * [EnableProcessor][google.cloud.documentai.v1.DocumentProcessorService.EnableProcessor]
+ * method.
  * 
* * Protobuf type {@code google.cloud.documentai.v1.EnableProcessorMetadata} @@ -66,7 +68,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * The basic metadata of the long running operation.
+   * The basic metadata of the long-running operation.
    * 
* * .google.cloud.documentai.v1.CommonOperationMetadata common_metadata = 5; @@ -81,7 +83,7 @@ public boolean hasCommonMetadata() { * * *
-   * The basic metadata of the long running operation.
+   * The basic metadata of the long-running operation.
    * 
* * .google.cloud.documentai.v1.CommonOperationMetadata common_metadata = 5; @@ -98,7 +100,7 @@ public com.google.cloud.documentai.v1.CommonOperationMetadata getCommonMetadata( * * *
-   * The basic metadata of the long running operation.
+   * The basic metadata of the long-running operation.
    * 
* * .google.cloud.documentai.v1.CommonOperationMetadata common_metadata = 5; @@ -280,7 +282,9 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * The long running operation metadata for enable processor method.
+   * The long-running operation metadata for the
+   * [EnableProcessor][google.cloud.documentai.v1.DocumentProcessorService.EnableProcessor]
+   * method.
    * 
* * Protobuf type {@code google.cloud.documentai.v1.EnableProcessorMetadata} @@ -472,7 +476,7 @@ public Builder mergeFrom( * * *
-     * The basic metadata of the long running operation.
+     * The basic metadata of the long-running operation.
      * 
* * .google.cloud.documentai.v1.CommonOperationMetadata common_metadata = 5; @@ -486,7 +490,7 @@ public boolean hasCommonMetadata() { * * *
-     * The basic metadata of the long running operation.
+     * The basic metadata of the long-running operation.
      * 
* * .google.cloud.documentai.v1.CommonOperationMetadata common_metadata = 5; @@ -506,7 +510,7 @@ public com.google.cloud.documentai.v1.CommonOperationMetadata getCommonMetadata( * * *
-     * The basic metadata of the long running operation.
+     * The basic metadata of the long-running operation.
      * 
* * .google.cloud.documentai.v1.CommonOperationMetadata common_metadata = 5; @@ -528,7 +532,7 @@ public Builder setCommonMetadata(com.google.cloud.documentai.v1.CommonOperationM * * *
-     * The basic metadata of the long running operation.
+     * The basic metadata of the long-running operation.
      * 
* * .google.cloud.documentai.v1.CommonOperationMetadata common_metadata = 5; @@ -548,7 +552,7 @@ public Builder setCommonMetadata( * * *
-     * The basic metadata of the long running operation.
+     * The basic metadata of the long-running operation.
      * 
* * .google.cloud.documentai.v1.CommonOperationMetadata common_metadata = 5; @@ -575,7 +579,7 @@ public Builder mergeCommonMetadata( * * *
-     * The basic metadata of the long running operation.
+     * The basic metadata of the long-running operation.
      * 
* * .google.cloud.documentai.v1.CommonOperationMetadata common_metadata = 5; @@ -594,7 +598,7 @@ public Builder clearCommonMetadata() { * * *
-     * The basic metadata of the long running operation.
+     * The basic metadata of the long-running operation.
      * 
* * .google.cloud.documentai.v1.CommonOperationMetadata common_metadata = 5; @@ -609,7 +613,7 @@ public Builder clearCommonMetadata() { * * *
-     * The basic metadata of the long running operation.
+     * The basic metadata of the long-running operation.
      * 
* * .google.cloud.documentai.v1.CommonOperationMetadata common_metadata = 5; @@ -628,7 +632,7 @@ public Builder clearCommonMetadata() { * * *
-     * The basic metadata of the long running operation.
+     * The basic metadata of the long-running operation.
      * 
* * .google.cloud.documentai.v1.CommonOperationMetadata common_metadata = 5; diff --git a/java-document-ai/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/EnableProcessorMetadataOrBuilder.java b/java-document-ai/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/EnableProcessorMetadataOrBuilder.java index d123489c07e3..e55fe5de9166 100644 --- a/java-document-ai/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/EnableProcessorMetadataOrBuilder.java +++ b/java-document-ai/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/EnableProcessorMetadataOrBuilder.java @@ -27,7 +27,7 @@ public interface EnableProcessorMetadataOrBuilder * * *
-   * The basic metadata of the long running operation.
+   * The basic metadata of the long-running operation.
    * 
* * .google.cloud.documentai.v1.CommonOperationMetadata common_metadata = 5; @@ -39,7 +39,7 @@ public interface EnableProcessorMetadataOrBuilder * * *
-   * The basic metadata of the long running operation.
+   * The basic metadata of the long-running operation.
    * 
* * .google.cloud.documentai.v1.CommonOperationMetadata common_metadata = 5; @@ -51,7 +51,7 @@ public interface EnableProcessorMetadataOrBuilder * * *
-   * The basic metadata of the long running operation.
+   * The basic metadata of the long-running operation.
    * 
* * .google.cloud.documentai.v1.CommonOperationMetadata common_metadata = 5; diff --git a/java-document-ai/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/EnableProcessorRequest.java b/java-document-ai/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/EnableProcessorRequest.java index 8d71497167b4..aa18239fc5c5 100644 --- a/java-document-ai/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/EnableProcessorRequest.java +++ b/java-document-ai/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/EnableProcessorRequest.java @@ -22,7 +22,9 @@ * * *
- * Request message for the enable processor method.
+ * Request message for the
+ * [EnableProcessor][google.cloud.documentai.v1.DocumentProcessorService.EnableProcessor]
+ * method.
  * 
* * Protobuf type {@code google.cloud.documentai.v1.EnableProcessorRequest} @@ -281,7 +283,9 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * Request message for the enable processor method.
+   * Request message for the
+   * [EnableProcessor][google.cloud.documentai.v1.DocumentProcessorService.EnableProcessor]
+   * method.
    * 
* * Protobuf type {@code google.cloud.documentai.v1.EnableProcessorRequest} diff --git a/java-document-ai/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/EnableProcessorResponse.java b/java-document-ai/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/EnableProcessorResponse.java index 97fa12a5f390..ce07c3e003c8 100644 --- a/java-document-ai/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/EnableProcessorResponse.java +++ b/java-document-ai/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/EnableProcessorResponse.java @@ -22,8 +22,9 @@ * * *
- * Response message for the enable processor method.
- * Intentionally empty proto for adding fields in future.
+ * Response message for the
+ * [EnableProcessor][google.cloud.documentai.v1.DocumentProcessorService.EnableProcessor]
+ * method. Intentionally empty proto for adding fields in future.
  * 
* * Protobuf type {@code google.cloud.documentai.v1.EnableProcessorResponse} @@ -216,8 +217,9 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * Response message for the enable processor method.
-   * Intentionally empty proto for adding fields in future.
+   * Response message for the
+   * [EnableProcessor][google.cloud.documentai.v1.DocumentProcessorService.EnableProcessor]
+   * method. Intentionally empty proto for adding fields in future.
    * 
* * Protobuf type {@code google.cloud.documentai.v1.EnableProcessorResponse} diff --git a/java-document-ai/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/EvaluateProcessorVersionMetadata.java b/java-document-ai/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/EvaluateProcessorVersionMetadata.java index 3de8b72b6919..97afa924eed5 100644 --- a/java-document-ai/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/EvaluateProcessorVersionMetadata.java +++ b/java-document-ai/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/EvaluateProcessorVersionMetadata.java @@ -22,7 +22,9 @@ * * *
- * Metadata of the EvaluateProcessorVersion method.
+ * Metadata of the
+ * [EvaluateProcessorVersion][google.cloud.documentai.v1.DocumentProcessorService.EvaluateProcessorVersion]
+ * method.
  * 
* * Protobuf type {@code google.cloud.documentai.v1.EvaluateProcessorVersionMetadata} @@ -67,7 +69,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * The basic metadata of the long running operation.
+   * The basic metadata of the long-running operation.
    * 
* * .google.cloud.documentai.v1.CommonOperationMetadata common_metadata = 1; @@ -82,7 +84,7 @@ public boolean hasCommonMetadata() { * * *
-   * The basic metadata of the long running operation.
+   * The basic metadata of the long-running operation.
    * 
* * .google.cloud.documentai.v1.CommonOperationMetadata common_metadata = 1; @@ -99,7 +101,7 @@ public com.google.cloud.documentai.v1.CommonOperationMetadata getCommonMetadata( * * *
-   * The basic metadata of the long running operation.
+   * The basic metadata of the long-running operation.
    * 
* * .google.cloud.documentai.v1.CommonOperationMetadata common_metadata = 1; @@ -281,7 +283,9 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * Metadata of the EvaluateProcessorVersion method.
+   * Metadata of the
+   * [EvaluateProcessorVersion][google.cloud.documentai.v1.DocumentProcessorService.EvaluateProcessorVersion]
+   * method.
    * 
* * Protobuf type {@code google.cloud.documentai.v1.EvaluateProcessorVersionMetadata} @@ -477,7 +481,7 @@ public Builder mergeFrom( * * *
-     * The basic metadata of the long running operation.
+     * The basic metadata of the long-running operation.
      * 
* * .google.cloud.documentai.v1.CommonOperationMetadata common_metadata = 1; @@ -491,7 +495,7 @@ public boolean hasCommonMetadata() { * * *
-     * The basic metadata of the long running operation.
+     * The basic metadata of the long-running operation.
      * 
* * .google.cloud.documentai.v1.CommonOperationMetadata common_metadata = 1; @@ -511,7 +515,7 @@ public com.google.cloud.documentai.v1.CommonOperationMetadata getCommonMetadata( * * *
-     * The basic metadata of the long running operation.
+     * The basic metadata of the long-running operation.
      * 
* * .google.cloud.documentai.v1.CommonOperationMetadata common_metadata = 1; @@ -533,7 +537,7 @@ public Builder setCommonMetadata(com.google.cloud.documentai.v1.CommonOperationM * * *
-     * The basic metadata of the long running operation.
+     * The basic metadata of the long-running operation.
      * 
* * .google.cloud.documentai.v1.CommonOperationMetadata common_metadata = 1; @@ -553,7 +557,7 @@ public Builder setCommonMetadata( * * *
-     * The basic metadata of the long running operation.
+     * The basic metadata of the long-running operation.
      * 
* * .google.cloud.documentai.v1.CommonOperationMetadata common_metadata = 1; @@ -580,7 +584,7 @@ public Builder mergeCommonMetadata( * * *
-     * The basic metadata of the long running operation.
+     * The basic metadata of the long-running operation.
      * 
* * .google.cloud.documentai.v1.CommonOperationMetadata common_metadata = 1; @@ -599,7 +603,7 @@ public Builder clearCommonMetadata() { * * *
-     * The basic metadata of the long running operation.
+     * The basic metadata of the long-running operation.
      * 
* * .google.cloud.documentai.v1.CommonOperationMetadata common_metadata = 1; @@ -614,7 +618,7 @@ public Builder clearCommonMetadata() { * * *
-     * The basic metadata of the long running operation.
+     * The basic metadata of the long-running operation.
      * 
* * .google.cloud.documentai.v1.CommonOperationMetadata common_metadata = 1; @@ -633,7 +637,7 @@ public Builder clearCommonMetadata() { * * *
-     * The basic metadata of the long running operation.
+     * The basic metadata of the long-running operation.
      * 
* * .google.cloud.documentai.v1.CommonOperationMetadata common_metadata = 1; diff --git a/java-document-ai/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/EvaluateProcessorVersionMetadataOrBuilder.java b/java-document-ai/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/EvaluateProcessorVersionMetadataOrBuilder.java index ae7c1bd2eee5..66105bbeae04 100644 --- a/java-document-ai/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/EvaluateProcessorVersionMetadataOrBuilder.java +++ b/java-document-ai/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/EvaluateProcessorVersionMetadataOrBuilder.java @@ -27,7 +27,7 @@ public interface EvaluateProcessorVersionMetadataOrBuilder * * *
-   * The basic metadata of the long running operation.
+   * The basic metadata of the long-running operation.
    * 
* * .google.cloud.documentai.v1.CommonOperationMetadata common_metadata = 1; @@ -39,7 +39,7 @@ public interface EvaluateProcessorVersionMetadataOrBuilder * * *
-   * The basic metadata of the long running operation.
+   * The basic metadata of the long-running operation.
    * 
* * .google.cloud.documentai.v1.CommonOperationMetadata common_metadata = 1; @@ -51,7 +51,7 @@ public interface EvaluateProcessorVersionMetadataOrBuilder * * *
-   * The basic metadata of the long running operation.
+   * The basic metadata of the long-running operation.
    * 
* * .google.cloud.documentai.v1.CommonOperationMetadata common_metadata = 1; diff --git a/java-document-ai/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/EvaluateProcessorVersionRequest.java b/java-document-ai/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/EvaluateProcessorVersionRequest.java index 8a68639034a9..7170b8c4605a 100644 --- a/java-document-ai/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/EvaluateProcessorVersionRequest.java +++ b/java-document-ai/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/EvaluateProcessorVersionRequest.java @@ -22,7 +22,9 @@ * * *
- * Evaluates the given ProcessorVersion against the supplied documents.
+ * Evaluates the given
+ * [ProcessorVersion][google.cloud.documentai.v1.ProcessorVersion] against the
+ * supplied documents.
  * 
* * Protobuf type {@code google.cloud.documentai.v1.EvaluateProcessorVersionRequest} @@ -362,7 +364,9 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * Evaluates the given ProcessorVersion against the supplied documents.
+   * Evaluates the given
+   * [ProcessorVersion][google.cloud.documentai.v1.ProcessorVersion] against the
+   * supplied documents.
    * 
* * Protobuf type {@code google.cloud.documentai.v1.EvaluateProcessorVersionRequest} diff --git a/java-document-ai/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/EvaluateProcessorVersionResponse.java b/java-document-ai/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/EvaluateProcessorVersionResponse.java index 787f08386518..f77e1b366ce4 100644 --- a/java-document-ai/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/EvaluateProcessorVersionResponse.java +++ b/java-document-ai/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/EvaluateProcessorVersionResponse.java @@ -22,7 +22,9 @@ * * *
- * Metadata of the EvaluateProcessorVersion method.
+ * Response of the
+ * [EvaluateProcessorVersion][google.cloud.documentai.v1.DocumentProcessorService.EvaluateProcessorVersion]
+ * method.
  * 
* * Protobuf type {@code google.cloud.documentai.v1.EvaluateProcessorVersionResponse} @@ -278,7 +280,9 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * Metadata of the EvaluateProcessorVersion method.
+   * Response of the
+   * [EvaluateProcessorVersion][google.cloud.documentai.v1.DocumentProcessorService.EvaluateProcessorVersion]
+   * method.
    * 
* * Protobuf type {@code google.cloud.documentai.v1.EvaluateProcessorVersionResponse} diff --git a/java-document-ai/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/FetchProcessorTypesRequest.java b/java-document-ai/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/FetchProcessorTypesRequest.java index 3ed90b5304cc..93a4f4a7a632 100644 --- a/java-document-ai/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/FetchProcessorTypesRequest.java +++ b/java-document-ai/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/FetchProcessorTypesRequest.java @@ -22,7 +22,10 @@ * * *
- * Request message for fetch processor types.
+ * Request message for the
+ * [FetchProcessorTypes][google.cloud.documentai.v1.DocumentProcessorService.FetchProcessorTypes]
+ * method. Some processor types may require the project be added to an
+ * allowlist.
  * 
* * Protobuf type {@code google.cloud.documentai.v1.FetchProcessorTypesRequest} @@ -70,9 +73,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * Required. The project of processor type to list.
-   * The available processor types may depend on the allow-listing on projects.
-   * Format: `projects/{project}/locations/{location}`
+   * Required. The location of processor types to list.
+   * Format: `projects/{project}/locations/{location}`.
    * 
* * @@ -97,9 +99,8 @@ public java.lang.String getParent() { * * *
-   * Required. The project of processor type to list.
-   * The available processor types may depend on the allow-listing on projects.
-   * Format: `projects/{project}/locations/{location}`
+   * Required. The location of processor types to list.
+   * Format: `projects/{project}/locations/{location}`.
    * 
* * @@ -285,7 +286,10 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * Request message for fetch processor types.
+   * Request message for the
+   * [FetchProcessorTypes][google.cloud.documentai.v1.DocumentProcessorService.FetchProcessorTypes]
+   * method. Some processor types may require the project be added to an
+   * allowlist.
    * 
* * Protobuf type {@code google.cloud.documentai.v1.FetchProcessorTypesRequest} @@ -469,9 +473,8 @@ public Builder mergeFrom( * * *
-     * Required. The project of processor type to list.
-     * The available processor types may depend on the allow-listing on projects.
-     * Format: `projects/{project}/locations/{location}`
+     * Required. The location of processor types to list.
+     * Format: `projects/{project}/locations/{location}`.
      * 
* * @@ -495,9 +498,8 @@ public java.lang.String getParent() { * * *
-     * Required. The project of processor type to list.
-     * The available processor types may depend on the allow-listing on projects.
-     * Format: `projects/{project}/locations/{location}`
+     * Required. The location of processor types to list.
+     * Format: `projects/{project}/locations/{location}`.
      * 
* * @@ -521,9 +523,8 @@ public com.google.protobuf.ByteString getParentBytes() { * * *
-     * Required. The project of processor type to list.
-     * The available processor types may depend on the allow-listing on projects.
-     * Format: `projects/{project}/locations/{location}`
+     * Required. The location of processor types to list.
+     * Format: `projects/{project}/locations/{location}`.
      * 
* * @@ -546,9 +547,8 @@ public Builder setParent(java.lang.String value) { * * *
-     * Required. The project of processor type to list.
-     * The available processor types may depend on the allow-listing on projects.
-     * Format: `projects/{project}/locations/{location}`
+     * Required. The location of processor types to list.
+     * Format: `projects/{project}/locations/{location}`.
      * 
* * @@ -567,9 +567,8 @@ public Builder clearParent() { * * *
-     * Required. The project of processor type to list.
-     * The available processor types may depend on the allow-listing on projects.
-     * Format: `projects/{project}/locations/{location}`
+     * Required. The location of processor types to list.
+     * Format: `projects/{project}/locations/{location}`.
      * 
* * diff --git a/java-document-ai/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/FetchProcessorTypesRequestOrBuilder.java b/java-document-ai/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/FetchProcessorTypesRequestOrBuilder.java index ad73ec13ec17..63a19cce918a 100644 --- a/java-document-ai/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/FetchProcessorTypesRequestOrBuilder.java +++ b/java-document-ai/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/FetchProcessorTypesRequestOrBuilder.java @@ -27,9 +27,8 @@ public interface FetchProcessorTypesRequestOrBuilder * * *
-   * Required. The project of processor type to list.
-   * The available processor types may depend on the allow-listing on projects.
-   * Format: `projects/{project}/locations/{location}`
+   * Required. The location of processor types to list.
+   * Format: `projects/{project}/locations/{location}`.
    * 
* * @@ -43,9 +42,8 @@ public interface FetchProcessorTypesRequestOrBuilder * * *
-   * Required. The project of processor type to list.
-   * The available processor types may depend on the allow-listing on projects.
-   * Format: `projects/{project}/locations/{location}`
+   * Required. The location of processor types to list.
+   * Format: `projects/{project}/locations/{location}`.
    * 
* * diff --git a/java-document-ai/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/FetchProcessorTypesResponse.java b/java-document-ai/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/FetchProcessorTypesResponse.java index b09640563997..4a3e48e211ce 100644 --- a/java-document-ai/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/FetchProcessorTypesResponse.java +++ b/java-document-ai/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/FetchProcessorTypesResponse.java @@ -22,7 +22,9 @@ * * *
- * Response message for fetch processor types.
+ * Response message for the
+ * [FetchProcessorTypes][google.cloud.documentai.v1.DocumentProcessorService.FetchProcessorTypes]
+ * method.
  * 
* * Protobuf type {@code google.cloud.documentai.v1.FetchProcessorTypesResponse} @@ -300,7 +302,9 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * Response message for fetch processor types.
+   * Response message for the
+   * [FetchProcessorTypes][google.cloud.documentai.v1.DocumentProcessorService.FetchProcessorTypes]
+   * method.
    * 
* * Protobuf type {@code google.cloud.documentai.v1.FetchProcessorTypesResponse} diff --git a/java-document-ai/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/GetProcessorRequest.java b/java-document-ai/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/GetProcessorRequest.java index 89720e7803c4..2f11facf0c54 100644 --- a/java-document-ai/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/GetProcessorRequest.java +++ b/java-document-ai/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/GetProcessorRequest.java @@ -22,7 +22,9 @@ * * *
- * Request message for get processor.
+ * Request message for the
+ * [GetProcessor][google.cloud.documentai.v1.DocumentProcessorService.GetProcessor]
+ * method.
  * 
* * Protobuf type {@code google.cloud.documentai.v1.GetProcessorRequest} @@ -280,7 +282,9 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * Request message for get processor.
+   * Request message for the
+   * [GetProcessor][google.cloud.documentai.v1.DocumentProcessorService.GetProcessor]
+   * method.
    * 
* * Protobuf type {@code google.cloud.documentai.v1.GetProcessorRequest} diff --git a/java-document-ai/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/GetProcessorTypeRequest.java b/java-document-ai/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/GetProcessorTypeRequest.java index 70813a333991..f712c22de877 100644 --- a/java-document-ai/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/GetProcessorTypeRequest.java +++ b/java-document-ai/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/GetProcessorTypeRequest.java @@ -22,7 +22,9 @@ * * *
- * Request message for get processor.
+ * Request message for the
+ * [GetProcessorType][google.cloud.documentai.v1.DocumentProcessorService.GetProcessorType]
+ * method.
  * 
* * Protobuf type {@code google.cloud.documentai.v1.GetProcessorTypeRequest} @@ -281,7 +283,9 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * Request message for get processor.
+   * Request message for the
+   * [GetProcessorType][google.cloud.documentai.v1.DocumentProcessorService.GetProcessorType]
+   * method.
    * 
* * Protobuf type {@code google.cloud.documentai.v1.GetProcessorTypeRequest} diff --git a/java-document-ai/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/GetProcessorVersionRequest.java b/java-document-ai/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/GetProcessorVersionRequest.java index 254fd721fe00..829b750592f7 100644 --- a/java-document-ai/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/GetProcessorVersionRequest.java +++ b/java-document-ai/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/GetProcessorVersionRequest.java @@ -22,7 +22,9 @@ * * *
- * Request message for get processor version.
+ * Request message for the
+ * [GetProcessorVersion][google.cloud.documentai.v1.DocumentProcessorService.GetProcessorVersion]
+ * method.
  * 
* * Protobuf type {@code google.cloud.documentai.v1.GetProcessorVersionRequest} @@ -281,7 +283,9 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * Request message for get processor version.
+   * Request message for the
+   * [GetProcessorVersion][google.cloud.documentai.v1.DocumentProcessorService.GetProcessorVersion]
+   * method.
    * 
* * Protobuf type {@code google.cloud.documentai.v1.GetProcessorVersionRequest} diff --git a/java-document-ai/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/HumanReviewStatus.java b/java-document-ai/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/HumanReviewStatus.java index 663623f31a18..e53c87cc478a 100644 --- a/java-document-ai/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/HumanReviewStatus.java +++ b/java-document-ai/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/HumanReviewStatus.java @@ -89,7 +89,7 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { * *
      * Human review is skipped for the document. This can happen because human
-     * review is not enabled on the processor or the processing request has
+     * review isn't enabled on the processor or the processing request has
      * been set to skip this document.
      * 
* @@ -121,7 +121,8 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { * *
      * Some error happened during triggering human review, see the
-     * [state_message] for details.
+     * [state_message][google.cloud.documentai.v1.HumanReviewStatus.state_message]
+     * for details.
      * 
* * ERROR = 4; @@ -145,7 +146,7 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { * *
      * Human review is skipped for the document. This can happen because human
-     * review is not enabled on the processor or the processing request has
+     * review isn't enabled on the processor or the processing request has
      * been set to skip this document.
      * 
* @@ -177,7 +178,8 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { * *
      * Some error happened during triggering human review, see the
-     * [state_message] for details.
+     * [state_message][google.cloud.documentai.v1.HumanReviewStatus.state_message]
+     * for details.
      * 
* * ERROR = 4; @@ -368,9 +370,11 @@ public com.google.protobuf.ByteString getStateMessageBytes() { * *
    * The name of the operation triggered by the processed document. This field
-   * is populated only when the [state] is [HUMAN_REVIEW_IN_PROGRESS]. It has
-   * the same response type and metadata as the long running operation returned
-   * by [ReviewDocument] method.
+   * is populated only when the
+   * [state][google.cloud.documentai.v1.HumanReviewStatus.state] is
+   * `HUMAN_REVIEW_IN_PROGRESS`. It has the same response type and metadata as
+   * the long-running operation returned by
+   * [ReviewDocument][google.cloud.documentai.v1.DocumentProcessorService.ReviewDocument].
    * 
* * string human_review_operation = 3; @@ -394,9 +398,11 @@ public java.lang.String getHumanReviewOperation() { * *
    * The name of the operation triggered by the processed document. This field
-   * is populated only when the [state] is [HUMAN_REVIEW_IN_PROGRESS]. It has
-   * the same response type and metadata as the long running operation returned
-   * by [ReviewDocument] method.
+   * is populated only when the
+   * [state][google.cloud.documentai.v1.HumanReviewStatus.state] is
+   * `HUMAN_REVIEW_IN_PROGRESS`. It has the same response type and metadata as
+   * the long-running operation returned by
+   * [ReviewDocument][google.cloud.documentai.v1.DocumentProcessorService.ReviewDocument].
    * 
* * string human_review_operation = 3; @@ -1010,9 +1016,11 @@ public Builder setStateMessageBytes(com.google.protobuf.ByteString value) { * *
      * The name of the operation triggered by the processed document. This field
-     * is populated only when the [state] is [HUMAN_REVIEW_IN_PROGRESS]. It has
-     * the same response type and metadata as the long running operation returned
-     * by [ReviewDocument] method.
+     * is populated only when the
+     * [state][google.cloud.documentai.v1.HumanReviewStatus.state] is
+     * `HUMAN_REVIEW_IN_PROGRESS`. It has the same response type and metadata as
+     * the long-running operation returned by
+     * [ReviewDocument][google.cloud.documentai.v1.DocumentProcessorService.ReviewDocument].
      * 
* * string human_review_operation = 3; @@ -1035,9 +1043,11 @@ public java.lang.String getHumanReviewOperation() { * *
      * The name of the operation triggered by the processed document. This field
-     * is populated only when the [state] is [HUMAN_REVIEW_IN_PROGRESS]. It has
-     * the same response type and metadata as the long running operation returned
-     * by [ReviewDocument] method.
+     * is populated only when the
+     * [state][google.cloud.documentai.v1.HumanReviewStatus.state] is
+     * `HUMAN_REVIEW_IN_PROGRESS`. It has the same response type and metadata as
+     * the long-running operation returned by
+     * [ReviewDocument][google.cloud.documentai.v1.DocumentProcessorService.ReviewDocument].
      * 
* * string human_review_operation = 3; @@ -1060,9 +1070,11 @@ public com.google.protobuf.ByteString getHumanReviewOperationBytes() { * *
      * The name of the operation triggered by the processed document. This field
-     * is populated only when the [state] is [HUMAN_REVIEW_IN_PROGRESS]. It has
-     * the same response type and metadata as the long running operation returned
-     * by [ReviewDocument] method.
+     * is populated only when the
+     * [state][google.cloud.documentai.v1.HumanReviewStatus.state] is
+     * `HUMAN_REVIEW_IN_PROGRESS`. It has the same response type and metadata as
+     * the long-running operation returned by
+     * [ReviewDocument][google.cloud.documentai.v1.DocumentProcessorService.ReviewDocument].
      * 
* * string human_review_operation = 3; @@ -1084,9 +1096,11 @@ public Builder setHumanReviewOperation(java.lang.String value) { * *
      * The name of the operation triggered by the processed document. This field
-     * is populated only when the [state] is [HUMAN_REVIEW_IN_PROGRESS]. It has
-     * the same response type and metadata as the long running operation returned
-     * by [ReviewDocument] method.
+     * is populated only when the
+     * [state][google.cloud.documentai.v1.HumanReviewStatus.state] is
+     * `HUMAN_REVIEW_IN_PROGRESS`. It has the same response type and metadata as
+     * the long-running operation returned by
+     * [ReviewDocument][google.cloud.documentai.v1.DocumentProcessorService.ReviewDocument].
      * 
* * string human_review_operation = 3; @@ -1104,9 +1118,11 @@ public Builder clearHumanReviewOperation() { * *
      * The name of the operation triggered by the processed document. This field
-     * is populated only when the [state] is [HUMAN_REVIEW_IN_PROGRESS]. It has
-     * the same response type and metadata as the long running operation returned
-     * by [ReviewDocument] method.
+     * is populated only when the
+     * [state][google.cloud.documentai.v1.HumanReviewStatus.state] is
+     * `HUMAN_REVIEW_IN_PROGRESS`. It has the same response type and metadata as
+     * the long-running operation returned by
+     * [ReviewDocument][google.cloud.documentai.v1.DocumentProcessorService.ReviewDocument].
      * 
* * string human_review_operation = 3; diff --git a/java-document-ai/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/HumanReviewStatusOrBuilder.java b/java-document-ai/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/HumanReviewStatusOrBuilder.java index f802efb3e987..11210dd63e74 100644 --- a/java-document-ai/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/HumanReviewStatusOrBuilder.java +++ b/java-document-ai/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/HumanReviewStatusOrBuilder.java @@ -78,9 +78,11 @@ public interface HumanReviewStatusOrBuilder * *
    * The name of the operation triggered by the processed document. This field
-   * is populated only when the [state] is [HUMAN_REVIEW_IN_PROGRESS]. It has
-   * the same response type and metadata as the long running operation returned
-   * by [ReviewDocument] method.
+   * is populated only when the
+   * [state][google.cloud.documentai.v1.HumanReviewStatus.state] is
+   * `HUMAN_REVIEW_IN_PROGRESS`. It has the same response type and metadata as
+   * the long-running operation returned by
+   * [ReviewDocument][google.cloud.documentai.v1.DocumentProcessorService.ReviewDocument].
    * 
* * string human_review_operation = 3; @@ -93,9 +95,11 @@ public interface HumanReviewStatusOrBuilder * *
    * The name of the operation triggered by the processed document. This field
-   * is populated only when the [state] is [HUMAN_REVIEW_IN_PROGRESS]. It has
-   * the same response type and metadata as the long running operation returned
-   * by [ReviewDocument] method.
+   * is populated only when the
+   * [state][google.cloud.documentai.v1.HumanReviewStatus.state] is
+   * `HUMAN_REVIEW_IN_PROGRESS`. It has the same response type and metadata as
+   * the long-running operation returned by
+   * [ReviewDocument][google.cloud.documentai.v1.DocumentProcessorService.ReviewDocument].
    * 
* * string human_review_operation = 3; diff --git a/java-document-ai/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/ListEvaluationsRequest.java b/java-document-ai/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/ListEvaluationsRequest.java index cb72ccc728b0..ea736d6383df 100644 --- a/java-document-ai/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/ListEvaluationsRequest.java +++ b/java-document-ai/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/ListEvaluationsRequest.java @@ -22,7 +22,8 @@ * * *
- * Retrieves a list of evaluations for a given ProcessorVersion.
+ * Retrieves a list of evaluations for a given
+ * [ProcessorVersion][google.cloud.documentai.v1.ProcessorVersion].
  * 
* * Protobuf type {@code google.cloud.documentai.v1.ListEvaluationsRequest} @@ -131,8 +132,8 @@ public com.google.protobuf.ByteString getParentBytes() { * *
    * The standard list page size.
-   * If unspecified, at most 5 evaluations will be returned.
-   * The maximum value is 100; values above 100 will be coerced to 100.
+   * If unspecified, at most `5` evaluations are returned.
+   * The maximum value is `100`. Values above `100` are coerced to `100`.
    * 
* * int32 page_size = 2; @@ -379,7 +380,8 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * Retrieves a list of evaluations for a given ProcessorVersion.
+   * Retrieves a list of evaluations for a given
+   * [ProcessorVersion][google.cloud.documentai.v1.ProcessorVersion].
    * 
* * Protobuf type {@code google.cloud.documentai.v1.ListEvaluationsRequest} @@ -723,8 +725,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { * *
      * The standard list page size.
-     * If unspecified, at most 5 evaluations will be returned.
-     * The maximum value is 100; values above 100 will be coerced to 100.
+     * If unspecified, at most `5` evaluations are returned.
+     * The maximum value is `100`. Values above `100` are coerced to `100`.
      * 
* * int32 page_size = 2; @@ -740,8 +742,8 @@ public int getPageSize() { * *
      * The standard list page size.
-     * If unspecified, at most 5 evaluations will be returned.
-     * The maximum value is 100; values above 100 will be coerced to 100.
+     * If unspecified, at most `5` evaluations are returned.
+     * The maximum value is `100`. Values above `100` are coerced to `100`.
      * 
* * int32 page_size = 2; @@ -761,8 +763,8 @@ public Builder setPageSize(int value) { * *
      * The standard list page size.
-     * If unspecified, at most 5 evaluations will be returned.
-     * The maximum value is 100; values above 100 will be coerced to 100.
+     * If unspecified, at most `5` evaluations are returned.
+     * The maximum value is `100`. Values above `100` are coerced to `100`.
      * 
* * int32 page_size = 2; diff --git a/java-document-ai/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/ListEvaluationsRequestOrBuilder.java b/java-document-ai/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/ListEvaluationsRequestOrBuilder.java index 07de5f1c7c56..f14122c008c6 100644 --- a/java-document-ai/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/ListEvaluationsRequestOrBuilder.java +++ b/java-document-ai/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/ListEvaluationsRequestOrBuilder.java @@ -63,8 +63,8 @@ public interface ListEvaluationsRequestOrBuilder * *
    * The standard list page size.
-   * If unspecified, at most 5 evaluations will be returned.
-   * The maximum value is 100; values above 100 will be coerced to 100.
+   * If unspecified, at most `5` evaluations are returned.
+   * The maximum value is `100`. Values above `100` are coerced to `100`.
    * 
* * int32 page_size = 2; diff --git a/java-document-ai/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/ListEvaluationsResponse.java b/java-document-ai/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/ListEvaluationsResponse.java index 3161884ae39d..c73e0f988bcf 100644 --- a/java-document-ai/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/ListEvaluationsResponse.java +++ b/java-document-ai/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/ListEvaluationsResponse.java @@ -22,7 +22,7 @@ * * *
- * The response from ListEvaluations.
+ * The response from `ListEvaluations`.
  * 
* * Protobuf type {@code google.cloud.documentai.v1.ListEvaluationsResponse} @@ -362,7 +362,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * The response from ListEvaluations.
+   * The response from `ListEvaluations`.
    * 
* * Protobuf type {@code google.cloud.documentai.v1.ListEvaluationsResponse} diff --git a/java-document-ai/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/ListProcessorTypesRequest.java b/java-document-ai/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/ListProcessorTypesRequest.java index 5276c3221e46..c7eea121762a 100644 --- a/java-document-ai/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/ListProcessorTypesRequest.java +++ b/java-document-ai/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/ListProcessorTypesRequest.java @@ -22,7 +22,10 @@ * * *
- * Request message for list processor types.
+ * Request message for the
+ * [ListProcessorTypes][google.cloud.documentai.v1.DocumentProcessorService.ListProcessorTypes]
+ * method. Some processor types may require the project be added to an
+ * allowlist.
  * 
* * Protobuf type {@code google.cloud.documentai.v1.ListProcessorTypesRequest} @@ -71,9 +74,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * Required. The location of processor type to list.
-   * The available processor types may depend on the allow-listing on projects.
-   * Format: `projects/{project}/locations/{location}`
+   * Required. The location of processor types to list.
+   * Format: `projects/{project}/locations/{location}`.
    * 
* * @@ -98,9 +100,8 @@ public java.lang.String getParent() { * * *
-   * Required. The location of processor type to list.
-   * The available processor types may depend on the allow-listing on projects.
-   * Format: `projects/{project}/locations/{location}`
+   * Required. The location of processor types to list.
+   * Format: `projects/{project}/locations/{location}`.
    * 
* * @@ -129,8 +130,8 @@ public com.google.protobuf.ByteString getParentBytes() { * *
    * The maximum number of processor types to return.
-   * If unspecified, at most 100 processor types will be returned.
-   * The maximum value is 500; values above 500 will be coerced to 500.
+   * If unspecified, at most `100` processor types will be returned.
+   * The maximum value is `500`. Values above `500` will be coerced to `500`.
    * 
* * int32 page_size = 2; @@ -375,7 +376,10 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * Request message for list processor types.
+   * Request message for the
+   * [ListProcessorTypes][google.cloud.documentai.v1.DocumentProcessorService.ListProcessorTypes]
+   * method. Some processor types may require the project be added to an
+   * allowlist.
    * 
* * Protobuf type {@code google.cloud.documentai.v1.ListProcessorTypesRequest} @@ -587,9 +591,8 @@ public Builder mergeFrom( * * *
-     * Required. The location of processor type to list.
-     * The available processor types may depend on the allow-listing on projects.
-     * Format: `projects/{project}/locations/{location}`
+     * Required. The location of processor types to list.
+     * Format: `projects/{project}/locations/{location}`.
      * 
* * @@ -613,9 +616,8 @@ public java.lang.String getParent() { * * *
-     * Required. The location of processor type to list.
-     * The available processor types may depend on the allow-listing on projects.
-     * Format: `projects/{project}/locations/{location}`
+     * Required. The location of processor types to list.
+     * Format: `projects/{project}/locations/{location}`.
      * 
* * @@ -639,9 +641,8 @@ public com.google.protobuf.ByteString getParentBytes() { * * *
-     * Required. The location of processor type to list.
-     * The available processor types may depend on the allow-listing on projects.
-     * Format: `projects/{project}/locations/{location}`
+     * Required. The location of processor types to list.
+     * Format: `projects/{project}/locations/{location}`.
      * 
* * @@ -664,9 +665,8 @@ public Builder setParent(java.lang.String value) { * * *
-     * Required. The location of processor type to list.
-     * The available processor types may depend on the allow-listing on projects.
-     * Format: `projects/{project}/locations/{location}`
+     * Required. The location of processor types to list.
+     * Format: `projects/{project}/locations/{location}`.
      * 
* * @@ -685,9 +685,8 @@ public Builder clearParent() { * * *
-     * Required. The location of processor type to list.
-     * The available processor types may depend on the allow-listing on projects.
-     * Format: `projects/{project}/locations/{location}`
+     * Required. The location of processor types to list.
+     * Format: `projects/{project}/locations/{location}`.
      * 
* * @@ -714,8 +713,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { * *
      * The maximum number of processor types to return.
-     * If unspecified, at most 100 processor types will be returned.
-     * The maximum value is 500; values above 500 will be coerced to 500.
+     * If unspecified, at most `100` processor types will be returned.
+     * The maximum value is `500`. Values above `500` will be coerced to `500`.
      * 
* * int32 page_size = 2; @@ -731,8 +730,8 @@ public int getPageSize() { * *
      * The maximum number of processor types to return.
-     * If unspecified, at most 100 processor types will be returned.
-     * The maximum value is 500; values above 500 will be coerced to 500.
+     * If unspecified, at most `100` processor types will be returned.
+     * The maximum value is `500`. Values above `500` will be coerced to `500`.
      * 
* * int32 page_size = 2; @@ -752,8 +751,8 @@ public Builder setPageSize(int value) { * *
      * The maximum number of processor types to return.
-     * If unspecified, at most 100 processor types will be returned.
-     * The maximum value is 500; values above 500 will be coerced to 500.
+     * If unspecified, at most `100` processor types will be returned.
+     * The maximum value is `500`. Values above `500` will be coerced to `500`.
      * 
* * int32 page_size = 2; diff --git a/java-document-ai/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/ListProcessorTypesRequestOrBuilder.java b/java-document-ai/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/ListProcessorTypesRequestOrBuilder.java index 180f6bd86b9e..394b3d4c5fa5 100644 --- a/java-document-ai/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/ListProcessorTypesRequestOrBuilder.java +++ b/java-document-ai/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/ListProcessorTypesRequestOrBuilder.java @@ -27,9 +27,8 @@ public interface ListProcessorTypesRequestOrBuilder * * *
-   * Required. The location of processor type to list.
-   * The available processor types may depend on the allow-listing on projects.
-   * Format: `projects/{project}/locations/{location}`
+   * Required. The location of processor types to list.
+   * Format: `projects/{project}/locations/{location}`.
    * 
* * @@ -43,9 +42,8 @@ public interface ListProcessorTypesRequestOrBuilder * * *
-   * Required. The location of processor type to list.
-   * The available processor types may depend on the allow-listing on projects.
-   * Format: `projects/{project}/locations/{location}`
+   * Required. The location of processor types to list.
+   * Format: `projects/{project}/locations/{location}`.
    * 
* * @@ -61,8 +59,8 @@ public interface ListProcessorTypesRequestOrBuilder * *
    * The maximum number of processor types to return.
-   * If unspecified, at most 100 processor types will be returned.
-   * The maximum value is 500; values above 500 will be coerced to 500.
+   * If unspecified, at most `100` processor types will be returned.
+   * The maximum value is `500`. Values above `500` will be coerced to `500`.
    * 
* * int32 page_size = 2; diff --git a/java-document-ai/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/ListProcessorTypesResponse.java b/java-document-ai/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/ListProcessorTypesResponse.java index 0578b0cab54b..d928f1d4750f 100644 --- a/java-document-ai/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/ListProcessorTypesResponse.java +++ b/java-document-ai/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/ListProcessorTypesResponse.java @@ -22,7 +22,9 @@ * * *
- * Response message for list processor types.
+ * Response message for the
+ * [ListProcessorTypes][google.cloud.documentai.v1.DocumentProcessorService.ListProcessorTypes]
+ * method.
  * 
* * Protobuf type {@code google.cloud.documentai.v1.ListProcessorTypesResponse} @@ -361,7 +363,9 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * Response message for list processor types.
+   * Response message for the
+   * [ListProcessorTypes][google.cloud.documentai.v1.DocumentProcessorService.ListProcessorTypes]
+   * method.
    * 
* * Protobuf type {@code google.cloud.documentai.v1.ListProcessorTypesResponse} diff --git a/java-document-ai/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/ListProcessorVersionsRequest.java b/java-document-ai/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/ListProcessorVersionsRequest.java index ec087cd9e195..5bee1e3f6ab4 100644 --- a/java-document-ai/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/ListProcessorVersionsRequest.java +++ b/java-document-ai/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/ListProcessorVersionsRequest.java @@ -129,8 +129,8 @@ public com.google.protobuf.ByteString getParentBytes() { * *
    * The maximum number of processor versions to return.
-   * If unspecified, at most 10 processor versions will be returned.
-   * The maximum value is 20; values above 20 will be coerced to 20.
+   * If unspecified, at most `10` processor versions will be returned.
+   * The maximum value is `20`. Values above `20` will be coerced to `20`.
    * 
* * int32 page_size = 2; @@ -716,8 +716,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { * *
      * The maximum number of processor versions to return.
-     * If unspecified, at most 10 processor versions will be returned.
-     * The maximum value is 20; values above 20 will be coerced to 20.
+     * If unspecified, at most `10` processor versions will be returned.
+     * The maximum value is `20`. Values above `20` will be coerced to `20`.
      * 
* * int32 page_size = 2; @@ -733,8 +733,8 @@ public int getPageSize() { * *
      * The maximum number of processor versions to return.
-     * If unspecified, at most 10 processor versions will be returned.
-     * The maximum value is 20; values above 20 will be coerced to 20.
+     * If unspecified, at most `10` processor versions will be returned.
+     * The maximum value is `20`. Values above `20` will be coerced to `20`.
      * 
* * int32 page_size = 2; @@ -754,8 +754,8 @@ public Builder setPageSize(int value) { * *
      * The maximum number of processor versions to return.
-     * If unspecified, at most 10 processor versions will be returned.
-     * The maximum value is 20; values above 20 will be coerced to 20.
+     * If unspecified, at most `10` processor versions will be returned.
+     * The maximum value is `20`. Values above `20` will be coerced to `20`.
      * 
* * int32 page_size = 2; diff --git a/java-document-ai/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/ListProcessorVersionsRequestOrBuilder.java b/java-document-ai/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/ListProcessorVersionsRequestOrBuilder.java index 32ac95d0decc..ad97004a4813 100644 --- a/java-document-ai/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/ListProcessorVersionsRequestOrBuilder.java +++ b/java-document-ai/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/ListProcessorVersionsRequestOrBuilder.java @@ -61,8 +61,8 @@ public interface ListProcessorVersionsRequestOrBuilder * *
    * The maximum number of processor versions to return.
-   * If unspecified, at most 10 processor versions will be returned.
-   * The maximum value is 20; values above 20 will be coerced to 20.
+   * If unspecified, at most `10` processor versions will be returned.
+   * The maximum value is `20`. Values above `20` will be coerced to `20`.
    * 
* * int32 page_size = 2; diff --git a/java-document-ai/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/ListProcessorVersionsResponse.java b/java-document-ai/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/ListProcessorVersionsResponse.java index e26acda02bd2..3410012cf9b4 100644 --- a/java-document-ai/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/ListProcessorVersionsResponse.java +++ b/java-document-ai/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/ListProcessorVersionsResponse.java @@ -22,7 +22,9 @@ * * *
- * Response message for list processors.
+ * Response message for the
+ * [ListProcessorVersions][google.cloud.documentai.v1.DocumentProcessorService.ListProcessorVersions]
+ * method.
  * 
* * Protobuf type {@code google.cloud.documentai.v1.ListProcessorVersionsResponse} @@ -363,7 +365,9 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * Response message for list processors.
+   * Response message for the
+   * [ListProcessorVersions][google.cloud.documentai.v1.DocumentProcessorService.ListProcessorVersions]
+   * method.
    * 
* * Protobuf type {@code google.cloud.documentai.v1.ListProcessorVersionsResponse} diff --git a/java-document-ai/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/ListProcessorsRequest.java b/java-document-ai/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/ListProcessorsRequest.java index e6b5582f30a7..372f1546e881 100644 --- a/java-document-ai/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/ListProcessorsRequest.java +++ b/java-document-ai/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/ListProcessorsRequest.java @@ -127,8 +127,8 @@ public com.google.protobuf.ByteString getParentBytes() { * *
    * The maximum number of processors to return.
-   * If unspecified, at most 50 processors will be returned.
-   * The maximum value is 100; values above 100 will be coerced to 100.
+   * If unspecified, at most `50` processors will be returned.
+   * The maximum value is `100`. Values above `100` will be coerced to `100`.
    * 
* * int32 page_size = 2; @@ -708,8 +708,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { * *
      * The maximum number of processors to return.
-     * If unspecified, at most 50 processors will be returned.
-     * The maximum value is 100; values above 100 will be coerced to 100.
+     * If unspecified, at most `50` processors will be returned.
+     * The maximum value is `100`. Values above `100` will be coerced to `100`.
      * 
* * int32 page_size = 2; @@ -725,8 +725,8 @@ public int getPageSize() { * *
      * The maximum number of processors to return.
-     * If unspecified, at most 50 processors will be returned.
-     * The maximum value is 100; values above 100 will be coerced to 100.
+     * If unspecified, at most `50` processors will be returned.
+     * The maximum value is `100`. Values above `100` will be coerced to `100`.
      * 
* * int32 page_size = 2; @@ -746,8 +746,8 @@ public Builder setPageSize(int value) { * *
      * The maximum number of processors to return.
-     * If unspecified, at most 50 processors will be returned.
-     * The maximum value is 100; values above 100 will be coerced to 100.
+     * If unspecified, at most `50` processors will be returned.
+     * The maximum value is `100`. Values above `100` will be coerced to `100`.
      * 
* * int32 page_size = 2; diff --git a/java-document-ai/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/ListProcessorsRequestOrBuilder.java b/java-document-ai/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/ListProcessorsRequestOrBuilder.java index cc28fadbd588..eadbbc5b1417 100644 --- a/java-document-ai/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/ListProcessorsRequestOrBuilder.java +++ b/java-document-ai/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/ListProcessorsRequestOrBuilder.java @@ -59,8 +59,8 @@ public interface ListProcessorsRequestOrBuilder * *
    * The maximum number of processors to return.
-   * If unspecified, at most 50 processors will be returned.
-   * The maximum value is 100; values above 100 will be coerced to 100.
+   * If unspecified, at most `50` processors will be returned.
+   * The maximum value is `100`. Values above `100` will be coerced to `100`.
    * 
* * int32 page_size = 2; diff --git a/java-document-ai/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/ListProcessorsResponse.java b/java-document-ai/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/ListProcessorsResponse.java index e3e2e49292ad..ee16d37dfa2f 100644 --- a/java-document-ai/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/ListProcessorsResponse.java +++ b/java-document-ai/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/ListProcessorsResponse.java @@ -22,7 +22,9 @@ * * *
- * Response message for list processors.
+ * Response message for the
+ * [ListProcessors][google.cloud.documentai.v1.DocumentProcessorService.ListProcessors]
+ * method.
  * 
* * Protobuf type {@code google.cloud.documentai.v1.ListProcessorsResponse} @@ -360,7 +362,9 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * Response message for list processors.
+   * Response message for the
+   * [ListProcessors][google.cloud.documentai.v1.DocumentProcessorService.ListProcessors]
+   * method.
    * 
* * Protobuf type {@code google.cloud.documentai.v1.ListProcessorsResponse} diff --git a/java-document-ai/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/ProcessRequest.java b/java-document-ai/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/ProcessRequest.java index f7cf9dcb507e..43afb063244b 100644 --- a/java-document-ai/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/ProcessRequest.java +++ b/java-document-ai/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/ProcessRequest.java @@ -22,7 +22,9 @@ * * *
- * Request message for the process document method.
+ * Request message for the
+ * [ProcessDocument][google.cloud.documentai.v1.DocumentProcessorService.ProcessDocument]
+ * method.
  * 
* * Protobuf type {@code google.cloud.documentai.v1.ProcessRequest} @@ -292,8 +294,8 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
-   * Whether Human Review feature should be skipped for this request. Default to
-   * false.
+   * Whether human review should be skipped for this request. Default to
+   * `false`.
    * 
* * bool skip_human_review = 3; @@ -311,9 +313,10 @@ public boolean getSkipHumanReview() { * * *
-   * Specifies which fields to include in ProcessResponse's document.
-   * Only supports top level document and pages field so it must be in the form
-   * of `{document_field_name}` or `pages.{page_field_name}`.
+   * Specifies which fields to include in the
+   * [ProcessResponse.document][google.cloud.documentai.v1.ProcessResponse.document]
+   * output. Only supports top-level document and pages field, so it must be in
+   * the form of `{document_field_name}` or `pages.{page_field_name}`.
    * 
* * .google.protobuf.FieldMask field_mask = 6; @@ -328,9 +331,10 @@ public boolean hasFieldMask() { * * *
-   * Specifies which fields to include in ProcessResponse's document.
-   * Only supports top level document and pages field so it must be in the form
-   * of `{document_field_name}` or `pages.{page_field_name}`.
+   * Specifies which fields to include in the
+   * [ProcessResponse.document][google.cloud.documentai.v1.ProcessResponse.document]
+   * output. Only supports top-level document and pages field, so it must be in
+   * the form of `{document_field_name}` or `pages.{page_field_name}`.
    * 
* * .google.protobuf.FieldMask field_mask = 6; @@ -345,9 +349,10 @@ public com.google.protobuf.FieldMask getFieldMask() { * * *
-   * Specifies which fields to include in ProcessResponse's document.
-   * Only supports top level document and pages field so it must be in the form
-   * of `{document_field_name}` or `pages.{page_field_name}`.
+   * Specifies which fields to include in the
+   * [ProcessResponse.document][google.cloud.documentai.v1.ProcessResponse.document]
+   * output. Only supports top-level document and pages field, so it must be in
+   * the form of `{document_field_name}` or `pages.{page_field_name}`.
    * 
* * .google.protobuf.FieldMask field_mask = 6; @@ -582,7 +587,9 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * Request message for the process document method.
+   * Request message for the
+   * [ProcessDocument][google.cloud.documentai.v1.DocumentProcessorService.ProcessDocument]
+   * method.
    * 
* * Protobuf type {@code google.cloud.documentai.v1.ProcessRequest} @@ -1436,8 +1443,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { * * *
-     * Whether Human Review feature should be skipped for this request. Default to
-     * false.
+     * Whether human review should be skipped for this request. Default to
+     * `false`.
      * 
* * bool skip_human_review = 3; @@ -1452,8 +1459,8 @@ public boolean getSkipHumanReview() { * * *
-     * Whether Human Review feature should be skipped for this request. Default to
-     * false.
+     * Whether human review should be skipped for this request. Default to
+     * `false`.
      * 
* * bool skip_human_review = 3; @@ -1472,8 +1479,8 @@ public Builder setSkipHumanReview(boolean value) { * * *
-     * Whether Human Review feature should be skipped for this request. Default to
-     * false.
+     * Whether human review should be skipped for this request. Default to
+     * `false`.
      * 
* * bool skip_human_review = 3; @@ -1497,9 +1504,10 @@ public Builder clearSkipHumanReview() { * * *
-     * Specifies which fields to include in ProcessResponse's document.
-     * Only supports top level document and pages field so it must be in the form
-     * of `{document_field_name}` or `pages.{page_field_name}`.
+     * Specifies which fields to include in the
+     * [ProcessResponse.document][google.cloud.documentai.v1.ProcessResponse.document]
+     * output. Only supports top-level document and pages field, so it must be in
+     * the form of `{document_field_name}` or `pages.{page_field_name}`.
      * 
* * .google.protobuf.FieldMask field_mask = 6; @@ -1513,9 +1521,10 @@ public boolean hasFieldMask() { * * *
-     * Specifies which fields to include in ProcessResponse's document.
-     * Only supports top level document and pages field so it must be in the form
-     * of `{document_field_name}` or `pages.{page_field_name}`.
+     * Specifies which fields to include in the
+     * [ProcessResponse.document][google.cloud.documentai.v1.ProcessResponse.document]
+     * output. Only supports top-level document and pages field, so it must be in
+     * the form of `{document_field_name}` or `pages.{page_field_name}`.
      * 
* * .google.protobuf.FieldMask field_mask = 6; @@ -1533,9 +1542,10 @@ public com.google.protobuf.FieldMask getFieldMask() { * * *
-     * Specifies which fields to include in ProcessResponse's document.
-     * Only supports top level document and pages field so it must be in the form
-     * of `{document_field_name}` or `pages.{page_field_name}`.
+     * Specifies which fields to include in the
+     * [ProcessResponse.document][google.cloud.documentai.v1.ProcessResponse.document]
+     * output. Only supports top-level document and pages field, so it must be in
+     * the form of `{document_field_name}` or `pages.{page_field_name}`.
      * 
* * .google.protobuf.FieldMask field_mask = 6; @@ -1557,9 +1567,10 @@ public Builder setFieldMask(com.google.protobuf.FieldMask value) { * * *
-     * Specifies which fields to include in ProcessResponse's document.
-     * Only supports top level document and pages field so it must be in the form
-     * of `{document_field_name}` or `pages.{page_field_name}`.
+     * Specifies which fields to include in the
+     * [ProcessResponse.document][google.cloud.documentai.v1.ProcessResponse.document]
+     * output. Only supports top-level document and pages field, so it must be in
+     * the form of `{document_field_name}` or `pages.{page_field_name}`.
      * 
* * .google.protobuf.FieldMask field_mask = 6; @@ -1578,9 +1589,10 @@ public Builder setFieldMask(com.google.protobuf.FieldMask.Builder builderForValu * * *
-     * Specifies which fields to include in ProcessResponse's document.
-     * Only supports top level document and pages field so it must be in the form
-     * of `{document_field_name}` or `pages.{page_field_name}`.
+     * Specifies which fields to include in the
+     * [ProcessResponse.document][google.cloud.documentai.v1.ProcessResponse.document]
+     * output. Only supports top-level document and pages field, so it must be in
+     * the form of `{document_field_name}` or `pages.{page_field_name}`.
      * 
* * .google.protobuf.FieldMask field_mask = 6; @@ -1605,9 +1617,10 @@ public Builder mergeFieldMask(com.google.protobuf.FieldMask value) { * * *
-     * Specifies which fields to include in ProcessResponse's document.
-     * Only supports top level document and pages field so it must be in the form
-     * of `{document_field_name}` or `pages.{page_field_name}`.
+     * Specifies which fields to include in the
+     * [ProcessResponse.document][google.cloud.documentai.v1.ProcessResponse.document]
+     * output. Only supports top-level document and pages field, so it must be in
+     * the form of `{document_field_name}` or `pages.{page_field_name}`.
      * 
* * .google.protobuf.FieldMask field_mask = 6; @@ -1626,9 +1639,10 @@ public Builder clearFieldMask() { * * *
-     * Specifies which fields to include in ProcessResponse's document.
-     * Only supports top level document and pages field so it must be in the form
-     * of `{document_field_name}` or `pages.{page_field_name}`.
+     * Specifies which fields to include in the
+     * [ProcessResponse.document][google.cloud.documentai.v1.ProcessResponse.document]
+     * output. Only supports top-level document and pages field, so it must be in
+     * the form of `{document_field_name}` or `pages.{page_field_name}`.
      * 
* * .google.protobuf.FieldMask field_mask = 6; @@ -1642,9 +1656,10 @@ public com.google.protobuf.FieldMask.Builder getFieldMaskBuilder() { * * *
-     * Specifies which fields to include in ProcessResponse's document.
-     * Only supports top level document and pages field so it must be in the form
-     * of `{document_field_name}` or `pages.{page_field_name}`.
+     * Specifies which fields to include in the
+     * [ProcessResponse.document][google.cloud.documentai.v1.ProcessResponse.document]
+     * output. Only supports top-level document and pages field, so it must be in
+     * the form of `{document_field_name}` or `pages.{page_field_name}`.
      * 
* * .google.protobuf.FieldMask field_mask = 6; @@ -1660,9 +1675,10 @@ public com.google.protobuf.FieldMaskOrBuilder getFieldMaskOrBuilder() { * * *
-     * Specifies which fields to include in ProcessResponse's document.
-     * Only supports top level document and pages field so it must be in the form
-     * of `{document_field_name}` or `pages.{page_field_name}`.
+     * Specifies which fields to include in the
+     * [ProcessResponse.document][google.cloud.documentai.v1.ProcessResponse.document]
+     * output. Only supports top-level document and pages field, so it must be in
+     * the form of `{document_field_name}` or `pages.{page_field_name}`.
      * 
* * .google.protobuf.FieldMask field_mask = 6; diff --git a/java-document-ai/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/ProcessRequestOrBuilder.java b/java-document-ai/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/ProcessRequestOrBuilder.java index d3c4f80ffe70..dff7ebcf50d3 100644 --- a/java-document-ai/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/ProcessRequestOrBuilder.java +++ b/java-document-ai/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/ProcessRequestOrBuilder.java @@ -144,8 +144,8 @@ public interface ProcessRequestOrBuilder * * *
-   * Whether Human Review feature should be skipped for this request. Default to
-   * false.
+   * Whether human review should be skipped for this request. Default to
+   * `false`.
    * 
* * bool skip_human_review = 3; @@ -158,9 +158,10 @@ public interface ProcessRequestOrBuilder * * *
-   * Specifies which fields to include in ProcessResponse's document.
-   * Only supports top level document and pages field so it must be in the form
-   * of `{document_field_name}` or `pages.{page_field_name}`.
+   * Specifies which fields to include in the
+   * [ProcessResponse.document][google.cloud.documentai.v1.ProcessResponse.document]
+   * output. Only supports top-level document and pages field, so it must be in
+   * the form of `{document_field_name}` or `pages.{page_field_name}`.
    * 
* * .google.protobuf.FieldMask field_mask = 6; @@ -172,9 +173,10 @@ public interface ProcessRequestOrBuilder * * *
-   * Specifies which fields to include in ProcessResponse's document.
-   * Only supports top level document and pages field so it must be in the form
-   * of `{document_field_name}` or `pages.{page_field_name}`.
+   * Specifies which fields to include in the
+   * [ProcessResponse.document][google.cloud.documentai.v1.ProcessResponse.document]
+   * output. Only supports top-level document and pages field, so it must be in
+   * the form of `{document_field_name}` or `pages.{page_field_name}`.
    * 
* * .google.protobuf.FieldMask field_mask = 6; @@ -186,9 +188,10 @@ public interface ProcessRequestOrBuilder * * *
-   * Specifies which fields to include in ProcessResponse's document.
-   * Only supports top level document and pages field so it must be in the form
-   * of `{document_field_name}` or `pages.{page_field_name}`.
+   * Specifies which fields to include in the
+   * [ProcessResponse.document][google.cloud.documentai.v1.ProcessResponse.document]
+   * output. Only supports top-level document and pages field, so it must be in
+   * the form of `{document_field_name}` or `pages.{page_field_name}`.
    * 
* * .google.protobuf.FieldMask field_mask = 6; diff --git a/java-document-ai/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/ProcessResponse.java b/java-document-ai/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/ProcessResponse.java index 14c9c2c88c29..328f1c94d64b 100644 --- a/java-document-ai/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/ProcessResponse.java +++ b/java-document-ai/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/ProcessResponse.java @@ -22,7 +22,9 @@ * * *
- * Response message for the process document method.
+ * Response message for the
+ * [ProcessDocument][google.cloud.documentai.v1.DocumentProcessorService.ProcessDocument]
+ * method.
  * 
* * Protobuf type {@code google.cloud.documentai.v1.ProcessResponse} @@ -345,7 +347,9 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * Response message for the process document method.
+   * Response message for the
+   * [ProcessDocument][google.cloud.documentai.v1.DocumentProcessorService.ProcessDocument]
+   * method.
    * 
* * Protobuf type {@code google.cloud.documentai.v1.ProcessResponse} diff --git a/java-document-ai/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/Processor.java b/java-document-ai/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/Processor.java index ad6b38c66eca..63405d32ef41 100644 --- a/java-document-ai/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/Processor.java +++ b/java-document-ai/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/Processor.java @@ -417,8 +417,8 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
-   * The processor type, e.g., `OCR_PROCESSOR`, `INVOICE_PROCESSOR`, etc.
-   * To get a list of processors types, see
+   * The processor type, such as: `OCR_PROCESSOR`, `INVOICE_PROCESSOR`.
+   * To get a list of processor types, see
    * [FetchProcessorTypes][google.cloud.documentai.v1.DocumentProcessorService.FetchProcessorTypes].
    * 
* @@ -442,8 +442,8 @@ public java.lang.String getType() { * * *
-   * The processor type, e.g., `OCR_PROCESSOR`, `INVOICE_PROCESSOR`, etc.
-   * To get a list of processors types, see
+   * The processor type, such as: `OCR_PROCESSOR`, `INVOICE_PROCESSOR`.
+   * To get a list of processor types, see
    * [FetchProcessorTypes][google.cloud.documentai.v1.DocumentProcessorService.FetchProcessorTypes].
    * 
* @@ -716,8 +716,8 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { * * *
-   * The KMS key used for encryption/decryption in CMEK scenarios.
-   * See https://cloud.google.com/security-key-management.
+   * The [KMS key](https://cloud.google.com/security-key-management) used for
+   * encryption and decryption in CMEK scenarios.
    * 
* * string kms_key_name = 8; @@ -740,8 +740,8 @@ public java.lang.String getKmsKeyName() { * * *
-   * The KMS key used for encryption/decryption in CMEK scenarios.
-   * See https://cloud.google.com/security-key-management.
+   * The [KMS key](https://cloud.google.com/security-key-management) used for
+   * encryption and decryption in CMEK scenarios.
    * 
* * string kms_key_name = 8; @@ -1401,8 +1401,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { * * *
-     * The processor type, e.g., `OCR_PROCESSOR`, `INVOICE_PROCESSOR`, etc.
-     * To get a list of processors types, see
+     * The processor type, such as: `OCR_PROCESSOR`, `INVOICE_PROCESSOR`.
+     * To get a list of processor types, see
      * [FetchProcessorTypes][google.cloud.documentai.v1.DocumentProcessorService.FetchProcessorTypes].
      * 
* @@ -1425,8 +1425,8 @@ public java.lang.String getType() { * * *
-     * The processor type, e.g., `OCR_PROCESSOR`, `INVOICE_PROCESSOR`, etc.
-     * To get a list of processors types, see
+     * The processor type, such as: `OCR_PROCESSOR`, `INVOICE_PROCESSOR`.
+     * To get a list of processor types, see
      * [FetchProcessorTypes][google.cloud.documentai.v1.DocumentProcessorService.FetchProcessorTypes].
      * 
* @@ -1449,8 +1449,8 @@ public com.google.protobuf.ByteString getTypeBytes() { * * *
-     * The processor type, e.g., `OCR_PROCESSOR`, `INVOICE_PROCESSOR`, etc.
-     * To get a list of processors types, see
+     * The processor type, such as: `OCR_PROCESSOR`, `INVOICE_PROCESSOR`.
+     * To get a list of processor types, see
      * [FetchProcessorTypes][google.cloud.documentai.v1.DocumentProcessorService.FetchProcessorTypes].
      * 
* @@ -1472,8 +1472,8 @@ public Builder setType(java.lang.String value) { * * *
-     * The processor type, e.g., `OCR_PROCESSOR`, `INVOICE_PROCESSOR`, etc.
-     * To get a list of processors types, see
+     * The processor type, such as: `OCR_PROCESSOR`, `INVOICE_PROCESSOR`.
+     * To get a list of processor types, see
      * [FetchProcessorTypes][google.cloud.documentai.v1.DocumentProcessorService.FetchProcessorTypes].
      * 
* @@ -1491,8 +1491,8 @@ public Builder clearType() { * * *
-     * The processor type, e.g., `OCR_PROCESSOR`, `INVOICE_PROCESSOR`, etc.
-     * To get a list of processors types, see
+     * The processor type, such as: `OCR_PROCESSOR`, `INVOICE_PROCESSOR`.
+     * To get a list of processor types, see
      * [FetchProcessorTypes][google.cloud.documentai.v1.DocumentProcessorService.FetchProcessorTypes].
      * 
* @@ -2133,8 +2133,8 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { * * *
-     * The KMS key used for encryption/decryption in CMEK scenarios.
-     * See https://cloud.google.com/security-key-management.
+     * The [KMS key](https://cloud.google.com/security-key-management) used for
+     * encryption and decryption in CMEK scenarios.
      * 
* * string kms_key_name = 8; @@ -2156,8 +2156,8 @@ public java.lang.String getKmsKeyName() { * * *
-     * The KMS key used for encryption/decryption in CMEK scenarios.
-     * See https://cloud.google.com/security-key-management.
+     * The [KMS key](https://cloud.google.com/security-key-management) used for
+     * encryption and decryption in CMEK scenarios.
      * 
* * string kms_key_name = 8; @@ -2179,8 +2179,8 @@ public com.google.protobuf.ByteString getKmsKeyNameBytes() { * * *
-     * The KMS key used for encryption/decryption in CMEK scenarios.
-     * See https://cloud.google.com/security-key-management.
+     * The [KMS key](https://cloud.google.com/security-key-management) used for
+     * encryption and decryption in CMEK scenarios.
      * 
* * string kms_key_name = 8; @@ -2201,8 +2201,8 @@ public Builder setKmsKeyName(java.lang.String value) { * * *
-     * The KMS key used for encryption/decryption in CMEK scenarios.
-     * See https://cloud.google.com/security-key-management.
+     * The [KMS key](https://cloud.google.com/security-key-management) used for
+     * encryption and decryption in CMEK scenarios.
      * 
* * string kms_key_name = 8; @@ -2219,8 +2219,8 @@ public Builder clearKmsKeyName() { * * *
-     * The KMS key used for encryption/decryption in CMEK scenarios.
-     * See https://cloud.google.com/security-key-management.
+     * The [KMS key](https://cloud.google.com/security-key-management) used for
+     * encryption and decryption in CMEK scenarios.
      * 
* * string kms_key_name = 8; diff --git a/java-document-ai/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/ProcessorOrBuilder.java b/java-document-ai/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/ProcessorOrBuilder.java index b97bcb4f838e..226ca06cbc23 100644 --- a/java-document-ai/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/ProcessorOrBuilder.java +++ b/java-document-ai/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/ProcessorOrBuilder.java @@ -58,8 +58,8 @@ public interface ProcessorOrBuilder * * *
-   * The processor type, e.g., `OCR_PROCESSOR`, `INVOICE_PROCESSOR`, etc.
-   * To get a list of processors types, see
+   * The processor type, such as: `OCR_PROCESSOR`, `INVOICE_PROCESSOR`.
+   * To get a list of processor types, see
    * [FetchProcessorTypes][google.cloud.documentai.v1.DocumentProcessorService.FetchProcessorTypes].
    * 
* @@ -72,8 +72,8 @@ public interface ProcessorOrBuilder * * *
-   * The processor type, e.g., `OCR_PROCESSOR`, `INVOICE_PROCESSOR`, etc.
-   * To get a list of processors types, see
+   * The processor type, such as: `OCR_PROCESSOR`, `INVOICE_PROCESSOR`.
+   * To get a list of processor types, see
    * [FetchProcessorTypes][google.cloud.documentai.v1.DocumentProcessorService.FetchProcessorTypes].
    * 
* @@ -232,8 +232,8 @@ public interface ProcessorOrBuilder * * *
-   * The KMS key used for encryption/decryption in CMEK scenarios.
-   * See https://cloud.google.com/security-key-management.
+   * The [KMS key](https://cloud.google.com/security-key-management) used for
+   * encryption and decryption in CMEK scenarios.
    * 
* * string kms_key_name = 8; @@ -245,8 +245,8 @@ public interface ProcessorOrBuilder * * *
-   * The KMS key used for encryption/decryption in CMEK scenarios.
-   * See https://cloud.google.com/security-key-management.
+   * The [KMS key](https://cloud.google.com/security-key-management) used for
+   * encryption and decryption in CMEK scenarios.
    * 
* * string kms_key_name = 8; diff --git a/java-document-ai/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/ProcessorType.java b/java-document-ai/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/ProcessorType.java index e6e97dab67b0..d5216302ec56 100644 --- a/java-document-ai/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/ProcessorType.java +++ b/java-document-ai/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/ProcessorType.java @@ -77,7 +77,8 @@ public interface LocationInfoOrBuilder * * *
-     * The location id, currently must be one of [us, eu].
+     * The location ID. For supported locations, refer to [regional and
+     * multi-regional support](/document-ai/docs/regions).
      * 
* * string location_id = 1; @@ -89,7 +90,8 @@ public interface LocationInfoOrBuilder * * *
-     * The location id, currently must be one of [us, eu].
+     * The location ID. For supported locations, refer to [regional and
+     * multi-regional support](/document-ai/docs/regions).
      * 
* * string location_id = 1; @@ -150,7 +152,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-     * The location id, currently must be one of [us, eu].
+     * The location ID. For supported locations, refer to [regional and
+     * multi-regional support](/document-ai/docs/regions).
      * 
* * string location_id = 1; @@ -173,7 +176,8 @@ public java.lang.String getLocationId() { * * *
-     * The location id, currently must be one of [us, eu].
+     * The location ID. For supported locations, refer to [regional and
+     * multi-regional support](/document-ai/docs/regions).
      * 
* * string location_id = 1; @@ -545,7 +549,8 @@ public Builder mergeFrom( * * *
-       * The location id, currently must be one of [us, eu].
+       * The location ID. For supported locations, refer to [regional and
+       * multi-regional support](/document-ai/docs/regions).
        * 
* * string location_id = 1; @@ -567,7 +572,8 @@ public java.lang.String getLocationId() { * * *
-       * The location id, currently must be one of [us, eu].
+       * The location ID. For supported locations, refer to [regional and
+       * multi-regional support](/document-ai/docs/regions).
        * 
* * string location_id = 1; @@ -589,7 +595,8 @@ public com.google.protobuf.ByteString getLocationIdBytes() { * * *
-       * The location id, currently must be one of [us, eu].
+       * The location ID. For supported locations, refer to [regional and
+       * multi-regional support](/document-ai/docs/regions).
        * 
* * string location_id = 1; @@ -610,7 +617,8 @@ public Builder setLocationId(java.lang.String value) { * * *
-       * The location id, currently must be one of [us, eu].
+       * The location ID. For supported locations, refer to [regional and
+       * multi-regional support](/document-ai/docs/regions).
        * 
* * string location_id = 1; @@ -627,7 +635,8 @@ public Builder clearLocationId() { * * *
-       * The location id, currently must be one of [us, eu].
+       * The location ID. For supported locations, refer to [regional and
+       * multi-regional support](/document-ai/docs/regions).
        * 
* * string location_id = 1; @@ -771,7 +780,7 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
-   * The processor type, e.g., `OCR_PROCESSOR`, `INVOICE_PROCESSOR`, etc.
+   * The processor type, such as: `OCR_PROCESSOR`, `INVOICE_PROCESSOR`.
    * 
* * string type = 2; @@ -794,7 +803,7 @@ public java.lang.String getType() { * * *
-   * The processor type, e.g., `OCR_PROCESSOR`, `INVOICE_PROCESSOR`, etc.
+   * The processor type, such as: `OCR_PROCESSOR`, `INVOICE_PROCESSOR`.
    * 
* * string type = 2; @@ -1724,7 +1733,7 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { * * *
-     * The processor type, e.g., `OCR_PROCESSOR`, `INVOICE_PROCESSOR`, etc.
+     * The processor type, such as: `OCR_PROCESSOR`, `INVOICE_PROCESSOR`.
      * 
* * string type = 2; @@ -1746,7 +1755,7 @@ public java.lang.String getType() { * * *
-     * The processor type, e.g., `OCR_PROCESSOR`, `INVOICE_PROCESSOR`, etc.
+     * The processor type, such as: `OCR_PROCESSOR`, `INVOICE_PROCESSOR`.
      * 
* * string type = 2; @@ -1768,7 +1777,7 @@ public com.google.protobuf.ByteString getTypeBytes() { * * *
-     * The processor type, e.g., `OCR_PROCESSOR`, `INVOICE_PROCESSOR`, etc.
+     * The processor type, such as: `OCR_PROCESSOR`, `INVOICE_PROCESSOR`.
      * 
* * string type = 2; @@ -1789,7 +1798,7 @@ public Builder setType(java.lang.String value) { * * *
-     * The processor type, e.g., `OCR_PROCESSOR`, `INVOICE_PROCESSOR`, etc.
+     * The processor type, such as: `OCR_PROCESSOR`, `INVOICE_PROCESSOR`.
      * 
* * string type = 2; @@ -1806,7 +1815,7 @@ public Builder clearType() { * * *
-     * The processor type, e.g., `OCR_PROCESSOR`, `INVOICE_PROCESSOR`, etc.
+     * The processor type, such as: `OCR_PROCESSOR`, `INVOICE_PROCESSOR`.
      * 
* * string type = 2; diff --git a/java-document-ai/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/ProcessorTypeOrBuilder.java b/java-document-ai/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/ProcessorTypeOrBuilder.java index 39a3acb1a3d8..1ef07869877f 100644 --- a/java-document-ai/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/ProcessorTypeOrBuilder.java +++ b/java-document-ai/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/ProcessorTypeOrBuilder.java @@ -54,7 +54,7 @@ public interface ProcessorTypeOrBuilder * * *
-   * The processor type, e.g., `OCR_PROCESSOR`, `INVOICE_PROCESSOR`, etc.
+   * The processor type, such as: `OCR_PROCESSOR`, `INVOICE_PROCESSOR`.
    * 
* * string type = 2; @@ -66,7 +66,7 @@ public interface ProcessorTypeOrBuilder * * *
-   * The processor type, e.g., `OCR_PROCESSOR`, `INVOICE_PROCESSOR`, etc.
+   * The processor type, such as: `OCR_PROCESSOR`, `INVOICE_PROCESSOR`.
    * 
* * string type = 2; diff --git a/java-document-ai/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/ProcessorVersion.java b/java-document-ai/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/ProcessorVersion.java index cc47215835f3..80a9843881d4 100644 --- a/java-document-ai/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/ProcessorVersion.java +++ b/java-document-ai/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/ProcessorVersion.java @@ -23,10 +23,9 @@ * *
  * A processor version is an implementation of a processor. Each processor
- * can have multiple versions, pre-trained by Google internally or up-trained
- * by the customer. At a time, a processor can only have one default version
- * version. So the processor's behavior (when processing documents) is defined
- * by a default version
+ * can have multiple versions, pretrained by Google internally or uptrained
+ * by the customer. A processor can only have one default version at a time.
+ * Its document-processing behavior is defined by that version.
  * 
* * Protobuf type {@code google.cloud.documentai.v1.ProcessorVersion} @@ -160,6 +159,16 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { * FAILED = 7; */ FAILED(7), + /** + * + * + *
+     * The processor version is being imported.
+     * 
+ * + * IMPORTING = 8; + */ + IMPORTING(8), UNRECOGNIZED(-1), ; @@ -243,6 +252,16 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { * FAILED = 7; */ public static final int FAILED_VALUE = 7; + /** + * + * + *
+     * The processor version is being imported.
+     * 
+ * + * IMPORTING = 8; + */ + public static final int IMPORTING_VALUE = 8; public final int getNumber() { if (this == UNRECOGNIZED) { @@ -284,6 +303,8 @@ public static State forNumber(int value) { return DELETING; case 7: return FAILED; + case 8: + return IMPORTING; default: return null; } @@ -1699,7 +1720,7 @@ public com.google.protobuf.ByteString getKmsKeyVersionNameBytes() { * * *
-   * Denotes that this ProcessorVersion is managed by google.
+   * Denotes that this `ProcessorVersion` is managed by Google.
    * 
* * bool google_managed = 11; @@ -2032,10 +2053,9 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * *
    * A processor version is an implementation of a processor. Each processor
-   * can have multiple versions, pre-trained by Google internally or up-trained
-   * by the customer. At a time, a processor can only have one default version
-   * version. So the processor's behavior (when processing documents) is defined
-   * by a default version
+   * can have multiple versions, pretrained by Google internally or uptrained
+   * by the customer. A processor can only have one default version at a time.
+   * Its document-processing behavior is defined by that version.
    * 
* * Protobuf type {@code google.cloud.documentai.v1.ProcessorVersion} @@ -3442,7 +3462,7 @@ public Builder setKmsKeyVersionNameBytes(com.google.protobuf.ByteString value) { * * *
-     * Denotes that this ProcessorVersion is managed by google.
+     * Denotes that this `ProcessorVersion` is managed by Google.
      * 
* * bool google_managed = 11; @@ -3457,7 +3477,7 @@ public boolean getGoogleManaged() { * * *
-     * Denotes that this ProcessorVersion is managed by google.
+     * Denotes that this `ProcessorVersion` is managed by Google.
      * 
* * bool google_managed = 11; @@ -3476,7 +3496,7 @@ public Builder setGoogleManaged(boolean value) { * * *
-     * Denotes that this ProcessorVersion is managed by google.
+     * Denotes that this `ProcessorVersion` is managed by Google.
      * 
* * bool google_managed = 11; diff --git a/java-document-ai/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/ProcessorVersionOrBuilder.java b/java-document-ai/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/ProcessorVersionOrBuilder.java index ef4f7c45e023..3d88117ec04c 100644 --- a/java-document-ai/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/ProcessorVersionOrBuilder.java +++ b/java-document-ai/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/ProcessorVersionOrBuilder.java @@ -261,7 +261,7 @@ public interface ProcessorVersionOrBuilder * * *
-   * Denotes that this ProcessorVersion is managed by google.
+   * Denotes that this `ProcessorVersion` is managed by Google.
    * 
* * bool google_managed = 11; diff --git a/java-document-ai/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/ReviewDocumentOperationMetadata.java b/java-document-ai/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/ReviewDocumentOperationMetadata.java index 01b0662e0f97..cd349d39b95c 100644 --- a/java-document-ai/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/ReviewDocumentOperationMetadata.java +++ b/java-document-ai/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/ReviewDocumentOperationMetadata.java @@ -22,7 +22,9 @@ * * *
- * The long running operation metadata for review document method.
+ * The long-running operation metadata for the
+ * [ReviewDocument][google.cloud.documentai.v1.DocumentProcessorService.ReviewDocument]
+ * method.
  * 
* * Protobuf type {@code google.cloud.documentai.v1.ReviewDocumentOperationMetadata} @@ -69,7 +71,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * The basic metadata of the long running operation.
+   * The basic metadata of the long-running operation.
    * 
* * .google.cloud.documentai.v1.CommonOperationMetadata common_metadata = 5; @@ -84,7 +86,7 @@ public boolean hasCommonMetadata() { * * *
-   * The basic metadata of the long running operation.
+   * The basic metadata of the long-running operation.
    * 
* * .google.cloud.documentai.v1.CommonOperationMetadata common_metadata = 5; @@ -101,7 +103,7 @@ public com.google.cloud.documentai.v1.CommonOperationMetadata getCommonMetadata( * * *
-   * The basic metadata of the long running operation.
+   * The basic metadata of the long-running operation.
    * 
* * .google.cloud.documentai.v1.CommonOperationMetadata common_metadata = 5; @@ -343,7 +345,9 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * The long running operation metadata for review document method.
+   * The long-running operation metadata for the
+   * [ReviewDocument][google.cloud.documentai.v1.DocumentProcessorService.ReviewDocument]
+   * method.
    * 
* * Protobuf type {@code google.cloud.documentai.v1.ReviewDocumentOperationMetadata} @@ -553,7 +557,7 @@ public Builder mergeFrom( * * *
-     * The basic metadata of the long running operation.
+     * The basic metadata of the long-running operation.
      * 
* * .google.cloud.documentai.v1.CommonOperationMetadata common_metadata = 5; @@ -567,7 +571,7 @@ public boolean hasCommonMetadata() { * * *
-     * The basic metadata of the long running operation.
+     * The basic metadata of the long-running operation.
      * 
* * .google.cloud.documentai.v1.CommonOperationMetadata common_metadata = 5; @@ -587,7 +591,7 @@ public com.google.cloud.documentai.v1.CommonOperationMetadata getCommonMetadata( * * *
-     * The basic metadata of the long running operation.
+     * The basic metadata of the long-running operation.
      * 
* * .google.cloud.documentai.v1.CommonOperationMetadata common_metadata = 5; @@ -609,7 +613,7 @@ public Builder setCommonMetadata(com.google.cloud.documentai.v1.CommonOperationM * * *
-     * The basic metadata of the long running operation.
+     * The basic metadata of the long-running operation.
      * 
* * .google.cloud.documentai.v1.CommonOperationMetadata common_metadata = 5; @@ -629,7 +633,7 @@ public Builder setCommonMetadata( * * *
-     * The basic metadata of the long running operation.
+     * The basic metadata of the long-running operation.
      * 
* * .google.cloud.documentai.v1.CommonOperationMetadata common_metadata = 5; @@ -656,7 +660,7 @@ public Builder mergeCommonMetadata( * * *
-     * The basic metadata of the long running operation.
+     * The basic metadata of the long-running operation.
      * 
* * .google.cloud.documentai.v1.CommonOperationMetadata common_metadata = 5; @@ -675,7 +679,7 @@ public Builder clearCommonMetadata() { * * *
-     * The basic metadata of the long running operation.
+     * The basic metadata of the long-running operation.
      * 
* * .google.cloud.documentai.v1.CommonOperationMetadata common_metadata = 5; @@ -690,7 +694,7 @@ public Builder clearCommonMetadata() { * * *
-     * The basic metadata of the long running operation.
+     * The basic metadata of the long-running operation.
      * 
* * .google.cloud.documentai.v1.CommonOperationMetadata common_metadata = 5; @@ -709,7 +713,7 @@ public Builder clearCommonMetadata() { * * *
-     * The basic metadata of the long running operation.
+     * The basic metadata of the long-running operation.
      * 
* * .google.cloud.documentai.v1.CommonOperationMetadata common_metadata = 5; diff --git a/java-document-ai/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/ReviewDocumentOperationMetadataOrBuilder.java b/java-document-ai/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/ReviewDocumentOperationMetadataOrBuilder.java index aa8582f77e56..78c066935cb8 100644 --- a/java-document-ai/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/ReviewDocumentOperationMetadataOrBuilder.java +++ b/java-document-ai/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/ReviewDocumentOperationMetadataOrBuilder.java @@ -27,7 +27,7 @@ public interface ReviewDocumentOperationMetadataOrBuilder * * *
-   * The basic metadata of the long running operation.
+   * The basic metadata of the long-running operation.
    * 
* * .google.cloud.documentai.v1.CommonOperationMetadata common_metadata = 5; @@ -39,7 +39,7 @@ public interface ReviewDocumentOperationMetadataOrBuilder * * *
-   * The basic metadata of the long running operation.
+   * The basic metadata of the long-running operation.
    * 
* * .google.cloud.documentai.v1.CommonOperationMetadata common_metadata = 5; @@ -51,7 +51,7 @@ public interface ReviewDocumentOperationMetadataOrBuilder * * *
-   * The basic metadata of the long running operation.
+   * The basic metadata of the long-running operation.
    * 
* * .google.cloud.documentai.v1.CommonOperationMetadata common_metadata = 5; diff --git a/java-document-ai/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/ReviewDocumentRequest.java b/java-document-ai/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/ReviewDocumentRequest.java index 003c1f57bc00..a42b14c3cf33 100644 --- a/java-document-ai/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/ReviewDocumentRequest.java +++ b/java-document-ai/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/ReviewDocumentRequest.java @@ -22,7 +22,9 @@ * * *
- * Request message for review document method.
+ * Request message for the
+ * [ReviewDocument][google.cloud.documentai.v1.DocumentProcessorService.ReviewDocument]
+ * method.
  * 
* * Protobuf type {@code google.cloud.documentai.v1.ReviewDocumentRequest} @@ -307,8 +309,9 @@ public com.google.cloud.documentai.v1.DocumentOrBuilder getInlineDocumentOrBuild * * *
-   * Required. The resource name of the HumanReviewConfig that the document will
-   * be reviewed with.
+   * Required. The resource name of the
+   * [HumanReviewConfig][google.cloud.documentai.v1.HumanReviewConfig] that the
+   * document will be reviewed with.
    * 
* * @@ -333,8 +336,9 @@ public java.lang.String getHumanReviewConfig() { * * *
-   * Required. The resource name of the HumanReviewConfig that the document will
-   * be reviewed with.
+   * Required. The resource name of the
+   * [HumanReviewConfig][google.cloud.documentai.v1.HumanReviewConfig] that the
+   * document will be reviewed with.
    * 
* * @@ -682,7 +686,9 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * Request message for review document method.
+   * Request message for the
+   * [ReviewDocument][google.cloud.documentai.v1.DocumentProcessorService.ReviewDocument]
+   * method.
    * 
* * Protobuf type {@code google.cloud.documentai.v1.ReviewDocumentRequest} @@ -1164,8 +1170,9 @@ public com.google.cloud.documentai.v1.DocumentOrBuilder getInlineDocumentOrBuild * * *
-     * Required. The resource name of the HumanReviewConfig that the document will
-     * be reviewed with.
+     * Required. The resource name of the
+     * [HumanReviewConfig][google.cloud.documentai.v1.HumanReviewConfig] that the
+     * document will be reviewed with.
      * 
* * @@ -1189,8 +1196,9 @@ public java.lang.String getHumanReviewConfig() { * * *
-     * Required. The resource name of the HumanReviewConfig that the document will
-     * be reviewed with.
+     * Required. The resource name of the
+     * [HumanReviewConfig][google.cloud.documentai.v1.HumanReviewConfig] that the
+     * document will be reviewed with.
      * 
* * @@ -1214,8 +1222,9 @@ public com.google.protobuf.ByteString getHumanReviewConfigBytes() { * * *
-     * Required. The resource name of the HumanReviewConfig that the document will
-     * be reviewed with.
+     * Required. The resource name of the
+     * [HumanReviewConfig][google.cloud.documentai.v1.HumanReviewConfig] that the
+     * document will be reviewed with.
      * 
* * @@ -1238,8 +1247,9 @@ public Builder setHumanReviewConfig(java.lang.String value) { * * *
-     * Required. The resource name of the HumanReviewConfig that the document will
-     * be reviewed with.
+     * Required. The resource name of the
+     * [HumanReviewConfig][google.cloud.documentai.v1.HumanReviewConfig] that the
+     * document will be reviewed with.
      * 
* * @@ -1258,8 +1268,9 @@ public Builder clearHumanReviewConfig() { * * *
-     * Required. The resource name of the HumanReviewConfig that the document will
-     * be reviewed with.
+     * Required. The resource name of the
+     * [HumanReviewConfig][google.cloud.documentai.v1.HumanReviewConfig] that the
+     * document will be reviewed with.
      * 
* * diff --git a/java-document-ai/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/ReviewDocumentRequestOrBuilder.java b/java-document-ai/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/ReviewDocumentRequestOrBuilder.java index 6952b76ea469..84b385768613 100644 --- a/java-document-ai/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/ReviewDocumentRequestOrBuilder.java +++ b/java-document-ai/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/ReviewDocumentRequestOrBuilder.java @@ -62,8 +62,9 @@ public interface ReviewDocumentRequestOrBuilder * * *
-   * Required. The resource name of the HumanReviewConfig that the document will
-   * be reviewed with.
+   * Required. The resource name of the
+   * [HumanReviewConfig][google.cloud.documentai.v1.HumanReviewConfig] that the
+   * document will be reviewed with.
    * 
* * @@ -77,8 +78,9 @@ public interface ReviewDocumentRequestOrBuilder * * *
-   * Required. The resource name of the HumanReviewConfig that the document will
-   * be reviewed with.
+   * Required. The resource name of the
+   * [HumanReviewConfig][google.cloud.documentai.v1.HumanReviewConfig] that the
+   * document will be reviewed with.
    * 
* * diff --git a/java-document-ai/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/ReviewDocumentResponse.java b/java-document-ai/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/ReviewDocumentResponse.java index be388c541544..9b83a1450fc5 100644 --- a/java-document-ai/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/ReviewDocumentResponse.java +++ b/java-document-ai/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/ReviewDocumentResponse.java @@ -22,7 +22,9 @@ * * *
- * Response message for review document method.
+ * Response message for the
+ * [ReviewDocument][google.cloud.documentai.v1.DocumentProcessorService.ReviewDocument]
+ * method.
  * 
* * Protobuf type {@code google.cloud.documentai.v1.ReviewDocumentResponse} @@ -550,7 +552,9 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * Response message for review document method.
+   * Response message for the
+   * [ReviewDocument][google.cloud.documentai.v1.DocumentProcessorService.ReviewDocument]
+   * method.
    * 
* * Protobuf type {@code google.cloud.documentai.v1.ReviewDocumentResponse} diff --git a/java-document-ai/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/SetDefaultProcessorVersionMetadata.java b/java-document-ai/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/SetDefaultProcessorVersionMetadata.java index 220358e163af..552522d39835 100644 --- a/java-document-ai/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/SetDefaultProcessorVersionMetadata.java +++ b/java-document-ai/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/SetDefaultProcessorVersionMetadata.java @@ -22,7 +22,8 @@ * * *
- * The long running operation metadata for set default processor version
+ * The long-running operation metadata for the
+ * [SetDefaultProcessorVersion][google.cloud.documentai.v1.DocumentProcessorService.SetDefaultProcessorVersion]
  * method.
  * 
* @@ -68,7 +69,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * The basic metadata of the long running operation.
+   * The basic metadata of the long-running operation.
    * 
* * .google.cloud.documentai.v1.CommonOperationMetadata common_metadata = 1; @@ -83,7 +84,7 @@ public boolean hasCommonMetadata() { * * *
-   * The basic metadata of the long running operation.
+   * The basic metadata of the long-running operation.
    * 
* * .google.cloud.documentai.v1.CommonOperationMetadata common_metadata = 1; @@ -100,7 +101,7 @@ public com.google.cloud.documentai.v1.CommonOperationMetadata getCommonMetadata( * * *
-   * The basic metadata of the long running operation.
+   * The basic metadata of the long-running operation.
    * 
* * .google.cloud.documentai.v1.CommonOperationMetadata common_metadata = 1; @@ -283,7 +284,8 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * The long running operation metadata for set default processor version
+   * The long-running operation metadata for the
+   * [SetDefaultProcessorVersion][google.cloud.documentai.v1.DocumentProcessorService.SetDefaultProcessorVersion]
    * method.
    * 
* @@ -481,7 +483,7 @@ public Builder mergeFrom( * * *
-     * The basic metadata of the long running operation.
+     * The basic metadata of the long-running operation.
      * 
* * .google.cloud.documentai.v1.CommonOperationMetadata common_metadata = 1; @@ -495,7 +497,7 @@ public boolean hasCommonMetadata() { * * *
-     * The basic metadata of the long running operation.
+     * The basic metadata of the long-running operation.
      * 
* * .google.cloud.documentai.v1.CommonOperationMetadata common_metadata = 1; @@ -515,7 +517,7 @@ public com.google.cloud.documentai.v1.CommonOperationMetadata getCommonMetadata( * * *
-     * The basic metadata of the long running operation.
+     * The basic metadata of the long-running operation.
      * 
* * .google.cloud.documentai.v1.CommonOperationMetadata common_metadata = 1; @@ -537,7 +539,7 @@ public Builder setCommonMetadata(com.google.cloud.documentai.v1.CommonOperationM * * *
-     * The basic metadata of the long running operation.
+     * The basic metadata of the long-running operation.
      * 
* * .google.cloud.documentai.v1.CommonOperationMetadata common_metadata = 1; @@ -557,7 +559,7 @@ public Builder setCommonMetadata( * * *
-     * The basic metadata of the long running operation.
+     * The basic metadata of the long-running operation.
      * 
* * .google.cloud.documentai.v1.CommonOperationMetadata common_metadata = 1; @@ -584,7 +586,7 @@ public Builder mergeCommonMetadata( * * *
-     * The basic metadata of the long running operation.
+     * The basic metadata of the long-running operation.
      * 
* * .google.cloud.documentai.v1.CommonOperationMetadata common_metadata = 1; @@ -603,7 +605,7 @@ public Builder clearCommonMetadata() { * * *
-     * The basic metadata of the long running operation.
+     * The basic metadata of the long-running operation.
      * 
* * .google.cloud.documentai.v1.CommonOperationMetadata common_metadata = 1; @@ -618,7 +620,7 @@ public Builder clearCommonMetadata() { * * *
-     * The basic metadata of the long running operation.
+     * The basic metadata of the long-running operation.
      * 
* * .google.cloud.documentai.v1.CommonOperationMetadata common_metadata = 1; @@ -637,7 +639,7 @@ public Builder clearCommonMetadata() { * * *
-     * The basic metadata of the long running operation.
+     * The basic metadata of the long-running operation.
      * 
* * .google.cloud.documentai.v1.CommonOperationMetadata common_metadata = 1; diff --git a/java-document-ai/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/SetDefaultProcessorVersionMetadataOrBuilder.java b/java-document-ai/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/SetDefaultProcessorVersionMetadataOrBuilder.java index 01929db8aaf5..39c6ffe78329 100644 --- a/java-document-ai/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/SetDefaultProcessorVersionMetadataOrBuilder.java +++ b/java-document-ai/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/SetDefaultProcessorVersionMetadataOrBuilder.java @@ -27,7 +27,7 @@ public interface SetDefaultProcessorVersionMetadataOrBuilder * * *
-   * The basic metadata of the long running operation.
+   * The basic metadata of the long-running operation.
    * 
* * .google.cloud.documentai.v1.CommonOperationMetadata common_metadata = 1; @@ -39,7 +39,7 @@ public interface SetDefaultProcessorVersionMetadataOrBuilder * * *
-   * The basic metadata of the long running operation.
+   * The basic metadata of the long-running operation.
    * 
* * .google.cloud.documentai.v1.CommonOperationMetadata common_metadata = 1; @@ -51,7 +51,7 @@ public interface SetDefaultProcessorVersionMetadataOrBuilder * * *
-   * The basic metadata of the long running operation.
+   * The basic metadata of the long-running operation.
    * 
* * .google.cloud.documentai.v1.CommonOperationMetadata common_metadata = 1; diff --git a/java-document-ai/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/SetDefaultProcessorVersionRequest.java b/java-document-ai/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/SetDefaultProcessorVersionRequest.java index d8f31098550e..95654afce0cc 100644 --- a/java-document-ai/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/SetDefaultProcessorVersionRequest.java +++ b/java-document-ai/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/SetDefaultProcessorVersionRequest.java @@ -22,7 +22,9 @@ * * *
- * Request message for the set default processor version method.
+ * Request message for the
+ * [SetDefaultProcessorVersion][google.cloud.documentai.v1.DocumentProcessorService.SetDefaultProcessorVersion]
+ * method.
  * 
* * Protobuf type {@code google.cloud.documentai.v1.SetDefaultProcessorVersionRequest} @@ -357,7 +359,9 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * Request message for the set default processor version method.
+   * Request message for the
+   * [SetDefaultProcessorVersion][google.cloud.documentai.v1.DocumentProcessorService.SetDefaultProcessorVersion]
+   * method.
    * 
* * Protobuf type {@code google.cloud.documentai.v1.SetDefaultProcessorVersionRequest} diff --git a/java-document-ai/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/SetDefaultProcessorVersionResponse.java b/java-document-ai/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/SetDefaultProcessorVersionResponse.java index 9363b1090fc6..ede32f604e00 100644 --- a/java-document-ai/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/SetDefaultProcessorVersionResponse.java +++ b/java-document-ai/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/SetDefaultProcessorVersionResponse.java @@ -22,7 +22,9 @@ * * *
- * Response message for set default processor version method.
+ * Response message for the
+ * [SetDefaultProcessorVersion][google.cloud.documentai.v1.DocumentProcessorService.SetDefaultProcessorVersion]
+ * method.
  * 
* * Protobuf type {@code google.cloud.documentai.v1.SetDefaultProcessorVersionResponse} @@ -217,7 +219,9 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * Response message for set default processor version method.
+   * Response message for the
+   * [SetDefaultProcessorVersion][google.cloud.documentai.v1.DocumentProcessorService.SetDefaultProcessorVersion]
+   * method.
    * 
* * Protobuf type {@code google.cloud.documentai.v1.SetDefaultProcessorVersionResponse} diff --git a/java-document-ai/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/TrainProcessorVersionMetadata.java b/java-document-ai/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/TrainProcessorVersionMetadata.java index 802102337db4..d14a16f78b50 100644 --- a/java-document-ai/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/TrainProcessorVersionMetadata.java +++ b/java-document-ai/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/TrainProcessorVersionMetadata.java @@ -1932,7 +1932,7 @@ public com.google.protobuf.Parser getParserForType() { * * *
-   * The basic metadata of the long running operation.
+   * The basic metadata of the long-running operation.
    * 
* * .google.cloud.documentai.v1.CommonOperationMetadata common_metadata = 1; @@ -1947,7 +1947,7 @@ public boolean hasCommonMetadata() { * * *
-   * The basic metadata of the long running operation.
+   * The basic metadata of the long-running operation.
    * 
* * .google.cloud.documentai.v1.CommonOperationMetadata common_metadata = 1; @@ -1964,7 +1964,7 @@ public com.google.cloud.documentai.v1.CommonOperationMetadata getCommonMetadata( * * *
-   * The basic metadata of the long running operation.
+   * The basic metadata of the long-running operation.
    * 
* * .google.cloud.documentai.v1.CommonOperationMetadata common_metadata = 1; @@ -2537,7 +2537,7 @@ public Builder mergeFrom( * * *
-     * The basic metadata of the long running operation.
+     * The basic metadata of the long-running operation.
      * 
* * .google.cloud.documentai.v1.CommonOperationMetadata common_metadata = 1; @@ -2551,7 +2551,7 @@ public boolean hasCommonMetadata() { * * *
-     * The basic metadata of the long running operation.
+     * The basic metadata of the long-running operation.
      * 
* * .google.cloud.documentai.v1.CommonOperationMetadata common_metadata = 1; @@ -2571,7 +2571,7 @@ public com.google.cloud.documentai.v1.CommonOperationMetadata getCommonMetadata( * * *
-     * The basic metadata of the long running operation.
+     * The basic metadata of the long-running operation.
      * 
* * .google.cloud.documentai.v1.CommonOperationMetadata common_metadata = 1; @@ -2593,7 +2593,7 @@ public Builder setCommonMetadata(com.google.cloud.documentai.v1.CommonOperationM * * *
-     * The basic metadata of the long running operation.
+     * The basic metadata of the long-running operation.
      * 
* * .google.cloud.documentai.v1.CommonOperationMetadata common_metadata = 1; @@ -2613,7 +2613,7 @@ public Builder setCommonMetadata( * * *
-     * The basic metadata of the long running operation.
+     * The basic metadata of the long-running operation.
      * 
* * .google.cloud.documentai.v1.CommonOperationMetadata common_metadata = 1; @@ -2640,7 +2640,7 @@ public Builder mergeCommonMetadata( * * *
-     * The basic metadata of the long running operation.
+     * The basic metadata of the long-running operation.
      * 
* * .google.cloud.documentai.v1.CommonOperationMetadata common_metadata = 1; @@ -2659,7 +2659,7 @@ public Builder clearCommonMetadata() { * * *
-     * The basic metadata of the long running operation.
+     * The basic metadata of the long-running operation.
      * 
* * .google.cloud.documentai.v1.CommonOperationMetadata common_metadata = 1; @@ -2674,7 +2674,7 @@ public Builder clearCommonMetadata() { * * *
-     * The basic metadata of the long running operation.
+     * The basic metadata of the long-running operation.
      * 
* * .google.cloud.documentai.v1.CommonOperationMetadata common_metadata = 1; @@ -2693,7 +2693,7 @@ public Builder clearCommonMetadata() { * * *
-     * The basic metadata of the long running operation.
+     * The basic metadata of the long-running operation.
      * 
* * .google.cloud.documentai.v1.CommonOperationMetadata common_metadata = 1; diff --git a/java-document-ai/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/TrainProcessorVersionMetadataOrBuilder.java b/java-document-ai/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/TrainProcessorVersionMetadataOrBuilder.java index fe425b41a7e9..df39c9c979d9 100644 --- a/java-document-ai/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/TrainProcessorVersionMetadataOrBuilder.java +++ b/java-document-ai/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/TrainProcessorVersionMetadataOrBuilder.java @@ -27,7 +27,7 @@ public interface TrainProcessorVersionMetadataOrBuilder * * *
-   * The basic metadata of the long running operation.
+   * The basic metadata of the long-running operation.
    * 
* * .google.cloud.documentai.v1.CommonOperationMetadata common_metadata = 1; @@ -39,7 +39,7 @@ public interface TrainProcessorVersionMetadataOrBuilder * * *
-   * The basic metadata of the long running operation.
+   * The basic metadata of the long-running operation.
    * 
* * .google.cloud.documentai.v1.CommonOperationMetadata common_metadata = 1; @@ -51,7 +51,7 @@ public interface TrainProcessorVersionMetadataOrBuilder * * *
-   * The basic metadata of the long running operation.
+   * The basic metadata of the long-running operation.
    * 
* * .google.cloud.documentai.v1.CommonOperationMetadata common_metadata = 1; diff --git a/java-document-ai/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/TrainProcessorVersionRequest.java b/java-document-ai/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/TrainProcessorVersionRequest.java index 0a51c7ca583b..fbe56c69bd4b 100644 --- a/java-document-ai/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/TrainProcessorVersionRequest.java +++ b/java-document-ai/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/TrainProcessorVersionRequest.java @@ -22,7 +22,9 @@ * * *
- * Request message for the create processor version method.
+ * Request message for the
+ * [TrainProcessorVersion][google.cloud.documentai.v1.DocumentProcessorService.TrainProcessorVersion]
+ * method.
  * 
* * Protobuf type {@code google.cloud.documentai.v1.TrainProcessorVersionRequest} @@ -143,7 +145,8 @@ public interface InputDataOrBuilder * * *
-   * The input data used to train a new `ProcessorVersion`.
+   * The input data used to train a new
+   * [ProcessorVersion][google.cloud.documentai.v1.ProcessorVersion].
    * 
* * Protobuf type {@code google.cloud.documentai.v1.TrainProcessorVersionRequest.InputData} @@ -468,7 +471,8 @@ protected Builder newBuilderForType( * * *
-     * The input data used to train a new `ProcessorVersion`.
+     * The input data used to train a new
+     * [ProcessorVersion][google.cloud.documentai.v1.ProcessorVersion].
      * 
* * Protobuf type {@code google.cloud.documentai.v1.TrainProcessorVersionRequest.InputData} @@ -1309,7 +1313,8 @@ public com.google.cloud.documentai.v1.DocumentSchemaOrBuilder getDocumentSchemaO * * *
-   * Optional. The input data used to train the `ProcessorVersion`.
+   * Optional. The input data used to train the
+   * [ProcessorVersion][google.cloud.documentai.v1.ProcessorVersion].
    * 
* * @@ -1326,7 +1331,8 @@ public boolean hasInputData() { * * *
-   * Optional. The input data used to train the `ProcessorVersion`.
+   * Optional. The input data used to train the
+   * [ProcessorVersion][google.cloud.documentai.v1.ProcessorVersion].
    * 
* * @@ -1345,7 +1351,8 @@ public com.google.cloud.documentai.v1.TrainProcessorVersionRequest.InputData get * * *
-   * Optional. The input data used to train the `ProcessorVersion`.
+   * Optional. The input data used to train the
+   * [ProcessorVersion][google.cloud.documentai.v1.ProcessorVersion].
    * 
* * @@ -1630,7 +1637,9 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * Request message for the create processor version method.
+   * Request message for the
+   * [TrainProcessorVersion][google.cloud.documentai.v1.DocumentProcessorService.TrainProcessorVersion]
+   * method.
    * 
* * Protobuf type {@code google.cloud.documentai.v1.TrainProcessorVersionRequest} @@ -2420,7 +2429,8 @@ public com.google.cloud.documentai.v1.DocumentSchemaOrBuilder getDocumentSchemaO * * *
-     * Optional. The input data used to train the `ProcessorVersion`.
+     * Optional. The input data used to train the
+     * [ProcessorVersion][google.cloud.documentai.v1.ProcessorVersion].
      * 
* * @@ -2436,7 +2446,8 @@ public boolean hasInputData() { * * *
-     * Optional. The input data used to train the `ProcessorVersion`.
+     * Optional. The input data used to train the
+     * [ProcessorVersion][google.cloud.documentai.v1.ProcessorVersion].
      * 
* * @@ -2459,7 +2470,8 @@ public com.google.cloud.documentai.v1.TrainProcessorVersionRequest.InputData get * * *
-     * Optional. The input data used to train the `ProcessorVersion`.
+     * Optional. The input data used to train the
+     * [ProcessorVersion][google.cloud.documentai.v1.ProcessorVersion].
      * 
* * @@ -2484,7 +2496,8 @@ public Builder setInputData( * * *
-     * Optional. The input data used to train the `ProcessorVersion`.
+     * Optional. The input data used to train the
+     * [ProcessorVersion][google.cloud.documentai.v1.ProcessorVersion].
      * 
* * @@ -2507,7 +2520,8 @@ public Builder setInputData( * * *
-     * Optional. The input data used to train the `ProcessorVersion`.
+     * Optional. The input data used to train the
+     * [ProcessorVersion][google.cloud.documentai.v1.ProcessorVersion].
      * 
* * @@ -2537,7 +2551,8 @@ public Builder mergeInputData( * * *
-     * Optional. The input data used to train the `ProcessorVersion`.
+     * Optional. The input data used to train the
+     * [ProcessorVersion][google.cloud.documentai.v1.ProcessorVersion].
      * 
* * @@ -2558,7 +2573,8 @@ public Builder clearInputData() { * * *
-     * Optional. The input data used to train the `ProcessorVersion`.
+     * Optional. The input data used to train the
+     * [ProcessorVersion][google.cloud.documentai.v1.ProcessorVersion].
      * 
* * @@ -2575,7 +2591,8 @@ public Builder clearInputData() { * * *
-     * Optional. The input data used to train the `ProcessorVersion`.
+     * Optional. The input data used to train the
+     * [ProcessorVersion][google.cloud.documentai.v1.ProcessorVersion].
      * 
* * @@ -2597,7 +2614,8 @@ public Builder clearInputData() { * * *
-     * Optional. The input data used to train the `ProcessorVersion`.
+     * Optional. The input data used to train the
+     * [ProcessorVersion][google.cloud.documentai.v1.ProcessorVersion].
      * 
* * diff --git a/java-document-ai/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/TrainProcessorVersionRequestOrBuilder.java b/java-document-ai/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/TrainProcessorVersionRequestOrBuilder.java index 63444ef7f1b0..a152020e58d2 100644 --- a/java-document-ai/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/TrainProcessorVersionRequestOrBuilder.java +++ b/java-document-ai/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/TrainProcessorVersionRequestOrBuilder.java @@ -142,7 +142,8 @@ public interface TrainProcessorVersionRequestOrBuilder * * *
-   * Optional. The input data used to train the `ProcessorVersion`.
+   * Optional. The input data used to train the
+   * [ProcessorVersion][google.cloud.documentai.v1.ProcessorVersion].
    * 
* * @@ -156,7 +157,8 @@ public interface TrainProcessorVersionRequestOrBuilder * * *
-   * Optional. The input data used to train the `ProcessorVersion`.
+   * Optional. The input data used to train the
+   * [ProcessorVersion][google.cloud.documentai.v1.ProcessorVersion].
    * 
* * @@ -170,7 +172,8 @@ public interface TrainProcessorVersionRequestOrBuilder * * *
-   * Optional. The input data used to train the `ProcessorVersion`.
+   * Optional. The input data used to train the
+   * [ProcessorVersion][google.cloud.documentai.v1.ProcessorVersion].
    * 
* * diff --git a/java-document-ai/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/TrainProcessorVersionResponse.java b/java-document-ai/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/TrainProcessorVersionResponse.java index 467fc86cb586..301b6264b620 100644 --- a/java-document-ai/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/TrainProcessorVersionResponse.java +++ b/java-document-ai/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/TrainProcessorVersionResponse.java @@ -22,7 +22,8 @@ * * *
- * The response for the TrainProcessorVersion method.
+ * The response for
+ * [TrainProcessorVersion][google.cloud.documentai.v1.DocumentProcessorService.TrainProcessorVersion].
  * 
* * Protobuf type {@code google.cloud.documentai.v1.TrainProcessorVersionResponse} @@ -277,7 +278,8 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * The response for the TrainProcessorVersion method.
+   * The response for
+   * [TrainProcessorVersion][google.cloud.documentai.v1.DocumentProcessorService.TrainProcessorVersion].
    * 
* * Protobuf type {@code google.cloud.documentai.v1.TrainProcessorVersionResponse} diff --git a/java-document-ai/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/UndeployProcessorVersionMetadata.java b/java-document-ai/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/UndeployProcessorVersionMetadata.java index 17ed0829428e..d385816d80d0 100644 --- a/java-document-ai/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/UndeployProcessorVersionMetadata.java +++ b/java-document-ai/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/UndeployProcessorVersionMetadata.java @@ -22,7 +22,8 @@ * * *
- * The long running operation metadata for the undeploy processor version
+ * The long-running operation metadata for the
+ * [UndeployProcessorVersion][google.cloud.documentai.v1.DocumentProcessorService.UndeployProcessorVersion]
  * method.
  * 
* @@ -68,7 +69,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * The basic metadata of the long running operation.
+   * The basic metadata of the long-running operation.
    * 
* * .google.cloud.documentai.v1.CommonOperationMetadata common_metadata = 1; @@ -83,7 +84,7 @@ public boolean hasCommonMetadata() { * * *
-   * The basic metadata of the long running operation.
+   * The basic metadata of the long-running operation.
    * 
* * .google.cloud.documentai.v1.CommonOperationMetadata common_metadata = 1; @@ -100,7 +101,7 @@ public com.google.cloud.documentai.v1.CommonOperationMetadata getCommonMetadata( * * *
-   * The basic metadata of the long running operation.
+   * The basic metadata of the long-running operation.
    * 
* * .google.cloud.documentai.v1.CommonOperationMetadata common_metadata = 1; @@ -282,7 +283,8 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * The long running operation metadata for the undeploy processor version
+   * The long-running operation metadata for the
+   * [UndeployProcessorVersion][google.cloud.documentai.v1.DocumentProcessorService.UndeployProcessorVersion]
    * method.
    * 
* @@ -479,7 +481,7 @@ public Builder mergeFrom( * * *
-     * The basic metadata of the long running operation.
+     * The basic metadata of the long-running operation.
      * 
* * .google.cloud.documentai.v1.CommonOperationMetadata common_metadata = 1; @@ -493,7 +495,7 @@ public boolean hasCommonMetadata() { * * *
-     * The basic metadata of the long running operation.
+     * The basic metadata of the long-running operation.
      * 
* * .google.cloud.documentai.v1.CommonOperationMetadata common_metadata = 1; @@ -513,7 +515,7 @@ public com.google.cloud.documentai.v1.CommonOperationMetadata getCommonMetadata( * * *
-     * The basic metadata of the long running operation.
+     * The basic metadata of the long-running operation.
      * 
* * .google.cloud.documentai.v1.CommonOperationMetadata common_metadata = 1; @@ -535,7 +537,7 @@ public Builder setCommonMetadata(com.google.cloud.documentai.v1.CommonOperationM * * *
-     * The basic metadata of the long running operation.
+     * The basic metadata of the long-running operation.
      * 
* * .google.cloud.documentai.v1.CommonOperationMetadata common_metadata = 1; @@ -555,7 +557,7 @@ public Builder setCommonMetadata( * * *
-     * The basic metadata of the long running operation.
+     * The basic metadata of the long-running operation.
      * 
* * .google.cloud.documentai.v1.CommonOperationMetadata common_metadata = 1; @@ -582,7 +584,7 @@ public Builder mergeCommonMetadata( * * *
-     * The basic metadata of the long running operation.
+     * The basic metadata of the long-running operation.
      * 
* * .google.cloud.documentai.v1.CommonOperationMetadata common_metadata = 1; @@ -601,7 +603,7 @@ public Builder clearCommonMetadata() { * * *
-     * The basic metadata of the long running operation.
+     * The basic metadata of the long-running operation.
      * 
* * .google.cloud.documentai.v1.CommonOperationMetadata common_metadata = 1; @@ -616,7 +618,7 @@ public Builder clearCommonMetadata() { * * *
-     * The basic metadata of the long running operation.
+     * The basic metadata of the long-running operation.
      * 
* * .google.cloud.documentai.v1.CommonOperationMetadata common_metadata = 1; @@ -635,7 +637,7 @@ public Builder clearCommonMetadata() { * * *
-     * The basic metadata of the long running operation.
+     * The basic metadata of the long-running operation.
      * 
* * .google.cloud.documentai.v1.CommonOperationMetadata common_metadata = 1; diff --git a/java-document-ai/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/UndeployProcessorVersionMetadataOrBuilder.java b/java-document-ai/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/UndeployProcessorVersionMetadataOrBuilder.java index 14f4aa026385..7f09828c02b5 100644 --- a/java-document-ai/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/UndeployProcessorVersionMetadataOrBuilder.java +++ b/java-document-ai/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/UndeployProcessorVersionMetadataOrBuilder.java @@ -27,7 +27,7 @@ public interface UndeployProcessorVersionMetadataOrBuilder * * *
-   * The basic metadata of the long running operation.
+   * The basic metadata of the long-running operation.
    * 
* * .google.cloud.documentai.v1.CommonOperationMetadata common_metadata = 1; @@ -39,7 +39,7 @@ public interface UndeployProcessorVersionMetadataOrBuilder * * *
-   * The basic metadata of the long running operation.
+   * The basic metadata of the long-running operation.
    * 
* * .google.cloud.documentai.v1.CommonOperationMetadata common_metadata = 1; @@ -51,7 +51,7 @@ public interface UndeployProcessorVersionMetadataOrBuilder * * *
-   * The basic metadata of the long running operation.
+   * The basic metadata of the long-running operation.
    * 
* * .google.cloud.documentai.v1.CommonOperationMetadata common_metadata = 1; diff --git a/java-document-ai/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/UndeployProcessorVersionRequest.java b/java-document-ai/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/UndeployProcessorVersionRequest.java index 178bb7e324ff..cd3e85f8dcd0 100644 --- a/java-document-ai/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/UndeployProcessorVersionRequest.java +++ b/java-document-ai/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/UndeployProcessorVersionRequest.java @@ -22,7 +22,9 @@ * * *
- * Request message for the undeploy processor version method.
+ * Request message for the
+ * [UndeployProcessorVersion][google.cloud.documentai.v1.DocumentProcessorService.UndeployProcessorVersion]
+ * method.
  * 
* * Protobuf type {@code google.cloud.documentai.v1.UndeployProcessorVersionRequest} @@ -282,7 +284,9 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * Request message for the undeploy processor version method.
+   * Request message for the
+   * [UndeployProcessorVersion][google.cloud.documentai.v1.DocumentProcessorService.UndeployProcessorVersion]
+   * method.
    * 
* * Protobuf type {@code google.cloud.documentai.v1.UndeployProcessorVersionRequest} diff --git a/java-document-ai/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/UndeployProcessorVersionResponse.java b/java-document-ai/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/UndeployProcessorVersionResponse.java index 2439b513ec23..694dc5d2294f 100644 --- a/java-document-ai/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/UndeployProcessorVersionResponse.java +++ b/java-document-ai/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/UndeployProcessorVersionResponse.java @@ -22,7 +22,9 @@ * * *
- * Response message for the undeploy processor version method.
+ * Response message for the
+ * [UndeployProcessorVersion][google.cloud.documentai.v1.DocumentProcessorService.UndeployProcessorVersion]
+ * method.
  * 
* * Protobuf type {@code google.cloud.documentai.v1.UndeployProcessorVersionResponse} @@ -216,7 +218,9 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * Response message for the undeploy processor version method.
+   * Response message for the
+   * [UndeployProcessorVersion][google.cloud.documentai.v1.DocumentProcessorService.UndeployProcessorVersion]
+   * method.
    * 
* * Protobuf type {@code google.cloud.documentai.v1.UndeployProcessorVersionResponse} diff --git a/java-document-ai/proto-google-cloud-document-ai-v1/src/main/proto/google/cloud/documentai/v1/barcode.proto b/java-document-ai/proto-google-cloud-document-ai-v1/src/main/proto/google/cloud/documentai/v1/barcode.proto index c131dcbed29f..805203ba0204 100644 --- a/java-document-ai/proto-google-cloud-document-ai-v1/src/main/proto/google/cloud/documentai/v1/barcode.proto +++ b/java-document-ai/proto-google-cloud-document-ai-v1/src/main/proto/google/cloud/documentai/v1/barcode.proto @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/java-document-ai/proto-google-cloud-document-ai-v1/src/main/proto/google/cloud/documentai/v1/document.proto b/java-document-ai/proto-google-cloud-document-ai-v1/src/main/proto/google/cloud/documentai/v1/document.proto index f3431b3d4af3..92ccfc0a9293 100644 --- a/java-document-ai/proto-google-cloud-document-ai-v1/src/main/proto/google/cloud/documentai/v1/document.proto +++ b/java-document-ai/proto-google-cloud-document-ai-v1/src/main/proto/google/cloud/documentai/v1/document.proto @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -64,7 +64,8 @@ message Document { // Font size for the text. float size = 1; - // Unit for the font size. Follows CSS naming (in, px, pt, etc.). + // Unit for the font size. Follows CSS naming (such as `in`, `px`, and + // `pt`). string unit = 2; } @@ -78,17 +79,18 @@ message Document { // Text background color. google.type.Color background_color = 3; - // Font weight. Possible values are normal, bold, bolder, and lighter. - // https://www.w3schools.com/cssref/pr_font_weight.asp + // [Font weight](https://www.w3schools.com/cssref/pr_font_weight.asp). + // Possible values are `normal`, `bold`, `bolder`, and `lighter`. string font_weight = 4; - // Text style. Possible values are normal, italic, and oblique. - // https://www.w3schools.com/cssref/pr_font_font-style.asp + // [Text style](https://www.w3schools.com/cssref/pr_font_font-style.asp). + // Possible values are `normal`, `italic`, and `oblique`. string text_style = 5; - // Text decoration. Follows CSS standard. - // - // https://www.w3schools.com/cssref/pr_text_text-decoration.asp + // [Text + // decoration](https://www.w3schools.com/cssref/pr_text_text-decoration.asp). + // Follows CSS standard. + // string text_decoration = 6; // Font size. @@ -118,7 +120,9 @@ message Document { // Raw byte content of the image. bytes content = 1; - // Encoding mime type for the image. + // Encoding [media type (MIME + // type)](https://www.iana.org/assignments/media-types/media-types.xhtml) + // for the image. string mime_type = 2; // Width of the image in pixels. @@ -255,6 +259,59 @@ message Document { Type type = 1; } + // Font and other text style attributes. + message StyleInfo { + // Font size in points (`1` point is `¹⁄₇₂` inches). + int32 font_size = 1; + + // Font size in pixels, equal to _unrounded + // [font_size][google.cloud.documentai.v1.Document.Page.Token.StyleInfo.font_size]_ + // * _resolution_ ÷ `72.0`. + double pixel_font_size = 2; + + // Letter spacing in points. + double letter_spacing = 3; + + // Name or style of the font. + string font_type = 4; + + // Whether the text is bold (equivalent to + // [font_weight][google.cloud.documentai.v1.Document.Page.Token.StyleInfo.font_weight] + // is at least `700`). + bool bold = 5; + + // Whether the text is italic. + bool italic = 6; + + // Whether the text is underlined. + bool underlined = 7; + + // Whether the text is strikethrough. + bool strikeout = 8; + + // Whether the text is a subscript. + bool subscript = 9; + + // Whether the text is a superscript. + bool superscript = 10; + + // Whether the text is in small caps. + bool smallcaps = 11; + + // TrueType weight on a scale `100` (thin) to `1000` (ultra-heavy). + // Normal is `400`, bold is `700`. + int32 font_weight = 12; + + // Whether the text is handwritten. + bool handwritten = 13; + + // Color of the text. + google.type.Color text_color = 14; + + // Color of the background. + google.type.Color background_color = 15; + } + // [Layout][google.cloud.documentai.v1.Document.Page.Layout] for // [Token][google.cloud.documentai.v1.Document.Page.Token]. Layout layout = 1; @@ -268,6 +325,9 @@ message Document { // The history of this annotation. Provenance provenance = 4 [deprecated = true]; + + // Text style attributes. + StyleInfo style_info = 5; } // A detected symbol. @@ -333,7 +393,7 @@ message Document { repeated DetectedLanguage detected_languages = 4; // The history of this table. - Provenance provenance = 5; + Provenance provenance = 5 [deprecated = true]; } // A form field detected on the page. @@ -388,16 +448,16 @@ message Document { // Detected language for a structural component. message DetectedLanguage { - // The BCP-47 language code, such as `en-US` or `sr-Latn`. For more - // information, see - // https://www.unicode.org/reports/tr35/#Unicode_locale_identifier. + // The [BCP-47 language + // code](https://www.unicode.org/reports/tr35/#Unicode_locale_identifier), + // such as `en-US` or `sr-Latn`. string language_code = 1; // Confidence of detected language. Range `[0, 1]`. float confidence = 2; } - // Image Quality Scores for the page image + // Image quality scores for the page image. message ImageQualityScores { // Image Quality Defects message DetectedDefect { @@ -413,12 +473,12 @@ message Document { // - `quality/defect_glare` string type = 1; - // Confidence of detected defect. Range `[0, 1]` where 1 indicates - // strong confidence of that the defect exists. + // Confidence of detected defect. Range `[0, 1]` where `1` indicates + // strong confidence that the defect exists. float confidence = 2; } - // The overall quality score. Range `[0, 1]` where 1 is perfect quality. + // The overall quality score. Range `[0, 1]` where `1` is perfect quality. float quality_score = 1; // A list of detected defects. @@ -482,7 +542,7 @@ message Document { // A list of detected barcodes. repeated DetectedBarcode detected_barcodes = 15; - // Image Quality Scores. + // Image quality scores. ImageQualityScores image_quality_scores = 17; // The history of this page. @@ -736,9 +796,9 @@ message Document { REMOVE = 2; // Updates any fields within the given provenance scope of the message. It - // 'overwrites' the fields rather than replacing them. This is - // especially relevant when we just want to update a field value of an - // entity without also affecting all the child properties. + // overwrites the fields rather than replacing them. Use this when you + // want to update a field value of an entity without also updating all the + // child properties. UPDATE = 7; // Currently unused. Replace an element identified by `parent`. @@ -835,10 +895,9 @@ message Document { // Original source document from the user. oneof source { // Optional. Currently supports Google Cloud Storage URI of the form - // `gs://bucket_name/object_name`. Object versioning is not supported. - // See [Google Cloud Storage Request - // URIs](https://cloud.google.com/storage/docs/reference-uris) for more - // info. + // `gs://bucket_name/object_name`. Object versioning is not supported. + // For more information, refer to [Google Cloud Storage Request + // URIs](https://cloud.google.com/storage/docs/reference-uris). string uri = 1 [(google.api.field_behavior) = OPTIONAL]; // Optional. Inline document content, represented as a stream of bytes. @@ -847,9 +906,8 @@ message Document { bytes content = 2 [(google.api.field_behavior) = OPTIONAL]; } - // An IANA published MIME type (also referred to as media type). For more - // information, see - // https://www.iana.org/assignments/media-types/media-types.xhtml. + // An IANA published [media type (MIME + // type)](https://www.iana.org/assignments/media-types/media-types.xhtml). string mime_type = 3; // Optional. UTF-8 encoded text in reading order from the document. diff --git a/java-document-ai/proto-google-cloud-document-ai-v1/src/main/proto/google/cloud/documentai/v1/document_io.proto b/java-document-ai/proto-google-cloud-document-ai-v1/src/main/proto/google/cloud/documentai/v1/document_io.proto index 23768b7544ea..48adefbb98ba 100644 --- a/java-document-ai/proto-google-cloud-document-ai-v1/src/main/proto/google/cloud/documentai/v1/document_io.proto +++ b/java-document-ai/proto-google-cloud-document-ai-v1/src/main/proto/google/cloud/documentai/v1/document_io.proto @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/java-document-ai/proto-google-cloud-document-ai-v1/src/main/proto/google/cloud/documentai/v1/document_processor_service.proto b/java-document-ai/proto-google-cloud-document-ai-v1/src/main/proto/google/cloud/documentai/v1/document_processor_service.proto index eec77bd88e4b..915f0fd64381 100644 --- a/java-document-ai/proto-google-cloud-document-ai-v1/src/main/proto/google/cloud/documentai/v1/document_processor_service.proto +++ b/java-document-ai/proto-google-cloud-document-ai-v1/src/main/proto/google/cloud/documentai/v1/document_processor_service.proto @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -49,7 +49,7 @@ option (google.api.resource_definition) = { pattern: "projects/{project}/locations/{location}" }; -// Service to call Cloud DocumentAI to process documents according to the +// Service to call Document AI 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. @@ -90,8 +90,9 @@ service DocumentProcessorService { }; } - // Fetches processor types. Note that we do not use ListProcessorTypes here - // because it is not paginated. + // Fetches processor types. Note that we don't use + // [ListProcessorTypes][google.cloud.documentai.v1.DocumentProcessorService.ListProcessorTypes] + // here, because it isn't paginated. rpc FetchProcessorTypes(FetchProcessorTypesRequest) returns (FetchProcessorTypesResponse) { option (google.api.http) = { @@ -135,7 +136,7 @@ service DocumentProcessorService { // Trains a new processor version. // Operation metadata is returned as - // cloud_documentai_core.TrainProcessorVersionMetadata. + // [TrainProcessorVersionMetadata][google.cloud.documentai.v1.TrainProcessorVersionMetadata]. rpc TrainProcessorVersion(TrainProcessorVersionRequest) returns (google.longrunning.Operation) { option (google.api.http) = { @@ -209,8 +210,9 @@ service DocumentProcessorService { }; } - // Creates a processor from the type processor that the user chose. - // The processor will be at "ENABLED" state by default after its creation. + // Creates a processor from the + // [ProcessorType][google.cloud.documentai.v1.ProcessorType] provided. The + // processor will be at `ENABLED` state by default after its creation. rpc CreateProcessor(CreateProcessorRequest) returns (Processor) { option (google.api.http) = { post: "/v1/{parent=projects/*/locations/*}/processors" @@ -324,7 +326,9 @@ service DocumentProcessorService { } } -// Request message for the process document method. +// Request message for the +// [ProcessDocument][google.cloud.documentai.v1.DocumentProcessorService.ProcessDocument] +// method. message ProcessRequest { // The document payload. oneof source { @@ -350,13 +354,14 @@ message ProcessRequest { (google.api.resource_reference) = { type: "*" } ]; - // Whether Human Review feature should be skipped for this request. Default to - // false. + // Whether human review should be skipped for this request. Default to + // `false`. bool skip_human_review = 3; - // Specifies which fields to include in ProcessResponse's document. - // Only supports top level document and pages field so it must be in the form - // of `{document_field_name}` or `pages.{page_field_name}`. + // Specifies which fields to include in the + // [ProcessResponse.document][google.cloud.documentai.v1.ProcessResponse.document] + // output. Only supports top-level document and pages field, so it must be in + // the form of `{document_field_name}` or `pages.{page_field_name}`. google.protobuf.FieldMask field_mask = 6; } @@ -368,7 +373,7 @@ message HumanReviewStatus { STATE_UNSPECIFIED = 0; // Human review is skipped for the document. This can happen because human - // review is not enabled on the processor or the processing request has + // review isn't enabled on the processor or the processing request has // been set to skip this document. SKIPPED = 1; @@ -379,7 +384,8 @@ message HumanReviewStatus { IN_PROGRESS = 3; // Some error happened during triggering human review, see the - // [state_message] for details. + // [state_message][google.cloud.documentai.v1.HumanReviewStatus.state_message] + // for details. ERROR = 4; } @@ -390,13 +396,17 @@ message HumanReviewStatus { string state_message = 2; // The name of the operation triggered by the processed document. This field - // is populated only when the [state] is [HUMAN_REVIEW_IN_PROGRESS]. It has - // the same response type and metadata as the long running operation returned - // by [ReviewDocument] method. + // is populated only when the + // [state][google.cloud.documentai.v1.HumanReviewStatus.state] is + // `HUMAN_REVIEW_IN_PROGRESS`. It has the same response type and metadata as + // the long-running operation returned by + // [ReviewDocument][google.cloud.documentai.v1.DocumentProcessorService.ReviewDocument]. string human_review_operation = 3; } -// Response message for the process document method. +// Response message for the +// [ProcessDocument][google.cloud.documentai.v1.DocumentProcessorService.ProcessDocument] +// method. message ProcessResponse { // The document payload, will populate fields based on the processor's // behavior. @@ -406,7 +416,8 @@ message ProcessResponse { HumanReviewStatus human_review_status = 3; } -// Request message for batch process document method. +// Request message for +// [BatchProcessDocuments][google.cloud.documentai.v1.DocumentProcessorService.BatchProcessDocuments]. message BatchProcessRequest { // Required. The resource name of // [Processor][google.cloud.documentai.v1.Processor] or @@ -419,34 +430,40 @@ message BatchProcessRequest { (google.api.resource_reference) = { type: "*" } ]; - // The input documents for batch process. + // The input documents for the + // [BatchProcessDocuments][google.cloud.documentai.v1.DocumentProcessorService.BatchProcessDocuments] + // method. BatchDocumentsInputConfig input_documents = 5; - // The overall output config for batch process. + // The output configuration for the + // [BatchProcessDocuments][google.cloud.documentai.v1.DocumentProcessorService.BatchProcessDocuments] + // method. DocumentOutputConfig document_output_config = 6; - // Whether Human Review feature should be skipped for this request. Default to - // false. + // Whether human review should be skipped for this request. Default to + // `false`. bool skip_human_review = 4; } -// Response message for batch process document method. +// Response message for +// [BatchProcessDocuments][google.cloud.documentai.v1.DocumentProcessorService.BatchProcessDocuments]. message BatchProcessResponse {} -// The long running operation metadata for batch process method. +// The long-running operation metadata for +// [BatchProcessDocuments][google.cloud.documentai.v1.DocumentProcessorService.BatchProcessDocuments]. message BatchProcessMetadata { // The status of a each individual document in the batch process. message IndividualProcessStatus { - // 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 - // take snapshot of that document, since a user can move or change that - // document during the process. + // The source of the document, same as the + // [input_gcs_source][google.cloud.documentai.v1.BatchProcessMetadata.IndividualProcessStatus.input_gcs_source] + // field in the request when the batch process started. string input_gcs_source = 1; // The status processing the document. google.rpc.Status status = 2; - // The output_gcs_destination (in the request as `output_gcs_destination`) + // The Cloud Storage output destination (in the request as + // [DocumentOutputConfig.GcsOutputConfig.gcs_uri][google.cloud.documentai.v1.DocumentOutputConfig.GcsOutputConfig.gcs_uri]) // of the processed document if it was successful, otherwise empty. string output_gcs_destination = 3; @@ -495,11 +512,13 @@ message BatchProcessMetadata { repeated IndividualProcessStatus individual_process_statuses = 5; } -// Request message for fetch processor types. +// Request message for the +// [FetchProcessorTypes][google.cloud.documentai.v1.DocumentProcessorService.FetchProcessorTypes] +// method. Some processor types may require the project be added to an +// allowlist. message FetchProcessorTypesRequest { - // Required. The project of processor type to list. - // The available processor types may depend on the allow-listing on projects. - // Format: `projects/{project}/locations/{location}` + // Required. The location of processor types to list. + // Format: `projects/{project}/locations/{location}`. string parent = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { @@ -508,17 +527,21 @@ message FetchProcessorTypesRequest { ]; } -// Response message for fetch processor types. +// Response message for the +// [FetchProcessorTypes][google.cloud.documentai.v1.DocumentProcessorService.FetchProcessorTypes] +// method. message FetchProcessorTypesResponse { // The list of processor types. repeated ProcessorType processor_types = 1; } -// Request message for list processor types. +// Request message for the +// [ListProcessorTypes][google.cloud.documentai.v1.DocumentProcessorService.ListProcessorTypes] +// method. Some processor types may require the project be added to an +// allowlist. message ListProcessorTypesRequest { - // Required. The location of processor type to list. - // The available processor types may depend on the allow-listing on projects. - // Format: `projects/{project}/locations/{location}` + // Required. The location of processor types to list. + // Format: `projects/{project}/locations/{location}`. string parent = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { @@ -527,15 +550,17 @@ message ListProcessorTypesRequest { ]; // The maximum number of processor types to return. - // If unspecified, at most 100 processor types will be returned. - // The maximum value is 500; values above 500 will be coerced to 500. + // If unspecified, at most `100` processor types will be returned. + // The maximum value is `500`. Values above `500` will be coerced to `500`. int32 page_size = 2; // Used to retrieve the next page of results, empty if at the end of the list. string page_token = 3; } -// Response message for list processor types. +// Response message for the +// [ListProcessorTypes][google.cloud.documentai.v1.DocumentProcessorService.ListProcessorTypes] +// method. message ListProcessorTypesResponse { // The processor types. repeated ProcessorType processor_types = 1; @@ -556,8 +581,8 @@ message ListProcessorsRequest { ]; // The maximum number of processors to return. - // If unspecified, at most 50 processors will be returned. - // The maximum value is 100; values above 100 will be coerced to 100. + // If unspecified, at most `50` processors will be returned. + // The maximum value is `100`. Values above `100` will be coerced to `100`. int32 page_size = 2; // We will return the processors sorted by creation time. The page token @@ -565,7 +590,9 @@ message ListProcessorsRequest { string page_token = 3; } -// Response message for list processors. +// Response message for the +// [ListProcessors][google.cloud.documentai.v1.DocumentProcessorService.ListProcessors] +// method. message ListProcessorsResponse { // The list of processors. repeated Processor processors = 1; @@ -574,7 +601,9 @@ message ListProcessorsResponse { string next_page_token = 2; } -// Request message for get processor. +// Request message for the +// [GetProcessorType][google.cloud.documentai.v1.DocumentProcessorService.GetProcessorType] +// method. message GetProcessorTypeRequest { // Required. The processor type resource name. string name = 1 [ @@ -585,7 +614,9 @@ message GetProcessorTypeRequest { ]; } -// Request message for get processor. +// Request message for the +// [GetProcessor][google.cloud.documentai.v1.DocumentProcessorService.GetProcessor] +// method. message GetProcessorRequest { // Required. The processor resource name. string name = 1 [ @@ -596,7 +627,9 @@ message GetProcessorRequest { ]; } -// Request message for get processor version. +// Request message for the +// [GetProcessorVersion][google.cloud.documentai.v1.DocumentProcessorService.GetProcessorVersion] +// method. message GetProcessorVersionRequest { // Required. The processor resource name. string name = 1 [ @@ -620,8 +653,8 @@ message ListProcessorVersionsRequest { ]; // The maximum number of processor versions to return. - // If unspecified, at most 10 processor versions will be returned. - // The maximum value is 20; values above 20 will be coerced to 20. + // If unspecified, at most `10` processor versions will be returned. + // The maximum value is `20`. Values above `20` will be coerced to `20`. int32 page_size = 2; // We will return the processor versions sorted by creation time. The page @@ -629,7 +662,9 @@ message ListProcessorVersionsRequest { string page_token = 3; } -// Response message for list processors. +// Response message for the +// [ListProcessorVersions][google.cloud.documentai.v1.DocumentProcessorService.ListProcessorVersions] +// method. message ListProcessorVersionsResponse { // The list of processors. repeated ProcessorVersion processor_versions = 1; @@ -638,7 +673,9 @@ message ListProcessorVersionsResponse { string next_page_token = 2; } -// Request message for the delete processor version method. +// Request message for the +// [DeleteProcessorVersion][google.cloud.documentai.v1.DocumentProcessorService.DeleteProcessorVersion] +// method. message DeleteProcessorVersionRequest { // Required. The processor version resource name to be deleted. string name = 1 [ @@ -649,13 +686,17 @@ message DeleteProcessorVersionRequest { ]; } -// The long running operation metadata for delete processor version method. +// The long-running operation metadata for the +// [DeleteProcessorVersion][google.cloud.documentai.v1.DocumentProcessorService.DeleteProcessorVersion] +// method. message DeleteProcessorVersionMetadata { - // The basic metadata of the long running operation. + // The basic metadata of the long-running operation. CommonOperationMetadata common_metadata = 1; } -// Request message for the deploy processor version method. +// Request message for the +// [DeployProcessorVersion][google.cloud.documentai.v1.DocumentProcessorService.DeployProcessorVersion] +// method. message DeployProcessorVersionRequest { // Required. The processor version resource name to be deployed. string name = 1 [ @@ -666,16 +707,22 @@ message DeployProcessorVersionRequest { ]; } -// Response message for the deploy processor version method. +// Response message for the +// [DeployProcessorVersion][google.cloud.documentai.v1.DocumentProcessorService.DeployProcessorVersion] +// method. message DeployProcessorVersionResponse {} -// The long running operation metadata for deploy processor version method. +// The long-running operation metadata for the +// [DeployProcessorVersion][google.cloud.documentai.v1.DocumentProcessorService.DeployProcessorVersion] +// method. message DeployProcessorVersionMetadata { - // The basic metadata of the long running operation. + // The basic metadata of the long-running operation. CommonOperationMetadata common_metadata = 1; } -// Request message for the undeploy processor version method. +// Request message for the +// [UndeployProcessorVersion][google.cloud.documentai.v1.DocumentProcessorService.UndeployProcessorVersion] +// method. message UndeployProcessorVersionRequest { // Required. The processor version resource name to be undeployed. string name = 1 [ @@ -686,19 +733,24 @@ message UndeployProcessorVersionRequest { ]; } -// Response message for the undeploy processor version method. +// Response message for the +// [UndeployProcessorVersion][google.cloud.documentai.v1.DocumentProcessorService.UndeployProcessorVersion] +// method. message UndeployProcessorVersionResponse {} -// The long running operation metadata for the undeploy processor version +// The long-running operation metadata for the +// [UndeployProcessorVersion][google.cloud.documentai.v1.DocumentProcessorService.UndeployProcessorVersion] // method. message UndeployProcessorVersionMetadata { - // The basic metadata of the long running operation. + // The basic metadata of the long-running operation. CommonOperationMetadata common_metadata = 1; } -// Request message for create a processor. Notice this request is sent to -// a regionalized backend service, and if the processor type is not available -// on that region, the creation will fail. +// Request message for the +// [CreateProcessor][google.cloud.documentai.v1.DocumentProcessorService.CreateProcessor] +// method. Notice this request is sent to a regionalized backend service. If the +// [ProcessorType][google.cloud.documentai.v1.ProcessorType] isn't available in +// that region, the creation fails. message CreateProcessorRequest { // Required. The parent (project and location) under which to create the // processor. Format: `projects/{project}/locations/{location}` @@ -709,13 +761,17 @@ message CreateProcessorRequest { } ]; - // Required. The processor to be created, requires [processor_type] and - // [display_name] to be set. Also, the processor is under CMEK if CMEK fields - // are set. + // Required. The processor to be created, requires + // [Processor.type][google.cloud.documentai.v1.Processor.type] and + // [Processor.display_name]][] to be set. Also, the + // [Processor.kms_key_name][google.cloud.documentai.v1.Processor.kms_key_name] + // field must be set if the processor is under CMEK. Processor processor = 2 [(google.api.field_behavior) = REQUIRED]; } -// Request message for the delete processor method. +// Request message for the +// [DeleteProcessor][google.cloud.documentai.v1.DocumentProcessorService.DeleteProcessor] +// method. message DeleteProcessorRequest { // Required. The processor resource name to be deleted. string name = 1 [ @@ -726,13 +782,17 @@ message DeleteProcessorRequest { ]; } -// The long running operation metadata for delete processor method. +// The long-running operation metadata for the +// [DeleteProcessor][google.cloud.documentai.v1.DocumentProcessorService.DeleteProcessor] +// method. message DeleteProcessorMetadata { - // The basic metadata of the long running operation. + // The basic metadata of the long-running operation. CommonOperationMetadata common_metadata = 5; } -// Request message for the enable processor method. +// Request message for the +// [EnableProcessor][google.cloud.documentai.v1.DocumentProcessorService.EnableProcessor] +// method. message EnableProcessorRequest { // Required. The processor resource name to be enabled. string name = 1 [ @@ -743,17 +803,22 @@ message EnableProcessorRequest { ]; } -// Response message for the enable processor method. -// Intentionally empty proto for adding fields in future. +// Response message for the +// [EnableProcessor][google.cloud.documentai.v1.DocumentProcessorService.EnableProcessor] +// method. Intentionally empty proto for adding fields in future. message EnableProcessorResponse {} -// The long running operation metadata for enable processor method. +// The long-running operation metadata for the +// [EnableProcessor][google.cloud.documentai.v1.DocumentProcessorService.EnableProcessor] +// method. message EnableProcessorMetadata { - // The basic metadata of the long running operation. + // The basic metadata of the long-running operation. CommonOperationMetadata common_metadata = 5; } -// Request message for the disable processor method. +// Request message for the +// [DisableProcessor][google.cloud.documentai.v1.DocumentProcessorService.DisableProcessor] +// method. message DisableProcessorRequest { // Required. The processor resource name to be disabled. string name = 1 [ @@ -764,17 +829,22 @@ message DisableProcessorRequest { ]; } -// Response message for the disable processor method. -// Intentionally empty proto for adding fields in future. +// Response message for the +// [DisableProcessor][google.cloud.documentai.v1.DocumentProcessorService.DisableProcessor] +// method. Intentionally empty proto for adding fields in future. message DisableProcessorResponse {} -// The long running operation metadata for disable processor method. +// The long-running operation metadata for the +// [DisableProcessor][google.cloud.documentai.v1.DocumentProcessorService.DisableProcessor] +// method. message DisableProcessorMetadata { - // The basic metadata of the long running operation. + // The basic metadata of the long-running operation. CommonOperationMetadata common_metadata = 5; } -// Request message for the set default processor version method. +// Request message for the +// [SetDefaultProcessorVersion][google.cloud.documentai.v1.DocumentProcessorService.SetDefaultProcessorVersion] +// method. message SetDefaultProcessorVersionRequest { // Required. The resource name of the // [Processor][google.cloud.documentai.v1.Processor] to change default @@ -798,19 +868,25 @@ message SetDefaultProcessorVersionRequest { ]; } -// Response message for set default processor version method. +// Response message for the +// [SetDefaultProcessorVersion][google.cloud.documentai.v1.DocumentProcessorService.SetDefaultProcessorVersion] +// method. message SetDefaultProcessorVersionResponse {} -// The long running operation metadata for set default processor version +// The long-running operation metadata for the +// [SetDefaultProcessorVersion][google.cloud.documentai.v1.DocumentProcessorService.SetDefaultProcessorVersion] // method. message SetDefaultProcessorVersionMetadata { - // The basic metadata of the long running operation. + // The basic metadata of the long-running operation. CommonOperationMetadata common_metadata = 1; } -// Request message for the create processor version method. +// Request message for the +// [TrainProcessorVersion][google.cloud.documentai.v1.DocumentProcessorService.TrainProcessorVersion] +// method. message TrainProcessorVersionRequest { - // The input data used to train a new `ProcessorVersion`. + // The input data used to train a new + // [ProcessorVersion][google.cloud.documentai.v1.ProcessorVersion]. message InputData { // The documents used for training the new version. BatchDocumentsInputConfig training_documents = 3; @@ -836,7 +912,8 @@ message TrainProcessorVersionRequest { // Optional. The schema the processor version will be trained with. DocumentSchema document_schema = 10 [(google.api.field_behavior) = OPTIONAL]; - // Optional. The input data used to train the `ProcessorVersion`. + // Optional. The input data used to train the + // [ProcessorVersion][google.cloud.documentai.v1.ProcessorVersion]. InputData input_data = 4 [(google.api.field_behavior) = OPTIONAL]; // Optional. The processor version to use as a base for training. This @@ -845,7 +922,8 @@ message TrainProcessorVersionRequest { string base_processor_version = 8 [(google.api.field_behavior) = OPTIONAL]; } -// The response for the TrainProcessorVersion method. +// The response for +// [TrainProcessorVersion][google.cloud.documentai.v1.DocumentProcessorService.TrainProcessorVersion]. message TrainProcessorVersionResponse { // The resource name of the processor version produced by training. string processor_version = 1; @@ -873,7 +951,7 @@ message TrainProcessorVersionMetadata { repeated google.rpc.Status dataset_errors = 2; } - // The basic metadata of the long running operation. + // The basic metadata of the long-running operation. CommonOperationMetadata common_metadata = 1; // The training dataset validation information. @@ -883,7 +961,9 @@ message TrainProcessorVersionMetadata { DatasetValidation test_dataset_validation = 3; } -// Request message for review document method. +// Request message for the +// [ReviewDocument][google.cloud.documentai.v1.DocumentProcessorService.ReviewDocument] +// method. message ReviewDocumentRequest { // The priority level of the human review task. enum Priority { @@ -901,8 +981,9 @@ message ReviewDocumentRequest { Document inline_document = 4; } - // Required. The resource name of the HumanReviewConfig that the document will - // be reviewed with. + // Required. The resource name of the + // [HumanReviewConfig][google.cloud.documentai.v1.HumanReviewConfig] that the + // document will be reviewed with. string human_review_config = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { @@ -920,7 +1001,9 @@ message ReviewDocumentRequest { DocumentSchema document_schema = 6; } -// Response message for review document method. +// Response message for the +// [ReviewDocument][google.cloud.documentai.v1.DocumentProcessorService.ReviewDocument] +// method. message ReviewDocumentResponse { // Possible states of the review operation. enum State { @@ -945,16 +1028,20 @@ message ReviewDocumentResponse { string rejection_reason = 3; } -// The long running operation metadata for review document method. +// The long-running operation metadata for the +// [ReviewDocument][google.cloud.documentai.v1.DocumentProcessorService.ReviewDocument] +// method. message ReviewDocumentOperationMetadata { - // The basic metadata of the long running operation. + // The basic metadata of the long-running operation. CommonOperationMetadata common_metadata = 5; // The Crowd Compute question ID. string question_id = 6; } -// Evaluates the given ProcessorVersion against the supplied documents. +// Evaluates the given +// [ProcessorVersion][google.cloud.documentai.v1.ProcessorVersion] against the +// supplied documents. message EvaluateProcessorVersionRequest { // Required. The resource name of the // [ProcessorVersion][google.cloud.documentai.v1.ProcessorVersion] to @@ -973,13 +1060,17 @@ message EvaluateProcessorVersionRequest { [(google.api.field_behavior) = OPTIONAL]; } -// Metadata of the EvaluateProcessorVersion method. +// Metadata of the +// [EvaluateProcessorVersion][google.cloud.documentai.v1.DocumentProcessorService.EvaluateProcessorVersion] +// method. message EvaluateProcessorVersionMetadata { - // The basic metadata of the long running operation. + // The basic metadata of the long-running operation. CommonOperationMetadata common_metadata = 1; } -// Metadata of the EvaluateProcessorVersion method. +// Response of the +// [EvaluateProcessorVersion][google.cloud.documentai.v1.DocumentProcessorService.EvaluateProcessorVersion] +// method. message EvaluateProcessorVersionResponse { // The resource name of the created evaluation. string evaluation = 2; @@ -998,7 +1089,8 @@ message GetEvaluationRequest { ]; } -// Retrieves a list of evaluations for a given ProcessorVersion. +// Retrieves a list of evaluations for a given +// [ProcessorVersion][google.cloud.documentai.v1.ProcessorVersion]. message ListEvaluationsRequest { // Required. The resource name of the // [ProcessorVersion][google.cloud.documentai.v1.ProcessorVersion] to list @@ -1012,8 +1104,8 @@ message ListEvaluationsRequest { ]; // The standard list page size. - // If unspecified, at most 5 evaluations will be returned. - // The maximum value is 100; values above 100 will be coerced to 100. + // If unspecified, at most `5` evaluations are returned. + // The maximum value is `100`. Values above `100` are coerced to `100`. int32 page_size = 2; // A page token, received from a previous `ListEvaluations` call. @@ -1021,7 +1113,7 @@ message ListEvaluationsRequest { string page_token = 3; } -// The response from ListEvaluations. +// The response from `ListEvaluations`. message ListEvaluationsResponse { // The evaluations requested. repeated Evaluation evaluations = 1; diff --git a/java-document-ai/proto-google-cloud-document-ai-v1/src/main/proto/google/cloud/documentai/v1/document_schema.proto b/java-document-ai/proto-google-cloud-document-ai-v1/src/main/proto/google/cloud/documentai/v1/document_schema.proto index 0b2cf60c1e04..028ef2aa750d 100644 --- a/java-document-ai/proto-google-cloud-document-ai-v1/src/main/proto/google/cloud/documentai/v1/document_schema.proto +++ b/java-document-ai/proto-google-cloud-document-ai-v1/src/main/proto/google/cloud/documentai/v1/document_schema.proto @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -92,16 +92,15 @@ message DocumentSchema { string display_name = 13; // Name of the type. It must be unique within the schema file and - // cannot be a 'Common Type'. Besides that we use the following naming - // conventions: + // cannot be a "Common Type". The following naming conventions are used: // - // - *use `snake_casing`* - // - name matching is case-sensitive + // - Use `snake_casing`. + // - Name matching is case-sensitive. // - Maximum 64 characters. // - Must start with a letter. // - Allowed characters: ASCII letters `[a-z0-9_-]`. (For backward // compatibility internal infrastructure and tooling can handle any ascii - // character) + // character.) // - The `/` is sometimes used to denote a property of a type. For example // `line_item/amount`. This convention is deprecated, but will still be // honored for backward compatibility. @@ -117,8 +116,8 @@ message DocumentSchema { // Metadata for global schema behavior. message Metadata { - // If true, a `document` entity type can be applied to subdocument ( - // splitting). Otherwise, it can only be applied to the entire document + // If true, a `document` entity type can be applied to subdocument + // (splitting). Otherwise, it can only be applied to the entire document // (classification). bool document_splitter = 1; diff --git a/java-document-ai/proto-google-cloud-document-ai-v1/src/main/proto/google/cloud/documentai/v1/evaluation.proto b/java-document-ai/proto-google-cloud-document-ai-v1/src/main/proto/google/cloud/documentai/v1/evaluation.proto index 0662470a8b2b..433fba583fe6 100644 --- a/java-document-ai/proto-google-cloud-document-ai-v1/src/main/proto/google/cloud/documentai/v1/evaluation.proto +++ b/java-document-ai/proto-google-cloud-document-ai-v1/src/main/proto/google/cloud/documentai/v1/evaluation.proto @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/java-document-ai/proto-google-cloud-document-ai-v1/src/main/proto/google/cloud/documentai/v1/geometry.proto b/java-document-ai/proto-google-cloud-document-ai-v1/src/main/proto/google/cloud/documentai/v1/geometry.proto index ce668ec8e7ad..18fbeaaf0d21 100644 --- a/java-document-ai/proto-google-cloud-document-ai-v1/src/main/proto/google/cloud/documentai/v1/geometry.proto +++ b/java-document-ai/proto-google-cloud-document-ai-v1/src/main/proto/google/cloud/documentai/v1/geometry.proto @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/java-document-ai/proto-google-cloud-document-ai-v1/src/main/proto/google/cloud/documentai/v1/operation_metadata.proto b/java-document-ai/proto-google-cloud-document-ai-v1/src/main/proto/google/cloud/documentai/v1/operation_metadata.proto index b922bf4cc3ab..533f758ae0aa 100644 --- a/java-document-ai/proto-google-cloud-document-ai-v1/src/main/proto/google/cloud/documentai/v1/operation_metadata.proto +++ b/java-document-ai/proto-google-cloud-document-ai-v1/src/main/proto/google/cloud/documentai/v1/operation_metadata.proto @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/java-document-ai/proto-google-cloud-document-ai-v1/src/main/proto/google/cloud/documentai/v1/processor.proto b/java-document-ai/proto-google-cloud-document-ai-v1/src/main/proto/google/cloud/documentai/v1/processor.proto index 8c257c548b6e..68b99bcbd956 100644 --- a/java-document-ai/proto-google-cloud-document-ai-v1/src/main/proto/google/cloud/documentai/v1/processor.proto +++ b/java-document-ai/proto-google-cloud-document-ai-v1/src/main/proto/google/cloud/documentai/v1/processor.proto @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -31,10 +31,9 @@ option php_namespace = "Google\\Cloud\\DocumentAI\\V1"; option ruby_package = "Google::Cloud::DocumentAI::V1"; // A processor version is an implementation of a processor. Each processor -// can have multiple versions, pre-trained by Google internally or up-trained -// by the customer. At a time, a processor can only have one default version -// version. So the processor's behavior (when processing documents) is defined -// by a default version +// can have multiple versions, pretrained by Google internally or uptrained +// by the customer. A processor can only have one default version at a time. +// Its document-processing behavior is defined by that version. message ProcessorVersion { option (google.api.resource) = { type: "documentai.googleapis.com/ProcessorVersion" @@ -78,6 +77,9 @@ message ProcessorVersion { // The processor version failed and is in an indeterminate state. FAILED = 7; + + // The processor version is being imported. + IMPORTING = 8; } // The resource name of the processor version. @@ -106,7 +108,7 @@ message ProcessorVersion { // The KMS key version with which data is encrypted. string kms_key_version_name = 10; - // Denotes that this ProcessorVersion is managed by google. + // Denotes that this `ProcessorVersion` is managed by Google. bool google_managed = 11; // If set, information about the eventual deprecation of this version. @@ -163,8 +165,8 @@ message Processor { (google.api.field_behavior) = OUTPUT_ONLY ]; - // The processor type, e.g., `OCR_PROCESSOR`, `INVOICE_PROCESSOR`, etc. - // To get a list of processors types, see + // The processor type, such as: `OCR_PROCESSOR`, `INVOICE_PROCESSOR`. + // To get a list of processor types, see // [FetchProcessorTypes][google.cloud.documentai.v1.DocumentProcessorService.FetchProcessorTypes]. string type = 2; @@ -189,7 +191,7 @@ message Processor { // The time the processor was created. google.protobuf.Timestamp create_time = 7; - // The KMS key used for encryption/decryption in CMEK scenarios. - // See https://cloud.google.com/security-key-management. + // The [KMS key](https://cloud.google.com/security-key-management) used for + // encryption and decryption in CMEK scenarios. string kms_key_name = 8; } diff --git a/java-document-ai/proto-google-cloud-document-ai-v1/src/main/proto/google/cloud/documentai/v1/processor_type.proto b/java-document-ai/proto-google-cloud-document-ai-v1/src/main/proto/google/cloud/documentai/v1/processor_type.proto index e5f6eca0a89a..ae88dda8d70e 100644 --- a/java-document-ai/proto-google-cloud-document-ai-v1/src/main/proto/google/cloud/documentai/v1/processor_type.proto +++ b/java-document-ai/proto-google-cloud-document-ai-v1/src/main/proto/google/cloud/documentai/v1/processor_type.proto @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -37,7 +37,8 @@ message ProcessorType { // The location information about where the processor is available. message LocationInfo { - // The location id, currently must be one of [us, eu]. + // The location ID. For supported locations, refer to [regional and + // multi-regional support](/document-ai/docs/regions). string location_id = 1; } @@ -45,7 +46,7 @@ message ProcessorType { // Format: `projects/{project}/processorTypes/{processor_type}` string name = 1; - // The processor type, e.g., `OCR_PROCESSOR`, `INVOICE_PROCESSOR`, etc. + // The processor type, such as: `OCR_PROCESSOR`, `INVOICE_PROCESSOR`. string type = 2; // The processor category, used by UI to group processor types. diff --git a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/BatchProcessMetadata.java b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/BatchProcessMetadata.java index 7fb8d335c578..8e42ebfcb9f8 100644 --- a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/BatchProcessMetadata.java +++ b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/BatchProcessMetadata.java @@ -22,7 +22,8 @@ * * *
- * The long running operation metadata for batch process method.
+ * The long-running operation metadata for
+ * [BatchProcessDocuments][google.cloud.documentai.v1beta3.DocumentProcessorService.BatchProcessDocuments].
  * 
* * Protobuf type {@code google.cloud.documentai.v1beta3.BatchProcessMetadata} @@ -320,10 +321,9 @@ public interface IndividualProcessStatusOrBuilder * * *
-     * 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
-     * take snapshot of that document, since a user can move or change that
-     * document during the process.
+     * The source of the document, same as the
+     * [input_gcs_source][google.cloud.documentai.v1beta3.BatchProcessMetadata.IndividualProcessStatus.input_gcs_source]
+     * field in the request when the batch process started.
      * 
* * string input_gcs_source = 1; @@ -335,10 +335,9 @@ public interface IndividualProcessStatusOrBuilder * * *
-     * 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
-     * take snapshot of that document, since a user can move or change that
-     * document during the process.
+     * The source of the document, same as the
+     * [input_gcs_source][google.cloud.documentai.v1beta3.BatchProcessMetadata.IndividualProcessStatus.input_gcs_source]
+     * field in the request when the batch process started.
      * 
* * string input_gcs_source = 1; @@ -386,7 +385,8 @@ public interface IndividualProcessStatusOrBuilder * * *
-     * The output_gcs_destination (in the request as `output_gcs_destination`)
+     * The Cloud Storage output destination (in the request as
+     * [DocumentOutputConfig.GcsOutputConfig.gcs_uri][google.cloud.documentai.v1beta3.DocumentOutputConfig.GcsOutputConfig.gcs_uri])
      * of the processed document if it was successful, otherwise empty.
      * 
* @@ -399,7 +399,8 @@ public interface IndividualProcessStatusOrBuilder * * *
-     * The output_gcs_destination (in the request as `output_gcs_destination`)
+     * The Cloud Storage output destination (in the request as
+     * [DocumentOutputConfig.GcsOutputConfig.gcs_uri][google.cloud.documentai.v1beta3.DocumentOutputConfig.GcsOutputConfig.gcs_uri])
      * of the processed document if it was successful, otherwise empty.
      * 
* @@ -414,16 +415,18 @@ public interface IndividualProcessStatusOrBuilder * *
      * The name of the operation triggered by the processed document. If the
-     * human review process is not triggered, this field will be empty. It has
-     * the same response type and metadata as the long running operation
-     * returned by ReviewDocument method.
+     * human review process isn't triggered, this field will be empty. It has
+     * the same response type and metadata as the long-running operation
+     * returned by the
+     * [ReviewDocument][google.cloud.documentai.v1beta3.DocumentProcessorService.ReviewDocument]
+     * method.
      * 
* * string human_review_operation = 4 [deprecated = true]; * * @deprecated * google.cloud.documentai.v1beta3.BatchProcessMetadata.IndividualProcessStatus.human_review_operation - * is deprecated. See google/cloud/documentai/v1beta3/document_processor_service.proto;l=518 + * is deprecated. See google/cloud/documentai/v1beta3/document_processor_service.proto;l=547 * @return The humanReviewOperation. */ @java.lang.Deprecated @@ -433,16 +436,18 @@ public interface IndividualProcessStatusOrBuilder * *
      * The name of the operation triggered by the processed document. If the
-     * human review process is not triggered, this field will be empty. It has
-     * the same response type and metadata as the long running operation
-     * returned by ReviewDocument method.
+     * human review process isn't triggered, this field will be empty. It has
+     * the same response type and metadata as the long-running operation
+     * returned by the
+     * [ReviewDocument][google.cloud.documentai.v1beta3.DocumentProcessorService.ReviewDocument]
+     * method.
      * 
* * string human_review_operation = 4 [deprecated = true]; * * @deprecated * google.cloud.documentai.v1beta3.BatchProcessMetadata.IndividualProcessStatus.human_review_operation - * is deprecated. See google/cloud/documentai/v1beta3/document_processor_service.proto;l=518 + * is deprecated. See google/cloud/documentai/v1beta3/document_processor_service.proto;l=547 * @return The bytes for humanReviewOperation. */ @java.lang.Deprecated @@ -540,10 +545,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-     * 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
-     * take snapshot of that document, since a user can move or change that
-     * document during the process.
+     * The source of the document, same as the
+     * [input_gcs_source][google.cloud.documentai.v1beta3.BatchProcessMetadata.IndividualProcessStatus.input_gcs_source]
+     * field in the request when the batch process started.
      * 
* * string input_gcs_source = 1; @@ -566,10 +570,9 @@ 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
-     * take snapshot of that document, since a user can move or change that
-     * document during the process.
+     * The source of the document, same as the
+     * [input_gcs_source][google.cloud.documentai.v1beta3.BatchProcessMetadata.IndividualProcessStatus.input_gcs_source]
+     * field in the request when the batch process started.
      * 
* * string input_gcs_source = 1; @@ -643,7 +646,8 @@ public com.google.rpc.StatusOrBuilder getStatusOrBuilder() { * * *
-     * The output_gcs_destination (in the request as `output_gcs_destination`)
+     * The Cloud Storage output destination (in the request as
+     * [DocumentOutputConfig.GcsOutputConfig.gcs_uri][google.cloud.documentai.v1beta3.DocumentOutputConfig.GcsOutputConfig.gcs_uri])
      * of the processed document if it was successful, otherwise empty.
      * 
* @@ -667,7 +671,8 @@ public java.lang.String getOutputGcsDestination() { * * *
-     * The output_gcs_destination (in the request as `output_gcs_destination`)
+     * The Cloud Storage output destination (in the request as
+     * [DocumentOutputConfig.GcsOutputConfig.gcs_uri][google.cloud.documentai.v1beta3.DocumentOutputConfig.GcsOutputConfig.gcs_uri])
      * of the processed document if it was successful, otherwise empty.
      * 
* @@ -697,16 +702,18 @@ public com.google.protobuf.ByteString getOutputGcsDestinationBytes() { * *
      * The name of the operation triggered by the processed document. If the
-     * human review process is not triggered, this field will be empty. It has
-     * the same response type and metadata as the long running operation
-     * returned by ReviewDocument method.
+     * human review process isn't triggered, this field will be empty. It has
+     * the same response type and metadata as the long-running operation
+     * returned by the
+     * [ReviewDocument][google.cloud.documentai.v1beta3.DocumentProcessorService.ReviewDocument]
+     * method.
      * 
* * string human_review_operation = 4 [deprecated = true]; * * @deprecated * google.cloud.documentai.v1beta3.BatchProcessMetadata.IndividualProcessStatus.human_review_operation - * is deprecated. See google/cloud/documentai/v1beta3/document_processor_service.proto;l=518 + * is deprecated. See google/cloud/documentai/v1beta3/document_processor_service.proto;l=547 * @return The humanReviewOperation. */ @java.lang.Override @@ -727,16 +734,18 @@ public java.lang.String getHumanReviewOperation() { * *
      * The name of the operation triggered by the processed document. If the
-     * human review process is not triggered, this field will be empty. It has
-     * the same response type and metadata as the long running operation
-     * returned by ReviewDocument method.
+     * human review process isn't triggered, this field will be empty. It has
+     * the same response type and metadata as the long-running operation
+     * returned by the
+     * [ReviewDocument][google.cloud.documentai.v1beta3.DocumentProcessorService.ReviewDocument]
+     * method.
      * 
* * string human_review_operation = 4 [deprecated = true]; * * @deprecated * google.cloud.documentai.v1beta3.BatchProcessMetadata.IndividualProcessStatus.human_review_operation - * is deprecated. See google/cloud/documentai/v1beta3/document_processor_service.proto;l=518 + * is deprecated. See google/cloud/documentai/v1beta3/document_processor_service.proto;l=547 * @return The bytes for humanReviewOperation. */ @java.lang.Override @@ -1296,10 +1305,9 @@ public Builder mergeFrom( * * *
-       * 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
-       * take snapshot of that document, since a user can move or change that
-       * document during the process.
+       * The source of the document, same as the
+       * [input_gcs_source][google.cloud.documentai.v1beta3.BatchProcessMetadata.IndividualProcessStatus.input_gcs_source]
+       * field in the request when the batch process started.
        * 
* * string input_gcs_source = 1; @@ -1321,10 +1329,9 @@ 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
-       * take snapshot of that document, since a user can move or change that
-       * document during the process.
+       * The source of the document, same as the
+       * [input_gcs_source][google.cloud.documentai.v1beta3.BatchProcessMetadata.IndividualProcessStatus.input_gcs_source]
+       * field in the request when the batch process started.
        * 
* * string input_gcs_source = 1; @@ -1346,10 +1353,9 @@ 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
-       * take snapshot of that document, since a user can move or change that
-       * document during the process.
+       * The source of the document, same as the
+       * [input_gcs_source][google.cloud.documentai.v1beta3.BatchProcessMetadata.IndividualProcessStatus.input_gcs_source]
+       * field in the request when the batch process started.
        * 
* * string input_gcs_source = 1; @@ -1370,10 +1376,9 @@ public Builder setInputGcsSource(java.lang.String value) { * * *
-       * 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
-       * take snapshot of that document, since a user can move or change that
-       * document during the process.
+       * The source of the document, same as the
+       * [input_gcs_source][google.cloud.documentai.v1beta3.BatchProcessMetadata.IndividualProcessStatus.input_gcs_source]
+       * field in the request when the batch process started.
        * 
* * string input_gcs_source = 1; @@ -1390,10 +1395,9 @@ public Builder clearInputGcsSource() { * * *
-       * 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
-       * take snapshot of that document, since a user can move or change that
-       * document during the process.
+       * The source of the document, same as the
+       * [input_gcs_source][google.cloud.documentai.v1beta3.BatchProcessMetadata.IndividualProcessStatus.input_gcs_source]
+       * field in the request when the batch process started.
        * 
* * string input_gcs_source = 1; @@ -1591,7 +1595,8 @@ public com.google.rpc.StatusOrBuilder getStatusOrBuilder() { * * *
-       * The output_gcs_destination (in the request as `output_gcs_destination`)
+       * The Cloud Storage output destination (in the request as
+       * [DocumentOutputConfig.GcsOutputConfig.gcs_uri][google.cloud.documentai.v1beta3.DocumentOutputConfig.GcsOutputConfig.gcs_uri])
        * of the processed document if it was successful, otherwise empty.
        * 
* @@ -1614,7 +1619,8 @@ public java.lang.String getOutputGcsDestination() { * * *
-       * The output_gcs_destination (in the request as `output_gcs_destination`)
+       * The Cloud Storage output destination (in the request as
+       * [DocumentOutputConfig.GcsOutputConfig.gcs_uri][google.cloud.documentai.v1beta3.DocumentOutputConfig.GcsOutputConfig.gcs_uri])
        * of the processed document if it was successful, otherwise empty.
        * 
* @@ -1637,7 +1643,8 @@ public com.google.protobuf.ByteString getOutputGcsDestinationBytes() { * * *
-       * The output_gcs_destination (in the request as `output_gcs_destination`)
+       * The Cloud Storage output destination (in the request as
+       * [DocumentOutputConfig.GcsOutputConfig.gcs_uri][google.cloud.documentai.v1beta3.DocumentOutputConfig.GcsOutputConfig.gcs_uri])
        * of the processed document if it was successful, otherwise empty.
        * 
* @@ -1659,7 +1666,8 @@ public Builder setOutputGcsDestination(java.lang.String value) { * * *
-       * The output_gcs_destination (in the request as `output_gcs_destination`)
+       * The Cloud Storage output destination (in the request as
+       * [DocumentOutputConfig.GcsOutputConfig.gcs_uri][google.cloud.documentai.v1beta3.DocumentOutputConfig.GcsOutputConfig.gcs_uri])
        * of the processed document if it was successful, otherwise empty.
        * 
* @@ -1677,7 +1685,8 @@ public Builder clearOutputGcsDestination() { * * *
-       * The output_gcs_destination (in the request as `output_gcs_destination`)
+       * The Cloud Storage output destination (in the request as
+       * [DocumentOutputConfig.GcsOutputConfig.gcs_uri][google.cloud.documentai.v1beta3.DocumentOutputConfig.GcsOutputConfig.gcs_uri])
        * of the processed document if it was successful, otherwise empty.
        * 
* @@ -1703,9 +1712,11 @@ public Builder setOutputGcsDestinationBytes(com.google.protobuf.ByteString value * *
        * The name of the operation triggered by the processed document. If the
-       * human review process is not triggered, this field will be empty. It has
-       * the same response type and metadata as the long running operation
-       * returned by ReviewDocument method.
+       * human review process isn't triggered, this field will be empty. It has
+       * the same response type and metadata as the long-running operation
+       * returned by the
+       * [ReviewDocument][google.cloud.documentai.v1beta3.DocumentProcessorService.ReviewDocument]
+       * method.
        * 
* * string human_review_operation = 4 [deprecated = true]; @@ -1713,7 +1724,7 @@ public Builder setOutputGcsDestinationBytes(com.google.protobuf.ByteString value * @deprecated * google.cloud.documentai.v1beta3.BatchProcessMetadata.IndividualProcessStatus.human_review_operation * is deprecated. See - * google/cloud/documentai/v1beta3/document_processor_service.proto;l=518 + * google/cloud/documentai/v1beta3/document_processor_service.proto;l=547 * @return The humanReviewOperation. */ @java.lang.Deprecated @@ -1733,9 +1744,11 @@ public java.lang.String getHumanReviewOperation() { * *
        * The name of the operation triggered by the processed document. If the
-       * human review process is not triggered, this field will be empty. It has
-       * the same response type and metadata as the long running operation
-       * returned by ReviewDocument method.
+       * human review process isn't triggered, this field will be empty. It has
+       * the same response type and metadata as the long-running operation
+       * returned by the
+       * [ReviewDocument][google.cloud.documentai.v1beta3.DocumentProcessorService.ReviewDocument]
+       * method.
        * 
* * string human_review_operation = 4 [deprecated = true]; @@ -1743,7 +1756,7 @@ public java.lang.String getHumanReviewOperation() { * @deprecated * google.cloud.documentai.v1beta3.BatchProcessMetadata.IndividualProcessStatus.human_review_operation * is deprecated. See - * google/cloud/documentai/v1beta3/document_processor_service.proto;l=518 + * google/cloud/documentai/v1beta3/document_processor_service.proto;l=547 * @return The bytes for humanReviewOperation. */ @java.lang.Deprecated @@ -1763,9 +1776,11 @@ public com.google.protobuf.ByteString getHumanReviewOperationBytes() { * *
        * The name of the operation triggered by the processed document. If the
-       * human review process is not triggered, this field will be empty. It has
-       * the same response type and metadata as the long running operation
-       * returned by ReviewDocument method.
+       * human review process isn't triggered, this field will be empty. It has
+       * the same response type and metadata as the long-running operation
+       * returned by the
+       * [ReviewDocument][google.cloud.documentai.v1beta3.DocumentProcessorService.ReviewDocument]
+       * method.
        * 
* * string human_review_operation = 4 [deprecated = true]; @@ -1773,7 +1788,7 @@ public com.google.protobuf.ByteString getHumanReviewOperationBytes() { * @deprecated * google.cloud.documentai.v1beta3.BatchProcessMetadata.IndividualProcessStatus.human_review_operation * is deprecated. See - * google/cloud/documentai/v1beta3/document_processor_service.proto;l=518 + * google/cloud/documentai/v1beta3/document_processor_service.proto;l=547 * @param value The humanReviewOperation to set. * @return This builder for chaining. */ @@ -1792,9 +1807,11 @@ public Builder setHumanReviewOperation(java.lang.String value) { * *
        * The name of the operation triggered by the processed document. If the
-       * human review process is not triggered, this field will be empty. It has
-       * the same response type and metadata as the long running operation
-       * returned by ReviewDocument method.
+       * human review process isn't triggered, this field will be empty. It has
+       * the same response type and metadata as the long-running operation
+       * returned by the
+       * [ReviewDocument][google.cloud.documentai.v1beta3.DocumentProcessorService.ReviewDocument]
+       * method.
        * 
* * string human_review_operation = 4 [deprecated = true]; @@ -1802,7 +1819,7 @@ public Builder setHumanReviewOperation(java.lang.String value) { * @deprecated * google.cloud.documentai.v1beta3.BatchProcessMetadata.IndividualProcessStatus.human_review_operation * is deprecated. See - * google/cloud/documentai/v1beta3/document_processor_service.proto;l=518 + * google/cloud/documentai/v1beta3/document_processor_service.proto;l=547 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1817,9 +1834,11 @@ public Builder clearHumanReviewOperation() { * *
        * The name of the operation triggered by the processed document. If the
-       * human review process is not triggered, this field will be empty. It has
-       * the same response type and metadata as the long running operation
-       * returned by ReviewDocument method.
+       * human review process isn't triggered, this field will be empty. It has
+       * the same response type and metadata as the long-running operation
+       * returned by the
+       * [ReviewDocument][google.cloud.documentai.v1beta3.DocumentProcessorService.ReviewDocument]
+       * method.
        * 
* * string human_review_operation = 4 [deprecated = true]; @@ -1827,7 +1846,7 @@ public Builder clearHumanReviewOperation() { * @deprecated * google.cloud.documentai.v1beta3.BatchProcessMetadata.IndividualProcessStatus.human_review_operation * is deprecated. See - * google/cloud/documentai/v1beta3/document_processor_service.proto;l=518 + * google/cloud/documentai/v1beta3/document_processor_service.proto;l=547 * @param value The bytes for humanReviewOperation to set. * @return This builder for chaining. */ @@ -2592,7 +2611,8 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * The long running operation metadata for batch process method.
+   * The long-running operation metadata for
+   * [BatchProcessDocuments][google.cloud.documentai.v1beta3.DocumentProcessorService.BatchProcessDocuments].
    * 
* * Protobuf type {@code google.cloud.documentai.v1beta3.BatchProcessMetadata} diff --git a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/BatchProcessRequest.java b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/BatchProcessRequest.java index f347f48b0a9d..a7922a7d73f9 100644 --- a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/BatchProcessRequest.java +++ b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/BatchProcessRequest.java @@ -22,7 +22,8 @@ * * *
- * Request message for batch process document method.
+ * Request message for
+ * [BatchProcessDocuments][google.cloud.documentai.v1beta3.DocumentProcessorService.BatchProcessDocuments].
  * 
* * Protobuf type {@code google.cloud.documentai.v1beta3.BatchProcessRequest} @@ -98,9 +99,13 @@ public interface BatchInputConfigOrBuilder * * *
-     * Mimetype of the input. If the input is a raw document, the supported
-     * mimetypes are application/pdf, image/tiff, and image/gif.
-     * If the input is a [Document] proto, the type should be application/json.
+     * An IANA published [media type (MIME
+     * type)](https://www.iana.org/assignments/media-types/media-types.xhtml) of
+     * the input. If the input is a raw document, refer to [supported file
+     * types](https://cloud.google.com/document-ai/docs/file-types) for the list
+     * of media types. If the input is a
+     * [Document][google.cloud.documentai.v1beta3.Document], the type should be
+     * `application/json`.
      * 
* * string mime_type = 2; @@ -112,9 +117,13 @@ public interface BatchInputConfigOrBuilder * * *
-     * Mimetype of the input. If the input is a raw document, the supported
-     * mimetypes are application/pdf, image/tiff, and image/gif.
-     * If the input is a [Document] proto, the type should be application/json.
+     * An IANA published [media type (MIME
+     * type)](https://www.iana.org/assignments/media-types/media-types.xhtml) of
+     * the input. If the input is a raw document, refer to [supported file
+     * types](https://cloud.google.com/document-ai/docs/file-types) for the list
+     * of media types. If the input is a
+     * [Document][google.cloud.documentai.v1beta3.Document], the type should be
+     * `application/json`.
      * 
* * string mime_type = 2; @@ -229,9 +238,13 @@ public com.google.protobuf.ByteString getGcsSourceBytes() { * * *
-     * Mimetype of the input. If the input is a raw document, the supported
-     * mimetypes are application/pdf, image/tiff, and image/gif.
-     * If the input is a [Document] proto, the type should be application/json.
+     * An IANA published [media type (MIME
+     * type)](https://www.iana.org/assignments/media-types/media-types.xhtml) of
+     * the input. If the input is a raw document, refer to [supported file
+     * types](https://cloud.google.com/document-ai/docs/file-types) for the list
+     * of media types. If the input is a
+     * [Document][google.cloud.documentai.v1beta3.Document], the type should be
+     * `application/json`.
      * 
* * string mime_type = 2; @@ -254,9 +267,13 @@ public java.lang.String getMimeType() { * * *
-     * Mimetype of the input. If the input is a raw document, the supported
-     * mimetypes are application/pdf, image/tiff, and image/gif.
-     * If the input is a [Document] proto, the type should be application/json.
+     * An IANA published [media type (MIME
+     * type)](https://www.iana.org/assignments/media-types/media-types.xhtml) of
+     * the input. If the input is a raw document, refer to [supported file
+     * types](https://cloud.google.com/document-ai/docs/file-types) for the list
+     * of media types. If the input is a
+     * [Document][google.cloud.documentai.v1beta3.Document], the type should be
+     * `application/json`.
      * 
* * string mime_type = 2; @@ -776,9 +793,13 @@ public Builder setGcsSourceBytes(com.google.protobuf.ByteString value) { * * *
-       * Mimetype of the input. If the input is a raw document, the supported
-       * mimetypes are application/pdf, image/tiff, and image/gif.
-       * If the input is a [Document] proto, the type should be application/json.
+       * An IANA published [media type (MIME
+       * type)](https://www.iana.org/assignments/media-types/media-types.xhtml) of
+       * the input. If the input is a raw document, refer to [supported file
+       * types](https://cloud.google.com/document-ai/docs/file-types) for the list
+       * of media types. If the input is a
+       * [Document][google.cloud.documentai.v1beta3.Document], the type should be
+       * `application/json`.
        * 
* * string mime_type = 2; @@ -800,9 +821,13 @@ public java.lang.String getMimeType() { * * *
-       * Mimetype of the input. If the input is a raw document, the supported
-       * mimetypes are application/pdf, image/tiff, and image/gif.
-       * If the input is a [Document] proto, the type should be application/json.
+       * An IANA published [media type (MIME
+       * type)](https://www.iana.org/assignments/media-types/media-types.xhtml) of
+       * the input. If the input is a raw document, refer to [supported file
+       * types](https://cloud.google.com/document-ai/docs/file-types) for the list
+       * of media types. If the input is a
+       * [Document][google.cloud.documentai.v1beta3.Document], the type should be
+       * `application/json`.
        * 
* * string mime_type = 2; @@ -824,9 +849,13 @@ public com.google.protobuf.ByteString getMimeTypeBytes() { * * *
-       * Mimetype of the input. If the input is a raw document, the supported
-       * mimetypes are application/pdf, image/tiff, and image/gif.
-       * If the input is a [Document] proto, the type should be application/json.
+       * An IANA published [media type (MIME
+       * type)](https://www.iana.org/assignments/media-types/media-types.xhtml) of
+       * the input. If the input is a raw document, refer to [supported file
+       * types](https://cloud.google.com/document-ai/docs/file-types) for the list
+       * of media types. If the input is a
+       * [Document][google.cloud.documentai.v1beta3.Document], the type should be
+       * `application/json`.
        * 
* * string mime_type = 2; @@ -847,9 +876,13 @@ public Builder setMimeType(java.lang.String value) { * * *
-       * Mimetype of the input. If the input is a raw document, the supported
-       * mimetypes are application/pdf, image/tiff, and image/gif.
-       * If the input is a [Document] proto, the type should be application/json.
+       * An IANA published [media type (MIME
+       * type)](https://www.iana.org/assignments/media-types/media-types.xhtml) of
+       * the input. If the input is a raw document, refer to [supported file
+       * types](https://cloud.google.com/document-ai/docs/file-types) for the list
+       * of media types. If the input is a
+       * [Document][google.cloud.documentai.v1beta3.Document], the type should be
+       * `application/json`.
        * 
* * string mime_type = 2; @@ -866,9 +899,13 @@ public Builder clearMimeType() { * * *
-       * Mimetype of the input. If the input is a raw document, the supported
-       * mimetypes are application/pdf, image/tiff, and image/gif.
-       * If the input is a [Document] proto, the type should be application/json.
+       * An IANA published [media type (MIME
+       * type)](https://www.iana.org/assignments/media-types/media-types.xhtml) of
+       * the input. If the input is a raw document, refer to [supported file
+       * types](https://cloud.google.com/document-ai/docs/file-types) for the list
+       * of media types. If the input is a
+       * [Document][google.cloud.documentai.v1beta3.Document], the type should be
+       * `application/json`.
        * 
* * string mime_type = 2; @@ -990,7 +1027,9 @@ public interface BatchOutputConfigOrBuilder * * *
-   * The message for output config in batch process.
+   * The output configuration in the
+   * [BatchProcessDocuments][google.cloud.documentai.v1beta3.DocumentProcessorService.BatchProcessDocuments]
+   * method.
    * 
* * Protobuf type {@code google.cloud.documentai.v1beta3.BatchProcessRequest.BatchOutputConfig} @@ -1255,7 +1294,9 @@ protected Builder newBuilderForType( * * *
-     * The message for output config in batch process.
+     * The output configuration in the
+     * [BatchProcessDocuments][google.cloud.documentai.v1beta3.DocumentProcessorService.BatchProcessDocuments]
+     * method.
      * 
* * Protobuf type {@code google.cloud.documentai.v1beta3.BatchProcessRequest.BatchOutputConfig} @@ -1793,7 +1834,7 @@ public com.google.cloud.documentai.v1beta3.BatchProcessRequest.BatchInputConfig *
* * @deprecated google.cloud.documentai.v1beta3.BatchProcessRequest.output_config is deprecated. - * See google/cloud/documentai/v1beta3/document_processor_service.proto;l=478 + * See google/cloud/documentai/v1beta3/document_processor_service.proto;l=499 * @return Whether the outputConfig field is set. */ @java.lang.Override @@ -1813,7 +1854,7 @@ public boolean hasOutputConfig() { *
* * @deprecated google.cloud.documentai.v1beta3.BatchProcessRequest.output_config is deprecated. - * See google/cloud/documentai/v1beta3/document_processor_service.proto;l=478 + * See google/cloud/documentai/v1beta3/document_processor_service.proto;l=499 * @return The outputConfig. */ @java.lang.Override @@ -1852,7 +1893,9 @@ public boolean hasOutputConfig() { * * *
-   * The input documents for batch process.
+   * The input documents for the
+   * [BatchProcessDocuments][google.cloud.documentai.v1beta3.DocumentProcessorService.BatchProcessDocuments]
+   * method.
    * 
* * .google.cloud.documentai.v1beta3.BatchDocumentsInputConfig input_documents = 5; @@ -1867,7 +1910,9 @@ public boolean hasInputDocuments() { * * *
-   * The input documents for batch process.
+   * The input documents for the
+   * [BatchProcessDocuments][google.cloud.documentai.v1beta3.DocumentProcessorService.BatchProcessDocuments]
+   * method.
    * 
* * .google.cloud.documentai.v1beta3.BatchDocumentsInputConfig input_documents = 5; @@ -1884,7 +1929,9 @@ public com.google.cloud.documentai.v1beta3.BatchDocumentsInputConfig getInputDoc * * *
-   * The input documents for batch process.
+   * The input documents for the
+   * [BatchProcessDocuments][google.cloud.documentai.v1beta3.DocumentProcessorService.BatchProcessDocuments]
+   * method.
    * 
* * .google.cloud.documentai.v1beta3.BatchDocumentsInputConfig input_documents = 5; @@ -1903,7 +1950,9 @@ public com.google.cloud.documentai.v1beta3.BatchDocumentsInputConfig getInputDoc * * *
-   * The overall output config for batch process.
+   * The output configuration for the
+   * [BatchProcessDocuments][google.cloud.documentai.v1beta3.DocumentProcessorService.BatchProcessDocuments]
+   * method.
    * 
* * .google.cloud.documentai.v1beta3.DocumentOutputConfig document_output_config = 6; @@ -1918,7 +1967,9 @@ public boolean hasDocumentOutputConfig() { * * *
-   * The overall output config for batch process.
+   * The output configuration for the
+   * [BatchProcessDocuments][google.cloud.documentai.v1beta3.DocumentProcessorService.BatchProcessDocuments]
+   * method.
    * 
* * .google.cloud.documentai.v1beta3.DocumentOutputConfig document_output_config = 6; @@ -1935,7 +1986,9 @@ public com.google.cloud.documentai.v1beta3.DocumentOutputConfig getDocumentOutpu * * *
-   * The overall output config for batch process.
+   * The output configuration for the
+   * [BatchProcessDocuments][google.cloud.documentai.v1beta3.DocumentProcessorService.BatchProcessDocuments]
+   * method.
    * 
* * .google.cloud.documentai.v1beta3.DocumentOutputConfig document_output_config = 6; @@ -1954,8 +2007,8 @@ public com.google.cloud.documentai.v1beta3.DocumentOutputConfig getDocumentOutpu * * *
-   * Whether Human Review feature should be skipped for this request. Default to
-   * false.
+   * Whether human review should be skipped for this request. Default to
+   * `false`.
    * 
* * bool skip_human_review = 4; @@ -2258,7 +2311,8 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * Request message for batch process document method.
+   * Request message for
+   * [BatchProcessDocuments][google.cloud.documentai.v1beta3.DocumentProcessorService.BatchProcessDocuments].
    * 
* * Protobuf type {@code google.cloud.documentai.v1beta3.BatchProcessRequest} @@ -3178,7 +3232,7 @@ public Builder removeInputConfigs(int index) { *
* * @deprecated google.cloud.documentai.v1beta3.BatchProcessRequest.output_config is deprecated. - * See google/cloud/documentai/v1beta3/document_processor_service.proto;l=478 + * See google/cloud/documentai/v1beta3/document_processor_service.proto;l=499 * @return Whether the outputConfig field is set. */ @java.lang.Deprecated @@ -3197,7 +3251,7 @@ public boolean hasOutputConfig() { *
* * @deprecated google.cloud.documentai.v1beta3.BatchProcessRequest.output_config is deprecated. - * See google/cloud/documentai/v1beta3/document_processor_service.proto;l=478 + * See google/cloud/documentai/v1beta3/document_processor_service.proto;l=499 * @return The outputConfig. */ @java.lang.Deprecated @@ -3394,7 +3448,9 @@ public Builder clearOutputConfig() { * * *
-     * The input documents for batch process.
+     * The input documents for the
+     * [BatchProcessDocuments][google.cloud.documentai.v1beta3.DocumentProcessorService.BatchProcessDocuments]
+     * method.
      * 
* * .google.cloud.documentai.v1beta3.BatchDocumentsInputConfig input_documents = 5; @@ -3408,7 +3464,9 @@ public boolean hasInputDocuments() { * * *
-     * The input documents for batch process.
+     * The input documents for the
+     * [BatchProcessDocuments][google.cloud.documentai.v1beta3.DocumentProcessorService.BatchProcessDocuments]
+     * method.
      * 
* * .google.cloud.documentai.v1beta3.BatchDocumentsInputConfig input_documents = 5; @@ -3428,7 +3486,9 @@ public com.google.cloud.documentai.v1beta3.BatchDocumentsInputConfig getInputDoc * * *
-     * The input documents for batch process.
+     * The input documents for the
+     * [BatchProcessDocuments][google.cloud.documentai.v1beta3.DocumentProcessorService.BatchProcessDocuments]
+     * method.
      * 
* * .google.cloud.documentai.v1beta3.BatchDocumentsInputConfig input_documents = 5; @@ -3451,7 +3511,9 @@ public Builder setInputDocuments( * * *
-     * The input documents for batch process.
+     * The input documents for the
+     * [BatchProcessDocuments][google.cloud.documentai.v1beta3.DocumentProcessorService.BatchProcessDocuments]
+     * method.
      * 
* * .google.cloud.documentai.v1beta3.BatchDocumentsInputConfig input_documents = 5; @@ -3471,7 +3533,9 @@ public Builder setInputDocuments( * * *
-     * The input documents for batch process.
+     * The input documents for the
+     * [BatchProcessDocuments][google.cloud.documentai.v1beta3.DocumentProcessorService.BatchProcessDocuments]
+     * method.
      * 
* * .google.cloud.documentai.v1beta3.BatchDocumentsInputConfig input_documents = 5; @@ -3499,7 +3563,9 @@ public Builder mergeInputDocuments( * * *
-     * The input documents for batch process.
+     * The input documents for the
+     * [BatchProcessDocuments][google.cloud.documentai.v1beta3.DocumentProcessorService.BatchProcessDocuments]
+     * method.
      * 
* * .google.cloud.documentai.v1beta3.BatchDocumentsInputConfig input_documents = 5; @@ -3518,7 +3584,9 @@ public Builder clearInputDocuments() { * * *
-     * The input documents for batch process.
+     * The input documents for the
+     * [BatchProcessDocuments][google.cloud.documentai.v1beta3.DocumentProcessorService.BatchProcessDocuments]
+     * method.
      * 
* * .google.cloud.documentai.v1beta3.BatchDocumentsInputConfig input_documents = 5; @@ -3533,7 +3601,9 @@ public Builder clearInputDocuments() { * * *
-     * The input documents for batch process.
+     * The input documents for the
+     * [BatchProcessDocuments][google.cloud.documentai.v1beta3.DocumentProcessorService.BatchProcessDocuments]
+     * method.
      * 
* * .google.cloud.documentai.v1beta3.BatchDocumentsInputConfig input_documents = 5; @@ -3552,7 +3622,9 @@ public Builder clearInputDocuments() { * * *
-     * The input documents for batch process.
+     * The input documents for the
+     * [BatchProcessDocuments][google.cloud.documentai.v1beta3.DocumentProcessorService.BatchProcessDocuments]
+     * method.
      * 
* * .google.cloud.documentai.v1beta3.BatchDocumentsInputConfig input_documents = 5; @@ -3584,7 +3656,9 @@ public Builder clearInputDocuments() { * * *
-     * The overall output config for batch process.
+     * The output configuration for the
+     * [BatchProcessDocuments][google.cloud.documentai.v1beta3.DocumentProcessorService.BatchProcessDocuments]
+     * method.
      * 
* * .google.cloud.documentai.v1beta3.DocumentOutputConfig document_output_config = 6; @@ -3599,7 +3673,9 @@ public boolean hasDocumentOutputConfig() { * * *
-     * The overall output config for batch process.
+     * The output configuration for the
+     * [BatchProcessDocuments][google.cloud.documentai.v1beta3.DocumentProcessorService.BatchProcessDocuments]
+     * method.
      * 
* * .google.cloud.documentai.v1beta3.DocumentOutputConfig document_output_config = 6; @@ -3620,7 +3696,9 @@ public com.google.cloud.documentai.v1beta3.DocumentOutputConfig getDocumentOutpu * * *
-     * The overall output config for batch process.
+     * The output configuration for the
+     * [BatchProcessDocuments][google.cloud.documentai.v1beta3.DocumentProcessorService.BatchProcessDocuments]
+     * method.
      * 
* * .google.cloud.documentai.v1beta3.DocumentOutputConfig document_output_config = 6; @@ -3644,7 +3722,9 @@ public Builder setDocumentOutputConfig( * * *
-     * The overall output config for batch process.
+     * The output configuration for the
+     * [BatchProcessDocuments][google.cloud.documentai.v1beta3.DocumentProcessorService.BatchProcessDocuments]
+     * method.
      * 
* * .google.cloud.documentai.v1beta3.DocumentOutputConfig document_output_config = 6; @@ -3665,7 +3745,9 @@ public Builder setDocumentOutputConfig( * * *
-     * The overall output config for batch process.
+     * The output configuration for the
+     * [BatchProcessDocuments][google.cloud.documentai.v1beta3.DocumentProcessorService.BatchProcessDocuments]
+     * method.
      * 
* * .google.cloud.documentai.v1beta3.DocumentOutputConfig document_output_config = 6; @@ -3693,7 +3775,9 @@ public Builder mergeDocumentOutputConfig( * * *
-     * The overall output config for batch process.
+     * The output configuration for the
+     * [BatchProcessDocuments][google.cloud.documentai.v1beta3.DocumentProcessorService.BatchProcessDocuments]
+     * method.
      * 
* * .google.cloud.documentai.v1beta3.DocumentOutputConfig document_output_config = 6; @@ -3713,7 +3797,9 @@ public Builder clearDocumentOutputConfig() { * * *
-     * The overall output config for batch process.
+     * The output configuration for the
+     * [BatchProcessDocuments][google.cloud.documentai.v1beta3.DocumentProcessorService.BatchProcessDocuments]
+     * method.
      * 
* * .google.cloud.documentai.v1beta3.DocumentOutputConfig document_output_config = 6; @@ -3729,7 +3815,9 @@ public Builder clearDocumentOutputConfig() { * * *
-     * The overall output config for batch process.
+     * The output configuration for the
+     * [BatchProcessDocuments][google.cloud.documentai.v1beta3.DocumentProcessorService.BatchProcessDocuments]
+     * method.
      * 
* * .google.cloud.documentai.v1beta3.DocumentOutputConfig document_output_config = 6; @@ -3749,7 +3837,9 @@ public Builder clearDocumentOutputConfig() { * * *
-     * The overall output config for batch process.
+     * The output configuration for the
+     * [BatchProcessDocuments][google.cloud.documentai.v1beta3.DocumentProcessorService.BatchProcessDocuments]
+     * method.
      * 
* * .google.cloud.documentai.v1beta3.DocumentOutputConfig document_output_config = 6; @@ -3777,8 +3867,8 @@ public Builder clearDocumentOutputConfig() { * * *
-     * Whether Human Review feature should be skipped for this request. Default to
-     * false.
+     * Whether human review should be skipped for this request. Default to
+     * `false`.
      * 
* * bool skip_human_review = 4; @@ -3793,8 +3883,8 @@ public boolean getSkipHumanReview() { * * *
-     * Whether Human Review feature should be skipped for this request. Default to
-     * false.
+     * Whether human review should be skipped for this request. Default to
+     * `false`.
      * 
* * bool skip_human_review = 4; @@ -3813,8 +3903,8 @@ public Builder setSkipHumanReview(boolean value) { * * *
-     * Whether Human Review feature should be skipped for this request. Default to
-     * false.
+     * Whether human review should be skipped for this request. Default to
+     * `false`.
      * 
* * bool skip_human_review = 4; diff --git a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/BatchProcessRequestOrBuilder.java b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/BatchProcessRequestOrBuilder.java index fb0e08517ac5..e1798f7e6a62 100644 --- a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/BatchProcessRequestOrBuilder.java +++ b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/BatchProcessRequestOrBuilder.java @@ -146,7 +146,7 @@ com.google.cloud.documentai.v1beta3.BatchProcessRequest.BatchInputConfig getInpu *
* * @deprecated google.cloud.documentai.v1beta3.BatchProcessRequest.output_config is deprecated. - * See google/cloud/documentai/v1beta3/document_processor_service.proto;l=478 + * See google/cloud/documentai/v1beta3/document_processor_service.proto;l=499 * @return Whether the outputConfig field is set. */ @java.lang.Deprecated @@ -163,7 +163,7 @@ com.google.cloud.documentai.v1beta3.BatchProcessRequest.BatchInputConfig getInpu *
* * @deprecated google.cloud.documentai.v1beta3.BatchProcessRequest.output_config is deprecated. - * See google/cloud/documentai/v1beta3/document_processor_service.proto;l=478 + * See google/cloud/documentai/v1beta3/document_processor_service.proto;l=499 * @return The outputConfig. */ @java.lang.Deprecated @@ -187,7 +187,9 @@ com.google.cloud.documentai.v1beta3.BatchProcessRequest.BatchInputConfig getInpu * * *
-   * The input documents for batch process.
+   * The input documents for the
+   * [BatchProcessDocuments][google.cloud.documentai.v1beta3.DocumentProcessorService.BatchProcessDocuments]
+   * method.
    * 
* * .google.cloud.documentai.v1beta3.BatchDocumentsInputConfig input_documents = 5; @@ -199,7 +201,9 @@ com.google.cloud.documentai.v1beta3.BatchProcessRequest.BatchInputConfig getInpu * * *
-   * The input documents for batch process.
+   * The input documents for the
+   * [BatchProcessDocuments][google.cloud.documentai.v1beta3.DocumentProcessorService.BatchProcessDocuments]
+   * method.
    * 
* * .google.cloud.documentai.v1beta3.BatchDocumentsInputConfig input_documents = 5; @@ -211,7 +215,9 @@ com.google.cloud.documentai.v1beta3.BatchProcessRequest.BatchInputConfig getInpu * * *
-   * The input documents for batch process.
+   * The input documents for the
+   * [BatchProcessDocuments][google.cloud.documentai.v1beta3.DocumentProcessorService.BatchProcessDocuments]
+   * method.
    * 
* * .google.cloud.documentai.v1beta3.BatchDocumentsInputConfig input_documents = 5; @@ -223,7 +229,9 @@ com.google.cloud.documentai.v1beta3.BatchProcessRequest.BatchInputConfig getInpu * * *
-   * The overall output config for batch process.
+   * The output configuration for the
+   * [BatchProcessDocuments][google.cloud.documentai.v1beta3.DocumentProcessorService.BatchProcessDocuments]
+   * method.
    * 
* * .google.cloud.documentai.v1beta3.DocumentOutputConfig document_output_config = 6; @@ -235,7 +243,9 @@ com.google.cloud.documentai.v1beta3.BatchProcessRequest.BatchInputConfig getInpu * * *
-   * The overall output config for batch process.
+   * The output configuration for the
+   * [BatchProcessDocuments][google.cloud.documentai.v1beta3.DocumentProcessorService.BatchProcessDocuments]
+   * method.
    * 
* * .google.cloud.documentai.v1beta3.DocumentOutputConfig document_output_config = 6; @@ -247,7 +257,9 @@ com.google.cloud.documentai.v1beta3.BatchProcessRequest.BatchInputConfig getInpu * * *
-   * The overall output config for batch process.
+   * The output configuration for the
+   * [BatchProcessDocuments][google.cloud.documentai.v1beta3.DocumentProcessorService.BatchProcessDocuments]
+   * method.
    * 
* * .google.cloud.documentai.v1beta3.DocumentOutputConfig document_output_config = 6; @@ -259,8 +271,8 @@ com.google.cloud.documentai.v1beta3.BatchProcessRequest.BatchInputConfig getInpu * * *
-   * Whether Human Review feature should be skipped for this request. Default to
-   * false.
+   * Whether human review should be skipped for this request. Default to
+   * `false`.
    * 
* * bool skip_human_review = 4; diff --git a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/BatchProcessResponse.java b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/BatchProcessResponse.java index 48af4944f78a..eaeec5ef1049 100644 --- a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/BatchProcessResponse.java +++ b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/BatchProcessResponse.java @@ -22,7 +22,8 @@ * * *
- * Response message for batch process document method.
+ * Response message for
+ * [BatchProcessDocuments][google.cloud.documentai.v1beta3.DocumentProcessorService.BatchProcessDocuments].
  * 
* * Protobuf type {@code google.cloud.documentai.v1beta3.BatchProcessResponse} @@ -215,7 +216,8 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * Response message for batch process document method.
+   * Response message for
+   * [BatchProcessDocuments][google.cloud.documentai.v1beta3.DocumentProcessorService.BatchProcessDocuments].
    * 
* * Protobuf type {@code google.cloud.documentai.v1beta3.BatchProcessResponse} diff --git a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/CreateProcessorRequest.java b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/CreateProcessorRequest.java index 5d1ec76b7aa9..e57401fb7372 100644 --- a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/CreateProcessorRequest.java +++ b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/CreateProcessorRequest.java @@ -22,9 +22,11 @@ * * *
- * Request message for create a processor. Notice this request is sent to
- * a regionalized backend service, and if the processor type is not available
- * on that region, the creation will fail.
+ * Request message for the
+ * [CreateProcessor][google.cloud.documentai.v1beta3.DocumentProcessorService.CreateProcessor]
+ * method. Notice this request is sent to a regionalized backend service. If the
+ * [ProcessorType][google.cloud.documentai.v1beta3.ProcessorType] isn't
+ * available in that region, the creation fails.
  * 
* * Protobuf type {@code google.cloud.documentai.v1beta3.CreateProcessorRequest} @@ -127,9 +129,11 @@ public com.google.protobuf.ByteString getParentBytes() { * * *
-   * Required. The processor to be created, requires [processor_type] and
-   * [display_name] to be set. Also, the processor is under CMEK if CMEK fields
-   * are set.
+   * Required. The processor to be created, requires
+   * [Processor.type][google.cloud.documentai.v1beta3.Processor.type] and
+   * [Processor.display_name]][] to be set. Also, the
+   * [Processor.kms_key_name][google.cloud.documentai.v1beta3.Processor.kms_key_name]
+   * field must be set if the processor is under CMEK.
    * 
* * @@ -146,9 +150,11 @@ public boolean hasProcessor() { * * *
-   * Required. The processor to be created, requires [processor_type] and
-   * [display_name] to be set. Also, the processor is under CMEK if CMEK fields
-   * are set.
+   * Required. The processor to be created, requires
+   * [Processor.type][google.cloud.documentai.v1beta3.Processor.type] and
+   * [Processor.display_name]][] to be set. Also, the
+   * [Processor.kms_key_name][google.cloud.documentai.v1beta3.Processor.kms_key_name]
+   * field must be set if the processor is under CMEK.
    * 
* * @@ -167,9 +173,11 @@ public com.google.cloud.documentai.v1beta3.Processor getProcessor() { * * *
-   * Required. The processor to be created, requires [processor_type] and
-   * [display_name] to be set. Also, the processor is under CMEK if CMEK fields
-   * are set.
+   * Required. The processor to be created, requires
+   * [Processor.type][google.cloud.documentai.v1beta3.Processor.type] and
+   * [Processor.display_name]][] to be set. Also, the
+   * [Processor.kms_key_name][google.cloud.documentai.v1beta3.Processor.kms_key_name]
+   * field must be set if the processor is under CMEK.
    * 
* * @@ -361,9 +369,11 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * Request message for create a processor. Notice this request is sent to
-   * a regionalized backend service, and if the processor type is not available
-   * on that region, the creation will fail.
+   * Request message for the
+   * [CreateProcessor][google.cloud.documentai.v1beta3.DocumentProcessorService.CreateProcessor]
+   * method. Notice this request is sent to a regionalized backend service. If the
+   * [ProcessorType][google.cloud.documentai.v1beta3.ProcessorType] isn't
+   * available in that region, the creation fails.
    * 
* * Protobuf type {@code google.cloud.documentai.v1beta3.CreateProcessorRequest} @@ -690,9 +700,11 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { * * *
-     * Required. The processor to be created, requires [processor_type] and
-     * [display_name] to be set. Also, the processor is under CMEK if CMEK fields
-     * are set.
+     * Required. The processor to be created, requires
+     * [Processor.type][google.cloud.documentai.v1beta3.Processor.type] and
+     * [Processor.display_name]][] to be set. Also, the
+     * [Processor.kms_key_name][google.cloud.documentai.v1beta3.Processor.kms_key_name]
+     * field must be set if the processor is under CMEK.
      * 
* * @@ -708,9 +720,11 @@ public boolean hasProcessor() { * * *
-     * Required. The processor to be created, requires [processor_type] and
-     * [display_name] to be set. Also, the processor is under CMEK if CMEK fields
-     * are set.
+     * Required. The processor to be created, requires
+     * [Processor.type][google.cloud.documentai.v1beta3.Processor.type] and
+     * [Processor.display_name]][] to be set. Also, the
+     * [Processor.kms_key_name][google.cloud.documentai.v1beta3.Processor.kms_key_name]
+     * field must be set if the processor is under CMEK.
      * 
* * @@ -732,9 +746,11 @@ public com.google.cloud.documentai.v1beta3.Processor getProcessor() { * * *
-     * Required. The processor to be created, requires [processor_type] and
-     * [display_name] to be set. Also, the processor is under CMEK if CMEK fields
-     * are set.
+     * Required. The processor to be created, requires
+     * [Processor.type][google.cloud.documentai.v1beta3.Processor.type] and
+     * [Processor.display_name]][] to be set. Also, the
+     * [Processor.kms_key_name][google.cloud.documentai.v1beta3.Processor.kms_key_name]
+     * field must be set if the processor is under CMEK.
      * 
* * @@ -758,9 +774,11 @@ public Builder setProcessor(com.google.cloud.documentai.v1beta3.Processor value) * * *
-     * Required. The processor to be created, requires [processor_type] and
-     * [display_name] to be set. Also, the processor is under CMEK if CMEK fields
-     * are set.
+     * Required. The processor to be created, requires
+     * [Processor.type][google.cloud.documentai.v1beta3.Processor.type] and
+     * [Processor.display_name]][] to be set. Also, the
+     * [Processor.kms_key_name][google.cloud.documentai.v1beta3.Processor.kms_key_name]
+     * field must be set if the processor is under CMEK.
      * 
* * @@ -782,9 +800,11 @@ public Builder setProcessor( * * *
-     * Required. The processor to be created, requires [processor_type] and
-     * [display_name] to be set. Also, the processor is under CMEK if CMEK fields
-     * are set.
+     * Required. The processor to be created, requires
+     * [Processor.type][google.cloud.documentai.v1beta3.Processor.type] and
+     * [Processor.display_name]][] to be set. Also, the
+     * [Processor.kms_key_name][google.cloud.documentai.v1beta3.Processor.kms_key_name]
+     * field must be set if the processor is under CMEK.
      * 
* * @@ -811,9 +831,11 @@ public Builder mergeProcessor(com.google.cloud.documentai.v1beta3.Processor valu * * *
-     * Required. The processor to be created, requires [processor_type] and
-     * [display_name] to be set. Also, the processor is under CMEK if CMEK fields
-     * are set.
+     * Required. The processor to be created, requires
+     * [Processor.type][google.cloud.documentai.v1beta3.Processor.type] and
+     * [Processor.display_name]][] to be set. Also, the
+     * [Processor.kms_key_name][google.cloud.documentai.v1beta3.Processor.kms_key_name]
+     * field must be set if the processor is under CMEK.
      * 
* * @@ -834,9 +856,11 @@ public Builder clearProcessor() { * * *
-     * Required. The processor to be created, requires [processor_type] and
-     * [display_name] to be set. Also, the processor is under CMEK if CMEK fields
-     * are set.
+     * Required. The processor to be created, requires
+     * [Processor.type][google.cloud.documentai.v1beta3.Processor.type] and
+     * [Processor.display_name]][] to be set. Also, the
+     * [Processor.kms_key_name][google.cloud.documentai.v1beta3.Processor.kms_key_name]
+     * field must be set if the processor is under CMEK.
      * 
* * @@ -852,9 +876,11 @@ public com.google.cloud.documentai.v1beta3.Processor.Builder getProcessorBuilder * * *
-     * Required. The processor to be created, requires [processor_type] and
-     * [display_name] to be set. Also, the processor is under CMEK if CMEK fields
-     * are set.
+     * Required. The processor to be created, requires
+     * [Processor.type][google.cloud.documentai.v1beta3.Processor.type] and
+     * [Processor.display_name]][] to be set. Also, the
+     * [Processor.kms_key_name][google.cloud.documentai.v1beta3.Processor.kms_key_name]
+     * field must be set if the processor is under CMEK.
      * 
* * @@ -874,9 +900,11 @@ public com.google.cloud.documentai.v1beta3.ProcessorOrBuilder getProcessorOrBuil * * *
-     * Required. The processor to be created, requires [processor_type] and
-     * [display_name] to be set. Also, the processor is under CMEK if CMEK fields
-     * are set.
+     * Required. The processor to be created, requires
+     * [Processor.type][google.cloud.documentai.v1beta3.Processor.type] and
+     * [Processor.display_name]][] to be set. Also, the
+     * [Processor.kms_key_name][google.cloud.documentai.v1beta3.Processor.kms_key_name]
+     * field must be set if the processor is under CMEK.
      * 
* * diff --git a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/CreateProcessorRequestOrBuilder.java b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/CreateProcessorRequestOrBuilder.java index b94ec632e821..a240c6e2788d 100644 --- a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/CreateProcessorRequestOrBuilder.java +++ b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/CreateProcessorRequestOrBuilder.java @@ -58,9 +58,11 @@ public interface CreateProcessorRequestOrBuilder * * *
-   * Required. The processor to be created, requires [processor_type] and
-   * [display_name] to be set. Also, the processor is under CMEK if CMEK fields
-   * are set.
+   * Required. The processor to be created, requires
+   * [Processor.type][google.cloud.documentai.v1beta3.Processor.type] and
+   * [Processor.display_name]][] to be set. Also, the
+   * [Processor.kms_key_name][google.cloud.documentai.v1beta3.Processor.kms_key_name]
+   * field must be set if the processor is under CMEK.
    * 
* * @@ -74,9 +76,11 @@ public interface CreateProcessorRequestOrBuilder * * *
-   * Required. The processor to be created, requires [processor_type] and
-   * [display_name] to be set. Also, the processor is under CMEK if CMEK fields
-   * are set.
+   * Required. The processor to be created, requires
+   * [Processor.type][google.cloud.documentai.v1beta3.Processor.type] and
+   * [Processor.display_name]][] to be set. Also, the
+   * [Processor.kms_key_name][google.cloud.documentai.v1beta3.Processor.kms_key_name]
+   * field must be set if the processor is under CMEK.
    * 
* * @@ -90,9 +94,11 @@ public interface CreateProcessorRequestOrBuilder * * *
-   * Required. The processor to be created, requires [processor_type] and
-   * [display_name] to be set. Also, the processor is under CMEK if CMEK fields
-   * are set.
+   * Required. The processor to be created, requires
+   * [Processor.type][google.cloud.documentai.v1beta3.Processor.type] and
+   * [Processor.display_name]][] to be set. Also, the
+   * [Processor.kms_key_name][google.cloud.documentai.v1beta3.Processor.kms_key_name]
+   * field must be set if the processor is under CMEK.
    * 
* * diff --git a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/Dataset.java b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/Dataset.java new file mode 100644 index 000000000000..ee1ccafd868e --- /dev/null +++ b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/Dataset.java @@ -0,0 +1,5108 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the 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/v1beta3/dataset.proto + +package com.google.cloud.documentai.v1beta3; + +/** + * + * + *
+ * A singleton resource under a
+ * [Processor][google.cloud.documentai.v1beta3.Processor] which configures a
+ * collection of documents.
+ * 
+ * + * Protobuf type {@code google.cloud.documentai.v1beta3.Dataset} + */ +public final class Dataset extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.documentai.v1beta3.Dataset) + DatasetOrBuilder { + private static final long serialVersionUID = 0L; + // Use Dataset.newBuilder() to construct. + private Dataset(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private Dataset() { + name_ = ""; + state_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Dataset(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.documentai.v1beta3.DatasetProto + .internal_static_google_cloud_documentai_v1beta3_Dataset_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.documentai.v1beta3.DatasetProto + .internal_static_google_cloud_documentai_v1beta3_Dataset_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.documentai.v1beta3.Dataset.class, + com.google.cloud.documentai.v1beta3.Dataset.Builder.class); + } + + /** + * + * + *
+   * Different states of a dataset.
+   * 
+ * + * Protobuf enum {@code google.cloud.documentai.v1beta3.Dataset.State} + */ + public enum State implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Default unspecified enum, should not be used.
+     * 
+ * + * STATE_UNSPECIFIED = 0; + */ + STATE_UNSPECIFIED(0), + /** + * + * + *
+     * Dataset has not been initialized.
+     * 
+ * + * UNINITIALIZED = 1; + */ + UNINITIALIZED(1), + /** + * + * + *
+     * Dataset is being initialized.
+     * 
+ * + * INITIALIZING = 2; + */ + INITIALIZING(2), + /** + * + * + *
+     * Dataset has been initialized.
+     * 
+ * + * INITIALIZED = 3; + */ + INITIALIZED(3), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * Default unspecified enum, should not be used.
+     * 
+ * + * STATE_UNSPECIFIED = 0; + */ + public static final int STATE_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+     * Dataset has not been initialized.
+     * 
+ * + * UNINITIALIZED = 1; + */ + public static final int UNINITIALIZED_VALUE = 1; + /** + * + * + *
+     * Dataset is being initialized.
+     * 
+ * + * INITIALIZING = 2; + */ + public static final int INITIALIZING_VALUE = 2; + /** + * + * + *
+     * Dataset has been initialized.
+     * 
+ * + * INITIALIZED = 3; + */ + public static final int INITIALIZED_VALUE = 3; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static State valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static State forNumber(int value) { + switch (value) { + case 0: + return STATE_UNSPECIFIED; + case 1: + return UNINITIALIZED; + case 2: + return INITIALIZING; + case 3: + return INITIALIZED; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public State findValueByNumber(int number) { + return State.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.documentai.v1beta3.Dataset.getDescriptor().getEnumTypes().get(0); + } + + private static final State[] VALUES = values(); + + 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."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private State(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.documentai.v1beta3.Dataset.State) + } + + public interface GCSManagedConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.documentai.v1beta3.Dataset.GCSManagedConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * Required. The Cloud Storage URI (a directory) where the documents
+     * belonging to the dataset must be stored.
+     * 
+ * + * + * .google.cloud.documentai.v1beta3.GcsPrefix gcs_prefix = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the gcsPrefix field is set. + */ + boolean hasGcsPrefix(); + /** + * + * + *
+     * Required. The Cloud Storage URI (a directory) where the documents
+     * belonging to the dataset must be stored.
+     * 
+ * + * + * .google.cloud.documentai.v1beta3.GcsPrefix gcs_prefix = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The gcsPrefix. + */ + com.google.cloud.documentai.v1beta3.GcsPrefix getGcsPrefix(); + /** + * + * + *
+     * Required. The Cloud Storage URI (a directory) where the documents
+     * belonging to the dataset must be stored.
+     * 
+ * + * + * .google.cloud.documentai.v1beta3.GcsPrefix gcs_prefix = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.documentai.v1beta3.GcsPrefixOrBuilder getGcsPrefixOrBuilder(); + } + /** + * + * + *
+   * Configuration specific to the Cloud Storage-based implementation.
+   * 
+ * + * Protobuf type {@code google.cloud.documentai.v1beta3.Dataset.GCSManagedConfig} + */ + public static final class GCSManagedConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.documentai.v1beta3.Dataset.GCSManagedConfig) + GCSManagedConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use GCSManagedConfig.newBuilder() to construct. + private GCSManagedConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GCSManagedConfig() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GCSManagedConfig(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.documentai.v1beta3.DatasetProto + .internal_static_google_cloud_documentai_v1beta3_Dataset_GCSManagedConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.documentai.v1beta3.DatasetProto + .internal_static_google_cloud_documentai_v1beta3_Dataset_GCSManagedConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.documentai.v1beta3.Dataset.GCSManagedConfig.class, + com.google.cloud.documentai.v1beta3.Dataset.GCSManagedConfig.Builder.class); + } + + public static final int GCS_PREFIX_FIELD_NUMBER = 1; + private com.google.cloud.documentai.v1beta3.GcsPrefix gcsPrefix_; + /** + * + * + *
+     * Required. The Cloud Storage URI (a directory) where the documents
+     * belonging to the dataset must be stored.
+     * 
+ * + * + * .google.cloud.documentai.v1beta3.GcsPrefix gcs_prefix = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the gcsPrefix field is set. + */ + @java.lang.Override + public boolean hasGcsPrefix() { + return gcsPrefix_ != null; + } + /** + * + * + *
+     * Required. The Cloud Storage URI (a directory) where the documents
+     * belonging to the dataset must be stored.
+     * 
+ * + * + * .google.cloud.documentai.v1beta3.GcsPrefix gcs_prefix = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The gcsPrefix. + */ + @java.lang.Override + public com.google.cloud.documentai.v1beta3.GcsPrefix getGcsPrefix() { + return gcsPrefix_ == null + ? com.google.cloud.documentai.v1beta3.GcsPrefix.getDefaultInstance() + : gcsPrefix_; + } + /** + * + * + *
+     * Required. The Cloud Storage URI (a directory) where the documents
+     * belonging to the dataset must be stored.
+     * 
+ * + * + * .google.cloud.documentai.v1beta3.GcsPrefix gcs_prefix = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.documentai.v1beta3.GcsPrefixOrBuilder getGcsPrefixOrBuilder() { + return gcsPrefix_ == null + ? com.google.cloud.documentai.v1beta3.GcsPrefix.getDefaultInstance() + : gcsPrefix_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (gcsPrefix_ != null) { + output.writeMessage(1, getGcsPrefix()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (gcsPrefix_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getGcsPrefix()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.documentai.v1beta3.Dataset.GCSManagedConfig)) { + return super.equals(obj); + } + com.google.cloud.documentai.v1beta3.Dataset.GCSManagedConfig other = + (com.google.cloud.documentai.v1beta3.Dataset.GCSManagedConfig) obj; + + if (hasGcsPrefix() != other.hasGcsPrefix()) return false; + if (hasGcsPrefix()) { + if (!getGcsPrefix().equals(other.getGcsPrefix())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasGcsPrefix()) { + hash = (37 * hash) + GCS_PREFIX_FIELD_NUMBER; + hash = (53 * hash) + getGcsPrefix().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.documentai.v1beta3.Dataset.GCSManagedConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.documentai.v1beta3.Dataset.GCSManagedConfig 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.v1beta3.Dataset.GCSManagedConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.documentai.v1beta3.Dataset.GCSManagedConfig parseFrom( + com.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.v1beta3.Dataset.GCSManagedConfig parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.documentai.v1beta3.Dataset.GCSManagedConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.documentai.v1beta3.Dataset.GCSManagedConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.documentai.v1beta3.Dataset.GCSManagedConfig 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.v1beta3.Dataset.GCSManagedConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.documentai.v1beta3.Dataset.GCSManagedConfig 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.v1beta3.Dataset.GCSManagedConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.documentai.v1beta3.Dataset.GCSManagedConfig 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 static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.documentai.v1beta3.Dataset.GCSManagedConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+     * Configuration specific to the Cloud Storage-based implementation.
+     * 
+ * + * Protobuf type {@code google.cloud.documentai.v1beta3.Dataset.GCSManagedConfig} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.documentai.v1beta3.Dataset.GCSManagedConfig) + com.google.cloud.documentai.v1beta3.Dataset.GCSManagedConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.documentai.v1beta3.DatasetProto + .internal_static_google_cloud_documentai_v1beta3_Dataset_GCSManagedConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.documentai.v1beta3.DatasetProto + .internal_static_google_cloud_documentai_v1beta3_Dataset_GCSManagedConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.documentai.v1beta3.Dataset.GCSManagedConfig.class, + com.google.cloud.documentai.v1beta3.Dataset.GCSManagedConfig.Builder.class); + } + + // Construct using com.google.cloud.documentai.v1beta3.Dataset.GCSManagedConfig.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + gcsPrefix_ = null; + if (gcsPrefixBuilder_ != null) { + gcsPrefixBuilder_.dispose(); + gcsPrefixBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.documentai.v1beta3.DatasetProto + .internal_static_google_cloud_documentai_v1beta3_Dataset_GCSManagedConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.documentai.v1beta3.Dataset.GCSManagedConfig + getDefaultInstanceForType() { + return com.google.cloud.documentai.v1beta3.Dataset.GCSManagedConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.documentai.v1beta3.Dataset.GCSManagedConfig build() { + com.google.cloud.documentai.v1beta3.Dataset.GCSManagedConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.documentai.v1beta3.Dataset.GCSManagedConfig buildPartial() { + com.google.cloud.documentai.v1beta3.Dataset.GCSManagedConfig result = + new com.google.cloud.documentai.v1beta3.Dataset.GCSManagedConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.documentai.v1beta3.Dataset.GCSManagedConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.gcsPrefix_ = gcsPrefixBuilder_ == null ? gcsPrefix_ : gcsPrefixBuilder_.build(); + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.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.v1beta3.Dataset.GCSManagedConfig) { + return mergeFrom((com.google.cloud.documentai.v1beta3.Dataset.GCSManagedConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.documentai.v1beta3.Dataset.GCSManagedConfig other) { + if (other + == com.google.cloud.documentai.v1beta3.Dataset.GCSManagedConfig.getDefaultInstance()) + return this; + if (other.hasGcsPrefix()) { + mergeGcsPrefix(other.getGcsPrefix()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage(getGcsPrefixFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.cloud.documentai.v1beta3.GcsPrefix gcsPrefix_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.documentai.v1beta3.GcsPrefix, + com.google.cloud.documentai.v1beta3.GcsPrefix.Builder, + com.google.cloud.documentai.v1beta3.GcsPrefixOrBuilder> + gcsPrefixBuilder_; + /** + * + * + *
+       * Required. The Cloud Storage URI (a directory) where the documents
+       * belonging to the dataset must be stored.
+       * 
+ * + * + * .google.cloud.documentai.v1beta3.GcsPrefix gcs_prefix = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the gcsPrefix field is set. + */ + public boolean hasGcsPrefix() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+       * Required. The Cloud Storage URI (a directory) where the documents
+       * belonging to the dataset must be stored.
+       * 
+ * + * + * .google.cloud.documentai.v1beta3.GcsPrefix gcs_prefix = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The gcsPrefix. + */ + public com.google.cloud.documentai.v1beta3.GcsPrefix getGcsPrefix() { + if (gcsPrefixBuilder_ == null) { + return gcsPrefix_ == null + ? com.google.cloud.documentai.v1beta3.GcsPrefix.getDefaultInstance() + : gcsPrefix_; + } else { + return gcsPrefixBuilder_.getMessage(); + } + } + /** + * + * + *
+       * Required. The Cloud Storage URI (a directory) where the documents
+       * belonging to the dataset must be stored.
+       * 
+ * + * + * .google.cloud.documentai.v1beta3.GcsPrefix gcs_prefix = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setGcsPrefix(com.google.cloud.documentai.v1beta3.GcsPrefix value) { + if (gcsPrefixBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + gcsPrefix_ = value; + } else { + gcsPrefixBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+       * Required. The Cloud Storage URI (a directory) where the documents
+       * belonging to the dataset must be stored.
+       * 
+ * + * + * .google.cloud.documentai.v1beta3.GcsPrefix gcs_prefix = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setGcsPrefix( + com.google.cloud.documentai.v1beta3.GcsPrefix.Builder builderForValue) { + if (gcsPrefixBuilder_ == null) { + gcsPrefix_ = builderForValue.build(); + } else { + gcsPrefixBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+       * Required. The Cloud Storage URI (a directory) where the documents
+       * belonging to the dataset must be stored.
+       * 
+ * + * + * .google.cloud.documentai.v1beta3.GcsPrefix gcs_prefix = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeGcsPrefix(com.google.cloud.documentai.v1beta3.GcsPrefix value) { + if (gcsPrefixBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && gcsPrefix_ != null + && gcsPrefix_ != com.google.cloud.documentai.v1beta3.GcsPrefix.getDefaultInstance()) { + getGcsPrefixBuilder().mergeFrom(value); + } else { + gcsPrefix_ = value; + } + } else { + gcsPrefixBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+       * Required. The Cloud Storage URI (a directory) where the documents
+       * belonging to the dataset must be stored.
+       * 
+ * + * + * .google.cloud.documentai.v1beta3.GcsPrefix gcs_prefix = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearGcsPrefix() { + bitField0_ = (bitField0_ & ~0x00000001); + gcsPrefix_ = null; + if (gcsPrefixBuilder_ != null) { + gcsPrefixBuilder_.dispose(); + gcsPrefixBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+       * Required. The Cloud Storage URI (a directory) where the documents
+       * belonging to the dataset must be stored.
+       * 
+ * + * + * .google.cloud.documentai.v1beta3.GcsPrefix gcs_prefix = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.documentai.v1beta3.GcsPrefix.Builder getGcsPrefixBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getGcsPrefixFieldBuilder().getBuilder(); + } + /** + * + * + *
+       * Required. The Cloud Storage URI (a directory) where the documents
+       * belonging to the dataset must be stored.
+       * 
+ * + * + * .google.cloud.documentai.v1beta3.GcsPrefix gcs_prefix = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.documentai.v1beta3.GcsPrefixOrBuilder getGcsPrefixOrBuilder() { + if (gcsPrefixBuilder_ != null) { + return gcsPrefixBuilder_.getMessageOrBuilder(); + } else { + return gcsPrefix_ == null + ? com.google.cloud.documentai.v1beta3.GcsPrefix.getDefaultInstance() + : gcsPrefix_; + } + } + /** + * + * + *
+       * Required. The Cloud Storage URI (a directory) where the documents
+       * belonging to the dataset must be stored.
+       * 
+ * + * + * .google.cloud.documentai.v1beta3.GcsPrefix gcs_prefix = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.documentai.v1beta3.GcsPrefix, + com.google.cloud.documentai.v1beta3.GcsPrefix.Builder, + com.google.cloud.documentai.v1beta3.GcsPrefixOrBuilder> + getGcsPrefixFieldBuilder() { + if (gcsPrefixBuilder_ == null) { + gcsPrefixBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.documentai.v1beta3.GcsPrefix, + com.google.cloud.documentai.v1beta3.GcsPrefix.Builder, + com.google.cloud.documentai.v1beta3.GcsPrefixOrBuilder>( + getGcsPrefix(), getParentForChildren(), isClean()); + gcsPrefix_ = null; + } + return gcsPrefixBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.documentai.v1beta3.Dataset.GCSManagedConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.documentai.v1beta3.Dataset.GCSManagedConfig) + private static final com.google.cloud.documentai.v1beta3.Dataset.GCSManagedConfig + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.documentai.v1beta3.Dataset.GCSManagedConfig(); + } + + public static com.google.cloud.documentai.v1beta3.Dataset.GCSManagedConfig + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GCSManagedConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.documentai.v1beta3.Dataset.GCSManagedConfig + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface DocumentWarehouseConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.documentai.v1beta3.Dataset.DocumentWarehouseConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * Output only. The collection in Document AI Warehouse associated with the
+     * dataset.
+     * 
+ * + * string collection = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The collection. + */ + java.lang.String getCollection(); + /** + * + * + *
+     * Output only. The collection in Document AI Warehouse associated with the
+     * dataset.
+     * 
+ * + * string collection = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for collection. + */ + com.google.protobuf.ByteString getCollectionBytes(); + + /** + * + * + *
+     * Output only. The schema in Document AI Warehouse associated with the
+     * dataset.
+     * 
+ * + * + * string schema = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The schema. + */ + java.lang.String getSchema(); + /** + * + * + *
+     * Output only. The schema in Document AI Warehouse associated with the
+     * dataset.
+     * 
+ * + * + * string schema = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for schema. + */ + com.google.protobuf.ByteString getSchemaBytes(); + } + /** + * + * + *
+   * Configuration specific to the Document AI Warehouse-based implementation.
+   * 
+ * + * Protobuf type {@code google.cloud.documentai.v1beta3.Dataset.DocumentWarehouseConfig} + */ + public static final class DocumentWarehouseConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.documentai.v1beta3.Dataset.DocumentWarehouseConfig) + DocumentWarehouseConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use DocumentWarehouseConfig.newBuilder() to construct. + private DocumentWarehouseConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DocumentWarehouseConfig() { + collection_ = ""; + schema_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DocumentWarehouseConfig(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.documentai.v1beta3.DatasetProto + .internal_static_google_cloud_documentai_v1beta3_Dataset_DocumentWarehouseConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.documentai.v1beta3.DatasetProto + .internal_static_google_cloud_documentai_v1beta3_Dataset_DocumentWarehouseConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.documentai.v1beta3.Dataset.DocumentWarehouseConfig.class, + com.google.cloud.documentai.v1beta3.Dataset.DocumentWarehouseConfig.Builder.class); + } + + public static final int COLLECTION_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object collection_ = ""; + /** + * + * + *
+     * Output only. The collection in Document AI Warehouse associated with the
+     * dataset.
+     * 
+ * + * string collection = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The collection. + */ + @java.lang.Override + public java.lang.String getCollection() { + java.lang.Object ref = collection_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + collection_ = s; + return s; + } + } + /** + * + * + *
+     * Output only. The collection in Document AI Warehouse associated with the
+     * dataset.
+     * 
+ * + * string collection = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for collection. + */ + @java.lang.Override + public com.google.protobuf.ByteString getCollectionBytes() { + java.lang.Object ref = collection_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + collection_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SCHEMA_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object schema_ = ""; + /** + * + * + *
+     * Output only. The schema in Document AI Warehouse associated with the
+     * dataset.
+     * 
+ * + * + * string schema = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The schema. + */ + @java.lang.Override + public java.lang.String getSchema() { + java.lang.Object ref = schema_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + schema_ = s; + return s; + } + } + /** + * + * + *
+     * Output only. The schema in Document AI Warehouse associated with the
+     * dataset.
+     * 
+ * + * + * string schema = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for schema. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSchemaBytes() { + java.lang.Object ref = schema_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + schema_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(collection_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, collection_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(schema_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, schema_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(collection_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, collection_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(schema_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, schema_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.documentai.v1beta3.Dataset.DocumentWarehouseConfig)) { + return super.equals(obj); + } + com.google.cloud.documentai.v1beta3.Dataset.DocumentWarehouseConfig other = + (com.google.cloud.documentai.v1beta3.Dataset.DocumentWarehouseConfig) obj; + + if (!getCollection().equals(other.getCollection())) return false; + if (!getSchema().equals(other.getSchema())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + COLLECTION_FIELD_NUMBER; + hash = (53 * hash) + getCollection().hashCode(); + hash = (37 * hash) + SCHEMA_FIELD_NUMBER; + hash = (53 * hash) + getSchema().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.documentai.v1beta3.Dataset.DocumentWarehouseConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.documentai.v1beta3.Dataset.DocumentWarehouseConfig 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.v1beta3.Dataset.DocumentWarehouseConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.documentai.v1beta3.Dataset.DocumentWarehouseConfig parseFrom( + com.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.v1beta3.Dataset.DocumentWarehouseConfig parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.documentai.v1beta3.Dataset.DocumentWarehouseConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.documentai.v1beta3.Dataset.DocumentWarehouseConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.documentai.v1beta3.Dataset.DocumentWarehouseConfig 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.v1beta3.Dataset.DocumentWarehouseConfig + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.documentai.v1beta3.Dataset.DocumentWarehouseConfig + 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.v1beta3.Dataset.DocumentWarehouseConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.documentai.v1beta3.Dataset.DocumentWarehouseConfig 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 static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.documentai.v1beta3.Dataset.DocumentWarehouseConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+     * Configuration specific to the Document AI Warehouse-based implementation.
+     * 
+ * + * Protobuf type {@code google.cloud.documentai.v1beta3.Dataset.DocumentWarehouseConfig} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.documentai.v1beta3.Dataset.DocumentWarehouseConfig) + com.google.cloud.documentai.v1beta3.Dataset.DocumentWarehouseConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.documentai.v1beta3.DatasetProto + .internal_static_google_cloud_documentai_v1beta3_Dataset_DocumentWarehouseConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.documentai.v1beta3.DatasetProto + .internal_static_google_cloud_documentai_v1beta3_Dataset_DocumentWarehouseConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.documentai.v1beta3.Dataset.DocumentWarehouseConfig.class, + com.google.cloud.documentai.v1beta3.Dataset.DocumentWarehouseConfig.Builder.class); + } + + // Construct using + // com.google.cloud.documentai.v1beta3.Dataset.DocumentWarehouseConfig.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + collection_ = ""; + schema_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.documentai.v1beta3.DatasetProto + .internal_static_google_cloud_documentai_v1beta3_Dataset_DocumentWarehouseConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.documentai.v1beta3.Dataset.DocumentWarehouseConfig + getDefaultInstanceForType() { + return com.google.cloud.documentai.v1beta3.Dataset.DocumentWarehouseConfig + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.documentai.v1beta3.Dataset.DocumentWarehouseConfig build() { + com.google.cloud.documentai.v1beta3.Dataset.DocumentWarehouseConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.documentai.v1beta3.Dataset.DocumentWarehouseConfig buildPartial() { + com.google.cloud.documentai.v1beta3.Dataset.DocumentWarehouseConfig result = + new com.google.cloud.documentai.v1beta3.Dataset.DocumentWarehouseConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.documentai.v1beta3.Dataset.DocumentWarehouseConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.collection_ = collection_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.schema_ = schema_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.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.v1beta3.Dataset.DocumentWarehouseConfig) { + return mergeFrom( + (com.google.cloud.documentai.v1beta3.Dataset.DocumentWarehouseConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.documentai.v1beta3.Dataset.DocumentWarehouseConfig other) { + if (other + == com.google.cloud.documentai.v1beta3.Dataset.DocumentWarehouseConfig + .getDefaultInstance()) return this; + if (!other.getCollection().isEmpty()) { + collection_ = other.collection_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getSchema().isEmpty()) { + schema_ = other.schema_; + bitField0_ |= 0x00000002; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + collection_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + schema_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object collection_ = ""; + /** + * + * + *
+       * Output only. The collection in Document AI Warehouse associated with the
+       * dataset.
+       * 
+ * + * string collection = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The collection. + */ + public java.lang.String getCollection() { + java.lang.Object ref = collection_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + collection_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+       * Output only. The collection in Document AI Warehouse associated with the
+       * dataset.
+       * 
+ * + * string collection = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for collection. + */ + public com.google.protobuf.ByteString getCollectionBytes() { + java.lang.Object ref = collection_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + collection_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+       * Output only. The collection in Document AI Warehouse associated with the
+       * dataset.
+       * 
+ * + * string collection = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The collection to set. + * @return This builder for chaining. + */ + public Builder setCollection(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + collection_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+       * Output only. The collection in Document AI Warehouse associated with the
+       * dataset.
+       * 
+ * + * string collection = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearCollection() { + collection_ = getDefaultInstance().getCollection(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+       * Output only. The collection in Document AI Warehouse associated with the
+       * dataset.
+       * 
+ * + * string collection = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for collection to set. + * @return This builder for chaining. + */ + public Builder setCollectionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + collection_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object schema_ = ""; + /** + * + * + *
+       * Output only. The schema in Document AI Warehouse associated with the
+       * dataset.
+       * 
+ * + * + * string schema = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The schema. + */ + public java.lang.String getSchema() { + java.lang.Object ref = schema_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + schema_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+       * Output only. The schema in Document AI Warehouse associated with the
+       * dataset.
+       * 
+ * + * + * string schema = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for schema. + */ + public com.google.protobuf.ByteString getSchemaBytes() { + java.lang.Object ref = schema_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + schema_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+       * Output only. The schema in Document AI Warehouse associated with the
+       * dataset.
+       * 
+ * + * + * string schema = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @param value The schema to set. + * @return This builder for chaining. + */ + public Builder setSchema(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + schema_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+       * Output only. The schema in Document AI Warehouse associated with the
+       * dataset.
+       * 
+ * + * + * string schema = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearSchema() { + schema_ = getDefaultInstance().getSchema(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+       * Output only. The schema in Document AI Warehouse associated with the
+       * dataset.
+       * 
+ * + * + * string schema = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for schema to set. + * @return This builder for chaining. + */ + public Builder setSchemaBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + schema_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.documentai.v1beta3.Dataset.DocumentWarehouseConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.documentai.v1beta3.Dataset.DocumentWarehouseConfig) + private static final com.google.cloud.documentai.v1beta3.Dataset.DocumentWarehouseConfig + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.documentai.v1beta3.Dataset.DocumentWarehouseConfig(); + } + + public static com.google.cloud.documentai.v1beta3.Dataset.DocumentWarehouseConfig + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DocumentWarehouseConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.documentai.v1beta3.Dataset.DocumentWarehouseConfig + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface UnmanagedDatasetConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.documentai.v1beta3.Dataset.UnmanagedDatasetConfig) + com.google.protobuf.MessageOrBuilder {} + /** + * + * + *
+   * Configuration specific to an unmanaged dataset.
+   * 
+ * + * Protobuf type {@code google.cloud.documentai.v1beta3.Dataset.UnmanagedDatasetConfig} + */ + public static final class UnmanagedDatasetConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.documentai.v1beta3.Dataset.UnmanagedDatasetConfig) + UnmanagedDatasetConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use UnmanagedDatasetConfig.newBuilder() to construct. + private UnmanagedDatasetConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private UnmanagedDatasetConfig() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new UnmanagedDatasetConfig(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.documentai.v1beta3.DatasetProto + .internal_static_google_cloud_documentai_v1beta3_Dataset_UnmanagedDatasetConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.documentai.v1beta3.DatasetProto + .internal_static_google_cloud_documentai_v1beta3_Dataset_UnmanagedDatasetConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.documentai.v1beta3.Dataset.UnmanagedDatasetConfig.class, + com.google.cloud.documentai.v1beta3.Dataset.UnmanagedDatasetConfig.Builder.class); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.documentai.v1beta3.Dataset.UnmanagedDatasetConfig)) { + return super.equals(obj); + } + com.google.cloud.documentai.v1beta3.Dataset.UnmanagedDatasetConfig other = + (com.google.cloud.documentai.v1beta3.Dataset.UnmanagedDatasetConfig) obj; + + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.documentai.v1beta3.Dataset.UnmanagedDatasetConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.documentai.v1beta3.Dataset.UnmanagedDatasetConfig 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.v1beta3.Dataset.UnmanagedDatasetConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.documentai.v1beta3.Dataset.UnmanagedDatasetConfig parseFrom( + com.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.v1beta3.Dataset.UnmanagedDatasetConfig parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.documentai.v1beta3.Dataset.UnmanagedDatasetConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.documentai.v1beta3.Dataset.UnmanagedDatasetConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.documentai.v1beta3.Dataset.UnmanagedDatasetConfig 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.v1beta3.Dataset.UnmanagedDatasetConfig + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.documentai.v1beta3.Dataset.UnmanagedDatasetConfig + 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.v1beta3.Dataset.UnmanagedDatasetConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.documentai.v1beta3.Dataset.UnmanagedDatasetConfig 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 static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.documentai.v1beta3.Dataset.UnmanagedDatasetConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+     * Configuration specific to an unmanaged dataset.
+     * 
+ * + * Protobuf type {@code google.cloud.documentai.v1beta3.Dataset.UnmanagedDatasetConfig} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.documentai.v1beta3.Dataset.UnmanagedDatasetConfig) + com.google.cloud.documentai.v1beta3.Dataset.UnmanagedDatasetConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.documentai.v1beta3.DatasetProto + .internal_static_google_cloud_documentai_v1beta3_Dataset_UnmanagedDatasetConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.documentai.v1beta3.DatasetProto + .internal_static_google_cloud_documentai_v1beta3_Dataset_UnmanagedDatasetConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.documentai.v1beta3.Dataset.UnmanagedDatasetConfig.class, + com.google.cloud.documentai.v1beta3.Dataset.UnmanagedDatasetConfig.Builder.class); + } + + // Construct using + // com.google.cloud.documentai.v1beta3.Dataset.UnmanagedDatasetConfig.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.documentai.v1beta3.DatasetProto + .internal_static_google_cloud_documentai_v1beta3_Dataset_UnmanagedDatasetConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.documentai.v1beta3.Dataset.UnmanagedDatasetConfig + getDefaultInstanceForType() { + return com.google.cloud.documentai.v1beta3.Dataset.UnmanagedDatasetConfig + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.documentai.v1beta3.Dataset.UnmanagedDatasetConfig build() { + com.google.cloud.documentai.v1beta3.Dataset.UnmanagedDatasetConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.documentai.v1beta3.Dataset.UnmanagedDatasetConfig buildPartial() { + com.google.cloud.documentai.v1beta3.Dataset.UnmanagedDatasetConfig result = + new com.google.cloud.documentai.v1beta3.Dataset.UnmanagedDatasetConfig(this); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.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.v1beta3.Dataset.UnmanagedDatasetConfig) { + return mergeFrom( + (com.google.cloud.documentai.v1beta3.Dataset.UnmanagedDatasetConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.documentai.v1beta3.Dataset.UnmanagedDatasetConfig other) { + if (other + == com.google.cloud.documentai.v1beta3.Dataset.UnmanagedDatasetConfig + .getDefaultInstance()) return this; + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.documentai.v1beta3.Dataset.UnmanagedDatasetConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.documentai.v1beta3.Dataset.UnmanagedDatasetConfig) + private static final com.google.cloud.documentai.v1beta3.Dataset.UnmanagedDatasetConfig + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.documentai.v1beta3.Dataset.UnmanagedDatasetConfig(); + } + + public static com.google.cloud.documentai.v1beta3.Dataset.UnmanagedDatasetConfig + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UnmanagedDatasetConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.documentai.v1beta3.Dataset.UnmanagedDatasetConfig + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface SpannerIndexingConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.documentai.v1beta3.Dataset.SpannerIndexingConfig) + com.google.protobuf.MessageOrBuilder {} + /** + * + * + *
+   * Configuration specific to spanner-based indexing.
+   * 
+ * + * Protobuf type {@code google.cloud.documentai.v1beta3.Dataset.SpannerIndexingConfig} + */ + public static final class SpannerIndexingConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.documentai.v1beta3.Dataset.SpannerIndexingConfig) + SpannerIndexingConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use SpannerIndexingConfig.newBuilder() to construct. + private SpannerIndexingConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private SpannerIndexingConfig() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new SpannerIndexingConfig(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.documentai.v1beta3.DatasetProto + .internal_static_google_cloud_documentai_v1beta3_Dataset_SpannerIndexingConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.documentai.v1beta3.DatasetProto + .internal_static_google_cloud_documentai_v1beta3_Dataset_SpannerIndexingConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.documentai.v1beta3.Dataset.SpannerIndexingConfig.class, + com.google.cloud.documentai.v1beta3.Dataset.SpannerIndexingConfig.Builder.class); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.documentai.v1beta3.Dataset.SpannerIndexingConfig)) { + return super.equals(obj); + } + com.google.cloud.documentai.v1beta3.Dataset.SpannerIndexingConfig other = + (com.google.cloud.documentai.v1beta3.Dataset.SpannerIndexingConfig) obj; + + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.documentai.v1beta3.Dataset.SpannerIndexingConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.documentai.v1beta3.Dataset.SpannerIndexingConfig 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.v1beta3.Dataset.SpannerIndexingConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.documentai.v1beta3.Dataset.SpannerIndexingConfig parseFrom( + com.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.v1beta3.Dataset.SpannerIndexingConfig parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.documentai.v1beta3.Dataset.SpannerIndexingConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.documentai.v1beta3.Dataset.SpannerIndexingConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.documentai.v1beta3.Dataset.SpannerIndexingConfig 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.v1beta3.Dataset.SpannerIndexingConfig + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.documentai.v1beta3.Dataset.SpannerIndexingConfig + 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.v1beta3.Dataset.SpannerIndexingConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.documentai.v1beta3.Dataset.SpannerIndexingConfig 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 static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.documentai.v1beta3.Dataset.SpannerIndexingConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+     * Configuration specific to spanner-based indexing.
+     * 
+ * + * Protobuf type {@code google.cloud.documentai.v1beta3.Dataset.SpannerIndexingConfig} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.documentai.v1beta3.Dataset.SpannerIndexingConfig) + com.google.cloud.documentai.v1beta3.Dataset.SpannerIndexingConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.documentai.v1beta3.DatasetProto + .internal_static_google_cloud_documentai_v1beta3_Dataset_SpannerIndexingConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.documentai.v1beta3.DatasetProto + .internal_static_google_cloud_documentai_v1beta3_Dataset_SpannerIndexingConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.documentai.v1beta3.Dataset.SpannerIndexingConfig.class, + com.google.cloud.documentai.v1beta3.Dataset.SpannerIndexingConfig.Builder.class); + } + + // Construct using + // com.google.cloud.documentai.v1beta3.Dataset.SpannerIndexingConfig.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.documentai.v1beta3.DatasetProto + .internal_static_google_cloud_documentai_v1beta3_Dataset_SpannerIndexingConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.documentai.v1beta3.Dataset.SpannerIndexingConfig + getDefaultInstanceForType() { + return com.google.cloud.documentai.v1beta3.Dataset.SpannerIndexingConfig + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.documentai.v1beta3.Dataset.SpannerIndexingConfig build() { + com.google.cloud.documentai.v1beta3.Dataset.SpannerIndexingConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.documentai.v1beta3.Dataset.SpannerIndexingConfig buildPartial() { + com.google.cloud.documentai.v1beta3.Dataset.SpannerIndexingConfig result = + new com.google.cloud.documentai.v1beta3.Dataset.SpannerIndexingConfig(this); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.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.v1beta3.Dataset.SpannerIndexingConfig) { + return mergeFrom( + (com.google.cloud.documentai.v1beta3.Dataset.SpannerIndexingConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.documentai.v1beta3.Dataset.SpannerIndexingConfig other) { + if (other + == com.google.cloud.documentai.v1beta3.Dataset.SpannerIndexingConfig + .getDefaultInstance()) return this; + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.documentai.v1beta3.Dataset.SpannerIndexingConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.documentai.v1beta3.Dataset.SpannerIndexingConfig) + private static final com.google.cloud.documentai.v1beta3.Dataset.SpannerIndexingConfig + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.documentai.v1beta3.Dataset.SpannerIndexingConfig(); + } + + public static com.google.cloud.documentai.v1beta3.Dataset.SpannerIndexingConfig + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SpannerIndexingConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.documentai.v1beta3.Dataset.SpannerIndexingConfig + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int storageSourceCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object storageSource_; + + public enum StorageSourceCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + GCS_MANAGED_CONFIG(3), + DOCUMENT_WAREHOUSE_CONFIG(5), + UNMANAGED_DATASET_CONFIG(6), + STORAGESOURCE_NOT_SET(0); + private final int value; + + private StorageSourceCase(int value) { + this.value = value; + } + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static StorageSourceCase valueOf(int value) { + return forNumber(value); + } + + public static StorageSourceCase forNumber(int value) { + switch (value) { + case 3: + return GCS_MANAGED_CONFIG; + case 5: + return DOCUMENT_WAREHOUSE_CONFIG; + case 6: + return UNMANAGED_DATASET_CONFIG; + case 0: + return STORAGESOURCE_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public StorageSourceCase getStorageSourceCase() { + return StorageSourceCase.forNumber(storageSourceCase_); + } + + private int indexingSourceCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object indexingSource_; + + public enum IndexingSourceCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + SPANNER_INDEXING_CONFIG(4), + INDEXINGSOURCE_NOT_SET(0); + private final int value; + + private IndexingSourceCase(int value) { + this.value = value; + } + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static IndexingSourceCase valueOf(int value) { + return forNumber(value); + } + + public static IndexingSourceCase forNumber(int value) { + switch (value) { + case 4: + return SPANNER_INDEXING_CONFIG; + case 0: + return INDEXINGSOURCE_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public IndexingSourceCase getIndexingSourceCase() { + return IndexingSourceCase.forNumber(indexingSourceCase_); + } + + public static final int GCS_MANAGED_CONFIG_FIELD_NUMBER = 3; + /** + * + * + *
+   * Optional. User-managed Cloud Storage dataset configuration. Use this
+   * configuration if the dataset documents are stored under a user-managed
+   * Cloud Storage location.
+   * 
+ * + * + * .google.cloud.documentai.v1beta3.Dataset.GCSManagedConfig gcs_managed_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the gcsManagedConfig field is set. + */ + @java.lang.Override + public boolean hasGcsManagedConfig() { + return storageSourceCase_ == 3; + } + /** + * + * + *
+   * Optional. User-managed Cloud Storage dataset configuration. Use this
+   * configuration if the dataset documents are stored under a user-managed
+   * Cloud Storage location.
+   * 
+ * + * + * .google.cloud.documentai.v1beta3.Dataset.GCSManagedConfig gcs_managed_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The gcsManagedConfig. + */ + @java.lang.Override + public com.google.cloud.documentai.v1beta3.Dataset.GCSManagedConfig getGcsManagedConfig() { + if (storageSourceCase_ == 3) { + return (com.google.cloud.documentai.v1beta3.Dataset.GCSManagedConfig) storageSource_; + } + return com.google.cloud.documentai.v1beta3.Dataset.GCSManagedConfig.getDefaultInstance(); + } + /** + * + * + *
+   * Optional. User-managed Cloud Storage dataset configuration. Use this
+   * configuration if the dataset documents are stored under a user-managed
+   * Cloud Storage location.
+   * 
+ * + * + * .google.cloud.documentai.v1beta3.Dataset.GCSManagedConfig gcs_managed_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.documentai.v1beta3.Dataset.GCSManagedConfigOrBuilder + getGcsManagedConfigOrBuilder() { + if (storageSourceCase_ == 3) { + return (com.google.cloud.documentai.v1beta3.Dataset.GCSManagedConfig) storageSource_; + } + return com.google.cloud.documentai.v1beta3.Dataset.GCSManagedConfig.getDefaultInstance(); + } + + public static final int DOCUMENT_WAREHOUSE_CONFIG_FIELD_NUMBER = 5; + /** + * + * + *
+   * Optional. Document AI Warehouse-based dataset configuration.
+   * 
+ * + * + * .google.cloud.documentai.v1beta3.Dataset.DocumentWarehouseConfig document_warehouse_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the documentWarehouseConfig field is set. + */ + @java.lang.Override + public boolean hasDocumentWarehouseConfig() { + return storageSourceCase_ == 5; + } + /** + * + * + *
+   * Optional. Document AI Warehouse-based dataset configuration.
+   * 
+ * + * + * .google.cloud.documentai.v1beta3.Dataset.DocumentWarehouseConfig document_warehouse_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The documentWarehouseConfig. + */ + @java.lang.Override + public com.google.cloud.documentai.v1beta3.Dataset.DocumentWarehouseConfig + getDocumentWarehouseConfig() { + if (storageSourceCase_ == 5) { + return (com.google.cloud.documentai.v1beta3.Dataset.DocumentWarehouseConfig) storageSource_; + } + return com.google.cloud.documentai.v1beta3.Dataset.DocumentWarehouseConfig.getDefaultInstance(); + } + /** + * + * + *
+   * Optional. Document AI Warehouse-based dataset configuration.
+   * 
+ * + * + * .google.cloud.documentai.v1beta3.Dataset.DocumentWarehouseConfig document_warehouse_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.documentai.v1beta3.Dataset.DocumentWarehouseConfigOrBuilder + getDocumentWarehouseConfigOrBuilder() { + if (storageSourceCase_ == 5) { + return (com.google.cloud.documentai.v1beta3.Dataset.DocumentWarehouseConfig) storageSource_; + } + return com.google.cloud.documentai.v1beta3.Dataset.DocumentWarehouseConfig.getDefaultInstance(); + } + + public static final int UNMANAGED_DATASET_CONFIG_FIELD_NUMBER = 6; + /** + * + * + *
+   * Optional. Unmanaged dataset configuration. Use this configuration if the
+   * dataset documents are managed by the document service internally (not
+   * user-managed).
+   * 
+ * + * + * .google.cloud.documentai.v1beta3.Dataset.UnmanagedDatasetConfig unmanaged_dataset_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the unmanagedDatasetConfig field is set. + */ + @java.lang.Override + public boolean hasUnmanagedDatasetConfig() { + return storageSourceCase_ == 6; + } + /** + * + * + *
+   * Optional. Unmanaged dataset configuration. Use this configuration if the
+   * dataset documents are managed by the document service internally (not
+   * user-managed).
+   * 
+ * + * + * .google.cloud.documentai.v1beta3.Dataset.UnmanagedDatasetConfig unmanaged_dataset_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The unmanagedDatasetConfig. + */ + @java.lang.Override + public com.google.cloud.documentai.v1beta3.Dataset.UnmanagedDatasetConfig + getUnmanagedDatasetConfig() { + if (storageSourceCase_ == 6) { + return (com.google.cloud.documentai.v1beta3.Dataset.UnmanagedDatasetConfig) storageSource_; + } + return com.google.cloud.documentai.v1beta3.Dataset.UnmanagedDatasetConfig.getDefaultInstance(); + } + /** + * + * + *
+   * Optional. Unmanaged dataset configuration. Use this configuration if the
+   * dataset documents are managed by the document service internally (not
+   * user-managed).
+   * 
+ * + * + * .google.cloud.documentai.v1beta3.Dataset.UnmanagedDatasetConfig unmanaged_dataset_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.documentai.v1beta3.Dataset.UnmanagedDatasetConfigOrBuilder + getUnmanagedDatasetConfigOrBuilder() { + if (storageSourceCase_ == 6) { + return (com.google.cloud.documentai.v1beta3.Dataset.UnmanagedDatasetConfig) storageSource_; + } + return com.google.cloud.documentai.v1beta3.Dataset.UnmanagedDatasetConfig.getDefaultInstance(); + } + + public static final int SPANNER_INDEXING_CONFIG_FIELD_NUMBER = 4; + /** + * + * + *
+   * Optional. A lightweight indexing source with low latency and high
+   * reliability, but lacking advanced features like CMEK and content-based
+   * search.
+   * 
+ * + * + * .google.cloud.documentai.v1beta3.Dataset.SpannerIndexingConfig spanner_indexing_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the spannerIndexingConfig field is set. + */ + @java.lang.Override + public boolean hasSpannerIndexingConfig() { + return indexingSourceCase_ == 4; + } + /** + * + * + *
+   * Optional. A lightweight indexing source with low latency and high
+   * reliability, but lacking advanced features like CMEK and content-based
+   * search.
+   * 
+ * + * + * .google.cloud.documentai.v1beta3.Dataset.SpannerIndexingConfig spanner_indexing_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The spannerIndexingConfig. + */ + @java.lang.Override + public com.google.cloud.documentai.v1beta3.Dataset.SpannerIndexingConfig + getSpannerIndexingConfig() { + if (indexingSourceCase_ == 4) { + return (com.google.cloud.documentai.v1beta3.Dataset.SpannerIndexingConfig) indexingSource_; + } + return com.google.cloud.documentai.v1beta3.Dataset.SpannerIndexingConfig.getDefaultInstance(); + } + /** + * + * + *
+   * Optional. A lightweight indexing source with low latency and high
+   * reliability, but lacking advanced features like CMEK and content-based
+   * search.
+   * 
+ * + * + * .google.cloud.documentai.v1beta3.Dataset.SpannerIndexingConfig spanner_indexing_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.documentai.v1beta3.Dataset.SpannerIndexingConfigOrBuilder + getSpannerIndexingConfigOrBuilder() { + if (indexingSourceCase_ == 4) { + return (com.google.cloud.documentai.v1beta3.Dataset.SpannerIndexingConfig) indexingSource_; + } + return com.google.cloud.documentai.v1beta3.Dataset.SpannerIndexingConfig.getDefaultInstance(); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
+   * Dataset resource name.
+   * Format:
+   * `projects/{project}/locations/{location}/processors/{processor}/dataset`
+   * 
+ * + * string name = 1; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Dataset resource name.
+   * Format:
+   * `projects/{project}/locations/{location}/processors/{processor}/dataset`
+   * 
+ * + * string name = 1; + * + * @return The bytes for name. + */ + @java.lang.Override + 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); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int STATE_FIELD_NUMBER = 2; + private int state_ = 0; + /** + * + * + *
+   * Required. State of the dataset. Ignored when updating dataset.
+   * 
+ * + * + * .google.cloud.documentai.v1beta3.Dataset.State state = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override + public int getStateValue() { + return state_; + } + /** + * + * + *
+   * Required. State of the dataset. Ignored when updating dataset.
+   * 
+ * + * + * .google.cloud.documentai.v1beta3.Dataset.State state = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.documentai.v1beta3.Dataset.State getState() { + com.google.cloud.documentai.v1beta3.Dataset.State result = + com.google.cloud.documentai.v1beta3.Dataset.State.forNumber(state_); + return result == null ? com.google.cloud.documentai.v1beta3.Dataset.State.UNRECOGNIZED : result; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + 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_); + } + if (state_ != com.google.cloud.documentai.v1beta3.Dataset.State.STATE_UNSPECIFIED.getNumber()) { + output.writeEnum(2, state_); + } + if (storageSourceCase_ == 3) { + output.writeMessage( + 3, (com.google.cloud.documentai.v1beta3.Dataset.GCSManagedConfig) storageSource_); + } + if (indexingSourceCase_ == 4) { + output.writeMessage( + 4, (com.google.cloud.documentai.v1beta3.Dataset.SpannerIndexingConfig) indexingSource_); + } + if (storageSourceCase_ == 5) { + output.writeMessage( + 5, (com.google.cloud.documentai.v1beta3.Dataset.DocumentWarehouseConfig) storageSource_); + } + if (storageSourceCase_ == 6) { + output.writeMessage( + 6, (com.google.cloud.documentai.v1beta3.Dataset.UnmanagedDatasetConfig) storageSource_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (state_ != com.google.cloud.documentai.v1beta3.Dataset.State.STATE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, state_); + } + if (storageSourceCase_ == 3) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 3, (com.google.cloud.documentai.v1beta3.Dataset.GCSManagedConfig) storageSource_); + } + if (indexingSourceCase_ == 4) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 4, + (com.google.cloud.documentai.v1beta3.Dataset.SpannerIndexingConfig) indexingSource_); + } + if (storageSourceCase_ == 5) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 5, + (com.google.cloud.documentai.v1beta3.Dataset.DocumentWarehouseConfig) storageSource_); + } + if (storageSourceCase_ == 6) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 6, + (com.google.cloud.documentai.v1beta3.Dataset.UnmanagedDatasetConfig) storageSource_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.documentai.v1beta3.Dataset)) { + return super.equals(obj); + } + com.google.cloud.documentai.v1beta3.Dataset other = + (com.google.cloud.documentai.v1beta3.Dataset) obj; + + if (!getName().equals(other.getName())) return false; + if (state_ != other.state_) return false; + if (!getStorageSourceCase().equals(other.getStorageSourceCase())) return false; + switch (storageSourceCase_) { + case 3: + if (!getGcsManagedConfig().equals(other.getGcsManagedConfig())) return false; + break; + case 5: + if (!getDocumentWarehouseConfig().equals(other.getDocumentWarehouseConfig())) return false; + break; + case 6: + if (!getUnmanagedDatasetConfig().equals(other.getUnmanagedDatasetConfig())) return false; + break; + case 0: + default: + } + if (!getIndexingSourceCase().equals(other.getIndexingSourceCase())) return false; + switch (indexingSourceCase_) { + case 4: + if (!getSpannerIndexingConfig().equals(other.getSpannerIndexingConfig())) return false; + break; + case 0: + default: + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + STATE_FIELD_NUMBER; + hash = (53 * hash) + state_; + switch (storageSourceCase_) { + case 3: + hash = (37 * hash) + GCS_MANAGED_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getGcsManagedConfig().hashCode(); + break; + case 5: + hash = (37 * hash) + DOCUMENT_WAREHOUSE_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getDocumentWarehouseConfig().hashCode(); + break; + case 6: + hash = (37 * hash) + UNMANAGED_DATASET_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getUnmanagedDatasetConfig().hashCode(); + break; + case 0: + default: + } + switch (indexingSourceCase_) { + case 4: + hash = (37 * hash) + SPANNER_INDEXING_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getSpannerIndexingConfig().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.documentai.v1beta3.Dataset parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.documentai.v1beta3.Dataset 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.v1beta3.Dataset parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.documentai.v1beta3.Dataset parseFrom( + com.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.v1beta3.Dataset parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.documentai.v1beta3.Dataset parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.documentai.v1beta3.Dataset parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.documentai.v1beta3.Dataset 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.v1beta3.Dataset parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.documentai.v1beta3.Dataset 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.v1beta3.Dataset parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.documentai.v1beta3.Dataset 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 static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.documentai.v1beta3.Dataset prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * A singleton resource under a
+   * [Processor][google.cloud.documentai.v1beta3.Processor] which configures a
+   * collection of documents.
+   * 
+ * + * Protobuf type {@code google.cloud.documentai.v1beta3.Dataset} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.documentai.v1beta3.Dataset) + com.google.cloud.documentai.v1beta3.DatasetOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.documentai.v1beta3.DatasetProto + .internal_static_google_cloud_documentai_v1beta3_Dataset_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.documentai.v1beta3.DatasetProto + .internal_static_google_cloud_documentai_v1beta3_Dataset_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.documentai.v1beta3.Dataset.class, + com.google.cloud.documentai.v1beta3.Dataset.Builder.class); + } + + // Construct using com.google.cloud.documentai.v1beta3.Dataset.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (gcsManagedConfigBuilder_ != null) { + gcsManagedConfigBuilder_.clear(); + } + if (documentWarehouseConfigBuilder_ != null) { + documentWarehouseConfigBuilder_.clear(); + } + if (unmanagedDatasetConfigBuilder_ != null) { + unmanagedDatasetConfigBuilder_.clear(); + } + if (spannerIndexingConfigBuilder_ != null) { + spannerIndexingConfigBuilder_.clear(); + } + name_ = ""; + state_ = 0; + storageSourceCase_ = 0; + storageSource_ = null; + indexingSourceCase_ = 0; + indexingSource_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.documentai.v1beta3.DatasetProto + .internal_static_google_cloud_documentai_v1beta3_Dataset_descriptor; + } + + @java.lang.Override + public com.google.cloud.documentai.v1beta3.Dataset getDefaultInstanceForType() { + return com.google.cloud.documentai.v1beta3.Dataset.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.documentai.v1beta3.Dataset build() { + com.google.cloud.documentai.v1beta3.Dataset result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.documentai.v1beta3.Dataset buildPartial() { + com.google.cloud.documentai.v1beta3.Dataset result = + new com.google.cloud.documentai.v1beta3.Dataset(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.documentai.v1beta3.Dataset result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000010) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.state_ = state_; + } + } + + private void buildPartialOneofs(com.google.cloud.documentai.v1beta3.Dataset result) { + result.storageSourceCase_ = storageSourceCase_; + result.storageSource_ = this.storageSource_; + if (storageSourceCase_ == 3 && gcsManagedConfigBuilder_ != null) { + result.storageSource_ = gcsManagedConfigBuilder_.build(); + } + if (storageSourceCase_ == 5 && documentWarehouseConfigBuilder_ != null) { + result.storageSource_ = documentWarehouseConfigBuilder_.build(); + } + if (storageSourceCase_ == 6 && unmanagedDatasetConfigBuilder_ != null) { + result.storageSource_ = unmanagedDatasetConfigBuilder_.build(); + } + result.indexingSourceCase_ = indexingSourceCase_; + result.indexingSource_ = this.indexingSource_; + if (indexingSourceCase_ == 4 && spannerIndexingConfigBuilder_ != null) { + result.indexingSource_ = spannerIndexingConfigBuilder_.build(); + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.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.v1beta3.Dataset) { + return mergeFrom((com.google.cloud.documentai.v1beta3.Dataset) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.documentai.v1beta3.Dataset other) { + if (other == com.google.cloud.documentai.v1beta3.Dataset.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000010; + onChanged(); + } + if (other.state_ != 0) { + setStateValue(other.getStateValue()); + } + switch (other.getStorageSourceCase()) { + case GCS_MANAGED_CONFIG: + { + mergeGcsManagedConfig(other.getGcsManagedConfig()); + break; + } + case DOCUMENT_WAREHOUSE_CONFIG: + { + mergeDocumentWarehouseConfig(other.getDocumentWarehouseConfig()); + break; + } + case UNMANAGED_DATASET_CONFIG: + { + mergeUnmanagedDatasetConfig(other.getUnmanagedDatasetConfig()); + break; + } + case STORAGESOURCE_NOT_SET: + { + break; + } + } + switch (other.getIndexingSourceCase()) { + case SPANNER_INDEXING_CONFIG: + { + mergeSpannerIndexingConfig(other.getSpannerIndexingConfig()); + break; + } + case INDEXINGSOURCE_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 10 + case 16: + { + state_ = input.readEnum(); + bitField0_ |= 0x00000020; + break; + } // case 16 + case 26: + { + input.readMessage( + getGcsManagedConfigFieldBuilder().getBuilder(), extensionRegistry); + storageSourceCase_ = 3; + break; + } // case 26 + case 34: + { + input.readMessage( + getSpannerIndexingConfigFieldBuilder().getBuilder(), extensionRegistry); + indexingSourceCase_ = 4; + break; + } // case 34 + case 42: + { + input.readMessage( + getDocumentWarehouseConfigFieldBuilder().getBuilder(), extensionRegistry); + storageSourceCase_ = 5; + break; + } // case 42 + case 50: + { + input.readMessage( + getUnmanagedDatasetConfigFieldBuilder().getBuilder(), extensionRegistry); + storageSourceCase_ = 6; + break; + } // case 50 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int storageSourceCase_ = 0; + private java.lang.Object storageSource_; + + public StorageSourceCase getStorageSourceCase() { + return StorageSourceCase.forNumber(storageSourceCase_); + } + + public Builder clearStorageSource() { + storageSourceCase_ = 0; + storageSource_ = null; + onChanged(); + return this; + } + + private int indexingSourceCase_ = 0; + private java.lang.Object indexingSource_; + + public IndexingSourceCase getIndexingSourceCase() { + return IndexingSourceCase.forNumber(indexingSourceCase_); + } + + public Builder clearIndexingSource() { + indexingSourceCase_ = 0; + indexingSource_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.documentai.v1beta3.Dataset.GCSManagedConfig, + com.google.cloud.documentai.v1beta3.Dataset.GCSManagedConfig.Builder, + com.google.cloud.documentai.v1beta3.Dataset.GCSManagedConfigOrBuilder> + gcsManagedConfigBuilder_; + /** + * + * + *
+     * Optional. User-managed Cloud Storage dataset configuration. Use this
+     * configuration if the dataset documents are stored under a user-managed
+     * Cloud Storage location.
+     * 
+ * + * + * .google.cloud.documentai.v1beta3.Dataset.GCSManagedConfig gcs_managed_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the gcsManagedConfig field is set. + */ + @java.lang.Override + public boolean hasGcsManagedConfig() { + return storageSourceCase_ == 3; + } + /** + * + * + *
+     * Optional. User-managed Cloud Storage dataset configuration. Use this
+     * configuration if the dataset documents are stored under a user-managed
+     * Cloud Storage location.
+     * 
+ * + * + * .google.cloud.documentai.v1beta3.Dataset.GCSManagedConfig gcs_managed_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The gcsManagedConfig. + */ + @java.lang.Override + public com.google.cloud.documentai.v1beta3.Dataset.GCSManagedConfig getGcsManagedConfig() { + if (gcsManagedConfigBuilder_ == null) { + if (storageSourceCase_ == 3) { + return (com.google.cloud.documentai.v1beta3.Dataset.GCSManagedConfig) storageSource_; + } + return com.google.cloud.documentai.v1beta3.Dataset.GCSManagedConfig.getDefaultInstance(); + } else { + if (storageSourceCase_ == 3) { + return gcsManagedConfigBuilder_.getMessage(); + } + return com.google.cloud.documentai.v1beta3.Dataset.GCSManagedConfig.getDefaultInstance(); + } + } + /** + * + * + *
+     * Optional. User-managed Cloud Storage dataset configuration. Use this
+     * configuration if the dataset documents are stored under a user-managed
+     * Cloud Storage location.
+     * 
+ * + * + * .google.cloud.documentai.v1beta3.Dataset.GCSManagedConfig gcs_managed_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setGcsManagedConfig( + com.google.cloud.documentai.v1beta3.Dataset.GCSManagedConfig value) { + if (gcsManagedConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + storageSource_ = value; + onChanged(); + } else { + gcsManagedConfigBuilder_.setMessage(value); + } + storageSourceCase_ = 3; + return this; + } + /** + * + * + *
+     * Optional. User-managed Cloud Storage dataset configuration. Use this
+     * configuration if the dataset documents are stored under a user-managed
+     * Cloud Storage location.
+     * 
+ * + * + * .google.cloud.documentai.v1beta3.Dataset.GCSManagedConfig gcs_managed_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setGcsManagedConfig( + com.google.cloud.documentai.v1beta3.Dataset.GCSManagedConfig.Builder builderForValue) { + if (gcsManagedConfigBuilder_ == null) { + storageSource_ = builderForValue.build(); + onChanged(); + } else { + gcsManagedConfigBuilder_.setMessage(builderForValue.build()); + } + storageSourceCase_ = 3; + return this; + } + /** + * + * + *
+     * Optional. User-managed Cloud Storage dataset configuration. Use this
+     * configuration if the dataset documents are stored under a user-managed
+     * Cloud Storage location.
+     * 
+ * + * + * .google.cloud.documentai.v1beta3.Dataset.GCSManagedConfig gcs_managed_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeGcsManagedConfig( + com.google.cloud.documentai.v1beta3.Dataset.GCSManagedConfig value) { + if (gcsManagedConfigBuilder_ == null) { + if (storageSourceCase_ == 3 + && storageSource_ + != com.google.cloud.documentai.v1beta3.Dataset.GCSManagedConfig + .getDefaultInstance()) { + storageSource_ = + com.google.cloud.documentai.v1beta3.Dataset.GCSManagedConfig.newBuilder( + (com.google.cloud.documentai.v1beta3.Dataset.GCSManagedConfig) storageSource_) + .mergeFrom(value) + .buildPartial(); + } else { + storageSource_ = value; + } + onChanged(); + } else { + if (storageSourceCase_ == 3) { + gcsManagedConfigBuilder_.mergeFrom(value); + } else { + gcsManagedConfigBuilder_.setMessage(value); + } + } + storageSourceCase_ = 3; + return this; + } + /** + * + * + *
+     * Optional. User-managed Cloud Storage dataset configuration. Use this
+     * configuration if the dataset documents are stored under a user-managed
+     * Cloud Storage location.
+     * 
+ * + * + * .google.cloud.documentai.v1beta3.Dataset.GCSManagedConfig gcs_managed_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearGcsManagedConfig() { + if (gcsManagedConfigBuilder_ == null) { + if (storageSourceCase_ == 3) { + storageSourceCase_ = 0; + storageSource_ = null; + onChanged(); + } + } else { + if (storageSourceCase_ == 3) { + storageSourceCase_ = 0; + storageSource_ = null; + } + gcsManagedConfigBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Optional. User-managed Cloud Storage dataset configuration. Use this
+     * configuration if the dataset documents are stored under a user-managed
+     * Cloud Storage location.
+     * 
+ * + * + * .google.cloud.documentai.v1beta3.Dataset.GCSManagedConfig gcs_managed_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.documentai.v1beta3.Dataset.GCSManagedConfig.Builder + getGcsManagedConfigBuilder() { + return getGcsManagedConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional. User-managed Cloud Storage dataset configuration. Use this
+     * configuration if the dataset documents are stored under a user-managed
+     * Cloud Storage location.
+     * 
+ * + * + * .google.cloud.documentai.v1beta3.Dataset.GCSManagedConfig gcs_managed_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.documentai.v1beta3.Dataset.GCSManagedConfigOrBuilder + getGcsManagedConfigOrBuilder() { + if ((storageSourceCase_ == 3) && (gcsManagedConfigBuilder_ != null)) { + return gcsManagedConfigBuilder_.getMessageOrBuilder(); + } else { + if (storageSourceCase_ == 3) { + return (com.google.cloud.documentai.v1beta3.Dataset.GCSManagedConfig) storageSource_; + } + return com.google.cloud.documentai.v1beta3.Dataset.GCSManagedConfig.getDefaultInstance(); + } + } + /** + * + * + *
+     * Optional. User-managed Cloud Storage dataset configuration. Use this
+     * configuration if the dataset documents are stored under a user-managed
+     * Cloud Storage location.
+     * 
+ * + * + * .google.cloud.documentai.v1beta3.Dataset.GCSManagedConfig gcs_managed_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.documentai.v1beta3.Dataset.GCSManagedConfig, + com.google.cloud.documentai.v1beta3.Dataset.GCSManagedConfig.Builder, + com.google.cloud.documentai.v1beta3.Dataset.GCSManagedConfigOrBuilder> + getGcsManagedConfigFieldBuilder() { + if (gcsManagedConfigBuilder_ == null) { + if (!(storageSourceCase_ == 3)) { + storageSource_ = + com.google.cloud.documentai.v1beta3.Dataset.GCSManagedConfig.getDefaultInstance(); + } + gcsManagedConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.documentai.v1beta3.Dataset.GCSManagedConfig, + com.google.cloud.documentai.v1beta3.Dataset.GCSManagedConfig.Builder, + com.google.cloud.documentai.v1beta3.Dataset.GCSManagedConfigOrBuilder>( + (com.google.cloud.documentai.v1beta3.Dataset.GCSManagedConfig) storageSource_, + getParentForChildren(), + isClean()); + storageSource_ = null; + } + storageSourceCase_ = 3; + onChanged(); + return gcsManagedConfigBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.documentai.v1beta3.Dataset.DocumentWarehouseConfig, + com.google.cloud.documentai.v1beta3.Dataset.DocumentWarehouseConfig.Builder, + com.google.cloud.documentai.v1beta3.Dataset.DocumentWarehouseConfigOrBuilder> + documentWarehouseConfigBuilder_; + /** + * + * + *
+     * Optional. Document AI Warehouse-based dataset configuration.
+     * 
+ * + * + * .google.cloud.documentai.v1beta3.Dataset.DocumentWarehouseConfig document_warehouse_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the documentWarehouseConfig field is set. + */ + @java.lang.Override + public boolean hasDocumentWarehouseConfig() { + return storageSourceCase_ == 5; + } + /** + * + * + *
+     * Optional. Document AI Warehouse-based dataset configuration.
+     * 
+ * + * + * .google.cloud.documentai.v1beta3.Dataset.DocumentWarehouseConfig document_warehouse_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The documentWarehouseConfig. + */ + @java.lang.Override + public com.google.cloud.documentai.v1beta3.Dataset.DocumentWarehouseConfig + getDocumentWarehouseConfig() { + if (documentWarehouseConfigBuilder_ == null) { + if (storageSourceCase_ == 5) { + return (com.google.cloud.documentai.v1beta3.Dataset.DocumentWarehouseConfig) + storageSource_; + } + return com.google.cloud.documentai.v1beta3.Dataset.DocumentWarehouseConfig + .getDefaultInstance(); + } else { + if (storageSourceCase_ == 5) { + return documentWarehouseConfigBuilder_.getMessage(); + } + return com.google.cloud.documentai.v1beta3.Dataset.DocumentWarehouseConfig + .getDefaultInstance(); + } + } + /** + * + * + *
+     * Optional. Document AI Warehouse-based dataset configuration.
+     * 
+ * + * + * .google.cloud.documentai.v1beta3.Dataset.DocumentWarehouseConfig document_warehouse_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setDocumentWarehouseConfig( + com.google.cloud.documentai.v1beta3.Dataset.DocumentWarehouseConfig value) { + if (documentWarehouseConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + storageSource_ = value; + onChanged(); + } else { + documentWarehouseConfigBuilder_.setMessage(value); + } + storageSourceCase_ = 5; + return this; + } + /** + * + * + *
+     * Optional. Document AI Warehouse-based dataset configuration.
+     * 
+ * + * + * .google.cloud.documentai.v1beta3.Dataset.DocumentWarehouseConfig document_warehouse_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setDocumentWarehouseConfig( + com.google.cloud.documentai.v1beta3.Dataset.DocumentWarehouseConfig.Builder + builderForValue) { + if (documentWarehouseConfigBuilder_ == null) { + storageSource_ = builderForValue.build(); + onChanged(); + } else { + documentWarehouseConfigBuilder_.setMessage(builderForValue.build()); + } + storageSourceCase_ = 5; + return this; + } + /** + * + * + *
+     * Optional. Document AI Warehouse-based dataset configuration.
+     * 
+ * + * + * .google.cloud.documentai.v1beta3.Dataset.DocumentWarehouseConfig document_warehouse_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeDocumentWarehouseConfig( + com.google.cloud.documentai.v1beta3.Dataset.DocumentWarehouseConfig value) { + if (documentWarehouseConfigBuilder_ == null) { + if (storageSourceCase_ == 5 + && storageSource_ + != com.google.cloud.documentai.v1beta3.Dataset.DocumentWarehouseConfig + .getDefaultInstance()) { + storageSource_ = + com.google.cloud.documentai.v1beta3.Dataset.DocumentWarehouseConfig.newBuilder( + (com.google.cloud.documentai.v1beta3.Dataset.DocumentWarehouseConfig) + storageSource_) + .mergeFrom(value) + .buildPartial(); + } else { + storageSource_ = value; + } + onChanged(); + } else { + if (storageSourceCase_ == 5) { + documentWarehouseConfigBuilder_.mergeFrom(value); + } else { + documentWarehouseConfigBuilder_.setMessage(value); + } + } + storageSourceCase_ = 5; + return this; + } + /** + * + * + *
+     * Optional. Document AI Warehouse-based dataset configuration.
+     * 
+ * + * + * .google.cloud.documentai.v1beta3.Dataset.DocumentWarehouseConfig document_warehouse_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearDocumentWarehouseConfig() { + if (documentWarehouseConfigBuilder_ == null) { + if (storageSourceCase_ == 5) { + storageSourceCase_ = 0; + storageSource_ = null; + onChanged(); + } + } else { + if (storageSourceCase_ == 5) { + storageSourceCase_ = 0; + storageSource_ = null; + } + documentWarehouseConfigBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Optional. Document AI Warehouse-based dataset configuration.
+     * 
+ * + * + * .google.cloud.documentai.v1beta3.Dataset.DocumentWarehouseConfig document_warehouse_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.documentai.v1beta3.Dataset.DocumentWarehouseConfig.Builder + getDocumentWarehouseConfigBuilder() { + return getDocumentWarehouseConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional. Document AI Warehouse-based dataset configuration.
+     * 
+ * + * + * .google.cloud.documentai.v1beta3.Dataset.DocumentWarehouseConfig document_warehouse_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.documentai.v1beta3.Dataset.DocumentWarehouseConfigOrBuilder + getDocumentWarehouseConfigOrBuilder() { + if ((storageSourceCase_ == 5) && (documentWarehouseConfigBuilder_ != null)) { + return documentWarehouseConfigBuilder_.getMessageOrBuilder(); + } else { + if (storageSourceCase_ == 5) { + return (com.google.cloud.documentai.v1beta3.Dataset.DocumentWarehouseConfig) + storageSource_; + } + return com.google.cloud.documentai.v1beta3.Dataset.DocumentWarehouseConfig + .getDefaultInstance(); + } + } + /** + * + * + *
+     * Optional. Document AI Warehouse-based dataset configuration.
+     * 
+ * + * + * .google.cloud.documentai.v1beta3.Dataset.DocumentWarehouseConfig document_warehouse_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.documentai.v1beta3.Dataset.DocumentWarehouseConfig, + com.google.cloud.documentai.v1beta3.Dataset.DocumentWarehouseConfig.Builder, + com.google.cloud.documentai.v1beta3.Dataset.DocumentWarehouseConfigOrBuilder> + getDocumentWarehouseConfigFieldBuilder() { + if (documentWarehouseConfigBuilder_ == null) { + if (!(storageSourceCase_ == 5)) { + storageSource_ = + com.google.cloud.documentai.v1beta3.Dataset.DocumentWarehouseConfig + .getDefaultInstance(); + } + documentWarehouseConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.documentai.v1beta3.Dataset.DocumentWarehouseConfig, + com.google.cloud.documentai.v1beta3.Dataset.DocumentWarehouseConfig.Builder, + com.google.cloud.documentai.v1beta3.Dataset.DocumentWarehouseConfigOrBuilder>( + (com.google.cloud.documentai.v1beta3.Dataset.DocumentWarehouseConfig) + storageSource_, + getParentForChildren(), + isClean()); + storageSource_ = null; + } + storageSourceCase_ = 5; + onChanged(); + return documentWarehouseConfigBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.documentai.v1beta3.Dataset.UnmanagedDatasetConfig, + com.google.cloud.documentai.v1beta3.Dataset.UnmanagedDatasetConfig.Builder, + com.google.cloud.documentai.v1beta3.Dataset.UnmanagedDatasetConfigOrBuilder> + unmanagedDatasetConfigBuilder_; + /** + * + * + *
+     * Optional. Unmanaged dataset configuration. Use this configuration if the
+     * dataset documents are managed by the document service internally (not
+     * user-managed).
+     * 
+ * + * + * .google.cloud.documentai.v1beta3.Dataset.UnmanagedDatasetConfig unmanaged_dataset_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the unmanagedDatasetConfig field is set. + */ + @java.lang.Override + public boolean hasUnmanagedDatasetConfig() { + return storageSourceCase_ == 6; + } + /** + * + * + *
+     * Optional. Unmanaged dataset configuration. Use this configuration if the
+     * dataset documents are managed by the document service internally (not
+     * user-managed).
+     * 
+ * + * + * .google.cloud.documentai.v1beta3.Dataset.UnmanagedDatasetConfig unmanaged_dataset_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The unmanagedDatasetConfig. + */ + @java.lang.Override + public com.google.cloud.documentai.v1beta3.Dataset.UnmanagedDatasetConfig + getUnmanagedDatasetConfig() { + if (unmanagedDatasetConfigBuilder_ == null) { + if (storageSourceCase_ == 6) { + return (com.google.cloud.documentai.v1beta3.Dataset.UnmanagedDatasetConfig) + storageSource_; + } + return com.google.cloud.documentai.v1beta3.Dataset.UnmanagedDatasetConfig + .getDefaultInstance(); + } else { + if (storageSourceCase_ == 6) { + return unmanagedDatasetConfigBuilder_.getMessage(); + } + return com.google.cloud.documentai.v1beta3.Dataset.UnmanagedDatasetConfig + .getDefaultInstance(); + } + } + /** + * + * + *
+     * Optional. Unmanaged dataset configuration. Use this configuration if the
+     * dataset documents are managed by the document service internally (not
+     * user-managed).
+     * 
+ * + * + * .google.cloud.documentai.v1beta3.Dataset.UnmanagedDatasetConfig unmanaged_dataset_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setUnmanagedDatasetConfig( + com.google.cloud.documentai.v1beta3.Dataset.UnmanagedDatasetConfig value) { + if (unmanagedDatasetConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + storageSource_ = value; + onChanged(); + } else { + unmanagedDatasetConfigBuilder_.setMessage(value); + } + storageSourceCase_ = 6; + return this; + } + /** + * + * + *
+     * Optional. Unmanaged dataset configuration. Use this configuration if the
+     * dataset documents are managed by the document service internally (not
+     * user-managed).
+     * 
+ * + * + * .google.cloud.documentai.v1beta3.Dataset.UnmanagedDatasetConfig unmanaged_dataset_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setUnmanagedDatasetConfig( + com.google.cloud.documentai.v1beta3.Dataset.UnmanagedDatasetConfig.Builder + builderForValue) { + if (unmanagedDatasetConfigBuilder_ == null) { + storageSource_ = builderForValue.build(); + onChanged(); + } else { + unmanagedDatasetConfigBuilder_.setMessage(builderForValue.build()); + } + storageSourceCase_ = 6; + return this; + } + /** + * + * + *
+     * Optional. Unmanaged dataset configuration. Use this configuration if the
+     * dataset documents are managed by the document service internally (not
+     * user-managed).
+     * 
+ * + * + * .google.cloud.documentai.v1beta3.Dataset.UnmanagedDatasetConfig unmanaged_dataset_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeUnmanagedDatasetConfig( + com.google.cloud.documentai.v1beta3.Dataset.UnmanagedDatasetConfig value) { + if (unmanagedDatasetConfigBuilder_ == null) { + if (storageSourceCase_ == 6 + && storageSource_ + != com.google.cloud.documentai.v1beta3.Dataset.UnmanagedDatasetConfig + .getDefaultInstance()) { + storageSource_ = + com.google.cloud.documentai.v1beta3.Dataset.UnmanagedDatasetConfig.newBuilder( + (com.google.cloud.documentai.v1beta3.Dataset.UnmanagedDatasetConfig) + storageSource_) + .mergeFrom(value) + .buildPartial(); + } else { + storageSource_ = value; + } + onChanged(); + } else { + if (storageSourceCase_ == 6) { + unmanagedDatasetConfigBuilder_.mergeFrom(value); + } else { + unmanagedDatasetConfigBuilder_.setMessage(value); + } + } + storageSourceCase_ = 6; + return this; + } + /** + * + * + *
+     * Optional. Unmanaged dataset configuration. Use this configuration if the
+     * dataset documents are managed by the document service internally (not
+     * user-managed).
+     * 
+ * + * + * .google.cloud.documentai.v1beta3.Dataset.UnmanagedDatasetConfig unmanaged_dataset_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearUnmanagedDatasetConfig() { + if (unmanagedDatasetConfigBuilder_ == null) { + if (storageSourceCase_ == 6) { + storageSourceCase_ = 0; + storageSource_ = null; + onChanged(); + } + } else { + if (storageSourceCase_ == 6) { + storageSourceCase_ = 0; + storageSource_ = null; + } + unmanagedDatasetConfigBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Optional. Unmanaged dataset configuration. Use this configuration if the
+     * dataset documents are managed by the document service internally (not
+     * user-managed).
+     * 
+ * + * + * .google.cloud.documentai.v1beta3.Dataset.UnmanagedDatasetConfig unmanaged_dataset_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.documentai.v1beta3.Dataset.UnmanagedDatasetConfig.Builder + getUnmanagedDatasetConfigBuilder() { + return getUnmanagedDatasetConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional. Unmanaged dataset configuration. Use this configuration if the
+     * dataset documents are managed by the document service internally (not
+     * user-managed).
+     * 
+ * + * + * .google.cloud.documentai.v1beta3.Dataset.UnmanagedDatasetConfig unmanaged_dataset_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.documentai.v1beta3.Dataset.UnmanagedDatasetConfigOrBuilder + getUnmanagedDatasetConfigOrBuilder() { + if ((storageSourceCase_ == 6) && (unmanagedDatasetConfigBuilder_ != null)) { + return unmanagedDatasetConfigBuilder_.getMessageOrBuilder(); + } else { + if (storageSourceCase_ == 6) { + return (com.google.cloud.documentai.v1beta3.Dataset.UnmanagedDatasetConfig) + storageSource_; + } + return com.google.cloud.documentai.v1beta3.Dataset.UnmanagedDatasetConfig + .getDefaultInstance(); + } + } + /** + * + * + *
+     * Optional. Unmanaged dataset configuration. Use this configuration if the
+     * dataset documents are managed by the document service internally (not
+     * user-managed).
+     * 
+ * + * + * .google.cloud.documentai.v1beta3.Dataset.UnmanagedDatasetConfig unmanaged_dataset_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.documentai.v1beta3.Dataset.UnmanagedDatasetConfig, + com.google.cloud.documentai.v1beta3.Dataset.UnmanagedDatasetConfig.Builder, + com.google.cloud.documentai.v1beta3.Dataset.UnmanagedDatasetConfigOrBuilder> + getUnmanagedDatasetConfigFieldBuilder() { + if (unmanagedDatasetConfigBuilder_ == null) { + if (!(storageSourceCase_ == 6)) { + storageSource_ = + com.google.cloud.documentai.v1beta3.Dataset.UnmanagedDatasetConfig + .getDefaultInstance(); + } + unmanagedDatasetConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.documentai.v1beta3.Dataset.UnmanagedDatasetConfig, + com.google.cloud.documentai.v1beta3.Dataset.UnmanagedDatasetConfig.Builder, + com.google.cloud.documentai.v1beta3.Dataset.UnmanagedDatasetConfigOrBuilder>( + (com.google.cloud.documentai.v1beta3.Dataset.UnmanagedDatasetConfig) storageSource_, + getParentForChildren(), + isClean()); + storageSource_ = null; + } + storageSourceCase_ = 6; + onChanged(); + return unmanagedDatasetConfigBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.documentai.v1beta3.Dataset.SpannerIndexingConfig, + com.google.cloud.documentai.v1beta3.Dataset.SpannerIndexingConfig.Builder, + com.google.cloud.documentai.v1beta3.Dataset.SpannerIndexingConfigOrBuilder> + spannerIndexingConfigBuilder_; + /** + * + * + *
+     * Optional. A lightweight indexing source with low latency and high
+     * reliability, but lacking advanced features like CMEK and content-based
+     * search.
+     * 
+ * + * + * .google.cloud.documentai.v1beta3.Dataset.SpannerIndexingConfig spanner_indexing_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the spannerIndexingConfig field is set. + */ + @java.lang.Override + public boolean hasSpannerIndexingConfig() { + return indexingSourceCase_ == 4; + } + /** + * + * + *
+     * Optional. A lightweight indexing source with low latency and high
+     * reliability, but lacking advanced features like CMEK and content-based
+     * search.
+     * 
+ * + * + * .google.cloud.documentai.v1beta3.Dataset.SpannerIndexingConfig spanner_indexing_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The spannerIndexingConfig. + */ + @java.lang.Override + public com.google.cloud.documentai.v1beta3.Dataset.SpannerIndexingConfig + getSpannerIndexingConfig() { + if (spannerIndexingConfigBuilder_ == null) { + if (indexingSourceCase_ == 4) { + return (com.google.cloud.documentai.v1beta3.Dataset.SpannerIndexingConfig) + indexingSource_; + } + return com.google.cloud.documentai.v1beta3.Dataset.SpannerIndexingConfig + .getDefaultInstance(); + } else { + if (indexingSourceCase_ == 4) { + return spannerIndexingConfigBuilder_.getMessage(); + } + return com.google.cloud.documentai.v1beta3.Dataset.SpannerIndexingConfig + .getDefaultInstance(); + } + } + /** + * + * + *
+     * Optional. A lightweight indexing source with low latency and high
+     * reliability, but lacking advanced features like CMEK and content-based
+     * search.
+     * 
+ * + * + * .google.cloud.documentai.v1beta3.Dataset.SpannerIndexingConfig spanner_indexing_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setSpannerIndexingConfig( + com.google.cloud.documentai.v1beta3.Dataset.SpannerIndexingConfig value) { + if (spannerIndexingConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + indexingSource_ = value; + onChanged(); + } else { + spannerIndexingConfigBuilder_.setMessage(value); + } + indexingSourceCase_ = 4; + return this; + } + /** + * + * + *
+     * Optional. A lightweight indexing source with low latency and high
+     * reliability, but lacking advanced features like CMEK and content-based
+     * search.
+     * 
+ * + * + * .google.cloud.documentai.v1beta3.Dataset.SpannerIndexingConfig spanner_indexing_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setSpannerIndexingConfig( + com.google.cloud.documentai.v1beta3.Dataset.SpannerIndexingConfig.Builder builderForValue) { + if (spannerIndexingConfigBuilder_ == null) { + indexingSource_ = builderForValue.build(); + onChanged(); + } else { + spannerIndexingConfigBuilder_.setMessage(builderForValue.build()); + } + indexingSourceCase_ = 4; + return this; + } + /** + * + * + *
+     * Optional. A lightweight indexing source with low latency and high
+     * reliability, but lacking advanced features like CMEK and content-based
+     * search.
+     * 
+ * + * + * .google.cloud.documentai.v1beta3.Dataset.SpannerIndexingConfig spanner_indexing_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeSpannerIndexingConfig( + com.google.cloud.documentai.v1beta3.Dataset.SpannerIndexingConfig value) { + if (spannerIndexingConfigBuilder_ == null) { + if (indexingSourceCase_ == 4 + && indexingSource_ + != com.google.cloud.documentai.v1beta3.Dataset.SpannerIndexingConfig + .getDefaultInstance()) { + indexingSource_ = + com.google.cloud.documentai.v1beta3.Dataset.SpannerIndexingConfig.newBuilder( + (com.google.cloud.documentai.v1beta3.Dataset.SpannerIndexingConfig) + indexingSource_) + .mergeFrom(value) + .buildPartial(); + } else { + indexingSource_ = value; + } + onChanged(); + } else { + if (indexingSourceCase_ == 4) { + spannerIndexingConfigBuilder_.mergeFrom(value); + } else { + spannerIndexingConfigBuilder_.setMessage(value); + } + } + indexingSourceCase_ = 4; + return this; + } + /** + * + * + *
+     * Optional. A lightweight indexing source with low latency and high
+     * reliability, but lacking advanced features like CMEK and content-based
+     * search.
+     * 
+ * + * + * .google.cloud.documentai.v1beta3.Dataset.SpannerIndexingConfig spanner_indexing_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearSpannerIndexingConfig() { + if (spannerIndexingConfigBuilder_ == null) { + if (indexingSourceCase_ == 4) { + indexingSourceCase_ = 0; + indexingSource_ = null; + onChanged(); + } + } else { + if (indexingSourceCase_ == 4) { + indexingSourceCase_ = 0; + indexingSource_ = null; + } + spannerIndexingConfigBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Optional. A lightweight indexing source with low latency and high
+     * reliability, but lacking advanced features like CMEK and content-based
+     * search.
+     * 
+ * + * + * .google.cloud.documentai.v1beta3.Dataset.SpannerIndexingConfig spanner_indexing_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.documentai.v1beta3.Dataset.SpannerIndexingConfig.Builder + getSpannerIndexingConfigBuilder() { + return getSpannerIndexingConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional. A lightweight indexing source with low latency and high
+     * reliability, but lacking advanced features like CMEK and content-based
+     * search.
+     * 
+ * + * + * .google.cloud.documentai.v1beta3.Dataset.SpannerIndexingConfig spanner_indexing_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.documentai.v1beta3.Dataset.SpannerIndexingConfigOrBuilder + getSpannerIndexingConfigOrBuilder() { + if ((indexingSourceCase_ == 4) && (spannerIndexingConfigBuilder_ != null)) { + return spannerIndexingConfigBuilder_.getMessageOrBuilder(); + } else { + if (indexingSourceCase_ == 4) { + return (com.google.cloud.documentai.v1beta3.Dataset.SpannerIndexingConfig) + indexingSource_; + } + return com.google.cloud.documentai.v1beta3.Dataset.SpannerIndexingConfig + .getDefaultInstance(); + } + } + /** + * + * + *
+     * Optional. A lightweight indexing source with low latency and high
+     * reliability, but lacking advanced features like CMEK and content-based
+     * search.
+     * 
+ * + * + * .google.cloud.documentai.v1beta3.Dataset.SpannerIndexingConfig spanner_indexing_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.documentai.v1beta3.Dataset.SpannerIndexingConfig, + com.google.cloud.documentai.v1beta3.Dataset.SpannerIndexingConfig.Builder, + com.google.cloud.documentai.v1beta3.Dataset.SpannerIndexingConfigOrBuilder> + getSpannerIndexingConfigFieldBuilder() { + if (spannerIndexingConfigBuilder_ == null) { + if (!(indexingSourceCase_ == 4)) { + indexingSource_ = + com.google.cloud.documentai.v1beta3.Dataset.SpannerIndexingConfig + .getDefaultInstance(); + } + spannerIndexingConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.documentai.v1beta3.Dataset.SpannerIndexingConfig, + com.google.cloud.documentai.v1beta3.Dataset.SpannerIndexingConfig.Builder, + com.google.cloud.documentai.v1beta3.Dataset.SpannerIndexingConfigOrBuilder>( + (com.google.cloud.documentai.v1beta3.Dataset.SpannerIndexingConfig) indexingSource_, + getParentForChildren(), + isClean()); + indexingSource_ = null; + } + indexingSourceCase_ = 4; + onChanged(); + return spannerIndexingConfigBuilder_; + } + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Dataset resource name.
+     * Format:
+     * `projects/{project}/locations/{location}/processors/{processor}/dataset`
+     * 
+ * + * string name = 1; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Dataset resource name.
+     * Format:
+     * `projects/{project}/locations/{location}/processors/{processor}/dataset`
+     * 
+ * + * string name = 1; + * + * @return The bytes for name. + */ + 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); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Dataset resource name.
+     * Format:
+     * `projects/{project}/locations/{location}/processors/{processor}/dataset`
+     * 
+ * + * string name = 1; + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
+     * Dataset resource name.
+     * Format:
+     * `projects/{project}/locations/{location}/processors/{processor}/dataset`
+     * 
+ * + * string name = 1; + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + /** + * + * + *
+     * Dataset resource name.
+     * Format:
+     * `projects/{project}/locations/{location}/processors/{processor}/dataset`
+     * 
+ * + * string name = 1; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + private int state_ = 0; + /** + * + * + *
+     * Required. State of the dataset. Ignored when updating dataset.
+     * 
+ * + * + * .google.cloud.documentai.v1beta3.Dataset.State state = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override + public int getStateValue() { + return state_; + } + /** + * + * + *
+     * Required. State of the dataset. Ignored when updating dataset.
+     * 
+ * + * + * .google.cloud.documentai.v1beta3.Dataset.State state = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @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; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. State of the dataset. Ignored when updating dataset.
+     * 
+ * + * + * .google.cloud.documentai.v1beta3.Dataset.State state = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.documentai.v1beta3.Dataset.State getState() { + com.google.cloud.documentai.v1beta3.Dataset.State result = + com.google.cloud.documentai.v1beta3.Dataset.State.forNumber(state_); + return result == null + ? com.google.cloud.documentai.v1beta3.Dataset.State.UNRECOGNIZED + : result; + } + /** + * + * + *
+     * Required. State of the dataset. Ignored when updating dataset.
+     * 
+ * + * + * .google.cloud.documentai.v1beta3.Dataset.State state = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The state to set. + * @return This builder for chaining. + */ + public Builder setState(com.google.cloud.documentai.v1beta3.Dataset.State value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000020; + state_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. State of the dataset. Ignored when updating dataset.
+     * 
+ * + * + * .google.cloud.documentai.v1beta3.Dataset.State state = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return This builder for chaining. + */ + public Builder clearState() { + bitField0_ = (bitField0_ & ~0x00000020); + state_ = 0; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.documentai.v1beta3.Dataset) + } + + // @@protoc_insertion_point(class_scope:google.cloud.documentai.v1beta3.Dataset) + private static final com.google.cloud.documentai.v1beta3.Dataset DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.documentai.v1beta3.Dataset(); + } + + public static com.google.cloud.documentai.v1beta3.Dataset getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Dataset parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.documentai.v1beta3.Dataset getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/DatasetOrBuilder.java b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/DatasetOrBuilder.java new file mode 100644 index 000000000000..698517c47cb9 --- /dev/null +++ b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/DatasetOrBuilder.java @@ -0,0 +1,273 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the 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/v1beta3/dataset.proto + +package com.google.cloud.documentai.v1beta3; + +public interface DatasetOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.documentai.v1beta3.Dataset) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Optional. User-managed Cloud Storage dataset configuration. Use this
+   * configuration if the dataset documents are stored under a user-managed
+   * Cloud Storage location.
+   * 
+ * + * + * .google.cloud.documentai.v1beta3.Dataset.GCSManagedConfig gcs_managed_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the gcsManagedConfig field is set. + */ + boolean hasGcsManagedConfig(); + /** + * + * + *
+   * Optional. User-managed Cloud Storage dataset configuration. Use this
+   * configuration if the dataset documents are stored under a user-managed
+   * Cloud Storage location.
+   * 
+ * + * + * .google.cloud.documentai.v1beta3.Dataset.GCSManagedConfig gcs_managed_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The gcsManagedConfig. + */ + com.google.cloud.documentai.v1beta3.Dataset.GCSManagedConfig getGcsManagedConfig(); + /** + * + * + *
+   * Optional. User-managed Cloud Storage dataset configuration. Use this
+   * configuration if the dataset documents are stored under a user-managed
+   * Cloud Storage location.
+   * 
+ * + * + * .google.cloud.documentai.v1beta3.Dataset.GCSManagedConfig gcs_managed_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.documentai.v1beta3.Dataset.GCSManagedConfigOrBuilder + getGcsManagedConfigOrBuilder(); + + /** + * + * + *
+   * Optional. Document AI Warehouse-based dataset configuration.
+   * 
+ * + * + * .google.cloud.documentai.v1beta3.Dataset.DocumentWarehouseConfig document_warehouse_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the documentWarehouseConfig field is set. + */ + boolean hasDocumentWarehouseConfig(); + /** + * + * + *
+   * Optional. Document AI Warehouse-based dataset configuration.
+   * 
+ * + * + * .google.cloud.documentai.v1beta3.Dataset.DocumentWarehouseConfig document_warehouse_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The documentWarehouseConfig. + */ + com.google.cloud.documentai.v1beta3.Dataset.DocumentWarehouseConfig getDocumentWarehouseConfig(); + /** + * + * + *
+   * Optional. Document AI Warehouse-based dataset configuration.
+   * 
+ * + * + * .google.cloud.documentai.v1beta3.Dataset.DocumentWarehouseConfig document_warehouse_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.documentai.v1beta3.Dataset.DocumentWarehouseConfigOrBuilder + getDocumentWarehouseConfigOrBuilder(); + + /** + * + * + *
+   * Optional. Unmanaged dataset configuration. Use this configuration if the
+   * dataset documents are managed by the document service internally (not
+   * user-managed).
+   * 
+ * + * + * .google.cloud.documentai.v1beta3.Dataset.UnmanagedDatasetConfig unmanaged_dataset_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the unmanagedDatasetConfig field is set. + */ + boolean hasUnmanagedDatasetConfig(); + /** + * + * + *
+   * Optional. Unmanaged dataset configuration. Use this configuration if the
+   * dataset documents are managed by the document service internally (not
+   * user-managed).
+   * 
+ * + * + * .google.cloud.documentai.v1beta3.Dataset.UnmanagedDatasetConfig unmanaged_dataset_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The unmanagedDatasetConfig. + */ + com.google.cloud.documentai.v1beta3.Dataset.UnmanagedDatasetConfig getUnmanagedDatasetConfig(); + /** + * + * + *
+   * Optional. Unmanaged dataset configuration. Use this configuration if the
+   * dataset documents are managed by the document service internally (not
+   * user-managed).
+   * 
+ * + * + * .google.cloud.documentai.v1beta3.Dataset.UnmanagedDatasetConfig unmanaged_dataset_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.documentai.v1beta3.Dataset.UnmanagedDatasetConfigOrBuilder + getUnmanagedDatasetConfigOrBuilder(); + + /** + * + * + *
+   * Optional. A lightweight indexing source with low latency and high
+   * reliability, but lacking advanced features like CMEK and content-based
+   * search.
+   * 
+ * + * + * .google.cloud.documentai.v1beta3.Dataset.SpannerIndexingConfig spanner_indexing_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the spannerIndexingConfig field is set. + */ + boolean hasSpannerIndexingConfig(); + /** + * + * + *
+   * Optional. A lightweight indexing source with low latency and high
+   * reliability, but lacking advanced features like CMEK and content-based
+   * search.
+   * 
+ * + * + * .google.cloud.documentai.v1beta3.Dataset.SpannerIndexingConfig spanner_indexing_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The spannerIndexingConfig. + */ + com.google.cloud.documentai.v1beta3.Dataset.SpannerIndexingConfig getSpannerIndexingConfig(); + /** + * + * + *
+   * Optional. A lightweight indexing source with low latency and high
+   * reliability, but lacking advanced features like CMEK and content-based
+   * search.
+   * 
+ * + * + * .google.cloud.documentai.v1beta3.Dataset.SpannerIndexingConfig spanner_indexing_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.documentai.v1beta3.Dataset.SpannerIndexingConfigOrBuilder + getSpannerIndexingConfigOrBuilder(); + + /** + * + * + *
+   * Dataset resource name.
+   * Format:
+   * `projects/{project}/locations/{location}/processors/{processor}/dataset`
+   * 
+ * + * string name = 1; + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Dataset resource name.
+   * Format:
+   * `projects/{project}/locations/{location}/processors/{processor}/dataset`
+   * 
+ * + * string name = 1; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Required. State of the dataset. Ignored when updating dataset.
+   * 
+ * + * + * .google.cloud.documentai.v1beta3.Dataset.State state = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for state. + */ + int getStateValue(); + /** + * + * + *
+   * Required. State of the dataset. Ignored when updating dataset.
+   * 
+ * + * + * .google.cloud.documentai.v1beta3.Dataset.State state = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The state. + */ + com.google.cloud.documentai.v1beta3.Dataset.State getState(); + + com.google.cloud.documentai.v1beta3.Dataset.StorageSourceCase getStorageSourceCase(); + + com.google.cloud.documentai.v1beta3.Dataset.IndexingSourceCase getIndexingSourceCase(); +} diff --git a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/DatasetProto.java b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/DatasetProto.java new file mode 100644 index 000000000000..bb57cd518418 --- /dev/null +++ b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/DatasetProto.java @@ -0,0 +1,185 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the 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/v1beta3/dataset.proto + +package com.google.cloud.documentai.v1beta3; + +public final class DatasetProto { + private DatasetProto() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_documentai_v1beta3_Dataset_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_documentai_v1beta3_Dataset_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_documentai_v1beta3_Dataset_GCSManagedConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_documentai_v1beta3_Dataset_GCSManagedConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_documentai_v1beta3_Dataset_DocumentWarehouseConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_documentai_v1beta3_Dataset_DocumentWarehouseConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_documentai_v1beta3_Dataset_UnmanagedDatasetConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_documentai_v1beta3_Dataset_UnmanagedDatasetConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_documentai_v1beta3_Dataset_SpannerIndexingConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_documentai_v1beta3_Dataset_SpannerIndexingConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_documentai_v1beta3_DatasetSchema_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_documentai_v1beta3_DatasetSchema_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n-google/cloud/documentai/v1beta3/datase" + + "t.proto\022\037google.cloud.documentai.v1beta3" + + "\032\037google/api/field_behavior.proto\032\031googl" + + "e/api/resource.proto\0321google/cloud/docum" + + "entai/v1beta3/document_io.proto\0325google/" + + "cloud/documentai/v1beta3/document_schema" + + ".proto\"\352\007\n\007Dataset\022]\n\022gcs_managed_config" + + "\030\003 \001(\01329.google.cloud.documentai.v1beta3" + + ".Dataset.GCSManagedConfigB\004\342A\001\001H\000\022k\n\031doc" + + "ument_warehouse_config\030\005 \001(\0132@.google.cl" + + "oud.documentai.v1beta3.Dataset.DocumentW" + + "arehouseConfigB\004\342A\001\001H\000\022i\n\030unmanaged_data" + + "set_config\030\006 \001(\0132?.google.cloud.document" + + "ai.v1beta3.Dataset.UnmanagedDatasetConfi" + + "gB\004\342A\001\001H\000\022g\n\027spanner_indexing_config\030\004 \001" + + "(\0132>.google.cloud.documentai.v1beta3.Dat" + + "aset.SpannerIndexingConfigB\004\342A\001\001H\001\022\014\n\004na" + + "me\030\001 \001(\t\022C\n\005state\030\002 \001(\0162..google.cloud.d" + + "ocumentai.v1beta3.Dataset.StateB\004\342A\001\002\032X\n" + + "\020GCSManagedConfig\022D\n\ngcs_prefix\030\001 \001(\0132*." + + "google.cloud.documentai.v1beta3.GcsPrefi" + + "xB\004\342A\001\002\032t\n\027DocumentWarehouseConfig\022\030\n\nco" + + "llection\030\001 \001(\tB\004\342A\001\003\022?\n\006schema\030\002 \001(\tB/\342A" + + "\001\003\372A(\n&contentwarehouse.googleapis.com/S" + + "chema\032\030\n\026UnmanagedDatasetConfig\032\027\n\025Spann" + + "erIndexingConfig\"T\n\005State\022\025\n\021STATE_UNSPE" + + "CIFIED\020\000\022\021\n\rUNINITIALIZED\020\001\022\020\n\014INITIALIZ" + + "ING\020\002\022\017\n\013INITIALIZED\020\003:n\352Ak\n!documentai." + + "googleapis.com/Dataset\022Fprojects/{projec" + + "t}/locations/{location}/processors/{proc" + + "essor}/datasetB\020\n\016storage_sourceB\021\n\017inde" + + "xing_source\"\362\001\n\rDatasetSchema\022\014\n\004name\030\001 " + + "\001(\t\022N\n\017document_schema\030\003 \001(\0132/.google.cl" + + "oud.documentai.v1beta3.DocumentSchemaB\004\342" + + "A\001\001:\202\001\352A\177\n\'documentai.googleapis.com/Dat" + + "asetSchema\022Tprojects/{project}/locations" + + "/{location}/processors/{processor}/datas" + + "et/datasetSchemaB\310\002\n#com.google.cloud.do" + + "cumentai.v1beta3B\014DatasetProtoP\001ZCcloud." + + "google.com/go/documentai/apiv1beta3/docu" + + "mentaipb;documentaipb\252\002\037Google.Cloud.Doc" + + "umentAI.V1Beta3\312\002\037Google\\Cloud\\DocumentA" + + "I\\V1beta3\352\002\"Google::Cloud::DocumentAI::V" + + "1beta3\352Ab\n&contentwarehouse.googleapis.c" + + "om/Schema\0228projects/{project}/locations/" + + "{location}/schemas/{schema}b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.cloud.documentai.v1beta3.DocumentIoProto.getDescriptor(), + com.google.cloud.documentai.v1beta3.DocumentAiDocumentSchema.getDescriptor(), + }); + internal_static_google_cloud_documentai_v1beta3_Dataset_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_documentai_v1beta3_Dataset_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_documentai_v1beta3_Dataset_descriptor, + new java.lang.String[] { + "GcsManagedConfig", + "DocumentWarehouseConfig", + "UnmanagedDatasetConfig", + "SpannerIndexingConfig", + "Name", + "State", + "StorageSource", + "IndexingSource", + }); + internal_static_google_cloud_documentai_v1beta3_Dataset_GCSManagedConfig_descriptor = + internal_static_google_cloud_documentai_v1beta3_Dataset_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_documentai_v1beta3_Dataset_GCSManagedConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_documentai_v1beta3_Dataset_GCSManagedConfig_descriptor, + new java.lang.String[] { + "GcsPrefix", + }); + internal_static_google_cloud_documentai_v1beta3_Dataset_DocumentWarehouseConfig_descriptor = + internal_static_google_cloud_documentai_v1beta3_Dataset_descriptor.getNestedTypes().get(1); + internal_static_google_cloud_documentai_v1beta3_Dataset_DocumentWarehouseConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_documentai_v1beta3_Dataset_DocumentWarehouseConfig_descriptor, + new java.lang.String[] { + "Collection", "Schema", + }); + internal_static_google_cloud_documentai_v1beta3_Dataset_UnmanagedDatasetConfig_descriptor = + internal_static_google_cloud_documentai_v1beta3_Dataset_descriptor.getNestedTypes().get(2); + internal_static_google_cloud_documentai_v1beta3_Dataset_UnmanagedDatasetConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_documentai_v1beta3_Dataset_UnmanagedDatasetConfig_descriptor, + new java.lang.String[] {}); + internal_static_google_cloud_documentai_v1beta3_Dataset_SpannerIndexingConfig_descriptor = + internal_static_google_cloud_documentai_v1beta3_Dataset_descriptor.getNestedTypes().get(3); + internal_static_google_cloud_documentai_v1beta3_Dataset_SpannerIndexingConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_documentai_v1beta3_Dataset_SpannerIndexingConfig_descriptor, + new java.lang.String[] {}); + internal_static_google_cloud_documentai_v1beta3_DatasetSchema_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_documentai_v1beta3_DatasetSchema_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_documentai_v1beta3_DatasetSchema_descriptor, + new java.lang.String[] { + "Name", "DocumentSchema", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.ResourceProto.resource); + registry.add(com.google.api.ResourceProto.resourceDefinition); + registry.add(com.google.api.ResourceProto.resourceReference); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.cloud.documentai.v1beta3.DocumentIoProto.getDescriptor(); + com.google.cloud.documentai.v1beta3.DocumentAiDocumentSchema.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/DatasetSchema.java b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/DatasetSchema.java new file mode 100644 index 000000000000..d6a1ffc34f52 --- /dev/null +++ b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/DatasetSchema.java @@ -0,0 +1,930 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the 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/v1beta3/dataset.proto + +package com.google.cloud.documentai.v1beta3; + +/** + * + * + *
+ * Dataset Schema.
+ * 
+ * + * Protobuf type {@code google.cloud.documentai.v1beta3.DatasetSchema} + */ +public final class DatasetSchema extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.documentai.v1beta3.DatasetSchema) + DatasetSchemaOrBuilder { + private static final long serialVersionUID = 0L; + // Use DatasetSchema.newBuilder() to construct. + private DatasetSchema(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DatasetSchema() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DatasetSchema(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.documentai.v1beta3.DatasetProto + .internal_static_google_cloud_documentai_v1beta3_DatasetSchema_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.documentai.v1beta3.DatasetProto + .internal_static_google_cloud_documentai_v1beta3_DatasetSchema_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.documentai.v1beta3.DatasetSchema.class, + com.google.cloud.documentai.v1beta3.DatasetSchema.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
+   * Dataset schema resource name.
+   * Format:
+   * `projects/{project}/locations/{location}/processors/{processor}/dataset/datasetSchema`
+   * 
+ * + * string name = 1; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Dataset schema resource name.
+   * Format:
+   * `projects/{project}/locations/{location}/processors/{processor}/dataset/datasetSchema`
+   * 
+ * + * string name = 1; + * + * @return The bytes for name. + */ + @java.lang.Override + 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); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DOCUMENT_SCHEMA_FIELD_NUMBER = 3; + private com.google.cloud.documentai.v1beta3.DocumentSchema documentSchema_; + /** + * + * + *
+   * Optional. Schema of the dataset.
+   * 
+ * + * + * .google.cloud.documentai.v1beta3.DocumentSchema document_schema = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the documentSchema field is set. + */ + @java.lang.Override + public boolean hasDocumentSchema() { + return documentSchema_ != null; + } + /** + * + * + *
+   * Optional. Schema of the dataset.
+   * 
+ * + * + * .google.cloud.documentai.v1beta3.DocumentSchema document_schema = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The documentSchema. + */ + @java.lang.Override + public com.google.cloud.documentai.v1beta3.DocumentSchema getDocumentSchema() { + return documentSchema_ == null + ? com.google.cloud.documentai.v1beta3.DocumentSchema.getDefaultInstance() + : documentSchema_; + } + /** + * + * + *
+   * Optional. Schema of the dataset.
+   * 
+ * + * + * .google.cloud.documentai.v1beta3.DocumentSchema document_schema = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.documentai.v1beta3.DocumentSchemaOrBuilder getDocumentSchemaOrBuilder() { + return documentSchema_ == null + ? com.google.cloud.documentai.v1beta3.DocumentSchema.getDefaultInstance() + : documentSchema_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + 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_); + } + if (documentSchema_ != null) { + output.writeMessage(3, getDocumentSchema()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (documentSchema_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getDocumentSchema()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.documentai.v1beta3.DatasetSchema)) { + return super.equals(obj); + } + com.google.cloud.documentai.v1beta3.DatasetSchema other = + (com.google.cloud.documentai.v1beta3.DatasetSchema) obj; + + if (!getName().equals(other.getName())) return false; + if (hasDocumentSchema() != other.hasDocumentSchema()) return false; + if (hasDocumentSchema()) { + if (!getDocumentSchema().equals(other.getDocumentSchema())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + if (hasDocumentSchema()) { + hash = (37 * hash) + DOCUMENT_SCHEMA_FIELD_NUMBER; + hash = (53 * hash) + getDocumentSchema().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.documentai.v1beta3.DatasetSchema parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.documentai.v1beta3.DatasetSchema 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.v1beta3.DatasetSchema parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.documentai.v1beta3.DatasetSchema parseFrom( + com.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.v1beta3.DatasetSchema parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.documentai.v1beta3.DatasetSchema parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.documentai.v1beta3.DatasetSchema parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.documentai.v1beta3.DatasetSchema 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.v1beta3.DatasetSchema parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.documentai.v1beta3.DatasetSchema 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.v1beta3.DatasetSchema parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.documentai.v1beta3.DatasetSchema 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 static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.documentai.v1beta3.DatasetSchema prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Dataset Schema.
+   * 
+ * + * Protobuf type {@code google.cloud.documentai.v1beta3.DatasetSchema} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.documentai.v1beta3.DatasetSchema) + com.google.cloud.documentai.v1beta3.DatasetSchemaOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.documentai.v1beta3.DatasetProto + .internal_static_google_cloud_documentai_v1beta3_DatasetSchema_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.documentai.v1beta3.DatasetProto + .internal_static_google_cloud_documentai_v1beta3_DatasetSchema_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.documentai.v1beta3.DatasetSchema.class, + com.google.cloud.documentai.v1beta3.DatasetSchema.Builder.class); + } + + // Construct using com.google.cloud.documentai.v1beta3.DatasetSchema.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + documentSchema_ = null; + if (documentSchemaBuilder_ != null) { + documentSchemaBuilder_.dispose(); + documentSchemaBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.documentai.v1beta3.DatasetProto + .internal_static_google_cloud_documentai_v1beta3_DatasetSchema_descriptor; + } + + @java.lang.Override + public com.google.cloud.documentai.v1beta3.DatasetSchema getDefaultInstanceForType() { + return com.google.cloud.documentai.v1beta3.DatasetSchema.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.documentai.v1beta3.DatasetSchema build() { + com.google.cloud.documentai.v1beta3.DatasetSchema result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.documentai.v1beta3.DatasetSchema buildPartial() { + com.google.cloud.documentai.v1beta3.DatasetSchema result = + new com.google.cloud.documentai.v1beta3.DatasetSchema(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.documentai.v1beta3.DatasetSchema result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.documentSchema_ = + documentSchemaBuilder_ == null ? documentSchema_ : documentSchemaBuilder_.build(); + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.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.v1beta3.DatasetSchema) { + return mergeFrom((com.google.cloud.documentai.v1beta3.DatasetSchema) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.documentai.v1beta3.DatasetSchema other) { + if (other == com.google.cloud.documentai.v1beta3.DatasetSchema.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasDocumentSchema()) { + mergeDocumentSchema(other.getDocumentSchema()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 26: + { + input.readMessage(getDocumentSchemaFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Dataset schema resource name.
+     * Format:
+     * `projects/{project}/locations/{location}/processors/{processor}/dataset/datasetSchema`
+     * 
+ * + * string name = 1; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Dataset schema resource name.
+     * Format:
+     * `projects/{project}/locations/{location}/processors/{processor}/dataset/datasetSchema`
+     * 
+ * + * string name = 1; + * + * @return The bytes for name. + */ + 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); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Dataset schema resource name.
+     * Format:
+     * `projects/{project}/locations/{location}/processors/{processor}/dataset/datasetSchema`
+     * 
+ * + * string name = 1; + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Dataset schema resource name.
+     * Format:
+     * `projects/{project}/locations/{location}/processors/{processor}/dataset/datasetSchema`
+     * 
+ * + * string name = 1; + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Dataset schema resource name.
+     * Format:
+     * `projects/{project}/locations/{location}/processors/{processor}/dataset/datasetSchema`
+     * 
+ * + * string name = 1; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.cloud.documentai.v1beta3.DocumentSchema documentSchema_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.documentai.v1beta3.DocumentSchema, + com.google.cloud.documentai.v1beta3.DocumentSchema.Builder, + com.google.cloud.documentai.v1beta3.DocumentSchemaOrBuilder> + documentSchemaBuilder_; + /** + * + * + *
+     * Optional. Schema of the dataset.
+     * 
+ * + * + * .google.cloud.documentai.v1beta3.DocumentSchema document_schema = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the documentSchema field is set. + */ + public boolean hasDocumentSchema() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+     * Optional. Schema of the dataset.
+     * 
+ * + * + * .google.cloud.documentai.v1beta3.DocumentSchema document_schema = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The documentSchema. + */ + public com.google.cloud.documentai.v1beta3.DocumentSchema getDocumentSchema() { + if (documentSchemaBuilder_ == null) { + return documentSchema_ == null + ? com.google.cloud.documentai.v1beta3.DocumentSchema.getDefaultInstance() + : documentSchema_; + } else { + return documentSchemaBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Optional. Schema of the dataset.
+     * 
+ * + * + * .google.cloud.documentai.v1beta3.DocumentSchema document_schema = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setDocumentSchema(com.google.cloud.documentai.v1beta3.DocumentSchema value) { + if (documentSchemaBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + documentSchema_ = value; + } else { + documentSchemaBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Schema of the dataset.
+     * 
+ * + * + * .google.cloud.documentai.v1beta3.DocumentSchema document_schema = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setDocumentSchema( + com.google.cloud.documentai.v1beta3.DocumentSchema.Builder builderForValue) { + if (documentSchemaBuilder_ == null) { + documentSchema_ = builderForValue.build(); + } else { + documentSchemaBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Schema of the dataset.
+     * 
+ * + * + * .google.cloud.documentai.v1beta3.DocumentSchema document_schema = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeDocumentSchema(com.google.cloud.documentai.v1beta3.DocumentSchema value) { + if (documentSchemaBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && documentSchema_ != null + && documentSchema_ + != com.google.cloud.documentai.v1beta3.DocumentSchema.getDefaultInstance()) { + getDocumentSchemaBuilder().mergeFrom(value); + } else { + documentSchema_ = value; + } + } else { + documentSchemaBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Schema of the dataset.
+     * 
+ * + * + * .google.cloud.documentai.v1beta3.DocumentSchema document_schema = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearDocumentSchema() { + bitField0_ = (bitField0_ & ~0x00000002); + documentSchema_ = null; + if (documentSchemaBuilder_ != null) { + documentSchemaBuilder_.dispose(); + documentSchemaBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Schema of the dataset.
+     * 
+ * + * + * .google.cloud.documentai.v1beta3.DocumentSchema document_schema = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.documentai.v1beta3.DocumentSchema.Builder getDocumentSchemaBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getDocumentSchemaFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional. Schema of the dataset.
+     * 
+ * + * + * .google.cloud.documentai.v1beta3.DocumentSchema document_schema = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.documentai.v1beta3.DocumentSchemaOrBuilder + getDocumentSchemaOrBuilder() { + if (documentSchemaBuilder_ != null) { + return documentSchemaBuilder_.getMessageOrBuilder(); + } else { + return documentSchema_ == null + ? com.google.cloud.documentai.v1beta3.DocumentSchema.getDefaultInstance() + : documentSchema_; + } + } + /** + * + * + *
+     * Optional. Schema of the dataset.
+     * 
+ * + * + * .google.cloud.documentai.v1beta3.DocumentSchema document_schema = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.documentai.v1beta3.DocumentSchema, + com.google.cloud.documentai.v1beta3.DocumentSchema.Builder, + com.google.cloud.documentai.v1beta3.DocumentSchemaOrBuilder> + getDocumentSchemaFieldBuilder() { + if (documentSchemaBuilder_ == null) { + documentSchemaBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.documentai.v1beta3.DocumentSchema, + com.google.cloud.documentai.v1beta3.DocumentSchema.Builder, + com.google.cloud.documentai.v1beta3.DocumentSchemaOrBuilder>( + getDocumentSchema(), getParentForChildren(), isClean()); + documentSchema_ = null; + } + return documentSchemaBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.documentai.v1beta3.DatasetSchema) + } + + // @@protoc_insertion_point(class_scope:google.cloud.documentai.v1beta3.DatasetSchema) + private static final com.google.cloud.documentai.v1beta3.DatasetSchema DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.documentai.v1beta3.DatasetSchema(); + } + + public static com.google.cloud.documentai.v1beta3.DatasetSchema getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DatasetSchema parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.documentai.v1beta3.DatasetSchema getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/DatasetSchemaName.java b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/DatasetSchemaName.java new file mode 100644 index 000000000000..a6879ea7ee36 --- /dev/null +++ b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/DatasetSchemaName.java @@ -0,0 +1,226 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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 com.google.api.pathtemplate.PathTemplate; +import com.google.api.resourcenames.ResourceName; +import com.google.common.base.Preconditions; +import com.google.common.collect.ImmutableMap; +import java.util.ArrayList; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +@Generated("by gapic-generator-java") +public class DatasetSchemaName implements ResourceName { + private static final PathTemplate PROJECT_LOCATION_PROCESSOR = + PathTemplate.createWithoutUrlEncoding( + "projects/{project}/locations/{location}/processors/{processor}/dataset/datasetSchema"); + private volatile Map fieldValuesMap; + private final String project; + private final String location; + private final String processor; + + @Deprecated + protected DatasetSchemaName() { + project = null; + location = null; + processor = null; + } + + private DatasetSchemaName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + processor = Preconditions.checkNotNull(builder.getProcessor()); + } + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getProcessor() { + return processor; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static DatasetSchemaName of(String project, String location, String processor) { + return newBuilder().setProject(project).setLocation(location).setProcessor(processor).build(); + } + + public static String format(String project, String location, String processor) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setProcessor(processor) + .build() + .toString(); + } + + public static DatasetSchemaName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PROJECT_LOCATION_PROCESSOR.validatedMatch( + formattedString, "DatasetSchemaName.parse: formattedString not in valid format"); + return of(matchMap.get("project"), matchMap.get("location"), matchMap.get("processor")); + } + + public static List parseList(List formattedStrings) { + List list = new ArrayList<>(formattedStrings.size()); + for (String formattedString : formattedStrings) { + list.add(parse(formattedString)); + } + return list; + } + + public static List toStringList(List values) { + List list = new ArrayList<>(values.size()); + for (DatasetSchemaName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PROJECT_LOCATION_PROCESSOR.matches(formattedString); + } + + @Override + public Map getFieldValuesMap() { + if (fieldValuesMap == null) { + synchronized (this) { + if (fieldValuesMap == null) { + ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); + if (project != null) { + fieldMapBuilder.put("project", project); + } + if (location != null) { + fieldMapBuilder.put("location", location); + } + if (processor != null) { + fieldMapBuilder.put("processor", processor); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PROJECT_LOCATION_PROCESSOR.instantiate( + "project", project, "location", location, "processor", processor); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null || getClass() == o.getClass()) { + DatasetSchemaName that = ((DatasetSchemaName) o); + return Objects.equals(this.project, that.project) + && Objects.equals(this.location, that.location) + && Objects.equals(this.processor, that.processor); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= Objects.hashCode(project); + h *= 1000003; + h ^= Objects.hashCode(location); + h *= 1000003; + h ^= Objects.hashCode(processor); + return h; + } + + /** + * Builder for + * projects/{project}/locations/{location}/processors/{processor}/dataset/datasetSchema. + */ + public static class Builder { + private String project; + private String location; + private String processor; + + protected Builder() {} + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getProcessor() { + return processor; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setLocation(String location) { + this.location = location; + return this; + } + + public Builder setProcessor(String processor) { + this.processor = processor; + return this; + } + + private Builder(DatasetSchemaName datasetSchemaName) { + this.project = datasetSchemaName.project; + this.location = datasetSchemaName.location; + this.processor = datasetSchemaName.processor; + } + + public DatasetSchemaName build() { + return new DatasetSchemaName(this); + } + } +} diff --git a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/DatasetSchemaOrBuilder.java b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/DatasetSchemaOrBuilder.java new file mode 100644 index 000000000000..78e6105e2cc8 --- /dev/null +++ b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/DatasetSchemaOrBuilder.java @@ -0,0 +1,95 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the 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/v1beta3/dataset.proto + +package com.google.cloud.documentai.v1beta3; + +public interface DatasetSchemaOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.documentai.v1beta3.DatasetSchema) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Dataset schema resource name.
+   * Format:
+   * `projects/{project}/locations/{location}/processors/{processor}/dataset/datasetSchema`
+   * 
+ * + * string name = 1; + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Dataset schema resource name.
+   * Format:
+   * `projects/{project}/locations/{location}/processors/{processor}/dataset/datasetSchema`
+   * 
+ * + * string name = 1; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Optional. Schema of the dataset.
+   * 
+ * + * + * .google.cloud.documentai.v1beta3.DocumentSchema document_schema = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the documentSchema field is set. + */ + boolean hasDocumentSchema(); + /** + * + * + *
+   * Optional. Schema of the dataset.
+   * 
+ * + * + * .google.cloud.documentai.v1beta3.DocumentSchema document_schema = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The documentSchema. + */ + com.google.cloud.documentai.v1beta3.DocumentSchema getDocumentSchema(); + /** + * + * + *
+   * Optional. Schema of the dataset.
+   * 
+ * + * + * .google.cloud.documentai.v1beta3.DocumentSchema document_schema = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.documentai.v1beta3.DocumentSchemaOrBuilder getDocumentSchemaOrBuilder(); +} diff --git a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/DeleteProcessorMetadata.java b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/DeleteProcessorMetadata.java index 0aa00b16e17d..a2857ec93058 100644 --- a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/DeleteProcessorMetadata.java +++ b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/DeleteProcessorMetadata.java @@ -22,7 +22,9 @@ * * *
- * The long running operation metadata for delete processor method.
+ * The long-running operation metadata for the
+ * [DeleteProcessor][google.cloud.documentai.v1beta3.DocumentProcessorService.DeleteProcessor]
+ * method.
  * 
* * Protobuf type {@code google.cloud.documentai.v1beta3.DeleteProcessorMetadata} @@ -66,7 +68,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * The basic metadata of the long running operation.
+   * The basic metadata of the long-running operation.
    * 
* * .google.cloud.documentai.v1beta3.CommonOperationMetadata common_metadata = 5; @@ -81,7 +83,7 @@ public boolean hasCommonMetadata() { * * *
-   * The basic metadata of the long running operation.
+   * The basic metadata of the long-running operation.
    * 
* * .google.cloud.documentai.v1beta3.CommonOperationMetadata common_metadata = 5; @@ -98,7 +100,7 @@ public com.google.cloud.documentai.v1beta3.CommonOperationMetadata getCommonMeta * * *
-   * The basic metadata of the long running operation.
+   * The basic metadata of the long-running operation.
    * 
* * .google.cloud.documentai.v1beta3.CommonOperationMetadata common_metadata = 5; @@ -280,7 +282,9 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * The long running operation metadata for delete processor method.
+   * The long-running operation metadata for the
+   * [DeleteProcessor][google.cloud.documentai.v1beta3.DocumentProcessorService.DeleteProcessor]
+   * method.
    * 
* * Protobuf type {@code google.cloud.documentai.v1beta3.DeleteProcessorMetadata} @@ -472,7 +476,7 @@ public Builder mergeFrom( * * *
-     * The basic metadata of the long running operation.
+     * The basic metadata of the long-running operation.
      * 
* * .google.cloud.documentai.v1beta3.CommonOperationMetadata common_metadata = 5; @@ -486,7 +490,7 @@ public boolean hasCommonMetadata() { * * *
-     * The basic metadata of the long running operation.
+     * The basic metadata of the long-running operation.
      * 
* * .google.cloud.documentai.v1beta3.CommonOperationMetadata common_metadata = 5; @@ -506,7 +510,7 @@ public com.google.cloud.documentai.v1beta3.CommonOperationMetadata getCommonMeta * * *
-     * The basic metadata of the long running operation.
+     * The basic metadata of the long-running operation.
      * 
* * .google.cloud.documentai.v1beta3.CommonOperationMetadata common_metadata = 5; @@ -529,7 +533,7 @@ public Builder setCommonMetadata( * * *
-     * The basic metadata of the long running operation.
+     * The basic metadata of the long-running operation.
      * 
* * .google.cloud.documentai.v1beta3.CommonOperationMetadata common_metadata = 5; @@ -549,7 +553,7 @@ public Builder setCommonMetadata( * * *
-     * The basic metadata of the long running operation.
+     * The basic metadata of the long-running operation.
      * 
* * .google.cloud.documentai.v1beta3.CommonOperationMetadata common_metadata = 5; @@ -577,7 +581,7 @@ public Builder mergeCommonMetadata( * * *
-     * The basic metadata of the long running operation.
+     * The basic metadata of the long-running operation.
      * 
* * .google.cloud.documentai.v1beta3.CommonOperationMetadata common_metadata = 5; @@ -596,7 +600,7 @@ public Builder clearCommonMetadata() { * * *
-     * The basic metadata of the long running operation.
+     * The basic metadata of the long-running operation.
      * 
* * .google.cloud.documentai.v1beta3.CommonOperationMetadata common_metadata = 5; @@ -611,7 +615,7 @@ public Builder clearCommonMetadata() { * * *
-     * The basic metadata of the long running operation.
+     * The basic metadata of the long-running operation.
      * 
* * .google.cloud.documentai.v1beta3.CommonOperationMetadata common_metadata = 5; @@ -630,7 +634,7 @@ public Builder clearCommonMetadata() { * * *
-     * The basic metadata of the long running operation.
+     * The basic metadata of the long-running operation.
      * 
* * .google.cloud.documentai.v1beta3.CommonOperationMetadata common_metadata = 5; diff --git a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/DeleteProcessorMetadataOrBuilder.java b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/DeleteProcessorMetadataOrBuilder.java index 3e82a3c754a0..716e1edefd16 100644 --- a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/DeleteProcessorMetadataOrBuilder.java +++ b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/DeleteProcessorMetadataOrBuilder.java @@ -27,7 +27,7 @@ public interface DeleteProcessorMetadataOrBuilder * * *
-   * The basic metadata of the long running operation.
+   * The basic metadata of the long-running operation.
    * 
* * .google.cloud.documentai.v1beta3.CommonOperationMetadata common_metadata = 5; @@ -39,7 +39,7 @@ public interface DeleteProcessorMetadataOrBuilder * * *
-   * The basic metadata of the long running operation.
+   * The basic metadata of the long-running operation.
    * 
* * .google.cloud.documentai.v1beta3.CommonOperationMetadata common_metadata = 5; @@ -51,7 +51,7 @@ public interface DeleteProcessorMetadataOrBuilder * * *
-   * The basic metadata of the long running operation.
+   * The basic metadata of the long-running operation.
    * 
* * .google.cloud.documentai.v1beta3.CommonOperationMetadata common_metadata = 5; diff --git a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/DeleteProcessorRequest.java b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/DeleteProcessorRequest.java index 1ac31512bf13..3b0c461487c9 100644 --- a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/DeleteProcessorRequest.java +++ b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/DeleteProcessorRequest.java @@ -22,7 +22,9 @@ * * *
- * Request message for the delete processor method.
+ * Request message for the
+ * [DeleteProcessor][google.cloud.documentai.v1beta3.DocumentProcessorService.DeleteProcessor]
+ * method.
  * 
* * Protobuf type {@code google.cloud.documentai.v1beta3.DeleteProcessorRequest} @@ -281,7 +283,9 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * Request message for the delete processor method.
+   * Request message for the
+   * [DeleteProcessor][google.cloud.documentai.v1beta3.DocumentProcessorService.DeleteProcessor]
+   * method.
    * 
* * Protobuf type {@code google.cloud.documentai.v1beta3.DeleteProcessorRequest} diff --git a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/DeleteProcessorVersionMetadata.java b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/DeleteProcessorVersionMetadata.java index 3f02de67930d..613b758fbfbf 100644 --- a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/DeleteProcessorVersionMetadata.java +++ b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/DeleteProcessorVersionMetadata.java @@ -22,7 +22,9 @@ * * *
- * The long running operation metadata for delete processor version method.
+ * The long-running operation metadata for the
+ * [DeleteProcessorVersion][google.cloud.documentai.v1beta3.DocumentProcessorService.DeleteProcessorVersion]
+ * method.
  * 
* * Protobuf type {@code google.cloud.documentai.v1beta3.DeleteProcessorVersionMetadata} @@ -67,7 +69,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * The basic metadata of the long running operation.
+   * The basic metadata of the long-running operation.
    * 
* * .google.cloud.documentai.v1beta3.CommonOperationMetadata common_metadata = 1; @@ -82,7 +84,7 @@ public boolean hasCommonMetadata() { * * *
-   * The basic metadata of the long running operation.
+   * The basic metadata of the long-running operation.
    * 
* * .google.cloud.documentai.v1beta3.CommonOperationMetadata common_metadata = 1; @@ -99,7 +101,7 @@ public com.google.cloud.documentai.v1beta3.CommonOperationMetadata getCommonMeta * * *
-   * The basic metadata of the long running operation.
+   * The basic metadata of the long-running operation.
    * 
* * .google.cloud.documentai.v1beta3.CommonOperationMetadata common_metadata = 1; @@ -282,7 +284,9 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * The long running operation metadata for delete processor version method.
+   * The long-running operation metadata for the
+   * [DeleteProcessorVersion][google.cloud.documentai.v1beta3.DocumentProcessorService.DeleteProcessorVersion]
+   * method.
    * 
* * Protobuf type {@code google.cloud.documentai.v1beta3.DeleteProcessorVersionMetadata} @@ -481,7 +485,7 @@ public Builder mergeFrom( * * *
-     * The basic metadata of the long running operation.
+     * The basic metadata of the long-running operation.
      * 
* * .google.cloud.documentai.v1beta3.CommonOperationMetadata common_metadata = 1; @@ -495,7 +499,7 @@ public boolean hasCommonMetadata() { * * *
-     * The basic metadata of the long running operation.
+     * The basic metadata of the long-running operation.
      * 
* * .google.cloud.documentai.v1beta3.CommonOperationMetadata common_metadata = 1; @@ -515,7 +519,7 @@ public com.google.cloud.documentai.v1beta3.CommonOperationMetadata getCommonMeta * * *
-     * The basic metadata of the long running operation.
+     * The basic metadata of the long-running operation.
      * 
* * .google.cloud.documentai.v1beta3.CommonOperationMetadata common_metadata = 1; @@ -538,7 +542,7 @@ public Builder setCommonMetadata( * * *
-     * The basic metadata of the long running operation.
+     * The basic metadata of the long-running operation.
      * 
* * .google.cloud.documentai.v1beta3.CommonOperationMetadata common_metadata = 1; @@ -558,7 +562,7 @@ public Builder setCommonMetadata( * * *
-     * The basic metadata of the long running operation.
+     * The basic metadata of the long-running operation.
      * 
* * .google.cloud.documentai.v1beta3.CommonOperationMetadata common_metadata = 1; @@ -586,7 +590,7 @@ public Builder mergeCommonMetadata( * * *
-     * The basic metadata of the long running operation.
+     * The basic metadata of the long-running operation.
      * 
* * .google.cloud.documentai.v1beta3.CommonOperationMetadata common_metadata = 1; @@ -605,7 +609,7 @@ public Builder clearCommonMetadata() { * * *
-     * The basic metadata of the long running operation.
+     * The basic metadata of the long-running operation.
      * 
* * .google.cloud.documentai.v1beta3.CommonOperationMetadata common_metadata = 1; @@ -620,7 +624,7 @@ public Builder clearCommonMetadata() { * * *
-     * The basic metadata of the long running operation.
+     * The basic metadata of the long-running operation.
      * 
* * .google.cloud.documentai.v1beta3.CommonOperationMetadata common_metadata = 1; @@ -639,7 +643,7 @@ public Builder clearCommonMetadata() { * * *
-     * The basic metadata of the long running operation.
+     * The basic metadata of the long-running operation.
      * 
* * .google.cloud.documentai.v1beta3.CommonOperationMetadata common_metadata = 1; diff --git a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/DeleteProcessorVersionMetadataOrBuilder.java b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/DeleteProcessorVersionMetadataOrBuilder.java index 122e31bf6d6c..87a9cf775140 100644 --- a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/DeleteProcessorVersionMetadataOrBuilder.java +++ b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/DeleteProcessorVersionMetadataOrBuilder.java @@ -27,7 +27,7 @@ public interface DeleteProcessorVersionMetadataOrBuilder * * *
-   * The basic metadata of the long running operation.
+   * The basic metadata of the long-running operation.
    * 
* * .google.cloud.documentai.v1beta3.CommonOperationMetadata common_metadata = 1; @@ -39,7 +39,7 @@ public interface DeleteProcessorVersionMetadataOrBuilder * * *
-   * The basic metadata of the long running operation.
+   * The basic metadata of the long-running operation.
    * 
* * .google.cloud.documentai.v1beta3.CommonOperationMetadata common_metadata = 1; @@ -51,7 +51,7 @@ public interface DeleteProcessorVersionMetadataOrBuilder * * *
-   * The basic metadata of the long running operation.
+   * The basic metadata of the long-running operation.
    * 
* * .google.cloud.documentai.v1beta3.CommonOperationMetadata common_metadata = 1; diff --git a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/DeleteProcessorVersionRequest.java b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/DeleteProcessorVersionRequest.java index eff47ad0646c..dbf9ceecffc9 100644 --- a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/DeleteProcessorVersionRequest.java +++ b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/DeleteProcessorVersionRequest.java @@ -22,7 +22,9 @@ * * *
- * Request message for the delete processor version method.
+ * Request message for the
+ * [DeleteProcessorVersion][google.cloud.documentai.v1beta3.DocumentProcessorService.DeleteProcessorVersion]
+ * method.
  * 
* * Protobuf type {@code google.cloud.documentai.v1beta3.DeleteProcessorVersionRequest} @@ -282,7 +284,9 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * Request message for the delete processor version method.
+   * Request message for the
+   * [DeleteProcessorVersion][google.cloud.documentai.v1beta3.DocumentProcessorService.DeleteProcessorVersion]
+   * method.
    * 
* * Protobuf type {@code google.cloud.documentai.v1beta3.DeleteProcessorVersionRequest} diff --git a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/DeployProcessorVersionMetadata.java b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/DeployProcessorVersionMetadata.java index 7a43a2328a20..f0daa08ba144 100644 --- a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/DeployProcessorVersionMetadata.java +++ b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/DeployProcessorVersionMetadata.java @@ -22,7 +22,9 @@ * * *
- * The long running operation metadata for deploy processor version method.
+ * The long-running operation metadata for the
+ * [DeployProcessorVersion][google.cloud.documentai.v1beta3.DocumentProcessorService.DeployProcessorVersion]
+ * method.
  * 
* * Protobuf type {@code google.cloud.documentai.v1beta3.DeployProcessorVersionMetadata} @@ -67,7 +69,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * The basic metadata of the long running operation.
+   * The basic metadata of the long-running operation.
    * 
* * .google.cloud.documentai.v1beta3.CommonOperationMetadata common_metadata = 1; @@ -82,7 +84,7 @@ public boolean hasCommonMetadata() { * * *
-   * The basic metadata of the long running operation.
+   * The basic metadata of the long-running operation.
    * 
* * .google.cloud.documentai.v1beta3.CommonOperationMetadata common_metadata = 1; @@ -99,7 +101,7 @@ public com.google.cloud.documentai.v1beta3.CommonOperationMetadata getCommonMeta * * *
-   * The basic metadata of the long running operation.
+   * The basic metadata of the long-running operation.
    * 
* * .google.cloud.documentai.v1beta3.CommonOperationMetadata common_metadata = 1; @@ -282,7 +284,9 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * The long running operation metadata for deploy processor version method.
+   * The long-running operation metadata for the
+   * [DeployProcessorVersion][google.cloud.documentai.v1beta3.DocumentProcessorService.DeployProcessorVersion]
+   * method.
    * 
* * Protobuf type {@code google.cloud.documentai.v1beta3.DeployProcessorVersionMetadata} @@ -481,7 +485,7 @@ public Builder mergeFrom( * * *
-     * The basic metadata of the long running operation.
+     * The basic metadata of the long-running operation.
      * 
* * .google.cloud.documentai.v1beta3.CommonOperationMetadata common_metadata = 1; @@ -495,7 +499,7 @@ public boolean hasCommonMetadata() { * * *
-     * The basic metadata of the long running operation.
+     * The basic metadata of the long-running operation.
      * 
* * .google.cloud.documentai.v1beta3.CommonOperationMetadata common_metadata = 1; @@ -515,7 +519,7 @@ public com.google.cloud.documentai.v1beta3.CommonOperationMetadata getCommonMeta * * *
-     * The basic metadata of the long running operation.
+     * The basic metadata of the long-running operation.
      * 
* * .google.cloud.documentai.v1beta3.CommonOperationMetadata common_metadata = 1; @@ -538,7 +542,7 @@ public Builder setCommonMetadata( * * *
-     * The basic metadata of the long running operation.
+     * The basic metadata of the long-running operation.
      * 
* * .google.cloud.documentai.v1beta3.CommonOperationMetadata common_metadata = 1; @@ -558,7 +562,7 @@ public Builder setCommonMetadata( * * *
-     * The basic metadata of the long running operation.
+     * The basic metadata of the long-running operation.
      * 
* * .google.cloud.documentai.v1beta3.CommonOperationMetadata common_metadata = 1; @@ -586,7 +590,7 @@ public Builder mergeCommonMetadata( * * *
-     * The basic metadata of the long running operation.
+     * The basic metadata of the long-running operation.
      * 
* * .google.cloud.documentai.v1beta3.CommonOperationMetadata common_metadata = 1; @@ -605,7 +609,7 @@ public Builder clearCommonMetadata() { * * *
-     * The basic metadata of the long running operation.
+     * The basic metadata of the long-running operation.
      * 
* * .google.cloud.documentai.v1beta3.CommonOperationMetadata common_metadata = 1; @@ -620,7 +624,7 @@ public Builder clearCommonMetadata() { * * *
-     * The basic metadata of the long running operation.
+     * The basic metadata of the long-running operation.
      * 
* * .google.cloud.documentai.v1beta3.CommonOperationMetadata common_metadata = 1; @@ -639,7 +643,7 @@ public Builder clearCommonMetadata() { * * *
-     * The basic metadata of the long running operation.
+     * The basic metadata of the long-running operation.
      * 
* * .google.cloud.documentai.v1beta3.CommonOperationMetadata common_metadata = 1; diff --git a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/DeployProcessorVersionMetadataOrBuilder.java b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/DeployProcessorVersionMetadataOrBuilder.java index c11d0f7cc534..8b1d7ca9d611 100644 --- a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/DeployProcessorVersionMetadataOrBuilder.java +++ b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/DeployProcessorVersionMetadataOrBuilder.java @@ -27,7 +27,7 @@ public interface DeployProcessorVersionMetadataOrBuilder * * *
-   * The basic metadata of the long running operation.
+   * The basic metadata of the long-running operation.
    * 
* * .google.cloud.documentai.v1beta3.CommonOperationMetadata common_metadata = 1; @@ -39,7 +39,7 @@ public interface DeployProcessorVersionMetadataOrBuilder * * *
-   * The basic metadata of the long running operation.
+   * The basic metadata of the long-running operation.
    * 
* * .google.cloud.documentai.v1beta3.CommonOperationMetadata common_metadata = 1; @@ -51,7 +51,7 @@ public interface DeployProcessorVersionMetadataOrBuilder * * *
-   * The basic metadata of the long running operation.
+   * The basic metadata of the long-running operation.
    * 
* * .google.cloud.documentai.v1beta3.CommonOperationMetadata common_metadata = 1; diff --git a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/DeployProcessorVersionRequest.java b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/DeployProcessorVersionRequest.java index 104e048681e7..0ae931cfb94c 100644 --- a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/DeployProcessorVersionRequest.java +++ b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/DeployProcessorVersionRequest.java @@ -22,7 +22,9 @@ * * *
- * Request message for the deploy processor version method.
+ * Request message for the
+ * [DeployProcessorVersion][google.cloud.documentai.v1beta3.DocumentProcessorService.DeployProcessorVersion]
+ * method.
  * 
* * Protobuf type {@code google.cloud.documentai.v1beta3.DeployProcessorVersionRequest} @@ -282,7 +284,9 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * Request message for the deploy processor version method.
+   * Request message for the
+   * [DeployProcessorVersion][google.cloud.documentai.v1beta3.DocumentProcessorService.DeployProcessorVersion]
+   * method.
    * 
* * Protobuf type {@code google.cloud.documentai.v1beta3.DeployProcessorVersionRequest} diff --git a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/DeployProcessorVersionResponse.java b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/DeployProcessorVersionResponse.java index fa62c93ed78c..e292f4fa9ad3 100644 --- a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/DeployProcessorVersionResponse.java +++ b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/DeployProcessorVersionResponse.java @@ -22,7 +22,9 @@ * * *
- * Response message for the deploy processor version method.
+ * Response message for the
+ * [DeployProcessorVersion][google.cloud.documentai.v1beta3.DocumentProcessorService.DeployProcessorVersion]
+ * method.
  * 
* * Protobuf type {@code google.cloud.documentai.v1beta3.DeployProcessorVersionResponse} @@ -217,7 +219,9 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * Response message for the deploy processor version method.
+   * Response message for the
+   * [DeployProcessorVersion][google.cloud.documentai.v1beta3.DocumentProcessorService.DeployProcessorVersion]
+   * method.
    * 
* * Protobuf type {@code google.cloud.documentai.v1beta3.DeployProcessorVersionResponse} diff --git a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/DisableProcessorMetadata.java b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/DisableProcessorMetadata.java index 3f8d921ab462..cdc9819ef7fa 100644 --- a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/DisableProcessorMetadata.java +++ b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/DisableProcessorMetadata.java @@ -22,7 +22,9 @@ * * *
- * The long running operation metadata for disable processor method.
+ * The long-running operation metadata for the
+ * [DisableProcessor][google.cloud.documentai.v1beta3.DocumentProcessorService.DisableProcessor]
+ * method.
  * 
* * Protobuf type {@code google.cloud.documentai.v1beta3.DisableProcessorMetadata} @@ -66,7 +68,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * The basic metadata of the long running operation.
+   * The basic metadata of the long-running operation.
    * 
* * .google.cloud.documentai.v1beta3.CommonOperationMetadata common_metadata = 5; @@ -81,7 +83,7 @@ public boolean hasCommonMetadata() { * * *
-   * The basic metadata of the long running operation.
+   * The basic metadata of the long-running operation.
    * 
* * .google.cloud.documentai.v1beta3.CommonOperationMetadata common_metadata = 5; @@ -98,7 +100,7 @@ public com.google.cloud.documentai.v1beta3.CommonOperationMetadata getCommonMeta * * *
-   * The basic metadata of the long running operation.
+   * The basic metadata of the long-running operation.
    * 
* * .google.cloud.documentai.v1beta3.CommonOperationMetadata common_metadata = 5; @@ -280,7 +282,9 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * The long running operation metadata for disable processor method.
+   * The long-running operation metadata for the
+   * [DisableProcessor][google.cloud.documentai.v1beta3.DocumentProcessorService.DisableProcessor]
+   * method.
    * 
* * Protobuf type {@code google.cloud.documentai.v1beta3.DisableProcessorMetadata} @@ -475,7 +479,7 @@ public Builder mergeFrom( * * *
-     * The basic metadata of the long running operation.
+     * The basic metadata of the long-running operation.
      * 
* * .google.cloud.documentai.v1beta3.CommonOperationMetadata common_metadata = 5; @@ -489,7 +493,7 @@ public boolean hasCommonMetadata() { * * *
-     * The basic metadata of the long running operation.
+     * The basic metadata of the long-running operation.
      * 
* * .google.cloud.documentai.v1beta3.CommonOperationMetadata common_metadata = 5; @@ -509,7 +513,7 @@ public com.google.cloud.documentai.v1beta3.CommonOperationMetadata getCommonMeta * * *
-     * The basic metadata of the long running operation.
+     * The basic metadata of the long-running operation.
      * 
* * .google.cloud.documentai.v1beta3.CommonOperationMetadata common_metadata = 5; @@ -532,7 +536,7 @@ public Builder setCommonMetadata( * * *
-     * The basic metadata of the long running operation.
+     * The basic metadata of the long-running operation.
      * 
* * .google.cloud.documentai.v1beta3.CommonOperationMetadata common_metadata = 5; @@ -552,7 +556,7 @@ public Builder setCommonMetadata( * * *
-     * The basic metadata of the long running operation.
+     * The basic metadata of the long-running operation.
      * 
* * .google.cloud.documentai.v1beta3.CommonOperationMetadata common_metadata = 5; @@ -580,7 +584,7 @@ public Builder mergeCommonMetadata( * * *
-     * The basic metadata of the long running operation.
+     * The basic metadata of the long-running operation.
      * 
* * .google.cloud.documentai.v1beta3.CommonOperationMetadata common_metadata = 5; @@ -599,7 +603,7 @@ public Builder clearCommonMetadata() { * * *
-     * The basic metadata of the long running operation.
+     * The basic metadata of the long-running operation.
      * 
* * .google.cloud.documentai.v1beta3.CommonOperationMetadata common_metadata = 5; @@ -614,7 +618,7 @@ public Builder clearCommonMetadata() { * * *
-     * The basic metadata of the long running operation.
+     * The basic metadata of the long-running operation.
      * 
* * .google.cloud.documentai.v1beta3.CommonOperationMetadata common_metadata = 5; @@ -633,7 +637,7 @@ public Builder clearCommonMetadata() { * * *
-     * The basic metadata of the long running operation.
+     * The basic metadata of the long-running operation.
      * 
* * .google.cloud.documentai.v1beta3.CommonOperationMetadata common_metadata = 5; diff --git a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/DisableProcessorMetadataOrBuilder.java b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/DisableProcessorMetadataOrBuilder.java index 638d0379181d..2ca65fb88ef9 100644 --- a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/DisableProcessorMetadataOrBuilder.java +++ b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/DisableProcessorMetadataOrBuilder.java @@ -27,7 +27,7 @@ public interface DisableProcessorMetadataOrBuilder * * *
-   * The basic metadata of the long running operation.
+   * The basic metadata of the long-running operation.
    * 
* * .google.cloud.documentai.v1beta3.CommonOperationMetadata common_metadata = 5; @@ -39,7 +39,7 @@ public interface DisableProcessorMetadataOrBuilder * * *
-   * The basic metadata of the long running operation.
+   * The basic metadata of the long-running operation.
    * 
* * .google.cloud.documentai.v1beta3.CommonOperationMetadata common_metadata = 5; @@ -51,7 +51,7 @@ public interface DisableProcessorMetadataOrBuilder * * *
-   * The basic metadata of the long running operation.
+   * The basic metadata of the long-running operation.
    * 
* * .google.cloud.documentai.v1beta3.CommonOperationMetadata common_metadata = 5; diff --git a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/DisableProcessorRequest.java b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/DisableProcessorRequest.java index 04ed70bcaaa4..f15d7e4965ac 100644 --- a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/DisableProcessorRequest.java +++ b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/DisableProcessorRequest.java @@ -22,7 +22,9 @@ * * *
- * Request message for the disable processor method.
+ * Request message for the
+ * [DisableProcessor][google.cloud.documentai.v1beta3.DocumentProcessorService.DisableProcessor]
+ * method.
  * 
* * Protobuf type {@code google.cloud.documentai.v1beta3.DisableProcessorRequest} @@ -281,7 +283,9 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * Request message for the disable processor method.
+   * Request message for the
+   * [DisableProcessor][google.cloud.documentai.v1beta3.DocumentProcessorService.DisableProcessor]
+   * method.
    * 
* * Protobuf type {@code google.cloud.documentai.v1beta3.DisableProcessorRequest} diff --git a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/DisableProcessorResponse.java b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/DisableProcessorResponse.java index 64adf594bf91..ae9bc48841d4 100644 --- a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/DisableProcessorResponse.java +++ b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/DisableProcessorResponse.java @@ -22,8 +22,9 @@ * * *
- * Response message for the disable processor method.
- * Intentionally empty proto for adding fields in future.
+ * Response message for the
+ * [DisableProcessor][google.cloud.documentai.v1beta3.DocumentProcessorService.DisableProcessor]
+ * method. Intentionally empty proto for adding fields in future.
  * 
* * Protobuf type {@code google.cloud.documentai.v1beta3.DisableProcessorResponse} @@ -216,8 +217,9 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * Response message for the disable processor method.
-   * Intentionally empty proto for adding fields in future.
+   * Response message for the
+   * [DisableProcessor][google.cloud.documentai.v1beta3.DocumentProcessorService.DisableProcessor]
+   * method. Intentionally empty proto for adding fields in future.
    * 
* * Protobuf type {@code google.cloud.documentai.v1beta3.DisableProcessorResponse} diff --git a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/Document.java b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/Document.java index 743086dc97e5..3296da738a57 100644 --- a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/Document.java +++ b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/Document.java @@ -955,8 +955,8 @@ public interface StyleOrBuilder * * *
-     * Font weight. Possible values are normal, bold, bolder, and lighter.
-     * https://www.w3schools.com/cssref/pr_font_weight.asp
+     * [Font weight](https://www.w3schools.com/cssref/pr_font_weight.asp).
+     * Possible values are `normal`, `bold`, `bolder`, and `lighter`.
      * 
* * string font_weight = 4; @@ -968,8 +968,8 @@ public interface StyleOrBuilder * * *
-     * Font weight. Possible values are normal, bold, bolder, and lighter.
-     * https://www.w3schools.com/cssref/pr_font_weight.asp
+     * [Font weight](https://www.w3schools.com/cssref/pr_font_weight.asp).
+     * Possible values are `normal`, `bold`, `bolder`, and `lighter`.
      * 
* * string font_weight = 4; @@ -982,8 +982,8 @@ public interface StyleOrBuilder * * *
-     * Text style. Possible values are normal, italic, and oblique.
-     * https://www.w3schools.com/cssref/pr_font_font-style.asp
+     * [Text style](https://www.w3schools.com/cssref/pr_font_font-style.asp).
+     * Possible values are `normal`, `italic`, and `oblique`.
      * 
* * string text_style = 5; @@ -995,8 +995,8 @@ public interface StyleOrBuilder * * *
-     * Text style. Possible values are normal, italic, and oblique.
-     * https://www.w3schools.com/cssref/pr_font_font-style.asp
+     * [Text style](https://www.w3schools.com/cssref/pr_font_font-style.asp).
+     * Possible values are `normal`, `italic`, and `oblique`.
      * 
* * string text_style = 5; @@ -1009,9 +1009,10 @@ public interface StyleOrBuilder * * *
-     * Text decoration. Follows CSS standard.
-     * <text-decoration-line> <text-decoration-color> <text-decoration-style>
-     * https://www.w3schools.com/cssref/pr_text_text-decoration.asp
+     * [Text
+     * decoration](https://www.w3schools.com/cssref/pr_text_text-decoration.asp).
+     * Follows CSS standard. <text-decoration-line> <text-decoration-color>
+     * <text-decoration-style>
      * 
* * string text_decoration = 6; @@ -1023,9 +1024,10 @@ public interface StyleOrBuilder * * *
-     * Text decoration. Follows CSS standard.
-     * <text-decoration-line> <text-decoration-color> <text-decoration-style>
-     * https://www.w3schools.com/cssref/pr_text_text-decoration.asp
+     * [Text
+     * decoration](https://www.w3schools.com/cssref/pr_text_text-decoration.asp).
+     * Follows CSS standard. <text-decoration-line> <text-decoration-color>
+     * <text-decoration-style>
      * 
* * string text_decoration = 6; @@ -1166,7 +1168,8 @@ public interface FontSizeOrBuilder * * *
-       * Unit for the font size. Follows CSS naming (in, px, pt, etc.).
+       * Unit for the font size. Follows CSS naming (such as `in`, `px`, and
+       * `pt`).
        * 
* * string unit = 2; @@ -1178,7 +1181,8 @@ public interface FontSizeOrBuilder * * *
-       * Unit for the font size. Follows CSS naming (in, px, pt, etc.).
+       * Unit for the font size. Follows CSS naming (such as `in`, `px`, and
+       * `pt`).
        * 
* * string unit = 2; @@ -1257,7 +1261,8 @@ public float getSize() { * * *
-       * Unit for the font size. Follows CSS naming (in, px, pt, etc.).
+       * Unit for the font size. Follows CSS naming (such as `in`, `px`, and
+       * `pt`).
        * 
* * string unit = 2; @@ -1280,7 +1285,8 @@ public java.lang.String getUnit() { * * *
-       * Unit for the font size. Follows CSS naming (in, px, pt, etc.).
+       * Unit for the font size. Follows CSS naming (such as `in`, `px`, and
+       * `pt`).
        * 
* * string unit = 2; @@ -1732,7 +1738,8 @@ public Builder clearSize() { * * *
-         * Unit for the font size. Follows CSS naming (in, px, pt, etc.).
+         * Unit for the font size. Follows CSS naming (such as `in`, `px`, and
+         * `pt`).
          * 
* * string unit = 2; @@ -1754,7 +1761,8 @@ public java.lang.String getUnit() { * * *
-         * Unit for the font size. Follows CSS naming (in, px, pt, etc.).
+         * Unit for the font size. Follows CSS naming (such as `in`, `px`, and
+         * `pt`).
          * 
* * string unit = 2; @@ -1776,7 +1784,8 @@ public com.google.protobuf.ByteString getUnitBytes() { * * *
-         * Unit for the font size. Follows CSS naming (in, px, pt, etc.).
+         * Unit for the font size. Follows CSS naming (such as `in`, `px`, and
+         * `pt`).
          * 
* * string unit = 2; @@ -1797,7 +1806,8 @@ public Builder setUnit(java.lang.String value) { * * *
-         * Unit for the font size. Follows CSS naming (in, px, pt, etc.).
+         * Unit for the font size. Follows CSS naming (such as `in`, `px`, and
+         * `pt`).
          * 
* * string unit = 2; @@ -1814,7 +1824,8 @@ public Builder clearUnit() { * * *
-         * Unit for the font size. Follows CSS naming (in, px, pt, etc.).
+         * Unit for the font size. Follows CSS naming (such as `in`, `px`, and
+         * `pt`).
          * 
* * string unit = 2; @@ -2058,8 +2069,8 @@ public com.google.type.ColorOrBuilder getBackgroundColorOrBuilder() { * * *
-     * Font weight. Possible values are normal, bold, bolder, and lighter.
-     * https://www.w3schools.com/cssref/pr_font_weight.asp
+     * [Font weight](https://www.w3schools.com/cssref/pr_font_weight.asp).
+     * Possible values are `normal`, `bold`, `bolder`, and `lighter`.
      * 
* * string font_weight = 4; @@ -2082,8 +2093,8 @@ public java.lang.String getFontWeight() { * * *
-     * Font weight. Possible values are normal, bold, bolder, and lighter.
-     * https://www.w3schools.com/cssref/pr_font_weight.asp
+     * [Font weight](https://www.w3schools.com/cssref/pr_font_weight.asp).
+     * Possible values are `normal`, `bold`, `bolder`, and `lighter`.
      * 
* * string font_weight = 4; @@ -2111,8 +2122,8 @@ public com.google.protobuf.ByteString getFontWeightBytes() { * * *
-     * Text style. Possible values are normal, italic, and oblique.
-     * https://www.w3schools.com/cssref/pr_font_font-style.asp
+     * [Text style](https://www.w3schools.com/cssref/pr_font_font-style.asp).
+     * Possible values are `normal`, `italic`, and `oblique`.
      * 
* * string text_style = 5; @@ -2135,8 +2146,8 @@ public java.lang.String getTextStyle() { * * *
-     * Text style. Possible values are normal, italic, and oblique.
-     * https://www.w3schools.com/cssref/pr_font_font-style.asp
+     * [Text style](https://www.w3schools.com/cssref/pr_font_font-style.asp).
+     * Possible values are `normal`, `italic`, and `oblique`.
      * 
* * string text_style = 5; @@ -2164,9 +2175,10 @@ public com.google.protobuf.ByteString getTextStyleBytes() { * * *
-     * Text decoration. Follows CSS standard.
-     * <text-decoration-line> <text-decoration-color> <text-decoration-style>
-     * https://www.w3schools.com/cssref/pr_text_text-decoration.asp
+     * [Text
+     * decoration](https://www.w3schools.com/cssref/pr_text_text-decoration.asp).
+     * Follows CSS standard. <text-decoration-line> <text-decoration-color>
+     * <text-decoration-style>
      * 
* * string text_decoration = 6; @@ -2189,9 +2201,10 @@ public java.lang.String getTextDecoration() { * * *
-     * Text decoration. Follows CSS standard.
-     * <text-decoration-line> <text-decoration-color> <text-decoration-style>
-     * https://www.w3schools.com/cssref/pr_text_text-decoration.asp
+     * [Text
+     * decoration](https://www.w3schools.com/cssref/pr_text_text-decoration.asp).
+     * Follows CSS standard. <text-decoration-line> <text-decoration-color>
+     * <text-decoration-style>
      * 
* * string text_decoration = 6; @@ -3416,8 +3429,8 @@ public com.google.type.ColorOrBuilder getBackgroundColorOrBuilder() { * * *
-       * Font weight. Possible values are normal, bold, bolder, and lighter.
-       * https://www.w3schools.com/cssref/pr_font_weight.asp
+       * [Font weight](https://www.w3schools.com/cssref/pr_font_weight.asp).
+       * Possible values are `normal`, `bold`, `bolder`, and `lighter`.
        * 
* * string font_weight = 4; @@ -3439,8 +3452,8 @@ public java.lang.String getFontWeight() { * * *
-       * Font weight. Possible values are normal, bold, bolder, and lighter.
-       * https://www.w3schools.com/cssref/pr_font_weight.asp
+       * [Font weight](https://www.w3schools.com/cssref/pr_font_weight.asp).
+       * Possible values are `normal`, `bold`, `bolder`, and `lighter`.
        * 
* * string font_weight = 4; @@ -3462,8 +3475,8 @@ 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
+       * [Font weight](https://www.w3schools.com/cssref/pr_font_weight.asp).
+       * Possible values are `normal`, `bold`, `bolder`, and `lighter`.
        * 
* * string font_weight = 4; @@ -3484,8 +3497,8 @@ public Builder setFontWeight(java.lang.String value) { * * *
-       * Font weight. Possible values are normal, bold, bolder, and lighter.
-       * https://www.w3schools.com/cssref/pr_font_weight.asp
+       * [Font weight](https://www.w3schools.com/cssref/pr_font_weight.asp).
+       * Possible values are `normal`, `bold`, `bolder`, and `lighter`.
        * 
* * string font_weight = 4; @@ -3502,8 +3515,8 @@ public Builder clearFontWeight() { * * *
-       * Font weight. Possible values are normal, bold, bolder, and lighter.
-       * https://www.w3schools.com/cssref/pr_font_weight.asp
+       * [Font weight](https://www.w3schools.com/cssref/pr_font_weight.asp).
+       * Possible values are `normal`, `bold`, `bolder`, and `lighter`.
        * 
* * string font_weight = 4; @@ -3527,8 +3540,8 @@ public Builder setFontWeightBytes(com.google.protobuf.ByteString value) { * * *
-       * Text style. Possible values are normal, italic, and oblique.
-       * https://www.w3schools.com/cssref/pr_font_font-style.asp
+       * [Text style](https://www.w3schools.com/cssref/pr_font_font-style.asp).
+       * Possible values are `normal`, `italic`, and `oblique`.
        * 
* * string text_style = 5; @@ -3550,8 +3563,8 @@ public java.lang.String getTextStyle() { * * *
-       * Text style. Possible values are normal, italic, and oblique.
-       * https://www.w3schools.com/cssref/pr_font_font-style.asp
+       * [Text style](https://www.w3schools.com/cssref/pr_font_font-style.asp).
+       * Possible values are `normal`, `italic`, and `oblique`.
        * 
* * string text_style = 5; @@ -3573,8 +3586,8 @@ 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
+       * [Text style](https://www.w3schools.com/cssref/pr_font_font-style.asp).
+       * Possible values are `normal`, `italic`, and `oblique`.
        * 
* * string text_style = 5; @@ -3595,8 +3608,8 @@ public Builder setTextStyle(java.lang.String value) { * * *
-       * Text style. Possible values are normal, italic, and oblique.
-       * https://www.w3schools.com/cssref/pr_font_font-style.asp
+       * [Text style](https://www.w3schools.com/cssref/pr_font_font-style.asp).
+       * Possible values are `normal`, `italic`, and `oblique`.
        * 
* * string text_style = 5; @@ -3613,8 +3626,8 @@ public Builder clearTextStyle() { * * *
-       * Text style. Possible values are normal, italic, and oblique.
-       * https://www.w3schools.com/cssref/pr_font_font-style.asp
+       * [Text style](https://www.w3schools.com/cssref/pr_font_font-style.asp).
+       * Possible values are `normal`, `italic`, and `oblique`.
        * 
* * string text_style = 5; @@ -3638,9 +3651,10 @@ public Builder setTextStyleBytes(com.google.protobuf.ByteString value) { * * *
-       * Text decoration. Follows CSS standard.
-       * <text-decoration-line> <text-decoration-color> <text-decoration-style>
-       * https://www.w3schools.com/cssref/pr_text_text-decoration.asp
+       * [Text
+       * decoration](https://www.w3schools.com/cssref/pr_text_text-decoration.asp).
+       * Follows CSS standard. <text-decoration-line> <text-decoration-color>
+       * <text-decoration-style>
        * 
* * string text_decoration = 6; @@ -3662,9 +3676,10 @@ public java.lang.String getTextDecoration() { * * *
-       * Text decoration. Follows CSS standard.
-       * <text-decoration-line> <text-decoration-color> <text-decoration-style>
-       * https://www.w3schools.com/cssref/pr_text_text-decoration.asp
+       * [Text
+       * decoration](https://www.w3schools.com/cssref/pr_text_text-decoration.asp).
+       * Follows CSS standard. <text-decoration-line> <text-decoration-color>
+       * <text-decoration-style>
        * 
* * string text_decoration = 6; @@ -3686,9 +3701,10 @@ public com.google.protobuf.ByteString getTextDecorationBytes() { * * *
-       * Text decoration. Follows CSS standard.
-       * <text-decoration-line> <text-decoration-color> <text-decoration-style>
-       * https://www.w3schools.com/cssref/pr_text_text-decoration.asp
+       * [Text
+       * decoration](https://www.w3schools.com/cssref/pr_text_text-decoration.asp).
+       * Follows CSS standard. <text-decoration-line> <text-decoration-color>
+       * <text-decoration-style>
        * 
* * string text_decoration = 6; @@ -3709,9 +3725,10 @@ public Builder setTextDecoration(java.lang.String value) { * * *
-       * Text decoration. Follows CSS standard.
-       * <text-decoration-line> <text-decoration-color> <text-decoration-style>
-       * https://www.w3schools.com/cssref/pr_text_text-decoration.asp
+       * [Text
+       * decoration](https://www.w3schools.com/cssref/pr_text_text-decoration.asp).
+       * Follows CSS standard. <text-decoration-line> <text-decoration-color>
+       * <text-decoration-style>
        * 
* * string text_decoration = 6; @@ -3728,9 +3745,10 @@ public Builder clearTextDecoration() { * * *
-       * Text decoration. Follows CSS standard.
-       * <text-decoration-line> <text-decoration-color> <text-decoration-style>
-       * https://www.w3schools.com/cssref/pr_text_text-decoration.asp
+       * [Text
+       * decoration](https://www.w3schools.com/cssref/pr_text_text-decoration.asp).
+       * Follows CSS standard. <text-decoration-line> <text-decoration-color>
+       * <text-decoration-style>
        * 
* * string text_decoration = 6; @@ -4916,7 +4934,7 @@ com.google.cloud.documentai.v1beta3.Document.Page.DetectedBarcode getDetectedBar * * *
-     * Image Quality Scores.
+     * Image quality scores.
      * 
* * @@ -4930,7 +4948,7 @@ com.google.cloud.documentai.v1beta3.Document.Page.DetectedBarcode getDetectedBar * * *
-     * Image Quality Scores.
+     * Image quality scores.
      * 
* * @@ -4944,7 +4962,7 @@ com.google.cloud.documentai.v1beta3.Document.Page.DetectedBarcode getDetectedBar * * *
-     * Image Quality Scores.
+     * Image quality scores.
      * 
* * @@ -4966,7 +4984,7 @@ com.google.cloud.documentai.v1beta3.Document.Page.DetectedBarcode getDetectedBar * * * @deprecated google.cloud.documentai.v1beta3.Document.Page.provenance is deprecated. See - * google/cloud/documentai/v1beta3/document.proto;l=491 + * google/cloud/documentai/v1beta3/document.proto;l=551 * @return Whether the provenance field is set. */ @java.lang.Deprecated @@ -4983,7 +5001,7 @@ com.google.cloud.documentai.v1beta3.Document.Page.DetectedBarcode getDetectedBar *
* * @deprecated google.cloud.documentai.v1beta3.Document.Page.provenance is deprecated. See - * google/cloud/documentai/v1beta3/document.proto;l=491 + * google/cloud/documentai/v1beta3/document.proto;l=551 * @return The provenance. */ @java.lang.Deprecated @@ -5941,7 +5959,9 @@ public interface ImageOrBuilder * * *
-       * Encoding mime type for the image.
+       * Encoding [media type (MIME
+       * type)](https://www.iana.org/assignments/media-types/media-types.xhtml)
+       * for the image.
        * 
* * string mime_type = 2; @@ -5953,7 +5973,9 @@ public interface ImageOrBuilder * * *
-       * Encoding mime type for the image.
+       * Encoding [media type (MIME
+       * type)](https://www.iana.org/assignments/media-types/media-types.xhtml)
+       * for the image.
        * 
* * string mime_type = 2; @@ -6059,7 +6081,9 @@ public com.google.protobuf.ByteString getContent() { * * *
-       * Encoding mime type for the image.
+       * Encoding [media type (MIME
+       * type)](https://www.iana.org/assignments/media-types/media-types.xhtml)
+       * for the image.
        * 
* * string mime_type = 2; @@ -6082,7 +6106,9 @@ public java.lang.String getMimeType() { * * *
-       * Encoding mime type for the image.
+       * Encoding [media type (MIME
+       * type)](https://www.iana.org/assignments/media-types/media-types.xhtml)
+       * for the image.
        * 
* * string mime_type = 2; @@ -6611,7 +6637,9 @@ public Builder clearContent() { * * *
-         * Encoding mime type for the image.
+         * Encoding [media type (MIME
+         * type)](https://www.iana.org/assignments/media-types/media-types.xhtml)
+         * for the image.
          * 
* * string mime_type = 2; @@ -6633,7 +6661,9 @@ public java.lang.String getMimeType() { * * *
-         * Encoding mime type for the image.
+         * Encoding [media type (MIME
+         * type)](https://www.iana.org/assignments/media-types/media-types.xhtml)
+         * for the image.
          * 
* * string mime_type = 2; @@ -6655,7 +6685,9 @@ public com.google.protobuf.ByteString getMimeTypeBytes() { * * *
-         * Encoding mime type for the image.
+         * Encoding [media type (MIME
+         * type)](https://www.iana.org/assignments/media-types/media-types.xhtml)
+         * for the image.
          * 
* * string mime_type = 2; @@ -6676,7 +6708,9 @@ public Builder setMimeType(java.lang.String value) { * * *
-         * Encoding mime type for the image.
+         * Encoding [media type (MIME
+         * type)](https://www.iana.org/assignments/media-types/media-types.xhtml)
+         * for the image.
          * 
* * string mime_type = 2; @@ -6693,7 +6727,9 @@ public Builder clearMimeType() { * * *
-         * Encoding mime type for the image.
+         * Encoding [media type (MIME
+         * type)](https://www.iana.org/assignments/media-types/media-types.xhtml)
+         * for the image.
          * 
* * string mime_type = 2; @@ -9511,7 +9547,7 @@ com.google.cloud.documentai.v1beta3.Document.Page.DetectedLanguage getDetectedLa *
* * @deprecated google.cloud.documentai.v1beta3.Document.Page.Block.provenance is deprecated. - * See google/cloud/documentai/v1beta3/document.proto;l=203 + * See google/cloud/documentai/v1beta3/document.proto;l=207 * @return Whether the provenance field is set. */ @java.lang.Deprecated @@ -9528,7 +9564,7 @@ com.google.cloud.documentai.v1beta3.Document.Page.DetectedLanguage getDetectedLa * * * @deprecated google.cloud.documentai.v1beta3.Document.Page.Block.provenance is deprecated. - * See google/cloud/documentai/v1beta3/document.proto;l=203 + * See google/cloud/documentai/v1beta3/document.proto;l=207 * @return The provenance. */ @java.lang.Deprecated @@ -9746,7 +9782,7 @@ public int getDetectedLanguagesCount() { * * * @deprecated google.cloud.documentai.v1beta3.Document.Page.Block.provenance is deprecated. - * See google/cloud/documentai/v1beta3/document.proto;l=203 + * See google/cloud/documentai/v1beta3/document.proto;l=207 * @return Whether the provenance field is set. */ @java.lang.Override @@ -9766,7 +9802,7 @@ public boolean hasProvenance() { * * * @deprecated google.cloud.documentai.v1beta3.Document.Page.Block.provenance is deprecated. - * See google/cloud/documentai/v1beta3/document.proto;l=203 + * See google/cloud/documentai/v1beta3/document.proto;l=207 * @return The provenance. */ @java.lang.Override @@ -10889,7 +10925,7 @@ public Builder removeDetectedLanguages(int index) { * * * @deprecated google.cloud.documentai.v1beta3.Document.Page.Block.provenance is deprecated. - * See google/cloud/documentai/v1beta3/document.proto;l=203 + * See google/cloud/documentai/v1beta3/document.proto;l=207 * @return Whether the provenance field is set. */ @java.lang.Deprecated @@ -10908,7 +10944,7 @@ public boolean hasProvenance() { * * * @deprecated google.cloud.documentai.v1beta3.Document.Page.Block.provenance is deprecated. - * See google/cloud/documentai/v1beta3/document.proto;l=203 + * See google/cloud/documentai/v1beta3/document.proto;l=207 * @return The provenance. */ @java.lang.Deprecated @@ -11276,7 +11312,7 @@ com.google.cloud.documentai.v1beta3.Document.Page.DetectedLanguage getDetectedLa * * * @deprecated google.cloud.documentai.v1beta3.Document.Page.Paragraph.provenance is - * deprecated. See google/cloud/documentai/v1beta3/document.proto;l=216 + * deprecated. See google/cloud/documentai/v1beta3/document.proto;l=220 * @return Whether the provenance field is set. */ @java.lang.Deprecated @@ -11293,7 +11329,7 @@ com.google.cloud.documentai.v1beta3.Document.Page.DetectedLanguage getDetectedLa * * * @deprecated google.cloud.documentai.v1beta3.Document.Page.Paragraph.provenance is - * deprecated. See google/cloud/documentai/v1beta3/document.proto;l=216 + * deprecated. See google/cloud/documentai/v1beta3/document.proto;l=220 * @return The provenance. */ @java.lang.Deprecated @@ -11510,7 +11546,7 @@ public int getDetectedLanguagesCount() { * * * @deprecated google.cloud.documentai.v1beta3.Document.Page.Paragraph.provenance is - * deprecated. See google/cloud/documentai/v1beta3/document.proto;l=216 + * deprecated. See google/cloud/documentai/v1beta3/document.proto;l=220 * @return Whether the provenance field is set. */ @java.lang.Override @@ -11530,7 +11566,7 @@ public boolean hasProvenance() { * * * @deprecated google.cloud.documentai.v1beta3.Document.Page.Paragraph.provenance is - * deprecated. See google/cloud/documentai/v1beta3/document.proto;l=216 + * deprecated. See google/cloud/documentai/v1beta3/document.proto;l=220 * @return The provenance. */ @java.lang.Override @@ -12656,7 +12692,7 @@ public Builder removeDetectedLanguages(int index) { * * * @deprecated google.cloud.documentai.v1beta3.Document.Page.Paragraph.provenance is - * deprecated. See google/cloud/documentai/v1beta3/document.proto;l=216 + * deprecated. See google/cloud/documentai/v1beta3/document.proto;l=220 * @return Whether the provenance field is set. */ @java.lang.Deprecated @@ -12675,7 +12711,7 @@ public boolean hasProvenance() { * * * @deprecated google.cloud.documentai.v1beta3.Document.Page.Paragraph.provenance is - * deprecated. See google/cloud/documentai/v1beta3/document.proto;l=216 + * deprecated. See google/cloud/documentai/v1beta3/document.proto;l=220 * @return The provenance. */ @java.lang.Deprecated @@ -13046,7 +13082,7 @@ com.google.cloud.documentai.v1beta3.Document.Page.DetectedLanguage getDetectedLa * * * @deprecated google.cloud.documentai.v1beta3.Document.Page.Line.provenance is deprecated. - * See google/cloud/documentai/v1beta3/document.proto;l=230 + * See google/cloud/documentai/v1beta3/document.proto;l=234 * @return Whether the provenance field is set. */ @java.lang.Deprecated @@ -13063,7 +13099,7 @@ com.google.cloud.documentai.v1beta3.Document.Page.DetectedLanguage getDetectedLa * * * @deprecated google.cloud.documentai.v1beta3.Document.Page.Line.provenance is deprecated. - * See google/cloud/documentai/v1beta3/document.proto;l=230 + * See google/cloud/documentai/v1beta3/document.proto;l=234 * @return The provenance. */ @java.lang.Deprecated @@ -13281,7 +13317,7 @@ public int getDetectedLanguagesCount() { * * * @deprecated google.cloud.documentai.v1beta3.Document.Page.Line.provenance is deprecated. - * See google/cloud/documentai/v1beta3/document.proto;l=230 + * See google/cloud/documentai/v1beta3/document.proto;l=234 * @return Whether the provenance field is set. */ @java.lang.Override @@ -13301,7 +13337,7 @@ public boolean hasProvenance() { * * * @deprecated google.cloud.documentai.v1beta3.Document.Page.Line.provenance is deprecated. - * See google/cloud/documentai/v1beta3/document.proto;l=230 + * See google/cloud/documentai/v1beta3/document.proto;l=234 * @return The provenance. */ @java.lang.Override @@ -14424,7 +14460,7 @@ public Builder removeDetectedLanguages(int index) { * * * @deprecated google.cloud.documentai.v1beta3.Document.Page.Line.provenance is deprecated. - * See google/cloud/documentai/v1beta3/document.proto;l=230 + * See google/cloud/documentai/v1beta3/document.proto;l=234 * @return Whether the provenance field is set. */ @java.lang.Deprecated @@ -14443,7 +14479,7 @@ public boolean hasProvenance() { * * * @deprecated google.cloud.documentai.v1beta3.Document.Page.Line.provenance is deprecated. - * See google/cloud/documentai/v1beta3/document.proto;l=230 + * See google/cloud/documentai/v1beta3/document.proto;l=234 * @return The provenance. */ @java.lang.Deprecated @@ -14856,7 +14892,7 @@ com.google.cloud.documentai.v1beta3.Document.Page.DetectedLanguage getDetectedLa * * * @deprecated google.cloud.documentai.v1beta3.Document.Page.Token.provenance is deprecated. - * See google/cloud/documentai/v1beta3/document.proto;l=269 + * See google/cloud/documentai/v1beta3/document.proto;l=326 * @return Whether the provenance field is set. */ @java.lang.Deprecated @@ -14873,7 +14909,7 @@ com.google.cloud.documentai.v1beta3.Document.Page.DetectedLanguage getDetectedLa * * * @deprecated google.cloud.documentai.v1beta3.Document.Page.Token.provenance is deprecated. - * See google/cloud/documentai/v1beta3/document.proto;l=269 + * See google/cloud/documentai/v1beta3/document.proto;l=326 * @return The provenance. */ @java.lang.Deprecated @@ -14891,6 +14927,42 @@ com.google.cloud.documentai.v1beta3.Document.Page.DetectedLanguage getDetectedLa */ @java.lang.Deprecated com.google.cloud.documentai.v1beta3.Document.ProvenanceOrBuilder getProvenanceOrBuilder(); + + /** + * + * + *
+       * Text style attributes.
+       * 
+ * + * .google.cloud.documentai.v1beta3.Document.Page.Token.StyleInfo style_info = 5; + * + * @return Whether the styleInfo field is set. + */ + boolean hasStyleInfo(); + /** + * + * + *
+       * Text style attributes.
+       * 
+ * + * .google.cloud.documentai.v1beta3.Document.Page.Token.StyleInfo style_info = 5; + * + * @return The styleInfo. + */ + com.google.cloud.documentai.v1beta3.Document.Page.Token.StyleInfo getStyleInfo(); + /** + * + * + *
+       * Text style attributes.
+       * 
+ * + * .google.cloud.documentai.v1beta3.Document.Page.Token.StyleInfo style_info = 5; + */ + com.google.cloud.documentai.v1beta3.Document.Page.Token.StyleInfoOrBuilder + getStyleInfoOrBuilder(); } /** * @@ -15520,134 +15592,2639 @@ public Builder setField( return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.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.v1beta3.Document.Page.Token.DetectedBreak) { + return mergeFrom( + (com.google.cloud.documentai.v1beta3.Document.Page.Token.DetectedBreak) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.documentai.v1beta3.Document.Page.Token.DetectedBreak other) { + if (other + == com.google.cloud.documentai.v1beta3.Document.Page.Token.DetectedBreak + .getDefaultInstance()) return this; + if (other.type_ != 0) { + setTypeValue(other.getTypeValue()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + type_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private int type_ = 0; + /** + * + * + *
+           * Detected break type.
+           * 
+ * + * .google.cloud.documentai.v1beta3.Document.Page.Token.DetectedBreak.Type type = 1; + * + * + * @return The enum numeric value on the wire for type. + */ + @java.lang.Override + public int getTypeValue() { + return type_; + } + /** + * + * + *
+           * Detected break type.
+           * 
+ * + * .google.cloud.documentai.v1beta3.Document.Page.Token.DetectedBreak.Type type = 1; + * + * + * @param value The enum numeric value on the wire for type to set. + * @return This builder for chaining. + */ + public Builder setTypeValue(int value) { + type_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+           * Detected break type.
+           * 
+ * + * .google.cloud.documentai.v1beta3.Document.Page.Token.DetectedBreak.Type type = 1; + * + * + * @return The type. + */ + @java.lang.Override + public com.google.cloud.documentai.v1beta3.Document.Page.Token.DetectedBreak.Type + getType() { + com.google.cloud.documentai.v1beta3.Document.Page.Token.DetectedBreak.Type result = + com.google.cloud.documentai.v1beta3.Document.Page.Token.DetectedBreak.Type + .forNumber(type_); + return result == null + ? com.google.cloud.documentai.v1beta3.Document.Page.Token.DetectedBreak.Type + .UNRECOGNIZED + : result; + } + /** + * + * + *
+           * Detected break type.
+           * 
+ * + * .google.cloud.documentai.v1beta3.Document.Page.Token.DetectedBreak.Type type = 1; + * + * + * @param value The type to set. + * @return This builder for chaining. + */ + public Builder setType( + com.google.cloud.documentai.v1beta3.Document.Page.Token.DetectedBreak.Type value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + type_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+           * Detected break type.
+           * 
+ * + * .google.cloud.documentai.v1beta3.Document.Page.Token.DetectedBreak.Type type = 1; + * + * + * @return This builder for chaining. + */ + public Builder clearType() { + bitField0_ = (bitField0_ & ~0x00000001); + type_ = 0; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.documentai.v1beta3.Document.Page.Token.DetectedBreak) + } + + // @@protoc_insertion_point(class_scope:google.cloud.documentai.v1beta3.Document.Page.Token.DetectedBreak) + private static final com.google.cloud.documentai.v1beta3.Document.Page.Token.DetectedBreak + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.documentai.v1beta3.Document.Page.Token.DetectedBreak(); + } + + public static com.google.cloud.documentai.v1beta3.Document.Page.Token.DetectedBreak + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DetectedBreak parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.documentai.v1beta3.Document.Page.Token.DetectedBreak + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface StyleInfoOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.documentai.v1beta3.Document.Page.Token.StyleInfo) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+         * Font size in points (`1` point is `¹⁄₇₂` inches).
+         * 
+ * + * int32 font_size = 1; + * + * @return The fontSize. + */ + int getFontSize(); + + /** + * + * + *
+         * Font size in pixels, equal to _unrounded
+         * [font_size][google.cloud.documentai.v1beta3.Document.Page.Token.StyleInfo.font_size]_
+         * * _resolution_ ÷ `72.0`.
+         * 
+ * + * double pixel_font_size = 2; + * + * @return The pixelFontSize. + */ + double getPixelFontSize(); + + /** + * + * + *
+         * Letter spacing in points.
+         * 
+ * + * double letter_spacing = 3; + * + * @return The letterSpacing. + */ + double getLetterSpacing(); + + /** + * + * + *
+         * Name or style of the font.
+         * 
+ * + * string font_type = 4; + * + * @return The fontType. + */ + java.lang.String getFontType(); + /** + * + * + *
+         * Name or style of the font.
+         * 
+ * + * string font_type = 4; + * + * @return The bytes for fontType. + */ + com.google.protobuf.ByteString getFontTypeBytes(); + + /** + * + * + *
+         * Whether the text is bold (equivalent to
+         * [font_weight][google.cloud.documentai.v1beta3.Document.Page.Token.StyleInfo.font_weight]
+         * is at least `700`).
+         * 
+ * + * bool bold = 5; + * + * @return The bold. + */ + boolean getBold(); + + /** + * + * + *
+         * Whether the text is italic.
+         * 
+ * + * bool italic = 6; + * + * @return The italic. + */ + boolean getItalic(); + + /** + * + * + *
+         * Whether the text is underlined.
+         * 
+ * + * bool underlined = 7; + * + * @return The underlined. + */ + boolean getUnderlined(); + + /** + * + * + *
+         * Whether the text is strikethrough.
+         * 
+ * + * bool strikeout = 8; + * + * @return The strikeout. + */ + boolean getStrikeout(); + + /** + * + * + *
+         * Whether the text is a subscript.
+         * 
+ * + * bool subscript = 9; + * + * @return The subscript. + */ + boolean getSubscript(); + + /** + * + * + *
+         * Whether the text is a superscript.
+         * 
+ * + * bool superscript = 10; + * + * @return The superscript. + */ + boolean getSuperscript(); + + /** + * + * + *
+         * Whether the text is in small caps.
+         * 
+ * + * bool smallcaps = 11; + * + * @return The smallcaps. + */ + boolean getSmallcaps(); + + /** + * + * + *
+         * TrueType weight on a scale `100` (thin) to `1000` (ultra-heavy).
+         * Normal is `400`, bold is `700`.
+         * 
+ * + * int32 font_weight = 12; + * + * @return The fontWeight. + */ + int getFontWeight(); + + /** + * + * + *
+         * Whether the text is handwritten.
+         * 
+ * + * bool handwritten = 13; + * + * @return The handwritten. + */ + boolean getHandwritten(); + + /** + * + * + *
+         * Color of the text.
+         * 
+ * + * .google.type.Color text_color = 14; + * + * @return Whether the textColor field is set. + */ + boolean hasTextColor(); + /** + * + * + *
+         * Color of the text.
+         * 
+ * + * .google.type.Color text_color = 14; + * + * @return The textColor. + */ + com.google.type.Color getTextColor(); + /** + * + * + *
+         * Color of the text.
+         * 
+ * + * .google.type.Color text_color = 14; + */ + com.google.type.ColorOrBuilder getTextColorOrBuilder(); + + /** + * + * + *
+         * Color of the background.
+         * 
+ * + * .google.type.Color background_color = 15; + * + * @return Whether the backgroundColor field is set. + */ + boolean hasBackgroundColor(); + /** + * + * + *
+         * Color of the background.
+         * 
+ * + * .google.type.Color background_color = 15; + * + * @return The backgroundColor. + */ + com.google.type.Color getBackgroundColor(); + /** + * + * + *
+         * Color of the background.
+         * 
+ * + * .google.type.Color background_color = 15; + */ + com.google.type.ColorOrBuilder getBackgroundColorOrBuilder(); + } + /** + * + * + *
+       * Font and other text style attributes.
+       * 
+ * + * Protobuf type {@code google.cloud.documentai.v1beta3.Document.Page.Token.StyleInfo} + */ + public static final class StyleInfo extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.documentai.v1beta3.Document.Page.Token.StyleInfo) + StyleInfoOrBuilder { + private static final long serialVersionUID = 0L; + // Use StyleInfo.newBuilder() to construct. + private StyleInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private StyleInfo() { + fontType_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new StyleInfo(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.documentai.v1beta3.DocumentProto + .internal_static_google_cloud_documentai_v1beta3_Document_Page_Token_StyleInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.documentai.v1beta3.DocumentProto + .internal_static_google_cloud_documentai_v1beta3_Document_Page_Token_StyleInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.documentai.v1beta3.Document.Page.Token.StyleInfo.class, + com.google.cloud.documentai.v1beta3.Document.Page.Token.StyleInfo.Builder.class); + } + + public static final int FONT_SIZE_FIELD_NUMBER = 1; + private int fontSize_ = 0; + /** + * + * + *
+         * Font size in points (`1` point is `¹⁄₇₂` inches).
+         * 
+ * + * int32 font_size = 1; + * + * @return The fontSize. + */ + @java.lang.Override + public int getFontSize() { + return fontSize_; + } + + public static final int PIXEL_FONT_SIZE_FIELD_NUMBER = 2; + private double pixelFontSize_ = 0D; + /** + * + * + *
+         * Font size in pixels, equal to _unrounded
+         * [font_size][google.cloud.documentai.v1beta3.Document.Page.Token.StyleInfo.font_size]_
+         * * _resolution_ ÷ `72.0`.
+         * 
+ * + * double pixel_font_size = 2; + * + * @return The pixelFontSize. + */ + @java.lang.Override + public double getPixelFontSize() { + return pixelFontSize_; + } + + public static final int LETTER_SPACING_FIELD_NUMBER = 3; + private double letterSpacing_ = 0D; + /** + * + * + *
+         * Letter spacing in points.
+         * 
+ * + * double letter_spacing = 3; + * + * @return The letterSpacing. + */ + @java.lang.Override + public double getLetterSpacing() { + return letterSpacing_; + } + + public static final int FONT_TYPE_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object fontType_ = ""; + /** + * + * + *
+         * Name or style of the font.
+         * 
+ * + * string font_type = 4; + * + * @return The fontType. + */ + @java.lang.Override + public java.lang.String getFontType() { + java.lang.Object ref = fontType_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + fontType_ = s; + return s; + } + } + /** + * + * + *
+         * Name or style of the font.
+         * 
+ * + * string font_type = 4; + * + * @return The bytes for fontType. + */ + @java.lang.Override + public com.google.protobuf.ByteString getFontTypeBytes() { + java.lang.Object ref = fontType_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + fontType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int BOLD_FIELD_NUMBER = 5; + private boolean bold_ = false; + /** + * + * + *
+         * Whether the text is bold (equivalent to
+         * [font_weight][google.cloud.documentai.v1beta3.Document.Page.Token.StyleInfo.font_weight]
+         * is at least `700`).
+         * 
+ * + * bool bold = 5; + * + * @return The bold. + */ + @java.lang.Override + public boolean getBold() { + return bold_; + } + + public static final int ITALIC_FIELD_NUMBER = 6; + private boolean italic_ = false; + /** + * + * + *
+         * Whether the text is italic.
+         * 
+ * + * bool italic = 6; + * + * @return The italic. + */ + @java.lang.Override + public boolean getItalic() { + return italic_; + } + + public static final int UNDERLINED_FIELD_NUMBER = 7; + private boolean underlined_ = false; + /** + * + * + *
+         * Whether the text is underlined.
+         * 
+ * + * bool underlined = 7; + * + * @return The underlined. + */ + @java.lang.Override + public boolean getUnderlined() { + return underlined_; + } + + public static final int STRIKEOUT_FIELD_NUMBER = 8; + private boolean strikeout_ = false; + /** + * + * + *
+         * Whether the text is strikethrough.
+         * 
+ * + * bool strikeout = 8; + * + * @return The strikeout. + */ + @java.lang.Override + public boolean getStrikeout() { + return strikeout_; + } + + public static final int SUBSCRIPT_FIELD_NUMBER = 9; + private boolean subscript_ = false; + /** + * + * + *
+         * Whether the text is a subscript.
+         * 
+ * + * bool subscript = 9; + * + * @return The subscript. + */ + @java.lang.Override + public boolean getSubscript() { + return subscript_; + } + + public static final int SUPERSCRIPT_FIELD_NUMBER = 10; + private boolean superscript_ = false; + /** + * + * + *
+         * Whether the text is a superscript.
+         * 
+ * + * bool superscript = 10; + * + * @return The superscript. + */ + @java.lang.Override + public boolean getSuperscript() { + return superscript_; + } + + public static final int SMALLCAPS_FIELD_NUMBER = 11; + private boolean smallcaps_ = false; + /** + * + * + *
+         * Whether the text is in small caps.
+         * 
+ * + * bool smallcaps = 11; + * + * @return The smallcaps. + */ + @java.lang.Override + public boolean getSmallcaps() { + return smallcaps_; + } + + public static final int FONT_WEIGHT_FIELD_NUMBER = 12; + private int fontWeight_ = 0; + /** + * + * + *
+         * TrueType weight on a scale `100` (thin) to `1000` (ultra-heavy).
+         * Normal is `400`, bold is `700`.
+         * 
+ * + * int32 font_weight = 12; + * + * @return The fontWeight. + */ + @java.lang.Override + public int getFontWeight() { + return fontWeight_; + } + + public static final int HANDWRITTEN_FIELD_NUMBER = 13; + private boolean handwritten_ = false; + /** + * + * + *
+         * Whether the text is handwritten.
+         * 
+ * + * bool handwritten = 13; + * + * @return The handwritten. + */ + @java.lang.Override + public boolean getHandwritten() { + return handwritten_; + } + + public static final int TEXT_COLOR_FIELD_NUMBER = 14; + private com.google.type.Color textColor_; + /** + * + * + *
+         * Color of the text.
+         * 
+ * + * .google.type.Color text_color = 14; + * + * @return Whether the textColor field is set. + */ + @java.lang.Override + public boolean hasTextColor() { + return textColor_ != null; + } + /** + * + * + *
+         * Color of the text.
+         * 
+ * + * .google.type.Color text_color = 14; + * + * @return The textColor. + */ + @java.lang.Override + public com.google.type.Color getTextColor() { + return textColor_ == null ? com.google.type.Color.getDefaultInstance() : textColor_; + } + /** + * + * + *
+         * Color of the text.
+         * 
+ * + * .google.type.Color text_color = 14; + */ + @java.lang.Override + public com.google.type.ColorOrBuilder getTextColorOrBuilder() { + return textColor_ == null ? com.google.type.Color.getDefaultInstance() : textColor_; + } + + public static final int BACKGROUND_COLOR_FIELD_NUMBER = 15; + private com.google.type.Color backgroundColor_; + /** + * + * + *
+         * Color of the background.
+         * 
+ * + * .google.type.Color background_color = 15; + * + * @return Whether the backgroundColor field is set. + */ + @java.lang.Override + public boolean hasBackgroundColor() { + return backgroundColor_ != null; + } + /** + * + * + *
+         * Color of the background.
+         * 
+ * + * .google.type.Color background_color = 15; + * + * @return The backgroundColor. + */ + @java.lang.Override + public com.google.type.Color getBackgroundColor() { + return backgroundColor_ == null + ? com.google.type.Color.getDefaultInstance() + : backgroundColor_; + } + /** + * + * + *
+         * Color of the background.
+         * 
+ * + * .google.type.Color background_color = 15; + */ + @java.lang.Override + public com.google.type.ColorOrBuilder getBackgroundColorOrBuilder() { + return backgroundColor_ == null + ? com.google.type.Color.getDefaultInstance() + : backgroundColor_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (fontSize_ != 0) { + output.writeInt32(1, fontSize_); + } + if (java.lang.Double.doubleToRawLongBits(pixelFontSize_) != 0) { + output.writeDouble(2, pixelFontSize_); + } + if (java.lang.Double.doubleToRawLongBits(letterSpacing_) != 0) { + output.writeDouble(3, letterSpacing_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(fontType_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, fontType_); + } + if (bold_ != false) { + output.writeBool(5, bold_); + } + if (italic_ != false) { + output.writeBool(6, italic_); + } + if (underlined_ != false) { + output.writeBool(7, underlined_); + } + if (strikeout_ != false) { + output.writeBool(8, strikeout_); + } + if (subscript_ != false) { + output.writeBool(9, subscript_); + } + if (superscript_ != false) { + output.writeBool(10, superscript_); + } + if (smallcaps_ != false) { + output.writeBool(11, smallcaps_); + } + if (fontWeight_ != 0) { + output.writeInt32(12, fontWeight_); + } + if (handwritten_ != false) { + output.writeBool(13, handwritten_); + } + if (textColor_ != null) { + output.writeMessage(14, getTextColor()); + } + if (backgroundColor_ != null) { + output.writeMessage(15, getBackgroundColor()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (fontSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(1, fontSize_); + } + if (java.lang.Double.doubleToRawLongBits(pixelFontSize_) != 0) { + size += com.google.protobuf.CodedOutputStream.computeDoubleSize(2, pixelFontSize_); + } + if (java.lang.Double.doubleToRawLongBits(letterSpacing_) != 0) { + size += com.google.protobuf.CodedOutputStream.computeDoubleSize(3, letterSpacing_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(fontType_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, fontType_); + } + if (bold_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(5, bold_); + } + if (italic_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(6, italic_); + } + if (underlined_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(7, underlined_); + } + if (strikeout_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(8, strikeout_); + } + if (subscript_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(9, subscript_); + } + if (superscript_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(10, superscript_); + } + if (smallcaps_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(11, smallcaps_); + } + if (fontWeight_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(12, fontWeight_); + } + if (handwritten_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(13, handwritten_); + } + if (textColor_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(14, getTextColor()); + } + if (backgroundColor_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(15, getBackgroundColor()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.documentai.v1beta3.Document.Page.Token.StyleInfo)) { + return super.equals(obj); + } + com.google.cloud.documentai.v1beta3.Document.Page.Token.StyleInfo other = + (com.google.cloud.documentai.v1beta3.Document.Page.Token.StyleInfo) obj; + + if (getFontSize() != other.getFontSize()) return false; + if (java.lang.Double.doubleToLongBits(getPixelFontSize()) + != java.lang.Double.doubleToLongBits(other.getPixelFontSize())) return false; + if (java.lang.Double.doubleToLongBits(getLetterSpacing()) + != java.lang.Double.doubleToLongBits(other.getLetterSpacing())) return false; + if (!getFontType().equals(other.getFontType())) return false; + if (getBold() != other.getBold()) return false; + if (getItalic() != other.getItalic()) return false; + if (getUnderlined() != other.getUnderlined()) return false; + if (getStrikeout() != other.getStrikeout()) return false; + if (getSubscript() != other.getSubscript()) return false; + if (getSuperscript() != other.getSuperscript()) return false; + if (getSmallcaps() != other.getSmallcaps()) return false; + if (getFontWeight() != other.getFontWeight()) return false; + if (getHandwritten() != other.getHandwritten()) return false; + if (hasTextColor() != other.hasTextColor()) return false; + if (hasTextColor()) { + if (!getTextColor().equals(other.getTextColor())) return false; + } + if (hasBackgroundColor() != other.hasBackgroundColor()) return false; + if (hasBackgroundColor()) { + if (!getBackgroundColor().equals(other.getBackgroundColor())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + FONT_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getFontSize(); + hash = (37 * hash) + PIXEL_FONT_SIZE_FIELD_NUMBER; + hash = + (53 * hash) + + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getPixelFontSize())); + hash = (37 * hash) + LETTER_SPACING_FIELD_NUMBER; + hash = + (53 * hash) + + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getLetterSpacing())); + hash = (37 * hash) + FONT_TYPE_FIELD_NUMBER; + hash = (53 * hash) + getFontType().hashCode(); + hash = (37 * hash) + BOLD_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getBold()); + hash = (37 * hash) + ITALIC_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getItalic()); + hash = (37 * hash) + UNDERLINED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getUnderlined()); + hash = (37 * hash) + STRIKEOUT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getStrikeout()); + hash = (37 * hash) + SUBSCRIPT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getSubscript()); + hash = (37 * hash) + SUPERSCRIPT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getSuperscript()); + hash = (37 * hash) + SMALLCAPS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getSmallcaps()); + hash = (37 * hash) + FONT_WEIGHT_FIELD_NUMBER; + hash = (53 * hash) + getFontWeight(); + hash = (37 * hash) + HANDWRITTEN_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getHandwritten()); + if (hasTextColor()) { + hash = (37 * hash) + TEXT_COLOR_FIELD_NUMBER; + hash = (53 * hash) + getTextColor().hashCode(); + } + if (hasBackgroundColor()) { + hash = (37 * hash) + BACKGROUND_COLOR_FIELD_NUMBER; + hash = (53 * hash) + getBackgroundColor().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.documentai.v1beta3.Document.Page.Token.StyleInfo parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.documentai.v1beta3.Document.Page.Token.StyleInfo 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.v1beta3.Document.Page.Token.StyleInfo parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.documentai.v1beta3.Document.Page.Token.StyleInfo parseFrom( + com.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.v1beta3.Document.Page.Token.StyleInfo parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.documentai.v1beta3.Document.Page.Token.StyleInfo parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.documentai.v1beta3.Document.Page.Token.StyleInfo parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.documentai.v1beta3.Document.Page.Token.StyleInfo 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.v1beta3.Document.Page.Token.StyleInfo + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input); + } + + public static com.google.cloud.documentai.v1beta3.Document.Page.Token.StyleInfo + 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.v1beta3.Document.Page.Token.StyleInfo parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.documentai.v1beta3.Document.Page.Token.StyleInfo 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 static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.documentai.v1beta3.Document.Page.Token.StyleInfo prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+         * Font and other text style attributes.
+         * 
+ * + * Protobuf type {@code google.cloud.documentai.v1beta3.Document.Page.Token.StyleInfo} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.documentai.v1beta3.Document.Page.Token.StyleInfo) + com.google.cloud.documentai.v1beta3.Document.Page.Token.StyleInfoOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.documentai.v1beta3.DocumentProto + .internal_static_google_cloud_documentai_v1beta3_Document_Page_Token_StyleInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.documentai.v1beta3.DocumentProto + .internal_static_google_cloud_documentai_v1beta3_Document_Page_Token_StyleInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.documentai.v1beta3.Document.Page.Token.StyleInfo.class, + com.google.cloud.documentai.v1beta3.Document.Page.Token.StyleInfo.Builder + .class); + } + + // Construct using + // com.google.cloud.documentai.v1beta3.Document.Page.Token.StyleInfo.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + fontSize_ = 0; + pixelFontSize_ = 0D; + letterSpacing_ = 0D; + fontType_ = ""; + bold_ = false; + italic_ = false; + underlined_ = false; + strikeout_ = false; + subscript_ = false; + superscript_ = false; + smallcaps_ = false; + fontWeight_ = 0; + handwritten_ = false; + textColor_ = null; + if (textColorBuilder_ != null) { + textColorBuilder_.dispose(); + textColorBuilder_ = null; + } + backgroundColor_ = null; + if (backgroundColorBuilder_ != null) { + backgroundColorBuilder_.dispose(); + backgroundColorBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.documentai.v1beta3.DocumentProto + .internal_static_google_cloud_documentai_v1beta3_Document_Page_Token_StyleInfo_descriptor; + } + + @java.lang.Override + public com.google.cloud.documentai.v1beta3.Document.Page.Token.StyleInfo + getDefaultInstanceForType() { + return com.google.cloud.documentai.v1beta3.Document.Page.Token.StyleInfo + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.documentai.v1beta3.Document.Page.Token.StyleInfo build() { + com.google.cloud.documentai.v1beta3.Document.Page.Token.StyleInfo result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.documentai.v1beta3.Document.Page.Token.StyleInfo buildPartial() { + com.google.cloud.documentai.v1beta3.Document.Page.Token.StyleInfo result = + new com.google.cloud.documentai.v1beta3.Document.Page.Token.StyleInfo(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.documentai.v1beta3.Document.Page.Token.StyleInfo result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.fontSize_ = fontSize_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.pixelFontSize_ = pixelFontSize_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.letterSpacing_ = letterSpacing_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.fontType_ = fontType_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.bold_ = bold_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.italic_ = italic_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.underlined_ = underlined_; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.strikeout_ = strikeout_; + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.subscript_ = subscript_; + } + if (((from_bitField0_ & 0x00000200) != 0)) { + result.superscript_ = superscript_; + } + if (((from_bitField0_ & 0x00000400) != 0)) { + result.smallcaps_ = smallcaps_; + } + if (((from_bitField0_ & 0x00000800) != 0)) { + result.fontWeight_ = fontWeight_; + } + if (((from_bitField0_ & 0x00001000) != 0)) { + result.handwritten_ = handwritten_; + } + if (((from_bitField0_ & 0x00002000) != 0)) { + result.textColor_ = + textColorBuilder_ == null ? textColor_ : textColorBuilder_.build(); + } + if (((from_bitField0_ & 0x00004000) != 0)) { + result.backgroundColor_ = + backgroundColorBuilder_ == null + ? backgroundColor_ + : backgroundColorBuilder_.build(); + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.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.v1beta3.Document.Page.Token.StyleInfo) { + return mergeFrom( + (com.google.cloud.documentai.v1beta3.Document.Page.Token.StyleInfo) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.documentai.v1beta3.Document.Page.Token.StyleInfo other) { + if (other + == com.google.cloud.documentai.v1beta3.Document.Page.Token.StyleInfo + .getDefaultInstance()) return this; + if (other.getFontSize() != 0) { + setFontSize(other.getFontSize()); + } + if (other.getPixelFontSize() != 0D) { + setPixelFontSize(other.getPixelFontSize()); + } + if (other.getLetterSpacing() != 0D) { + setLetterSpacing(other.getLetterSpacing()); + } + if (!other.getFontType().isEmpty()) { + fontType_ = other.fontType_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (other.getBold() != false) { + setBold(other.getBold()); + } + if (other.getItalic() != false) { + setItalic(other.getItalic()); + } + if (other.getUnderlined() != false) { + setUnderlined(other.getUnderlined()); + } + if (other.getStrikeout() != false) { + setStrikeout(other.getStrikeout()); + } + if (other.getSubscript() != false) { + setSubscript(other.getSubscript()); + } + if (other.getSuperscript() != false) { + setSuperscript(other.getSuperscript()); + } + if (other.getSmallcaps() != false) { + setSmallcaps(other.getSmallcaps()); + } + if (other.getFontWeight() != 0) { + setFontWeight(other.getFontWeight()); + } + if (other.getHandwritten() != false) { + setHandwritten(other.getHandwritten()); + } + if (other.hasTextColor()) { + mergeTextColor(other.getTextColor()); + } + if (other.hasBackgroundColor()) { + mergeBackgroundColor(other.getBackgroundColor()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + fontSize_ = input.readInt32(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 17: + { + pixelFontSize_ = input.readDouble(); + bitField0_ |= 0x00000002; + break; + } // case 17 + case 25: + { + letterSpacing_ = input.readDouble(); + bitField0_ |= 0x00000004; + break; + } // case 25 + case 34: + { + fontType_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 40: + { + bold_ = input.readBool(); + bitField0_ |= 0x00000010; + break; + } // case 40 + case 48: + { + italic_ = input.readBool(); + bitField0_ |= 0x00000020; + break; + } // case 48 + case 56: + { + underlined_ = input.readBool(); + bitField0_ |= 0x00000040; + break; + } // case 56 + case 64: + { + strikeout_ = input.readBool(); + bitField0_ |= 0x00000080; + break; + } // case 64 + case 72: + { + subscript_ = input.readBool(); + bitField0_ |= 0x00000100; + break; + } // case 72 + case 80: + { + superscript_ = input.readBool(); + bitField0_ |= 0x00000200; + break; + } // case 80 + case 88: + { + smallcaps_ = input.readBool(); + bitField0_ |= 0x00000400; + break; + } // case 88 + case 96: + { + fontWeight_ = input.readInt32(); + bitField0_ |= 0x00000800; + break; + } // case 96 + case 104: + { + handwritten_ = input.readBool(); + bitField0_ |= 0x00001000; + break; + } // case 104 + case 114: + { + input.readMessage(getTextColorFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00002000; + break; + } // case 114 + case 122: + { + input.readMessage( + getBackgroundColorFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00004000; + break; + } // case 122 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private int fontSize_; + /** + * + * + *
+           * Font size in points (`1` point is `¹⁄₇₂` inches).
+           * 
+ * + * int32 font_size = 1; + * + * @return The fontSize. + */ + @java.lang.Override + public int getFontSize() { + return fontSize_; + } + /** + * + * + *
+           * Font size in points (`1` point is `¹⁄₇₂` inches).
+           * 
+ * + * int32 font_size = 1; + * + * @param value The fontSize to set. + * @return This builder for chaining. + */ + public Builder setFontSize(int value) { + + fontSize_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+           * Font size in points (`1` point is `¹⁄₇₂` inches).
+           * 
+ * + * int32 font_size = 1; + * + * @return This builder for chaining. + */ + public Builder clearFontSize() { + bitField0_ = (bitField0_ & ~0x00000001); + fontSize_ = 0; + onChanged(); + return this; + } + + private double pixelFontSize_; + /** + * + * + *
+           * Font size in pixels, equal to _unrounded
+           * [font_size][google.cloud.documentai.v1beta3.Document.Page.Token.StyleInfo.font_size]_
+           * * _resolution_ ÷ `72.0`.
+           * 
+ * + * double pixel_font_size = 2; + * + * @return The pixelFontSize. + */ + @java.lang.Override + public double getPixelFontSize() { + return pixelFontSize_; + } + /** + * + * + *
+           * Font size in pixels, equal to _unrounded
+           * [font_size][google.cloud.documentai.v1beta3.Document.Page.Token.StyleInfo.font_size]_
+           * * _resolution_ ÷ `72.0`.
+           * 
+ * + * double pixel_font_size = 2; + * + * @param value The pixelFontSize to set. + * @return This builder for chaining. + */ + public Builder setPixelFontSize(double value) { + + pixelFontSize_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+           * Font size in pixels, equal to _unrounded
+           * [font_size][google.cloud.documentai.v1beta3.Document.Page.Token.StyleInfo.font_size]_
+           * * _resolution_ ÷ `72.0`.
+           * 
+ * + * double pixel_font_size = 2; + * + * @return This builder for chaining. + */ + public Builder clearPixelFontSize() { + bitField0_ = (bitField0_ & ~0x00000002); + pixelFontSize_ = 0D; + onChanged(); + return this; + } + + private double letterSpacing_; + /** + * + * + *
+           * Letter spacing in points.
+           * 
+ * + * double letter_spacing = 3; + * + * @return The letterSpacing. + */ + @java.lang.Override + public double getLetterSpacing() { + return letterSpacing_; + } + /** + * + * + *
+           * Letter spacing in points.
+           * 
+ * + * double letter_spacing = 3; + * + * @param value The letterSpacing to set. + * @return This builder for chaining. + */ + public Builder setLetterSpacing(double value) { + + letterSpacing_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+           * Letter spacing in points.
+           * 
+ * + * double letter_spacing = 3; + * + * @return This builder for chaining. + */ + public Builder clearLetterSpacing() { + bitField0_ = (bitField0_ & ~0x00000004); + letterSpacing_ = 0D; + onChanged(); + return this; + } + + private java.lang.Object fontType_ = ""; + /** + * + * + *
+           * Name or style of the font.
+           * 
+ * + * string font_type = 4; + * + * @return The fontType. + */ + public java.lang.String getFontType() { + java.lang.Object ref = fontType_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + fontType_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+           * Name or style of the font.
+           * 
+ * + * string font_type = 4; + * + * @return The bytes for fontType. + */ + public com.google.protobuf.ByteString getFontTypeBytes() { + java.lang.Object ref = fontType_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + fontType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+           * Name or style of the font.
+           * 
+ * + * string font_type = 4; + * + * @param value The fontType to set. + * @return This builder for chaining. + */ + public Builder setFontType(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + fontType_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+           * Name or style of the font.
+           * 
+ * + * string font_type = 4; + * + * @return This builder for chaining. + */ + public Builder clearFontType() { + fontType_ = getDefaultInstance().getFontType(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + * + * + *
+           * Name or style of the font.
+           * 
+ * + * string font_type = 4; + * + * @param value The bytes for fontType to set. + * @return This builder for chaining. + */ + public Builder setFontTypeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + fontType_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private boolean bold_; + /** + * + * + *
+           * Whether the text is bold (equivalent to
+           * [font_weight][google.cloud.documentai.v1beta3.Document.Page.Token.StyleInfo.font_weight]
+           * is at least `700`).
+           * 
+ * + * bool bold = 5; + * + * @return The bold. + */ + @java.lang.Override + public boolean getBold() { + return bold_; + } + /** + * + * + *
+           * Whether the text is bold (equivalent to
+           * [font_weight][google.cloud.documentai.v1beta3.Document.Page.Token.StyleInfo.font_weight]
+           * is at least `700`).
+           * 
+ * + * bool bold = 5; + * + * @param value The bold to set. + * @return This builder for chaining. + */ + public Builder setBold(boolean value) { + + bold_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
+           * Whether the text is bold (equivalent to
+           * [font_weight][google.cloud.documentai.v1beta3.Document.Page.Token.StyleInfo.font_weight]
+           * is at least `700`).
+           * 
+ * + * bool bold = 5; + * + * @return This builder for chaining. + */ + public Builder clearBold() { + bitField0_ = (bitField0_ & ~0x00000010); + bold_ = false; + onChanged(); + return this; + } + + private boolean italic_; + /** + * + * + *
+           * Whether the text is italic.
+           * 
+ * + * bool italic = 6; + * + * @return The italic. + */ + @java.lang.Override + public boolean getItalic() { + return italic_; + } + /** + * + * + *
+           * Whether the text is italic.
+           * 
+ * + * bool italic = 6; + * + * @param value The italic to set. + * @return This builder for chaining. + */ + public Builder setItalic(boolean value) { + + italic_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + * + * + *
+           * Whether the text is italic.
+           * 
+ * + * bool italic = 6; + * + * @return This builder for chaining. + */ + public Builder clearItalic() { + bitField0_ = (bitField0_ & ~0x00000020); + italic_ = false; + onChanged(); + return this; + } + + private boolean underlined_; + /** + * + * + *
+           * Whether the text is underlined.
+           * 
+ * + * bool underlined = 7; + * + * @return The underlined. + */ + @java.lang.Override + public boolean getUnderlined() { + return underlined_; + } + /** + * + * + *
+           * Whether the text is underlined.
+           * 
+ * + * bool underlined = 7; + * + * @param value The underlined to set. + * @return This builder for chaining. + */ + public Builder setUnderlined(boolean value) { + + underlined_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + /** + * + * + *
+           * Whether the text is underlined.
+           * 
+ * + * bool underlined = 7; + * + * @return This builder for chaining. + */ + public Builder clearUnderlined() { + bitField0_ = (bitField0_ & ~0x00000040); + underlined_ = false; + onChanged(); + return this; + } + + private boolean strikeout_; + /** + * + * + *
+           * Whether the text is strikethrough.
+           * 
+ * + * bool strikeout = 8; + * + * @return The strikeout. + */ + @java.lang.Override + public boolean getStrikeout() { + return strikeout_; + } + /** + * + * + *
+           * Whether the text is strikethrough.
+           * 
+ * + * bool strikeout = 8; + * + * @param value The strikeout to set. + * @return This builder for chaining. + */ + public Builder setStrikeout(boolean value) { + + strikeout_ = value; + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + /** + * + * + *
+           * Whether the text is strikethrough.
+           * 
+ * + * bool strikeout = 8; + * + * @return This builder for chaining. + */ + public Builder clearStrikeout() { + bitField0_ = (bitField0_ & ~0x00000080); + strikeout_ = false; + onChanged(); + return this; + } + + private boolean subscript_; + /** + * + * + *
+           * Whether the text is a subscript.
+           * 
+ * + * bool subscript = 9; + * + * @return The subscript. + */ + @java.lang.Override + public boolean getSubscript() { + return subscript_; + } + /** + * + * + *
+           * Whether the text is a subscript.
+           * 
+ * + * bool subscript = 9; + * + * @param value The subscript to set. + * @return This builder for chaining. + */ + public Builder setSubscript(boolean value) { + + subscript_ = value; + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + /** + * + * + *
+           * Whether the text is a subscript.
+           * 
+ * + * bool subscript = 9; + * + * @return This builder for chaining. + */ + public Builder clearSubscript() { + bitField0_ = (bitField0_ & ~0x00000100); + subscript_ = false; + onChanged(); + return this; + } + + private boolean superscript_; + /** + * + * + *
+           * Whether the text is a superscript.
+           * 
+ * + * bool superscript = 10; + * + * @return The superscript. + */ + @java.lang.Override + public boolean getSuperscript() { + return superscript_; + } + /** + * + * + *
+           * Whether the text is a superscript.
+           * 
+ * + * bool superscript = 10; + * + * @param value The superscript to set. + * @return This builder for chaining. + */ + public Builder setSuperscript(boolean value) { + + superscript_ = value; + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + /** + * + * + *
+           * Whether the text is a superscript.
+           * 
+ * + * bool superscript = 10; + * + * @return This builder for chaining. + */ + public Builder clearSuperscript() { + bitField0_ = (bitField0_ & ~0x00000200); + superscript_ = false; + onChanged(); + return this; + } + + private boolean smallcaps_; + /** + * + * + *
+           * Whether the text is in small caps.
+           * 
+ * + * bool smallcaps = 11; + * + * @return The smallcaps. + */ + @java.lang.Override + public boolean getSmallcaps() { + return smallcaps_; + } + /** + * + * + *
+           * Whether the text is in small caps.
+           * 
+ * + * bool smallcaps = 11; + * + * @param value The smallcaps to set. + * @return This builder for chaining. + */ + public Builder setSmallcaps(boolean value) { + + smallcaps_ = value; + bitField0_ |= 0x00000400; + onChanged(); + return this; + } + /** + * + * + *
+           * Whether the text is in small caps.
+           * 
+ * + * bool smallcaps = 11; + * + * @return This builder for chaining. + */ + public Builder clearSmallcaps() { + bitField0_ = (bitField0_ & ~0x00000400); + smallcaps_ = false; + onChanged(); + return this; + } + + private int fontWeight_; + /** + * + * + *
+           * TrueType weight on a scale `100` (thin) to `1000` (ultra-heavy).
+           * Normal is `400`, bold is `700`.
+           * 
+ * + * int32 font_weight = 12; + * + * @return The fontWeight. + */ + @java.lang.Override + public int getFontWeight() { + return fontWeight_; + } + /** + * + * + *
+           * TrueType weight on a scale `100` (thin) to `1000` (ultra-heavy).
+           * Normal is `400`, bold is `700`.
+           * 
+ * + * int32 font_weight = 12; + * + * @param value The fontWeight to set. + * @return This builder for chaining. + */ + public Builder setFontWeight(int value) { + + fontWeight_ = value; + bitField0_ |= 0x00000800; + onChanged(); + return this; + } + /** + * + * + *
+           * TrueType weight on a scale `100` (thin) to `1000` (ultra-heavy).
+           * Normal is `400`, bold is `700`.
+           * 
+ * + * int32 font_weight = 12; + * + * @return This builder for chaining. + */ + public Builder clearFontWeight() { + bitField0_ = (bitField0_ & ~0x00000800); + fontWeight_ = 0; + onChanged(); + return this; + } + + private boolean handwritten_; + /** + * + * + *
+           * Whether the text is handwritten.
+           * 
+ * + * bool handwritten = 13; + * + * @return The handwritten. + */ + @java.lang.Override + public boolean getHandwritten() { + return handwritten_; + } + /** + * + * + *
+           * Whether the text is handwritten.
+           * 
+ * + * bool handwritten = 13; + * + * @param value The handwritten to set. + * @return This builder for chaining. + */ + public Builder setHandwritten(boolean value) { + + handwritten_ = value; + bitField0_ |= 0x00001000; + onChanged(); + return this; + } + /** + * + * + *
+           * Whether the text is handwritten.
+           * 
+ * + * bool handwritten = 13; + * + * @return This builder for chaining. + */ + public Builder clearHandwritten() { + bitField0_ = (bitField0_ & ~0x00001000); + handwritten_ = false; + onChanged(); + return this; + } + + private com.google.type.Color textColor_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Color, + com.google.type.Color.Builder, + com.google.type.ColorOrBuilder> + textColorBuilder_; + /** + * + * + *
+           * Color of the text.
+           * 
+ * + * .google.type.Color text_color = 14; + * + * @return Whether the textColor field is set. + */ + public boolean hasTextColor() { + return ((bitField0_ & 0x00002000) != 0); } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); + /** + * + * + *
+           * Color of the text.
+           * 
+ * + * .google.type.Color text_color = 14; + * + * @return The textColor. + */ + public com.google.type.Color getTextColor() { + if (textColorBuilder_ == null) { + return textColor_ == null ? com.google.type.Color.getDefaultInstance() : textColor_; + } else { + return textColorBuilder_.getMessage(); + } } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { - return super.setRepeatedField(field, index, value); + /** + * + * + *
+           * Color of the text.
+           * 
+ * + * .google.type.Color text_color = 14; + */ + public Builder setTextColor(com.google.type.Color value) { + if (textColorBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + textColor_ = value; + } else { + textColorBuilder_.setMessage(value); + } + bitField0_ |= 0x00002000; + onChanged(); + return this; } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); + /** + * + * + *
+           * Color of the text.
+           * 
+ * + * .google.type.Color text_color = 14; + */ + public Builder setTextColor(com.google.type.Color.Builder builderForValue) { + if (textColorBuilder_ == null) { + textColor_ = builderForValue.build(); + } else { + textColorBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00002000; + onChanged(); + return this; } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other - instanceof com.google.cloud.documentai.v1beta3.Document.Page.Token.DetectedBreak) { - return mergeFrom( - (com.google.cloud.documentai.v1beta3.Document.Page.Token.DetectedBreak) other); + /** + * + * + *
+           * Color of the text.
+           * 
+ * + * .google.type.Color text_color = 14; + */ + public Builder mergeTextColor(com.google.type.Color value) { + if (textColorBuilder_ == null) { + if (((bitField0_ & 0x00002000) != 0) + && textColor_ != null + && textColor_ != com.google.type.Color.getDefaultInstance()) { + getTextColorBuilder().mergeFrom(value); + } else { + textColor_ = value; + } } else { - super.mergeFrom(other); - return this; + textColorBuilder_.mergeFrom(value); } + bitField0_ |= 0x00002000; + onChanged(); + return this; } - - public Builder mergeFrom( - com.google.cloud.documentai.v1beta3.Document.Page.Token.DetectedBreak other) { - if (other - == com.google.cloud.documentai.v1beta3.Document.Page.Token.DetectedBreak - .getDefaultInstance()) return this; - if (other.type_ != 0) { - setTypeValue(other.getTypeValue()); + /** + * + * + *
+           * Color of the text.
+           * 
+ * + * .google.type.Color text_color = 14; + */ + public Builder clearTextColor() { + bitField0_ = (bitField0_ & ~0x00002000); + textColor_ = null; + if (textColorBuilder_ != null) { + textColorBuilder_.dispose(); + textColorBuilder_ = null; } - this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } - - @java.lang.Override - public final boolean isInitialized() { - return true; + /** + * + * + *
+           * Color of the text.
+           * 
+ * + * .google.type.Color text_color = 14; + */ + public com.google.type.Color.Builder getTextColorBuilder() { + bitField0_ |= 0x00002000; + onChanged(); + return getTextColorFieldBuilder().getBuilder(); } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); + /** + * + * + *
+           * Color of the text.
+           * 
+ * + * .google.type.Color text_color = 14; + */ + public com.google.type.ColorOrBuilder getTextColorOrBuilder() { + if (textColorBuilder_ != null) { + return textColorBuilder_.getMessageOrBuilder(); + } else { + return textColor_ == null ? com.google.type.Color.getDefaultInstance() : textColor_; } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: - { - type_ = input.readEnum(); - bitField0_ |= 0x00000001; - break; - } // case 8 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; + } + /** + * + * + *
+           * Color of the text.
+           * 
+ * + * .google.type.Color text_color = 14; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Color, + com.google.type.Color.Builder, + com.google.type.ColorOrBuilder> + getTextColorFieldBuilder() { + if (textColorBuilder_ == null) { + textColorBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Color, + com.google.type.Color.Builder, + com.google.type.ColorOrBuilder>( + getTextColor(), getParentForChildren(), isClean()); + textColor_ = null; + } + return textColorBuilder_; } - private int bitField0_; - - private int type_ = 0; + 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_; /** * * *
-           * Detected break type.
+           * Color of the background.
            * 
* - * .google.cloud.documentai.v1beta3.Document.Page.Token.DetectedBreak.Type type = 1; - * + * .google.type.Color background_color = 15; * - * @return The enum numeric value on the wire for type. + * @return Whether the backgroundColor field is set. */ - @java.lang.Override - public int getTypeValue() { - return type_; + public boolean hasBackgroundColor() { + return ((bitField0_ & 0x00004000) != 0); } /** * * *
-           * Detected break type.
+           * Color of the background.
            * 
* - * .google.cloud.documentai.v1beta3.Document.Page.Token.DetectedBreak.Type type = 1; - * + * .google.type.Color background_color = 15; * - * @param value The enum numeric value on the wire for type to set. - * @return This builder for chaining. + * @return The backgroundColor. */ - public Builder setTypeValue(int value) { - type_ = value; - bitField0_ |= 0x00000001; + public com.google.type.Color getBackgroundColor() { + if (backgroundColorBuilder_ == null) { + return backgroundColor_ == null + ? com.google.type.Color.getDefaultInstance() + : backgroundColor_; + } else { + return backgroundColorBuilder_.getMessage(); + } + } + /** + * + * + *
+           * Color of the background.
+           * 
+ * + * .google.type.Color background_color = 15; + */ + public Builder setBackgroundColor(com.google.type.Color value) { + if (backgroundColorBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + backgroundColor_ = value; + } else { + backgroundColorBuilder_.setMessage(value); + } + bitField0_ |= 0x00004000; onChanged(); return this; } @@ -15655,45 +18232,43 @@ public Builder setTypeValue(int value) { * * *
-           * Detected break type.
+           * Color of the background.
            * 
* - * .google.cloud.documentai.v1beta3.Document.Page.Token.DetectedBreak.Type type = 1; - * - * - * @return The type. + * .google.type.Color background_color = 15; */ - @java.lang.Override - public com.google.cloud.documentai.v1beta3.Document.Page.Token.DetectedBreak.Type - getType() { - com.google.cloud.documentai.v1beta3.Document.Page.Token.DetectedBreak.Type result = - com.google.cloud.documentai.v1beta3.Document.Page.Token.DetectedBreak.Type - .forNumber(type_); - return result == null - ? com.google.cloud.documentai.v1beta3.Document.Page.Token.DetectedBreak.Type - .UNRECOGNIZED - : result; + public Builder setBackgroundColor(com.google.type.Color.Builder builderForValue) { + if (backgroundColorBuilder_ == null) { + backgroundColor_ = builderForValue.build(); + } else { + backgroundColorBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00004000; + onChanged(); + return this; } /** * * *
-           * Detected break type.
+           * Color of the background.
            * 
* - * .google.cloud.documentai.v1beta3.Document.Page.Token.DetectedBreak.Type type = 1; - * - * - * @param value The type to set. - * @return This builder for chaining. + * .google.type.Color background_color = 15; */ - public Builder setType( - com.google.cloud.documentai.v1beta3.Document.Page.Token.DetectedBreak.Type value) { - if (value == null) { - throw new NullPointerException(); + public Builder mergeBackgroundColor(com.google.type.Color value) { + if (backgroundColorBuilder_ == null) { + if (((bitField0_ & 0x00004000) != 0) + && backgroundColor_ != null + && backgroundColor_ != com.google.type.Color.getDefaultInstance()) { + getBackgroundColorBuilder().mergeFrom(value); + } else { + backgroundColor_ = value; + } + } else { + backgroundColorBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000001; - type_ = value.getNumber(); + bitField0_ |= 0x00004000; onChanged(); return this; } @@ -15701,20 +18276,78 @@ public Builder setType( * * *
-           * Detected break type.
+           * Color of the background.
            * 
* - * .google.cloud.documentai.v1beta3.Document.Page.Token.DetectedBreak.Type type = 1; - * - * - * @return This builder for chaining. + * .google.type.Color background_color = 15; */ - public Builder clearType() { - bitField0_ = (bitField0_ & ~0x00000001); - type_ = 0; + public Builder clearBackgroundColor() { + bitField0_ = (bitField0_ & ~0x00004000); + backgroundColor_ = null; + if (backgroundColorBuilder_ != null) { + backgroundColorBuilder_.dispose(); + backgroundColorBuilder_ = null; + } onChanged(); return this; } + /** + * + * + *
+           * Color of the background.
+           * 
+ * + * .google.type.Color background_color = 15; + */ + public com.google.type.Color.Builder getBackgroundColorBuilder() { + bitField0_ |= 0x00004000; + onChanged(); + return getBackgroundColorFieldBuilder().getBuilder(); + } + /** + * + * + *
+           * Color of the background.
+           * 
+ * + * .google.type.Color background_color = 15; + */ + public com.google.type.ColorOrBuilder getBackgroundColorOrBuilder() { + if (backgroundColorBuilder_ != null) { + return backgroundColorBuilder_.getMessageOrBuilder(); + } else { + return backgroundColor_ == null + ? com.google.type.Color.getDefaultInstance() + : backgroundColor_; + } + } + /** + * + * + *
+           * Color of the background.
+           * 
+ * + * .google.type.Color background_color = 15; + */ + private com.google.protobuf.SingleFieldBuilderV3< + 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()); + backgroundColor_ = null; + } + return backgroundColorBuilder_; + } @java.lang.Override public final Builder setUnknownFields( @@ -15728,27 +18361,27 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.documentai.v1beta3.Document.Page.Token.DetectedBreak) + // @@protoc_insertion_point(builder_scope:google.cloud.documentai.v1beta3.Document.Page.Token.StyleInfo) } - // @@protoc_insertion_point(class_scope:google.cloud.documentai.v1beta3.Document.Page.Token.DetectedBreak) - private static final com.google.cloud.documentai.v1beta3.Document.Page.Token.DetectedBreak + // @@protoc_insertion_point(class_scope:google.cloud.documentai.v1beta3.Document.Page.Token.StyleInfo) + private static final com.google.cloud.documentai.v1beta3.Document.Page.Token.StyleInfo DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = - new com.google.cloud.documentai.v1beta3.Document.Page.Token.DetectedBreak(); + new com.google.cloud.documentai.v1beta3.Document.Page.Token.StyleInfo(); } - public static com.google.cloud.documentai.v1beta3.Document.Page.Token.DetectedBreak + public static com.google.cloud.documentai.v1beta3.Document.Page.Token.StyleInfo getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { @java.lang.Override - public DetectedBreak parsePartialFrom( + public StyleInfo parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { @@ -15768,17 +18401,17 @@ public DetectedBreak parsePartialFrom( } }; - public static com.google.protobuf.Parser parser() { + public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override - public com.google.protobuf.Parser getParserForType() { + public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override - public com.google.cloud.documentai.v1beta3.Document.Page.Token.DetectedBreak + public com.google.cloud.documentai.v1beta3.Document.Page.Token.StyleInfo getDefaultInstanceForType() { return DEFAULT_INSTANCE; } @@ -16001,7 +18634,7 @@ public int getDetectedLanguagesCount() { * * * @deprecated google.cloud.documentai.v1beta3.Document.Page.Token.provenance is deprecated. - * See google/cloud/documentai/v1beta3/document.proto;l=269 + * See google/cloud/documentai/v1beta3/document.proto;l=326 * @return Whether the provenance field is set. */ @java.lang.Override @@ -16021,7 +18654,7 @@ public boolean hasProvenance() { * * * @deprecated google.cloud.documentai.v1beta3.Document.Page.Token.provenance is deprecated. - * See google/cloud/documentai/v1beta3/document.proto;l=269 + * See google/cloud/documentai/v1beta3/document.proto;l=326 * @return The provenance. */ @java.lang.Override @@ -16051,6 +18684,57 @@ public com.google.cloud.documentai.v1beta3.Document.Provenance getProvenance() { : provenance_; } + public static final int STYLE_INFO_FIELD_NUMBER = 5; + private com.google.cloud.documentai.v1beta3.Document.Page.Token.StyleInfo styleInfo_; + /** + * + * + *
+       * Text style attributes.
+       * 
+ * + * .google.cloud.documentai.v1beta3.Document.Page.Token.StyleInfo style_info = 5; + * + * @return Whether the styleInfo field is set. + */ + @java.lang.Override + public boolean hasStyleInfo() { + return styleInfo_ != null; + } + /** + * + * + *
+       * Text style attributes.
+       * 
+ * + * .google.cloud.documentai.v1beta3.Document.Page.Token.StyleInfo style_info = 5; + * + * @return The styleInfo. + */ + @java.lang.Override + public com.google.cloud.documentai.v1beta3.Document.Page.Token.StyleInfo getStyleInfo() { + return styleInfo_ == null + ? com.google.cloud.documentai.v1beta3.Document.Page.Token.StyleInfo.getDefaultInstance() + : styleInfo_; + } + /** + * + * + *
+       * Text style attributes.
+       * 
+ * + * .google.cloud.documentai.v1beta3.Document.Page.Token.StyleInfo style_info = 5; + */ + @java.lang.Override + public com.google.cloud.documentai.v1beta3.Document.Page.Token.StyleInfoOrBuilder + getStyleInfoOrBuilder() { + return styleInfo_ == null + ? com.google.cloud.documentai.v1beta3.Document.Page.Token.StyleInfo.getDefaultInstance() + : styleInfo_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -16077,6 +18761,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (provenance_ != null) { output.writeMessage(4, getProvenance()); } + if (styleInfo_ != null) { + output.writeMessage(5, getStyleInfo()); + } getUnknownFields().writeTo(output); } @@ -16100,6 +18787,9 @@ public int getSerializedSize() { if (provenance_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getProvenance()); } + if (styleInfo_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getStyleInfo()); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -16129,6 +18819,10 @@ public boolean equals(final java.lang.Object obj) { if (hasProvenance()) { if (!getProvenance().equals(other.getProvenance())) return false; } + if (hasStyleInfo() != other.hasStyleInfo()) return false; + if (hasStyleInfo()) { + if (!getStyleInfo().equals(other.getStyleInfo())) return false; + } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -16156,6 +18850,10 @@ public int hashCode() { hash = (37 * hash) + PROVENANCE_FIELD_NUMBER; hash = (53 * hash) + getProvenance().hashCode(); } + if (hasStyleInfo()) { + hash = (37 * hash) + STYLE_INFO_FIELD_NUMBER; + hash = (53 * hash) + getStyleInfo().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -16320,6 +19018,11 @@ public Builder clear() { provenanceBuilder_.dispose(); provenanceBuilder_ = null; } + styleInfo_ = null; + if (styleInfoBuilder_ != null) { + styleInfoBuilder_.dispose(); + styleInfoBuilder_ = null; + } return this; } @@ -16381,6 +19084,9 @@ private void buildPartial0(com.google.cloud.documentai.v1beta3.Document.Page.Tok result.provenance_ = provenanceBuilder_ == null ? provenance_ : provenanceBuilder_.build(); } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.styleInfo_ = styleInfoBuilder_ == null ? styleInfo_ : styleInfoBuilder_.build(); + } } @java.lang.Override @@ -16467,6 +19173,9 @@ public Builder mergeFrom(com.google.cloud.documentai.v1beta3.Document.Page.Token if (other.hasProvenance()) { mergeProvenance(other.getProvenance()); } + if (other.hasStyleInfo()) { + mergeStyleInfo(other.getStyleInfo()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -16527,6 +19236,12 @@ public Builder mergeFrom( bitField0_ |= 0x00000008; break; } // case 34 + case 42: + { + input.readMessage(getStyleInfoFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 42 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -17398,7 +20113,7 @@ public Builder removeDetectedLanguages(int index) { * * * @deprecated google.cloud.documentai.v1beta3.Document.Page.Token.provenance is deprecated. - * See google/cloud/documentai/v1beta3/document.proto;l=269 + * See google/cloud/documentai/v1beta3/document.proto;l=326 * @return Whether the provenance field is set. */ @java.lang.Deprecated @@ -17417,7 +20132,7 @@ public boolean hasProvenance() { * * * @deprecated google.cloud.documentai.v1beta3.Document.Page.Token.provenance is deprecated. - * See google/cloud/documentai/v1beta3/document.proto;l=269 + * See google/cloud/documentai/v1beta3/document.proto;l=326 * @return The provenance. */ @java.lang.Deprecated @@ -17600,6 +20315,208 @@ public Builder clearProvenance() { return provenanceBuilder_; } + private com.google.cloud.documentai.v1beta3.Document.Page.Token.StyleInfo styleInfo_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.documentai.v1beta3.Document.Page.Token.StyleInfo, + com.google.cloud.documentai.v1beta3.Document.Page.Token.StyleInfo.Builder, + com.google.cloud.documentai.v1beta3.Document.Page.Token.StyleInfoOrBuilder> + styleInfoBuilder_; + /** + * + * + *
+         * Text style attributes.
+         * 
+ * + * .google.cloud.documentai.v1beta3.Document.Page.Token.StyleInfo style_info = 5; + * + * + * @return Whether the styleInfo field is set. + */ + public boolean hasStyleInfo() { + return ((bitField0_ & 0x00000010) != 0); + } + /** + * + * + *
+         * Text style attributes.
+         * 
+ * + * .google.cloud.documentai.v1beta3.Document.Page.Token.StyleInfo style_info = 5; + * + * + * @return The styleInfo. + */ + public com.google.cloud.documentai.v1beta3.Document.Page.Token.StyleInfo getStyleInfo() { + if (styleInfoBuilder_ == null) { + return styleInfo_ == null + ? com.google.cloud.documentai.v1beta3.Document.Page.Token.StyleInfo + .getDefaultInstance() + : styleInfo_; + } else { + return styleInfoBuilder_.getMessage(); + } + } + /** + * + * + *
+         * Text style attributes.
+         * 
+ * + * .google.cloud.documentai.v1beta3.Document.Page.Token.StyleInfo style_info = 5; + * + */ + public Builder setStyleInfo( + com.google.cloud.documentai.v1beta3.Document.Page.Token.StyleInfo value) { + if (styleInfoBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + styleInfo_ = value; + } else { + styleInfoBuilder_.setMessage(value); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
+         * Text style attributes.
+         * 
+ * + * .google.cloud.documentai.v1beta3.Document.Page.Token.StyleInfo style_info = 5; + * + */ + public Builder setStyleInfo( + com.google.cloud.documentai.v1beta3.Document.Page.Token.StyleInfo.Builder + builderForValue) { + if (styleInfoBuilder_ == null) { + styleInfo_ = builderForValue.build(); + } else { + styleInfoBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
+         * Text style attributes.
+         * 
+ * + * .google.cloud.documentai.v1beta3.Document.Page.Token.StyleInfo style_info = 5; + * + */ + public Builder mergeStyleInfo( + com.google.cloud.documentai.v1beta3.Document.Page.Token.StyleInfo value) { + if (styleInfoBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0) + && styleInfo_ != null + && styleInfo_ + != com.google.cloud.documentai.v1beta3.Document.Page.Token.StyleInfo + .getDefaultInstance()) { + getStyleInfoBuilder().mergeFrom(value); + } else { + styleInfo_ = value; + } + } else { + styleInfoBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
+         * Text style attributes.
+         * 
+ * + * .google.cloud.documentai.v1beta3.Document.Page.Token.StyleInfo style_info = 5; + * + */ + public Builder clearStyleInfo() { + bitField0_ = (bitField0_ & ~0x00000010); + styleInfo_ = null; + if (styleInfoBuilder_ != null) { + styleInfoBuilder_.dispose(); + styleInfoBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+         * Text style attributes.
+         * 
+ * + * .google.cloud.documentai.v1beta3.Document.Page.Token.StyleInfo style_info = 5; + * + */ + public com.google.cloud.documentai.v1beta3.Document.Page.Token.StyleInfo.Builder + getStyleInfoBuilder() { + bitField0_ |= 0x00000010; + onChanged(); + return getStyleInfoFieldBuilder().getBuilder(); + } + /** + * + * + *
+         * Text style attributes.
+         * 
+ * + * .google.cloud.documentai.v1beta3.Document.Page.Token.StyleInfo style_info = 5; + * + */ + public com.google.cloud.documentai.v1beta3.Document.Page.Token.StyleInfoOrBuilder + getStyleInfoOrBuilder() { + if (styleInfoBuilder_ != null) { + return styleInfoBuilder_.getMessageOrBuilder(); + } else { + return styleInfo_ == null + ? com.google.cloud.documentai.v1beta3.Document.Page.Token.StyleInfo + .getDefaultInstance() + : styleInfo_; + } + } + /** + * + * + *
+         * Text style attributes.
+         * 
+ * + * .google.cloud.documentai.v1beta3.Document.Page.Token.StyleInfo style_info = 5; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.documentai.v1beta3.Document.Page.Token.StyleInfo, + com.google.cloud.documentai.v1beta3.Document.Page.Token.StyleInfo.Builder, + com.google.cloud.documentai.v1beta3.Document.Page.Token.StyleInfoOrBuilder> + getStyleInfoFieldBuilder() { + if (styleInfoBuilder_ == null) { + styleInfoBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.documentai.v1beta3.Document.Page.Token.StyleInfo, + com.google.cloud.documentai.v1beta3.Document.Page.Token.StyleInfo.Builder, + com.google.cloud.documentai.v1beta3.Document.Page.Token.StyleInfoOrBuilder>( + getStyleInfo(), getParentForChildren(), isClean()); + styleInfo_ = null; + } + return styleInfoBuilder_; + } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -20937,10 +23854,15 @@ com.google.cloud.documentai.v1beta3.Document.Page.DetectedLanguage getDetectedLa * The history of this table. *
* - * .google.cloud.documentai.v1beta3.Document.Provenance provenance = 5; + * + * .google.cloud.documentai.v1beta3.Document.Provenance provenance = 5 [deprecated = true]; + * * + * @deprecated google.cloud.documentai.v1beta3.Document.Page.Table.provenance is deprecated. + * See google/cloud/documentai/v1beta3/document.proto;l=395 * @return Whether the provenance field is set. */ + @java.lang.Deprecated boolean hasProvenance(); /** * @@ -20949,10 +23871,15 @@ com.google.cloud.documentai.v1beta3.Document.Page.DetectedLanguage getDetectedLa * The history of this table. *
* - * .google.cloud.documentai.v1beta3.Document.Provenance provenance = 5; + * + * .google.cloud.documentai.v1beta3.Document.Provenance provenance = 5 [deprecated = true]; + * * + * @deprecated google.cloud.documentai.v1beta3.Document.Page.Table.provenance is deprecated. + * See google/cloud/documentai/v1beta3/document.proto;l=395 * @return The provenance. */ + @java.lang.Deprecated com.google.cloud.documentai.v1beta3.Document.Provenance getProvenance(); /** * @@ -20961,8 +23888,11 @@ com.google.cloud.documentai.v1beta3.Document.Page.DetectedLanguage getDetectedLa * The history of this table. *
* - * .google.cloud.documentai.v1beta3.Document.Provenance provenance = 5; + * + * .google.cloud.documentai.v1beta3.Document.Provenance provenance = 5 [deprecated = true]; + * */ + @java.lang.Deprecated com.google.cloud.documentai.v1beta3.Document.ProvenanceOrBuilder getProvenanceOrBuilder(); } /** @@ -24040,11 +26970,16 @@ public int getDetectedLanguagesCount() { * The history of this table. *
* - * .google.cloud.documentai.v1beta3.Document.Provenance provenance = 5; + * + * .google.cloud.documentai.v1beta3.Document.Provenance provenance = 5 [deprecated = true]; + * * + * @deprecated google.cloud.documentai.v1beta3.Document.Page.Table.provenance is deprecated. + * See google/cloud/documentai/v1beta3/document.proto;l=395 * @return Whether the provenance field is set. */ @java.lang.Override + @java.lang.Deprecated public boolean hasProvenance() { return provenance_ != null; } @@ -24055,11 +26990,16 @@ public boolean hasProvenance() { * The history of this table. *
* - * .google.cloud.documentai.v1beta3.Document.Provenance provenance = 5; + * + * .google.cloud.documentai.v1beta3.Document.Provenance provenance = 5 [deprecated = true]; + * * + * @deprecated google.cloud.documentai.v1beta3.Document.Page.Table.provenance is deprecated. + * See google/cloud/documentai/v1beta3/document.proto;l=395 * @return The provenance. */ @java.lang.Override + @java.lang.Deprecated public com.google.cloud.documentai.v1beta3.Document.Provenance getProvenance() { return provenance_ == null ? com.google.cloud.documentai.v1beta3.Document.Provenance.getDefaultInstance() @@ -24072,9 +27012,12 @@ public com.google.cloud.documentai.v1beta3.Document.Provenance getProvenance() { * The history of this table. *
* - * .google.cloud.documentai.v1beta3.Document.Provenance provenance = 5; + * + * .google.cloud.documentai.v1beta3.Document.Provenance provenance = 5 [deprecated = true]; + * */ @java.lang.Override + @java.lang.Deprecated public com.google.cloud.documentai.v1beta3.Document.ProvenanceOrBuilder getProvenanceOrBuilder() { return provenance_ == null @@ -26132,10 +29075,15 @@ public Builder removeDetectedLanguages(int index) { * The history of this table. *
* - * .google.cloud.documentai.v1beta3.Document.Provenance provenance = 5; + * + * .google.cloud.documentai.v1beta3.Document.Provenance provenance = 5 [deprecated = true]; + * * + * @deprecated google.cloud.documentai.v1beta3.Document.Page.Table.provenance is deprecated. + * See google/cloud/documentai/v1beta3/document.proto;l=395 * @return Whether the provenance field is set. */ + @java.lang.Deprecated public boolean hasProvenance() { return ((bitField0_ & 0x00000010) != 0); } @@ -26146,10 +29094,15 @@ public boolean hasProvenance() { * The history of this table. *
* - * .google.cloud.documentai.v1beta3.Document.Provenance provenance = 5; + * + * .google.cloud.documentai.v1beta3.Document.Provenance provenance = 5 [deprecated = true]; + * * + * @deprecated google.cloud.documentai.v1beta3.Document.Page.Table.provenance is deprecated. + * See google/cloud/documentai/v1beta3/document.proto;l=395 * @return The provenance. */ + @java.lang.Deprecated public com.google.cloud.documentai.v1beta3.Document.Provenance getProvenance() { if (provenanceBuilder_ == null) { return provenance_ == null @@ -26166,8 +29119,11 @@ public com.google.cloud.documentai.v1beta3.Document.Provenance getProvenance() { * The history of this table. *
* - * .google.cloud.documentai.v1beta3.Document.Provenance provenance = 5; + * + * .google.cloud.documentai.v1beta3.Document.Provenance provenance = 5 [deprecated = true]; + * */ + @java.lang.Deprecated public Builder setProvenance( com.google.cloud.documentai.v1beta3.Document.Provenance value) { if (provenanceBuilder_ == null) { @@ -26189,8 +29145,11 @@ public Builder setProvenance( * The history of this table. * * - * .google.cloud.documentai.v1beta3.Document.Provenance provenance = 5; + * + * .google.cloud.documentai.v1beta3.Document.Provenance provenance = 5 [deprecated = true]; + * */ + @java.lang.Deprecated public Builder setProvenance( com.google.cloud.documentai.v1beta3.Document.Provenance.Builder builderForValue) { if (provenanceBuilder_ == null) { @@ -26209,8 +29168,11 @@ public Builder setProvenance( * The history of this table. * * - * .google.cloud.documentai.v1beta3.Document.Provenance provenance = 5; + * + * .google.cloud.documentai.v1beta3.Document.Provenance provenance = 5 [deprecated = true]; + * */ + @java.lang.Deprecated public Builder mergeProvenance( com.google.cloud.documentai.v1beta3.Document.Provenance value) { if (provenanceBuilder_ == null) { @@ -26237,8 +29199,11 @@ public Builder mergeProvenance( * The history of this table. * * - * .google.cloud.documentai.v1beta3.Document.Provenance provenance = 5; + * + * .google.cloud.documentai.v1beta3.Document.Provenance provenance = 5 [deprecated = true]; + * */ + @java.lang.Deprecated public Builder clearProvenance() { bitField0_ = (bitField0_ & ~0x00000010); provenance_ = null; @@ -26256,8 +29221,11 @@ public Builder clearProvenance() { * The history of this table. * * - * .google.cloud.documentai.v1beta3.Document.Provenance provenance = 5; + * + * .google.cloud.documentai.v1beta3.Document.Provenance provenance = 5 [deprecated = true]; + * */ + @java.lang.Deprecated public com.google.cloud.documentai.v1beta3.Document.Provenance.Builder getProvenanceBuilder() { bitField0_ |= 0x00000010; @@ -26271,8 +29239,11 @@ public Builder clearProvenance() { * The history of this table. * * - * .google.cloud.documentai.v1beta3.Document.Provenance provenance = 5; + * + * .google.cloud.documentai.v1beta3.Document.Provenance provenance = 5 [deprecated = true]; + * */ + @java.lang.Deprecated public com.google.cloud.documentai.v1beta3.Document.ProvenanceOrBuilder getProvenanceOrBuilder() { if (provenanceBuilder_ != null) { @@ -26290,7 +29261,9 @@ public Builder clearProvenance() { * The history of this table. * * - * .google.cloud.documentai.v1beta3.Document.Provenance provenance = 5; + * + * .google.cloud.documentai.v1beta3.Document.Provenance provenance = 5 [deprecated = true]; + * */ private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.documentai.v1beta3.Document.Provenance, @@ -30878,9 +33851,9 @@ public interface DetectedLanguageOrBuilder * * *
-       * The BCP-47 language code, such as `en-US` or `sr-Latn`. For more
-       * information, see
-       * https://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
+       * The [BCP-47 language
+       * code](https://www.unicode.org/reports/tr35/#Unicode_locale_identifier),
+       * such as `en-US` or `sr-Latn`.
        * 
* * string language_code = 1; @@ -30892,9 +33865,9 @@ public interface DetectedLanguageOrBuilder * * *
-       * The BCP-47 language code, such as `en-US` or `sr-Latn`. For more
-       * information, see
-       * https://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
+       * The [BCP-47 language
+       * code](https://www.unicode.org/reports/tr35/#Unicode_locale_identifier),
+       * such as `en-US` or `sr-Latn`.
        * 
* * string language_code = 1; @@ -30968,9 +33941,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-       * The BCP-47 language code, such as `en-US` or `sr-Latn`. For more
-       * information, see
-       * https://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
+       * The [BCP-47 language
+       * code](https://www.unicode.org/reports/tr35/#Unicode_locale_identifier),
+       * such as `en-US` or `sr-Latn`.
        * 
* * string language_code = 1; @@ -30993,9 +33966,9 @@ public java.lang.String getLanguageCode() { * * *
-       * The BCP-47 language code, such as `en-US` or `sr-Latn`. For more
-       * information, see
-       * https://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
+       * The [BCP-47 language
+       * code](https://www.unicode.org/reports/tr35/#Unicode_locale_identifier),
+       * such as `en-US` or `sr-Latn`.
        * 
* * string language_code = 1; @@ -31418,9 +34391,9 @@ public Builder mergeFrom( * * *
-         * The BCP-47 language code, such as `en-US` or `sr-Latn`. For more
-         * information, see
-         * https://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
+         * The [BCP-47 language
+         * code](https://www.unicode.org/reports/tr35/#Unicode_locale_identifier),
+         * such as `en-US` or `sr-Latn`.
          * 
* * string language_code = 1; @@ -31442,9 +34415,9 @@ public java.lang.String getLanguageCode() { * * *
-         * The BCP-47 language code, such as `en-US` or `sr-Latn`. For more
-         * information, see
-         * https://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
+         * The [BCP-47 language
+         * code](https://www.unicode.org/reports/tr35/#Unicode_locale_identifier),
+         * such as `en-US` or `sr-Latn`.
          * 
* * string language_code = 1; @@ -31466,9 +34439,9 @@ public com.google.protobuf.ByteString getLanguageCodeBytes() { * * *
-         * The BCP-47 language code, such as `en-US` or `sr-Latn`. For more
-         * information, see
-         * https://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
+         * The [BCP-47 language
+         * code](https://www.unicode.org/reports/tr35/#Unicode_locale_identifier),
+         * such as `en-US` or `sr-Latn`.
          * 
* * string language_code = 1; @@ -31489,9 +34462,9 @@ public Builder setLanguageCode(java.lang.String value) { * * *
-         * The BCP-47 language code, such as `en-US` or `sr-Latn`. For more
-         * information, see
-         * https://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
+         * The [BCP-47 language
+         * code](https://www.unicode.org/reports/tr35/#Unicode_locale_identifier),
+         * such as `en-US` or `sr-Latn`.
          * 
* * string language_code = 1; @@ -31508,9 +34481,9 @@ public Builder clearLanguageCode() { * * *
-         * The BCP-47 language code, such as `en-US` or `sr-Latn`. For more
-         * information, see
-         * https://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
+         * The [BCP-47 language
+         * code](https://www.unicode.org/reports/tr35/#Unicode_locale_identifier),
+         * such as `en-US` or `sr-Latn`.
          * 
* * string language_code = 1; @@ -31658,7 +34631,7 @@ public interface ImageQualityScoresOrBuilder * * *
-       * The overall quality score. Range `[0, 1]` where 1 is perfect quality.
+       * The overall quality score. Range `[0, 1]` where `1` is perfect quality.
        * 
* * float quality_score = 1; @@ -31740,7 +34713,7 @@ public interface ImageQualityScoresOrBuilder * * *
-     * Image Quality Scores for the page image
+     * Image quality scores for the page image.
      * 
* * Protobuf type {@code google.cloud.documentai.v1beta3.Document.Page.ImageQualityScores} @@ -31832,8 +34805,8 @@ public interface DetectedDefectOrBuilder * * *
-         * Confidence of detected defect. Range `[0, 1]` where 1 indicates
-         * strong confidence of that the defect exists.
+         * Confidence of detected defect. Range `[0, 1]` where `1` indicates
+         * strong confidence that the defect exists.
          * 
* * float confidence = 2; @@ -31964,8 +34937,8 @@ public com.google.protobuf.ByteString getTypeBytes() { * * *
-         * Confidence of detected defect. Range `[0, 1]` where 1 indicates
-         * strong confidence of that the defect exists.
+         * Confidence of detected defect. Range `[0, 1]` where `1` indicates
+         * strong confidence that the defect exists.
          * 
* * float confidence = 2; @@ -32556,8 +35529,8 @@ public Builder setTypeBytes(com.google.protobuf.ByteString value) { * * *
-           * Confidence of detected defect. Range `[0, 1]` where 1 indicates
-           * strong confidence of that the defect exists.
+           * Confidence of detected defect. Range `[0, 1]` where `1` indicates
+           * strong confidence that the defect exists.
            * 
* * float confidence = 2; @@ -32572,8 +35545,8 @@ public float getConfidence() { * * *
-           * Confidence of detected defect. Range `[0, 1]` where 1 indicates
-           * strong confidence of that the defect exists.
+           * Confidence of detected defect. Range `[0, 1]` where `1` indicates
+           * strong confidence that the defect exists.
            * 
* * float confidence = 2; @@ -32592,8 +35565,8 @@ public Builder setConfidence(float value) { * * *
-           * Confidence of detected defect. Range `[0, 1]` where 1 indicates
-           * strong confidence of that the defect exists.
+           * Confidence of detected defect. Range `[0, 1]` where `1` indicates
+           * strong confidence that the defect exists.
            * 
* * float confidence = 2; @@ -32684,7 +35657,7 @@ public com.google.protobuf.Parser getParserForType() { * * *
-       * The overall quality score. Range `[0, 1]` where 1 is perfect quality.
+       * The overall quality score. Range `[0, 1]` where `1` is perfect quality.
        * 
* * float quality_score = 1; @@ -32968,7 +35941,7 @@ protected Builder newBuilderForType( * * *
-       * Image Quality Scores for the page image
+       * Image quality scores for the page image.
        * 
* * Protobuf type {@code google.cloud.documentai.v1beta3.Document.Page.ImageQualityScores} @@ -33228,7 +36201,7 @@ public Builder mergeFrom( * * *
-         * The overall quality score. Range `[0, 1]` where 1 is perfect quality.
+         * The overall quality score. Range `[0, 1]` where `1` is perfect quality.
          * 
* * float quality_score = 1; @@ -33243,7 +36216,7 @@ public float getQualityScore() { * * *
-         * The overall quality score. Range `[0, 1]` where 1 is perfect quality.
+         * The overall quality score. Range `[0, 1]` where `1` is perfect quality.
          * 
* * float quality_score = 1; @@ -33262,7 +36235,7 @@ public Builder setQualityScore(float value) { * * *
-         * The overall quality score. Range `[0, 1]` where 1 is perfect quality.
+         * The overall quality score. Range `[0, 1]` where `1` is perfect quality.
          * 
* * float quality_score = 1; @@ -34864,7 +37837,7 @@ public com.google.cloud.documentai.v1beta3.Document.Page.DetectedBarcode getDete * * *
-     * Image Quality Scores.
+     * Image quality scores.
      * 
* * @@ -34881,7 +37854,7 @@ public boolean hasImageQualityScores() { * * *
-     * Image Quality Scores.
+     * Image quality scores.
      * 
* * @@ -34902,7 +37875,7 @@ public boolean hasImageQualityScores() { * * *
-     * Image Quality Scores.
+     * Image quality scores.
      * 
* * @@ -34932,7 +37905,7 @@ public boolean hasImageQualityScores() { * * * @deprecated google.cloud.documentai.v1beta3.Document.Page.provenance is deprecated. See - * google/cloud/documentai/v1beta3/document.proto;l=491 + * google/cloud/documentai/v1beta3/document.proto;l=551 * @return Whether the provenance field is set. */ @java.lang.Override @@ -34952,7 +37925,7 @@ public boolean hasProvenance() { *
* * @deprecated google.cloud.documentai.v1beta3.Document.Page.provenance is deprecated. See - * google/cloud/documentai/v1beta3/document.proto;l=491 + * google/cloud/documentai/v1beta3/document.proto;l=551 * @return The provenance. */ @java.lang.Override @@ -41252,7 +44225,7 @@ public Builder removeDetectedBarcodes(int index) { * * *
-       * Image Quality Scores.
+       * Image quality scores.
        * 
* * @@ -41268,7 +44241,7 @@ public boolean hasImageQualityScores() { * * *
-       * Image Quality Scores.
+       * Image quality scores.
        * 
* * @@ -41292,7 +44265,7 @@ public boolean hasImageQualityScores() { * * *
-       * Image Quality Scores.
+       * Image quality scores.
        * 
* * @@ -41317,7 +44290,7 @@ public Builder setImageQualityScores( * * *
-       * Image Quality Scores.
+       * Image quality scores.
        * 
* * @@ -41340,7 +44313,7 @@ public Builder setImageQualityScores( * * *
-       * Image Quality Scores.
+       * Image quality scores.
        * 
* * @@ -41370,7 +44343,7 @@ public Builder mergeImageQualityScores( * * *
-       * Image Quality Scores.
+       * Image quality scores.
        * 
* * @@ -41391,7 +44364,7 @@ public Builder clearImageQualityScores() { * * *
-       * Image Quality Scores.
+       * Image quality scores.
        * 
* * @@ -41408,7 +44381,7 @@ public Builder clearImageQualityScores() { * * *
-       * Image Quality Scores.
+       * Image quality scores.
        * 
* * @@ -41430,7 +44403,7 @@ public Builder clearImageQualityScores() { * * *
-       * Image Quality Scores.
+       * Image quality scores.
        * 
* * @@ -41472,7 +44445,7 @@ public Builder clearImageQualityScores() { * * * @deprecated google.cloud.documentai.v1beta3.Document.Page.provenance is deprecated. See - * google/cloud/documentai/v1beta3/document.proto;l=491 + * google/cloud/documentai/v1beta3/document.proto;l=551 * @return Whether the provenance field is set. */ @java.lang.Deprecated @@ -41491,7 +44464,7 @@ public boolean hasProvenance() { *
* * @deprecated google.cloud.documentai.v1beta3.Document.Page.provenance is deprecated. See - * google/cloud/documentai/v1beta3/document.proto;l=491 + * google/cloud/documentai/v1beta3/document.proto;l=551 * @return The provenance. */ @java.lang.Deprecated @@ -51261,7 +54234,7 @@ public interface PageRefOrBuilder *
* * @deprecated google.cloud.documentai.v1beta3.Document.PageAnchor.PageRef.layout_id is - * deprecated. See google/cloud/documentai/v1beta3/document.proto;l=696 + * deprecated. See google/cloud/documentai/v1beta3/document.proto;l=756 * @return The layoutId. */ @java.lang.Deprecated @@ -51279,7 +54252,7 @@ public interface PageRefOrBuilder *
* * @deprecated google.cloud.documentai.v1beta3.Document.PageAnchor.PageRef.layout_id is - * deprecated. See google/cloud/documentai/v1beta3/document.proto;l=696 + * deprecated. See google/cloud/documentai/v1beta3/document.proto;l=756 * @return The bytes for layoutId. */ @java.lang.Deprecated @@ -51773,7 +54746,7 @@ public int getLayoutTypeValue() { *
* * @deprecated google.cloud.documentai.v1beta3.Document.PageAnchor.PageRef.layout_id is - * deprecated. See google/cloud/documentai/v1beta3/document.proto;l=696 + * deprecated. See google/cloud/documentai/v1beta3/document.proto;l=756 * @return The layoutId. */ @java.lang.Override @@ -51802,7 +54775,7 @@ public java.lang.String getLayoutId() { *
* * @deprecated google.cloud.documentai.v1beta3.Document.PageAnchor.PageRef.layout_id is - * deprecated. See google/cloud/documentai/v1beta3/document.proto;l=696 + * deprecated. See google/cloud/documentai/v1beta3/document.proto;l=756 * @return The bytes for layoutId. */ @java.lang.Override @@ -52552,7 +55525,7 @@ public Builder clearLayoutType() { *
* * @deprecated google.cloud.documentai.v1beta3.Document.PageAnchor.PageRef.layout_id is - * deprecated. See google/cloud/documentai/v1beta3/document.proto;l=696 + * deprecated. See google/cloud/documentai/v1beta3/document.proto;l=756 * @return The layoutId. */ @java.lang.Deprecated @@ -52580,7 +55553,7 @@ public java.lang.String getLayoutId() { *
* * @deprecated google.cloud.documentai.v1beta3.Document.PageAnchor.PageRef.layout_id is - * deprecated. See google/cloud/documentai/v1beta3/document.proto;l=696 + * deprecated. See google/cloud/documentai/v1beta3/document.proto;l=756 * @return The bytes for layoutId. */ @java.lang.Deprecated @@ -52608,7 +55581,7 @@ public com.google.protobuf.ByteString getLayoutIdBytes() { *
* * @deprecated google.cloud.documentai.v1beta3.Document.PageAnchor.PageRef.layout_id is - * deprecated. See google/cloud/documentai/v1beta3/document.proto;l=696 + * deprecated. See google/cloud/documentai/v1beta3/document.proto;l=756 * @param value The layoutId to set. * @return This builder for chaining. */ @@ -52635,7 +55608,7 @@ public Builder setLayoutId(java.lang.String value) { *
* * @deprecated google.cloud.documentai.v1beta3.Document.PageAnchor.PageRef.layout_id is - * deprecated. See google/cloud/documentai/v1beta3/document.proto;l=696 + * deprecated. See google/cloud/documentai/v1beta3/document.proto;l=756 * @return This builder for chaining. */ @java.lang.Deprecated @@ -52658,7 +55631,7 @@ public Builder clearLayoutId() { * * * @deprecated google.cloud.documentai.v1beta3.Document.PageAnchor.PageRef.layout_id is - * deprecated. See google/cloud/documentai/v1beta3/document.proto;l=696 + * deprecated. See google/cloud/documentai/v1beta3/document.proto;l=756 * @param value The bytes for layoutId to set. * @return This builder for chaining. */ @@ -53957,7 +56930,7 @@ public interface ProvenanceOrBuilder * int32 revision = 1 [deprecated = true]; * * @deprecated google.cloud.documentai.v1beta3.Document.Provenance.revision is deprecated. See - * google/cloud/documentai/v1beta3/document.proto;l=763 + * google/cloud/documentai/v1beta3/document.proto;l=823 * @return The revision. */ @java.lang.Deprecated @@ -53974,7 +56947,7 @@ public interface ProvenanceOrBuilder * int32 id = 2 [deprecated = true]; * * @deprecated google.cloud.documentai.v1beta3.Document.Provenance.id is deprecated. See - * google/cloud/documentai/v1beta3/document.proto;l=767 + * google/cloud/documentai/v1beta3/document.proto;l=827 * @return The id. */ @java.lang.Deprecated @@ -54156,9 +57129,9 @@ public enum OperationType implements com.google.protobuf.ProtocolMessageEnum { * *
        * Updates any fields within the given provenance scope of the message. It
-       * 'overwrites'  the fields rather than replacing them.  This is
-       * especially relevant when we just want to update a field value of an
-       * entity without also affecting all the child properties.
+       * overwrites the fields rather than replacing them.  Use this when you
+       * want to update a field value of an entity without also updating all the
+       * child properties.
        * 
* * UPDATE = 7; @@ -54171,9 +57144,8 @@ public enum OperationType implements com.google.protobuf.ProtocolMessageEnum { * Currently unused. Replace an element identified by `parent`. * * - * REPLACE = 3 [deprecated = true]; + * REPLACE = 3; */ - @java.lang.Deprecated REPLACE(3), /** * @@ -54249,9 +57221,9 @@ public enum OperationType implements com.google.protobuf.ProtocolMessageEnum { * *
        * Updates any fields within the given provenance scope of the message. It
-       * 'overwrites'  the fields rather than replacing them.  This is
-       * especially relevant when we just want to update a field value of an
-       * entity without also affecting all the child properties.
+       * overwrites the fields rather than replacing them.  Use this when you
+       * want to update a field value of an entity without also updating all the
+       * child properties.
        * 
* * UPDATE = 7; @@ -54264,9 +57236,9 @@ public enum OperationType implements com.google.protobuf.ProtocolMessageEnum { * Currently unused. Replace an element identified by `parent`. * * - * REPLACE = 3 [deprecated = true]; + * REPLACE = 3; */ - @java.lang.Deprecated public static final int REPLACE_VALUE = 3; + public static final int REPLACE_VALUE = 3; /** * * @@ -54439,7 +57411,7 @@ public interface ParentOrBuilder * int32 id = 2 [deprecated = true]; * * @deprecated google.cloud.documentai.v1beta3.Document.Provenance.Parent.id is deprecated. - * See google/cloud/documentai/v1beta3/document.proto;l=726 + * See google/cloud/documentai/v1beta3/document.proto;l=786 * @return The id. */ @java.lang.Deprecated @@ -54537,7 +57509,7 @@ public int getIndex() { * int32 id = 2 [deprecated = true]; * * @deprecated google.cloud.documentai.v1beta3.Document.Provenance.Parent.id is deprecated. - * See google/cloud/documentai/v1beta3/document.proto;l=726 + * See google/cloud/documentai/v1beta3/document.proto;l=786 * @return The id. */ @java.lang.Override @@ -55065,7 +58037,7 @@ public Builder clearIndex() { * int32 id = 2 [deprecated = true]; * * @deprecated google.cloud.documentai.v1beta3.Document.Provenance.Parent.id is deprecated. - * See google/cloud/documentai/v1beta3/document.proto;l=726 + * See google/cloud/documentai/v1beta3/document.proto;l=786 * @return The id. */ @java.lang.Override @@ -55083,7 +58055,7 @@ public int getId() { * int32 id = 2 [deprecated = true]; * * @deprecated google.cloud.documentai.v1beta3.Document.Provenance.Parent.id is deprecated. - * See google/cloud/documentai/v1beta3/document.proto;l=726 + * See google/cloud/documentai/v1beta3/document.proto;l=786 * @param value The id to set. * @return This builder for chaining. */ @@ -55105,7 +58077,7 @@ public Builder setId(int value) { * int32 id = 2 [deprecated = true]; * * @deprecated google.cloud.documentai.v1beta3.Document.Provenance.Parent.id is deprecated. - * See google/cloud/documentai/v1beta3/document.proto;l=726 + * See google/cloud/documentai/v1beta3/document.proto;l=786 * @return This builder for chaining. */ @java.lang.Deprecated @@ -55195,7 +58167,7 @@ public com.google.protobuf.Parser getParserForType() { * int32 revision = 1 [deprecated = true]; * * @deprecated google.cloud.documentai.v1beta3.Document.Provenance.revision is deprecated. See - * google/cloud/documentai/v1beta3/document.proto;l=763 + * google/cloud/documentai/v1beta3/document.proto;l=823 * @return The revision. */ @java.lang.Override @@ -55217,7 +58189,7 @@ public int getRevision() { * int32 id = 2 [deprecated = true]; * * @deprecated google.cloud.documentai.v1beta3.Document.Provenance.id is deprecated. See - * google/cloud/documentai/v1beta3/document.proto;l=767 + * google/cloud/documentai/v1beta3/document.proto;l=827 * @return The id. */ @java.lang.Override @@ -55822,7 +58794,7 @@ public Builder mergeFrom( * int32 revision = 1 [deprecated = true]; * * @deprecated google.cloud.documentai.v1beta3.Document.Provenance.revision is deprecated. See - * google/cloud/documentai/v1beta3/document.proto;l=763 + * google/cloud/documentai/v1beta3/document.proto;l=823 * @return The revision. */ @java.lang.Override @@ -55840,7 +58812,7 @@ public int getRevision() { * int32 revision = 1 [deprecated = true]; * * @deprecated google.cloud.documentai.v1beta3.Document.Provenance.revision is deprecated. See - * google/cloud/documentai/v1beta3/document.proto;l=763 + * google/cloud/documentai/v1beta3/document.proto;l=823 * @param value The revision to set. * @return This builder for chaining. */ @@ -55862,7 +58834,7 @@ public Builder setRevision(int value) { * int32 revision = 1 [deprecated = true]; * * @deprecated google.cloud.documentai.v1beta3.Document.Provenance.revision is deprecated. See - * google/cloud/documentai/v1beta3/document.proto;l=763 + * google/cloud/documentai/v1beta3/document.proto;l=823 * @return This builder for chaining. */ @java.lang.Deprecated @@ -55885,7 +58857,7 @@ public Builder clearRevision() { * int32 id = 2 [deprecated = true]; * * @deprecated google.cloud.documentai.v1beta3.Document.Provenance.id is deprecated. See - * google/cloud/documentai/v1beta3/document.proto;l=767 + * google/cloud/documentai/v1beta3/document.proto;l=827 * @return The id. */ @java.lang.Override @@ -55904,7 +58876,7 @@ public int getId() { * int32 id = 2 [deprecated = true]; * * @deprecated google.cloud.documentai.v1beta3.Document.Provenance.id is deprecated. See - * google/cloud/documentai/v1beta3/document.proto;l=767 + * google/cloud/documentai/v1beta3/document.proto;l=827 * @param value The id to set. * @return This builder for chaining. */ @@ -55927,7 +58899,7 @@ public Builder setId(int value) { * int32 id = 2 [deprecated = true]; * * @deprecated google.cloud.documentai.v1beta3.Document.Provenance.id is deprecated. See - * google/cloud/documentai/v1beta3/document.proto;l=767 + * google/cloud/documentai/v1beta3/document.proto;l=827 * @return This builder for chaining. */ @java.lang.Deprecated @@ -56607,7 +59579,7 @@ public interface RevisionOrBuilder * repeated int32 parent = 2 [deprecated = true]; * * @deprecated google.cloud.documentai.v1beta3.Document.Revision.parent is deprecated. See - * google/cloud/documentai/v1beta3/document.proto;l=806 + * google/cloud/documentai/v1beta3/document.proto;l=866 * @return A list containing the parent. */ @java.lang.Deprecated @@ -56624,7 +59596,7 @@ public interface RevisionOrBuilder * repeated int32 parent = 2 [deprecated = true]; * * @deprecated google.cloud.documentai.v1beta3.Document.Revision.parent is deprecated. See - * google/cloud/documentai/v1beta3/document.proto;l=806 + * google/cloud/documentai/v1beta3/document.proto;l=866 * @return The count of parent. */ @java.lang.Deprecated @@ -56641,7 +59613,7 @@ public interface RevisionOrBuilder * repeated int32 parent = 2 [deprecated = true]; * * @deprecated google.cloud.documentai.v1beta3.Document.Revision.parent is deprecated. See - * google/cloud/documentai/v1beta3/document.proto;l=806 + * google/cloud/documentai/v1beta3/document.proto;l=866 * @param index The index of the element to return. * @return The parent at the given index. */ @@ -57963,7 +60935,7 @@ public com.google.protobuf.ByteString getIdBytes() { * repeated int32 parent = 2 [deprecated = true]; * * @deprecated google.cloud.documentai.v1beta3.Document.Revision.parent is deprecated. See - * google/cloud/documentai/v1beta3/document.proto;l=806 + * google/cloud/documentai/v1beta3/document.proto;l=866 * @return A list containing the parent. */ @java.lang.Override @@ -57983,7 +60955,7 @@ public java.util.List getParentList() { * repeated int32 parent = 2 [deprecated = true]; * * @deprecated google.cloud.documentai.v1beta3.Document.Revision.parent is deprecated. See - * google/cloud/documentai/v1beta3/document.proto;l=806 + * google/cloud/documentai/v1beta3/document.proto;l=866 * @return The count of parent. */ @java.lang.Deprecated @@ -58002,7 +60974,7 @@ public int getParentCount() { * repeated int32 parent = 2 [deprecated = true]; * * @deprecated google.cloud.documentai.v1beta3.Document.Revision.parent is deprecated. See - * google/cloud/documentai/v1beta3/document.proto;l=806 + * google/cloud/documentai/v1beta3/document.proto;l=866 * @param index The index of the element to return. * @return The parent at the given index. */ @@ -59202,7 +62174,7 @@ private void ensureParentIsMutable() { * repeated int32 parent = 2 [deprecated = true]; * * @deprecated google.cloud.documentai.v1beta3.Document.Revision.parent is deprecated. See - * google/cloud/documentai/v1beta3/document.proto;l=806 + * google/cloud/documentai/v1beta3/document.proto;l=866 * @return A list containing the parent. */ @java.lang.Deprecated @@ -59223,7 +62195,7 @@ public java.util.List getParentList() { * repeated int32 parent = 2 [deprecated = true]; * * @deprecated google.cloud.documentai.v1beta3.Document.Revision.parent is deprecated. See - * google/cloud/documentai/v1beta3/document.proto;l=806 + * google/cloud/documentai/v1beta3/document.proto;l=866 * @return The count of parent. */ @java.lang.Deprecated @@ -59242,7 +62214,7 @@ public int getParentCount() { * repeated int32 parent = 2 [deprecated = true]; * * @deprecated google.cloud.documentai.v1beta3.Document.Revision.parent is deprecated. See - * google/cloud/documentai/v1beta3/document.proto;l=806 + * google/cloud/documentai/v1beta3/document.proto;l=866 * @param index The index of the element to return. * @return The parent at the given index. */ @@ -59262,7 +62234,7 @@ public int getParent(int index) { * repeated int32 parent = 2 [deprecated = true]; * * @deprecated google.cloud.documentai.v1beta3.Document.Revision.parent is deprecated. See - * google/cloud/documentai/v1beta3/document.proto;l=806 + * google/cloud/documentai/v1beta3/document.proto;l=866 * @param index The index to set the value at. * @param value The parent to set. * @return This builder for chaining. @@ -59287,7 +62259,7 @@ public Builder setParent(int index, int value) { * repeated int32 parent = 2 [deprecated = true]; * * @deprecated google.cloud.documentai.v1beta3.Document.Revision.parent is deprecated. See - * google/cloud/documentai/v1beta3/document.proto;l=806 + * google/cloud/documentai/v1beta3/document.proto;l=866 * @param value The parent to add. * @return This builder for chaining. */ @@ -59311,7 +62283,7 @@ public Builder addParent(int value) { * repeated int32 parent = 2 [deprecated = true]; * * @deprecated google.cloud.documentai.v1beta3.Document.Revision.parent is deprecated. See - * google/cloud/documentai/v1beta3/document.proto;l=806 + * google/cloud/documentai/v1beta3/document.proto;l=866 * @param values The parent to add. * @return This builder for chaining. */ @@ -59334,7 +62306,7 @@ public Builder addAllParent(java.lang.Iterable valu * repeated int32 parent = 2 [deprecated = true]; * * @deprecated google.cloud.documentai.v1beta3.Document.Revision.parent is deprecated. See - * google/cloud/documentai/v1beta3/document.proto;l=806 + * google/cloud/documentai/v1beta3/document.proto;l=866 * @return This builder for chaining. */ @java.lang.Deprecated @@ -61724,10 +64696,9 @@ public SourceCase getSourceCase() { * *
    * Optional. Currently supports Google Cloud Storage URI of the form
-   *    `gs://bucket_name/object_name`. Object versioning is not supported.
-   *    See [Google Cloud Storage Request
-   *    URIs](https://cloud.google.com/storage/docs/reference-uris) for more
-   *    info.
+   * `gs://bucket_name/object_name`. Object versioning is not supported.
+   * For more information, refer to [Google Cloud Storage Request
+   * URIs](https://cloud.google.com/storage/docs/reference-uris).
    * 
* * string uri = 1 [(.google.api.field_behavior) = OPTIONAL]; @@ -61742,10 +64713,9 @@ public boolean hasUri() { * *
    * Optional. Currently supports Google Cloud Storage URI of the form
-   *    `gs://bucket_name/object_name`. Object versioning is not supported.
-   *    See [Google Cloud Storage Request
-   *    URIs](https://cloud.google.com/storage/docs/reference-uris) for more
-   *    info.
+   * `gs://bucket_name/object_name`. Object versioning is not supported.
+   * For more information, refer to [Google Cloud Storage Request
+   * URIs](https://cloud.google.com/storage/docs/reference-uris).
    * 
* * string uri = 1 [(.google.api.field_behavior) = OPTIONAL]; @@ -61773,10 +64743,9 @@ public java.lang.String getUri() { * *
    * Optional. Currently supports Google Cloud Storage URI of the form
-   *    `gs://bucket_name/object_name`. Object versioning is not supported.
-   *    See [Google Cloud Storage Request
-   *    URIs](https://cloud.google.com/storage/docs/reference-uris) for more
-   *    info.
+   * `gs://bucket_name/object_name`. Object versioning is not supported.
+   * For more information, refer to [Google Cloud Storage Request
+   * URIs](https://cloud.google.com/storage/docs/reference-uris).
    * 
* * string uri = 1 [(.google.api.field_behavior) = OPTIONAL]; @@ -61847,9 +64816,8 @@ public com.google.protobuf.ByteString getContent() { * * *
-   * An IANA published MIME type (also referred to as media type). For more
-   * information, see
-   * https://www.iana.org/assignments/media-types/media-types.xhtml.
+   * An IANA published [media type (MIME
+   * type)](https://www.iana.org/assignments/media-types/media-types.xhtml).
    * 
* * string mime_type = 3; @@ -61872,9 +64840,8 @@ public java.lang.String getMimeType() { * * *
-   * An IANA published MIME type (also referred to as media type). For more
-   * information, see
-   * https://www.iana.org/assignments/media-types/media-types.xhtml.
+   * An IANA published [media type (MIME
+   * type)](https://www.iana.org/assignments/media-types/media-types.xhtml).
    * 
* * string mime_type = 3; @@ -63476,10 +66443,9 @@ public Builder clearSource() { * *
      * Optional. Currently supports Google Cloud Storage URI of the form
-     *    `gs://bucket_name/object_name`. Object versioning is not supported.
-     *    See [Google Cloud Storage Request
-     *    URIs](https://cloud.google.com/storage/docs/reference-uris) for more
-     *    info.
+     * `gs://bucket_name/object_name`. Object versioning is not supported.
+     * For more information, refer to [Google Cloud Storage Request
+     * URIs](https://cloud.google.com/storage/docs/reference-uris).
      * 
* * string uri = 1 [(.google.api.field_behavior) = OPTIONAL]; @@ -63495,10 +66461,9 @@ public boolean hasUri() { * *
      * Optional. Currently supports Google Cloud Storage URI of the form
-     *    `gs://bucket_name/object_name`. Object versioning is not supported.
-     *    See [Google Cloud Storage Request
-     *    URIs](https://cloud.google.com/storage/docs/reference-uris) for more
-     *    info.
+     * `gs://bucket_name/object_name`. Object versioning is not supported.
+     * For more information, refer to [Google Cloud Storage Request
+     * URIs](https://cloud.google.com/storage/docs/reference-uris).
      * 
* * string uri = 1 [(.google.api.field_behavior) = OPTIONAL]; @@ -63527,10 +66492,9 @@ public java.lang.String getUri() { * *
      * Optional. Currently supports Google Cloud Storage URI of the form
-     *    `gs://bucket_name/object_name`. Object versioning is not supported.
-     *    See [Google Cloud Storage Request
-     *    URIs](https://cloud.google.com/storage/docs/reference-uris) for more
-     *    info.
+     * `gs://bucket_name/object_name`. Object versioning is not supported.
+     * For more information, refer to [Google Cloud Storage Request
+     * URIs](https://cloud.google.com/storage/docs/reference-uris).
      * 
* * string uri = 1 [(.google.api.field_behavior) = OPTIONAL]; @@ -63559,10 +66523,9 @@ public com.google.protobuf.ByteString getUriBytes() { * *
      * Optional. Currently supports Google Cloud Storage URI of the form
-     *    `gs://bucket_name/object_name`. Object versioning is not supported.
-     *    See [Google Cloud Storage Request
-     *    URIs](https://cloud.google.com/storage/docs/reference-uris) for more
-     *    info.
+     * `gs://bucket_name/object_name`. Object versioning is not supported.
+     * For more information, refer to [Google Cloud Storage Request
+     * URIs](https://cloud.google.com/storage/docs/reference-uris).
      * 
* * string uri = 1 [(.google.api.field_behavior) = OPTIONAL]; @@ -63584,10 +66547,9 @@ public Builder setUri(java.lang.String value) { * *
      * Optional. Currently supports Google Cloud Storage URI of the form
-     *    `gs://bucket_name/object_name`. Object versioning is not supported.
-     *    See [Google Cloud Storage Request
-     *    URIs](https://cloud.google.com/storage/docs/reference-uris) for more
-     *    info.
+     * `gs://bucket_name/object_name`. Object versioning is not supported.
+     * For more information, refer to [Google Cloud Storage Request
+     * URIs](https://cloud.google.com/storage/docs/reference-uris).
      * 
* * string uri = 1 [(.google.api.field_behavior) = OPTIONAL]; @@ -63607,10 +66569,9 @@ public Builder clearUri() { * *
      * Optional. Currently supports Google Cloud Storage URI of the form
-     *    `gs://bucket_name/object_name`. Object versioning is not supported.
-     *    See [Google Cloud Storage Request
-     *    URIs](https://cloud.google.com/storage/docs/reference-uris) for more
-     *    info.
+     * `gs://bucket_name/object_name`. Object versioning is not supported.
+     * For more information, refer to [Google Cloud Storage Request
+     * URIs](https://cloud.google.com/storage/docs/reference-uris).
      * 
* * string uri = 1 [(.google.api.field_behavior) = OPTIONAL]; @@ -63714,9 +66675,8 @@ public Builder clearContent() { * * *
-     * An IANA published MIME type (also referred to as media type). For more
-     * information, see
-     * https://www.iana.org/assignments/media-types/media-types.xhtml.
+     * An IANA published [media type (MIME
+     * type)](https://www.iana.org/assignments/media-types/media-types.xhtml).
      * 
* * string mime_type = 3; @@ -63738,9 +66698,8 @@ public java.lang.String getMimeType() { * * *
-     * An IANA published MIME type (also referred to as media type). For more
-     * information, see
-     * https://www.iana.org/assignments/media-types/media-types.xhtml.
+     * An IANA published [media type (MIME
+     * type)](https://www.iana.org/assignments/media-types/media-types.xhtml).
      * 
* * string mime_type = 3; @@ -63762,9 +66721,8 @@ public com.google.protobuf.ByteString getMimeTypeBytes() { * * *
-     * An IANA published MIME type (also referred to as media type). For more
-     * information, see
-     * https://www.iana.org/assignments/media-types/media-types.xhtml.
+     * An IANA published [media type (MIME
+     * type)](https://www.iana.org/assignments/media-types/media-types.xhtml).
      * 
* * string mime_type = 3; @@ -63785,9 +66743,8 @@ public Builder setMimeType(java.lang.String value) { * * *
-     * An IANA published MIME type (also referred to as media type). For more
-     * information, see
-     * https://www.iana.org/assignments/media-types/media-types.xhtml.
+     * An IANA published [media type (MIME
+     * type)](https://www.iana.org/assignments/media-types/media-types.xhtml).
      * 
* * string mime_type = 3; @@ -63804,9 +66761,8 @@ public Builder clearMimeType() { * * *
-     * An IANA published MIME type (also referred to as media type). For more
-     * information, see
-     * https://www.iana.org/assignments/media-types/media-types.xhtml.
+     * An IANA published [media type (MIME
+     * type)](https://www.iana.org/assignments/media-types/media-types.xhtml).
      * 
* * string mime_type = 3; diff --git a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/DocumentAiDocumentSchema.java b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/DocumentAiDocumentSchema.java index 5c07e42c7537..ca17ca386b3b 100644 --- a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/DocumentAiDocumentSchema.java +++ b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/DocumentAiDocumentSchema.java @@ -27,6 +27,14 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); } + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_documentai_v1beta3_PropertyMetadata_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_documentai_v1beta3_PropertyMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_documentai_v1beta3_EntityTypeMetadata_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_documentai_v1beta3_EntityTypeMetadata_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_documentai_v1beta3_DocumentSchema_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -58,43 +66,65 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { java.lang.String[] descriptorData = { "\n5google/cloud/documentai/v1beta3/docume" + "nt_schema.proto\022\037google.cloud.documentai" - + ".v1beta3\"\300\007\n\016DocumentSchema\022\024\n\014display_n" - + "ame\030\001 \001(\t\022\023\n\013description\030\002 \001(\t\022P\n\014entity" - + "_types\030\003 \003(\0132:.google.cloud.documentai.v" - + "1beta3.DocumentSchema.EntityType\022J\n\010meta" - + "data\030\004 \001(\01328.google.cloud.documentai.v1b" - + "eta3.DocumentSchema.Metadata\032\315\004\n\nEntityT" - + "ype\022\\\n\013enum_values\030\016 \001(\0132E.google.cloud." - + "documentai.v1beta3.DocumentSchema.Entity" - + "Type.EnumValuesH\000\022\024\n\014display_name\030\r \001(\t\022" - + "\014\n\004name\030\001 \001(\t\022\022\n\nbase_types\030\002 \003(\t\022W\n\npro" - + "perties\030\006 \003(\0132C.google.cloud.documentai." - + "v1beta3.DocumentSchema.EntityType.Proper" - + "ty\032\034\n\nEnumValues\022\016\n\006values\030\001 \003(\t\032\241\002\n\010Pro" - + "perty\022\014\n\004name\030\001 \001(\t\022\022\n\nvalue_type\030\002 \001(\t\022" - + "k\n\017occurrence_type\030\003 \001(\0162R.google.cloud." - + "documentai.v1beta3.DocumentSchema.Entity" - + "Type.Property.OccurrenceType\"\205\001\n\016Occurre" - + "nceType\022\037\n\033OCCURRENCE_TYPE_UNSPECIFIED\020\000" - + "\022\021\n\rOPTIONAL_ONCE\020\001\022\025\n\021OPTIONAL_MULTIPLE" - + "\020\002\022\021\n\rREQUIRED_ONCE\020\003\022\025\n\021REQUIRED_MULTIP" - + "LE\020\004B\016\n\014value_source\032\224\001\n\010Metadata\022\031\n\021doc" - + "ument_splitter\030\001 \001(\010\022&\n\036document_allow_m" - + "ultiple_labels\030\002 \001(\010\022%\n\035prefixed_naming_" - + "on_properties\030\006 \001(\010\022\036\n\026skip_naming_valid" - + "ation\030\007 \001(\010B\357\001\n#com.google.cloud.documen" - + "tai.v1beta3B\030DocumentAiDocumentSchemaP\001Z" - + "Ccloud.google.com/go/documentai/apiv1bet" - + "a3/documentaipb;documentaipb\252\002\037Google.Cl" - + "oud.DocumentAI.V1Beta3\312\002\037Google\\Cloud\\Do" - + "cumentAI\\V1beta3\352\002\"Google::Cloud::Docume" - + "ntAI::V1beta3b\006proto3" + + ".v1beta3\"$\n\020PropertyMetadata\022\020\n\010inactive" + + "\030\003 \001(\010\"&\n\022EntityTypeMetadata\022\020\n\010inactive" + + "\030\005 \001(\010\"\341\010\n\016DocumentSchema\022\024\n\014display_nam" + + "e\030\001 \001(\t\022\023\n\013description\030\002 \001(\t\022P\n\014entity_t" + + "ypes\030\003 \003(\0132:.google.cloud.documentai.v1b" + + "eta3.DocumentSchema.EntityType\022J\n\010metada" + + "ta\030\004 \001(\01328.google.cloud.documentai.v1bet" + + "a3.DocumentSchema.Metadata\032\356\005\n\nEntityTyp" + + "e\022\\\n\013enum_values\030\016 \001(\0132E.google.cloud.do" + + "cumentai.v1beta3.DocumentSchema.EntityTy" + + "pe.EnumValuesH\000\022\024\n\014display_name\030\r \001(\t\022\014\n" + + "\004name\030\001 \001(\t\022\022\n\nbase_types\030\002 \003(\t\022W\n\nprope" + + "rties\030\006 \003(\0132C.google.cloud.documentai.v1" + + "beta3.DocumentSchema.EntityType.Property" + + "\022Q\n\024entity_type_metadata\030\013 \001(\01323.google." + + "cloud.documentai.v1beta3.EntityTypeMetad" + + "ata\032\034\n\nEnumValues\022\016\n\006values\030\001 \003(\t\032\357\002\n\010Pr" + + "operty\022\014\n\004name\030\001 \001(\t\022\022\n\nvalue_type\030\002 \001(\t" + + "\022k\n\017occurrence_type\030\003 \001(\0162R.google.cloud" + + ".documentai.v1beta3.DocumentSchema.Entit" + + "yType.Property.OccurrenceType\022L\n\021propert" + + "y_metadata\030\005 \001(\01321.google.cloud.document" + + "ai.v1beta3.PropertyMetadata\"\205\001\n\016Occurren" + + "ceType\022\037\n\033OCCURRENCE_TYPE_UNSPECIFIED\020\000\022" + + "\021\n\rOPTIONAL_ONCE\020\001\022\025\n\021OPTIONAL_MULTIPLE\020" + + "\002\022\021\n\rREQUIRED_ONCE\020\003\022\025\n\021REQUIRED_MULTIPL" + + "E\020\004B\016\n\014value_source\032\224\001\n\010Metadata\022\031\n\021docu" + + "ment_splitter\030\001 \001(\010\022&\n\036document_allow_mu" + + "ltiple_labels\030\002 \001(\010\022%\n\035prefixed_naming_o" + + "n_properties\030\006 \001(\010\022\036\n\026skip_naming_valida" + + "tion\030\007 \001(\010B\357\001\n#com.google.cloud.document" + + "ai.v1beta3B\030DocumentAiDocumentSchemaP\001ZC" + + "cloud.google.com/go/documentai/apiv1beta" + + "3/documentaipb;documentaipb\252\002\037Google.Clo" + + "ud.DocumentAI.V1Beta3\312\002\037Google\\Cloud\\Doc" + + "umentAI\\V1beta3\352\002\"Google::Cloud::Documen" + + "tAI::V1beta3b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] {}); - internal_static_google_cloud_documentai_v1beta3_DocumentSchema_descriptor = + internal_static_google_cloud_documentai_v1beta3_PropertyMetadata_descriptor = getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_documentai_v1beta3_PropertyMetadata_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_documentai_v1beta3_PropertyMetadata_descriptor, + new java.lang.String[] { + "Inactive", + }); + internal_static_google_cloud_documentai_v1beta3_EntityTypeMetadata_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_documentai_v1beta3_EntityTypeMetadata_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_documentai_v1beta3_EntityTypeMetadata_descriptor, + new java.lang.String[] { + "Inactive", + }); + internal_static_google_cloud_documentai_v1beta3_DocumentSchema_descriptor = + getDescriptor().getMessageTypes().get(2); internal_static_google_cloud_documentai_v1beta3_DocumentSchema_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_documentai_v1beta3_DocumentSchema_descriptor, @@ -109,7 +139,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_documentai_v1beta3_DocumentSchema_EntityType_descriptor, new java.lang.String[] { - "EnumValues", "DisplayName", "Name", "BaseTypes", "Properties", "ValueSource", + "EnumValues", + "DisplayName", + "Name", + "BaseTypes", + "Properties", + "EntityTypeMetadata", + "ValueSource", }); internal_static_google_cloud_documentai_v1beta3_DocumentSchema_EntityType_EnumValues_descriptor = internal_static_google_cloud_documentai_v1beta3_DocumentSchema_EntityType_descriptor @@ -129,7 +165,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_documentai_v1beta3_DocumentSchema_EntityType_Property_descriptor, new java.lang.String[] { - "Name", "ValueType", "OccurrenceType", + "Name", "ValueType", "OccurrenceType", "PropertyMetadata", }); internal_static_google_cloud_documentai_v1beta3_DocumentSchema_Metadata_descriptor = internal_static_google_cloud_documentai_v1beta3_DocumentSchema_descriptor diff --git a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/DocumentAiDocumentService.java b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/DocumentAiDocumentService.java new file mode 100644 index 000000000000..17e4d6cabb1f --- /dev/null +++ b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/DocumentAiDocumentService.java @@ -0,0 +1,174 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the 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/v1beta3/document_service.proto + +package com.google.cloud.documentai.v1beta3; + +public final class DocumentAiDocumentService { + private DocumentAiDocumentService() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_documentai_v1beta3_UpdateDatasetRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_documentai_v1beta3_UpdateDatasetRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_documentai_v1beta3_UpdateDatasetOperationMetadata_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_documentai_v1beta3_UpdateDatasetOperationMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_documentai_v1beta3_GetDatasetSchemaRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_documentai_v1beta3_GetDatasetSchemaRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_documentai_v1beta3_UpdateDatasetSchemaRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_documentai_v1beta3_UpdateDatasetSchemaRequest_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n6google/cloud/documentai/v1beta3/docume" + + "nt_service.proto\022\037google.cloud.documenta" + + "i.v1beta3\032\034google/api/annotations.proto\032" + + "\027google/api/client.proto\032\037google/api/fie" + + "ld_behavior.proto\032\031google/api/resource.p" + + "roto\032-google/cloud/documentai/v1beta3/da" + + "taset.proto\0328google/cloud/documentai/v1b" + + "eta3/operation_metadata.proto\032#google/lo" + + "ngrunning/operations.proto\032 google/proto" + + "buf/field_mask.proto\"\210\001\n\024UpdateDatasetRe" + + "quest\022?\n\007dataset\030\001 \001(\0132(.google.cloud.do" + + "cumentai.v1beta3.DatasetB\004\342A\001\002\022/\n\013update" + + "_mask\030\002 \001(\0132\032.google.protobuf.FieldMask\"" + + "s\n\036UpdateDatasetOperationMetadata\022Q\n\017com" + + "mon_metadata\030\001 \001(\01328.google.cloud.docume" + + "ntai.v1beta3.CommonOperationMetadata\"v\n\027" + + "GetDatasetSchemaRequest\022>\n\004name\030\001 \001(\tB0\342" + + "A\001\002\372A)\n\'documentai.googleapis.com/Datase" + + "tSchema\022\033\n\023visible_fields_only\030\002 \001(\010\"\233\001\n" + + "\032UpdateDatasetSchemaRequest\022L\n\016dataset_s" + + "chema\030\001 \001(\0132..google.cloud.documentai.v1" + + "beta3.DatasetSchemaB\004\342A\001\002\022/\n\013update_mask" + + "\030\002 \001(\0132\032.google.protobuf.FieldMask2\317\006\n\017D" + + "ocumentService\022\376\001\n\rUpdateDataset\0225.googl" + + "e.cloud.documentai.v1beta3.UpdateDataset" + + "Request\032\035.google.longrunning.Operation\"\226" + + "\001\312A)\n\007Dataset\022\036UpdateDatasetOperationMet" + + "adata\332A\023dataset,update_mask\202\323\344\223\002N2C/v1be" + + "ta3/{dataset.name=projects/*/locations/*" + + "/processors/*/dataset}:\007dataset\022\326\001\n\020GetD" + + "atasetSchema\0228.google.cloud.documentai.v" + + "1beta3.GetDatasetSchemaRequest\032..google." + + "cloud.documentai.v1beta3.DatasetSchema\"X" + + "\332A\004name\202\323\344\223\002K\022I/v1beta3/{name=projects/*" + + "/locations/*/processors/*/dataset/datase" + + "tSchema}\022\222\002\n\023UpdateDatasetSchema\022;.googl" + + "e.cloud.documentai.v1beta3.UpdateDataset" + + "SchemaRequest\032..google.cloud.documentai." + + "v1beta3.DatasetSchema\"\215\001\332A\032dataset_schem" + + "a,update_mask\202\323\344\223\002j2X/v1beta3/{dataset_s" + + "chema.name=projects/*/locations/*/proces" + + "sors/*/dataset/datasetSchema}:\016dataset_s" + + "chema\032M\312A\031documentai.googleapis.com\322A.ht" + + "tps://www.googleapis.com/auth/cloud-plat" + + "formB\360\001\n#com.google.cloud.documentai.v1b" + + "eta3B\031DocumentAiDocumentServiceP\001ZCcloud" + + ".google.com/go/documentai/apiv1beta3/doc" + + "umentaipb;documentaipb\252\002\037Google.Cloud.Do" + + "cumentAI.V1Beta3\312\002\037Google\\Cloud\\Document" + + "AI\\V1beta3\352\002\"Google::Cloud::DocumentAI::" + + "V1beta3b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + com.google.api.ClientProto.getDescriptor(), + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.cloud.documentai.v1beta3.DatasetProto.getDescriptor(), + com.google.cloud.documentai.v1beta3.OperationMetadataProto.getDescriptor(), + com.google.longrunning.OperationsProto.getDescriptor(), + com.google.protobuf.FieldMaskProto.getDescriptor(), + }); + internal_static_google_cloud_documentai_v1beta3_UpdateDatasetRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_documentai_v1beta3_UpdateDatasetRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_documentai_v1beta3_UpdateDatasetRequest_descriptor, + new java.lang.String[] { + "Dataset", "UpdateMask", + }); + internal_static_google_cloud_documentai_v1beta3_UpdateDatasetOperationMetadata_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_documentai_v1beta3_UpdateDatasetOperationMetadata_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_documentai_v1beta3_UpdateDatasetOperationMetadata_descriptor, + new java.lang.String[] { + "CommonMetadata", + }); + internal_static_google_cloud_documentai_v1beta3_GetDatasetSchemaRequest_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_documentai_v1beta3_GetDatasetSchemaRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_documentai_v1beta3_GetDatasetSchemaRequest_descriptor, + new java.lang.String[] { + "Name", "VisibleFieldsOnly", + }); + internal_static_google_cloud_documentai_v1beta3_UpdateDatasetSchemaRequest_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_documentai_v1beta3_UpdateDatasetSchemaRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_documentai_v1beta3_UpdateDatasetSchemaRequest_descriptor, + new java.lang.String[] { + "DatasetSchema", "UpdateMask", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ClientProto.defaultHost); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.AnnotationsProto.http); + registry.add(com.google.api.ClientProto.methodSignature); + registry.add(com.google.api.ClientProto.oauthScopes); + registry.add(com.google.api.ResourceProto.resourceReference); + registry.add(com.google.longrunning.OperationsProto.operationInfo); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.api.ClientProto.getDescriptor(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.cloud.documentai.v1beta3.DatasetProto.getDescriptor(); + com.google.cloud.documentai.v1beta3.OperationMetadataProto.getDescriptor(); + com.google.longrunning.OperationsProto.getDescriptor(); + com.google.protobuf.FieldMaskProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/DocumentAiProcessor.java b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/DocumentAiProcessor.java index 4b5e24b6bf7e..9e4cae0afd81 100644 --- a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/DocumentAiProcessor.java +++ b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/DocumentAiProcessor.java @@ -55,7 +55,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "umentai/v1beta3/document_schema.proto\0320g" + "oogle/cloud/documentai/v1beta3/evaluatio" + "n.proto\032\037google/protobuf/timestamp.proto" - + "\"\265\007\n\020ProcessorVersion\022\014\n\004name\030\001 \001(\t\022\024\n\014d" + + "\"\304\007\n\020ProcessorVersion\022\014\n\004name\030\001 \001(\t\022\024\n\014d" + "isplay_name\030\002 \001(\t\022H\n\017document_schema\030\014 \001" + "(\0132/.google.cloud.documentai.v1beta3.Doc" + "umentSchema\022F\n\005state\030\006 \001(\01627.google.clou" @@ -71,35 +71,35 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "fo\0224\n\020deprecation_time\030\001 \001(\0132\032.google.pr" + "otobuf.Timestamp\022V\n\035replacement_processo" + "r_version\030\002 \001(\tB/\372A,\n*documentai.googlea" - + "pis.com/ProcessorVersion\"\204\001\n\005State\022\025\n\021ST" + + "pis.com/ProcessorVersion\"\223\001\n\005State\022\025\n\021ST" + "ATE_UNSPECIFIED\020\000\022\014\n\010DEPLOYED\020\001\022\r\n\tDEPLO" + "YING\020\002\022\016\n\nUNDEPLOYED\020\003\022\017\n\013UNDEPLOYING\020\004\022" - + "\014\n\010CREATING\020\005\022\014\n\010DELETING\020\006\022\n\n\006FAILED\020\007:" - + "\226\001\352A\222\001\n*documentai.googleapis.com/Proces" - + "sorVersion\022dprojects/{project}/locations" - + "/{location}/processors/{processor}/proce" - + "ssorVersions/{processor_version}\"\261\004\n\tPro" - + "cessor\022\023\n\004name\030\001 \001(\tB\005\342A\002\005\003\022\014\n\004type\030\002 \001(" - + "\t\022\024\n\014display_name\030\003 \001(\t\022E\n\005state\030\004 \001(\01620" - + ".google.cloud.documentai.v1beta3.Process" - + "or.StateB\004\342A\001\003\022R\n\031default_processor_vers" - + "ion\030\t \001(\tB/\372A,\n*documentai.googleapis.co" - + "m/ProcessorVersion\022\037\n\020process_endpoint\030\006" - + " \001(\tB\005\342A\002\003\005\022/\n\013create_time\030\007 \001(\0132\032.googl" - + "e.protobuf.Timestamp\022\024\n\014kms_key_name\030\010 \001" - + "(\t\"~\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022\013\n\007EN" - + "ABLED\020\001\022\014\n\010DISABLED\020\002\022\014\n\010ENABLING\020\003\022\r\n\tD" - + "ISABLING\020\004\022\014\n\010CREATING\020\005\022\n\n\006FAILED\020\006\022\014\n\010" - + "DELETING\020\007:h\352Ae\n#documentai.googleapis.c" - + "om/Processor\022>projects/{project}/locatio" - + "ns/{location}/processors/{processor}B\352\001\n" - + "#com.google.cloud.documentai.v1beta3B\023Do" - + "cumentAiProcessorP\001ZCcloud.google.com/go" - + "/documentai/apiv1beta3/documentaipb;docu" - + "mentaipb\252\002\037Google.Cloud.DocumentAI.V1Bet" - + "a3\312\002\037Google\\Cloud\\DocumentAI\\V1beta3\352\002\"G" - + "oogle::Cloud::DocumentAI::V1beta3b\006proto" - + "3" + + "\014\n\010CREATING\020\005\022\014\n\010DELETING\020\006\022\n\n\006FAILED\020\007\022" + + "\r\n\tIMPORTING\020\010:\226\001\352A\222\001\n*documentai.google" + + "apis.com/ProcessorVersion\022dprojects/{pro" + + "ject}/locations/{location}/processors/{p" + + "rocessor}/processorVersions/{processor_v" + + "ersion}\"\261\004\n\tProcessor\022\023\n\004name\030\001 \001(\tB\005\342A\002" + + "\005\003\022\014\n\004type\030\002 \001(\t\022\024\n\014display_name\030\003 \001(\t\022E" + + "\n\005state\030\004 \001(\01620.google.cloud.documentai." + + "v1beta3.Processor.StateB\004\342A\001\003\022R\n\031default" + + "_processor_version\030\t \001(\tB/\372A,\n*documenta" + + "i.googleapis.com/ProcessorVersion\022\037\n\020pro" + + "cess_endpoint\030\006 \001(\tB\005\342A\002\003\005\022/\n\013create_tim" + + "e\030\007 \001(\0132\032.google.protobuf.Timestamp\022\024\n\014k" + + "ms_key_name\030\010 \001(\t\"~\n\005State\022\025\n\021STATE_UNSP" + + "ECIFIED\020\000\022\013\n\007ENABLED\020\001\022\014\n\010DISABLED\020\002\022\014\n\010" + + "ENABLING\020\003\022\r\n\tDISABLING\020\004\022\014\n\010CREATING\020\005\022" + + "\n\n\006FAILED\020\006\022\014\n\010DELETING\020\007:h\352Ae\n#document" + + "ai.googleapis.com/Processor\022>projects/{p" + + "roject}/locations/{location}/processors/" + + "{processor}B\352\001\n#com.google.cloud.documen" + + "tai.v1beta3B\023DocumentAiProcessorP\001ZCclou" + + "d.google.com/go/documentai/apiv1beta3/do" + + "cumentaipb;documentaipb\252\002\037Google.Cloud.D" + + "ocumentAI.V1Beta3\312\002\037Google\\Cloud\\Documen" + + "tAI\\V1beta3\352\002\"Google::Cloud::DocumentAI:" + + ":V1beta3b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/DocumentAiProcessorService.java b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/DocumentAiProcessorService.java index 4d939a0412f0..863ec784bfb2 100644 --- a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/DocumentAiProcessorService.java +++ b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/DocumentAiProcessorService.java @@ -199,6 +199,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_documentai_v1beta3_TrainProcessorVersionRequest_InputData_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_documentai_v1beta3_TrainProcessorVersionRequest_InputData_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_documentai_v1beta3_TrainProcessorVersionRequest_CustomDocumentExtractionOptions_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_documentai_v1beta3_TrainProcessorVersionRequest_CustomDocumentExtractionOptions_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_documentai_v1beta3_TrainProcessorVersionResponse_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -283,392 +287,404 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "ogle/cloud/documentai/v1beta3/processor." + "proto\0324google/cloud/documentai/v1beta3/p" + "rocessor_type.proto\032#google/longrunning/" - + "operations.proto\032 google/protobuf/field_" - + "mask.proto\032\037google/protobuf/timestamp.pr" - + "oto\032\027google/rpc/status.proto\"P\n\016ProcessO" - + "ptions\022>\n\nocr_config\030\001 \001(\0132*.google.clou" - + "d.documentai.v1beta3.OcrConfig\"\226\003\n\016Proce" - + "ssRequest\022D\n\017inline_document\030\004 \001(\0132).goo" - + "gle.cloud.documentai.v1beta3.DocumentH\000\022" - + "D\n\014raw_document\030\005 \001(\0132,.google.cloud.doc" - + "umentai.v1beta3.RawDocumentH\000\022\030\n\004name\030\001 " - + "\001(\tB\n\342A\001\002\372A\003\n\001*\022?\n\010document\030\002 \001(\0132).goog" - + "le.cloud.documentai.v1beta3.DocumentB\002\030\001" - + "\022\031\n\021skip_human_review\030\003 \001(\010\022.\n\nfield_mas" - + "k\030\006 \001(\0132\032.google.protobuf.FieldMask\022H\n\017p" - + "rocess_options\030\007 \001(\0132/.google.cloud.docu" - + "mentai.v1beta3.ProcessOptionsB\010\n\006source\"" - + "\363\001\n\021HumanReviewStatus\022G\n\005state\030\001 \001(\01628.g" - + "oogle.cloud.documentai.v1beta3.HumanRevi" - + "ewStatus.State\022\025\n\rstate_message\030\002 \001(\t\022\036\n" - + "\026human_review_operation\030\003 \001(\t\"^\n\005State\022\025" - + "\n\021STATE_UNSPECIFIED\020\000\022\013\n\007SKIPPED\020\001\022\025\n\021VA" - + "LIDATION_PASSED\020\002\022\017\n\013IN_PROGRESS\020\003\022\t\n\005ER" - + "ROR\020\004\"\303\001\n\017ProcessResponse\022;\n\010document\030\001 " - + "\001(\0132).google.cloud.documentai.v1beta3.Do" - + "cument\022\"\n\026human_review_operation\030\002 \001(\tB\002" - + "\030\001\022O\n\023human_review_status\030\003 \001(\01322.google" - + ".cloud.documentai.v1beta3.HumanReviewSta" - + "tus\"\366\004\n\023BatchProcessRequest\022\030\n\004name\030\001 \001(" - + "\tB\n\342A\001\002\372A\003\n\001*\022`\n\rinput_configs\030\002 \003(\0132E.g" - + "oogle.cloud.documentai.v1beta3.BatchProc" - + "essRequest.BatchInputConfigB\002\030\001\022a\n\routpu" - + "t_config\030\003 \001(\0132F.google.cloud.documentai" - + ".v1beta3.BatchProcessRequest.BatchOutput" - + "ConfigB\002\030\001\022S\n\017input_documents\030\005 \001(\0132:.go" - + "ogle.cloud.documentai.v1beta3.BatchDocum" - + "entsInputConfig\022U\n\026document_output_confi" - + "g\030\006 \001(\01325.google.cloud.documentai.v1beta" - + "3.DocumentOutputConfig\022\031\n\021skip_human_rev" - + "iew\030\004 \001(\010\022H\n\017process_options\030\007 \001(\0132/.goo" - + "gle.cloud.documentai.v1beta3.ProcessOpti" - + "ons\032=\n\020BatchInputConfig\022\022\n\ngcs_source\030\001 " - + "\001(\t\022\021\n\tmime_type\030\002 \001(\t:\002\030\001\0320\n\021BatchOutpu" - + "tConfig\022\027\n\017gcs_destination\030\001 \001(\t:\002\030\001\"\026\n\024" - + "BatchProcessResponse\"\262\005\n\024BatchProcessMet" - + "adata\022J\n\005state\030\001 \001(\0162;.google.cloud.docu" - + "mentai.v1beta3.BatchProcessMetadata.Stat" - + "e\022\025\n\rstate_message\030\002 \001(\t\022/\n\013create_time\030" - + "\003 \001(\0132\032.google.protobuf.Timestamp\022/\n\013upd" - + "ate_time\030\004 \001(\0132\032.google.protobuf.Timesta" - + "mp\022r\n\033individual_process_statuses\030\005 \003(\0132" - + "M.google.cloud.documentai.v1beta3.BatchP" - + "rocessMetadata.IndividualProcessStatus\032\354" - + "\001\n\027IndividualProcessStatus\022\030\n\020input_gcs_" - + "source\030\001 \001(\t\022\"\n\006status\030\002 \001(\0132\022.google.rp" - + "c.Status\022\036\n\026output_gcs_destination\030\003 \001(\t" - + "\022\"\n\026human_review_operation\030\004 \001(\tB\002\030\001\022O\n\023" - + "human_review_status\030\005 \001(\01322.google.cloud" - + ".documentai.v1beta3.HumanReviewStatus\"r\n" - + "\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022\013\n\007WAITING" - + "\020\001\022\013\n\007RUNNING\020\002\022\r\n\tSUCCEEDED\020\003\022\016\n\nCANCEL" - + "LING\020\004\022\r\n\tCANCELLED\020\005\022\n\n\006FAILED\020\006\"^\n\032Fet" - + "chProcessorTypesRequest\022@\n\006parent\030\001 \001(\tB" - + "0\342A\001\002\372A)\022\'documentai.googleapis.com/Proc" - + "essorType\"f\n\033FetchProcessorTypesResponse" - + "\022G\n\017processor_types\030\001 \003(\0132..google.cloud" - + ".documentai.v1beta3.ProcessorType\"\204\001\n\031Li" - + "stProcessorTypesRequest\022@\n\006parent\030\001 \001(\tB" - + "0\342A\001\002\372A)\022\'documentai.googleapis.com/Proc" - + "essorType\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_tok" - + "en\030\003 \001(\t\"~\n\032ListProcessorTypesResponse\022G" - + "\n\017processor_types\030\001 \003(\0132..google.cloud.d" - + "ocumentai.v1beta3.ProcessorType\022\027\n\017next_" - + "page_token\030\002 \001(\t\"|\n\025ListProcessorsReques" - + "t\022<\n\006parent\030\001 \001(\tB,\342A\001\002\372A%\022#documentai.g" - + "oogleapis.com/Processor\022\021\n\tpage_size\030\002 \001" - + "(\005\022\022\n\npage_token\030\003 \001(\t\"q\n\026ListProcessors" - + "Response\022>\n\nprocessors\030\001 \003(\0132*.google.cl" - + "oud.documentai.v1beta3.Processor\022\027\n\017next" - + "_page_token\030\002 \001(\t\"Y\n\027GetProcessorTypeReq" - + "uest\022>\n\004name\030\001 \001(\tB0\342A\001\002\372A)\n\'documentai." - + "googleapis.com/ProcessorType\"Q\n\023GetProce" - + "ssorRequest\022:\n\004name\030\001 \001(\tB,\342A\001\002\372A%\n#docu" - + "mentai.googleapis.com/Processor\"_\n\032GetPr" - + "ocessorVersionRequest\022A\n\004name\030\001 \001(\tB3\342A\001" - + "\002\372A,\n*documentai.googleapis.com/Processo" - + "rVersion\"\212\001\n\034ListProcessorVersionsReques" - + "t\022C\n\006parent\030\001 \001(\tB3\342A\001\002\372A,\022*documentai.g" - + "oogleapis.com/ProcessorVersion\022\021\n\tpage_s" - + "ize\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"\207\001\n\035ListPr" - + "ocessorVersionsResponse\022M\n\022processor_ver" - + "sions\030\001 \003(\01321.google.cloud.documentai.v1" - + "beta3.ProcessorVersion\022\027\n\017next_page_toke" - + "n\030\002 \001(\t\"b\n\035DeleteProcessorVersionRequest" - + "\022A\n\004name\030\001 \001(\tB3\342A\001\002\372A,\n*documentai.goog" - + "leapis.com/ProcessorVersion\"s\n\036DeletePro" + + "operations.proto\032\033google/protobuf/empty." + + "proto\032 google/protobuf/field_mask.proto\032" + + "\037google/protobuf/timestamp.proto\032\027google" + + "/rpc/status.proto\"P\n\016ProcessOptions\022>\n\no" + + "cr_config\030\001 \001(\0132*.google.cloud.documenta" + + "i.v1beta3.OcrConfig\"\226\003\n\016ProcessRequest\022D" + + "\n\017inline_document\030\004 \001(\0132).google.cloud.d" + + "ocumentai.v1beta3.DocumentH\000\022D\n\014raw_docu" + + "ment\030\005 \001(\0132,.google.cloud.documentai.v1b" + + "eta3.RawDocumentH\000\022\030\n\004name\030\001 \001(\tB\n\342A\001\002\372A" + + "\003\n\001*\022?\n\010document\030\002 \001(\0132).google.cloud.do" + + "cumentai.v1beta3.DocumentB\002\030\001\022\031\n\021skip_hu" + + "man_review\030\003 \001(\010\022.\n\nfield_mask\030\006 \001(\0132\032.g" + + "oogle.protobuf.FieldMask\022H\n\017process_opti" + + "ons\030\007 \001(\0132/.google.cloud.documentai.v1be" + + "ta3.ProcessOptionsB\010\n\006source\"\363\001\n\021HumanRe" + + "viewStatus\022G\n\005state\030\001 \001(\01628.google.cloud" + + ".documentai.v1beta3.HumanReviewStatus.St" + + "ate\022\025\n\rstate_message\030\002 \001(\t\022\036\n\026human_revi" + + "ew_operation\030\003 \001(\t\"^\n\005State\022\025\n\021STATE_UNS" + + "PECIFIED\020\000\022\013\n\007SKIPPED\020\001\022\025\n\021VALIDATION_PA" + + "SSED\020\002\022\017\n\013IN_PROGRESS\020\003\022\t\n\005ERROR\020\004\"\303\001\n\017P" + + "rocessResponse\022;\n\010document\030\001 \001(\0132).googl" + + "e.cloud.documentai.v1beta3.Document\022\"\n\026h" + + "uman_review_operation\030\002 \001(\tB\002\030\001\022O\n\023human" + + "_review_status\030\003 \001(\01322.google.cloud.docu" + + "mentai.v1beta3.HumanReviewStatus\"\366\004\n\023Bat" + + "chProcessRequest\022\030\n\004name\030\001 \001(\tB\n\342A\001\002\372A\003\n" + + "\001*\022`\n\rinput_configs\030\002 \003(\0132E.google.cloud" + + ".documentai.v1beta3.BatchProcessRequest." + + "BatchInputConfigB\002\030\001\022a\n\routput_config\030\003 " + + "\001(\0132F.google.cloud.documentai.v1beta3.Ba" + + "tchProcessRequest.BatchOutputConfigB\002\030\001\022" + + "S\n\017input_documents\030\005 \001(\0132:.google.cloud." + + "documentai.v1beta3.BatchDocumentsInputCo" + + "nfig\022U\n\026document_output_config\030\006 \001(\01325.g" + + "oogle.cloud.documentai.v1beta3.DocumentO" + + "utputConfig\022\031\n\021skip_human_review\030\004 \001(\010\022H" + + "\n\017process_options\030\007 \001(\0132/.google.cloud.d" + + "ocumentai.v1beta3.ProcessOptions\032=\n\020Batc" + + "hInputConfig\022\022\n\ngcs_source\030\001 \001(\t\022\021\n\tmime" + + "_type\030\002 \001(\t:\002\030\001\0320\n\021BatchOutputConfig\022\027\n\017" + + "gcs_destination\030\001 \001(\t:\002\030\001\"\026\n\024BatchProces" + + "sResponse\"\262\005\n\024BatchProcessMetadata\022J\n\005st" + + "ate\030\001 \001(\0162;.google.cloud.documentai.v1be" + + "ta3.BatchProcessMetadata.State\022\025\n\rstate_" + + "message\030\002 \001(\t\022/\n\013create_time\030\003 \001(\0132\032.goo" + + "gle.protobuf.Timestamp\022/\n\013update_time\030\004 " + + "\001(\0132\032.google.protobuf.Timestamp\022r\n\033indiv" + + "idual_process_statuses\030\005 \003(\0132M.google.cl" + + "oud.documentai.v1beta3.BatchProcessMetad" + + "ata.IndividualProcessStatus\032\354\001\n\027Individu" + + "alProcessStatus\022\030\n\020input_gcs_source\030\001 \001(" + + "\t\022\"\n\006status\030\002 \001(\0132\022.google.rpc.Status\022\036\n" + + "\026output_gcs_destination\030\003 \001(\t\022\"\n\026human_r" + + "eview_operation\030\004 \001(\tB\002\030\001\022O\n\023human_revie" + + "w_status\030\005 \001(\01322.google.cloud.documentai" + + ".v1beta3.HumanReviewStatus\"r\n\005State\022\025\n\021S" + + "TATE_UNSPECIFIED\020\000\022\013\n\007WAITING\020\001\022\013\n\007RUNNI" + + "NG\020\002\022\r\n\tSUCCEEDED\020\003\022\016\n\nCANCELLING\020\004\022\r\n\tC" + + "ANCELLED\020\005\022\n\n\006FAILED\020\006\"^\n\032FetchProcessor" + + "TypesRequest\022@\n\006parent\030\001 \001(\tB0\342A\001\002\372A)\022\'d" + + "ocumentai.googleapis.com/ProcessorType\"f" + + "\n\033FetchProcessorTypesResponse\022G\n\017process" + + "or_types\030\001 \003(\0132..google.cloud.documentai" + + ".v1beta3.ProcessorType\"\204\001\n\031ListProcessor" + + "TypesRequest\022@\n\006parent\030\001 \001(\tB0\342A\001\002\372A)\022\'d" + + "ocumentai.googleapis.com/ProcessorType\022\021" + + "\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"~\n" + + "\032ListProcessorTypesResponse\022G\n\017processor" + + "_types\030\001 \003(\0132..google.cloud.documentai.v" + + "1beta3.ProcessorType\022\027\n\017next_page_token\030" + + "\002 \001(\t\"|\n\025ListProcessorsRequest\022<\n\006parent" + + "\030\001 \001(\tB,\342A\001\002\372A%\022#documentai.googleapis.c" + + "om/Processor\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_" + + "token\030\003 \001(\t\"q\n\026ListProcessorsResponse\022>\n" + + "\nprocessors\030\001 \003(\0132*.google.cloud.documen" + + "tai.v1beta3.Processor\022\027\n\017next_page_token" + + "\030\002 \001(\t\"Y\n\027GetProcessorTypeRequest\022>\n\004nam" + + "e\030\001 \001(\tB0\342A\001\002\372A)\n\'documentai.googleapis." + + "com/ProcessorType\"Q\n\023GetProcessorRequest" + + "\022:\n\004name\030\001 \001(\tB,\342A\001\002\372A%\n#documentai.goog" + + "leapis.com/Processor\"_\n\032GetProcessorVers" + + "ionRequest\022A\n\004name\030\001 \001(\tB3\342A\001\002\372A,\n*docum" + + "entai.googleapis.com/ProcessorVersion\"\212\001" + + "\n\034ListProcessorVersionsRequest\022C\n\006parent" + + "\030\001 \001(\tB3\342A\001\002\372A,\022*documentai.googleapis.c" + + "om/ProcessorVersion\022\021\n\tpage_size\030\002 \001(\005\022\022" + + "\n\npage_token\030\003 \001(\t\"\207\001\n\035ListProcessorVers" + + "ionsResponse\022M\n\022processor_versions\030\001 \003(\013" + + "21.google.cloud.documentai.v1beta3.Proce" + + "ssorVersion\022\027\n\017next_page_token\030\002 \001(\t\"b\n\035" + + "DeleteProcessorVersionRequest\022A\n\004name\030\001 " + + "\001(\tB3\342A\001\002\372A,\n*documentai.googleapis.com/" + + "ProcessorVersion\"s\n\036DeleteProcessorVersi" + + "onMetadata\022Q\n\017common_metadata\030\001 \001(\01328.go" + + "ogle.cloud.documentai.v1beta3.CommonOper" + + "ationMetadata\"b\n\035DeployProcessorVersionR" + + "equest\022A\n\004name\030\001 \001(\tB3\342A\001\002\372A,\n*documenta" + + "i.googleapis.com/ProcessorVersion\" \n\036Dep" + + "loyProcessorVersionResponse\"s\n\036DeployPro" + "cessorVersionMetadata\022Q\n\017common_metadata" + "\030\001 \001(\01328.google.cloud.documentai.v1beta3" - + ".CommonOperationMetadata\"b\n\035DeployProces" - + "sorVersionRequest\022A\n\004name\030\001 \001(\tB3\342A\001\002\372A," - + "\n*documentai.googleapis.com/ProcessorVer" - + "sion\" \n\036DeployProcessorVersionResponse\"s" - + "\n\036DeployProcessorVersionMetadata\022Q\n\017comm" - + "on_metadata\030\001 \001(\01328.google.cloud.documen" - + "tai.v1beta3.CommonOperationMetadata\"d\n\037U" - + "ndeployProcessorVersionRequest\022A\n\004name\030\001" - + " \001(\tB3\342A\001\002\372A,\n*documentai.googleapis.com" - + "/ProcessorVersion\"\"\n UndeployProcessorVe" - + "rsionResponse\"u\n UndeployProcessorVersio" - + "nMetadata\022Q\n\017common_metadata\030\001 \001(\01328.goo" - + "gle.cloud.documentai.v1beta3.CommonOpera" - + "tionMetadata\"\233\001\n\026CreateProcessorRequest\022" - + "<\n\006parent\030\001 \001(\tB,\342A\001\002\372A%\022#documentai.goo" - + "gleapis.com/Processor\022C\n\tprocessor\030\002 \001(\013" - + "2*.google.cloud.documentai.v1beta3.Proce" - + "ssorB\004\342A\001\002\"T\n\026DeleteProcessorRequest\022:\n\004" - + "name\030\001 \001(\tB,\342A\001\002\372A%\n#documentai.googleap" - + "is.com/Processor\"l\n\027DeleteProcessorMetad" - + "ata\022Q\n\017common_metadata\030\005 \001(\01328.google.cl" - + "oud.documentai.v1beta3.CommonOperationMe" - + "tadata\"T\n\026EnableProcessorRequest\022:\n\004name" - + "\030\001 \001(\tB,\342A\001\002\372A%\n#documentai.googleapis.c" - + "om/Processor\"\031\n\027EnableProcessorResponse\"" - + "l\n\027EnableProcessorMetadata\022Q\n\017common_met" - + "adata\030\005 \001(\01328.google.cloud.documentai.v1" - + "beta3.CommonOperationMetadata\"U\n\027Disable" - + "ProcessorRequest\022:\n\004name\030\001 \001(\tB,\342A\001\002\372A%\n" - + "#documentai.googleapis.com/Processor\"\032\n\030" - + "DisableProcessorResponse\"m\n\030DisableProce" - + "ssorMetadata\022Q\n\017common_metadata\030\005 \001(\01328." - + "google.cloud.documentai.v1beta3.CommonOp" - + "erationMetadata\"\274\001\n!SetDefaultProcessorV" - + "ersionRequest\022?\n\tprocessor\030\001 \001(\tB,\342A\001\002\372A" - + "%\n#documentai.googleapis.com/Processor\022V" - + "\n\031default_processor_version\030\002 \001(\tB3\342A\001\002\372" + + ".CommonOperationMetadata\"d\n\037UndeployProc" + + "essorVersionRequest\022A\n\004name\030\001 \001(\tB3\342A\001\002\372" + "A,\n*documentai.googleapis.com/ProcessorV" - + "ersion\"$\n\"SetDefaultProcessorVersionResp" - + "onse\"w\n\"SetDefaultProcessorVersionMetada" - + "ta\022Q\n\017common_metadata\030\001 \001(\01328.google.clo" - + "ud.documentai.v1beta3.CommonOperationMet" - + "adata\"\303\004\n\034TrainProcessorVersionRequest\022<" - + "\n\006parent\030\001 \001(\tB,\342A\001\002\372A%\n#documentai.goog" - + "leapis.com/Processor\022R\n\021processor_versio" - + "n\030\002 \001(\01321.google.cloud.documentai.v1beta" - + "3.ProcessorVersionB\004\342A\001\002\022N\n\017document_sch" - + "ema\030\n \001(\0132/.google.cloud.documentai.v1be" - + "ta3.DocumentSchemaB\004\342A\001\001\022a\n\ninput_data\030\004" - + " \001(\0132G.google.cloud.documentai.v1beta3.T" - + "rainProcessorVersionRequest.InputDataB\004\342" - + "A\001\001\022$\n\026base_processor_version\030\010 \001(\tB\004\342A\001" - + "\001\032\267\001\n\tInputData\022V\n\022training_documents\030\003 " - + "\001(\0132:.google.cloud.documentai.v1beta3.Ba" - + "tchDocumentsInputConfig\022R\n\016test_document" - + "s\030\004 \001(\0132:.google.cloud.documentai.v1beta" - + "3.BatchDocumentsInputConfig\":\n\035TrainProc" - + "essorVersionResponse\022\031\n\021processor_versio" - + "n\030\001 \001(\t\"\206\004\n\035TrainProcessorVersionMetadat" - + "a\022Q\n\017common_metadata\030\001 \001(\01328.google.clou" + + "ersion\"\"\n UndeployProcessorVersionRespon" + + "se\"u\n UndeployProcessorVersionMetadata\022Q" + + "\n\017common_metadata\030\001 \001(\01328.google.cloud.d" + + "ocumentai.v1beta3.CommonOperationMetadat" + + "a\"\233\001\n\026CreateProcessorRequest\022<\n\006parent\030\001" + + " \001(\tB,\342A\001\002\372A%\022#documentai.googleapis.com" + + "/Processor\022C\n\tprocessor\030\002 \001(\0132*.google.c" + + "loud.documentai.v1beta3.ProcessorB\004\342A\001\002\"" + + "T\n\026DeleteProcessorRequest\022:\n\004name\030\001 \001(\tB" + + ",\342A\001\002\372A%\n#documentai.googleapis.com/Proc" + + "essor\"l\n\027DeleteProcessorMetadata\022Q\n\017comm" + + "on_metadata\030\005 \001(\01328.google.cloud.documen" + + "tai.v1beta3.CommonOperationMetadata\"T\n\026E" + + "nableProcessorRequest\022:\n\004name\030\001 \001(\tB,\342A\001" + + "\002\372A%\n#documentai.googleapis.com/Processo" + + "r\"\031\n\027EnableProcessorResponse\"l\n\027EnablePr" + + "ocessorMetadata\022Q\n\017common_metadata\030\005 \001(\013" + + "28.google.cloud.documentai.v1beta3.Commo" + + "nOperationMetadata\"U\n\027DisableProcessorRe" + + "quest\022:\n\004name\030\001 \001(\tB,\342A\001\002\372A%\n#documentai" + + ".googleapis.com/Processor\"\032\n\030DisableProc" + + "essorResponse\"m\n\030DisableProcessorMetadat" + + "a\022Q\n\017common_metadata\030\005 \001(\01328.google.clou" + "d.documentai.v1beta3.CommonOperationMeta" - + "data\022u\n\033training_dataset_validation\030\002 \001(" - + "\0132P.google.cloud.documentai.v1beta3.Trai" - + "nProcessorVersionMetadata.DatasetValidat" - + "ion\022q\n\027test_dataset_validation\030\003 \001(\0132P.g" - + "oogle.cloud.documentai.v1beta3.TrainProc" - + "essorVersionMetadata.DatasetValidation\032\247" - + "\001\n\021DatasetValidation\022\034\n\024document_error_c" - + "ount\030\003 \001(\005\022\033\n\023dataset_error_count\030\004 \001(\005\022" - + "+\n\017document_errors\030\001 \003(\0132\022.google.rpc.St" - + "atus\022*\n\016dataset_errors\030\002 \003(\0132\022.google.rp" - + "c.Status\"\337\003\n\025ReviewDocumentRequest\022D\n\017in" - + "line_document\030\004 \001(\0132).google.cloud.docum" - + "entai.v1beta3.DocumentH\000\022Q\n\023human_review" - + "_config\030\001 \001(\tB4\342A\001\002\372A-\n+documentai.googl" - + "eapis.com/HumanReviewConfig\022?\n\010document\030" - + "\002 \001(\0132).google.cloud.documentai.v1beta3." - + "DocumentB\002\030\001\022 \n\030enable_schema_validation" - + "\030\003 \001(\010\022Q\n\010priority\030\005 \001(\0162?.google.cloud." - + "documentai.v1beta3.ReviewDocumentRequest" - + ".Priority\022H\n\017document_schema\030\006 \001(\0132/.goo" - + "gle.cloud.documentai.v1beta3.DocumentSch" - + "ema\"#\n\010Priority\022\013\n\007DEFAULT\020\000\022\n\n\006URGENT\020\001" - + "B\010\n\006source\"\326\001\n\026ReviewDocumentResponse\022\027\n" - + "\017gcs_destination\030\001 \001(\t\022L\n\005state\030\002 \001(\0162=." - + "google.cloud.documentai.v1beta3.ReviewDo" - + "cumentResponse.State\022\030\n\020rejection_reason" - + "\030\003 \001(\t\";\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022\014" - + "\n\010REJECTED\020\001\022\r\n\tSUCCEEDED\020\002\"\300\003\n\037ReviewDo" - + "cumentOperationMetadata\022U\n\005state\030\001 \001(\0162F" - + ".google.cloud.documentai.v1beta3.ReviewD" - + "ocumentOperationMetadata.State\022\025\n\rstate_" - + "message\030\002 \001(\t\022/\n\013create_time\030\003 \001(\0132\032.goo" - + "gle.protobuf.Timestamp\022/\n\013update_time\030\004 " - + "\001(\0132\032.google.protobuf.Timestamp\022Q\n\017commo" - + "n_metadata\030\005 \001(\01328.google.cloud.document" - + "ai.v1beta3.CommonOperationMetadata\022\023\n\013qu" - + "estion_id\030\006 \001(\t\"e\n\005State\022\025\n\021STATE_UNSPEC" - + "IFIED\020\000\022\013\n\007RUNNING\020\001\022\016\n\nCANCELLING\020\002\022\r\n\t" - + "SUCCEEDED\020\003\022\n\n\006FAILED\020\004\022\r\n\tCANCELLED\020\005\"\321" - + "\001\n\037EvaluateProcessorVersionRequest\022N\n\021pr" - + "ocessor_version\030\001 \001(\tB3\342A\001\002\372A,\n*document" - + "ai.googleapis.com/ProcessorVersion\022^\n\024ev" - + "aluation_documents\030\003 \001(\0132:.google.cloud." - + "documentai.v1beta3.BatchDocumentsInputCo" - + "nfigB\004\342A\001\001\"u\n EvaluateProcessorVersionMe" - + "tadata\022Q\n\017common_metadata\030\001 \001(\01328.google" - + ".cloud.documentai.v1beta3.CommonOperatio" - + "nMetadata\"6\n EvaluateProcessorVersionRes" - + "ponse\022\022\n\nevaluation\030\002 \001(\t\"S\n\024GetEvaluati" - + "onRequest\022;\n\004name\030\001 \001(\tB-\342A\001\002\372A&\n$docume" - + "ntai.googleapis.com/Evaluation\"\204\001\n\026ListE" - + "valuationsRequest\022C\n\006parent\030\001 \001(\tB3\342A\001\002\372" - + "A,\n*documentai.googleapis.com/ProcessorV" - + "ersion\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030" - + "\003 \001(\t\"t\n\027ListEvaluationsResponse\022@\n\013eval" - + "uations\030\001 \003(\0132+.google.cloud.documentai." - + "v1beta3.Evaluation\022\027\n\017next_page_token\030\002 " - + "\001(\t\"\303\001\n\035ImportProcessorVersionRequest\022S\n" - + "\030processor_version_source\030\002 \001(\tB/\372A,\n*do" - + "cumentai.googleapis.com/ProcessorVersion" - + "H\000\022C\n\006parent\030\001 \001(\tB3\342A\001\002\372A,\022*documentai." - + "googleapis.com/ProcessorVersionB\010\n\006sourc" - + "e\"l\n\036ImportProcessorVersionResponse\022J\n\021p" - + "rocessor_version\030\001 \001(\tB/\372A,\n*documentai." - + "googleapis.com/ProcessorVersion\"s\n\036Impor" - + "tProcessorVersionMetadata\022Q\n\017common_meta" - + "data\030\001 \001(\01328.google.cloud.documentai.v1b" - + "eta3.CommonOperationMetadata2\353.\n\030Documen" - + "tProcessorService\022\233\002\n\017ProcessDocument\022/." - + "google.cloud.documentai.v1beta3.ProcessR" - + "equest\0320.google.cloud.documentai.v1beta3" - + ".ProcessResponse\"\244\001\332A\004name\202\323\344\223\002\226\001\";/v1be" - + "ta3/{name=projects/*/locations/*/process" - + "ors/*}:process:\001*ZT\"O/v1beta3/{name=proj" - + "ects/*/locations/*/processors/*/processo" - + "rVersions/*}:process:\001*\022\314\002\n\025BatchProcess" - + "Documents\0224.google.cloud.documentai.v1be" - + "ta3.BatchProcessRequest\032\035.google.longrun" - + "ning.Operation\"\335\001\312A,\n\024BatchProcessRespon" - + "se\022\024BatchProcessMetadata\332A\004name\202\323\344\223\002\240\001\"@" - + "/v1beta3/{name=projects/*/locations/*/pr" - + "ocessors/*}:batchProcess:\001*ZY\"T/v1beta3/" + + "data\"\274\001\n!SetDefaultProcessorVersionReque" + + "st\022?\n\tprocessor\030\001 \001(\tB,\342A\001\002\372A%\n#document" + + "ai.googleapis.com/Processor\022V\n\031default_p" + + "rocessor_version\030\002 \001(\tB3\342A\001\002\372A,\n*documen" + + "tai.googleapis.com/ProcessorVersion\"$\n\"S" + + "etDefaultProcessorVersionResponse\"w\n\"Set" + + "DefaultProcessorVersionMetadata\022Q\n\017commo" + + "n_metadata\030\001 \001(\01328.google.cloud.document" + + "ai.v1beta3.CommonOperationMetadata\"\350\007\n\034T" + + "rainProcessorVersionRequest\022\213\001\n\"custom_d" + + "ocument_extraction_options\030\005 \001(\0132].googl" + + "e.cloud.documentai.v1beta3.TrainProcesso" + + "rVersionRequest.CustomDocumentExtraction" + + "OptionsH\000\022<\n\006parent\030\001 \001(\tB,\342A\001\002\372A%\n#docu" + + "mentai.googleapis.com/Processor\022R\n\021proce" + + "ssor_version\030\002 \001(\01321.google.cloud.docume" + + "ntai.v1beta3.ProcessorVersionB\004\342A\001\002\022N\n\017d" + + "ocument_schema\030\n \001(\0132/.google.cloud.docu" + + "mentai.v1beta3.DocumentSchemaB\004\342A\001\001\022a\n\ni" + + "nput_data\030\004 \001(\0132G.google.cloud.documenta" + + "i.v1beta3.TrainProcessorVersionRequest.I" + + "nputDataB\004\342A\001\001\022$\n\026base_processor_version" + + "\030\010 \001(\tB\004\342A\001\001\032\267\001\n\tInputData\022V\n\022training_d" + + "ocuments\030\003 \001(\0132:.google.cloud.documentai" + + ".v1beta3.BatchDocumentsInputConfig\022R\n\016te" + + "st_documents\030\004 \001(\0132:.google.cloud.docume" + + "ntai.v1beta3.BatchDocumentsInputConfig\032\201" + + "\002\n\037CustomDocumentExtractionOptions\022\205\001\n\017t" + + "raining_method\030\003 \001(\0162l.google.cloud.docu" + + "mentai.v1beta3.TrainProcessorVersionRequ" + + "est.CustomDocumentExtractionOptions.Trai" + + "ningMethod\"V\n\016TrainingMethod\022\037\n\033TRAINING" + + "_METHOD_UNSPECIFIED\020\000\022\017\n\013MODEL_BASED\020\001\022\022" + + "\n\016TEMPLATE_BASED\020\002B\021\n\017processor_flags\":\n" + + "\035TrainProcessorVersionResponse\022\031\n\021proces" + + "sor_version\030\001 \001(\t\"\206\004\n\035TrainProcessorVers" + + "ionMetadata\022Q\n\017common_metadata\030\001 \001(\01328.g" + + "oogle.cloud.documentai.v1beta3.CommonOpe" + + "rationMetadata\022u\n\033training_dataset_valid" + + "ation\030\002 \001(\0132P.google.cloud.documentai.v1" + + "beta3.TrainProcessorVersionMetadata.Data" + + "setValidation\022q\n\027test_dataset_validation" + + "\030\003 \001(\0132P.google.cloud.documentai.v1beta3" + + ".TrainProcessorVersionMetadata.DatasetVa" + + "lidation\032\247\001\n\021DatasetValidation\022\034\n\024docume" + + "nt_error_count\030\003 \001(\005\022\033\n\023dataset_error_co" + + "unt\030\004 \001(\005\022+\n\017document_errors\030\001 \003(\0132\022.goo" + + "gle.rpc.Status\022*\n\016dataset_errors\030\002 \003(\0132\022" + + ".google.rpc.Status\"\337\003\n\025ReviewDocumentReq" + + "uest\022D\n\017inline_document\030\004 \001(\0132).google.c" + + "loud.documentai.v1beta3.DocumentH\000\022Q\n\023hu" + + "man_review_config\030\001 \001(\tB4\342A\001\002\372A-\n+docume" + + "ntai.googleapis.com/HumanReviewConfig\022?\n" + + "\010document\030\002 \001(\0132).google.cloud.documenta" + + "i.v1beta3.DocumentB\002\030\001\022 \n\030enable_schema_" + + "validation\030\003 \001(\010\022Q\n\010priority\030\005 \001(\0162?.goo" + + "gle.cloud.documentai.v1beta3.ReviewDocum" + + "entRequest.Priority\022H\n\017document_schema\030\006" + + " \001(\0132/.google.cloud.documentai.v1beta3.D" + + "ocumentSchema\"#\n\010Priority\022\013\n\007DEFAULT\020\000\022\n" + + "\n\006URGENT\020\001B\010\n\006source\"\326\001\n\026ReviewDocumentR" + + "esponse\022\027\n\017gcs_destination\030\001 \001(\t\022L\n\005stat" + + "e\030\002 \001(\0162=.google.cloud.documentai.v1beta" + + "3.ReviewDocumentResponse.State\022\030\n\020reject" + + "ion_reason\030\003 \001(\t\";\n\005State\022\025\n\021STATE_UNSPE" + + "CIFIED\020\000\022\014\n\010REJECTED\020\001\022\r\n\tSUCCEEDED\020\002\"\300\003" + + "\n\037ReviewDocumentOperationMetadata\022U\n\005sta" + + "te\030\001 \001(\0162F.google.cloud.documentai.v1bet" + + "a3.ReviewDocumentOperationMetadata.State" + + "\022\025\n\rstate_message\030\002 \001(\t\022/\n\013create_time\030\003" + + " \001(\0132\032.google.protobuf.Timestamp\022/\n\013upda" + + "te_time\030\004 \001(\0132\032.google.protobuf.Timestam" + + "p\022Q\n\017common_metadata\030\005 \001(\01328.google.clou" + + "d.documentai.v1beta3.CommonOperationMeta" + + "data\022\023\n\013question_id\030\006 \001(\t\"e\n\005State\022\025\n\021ST" + + "ATE_UNSPECIFIED\020\000\022\013\n\007RUNNING\020\001\022\016\n\nCANCEL" + + "LING\020\002\022\r\n\tSUCCEEDED\020\003\022\n\n\006FAILED\020\004\022\r\n\tCAN" + + "CELLED\020\005\"\321\001\n\037EvaluateProcessorVersionReq" + + "uest\022N\n\021processor_version\030\001 \001(\tB3\342A\001\002\372A," + + "\n*documentai.googleapis.com/ProcessorVer" + + "sion\022^\n\024evaluation_documents\030\003 \001(\0132:.goo" + + "gle.cloud.documentai.v1beta3.BatchDocume" + + "ntsInputConfigB\004\342A\001\001\"u\n EvaluateProcesso" + + "rVersionMetadata\022Q\n\017common_metadata\030\001 \001(" + + "\01328.google.cloud.documentai.v1beta3.Comm" + + "onOperationMetadata\"6\n EvaluateProcessor" + + "VersionResponse\022\022\n\nevaluation\030\002 \001(\t\"S\n\024G" + + "etEvaluationRequest\022;\n\004name\030\001 \001(\tB-\342A\001\002\372" + + "A&\n$documentai.googleapis.com/Evaluation" + + "\"\204\001\n\026ListEvaluationsRequest\022C\n\006parent\030\001 " + + "\001(\tB3\342A\001\002\372A,\n*documentai.googleapis.com/" + + "ProcessorVersion\022\021\n\tpage_size\030\002 \001(\005\022\022\n\np" + + "age_token\030\003 \001(\t\"t\n\027ListEvaluationsRespon" + + "se\022@\n\013evaluations\030\001 \003(\0132+.google.cloud.d" + + "ocumentai.v1beta3.Evaluation\022\027\n\017next_pag" + + "e_token\030\002 \001(\t\"\303\001\n\035ImportProcessorVersion" + + "Request\022S\n\030processor_version_source\030\002 \001(" + + "\tB/\372A,\n*documentai.googleapis.com/Proces" + + "sorVersionH\000\022C\n\006parent\030\001 \001(\tB3\342A\001\002\372A,\022*d" + + "ocumentai.googleapis.com/ProcessorVersio" + + "nB\010\n\006source\"l\n\036ImportProcessorVersionRes" + + "ponse\022J\n\021processor_version\030\001 \001(\tB/\372A,\n*d" + + "ocumentai.googleapis.com/ProcessorVersio" + + "n\"s\n\036ImportProcessorVersionMetadata\022Q\n\017c" + + "ommon_metadata\030\001 \001(\01328.google.cloud.docu" + + "mentai.v1beta3.CommonOperationMetadata2\353" + + ".\n\030DocumentProcessorService\022\233\002\n\017ProcessD" + + "ocument\022/.google.cloud.documentai.v1beta" + + "3.ProcessRequest\0320.google.cloud.document" + + "ai.v1beta3.ProcessResponse\"\244\001\332A\004name\202\323\344\223" + + "\002\226\001\";/v1beta3/{name=projects/*/locations" + + "/*/processors/*}:process:\001*ZT\"O/v1beta3/" + "{name=projects/*/locations/*/processors/" - + "*/processorVersions/*}:batchProcess:\001*\022\337" - + "\001\n\023FetchProcessorTypes\022;.google.cloud.do" - + "cumentai.v1beta3.FetchProcessorTypesRequ" - + "est\032<.google.cloud.documentai.v1beta3.Fe" - + "tchProcessorTypesResponse\"M\332A\006parent\202\323\344\223" - + "\002>\022\n\035TrainP" - + "rocessorVersionResponse\022\035TrainProcessorV" - + "ersionMetadata\332A\030parent,processor_versio" - + "n\202\323\344\223\002R\"M/v1beta3/{parent=projects/*/loc" - + "ations/*/processors/*}/processorVersions" - + ":train:\001*\022\335\001\n\023GetProcessorVersion\022;.goog" + + "*/processorVersions/*}:process:\001*\022\314\002\n\025Ba" + + "tchProcessDocuments\0224.google.cloud.docum" + + "entai.v1beta3.BatchProcessRequest\032\035.goog" + + "le.longrunning.Operation\"\335\001\312A,\n\024BatchPro" + + "cessResponse\022\024BatchProcessMetadata\332A\004nam" + + "e\202\323\344\223\002\240\001\"@/v1beta3/{name=projects/*/loca" + + "tions/*/processors/*}:batchProcess:\001*ZY\"" + + "T/v1beta3/{name=projects/*/locations/*/p" + + "rocessors/*/processorVersions/*}:batchPr" + + "ocess:\001*\022\337\001\n\023FetchProcessorTypes\022;.googl" + + "e.cloud.documentai.v1beta3.FetchProcesso" + + "rTypesRequest\032<.google.cloud.documentai." + + "v1beta3.FetchProcessorTypesResponse\"M\332A\006" + + "parent\202\323\344\223\002>\022.google.cloud.documentai.v1beta3.Lis" - + "tProcessorVersionsResponse\"X\332A\006parent\202\323\344" - + "\223\002I\022G/v1beta3/{parent=projects/*/locatio" - + "ns/*/processors/*}/processorVersions\022\212\002\n" - + "\026DeleteProcessorVersion\022>.google.cloud.d" - + "ocumentai.v1beta3.DeleteProcessorVersion" - + "Request\032\035.google.longrunning.Operation\"\220" - + "\001\312A7\n\025google.protobuf.Empty\022\036DeleteProce" - + "ssorVersionMetadata\332A\004name\202\323\344\223\002I*G/v1bet" - + "a3/{name=projects/*/locations/*/processo" - + "rs/*/processorVersions/*}\022\235\002\n\026DeployProc" - + "essorVersion\022>.google.cloud.documentai.v" - + "1beta3.DeployProcessorVersionRequest\032\035.g" - + "oogle.longrunning.Operation\"\243\001\312A@\n\036Deplo" - + "yProcessorVersionResponse\022\036DeployProcess" - + "orVersionMetadata\332A\004name\202\323\344\223\002S\"N/v1beta3" - + "/{name=projects/*/locations/*/processors" - + "/*/processorVersions/*}:deploy:\001*\022\247\002\n\030Un" - + "deployProcessorVersion\022@.google.cloud.do" - + "cumentai.v1beta3.UndeployProcessorVersio" - + "nRequest\032\035.google.longrunning.Operation\"" - + "\251\001\312AD\n UndeployProcessorVersionResponse\022" - + " UndeployProcessorVersionMetadata\332A\004name" - + "\202\323\344\223\002U\"P/v1beta3/{name=projects/*/locati" - + "ons/*/processors/*/processorVersions/*}:" - + "undeploy:\001*\022\321\001\n\017CreateProcessor\0227.google" - + ".cloud.documentai.v1beta3.CreateProcesso" - + "rRequest\032*.google.cloud.documentai.v1bet" - + "a3.Processor\"Y\332A\020parent,processor\202\323\344\223\002@\"" - + "3/v1beta3/{parent=projects/*/locations/*" - + "}/processors:\tprocessor\022\340\001\n\017DeleteProces" - + "sor\0227.google.cloud.documentai.v1beta3.De" - + "leteProcessorRequest\032\035.google.longrunnin" - + "g.Operation\"u\312A0\n\025google.protobuf.Empty\022" - + "\027DeleteProcessorMetadata\332A\004name\202\323\344\223\0025*3/" - + "v1beta3/{name=projects/*/locations/*/pro" - + "cessors/*}\022\345\001\n\017EnableProcessor\0227.google." - + "cloud.documentai.v1beta3.EnableProcessor" - + "Request\032\035.google.longrunning.Operation\"z" - + "\312A2\n\027EnableProcessorResponse\022\027EnableProc" - + "essorMetadata\202\323\344\223\002?\":/v1beta3/{name=proj" - + "ects/*/locations/*/processors/*}:enable:" - + "\001*\022\352\001\n\020DisableProcessor\0228.google.cloud.d" - + "ocumentai.v1beta3.DisableProcessorReques" - + "t\032\035.google.longrunning.Operation\"}\312A4\n\030D" - + "isableProcessorResponse\022\030DisableProcesso" - + "rMetadata\202\323\344\223\002@\";/v1beta3/{name=projects" - + "/*/locations/*/processors/*}:disable:\001*\022" - + "\253\002\n\032SetDefaultProcessorVersion\022B.google." - + "cloud.documentai.v1beta3.SetDefaultProce" - + "ssorVersionRequest\032\035.google.longrunning." - + "Operation\"\251\001\312AH\n\"SetDefaultProcessorVers" - + "ionResponse\022\"SetDefaultProcessorVersionM" - + "etadata\202\323\344\223\002X\"S/v1beta3/{processor=proje" - + "cts/*/locations/*/processors/*}:setDefau" - + "ltProcessorVersion:\001*\022\252\002\n\016ReviewDocument" - + "\0226.google.cloud.documentai.v1beta3.Revie" - + "wDocumentRequest\032\035.google.longrunning.Op" - + "eration\"\300\001\312A9\n\026ReviewDocumentResponse\022\037R" - + "eviewDocumentOperationMetadata\332A\023human_r" - + "eview_config\202\323\344\223\002h\"c/v1beta3/{human_revi" - + "ew_config=projects/*/locations/*/process" - + "ors/*/humanReviewConfig}:reviewDocument:" - + "\001*\022\321\002\n\030EvaluateProcessorVersion\022@.google" - + ".cloud.documentai.v1beta3.EvaluateProces" + + "TypeRequest\032..google.cloud.documentai.v1" + + "beta3.ProcessorType\"F\332A\004name\202\323\344\223\0029\0227/v1b" + + "eta3/{name=projects/*/locations/*/proces" + + "sorTypes/*}\022\307\001\n\016ListProcessors\0226.google." + + "cloud.documentai.v1beta3.ListProcessorsR" + + "equest\0327.google.cloud.documentai.v1beta3" + + ".ListProcessorsResponse\"D\332A\006parent\202\323\344\223\0025" + + "\0223/v1beta3/{parent=projects/*/locations/" + + "*}/processors\022\264\001\n\014GetProcessor\0224.google." + + "cloud.documentai.v1beta3.GetProcessorReq" + + "uest\032*.google.cloud.documentai.v1beta3.P" + + "rocessor\"B\332A\004name\202\323\344\223\0025\0223/v1beta3/{name=" + + "projects/*/locations/*/processors/*}\022\254\002\n" + + "\025TrainProcessorVersion\022=.google.cloud.do" + + "cumentai.v1beta3.TrainProcessorVersionRe" + + "quest\032\035.google.longrunning.Operation\"\264\001\312" + + "A>\n\035TrainProcessorVersionResponse\022\035Train" + + "ProcessorVersionMetadata\332A\030parent,proces" + + "sor_version\202\323\344\223\002R\"M/v1beta3/{parent=proj" + + "ects/*/locations/*/processors/*}/process" + + "orVersions:train:\001*\022\335\001\n\023GetProcessorVers" + + "ion\022;.google.cloud.documentai.v1beta3.Ge" + + "tProcessorVersionRequest\0321.google.cloud." + + "documentai.v1beta3.ProcessorVersion\"V\332A\004" + + "name\202\323\344\223\002I\022G/v1beta3/{name=projects/*/lo" + + "cations/*/processors/*/processorVersions" + + "/*}\022\360\001\n\025ListProcessorVersions\022=.google.c" + + "loud.documentai.v1beta3.ListProcessorVer" + + "sionsRequest\032>.google.cloud.documentai.v" + + "1beta3.ListProcessorVersionsResponse\"X\332A" + + "\006parent\202\323\344\223\002I\022G/v1beta3/{parent=projects" + + "/*/locations/*/processors/*}/processorVe" + + "rsions\022\212\002\n\026DeleteProcessorVersion\022>.goog" + + "le.cloud.documentai.v1beta3.DeleteProces" + "sorVersionRequest\032\035.google.longrunning.O" - + "peration\"\323\001\312AD\n EvaluateProcessorVersion" - + "Response\022 EvaluateProcessorVersionMetada" - + "ta\332A\021processor_version\202\323\344\223\002r\"m/v1beta3/{" - + "processor_version=projects/*/locations/*" - + "/processors/*/processorVersions/*}:evalu" - + "ateProcessorVersion:\001*\022\331\001\n\rGetEvaluation" - + "\0225.google.cloud.documentai.v1beta3.GetEv" - + "aluationRequest\032+.google.cloud.documenta" - + "i.v1beta3.Evaluation\"d\332A\004name\202\323\344\223\002W\022U/v1" - + "beta3/{name=projects/*/locations/*/proce" - + "ssors/*/processorVersions/*/evaluations/" - + "*}\022\354\001\n\017ListEvaluations\0227.google.cloud.do" - + "cumentai.v1beta3.ListEvaluationsRequest\032" - + "8.google.cloud.documentai.v1beta3.ListEv" - + "aluationsResponse\"f\332A\006parent\202\323\344\223\002W\022U/v1b" - + "eta3/{parent=projects/*/locations/*/proc" - + "essors/*/processorVersions/*}/evaluation" - + "s\022\257\002\n\026ImportProcessorVersion\022>.google.cl" - + "oud.documentai.v1beta3.ImportProcessorVe" - + "rsionRequest\032\035.google.longrunning.Operat" - + "ion\"\265\001\312A@\n\036ImportProcessorVersionRespons" - + "e\022\036ImportProcessorVersionMetadata\332A\006pare" - + "nt\202\323\344\223\002c\"^/v1beta3/{parent=projects/*/lo" - + "cations/*/processors/*}/processorVersion" - + "s:importProcessorVersion:\001*\032M\312A\031document" - + "ai.googleapis.com\322A.https://www.googleap" - + "is.com/auth/cloud-platformB\303\003\n#com.googl" - + "e.cloud.documentai.v1beta3B\032DocumentAiPr" - + "ocessorServiceP\001ZCcloud.google.com/go/do" - + "cumentai/apiv1beta3/documentaipb;documen" - + "taipb\252\002\037Google.Cloud.DocumentAI.V1Beta3\312" - + "\002\037Google\\Cloud\\DocumentAI\\V1beta3\352\002\"Goog" - + "le::Cloud::DocumentAI::V1beta3\352A\177\n+docum" - + "entai.googleapis.com/HumanReviewConfig\022P" - + "projects/{project}/locations/{location}/" - + "processors/{processor}/humanReviewConfig" - + "\352AM\n\"documentai.googleapis.com/Location\022", - "\'projects/{project}/locations/{location}" + "b\006proto3" + + "peration\"\220\001\312A7\n\025google.protobuf.Empty\022\036D" + + "eleteProcessorVersionMetadata\332A\004name\202\323\344\223" + + "\002I*G/v1beta3/{name=projects/*/locations/" + + "*/processors/*/processorVersions/*}\022\235\002\n\026" + + "DeployProcessorVersion\022>.google.cloud.do" + + "cumentai.v1beta3.DeployProcessorVersionR" + + "equest\032\035.google.longrunning.Operation\"\243\001" + + "\312A@\n\036DeployProcessorVersionResponse\022\036Dep" + + "loyProcessorVersionMetadata\332A\004name\202\323\344\223\002S" + + "\"N/v1beta3/{name=projects/*/locations/*/" + + "processors/*/processorVersions/*}:deploy" + + ":\001*\022\247\002\n\030UndeployProcessorVersion\022@.googl" + + "e.cloud.documentai.v1beta3.UndeployProce" + + "ssorVersionRequest\032\035.google.longrunning." + + "Operation\"\251\001\312AD\n UndeployProcessorVersio" + + "nResponse\022 UndeployProcessorVersionMetad" + + "ata\332A\004name\202\323\344\223\002U\"P/v1beta3/{name=project" + + "s/*/locations/*/processors/*/processorVe" + + "rsions/*}:undeploy:\001*\022\321\001\n\017CreateProcesso" + + "r\0227.google.cloud.documentai.v1beta3.Crea" + + "teProcessorRequest\032*.google.cloud.docume" + + "ntai.v1beta3.Processor\"Y\332A\020parent,proces" + + "sor\202\323\344\223\002@\"3/v1beta3/{parent=projects/*/l" + + "ocations/*}/processors:\tprocessor\022\340\001\n\017De" + + "leteProcessor\0227.google.cloud.documentai." + + "v1beta3.DeleteProcessorRequest\032\035.google." + + "longrunning.Operation\"u\312A0\n\025google.proto" + + "buf.Empty\022\027DeleteProcessorMetadata\332A\004nam" + + "e\202\323\344\223\0025*3/v1beta3/{name=projects/*/locat" + + "ions/*/processors/*}\022\345\001\n\017EnableProcessor" + + "\0227.google.cloud.documentai.v1beta3.Enabl" + + "eProcessorRequest\032\035.google.longrunning.O" + + "peration\"z\312A2\n\027EnableProcessorResponse\022\027" + + "EnableProcessorMetadata\202\323\344\223\002?\":/v1beta3/" + + "{name=projects/*/locations/*/processors/" + + "*}:enable:\001*\022\352\001\n\020DisableProcessor\0228.goog" + + "le.cloud.documentai.v1beta3.DisableProce" + + "ssorRequest\032\035.google.longrunning.Operati" + + "on\"}\312A4\n\030DisableProcessorResponse\022\030Disab" + + "leProcessorMetadata\202\323\344\223\002@\";/v1beta3/{nam" + + "e=projects/*/locations/*/processors/*}:d" + + "isable:\001*\022\253\002\n\032SetDefaultProcessorVersion" + + "\022B.google.cloud.documentai.v1beta3.SetDe" + + "faultProcessorVersionRequest\032\035.google.lo" + + "ngrunning.Operation\"\251\001\312AH\n\"SetDefaultPro" + + "cessorVersionResponse\022\"SetDefaultProcess" + + "orVersionMetadata\202\323\344\223\002X\"S/v1beta3/{proce" + + "ssor=projects/*/locations/*/processors/*" + + "}:setDefaultProcessorVersion:\001*\022\252\002\n\016Revi" + + "ewDocument\0226.google.cloud.documentai.v1b" + + "eta3.ReviewDocumentRequest\032\035.google.long" + + "running.Operation\"\300\001\312A9\n\026ReviewDocumentR" + + "esponse\022\037ReviewDocumentOperationMetadata" + + "\332A\023human_review_config\202\323\344\223\002h\"c/v1beta3/{" + + "human_review_config=projects/*/locations" + + "/*/processors/*/humanReviewConfig}:revie" + + "wDocument:\001*\022\321\002\n\030EvaluateProcessorVersio" + + "n\022@.google.cloud.documentai.v1beta3.Eval" + + "uateProcessorVersionRequest\032\035.google.lon" + + "grunning.Operation\"\323\001\312AD\n EvaluateProces" + + "sorVersionResponse\022 EvaluateProcessorVer" + + "sionMetadata\332A\021processor_version\202\323\344\223\002r\"m" + + "/v1beta3/{processor_version=projects/*/l" + + "ocations/*/processors/*/processorVersion" + + "s/*}:evaluateProcessorVersion:\001*\022\331\001\n\rGet" + + "Evaluation\0225.google.cloud.documentai.v1b" + + "eta3.GetEvaluationRequest\032+.google.cloud" + + ".documentai.v1beta3.Evaluation\"d\332A\004name\202" + + "\323\344\223\002W\022U/v1beta3/{name=projects/*/locatio" + + "ns/*/processors/*/processorVersions/*/ev" + + "aluations/*}\022\354\001\n\017ListEvaluations\0227.googl" + + "e.cloud.documentai.v1beta3.ListEvaluatio" + + "nsRequest\0328.google.cloud.documentai.v1be" + + "ta3.ListEvaluationsResponse\"f\332A\006parent\202\323" + + "\344\223\002W\022U/v1beta3/{parent=projects/*/locati" + + "ons/*/processors/*/processorVersions/*}/" + + "evaluations\022\257\002\n\026ImportProcessorVersion\022>" + + ".google.cloud.documentai.v1beta3.ImportP" + + "rocessorVersionRequest\032\035.google.longrunn" + + "ing.Operation\"\265\001\312A@\n\036ImportProcessorVers" + + "ionResponse\022\036ImportProcessorVersionMetad" + + "ata\332A\006parent\202\323\344\223\002c\"^/v1beta3/{parent=pro" + + "jects/*/locations/*/processors/*}/proces" + + "sorVersions:importProcessorVersion:\001*\032M\312" + + "A\031documentai.googleapis.com\322A.https://ww", + "w.googleapis.com/auth/cloud-platformB\303\003\n" + + "#com.google.cloud.documentai.v1beta3B\032Do" + + "cumentAiProcessorServiceP\001ZCcloud.google" + + ".com/go/documentai/apiv1beta3/documentai" + + "pb;documentaipb\252\002\037Google.Cloud.DocumentA" + + "I.V1Beta3\312\002\037Google\\Cloud\\DocumentAI\\V1be" + + "ta3\352\002\"Google::Cloud::DocumentAI::V1beta3" + + "\352A\177\n+documentai.googleapis.com/HumanRevi" + + "ewConfig\022Pprojects/{project}/locations/{" + + "location}/processors/{processor}/humanRe" + + "viewConfig\352AM\n\"documentai.googleapis.com" + + "/Location\022\'projects/{project}/locations/" + + "{location}b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -686,6 +702,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.cloud.documentai.v1beta3.DocumentAiProcessor.getDescriptor(), com.google.cloud.documentai.v1beta3.DocumentAiProcessorType.getDescriptor(), com.google.longrunning.OperationsProto.getDescriptor(), + com.google.protobuf.EmptyProto.getDescriptor(), com.google.protobuf.FieldMaskProto.getDescriptor(), com.google.protobuf.TimestampProto.getDescriptor(), com.google.rpc.StatusProto.getDescriptor(), @@ -1035,7 +1052,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_documentai_v1beta3_TrainProcessorVersionRequest_descriptor, new java.lang.String[] { - "Parent", "ProcessorVersion", "DocumentSchema", "InputData", "BaseProcessorVersion", + "CustomDocumentExtractionOptions", + "Parent", + "ProcessorVersion", + "DocumentSchema", + "InputData", + "BaseProcessorVersion", + "ProcessorFlags", }); internal_static_google_cloud_documentai_v1beta3_TrainProcessorVersionRequest_InputData_descriptor = internal_static_google_cloud_documentai_v1beta3_TrainProcessorVersionRequest_descriptor @@ -1047,6 +1070,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "TrainingDocuments", "TestDocuments", }); + internal_static_google_cloud_documentai_v1beta3_TrainProcessorVersionRequest_CustomDocumentExtractionOptions_descriptor = + internal_static_google_cloud_documentai_v1beta3_TrainProcessorVersionRequest_descriptor + .getNestedTypes() + .get(1); + internal_static_google_cloud_documentai_v1beta3_TrainProcessorVersionRequest_CustomDocumentExtractionOptions_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_documentai_v1beta3_TrainProcessorVersionRequest_CustomDocumentExtractionOptions_descriptor, + new java.lang.String[] { + "TrainingMethod", + }); internal_static_google_cloud_documentai_v1beta3_TrainProcessorVersionResponse_descriptor = getDescriptor().getMessageTypes().get(39); internal_static_google_cloud_documentai_v1beta3_TrainProcessorVersionResponse_fieldAccessorTable = @@ -1199,6 +1232,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.cloud.documentai.v1beta3.DocumentAiProcessor.getDescriptor(); com.google.cloud.documentai.v1beta3.DocumentAiProcessorType.getDescriptor(); com.google.longrunning.OperationsProto.getDescriptor(); + com.google.protobuf.EmptyProto.getDescriptor(); com.google.protobuf.FieldMaskProto.getDescriptor(); com.google.protobuf.TimestampProto.getDescriptor(); com.google.rpc.StatusProto.getDescriptor(); diff --git a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/DocumentIoProto.java b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/DocumentIoProto.java index 33d9032bc8b7..ce6210ecd118 100644 --- a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/DocumentIoProto.java +++ b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/DocumentIoProto.java @@ -98,19 +98,20 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + ".cloud.documentai.v1beta3.DocumentOutput" + "Config.GcsOutputConfig.ShardingConfig\032@\n" + "\016ShardingConfig\022\027\n\017pages_per_shard\030\001 \001(\005" - + "\022\025\n\rpages_overlap\030\002 \001(\005B\r\n\013destination\"\352" - + "\001\n\tOcrConfig\022?\n\005hints\030\002 \001(\01320.google.clo" + + "\022\025\n\rpages_overlap\030\002 \001(\005B\r\n\013destination\"\206" + + "\002\n\tOcrConfig\022?\n\005hints\030\002 \001(\01320.google.clo" + "ud.documentai.v1beta3.OcrConfig.Hints\022!\n" + "\031enable_native_pdf_parsing\030\003 \001(\010\022#\n\033enab" + "le_image_quality_scores\030\004 \001(\010\022\034\n\024advance" + "d_ocr_options\030\005 \003(\t\022\025\n\renable_symbol\030\006 \001" - + "(\010\032\037\n\005Hints\022\026\n\016language_hints\030\001 \003(\tB\346\001\n#" - + "com.google.cloud.documentai.v1beta3B\017Doc" - + "umentIoProtoP\001ZCcloud.google.com/go/docu" - + "mentai/apiv1beta3/documentaipb;documenta" - + "ipb\252\002\037Google.Cloud.DocumentAI.V1Beta3\312\002\037" - + "Google\\Cloud\\DocumentAI\\V1beta3\352\002\"Google" - + "::Cloud::DocumentAI::V1beta3b\006proto3" + + "(\010\022\032\n\022compute_style_info\030\010 \001(\010\032\037\n\005Hints\022" + + "\026\n\016language_hints\030\001 \003(\tB\346\001\n#com.google.c" + + "loud.documentai.v1beta3B\017DocumentIoProto" + + "P\001ZCcloud.google.com/go/documentai/apiv1" + + "beta3/documentaipb;documentaipb\252\002\037Google" + + ".Cloud.DocumentAI.V1Beta3\312\002\037Google\\Cloud" + + "\\DocumentAI\\V1beta3\352\002\"Google::Cloud::Doc" + + "umentAI::V1beta3b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -197,6 +198,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "EnableImageQualityScores", "AdvancedOcrOptions", "EnableSymbol", + "ComputeStyleInfo", }); internal_static_google_cloud_documentai_v1beta3_OcrConfig_Hints_descriptor = internal_static_google_cloud_documentai_v1beta3_OcrConfig_descriptor diff --git a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/DocumentOrBuilder.java b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/DocumentOrBuilder.java index 8e69a45e26cd..7421d3cdae26 100644 --- a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/DocumentOrBuilder.java +++ b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/DocumentOrBuilder.java @@ -28,10 +28,9 @@ public interface DocumentOrBuilder * *
    * Optional. Currently supports Google Cloud Storage URI of the form
-   *    `gs://bucket_name/object_name`. Object versioning is not supported.
-   *    See [Google Cloud Storage Request
-   *    URIs](https://cloud.google.com/storage/docs/reference-uris) for more
-   *    info.
+   * `gs://bucket_name/object_name`. Object versioning is not supported.
+   * For more information, refer to [Google Cloud Storage Request
+   * URIs](https://cloud.google.com/storage/docs/reference-uris).
    * 
* * string uri = 1 [(.google.api.field_behavior) = OPTIONAL]; @@ -44,10 +43,9 @@ public interface DocumentOrBuilder * *
    * Optional. Currently supports Google Cloud Storage URI of the form
-   *    `gs://bucket_name/object_name`. Object versioning is not supported.
-   *    See [Google Cloud Storage Request
-   *    URIs](https://cloud.google.com/storage/docs/reference-uris) for more
-   *    info.
+   * `gs://bucket_name/object_name`. Object versioning is not supported.
+   * For more information, refer to [Google Cloud Storage Request
+   * URIs](https://cloud.google.com/storage/docs/reference-uris).
    * 
* * string uri = 1 [(.google.api.field_behavior) = OPTIONAL]; @@ -60,10 +58,9 @@ public interface DocumentOrBuilder * *
    * Optional. Currently supports Google Cloud Storage URI of the form
-   *    `gs://bucket_name/object_name`. Object versioning is not supported.
-   *    See [Google Cloud Storage Request
-   *    URIs](https://cloud.google.com/storage/docs/reference-uris) for more
-   *    info.
+   * `gs://bucket_name/object_name`. Object versioning is not supported.
+   * For more information, refer to [Google Cloud Storage Request
+   * URIs](https://cloud.google.com/storage/docs/reference-uris).
    * 
* * string uri = 1 [(.google.api.field_behavior) = OPTIONAL]; @@ -105,9 +102,8 @@ public interface DocumentOrBuilder * * *
-   * An IANA published MIME type (also referred to as media type). For more
-   * information, see
-   * https://www.iana.org/assignments/media-types/media-types.xhtml.
+   * An IANA published [media type (MIME
+   * type)](https://www.iana.org/assignments/media-types/media-types.xhtml).
    * 
* * string mime_type = 3; @@ -119,9 +115,8 @@ public interface DocumentOrBuilder * * *
-   * An IANA published MIME type (also referred to as media type). For more
-   * information, see
-   * https://www.iana.org/assignments/media-types/media-types.xhtml.
+   * An IANA published [media type (MIME
+   * type)](https://www.iana.org/assignments/media-types/media-types.xhtml).
    * 
* * string mime_type = 3; diff --git a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/DocumentProto.java b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/DocumentProto.java index 5c3de2c658ad..48925cd037c3 100644 --- a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/DocumentProto.java +++ b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/DocumentProto.java @@ -83,6 +83,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_documentai_v1beta3_Document_Page_Token_DetectedBreak_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_documentai_v1beta3_Document_Page_Token_DetectedBreak_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_documentai_v1beta3_Document_Page_Token_StyleInfo_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_documentai_v1beta3_Document_Page_Token_StyleInfo_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_documentai_v1beta3_Document_Page_Symbol_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -190,7 +194,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "/color.proto\032\026google/type/date.proto\032\032go" + "ogle/type/datetime.proto\032\027google/type/mo" + "ney.proto\032 google/type/postal_address.pr" - + "oto\"\343D\n\010Document\022\023\n\003uri\030\001 \001(\tB\004\342A\001\001H\000\022\027\n" + + "oto\"\234H\n\010Document\022\023\n\003uri\030\001 \001(\tB\004\342A\001\001H\000\022\027\n" + "\007content\030\002 \001(\014B\004\342A\001\001H\000\022\021\n\tmime_type\030\003 \001(" + "\t\022\022\n\004text\030\004 \001(\tB\004\342A\001\001\022H\n\013text_styles\030\005 \003" + "(\0132/.google.cloud.documentai.v1beta3.Doc" @@ -217,7 +221,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "t_size\030\007 \001(\01328.google.cloud.documentai.v" + "1beta3.Document.Style.FontSize\022\023\n\013font_f" + "amily\030\010 \001(\t\032&\n\010FontSize\022\014\n\004size\030\001 \001(\002\022\014\n" - + "\004unit\030\002 \001(\t\032\223(\n\004Page\022\023\n\013page_number\030\001 \001(" + + "\004unit\030\002 \001(\t\032\320+\n\004Page\022\023\n\013page_number\030\001 \001(" + "\005\022C\n\005image\030\r \001(\01324.google.cloud.document" + "ai.v1beta3.Document.Page.Image\022I\n\ntransf" + "orms\030\016 \003(\01325.google.cloud.documentai.v1b" @@ -282,7 +286,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "loud.documentai.v1beta3.Document.Page.De" + "tectedLanguage\022L\n\nprovenance\030\003 \001(\01324.goo" + "gle.cloud.documentai.v1beta3.Document.Pr" - + "ovenanceB\002\030\001\032\203\004\n\005Token\022E\n\006layout\030\001 \001(\01325" + + "ovenanceB\002\030\001\032\274\007\n\005Token\022E\n\006layout\030\001 \001(\01325" + ".google.cloud.documentai.v1beta3.Documen" + "t.Page.Layout\022Z\n\016detected_break\030\002 \001(\0132B." + "google.cloud.documentai.v1beta3.Document" @@ -290,133 +294,144 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "nguages\030\003 \003(\0132?.google.cloud.documentai." + "v1beta3.Document.Page.DetectedLanguage\022L" + "\n\nprovenance\030\004 \001(\01324.google.cloud.docume" - + "ntai.v1beta3.Document.ProvenanceB\002\030\001\032\253\001\n" - + "\rDetectedBreak\022U\n\004type\030\001 \001(\0162G.google.cl" - + "oud.documentai.v1beta3.Document.Page.Tok" - + "en.DetectedBreak.Type\"C\n\004Type\022\024\n\020TYPE_UN" - + "SPECIFIED\020\000\022\t\n\005SPACE\020\001\022\016\n\nWIDE_SPACE\020\002\022\n" - + "\n\006HYPHEN\020\003\032\254\001\n\006Symbol\022E\n\006layout\030\001 \001(\01325." + + "ntai.v1beta3.Document.ProvenanceB\002\030\001\022R\n\n" + + "style_info\030\005 \001(\0132>.google.cloud.document" + + "ai.v1beta3.Document.Page.Token.StyleInfo" + + "\032\253\001\n\rDetectedBreak\022U\n\004type\030\001 \001(\0162G.googl" + + "e.cloud.documentai.v1beta3.Document.Page" + + ".Token.DetectedBreak.Type\"C\n\004Type\022\024\n\020TYP" + + "E_UNSPECIFIED\020\000\022\t\n\005SPACE\020\001\022\016\n\nWIDE_SPACE" + + "\020\002\022\n\n\006HYPHEN\020\003\032\342\002\n\tStyleInfo\022\021\n\tfont_siz" + + "e\030\001 \001(\005\022\027\n\017pixel_font_size\030\002 \001(\001\022\026\n\016lett" + + "er_spacing\030\003 \001(\001\022\021\n\tfont_type\030\004 \001(\t\022\014\n\004b" + + "old\030\005 \001(\010\022\016\n\006italic\030\006 \001(\010\022\022\n\nunderlined\030" + + "\007 \001(\010\022\021\n\tstrikeout\030\010 \001(\010\022\021\n\tsubscript\030\t " + + "\001(\010\022\023\n\013superscript\030\n \001(\010\022\021\n\tsmallcaps\030\013 " + + "\001(\010\022\023\n\013font_weight\030\014 \001(\005\022\023\n\013handwritten\030" + + "\r \001(\010\022&\n\ntext_color\030\016 \001(\0132\022.google.type." + + "Color\022,\n\020background_color\030\017 \001(\0132\022.google" + + ".type.Color\032\254\001\n\006Symbol\022E\n\006layout\030\001 \001(\01325" + + ".google.cloud.documentai.v1beta3.Documen" + + "t.Page.Layout\022[\n\022detected_languages\030\002 \003(" + + "\0132?.google.cloud.documentai.v1beta3.Docu" + + "ment.Page.DetectedLanguage\032\301\001\n\rVisualEle" + + "ment\022E\n\006layout\030\001 \001(\01325.google.cloud.docu" + + "mentai.v1beta3.Document.Page.Layout\022\014\n\004t" + + "ype\030\002 \001(\t\022[\n\022detected_languages\030\003 \003(\0132?." + "google.cloud.documentai.v1beta3.Document" - + ".Page.Layout\022[\n\022detected_languages\030\002 \003(\013" + + ".Page.DetectedLanguage\032\320\005\n\005Table\022E\n\006layo" + + "ut\030\001 \001(\01325.google.cloud.documentai.v1bet" + + "a3.Document.Page.Layout\022R\n\013header_rows\030\002" + + " \003(\0132=.google.cloud.documentai.v1beta3.D" + + "ocument.Page.Table.TableRow\022P\n\tbody_rows" + + "\030\003 \003(\0132=.google.cloud.documentai.v1beta3" + + ".Document.Page.Table.TableRow\022[\n\022detecte" + + "d_languages\030\004 \003(\0132?.google.cloud.documen" + + "tai.v1beta3.Document.Page.DetectedLangua" + + "ge\022L\n\nprovenance\030\005 \001(\01324.google.cloud.do" + + "cumentai.v1beta3.Document.ProvenanceB\002\030\001" + + "\032Y\n\010TableRow\022M\n\005cells\030\001 \003(\0132>.google.clo" + + "ud.documentai.v1beta3.Document.Page.Tabl" + + "e.TableCell\032\323\001\n\tTableCell\022E\n\006layout\030\001 \001(" + + "\01325.google.cloud.documentai.v1beta3.Docu" + + "ment.Page.Layout\022\020\n\010row_span\030\002 \001(\005\022\020\n\010co" + + "l_span\030\003 \001(\005\022[\n\022detected_languages\030\004 \003(\013" + "2?.google.cloud.documentai.v1beta3.Docum" - + "ent.Page.DetectedLanguage\032\301\001\n\rVisualElem" - + "ent\022E\n\006layout\030\001 \001(\01325.google.cloud.docum" - + "entai.v1beta3.Document.Page.Layout\022\014\n\004ty" - + "pe\030\002 \001(\t\022[\n\022detected_languages\030\003 \003(\0132?.g" - + "oogle.cloud.documentai.v1beta3.Document." - + "Page.DetectedLanguage\032\314\005\n\005Table\022E\n\006layou" - + "t\030\001 \001(\01325.google.cloud.documentai.v1beta" - + "3.Document.Page.Layout\022R\n\013header_rows\030\002 " - + "\003(\0132=.google.cloud.documentai.v1beta3.Do" - + "cument.Page.Table.TableRow\022P\n\tbody_rows\030" - + "\003 \003(\0132=.google.cloud.documentai.v1beta3." - + "Document.Page.Table.TableRow\022[\n\022detected" - + "_languages\030\004 \003(\0132?.google.cloud.document" - + "ai.v1beta3.Document.Page.DetectedLanguag" - + "e\022H\n\nprovenance\030\005 \001(\01324.google.cloud.doc" - + "umentai.v1beta3.Document.Provenance\032Y\n\010T" - + "ableRow\022M\n\005cells\030\001 \003(\0132>.google.cloud.do" - + "cumentai.v1beta3.Document.Page.Table.Tab" - + "leCell\032\323\001\n\tTableCell\022E\n\006layout\030\001 \001(\01325.g" - + "oogle.cloud.documentai.v1beta3.Document." - + "Page.Layout\022\020\n\010row_span\030\002 \001(\005\022\020\n\010col_spa" - + "n\030\003 \001(\005\022[\n\022detected_languages\030\004 \003(\0132?.go" - + "ogle.cloud.documentai.v1beta3.Document.P" - + "age.DetectedLanguage\032\377\003\n\tFormField\022I\n\nfi" - + "eld_name\030\001 \001(\01325.google.cloud.documentai" - + ".v1beta3.Document.Page.Layout\022J\n\013field_v" - + "alue\030\002 \001(\01325.google.cloud.documentai.v1b" - + "eta3.Document.Page.Layout\022`\n\027name_detect" - + "ed_languages\030\003 \003(\0132?.google.cloud.docume" - + "ntai.v1beta3.Document.Page.DetectedLangu" - + "age\022a\n\030value_detected_languages\030\004 \003(\0132?." - + "google.cloud.documentai.v1beta3.Document" - + ".Page.DetectedLanguage\022\022\n\nvalue_type\030\005 \001" - + "(\t\022\032\n\022corrected_key_text\030\006 \001(\t\022\034\n\024correc" - + "ted_value_text\030\007 \001(\t\022H\n\nprovenance\030\010 \001(\013" - + "24.google.cloud.documentai.v1beta3.Docum" - + "ent.Provenance\032\223\001\n\017DetectedBarcode\022E\n\006la" - + "yout\030\001 \001(\01325.google.cloud.documentai.v1b" - + "eta3.Document.Page.Layout\0229\n\007barcode\030\002 \001" - + "(\0132(.google.cloud.documentai.v1beta3.Bar" - + "code\032=\n\020DetectedLanguage\022\025\n\rlanguage_cod" - + "e\030\001 \001(\t\022\022\n\nconfidence\030\002 \001(\002\032\313\001\n\022ImageQua" - + "lityScores\022\025\n\rquality_score\030\001 \001(\002\022j\n\020det" - + "ected_defects\030\002 \003(\0132P.google.cloud.docum" - + "entai.v1beta3.Document.Page.ImageQuality" - + "Scores.DetectedDefect\0322\n\016DetectedDefect\022" - + "\014\n\004type\030\001 \001(\t\022\022\n\nconfidence\030\002 \001(\002\032\365\006\n\006En" - + "tity\022O\n\013text_anchor\030\001 \001(\01324.google.cloud" - + ".documentai.v1beta3.Document.TextAnchorB" - + "\004\342A\001\001\022\022\n\004type\030\002 \001(\tB\004\342A\001\002\022\032\n\014mention_tex" - + "t\030\003 \001(\tB\004\342A\001\001\022\030\n\nmention_id\030\004 \001(\tB\004\342A\001\001\022" - + "\030\n\nconfidence\030\005 \001(\002B\004\342A\001\001\022O\n\013page_anchor" - + "\030\006 \001(\01324.google.cloud.documentai.v1beta3" - + ".Document.PageAnchorB\004\342A\001\001\022\020\n\002id\030\007 \001(\tB\004" - + "\342A\001\001\022`\n\020normalized_value\030\t \001(\0132@.google." - + "cloud.documentai.v1beta3.Document.Entity" - + ".NormalizedValueB\004\342A\001\001\022J\n\nproperties\030\n \003" - + "(\01320.google.cloud.documentai.v1beta3.Doc" - + "ument.EntityB\004\342A\001\001\022N\n\nprovenance\030\013 \001(\01324" - + ".google.cloud.documentai.v1beta3.Documen" - + "t.ProvenanceB\004\342A\001\001\022\026\n\010redacted\030\014 \001(\010B\004\342A" - + "\001\001\032\274\002\n\017NormalizedValue\022)\n\013money_value\030\002 " - + "\001(\0132\022.google.type.MoneyH\000\022\'\n\ndate_value\030" - + "\003 \001(\0132\021.google.type.DateH\000\022/\n\016datetime_v" - + "alue\030\004 \001(\0132\025.google.type.DateTimeH\000\0223\n\ra" - + "ddress_value\030\005 \001(\0132\032.google.type.PostalA" - + "ddressH\000\022\027\n\rboolean_value\030\006 \001(\010H\000\022\027\n\rint" - + "eger_value\030\007 \001(\005H\000\022\025\n\013float_value\030\010 \001(\002H" - + "\000\022\022\n\004text\030\001 \001(\tB\004\342A\001\001B\022\n\020structured_valu" - + "e\032I\n\016EntityRelation\022\022\n\nsubject_id\030\001 \001(\t\022" - + "\021\n\tobject_id\030\002 \001(\t\022\020\n\010relation\030\003 \001(\t\032\255\001\n" - + "\nTextAnchor\022W\n\rtext_segments\030\001 \003(\0132@.goo" - + "gle.cloud.documentai.v1beta3.Document.Te" - + "xtAnchor.TextSegment\022\017\n\007content\030\002 \001(\t\0325\n" - + "\013TextSegment\022\023\n\013start_index\030\001 \001(\003\022\021\n\tend" - + "_index\030\002 \001(\003\032\354\003\n\nPageAnchor\022O\n\tpage_refs" - + "\030\001 \003(\0132<.google.cloud.documentai.v1beta3" - + ".Document.PageAnchor.PageRef\032\214\003\n\007PageRef" - + "\022\022\n\004page\030\001 \001(\003B\004\342A\001\002\022b\n\013layout_type\030\002 \001(" - + "\0162G.google.cloud.documentai.v1beta3.Docu" - + "ment.PageAnchor.PageRef.LayoutTypeB\004\342A\001\001" - + "\022\031\n\tlayout_id\030\003 \001(\tB\006\030\001\342A\001\001\022J\n\rbounding_" - + "poly\030\004 \001(\0132-.google.cloud.documentai.v1b" - + "eta3.BoundingPolyB\004\342A\001\001\022\030\n\nconfidence\030\005 " - + "\001(\002B\004\342A\001\001\"\207\001\n\nLayoutType\022\033\n\027LAYOUT_TYPE_" - + "UNSPECIFIED\020\000\022\t\n\005BLOCK\020\001\022\r\n\tPARAGRAPH\020\002\022" - + "\010\n\004LINE\020\003\022\t\n\005TOKEN\020\004\022\022\n\016VISUAL_ELEMENT\020\005" - + "\022\t\n\005TABLE\020\006\022\016\n\nFORM_FIELD\020\007\032\266\003\n\nProvenan" - + "ce\022\024\n\010revision\030\001 \001(\005B\002\030\001\022\016\n\002id\030\002 \001(\005B\002\030\001" - + "\022L\n\007parents\030\003 \003(\0132;.google.cloud.documen" - + "tai.v1beta3.Document.Provenance.Parent\022P" - + "\n\004type\030\004 \001(\0162B.google.cloud.documentai.v" - + "1beta3.Document.Provenance.OperationType" - + "\0329\n\006Parent\022\020\n\010revision\030\001 \001(\005\022\r\n\005index\030\003 " - + "\001(\005\022\016\n\002id\030\002 \001(\005B\002\030\001\"\246\001\n\rOperationType\022\036\n" - + "\032OPERATION_TYPE_UNSPECIFIED\020\000\022\007\n\003ADD\020\001\022\n" - + "\n\006REMOVE\020\002\022\n\n\006UPDATE\020\007\022\017\n\007REPLACE\020\003\032\002\010\001\022" - + "\026\n\016EVAL_REQUESTED\020\004\032\002\010\001\022\025\n\rEVAL_APPROVED" - + "\020\005\032\002\010\001\022\024\n\014EVAL_SKIPPED\020\006\032\002\010\001\032\252\002\n\010Revisio" - + "n\022\017\n\005agent\030\004 \001(\tH\000\022\023\n\tprocessor\030\005 \001(\tH\000\022" - + "\n\n\002id\030\001 \001(\t\022\022\n\006parent\030\002 \003(\005B\002\030\001\022\022\n\nparen" - + "t_ids\030\007 \003(\t\022/\n\013create_time\030\003 \001(\0132\032.googl" - + "e.protobuf.Timestamp\022T\n\014human_review\030\006 \001" - + "(\0132>.google.cloud.documentai.v1beta3.Doc" - + "ument.Revision.HumanReview\0323\n\013HumanRevie" - + "w\022\r\n\005state\030\001 \001(\t\022\025\n\rstate_message\030\002 \001(\tB" - + "\010\n\006source\032\273\001\n\nTextChange\022I\n\013text_anchor\030" - + "\001 \001(\01324.google.cloud.documentai.v1beta3." - + "Document.TextAnchor\022\024\n\014changed_text\030\002 \001(" - + "\t\022L\n\nprovenance\030\003 \003(\01324.google.cloud.doc" - + "umentai.v1beta3.Document.ProvenanceB\002\030\001B" - + "\010\n\006sourceB\344\001\n#com.google.cloud.documenta" - + "i.v1beta3B\rDocumentProtoP\001ZCcloud.google" - + ".com/go/documentai/apiv1beta3/documentai" - + "pb;documentaipb\252\002\037Google.Cloud.DocumentA" - + "I.V1Beta3\312\002\037Google\\Cloud\\DocumentAI\\V1be" - + "ta3\352\002\"Google::Cloud::DocumentAI::V1beta3" - + "b\006proto3" + + "ent.Page.DetectedLanguage\032\377\003\n\tFormField\022" + + "I\n\nfield_name\030\001 \001(\01325.google.cloud.docum" + + "entai.v1beta3.Document.Page.Layout\022J\n\013fi" + + "eld_value\030\002 \001(\01325.google.cloud.documenta" + + "i.v1beta3.Document.Page.Layout\022`\n\027name_d" + + "etected_languages\030\003 \003(\0132?.google.cloud.d" + + "ocumentai.v1beta3.Document.Page.Detected" + + "Language\022a\n\030value_detected_languages\030\004 \003" + + "(\0132?.google.cloud.documentai.v1beta3.Doc" + + "ument.Page.DetectedLanguage\022\022\n\nvalue_typ" + + "e\030\005 \001(\t\022\032\n\022corrected_key_text\030\006 \001(\t\022\034\n\024c" + + "orrected_value_text\030\007 \001(\t\022H\n\nprovenance\030" + + "\010 \001(\01324.google.cloud.documentai.v1beta3." + + "Document.Provenance\032\223\001\n\017DetectedBarcode\022" + + "E\n\006layout\030\001 \001(\01325.google.cloud.documenta" + + "i.v1beta3.Document.Page.Layout\0229\n\007barcod" + + "e\030\002 \001(\0132(.google.cloud.documentai.v1beta" + + "3.Barcode\032=\n\020DetectedLanguage\022\025\n\rlanguag" + + "e_code\030\001 \001(\t\022\022\n\nconfidence\030\002 \001(\002\032\313\001\n\022Ima" + + "geQualityScores\022\025\n\rquality_score\030\001 \001(\002\022j" + + "\n\020detected_defects\030\002 \003(\0132P.google.cloud." + + "documentai.v1beta3.Document.Page.ImageQu" + + "alityScores.DetectedDefect\0322\n\016DetectedDe" + + "fect\022\014\n\004type\030\001 \001(\t\022\022\n\nconfidence\030\002 \001(\002\032\365" + + "\006\n\006Entity\022O\n\013text_anchor\030\001 \001(\01324.google." + + "cloud.documentai.v1beta3.Document.TextAn" + + "chorB\004\342A\001\001\022\022\n\004type\030\002 \001(\tB\004\342A\001\002\022\032\n\014mentio" + + "n_text\030\003 \001(\tB\004\342A\001\001\022\030\n\nmention_id\030\004 \001(\tB\004" + + "\342A\001\001\022\030\n\nconfidence\030\005 \001(\002B\004\342A\001\001\022O\n\013page_a" + + "nchor\030\006 \001(\01324.google.cloud.documentai.v1" + + "beta3.Document.PageAnchorB\004\342A\001\001\022\020\n\002id\030\007 " + + "\001(\tB\004\342A\001\001\022`\n\020normalized_value\030\t \001(\0132@.go" + + "ogle.cloud.documentai.v1beta3.Document.E" + + "ntity.NormalizedValueB\004\342A\001\001\022J\n\npropertie" + + "s\030\n \003(\01320.google.cloud.documentai.v1beta" + + "3.Document.EntityB\004\342A\001\001\022N\n\nprovenance\030\013 " + + "\001(\01324.google.cloud.documentai.v1beta3.Do" + + "cument.ProvenanceB\004\342A\001\001\022\026\n\010redacted\030\014 \001(" + + "\010B\004\342A\001\001\032\274\002\n\017NormalizedValue\022)\n\013money_val" + + "ue\030\002 \001(\0132\022.google.type.MoneyH\000\022\'\n\ndate_v" + + "alue\030\003 \001(\0132\021.google.type.DateH\000\022/\n\016datet" + + "ime_value\030\004 \001(\0132\025.google.type.DateTimeH\000" + + "\0223\n\raddress_value\030\005 \001(\0132\032.google.type.Po" + + "stalAddressH\000\022\027\n\rboolean_value\030\006 \001(\010H\000\022\027" + + "\n\rinteger_value\030\007 \001(\005H\000\022\025\n\013float_value\030\010" + + " \001(\002H\000\022\022\n\004text\030\001 \001(\tB\004\342A\001\001B\022\n\020structured" + + "_value\032I\n\016EntityRelation\022\022\n\nsubject_id\030\001" + + " \001(\t\022\021\n\tobject_id\030\002 \001(\t\022\020\n\010relation\030\003 \001(" + + "\t\032\255\001\n\nTextAnchor\022W\n\rtext_segments\030\001 \003(\0132" + + "@.google.cloud.documentai.v1beta3.Docume" + + "nt.TextAnchor.TextSegment\022\017\n\007content\030\002 \001" + + "(\t\0325\n\013TextSegment\022\023\n\013start_index\030\001 \001(\003\022\021" + + "\n\tend_index\030\002 \001(\003\032\354\003\n\nPageAnchor\022O\n\tpage" + + "_refs\030\001 \003(\0132<.google.cloud.documentai.v1" + + "beta3.Document.PageAnchor.PageRef\032\214\003\n\007Pa" + + "geRef\022\022\n\004page\030\001 \001(\003B\004\342A\001\002\022b\n\013layout_type" + + "\030\002 \001(\0162G.google.cloud.documentai.v1beta3" + + ".Document.PageAnchor.PageRef.LayoutTypeB" + + "\004\342A\001\001\022\031\n\tlayout_id\030\003 \001(\tB\006\030\001\342A\001\001\022J\n\rboun" + + "ding_poly\030\004 \001(\0132-.google.cloud.documenta" + + "i.v1beta3.BoundingPolyB\004\342A\001\001\022\030\n\nconfiden" + + "ce\030\005 \001(\002B\004\342A\001\001\"\207\001\n\nLayoutType\022\033\n\027LAYOUT_" + + "TYPE_UNSPECIFIED\020\000\022\t\n\005BLOCK\020\001\022\r\n\tPARAGRA" + + "PH\020\002\022\010\n\004LINE\020\003\022\t\n\005TOKEN\020\004\022\022\n\016VISUAL_ELEM" + + "ENT\020\005\022\t\n\005TABLE\020\006\022\016\n\nFORM_FIELD\020\007\032\262\003\n\nPro" + + "venance\022\024\n\010revision\030\001 \001(\005B\002\030\001\022\016\n\002id\030\002 \001(" + + "\005B\002\030\001\022L\n\007parents\030\003 \003(\0132;.google.cloud.do" + + "cumentai.v1beta3.Document.Provenance.Par" + + "ent\022P\n\004type\030\004 \001(\0162B.google.cloud.documen" + + "tai.v1beta3.Document.Provenance.Operatio" + + "nType\0329\n\006Parent\022\020\n\010revision\030\001 \001(\005\022\r\n\005ind" + + "ex\030\003 \001(\005\022\016\n\002id\030\002 \001(\005B\002\030\001\"\242\001\n\rOperationTy" + + "pe\022\036\n\032OPERATION_TYPE_UNSPECIFIED\020\000\022\007\n\003AD" + + "D\020\001\022\n\n\006REMOVE\020\002\022\n\n\006UPDATE\020\007\022\013\n\007REPLACE\020\003" + + "\022\026\n\016EVAL_REQUESTED\020\004\032\002\010\001\022\025\n\rEVAL_APPROVE" + + "D\020\005\032\002\010\001\022\024\n\014EVAL_SKIPPED\020\006\032\002\010\001\032\252\002\n\010Revisi" + + "on\022\017\n\005agent\030\004 \001(\tH\000\022\023\n\tprocessor\030\005 \001(\tH\000" + + "\022\n\n\002id\030\001 \001(\t\022\022\n\006parent\030\002 \003(\005B\002\030\001\022\022\n\npare" + + "nt_ids\030\007 \003(\t\022/\n\013create_time\030\003 \001(\0132\032.goog" + + "le.protobuf.Timestamp\022T\n\014human_review\030\006 " + + "\001(\0132>.google.cloud.documentai.v1beta3.Do" + + "cument.Revision.HumanReview\0323\n\013HumanRevi" + + "ew\022\r\n\005state\030\001 \001(\t\022\025\n\rstate_message\030\002 \001(\t" + + "B\010\n\006source\032\273\001\n\nTextChange\022I\n\013text_anchor" + + "\030\001 \001(\01324.google.cloud.documentai.v1beta3" + + ".Document.TextAnchor\022\024\n\014changed_text\030\002 \001" + + "(\t\022L\n\nprovenance\030\003 \003(\01324.google.cloud.do" + + "cumentai.v1beta3.Document.ProvenanceB\002\030\001" + + "B\010\n\006sourceB\344\001\n#com.google.cloud.document" + + "ai.v1beta3B\rDocumentProtoP\001ZCcloud.googl" + + "e.com/go/documentai/apiv1beta3/documenta" + + "ipb;documentaipb\252\002\037Google.Cloud.Document" + + "AI.V1Beta3\312\002\037Google\\Cloud\\DocumentAI\\V1b" + + "eta3\352\002\"Google::Cloud::DocumentAI::V1beta" + + "3b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -588,7 +603,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_documentai_v1beta3_Document_Page_Token_descriptor, new java.lang.String[] { - "Layout", "DetectedBreak", "DetectedLanguages", "Provenance", + "Layout", "DetectedBreak", "DetectedLanguages", "Provenance", "StyleInfo", }); internal_static_google_cloud_documentai_v1beta3_Document_Page_Token_DetectedBreak_descriptor = internal_static_google_cloud_documentai_v1beta3_Document_Page_Token_descriptor @@ -600,6 +615,30 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "Type", }); + internal_static_google_cloud_documentai_v1beta3_Document_Page_Token_StyleInfo_descriptor = + internal_static_google_cloud_documentai_v1beta3_Document_Page_Token_descriptor + .getNestedTypes() + .get(1); + internal_static_google_cloud_documentai_v1beta3_Document_Page_Token_StyleInfo_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_documentai_v1beta3_Document_Page_Token_StyleInfo_descriptor, + new java.lang.String[] { + "FontSize", + "PixelFontSize", + "LetterSpacing", + "FontType", + "Bold", + "Italic", + "Underlined", + "Strikeout", + "Subscript", + "Superscript", + "Smallcaps", + "FontWeight", + "Handwritten", + "TextColor", + "BackgroundColor", + }); internal_static_google_cloud_documentai_v1beta3_Document_Page_Symbol_descriptor = internal_static_google_cloud_documentai_v1beta3_Document_Page_descriptor .getNestedTypes() diff --git a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/DocumentSchema.java b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/DocumentSchema.java index 3d1d1be41b9f..ef0aede71ee6 100644 --- a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/DocumentSchema.java +++ b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/DocumentSchema.java @@ -150,16 +150,15 @@ public interface EntityTypeOrBuilder * *
      * Name of the type. It must be unique within the schema file and
-     * cannot be a 'Common Type'.  Besides that we use the following naming
-     * conventions:
+     * cannot be a "Common Type".  The following naming conventions are used:
      *
-     * - *use `snake_casing`*
-     * - name matching is case-sensitive
+     * - Use `snake_casing`.
+     * - Name matching is case-sensitive.
      * - Maximum 64 characters.
      * - Must start with a letter.
      * - Allowed characters: ASCII letters `[a-z0-9_-]`.  (For backward
      *   compatibility internal infrastructure and tooling can handle any ascii
-     *   character)
+     *   character.)
      * - The `/` is sometimes used to denote a property of a type.  For example
      *   `line_item/amount`.  This convention is deprecated, but will still be
      *   honored for backward compatibility.
@@ -175,16 +174,15 @@ public interface EntityTypeOrBuilder
      *
      * 
      * Name of the type. It must be unique within the schema file and
-     * cannot be a 'Common Type'.  Besides that we use the following naming
-     * conventions:
+     * cannot be a "Common Type".  The following naming conventions are used:
      *
-     * - *use `snake_casing`*
-     * - name matching is case-sensitive
+     * - Use `snake_casing`.
+     * - Name matching is case-sensitive.
      * - Maximum 64 characters.
      * - Must start with a letter.
      * - Allowed characters: ASCII letters `[a-z0-9_-]`.  (For backward
      *   compatibility internal infrastructure and tooling can handle any ascii
-     *   character)
+     *   character.)
      * - The `/` is sometimes used to denote a property of a type.  For example
      *   `line_item/amount`.  This convention is deprecated, but will still be
      *   honored for backward compatibility.
@@ -255,7 +253,7 @@ public interface EntityTypeOrBuilder
      *
      *
      * 
-     * Describing the nested structure, or composition of an entity.
+     * Description the nested structure, or composition of an entity.
      * 
* * @@ -268,7 +266,7 @@ public interface EntityTypeOrBuilder * * *
-     * Describing the nested structure, or composition of an entity.
+     * Description the nested structure, or composition of an entity.
      * 
* * @@ -280,7 +278,7 @@ public interface EntityTypeOrBuilder * * *
-     * Describing the nested structure, or composition of an entity.
+     * Description the nested structure, or composition of an entity.
      * 
* * @@ -292,7 +290,7 @@ public interface EntityTypeOrBuilder * * *
-     * Describing the nested structure, or composition of an entity.
+     * Description the nested structure, or composition of an entity.
      * 
* * @@ -307,7 +305,7 @@ public interface EntityTypeOrBuilder * * *
-     * Describing the nested structure, or composition of an entity.
+     * Description the nested structure, or composition of an entity.
      * 
* * @@ -317,6 +315,42 @@ public interface EntityTypeOrBuilder com.google.cloud.documentai.v1beta3.DocumentSchema.EntityType.PropertyOrBuilder getPropertiesOrBuilder(int index); + /** + * + * + *
+     * Metadata for the entity type.
+     * 
+ * + * .google.cloud.documentai.v1beta3.EntityTypeMetadata entity_type_metadata = 11; + * + * @return Whether the entityTypeMetadata field is set. + */ + boolean hasEntityTypeMetadata(); + /** + * + * + *
+     * Metadata for the entity type.
+     * 
+ * + * .google.cloud.documentai.v1beta3.EntityTypeMetadata entity_type_metadata = 11; + * + * @return The entityTypeMetadata. + */ + com.google.cloud.documentai.v1beta3.EntityTypeMetadata getEntityTypeMetadata(); + /** + * + * + *
+     * Metadata for the entity type.
+     * 
+ * + * .google.cloud.documentai.v1beta3.EntityTypeMetadata entity_type_metadata = 11; + */ + com.google.cloud.documentai.v1beta3.EntityTypeMetadataOrBuilder + getEntityTypeMetadataOrBuilder(); + com.google.cloud.documentai.v1beta3.DocumentSchema.EntityType.ValueSourceCase getValueSourceCase(); } @@ -1247,6 +1281,41 @@ public interface PropertyOrBuilder */ com.google.cloud.documentai.v1beta3.DocumentSchema.EntityType.Property.OccurrenceType getOccurrenceType(); + + /** + * + * + *
+       * Any additional metadata about the property can be added here.
+       * 
+ * + * .google.cloud.documentai.v1beta3.PropertyMetadata property_metadata = 5; + * + * @return Whether the propertyMetadata field is set. + */ + boolean hasPropertyMetadata(); + /** + * + * + *
+       * Any additional metadata about the property can be added here.
+       * 
+ * + * .google.cloud.documentai.v1beta3.PropertyMetadata property_metadata = 5; + * + * @return The propertyMetadata. + */ + com.google.cloud.documentai.v1beta3.PropertyMetadata getPropertyMetadata(); + /** + * + * + *
+       * Any additional metadata about the property can be added here.
+       * 
+ * + * .google.cloud.documentai.v1beta3.PropertyMetadata property_metadata = 5; + */ + com.google.cloud.documentai.v1beta3.PropertyMetadataOrBuilder getPropertyMetadataOrBuilder(); } /** * @@ -1299,9 +1368,15 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-       * Types of occurrences of the entity type in the document.  Note: this
-       * represents the number of instances of an entity types, not number of
-       * mentions of a given entity instance.
+       * Types of occurrences of the entity type in the document.  This
+       * represents the number of instances of instances of an entity, not
+       * number of mentions of an entity.  For example, a bank statement may
+       * only have one `account_number`, but this account number may be
+       * mentioned in several places on the document.  In this case the
+       * 'account_number' would be considered a `REQUIRED_ONCE` entity type. If,
+       * on the other hand, we expect a bank statement to contain the status of
+       * multiple different accounts for the customers, the occurrence type will
+       * be set to `REQUIRED_MULTIPLE`.
        * 
* * Protobuf enum {@code @@ -1322,7 +1397,8 @@ public enum OccurrenceType implements com.google.protobuf.ProtocolMessageEnum { * * *
-         * There will be zero or one instance of this entity type.
+         * There will be zero or one instance of this entity type.  The same
+         * entity instance may be mentioned multiple times.
          * 
* * OPTIONAL_ONCE = 1; @@ -1342,7 +1418,8 @@ public enum OccurrenceType implements com.google.protobuf.ProtocolMessageEnum { * * *
-         * The entity type will only appear exactly once.
+         * The entity type will only appear exactly once.  The same
+         * entity instance may be mentioned multiple times.
          * 
* * REQUIRED_ONCE = 3; @@ -1375,7 +1452,8 @@ public enum OccurrenceType implements com.google.protobuf.ProtocolMessageEnum { * * *
-         * There will be zero or one instance of this entity type.
+         * There will be zero or one instance of this entity type.  The same
+         * entity instance may be mentioned multiple times.
          * 
* * OPTIONAL_ONCE = 1; @@ -1395,7 +1473,8 @@ public enum OccurrenceType implements com.google.protobuf.ProtocolMessageEnum { * * *
-         * The entity type will only appear exactly once.
+         * The entity type will only appear exactly once.  The same
+         * entity instance may be mentioned multiple times.
          * 
* * REQUIRED_ONCE = 3; @@ -1659,6 +1738,57 @@ public int getOccurrenceTypeValue() { : result; } + public static final int PROPERTY_METADATA_FIELD_NUMBER = 5; + private com.google.cloud.documentai.v1beta3.PropertyMetadata propertyMetadata_; + /** + * + * + *
+       * Any additional metadata about the property can be added here.
+       * 
+ * + * .google.cloud.documentai.v1beta3.PropertyMetadata property_metadata = 5; + * + * @return Whether the propertyMetadata field is set. + */ + @java.lang.Override + public boolean hasPropertyMetadata() { + return propertyMetadata_ != null; + } + /** + * + * + *
+       * Any additional metadata about the property can be added here.
+       * 
+ * + * .google.cloud.documentai.v1beta3.PropertyMetadata property_metadata = 5; + * + * @return The propertyMetadata. + */ + @java.lang.Override + public com.google.cloud.documentai.v1beta3.PropertyMetadata getPropertyMetadata() { + return propertyMetadata_ == null + ? com.google.cloud.documentai.v1beta3.PropertyMetadata.getDefaultInstance() + : propertyMetadata_; + } + /** + * + * + *
+       * Any additional metadata about the property can be added here.
+       * 
+ * + * .google.cloud.documentai.v1beta3.PropertyMetadata property_metadata = 5; + */ + @java.lang.Override + public com.google.cloud.documentai.v1beta3.PropertyMetadataOrBuilder + getPropertyMetadataOrBuilder() { + return propertyMetadata_ == null + ? com.google.cloud.documentai.v1beta3.PropertyMetadata.getDefaultInstance() + : propertyMetadata_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -1685,6 +1815,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io .getNumber()) { output.writeEnum(3, occurrenceType_); } + if (propertyMetadata_ != null) { + output.writeMessage(5, getPropertyMetadata()); + } getUnknownFields().writeTo(output); } @@ -1706,6 +1839,10 @@ public int getSerializedSize() { .getNumber()) { size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, occurrenceType_); } + if (propertyMetadata_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(5, getPropertyMetadata()); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -1726,6 +1863,10 @@ public boolean equals(final java.lang.Object obj) { if (!getName().equals(other.getName())) return false; if (!getValueType().equals(other.getValueType())) return false; if (occurrenceType_ != other.occurrenceType_) return false; + if (hasPropertyMetadata() != other.hasPropertyMetadata()) return false; + if (hasPropertyMetadata()) { + if (!getPropertyMetadata().equals(other.getPropertyMetadata())) return false; + } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1743,6 +1884,10 @@ public int hashCode() { hash = (53 * hash) + getValueType().hashCode(); hash = (37 * hash) + OCCURRENCE_TYPE_FIELD_NUMBER; hash = (53 * hash) + occurrenceType_; + if (hasPropertyMetadata()) { + hash = (37 * hash) + PROPERTY_METADATA_FIELD_NUMBER; + hash = (53 * hash) + getPropertyMetadata().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -1898,6 +2043,11 @@ public Builder clear() { name_ = ""; valueType_ = ""; occurrenceType_ = 0; + propertyMetadata_ = null; + if (propertyMetadataBuilder_ != null) { + propertyMetadataBuilder_.dispose(); + propertyMetadataBuilder_ = null; + } return this; } @@ -1948,6 +2098,12 @@ private void buildPartial0( if (((from_bitField0_ & 0x00000004) != 0)) { result.occurrenceType_ = occurrenceType_; } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.propertyMetadata_ = + propertyMetadataBuilder_ == null + ? propertyMetadata_ + : propertyMetadataBuilder_.build(); + } } @java.lang.Override @@ -2015,6 +2171,9 @@ public Builder mergeFrom( if (other.occurrenceType_ != 0) { setOccurrenceTypeValue(other.getOccurrenceTypeValue()); } + if (other.hasPropertyMetadata()) { + mergePropertyMetadata(other.getPropertyMetadata()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -2059,6 +2218,13 @@ public Builder mergeFrom( bitField0_ |= 0x00000004; break; } // case 24 + case 42: + { + input.readMessage( + getPropertyMetadataFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 42 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -2413,6 +2579,195 @@ public Builder clearOccurrenceType() { return this; } + private com.google.cloud.documentai.v1beta3.PropertyMetadata propertyMetadata_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.documentai.v1beta3.PropertyMetadata, + com.google.cloud.documentai.v1beta3.PropertyMetadata.Builder, + com.google.cloud.documentai.v1beta3.PropertyMetadataOrBuilder> + propertyMetadataBuilder_; + /** + * + * + *
+         * Any additional metadata about the property can be added here.
+         * 
+ * + * .google.cloud.documentai.v1beta3.PropertyMetadata property_metadata = 5; + * + * @return Whether the propertyMetadata field is set. + */ + public boolean hasPropertyMetadata() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + * + * + *
+         * Any additional metadata about the property can be added here.
+         * 
+ * + * .google.cloud.documentai.v1beta3.PropertyMetadata property_metadata = 5; + * + * @return The propertyMetadata. + */ + public com.google.cloud.documentai.v1beta3.PropertyMetadata getPropertyMetadata() { + if (propertyMetadataBuilder_ == null) { + return propertyMetadata_ == null + ? com.google.cloud.documentai.v1beta3.PropertyMetadata.getDefaultInstance() + : propertyMetadata_; + } else { + return propertyMetadataBuilder_.getMessage(); + } + } + /** + * + * + *
+         * Any additional metadata about the property can be added here.
+         * 
+ * + * .google.cloud.documentai.v1beta3.PropertyMetadata property_metadata = 5; + */ + public Builder setPropertyMetadata( + com.google.cloud.documentai.v1beta3.PropertyMetadata value) { + if (propertyMetadataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + propertyMetadata_ = value; + } else { + propertyMetadataBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+         * Any additional metadata about the property can be added here.
+         * 
+ * + * .google.cloud.documentai.v1beta3.PropertyMetadata property_metadata = 5; + */ + public Builder setPropertyMetadata( + com.google.cloud.documentai.v1beta3.PropertyMetadata.Builder builderForValue) { + if (propertyMetadataBuilder_ == null) { + propertyMetadata_ = builderForValue.build(); + } else { + propertyMetadataBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+         * Any additional metadata about the property can be added here.
+         * 
+ * + * .google.cloud.documentai.v1beta3.PropertyMetadata property_metadata = 5; + */ + public Builder mergePropertyMetadata( + com.google.cloud.documentai.v1beta3.PropertyMetadata value) { + if (propertyMetadataBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) + && propertyMetadata_ != null + && propertyMetadata_ + != com.google.cloud.documentai.v1beta3.PropertyMetadata.getDefaultInstance()) { + getPropertyMetadataBuilder().mergeFrom(value); + } else { + propertyMetadata_ = value; + } + } else { + propertyMetadataBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+         * Any additional metadata about the property can be added here.
+         * 
+ * + * .google.cloud.documentai.v1beta3.PropertyMetadata property_metadata = 5; + */ + public Builder clearPropertyMetadata() { + bitField0_ = (bitField0_ & ~0x00000008); + propertyMetadata_ = null; + if (propertyMetadataBuilder_ != null) { + propertyMetadataBuilder_.dispose(); + propertyMetadataBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+         * Any additional metadata about the property can be added here.
+         * 
+ * + * .google.cloud.documentai.v1beta3.PropertyMetadata property_metadata = 5; + */ + public com.google.cloud.documentai.v1beta3.PropertyMetadata.Builder + getPropertyMetadataBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return getPropertyMetadataFieldBuilder().getBuilder(); + } + /** + * + * + *
+         * Any additional metadata about the property can be added here.
+         * 
+ * + * .google.cloud.documentai.v1beta3.PropertyMetadata property_metadata = 5; + */ + public com.google.cloud.documentai.v1beta3.PropertyMetadataOrBuilder + getPropertyMetadataOrBuilder() { + if (propertyMetadataBuilder_ != null) { + return propertyMetadataBuilder_.getMessageOrBuilder(); + } else { + return propertyMetadata_ == null + ? com.google.cloud.documentai.v1beta3.PropertyMetadata.getDefaultInstance() + : propertyMetadata_; + } + } + /** + * + * + *
+         * Any additional metadata about the property can be added here.
+         * 
+ * + * .google.cloud.documentai.v1beta3.PropertyMetadata property_metadata = 5; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.documentai.v1beta3.PropertyMetadata, + com.google.cloud.documentai.v1beta3.PropertyMetadata.Builder, + com.google.cloud.documentai.v1beta3.PropertyMetadataOrBuilder> + getPropertyMetadataFieldBuilder() { + if (propertyMetadataBuilder_ == null) { + propertyMetadataBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.documentai.v1beta3.PropertyMetadata, + com.google.cloud.documentai.v1beta3.PropertyMetadata.Builder, + com.google.cloud.documentai.v1beta3.PropertyMetadataOrBuilder>( + getPropertyMetadata(), getParentForChildren(), isClean()); + propertyMetadata_ = null; + } + return propertyMetadataBuilder_; + } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -2659,16 +3014,15 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { * *
      * Name of the type. It must be unique within the schema file and
-     * cannot be a 'Common Type'.  Besides that we use the following naming
-     * conventions:
+     * cannot be a "Common Type".  The following naming conventions are used:
      *
-     * - *use `snake_casing`*
-     * - name matching is case-sensitive
+     * - Use `snake_casing`.
+     * - Name matching is case-sensitive.
      * - Maximum 64 characters.
      * - Must start with a letter.
      * - Allowed characters: ASCII letters `[a-z0-9_-]`.  (For backward
      *   compatibility internal infrastructure and tooling can handle any ascii
-     *   character)
+     *   character.)
      * - The `/` is sometimes used to denote a property of a type.  For example
      *   `line_item/amount`.  This convention is deprecated, but will still be
      *   honored for backward compatibility.
@@ -2695,16 +3049,15 @@ public java.lang.String getName() {
      *
      * 
      * Name of the type. It must be unique within the schema file and
-     * cannot be a 'Common Type'.  Besides that we use the following naming
-     * conventions:
+     * cannot be a "Common Type".  The following naming conventions are used:
      *
-     * - *use `snake_casing`*
-     * - name matching is case-sensitive
+     * - Use `snake_casing`.
+     * - Name matching is case-sensitive.
      * - Maximum 64 characters.
      * - Must start with a letter.
      * - Allowed characters: ASCII letters `[a-z0-9_-]`.  (For backward
      *   compatibility internal infrastructure and tooling can handle any ascii
-     *   character)
+     *   character.)
      * - The `/` is sometimes used to denote a property of a type.  For example
      *   `line_item/amount`.  This convention is deprecated, but will still be
      *   honored for backward compatibility.
@@ -2804,7 +3157,7 @@ public com.google.protobuf.ByteString getBaseTypesBytes(int index) {
      *
      *
      * 
-     * Describing the nested structure, or composition of an entity.
+     * Description the nested structure, or composition of an entity.
      * 
* * @@ -2820,7 +3173,7 @@ public com.google.protobuf.ByteString getBaseTypesBytes(int index) { * * *
-     * Describing the nested structure, or composition of an entity.
+     * Description the nested structure, or composition of an entity.
      * 
* * @@ -2838,7 +3191,7 @@ public com.google.protobuf.ByteString getBaseTypesBytes(int index) { * * *
-     * Describing the nested structure, or composition of an entity.
+     * Description the nested structure, or composition of an entity.
      * 
* * @@ -2853,7 +3206,7 @@ public int getPropertiesCount() { * * *
-     * Describing the nested structure, or composition of an entity.
+     * Description the nested structure, or composition of an entity.
      * 
* * @@ -2869,7 +3222,7 @@ public com.google.cloud.documentai.v1beta3.DocumentSchema.EntityType.Property ge * * *
-     * Describing the nested structure, or composition of an entity.
+     * Description the nested structure, or composition of an entity.
      * 
* * @@ -2882,6 +3235,57 @@ public com.google.cloud.documentai.v1beta3.DocumentSchema.EntityType.Property ge return properties_.get(index); } + public static final int ENTITY_TYPE_METADATA_FIELD_NUMBER = 11; + private com.google.cloud.documentai.v1beta3.EntityTypeMetadata entityTypeMetadata_; + /** + * + * + *
+     * Metadata for the entity type.
+     * 
+ * + * .google.cloud.documentai.v1beta3.EntityTypeMetadata entity_type_metadata = 11; + * + * @return Whether the entityTypeMetadata field is set. + */ + @java.lang.Override + public boolean hasEntityTypeMetadata() { + return entityTypeMetadata_ != null; + } + /** + * + * + *
+     * Metadata for the entity type.
+     * 
+ * + * .google.cloud.documentai.v1beta3.EntityTypeMetadata entity_type_metadata = 11; + * + * @return The entityTypeMetadata. + */ + @java.lang.Override + public com.google.cloud.documentai.v1beta3.EntityTypeMetadata getEntityTypeMetadata() { + return entityTypeMetadata_ == null + ? com.google.cloud.documentai.v1beta3.EntityTypeMetadata.getDefaultInstance() + : entityTypeMetadata_; + } + /** + * + * + *
+     * Metadata for the entity type.
+     * 
+ * + * .google.cloud.documentai.v1beta3.EntityTypeMetadata entity_type_metadata = 11; + */ + @java.lang.Override + public com.google.cloud.documentai.v1beta3.EntityTypeMetadataOrBuilder + getEntityTypeMetadataOrBuilder() { + return entityTypeMetadata_ == null + ? com.google.cloud.documentai.v1beta3.EntityTypeMetadata.getDefaultInstance() + : entityTypeMetadata_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -2905,6 +3309,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < properties_.size(); i++) { output.writeMessage(6, properties_.get(i)); } + if (entityTypeMetadata_ != null) { + output.writeMessage(11, getEntityTypeMetadata()); + } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 13, displayName_); } @@ -2937,6 +3344,10 @@ public int getSerializedSize() { for (int i = 0; i < properties_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, properties_.get(i)); } + if (entityTypeMetadata_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(11, getEntityTypeMetadata()); + } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(13, displayName_); } @@ -2967,6 +3378,10 @@ public boolean equals(final java.lang.Object obj) { if (!getName().equals(other.getName())) return false; if (!getBaseTypesList().equals(other.getBaseTypesList())) return false; if (!getPropertiesList().equals(other.getPropertiesList())) return false; + if (hasEntityTypeMetadata() != other.hasEntityTypeMetadata()) return false; + if (hasEntityTypeMetadata()) { + if (!getEntityTypeMetadata().equals(other.getEntityTypeMetadata())) return false; + } if (!getValueSourceCase().equals(other.getValueSourceCase())) return false; switch (valueSourceCase_) { case 14: @@ -2998,6 +3413,10 @@ public int hashCode() { hash = (37 * hash) + PROPERTIES_FIELD_NUMBER; hash = (53 * hash) + getPropertiesList().hashCode(); } + if (hasEntityTypeMetadata()) { + hash = (37 * hash) + ENTITY_TYPE_METADATA_FIELD_NUMBER; + hash = (53 * hash) + getEntityTypeMetadata().hashCode(); + } switch (valueSourceCase_) { case 14: hash = (37 * hash) + ENUM_VALUES_FIELD_NUMBER; @@ -3163,6 +3582,11 @@ public Builder clear() { propertiesBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000010); + entityTypeMetadata_ = null; + if (entityTypeMetadataBuilder_ != null) { + entityTypeMetadataBuilder_.dispose(); + entityTypeMetadataBuilder_ = null; + } valueSourceCase_ = 0; valueSource_ = null; return this; @@ -3228,6 +3652,12 @@ private void buildPartial0( baseTypes_.makeImmutable(); result.baseTypes_ = baseTypes_; } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.entityTypeMetadata_ = + entityTypeMetadataBuilder_ == null + ? entityTypeMetadata_ + : entityTypeMetadataBuilder_.build(); + } } private void buildPartialOneofs( @@ -3336,6 +3766,9 @@ public Builder mergeFrom( } } } + if (other.hasEntityTypeMetadata()) { + mergeEntityTypeMetadata(other.getEntityTypeMetadata()); + } switch (other.getValueSourceCase()) { case ENUM_VALUES: { @@ -3401,6 +3834,13 @@ public Builder mergeFrom( } break; } // case 50 + case 90: + { + input.readMessage( + getEntityTypeMetadataFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000020; + break; + } // case 90 case 106: { displayName_ = input.readStringRequireUtf8(); @@ -3839,16 +4279,15 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { * *
        * Name of the type. It must be unique within the schema file and
-       * cannot be a 'Common Type'.  Besides that we use the following naming
-       * conventions:
+       * cannot be a "Common Type".  The following naming conventions are used:
        *
-       * - *use `snake_casing`*
-       * - name matching is case-sensitive
+       * - Use `snake_casing`.
+       * - Name matching is case-sensitive.
        * - Maximum 64 characters.
        * - Must start with a letter.
        * - Allowed characters: ASCII letters `[a-z0-9_-]`.  (For backward
        *   compatibility internal infrastructure and tooling can handle any ascii
-       *   character)
+       *   character.)
        * - The `/` is sometimes used to denote a property of a type.  For example
        *   `line_item/amount`.  This convention is deprecated, but will still be
        *   honored for backward compatibility.
@@ -3874,16 +4313,15 @@ public java.lang.String getName() {
        *
        * 
        * Name of the type. It must be unique within the schema file and
-       * cannot be a 'Common Type'.  Besides that we use the following naming
-       * conventions:
+       * cannot be a "Common Type".  The following naming conventions are used:
        *
-       * - *use `snake_casing`*
-       * - name matching is case-sensitive
+       * - Use `snake_casing`.
+       * - Name matching is case-sensitive.
        * - Maximum 64 characters.
        * - Must start with a letter.
        * - Allowed characters: ASCII letters `[a-z0-9_-]`.  (For backward
        *   compatibility internal infrastructure and tooling can handle any ascii
-       *   character)
+       *   character.)
        * - The `/` is sometimes used to denote a property of a type.  For example
        *   `line_item/amount`.  This convention is deprecated, but will still be
        *   honored for backward compatibility.
@@ -3909,16 +4347,15 @@ public com.google.protobuf.ByteString getNameBytes() {
        *
        * 
        * Name of the type. It must be unique within the schema file and
-       * cannot be a 'Common Type'.  Besides that we use the following naming
-       * conventions:
+       * cannot be a "Common Type".  The following naming conventions are used:
        *
-       * - *use `snake_casing`*
-       * - name matching is case-sensitive
+       * - Use `snake_casing`.
+       * - Name matching is case-sensitive.
        * - Maximum 64 characters.
        * - Must start with a letter.
        * - Allowed characters: ASCII letters `[a-z0-9_-]`.  (For backward
        *   compatibility internal infrastructure and tooling can handle any ascii
-       *   character)
+       *   character.)
        * - The `/` is sometimes used to denote a property of a type.  For example
        *   `line_item/amount`.  This convention is deprecated, but will still be
        *   honored for backward compatibility.
@@ -3943,16 +4380,15 @@ public Builder setName(java.lang.String value) {
        *
        * 
        * Name of the type. It must be unique within the schema file and
-       * cannot be a 'Common Type'.  Besides that we use the following naming
-       * conventions:
+       * cannot be a "Common Type".  The following naming conventions are used:
        *
-       * - *use `snake_casing`*
-       * - name matching is case-sensitive
+       * - Use `snake_casing`.
+       * - Name matching is case-sensitive.
        * - Maximum 64 characters.
        * - Must start with a letter.
        * - Allowed characters: ASCII letters `[a-z0-9_-]`.  (For backward
        *   compatibility internal infrastructure and tooling can handle any ascii
-       *   character)
+       *   character.)
        * - The `/` is sometimes used to denote a property of a type.  For example
        *   `line_item/amount`.  This convention is deprecated, but will still be
        *   honored for backward compatibility.
@@ -3973,16 +4409,15 @@ public Builder clearName() {
        *
        * 
        * Name of the type. It must be unique within the schema file and
-       * cannot be a 'Common Type'.  Besides that we use the following naming
-       * conventions:
+       * cannot be a "Common Type".  The following naming conventions are used:
        *
-       * - *use `snake_casing`*
-       * - name matching is case-sensitive
+       * - Use `snake_casing`.
+       * - Name matching is case-sensitive.
        * - Maximum 64 characters.
        * - Must start with a letter.
        * - Allowed characters: ASCII letters `[a-z0-9_-]`.  (For backward
        *   compatibility internal infrastructure and tooling can handle any ascii
-       *   character)
+       *   character.)
        * - The `/` is sometimes used to denote a property of a type.  For example
        *   `line_item/amount`.  This convention is deprecated, but will still be
        *   honored for backward compatibility.
@@ -4210,7 +4645,7 @@ private void ensurePropertiesIsMutable() {
        *
        *
        * 
-       * Describing the nested structure, or composition of an entity.
+       * Description the nested structure, or composition of an entity.
        * 
* * @@ -4229,7 +4664,7 @@ private void ensurePropertiesIsMutable() { * * *
-       * Describing the nested structure, or composition of an entity.
+       * Description the nested structure, or composition of an entity.
        * 
* * @@ -4247,7 +4682,7 @@ public int getPropertiesCount() { * * *
-       * Describing the nested structure, or composition of an entity.
+       * Description the nested structure, or composition of an entity.
        * 
* * @@ -4266,7 +4701,7 @@ public com.google.cloud.documentai.v1beta3.DocumentSchema.EntityType.Property ge * * *
-       * Describing the nested structure, or composition of an entity.
+       * Description the nested structure, or composition of an entity.
        * 
* * @@ -4291,7 +4726,7 @@ public Builder setProperties( * * *
-       * Describing the nested structure, or composition of an entity.
+       * Description the nested structure, or composition of an entity.
        * 
* * @@ -4315,7 +4750,7 @@ public Builder setProperties( * * *
-       * Describing the nested structure, or composition of an entity.
+       * Description the nested structure, or composition of an entity.
        * 
* * @@ -4340,7 +4775,7 @@ public Builder addProperties( * * *
-       * Describing the nested structure, or composition of an entity.
+       * Description the nested structure, or composition of an entity.
        * 
* * @@ -4365,7 +4800,7 @@ public Builder addProperties( * * *
-       * Describing the nested structure, or composition of an entity.
+       * Description the nested structure, or composition of an entity.
        * 
* * @@ -4388,7 +4823,7 @@ public Builder addProperties( * * *
-       * Describing the nested structure, or composition of an entity.
+       * Description the nested structure, or composition of an entity.
        * 
* * @@ -4412,7 +4847,7 @@ public Builder addProperties( * * *
-       * Describing the nested structure, or composition of an entity.
+       * Description the nested structure, or composition of an entity.
        * 
* * @@ -4436,7 +4871,7 @@ public Builder addAllProperties( * * *
-       * Describing the nested structure, or composition of an entity.
+       * Description the nested structure, or composition of an entity.
        * 
* * @@ -4457,7 +4892,7 @@ public Builder clearProperties() { * * *
-       * Describing the nested structure, or composition of an entity.
+       * Description the nested structure, or composition of an entity.
        * 
* * @@ -4478,7 +4913,7 @@ public Builder removeProperties(int index) { * * *
-       * Describing the nested structure, or composition of an entity.
+       * Description the nested structure, or composition of an entity.
        * 
* * @@ -4493,7 +4928,7 @@ public Builder removeProperties(int index) { * * *
-       * Describing the nested structure, or composition of an entity.
+       * Description the nested structure, or composition of an entity.
        * 
* * @@ -4512,7 +4947,7 @@ public Builder removeProperties(int index) { * * *
-       * Describing the nested structure, or composition of an entity.
+       * Description the nested structure, or composition of an entity.
        * 
* * @@ -4533,7 +4968,7 @@ public Builder removeProperties(int index) { * * *
-       * Describing the nested structure, or composition of an entity.
+       * Description the nested structure, or composition of an entity.
        * 
* * @@ -4551,7 +4986,7 @@ public Builder removeProperties(int index) { * * *
-       * Describing the nested structure, or composition of an entity.
+       * Description the nested structure, or composition of an entity.
        * 
* * @@ -4570,7 +5005,7 @@ public Builder removeProperties(int index) { * * *
-       * Describing the nested structure, or composition of an entity.
+       * Description the nested structure, or composition of an entity.
        * 
* * @@ -4600,6 +5035,195 @@ public Builder removeProperties(int index) { return propertiesBuilder_; } + private com.google.cloud.documentai.v1beta3.EntityTypeMetadata entityTypeMetadata_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.documentai.v1beta3.EntityTypeMetadata, + com.google.cloud.documentai.v1beta3.EntityTypeMetadata.Builder, + com.google.cloud.documentai.v1beta3.EntityTypeMetadataOrBuilder> + entityTypeMetadataBuilder_; + /** + * + * + *
+       * Metadata for the entity type.
+       * 
+ * + * .google.cloud.documentai.v1beta3.EntityTypeMetadata entity_type_metadata = 11; + * + * @return Whether the entityTypeMetadata field is set. + */ + public boolean hasEntityTypeMetadata() { + return ((bitField0_ & 0x00000020) != 0); + } + /** + * + * + *
+       * Metadata for the entity type.
+       * 
+ * + * .google.cloud.documentai.v1beta3.EntityTypeMetadata entity_type_metadata = 11; + * + * @return The entityTypeMetadata. + */ + public com.google.cloud.documentai.v1beta3.EntityTypeMetadata getEntityTypeMetadata() { + if (entityTypeMetadataBuilder_ == null) { + return entityTypeMetadata_ == null + ? com.google.cloud.documentai.v1beta3.EntityTypeMetadata.getDefaultInstance() + : entityTypeMetadata_; + } else { + return entityTypeMetadataBuilder_.getMessage(); + } + } + /** + * + * + *
+       * Metadata for the entity type.
+       * 
+ * + * .google.cloud.documentai.v1beta3.EntityTypeMetadata entity_type_metadata = 11; + */ + public Builder setEntityTypeMetadata( + com.google.cloud.documentai.v1beta3.EntityTypeMetadata value) { + if (entityTypeMetadataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + entityTypeMetadata_ = value; + } else { + entityTypeMetadataBuilder_.setMessage(value); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + * + * + *
+       * Metadata for the entity type.
+       * 
+ * + * .google.cloud.documentai.v1beta3.EntityTypeMetadata entity_type_metadata = 11; + */ + public Builder setEntityTypeMetadata( + com.google.cloud.documentai.v1beta3.EntityTypeMetadata.Builder builderForValue) { + if (entityTypeMetadataBuilder_ == null) { + entityTypeMetadata_ = builderForValue.build(); + } else { + entityTypeMetadataBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + * + * + *
+       * Metadata for the entity type.
+       * 
+ * + * .google.cloud.documentai.v1beta3.EntityTypeMetadata entity_type_metadata = 11; + */ + public Builder mergeEntityTypeMetadata( + com.google.cloud.documentai.v1beta3.EntityTypeMetadata value) { + if (entityTypeMetadataBuilder_ == null) { + if (((bitField0_ & 0x00000020) != 0) + && entityTypeMetadata_ != null + && entityTypeMetadata_ + != com.google.cloud.documentai.v1beta3.EntityTypeMetadata.getDefaultInstance()) { + getEntityTypeMetadataBuilder().mergeFrom(value); + } else { + entityTypeMetadata_ = value; + } + } else { + entityTypeMetadataBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + * + * + *
+       * Metadata for the entity type.
+       * 
+ * + * .google.cloud.documentai.v1beta3.EntityTypeMetadata entity_type_metadata = 11; + */ + public Builder clearEntityTypeMetadata() { + bitField0_ = (bitField0_ & ~0x00000020); + entityTypeMetadata_ = null; + if (entityTypeMetadataBuilder_ != null) { + entityTypeMetadataBuilder_.dispose(); + entityTypeMetadataBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+       * Metadata for the entity type.
+       * 
+ * + * .google.cloud.documentai.v1beta3.EntityTypeMetadata entity_type_metadata = 11; + */ + public com.google.cloud.documentai.v1beta3.EntityTypeMetadata.Builder + getEntityTypeMetadataBuilder() { + bitField0_ |= 0x00000020; + onChanged(); + return getEntityTypeMetadataFieldBuilder().getBuilder(); + } + /** + * + * + *
+       * Metadata for the entity type.
+       * 
+ * + * .google.cloud.documentai.v1beta3.EntityTypeMetadata entity_type_metadata = 11; + */ + public com.google.cloud.documentai.v1beta3.EntityTypeMetadataOrBuilder + getEntityTypeMetadataOrBuilder() { + if (entityTypeMetadataBuilder_ != null) { + return entityTypeMetadataBuilder_.getMessageOrBuilder(); + } else { + return entityTypeMetadata_ == null + ? com.google.cloud.documentai.v1beta3.EntityTypeMetadata.getDefaultInstance() + : entityTypeMetadata_; + } + } + /** + * + * + *
+       * Metadata for the entity type.
+       * 
+ * + * .google.cloud.documentai.v1beta3.EntityTypeMetadata entity_type_metadata = 11; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.documentai.v1beta3.EntityTypeMetadata, + com.google.cloud.documentai.v1beta3.EntityTypeMetadata.Builder, + com.google.cloud.documentai.v1beta3.EntityTypeMetadataOrBuilder> + getEntityTypeMetadataFieldBuilder() { + if (entityTypeMetadataBuilder_ == null) { + entityTypeMetadataBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.documentai.v1beta3.EntityTypeMetadata, + com.google.cloud.documentai.v1beta3.EntityTypeMetadata.Builder, + com.google.cloud.documentai.v1beta3.EntityTypeMetadataOrBuilder>( + getEntityTypeMetadata(), getParentForChildren(), isClean()); + entityTypeMetadata_ = null; + } + return entityTypeMetadataBuilder_; + } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -4676,8 +5300,8 @@ public interface MetadataOrBuilder * * *
-     * If true, a `document` entity type can be applied to subdocument (
-     * splitting). Otherwise, it can only be applied to the entire document
+     * If true, a `document` entity type can be applied to subdocument
+     * (splitting). Otherwise, it can only be applied to the entire document
      * (classification).
      * 
* @@ -4777,8 +5401,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-     * If true, a `document` entity type can be applied to subdocument (
-     * splitting). Otherwise, it can only be applied to the entire document
+     * If true, a `document` entity type can be applied to subdocument
+     * (splitting). Otherwise, it can only be applied to the entire document
      * (classification).
      * 
* @@ -5271,8 +5895,8 @@ public Builder mergeFrom( * * *
-       * If true, a `document` entity type can be applied to subdocument (
-       * splitting). Otherwise, it can only be applied to the entire document
+       * If true, a `document` entity type can be applied to subdocument
+       * (splitting). Otherwise, it can only be applied to the entire document
        * (classification).
        * 
* @@ -5288,8 +5912,8 @@ public boolean getDocumentSplitter() { * * *
-       * If true, a `document` entity type can be applied to subdocument (
-       * splitting). Otherwise, it can only be applied to the entire document
+       * If true, a `document` entity type can be applied to subdocument
+       * (splitting). Otherwise, it can only be applied to the entire document
        * (classification).
        * 
* @@ -5309,8 +5933,8 @@ public Builder setDocumentSplitter(boolean value) { * * *
-       * If true, a `document` entity type can be applied to subdocument (
-       * splitting). Otherwise, it can only be applied to the entire document
+       * If true, a `document` entity type can be applied to subdocument
+       * (splitting). Otherwise, it can only be applied to the entire document
        * (classification).
        * 
* diff --git a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/EnableProcessorMetadata.java b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/EnableProcessorMetadata.java index 20d9af83201f..297967e7a213 100644 --- a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/EnableProcessorMetadata.java +++ b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/EnableProcessorMetadata.java @@ -22,7 +22,9 @@ * * *
- * The long running operation metadata for enable processor method.
+ * The long-running operation metadata for the
+ * [EnableProcessor][google.cloud.documentai.v1beta3.DocumentProcessorService.EnableProcessor]
+ * method.
  * 
* * Protobuf type {@code google.cloud.documentai.v1beta3.EnableProcessorMetadata} @@ -66,7 +68,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * The basic metadata of the long running operation.
+   * The basic metadata of the long-running operation.
    * 
* * .google.cloud.documentai.v1beta3.CommonOperationMetadata common_metadata = 5; @@ -81,7 +83,7 @@ public boolean hasCommonMetadata() { * * *
-   * The basic metadata of the long running operation.
+   * The basic metadata of the long-running operation.
    * 
* * .google.cloud.documentai.v1beta3.CommonOperationMetadata common_metadata = 5; @@ -98,7 +100,7 @@ public com.google.cloud.documentai.v1beta3.CommonOperationMetadata getCommonMeta * * *
-   * The basic metadata of the long running operation.
+   * The basic metadata of the long-running operation.
    * 
* * .google.cloud.documentai.v1beta3.CommonOperationMetadata common_metadata = 5; @@ -280,7 +282,9 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * The long running operation metadata for enable processor method.
+   * The long-running operation metadata for the
+   * [EnableProcessor][google.cloud.documentai.v1beta3.DocumentProcessorService.EnableProcessor]
+   * method.
    * 
* * Protobuf type {@code google.cloud.documentai.v1beta3.EnableProcessorMetadata} @@ -472,7 +476,7 @@ public Builder mergeFrom( * * *
-     * The basic metadata of the long running operation.
+     * The basic metadata of the long-running operation.
      * 
* * .google.cloud.documentai.v1beta3.CommonOperationMetadata common_metadata = 5; @@ -486,7 +490,7 @@ public boolean hasCommonMetadata() { * * *
-     * The basic metadata of the long running operation.
+     * The basic metadata of the long-running operation.
      * 
* * .google.cloud.documentai.v1beta3.CommonOperationMetadata common_metadata = 5; @@ -506,7 +510,7 @@ public com.google.cloud.documentai.v1beta3.CommonOperationMetadata getCommonMeta * * *
-     * The basic metadata of the long running operation.
+     * The basic metadata of the long-running operation.
      * 
* * .google.cloud.documentai.v1beta3.CommonOperationMetadata common_metadata = 5; @@ -529,7 +533,7 @@ public Builder setCommonMetadata( * * *
-     * The basic metadata of the long running operation.
+     * The basic metadata of the long-running operation.
      * 
* * .google.cloud.documentai.v1beta3.CommonOperationMetadata common_metadata = 5; @@ -549,7 +553,7 @@ public Builder setCommonMetadata( * * *
-     * The basic metadata of the long running operation.
+     * The basic metadata of the long-running operation.
      * 
* * .google.cloud.documentai.v1beta3.CommonOperationMetadata common_metadata = 5; @@ -577,7 +581,7 @@ public Builder mergeCommonMetadata( * * *
-     * The basic metadata of the long running operation.
+     * The basic metadata of the long-running operation.
      * 
* * .google.cloud.documentai.v1beta3.CommonOperationMetadata common_metadata = 5; @@ -596,7 +600,7 @@ public Builder clearCommonMetadata() { * * *
-     * The basic metadata of the long running operation.
+     * The basic metadata of the long-running operation.
      * 
* * .google.cloud.documentai.v1beta3.CommonOperationMetadata common_metadata = 5; @@ -611,7 +615,7 @@ public Builder clearCommonMetadata() { * * *
-     * The basic metadata of the long running operation.
+     * The basic metadata of the long-running operation.
      * 
* * .google.cloud.documentai.v1beta3.CommonOperationMetadata common_metadata = 5; @@ -630,7 +634,7 @@ public Builder clearCommonMetadata() { * * *
-     * The basic metadata of the long running operation.
+     * The basic metadata of the long-running operation.
      * 
* * .google.cloud.documentai.v1beta3.CommonOperationMetadata common_metadata = 5; diff --git a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/EnableProcessorMetadataOrBuilder.java b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/EnableProcessorMetadataOrBuilder.java index ac57c3e27bf7..ee21e14c929a 100644 --- a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/EnableProcessorMetadataOrBuilder.java +++ b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/EnableProcessorMetadataOrBuilder.java @@ -27,7 +27,7 @@ public interface EnableProcessorMetadataOrBuilder * * *
-   * The basic metadata of the long running operation.
+   * The basic metadata of the long-running operation.
    * 
* * .google.cloud.documentai.v1beta3.CommonOperationMetadata common_metadata = 5; @@ -39,7 +39,7 @@ public interface EnableProcessorMetadataOrBuilder * * *
-   * The basic metadata of the long running operation.
+   * The basic metadata of the long-running operation.
    * 
* * .google.cloud.documentai.v1beta3.CommonOperationMetadata common_metadata = 5; @@ -51,7 +51,7 @@ public interface EnableProcessorMetadataOrBuilder * * *
-   * The basic metadata of the long running operation.
+   * The basic metadata of the long-running operation.
    * 
* * .google.cloud.documentai.v1beta3.CommonOperationMetadata common_metadata = 5; diff --git a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/EnableProcessorRequest.java b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/EnableProcessorRequest.java index b15f703947ec..a529e0375439 100644 --- a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/EnableProcessorRequest.java +++ b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/EnableProcessorRequest.java @@ -22,7 +22,9 @@ * * *
- * Request message for the enable processor method.
+ * Request message for the
+ * [EnableProcessor][google.cloud.documentai.v1beta3.DocumentProcessorService.EnableProcessor]
+ * method.
  * 
* * Protobuf type {@code google.cloud.documentai.v1beta3.EnableProcessorRequest} @@ -281,7 +283,9 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * Request message for the enable processor method.
+   * Request message for the
+   * [EnableProcessor][google.cloud.documentai.v1beta3.DocumentProcessorService.EnableProcessor]
+   * method.
    * 
* * Protobuf type {@code google.cloud.documentai.v1beta3.EnableProcessorRequest} diff --git a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/EnableProcessorResponse.java b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/EnableProcessorResponse.java index 5445350ccca1..2bfe43da1ad8 100644 --- a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/EnableProcessorResponse.java +++ b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/EnableProcessorResponse.java @@ -22,8 +22,9 @@ * * *
- * Response message for the enable processor method.
- * Intentionally empty proto for adding fields in future.
+ * Response message for the
+ * [EnableProcessor][google.cloud.documentai.v1beta3.DocumentProcessorService.EnableProcessor]
+ * method. Intentionally empty proto for adding fields in future.
  * 
* * Protobuf type {@code google.cloud.documentai.v1beta3.EnableProcessorResponse} @@ -216,8 +217,9 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * Response message for the enable processor method.
-   * Intentionally empty proto for adding fields in future.
+   * Response message for the
+   * [EnableProcessor][google.cloud.documentai.v1beta3.DocumentProcessorService.EnableProcessor]
+   * method. Intentionally empty proto for adding fields in future.
    * 
* * Protobuf type {@code google.cloud.documentai.v1beta3.EnableProcessorResponse} diff --git a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/EntityTypeMetadata.java b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/EntityTypeMetadata.java new file mode 100644 index 000000000000..b56dbc1017d8 --- /dev/null +++ b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/EntityTypeMetadata.java @@ -0,0 +1,535 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the 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/v1beta3/document_schema.proto + +package com.google.cloud.documentai.v1beta3; + +/** + * + * + *
+ * Metadata about an entity type.
+ * 
+ * + * Protobuf type {@code google.cloud.documentai.v1beta3.EntityTypeMetadata} + */ +public final class EntityTypeMetadata extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.documentai.v1beta3.EntityTypeMetadata) + EntityTypeMetadataOrBuilder { + private static final long serialVersionUID = 0L; + // Use EntityTypeMetadata.newBuilder() to construct. + private EntityTypeMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private EntityTypeMetadata() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new EntityTypeMetadata(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.documentai.v1beta3.DocumentAiDocumentSchema + .internal_static_google_cloud_documentai_v1beta3_EntityTypeMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.documentai.v1beta3.DocumentAiDocumentSchema + .internal_static_google_cloud_documentai_v1beta3_EntityTypeMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.documentai.v1beta3.EntityTypeMetadata.class, + com.google.cloud.documentai.v1beta3.EntityTypeMetadata.Builder.class); + } + + public static final int INACTIVE_FIELD_NUMBER = 5; + private boolean inactive_ = false; + /** + * + * + *
+   * Whether the entity type should be considered inactive.
+   * 
+ * + * bool inactive = 5; + * + * @return The inactive. + */ + @java.lang.Override + public boolean getInactive() { + return inactive_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (inactive_ != false) { + output.writeBool(5, inactive_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (inactive_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(5, inactive_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.documentai.v1beta3.EntityTypeMetadata)) { + return super.equals(obj); + } + com.google.cloud.documentai.v1beta3.EntityTypeMetadata other = + (com.google.cloud.documentai.v1beta3.EntityTypeMetadata) obj; + + if (getInactive() != other.getInactive()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + INACTIVE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getInactive()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.documentai.v1beta3.EntityTypeMetadata parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.documentai.v1beta3.EntityTypeMetadata 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.v1beta3.EntityTypeMetadata parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.documentai.v1beta3.EntityTypeMetadata parseFrom( + com.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.v1beta3.EntityTypeMetadata parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.documentai.v1beta3.EntityTypeMetadata parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.documentai.v1beta3.EntityTypeMetadata parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.documentai.v1beta3.EntityTypeMetadata 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.v1beta3.EntityTypeMetadata parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.documentai.v1beta3.EntityTypeMetadata 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.v1beta3.EntityTypeMetadata parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.documentai.v1beta3.EntityTypeMetadata 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 static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.documentai.v1beta3.EntityTypeMetadata prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Metadata about an entity type.
+   * 
+ * + * Protobuf type {@code google.cloud.documentai.v1beta3.EntityTypeMetadata} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.documentai.v1beta3.EntityTypeMetadata) + com.google.cloud.documentai.v1beta3.EntityTypeMetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.documentai.v1beta3.DocumentAiDocumentSchema + .internal_static_google_cloud_documentai_v1beta3_EntityTypeMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.documentai.v1beta3.DocumentAiDocumentSchema + .internal_static_google_cloud_documentai_v1beta3_EntityTypeMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.documentai.v1beta3.EntityTypeMetadata.class, + com.google.cloud.documentai.v1beta3.EntityTypeMetadata.Builder.class); + } + + // Construct using com.google.cloud.documentai.v1beta3.EntityTypeMetadata.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + inactive_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.documentai.v1beta3.DocumentAiDocumentSchema + .internal_static_google_cloud_documentai_v1beta3_EntityTypeMetadata_descriptor; + } + + @java.lang.Override + public com.google.cloud.documentai.v1beta3.EntityTypeMetadata getDefaultInstanceForType() { + return com.google.cloud.documentai.v1beta3.EntityTypeMetadata.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.documentai.v1beta3.EntityTypeMetadata build() { + com.google.cloud.documentai.v1beta3.EntityTypeMetadata result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.documentai.v1beta3.EntityTypeMetadata buildPartial() { + com.google.cloud.documentai.v1beta3.EntityTypeMetadata result = + new com.google.cloud.documentai.v1beta3.EntityTypeMetadata(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.documentai.v1beta3.EntityTypeMetadata result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.inactive_ = inactive_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.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.v1beta3.EntityTypeMetadata) { + return mergeFrom((com.google.cloud.documentai.v1beta3.EntityTypeMetadata) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.documentai.v1beta3.EntityTypeMetadata other) { + if (other == com.google.cloud.documentai.v1beta3.EntityTypeMetadata.getDefaultInstance()) + return this; + if (other.getInactive() != false) { + setInactive(other.getInactive()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 40: + { + inactive_ = input.readBool(); + bitField0_ |= 0x00000001; + break; + } // case 40 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private boolean inactive_; + /** + * + * + *
+     * Whether the entity type should be considered inactive.
+     * 
+ * + * bool inactive = 5; + * + * @return The inactive. + */ + @java.lang.Override + public boolean getInactive() { + return inactive_; + } + /** + * + * + *
+     * Whether the entity type should be considered inactive.
+     * 
+ * + * bool inactive = 5; + * + * @param value The inactive to set. + * @return This builder for chaining. + */ + public Builder setInactive(boolean value) { + + inactive_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Whether the entity type should be considered inactive.
+     * 
+ * + * bool inactive = 5; + * + * @return This builder for chaining. + */ + public Builder clearInactive() { + bitField0_ = (bitField0_ & ~0x00000001); + inactive_ = false; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.documentai.v1beta3.EntityTypeMetadata) + } + + // @@protoc_insertion_point(class_scope:google.cloud.documentai.v1beta3.EntityTypeMetadata) + private static final com.google.cloud.documentai.v1beta3.EntityTypeMetadata DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.documentai.v1beta3.EntityTypeMetadata(); + } + + public static com.google.cloud.documentai.v1beta3.EntityTypeMetadata getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public EntityTypeMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.documentai.v1beta3.EntityTypeMetadata getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/EntityTypeMetadataOrBuilder.java b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/EntityTypeMetadataOrBuilder.java new file mode 100644 index 000000000000..e66b535ee278 --- /dev/null +++ b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/EntityTypeMetadataOrBuilder.java @@ -0,0 +1,38 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the 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/v1beta3/document_schema.proto + +package com.google.cloud.documentai.v1beta3; + +public interface EntityTypeMetadataOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.documentai.v1beta3.EntityTypeMetadata) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Whether the entity type should be considered inactive.
+   * 
+ * + * bool inactive = 5; + * + * @return The inactive. + */ + boolean getInactive(); +} diff --git a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/EvaluateProcessorVersionMetadata.java b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/EvaluateProcessorVersionMetadata.java index dbd6338cbd67..758aa53e29e2 100644 --- a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/EvaluateProcessorVersionMetadata.java +++ b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/EvaluateProcessorVersionMetadata.java @@ -22,7 +22,9 @@ * * *
- * Metadata of the EvaluateProcessorVersion method.
+ * Metadata of the
+ * [EvaluateProcessorVersion][google.cloud.documentai.v1beta3.DocumentProcessorService.EvaluateProcessorVersion]
+ * method.
  * 
* * Protobuf type {@code google.cloud.documentai.v1beta3.EvaluateProcessorVersionMetadata} @@ -67,7 +69,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * The basic metadata of the long running operation.
+   * The basic metadata of the long-running operation.
    * 
* * .google.cloud.documentai.v1beta3.CommonOperationMetadata common_metadata = 1; @@ -82,7 +84,7 @@ public boolean hasCommonMetadata() { * * *
-   * The basic metadata of the long running operation.
+   * The basic metadata of the long-running operation.
    * 
* * .google.cloud.documentai.v1beta3.CommonOperationMetadata common_metadata = 1; @@ -99,7 +101,7 @@ public com.google.cloud.documentai.v1beta3.CommonOperationMetadata getCommonMeta * * *
-   * The basic metadata of the long running operation.
+   * The basic metadata of the long-running operation.
    * 
* * .google.cloud.documentai.v1beta3.CommonOperationMetadata common_metadata = 1; @@ -282,7 +284,9 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * Metadata of the EvaluateProcessorVersion method.
+   * Metadata of the
+   * [EvaluateProcessorVersion][google.cloud.documentai.v1beta3.DocumentProcessorService.EvaluateProcessorVersion]
+   * method.
    * 
* * Protobuf type {@code google.cloud.documentai.v1beta3.EvaluateProcessorVersionMetadata} @@ -481,7 +485,7 @@ public Builder mergeFrom( * * *
-     * The basic metadata of the long running operation.
+     * The basic metadata of the long-running operation.
      * 
* * .google.cloud.documentai.v1beta3.CommonOperationMetadata common_metadata = 1; @@ -495,7 +499,7 @@ public boolean hasCommonMetadata() { * * *
-     * The basic metadata of the long running operation.
+     * The basic metadata of the long-running operation.
      * 
* * .google.cloud.documentai.v1beta3.CommonOperationMetadata common_metadata = 1; @@ -515,7 +519,7 @@ public com.google.cloud.documentai.v1beta3.CommonOperationMetadata getCommonMeta * * *
-     * The basic metadata of the long running operation.
+     * The basic metadata of the long-running operation.
      * 
* * .google.cloud.documentai.v1beta3.CommonOperationMetadata common_metadata = 1; @@ -538,7 +542,7 @@ public Builder setCommonMetadata( * * *
-     * The basic metadata of the long running operation.
+     * The basic metadata of the long-running operation.
      * 
* * .google.cloud.documentai.v1beta3.CommonOperationMetadata common_metadata = 1; @@ -558,7 +562,7 @@ public Builder setCommonMetadata( * * *
-     * The basic metadata of the long running operation.
+     * The basic metadata of the long-running operation.
      * 
* * .google.cloud.documentai.v1beta3.CommonOperationMetadata common_metadata = 1; @@ -586,7 +590,7 @@ public Builder mergeCommonMetadata( * * *
-     * The basic metadata of the long running operation.
+     * The basic metadata of the long-running operation.
      * 
* * .google.cloud.documentai.v1beta3.CommonOperationMetadata common_metadata = 1; @@ -605,7 +609,7 @@ public Builder clearCommonMetadata() { * * *
-     * The basic metadata of the long running operation.
+     * The basic metadata of the long-running operation.
      * 
* * .google.cloud.documentai.v1beta3.CommonOperationMetadata common_metadata = 1; @@ -620,7 +624,7 @@ public Builder clearCommonMetadata() { * * *
-     * The basic metadata of the long running operation.
+     * The basic metadata of the long-running operation.
      * 
* * .google.cloud.documentai.v1beta3.CommonOperationMetadata common_metadata = 1; @@ -639,7 +643,7 @@ public Builder clearCommonMetadata() { * * *
-     * The basic metadata of the long running operation.
+     * The basic metadata of the long-running operation.
      * 
* * .google.cloud.documentai.v1beta3.CommonOperationMetadata common_metadata = 1; diff --git a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/EvaluateProcessorVersionMetadataOrBuilder.java b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/EvaluateProcessorVersionMetadataOrBuilder.java index 4a3de0fa1a41..e69f9c0f4c5d 100644 --- a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/EvaluateProcessorVersionMetadataOrBuilder.java +++ b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/EvaluateProcessorVersionMetadataOrBuilder.java @@ -27,7 +27,7 @@ public interface EvaluateProcessorVersionMetadataOrBuilder * * *
-   * The basic metadata of the long running operation.
+   * The basic metadata of the long-running operation.
    * 
* * .google.cloud.documentai.v1beta3.CommonOperationMetadata common_metadata = 1; @@ -39,7 +39,7 @@ public interface EvaluateProcessorVersionMetadataOrBuilder * * *
-   * The basic metadata of the long running operation.
+   * The basic metadata of the long-running operation.
    * 
* * .google.cloud.documentai.v1beta3.CommonOperationMetadata common_metadata = 1; @@ -51,7 +51,7 @@ public interface EvaluateProcessorVersionMetadataOrBuilder * * *
-   * The basic metadata of the long running operation.
+   * The basic metadata of the long-running operation.
    * 
* * .google.cloud.documentai.v1beta3.CommonOperationMetadata common_metadata = 1; diff --git a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/EvaluateProcessorVersionRequest.java b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/EvaluateProcessorVersionRequest.java index b9926d6fc06f..4adc08daad63 100644 --- a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/EvaluateProcessorVersionRequest.java +++ b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/EvaluateProcessorVersionRequest.java @@ -22,7 +22,9 @@ * * *
- * Evaluates the given ProcessorVersion against the supplied documents.
+ * Evaluates the given
+ * [ProcessorVersion][google.cloud.documentai.v1beta3.ProcessorVersion] against
+ * the supplied documents.
  * 
* * Protobuf type {@code google.cloud.documentai.v1beta3.EvaluateProcessorVersionRequest} @@ -363,7 +365,9 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * Evaluates the given ProcessorVersion against the supplied documents.
+   * Evaluates the given
+   * [ProcessorVersion][google.cloud.documentai.v1beta3.ProcessorVersion] against
+   * the supplied documents.
    * 
* * Protobuf type {@code google.cloud.documentai.v1beta3.EvaluateProcessorVersionRequest} diff --git a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/EvaluateProcessorVersionResponse.java b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/EvaluateProcessorVersionResponse.java index 7b950ca763da..ff1c969c3d52 100644 --- a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/EvaluateProcessorVersionResponse.java +++ b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/EvaluateProcessorVersionResponse.java @@ -22,7 +22,9 @@ * * *
- * Metadata of the EvaluateProcessorVersion method.
+ * Response of the
+ * [EvaluateProcessorVersion][google.cloud.documentai.v1beta3.DocumentProcessorService.EvaluateProcessorVersion]
+ * method.
  * 
* * Protobuf type {@code google.cloud.documentai.v1beta3.EvaluateProcessorVersionResponse} @@ -279,7 +281,9 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * Metadata of the EvaluateProcessorVersion method.
+   * Response of the
+   * [EvaluateProcessorVersion][google.cloud.documentai.v1beta3.DocumentProcessorService.EvaluateProcessorVersion]
+   * method.
    * 
* * Protobuf type {@code google.cloud.documentai.v1beta3.EvaluateProcessorVersionResponse} diff --git a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/FetchProcessorTypesRequest.java b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/FetchProcessorTypesRequest.java index 888f808ce82a..e3c9df80cd2b 100644 --- a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/FetchProcessorTypesRequest.java +++ b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/FetchProcessorTypesRequest.java @@ -22,7 +22,10 @@ * * *
- * Request message for fetch processor types.
+ * Request message for the
+ * [FetchProcessorTypes][google.cloud.documentai.v1beta3.DocumentProcessorService.FetchProcessorTypes]
+ * method. Some processor types may require the project be added to an
+ * allowlist.
  * 
* * Protobuf type {@code google.cloud.documentai.v1beta3.FetchProcessorTypesRequest} @@ -70,9 +73,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * Required. The project of processor type to list.
-   * The available processor types may depend on the allow-listing on projects.
-   * Format: `projects/{project}/locations/{location}`
+   * Required. The location of processor types to list.
+   * Format: `projects/{project}/locations/{location}`.
    * 
* * @@ -97,9 +99,8 @@ public java.lang.String getParent() { * * *
-   * Required. The project of processor type to list.
-   * The available processor types may depend on the allow-listing on projects.
-   * Format: `projects/{project}/locations/{location}`
+   * Required. The location of processor types to list.
+   * Format: `projects/{project}/locations/{location}`.
    * 
* * @@ -285,7 +286,10 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * Request message for fetch processor types.
+   * Request message for the
+   * [FetchProcessorTypes][google.cloud.documentai.v1beta3.DocumentProcessorService.FetchProcessorTypes]
+   * method. Some processor types may require the project be added to an
+   * allowlist.
    * 
* * Protobuf type {@code google.cloud.documentai.v1beta3.FetchProcessorTypesRequest} @@ -472,9 +476,8 @@ public Builder mergeFrom( * * *
-     * Required. The project of processor type to list.
-     * The available processor types may depend on the allow-listing on projects.
-     * Format: `projects/{project}/locations/{location}`
+     * Required. The location of processor types to list.
+     * Format: `projects/{project}/locations/{location}`.
      * 
* * @@ -498,9 +501,8 @@ public java.lang.String getParent() { * * *
-     * Required. The project of processor type to list.
-     * The available processor types may depend on the allow-listing on projects.
-     * Format: `projects/{project}/locations/{location}`
+     * Required. The location of processor types to list.
+     * Format: `projects/{project}/locations/{location}`.
      * 
* * @@ -524,9 +526,8 @@ public com.google.protobuf.ByteString getParentBytes() { * * *
-     * Required. The project of processor type to list.
-     * The available processor types may depend on the allow-listing on projects.
-     * Format: `projects/{project}/locations/{location}`
+     * Required. The location of processor types to list.
+     * Format: `projects/{project}/locations/{location}`.
      * 
* * @@ -549,9 +550,8 @@ public Builder setParent(java.lang.String value) { * * *
-     * Required. The project of processor type to list.
-     * The available processor types may depend on the allow-listing on projects.
-     * Format: `projects/{project}/locations/{location}`
+     * Required. The location of processor types to list.
+     * Format: `projects/{project}/locations/{location}`.
      * 
* * @@ -570,9 +570,8 @@ public Builder clearParent() { * * *
-     * Required. The project of processor type to list.
-     * The available processor types may depend on the allow-listing on projects.
-     * Format: `projects/{project}/locations/{location}`
+     * Required. The location of processor types to list.
+     * Format: `projects/{project}/locations/{location}`.
      * 
* * diff --git a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/FetchProcessorTypesRequestOrBuilder.java b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/FetchProcessorTypesRequestOrBuilder.java index e8b454603995..2da7d7ff5b13 100644 --- a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/FetchProcessorTypesRequestOrBuilder.java +++ b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/FetchProcessorTypesRequestOrBuilder.java @@ -27,9 +27,8 @@ public interface FetchProcessorTypesRequestOrBuilder * * *
-   * Required. The project of processor type to list.
-   * The available processor types may depend on the allow-listing on projects.
-   * Format: `projects/{project}/locations/{location}`
+   * Required. The location of processor types to list.
+   * Format: `projects/{project}/locations/{location}`.
    * 
* * @@ -43,9 +42,8 @@ public interface FetchProcessorTypesRequestOrBuilder * * *
-   * Required. The project of processor type to list.
-   * The available processor types may depend on the allow-listing on projects.
-   * Format: `projects/{project}/locations/{location}`
+   * Required. The location of processor types to list.
+   * Format: `projects/{project}/locations/{location}`.
    * 
* * diff --git a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/FetchProcessorTypesResponse.java b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/FetchProcessorTypesResponse.java index 638ecc068935..4a635b2b40be 100644 --- a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/FetchProcessorTypesResponse.java +++ b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/FetchProcessorTypesResponse.java @@ -22,7 +22,9 @@ * * *
- * Response message for fetch processor types.
+ * Response message for the
+ * [FetchProcessorTypes][google.cloud.documentai.v1beta3.DocumentProcessorService.FetchProcessorTypes]
+ * method.
  * 
* * Protobuf type {@code google.cloud.documentai.v1beta3.FetchProcessorTypesResponse} @@ -300,7 +302,9 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * Response message for fetch processor types.
+   * Response message for the
+   * [FetchProcessorTypes][google.cloud.documentai.v1beta3.DocumentProcessorService.FetchProcessorTypes]
+   * method.
    * 
* * Protobuf type {@code google.cloud.documentai.v1beta3.FetchProcessorTypesResponse} diff --git a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/GetDatasetSchemaRequest.java b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/GetDatasetSchemaRequest.java new file mode 100644 index 000000000000..4f44af80e86c --- /dev/null +++ b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/GetDatasetSchemaRequest.java @@ -0,0 +1,746 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the 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/v1beta3/document_service.proto + +package com.google.cloud.documentai.v1beta3; + +/** + * + * + *
+ * Request for `GetDatasetSchema`.
+ * 
+ * + * Protobuf type {@code google.cloud.documentai.v1beta3.GetDatasetSchemaRequest} + */ +public final class GetDatasetSchemaRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.documentai.v1beta3.GetDatasetSchemaRequest) + GetDatasetSchemaRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use GetDatasetSchemaRequest.newBuilder() to construct. + private GetDatasetSchemaRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GetDatasetSchemaRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GetDatasetSchemaRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.documentai.v1beta3.DocumentAiDocumentService + .internal_static_google_cloud_documentai_v1beta3_GetDatasetSchemaRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.documentai.v1beta3.DocumentAiDocumentService + .internal_static_google_cloud_documentai_v1beta3_GetDatasetSchemaRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.documentai.v1beta3.GetDatasetSchemaRequest.class, + com.google.cloud.documentai.v1beta3.GetDatasetSchemaRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
+   * Required. The dataset schema resource name.
+   * Format:
+   * projects/{project}/locations/{location}/processors/{processor}/dataset/datasetSchema
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The dataset schema resource name.
+   * Format:
+   * projects/{project}/locations/{location}/processors/{processor}/dataset/datasetSchema
+   * 
+ * + * + * 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() { + 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); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int VISIBLE_FIELDS_ONLY_FIELD_NUMBER = 2; + private boolean visibleFieldsOnly_ = false; + /** + * + * + *
+   * If set, only returns the visible fields of the schema.
+   * 
+ * + * bool visible_fields_only = 2; + * + * @return The visibleFieldsOnly. + */ + @java.lang.Override + public boolean getVisibleFieldsOnly() { + return visibleFieldsOnly_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + 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_); + } + if (visibleFieldsOnly_ != false) { + output.writeBool(2, visibleFieldsOnly_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (visibleFieldsOnly_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, visibleFieldsOnly_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.documentai.v1beta3.GetDatasetSchemaRequest)) { + return super.equals(obj); + } + com.google.cloud.documentai.v1beta3.GetDatasetSchemaRequest other = + (com.google.cloud.documentai.v1beta3.GetDatasetSchemaRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (getVisibleFieldsOnly() != other.getVisibleFieldsOnly()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + VISIBLE_FIELDS_ONLY_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getVisibleFieldsOnly()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.documentai.v1beta3.GetDatasetSchemaRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.documentai.v1beta3.GetDatasetSchemaRequest 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.v1beta3.GetDatasetSchemaRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.documentai.v1beta3.GetDatasetSchemaRequest parseFrom( + com.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.v1beta3.GetDatasetSchemaRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.documentai.v1beta3.GetDatasetSchemaRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.documentai.v1beta3.GetDatasetSchemaRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.documentai.v1beta3.GetDatasetSchemaRequest 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.v1beta3.GetDatasetSchemaRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.documentai.v1beta3.GetDatasetSchemaRequest 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.v1beta3.GetDatasetSchemaRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.documentai.v1beta3.GetDatasetSchemaRequest 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 static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.documentai.v1beta3.GetDatasetSchemaRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request for `GetDatasetSchema`.
+   * 
+ * + * Protobuf type {@code google.cloud.documentai.v1beta3.GetDatasetSchemaRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.documentai.v1beta3.GetDatasetSchemaRequest) + com.google.cloud.documentai.v1beta3.GetDatasetSchemaRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.documentai.v1beta3.DocumentAiDocumentService + .internal_static_google_cloud_documentai_v1beta3_GetDatasetSchemaRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.documentai.v1beta3.DocumentAiDocumentService + .internal_static_google_cloud_documentai_v1beta3_GetDatasetSchemaRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.documentai.v1beta3.GetDatasetSchemaRequest.class, + com.google.cloud.documentai.v1beta3.GetDatasetSchemaRequest.Builder.class); + } + + // Construct using com.google.cloud.documentai.v1beta3.GetDatasetSchemaRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + visibleFieldsOnly_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.documentai.v1beta3.DocumentAiDocumentService + .internal_static_google_cloud_documentai_v1beta3_GetDatasetSchemaRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.documentai.v1beta3.GetDatasetSchemaRequest getDefaultInstanceForType() { + return com.google.cloud.documentai.v1beta3.GetDatasetSchemaRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.documentai.v1beta3.GetDatasetSchemaRequest build() { + com.google.cloud.documentai.v1beta3.GetDatasetSchemaRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.documentai.v1beta3.GetDatasetSchemaRequest buildPartial() { + com.google.cloud.documentai.v1beta3.GetDatasetSchemaRequest result = + new com.google.cloud.documentai.v1beta3.GetDatasetSchemaRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.documentai.v1beta3.GetDatasetSchemaRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.visibleFieldsOnly_ = visibleFieldsOnly_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.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.v1beta3.GetDatasetSchemaRequest) { + return mergeFrom((com.google.cloud.documentai.v1beta3.GetDatasetSchemaRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.documentai.v1beta3.GetDatasetSchemaRequest other) { + if (other == com.google.cloud.documentai.v1beta3.GetDatasetSchemaRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getVisibleFieldsOnly() != false) { + setVisibleFieldsOnly(other.getVisibleFieldsOnly()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + visibleFieldsOnly_ = input.readBool(); + bitField0_ |= 0x00000002; + break; + } // case 16 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Required. The dataset schema resource name.
+     * Format:
+     * projects/{project}/locations/{location}/processors/{processor}/dataset/datasetSchema
+     * 
+ * + * + * 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; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The dataset schema resource name.
+     * Format:
+     * projects/{project}/locations/{location}/processors/{processor}/dataset/datasetSchema
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + 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); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The dataset schema resource name.
+     * Format:
+     * projects/{project}/locations/{location}/processors/{processor}/dataset/datasetSchema
+     * 
+ * + * + * 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) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The dataset schema resource name.
+     * Format:
+     * projects/{project}/locations/{location}/processors/{processor}/dataset/datasetSchema
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The dataset schema resource name.
+     * Format:
+     * projects/{project}/locations/{location}/processors/{processor}/dataset/datasetSchema
+     * 
+ * + * + * 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) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private boolean visibleFieldsOnly_; + /** + * + * + *
+     * If set, only returns the visible fields of the schema.
+     * 
+ * + * bool visible_fields_only = 2; + * + * @return The visibleFieldsOnly. + */ + @java.lang.Override + public boolean getVisibleFieldsOnly() { + return visibleFieldsOnly_; + } + /** + * + * + *
+     * If set, only returns the visible fields of the schema.
+     * 
+ * + * bool visible_fields_only = 2; + * + * @param value The visibleFieldsOnly to set. + * @return This builder for chaining. + */ + public Builder setVisibleFieldsOnly(boolean value) { + + visibleFieldsOnly_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * If set, only returns the visible fields of the schema.
+     * 
+ * + * bool visible_fields_only = 2; + * + * @return This builder for chaining. + */ + public Builder clearVisibleFieldsOnly() { + bitField0_ = (bitField0_ & ~0x00000002); + visibleFieldsOnly_ = false; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.documentai.v1beta3.GetDatasetSchemaRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.documentai.v1beta3.GetDatasetSchemaRequest) + private static final com.google.cloud.documentai.v1beta3.GetDatasetSchemaRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.documentai.v1beta3.GetDatasetSchemaRequest(); + } + + public static com.google.cloud.documentai.v1beta3.GetDatasetSchemaRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetDatasetSchemaRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.documentai.v1beta3.GetDatasetSchemaRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/GetDatasetSchemaRequestOrBuilder.java b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/GetDatasetSchemaRequestOrBuilder.java new file mode 100644 index 000000000000..f03605344ad2 --- /dev/null +++ b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/GetDatasetSchemaRequestOrBuilder.java @@ -0,0 +1,71 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the 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/v1beta3/document_service.proto + +package com.google.cloud.documentai.v1beta3; + +public interface GetDatasetSchemaRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.documentai.v1beta3.GetDatasetSchemaRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The dataset schema resource name.
+   * Format:
+   * projects/{project}/locations/{location}/processors/{processor}/dataset/datasetSchema
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The dataset schema resource name.
+   * Format:
+   * projects/{project}/locations/{location}/processors/{processor}/dataset/datasetSchema
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * If set, only returns the visible fields of the schema.
+   * 
+ * + * bool visible_fields_only = 2; + * + * @return The visibleFieldsOnly. + */ + boolean getVisibleFieldsOnly(); +} diff --git a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/GetProcessorRequest.java b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/GetProcessorRequest.java index bca1fa7f221e..4848822cf478 100644 --- a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/GetProcessorRequest.java +++ b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/GetProcessorRequest.java @@ -22,7 +22,9 @@ * * *
- * Request message for get processor.
+ * Request message for the
+ * [GetProcessor][google.cloud.documentai.v1beta3.DocumentProcessorService.GetProcessor]
+ * method.
  * 
* * Protobuf type {@code google.cloud.documentai.v1beta3.GetProcessorRequest} @@ -281,7 +283,9 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * Request message for get processor.
+   * Request message for the
+   * [GetProcessor][google.cloud.documentai.v1beta3.DocumentProcessorService.GetProcessor]
+   * method.
    * 
* * Protobuf type {@code google.cloud.documentai.v1beta3.GetProcessorRequest} diff --git a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/GetProcessorTypeRequest.java b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/GetProcessorTypeRequest.java index a350cfa2ed4d..8713c72c6aee 100644 --- a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/GetProcessorTypeRequest.java +++ b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/GetProcessorTypeRequest.java @@ -22,7 +22,9 @@ * * *
- * Request message for get processor.
+ * Request message for the
+ * [GetProcessorType][google.cloud.documentai.v1beta3.DocumentProcessorService.GetProcessorType]
+ * method.
  * 
* * Protobuf type {@code google.cloud.documentai.v1beta3.GetProcessorTypeRequest} @@ -281,7 +283,9 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * Request message for get processor.
+   * Request message for the
+   * [GetProcessorType][google.cloud.documentai.v1beta3.DocumentProcessorService.GetProcessorType]
+   * method.
    * 
* * Protobuf type {@code google.cloud.documentai.v1beta3.GetProcessorTypeRequest} diff --git a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/GetProcessorVersionRequest.java b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/GetProcessorVersionRequest.java index 1fcbe79a1544..45b57ff8f3ed 100644 --- a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/GetProcessorVersionRequest.java +++ b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/GetProcessorVersionRequest.java @@ -22,7 +22,9 @@ * * *
- * Request message for get processor version.
+ * Request message for the
+ * [GetProcessorVersion][google.cloud.documentai.v1beta3.DocumentProcessorService.GetProcessorVersion]
+ * method.
  * 
* * Protobuf type {@code google.cloud.documentai.v1beta3.GetProcessorVersionRequest} @@ -281,7 +283,9 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * Request message for get processor version.
+   * Request message for the
+   * [GetProcessorVersion][google.cloud.documentai.v1beta3.DocumentProcessorService.GetProcessorVersion]
+   * method.
    * 
* * Protobuf type {@code google.cloud.documentai.v1beta3.GetProcessorVersionRequest} diff --git a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/HumanReviewStatus.java b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/HumanReviewStatus.java index d4b1389b08e2..e53976161207 100644 --- a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/HumanReviewStatus.java +++ b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/HumanReviewStatus.java @@ -89,7 +89,7 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { * *
      * Human review is skipped for the document. This can happen because human
-     * review is not enabled on the processor or the processing request has
+     * review isn't enabled on the processor or the processing request has
      * been set to skip this document.
      * 
* @@ -121,7 +121,8 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { * *
      * Some error happened during triggering human review, see the
-     * [state_message] for details.
+     * [state_message][google.cloud.documentai.v1beta3.HumanReviewStatus.state_message]
+     * for details.
      * 
* * ERROR = 4; @@ -145,7 +146,7 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { * *
      * Human review is skipped for the document. This can happen because human
-     * review is not enabled on the processor or the processing request has
+     * review isn't enabled on the processor or the processing request has
      * been set to skip this document.
      * 
* @@ -177,7 +178,8 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { * *
      * Some error happened during triggering human review, see the
-     * [state_message] for details.
+     * [state_message][google.cloud.documentai.v1beta3.HumanReviewStatus.state_message]
+     * for details.
      * 
* * ERROR = 4; @@ -370,9 +372,11 @@ public com.google.protobuf.ByteString getStateMessageBytes() { * *
    * The name of the operation triggered by the processed document. This field
-   * is populated only when the [state] is [HUMAN_REVIEW_IN_PROGRESS]. It has
-   * the same response type and metadata as the long running operation returned
-   * by [ReviewDocument] method.
+   * is populated only when the
+   * [state][google.cloud.documentai.v1beta3.HumanReviewStatus.state] is
+   * `HUMAN_REVIEW_IN_PROGRESS`. It has the same response type and metadata as
+   * the long-running operation returned by
+   * [ReviewDocument][google.cloud.documentai.v1beta3.DocumentProcessorService.ReviewDocument].
    * 
* * string human_review_operation = 3; @@ -396,9 +400,11 @@ public java.lang.String getHumanReviewOperation() { * *
    * The name of the operation triggered by the processed document. This field
-   * is populated only when the [state] is [HUMAN_REVIEW_IN_PROGRESS]. It has
-   * the same response type and metadata as the long running operation returned
-   * by [ReviewDocument] method.
+   * is populated only when the
+   * [state][google.cloud.documentai.v1beta3.HumanReviewStatus.state] is
+   * `HUMAN_REVIEW_IN_PROGRESS`. It has the same response type and metadata as
+   * the long-running operation returned by
+   * [ReviewDocument][google.cloud.documentai.v1beta3.DocumentProcessorService.ReviewDocument].
    * 
* * string human_review_operation = 3; @@ -1015,9 +1021,11 @@ public Builder setStateMessageBytes(com.google.protobuf.ByteString value) { * *
      * The name of the operation triggered by the processed document. This field
-     * is populated only when the [state] is [HUMAN_REVIEW_IN_PROGRESS]. It has
-     * the same response type and metadata as the long running operation returned
-     * by [ReviewDocument] method.
+     * is populated only when the
+     * [state][google.cloud.documentai.v1beta3.HumanReviewStatus.state] is
+     * `HUMAN_REVIEW_IN_PROGRESS`. It has the same response type and metadata as
+     * the long-running operation returned by
+     * [ReviewDocument][google.cloud.documentai.v1beta3.DocumentProcessorService.ReviewDocument].
      * 
* * string human_review_operation = 3; @@ -1040,9 +1048,11 @@ public java.lang.String getHumanReviewOperation() { * *
      * The name of the operation triggered by the processed document. This field
-     * is populated only when the [state] is [HUMAN_REVIEW_IN_PROGRESS]. It has
-     * the same response type and metadata as the long running operation returned
-     * by [ReviewDocument] method.
+     * is populated only when the
+     * [state][google.cloud.documentai.v1beta3.HumanReviewStatus.state] is
+     * `HUMAN_REVIEW_IN_PROGRESS`. It has the same response type and metadata as
+     * the long-running operation returned by
+     * [ReviewDocument][google.cloud.documentai.v1beta3.DocumentProcessorService.ReviewDocument].
      * 
* * string human_review_operation = 3; @@ -1065,9 +1075,11 @@ public com.google.protobuf.ByteString getHumanReviewOperationBytes() { * *
      * The name of the operation triggered by the processed document. This field
-     * is populated only when the [state] is [HUMAN_REVIEW_IN_PROGRESS]. It has
-     * the same response type and metadata as the long running operation returned
-     * by [ReviewDocument] method.
+     * is populated only when the
+     * [state][google.cloud.documentai.v1beta3.HumanReviewStatus.state] is
+     * `HUMAN_REVIEW_IN_PROGRESS`. It has the same response type and metadata as
+     * the long-running operation returned by
+     * [ReviewDocument][google.cloud.documentai.v1beta3.DocumentProcessorService.ReviewDocument].
      * 
* * string human_review_operation = 3; @@ -1089,9 +1101,11 @@ public Builder setHumanReviewOperation(java.lang.String value) { * *
      * The name of the operation triggered by the processed document. This field
-     * is populated only when the [state] is [HUMAN_REVIEW_IN_PROGRESS]. It has
-     * the same response type and metadata as the long running operation returned
-     * by [ReviewDocument] method.
+     * is populated only when the
+     * [state][google.cloud.documentai.v1beta3.HumanReviewStatus.state] is
+     * `HUMAN_REVIEW_IN_PROGRESS`. It has the same response type and metadata as
+     * the long-running operation returned by
+     * [ReviewDocument][google.cloud.documentai.v1beta3.DocumentProcessorService.ReviewDocument].
      * 
* * string human_review_operation = 3; @@ -1109,9 +1123,11 @@ public Builder clearHumanReviewOperation() { * *
      * The name of the operation triggered by the processed document. This field
-     * is populated only when the [state] is [HUMAN_REVIEW_IN_PROGRESS]. It has
-     * the same response type and metadata as the long running operation returned
-     * by [ReviewDocument] method.
+     * is populated only when the
+     * [state][google.cloud.documentai.v1beta3.HumanReviewStatus.state] is
+     * `HUMAN_REVIEW_IN_PROGRESS`. It has the same response type and metadata as
+     * the long-running operation returned by
+     * [ReviewDocument][google.cloud.documentai.v1beta3.DocumentProcessorService.ReviewDocument].
      * 
* * string human_review_operation = 3; diff --git a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/HumanReviewStatusOrBuilder.java b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/HumanReviewStatusOrBuilder.java index ce622dc699f7..39f1f112c45a 100644 --- a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/HumanReviewStatusOrBuilder.java +++ b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/HumanReviewStatusOrBuilder.java @@ -78,9 +78,11 @@ public interface HumanReviewStatusOrBuilder * *
    * The name of the operation triggered by the processed document. This field
-   * is populated only when the [state] is [HUMAN_REVIEW_IN_PROGRESS]. It has
-   * the same response type and metadata as the long running operation returned
-   * by [ReviewDocument] method.
+   * is populated only when the
+   * [state][google.cloud.documentai.v1beta3.HumanReviewStatus.state] is
+   * `HUMAN_REVIEW_IN_PROGRESS`. It has the same response type and metadata as
+   * the long-running operation returned by
+   * [ReviewDocument][google.cloud.documentai.v1beta3.DocumentProcessorService.ReviewDocument].
    * 
* * string human_review_operation = 3; @@ -93,9 +95,11 @@ public interface HumanReviewStatusOrBuilder * *
    * The name of the operation triggered by the processed document. This field
-   * is populated only when the [state] is [HUMAN_REVIEW_IN_PROGRESS]. It has
-   * the same response type and metadata as the long running operation returned
-   * by [ReviewDocument] method.
+   * is populated only when the
+   * [state][google.cloud.documentai.v1beta3.HumanReviewStatus.state] is
+   * `HUMAN_REVIEW_IN_PROGRESS`. It has the same response type and metadata as
+   * the long-running operation returned by
+   * [ReviewDocument][google.cloud.documentai.v1beta3.DocumentProcessorService.ReviewDocument].
    * 
* * string human_review_operation = 3; diff --git a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/ImportProcessorVersionMetadata.java b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/ImportProcessorVersionMetadata.java index 09415cd0233c..aaa88ee7ec96 100644 --- a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/ImportProcessorVersionMetadata.java +++ b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/ImportProcessorVersionMetadata.java @@ -22,7 +22,8 @@ * * *
- * The long running operation metadata for the ImportProcessorVersion
+ * The long-running operation metadata for the
+ * [ImportProcessorVersion][google.cloud.documentai.v1beta3.DocumentProcessorService.ImportProcessorVersion]
  * method.
  * 
* @@ -68,7 +69,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * The basic metadata for the long running operation.
+   * The basic metadata for the long-running operation.
    * 
* * .google.cloud.documentai.v1beta3.CommonOperationMetadata common_metadata = 1; @@ -83,7 +84,7 @@ public boolean hasCommonMetadata() { * * *
-   * The basic metadata for the long running operation.
+   * The basic metadata for the long-running operation.
    * 
* * .google.cloud.documentai.v1beta3.CommonOperationMetadata common_metadata = 1; @@ -100,7 +101,7 @@ public com.google.cloud.documentai.v1beta3.CommonOperationMetadata getCommonMeta * * *
-   * The basic metadata for the long running operation.
+   * The basic metadata for the long-running operation.
    * 
* * .google.cloud.documentai.v1beta3.CommonOperationMetadata common_metadata = 1; @@ -283,7 +284,8 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * The long running operation metadata for the ImportProcessorVersion
+   * The long-running operation metadata for the
+   * [ImportProcessorVersion][google.cloud.documentai.v1beta3.DocumentProcessorService.ImportProcessorVersion]
    * method.
    * 
* @@ -483,7 +485,7 @@ public Builder mergeFrom( * * *
-     * The basic metadata for the long running operation.
+     * The basic metadata for the long-running operation.
      * 
* * .google.cloud.documentai.v1beta3.CommonOperationMetadata common_metadata = 1; @@ -497,7 +499,7 @@ public boolean hasCommonMetadata() { * * *
-     * The basic metadata for the long running operation.
+     * The basic metadata for the long-running operation.
      * 
* * .google.cloud.documentai.v1beta3.CommonOperationMetadata common_metadata = 1; @@ -517,7 +519,7 @@ public com.google.cloud.documentai.v1beta3.CommonOperationMetadata getCommonMeta * * *
-     * The basic metadata for the long running operation.
+     * The basic metadata for the long-running operation.
      * 
* * .google.cloud.documentai.v1beta3.CommonOperationMetadata common_metadata = 1; @@ -540,7 +542,7 @@ public Builder setCommonMetadata( * * *
-     * The basic metadata for the long running operation.
+     * The basic metadata for the long-running operation.
      * 
* * .google.cloud.documentai.v1beta3.CommonOperationMetadata common_metadata = 1; @@ -560,7 +562,7 @@ public Builder setCommonMetadata( * * *
-     * The basic metadata for the long running operation.
+     * The basic metadata for the long-running operation.
      * 
* * .google.cloud.documentai.v1beta3.CommonOperationMetadata common_metadata = 1; @@ -588,7 +590,7 @@ public Builder mergeCommonMetadata( * * *
-     * The basic metadata for the long running operation.
+     * The basic metadata for the long-running operation.
      * 
* * .google.cloud.documentai.v1beta3.CommonOperationMetadata common_metadata = 1; @@ -607,7 +609,7 @@ public Builder clearCommonMetadata() { * * *
-     * The basic metadata for the long running operation.
+     * The basic metadata for the long-running operation.
      * 
* * .google.cloud.documentai.v1beta3.CommonOperationMetadata common_metadata = 1; @@ -622,7 +624,7 @@ public Builder clearCommonMetadata() { * * *
-     * The basic metadata for the long running operation.
+     * The basic metadata for the long-running operation.
      * 
* * .google.cloud.documentai.v1beta3.CommonOperationMetadata common_metadata = 1; @@ -641,7 +643,7 @@ public Builder clearCommonMetadata() { * * *
-     * The basic metadata for the long running operation.
+     * The basic metadata for the long-running operation.
      * 
* * .google.cloud.documentai.v1beta3.CommonOperationMetadata common_metadata = 1; diff --git a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/ImportProcessorVersionMetadataOrBuilder.java b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/ImportProcessorVersionMetadataOrBuilder.java index 91d62a1ac4b2..c7efaf377ea0 100644 --- a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/ImportProcessorVersionMetadataOrBuilder.java +++ b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/ImportProcessorVersionMetadataOrBuilder.java @@ -27,7 +27,7 @@ public interface ImportProcessorVersionMetadataOrBuilder * * *
-   * The basic metadata for the long running operation.
+   * The basic metadata for the long-running operation.
    * 
* * .google.cloud.documentai.v1beta3.CommonOperationMetadata common_metadata = 1; @@ -39,7 +39,7 @@ public interface ImportProcessorVersionMetadataOrBuilder * * *
-   * The basic metadata for the long running operation.
+   * The basic metadata for the long-running operation.
    * 
* * .google.cloud.documentai.v1beta3.CommonOperationMetadata common_metadata = 1; @@ -51,7 +51,7 @@ public interface ImportProcessorVersionMetadataOrBuilder * * *
-   * The basic metadata for the long running operation.
+   * The basic metadata for the long-running operation.
    * 
* * .google.cloud.documentai.v1beta3.CommonOperationMetadata common_metadata = 1; diff --git a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/ImportProcessorVersionRequest.java b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/ImportProcessorVersionRequest.java index 5c2590484029..a6f72231c597 100644 --- a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/ImportProcessorVersionRequest.java +++ b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/ImportProcessorVersionRequest.java @@ -22,16 +22,23 @@ * * *
- * The request message for the ImportProcessorVersion method.
- * This method requires Document AI Service Agent of the destination project in
- * the source project's IAM with [Document AI Editor
- * role](https://cloud.google.com/document-ai/docs/access-control/iam-roles).
+ * The request message for the
+ * [ImportProcessorVersion][google.cloud.documentai.v1beta3.DocumentProcessorService.ImportProcessorVersion]
+ * method. Requirements:
  *
- * The destination project is specified as part of the `parent` field.
- * The source project is specified as part of `source` field.
+ * - The source processor version and destination processor
+ * must be in the same location.
+ * - The Document AI [Service
+ * Agent](https://cloud.google.com/iam/docs/service-agents) of the destination
+ * project must have [Document AI Editor
+ * role](https://cloud.google.com/document-ai/docs/access-control/iam-roles) on
+ * the source project.
  *
- * The Service Agent for Document AI can be found in
- * https://cloud.google.com/iam/docs/service-agents.
+ * The destination project is specified as part of the
+ * [parent][google.cloud.documentai.v1beta3.ImportProcessorVersionRequest.parent]
+ * field. The source project is specified as part of the
+ * [source][google.cloud.documentai.v1beta3.ImportProcessorVersionRequest.processor_version_source]
+ * field.
  * 
* * Protobuf type {@code google.cloud.documentai.v1beta3.ImportProcessorVersionRequest} @@ -122,7 +129,8 @@ public SourceCase getSourceCase() { * * *
-   * The source processor version to import from.
+   * The source processor version to import from. The source processor version
+   * and destination processor need to be in the same environment and region.
    * 
* * string processor_version_source = 2 [(.google.api.resource_reference) = { ... } @@ -136,7 +144,8 @@ public boolean hasProcessorVersionSource() { * * *
-   * The source processor version to import from.
+   * The source processor version to import from. The source processor version
+   * and destination processor need to be in the same environment and region.
    * 
* * string processor_version_source = 2 [(.google.api.resource_reference) = { ... } @@ -163,7 +172,8 @@ public java.lang.String getProcessorVersionSource() { * * *
-   * The source processor version to import from.
+   * The source processor version to import from. The source processor version
+   * and destination processor need to be in the same environment and region.
    * 
* * string processor_version_source = 2 [(.google.api.resource_reference) = { ... } @@ -433,16 +443,23 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * The request message for the ImportProcessorVersion method.
-   * This method requires Document AI Service Agent of the destination project in
-   * the source project's IAM with [Document AI Editor
-   * role](https://cloud.google.com/document-ai/docs/access-control/iam-roles).
+   * The request message for the
+   * [ImportProcessorVersion][google.cloud.documentai.v1beta3.DocumentProcessorService.ImportProcessorVersion]
+   * method. Requirements:
    *
-   * The destination project is specified as part of the `parent` field.
-   * The source project is specified as part of `source` field.
+   * - The source processor version and destination processor
+   * must be in the same location.
+   * - The Document AI [Service
+   * Agent](https://cloud.google.com/iam/docs/service-agents) of the destination
+   * project must have [Document AI Editor
+   * role](https://cloud.google.com/document-ai/docs/access-control/iam-roles) on
+   * the source project.
    *
-   * The Service Agent for Document AI can be found in
-   * https://cloud.google.com/iam/docs/service-agents.
+   * The destination project is specified as part of the
+   * [parent][google.cloud.documentai.v1beta3.ImportProcessorVersionRequest.parent]
+   * field. The source project is specified as part of the
+   * [source][google.cloud.documentai.v1beta3.ImportProcessorVersionRequest.processor_version_source]
+   * field.
    * 
* * Protobuf type {@code google.cloud.documentai.v1beta3.ImportProcessorVersionRequest} @@ -673,7 +690,8 @@ public Builder clearSource() { * * *
-     * The source processor version to import from.
+     * The source processor version to import from. The source processor version
+     * and destination processor need to be in the same environment and region.
      * 
* * string processor_version_source = 2 [(.google.api.resource_reference) = { ... } @@ -688,7 +706,8 @@ public boolean hasProcessorVersionSource() { * * *
-     * The source processor version to import from.
+     * The source processor version to import from. The source processor version
+     * and destination processor need to be in the same environment and region.
      * 
* * string processor_version_source = 2 [(.google.api.resource_reference) = { ... } @@ -716,7 +735,8 @@ public java.lang.String getProcessorVersionSource() { * * *
-     * The source processor version to import from.
+     * The source processor version to import from. The source processor version
+     * and destination processor need to be in the same environment and region.
      * 
* * string processor_version_source = 2 [(.google.api.resource_reference) = { ... } @@ -744,7 +764,8 @@ public com.google.protobuf.ByteString getProcessorVersionSourceBytes() { * * *
-     * The source processor version to import from.
+     * The source processor version to import from. The source processor version
+     * and destination processor need to be in the same environment and region.
      * 
* * string processor_version_source = 2 [(.google.api.resource_reference) = { ... } @@ -765,7 +786,8 @@ public Builder setProcessorVersionSource(java.lang.String value) { * * *
-     * The source processor version to import from.
+     * The source processor version to import from. The source processor version
+     * and destination processor need to be in the same environment and region.
      * 
* * string processor_version_source = 2 [(.google.api.resource_reference) = { ... } @@ -784,7 +806,8 @@ public Builder clearProcessorVersionSource() { * * *
-     * The source processor version to import from.
+     * The source processor version to import from. The source processor version
+     * and destination processor need to be in the same environment and region.
      * 
* * string processor_version_source = 2 [(.google.api.resource_reference) = { ... } diff --git a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/ImportProcessorVersionRequestOrBuilder.java b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/ImportProcessorVersionRequestOrBuilder.java index 0baa8c42f458..6ee676894090 100644 --- a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/ImportProcessorVersionRequestOrBuilder.java +++ b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/ImportProcessorVersionRequestOrBuilder.java @@ -27,7 +27,8 @@ public interface ImportProcessorVersionRequestOrBuilder * * *
-   * The source processor version to import from.
+   * The source processor version to import from. The source processor version
+   * and destination processor need to be in the same environment and region.
    * 
* * string processor_version_source = 2 [(.google.api.resource_reference) = { ... } @@ -39,7 +40,8 @@ public interface ImportProcessorVersionRequestOrBuilder * * *
-   * The source processor version to import from.
+   * The source processor version to import from. The source processor version
+   * and destination processor need to be in the same environment and region.
    * 
* * string processor_version_source = 2 [(.google.api.resource_reference) = { ... } @@ -51,7 +53,8 @@ public interface ImportProcessorVersionRequestOrBuilder * * *
-   * The source processor version to import from.
+   * The source processor version to import from. The source processor version
+   * and destination processor need to be in the same environment and region.
    * 
* * string processor_version_source = 2 [(.google.api.resource_reference) = { ... } diff --git a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/ImportProcessorVersionResponse.java b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/ImportProcessorVersionResponse.java index 1b847028f89b..c074a0062b31 100644 --- a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/ImportProcessorVersionResponse.java +++ b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/ImportProcessorVersionResponse.java @@ -22,7 +22,9 @@ * * *
- * The response message for the ImportProcessorVersion method.
+ * The response message for the
+ * [ImportProcessorVersion][google.cloud.documentai.v1beta3.DocumentProcessorService.ImportProcessorVersion]
+ * method.
  * 
* * Protobuf type {@code google.cloud.documentai.v1beta3.ImportProcessorVersionResponse} @@ -279,7 +281,9 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * The response message for the ImportProcessorVersion method.
+   * The response message for the
+   * [ImportProcessorVersion][google.cloud.documentai.v1beta3.DocumentProcessorService.ImportProcessorVersion]
+   * method.
    * 
* * Protobuf type {@code google.cloud.documentai.v1beta3.ImportProcessorVersionResponse} diff --git a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/ListEvaluationsRequest.java b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/ListEvaluationsRequest.java index aff2b2a5ea1d..a82f42c92455 100644 --- a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/ListEvaluationsRequest.java +++ b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/ListEvaluationsRequest.java @@ -22,7 +22,8 @@ * * *
- * Retrieves a list of evaluations for a given ProcessorVersion.
+ * Retrieves a list of evaluations for a given
+ * [ProcessorVersion][google.cloud.documentai.v1beta3.ProcessorVersion].
  * 
* * Protobuf type {@code google.cloud.documentai.v1beta3.ListEvaluationsRequest} @@ -131,8 +132,8 @@ public com.google.protobuf.ByteString getParentBytes() { * *
    * The standard list page size.
-   * If unspecified, at most 5 evaluations will be returned.
-   * The maximum value is 100; values above 100 will be coerced to 100.
+   * If unspecified, at most `5` evaluations are returned.
+   * The maximum value is `100`. Values above `100` are coerced to `100`.
    * 
* * int32 page_size = 2; @@ -379,7 +380,8 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * Retrieves a list of evaluations for a given ProcessorVersion.
+   * Retrieves a list of evaluations for a given
+   * [ProcessorVersion][google.cloud.documentai.v1beta3.ProcessorVersion].
    * 
* * Protobuf type {@code google.cloud.documentai.v1beta3.ListEvaluationsRequest} @@ -723,8 +725,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { * *
      * The standard list page size.
-     * If unspecified, at most 5 evaluations will be returned.
-     * The maximum value is 100; values above 100 will be coerced to 100.
+     * If unspecified, at most `5` evaluations are returned.
+     * The maximum value is `100`. Values above `100` are coerced to `100`.
      * 
* * int32 page_size = 2; @@ -740,8 +742,8 @@ public int getPageSize() { * *
      * The standard list page size.
-     * If unspecified, at most 5 evaluations will be returned.
-     * The maximum value is 100; values above 100 will be coerced to 100.
+     * If unspecified, at most `5` evaluations are returned.
+     * The maximum value is `100`. Values above `100` are coerced to `100`.
      * 
* * int32 page_size = 2; @@ -761,8 +763,8 @@ public Builder setPageSize(int value) { * *
      * The standard list page size.
-     * If unspecified, at most 5 evaluations will be returned.
-     * The maximum value is 100; values above 100 will be coerced to 100.
+     * If unspecified, at most `5` evaluations are returned.
+     * The maximum value is `100`. Values above `100` are coerced to `100`.
      * 
* * int32 page_size = 2; diff --git a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/ListEvaluationsRequestOrBuilder.java b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/ListEvaluationsRequestOrBuilder.java index 9a70c36df5e6..b60d7fe4780d 100644 --- a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/ListEvaluationsRequestOrBuilder.java +++ b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/ListEvaluationsRequestOrBuilder.java @@ -63,8 +63,8 @@ public interface ListEvaluationsRequestOrBuilder * *
    * The standard list page size.
-   * If unspecified, at most 5 evaluations will be returned.
-   * The maximum value is 100; values above 100 will be coerced to 100.
+   * If unspecified, at most `5` evaluations are returned.
+   * The maximum value is `100`. Values above `100` are coerced to `100`.
    * 
* * int32 page_size = 2; diff --git a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/ListEvaluationsResponse.java b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/ListEvaluationsResponse.java index 71eff4d44594..a417695511da 100644 --- a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/ListEvaluationsResponse.java +++ b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/ListEvaluationsResponse.java @@ -22,7 +22,7 @@ * * *
- * The response from ListEvaluations.
+ * The response from `ListEvaluations`.
  * 
* * Protobuf type {@code google.cloud.documentai.v1beta3.ListEvaluationsResponse} @@ -363,7 +363,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * The response from ListEvaluations.
+   * The response from `ListEvaluations`.
    * 
* * Protobuf type {@code google.cloud.documentai.v1beta3.ListEvaluationsResponse} diff --git a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/ListProcessorTypesRequest.java b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/ListProcessorTypesRequest.java index f9586a31a8a5..870551580476 100644 --- a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/ListProcessorTypesRequest.java +++ b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/ListProcessorTypesRequest.java @@ -22,7 +22,10 @@ * * *
- * Request message for list processor types.
+ * Request message for the
+ * [ListProcessorTypes][google.cloud.documentai.v1beta3.DocumentProcessorService.ListProcessorTypes]
+ * method. Some processor types may require the project be added to an
+ * allowlist.
  * 
* * Protobuf type {@code google.cloud.documentai.v1beta3.ListProcessorTypesRequest} @@ -71,9 +74,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * Required. The location of processor type to list.
-   * The available processor types may depend on the allow-listing on projects.
-   * Format: `projects/{project}/locations/{location}`
+   * Required. The location of processor types to list.
+   * Format: `projects/{project}/locations/{location}`.
    * 
* * @@ -98,9 +100,8 @@ public java.lang.String getParent() { * * *
-   * Required. The location of processor type to list.
-   * The available processor types may depend on the allow-listing on projects.
-   * Format: `projects/{project}/locations/{location}`
+   * Required. The location of processor types to list.
+   * Format: `projects/{project}/locations/{location}`.
    * 
* * @@ -129,8 +130,8 @@ public com.google.protobuf.ByteString getParentBytes() { * *
    * The maximum number of processor types to return.
-   * If unspecified, at most 100 processor types will be returned.
-   * The maximum value is 500; values above 500 will be coerced to 500.
+   * If unspecified, at most `100` processor types will be returned.
+   * The maximum value is `500`. Values above `500` will be coerced to `500`.
    * 
* * int32 page_size = 2; @@ -375,7 +376,10 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * Request message for list processor types.
+   * Request message for the
+   * [ListProcessorTypes][google.cloud.documentai.v1beta3.DocumentProcessorService.ListProcessorTypes]
+   * method. Some processor types may require the project be added to an
+   * allowlist.
    * 
* * Protobuf type {@code google.cloud.documentai.v1beta3.ListProcessorTypesRequest} @@ -590,9 +594,8 @@ public Builder mergeFrom( * * *
-     * Required. The location of processor type to list.
-     * The available processor types may depend on the allow-listing on projects.
-     * Format: `projects/{project}/locations/{location}`
+     * Required. The location of processor types to list.
+     * Format: `projects/{project}/locations/{location}`.
      * 
* * @@ -616,9 +619,8 @@ public java.lang.String getParent() { * * *
-     * Required. The location of processor type to list.
-     * The available processor types may depend on the allow-listing on projects.
-     * Format: `projects/{project}/locations/{location}`
+     * Required. The location of processor types to list.
+     * Format: `projects/{project}/locations/{location}`.
      * 
* * @@ -642,9 +644,8 @@ public com.google.protobuf.ByteString getParentBytes() { * * *
-     * Required. The location of processor type to list.
-     * The available processor types may depend on the allow-listing on projects.
-     * Format: `projects/{project}/locations/{location}`
+     * Required. The location of processor types to list.
+     * Format: `projects/{project}/locations/{location}`.
      * 
* * @@ -667,9 +668,8 @@ public Builder setParent(java.lang.String value) { * * *
-     * Required. The location of processor type to list.
-     * The available processor types may depend on the allow-listing on projects.
-     * Format: `projects/{project}/locations/{location}`
+     * Required. The location of processor types to list.
+     * Format: `projects/{project}/locations/{location}`.
      * 
* * @@ -688,9 +688,8 @@ public Builder clearParent() { * * *
-     * Required. The location of processor type to list.
-     * The available processor types may depend on the allow-listing on projects.
-     * Format: `projects/{project}/locations/{location}`
+     * Required. The location of processor types to list.
+     * Format: `projects/{project}/locations/{location}`.
      * 
* * @@ -717,8 +716,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { * *
      * The maximum number of processor types to return.
-     * If unspecified, at most 100 processor types will be returned.
-     * The maximum value is 500; values above 500 will be coerced to 500.
+     * If unspecified, at most `100` processor types will be returned.
+     * The maximum value is `500`. Values above `500` will be coerced to `500`.
      * 
* * int32 page_size = 2; @@ -734,8 +733,8 @@ public int getPageSize() { * *
      * The maximum number of processor types to return.
-     * If unspecified, at most 100 processor types will be returned.
-     * The maximum value is 500; values above 500 will be coerced to 500.
+     * If unspecified, at most `100` processor types will be returned.
+     * The maximum value is `500`. Values above `500` will be coerced to `500`.
      * 
* * int32 page_size = 2; @@ -755,8 +754,8 @@ public Builder setPageSize(int value) { * *
      * The maximum number of processor types to return.
-     * If unspecified, at most 100 processor types will be returned.
-     * The maximum value is 500; values above 500 will be coerced to 500.
+     * If unspecified, at most `100` processor types will be returned.
+     * The maximum value is `500`. Values above `500` will be coerced to `500`.
      * 
* * int32 page_size = 2; diff --git a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/ListProcessorTypesRequestOrBuilder.java b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/ListProcessorTypesRequestOrBuilder.java index 1428413cb4f2..33dff57857c5 100644 --- a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/ListProcessorTypesRequestOrBuilder.java +++ b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/ListProcessorTypesRequestOrBuilder.java @@ -27,9 +27,8 @@ public interface ListProcessorTypesRequestOrBuilder * * *
-   * Required. The location of processor type to list.
-   * The available processor types may depend on the allow-listing on projects.
-   * Format: `projects/{project}/locations/{location}`
+   * Required. The location of processor types to list.
+   * Format: `projects/{project}/locations/{location}`.
    * 
* * @@ -43,9 +42,8 @@ public interface ListProcessorTypesRequestOrBuilder * * *
-   * Required. The location of processor type to list.
-   * The available processor types may depend on the allow-listing on projects.
-   * Format: `projects/{project}/locations/{location}`
+   * Required. The location of processor types to list.
+   * Format: `projects/{project}/locations/{location}`.
    * 
* * @@ -61,8 +59,8 @@ public interface ListProcessorTypesRequestOrBuilder * *
    * The maximum number of processor types to return.
-   * If unspecified, at most 100 processor types will be returned.
-   * The maximum value is 500; values above 500 will be coerced to 500.
+   * If unspecified, at most `100` processor types will be returned.
+   * The maximum value is `500`. Values above `500` will be coerced to `500`.
    * 
* * int32 page_size = 2; diff --git a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/ListProcessorTypesResponse.java b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/ListProcessorTypesResponse.java index 9e1528ec0c4b..3cdced878c20 100644 --- a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/ListProcessorTypesResponse.java +++ b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/ListProcessorTypesResponse.java @@ -22,7 +22,9 @@ * * *
- * Response message for list processor types.
+ * Response message for the
+ * [ListProcessorTypes][google.cloud.documentai.v1beta3.DocumentProcessorService.ListProcessorTypes]
+ * method.
  * 
* * Protobuf type {@code google.cloud.documentai.v1beta3.ListProcessorTypesResponse} @@ -361,7 +363,9 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * Response message for list processor types.
+   * Response message for the
+   * [ListProcessorTypes][google.cloud.documentai.v1beta3.DocumentProcessorService.ListProcessorTypes]
+   * method.
    * 
* * Protobuf type {@code google.cloud.documentai.v1beta3.ListProcessorTypesResponse} diff --git a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/ListProcessorVersionsRequest.java b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/ListProcessorVersionsRequest.java index 7356cd0803fb..d0cffbdcc859 100644 --- a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/ListProcessorVersionsRequest.java +++ b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/ListProcessorVersionsRequest.java @@ -129,8 +129,8 @@ public com.google.protobuf.ByteString getParentBytes() { * *
    * The maximum number of processor versions to return.
-   * If unspecified, at most 10 processor versions will be returned.
-   * The maximum value is 20; values above 20 will be coerced to 20.
+   * If unspecified, at most `10` processor versions will be returned.
+   * The maximum value is `20`. Values above `20` will be coerced to `20`.
    * 
* * int32 page_size = 2; @@ -720,8 +720,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { * *
      * The maximum number of processor versions to return.
-     * If unspecified, at most 10 processor versions will be returned.
-     * The maximum value is 20; values above 20 will be coerced to 20.
+     * If unspecified, at most `10` processor versions will be returned.
+     * The maximum value is `20`. Values above `20` will be coerced to `20`.
      * 
* * int32 page_size = 2; @@ -737,8 +737,8 @@ public int getPageSize() { * *
      * The maximum number of processor versions to return.
-     * If unspecified, at most 10 processor versions will be returned.
-     * The maximum value is 20; values above 20 will be coerced to 20.
+     * If unspecified, at most `10` processor versions will be returned.
+     * The maximum value is `20`. Values above `20` will be coerced to `20`.
      * 
* * int32 page_size = 2; @@ -758,8 +758,8 @@ public Builder setPageSize(int value) { * *
      * The maximum number of processor versions to return.
-     * If unspecified, at most 10 processor versions will be returned.
-     * The maximum value is 20; values above 20 will be coerced to 20.
+     * If unspecified, at most `10` processor versions will be returned.
+     * The maximum value is `20`. Values above `20` will be coerced to `20`.
      * 
* * int32 page_size = 2; diff --git a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/ListProcessorVersionsRequestOrBuilder.java b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/ListProcessorVersionsRequestOrBuilder.java index 451947ff4def..a76fb78e0369 100644 --- a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/ListProcessorVersionsRequestOrBuilder.java +++ b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/ListProcessorVersionsRequestOrBuilder.java @@ -61,8 +61,8 @@ public interface ListProcessorVersionsRequestOrBuilder * *
    * The maximum number of processor versions to return.
-   * If unspecified, at most 10 processor versions will be returned.
-   * The maximum value is 20; values above 20 will be coerced to 20.
+   * If unspecified, at most `10` processor versions will be returned.
+   * The maximum value is `20`. Values above `20` will be coerced to `20`.
    * 
* * int32 page_size = 2; diff --git a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/ListProcessorVersionsResponse.java b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/ListProcessorVersionsResponse.java index 6e44385713e3..c2e5d21a0782 100644 --- a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/ListProcessorVersionsResponse.java +++ b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/ListProcessorVersionsResponse.java @@ -22,7 +22,9 @@ * * *
- * Response message for list processors.
+ * Response message for the
+ * [ListProcessorVersions][google.cloud.documentai.v1beta3.DocumentProcessorService.ListProcessorVersions]
+ * method.
  * 
* * Protobuf type {@code google.cloud.documentai.v1beta3.ListProcessorVersionsResponse} @@ -364,7 +366,9 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * Response message for list processors.
+   * Response message for the
+   * [ListProcessorVersions][google.cloud.documentai.v1beta3.DocumentProcessorService.ListProcessorVersions]
+   * method.
    * 
* * Protobuf type {@code google.cloud.documentai.v1beta3.ListProcessorVersionsResponse} diff --git a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/ListProcessorsRequest.java b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/ListProcessorsRequest.java index 408d63a478df..e57b100d7515 100644 --- a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/ListProcessorsRequest.java +++ b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/ListProcessorsRequest.java @@ -127,8 +127,8 @@ public com.google.protobuf.ByteString getParentBytes() { * *
    * The maximum number of processors to return.
-   * If unspecified, at most 50 processors will be returned.
-   * The maximum value is 100; values above 100 will be coerced to 100.
+   * If unspecified, at most `50` processors will be returned.
+   * The maximum value is `100`. Values above `100` will be coerced to `100`.
    * 
* * int32 page_size = 2; @@ -709,8 +709,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { * *
      * The maximum number of processors to return.
-     * If unspecified, at most 50 processors will be returned.
-     * The maximum value is 100; values above 100 will be coerced to 100.
+     * If unspecified, at most `50` processors will be returned.
+     * The maximum value is `100`. Values above `100` will be coerced to `100`.
      * 
* * int32 page_size = 2; @@ -726,8 +726,8 @@ public int getPageSize() { * *
      * The maximum number of processors to return.
-     * If unspecified, at most 50 processors will be returned.
-     * The maximum value is 100; values above 100 will be coerced to 100.
+     * If unspecified, at most `50` processors will be returned.
+     * The maximum value is `100`. Values above `100` will be coerced to `100`.
      * 
* * int32 page_size = 2; @@ -747,8 +747,8 @@ public Builder setPageSize(int value) { * *
      * The maximum number of processors to return.
-     * If unspecified, at most 50 processors will be returned.
-     * The maximum value is 100; values above 100 will be coerced to 100.
+     * If unspecified, at most `50` processors will be returned.
+     * The maximum value is `100`. Values above `100` will be coerced to `100`.
      * 
* * int32 page_size = 2; diff --git a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/ListProcessorsRequestOrBuilder.java b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/ListProcessorsRequestOrBuilder.java index 07b4357a28b6..7f2825b0bf6b 100644 --- a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/ListProcessorsRequestOrBuilder.java +++ b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/ListProcessorsRequestOrBuilder.java @@ -59,8 +59,8 @@ public interface ListProcessorsRequestOrBuilder * *
    * The maximum number of processors to return.
-   * If unspecified, at most 50 processors will be returned.
-   * The maximum value is 100; values above 100 will be coerced to 100.
+   * If unspecified, at most `50` processors will be returned.
+   * The maximum value is `100`. Values above `100` will be coerced to `100`.
    * 
* * int32 page_size = 2; diff --git a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/ListProcessorsResponse.java b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/ListProcessorsResponse.java index b450a288bf3d..82f7ee44c58a 100644 --- a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/ListProcessorsResponse.java +++ b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/ListProcessorsResponse.java @@ -22,7 +22,9 @@ * * *
- * Response message for list processors.
+ * Response message for the
+ * [ListProcessors][google.cloud.documentai.v1beta3.DocumentProcessorService.ListProcessors]
+ * method.
  * 
* * Protobuf type {@code google.cloud.documentai.v1beta3.ListProcessorsResponse} @@ -360,7 +362,9 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * Response message for list processors.
+   * Response message for the
+   * [ListProcessors][google.cloud.documentai.v1beta3.DocumentProcessorService.ListProcessors]
+   * method.
    * 
* * Protobuf type {@code google.cloud.documentai.v1beta3.ListProcessorsResponse} diff --git a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/OcrConfig.java b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/OcrConfig.java index 51de0759e462..a61e8f5cb7fb 100644 --- a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/OcrConfig.java +++ b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/OcrConfig.java @@ -1008,7 +1008,13 @@ public boolean getEnableImageQualityScores() { * * *
-   * A list of advanced OCR options to further fine-tune OCR behavior.
+   * A list of advanced OCR options to further fine-tune OCR behavior. Current
+   * valid values are:
+   *
+   * - `legacy_layout`: a heuristics layout detection algorithm, which serves as
+   * an alternative to the current ML-based layout detection algorithm.
+   * Customers can choose the best suitable layout algorithm based on their
+   * situation.
    * 
* * repeated string advanced_ocr_options = 5; @@ -1022,7 +1028,13 @@ public com.google.protobuf.ProtocolStringList getAdvancedOcrOptionsList() { * * *
-   * A list of advanced OCR options to further fine-tune OCR behavior.
+   * A list of advanced OCR options to further fine-tune OCR behavior. Current
+   * valid values are:
+   *
+   * - `legacy_layout`: a heuristics layout detection algorithm, which serves as
+   * an alternative to the current ML-based layout detection algorithm.
+   * Customers can choose the best suitable layout algorithm based on their
+   * situation.
    * 
* * repeated string advanced_ocr_options = 5; @@ -1036,7 +1048,13 @@ public int getAdvancedOcrOptionsCount() { * * *
-   * A list of advanced OCR options to further fine-tune OCR behavior.
+   * A list of advanced OCR options to further fine-tune OCR behavior. Current
+   * valid values are:
+   *
+   * - `legacy_layout`: a heuristics layout detection algorithm, which serves as
+   * an alternative to the current ML-based layout detection algorithm.
+   * Customers can choose the best suitable layout algorithm based on their
+   * situation.
    * 
* * repeated string advanced_ocr_options = 5; @@ -1051,7 +1069,13 @@ public java.lang.String getAdvancedOcrOptions(int index) { * * *
-   * A list of advanced OCR options to further fine-tune OCR behavior.
+   * A list of advanced OCR options to further fine-tune OCR behavior. Current
+   * valid values are:
+   *
+   * - `legacy_layout`: a heuristics layout detection algorithm, which serves as
+   * an alternative to the current ML-based layout detection algorithm.
+   * Customers can choose the best suitable layout algorithm based on their
+   * situation.
    * 
* * repeated string advanced_ocr_options = 5; @@ -1081,6 +1105,24 @@ public boolean getEnableSymbol() { return enableSymbol_; } + public static final int COMPUTE_STYLE_INFO_FIELD_NUMBER = 8; + private boolean computeStyleInfo_ = false; + /** + * + * + *
+   * Turn on font id model and returns font style information.
+   * 
+ * + * bool compute_style_info = 8; + * + * @return The computeStyleInfo. + */ + @java.lang.Override + public boolean getComputeStyleInfo() { + return computeStyleInfo_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -1110,6 +1152,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (enableSymbol_ != false) { output.writeBool(6, enableSymbol_); } + if (computeStyleInfo_ != false) { + output.writeBool(8, computeStyleInfo_); + } getUnknownFields().writeTo(output); } @@ -1139,6 +1184,9 @@ public int getSerializedSize() { if (enableSymbol_ != false) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(6, enableSymbol_); } + if (computeStyleInfo_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(8, computeStyleInfo_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -1163,6 +1211,7 @@ public boolean equals(final java.lang.Object obj) { if (getEnableImageQualityScores() != other.getEnableImageQualityScores()) return false; if (!getAdvancedOcrOptionsList().equals(other.getAdvancedOcrOptionsList())) return false; if (getEnableSymbol() != other.getEnableSymbol()) return false; + if (getComputeStyleInfo() != other.getComputeStyleInfo()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1188,6 +1237,8 @@ public int hashCode() { } hash = (37 * hash) + ENABLE_SYMBOL_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnableSymbol()); + hash = (37 * hash) + COMPUTE_STYLE_INFO_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getComputeStyleInfo()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -1336,6 +1387,7 @@ public Builder clear() { enableImageQualityScores_ = false; advancedOcrOptions_ = com.google.protobuf.LazyStringArrayList.emptyList(); enableSymbol_ = false; + computeStyleInfo_ = false; return this; } @@ -1388,6 +1440,9 @@ private void buildPartial0(com.google.cloud.documentai.v1beta3.OcrConfig result) if (((from_bitField0_ & 0x00000010) != 0)) { result.enableSymbol_ = enableSymbol_; } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.computeStyleInfo_ = computeStyleInfo_; + } } @java.lang.Override @@ -1457,6 +1512,9 @@ public Builder mergeFrom(com.google.cloud.documentai.v1beta3.OcrConfig other) { if (other.getEnableSymbol() != false) { setEnableSymbol(other.getEnableSymbol()); } + if (other.getComputeStyleInfo() != false) { + setComputeStyleInfo(other.getComputeStyleInfo()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -1514,6 +1572,12 @@ public Builder mergeFrom( bitField0_ |= 0x00000010; break; } // case 48 + case 64: + { + computeStyleInfo_ = input.readBool(); + bitField0_ |= 0x00000020; + break; + } // case 64 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -1845,7 +1909,13 @@ private void ensureAdvancedOcrOptionsIsMutable() { * * *
-     * A list of advanced OCR options to further fine-tune OCR behavior.
+     * A list of advanced OCR options to further fine-tune OCR behavior. Current
+     * valid values are:
+     *
+     * - `legacy_layout`: a heuristics layout detection algorithm, which serves as
+     * an alternative to the current ML-based layout detection algorithm.
+     * Customers can choose the best suitable layout algorithm based on their
+     * situation.
      * 
* * repeated string advanced_ocr_options = 5; @@ -1860,7 +1930,13 @@ public com.google.protobuf.ProtocolStringList getAdvancedOcrOptionsList() { * * *
-     * A list of advanced OCR options to further fine-tune OCR behavior.
+     * A list of advanced OCR options to further fine-tune OCR behavior. Current
+     * valid values are:
+     *
+     * - `legacy_layout`: a heuristics layout detection algorithm, which serves as
+     * an alternative to the current ML-based layout detection algorithm.
+     * Customers can choose the best suitable layout algorithm based on their
+     * situation.
      * 
* * repeated string advanced_ocr_options = 5; @@ -1874,7 +1950,13 @@ public int getAdvancedOcrOptionsCount() { * * *
-     * A list of advanced OCR options to further fine-tune OCR behavior.
+     * A list of advanced OCR options to further fine-tune OCR behavior. Current
+     * valid values are:
+     *
+     * - `legacy_layout`: a heuristics layout detection algorithm, which serves as
+     * an alternative to the current ML-based layout detection algorithm.
+     * Customers can choose the best suitable layout algorithm based on their
+     * situation.
      * 
* * repeated string advanced_ocr_options = 5; @@ -1889,7 +1971,13 @@ public java.lang.String getAdvancedOcrOptions(int index) { * * *
-     * A list of advanced OCR options to further fine-tune OCR behavior.
+     * A list of advanced OCR options to further fine-tune OCR behavior. Current
+     * valid values are:
+     *
+     * - `legacy_layout`: a heuristics layout detection algorithm, which serves as
+     * an alternative to the current ML-based layout detection algorithm.
+     * Customers can choose the best suitable layout algorithm based on their
+     * situation.
      * 
* * repeated string advanced_ocr_options = 5; @@ -1904,7 +1992,13 @@ public com.google.protobuf.ByteString getAdvancedOcrOptionsBytes(int index) { * * *
-     * A list of advanced OCR options to further fine-tune OCR behavior.
+     * A list of advanced OCR options to further fine-tune OCR behavior. Current
+     * valid values are:
+     *
+     * - `legacy_layout`: a heuristics layout detection algorithm, which serves as
+     * an alternative to the current ML-based layout detection algorithm.
+     * Customers can choose the best suitable layout algorithm based on their
+     * situation.
      * 
* * repeated string advanced_ocr_options = 5; @@ -1927,7 +2021,13 @@ public Builder setAdvancedOcrOptions(int index, java.lang.String value) { * * *
-     * A list of advanced OCR options to further fine-tune OCR behavior.
+     * A list of advanced OCR options to further fine-tune OCR behavior. Current
+     * valid values are:
+     *
+     * - `legacy_layout`: a heuristics layout detection algorithm, which serves as
+     * an alternative to the current ML-based layout detection algorithm.
+     * Customers can choose the best suitable layout algorithm based on their
+     * situation.
      * 
* * repeated string advanced_ocr_options = 5; @@ -1949,7 +2049,13 @@ public Builder addAdvancedOcrOptions(java.lang.String value) { * * *
-     * A list of advanced OCR options to further fine-tune OCR behavior.
+     * A list of advanced OCR options to further fine-tune OCR behavior. Current
+     * valid values are:
+     *
+     * - `legacy_layout`: a heuristics layout detection algorithm, which serves as
+     * an alternative to the current ML-based layout detection algorithm.
+     * Customers can choose the best suitable layout algorithm based on their
+     * situation.
      * 
* * repeated string advanced_ocr_options = 5; @@ -1968,7 +2074,13 @@ public Builder addAllAdvancedOcrOptions(java.lang.Iterable val * * *
-     * A list of advanced OCR options to further fine-tune OCR behavior.
+     * A list of advanced OCR options to further fine-tune OCR behavior. Current
+     * valid values are:
+     *
+     * - `legacy_layout`: a heuristics layout detection algorithm, which serves as
+     * an alternative to the current ML-based layout detection algorithm.
+     * Customers can choose the best suitable layout algorithm based on their
+     * situation.
      * 
* * repeated string advanced_ocr_options = 5; @@ -1986,7 +2098,13 @@ public Builder clearAdvancedOcrOptions() { * * *
-     * A list of advanced OCR options to further fine-tune OCR behavior.
+     * A list of advanced OCR options to further fine-tune OCR behavior. Current
+     * valid values are:
+     *
+     * - `legacy_layout`: a heuristics layout detection algorithm, which serves as
+     * an alternative to the current ML-based layout detection algorithm.
+     * Customers can choose the best suitable layout algorithm based on their
+     * situation.
      * 
* * repeated string advanced_ocr_options = 5; @@ -2059,6 +2177,59 @@ public Builder clearEnableSymbol() { return this; } + private boolean computeStyleInfo_; + /** + * + * + *
+     * Turn on font id model and returns font style information.
+     * 
+ * + * bool compute_style_info = 8; + * + * @return The computeStyleInfo. + */ + @java.lang.Override + public boolean getComputeStyleInfo() { + return computeStyleInfo_; + } + /** + * + * + *
+     * Turn on font id model and returns font style information.
+     * 
+ * + * bool compute_style_info = 8; + * + * @param value The computeStyleInfo to set. + * @return This builder for chaining. + */ + public Builder setComputeStyleInfo(boolean value) { + + computeStyleInfo_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + * + * + *
+     * Turn on font id model and returns font style information.
+     * 
+ * + * bool compute_style_info = 8; + * + * @return This builder for chaining. + */ + public Builder clearComputeStyleInfo() { + bitField0_ = (bitField0_ & ~0x00000020); + computeStyleInfo_ = false; + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/OcrConfigOrBuilder.java b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/OcrConfigOrBuilder.java index fdaf152bb293..389b74496b87 100644 --- a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/OcrConfigOrBuilder.java +++ b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/OcrConfigOrBuilder.java @@ -91,7 +91,13 @@ public interface OcrConfigOrBuilder * * *
-   * A list of advanced OCR options to further fine-tune OCR behavior.
+   * A list of advanced OCR options to further fine-tune OCR behavior. Current
+   * valid values are:
+   *
+   * - `legacy_layout`: a heuristics layout detection algorithm, which serves as
+   * an alternative to the current ML-based layout detection algorithm.
+   * Customers can choose the best suitable layout algorithm based on their
+   * situation.
    * 
* * repeated string advanced_ocr_options = 5; @@ -103,7 +109,13 @@ public interface OcrConfigOrBuilder * * *
-   * A list of advanced OCR options to further fine-tune OCR behavior.
+   * A list of advanced OCR options to further fine-tune OCR behavior. Current
+   * valid values are:
+   *
+   * - `legacy_layout`: a heuristics layout detection algorithm, which serves as
+   * an alternative to the current ML-based layout detection algorithm.
+   * Customers can choose the best suitable layout algorithm based on their
+   * situation.
    * 
* * repeated string advanced_ocr_options = 5; @@ -115,7 +127,13 @@ public interface OcrConfigOrBuilder * * *
-   * A list of advanced OCR options to further fine-tune OCR behavior.
+   * A list of advanced OCR options to further fine-tune OCR behavior. Current
+   * valid values are:
+   *
+   * - `legacy_layout`: a heuristics layout detection algorithm, which serves as
+   * an alternative to the current ML-based layout detection algorithm.
+   * Customers can choose the best suitable layout algorithm based on their
+   * situation.
    * 
* * repeated string advanced_ocr_options = 5; @@ -128,7 +146,13 @@ public interface OcrConfigOrBuilder * * *
-   * A list of advanced OCR options to further fine-tune OCR behavior.
+   * A list of advanced OCR options to further fine-tune OCR behavior. Current
+   * valid values are:
+   *
+   * - `legacy_layout`: a heuristics layout detection algorithm, which serves as
+   * an alternative to the current ML-based layout detection algorithm.
+   * Customers can choose the best suitable layout algorithm based on their
+   * situation.
    * 
* * repeated string advanced_ocr_options = 5; @@ -150,4 +174,17 @@ public interface OcrConfigOrBuilder * @return The enableSymbol. */ boolean getEnableSymbol(); + + /** + * + * + *
+   * Turn on font id model and returns font style information.
+   * 
+ * + * bool compute_style_info = 8; + * + * @return The computeStyleInfo. + */ + boolean getComputeStyleInfo(); } diff --git a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/ProcessOptions.java b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/ProcessOptions.java index 7f50ba8c6a53..9d3dd2202bb6 100644 --- a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/ProcessOptions.java +++ b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/ProcessOptions.java @@ -66,7 +66,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * Only applicable to "Document OCR Processor". Returns error if set on other
+   * Only applicable to `OCR_PROCESSOR`. Returns error if set on other
    * processor types.
    * 
* @@ -82,7 +82,7 @@ public boolean hasOcrConfig() { * * *
-   * Only applicable to "Document OCR Processor". Returns error if set on other
+   * Only applicable to `OCR_PROCESSOR`. Returns error if set on other
    * processor types.
    * 
* @@ -100,7 +100,7 @@ public com.google.cloud.documentai.v1beta3.OcrConfig getOcrConfig() { * * *
-   * Only applicable to "Document OCR Processor". Returns error if set on other
+   * Only applicable to `OCR_PROCESSOR`. Returns error if set on other
    * processor types.
    * 
* @@ -472,7 +472,7 @@ public Builder mergeFrom( * * *
-     * Only applicable to "Document OCR Processor". Returns error if set on other
+     * Only applicable to `OCR_PROCESSOR`. Returns error if set on other
      * processor types.
      * 
* @@ -487,7 +487,7 @@ public boolean hasOcrConfig() { * * *
-     * Only applicable to "Document OCR Processor". Returns error if set on other
+     * Only applicable to `OCR_PROCESSOR`. Returns error if set on other
      * processor types.
      * 
* @@ -508,7 +508,7 @@ public com.google.cloud.documentai.v1beta3.OcrConfig getOcrConfig() { * * *
-     * Only applicable to "Document OCR Processor". Returns error if set on other
+     * Only applicable to `OCR_PROCESSOR`. Returns error if set on other
      * processor types.
      * 
* @@ -531,7 +531,7 @@ public Builder setOcrConfig(com.google.cloud.documentai.v1beta3.OcrConfig value) * * *
-     * Only applicable to "Document OCR Processor". Returns error if set on other
+     * Only applicable to `OCR_PROCESSOR`. Returns error if set on other
      * processor types.
      * 
* @@ -552,7 +552,7 @@ public Builder setOcrConfig( * * *
-     * Only applicable to "Document OCR Processor". Returns error if set on other
+     * Only applicable to `OCR_PROCESSOR`. Returns error if set on other
      * processor types.
      * 
* @@ -578,7 +578,7 @@ public Builder mergeOcrConfig(com.google.cloud.documentai.v1beta3.OcrConfig valu * * *
-     * Only applicable to "Document OCR Processor". Returns error if set on other
+     * Only applicable to `OCR_PROCESSOR`. Returns error if set on other
      * processor types.
      * 
* @@ -598,7 +598,7 @@ public Builder clearOcrConfig() { * * *
-     * Only applicable to "Document OCR Processor". Returns error if set on other
+     * Only applicable to `OCR_PROCESSOR`. Returns error if set on other
      * processor types.
      * 
* @@ -613,7 +613,7 @@ public com.google.cloud.documentai.v1beta3.OcrConfig.Builder getOcrConfigBuilder * * *
-     * Only applicable to "Document OCR Processor". Returns error if set on other
+     * Only applicable to `OCR_PROCESSOR`. Returns error if set on other
      * processor types.
      * 
* @@ -632,7 +632,7 @@ public com.google.cloud.documentai.v1beta3.OcrConfigOrBuilder getOcrConfigOrBuil * * *
-     * Only applicable to "Document OCR Processor". Returns error if set on other
+     * Only applicable to `OCR_PROCESSOR`. Returns error if set on other
      * processor types.
      * 
* diff --git a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/ProcessOptionsOrBuilder.java b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/ProcessOptionsOrBuilder.java index 22acff3de345..7f4183525379 100644 --- a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/ProcessOptionsOrBuilder.java +++ b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/ProcessOptionsOrBuilder.java @@ -27,7 +27,7 @@ public interface ProcessOptionsOrBuilder * * *
-   * Only applicable to "Document OCR Processor". Returns error if set on other
+   * Only applicable to `OCR_PROCESSOR`. Returns error if set on other
    * processor types.
    * 
* @@ -40,7 +40,7 @@ public interface ProcessOptionsOrBuilder * * *
-   * Only applicable to "Document OCR Processor". Returns error if set on other
+   * Only applicable to `OCR_PROCESSOR`. Returns error if set on other
    * processor types.
    * 
* @@ -53,7 +53,7 @@ public interface ProcessOptionsOrBuilder * * *
-   * Only applicable to "Document OCR Processor". Returns error if set on other
+   * Only applicable to `OCR_PROCESSOR`. Returns error if set on other
    * processor types.
    * 
* diff --git a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/ProcessRequest.java b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/ProcessRequest.java index fc1420b5ba22..14ba0c943530 100644 --- a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/ProcessRequest.java +++ b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/ProcessRequest.java @@ -22,7 +22,9 @@ * * *
- * Request message for the process document method.
+ * Request message for the
+ * [ProcessDocument][google.cloud.documentai.v1beta3.DocumentProcessorService.ProcessDocument]
+ * method.
  * 
* * Protobuf type {@code google.cloud.documentai.v1beta3.ProcessRequest} @@ -292,13 +294,16 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
-   * The document payload, the [content] and [mime_type] fields must be set.
+   * The document payload, the
+   * [content][google.cloud.documentai.v1beta3.Document.content] and
+   * [mime_type][google.cloud.documentai.v1beta3.Document.mime_type] fields must
+   * be set.
    * 
* * .google.cloud.documentai.v1beta3.Document document = 2 [deprecated = true]; * * @deprecated google.cloud.documentai.v1beta3.ProcessRequest.document is deprecated. See - * google/cloud/documentai/v1beta3/document_processor_service.proto;l=373 + * google/cloud/documentai/v1beta3/document_processor_service.proto;l=381 * @return Whether the document field is set. */ @java.lang.Override @@ -310,13 +315,16 @@ public boolean hasDocument() { * * *
-   * The document payload, the [content] and [mime_type] fields must be set.
+   * The document payload, the
+   * [content][google.cloud.documentai.v1beta3.Document.content] and
+   * [mime_type][google.cloud.documentai.v1beta3.Document.mime_type] fields must
+   * be set.
    * 
* * .google.cloud.documentai.v1beta3.Document document = 2 [deprecated = true]; * * @deprecated google.cloud.documentai.v1beta3.ProcessRequest.document is deprecated. See - * google/cloud/documentai/v1beta3/document_processor_service.proto;l=373 + * google/cloud/documentai/v1beta3/document_processor_service.proto;l=381 * @return The document. */ @java.lang.Override @@ -330,7 +338,10 @@ public com.google.cloud.documentai.v1beta3.Document getDocument() { * * *
-   * The document payload, the [content] and [mime_type] fields must be set.
+   * The document payload, the
+   * [content][google.cloud.documentai.v1beta3.Document.content] and
+   * [mime_type][google.cloud.documentai.v1beta3.Document.mime_type] fields must
+   * be set.
    * 
* * .google.cloud.documentai.v1beta3.Document document = 2 [deprecated = true]; @@ -349,8 +360,8 @@ public com.google.cloud.documentai.v1beta3.DocumentOrBuilder getDocumentOrBuilde * * *
-   * Whether Human Review feature should be skipped for this request. Default to
-   * false.
+   * Whether human review should be skipped for this request. Default to
+   * `false`.
    * 
* * bool skip_human_review = 3; @@ -368,9 +379,10 @@ public boolean getSkipHumanReview() { * * *
-   * Specifies which fields to include in ProcessResponse's document.
-   * Only supports top level document and pages field so it must be in the form
-   * of `{document_field_name}` or `pages.{page_field_name}`.
+   * Specifies which fields to include in the
+   * [ProcessResponse.document][google.cloud.documentai.v1beta3.ProcessResponse.document]
+   * output. Only supports top-level document and pages field, so it must be in
+   * the form of `{document_field_name}` or `pages.{page_field_name}`.
    * 
* * .google.protobuf.FieldMask field_mask = 6; @@ -385,9 +397,10 @@ public boolean hasFieldMask() { * * *
-   * Specifies which fields to include in ProcessResponse's document.
-   * Only supports top level document and pages field so it must be in the form
-   * of `{document_field_name}` or `pages.{page_field_name}`.
+   * Specifies which fields to include in the
+   * [ProcessResponse.document][google.cloud.documentai.v1beta3.ProcessResponse.document]
+   * output. Only supports top-level document and pages field, so it must be in
+   * the form of `{document_field_name}` or `pages.{page_field_name}`.
    * 
* * .google.protobuf.FieldMask field_mask = 6; @@ -402,9 +415,10 @@ public com.google.protobuf.FieldMask getFieldMask() { * * *
-   * Specifies which fields to include in ProcessResponse's document.
-   * Only supports top level document and pages field so it must be in the form
-   * of `{document_field_name}` or `pages.{page_field_name}`.
+   * Specifies which fields to include in the
+   * [ProcessResponse.document][google.cloud.documentai.v1beta3.ProcessResponse.document]
+   * output. Only supports top-level document and pages field, so it must be in
+   * the form of `{document_field_name}` or `pages.{page_field_name}`.
    * 
* * .google.protobuf.FieldMask field_mask = 6; @@ -717,7 +731,9 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * Request message for the process document method.
+   * Request message for the
+   * [ProcessDocument][google.cloud.documentai.v1beta3.DocumentProcessorService.ProcessDocument]
+   * method.
    * 
* * Protobuf type {@code google.cloud.documentai.v1beta3.ProcessRequest} @@ -1612,13 +1628,16 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { * * *
-     * The document payload, the [content] and [mime_type] fields must be set.
+     * The document payload, the
+     * [content][google.cloud.documentai.v1beta3.Document.content] and
+     * [mime_type][google.cloud.documentai.v1beta3.Document.mime_type] fields must
+     * be set.
      * 
* * .google.cloud.documentai.v1beta3.Document document = 2 [deprecated = true]; * * @deprecated google.cloud.documentai.v1beta3.ProcessRequest.document is deprecated. See - * google/cloud/documentai/v1beta3/document_processor_service.proto;l=373 + * google/cloud/documentai/v1beta3/document_processor_service.proto;l=381 * @return Whether the document field is set. */ @java.lang.Deprecated @@ -1629,13 +1648,16 @@ public boolean hasDocument() { * * *
-     * The document payload, the [content] and [mime_type] fields must be set.
+     * The document payload, the
+     * [content][google.cloud.documentai.v1beta3.Document.content] and
+     * [mime_type][google.cloud.documentai.v1beta3.Document.mime_type] fields must
+     * be set.
      * 
* * .google.cloud.documentai.v1beta3.Document document = 2 [deprecated = true]; * * @deprecated google.cloud.documentai.v1beta3.ProcessRequest.document is deprecated. See - * google/cloud/documentai/v1beta3/document_processor_service.proto;l=373 + * google/cloud/documentai/v1beta3/document_processor_service.proto;l=381 * @return The document. */ @java.lang.Deprecated @@ -1652,7 +1674,10 @@ public com.google.cloud.documentai.v1beta3.Document getDocument() { * * *
-     * The document payload, the [content] and [mime_type] fields must be set.
+     * The document payload, the
+     * [content][google.cloud.documentai.v1beta3.Document.content] and
+     * [mime_type][google.cloud.documentai.v1beta3.Document.mime_type] fields must
+     * be set.
      * 
* * .google.cloud.documentai.v1beta3.Document document = 2 [deprecated = true]; @@ -1675,7 +1700,10 @@ public Builder setDocument(com.google.cloud.documentai.v1beta3.Document value) { * * *
-     * The document payload, the [content] and [mime_type] fields must be set.
+     * The document payload, the
+     * [content][google.cloud.documentai.v1beta3.Document.content] and
+     * [mime_type][google.cloud.documentai.v1beta3.Document.mime_type] fields must
+     * be set.
      * 
* * .google.cloud.documentai.v1beta3.Document document = 2 [deprecated = true]; @@ -1696,7 +1724,10 @@ public Builder setDocument( * * *
-     * The document payload, the [content] and [mime_type] fields must be set.
+     * The document payload, the
+     * [content][google.cloud.documentai.v1beta3.Document.content] and
+     * [mime_type][google.cloud.documentai.v1beta3.Document.mime_type] fields must
+     * be set.
      * 
* * .google.cloud.documentai.v1beta3.Document document = 2 [deprecated = true]; @@ -1722,7 +1753,10 @@ public Builder mergeDocument(com.google.cloud.documentai.v1beta3.Document value) * * *
-     * The document payload, the [content] and [mime_type] fields must be set.
+     * The document payload, the
+     * [content][google.cloud.documentai.v1beta3.Document.content] and
+     * [mime_type][google.cloud.documentai.v1beta3.Document.mime_type] fields must
+     * be set.
      * 
* * .google.cloud.documentai.v1beta3.Document document = 2 [deprecated = true]; @@ -1742,7 +1776,10 @@ public Builder clearDocument() { * * *
-     * The document payload, the [content] and [mime_type] fields must be set.
+     * The document payload, the
+     * [content][google.cloud.documentai.v1beta3.Document.content] and
+     * [mime_type][google.cloud.documentai.v1beta3.Document.mime_type] fields must
+     * be set.
      * 
* * .google.cloud.documentai.v1beta3.Document document = 2 [deprecated = true]; @@ -1757,7 +1794,10 @@ public com.google.cloud.documentai.v1beta3.Document.Builder getDocumentBuilder() * * *
-     * The document payload, the [content] and [mime_type] fields must be set.
+     * The document payload, the
+     * [content][google.cloud.documentai.v1beta3.Document.content] and
+     * [mime_type][google.cloud.documentai.v1beta3.Document.mime_type] fields must
+     * be set.
      * 
* * .google.cloud.documentai.v1beta3.Document document = 2 [deprecated = true]; @@ -1776,7 +1816,10 @@ public com.google.cloud.documentai.v1beta3.DocumentOrBuilder getDocumentOrBuilde * * *
-     * The document payload, the [content] and [mime_type] fields must be set.
+     * The document payload, the
+     * [content][google.cloud.documentai.v1beta3.Document.content] and
+     * [mime_type][google.cloud.documentai.v1beta3.Document.mime_type] fields must
+     * be set.
      * 
* * .google.cloud.documentai.v1beta3.Document document = 2 [deprecated = true]; @@ -1803,8 +1846,8 @@ public com.google.cloud.documentai.v1beta3.DocumentOrBuilder getDocumentOrBuilde * * *
-     * Whether Human Review feature should be skipped for this request. Default to
-     * false.
+     * Whether human review should be skipped for this request. Default to
+     * `false`.
      * 
* * bool skip_human_review = 3; @@ -1819,8 +1862,8 @@ public boolean getSkipHumanReview() { * * *
-     * Whether Human Review feature should be skipped for this request. Default to
-     * false.
+     * Whether human review should be skipped for this request. Default to
+     * `false`.
      * 
* * bool skip_human_review = 3; @@ -1839,8 +1882,8 @@ public Builder setSkipHumanReview(boolean value) { * * *
-     * Whether Human Review feature should be skipped for this request. Default to
-     * false.
+     * Whether human review should be skipped for this request. Default to
+     * `false`.
      * 
* * bool skip_human_review = 3; @@ -1864,9 +1907,10 @@ public Builder clearSkipHumanReview() { * * *
-     * Specifies which fields to include in ProcessResponse's document.
-     * Only supports top level document and pages field so it must be in the form
-     * of `{document_field_name}` or `pages.{page_field_name}`.
+     * Specifies which fields to include in the
+     * [ProcessResponse.document][google.cloud.documentai.v1beta3.ProcessResponse.document]
+     * output. Only supports top-level document and pages field, so it must be in
+     * the form of `{document_field_name}` or `pages.{page_field_name}`.
      * 
* * .google.protobuf.FieldMask field_mask = 6; @@ -1880,9 +1924,10 @@ public boolean hasFieldMask() { * * *
-     * Specifies which fields to include in ProcessResponse's document.
-     * Only supports top level document and pages field so it must be in the form
-     * of `{document_field_name}` or `pages.{page_field_name}`.
+     * Specifies which fields to include in the
+     * [ProcessResponse.document][google.cloud.documentai.v1beta3.ProcessResponse.document]
+     * output. Only supports top-level document and pages field, so it must be in
+     * the form of `{document_field_name}` or `pages.{page_field_name}`.
      * 
* * .google.protobuf.FieldMask field_mask = 6; @@ -1900,9 +1945,10 @@ public com.google.protobuf.FieldMask getFieldMask() { * * *
-     * Specifies which fields to include in ProcessResponse's document.
-     * Only supports top level document and pages field so it must be in the form
-     * of `{document_field_name}` or `pages.{page_field_name}`.
+     * Specifies which fields to include in the
+     * [ProcessResponse.document][google.cloud.documentai.v1beta3.ProcessResponse.document]
+     * output. Only supports top-level document and pages field, so it must be in
+     * the form of `{document_field_name}` or `pages.{page_field_name}`.
      * 
* * .google.protobuf.FieldMask field_mask = 6; @@ -1924,9 +1970,10 @@ public Builder setFieldMask(com.google.protobuf.FieldMask value) { * * *
-     * Specifies which fields to include in ProcessResponse's document.
-     * Only supports top level document and pages field so it must be in the form
-     * of `{document_field_name}` or `pages.{page_field_name}`.
+     * Specifies which fields to include in the
+     * [ProcessResponse.document][google.cloud.documentai.v1beta3.ProcessResponse.document]
+     * output. Only supports top-level document and pages field, so it must be in
+     * the form of `{document_field_name}` or `pages.{page_field_name}`.
      * 
* * .google.protobuf.FieldMask field_mask = 6; @@ -1945,9 +1992,10 @@ public Builder setFieldMask(com.google.protobuf.FieldMask.Builder builderForValu * * *
-     * Specifies which fields to include in ProcessResponse's document.
-     * Only supports top level document and pages field so it must be in the form
-     * of `{document_field_name}` or `pages.{page_field_name}`.
+     * Specifies which fields to include in the
+     * [ProcessResponse.document][google.cloud.documentai.v1beta3.ProcessResponse.document]
+     * output. Only supports top-level document and pages field, so it must be in
+     * the form of `{document_field_name}` or `pages.{page_field_name}`.
      * 
* * .google.protobuf.FieldMask field_mask = 6; @@ -1972,9 +2020,10 @@ public Builder mergeFieldMask(com.google.protobuf.FieldMask value) { * * *
-     * Specifies which fields to include in ProcessResponse's document.
-     * Only supports top level document and pages field so it must be in the form
-     * of `{document_field_name}` or `pages.{page_field_name}`.
+     * Specifies which fields to include in the
+     * [ProcessResponse.document][google.cloud.documentai.v1beta3.ProcessResponse.document]
+     * output. Only supports top-level document and pages field, so it must be in
+     * the form of `{document_field_name}` or `pages.{page_field_name}`.
      * 
* * .google.protobuf.FieldMask field_mask = 6; @@ -1993,9 +2042,10 @@ public Builder clearFieldMask() { * * *
-     * Specifies which fields to include in ProcessResponse's document.
-     * Only supports top level document and pages field so it must be in the form
-     * of `{document_field_name}` or `pages.{page_field_name}`.
+     * Specifies which fields to include in the
+     * [ProcessResponse.document][google.cloud.documentai.v1beta3.ProcessResponse.document]
+     * output. Only supports top-level document and pages field, so it must be in
+     * the form of `{document_field_name}` or `pages.{page_field_name}`.
      * 
* * .google.protobuf.FieldMask field_mask = 6; @@ -2009,9 +2059,10 @@ public com.google.protobuf.FieldMask.Builder getFieldMaskBuilder() { * * *
-     * Specifies which fields to include in ProcessResponse's document.
-     * Only supports top level document and pages field so it must be in the form
-     * of `{document_field_name}` or `pages.{page_field_name}`.
+     * Specifies which fields to include in the
+     * [ProcessResponse.document][google.cloud.documentai.v1beta3.ProcessResponse.document]
+     * output. Only supports top-level document and pages field, so it must be in
+     * the form of `{document_field_name}` or `pages.{page_field_name}`.
      * 
* * .google.protobuf.FieldMask field_mask = 6; @@ -2027,9 +2078,10 @@ public com.google.protobuf.FieldMaskOrBuilder getFieldMaskOrBuilder() { * * *
-     * Specifies which fields to include in ProcessResponse's document.
-     * Only supports top level document and pages field so it must be in the form
-     * of `{document_field_name}` or `pages.{page_field_name}`.
+     * Specifies which fields to include in the
+     * [ProcessResponse.document][google.cloud.documentai.v1beta3.ProcessResponse.document]
+     * output. Only supports top-level document and pages field, so it must be in
+     * the form of `{document_field_name}` or `pages.{page_field_name}`.
      * 
* * .google.protobuf.FieldMask field_mask = 6; diff --git a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/ProcessRequestOrBuilder.java b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/ProcessRequestOrBuilder.java index fe187010f9b3..0ac071aae075 100644 --- a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/ProcessRequestOrBuilder.java +++ b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/ProcessRequestOrBuilder.java @@ -144,13 +144,16 @@ public interface ProcessRequestOrBuilder * * *
-   * The document payload, the [content] and [mime_type] fields must be set.
+   * The document payload, the
+   * [content][google.cloud.documentai.v1beta3.Document.content] and
+   * [mime_type][google.cloud.documentai.v1beta3.Document.mime_type] fields must
+   * be set.
    * 
* * .google.cloud.documentai.v1beta3.Document document = 2 [deprecated = true]; * * @deprecated google.cloud.documentai.v1beta3.ProcessRequest.document is deprecated. See - * google/cloud/documentai/v1beta3/document_processor_service.proto;l=373 + * google/cloud/documentai/v1beta3/document_processor_service.proto;l=381 * @return Whether the document field is set. */ @java.lang.Deprecated @@ -159,13 +162,16 @@ public interface ProcessRequestOrBuilder * * *
-   * The document payload, the [content] and [mime_type] fields must be set.
+   * The document payload, the
+   * [content][google.cloud.documentai.v1beta3.Document.content] and
+   * [mime_type][google.cloud.documentai.v1beta3.Document.mime_type] fields must
+   * be set.
    * 
* * .google.cloud.documentai.v1beta3.Document document = 2 [deprecated = true]; * * @deprecated google.cloud.documentai.v1beta3.ProcessRequest.document is deprecated. See - * google/cloud/documentai/v1beta3/document_processor_service.proto;l=373 + * google/cloud/documentai/v1beta3/document_processor_service.proto;l=381 * @return The document. */ @java.lang.Deprecated @@ -174,7 +180,10 @@ public interface ProcessRequestOrBuilder * * *
-   * The document payload, the [content] and [mime_type] fields must be set.
+   * The document payload, the
+   * [content][google.cloud.documentai.v1beta3.Document.content] and
+   * [mime_type][google.cloud.documentai.v1beta3.Document.mime_type] fields must
+   * be set.
    * 
* * .google.cloud.documentai.v1beta3.Document document = 2 [deprecated = true]; @@ -186,8 +195,8 @@ public interface ProcessRequestOrBuilder * * *
-   * Whether Human Review feature should be skipped for this request. Default to
-   * false.
+   * Whether human review should be skipped for this request. Default to
+   * `false`.
    * 
* * bool skip_human_review = 3; @@ -200,9 +209,10 @@ public interface ProcessRequestOrBuilder * * *
-   * Specifies which fields to include in ProcessResponse's document.
-   * Only supports top level document and pages field so it must be in the form
-   * of `{document_field_name}` or `pages.{page_field_name}`.
+   * Specifies which fields to include in the
+   * [ProcessResponse.document][google.cloud.documentai.v1beta3.ProcessResponse.document]
+   * output. Only supports top-level document and pages field, so it must be in
+   * the form of `{document_field_name}` or `pages.{page_field_name}`.
    * 
* * .google.protobuf.FieldMask field_mask = 6; @@ -214,9 +224,10 @@ public interface ProcessRequestOrBuilder * * *
-   * Specifies which fields to include in ProcessResponse's document.
-   * Only supports top level document and pages field so it must be in the form
-   * of `{document_field_name}` or `pages.{page_field_name}`.
+   * Specifies which fields to include in the
+   * [ProcessResponse.document][google.cloud.documentai.v1beta3.ProcessResponse.document]
+   * output. Only supports top-level document and pages field, so it must be in
+   * the form of `{document_field_name}` or `pages.{page_field_name}`.
    * 
* * .google.protobuf.FieldMask field_mask = 6; @@ -228,9 +239,10 @@ public interface ProcessRequestOrBuilder * * *
-   * Specifies which fields to include in ProcessResponse's document.
-   * Only supports top level document and pages field so it must be in the form
-   * of `{document_field_name}` or `pages.{page_field_name}`.
+   * Specifies which fields to include in the
+   * [ProcessResponse.document][google.cloud.documentai.v1beta3.ProcessResponse.document]
+   * output. Only supports top-level document and pages field, so it must be in
+   * the form of `{document_field_name}` or `pages.{page_field_name}`.
    * 
* * .google.protobuf.FieldMask field_mask = 6; diff --git a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/ProcessResponse.java b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/ProcessResponse.java index 603e079dfd1c..5928b9a2c57b 100644 --- a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/ProcessResponse.java +++ b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/ProcessResponse.java @@ -22,7 +22,9 @@ * * *
- * Response message for the process document method.
+ * Response message for the
+ * [ProcessDocument][google.cloud.documentai.v1beta3.DocumentProcessorService.ProcessDocument]
+ * method.
  * 
* * Protobuf type {@code google.cloud.documentai.v1beta3.ProcessResponse} @@ -124,15 +126,15 @@ public com.google.cloud.documentai.v1beta3.DocumentOrBuilder getDocumentOrBuilde * *
    * The name of the operation triggered by the processed document. If the human
-   * review process is not triggered, this field will be empty. It has the same
-   * response type and metadata as the long running operation returned by
-   * ReviewDocument method.
+   * review process isn't triggered, this field is empty. It has the same
+   * response type and metadata as the long-running operation returned by
+   * [ReviewDocument][google.cloud.documentai.v1beta3.DocumentProcessorService.ReviewDocument].
    * 
* * string human_review_operation = 2 [deprecated = true]; * * @deprecated google.cloud.documentai.v1beta3.ProcessResponse.human_review_operation is - * deprecated. See google/cloud/documentai/v1beta3/document_processor_service.proto;l=434 + * deprecated. See google/cloud/documentai/v1beta3/document_processor_service.proto;l=448 * @return The humanReviewOperation. */ @java.lang.Override @@ -153,15 +155,15 @@ public java.lang.String getHumanReviewOperation() { * *
    * The name of the operation triggered by the processed document. If the human
-   * review process is not triggered, this field will be empty. It has the same
-   * response type and metadata as the long running operation returned by
-   * ReviewDocument method.
+   * review process isn't triggered, this field is empty. It has the same
+   * response type and metadata as the long-running operation returned by
+   * [ReviewDocument][google.cloud.documentai.v1beta3.DocumentProcessorService.ReviewDocument].
    * 
* * string human_review_operation = 2 [deprecated = true]; * * @deprecated google.cloud.documentai.v1beta3.ProcessResponse.human_review_operation is - * deprecated. See google/cloud/documentai/v1beta3/document_processor_service.proto;l=434 + * deprecated. See google/cloud/documentai/v1beta3/document_processor_service.proto;l=448 * @return The bytes for humanReviewOperation. */ @java.lang.Override @@ -420,7 +422,9 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * Response message for the process document method.
+   * Response message for the
+   * [ProcessDocument][google.cloud.documentai.v1beta3.DocumentProcessorService.ProcessDocument]
+   * method.
    * 
* * Protobuf type {@code google.cloud.documentai.v1beta3.ProcessResponse} @@ -836,15 +840,15 @@ public com.google.cloud.documentai.v1beta3.DocumentOrBuilder getDocumentOrBuilde * *
      * The name of the operation triggered by the processed document. If the human
-     * review process is not triggered, this field will be empty. It has the same
-     * response type and metadata as the long running operation returned by
-     * ReviewDocument method.
+     * review process isn't triggered, this field is empty. It has the same
+     * response type and metadata as the long-running operation returned by
+     * [ReviewDocument][google.cloud.documentai.v1beta3.DocumentProcessorService.ReviewDocument].
      * 
* * string human_review_operation = 2 [deprecated = true]; * * @deprecated google.cloud.documentai.v1beta3.ProcessResponse.human_review_operation is - * deprecated. See google/cloud/documentai/v1beta3/document_processor_service.proto;l=434 + * deprecated. See google/cloud/documentai/v1beta3/document_processor_service.proto;l=448 * @return The humanReviewOperation. */ @java.lang.Deprecated @@ -864,15 +868,15 @@ public java.lang.String getHumanReviewOperation() { * *
      * The name of the operation triggered by the processed document. If the human
-     * review process is not triggered, this field will be empty. It has the same
-     * response type and metadata as the long running operation returned by
-     * ReviewDocument method.
+     * review process isn't triggered, this field is empty. It has the same
+     * response type and metadata as the long-running operation returned by
+     * [ReviewDocument][google.cloud.documentai.v1beta3.DocumentProcessorService.ReviewDocument].
      * 
* * string human_review_operation = 2 [deprecated = true]; * * @deprecated google.cloud.documentai.v1beta3.ProcessResponse.human_review_operation is - * deprecated. See google/cloud/documentai/v1beta3/document_processor_service.proto;l=434 + * deprecated. See google/cloud/documentai/v1beta3/document_processor_service.proto;l=448 * @return The bytes for humanReviewOperation. */ @java.lang.Deprecated @@ -892,15 +896,15 @@ public com.google.protobuf.ByteString getHumanReviewOperationBytes() { * *
      * The name of the operation triggered by the processed document. If the human
-     * review process is not triggered, this field will be empty. It has the same
-     * response type and metadata as the long running operation returned by
-     * ReviewDocument method.
+     * review process isn't triggered, this field is empty. It has the same
+     * response type and metadata as the long-running operation returned by
+     * [ReviewDocument][google.cloud.documentai.v1beta3.DocumentProcessorService.ReviewDocument].
      * 
* * string human_review_operation = 2 [deprecated = true]; * * @deprecated google.cloud.documentai.v1beta3.ProcessResponse.human_review_operation is - * deprecated. See google/cloud/documentai/v1beta3/document_processor_service.proto;l=434 + * deprecated. See google/cloud/documentai/v1beta3/document_processor_service.proto;l=448 * @param value The humanReviewOperation to set. * @return This builder for chaining. */ @@ -919,15 +923,15 @@ public Builder setHumanReviewOperation(java.lang.String value) { * *
      * The name of the operation triggered by the processed document. If the human
-     * review process is not triggered, this field will be empty. It has the same
-     * response type and metadata as the long running operation returned by
-     * ReviewDocument method.
+     * review process isn't triggered, this field is empty. It has the same
+     * response type and metadata as the long-running operation returned by
+     * [ReviewDocument][google.cloud.documentai.v1beta3.DocumentProcessorService.ReviewDocument].
      * 
* * string human_review_operation = 2 [deprecated = true]; * * @deprecated google.cloud.documentai.v1beta3.ProcessResponse.human_review_operation is - * deprecated. See google/cloud/documentai/v1beta3/document_processor_service.proto;l=434 + * deprecated. See google/cloud/documentai/v1beta3/document_processor_service.proto;l=448 * @return This builder for chaining. */ @java.lang.Deprecated @@ -942,15 +946,15 @@ public Builder clearHumanReviewOperation() { * *
      * The name of the operation triggered by the processed document. If the human
-     * review process is not triggered, this field will be empty. It has the same
-     * response type and metadata as the long running operation returned by
-     * ReviewDocument method.
+     * review process isn't triggered, this field is empty. It has the same
+     * response type and metadata as the long-running operation returned by
+     * [ReviewDocument][google.cloud.documentai.v1beta3.DocumentProcessorService.ReviewDocument].
      * 
* * string human_review_operation = 2 [deprecated = true]; * * @deprecated google.cloud.documentai.v1beta3.ProcessResponse.human_review_operation is - * deprecated. See google/cloud/documentai/v1beta3/document_processor_service.proto;l=434 + * deprecated. See google/cloud/documentai/v1beta3/document_processor_service.proto;l=448 * @param value The bytes for humanReviewOperation to set. * @return This builder for chaining. */ diff --git a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/ProcessResponseOrBuilder.java b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/ProcessResponseOrBuilder.java index 8414943714d9..5f8dd79c96dd 100644 --- a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/ProcessResponseOrBuilder.java +++ b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/ProcessResponseOrBuilder.java @@ -66,15 +66,15 @@ public interface ProcessResponseOrBuilder * *
    * The name of the operation triggered by the processed document. If the human
-   * review process is not triggered, this field will be empty. It has the same
-   * response type and metadata as the long running operation returned by
-   * ReviewDocument method.
+   * review process isn't triggered, this field is empty. It has the same
+   * response type and metadata as the long-running operation returned by
+   * [ReviewDocument][google.cloud.documentai.v1beta3.DocumentProcessorService.ReviewDocument].
    * 
* * string human_review_operation = 2 [deprecated = true]; * * @deprecated google.cloud.documentai.v1beta3.ProcessResponse.human_review_operation is - * deprecated. See google/cloud/documentai/v1beta3/document_processor_service.proto;l=434 + * deprecated. See google/cloud/documentai/v1beta3/document_processor_service.proto;l=448 * @return The humanReviewOperation. */ @java.lang.Deprecated @@ -84,15 +84,15 @@ public interface ProcessResponseOrBuilder * *
    * The name of the operation triggered by the processed document. If the human
-   * review process is not triggered, this field will be empty. It has the same
-   * response type and metadata as the long running operation returned by
-   * ReviewDocument method.
+   * review process isn't triggered, this field is empty. It has the same
+   * response type and metadata as the long-running operation returned by
+   * [ReviewDocument][google.cloud.documentai.v1beta3.DocumentProcessorService.ReviewDocument].
    * 
* * string human_review_operation = 2 [deprecated = true]; * * @deprecated google.cloud.documentai.v1beta3.ProcessResponse.human_review_operation is - * deprecated. See google/cloud/documentai/v1beta3/document_processor_service.proto;l=434 + * deprecated. See google/cloud/documentai/v1beta3/document_processor_service.proto;l=448 * @return The bytes for humanReviewOperation. */ @java.lang.Deprecated diff --git a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/Processor.java b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/Processor.java index 498cf083551e..80e9c3d00007 100644 --- a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/Processor.java +++ b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/Processor.java @@ -417,8 +417,8 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
-   * The processor type, e.g., `OCR_PROCESSOR`, `INVOICE_PROCESSOR`, etc.
-   * To get a list of processors types, see
+   * The processor type, such as: `OCR_PROCESSOR`, `INVOICE_PROCESSOR`.
+   * To get a list of processor types, see
    * [FetchProcessorTypes][google.cloud.documentai.v1beta3.DocumentProcessorService.FetchProcessorTypes].
    * 
* @@ -442,8 +442,8 @@ public java.lang.String getType() { * * *
-   * The processor type, e.g., `OCR_PROCESSOR`, `INVOICE_PROCESSOR`, etc.
-   * To get a list of processors types, see
+   * The processor type, such as: `OCR_PROCESSOR`, `INVOICE_PROCESSOR`.
+   * To get a list of processor types, see
    * [FetchProcessorTypes][google.cloud.documentai.v1beta3.DocumentProcessorService.FetchProcessorTypes].
    * 
* @@ -718,8 +718,8 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { * * *
-   * The KMS key used for encryption/decryption in CMEK scenarios.
-   * See https://cloud.google.com/security-key-management.
+   * The [KMS key](https://cloud.google.com/security-key-management) used for
+   * encryption and decryption in CMEK scenarios.
    * 
* * string kms_key_name = 8; @@ -742,8 +742,8 @@ public java.lang.String getKmsKeyName() { * * *
-   * The KMS key used for encryption/decryption in CMEK scenarios.
-   * See https://cloud.google.com/security-key-management.
+   * The [KMS key](https://cloud.google.com/security-key-management) used for
+   * encryption and decryption in CMEK scenarios.
    * 
* * string kms_key_name = 8; @@ -1406,8 +1406,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { * * *
-     * The processor type, e.g., `OCR_PROCESSOR`, `INVOICE_PROCESSOR`, etc.
-     * To get a list of processors types, see
+     * The processor type, such as: `OCR_PROCESSOR`, `INVOICE_PROCESSOR`.
+     * To get a list of processor types, see
      * [FetchProcessorTypes][google.cloud.documentai.v1beta3.DocumentProcessorService.FetchProcessorTypes].
      * 
* @@ -1430,8 +1430,8 @@ public java.lang.String getType() { * * *
-     * The processor type, e.g., `OCR_PROCESSOR`, `INVOICE_PROCESSOR`, etc.
-     * To get a list of processors types, see
+     * The processor type, such as: `OCR_PROCESSOR`, `INVOICE_PROCESSOR`.
+     * To get a list of processor types, see
      * [FetchProcessorTypes][google.cloud.documentai.v1beta3.DocumentProcessorService.FetchProcessorTypes].
      * 
* @@ -1454,8 +1454,8 @@ public com.google.protobuf.ByteString getTypeBytes() { * * *
-     * The processor type, e.g., `OCR_PROCESSOR`, `INVOICE_PROCESSOR`, etc.
-     * To get a list of processors types, see
+     * The processor type, such as: `OCR_PROCESSOR`, `INVOICE_PROCESSOR`.
+     * To get a list of processor types, see
      * [FetchProcessorTypes][google.cloud.documentai.v1beta3.DocumentProcessorService.FetchProcessorTypes].
      * 
* @@ -1477,8 +1477,8 @@ public Builder setType(java.lang.String value) { * * *
-     * The processor type, e.g., `OCR_PROCESSOR`, `INVOICE_PROCESSOR`, etc.
-     * To get a list of processors types, see
+     * The processor type, such as: `OCR_PROCESSOR`, `INVOICE_PROCESSOR`.
+     * To get a list of processor types, see
      * [FetchProcessorTypes][google.cloud.documentai.v1beta3.DocumentProcessorService.FetchProcessorTypes].
      * 
* @@ -1496,8 +1496,8 @@ public Builder clearType() { * * *
-     * The processor type, e.g., `OCR_PROCESSOR`, `INVOICE_PROCESSOR`, etc.
-     * To get a list of processors types, see
+     * The processor type, such as: `OCR_PROCESSOR`, `INVOICE_PROCESSOR`.
+     * To get a list of processor types, see
      * [FetchProcessorTypes][google.cloud.documentai.v1beta3.DocumentProcessorService.FetchProcessorTypes].
      * 
* @@ -2140,8 +2140,8 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { * * *
-     * The KMS key used for encryption/decryption in CMEK scenarios.
-     * See https://cloud.google.com/security-key-management.
+     * The [KMS key](https://cloud.google.com/security-key-management) used for
+     * encryption and decryption in CMEK scenarios.
      * 
* * string kms_key_name = 8; @@ -2163,8 +2163,8 @@ public java.lang.String getKmsKeyName() { * * *
-     * The KMS key used for encryption/decryption in CMEK scenarios.
-     * See https://cloud.google.com/security-key-management.
+     * The [KMS key](https://cloud.google.com/security-key-management) used for
+     * encryption and decryption in CMEK scenarios.
      * 
* * string kms_key_name = 8; @@ -2186,8 +2186,8 @@ public com.google.protobuf.ByteString getKmsKeyNameBytes() { * * *
-     * The KMS key used for encryption/decryption in CMEK scenarios.
-     * See https://cloud.google.com/security-key-management.
+     * The [KMS key](https://cloud.google.com/security-key-management) used for
+     * encryption and decryption in CMEK scenarios.
      * 
* * string kms_key_name = 8; @@ -2208,8 +2208,8 @@ public Builder setKmsKeyName(java.lang.String value) { * * *
-     * The KMS key used for encryption/decryption in CMEK scenarios.
-     * See https://cloud.google.com/security-key-management.
+     * The [KMS key](https://cloud.google.com/security-key-management) used for
+     * encryption and decryption in CMEK scenarios.
      * 
* * string kms_key_name = 8; @@ -2226,8 +2226,8 @@ public Builder clearKmsKeyName() { * * *
-     * The KMS key used for encryption/decryption in CMEK scenarios.
-     * See https://cloud.google.com/security-key-management.
+     * The [KMS key](https://cloud.google.com/security-key-management) used for
+     * encryption and decryption in CMEK scenarios.
      * 
* * string kms_key_name = 8; diff --git a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/ProcessorOrBuilder.java b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/ProcessorOrBuilder.java index f6ccf721cc16..5712b8654f01 100644 --- a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/ProcessorOrBuilder.java +++ b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/ProcessorOrBuilder.java @@ -58,8 +58,8 @@ public interface ProcessorOrBuilder * * *
-   * The processor type, e.g., `OCR_PROCESSOR`, `INVOICE_PROCESSOR`, etc.
-   * To get a list of processors types, see
+   * The processor type, such as: `OCR_PROCESSOR`, `INVOICE_PROCESSOR`.
+   * To get a list of processor types, see
    * [FetchProcessorTypes][google.cloud.documentai.v1beta3.DocumentProcessorService.FetchProcessorTypes].
    * 
* @@ -72,8 +72,8 @@ public interface ProcessorOrBuilder * * *
-   * The processor type, e.g., `OCR_PROCESSOR`, `INVOICE_PROCESSOR`, etc.
-   * To get a list of processors types, see
+   * The processor type, such as: `OCR_PROCESSOR`, `INVOICE_PROCESSOR`.
+   * To get a list of processor types, see
    * [FetchProcessorTypes][google.cloud.documentai.v1beta3.DocumentProcessorService.FetchProcessorTypes].
    * 
* @@ -232,8 +232,8 @@ public interface ProcessorOrBuilder * * *
-   * The KMS key used for encryption/decryption in CMEK scenarios.
-   * See https://cloud.google.com/security-key-management.
+   * The [KMS key](https://cloud.google.com/security-key-management) used for
+   * encryption and decryption in CMEK scenarios.
    * 
* * string kms_key_name = 8; @@ -245,8 +245,8 @@ public interface ProcessorOrBuilder * * *
-   * The KMS key used for encryption/decryption in CMEK scenarios.
-   * See https://cloud.google.com/security-key-management.
+   * The [KMS key](https://cloud.google.com/security-key-management) used for
+   * encryption and decryption in CMEK scenarios.
    * 
* * string kms_key_name = 8; diff --git a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/ProcessorType.java b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/ProcessorType.java index 6154284ae563..8f1e0413789c 100644 --- a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/ProcessorType.java +++ b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/ProcessorType.java @@ -77,7 +77,8 @@ public interface LocationInfoOrBuilder * * *
-     * The location id, currently must be one of [us, eu].
+     * The location ID. For supported locations, refer to [regional and
+     * multi-regional support](/document-ai/docs/regions).
      * 
* * string location_id = 1; @@ -89,7 +90,8 @@ public interface LocationInfoOrBuilder * * *
-     * The location id, currently must be one of [us, eu].
+     * The location ID. For supported locations, refer to [regional and
+     * multi-regional support](/document-ai/docs/regions).
      * 
* * string location_id = 1; @@ -150,7 +152,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-     * The location id, currently must be one of [us, eu].
+     * The location ID. For supported locations, refer to [regional and
+     * multi-regional support](/document-ai/docs/regions).
      * 
* * string location_id = 1; @@ -173,7 +176,8 @@ public java.lang.String getLocationId() { * * *
-     * The location id, currently must be one of [us, eu].
+     * The location ID. For supported locations, refer to [regional and
+     * multi-regional support](/document-ai/docs/regions).
      * 
* * string location_id = 1; @@ -549,7 +553,8 @@ public Builder mergeFrom( * * *
-       * The location id, currently must be one of [us, eu].
+       * The location ID. For supported locations, refer to [regional and
+       * multi-regional support](/document-ai/docs/regions).
        * 
* * string location_id = 1; @@ -571,7 +576,8 @@ public java.lang.String getLocationId() { * * *
-       * The location id, currently must be one of [us, eu].
+       * The location ID. For supported locations, refer to [regional and
+       * multi-regional support](/document-ai/docs/regions).
        * 
* * string location_id = 1; @@ -593,7 +599,8 @@ public com.google.protobuf.ByteString getLocationIdBytes() { * * *
-       * The location id, currently must be one of [us, eu].
+       * The location ID. For supported locations, refer to [regional and
+       * multi-regional support](/document-ai/docs/regions).
        * 
* * string location_id = 1; @@ -614,7 +621,8 @@ public Builder setLocationId(java.lang.String value) { * * *
-       * The location id, currently must be one of [us, eu].
+       * The location ID. For supported locations, refer to [regional and
+       * multi-regional support](/document-ai/docs/regions).
        * 
* * string location_id = 1; @@ -631,7 +639,8 @@ public Builder clearLocationId() { * * *
-       * The location id, currently must be one of [us, eu].
+       * The location ID. For supported locations, refer to [regional and
+       * multi-regional support](/document-ai/docs/regions).
        * 
* * string location_id = 1; @@ -778,7 +787,7 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
-   * The processor type, e.g., `OCR_PROCESSOR`, `INVOICE_PROCESSOR`, etc.
+   * The processor type, such as: `OCR_PROCESSOR`, `INVOICE_PROCESSOR`.
    * 
* * string type = 2; @@ -801,7 +810,7 @@ public java.lang.String getType() { * * *
-   * The processor type, e.g., `OCR_PROCESSOR`, `INVOICE_PROCESSOR`, etc.
+   * The processor type, such as: `OCR_PROCESSOR`, `INVOICE_PROCESSOR`.
    * 
* * string type = 2; @@ -1738,7 +1747,7 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { * * *
-     * The processor type, e.g., `OCR_PROCESSOR`, `INVOICE_PROCESSOR`, etc.
+     * The processor type, such as: `OCR_PROCESSOR`, `INVOICE_PROCESSOR`.
      * 
* * string type = 2; @@ -1760,7 +1769,7 @@ public java.lang.String getType() { * * *
-     * The processor type, e.g., `OCR_PROCESSOR`, `INVOICE_PROCESSOR`, etc.
+     * The processor type, such as: `OCR_PROCESSOR`, `INVOICE_PROCESSOR`.
      * 
* * string type = 2; @@ -1782,7 +1791,7 @@ public com.google.protobuf.ByteString getTypeBytes() { * * *
-     * The processor type, e.g., `OCR_PROCESSOR`, `INVOICE_PROCESSOR`, etc.
+     * The processor type, such as: `OCR_PROCESSOR`, `INVOICE_PROCESSOR`.
      * 
* * string type = 2; @@ -1803,7 +1812,7 @@ public Builder setType(java.lang.String value) { * * *
-     * The processor type, e.g., `OCR_PROCESSOR`, `INVOICE_PROCESSOR`, etc.
+     * The processor type, such as: `OCR_PROCESSOR`, `INVOICE_PROCESSOR`.
      * 
* * string type = 2; @@ -1820,7 +1829,7 @@ public Builder clearType() { * * *
-     * The processor type, e.g., `OCR_PROCESSOR`, `INVOICE_PROCESSOR`, etc.
+     * The processor type, such as: `OCR_PROCESSOR`, `INVOICE_PROCESSOR`.
      * 
* * string type = 2; diff --git a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/ProcessorTypeOrBuilder.java b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/ProcessorTypeOrBuilder.java index 5fa350267706..2a8cf56e558b 100644 --- a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/ProcessorTypeOrBuilder.java +++ b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/ProcessorTypeOrBuilder.java @@ -54,7 +54,7 @@ public interface ProcessorTypeOrBuilder * * *
-   * The processor type, e.g., `OCR_PROCESSOR`, `INVOICE_PROCESSOR`, etc.
+   * The processor type, such as: `OCR_PROCESSOR`, `INVOICE_PROCESSOR`.
    * 
* * string type = 2; @@ -66,7 +66,7 @@ public interface ProcessorTypeOrBuilder * * *
-   * The processor type, e.g., `OCR_PROCESSOR`, `INVOICE_PROCESSOR`, etc.
+   * The processor type, such as: `OCR_PROCESSOR`, `INVOICE_PROCESSOR`.
    * 
* * string type = 2; diff --git a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/ProcessorVersion.java b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/ProcessorVersion.java index 66d98bda21b1..d965e3994b20 100644 --- a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/ProcessorVersion.java +++ b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/ProcessorVersion.java @@ -23,10 +23,9 @@ * *
  * A processor version is an implementation of a processor. Each processor
- * can have multiple versions, pre-trained by Google internally or up-trained
- * by the customer. At a time, a processor can only have one default version
- * version. So the processor's behavior (when processing documents) is defined
- * by a default version
+ * can have multiple versions, pretrained by Google internally or uptrained
+ * by the customer. A processor can only have one default version at a time.
+ * Its document-processing behavior is defined by that version.
  * 
* * Protobuf type {@code google.cloud.documentai.v1beta3.ProcessorVersion} @@ -160,6 +159,16 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { * FAILED = 7; */ FAILED(7), + /** + * + * + *
+     * The processor version is being imported.
+     * 
+ * + * IMPORTING = 8; + */ + IMPORTING(8), UNRECOGNIZED(-1), ; @@ -243,6 +252,16 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { * FAILED = 7; */ public static final int FAILED_VALUE = 7; + /** + * + * + *
+     * The processor version is being imported.
+     * 
+ * + * IMPORTING = 8; + */ + public static final int IMPORTING_VALUE = 8; public final int getNumber() { if (this == UNRECOGNIZED) { @@ -284,6 +303,8 @@ public static State forNumber(int value) { return DELETING; case 7: return FAILED; + case 8: + return IMPORTING; default: return null; } @@ -1704,7 +1725,7 @@ public com.google.protobuf.ByteString getKmsKeyVersionNameBytes() { * * *
-   * Denotes that this ProcessorVersion is managed by google.
+   * Denotes that this `ProcessorVersion` is managed by Google.
    * 
* * bool google_managed = 11; @@ -2039,10 +2060,9 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * *
    * A processor version is an implementation of a processor. Each processor
-   * can have multiple versions, pre-trained by Google internally or up-trained
-   * by the customer. At a time, a processor can only have one default version
-   * version. So the processor's behavior (when processing documents) is defined
-   * by a default version
+   * can have multiple versions, pretrained by Google internally or uptrained
+   * by the customer. A processor can only have one default version at a time.
+   * Its document-processing behavior is defined by that version.
    * 
* * Protobuf type {@code google.cloud.documentai.v1beta3.ProcessorVersion} @@ -3453,7 +3473,7 @@ public Builder setKmsKeyVersionNameBytes(com.google.protobuf.ByteString value) { * * *
-     * Denotes that this ProcessorVersion is managed by google.
+     * Denotes that this `ProcessorVersion` is managed by Google.
      * 
* * bool google_managed = 11; @@ -3468,7 +3488,7 @@ public boolean getGoogleManaged() { * * *
-     * Denotes that this ProcessorVersion is managed by google.
+     * Denotes that this `ProcessorVersion` is managed by Google.
      * 
* * bool google_managed = 11; @@ -3487,7 +3507,7 @@ public Builder setGoogleManaged(boolean value) { * * *
-     * Denotes that this ProcessorVersion is managed by google.
+     * Denotes that this `ProcessorVersion` is managed by Google.
      * 
* * bool google_managed = 11; diff --git a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/ProcessorVersionOrBuilder.java b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/ProcessorVersionOrBuilder.java index 3817f90afff2..8cc909e73f00 100644 --- a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/ProcessorVersionOrBuilder.java +++ b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/ProcessorVersionOrBuilder.java @@ -261,7 +261,7 @@ public interface ProcessorVersionOrBuilder * * *
-   * Denotes that this ProcessorVersion is managed by google.
+   * Denotes that this `ProcessorVersion` is managed by Google.
    * 
* * bool google_managed = 11; diff --git a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/PropertyMetadata.java b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/PropertyMetadata.java new file mode 100644 index 000000000000..90a3d66c3ac3 --- /dev/null +++ b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/PropertyMetadata.java @@ -0,0 +1,534 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the 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/v1beta3/document_schema.proto + +package com.google.cloud.documentai.v1beta3; + +/** + * + * + *
+ * Metadata about a property.
+ * 
+ * + * Protobuf type {@code google.cloud.documentai.v1beta3.PropertyMetadata} + */ +public final class PropertyMetadata extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.documentai.v1beta3.PropertyMetadata) + PropertyMetadataOrBuilder { + private static final long serialVersionUID = 0L; + // Use PropertyMetadata.newBuilder() to construct. + private PropertyMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private PropertyMetadata() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new PropertyMetadata(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.documentai.v1beta3.DocumentAiDocumentSchema + .internal_static_google_cloud_documentai_v1beta3_PropertyMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.documentai.v1beta3.DocumentAiDocumentSchema + .internal_static_google_cloud_documentai_v1beta3_PropertyMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.documentai.v1beta3.PropertyMetadata.class, + com.google.cloud.documentai.v1beta3.PropertyMetadata.Builder.class); + } + + public static final int INACTIVE_FIELD_NUMBER = 3; + private boolean inactive_ = false; + /** + * + * + *
+   * Whether the property should be considered as "inactive".
+   * 
+ * + * bool inactive = 3; + * + * @return The inactive. + */ + @java.lang.Override + public boolean getInactive() { + return inactive_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (inactive_ != false) { + output.writeBool(3, inactive_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (inactive_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, inactive_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.documentai.v1beta3.PropertyMetadata)) { + return super.equals(obj); + } + com.google.cloud.documentai.v1beta3.PropertyMetadata other = + (com.google.cloud.documentai.v1beta3.PropertyMetadata) obj; + + if (getInactive() != other.getInactive()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + INACTIVE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getInactive()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.documentai.v1beta3.PropertyMetadata parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.documentai.v1beta3.PropertyMetadata 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.v1beta3.PropertyMetadata parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.documentai.v1beta3.PropertyMetadata parseFrom( + com.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.v1beta3.PropertyMetadata parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.documentai.v1beta3.PropertyMetadata parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.documentai.v1beta3.PropertyMetadata parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.documentai.v1beta3.PropertyMetadata 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.v1beta3.PropertyMetadata parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.documentai.v1beta3.PropertyMetadata 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.v1beta3.PropertyMetadata parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.documentai.v1beta3.PropertyMetadata 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 static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.documentai.v1beta3.PropertyMetadata prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Metadata about a property.
+   * 
+ * + * Protobuf type {@code google.cloud.documentai.v1beta3.PropertyMetadata} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.documentai.v1beta3.PropertyMetadata) + com.google.cloud.documentai.v1beta3.PropertyMetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.documentai.v1beta3.DocumentAiDocumentSchema + .internal_static_google_cloud_documentai_v1beta3_PropertyMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.documentai.v1beta3.DocumentAiDocumentSchema + .internal_static_google_cloud_documentai_v1beta3_PropertyMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.documentai.v1beta3.PropertyMetadata.class, + com.google.cloud.documentai.v1beta3.PropertyMetadata.Builder.class); + } + + // Construct using com.google.cloud.documentai.v1beta3.PropertyMetadata.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + inactive_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.documentai.v1beta3.DocumentAiDocumentSchema + .internal_static_google_cloud_documentai_v1beta3_PropertyMetadata_descriptor; + } + + @java.lang.Override + public com.google.cloud.documentai.v1beta3.PropertyMetadata getDefaultInstanceForType() { + return com.google.cloud.documentai.v1beta3.PropertyMetadata.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.documentai.v1beta3.PropertyMetadata build() { + com.google.cloud.documentai.v1beta3.PropertyMetadata result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.documentai.v1beta3.PropertyMetadata buildPartial() { + com.google.cloud.documentai.v1beta3.PropertyMetadata result = + new com.google.cloud.documentai.v1beta3.PropertyMetadata(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.documentai.v1beta3.PropertyMetadata result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.inactive_ = inactive_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.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.v1beta3.PropertyMetadata) { + return mergeFrom((com.google.cloud.documentai.v1beta3.PropertyMetadata) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.documentai.v1beta3.PropertyMetadata other) { + if (other == com.google.cloud.documentai.v1beta3.PropertyMetadata.getDefaultInstance()) + return this; + if (other.getInactive() != false) { + setInactive(other.getInactive()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 24: + { + inactive_ = input.readBool(); + bitField0_ |= 0x00000001; + break; + } // case 24 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private boolean inactive_; + /** + * + * + *
+     * Whether the property should be considered as "inactive".
+     * 
+ * + * bool inactive = 3; + * + * @return The inactive. + */ + @java.lang.Override + public boolean getInactive() { + return inactive_; + } + /** + * + * + *
+     * Whether the property should be considered as "inactive".
+     * 
+ * + * bool inactive = 3; + * + * @param value The inactive to set. + * @return This builder for chaining. + */ + public Builder setInactive(boolean value) { + + inactive_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Whether the property should be considered as "inactive".
+     * 
+ * + * bool inactive = 3; + * + * @return This builder for chaining. + */ + public Builder clearInactive() { + bitField0_ = (bitField0_ & ~0x00000001); + inactive_ = false; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.documentai.v1beta3.PropertyMetadata) + } + + // @@protoc_insertion_point(class_scope:google.cloud.documentai.v1beta3.PropertyMetadata) + private static final com.google.cloud.documentai.v1beta3.PropertyMetadata DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.documentai.v1beta3.PropertyMetadata(); + } + + public static com.google.cloud.documentai.v1beta3.PropertyMetadata getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PropertyMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.documentai.v1beta3.PropertyMetadata getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/PropertyMetadataOrBuilder.java b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/PropertyMetadataOrBuilder.java new file mode 100644 index 000000000000..44d8af31f1a4 --- /dev/null +++ b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/PropertyMetadataOrBuilder.java @@ -0,0 +1,38 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the 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/v1beta3/document_schema.proto + +package com.google.cloud.documentai.v1beta3; + +public interface PropertyMetadataOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.documentai.v1beta3.PropertyMetadata) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Whether the property should be considered as "inactive".
+   * 
+ * + * bool inactive = 3; + * + * @return The inactive. + */ + boolean getInactive(); +} diff --git a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/ReviewDocumentOperationMetadata.java b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/ReviewDocumentOperationMetadata.java index 35edc369fe4f..dc159081eac7 100644 --- a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/ReviewDocumentOperationMetadata.java +++ b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/ReviewDocumentOperationMetadata.java @@ -22,7 +22,9 @@ * * *
- * The long running operation metadata for review document method.
+ * The long-running operation metadata for the
+ * [ReviewDocument][google.cloud.documentai.v1beta3.DocumentProcessorService.ReviewDocument]
+ * method.
  * 
* * Protobuf type {@code google.cloud.documentai.v1beta3.ReviewDocumentOperationMetadata} @@ -69,7 +71,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * State of the longrunning operation.
+   * State of the long-running operation.
    * 
* * Protobuf enum {@code google.cloud.documentai.v1beta3.ReviewDocumentOperationMetadata.State} @@ -478,7 +480,7 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { * * *
-   * The basic metadata of the long running operation.
+   * The basic metadata of the long-running operation.
    * 
* * .google.cloud.documentai.v1beta3.CommonOperationMetadata common_metadata = 5; @@ -493,7 +495,7 @@ public boolean hasCommonMetadata() { * * *
-   * The basic metadata of the long running operation.
+   * The basic metadata of the long-running operation.
    * 
* * .google.cloud.documentai.v1beta3.CommonOperationMetadata common_metadata = 5; @@ -510,7 +512,7 @@ public com.google.cloud.documentai.v1beta3.CommonOperationMetadata getCommonMeta * * *
-   * The basic metadata of the long running operation.
+   * The basic metadata of the long-running operation.
    * 
* * .google.cloud.documentai.v1beta3.CommonOperationMetadata common_metadata = 5; @@ -805,7 +807,9 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * The long running operation metadata for review document method.
+   * The long-running operation metadata for the
+   * [ReviewDocument][google.cloud.documentai.v1beta3.DocumentProcessorService.ReviewDocument]
+   * method.
    * 
* * Protobuf type {@code google.cloud.documentai.v1beta3.ReviewDocumentOperationMetadata} @@ -1657,7 +1661,7 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { * * *
-     * The basic metadata of the long running operation.
+     * The basic metadata of the long-running operation.
      * 
* * .google.cloud.documentai.v1beta3.CommonOperationMetadata common_metadata = 5; @@ -1671,7 +1675,7 @@ public boolean hasCommonMetadata() { * * *
-     * The basic metadata of the long running operation.
+     * The basic metadata of the long-running operation.
      * 
* * .google.cloud.documentai.v1beta3.CommonOperationMetadata common_metadata = 5; @@ -1691,7 +1695,7 @@ public com.google.cloud.documentai.v1beta3.CommonOperationMetadata getCommonMeta * * *
-     * The basic metadata of the long running operation.
+     * The basic metadata of the long-running operation.
      * 
* * .google.cloud.documentai.v1beta3.CommonOperationMetadata common_metadata = 5; @@ -1714,7 +1718,7 @@ public Builder setCommonMetadata( * * *
-     * The basic metadata of the long running operation.
+     * The basic metadata of the long-running operation.
      * 
* * .google.cloud.documentai.v1beta3.CommonOperationMetadata common_metadata = 5; @@ -1734,7 +1738,7 @@ public Builder setCommonMetadata( * * *
-     * The basic metadata of the long running operation.
+     * The basic metadata of the long-running operation.
      * 
* * .google.cloud.documentai.v1beta3.CommonOperationMetadata common_metadata = 5; @@ -1762,7 +1766,7 @@ public Builder mergeCommonMetadata( * * *
-     * The basic metadata of the long running operation.
+     * The basic metadata of the long-running operation.
      * 
* * .google.cloud.documentai.v1beta3.CommonOperationMetadata common_metadata = 5; @@ -1781,7 +1785,7 @@ public Builder clearCommonMetadata() { * * *
-     * The basic metadata of the long running operation.
+     * The basic metadata of the long-running operation.
      * 
* * .google.cloud.documentai.v1beta3.CommonOperationMetadata common_metadata = 5; @@ -1796,7 +1800,7 @@ public Builder clearCommonMetadata() { * * *
-     * The basic metadata of the long running operation.
+     * The basic metadata of the long-running operation.
      * 
* * .google.cloud.documentai.v1beta3.CommonOperationMetadata common_metadata = 5; @@ -1815,7 +1819,7 @@ public Builder clearCommonMetadata() { * * *
-     * The basic metadata of the long running operation.
+     * The basic metadata of the long-running operation.
      * 
* * .google.cloud.documentai.v1beta3.CommonOperationMetadata common_metadata = 5; diff --git a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/ReviewDocumentOperationMetadataOrBuilder.java b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/ReviewDocumentOperationMetadataOrBuilder.java index c4330df66a05..bfa612870b22 100644 --- a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/ReviewDocumentOperationMetadataOrBuilder.java +++ b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/ReviewDocumentOperationMetadataOrBuilder.java @@ -149,7 +149,7 @@ public interface ReviewDocumentOperationMetadataOrBuilder * * *
-   * The basic metadata of the long running operation.
+   * The basic metadata of the long-running operation.
    * 
* * .google.cloud.documentai.v1beta3.CommonOperationMetadata common_metadata = 5; @@ -161,7 +161,7 @@ public interface ReviewDocumentOperationMetadataOrBuilder * * *
-   * The basic metadata of the long running operation.
+   * The basic metadata of the long-running operation.
    * 
* * .google.cloud.documentai.v1beta3.CommonOperationMetadata common_metadata = 5; @@ -173,7 +173,7 @@ public interface ReviewDocumentOperationMetadataOrBuilder * * *
-   * The basic metadata of the long running operation.
+   * The basic metadata of the long-running operation.
    * 
* * .google.cloud.documentai.v1beta3.CommonOperationMetadata common_metadata = 5; diff --git a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/ReviewDocumentRequest.java b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/ReviewDocumentRequest.java index 92a381ed4334..8916c6d84d30 100644 --- a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/ReviewDocumentRequest.java +++ b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/ReviewDocumentRequest.java @@ -22,7 +22,9 @@ * * *
- * Request message for review document method.
+ * Request message for the
+ * [ReviewDocument][google.cloud.documentai.v1beta3.DocumentProcessorService.ReviewDocument]
+ * method.
  * 
* * Protobuf type {@code google.cloud.documentai.v1beta3.ReviewDocumentRequest} @@ -307,8 +309,9 @@ public com.google.cloud.documentai.v1beta3.DocumentOrBuilder getInlineDocumentOr * * *
-   * Required. The resource name of the HumanReviewConfig that the document will
-   * be reviewed with.
+   * Required. The resource name of the
+   * [HumanReviewConfig][google.cloud.documentai.v1beta3.HumanReviewConfig] that
+   * the document will be reviewed with.
    * 
* * @@ -333,8 +336,9 @@ public java.lang.String getHumanReviewConfig() { * * *
-   * Required. The resource name of the HumanReviewConfig that the document will
-   * be reviewed with.
+   * Required. The resource name of the
+   * [HumanReviewConfig][google.cloud.documentai.v1beta3.HumanReviewConfig] that
+   * the document will be reviewed with.
    * 
* * @@ -368,7 +372,7 @@ public com.google.protobuf.ByteString getHumanReviewConfigBytes() { * .google.cloud.documentai.v1beta3.Document document = 2 [deprecated = true]; * * @deprecated google.cloud.documentai.v1beta3.ReviewDocumentRequest.document is deprecated. See - * google/cloud/documentai/v1beta3/document_processor_service.proto;l=981 + * google/cloud/documentai/v1beta3/document_processor_service.proto;l=1096 * @return Whether the document field is set. */ @java.lang.Override @@ -386,7 +390,7 @@ public boolean hasDocument() { * .google.cloud.documentai.v1beta3.Document document = 2 [deprecated = true]; * * @deprecated google.cloud.documentai.v1beta3.ReviewDocumentRequest.document is deprecated. See - * google/cloud/documentai/v1beta3/document_processor_service.proto;l=981 + * google/cloud/documentai/v1beta3/document_processor_service.proto;l=1096 * @return The document. */ @java.lang.Override @@ -754,7 +758,9 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * Request message for review document method.
+   * Request message for the
+   * [ReviewDocument][google.cloud.documentai.v1beta3.DocumentProcessorService.ReviewDocument]
+   * method.
    * 
* * Protobuf type {@code google.cloud.documentai.v1beta3.ReviewDocumentRequest} @@ -1254,8 +1260,9 @@ public com.google.cloud.documentai.v1beta3.DocumentOrBuilder getInlineDocumentOr * * *
-     * Required. The resource name of the HumanReviewConfig that the document will
-     * be reviewed with.
+     * Required. The resource name of the
+     * [HumanReviewConfig][google.cloud.documentai.v1beta3.HumanReviewConfig] that
+     * the document will be reviewed with.
      * 
* * @@ -1279,8 +1286,9 @@ public java.lang.String getHumanReviewConfig() { * * *
-     * Required. The resource name of the HumanReviewConfig that the document will
-     * be reviewed with.
+     * Required. The resource name of the
+     * [HumanReviewConfig][google.cloud.documentai.v1beta3.HumanReviewConfig] that
+     * the document will be reviewed with.
      * 
* * @@ -1304,8 +1312,9 @@ public com.google.protobuf.ByteString getHumanReviewConfigBytes() { * * *
-     * Required. The resource name of the HumanReviewConfig that the document will
-     * be reviewed with.
+     * Required. The resource name of the
+     * [HumanReviewConfig][google.cloud.documentai.v1beta3.HumanReviewConfig] that
+     * the document will be reviewed with.
      * 
* * @@ -1328,8 +1337,9 @@ public Builder setHumanReviewConfig(java.lang.String value) { * * *
-     * Required. The resource name of the HumanReviewConfig that the document will
-     * be reviewed with.
+     * Required. The resource name of the
+     * [HumanReviewConfig][google.cloud.documentai.v1beta3.HumanReviewConfig] that
+     * the document will be reviewed with.
      * 
* * @@ -1348,8 +1358,9 @@ public Builder clearHumanReviewConfig() { * * *
-     * Required. The resource name of the HumanReviewConfig that the document will
-     * be reviewed with.
+     * Required. The resource name of the
+     * [HumanReviewConfig][google.cloud.documentai.v1beta3.HumanReviewConfig] that
+     * the document will be reviewed with.
      * 
* * @@ -1386,7 +1397,7 @@ public Builder setHumanReviewConfigBytes(com.google.protobuf.ByteString value) { * .google.cloud.documentai.v1beta3.Document document = 2 [deprecated = true]; * * @deprecated google.cloud.documentai.v1beta3.ReviewDocumentRequest.document is deprecated. See - * google/cloud/documentai/v1beta3/document_processor_service.proto;l=981 + * google/cloud/documentai/v1beta3/document_processor_service.proto;l=1096 * @return Whether the document field is set. */ @java.lang.Deprecated @@ -1403,7 +1414,7 @@ public boolean hasDocument() { * .google.cloud.documentai.v1beta3.Document document = 2 [deprecated = true]; * * @deprecated google.cloud.documentai.v1beta3.ReviewDocumentRequest.document is deprecated. See - * google/cloud/documentai/v1beta3/document_processor_service.proto;l=981 + * google/cloud/documentai/v1beta3/document_processor_service.proto;l=1096 * @return The document. */ @java.lang.Deprecated diff --git a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/ReviewDocumentRequestOrBuilder.java b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/ReviewDocumentRequestOrBuilder.java index b0ef8b5926aa..b095ec4c0a53 100644 --- a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/ReviewDocumentRequestOrBuilder.java +++ b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/ReviewDocumentRequestOrBuilder.java @@ -62,8 +62,9 @@ public interface ReviewDocumentRequestOrBuilder * * *
-   * Required. The resource name of the HumanReviewConfig that the document will
-   * be reviewed with.
+   * Required. The resource name of the
+   * [HumanReviewConfig][google.cloud.documentai.v1beta3.HumanReviewConfig] that
+   * the document will be reviewed with.
    * 
* * @@ -77,8 +78,9 @@ public interface ReviewDocumentRequestOrBuilder * * *
-   * Required. The resource name of the HumanReviewConfig that the document will
-   * be reviewed with.
+   * Required. The resource name of the
+   * [HumanReviewConfig][google.cloud.documentai.v1beta3.HumanReviewConfig] that
+   * the document will be reviewed with.
    * 
* * @@ -99,7 +101,7 @@ public interface ReviewDocumentRequestOrBuilder * .google.cloud.documentai.v1beta3.Document document = 2 [deprecated = true]; * * @deprecated google.cloud.documentai.v1beta3.ReviewDocumentRequest.document is deprecated. See - * google/cloud/documentai/v1beta3/document_processor_service.proto;l=981 + * google/cloud/documentai/v1beta3/document_processor_service.proto;l=1096 * @return Whether the document field is set. */ @java.lang.Deprecated @@ -114,7 +116,7 @@ public interface ReviewDocumentRequestOrBuilder * .google.cloud.documentai.v1beta3.Document document = 2 [deprecated = true]; * * @deprecated google.cloud.documentai.v1beta3.ReviewDocumentRequest.document is deprecated. See - * google/cloud/documentai/v1beta3/document_processor_service.proto;l=981 + * google/cloud/documentai/v1beta3/document_processor_service.proto;l=1096 * @return The document. */ @java.lang.Deprecated diff --git a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/ReviewDocumentResponse.java b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/ReviewDocumentResponse.java index 967c7a02affc..ad247c84c12f 100644 --- a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/ReviewDocumentResponse.java +++ b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/ReviewDocumentResponse.java @@ -22,7 +22,9 @@ * * *
- * Response message for review document method.
+ * Response message for the
+ * [ReviewDocument][google.cloud.documentai.v1beta3.DocumentProcessorService.ReviewDocument]
+ * method.
  * 
* * Protobuf type {@code google.cloud.documentai.v1beta3.ReviewDocumentResponse} @@ -550,7 +552,9 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * Response message for review document method.
+   * Response message for the
+   * [ReviewDocument][google.cloud.documentai.v1beta3.DocumentProcessorService.ReviewDocument]
+   * method.
    * 
* * Protobuf type {@code google.cloud.documentai.v1beta3.ReviewDocumentResponse} diff --git a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/SetDefaultProcessorVersionMetadata.java b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/SetDefaultProcessorVersionMetadata.java index 3a56d13ceaac..bc44fe0aba8d 100644 --- a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/SetDefaultProcessorVersionMetadata.java +++ b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/SetDefaultProcessorVersionMetadata.java @@ -22,7 +22,8 @@ * * *
- * The long running operation metadata for set default processor version
+ * The long-running operation metadata for the
+ * [SetDefaultProcessorVersion][google.cloud.documentai.v1beta3.DocumentProcessorService.SetDefaultProcessorVersion]
  * method.
  * 
* @@ -68,7 +69,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * The basic metadata of the long running operation.
+   * The basic metadata of the long-running operation.
    * 
* * .google.cloud.documentai.v1beta3.CommonOperationMetadata common_metadata = 1; @@ -83,7 +84,7 @@ public boolean hasCommonMetadata() { * * *
-   * The basic metadata of the long running operation.
+   * The basic metadata of the long-running operation.
    * 
* * .google.cloud.documentai.v1beta3.CommonOperationMetadata common_metadata = 1; @@ -100,7 +101,7 @@ public com.google.cloud.documentai.v1beta3.CommonOperationMetadata getCommonMeta * * *
-   * The basic metadata of the long running operation.
+   * The basic metadata of the long-running operation.
    * 
* * .google.cloud.documentai.v1beta3.CommonOperationMetadata common_metadata = 1; @@ -283,7 +284,8 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * The long running operation metadata for set default processor version
+   * The long-running operation metadata for the
+   * [SetDefaultProcessorVersion][google.cloud.documentai.v1beta3.DocumentProcessorService.SetDefaultProcessorVersion]
    * method.
    * 
* @@ -484,7 +486,7 @@ public Builder mergeFrom( * * *
-     * The basic metadata of the long running operation.
+     * The basic metadata of the long-running operation.
      * 
* * .google.cloud.documentai.v1beta3.CommonOperationMetadata common_metadata = 1; @@ -498,7 +500,7 @@ public boolean hasCommonMetadata() { * * *
-     * The basic metadata of the long running operation.
+     * The basic metadata of the long-running operation.
      * 
* * .google.cloud.documentai.v1beta3.CommonOperationMetadata common_metadata = 1; @@ -518,7 +520,7 @@ public com.google.cloud.documentai.v1beta3.CommonOperationMetadata getCommonMeta * * *
-     * The basic metadata of the long running operation.
+     * The basic metadata of the long-running operation.
      * 
* * .google.cloud.documentai.v1beta3.CommonOperationMetadata common_metadata = 1; @@ -541,7 +543,7 @@ public Builder setCommonMetadata( * * *
-     * The basic metadata of the long running operation.
+     * The basic metadata of the long-running operation.
      * 
* * .google.cloud.documentai.v1beta3.CommonOperationMetadata common_metadata = 1; @@ -561,7 +563,7 @@ public Builder setCommonMetadata( * * *
-     * The basic metadata of the long running operation.
+     * The basic metadata of the long-running operation.
      * 
* * .google.cloud.documentai.v1beta3.CommonOperationMetadata common_metadata = 1; @@ -589,7 +591,7 @@ public Builder mergeCommonMetadata( * * *
-     * The basic metadata of the long running operation.
+     * The basic metadata of the long-running operation.
      * 
* * .google.cloud.documentai.v1beta3.CommonOperationMetadata common_metadata = 1; @@ -608,7 +610,7 @@ public Builder clearCommonMetadata() { * * *
-     * The basic metadata of the long running operation.
+     * The basic metadata of the long-running operation.
      * 
* * .google.cloud.documentai.v1beta3.CommonOperationMetadata common_metadata = 1; @@ -623,7 +625,7 @@ public Builder clearCommonMetadata() { * * *
-     * The basic metadata of the long running operation.
+     * The basic metadata of the long-running operation.
      * 
* * .google.cloud.documentai.v1beta3.CommonOperationMetadata common_metadata = 1; @@ -642,7 +644,7 @@ public Builder clearCommonMetadata() { * * *
-     * The basic metadata of the long running operation.
+     * The basic metadata of the long-running operation.
      * 
* * .google.cloud.documentai.v1beta3.CommonOperationMetadata common_metadata = 1; diff --git a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/SetDefaultProcessorVersionMetadataOrBuilder.java b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/SetDefaultProcessorVersionMetadataOrBuilder.java index 1b001dfc1ab4..adaba6d9298c 100644 --- a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/SetDefaultProcessorVersionMetadataOrBuilder.java +++ b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/SetDefaultProcessorVersionMetadataOrBuilder.java @@ -27,7 +27,7 @@ public interface SetDefaultProcessorVersionMetadataOrBuilder * * *
-   * The basic metadata of the long running operation.
+   * The basic metadata of the long-running operation.
    * 
* * .google.cloud.documentai.v1beta3.CommonOperationMetadata common_metadata = 1; @@ -39,7 +39,7 @@ public interface SetDefaultProcessorVersionMetadataOrBuilder * * *
-   * The basic metadata of the long running operation.
+   * The basic metadata of the long-running operation.
    * 
* * .google.cloud.documentai.v1beta3.CommonOperationMetadata common_metadata = 1; @@ -51,7 +51,7 @@ public interface SetDefaultProcessorVersionMetadataOrBuilder * * *
-   * The basic metadata of the long running operation.
+   * The basic metadata of the long-running operation.
    * 
* * .google.cloud.documentai.v1beta3.CommonOperationMetadata common_metadata = 1; diff --git a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/SetDefaultProcessorVersionRequest.java b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/SetDefaultProcessorVersionRequest.java index fdcafb2b1f7a..22e200da6a1e 100644 --- a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/SetDefaultProcessorVersionRequest.java +++ b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/SetDefaultProcessorVersionRequest.java @@ -22,7 +22,9 @@ * * *
- * Request message for the set default processor version method.
+ * Request message for the
+ * [SetDefaultProcessorVersion][google.cloud.documentai.v1beta3.DocumentProcessorService.SetDefaultProcessorVersion]
+ * method.
  * 
* * Protobuf type {@code google.cloud.documentai.v1beta3.SetDefaultProcessorVersionRequest} @@ -358,7 +360,9 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * Request message for the set default processor version method.
+   * Request message for the
+   * [SetDefaultProcessorVersion][google.cloud.documentai.v1beta3.DocumentProcessorService.SetDefaultProcessorVersion]
+   * method.
    * 
* * Protobuf type {@code google.cloud.documentai.v1beta3.SetDefaultProcessorVersionRequest} diff --git a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/SetDefaultProcessorVersionResponse.java b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/SetDefaultProcessorVersionResponse.java index b5b345850eed..35c990e1c123 100644 --- a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/SetDefaultProcessorVersionResponse.java +++ b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/SetDefaultProcessorVersionResponse.java @@ -22,7 +22,9 @@ * * *
- * Response message for set default processor version method.
+ * Response message for the
+ * [SetDefaultProcessorVersion][google.cloud.documentai.v1beta3.DocumentProcessorService.SetDefaultProcessorVersion]
+ * method.
  * 
* * Protobuf type {@code google.cloud.documentai.v1beta3.SetDefaultProcessorVersionResponse} @@ -217,7 +219,9 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * Response message for set default processor version method.
+   * Response message for the
+   * [SetDefaultProcessorVersion][google.cloud.documentai.v1beta3.DocumentProcessorService.SetDefaultProcessorVersion]
+   * method.
    * 
* * Protobuf type {@code google.cloud.documentai.v1beta3.SetDefaultProcessorVersionResponse} diff --git a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/TrainProcessorVersionMetadata.java b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/TrainProcessorVersionMetadata.java index ec7406a4f138..529899bc57e9 100644 --- a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/TrainProcessorVersionMetadata.java +++ b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/TrainProcessorVersionMetadata.java @@ -1951,7 +1951,7 @@ public com.google.protobuf.Parser getParserForType() { * * *
-   * The basic metadata of the long running operation.
+   * The basic metadata of the long-running operation.
    * 
* * .google.cloud.documentai.v1beta3.CommonOperationMetadata common_metadata = 1; @@ -1966,7 +1966,7 @@ public boolean hasCommonMetadata() { * * *
-   * The basic metadata of the long running operation.
+   * The basic metadata of the long-running operation.
    * 
* * .google.cloud.documentai.v1beta3.CommonOperationMetadata common_metadata = 1; @@ -1983,7 +1983,7 @@ public com.google.cloud.documentai.v1beta3.CommonOperationMetadata getCommonMeta * * *
-   * The basic metadata of the long running operation.
+   * The basic metadata of the long-running operation.
    * 
* * .google.cloud.documentai.v1beta3.CommonOperationMetadata common_metadata = 1; @@ -2561,7 +2561,7 @@ public Builder mergeFrom( * * *
-     * The basic metadata of the long running operation.
+     * The basic metadata of the long-running operation.
      * 
* * .google.cloud.documentai.v1beta3.CommonOperationMetadata common_metadata = 1; @@ -2575,7 +2575,7 @@ public boolean hasCommonMetadata() { * * *
-     * The basic metadata of the long running operation.
+     * The basic metadata of the long-running operation.
      * 
* * .google.cloud.documentai.v1beta3.CommonOperationMetadata common_metadata = 1; @@ -2595,7 +2595,7 @@ public com.google.cloud.documentai.v1beta3.CommonOperationMetadata getCommonMeta * * *
-     * The basic metadata of the long running operation.
+     * The basic metadata of the long-running operation.
      * 
* * .google.cloud.documentai.v1beta3.CommonOperationMetadata common_metadata = 1; @@ -2618,7 +2618,7 @@ public Builder setCommonMetadata( * * *
-     * The basic metadata of the long running operation.
+     * The basic metadata of the long-running operation.
      * 
* * .google.cloud.documentai.v1beta3.CommonOperationMetadata common_metadata = 1; @@ -2638,7 +2638,7 @@ public Builder setCommonMetadata( * * *
-     * The basic metadata of the long running operation.
+     * The basic metadata of the long-running operation.
      * 
* * .google.cloud.documentai.v1beta3.CommonOperationMetadata common_metadata = 1; @@ -2666,7 +2666,7 @@ public Builder mergeCommonMetadata( * * *
-     * The basic metadata of the long running operation.
+     * The basic metadata of the long-running operation.
      * 
* * .google.cloud.documentai.v1beta3.CommonOperationMetadata common_metadata = 1; @@ -2685,7 +2685,7 @@ public Builder clearCommonMetadata() { * * *
-     * The basic metadata of the long running operation.
+     * The basic metadata of the long-running operation.
      * 
* * .google.cloud.documentai.v1beta3.CommonOperationMetadata common_metadata = 1; @@ -2700,7 +2700,7 @@ public Builder clearCommonMetadata() { * * *
-     * The basic metadata of the long running operation.
+     * The basic metadata of the long-running operation.
      * 
* * .google.cloud.documentai.v1beta3.CommonOperationMetadata common_metadata = 1; @@ -2719,7 +2719,7 @@ public Builder clearCommonMetadata() { * * *
-     * The basic metadata of the long running operation.
+     * The basic metadata of the long-running operation.
      * 
* * .google.cloud.documentai.v1beta3.CommonOperationMetadata common_metadata = 1; diff --git a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/TrainProcessorVersionMetadataOrBuilder.java b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/TrainProcessorVersionMetadataOrBuilder.java index 2cfd382920bd..126f3362cf57 100644 --- a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/TrainProcessorVersionMetadataOrBuilder.java +++ b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/TrainProcessorVersionMetadataOrBuilder.java @@ -27,7 +27,7 @@ public interface TrainProcessorVersionMetadataOrBuilder * * *
-   * The basic metadata of the long running operation.
+   * The basic metadata of the long-running operation.
    * 
* * .google.cloud.documentai.v1beta3.CommonOperationMetadata common_metadata = 1; @@ -39,7 +39,7 @@ public interface TrainProcessorVersionMetadataOrBuilder * * *
-   * The basic metadata of the long running operation.
+   * The basic metadata of the long-running operation.
    * 
* * .google.cloud.documentai.v1beta3.CommonOperationMetadata common_metadata = 1; @@ -51,7 +51,7 @@ public interface TrainProcessorVersionMetadataOrBuilder * * *
-   * The basic metadata of the long running operation.
+   * The basic metadata of the long-running operation.
    * 
* * .google.cloud.documentai.v1beta3.CommonOperationMetadata common_metadata = 1; diff --git a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/TrainProcessorVersionRequest.java b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/TrainProcessorVersionRequest.java index 45de2d72ab44..48e48ed9990a 100644 --- a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/TrainProcessorVersionRequest.java +++ b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/TrainProcessorVersionRequest.java @@ -22,7 +22,9 @@ * * *
- * Request message for the create processor version method.
+ * Request message for the
+ * [TrainProcessorVersion][google.cloud.documentai.v1beta3.DocumentProcessorService.TrainProcessorVersion]
+ * method.
  * 
* * Protobuf type {@code google.cloud.documentai.v1beta3.TrainProcessorVersionRequest} @@ -147,7 +149,8 @@ public interface InputDataOrBuilder * * *
-   * The input data used to train a new `ProcessorVersion`.
+   * The input data used to train a new
+   * [ProcessorVersion][google.cloud.documentai.v1beta3.ProcessorVersion].
    * 
* * Protobuf type {@code google.cloud.documentai.v1beta3.TrainProcessorVersionRequest.InputData} @@ -482,7 +485,8 @@ protected Builder newBuilderForType( * * *
-     * The input data used to train a new `ProcessorVersion`.
+     * The input data used to train a new
+     * [ProcessorVersion][google.cloud.documentai.v1beta3.ProcessorVersion].
      * 
* * Protobuf type {@code google.cloud.documentai.v1beta3.TrainProcessorVersionRequest.InputData} @@ -1156,6 +1160,960 @@ public com.google.protobuf.Parser getParserForType() { } } + public interface CustomDocumentExtractionOptionsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.documentai.v1beta3.TrainProcessorVersionRequest.CustomDocumentExtractionOptions) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * Training method to use for CDE training.
+     * 
+ * + * + * .google.cloud.documentai.v1beta3.TrainProcessorVersionRequest.CustomDocumentExtractionOptions.TrainingMethod training_method = 3; + * + * + * @return The enum numeric value on the wire for trainingMethod. + */ + int getTrainingMethodValue(); + /** + * + * + *
+     * Training method to use for CDE training.
+     * 
+ * + * + * .google.cloud.documentai.v1beta3.TrainProcessorVersionRequest.CustomDocumentExtractionOptions.TrainingMethod training_method = 3; + * + * + * @return The trainingMethod. + */ + com.google.cloud.documentai.v1beta3.TrainProcessorVersionRequest.CustomDocumentExtractionOptions + .TrainingMethod + getTrainingMethod(); + } + /** + * + * + *
+   * Options to control the training of the Custom Document Extraction (CDE)
+   * Processor.
+   * 
+ * + * Protobuf type {@code + * google.cloud.documentai.v1beta3.TrainProcessorVersionRequest.CustomDocumentExtractionOptions} + */ + public static final class CustomDocumentExtractionOptions + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.documentai.v1beta3.TrainProcessorVersionRequest.CustomDocumentExtractionOptions) + CustomDocumentExtractionOptionsOrBuilder { + private static final long serialVersionUID = 0L; + // Use CustomDocumentExtractionOptions.newBuilder() to construct. + private CustomDocumentExtractionOptions( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CustomDocumentExtractionOptions() { + trainingMethod_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CustomDocumentExtractionOptions(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.documentai.v1beta3.DocumentAiProcessorService + .internal_static_google_cloud_documentai_v1beta3_TrainProcessorVersionRequest_CustomDocumentExtractionOptions_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.documentai.v1beta3.DocumentAiProcessorService + .internal_static_google_cloud_documentai_v1beta3_TrainProcessorVersionRequest_CustomDocumentExtractionOptions_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.documentai.v1beta3.TrainProcessorVersionRequest + .CustomDocumentExtractionOptions.class, + com.google.cloud.documentai.v1beta3.TrainProcessorVersionRequest + .CustomDocumentExtractionOptions.Builder.class); + } + + /** + * + * + *
+     * Training Method for CDE. TRAINING_METHOD_UNSPECIFIED will fallback to
+     * MODEL_BASED.
+     * 
+ * + * Protobuf enum {@code + * google.cloud.documentai.v1beta3.TrainProcessorVersionRequest.CustomDocumentExtractionOptions.TrainingMethod} + */ + public enum TrainingMethod implements com.google.protobuf.ProtocolMessageEnum { + /** TRAINING_METHOD_UNSPECIFIED = 0; */ + TRAINING_METHOD_UNSPECIFIED(0), + /** MODEL_BASED = 1; */ + MODEL_BASED(1), + /** TEMPLATE_BASED = 2; */ + TEMPLATE_BASED(2), + UNRECOGNIZED(-1), + ; + + /** TRAINING_METHOD_UNSPECIFIED = 0; */ + public static final int TRAINING_METHOD_UNSPECIFIED_VALUE = 0; + /** MODEL_BASED = 1; */ + public static final int MODEL_BASED_VALUE = 1; + /** TEMPLATE_BASED = 2; */ + public static final int TEMPLATE_BASED_VALUE = 2; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static TrainingMethod valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static TrainingMethod forNumber(int value) { + switch (value) { + case 0: + return TRAINING_METHOD_UNSPECIFIED; + case 1: + return MODEL_BASED; + case 2: + return TEMPLATE_BASED; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap + internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public TrainingMethod findValueByNumber(int number) { + return TrainingMethod.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.documentai.v1beta3.TrainProcessorVersionRequest + .CustomDocumentExtractionOptions.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final TrainingMethod[] VALUES = values(); + + public static TrainingMethod valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private TrainingMethod(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.documentai.v1beta3.TrainProcessorVersionRequest.CustomDocumentExtractionOptions.TrainingMethod) + } + + public static final int TRAINING_METHOD_FIELD_NUMBER = 3; + private int trainingMethod_ = 0; + /** + * + * + *
+     * Training method to use for CDE training.
+     * 
+ * + * + * .google.cloud.documentai.v1beta3.TrainProcessorVersionRequest.CustomDocumentExtractionOptions.TrainingMethod training_method = 3; + * + * + * @return The enum numeric value on the wire for trainingMethod. + */ + @java.lang.Override + public int getTrainingMethodValue() { + return trainingMethod_; + } + /** + * + * + *
+     * Training method to use for CDE training.
+     * 
+ * + * + * .google.cloud.documentai.v1beta3.TrainProcessorVersionRequest.CustomDocumentExtractionOptions.TrainingMethod training_method = 3; + * + * + * @return The trainingMethod. + */ + @java.lang.Override + public com.google.cloud.documentai.v1beta3.TrainProcessorVersionRequest + .CustomDocumentExtractionOptions.TrainingMethod + getTrainingMethod() { + com.google.cloud.documentai.v1beta3.TrainProcessorVersionRequest + .CustomDocumentExtractionOptions.TrainingMethod + result = + com.google.cloud.documentai.v1beta3.TrainProcessorVersionRequest + .CustomDocumentExtractionOptions.TrainingMethod.forNumber(trainingMethod_); + return result == null + ? com.google.cloud.documentai.v1beta3.TrainProcessorVersionRequest + .CustomDocumentExtractionOptions.TrainingMethod.UNRECOGNIZED + : result; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (trainingMethod_ + != com.google.cloud.documentai.v1beta3.TrainProcessorVersionRequest + .CustomDocumentExtractionOptions.TrainingMethod.TRAINING_METHOD_UNSPECIFIED + .getNumber()) { + output.writeEnum(3, trainingMethod_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (trainingMethod_ + != com.google.cloud.documentai.v1beta3.TrainProcessorVersionRequest + .CustomDocumentExtractionOptions.TrainingMethod.TRAINING_METHOD_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, trainingMethod_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof + com.google.cloud.documentai.v1beta3.TrainProcessorVersionRequest + .CustomDocumentExtractionOptions)) { + return super.equals(obj); + } + com.google.cloud.documentai.v1beta3.TrainProcessorVersionRequest + .CustomDocumentExtractionOptions + other = + (com.google.cloud.documentai.v1beta3.TrainProcessorVersionRequest + .CustomDocumentExtractionOptions) + obj; + + if (trainingMethod_ != other.trainingMethod_) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + TRAINING_METHOD_FIELD_NUMBER; + hash = (53 * hash) + trainingMethod_; + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.documentai.v1beta3.TrainProcessorVersionRequest + .CustomDocumentExtractionOptions + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.documentai.v1beta3.TrainProcessorVersionRequest + .CustomDocumentExtractionOptions + 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.v1beta3.TrainProcessorVersionRequest + .CustomDocumentExtractionOptions + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.documentai.v1beta3.TrainProcessorVersionRequest + .CustomDocumentExtractionOptions + parseFrom( + com.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.v1beta3.TrainProcessorVersionRequest + .CustomDocumentExtractionOptions + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.documentai.v1beta3.TrainProcessorVersionRequest + .CustomDocumentExtractionOptions + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.documentai.v1beta3.TrainProcessorVersionRequest + .CustomDocumentExtractionOptions + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.documentai.v1beta3.TrainProcessorVersionRequest + .CustomDocumentExtractionOptions + 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.v1beta3.TrainProcessorVersionRequest + .CustomDocumentExtractionOptions + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.documentai.v1beta3.TrainProcessorVersionRequest + .CustomDocumentExtractionOptions + 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.v1beta3.TrainProcessorVersionRequest + .CustomDocumentExtractionOptions + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.documentai.v1beta3.TrainProcessorVersionRequest + .CustomDocumentExtractionOptions + 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 static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.documentai.v1beta3.TrainProcessorVersionRequest + .CustomDocumentExtractionOptions + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+     * Options to control the training of the Custom Document Extraction (CDE)
+     * Processor.
+     * 
+ * + * Protobuf type {@code + * google.cloud.documentai.v1beta3.TrainProcessorVersionRequest.CustomDocumentExtractionOptions} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.documentai.v1beta3.TrainProcessorVersionRequest.CustomDocumentExtractionOptions) + com.google.cloud.documentai.v1beta3.TrainProcessorVersionRequest + .CustomDocumentExtractionOptionsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.documentai.v1beta3.DocumentAiProcessorService + .internal_static_google_cloud_documentai_v1beta3_TrainProcessorVersionRequest_CustomDocumentExtractionOptions_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.documentai.v1beta3.DocumentAiProcessorService + .internal_static_google_cloud_documentai_v1beta3_TrainProcessorVersionRequest_CustomDocumentExtractionOptions_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.documentai.v1beta3.TrainProcessorVersionRequest + .CustomDocumentExtractionOptions.class, + com.google.cloud.documentai.v1beta3.TrainProcessorVersionRequest + .CustomDocumentExtractionOptions.Builder.class); + } + + // Construct using + // com.google.cloud.documentai.v1beta3.TrainProcessorVersionRequest.CustomDocumentExtractionOptions.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + trainingMethod_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.documentai.v1beta3.DocumentAiProcessorService + .internal_static_google_cloud_documentai_v1beta3_TrainProcessorVersionRequest_CustomDocumentExtractionOptions_descriptor; + } + + @java.lang.Override + public com.google.cloud.documentai.v1beta3.TrainProcessorVersionRequest + .CustomDocumentExtractionOptions + getDefaultInstanceForType() { + return com.google.cloud.documentai.v1beta3.TrainProcessorVersionRequest + .CustomDocumentExtractionOptions.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.documentai.v1beta3.TrainProcessorVersionRequest + .CustomDocumentExtractionOptions + build() { + com.google.cloud.documentai.v1beta3.TrainProcessorVersionRequest + .CustomDocumentExtractionOptions + result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.documentai.v1beta3.TrainProcessorVersionRequest + .CustomDocumentExtractionOptions + buildPartial() { + com.google.cloud.documentai.v1beta3.TrainProcessorVersionRequest + .CustomDocumentExtractionOptions + result = + new com.google.cloud.documentai.v1beta3.TrainProcessorVersionRequest + .CustomDocumentExtractionOptions(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.documentai.v1beta3.TrainProcessorVersionRequest + .CustomDocumentExtractionOptions + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.trainingMethod_ = trainingMethod_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.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.v1beta3.TrainProcessorVersionRequest + .CustomDocumentExtractionOptions) { + return mergeFrom( + (com.google.cloud.documentai.v1beta3.TrainProcessorVersionRequest + .CustomDocumentExtractionOptions) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.documentai.v1beta3.TrainProcessorVersionRequest + .CustomDocumentExtractionOptions + other) { + if (other + == com.google.cloud.documentai.v1beta3.TrainProcessorVersionRequest + .CustomDocumentExtractionOptions.getDefaultInstance()) return this; + if (other.trainingMethod_ != 0) { + setTrainingMethodValue(other.getTrainingMethodValue()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 24: + { + trainingMethod_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 24 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private int trainingMethod_ = 0; + /** + * + * + *
+       * Training method to use for CDE training.
+       * 
+ * + * + * .google.cloud.documentai.v1beta3.TrainProcessorVersionRequest.CustomDocumentExtractionOptions.TrainingMethod training_method = 3; + * + * + * @return The enum numeric value on the wire for trainingMethod. + */ + @java.lang.Override + public int getTrainingMethodValue() { + return trainingMethod_; + } + /** + * + * + *
+       * Training method to use for CDE training.
+       * 
+ * + * + * .google.cloud.documentai.v1beta3.TrainProcessorVersionRequest.CustomDocumentExtractionOptions.TrainingMethod training_method = 3; + * + * + * @param value The enum numeric value on the wire for trainingMethod to set. + * @return This builder for chaining. + */ + public Builder setTrainingMethodValue(int value) { + trainingMethod_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+       * Training method to use for CDE training.
+       * 
+ * + * + * .google.cloud.documentai.v1beta3.TrainProcessorVersionRequest.CustomDocumentExtractionOptions.TrainingMethod training_method = 3; + * + * + * @return The trainingMethod. + */ + @java.lang.Override + public com.google.cloud.documentai.v1beta3.TrainProcessorVersionRequest + .CustomDocumentExtractionOptions.TrainingMethod + getTrainingMethod() { + com.google.cloud.documentai.v1beta3.TrainProcessorVersionRequest + .CustomDocumentExtractionOptions.TrainingMethod + result = + com.google.cloud.documentai.v1beta3.TrainProcessorVersionRequest + .CustomDocumentExtractionOptions.TrainingMethod.forNumber(trainingMethod_); + return result == null + ? com.google.cloud.documentai.v1beta3.TrainProcessorVersionRequest + .CustomDocumentExtractionOptions.TrainingMethod.UNRECOGNIZED + : result; + } + /** + * + * + *
+       * Training method to use for CDE training.
+       * 
+ * + * + * .google.cloud.documentai.v1beta3.TrainProcessorVersionRequest.CustomDocumentExtractionOptions.TrainingMethod training_method = 3; + * + * + * @param value The trainingMethod to set. + * @return This builder for chaining. + */ + public Builder setTrainingMethod( + com.google.cloud.documentai.v1beta3.TrainProcessorVersionRequest + .CustomDocumentExtractionOptions.TrainingMethod + value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + trainingMethod_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+       * Training method to use for CDE training.
+       * 
+ * + * + * .google.cloud.documentai.v1beta3.TrainProcessorVersionRequest.CustomDocumentExtractionOptions.TrainingMethod training_method = 3; + * + * + * @return This builder for chaining. + */ + public Builder clearTrainingMethod() { + bitField0_ = (bitField0_ & ~0x00000001); + trainingMethod_ = 0; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.documentai.v1beta3.TrainProcessorVersionRequest.CustomDocumentExtractionOptions) + } + + // @@protoc_insertion_point(class_scope:google.cloud.documentai.v1beta3.TrainProcessorVersionRequest.CustomDocumentExtractionOptions) + private static final com.google.cloud.documentai.v1beta3.TrainProcessorVersionRequest + .CustomDocumentExtractionOptions + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.documentai.v1beta3.TrainProcessorVersionRequest + .CustomDocumentExtractionOptions(); + } + + public static com.google.cloud.documentai.v1beta3.TrainProcessorVersionRequest + .CustomDocumentExtractionOptions + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CustomDocumentExtractionOptions parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.documentai.v1beta3.TrainProcessorVersionRequest + .CustomDocumentExtractionOptions + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int processorFlagsCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object processorFlags_; + + public enum ProcessorFlagsCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + CUSTOM_DOCUMENT_EXTRACTION_OPTIONS(5), + PROCESSORFLAGS_NOT_SET(0); + private final int value; + + private ProcessorFlagsCase(int value) { + this.value = value; + } + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static ProcessorFlagsCase valueOf(int value) { + return forNumber(value); + } + + public static ProcessorFlagsCase forNumber(int value) { + switch (value) { + case 5: + return CUSTOM_DOCUMENT_EXTRACTION_OPTIONS; + case 0: + return PROCESSORFLAGS_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public ProcessorFlagsCase getProcessorFlagsCase() { + return ProcessorFlagsCase.forNumber(processorFlagsCase_); + } + + public static final int CUSTOM_DOCUMENT_EXTRACTION_OPTIONS_FIELD_NUMBER = 5; + /** + * + * + *
+   * Options to control Custom Document Extraction (CDE) Processor.
+   * 
+ * + * + * .google.cloud.documentai.v1beta3.TrainProcessorVersionRequest.CustomDocumentExtractionOptions custom_document_extraction_options = 5; + * + * + * @return Whether the customDocumentExtractionOptions field is set. + */ + @java.lang.Override + public boolean hasCustomDocumentExtractionOptions() { + return processorFlagsCase_ == 5; + } + /** + * + * + *
+   * Options to control Custom Document Extraction (CDE) Processor.
+   * 
+ * + * + * .google.cloud.documentai.v1beta3.TrainProcessorVersionRequest.CustomDocumentExtractionOptions custom_document_extraction_options = 5; + * + * + * @return The customDocumentExtractionOptions. + */ + @java.lang.Override + public com.google.cloud.documentai.v1beta3.TrainProcessorVersionRequest + .CustomDocumentExtractionOptions + getCustomDocumentExtractionOptions() { + if (processorFlagsCase_ == 5) { + return (com.google.cloud.documentai.v1beta3.TrainProcessorVersionRequest + .CustomDocumentExtractionOptions) + processorFlags_; + } + return com.google.cloud.documentai.v1beta3.TrainProcessorVersionRequest + .CustomDocumentExtractionOptions.getDefaultInstance(); + } + /** + * + * + *
+   * Options to control Custom Document Extraction (CDE) Processor.
+   * 
+ * + * + * .google.cloud.documentai.v1beta3.TrainProcessorVersionRequest.CustomDocumentExtractionOptions custom_document_extraction_options = 5; + * + */ + @java.lang.Override + public com.google.cloud.documentai.v1beta3.TrainProcessorVersionRequest + .CustomDocumentExtractionOptionsOrBuilder + getCustomDocumentExtractionOptionsOrBuilder() { + if (processorFlagsCase_ == 5) { + return (com.google.cloud.documentai.v1beta3.TrainProcessorVersionRequest + .CustomDocumentExtractionOptions) + processorFlags_; + } + return com.google.cloud.documentai.v1beta3.TrainProcessorVersionRequest + .CustomDocumentExtractionOptions.getDefaultInstance(); + } + public static final int PARENT_FIELD_NUMBER = 1; @SuppressWarnings("serial") @@ -1334,7 +2292,8 @@ public com.google.cloud.documentai.v1beta3.DocumentSchemaOrBuilder getDocumentSc * * *
-   * Optional. The input data used to train the `ProcessorVersion`.
+   * Optional. The input data used to train the
+   * [ProcessorVersion][google.cloud.documentai.v1beta3.ProcessorVersion].
    * 
* * @@ -1351,7 +2310,8 @@ public boolean hasInputData() { * * *
-   * Optional. The input data used to train the `ProcessorVersion`.
+   * Optional. The input data used to train the
+   * [ProcessorVersion][google.cloud.documentai.v1beta3.ProcessorVersion].
    * 
* * @@ -1371,7 +2331,8 @@ public com.google.cloud.documentai.v1beta3.TrainProcessorVersionRequest.InputDat * * *
-   * Optional. The input data used to train the `ProcessorVersion`.
+   * Optional. The input data used to train the
+   * [ProcessorVersion][google.cloud.documentai.v1beta3.ProcessorVersion].
    * 
* * @@ -1465,6 +2426,13 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (inputData_ != null) { output.writeMessage(4, getInputData()); } + if (processorFlagsCase_ == 5) { + output.writeMessage( + 5, + (com.google.cloud.documentai.v1beta3.TrainProcessorVersionRequest + .CustomDocumentExtractionOptions) + processorFlags_); + } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(baseProcessorVersion_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 8, baseProcessorVersion_); } @@ -1489,6 +2457,14 @@ public int getSerializedSize() { if (inputData_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getInputData()); } + if (processorFlagsCase_ == 5) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 5, + (com.google.cloud.documentai.v1beta3.TrainProcessorVersionRequest + .CustomDocumentExtractionOptions) + processorFlags_); + } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(baseProcessorVersion_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, baseProcessorVersion_); } @@ -1525,6 +2501,15 @@ public boolean equals(final java.lang.Object obj) { if (!getInputData().equals(other.getInputData())) return false; } if (!getBaseProcessorVersion().equals(other.getBaseProcessorVersion())) return false; + if (!getProcessorFlagsCase().equals(other.getProcessorFlagsCase())) return false; + switch (processorFlagsCase_) { + case 5: + if (!getCustomDocumentExtractionOptions() + .equals(other.getCustomDocumentExtractionOptions())) return false; + break; + case 0: + default: + } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1552,6 +2537,14 @@ public int hashCode() { } hash = (37 * hash) + BASE_PROCESSOR_VERSION_FIELD_NUMBER; hash = (53 * hash) + getBaseProcessorVersion().hashCode(); + switch (processorFlagsCase_) { + case 5: + hash = (37 * hash) + CUSTOM_DOCUMENT_EXTRACTION_OPTIONS_FIELD_NUMBER; + hash = (53 * hash) + getCustomDocumentExtractionOptions().hashCode(); + break; + case 0: + default: + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -1657,7 +2650,9 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * Request message for the create processor version method.
+   * Request message for the
+   * [TrainProcessorVersion][google.cloud.documentai.v1beta3.DocumentProcessorService.TrainProcessorVersion]
+   * method.
    * 
* * Protobuf type {@code google.cloud.documentai.v1beta3.TrainProcessorVersionRequest} @@ -1692,6 +2687,9 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { public Builder clear() { super.clear(); bitField0_ = 0; + if (customDocumentExtractionOptionsBuilder_ != null) { + customDocumentExtractionOptionsBuilder_.clear(); + } parent_ = ""; processorVersion_ = null; if (processorVersionBuilder_ != null) { @@ -1709,6 +2707,8 @@ public Builder clear() { inputDataBuilder_ = null; } baseProcessorVersion_ = ""; + processorFlagsCase_ = 0; + processorFlags_ = null; return this; } @@ -1740,6 +2740,7 @@ public com.google.cloud.documentai.v1beta3.TrainProcessorVersionRequest buildPar if (bitField0_ != 0) { buildPartial0(result); } + buildPartialOneofs(result); onBuilt(); return result; } @@ -1747,25 +2748,34 @@ public com.google.cloud.documentai.v1beta3.TrainProcessorVersionRequest buildPar private void buildPartial0( com.google.cloud.documentai.v1beta3.TrainProcessorVersionRequest result) { int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { + if (((from_bitField0_ & 0x00000002) != 0)) { result.parent_ = parent_; } - if (((from_bitField0_ & 0x00000002) != 0)) { + if (((from_bitField0_ & 0x00000004) != 0)) { result.processorVersion_ = processorVersionBuilder_ == null ? processorVersion_ : processorVersionBuilder_.build(); } - if (((from_bitField0_ & 0x00000004) != 0)) { + if (((from_bitField0_ & 0x00000008) != 0)) { result.documentSchema_ = documentSchemaBuilder_ == null ? documentSchema_ : documentSchemaBuilder_.build(); } - if (((from_bitField0_ & 0x00000008) != 0)) { + if (((from_bitField0_ & 0x00000010) != 0)) { result.inputData_ = inputDataBuilder_ == null ? inputData_ : inputDataBuilder_.build(); } - if (((from_bitField0_ & 0x00000010) != 0)) { + if (((from_bitField0_ & 0x00000020) != 0)) { result.baseProcessorVersion_ = baseProcessorVersion_; } } + private void buildPartialOneofs( + com.google.cloud.documentai.v1beta3.TrainProcessorVersionRequest result) { + result.processorFlagsCase_ = processorFlagsCase_; + result.processorFlags_ = this.processorFlags_; + if (processorFlagsCase_ == 5 && customDocumentExtractionOptionsBuilder_ != null) { + result.processorFlags_ = customDocumentExtractionOptionsBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -1816,7 +2826,7 @@ public Builder mergeFrom( return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000002; onChanged(); } if (other.hasProcessorVersion()) { @@ -1830,9 +2840,20 @@ public Builder mergeFrom( } if (!other.getBaseProcessorVersion().isEmpty()) { baseProcessorVersion_ = other.baseProcessorVersion_; - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000020; onChanged(); } + switch (other.getProcessorFlagsCase()) { + case CUSTOM_DOCUMENT_EXTRACTION_OPTIONS: + { + mergeCustomDocumentExtractionOptions(other.getCustomDocumentExtractionOptions()); + break; + } + case PROCESSORFLAGS_NOT_SET: + { + break; + } + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -1862,32 +2883,40 @@ public Builder mergeFrom( case 10: { parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000002; break; } // case 10 case 18: { input.readMessage( getProcessorVersionFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000004; break; } // case 18 case 34: { input.readMessage(getInputDataFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000010; break; } // case 34 + case 42: + { + input.readMessage( + getCustomDocumentExtractionOptionsFieldBuilder().getBuilder(), + extensionRegistry); + processorFlagsCase_ = 5; + break; + } // case 42 case 66: { baseProcessorVersion_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000020; break; } // case 66 case 82: { input.readMessage(getDocumentSchemaFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; break; } // case 82 default: @@ -1907,8 +2936,288 @@ public Builder mergeFrom( return this; } + private int processorFlagsCase_ = 0; + private java.lang.Object processorFlags_; + + public ProcessorFlagsCase getProcessorFlagsCase() { + return ProcessorFlagsCase.forNumber(processorFlagsCase_); + } + + public Builder clearProcessorFlags() { + processorFlagsCase_ = 0; + processorFlags_ = null; + onChanged(); + return this; + } + private int bitField0_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.documentai.v1beta3.TrainProcessorVersionRequest + .CustomDocumentExtractionOptions, + com.google.cloud.documentai.v1beta3.TrainProcessorVersionRequest + .CustomDocumentExtractionOptions.Builder, + com.google.cloud.documentai.v1beta3.TrainProcessorVersionRequest + .CustomDocumentExtractionOptionsOrBuilder> + customDocumentExtractionOptionsBuilder_; + /** + * + * + *
+     * Options to control Custom Document Extraction (CDE) Processor.
+     * 
+ * + * + * .google.cloud.documentai.v1beta3.TrainProcessorVersionRequest.CustomDocumentExtractionOptions custom_document_extraction_options = 5; + * + * + * @return Whether the customDocumentExtractionOptions field is set. + */ + @java.lang.Override + public boolean hasCustomDocumentExtractionOptions() { + return processorFlagsCase_ == 5; + } + /** + * + * + *
+     * Options to control Custom Document Extraction (CDE) Processor.
+     * 
+ * + * + * .google.cloud.documentai.v1beta3.TrainProcessorVersionRequest.CustomDocumentExtractionOptions custom_document_extraction_options = 5; + * + * + * @return The customDocumentExtractionOptions. + */ + @java.lang.Override + public com.google.cloud.documentai.v1beta3.TrainProcessorVersionRequest + .CustomDocumentExtractionOptions + getCustomDocumentExtractionOptions() { + if (customDocumentExtractionOptionsBuilder_ == null) { + if (processorFlagsCase_ == 5) { + return (com.google.cloud.documentai.v1beta3.TrainProcessorVersionRequest + .CustomDocumentExtractionOptions) + processorFlags_; + } + return com.google.cloud.documentai.v1beta3.TrainProcessorVersionRequest + .CustomDocumentExtractionOptions.getDefaultInstance(); + } else { + if (processorFlagsCase_ == 5) { + return customDocumentExtractionOptionsBuilder_.getMessage(); + } + return com.google.cloud.documentai.v1beta3.TrainProcessorVersionRequest + .CustomDocumentExtractionOptions.getDefaultInstance(); + } + } + /** + * + * + *
+     * Options to control Custom Document Extraction (CDE) Processor.
+     * 
+ * + * + * .google.cloud.documentai.v1beta3.TrainProcessorVersionRequest.CustomDocumentExtractionOptions custom_document_extraction_options = 5; + * + */ + public Builder setCustomDocumentExtractionOptions( + com.google.cloud.documentai.v1beta3.TrainProcessorVersionRequest + .CustomDocumentExtractionOptions + value) { + if (customDocumentExtractionOptionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + processorFlags_ = value; + onChanged(); + } else { + customDocumentExtractionOptionsBuilder_.setMessage(value); + } + processorFlagsCase_ = 5; + return this; + } + /** + * + * + *
+     * Options to control Custom Document Extraction (CDE) Processor.
+     * 
+ * + * + * .google.cloud.documentai.v1beta3.TrainProcessorVersionRequest.CustomDocumentExtractionOptions custom_document_extraction_options = 5; + * + */ + public Builder setCustomDocumentExtractionOptions( + com.google.cloud.documentai.v1beta3.TrainProcessorVersionRequest + .CustomDocumentExtractionOptions.Builder + builderForValue) { + if (customDocumentExtractionOptionsBuilder_ == null) { + processorFlags_ = builderForValue.build(); + onChanged(); + } else { + customDocumentExtractionOptionsBuilder_.setMessage(builderForValue.build()); + } + processorFlagsCase_ = 5; + return this; + } + /** + * + * + *
+     * Options to control Custom Document Extraction (CDE) Processor.
+     * 
+ * + * + * .google.cloud.documentai.v1beta3.TrainProcessorVersionRequest.CustomDocumentExtractionOptions custom_document_extraction_options = 5; + * + */ + public Builder mergeCustomDocumentExtractionOptions( + com.google.cloud.documentai.v1beta3.TrainProcessorVersionRequest + .CustomDocumentExtractionOptions + value) { + if (customDocumentExtractionOptionsBuilder_ == null) { + if (processorFlagsCase_ == 5 + && processorFlags_ + != com.google.cloud.documentai.v1beta3.TrainProcessorVersionRequest + .CustomDocumentExtractionOptions.getDefaultInstance()) { + processorFlags_ = + com.google.cloud.documentai.v1beta3.TrainProcessorVersionRequest + .CustomDocumentExtractionOptions.newBuilder( + (com.google.cloud.documentai.v1beta3.TrainProcessorVersionRequest + .CustomDocumentExtractionOptions) + processorFlags_) + .mergeFrom(value) + .buildPartial(); + } else { + processorFlags_ = value; + } + onChanged(); + } else { + if (processorFlagsCase_ == 5) { + customDocumentExtractionOptionsBuilder_.mergeFrom(value); + } else { + customDocumentExtractionOptionsBuilder_.setMessage(value); + } + } + processorFlagsCase_ = 5; + return this; + } + /** + * + * + *
+     * Options to control Custom Document Extraction (CDE) Processor.
+     * 
+ * + * + * .google.cloud.documentai.v1beta3.TrainProcessorVersionRequest.CustomDocumentExtractionOptions custom_document_extraction_options = 5; + * + */ + public Builder clearCustomDocumentExtractionOptions() { + if (customDocumentExtractionOptionsBuilder_ == null) { + if (processorFlagsCase_ == 5) { + processorFlagsCase_ = 0; + processorFlags_ = null; + onChanged(); + } + } else { + if (processorFlagsCase_ == 5) { + processorFlagsCase_ = 0; + processorFlags_ = null; + } + customDocumentExtractionOptionsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Options to control Custom Document Extraction (CDE) Processor.
+     * 
+ * + * + * .google.cloud.documentai.v1beta3.TrainProcessorVersionRequest.CustomDocumentExtractionOptions custom_document_extraction_options = 5; + * + */ + public com.google.cloud.documentai.v1beta3.TrainProcessorVersionRequest + .CustomDocumentExtractionOptions.Builder + getCustomDocumentExtractionOptionsBuilder() { + return getCustomDocumentExtractionOptionsFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Options to control Custom Document Extraction (CDE) Processor.
+     * 
+ * + * + * .google.cloud.documentai.v1beta3.TrainProcessorVersionRequest.CustomDocumentExtractionOptions custom_document_extraction_options = 5; + * + */ + @java.lang.Override + public com.google.cloud.documentai.v1beta3.TrainProcessorVersionRequest + .CustomDocumentExtractionOptionsOrBuilder + getCustomDocumentExtractionOptionsOrBuilder() { + if ((processorFlagsCase_ == 5) && (customDocumentExtractionOptionsBuilder_ != null)) { + return customDocumentExtractionOptionsBuilder_.getMessageOrBuilder(); + } else { + if (processorFlagsCase_ == 5) { + return (com.google.cloud.documentai.v1beta3.TrainProcessorVersionRequest + .CustomDocumentExtractionOptions) + processorFlags_; + } + return com.google.cloud.documentai.v1beta3.TrainProcessorVersionRequest + .CustomDocumentExtractionOptions.getDefaultInstance(); + } + } + /** + * + * + *
+     * Options to control Custom Document Extraction (CDE) Processor.
+     * 
+ * + * + * .google.cloud.documentai.v1beta3.TrainProcessorVersionRequest.CustomDocumentExtractionOptions custom_document_extraction_options = 5; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.documentai.v1beta3.TrainProcessorVersionRequest + .CustomDocumentExtractionOptions, + com.google.cloud.documentai.v1beta3.TrainProcessorVersionRequest + .CustomDocumentExtractionOptions.Builder, + com.google.cloud.documentai.v1beta3.TrainProcessorVersionRequest + .CustomDocumentExtractionOptionsOrBuilder> + getCustomDocumentExtractionOptionsFieldBuilder() { + if (customDocumentExtractionOptionsBuilder_ == null) { + if (!(processorFlagsCase_ == 5)) { + processorFlags_ = + com.google.cloud.documentai.v1beta3.TrainProcessorVersionRequest + .CustomDocumentExtractionOptions.getDefaultInstance(); + } + customDocumentExtractionOptionsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.documentai.v1beta3.TrainProcessorVersionRequest + .CustomDocumentExtractionOptions, + com.google.cloud.documentai.v1beta3.TrainProcessorVersionRequest + .CustomDocumentExtractionOptions.Builder, + com.google.cloud.documentai.v1beta3.TrainProcessorVersionRequest + .CustomDocumentExtractionOptionsOrBuilder>( + (com.google.cloud.documentai.v1beta3.TrainProcessorVersionRequest + .CustomDocumentExtractionOptions) + processorFlags_, + getParentForChildren(), + isClean()); + processorFlags_ = null; + } + processorFlagsCase_ = 5; + onChanged(); + return customDocumentExtractionOptionsBuilder_; + } + private java.lang.Object parent_ = ""; /** * @@ -1983,7 +3292,7 @@ public Builder setParent(java.lang.String value) { throw new NullPointerException(); } parent_ = value; - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -2004,7 +3313,7 @@ public Builder setParent(java.lang.String value) { */ public Builder clearParent() { parent_ = getDefaultInstance().getParent(); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -2030,7 +3339,7 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); parent_ = value; - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -2055,7 +3364,7 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { * @return Whether the processorVersion field is set. */ public boolean hasProcessorVersion() { - return ((bitField0_ & 0x00000002) != 0); + return ((bitField0_ & 0x00000004) != 0); } /** * @@ -2099,7 +3408,7 @@ public Builder setProcessorVersion(com.google.cloud.documentai.v1beta3.Processor } else { processorVersionBuilder_.setMessage(value); } - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -2121,7 +3430,7 @@ public Builder setProcessorVersion( } else { processorVersionBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -2139,7 +3448,7 @@ public Builder setProcessorVersion( public Builder mergeProcessorVersion( com.google.cloud.documentai.v1beta3.ProcessorVersion value) { if (processorVersionBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) + if (((bitField0_ & 0x00000004) != 0) && processorVersion_ != null && processorVersion_ != com.google.cloud.documentai.v1beta3.ProcessorVersion.getDefaultInstance()) { @@ -2150,7 +3459,7 @@ public Builder mergeProcessorVersion( } else { processorVersionBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -2166,7 +3475,7 @@ public Builder mergeProcessorVersion( *
*/ public Builder clearProcessorVersion() { - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000004); processorVersion_ = null; if (processorVersionBuilder_ != null) { processorVersionBuilder_.dispose(); @@ -2188,7 +3497,7 @@ public Builder clearProcessorVersion() { */ public com.google.cloud.documentai.v1beta3.ProcessorVersion.Builder getProcessorVersionBuilder() { - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000004; onChanged(); return getProcessorVersionFieldBuilder().getBuilder(); } @@ -2261,7 +3570,7 @@ public Builder clearProcessorVersion() { * @return Whether the documentSchema field is set. */ public boolean hasDocumentSchema() { - return ((bitField0_ & 0x00000004) != 0); + return ((bitField0_ & 0x00000008) != 0); } /** * @@ -2305,7 +3614,7 @@ public Builder setDocumentSchema(com.google.cloud.documentai.v1beta3.DocumentSch } else { documentSchemaBuilder_.setMessage(value); } - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -2327,7 +3636,7 @@ public Builder setDocumentSchema( } else { documentSchemaBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -2344,7 +3653,7 @@ public Builder setDocumentSchema( */ public Builder mergeDocumentSchema(com.google.cloud.documentai.v1beta3.DocumentSchema value) { if (documentSchemaBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) + if (((bitField0_ & 0x00000008) != 0) && documentSchema_ != null && documentSchema_ != com.google.cloud.documentai.v1beta3.DocumentSchema.getDefaultInstance()) { @@ -2355,7 +3664,7 @@ public Builder mergeDocumentSchema(com.google.cloud.documentai.v1beta3.DocumentS } else { documentSchemaBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -2371,7 +3680,7 @@ public Builder mergeDocumentSchema(com.google.cloud.documentai.v1beta3.DocumentS *
*/ public Builder clearDocumentSchema() { - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000008); documentSchema_ = null; if (documentSchemaBuilder_ != null) { documentSchemaBuilder_.dispose(); @@ -2392,7 +3701,7 @@ public Builder clearDocumentSchema() { *
*/ public com.google.cloud.documentai.v1beta3.DocumentSchema.Builder getDocumentSchemaBuilder() { - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; onChanged(); return getDocumentSchemaFieldBuilder().getBuilder(); } @@ -2455,7 +3764,8 @@ public com.google.cloud.documentai.v1beta3.DocumentSchema.Builder getDocumentSch * * *
-     * Optional. The input data used to train the `ProcessorVersion`.
+     * Optional. The input data used to train the
+     * [ProcessorVersion][google.cloud.documentai.v1beta3.ProcessorVersion].
      * 
* * @@ -2465,13 +3775,14 @@ public com.google.cloud.documentai.v1beta3.DocumentSchema.Builder getDocumentSch * @return Whether the inputData field is set. */ public boolean hasInputData() { - return ((bitField0_ & 0x00000008) != 0); + return ((bitField0_ & 0x00000010) != 0); } /** * * *
-     * Optional. The input data used to train the `ProcessorVersion`.
+     * Optional. The input data used to train the
+     * [ProcessorVersion][google.cloud.documentai.v1beta3.ProcessorVersion].
      * 
* * @@ -2495,7 +3806,8 @@ public boolean hasInputData() { * * *
-     * Optional. The input data used to train the `ProcessorVersion`.
+     * Optional. The input data used to train the
+     * [ProcessorVersion][google.cloud.documentai.v1beta3.ProcessorVersion].
      * 
* * @@ -2512,7 +3824,7 @@ public Builder setInputData( } else { inputDataBuilder_.setMessage(value); } - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -2520,7 +3832,8 @@ public Builder setInputData( * * *
-     * Optional. The input data used to train the `ProcessorVersion`.
+     * Optional. The input data used to train the
+     * [ProcessorVersion][google.cloud.documentai.v1beta3.ProcessorVersion].
      * 
* * @@ -2535,7 +3848,7 @@ public Builder setInputData( } else { inputDataBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -2543,7 +3856,8 @@ public Builder setInputData( * * *
-     * Optional. The input data used to train the `ProcessorVersion`.
+     * Optional. The input data used to train the
+     * [ProcessorVersion][google.cloud.documentai.v1beta3.ProcessorVersion].
      * 
* * @@ -2553,7 +3867,7 @@ public Builder setInputData( public Builder mergeInputData( com.google.cloud.documentai.v1beta3.TrainProcessorVersionRequest.InputData value) { if (inputDataBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0) + if (((bitField0_ & 0x00000010) != 0) && inputData_ != null && inputData_ != com.google.cloud.documentai.v1beta3.TrainProcessorVersionRequest.InputData @@ -2565,7 +3879,7 @@ public Builder mergeInputData( } else { inputDataBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -2573,7 +3887,8 @@ public Builder mergeInputData( * * *
-     * Optional. The input data used to train the `ProcessorVersion`.
+     * Optional. The input data used to train the
+     * [ProcessorVersion][google.cloud.documentai.v1beta3.ProcessorVersion].
      * 
* * @@ -2581,7 +3896,7 @@ public Builder mergeInputData( * */ public Builder clearInputData() { - bitField0_ = (bitField0_ & ~0x00000008); + bitField0_ = (bitField0_ & ~0x00000010); inputData_ = null; if (inputDataBuilder_ != null) { inputDataBuilder_.dispose(); @@ -2594,7 +3909,8 @@ public Builder clearInputData() { * * *
-     * Optional. The input data used to train the `ProcessorVersion`.
+     * Optional. The input data used to train the
+     * [ProcessorVersion][google.cloud.documentai.v1beta3.ProcessorVersion].
      * 
* * @@ -2603,7 +3919,7 @@ public Builder clearInputData() { */ public com.google.cloud.documentai.v1beta3.TrainProcessorVersionRequest.InputData.Builder getInputDataBuilder() { - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000010; onChanged(); return getInputDataFieldBuilder().getBuilder(); } @@ -2611,7 +3927,8 @@ public Builder clearInputData() { * * *
-     * Optional. The input data used to train the `ProcessorVersion`.
+     * Optional. The input data used to train the
+     * [ProcessorVersion][google.cloud.documentai.v1beta3.ProcessorVersion].
      * 
* * @@ -2633,7 +3950,8 @@ public Builder clearInputData() { * * *
-     * Optional. The input data used to train the `ProcessorVersion`.
+     * Optional. The input data used to train the
+     * [ProcessorVersion][google.cloud.documentai.v1beta3.ProcessorVersion].
      * 
* * @@ -2725,7 +4043,7 @@ public Builder setBaseProcessorVersion(java.lang.String value) { throw new NullPointerException(); } baseProcessorVersion_ = value; - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000020; onChanged(); return this; } @@ -2744,7 +4062,7 @@ public Builder setBaseProcessorVersion(java.lang.String value) { */ public Builder clearBaseProcessorVersion() { baseProcessorVersion_ = getDefaultInstance().getBaseProcessorVersion(); - bitField0_ = (bitField0_ & ~0x00000010); + bitField0_ = (bitField0_ & ~0x00000020); onChanged(); return this; } @@ -2768,7 +4086,7 @@ public Builder setBaseProcessorVersionBytes(com.google.protobuf.ByteString value } checkByteStringIsUtf8(value); baseProcessorVersion_ = value; - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000020; onChanged(); return this; } diff --git a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/TrainProcessorVersionRequestOrBuilder.java b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/TrainProcessorVersionRequestOrBuilder.java index 475c37215a89..d67661faa4a4 100644 --- a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/TrainProcessorVersionRequestOrBuilder.java +++ b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/TrainProcessorVersionRequestOrBuilder.java @@ -23,6 +23,50 @@ public interface TrainProcessorVersionRequestOrBuilder // @@protoc_insertion_point(interface_extends:google.cloud.documentai.v1beta3.TrainProcessorVersionRequest) com.google.protobuf.MessageOrBuilder { + /** + * + * + *
+   * Options to control Custom Document Extraction (CDE) Processor.
+   * 
+ * + * + * .google.cloud.documentai.v1beta3.TrainProcessorVersionRequest.CustomDocumentExtractionOptions custom_document_extraction_options = 5; + * + * + * @return Whether the customDocumentExtractionOptions field is set. + */ + boolean hasCustomDocumentExtractionOptions(); + /** + * + * + *
+   * Options to control Custom Document Extraction (CDE) Processor.
+   * 
+ * + * + * .google.cloud.documentai.v1beta3.TrainProcessorVersionRequest.CustomDocumentExtractionOptions custom_document_extraction_options = 5; + * + * + * @return The customDocumentExtractionOptions. + */ + com.google.cloud.documentai.v1beta3.TrainProcessorVersionRequest.CustomDocumentExtractionOptions + getCustomDocumentExtractionOptions(); + /** + * + * + *
+   * Options to control Custom Document Extraction (CDE) Processor.
+   * 
+ * + * + * .google.cloud.documentai.v1beta3.TrainProcessorVersionRequest.CustomDocumentExtractionOptions custom_document_extraction_options = 5; + * + */ + com.google.cloud.documentai.v1beta3.TrainProcessorVersionRequest + .CustomDocumentExtractionOptionsOrBuilder + getCustomDocumentExtractionOptionsOrBuilder(); + /** * * @@ -142,7 +186,8 @@ public interface TrainProcessorVersionRequestOrBuilder * * *
-   * Optional. The input data used to train the `ProcessorVersion`.
+   * Optional. The input data used to train the
+   * [ProcessorVersion][google.cloud.documentai.v1beta3.ProcessorVersion].
    * 
* * @@ -156,7 +201,8 @@ public interface TrainProcessorVersionRequestOrBuilder * * *
-   * Optional. The input data used to train the `ProcessorVersion`.
+   * Optional. The input data used to train the
+   * [ProcessorVersion][google.cloud.documentai.v1beta3.ProcessorVersion].
    * 
* * @@ -170,7 +216,8 @@ public interface TrainProcessorVersionRequestOrBuilder * * *
-   * Optional. The input data used to train the `ProcessorVersion`.
+   * Optional. The input data used to train the
+   * [ProcessorVersion][google.cloud.documentai.v1beta3.ProcessorVersion].
    * 
* * @@ -208,4 +255,7 @@ public interface TrainProcessorVersionRequestOrBuilder * @return The bytes for baseProcessorVersion. */ com.google.protobuf.ByteString getBaseProcessorVersionBytes(); + + com.google.cloud.documentai.v1beta3.TrainProcessorVersionRequest.ProcessorFlagsCase + getProcessorFlagsCase(); } diff --git a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/TrainProcessorVersionResponse.java b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/TrainProcessorVersionResponse.java index 331a8b85f150..e0392528e4ea 100644 --- a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/TrainProcessorVersionResponse.java +++ b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/TrainProcessorVersionResponse.java @@ -22,7 +22,8 @@ * * *
- * The response for the TrainProcessorVersion method.
+ * The response for
+ * [TrainProcessorVersion][google.cloud.documentai.v1beta3.DocumentProcessorService.TrainProcessorVersion].
  * 
* * Protobuf type {@code google.cloud.documentai.v1beta3.TrainProcessorVersionResponse} @@ -278,7 +279,8 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * The response for the TrainProcessorVersion method.
+   * The response for
+   * [TrainProcessorVersion][google.cloud.documentai.v1beta3.DocumentProcessorService.TrainProcessorVersion].
    * 
* * Protobuf type {@code google.cloud.documentai.v1beta3.TrainProcessorVersionResponse} diff --git a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/UndeployProcessorVersionMetadata.java b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/UndeployProcessorVersionMetadata.java index f72e62f8c394..3a115b53b350 100644 --- a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/UndeployProcessorVersionMetadata.java +++ b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/UndeployProcessorVersionMetadata.java @@ -22,7 +22,8 @@ * * *
- * The long running operation metadata for the undeploy processor version
+ * The long-running operation metadata for the
+ * [UndeployProcessorVersion][google.cloud.documentai.v1beta3.DocumentProcessorService.UndeployProcessorVersion]
  * method.
  * 
* @@ -68,7 +69,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * The basic metadata of the long running operation.
+   * The basic metadata of the long-running operation.
    * 
* * .google.cloud.documentai.v1beta3.CommonOperationMetadata common_metadata = 1; @@ -83,7 +84,7 @@ public boolean hasCommonMetadata() { * * *
-   * The basic metadata of the long running operation.
+   * The basic metadata of the long-running operation.
    * 
* * .google.cloud.documentai.v1beta3.CommonOperationMetadata common_metadata = 1; @@ -100,7 +101,7 @@ public com.google.cloud.documentai.v1beta3.CommonOperationMetadata getCommonMeta * * *
-   * The basic metadata of the long running operation.
+   * The basic metadata of the long-running operation.
    * 
* * .google.cloud.documentai.v1beta3.CommonOperationMetadata common_metadata = 1; @@ -283,7 +284,8 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * The long running operation metadata for the undeploy processor version
+   * The long-running operation metadata for the
+   * [UndeployProcessorVersion][google.cloud.documentai.v1beta3.DocumentProcessorService.UndeployProcessorVersion]
    * method.
    * 
* @@ -483,7 +485,7 @@ public Builder mergeFrom( * * *
-     * The basic metadata of the long running operation.
+     * The basic metadata of the long-running operation.
      * 
* * .google.cloud.documentai.v1beta3.CommonOperationMetadata common_metadata = 1; @@ -497,7 +499,7 @@ public boolean hasCommonMetadata() { * * *
-     * The basic metadata of the long running operation.
+     * The basic metadata of the long-running operation.
      * 
* * .google.cloud.documentai.v1beta3.CommonOperationMetadata common_metadata = 1; @@ -517,7 +519,7 @@ public com.google.cloud.documentai.v1beta3.CommonOperationMetadata getCommonMeta * * *
-     * The basic metadata of the long running operation.
+     * The basic metadata of the long-running operation.
      * 
* * .google.cloud.documentai.v1beta3.CommonOperationMetadata common_metadata = 1; @@ -540,7 +542,7 @@ public Builder setCommonMetadata( * * *
-     * The basic metadata of the long running operation.
+     * The basic metadata of the long-running operation.
      * 
* * .google.cloud.documentai.v1beta3.CommonOperationMetadata common_metadata = 1; @@ -560,7 +562,7 @@ public Builder setCommonMetadata( * * *
-     * The basic metadata of the long running operation.
+     * The basic metadata of the long-running operation.
      * 
* * .google.cloud.documentai.v1beta3.CommonOperationMetadata common_metadata = 1; @@ -588,7 +590,7 @@ public Builder mergeCommonMetadata( * * *
-     * The basic metadata of the long running operation.
+     * The basic metadata of the long-running operation.
      * 
* * .google.cloud.documentai.v1beta3.CommonOperationMetadata common_metadata = 1; @@ -607,7 +609,7 @@ public Builder clearCommonMetadata() { * * *
-     * The basic metadata of the long running operation.
+     * The basic metadata of the long-running operation.
      * 
* * .google.cloud.documentai.v1beta3.CommonOperationMetadata common_metadata = 1; @@ -622,7 +624,7 @@ public Builder clearCommonMetadata() { * * *
-     * The basic metadata of the long running operation.
+     * The basic metadata of the long-running operation.
      * 
* * .google.cloud.documentai.v1beta3.CommonOperationMetadata common_metadata = 1; @@ -641,7 +643,7 @@ public Builder clearCommonMetadata() { * * *
-     * The basic metadata of the long running operation.
+     * The basic metadata of the long-running operation.
      * 
* * .google.cloud.documentai.v1beta3.CommonOperationMetadata common_metadata = 1; diff --git a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/UndeployProcessorVersionMetadataOrBuilder.java b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/UndeployProcessorVersionMetadataOrBuilder.java index fa022009c119..9f347b6a7faf 100644 --- a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/UndeployProcessorVersionMetadataOrBuilder.java +++ b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/UndeployProcessorVersionMetadataOrBuilder.java @@ -27,7 +27,7 @@ public interface UndeployProcessorVersionMetadataOrBuilder * * *
-   * The basic metadata of the long running operation.
+   * The basic metadata of the long-running operation.
    * 
* * .google.cloud.documentai.v1beta3.CommonOperationMetadata common_metadata = 1; @@ -39,7 +39,7 @@ public interface UndeployProcessorVersionMetadataOrBuilder * * *
-   * The basic metadata of the long running operation.
+   * The basic metadata of the long-running operation.
    * 
* * .google.cloud.documentai.v1beta3.CommonOperationMetadata common_metadata = 1; @@ -51,7 +51,7 @@ public interface UndeployProcessorVersionMetadataOrBuilder * * *
-   * The basic metadata of the long running operation.
+   * The basic metadata of the long-running operation.
    * 
* * .google.cloud.documentai.v1beta3.CommonOperationMetadata common_metadata = 1; diff --git a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/UndeployProcessorVersionRequest.java b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/UndeployProcessorVersionRequest.java index 8ec33f60a710..489467d583e9 100644 --- a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/UndeployProcessorVersionRequest.java +++ b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/UndeployProcessorVersionRequest.java @@ -22,7 +22,9 @@ * * *
- * Request message for the undeploy processor version method.
+ * Request message for the
+ * [UndeployProcessorVersion][google.cloud.documentai.v1beta3.DocumentProcessorService.UndeployProcessorVersion]
+ * method.
  * 
* * Protobuf type {@code google.cloud.documentai.v1beta3.UndeployProcessorVersionRequest} @@ -283,7 +285,9 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * Request message for the undeploy processor version method.
+   * Request message for the
+   * [UndeployProcessorVersion][google.cloud.documentai.v1beta3.DocumentProcessorService.UndeployProcessorVersion]
+   * method.
    * 
* * Protobuf type {@code google.cloud.documentai.v1beta3.UndeployProcessorVersionRequest} diff --git a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/UndeployProcessorVersionResponse.java b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/UndeployProcessorVersionResponse.java index 66023a726e76..cc1a927c2361 100644 --- a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/UndeployProcessorVersionResponse.java +++ b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/UndeployProcessorVersionResponse.java @@ -22,7 +22,9 @@ * * *
- * Response message for the undeploy processor version method.
+ * Response message for the
+ * [UndeployProcessorVersion][google.cloud.documentai.v1beta3.DocumentProcessorService.UndeployProcessorVersion]
+ * method.
  * 
* * Protobuf type {@code google.cloud.documentai.v1beta3.UndeployProcessorVersionResponse} @@ -217,7 +219,9 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * Response message for the undeploy processor version method.
+   * Response message for the
+   * [UndeployProcessorVersion][google.cloud.documentai.v1beta3.DocumentProcessorService.UndeployProcessorVersion]
+   * method.
    * 
* * Protobuf type {@code google.cloud.documentai.v1beta3.UndeployProcessorVersionResponse} diff --git a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/UpdateDatasetOperationMetadata.java b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/UpdateDatasetOperationMetadata.java new file mode 100644 index 000000000000..52af7189f4c5 --- /dev/null +++ b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/UpdateDatasetOperationMetadata.java @@ -0,0 +1,711 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the 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/v1beta3/document_service.proto + +package com.google.cloud.documentai.v1beta3; + +/** Protobuf type {@code google.cloud.documentai.v1beta3.UpdateDatasetOperationMetadata} */ +public final class UpdateDatasetOperationMetadata extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.documentai.v1beta3.UpdateDatasetOperationMetadata) + UpdateDatasetOperationMetadataOrBuilder { + private static final long serialVersionUID = 0L; + // Use UpdateDatasetOperationMetadata.newBuilder() to construct. + private UpdateDatasetOperationMetadata( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private UpdateDatasetOperationMetadata() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new UpdateDatasetOperationMetadata(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.documentai.v1beta3.DocumentAiDocumentService + .internal_static_google_cloud_documentai_v1beta3_UpdateDatasetOperationMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.documentai.v1beta3.DocumentAiDocumentService + .internal_static_google_cloud_documentai_v1beta3_UpdateDatasetOperationMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.documentai.v1beta3.UpdateDatasetOperationMetadata.class, + com.google.cloud.documentai.v1beta3.UpdateDatasetOperationMetadata.Builder.class); + } + + public static final int COMMON_METADATA_FIELD_NUMBER = 1; + private com.google.cloud.documentai.v1beta3.CommonOperationMetadata commonMetadata_; + /** + * + * + *
+   * The basic metadata of the long running operation.
+   * 
+ * + * .google.cloud.documentai.v1beta3.CommonOperationMetadata common_metadata = 1; + * + * @return Whether the commonMetadata field is set. + */ + @java.lang.Override + public boolean hasCommonMetadata() { + return commonMetadata_ != null; + } + /** + * + * + *
+   * The basic metadata of the long running operation.
+   * 
+ * + * .google.cloud.documentai.v1beta3.CommonOperationMetadata common_metadata = 1; + * + * @return The commonMetadata. + */ + @java.lang.Override + public com.google.cloud.documentai.v1beta3.CommonOperationMetadata getCommonMetadata() { + return commonMetadata_ == null + ? com.google.cloud.documentai.v1beta3.CommonOperationMetadata.getDefaultInstance() + : commonMetadata_; + } + /** + * + * + *
+   * The basic metadata of the long running operation.
+   * 
+ * + * .google.cloud.documentai.v1beta3.CommonOperationMetadata common_metadata = 1; + */ + @java.lang.Override + public com.google.cloud.documentai.v1beta3.CommonOperationMetadataOrBuilder + getCommonMetadataOrBuilder() { + return commonMetadata_ == null + ? com.google.cloud.documentai.v1beta3.CommonOperationMetadata.getDefaultInstance() + : commonMetadata_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (commonMetadata_ != null) { + output.writeMessage(1, getCommonMetadata()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (commonMetadata_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getCommonMetadata()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.documentai.v1beta3.UpdateDatasetOperationMetadata)) { + return super.equals(obj); + } + com.google.cloud.documentai.v1beta3.UpdateDatasetOperationMetadata other = + (com.google.cloud.documentai.v1beta3.UpdateDatasetOperationMetadata) obj; + + if (hasCommonMetadata() != other.hasCommonMetadata()) return false; + if (hasCommonMetadata()) { + if (!getCommonMetadata().equals(other.getCommonMetadata())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasCommonMetadata()) { + hash = (37 * hash) + COMMON_METADATA_FIELD_NUMBER; + hash = (53 * hash) + getCommonMetadata().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.documentai.v1beta3.UpdateDatasetOperationMetadata parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.documentai.v1beta3.UpdateDatasetOperationMetadata 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.v1beta3.UpdateDatasetOperationMetadata parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.documentai.v1beta3.UpdateDatasetOperationMetadata parseFrom( + com.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.v1beta3.UpdateDatasetOperationMetadata parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.documentai.v1beta3.UpdateDatasetOperationMetadata parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.documentai.v1beta3.UpdateDatasetOperationMetadata parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.documentai.v1beta3.UpdateDatasetOperationMetadata 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.v1beta3.UpdateDatasetOperationMetadata + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.documentai.v1beta3.UpdateDatasetOperationMetadata + 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.v1beta3.UpdateDatasetOperationMetadata parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.documentai.v1beta3.UpdateDatasetOperationMetadata 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 static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.documentai.v1beta3.UpdateDatasetOperationMetadata prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** Protobuf type {@code google.cloud.documentai.v1beta3.UpdateDatasetOperationMetadata} */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.documentai.v1beta3.UpdateDatasetOperationMetadata) + com.google.cloud.documentai.v1beta3.UpdateDatasetOperationMetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.documentai.v1beta3.DocumentAiDocumentService + .internal_static_google_cloud_documentai_v1beta3_UpdateDatasetOperationMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.documentai.v1beta3.DocumentAiDocumentService + .internal_static_google_cloud_documentai_v1beta3_UpdateDatasetOperationMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.documentai.v1beta3.UpdateDatasetOperationMetadata.class, + com.google.cloud.documentai.v1beta3.UpdateDatasetOperationMetadata.Builder.class); + } + + // Construct using + // com.google.cloud.documentai.v1beta3.UpdateDatasetOperationMetadata.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + commonMetadata_ = null; + if (commonMetadataBuilder_ != null) { + commonMetadataBuilder_.dispose(); + commonMetadataBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.documentai.v1beta3.DocumentAiDocumentService + .internal_static_google_cloud_documentai_v1beta3_UpdateDatasetOperationMetadata_descriptor; + } + + @java.lang.Override + public com.google.cloud.documentai.v1beta3.UpdateDatasetOperationMetadata + getDefaultInstanceForType() { + return com.google.cloud.documentai.v1beta3.UpdateDatasetOperationMetadata + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.documentai.v1beta3.UpdateDatasetOperationMetadata build() { + com.google.cloud.documentai.v1beta3.UpdateDatasetOperationMetadata result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.documentai.v1beta3.UpdateDatasetOperationMetadata buildPartial() { + com.google.cloud.documentai.v1beta3.UpdateDatasetOperationMetadata result = + new com.google.cloud.documentai.v1beta3.UpdateDatasetOperationMetadata(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.documentai.v1beta3.UpdateDatasetOperationMetadata result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.commonMetadata_ = + commonMetadataBuilder_ == null ? commonMetadata_ : commonMetadataBuilder_.build(); + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.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.v1beta3.UpdateDatasetOperationMetadata) { + return mergeFrom( + (com.google.cloud.documentai.v1beta3.UpdateDatasetOperationMetadata) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.documentai.v1beta3.UpdateDatasetOperationMetadata other) { + if (other + == com.google.cloud.documentai.v1beta3.UpdateDatasetOperationMetadata + .getDefaultInstance()) return this; + if (other.hasCommonMetadata()) { + mergeCommonMetadata(other.getCommonMetadata()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage(getCommonMetadataFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.cloud.documentai.v1beta3.CommonOperationMetadata commonMetadata_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.documentai.v1beta3.CommonOperationMetadata, + com.google.cloud.documentai.v1beta3.CommonOperationMetadata.Builder, + com.google.cloud.documentai.v1beta3.CommonOperationMetadataOrBuilder> + commonMetadataBuilder_; + /** + * + * + *
+     * The basic metadata of the long running operation.
+     * 
+ * + * .google.cloud.documentai.v1beta3.CommonOperationMetadata common_metadata = 1; + * + * @return Whether the commonMetadata field is set. + */ + public boolean hasCommonMetadata() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+     * The basic metadata of the long running operation.
+     * 
+ * + * .google.cloud.documentai.v1beta3.CommonOperationMetadata common_metadata = 1; + * + * @return The commonMetadata. + */ + public com.google.cloud.documentai.v1beta3.CommonOperationMetadata getCommonMetadata() { + if (commonMetadataBuilder_ == null) { + return commonMetadata_ == null + ? com.google.cloud.documentai.v1beta3.CommonOperationMetadata.getDefaultInstance() + : commonMetadata_; + } else { + return commonMetadataBuilder_.getMessage(); + } + } + /** + * + * + *
+     * The basic metadata of the long running operation.
+     * 
+ * + * .google.cloud.documentai.v1beta3.CommonOperationMetadata common_metadata = 1; + */ + public Builder setCommonMetadata( + com.google.cloud.documentai.v1beta3.CommonOperationMetadata value) { + if (commonMetadataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + commonMetadata_ = value; + } else { + commonMetadataBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * The basic metadata of the long running operation.
+     * 
+ * + * .google.cloud.documentai.v1beta3.CommonOperationMetadata common_metadata = 1; + */ + public Builder setCommonMetadata( + com.google.cloud.documentai.v1beta3.CommonOperationMetadata.Builder builderForValue) { + if (commonMetadataBuilder_ == null) { + commonMetadata_ = builderForValue.build(); + } else { + commonMetadataBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * The basic metadata of the long running operation.
+     * 
+ * + * .google.cloud.documentai.v1beta3.CommonOperationMetadata common_metadata = 1; + */ + public Builder mergeCommonMetadata( + com.google.cloud.documentai.v1beta3.CommonOperationMetadata value) { + if (commonMetadataBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && commonMetadata_ != null + && commonMetadata_ + != com.google.cloud.documentai.v1beta3.CommonOperationMetadata + .getDefaultInstance()) { + getCommonMetadataBuilder().mergeFrom(value); + } else { + commonMetadata_ = value; + } + } else { + commonMetadataBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * The basic metadata of the long running operation.
+     * 
+ * + * .google.cloud.documentai.v1beta3.CommonOperationMetadata common_metadata = 1; + */ + public Builder clearCommonMetadata() { + bitField0_ = (bitField0_ & ~0x00000001); + commonMetadata_ = null; + if (commonMetadataBuilder_ != null) { + commonMetadataBuilder_.dispose(); + commonMetadataBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * The basic metadata of the long running operation.
+     * 
+ * + * .google.cloud.documentai.v1beta3.CommonOperationMetadata common_metadata = 1; + */ + public com.google.cloud.documentai.v1beta3.CommonOperationMetadata.Builder + getCommonMetadataBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getCommonMetadataFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The basic metadata of the long running operation.
+     * 
+ * + * .google.cloud.documentai.v1beta3.CommonOperationMetadata common_metadata = 1; + */ + public com.google.cloud.documentai.v1beta3.CommonOperationMetadataOrBuilder + getCommonMetadataOrBuilder() { + if (commonMetadataBuilder_ != null) { + return commonMetadataBuilder_.getMessageOrBuilder(); + } else { + return commonMetadata_ == null + ? com.google.cloud.documentai.v1beta3.CommonOperationMetadata.getDefaultInstance() + : commonMetadata_; + } + } + /** + * + * + *
+     * The basic metadata of the long running operation.
+     * 
+ * + * .google.cloud.documentai.v1beta3.CommonOperationMetadata common_metadata = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.documentai.v1beta3.CommonOperationMetadata, + com.google.cloud.documentai.v1beta3.CommonOperationMetadata.Builder, + com.google.cloud.documentai.v1beta3.CommonOperationMetadataOrBuilder> + getCommonMetadataFieldBuilder() { + if (commonMetadataBuilder_ == null) { + commonMetadataBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.documentai.v1beta3.CommonOperationMetadata, + com.google.cloud.documentai.v1beta3.CommonOperationMetadata.Builder, + com.google.cloud.documentai.v1beta3.CommonOperationMetadataOrBuilder>( + getCommonMetadata(), getParentForChildren(), isClean()); + commonMetadata_ = null; + } + return commonMetadataBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.documentai.v1beta3.UpdateDatasetOperationMetadata) + } + + // @@protoc_insertion_point(class_scope:google.cloud.documentai.v1beta3.UpdateDatasetOperationMetadata) + private static final com.google.cloud.documentai.v1beta3.UpdateDatasetOperationMetadata + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.documentai.v1beta3.UpdateDatasetOperationMetadata(); + } + + public static com.google.cloud.documentai.v1beta3.UpdateDatasetOperationMetadata + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateDatasetOperationMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.documentai.v1beta3.UpdateDatasetOperationMetadata + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/UpdateDatasetOperationMetadataOrBuilder.java b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/UpdateDatasetOperationMetadataOrBuilder.java new file mode 100644 index 000000000000..65cfba46958b --- /dev/null +++ b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/UpdateDatasetOperationMetadataOrBuilder.java @@ -0,0 +1,60 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the 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/v1beta3/document_service.proto + +package com.google.cloud.documentai.v1beta3; + +public interface UpdateDatasetOperationMetadataOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.documentai.v1beta3.UpdateDatasetOperationMetadata) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The basic metadata of the long running operation.
+   * 
+ * + * .google.cloud.documentai.v1beta3.CommonOperationMetadata common_metadata = 1; + * + * @return Whether the commonMetadata field is set. + */ + boolean hasCommonMetadata(); + /** + * + * + *
+   * The basic metadata of the long running operation.
+   * 
+ * + * .google.cloud.documentai.v1beta3.CommonOperationMetadata common_metadata = 1; + * + * @return The commonMetadata. + */ + com.google.cloud.documentai.v1beta3.CommonOperationMetadata getCommonMetadata(); + /** + * + * + *
+   * The basic metadata of the long running operation.
+   * 
+ * + * .google.cloud.documentai.v1beta3.CommonOperationMetadata common_metadata = 1; + */ + com.google.cloud.documentai.v1beta3.CommonOperationMetadataOrBuilder getCommonMetadataOrBuilder(); +} diff --git a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/UpdateDatasetRequest.java b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/UpdateDatasetRequest.java new file mode 100644 index 000000000000..4b13d94b2963 --- /dev/null +++ b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/UpdateDatasetRequest.java @@ -0,0 +1,986 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the 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/v1beta3/document_service.proto + +package com.google.cloud.documentai.v1beta3; + +/** Protobuf type {@code google.cloud.documentai.v1beta3.UpdateDatasetRequest} */ +public final class UpdateDatasetRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.documentai.v1beta3.UpdateDatasetRequest) + UpdateDatasetRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use UpdateDatasetRequest.newBuilder() to construct. + private UpdateDatasetRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private UpdateDatasetRequest() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new UpdateDatasetRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.documentai.v1beta3.DocumentAiDocumentService + .internal_static_google_cloud_documentai_v1beta3_UpdateDatasetRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.documentai.v1beta3.DocumentAiDocumentService + .internal_static_google_cloud_documentai_v1beta3_UpdateDatasetRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.documentai.v1beta3.UpdateDatasetRequest.class, + com.google.cloud.documentai.v1beta3.UpdateDatasetRequest.Builder.class); + } + + public static final int DATASET_FIELD_NUMBER = 1; + private com.google.cloud.documentai.v1beta3.Dataset dataset_; + /** + * + * + *
+   * Required. The `name` field of the `Dataset` is used to identify the
+   * resource to be updated.
+   * 
+ * + * + * .google.cloud.documentai.v1beta3.Dataset dataset = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the dataset field is set. + */ + @java.lang.Override + public boolean hasDataset() { + return dataset_ != null; + } + /** + * + * + *
+   * Required. The `name` field of the `Dataset` is used to identify the
+   * resource to be updated.
+   * 
+ * + * + * .google.cloud.documentai.v1beta3.Dataset dataset = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The dataset. + */ + @java.lang.Override + public com.google.cloud.documentai.v1beta3.Dataset getDataset() { + return dataset_ == null + ? com.google.cloud.documentai.v1beta3.Dataset.getDefaultInstance() + : dataset_; + } + /** + * + * + *
+   * Required. The `name` field of the `Dataset` is used to identify the
+   * resource to be updated.
+   * 
+ * + * + * .google.cloud.documentai.v1beta3.Dataset dataset = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.documentai.v1beta3.DatasetOrBuilder getDatasetOrBuilder() { + return dataset_ == null + ? com.google.cloud.documentai.v1beta3.Dataset.getDefaultInstance() + : dataset_; + } + + public static final int UPDATE_MASK_FIELD_NUMBER = 2; + private com.google.protobuf.FieldMask updateMask_; + /** + * + * + *
+   * The update mask applies to the resource.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + * + * @return Whether the updateMask field is set. + */ + @java.lang.Override + public boolean hasUpdateMask() { + return updateMask_ != null; + } + /** + * + * + *
+   * The update mask applies to the resource.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + * + * @return The updateMask. + */ + @java.lang.Override + public com.google.protobuf.FieldMask getUpdateMask() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + /** + * + * + *
+   * The update mask applies to the resource.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + @java.lang.Override + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (dataset_ != null) { + output.writeMessage(1, getDataset()); + } + if (updateMask_ != null) { + output.writeMessage(2, getUpdateMask()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (dataset_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getDataset()); + } + if (updateMask_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.documentai.v1beta3.UpdateDatasetRequest)) { + return super.equals(obj); + } + com.google.cloud.documentai.v1beta3.UpdateDatasetRequest other = + (com.google.cloud.documentai.v1beta3.UpdateDatasetRequest) obj; + + if (hasDataset() != other.hasDataset()) return false; + if (hasDataset()) { + if (!getDataset().equals(other.getDataset())) return false; + } + if (hasUpdateMask() != other.hasUpdateMask()) return false; + if (hasUpdateMask()) { + if (!getUpdateMask().equals(other.getUpdateMask())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasDataset()) { + hash = (37 * hash) + DATASET_FIELD_NUMBER; + hash = (53 * hash) + getDataset().hashCode(); + } + if (hasUpdateMask()) { + hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; + hash = (53 * hash) + getUpdateMask().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.documentai.v1beta3.UpdateDatasetRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.documentai.v1beta3.UpdateDatasetRequest 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.v1beta3.UpdateDatasetRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.documentai.v1beta3.UpdateDatasetRequest parseFrom( + com.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.v1beta3.UpdateDatasetRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.documentai.v1beta3.UpdateDatasetRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.documentai.v1beta3.UpdateDatasetRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.documentai.v1beta3.UpdateDatasetRequest 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.v1beta3.UpdateDatasetRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.documentai.v1beta3.UpdateDatasetRequest 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.v1beta3.UpdateDatasetRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.documentai.v1beta3.UpdateDatasetRequest 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 static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.documentai.v1beta3.UpdateDatasetRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** Protobuf type {@code google.cloud.documentai.v1beta3.UpdateDatasetRequest} */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.documentai.v1beta3.UpdateDatasetRequest) + com.google.cloud.documentai.v1beta3.UpdateDatasetRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.documentai.v1beta3.DocumentAiDocumentService + .internal_static_google_cloud_documentai_v1beta3_UpdateDatasetRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.documentai.v1beta3.DocumentAiDocumentService + .internal_static_google_cloud_documentai_v1beta3_UpdateDatasetRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.documentai.v1beta3.UpdateDatasetRequest.class, + com.google.cloud.documentai.v1beta3.UpdateDatasetRequest.Builder.class); + } + + // Construct using com.google.cloud.documentai.v1beta3.UpdateDatasetRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + dataset_ = null; + if (datasetBuilder_ != null) { + datasetBuilder_.dispose(); + datasetBuilder_ = null; + } + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.documentai.v1beta3.DocumentAiDocumentService + .internal_static_google_cloud_documentai_v1beta3_UpdateDatasetRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.documentai.v1beta3.UpdateDatasetRequest getDefaultInstanceForType() { + return com.google.cloud.documentai.v1beta3.UpdateDatasetRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.documentai.v1beta3.UpdateDatasetRequest build() { + com.google.cloud.documentai.v1beta3.UpdateDatasetRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.documentai.v1beta3.UpdateDatasetRequest buildPartial() { + com.google.cloud.documentai.v1beta3.UpdateDatasetRequest result = + new com.google.cloud.documentai.v1beta3.UpdateDatasetRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.documentai.v1beta3.UpdateDatasetRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.dataset_ = datasetBuilder_ == null ? dataset_ : datasetBuilder_.build(); + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.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.v1beta3.UpdateDatasetRequest) { + return mergeFrom((com.google.cloud.documentai.v1beta3.UpdateDatasetRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.documentai.v1beta3.UpdateDatasetRequest other) { + if (other == com.google.cloud.documentai.v1beta3.UpdateDatasetRequest.getDefaultInstance()) + return this; + if (other.hasDataset()) { + mergeDataset(other.getDataset()); + } + if (other.hasUpdateMask()) { + mergeUpdateMask(other.getUpdateMask()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage(getDatasetFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.cloud.documentai.v1beta3.Dataset dataset_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.documentai.v1beta3.Dataset, + com.google.cloud.documentai.v1beta3.Dataset.Builder, + com.google.cloud.documentai.v1beta3.DatasetOrBuilder> + datasetBuilder_; + /** + * + * + *
+     * Required. The `name` field of the `Dataset` is used to identify the
+     * resource to be updated.
+     * 
+ * + * + * .google.cloud.documentai.v1beta3.Dataset dataset = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the dataset field is set. + */ + public boolean hasDataset() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+     * Required. The `name` field of the `Dataset` is used to identify the
+     * resource to be updated.
+     * 
+ * + * + * .google.cloud.documentai.v1beta3.Dataset dataset = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The dataset. + */ + public com.google.cloud.documentai.v1beta3.Dataset getDataset() { + if (datasetBuilder_ == null) { + return dataset_ == null + ? com.google.cloud.documentai.v1beta3.Dataset.getDefaultInstance() + : dataset_; + } else { + return datasetBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. The `name` field of the `Dataset` is used to identify the
+     * resource to be updated.
+     * 
+ * + * + * .google.cloud.documentai.v1beta3.Dataset dataset = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setDataset(com.google.cloud.documentai.v1beta3.Dataset value) { + if (datasetBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + dataset_ = value; + } else { + datasetBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The `name` field of the `Dataset` is used to identify the
+     * resource to be updated.
+     * 
+ * + * + * .google.cloud.documentai.v1beta3.Dataset dataset = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setDataset(com.google.cloud.documentai.v1beta3.Dataset.Builder builderForValue) { + if (datasetBuilder_ == null) { + dataset_ = builderForValue.build(); + } else { + datasetBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The `name` field of the `Dataset` is used to identify the
+     * resource to be updated.
+     * 
+ * + * + * .google.cloud.documentai.v1beta3.Dataset dataset = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeDataset(com.google.cloud.documentai.v1beta3.Dataset value) { + if (datasetBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && dataset_ != null + && dataset_ != com.google.cloud.documentai.v1beta3.Dataset.getDefaultInstance()) { + getDatasetBuilder().mergeFrom(value); + } else { + dataset_ = value; + } + } else { + datasetBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The `name` field of the `Dataset` is used to identify the
+     * resource to be updated.
+     * 
+ * + * + * .google.cloud.documentai.v1beta3.Dataset dataset = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearDataset() { + bitField0_ = (bitField0_ & ~0x00000001); + dataset_ = null; + if (datasetBuilder_ != null) { + datasetBuilder_.dispose(); + datasetBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The `name` field of the `Dataset` is used to identify the
+     * resource to be updated.
+     * 
+ * + * + * .google.cloud.documentai.v1beta3.Dataset dataset = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.documentai.v1beta3.Dataset.Builder getDatasetBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getDatasetFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. The `name` field of the `Dataset` is used to identify the
+     * resource to be updated.
+     * 
+ * + * + * .google.cloud.documentai.v1beta3.Dataset dataset = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.documentai.v1beta3.DatasetOrBuilder getDatasetOrBuilder() { + if (datasetBuilder_ != null) { + return datasetBuilder_.getMessageOrBuilder(); + } else { + return dataset_ == null + ? com.google.cloud.documentai.v1beta3.Dataset.getDefaultInstance() + : dataset_; + } + } + /** + * + * + *
+     * Required. The `name` field of the `Dataset` is used to identify the
+     * resource to be updated.
+     * 
+ * + * + * .google.cloud.documentai.v1beta3.Dataset dataset = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.documentai.v1beta3.Dataset, + com.google.cloud.documentai.v1beta3.Dataset.Builder, + com.google.cloud.documentai.v1beta3.DatasetOrBuilder> + getDatasetFieldBuilder() { + if (datasetBuilder_ == null) { + datasetBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.documentai.v1beta3.Dataset, + com.google.cloud.documentai.v1beta3.Dataset.Builder, + com.google.cloud.documentai.v1beta3.DatasetOrBuilder>( + getDataset(), getParentForChildren(), isClean()); + dataset_ = null; + } + return datasetBuilder_; + } + + private com.google.protobuf.FieldMask updateMask_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + updateMaskBuilder_; + /** + * + * + *
+     * The update mask applies to the resource.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + * + * @return Whether the updateMask field is set. + */ + public boolean hasUpdateMask() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+     * The update mask applies to the resource.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + * + * @return The updateMask. + */ + public com.google.protobuf.FieldMask getUpdateMask() { + if (updateMaskBuilder_ == null) { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } else { + return updateMaskBuilder_.getMessage(); + } + } + /** + * + * + *
+     * The update mask applies to the resource.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateMask_ = value; + } else { + updateMaskBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * The update mask applies to the resource.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { + if (updateMaskBuilder_ == null) { + updateMask_ = builderForValue.build(); + } else { + updateMaskBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * The update mask applies to the resource.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && updateMask_ != null + && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + getUpdateMaskBuilder().mergeFrom(value); + } else { + updateMask_ = value; + } + } else { + updateMaskBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * The update mask applies to the resource.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public Builder clearUpdateMask() { + bitField0_ = (bitField0_ & ~0x00000002); + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * The update mask applies to the resource.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getUpdateMaskFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The update mask applies to the resource.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + if (updateMaskBuilder_ != null) { + return updateMaskBuilder_.getMessageOrBuilder(); + } else { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } + } + /** + * + * + *
+     * The update mask applies to the resource.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + getUpdateMaskFieldBuilder() { + if (updateMaskBuilder_ == null) { + updateMaskBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), getParentForChildren(), isClean()); + updateMask_ = null; + } + return updateMaskBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.documentai.v1beta3.UpdateDatasetRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.documentai.v1beta3.UpdateDatasetRequest) + private static final com.google.cloud.documentai.v1beta3.UpdateDatasetRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.documentai.v1beta3.UpdateDatasetRequest(); + } + + public static com.google.cloud.documentai.v1beta3.UpdateDatasetRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateDatasetRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.documentai.v1beta3.UpdateDatasetRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/UpdateDatasetRequestOrBuilder.java b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/UpdateDatasetRequestOrBuilder.java new file mode 100644 index 000000000000..8dcef8894ed6 --- /dev/null +++ b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/UpdateDatasetRequestOrBuilder.java @@ -0,0 +1,104 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the 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/v1beta3/document_service.proto + +package com.google.cloud.documentai.v1beta3; + +public interface UpdateDatasetRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.documentai.v1beta3.UpdateDatasetRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The `name` field of the `Dataset` is used to identify the
+   * resource to be updated.
+   * 
+ * + * + * .google.cloud.documentai.v1beta3.Dataset dataset = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the dataset field is set. + */ + boolean hasDataset(); + /** + * + * + *
+   * Required. The `name` field of the `Dataset` is used to identify the
+   * resource to be updated.
+   * 
+ * + * + * .google.cloud.documentai.v1beta3.Dataset dataset = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The dataset. + */ + com.google.cloud.documentai.v1beta3.Dataset getDataset(); + /** + * + * + *
+   * Required. The `name` field of the `Dataset` is used to identify the
+   * resource to be updated.
+   * 
+ * + * + * .google.cloud.documentai.v1beta3.Dataset dataset = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.documentai.v1beta3.DatasetOrBuilder getDatasetOrBuilder(); + + /** + * + * + *
+   * The update mask applies to the resource.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + * + * @return Whether the updateMask field is set. + */ + boolean hasUpdateMask(); + /** + * + * + *
+   * The update mask applies to the resource.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + * + * @return The updateMask. + */ + com.google.protobuf.FieldMask getUpdateMask(); + /** + * + * + *
+   * The update mask applies to the resource.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); +} diff --git a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/UpdateDatasetSchemaRequest.java b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/UpdateDatasetSchemaRequest.java new file mode 100644 index 000000000000..a3941c4539f1 --- /dev/null +++ b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/UpdateDatasetSchemaRequest.java @@ -0,0 +1,1011 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the 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/v1beta3/document_service.proto + +package com.google.cloud.documentai.v1beta3; + +/** + * + * + *
+ * Request for `UpdateDatasetSchema`.
+ * 
+ * + * Protobuf type {@code google.cloud.documentai.v1beta3.UpdateDatasetSchemaRequest} + */ +public final class UpdateDatasetSchemaRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.documentai.v1beta3.UpdateDatasetSchemaRequest) + UpdateDatasetSchemaRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use UpdateDatasetSchemaRequest.newBuilder() to construct. + private UpdateDatasetSchemaRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private UpdateDatasetSchemaRequest() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new UpdateDatasetSchemaRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.documentai.v1beta3.DocumentAiDocumentService + .internal_static_google_cloud_documentai_v1beta3_UpdateDatasetSchemaRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.documentai.v1beta3.DocumentAiDocumentService + .internal_static_google_cloud_documentai_v1beta3_UpdateDatasetSchemaRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.documentai.v1beta3.UpdateDatasetSchemaRequest.class, + com.google.cloud.documentai.v1beta3.UpdateDatasetSchemaRequest.Builder.class); + } + + public static final int DATASET_SCHEMA_FIELD_NUMBER = 1; + private com.google.cloud.documentai.v1beta3.DatasetSchema datasetSchema_; + /** + * + * + *
+   * Required. The name field of the `DatasetSchema` is used to identify the
+   * resource to be updated.
+   * 
+ * + * + * .google.cloud.documentai.v1beta3.DatasetSchema dataset_schema = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the datasetSchema field is set. + */ + @java.lang.Override + public boolean hasDatasetSchema() { + return datasetSchema_ != null; + } + /** + * + * + *
+   * Required. The name field of the `DatasetSchema` is used to identify the
+   * resource to be updated.
+   * 
+ * + * + * .google.cloud.documentai.v1beta3.DatasetSchema dataset_schema = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The datasetSchema. + */ + @java.lang.Override + public com.google.cloud.documentai.v1beta3.DatasetSchema getDatasetSchema() { + return datasetSchema_ == null + ? com.google.cloud.documentai.v1beta3.DatasetSchema.getDefaultInstance() + : datasetSchema_; + } + /** + * + * + *
+   * Required. The name field of the `DatasetSchema` is used to identify the
+   * resource to be updated.
+   * 
+ * + * + * .google.cloud.documentai.v1beta3.DatasetSchema dataset_schema = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.documentai.v1beta3.DatasetSchemaOrBuilder getDatasetSchemaOrBuilder() { + return datasetSchema_ == null + ? com.google.cloud.documentai.v1beta3.DatasetSchema.getDefaultInstance() + : datasetSchema_; + } + + public static final int UPDATE_MASK_FIELD_NUMBER = 2; + private com.google.protobuf.FieldMask updateMask_; + /** + * + * + *
+   * The update mask applies to the resource.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + * + * @return Whether the updateMask field is set. + */ + @java.lang.Override + public boolean hasUpdateMask() { + return updateMask_ != null; + } + /** + * + * + *
+   * The update mask applies to the resource.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + * + * @return The updateMask. + */ + @java.lang.Override + public com.google.protobuf.FieldMask getUpdateMask() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + /** + * + * + *
+   * The update mask applies to the resource.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + @java.lang.Override + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (datasetSchema_ != null) { + output.writeMessage(1, getDatasetSchema()); + } + if (updateMask_ != null) { + output.writeMessage(2, getUpdateMask()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (datasetSchema_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getDatasetSchema()); + } + if (updateMask_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.documentai.v1beta3.UpdateDatasetSchemaRequest)) { + return super.equals(obj); + } + com.google.cloud.documentai.v1beta3.UpdateDatasetSchemaRequest other = + (com.google.cloud.documentai.v1beta3.UpdateDatasetSchemaRequest) obj; + + if (hasDatasetSchema() != other.hasDatasetSchema()) return false; + if (hasDatasetSchema()) { + if (!getDatasetSchema().equals(other.getDatasetSchema())) return false; + } + if (hasUpdateMask() != other.hasUpdateMask()) return false; + if (hasUpdateMask()) { + if (!getUpdateMask().equals(other.getUpdateMask())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasDatasetSchema()) { + hash = (37 * hash) + DATASET_SCHEMA_FIELD_NUMBER; + hash = (53 * hash) + getDatasetSchema().hashCode(); + } + if (hasUpdateMask()) { + hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; + hash = (53 * hash) + getUpdateMask().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.documentai.v1beta3.UpdateDatasetSchemaRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.documentai.v1beta3.UpdateDatasetSchemaRequest 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.v1beta3.UpdateDatasetSchemaRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.documentai.v1beta3.UpdateDatasetSchemaRequest parseFrom( + com.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.v1beta3.UpdateDatasetSchemaRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.documentai.v1beta3.UpdateDatasetSchemaRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.documentai.v1beta3.UpdateDatasetSchemaRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.documentai.v1beta3.UpdateDatasetSchemaRequest 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.v1beta3.UpdateDatasetSchemaRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.documentai.v1beta3.UpdateDatasetSchemaRequest 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.v1beta3.UpdateDatasetSchemaRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.documentai.v1beta3.UpdateDatasetSchemaRequest 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 static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.documentai.v1beta3.UpdateDatasetSchemaRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request for `UpdateDatasetSchema`.
+   * 
+ * + * Protobuf type {@code google.cloud.documentai.v1beta3.UpdateDatasetSchemaRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.documentai.v1beta3.UpdateDatasetSchemaRequest) + com.google.cloud.documentai.v1beta3.UpdateDatasetSchemaRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.documentai.v1beta3.DocumentAiDocumentService + .internal_static_google_cloud_documentai_v1beta3_UpdateDatasetSchemaRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.documentai.v1beta3.DocumentAiDocumentService + .internal_static_google_cloud_documentai_v1beta3_UpdateDatasetSchemaRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.documentai.v1beta3.UpdateDatasetSchemaRequest.class, + com.google.cloud.documentai.v1beta3.UpdateDatasetSchemaRequest.Builder.class); + } + + // Construct using com.google.cloud.documentai.v1beta3.UpdateDatasetSchemaRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + datasetSchema_ = null; + if (datasetSchemaBuilder_ != null) { + datasetSchemaBuilder_.dispose(); + datasetSchemaBuilder_ = null; + } + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.documentai.v1beta3.DocumentAiDocumentService + .internal_static_google_cloud_documentai_v1beta3_UpdateDatasetSchemaRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.documentai.v1beta3.UpdateDatasetSchemaRequest + getDefaultInstanceForType() { + return com.google.cloud.documentai.v1beta3.UpdateDatasetSchemaRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.documentai.v1beta3.UpdateDatasetSchemaRequest build() { + com.google.cloud.documentai.v1beta3.UpdateDatasetSchemaRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.documentai.v1beta3.UpdateDatasetSchemaRequest buildPartial() { + com.google.cloud.documentai.v1beta3.UpdateDatasetSchemaRequest result = + new com.google.cloud.documentai.v1beta3.UpdateDatasetSchemaRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.documentai.v1beta3.UpdateDatasetSchemaRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.datasetSchema_ = + datasetSchemaBuilder_ == null ? datasetSchema_ : datasetSchemaBuilder_.build(); + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.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.v1beta3.UpdateDatasetSchemaRequest) { + return mergeFrom((com.google.cloud.documentai.v1beta3.UpdateDatasetSchemaRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.documentai.v1beta3.UpdateDatasetSchemaRequest other) { + if (other + == com.google.cloud.documentai.v1beta3.UpdateDatasetSchemaRequest.getDefaultInstance()) + return this; + if (other.hasDatasetSchema()) { + mergeDatasetSchema(other.getDatasetSchema()); + } + if (other.hasUpdateMask()) { + mergeUpdateMask(other.getUpdateMask()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage(getDatasetSchemaFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.cloud.documentai.v1beta3.DatasetSchema datasetSchema_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.documentai.v1beta3.DatasetSchema, + com.google.cloud.documentai.v1beta3.DatasetSchema.Builder, + com.google.cloud.documentai.v1beta3.DatasetSchemaOrBuilder> + datasetSchemaBuilder_; + /** + * + * + *
+     * Required. The name field of the `DatasetSchema` is used to identify the
+     * resource to be updated.
+     * 
+ * + * + * .google.cloud.documentai.v1beta3.DatasetSchema dataset_schema = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the datasetSchema field is set. + */ + public boolean hasDatasetSchema() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+     * Required. The name field of the `DatasetSchema` is used to identify the
+     * resource to be updated.
+     * 
+ * + * + * .google.cloud.documentai.v1beta3.DatasetSchema dataset_schema = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The datasetSchema. + */ + public com.google.cloud.documentai.v1beta3.DatasetSchema getDatasetSchema() { + if (datasetSchemaBuilder_ == null) { + return datasetSchema_ == null + ? com.google.cloud.documentai.v1beta3.DatasetSchema.getDefaultInstance() + : datasetSchema_; + } else { + return datasetSchemaBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. The name field of the `DatasetSchema` is used to identify the
+     * resource to be updated.
+     * 
+ * + * + * .google.cloud.documentai.v1beta3.DatasetSchema dataset_schema = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setDatasetSchema(com.google.cloud.documentai.v1beta3.DatasetSchema value) { + if (datasetSchemaBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + datasetSchema_ = value; + } else { + datasetSchemaBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The name field of the `DatasetSchema` is used to identify the
+     * resource to be updated.
+     * 
+ * + * + * .google.cloud.documentai.v1beta3.DatasetSchema dataset_schema = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setDatasetSchema( + com.google.cloud.documentai.v1beta3.DatasetSchema.Builder builderForValue) { + if (datasetSchemaBuilder_ == null) { + datasetSchema_ = builderForValue.build(); + } else { + datasetSchemaBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The name field of the `DatasetSchema` is used to identify the
+     * resource to be updated.
+     * 
+ * + * + * .google.cloud.documentai.v1beta3.DatasetSchema dataset_schema = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeDatasetSchema(com.google.cloud.documentai.v1beta3.DatasetSchema value) { + if (datasetSchemaBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && datasetSchema_ != null + && datasetSchema_ + != com.google.cloud.documentai.v1beta3.DatasetSchema.getDefaultInstance()) { + getDatasetSchemaBuilder().mergeFrom(value); + } else { + datasetSchema_ = value; + } + } else { + datasetSchemaBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The name field of the `DatasetSchema` is used to identify the
+     * resource to be updated.
+     * 
+ * + * + * .google.cloud.documentai.v1beta3.DatasetSchema dataset_schema = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearDatasetSchema() { + bitField0_ = (bitField0_ & ~0x00000001); + datasetSchema_ = null; + if (datasetSchemaBuilder_ != null) { + datasetSchemaBuilder_.dispose(); + datasetSchemaBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The name field of the `DatasetSchema` is used to identify the
+     * resource to be updated.
+     * 
+ * + * + * .google.cloud.documentai.v1beta3.DatasetSchema dataset_schema = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.documentai.v1beta3.DatasetSchema.Builder getDatasetSchemaBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getDatasetSchemaFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. The name field of the `DatasetSchema` is used to identify the
+     * resource to be updated.
+     * 
+ * + * + * .google.cloud.documentai.v1beta3.DatasetSchema dataset_schema = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.documentai.v1beta3.DatasetSchemaOrBuilder getDatasetSchemaOrBuilder() { + if (datasetSchemaBuilder_ != null) { + return datasetSchemaBuilder_.getMessageOrBuilder(); + } else { + return datasetSchema_ == null + ? com.google.cloud.documentai.v1beta3.DatasetSchema.getDefaultInstance() + : datasetSchema_; + } + } + /** + * + * + *
+     * Required. The name field of the `DatasetSchema` is used to identify the
+     * resource to be updated.
+     * 
+ * + * + * .google.cloud.documentai.v1beta3.DatasetSchema dataset_schema = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.documentai.v1beta3.DatasetSchema, + com.google.cloud.documentai.v1beta3.DatasetSchema.Builder, + com.google.cloud.documentai.v1beta3.DatasetSchemaOrBuilder> + getDatasetSchemaFieldBuilder() { + if (datasetSchemaBuilder_ == null) { + datasetSchemaBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.documentai.v1beta3.DatasetSchema, + com.google.cloud.documentai.v1beta3.DatasetSchema.Builder, + com.google.cloud.documentai.v1beta3.DatasetSchemaOrBuilder>( + getDatasetSchema(), getParentForChildren(), isClean()); + datasetSchema_ = null; + } + return datasetSchemaBuilder_; + } + + private com.google.protobuf.FieldMask updateMask_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + updateMaskBuilder_; + /** + * + * + *
+     * The update mask applies to the resource.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + * + * @return Whether the updateMask field is set. + */ + public boolean hasUpdateMask() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+     * The update mask applies to the resource.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + * + * @return The updateMask. + */ + public com.google.protobuf.FieldMask getUpdateMask() { + if (updateMaskBuilder_ == null) { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } else { + return updateMaskBuilder_.getMessage(); + } + } + /** + * + * + *
+     * The update mask applies to the resource.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateMask_ = value; + } else { + updateMaskBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * The update mask applies to the resource.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { + if (updateMaskBuilder_ == null) { + updateMask_ = builderForValue.build(); + } else { + updateMaskBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * The update mask applies to the resource.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && updateMask_ != null + && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + getUpdateMaskBuilder().mergeFrom(value); + } else { + updateMask_ = value; + } + } else { + updateMaskBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * The update mask applies to the resource.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public Builder clearUpdateMask() { + bitField0_ = (bitField0_ & ~0x00000002); + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * The update mask applies to the resource.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getUpdateMaskFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The update mask applies to the resource.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + if (updateMaskBuilder_ != null) { + return updateMaskBuilder_.getMessageOrBuilder(); + } else { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } + } + /** + * + * + *
+     * The update mask applies to the resource.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + getUpdateMaskFieldBuilder() { + if (updateMaskBuilder_ == null) { + updateMaskBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), getParentForChildren(), isClean()); + updateMask_ = null; + } + return updateMaskBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.documentai.v1beta3.UpdateDatasetSchemaRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.documentai.v1beta3.UpdateDatasetSchemaRequest) + private static final com.google.cloud.documentai.v1beta3.UpdateDatasetSchemaRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.documentai.v1beta3.UpdateDatasetSchemaRequest(); + } + + public static com.google.cloud.documentai.v1beta3.UpdateDatasetSchemaRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateDatasetSchemaRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.documentai.v1beta3.UpdateDatasetSchemaRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/UpdateDatasetSchemaRequestOrBuilder.java b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/UpdateDatasetSchemaRequestOrBuilder.java new file mode 100644 index 000000000000..e5f158fdf850 --- /dev/null +++ b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/UpdateDatasetSchemaRequestOrBuilder.java @@ -0,0 +1,104 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the 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/v1beta3/document_service.proto + +package com.google.cloud.documentai.v1beta3; + +public interface UpdateDatasetSchemaRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.documentai.v1beta3.UpdateDatasetSchemaRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name field of the `DatasetSchema` is used to identify the
+   * resource to be updated.
+   * 
+ * + * + * .google.cloud.documentai.v1beta3.DatasetSchema dataset_schema = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the datasetSchema field is set. + */ + boolean hasDatasetSchema(); + /** + * + * + *
+   * Required. The name field of the `DatasetSchema` is used to identify the
+   * resource to be updated.
+   * 
+ * + * + * .google.cloud.documentai.v1beta3.DatasetSchema dataset_schema = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The datasetSchema. + */ + com.google.cloud.documentai.v1beta3.DatasetSchema getDatasetSchema(); + /** + * + * + *
+   * Required. The name field of the `DatasetSchema` is used to identify the
+   * resource to be updated.
+   * 
+ * + * + * .google.cloud.documentai.v1beta3.DatasetSchema dataset_schema = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.documentai.v1beta3.DatasetSchemaOrBuilder getDatasetSchemaOrBuilder(); + + /** + * + * + *
+   * The update mask applies to the resource.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + * + * @return Whether the updateMask field is set. + */ + boolean hasUpdateMask(); + /** + * + * + *
+   * The update mask applies to the resource.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + * + * @return The updateMask. + */ + com.google.protobuf.FieldMask getUpdateMask(); + /** + * + * + *
+   * The update mask applies to the resource.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); +} diff --git a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/proto/google/cloud/documentai/v1beta3/barcode.proto b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/proto/google/cloud/documentai/v1beta3/barcode.proto index a5148172b7ba..f0580e69af8e 100644 --- a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/proto/google/cloud/documentai/v1beta3/barcode.proto +++ b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/proto/google/cloud/documentai/v1beta3/barcode.proto @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/proto/google/cloud/documentai/v1beta3/dataset.proto b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/proto/google/cloud/documentai/v1beta3/dataset.proto new file mode 100644 index 000000000000..fa50183bbb50 --- /dev/null +++ b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/proto/google/cloud/documentai/v1beta3/dataset.proto @@ -0,0 +1,138 @@ +// Copyright 2023 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.cloud.documentai.v1beta3; + +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/cloud/documentai/v1beta3/document_io.proto"; +import "google/cloud/documentai/v1beta3/document_schema.proto"; + +option csharp_namespace = "Google.Cloud.DocumentAI.V1Beta3"; +option go_package = "cloud.google.com/go/documentai/apiv1beta3/documentaipb;documentaipb"; +option java_multiple_files = true; +option java_outer_classname = "DatasetProto"; +option java_package = "com.google.cloud.documentai.v1beta3"; +option php_namespace = "Google\\Cloud\\DocumentAI\\V1beta3"; +option ruby_package = "Google::Cloud::DocumentAI::V1beta3"; +option (google.api.resource_definition) = { + type: "contentwarehouse.googleapis.com/Schema" + pattern: "projects/{project}/locations/{location}/schemas/{schema}" +}; + +// A singleton resource under a +// [Processor][google.cloud.documentai.v1beta3.Processor] which configures a +// collection of documents. +message Dataset { + option (google.api.resource) = { + type: "documentai.googleapis.com/Dataset" + pattern: "projects/{project}/locations/{location}/processors/{processor}/dataset" + }; + + // Configuration specific to the Cloud Storage-based implementation. + message GCSManagedConfig { + // Required. The Cloud Storage URI (a directory) where the documents + // belonging to the dataset must be stored. + GcsPrefix gcs_prefix = 1 [(google.api.field_behavior) = REQUIRED]; + } + + // Configuration specific to the Document AI Warehouse-based implementation. + message DocumentWarehouseConfig { + // Output only. The collection in Document AI Warehouse associated with the + // dataset. + string collection = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The schema in Document AI Warehouse associated with the + // dataset. + string schema = 2 [ + (google.api.field_behavior) = OUTPUT_ONLY, + (google.api.resource_reference) = { + type: "contentwarehouse.googleapis.com/Schema" + } + ]; + } + + // Configuration specific to an unmanaged dataset. + message UnmanagedDatasetConfig {} + + // Configuration specific to spanner-based indexing. + message SpannerIndexingConfig {} + + // Different states of a dataset. + enum State { + // Default unspecified enum, should not be used. + STATE_UNSPECIFIED = 0; + + // Dataset has not been initialized. + UNINITIALIZED = 1; + + // Dataset is being initialized. + INITIALIZING = 2; + + // Dataset has been initialized. + INITIALIZED = 3; + } + + oneof storage_source { + // Optional. User-managed Cloud Storage dataset configuration. Use this + // configuration if the dataset documents are stored under a user-managed + // Cloud Storage location. + GCSManagedConfig gcs_managed_config = 3 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Document AI Warehouse-based dataset configuration. + DocumentWarehouseConfig document_warehouse_config = 5 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Unmanaged dataset configuration. Use this configuration if the + // dataset documents are managed by the document service internally (not + // user-managed). + UnmanagedDatasetConfig unmanaged_dataset_config = 6 + [(google.api.field_behavior) = OPTIONAL]; + } + + oneof indexing_source { + // Optional. A lightweight indexing source with low latency and high + // reliability, but lacking advanced features like CMEK and content-based + // search. + SpannerIndexingConfig spanner_indexing_config = 4 + [(google.api.field_behavior) = OPTIONAL]; + } + + // Dataset resource name. + // Format: + // `projects/{project}/locations/{location}/processors/{processor}/dataset` + string name = 1; + + // Required. State of the dataset. Ignored when updating dataset. + State state = 2 [(google.api.field_behavior) = REQUIRED]; +} + +// Dataset Schema. +message DatasetSchema { + option (google.api.resource) = { + type: "documentai.googleapis.com/DatasetSchema" + pattern: "projects/{project}/locations/{location}/processors/{processor}/dataset/datasetSchema" + }; + + // Dataset schema resource name. + // Format: + // `projects/{project}/locations/{location}/processors/{processor}/dataset/datasetSchema` + string name = 1; + + // Optional. Schema of the dataset. + DocumentSchema document_schema = 3 [(google.api.field_behavior) = OPTIONAL]; +} diff --git a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/proto/google/cloud/documentai/v1beta3/document.proto b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/proto/google/cloud/documentai/v1beta3/document.proto index 193f7700d513..8250d4d66608 100644 --- a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/proto/google/cloud/documentai/v1beta3/document.proto +++ b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/proto/google/cloud/documentai/v1beta3/document.proto @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -64,7 +64,8 @@ message Document { // Font size for the text. float size = 1; - // Unit for the font size. Follows CSS naming (in, px, pt, etc.). + // Unit for the font size. Follows CSS naming (such as `in`, `px`, and + // `pt`). string unit = 2; } @@ -78,17 +79,18 @@ message Document { // Text background color. google.type.Color background_color = 3; - // Font weight. Possible values are normal, bold, bolder, and lighter. - // https://www.w3schools.com/cssref/pr_font_weight.asp + // [Font weight](https://www.w3schools.com/cssref/pr_font_weight.asp). + // Possible values are `normal`, `bold`, `bolder`, and `lighter`. string font_weight = 4; - // Text style. Possible values are normal, italic, and oblique. - // https://www.w3schools.com/cssref/pr_font_font-style.asp + // [Text style](https://www.w3schools.com/cssref/pr_font_font-style.asp). + // Possible values are `normal`, `italic`, and `oblique`. string text_style = 5; - // Text decoration. Follows CSS standard. - // - // https://www.w3schools.com/cssref/pr_text_text-decoration.asp + // [Text + // decoration](https://www.w3schools.com/cssref/pr_text_text-decoration.asp). + // Follows CSS standard. + // string text_decoration = 6; // Font size. @@ -118,7 +120,9 @@ message Document { // Raw byte content of the image. bytes content = 1; - // Encoding mime type for the image. + // Encoding [media type (MIME + // type)](https://www.iana.org/assignments/media-types/media-types.xhtml) + // for the image. string mime_type = 2; // Width of the image in pixels. @@ -255,6 +259,59 @@ message Document { Type type = 1; } + // Font and other text style attributes. + message StyleInfo { + // Font size in points (`1` point is `¹⁄₇₂` inches). + int32 font_size = 1; + + // Font size in pixels, equal to _unrounded + // [font_size][google.cloud.documentai.v1beta3.Document.Page.Token.StyleInfo.font_size]_ + // * _resolution_ ÷ `72.0`. + double pixel_font_size = 2; + + // Letter spacing in points. + double letter_spacing = 3; + + // Name or style of the font. + string font_type = 4; + + // Whether the text is bold (equivalent to + // [font_weight][google.cloud.documentai.v1beta3.Document.Page.Token.StyleInfo.font_weight] + // is at least `700`). + bool bold = 5; + + // Whether the text is italic. + bool italic = 6; + + // Whether the text is underlined. + bool underlined = 7; + + // Whether the text is strikethrough. + bool strikeout = 8; + + // Whether the text is a subscript. + bool subscript = 9; + + // Whether the text is a superscript. + bool superscript = 10; + + // Whether the text is in small caps. + bool smallcaps = 11; + + // TrueType weight on a scale `100` (thin) to `1000` (ultra-heavy). + // Normal is `400`, bold is `700`. + int32 font_weight = 12; + + // Whether the text is handwritten. + bool handwritten = 13; + + // Color of the text. + google.type.Color text_color = 14; + + // Color of the background. + google.type.Color background_color = 15; + } + // [Layout][google.cloud.documentai.v1beta3.Document.Page.Layout] for // [Token][google.cloud.documentai.v1beta3.Document.Page.Token]. Layout layout = 1; @@ -268,6 +325,9 @@ message Document { // The history of this annotation. Provenance provenance = 4 [deprecated = true]; + + // Text style attributes. + StyleInfo style_info = 5; } // A detected symbol. @@ -333,7 +393,7 @@ message Document { repeated DetectedLanguage detected_languages = 4; // The history of this table. - Provenance provenance = 5; + Provenance provenance = 5 [deprecated = true]; } // A form field detected on the page. @@ -389,16 +449,16 @@ message Document { // Detected language for a structural component. message DetectedLanguage { - // The BCP-47 language code, such as `en-US` or `sr-Latn`. For more - // information, see - // https://www.unicode.org/reports/tr35/#Unicode_locale_identifier. + // The [BCP-47 language + // code](https://www.unicode.org/reports/tr35/#Unicode_locale_identifier), + // such as `en-US` or `sr-Latn`. string language_code = 1; // Confidence of detected language. Range `[0, 1]`. float confidence = 2; } - // Image Quality Scores for the page image + // Image quality scores for the page image. message ImageQualityScores { // Image Quality Defects message DetectedDefect { @@ -414,12 +474,12 @@ message Document { // - `quality/defect_glare` string type = 1; - // Confidence of detected defect. Range `[0, 1]` where 1 indicates - // strong confidence of that the defect exists. + // Confidence of detected defect. Range `[0, 1]` where `1` indicates + // strong confidence that the defect exists. float confidence = 2; } - // The overall quality score. Range `[0, 1]` where 1 is perfect quality. + // The overall quality score. Range `[0, 1]` where `1` is perfect quality. float quality_score = 1; // A list of detected defects. @@ -485,7 +545,7 @@ message Document { // A list of detected barcodes. repeated DetectedBarcode detected_barcodes = 15; - // Image Quality Scores. + // Image quality scores. ImageQualityScores image_quality_scores = 17; // The history of this page. @@ -740,13 +800,13 @@ message Document { REMOVE = 2; // Updates any fields within the given provenance scope of the message. It - // 'overwrites' the fields rather than replacing them. This is - // especially relevant when we just want to update a field value of an - // entity without also affecting all the child properties. + // overwrites the fields rather than replacing them. Use this when you + // want to update a field value of an entity without also updating all the + // child properties. UPDATE = 7; // Currently unused. Replace an element identified by `parent`. - REPLACE = 3 [deprecated = true]; + REPLACE = 3; // Deprecated. Request human review for the element identified by // `parent`. @@ -839,10 +899,9 @@ message Document { // Original source document from the user. oneof source { // Optional. Currently supports Google Cloud Storage URI of the form - // `gs://bucket_name/object_name`. Object versioning is not supported. - // See [Google Cloud Storage Request - // URIs](https://cloud.google.com/storage/docs/reference-uris) for more - // info. + // `gs://bucket_name/object_name`. Object versioning is not supported. + // For more information, refer to [Google Cloud Storage Request + // URIs](https://cloud.google.com/storage/docs/reference-uris). string uri = 1 [(google.api.field_behavior) = OPTIONAL]; // Optional. Inline document content, represented as a stream of bytes. @@ -851,9 +910,8 @@ message Document { bytes content = 2 [(google.api.field_behavior) = OPTIONAL]; } - // An IANA published MIME type (also referred to as media type). For more - // information, see - // https://www.iana.org/assignments/media-types/media-types.xhtml. + // An IANA published [media type (MIME + // type)](https://www.iana.org/assignments/media-types/media-types.xhtml). string mime_type = 3; // Optional. UTF-8 encoded text in reading order from the document. diff --git a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/proto/google/cloud/documentai/v1beta3/document_io.proto b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/proto/google/cloud/documentai/v1beta3/document_io.proto index 9de0733f467a..1b7e7ce2f06f 100644 --- a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/proto/google/cloud/documentai/v1beta3/document_io.proto +++ b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/proto/google/cloud/documentai/v1beta3/document_io.proto @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -127,9 +127,18 @@ message OcrConfig { // Adds additional latency comparable to regular OCR to the process call. bool enable_image_quality_scores = 4; - // A list of advanced OCR options to further fine-tune OCR behavior. + // A list of advanced OCR options to further fine-tune OCR behavior. Current + // valid values are: + // + // - `legacy_layout`: a heuristics layout detection algorithm, which serves as + // an alternative to the current ML-based layout detection algorithm. + // Customers can choose the best suitable layout algorithm based on their + // situation. repeated string advanced_ocr_options = 5; // Includes symbol level OCR information if set to true. bool enable_symbol = 6; + + // Turn on font id model and returns font style information. + bool compute_style_info = 8; } diff --git a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/proto/google/cloud/documentai/v1beta3/document_processor_service.proto b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/proto/google/cloud/documentai/v1beta3/document_processor_service.proto index 885bdffd8612..b2a873625941 100644 --- a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/proto/google/cloud/documentai/v1beta3/document_processor_service.proto +++ b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/proto/google/cloud/documentai/v1beta3/document_processor_service.proto @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -28,6 +28,7 @@ import "google/cloud/documentai/v1beta3/operation_metadata.proto"; import "google/cloud/documentai/v1beta3/processor.proto"; import "google/cloud/documentai/v1beta3/processor_type.proto"; import "google/longrunning/operations.proto"; +import "google/protobuf/empty.proto"; import "google/protobuf/field_mask.proto"; import "google/protobuf/timestamp.proto"; import "google/rpc/status.proto"; @@ -48,7 +49,7 @@ option (google.api.resource_definition) = { pattern: "projects/{project}/locations/{location}" }; -// Service to call Cloud DocumentAI to process documents according to the +// Service to call Document AI 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. @@ -89,8 +90,9 @@ service DocumentProcessorService { }; } - // Fetches processor types. Note that we do not use ListProcessorTypes here - // because it is not paginated. + // Fetches processor types. Note that we don't use + // [ListProcessorTypes][google.cloud.documentai.v1beta3.DocumentProcessorService.ListProcessorTypes] + // here, because it isn't paginated. rpc FetchProcessorTypes(FetchProcessorTypesRequest) returns (FetchProcessorTypesResponse) { option (google.api.http) = { @@ -134,7 +136,7 @@ service DocumentProcessorService { // Trains a new processor version. // Operation metadata is returned as - // cloud_documentai_core.TrainProcessorVersionMetadata. + // [TrainProcessorVersionMetadata][google.cloud.documentai.v1beta3.TrainProcessorVersionMetadata]. rpc TrainProcessorVersion(TrainProcessorVersionRequest) returns (google.longrunning.Operation) { option (google.api.http) = { @@ -208,8 +210,9 @@ service DocumentProcessorService { }; } - // Creates a processor from the type processor that the user chose. - // The processor will be at "ENABLED" state by default after its creation. + // Creates a processor from the + // [ProcessorType][google.cloud.documentai.v1beta3.ProcessorType] provided. + // The processor will be at `ENABLED` state by default after its creation. rpc CreateProcessor(CreateProcessorRequest) returns (Processor) { option (google.api.http) = { post: "/v1beta3/{parent=projects/*/locations/*}/processors" @@ -339,12 +342,14 @@ service DocumentProcessorService { // Options for Process API message ProcessOptions { - // Only applicable to "Document OCR Processor". Returns error if set on other + // Only applicable to `OCR_PROCESSOR`. Returns error if set on other // processor types. OcrConfig ocr_config = 1; } -// Request message for the process document method. +// Request message for the +// [ProcessDocument][google.cloud.documentai.v1beta3.DocumentProcessorService.ProcessDocument] +// method. message ProcessRequest { // The document payload. oneof source { @@ -370,16 +375,20 @@ message ProcessRequest { (google.api.resource_reference) = { type: "*" } ]; - // The document payload, the [content] and [mime_type] fields must be set. + // The document payload, the + // [content][google.cloud.documentai.v1beta3.Document.content] and + // [mime_type][google.cloud.documentai.v1beta3.Document.mime_type] fields must + // be set. Document document = 2 [deprecated = true]; - // Whether Human Review feature should be skipped for this request. Default to - // false. + // Whether human review should be skipped for this request. Default to + // `false`. bool skip_human_review = 3; - // Specifies which fields to include in ProcessResponse's document. - // Only supports top level document and pages field so it must be in the form - // of `{document_field_name}` or `pages.{page_field_name}`. + // Specifies which fields to include in the + // [ProcessResponse.document][google.cloud.documentai.v1beta3.ProcessResponse.document] + // output. Only supports top-level document and pages field, so it must be in + // the form of `{document_field_name}` or `pages.{page_field_name}`. google.protobuf.FieldMask field_mask = 6; // Inference-time options for the process API @@ -394,7 +403,7 @@ message HumanReviewStatus { STATE_UNSPECIFIED = 0; // Human review is skipped for the document. This can happen because human - // review is not enabled on the processor or the processing request has + // review isn't enabled on the processor or the processing request has // been set to skip this document. SKIPPED = 1; @@ -405,7 +414,8 @@ message HumanReviewStatus { IN_PROGRESS = 3; // Some error happened during triggering human review, see the - // [state_message] for details. + // [state_message][google.cloud.documentai.v1beta3.HumanReviewStatus.state_message] + // for details. ERROR = 4; } @@ -416,29 +426,34 @@ message HumanReviewStatus { string state_message = 2; // The name of the operation triggered by the processed document. This field - // is populated only when the [state] is [HUMAN_REVIEW_IN_PROGRESS]. It has - // the same response type and metadata as the long running operation returned - // by [ReviewDocument] method. + // is populated only when the + // [state][google.cloud.documentai.v1beta3.HumanReviewStatus.state] is + // `HUMAN_REVIEW_IN_PROGRESS`. It has the same response type and metadata as + // the long-running operation returned by + // [ReviewDocument][google.cloud.documentai.v1beta3.DocumentProcessorService.ReviewDocument]. string human_review_operation = 3; } -// Response message for the process document method. +// Response message for the +// [ProcessDocument][google.cloud.documentai.v1beta3.DocumentProcessorService.ProcessDocument] +// method. message ProcessResponse { // The document payload, will populate fields based on the processor's // behavior. Document document = 1; // The name of the operation triggered by the processed document. If the human - // review process is not triggered, this field will be empty. It has the same - // response type and metadata as the long running operation returned by - // ReviewDocument method. + // review process isn't triggered, this field is empty. It has the same + // response type and metadata as the long-running operation returned by + // [ReviewDocument][google.cloud.documentai.v1beta3.DocumentProcessorService.ReviewDocument]. string human_review_operation = 2 [deprecated = true]; // The status of human review on the processed document. HumanReviewStatus human_review_status = 3; } -// Request message for batch process document method. +// Request message for +// [BatchProcessDocuments][google.cloud.documentai.v1beta3.DocumentProcessorService.BatchProcessDocuments]. message BatchProcessRequest { // The message for input config in batch process. message BatchInputConfig { @@ -447,13 +462,19 @@ message BatchProcessRequest { // The Cloud Storage location as the source of the document. string gcs_source = 1; - // Mimetype of the input. If the input is a raw document, the supported - // mimetypes are application/pdf, image/tiff, and image/gif. - // If the input is a [Document] proto, the type should be application/json. + // An IANA published [media type (MIME + // type)](https://www.iana.org/assignments/media-types/media-types.xhtml) of + // the input. If the input is a raw document, refer to [supported file + // types](https://cloud.google.com/document-ai/docs/file-types) for the list + // of media types. If the input is a + // [Document][google.cloud.documentai.v1beta3.Document], the type should be + // `application/json`. string mime_type = 2; } - // The message for output config in batch process. + // The output configuration in the + // [BatchProcessDocuments][google.cloud.documentai.v1beta3.DocumentProcessorService.BatchProcessDocuments] + // method. message BatchOutputConfig { option deprecated = true; @@ -478,44 +499,52 @@ message BatchProcessRequest { // The overall output config for batch process. BatchOutputConfig output_config = 3 [deprecated = true]; - // The input documents for batch process. + // The input documents for the + // [BatchProcessDocuments][google.cloud.documentai.v1beta3.DocumentProcessorService.BatchProcessDocuments] + // method. BatchDocumentsInputConfig input_documents = 5; - // The overall output config for batch process. + // The output configuration for the + // [BatchProcessDocuments][google.cloud.documentai.v1beta3.DocumentProcessorService.BatchProcessDocuments] + // method. DocumentOutputConfig document_output_config = 6; - // Whether Human Review feature should be skipped for this request. Default to - // false. + // Whether human review should be skipped for this request. Default to + // `false`. bool skip_human_review = 4; // Inference-time options for the process API ProcessOptions process_options = 7; } -// Response message for batch process document method. +// Response message for +// [BatchProcessDocuments][google.cloud.documentai.v1beta3.DocumentProcessorService.BatchProcessDocuments]. message BatchProcessResponse {} -// The long running operation metadata for batch process method. +// The long-running operation metadata for +// [BatchProcessDocuments][google.cloud.documentai.v1beta3.DocumentProcessorService.BatchProcessDocuments]. message BatchProcessMetadata { // The status of a each individual document in the batch process. message IndividualProcessStatus { - // 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 - // take snapshot of that document, since a user can move or change that - // document during the process. + // The source of the document, same as the + // [input_gcs_source][google.cloud.documentai.v1beta3.BatchProcessMetadata.IndividualProcessStatus.input_gcs_source] + // field in the request when the batch process started. string input_gcs_source = 1; // The status processing the document. google.rpc.Status status = 2; - // The output_gcs_destination (in the request as `output_gcs_destination`) + // The Cloud Storage output destination (in the request as + // [DocumentOutputConfig.GcsOutputConfig.gcs_uri][google.cloud.documentai.v1beta3.DocumentOutputConfig.GcsOutputConfig.gcs_uri]) // of the processed document if it was successful, otherwise empty. string output_gcs_destination = 3; // The name of the operation triggered by the processed document. If the - // human review process is not triggered, this field will be empty. It has - // the same response type and metadata as the long running operation - // returned by ReviewDocument method. + // human review process isn't triggered, this field will be empty. It has + // the same response type and metadata as the long-running operation + // returned by the + // [ReviewDocument][google.cloud.documentai.v1beta3.DocumentProcessorService.ReviewDocument] + // method. string human_review_operation = 4 [deprecated = true]; // The status of human review on the processed document. @@ -563,11 +592,13 @@ message BatchProcessMetadata { repeated IndividualProcessStatus individual_process_statuses = 5; } -// Request message for fetch processor types. +// Request message for the +// [FetchProcessorTypes][google.cloud.documentai.v1beta3.DocumentProcessorService.FetchProcessorTypes] +// method. Some processor types may require the project be added to an +// allowlist. message FetchProcessorTypesRequest { - // Required. The project of processor type to list. - // The available processor types may depend on the allow-listing on projects. - // Format: `projects/{project}/locations/{location}` + // Required. The location of processor types to list. + // Format: `projects/{project}/locations/{location}`. string parent = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { @@ -576,17 +607,21 @@ message FetchProcessorTypesRequest { ]; } -// Response message for fetch processor types. +// Response message for the +// [FetchProcessorTypes][google.cloud.documentai.v1beta3.DocumentProcessorService.FetchProcessorTypes] +// method. message FetchProcessorTypesResponse { // The list of processor types. repeated ProcessorType processor_types = 1; } -// Request message for list processor types. +// Request message for the +// [ListProcessorTypes][google.cloud.documentai.v1beta3.DocumentProcessorService.ListProcessorTypes] +// method. Some processor types may require the project be added to an +// allowlist. message ListProcessorTypesRequest { - // Required. The location of processor type to list. - // The available processor types may depend on the allow-listing on projects. - // Format: `projects/{project}/locations/{location}` + // Required. The location of processor types to list. + // Format: `projects/{project}/locations/{location}`. string parent = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { @@ -595,15 +630,17 @@ message ListProcessorTypesRequest { ]; // The maximum number of processor types to return. - // If unspecified, at most 100 processor types will be returned. - // The maximum value is 500; values above 500 will be coerced to 500. + // If unspecified, at most `100` processor types will be returned. + // The maximum value is `500`. Values above `500` will be coerced to `500`. int32 page_size = 2; // Used to retrieve the next page of results, empty if at the end of the list. string page_token = 3; } -// Response message for list processor types. +// Response message for the +// [ListProcessorTypes][google.cloud.documentai.v1beta3.DocumentProcessorService.ListProcessorTypes] +// method. message ListProcessorTypesResponse { // The processor types. repeated ProcessorType processor_types = 1; @@ -624,8 +661,8 @@ message ListProcessorsRequest { ]; // The maximum number of processors to return. - // If unspecified, at most 50 processors will be returned. - // The maximum value is 100; values above 100 will be coerced to 100. + // If unspecified, at most `50` processors will be returned. + // The maximum value is `100`. Values above `100` will be coerced to `100`. int32 page_size = 2; // We will return the processors sorted by creation time. The page token @@ -633,7 +670,9 @@ message ListProcessorsRequest { string page_token = 3; } -// Response message for list processors. +// Response message for the +// [ListProcessors][google.cloud.documentai.v1beta3.DocumentProcessorService.ListProcessors] +// method. message ListProcessorsResponse { // The list of processors. repeated Processor processors = 1; @@ -642,7 +681,9 @@ message ListProcessorsResponse { string next_page_token = 2; } -// Request message for get processor. +// Request message for the +// [GetProcessorType][google.cloud.documentai.v1beta3.DocumentProcessorService.GetProcessorType] +// method. message GetProcessorTypeRequest { // Required. The processor type resource name. string name = 1 [ @@ -653,7 +694,9 @@ message GetProcessorTypeRequest { ]; } -// Request message for get processor. +// Request message for the +// [GetProcessor][google.cloud.documentai.v1beta3.DocumentProcessorService.GetProcessor] +// method. message GetProcessorRequest { // Required. The processor resource name. string name = 1 [ @@ -664,7 +707,9 @@ message GetProcessorRequest { ]; } -// Request message for get processor version. +// Request message for the +// [GetProcessorVersion][google.cloud.documentai.v1beta3.DocumentProcessorService.GetProcessorVersion] +// method. message GetProcessorVersionRequest { // Required. The processor resource name. string name = 1 [ @@ -688,8 +733,8 @@ message ListProcessorVersionsRequest { ]; // The maximum number of processor versions to return. - // If unspecified, at most 10 processor versions will be returned. - // The maximum value is 20; values above 20 will be coerced to 20. + // If unspecified, at most `10` processor versions will be returned. + // The maximum value is `20`. Values above `20` will be coerced to `20`. int32 page_size = 2; // We will return the processor versions sorted by creation time. The page @@ -697,7 +742,9 @@ message ListProcessorVersionsRequest { string page_token = 3; } -// Response message for list processors. +// Response message for the +// [ListProcessorVersions][google.cloud.documentai.v1beta3.DocumentProcessorService.ListProcessorVersions] +// method. message ListProcessorVersionsResponse { // The list of processors. repeated ProcessorVersion processor_versions = 1; @@ -706,7 +753,9 @@ message ListProcessorVersionsResponse { string next_page_token = 2; } -// Request message for the delete processor version method. +// Request message for the +// [DeleteProcessorVersion][google.cloud.documentai.v1beta3.DocumentProcessorService.DeleteProcessorVersion] +// method. message DeleteProcessorVersionRequest { // Required. The processor version resource name to be deleted. string name = 1 [ @@ -717,13 +766,17 @@ message DeleteProcessorVersionRequest { ]; } -// The long running operation metadata for delete processor version method. +// The long-running operation metadata for the +// [DeleteProcessorVersion][google.cloud.documentai.v1beta3.DocumentProcessorService.DeleteProcessorVersion] +// method. message DeleteProcessorVersionMetadata { - // The basic metadata of the long running operation. + // The basic metadata of the long-running operation. CommonOperationMetadata common_metadata = 1; } -// Request message for the deploy processor version method. +// Request message for the +// [DeployProcessorVersion][google.cloud.documentai.v1beta3.DocumentProcessorService.DeployProcessorVersion] +// method. message DeployProcessorVersionRequest { // Required. The processor version resource name to be deployed. string name = 1 [ @@ -734,16 +787,22 @@ message DeployProcessorVersionRequest { ]; } -// Response message for the deploy processor version method. +// Response message for the +// [DeployProcessorVersion][google.cloud.documentai.v1beta3.DocumentProcessorService.DeployProcessorVersion] +// method. message DeployProcessorVersionResponse {} -// The long running operation metadata for deploy processor version method. +// The long-running operation metadata for the +// [DeployProcessorVersion][google.cloud.documentai.v1beta3.DocumentProcessorService.DeployProcessorVersion] +// method. message DeployProcessorVersionMetadata { - // The basic metadata of the long running operation. + // The basic metadata of the long-running operation. CommonOperationMetadata common_metadata = 1; } -// Request message for the undeploy processor version method. +// Request message for the +// [UndeployProcessorVersion][google.cloud.documentai.v1beta3.DocumentProcessorService.UndeployProcessorVersion] +// method. message UndeployProcessorVersionRequest { // Required. The processor version resource name to be undeployed. string name = 1 [ @@ -754,19 +813,24 @@ message UndeployProcessorVersionRequest { ]; } -// Response message for the undeploy processor version method. +// Response message for the +// [UndeployProcessorVersion][google.cloud.documentai.v1beta3.DocumentProcessorService.UndeployProcessorVersion] +// method. message UndeployProcessorVersionResponse {} -// The long running operation metadata for the undeploy processor version +// The long-running operation metadata for the +// [UndeployProcessorVersion][google.cloud.documentai.v1beta3.DocumentProcessorService.UndeployProcessorVersion] // method. message UndeployProcessorVersionMetadata { - // The basic metadata of the long running operation. + // The basic metadata of the long-running operation. CommonOperationMetadata common_metadata = 1; } -// Request message for create a processor. Notice this request is sent to -// a regionalized backend service, and if the processor type is not available -// on that region, the creation will fail. +// Request message for the +// [CreateProcessor][google.cloud.documentai.v1beta3.DocumentProcessorService.CreateProcessor] +// method. Notice this request is sent to a regionalized backend service. If the +// [ProcessorType][google.cloud.documentai.v1beta3.ProcessorType] isn't +// available in that region, the creation fails. message CreateProcessorRequest { // Required. The parent (project and location) under which to create the // processor. Format: `projects/{project}/locations/{location}` @@ -777,13 +841,17 @@ message CreateProcessorRequest { } ]; - // Required. The processor to be created, requires [processor_type] and - // [display_name] to be set. Also, the processor is under CMEK if CMEK fields - // are set. + // Required. The processor to be created, requires + // [Processor.type][google.cloud.documentai.v1beta3.Processor.type] and + // [Processor.display_name]][] to be set. Also, the + // [Processor.kms_key_name][google.cloud.documentai.v1beta3.Processor.kms_key_name] + // field must be set if the processor is under CMEK. Processor processor = 2 [(google.api.field_behavior) = REQUIRED]; } -// Request message for the delete processor method. +// Request message for the +// [DeleteProcessor][google.cloud.documentai.v1beta3.DocumentProcessorService.DeleteProcessor] +// method. message DeleteProcessorRequest { // Required. The processor resource name to be deleted. string name = 1 [ @@ -794,13 +862,17 @@ message DeleteProcessorRequest { ]; } -// The long running operation metadata for delete processor method. +// The long-running operation metadata for the +// [DeleteProcessor][google.cloud.documentai.v1beta3.DocumentProcessorService.DeleteProcessor] +// method. message DeleteProcessorMetadata { - // The basic metadata of the long running operation. + // The basic metadata of the long-running operation. CommonOperationMetadata common_metadata = 5; } -// Request message for the enable processor method. +// Request message for the +// [EnableProcessor][google.cloud.documentai.v1beta3.DocumentProcessorService.EnableProcessor] +// method. message EnableProcessorRequest { // Required. The processor resource name to be enabled. string name = 1 [ @@ -811,17 +883,22 @@ message EnableProcessorRequest { ]; } -// Response message for the enable processor method. -// Intentionally empty proto for adding fields in future. +// Response message for the +// [EnableProcessor][google.cloud.documentai.v1beta3.DocumentProcessorService.EnableProcessor] +// method. Intentionally empty proto for adding fields in future. message EnableProcessorResponse {} -// The long running operation metadata for enable processor method. +// The long-running operation metadata for the +// [EnableProcessor][google.cloud.documentai.v1beta3.DocumentProcessorService.EnableProcessor] +// method. message EnableProcessorMetadata { - // The basic metadata of the long running operation. + // The basic metadata of the long-running operation. CommonOperationMetadata common_metadata = 5; } -// Request message for the disable processor method. +// Request message for the +// [DisableProcessor][google.cloud.documentai.v1beta3.DocumentProcessorService.DisableProcessor] +// method. message DisableProcessorRequest { // Required. The processor resource name to be disabled. string name = 1 [ @@ -832,17 +909,22 @@ message DisableProcessorRequest { ]; } -// Response message for the disable processor method. -// Intentionally empty proto for adding fields in future. +// Response message for the +// [DisableProcessor][google.cloud.documentai.v1beta3.DocumentProcessorService.DisableProcessor] +// method. Intentionally empty proto for adding fields in future. message DisableProcessorResponse {} -// The long running operation metadata for disable processor method. +// The long-running operation metadata for the +// [DisableProcessor][google.cloud.documentai.v1beta3.DocumentProcessorService.DisableProcessor] +// method. message DisableProcessorMetadata { - // The basic metadata of the long running operation. + // The basic metadata of the long-running operation. CommonOperationMetadata common_metadata = 5; } -// Request message for the set default processor version method. +// Request message for the +// [SetDefaultProcessorVersion][google.cloud.documentai.v1beta3.DocumentProcessorService.SetDefaultProcessorVersion] +// method. message SetDefaultProcessorVersionRequest { // Required. The resource name of the // [Processor][google.cloud.documentai.v1beta3.Processor] to change default @@ -866,19 +948,25 @@ message SetDefaultProcessorVersionRequest { ]; } -// Response message for set default processor version method. +// Response message for the +// [SetDefaultProcessorVersion][google.cloud.documentai.v1beta3.DocumentProcessorService.SetDefaultProcessorVersion] +// method. message SetDefaultProcessorVersionResponse {} -// The long running operation metadata for set default processor version +// The long-running operation metadata for the +// [SetDefaultProcessorVersion][google.cloud.documentai.v1beta3.DocumentProcessorService.SetDefaultProcessorVersion] // method. message SetDefaultProcessorVersionMetadata { - // The basic metadata of the long running operation. + // The basic metadata of the long-running operation. CommonOperationMetadata common_metadata = 1; } -// Request message for the create processor version method. +// Request message for the +// [TrainProcessorVersion][google.cloud.documentai.v1beta3.DocumentProcessorService.TrainProcessorVersion] +// method. message TrainProcessorVersionRequest { - // The input data used to train a new `ProcessorVersion`. + // The input data used to train a new + // [ProcessorVersion][google.cloud.documentai.v1beta3.ProcessorVersion]. message InputData { // The documents used for training the new version. BatchDocumentsInputConfig training_documents = 3; @@ -887,6 +975,28 @@ message TrainProcessorVersionRequest { BatchDocumentsInputConfig test_documents = 4; } + // Options to control the training of the Custom Document Extraction (CDE) + // Processor. + message CustomDocumentExtractionOptions { + // Training Method for CDE. TRAINING_METHOD_UNSPECIFIED will fallback to + // MODEL_BASED. + enum TrainingMethod { + TRAINING_METHOD_UNSPECIFIED = 0; + + MODEL_BASED = 1; + + TEMPLATE_BASED = 2; + } + + // Training method to use for CDE training. + TrainingMethod training_method = 3; + } + + oneof processor_flags { + // Options to control Custom Document Extraction (CDE) Processor. + CustomDocumentExtractionOptions custom_document_extraction_options = 5; + } + // Required. The parent (project, location and processor) to create the new // version for. Format: // `projects/{project}/locations/{location}/processors/{processor}`. @@ -904,7 +1014,8 @@ message TrainProcessorVersionRequest { // Optional. The schema the processor version will be trained with. DocumentSchema document_schema = 10 [(google.api.field_behavior) = OPTIONAL]; - // Optional. The input data used to train the `ProcessorVersion`. + // Optional. The input data used to train the + // [ProcessorVersion][google.cloud.documentai.v1beta3.ProcessorVersion]. InputData input_data = 4 [(google.api.field_behavior) = OPTIONAL]; // Optional. The processor version to use as a base for training. This @@ -913,7 +1024,8 @@ message TrainProcessorVersionRequest { string base_processor_version = 8 [(google.api.field_behavior) = OPTIONAL]; } -// The response for the TrainProcessorVersion method. +// The response for +// [TrainProcessorVersion][google.cloud.documentai.v1beta3.DocumentProcessorService.TrainProcessorVersion]. message TrainProcessorVersionResponse { // The resource name of the processor version produced by training. string processor_version = 1; @@ -941,7 +1053,7 @@ message TrainProcessorVersionMetadata { repeated google.rpc.Status dataset_errors = 2; } - // The basic metadata of the long running operation. + // The basic metadata of the long-running operation. CommonOperationMetadata common_metadata = 1; // The training dataset validation information. @@ -951,7 +1063,9 @@ message TrainProcessorVersionMetadata { DatasetValidation test_dataset_validation = 3; } -// Request message for review document method. +// Request message for the +// [ReviewDocument][google.cloud.documentai.v1beta3.DocumentProcessorService.ReviewDocument] +// method. message ReviewDocumentRequest { // The priority level of the human review task. enum Priority { @@ -969,8 +1083,9 @@ message ReviewDocumentRequest { Document inline_document = 4; } - // Required. The resource name of the HumanReviewConfig that the document will - // be reviewed with. + // Required. The resource name of the + // [HumanReviewConfig][google.cloud.documentai.v1beta3.HumanReviewConfig] that + // the document will be reviewed with. string human_review_config = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { @@ -991,7 +1106,9 @@ message ReviewDocumentRequest { DocumentSchema document_schema = 6; } -// Response message for review document method. +// Response message for the +// [ReviewDocument][google.cloud.documentai.v1beta3.DocumentProcessorService.ReviewDocument] +// method. message ReviewDocumentResponse { // Possible states of the review operation. enum State { @@ -1016,9 +1133,11 @@ message ReviewDocumentResponse { string rejection_reason = 3; } -// The long running operation metadata for review document method. +// The long-running operation metadata for the +// [ReviewDocument][google.cloud.documentai.v1beta3.DocumentProcessorService.ReviewDocument] +// method. message ReviewDocumentOperationMetadata { - // State of the longrunning operation. + // State of the long-running operation. enum State { // Unspecified state. STATE_UNSPECIFIED = 0; @@ -1052,14 +1171,16 @@ message ReviewDocumentOperationMetadata { // The last update time of the operation. google.protobuf.Timestamp update_time = 4; - // The basic metadata of the long running operation. + // The basic metadata of the long-running operation. CommonOperationMetadata common_metadata = 5; // The Crowd Compute question ID. string question_id = 6; } -// Evaluates the given ProcessorVersion against the supplied documents. +// Evaluates the given +// [ProcessorVersion][google.cloud.documentai.v1beta3.ProcessorVersion] against +// the supplied documents. message EvaluateProcessorVersionRequest { // Required. The resource name of the // [ProcessorVersion][google.cloud.documentai.v1beta3.ProcessorVersion] to @@ -1078,13 +1199,17 @@ message EvaluateProcessorVersionRequest { [(google.api.field_behavior) = OPTIONAL]; } -// Metadata of the EvaluateProcessorVersion method. +// Metadata of the +// [EvaluateProcessorVersion][google.cloud.documentai.v1beta3.DocumentProcessorService.EvaluateProcessorVersion] +// method. message EvaluateProcessorVersionMetadata { - // The basic metadata of the long running operation. + // The basic metadata of the long-running operation. CommonOperationMetadata common_metadata = 1; } -// Metadata of the EvaluateProcessorVersion method. +// Response of the +// [EvaluateProcessorVersion][google.cloud.documentai.v1beta3.DocumentProcessorService.EvaluateProcessorVersion] +// method. message EvaluateProcessorVersionResponse { // The resource name of the created evaluation. string evaluation = 2; @@ -1103,7 +1228,8 @@ message GetEvaluationRequest { ]; } -// Retrieves a list of evaluations for a given ProcessorVersion. +// Retrieves a list of evaluations for a given +// [ProcessorVersion][google.cloud.documentai.v1beta3.ProcessorVersion]. message ListEvaluationsRequest { // Required. The resource name of the // [ProcessorVersion][google.cloud.documentai.v1beta3.ProcessorVersion] to @@ -1117,8 +1243,8 @@ message ListEvaluationsRequest { ]; // The standard list page size. - // If unspecified, at most 5 evaluations will be returned. - // The maximum value is 100; values above 100 will be coerced to 100. + // If unspecified, at most `5` evaluations are returned. + // The maximum value is `100`. Values above `100` are coerced to `100`. int32 page_size = 2; // A page token, received from a previous `ListEvaluations` call. @@ -1126,7 +1252,7 @@ message ListEvaluationsRequest { string page_token = 3; } -// The response from ListEvaluations. +// The response from `ListEvaluations`. message ListEvaluationsResponse { // The evaluations requested. repeated Evaluation evaluations = 1; @@ -1136,19 +1262,27 @@ message ListEvaluationsResponse { string next_page_token = 2; } -// The request message for the ImportProcessorVersion method. -// This method requires Document AI Service Agent of the destination project in -// the source project's IAM with [Document AI Editor -// role](https://cloud.google.com/document-ai/docs/access-control/iam-roles). +// The request message for the +// [ImportProcessorVersion][google.cloud.documentai.v1beta3.DocumentProcessorService.ImportProcessorVersion] +// method. Requirements: // -// The destination project is specified as part of the `parent` field. -// The source project is specified as part of `source` field. +// - The source processor version and destination processor +// must be in the same location. +// - The Document AI [Service +// Agent](https://cloud.google.com/iam/docs/service-agents) of the destination +// project must have [Document AI Editor +// role](https://cloud.google.com/document-ai/docs/access-control/iam-roles) on +// the source project. // -// The Service Agent for Document AI can be found in -// https://cloud.google.com/iam/docs/service-agents. +// The destination project is specified as part of the +// [parent][google.cloud.documentai.v1beta3.ImportProcessorVersionRequest.parent] +// field. The source project is specified as part of the +// [source][google.cloud.documentai.v1beta3.ImportProcessorVersionRequest.processor_version_source] +// field. message ImportProcessorVersionRequest { oneof source { - // The source processor version to import from. + // The source processor version to import from. The source processor version + // and destination processor need to be in the same environment and region. string processor_version_source = 2 [(google.api.resource_reference) = { type: "documentai.googleapis.com/ProcessorVersion" }]; @@ -1165,7 +1299,9 @@ message ImportProcessorVersionRequest { ]; } -// The response message for the ImportProcessorVersion method. +// The response message for the +// [ImportProcessorVersion][google.cloud.documentai.v1beta3.DocumentProcessorService.ImportProcessorVersion] +// method. message ImportProcessorVersionResponse { // The destination processor version name. string processor_version = 1 [(google.api.resource_reference) = { @@ -1173,9 +1309,10 @@ message ImportProcessorVersionResponse { }]; } -// The long running operation metadata for the ImportProcessorVersion +// The long-running operation metadata for the +// [ImportProcessorVersion][google.cloud.documentai.v1beta3.DocumentProcessorService.ImportProcessorVersion] // method. message ImportProcessorVersionMetadata { - // The basic metadata for the long running operation. + // The basic metadata for the long-running operation. CommonOperationMetadata common_metadata = 1; } diff --git a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/proto/google/cloud/documentai/v1beta3/document_schema.proto b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/proto/google/cloud/documentai/v1beta3/document_schema.proto index b792319da4fe..b685be5f29f2 100644 --- a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/proto/google/cloud/documentai/v1beta3/document_schema.proto +++ b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/proto/google/cloud/documentai/v1beta3/document_schema.proto @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -24,6 +24,18 @@ option java_package = "com.google.cloud.documentai.v1beta3"; option php_namespace = "Google\\Cloud\\DocumentAI\\V1beta3"; option ruby_package = "Google::Cloud::DocumentAI::V1beta3"; +// Metadata about a property. +message PropertyMetadata { + // Whether the property should be considered as "inactive". + bool inactive = 3; +} + +// Metadata about an entity type. +message EntityTypeMetadata { + // Whether the entity type should be considered inactive. + bool inactive = 5; +} + // The schema defines the output of the processed document by a processor. message DocumentSchema { // EntityType is the wrapper of a label of the corresponding model with @@ -38,20 +50,28 @@ message DocumentSchema { // Defines properties that can be part of the entity type. message Property { - // Types of occurrences of the entity type in the document. Note: this - // represents the number of instances of an entity types, not number of - // mentions of a given entity instance. + // Types of occurrences of the entity type in the document. This + // represents the number of instances of instances of an entity, not + // number of mentions of an entity. For example, a bank statement may + // only have one `account_number`, but this account number may be + // mentioned in several places on the document. In this case the + // 'account_number' would be considered a `REQUIRED_ONCE` entity type. If, + // on the other hand, we expect a bank statement to contain the status of + // multiple different accounts for the customers, the occurrence type will + // be set to `REQUIRED_MULTIPLE`. enum OccurrenceType { // Unspecified occurrence type. OCCURRENCE_TYPE_UNSPECIFIED = 0; - // There will be zero or one instance of this entity type. + // There will be zero or one instance of this entity type. The same + // entity instance may be mentioned multiple times. OPTIONAL_ONCE = 1; // The entity type will appear zero or multiple times. OPTIONAL_MULTIPLE = 2; - // The entity type will only appear exactly once. + // The entity type will only appear exactly once. The same + // entity instance may be mentioned multiple times. REQUIRED_ONCE = 3; // The entity type will appear once or more times. @@ -69,6 +89,9 @@ message DocumentSchema { // Occurrence type limits the number of instances an entity type appears // in the document. OccurrenceType occurrence_type = 3; + + // Any additional metadata about the property can be added here. + PropertyMetadata property_metadata = 5; } oneof value_source { @@ -84,16 +107,15 @@ message DocumentSchema { string display_name = 13; // Name of the type. It must be unique within the schema file and - // cannot be a 'Common Type'. Besides that we use the following naming - // conventions: + // cannot be a "Common Type". The following naming conventions are used: // - // - *use `snake_casing`* - // - name matching is case-sensitive + // - Use `snake_casing`. + // - Name matching is case-sensitive. // - Maximum 64 characters. // - Must start with a letter. // - Allowed characters: ASCII letters `[a-z0-9_-]`. (For backward // compatibility internal infrastructure and tooling can handle any ascii - // character) + // character.) // - The `/` is sometimes used to denote a property of a type. For example // `line_item/amount`. This convention is deprecated, but will still be // honored for backward compatibility. @@ -103,14 +125,17 @@ message DocumentSchema { // one should be set. repeated string base_types = 2; - // Describing the nested structure, or composition of an entity. + // Description the nested structure, or composition of an entity. repeated Property properties = 6; + + // Metadata for the entity type. + EntityTypeMetadata entity_type_metadata = 11; } // Metadata for global schema behavior. message Metadata { - // If true, a `document` entity type can be applied to subdocument ( - // splitting). Otherwise, it can only be applied to the entire document + // If true, a `document` entity type can be applied to subdocument + // (splitting). Otherwise, it can only be applied to the entire document // (classification). bool document_splitter = 1; diff --git a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/proto/google/cloud/documentai/v1beta3/document_service.proto b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/proto/google/cloud/documentai/v1beta3/document_service.proto new file mode 100644 index 000000000000..8dcf239e36fd --- /dev/null +++ b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/proto/google/cloud/documentai/v1beta3/document_service.proto @@ -0,0 +1,112 @@ +// Copyright 2023 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.cloud.documentai.v1beta3; + +import "google/api/annotations.proto"; +import "google/api/client.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/cloud/documentai/v1beta3/dataset.proto"; +import "google/cloud/documentai/v1beta3/operation_metadata.proto"; +import "google/longrunning/operations.proto"; +import "google/protobuf/field_mask.proto"; + +option csharp_namespace = "Google.Cloud.DocumentAI.V1Beta3"; +option go_package = "cloud.google.com/go/documentai/apiv1beta3/documentaipb;documentaipb"; +option java_multiple_files = true; +option java_outer_classname = "DocumentAiDocumentService"; +option java_package = "com.google.cloud.documentai.v1beta3"; +option php_namespace = "Google\\Cloud\\DocumentAI\\V1beta3"; +option ruby_package = "Google::Cloud::DocumentAI::V1beta3"; + +// Service to call Cloud DocumentAI to manage document collection (dataset). +service DocumentService { + option (google.api.default_host) = "documentai.googleapis.com"; + option (google.api.oauth_scopes) = + "https://www.googleapis.com/auth/cloud-platform"; + + // Updates metadata associated with a dataset. + rpc UpdateDataset(UpdateDatasetRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + patch: "/v1beta3/{dataset.name=projects/*/locations/*/processors/*/dataset}" + body: "dataset" + }; + option (google.api.method_signature) = "dataset,update_mask"; + option (google.longrunning.operation_info) = { + response_type: "Dataset" + metadata_type: "UpdateDatasetOperationMetadata" + }; + } + + // Gets the `DatasetSchema` of a `Dataset`. + rpc GetDatasetSchema(GetDatasetSchemaRequest) returns (DatasetSchema) { + option (google.api.http) = { + get: "/v1beta3/{name=projects/*/locations/*/processors/*/dataset/datasetSchema}" + }; + option (google.api.method_signature) = "name"; + } + + // Updates a `DatasetSchema`. + rpc UpdateDatasetSchema(UpdateDatasetSchemaRequest) returns (DatasetSchema) { + option (google.api.http) = { + patch: "/v1beta3/{dataset_schema.name=projects/*/locations/*/processors/*/dataset/datasetSchema}" + body: "dataset_schema" + }; + option (google.api.method_signature) = "dataset_schema,update_mask"; + } +} + +message UpdateDatasetRequest { + // Required. The `name` field of the `Dataset` is used to identify the + // resource to be updated. + Dataset dataset = 1 [(google.api.field_behavior) = REQUIRED]; + + // The update mask applies to the resource. + google.protobuf.FieldMask update_mask = 2; +} + +message UpdateDatasetOperationMetadata { + // The basic metadata of the long running operation. + CommonOperationMetadata common_metadata = 1; +} + +// Request for `GetDatasetSchema`. +message GetDatasetSchemaRequest { + // Required. The dataset schema resource name. + // Format: + // projects/{project}/locations/{location}/processors/{processor}/dataset/datasetSchema + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "documentai.googleapis.com/DatasetSchema" + } + ]; + + // If set, only returns the visible fields of the schema. + bool visible_fields_only = 2; +} + +// Request for `UpdateDatasetSchema`. +message UpdateDatasetSchemaRequest { + // Required. The name field of the `DatasetSchema` is used to identify the + // resource to be updated. + DatasetSchema dataset_schema = 1 [(google.api.field_behavior) = REQUIRED]; + + // The update mask applies to the resource. + google.protobuf.FieldMask update_mask = 2; +} diff --git a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/proto/google/cloud/documentai/v1beta3/evaluation.proto b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/proto/google/cloud/documentai/v1beta3/evaluation.proto index e5087c818c21..4de7046b6d70 100644 --- a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/proto/google/cloud/documentai/v1beta3/evaluation.proto +++ b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/proto/google/cloud/documentai/v1beta3/evaluation.proto @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/proto/google/cloud/documentai/v1beta3/geometry.proto b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/proto/google/cloud/documentai/v1beta3/geometry.proto index 05eeac9c4936..da949fb19645 100644 --- a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/proto/google/cloud/documentai/v1beta3/geometry.proto +++ b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/proto/google/cloud/documentai/v1beta3/geometry.proto @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/proto/google/cloud/documentai/v1beta3/operation_metadata.proto b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/proto/google/cloud/documentai/v1beta3/operation_metadata.proto index e8f757a543ba..509109aba0c3 100644 --- a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/proto/google/cloud/documentai/v1beta3/operation_metadata.proto +++ b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/proto/google/cloud/documentai/v1beta3/operation_metadata.proto @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/proto/google/cloud/documentai/v1beta3/processor.proto b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/proto/google/cloud/documentai/v1beta3/processor.proto index 7de236e1fec5..bafcdc0f430c 100644 --- a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/proto/google/cloud/documentai/v1beta3/processor.proto +++ b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/proto/google/cloud/documentai/v1beta3/processor.proto @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -31,10 +31,9 @@ option php_namespace = "Google\\Cloud\\DocumentAI\\V1beta3"; option ruby_package = "Google::Cloud::DocumentAI::V1beta3"; // A processor version is an implementation of a processor. Each processor -// can have multiple versions, pre-trained by Google internally or up-trained -// by the customer. At a time, a processor can only have one default version -// version. So the processor's behavior (when processing documents) is defined -// by a default version +// can have multiple versions, pretrained by Google internally or uptrained +// by the customer. A processor can only have one default version at a time. +// Its document-processing behavior is defined by that version. message ProcessorVersion { option (google.api.resource) = { type: "documentai.googleapis.com/ProcessorVersion" @@ -78,6 +77,9 @@ message ProcessorVersion { // The processor version failed and is in an indeterminate state. FAILED = 7; + + // The processor version is being imported. + IMPORTING = 8; } // The resource name of the processor version. @@ -106,7 +108,7 @@ message ProcessorVersion { // The KMS key version with which data is encrypted. string kms_key_version_name = 10; - // Denotes that this ProcessorVersion is managed by google. + // Denotes that this `ProcessorVersion` is managed by Google. bool google_managed = 11; // If set, information about the eventual deprecation of this version. @@ -163,8 +165,8 @@ message Processor { (google.api.field_behavior) = OUTPUT_ONLY ]; - // The processor type, e.g., `OCR_PROCESSOR`, `INVOICE_PROCESSOR`, etc. - // To get a list of processors types, see + // The processor type, such as: `OCR_PROCESSOR`, `INVOICE_PROCESSOR`. + // To get a list of processor types, see // [FetchProcessorTypes][google.cloud.documentai.v1beta3.DocumentProcessorService.FetchProcessorTypes]. string type = 2; @@ -189,7 +191,7 @@ message Processor { // The time the processor was created. google.protobuf.Timestamp create_time = 7; - // The KMS key used for encryption/decryption in CMEK scenarios. - // See https://cloud.google.com/security-key-management. + // The [KMS key](https://cloud.google.com/security-key-management) used for + // encryption and decryption in CMEK scenarios. string kms_key_name = 8; } diff --git a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/proto/google/cloud/documentai/v1beta3/processor_type.proto b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/proto/google/cloud/documentai/v1beta3/processor_type.proto index 0ff23ffafb3d..2840eb0852ed 100644 --- a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/proto/google/cloud/documentai/v1beta3/processor_type.proto +++ b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/proto/google/cloud/documentai/v1beta3/processor_type.proto @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -37,7 +37,8 @@ message ProcessorType { // The location information about where the processor is available. message LocationInfo { - // The location id, currently must be one of [us, eu]. + // The location ID. For supported locations, refer to [regional and + // multi-regional support](/document-ai/docs/regions). string location_id = 1; } @@ -45,7 +46,7 @@ message ProcessorType { // Format: `projects/{project}/processorTypes/{processor_type}` string name = 1; - // The processor type, e.g., `OCR_PROCESSOR`, `INVOICE_PROCESSOR`, etc. + // The processor type, such as: `OCR_PROCESSOR`, `INVOICE_PROCESSOR`. string type = 2; // The processor category, used by UI to group processor types. diff --git a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorservice/batchprocessdocuments/SyncBatchProcessDocumentsString.java b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorservice/batchprocessdocuments/SyncBatchProcessDocumentsString.java index 27fc81b00c58..2129f36e9a56 100644 --- a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorservice/batchprocessdocuments/SyncBatchProcessDocumentsString.java +++ b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorservice/batchprocessdocuments/SyncBatchProcessDocumentsString.java @@ -18,8 +18,8 @@ // [START documentai_v1beta3_generated_DocumentProcessorService_BatchProcessDocuments_String_sync] import com.google.cloud.documentai.v1beta3.BatchProcessResponse; +import com.google.cloud.documentai.v1beta3.DatasetSchemaName; import com.google.cloud.documentai.v1beta3.DocumentProcessorServiceClient; -import com.google.cloud.documentai.v1beta3.EvaluationName; public class SyncBatchProcessDocumentsString { @@ -35,10 +35,7 @@ public static void syncBatchProcessDocumentsString() throws Exception { // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (DocumentProcessorServiceClient documentProcessorServiceClient = DocumentProcessorServiceClient.create()) { - String name = - EvaluationName.of( - "[PROJECT]", "[LOCATION]", "[PROCESSOR]", "[PROCESSOR_VERSION]", "[EVALUATION]") - .toString(); + String name = DatasetSchemaName.of("[PROJECT]", "[LOCATION]", "[PROCESSOR]").toString(); BatchProcessResponse response = documentProcessorServiceClient.batchProcessDocumentsAsync(name).get(); } diff --git a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorservice/processdocument/SyncProcessDocumentString.java b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorservice/processdocument/SyncProcessDocumentString.java index 900836e1d4dc..ef9bc1cd3aac 100644 --- a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorservice/processdocument/SyncProcessDocumentString.java +++ b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentprocessorservice/processdocument/SyncProcessDocumentString.java @@ -17,8 +17,8 @@ package com.google.cloud.documentai.v1beta3.samples; // [START documentai_v1beta3_generated_DocumentProcessorService_ProcessDocument_String_sync] +import com.google.cloud.documentai.v1beta3.DatasetSchemaName; import com.google.cloud.documentai.v1beta3.DocumentProcessorServiceClient; -import com.google.cloud.documentai.v1beta3.EvaluationName; import com.google.cloud.documentai.v1beta3.ProcessResponse; public class SyncProcessDocumentString { @@ -35,10 +35,7 @@ public static void syncProcessDocumentString() throws Exception { // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (DocumentProcessorServiceClient documentProcessorServiceClient = DocumentProcessorServiceClient.create()) { - String name = - EvaluationName.of( - "[PROJECT]", "[LOCATION]", "[PROCESSOR]", "[PROCESSOR_VERSION]", "[EVALUATION]") - .toString(); + String name = DatasetSchemaName.of("[PROJECT]", "[LOCATION]", "[PROCESSOR]").toString(); ProcessResponse response = documentProcessorServiceClient.processDocument(name); } } diff --git a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentservice/create/SyncCreateSetCredentialsProvider.java b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentservice/create/SyncCreateSetCredentialsProvider.java new file mode 100644 index 000000000000..7815c5c97d04 --- /dev/null +++ b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentservice/create/SyncCreateSetCredentialsProvider.java @@ -0,0 +1,45 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.samples; + +// [START documentai_v1beta3_generated_DocumentService_Create_SetCredentialsProvider_sync] +import com.google.api.gax.core.FixedCredentialsProvider; +import com.google.cloud.documentai.v1beta3.DocumentServiceClient; +import com.google.cloud.documentai.v1beta3.DocumentServiceSettings; +import com.google.cloud.documentai.v1beta3.myCredentials; + +public class SyncCreateSetCredentialsProvider { + + public static void main(String[] args) throws Exception { + syncCreateSetCredentialsProvider(); + } + + public static void syncCreateSetCredentialsProvider() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + DocumentServiceSettings documentServiceSettings = + DocumentServiceSettings.newBuilder() + .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) + .build(); + DocumentServiceClient documentServiceClient = + DocumentServiceClient.create(documentServiceSettings); + } +} +// [END documentai_v1beta3_generated_DocumentService_Create_SetCredentialsProvider_sync] diff --git a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentservice/create/SyncCreateSetCredentialsProvider1.java b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentservice/create/SyncCreateSetCredentialsProvider1.java new file mode 100644 index 000000000000..885e1f14ec00 --- /dev/null +++ b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentservice/create/SyncCreateSetCredentialsProvider1.java @@ -0,0 +1,41 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.samples; + +// [START documentai_v1beta3_generated_DocumentService_Create_SetCredentialsProvider1_sync] +import com.google.cloud.documentai.v1beta3.DocumentServiceClient; +import com.google.cloud.documentai.v1beta3.DocumentServiceSettings; + +public class SyncCreateSetCredentialsProvider1 { + + public static void main(String[] args) throws Exception { + syncCreateSetCredentialsProvider1(); + } + + public static void syncCreateSetCredentialsProvider1() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + DocumentServiceSettings documentServiceSettings = + DocumentServiceSettings.newHttpJsonBuilder().build(); + DocumentServiceClient documentServiceClient = + DocumentServiceClient.create(documentServiceSettings); + } +} +// [END documentai_v1beta3_generated_DocumentService_Create_SetCredentialsProvider1_sync] diff --git a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentservice/create/SyncCreateSetEndpoint.java b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentservice/create/SyncCreateSetEndpoint.java new file mode 100644 index 000000000000..df2a77699ef5 --- /dev/null +++ b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentservice/create/SyncCreateSetEndpoint.java @@ -0,0 +1,42 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.samples; + +// [START documentai_v1beta3_generated_DocumentService_Create_SetEndpoint_sync] +import com.google.cloud.documentai.v1beta3.DocumentServiceClient; +import com.google.cloud.documentai.v1beta3.DocumentServiceSettings; +import com.google.cloud.documentai.v1beta3.myEndpoint; + +public class SyncCreateSetEndpoint { + + public static void main(String[] args) throws Exception { + syncCreateSetEndpoint(); + } + + public static void syncCreateSetEndpoint() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + DocumentServiceSettings documentServiceSettings = + DocumentServiceSettings.newBuilder().setEndpoint(myEndpoint).build(); + DocumentServiceClient documentServiceClient = + DocumentServiceClient.create(documentServiceSettings); + } +} +// [END documentai_v1beta3_generated_DocumentService_Create_SetEndpoint_sync] diff --git a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentservice/getdatasetschema/AsyncGetDatasetSchema.java b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentservice/getdatasetschema/AsyncGetDatasetSchema.java new file mode 100644 index 000000000000..a08ce5de911f --- /dev/null +++ b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentservice/getdatasetschema/AsyncGetDatasetSchema.java @@ -0,0 +1,51 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.samples; + +// [START documentai_v1beta3_generated_DocumentService_GetDatasetSchema_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.documentai.v1beta3.DatasetSchema; +import com.google.cloud.documentai.v1beta3.DatasetSchemaName; +import com.google.cloud.documentai.v1beta3.DocumentServiceClient; +import com.google.cloud.documentai.v1beta3.GetDatasetSchemaRequest; + +public class AsyncGetDatasetSchema { + + public static void main(String[] args) throws Exception { + asyncGetDatasetSchema(); + } + + public static void asyncGetDatasetSchema() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DocumentServiceClient documentServiceClient = DocumentServiceClient.create()) { + GetDatasetSchemaRequest request = + GetDatasetSchemaRequest.newBuilder() + .setName(DatasetSchemaName.of("[PROJECT]", "[LOCATION]", "[PROCESSOR]").toString()) + .setVisibleFieldsOnly(true) + .build(); + ApiFuture future = + documentServiceClient.getDatasetSchemaCallable().futureCall(request); + // Do something. + DatasetSchema response = future.get(); + } + } +} +// [END documentai_v1beta3_generated_DocumentService_GetDatasetSchema_async] diff --git a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentservice/getdatasetschema/SyncGetDatasetSchema.java b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentservice/getdatasetschema/SyncGetDatasetSchema.java new file mode 100644 index 000000000000..5039f9ad3388 --- /dev/null +++ b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentservice/getdatasetschema/SyncGetDatasetSchema.java @@ -0,0 +1,47 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.samples; + +// [START documentai_v1beta3_generated_DocumentService_GetDatasetSchema_sync] +import com.google.cloud.documentai.v1beta3.DatasetSchema; +import com.google.cloud.documentai.v1beta3.DatasetSchemaName; +import com.google.cloud.documentai.v1beta3.DocumentServiceClient; +import com.google.cloud.documentai.v1beta3.GetDatasetSchemaRequest; + +public class SyncGetDatasetSchema { + + public static void main(String[] args) throws Exception { + syncGetDatasetSchema(); + } + + public static void syncGetDatasetSchema() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DocumentServiceClient documentServiceClient = DocumentServiceClient.create()) { + GetDatasetSchemaRequest request = + GetDatasetSchemaRequest.newBuilder() + .setName(DatasetSchemaName.of("[PROJECT]", "[LOCATION]", "[PROCESSOR]").toString()) + .setVisibleFieldsOnly(true) + .build(); + DatasetSchema response = documentServiceClient.getDatasetSchema(request); + } + } +} +// [END documentai_v1beta3_generated_DocumentService_GetDatasetSchema_sync] diff --git a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentservice/getdatasetschema/SyncGetDatasetSchemaDatasetschemaname.java b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentservice/getdatasetschema/SyncGetDatasetSchemaDatasetschemaname.java new file mode 100644 index 000000000000..eaf06a096c41 --- /dev/null +++ b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentservice/getdatasetschema/SyncGetDatasetSchemaDatasetschemaname.java @@ -0,0 +1,42 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.samples; + +// [START documentai_v1beta3_generated_DocumentService_GetDatasetSchema_Datasetschemaname_sync] +import com.google.cloud.documentai.v1beta3.DatasetSchema; +import com.google.cloud.documentai.v1beta3.DatasetSchemaName; +import com.google.cloud.documentai.v1beta3.DocumentServiceClient; + +public class SyncGetDatasetSchemaDatasetschemaname { + + public static void main(String[] args) throws Exception { + syncGetDatasetSchemaDatasetschemaname(); + } + + public static void syncGetDatasetSchemaDatasetschemaname() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DocumentServiceClient documentServiceClient = DocumentServiceClient.create()) { + DatasetSchemaName name = DatasetSchemaName.of("[PROJECT]", "[LOCATION]", "[PROCESSOR]"); + DatasetSchema response = documentServiceClient.getDatasetSchema(name); + } + } +} +// [END documentai_v1beta3_generated_DocumentService_GetDatasetSchema_Datasetschemaname_sync] diff --git a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentservice/getdatasetschema/SyncGetDatasetSchemaString.java b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentservice/getdatasetschema/SyncGetDatasetSchemaString.java new file mode 100644 index 000000000000..afef83537945 --- /dev/null +++ b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentservice/getdatasetschema/SyncGetDatasetSchemaString.java @@ -0,0 +1,42 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.samples; + +// [START documentai_v1beta3_generated_DocumentService_GetDatasetSchema_String_sync] +import com.google.cloud.documentai.v1beta3.DatasetSchema; +import com.google.cloud.documentai.v1beta3.DatasetSchemaName; +import com.google.cloud.documentai.v1beta3.DocumentServiceClient; + +public class SyncGetDatasetSchemaString { + + public static void main(String[] args) throws Exception { + syncGetDatasetSchemaString(); + } + + public static void syncGetDatasetSchemaString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DocumentServiceClient documentServiceClient = DocumentServiceClient.create()) { + String name = DatasetSchemaName.of("[PROJECT]", "[LOCATION]", "[PROCESSOR]").toString(); + DatasetSchema response = documentServiceClient.getDatasetSchema(name); + } + } +} +// [END documentai_v1beta3_generated_DocumentService_GetDatasetSchema_String_sync] diff --git a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentservice/getlocation/AsyncGetLocation.java b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentservice/getlocation/AsyncGetLocation.java new file mode 100644 index 000000000000..b2cda4aac6ca --- /dev/null +++ b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentservice/getlocation/AsyncGetLocation.java @@ -0,0 +1,45 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.samples; + +// [START documentai_v1beta3_generated_DocumentService_GetLocation_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.documentai.v1beta3.DocumentServiceClient; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.Location; + +public class AsyncGetLocation { + + public static void main(String[] args) throws Exception { + asyncGetLocation(); + } + + public static void asyncGetLocation() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DocumentServiceClient documentServiceClient = DocumentServiceClient.create()) { + GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build(); + ApiFuture future = documentServiceClient.getLocationCallable().futureCall(request); + // Do something. + Location response = future.get(); + } + } +} +// [END documentai_v1beta3_generated_DocumentService_GetLocation_async] diff --git a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentservice/getlocation/SyncGetLocation.java b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentservice/getlocation/SyncGetLocation.java new file mode 100644 index 000000000000..c198030a5336 --- /dev/null +++ b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentservice/getlocation/SyncGetLocation.java @@ -0,0 +1,42 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.samples; + +// [START documentai_v1beta3_generated_DocumentService_GetLocation_sync] +import com.google.cloud.documentai.v1beta3.DocumentServiceClient; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.Location; + +public class SyncGetLocation { + + public static void main(String[] args) throws Exception { + syncGetLocation(); + } + + public static void syncGetLocation() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DocumentServiceClient documentServiceClient = DocumentServiceClient.create()) { + GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build(); + Location response = documentServiceClient.getLocation(request); + } + } +} +// [END documentai_v1beta3_generated_DocumentService_GetLocation_sync] diff --git a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentservice/listlocations/AsyncListLocations.java b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentservice/listlocations/AsyncListLocations.java new file mode 100644 index 000000000000..088a60b3b2d3 --- /dev/null +++ b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentservice/listlocations/AsyncListLocations.java @@ -0,0 +1,54 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.samples; + +// [START documentai_v1beta3_generated_DocumentService_ListLocations_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.documentai.v1beta3.DocumentServiceClient; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.Location; + +public class AsyncListLocations { + + public static void main(String[] args) throws Exception { + asyncListLocations(); + } + + public static void asyncListLocations() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DocumentServiceClient documentServiceClient = DocumentServiceClient.create()) { + ListLocationsRequest request = + ListLocationsRequest.newBuilder() + .setName("name3373707") + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + ApiFuture future = + documentServiceClient.listLocationsPagedCallable().futureCall(request); + // Do something. + for (Location element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END documentai_v1beta3_generated_DocumentService_ListLocations_async] diff --git a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentservice/listlocations/AsyncListLocationsPaged.java b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentservice/listlocations/AsyncListLocationsPaged.java new file mode 100644 index 000000000000..47ff57cb515d --- /dev/null +++ b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentservice/listlocations/AsyncListLocationsPaged.java @@ -0,0 +1,62 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.samples; + +// [START documentai_v1beta3_generated_DocumentService_ListLocations_Paged_async] +import com.google.cloud.documentai.v1beta3.DocumentServiceClient; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.common.base.Strings; + +public class AsyncListLocationsPaged { + + public static void main(String[] args) throws Exception { + asyncListLocationsPaged(); + } + + public static void asyncListLocationsPaged() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DocumentServiceClient documentServiceClient = DocumentServiceClient.create()) { + ListLocationsRequest request = + ListLocationsRequest.newBuilder() + .setName("name3373707") + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + while (true) { + ListLocationsResponse response = + documentServiceClient.listLocationsCallable().call(request); + for (Location element : response.getLocationsList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END documentai_v1beta3_generated_DocumentService_ListLocations_Paged_async] diff --git a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentservice/listlocations/SyncListLocations.java b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentservice/listlocations/SyncListLocations.java new file mode 100644 index 000000000000..999adebb35a5 --- /dev/null +++ b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentservice/listlocations/SyncListLocations.java @@ -0,0 +1,50 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.samples; + +// [START documentai_v1beta3_generated_DocumentService_ListLocations_sync] +import com.google.cloud.documentai.v1beta3.DocumentServiceClient; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.Location; + +public class SyncListLocations { + + public static void main(String[] args) throws Exception { + syncListLocations(); + } + + public static void syncListLocations() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DocumentServiceClient documentServiceClient = DocumentServiceClient.create()) { + ListLocationsRequest request = + ListLocationsRequest.newBuilder() + .setName("name3373707") + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + for (Location element : documentServiceClient.listLocations(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END documentai_v1beta3_generated_DocumentService_ListLocations_sync] diff --git a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentservice/updatedataset/AsyncUpdateDataset.java b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentservice/updatedataset/AsyncUpdateDataset.java new file mode 100644 index 000000000000..95e0ee4a9467 --- /dev/null +++ b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentservice/updatedataset/AsyncUpdateDataset.java @@ -0,0 +1,52 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.samples; + +// [START documentai_v1beta3_generated_DocumentService_UpdateDataset_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.documentai.v1beta3.Dataset; +import com.google.cloud.documentai.v1beta3.DocumentServiceClient; +import com.google.cloud.documentai.v1beta3.UpdateDatasetRequest; +import com.google.longrunning.Operation; +import com.google.protobuf.FieldMask; + +public class AsyncUpdateDataset { + + public static void main(String[] args) throws Exception { + asyncUpdateDataset(); + } + + public static void asyncUpdateDataset() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DocumentServiceClient documentServiceClient = DocumentServiceClient.create()) { + UpdateDatasetRequest request = + UpdateDatasetRequest.newBuilder() + .setDataset(Dataset.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + ApiFuture future = + documentServiceClient.updateDatasetCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END documentai_v1beta3_generated_DocumentService_UpdateDataset_async] diff --git a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentservice/updatedataset/AsyncUpdateDatasetLRO.java b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentservice/updatedataset/AsyncUpdateDatasetLRO.java new file mode 100644 index 000000000000..bc16b9339a84 --- /dev/null +++ b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentservice/updatedataset/AsyncUpdateDatasetLRO.java @@ -0,0 +1,52 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.samples; + +// [START documentai_v1beta3_generated_DocumentService_UpdateDataset_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.documentai.v1beta3.Dataset; +import com.google.cloud.documentai.v1beta3.DocumentServiceClient; +import com.google.cloud.documentai.v1beta3.UpdateDatasetOperationMetadata; +import com.google.cloud.documentai.v1beta3.UpdateDatasetRequest; +import com.google.protobuf.FieldMask; + +public class AsyncUpdateDatasetLRO { + + public static void main(String[] args) throws Exception { + asyncUpdateDatasetLRO(); + } + + public static void asyncUpdateDatasetLRO() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DocumentServiceClient documentServiceClient = DocumentServiceClient.create()) { + UpdateDatasetRequest request = + UpdateDatasetRequest.newBuilder() + .setDataset(Dataset.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + OperationFuture future = + documentServiceClient.updateDatasetOperationCallable().futureCall(request); + // Do something. + Dataset response = future.get(); + } + } +} +// [END documentai_v1beta3_generated_DocumentService_UpdateDataset_LRO_async] diff --git a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentservice/updatedataset/SyncUpdateDataset.java b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentservice/updatedataset/SyncUpdateDataset.java new file mode 100644 index 000000000000..5aafa94a6070 --- /dev/null +++ b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentservice/updatedataset/SyncUpdateDataset.java @@ -0,0 +1,47 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.samples; + +// [START documentai_v1beta3_generated_DocumentService_UpdateDataset_sync] +import com.google.cloud.documentai.v1beta3.Dataset; +import com.google.cloud.documentai.v1beta3.DocumentServiceClient; +import com.google.cloud.documentai.v1beta3.UpdateDatasetRequest; +import com.google.protobuf.FieldMask; + +public class SyncUpdateDataset { + + public static void main(String[] args) throws Exception { + syncUpdateDataset(); + } + + public static void syncUpdateDataset() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DocumentServiceClient documentServiceClient = DocumentServiceClient.create()) { + UpdateDatasetRequest request = + UpdateDatasetRequest.newBuilder() + .setDataset(Dataset.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + Dataset response = documentServiceClient.updateDatasetAsync(request).get(); + } + } +} +// [END documentai_v1beta3_generated_DocumentService_UpdateDataset_sync] diff --git a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentservice/updatedataset/SyncUpdateDatasetDatasetFieldmask.java b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentservice/updatedataset/SyncUpdateDatasetDatasetFieldmask.java new file mode 100644 index 000000000000..48f3fe3f53f2 --- /dev/null +++ b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentservice/updatedataset/SyncUpdateDatasetDatasetFieldmask.java @@ -0,0 +1,43 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.samples; + +// [START documentai_v1beta3_generated_DocumentService_UpdateDataset_DatasetFieldmask_sync] +import com.google.cloud.documentai.v1beta3.Dataset; +import com.google.cloud.documentai.v1beta3.DocumentServiceClient; +import com.google.protobuf.FieldMask; + +public class SyncUpdateDatasetDatasetFieldmask { + + public static void main(String[] args) throws Exception { + syncUpdateDatasetDatasetFieldmask(); + } + + public static void syncUpdateDatasetDatasetFieldmask() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DocumentServiceClient documentServiceClient = DocumentServiceClient.create()) { + Dataset dataset = Dataset.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + Dataset response = documentServiceClient.updateDatasetAsync(dataset, updateMask).get(); + } + } +} +// [END documentai_v1beta3_generated_DocumentService_UpdateDataset_DatasetFieldmask_sync] diff --git a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentservice/updatedatasetschema/AsyncUpdateDatasetSchema.java b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentservice/updatedatasetschema/AsyncUpdateDatasetSchema.java new file mode 100644 index 000000000000..e904442a08b6 --- /dev/null +++ b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentservice/updatedatasetschema/AsyncUpdateDatasetSchema.java @@ -0,0 +1,51 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.samples; + +// [START documentai_v1beta3_generated_DocumentService_UpdateDatasetSchema_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.documentai.v1beta3.DatasetSchema; +import com.google.cloud.documentai.v1beta3.DocumentServiceClient; +import com.google.cloud.documentai.v1beta3.UpdateDatasetSchemaRequest; +import com.google.protobuf.FieldMask; + +public class AsyncUpdateDatasetSchema { + + public static void main(String[] args) throws Exception { + asyncUpdateDatasetSchema(); + } + + public static void asyncUpdateDatasetSchema() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DocumentServiceClient documentServiceClient = DocumentServiceClient.create()) { + UpdateDatasetSchemaRequest request = + UpdateDatasetSchemaRequest.newBuilder() + .setDatasetSchema(DatasetSchema.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + ApiFuture future = + documentServiceClient.updateDatasetSchemaCallable().futureCall(request); + // Do something. + DatasetSchema response = future.get(); + } + } +} +// [END documentai_v1beta3_generated_DocumentService_UpdateDatasetSchema_async] diff --git a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentservice/updatedatasetschema/SyncUpdateDatasetSchema.java b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentservice/updatedatasetschema/SyncUpdateDatasetSchema.java new file mode 100644 index 000000000000..768e9634319c --- /dev/null +++ b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentservice/updatedatasetschema/SyncUpdateDatasetSchema.java @@ -0,0 +1,47 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.samples; + +// [START documentai_v1beta3_generated_DocumentService_UpdateDatasetSchema_sync] +import com.google.cloud.documentai.v1beta3.DatasetSchema; +import com.google.cloud.documentai.v1beta3.DocumentServiceClient; +import com.google.cloud.documentai.v1beta3.UpdateDatasetSchemaRequest; +import com.google.protobuf.FieldMask; + +public class SyncUpdateDatasetSchema { + + public static void main(String[] args) throws Exception { + syncUpdateDatasetSchema(); + } + + public static void syncUpdateDatasetSchema() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DocumentServiceClient documentServiceClient = DocumentServiceClient.create()) { + UpdateDatasetSchemaRequest request = + UpdateDatasetSchemaRequest.newBuilder() + .setDatasetSchema(DatasetSchema.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + DatasetSchema response = documentServiceClient.updateDatasetSchema(request); + } + } +} +// [END documentai_v1beta3_generated_DocumentService_UpdateDatasetSchema_sync] diff --git a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentservice/updatedatasetschema/SyncUpdateDatasetSchemaDatasetschemaFieldmask.java b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentservice/updatedatasetschema/SyncUpdateDatasetSchemaDatasetschemaFieldmask.java new file mode 100644 index 000000000000..0832252712a0 --- /dev/null +++ b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentservice/updatedatasetschema/SyncUpdateDatasetSchemaDatasetschemaFieldmask.java @@ -0,0 +1,43 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.samples; + +// [START documentai_v1beta3_generated_DocumentService_UpdateDatasetSchema_DatasetschemaFieldmask_sync] +import com.google.cloud.documentai.v1beta3.DatasetSchema; +import com.google.cloud.documentai.v1beta3.DocumentServiceClient; +import com.google.protobuf.FieldMask; + +public class SyncUpdateDatasetSchemaDatasetschemaFieldmask { + + public static void main(String[] args) throws Exception { + syncUpdateDatasetSchemaDatasetschemaFieldmask(); + } + + public static void syncUpdateDatasetSchemaDatasetschemaFieldmask() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DocumentServiceClient documentServiceClient = DocumentServiceClient.create()) { + DatasetSchema datasetSchema = DatasetSchema.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + DatasetSchema response = documentServiceClient.updateDatasetSchema(datasetSchema, updateMask); + } + } +} +// [END documentai_v1beta3_generated_DocumentService_UpdateDatasetSchema_DatasetschemaFieldmask_sync] diff --git a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentservicesettings/getdatasetschema/SyncGetDatasetSchema.java b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentservicesettings/getdatasetschema/SyncGetDatasetSchema.java new file mode 100644 index 000000000000..753dc01b7b54 --- /dev/null +++ b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/documentservicesettings/getdatasetschema/SyncGetDatasetSchema.java @@ -0,0 +1,49 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.samples; + +// [START documentai_v1beta3_generated_DocumentServiceSettings_GetDatasetSchema_sync] +import com.google.cloud.documentai.v1beta3.DocumentServiceSettings; +import java.time.Duration; + +public class SyncGetDatasetSchema { + + public static void main(String[] args) throws Exception { + syncGetDatasetSchema(); + } + + public static void syncGetDatasetSchema() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + DocumentServiceSettings.Builder documentServiceSettingsBuilder = + DocumentServiceSettings.newBuilder(); + documentServiceSettingsBuilder + .getDatasetSchemaSettings() + .setRetrySettings( + documentServiceSettingsBuilder + .getDatasetSchemaSettings() + .getRetrySettings() + .toBuilder() + .setTotalTimeout(Duration.ofSeconds(30)) + .build()); + DocumentServiceSettings documentServiceSettings = documentServiceSettingsBuilder.build(); + } +} +// [END documentai_v1beta3_generated_DocumentServiceSettings_GetDatasetSchema_sync] diff --git a/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/stub/documentservicestubsettings/getdatasetschema/SyncGetDatasetSchema.java b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/stub/documentservicestubsettings/getdatasetschema/SyncGetDatasetSchema.java new file mode 100644 index 000000000000..51bddd9cf383 --- /dev/null +++ b/java-document-ai/samples/snippets/generated/com/google/cloud/documentai/v1beta3/stub/documentservicestubsettings/getdatasetschema/SyncGetDatasetSchema.java @@ -0,0 +1,49 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.stub.samples; + +// [START documentai_v1beta3_generated_DocumentServiceStubSettings_GetDatasetSchema_sync] +import com.google.cloud.documentai.v1beta3.stub.DocumentServiceStubSettings; +import java.time.Duration; + +public class SyncGetDatasetSchema { + + public static void main(String[] args) throws Exception { + syncGetDatasetSchema(); + } + + public static void syncGetDatasetSchema() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + DocumentServiceStubSettings.Builder documentServiceSettingsBuilder = + DocumentServiceStubSettings.newBuilder(); + documentServiceSettingsBuilder + .getDatasetSchemaSettings() + .setRetrySettings( + documentServiceSettingsBuilder + .getDatasetSchemaSettings() + .getRetrySettings() + .toBuilder() + .setTotalTimeout(Duration.ofSeconds(30)) + .build()); + DocumentServiceStubSettings documentServiceSettings = documentServiceSettingsBuilder.build(); + } +} +// [END documentai_v1beta3_generated_DocumentServiceStubSettings_GetDatasetSchema_sync]