diff --git a/google-cloud-document-ai/src/test/java/com/google/cloud/documentai/v1/DocumentProcessorServiceClientTest.java b/google-cloud-document-ai/src/test/java/com/google/cloud/documentai/v1/DocumentProcessorServiceClientTest.java index 660082e3..64ee9921 100644 --- a/google-cloud-document-ai/src/test/java/com/google/cloud/documentai/v1/DocumentProcessorServiceClientTest.java +++ b/google-cloud-document-ai/src/test/java/com/google/cloud/documentai/v1/DocumentProcessorServiceClientTest.java @@ -43,9 +43,9 @@ @Generated("by gapic-generator-java") public class DocumentProcessorServiceClientTest { + private static MockDocumentProcessorService mockDocumentProcessorService; private static MockServiceHelper mockServiceHelper; private DocumentProcessorServiceClient client; - private static MockDocumentProcessorService mockDocumentProcessorService; private LocalChannelProvider channelProvider; @BeforeClass diff --git a/google-cloud-document-ai/src/test/java/com/google/cloud/documentai/v1beta3/DocumentProcessorServiceClientTest.java b/google-cloud-document-ai/src/test/java/com/google/cloud/documentai/v1beta3/DocumentProcessorServiceClientTest.java index 29a74a45..0cd6a07d 100644 --- a/google-cloud-document-ai/src/test/java/com/google/cloud/documentai/v1beta3/DocumentProcessorServiceClientTest.java +++ b/google-cloud-document-ai/src/test/java/com/google/cloud/documentai/v1beta3/DocumentProcessorServiceClientTest.java @@ -43,9 +43,9 @@ @Generated("by gapic-generator-java") public class DocumentProcessorServiceClientTest { + private static MockDocumentProcessorService mockDocumentProcessorService; private static MockServiceHelper mockServiceHelper; private DocumentProcessorServiceClient client; - private static MockDocumentProcessorService mockDocumentProcessorService; private LocalChannelProvider channelProvider; @BeforeClass diff --git a/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/CommonOperationMetadata.java b/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/CommonOperationMetadata.java index 227e52b7..bafae7da 100644 --- a/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/CommonOperationMetadata.java +++ b/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/CommonOperationMetadata.java @@ -14,7 +14,7 @@ * limitations under the License. */ // Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/documentai/v1beta3/document_processor_service.proto +// source: google/cloud/documentai/v1beta3/operation_metadata.proto package com.google.cloud.documentai.v1beta3; @@ -135,14 +135,14 @@ private CommonOperationMetadata( } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.documentai.v1beta3.DocumentAiProcessorService + return com.google.cloud.documentai.v1beta3.OperationMetadataProto .internal_static_google_cloud_documentai_v1beta3_CommonOperationMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.documentai.v1beta3.DocumentAiProcessorService + return com.google.cloud.documentai.v1beta3.OperationMetadataProto .internal_static_google_cloud_documentai_v1beta3_CommonOperationMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.documentai.v1beta3.CommonOperationMetadata.class, @@ -768,14 +768,14 @@ public static final class Builder extends com.google.protobuf.GeneratedMessageV3 // @@protoc_insertion_point(builder_implements:google.cloud.documentai.v1beta3.CommonOperationMetadata) com.google.cloud.documentai.v1beta3.CommonOperationMetadataOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.documentai.v1beta3.DocumentAiProcessorService + return com.google.cloud.documentai.v1beta3.OperationMetadataProto .internal_static_google_cloud_documentai_v1beta3_CommonOperationMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.documentai.v1beta3.DocumentAiProcessorService + return com.google.cloud.documentai.v1beta3.OperationMetadataProto .internal_static_google_cloud_documentai_v1beta3_CommonOperationMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.documentai.v1beta3.CommonOperationMetadata.class, @@ -820,7 +820,7 @@ public Builder clear() { @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.documentai.v1beta3.DocumentAiProcessorService + return com.google.cloud.documentai.v1beta3.OperationMetadataProto .internal_static_google_cloud_documentai_v1beta3_CommonOperationMetadata_descriptor; } diff --git a/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/CommonOperationMetadataOrBuilder.java b/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/CommonOperationMetadataOrBuilder.java index c1532539..1bfd2435 100644 --- a/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/CommonOperationMetadataOrBuilder.java +++ b/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/CommonOperationMetadataOrBuilder.java @@ -14,7 +14,7 @@ * limitations under the License. */ // Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/documentai/v1beta3/document_processor_service.proto +// source: google/cloud/documentai/v1beta3/operation_metadata.proto package com.google.cloud.documentai.v1beta3; diff --git a/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/DocumentAiProcessorService.java b/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/DocumentAiProcessorService.java index 7a732929..1d6d8843 100644 --- a/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/DocumentAiProcessorService.java +++ b/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/DocumentAiProcessorService.java @@ -75,10 +75,6 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_documentai_v1beta3_ReviewDocumentOperationMetadata_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_documentai_v1beta3_ReviewDocumentOperationMetadata_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_documentai_v1beta3_CommonOperationMetadata_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_documentai_v1beta3_CommonOperationMetadata_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; @@ -95,125 +91,118 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "le/api/field_behavior.proto\032\031google/api/" + "resource.proto\032.google/cloud/documentai/" + "v1beta3/document.proto\0321google/cloud/doc" - + "umentai/v1beta3/document_io.proto\032#googl" - + "e/longrunning/operations.proto\032 google/p" - + "rotobuf/field_mask.proto\032\037google/protobu" - + "f/timestamp.proto\032\027google/rpc/status.pro" - + "to\"\275\002\n\016ProcessRequest\022D\n\017inline_document" - + "\030\004 \001(\0132).google.cloud.documentai.v1beta3" - + ".DocumentH\000\022D\n\014raw_document\030\005 \001(\0132,.goog" - + "le.cloud.documentai.v1beta3.RawDocumentH" - + "\000\0229\n\004name\030\001 \001(\tB+\340A\002\372A%\n#documentai.goog" - + "leapis.com/Processor\022?\n\010document\030\002 \001(\0132)" - + ".google.cloud.documentai.v1beta3.Documen" - + "tB\002\030\001\022\031\n\021skip_human_review\030\003 \001(\010B\010\n\006sour" - + "ce\"\363\001\n\021HumanReviewStatus\022G\n\005state\030\001 \001(\0162" - + "8.google.cloud.documentai.v1beta3.HumanR" - + "eviewStatus.State\022\025\n\rstate_message\030\002 \001(\t" - + "\022\036\n\026human_review_operation\030\003 \001(\t\"^\n\005Stat" - + "e\022\025\n\021STATE_UNSPECIFIED\020\000\022\013\n\007SKIPPED\020\001\022\025\n" - + "\021VALIDATION_PASSED\020\002\022\017\n\013IN_PROGRESS\020\003\022\t\n" - + "\005ERROR\020\004\"\303\001\n\017ProcessResponse\022;\n\010document" - + "\030\001 \001(\0132).google.cloud.documentai.v1beta3" - + ".Document\022\"\n\026human_review_operation\030\002 \001(" - + "\tB\002\030\001\022O\n\023human_review_status\030\003 \001(\01322.goo" - + "gle.cloud.documentai.v1beta3.HumanReview" - + "Status\"\315\004\n\023BatchProcessRequest\0229\n\004name\030\001" - + " \001(\tB+\340A\002\372A%\n#documentai.googleapis.com/" - + "Processor\022`\n\rinput_configs\030\002 \003(\0132E.googl" - + "e.cloud.documentai.v1beta3.BatchProcessR" - + "equest.BatchInputConfigB\002\030\001\022a\n\routput_co" - + "nfig\030\003 \001(\0132F.google.cloud.documentai.v1b" - + "eta3.BatchProcessRequest.BatchOutputConf" - + "igB\002\030\001\022S\n\017input_documents\030\005 \001(\0132:.google" - + ".cloud.documentai.v1beta3.BatchDocuments" - + "InputConfig\022U\n\026document_output_config\030\006 " - + "\001(\01325.google.cloud.documentai.v1beta3.Do" - + "cumentOutputConfig\022\031\n\021skip_human_review\030" - + "\004 \001(\010\032=\n\020BatchInputConfig\022\022\n\ngcs_source\030" - + "\001 \001(\t\022\021\n\tmime_type\030\002 \001(\t:\002\030\001\0320\n\021BatchOut" - + "putConfig\022\027\n\017gcs_destination\030\001 \001(\t:\002\030\001\"\026" - + "\n\024BatchProcessResponse\"\262\005\n\024BatchProcessM" - + "etadata\022J\n\005state\030\001 \001(\0162;.google.cloud.do" - + "cumentai.v1beta3.BatchProcessMetadata.St" - + "ate\022\025\n\rstate_message\030\002 \001(\t\022/\n\013create_tim" - + "e\030\003 \001(\0132\032.google.protobuf.Timestamp\022/\n\013u" - + "pdate_time\030\004 \001(\0132\032.google.protobuf.Times" - + "tamp\022r\n\033individual_process_statuses\030\005 \003(" - + "\0132M.google.cloud.documentai.v1beta3.Batc" - + "hProcessMetadata.IndividualProcessStatus" - + "\032\354\001\n\027IndividualProcessStatus\022\030\n\020input_gc" - + "s_source\030\001 \001(\t\022\"\n\006status\030\002 \001(\0132\022.google." - + "rpc.Status\022\036\n\026output_gcs_destination\030\003 \001" - + "(\t\022\"\n\026human_review_operation\030\004 \001(\tB\002\030\001\022O" - + "\n\023human_review_status\030\005 \001(\01322.google.clo" - + "ud.documentai.v1beta3.HumanReviewStatus\"" - + "r\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022\013\n\007WAITI" - + "NG\020\001\022\013\n\007RUNNING\020\002\022\r\n\tSUCCEEDED\020\003\022\016\n\nCANC" - + "ELLING\020\004\022\r\n\tCANCELLED\020\005\022\n\n\006FAILED\020\006\"\372\001\n\025" - + "ReviewDocumentRequest\022D\n\017inline_document" - + "\030\004 \001(\0132).google.cloud.documentai.v1beta3" - + ".DocumentH\000\022P\n\023human_review_config\030\001 \001(\t" - + "B3\340A\002\372A-\n+documentai.googleapis.com/Huma" - + "nReviewConfig\022?\n\010document\030\002 \001(\0132).google" - + ".cloud.documentai.v1beta3.DocumentB\002\030\001B\010" - + "\n\006source\"1\n\026ReviewDocumentResponse\022\027\n\017gc" - + "s_destination\030\001 \001(\t\"\253\003\n\037ReviewDocumentOp" - + "erationMetadata\022U\n\005state\030\001 \001(\0162F.google." - + "cloud.documentai.v1beta3.ReviewDocumentO" - + "perationMetadata.State\022\025\n\rstate_message\030" - + "\002 \001(\t\022/\n\013create_time\030\003 \001(\0132\032.google.prot" - + "obuf.Timestamp\022/\n\013update_time\030\004 \001(\0132\032.go" - + "ogle.protobuf.Timestamp\022Q\n\017common_metada" - + "ta\030\005 \001(\01328.google.cloud.documentai.v1bet" - + "a3.CommonOperationMetadata\"e\n\005State\022\025\n\021S" - + "TATE_UNSPECIFIED\020\000\022\013\n\007RUNNING\020\001\022\016\n\nCANCE" - + "LLING\020\002\022\r\n\tSUCCEEDED\020\003\022\n\n\006FAILED\020\004\022\r\n\tCA" - + "NCELLED\020\005\"\310\002\n\027CommonOperationMetadata\022M\n" - + "\005state\030\001 \001(\0162>.google.cloud.documentai.v" - + "1beta3.CommonOperationMetadata.State\022\025\n\r" - + "state_message\030\002 \001(\t\022/\n\013create_time\030\003 \001(\013" - + "2\032.google.protobuf.Timestamp\022/\n\013update_t" - + "ime\030\004 \001(\0132\032.google.protobuf.Timestamp\"e\n" - + "\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022\013\n\007RUNNING" - + "\020\001\022\016\n\nCANCELLING\020\002\022\r\n\tSUCCEEDED\020\003\022\n\n\006FAI" - + "LED\020\004\022\r\n\tCANCELLED\020\0052\317\006\n\030DocumentProcess" - + "orService\022\303\001\n\017ProcessDocument\022/.google.c" - + "loud.documentai.v1beta3.ProcessRequest\0320" - + ".google.cloud.documentai.v1beta3.Process" - + "Response\"M\202\323\344\223\002@\";/v1beta3/{name=project" - + "s/*/locations/*/processors/*}:process:\001*" - + "\332A\004name\022\360\001\n\025BatchProcessDocuments\0224.goog" - + "le.cloud.documentai.v1beta3.BatchProcess" - + "Request\032\035.google.longrunning.Operation\"\201" - + "\001\202\323\344\223\002E\"@/v1beta3/{name=projects/*/locat" - + "ions/*/processors/*}:batchProcess:\001*\332A\004n" - + "ame\312A,\n\024BatchProcessResponse\022\024BatchProce" - + "ssMetadata\022\252\002\n\016ReviewDocument\0226.google.c" - + "loud.documentai.v1beta3.ReviewDocumentRe" - + "quest\032\035.google.longrunning.Operation\"\300\001\202" - + "\323\344\223\002h\"c/v1beta3/{human_review_config=pro" - + "jects/*/locations/*/processors/*/humanRe" - + "viewConfig}:reviewDocument:\001*\332A\023human_re" - + "view_config\312A9\n\026ReviewDocumentResponse\022\037" - + "ReviewDocumentOperationMetadata\032M\312A\031docu" - + "mentai.googleapis.com\322A.https://www.goog" - + "leapis.com/auth/cloud-platformB\261\004\n#com.g" - + "oogle.cloud.documentai.v1beta3B\032Document" - + "AiProcessorServiceP\001ZIgoogle.golang.org/" - + "genproto/googleapis/cloud/documentai/v1b" - + "eta3;documentai\252\002\037Google.Cloud.DocumentA" - + "I.V1Beta3\312\002\037Google\\Cloud\\DocumentAI\\V1be" - + "ta3\352\002\"Google::Cloud::DocumentAI::V1beta3" - + "\352AM\n\"documentai.googleapis.com/Location\022" - + "\'projects/{project}/locations/{location}" - + "\352Ae\n#documentai.googleapis.com/Processor" - + "\022>projects/{project}/locations/{location" - + "}/processors/{processor}\352A\177\n+documentai." - + "googleapis.com/HumanReviewConfig\022Pprojec" - + "ts/{project}/locations/{location}/proces" - + "sors/{processor}/humanReviewConfigb\006prot" - + "o3" + + "umentai/v1beta3/document_io.proto\0328googl" + + "e/cloud/documentai/v1beta3/operation_met" + + "adata.proto\032#google/longrunning/operatio" + + "ns.proto\032 google/protobuf/field_mask.pro" + + "to\032\037google/protobuf/timestamp.proto\032\027goo" + + "gle/rpc/status.proto\"\275\002\n\016ProcessRequest\022" + + "D\n\017inline_document\030\004 \001(\0132).google.cloud." + + "documentai.v1beta3.DocumentH\000\022D\n\014raw_doc" + + "ument\030\005 \001(\0132,.google.cloud.documentai.v1" + + "beta3.RawDocumentH\000\0229\n\004name\030\001 \001(\tB+\340A\002\372A" + + "%\n#documentai.googleapis.com/Processor\022?" + + "\n\010document\030\002 \001(\0132).google.cloud.document" + + "ai.v1beta3.DocumentB\002\030\001\022\031\n\021skip_human_re" + + "view\030\003 \001(\010B\010\n\006source\"\363\001\n\021HumanReviewStat" + + "us\022G\n\005state\030\001 \001(\01628.google.cloud.documen" + + "tai.v1beta3.HumanReviewStatus.State\022\025\n\rs" + + "tate_message\030\002 \001(\t\022\036\n\026human_review_opera" + + "tion\030\003 \001(\t\"^\n\005State\022\025\n\021STATE_UNSPECIFIED" + + "\020\000\022\013\n\007SKIPPED\020\001\022\025\n\021VALIDATION_PASSED\020\002\022\017" + + "\n\013IN_PROGRESS\020\003\022\t\n\005ERROR\020\004\"\303\001\n\017ProcessRe" + + "sponse\022;\n\010document\030\001 \001(\0132).google.cloud." + + "documentai.v1beta3.Document\022\"\n\026human_rev" + + "iew_operation\030\002 \001(\tB\002\030\001\022O\n\023human_review_" + + "status\030\003 \001(\01322.google.cloud.documentai.v" + + "1beta3.HumanReviewStatus\"\315\004\n\023BatchProces" + + "sRequest\0229\n\004name\030\001 \001(\tB+\340A\002\372A%\n#document" + + "ai.googleapis.com/Processor\022`\n\rinput_con" + + "figs\030\002 \003(\0132E.google.cloud.documentai.v1b" + + "eta3.BatchProcessRequest.BatchInputConfi" + + "gB\002\030\001\022a\n\routput_config\030\003 \001(\0132F.google.cl" + + "oud.documentai.v1beta3.BatchProcessReque" + + "st.BatchOutputConfigB\002\030\001\022S\n\017input_docume" + + "nts\030\005 \001(\0132:.google.cloud.documentai.v1be" + + "ta3.BatchDocumentsInputConfig\022U\n\026documen" + + "t_output_config\030\006 \001(\01325.google.cloud.doc" + + "umentai.v1beta3.DocumentOutputConfig\022\031\n\021" + + "skip_human_review\030\004 \001(\010\032=\n\020BatchInputCon" + + "fig\022\022\n\ngcs_source\030\001 \001(\t\022\021\n\tmime_type\030\002 \001" + + "(\t:\002\030\001\0320\n\021BatchOutputConfig\022\027\n\017gcs_desti" + + "nation\030\001 \001(\t:\002\030\001\"\026\n\024BatchProcessResponse" + + "\"\262\005\n\024BatchProcessMetadata\022J\n\005state\030\001 \001(\016" + + "2;.google.cloud.documentai.v1beta3.Batch" + + "ProcessMetadata.State\022\025\n\rstate_message\030\002" + + " \001(\t\022/\n\013create_time\030\003 \001(\0132\032.google.proto" + + "buf.Timestamp\022/\n\013update_time\030\004 \001(\0132\032.goo" + + "gle.protobuf.Timestamp\022r\n\033individual_pro" + + "cess_statuses\030\005 \003(\0132M.google.cloud.docum" + + "entai.v1beta3.BatchProcessMetadata.Indiv" + + "idualProcessStatus\032\354\001\n\027IndividualProcess" + + "Status\022\030\n\020input_gcs_source\030\001 \001(\t\022\"\n\006stat" + + "us\030\002 \001(\0132\022.google.rpc.Status\022\036\n\026output_g" + + "cs_destination\030\003 \001(\t\022\"\n\026human_review_ope" + + "ration\030\004 \001(\tB\002\030\001\022O\n\023human_review_status\030" + + "\005 \001(\01322.google.cloud.documentai.v1beta3." + + "HumanReviewStatus\"r\n\005State\022\025\n\021STATE_UNSP" + + "ECIFIED\020\000\022\013\n\007WAITING\020\001\022\013\n\007RUNNING\020\002\022\r\n\tS" + + "UCCEEDED\020\003\022\016\n\nCANCELLING\020\004\022\r\n\tCANCELLED\020" + + "\005\022\n\n\006FAILED\020\006\"\372\001\n\025ReviewDocumentRequest\022" + + "D\n\017inline_document\030\004 \001(\0132).google.cloud." + + "documentai.v1beta3.DocumentH\000\022P\n\023human_r" + + "eview_config\030\001 \001(\tB3\340A\002\372A-\n+documentai.g" + + "oogleapis.com/HumanReviewConfig\022?\n\010docum" + + "ent\030\002 \001(\0132).google.cloud.documentai.v1be" + + "ta3.DocumentB\002\030\001B\010\n\006source\"1\n\026ReviewDocu" + + "mentResponse\022\027\n\017gcs_destination\030\001 \001(\t\"\253\003" + + "\n\037ReviewDocumentOperationMetadata\022U\n\005sta" + + "te\030\001 \001(\0162F.google.cloud.documentai.v1bet" + + "a3.ReviewDocumentOperationMetadata.State" + + "\022\025\n\rstate_message\030\002 \001(\t\022/\n\013create_time\030\003" + + " \001(\0132\032.google.protobuf.Timestamp\022/\n\013upda" + + "te_time\030\004 \001(\0132\032.google.protobuf.Timestam" + + "p\022Q\n\017common_metadata\030\005 \001(\01328.google.clou" + + "d.documentai.v1beta3.CommonOperationMeta" + + "data\"e\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022\013\n\007" + + "RUNNING\020\001\022\016\n\nCANCELLING\020\002\022\r\n\tSUCCEEDED\020\003" + + "\022\n\n\006FAILED\020\004\022\r\n\tCANCELLED\020\0052\317\006\n\030Document" + + "ProcessorService\022\303\001\n\017ProcessDocument\022/.g" + + "oogle.cloud.documentai.v1beta3.ProcessRe" + + "quest\0320.google.cloud.documentai.v1beta3." + + "ProcessResponse\"M\202\323\344\223\002@\";/v1beta3/{name=" + + "projects/*/locations/*/processors/*}:pro" + + "cess:\001*\332A\004name\022\360\001\n\025BatchProcessDocuments" + + "\0224.google.cloud.documentai.v1beta3.Batch" + + "ProcessRequest\032\035.google.longrunning.Oper" + + "ation\"\201\001\202\323\344\223\002E\"@/v1beta3/{name=projects/" + + "*/locations/*/processors/*}:batchProcess" + + ":\001*\332A\004name\312A,\n\024BatchProcessResponse\022\024Bat" + + "chProcessMetadata\022\252\002\n\016ReviewDocument\0226.g" + + "oogle.cloud.documentai.v1beta3.ReviewDoc" + + "umentRequest\032\035.google.longrunning.Operat" + + "ion\"\300\001\202\323\344\223\002h\"c/v1beta3/{human_review_con" + + "fig=projects/*/locations/*/processors/*/" + + "humanReviewConfig}:reviewDocument:\001*\332A\023h" + + "uman_review_config\312A9\n\026ReviewDocumentRes" + + "ponse\022\037ReviewDocumentOperationMetadata\032M" + + "\312A\031documentai.googleapis.com\322A.https://w" + + "ww.googleapis.com/auth/cloud-platformB\261\004" + + "\n#com.google.cloud.documentai.v1beta3B\032D" + + "ocumentAiProcessorServiceP\001ZIgoogle.gola" + + "ng.org/genproto/googleapis/cloud/documen" + + "tai/v1beta3;documentai\252\002\037Google.Cloud.Do" + + "cumentAI.V1Beta3\312\002\037Google\\Cloud\\Document" + + "AI\\V1beta3\352\002\"Google::Cloud::DocumentAI::" + + "V1beta3\352AM\n\"documentai.googleapis.com/Lo" + + "cation\022\'projects/{project}/locations/{lo" + + "cation}\352Ae\n#documentai.googleapis.com/Pr" + + "ocessor\022>projects/{project}/locations/{l" + + "ocation}/processors/{processor}\352A\177\n+docu" + + "mentai.googleapis.com/HumanReviewConfig\022" + + "Pprojects/{project}/locations/{location}" + + "/processors/{processor}/humanReviewConfi" + + "gb\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -225,6 +214,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.api.ResourceProto.getDescriptor(), com.google.cloud.documentai.v1beta3.DocumentProto.getDescriptor(), com.google.cloud.documentai.v1beta3.DocumentIoProto.getDescriptor(), + com.google.cloud.documentai.v1beta3.OperationMetadataProto.getDescriptor(), com.google.longrunning.OperationsProto.getDescriptor(), com.google.protobuf.FieldMaskProto.getDescriptor(), com.google.protobuf.TimestampProto.getDescriptor(), @@ -339,14 +329,6 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "State", "StateMessage", "CreateTime", "UpdateTime", "CommonMetadata", }); - internal_static_google_cloud_documentai_v1beta3_CommonOperationMetadata_descriptor = - getDescriptor().getMessageTypes().get(9); - internal_static_google_cloud_documentai_v1beta3_CommonOperationMetadata_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_documentai_v1beta3_CommonOperationMetadata_descriptor, - new java.lang.String[] { - "State", "StateMessage", "CreateTime", "UpdateTime", - }); com.google.protobuf.ExtensionRegistry registry = com.google.protobuf.ExtensionRegistry.newInstance(); registry.add(com.google.api.ClientProto.defaultHost); @@ -365,6 +347,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.api.ResourceProto.getDescriptor(); com.google.cloud.documentai.v1beta3.DocumentProto.getDescriptor(); com.google.cloud.documentai.v1beta3.DocumentIoProto.getDescriptor(); + com.google.cloud.documentai.v1beta3.OperationMetadataProto.getDescriptor(); com.google.longrunning.OperationsProto.getDescriptor(); com.google.protobuf.FieldMaskProto.getDescriptor(); com.google.protobuf.TimestampProto.getDescriptor(); diff --git a/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/NormalizedVertex.java b/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/NormalizedVertex.java index ec08e0c8..b5ce336f 100644 --- a/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/NormalizedVertex.java +++ b/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/NormalizedVertex.java @@ -138,7 +138,7 @@ public float getX() { * * *
- * Y coordinate. + * Y coordinate (starts from the top of the image). ** *
float y = 2;
@@ -543,7 +543,7 @@ public Builder clearX() {
*
*
* - * Y coordinate. + * Y coordinate (starts from the top of the image). ** *
float y = 2;
@@ -558,7 +558,7 @@ public float getY() {
*
*
* - * Y coordinate. + * Y coordinate (starts from the top of the image). ** *
float y = 2;
@@ -576,7 +576,7 @@ public Builder setY(float value) {
*
*
* - * Y coordinate. + * Y coordinate (starts from the top of the image). ** *
float y = 2;
diff --git a/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/NormalizedVertexOrBuilder.java b/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/NormalizedVertexOrBuilder.java
index d0207ed4..ef165ec3 100644
--- a/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/NormalizedVertexOrBuilder.java
+++ b/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/NormalizedVertexOrBuilder.java
@@ -40,7 +40,7 @@ public interface NormalizedVertexOrBuilder
*
*
* - * Y coordinate. + * Y coordinate (starts from the top of the image). ** *
float y = 2;
diff --git a/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/OperationMetadataProto.java b/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/OperationMetadataProto.java
new file mode 100644
index 00000000..197c4ee8
--- /dev/null
+++ b/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/OperationMetadataProto.java
@@ -0,0 +1,83 @@
+/*
+ * 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/operation_metadata.proto
+
+package com.google.cloud.documentai.v1beta3;
+
+public final class OperationMetadataProto {
+ private OperationMetadataProto() {}
+
+ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {}
+
+ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) {
+ registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry);
+ }
+
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_cloud_documentai_v1beta3_CommonOperationMetadata_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_cloud_documentai_v1beta3_CommonOperationMetadata_fieldAccessorTable;
+
+ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ return descriptor;
+ }
+
+ private static com.google.protobuf.Descriptors.FileDescriptor descriptor;
+
+ static {
+ java.lang.String[] descriptorData = {
+ "\n8google/cloud/documentai/v1beta3/operat"
+ + "ion_metadata.proto\022\037google.cloud.documen"
+ + "tai.v1beta3\032\037google/protobuf/timestamp.p"
+ + "roto\032\034google/api/annotations.proto\"\310\002\n\027C"
+ + "ommonOperationMetadata\022M\n\005state\030\001 \001(\0162>."
+ + "google.cloud.documentai.v1beta3.CommonOp"
+ + "erationMetadata.State\022\025\n\rstate_message\030\002"
+ + " \001(\t\022/\n\013create_time\030\003 \001(\0132\032.google.proto"
+ + "buf.Timestamp\022/\n\013update_time\030\004 \001(\0132\032.goo"
+ + "gle.protobuf.Timestamp\"e\n\005State\022\025\n\021STATE"
+ + "_UNSPECIFIED\020\000\022\013\n\007RUNNING\020\001\022\016\n\nCANCELLIN"
+ + "G\020\002\022\r\n\tSUCCEEDED\020\003\022\n\n\006FAILED\020\004\022\r\n\tCANCEL"
+ + "LED\020\005B\363\001\n#com.google.cloud.documentai.v1"
+ + "beta3B\026OperationMetadataProtoP\001ZIgoogle."
+ + "golang.org/genproto/googleapis/cloud/doc"
+ + "umentai/v1beta3;documentai\252\002\037Google.Clou"
+ + "d.DocumentAI.V1Beta3\312\002\037Google\\Cloud\\Docu"
+ + "mentAI\\V1beta3\352\002\"Google::Cloud::Document"
+ + "AI::V1beta3b\006proto3"
+ };
+ descriptor =
+ com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
+ descriptorData,
+ new com.google.protobuf.Descriptors.FileDescriptor[] {
+ com.google.protobuf.TimestampProto.getDescriptor(),
+ com.google.api.AnnotationsProto.getDescriptor(),
+ });
+ internal_static_google_cloud_documentai_v1beta3_CommonOperationMetadata_descriptor =
+ getDescriptor().getMessageTypes().get(0);
+ internal_static_google_cloud_documentai_v1beta3_CommonOperationMetadata_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_cloud_documentai_v1beta3_CommonOperationMetadata_descriptor,
+ new java.lang.String[] {
+ "State", "StateMessage", "CreateTime", "UpdateTime",
+ });
+ com.google.protobuf.TimestampProto.getDescriptor();
+ com.google.api.AnnotationsProto.getDescriptor();
+ }
+
+ // @@protoc_insertion_point(outer_class_scope)
+}
diff --git a/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/Vertex.java b/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/Vertex.java
index 9230e7bf..6d1749e5 100644
--- a/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/Vertex.java
+++ b/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/Vertex.java
@@ -137,7 +137,7 @@ public int getX() {
*
*
* - * Y coordinate. + * Y coordinate (starts from the top of the image). ** *
int32 y = 2;
@@ -537,7 +537,7 @@ public Builder clearX() {
*
*
* - * Y coordinate. + * Y coordinate (starts from the top of the image). ** *
int32 y = 2;
@@ -552,7 +552,7 @@ public int getY() {
*
*
* - * Y coordinate. + * Y coordinate (starts from the top of the image). ** *
int32 y = 2;
@@ -570,7 +570,7 @@ public Builder setY(int value) {
*
*
* - * Y coordinate. + * Y coordinate (starts from the top of the image). ** *
int32 y = 2;
diff --git a/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/VertexOrBuilder.java b/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/VertexOrBuilder.java
index 19b9f848..846d9e10 100644
--- a/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/VertexOrBuilder.java
+++ b/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/VertexOrBuilder.java
@@ -40,7 +40,7 @@ public interface VertexOrBuilder
*
*
* - * Y coordinate. + * Y coordinate (starts from the top of the image). ** *
int32 y = 2;
diff --git a/proto-google-cloud-document-ai-v1beta3/src/main/proto/google/cloud/documentai/v1beta3/document_processor_service.proto b/proto-google-cloud-document-ai-v1beta3/src/main/proto/google/cloud/documentai/v1beta3/document_processor_service.proto
index d69689f7..e0620e43 100644
--- a/proto-google-cloud-document-ai-v1beta3/src/main/proto/google/cloud/documentai/v1beta3/document_processor_service.proto
+++ b/proto-google-cloud-document-ai-v1beta3/src/main/proto/google/cloud/documentai/v1beta3/document_processor_service.proto
@@ -22,6 +22,7 @@ import "google/api/field_behavior.proto";
import "google/api/resource.proto";
import "google/cloud/documentai/v1beta3/document.proto";
import "google/cloud/documentai/v1beta3/document_io.proto";
+import "google/cloud/documentai/v1beta3/operation_metadata.proto";
import "google/longrunning/operations.proto";
import "google/protobuf/field_mask.proto";
import "google/protobuf/timestamp.proto";
@@ -364,39 +365,3 @@ message ReviewDocumentOperationMetadata {
// The basic metadata of the long running operation.
CommonOperationMetadata common_metadata = 5;
}
-
-// The common metadata for long running operations.
-message CommonOperationMetadata {
- // State of the longrunning operation.
- enum State {
- // Unspecified state.
- STATE_UNSPECIFIED = 0;
-
- // Operation is still running.
- RUNNING = 1;
-
- // Operation is being cancelled.
- CANCELLING = 2;
-
- // Operation succeeded.
- SUCCEEDED = 3;
-
- // Operation failed.
- FAILED = 4;
-
- // Operation is cancelled.
- CANCELLED = 5;
- }
-
- // The state of the operation.
- State state = 1;
-
- // A message providing more details about the current state of processing.
- string state_message = 2;
-
- // The creation time of the operation.
- google.protobuf.Timestamp create_time = 3;
-
- // The last update time of the operation.
- google.protobuf.Timestamp update_time = 4;
-}
diff --git a/proto-google-cloud-document-ai-v1beta3/src/main/proto/google/cloud/documentai/v1beta3/geometry.proto b/proto-google-cloud-document-ai-v1beta3/src/main/proto/google/cloud/documentai/v1beta3/geometry.proto
index 240faf1f..91cd956e 100644
--- a/proto-google-cloud-document-ai-v1beta3/src/main/proto/google/cloud/documentai/v1beta3/geometry.proto
+++ b/proto-google-cloud-document-ai-v1beta3/src/main/proto/google/cloud/documentai/v1beta3/geometry.proto
@@ -32,7 +32,7 @@ message Vertex {
// X coordinate.
int32 x = 1;
- // Y coordinate.
+ // Y coordinate (starts from the top of the image).
int32 y = 2;
}
@@ -43,7 +43,7 @@ message NormalizedVertex {
// X coordinate.
float x = 1;
- // Y coordinate.
+ // Y coordinate (starts from the top of the image).
float y = 2;
}
diff --git a/proto-google-cloud-document-ai-v1beta3/src/main/proto/google/cloud/documentai/v1beta3/operation_metadata.proto b/proto-google-cloud-document-ai-v1beta3/src/main/proto/google/cloud/documentai/v1beta3/operation_metadata.proto
new file mode 100644
index 00000000..1d8624e8
--- /dev/null
+++ b/proto-google-cloud-document-ai-v1beta3/src/main/proto/google/cloud/documentai/v1beta3/operation_metadata.proto
@@ -0,0 +1,64 @@
+// Copyright 2021 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+syntax = "proto3";
+
+package google.cloud.documentai.v1beta3;
+
+import "google/protobuf/timestamp.proto";
+import "google/api/annotations.proto";
+
+option csharp_namespace = "Google.Cloud.DocumentAI.V1Beta3";
+option go_package = "google.golang.org/genproto/googleapis/cloud/documentai/v1beta3;documentai";
+option java_multiple_files = true;
+option java_outer_classname = "OperationMetadataProto";
+option java_package = "com.google.cloud.documentai.v1beta3";
+option php_namespace = "Google\\Cloud\\DocumentAI\\V1beta3";
+option ruby_package = "Google::Cloud::DocumentAI::V1beta3";
+
+// The common metadata for long running operations.
+message CommonOperationMetadata {
+ // State of the longrunning operation.
+ enum State {
+ // Unspecified state.
+ STATE_UNSPECIFIED = 0;
+
+ // Operation is still running.
+ RUNNING = 1;
+
+ // Operation is being cancelled.
+ CANCELLING = 2;
+
+ // Operation succeeded.
+ SUCCEEDED = 3;
+
+ // Operation failed.
+ FAILED = 4;
+
+ // Operation is cancelled.
+ CANCELLED = 5;
+ }
+
+ // The state of the operation.
+ State state = 1;
+
+ // A message providing more details about the current state of processing.
+ string state_message = 2;
+
+ // The creation time of the operation.
+ google.protobuf.Timestamp create_time = 3;
+
+ // The last update time of the operation.
+ google.protobuf.Timestamp update_time = 4;
+}
diff --git a/synth.metadata b/synth.metadata
index 4951d7f3..24056870 100644
--- a/synth.metadata
+++ b/synth.metadata
@@ -4,39 +4,39 @@
"git": {
"name": ".",
"remote": "https://github.com/googleapis/java-document-ai.git",
- "sha": "5cfb4310fd4bd74672db62521f9c0b7074540578"
+ "sha": "dd8a78652d562c51b6a3b4f5e015f7c8622d6380"
}
},
{
"git": {
"name": "googleapis",
"remote": "https://github.com/googleapis/googleapis.git",
- "sha": "b29fb6b9fcdf3bc67487fa22ab7783915023041e",
- "internalRef": "373516134"
+ "sha": "204809ddb580527550e61a7ca524e837b5a8409d",
+ "internalRef": "377114643"
}
},
{
"git": {
"name": "googleapis",
"remote": "https://github.com/googleapis/googleapis.git",
- "sha": "b29fb6b9fcdf3bc67487fa22ab7783915023041e",
- "internalRef": "373516134"
+ "sha": "204809ddb580527550e61a7ca524e837b5a8409d",
+ "internalRef": "377114643"
}
},
{
"git": {
"name": "googleapis",
"remote": "https://github.com/googleapis/googleapis.git",
- "sha": "b29fb6b9fcdf3bc67487fa22ab7783915023041e",
- "internalRef": "373516134"
+ "sha": "204809ddb580527550e61a7ca524e837b5a8409d",
+ "internalRef": "377114643"
}
},
{
"git": {
"name": "googleapis",
"remote": "https://github.com/googleapis/googleapis.git",
- "sha": "b29fb6b9fcdf3bc67487fa22ab7783915023041e",
- "internalRef": "373516134"
+ "sha": "204809ddb580527550e61a7ca524e837b5a8409d",
+ "internalRef": "377114643"
}
},
{
@@ -374,6 +374,7 @@
"proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/HumanReviewStatusOrBuilder.java",
"proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/NormalizedVertex.java",
"proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/NormalizedVertexOrBuilder.java",
+ "proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/OperationMetadataProto.java",
"proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/ProcessRequest.java",
"proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/ProcessRequestOrBuilder.java",
"proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/ProcessResponse.java",
@@ -393,6 +394,7 @@
"proto-google-cloud-document-ai-v1beta3/src/main/proto/google/cloud/documentai/v1beta3/document_io.proto",
"proto-google-cloud-document-ai-v1beta3/src/main/proto/google/cloud/documentai/v1beta3/document_processor_service.proto",
"proto-google-cloud-document-ai-v1beta3/src/main/proto/google/cloud/documentai/v1beta3/geometry.proto",
+ "proto-google-cloud-document-ai-v1beta3/src/main/proto/google/cloud/documentai/v1beta3/operation_metadata.proto",
"renovate.json",
"samples/install-without-bom/pom.xml",
"samples/pom.xml",