diff --git a/java-document-ai/README.md b/java-document-ai/README.md index 0b47998eb002..6ff9219bcf8e 100644 --- a/java-document-ai/README.md +++ b/java-document-ai/README.md @@ -19,20 +19,20 @@ If you are using Maven, add this to your pom.xml file: com.google.cloud google-cloud-document-ai - 2.13.0 + 2.14.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-document-ai:2.13.0' +implementation 'com.google.cloud:google-cloud-document-ai:2.14.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-document-ai" % "2.13.0" +libraryDependencies += "com.google.cloud" % "google-cloud-document-ai" % "2.14.0" ``` ## Authentication diff --git a/java-document-ai/google-cloud-document-ai/src/test/java/com/google/cloud/documentai/v1beta3/DocumentProcessorServiceClientHttpJsonTest.java b/java-document-ai/google-cloud-document-ai/src/test/java/com/google/cloud/documentai/v1beta3/DocumentProcessorServiceClientHttpJsonTest.java index 504cb6a2a737..924a7d9f4a7a 100644 --- a/java-document-ai/google-cloud-document-ai/src/test/java/com/google/cloud/documentai/v1beta3/DocumentProcessorServiceClientHttpJsonTest.java +++ b/java-document-ai/google-cloud-document-ai/src/test/java/com/google/cloud/documentai/v1beta3/DocumentProcessorServiceClientHttpJsonTest.java @@ -886,6 +886,7 @@ public void getProcessorVersionTest() throws Exception { .setDisplayName("displayName1714148973") .setDocumentSchema(DocumentSchema.newBuilder().build()) .setCreateTime(Timestamp.newBuilder().build()) + .setLatestEvaluation(EvaluationReference.newBuilder().build()) .setKmsKeyName("kmsKeyName412586233") .setKmsKeyVersionName("kmsKeyVersionName-1798811307") .setGoogleManaged(true) @@ -942,6 +943,7 @@ public void getProcessorVersionTest2() throws Exception { .setDisplayName("displayName1714148973") .setDocumentSchema(DocumentSchema.newBuilder().build()) .setCreateTime(Timestamp.newBuilder().build()) + .setLatestEvaluation(EvaluationReference.newBuilder().build()) .setKmsKeyName("kmsKeyName412586233") .setKmsKeyVersionName("kmsKeyVersionName-1798811307") .setGoogleManaged(true) diff --git a/java-document-ai/google-cloud-document-ai/src/test/java/com/google/cloud/documentai/v1beta3/DocumentProcessorServiceClientTest.java b/java-document-ai/google-cloud-document-ai/src/test/java/com/google/cloud/documentai/v1beta3/DocumentProcessorServiceClientTest.java index 4ca45ddda9c2..9f38794f7fe9 100644 --- a/java-document-ai/google-cloud-document-ai/src/test/java/com/google/cloud/documentai/v1beta3/DocumentProcessorServiceClientTest.java +++ b/java-document-ai/google-cloud-document-ai/src/test/java/com/google/cloud/documentai/v1beta3/DocumentProcessorServiceClientTest.java @@ -812,6 +812,7 @@ public void getProcessorVersionTest() throws Exception { .setDisplayName("displayName1714148973") .setDocumentSchema(DocumentSchema.newBuilder().build()) .setCreateTime(Timestamp.newBuilder().build()) + .setLatestEvaluation(EvaluationReference.newBuilder().build()) .setKmsKeyName("kmsKeyName412586233") .setKmsKeyVersionName("kmsKeyVersionName-1798811307") .setGoogleManaged(true) @@ -862,6 +863,7 @@ public void getProcessorVersionTest2() throws Exception { .setDisplayName("displayName1714148973") .setDocumentSchema(DocumentSchema.newBuilder().build()) .setCreateTime(Timestamp.newBuilder().build()) + .setLatestEvaluation(EvaluationReference.newBuilder().build()) .setKmsKeyName("kmsKeyName412586233") .setKmsKeyVersionName("kmsKeyVersionName-1798811307") .setGoogleManaged(true) diff --git a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/Document.java b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/Document.java index 2737d3447e3e..6678a3a65a22 100644 --- a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/Document.java +++ b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/Document.java @@ -54071,10 +54071,13 @@ public interface ProvenanceOrBuilder * The index of the revision that produced this element. * * - * int32 revision = 1; + * int32 revision = 1 [deprecated = true]; * + * @deprecated google.cloud.documentai.v1beta3.Document.Provenance.revision is deprecated. See + * google/cloud/documentai/v1beta3/document.proto;l=763 * @return The revision. */ + @java.lang.Deprecated int getRevision(); /** @@ -54088,7 +54091,7 @@ public interface ProvenanceOrBuilder * int32 id = 2 [deprecated = true]; * * @deprecated google.cloud.documentai.v1beta3.Document.Provenance.id is deprecated. See - * google/cloud/documentai/v1beta3/document.proto;l=760 + * google/cloud/documentai/v1beta3/document.proto;l=767 * @return The id. */ @java.lang.Deprecated @@ -54274,42 +54277,60 @@ public enum OperationType implements com.google.protobuf.ProtocolMessageEnum { * * *
-       * Replace an element identified by `parent`.
+       * Updates any fields within the given provenance scope of the message. It
+       * 'overwrites'  the fields rather than replacing them.  This is
+       * especially relevant when we just want to update a field value of an
+       * entity without also affecting all the child properties.
+       * 
+ * + * UPDATE = 7; + */ + UPDATE(7), + /** + * + * + *
+       * Currently unused. Replace an element identified by `parent`.
        * 
* - * REPLACE = 3; + * REPLACE = 3 [deprecated = true]; */ + @java.lang.Deprecated REPLACE(3), /** * * *
-       * Request human review for the element identified by `parent`.
+       * Deprecated. Request human review for the element identified by
+       * `parent`.
        * 
* - * EVAL_REQUESTED = 4; + * EVAL_REQUESTED = 4 [deprecated = true]; */ + @java.lang.Deprecated EVAL_REQUESTED(4), /** * * *
-       * Element is reviewed and approved at human review, confidence will be
-       * set to 1.0.
+       * Deprecated. Element is reviewed and approved at human review,
+       * confidence will be set to 1.0.
        * 
* - * EVAL_APPROVED = 5; + * EVAL_APPROVED = 5 [deprecated = true]; */ + @java.lang.Deprecated EVAL_APPROVED(5), /** * * *
-       * Element is skipped in the validation process.
+       * Deprecated. Element is skipped in the validation process.
        * 
* - * EVAL_SKIPPED = 6; + * EVAL_SKIPPED = 6 [deprecated = true]; */ + @java.lang.Deprecated EVAL_SKIPPED(6), UNRECOGNIZED(-1), ; @@ -54349,43 +54370,57 @@ public enum OperationType implements com.google.protobuf.ProtocolMessageEnum { * * *
-       * Replace an element identified by `parent`.
+       * Updates any fields within the given provenance scope of the message. It
+       * 'overwrites'  the fields rather than replacing them.  This is
+       * especially relevant when we just want to update a field value of an
+       * entity without also affecting all the child properties.
        * 
* - * REPLACE = 3; + * UPDATE = 7; */ - public static final int REPLACE_VALUE = 3; + public static final int UPDATE_VALUE = 7; /** * * *
-       * Request human review for the element identified by `parent`.
+       * Currently unused. Replace an element identified by `parent`.
        * 
* - * EVAL_REQUESTED = 4; + * REPLACE = 3 [deprecated = true]; */ - public static final int EVAL_REQUESTED_VALUE = 4; + @java.lang.Deprecated public static final int REPLACE_VALUE = 3; /** * * *
-       * Element is reviewed and approved at human review, confidence will be
-       * set to 1.0.
+       * Deprecated. Request human review for the element identified by
+       * `parent`.
        * 
* - * EVAL_APPROVED = 5; + * EVAL_REQUESTED = 4 [deprecated = true]; */ - public static final int EVAL_APPROVED_VALUE = 5; + @java.lang.Deprecated public static final int EVAL_REQUESTED_VALUE = 4; /** * * *
-       * Element is skipped in the validation process.
+       * Deprecated. Element is reviewed and approved at human review,
+       * confidence will be set to 1.0.
        * 
* - * EVAL_SKIPPED = 6; + * EVAL_APPROVED = 5 [deprecated = true]; */ - public static final int EVAL_SKIPPED_VALUE = 6; + @java.lang.Deprecated public static final int EVAL_APPROVED_VALUE = 5; + /** + * + * + *
+       * Deprecated. Element is skipped in the validation process.
+       * 
+ * + * EVAL_SKIPPED = 6 [deprecated = true]; + */ + @java.lang.Deprecated public static final int EVAL_SKIPPED_VALUE = 6; public final int getNumber() { if (this == UNRECOGNIZED) { @@ -54417,6 +54452,8 @@ public static OperationType forNumber(int value) { return ADD; case 2: return REMOVE; + case 7: + return UPDATE; case 3: return REPLACE; case 4: @@ -55282,11 +55319,14 @@ public com.google.protobuf.Parser getParserForType() { * The index of the revision that produced this element. * * - * int32 revision = 1; + * int32 revision = 1 [deprecated = true]; * + * @deprecated google.cloud.documentai.v1beta3.Document.Provenance.revision is deprecated. See + * google/cloud/documentai/v1beta3/document.proto;l=763 * @return The revision. */ @java.lang.Override + @java.lang.Deprecated public int getRevision() { return revision_; } @@ -55304,7 +55344,7 @@ public int getRevision() { * int32 id = 2 [deprecated = true]; * * @deprecated google.cloud.documentai.v1beta3.Document.Provenance.id is deprecated. See - * google/cloud/documentai/v1beta3/document.proto;l=760 + * google/cloud/documentai/v1beta3/document.proto;l=767 * @return The id. */ @java.lang.Override @@ -55906,11 +55946,14 @@ public Builder mergeFrom( * The index of the revision that produced this element. * * - * int32 revision = 1; + * int32 revision = 1 [deprecated = true]; * + * @deprecated google.cloud.documentai.v1beta3.Document.Provenance.revision is deprecated. See + * google/cloud/documentai/v1beta3/document.proto;l=763 * @return The revision. */ @java.lang.Override + @java.lang.Deprecated public int getRevision() { return revision_; } @@ -55921,11 +55964,14 @@ public int getRevision() { * The index of the revision that produced this element. * * - * int32 revision = 1; + * int32 revision = 1 [deprecated = true]; * + * @deprecated google.cloud.documentai.v1beta3.Document.Provenance.revision is deprecated. See + * google/cloud/documentai/v1beta3/document.proto;l=763 * @param value The revision to set. * @return This builder for chaining. */ + @java.lang.Deprecated public Builder setRevision(int value) { revision_ = value; @@ -55940,10 +55986,13 @@ public Builder setRevision(int value) { * The index of the revision that produced this element. * * - * int32 revision = 1; + * int32 revision = 1 [deprecated = true]; * + * @deprecated google.cloud.documentai.v1beta3.Document.Provenance.revision is deprecated. See + * google/cloud/documentai/v1beta3/document.proto;l=763 * @return This builder for chaining. */ + @java.lang.Deprecated public Builder clearRevision() { bitField0_ = (bitField0_ & ~0x00000001); revision_ = 0; @@ -55963,7 +56012,7 @@ public Builder clearRevision() { * int32 id = 2 [deprecated = true]; * * @deprecated google.cloud.documentai.v1beta3.Document.Provenance.id is deprecated. See - * google/cloud/documentai/v1beta3/document.proto;l=760 + * google/cloud/documentai/v1beta3/document.proto;l=767 * @return The id. */ @java.lang.Override @@ -55982,7 +56031,7 @@ public int getId() { * int32 id = 2 [deprecated = true]; * * @deprecated google.cloud.documentai.v1beta3.Document.Provenance.id is deprecated. See - * google/cloud/documentai/v1beta3/document.proto;l=760 + * google/cloud/documentai/v1beta3/document.proto;l=767 * @param value The id to set. * @return This builder for chaining. */ @@ -56005,7 +56054,7 @@ public Builder setId(int value) { * int32 id = 2 [deprecated = true]; * * @deprecated google.cloud.documentai.v1beta3.Document.Provenance.id is deprecated. See - * google/cloud/documentai/v1beta3/document.proto;l=760 + * google/cloud/documentai/v1beta3/document.proto;l=767 * @return This builder for chaining. */ @java.lang.Deprecated @@ -56650,7 +56699,8 @@ public interface RevisionOrBuilder * * *
-     * Id of the revision.  Unique within the context of the document.
+     * Id of the revision, internally generated by doc proto storage.
+     * Unique within the context of the document.
      * 
* * string id = 1; @@ -56662,7 +56712,8 @@ public interface RevisionOrBuilder * * *
-     * Id of the revision.  Unique within the context of the document.
+     * Id of the revision, internally generated by doc proto storage.
+     * Unique within the context of the document.
      * 
* * string id = 1; @@ -56683,7 +56734,7 @@ public interface RevisionOrBuilder * repeated int32 parent = 2 [deprecated = true]; * * @deprecated google.cloud.documentai.v1beta3.Document.Revision.parent is deprecated. See - * google/cloud/documentai/v1beta3/document.proto;l=798 + * google/cloud/documentai/v1beta3/document.proto;l=806 * @return A list containing the parent. */ @java.lang.Deprecated @@ -56700,7 +56751,7 @@ public interface RevisionOrBuilder * repeated int32 parent = 2 [deprecated = true]; * * @deprecated google.cloud.documentai.v1beta3.Document.Revision.parent is deprecated. See - * google/cloud/documentai/v1beta3/document.proto;l=798 + * google/cloud/documentai/v1beta3/document.proto;l=806 * @return The count of parent. */ @java.lang.Deprecated @@ -56717,7 +56768,7 @@ public interface RevisionOrBuilder * repeated int32 parent = 2 [deprecated = true]; * * @deprecated google.cloud.documentai.v1beta3.Document.Revision.parent is deprecated. See - * google/cloud/documentai/v1beta3/document.proto;l=798 + * google/cloud/documentai/v1beta3/document.proto;l=806 * @param index The index of the element to return. * @return The parent at the given index. */ @@ -56787,7 +56838,8 @@ public interface RevisionOrBuilder * * *
-     * The time that the revision was created.
+     * The time that the revision was created, internally generated by
+     * doc proto storage at the time of create.
      * 
* * .google.protobuf.Timestamp create_time = 3; @@ -56799,7 +56851,8 @@ public interface RevisionOrBuilder * * *
-     * The time that the revision was created.
+     * The time that the revision was created, internally generated by
+     * doc proto storage at the time of create.
      * 
* * .google.protobuf.Timestamp create_time = 3; @@ -56811,7 +56864,8 @@ public interface RevisionOrBuilder * * *
-     * The time that the revision was created.
+     * The time that the revision was created, internally generated by
+     * doc proto storage at the time of create.
      * 
* * .google.protobuf.Timestamp create_time = 3; @@ -57983,7 +58037,8 @@ public com.google.protobuf.ByteString getProcessorBytes() { * * *
-     * Id of the revision.  Unique within the context of the document.
+     * Id of the revision, internally generated by doc proto storage.
+     * Unique within the context of the document.
      * 
* * string id = 1; @@ -58006,7 +58061,8 @@ public java.lang.String getId() { * * *
-     * Id of the revision.  Unique within the context of the document.
+     * Id of the revision, internally generated by doc proto storage.
+     * Unique within the context of the document.
      * 
* * string id = 1; @@ -58042,7 +58098,7 @@ public com.google.protobuf.ByteString getIdBytes() { * repeated int32 parent = 2 [deprecated = true]; * * @deprecated google.cloud.documentai.v1beta3.Document.Revision.parent is deprecated. See - * google/cloud/documentai/v1beta3/document.proto;l=798 + * google/cloud/documentai/v1beta3/document.proto;l=806 * @return A list containing the parent. */ @java.lang.Override @@ -58062,7 +58118,7 @@ public java.util.List getParentList() { * repeated int32 parent = 2 [deprecated = true]; * * @deprecated google.cloud.documentai.v1beta3.Document.Revision.parent is deprecated. See - * google/cloud/documentai/v1beta3/document.proto;l=798 + * google/cloud/documentai/v1beta3/document.proto;l=806 * @return The count of parent. */ @java.lang.Deprecated @@ -58081,7 +58137,7 @@ public int getParentCount() { * repeated int32 parent = 2 [deprecated = true]; * * @deprecated google.cloud.documentai.v1beta3.Document.Revision.parent is deprecated. See - * google/cloud/documentai/v1beta3/document.proto;l=798 + * google/cloud/documentai/v1beta3/document.proto;l=806 * @param index The index of the element to return. * @return The parent at the given index. */ @@ -58169,7 +58225,8 @@ public com.google.protobuf.ByteString getParentIdsBytes(int index) { * * *
-     * The time that the revision was created.
+     * The time that the revision was created, internally generated by
+     * doc proto storage at the time of create.
      * 
* * .google.protobuf.Timestamp create_time = 3; @@ -58184,7 +58241,8 @@ public boolean hasCreateTime() { * * *
-     * The time that the revision was created.
+     * The time that the revision was created, internally generated by
+     * doc proto storage at the time of create.
      * 
* * .google.protobuf.Timestamp create_time = 3; @@ -58199,7 +58257,8 @@ public com.google.protobuf.Timestamp getCreateTime() { * * *
-     * The time that the revision was created.
+     * The time that the revision was created, internally generated by
+     * doc proto storage at the time of create.
      * 
* * .google.protobuf.Timestamp create_time = 3; @@ -59153,7 +59212,8 @@ public Builder setProcessorBytes(com.google.protobuf.ByteString value) { * * *
-       * Id of the revision.  Unique within the context of the document.
+       * Id of the revision, internally generated by doc proto storage.
+       * Unique within the context of the document.
        * 
* * string id = 1; @@ -59175,7 +59235,8 @@ public java.lang.String getId() { * * *
-       * Id of the revision.  Unique within the context of the document.
+       * Id of the revision, internally generated by doc proto storage.
+       * Unique within the context of the document.
        * 
* * string id = 1; @@ -59197,7 +59258,8 @@ public com.google.protobuf.ByteString getIdBytes() { * * *
-       * Id of the revision.  Unique within the context of the document.
+       * Id of the revision, internally generated by doc proto storage.
+       * Unique within the context of the document.
        * 
* * string id = 1; @@ -59218,7 +59280,8 @@ public Builder setId(java.lang.String value) { * * *
-       * Id of the revision.  Unique within the context of the document.
+       * Id of the revision, internally generated by doc proto storage.
+       * Unique within the context of the document.
        * 
* * string id = 1; @@ -59235,7 +59298,8 @@ public Builder clearId() { * * *
-       * Id of the revision.  Unique within the context of the document.
+       * Id of the revision, internally generated by doc proto storage.
+       * Unique within the context of the document.
        * 
* * string id = 1; @@ -59274,7 +59338,7 @@ private void ensureParentIsMutable() { * repeated int32 parent = 2 [deprecated = true]; * * @deprecated google.cloud.documentai.v1beta3.Document.Revision.parent is deprecated. See - * google/cloud/documentai/v1beta3/document.proto;l=798 + * google/cloud/documentai/v1beta3/document.proto;l=806 * @return A list containing the parent. */ @java.lang.Deprecated @@ -59295,7 +59359,7 @@ public java.util.List getParentList() { * repeated int32 parent = 2 [deprecated = true]; * * @deprecated google.cloud.documentai.v1beta3.Document.Revision.parent is deprecated. See - * google/cloud/documentai/v1beta3/document.proto;l=798 + * google/cloud/documentai/v1beta3/document.proto;l=806 * @return The count of parent. */ @java.lang.Deprecated @@ -59314,7 +59378,7 @@ public int getParentCount() { * repeated int32 parent = 2 [deprecated = true]; * * @deprecated google.cloud.documentai.v1beta3.Document.Revision.parent is deprecated. See - * google/cloud/documentai/v1beta3/document.proto;l=798 + * google/cloud/documentai/v1beta3/document.proto;l=806 * @param index The index of the element to return. * @return The parent at the given index. */ @@ -59334,7 +59398,7 @@ public int getParent(int index) { * repeated int32 parent = 2 [deprecated = true]; * * @deprecated google.cloud.documentai.v1beta3.Document.Revision.parent is deprecated. See - * google/cloud/documentai/v1beta3/document.proto;l=798 + * google/cloud/documentai/v1beta3/document.proto;l=806 * @param index The index to set the value at. * @param value The parent to set. * @return This builder for chaining. @@ -59359,7 +59423,7 @@ public Builder setParent(int index, int value) { * repeated int32 parent = 2 [deprecated = true]; * * @deprecated google.cloud.documentai.v1beta3.Document.Revision.parent is deprecated. See - * google/cloud/documentai/v1beta3/document.proto;l=798 + * google/cloud/documentai/v1beta3/document.proto;l=806 * @param value The parent to add. * @return This builder for chaining. */ @@ -59383,7 +59447,7 @@ public Builder addParent(int value) { * repeated int32 parent = 2 [deprecated = true]; * * @deprecated google.cloud.documentai.v1beta3.Document.Revision.parent is deprecated. See - * google/cloud/documentai/v1beta3/document.proto;l=798 + * google/cloud/documentai/v1beta3/document.proto;l=806 * @param values The parent to add. * @return This builder for chaining. */ @@ -59406,7 +59470,7 @@ public Builder addAllParent(java.lang.Iterable valu * repeated int32 parent = 2 [deprecated = true]; * * @deprecated google.cloud.documentai.v1beta3.Document.Revision.parent is deprecated. See - * google/cloud/documentai/v1beta3/document.proto;l=798 + * google/cloud/documentai/v1beta3/document.proto;l=806 * @return This builder for chaining. */ @java.lang.Deprecated @@ -59613,7 +59677,8 @@ public Builder addParentIdsBytes(com.google.protobuf.ByteString value) { * * *
-       * The time that the revision was created.
+       * The time that the revision was created, internally generated by
+       * doc proto storage at the time of create.
        * 
* * .google.protobuf.Timestamp create_time = 3; @@ -59627,7 +59692,8 @@ public boolean hasCreateTime() { * * *
-       * The time that the revision was created.
+       * The time that the revision was created, internally generated by
+       * doc proto storage at the time of create.
        * 
* * .google.protobuf.Timestamp create_time = 3; @@ -59647,7 +59713,8 @@ public com.google.protobuf.Timestamp getCreateTime() { * * *
-       * The time that the revision was created.
+       * The time that the revision was created, internally generated by
+       * doc proto storage at the time of create.
        * 
* * .google.protobuf.Timestamp create_time = 3; @@ -59669,7 +59736,8 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { * * *
-       * The time that the revision was created.
+       * The time that the revision was created, internally generated by
+       * doc proto storage at the time of create.
        * 
* * .google.protobuf.Timestamp create_time = 3; @@ -59688,7 +59756,8 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal * * *
-       * The time that the revision was created.
+       * The time that the revision was created, internally generated by
+       * doc proto storage at the time of create.
        * 
* * .google.protobuf.Timestamp create_time = 3; @@ -59713,7 +59782,8 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { * * *
-       * The time that the revision was created.
+       * The time that the revision was created, internally generated by
+       * doc proto storage at the time of create.
        * 
* * .google.protobuf.Timestamp create_time = 3; @@ -59732,7 +59802,8 @@ public Builder clearCreateTime() { * * *
-       * The time that the revision was created.
+       * The time that the revision was created, internally generated by
+       * doc proto storage at the time of create.
        * 
* * .google.protobuf.Timestamp create_time = 3; @@ -59746,7 +59817,8 @@ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { * * *
-       * The time that the revision was created.
+       * The time that the revision was created, internally generated by
+       * doc proto storage at the time of create.
        * 
* * .google.protobuf.Timestamp create_time = 3; @@ -59764,7 +59836,8 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { * * *
-       * The time that the revision was created.
+       * The time that the revision was created, internally generated by
+       * doc proto storage at the time of create.
        * 
* * .google.protobuf.Timestamp create_time = 3; diff --git a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/DocumentAiEvaluation.java b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/DocumentAiEvaluation.java index 616b0d42d7a0..9c9d7e256467 100644 --- a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/DocumentAiEvaluation.java +++ b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/DocumentAiEvaluation.java @@ -27,6 +27,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); } + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_documentai_v1beta3_EvaluationReference_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_documentai_v1beta3_EvaluationReference_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_documentai_v1beta3_Evaluation_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -63,58 +67,65 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "\n0google/cloud/documentai/v1beta3/evalua" + "tion.proto\022\037google.cloud.documentai.v1be" + "ta3\032\031google/api/resource.proto\032\037google/p" - + "rotobuf/timestamp.proto\"\215\016\n\nEvaluation\022\014" - + "\n\004name\030\001 \001(\t\022/\n\013create_time\030\002 \001(\0132\032.goog" - + "le.protobuf.Timestamp\022O\n\021document_counte" - + "rs\030\005 \001(\01324.google.cloud.documentai.v1bet" - + "a3.Evaluation.Counters\022`\n\024all_entities_m" - + "etrics\030\003 \001(\0132B.google.cloud.documentai.v" - + "1beta3.Evaluation.MultiConfidenceMetrics" - + "\022V\n\016entity_metrics\030\004 \003(\0132>.google.cloud." - + "documentai.v1beta3.Evaluation.EntityMetr" - + "icsEntry\022\024\n\014kms_key_name\030\006 \001(\t\022\034\n\024kms_ke" - + "y_version_name\030\007 \001(\t\032\215\001\n\010Counters\022\035\n\025inp" - + "ut_documents_count\030\001 \001(\005\022\037\n\027invalid_docu" - + "ments_count\030\002 \001(\005\022\036\n\026failed_documents_co" - + "unt\030\003 \001(\005\022!\n\031evaluated_documents_count\030\004" - + " \001(\005\032\315\002\n\007Metrics\022\021\n\tprecision\030\001 \001(\002\022\016\n\006r" - + "ecall\030\002 \001(\002\022\020\n\010f1_score\030\003 \001(\002\022#\n\033predict" - + "ed_occurrences_count\030\004 \001(\005\022&\n\036ground_tru" - + "th_occurrences_count\030\005 \001(\005\022 \n\030predicted_" - + "document_count\030\n \001(\005\022#\n\033ground_truth_doc" - + "ument_count\030\013 \001(\005\022\034\n\024true_positives_coun" - + "t\030\006 \001(\005\022\035\n\025false_positives_count\030\007 \001(\005\022\035" - + "\n\025false_negatives_count\030\010 \001(\005\022\035\n\025total_d" - + "ocuments_count\030\t \001(\005\032x\n\026ConfidenceLevelM" - + "etrics\022\030\n\020confidence_level\030\001 \001(\002\022D\n\007metr" - + "ics\030\002 \001(\01323.google.cloud.documentai.v1be" - + "ta3.Evaluation.Metrics\032\200\004\n\026MultiConfiden" - + "ceMetrics\022d\n\030confidence_level_metrics\030\001 " - + "\003(\0132B.google.cloud.documentai.v1beta3.Ev" - + "aluation.ConfidenceLevelMetrics\022j\n\036confi" - + "dence_level_metrics_exact\030\004 \003(\0132B.google" - + ".cloud.documentai.v1beta3.Evaluation.Con" - + "fidenceLevelMetrics\022\r\n\005auprc\030\002 \001(\002\022#\n\033es" - + "timated_calibration_error\030\003 \001(\002\022\023\n\013auprc" - + "_exact\030\005 \001(\002\022)\n!estimated_calibration_er" - + "ror_exact\030\006 \001(\002\022d\n\014metrics_type\030\007 \001(\0162N." - + "google.cloud.documentai.v1beta3.Evaluati" - + "on.MultiConfidenceMetrics.MetricsType\":\n" - + "\013MetricsType\022\034\n\030METRICS_TYPE_UNSPECIFIED" - + "\020\000\022\r\n\tAGGREGATE\020\001\032x\n\022EntityMetricsEntry\022" - + "\013\n\003key\030\001 \001(\t\022Q\n\005value\030\002 \001(\0132B.google.clo" - + "ud.documentai.v1beta3.Evaluation.MultiCo" - + "nfidenceMetrics:\0028\001:\251\001\352A\245\001\n$documentai.g" - + "oogleapis.com/Evaluation\022}projects/{proj" - + "ect}/locations/{location}/processors/{pr" - + "ocessor}/processorVersions/{processor_ve" - + "rsion}/evaluations/{evaluation}B\353\001\n#com." - + "google.cloud.documentai.v1beta3B\024Documen" - + "tAiEvaluationP\001ZCcloud.google.com/go/doc" - + "umentai/apiv1beta3/documentaipb;document" - + "aipb\252\002\037Google.Cloud.DocumentAI.V1Beta3\312\002" - + "\037Google\\Cloud\\DocumentAI\\V1beta3\352\002\"Googl" - + "e::Cloud::DocumentAI::V1beta3b\006proto3" + + "rotobuf/timestamp.proto\"\215\002\n\023EvaluationRe" + + "ference\022\021\n\toperation\030\001 \001(\t\022=\n\nevaluation" + + "\030\002 \001(\tB)\372A&\n$documentai.googleapis.com/E" + + "valuation\022N\n\021aggregate_metrics\030\004 \001(\01323.g" + + "oogle.cloud.documentai.v1beta3.Evaluatio" + + "n.Metrics\022T\n\027aggregate_metrics_exact\030\005 \001" + + "(\01323.google.cloud.documentai.v1beta3.Eva" + + "luation.Metrics\"\215\016\n\nEvaluation\022\014\n\004name\030\001" + + " \001(\t\022/\n\013create_time\030\002 \001(\0132\032.google.proto" + + "buf.Timestamp\022O\n\021document_counters\030\005 \001(\013" + + "24.google.cloud.documentai.v1beta3.Evalu" + + "ation.Counters\022`\n\024all_entities_metrics\030\003" + + " \001(\0132B.google.cloud.documentai.v1beta3.E" + + "valuation.MultiConfidenceMetrics\022V\n\016enti" + + "ty_metrics\030\004 \003(\0132>.google.cloud.document" + + "ai.v1beta3.Evaluation.EntityMetricsEntry" + + "\022\024\n\014kms_key_name\030\006 \001(\t\022\034\n\024kms_key_versio" + + "n_name\030\007 \001(\t\032\215\001\n\010Counters\022\035\n\025input_docum" + + "ents_count\030\001 \001(\005\022\037\n\027invalid_documents_co" + + "unt\030\002 \001(\005\022\036\n\026failed_documents_count\030\003 \001(" + + "\005\022!\n\031evaluated_documents_count\030\004 \001(\005\032\315\002\n" + + "\007Metrics\022\021\n\tprecision\030\001 \001(\002\022\016\n\006recall\030\002 " + + "\001(\002\022\020\n\010f1_score\030\003 \001(\002\022#\n\033predicted_occur" + + "rences_count\030\004 \001(\005\022&\n\036ground_truth_occur" + + "rences_count\030\005 \001(\005\022 \n\030predicted_document" + + "_count\030\n \001(\005\022#\n\033ground_truth_document_co" + + "unt\030\013 \001(\005\022\034\n\024true_positives_count\030\006 \001(\005\022" + + "\035\n\025false_positives_count\030\007 \001(\005\022\035\n\025false_" + + "negatives_count\030\010 \001(\005\022\035\n\025total_documents" + + "_count\030\t \001(\005\032x\n\026ConfidenceLevelMetrics\022\030" + + "\n\020confidence_level\030\001 \001(\002\022D\n\007metrics\030\002 \001(" + + "\01323.google.cloud.documentai.v1beta3.Eval" + + "uation.Metrics\032\200\004\n\026MultiConfidenceMetric" + + "s\022d\n\030confidence_level_metrics\030\001 \003(\0132B.go" + + "ogle.cloud.documentai.v1beta3.Evaluation" + + ".ConfidenceLevelMetrics\022j\n\036confidence_le" + + "vel_metrics_exact\030\004 \003(\0132B.google.cloud.d" + + "ocumentai.v1beta3.Evaluation.ConfidenceL" + + "evelMetrics\022\r\n\005auprc\030\002 \001(\002\022#\n\033estimated_" + + "calibration_error\030\003 \001(\002\022\023\n\013auprc_exact\030\005" + + " \001(\002\022)\n!estimated_calibration_error_exac" + + "t\030\006 \001(\002\022d\n\014metrics_type\030\007 \001(\0162N.google.c" + + "loud.documentai.v1beta3.Evaluation.Multi" + + "ConfidenceMetrics.MetricsType\":\n\013Metrics" + + "Type\022\034\n\030METRICS_TYPE_UNSPECIFIED\020\000\022\r\n\tAG" + + "GREGATE\020\001\032x\n\022EntityMetricsEntry\022\013\n\003key\030\001" + + " \001(\t\022Q\n\005value\030\002 \001(\0132B.google.cloud.docum" + + "entai.v1beta3.Evaluation.MultiConfidence" + + "Metrics:\0028\001:\251\001\352A\245\001\n$documentai.googleapi" + + "s.com/Evaluation\022}projects/{project}/loc" + + "ations/{location}/processors/{processor}" + + "/processorVersions/{processor_version}/e" + + "valuations/{evaluation}B\353\001\n#com.google.c" + + "loud.documentai.v1beta3B\024DocumentAiEvalu" + + "ationP\001ZCcloud.google.com/go/documentai/" + + "apiv1beta3/documentaipb;documentaipb\252\002\037G" + + "oogle.Cloud.DocumentAI.V1Beta3\312\002\037Google\\" + + "Cloud\\DocumentAI\\V1beta3\352\002\"Google::Cloud" + + "::DocumentAI::V1beta3b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -123,8 +134,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.api.ResourceProto.getDescriptor(), com.google.protobuf.TimestampProto.getDescriptor(), }); - internal_static_google_cloud_documentai_v1beta3_Evaluation_descriptor = + internal_static_google_cloud_documentai_v1beta3_EvaluationReference_descriptor = getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_documentai_v1beta3_EvaluationReference_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_documentai_v1beta3_EvaluationReference_descriptor, + new java.lang.String[] { + "Operation", "Evaluation", "AggregateMetrics", "AggregateMetricsExact", + }); + internal_static_google_cloud_documentai_v1beta3_Evaluation_descriptor = + getDescriptor().getMessageTypes().get(1); internal_static_google_cloud_documentai_v1beta3_Evaluation_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_documentai_v1beta3_Evaluation_descriptor, @@ -209,6 +228,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.protobuf.ExtensionRegistry registry = com.google.protobuf.ExtensionRegistry.newInstance(); registry.add(com.google.api.ResourceProto.resource); + registry.add(com.google.api.ResourceProto.resourceReference); com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( descriptor, registry); com.google.api.ResourceProto.getDescriptor(); diff --git a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/DocumentAiProcessor.java b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/DocumentAiProcessor.java index a19ab41d8d7b..f7639dbd023f 100644 --- a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/DocumentAiProcessor.java +++ b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/DocumentAiProcessor.java @@ -52,50 +52,54 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "sor.proto\022\037google.cloud.documentai.v1bet" + "a3\032\037google/api/field_behavior.proto\032\031goo" + "gle/api/resource.proto\0325google/cloud/doc" - + "umentai/v1beta3/document_schema.proto\032\037g" - + "oogle/protobuf/timestamp.proto\"\344\006\n\020Proce" - + "ssorVersion\022\014\n\004name\030\001 \001(\t\022\024\n\014display_nam" - + "e\030\002 \001(\t\022H\n\017document_schema\030\014 \001(\0132/.googl" - + "e.cloud.documentai.v1beta3.DocumentSchem" - + "a\022F\n\005state\030\006 \001(\01627.google.cloud.document" - + "ai.v1beta3.ProcessorVersion.State\022/\n\013cre" - + "ate_time\030\007 \001(\0132\032.google.protobuf.Timesta" - + "mp\022\024\n\014kms_key_name\030\t \001(\t\022\034\n\024kms_key_vers" - + "ion_name\030\n \001(\t\022\026\n\016google_managed\030\013 \001(\010\022[" - + "\n\020deprecation_info\030\r \001(\0132A.google.cloud." - + "documentai.v1beta3.ProcessorVersion.Depr" - + "ecationInfo\032\237\001\n\017DeprecationInfo\0224\n\020depre" - + "cation_time\030\001 \001(\0132\032.google.protobuf.Time" - + "stamp\022V\n\035replacement_processor_version\030\002" - + " \001(\tB/\372A,\n*documentai.googleapis.com/Pro" - + "cessorVersion\"\204\001\n\005State\022\025\n\021STATE_UNSPECI" - + "FIED\020\000\022\014\n\010DEPLOYED\020\001\022\r\n\tDEPLOYING\020\002\022\016\n\nU" - + "NDEPLOYED\020\003\022\017\n\013UNDEPLOYING\020\004\022\014\n\010CREATING" - + "\020\005\022\014\n\010DELETING\020\006\022\n\n\006FAILED\020\007:\226\001\352A\222\001\n*doc" - + "umentai.googleapis.com/ProcessorVersion\022" - + "dprojects/{project}/locations/{location}" - + "/processors/{processor}/processorVersion" - + "s/{processor_version}\"\262\004\n\tProcessor\022\024\n\004n" - + "ame\030\001 \001(\tB\006\340A\005\340A\003\022\014\n\004type\030\002 \001(\t\022\024\n\014displ" - + "ay_name\030\003 \001(\t\022D\n\005state\030\004 \001(\01620.google.cl" - + "oud.documentai.v1beta3.Processor.StateB\003" - + "\340A\003\022R\n\031default_processor_version\030\t \001(\tB/" - + "\372A,\n*documentai.googleapis.com/Processor" - + "Version\022 \n\020process_endpoint\030\006 \001(\tB\006\340A\003\340A" - + "\005\022/\n\013create_time\030\007 \001(\0132\032.google.protobuf" - + ".Timestamp\022\024\n\014kms_key_name\030\010 \001(\t\"~\n\005Stat" - + "e\022\025\n\021STATE_UNSPECIFIED\020\000\022\013\n\007ENABLED\020\001\022\014\n" - + "\010DISABLED\020\002\022\014\n\010ENABLING\020\003\022\r\n\tDISABLING\020\004" - + "\022\014\n\010CREATING\020\005\022\n\n\006FAILED\020\006\022\014\n\010DELETING\020\007" - + ":h\352Ae\n#documentai.googleapis.com/Process" - + "or\022>projects/{project}/locations/{locati" - + "on}/processors/{processor}B\352\001\n#com.googl" - + "e.cloud.documentai.v1beta3B\023DocumentAiPr" - + "ocessorP\001ZCcloud.google.com/go/documenta" - + "i/apiv1beta3/documentaipb;documentaipb\252\002" - + "\037Google.Cloud.DocumentAI.V1Beta3\312\002\037Googl" - + "e\\Cloud\\DocumentAI\\V1beta3\352\002\"Google::Clo" - + "ud::DocumentAI::V1beta3b\006proto3" + + "umentai/v1beta3/document_schema.proto\0320g" + + "oogle/cloud/documentai/v1beta3/evaluatio" + + "n.proto\032\037google/protobuf/timestamp.proto" + + "\"\265\007\n\020ProcessorVersion\022\014\n\004name\030\001 \001(\t\022\024\n\014d" + + "isplay_name\030\002 \001(\t\022H\n\017document_schema\030\014 \001" + + "(\0132/.google.cloud.documentai.v1beta3.Doc" + + "umentSchema\022F\n\005state\030\006 \001(\01627.google.clou" + + "d.documentai.v1beta3.ProcessorVersion.St" + + "ate\022/\n\013create_time\030\007 \001(\0132\032.google.protob" + + "uf.Timestamp\022O\n\021latest_evaluation\030\010 \001(\0132" + + "4.google.cloud.documentai.v1beta3.Evalua" + + "tionReference\022\024\n\014kms_key_name\030\t \001(\t\022\034\n\024k" + + "ms_key_version_name\030\n \001(\t\022\026\n\016google_mana" + + "ged\030\013 \001(\010\022[\n\020deprecation_info\030\r \001(\0132A.go" + + "ogle.cloud.documentai.v1beta3.ProcessorV" + + "ersion.DeprecationInfo\032\237\001\n\017DeprecationIn" + + "fo\0224\n\020deprecation_time\030\001 \001(\0132\032.google.pr" + + "otobuf.Timestamp\022V\n\035replacement_processo" + + "r_version\030\002 \001(\tB/\372A,\n*documentai.googlea" + + "pis.com/ProcessorVersion\"\204\001\n\005State\022\025\n\021ST" + + "ATE_UNSPECIFIED\020\000\022\014\n\010DEPLOYED\020\001\022\r\n\tDEPLO" + + "YING\020\002\022\016\n\nUNDEPLOYED\020\003\022\017\n\013UNDEPLOYING\020\004\022" + + "\014\n\010CREATING\020\005\022\014\n\010DELETING\020\006\022\n\n\006FAILED\020\007:" + + "\226\001\352A\222\001\n*documentai.googleapis.com/Proces" + + "sorVersion\022dprojects/{project}/locations" + + "/{location}/processors/{processor}/proce" + + "ssorVersions/{processor_version}\"\262\004\n\tPro" + + "cessor\022\024\n\004name\030\001 \001(\tB\006\340A\005\340A\003\022\014\n\004type\030\002 \001" + + "(\t\022\024\n\014display_name\030\003 \001(\t\022D\n\005state\030\004 \001(\0162" + + "0.google.cloud.documentai.v1beta3.Proces" + + "sor.StateB\003\340A\003\022R\n\031default_processor_vers" + + "ion\030\t \001(\tB/\372A,\n*documentai.googleapis.co" + + "m/ProcessorVersion\022 \n\020process_endpoint\030\006" + + " \001(\tB\006\340A\003\340A\005\022/\n\013create_time\030\007 \001(\0132\032.goog" + + "le.protobuf.Timestamp\022\024\n\014kms_key_name\030\010 " + + "\001(\t\"~\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022\013\n\007E" + + "NABLED\020\001\022\014\n\010DISABLED\020\002\022\014\n\010ENABLING\020\003\022\r\n\t" + + "DISABLING\020\004\022\014\n\010CREATING\020\005\022\n\n\006FAILED\020\006\022\014\n" + + "\010DELETING\020\007:h\352Ae\n#documentai.googleapis." + + "com/Processor\022>projects/{project}/locati" + + "ons/{location}/processors/{processor}B\352\001" + + "\n#com.google.cloud.documentai.v1beta3B\023D" + + "ocumentAiProcessorP\001ZCcloud.google.com/g" + + "o/documentai/apiv1beta3/documentaipb;doc" + + "umentaipb\252\002\037Google.Cloud.DocumentAI.V1Be" + + "ta3\312\002\037Google\\Cloud\\DocumentAI\\V1beta3\352\002\"" + + "Google::Cloud::DocumentAI::V1beta3b\006prot" + + "o3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -104,6 +108,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.api.FieldBehaviorProto.getDescriptor(), com.google.api.ResourceProto.getDescriptor(), com.google.cloud.documentai.v1beta3.DocumentAiDocumentSchema.getDescriptor(), + com.google.cloud.documentai.v1beta3.DocumentAiEvaluation.getDescriptor(), com.google.protobuf.TimestampProto.getDescriptor(), }); internal_static_google_cloud_documentai_v1beta3_ProcessorVersion_descriptor = @@ -117,6 +122,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "DocumentSchema", "State", "CreateTime", + "LatestEvaluation", "KmsKeyName", "KmsKeyVersionName", "GoogleManaged", @@ -157,6 +163,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.api.FieldBehaviorProto.getDescriptor(); com.google.api.ResourceProto.getDescriptor(); com.google.cloud.documentai.v1beta3.DocumentAiDocumentSchema.getDescriptor(); + com.google.cloud.documentai.v1beta3.DocumentAiEvaluation.getDescriptor(); com.google.protobuf.TimestampProto.getDescriptor(); } diff --git a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/DocumentAiProcessorService.java b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/DocumentAiProcessorService.java index 2acbe56e472a..001acf68b976 100644 --- a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/DocumentAiProcessorService.java +++ b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/DocumentAiProcessorService.java @@ -408,237 +408,237 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "tProcessorVersionResponse\"w\n\"SetDefaultP" + "rocessorVersionMetadata\022Q\n\017common_metada" + "ta\030\001 \001(\01328.google.cloud.documentai.v1bet" - + "a3.CommonOperationMetadata\"\305\004\n\034TrainProc" - + "essorVersionRequest\022B\n\006parent\030\001 \001(\tB2\340A\002" - + "\372A,\022*documentai.googleapis.com/Processor" - + "Version\022Q\n\021processor_version\030\002 \001(\01321.goo" - + "gle.cloud.documentai.v1beta3.ProcessorVe" - + "rsionB\003\340A\002\022M\n\017document_schema\030\n \001(\0132/.go" - + "ogle.cloud.documentai.v1beta3.DocumentSc" - + "hemaB\003\340A\001\022`\n\ninput_data\030\004 \001(\0132G.google.c" - + "loud.documentai.v1beta3.TrainProcessorVe" - + "rsionRequest.InputDataB\003\340A\001\022#\n\026base_proc" - + "essor_version\030\010 \001(\tB\003\340A\001\032\267\001\n\tInputData\022V" - + "\n\022training_documents\030\003 \001(\0132:.google.clou" - + "d.documentai.v1beta3.BatchDocumentsInput" - + "Config\022R\n\016test_documents\030\004 \001(\0132:.google." - + "cloud.documentai.v1beta3.BatchDocumentsI" - + "nputConfig\":\n\035TrainProcessorVersionRespo" - + "nse\022\031\n\021processor_version\030\001 \001(\t\"\206\004\n\035Train" - + "ProcessorVersionMetadata\022Q\n\017common_metad" - + "ata\030\001 \001(\01328.google.cloud.documentai.v1be" - + "ta3.CommonOperationMetadata\022u\n\033training_" - + "dataset_validation\030\002 \001(\0132P.google.cloud." - + "documentai.v1beta3.TrainProcessorVersion" - + "Metadata.DatasetValidation\022q\n\027test_datas" - + "et_validation\030\003 \001(\0132P.google.cloud.docum" - + "entai.v1beta3.TrainProcessorVersionMetad" - + "ata.DatasetValidation\032\247\001\n\021DatasetValidat" - + "ion\022\034\n\024document_error_count\030\003 \001(\005\022\033\n\023dat" - + "aset_error_count\030\004 \001(\005\022+\n\017document_error" - + "s\030\001 \003(\0132\022.google.rpc.Status\022*\n\016dataset_e" - + "rrors\030\002 \003(\0132\022.google.rpc.Status\"\336\003\n\025Revi" - + "ewDocumentRequest\022D\n\017inline_document\030\004 \001" - + "(\0132).google.cloud.documentai.v1beta3.Doc" - + "umentH\000\022P\n\023human_review_config\030\001 \001(\tB3\340A" - + "\002\372A-\n+documentai.googleapis.com/HumanRev" - + "iewConfig\022?\n\010document\030\002 \001(\0132).google.clo" - + "ud.documentai.v1beta3.DocumentB\002\030\001\022 \n\030en" - + "able_schema_validation\030\003 \001(\010\022Q\n\010priority" - + "\030\005 \001(\0162?.google.cloud.documentai.v1beta3" - + ".ReviewDocumentRequest.Priority\022H\n\017docum" - + "ent_schema\030\006 \001(\0132/.google.cloud.document" - + "ai.v1beta3.DocumentSchema\"#\n\010Priority\022\013\n" - + "\007DEFAULT\020\000\022\n\n\006URGENT\020\001B\010\n\006source\"\326\001\n\026Rev" - + "iewDocumentResponse\022\027\n\017gcs_destination\030\001" - + " \001(\t\022L\n\005state\030\002 \001(\0162=.google.cloud.docum" - + "entai.v1beta3.ReviewDocumentResponse.Sta" - + "te\022\030\n\020rejection_reason\030\003 \001(\t\";\n\005State\022\025\n" - + "\021STATE_UNSPECIFIED\020\000\022\014\n\010REJECTED\020\001\022\r\n\tSU" - + "CCEEDED\020\002\"\300\003\n\037ReviewDocumentOperationMet" - + "adata\022U\n\005state\030\001 \001(\0162F.google.cloud.docu" - + "mentai.v1beta3.ReviewDocumentOperationMe" - + "tadata.State\022\025\n\rstate_message\030\002 \001(\t\022/\n\013c" - + "reate_time\030\003 \001(\0132\032.google.protobuf.Times" - + "tamp\022/\n\013update_time\030\004 \001(\0132\032.google.proto" - + "buf.Timestamp\022Q\n\017common_metadata\030\005 \001(\01328" - + ".google.cloud.documentai.v1beta3.CommonO" - + "perationMetadata\022\023\n\013question_id\030\006 \001(\t\"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\005\"\317\001\n\037EvaluateProcess" - + "orVersionRequest\022M\n\021processor_version\030\001 " - + "\001(\tB2\340A\002\372A,\n*documentai.googleapis.com/P" - + "rocessorVersion\022]\n\024evaluation_documents\030" - + "\003 \001(\0132:.google.cloud.documentai.v1beta3." - + "BatchDocumentsInputConfigB\003\340A\001\"u\n Evalua" - + "teProcessorVersionMetadata\022Q\n\017common_met" - + "adata\030\001 \001(\01328.google.cloud.documentai.v1" - + "beta3.CommonOperationMetadata\"6\n Evaluat" - + "eProcessorVersionResponse\022\022\n\nevaluation\030" - + "\002 \001(\t\"R\n\024GetEvaluationRequest\022:\n\004name\030\001 " - + "\001(\tB,\340A\002\372A&\n$documentai.googleapis.com/E" - + "valuation\"\203\001\n\026ListEvaluationsRequest\022B\n\006" - + "parent\030\001 \001(\tB2\340A\002\372A,\n*documentai.googlea" - + "pis.com/ProcessorVersion\022\021\n\tpage_size\030\002 " - + "\001(\005\022\022\n\npage_token\030\003 \001(\t\"t\n\027ListEvaluatio" - + "nsResponse\022@\n\013evaluations\030\001 \003(\0132+.google" - + ".cloud.documentai.v1beta3.Evaluation\022\027\n\017" - + "next_page_token\030\002 \001(\t2\271,\n\030DocumentProces" - + "sorService\022\233\002\n\017ProcessDocument\022/.google." - + "cloud.documentai.v1beta3.ProcessRequest\032" - + "0.google.cloud.documentai.v1beta3.Proces" - + "sResponse\"\244\001\202\323\344\223\002\226\001\";/v1beta3/{name=proj" - + "ects/*/locations/*/processors/*}:process" - + ":\001*ZT\"O/v1beta3/{name=projects/*/locatio" - + "ns/*/processors/*/processorVersions/*}:p" - + "rocess:\001*\332A\004name\022\314\002\n\025BatchProcessDocumen" - + "ts\0224.google.cloud.documentai.v1beta3.Bat" - + "chProcessRequest\032\035.google.longrunning.Op" - + "eration\"\335\001\202\323\344\223\002\240\001\"@/v1beta3/{name=projec" - + "ts/*/locations/*/processors/*}:batchProc" - + "ess:\001*ZY\"T/v1beta3/{name=projects/*/loca" - + "tions/*/processors/*/processorVersions/*" - + "}:batchProcess:\001*\332A\004name\312A,\n\024BatchProces" - + "sResponse\022\024BatchProcessMetadata\022\337\001\n\023Fetc" - + "hProcessorTypes\022;.google.cloud.documenta" - + "i.v1beta3.FetchProcessorTypesRequest\032<.g" - + "oogle.cloud.documentai.v1beta3.FetchProc" - + "essorTypesResponse\"M\202\323\344\223\002>\022\n\035TrainProcessorVers" - + "ionResponse\022\035TrainProcessorVersionMetada" - + "ta\022\335\001\n\023GetProcessorVersion\022;.google.clou" - + "d.documentai.v1beta3.GetProcessorVersion" - + "Request\0321.google.cloud.documentai.v1beta" - + "3.ProcessorVersion\"V\202\323\344\223\002I\022G/v1beta3/{na" - + "me=projects/*/locations/*/processors/*/p" - + "rocessorVersions/*}\332A\004name\022\360\001\n\025ListProce" - + "ssorVersions\022=.google.cloud.documentai.v" - + "1beta3.ListProcessorVersionsRequest\032>.go" - + "ogle.cloud.documentai.v1beta3.ListProces" - + "sorVersionsResponse\"X\202\323\344\223\002I\022G/v1beta3/{p" - + "arent=projects/*/locations/*/processors/" - + "*}/processorVersions\332A\006parent\022\212\002\n\026Delete" - + "ProcessorVersion\022>.google.cloud.document" - + "ai.v1beta3.DeleteProcessorVersionRequest" - + "\032\035.google.longrunning.Operation\"\220\001\202\323\344\223\002I" - + "*G/v1beta3/{name=projects/*/locations/*/" - + "processors/*/processorVersions/*}\332A\004name" - + "\312A7\n\025google.protobuf.Empty\022\036DeleteProces" - + "sorVersionMetadata\022\235\002\n\026DeployProcessorVe" - + "rsion\022>.google.cloud.documentai.v1beta3." - + "DeployProcessorVersionRequest\032\035.google.l" - + "ongrunning.Operation\"\243\001\202\323\344\223\002S\"N/v1beta3/" - + "{name=projects/*/locations/*/processors/" - + "*/processorVersions/*}:deploy:\001*\332A\004name\312" - + "A@\n\036DeployProcessorVersionResponse\022\036Depl" - + "oyProcessorVersionMetadata\022\247\002\n\030UndeployP" - + "rocessorVersion\022@.google.cloud.documenta" - + "i.v1beta3.UndeployProcessorVersionReques" - + "t\032\035.google.longrunning.Operation\"\251\001\202\323\344\223\002" - + "U\"P/v1beta3/{name=projects/*/locations/*" - + "/processors/*/processorVersions/*}:undep" - + "loy:\001*\332A\004name\312AD\n UndeployProcessorVersi" - + "onResponse\022 UndeployProcessorVersionMeta" - + "data\022\321\001\n\017CreateProcessor\0227.google.cloud." - + "documentai.v1beta3.CreateProcessorReques" - + "t\032*.google.cloud.documentai.v1beta3.Proc" - + "essor\"Y\202\323\344\223\002@\"3/v1beta3/{parent=projects" - + "/*/locations/*}/processors:\tprocessor\332A\020" - + "parent,processor\022\340\001\n\017DeleteProcessor\0227.g" - + "oogle.cloud.documentai.v1beta3.DeletePro" - + "cessorRequest\032\035.google.longrunning.Opera" - + "tion\"u\202\323\344\223\0025*3/v1beta3/{name=projects/*/" - + "locations/*/processors/*}\332A\004name\312A0\n\025goo" - + "gle.protobuf.Empty\022\027DeleteProcessorMetad" - + "ata\022\345\001\n\017EnableProcessor\0227.google.cloud.d" - + "ocumentai.v1beta3.EnableProcessorRequest" - + "\032\035.google.longrunning.Operation\"z\202\323\344\223\002?\"" - + ":/v1beta3/{name=projects/*/locations/*/p" - + "rocessors/*}:enable:\001*\312A2\n\027EnableProcess" - + "orResponse\022\027EnableProcessorMetadata\022\352\001\n\020" - + "DisableProcessor\0228.google.cloud.document" - + "ai.v1beta3.DisableProcessorRequest\032\035.goo" - + "gle.longrunning.Operation\"}\202\323\344\223\002@\";/v1be" + + "a3.CommonOperationMetadata\"\276\004\n\034TrainProc" + + "essorVersionRequest\022;\n\006parent\030\001 \001(\tB+\340A\002" + + "\372A%\n#documentai.googleapis.com/Processor" + + "\022Q\n\021processor_version\030\002 \001(\01321.google.clo" + + "ud.documentai.v1beta3.ProcessorVersionB\003" + + "\340A\002\022M\n\017document_schema\030\n \001(\0132/.google.cl" + + "oud.documentai.v1beta3.DocumentSchemaB\003\340" + + "A\001\022`\n\ninput_data\030\004 \001(\0132G.google.cloud.do" + + "cumentai.v1beta3.TrainProcessorVersionRe" + + "quest.InputDataB\003\340A\001\022#\n\026base_processor_v" + + "ersion\030\010 \001(\tB\003\340A\001\032\267\001\n\tInputData\022V\n\022train" + + "ing_documents\030\003 \001(\0132:.google.cloud.docum" + + "entai.v1beta3.BatchDocumentsInputConfig\022" + + "R\n\016test_documents\030\004 \001(\0132:.google.cloud.d" + + "ocumentai.v1beta3.BatchDocumentsInputCon" + + "fig\":\n\035TrainProcessorVersionResponse\022\031\n\021" + + "processor_version\030\001 \001(\t\"\206\004\n\035TrainProcess" + + "orVersionMetadata\022Q\n\017common_metadata\030\001 \001" + + "(\01328.google.cloud.documentai.v1beta3.Com" + + "monOperationMetadata\022u\n\033training_dataset" + + "_validation\030\002 \001(\0132P.google.cloud.documen" + + "tai.v1beta3.TrainProcessorVersionMetadat" + + "a.DatasetValidation\022q\n\027test_dataset_vali" + + "dation\030\003 \001(\0132P.google.cloud.documentai.v" + + "1beta3.TrainProcessorVersionMetadata.Dat" + + "asetValidation\032\247\001\n\021DatasetValidation\022\034\n\024" + + "document_error_count\030\003 \001(\005\022\033\n\023dataset_er" + + "ror_count\030\004 \001(\005\022+\n\017document_errors\030\001 \003(\013" + + "2\022.google.rpc.Status\022*\n\016dataset_errors\030\002" + + " \003(\0132\022.google.rpc.Status\"\336\003\n\025ReviewDocum" + + "entRequest\022D\n\017inline_document\030\004 \001(\0132).go" + + "ogle.cloud.documentai.v1beta3.DocumentH\000" + + "\022P\n\023human_review_config\030\001 \001(\tB3\340A\002\372A-\n+d" + + "ocumentai.googleapis.com/HumanReviewConf" + + "ig\022?\n\010document\030\002 \001(\0132).google.cloud.docu" + + "mentai.v1beta3.DocumentB\002\030\001\022 \n\030enable_sc" + + "hema_validation\030\003 \001(\010\022Q\n\010priority\030\005 \001(\0162" + + "?.google.cloud.documentai.v1beta3.Review" + + "DocumentRequest.Priority\022H\n\017document_sch" + + "ema\030\006 \001(\0132/.google.cloud.documentai.v1be" + + "ta3.DocumentSchema\"#\n\010Priority\022\013\n\007DEFAUL" + + "T\020\000\022\n\n\006URGENT\020\001B\010\n\006source\"\326\001\n\026ReviewDocu" + + "mentResponse\022\027\n\017gcs_destination\030\001 \001(\t\022L\n" + + "\005state\030\002 \001(\0162=.google.cloud.documentai.v" + + "1beta3.ReviewDocumentResponse.State\022\030\n\020r" + + "ejection_reason\030\003 \001(\t\";\n\005State\022\025\n\021STATE_" + + "UNSPECIFIED\020\000\022\014\n\010REJECTED\020\001\022\r\n\tSUCCEEDED" + + "\020\002\"\300\003\n\037ReviewDocumentOperationMetadata\022U" + + "\n\005state\030\001 \001(\0162F.google.cloud.documentai." + + "v1beta3.ReviewDocumentOperationMetadata." + + "State\022\025\n\rstate_message\030\002 \001(\t\022/\n\013create_t" + + "ime\030\003 \001(\0132\032.google.protobuf.Timestamp\022/\n" + + "\013update_time\030\004 \001(\0132\032.google.protobuf.Tim" + + "estamp\022Q\n\017common_metadata\030\005 \001(\01328.google" + + ".cloud.documentai.v1beta3.CommonOperatio" + + "nMetadata\022\023\n\013question_id\030\006 \001(\t\"e\n\005State\022" + + "\025\n\021STATE_UNSPECIFIED\020\000\022\013\n\007RUNNING\020\001\022\016\n\nC" + + "ANCELLING\020\002\022\r\n\tSUCCEEDED\020\003\022\n\n\006FAILED\020\004\022\r" + + "\n\tCANCELLED\020\005\"\317\001\n\037EvaluateProcessorVersi" + + "onRequest\022M\n\021processor_version\030\001 \001(\tB2\340A" + + "\002\372A,\n*documentai.googleapis.com/Processo" + + "rVersion\022]\n\024evaluation_documents\030\003 \001(\0132:" + + ".google.cloud.documentai.v1beta3.BatchDo" + + "cumentsInputConfigB\003\340A\001\"u\n EvaluateProce" + + "ssorVersionMetadata\022Q\n\017common_metadata\030\001" + + " \001(\01328.google.cloud.documentai.v1beta3.C" + + "ommonOperationMetadata\"6\n EvaluateProces" + + "sorVersionResponse\022\022\n\nevaluation\030\002 \001(\t\"R" + + "\n\024GetEvaluationRequest\022:\n\004name\030\001 \001(\tB,\340A" + + "\002\372A&\n$documentai.googleapis.com/Evaluati" + + "on\"\203\001\n\026ListEvaluationsRequest\022B\n\006parent\030" + + "\001 \001(\tB2\340A\002\372A,\n*documentai.googleapis.com" + + "/ProcessorVersion\022\021\n\tpage_size\030\002 \001(\005\022\022\n\n" + + "page_token\030\003 \001(\t\"t\n\027ListEvaluationsRespo" + + "nse\022@\n\013evaluations\030\001 \003(\0132+.google.cloud." + + "documentai.v1beta3.Evaluation\022\027\n\017next_pa" + + "ge_token\030\002 \001(\t2\271,\n\030DocumentProcessorServ" + + "ice\022\233\002\n\017ProcessDocument\022/.google.cloud.d" + + "ocumentai.v1beta3.ProcessRequest\0320.googl" + + "e.cloud.documentai.v1beta3.ProcessRespon" + + "se\"\244\001\202\323\344\223\002\226\001\";/v1beta3/{name=projects/*/" + + "locations/*/processors/*}:process:\001*ZT\"O" + + "/v1beta3/{name=projects/*/locations/*/pr" + + "ocessors/*/processorVersions/*}:process:" + + "\001*\332A\004name\022\314\002\n\025BatchProcessDocuments\0224.go" + + "ogle.cloud.documentai.v1beta3.BatchProce" + + "ssRequest\032\035.google.longrunning.Operation" + + "\"\335\001\202\323\344\223\002\240\001\"@/v1beta3/{name=projects/*/lo" + + "cations/*/processors/*}:batchProcess:\001*Z" + + "Y\"T/v1beta3/{name=projects/*/locations/*" + + "/processors/*/processorVersions/*}:batch" + + "Process:\001*\332A\004name\312A,\n\024BatchProcessRespon" + + "se\022\024BatchProcessMetadata\022\337\001\n\023FetchProces" + + "sorTypes\022;.google.cloud.documentai.v1bet" + + "a3.FetchProcessorTypesRequest\032<.google.c" + + "loud.documentai.v1beta3.FetchProcessorTy" + + "pesResponse\"M\202\323\344\223\002>\022\n\035TrainProcessorVersionResp" + + "onse\022\035TrainProcessorVersionMetadata\022\335\001\n\023" + + "GetProcessorVersion\022;.google.cloud.docum" + + "entai.v1beta3.GetProcessorVersionRequest" + + "\0321.google.cloud.documentai.v1beta3.Proce" + + "ssorVersion\"V\202\323\344\223\002I\022G/v1beta3/{name=proj" + + "ects/*/locations/*/processors/*/processo" + + "rVersions/*}\332A\004name\022\360\001\n\025ListProcessorVer" + + "sions\022=.google.cloud.documentai.v1beta3." + + "ListProcessorVersionsRequest\032>.google.cl" + + "oud.documentai.v1beta3.ListProcessorVers" + + "ionsResponse\"X\202\323\344\223\002I\022G/v1beta3/{parent=p" + + "rojects/*/locations/*/processors/*}/proc" + + "essorVersions\332A\006parent\022\212\002\n\026DeleteProcess" + + "orVersion\022>.google.cloud.documentai.v1be" + + "ta3.DeleteProcessorVersionRequest\032\035.goog" + + "le.longrunning.Operation\"\220\001\202\323\344\223\002I*G/v1be" + "ta3/{name=projects/*/locations/*/process" - + "ors/*}:disable:\001*\312A4\n\030DisableProcessorRe" - + "sponse\022\030DisableProcessorMetadata\022\253\002\n\032Set" - + "DefaultProcessorVersion\022B.google.cloud.d" - + "ocumentai.v1beta3.SetDefaultProcessorVer" - + "sionRequest\032\035.google.longrunning.Operati" - + "on\"\251\001\202\323\344\223\002X\"S/v1beta3/{processor=project" - + "s/*/locations/*/processors/*}:setDefault" - + "ProcessorVersion:\001*\312AH\n\"SetDefaultProces" - + "sorVersionResponse\022\"SetDefaultProcessorV" - + "ersionMetadata\022\252\002\n\016ReviewDocument\0226.goog" - + "le.cloud.documentai.v1beta3.ReviewDocume" - + "ntRequest\032\035.google.longrunning.Operation" - + "\"\300\001\202\323\344\223\002h\"c/v1beta3/{human_review_config" - + "=projects/*/locations/*/processors/*/hum" - + "anReviewConfig}:reviewDocument:\001*\332A\023huma" - + "n_review_config\312A9\n\026ReviewDocumentRespon" - + "se\022\037ReviewDocumentOperationMetadata\022\321\002\n\030" - + "EvaluateProcessorVersion\022@.google.cloud." - + "documentai.v1beta3.EvaluateProcessorVers" - + "ionRequest\032\035.google.longrunning.Operatio" - + "n\"\323\001\202\323\344\223\002r\"m/v1beta3/{processor_version=" - + "projects/*/locations/*/processors/*/proc" - + "essorVersions/*}:evaluateProcessorVersio" - + "n:\001*\332A\021processor_version\312AD\n EvaluatePro" - + "cessorVersionResponse\022 EvaluateProcessor" - + "VersionMetadata\022\331\001\n\rGetEvaluation\0225.goog" - + "le.cloud.documentai.v1beta3.GetEvaluatio" - + "nRequest\032+.google.cloud.documentai.v1bet" - + "a3.Evaluation\"d\202\323\344\223\002W\022U/v1beta3/{name=pr" - + "ojects/*/locations/*/processors/*/proces" - + "sorVersions/*/evaluations/*}\332A\004name\022\354\001\n\017" - + "ListEvaluations\0227.google.cloud.documenta" - + "i.v1beta3.ListEvaluationsRequest\0328.googl" - + "e.cloud.documentai.v1beta3.ListEvaluatio" - + "nsResponse\"f\202\323\344\223\002W\022U/v1beta3/{parent=pro" - + "jects/*/locations/*/processors/*/process" - + "orVersions/*}/evaluations\332A\006parent\032M\312A\031d" - + "ocumentai.googleapis.com\322A.https://www.g" - + "oogleapis.com/auth/cloud-platformB\303\003\n#co" - + "m.google.cloud.documentai.v1beta3B\032Docum" - + "entAiProcessorServiceP\001ZCcloud.google.co" - + "m/go/documentai/apiv1beta3/documentaipb;" - + "documentaipb\252\002\037Google.Cloud.DocumentAI.V" - + "1Beta3\312\002\037Google\\Cloud\\DocumentAI\\V1beta3" - + "\352\002\"Google::Cloud::DocumentAI::V1beta3\352A\177" - + "\n+documentai.googleapis.com/HumanReviewC" - + "onfig\022Pprojects/{project}/locations/{loc" - + "ation}/processors/{processor}/humanRevie" - + "wConfig\352AM\n\"documentai.googleapis.com/Lo" - + "cation\022\'projects/{project}/locations/{lo" - + "cation}b\006proto3" + + "ors/*/processorVersions/*}\332A\004name\312A7\n\025go" + + "ogle.protobuf.Empty\022\036DeleteProcessorVers" + + "ionMetadata\022\235\002\n\026DeployProcessorVersion\022>" + + ".google.cloud.documentai.v1beta3.DeployP" + + "rocessorVersionRequest\032\035.google.longrunn" + + "ing.Operation\"\243\001\202\323\344\223\002S\"N/v1beta3/{name=p" + + "rojects/*/locations/*/processors/*/proce" + + "ssorVersions/*}:deploy:\001*\332A\004name\312A@\n\036Dep" + + "loyProcessorVersionResponse\022\036DeployProce" + + "ssorVersionMetadata\022\247\002\n\030UndeployProcesso" + + "rVersion\022@.google.cloud.documentai.v1bet" + + "a3.UndeployProcessorVersionRequest\032\035.goo" + + "gle.longrunning.Operation\"\251\001\202\323\344\223\002U\"P/v1b" + + "eta3/{name=projects/*/locations/*/proces" + + "sors/*/processorVersions/*}:undeploy:\001*\332" + + "A\004name\312AD\n UndeployProcessorVersionRespo" + + "nse\022 UndeployProcessorVersionMetadata\022\321\001" + + "\n\017CreateProcessor\0227.google.cloud.documen" + + "tai.v1beta3.CreateProcessorRequest\032*.goo" + + "gle.cloud.documentai.v1beta3.Processor\"Y" + + "\202\323\344\223\002@\"3/v1beta3/{parent=projects/*/loca" + + "tions/*}/processors:\tprocessor\332A\020parent," + + "processor\022\340\001\n\017DeleteProcessor\0227.google.c" + + "loud.documentai.v1beta3.DeleteProcessorR" + + "equest\032\035.google.longrunning.Operation\"u\202" + + "\323\344\223\0025*3/v1beta3/{name=projects/*/locatio" + + "ns/*/processors/*}\332A\004name\312A0\n\025google.pro" + + "tobuf.Empty\022\027DeleteProcessorMetadata\022\345\001\n" + + "\017EnableProcessor\0227.google.cloud.document" + + "ai.v1beta3.EnableProcessorRequest\032\035.goog" + + "le.longrunning.Operation\"z\202\323\344\223\002?\":/v1bet" + + "a3/{name=projects/*/locations/*/processo" + + "rs/*}:enable:\001*\312A2\n\027EnableProcessorRespo" + + "nse\022\027EnableProcessorMetadata\022\352\001\n\020Disable" + + "Processor\0228.google.cloud.documentai.v1be" + + "ta3.DisableProcessorRequest\032\035.google.lon" + + "grunning.Operation\"}\202\323\344\223\002@\";/v1beta3/{na" + + "me=projects/*/locations/*/processors/*}:" + + "disable:\001*\312A4\n\030DisableProcessorResponse\022" + + "\030DisableProcessorMetadata\022\253\002\n\032SetDefault" + + "ProcessorVersion\022B.google.cloud.document" + + "ai.v1beta3.SetDefaultProcessorVersionReq" + + "uest\032\035.google.longrunning.Operation\"\251\001\202\323" + + "\344\223\002X\"S/v1beta3/{processor=projects/*/loc" + + "ations/*/processors/*}:setDefaultProcess" + + "orVersion:\001*\312AH\n\"SetDefaultProcessorVers" + + "ionResponse\022\"SetDefaultProcessorVersionM" + + "etadata\022\252\002\n\016ReviewDocument\0226.google.clou" + + "d.documentai.v1beta3.ReviewDocumentReque" + + "st\032\035.google.longrunning.Operation\"\300\001\202\323\344\223" + + "\002h\"c/v1beta3/{human_review_config=projec" + + "ts/*/locations/*/processors/*/humanRevie" + + "wConfig}:reviewDocument:\001*\332A\023human_revie" + + "w_config\312A9\n\026ReviewDocumentResponse\022\037Rev" + + "iewDocumentOperationMetadata\022\321\002\n\030Evaluat" + + "eProcessorVersion\022@.google.cloud.documen" + + "tai.v1beta3.EvaluateProcessorVersionRequ" + + "est\032\035.google.longrunning.Operation\"\323\001\202\323\344" + + "\223\002r\"m/v1beta3/{processor_version=project" + + "s/*/locations/*/processors/*/processorVe" + + "rsions/*}:evaluateProcessorVersion:\001*\332A\021" + + "processor_version\312AD\n EvaluateProcessorV" + + "ersionResponse\022 EvaluateProcessorVersion" + + "Metadata\022\331\001\n\rGetEvaluation\0225.google.clou" + + "d.documentai.v1beta3.GetEvaluationReques" + + "t\032+.google.cloud.documentai.v1beta3.Eval" + + "uation\"d\202\323\344\223\002W\022U/v1beta3/{name=projects/" + + "*/locations/*/processors/*/processorVers" + + "ions/*/evaluations/*}\332A\004name\022\354\001\n\017ListEva" + + "luations\0227.google.cloud.documentai.v1bet" + + "a3.ListEvaluationsRequest\0328.google.cloud" + + ".documentai.v1beta3.ListEvaluationsRespo" + + "nse\"f\202\323\344\223\002W\022U/v1beta3/{parent=projects/*" + + "/locations/*/processors/*/processorVersi" + + "ons/*}/evaluations\332A\006parent\032M\312A\031document" + + "ai.googleapis.com\322A.https://www.googleap" + + "is.com/auth/cloud-platformB\303\003\n#com.googl" + + "e.cloud.documentai.v1beta3B\032DocumentAiPr" + + "ocessorServiceP\001ZCcloud.google.com/go/do" + + "cumentai/apiv1beta3/documentaipb;documen" + + "taipb\252\002\037Google.Cloud.DocumentAI.V1Beta3\312" + + "\002\037Google\\Cloud\\DocumentAI\\V1beta3\352\002\"Goog" + + "le::Cloud::DocumentAI::V1beta3\352A\177\n+docum" + + "entai.googleapis.com/HumanReviewConfig\022P" + + "projects/{project}/locations/{location}/" + + "processors/{processor}/humanReviewConfig" + + "\352AM\n\"documentai.googleapis.com/Location\022" + + "\'projects/{project}/locations/{location}" + + "b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/DocumentProto.java b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/DocumentProto.java index 0b8f04d77fab..5da8104b38d1 100644 --- a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/DocumentProto.java +++ b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/DocumentProto.java @@ -190,7 +190,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "/color.proto\032\026google/type/date.proto\032\032go" + "ogle/type/datetime.proto\032\027google/type/mo" + "ney.proto\032 google/type/postal_address.pr" - + "oto\"\257D\n\010Document\022\022\n\003uri\030\001 \001(\tB\003\340A\001H\000\022\026\n\007" + + "oto\"\317D\n\010Document\022\022\n\003uri\030\001 \001(\tB\003\340A\001H\000\022\026\n\007" + "content\030\002 \001(\014B\003\340A\001H\000\022\021\n\tmime_type\030\003 \001(\t\022" + "\021\n\004text\030\004 \001(\tB\003\340A\001\022H\n\013text_styles\030\005 \003(\0132" + "/.google.cloud.documentai.v1beta3.Docume" @@ -386,35 +386,36 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "Type\022\033\n\027LAYOUT_TYPE_UNSPECIFIED\020\000\022\t\n\005BLO" + "CK\020\001\022\r\n\tPARAGRAPH\020\002\022\010\n\004LINE\020\003\022\t\n\005TOKEN\020\004" + "\022\022\n\016VISUAL_ELEMENT\020\005\022\t\n\005TABLE\020\006\022\016\n\nFORM_" - + "FIELD\020\007\032\226\003\n\nProvenance\022\020\n\010revision\030\001 \001(\005" - + "\022\016\n\002id\030\002 \001(\005B\002\030\001\022L\n\007parents\030\003 \003(\0132;.goog" - + "le.cloud.documentai.v1beta3.Document.Pro" - + "venance.Parent\022P\n\004type\030\004 \001(\0162B.google.cl" - + "oud.documentai.v1beta3.Document.Provenan" - + "ce.OperationType\0329\n\006Parent\022\020\n\010revision\030\001" - + " \001(\005\022\r\n\005index\030\003 \001(\005\022\016\n\002id\030\002 \001(\005B\002\030\001\"\212\001\n\r" - + "OperationType\022\036\n\032OPERATION_TYPE_UNSPECIF" - + "IED\020\000\022\007\n\003ADD\020\001\022\n\n\006REMOVE\020\002\022\013\n\007REPLACE\020\003\022" - + "\022\n\016EVAL_REQUESTED\020\004\022\021\n\rEVAL_APPROVED\020\005\022\020" - + "\n\014EVAL_SKIPPED\020\006\032\252\002\n\010Revision\022\017\n\005agent\030\004" - + " \001(\tH\000\022\023\n\tprocessor\030\005 \001(\tH\000\022\n\n\002id\030\001 \001(\t\022" - + "\022\n\006parent\030\002 \003(\005B\002\030\001\022\022\n\nparent_ids\030\007 \003(\t\022" - + "/\n\013create_time\030\003 \001(\0132\032.google.protobuf.T" - + "imestamp\022T\n\014human_review\030\006 \001(\0132>.google." - + "cloud.documentai.v1beta3.Document.Revisi" - + "on.HumanReview\0323\n\013HumanReview\022\r\n\005state\030\001" - + " \001(\t\022\025\n\rstate_message\030\002 \001(\tB\010\n\006source\032\273\001" - + "\n\nTextChange\022I\n\013text_anchor\030\001 \001(\01324.goog" - + "le.cloud.documentai.v1beta3.Document.Tex" - + "tAnchor\022\024\n\014changed_text\030\002 \001(\t\022L\n\nprovena" - + "nce\030\003 \003(\01324.google.cloud.documentai.v1be" - + "ta3.Document.ProvenanceB\002\030\001B\010\n\006sourceB\344\001" - + "\n#com.google.cloud.documentai.v1beta3B\rD" - + "ocumentProtoP\001ZCcloud.google.com/go/docu" - + "mentai/apiv1beta3/documentaipb;documenta" - + "ipb\252\002\037Google.Cloud.DocumentAI.V1Beta3\312\002\037" - + "Google\\Cloud\\DocumentAI\\V1beta3\352\002\"Google" - + "::Cloud::DocumentAI::V1beta3b\006proto3" + + "FIELD\020\007\032\266\003\n\nProvenance\022\024\n\010revision\030\001 \001(\005" + + "B\002\030\001\022\016\n\002id\030\002 \001(\005B\002\030\001\022L\n\007parents\030\003 \003(\0132;." + + "google.cloud.documentai.v1beta3.Document" + + ".Provenance.Parent\022P\n\004type\030\004 \001(\0162B.googl" + + "e.cloud.documentai.v1beta3.Document.Prov" + + "enance.OperationType\0329\n\006Parent\022\020\n\010revisi" + + "on\030\001 \001(\005\022\r\n\005index\030\003 \001(\005\022\016\n\002id\030\002 \001(\005B\002\030\001\"" + + "\246\001\n\rOperationType\022\036\n\032OPERATION_TYPE_UNSP" + + "ECIFIED\020\000\022\007\n\003ADD\020\001\022\n\n\006REMOVE\020\002\022\n\n\006UPDATE" + + "\020\007\022\017\n\007REPLACE\020\003\032\002\010\001\022\026\n\016EVAL_REQUESTED\020\004\032" + + "\002\010\001\022\025\n\rEVAL_APPROVED\020\005\032\002\010\001\022\024\n\014EVAL_SKIPP" + + "ED\020\006\032\002\010\001\032\252\002\n\010Revision\022\017\n\005agent\030\004 \001(\tH\000\022\023" + + "\n\tprocessor\030\005 \001(\tH\000\022\n\n\002id\030\001 \001(\t\022\022\n\006paren" + + "t\030\002 \003(\005B\002\030\001\022\022\n\nparent_ids\030\007 \003(\t\022/\n\013creat" + + "e_time\030\003 \001(\0132\032.google.protobuf.Timestamp" + + "\022T\n\014human_review\030\006 \001(\0132>.google.cloud.do" + + "cumentai.v1beta3.Document.Revision.Human" + + "Review\0323\n\013HumanReview\022\r\n\005state\030\001 \001(\t\022\025\n\r" + + "state_message\030\002 \001(\tB\010\n\006source\032\273\001\n\nTextCh" + + "ange\022I\n\013text_anchor\030\001 \001(\01324.google.cloud" + + ".documentai.v1beta3.Document.TextAnchor\022" + + "\024\n\014changed_text\030\002 \001(\t\022L\n\nprovenance\030\003 \003(" + + "\01324.google.cloud.documentai.v1beta3.Docu" + + "ment.ProvenanceB\002\030\001B\010\n\006sourceB\344\001\n#com.go" + + "ogle.cloud.documentai.v1beta3B\rDocumentP" + + "rotoP\001ZCcloud.google.com/go/documentai/a" + + "piv1beta3/documentaipb;documentaipb\252\002\037Go" + + "ogle.Cloud.DocumentAI.V1Beta3\312\002\037Google\\C" + + "loud\\DocumentAI\\V1beta3\352\002\"Google::Cloud:" + + ":DocumentAI::V1beta3b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/EvaluationReference.java b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/EvaluationReference.java new file mode 100644 index 000000000000..a1ac27ca5905 --- /dev/null +++ b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/EvaluationReference.java @@ -0,0 +1,1361 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the 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/evaluation.proto + +package com.google.cloud.documentai.v1beta3; + +/** + * + * + *
+ * Gives a short summary of an evaluation, and links to the evaluation itself.
+ * 
+ * + * Protobuf type {@code google.cloud.documentai.v1beta3.EvaluationReference} + */ +public final class EvaluationReference extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.documentai.v1beta3.EvaluationReference) + EvaluationReferenceOrBuilder { + private static final long serialVersionUID = 0L; + // Use EvaluationReference.newBuilder() to construct. + private EvaluationReference(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private EvaluationReference() { + operation_ = ""; + evaluation_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new EvaluationReference(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.documentai.v1beta3.DocumentAiEvaluation + .internal_static_google_cloud_documentai_v1beta3_EvaluationReference_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.documentai.v1beta3.DocumentAiEvaluation + .internal_static_google_cloud_documentai_v1beta3_EvaluationReference_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.documentai.v1beta3.EvaluationReference.class, + com.google.cloud.documentai.v1beta3.EvaluationReference.Builder.class); + } + + public static final int OPERATION_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object operation_ = ""; + /** + * + * + *
+   * The resource name of the Long Running Operation for the evaluation.
+   * 
+ * + * string operation = 1; + * + * @return The operation. + */ + @java.lang.Override + public java.lang.String getOperation() { + java.lang.Object ref = operation_; + 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(); + operation_ = s; + return s; + } + } + /** + * + * + *
+   * The resource name of the Long Running Operation for the evaluation.
+   * 
+ * + * string operation = 1; + * + * @return The bytes for operation. + */ + @java.lang.Override + public com.google.protobuf.ByteString getOperationBytes() { + java.lang.Object ref = operation_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + operation_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int EVALUATION_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object evaluation_ = ""; + /** + * + * + *
+   * The resource name of the evaluation.
+   * 
+ * + * string evaluation = 2 [(.google.api.resource_reference) = { ... } + * + * @return The evaluation. + */ + @java.lang.Override + public java.lang.String getEvaluation() { + java.lang.Object ref = evaluation_; + 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(); + evaluation_ = s; + return s; + } + } + /** + * + * + *
+   * The resource name of the evaluation.
+   * 
+ * + * string evaluation = 2 [(.google.api.resource_reference) = { ... } + * + * @return The bytes for evaluation. + */ + @java.lang.Override + public com.google.protobuf.ByteString getEvaluationBytes() { + java.lang.Object ref = evaluation_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + evaluation_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int AGGREGATE_METRICS_FIELD_NUMBER = 4; + private com.google.cloud.documentai.v1beta3.Evaluation.Metrics aggregateMetrics_; + /** + * + * + *
+   * An aggregate of the statistics for the evaluation with fuzzy matching on.
+   * 
+ * + * .google.cloud.documentai.v1beta3.Evaluation.Metrics aggregate_metrics = 4; + * + * @return Whether the aggregateMetrics field is set. + */ + @java.lang.Override + public boolean hasAggregateMetrics() { + return aggregateMetrics_ != null; + } + /** + * + * + *
+   * An aggregate of the statistics for the evaluation with fuzzy matching on.
+   * 
+ * + * .google.cloud.documentai.v1beta3.Evaluation.Metrics aggregate_metrics = 4; + * + * @return The aggregateMetrics. + */ + @java.lang.Override + public com.google.cloud.documentai.v1beta3.Evaluation.Metrics getAggregateMetrics() { + return aggregateMetrics_ == null + ? com.google.cloud.documentai.v1beta3.Evaluation.Metrics.getDefaultInstance() + : aggregateMetrics_; + } + /** + * + * + *
+   * An aggregate of the statistics for the evaluation with fuzzy matching on.
+   * 
+ * + * .google.cloud.documentai.v1beta3.Evaluation.Metrics aggregate_metrics = 4; + */ + @java.lang.Override + public com.google.cloud.documentai.v1beta3.Evaluation.MetricsOrBuilder + getAggregateMetricsOrBuilder() { + return aggregateMetrics_ == null + ? com.google.cloud.documentai.v1beta3.Evaluation.Metrics.getDefaultInstance() + : aggregateMetrics_; + } + + public static final int AGGREGATE_METRICS_EXACT_FIELD_NUMBER = 5; + private com.google.cloud.documentai.v1beta3.Evaluation.Metrics aggregateMetricsExact_; + /** + * + * + *
+   * An aggregate of the statistics for the evaluation with fuzzy matching off.
+   * 
+ * + * .google.cloud.documentai.v1beta3.Evaluation.Metrics aggregate_metrics_exact = 5; + * + * @return Whether the aggregateMetricsExact field is set. + */ + @java.lang.Override + public boolean hasAggregateMetricsExact() { + return aggregateMetricsExact_ != null; + } + /** + * + * + *
+   * An aggregate of the statistics for the evaluation with fuzzy matching off.
+   * 
+ * + * .google.cloud.documentai.v1beta3.Evaluation.Metrics aggregate_metrics_exact = 5; + * + * @return The aggregateMetricsExact. + */ + @java.lang.Override + public com.google.cloud.documentai.v1beta3.Evaluation.Metrics getAggregateMetricsExact() { + return aggregateMetricsExact_ == null + ? com.google.cloud.documentai.v1beta3.Evaluation.Metrics.getDefaultInstance() + : aggregateMetricsExact_; + } + /** + * + * + *
+   * An aggregate of the statistics for the evaluation with fuzzy matching off.
+   * 
+ * + * .google.cloud.documentai.v1beta3.Evaluation.Metrics aggregate_metrics_exact = 5; + */ + @java.lang.Override + public com.google.cloud.documentai.v1beta3.Evaluation.MetricsOrBuilder + getAggregateMetricsExactOrBuilder() { + return aggregateMetricsExact_ == null + ? com.google.cloud.documentai.v1beta3.Evaluation.Metrics.getDefaultInstance() + : aggregateMetricsExact_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(operation_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, operation_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(evaluation_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, evaluation_); + } + if (aggregateMetrics_ != null) { + output.writeMessage(4, getAggregateMetrics()); + } + if (aggregateMetricsExact_ != null) { + output.writeMessage(5, getAggregateMetricsExact()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(operation_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, operation_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(evaluation_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, evaluation_); + } + if (aggregateMetrics_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getAggregateMetrics()); + } + if (aggregateMetricsExact_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(5, getAggregateMetricsExact()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.documentai.v1beta3.EvaluationReference)) { + return super.equals(obj); + } + com.google.cloud.documentai.v1beta3.EvaluationReference other = + (com.google.cloud.documentai.v1beta3.EvaluationReference) obj; + + if (!getOperation().equals(other.getOperation())) return false; + if (!getEvaluation().equals(other.getEvaluation())) return false; + if (hasAggregateMetrics() != other.hasAggregateMetrics()) return false; + if (hasAggregateMetrics()) { + if (!getAggregateMetrics().equals(other.getAggregateMetrics())) return false; + } + if (hasAggregateMetricsExact() != other.hasAggregateMetricsExact()) return false; + if (hasAggregateMetricsExact()) { + if (!getAggregateMetricsExact().equals(other.getAggregateMetricsExact())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + OPERATION_FIELD_NUMBER; + hash = (53 * hash) + getOperation().hashCode(); + hash = (37 * hash) + EVALUATION_FIELD_NUMBER; + hash = (53 * hash) + getEvaluation().hashCode(); + if (hasAggregateMetrics()) { + hash = (37 * hash) + AGGREGATE_METRICS_FIELD_NUMBER; + hash = (53 * hash) + getAggregateMetrics().hashCode(); + } + if (hasAggregateMetricsExact()) { + hash = (37 * hash) + AGGREGATE_METRICS_EXACT_FIELD_NUMBER; + hash = (53 * hash) + getAggregateMetricsExact().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.documentai.v1beta3.EvaluationReference parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.documentai.v1beta3.EvaluationReference 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.EvaluationReference parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.documentai.v1beta3.EvaluationReference parseFrom( + com.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.EvaluationReference parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.documentai.v1beta3.EvaluationReference 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.EvaluationReference parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.documentai.v1beta3.EvaluationReference 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.EvaluationReference parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.documentai.v1beta3.EvaluationReference 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.EvaluationReference 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.EvaluationReference 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.EvaluationReference 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; + } + /** + * + * + *
+   * Gives a short summary of an evaluation, and links to the evaluation itself.
+   * 
+ * + * Protobuf type {@code google.cloud.documentai.v1beta3.EvaluationReference} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.documentai.v1beta3.EvaluationReference) + com.google.cloud.documentai.v1beta3.EvaluationReferenceOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.documentai.v1beta3.DocumentAiEvaluation + .internal_static_google_cloud_documentai_v1beta3_EvaluationReference_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.documentai.v1beta3.DocumentAiEvaluation + .internal_static_google_cloud_documentai_v1beta3_EvaluationReference_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.documentai.v1beta3.EvaluationReference.class, + com.google.cloud.documentai.v1beta3.EvaluationReference.Builder.class); + } + + // Construct using com.google.cloud.documentai.v1beta3.EvaluationReference.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + operation_ = ""; + evaluation_ = ""; + aggregateMetrics_ = null; + if (aggregateMetricsBuilder_ != null) { + aggregateMetricsBuilder_.dispose(); + aggregateMetricsBuilder_ = null; + } + aggregateMetricsExact_ = null; + if (aggregateMetricsExactBuilder_ != null) { + aggregateMetricsExactBuilder_.dispose(); + aggregateMetricsExactBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.documentai.v1beta3.DocumentAiEvaluation + .internal_static_google_cloud_documentai_v1beta3_EvaluationReference_descriptor; + } + + @java.lang.Override + public com.google.cloud.documentai.v1beta3.EvaluationReference getDefaultInstanceForType() { + return com.google.cloud.documentai.v1beta3.EvaluationReference.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.documentai.v1beta3.EvaluationReference build() { + com.google.cloud.documentai.v1beta3.EvaluationReference result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.documentai.v1beta3.EvaluationReference buildPartial() { + com.google.cloud.documentai.v1beta3.EvaluationReference result = + new com.google.cloud.documentai.v1beta3.EvaluationReference(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.documentai.v1beta3.EvaluationReference result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.operation_ = operation_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.evaluation_ = evaluation_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.aggregateMetrics_ = + aggregateMetricsBuilder_ == null ? aggregateMetrics_ : aggregateMetricsBuilder_.build(); + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.aggregateMetricsExact_ = + aggregateMetricsExactBuilder_ == null + ? aggregateMetricsExact_ + : aggregateMetricsExactBuilder_.build(); + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.documentai.v1beta3.EvaluationReference) { + return mergeFrom((com.google.cloud.documentai.v1beta3.EvaluationReference) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.documentai.v1beta3.EvaluationReference other) { + if (other == com.google.cloud.documentai.v1beta3.EvaluationReference.getDefaultInstance()) + return this; + if (!other.getOperation().isEmpty()) { + operation_ = other.operation_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getEvaluation().isEmpty()) { + evaluation_ = other.evaluation_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasAggregateMetrics()) { + mergeAggregateMetrics(other.getAggregateMetrics()); + } + if (other.hasAggregateMetricsExact()) { + mergeAggregateMetricsExact(other.getAggregateMetricsExact()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + operation_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + evaluation_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 34: + { + input.readMessage( + getAggregateMetricsFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 34 + case 42: + { + input.readMessage( + getAggregateMetricsExactFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 42 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object operation_ = ""; + /** + * + * + *
+     * The resource name of the Long Running Operation for the evaluation.
+     * 
+ * + * string operation = 1; + * + * @return The operation. + */ + public java.lang.String getOperation() { + java.lang.Object ref = operation_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + operation_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The resource name of the Long Running Operation for the evaluation.
+     * 
+ * + * string operation = 1; + * + * @return The bytes for operation. + */ + public com.google.protobuf.ByteString getOperationBytes() { + java.lang.Object ref = operation_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + operation_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The resource name of the Long Running Operation for the evaluation.
+     * 
+ * + * string operation = 1; + * + * @param value The operation to set. + * @return This builder for chaining. + */ + public Builder setOperation(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + operation_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * The resource name of the Long Running Operation for the evaluation.
+     * 
+ * + * string operation = 1; + * + * @return This builder for chaining. + */ + public Builder clearOperation() { + operation_ = getDefaultInstance().getOperation(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * The resource name of the Long Running Operation for the evaluation.
+     * 
+ * + * string operation = 1; + * + * @param value The bytes for operation to set. + * @return This builder for chaining. + */ + public Builder setOperationBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + operation_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object evaluation_ = ""; + /** + * + * + *
+     * The resource name of the evaluation.
+     * 
+ * + * string evaluation = 2 [(.google.api.resource_reference) = { ... } + * + * @return The evaluation. + */ + public java.lang.String getEvaluation() { + java.lang.Object ref = evaluation_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + evaluation_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The resource name of the evaluation.
+     * 
+ * + * string evaluation = 2 [(.google.api.resource_reference) = { ... } + * + * @return The bytes for evaluation. + */ + public com.google.protobuf.ByteString getEvaluationBytes() { + java.lang.Object ref = evaluation_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + evaluation_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The resource name of the evaluation.
+     * 
+ * + * string evaluation = 2 [(.google.api.resource_reference) = { ... } + * + * @param value The evaluation to set. + * @return This builder for chaining. + */ + public Builder setEvaluation(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + evaluation_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * The resource name of the evaluation.
+     * 
+ * + * string evaluation = 2 [(.google.api.resource_reference) = { ... } + * + * @return This builder for chaining. + */ + public Builder clearEvaluation() { + evaluation_ = getDefaultInstance().getEvaluation(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * The resource name of the evaluation.
+     * 
+ * + * string evaluation = 2 [(.google.api.resource_reference) = { ... } + * + * @param value The bytes for evaluation to set. + * @return This builder for chaining. + */ + public Builder setEvaluationBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + evaluation_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.cloud.documentai.v1beta3.Evaluation.Metrics aggregateMetrics_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.documentai.v1beta3.Evaluation.Metrics, + com.google.cloud.documentai.v1beta3.Evaluation.Metrics.Builder, + com.google.cloud.documentai.v1beta3.Evaluation.MetricsOrBuilder> + aggregateMetricsBuilder_; + /** + * + * + *
+     * An aggregate of the statistics for the evaluation with fuzzy matching on.
+     * 
+ * + * .google.cloud.documentai.v1beta3.Evaluation.Metrics aggregate_metrics = 4; + * + * @return Whether the aggregateMetrics field is set. + */ + public boolean hasAggregateMetrics() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * + * + *
+     * An aggregate of the statistics for the evaluation with fuzzy matching on.
+     * 
+ * + * .google.cloud.documentai.v1beta3.Evaluation.Metrics aggregate_metrics = 4; + * + * @return The aggregateMetrics. + */ + public com.google.cloud.documentai.v1beta3.Evaluation.Metrics getAggregateMetrics() { + if (aggregateMetricsBuilder_ == null) { + return aggregateMetrics_ == null + ? com.google.cloud.documentai.v1beta3.Evaluation.Metrics.getDefaultInstance() + : aggregateMetrics_; + } else { + return aggregateMetricsBuilder_.getMessage(); + } + } + /** + * + * + *
+     * An aggregate of the statistics for the evaluation with fuzzy matching on.
+     * 
+ * + * .google.cloud.documentai.v1beta3.Evaluation.Metrics aggregate_metrics = 4; + */ + public Builder setAggregateMetrics( + com.google.cloud.documentai.v1beta3.Evaluation.Metrics value) { + if (aggregateMetricsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + aggregateMetrics_ = value; + } else { + aggregateMetricsBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * An aggregate of the statistics for the evaluation with fuzzy matching on.
+     * 
+ * + * .google.cloud.documentai.v1beta3.Evaluation.Metrics aggregate_metrics = 4; + */ + public Builder setAggregateMetrics( + com.google.cloud.documentai.v1beta3.Evaluation.Metrics.Builder builderForValue) { + if (aggregateMetricsBuilder_ == null) { + aggregateMetrics_ = builderForValue.build(); + } else { + aggregateMetricsBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * An aggregate of the statistics for the evaluation with fuzzy matching on.
+     * 
+ * + * .google.cloud.documentai.v1beta3.Evaluation.Metrics aggregate_metrics = 4; + */ + public Builder mergeAggregateMetrics( + com.google.cloud.documentai.v1beta3.Evaluation.Metrics value) { + if (aggregateMetricsBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && aggregateMetrics_ != null + && aggregateMetrics_ + != com.google.cloud.documentai.v1beta3.Evaluation.Metrics.getDefaultInstance()) { + getAggregateMetricsBuilder().mergeFrom(value); + } else { + aggregateMetrics_ = value; + } + } else { + aggregateMetricsBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * An aggregate of the statistics for the evaluation with fuzzy matching on.
+     * 
+ * + * .google.cloud.documentai.v1beta3.Evaluation.Metrics aggregate_metrics = 4; + */ + public Builder clearAggregateMetrics() { + bitField0_ = (bitField0_ & ~0x00000004); + aggregateMetrics_ = null; + if (aggregateMetricsBuilder_ != null) { + aggregateMetricsBuilder_.dispose(); + aggregateMetricsBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * An aggregate of the statistics for the evaluation with fuzzy matching on.
+     * 
+ * + * .google.cloud.documentai.v1beta3.Evaluation.Metrics aggregate_metrics = 4; + */ + public com.google.cloud.documentai.v1beta3.Evaluation.Metrics.Builder + getAggregateMetricsBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getAggregateMetricsFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * An aggregate of the statistics for the evaluation with fuzzy matching on.
+     * 
+ * + * .google.cloud.documentai.v1beta3.Evaluation.Metrics aggregate_metrics = 4; + */ + public com.google.cloud.documentai.v1beta3.Evaluation.MetricsOrBuilder + getAggregateMetricsOrBuilder() { + if (aggregateMetricsBuilder_ != null) { + return aggregateMetricsBuilder_.getMessageOrBuilder(); + } else { + return aggregateMetrics_ == null + ? com.google.cloud.documentai.v1beta3.Evaluation.Metrics.getDefaultInstance() + : aggregateMetrics_; + } + } + /** + * + * + *
+     * An aggregate of the statistics for the evaluation with fuzzy matching on.
+     * 
+ * + * .google.cloud.documentai.v1beta3.Evaluation.Metrics aggregate_metrics = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.documentai.v1beta3.Evaluation.Metrics, + com.google.cloud.documentai.v1beta3.Evaluation.Metrics.Builder, + com.google.cloud.documentai.v1beta3.Evaluation.MetricsOrBuilder> + getAggregateMetricsFieldBuilder() { + if (aggregateMetricsBuilder_ == null) { + aggregateMetricsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.documentai.v1beta3.Evaluation.Metrics, + com.google.cloud.documentai.v1beta3.Evaluation.Metrics.Builder, + com.google.cloud.documentai.v1beta3.Evaluation.MetricsOrBuilder>( + getAggregateMetrics(), getParentForChildren(), isClean()); + aggregateMetrics_ = null; + } + return aggregateMetricsBuilder_; + } + + private com.google.cloud.documentai.v1beta3.Evaluation.Metrics aggregateMetricsExact_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.documentai.v1beta3.Evaluation.Metrics, + com.google.cloud.documentai.v1beta3.Evaluation.Metrics.Builder, + com.google.cloud.documentai.v1beta3.Evaluation.MetricsOrBuilder> + aggregateMetricsExactBuilder_; + /** + * + * + *
+     * An aggregate of the statistics for the evaluation with fuzzy matching off.
+     * 
+ * + * .google.cloud.documentai.v1beta3.Evaluation.Metrics aggregate_metrics_exact = 5; + * + * @return Whether the aggregateMetricsExact field is set. + */ + public boolean hasAggregateMetricsExact() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + * + * + *
+     * An aggregate of the statistics for the evaluation with fuzzy matching off.
+     * 
+ * + * .google.cloud.documentai.v1beta3.Evaluation.Metrics aggregate_metrics_exact = 5; + * + * @return The aggregateMetricsExact. + */ + public com.google.cloud.documentai.v1beta3.Evaluation.Metrics getAggregateMetricsExact() { + if (aggregateMetricsExactBuilder_ == null) { + return aggregateMetricsExact_ == null + ? com.google.cloud.documentai.v1beta3.Evaluation.Metrics.getDefaultInstance() + : aggregateMetricsExact_; + } else { + return aggregateMetricsExactBuilder_.getMessage(); + } + } + /** + * + * + *
+     * An aggregate of the statistics for the evaluation with fuzzy matching off.
+     * 
+ * + * .google.cloud.documentai.v1beta3.Evaluation.Metrics aggregate_metrics_exact = 5; + */ + public Builder setAggregateMetricsExact( + com.google.cloud.documentai.v1beta3.Evaluation.Metrics value) { + if (aggregateMetricsExactBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + aggregateMetricsExact_ = value; + } else { + aggregateMetricsExactBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+     * An aggregate of the statistics for the evaluation with fuzzy matching off.
+     * 
+ * + * .google.cloud.documentai.v1beta3.Evaluation.Metrics aggregate_metrics_exact = 5; + */ + public Builder setAggregateMetricsExact( + com.google.cloud.documentai.v1beta3.Evaluation.Metrics.Builder builderForValue) { + if (aggregateMetricsExactBuilder_ == null) { + aggregateMetricsExact_ = builderForValue.build(); + } else { + aggregateMetricsExactBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+     * An aggregate of the statistics for the evaluation with fuzzy matching off.
+     * 
+ * + * .google.cloud.documentai.v1beta3.Evaluation.Metrics aggregate_metrics_exact = 5; + */ + public Builder mergeAggregateMetricsExact( + com.google.cloud.documentai.v1beta3.Evaluation.Metrics value) { + if (aggregateMetricsExactBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) + && aggregateMetricsExact_ != null + && aggregateMetricsExact_ + != com.google.cloud.documentai.v1beta3.Evaluation.Metrics.getDefaultInstance()) { + getAggregateMetricsExactBuilder().mergeFrom(value); + } else { + aggregateMetricsExact_ = value; + } + } else { + aggregateMetricsExactBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+     * An aggregate of the statistics for the evaluation with fuzzy matching off.
+     * 
+ * + * .google.cloud.documentai.v1beta3.Evaluation.Metrics aggregate_metrics_exact = 5; + */ + public Builder clearAggregateMetricsExact() { + bitField0_ = (bitField0_ & ~0x00000008); + aggregateMetricsExact_ = null; + if (aggregateMetricsExactBuilder_ != null) { + aggregateMetricsExactBuilder_.dispose(); + aggregateMetricsExactBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * An aggregate of the statistics for the evaluation with fuzzy matching off.
+     * 
+ * + * .google.cloud.documentai.v1beta3.Evaluation.Metrics aggregate_metrics_exact = 5; + */ + public com.google.cloud.documentai.v1beta3.Evaluation.Metrics.Builder + getAggregateMetricsExactBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return getAggregateMetricsExactFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * An aggregate of the statistics for the evaluation with fuzzy matching off.
+     * 
+ * + * .google.cloud.documentai.v1beta3.Evaluation.Metrics aggregate_metrics_exact = 5; + */ + public com.google.cloud.documentai.v1beta3.Evaluation.MetricsOrBuilder + getAggregateMetricsExactOrBuilder() { + if (aggregateMetricsExactBuilder_ != null) { + return aggregateMetricsExactBuilder_.getMessageOrBuilder(); + } else { + return aggregateMetricsExact_ == null + ? com.google.cloud.documentai.v1beta3.Evaluation.Metrics.getDefaultInstance() + : aggregateMetricsExact_; + } + } + /** + * + * + *
+     * An aggregate of the statistics for the evaluation with fuzzy matching off.
+     * 
+ * + * .google.cloud.documentai.v1beta3.Evaluation.Metrics aggregate_metrics_exact = 5; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.documentai.v1beta3.Evaluation.Metrics, + com.google.cloud.documentai.v1beta3.Evaluation.Metrics.Builder, + com.google.cloud.documentai.v1beta3.Evaluation.MetricsOrBuilder> + getAggregateMetricsExactFieldBuilder() { + if (aggregateMetricsExactBuilder_ == null) { + aggregateMetricsExactBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.documentai.v1beta3.Evaluation.Metrics, + com.google.cloud.documentai.v1beta3.Evaluation.Metrics.Builder, + com.google.cloud.documentai.v1beta3.Evaluation.MetricsOrBuilder>( + getAggregateMetricsExact(), getParentForChildren(), isClean()); + aggregateMetricsExact_ = null; + } + return aggregateMetricsExactBuilder_; + } + + @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.EvaluationReference) + } + + // @@protoc_insertion_point(class_scope:google.cloud.documentai.v1beta3.EvaluationReference) + private static final com.google.cloud.documentai.v1beta3.EvaluationReference DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.documentai.v1beta3.EvaluationReference(); + } + + public static com.google.cloud.documentai.v1beta3.EvaluationReference getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public EvaluationReference parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.documentai.v1beta3.EvaluationReference getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/EvaluationReferenceOrBuilder.java b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/EvaluationReferenceOrBuilder.java new file mode 100644 index 000000000000..9a2ccc27aed1 --- /dev/null +++ b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/EvaluationReferenceOrBuilder.java @@ -0,0 +1,146 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the 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/evaluation.proto + +package com.google.cloud.documentai.v1beta3; + +public interface EvaluationReferenceOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.documentai.v1beta3.EvaluationReference) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The resource name of the Long Running Operation for the evaluation.
+   * 
+ * + * string operation = 1; + * + * @return The operation. + */ + java.lang.String getOperation(); + /** + * + * + *
+   * The resource name of the Long Running Operation for the evaluation.
+   * 
+ * + * string operation = 1; + * + * @return The bytes for operation. + */ + com.google.protobuf.ByteString getOperationBytes(); + + /** + * + * + *
+   * The resource name of the evaluation.
+   * 
+ * + * string evaluation = 2 [(.google.api.resource_reference) = { ... } + * + * @return The evaluation. + */ + java.lang.String getEvaluation(); + /** + * + * + *
+   * The resource name of the evaluation.
+   * 
+ * + * string evaluation = 2 [(.google.api.resource_reference) = { ... } + * + * @return The bytes for evaluation. + */ + com.google.protobuf.ByteString getEvaluationBytes(); + + /** + * + * + *
+   * An aggregate of the statistics for the evaluation with fuzzy matching on.
+   * 
+ * + * .google.cloud.documentai.v1beta3.Evaluation.Metrics aggregate_metrics = 4; + * + * @return Whether the aggregateMetrics field is set. + */ + boolean hasAggregateMetrics(); + /** + * + * + *
+   * An aggregate of the statistics for the evaluation with fuzzy matching on.
+   * 
+ * + * .google.cloud.documentai.v1beta3.Evaluation.Metrics aggregate_metrics = 4; + * + * @return The aggregateMetrics. + */ + com.google.cloud.documentai.v1beta3.Evaluation.Metrics getAggregateMetrics(); + /** + * + * + *
+   * An aggregate of the statistics for the evaluation with fuzzy matching on.
+   * 
+ * + * .google.cloud.documentai.v1beta3.Evaluation.Metrics aggregate_metrics = 4; + */ + com.google.cloud.documentai.v1beta3.Evaluation.MetricsOrBuilder getAggregateMetricsOrBuilder(); + + /** + * + * + *
+   * An aggregate of the statistics for the evaluation with fuzzy matching off.
+   * 
+ * + * .google.cloud.documentai.v1beta3.Evaluation.Metrics aggregate_metrics_exact = 5; + * + * @return Whether the aggregateMetricsExact field is set. + */ + boolean hasAggregateMetricsExact(); + /** + * + * + *
+   * An aggregate of the statistics for the evaluation with fuzzy matching off.
+   * 
+ * + * .google.cloud.documentai.v1beta3.Evaluation.Metrics aggregate_metrics_exact = 5; + * + * @return The aggregateMetricsExact. + */ + com.google.cloud.documentai.v1beta3.Evaluation.Metrics getAggregateMetricsExact(); + /** + * + * + *
+   * An aggregate of the statistics for the evaluation with fuzzy matching off.
+   * 
+ * + * .google.cloud.documentai.v1beta3.Evaluation.Metrics aggregate_metrics_exact = 5; + */ + com.google.cloud.documentai.v1beta3.Evaluation.MetricsOrBuilder + getAggregateMetricsExactOrBuilder(); +} diff --git a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/ProcessorVersion.java b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/ProcessorVersion.java index 367444a86ffb..39ac31797485 100644 --- a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/ProcessorVersion.java +++ b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/ProcessorVersion.java @@ -1555,6 +1555,57 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } + public static final int LATEST_EVALUATION_FIELD_NUMBER = 8; + private com.google.cloud.documentai.v1beta3.EvaluationReference latestEvaluation_; + /** + * + * + *
+   * The most recently invoked evaluation for the processor version.
+   * 
+ * + * .google.cloud.documentai.v1beta3.EvaluationReference latest_evaluation = 8; + * + * @return Whether the latestEvaluation field is set. + */ + @java.lang.Override + public boolean hasLatestEvaluation() { + return latestEvaluation_ != null; + } + /** + * + * + *
+   * The most recently invoked evaluation for the processor version.
+   * 
+ * + * .google.cloud.documentai.v1beta3.EvaluationReference latest_evaluation = 8; + * + * @return The latestEvaluation. + */ + @java.lang.Override + public com.google.cloud.documentai.v1beta3.EvaluationReference getLatestEvaluation() { + return latestEvaluation_ == null + ? com.google.cloud.documentai.v1beta3.EvaluationReference.getDefaultInstance() + : latestEvaluation_; + } + /** + * + * + *
+   * The most recently invoked evaluation for the processor version.
+   * 
+ * + * .google.cloud.documentai.v1beta3.EvaluationReference latest_evaluation = 8; + */ + @java.lang.Override + public com.google.cloud.documentai.v1beta3.EvaluationReferenceOrBuilder + getLatestEvaluationOrBuilder() { + return latestEvaluation_ == null + ? com.google.cloud.documentai.v1beta3.EvaluationReference.getDefaultInstance() + : latestEvaluation_; + } + public static final int KMS_KEY_NAME_FIELD_NUMBER = 9; @SuppressWarnings("serial") @@ -1757,6 +1808,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (createTime_ != null) { output.writeMessage(7, getCreateTime()); } + if (latestEvaluation_ != null) { + output.writeMessage(8, getLatestEvaluation()); + } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(kmsKeyName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 9, kmsKeyName_); } @@ -1795,6 +1849,9 @@ public int getSerializedSize() { if (createTime_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getCreateTime()); } + if (latestEvaluation_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getLatestEvaluation()); + } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(kmsKeyName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, kmsKeyName_); } @@ -1837,6 +1894,10 @@ public boolean equals(final java.lang.Object obj) { if (hasCreateTime()) { if (!getCreateTime().equals(other.getCreateTime())) return false; } + if (hasLatestEvaluation() != other.hasLatestEvaluation()) return false; + if (hasLatestEvaluation()) { + if (!getLatestEvaluation().equals(other.getLatestEvaluation())) return false; + } if (!getKmsKeyName().equals(other.getKmsKeyName())) return false; if (!getKmsKeyVersionName().equals(other.getKmsKeyVersionName())) return false; if (getGoogleManaged() != other.getGoogleManaged()) return false; @@ -1869,6 +1930,10 @@ public int hashCode() { hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; hash = (53 * hash) + getCreateTime().hashCode(); } + if (hasLatestEvaluation()) { + hash = (37 * hash) + LATEST_EVALUATION_FIELD_NUMBER; + hash = (53 * hash) + getLatestEvaluation().hashCode(); + } hash = (37 * hash) + KMS_KEY_NAME_FIELD_NUMBER; hash = (53 * hash) + getKmsKeyName().hashCode(); hash = (37 * hash) + KMS_KEY_VERSION_NAME_FIELD_NUMBER; @@ -2035,6 +2100,11 @@ public Builder clear() { createTimeBuilder_.dispose(); createTimeBuilder_ = null; } + latestEvaluation_ = null; + if (latestEvaluationBuilder_ != null) { + latestEvaluationBuilder_.dispose(); + latestEvaluationBuilder_ = null; + } kmsKeyName_ = ""; kmsKeyVersionName_ = ""; googleManaged_ = false; @@ -2096,15 +2166,19 @@ private void buildPartial0(com.google.cloud.documentai.v1beta3.ProcessorVersion result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); } if (((from_bitField0_ & 0x00000020) != 0)) { - result.kmsKeyName_ = kmsKeyName_; + result.latestEvaluation_ = + latestEvaluationBuilder_ == null ? latestEvaluation_ : latestEvaluationBuilder_.build(); } if (((from_bitField0_ & 0x00000040) != 0)) { - result.kmsKeyVersionName_ = kmsKeyVersionName_; + result.kmsKeyName_ = kmsKeyName_; } if (((from_bitField0_ & 0x00000080) != 0)) { - result.googleManaged_ = googleManaged_; + result.kmsKeyVersionName_ = kmsKeyVersionName_; } if (((from_bitField0_ & 0x00000100) != 0)) { + result.googleManaged_ = googleManaged_; + } + if (((from_bitField0_ & 0x00000200) != 0)) { result.deprecationInfo_ = deprecationInfoBuilder_ == null ? deprecationInfo_ : deprecationInfoBuilder_.build(); } @@ -2175,14 +2249,17 @@ public Builder mergeFrom(com.google.cloud.documentai.v1beta3.ProcessorVersion ot if (other.hasCreateTime()) { mergeCreateTime(other.getCreateTime()); } + if (other.hasLatestEvaluation()) { + mergeLatestEvaluation(other.getLatestEvaluation()); + } if (!other.getKmsKeyName().isEmpty()) { kmsKeyName_ = other.kmsKeyName_; - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; onChanged(); } if (!other.getKmsKeyVersionName().isEmpty()) { kmsKeyVersionName_ = other.kmsKeyVersionName_; - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000080; onChanged(); } if (other.getGoogleManaged() != false) { @@ -2241,22 +2318,29 @@ public Builder mergeFrom( bitField0_ |= 0x00000010; break; } // case 58 + case 66: + { + input.readMessage( + getLatestEvaluationFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000020; + break; + } // case 66 case 74: { kmsKeyName_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; break; } // case 74 case 82: { kmsKeyVersionName_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000080; break; } // case 82 case 88: { googleManaged_ = input.readBool(); - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; break; } // case 88 case 98: @@ -2268,7 +2352,7 @@ public Builder mergeFrom( case 106: { input.readMessage(getDeprecationInfoFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; break; } // case 106 default: @@ -2973,6 +3057,195 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { return createTimeBuilder_; } + private com.google.cloud.documentai.v1beta3.EvaluationReference latestEvaluation_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.documentai.v1beta3.EvaluationReference, + com.google.cloud.documentai.v1beta3.EvaluationReference.Builder, + com.google.cloud.documentai.v1beta3.EvaluationReferenceOrBuilder> + latestEvaluationBuilder_; + /** + * + * + *
+     * The most recently invoked evaluation for the processor version.
+     * 
+ * + * .google.cloud.documentai.v1beta3.EvaluationReference latest_evaluation = 8; + * + * @return Whether the latestEvaluation field is set. + */ + public boolean hasLatestEvaluation() { + return ((bitField0_ & 0x00000020) != 0); + } + /** + * + * + *
+     * The most recently invoked evaluation for the processor version.
+     * 
+ * + * .google.cloud.documentai.v1beta3.EvaluationReference latest_evaluation = 8; + * + * @return The latestEvaluation. + */ + public com.google.cloud.documentai.v1beta3.EvaluationReference getLatestEvaluation() { + if (latestEvaluationBuilder_ == null) { + return latestEvaluation_ == null + ? com.google.cloud.documentai.v1beta3.EvaluationReference.getDefaultInstance() + : latestEvaluation_; + } else { + return latestEvaluationBuilder_.getMessage(); + } + } + /** + * + * + *
+     * The most recently invoked evaluation for the processor version.
+     * 
+ * + * .google.cloud.documentai.v1beta3.EvaluationReference latest_evaluation = 8; + */ + public Builder setLatestEvaluation( + com.google.cloud.documentai.v1beta3.EvaluationReference value) { + if (latestEvaluationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + latestEvaluation_ = value; + } else { + latestEvaluationBuilder_.setMessage(value); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + * + * + *
+     * The most recently invoked evaluation for the processor version.
+     * 
+ * + * .google.cloud.documentai.v1beta3.EvaluationReference latest_evaluation = 8; + */ + public Builder setLatestEvaluation( + com.google.cloud.documentai.v1beta3.EvaluationReference.Builder builderForValue) { + if (latestEvaluationBuilder_ == null) { + latestEvaluation_ = builderForValue.build(); + } else { + latestEvaluationBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + * + * + *
+     * The most recently invoked evaluation for the processor version.
+     * 
+ * + * .google.cloud.documentai.v1beta3.EvaluationReference latest_evaluation = 8; + */ + public Builder mergeLatestEvaluation( + com.google.cloud.documentai.v1beta3.EvaluationReference value) { + if (latestEvaluationBuilder_ == null) { + if (((bitField0_ & 0x00000020) != 0) + && latestEvaluation_ != null + && latestEvaluation_ + != com.google.cloud.documentai.v1beta3.EvaluationReference.getDefaultInstance()) { + getLatestEvaluationBuilder().mergeFrom(value); + } else { + latestEvaluation_ = value; + } + } else { + latestEvaluationBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + * + * + *
+     * The most recently invoked evaluation for the processor version.
+     * 
+ * + * .google.cloud.documentai.v1beta3.EvaluationReference latest_evaluation = 8; + */ + public Builder clearLatestEvaluation() { + bitField0_ = (bitField0_ & ~0x00000020); + latestEvaluation_ = null; + if (latestEvaluationBuilder_ != null) { + latestEvaluationBuilder_.dispose(); + latestEvaluationBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * The most recently invoked evaluation for the processor version.
+     * 
+ * + * .google.cloud.documentai.v1beta3.EvaluationReference latest_evaluation = 8; + */ + public com.google.cloud.documentai.v1beta3.EvaluationReference.Builder + getLatestEvaluationBuilder() { + bitField0_ |= 0x00000020; + onChanged(); + return getLatestEvaluationFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The most recently invoked evaluation for the processor version.
+     * 
+ * + * .google.cloud.documentai.v1beta3.EvaluationReference latest_evaluation = 8; + */ + public com.google.cloud.documentai.v1beta3.EvaluationReferenceOrBuilder + getLatestEvaluationOrBuilder() { + if (latestEvaluationBuilder_ != null) { + return latestEvaluationBuilder_.getMessageOrBuilder(); + } else { + return latestEvaluation_ == null + ? com.google.cloud.documentai.v1beta3.EvaluationReference.getDefaultInstance() + : latestEvaluation_; + } + } + /** + * + * + *
+     * The most recently invoked evaluation for the processor version.
+     * 
+ * + * .google.cloud.documentai.v1beta3.EvaluationReference latest_evaluation = 8; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.documentai.v1beta3.EvaluationReference, + com.google.cloud.documentai.v1beta3.EvaluationReference.Builder, + com.google.cloud.documentai.v1beta3.EvaluationReferenceOrBuilder> + getLatestEvaluationFieldBuilder() { + if (latestEvaluationBuilder_ == null) { + latestEvaluationBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.documentai.v1beta3.EvaluationReference, + com.google.cloud.documentai.v1beta3.EvaluationReference.Builder, + com.google.cloud.documentai.v1beta3.EvaluationReferenceOrBuilder>( + getLatestEvaluation(), getParentForChildren(), isClean()); + latestEvaluation_ = null; + } + return latestEvaluationBuilder_; + } + private java.lang.Object kmsKeyName_ = ""; /** * @@ -3035,7 +3308,7 @@ public Builder setKmsKeyName(java.lang.String value) { throw new NullPointerException(); } kmsKeyName_ = value; - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; onChanged(); return this; } @@ -3052,7 +3325,7 @@ public Builder setKmsKeyName(java.lang.String value) { */ public Builder clearKmsKeyName() { kmsKeyName_ = getDefaultInstance().getKmsKeyName(); - bitField0_ = (bitField0_ & ~0x00000020); + bitField0_ = (bitField0_ & ~0x00000040); onChanged(); return this; } @@ -3074,7 +3347,7 @@ public Builder setKmsKeyNameBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); kmsKeyName_ = value; - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; onChanged(); return this; } @@ -3141,7 +3414,7 @@ public Builder setKmsKeyVersionName(java.lang.String value) { throw new NullPointerException(); } kmsKeyVersionName_ = value; - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000080; onChanged(); return this; } @@ -3158,7 +3431,7 @@ public Builder setKmsKeyVersionName(java.lang.String value) { */ public Builder clearKmsKeyVersionName() { kmsKeyVersionName_ = getDefaultInstance().getKmsKeyVersionName(); - bitField0_ = (bitField0_ & ~0x00000040); + bitField0_ = (bitField0_ & ~0x00000080); onChanged(); return this; } @@ -3180,7 +3453,7 @@ public Builder setKmsKeyVersionNameBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); kmsKeyVersionName_ = value; - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000080; onChanged(); return this; } @@ -3216,7 +3489,7 @@ public boolean getGoogleManaged() { public Builder setGoogleManaged(boolean value) { googleManaged_ = value; - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; onChanged(); return this; } @@ -3232,7 +3505,7 @@ public Builder setGoogleManaged(boolean value) { * @return This builder for chaining. */ public Builder clearGoogleManaged() { - bitField0_ = (bitField0_ & ~0x00000080); + bitField0_ = (bitField0_ & ~0x00000100); googleManaged_ = false; onChanged(); return this; @@ -3258,7 +3531,7 @@ public Builder clearGoogleManaged() { * @return Whether the deprecationInfo field is set. */ public boolean hasDeprecationInfo() { - return ((bitField0_ & 0x00000100) != 0); + return ((bitField0_ & 0x00000200) != 0); } /** * @@ -3305,7 +3578,7 @@ public Builder setDeprecationInfo( } else { deprecationInfoBuilder_.setMessage(value); } - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; onChanged(); return this; } @@ -3328,7 +3601,7 @@ public Builder setDeprecationInfo( } else { deprecationInfoBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; onChanged(); return this; } @@ -3346,7 +3619,7 @@ public Builder setDeprecationInfo( public Builder mergeDeprecationInfo( com.google.cloud.documentai.v1beta3.ProcessorVersion.DeprecationInfo value) { if (deprecationInfoBuilder_ == null) { - if (((bitField0_ & 0x00000100) != 0) + if (((bitField0_ & 0x00000200) != 0) && deprecationInfo_ != null && deprecationInfo_ != com.google.cloud.documentai.v1beta3.ProcessorVersion.DeprecationInfo @@ -3358,7 +3631,7 @@ public Builder mergeDeprecationInfo( } else { deprecationInfoBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; onChanged(); return this; } @@ -3374,7 +3647,7 @@ public Builder mergeDeprecationInfo( * */ public Builder clearDeprecationInfo() { - bitField0_ = (bitField0_ & ~0x00000100); + bitField0_ = (bitField0_ & ~0x00000200); deprecationInfo_ = null; if (deprecationInfoBuilder_ != null) { deprecationInfoBuilder_.dispose(); @@ -3396,7 +3669,7 @@ public Builder clearDeprecationInfo() { */ public com.google.cloud.documentai.v1beta3.ProcessorVersion.DeprecationInfo.Builder getDeprecationInfoBuilder() { - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; onChanged(); return getDeprecationInfoFieldBuilder().getBuilder(); } diff --git a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/ProcessorVersionOrBuilder.java b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/ProcessorVersionOrBuilder.java index 7740da5a6702..02984e34d797 100644 --- a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/ProcessorVersionOrBuilder.java +++ b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/ProcessorVersionOrBuilder.java @@ -172,6 +172,41 @@ public interface ProcessorVersionOrBuilder */ com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); + /** + * + * + *
+   * The most recently invoked evaluation for the processor version.
+   * 
+ * + * .google.cloud.documentai.v1beta3.EvaluationReference latest_evaluation = 8; + * + * @return Whether the latestEvaluation field is set. + */ + boolean hasLatestEvaluation(); + /** + * + * + *
+   * The most recently invoked evaluation for the processor version.
+   * 
+ * + * .google.cloud.documentai.v1beta3.EvaluationReference latest_evaluation = 8; + * + * @return The latestEvaluation. + */ + com.google.cloud.documentai.v1beta3.EvaluationReference getLatestEvaluation(); + /** + * + * + *
+   * The most recently invoked evaluation for the processor version.
+   * 
+ * + * .google.cloud.documentai.v1beta3.EvaluationReference latest_evaluation = 8; + */ + com.google.cloud.documentai.v1beta3.EvaluationReferenceOrBuilder getLatestEvaluationOrBuilder(); + /** * * diff --git a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/proto/google/cloud/documentai/v1beta3/document.proto b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/proto/google/cloud/documentai/v1beta3/document.proto index caade71ebc00..193f7700d513 100644 --- a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/proto/google/cloud/documentai/v1beta3/document.proto +++ b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/proto/google/cloud/documentai/v1beta3/document.proto @@ -739,22 +739,29 @@ message Document { // Remove an element identified by `parent`. REMOVE = 2; - // Replace an element identified by `parent`. - REPLACE = 3; + // Updates any fields within the given provenance scope of the message. It + // 'overwrites' the fields rather than replacing them. This is + // especially relevant when we just want to update a field value of an + // entity without also affecting all the child properties. + UPDATE = 7; - // Request human review for the element identified by `parent`. - EVAL_REQUESTED = 4; + // Currently unused. Replace an element identified by `parent`. + REPLACE = 3 [deprecated = true]; - // Element is reviewed and approved at human review, confidence will be - // set to 1.0. - EVAL_APPROVED = 5; + // Deprecated. Request human review for the element identified by + // `parent`. + EVAL_REQUESTED = 4 [deprecated = true]; - // Element is skipped in the validation process. - EVAL_SKIPPED = 6; + // Deprecated. Element is reviewed and approved at human review, + // confidence will be set to 1.0. + EVAL_APPROVED = 5 [deprecated = true]; + + // Deprecated. Element is skipped in the validation process. + EVAL_SKIPPED = 6 [deprecated = true]; } // The index of the revision that produced this element. - int32 revision = 1; + int32 revision = 1 [deprecated = true]; // The Id of this operation. Needs to be unique within the scope of the // revision. @@ -790,7 +797,8 @@ message Document { string processor = 5; } - // Id of the revision. Unique within the context of the document. + // Id of the revision, internally generated by doc proto storage. + // Unique within the context of the document. string id = 1; // The revisions that this revision is based on. This can include one or @@ -803,7 +811,8 @@ message Document { // `provenance.parent.revision` fields that index into this field. repeated string parent_ids = 7; - // The time that the revision was created. + // The time that the revision was created, internally generated by + // doc proto storage at the time of create. google.protobuf.Timestamp create_time = 3; // Human Review information of this revision. diff --git a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/proto/google/cloud/documentai/v1beta3/document_processor_service.proto b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/proto/google/cloud/documentai/v1beta3/document_processor_service.proto index d9a2d21242d0..689ce0674de1 100644 --- a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/proto/google/cloud/documentai/v1beta3/document_processor_service.proto +++ b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/proto/google/cloud/documentai/v1beta3/document_processor_service.proto @@ -879,7 +879,7 @@ message TrainProcessorVersionRequest { string parent = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { - child_type: "documentai.googleapis.com/ProcessorVersion" + type: "documentai.googleapis.com/Processor" } ]; diff --git a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/proto/google/cloud/documentai/v1beta3/evaluation.proto b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/proto/google/cloud/documentai/v1beta3/evaluation.proto index 1601b86eb4f0..e5087c818c21 100644 --- a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/proto/google/cloud/documentai/v1beta3/evaluation.proto +++ b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/proto/google/cloud/documentai/v1beta3/evaluation.proto @@ -27,6 +27,23 @@ option java_package = "com.google.cloud.documentai.v1beta3"; option php_namespace = "Google\\Cloud\\DocumentAI\\V1beta3"; option ruby_package = "Google::Cloud::DocumentAI::V1beta3"; +// Gives a short summary of an evaluation, and links to the evaluation itself. +message EvaluationReference { + // The resource name of the Long Running Operation for the evaluation. + string operation = 1; + + // The resource name of the evaluation. + string evaluation = 2 [(google.api.resource_reference) = { + type: "documentai.googleapis.com/Evaluation" + }]; + + // An aggregate of the statistics for the evaluation with fuzzy matching on. + Evaluation.Metrics aggregate_metrics = 4; + + // An aggregate of the statistics for the evaluation with fuzzy matching off. + Evaluation.Metrics aggregate_metrics_exact = 5; +} + // An evaluation of a ProcessorVersion's performance. message Evaluation { option (google.api.resource) = { diff --git a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/proto/google/cloud/documentai/v1beta3/processor.proto b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/proto/google/cloud/documentai/v1beta3/processor.proto index 707ab54cbf96..7de236e1fec5 100644 --- a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/proto/google/cloud/documentai/v1beta3/processor.proto +++ b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/proto/google/cloud/documentai/v1beta3/processor.proto @@ -19,6 +19,7 @@ package google.cloud.documentai.v1beta3; import "google/api/field_behavior.proto"; import "google/api/resource.proto"; import "google/cloud/documentai/v1beta3/document_schema.proto"; +import "google/cloud/documentai/v1beta3/evaluation.proto"; import "google/protobuf/timestamp.proto"; option csharp_namespace = "Google.Cloud.DocumentAI.V1Beta3"; @@ -96,6 +97,9 @@ message ProcessorVersion { // The time the processor version was created. google.protobuf.Timestamp create_time = 7; + // The most recently invoked evaluation for the processor version. + EvaluationReference latest_evaluation = 8; + // The KMS key name used for encryption. string kms_key_name = 9;