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 + * try (DocumentUnderstandingServiceClient documentUnderstandingServiceClient = + * DocumentUnderstandingServiceClient.create()) { + * List+ * *requests = new ArrayList<>(); + * BatchProcessDocumentsResponse response = + * documentUnderstandingServiceClient.batchProcessDocumentsAsync(requests).get(); + * } + * }
Note: close() needs to be called on the DocumentUnderstandingServiceClient object to clean up * resources such as threads. In the example above, try-with-resources is used, which automatically * calls close(). @@ -161,6 +170,17 @@ public final OperationsClient getOperationsClient() { /** * LRO endpoint to batch process many documents. * + *
Sample code: + * + *
{@code + * try (DocumentUnderstandingServiceClient documentUnderstandingServiceClient = + * DocumentUnderstandingServiceClient.create()) { + * List+ * * @param requests Required. Individual requests for each document. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ @@ -175,6 +195,21 @@ public final OperationsClient getOperationsClient() { /** * LRO endpoint to batch process many documents. * + *requests = new ArrayList<>(); + * BatchProcessDocumentsResponse response = + * documentUnderstandingServiceClient.batchProcessDocumentsAsync(requests).get(); + * } + * }
Sample code: + * + *
{@code + * try (DocumentUnderstandingServiceClient documentUnderstandingServiceClient = + * DocumentUnderstandingServiceClient.create()) { + * BatchProcessDocumentsRequest request = + * BatchProcessDocumentsRequest.newBuilder() + * .addAllRequests(new ArrayList+ * * @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 */ @@ -188,6 +223,23 @@ public final OperationsClient getOperationsClient() { * LRO endpoint to batch process many documents. * *()) + * .setParent("parent-995424086") + * .build(); + * BatchProcessDocumentsResponse response = + * documentUnderstandingServiceClient.batchProcessDocumentsAsync(request).get(); + * } + * }
Sample code: + * + *
{@code + * try (DocumentUnderstandingServiceClient documentUnderstandingServiceClient = + * DocumentUnderstandingServiceClient.create()) { + * BatchProcessDocumentsRequest request = + * BatchProcessDocumentsRequest.newBuilder() + * .addAllRequests(new ArrayList*/ public final OperationCallable< BatchProcessDocumentsRequest, BatchProcessDocumentsResponse, OperationMetadata> @@ -200,6 +252,21 @@ public final OperationsClient getOperationsClient() { * LRO endpoint to batch process many documents. * *()) + * .setParent("parent-995424086") + * .build(); + * OperationFuture future = + * documentUnderstandingServiceClient + * .batchProcessDocumentsOperationCallable() + * .futureCall(request); + * // Do something. + * BatchProcessDocumentsResponse response = future.get(); + * } + * }
Sample code: + * + *
{@code + * try (DocumentUnderstandingServiceClient documentUnderstandingServiceClient = + * DocumentUnderstandingServiceClient.create()) { + * BatchProcessDocumentsRequest request = + * BatchProcessDocumentsRequest.newBuilder() + * .addAllRequests(new ArrayList*/ public final UnaryCallable()) + * .setParent("parent-995424086") + * .build(); + * ApiFuture future = + * documentUnderstandingServiceClient.batchProcessDocumentsCallable().futureCall(request); + * // Do something. + * Operation response = future.get(); + * } + * }
Sample for DocumentUnderstandingServiceClient: + * + *
{@code + * try (DocumentUnderstandingServiceClient documentUnderstandingServiceClient = + * DocumentUnderstandingServiceClient.create()) { + * List*/ @Generated("by gapic-generator-java") package com.google.cloud.documentai.v1beta1; diff --git a/google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1beta2/DocumentUnderstandingServiceClient.java b/google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1beta2/DocumentUnderstandingServiceClient.java index 3273eb66..ce355449 100644 --- a/google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1beta2/DocumentUnderstandingServiceClient.java +++ b/google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1beta2/DocumentUnderstandingServiceClient.java @@ -39,6 +39,25 @@ *requests = new ArrayList<>(); + * BatchProcessDocumentsResponse response = + * documentUnderstandingServiceClient.batchProcessDocumentsAsync(requests).get(); + * } + * }
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 + * try (DocumentUnderstandingServiceClient documentUnderstandingServiceClient = + * DocumentUnderstandingServiceClient.create()) { + * ProcessDocumentRequest request = + * ProcessDocumentRequest.newBuilder() + * .setParent("parent-995424086") + * .setInputConfig(InputConfig.newBuilder().build()) + * .setOutputConfig(OutputConfig.newBuilder().build()) + * .setDocumentType("documentType-1473196299") + * .setTableExtractionParams(TableExtractionParams.newBuilder().build()) + * .setFormExtractionParams(FormExtractionParams.newBuilder().build()) + * .setEntityExtractionParams(EntityExtractionParams.newBuilder().build()) + * .setOcrParams(OcrParams.newBuilder().build()) + * .setAutomlParams(AutoMlParams.newBuilder().build()) + * .build(); + * Document response = documentUnderstandingServiceClient.processDocument(request); + * } + * }+ * *
Note: close() needs to be called on the DocumentUnderstandingServiceClient object to clean up * resources such as threads. In the example above, try-with-resources is used, which automatically * calls close(). @@ -162,6 +181,17 @@ public final OperationsClient getOperationsClient() { * LRO endpoint to batch process many documents. The output is written to Cloud Storage as JSON in * the [Document] format. * + *
Sample code: + * + *
{@code + * try (DocumentUnderstandingServiceClient documentUnderstandingServiceClient = + * DocumentUnderstandingServiceClient.create()) { + * List+ * * @param requests Required. Individual requests for each document. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ @@ -177,6 +207,21 @@ public final OperationsClient getOperationsClient() { * LRO endpoint to batch process many documents. The output is written to Cloud Storage as JSON in * the [Document] format. * + *requests = new ArrayList<>(); + * BatchProcessDocumentsResponse response = + * documentUnderstandingServiceClient.batchProcessDocumentsAsync(requests).get(); + * } + * }
Sample code: + * + *
{@code + * try (DocumentUnderstandingServiceClient documentUnderstandingServiceClient = + * DocumentUnderstandingServiceClient.create()) { + * BatchProcessDocumentsRequest request = + * BatchProcessDocumentsRequest.newBuilder() + * .addAllRequests(new ArrayList+ * * @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 */ @@ -191,6 +236,23 @@ public final OperationsClient getOperationsClient() { * the [Document] format. * *()) + * .setParent("parent-995424086") + * .build(); + * BatchProcessDocumentsResponse response = + * documentUnderstandingServiceClient.batchProcessDocumentsAsync(request).get(); + * } + * }
Sample code: + * + *
{@code + * try (DocumentUnderstandingServiceClient documentUnderstandingServiceClient = + * DocumentUnderstandingServiceClient.create()) { + * BatchProcessDocumentsRequest request = + * BatchProcessDocumentsRequest.newBuilder() + * .addAllRequests(new ArrayList*/ public final OperationCallable< BatchProcessDocumentsRequest, BatchProcessDocumentsResponse, OperationMetadata> @@ -204,6 +266,21 @@ public final OperationsClient getOperationsClient() { * the [Document] format. * *()) + * .setParent("parent-995424086") + * .build(); + * OperationFuture future = + * documentUnderstandingServiceClient + * .batchProcessDocumentsOperationCallable() + * .futureCall(request); + * // Do something. + * BatchProcessDocumentsResponse response = future.get(); + * } + * }
Sample code: + * + *
{@code + * try (DocumentUnderstandingServiceClient documentUnderstandingServiceClient = + * DocumentUnderstandingServiceClient.create()) { + * BatchProcessDocumentsRequest request = + * BatchProcessDocumentsRequest.newBuilder() + * .addAllRequests(new ArrayList*/ public final UnaryCallable()) + * .setParent("parent-995424086") + * .build(); + * ApiFuture future = + * documentUnderstandingServiceClient.batchProcessDocumentsCallable().futureCall(request); + * // Do something. + * Operation response = future.get(); + * } + * }
Sample code: + * + *
{@code + * try (DocumentUnderstandingServiceClient documentUnderstandingServiceClient = + * DocumentUnderstandingServiceClient.create()) { + * ProcessDocumentRequest request = + * ProcessDocumentRequest.newBuilder() + * .setParent("parent-995424086") + * .setInputConfig(InputConfig.newBuilder().build()) + * .setOutputConfig(OutputConfig.newBuilder().build()) + * .setDocumentType("documentType-1473196299") + * .setTableExtractionParams(TableExtractionParams.newBuilder().build()) + * .setFormExtractionParams(FormExtractionParams.newBuilder().build()) + * .setEntityExtractionParams(EntityExtractionParams.newBuilder().build()) + * .setOcrParams(OcrParams.newBuilder().build()) + * .setAutomlParams(AutoMlParams.newBuilder().build()) + * .build(); + * Document response = documentUnderstandingServiceClient.processDocument(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 */ @@ -226,6 +324,28 @@ public final Document processDocument(ProcessDocumentRequest request) { * Processes a single document. * *
Sample code: + * + *
{@code + * try (DocumentUnderstandingServiceClient documentUnderstandingServiceClient = + * DocumentUnderstandingServiceClient.create()) { + * ProcessDocumentRequest request = + * ProcessDocumentRequest.newBuilder() + * .setParent("parent-995424086") + * .setInputConfig(InputConfig.newBuilder().build()) + * .setOutputConfig(OutputConfig.newBuilder().build()) + * .setDocumentType("documentType-1473196299") + * .setTableExtractionParams(TableExtractionParams.newBuilder().build()) + * .setFormExtractionParams(FormExtractionParams.newBuilder().build()) + * .setEntityExtractionParams(EntityExtractionParams.newBuilder().build()) + * .setOcrParams(OcrParams.newBuilder().build()) + * .setAutomlParams(AutoMlParams.newBuilder().build()) + * .build(); + * ApiFuture*/ public final UnaryCallablefuture = + * documentUnderstandingServiceClient.processDocumentCallable().futureCall(request); + * // Do something. + * Document response = future.get(); + * } + * }
Sample for DocumentUnderstandingServiceClient: + * + *
{@code + * try (DocumentUnderstandingServiceClient documentUnderstandingServiceClient = + * DocumentUnderstandingServiceClient.create()) { + * ProcessDocumentRequest request = + * ProcessDocumentRequest.newBuilder() + * .setParent("parent-995424086") + * .setInputConfig(InputConfig.newBuilder().build()) + * .setOutputConfig(OutputConfig.newBuilder().build()) + * .setDocumentType("documentType-1473196299") + * .setTableExtractionParams(TableExtractionParams.newBuilder().build()) + * .setFormExtractionParams(FormExtractionParams.newBuilder().build()) + * .setEntityExtractionParams(EntityExtractionParams.newBuilder().build()) + * .setOcrParams(OcrParams.newBuilder().build()) + * .setAutomlParams(AutoMlParams.newBuilder().build()) + * .build(); + * Document response = documentUnderstandingServiceClient.processDocument(request); + * } + * }*/ @Generated("by gapic-generator-java") package com.google.cloud.documentai.v1beta2; diff --git a/google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1beta3/DocumentProcessorServiceClient.java b/google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1beta3/DocumentProcessorServiceClient.java index b1be2943..98e43921 100644 --- a/google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1beta3/DocumentProcessorServiceClient.java +++ b/google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1beta3/DocumentProcessorServiceClient.java @@ -39,6 +39,14 @@ *
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 + * try (DocumentProcessorServiceClient documentProcessorServiceClient = + * DocumentProcessorServiceClient.create()) { + * ProcessorName name = ProcessorName.of("[PROJECT]", "[LOCATION]", "[PROCESSOR]"); + * ProcessResponse response = documentProcessorServiceClient.processDocument(name); + * } + * }+ * *
Note: close() needs to be called on the DocumentProcessorServiceClient object to clean up * resources such as threads. In the example above, try-with-resources is used, which automatically * calls close(). @@ -159,6 +167,16 @@ public final OperationsClient getOperationsClient() { /** * Processes a single document. * + *
Sample code: + * + *
{@code + * try (DocumentProcessorServiceClient documentProcessorServiceClient = + * DocumentProcessorServiceClient.create()) { + * ProcessorName name = ProcessorName.of("[PROJECT]", "[LOCATION]", "[PROCESSOR]"); + * ProcessResponse response = documentProcessorServiceClient.processDocument(name); + * } + * }+ * * @param name Required. The processor resource name. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ @@ -172,6 +190,16 @@ public final ProcessResponse processDocument(ProcessorName name) { /** * Processes a single document. * + *
Sample code: + * + *
{@code + * try (DocumentProcessorServiceClient documentProcessorServiceClient = + * DocumentProcessorServiceClient.create()) { + * String name = ProcessorName.of("[PROJECT]", "[LOCATION]", "[PROCESSOR]").toString(); + * ProcessResponse response = documentProcessorServiceClient.processDocument(name); + * } + * }+ * * @param name Required. The processor resource name. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ @@ -184,6 +212,21 @@ public final ProcessResponse processDocument(String name) { /** * Processes a single document. * + *
Sample code: + * + *
{@code + * try (DocumentProcessorServiceClient documentProcessorServiceClient = + * DocumentProcessorServiceClient.create()) { + * ProcessRequest request = + * ProcessRequest.newBuilder() + * .setName(ProcessorName.of("[PROJECT]", "[LOCATION]", "[PROCESSOR]").toString()) + * .setDocument(Document.newBuilder().build()) + * .setSkipHumanReview(true) + * .build(); + * ProcessResponse response = documentProcessorServiceClient.processDocument(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 */ @@ -196,6 +239,22 @@ public final ProcessResponse processDocument(ProcessRequest request) { * Processes a single document. * *
Sample code: + * + *
{@code + * try (DocumentProcessorServiceClient documentProcessorServiceClient = + * DocumentProcessorServiceClient.create()) { + * ProcessRequest request = + * ProcessRequest.newBuilder() + * .setName(ProcessorName.of("[PROJECT]", "[LOCATION]", "[PROCESSOR]").toString()) + * .setDocument(Document.newBuilder().build()) + * .setSkipHumanReview(true) + * .build(); + * ApiFuture*/ public final UnaryCallablefuture = + * documentProcessorServiceClient.processDocumentCallable().futureCall(request); + * // Do something. + * ProcessResponse response = future.get(); + * } + * }
Sample code: + * + *
{@code + * try (DocumentProcessorServiceClient documentProcessorServiceClient = + * DocumentProcessorServiceClient.create()) { + * ProcessorName name = ProcessorName.of("[PROJECT]", "[LOCATION]", "[PROCESSOR]"); + * BatchProcessResponse response = + * documentProcessorServiceClient.batchProcessDocumentsAsync(name).get(); + * } + * }+ * * @param name Required. The processor resource name. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ @@ -221,6 +291,17 @@ public final UnaryCallable
Sample code: + * + *
{@code + * try (DocumentProcessorServiceClient documentProcessorServiceClient = + * DocumentProcessorServiceClient.create()) { + * String name = ProcessorName.of("[PROJECT]", "[LOCATION]", "[PROCESSOR]").toString(); + * BatchProcessResponse response = + * documentProcessorServiceClient.batchProcessDocumentsAsync(name).get(); + * } + * }+ * * @param name Required. The processor resource name. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ @@ -235,6 +316,22 @@ public final UnaryCallable
Sample code: + * + *
{@code + * try (DocumentProcessorServiceClient documentProcessorServiceClient = + * DocumentProcessorServiceClient.create()) { + * BatchProcessRequest request = + * BatchProcessRequest.newBuilder() + * .setName(ProcessorName.of("[PROJECT]", "[LOCATION]", "[PROCESSOR]").toString()) + * .addAllInputConfigs(new ArrayList+ * * @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 */ @@ -249,6 +346,24 @@ public final UnaryCallable()) + * .setOutputConfig(BatchProcessRequest.BatchOutputConfig.newBuilder().build()) + * .build(); + * BatchProcessResponse response = + * documentProcessorServiceClient.batchProcessDocumentsAsync(request).get(); + * } + * }
Sample code: + * + *
{@code + * try (DocumentProcessorServiceClient documentProcessorServiceClient = + * DocumentProcessorServiceClient.create()) { + * BatchProcessRequest request = + * BatchProcessRequest.newBuilder() + * .setName(ProcessorName.of("[PROJECT]", "[LOCATION]", "[PROCESSOR]").toString()) + * .addAllInputConfigs(new ArrayList*/ public final OperationCallable()) + * .setOutputConfig(BatchProcessRequest.BatchOutputConfig.newBuilder().build()) + * .build(); + * OperationFuture future = + * documentProcessorServiceClient + * .batchProcessDocumentsOperationCallable() + * .futureCall(request); + * // Do something. + * BatchProcessResponse response = future.get(); + * } + * }
Sample code: + * + *
{@code + * try (DocumentProcessorServiceClient documentProcessorServiceClient = + * DocumentProcessorServiceClient.create()) { + * BatchProcessRequest request = + * BatchProcessRequest.newBuilder() + * .setName(ProcessorName.of("[PROJECT]", "[LOCATION]", "[PROCESSOR]").toString()) + * .addAllInputConfigs(new ArrayList*/ public final UnaryCallable()) + * .setOutputConfig(BatchProcessRequest.BatchOutputConfig.newBuilder().build()) + * .build(); + * ApiFuture future = + * documentProcessorServiceClient.batchProcessDocumentsCallable().futureCall(request); + * // Do something. + * Operation response = future.get(); + * } + * }
Sample code: + * + *
{@code + * try (DocumentProcessorServiceClient documentProcessorServiceClient = + * DocumentProcessorServiceClient.create()) { + * HumanReviewConfigName humanReviewConfig = + * HumanReviewConfigName.of("[PROJECT]", "[LOCATION]", "[PROCESSOR]"); + * ReviewDocumentResponse response = + * documentProcessorServiceClient.reviewDocumentAsync(humanReviewConfig).get(); + * } + * }+ * * @param humanReviewConfig Required. The resource name of the HumanReviewConfig that the document * will be reviewed with. * @throws com.google.api.gax.rpc.ApiException if the remote call fails @@ -289,6 +432,18 @@ public final UnaryCallable
Sample code: + * + *
{@code + * try (DocumentProcessorServiceClient documentProcessorServiceClient = + * DocumentProcessorServiceClient.create()) { + * String humanReviewConfig = + * HumanReviewConfigName.of("[PROJECT]", "[LOCATION]", "[PROCESSOR]").toString(); + * ReviewDocumentResponse response = + * documentProcessorServiceClient.reviewDocumentAsync(humanReviewConfig).get(); + * } + * }+ * * @param humanReviewConfig Required. The resource name of the HumanReviewConfig that the document * will be reviewed with. * @throws com.google.api.gax.rpc.ApiException if the remote call fails @@ -305,6 +460,22 @@ public final UnaryCallable
Sample code: + * + *
{@code + * try (DocumentProcessorServiceClient documentProcessorServiceClient = + * DocumentProcessorServiceClient.create()) { + * ReviewDocumentRequest request = + * ReviewDocumentRequest.newBuilder() + * .setHumanReviewConfig( + * HumanReviewConfigName.of("[PROJECT]", "[LOCATION]", "[PROCESSOR]").toString()) + * .setDocument(Document.newBuilder().build()) + * .build(); + * ReviewDocumentResponse response = + * documentProcessorServiceClient.reviewDocumentAsync(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 */ @@ -319,6 +490,22 @@ public final UnaryCallable
Sample code: + * + *
{@code + * try (DocumentProcessorServiceClient documentProcessorServiceClient = + * DocumentProcessorServiceClient.create()) { + * ReviewDocumentRequest request = + * ReviewDocumentRequest.newBuilder() + * .setHumanReviewConfig( + * HumanReviewConfigName.of("[PROJECT]", "[LOCATION]", "[PROCESSOR]").toString()) + * .setDocument(Document.newBuilder().build()) + * .build(); + * OperationFuture*/ public final OperationCallable< ReviewDocumentRequest, ReviewDocumentResponse, ReviewDocumentOperationMetadata> @@ -332,6 +519,22 @@ public final UnaryCallablefuture = + * documentProcessorServiceClient.reviewDocumentOperationCallable().futureCall(request); + * // Do something. + * ReviewDocumentResponse response = future.get(); + * } + * }
Sample code: + * + *
{@code + * try (DocumentProcessorServiceClient documentProcessorServiceClient = + * DocumentProcessorServiceClient.create()) { + * ReviewDocumentRequest request = + * ReviewDocumentRequest.newBuilder() + * .setHumanReviewConfig( + * HumanReviewConfigName.of("[PROJECT]", "[LOCATION]", "[PROCESSOR]").toString()) + * .setDocument(Document.newBuilder().build()) + * .build(); + * ApiFuture*/ public final UnaryCallablefuture = + * documentProcessorServiceClient.reviewDocumentCallable().futureCall(request); + * // Do something. + * Operation response = future.get(); + * } + * }
Sample for DocumentProcessorServiceClient: + * + *
{@code + * try (DocumentProcessorServiceClient documentProcessorServiceClient = + * DocumentProcessorServiceClient.create()) { + * ProcessorName name = ProcessorName.of("[PROJECT]", "[LOCATION]", "[PROCESSOR]"); + * ProcessResponse response = documentProcessorServiceClient.processDocument(name); + * } + * }*/ @Generated("by gapic-generator-java") package com.google.cloud.documentai.v1beta3; diff --git a/synth.metadata b/synth.metadata index 3e78d9ed..999c838f 100644 --- a/synth.metadata +++ b/synth.metadata @@ -4,31 +4,31 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/java-document-ai.git", - "sha": "b322316b4592841d64a9012b0f53d4e8ef72025b" + "sha": "f3411064d84526c06fc97e06a1982c9a2582af31" } }, { "git": { "name": "googleapis", "remote": "https://github.com/googleapis/googleapis.git", - "sha": "91e206bcfeaf8948ea03fe3cb1b7616108496cd3", - "internalRef": "350949863" + "sha": "8d8c008e56f1af31d57f75561e0f1848ffb29eeb", + "internalRef": "356341083" } }, { "git": { "name": "googleapis", "remote": "https://github.com/googleapis/googleapis.git", - "sha": "91e206bcfeaf8948ea03fe3cb1b7616108496cd3", - "internalRef": "350949863" + "sha": "8d8c008e56f1af31d57f75561e0f1848ffb29eeb", + "internalRef": "356341083" } }, { "git": { "name": "googleapis", "remote": "https://github.com/googleapis/googleapis.git", - "sha": "91e206bcfeaf8948ea03fe3cb1b7616108496cd3", - "internalRef": "350949863" + "sha": "8d8c008e56f1af31d57f75561e0f1848ffb29eeb", + "internalRef": "356341083" } }, { From 5febc2b56c32df1b390592a5811c36f34c8b7b47 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot
+ * The common config to specify a set of documents used as input. + *+ * + * Protobuf type {@code google.cloud.documentai.v1beta3.BatchDocumentsInputConfig} + */ +public final class BatchDocumentsInputConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.documentai.v1beta3.BatchDocumentsInputConfig) + BatchDocumentsInputConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use BatchDocumentsInputConfig.newBuilder() to construct. + private BatchDocumentsInputConfig(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + + private BatchDocumentsInputConfig() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new BatchDocumentsInputConfig(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private BatchDocumentsInputConfig( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.cloud.documentai.v1beta3.GcsPrefix.Builder subBuilder = null; + if (sourceCase_ == 1) { + subBuilder = ((com.google.cloud.documentai.v1beta3.GcsPrefix) source_).toBuilder(); + } + source_ = + input.readMessage( + com.google.cloud.documentai.v1beta3.GcsPrefix.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.cloud.documentai.v1beta3.GcsPrefix) source_); + source_ = subBuilder.buildPartial(); + } + sourceCase_ = 1; + break; + } + case 18: + { + com.google.cloud.documentai.v1beta3.GcsDocuments.Builder subBuilder = null; + if (sourceCase_ == 2) { + subBuilder = + ((com.google.cloud.documentai.v1beta3.GcsDocuments) source_).toBuilder(); + } + source_ = + input.readMessage( + com.google.cloud.documentai.v1beta3.GcsDocuments.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.cloud.documentai.v1beta3.GcsDocuments) source_); + source_ = subBuilder.buildPartial(); + } + sourceCase_ = 2; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.documentai.v1beta3.DocumentIoProto + .internal_static_google_cloud_documentai_v1beta3_BatchDocumentsInputConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.documentai.v1beta3.DocumentIoProto + .internal_static_google_cloud_documentai_v1beta3_BatchDocumentsInputConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.documentai.v1beta3.BatchDocumentsInputConfig.class, + com.google.cloud.documentai.v1beta3.BatchDocumentsInputConfig.Builder.class); + } + + private int sourceCase_ = 0; + private java.lang.Object source_; + + public enum SourceCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + GCS_PREFIX(1), + GCS_DOCUMENTS(2), + SOURCE_NOT_SET(0); + private final int value; + + private SourceCase(int value) { + this.value = value; + } + /** + * @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 SourceCase valueOf(int value) { + return forNumber(value); + } + + public static SourceCase forNumber(int value) { + switch (value) { + case 1: + return GCS_PREFIX; + case 2: + return GCS_DOCUMENTS; + case 0: + return SOURCE_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public SourceCase getSourceCase() { + return SourceCase.forNumber(sourceCase_); + } + + public static final int GCS_PREFIX_FIELD_NUMBER = 1; + /** + * + * + *
+ * The set of documents that match the specified Cloud Storage [gcs_prefix]. + *+ * + *
.google.cloud.documentai.v1beta3.GcsPrefix gcs_prefix = 1;
+ *
+ * @return Whether the gcsPrefix field is set.
+ */
+ @java.lang.Override
+ public boolean hasGcsPrefix() {
+ return sourceCase_ == 1;
+ }
+ /**
+ *
+ *
+ * + * The set of documents that match the specified Cloud Storage [gcs_prefix]. + *+ * + *
.google.cloud.documentai.v1beta3.GcsPrefix gcs_prefix = 1;
+ *
+ * @return The gcsPrefix.
+ */
+ @java.lang.Override
+ public com.google.cloud.documentai.v1beta3.GcsPrefix getGcsPrefix() {
+ if (sourceCase_ == 1) {
+ return (com.google.cloud.documentai.v1beta3.GcsPrefix) source_;
+ }
+ return com.google.cloud.documentai.v1beta3.GcsPrefix.getDefaultInstance();
+ }
+ /**
+ *
+ *
+ * + * The set of documents that match the specified Cloud Storage [gcs_prefix]. + *+ * + *
.google.cloud.documentai.v1beta3.GcsPrefix gcs_prefix = 1;
+ */
+ @java.lang.Override
+ public com.google.cloud.documentai.v1beta3.GcsPrefixOrBuilder getGcsPrefixOrBuilder() {
+ if (sourceCase_ == 1) {
+ return (com.google.cloud.documentai.v1beta3.GcsPrefix) source_;
+ }
+ return com.google.cloud.documentai.v1beta3.GcsPrefix.getDefaultInstance();
+ }
+
+ public static final int GCS_DOCUMENTS_FIELD_NUMBER = 2;
+ /**
+ *
+ *
+ * + * The set of documents individually specified on Cloud Storage. + *+ * + *
.google.cloud.documentai.v1beta3.GcsDocuments gcs_documents = 2;
+ *
+ * @return Whether the gcsDocuments field is set.
+ */
+ @java.lang.Override
+ public boolean hasGcsDocuments() {
+ return sourceCase_ == 2;
+ }
+ /**
+ *
+ *
+ * + * The set of documents individually specified on Cloud Storage. + *+ * + *
.google.cloud.documentai.v1beta3.GcsDocuments gcs_documents = 2;
+ *
+ * @return The gcsDocuments.
+ */
+ @java.lang.Override
+ public com.google.cloud.documentai.v1beta3.GcsDocuments getGcsDocuments() {
+ if (sourceCase_ == 2) {
+ return (com.google.cloud.documentai.v1beta3.GcsDocuments) source_;
+ }
+ return com.google.cloud.documentai.v1beta3.GcsDocuments.getDefaultInstance();
+ }
+ /**
+ *
+ *
+ * + * The set of documents individually specified on Cloud Storage. + *+ * + *
.google.cloud.documentai.v1beta3.GcsDocuments gcs_documents = 2;
+ */
+ @java.lang.Override
+ public com.google.cloud.documentai.v1beta3.GcsDocumentsOrBuilder getGcsDocumentsOrBuilder() {
+ if (sourceCase_ == 2) {
+ return (com.google.cloud.documentai.v1beta3.GcsDocuments) source_;
+ }
+ return com.google.cloud.documentai.v1beta3.GcsDocuments.getDefaultInstance();
+ }
+
+ 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 (sourceCase_ == 1) {
+ output.writeMessage(1, (com.google.cloud.documentai.v1beta3.GcsPrefix) source_);
+ }
+ if (sourceCase_ == 2) {
+ output.writeMessage(2, (com.google.cloud.documentai.v1beta3.GcsDocuments) source_);
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (sourceCase_ == 1) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeMessageSize(
+ 1, (com.google.cloud.documentai.v1beta3.GcsPrefix) source_);
+ }
+ if (sourceCase_ == 2) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeMessageSize(
+ 2, (com.google.cloud.documentai.v1beta3.GcsDocuments) source_);
+ }
+ size += unknownFields.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.BatchDocumentsInputConfig)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.documentai.v1beta3.BatchDocumentsInputConfig other =
+ (com.google.cloud.documentai.v1beta3.BatchDocumentsInputConfig) obj;
+
+ if (!getSourceCase().equals(other.getSourceCase())) return false;
+ switch (sourceCase_) {
+ case 1:
+ if (!getGcsPrefix().equals(other.getGcsPrefix())) return false;
+ break;
+ case 2:
+ if (!getGcsDocuments().equals(other.getGcsDocuments())) return false;
+ break;
+ case 0:
+ default:
+ }
+ if (!unknownFields.equals(other.unknownFields)) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ switch (sourceCase_) {
+ case 1:
+ hash = (37 * hash) + GCS_PREFIX_FIELD_NUMBER;
+ hash = (53 * hash) + getGcsPrefix().hashCode();
+ break;
+ case 2:
+ hash = (37 * hash) + GCS_DOCUMENTS_FIELD_NUMBER;
+ hash = (53 * hash) + getGcsDocuments().hashCode();
+ break;
+ case 0:
+ default:
+ }
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.documentai.v1beta3.BatchDocumentsInputConfig parseFrom(
+ java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.documentai.v1beta3.BatchDocumentsInputConfig 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.BatchDocumentsInputConfig parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.documentai.v1beta3.BatchDocumentsInputConfig parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.documentai.v1beta3.BatchDocumentsInputConfig parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.documentai.v1beta3.BatchDocumentsInputConfig 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.BatchDocumentsInputConfig parseFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.documentai.v1beta3.BatchDocumentsInputConfig 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.BatchDocumentsInputConfig parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.documentai.v1beta3.BatchDocumentsInputConfig 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.BatchDocumentsInputConfig 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.BatchDocumentsInputConfig parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ @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.BatchDocumentsInputConfig 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;
+ }
+ /**
+ *
+ *
+ * + * The common config to specify a set of documents used as input. + *+ * + * Protobuf type {@code google.cloud.documentai.v1beta3.BatchDocumentsInputConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ * The set of documents that match the specified Cloud Storage [gcs_prefix]. + *+ * + *
.google.cloud.documentai.v1beta3.GcsPrefix gcs_prefix = 1;
+ *
+ * @return Whether the gcsPrefix field is set.
+ */
+ @java.lang.Override
+ public boolean hasGcsPrefix() {
+ return sourceCase_ == 1;
+ }
+ /**
+ *
+ *
+ * + * The set of documents that match the specified Cloud Storage [gcs_prefix]. + *+ * + *
.google.cloud.documentai.v1beta3.GcsPrefix gcs_prefix = 1;
+ *
+ * @return The gcsPrefix.
+ */
+ @java.lang.Override
+ public com.google.cloud.documentai.v1beta3.GcsPrefix getGcsPrefix() {
+ if (gcsPrefixBuilder_ == null) {
+ if (sourceCase_ == 1) {
+ return (com.google.cloud.documentai.v1beta3.GcsPrefix) source_;
+ }
+ return com.google.cloud.documentai.v1beta3.GcsPrefix.getDefaultInstance();
+ } else {
+ if (sourceCase_ == 1) {
+ return gcsPrefixBuilder_.getMessage();
+ }
+ return com.google.cloud.documentai.v1beta3.GcsPrefix.getDefaultInstance();
+ }
+ }
+ /**
+ *
+ *
+ * + * The set of documents that match the specified Cloud Storage [gcs_prefix]. + *+ * + *
.google.cloud.documentai.v1beta3.GcsPrefix gcs_prefix = 1;
+ */
+ public Builder setGcsPrefix(com.google.cloud.documentai.v1beta3.GcsPrefix value) {
+ if (gcsPrefixBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ source_ = value;
+ onChanged();
+ } else {
+ gcsPrefixBuilder_.setMessage(value);
+ }
+ sourceCase_ = 1;
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The set of documents that match the specified Cloud Storage [gcs_prefix]. + *+ * + *
.google.cloud.documentai.v1beta3.GcsPrefix gcs_prefix = 1;
+ */
+ public Builder setGcsPrefix(
+ com.google.cloud.documentai.v1beta3.GcsPrefix.Builder builderForValue) {
+ if (gcsPrefixBuilder_ == null) {
+ source_ = builderForValue.build();
+ onChanged();
+ } else {
+ gcsPrefixBuilder_.setMessage(builderForValue.build());
+ }
+ sourceCase_ = 1;
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The set of documents that match the specified Cloud Storage [gcs_prefix]. + *+ * + *
.google.cloud.documentai.v1beta3.GcsPrefix gcs_prefix = 1;
+ */
+ public Builder mergeGcsPrefix(com.google.cloud.documentai.v1beta3.GcsPrefix value) {
+ if (gcsPrefixBuilder_ == null) {
+ if (sourceCase_ == 1
+ && source_ != com.google.cloud.documentai.v1beta3.GcsPrefix.getDefaultInstance()) {
+ source_ =
+ com.google.cloud.documentai.v1beta3.GcsPrefix.newBuilder(
+ (com.google.cloud.documentai.v1beta3.GcsPrefix) source_)
+ .mergeFrom(value)
+ .buildPartial();
+ } else {
+ source_ = value;
+ }
+ onChanged();
+ } else {
+ if (sourceCase_ == 1) {
+ gcsPrefixBuilder_.mergeFrom(value);
+ }
+ gcsPrefixBuilder_.setMessage(value);
+ }
+ sourceCase_ = 1;
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The set of documents that match the specified Cloud Storage [gcs_prefix]. + *+ * + *
.google.cloud.documentai.v1beta3.GcsPrefix gcs_prefix = 1;
+ */
+ public Builder clearGcsPrefix() {
+ if (gcsPrefixBuilder_ == null) {
+ if (sourceCase_ == 1) {
+ sourceCase_ = 0;
+ source_ = null;
+ onChanged();
+ }
+ } else {
+ if (sourceCase_ == 1) {
+ sourceCase_ = 0;
+ source_ = null;
+ }
+ gcsPrefixBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The set of documents that match the specified Cloud Storage [gcs_prefix]. + *+ * + *
.google.cloud.documentai.v1beta3.GcsPrefix gcs_prefix = 1;
+ */
+ public com.google.cloud.documentai.v1beta3.GcsPrefix.Builder getGcsPrefixBuilder() {
+ return getGcsPrefixFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ * + * The set of documents that match the specified Cloud Storage [gcs_prefix]. + *+ * + *
.google.cloud.documentai.v1beta3.GcsPrefix gcs_prefix = 1;
+ */
+ @java.lang.Override
+ public com.google.cloud.documentai.v1beta3.GcsPrefixOrBuilder getGcsPrefixOrBuilder() {
+ if ((sourceCase_ == 1) && (gcsPrefixBuilder_ != null)) {
+ return gcsPrefixBuilder_.getMessageOrBuilder();
+ } else {
+ if (sourceCase_ == 1) {
+ return (com.google.cloud.documentai.v1beta3.GcsPrefix) source_;
+ }
+ return com.google.cloud.documentai.v1beta3.GcsPrefix.getDefaultInstance();
+ }
+ }
+ /**
+ *
+ *
+ * + * The set of documents that match the specified Cloud Storage [gcs_prefix]. + *+ * + *
.google.cloud.documentai.v1beta3.GcsPrefix gcs_prefix = 1;
+ */
+ 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) {
+ if (!(sourceCase_ == 1)) {
+ source_ = com.google.cloud.documentai.v1beta3.GcsPrefix.getDefaultInstance();
+ }
+ 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>(
+ (com.google.cloud.documentai.v1beta3.GcsPrefix) source_,
+ getParentForChildren(),
+ isClean());
+ source_ = null;
+ }
+ sourceCase_ = 1;
+ onChanged();
+ ;
+ return gcsPrefixBuilder_;
+ }
+
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.documentai.v1beta3.GcsDocuments,
+ com.google.cloud.documentai.v1beta3.GcsDocuments.Builder,
+ com.google.cloud.documentai.v1beta3.GcsDocumentsOrBuilder>
+ gcsDocumentsBuilder_;
+ /**
+ *
+ *
+ * + * The set of documents individually specified on Cloud Storage. + *+ * + *
.google.cloud.documentai.v1beta3.GcsDocuments gcs_documents = 2;
+ *
+ * @return Whether the gcsDocuments field is set.
+ */
+ @java.lang.Override
+ public boolean hasGcsDocuments() {
+ return sourceCase_ == 2;
+ }
+ /**
+ *
+ *
+ * + * The set of documents individually specified on Cloud Storage. + *+ * + *
.google.cloud.documentai.v1beta3.GcsDocuments gcs_documents = 2;
+ *
+ * @return The gcsDocuments.
+ */
+ @java.lang.Override
+ public com.google.cloud.documentai.v1beta3.GcsDocuments getGcsDocuments() {
+ if (gcsDocumentsBuilder_ == null) {
+ if (sourceCase_ == 2) {
+ return (com.google.cloud.documentai.v1beta3.GcsDocuments) source_;
+ }
+ return com.google.cloud.documentai.v1beta3.GcsDocuments.getDefaultInstance();
+ } else {
+ if (sourceCase_ == 2) {
+ return gcsDocumentsBuilder_.getMessage();
+ }
+ return com.google.cloud.documentai.v1beta3.GcsDocuments.getDefaultInstance();
+ }
+ }
+ /**
+ *
+ *
+ * + * The set of documents individually specified on Cloud Storage. + *+ * + *
.google.cloud.documentai.v1beta3.GcsDocuments gcs_documents = 2;
+ */
+ public Builder setGcsDocuments(com.google.cloud.documentai.v1beta3.GcsDocuments value) {
+ if (gcsDocumentsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ source_ = value;
+ onChanged();
+ } else {
+ gcsDocumentsBuilder_.setMessage(value);
+ }
+ sourceCase_ = 2;
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The set of documents individually specified on Cloud Storage. + *+ * + *
.google.cloud.documentai.v1beta3.GcsDocuments gcs_documents = 2;
+ */
+ public Builder setGcsDocuments(
+ com.google.cloud.documentai.v1beta3.GcsDocuments.Builder builderForValue) {
+ if (gcsDocumentsBuilder_ == null) {
+ source_ = builderForValue.build();
+ onChanged();
+ } else {
+ gcsDocumentsBuilder_.setMessage(builderForValue.build());
+ }
+ sourceCase_ = 2;
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The set of documents individually specified on Cloud Storage. + *+ * + *
.google.cloud.documentai.v1beta3.GcsDocuments gcs_documents = 2;
+ */
+ public Builder mergeGcsDocuments(com.google.cloud.documentai.v1beta3.GcsDocuments value) {
+ if (gcsDocumentsBuilder_ == null) {
+ if (sourceCase_ == 2
+ && source_ != com.google.cloud.documentai.v1beta3.GcsDocuments.getDefaultInstance()) {
+ source_ =
+ com.google.cloud.documentai.v1beta3.GcsDocuments.newBuilder(
+ (com.google.cloud.documentai.v1beta3.GcsDocuments) source_)
+ .mergeFrom(value)
+ .buildPartial();
+ } else {
+ source_ = value;
+ }
+ onChanged();
+ } else {
+ if (sourceCase_ == 2) {
+ gcsDocumentsBuilder_.mergeFrom(value);
+ }
+ gcsDocumentsBuilder_.setMessage(value);
+ }
+ sourceCase_ = 2;
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The set of documents individually specified on Cloud Storage. + *+ * + *
.google.cloud.documentai.v1beta3.GcsDocuments gcs_documents = 2;
+ */
+ public Builder clearGcsDocuments() {
+ if (gcsDocumentsBuilder_ == null) {
+ if (sourceCase_ == 2) {
+ sourceCase_ = 0;
+ source_ = null;
+ onChanged();
+ }
+ } else {
+ if (sourceCase_ == 2) {
+ sourceCase_ = 0;
+ source_ = null;
+ }
+ gcsDocumentsBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The set of documents individually specified on Cloud Storage. + *+ * + *
.google.cloud.documentai.v1beta3.GcsDocuments gcs_documents = 2;
+ */
+ public com.google.cloud.documentai.v1beta3.GcsDocuments.Builder getGcsDocumentsBuilder() {
+ return getGcsDocumentsFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ * + * The set of documents individually specified on Cloud Storage. + *+ * + *
.google.cloud.documentai.v1beta3.GcsDocuments gcs_documents = 2;
+ */
+ @java.lang.Override
+ public com.google.cloud.documentai.v1beta3.GcsDocumentsOrBuilder getGcsDocumentsOrBuilder() {
+ if ((sourceCase_ == 2) && (gcsDocumentsBuilder_ != null)) {
+ return gcsDocumentsBuilder_.getMessageOrBuilder();
+ } else {
+ if (sourceCase_ == 2) {
+ return (com.google.cloud.documentai.v1beta3.GcsDocuments) source_;
+ }
+ return com.google.cloud.documentai.v1beta3.GcsDocuments.getDefaultInstance();
+ }
+ }
+ /**
+ *
+ *
+ * + * The set of documents individually specified on Cloud Storage. + *+ * + *
.google.cloud.documentai.v1beta3.GcsDocuments gcs_documents = 2;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.documentai.v1beta3.GcsDocuments,
+ com.google.cloud.documentai.v1beta3.GcsDocuments.Builder,
+ com.google.cloud.documentai.v1beta3.GcsDocumentsOrBuilder>
+ getGcsDocumentsFieldBuilder() {
+ if (gcsDocumentsBuilder_ == null) {
+ if (!(sourceCase_ == 2)) {
+ source_ = com.google.cloud.documentai.v1beta3.GcsDocuments.getDefaultInstance();
+ }
+ gcsDocumentsBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.documentai.v1beta3.GcsDocuments,
+ com.google.cloud.documentai.v1beta3.GcsDocuments.Builder,
+ com.google.cloud.documentai.v1beta3.GcsDocumentsOrBuilder>(
+ (com.google.cloud.documentai.v1beta3.GcsDocuments) source_,
+ getParentForChildren(),
+ isClean());
+ source_ = null;
+ }
+ sourceCase_ = 2;
+ onChanged();
+ ;
+ return gcsDocumentsBuilder_;
+ }
+
+ @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.BatchDocumentsInputConfig)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.documentai.v1beta3.BatchDocumentsInputConfig)
+ private static final com.google.cloud.documentai.v1beta3.BatchDocumentsInputConfig
+ DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.cloud.documentai.v1beta3.BatchDocumentsInputConfig();
+ }
+
+ public static com.google.cloud.documentai.v1beta3.BatchDocumentsInputConfig getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser+ * The set of documents that match the specified Cloud Storage [gcs_prefix]. + *+ * + *
.google.cloud.documentai.v1beta3.GcsPrefix gcs_prefix = 1;
+ *
+ * @return Whether the gcsPrefix field is set.
+ */
+ boolean hasGcsPrefix();
+ /**
+ *
+ *
+ * + * The set of documents that match the specified Cloud Storage [gcs_prefix]. + *+ * + *
.google.cloud.documentai.v1beta3.GcsPrefix gcs_prefix = 1;
+ *
+ * @return The gcsPrefix.
+ */
+ com.google.cloud.documentai.v1beta3.GcsPrefix getGcsPrefix();
+ /**
+ *
+ *
+ * + * The set of documents that match the specified Cloud Storage [gcs_prefix]. + *+ * + *
.google.cloud.documentai.v1beta3.GcsPrefix gcs_prefix = 1;
+ */
+ com.google.cloud.documentai.v1beta3.GcsPrefixOrBuilder getGcsPrefixOrBuilder();
+
+ /**
+ *
+ *
+ * + * The set of documents individually specified on Cloud Storage. + *+ * + *
.google.cloud.documentai.v1beta3.GcsDocuments gcs_documents = 2;
+ *
+ * @return Whether the gcsDocuments field is set.
+ */
+ boolean hasGcsDocuments();
+ /**
+ *
+ *
+ * + * The set of documents individually specified on Cloud Storage. + *+ * + *
.google.cloud.documentai.v1beta3.GcsDocuments gcs_documents = 2;
+ *
+ * @return The gcsDocuments.
+ */
+ com.google.cloud.documentai.v1beta3.GcsDocuments getGcsDocuments();
+ /**
+ *
+ *
+ * + * The set of documents individually specified on Cloud Storage. + *+ * + *
.google.cloud.documentai.v1beta3.GcsDocuments gcs_documents = 2;
+ */
+ com.google.cloud.documentai.v1beta3.GcsDocumentsOrBuilder getGcsDocumentsOrBuilder();
+
+ public com.google.cloud.documentai.v1beta3.BatchDocumentsInputConfig.SourceCase getSourceCase();
+}
diff --git a/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/BatchProcessMetadata.java b/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/BatchProcessMetadata.java
index 19fe24fc..8594d50f 100644
--- a/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/BatchProcessMetadata.java
+++ b/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/BatchProcessMetadata.java
@@ -526,10 +526,11 @@ public interface IndividualProcessStatusOrBuilder
* returned by ReviewDocument method.
*
*
- * string human_review_operation = 4;
+ * string human_review_operation = 4 [deprecated = true];
*
* @return The humanReviewOperation.
*/
+ @java.lang.Deprecated
java.lang.String getHumanReviewOperation();
/**
*
@@ -541,11 +542,47 @@ public interface IndividualProcessStatusOrBuilder
* returned by ReviewDocument method.
*
*
- * string human_review_operation = 4;
+ * string human_review_operation = 4 [deprecated = true];
*
* @return The bytes for humanReviewOperation.
*/
+ @java.lang.Deprecated
com.google.protobuf.ByteString getHumanReviewOperationBytes();
+
+ /**
+ *
+ *
+ * + * The status of human review on the processed document. + *+ * + *
.google.cloud.documentai.v1beta3.HumanReviewStatus human_review_status = 5;
+ *
+ * @return Whether the humanReviewStatus field is set.
+ */
+ boolean hasHumanReviewStatus();
+ /**
+ *
+ *
+ * + * The status of human review on the processed document. + *+ * + *
.google.cloud.documentai.v1beta3.HumanReviewStatus human_review_status = 5;
+ *
+ * @return The humanReviewStatus.
+ */
+ com.google.cloud.documentai.v1beta3.HumanReviewStatus getHumanReviewStatus();
+ /**
+ *
+ *
+ * + * The status of human review on the processed document. + *+ * + *
.google.cloud.documentai.v1beta3.HumanReviewStatus human_review_status = 5;
+ */
+ com.google.cloud.documentai.v1beta3.HumanReviewStatusOrBuilder getHumanReviewStatusOrBuilder();
}
/**
*
@@ -635,6 +672,23 @@ private IndividualProcessStatus(
java.lang.String s = input.readStringRequireUtf8();
humanReviewOperation_ = s;
+ break;
+ }
+ case 42:
+ {
+ com.google.cloud.documentai.v1beta3.HumanReviewStatus.Builder subBuilder = null;
+ if (humanReviewStatus_ != null) {
+ subBuilder = humanReviewStatus_.toBuilder();
+ }
+ humanReviewStatus_ =
+ input.readMessage(
+ com.google.cloud.documentai.v1beta3.HumanReviewStatus.parser(),
+ extensionRegistry);
+ if (subBuilder != null) {
+ subBuilder.mergeFrom(humanReviewStatus_);
+ humanReviewStatus_ = subBuilder.buildPartial();
+ }
+
break;
}
default:
@@ -837,11 +891,12 @@ public com.google.protobuf.ByteString getOutputGcsDestinationBytes() {
* returned by ReviewDocument method.
*
*
- * string human_review_operation = 4;
+ * string human_review_operation = 4 [deprecated = true];
*
* @return The humanReviewOperation.
*/
@java.lang.Override
+ @java.lang.Deprecated
public java.lang.String getHumanReviewOperation() {
java.lang.Object ref = humanReviewOperation_;
if (ref instanceof java.lang.String) {
@@ -863,11 +918,12 @@ public java.lang.String getHumanReviewOperation() {
* returned by ReviewDocument method.
*
*
- * string human_review_operation = 4;
+ * string human_review_operation = 4 [deprecated = true];
*
* @return The bytes for humanReviewOperation.
*/
@java.lang.Override
+ @java.lang.Deprecated
public com.google.protobuf.ByteString getHumanReviewOperationBytes() {
java.lang.Object ref = humanReviewOperation_;
if (ref instanceof java.lang.String) {
@@ -880,6 +936,55 @@ public com.google.protobuf.ByteString getHumanReviewOperationBytes() {
}
}
+ public static final int HUMAN_REVIEW_STATUS_FIELD_NUMBER = 5;
+ private com.google.cloud.documentai.v1beta3.HumanReviewStatus humanReviewStatus_;
+ /**
+ *
+ *
+ * + * The status of human review on the processed document. + *+ * + *
.google.cloud.documentai.v1beta3.HumanReviewStatus human_review_status = 5;
+ *
+ * @return Whether the humanReviewStatus field is set.
+ */
+ @java.lang.Override
+ public boolean hasHumanReviewStatus() {
+ return humanReviewStatus_ != null;
+ }
+ /**
+ *
+ *
+ * + * The status of human review on the processed document. + *+ * + *
.google.cloud.documentai.v1beta3.HumanReviewStatus human_review_status = 5;
+ *
+ * @return The humanReviewStatus.
+ */
+ @java.lang.Override
+ public com.google.cloud.documentai.v1beta3.HumanReviewStatus getHumanReviewStatus() {
+ return humanReviewStatus_ == null
+ ? com.google.cloud.documentai.v1beta3.HumanReviewStatus.getDefaultInstance()
+ : humanReviewStatus_;
+ }
+ /**
+ *
+ *
+ * + * The status of human review on the processed document. + *+ * + *
.google.cloud.documentai.v1beta3.HumanReviewStatus human_review_status = 5;
+ */
+ @java.lang.Override
+ public com.google.cloud.documentai.v1beta3.HumanReviewStatusOrBuilder
+ getHumanReviewStatusOrBuilder() {
+ return getHumanReviewStatus();
+ }
+
private byte memoizedIsInitialized = -1;
@java.lang.Override
@@ -906,6 +1011,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
if (!getHumanReviewOperationBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 4, humanReviewOperation_);
}
+ if (humanReviewStatus_ != null) {
+ output.writeMessage(5, getHumanReviewStatus());
+ }
unknownFields.writeTo(output);
}
@@ -927,6 +1035,9 @@ public int getSerializedSize() {
if (!getHumanReviewOperationBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, humanReviewOperation_);
}
+ if (humanReviewStatus_ != null) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getHumanReviewStatus());
+ }
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
@@ -952,6 +1063,10 @@ public boolean equals(final java.lang.Object obj) {
}
if (!getOutputGcsDestination().equals(other.getOutputGcsDestination())) return false;
if (!getHumanReviewOperation().equals(other.getHumanReviewOperation())) return false;
+ if (hasHumanReviewStatus() != other.hasHumanReviewStatus()) return false;
+ if (hasHumanReviewStatus()) {
+ if (!getHumanReviewStatus().equals(other.getHumanReviewStatus())) return false;
+ }
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@@ -973,6 +1088,10 @@ public int hashCode() {
hash = (53 * hash) + getOutputGcsDestination().hashCode();
hash = (37 * hash) + HUMAN_REVIEW_OPERATION_FIELD_NUMBER;
hash = (53 * hash) + getHumanReviewOperation().hashCode();
+ if (hasHumanReviewStatus()) {
+ hash = (37 * hash) + HUMAN_REVIEW_STATUS_FIELD_NUMBER;
+ hash = (53 * hash) + getHumanReviewStatus().hashCode();
+ }
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
@@ -1144,6 +1263,12 @@ public Builder clear() {
humanReviewOperation_ = "";
+ if (humanReviewStatusBuilder_ == null) {
+ humanReviewStatus_ = null;
+ } else {
+ humanReviewStatus_ = null;
+ humanReviewStatusBuilder_ = null;
+ }
return this;
}
@@ -1185,6 +1310,11 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
}
result.outputGcsDestination_ = outputGcsDestination_;
result.humanReviewOperation_ = humanReviewOperation_;
+ if (humanReviewStatusBuilder_ == null) {
+ result.humanReviewStatus_ = humanReviewStatus_;
+ } else {
+ result.humanReviewStatus_ = humanReviewStatusBuilder_.build();
+ }
onBuilt();
return result;
}
@@ -1258,6 +1388,9 @@ public Builder mergeFrom(
humanReviewOperation_ = other.humanReviewOperation_;
onChanged();
}
+ if (other.hasHumanReviewStatus()) {
+ mergeHumanReviewStatus(other.getHumanReviewStatus());
+ }
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
@@ -1706,10 +1839,11 @@ public Builder setOutputGcsDestinationBytes(com.google.protobuf.ByteString value
* returned by ReviewDocument method.
*
*
- * string human_review_operation = 4;
+ * string human_review_operation = 4 [deprecated = true];
*
* @return The humanReviewOperation.
*/
+ @java.lang.Deprecated
public java.lang.String getHumanReviewOperation() {
java.lang.Object ref = humanReviewOperation_;
if (!(ref instanceof java.lang.String)) {
@@ -1731,10 +1865,11 @@ public java.lang.String getHumanReviewOperation() {
* returned by ReviewDocument method.
*
*
- * string human_review_operation = 4;
+ * string human_review_operation = 4 [deprecated = true];
*
* @return The bytes for humanReviewOperation.
*/
+ @java.lang.Deprecated
public com.google.protobuf.ByteString getHumanReviewOperationBytes() {
java.lang.Object ref = humanReviewOperation_;
if (ref instanceof String) {
@@ -1756,11 +1891,12 @@ public com.google.protobuf.ByteString getHumanReviewOperationBytes() {
* returned by ReviewDocument method.
*
*
- * string human_review_operation = 4;
+ * string human_review_operation = 4 [deprecated = true];
*
* @param value The humanReviewOperation to set.
* @return This builder for chaining.
*/
+ @java.lang.Deprecated
public Builder setHumanReviewOperation(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
@@ -1780,10 +1916,11 @@ public Builder setHumanReviewOperation(java.lang.String value) {
* returned by ReviewDocument method.
*
*
- * string human_review_operation = 4;
+ * string human_review_operation = 4 [deprecated = true];
*
* @return This builder for chaining.
*/
+ @java.lang.Deprecated
public Builder clearHumanReviewOperation() {
humanReviewOperation_ = getDefaultInstance().getHumanReviewOperation();
@@ -1800,11 +1937,12 @@ public Builder clearHumanReviewOperation() {
* returned by ReviewDocument method.
*
*
- * string human_review_operation = 4;
+ * string human_review_operation = 4 [deprecated = true];
*
* @param value The bytes for humanReviewOperation to set.
* @return This builder for chaining.
*/
+ @java.lang.Deprecated
public Builder setHumanReviewOperationBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
@@ -1816,6 +1954,196 @@ public Builder setHumanReviewOperationBytes(com.google.protobuf.ByteString value
return this;
}
+ private com.google.cloud.documentai.v1beta3.HumanReviewStatus humanReviewStatus_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.documentai.v1beta3.HumanReviewStatus,
+ com.google.cloud.documentai.v1beta3.HumanReviewStatus.Builder,
+ com.google.cloud.documentai.v1beta3.HumanReviewStatusOrBuilder>
+ humanReviewStatusBuilder_;
+ /**
+ *
+ *
+ * + * The status of human review on the processed document. + *+ * + *
.google.cloud.documentai.v1beta3.HumanReviewStatus human_review_status = 5;
+ *
+ * @return Whether the humanReviewStatus field is set.
+ */
+ public boolean hasHumanReviewStatus() {
+ return humanReviewStatusBuilder_ != null || humanReviewStatus_ != null;
+ }
+ /**
+ *
+ *
+ * + * The status of human review on the processed document. + *+ * + *
.google.cloud.documentai.v1beta3.HumanReviewStatus human_review_status = 5;
+ *
+ * @return The humanReviewStatus.
+ */
+ public com.google.cloud.documentai.v1beta3.HumanReviewStatus getHumanReviewStatus() {
+ if (humanReviewStatusBuilder_ == null) {
+ return humanReviewStatus_ == null
+ ? com.google.cloud.documentai.v1beta3.HumanReviewStatus.getDefaultInstance()
+ : humanReviewStatus_;
+ } else {
+ return humanReviewStatusBuilder_.getMessage();
+ }
+ }
+ /**
+ *
+ *
+ * + * The status of human review on the processed document. + *+ * + *
.google.cloud.documentai.v1beta3.HumanReviewStatus human_review_status = 5;
+ */
+ public Builder setHumanReviewStatus(
+ com.google.cloud.documentai.v1beta3.HumanReviewStatus value) {
+ if (humanReviewStatusBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ humanReviewStatus_ = value;
+ onChanged();
+ } else {
+ humanReviewStatusBuilder_.setMessage(value);
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The status of human review on the processed document. + *+ * + *
.google.cloud.documentai.v1beta3.HumanReviewStatus human_review_status = 5;
+ */
+ public Builder setHumanReviewStatus(
+ com.google.cloud.documentai.v1beta3.HumanReviewStatus.Builder builderForValue) {
+ if (humanReviewStatusBuilder_ == null) {
+ humanReviewStatus_ = builderForValue.build();
+ onChanged();
+ } else {
+ humanReviewStatusBuilder_.setMessage(builderForValue.build());
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The status of human review on the processed document. + *+ * + *
.google.cloud.documentai.v1beta3.HumanReviewStatus human_review_status = 5;
+ */
+ public Builder mergeHumanReviewStatus(
+ com.google.cloud.documentai.v1beta3.HumanReviewStatus value) {
+ if (humanReviewStatusBuilder_ == null) {
+ if (humanReviewStatus_ != null) {
+ humanReviewStatus_ =
+ com.google.cloud.documentai.v1beta3.HumanReviewStatus.newBuilder(humanReviewStatus_)
+ .mergeFrom(value)
+ .buildPartial();
+ } else {
+ humanReviewStatus_ = value;
+ }
+ onChanged();
+ } else {
+ humanReviewStatusBuilder_.mergeFrom(value);
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The status of human review on the processed document. + *+ * + *
.google.cloud.documentai.v1beta3.HumanReviewStatus human_review_status = 5;
+ */
+ public Builder clearHumanReviewStatus() {
+ if (humanReviewStatusBuilder_ == null) {
+ humanReviewStatus_ = null;
+ onChanged();
+ } else {
+ humanReviewStatus_ = null;
+ humanReviewStatusBuilder_ = null;
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The status of human review on the processed document. + *+ * + *
.google.cloud.documentai.v1beta3.HumanReviewStatus human_review_status = 5;
+ */
+ public com.google.cloud.documentai.v1beta3.HumanReviewStatus.Builder
+ getHumanReviewStatusBuilder() {
+
+ onChanged();
+ return getHumanReviewStatusFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ * + * The status of human review on the processed document. + *+ * + *
.google.cloud.documentai.v1beta3.HumanReviewStatus human_review_status = 5;
+ */
+ public com.google.cloud.documentai.v1beta3.HumanReviewStatusOrBuilder
+ getHumanReviewStatusOrBuilder() {
+ if (humanReviewStatusBuilder_ != null) {
+ return humanReviewStatusBuilder_.getMessageOrBuilder();
+ } else {
+ return humanReviewStatus_ == null
+ ? com.google.cloud.documentai.v1beta3.HumanReviewStatus.getDefaultInstance()
+ : humanReviewStatus_;
+ }
+ }
+ /**
+ *
+ *
+ * + * The status of human review on the processed document. + *+ * + *
.google.cloud.documentai.v1beta3.HumanReviewStatus human_review_status = 5;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.documentai.v1beta3.HumanReviewStatus,
+ com.google.cloud.documentai.v1beta3.HumanReviewStatus.Builder,
+ com.google.cloud.documentai.v1beta3.HumanReviewStatusOrBuilder>
+ getHumanReviewStatusFieldBuilder() {
+ if (humanReviewStatusBuilder_ == null) {
+ humanReviewStatusBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.documentai.v1beta3.HumanReviewStatus,
+ com.google.cloud.documentai.v1beta3.HumanReviewStatus.Builder,
+ com.google.cloud.documentai.v1beta3.HumanReviewStatusOrBuilder>(
+ getHumanReviewStatus(), getParentForChildren(), isClean());
+ humanReviewStatus_ = null;
+ }
+ return humanReviewStatusBuilder_;
+ }
+
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
diff --git a/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/BatchProcessRequest.java b/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/BatchProcessRequest.java
index 32095281..69e44303 100644
--- a/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/BatchProcessRequest.java
+++ b/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/BatchProcessRequest.java
@@ -111,6 +111,46 @@ private BatchProcessRequest(
outputConfig_ = subBuilder.buildPartial();
}
+ break;
+ }
+ case 32:
+ {
+ skipHumanReview_ = input.readBool();
+ break;
+ }
+ case 42:
+ {
+ com.google.cloud.documentai.v1beta3.BatchDocumentsInputConfig.Builder subBuilder =
+ null;
+ if (inputDocuments_ != null) {
+ subBuilder = inputDocuments_.toBuilder();
+ }
+ inputDocuments_ =
+ input.readMessage(
+ com.google.cloud.documentai.v1beta3.BatchDocumentsInputConfig.parser(),
+ extensionRegistry);
+ if (subBuilder != null) {
+ subBuilder.mergeFrom(inputDocuments_);
+ inputDocuments_ = subBuilder.buildPartial();
+ }
+
+ break;
+ }
+ case 50:
+ {
+ com.google.cloud.documentai.v1beta3.DocumentOutputConfig.Builder subBuilder = null;
+ if (documentOutputConfig_ != null) {
+ subBuilder = documentOutputConfig_.toBuilder();
+ }
+ documentOutputConfig_ =
+ input.readMessage(
+ com.google.cloud.documentai.v1beta3.DocumentOutputConfig.parser(),
+ extensionRegistry);
+ if (subBuilder != null) {
+ subBuilder.mergeFrom(documentOutputConfig_);
+ documentOutputConfig_ = subBuilder.buildPartial();
+ }
+
break;
}
default:
@@ -150,6 +190,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
com.google.cloud.documentai.v1beta3.BatchProcessRequest.Builder.class);
}
+ @java.lang.Deprecated
public interface BatchInputConfigOrBuilder
extends
// @@protoc_insertion_point(interface_extends:google.cloud.documentai.v1beta3.BatchProcessRequest.BatchInputConfig)
@@ -218,6 +259,7 @@ public interface BatchInputConfigOrBuilder
*
* Protobuf type {@code google.cloud.documentai.v1beta3.BatchProcessRequest.BatchInputConfig}
*/
+ @java.lang.Deprecated
public static final class BatchInputConfig extends com.google.protobuf.GeneratedMessageV3
implements
// @@protoc_insertion_point(message_implements:google.cloud.documentai.v1beta3.BatchProcessRequest.BatchInputConfig)
@@ -1049,6 +1091,7 @@ public com.google.protobuf.Parser
- * repeated .google.cloud.documentai.v1beta3.BatchProcessRequest.BatchInputConfig input_configs = 2;
+ * repeated .google.cloud.documentai.v1beta3.BatchProcessRequest.BatchInputConfig input_configs = 2 [deprecated = true];
*
*/
@java.lang.Override
+ @java.lang.Deprecated
public java.util.List
- * repeated .google.cloud.documentai.v1beta3.BatchProcessRequest.BatchInputConfig input_configs = 2;
+ * repeated .google.cloud.documentai.v1beta3.BatchProcessRequest.BatchInputConfig input_configs = 2 [deprecated = true];
*
*/
@java.lang.Override
+ @java.lang.Deprecated
public java.util.List<
? extends
com.google.cloud.documentai.v1beta3.BatchProcessRequest.BatchInputConfigOrBuilder>
@@ -1824,10 +1870,11 @@ public com.google.protobuf.ByteString getNameBytes() {
*
*
*
- * repeated .google.cloud.documentai.v1beta3.BatchProcessRequest.BatchInputConfig input_configs = 2;
+ * repeated .google.cloud.documentai.v1beta3.BatchProcessRequest.BatchInputConfig input_configs = 2 [deprecated = true];
*
*/
@java.lang.Override
+ @java.lang.Deprecated
public int getInputConfigsCount() {
return inputConfigs_.size();
}
@@ -1839,10 +1886,11 @@ public int getInputConfigsCount() {
*
*
*
- * repeated .google.cloud.documentai.v1beta3.BatchProcessRequest.BatchInputConfig input_configs = 2;
+ * repeated .google.cloud.documentai.v1beta3.BatchProcessRequest.BatchInputConfig input_configs = 2 [deprecated = true];
*
*/
@java.lang.Override
+ @java.lang.Deprecated
public com.google.cloud.documentai.v1beta3.BatchProcessRequest.BatchInputConfig getInputConfigs(
int index) {
return inputConfigs_.get(index);
@@ -1855,10 +1903,11 @@ public com.google.cloud.documentai.v1beta3.BatchProcessRequest.BatchInputConfig
*
*
*
- * repeated .google.cloud.documentai.v1beta3.BatchProcessRequest.BatchInputConfig input_configs = 2;
+ * repeated .google.cloud.documentai.v1beta3.BatchProcessRequest.BatchInputConfig input_configs = 2 [deprecated = true];
*
*/
@java.lang.Override
+ @java.lang.Deprecated
public com.google.cloud.documentai.v1beta3.BatchProcessRequest.BatchInputConfigOrBuilder
getInputConfigsOrBuilder(int index) {
return inputConfigs_.get(index);
@@ -1873,12 +1922,14 @@ public com.google.cloud.documentai.v1beta3.BatchProcessRequest.BatchInputConfig
* The overall output config for batch process.
*
*
- * .google.cloud.documentai.v1beta3.BatchProcessRequest.BatchOutputConfig output_config = 3;
+ *
+ * .google.cloud.documentai.v1beta3.BatchProcessRequest.BatchOutputConfig output_config = 3 [deprecated = true];
*
*
* @return Whether the outputConfig field is set.
*/
@java.lang.Override
+ @java.lang.Deprecated
public boolean hasOutputConfig() {
return outputConfig_ != null;
}
@@ -1889,12 +1940,14 @@ public boolean hasOutputConfig() {
* The overall output config for batch process.
*
*
- * .google.cloud.documentai.v1beta3.BatchProcessRequest.BatchOutputConfig output_config = 3;
+ *
+ * .google.cloud.documentai.v1beta3.BatchProcessRequest.BatchOutputConfig output_config = 3 [deprecated = true];
*
*
* @return The outputConfig.
*/
@java.lang.Override
+ @java.lang.Deprecated
public com.google.cloud.documentai.v1beta3.BatchProcessRequest.BatchOutputConfig
getOutputConfig() {
return outputConfig_ == null
@@ -1909,15 +1962,134 @@ public boolean hasOutputConfig() {
* The overall output config for batch process.
*
*
- * .google.cloud.documentai.v1beta3.BatchProcessRequest.BatchOutputConfig output_config = 3;
+ *
+ * .google.cloud.documentai.v1beta3.BatchProcessRequest.BatchOutputConfig output_config = 3 [deprecated = true];
*
*/
@java.lang.Override
+ @java.lang.Deprecated
public com.google.cloud.documentai.v1beta3.BatchProcessRequest.BatchOutputConfigOrBuilder
getOutputConfigOrBuilder() {
return getOutputConfig();
}
+ public static final int INPUT_DOCUMENTS_FIELD_NUMBER = 5;
+ private com.google.cloud.documentai.v1beta3.BatchDocumentsInputConfig inputDocuments_;
+ /**
+ *
+ *
+ *
+ * The input documents for batch process.
+ *
+ *
+ * .google.cloud.documentai.v1beta3.BatchDocumentsInputConfig input_documents = 5;
+ *
+ * @return Whether the inputDocuments field is set.
+ */
+ @java.lang.Override
+ public boolean hasInputDocuments() {
+ return inputDocuments_ != null;
+ }
+ /**
+ *
+ *
+ *
+ * The input documents for batch process.
+ *
+ *
+ * .google.cloud.documentai.v1beta3.BatchDocumentsInputConfig input_documents = 5;
+ *
+ * @return The inputDocuments.
+ */
+ @java.lang.Override
+ public com.google.cloud.documentai.v1beta3.BatchDocumentsInputConfig getInputDocuments() {
+ return inputDocuments_ == null
+ ? com.google.cloud.documentai.v1beta3.BatchDocumentsInputConfig.getDefaultInstance()
+ : inputDocuments_;
+ }
+ /**
+ *
+ *
+ *
+ * The input documents for batch process.
+ *
+ *
+ * .google.cloud.documentai.v1beta3.BatchDocumentsInputConfig input_documents = 5;
+ */
+ @java.lang.Override
+ public com.google.cloud.documentai.v1beta3.BatchDocumentsInputConfigOrBuilder
+ getInputDocumentsOrBuilder() {
+ return getInputDocuments();
+ }
+
+ public static final int DOCUMENT_OUTPUT_CONFIG_FIELD_NUMBER = 6;
+ private com.google.cloud.documentai.v1beta3.DocumentOutputConfig documentOutputConfig_;
+ /**
+ *
+ *
+ *
+ * The overall output config for batch process.
+ *
+ *
+ * .google.cloud.documentai.v1beta3.DocumentOutputConfig document_output_config = 6;
+ *
+ * @return Whether the documentOutputConfig field is set.
+ */
+ @java.lang.Override
+ public boolean hasDocumentOutputConfig() {
+ return documentOutputConfig_ != null;
+ }
+ /**
+ *
+ *
+ *
+ * The overall output config for batch process.
+ *
+ *
+ * .google.cloud.documentai.v1beta3.DocumentOutputConfig document_output_config = 6;
+ *
+ * @return The documentOutputConfig.
+ */
+ @java.lang.Override
+ public com.google.cloud.documentai.v1beta3.DocumentOutputConfig getDocumentOutputConfig() {
+ return documentOutputConfig_ == null
+ ? com.google.cloud.documentai.v1beta3.DocumentOutputConfig.getDefaultInstance()
+ : documentOutputConfig_;
+ }
+ /**
+ *
+ *
+ *
+ * The overall output config for batch process.
+ *
+ *
+ * .google.cloud.documentai.v1beta3.DocumentOutputConfig document_output_config = 6;
+ */
+ @java.lang.Override
+ public com.google.cloud.documentai.v1beta3.DocumentOutputConfigOrBuilder
+ getDocumentOutputConfigOrBuilder() {
+ return getDocumentOutputConfig();
+ }
+
+ public static final int SKIP_HUMAN_REVIEW_FIELD_NUMBER = 4;
+ private boolean skipHumanReview_;
+ /**
+ *
+ *
+ *
+ * Whether Human Review feature should be skipped for this request. Default to
+ * false.
+ *
+ *
+ * bool skip_human_review = 4;
+ *
+ * @return The skipHumanReview.
+ */
+ @java.lang.Override
+ public boolean getSkipHumanReview() {
+ return skipHumanReview_;
+ }
+
private byte memoizedIsInitialized = -1;
@java.lang.Override
@@ -1941,6 +2113,15 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
if (outputConfig_ != null) {
output.writeMessage(3, getOutputConfig());
}
+ if (skipHumanReview_ != false) {
+ output.writeBool(4, skipHumanReview_);
+ }
+ if (inputDocuments_ != null) {
+ output.writeMessage(5, getInputDocuments());
+ }
+ if (documentOutputConfig_ != null) {
+ output.writeMessage(6, getDocumentOutputConfig());
+ }
unknownFields.writeTo(output);
}
@@ -1959,6 +2140,16 @@ public int getSerializedSize() {
if (outputConfig_ != null) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getOutputConfig());
}
+ if (skipHumanReview_ != false) {
+ size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, skipHumanReview_);
+ }
+ if (inputDocuments_ != null) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getInputDocuments());
+ }
+ if (documentOutputConfig_ != null) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeMessageSize(6, getDocumentOutputConfig());
+ }
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
@@ -1981,6 +2172,15 @@ public boolean equals(final java.lang.Object obj) {
if (hasOutputConfig()) {
if (!getOutputConfig().equals(other.getOutputConfig())) return false;
}
+ if (hasInputDocuments() != other.hasInputDocuments()) return false;
+ if (hasInputDocuments()) {
+ if (!getInputDocuments().equals(other.getInputDocuments())) return false;
+ }
+ if (hasDocumentOutputConfig() != other.hasDocumentOutputConfig()) return false;
+ if (hasDocumentOutputConfig()) {
+ if (!getDocumentOutputConfig().equals(other.getDocumentOutputConfig())) return false;
+ }
+ if (getSkipHumanReview() != other.getSkipHumanReview()) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@@ -2002,6 +2202,16 @@ public int hashCode() {
hash = (37 * hash) + OUTPUT_CONFIG_FIELD_NUMBER;
hash = (53 * hash) + getOutputConfig().hashCode();
}
+ if (hasInputDocuments()) {
+ hash = (37 * hash) + INPUT_DOCUMENTS_FIELD_NUMBER;
+ hash = (53 * hash) + getInputDocuments().hashCode();
+ }
+ if (hasDocumentOutputConfig()) {
+ hash = (37 * hash) + DOCUMENT_OUTPUT_CONFIG_FIELD_NUMBER;
+ hash = (53 * hash) + getDocumentOutputConfig().hashCode();
+ }
+ hash = (37 * hash) + SKIP_HUMAN_REVIEW_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getSkipHumanReview());
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
@@ -2164,6 +2374,20 @@ public Builder clear() {
outputConfig_ = null;
outputConfigBuilder_ = null;
}
+ if (inputDocumentsBuilder_ == null) {
+ inputDocuments_ = null;
+ } else {
+ inputDocuments_ = null;
+ inputDocumentsBuilder_ = null;
+ }
+ if (documentOutputConfigBuilder_ == null) {
+ documentOutputConfig_ = null;
+ } else {
+ documentOutputConfig_ = null;
+ documentOutputConfigBuilder_ = null;
+ }
+ skipHumanReview_ = false;
+
return this;
}
@@ -2207,6 +2431,17 @@ public com.google.cloud.documentai.v1beta3.BatchProcessRequest buildPartial() {
} else {
result.outputConfig_ = outputConfigBuilder_.build();
}
+ if (inputDocumentsBuilder_ == null) {
+ result.inputDocuments_ = inputDocuments_;
+ } else {
+ result.inputDocuments_ = inputDocumentsBuilder_.build();
+ }
+ if (documentOutputConfigBuilder_ == null) {
+ result.documentOutputConfig_ = documentOutputConfig_;
+ } else {
+ result.documentOutputConfig_ = documentOutputConfigBuilder_.build();
+ }
+ result.skipHumanReview_ = skipHumanReview_;
onBuilt();
return result;
}
@@ -2291,6 +2526,15 @@ public Builder mergeFrom(com.google.cloud.documentai.v1beta3.BatchProcessRequest
if (other.hasOutputConfig()) {
mergeOutputConfig(other.getOutputConfig());
}
+ if (other.hasInputDocuments()) {
+ mergeInputDocuments(other.getInputDocuments());
+ }
+ if (other.hasDocumentOutputConfig()) {
+ mergeDocumentOutputConfig(other.getDocumentOutputConfig());
+ }
+ if (other.getSkipHumanReview() != false) {
+ setSkipHumanReview(other.getSkipHumanReview());
+ }
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
@@ -2466,9 +2710,10 @@ private void ensureInputConfigsIsMutable() {
*
*
*
- * repeated .google.cloud.documentai.v1beta3.BatchProcessRequest.BatchInputConfig input_configs = 2;
+ * repeated .google.cloud.documentai.v1beta3.BatchProcessRequest.BatchInputConfig input_configs = 2 [deprecated = true];
*
*/
+ @java.lang.Deprecated
public java.util.List
getInputConfigsList() {
if (inputConfigsBuilder_ == null) {
@@ -2485,9 +2730,10 @@ private void ensureInputConfigsIsMutable() {
*
*
*
- * repeated .google.cloud.documentai.v1beta3.BatchProcessRequest.BatchInputConfig input_configs = 2;
+ * repeated .google.cloud.documentai.v1beta3.BatchProcessRequest.BatchInputConfig input_configs = 2 [deprecated = true];
*
*/
+ @java.lang.Deprecated
public int getInputConfigsCount() {
if (inputConfigsBuilder_ == null) {
return inputConfigs_.size();
@@ -2503,9 +2749,10 @@ public int getInputConfigsCount() {
*
*
*
- * repeated .google.cloud.documentai.v1beta3.BatchProcessRequest.BatchInputConfig input_configs = 2;
+ * repeated .google.cloud.documentai.v1beta3.BatchProcessRequest.BatchInputConfig input_configs = 2 [deprecated = true];
*
*/
+ @java.lang.Deprecated
public com.google.cloud.documentai.v1beta3.BatchProcessRequest.BatchInputConfig getInputConfigs(
int index) {
if (inputConfigsBuilder_ == null) {
@@ -2522,9 +2769,10 @@ public com.google.cloud.documentai.v1beta3.BatchProcessRequest.BatchInputConfig
*
*
*
- * repeated .google.cloud.documentai.v1beta3.BatchProcessRequest.BatchInputConfig input_configs = 2;
+ * repeated .google.cloud.documentai.v1beta3.BatchProcessRequest.BatchInputConfig input_configs = 2 [deprecated = true];
*
*/
+ @java.lang.Deprecated
public Builder setInputConfigs(
int index, com.google.cloud.documentai.v1beta3.BatchProcessRequest.BatchInputConfig value) {
if (inputConfigsBuilder_ == null) {
@@ -2547,9 +2795,10 @@ public Builder setInputConfigs(
*
*
*
- * repeated .google.cloud.documentai.v1beta3.BatchProcessRequest.BatchInputConfig input_configs = 2;
+ * repeated .google.cloud.documentai.v1beta3.BatchProcessRequest.BatchInputConfig input_configs = 2 [deprecated = true];
*
*/
+ @java.lang.Deprecated
public Builder setInputConfigs(
int index,
com.google.cloud.documentai.v1beta3.BatchProcessRequest.BatchInputConfig.Builder
@@ -2571,9 +2820,10 @@ public Builder setInputConfigs(
*
*
*
- * repeated .google.cloud.documentai.v1beta3.BatchProcessRequest.BatchInputConfig input_configs = 2;
+ * repeated .google.cloud.documentai.v1beta3.BatchProcessRequest.BatchInputConfig input_configs = 2 [deprecated = true];
*
*/
+ @java.lang.Deprecated
public Builder addInputConfigs(
com.google.cloud.documentai.v1beta3.BatchProcessRequest.BatchInputConfig value) {
if (inputConfigsBuilder_ == null) {
@@ -2596,9 +2846,10 @@ public Builder addInputConfigs(
*
*
*
- * repeated .google.cloud.documentai.v1beta3.BatchProcessRequest.BatchInputConfig input_configs = 2;
+ * repeated .google.cloud.documentai.v1beta3.BatchProcessRequest.BatchInputConfig input_configs = 2 [deprecated = true];
*
*/
+ @java.lang.Deprecated
public Builder addInputConfigs(
int index, com.google.cloud.documentai.v1beta3.BatchProcessRequest.BatchInputConfig value) {
if (inputConfigsBuilder_ == null) {
@@ -2621,9 +2872,10 @@ public Builder addInputConfigs(
*
*
*
- * repeated .google.cloud.documentai.v1beta3.BatchProcessRequest.BatchInputConfig input_configs = 2;
+ * repeated .google.cloud.documentai.v1beta3.BatchProcessRequest.BatchInputConfig input_configs = 2 [deprecated = true];
*
*/
+ @java.lang.Deprecated
public Builder addInputConfigs(
com.google.cloud.documentai.v1beta3.BatchProcessRequest.BatchInputConfig.Builder
builderForValue) {
@@ -2644,9 +2896,10 @@ public Builder addInputConfigs(
*
*
*
- * repeated .google.cloud.documentai.v1beta3.BatchProcessRequest.BatchInputConfig input_configs = 2;
+ * repeated .google.cloud.documentai.v1beta3.BatchProcessRequest.BatchInputConfig input_configs = 2 [deprecated = true];
*
*/
+ @java.lang.Deprecated
public Builder addInputConfigs(
int index,
com.google.cloud.documentai.v1beta3.BatchProcessRequest.BatchInputConfig.Builder
@@ -2668,9 +2921,10 @@ public Builder addInputConfigs(
*
*
*
- * repeated .google.cloud.documentai.v1beta3.BatchProcessRequest.BatchInputConfig input_configs = 2;
+ * repeated .google.cloud.documentai.v1beta3.BatchProcessRequest.BatchInputConfig input_configs = 2 [deprecated = true];
*
*/
+ @java.lang.Deprecated
public Builder addAllInputConfigs(
java.lang.Iterable<
? extends com.google.cloud.documentai.v1beta3.BatchProcessRequest.BatchInputConfig>
@@ -2692,9 +2946,10 @@ public Builder addAllInputConfigs(
*
*
*
- * repeated .google.cloud.documentai.v1beta3.BatchProcessRequest.BatchInputConfig input_configs = 2;
+ * repeated .google.cloud.documentai.v1beta3.BatchProcessRequest.BatchInputConfig input_configs = 2 [deprecated = true];
*
*/
+ @java.lang.Deprecated
public Builder clearInputConfigs() {
if (inputConfigsBuilder_ == null) {
inputConfigs_ = java.util.Collections.emptyList();
@@ -2713,9 +2968,10 @@ public Builder clearInputConfigs() {
*
*
*
- * repeated .google.cloud.documentai.v1beta3.BatchProcessRequest.BatchInputConfig input_configs = 2;
+ * repeated .google.cloud.documentai.v1beta3.BatchProcessRequest.BatchInputConfig input_configs = 2 [deprecated = true];
*
*/
+ @java.lang.Deprecated
public Builder removeInputConfigs(int index) {
if (inputConfigsBuilder_ == null) {
ensureInputConfigsIsMutable();
@@ -2734,9 +2990,10 @@ public Builder removeInputConfigs(int index) {
*
*
*
- * repeated .google.cloud.documentai.v1beta3.BatchProcessRequest.BatchInputConfig input_configs = 2;
+ * repeated .google.cloud.documentai.v1beta3.BatchProcessRequest.BatchInputConfig input_configs = 2 [deprecated = true];
*
*/
+ @java.lang.Deprecated
public com.google.cloud.documentai.v1beta3.BatchProcessRequest.BatchInputConfig.Builder
getInputConfigsBuilder(int index) {
return getInputConfigsFieldBuilder().getBuilder(index);
@@ -2749,9 +3006,10 @@ public Builder removeInputConfigs(int index) {
*
*
*
- * repeated .google.cloud.documentai.v1beta3.BatchProcessRequest.BatchInputConfig input_configs = 2;
+ * repeated .google.cloud.documentai.v1beta3.BatchProcessRequest.BatchInputConfig input_configs = 2 [deprecated = true];
*
*/
+ @java.lang.Deprecated
public com.google.cloud.documentai.v1beta3.BatchProcessRequest.BatchInputConfigOrBuilder
getInputConfigsOrBuilder(int index) {
if (inputConfigsBuilder_ == null) {
@@ -2768,9 +3026,10 @@ public Builder removeInputConfigs(int index) {
*
*
*
- * repeated .google.cloud.documentai.v1beta3.BatchProcessRequest.BatchInputConfig input_configs = 2;
+ * repeated .google.cloud.documentai.v1beta3.BatchProcessRequest.BatchInputConfig input_configs = 2 [deprecated = true];
*
*/
+ @java.lang.Deprecated
public java.util.List<
? extends
com.google.cloud.documentai.v1beta3.BatchProcessRequest.BatchInputConfigOrBuilder>
@@ -2789,9 +3048,10 @@ public Builder removeInputConfigs(int index) {
*
*
*
- * repeated .google.cloud.documentai.v1beta3.BatchProcessRequest.BatchInputConfig input_configs = 2;
+ * repeated .google.cloud.documentai.v1beta3.BatchProcessRequest.BatchInputConfig input_configs = 2 [deprecated = true];
*
*/
+ @java.lang.Deprecated
public com.google.cloud.documentai.v1beta3.BatchProcessRequest.BatchInputConfig.Builder
addInputConfigsBuilder() {
return getInputConfigsFieldBuilder()
@@ -2807,9 +3067,10 @@ public Builder removeInputConfigs(int index) {
*
*
*
- * repeated .google.cloud.documentai.v1beta3.BatchProcessRequest.BatchInputConfig input_configs = 2;
+ * repeated .google.cloud.documentai.v1beta3.BatchProcessRequest.BatchInputConfig input_configs = 2 [deprecated = true];
*
*/
+ @java.lang.Deprecated
public com.google.cloud.documentai.v1beta3.BatchProcessRequest.BatchInputConfig.Builder
addInputConfigsBuilder(int index) {
return getInputConfigsFieldBuilder()
@@ -2826,9 +3087,10 @@ public Builder removeInputConfigs(int index) {
*
*
*
- * repeated .google.cloud.documentai.v1beta3.BatchProcessRequest.BatchInputConfig input_configs = 2;
+ * repeated .google.cloud.documentai.v1beta3.BatchProcessRequest.BatchInputConfig input_configs = 2 [deprecated = true];
*
*/
+ @java.lang.Deprecated
public java.util.List<
com.google.cloud.documentai.v1beta3.BatchProcessRequest.BatchInputConfig.Builder>
getInputConfigsBuilderList() {
@@ -2866,11 +3128,12 @@ public Builder removeInputConfigs(int index) {
*
*
*
- * .google.cloud.documentai.v1beta3.BatchProcessRequest.BatchOutputConfig output_config = 3;
+ * .google.cloud.documentai.v1beta3.BatchProcessRequest.BatchOutputConfig output_config = 3 [deprecated = true];
*
*
* @return Whether the outputConfig field is set.
*/
+ @java.lang.Deprecated
public boolean hasOutputConfig() {
return outputConfigBuilder_ != null || outputConfig_ != null;
}
@@ -2882,11 +3145,12 @@ public boolean hasOutputConfig() {
*
*
*
- * .google.cloud.documentai.v1beta3.BatchProcessRequest.BatchOutputConfig output_config = 3;
+ * .google.cloud.documentai.v1beta3.BatchProcessRequest.BatchOutputConfig output_config = 3 [deprecated = true];
*
*
* @return The outputConfig.
*/
+ @java.lang.Deprecated
public com.google.cloud.documentai.v1beta3.BatchProcessRequest.BatchOutputConfig
getOutputConfig() {
if (outputConfigBuilder_ == null) {
@@ -2906,9 +3170,10 @@ public boolean hasOutputConfig() {
*
*
*
- * .google.cloud.documentai.v1beta3.BatchProcessRequest.BatchOutputConfig output_config = 3;
+ * .google.cloud.documentai.v1beta3.BatchProcessRequest.BatchOutputConfig output_config = 3 [deprecated = true];
*
*/
+ @java.lang.Deprecated
public Builder setOutputConfig(
com.google.cloud.documentai.v1beta3.BatchProcessRequest.BatchOutputConfig value) {
if (outputConfigBuilder_ == null) {
@@ -2931,9 +3196,10 @@ public Builder setOutputConfig(
*
*
*
- * .google.cloud.documentai.v1beta3.BatchProcessRequest.BatchOutputConfig output_config = 3;
+ * .google.cloud.documentai.v1beta3.BatchProcessRequest.BatchOutputConfig output_config = 3 [deprecated = true];
*
*/
+ @java.lang.Deprecated
public Builder setOutputConfig(
com.google.cloud.documentai.v1beta3.BatchProcessRequest.BatchOutputConfig.Builder
builderForValue) {
@@ -2954,9 +3220,10 @@ public Builder setOutputConfig(
*
*
*
- * .google.cloud.documentai.v1beta3.BatchProcessRequest.BatchOutputConfig output_config = 3;
+ * .google.cloud.documentai.v1beta3.BatchProcessRequest.BatchOutputConfig output_config = 3 [deprecated = true];
*
*/
+ @java.lang.Deprecated
public Builder mergeOutputConfig(
com.google.cloud.documentai.v1beta3.BatchProcessRequest.BatchOutputConfig value) {
if (outputConfigBuilder_ == null) {
@@ -2984,9 +3251,10 @@ public Builder mergeOutputConfig(
*
*
*
- * .google.cloud.documentai.v1beta3.BatchProcessRequest.BatchOutputConfig output_config = 3;
+ * .google.cloud.documentai.v1beta3.BatchProcessRequest.BatchOutputConfig output_config = 3 [deprecated = true];
*
*/
+ @java.lang.Deprecated
public Builder clearOutputConfig() {
if (outputConfigBuilder_ == null) {
outputConfig_ = null;
@@ -3006,9 +3274,10 @@ public Builder clearOutputConfig() {
*
*
*
- * .google.cloud.documentai.v1beta3.BatchProcessRequest.BatchOutputConfig output_config = 3;
+ * .google.cloud.documentai.v1beta3.BatchProcessRequest.BatchOutputConfig output_config = 3 [deprecated = true];
*
*/
+ @java.lang.Deprecated
public com.google.cloud.documentai.v1beta3.BatchProcessRequest.BatchOutputConfig.Builder
getOutputConfigBuilder() {
@@ -3023,9 +3292,10 @@ public Builder clearOutputConfig() {
*
*
*
- * .google.cloud.documentai.v1beta3.BatchProcessRequest.BatchOutputConfig output_config = 3;
+ * .google.cloud.documentai.v1beta3.BatchProcessRequest.BatchOutputConfig output_config = 3 [deprecated = true];
*
*/
+ @java.lang.Deprecated
public com.google.cloud.documentai.v1beta3.BatchProcessRequest.BatchOutputConfigOrBuilder
getOutputConfigOrBuilder() {
if (outputConfigBuilder_ != null) {
@@ -3045,7 +3315,7 @@ public Builder clearOutputConfig() {
*
*
*
- * .google.cloud.documentai.v1beta3.BatchProcessRequest.BatchOutputConfig output_config = 3;
+ * .google.cloud.documentai.v1beta3.BatchProcessRequest.BatchOutputConfig output_config = 3 [deprecated = true];
*
*/
private com.google.protobuf.SingleFieldBuilderV3<
@@ -3065,6 +3335,452 @@ public Builder clearOutputConfig() {
return outputConfigBuilder_;
}
+ private com.google.cloud.documentai.v1beta3.BatchDocumentsInputConfig inputDocuments_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.documentai.v1beta3.BatchDocumentsInputConfig,
+ com.google.cloud.documentai.v1beta3.BatchDocumentsInputConfig.Builder,
+ com.google.cloud.documentai.v1beta3.BatchDocumentsInputConfigOrBuilder>
+ inputDocumentsBuilder_;
+ /**
+ *
+ *
+ *
+ * The input documents for batch process.
+ *
+ *
+ * .google.cloud.documentai.v1beta3.BatchDocumentsInputConfig input_documents = 5;
+ *
+ * @return Whether the inputDocuments field is set.
+ */
+ public boolean hasInputDocuments() {
+ return inputDocumentsBuilder_ != null || inputDocuments_ != null;
+ }
+ /**
+ *
+ *
+ *
+ * The input documents for batch process.
+ *
+ *
+ * .google.cloud.documentai.v1beta3.BatchDocumentsInputConfig input_documents = 5;
+ *
+ * @return The inputDocuments.
+ */
+ public com.google.cloud.documentai.v1beta3.BatchDocumentsInputConfig getInputDocuments() {
+ if (inputDocumentsBuilder_ == null) {
+ return inputDocuments_ == null
+ ? com.google.cloud.documentai.v1beta3.BatchDocumentsInputConfig.getDefaultInstance()
+ : inputDocuments_;
+ } else {
+ return inputDocumentsBuilder_.getMessage();
+ }
+ }
+ /**
+ *
+ *
+ *
+ * The input documents for batch process.
+ *
+ *
+ * .google.cloud.documentai.v1beta3.BatchDocumentsInputConfig input_documents = 5;
+ */
+ public Builder setInputDocuments(
+ com.google.cloud.documentai.v1beta3.BatchDocumentsInputConfig value) {
+ if (inputDocumentsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ inputDocuments_ = value;
+ onChanged();
+ } else {
+ inputDocumentsBuilder_.setMessage(value);
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The input documents for batch process.
+ *
+ *
+ * .google.cloud.documentai.v1beta3.BatchDocumentsInputConfig input_documents = 5;
+ */
+ public Builder setInputDocuments(
+ com.google.cloud.documentai.v1beta3.BatchDocumentsInputConfig.Builder builderForValue) {
+ if (inputDocumentsBuilder_ == null) {
+ inputDocuments_ = builderForValue.build();
+ onChanged();
+ } else {
+ inputDocumentsBuilder_.setMessage(builderForValue.build());
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The input documents for batch process.
+ *
+ *
+ * .google.cloud.documentai.v1beta3.BatchDocumentsInputConfig input_documents = 5;
+ */
+ public Builder mergeInputDocuments(
+ com.google.cloud.documentai.v1beta3.BatchDocumentsInputConfig value) {
+ if (inputDocumentsBuilder_ == null) {
+ if (inputDocuments_ != null) {
+ inputDocuments_ =
+ com.google.cloud.documentai.v1beta3.BatchDocumentsInputConfig.newBuilder(
+ inputDocuments_)
+ .mergeFrom(value)
+ .buildPartial();
+ } else {
+ inputDocuments_ = value;
+ }
+ onChanged();
+ } else {
+ inputDocumentsBuilder_.mergeFrom(value);
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The input documents for batch process.
+ *
+ *
+ * .google.cloud.documentai.v1beta3.BatchDocumentsInputConfig input_documents = 5;
+ */
+ public Builder clearInputDocuments() {
+ if (inputDocumentsBuilder_ == null) {
+ inputDocuments_ = null;
+ onChanged();
+ } else {
+ inputDocuments_ = null;
+ inputDocumentsBuilder_ = null;
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The input documents for batch process.
+ *
+ *
+ * .google.cloud.documentai.v1beta3.BatchDocumentsInputConfig input_documents = 5;
+ */
+ public com.google.cloud.documentai.v1beta3.BatchDocumentsInputConfig.Builder
+ getInputDocumentsBuilder() {
+
+ onChanged();
+ return getInputDocumentsFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ *
+ * The input documents for batch process.
+ *
+ *
+ * .google.cloud.documentai.v1beta3.BatchDocumentsInputConfig input_documents = 5;
+ */
+ public com.google.cloud.documentai.v1beta3.BatchDocumentsInputConfigOrBuilder
+ getInputDocumentsOrBuilder() {
+ if (inputDocumentsBuilder_ != null) {
+ return inputDocumentsBuilder_.getMessageOrBuilder();
+ } else {
+ return inputDocuments_ == null
+ ? com.google.cloud.documentai.v1beta3.BatchDocumentsInputConfig.getDefaultInstance()
+ : inputDocuments_;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * The input documents for batch process.
+ *
+ *
+ * .google.cloud.documentai.v1beta3.BatchDocumentsInputConfig input_documents = 5;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.documentai.v1beta3.BatchDocumentsInputConfig,
+ com.google.cloud.documentai.v1beta3.BatchDocumentsInputConfig.Builder,
+ com.google.cloud.documentai.v1beta3.BatchDocumentsInputConfigOrBuilder>
+ getInputDocumentsFieldBuilder() {
+ if (inputDocumentsBuilder_ == null) {
+ inputDocumentsBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.documentai.v1beta3.BatchDocumentsInputConfig,
+ com.google.cloud.documentai.v1beta3.BatchDocumentsInputConfig.Builder,
+ com.google.cloud.documentai.v1beta3.BatchDocumentsInputConfigOrBuilder>(
+ getInputDocuments(), getParentForChildren(), isClean());
+ inputDocuments_ = null;
+ }
+ return inputDocumentsBuilder_;
+ }
+
+ private com.google.cloud.documentai.v1beta3.DocumentOutputConfig documentOutputConfig_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.documentai.v1beta3.DocumentOutputConfig,
+ com.google.cloud.documentai.v1beta3.DocumentOutputConfig.Builder,
+ com.google.cloud.documentai.v1beta3.DocumentOutputConfigOrBuilder>
+ documentOutputConfigBuilder_;
+ /**
+ *
+ *
+ *
+ * The overall output config for batch process.
+ *
+ *
+ * .google.cloud.documentai.v1beta3.DocumentOutputConfig document_output_config = 6;
+ *
+ *
+ * @return Whether the documentOutputConfig field is set.
+ */
+ public boolean hasDocumentOutputConfig() {
+ return documentOutputConfigBuilder_ != null || documentOutputConfig_ != null;
+ }
+ /**
+ *
+ *
+ *
+ * The overall output config for batch process.
+ *
+ *
+ * .google.cloud.documentai.v1beta3.DocumentOutputConfig document_output_config = 6;
+ *
+ *
+ * @return The documentOutputConfig.
+ */
+ public com.google.cloud.documentai.v1beta3.DocumentOutputConfig getDocumentOutputConfig() {
+ if (documentOutputConfigBuilder_ == null) {
+ return documentOutputConfig_ == null
+ ? com.google.cloud.documentai.v1beta3.DocumentOutputConfig.getDefaultInstance()
+ : documentOutputConfig_;
+ } else {
+ return documentOutputConfigBuilder_.getMessage();
+ }
+ }
+ /**
+ *
+ *
+ *
+ * The overall output config for batch process.
+ *
+ *
+ * .google.cloud.documentai.v1beta3.DocumentOutputConfig document_output_config = 6;
+ *
+ */
+ public Builder setDocumentOutputConfig(
+ com.google.cloud.documentai.v1beta3.DocumentOutputConfig value) {
+ if (documentOutputConfigBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ documentOutputConfig_ = value;
+ onChanged();
+ } else {
+ documentOutputConfigBuilder_.setMessage(value);
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The overall output config for batch process.
+ *
+ *
+ * .google.cloud.documentai.v1beta3.DocumentOutputConfig document_output_config = 6;
+ *
+ */
+ public Builder setDocumentOutputConfig(
+ com.google.cloud.documentai.v1beta3.DocumentOutputConfig.Builder builderForValue) {
+ if (documentOutputConfigBuilder_ == null) {
+ documentOutputConfig_ = builderForValue.build();
+ onChanged();
+ } else {
+ documentOutputConfigBuilder_.setMessage(builderForValue.build());
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The overall output config for batch process.
+ *
+ *
+ * .google.cloud.documentai.v1beta3.DocumentOutputConfig document_output_config = 6;
+ *
+ */
+ public Builder mergeDocumentOutputConfig(
+ com.google.cloud.documentai.v1beta3.DocumentOutputConfig value) {
+ if (documentOutputConfigBuilder_ == null) {
+ if (documentOutputConfig_ != null) {
+ documentOutputConfig_ =
+ com.google.cloud.documentai.v1beta3.DocumentOutputConfig.newBuilder(
+ documentOutputConfig_)
+ .mergeFrom(value)
+ .buildPartial();
+ } else {
+ documentOutputConfig_ = value;
+ }
+ onChanged();
+ } else {
+ documentOutputConfigBuilder_.mergeFrom(value);
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The overall output config for batch process.
+ *
+ *
+ * .google.cloud.documentai.v1beta3.DocumentOutputConfig document_output_config = 6;
+ *
+ */
+ public Builder clearDocumentOutputConfig() {
+ if (documentOutputConfigBuilder_ == null) {
+ documentOutputConfig_ = null;
+ onChanged();
+ } else {
+ documentOutputConfig_ = null;
+ documentOutputConfigBuilder_ = null;
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The overall output config for batch process.
+ *
+ *
+ * .google.cloud.documentai.v1beta3.DocumentOutputConfig document_output_config = 6;
+ *
+ */
+ public com.google.cloud.documentai.v1beta3.DocumentOutputConfig.Builder
+ getDocumentOutputConfigBuilder() {
+
+ onChanged();
+ return getDocumentOutputConfigFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ *
+ * The overall output config for batch process.
+ *
+ *
+ * .google.cloud.documentai.v1beta3.DocumentOutputConfig document_output_config = 6;
+ *
+ */
+ public com.google.cloud.documentai.v1beta3.DocumentOutputConfigOrBuilder
+ getDocumentOutputConfigOrBuilder() {
+ if (documentOutputConfigBuilder_ != null) {
+ return documentOutputConfigBuilder_.getMessageOrBuilder();
+ } else {
+ return documentOutputConfig_ == null
+ ? com.google.cloud.documentai.v1beta3.DocumentOutputConfig.getDefaultInstance()
+ : documentOutputConfig_;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * The overall output config for batch process.
+ *
+ *
+ * .google.cloud.documentai.v1beta3.DocumentOutputConfig document_output_config = 6;
+ *
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.documentai.v1beta3.DocumentOutputConfig,
+ com.google.cloud.documentai.v1beta3.DocumentOutputConfig.Builder,
+ com.google.cloud.documentai.v1beta3.DocumentOutputConfigOrBuilder>
+ getDocumentOutputConfigFieldBuilder() {
+ if (documentOutputConfigBuilder_ == null) {
+ documentOutputConfigBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.documentai.v1beta3.DocumentOutputConfig,
+ com.google.cloud.documentai.v1beta3.DocumentOutputConfig.Builder,
+ com.google.cloud.documentai.v1beta3.DocumentOutputConfigOrBuilder>(
+ getDocumentOutputConfig(), getParentForChildren(), isClean());
+ documentOutputConfig_ = null;
+ }
+ return documentOutputConfigBuilder_;
+ }
+
+ private boolean skipHumanReview_;
+ /**
+ *
+ *
+ *
+ * Whether Human Review feature should be skipped for this request. Default to
+ * false.
+ *
+ *
+ * bool skip_human_review = 4;
+ *
+ * @return The skipHumanReview.
+ */
+ @java.lang.Override
+ public boolean getSkipHumanReview() {
+ return skipHumanReview_;
+ }
+ /**
+ *
+ *
+ *
+ * Whether Human Review feature should be skipped for this request. Default to
+ * false.
+ *
+ *
+ * bool skip_human_review = 4;
+ *
+ * @param value The skipHumanReview to set.
+ * @return This builder for chaining.
+ */
+ public Builder setSkipHumanReview(boolean value) {
+
+ skipHumanReview_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Whether Human Review feature should be skipped for this request. Default to
+ * false.
+ *
+ *
+ * bool skip_human_review = 4;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearSkipHumanReview() {
+
+ skipHumanReview_ = false;
+ onChanged();
+ return this;
+ }
+
@java.lang.Override
public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
diff --git a/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/BatchProcessRequestOrBuilder.java b/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/BatchProcessRequestOrBuilder.java
index 78b12577..2a1f2597 100644
--- a/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/BatchProcessRequestOrBuilder.java
+++ b/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/BatchProcessRequestOrBuilder.java
@@ -60,9 +60,10 @@ public interface BatchProcessRequestOrBuilder
*
*
*
- * repeated .google.cloud.documentai.v1beta3.BatchProcessRequest.BatchInputConfig input_configs = 2;
+ * repeated .google.cloud.documentai.v1beta3.BatchProcessRequest.BatchInputConfig input_configs = 2 [deprecated = true];
*
*/
+ @java.lang.Deprecated
java.util.List
getInputConfigsList();
/**
@@ -73,9 +74,10 @@ public interface BatchProcessRequestOrBuilder
*
*
*
- * repeated .google.cloud.documentai.v1beta3.BatchProcessRequest.BatchInputConfig input_configs = 2;
+ * repeated .google.cloud.documentai.v1beta3.BatchProcessRequest.BatchInputConfig input_configs = 2 [deprecated = true];
*
*/
+ @java.lang.Deprecated
com.google.cloud.documentai.v1beta3.BatchProcessRequest.BatchInputConfig getInputConfigs(
int index);
/**
@@ -86,9 +88,10 @@ com.google.cloud.documentai.v1beta3.BatchProcessRequest.BatchInputConfig getInpu
*
*
*
- * repeated .google.cloud.documentai.v1beta3.BatchProcessRequest.BatchInputConfig input_configs = 2;
+ * repeated .google.cloud.documentai.v1beta3.BatchProcessRequest.BatchInputConfig input_configs = 2 [deprecated = true];
*
*/
+ @java.lang.Deprecated
int getInputConfigsCount();
/**
*
@@ -98,9 +101,10 @@ com.google.cloud.documentai.v1beta3.BatchProcessRequest.BatchInputConfig getInpu
*
*
*
- * repeated .google.cloud.documentai.v1beta3.BatchProcessRequest.BatchInputConfig input_configs = 2;
+ * repeated .google.cloud.documentai.v1beta3.BatchProcessRequest.BatchInputConfig input_configs = 2 [deprecated = true];
*
*/
+ @java.lang.Deprecated
java.util.List<
? extends
com.google.cloud.documentai.v1beta3.BatchProcessRequest.BatchInputConfigOrBuilder>
@@ -113,9 +117,10 @@ com.google.cloud.documentai.v1beta3.BatchProcessRequest.BatchInputConfig getInpu
*
*
*
- * repeated .google.cloud.documentai.v1beta3.BatchProcessRequest.BatchInputConfig input_configs = 2;
+ * repeated .google.cloud.documentai.v1beta3.BatchProcessRequest.BatchInputConfig input_configs = 2 [deprecated = true];
*
*/
+ @java.lang.Deprecated
com.google.cloud.documentai.v1beta3.BatchProcessRequest.BatchInputConfigOrBuilder
getInputConfigsOrBuilder(int index);
@@ -126,11 +131,13 @@ com.google.cloud.documentai.v1beta3.BatchProcessRequest.BatchInputConfig getInpu
* The overall output config for batch process.
*
*
- * .google.cloud.documentai.v1beta3.BatchProcessRequest.BatchOutputConfig output_config = 3;
+ *
+ * .google.cloud.documentai.v1beta3.BatchProcessRequest.BatchOutputConfig output_config = 3 [deprecated = true];
*
*
* @return Whether the outputConfig field is set.
*/
+ @java.lang.Deprecated
boolean hasOutputConfig();
/**
*
@@ -139,11 +146,13 @@ com.google.cloud.documentai.v1beta3.BatchProcessRequest.BatchInputConfig getInpu
* The overall output config for batch process.
*
*
- * .google.cloud.documentai.v1beta3.BatchProcessRequest.BatchOutputConfig output_config = 3;
+ *
+ * .google.cloud.documentai.v1beta3.BatchProcessRequest.BatchOutputConfig output_config = 3 [deprecated = true];
*
*
* @return The outputConfig.
*/
+ @java.lang.Deprecated
com.google.cloud.documentai.v1beta3.BatchProcessRequest.BatchOutputConfig getOutputConfig();
/**
*
@@ -152,9 +161,97 @@ com.google.cloud.documentai.v1beta3.BatchProcessRequest.BatchInputConfig getInpu
* The overall output config for batch process.
*
*
- * .google.cloud.documentai.v1beta3.BatchProcessRequest.BatchOutputConfig output_config = 3;
+ *
+ * .google.cloud.documentai.v1beta3.BatchProcessRequest.BatchOutputConfig output_config = 3 [deprecated = true];
*
*/
+ @java.lang.Deprecated
com.google.cloud.documentai.v1beta3.BatchProcessRequest.BatchOutputConfigOrBuilder
getOutputConfigOrBuilder();
+
+ /**
+ *
+ *
+ *
+ * The input documents for batch process.
+ *
+ *
+ * .google.cloud.documentai.v1beta3.BatchDocumentsInputConfig input_documents = 5;
+ *
+ * @return Whether the inputDocuments field is set.
+ */
+ boolean hasInputDocuments();
+ /**
+ *
+ *
+ *
+ * The input documents for batch process.
+ *
+ *
+ * .google.cloud.documentai.v1beta3.BatchDocumentsInputConfig input_documents = 5;
+ *
+ * @return The inputDocuments.
+ */
+ com.google.cloud.documentai.v1beta3.BatchDocumentsInputConfig getInputDocuments();
+ /**
+ *
+ *
+ *
+ * The input documents for batch process.
+ *
+ *
+ * .google.cloud.documentai.v1beta3.BatchDocumentsInputConfig input_documents = 5;
+ */
+ com.google.cloud.documentai.v1beta3.BatchDocumentsInputConfigOrBuilder
+ getInputDocumentsOrBuilder();
+
+ /**
+ *
+ *
+ *
+ * The overall output config for batch process.
+ *
+ *
+ * .google.cloud.documentai.v1beta3.DocumentOutputConfig document_output_config = 6;
+ *
+ * @return Whether the documentOutputConfig field is set.
+ */
+ boolean hasDocumentOutputConfig();
+ /**
+ *
+ *
+ *
+ * The overall output config for batch process.
+ *
+ *
+ * .google.cloud.documentai.v1beta3.DocumentOutputConfig document_output_config = 6;
+ *
+ * @return The documentOutputConfig.
+ */
+ com.google.cloud.documentai.v1beta3.DocumentOutputConfig getDocumentOutputConfig();
+ /**
+ *
+ *
+ *
+ * The overall output config for batch process.
+ *
+ *
+ * .google.cloud.documentai.v1beta3.DocumentOutputConfig document_output_config = 6;
+ */
+ com.google.cloud.documentai.v1beta3.DocumentOutputConfigOrBuilder
+ getDocumentOutputConfigOrBuilder();
+
+ /**
+ *
+ *
+ *
+ * Whether Human Review feature should be skipped for this request. Default to
+ * false.
+ *
+ *
+ * bool skip_human_review = 4;
+ *
+ * @return The skipHumanReview.
+ */
+ boolean getSkipHumanReview();
}
diff --git a/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/CommonOperationMetadata.java b/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/CommonOperationMetadata.java
new file mode 100644
index 00000000..227e52b7
--- /dev/null
+++ b/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/CommonOperationMetadata.java
@@ -0,0 +1,1565 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the 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_processor_service.proto
+
+package com.google.cloud.documentai.v1beta3;
+
+/**
+ *
+ *
+ *
+ * The common metadata for long running operations.
+ *
+ *
+ * Protobuf type {@code google.cloud.documentai.v1beta3.CommonOperationMetadata}
+ */
+public final class CommonOperationMetadata extends com.google.protobuf.GeneratedMessageV3
+ implements
+ // @@protoc_insertion_point(message_implements:google.cloud.documentai.v1beta3.CommonOperationMetadata)
+ CommonOperationMetadataOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use CommonOperationMetadata.newBuilder() to construct.
+ private CommonOperationMetadata(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+
+ private CommonOperationMetadata() {
+ state_ = 0;
+ stateMessage_ = "";
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+ return new CommonOperationMetadata();
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+ return this.unknownFields;
+ }
+
+ private CommonOperationMetadata(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 8:
+ {
+ int rawValue = input.readEnum();
+
+ state_ = rawValue;
+ break;
+ }
+ case 18:
+ {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ stateMessage_ = s;
+ break;
+ }
+ case 26:
+ {
+ com.google.protobuf.Timestamp.Builder subBuilder = null;
+ if (createTime_ != null) {
+ subBuilder = createTime_.toBuilder();
+ }
+ createTime_ =
+ input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
+ if (subBuilder != null) {
+ subBuilder.mergeFrom(createTime_);
+ createTime_ = subBuilder.buildPartial();
+ }
+
+ break;
+ }
+ case 34:
+ {
+ com.google.protobuf.Timestamp.Builder subBuilder = null;
+ if (updateTime_ != null) {
+ subBuilder = updateTime_.toBuilder();
+ }
+ updateTime_ =
+ input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
+ if (subBuilder != null) {
+ subBuilder.mergeFrom(updateTime_);
+ updateTime_ = subBuilder.buildPartial();
+ }
+
+ break;
+ }
+ default:
+ {
+ if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+ } finally {
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.cloud.documentai.v1beta3.DocumentAiProcessorService
+ .internal_static_google_cloud_documentai_v1beta3_CommonOperationMetadata_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.cloud.documentai.v1beta3.DocumentAiProcessorService
+ .internal_static_google_cloud_documentai_v1beta3_CommonOperationMetadata_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.cloud.documentai.v1beta3.CommonOperationMetadata.class,
+ com.google.cloud.documentai.v1beta3.CommonOperationMetadata.Builder.class);
+ }
+
+ /**
+ *
+ *
+ *
+ * State of the longrunning operation.
+ *
+ *
+ * Protobuf enum {@code google.cloud.documentai.v1beta3.CommonOperationMetadata.State}
+ */
+ public enum State implements com.google.protobuf.ProtocolMessageEnum {
+ /**
+ *
+ *
+ *
+ * Unspecified state.
+ *
+ *
+ * STATE_UNSPECIFIED = 0;
+ */
+ STATE_UNSPECIFIED(0),
+ /**
+ *
+ *
+ *
+ * Operation is still running.
+ *
+ *
+ * RUNNING = 1;
+ */
+ RUNNING(1),
+ /**
+ *
+ *
+ *
+ * Operation is being cancelled.
+ *
+ *
+ * CANCELLING = 2;
+ */
+ CANCELLING(2),
+ /**
+ *
+ *
+ *
+ * Operation succeeded.
+ *
+ *
+ * SUCCEEDED = 3;
+ */
+ SUCCEEDED(3),
+ /**
+ *
+ *
+ *
+ * Operation failed.
+ *
+ *
+ * FAILED = 4;
+ */
+ FAILED(4),
+ /**
+ *
+ *
+ *
+ * Operation is cancelled.
+ *
+ *
+ * CANCELLED = 5;
+ */
+ CANCELLED(5),
+ UNRECOGNIZED(-1),
+ ;
+
+ /**
+ *
+ *
+ *
+ * Unspecified state.
+ *
+ *
+ * STATE_UNSPECIFIED = 0;
+ */
+ public static final int STATE_UNSPECIFIED_VALUE = 0;
+ /**
+ *
+ *
+ *
+ * Operation is still running.
+ *
+ *
+ * RUNNING = 1;
+ */
+ public static final int RUNNING_VALUE = 1;
+ /**
+ *
+ *
+ *
+ * Operation is being cancelled.
+ *
+ *
+ * CANCELLING = 2;
+ */
+ public static final int CANCELLING_VALUE = 2;
+ /**
+ *
+ *
+ *
+ * Operation succeeded.
+ *
+ *
+ * SUCCEEDED = 3;
+ */
+ public static final int SUCCEEDED_VALUE = 3;
+ /**
+ *
+ *
+ *
+ * Operation failed.
+ *
+ *
+ * FAILED = 4;
+ */
+ public static final int FAILED_VALUE = 4;
+ /**
+ *
+ *
+ *
+ * Operation is cancelled.
+ *
+ *
+ * CANCELLED = 5;
+ */
+ public static final int CANCELLED_VALUE = 5;
+
+ 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 RUNNING;
+ case 2:
+ return CANCELLING;
+ case 3:
+ return SUCCEEDED;
+ case 4:
+ return FAILED;
+ case 5:
+ return CANCELLED;
+ default:
+ return null;
+ }
+ }
+
+ public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() {
+ 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.CommonOperationMetadata.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.CommonOperationMetadata.State)
+ }
+
+ public static final int STATE_FIELD_NUMBER = 1;
+ private int state_;
+ /**
+ *
+ *
+ *
+ * The state of the operation.
+ *
+ *
+ * .google.cloud.documentai.v1beta3.CommonOperationMetadata.State state = 1;
+ *
+ * @return The enum numeric value on the wire for state.
+ */
+ @java.lang.Override
+ public int getStateValue() {
+ return state_;
+ }
+ /**
+ *
+ *
+ *
+ * The state of the operation.
+ *
+ *
+ * .google.cloud.documentai.v1beta3.CommonOperationMetadata.State state = 1;
+ *
+ * @return The state.
+ */
+ @java.lang.Override
+ public com.google.cloud.documentai.v1beta3.CommonOperationMetadata.State getState() {
+ @SuppressWarnings("deprecation")
+ com.google.cloud.documentai.v1beta3.CommonOperationMetadata.State result =
+ com.google.cloud.documentai.v1beta3.CommonOperationMetadata.State.valueOf(state_);
+ return result == null
+ ? com.google.cloud.documentai.v1beta3.CommonOperationMetadata.State.UNRECOGNIZED
+ : result;
+ }
+
+ public static final int STATE_MESSAGE_FIELD_NUMBER = 2;
+ private volatile java.lang.Object stateMessage_;
+ /**
+ *
+ *
+ *
+ * A message providing more details about the current state of processing.
+ *
+ *
+ * string state_message = 2;
+ *
+ * @return The stateMessage.
+ */
+ @java.lang.Override
+ public java.lang.String getStateMessage() {
+ java.lang.Object ref = stateMessage_;
+ 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();
+ stateMessage_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * A message providing more details about the current state of processing.
+ *
+ *
+ * string state_message = 2;
+ *
+ * @return The bytes for stateMessage.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getStateMessageBytes() {
+ java.lang.Object ref = stateMessage_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ stateMessage_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int CREATE_TIME_FIELD_NUMBER = 3;
+ private com.google.protobuf.Timestamp createTime_;
+ /**
+ *
+ *
+ *
+ * The creation time of the operation.
+ *
+ *
+ * .google.protobuf.Timestamp create_time = 3;
+ *
+ * @return Whether the createTime field is set.
+ */
+ @java.lang.Override
+ public boolean hasCreateTime() {
+ return createTime_ != null;
+ }
+ /**
+ *
+ *
+ *
+ * The creation time of the operation.
+ *
+ *
+ * .google.protobuf.Timestamp create_time = 3;
+ *
+ * @return The createTime.
+ */
+ @java.lang.Override
+ public com.google.protobuf.Timestamp getCreateTime() {
+ return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_;
+ }
+ /**
+ *
+ *
+ *
+ * The creation time of the operation.
+ *
+ *
+ * .google.protobuf.Timestamp create_time = 3;
+ */
+ @java.lang.Override
+ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() {
+ return getCreateTime();
+ }
+
+ public static final int UPDATE_TIME_FIELD_NUMBER = 4;
+ private com.google.protobuf.Timestamp updateTime_;
+ /**
+ *
+ *
+ *
+ * The last update time of the operation.
+ *
+ *
+ * .google.protobuf.Timestamp update_time = 4;
+ *
+ * @return Whether the updateTime field is set.
+ */
+ @java.lang.Override
+ public boolean hasUpdateTime() {
+ return updateTime_ != null;
+ }
+ /**
+ *
+ *
+ *
+ * The last update time of the operation.
+ *
+ *
+ * .google.protobuf.Timestamp update_time = 4;
+ *
+ * @return The updateTime.
+ */
+ @java.lang.Override
+ public com.google.protobuf.Timestamp getUpdateTime() {
+ return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_;
+ }
+ /**
+ *
+ *
+ *
+ * The last update time of the operation.
+ *
+ *
+ * .google.protobuf.Timestamp update_time = 4;
+ */
+ @java.lang.Override
+ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() {
+ return getUpdateTime();
+ }
+
+ 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 (state_
+ != com.google.cloud.documentai.v1beta3.CommonOperationMetadata.State.STATE_UNSPECIFIED
+ .getNumber()) {
+ output.writeEnum(1, state_);
+ }
+ if (!getStateMessageBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 2, stateMessage_);
+ }
+ if (createTime_ != null) {
+ output.writeMessage(3, getCreateTime());
+ }
+ if (updateTime_ != null) {
+ output.writeMessage(4, getUpdateTime());
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (state_
+ != com.google.cloud.documentai.v1beta3.CommonOperationMetadata.State.STATE_UNSPECIFIED
+ .getNumber()) {
+ size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, state_);
+ }
+ if (!getStateMessageBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, stateMessage_);
+ }
+ if (createTime_ != null) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getCreateTime());
+ }
+ if (updateTime_ != null) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getUpdateTime());
+ }
+ size += unknownFields.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.CommonOperationMetadata)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.documentai.v1beta3.CommonOperationMetadata other =
+ (com.google.cloud.documentai.v1beta3.CommonOperationMetadata) obj;
+
+ if (state_ != other.state_) return false;
+ if (!getStateMessage().equals(other.getStateMessage())) return false;
+ if (hasCreateTime() != other.hasCreateTime()) return false;
+ if (hasCreateTime()) {
+ if (!getCreateTime().equals(other.getCreateTime())) return false;
+ }
+ if (hasUpdateTime() != other.hasUpdateTime()) return false;
+ if (hasUpdateTime()) {
+ if (!getUpdateTime().equals(other.getUpdateTime())) return false;
+ }
+ if (!unknownFields.equals(other.unknownFields)) 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) + STATE_FIELD_NUMBER;
+ hash = (53 * hash) + state_;
+ hash = (37 * hash) + STATE_MESSAGE_FIELD_NUMBER;
+ hash = (53 * hash) + getStateMessage().hashCode();
+ if (hasCreateTime()) {
+ hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER;
+ hash = (53 * hash) + getCreateTime().hashCode();
+ }
+ if (hasUpdateTime()) {
+ hash = (37 * hash) + UPDATE_TIME_FIELD_NUMBER;
+ hash = (53 * hash) + getUpdateTime().hashCode();
+ }
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.documentai.v1beta3.CommonOperationMetadata parseFrom(
+ java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.documentai.v1beta3.CommonOperationMetadata 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.CommonOperationMetadata parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.documentai.v1beta3.CommonOperationMetadata parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.documentai.v1beta3.CommonOperationMetadata parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.documentai.v1beta3.CommonOperationMetadata 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.CommonOperationMetadata parseFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.documentai.v1beta3.CommonOperationMetadata 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.CommonOperationMetadata parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.documentai.v1beta3.CommonOperationMetadata 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.CommonOperationMetadata 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.CommonOperationMetadata parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ @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.CommonOperationMetadata 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;
+ }
+ /**
+ *
+ *
+ *
+ * The common metadata for long running operations.
+ *
+ *
+ * Protobuf type {@code google.cloud.documentai.v1beta3.CommonOperationMetadata}
+ */
+ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ implements
+ // @@protoc_insertion_point(builder_implements:google.cloud.documentai.v1beta3.CommonOperationMetadata)
+ com.google.cloud.documentai.v1beta3.CommonOperationMetadataOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.cloud.documentai.v1beta3.DocumentAiProcessorService
+ .internal_static_google_cloud_documentai_v1beta3_CommonOperationMetadata_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.cloud.documentai.v1beta3.DocumentAiProcessorService
+ .internal_static_google_cloud_documentai_v1beta3_CommonOperationMetadata_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.cloud.documentai.v1beta3.CommonOperationMetadata.class,
+ com.google.cloud.documentai.v1beta3.CommonOperationMetadata.Builder.class);
+ }
+
+ // Construct using com.google.cloud.documentai.v1beta3.CommonOperationMetadata.newBuilder()
+ private Builder() {
+ maybeForceBuilderInitialization();
+ }
+
+ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ super(parent);
+ maybeForceBuilderInitialization();
+ }
+
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+ }
+
+ @java.lang.Override
+ public Builder clear() {
+ super.clear();
+ state_ = 0;
+
+ stateMessage_ = "";
+
+ if (createTimeBuilder_ == null) {
+ createTime_ = null;
+ } else {
+ createTime_ = null;
+ createTimeBuilder_ = null;
+ }
+ if (updateTimeBuilder_ == null) {
+ updateTime_ = null;
+ } else {
+ updateTime_ = null;
+ updateTimeBuilder_ = null;
+ }
+ 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_CommonOperationMetadata_descriptor;
+ }
+
+ @java.lang.Override
+ public com.google.cloud.documentai.v1beta3.CommonOperationMetadata getDefaultInstanceForType() {
+ return com.google.cloud.documentai.v1beta3.CommonOperationMetadata.getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public com.google.cloud.documentai.v1beta3.CommonOperationMetadata build() {
+ com.google.cloud.documentai.v1beta3.CommonOperationMetadata result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public com.google.cloud.documentai.v1beta3.CommonOperationMetadata buildPartial() {
+ com.google.cloud.documentai.v1beta3.CommonOperationMetadata result =
+ new com.google.cloud.documentai.v1beta3.CommonOperationMetadata(this);
+ result.state_ = state_;
+ result.stateMessage_ = stateMessage_;
+ if (createTimeBuilder_ == null) {
+ result.createTime_ = createTime_;
+ } else {
+ result.createTime_ = createTimeBuilder_.build();
+ }
+ if (updateTimeBuilder_ == null) {
+ result.updateTime_ = updateTime_;
+ } else {
+ result.updateTime_ = updateTimeBuilder_.build();
+ }
+ 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.CommonOperationMetadata) {
+ return mergeFrom((com.google.cloud.documentai.v1beta3.CommonOperationMetadata) other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(com.google.cloud.documentai.v1beta3.CommonOperationMetadata other) {
+ if (other == com.google.cloud.documentai.v1beta3.CommonOperationMetadata.getDefaultInstance())
+ return this;
+ if (other.state_ != 0) {
+ setStateValue(other.getStateValue());
+ }
+ if (!other.getStateMessage().isEmpty()) {
+ stateMessage_ = other.stateMessage_;
+ onChanged();
+ }
+ if (other.hasCreateTime()) {
+ mergeCreateTime(other.getCreateTime());
+ }
+ if (other.hasUpdateTime()) {
+ mergeUpdateTime(other.getUpdateTime());
+ }
+ this.mergeUnknownFields(other.unknownFields);
+ 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 {
+ com.google.cloud.documentai.v1beta3.CommonOperationMetadata parsedMessage = null;
+ try {
+ parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ parsedMessage =
+ (com.google.cloud.documentai.v1beta3.CommonOperationMetadata) e.getUnfinishedMessage();
+ throw e.unwrapIOException();
+ } finally {
+ if (parsedMessage != null) {
+ mergeFrom(parsedMessage);
+ }
+ }
+ return this;
+ }
+
+ private int state_ = 0;
+ /**
+ *
+ *
+ *
+ * The state of the operation.
+ *
+ *
+ * .google.cloud.documentai.v1beta3.CommonOperationMetadata.State state = 1;
+ *
+ * @return The enum numeric value on the wire for state.
+ */
+ @java.lang.Override
+ public int getStateValue() {
+ return state_;
+ }
+ /**
+ *
+ *
+ *
+ * The state of the operation.
+ *
+ *
+ * .google.cloud.documentai.v1beta3.CommonOperationMetadata.State state = 1;
+ *
+ * @param value The enum numeric value on the wire for state to set.
+ * @return This builder for chaining.
+ */
+ public Builder setStateValue(int value) {
+
+ state_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The state of the operation.
+ *
+ *
+ * .google.cloud.documentai.v1beta3.CommonOperationMetadata.State state = 1;
+ *
+ * @return The state.
+ */
+ @java.lang.Override
+ public com.google.cloud.documentai.v1beta3.CommonOperationMetadata.State getState() {
+ @SuppressWarnings("deprecation")
+ com.google.cloud.documentai.v1beta3.CommonOperationMetadata.State result =
+ com.google.cloud.documentai.v1beta3.CommonOperationMetadata.State.valueOf(state_);
+ return result == null
+ ? com.google.cloud.documentai.v1beta3.CommonOperationMetadata.State.UNRECOGNIZED
+ : result;
+ }
+ /**
+ *
+ *
+ *
+ * The state of the operation.
+ *
+ *
+ * .google.cloud.documentai.v1beta3.CommonOperationMetadata.State state = 1;
+ *
+ * @param value The state to set.
+ * @return This builder for chaining.
+ */
+ public Builder setState(
+ com.google.cloud.documentai.v1beta3.CommonOperationMetadata.State value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ state_ = value.getNumber();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The state of the operation.
+ *
+ *
+ * .google.cloud.documentai.v1beta3.CommonOperationMetadata.State state = 1;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearState() {
+
+ state_ = 0;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object stateMessage_ = "";
+ /**
+ *
+ *
+ *
+ * A message providing more details about the current state of processing.
+ *
+ *
+ * string state_message = 2;
+ *
+ * @return The stateMessage.
+ */
+ public java.lang.String getStateMessage() {
+ java.lang.Object ref = stateMessage_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ stateMessage_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * A message providing more details about the current state of processing.
+ *
+ *
+ * string state_message = 2;
+ *
+ * @return The bytes for stateMessage.
+ */
+ public com.google.protobuf.ByteString getStateMessageBytes() {
+ java.lang.Object ref = stateMessage_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ stateMessage_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * A message providing more details about the current state of processing.
+ *
+ *
+ * string state_message = 2;
+ *
+ * @param value The stateMessage to set.
+ * @return This builder for chaining.
+ */
+ public Builder setStateMessage(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ stateMessage_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * A message providing more details about the current state of processing.
+ *
+ *
+ * string state_message = 2;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearStateMessage() {
+
+ stateMessage_ = getDefaultInstance().getStateMessage();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * A message providing more details about the current state of processing.
+ *
+ *
+ * string state_message = 2;
+ *
+ * @param value The bytes for stateMessage to set.
+ * @return This builder for chaining.
+ */
+ public Builder setStateMessageBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ stateMessage_ = value;
+ onChanged();
+ return this;
+ }
+
+ private com.google.protobuf.Timestamp createTime_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.protobuf.Timestamp,
+ com.google.protobuf.Timestamp.Builder,
+ com.google.protobuf.TimestampOrBuilder>
+ createTimeBuilder_;
+ /**
+ *
+ *
+ *
+ * The creation time of the operation.
+ *
+ *
+ * .google.protobuf.Timestamp create_time = 3;
+ *
+ * @return Whether the createTime field is set.
+ */
+ public boolean hasCreateTime() {
+ return createTimeBuilder_ != null || createTime_ != null;
+ }
+ /**
+ *
+ *
+ *
+ * The creation time of the operation.
+ *
+ *
+ * .google.protobuf.Timestamp create_time = 3;
+ *
+ * @return The createTime.
+ */
+ public com.google.protobuf.Timestamp getCreateTime() {
+ if (createTimeBuilder_ == null) {
+ return createTime_ == null
+ ? com.google.protobuf.Timestamp.getDefaultInstance()
+ : createTime_;
+ } else {
+ return createTimeBuilder_.getMessage();
+ }
+ }
+ /**
+ *
+ *
+ *
+ * The creation time of the operation.
+ *
+ *
+ * .google.protobuf.Timestamp create_time = 3;
+ */
+ public Builder setCreateTime(com.google.protobuf.Timestamp value) {
+ if (createTimeBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ createTime_ = value;
+ onChanged();
+ } else {
+ createTimeBuilder_.setMessage(value);
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The creation time of the operation.
+ *
+ *
+ * .google.protobuf.Timestamp create_time = 3;
+ */
+ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) {
+ if (createTimeBuilder_ == null) {
+ createTime_ = builderForValue.build();
+ onChanged();
+ } else {
+ createTimeBuilder_.setMessage(builderForValue.build());
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The creation time of the operation.
+ *
+ *
+ * .google.protobuf.Timestamp create_time = 3;
+ */
+ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) {
+ if (createTimeBuilder_ == null) {
+ if (createTime_ != null) {
+ createTime_ =
+ com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial();
+ } else {
+ createTime_ = value;
+ }
+ onChanged();
+ } else {
+ createTimeBuilder_.mergeFrom(value);
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The creation time of the operation.
+ *
+ *
+ * .google.protobuf.Timestamp create_time = 3;
+ */
+ public Builder clearCreateTime() {
+ if (createTimeBuilder_ == null) {
+ createTime_ = null;
+ onChanged();
+ } else {
+ createTime_ = null;
+ createTimeBuilder_ = null;
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The creation time of the operation.
+ *
+ *
+ * .google.protobuf.Timestamp create_time = 3;
+ */
+ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() {
+
+ onChanged();
+ return getCreateTimeFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ *
+ * The creation time of the operation.
+ *
+ *
+ * .google.protobuf.Timestamp create_time = 3;
+ */
+ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() {
+ if (createTimeBuilder_ != null) {
+ return createTimeBuilder_.getMessageOrBuilder();
+ } else {
+ return createTime_ == null
+ ? com.google.protobuf.Timestamp.getDefaultInstance()
+ : createTime_;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * The creation time of the operation.
+ *
+ *
+ * .google.protobuf.Timestamp create_time = 3;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.protobuf.Timestamp,
+ com.google.protobuf.Timestamp.Builder,
+ com.google.protobuf.TimestampOrBuilder>
+ getCreateTimeFieldBuilder() {
+ if (createTimeBuilder_ == null) {
+ createTimeBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.protobuf.Timestamp,
+ com.google.protobuf.Timestamp.Builder,
+ com.google.protobuf.TimestampOrBuilder>(
+ getCreateTime(), getParentForChildren(), isClean());
+ createTime_ = null;
+ }
+ return createTimeBuilder_;
+ }
+
+ private com.google.protobuf.Timestamp updateTime_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.protobuf.Timestamp,
+ com.google.protobuf.Timestamp.Builder,
+ com.google.protobuf.TimestampOrBuilder>
+ updateTimeBuilder_;
+ /**
+ *
+ *
+ *
+ * The last update time of the operation.
+ *
+ *
+ * .google.protobuf.Timestamp update_time = 4;
+ *
+ * @return Whether the updateTime field is set.
+ */
+ public boolean hasUpdateTime() {
+ return updateTimeBuilder_ != null || updateTime_ != null;
+ }
+ /**
+ *
+ *
+ *
+ * The last update time of the operation.
+ *
+ *
+ * .google.protobuf.Timestamp update_time = 4;
+ *
+ * @return The updateTime.
+ */
+ public com.google.protobuf.Timestamp getUpdateTime() {
+ if (updateTimeBuilder_ == null) {
+ return updateTime_ == null
+ ? com.google.protobuf.Timestamp.getDefaultInstance()
+ : updateTime_;
+ } else {
+ return updateTimeBuilder_.getMessage();
+ }
+ }
+ /**
+ *
+ *
+ *
+ * The last update time of the operation.
+ *
+ *
+ * .google.protobuf.Timestamp update_time = 4;
+ */
+ public Builder setUpdateTime(com.google.protobuf.Timestamp value) {
+ if (updateTimeBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ updateTime_ = value;
+ onChanged();
+ } else {
+ updateTimeBuilder_.setMessage(value);
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The last update time of the operation.
+ *
+ *
+ * .google.protobuf.Timestamp update_time = 4;
+ */
+ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) {
+ if (updateTimeBuilder_ == null) {
+ updateTime_ = builderForValue.build();
+ onChanged();
+ } else {
+ updateTimeBuilder_.setMessage(builderForValue.build());
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The last update time of the operation.
+ *
+ *
+ * .google.protobuf.Timestamp update_time = 4;
+ */
+ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) {
+ if (updateTimeBuilder_ == null) {
+ if (updateTime_ != null) {
+ updateTime_ =
+ com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial();
+ } else {
+ updateTime_ = value;
+ }
+ onChanged();
+ } else {
+ updateTimeBuilder_.mergeFrom(value);
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The last update time of the operation.
+ *
+ *
+ * .google.protobuf.Timestamp update_time = 4;
+ */
+ public Builder clearUpdateTime() {
+ if (updateTimeBuilder_ == null) {
+ updateTime_ = null;
+ onChanged();
+ } else {
+ updateTime_ = null;
+ updateTimeBuilder_ = null;
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The last update time of the operation.
+ *
+ *
+ * .google.protobuf.Timestamp update_time = 4;
+ */
+ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() {
+
+ onChanged();
+ return getUpdateTimeFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ *
+ * The last update time of the operation.
+ *
+ *
+ * .google.protobuf.Timestamp update_time = 4;
+ */
+ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() {
+ if (updateTimeBuilder_ != null) {
+ return updateTimeBuilder_.getMessageOrBuilder();
+ } else {
+ return updateTime_ == null
+ ? com.google.protobuf.Timestamp.getDefaultInstance()
+ : updateTime_;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * The last update time of the operation.
+ *
+ *
+ * .google.protobuf.Timestamp update_time = 4;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.protobuf.Timestamp,
+ com.google.protobuf.Timestamp.Builder,
+ com.google.protobuf.TimestampOrBuilder>
+ getUpdateTimeFieldBuilder() {
+ if (updateTimeBuilder_ == null) {
+ updateTimeBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.protobuf.Timestamp,
+ com.google.protobuf.Timestamp.Builder,
+ com.google.protobuf.TimestampOrBuilder>(
+ getUpdateTime(), getParentForChildren(), isClean());
+ updateTime_ = null;
+ }
+ return updateTimeBuilder_;
+ }
+
+ @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.CommonOperationMetadata)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.documentai.v1beta3.CommonOperationMetadata)
+ private static final com.google.cloud.documentai.v1beta3.CommonOperationMetadata DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.cloud.documentai.v1beta3.CommonOperationMetadata();
+ }
+
+ public static com.google.cloud.documentai.v1beta3.CommonOperationMetadata getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser PARSER =
+ new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
+ public CommonOperationMetadata parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return new CommonOperationMetadata(input, extensionRegistry);
+ }
+ };
+
+ 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.CommonOperationMetadata getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+}
diff --git a/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/CommonOperationMetadataOrBuilder.java b/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/CommonOperationMetadataOrBuilder.java
new file mode 100644
index 00000000..c1532539
--- /dev/null
+++ b/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/CommonOperationMetadataOrBuilder.java
@@ -0,0 +1,145 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the 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_processor_service.proto
+
+package com.google.cloud.documentai.v1beta3;
+
+public interface CommonOperationMetadataOrBuilder
+ extends
+ // @@protoc_insertion_point(interface_extends:google.cloud.documentai.v1beta3.CommonOperationMetadata)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ *
+ *
+ *
+ * The state of the operation.
+ *
+ *
+ * .google.cloud.documentai.v1beta3.CommonOperationMetadata.State state = 1;
+ *
+ * @return The enum numeric value on the wire for state.
+ */
+ int getStateValue();
+ /**
+ *
+ *
+ *
+ * The state of the operation.
+ *
+ *
+ * .google.cloud.documentai.v1beta3.CommonOperationMetadata.State state = 1;
+ *
+ * @return The state.
+ */
+ com.google.cloud.documentai.v1beta3.CommonOperationMetadata.State getState();
+
+ /**
+ *
+ *
+ *
+ * A message providing more details about the current state of processing.
+ *
+ *
+ * string state_message = 2;
+ *
+ * @return The stateMessage.
+ */
+ java.lang.String getStateMessage();
+ /**
+ *
+ *
+ *
+ * A message providing more details about the current state of processing.
+ *
+ *
+ * string state_message = 2;
+ *
+ * @return The bytes for stateMessage.
+ */
+ com.google.protobuf.ByteString getStateMessageBytes();
+
+ /**
+ *
+ *
+ *
+ * The creation time of the operation.
+ *
+ *
+ * .google.protobuf.Timestamp create_time = 3;
+ *
+ * @return Whether the createTime field is set.
+ */
+ boolean hasCreateTime();
+ /**
+ *
+ *
+ *
+ * The creation time of the operation.
+ *
+ *
+ * .google.protobuf.Timestamp create_time = 3;
+ *
+ * @return The createTime.
+ */
+ com.google.protobuf.Timestamp getCreateTime();
+ /**
+ *
+ *
+ *
+ * The creation time of the operation.
+ *
+ *
+ * .google.protobuf.Timestamp create_time = 3;
+ */
+ com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder();
+
+ /**
+ *
+ *
+ *
+ * The last update time of the operation.
+ *
+ *
+ * .google.protobuf.Timestamp update_time = 4;
+ *
+ * @return Whether the updateTime field is set.
+ */
+ boolean hasUpdateTime();
+ /**
+ *
+ *
+ *
+ * The last update time of the operation.
+ *
+ *
+ * .google.protobuf.Timestamp update_time = 4;
+ *
+ * @return The updateTime.
+ */
+ com.google.protobuf.Timestamp getUpdateTime();
+ /**
+ *
+ *
+ *
+ * The last update time of the operation.
+ *
+ *
+ * .google.protobuf.Timestamp update_time = 4;
+ */
+ com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder();
+}
diff --git a/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/DocumentAiProcessorService.java b/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/DocumentAiProcessorService.java
index 4c77828d..03f9f7aa 100644
--- a/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/DocumentAiProcessorService.java
+++ b/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/DocumentAiProcessorService.java
@@ -31,6 +31,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r
internal_static_google_cloud_documentai_v1beta3_ProcessRequest_descriptor;
static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_google_cloud_documentai_v1beta3_ProcessRequest_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_cloud_documentai_v1beta3_HumanReviewStatus_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_cloud_documentai_v1beta3_HumanReviewStatus_fieldAccessorTable;
static final com.google.protobuf.Descriptors.Descriptor
internal_static_google_cloud_documentai_v1beta3_ProcessResponse_descriptor;
static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
@@ -71,6 +75,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r
internal_static_google_cloud_documentai_v1beta3_ReviewDocumentOperationMetadata_descriptor;
static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_google_cloud_documentai_v1beta3_ReviewDocumentOperationMetadata_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_cloud_documentai_v1beta3_CommonOperationMetadata_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_cloud_documentai_v1beta3_CommonOperationMetadata_fieldAccessorTable;
public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
return descriptor;
@@ -86,92 +94,126 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "ons.proto\032\027google/api/client.proto\032\037goog"
+ "le/api/field_behavior.proto\032\031google/api/"
+ "resource.proto\032.google/cloud/documentai/"
- + "v1beta3/document.proto\032#google/longrunni"
- + "ng/operations.proto\032 google/protobuf/fie"
- + "ld_mask.proto\032\037google/protobuf/timestamp"
- + ".proto\032\027google/rpc/status.proto\"\243\001\n\016Proc"
- + "essRequest\0229\n\004name\030\001 \001(\tB+\340A\002\372A%\n#docume"
- + "ntai.googleapis.com/Processor\022;\n\010documen"
- + "t\030\002 \001(\0132).google.cloud.documentai.v1beta"
- + "3.Document\022\031\n\021skip_human_review\030\003 \001(\010\"n\n"
- + "\017ProcessResponse\022;\n\010document\030\001 \001(\0132).goo"
- + "gle.cloud.documentai.v1beta3.Document\022\036\n"
- + "\026human_review_operation\030\002 \001(\t\"\366\002\n\023BatchP"
- + "rocessRequest\0229\n\004name\030\001 \001(\tB+\340A\002\372A%\n#doc"
- + "umentai.googleapis.com/Processor\022\\\n\rinpu"
- + "t_configs\030\002 \003(\0132E.google.cloud.documenta"
- + "i.v1beta3.BatchProcessRequest.BatchInput"
- + "Config\022]\n\routput_config\030\003 \001(\0132F.google.c"
- + "loud.documentai.v1beta3.BatchProcessRequ"
- + "est.BatchOutputConfig\0329\n\020BatchInputConfi"
- + "g\022\022\n\ngcs_source\030\001 \001(\t\022\021\n\tmime_type\030\002 \001(\t"
- + "\032,\n\021BatchOutputConfig\022\027\n\017gcs_destination"
- + "\030\001 \001(\t\"\026\n\024BatchProcessResponse\"\335\004\n\024Batch"
- + "ProcessMetadata\022J\n\005state\030\001 \001(\0162;.google."
- + "cloud.documentai.v1beta3.BatchProcessMet"
- + "adata.State\022\025\n\rstate_message\030\002 \001(\t\022/\n\013cr"
- + "eate_time\030\003 \001(\0132\032.google.protobuf.Timest"
- + "amp\022/\n\013update_time\030\004 \001(\0132\032.google.protob"
- + "uf.Timestamp\022r\n\033individual_process_statu"
- + "ses\030\005 \003(\0132M.google.cloud.documentai.v1be"
- + "ta3.BatchProcessMetadata.IndividualProce"
- + "ssStatus\032\227\001\n\027IndividualProcessStatus\022\030\n\020"
- + "input_gcs_source\030\001 \001(\t\022\"\n\006status\030\002 \001(\0132\022"
- + ".google.rpc.Status\022\036\n\026output_gcs_destina"
- + "tion\030\003 \001(\t\022\036\n\026human_review_operation\030\004 \001"
- + "(\t\"r\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022\013\n\007WA"
- + "ITING\020\001\022\013\n\007RUNNING\020\002\022\r\n\tSUCCEEDED\020\003\022\016\n\nC"
- + "ANCELLING\020\004\022\r\n\tCANCELLED\020\005\022\n\n\006FAILED\020\006\"\246"
- + "\001\n\025ReviewDocumentRequest\022P\n\023human_review"
- + "_config\030\001 \001(\tB3\340A\002\372A-\n+documentai.google"
- + "apis.com/HumanReviewConfig\022;\n\010document\030\002"
- + " \001(\0132).google.cloud.documentai.v1beta3.D"
- + "ocument\"1\n\026ReviewDocumentResponse\022\027\n\017gcs"
- + "_destination\030\001 \001(\t\"\330\002\n\037ReviewDocumentOpe"
- + "rationMetadata\022U\n\005state\030\001 \001(\0162F.google.c"
- + "loud.documentai.v1beta3.ReviewDocumentOp"
- + "erationMetadata.State\022\025\n\rstate_message\030\002"
- + " \001(\t\022/\n\013create_time\030\003 \001(\0132\032.google.proto"
- + "buf.Timestamp\022/\n\013update_time\030\004 \001(\0132\032.goo"
- + "gle.protobuf.Timestamp\"e\n\005State\022\025\n\021STATE"
- + "_UNSPECIFIED\020\000\022\013\n\007RUNNING\020\001\022\016\n\nCANCELLIN"
- + "G\020\002\022\r\n\tSUCCEEDED\020\003\022\n\n\006FAILED\020\004\022\r\n\tCANCEL"
- + "LED\020\0052\322\006\n\030DocumentProcessorService\022\303\001\n\017P"
- + "rocessDocument\022/.google.cloud.documentai"
- + ".v1beta3.ProcessRequest\0320.google.cloud.d"
- + "ocumentai.v1beta3.ProcessResponse\"M\202\323\344\223\002"
- + "@\";/v1beta3/{name=projects/*/locations/*"
- + "/processors/*}:process:\001*\332A\004name\022\360\001\n\025Bat"
- + "chProcessDocuments\0224.google.cloud.docume"
- + "ntai.v1beta3.BatchProcessRequest\032\035.googl"
- + "e.longrunning.Operation\"\201\001\202\323\344\223\002E\"@/v1bet"
- + "a3/{name=projects/*/locations/*/processo"
- + "rs/*}:batchProcess:\001*\332A\004name\312A,\n\024BatchPr"
- + "ocessResponse\022\024BatchProcessMetadata\022\252\002\n\016"
- + "ReviewDocument\0226.google.cloud.documentai"
- + ".v1beta3.ReviewDocumentRequest\032\035.google."
- + "longrunning.Operation\"\300\001\202\323\344\223\002h\"c/v1beta3"
- + "/{human_review_config=projects/*/locatio"
- + "ns/*/processors/*/humanReviewConfig}:rev"
- + "iewDocument:\001*\332A\023human_review_config\312A9\n"
- + "\026ReviewDocumentResponse\022\037ReviewDocumentO"
- + "perationMetadata\032P\312A\034us-documentai.googl"
- + "eapis.com\322A.https://www.googleapis.com/a"
- + "uth/cloud-platformB\261\004\n#com.google.cloud."
- + "documentai.v1beta3B\032DocumentAiProcessorS"
- + "erviceP\001ZIgoogle.golang.org/genproto/goo"
- + "gleapis/cloud/documentai/v1beta3;documen"
- + "tai\252\002\037Google.Cloud.DocumentAI.V1Beta3\312\002\037"
- + "Google\\Cloud\\DocumentAI\\V1beta3\352\002\"Google"
- + "::Cloud::DocumentAI::V1beta3\352AM\n\"documen"
- + "tai.googleapis.com/Location\022\'projects/{p"
- + "roject}/locations/{location}\352Ae\n#documen"
- + "tai.googleapis.com/Processor\022>projects/{"
- + "project}/locations/{location}/processors"
- + "/{processor}\352A\177\n+documentai.googleapis.c"
- + "om/HumanReviewConfig\022Pprojects/{project}"
- + "/locations/{location}/processors/{proces"
- + "sor}/humanReviewConfigb\006proto3"
+ + "v1beta3/document.proto\0321google/cloud/doc"
+ + "umentai/v1beta3/document_io.proto\032#googl"
+ + "e/longrunning/operations.proto\032 google/p"
+ + "rotobuf/field_mask.proto\032\037google/protobu"
+ + "f/timestamp.proto\032\027google/rpc/status.pro"
+ + "to\"\275\002\n\016ProcessRequest\022D\n\017inline_document"
+ + "\030\004 \001(\0132).google.cloud.documentai.v1beta3"
+ + ".DocumentH\000\022D\n\014raw_document\030\005 \001(\0132,.goog"
+ + "le.cloud.documentai.v1beta3.RawDocumentH"
+ + "\000\0229\n\004name\030\001 \001(\tB+\340A\002\372A%\n#documentai.goog"
+ + "leapis.com/Processor\022?\n\010document\030\002 \001(\0132)"
+ + ".google.cloud.documentai.v1beta3.Documen"
+ + "tB\002\030\001\022\031\n\021skip_human_review\030\003 \001(\010B\010\n\006sour"
+ + "ce\"\363\001\n\021HumanReviewStatus\022G\n\005state\030\001 \001(\0162"
+ + "8.google.cloud.documentai.v1beta3.HumanR"
+ + "eviewStatus.State\022\025\n\rstate_message\030\002 \001(\t"
+ + "\022\036\n\026human_review_operation\030\003 \001(\t\"^\n\005Stat"
+ + "e\022\025\n\021STATE_UNSPECIFIED\020\000\022\013\n\007SKIPPED\020\001\022\025\n"
+ + "\021VALIDATION_PASSED\020\002\022\017\n\013IN_PROGRESS\020\003\022\t\n"
+ + "\005ERROR\020\004\"\303\001\n\017ProcessResponse\022;\n\010document"
+ + "\030\001 \001(\0132).google.cloud.documentai.v1beta3"
+ + ".Document\022\"\n\026human_review_operation\030\002 \001("
+ + "\tB\002\030\001\022O\n\023human_review_status\030\003 \001(\01322.goo"
+ + "gle.cloud.documentai.v1beta3.HumanReview"
+ + "Status\"\315\004\n\023BatchProcessRequest\0229\n\004name\030\001"
+ + " \001(\tB+\340A\002\372A%\n#documentai.googleapis.com/"
+ + "Processor\022`\n\rinput_configs\030\002 \003(\0132E.googl"
+ + "e.cloud.documentai.v1beta3.BatchProcessR"
+ + "equest.BatchInputConfigB\002\030\001\022a\n\routput_co"
+ + "nfig\030\003 \001(\0132F.google.cloud.documentai.v1b"
+ + "eta3.BatchProcessRequest.BatchOutputConf"
+ + "igB\002\030\001\022S\n\017input_documents\030\005 \001(\0132:.google"
+ + ".cloud.documentai.v1beta3.BatchDocuments"
+ + "InputConfig\022U\n\026document_output_config\030\006 "
+ + "\001(\01325.google.cloud.documentai.v1beta3.Do"
+ + "cumentOutputConfig\022\031\n\021skip_human_review\030"
+ + "\004 \001(\010\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\021BatchOut"
+ + "putConfig\022\027\n\017gcs_destination\030\001 \001(\t:\002\030\001\"\026"
+ + "\n\024BatchProcessResponse\"\262\005\n\024BatchProcessM"
+ + "etadata\022J\n\005state\030\001 \001(\0162;.google.cloud.do"
+ + "cumentai.v1beta3.BatchProcessMetadata.St"
+ + "ate\022\025\n\rstate_message\030\002 \001(\t\022/\n\013create_tim"
+ + "e\030\003 \001(\0132\032.google.protobuf.Timestamp\022/\n\013u"
+ + "pdate_time\030\004 \001(\0132\032.google.protobuf.Times"
+ + "tamp\022r\n\033individual_process_statuses\030\005 \003("
+ + "\0132M.google.cloud.documentai.v1beta3.Batc"
+ + "hProcessMetadata.IndividualProcessStatus"
+ + "\032\354\001\n\027IndividualProcessStatus\022\030\n\020input_gc"
+ + "s_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_review_operation\030\004 \001(\tB\002\030\001\022O"
+ + "\n\023human_review_status\030\005 \001(\01322.google.clo"
+ + "ud.documentai.v1beta3.HumanReviewStatus\""
+ + "r\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022\013\n\007WAITI"
+ + "NG\020\001\022\013\n\007RUNNING\020\002\022\r\n\tSUCCEEDED\020\003\022\016\n\nCANC"
+ + "ELLING\020\004\022\r\n\tCANCELLED\020\005\022\n\n\006FAILED\020\006\"\372\001\n\025"
+ + "ReviewDocumentRequest\022D\n\017inline_document"
+ + "\030\004 \001(\0132).google.cloud.documentai.v1beta3"
+ + ".DocumentH\000\022P\n\023human_review_config\030\001 \001(\t"
+ + "B3\340A\002\372A-\n+documentai.googleapis.com/Huma"
+ + "nReviewConfig\022?\n\010document\030\002 \001(\0132).google"
+ + ".cloud.documentai.v1beta3.DocumentB\002\030\001B\010"
+ + "\n\006source\"1\n\026ReviewDocumentResponse\022\027\n\017gc"
+ + "s_destination\030\001 \001(\t\"\253\003\n\037ReviewDocumentOp"
+ + "erationMetadata\022U\n\005state\030\001 \001(\0162F.google."
+ + "cloud.documentai.v1beta3.ReviewDocumentO"
+ + "perationMetadata.State\022\025\n\rstate_message\030"
+ + "\002 \001(\t\022/\n\013create_time\030\003 \001(\0132\032.google.prot"
+ + "obuf.Timestamp\022/\n\013update_time\030\004 \001(\0132\032.go"
+ + "ogle.protobuf.Timestamp\022Q\n\017common_metada"
+ + "ta\030\005 \001(\01328.google.cloud.documentai.v1bet"
+ + "a3.CommonOperationMetadata\"e\n\005State\022\025\n\021S"
+ + "TATE_UNSPECIFIED\020\000\022\013\n\007RUNNING\020\001\022\016\n\nCANCE"
+ + "LLING\020\002\022\r\n\tSUCCEEDED\020\003\022\n\n\006FAILED\020\004\022\r\n\tCA"
+ + "NCELLED\020\005\"\310\002\n\027CommonOperationMetadata\022M\n"
+ + "\005state\030\001 \001(\0162>.google.cloud.documentai.v"
+ + "1beta3.CommonOperationMetadata.State\022\025\n\r"
+ + "state_message\030\002 \001(\t\022/\n\013create_time\030\003 \001(\013"
+ + "2\032.google.protobuf.Timestamp\022/\n\013update_t"
+ + "ime\030\004 \001(\0132\032.google.protobuf.Timestamp\"e\n"
+ + "\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022\013\n\007RUNNING"
+ + "\020\001\022\016\n\nCANCELLING\020\002\022\r\n\tSUCCEEDED\020\003\022\n\n\006FAI"
+ + "LED\020\004\022\r\n\tCANCELLED\020\0052\322\006\n\030DocumentProcess"
+ + "orService\022\303\001\n\017ProcessDocument\022/.google.c"
+ + "loud.documentai.v1beta3.ProcessRequest\0320"
+ + ".google.cloud.documentai.v1beta3.Process"
+ + "Response\"M\202\323\344\223\002@\";/v1beta3/{name=project"
+ + "s/*/locations/*/processors/*}:process:\001*"
+ + "\332A\004name\022\360\001\n\025BatchProcessDocuments\0224.goog"
+ + "le.cloud.documentai.v1beta3.BatchProcess"
+ + "Request\032\035.google.longrunning.Operation\"\201"
+ + "\001\202\323\344\223\002E\"@/v1beta3/{name=projects/*/locat"
+ + "ions/*/processors/*}:batchProcess:\001*\332A\004n"
+ + "ame\312A,\n\024BatchProcessResponse\022\024BatchProce"
+ + "ssMetadata\022\252\002\n\016ReviewDocument\0226.google.c"
+ + "loud.documentai.v1beta3.ReviewDocumentRe"
+ + "quest\032\035.google.longrunning.Operation\"\300\001\202"
+ + "\323\344\223\002h\"c/v1beta3/{human_review_config=pro"
+ + "jects/*/locations/*/processors/*/humanRe"
+ + "viewConfig}:reviewDocument:\001*\332A\023human_re"
+ + "view_config\312A9\n\026ReviewDocumentResponse\022\037"
+ + "ReviewDocumentOperationMetadata\032P\312A\034us-d"
+ + "ocumentai.googleapis.com\322A.https://www.g"
+ + "oogleapis.com/auth/cloud-platformB\261\004\n#co"
+ + "m.google.cloud.documentai.v1beta3B\032Docum"
+ + "entAiProcessorServiceP\001ZIgoogle.golang.o"
+ + "rg/genproto/googleapis/cloud/documentai/"
+ + "v1beta3;documentai\252\002\037Google.Cloud.Docume"
+ + "ntAI.V1Beta3\312\002\037Google\\Cloud\\DocumentAI\\V"
+ + "1beta3\352\002\"Google::Cloud::DocumentAI::V1be"
+ + "ta3\352AM\n\"documentai.googleapis.com/Locati"
+ + "on\022\'projects/{project}/locations/{locati"
+ + "on}\352Ae\n#documentai.googleapis.com/Proces"
+ + "sor\022>projects/{project}/locations/{locat"
+ + "ion}/processors/{processor}\352A\177\n+document"
+ + "ai.googleapis.com/HumanReviewConfig\022Ppro"
+ + "jects/{project}/locations/{location}/pro"
+ + "cessors/{processor}/humanReviewConfigb\006p"
+ + "roto3"
};
descriptor =
com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
@@ -182,6 +224,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
com.google.api.FieldBehaviorProto.getDescriptor(),
com.google.api.ResourceProto.getDescriptor(),
com.google.cloud.documentai.v1beta3.DocumentProto.getDescriptor(),
+ com.google.cloud.documentai.v1beta3.DocumentIoProto.getDescriptor(),
com.google.longrunning.OperationsProto.getDescriptor(),
com.google.protobuf.FieldMaskProto.getDescriptor(),
com.google.protobuf.TimestampProto.getDescriptor(),
@@ -193,23 +236,36 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_google_cloud_documentai_v1beta3_ProcessRequest_descriptor,
new java.lang.String[] {
- "Name", "Document", "SkipHumanReview",
+ "InlineDocument", "RawDocument", "Name", "Document", "SkipHumanReview", "Source",
});
- internal_static_google_cloud_documentai_v1beta3_ProcessResponse_descriptor =
+ internal_static_google_cloud_documentai_v1beta3_HumanReviewStatus_descriptor =
getDescriptor().getMessageTypes().get(1);
+ internal_static_google_cloud_documentai_v1beta3_HumanReviewStatus_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_cloud_documentai_v1beta3_HumanReviewStatus_descriptor,
+ new java.lang.String[] {
+ "State", "StateMessage", "HumanReviewOperation",
+ });
+ internal_static_google_cloud_documentai_v1beta3_ProcessResponse_descriptor =
+ getDescriptor().getMessageTypes().get(2);
internal_static_google_cloud_documentai_v1beta3_ProcessResponse_fieldAccessorTable =
new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_google_cloud_documentai_v1beta3_ProcessResponse_descriptor,
new java.lang.String[] {
- "Document", "HumanReviewOperation",
+ "Document", "HumanReviewOperation", "HumanReviewStatus",
});
internal_static_google_cloud_documentai_v1beta3_BatchProcessRequest_descriptor =
- getDescriptor().getMessageTypes().get(2);
+ getDescriptor().getMessageTypes().get(3);
internal_static_google_cloud_documentai_v1beta3_BatchProcessRequest_fieldAccessorTable =
new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_google_cloud_documentai_v1beta3_BatchProcessRequest_descriptor,
new java.lang.String[] {
- "Name", "InputConfigs", "OutputConfig",
+ "Name",
+ "InputConfigs",
+ "OutputConfig",
+ "InputDocuments",
+ "DocumentOutputConfig",
+ "SkipHumanReview",
});
internal_static_google_cloud_documentai_v1beta3_BatchProcessRequest_BatchInputConfig_descriptor =
internal_static_google_cloud_documentai_v1beta3_BatchProcessRequest_descriptor
@@ -232,13 +288,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
"GcsDestination",
});
internal_static_google_cloud_documentai_v1beta3_BatchProcessResponse_descriptor =
- getDescriptor().getMessageTypes().get(3);
+ getDescriptor().getMessageTypes().get(4);
internal_static_google_cloud_documentai_v1beta3_BatchProcessResponse_fieldAccessorTable =
new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_google_cloud_documentai_v1beta3_BatchProcessResponse_descriptor,
new java.lang.String[] {});
internal_static_google_cloud_documentai_v1beta3_BatchProcessMetadata_descriptor =
- getDescriptor().getMessageTypes().get(4);
+ getDescriptor().getMessageTypes().get(5);
internal_static_google_cloud_documentai_v1beta3_BatchProcessMetadata_fieldAccessorTable =
new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_google_cloud_documentai_v1beta3_BatchProcessMetadata_descriptor,
@@ -253,18 +309,22 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_google_cloud_documentai_v1beta3_BatchProcessMetadata_IndividualProcessStatus_descriptor,
new java.lang.String[] {
- "InputGcsSource", "Status", "OutputGcsDestination", "HumanReviewOperation",
+ "InputGcsSource",
+ "Status",
+ "OutputGcsDestination",
+ "HumanReviewOperation",
+ "HumanReviewStatus",
});
internal_static_google_cloud_documentai_v1beta3_ReviewDocumentRequest_descriptor =
- getDescriptor().getMessageTypes().get(5);
+ getDescriptor().getMessageTypes().get(6);
internal_static_google_cloud_documentai_v1beta3_ReviewDocumentRequest_fieldAccessorTable =
new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_google_cloud_documentai_v1beta3_ReviewDocumentRequest_descriptor,
new java.lang.String[] {
- "HumanReviewConfig", "Document",
+ "InlineDocument", "HumanReviewConfig", "Document", "Source",
});
internal_static_google_cloud_documentai_v1beta3_ReviewDocumentResponse_descriptor =
- getDescriptor().getMessageTypes().get(6);
+ getDescriptor().getMessageTypes().get(7);
internal_static_google_cloud_documentai_v1beta3_ReviewDocumentResponse_fieldAccessorTable =
new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_google_cloud_documentai_v1beta3_ReviewDocumentResponse_descriptor,
@@ -272,10 +332,18 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
"GcsDestination",
});
internal_static_google_cloud_documentai_v1beta3_ReviewDocumentOperationMetadata_descriptor =
- getDescriptor().getMessageTypes().get(7);
+ getDescriptor().getMessageTypes().get(8);
internal_static_google_cloud_documentai_v1beta3_ReviewDocumentOperationMetadata_fieldAccessorTable =
new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_google_cloud_documentai_v1beta3_ReviewDocumentOperationMetadata_descriptor,
+ new java.lang.String[] {
+ "State", "StateMessage", "CreateTime", "UpdateTime", "CommonMetadata",
+ });
+ internal_static_google_cloud_documentai_v1beta3_CommonOperationMetadata_descriptor =
+ getDescriptor().getMessageTypes().get(9);
+ internal_static_google_cloud_documentai_v1beta3_CommonOperationMetadata_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_cloud_documentai_v1beta3_CommonOperationMetadata_descriptor,
new java.lang.String[] {
"State", "StateMessage", "CreateTime", "UpdateTime",
});
@@ -296,6 +364,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
com.google.api.FieldBehaviorProto.getDescriptor();
com.google.api.ResourceProto.getDescriptor();
com.google.cloud.documentai.v1beta3.DocumentProto.getDescriptor();
+ com.google.cloud.documentai.v1beta3.DocumentIoProto.getDescriptor();
com.google.longrunning.OperationsProto.getDescriptor();
com.google.protobuf.FieldMaskProto.getDescriptor();
com.google.protobuf.TimestampProto.getDescriptor();
diff --git a/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/DocumentIoProto.java b/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/DocumentIoProto.java
new file mode 100644
index 00000000..7d46dbd7
--- /dev/null
+++ b/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/DocumentIoProto.java
@@ -0,0 +1,160 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: google/cloud/documentai/v1beta3/document_io.proto
+
+package com.google.cloud.documentai.v1beta3;
+
+public final class DocumentIoProto {
+ private DocumentIoProto() {}
+
+ 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_RawDocument_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_cloud_documentai_v1beta3_RawDocument_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_cloud_documentai_v1beta3_GcsDocument_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_cloud_documentai_v1beta3_GcsDocument_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_cloud_documentai_v1beta3_GcsDocuments_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_cloud_documentai_v1beta3_GcsDocuments_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_cloud_documentai_v1beta3_GcsPrefix_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_cloud_documentai_v1beta3_GcsPrefix_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_cloud_documentai_v1beta3_BatchDocumentsInputConfig_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_cloud_documentai_v1beta3_BatchDocumentsInputConfig_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_cloud_documentai_v1beta3_DocumentOutputConfig_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_cloud_documentai_v1beta3_DocumentOutputConfig_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_cloud_documentai_v1beta3_DocumentOutputConfig_GcsOutputConfig_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_cloud_documentai_v1beta3_DocumentOutputConfig_GcsOutputConfig_fieldAccessorTable;
+
+ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ return descriptor;
+ }
+
+ private static com.google.protobuf.Descriptors.FileDescriptor descriptor;
+
+ static {
+ java.lang.String[] descriptorData = {
+ "\n1google/cloud/documentai/v1beta3/docume"
+ + "nt_io.proto\022\037google.cloud.documentai.v1b"
+ + "eta3\032\034google/api/annotations.proto\"1\n\013Ra"
+ + "wDocument\022\017\n\007content\030\001 \001(\014\022\021\n\tmime_type\030"
+ + "\002 \001(\t\"1\n\013GcsDocument\022\017\n\007gcs_uri\030\001 \001(\t\022\021\n"
+ + "\tmime_type\030\002 \001(\t\"O\n\014GcsDocuments\022?\n\tdocu"
+ + "ments\030\001 \003(\0132,.google.cloud.documentai.v1"
+ + "beta3.GcsDocument\"#\n\tGcsPrefix\022\026\n\016gcs_ur"
+ + "i_prefix\030\001 \001(\t\"\257\001\n\031BatchDocumentsInputCo"
+ + "nfig\022@\n\ngcs_prefix\030\001 \001(\0132*.google.cloud."
+ + "documentai.v1beta3.GcsPrefixH\000\022F\n\rgcs_do"
+ + "cuments\030\002 \001(\0132-.google.cloud.documentai."
+ + "v1beta3.GcsDocumentsH\000B\010\n\006source\"\255\001\n\024Doc"
+ + "umentOutputConfig\022b\n\021gcs_output_config\030\001"
+ + " \001(\0132E.google.cloud.documentai.v1beta3.D"
+ + "ocumentOutputConfig.GcsOutputConfigH\000\032\"\n"
+ + "\017GcsOutputConfig\022\017\n\007gcs_uri\030\001 \001(\tB\r\n\013des"
+ + "tinationB\354\001\n#com.google.cloud.documentai"
+ + ".v1beta3B\017DocumentIoProtoP\001ZIgoogle.gola"
+ + "ng.org/genproto/googleapis/cloud/documen"
+ + "tai/v1beta3;documentai\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(),
+ });
+ internal_static_google_cloud_documentai_v1beta3_RawDocument_descriptor =
+ getDescriptor().getMessageTypes().get(0);
+ internal_static_google_cloud_documentai_v1beta3_RawDocument_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_cloud_documentai_v1beta3_RawDocument_descriptor,
+ new java.lang.String[] {
+ "Content", "MimeType",
+ });
+ internal_static_google_cloud_documentai_v1beta3_GcsDocument_descriptor =
+ getDescriptor().getMessageTypes().get(1);
+ internal_static_google_cloud_documentai_v1beta3_GcsDocument_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_cloud_documentai_v1beta3_GcsDocument_descriptor,
+ new java.lang.String[] {
+ "GcsUri", "MimeType",
+ });
+ internal_static_google_cloud_documentai_v1beta3_GcsDocuments_descriptor =
+ getDescriptor().getMessageTypes().get(2);
+ internal_static_google_cloud_documentai_v1beta3_GcsDocuments_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_cloud_documentai_v1beta3_GcsDocuments_descriptor,
+ new java.lang.String[] {
+ "Documents",
+ });
+ internal_static_google_cloud_documentai_v1beta3_GcsPrefix_descriptor =
+ getDescriptor().getMessageTypes().get(3);
+ internal_static_google_cloud_documentai_v1beta3_GcsPrefix_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_cloud_documentai_v1beta3_GcsPrefix_descriptor,
+ new java.lang.String[] {
+ "GcsUriPrefix",
+ });
+ internal_static_google_cloud_documentai_v1beta3_BatchDocumentsInputConfig_descriptor =
+ getDescriptor().getMessageTypes().get(4);
+ internal_static_google_cloud_documentai_v1beta3_BatchDocumentsInputConfig_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_cloud_documentai_v1beta3_BatchDocumentsInputConfig_descriptor,
+ new java.lang.String[] {
+ "GcsPrefix", "GcsDocuments", "Source",
+ });
+ internal_static_google_cloud_documentai_v1beta3_DocumentOutputConfig_descriptor =
+ getDescriptor().getMessageTypes().get(5);
+ internal_static_google_cloud_documentai_v1beta3_DocumentOutputConfig_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_cloud_documentai_v1beta3_DocumentOutputConfig_descriptor,
+ new java.lang.String[] {
+ "GcsOutputConfig", "Destination",
+ });
+ internal_static_google_cloud_documentai_v1beta3_DocumentOutputConfig_GcsOutputConfig_descriptor =
+ internal_static_google_cloud_documentai_v1beta3_DocumentOutputConfig_descriptor
+ .getNestedTypes()
+ .get(0);
+ internal_static_google_cloud_documentai_v1beta3_DocumentOutputConfig_GcsOutputConfig_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_cloud_documentai_v1beta3_DocumentOutputConfig_GcsOutputConfig_descriptor,
+ new java.lang.String[] {
+ "GcsUri",
+ });
+ com.google.api.AnnotationsProto.getDescriptor();
+ }
+
+ // @@protoc_insertion_point(outer_class_scope)
+}
diff --git a/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/DocumentOutputConfig.java b/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/DocumentOutputConfig.java
new file mode 100644
index 00000000..9804b0fa
--- /dev/null
+++ b/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/DocumentOutputConfig.java
@@ -0,0 +1,1574 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the 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_io.proto
+
+package com.google.cloud.documentai.v1beta3;
+
+/**
+ *
+ *
+ *
+ * Config that controls the output of documents. All documents will be written
+ * as a JSON file.
+ *
+ *
+ * Protobuf type {@code google.cloud.documentai.v1beta3.DocumentOutputConfig}
+ */
+public final class DocumentOutputConfig extends com.google.protobuf.GeneratedMessageV3
+ implements
+ // @@protoc_insertion_point(message_implements:google.cloud.documentai.v1beta3.DocumentOutputConfig)
+ DocumentOutputConfigOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use DocumentOutputConfig.newBuilder() to construct.
+ private DocumentOutputConfig(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+
+ private DocumentOutputConfig() {}
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+ return new DocumentOutputConfig();
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+ return this.unknownFields;
+ }
+
+ private DocumentOutputConfig(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10:
+ {
+ com.google.cloud.documentai.v1beta3.DocumentOutputConfig.GcsOutputConfig.Builder
+ subBuilder = null;
+ if (destinationCase_ == 1) {
+ subBuilder =
+ ((com.google.cloud.documentai.v1beta3.DocumentOutputConfig.GcsOutputConfig)
+ destination_)
+ .toBuilder();
+ }
+ destination_ =
+ input.readMessage(
+ com.google.cloud.documentai.v1beta3.DocumentOutputConfig.GcsOutputConfig
+ .parser(),
+ extensionRegistry);
+ if (subBuilder != null) {
+ subBuilder.mergeFrom(
+ (com.google.cloud.documentai.v1beta3.DocumentOutputConfig.GcsOutputConfig)
+ destination_);
+ destination_ = subBuilder.buildPartial();
+ }
+ destinationCase_ = 1;
+ break;
+ }
+ default:
+ {
+ if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+ } finally {
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.cloud.documentai.v1beta3.DocumentIoProto
+ .internal_static_google_cloud_documentai_v1beta3_DocumentOutputConfig_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.cloud.documentai.v1beta3.DocumentIoProto
+ .internal_static_google_cloud_documentai_v1beta3_DocumentOutputConfig_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.cloud.documentai.v1beta3.DocumentOutputConfig.class,
+ com.google.cloud.documentai.v1beta3.DocumentOutputConfig.Builder.class);
+ }
+
+ public interface GcsOutputConfigOrBuilder
+ extends
+ // @@protoc_insertion_point(interface_extends:google.cloud.documentai.v1beta3.DocumentOutputConfig.GcsOutputConfig)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ *
+ *
+ *
+ * The Cloud Storage uri (a directory) of the output.
+ *
+ *
+ * string gcs_uri = 1;
+ *
+ * @return The gcsUri.
+ */
+ java.lang.String getGcsUri();
+ /**
+ *
+ *
+ *
+ * The Cloud Storage uri (a directory) of the output.
+ *
+ *
+ * string gcs_uri = 1;
+ *
+ * @return The bytes for gcsUri.
+ */
+ com.google.protobuf.ByteString getGcsUriBytes();
+ }
+ /**
+ *
+ *
+ *
+ * The configuration used when outputting documents.
+ *
+ *
+ * Protobuf type {@code google.cloud.documentai.v1beta3.DocumentOutputConfig.GcsOutputConfig}
+ */
+ public static final class GcsOutputConfig extends com.google.protobuf.GeneratedMessageV3
+ implements
+ // @@protoc_insertion_point(message_implements:google.cloud.documentai.v1beta3.DocumentOutputConfig.GcsOutputConfig)
+ GcsOutputConfigOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use GcsOutputConfig.newBuilder() to construct.
+ private GcsOutputConfig(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+
+ private GcsOutputConfig() {
+ gcsUri_ = "";
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+ return new GcsOutputConfig();
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+ return this.unknownFields;
+ }
+
+ private GcsOutputConfig(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10:
+ {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ gcsUri_ = s;
+ break;
+ }
+ default:
+ {
+ if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+ } finally {
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.cloud.documentai.v1beta3.DocumentIoProto
+ .internal_static_google_cloud_documentai_v1beta3_DocumentOutputConfig_GcsOutputConfig_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.cloud.documentai.v1beta3.DocumentIoProto
+ .internal_static_google_cloud_documentai_v1beta3_DocumentOutputConfig_GcsOutputConfig_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.cloud.documentai.v1beta3.DocumentOutputConfig.GcsOutputConfig.class,
+ com.google.cloud.documentai.v1beta3.DocumentOutputConfig.GcsOutputConfig.Builder
+ .class);
+ }
+
+ public static final int GCS_URI_FIELD_NUMBER = 1;
+ private volatile java.lang.Object gcsUri_;
+ /**
+ *
+ *
+ *
+ * The Cloud Storage uri (a directory) of the output.
+ *
+ *
+ * string gcs_uri = 1;
+ *
+ * @return The gcsUri.
+ */
+ @java.lang.Override
+ public java.lang.String getGcsUri() {
+ java.lang.Object ref = gcsUri_;
+ 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();
+ gcsUri_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * The Cloud Storage uri (a directory) of the output.
+ *
+ *
+ * string gcs_uri = 1;
+ *
+ * @return The bytes for gcsUri.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getGcsUriBytes() {
+ java.lang.Object ref = gcsUri_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ gcsUri_ = 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 (!getGcsUriBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, gcsUri_);
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (!getGcsUriBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, gcsUri_);
+ }
+ size += unknownFields.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.DocumentOutputConfig.GcsOutputConfig)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.documentai.v1beta3.DocumentOutputConfig.GcsOutputConfig other =
+ (com.google.cloud.documentai.v1beta3.DocumentOutputConfig.GcsOutputConfig) obj;
+
+ if (!getGcsUri().equals(other.getGcsUri())) return false;
+ if (!unknownFields.equals(other.unknownFields)) 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) + GCS_URI_FIELD_NUMBER;
+ hash = (53 * hash) + getGcsUri().hashCode();
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.documentai.v1beta3.DocumentOutputConfig.GcsOutputConfig
+ parseFrom(java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.documentai.v1beta3.DocumentOutputConfig.GcsOutputConfig
+ 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.DocumentOutputConfig.GcsOutputConfig
+ parseFrom(com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.documentai.v1beta3.DocumentOutputConfig.GcsOutputConfig
+ parseFrom(
+ com.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.DocumentOutputConfig.GcsOutputConfig
+ parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.documentai.v1beta3.DocumentOutputConfig.GcsOutputConfig
+ 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.DocumentOutputConfig.GcsOutputConfig
+ parseFrom(java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.documentai.v1beta3.DocumentOutputConfig.GcsOutputConfig
+ 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.DocumentOutputConfig.GcsOutputConfig
+ parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.documentai.v1beta3.DocumentOutputConfig.GcsOutputConfig
+ 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.DocumentOutputConfig.GcsOutputConfig
+ 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.DocumentOutputConfig.GcsOutputConfig
+ 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.DocumentOutputConfig.GcsOutputConfig 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;
+ }
+ /**
+ *
+ *
+ *
+ * The configuration used when outputting documents.
+ *
+ *
+ * Protobuf type {@code google.cloud.documentai.v1beta3.DocumentOutputConfig.GcsOutputConfig}
+ */
+ public static final class Builder
+ extends com.google.protobuf.GeneratedMessageV3.Builder
+ implements
+ // @@protoc_insertion_point(builder_implements:google.cloud.documentai.v1beta3.DocumentOutputConfig.GcsOutputConfig)
+ com.google.cloud.documentai.v1beta3.DocumentOutputConfig.GcsOutputConfigOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.cloud.documentai.v1beta3.DocumentIoProto
+ .internal_static_google_cloud_documentai_v1beta3_DocumentOutputConfig_GcsOutputConfig_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.cloud.documentai.v1beta3.DocumentIoProto
+ .internal_static_google_cloud_documentai_v1beta3_DocumentOutputConfig_GcsOutputConfig_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.cloud.documentai.v1beta3.DocumentOutputConfig.GcsOutputConfig.class,
+ com.google.cloud.documentai.v1beta3.DocumentOutputConfig.GcsOutputConfig.Builder
+ .class);
+ }
+
+ // Construct using
+ // com.google.cloud.documentai.v1beta3.DocumentOutputConfig.GcsOutputConfig.newBuilder()
+ private Builder() {
+ maybeForceBuilderInitialization();
+ }
+
+ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ super(parent);
+ maybeForceBuilderInitialization();
+ }
+
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+ }
+
+ @java.lang.Override
+ public Builder clear() {
+ super.clear();
+ gcsUri_ = "";
+
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+ return com.google.cloud.documentai.v1beta3.DocumentIoProto
+ .internal_static_google_cloud_documentai_v1beta3_DocumentOutputConfig_GcsOutputConfig_descriptor;
+ }
+
+ @java.lang.Override
+ public com.google.cloud.documentai.v1beta3.DocumentOutputConfig.GcsOutputConfig
+ getDefaultInstanceForType() {
+ return com.google.cloud.documentai.v1beta3.DocumentOutputConfig.GcsOutputConfig
+ .getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public com.google.cloud.documentai.v1beta3.DocumentOutputConfig.GcsOutputConfig build() {
+ com.google.cloud.documentai.v1beta3.DocumentOutputConfig.GcsOutputConfig result =
+ buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public com.google.cloud.documentai.v1beta3.DocumentOutputConfig.GcsOutputConfig
+ buildPartial() {
+ com.google.cloud.documentai.v1beta3.DocumentOutputConfig.GcsOutputConfig result =
+ new com.google.cloud.documentai.v1beta3.DocumentOutputConfig.GcsOutputConfig(this);
+ result.gcsUri_ = gcsUri_;
+ 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.DocumentOutputConfig.GcsOutputConfig) {
+ return mergeFrom(
+ (com.google.cloud.documentai.v1beta3.DocumentOutputConfig.GcsOutputConfig) other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(
+ com.google.cloud.documentai.v1beta3.DocumentOutputConfig.GcsOutputConfig other) {
+ if (other
+ == com.google.cloud.documentai.v1beta3.DocumentOutputConfig.GcsOutputConfig
+ .getDefaultInstance()) return this;
+ if (!other.getGcsUri().isEmpty()) {
+ gcsUri_ = other.gcsUri_;
+ onChanged();
+ }
+ this.mergeUnknownFields(other.unknownFields);
+ 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 {
+ com.google.cloud.documentai.v1beta3.DocumentOutputConfig.GcsOutputConfig parsedMessage =
+ null;
+ try {
+ parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ parsedMessage =
+ (com.google.cloud.documentai.v1beta3.DocumentOutputConfig.GcsOutputConfig)
+ e.getUnfinishedMessage();
+ throw e.unwrapIOException();
+ } finally {
+ if (parsedMessage != null) {
+ mergeFrom(parsedMessage);
+ }
+ }
+ return this;
+ }
+
+ private java.lang.Object gcsUri_ = "";
+ /**
+ *
+ *
+ *
+ * The Cloud Storage uri (a directory) of the output.
+ *
+ *
+ * string gcs_uri = 1;
+ *
+ * @return The gcsUri.
+ */
+ public java.lang.String getGcsUri() {
+ java.lang.Object ref = gcsUri_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ gcsUri_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * The Cloud Storage uri (a directory) of the output.
+ *
+ *
+ * string gcs_uri = 1;
+ *
+ * @return The bytes for gcsUri.
+ */
+ public com.google.protobuf.ByteString getGcsUriBytes() {
+ java.lang.Object ref = gcsUri_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ gcsUri_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * The Cloud Storage uri (a directory) of the output.
+ *
+ *
+ * string gcs_uri = 1;
+ *
+ * @param value The gcsUri to set.
+ * @return This builder for chaining.
+ */
+ public Builder setGcsUri(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ gcsUri_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The Cloud Storage uri (a directory) of the output.
+ *
+ *
+ * string gcs_uri = 1;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearGcsUri() {
+
+ gcsUri_ = getDefaultInstance().getGcsUri();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The Cloud Storage uri (a directory) of the output.
+ *
+ *
+ * string gcs_uri = 1;
+ *
+ * @param value The bytes for gcsUri to set.
+ * @return This builder for chaining.
+ */
+ public Builder setGcsUriBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ gcsUri_ = value;
+ 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.DocumentOutputConfig.GcsOutputConfig)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.documentai.v1beta3.DocumentOutputConfig.GcsOutputConfig)
+ private static final com.google.cloud.documentai.v1beta3.DocumentOutputConfig.GcsOutputConfig
+ DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE =
+ new com.google.cloud.documentai.v1beta3.DocumentOutputConfig.GcsOutputConfig();
+ }
+
+ public static com.google.cloud.documentai.v1beta3.DocumentOutputConfig.GcsOutputConfig
+ getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser PARSER =
+ new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
+ public GcsOutputConfig parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return new GcsOutputConfig(input, extensionRegistry);
+ }
+ };
+
+ 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.DocumentOutputConfig.GcsOutputConfig
+ getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+ }
+
+ private int destinationCase_ = 0;
+ private java.lang.Object destination_;
+
+ public enum DestinationCase
+ implements
+ com.google.protobuf.Internal.EnumLite,
+ com.google.protobuf.AbstractMessage.InternalOneOfEnum {
+ GCS_OUTPUT_CONFIG(1),
+ DESTINATION_NOT_SET(0);
+ private final int value;
+
+ private DestinationCase(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 DestinationCase valueOf(int value) {
+ return forNumber(value);
+ }
+
+ public static DestinationCase forNumber(int value) {
+ switch (value) {
+ case 1:
+ return GCS_OUTPUT_CONFIG;
+ case 0:
+ return DESTINATION_NOT_SET;
+ default:
+ return null;
+ }
+ }
+
+ public int getNumber() {
+ return this.value;
+ }
+ };
+
+ public DestinationCase getDestinationCase() {
+ return DestinationCase.forNumber(destinationCase_);
+ }
+
+ public static final int GCS_OUTPUT_CONFIG_FIELD_NUMBER = 1;
+ /**
+ *
+ *
+ *
+ * Output config to write the results to Cloud Storage.
+ *
+ *
+ *
+ * .google.cloud.documentai.v1beta3.DocumentOutputConfig.GcsOutputConfig gcs_output_config = 1;
+ *
+ *
+ * @return Whether the gcsOutputConfig field is set.
+ */
+ @java.lang.Override
+ public boolean hasGcsOutputConfig() {
+ return destinationCase_ == 1;
+ }
+ /**
+ *
+ *
+ *
+ * Output config to write the results to Cloud Storage.
+ *
+ *
+ *
+ * .google.cloud.documentai.v1beta3.DocumentOutputConfig.GcsOutputConfig gcs_output_config = 1;
+ *
+ *
+ * @return The gcsOutputConfig.
+ */
+ @java.lang.Override
+ public com.google.cloud.documentai.v1beta3.DocumentOutputConfig.GcsOutputConfig
+ getGcsOutputConfig() {
+ if (destinationCase_ == 1) {
+ return (com.google.cloud.documentai.v1beta3.DocumentOutputConfig.GcsOutputConfig)
+ destination_;
+ }
+ return com.google.cloud.documentai.v1beta3.DocumentOutputConfig.GcsOutputConfig
+ .getDefaultInstance();
+ }
+ /**
+ *
+ *
+ *
+ * Output config to write the results to Cloud Storage.
+ *
+ *
+ *
+ * .google.cloud.documentai.v1beta3.DocumentOutputConfig.GcsOutputConfig gcs_output_config = 1;
+ *
+ */
+ @java.lang.Override
+ public com.google.cloud.documentai.v1beta3.DocumentOutputConfig.GcsOutputConfigOrBuilder
+ getGcsOutputConfigOrBuilder() {
+ if (destinationCase_ == 1) {
+ return (com.google.cloud.documentai.v1beta3.DocumentOutputConfig.GcsOutputConfig)
+ destination_;
+ }
+ return com.google.cloud.documentai.v1beta3.DocumentOutputConfig.GcsOutputConfig
+ .getDefaultInstance();
+ }
+
+ 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 (destinationCase_ == 1) {
+ output.writeMessage(
+ 1,
+ (com.google.cloud.documentai.v1beta3.DocumentOutputConfig.GcsOutputConfig) destination_);
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (destinationCase_ == 1) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeMessageSize(
+ 1,
+ (com.google.cloud.documentai.v1beta3.DocumentOutputConfig.GcsOutputConfig)
+ destination_);
+ }
+ size += unknownFields.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.DocumentOutputConfig)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.documentai.v1beta3.DocumentOutputConfig other =
+ (com.google.cloud.documentai.v1beta3.DocumentOutputConfig) obj;
+
+ if (!getDestinationCase().equals(other.getDestinationCase())) return false;
+ switch (destinationCase_) {
+ case 1:
+ if (!getGcsOutputConfig().equals(other.getGcsOutputConfig())) return false;
+ break;
+ case 0:
+ default:
+ }
+ if (!unknownFields.equals(other.unknownFields)) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ switch (destinationCase_) {
+ case 1:
+ hash = (37 * hash) + GCS_OUTPUT_CONFIG_FIELD_NUMBER;
+ hash = (53 * hash) + getGcsOutputConfig().hashCode();
+ break;
+ case 0:
+ default:
+ }
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.documentai.v1beta3.DocumentOutputConfig parseFrom(
+ java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.documentai.v1beta3.DocumentOutputConfig 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.DocumentOutputConfig parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.documentai.v1beta3.DocumentOutputConfig parseFrom(
+ com.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.DocumentOutputConfig parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.documentai.v1beta3.DocumentOutputConfig 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.DocumentOutputConfig parseFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.documentai.v1beta3.DocumentOutputConfig 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.DocumentOutputConfig parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.documentai.v1beta3.DocumentOutputConfig 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.DocumentOutputConfig 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.DocumentOutputConfig 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.DocumentOutputConfig 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;
+ }
+ /**
+ *
+ *
+ *
+ * Config that controls the output of documents. All documents will be written
+ * as a JSON file.
+ *
+ *
+ * Protobuf type {@code google.cloud.documentai.v1beta3.DocumentOutputConfig}
+ */
+ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ implements
+ // @@protoc_insertion_point(builder_implements:google.cloud.documentai.v1beta3.DocumentOutputConfig)
+ com.google.cloud.documentai.v1beta3.DocumentOutputConfigOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.cloud.documentai.v1beta3.DocumentIoProto
+ .internal_static_google_cloud_documentai_v1beta3_DocumentOutputConfig_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.cloud.documentai.v1beta3.DocumentIoProto
+ .internal_static_google_cloud_documentai_v1beta3_DocumentOutputConfig_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.cloud.documentai.v1beta3.DocumentOutputConfig.class,
+ com.google.cloud.documentai.v1beta3.DocumentOutputConfig.Builder.class);
+ }
+
+ // Construct using com.google.cloud.documentai.v1beta3.DocumentOutputConfig.newBuilder()
+ private Builder() {
+ maybeForceBuilderInitialization();
+ }
+
+ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ super(parent);
+ maybeForceBuilderInitialization();
+ }
+
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+ }
+
+ @java.lang.Override
+ public Builder clear() {
+ super.clear();
+ destinationCase_ = 0;
+ destination_ = null;
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+ return com.google.cloud.documentai.v1beta3.DocumentIoProto
+ .internal_static_google_cloud_documentai_v1beta3_DocumentOutputConfig_descriptor;
+ }
+
+ @java.lang.Override
+ public com.google.cloud.documentai.v1beta3.DocumentOutputConfig getDefaultInstanceForType() {
+ return com.google.cloud.documentai.v1beta3.DocumentOutputConfig.getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public com.google.cloud.documentai.v1beta3.DocumentOutputConfig build() {
+ com.google.cloud.documentai.v1beta3.DocumentOutputConfig result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public com.google.cloud.documentai.v1beta3.DocumentOutputConfig buildPartial() {
+ com.google.cloud.documentai.v1beta3.DocumentOutputConfig result =
+ new com.google.cloud.documentai.v1beta3.DocumentOutputConfig(this);
+ if (destinationCase_ == 1) {
+ if (gcsOutputConfigBuilder_ == null) {
+ result.destination_ = destination_;
+ } else {
+ result.destination_ = gcsOutputConfigBuilder_.build();
+ }
+ }
+ result.destinationCase_ = destinationCase_;
+ 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.DocumentOutputConfig) {
+ return mergeFrom((com.google.cloud.documentai.v1beta3.DocumentOutputConfig) other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(com.google.cloud.documentai.v1beta3.DocumentOutputConfig other) {
+ if (other == com.google.cloud.documentai.v1beta3.DocumentOutputConfig.getDefaultInstance())
+ return this;
+ switch (other.getDestinationCase()) {
+ case GCS_OUTPUT_CONFIG:
+ {
+ mergeGcsOutputConfig(other.getGcsOutputConfig());
+ break;
+ }
+ case DESTINATION_NOT_SET:
+ {
+ break;
+ }
+ }
+ this.mergeUnknownFields(other.unknownFields);
+ 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 {
+ com.google.cloud.documentai.v1beta3.DocumentOutputConfig parsedMessage = null;
+ try {
+ parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ parsedMessage =
+ (com.google.cloud.documentai.v1beta3.DocumentOutputConfig) e.getUnfinishedMessage();
+ throw e.unwrapIOException();
+ } finally {
+ if (parsedMessage != null) {
+ mergeFrom(parsedMessage);
+ }
+ }
+ return this;
+ }
+
+ private int destinationCase_ = 0;
+ private java.lang.Object destination_;
+
+ public DestinationCase getDestinationCase() {
+ return DestinationCase.forNumber(destinationCase_);
+ }
+
+ public Builder clearDestination() {
+ destinationCase_ = 0;
+ destination_ = null;
+ onChanged();
+ return this;
+ }
+
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.documentai.v1beta3.DocumentOutputConfig.GcsOutputConfig,
+ com.google.cloud.documentai.v1beta3.DocumentOutputConfig.GcsOutputConfig.Builder,
+ com.google.cloud.documentai.v1beta3.DocumentOutputConfig.GcsOutputConfigOrBuilder>
+ gcsOutputConfigBuilder_;
+ /**
+ *
+ *
+ *
+ * Output config to write the results to Cloud Storage.
+ *
+ *
+ *
+ * .google.cloud.documentai.v1beta3.DocumentOutputConfig.GcsOutputConfig gcs_output_config = 1;
+ *
+ *
+ * @return Whether the gcsOutputConfig field is set.
+ */
+ @java.lang.Override
+ public boolean hasGcsOutputConfig() {
+ return destinationCase_ == 1;
+ }
+ /**
+ *
+ *
+ *
+ * Output config to write the results to Cloud Storage.
+ *
+ *
+ *
+ * .google.cloud.documentai.v1beta3.DocumentOutputConfig.GcsOutputConfig gcs_output_config = 1;
+ *
+ *
+ * @return The gcsOutputConfig.
+ */
+ @java.lang.Override
+ public com.google.cloud.documentai.v1beta3.DocumentOutputConfig.GcsOutputConfig
+ getGcsOutputConfig() {
+ if (gcsOutputConfigBuilder_ == null) {
+ if (destinationCase_ == 1) {
+ return (com.google.cloud.documentai.v1beta3.DocumentOutputConfig.GcsOutputConfig)
+ destination_;
+ }
+ return com.google.cloud.documentai.v1beta3.DocumentOutputConfig.GcsOutputConfig
+ .getDefaultInstance();
+ } else {
+ if (destinationCase_ == 1) {
+ return gcsOutputConfigBuilder_.getMessage();
+ }
+ return com.google.cloud.documentai.v1beta3.DocumentOutputConfig.GcsOutputConfig
+ .getDefaultInstance();
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Output config to write the results to Cloud Storage.
+ *
+ *
+ *
+ * .google.cloud.documentai.v1beta3.DocumentOutputConfig.GcsOutputConfig gcs_output_config = 1;
+ *
+ */
+ public Builder setGcsOutputConfig(
+ com.google.cloud.documentai.v1beta3.DocumentOutputConfig.GcsOutputConfig value) {
+ if (gcsOutputConfigBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ destination_ = value;
+ onChanged();
+ } else {
+ gcsOutputConfigBuilder_.setMessage(value);
+ }
+ destinationCase_ = 1;
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Output config to write the results to Cloud Storage.
+ *
+ *
+ *
+ * .google.cloud.documentai.v1beta3.DocumentOutputConfig.GcsOutputConfig gcs_output_config = 1;
+ *
+ */
+ public Builder setGcsOutputConfig(
+ com.google.cloud.documentai.v1beta3.DocumentOutputConfig.GcsOutputConfig.Builder
+ builderForValue) {
+ if (gcsOutputConfigBuilder_ == null) {
+ destination_ = builderForValue.build();
+ onChanged();
+ } else {
+ gcsOutputConfigBuilder_.setMessage(builderForValue.build());
+ }
+ destinationCase_ = 1;
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Output config to write the results to Cloud Storage.
+ *
+ *
+ *
+ * .google.cloud.documentai.v1beta3.DocumentOutputConfig.GcsOutputConfig gcs_output_config = 1;
+ *
+ */
+ public Builder mergeGcsOutputConfig(
+ com.google.cloud.documentai.v1beta3.DocumentOutputConfig.GcsOutputConfig value) {
+ if (gcsOutputConfigBuilder_ == null) {
+ if (destinationCase_ == 1
+ && destination_
+ != com.google.cloud.documentai.v1beta3.DocumentOutputConfig.GcsOutputConfig
+ .getDefaultInstance()) {
+ destination_ =
+ com.google.cloud.documentai.v1beta3.DocumentOutputConfig.GcsOutputConfig.newBuilder(
+ (com.google.cloud.documentai.v1beta3.DocumentOutputConfig.GcsOutputConfig)
+ destination_)
+ .mergeFrom(value)
+ .buildPartial();
+ } else {
+ destination_ = value;
+ }
+ onChanged();
+ } else {
+ if (destinationCase_ == 1) {
+ gcsOutputConfigBuilder_.mergeFrom(value);
+ }
+ gcsOutputConfigBuilder_.setMessage(value);
+ }
+ destinationCase_ = 1;
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Output config to write the results to Cloud Storage.
+ *
+ *
+ *
+ * .google.cloud.documentai.v1beta3.DocumentOutputConfig.GcsOutputConfig gcs_output_config = 1;
+ *
+ */
+ public Builder clearGcsOutputConfig() {
+ if (gcsOutputConfigBuilder_ == null) {
+ if (destinationCase_ == 1) {
+ destinationCase_ = 0;
+ destination_ = null;
+ onChanged();
+ }
+ } else {
+ if (destinationCase_ == 1) {
+ destinationCase_ = 0;
+ destination_ = null;
+ }
+ gcsOutputConfigBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Output config to write the results to Cloud Storage.
+ *
+ *
+ *
+ * .google.cloud.documentai.v1beta3.DocumentOutputConfig.GcsOutputConfig gcs_output_config = 1;
+ *
+ */
+ public com.google.cloud.documentai.v1beta3.DocumentOutputConfig.GcsOutputConfig.Builder
+ getGcsOutputConfigBuilder() {
+ return getGcsOutputConfigFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ *
+ * Output config to write the results to Cloud Storage.
+ *
+ *
+ *
+ * .google.cloud.documentai.v1beta3.DocumentOutputConfig.GcsOutputConfig gcs_output_config = 1;
+ *
+ */
+ @java.lang.Override
+ public com.google.cloud.documentai.v1beta3.DocumentOutputConfig.GcsOutputConfigOrBuilder
+ getGcsOutputConfigOrBuilder() {
+ if ((destinationCase_ == 1) && (gcsOutputConfigBuilder_ != null)) {
+ return gcsOutputConfigBuilder_.getMessageOrBuilder();
+ } else {
+ if (destinationCase_ == 1) {
+ return (com.google.cloud.documentai.v1beta3.DocumentOutputConfig.GcsOutputConfig)
+ destination_;
+ }
+ return com.google.cloud.documentai.v1beta3.DocumentOutputConfig.GcsOutputConfig
+ .getDefaultInstance();
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Output config to write the results to Cloud Storage.
+ *
+ *
+ *
+ * .google.cloud.documentai.v1beta3.DocumentOutputConfig.GcsOutputConfig gcs_output_config = 1;
+ *
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.documentai.v1beta3.DocumentOutputConfig.GcsOutputConfig,
+ com.google.cloud.documentai.v1beta3.DocumentOutputConfig.GcsOutputConfig.Builder,
+ com.google.cloud.documentai.v1beta3.DocumentOutputConfig.GcsOutputConfigOrBuilder>
+ getGcsOutputConfigFieldBuilder() {
+ if (gcsOutputConfigBuilder_ == null) {
+ if (!(destinationCase_ == 1)) {
+ destination_ =
+ com.google.cloud.documentai.v1beta3.DocumentOutputConfig.GcsOutputConfig
+ .getDefaultInstance();
+ }
+ gcsOutputConfigBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.documentai.v1beta3.DocumentOutputConfig.GcsOutputConfig,
+ com.google.cloud.documentai.v1beta3.DocumentOutputConfig.GcsOutputConfig.Builder,
+ com.google.cloud.documentai.v1beta3.DocumentOutputConfig.GcsOutputConfigOrBuilder>(
+ (com.google.cloud.documentai.v1beta3.DocumentOutputConfig.GcsOutputConfig)
+ destination_,
+ getParentForChildren(),
+ isClean());
+ destination_ = null;
+ }
+ destinationCase_ = 1;
+ onChanged();
+ ;
+ return gcsOutputConfigBuilder_;
+ }
+
+ @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.DocumentOutputConfig)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.documentai.v1beta3.DocumentOutputConfig)
+ private static final com.google.cloud.documentai.v1beta3.DocumentOutputConfig DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.cloud.documentai.v1beta3.DocumentOutputConfig();
+ }
+
+ public static com.google.cloud.documentai.v1beta3.DocumentOutputConfig getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser PARSER =
+ new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
+ public DocumentOutputConfig parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return new DocumentOutputConfig(input, extensionRegistry);
+ }
+ };
+
+ 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.DocumentOutputConfig getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+}
diff --git a/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/DocumentOutputConfigOrBuilder.java b/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/DocumentOutputConfigOrBuilder.java
new file mode 100644
index 00000000..df1a5921
--- /dev/null
+++ b/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/DocumentOutputConfigOrBuilder.java
@@ -0,0 +1,70 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: google/cloud/documentai/v1beta3/document_io.proto
+
+package com.google.cloud.documentai.v1beta3;
+
+public interface DocumentOutputConfigOrBuilder
+ extends
+ // @@protoc_insertion_point(interface_extends:google.cloud.documentai.v1beta3.DocumentOutputConfig)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ *
+ *
+ *
+ * Output config to write the results to Cloud Storage.
+ *
+ *
+ *
+ * .google.cloud.documentai.v1beta3.DocumentOutputConfig.GcsOutputConfig gcs_output_config = 1;
+ *
+ *
+ * @return Whether the gcsOutputConfig field is set.
+ */
+ boolean hasGcsOutputConfig();
+ /**
+ *
+ *
+ *
+ * Output config to write the results to Cloud Storage.
+ *
+ *
+ *
+ * .google.cloud.documentai.v1beta3.DocumentOutputConfig.GcsOutputConfig gcs_output_config = 1;
+ *
+ *
+ * @return The gcsOutputConfig.
+ */
+ com.google.cloud.documentai.v1beta3.DocumentOutputConfig.GcsOutputConfig getGcsOutputConfig();
+ /**
+ *
+ *
+ *
+ * Output config to write the results to Cloud Storage.
+ *
+ *
+ *
+ * .google.cloud.documentai.v1beta3.DocumentOutputConfig.GcsOutputConfig gcs_output_config = 1;
+ *
+ */
+ com.google.cloud.documentai.v1beta3.DocumentOutputConfig.GcsOutputConfigOrBuilder
+ getGcsOutputConfigOrBuilder();
+
+ public com.google.cloud.documentai.v1beta3.DocumentOutputConfig.DestinationCase
+ getDestinationCase();
+}
diff --git a/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/GcsDocument.java b/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/GcsDocument.java
new file mode 100644
index 00000000..35ff9b62
--- /dev/null
+++ b/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/GcsDocument.java
@@ -0,0 +1,814 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the 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_io.proto
+
+package com.google.cloud.documentai.v1beta3;
+
+/**
+ *
+ *
+ *
+ * Specifies a document stored on Cloud Storage.
+ *
+ *
+ * Protobuf type {@code google.cloud.documentai.v1beta3.GcsDocument}
+ */
+public final class GcsDocument extends com.google.protobuf.GeneratedMessageV3
+ implements
+ // @@protoc_insertion_point(message_implements:google.cloud.documentai.v1beta3.GcsDocument)
+ GcsDocumentOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use GcsDocument.newBuilder() to construct.
+ private GcsDocument(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+
+ private GcsDocument() {
+ gcsUri_ = "";
+ mimeType_ = "";
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+ return new GcsDocument();
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+ return this.unknownFields;
+ }
+
+ private GcsDocument(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10:
+ {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ gcsUri_ = s;
+ break;
+ }
+ case 18:
+ {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ mimeType_ = s;
+ break;
+ }
+ default:
+ {
+ if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+ } finally {
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.cloud.documentai.v1beta3.DocumentIoProto
+ .internal_static_google_cloud_documentai_v1beta3_GcsDocument_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.cloud.documentai.v1beta3.DocumentIoProto
+ .internal_static_google_cloud_documentai_v1beta3_GcsDocument_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.cloud.documentai.v1beta3.GcsDocument.class,
+ com.google.cloud.documentai.v1beta3.GcsDocument.Builder.class);
+ }
+
+ public static final int GCS_URI_FIELD_NUMBER = 1;
+ private volatile java.lang.Object gcsUri_;
+ /**
+ *
+ *
+ *
+ * The Cloud Storage object uri.
+ *
+ *
+ * string gcs_uri = 1;
+ *
+ * @return The gcsUri.
+ */
+ @java.lang.Override
+ public java.lang.String getGcsUri() {
+ java.lang.Object ref = gcsUri_;
+ 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();
+ gcsUri_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * The Cloud Storage object uri.
+ *
+ *
+ * string gcs_uri = 1;
+ *
+ * @return The bytes for gcsUri.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getGcsUriBytes() {
+ java.lang.Object ref = gcsUri_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ gcsUri_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int MIME_TYPE_FIELD_NUMBER = 2;
+ private volatile java.lang.Object mimeType_;
+ /**
+ *
+ *
+ *
+ * An IANA MIME type (RFC6838) of the content.
+ *
+ *
+ * string mime_type = 2;
+ *
+ * @return The mimeType.
+ */
+ @java.lang.Override
+ public java.lang.String getMimeType() {
+ java.lang.Object ref = mimeType_;
+ 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();
+ mimeType_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * An IANA MIME type (RFC6838) of the content.
+ *
+ *
+ * string mime_type = 2;
+ *
+ * @return The bytes for mimeType.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getMimeTypeBytes() {
+ java.lang.Object ref = mimeType_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ mimeType_ = 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 (!getGcsUriBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, gcsUri_);
+ }
+ if (!getMimeTypeBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 2, mimeType_);
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (!getGcsUriBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, gcsUri_);
+ }
+ if (!getMimeTypeBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, mimeType_);
+ }
+ size += unknownFields.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.GcsDocument)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.documentai.v1beta3.GcsDocument other =
+ (com.google.cloud.documentai.v1beta3.GcsDocument) obj;
+
+ if (!getGcsUri().equals(other.getGcsUri())) return false;
+ if (!getMimeType().equals(other.getMimeType())) return false;
+ if (!unknownFields.equals(other.unknownFields)) 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) + GCS_URI_FIELD_NUMBER;
+ hash = (53 * hash) + getGcsUri().hashCode();
+ hash = (37 * hash) + MIME_TYPE_FIELD_NUMBER;
+ hash = (53 * hash) + getMimeType().hashCode();
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.documentai.v1beta3.GcsDocument parseFrom(java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.documentai.v1beta3.GcsDocument 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.GcsDocument parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.documentai.v1beta3.GcsDocument parseFrom(
+ com.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.GcsDocument parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.documentai.v1beta3.GcsDocument 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.GcsDocument parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.documentai.v1beta3.GcsDocument 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.GcsDocument parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.documentai.v1beta3.GcsDocument 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.GcsDocument 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.GcsDocument 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.GcsDocument 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;
+ }
+ /**
+ *
+ *
+ *
+ * Specifies a document stored on Cloud Storage.
+ *
+ *
+ * Protobuf type {@code google.cloud.documentai.v1beta3.GcsDocument}
+ */
+ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ implements
+ // @@protoc_insertion_point(builder_implements:google.cloud.documentai.v1beta3.GcsDocument)
+ com.google.cloud.documentai.v1beta3.GcsDocumentOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.cloud.documentai.v1beta3.DocumentIoProto
+ .internal_static_google_cloud_documentai_v1beta3_GcsDocument_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.cloud.documentai.v1beta3.DocumentIoProto
+ .internal_static_google_cloud_documentai_v1beta3_GcsDocument_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.cloud.documentai.v1beta3.GcsDocument.class,
+ com.google.cloud.documentai.v1beta3.GcsDocument.Builder.class);
+ }
+
+ // Construct using com.google.cloud.documentai.v1beta3.GcsDocument.newBuilder()
+ private Builder() {
+ maybeForceBuilderInitialization();
+ }
+
+ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ super(parent);
+ maybeForceBuilderInitialization();
+ }
+
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+ }
+
+ @java.lang.Override
+ public Builder clear() {
+ super.clear();
+ gcsUri_ = "";
+
+ mimeType_ = "";
+
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+ return com.google.cloud.documentai.v1beta3.DocumentIoProto
+ .internal_static_google_cloud_documentai_v1beta3_GcsDocument_descriptor;
+ }
+
+ @java.lang.Override
+ public com.google.cloud.documentai.v1beta3.GcsDocument getDefaultInstanceForType() {
+ return com.google.cloud.documentai.v1beta3.GcsDocument.getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public com.google.cloud.documentai.v1beta3.GcsDocument build() {
+ com.google.cloud.documentai.v1beta3.GcsDocument result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public com.google.cloud.documentai.v1beta3.GcsDocument buildPartial() {
+ com.google.cloud.documentai.v1beta3.GcsDocument result =
+ new com.google.cloud.documentai.v1beta3.GcsDocument(this);
+ result.gcsUri_ = gcsUri_;
+ result.mimeType_ = mimeType_;
+ 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.GcsDocument) {
+ return mergeFrom((com.google.cloud.documentai.v1beta3.GcsDocument) other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(com.google.cloud.documentai.v1beta3.GcsDocument other) {
+ if (other == com.google.cloud.documentai.v1beta3.GcsDocument.getDefaultInstance())
+ return this;
+ if (!other.getGcsUri().isEmpty()) {
+ gcsUri_ = other.gcsUri_;
+ onChanged();
+ }
+ if (!other.getMimeType().isEmpty()) {
+ mimeType_ = other.mimeType_;
+ onChanged();
+ }
+ this.mergeUnknownFields(other.unknownFields);
+ 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 {
+ com.google.cloud.documentai.v1beta3.GcsDocument parsedMessage = null;
+ try {
+ parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ parsedMessage = (com.google.cloud.documentai.v1beta3.GcsDocument) e.getUnfinishedMessage();
+ throw e.unwrapIOException();
+ } finally {
+ if (parsedMessage != null) {
+ mergeFrom(parsedMessage);
+ }
+ }
+ return this;
+ }
+
+ private java.lang.Object gcsUri_ = "";
+ /**
+ *
+ *
+ *
+ * The Cloud Storage object uri.
+ *
+ *
+ * string gcs_uri = 1;
+ *
+ * @return The gcsUri.
+ */
+ public java.lang.String getGcsUri() {
+ java.lang.Object ref = gcsUri_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ gcsUri_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * The Cloud Storage object uri.
+ *
+ *
+ * string gcs_uri = 1;
+ *
+ * @return The bytes for gcsUri.
+ */
+ public com.google.protobuf.ByteString getGcsUriBytes() {
+ java.lang.Object ref = gcsUri_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ gcsUri_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * The Cloud Storage object uri.
+ *
+ *
+ * string gcs_uri = 1;
+ *
+ * @param value The gcsUri to set.
+ * @return This builder for chaining.
+ */
+ public Builder setGcsUri(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ gcsUri_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The Cloud Storage object uri.
+ *
+ *
+ * string gcs_uri = 1;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearGcsUri() {
+
+ gcsUri_ = getDefaultInstance().getGcsUri();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The Cloud Storage object uri.
+ *
+ *
+ * string gcs_uri = 1;
+ *
+ * @param value The bytes for gcsUri to set.
+ * @return This builder for chaining.
+ */
+ public Builder setGcsUriBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ gcsUri_ = value;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object mimeType_ = "";
+ /**
+ *
+ *
+ *
+ * An IANA MIME type (RFC6838) of the content.
+ *
+ *
+ * string mime_type = 2;
+ *
+ * @return The mimeType.
+ */
+ public java.lang.String getMimeType() {
+ java.lang.Object ref = mimeType_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ mimeType_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * An IANA MIME type (RFC6838) of the content.
+ *
+ *
+ * string mime_type = 2;
+ *
+ * @return The bytes for mimeType.
+ */
+ public com.google.protobuf.ByteString getMimeTypeBytes() {
+ java.lang.Object ref = mimeType_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ mimeType_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * An IANA MIME type (RFC6838) of the content.
+ *
+ *
+ * string mime_type = 2;
+ *
+ * @param value The mimeType to set.
+ * @return This builder for chaining.
+ */
+ public Builder setMimeType(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ mimeType_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * An IANA MIME type (RFC6838) of the content.
+ *
+ *
+ * string mime_type = 2;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearMimeType() {
+
+ mimeType_ = getDefaultInstance().getMimeType();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * An IANA MIME type (RFC6838) of the content.
+ *
+ *
+ * string mime_type = 2;
+ *
+ * @param value The bytes for mimeType to set.
+ * @return This builder for chaining.
+ */
+ public Builder setMimeTypeBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ mimeType_ = value;
+ 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.GcsDocument)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.documentai.v1beta3.GcsDocument)
+ private static final com.google.cloud.documentai.v1beta3.GcsDocument DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.cloud.documentai.v1beta3.GcsDocument();
+ }
+
+ public static com.google.cloud.documentai.v1beta3.GcsDocument getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser PARSER =
+ new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
+ public GcsDocument parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return new GcsDocument(input, extensionRegistry);
+ }
+ };
+
+ 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.GcsDocument getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+}
diff --git a/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/GcsDocumentOrBuilder.java b/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/GcsDocumentOrBuilder.java
new file mode 100644
index 00000000..33522b8d
--- /dev/null
+++ b/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/GcsDocumentOrBuilder.java
@@ -0,0 +1,75 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: google/cloud/documentai/v1beta3/document_io.proto
+
+package com.google.cloud.documentai.v1beta3;
+
+public interface GcsDocumentOrBuilder
+ extends
+ // @@protoc_insertion_point(interface_extends:google.cloud.documentai.v1beta3.GcsDocument)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ *
+ *
+ *
+ * The Cloud Storage object uri.
+ *
+ *
+ * string gcs_uri = 1;
+ *
+ * @return The gcsUri.
+ */
+ java.lang.String getGcsUri();
+ /**
+ *
+ *
+ *
+ * The Cloud Storage object uri.
+ *
+ *
+ * string gcs_uri = 1;
+ *
+ * @return The bytes for gcsUri.
+ */
+ com.google.protobuf.ByteString getGcsUriBytes();
+
+ /**
+ *
+ *
+ *
+ * An IANA MIME type (RFC6838) of the content.
+ *
+ *
+ * string mime_type = 2;
+ *
+ * @return The mimeType.
+ */
+ java.lang.String getMimeType();
+ /**
+ *
+ *
+ *
+ * An IANA MIME type (RFC6838) of the content.
+ *
+ *
+ * string mime_type = 2;
+ *
+ * @return The bytes for mimeType.
+ */
+ com.google.protobuf.ByteString getMimeTypeBytes();
+}
diff --git a/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/GcsDocuments.java b/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/GcsDocuments.java
new file mode 100644
index 00000000..99bbef9a
--- /dev/null
+++ b/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/GcsDocuments.java
@@ -0,0 +1,952 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the 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_io.proto
+
+package com.google.cloud.documentai.v1beta3;
+
+/**
+ *
+ *
+ *
+ * Specifies a set of documents on Cloud Storage.
+ *
+ *
+ * Protobuf type {@code google.cloud.documentai.v1beta3.GcsDocuments}
+ */
+public final class GcsDocuments extends com.google.protobuf.GeneratedMessageV3
+ implements
+ // @@protoc_insertion_point(message_implements:google.cloud.documentai.v1beta3.GcsDocuments)
+ GcsDocumentsOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use GcsDocuments.newBuilder() to construct.
+ private GcsDocuments(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+
+ private GcsDocuments() {
+ documents_ = java.util.Collections.emptyList();
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+ return new GcsDocuments();
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+ return this.unknownFields;
+ }
+
+ private GcsDocuments(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ int mutable_bitField0_ = 0;
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10:
+ {
+ if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+ documents_ =
+ new java.util.ArrayList();
+ mutable_bitField0_ |= 0x00000001;
+ }
+ documents_.add(
+ input.readMessage(
+ com.google.cloud.documentai.v1beta3.GcsDocument.parser(), extensionRegistry));
+ break;
+ }
+ default:
+ {
+ if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+ } finally {
+ if (((mutable_bitField0_ & 0x00000001) != 0)) {
+ documents_ = java.util.Collections.unmodifiableList(documents_);
+ }
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.cloud.documentai.v1beta3.DocumentIoProto
+ .internal_static_google_cloud_documentai_v1beta3_GcsDocuments_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.cloud.documentai.v1beta3.DocumentIoProto
+ .internal_static_google_cloud_documentai_v1beta3_GcsDocuments_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.cloud.documentai.v1beta3.GcsDocuments.class,
+ com.google.cloud.documentai.v1beta3.GcsDocuments.Builder.class);
+ }
+
+ public static final int DOCUMENTS_FIELD_NUMBER = 1;
+ private java.util.List documents_;
+ /**
+ *
+ *
+ *
+ * The list of documents.
+ *
+ *
+ * repeated .google.cloud.documentai.v1beta3.GcsDocument documents = 1;
+ */
+ @java.lang.Override
+ public java.util.List getDocumentsList() {
+ return documents_;
+ }
+ /**
+ *
+ *
+ *
+ * The list of documents.
+ *
+ *
+ * repeated .google.cloud.documentai.v1beta3.GcsDocument documents = 1;
+ */
+ @java.lang.Override
+ public java.util.List extends com.google.cloud.documentai.v1beta3.GcsDocumentOrBuilder>
+ getDocumentsOrBuilderList() {
+ return documents_;
+ }
+ /**
+ *
+ *
+ *
+ * The list of documents.
+ *
+ *
+ * repeated .google.cloud.documentai.v1beta3.GcsDocument documents = 1;
+ */
+ @java.lang.Override
+ public int getDocumentsCount() {
+ return documents_.size();
+ }
+ /**
+ *
+ *
+ *
+ * The list of documents.
+ *
+ *
+ * repeated .google.cloud.documentai.v1beta3.GcsDocument documents = 1;
+ */
+ @java.lang.Override
+ public com.google.cloud.documentai.v1beta3.GcsDocument getDocuments(int index) {
+ return documents_.get(index);
+ }
+ /**
+ *
+ *
+ *
+ * The list of documents.
+ *
+ *
+ * repeated .google.cloud.documentai.v1beta3.GcsDocument documents = 1;
+ */
+ @java.lang.Override
+ public com.google.cloud.documentai.v1beta3.GcsDocumentOrBuilder getDocumentsOrBuilder(int index) {
+ return documents_.get(index);
+ }
+
+ 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 {
+ for (int i = 0; i < documents_.size(); i++) {
+ output.writeMessage(1, documents_.get(i));
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ for (int i = 0; i < documents_.size(); i++) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, documents_.get(i));
+ }
+ size += unknownFields.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.GcsDocuments)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.documentai.v1beta3.GcsDocuments other =
+ (com.google.cloud.documentai.v1beta3.GcsDocuments) obj;
+
+ if (!getDocumentsList().equals(other.getDocumentsList())) return false;
+ if (!unknownFields.equals(other.unknownFields)) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ if (getDocumentsCount() > 0) {
+ hash = (37 * hash) + DOCUMENTS_FIELD_NUMBER;
+ hash = (53 * hash) + getDocumentsList().hashCode();
+ }
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.documentai.v1beta3.GcsDocuments parseFrom(java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.documentai.v1beta3.GcsDocuments 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.GcsDocuments parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.documentai.v1beta3.GcsDocuments parseFrom(
+ com.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.GcsDocuments parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.documentai.v1beta3.GcsDocuments 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.GcsDocuments parseFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.documentai.v1beta3.GcsDocuments 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.GcsDocuments parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.documentai.v1beta3.GcsDocuments 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.GcsDocuments 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.GcsDocuments 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.GcsDocuments 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;
+ }
+ /**
+ *
+ *
+ *
+ * Specifies a set of documents on Cloud Storage.
+ *
+ *
+ * Protobuf type {@code google.cloud.documentai.v1beta3.GcsDocuments}
+ */
+ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ implements
+ // @@protoc_insertion_point(builder_implements:google.cloud.documentai.v1beta3.GcsDocuments)
+ com.google.cloud.documentai.v1beta3.GcsDocumentsOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.cloud.documentai.v1beta3.DocumentIoProto
+ .internal_static_google_cloud_documentai_v1beta3_GcsDocuments_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.cloud.documentai.v1beta3.DocumentIoProto
+ .internal_static_google_cloud_documentai_v1beta3_GcsDocuments_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.cloud.documentai.v1beta3.GcsDocuments.class,
+ com.google.cloud.documentai.v1beta3.GcsDocuments.Builder.class);
+ }
+
+ // Construct using com.google.cloud.documentai.v1beta3.GcsDocuments.newBuilder()
+ private Builder() {
+ maybeForceBuilderInitialization();
+ }
+
+ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ super(parent);
+ maybeForceBuilderInitialization();
+ }
+
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
+ getDocumentsFieldBuilder();
+ }
+ }
+
+ @java.lang.Override
+ public Builder clear() {
+ super.clear();
+ if (documentsBuilder_ == null) {
+ documents_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ } else {
+ documentsBuilder_.clear();
+ }
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+ return com.google.cloud.documentai.v1beta3.DocumentIoProto
+ .internal_static_google_cloud_documentai_v1beta3_GcsDocuments_descriptor;
+ }
+
+ @java.lang.Override
+ public com.google.cloud.documentai.v1beta3.GcsDocuments getDefaultInstanceForType() {
+ return com.google.cloud.documentai.v1beta3.GcsDocuments.getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public com.google.cloud.documentai.v1beta3.GcsDocuments build() {
+ com.google.cloud.documentai.v1beta3.GcsDocuments result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public com.google.cloud.documentai.v1beta3.GcsDocuments buildPartial() {
+ com.google.cloud.documentai.v1beta3.GcsDocuments result =
+ new com.google.cloud.documentai.v1beta3.GcsDocuments(this);
+ int from_bitField0_ = bitField0_;
+ if (documentsBuilder_ == null) {
+ if (((bitField0_ & 0x00000001) != 0)) {
+ documents_ = java.util.Collections.unmodifiableList(documents_);
+ bitField0_ = (bitField0_ & ~0x00000001);
+ }
+ result.documents_ = documents_;
+ } else {
+ result.documents_ = documentsBuilder_.build();
+ }
+ 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.GcsDocuments) {
+ return mergeFrom((com.google.cloud.documentai.v1beta3.GcsDocuments) other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(com.google.cloud.documentai.v1beta3.GcsDocuments other) {
+ if (other == com.google.cloud.documentai.v1beta3.GcsDocuments.getDefaultInstance())
+ return this;
+ if (documentsBuilder_ == null) {
+ if (!other.documents_.isEmpty()) {
+ if (documents_.isEmpty()) {
+ documents_ = other.documents_;
+ bitField0_ = (bitField0_ & ~0x00000001);
+ } else {
+ ensureDocumentsIsMutable();
+ documents_.addAll(other.documents_);
+ }
+ onChanged();
+ }
+ } else {
+ if (!other.documents_.isEmpty()) {
+ if (documentsBuilder_.isEmpty()) {
+ documentsBuilder_.dispose();
+ documentsBuilder_ = null;
+ documents_ = other.documents_;
+ bitField0_ = (bitField0_ & ~0x00000001);
+ documentsBuilder_ =
+ com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+ ? getDocumentsFieldBuilder()
+ : null;
+ } else {
+ documentsBuilder_.addAllMessages(other.documents_);
+ }
+ }
+ }
+ this.mergeUnknownFields(other.unknownFields);
+ 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 {
+ com.google.cloud.documentai.v1beta3.GcsDocuments parsedMessage = null;
+ try {
+ parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ parsedMessage = (com.google.cloud.documentai.v1beta3.GcsDocuments) e.getUnfinishedMessage();
+ throw e.unwrapIOException();
+ } finally {
+ if (parsedMessage != null) {
+ mergeFrom(parsedMessage);
+ }
+ }
+ return this;
+ }
+
+ private int bitField0_;
+
+ private java.util.List documents_ =
+ java.util.Collections.emptyList();
+
+ private void ensureDocumentsIsMutable() {
+ if (!((bitField0_ & 0x00000001) != 0)) {
+ documents_ =
+ new java.util.ArrayList(documents_);
+ bitField0_ |= 0x00000001;
+ }
+ }
+
+ private com.google.protobuf.RepeatedFieldBuilderV3<
+ com.google.cloud.documentai.v1beta3.GcsDocument,
+ com.google.cloud.documentai.v1beta3.GcsDocument.Builder,
+ com.google.cloud.documentai.v1beta3.GcsDocumentOrBuilder>
+ documentsBuilder_;
+
+ /**
+ *
+ *
+ *
+ * The list of documents.
+ *
+ *
+ * repeated .google.cloud.documentai.v1beta3.GcsDocument documents = 1;
+ */
+ public java.util.List getDocumentsList() {
+ if (documentsBuilder_ == null) {
+ return java.util.Collections.unmodifiableList(documents_);
+ } else {
+ return documentsBuilder_.getMessageList();
+ }
+ }
+ /**
+ *
+ *
+ *
+ * The list of documents.
+ *
+ *
+ * repeated .google.cloud.documentai.v1beta3.GcsDocument documents = 1;
+ */
+ public int getDocumentsCount() {
+ if (documentsBuilder_ == null) {
+ return documents_.size();
+ } else {
+ return documentsBuilder_.getCount();
+ }
+ }
+ /**
+ *
+ *
+ *
+ * The list of documents.
+ *
+ *
+ * repeated .google.cloud.documentai.v1beta3.GcsDocument documents = 1;
+ */
+ public com.google.cloud.documentai.v1beta3.GcsDocument getDocuments(int index) {
+ if (documentsBuilder_ == null) {
+ return documents_.get(index);
+ } else {
+ return documentsBuilder_.getMessage(index);
+ }
+ }
+ /**
+ *
+ *
+ *
+ * The list of documents.
+ *
+ *
+ * repeated .google.cloud.documentai.v1beta3.GcsDocument documents = 1;
+ */
+ public Builder setDocuments(int index, com.google.cloud.documentai.v1beta3.GcsDocument value) {
+ if (documentsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureDocumentsIsMutable();
+ documents_.set(index, value);
+ onChanged();
+ } else {
+ documentsBuilder_.setMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The list of documents.
+ *
+ *
+ * repeated .google.cloud.documentai.v1beta3.GcsDocument documents = 1;
+ */
+ public Builder setDocuments(
+ int index, com.google.cloud.documentai.v1beta3.GcsDocument.Builder builderForValue) {
+ if (documentsBuilder_ == null) {
+ ensureDocumentsIsMutable();
+ documents_.set(index, builderForValue.build());
+ onChanged();
+ } else {
+ documentsBuilder_.setMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The list of documents.
+ *
+ *
+ * repeated .google.cloud.documentai.v1beta3.GcsDocument documents = 1;
+ */
+ public Builder addDocuments(com.google.cloud.documentai.v1beta3.GcsDocument value) {
+ if (documentsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureDocumentsIsMutable();
+ documents_.add(value);
+ onChanged();
+ } else {
+ documentsBuilder_.addMessage(value);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The list of documents.
+ *
+ *
+ * repeated .google.cloud.documentai.v1beta3.GcsDocument documents = 1;
+ */
+ public Builder addDocuments(int index, com.google.cloud.documentai.v1beta3.GcsDocument value) {
+ if (documentsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureDocumentsIsMutable();
+ documents_.add(index, value);
+ onChanged();
+ } else {
+ documentsBuilder_.addMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The list of documents.
+ *
+ *
+ * repeated .google.cloud.documentai.v1beta3.GcsDocument documents = 1;
+ */
+ public Builder addDocuments(
+ com.google.cloud.documentai.v1beta3.GcsDocument.Builder builderForValue) {
+ if (documentsBuilder_ == null) {
+ ensureDocumentsIsMutable();
+ documents_.add(builderForValue.build());
+ onChanged();
+ } else {
+ documentsBuilder_.addMessage(builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The list of documents.
+ *
+ *
+ * repeated .google.cloud.documentai.v1beta3.GcsDocument documents = 1;
+ */
+ public Builder addDocuments(
+ int index, com.google.cloud.documentai.v1beta3.GcsDocument.Builder builderForValue) {
+ if (documentsBuilder_ == null) {
+ ensureDocumentsIsMutable();
+ documents_.add(index, builderForValue.build());
+ onChanged();
+ } else {
+ documentsBuilder_.addMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The list of documents.
+ *
+ *
+ * repeated .google.cloud.documentai.v1beta3.GcsDocument documents = 1;
+ */
+ public Builder addAllDocuments(
+ java.lang.Iterable extends com.google.cloud.documentai.v1beta3.GcsDocument> values) {
+ if (documentsBuilder_ == null) {
+ ensureDocumentsIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(values, documents_);
+ onChanged();
+ } else {
+ documentsBuilder_.addAllMessages(values);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The list of documents.
+ *
+ *
+ * repeated .google.cloud.documentai.v1beta3.GcsDocument documents = 1;
+ */
+ public Builder clearDocuments() {
+ if (documentsBuilder_ == null) {
+ documents_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ } else {
+ documentsBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The list of documents.
+ *
+ *
+ * repeated .google.cloud.documentai.v1beta3.GcsDocument documents = 1;
+ */
+ public Builder removeDocuments(int index) {
+ if (documentsBuilder_ == null) {
+ ensureDocumentsIsMutable();
+ documents_.remove(index);
+ onChanged();
+ } else {
+ documentsBuilder_.remove(index);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The list of documents.
+ *
+ *
+ * repeated .google.cloud.documentai.v1beta3.GcsDocument documents = 1;
+ */
+ public com.google.cloud.documentai.v1beta3.GcsDocument.Builder getDocumentsBuilder(int index) {
+ return getDocumentsFieldBuilder().getBuilder(index);
+ }
+ /**
+ *
+ *
+ *
+ * The list of documents.
+ *
+ *
+ * repeated .google.cloud.documentai.v1beta3.GcsDocument documents = 1;
+ */
+ public com.google.cloud.documentai.v1beta3.GcsDocumentOrBuilder getDocumentsOrBuilder(
+ int index) {
+ if (documentsBuilder_ == null) {
+ return documents_.get(index);
+ } else {
+ return documentsBuilder_.getMessageOrBuilder(index);
+ }
+ }
+ /**
+ *
+ *
+ *
+ * The list of documents.
+ *
+ *
+ * repeated .google.cloud.documentai.v1beta3.GcsDocument documents = 1;
+ */
+ public java.util.List extends com.google.cloud.documentai.v1beta3.GcsDocumentOrBuilder>
+ getDocumentsOrBuilderList() {
+ if (documentsBuilder_ != null) {
+ return documentsBuilder_.getMessageOrBuilderList();
+ } else {
+ return java.util.Collections.unmodifiableList(documents_);
+ }
+ }
+ /**
+ *
+ *
+ *
+ * The list of documents.
+ *
+ *
+ * repeated .google.cloud.documentai.v1beta3.GcsDocument documents = 1;
+ */
+ public com.google.cloud.documentai.v1beta3.GcsDocument.Builder addDocumentsBuilder() {
+ return getDocumentsFieldBuilder()
+ .addBuilder(com.google.cloud.documentai.v1beta3.GcsDocument.getDefaultInstance());
+ }
+ /**
+ *
+ *
+ *
+ * The list of documents.
+ *
+ *
+ * repeated .google.cloud.documentai.v1beta3.GcsDocument documents = 1;
+ */
+ public com.google.cloud.documentai.v1beta3.GcsDocument.Builder addDocumentsBuilder(int index) {
+ return getDocumentsFieldBuilder()
+ .addBuilder(index, com.google.cloud.documentai.v1beta3.GcsDocument.getDefaultInstance());
+ }
+ /**
+ *
+ *
+ *
+ * The list of documents.
+ *
+ *
+ * repeated .google.cloud.documentai.v1beta3.GcsDocument documents = 1;
+ */
+ public java.util.List
+ getDocumentsBuilderList() {
+ return getDocumentsFieldBuilder().getBuilderList();
+ }
+
+ private com.google.protobuf.RepeatedFieldBuilderV3<
+ com.google.cloud.documentai.v1beta3.GcsDocument,
+ com.google.cloud.documentai.v1beta3.GcsDocument.Builder,
+ com.google.cloud.documentai.v1beta3.GcsDocumentOrBuilder>
+ getDocumentsFieldBuilder() {
+ if (documentsBuilder_ == null) {
+ documentsBuilder_ =
+ new com.google.protobuf.RepeatedFieldBuilderV3<
+ com.google.cloud.documentai.v1beta3.GcsDocument,
+ com.google.cloud.documentai.v1beta3.GcsDocument.Builder,
+ com.google.cloud.documentai.v1beta3.GcsDocumentOrBuilder>(
+ documents_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean());
+ documents_ = null;
+ }
+ return documentsBuilder_;
+ }
+
+ @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.GcsDocuments)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.documentai.v1beta3.GcsDocuments)
+ private static final com.google.cloud.documentai.v1beta3.GcsDocuments DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.cloud.documentai.v1beta3.GcsDocuments();
+ }
+
+ public static com.google.cloud.documentai.v1beta3.GcsDocuments getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser PARSER =
+ new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
+ public GcsDocuments parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return new GcsDocuments(input, extensionRegistry);
+ }
+ };
+
+ 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.GcsDocuments getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+}
diff --git a/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/GcsDocumentsOrBuilder.java b/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/GcsDocumentsOrBuilder.java
new file mode 100644
index 00000000..e198d396
--- /dev/null
+++ b/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/GcsDocumentsOrBuilder.java
@@ -0,0 +1,77 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: google/cloud/documentai/v1beta3/document_io.proto
+
+package com.google.cloud.documentai.v1beta3;
+
+public interface GcsDocumentsOrBuilder
+ extends
+ // @@protoc_insertion_point(interface_extends:google.cloud.documentai.v1beta3.GcsDocuments)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ *
+ *
+ *
+ * The list of documents.
+ *
+ *
+ * repeated .google.cloud.documentai.v1beta3.GcsDocument documents = 1;
+ */
+ java.util.List getDocumentsList();
+ /**
+ *
+ *
+ *
+ * The list of documents.
+ *
+ *
+ * repeated .google.cloud.documentai.v1beta3.GcsDocument documents = 1;
+ */
+ com.google.cloud.documentai.v1beta3.GcsDocument getDocuments(int index);
+ /**
+ *
+ *
+ *
+ * The list of documents.
+ *
+ *
+ * repeated .google.cloud.documentai.v1beta3.GcsDocument documents = 1;
+ */
+ int getDocumentsCount();
+ /**
+ *
+ *
+ *
+ * The list of documents.
+ *
+ *
+ * repeated .google.cloud.documentai.v1beta3.GcsDocument documents = 1;
+ */
+ java.util.List extends com.google.cloud.documentai.v1beta3.GcsDocumentOrBuilder>
+ getDocumentsOrBuilderList();
+ /**
+ *
+ *
+ *
+ * The list of documents.
+ *
+ *
+ * repeated .google.cloud.documentai.v1beta3.GcsDocument documents = 1;
+ */
+ com.google.cloud.documentai.v1beta3.GcsDocumentOrBuilder getDocumentsOrBuilder(int index);
+}
diff --git a/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/GcsPrefix.java b/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/GcsPrefix.java
new file mode 100644
index 00000000..9161e9fc
--- /dev/null
+++ b/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/GcsPrefix.java
@@ -0,0 +1,634 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the 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_io.proto
+
+package com.google.cloud.documentai.v1beta3;
+
+/**
+ *
+ *
+ *
+ * Specifies all documents on Cloud Storage with a common prefix.
+ *
+ *
+ * Protobuf type {@code google.cloud.documentai.v1beta3.GcsPrefix}
+ */
+public final class GcsPrefix extends com.google.protobuf.GeneratedMessageV3
+ implements
+ // @@protoc_insertion_point(message_implements:google.cloud.documentai.v1beta3.GcsPrefix)
+ GcsPrefixOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use GcsPrefix.newBuilder() to construct.
+ private GcsPrefix(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+
+ private GcsPrefix() {
+ gcsUriPrefix_ = "";
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+ return new GcsPrefix();
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+ return this.unknownFields;
+ }
+
+ private GcsPrefix(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10:
+ {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ gcsUriPrefix_ = s;
+ break;
+ }
+ default:
+ {
+ if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+ } finally {
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.cloud.documentai.v1beta3.DocumentIoProto
+ .internal_static_google_cloud_documentai_v1beta3_GcsPrefix_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.cloud.documentai.v1beta3.DocumentIoProto
+ .internal_static_google_cloud_documentai_v1beta3_GcsPrefix_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.cloud.documentai.v1beta3.GcsPrefix.class,
+ com.google.cloud.documentai.v1beta3.GcsPrefix.Builder.class);
+ }
+
+ public static final int GCS_URI_PREFIX_FIELD_NUMBER = 1;
+ private volatile java.lang.Object gcsUriPrefix_;
+ /**
+ *
+ *
+ *
+ * The URI prefix.
+ *
+ *
+ * string gcs_uri_prefix = 1;
+ *
+ * @return The gcsUriPrefix.
+ */
+ @java.lang.Override
+ public java.lang.String getGcsUriPrefix() {
+ java.lang.Object ref = gcsUriPrefix_;
+ 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();
+ gcsUriPrefix_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * The URI prefix.
+ *
+ *
+ * string gcs_uri_prefix = 1;
+ *
+ * @return The bytes for gcsUriPrefix.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getGcsUriPrefixBytes() {
+ java.lang.Object ref = gcsUriPrefix_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ gcsUriPrefix_ = 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 (!getGcsUriPrefixBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, gcsUriPrefix_);
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (!getGcsUriPrefixBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, gcsUriPrefix_);
+ }
+ size += unknownFields.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.GcsPrefix)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.documentai.v1beta3.GcsPrefix other =
+ (com.google.cloud.documentai.v1beta3.GcsPrefix) obj;
+
+ if (!getGcsUriPrefix().equals(other.getGcsUriPrefix())) return false;
+ if (!unknownFields.equals(other.unknownFields)) 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) + GCS_URI_PREFIX_FIELD_NUMBER;
+ hash = (53 * hash) + getGcsUriPrefix().hashCode();
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.documentai.v1beta3.GcsPrefix parseFrom(java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.documentai.v1beta3.GcsPrefix 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.GcsPrefix parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.documentai.v1beta3.GcsPrefix parseFrom(
+ com.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.GcsPrefix parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.documentai.v1beta3.GcsPrefix 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.GcsPrefix parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.documentai.v1beta3.GcsPrefix 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.GcsPrefix parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.documentai.v1beta3.GcsPrefix 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.GcsPrefix 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.GcsPrefix 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.GcsPrefix 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;
+ }
+ /**
+ *
+ *
+ *
+ * Specifies all documents on Cloud Storage with a common prefix.
+ *
+ *
+ * Protobuf type {@code google.cloud.documentai.v1beta3.GcsPrefix}
+ */
+ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ implements
+ // @@protoc_insertion_point(builder_implements:google.cloud.documentai.v1beta3.GcsPrefix)
+ com.google.cloud.documentai.v1beta3.GcsPrefixOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.cloud.documentai.v1beta3.DocumentIoProto
+ .internal_static_google_cloud_documentai_v1beta3_GcsPrefix_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.cloud.documentai.v1beta3.DocumentIoProto
+ .internal_static_google_cloud_documentai_v1beta3_GcsPrefix_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.cloud.documentai.v1beta3.GcsPrefix.class,
+ com.google.cloud.documentai.v1beta3.GcsPrefix.Builder.class);
+ }
+
+ // Construct using com.google.cloud.documentai.v1beta3.GcsPrefix.newBuilder()
+ private Builder() {
+ maybeForceBuilderInitialization();
+ }
+
+ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ super(parent);
+ maybeForceBuilderInitialization();
+ }
+
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+ }
+
+ @java.lang.Override
+ public Builder clear() {
+ super.clear();
+ gcsUriPrefix_ = "";
+
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+ return com.google.cloud.documentai.v1beta3.DocumentIoProto
+ .internal_static_google_cloud_documentai_v1beta3_GcsPrefix_descriptor;
+ }
+
+ @java.lang.Override
+ public com.google.cloud.documentai.v1beta3.GcsPrefix getDefaultInstanceForType() {
+ return com.google.cloud.documentai.v1beta3.GcsPrefix.getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public com.google.cloud.documentai.v1beta3.GcsPrefix build() {
+ com.google.cloud.documentai.v1beta3.GcsPrefix result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public com.google.cloud.documentai.v1beta3.GcsPrefix buildPartial() {
+ com.google.cloud.documentai.v1beta3.GcsPrefix result =
+ new com.google.cloud.documentai.v1beta3.GcsPrefix(this);
+ result.gcsUriPrefix_ = gcsUriPrefix_;
+ 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.GcsPrefix) {
+ return mergeFrom((com.google.cloud.documentai.v1beta3.GcsPrefix) other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(com.google.cloud.documentai.v1beta3.GcsPrefix other) {
+ if (other == com.google.cloud.documentai.v1beta3.GcsPrefix.getDefaultInstance()) return this;
+ if (!other.getGcsUriPrefix().isEmpty()) {
+ gcsUriPrefix_ = other.gcsUriPrefix_;
+ onChanged();
+ }
+ this.mergeUnknownFields(other.unknownFields);
+ 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 {
+ com.google.cloud.documentai.v1beta3.GcsPrefix parsedMessage = null;
+ try {
+ parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ parsedMessage = (com.google.cloud.documentai.v1beta3.GcsPrefix) e.getUnfinishedMessage();
+ throw e.unwrapIOException();
+ } finally {
+ if (parsedMessage != null) {
+ mergeFrom(parsedMessage);
+ }
+ }
+ return this;
+ }
+
+ private java.lang.Object gcsUriPrefix_ = "";
+ /**
+ *
+ *
+ *
+ * The URI prefix.
+ *
+ *
+ * string gcs_uri_prefix = 1;
+ *
+ * @return The gcsUriPrefix.
+ */
+ public java.lang.String getGcsUriPrefix() {
+ java.lang.Object ref = gcsUriPrefix_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ gcsUriPrefix_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * The URI prefix.
+ *
+ *
+ * string gcs_uri_prefix = 1;
+ *
+ * @return The bytes for gcsUriPrefix.
+ */
+ public com.google.protobuf.ByteString getGcsUriPrefixBytes() {
+ java.lang.Object ref = gcsUriPrefix_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ gcsUriPrefix_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * The URI prefix.
+ *
+ *
+ * string gcs_uri_prefix = 1;
+ *
+ * @param value The gcsUriPrefix to set.
+ * @return This builder for chaining.
+ */
+ public Builder setGcsUriPrefix(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ gcsUriPrefix_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The URI prefix.
+ *
+ *
+ * string gcs_uri_prefix = 1;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearGcsUriPrefix() {
+
+ gcsUriPrefix_ = getDefaultInstance().getGcsUriPrefix();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The URI prefix.
+ *
+ *
+ * string gcs_uri_prefix = 1;
+ *
+ * @param value The bytes for gcsUriPrefix to set.
+ * @return This builder for chaining.
+ */
+ public Builder setGcsUriPrefixBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ gcsUriPrefix_ = value;
+ 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.GcsPrefix)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.documentai.v1beta3.GcsPrefix)
+ private static final com.google.cloud.documentai.v1beta3.GcsPrefix DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.cloud.documentai.v1beta3.GcsPrefix();
+ }
+
+ public static com.google.cloud.documentai.v1beta3.GcsPrefix getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser PARSER =
+ new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
+ public GcsPrefix parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return new GcsPrefix(input, extensionRegistry);
+ }
+ };
+
+ 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.GcsPrefix getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+}
diff --git a/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/GcsPrefixOrBuilder.java b/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/GcsPrefixOrBuilder.java
new file mode 100644
index 00000000..04bdf004
--- /dev/null
+++ b/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/GcsPrefixOrBuilder.java
@@ -0,0 +1,50 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: google/cloud/documentai/v1beta3/document_io.proto
+
+package com.google.cloud.documentai.v1beta3;
+
+public interface GcsPrefixOrBuilder
+ extends
+ // @@protoc_insertion_point(interface_extends:google.cloud.documentai.v1beta3.GcsPrefix)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ *
+ *
+ *
+ * The URI prefix.
+ *
+ *
+ * string gcs_uri_prefix = 1;
+ *
+ * @return The gcsUriPrefix.
+ */
+ java.lang.String getGcsUriPrefix();
+ /**
+ *
+ *
+ *
+ * The URI prefix.
+ *
+ *
+ * string gcs_uri_prefix = 1;
+ *
+ * @return The bytes for gcsUriPrefix.
+ */
+ com.google.protobuf.ByteString getGcsUriPrefixBytes();
+}
diff --git a/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/HumanReviewStatus.java b/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/HumanReviewStatus.java
new file mode 100644
index 00000000..c65fa509
--- /dev/null
+++ b/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/HumanReviewStatus.java
@@ -0,0 +1,1204 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the 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_processor_service.proto
+
+package com.google.cloud.documentai.v1beta3;
+
+/**
+ *
+ *
+ *
+ * The status of human review on a processed document.
+ *
+ *
+ * Protobuf type {@code google.cloud.documentai.v1beta3.HumanReviewStatus}
+ */
+public final class HumanReviewStatus extends com.google.protobuf.GeneratedMessageV3
+ implements
+ // @@protoc_insertion_point(message_implements:google.cloud.documentai.v1beta3.HumanReviewStatus)
+ HumanReviewStatusOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use HumanReviewStatus.newBuilder() to construct.
+ private HumanReviewStatus(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+
+ private HumanReviewStatus() {
+ state_ = 0;
+ stateMessage_ = "";
+ humanReviewOperation_ = "";
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+ return new HumanReviewStatus();
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+ return this.unknownFields;
+ }
+
+ private HumanReviewStatus(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 8:
+ {
+ int rawValue = input.readEnum();
+
+ state_ = rawValue;
+ break;
+ }
+ case 18:
+ {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ stateMessage_ = s;
+ break;
+ }
+ case 26:
+ {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ humanReviewOperation_ = s;
+ break;
+ }
+ default:
+ {
+ if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+ } finally {
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.cloud.documentai.v1beta3.DocumentAiProcessorService
+ .internal_static_google_cloud_documentai_v1beta3_HumanReviewStatus_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.cloud.documentai.v1beta3.DocumentAiProcessorService
+ .internal_static_google_cloud_documentai_v1beta3_HumanReviewStatus_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.cloud.documentai.v1beta3.HumanReviewStatus.class,
+ com.google.cloud.documentai.v1beta3.HumanReviewStatus.Builder.class);
+ }
+
+ /**
+ *
+ *
+ *
+ * The final state of human review on a processed document.
+ *
+ *
+ * Protobuf enum {@code google.cloud.documentai.v1beta3.HumanReviewStatus.State}
+ */
+ public enum State implements com.google.protobuf.ProtocolMessageEnum {
+ /**
+ *
+ *
+ *
+ * Human review state is unspecified. Most likely due to an internal error.
+ *
+ *
+ * STATE_UNSPECIFIED = 0;
+ */
+ 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
+ * been set to skip this document.
+ *
+ *
+ * SKIPPED = 1;
+ */
+ SKIPPED(1),
+ /**
+ *
+ *
+ *
+ * Human review validation is triggered and passed, so no review is needed.
+ *
+ *
+ * VALIDATION_PASSED = 2;
+ */
+ VALIDATION_PASSED(2),
+ /**
+ *
+ *
+ *
+ * Human review validation is triggered and the document is under review.
+ *
+ *
+ * IN_PROGRESS = 3;
+ */
+ IN_PROGRESS(3),
+ /**
+ *
+ *
+ *
+ * Some error happened during triggering human review, see the
+ * [state_message] for details.
+ *
+ *
+ * ERROR = 4;
+ */
+ ERROR(4),
+ UNRECOGNIZED(-1),
+ ;
+
+ /**
+ *
+ *
+ *
+ * Human review state is unspecified. Most likely due to an internal error.
+ *
+ *
+ * STATE_UNSPECIFIED = 0;
+ */
+ public static final int STATE_UNSPECIFIED_VALUE = 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
+ * been set to skip this document.
+ *
+ *
+ * SKIPPED = 1;
+ */
+ public static final int SKIPPED_VALUE = 1;
+ /**
+ *
+ *
+ *
+ * Human review validation is triggered and passed, so no review is needed.
+ *
+ *
+ * VALIDATION_PASSED = 2;
+ */
+ public static final int VALIDATION_PASSED_VALUE = 2;
+ /**
+ *
+ *
+ *
+ * Human review validation is triggered and the document is under review.
+ *
+ *
+ * IN_PROGRESS = 3;
+ */
+ public static final int IN_PROGRESS_VALUE = 3;
+ /**
+ *
+ *
+ *
+ * Some error happened during triggering human review, see the
+ * [state_message] for details.
+ *
+ *
+ * ERROR = 4;
+ */
+ public static final int ERROR_VALUE = 4;
+
+ 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 SKIPPED;
+ case 2:
+ return VALIDATION_PASSED;
+ case 3:
+ return IN_PROGRESS;
+ case 4:
+ return ERROR;
+ 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.HumanReviewStatus.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.HumanReviewStatus.State)
+ }
+
+ public static final int STATE_FIELD_NUMBER = 1;
+ private int state_;
+ /**
+ *
+ *
+ *
+ * The state of human review on the processing request.
+ *
+ *
+ * .google.cloud.documentai.v1beta3.HumanReviewStatus.State state = 1;
+ *
+ * @return The enum numeric value on the wire for state.
+ */
+ @java.lang.Override
+ public int getStateValue() {
+ return state_;
+ }
+ /**
+ *
+ *
+ *
+ * The state of human review on the processing request.
+ *
+ *
+ * .google.cloud.documentai.v1beta3.HumanReviewStatus.State state = 1;
+ *
+ * @return The state.
+ */
+ @java.lang.Override
+ public com.google.cloud.documentai.v1beta3.HumanReviewStatus.State getState() {
+ @SuppressWarnings("deprecation")
+ com.google.cloud.documentai.v1beta3.HumanReviewStatus.State result =
+ com.google.cloud.documentai.v1beta3.HumanReviewStatus.State.valueOf(state_);
+ return result == null
+ ? com.google.cloud.documentai.v1beta3.HumanReviewStatus.State.UNRECOGNIZED
+ : result;
+ }
+
+ public static final int STATE_MESSAGE_FIELD_NUMBER = 2;
+ private volatile java.lang.Object stateMessage_;
+ /**
+ *
+ *
+ *
+ * A message providing more details about the human review state.
+ *
+ *
+ * string state_message = 2;
+ *
+ * @return The stateMessage.
+ */
+ @java.lang.Override
+ public java.lang.String getStateMessage() {
+ java.lang.Object ref = stateMessage_;
+ 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();
+ stateMessage_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * A message providing more details about the human review state.
+ *
+ *
+ * string state_message = 2;
+ *
+ * @return The bytes for stateMessage.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getStateMessageBytes() {
+ java.lang.Object ref = stateMessage_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ stateMessage_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int HUMAN_REVIEW_OPERATION_FIELD_NUMBER = 3;
+ private volatile java.lang.Object humanReviewOperation_;
+ /**
+ *
+ *
+ *
+ * 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.
+ *
+ *
+ * string human_review_operation = 3;
+ *
+ * @return The humanReviewOperation.
+ */
+ @java.lang.Override
+ public java.lang.String getHumanReviewOperation() {
+ java.lang.Object ref = humanReviewOperation_;
+ 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();
+ humanReviewOperation_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * 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.
+ *
+ *
+ * string human_review_operation = 3;
+ *
+ * @return The bytes for humanReviewOperation.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getHumanReviewOperationBytes() {
+ java.lang.Object ref = humanReviewOperation_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ humanReviewOperation_ = 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 (state_
+ != com.google.cloud.documentai.v1beta3.HumanReviewStatus.State.STATE_UNSPECIFIED
+ .getNumber()) {
+ output.writeEnum(1, state_);
+ }
+ if (!getStateMessageBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 2, stateMessage_);
+ }
+ if (!getHumanReviewOperationBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 3, humanReviewOperation_);
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (state_
+ != com.google.cloud.documentai.v1beta3.HumanReviewStatus.State.STATE_UNSPECIFIED
+ .getNumber()) {
+ size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, state_);
+ }
+ if (!getStateMessageBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, stateMessage_);
+ }
+ if (!getHumanReviewOperationBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, humanReviewOperation_);
+ }
+ size += unknownFields.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.HumanReviewStatus)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.documentai.v1beta3.HumanReviewStatus other =
+ (com.google.cloud.documentai.v1beta3.HumanReviewStatus) obj;
+
+ if (state_ != other.state_) return false;
+ if (!getStateMessage().equals(other.getStateMessage())) return false;
+ if (!getHumanReviewOperation().equals(other.getHumanReviewOperation())) return false;
+ if (!unknownFields.equals(other.unknownFields)) 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) + STATE_FIELD_NUMBER;
+ hash = (53 * hash) + state_;
+ hash = (37 * hash) + STATE_MESSAGE_FIELD_NUMBER;
+ hash = (53 * hash) + getStateMessage().hashCode();
+ hash = (37 * hash) + HUMAN_REVIEW_OPERATION_FIELD_NUMBER;
+ hash = (53 * hash) + getHumanReviewOperation().hashCode();
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.documentai.v1beta3.HumanReviewStatus parseFrom(
+ java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.documentai.v1beta3.HumanReviewStatus 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.HumanReviewStatus parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.documentai.v1beta3.HumanReviewStatus parseFrom(
+ com.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.HumanReviewStatus parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.documentai.v1beta3.HumanReviewStatus 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.HumanReviewStatus parseFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.documentai.v1beta3.HumanReviewStatus 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.HumanReviewStatus parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.documentai.v1beta3.HumanReviewStatus 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.HumanReviewStatus 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.HumanReviewStatus 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.HumanReviewStatus 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;
+ }
+ /**
+ *
+ *
+ *
+ * The status of human review on a processed document.
+ *
+ *
+ * Protobuf type {@code google.cloud.documentai.v1beta3.HumanReviewStatus}
+ */
+ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ implements
+ // @@protoc_insertion_point(builder_implements:google.cloud.documentai.v1beta3.HumanReviewStatus)
+ com.google.cloud.documentai.v1beta3.HumanReviewStatusOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.cloud.documentai.v1beta3.DocumentAiProcessorService
+ .internal_static_google_cloud_documentai_v1beta3_HumanReviewStatus_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.cloud.documentai.v1beta3.DocumentAiProcessorService
+ .internal_static_google_cloud_documentai_v1beta3_HumanReviewStatus_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.cloud.documentai.v1beta3.HumanReviewStatus.class,
+ com.google.cloud.documentai.v1beta3.HumanReviewStatus.Builder.class);
+ }
+
+ // Construct using com.google.cloud.documentai.v1beta3.HumanReviewStatus.newBuilder()
+ private Builder() {
+ maybeForceBuilderInitialization();
+ }
+
+ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ super(parent);
+ maybeForceBuilderInitialization();
+ }
+
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+ }
+
+ @java.lang.Override
+ public Builder clear() {
+ super.clear();
+ state_ = 0;
+
+ stateMessage_ = "";
+
+ humanReviewOperation_ = "";
+
+ 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_HumanReviewStatus_descriptor;
+ }
+
+ @java.lang.Override
+ public com.google.cloud.documentai.v1beta3.HumanReviewStatus getDefaultInstanceForType() {
+ return com.google.cloud.documentai.v1beta3.HumanReviewStatus.getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public com.google.cloud.documentai.v1beta3.HumanReviewStatus build() {
+ com.google.cloud.documentai.v1beta3.HumanReviewStatus result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public com.google.cloud.documentai.v1beta3.HumanReviewStatus buildPartial() {
+ com.google.cloud.documentai.v1beta3.HumanReviewStatus result =
+ new com.google.cloud.documentai.v1beta3.HumanReviewStatus(this);
+ result.state_ = state_;
+ result.stateMessage_ = stateMessage_;
+ result.humanReviewOperation_ = humanReviewOperation_;
+ 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.HumanReviewStatus) {
+ return mergeFrom((com.google.cloud.documentai.v1beta3.HumanReviewStatus) other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(com.google.cloud.documentai.v1beta3.HumanReviewStatus other) {
+ if (other == com.google.cloud.documentai.v1beta3.HumanReviewStatus.getDefaultInstance())
+ return this;
+ if (other.state_ != 0) {
+ setStateValue(other.getStateValue());
+ }
+ if (!other.getStateMessage().isEmpty()) {
+ stateMessage_ = other.stateMessage_;
+ onChanged();
+ }
+ if (!other.getHumanReviewOperation().isEmpty()) {
+ humanReviewOperation_ = other.humanReviewOperation_;
+ onChanged();
+ }
+ this.mergeUnknownFields(other.unknownFields);
+ 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 {
+ com.google.cloud.documentai.v1beta3.HumanReviewStatus parsedMessage = null;
+ try {
+ parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ parsedMessage =
+ (com.google.cloud.documentai.v1beta3.HumanReviewStatus) e.getUnfinishedMessage();
+ throw e.unwrapIOException();
+ } finally {
+ if (parsedMessage != null) {
+ mergeFrom(parsedMessage);
+ }
+ }
+ return this;
+ }
+
+ private int state_ = 0;
+ /**
+ *
+ *
+ *
+ * The state of human review on the processing request.
+ *
+ *
+ * .google.cloud.documentai.v1beta3.HumanReviewStatus.State state = 1;
+ *
+ * @return The enum numeric value on the wire for state.
+ */
+ @java.lang.Override
+ public int getStateValue() {
+ return state_;
+ }
+ /**
+ *
+ *
+ *
+ * The state of human review on the processing request.
+ *
+ *
+ * .google.cloud.documentai.v1beta3.HumanReviewStatus.State state = 1;
+ *
+ * @param value The enum numeric value on the wire for state to set.
+ * @return This builder for chaining.
+ */
+ public Builder setStateValue(int value) {
+
+ state_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The state of human review on the processing request.
+ *
+ *
+ * .google.cloud.documentai.v1beta3.HumanReviewStatus.State state = 1;
+ *
+ * @return The state.
+ */
+ @java.lang.Override
+ public com.google.cloud.documentai.v1beta3.HumanReviewStatus.State getState() {
+ @SuppressWarnings("deprecation")
+ com.google.cloud.documentai.v1beta3.HumanReviewStatus.State result =
+ com.google.cloud.documentai.v1beta3.HumanReviewStatus.State.valueOf(state_);
+ return result == null
+ ? com.google.cloud.documentai.v1beta3.HumanReviewStatus.State.UNRECOGNIZED
+ : result;
+ }
+ /**
+ *
+ *
+ *
+ * The state of human review on the processing request.
+ *
+ *
+ * .google.cloud.documentai.v1beta3.HumanReviewStatus.State state = 1;
+ *
+ * @param value The state to set.
+ * @return This builder for chaining.
+ */
+ public Builder setState(com.google.cloud.documentai.v1beta3.HumanReviewStatus.State value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ state_ = value.getNumber();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The state of human review on the processing request.
+ *
+ *
+ * .google.cloud.documentai.v1beta3.HumanReviewStatus.State state = 1;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearState() {
+
+ state_ = 0;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object stateMessage_ = "";
+ /**
+ *
+ *
+ *
+ * A message providing more details about the human review state.
+ *
+ *
+ * string state_message = 2;
+ *
+ * @return The stateMessage.
+ */
+ public java.lang.String getStateMessage() {
+ java.lang.Object ref = stateMessage_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ stateMessage_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * A message providing more details about the human review state.
+ *
+ *
+ * string state_message = 2;
+ *
+ * @return The bytes for stateMessage.
+ */
+ public com.google.protobuf.ByteString getStateMessageBytes() {
+ java.lang.Object ref = stateMessage_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ stateMessage_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * A message providing more details about the human review state.
+ *
+ *
+ * string state_message = 2;
+ *
+ * @param value The stateMessage to set.
+ * @return This builder for chaining.
+ */
+ public Builder setStateMessage(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ stateMessage_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * A message providing more details about the human review state.
+ *
+ *
+ * string state_message = 2;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearStateMessage() {
+
+ stateMessage_ = getDefaultInstance().getStateMessage();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * A message providing more details about the human review state.
+ *
+ *
+ * string state_message = 2;
+ *
+ * @param value The bytes for stateMessage to set.
+ * @return This builder for chaining.
+ */
+ public Builder setStateMessageBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ stateMessage_ = value;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object humanReviewOperation_ = "";
+ /**
+ *
+ *
+ *
+ * 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.
+ *
+ *
+ * string human_review_operation = 3;
+ *
+ * @return The humanReviewOperation.
+ */
+ public java.lang.String getHumanReviewOperation() {
+ java.lang.Object ref = humanReviewOperation_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ humanReviewOperation_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * 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.
+ *
+ *
+ * string human_review_operation = 3;
+ *
+ * @return The bytes for humanReviewOperation.
+ */
+ public com.google.protobuf.ByteString getHumanReviewOperationBytes() {
+ java.lang.Object ref = humanReviewOperation_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ humanReviewOperation_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * 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.
+ *
+ *
+ * string human_review_operation = 3;
+ *
+ * @param value The humanReviewOperation to set.
+ * @return This builder for chaining.
+ */
+ public Builder setHumanReviewOperation(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ humanReviewOperation_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * 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.
+ *
+ *
+ * string human_review_operation = 3;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearHumanReviewOperation() {
+
+ humanReviewOperation_ = getDefaultInstance().getHumanReviewOperation();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * 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.
+ *
+ *
+ * string human_review_operation = 3;
+ *
+ * @param value The bytes for humanReviewOperation to set.
+ * @return This builder for chaining.
+ */
+ public Builder setHumanReviewOperationBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ humanReviewOperation_ = value;
+ 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.HumanReviewStatus)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.documentai.v1beta3.HumanReviewStatus)
+ private static final com.google.cloud.documentai.v1beta3.HumanReviewStatus DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.cloud.documentai.v1beta3.HumanReviewStatus();
+ }
+
+ public static com.google.cloud.documentai.v1beta3.HumanReviewStatus getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser PARSER =
+ new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
+ public HumanReviewStatus parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return new HumanReviewStatus(input, extensionRegistry);
+ }
+ };
+
+ 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.HumanReviewStatus getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+}
diff --git a/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/HumanReviewStatusOrBuilder.java b/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/HumanReviewStatusOrBuilder.java
new file mode 100644
index 00000000..96edaf8b
--- /dev/null
+++ b/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/HumanReviewStatusOrBuilder.java
@@ -0,0 +1,106 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: google/cloud/documentai/v1beta3/document_processor_service.proto
+
+package com.google.cloud.documentai.v1beta3;
+
+public interface HumanReviewStatusOrBuilder
+ extends
+ // @@protoc_insertion_point(interface_extends:google.cloud.documentai.v1beta3.HumanReviewStatus)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ *
+ *
+ *
+ * The state of human review on the processing request.
+ *
+ *
+ * .google.cloud.documentai.v1beta3.HumanReviewStatus.State state = 1;
+ *
+ * @return The enum numeric value on the wire for state.
+ */
+ int getStateValue();
+ /**
+ *
+ *
+ *
+ * The state of human review on the processing request.
+ *
+ *
+ * .google.cloud.documentai.v1beta3.HumanReviewStatus.State state = 1;
+ *
+ * @return The state.
+ */
+ com.google.cloud.documentai.v1beta3.HumanReviewStatus.State getState();
+
+ /**
+ *
+ *
+ *
+ * A message providing more details about the human review state.
+ *
+ *
+ * string state_message = 2;
+ *
+ * @return The stateMessage.
+ */
+ java.lang.String getStateMessage();
+ /**
+ *
+ *
+ *
+ * A message providing more details about the human review state.
+ *
+ *
+ * string state_message = 2;
+ *
+ * @return The bytes for stateMessage.
+ */
+ 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.
+ *
+ *
+ * string human_review_operation = 3;
+ *
+ * @return The humanReviewOperation.
+ */
+ 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.
+ *
+ *
+ * string human_review_operation = 3;
+ *
+ * @return The bytes for humanReviewOperation.
+ */
+ com.google.protobuf.ByteString getHumanReviewOperationBytes();
+}
diff --git a/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/ProcessRequest.java b/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/ProcessRequest.java
index 205bfef3..9fdcc218 100644
--- a/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/ProcessRequest.java
+++ b/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/ProcessRequest.java
@@ -98,6 +98,39 @@ private ProcessRequest(
skipHumanReview_ = input.readBool();
break;
}
+ case 34:
+ {
+ com.google.cloud.documentai.v1beta3.Document.Builder subBuilder = null;
+ if (sourceCase_ == 4) {
+ subBuilder = ((com.google.cloud.documentai.v1beta3.Document) source_).toBuilder();
+ }
+ source_ =
+ input.readMessage(
+ com.google.cloud.documentai.v1beta3.Document.parser(), extensionRegistry);
+ if (subBuilder != null) {
+ subBuilder.mergeFrom((com.google.cloud.documentai.v1beta3.Document) source_);
+ source_ = subBuilder.buildPartial();
+ }
+ sourceCase_ = 4;
+ break;
+ }
+ case 42:
+ {
+ com.google.cloud.documentai.v1beta3.RawDocument.Builder subBuilder = null;
+ if (sourceCase_ == 5) {
+ subBuilder =
+ ((com.google.cloud.documentai.v1beta3.RawDocument) source_).toBuilder();
+ }
+ source_ =
+ input.readMessage(
+ com.google.cloud.documentai.v1beta3.RawDocument.parser(), extensionRegistry);
+ if (subBuilder != null) {
+ subBuilder.mergeFrom((com.google.cloud.documentai.v1beta3.RawDocument) source_);
+ source_ = subBuilder.buildPartial();
+ }
+ sourceCase_ = 5;
+ break;
+ }
default:
{
if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
@@ -132,6 +165,155 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
com.google.cloud.documentai.v1beta3.ProcessRequest.Builder.class);
}
+ private int sourceCase_ = 0;
+ private java.lang.Object source_;
+
+ public enum SourceCase
+ implements
+ com.google.protobuf.Internal.EnumLite,
+ com.google.protobuf.AbstractMessage.InternalOneOfEnum {
+ INLINE_DOCUMENT(4),
+ RAW_DOCUMENT(5),
+ SOURCE_NOT_SET(0);
+ private final int value;
+
+ private SourceCase(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 SourceCase valueOf(int value) {
+ return forNumber(value);
+ }
+
+ public static SourceCase forNumber(int value) {
+ switch (value) {
+ case 4:
+ return INLINE_DOCUMENT;
+ case 5:
+ return RAW_DOCUMENT;
+ case 0:
+ return SOURCE_NOT_SET;
+ default:
+ return null;
+ }
+ }
+
+ public int getNumber() {
+ return this.value;
+ }
+ };
+
+ public SourceCase getSourceCase() {
+ return SourceCase.forNumber(sourceCase_);
+ }
+
+ public static final int INLINE_DOCUMENT_FIELD_NUMBER = 4;
+ /**
+ *
+ *
+ *
+ * An inline document proto.
+ *
+ *
+ * .google.cloud.documentai.v1beta3.Document inline_document = 4;
+ *
+ * @return Whether the inlineDocument field is set.
+ */
+ @java.lang.Override
+ public boolean hasInlineDocument() {
+ return sourceCase_ == 4;
+ }
+ /**
+ *
+ *
+ *
+ * An inline document proto.
+ *
+ *
+ * .google.cloud.documentai.v1beta3.Document inline_document = 4;
+ *
+ * @return The inlineDocument.
+ */
+ @java.lang.Override
+ public com.google.cloud.documentai.v1beta3.Document getInlineDocument() {
+ if (sourceCase_ == 4) {
+ return (com.google.cloud.documentai.v1beta3.Document) source_;
+ }
+ return com.google.cloud.documentai.v1beta3.Document.getDefaultInstance();
+ }
+ /**
+ *
+ *
+ *
+ * An inline document proto.
+ *
+ *
+ * .google.cloud.documentai.v1beta3.Document inline_document = 4;
+ */
+ @java.lang.Override
+ public com.google.cloud.documentai.v1beta3.DocumentOrBuilder getInlineDocumentOrBuilder() {
+ if (sourceCase_ == 4) {
+ return (com.google.cloud.documentai.v1beta3.Document) source_;
+ }
+ return com.google.cloud.documentai.v1beta3.Document.getDefaultInstance();
+ }
+
+ public static final int RAW_DOCUMENT_FIELD_NUMBER = 5;
+ /**
+ *
+ *
+ *
+ * A raw document content (bytes).
+ *
+ *
+ * .google.cloud.documentai.v1beta3.RawDocument raw_document = 5;
+ *
+ * @return Whether the rawDocument field is set.
+ */
+ @java.lang.Override
+ public boolean hasRawDocument() {
+ return sourceCase_ == 5;
+ }
+ /**
+ *
+ *
+ *
+ * A raw document content (bytes).
+ *
+ *
+ * .google.cloud.documentai.v1beta3.RawDocument raw_document = 5;
+ *
+ * @return The rawDocument.
+ */
+ @java.lang.Override
+ public com.google.cloud.documentai.v1beta3.RawDocument getRawDocument() {
+ if (sourceCase_ == 5) {
+ return (com.google.cloud.documentai.v1beta3.RawDocument) source_;
+ }
+ return com.google.cloud.documentai.v1beta3.RawDocument.getDefaultInstance();
+ }
+ /**
+ *
+ *
+ *
+ * A raw document content (bytes).
+ *
+ *
+ * .google.cloud.documentai.v1beta3.RawDocument raw_document = 5;
+ */
+ @java.lang.Override
+ public com.google.cloud.documentai.v1beta3.RawDocumentOrBuilder getRawDocumentOrBuilder() {
+ if (sourceCase_ == 5) {
+ return (com.google.cloud.documentai.v1beta3.RawDocument) source_;
+ }
+ return com.google.cloud.documentai.v1beta3.RawDocument.getDefaultInstance();
+ }
+
public static final int NAME_FIELD_NUMBER = 1;
private volatile java.lang.Object name_;
/**
@@ -194,11 +376,12 @@ public com.google.protobuf.ByteString getNameBytes() {
* The document payload, the [content] and [mime_type] fields must be set.
*
*
- * .google.cloud.documentai.v1beta3.Document document = 2;
+ * .google.cloud.documentai.v1beta3.Document document = 2 [deprecated = true];
*
* @return Whether the document field is set.
*/
@java.lang.Override
+ @java.lang.Deprecated
public boolean hasDocument() {
return document_ != null;
}
@@ -209,11 +392,12 @@ public boolean hasDocument() {
* The document payload, the [content] and [mime_type] fields must be set.
*
*
- * .google.cloud.documentai.v1beta3.Document document = 2;
+ * .google.cloud.documentai.v1beta3.Document document = 2 [deprecated = true];
*
* @return The document.
*/
@java.lang.Override
+ @java.lang.Deprecated
public com.google.cloud.documentai.v1beta3.Document getDocument() {
return document_ == null
? com.google.cloud.documentai.v1beta3.Document.getDefaultInstance()
@@ -226,9 +410,10 @@ public com.google.cloud.documentai.v1beta3.Document getDocument() {
* The document payload, the [content] and [mime_type] fields must be set.
*
*
- * .google.cloud.documentai.v1beta3.Document document = 2;
+ * .google.cloud.documentai.v1beta3.Document document = 2 [deprecated = true];
*/
@java.lang.Override
+ @java.lang.Deprecated
public com.google.cloud.documentai.v1beta3.DocumentOrBuilder getDocumentOrBuilder() {
return getDocument();
}
@@ -275,6 +460,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
if (skipHumanReview_ != false) {
output.writeBool(3, skipHumanReview_);
}
+ if (sourceCase_ == 4) {
+ output.writeMessage(4, (com.google.cloud.documentai.v1beta3.Document) source_);
+ }
+ if (sourceCase_ == 5) {
+ output.writeMessage(5, (com.google.cloud.documentai.v1beta3.RawDocument) source_);
+ }
unknownFields.writeTo(output);
}
@@ -293,6 +484,16 @@ public int getSerializedSize() {
if (skipHumanReview_ != false) {
size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, skipHumanReview_);
}
+ if (sourceCase_ == 4) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeMessageSize(
+ 4, (com.google.cloud.documentai.v1beta3.Document) source_);
+ }
+ if (sourceCase_ == 5) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeMessageSize(
+ 5, (com.google.cloud.documentai.v1beta3.RawDocument) source_);
+ }
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
@@ -315,6 +516,17 @@ public boolean equals(final java.lang.Object obj) {
if (!getDocument().equals(other.getDocument())) return false;
}
if (getSkipHumanReview() != other.getSkipHumanReview()) return false;
+ if (!getSourceCase().equals(other.getSourceCase())) return false;
+ switch (sourceCase_) {
+ case 4:
+ if (!getInlineDocument().equals(other.getInlineDocument())) return false;
+ break;
+ case 5:
+ if (!getRawDocument().equals(other.getRawDocument())) return false;
+ break;
+ case 0:
+ default:
+ }
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@@ -334,6 +546,18 @@ public int hashCode() {
}
hash = (37 * hash) + SKIP_HUMAN_REVIEW_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getSkipHumanReview());
+ switch (sourceCase_) {
+ case 4:
+ hash = (37 * hash) + INLINE_DOCUMENT_FIELD_NUMBER;
+ hash = (53 * hash) + getInlineDocument().hashCode();
+ break;
+ case 5:
+ hash = (37 * hash) + RAW_DOCUMENT_FIELD_NUMBER;
+ hash = (53 * hash) + getRawDocument().hashCode();
+ break;
+ case 0:
+ default:
+ }
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
@@ -489,6 +713,8 @@ public Builder clear() {
}
skipHumanReview_ = false;
+ sourceCase_ = 0;
+ source_ = null;
return this;
}
@@ -516,6 +742,20 @@ public com.google.cloud.documentai.v1beta3.ProcessRequest build() {
public com.google.cloud.documentai.v1beta3.ProcessRequest buildPartial() {
com.google.cloud.documentai.v1beta3.ProcessRequest result =
new com.google.cloud.documentai.v1beta3.ProcessRequest(this);
+ if (sourceCase_ == 4) {
+ if (inlineDocumentBuilder_ == null) {
+ result.source_ = source_;
+ } else {
+ result.source_ = inlineDocumentBuilder_.build();
+ }
+ }
+ if (sourceCase_ == 5) {
+ if (rawDocumentBuilder_ == null) {
+ result.source_ = source_;
+ } else {
+ result.source_ = rawDocumentBuilder_.build();
+ }
+ }
result.name_ = name_;
if (documentBuilder_ == null) {
result.document_ = document_;
@@ -523,6 +763,7 @@ public com.google.cloud.documentai.v1beta3.ProcessRequest buildPartial() {
result.document_ = documentBuilder_.build();
}
result.skipHumanReview_ = skipHumanReview_;
+ result.sourceCase_ = sourceCase_;
onBuilt();
return result;
}
@@ -583,6 +824,22 @@ public Builder mergeFrom(com.google.cloud.documentai.v1beta3.ProcessRequest othe
if (other.getSkipHumanReview() != false) {
setSkipHumanReview(other.getSkipHumanReview());
}
+ switch (other.getSourceCase()) {
+ case INLINE_DOCUMENT:
+ {
+ mergeInlineDocument(other.getInlineDocument());
+ break;
+ }
+ case RAW_DOCUMENT:
+ {
+ mergeRawDocument(other.getRawDocument());
+ break;
+ }
+ case SOURCE_NOT_SET:
+ {
+ break;
+ }
+ }
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
@@ -613,6 +870,438 @@ public Builder mergeFrom(
return this;
}
+ private int sourceCase_ = 0;
+ private java.lang.Object source_;
+
+ public SourceCase getSourceCase() {
+ return SourceCase.forNumber(sourceCase_);
+ }
+
+ public Builder clearSource() {
+ sourceCase_ = 0;
+ source_ = null;
+ onChanged();
+ return this;
+ }
+
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.documentai.v1beta3.Document,
+ com.google.cloud.documentai.v1beta3.Document.Builder,
+ com.google.cloud.documentai.v1beta3.DocumentOrBuilder>
+ inlineDocumentBuilder_;
+ /**
+ *
+ *
+ *
+ * An inline document proto.
+ *
+ *
+ * .google.cloud.documentai.v1beta3.Document inline_document = 4;
+ *
+ * @return Whether the inlineDocument field is set.
+ */
+ @java.lang.Override
+ public boolean hasInlineDocument() {
+ return sourceCase_ == 4;
+ }
+ /**
+ *
+ *
+ *
+ * An inline document proto.
+ *
+ *
+ * .google.cloud.documentai.v1beta3.Document inline_document = 4;
+ *
+ * @return The inlineDocument.
+ */
+ @java.lang.Override
+ public com.google.cloud.documentai.v1beta3.Document getInlineDocument() {
+ if (inlineDocumentBuilder_ == null) {
+ if (sourceCase_ == 4) {
+ return (com.google.cloud.documentai.v1beta3.Document) source_;
+ }
+ return com.google.cloud.documentai.v1beta3.Document.getDefaultInstance();
+ } else {
+ if (sourceCase_ == 4) {
+ return inlineDocumentBuilder_.getMessage();
+ }
+ return com.google.cloud.documentai.v1beta3.Document.getDefaultInstance();
+ }
+ }
+ /**
+ *
+ *
+ *
+ * An inline document proto.
+ *
+ *
+ * .google.cloud.documentai.v1beta3.Document inline_document = 4;
+ */
+ public Builder setInlineDocument(com.google.cloud.documentai.v1beta3.Document value) {
+ if (inlineDocumentBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ source_ = value;
+ onChanged();
+ } else {
+ inlineDocumentBuilder_.setMessage(value);
+ }
+ sourceCase_ = 4;
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * An inline document proto.
+ *
+ *
+ * .google.cloud.documentai.v1beta3.Document inline_document = 4;
+ */
+ public Builder setInlineDocument(
+ com.google.cloud.documentai.v1beta3.Document.Builder builderForValue) {
+ if (inlineDocumentBuilder_ == null) {
+ source_ = builderForValue.build();
+ onChanged();
+ } else {
+ inlineDocumentBuilder_.setMessage(builderForValue.build());
+ }
+ sourceCase_ = 4;
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * An inline document proto.
+ *
+ *
+ * .google.cloud.documentai.v1beta3.Document inline_document = 4;
+ */
+ public Builder mergeInlineDocument(com.google.cloud.documentai.v1beta3.Document value) {
+ if (inlineDocumentBuilder_ == null) {
+ if (sourceCase_ == 4
+ && source_ != com.google.cloud.documentai.v1beta3.Document.getDefaultInstance()) {
+ source_ =
+ com.google.cloud.documentai.v1beta3.Document.newBuilder(
+ (com.google.cloud.documentai.v1beta3.Document) source_)
+ .mergeFrom(value)
+ .buildPartial();
+ } else {
+ source_ = value;
+ }
+ onChanged();
+ } else {
+ if (sourceCase_ == 4) {
+ inlineDocumentBuilder_.mergeFrom(value);
+ }
+ inlineDocumentBuilder_.setMessage(value);
+ }
+ sourceCase_ = 4;
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * An inline document proto.
+ *
+ *
+ * .google.cloud.documentai.v1beta3.Document inline_document = 4;
+ */
+ public Builder clearInlineDocument() {
+ if (inlineDocumentBuilder_ == null) {
+ if (sourceCase_ == 4) {
+ sourceCase_ = 0;
+ source_ = null;
+ onChanged();
+ }
+ } else {
+ if (sourceCase_ == 4) {
+ sourceCase_ = 0;
+ source_ = null;
+ }
+ inlineDocumentBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * An inline document proto.
+ *
+ *
+ * .google.cloud.documentai.v1beta3.Document inline_document = 4;
+ */
+ public com.google.cloud.documentai.v1beta3.Document.Builder getInlineDocumentBuilder() {
+ return getInlineDocumentFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ *
+ * An inline document proto.
+ *
+ *
+ * .google.cloud.documentai.v1beta3.Document inline_document = 4;
+ */
+ @java.lang.Override
+ public com.google.cloud.documentai.v1beta3.DocumentOrBuilder getInlineDocumentOrBuilder() {
+ if ((sourceCase_ == 4) && (inlineDocumentBuilder_ != null)) {
+ return inlineDocumentBuilder_.getMessageOrBuilder();
+ } else {
+ if (sourceCase_ == 4) {
+ return (com.google.cloud.documentai.v1beta3.Document) source_;
+ }
+ return com.google.cloud.documentai.v1beta3.Document.getDefaultInstance();
+ }
+ }
+ /**
+ *
+ *
+ *
+ * An inline document proto.
+ *
+ *
+ * .google.cloud.documentai.v1beta3.Document inline_document = 4;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.documentai.v1beta3.Document,
+ com.google.cloud.documentai.v1beta3.Document.Builder,
+ com.google.cloud.documentai.v1beta3.DocumentOrBuilder>
+ getInlineDocumentFieldBuilder() {
+ if (inlineDocumentBuilder_ == null) {
+ if (!(sourceCase_ == 4)) {
+ source_ = com.google.cloud.documentai.v1beta3.Document.getDefaultInstance();
+ }
+ inlineDocumentBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.documentai.v1beta3.Document,
+ com.google.cloud.documentai.v1beta3.Document.Builder,
+ com.google.cloud.documentai.v1beta3.DocumentOrBuilder>(
+ (com.google.cloud.documentai.v1beta3.Document) source_,
+ getParentForChildren(),
+ isClean());
+ source_ = null;
+ }
+ sourceCase_ = 4;
+ onChanged();
+ ;
+ return inlineDocumentBuilder_;
+ }
+
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.documentai.v1beta3.RawDocument,
+ com.google.cloud.documentai.v1beta3.RawDocument.Builder,
+ com.google.cloud.documentai.v1beta3.RawDocumentOrBuilder>
+ rawDocumentBuilder_;
+ /**
+ *
+ *
+ *
+ * A raw document content (bytes).
+ *
+ *
+ * .google.cloud.documentai.v1beta3.RawDocument raw_document = 5;
+ *
+ * @return Whether the rawDocument field is set.
+ */
+ @java.lang.Override
+ public boolean hasRawDocument() {
+ return sourceCase_ == 5;
+ }
+ /**
+ *
+ *
+ *
+ * A raw document content (bytes).
+ *
+ *
+ * .google.cloud.documentai.v1beta3.RawDocument raw_document = 5;
+ *
+ * @return The rawDocument.
+ */
+ @java.lang.Override
+ public com.google.cloud.documentai.v1beta3.RawDocument getRawDocument() {
+ if (rawDocumentBuilder_ == null) {
+ if (sourceCase_ == 5) {
+ return (com.google.cloud.documentai.v1beta3.RawDocument) source_;
+ }
+ return com.google.cloud.documentai.v1beta3.RawDocument.getDefaultInstance();
+ } else {
+ if (sourceCase_ == 5) {
+ return rawDocumentBuilder_.getMessage();
+ }
+ return com.google.cloud.documentai.v1beta3.RawDocument.getDefaultInstance();
+ }
+ }
+ /**
+ *
+ *
+ *
+ * A raw document content (bytes).
+ *
+ *
+ * .google.cloud.documentai.v1beta3.RawDocument raw_document = 5;
+ */
+ public Builder setRawDocument(com.google.cloud.documentai.v1beta3.RawDocument value) {
+ if (rawDocumentBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ source_ = value;
+ onChanged();
+ } else {
+ rawDocumentBuilder_.setMessage(value);
+ }
+ sourceCase_ = 5;
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * A raw document content (bytes).
+ *
+ *
+ * .google.cloud.documentai.v1beta3.RawDocument raw_document = 5;
+ */
+ public Builder setRawDocument(
+ com.google.cloud.documentai.v1beta3.RawDocument.Builder builderForValue) {
+ if (rawDocumentBuilder_ == null) {
+ source_ = builderForValue.build();
+ onChanged();
+ } else {
+ rawDocumentBuilder_.setMessage(builderForValue.build());
+ }
+ sourceCase_ = 5;
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * A raw document content (bytes).
+ *
+ *
+ * .google.cloud.documentai.v1beta3.RawDocument raw_document = 5;
+ */
+ public Builder mergeRawDocument(com.google.cloud.documentai.v1beta3.RawDocument value) {
+ if (rawDocumentBuilder_ == null) {
+ if (sourceCase_ == 5
+ && source_ != com.google.cloud.documentai.v1beta3.RawDocument.getDefaultInstance()) {
+ source_ =
+ com.google.cloud.documentai.v1beta3.RawDocument.newBuilder(
+ (com.google.cloud.documentai.v1beta3.RawDocument) source_)
+ .mergeFrom(value)
+ .buildPartial();
+ } else {
+ source_ = value;
+ }
+ onChanged();
+ } else {
+ if (sourceCase_ == 5) {
+ rawDocumentBuilder_.mergeFrom(value);
+ }
+ rawDocumentBuilder_.setMessage(value);
+ }
+ sourceCase_ = 5;
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * A raw document content (bytes).
+ *
+ *
+ * .google.cloud.documentai.v1beta3.RawDocument raw_document = 5;
+ */
+ public Builder clearRawDocument() {
+ if (rawDocumentBuilder_ == null) {
+ if (sourceCase_ == 5) {
+ sourceCase_ = 0;
+ source_ = null;
+ onChanged();
+ }
+ } else {
+ if (sourceCase_ == 5) {
+ sourceCase_ = 0;
+ source_ = null;
+ }
+ rawDocumentBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * A raw document content (bytes).
+ *
+ *
+ * .google.cloud.documentai.v1beta3.RawDocument raw_document = 5;
+ */
+ public com.google.cloud.documentai.v1beta3.RawDocument.Builder getRawDocumentBuilder() {
+ return getRawDocumentFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ *
+ * A raw document content (bytes).
+ *
+ *
+ * .google.cloud.documentai.v1beta3.RawDocument raw_document = 5;
+ */
+ @java.lang.Override
+ public com.google.cloud.documentai.v1beta3.RawDocumentOrBuilder getRawDocumentOrBuilder() {
+ if ((sourceCase_ == 5) && (rawDocumentBuilder_ != null)) {
+ return rawDocumentBuilder_.getMessageOrBuilder();
+ } else {
+ if (sourceCase_ == 5) {
+ return (com.google.cloud.documentai.v1beta3.RawDocument) source_;
+ }
+ return com.google.cloud.documentai.v1beta3.RawDocument.getDefaultInstance();
+ }
+ }
+ /**
+ *
+ *
+ *
+ * A raw document content (bytes).
+ *
+ *
+ * .google.cloud.documentai.v1beta3.RawDocument raw_document = 5;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.documentai.v1beta3.RawDocument,
+ com.google.cloud.documentai.v1beta3.RawDocument.Builder,
+ com.google.cloud.documentai.v1beta3.RawDocumentOrBuilder>
+ getRawDocumentFieldBuilder() {
+ if (rawDocumentBuilder_ == null) {
+ if (!(sourceCase_ == 5)) {
+ source_ = com.google.cloud.documentai.v1beta3.RawDocument.getDefaultInstance();
+ }
+ rawDocumentBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.documentai.v1beta3.RawDocument,
+ com.google.cloud.documentai.v1beta3.RawDocument.Builder,
+ com.google.cloud.documentai.v1beta3.RawDocumentOrBuilder>(
+ (com.google.cloud.documentai.v1beta3.RawDocument) source_,
+ getParentForChildren(),
+ isClean());
+ source_ = null;
+ }
+ sourceCase_ = 5;
+ onChanged();
+ ;
+ return rawDocumentBuilder_;
+ }
+
private java.lang.Object name_ = "";
/**
*
@@ -742,10 +1431,11 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) {
* The document payload, the [content] and [mime_type] fields must be set.
*
*
- * .google.cloud.documentai.v1beta3.Document document = 2;
+ * .google.cloud.documentai.v1beta3.Document document = 2 [deprecated = true];
*
* @return Whether the document field is set.
*/
+ @java.lang.Deprecated
public boolean hasDocument() {
return documentBuilder_ != null || document_ != null;
}
@@ -756,10 +1446,11 @@ public boolean hasDocument() {
* The document payload, the [content] and [mime_type] fields must be set.
*
*
- * .google.cloud.documentai.v1beta3.Document document = 2;
+ * .google.cloud.documentai.v1beta3.Document document = 2 [deprecated = true];
*
* @return The document.
*/
+ @java.lang.Deprecated
public com.google.cloud.documentai.v1beta3.Document getDocument() {
if (documentBuilder_ == null) {
return document_ == null
@@ -776,8 +1467,9 @@ public com.google.cloud.documentai.v1beta3.Document getDocument() {
* The document payload, the [content] and [mime_type] fields must be set.
*
*
- * .google.cloud.documentai.v1beta3.Document document = 2;
+ * .google.cloud.documentai.v1beta3.Document document = 2 [deprecated = true];
*/
+ @java.lang.Deprecated
public Builder setDocument(com.google.cloud.documentai.v1beta3.Document value) {
if (documentBuilder_ == null) {
if (value == null) {
@@ -798,8 +1490,9 @@ public Builder setDocument(com.google.cloud.documentai.v1beta3.Document value) {
* The document payload, the [content] and [mime_type] fields must be set.
*
*
- * .google.cloud.documentai.v1beta3.Document document = 2;
+ * .google.cloud.documentai.v1beta3.Document document = 2 [deprecated = true];
*/
+ @java.lang.Deprecated
public Builder setDocument(
com.google.cloud.documentai.v1beta3.Document.Builder builderForValue) {
if (documentBuilder_ == null) {
@@ -818,8 +1511,9 @@ public Builder setDocument(
* The document payload, the [content] and [mime_type] fields must be set.
*
*
- * .google.cloud.documentai.v1beta3.Document document = 2;
+ * .google.cloud.documentai.v1beta3.Document document = 2 [deprecated = true];
*/
+ @java.lang.Deprecated
public Builder mergeDocument(com.google.cloud.documentai.v1beta3.Document value) {
if (documentBuilder_ == null) {
if (document_ != null) {
@@ -844,8 +1538,9 @@ public Builder mergeDocument(com.google.cloud.documentai.v1beta3.Document value)
* The document payload, the [content] and [mime_type] fields must be set.
*
*
- * .google.cloud.documentai.v1beta3.Document document = 2;
+ * .google.cloud.documentai.v1beta3.Document document = 2 [deprecated = true];
*/
+ @java.lang.Deprecated
public Builder clearDocument() {
if (documentBuilder_ == null) {
document_ = null;
@@ -864,8 +1559,9 @@ public Builder clearDocument() {
* The document payload, the [content] and [mime_type] fields must be set.
*
*
- * .google.cloud.documentai.v1beta3.Document document = 2;
+ * .google.cloud.documentai.v1beta3.Document document = 2 [deprecated = true];
*/
+ @java.lang.Deprecated
public com.google.cloud.documentai.v1beta3.Document.Builder getDocumentBuilder() {
onChanged();
@@ -878,8 +1574,9 @@ public com.google.cloud.documentai.v1beta3.Document.Builder getDocumentBuilder()
* The document payload, the [content] and [mime_type] fields must be set.
*
*
- * .google.cloud.documentai.v1beta3.Document document = 2;
+ * .google.cloud.documentai.v1beta3.Document document = 2 [deprecated = true];
*/
+ @java.lang.Deprecated
public com.google.cloud.documentai.v1beta3.DocumentOrBuilder getDocumentOrBuilder() {
if (documentBuilder_ != null) {
return documentBuilder_.getMessageOrBuilder();
@@ -896,7 +1593,7 @@ public com.google.cloud.documentai.v1beta3.DocumentOrBuilder getDocumentOrBuilde
* The document payload, the [content] and [mime_type] fields must be set.
*
*
- * .google.cloud.documentai.v1beta3.Document document = 2;
+ * .google.cloud.documentai.v1beta3.Document document = 2 [deprecated = true];
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.documentai.v1beta3.Document,
diff --git a/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/ProcessRequestOrBuilder.java b/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/ProcessRequestOrBuilder.java
index 01fd1b68..774fda76 100644
--- a/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/ProcessRequestOrBuilder.java
+++ b/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/ProcessRequestOrBuilder.java
@@ -23,6 +23,76 @@ public interface ProcessRequestOrBuilder
// @@protoc_insertion_point(interface_extends:google.cloud.documentai.v1beta3.ProcessRequest)
com.google.protobuf.MessageOrBuilder {
+ /**
+ *
+ *
+ *
+ * An inline document proto.
+ *
+ *
+ * .google.cloud.documentai.v1beta3.Document inline_document = 4;
+ *
+ * @return Whether the inlineDocument field is set.
+ */
+ boolean hasInlineDocument();
+ /**
+ *
+ *
+ *
+ * An inline document proto.
+ *
+ *
+ * .google.cloud.documentai.v1beta3.Document inline_document = 4;
+ *
+ * @return The inlineDocument.
+ */
+ com.google.cloud.documentai.v1beta3.Document getInlineDocument();
+ /**
+ *
+ *
+ *
+ * An inline document proto.
+ *
+ *
+ * .google.cloud.documentai.v1beta3.Document inline_document = 4;
+ */
+ com.google.cloud.documentai.v1beta3.DocumentOrBuilder getInlineDocumentOrBuilder();
+
+ /**
+ *
+ *
+ *
+ * A raw document content (bytes).
+ *
+ *
+ * .google.cloud.documentai.v1beta3.RawDocument raw_document = 5;
+ *
+ * @return Whether the rawDocument field is set.
+ */
+ boolean hasRawDocument();
+ /**
+ *
+ *
+ *
+ * A raw document content (bytes).
+ *
+ *
+ * .google.cloud.documentai.v1beta3.RawDocument raw_document = 5;
+ *
+ * @return The rawDocument.
+ */
+ com.google.cloud.documentai.v1beta3.RawDocument getRawDocument();
+ /**
+ *
+ *
+ *
+ * A raw document content (bytes).
+ *
+ *
+ * .google.cloud.documentai.v1beta3.RawDocument raw_document = 5;
+ */
+ com.google.cloud.documentai.v1beta3.RawDocumentOrBuilder getRawDocumentOrBuilder();
+
/**
*
*
@@ -59,10 +129,11 @@ public interface ProcessRequestOrBuilder
* The document payload, the [content] and [mime_type] fields must be set.
*
*
- * .google.cloud.documentai.v1beta3.Document document = 2;
+ * .google.cloud.documentai.v1beta3.Document document = 2 [deprecated = true];
*
* @return Whether the document field is set.
*/
+ @java.lang.Deprecated
boolean hasDocument();
/**
*
@@ -71,10 +142,11 @@ public interface ProcessRequestOrBuilder
* The document payload, the [content] and [mime_type] fields must be set.
*
*
- * .google.cloud.documentai.v1beta3.Document document = 2;
+ * .google.cloud.documentai.v1beta3.Document document = 2 [deprecated = true];
*
* @return The document.
*/
+ @java.lang.Deprecated
com.google.cloud.documentai.v1beta3.Document getDocument();
/**
*
@@ -83,8 +155,9 @@ public interface ProcessRequestOrBuilder
* The document payload, the [content] and [mime_type] fields must be set.
*
*
- * .google.cloud.documentai.v1beta3.Document document = 2;
+ * .google.cloud.documentai.v1beta3.Document document = 2 [deprecated = true];
*/
+ @java.lang.Deprecated
com.google.cloud.documentai.v1beta3.DocumentOrBuilder getDocumentOrBuilder();
/**
@@ -100,4 +173,6 @@ public interface ProcessRequestOrBuilder
* @return The skipHumanReview.
*/
boolean getSkipHumanReview();
+
+ public com.google.cloud.documentai.v1beta3.ProcessRequest.SourceCase getSourceCase();
}
diff --git a/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/ProcessResponse.java b/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/ProcessResponse.java
index 729d04a6..f533f4c4 100644
--- a/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/ProcessResponse.java
+++ b/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/ProcessResponse.java
@@ -91,6 +91,23 @@ private ProcessResponse(
java.lang.String s = input.readStringRequireUtf8();
humanReviewOperation_ = s;
+ break;
+ }
+ case 26:
+ {
+ com.google.cloud.documentai.v1beta3.HumanReviewStatus.Builder subBuilder = null;
+ if (humanReviewStatus_ != null) {
+ subBuilder = humanReviewStatus_.toBuilder();
+ }
+ humanReviewStatus_ =
+ input.readMessage(
+ com.google.cloud.documentai.v1beta3.HumanReviewStatus.parser(),
+ extensionRegistry);
+ if (subBuilder != null) {
+ subBuilder.mergeFrom(humanReviewStatus_);
+ humanReviewStatus_ = subBuilder.buildPartial();
+ }
+
break;
}
default:
@@ -190,11 +207,12 @@ public com.google.cloud.documentai.v1beta3.DocumentOrBuilder getDocumentOrBuilde
* ReviewDocument method.
*
*
- * string human_review_operation = 2;
+ * string human_review_operation = 2 [deprecated = true];
*
* @return The humanReviewOperation.
*/
@java.lang.Override
+ @java.lang.Deprecated
public java.lang.String getHumanReviewOperation() {
java.lang.Object ref = humanReviewOperation_;
if (ref instanceof java.lang.String) {
@@ -216,11 +234,12 @@ public java.lang.String getHumanReviewOperation() {
* ReviewDocument method.
*
*
- * string human_review_operation = 2;
+ * string human_review_operation = 2 [deprecated = true];
*
* @return The bytes for humanReviewOperation.
*/
@java.lang.Override
+ @java.lang.Deprecated
public com.google.protobuf.ByteString getHumanReviewOperationBytes() {
java.lang.Object ref = humanReviewOperation_;
if (ref instanceof java.lang.String) {
@@ -233,6 +252,55 @@ public com.google.protobuf.ByteString getHumanReviewOperationBytes() {
}
}
+ public static final int HUMAN_REVIEW_STATUS_FIELD_NUMBER = 3;
+ private com.google.cloud.documentai.v1beta3.HumanReviewStatus humanReviewStatus_;
+ /**
+ *
+ *
+ *
+ * The status of human review on the processed document.
+ *
+ *
+ * .google.cloud.documentai.v1beta3.HumanReviewStatus human_review_status = 3;
+ *
+ * @return Whether the humanReviewStatus field is set.
+ */
+ @java.lang.Override
+ public boolean hasHumanReviewStatus() {
+ return humanReviewStatus_ != null;
+ }
+ /**
+ *
+ *
+ *
+ * The status of human review on the processed document.
+ *
+ *
+ * .google.cloud.documentai.v1beta3.HumanReviewStatus human_review_status = 3;
+ *
+ * @return The humanReviewStatus.
+ */
+ @java.lang.Override
+ public com.google.cloud.documentai.v1beta3.HumanReviewStatus getHumanReviewStatus() {
+ return humanReviewStatus_ == null
+ ? com.google.cloud.documentai.v1beta3.HumanReviewStatus.getDefaultInstance()
+ : humanReviewStatus_;
+ }
+ /**
+ *
+ *
+ *
+ * The status of human review on the processed document.
+ *
+ *
+ * .google.cloud.documentai.v1beta3.HumanReviewStatus human_review_status = 3;
+ */
+ @java.lang.Override
+ public com.google.cloud.documentai.v1beta3.HumanReviewStatusOrBuilder
+ getHumanReviewStatusOrBuilder() {
+ return getHumanReviewStatus();
+ }
+
private byte memoizedIsInitialized = -1;
@java.lang.Override
@@ -253,6 +321,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
if (!getHumanReviewOperationBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, humanReviewOperation_);
}
+ if (humanReviewStatus_ != null) {
+ output.writeMessage(3, getHumanReviewStatus());
+ }
unknownFields.writeTo(output);
}
@@ -268,6 +339,9 @@ public int getSerializedSize() {
if (!getHumanReviewOperationBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, humanReviewOperation_);
}
+ if (humanReviewStatus_ != null) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getHumanReviewStatus());
+ }
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
@@ -289,6 +363,10 @@ public boolean equals(final java.lang.Object obj) {
if (!getDocument().equals(other.getDocument())) return false;
}
if (!getHumanReviewOperation().equals(other.getHumanReviewOperation())) return false;
+ if (hasHumanReviewStatus() != other.hasHumanReviewStatus()) return false;
+ if (hasHumanReviewStatus()) {
+ if (!getHumanReviewStatus().equals(other.getHumanReviewStatus())) return false;
+ }
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@@ -306,6 +384,10 @@ public int hashCode() {
}
hash = (37 * hash) + HUMAN_REVIEW_OPERATION_FIELD_NUMBER;
hash = (53 * hash) + getHumanReviewOperation().hashCode();
+ if (hasHumanReviewStatus()) {
+ hash = (37 * hash) + HUMAN_REVIEW_STATUS_FIELD_NUMBER;
+ hash = (53 * hash) + getHumanReviewStatus().hashCode();
+ }
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
@@ -459,6 +541,12 @@ public Builder clear() {
}
humanReviewOperation_ = "";
+ if (humanReviewStatusBuilder_ == null) {
+ humanReviewStatus_ = null;
+ } else {
+ humanReviewStatus_ = null;
+ humanReviewStatusBuilder_ = null;
+ }
return this;
}
@@ -492,6 +580,11 @@ public com.google.cloud.documentai.v1beta3.ProcessResponse buildPartial() {
result.document_ = documentBuilder_.build();
}
result.humanReviewOperation_ = humanReviewOperation_;
+ if (humanReviewStatusBuilder_ == null) {
+ result.humanReviewStatus_ = humanReviewStatus_;
+ } else {
+ result.humanReviewStatus_ = humanReviewStatusBuilder_.build();
+ }
onBuilt();
return result;
}
@@ -549,6 +642,9 @@ public Builder mergeFrom(com.google.cloud.documentai.v1beta3.ProcessResponse oth
humanReviewOperation_ = other.humanReviewOperation_;
onChanged();
}
+ if (other.hasHumanReviewStatus()) {
+ mergeHumanReviewStatus(other.getHumanReviewStatus());
+ }
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
@@ -785,10 +881,11 @@ public com.google.cloud.documentai.v1beta3.DocumentOrBuilder getDocumentOrBuilde
* ReviewDocument method.
*
*
- * string human_review_operation = 2;
+ * string human_review_operation = 2 [deprecated = true];
*
* @return The humanReviewOperation.
*/
+ @java.lang.Deprecated
public java.lang.String getHumanReviewOperation() {
java.lang.Object ref = humanReviewOperation_;
if (!(ref instanceof java.lang.String)) {
@@ -810,10 +907,11 @@ public java.lang.String getHumanReviewOperation() {
* ReviewDocument method.
*
*
- * string human_review_operation = 2;
+ * string human_review_operation = 2 [deprecated = true];
*
* @return The bytes for humanReviewOperation.
*/
+ @java.lang.Deprecated
public com.google.protobuf.ByteString getHumanReviewOperationBytes() {
java.lang.Object ref = humanReviewOperation_;
if (ref instanceof String) {
@@ -835,11 +933,12 @@ public com.google.protobuf.ByteString getHumanReviewOperationBytes() {
* ReviewDocument method.
*
*
- * string human_review_operation = 2;
+ * string human_review_operation = 2 [deprecated = true];
*
* @param value The humanReviewOperation to set.
* @return This builder for chaining.
*/
+ @java.lang.Deprecated
public Builder setHumanReviewOperation(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
@@ -859,10 +958,11 @@ public Builder setHumanReviewOperation(java.lang.String value) {
* ReviewDocument method.
*
*
- * string human_review_operation = 2;
+ * string human_review_operation = 2 [deprecated = true];
*
* @return This builder for chaining.
*/
+ @java.lang.Deprecated
public Builder clearHumanReviewOperation() {
humanReviewOperation_ = getDefaultInstance().getHumanReviewOperation();
@@ -879,11 +979,12 @@ public Builder clearHumanReviewOperation() {
* ReviewDocument method.
*
*
- * string human_review_operation = 2;
+ * string human_review_operation = 2 [deprecated = true];
*
* @param value The bytes for humanReviewOperation to set.
* @return This builder for chaining.
*/
+ @java.lang.Deprecated
public Builder setHumanReviewOperationBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
@@ -895,6 +996,196 @@ public Builder setHumanReviewOperationBytes(com.google.protobuf.ByteString value
return this;
}
+ private com.google.cloud.documentai.v1beta3.HumanReviewStatus humanReviewStatus_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.documentai.v1beta3.HumanReviewStatus,
+ com.google.cloud.documentai.v1beta3.HumanReviewStatus.Builder,
+ com.google.cloud.documentai.v1beta3.HumanReviewStatusOrBuilder>
+ humanReviewStatusBuilder_;
+ /**
+ *
+ *
+ *
+ * The status of human review on the processed document.
+ *
+ *
+ * .google.cloud.documentai.v1beta3.HumanReviewStatus human_review_status = 3;
+ *
+ * @return Whether the humanReviewStatus field is set.
+ */
+ public boolean hasHumanReviewStatus() {
+ return humanReviewStatusBuilder_ != null || humanReviewStatus_ != null;
+ }
+ /**
+ *
+ *
+ *
+ * The status of human review on the processed document.
+ *
+ *
+ * .google.cloud.documentai.v1beta3.HumanReviewStatus human_review_status = 3;
+ *
+ * @return The humanReviewStatus.
+ */
+ public com.google.cloud.documentai.v1beta3.HumanReviewStatus getHumanReviewStatus() {
+ if (humanReviewStatusBuilder_ == null) {
+ return humanReviewStatus_ == null
+ ? com.google.cloud.documentai.v1beta3.HumanReviewStatus.getDefaultInstance()
+ : humanReviewStatus_;
+ } else {
+ return humanReviewStatusBuilder_.getMessage();
+ }
+ }
+ /**
+ *
+ *
+ *
+ * The status of human review on the processed document.
+ *
+ *
+ * .google.cloud.documentai.v1beta3.HumanReviewStatus human_review_status = 3;
+ */
+ public Builder setHumanReviewStatus(
+ com.google.cloud.documentai.v1beta3.HumanReviewStatus value) {
+ if (humanReviewStatusBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ humanReviewStatus_ = value;
+ onChanged();
+ } else {
+ humanReviewStatusBuilder_.setMessage(value);
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The status of human review on the processed document.
+ *
+ *
+ * .google.cloud.documentai.v1beta3.HumanReviewStatus human_review_status = 3;
+ */
+ public Builder setHumanReviewStatus(
+ com.google.cloud.documentai.v1beta3.HumanReviewStatus.Builder builderForValue) {
+ if (humanReviewStatusBuilder_ == null) {
+ humanReviewStatus_ = builderForValue.build();
+ onChanged();
+ } else {
+ humanReviewStatusBuilder_.setMessage(builderForValue.build());
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The status of human review on the processed document.
+ *
+ *
+ * .google.cloud.documentai.v1beta3.HumanReviewStatus human_review_status = 3;
+ */
+ public Builder mergeHumanReviewStatus(
+ com.google.cloud.documentai.v1beta3.HumanReviewStatus value) {
+ if (humanReviewStatusBuilder_ == null) {
+ if (humanReviewStatus_ != null) {
+ humanReviewStatus_ =
+ com.google.cloud.documentai.v1beta3.HumanReviewStatus.newBuilder(humanReviewStatus_)
+ .mergeFrom(value)
+ .buildPartial();
+ } else {
+ humanReviewStatus_ = value;
+ }
+ onChanged();
+ } else {
+ humanReviewStatusBuilder_.mergeFrom(value);
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The status of human review on the processed document.
+ *
+ *
+ * .google.cloud.documentai.v1beta3.HumanReviewStatus human_review_status = 3;
+ */
+ public Builder clearHumanReviewStatus() {
+ if (humanReviewStatusBuilder_ == null) {
+ humanReviewStatus_ = null;
+ onChanged();
+ } else {
+ humanReviewStatus_ = null;
+ humanReviewStatusBuilder_ = null;
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The status of human review on the processed document.
+ *
+ *
+ * .google.cloud.documentai.v1beta3.HumanReviewStatus human_review_status = 3;
+ */
+ public com.google.cloud.documentai.v1beta3.HumanReviewStatus.Builder
+ getHumanReviewStatusBuilder() {
+
+ onChanged();
+ return getHumanReviewStatusFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ *
+ * The status of human review on the processed document.
+ *
+ *
+ * .google.cloud.documentai.v1beta3.HumanReviewStatus human_review_status = 3;
+ */
+ public com.google.cloud.documentai.v1beta3.HumanReviewStatusOrBuilder
+ getHumanReviewStatusOrBuilder() {
+ if (humanReviewStatusBuilder_ != null) {
+ return humanReviewStatusBuilder_.getMessageOrBuilder();
+ } else {
+ return humanReviewStatus_ == null
+ ? com.google.cloud.documentai.v1beta3.HumanReviewStatus.getDefaultInstance()
+ : humanReviewStatus_;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * The status of human review on the processed document.
+ *
+ *
+ * .google.cloud.documentai.v1beta3.HumanReviewStatus human_review_status = 3;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.documentai.v1beta3.HumanReviewStatus,
+ com.google.cloud.documentai.v1beta3.HumanReviewStatus.Builder,
+ com.google.cloud.documentai.v1beta3.HumanReviewStatusOrBuilder>
+ getHumanReviewStatusFieldBuilder() {
+ if (humanReviewStatusBuilder_ == null) {
+ humanReviewStatusBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.documentai.v1beta3.HumanReviewStatus,
+ com.google.cloud.documentai.v1beta3.HumanReviewStatus.Builder,
+ com.google.cloud.documentai.v1beta3.HumanReviewStatusOrBuilder>(
+ getHumanReviewStatus(), getParentForChildren(), isClean());
+ humanReviewStatus_ = null;
+ }
+ return humanReviewStatusBuilder_;
+ }
+
@java.lang.Override
public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
diff --git a/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/ProcessResponseOrBuilder.java b/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/ProcessResponseOrBuilder.java
index 10a334e7..aa0e3481 100644
--- a/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/ProcessResponseOrBuilder.java
+++ b/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/ProcessResponseOrBuilder.java
@@ -71,10 +71,11 @@ public interface ProcessResponseOrBuilder
* ReviewDocument method.
*
*
- * string human_review_operation = 2;
+ * string human_review_operation = 2 [deprecated = true];
*
* @return The humanReviewOperation.
*/
+ @java.lang.Deprecated
java.lang.String getHumanReviewOperation();
/**
*
@@ -86,9 +87,45 @@ public interface ProcessResponseOrBuilder
* ReviewDocument method.
*
*
- * string human_review_operation = 2;
+ * string human_review_operation = 2 [deprecated = true];
*
* @return The bytes for humanReviewOperation.
*/
+ @java.lang.Deprecated
com.google.protobuf.ByteString getHumanReviewOperationBytes();
+
+ /**
+ *
+ *
+ *
+ * The status of human review on the processed document.
+ *
+ *
+ * .google.cloud.documentai.v1beta3.HumanReviewStatus human_review_status = 3;
+ *
+ * @return Whether the humanReviewStatus field is set.
+ */
+ boolean hasHumanReviewStatus();
+ /**
+ *
+ *
+ *
+ * The status of human review on the processed document.
+ *
+ *
+ * .google.cloud.documentai.v1beta3.HumanReviewStatus human_review_status = 3;
+ *
+ * @return The humanReviewStatus.
+ */
+ com.google.cloud.documentai.v1beta3.HumanReviewStatus getHumanReviewStatus();
+ /**
+ *
+ *
+ *
+ * The status of human review on the processed document.
+ *
+ *
+ * .google.cloud.documentai.v1beta3.HumanReviewStatus human_review_status = 3;
+ */
+ com.google.cloud.documentai.v1beta3.HumanReviewStatusOrBuilder getHumanReviewStatusOrBuilder();
}
diff --git a/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/RawDocument.java b/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/RawDocument.java
new file mode 100644
index 00000000..e543bf91
--- /dev/null
+++ b/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/RawDocument.java
@@ -0,0 +1,736 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the 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_io.proto
+
+package com.google.cloud.documentai.v1beta3;
+
+/**
+ *
+ *
+ *
+ * Payload message of raw document content (bytes).
+ *
+ *
+ * Protobuf type {@code google.cloud.documentai.v1beta3.RawDocument}
+ */
+public final class RawDocument extends com.google.protobuf.GeneratedMessageV3
+ implements
+ // @@protoc_insertion_point(message_implements:google.cloud.documentai.v1beta3.RawDocument)
+ RawDocumentOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use RawDocument.newBuilder() to construct.
+ private RawDocument(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+
+ private RawDocument() {
+ content_ = com.google.protobuf.ByteString.EMPTY;
+ mimeType_ = "";
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+ return new RawDocument();
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+ return this.unknownFields;
+ }
+
+ private RawDocument(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10:
+ {
+ content_ = input.readBytes();
+ break;
+ }
+ case 18:
+ {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ mimeType_ = s;
+ break;
+ }
+ default:
+ {
+ if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+ } finally {
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.cloud.documentai.v1beta3.DocumentIoProto
+ .internal_static_google_cloud_documentai_v1beta3_RawDocument_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.cloud.documentai.v1beta3.DocumentIoProto
+ .internal_static_google_cloud_documentai_v1beta3_RawDocument_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.cloud.documentai.v1beta3.RawDocument.class,
+ com.google.cloud.documentai.v1beta3.RawDocument.Builder.class);
+ }
+
+ public static final int CONTENT_FIELD_NUMBER = 1;
+ private com.google.protobuf.ByteString content_;
+ /**
+ *
+ *
+ *
+ * Inline document content.
+ *
+ *
+ * bytes content = 1;
+ *
+ * @return The content.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getContent() {
+ return content_;
+ }
+
+ public static final int MIME_TYPE_FIELD_NUMBER = 2;
+ private volatile java.lang.Object mimeType_;
+ /**
+ *
+ *
+ *
+ * An IANA MIME type (RFC6838) indicating the nature and format of the
+ * [content].
+ *
+ *
+ * string mime_type = 2;
+ *
+ * @return The mimeType.
+ */
+ @java.lang.Override
+ public java.lang.String getMimeType() {
+ java.lang.Object ref = mimeType_;
+ 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();
+ mimeType_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * An IANA MIME type (RFC6838) indicating the nature and format of the
+ * [content].
+ *
+ *
+ * string mime_type = 2;
+ *
+ * @return The bytes for mimeType.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getMimeTypeBytes() {
+ java.lang.Object ref = mimeType_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ mimeType_ = 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 (!content_.isEmpty()) {
+ output.writeBytes(1, content_);
+ }
+ if (!getMimeTypeBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 2, mimeType_);
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (!content_.isEmpty()) {
+ size += com.google.protobuf.CodedOutputStream.computeBytesSize(1, content_);
+ }
+ if (!getMimeTypeBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, mimeType_);
+ }
+ size += unknownFields.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.RawDocument)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.documentai.v1beta3.RawDocument other =
+ (com.google.cloud.documentai.v1beta3.RawDocument) obj;
+
+ if (!getContent().equals(other.getContent())) return false;
+ if (!getMimeType().equals(other.getMimeType())) return false;
+ if (!unknownFields.equals(other.unknownFields)) 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) + CONTENT_FIELD_NUMBER;
+ hash = (53 * hash) + getContent().hashCode();
+ hash = (37 * hash) + MIME_TYPE_FIELD_NUMBER;
+ hash = (53 * hash) + getMimeType().hashCode();
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.documentai.v1beta3.RawDocument parseFrom(java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.documentai.v1beta3.RawDocument 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.RawDocument parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.documentai.v1beta3.RawDocument parseFrom(
+ com.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.RawDocument parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.documentai.v1beta3.RawDocument 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.RawDocument parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.documentai.v1beta3.RawDocument 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.RawDocument parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.documentai.v1beta3.RawDocument 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.RawDocument 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.RawDocument 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.RawDocument 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;
+ }
+ /**
+ *
+ *
+ *
+ * Payload message of raw document content (bytes).
+ *
+ *
+ * Protobuf type {@code google.cloud.documentai.v1beta3.RawDocument}
+ */
+ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ implements
+ // @@protoc_insertion_point(builder_implements:google.cloud.documentai.v1beta3.RawDocument)
+ com.google.cloud.documentai.v1beta3.RawDocumentOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.cloud.documentai.v1beta3.DocumentIoProto
+ .internal_static_google_cloud_documentai_v1beta3_RawDocument_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.cloud.documentai.v1beta3.DocumentIoProto
+ .internal_static_google_cloud_documentai_v1beta3_RawDocument_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.cloud.documentai.v1beta3.RawDocument.class,
+ com.google.cloud.documentai.v1beta3.RawDocument.Builder.class);
+ }
+
+ // Construct using com.google.cloud.documentai.v1beta3.RawDocument.newBuilder()
+ private Builder() {
+ maybeForceBuilderInitialization();
+ }
+
+ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ super(parent);
+ maybeForceBuilderInitialization();
+ }
+
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+ }
+
+ @java.lang.Override
+ public Builder clear() {
+ super.clear();
+ content_ = com.google.protobuf.ByteString.EMPTY;
+
+ mimeType_ = "";
+
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+ return com.google.cloud.documentai.v1beta3.DocumentIoProto
+ .internal_static_google_cloud_documentai_v1beta3_RawDocument_descriptor;
+ }
+
+ @java.lang.Override
+ public com.google.cloud.documentai.v1beta3.RawDocument getDefaultInstanceForType() {
+ return com.google.cloud.documentai.v1beta3.RawDocument.getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public com.google.cloud.documentai.v1beta3.RawDocument build() {
+ com.google.cloud.documentai.v1beta3.RawDocument result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public com.google.cloud.documentai.v1beta3.RawDocument buildPartial() {
+ com.google.cloud.documentai.v1beta3.RawDocument result =
+ new com.google.cloud.documentai.v1beta3.RawDocument(this);
+ result.content_ = content_;
+ result.mimeType_ = mimeType_;
+ 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.RawDocument) {
+ return mergeFrom((com.google.cloud.documentai.v1beta3.RawDocument) other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(com.google.cloud.documentai.v1beta3.RawDocument other) {
+ if (other == com.google.cloud.documentai.v1beta3.RawDocument.getDefaultInstance())
+ return this;
+ if (other.getContent() != com.google.protobuf.ByteString.EMPTY) {
+ setContent(other.getContent());
+ }
+ if (!other.getMimeType().isEmpty()) {
+ mimeType_ = other.mimeType_;
+ onChanged();
+ }
+ this.mergeUnknownFields(other.unknownFields);
+ 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 {
+ com.google.cloud.documentai.v1beta3.RawDocument parsedMessage = null;
+ try {
+ parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ parsedMessage = (com.google.cloud.documentai.v1beta3.RawDocument) e.getUnfinishedMessage();
+ throw e.unwrapIOException();
+ } finally {
+ if (parsedMessage != null) {
+ mergeFrom(parsedMessage);
+ }
+ }
+ return this;
+ }
+
+ private com.google.protobuf.ByteString content_ = com.google.protobuf.ByteString.EMPTY;
+ /**
+ *
+ *
+ *
+ * Inline document content.
+ *
+ *
+ * bytes content = 1;
+ *
+ * @return The content.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getContent() {
+ return content_;
+ }
+ /**
+ *
+ *
+ *
+ * Inline document content.
+ *
+ *
+ * bytes content = 1;
+ *
+ * @param value The content to set.
+ * @return This builder for chaining.
+ */
+ public Builder setContent(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ content_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Inline document content.
+ *
+ *
+ * bytes content = 1;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearContent() {
+
+ content_ = getDefaultInstance().getContent();
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object mimeType_ = "";
+ /**
+ *
+ *
+ *
+ * An IANA MIME type (RFC6838) indicating the nature and format of the
+ * [content].
+ *
+ *
+ * string mime_type = 2;
+ *
+ * @return The mimeType.
+ */
+ public java.lang.String getMimeType() {
+ java.lang.Object ref = mimeType_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ mimeType_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * An IANA MIME type (RFC6838) indicating the nature and format of the
+ * [content].
+ *
+ *
+ * string mime_type = 2;
+ *
+ * @return The bytes for mimeType.
+ */
+ public com.google.protobuf.ByteString getMimeTypeBytes() {
+ java.lang.Object ref = mimeType_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ mimeType_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * An IANA MIME type (RFC6838) indicating the nature and format of the
+ * [content].
+ *
+ *
+ * string mime_type = 2;
+ *
+ * @param value The mimeType to set.
+ * @return This builder for chaining.
+ */
+ public Builder setMimeType(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ mimeType_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * An IANA MIME type (RFC6838) indicating the nature and format of the
+ * [content].
+ *
+ *
+ * string mime_type = 2;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearMimeType() {
+
+ mimeType_ = getDefaultInstance().getMimeType();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * An IANA MIME type (RFC6838) indicating the nature and format of the
+ * [content].
+ *
+ *
+ * string mime_type = 2;
+ *
+ * @param value The bytes for mimeType to set.
+ * @return This builder for chaining.
+ */
+ public Builder setMimeTypeBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ mimeType_ = value;
+ 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.RawDocument)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.documentai.v1beta3.RawDocument)
+ private static final com.google.cloud.documentai.v1beta3.RawDocument DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.cloud.documentai.v1beta3.RawDocument();
+ }
+
+ public static com.google.cloud.documentai.v1beta3.RawDocument getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser PARSER =
+ new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
+ public RawDocument parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return new RawDocument(input, extensionRegistry);
+ }
+ };
+
+ 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.RawDocument getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+}
diff --git a/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/RawDocumentOrBuilder.java b/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/RawDocumentOrBuilder.java
new file mode 100644
index 00000000..9789303e
--- /dev/null
+++ b/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/RawDocumentOrBuilder.java
@@ -0,0 +1,65 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the 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_io.proto
+
+package com.google.cloud.documentai.v1beta3;
+
+public interface RawDocumentOrBuilder
+ extends
+ // @@protoc_insertion_point(interface_extends:google.cloud.documentai.v1beta3.RawDocument)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ *
+ *
+ *
+ * Inline document content.
+ *
+ *
+ * bytes content = 1;
+ *
+ * @return The content.
+ */
+ com.google.protobuf.ByteString getContent();
+
+ /**
+ *
+ *
+ *
+ * An IANA MIME type (RFC6838) indicating the nature and format of the
+ * [content].
+ *
+ *
+ * string mime_type = 2;
+ *
+ * @return The mimeType.
+ */
+ java.lang.String getMimeType();
+ /**
+ *
+ *
+ *
+ * An IANA MIME type (RFC6838) indicating the nature and format of the
+ * [content].
+ *
+ *
+ * string mime_type = 2;
+ *
+ * @return The bytes for mimeType.
+ */
+ com.google.protobuf.ByteString getMimeTypeBytes();
+}
diff --git a/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/ReviewDocumentOperationMetadata.java b/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/ReviewDocumentOperationMetadata.java
index 6fa12d57..f8c5bb5a 100644
--- a/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/ReviewDocumentOperationMetadata.java
+++ b/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/ReviewDocumentOperationMetadata.java
@@ -114,6 +114,23 @@ private ReviewDocumentOperationMetadata(
updateTime_ = subBuilder.buildPartial();
}
+ break;
+ }
+ case 42:
+ {
+ com.google.cloud.documentai.v1beta3.CommonOperationMetadata.Builder subBuilder = null;
+ if (commonMetadata_ != null) {
+ subBuilder = commonMetadata_.toBuilder();
+ }
+ commonMetadata_ =
+ input.readMessage(
+ com.google.cloud.documentai.v1beta3.CommonOperationMetadata.parser(),
+ extensionRegistry);
+ if (subBuilder != null) {
+ subBuilder.mergeFrom(commonMetadata_);
+ commonMetadata_ = subBuilder.buildPartial();
+ }
+
break;
}
default:
@@ -556,6 +573,55 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() {
return getUpdateTime();
}
+ public static final int COMMON_METADATA_FIELD_NUMBER = 5;
+ private com.google.cloud.documentai.v1beta3.CommonOperationMetadata commonMetadata_;
+ /**
+ *
+ *
+ *
+ * The basic metadata of the long running operation.
+ *
+ *
+ * .google.cloud.documentai.v1beta3.CommonOperationMetadata common_metadata = 5;
+ *
+ * @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 = 5;
+ *
+ * @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 = 5;
+ */
+ @java.lang.Override
+ public com.google.cloud.documentai.v1beta3.CommonOperationMetadataOrBuilder
+ getCommonMetadataOrBuilder() {
+ return getCommonMetadata();
+ }
+
private byte memoizedIsInitialized = -1;
@java.lang.Override
@@ -585,6 +651,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
if (updateTime_ != null) {
output.writeMessage(4, getUpdateTime());
}
+ if (commonMetadata_ != null) {
+ output.writeMessage(5, getCommonMetadata());
+ }
unknownFields.writeTo(output);
}
@@ -609,6 +678,9 @@ public int getSerializedSize() {
if (updateTime_ != null) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getUpdateTime());
}
+ if (commonMetadata_ != null) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getCommonMetadata());
+ }
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
@@ -635,6 +707,10 @@ public boolean equals(final java.lang.Object obj) {
if (hasUpdateTime()) {
if (!getUpdateTime().equals(other.getUpdateTime())) return false;
}
+ if (hasCommonMetadata() != other.hasCommonMetadata()) return false;
+ if (hasCommonMetadata()) {
+ if (!getCommonMetadata().equals(other.getCommonMetadata())) return false;
+ }
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@@ -658,6 +734,10 @@ public int hashCode() {
hash = (37 * hash) + UPDATE_TIME_FIELD_NUMBER;
hash = (53 * hash) + getUpdateTime().hashCode();
}
+ if (hasCommonMetadata()) {
+ hash = (37 * hash) + COMMON_METADATA_FIELD_NUMBER;
+ hash = (53 * hash) + getCommonMetadata().hashCode();
+ }
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
@@ -822,6 +902,12 @@ public Builder clear() {
updateTime_ = null;
updateTimeBuilder_ = null;
}
+ if (commonMetadataBuilder_ == null) {
+ commonMetadata_ = null;
+ } else {
+ commonMetadata_ = null;
+ commonMetadataBuilder_ = null;
+ }
return this;
}
@@ -863,6 +949,11 @@ public com.google.cloud.documentai.v1beta3.ReviewDocumentOperationMetadata build
} else {
result.updateTime_ = updateTimeBuilder_.build();
}
+ if (commonMetadataBuilder_ == null) {
+ result.commonMetadata_ = commonMetadata_;
+ } else {
+ result.commonMetadata_ = commonMetadataBuilder_.build();
+ }
onBuilt();
return result;
}
@@ -929,6 +1020,9 @@ public Builder mergeFrom(
if (other.hasUpdateTime()) {
mergeUpdateTime(other.getUpdateTime());
}
+ if (other.hasCommonMetadata()) {
+ mergeCommonMetadata(other.getCommonMetadata());
+ }
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
@@ -1536,6 +1630,197 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() {
return updateTimeBuilder_;
}
+ 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 = 5;
+ *
+ * @return Whether the commonMetadata field is set.
+ */
+ public boolean hasCommonMetadata() {
+ return commonMetadataBuilder_ != null || commonMetadata_ != null;
+ }
+ /**
+ *
+ *
+ *
+ * The basic metadata of the long running operation.
+ *
+ *
+ * .google.cloud.documentai.v1beta3.CommonOperationMetadata common_metadata = 5;
+ *
+ * @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 = 5;
+ */
+ public Builder setCommonMetadata(
+ com.google.cloud.documentai.v1beta3.CommonOperationMetadata value) {
+ if (commonMetadataBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ commonMetadata_ = value;
+ onChanged();
+ } else {
+ commonMetadataBuilder_.setMessage(value);
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The basic metadata of the long running operation.
+ *
+ *
+ * .google.cloud.documentai.v1beta3.CommonOperationMetadata common_metadata = 5;
+ */
+ public Builder setCommonMetadata(
+ com.google.cloud.documentai.v1beta3.CommonOperationMetadata.Builder builderForValue) {
+ if (commonMetadataBuilder_ == null) {
+ commonMetadata_ = builderForValue.build();
+ onChanged();
+ } else {
+ commonMetadataBuilder_.setMessage(builderForValue.build());
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The basic metadata of the long running operation.
+ *
+ *
+ * .google.cloud.documentai.v1beta3.CommonOperationMetadata common_metadata = 5;
+ */
+ public Builder mergeCommonMetadata(
+ com.google.cloud.documentai.v1beta3.CommonOperationMetadata value) {
+ if (commonMetadataBuilder_ == null) {
+ if (commonMetadata_ != null) {
+ commonMetadata_ =
+ com.google.cloud.documentai.v1beta3.CommonOperationMetadata.newBuilder(
+ commonMetadata_)
+ .mergeFrom(value)
+ .buildPartial();
+ } else {
+ commonMetadata_ = value;
+ }
+ onChanged();
+ } else {
+ commonMetadataBuilder_.mergeFrom(value);
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The basic metadata of the long running operation.
+ *
+ *
+ * .google.cloud.documentai.v1beta3.CommonOperationMetadata common_metadata = 5;
+ */
+ public Builder clearCommonMetadata() {
+ if (commonMetadataBuilder_ == null) {
+ commonMetadata_ = null;
+ onChanged();
+ } else {
+ commonMetadata_ = null;
+ commonMetadataBuilder_ = null;
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The basic metadata of the long running operation.
+ *
+ *
+ * .google.cloud.documentai.v1beta3.CommonOperationMetadata common_metadata = 5;
+ */
+ public com.google.cloud.documentai.v1beta3.CommonOperationMetadata.Builder
+ getCommonMetadataBuilder() {
+
+ onChanged();
+ return getCommonMetadataFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ *
+ * The basic metadata of the long running operation.
+ *
+ *
+ * .google.cloud.documentai.v1beta3.CommonOperationMetadata common_metadata = 5;
+ */
+ 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 = 5;
+ */
+ 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);
diff --git a/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/ReviewDocumentOperationMetadataOrBuilder.java b/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/ReviewDocumentOperationMetadataOrBuilder.java
index c8bae3a0..40b4989c 100644
--- a/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/ReviewDocumentOperationMetadataOrBuilder.java
+++ b/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/ReviewDocumentOperationMetadataOrBuilder.java
@@ -144,4 +144,39 @@ public interface ReviewDocumentOperationMetadataOrBuilder
* .google.protobuf.Timestamp update_time = 4;
*/
com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder();
+
+ /**
+ *
+ *
+ *
+ * The basic metadata of the long running operation.
+ *
+ *
+ * .google.cloud.documentai.v1beta3.CommonOperationMetadata common_metadata = 5;
+ *
+ * @return Whether the commonMetadata field is set.
+ */
+ boolean hasCommonMetadata();
+ /**
+ *
+ *
+ *
+ * The basic metadata of the long running operation.
+ *
+ *
+ * .google.cloud.documentai.v1beta3.CommonOperationMetadata common_metadata = 5;
+ *
+ * @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 = 5;
+ */
+ com.google.cloud.documentai.v1beta3.CommonOperationMetadataOrBuilder getCommonMetadataOrBuilder();
}
diff --git a/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/ReviewDocumentRequest.java b/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/ReviewDocumentRequest.java
index eee8dc5a..550ee009 100644
--- a/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/ReviewDocumentRequest.java
+++ b/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/ReviewDocumentRequest.java
@@ -91,6 +91,22 @@ private ReviewDocumentRequest(
document_ = subBuilder.buildPartial();
}
+ break;
+ }
+ case 34:
+ {
+ com.google.cloud.documentai.v1beta3.Document.Builder subBuilder = null;
+ if (sourceCase_ == 4) {
+ subBuilder = ((com.google.cloud.documentai.v1beta3.Document) source_).toBuilder();
+ }
+ source_ =
+ input.readMessage(
+ com.google.cloud.documentai.v1beta3.Document.parser(), extensionRegistry);
+ if (subBuilder != null) {
+ subBuilder.mergeFrom((com.google.cloud.documentai.v1beta3.Document) source_);
+ source_ = subBuilder.buildPartial();
+ }
+ sourceCase_ = 4;
break;
}
default:
@@ -127,6 +143,101 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
com.google.cloud.documentai.v1beta3.ReviewDocumentRequest.Builder.class);
}
+ private int sourceCase_ = 0;
+ private java.lang.Object source_;
+
+ public enum SourceCase
+ implements
+ com.google.protobuf.Internal.EnumLite,
+ com.google.protobuf.AbstractMessage.InternalOneOfEnum {
+ INLINE_DOCUMENT(4),
+ SOURCE_NOT_SET(0);
+ private final int value;
+
+ private SourceCase(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 SourceCase valueOf(int value) {
+ return forNumber(value);
+ }
+
+ public static SourceCase forNumber(int value) {
+ switch (value) {
+ case 4:
+ return INLINE_DOCUMENT;
+ case 0:
+ return SOURCE_NOT_SET;
+ default:
+ return null;
+ }
+ }
+
+ public int getNumber() {
+ return this.value;
+ }
+ };
+
+ public SourceCase getSourceCase() {
+ return SourceCase.forNumber(sourceCase_);
+ }
+
+ public static final int INLINE_DOCUMENT_FIELD_NUMBER = 4;
+ /**
+ *
+ *
+ *
+ * An inline document proto.
+ *
+ *
+ * .google.cloud.documentai.v1beta3.Document inline_document = 4;
+ *
+ * @return Whether the inlineDocument field is set.
+ */
+ @java.lang.Override
+ public boolean hasInlineDocument() {
+ return sourceCase_ == 4;
+ }
+ /**
+ *
+ *
+ *
+ * An inline document proto.
+ *
+ *
+ * .google.cloud.documentai.v1beta3.Document inline_document = 4;
+ *
+ * @return The inlineDocument.
+ */
+ @java.lang.Override
+ public com.google.cloud.documentai.v1beta3.Document getInlineDocument() {
+ if (sourceCase_ == 4) {
+ return (com.google.cloud.documentai.v1beta3.Document) source_;
+ }
+ return com.google.cloud.documentai.v1beta3.Document.getDefaultInstance();
+ }
+ /**
+ *
+ *
+ *
+ * An inline document proto.
+ *
+ *
+ * .google.cloud.documentai.v1beta3.Document inline_document = 4;
+ */
+ @java.lang.Override
+ public com.google.cloud.documentai.v1beta3.DocumentOrBuilder getInlineDocumentOrBuilder() {
+ if (sourceCase_ == 4) {
+ return (com.google.cloud.documentai.v1beta3.Document) source_;
+ }
+ return com.google.cloud.documentai.v1beta3.Document.getDefaultInstance();
+ }
+
public static final int HUMAN_REVIEW_CONFIG_FIELD_NUMBER = 1;
private volatile java.lang.Object humanReviewConfig_;
/**
@@ -191,11 +302,12 @@ public com.google.protobuf.ByteString getHumanReviewConfigBytes() {
* The document that needs human review.
*
*
- * .google.cloud.documentai.v1beta3.Document document = 2;
+ * .google.cloud.documentai.v1beta3.Document document = 2 [deprecated = true];
*
* @return Whether the document field is set.
*/
@java.lang.Override
+ @java.lang.Deprecated
public boolean hasDocument() {
return document_ != null;
}
@@ -206,11 +318,12 @@ public boolean hasDocument() {
* The document that needs human review.
*
*
- * .google.cloud.documentai.v1beta3.Document document = 2;
+ * .google.cloud.documentai.v1beta3.Document document = 2 [deprecated = true];
*
* @return The document.
*/
@java.lang.Override
+ @java.lang.Deprecated
public com.google.cloud.documentai.v1beta3.Document getDocument() {
return document_ == null
? com.google.cloud.documentai.v1beta3.Document.getDefaultInstance()
@@ -223,9 +336,10 @@ public com.google.cloud.documentai.v1beta3.Document getDocument() {
* The document that needs human review.
*
*
- * .google.cloud.documentai.v1beta3.Document document = 2;
+ * .google.cloud.documentai.v1beta3.Document document = 2 [deprecated = true];
*/
@java.lang.Override
+ @java.lang.Deprecated
public com.google.cloud.documentai.v1beta3.DocumentOrBuilder getDocumentOrBuilder() {
return getDocument();
}
@@ -250,6 +364,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
if (document_ != null) {
output.writeMessage(2, getDocument());
}
+ if (sourceCase_ == 4) {
+ output.writeMessage(4, (com.google.cloud.documentai.v1beta3.Document) source_);
+ }
unknownFields.writeTo(output);
}
@@ -265,6 +382,11 @@ public int getSerializedSize() {
if (document_ != null) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getDocument());
}
+ if (sourceCase_ == 4) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeMessageSize(
+ 4, (com.google.cloud.documentai.v1beta3.Document) source_);
+ }
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
@@ -286,6 +408,14 @@ public boolean equals(final java.lang.Object obj) {
if (hasDocument()) {
if (!getDocument().equals(other.getDocument())) return false;
}
+ if (!getSourceCase().equals(other.getSourceCase())) return false;
+ switch (sourceCase_) {
+ case 4:
+ if (!getInlineDocument().equals(other.getInlineDocument())) return false;
+ break;
+ case 0:
+ default:
+ }
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@@ -303,6 +433,14 @@ public int hashCode() {
hash = (37 * hash) + DOCUMENT_FIELD_NUMBER;
hash = (53 * hash) + getDocument().hashCode();
}
+ switch (sourceCase_) {
+ case 4:
+ hash = (37 * hash) + INLINE_DOCUMENT_FIELD_NUMBER;
+ hash = (53 * hash) + getInlineDocument().hashCode();
+ break;
+ case 0:
+ default:
+ }
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
@@ -457,6 +595,8 @@ public Builder clear() {
document_ = null;
documentBuilder_ = null;
}
+ sourceCase_ = 0;
+ source_ = null;
return this;
}
@@ -484,12 +624,20 @@ public com.google.cloud.documentai.v1beta3.ReviewDocumentRequest build() {
public com.google.cloud.documentai.v1beta3.ReviewDocumentRequest buildPartial() {
com.google.cloud.documentai.v1beta3.ReviewDocumentRequest result =
new com.google.cloud.documentai.v1beta3.ReviewDocumentRequest(this);
+ if (sourceCase_ == 4) {
+ if (inlineDocumentBuilder_ == null) {
+ result.source_ = source_;
+ } else {
+ result.source_ = inlineDocumentBuilder_.build();
+ }
+ }
result.humanReviewConfig_ = humanReviewConfig_;
if (documentBuilder_ == null) {
result.document_ = document_;
} else {
result.document_ = documentBuilder_.build();
}
+ result.sourceCase_ = sourceCase_;
onBuilt();
return result;
}
@@ -547,6 +695,17 @@ public Builder mergeFrom(com.google.cloud.documentai.v1beta3.ReviewDocumentReque
if (other.hasDocument()) {
mergeDocument(other.getDocument());
}
+ switch (other.getSourceCase()) {
+ case INLINE_DOCUMENT:
+ {
+ mergeInlineDocument(other.getInlineDocument());
+ break;
+ }
+ case SOURCE_NOT_SET:
+ {
+ break;
+ }
+ }
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
@@ -577,6 +736,229 @@ public Builder mergeFrom(
return this;
}
+ private int sourceCase_ = 0;
+ private java.lang.Object source_;
+
+ public SourceCase getSourceCase() {
+ return SourceCase.forNumber(sourceCase_);
+ }
+
+ public Builder clearSource() {
+ sourceCase_ = 0;
+ source_ = null;
+ onChanged();
+ return this;
+ }
+
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.documentai.v1beta3.Document,
+ com.google.cloud.documentai.v1beta3.Document.Builder,
+ com.google.cloud.documentai.v1beta3.DocumentOrBuilder>
+ inlineDocumentBuilder_;
+ /**
+ *
+ *
+ *
+ * An inline document proto.
+ *
+ *
+ * .google.cloud.documentai.v1beta3.Document inline_document = 4;
+ *
+ * @return Whether the inlineDocument field is set.
+ */
+ @java.lang.Override
+ public boolean hasInlineDocument() {
+ return sourceCase_ == 4;
+ }
+ /**
+ *
+ *
+ *
+ * An inline document proto.
+ *
+ *
+ * .google.cloud.documentai.v1beta3.Document inline_document = 4;
+ *
+ * @return The inlineDocument.
+ */
+ @java.lang.Override
+ public com.google.cloud.documentai.v1beta3.Document getInlineDocument() {
+ if (inlineDocumentBuilder_ == null) {
+ if (sourceCase_ == 4) {
+ return (com.google.cloud.documentai.v1beta3.Document) source_;
+ }
+ return com.google.cloud.documentai.v1beta3.Document.getDefaultInstance();
+ } else {
+ if (sourceCase_ == 4) {
+ return inlineDocumentBuilder_.getMessage();
+ }
+ return com.google.cloud.documentai.v1beta3.Document.getDefaultInstance();
+ }
+ }
+ /**
+ *
+ *
+ *
+ * An inline document proto.
+ *
+ *
+ * .google.cloud.documentai.v1beta3.Document inline_document = 4;
+ */
+ public Builder setInlineDocument(com.google.cloud.documentai.v1beta3.Document value) {
+ if (inlineDocumentBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ source_ = value;
+ onChanged();
+ } else {
+ inlineDocumentBuilder_.setMessage(value);
+ }
+ sourceCase_ = 4;
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * An inline document proto.
+ *
+ *
+ * .google.cloud.documentai.v1beta3.Document inline_document = 4;
+ */
+ public Builder setInlineDocument(
+ com.google.cloud.documentai.v1beta3.Document.Builder builderForValue) {
+ if (inlineDocumentBuilder_ == null) {
+ source_ = builderForValue.build();
+ onChanged();
+ } else {
+ inlineDocumentBuilder_.setMessage(builderForValue.build());
+ }
+ sourceCase_ = 4;
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * An inline document proto.
+ *
+ *
+ * .google.cloud.documentai.v1beta3.Document inline_document = 4;
+ */
+ public Builder mergeInlineDocument(com.google.cloud.documentai.v1beta3.Document value) {
+ if (inlineDocumentBuilder_ == null) {
+ if (sourceCase_ == 4
+ && source_ != com.google.cloud.documentai.v1beta3.Document.getDefaultInstance()) {
+ source_ =
+ com.google.cloud.documentai.v1beta3.Document.newBuilder(
+ (com.google.cloud.documentai.v1beta3.Document) source_)
+ .mergeFrom(value)
+ .buildPartial();
+ } else {
+ source_ = value;
+ }
+ onChanged();
+ } else {
+ if (sourceCase_ == 4) {
+ inlineDocumentBuilder_.mergeFrom(value);
+ }
+ inlineDocumentBuilder_.setMessage(value);
+ }
+ sourceCase_ = 4;
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * An inline document proto.
+ *
+ *
+ * .google.cloud.documentai.v1beta3.Document inline_document = 4;
+ */
+ public Builder clearInlineDocument() {
+ if (inlineDocumentBuilder_ == null) {
+ if (sourceCase_ == 4) {
+ sourceCase_ = 0;
+ source_ = null;
+ onChanged();
+ }
+ } else {
+ if (sourceCase_ == 4) {
+ sourceCase_ = 0;
+ source_ = null;
+ }
+ inlineDocumentBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * An inline document proto.
+ *
+ *
+ * .google.cloud.documentai.v1beta3.Document inline_document = 4;
+ */
+ public com.google.cloud.documentai.v1beta3.Document.Builder getInlineDocumentBuilder() {
+ return getInlineDocumentFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ *
+ * An inline document proto.
+ *
+ *
+ * .google.cloud.documentai.v1beta3.Document inline_document = 4;
+ */
+ @java.lang.Override
+ public com.google.cloud.documentai.v1beta3.DocumentOrBuilder getInlineDocumentOrBuilder() {
+ if ((sourceCase_ == 4) && (inlineDocumentBuilder_ != null)) {
+ return inlineDocumentBuilder_.getMessageOrBuilder();
+ } else {
+ if (sourceCase_ == 4) {
+ return (com.google.cloud.documentai.v1beta3.Document) source_;
+ }
+ return com.google.cloud.documentai.v1beta3.Document.getDefaultInstance();
+ }
+ }
+ /**
+ *
+ *
+ *
+ * An inline document proto.
+ *
+ *
+ * .google.cloud.documentai.v1beta3.Document inline_document = 4;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.documentai.v1beta3.Document,
+ com.google.cloud.documentai.v1beta3.Document.Builder,
+ com.google.cloud.documentai.v1beta3.DocumentOrBuilder>
+ getInlineDocumentFieldBuilder() {
+ if (inlineDocumentBuilder_ == null) {
+ if (!(sourceCase_ == 4)) {
+ source_ = com.google.cloud.documentai.v1beta3.Document.getDefaultInstance();
+ }
+ inlineDocumentBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.documentai.v1beta3.Document,
+ com.google.cloud.documentai.v1beta3.Document.Builder,
+ com.google.cloud.documentai.v1beta3.DocumentOrBuilder>(
+ (com.google.cloud.documentai.v1beta3.Document) source_,
+ getParentForChildren(),
+ isClean());
+ source_ = null;
+ }
+ sourceCase_ = 4;
+ onChanged();
+ ;
+ return inlineDocumentBuilder_;
+ }
+
private java.lang.Object humanReviewConfig_ = "";
/**
*
@@ -711,10 +1093,11 @@ public Builder setHumanReviewConfigBytes(com.google.protobuf.ByteString value) {
* The document that needs human review.
*
*
- * .google.cloud.documentai.v1beta3.Document document = 2;
+ * .google.cloud.documentai.v1beta3.Document document = 2 [deprecated = true];
*
* @return Whether the document field is set.
*/
+ @java.lang.Deprecated
public boolean hasDocument() {
return documentBuilder_ != null || document_ != null;
}
@@ -725,10 +1108,11 @@ public boolean hasDocument() {
* The document that needs human review.
*
*
- * .google.cloud.documentai.v1beta3.Document document = 2;
+ * .google.cloud.documentai.v1beta3.Document document = 2 [deprecated = true];
*
* @return The document.
*/
+ @java.lang.Deprecated
public com.google.cloud.documentai.v1beta3.Document getDocument() {
if (documentBuilder_ == null) {
return document_ == null
@@ -745,8 +1129,9 @@ public com.google.cloud.documentai.v1beta3.Document getDocument() {
* The document that needs human review.
*
*
- * .google.cloud.documentai.v1beta3.Document document = 2;
+ * .google.cloud.documentai.v1beta3.Document document = 2 [deprecated = true];
*/
+ @java.lang.Deprecated
public Builder setDocument(com.google.cloud.documentai.v1beta3.Document value) {
if (documentBuilder_ == null) {
if (value == null) {
@@ -767,8 +1152,9 @@ public Builder setDocument(com.google.cloud.documentai.v1beta3.Document value) {
* The document that needs human review.
*
*
- * .google.cloud.documentai.v1beta3.Document document = 2;
+ * .google.cloud.documentai.v1beta3.Document document = 2 [deprecated = true];
*/
+ @java.lang.Deprecated
public Builder setDocument(
com.google.cloud.documentai.v1beta3.Document.Builder builderForValue) {
if (documentBuilder_ == null) {
@@ -787,8 +1173,9 @@ public Builder setDocument(
* The document that needs human review.
*
*
- * .google.cloud.documentai.v1beta3.Document document = 2;
+ * .google.cloud.documentai.v1beta3.Document document = 2 [deprecated = true];
*/
+ @java.lang.Deprecated
public Builder mergeDocument(com.google.cloud.documentai.v1beta3.Document value) {
if (documentBuilder_ == null) {
if (document_ != null) {
@@ -813,8 +1200,9 @@ public Builder mergeDocument(com.google.cloud.documentai.v1beta3.Document value)
* The document that needs human review.
*
*
- * .google.cloud.documentai.v1beta3.Document document = 2;
+ * .google.cloud.documentai.v1beta3.Document document = 2 [deprecated = true];
*/
+ @java.lang.Deprecated
public Builder clearDocument() {
if (documentBuilder_ == null) {
document_ = null;
@@ -833,8 +1221,9 @@ public Builder clearDocument() {
* The document that needs human review.
*
*
- * .google.cloud.documentai.v1beta3.Document document = 2;
+ * .google.cloud.documentai.v1beta3.Document document = 2 [deprecated = true];
*/
+ @java.lang.Deprecated
public com.google.cloud.documentai.v1beta3.Document.Builder getDocumentBuilder() {
onChanged();
@@ -847,8 +1236,9 @@ public com.google.cloud.documentai.v1beta3.Document.Builder getDocumentBuilder()
* The document that needs human review.
*
*
- * .google.cloud.documentai.v1beta3.Document document = 2;
+ * .google.cloud.documentai.v1beta3.Document document = 2 [deprecated = true];
*/
+ @java.lang.Deprecated
public com.google.cloud.documentai.v1beta3.DocumentOrBuilder getDocumentOrBuilder() {
if (documentBuilder_ != null) {
return documentBuilder_.getMessageOrBuilder();
@@ -865,7 +1255,7 @@ public com.google.cloud.documentai.v1beta3.DocumentOrBuilder getDocumentOrBuilde
* The document that needs human review.
*
*
- * .google.cloud.documentai.v1beta3.Document document = 2;
+ * .google.cloud.documentai.v1beta3.Document document = 2 [deprecated = true];
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.documentai.v1beta3.Document,
diff --git a/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/ReviewDocumentRequestOrBuilder.java b/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/ReviewDocumentRequestOrBuilder.java
index a1869ed7..a33ed11f 100644
--- a/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/ReviewDocumentRequestOrBuilder.java
+++ b/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/ReviewDocumentRequestOrBuilder.java
@@ -23,6 +23,41 @@ public interface ReviewDocumentRequestOrBuilder
// @@protoc_insertion_point(interface_extends:google.cloud.documentai.v1beta3.ReviewDocumentRequest)
com.google.protobuf.MessageOrBuilder {
+ /**
+ *
+ *
+ *
+ * An inline document proto.
+ *
+ *
+ * .google.cloud.documentai.v1beta3.Document inline_document = 4;
+ *
+ * @return Whether the inlineDocument field is set.
+ */
+ boolean hasInlineDocument();
+ /**
+ *
+ *
+ *
+ * An inline document proto.
+ *
+ *
+ * .google.cloud.documentai.v1beta3.Document inline_document = 4;
+ *
+ * @return The inlineDocument.
+ */
+ com.google.cloud.documentai.v1beta3.Document getInlineDocument();
+ /**
+ *
+ *
+ *
+ * An inline document proto.
+ *
+ *
+ * .google.cloud.documentai.v1beta3.Document inline_document = 4;
+ */
+ com.google.cloud.documentai.v1beta3.DocumentOrBuilder getInlineDocumentOrBuilder();
+
/**
*
*
@@ -61,10 +96,11 @@ public interface ReviewDocumentRequestOrBuilder
* The document that needs human review.
*
*
- * .google.cloud.documentai.v1beta3.Document document = 2;
+ * .google.cloud.documentai.v1beta3.Document document = 2 [deprecated = true];
*
* @return Whether the document field is set.
*/
+ @java.lang.Deprecated
boolean hasDocument();
/**
*
@@ -73,10 +109,11 @@ public interface ReviewDocumentRequestOrBuilder
* The document that needs human review.
*
*
- * .google.cloud.documentai.v1beta3.Document document = 2;
+ * .google.cloud.documentai.v1beta3.Document document = 2 [deprecated = true];
*
* @return The document.
*/
+ @java.lang.Deprecated
com.google.cloud.documentai.v1beta3.Document getDocument();
/**
*
@@ -85,7 +122,10 @@ public interface ReviewDocumentRequestOrBuilder
* The document that needs human review.
*
*
- * .google.cloud.documentai.v1beta3.Document document = 2;
+ * .google.cloud.documentai.v1beta3.Document document = 2 [deprecated = true];
*/
+ @java.lang.Deprecated
com.google.cloud.documentai.v1beta3.DocumentOrBuilder getDocumentOrBuilder();
+
+ public com.google.cloud.documentai.v1beta3.ReviewDocumentRequest.SourceCase getSourceCase();
}
diff --git a/proto-google-cloud-document-ai-v1beta3/src/main/proto/google/cloud/documentai/v1beta3/document_io.proto b/proto-google-cloud-document-ai-v1beta3/src/main/proto/google/cloud/documentai/v1beta3/document_io.proto
new file mode 100644
index 00000000..4b543961
--- /dev/null
+++ b/proto-google-cloud-document-ai-v1beta3/src/main/proto/google/cloud/documentai/v1beta3/document_io.proto
@@ -0,0 +1,86 @@
+// Copyright 2020 Google LLC
+//
+// Licensed under the Apache License, Version 2.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";
+
+option csharp_namespace = "Google.Cloud.DocumentAI.V1Beta3";
+option go_package = "google.golang.org/genproto/googleapis/cloud/documentai/v1beta3;documentai";
+option java_multiple_files = true;
+option java_outer_classname = "DocumentIoProto";
+option java_package = "com.google.cloud.documentai.v1beta3";
+option php_namespace = "Google\\Cloud\\DocumentAI\\V1beta3";
+option ruby_package = "Google::Cloud::DocumentAI::V1beta3";
+
+// Payload message of raw document content (bytes).
+message RawDocument {
+ // Inline document content.
+ bytes content = 1;
+
+ // An IANA MIME type (RFC6838) indicating the nature and format of the
+ // [content].
+ string mime_type = 2;
+}
+
+// Specifies a document stored on Cloud Storage.
+message GcsDocument {
+ // The Cloud Storage object uri.
+ string gcs_uri = 1;
+
+ // An IANA MIME type (RFC6838) of the content.
+ string mime_type = 2;
+}
+
+// Specifies a set of documents on Cloud Storage.
+message GcsDocuments {
+ // The list of documents.
+ repeated GcsDocument documents = 1;
+}
+
+// Specifies all documents on Cloud Storage with a common prefix.
+message GcsPrefix {
+ // The URI prefix.
+ string gcs_uri_prefix = 1;
+}
+
+// The common config to specify a set of documents used as input.
+message BatchDocumentsInputConfig {
+ // The source.
+ oneof source {
+ // The set of documents that match the specified Cloud Storage [gcs_prefix].
+ GcsPrefix gcs_prefix = 1;
+
+ // The set of documents individually specified on Cloud Storage.
+ GcsDocuments gcs_documents = 2;
+ }
+}
+
+// Config that controls the output of documents. All documents will be written
+// as a JSON file.
+message DocumentOutputConfig {
+ // The configuration used when outputting documents.
+ message GcsOutputConfig {
+ // The Cloud Storage uri (a directory) of the output.
+ string gcs_uri = 1;
+ }
+
+ // The destination of the results.
+ oneof destination {
+ // Output config to write the results to Cloud Storage.
+ GcsOutputConfig gcs_output_config = 1;
+ }
+}
diff --git a/proto-google-cloud-document-ai-v1beta3/src/main/proto/google/cloud/documentai/v1beta3/document_processor_service.proto b/proto-google-cloud-document-ai-v1beta3/src/main/proto/google/cloud/documentai/v1beta3/document_processor_service.proto
index f90d7d04..7c37b406 100644
--- a/proto-google-cloud-document-ai-v1beta3/src/main/proto/google/cloud/documentai/v1beta3/document_processor_service.proto
+++ b/proto-google-cloud-document-ai-v1beta3/src/main/proto/google/cloud/documentai/v1beta3/document_processor_service.proto
@@ -1,4 +1,4 @@
-// Copyright 2020 Google LLC
+// Copyright 2021 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
@@ -21,6 +21,7 @@ import "google/api/client.proto";
import "google/api/field_behavior.proto";
import "google/api/resource.proto";
import "google/cloud/documentai/v1beta3/document.proto";
+import "google/cloud/documentai/v1beta3/document_io.proto";
import "google/longrunning/operations.proto";
import "google/protobuf/field_mask.proto";
import "google/protobuf/timestamp.proto";
@@ -99,6 +100,15 @@ service DocumentProcessorService {
// Request message for the process document method.
message ProcessRequest {
+ // The document payload.
+ oneof source {
+ // An inline document proto.
+ Document inline_document = 4;
+
+ // A raw document content (bytes).
+ RawDocument raw_document = 5;
+ }
+
// Required. The processor resource name.
string name = 1 [
(google.api.field_behavior) = REQUIRED,
@@ -108,13 +118,49 @@ message ProcessRequest {
];
// The document payload, the [content] and [mime_type] fields must be set.
- Document document = 2;
+ Document document = 2 [deprecated = true];
// Whether Human Review feature should be skipped for this request. Default to
// false.
bool skip_human_review = 3;
}
+// The status of human review on a processed document.
+message HumanReviewStatus {
+ // The final state of human review on a processed document.
+ enum State {
+ // Human review state is unspecified. Most likely due to an internal error.
+ 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
+ // been set to skip this document.
+ SKIPPED = 1;
+
+ // Human review validation is triggered and passed, so no review is needed.
+ VALIDATION_PASSED = 2;
+
+ // Human review validation is triggered and the document is under review.
+ IN_PROGRESS = 3;
+
+ // Some error happened during triggering human review, see the
+ // [state_message] for details.
+ ERROR = 4;
+ }
+
+ // The state of human review on the processing request.
+ State state = 1;
+
+ // A message providing more details about the human review state.
+ 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.
+ string human_review_operation = 3;
+}
+
// Response message for the process document method.
message ProcessResponse {
// The document payload, will populate fields based on the processor's
@@ -125,13 +171,18 @@ message ProcessResponse {
// 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.
- string human_review_operation = 2;
+ 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.
message BatchProcessRequest {
// The message for input config in batch process.
message BatchInputConfig {
+ option deprecated = true;
+
// The Cloud Storage location as the source of the document.
string gcs_source = 1;
@@ -143,6 +194,8 @@ message BatchProcessRequest {
// The message for output config in batch process.
message BatchOutputConfig {
+ option deprecated = true;
+
// The output Cloud Storage directory to put the processed documents.
string gcs_destination = 1;
}
@@ -156,10 +209,20 @@ message BatchProcessRequest {
];
// The input config for each single document in the batch process.
- repeated BatchInputConfig input_configs = 2;
+ repeated BatchInputConfig input_configs = 2 [deprecated = true];
// The overall output config for batch process.
- BatchOutputConfig output_config = 3;
+ BatchOutputConfig output_config = 3 [deprecated = true];
+
+ // The input documents for batch process.
+ BatchDocumentsInputConfig input_documents = 5;
+
+ // The overall output config for batch process.
+ DocumentOutputConfig document_output_config = 6;
+
+ // Whether Human Review feature should be skipped for this request. Default to
+ // false.
+ bool skip_human_review = 4;
}
// Response message for batch process document method.
@@ -188,7 +251,10 @@ message BatchProcessMetadata {
// 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.
- string human_review_operation = 4;
+ string human_review_operation = 4 [deprecated = true];
+
+ // The status of human review on the processed document.
+ HumanReviewStatus human_review_status = 5;
}
// Possible states of the batch processing operation.
@@ -234,6 +300,12 @@ message BatchProcessMetadata {
// Request message for review document method.
message ReviewDocumentRequest {
+ // The document payload.
+ oneof source {
+ // An inline document proto.
+ Document inline_document = 4;
+ }
+
// Required. The resource name of the HumanReviewConfig that the document will be
// reviewed with.
string human_review_config = 1 [
@@ -244,7 +316,7 @@ message ReviewDocumentRequest {
];
// The document that needs human review.
- Document document = 2;
+ Document document = 2 [deprecated = true];
}
// Response message for review document method.
@@ -288,4 +360,43 @@ message ReviewDocumentOperationMetadata {
// The last update time of the operation.
google.protobuf.Timestamp update_time = 4;
+
+ // The basic metadata of the long running operation.
+ CommonOperationMetadata common_metadata = 5;
+}
+
+// The common metadata for long running operations.
+message CommonOperationMetadata {
+ // State of the longrunning operation.
+ enum State {
+ // Unspecified state.
+ STATE_UNSPECIFIED = 0;
+
+ // Operation is still running.
+ RUNNING = 1;
+
+ // Operation is being cancelled.
+ CANCELLING = 2;
+
+ // Operation succeeded.
+ SUCCEEDED = 3;
+
+ // Operation failed.
+ FAILED = 4;
+
+ // Operation is cancelled.
+ CANCELLED = 5;
+ }
+
+ // The state of the operation.
+ State state = 1;
+
+ // A message providing more details about the current state of processing.
+ string state_message = 2;
+
+ // The creation time of the operation.
+ google.protobuf.Timestamp create_time = 3;
+
+ // The last update time of the operation.
+ google.protobuf.Timestamp update_time = 4;
}
diff --git a/synth.metadata b/synth.metadata
index f98aea45..68a32363 100644
--- a/synth.metadata
+++ b/synth.metadata
@@ -11,24 +11,24 @@
"git": {
"name": "googleapis",
"remote": "https://github.com/googleapis/googleapis.git",
- "sha": "e8bc4471a88ac5f60defe3ed436f517174e59ba0",
- "internalRef": "357800868"
+ "sha": "1f68cd0c02d6925e97aa5bbb153d70a70554dab0",
+ "internalRef": "357825340"
}
},
{
"git": {
"name": "googleapis",
"remote": "https://github.com/googleapis/googleapis.git",
- "sha": "e8bc4471a88ac5f60defe3ed436f517174e59ba0",
- "internalRef": "357800868"
+ "sha": "1f68cd0c02d6925e97aa5bbb153d70a70554dab0",
+ "internalRef": "357825340"
}
},
{
"git": {
"name": "googleapis",
"remote": "https://github.com/googleapis/googleapis.git",
- "sha": "e8bc4471a88ac5f60defe3ed436f517174e59ba0",
- "internalRef": "357800868"
+ "sha": "1f68cd0c02d6925e97aa5bbb153d70a70554dab0",
+ "internalRef": "357825340"
}
},
{
@@ -260,6 +260,8 @@
"proto-google-cloud-document-ai-v1beta2/src/main/proto/google/cloud/documentai/v1beta2/document.proto",
"proto-google-cloud-document-ai-v1beta2/src/main/proto/google/cloud/documentai/v1beta2/document_understanding.proto",
"proto-google-cloud-document-ai-v1beta2/src/main/proto/google/cloud/documentai/v1beta2/geometry.proto",
+ "proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/BatchDocumentsInputConfig.java",
+ "proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/BatchDocumentsInputConfigOrBuilder.java",
"proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/BatchProcessMetadata.java",
"proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/BatchProcessMetadataOrBuilder.java",
"proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/BatchProcessRequest.java",
@@ -268,12 +270,25 @@
"proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/BatchProcessResponseOrBuilder.java",
"proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/BoundingPoly.java",
"proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/BoundingPolyOrBuilder.java",
+ "proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/CommonOperationMetadata.java",
+ "proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/CommonOperationMetadataOrBuilder.java",
"proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/Document.java",
"proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/DocumentAiProcessorService.java",
+ "proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/DocumentIoProto.java",
"proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/DocumentOrBuilder.java",
+ "proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/DocumentOutputConfig.java",
+ "proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/DocumentOutputConfigOrBuilder.java",
"proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/DocumentProto.java",
+ "proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/GcsDocument.java",
+ "proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/GcsDocumentOrBuilder.java",
+ "proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/GcsDocuments.java",
+ "proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/GcsDocumentsOrBuilder.java",
+ "proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/GcsPrefix.java",
+ "proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/GcsPrefixOrBuilder.java",
"proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/GeometryProto.java",
"proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/HumanReviewConfigName.java",
+ "proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/HumanReviewStatus.java",
+ "proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/HumanReviewStatusOrBuilder.java",
"proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/NormalizedVertex.java",
"proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/NormalizedVertexOrBuilder.java",
"proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/ProcessRequest.java",
@@ -281,6 +296,8 @@
"proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/ProcessResponse.java",
"proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/ProcessResponseOrBuilder.java",
"proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/ProcessorName.java",
+ "proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/RawDocument.java",
+ "proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/RawDocumentOrBuilder.java",
"proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/ReviewDocumentOperationMetadata.java",
"proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/ReviewDocumentOperationMetadataOrBuilder.java",
"proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/ReviewDocumentRequest.java",
@@ -290,6 +307,7 @@
"proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/Vertex.java",
"proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/VertexOrBuilder.java",
"proto-google-cloud-document-ai-v1beta3/src/main/proto/google/cloud/documentai/v1beta3/document.proto",
+ "proto-google-cloud-document-ai-v1beta3/src/main/proto/google/cloud/documentai/v1beta3/document_io.proto",
"proto-google-cloud-document-ai-v1beta3/src/main/proto/google/cloud/documentai/v1beta3/document_processor_service.proto",
"proto-google-cloud-document-ai-v1beta3/src/main/proto/google/cloud/documentai/v1beta3/geometry.proto",
"renovate.json",
From 7fd13d04dd3064600151250540d329d0a40b4866 Mon Sep 17 00:00:00 2001
From: Yoshi Automation Bot
Date: Fri, 19 Feb 2021 07:46:14 -0800
Subject: [PATCH 23/27] build: reduce download junk in log files (#353)
This PR was generated using Autosynth. :rainbow:
Synth log will be available here:
https://source.cloud.google.com/results/invocations/682cf367-d29a-4ee1-a7e2-16a6514bb004/targets
- [ ] To automatically regenerate this PR, check this box.
Source-Link: https://github.com/googleapis/synthtool/commit/6946fd71ae9215b0e7ae188f5057df765ee6d7d2
---
.kokoro/build.sh | 2 +-
.kokoro/dependencies.sh | 4 ++--
synth.metadata | 4 ++--
3 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/.kokoro/build.sh b/.kokoro/build.sh
index 099b7844..3ad1501b 100755
--- a/.kokoro/build.sh
+++ b/.kokoro/build.sh
@@ -29,7 +29,7 @@ echo ${JOB_TYPE}
# attempt to install 3 times with exponential backoff (starting with 10 seconds)
retry_with_backoff 3 10 \
- mvn install -B -V \
+ mvn install -B -V -ntp \
-DskipTests=true \
-Dclirr.skip=true \
-Denforcer.skip=true \
diff --git a/.kokoro/dependencies.sh b/.kokoro/dependencies.sh
index c91e5a56..0fb8c843 100755
--- a/.kokoro/dependencies.sh
+++ b/.kokoro/dependencies.sh
@@ -31,7 +31,7 @@ export MAVEN_OPTS="-Xmx1024m -XX:MaxPermSize=128m"
# this should run maven enforcer
retry_with_backoff 3 10 \
- mvn install -B -V \
+ mvn install -B -V -ntp \
-DskipTests=true \
-Dclirr.skip=true
@@ -86,4 +86,4 @@ then
else
msg "Errors found. See log statements above."
exit 1
-fi
\ No newline at end of file
+fi
diff --git a/synth.metadata b/synth.metadata
index 68a32363..137e07a3 100644
--- a/synth.metadata
+++ b/synth.metadata
@@ -4,7 +4,7 @@
"git": {
"name": ".",
"remote": "https://github.com/googleapis/java-document-ai.git",
- "sha": "96a788123b45d557602041c180fee8ea1ddb4aec"
+ "sha": "c752c99233a04bbc56c739b64a7b6cfd857e7932"
}
},
{
@@ -35,7 +35,7 @@
"git": {
"name": "synthtool",
"remote": "https://github.com/googleapis/synthtool.git",
- "sha": "1aeca92e4a38f47134cb955f52ea76f84f09ff88"
+ "sha": "6946fd71ae9215b0e7ae188f5057df765ee6d7d2"
}
}
],
From 83c52c9dbd63690e3e98d261a4660aa1040b51f0 Mon Sep 17 00:00:00 2001
From: WhiteSource Renovate
Date: Fri, 19 Feb 2021 22:54:49 +0100
Subject: [PATCH 24/27] deps: update dependency
com.google.cloud:google-cloud-storage to v1.113.10 (#350)
---
samples/install-without-bom/pom.xml | 2 +-
samples/snapshot/pom.xml | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml
index 14cf49e5..0b506b4b 100644
--- a/samples/install-without-bom/pom.xml
+++ b/samples/install-without-bom/pom.xml
@@ -35,7 +35,7 @@
com.google.cloud
google-cloud-storage
- 1.113.9
+ 1.113.10
junit
diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml
index 759a03ab..0f2b1933 100644
--- a/samples/snapshot/pom.xml
+++ b/samples/snapshot/pom.xml
@@ -34,7 +34,7 @@
com.google.cloud
google-cloud-storage
- 1.113.9
+ 1.113.10
junit
From 2d0eb7db0a7c2c436f57e931a2920ebded3c05ec Mon Sep 17 00:00:00 2001
From: Yoshi Automation Bot
Date: Mon, 22 Feb 2021 09:02:02 -0800
Subject: [PATCH 25/27] chore: release gapic-generator-java v0.0.21 with
gapic_metadata.json support (#355)
This PR was generated using Autosynth. :rainbow:
Synth log will be available here:
https://source.cloud.google.com/results/invocations/22a7be92-b776-449e-a494-48e8e7d7e91c/targets
- [ ] To automatically regenerate this PR, check this box.
PiperOrigin-RevId: 358516065
Source-Link: https://github.com/googleapis/googleapis/commit/af8f71dae961ee036a0ac52a1965270149a6b2c9
---
.../documentai/v1beta1/gapic_metadata.json | 21 +++++++++++++++
.../documentai/v1beta2/gapic_metadata.json | 24 +++++++++++++++++
.../documentai/v1beta3/gapic_metadata.json | 27 +++++++++++++++++++
synth.metadata | 17 +++++++-----
4 files changed, 82 insertions(+), 7 deletions(-)
create mode 100644 google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1beta1/gapic_metadata.json
create mode 100644 google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1beta2/gapic_metadata.json
create mode 100644 google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1beta3/gapic_metadata.json
diff --git a/google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1beta1/gapic_metadata.json b/google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1beta1/gapic_metadata.json
new file mode 100644
index 00000000..62c7a3bc
--- /dev/null
+++ b/google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1beta1/gapic_metadata.json
@@ -0,0 +1,21 @@
+{
+ "schema": "1.0",
+ "comment": "This file maps proto services/RPCs to the corresponding library clients/methods",
+ "language": "java",
+ "protoPackage": "google.cloud.documentai.v1beta1",
+ "libraryPackage": "com.google.cloud.documentai.v1beta1",
+ "services": {
+ "DocumentUnderstandingService": {
+ "clients": {
+ "grpc": {
+ "libraryClient": "DocumentUnderstandingServiceClient",
+ "rpcs": {
+ "BatchProcessDocuments": {
+ "methods": ["batchProcessDocumentsAsync", "batchProcessDocumentsAsync", "batchProcessDocumentsOperationCallable", "batchProcessDocumentsCallable"]
+ }
+ }
+ }
+ }
+ }
+ }
+}
\ No newline at end of file
diff --git a/google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1beta2/gapic_metadata.json b/google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1beta2/gapic_metadata.json
new file mode 100644
index 00000000..4704ea7c
--- /dev/null
+++ b/google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1beta2/gapic_metadata.json
@@ -0,0 +1,24 @@
+{
+ "schema": "1.0",
+ "comment": "This file maps proto services/RPCs to the corresponding library clients/methods",
+ "language": "java",
+ "protoPackage": "google.cloud.documentai.v1beta2",
+ "libraryPackage": "com.google.cloud.documentai.v1beta2",
+ "services": {
+ "DocumentUnderstandingService": {
+ "clients": {
+ "grpc": {
+ "libraryClient": "DocumentUnderstandingServiceClient",
+ "rpcs": {
+ "BatchProcessDocuments": {
+ "methods": ["batchProcessDocumentsAsync", "batchProcessDocumentsAsync", "batchProcessDocumentsOperationCallable", "batchProcessDocumentsCallable"]
+ },
+ "ProcessDocument": {
+ "methods": ["processDocument", "processDocumentCallable"]
+ }
+ }
+ }
+ }
+ }
+ }
+}
\ No newline at end of file
diff --git a/google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1beta3/gapic_metadata.json b/google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1beta3/gapic_metadata.json
new file mode 100644
index 00000000..7fc33b6f
--- /dev/null
+++ b/google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1beta3/gapic_metadata.json
@@ -0,0 +1,27 @@
+{
+ "schema": "1.0",
+ "comment": "This file maps proto services/RPCs to the corresponding library clients/methods",
+ "language": "java",
+ "protoPackage": "google.cloud.documentai.v1beta3",
+ "libraryPackage": "com.google.cloud.documentai.v1beta3",
+ "services": {
+ "DocumentProcessorService": {
+ "clients": {
+ "grpc": {
+ "libraryClient": "DocumentProcessorServiceClient",
+ "rpcs": {
+ "BatchProcessDocuments": {
+ "methods": ["batchProcessDocumentsAsync", "batchProcessDocumentsAsync", "batchProcessDocumentsAsync", "batchProcessDocumentsOperationCallable", "batchProcessDocumentsCallable"]
+ },
+ "ProcessDocument": {
+ "methods": ["processDocument", "processDocument", "processDocument", "processDocumentCallable"]
+ },
+ "ReviewDocument": {
+ "methods": ["reviewDocumentAsync", "reviewDocumentAsync", "reviewDocumentAsync", "reviewDocumentOperationCallable", "reviewDocumentCallable"]
+ }
+ }
+ }
+ }
+ }
+ }
+}
\ No newline at end of file
diff --git a/synth.metadata b/synth.metadata
index 137e07a3..a7bd9e70 100644
--- a/synth.metadata
+++ b/synth.metadata
@@ -4,31 +4,31 @@
"git": {
"name": ".",
"remote": "https://github.com/googleapis/java-document-ai.git",
- "sha": "c752c99233a04bbc56c739b64a7b6cfd857e7932"
+ "sha": "83c52c9dbd63690e3e98d261a4660aa1040b51f0"
}
},
{
"git": {
"name": "googleapis",
"remote": "https://github.com/googleapis/googleapis.git",
- "sha": "1f68cd0c02d6925e97aa5bbb153d70a70554dab0",
- "internalRef": "357825340"
+ "sha": "af8f71dae961ee036a0ac52a1965270149a6b2c9",
+ "internalRef": "358516065"
}
},
{
"git": {
"name": "googleapis",
"remote": "https://github.com/googleapis/googleapis.git",
- "sha": "1f68cd0c02d6925e97aa5bbb153d70a70554dab0",
- "internalRef": "357825340"
+ "sha": "af8f71dae961ee036a0ac52a1965270149a6b2c9",
+ "internalRef": "358516065"
}
},
{
"git": {
"name": "googleapis",
"remote": "https://github.com/googleapis/googleapis.git",
- "sha": "1f68cd0c02d6925e97aa5bbb153d70a70554dab0",
- "internalRef": "357825340"
+ "sha": "af8f71dae961ee036a0ac52a1965270149a6b2c9",
+ "internalRef": "358516065"
}
},
{
@@ -137,6 +137,7 @@
"codecov.yaml",
"google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1beta1/DocumentUnderstandingServiceClient.java",
"google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1beta1/DocumentUnderstandingServiceSettings.java",
+ "google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1beta1/gapic_metadata.json",
"google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1beta1/package-info.java",
"google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1beta1/stub/DocumentUnderstandingServiceStub.java",
"google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1beta1/stub/DocumentUnderstandingServiceStubSettings.java",
@@ -144,6 +145,7 @@
"google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1beta1/stub/GrpcDocumentUnderstandingServiceStub.java",
"google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1beta2/DocumentUnderstandingServiceClient.java",
"google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1beta2/DocumentUnderstandingServiceSettings.java",
+ "google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1beta2/gapic_metadata.json",
"google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1beta2/package-info.java",
"google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1beta2/stub/DocumentUnderstandingServiceStub.java",
"google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1beta2/stub/DocumentUnderstandingServiceStubSettings.java",
@@ -151,6 +153,7 @@
"google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1beta2/stub/GrpcDocumentUnderstandingServiceStub.java",
"google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1beta3/DocumentProcessorServiceClient.java",
"google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1beta3/DocumentProcessorServiceSettings.java",
+ "google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1beta3/gapic_metadata.json",
"google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1beta3/package-info.java",
"google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1beta3/stub/DocumentProcessorServiceStub.java",
"google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1beta3/stub/DocumentProcessorServiceStubSettings.java",
From b5cc196ebd9b3fb4c7a2935b4adde9eb111eb140 Mon Sep 17 00:00:00 2001
From: WhiteSource Renovate
Date: Tue, 23 Feb 2021 01:13:14 +0100
Subject: [PATCH 26/27] deps: update dependency
com.google.cloud:google-cloud-shared-dependencies to v0.19.0 (#354)
---
pom.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pom.xml b/pom.xml
index 6c4c4bd9..acc288da 100644
--- a/pom.xml
+++ b/pom.xml
@@ -101,7 +101,7 @@
com.google.cloud
google-cloud-shared-dependencies
- 0.18.0
+ 0.19.0
pom
import
From 8351e4cb41be0df62c608cdfb938fc261a30faeb Mon Sep 17 00:00:00 2001
From: "release-please[bot]"
<55107282+release-please[bot]@users.noreply.github.com>
Date: Tue, 23 Feb 2021 00:26:04 +0000
Subject: [PATCH 27/27] chore(master): release 0.4.0 (#339)
:robot: I have created a release \*beep\* \*boop\*
---
## [0.4.0](https://www.github.com/googleapis/java-document-ai/compare/v0.3.9...v0.4.0) (2021-02-23)
### Features
* Update documentai/v1beta3 protos ([#351](https://www.github.com/googleapis/java-document-ai/issues/351)) ([c752c99](https://www.github.com/googleapis/java-document-ai/commit/c752c99233a04bbc56c739b64a7b6cfd857e7932))
### Documentation
* generate sample code in the Java microgenerator ([#338](https://www.github.com/googleapis/java-document-ai/issues/338)) ([33a1eda](https://www.github.com/googleapis/java-document-ai/commit/33a1eda531d6c5d71a49976fa31bbaf0754cf83a))
### Dependencies
* update dependency com.google.cloud:google-cloud-shared-dependencies to v0.19.0 ([#354](https://www.github.com/googleapis/java-document-ai/issues/354)) ([b5cc196](https://www.github.com/googleapis/java-document-ai/commit/b5cc196ebd9b3fb4c7a2935b4adde9eb111eb140))
* update dependency com.google.cloud:google-cloud-storage to v1.113.10 ([#350](https://www.github.com/googleapis/java-document-ai/issues/350)) ([83c52c9](https://www.github.com/googleapis/java-document-ai/commit/83c52c9dbd63690e3e98d261a4660aa1040b51f0))
---
This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
---
CHANGELOG.md | 18 ++++++++++++++++++
google-cloud-document-ai-bom/pom.xml | 16 ++++++++--------
google-cloud-document-ai/pom.xml | 4 ++--
grpc-google-cloud-document-ai-v1beta1/pom.xml | 4 ++--
grpc-google-cloud-document-ai-v1beta2/pom.xml | 4 ++--
grpc-google-cloud-document-ai-v1beta3/pom.xml | 4 ++--
pom.xml | 14 +++++++-------
proto-google-cloud-document-ai-v1beta1/pom.xml | 4 ++--
proto-google-cloud-document-ai-v1beta2/pom.xml | 4 ++--
proto-google-cloud-document-ai-v1beta3/pom.xml | 4 ++--
versions.txt | 14 +++++++-------
11 files changed, 54 insertions(+), 36 deletions(-)
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 4269d62a..2e6f1dad 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,5 +1,23 @@
# Changelog
+## [0.4.0](https://www.github.com/googleapis/java-document-ai/compare/v0.3.9...v0.4.0) (2021-02-23)
+
+
+### Features
+
+* Update documentai/v1beta3 protos ([#351](https://www.github.com/googleapis/java-document-ai/issues/351)) ([c752c99](https://www.github.com/googleapis/java-document-ai/commit/c752c99233a04bbc56c739b64a7b6cfd857e7932))
+
+
+### Documentation
+
+* generate sample code in the Java microgenerator ([#338](https://www.github.com/googleapis/java-document-ai/issues/338)) ([33a1eda](https://www.github.com/googleapis/java-document-ai/commit/33a1eda531d6c5d71a49976fa31bbaf0754cf83a))
+
+
+### Dependencies
+
+* update dependency com.google.cloud:google-cloud-shared-dependencies to v0.19.0 ([#354](https://www.github.com/googleapis/java-document-ai/issues/354)) ([b5cc196](https://www.github.com/googleapis/java-document-ai/commit/b5cc196ebd9b3fb4c7a2935b4adde9eb111eb140))
+* update dependency com.google.cloud:google-cloud-storage to v1.113.10 ([#350](https://www.github.com/googleapis/java-document-ai/issues/350)) ([83c52c9](https://www.github.com/googleapis/java-document-ai/commit/83c52c9dbd63690e3e98d261a4660aa1040b51f0))
+
### [0.3.9](https://www.github.com/googleapis/java-document-ai/compare/v0.3.8...v0.3.9) (2021-01-14)
diff --git a/google-cloud-document-ai-bom/pom.xml b/google-cloud-document-ai-bom/pom.xml
index c6189df3..e16fb8da 100644
--- a/google-cloud-document-ai-bom/pom.xml
+++ b/google-cloud-document-ai-bom/pom.xml
@@ -3,7 +3,7 @@
4.0.0
com.google.cloud
google-cloud-document-ai-bom
- 0.3.10-SNAPSHOT
+ 0.4.0
pom
com.google.cloud
@@ -61,37 +61,37 @@
com.google.api.grpc
proto-google-cloud-document-ai-v1beta1
- 0.3.10-SNAPSHOT
+ 0.4.0
com.google.api.grpc
proto-google-cloud-document-ai-v1beta2
- 0.3.10-SNAPSHOT
+ 0.4.0
com.google.api.grpc
proto-google-cloud-document-ai-v1beta3
- 0.3.10-SNAPSHOT
+ 0.4.0
com.google.api.grpc
grpc-google-cloud-document-ai-v1beta1
- 0.3.10-SNAPSHOT
+ 0.4.0
com.google.api.grpc
grpc-google-cloud-document-ai-v1beta2
- 0.3.10-SNAPSHOT
+ 0.4.0
com.google.api.grpc
grpc-google-cloud-document-ai-v1beta3
- 0.3.10-SNAPSHOT
+ 0.4.0
com.google.cloud
google-cloud-document-ai
- 0.3.10-SNAPSHOT
+ 0.4.0