diff --git a/java-contentwarehouse/README.md b/java-contentwarehouse/README.md index 6df5fb143137..ab9a2bb291fe 100644 --- a/java-contentwarehouse/README.md +++ b/java-contentwarehouse/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.22.0 + 26.23.0 pom import @@ -201,7 +201,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-contentwarehouse.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-contentwarehouse/0.19.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-contentwarehouse/0.20.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/FileTypeFilter.java b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/FileTypeFilter.java index 6929213dfea4..bf38fdfb1802 100644 --- a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/FileTypeFilter.java +++ b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/FileTypeFilter.java @@ -112,6 +112,16 @@ public enum FileType implements com.google.protobuf.ProtocolMessageEnum { * DOCUMENT = 3; */ DOCUMENT(3), + /** + * + * + *
+     * Returns only root folders
+     * 
+ * + * ROOT_FOLDER = 4; + */ + ROOT_FOLDER(4), UNRECOGNIZED(-1), ; @@ -155,6 +165,16 @@ public enum FileType implements com.google.protobuf.ProtocolMessageEnum { * DOCUMENT = 3; */ public static final int DOCUMENT_VALUE = 3; + /** + * + * + *
+     * Returns only root folders
+     * 
+ * + * ROOT_FOLDER = 4; + */ + public static final int ROOT_FOLDER_VALUE = 4; public final int getNumber() { if (this == UNRECOGNIZED) { @@ -188,6 +208,8 @@ public static FileType forNumber(int value) { return FOLDER; case 3: return DOCUMENT; + case 4: + return ROOT_FOLDER; default: return null; } diff --git a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/FiltersProto.java b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/FiltersProto.java index 839f3d3d9073..d1c06f56e5e4 100644 --- a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/FiltersProto.java +++ b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/FiltersProto.java @@ -85,24 +85,25 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "ATE_TIME\020\002\022\024\n\020DISPOSITION_TIME\020\003\"v\n\016Prop" + "ertyFilter\022Q\n\024document_schema_name\030\001 \001(\t" + "B3\372A0\n.contentwarehouse.googleapis.com/D" - + "ocumentSchema\022\021\n\tcondition\030\002 \001(\t\"\250\001\n\016Fil" + + "ocumentSchema\022\021\n\tcondition\030\002 \001(\t\"\271\001\n\016Fil" + "eTypeFilter\022L\n\tfile_type\030\001 \001(\01629.google." + "cloud.contentwarehouse.v1.FileTypeFilter" - + ".FileType\"H\n\010FileType\022\031\n\025FILE_TYPE_UNSPE" + + ".FileType\"Y\n\010FileType\022\031\n\025FILE_TYPE_UNSPE" + "CIFIED\020\000\022\007\n\003ALL\020\001\022\n\n\006FOLDER\020\002\022\014\n\010DOCUMEN" - + "T\020\003\"u\n\025CustomWeightsMetadata\022\\\n\032weighted" - + "_schema_properties\030\001 \003(\01328.google.cloud." - + "contentwarehouse.v1.WeightedSchemaProper" - + "ty\"\203\001\n\026WeightedSchemaProperty\022Q\n\024documen" - + "t_schema_name\030\001 \001(\tB3\372A0\n.contentwarehou" - + "se.googleapis.com/DocumentSchema\022\026\n\016prop" - + "erty_names\030\002 \003(\tB\364\001\n$com.google.cloud.co" - + "ntentwarehouse.v1B\014FiltersProtoP\001ZPcloud" - + ".google.com/go/contentwarehouse/apiv1/co" - + "ntentwarehousepb;contentwarehousepb\252\002 Go" - + "ogle.Cloud.ContentWarehouse.V1\312\002 Google\\" - + "Cloud\\ContentWarehouse\\V1\352\002#Google::Clou" - + "d::ContentWarehouse::V1b\006proto3" + + "T\020\003\022\017\n\013ROOT_FOLDER\020\004\"u\n\025CustomWeightsMet" + + "adata\022\\\n\032weighted_schema_properties\030\001 \003(" + + "\01328.google.cloud.contentwarehouse.v1.Wei" + + "ghtedSchemaProperty\"\203\001\n\026WeightedSchemaPr" + + "operty\022Q\n\024document_schema_name\030\001 \001(\tB3\372A" + + "0\n.contentwarehouse.googleapis.com/Docum" + + "entSchema\022\026\n\016property_names\030\002 \003(\tB\364\001\n$co" + + "m.google.cloud.contentwarehouse.v1B\014Filt" + + "ersProtoP\001ZPcloud.google.com/go/contentw" + + "arehouse/apiv1/contentwarehousepb;conten" + + "twarehousepb\252\002 Google.Cloud.ContentWareh" + + "ouse.V1\312\002 Google\\Cloud\\ContentWarehouse\\" + + "V1\352\002#Google::Cloud::ContentWarehouse::V1" + + "b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/IngestPipelineConfig.java b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/IngestPipelineConfig.java index 55130c6c0e65..565c24faebd3 100644 --- a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/IngestPipelineConfig.java +++ b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/IngestPipelineConfig.java @@ -39,6 +39,7 @@ private IngestPipelineConfig(com.google.protobuf.GeneratedMessageV3.Builder b private IngestPipelineConfig() { folder_ = ""; + cloudFunction_ = ""; } @java.lang.Override @@ -235,6 +236,101 @@ public com.google.protobuf.ByteString getFolderBytes() { } } + public static final int CLOUD_FUNCTION_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object cloudFunction_ = ""; + /** + * + * + *
+   * The Cloud Function resource name. The Cloud Function needs to live inside
+   * consumer project and is accessible to Document AI Warehouse P4SA.
+   * Only Cloud Functions V2 is supported. Cloud function execution should
+   * complete within 5 minutes or this file ingestion may fail due to timeout.
+   * Format: `https://{region}-{project_id}.cloudfunctions.net/{cloud_function}`
+   * The following keys are available the request json payload.
+   * * display_name
+   * * properties
+   * * plain_text
+   * * reference_id
+   * * document_schema_name
+   * * raw_document_path
+   * * raw_document_file_type
+   *
+   * The following keys from the cloud function json response payload will be
+   * ingested to the Document AI Warehouse as part of Document proto content
+   * and/or related information. The original values will be overridden if any
+   * key is present in the response.
+   * * display_name
+   * * properties
+   * * plain_text
+   * * document_acl_policy
+   * * folder
+   * 
+ * + * string cloud_function = 4 [(.google.api.resource_reference) = { ... } + * + * @return The cloudFunction. + */ + @java.lang.Override + public java.lang.String getCloudFunction() { + java.lang.Object ref = cloudFunction_; + 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(); + cloudFunction_ = s; + return s; + } + } + /** + * + * + *
+   * The Cloud Function resource name. The Cloud Function needs to live inside
+   * consumer project and is accessible to Document AI Warehouse P4SA.
+   * Only Cloud Functions V2 is supported. Cloud function execution should
+   * complete within 5 minutes or this file ingestion may fail due to timeout.
+   * Format: `https://{region}-{project_id}.cloudfunctions.net/{cloud_function}`
+   * The following keys are available the request json payload.
+   * * display_name
+   * * properties
+   * * plain_text
+   * * reference_id
+   * * document_schema_name
+   * * raw_document_path
+   * * raw_document_file_type
+   *
+   * The following keys from the cloud function json response payload will be
+   * ingested to the Document AI Warehouse as part of Document proto content
+   * and/or related information. The original values will be overridden if any
+   * key is present in the response.
+   * * display_name
+   * * properties
+   * * plain_text
+   * * document_acl_policy
+   * * folder
+   * 
+ * + * string cloud_function = 4 [(.google.api.resource_reference) = { ... } + * + * @return The bytes for cloudFunction. + */ + @java.lang.Override + public com.google.protobuf.ByteString getCloudFunctionBytes() { + java.lang.Object ref = cloudFunction_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + cloudFunction_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -258,6 +354,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(folder_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, folder_); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(cloudFunction_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, cloudFunction_); + } getUnknownFields().writeTo(output); } @@ -277,6 +376,9 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(folder_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, folder_); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(cloudFunction_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, cloudFunction_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -299,6 +401,7 @@ public boolean equals(final java.lang.Object obj) { } if (getEnableDocumentTextExtraction() != other.getEnableDocumentTextExtraction()) return false; if (!getFolder().equals(other.getFolder())) return false; + if (!getCloudFunction().equals(other.getCloudFunction())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -319,6 +422,8 @@ public int hashCode() { (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnableDocumentTextExtraction()); hash = (37 * hash) + FOLDER_FIELD_NUMBER; hash = (53 * hash) + getFolder().hashCode(); + hash = (37 * hash) + CLOUD_FUNCTION_FIELD_NUMBER; + hash = (53 * hash) + getCloudFunction().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -466,6 +571,7 @@ public Builder clear() { } enableDocumentTextExtraction_ = false; folder_ = ""; + cloudFunction_ = ""; return this; } @@ -514,6 +620,9 @@ private void buildPartial0(com.google.cloud.contentwarehouse.v1.IngestPipelineCo if (((from_bitField0_ & 0x00000004) != 0)) { result.folder_ = folder_; } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.cloudFunction_ = cloudFunction_; + } } @java.lang.Override @@ -573,6 +682,11 @@ public Builder mergeFrom(com.google.cloud.contentwarehouse.v1.IngestPipelineConf bitField0_ |= 0x00000004; onChanged(); } + if (!other.getCloudFunction().isEmpty()) { + cloudFunction_ = other.cloudFunction_; + bitField0_ |= 0x00000008; + onChanged(); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -618,6 +732,12 @@ public Builder mergeFrom( bitField0_ |= 0x00000004; break; } // case 26 + case 34: + { + cloudFunction_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -1139,6 +1259,222 @@ public Builder setFolderBytes(com.google.protobuf.ByteString value) { return this; } + private java.lang.Object cloudFunction_ = ""; + /** + * + * + *
+     * The Cloud Function resource name. The Cloud Function needs to live inside
+     * consumer project and is accessible to Document AI Warehouse P4SA.
+     * Only Cloud Functions V2 is supported. Cloud function execution should
+     * complete within 5 minutes or this file ingestion may fail due to timeout.
+     * Format: `https://{region}-{project_id}.cloudfunctions.net/{cloud_function}`
+     * The following keys are available the request json payload.
+     * * display_name
+     * * properties
+     * * plain_text
+     * * reference_id
+     * * document_schema_name
+     * * raw_document_path
+     * * raw_document_file_type
+     *
+     * The following keys from the cloud function json response payload will be
+     * ingested to the Document AI Warehouse as part of Document proto content
+     * and/or related information. The original values will be overridden if any
+     * key is present in the response.
+     * * display_name
+     * * properties
+     * * plain_text
+     * * document_acl_policy
+     * * folder
+     * 
+ * + * string cloud_function = 4 [(.google.api.resource_reference) = { ... } + * + * @return The cloudFunction. + */ + public java.lang.String getCloudFunction() { + java.lang.Object ref = cloudFunction_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + cloudFunction_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The Cloud Function resource name. The Cloud Function needs to live inside
+     * consumer project and is accessible to Document AI Warehouse P4SA.
+     * Only Cloud Functions V2 is supported. Cloud function execution should
+     * complete within 5 minutes or this file ingestion may fail due to timeout.
+     * Format: `https://{region}-{project_id}.cloudfunctions.net/{cloud_function}`
+     * The following keys are available the request json payload.
+     * * display_name
+     * * properties
+     * * plain_text
+     * * reference_id
+     * * document_schema_name
+     * * raw_document_path
+     * * raw_document_file_type
+     *
+     * The following keys from the cloud function json response payload will be
+     * ingested to the Document AI Warehouse as part of Document proto content
+     * and/or related information. The original values will be overridden if any
+     * key is present in the response.
+     * * display_name
+     * * properties
+     * * plain_text
+     * * document_acl_policy
+     * * folder
+     * 
+ * + * string cloud_function = 4 [(.google.api.resource_reference) = { ... } + * + * @return The bytes for cloudFunction. + */ + public com.google.protobuf.ByteString getCloudFunctionBytes() { + java.lang.Object ref = cloudFunction_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + cloudFunction_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The Cloud Function resource name. The Cloud Function needs to live inside
+     * consumer project and is accessible to Document AI Warehouse P4SA.
+     * Only Cloud Functions V2 is supported. Cloud function execution should
+     * complete within 5 minutes or this file ingestion may fail due to timeout.
+     * Format: `https://{region}-{project_id}.cloudfunctions.net/{cloud_function}`
+     * The following keys are available the request json payload.
+     * * display_name
+     * * properties
+     * * plain_text
+     * * reference_id
+     * * document_schema_name
+     * * raw_document_path
+     * * raw_document_file_type
+     *
+     * The following keys from the cloud function json response payload will be
+     * ingested to the Document AI Warehouse as part of Document proto content
+     * and/or related information. The original values will be overridden if any
+     * key is present in the response.
+     * * display_name
+     * * properties
+     * * plain_text
+     * * document_acl_policy
+     * * folder
+     * 
+ * + * string cloud_function = 4 [(.google.api.resource_reference) = { ... } + * + * @param value The cloudFunction to set. + * @return This builder for chaining. + */ + public Builder setCloudFunction(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + cloudFunction_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+     * The Cloud Function resource name. The Cloud Function needs to live inside
+     * consumer project and is accessible to Document AI Warehouse P4SA.
+     * Only Cloud Functions V2 is supported. Cloud function execution should
+     * complete within 5 minutes or this file ingestion may fail due to timeout.
+     * Format: `https://{region}-{project_id}.cloudfunctions.net/{cloud_function}`
+     * The following keys are available the request json payload.
+     * * display_name
+     * * properties
+     * * plain_text
+     * * reference_id
+     * * document_schema_name
+     * * raw_document_path
+     * * raw_document_file_type
+     *
+     * The following keys from the cloud function json response payload will be
+     * ingested to the Document AI Warehouse as part of Document proto content
+     * and/or related information. The original values will be overridden if any
+     * key is present in the response.
+     * * display_name
+     * * properties
+     * * plain_text
+     * * document_acl_policy
+     * * folder
+     * 
+ * + * string cloud_function = 4 [(.google.api.resource_reference) = { ... } + * + * @return This builder for chaining. + */ + public Builder clearCloudFunction() { + cloudFunction_ = getDefaultInstance().getCloudFunction(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + * + * + *
+     * The Cloud Function resource name. The Cloud Function needs to live inside
+     * consumer project and is accessible to Document AI Warehouse P4SA.
+     * Only Cloud Functions V2 is supported. Cloud function execution should
+     * complete within 5 minutes or this file ingestion may fail due to timeout.
+     * Format: `https://{region}-{project_id}.cloudfunctions.net/{cloud_function}`
+     * The following keys are available the request json payload.
+     * * display_name
+     * * properties
+     * * plain_text
+     * * reference_id
+     * * document_schema_name
+     * * raw_document_path
+     * * raw_document_file_type
+     *
+     * The following keys from the cloud function json response payload will be
+     * ingested to the Document AI Warehouse as part of Document proto content
+     * and/or related information. The original values will be overridden if any
+     * key is present in the response.
+     * * display_name
+     * * properties
+     * * plain_text
+     * * document_acl_policy
+     * * folder
+     * 
+ * + * string cloud_function = 4 [(.google.api.resource_reference) = { ... } + * + * @param value The bytes for cloudFunction to set. + * @return This builder for chaining. + */ + public Builder setCloudFunctionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + cloudFunction_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/IngestPipelineConfigOrBuilder.java b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/IngestPipelineConfigOrBuilder.java index 31814767d8fb..30192a3d7bb4 100644 --- a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/IngestPipelineConfigOrBuilder.java +++ b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/IngestPipelineConfigOrBuilder.java @@ -149,4 +149,73 @@ public interface IngestPipelineConfigOrBuilder * @return The bytes for folder. */ com.google.protobuf.ByteString getFolderBytes(); + + /** + * + * + *
+   * The Cloud Function resource name. The Cloud Function needs to live inside
+   * consumer project and is accessible to Document AI Warehouse P4SA.
+   * Only Cloud Functions V2 is supported. Cloud function execution should
+   * complete within 5 minutes or this file ingestion may fail due to timeout.
+   * Format: `https://{region}-{project_id}.cloudfunctions.net/{cloud_function}`
+   * The following keys are available the request json payload.
+   * * display_name
+   * * properties
+   * * plain_text
+   * * reference_id
+   * * document_schema_name
+   * * raw_document_path
+   * * raw_document_file_type
+   *
+   * The following keys from the cloud function json response payload will be
+   * ingested to the Document AI Warehouse as part of Document proto content
+   * and/or related information. The original values will be overridden if any
+   * key is present in the response.
+   * * display_name
+   * * properties
+   * * plain_text
+   * * document_acl_policy
+   * * folder
+   * 
+ * + * string cloud_function = 4 [(.google.api.resource_reference) = { ... } + * + * @return The cloudFunction. + */ + java.lang.String getCloudFunction(); + /** + * + * + *
+   * The Cloud Function resource name. The Cloud Function needs to live inside
+   * consumer project and is accessible to Document AI Warehouse P4SA.
+   * Only Cloud Functions V2 is supported. Cloud function execution should
+   * complete within 5 minutes or this file ingestion may fail due to timeout.
+   * Format: `https://{region}-{project_id}.cloudfunctions.net/{cloud_function}`
+   * The following keys are available the request json payload.
+   * * display_name
+   * * properties
+   * * plain_text
+   * * reference_id
+   * * document_schema_name
+   * * raw_document_path
+   * * raw_document_file_type
+   *
+   * The following keys from the cloud function json response payload will be
+   * ingested to the Document AI Warehouse as part of Document proto content
+   * and/or related information. The original values will be overridden if any
+   * key is present in the response.
+   * * display_name
+   * * properties
+   * * plain_text
+   * * document_acl_policy
+   * * folder
+   * 
+ * + * string cloud_function = 4 [(.google.api.resource_reference) = { ... } + * + * @return The bytes for cloudFunction. + */ + com.google.protobuf.ByteString getCloudFunctionBytes(); } diff --git a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/PipelinesProto.java b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/PipelinesProto.java index e61fbd318215..ab55bc8fb500 100644 --- a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/PipelinesProto.java +++ b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/src/main/java/com/google/cloud/contentwarehouse/v1/PipelinesProto.java @@ -118,40 +118,44 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "s\030\002 \001(\0132\022.google.rpc.StatusB\023\n\021pipeline_" + "metadata\"S\n\rProcessorInfo\022\026\n\016processor_n" + "ame\030\001 \001(\t\022\025\n\rdocument_type\030\002 \001(\t\022\023\n\013sche" - + "ma_name\030\003 \001(\t\"\211\001\n\024IngestPipelineConfig\0222" + + "ma_name\030\003 \001(\t\"\323\001\n\024IngestPipelineConfig\0222" + "\n\023document_acl_policy\030\001 \001(\0132\025.google.iam" + ".v1.Policy\022\'\n\037enable_document_text_extra" - + "ction\030\002 \001(\010\022\024\n\006folder\030\003 \001(\tB\004\342A\001\001\"\314\001\n\021Gc" - + "sIngestPipeline\022\022\n\ninput_path\030\001 \001(\t\022\023\n\013s" - + "chema_name\030\002 \001(\t\022\026\n\016processor_type\030\003 \001(\t" - + "\022\037\n\027skip_ingested_documents\030\004 \001(\010\022U\n\017pip" - + "eline_config\030\005 \001(\01326.google.cloud.conten" - + "twarehouse.v1.IngestPipelineConfigB\004\342A\001\001" - + "\"\203\003\n$GcsIngestWithDocAiProcessorsPipelin" - + "e\022\022\n\ninput_path\030\001 \001(\t\022V\n\035split_classify_" - + "processor_info\030\002 \001(\0132/.google.cloud.cont" - + "entwarehouse.v1.ProcessorInfo\022P\n\027extract" - + "_processor_infos\030\003 \003(\0132/.google.cloud.co" - + "ntentwarehouse.v1.ProcessorInfo\022%\n\035proce" - + "ssor_results_folder_path\030\004 \001(\t\022\037\n\027skip_i" - + "ngested_documents\030\005 \001(\010\022U\n\017pipeline_conf" - + "ig\030\006 \001(\01326.google.cloud.contentwarehouse" - + ".v1.IngestPipelineConfigB\004\342A\001\001\"\200\001\n\023Expor" - + "tToCdwPipeline\022\021\n\tdocuments\030\001 \003(\t\022\032\n\022exp" - + "ort_folder_path\030\002 \001(\t\022\034\n\016doc_ai_dataset\030" - + "\003 \001(\tB\004\342A\001\001\022\034\n\024training_split_ratio\030\004 \001(" - + "\002\"\271\001\n\030ProcessWithDocAiPipeline\022\021\n\tdocume" - + "nts\030\001 \003(\t\022\032\n\022export_folder_path\030\002 \001(\t\022G\n" - + "\016processor_info\030\003 \001(\0132/.google.cloud.con" - + "tentwarehouse.v1.ProcessorInfo\022%\n\035proces" - + "sor_results_folder_path\030\004 \001(\tB\366\001\n$com.go" - + "ogle.cloud.contentwarehouse.v1B\016Pipeline" - + "sProtoP\001ZPcloud.google.com/go/contentwar" - + "ehouse/apiv1/contentwarehousepb;contentw" - + "arehousepb\252\002 Google.Cloud.ContentWarehou" - + "se.V1\312\002 Google\\Cloud\\ContentWarehouse\\V1" - + "\352\002#Google::Cloud::ContentWarehouse::V1b\006" - + "proto3" + + "ction\030\002 \001(\010\022\024\n\006folder\030\003 \001(\tB\004\342A\001\001\022H\n\016clo" + + "ud_function\030\004 \001(\tB0\372A-\n+cloudfunctions.g" + + "oogleapis.com/CloudFunction\"\314\001\n\021GcsInges" + + "tPipeline\022\022\n\ninput_path\030\001 \001(\t\022\023\n\013schema_" + + "name\030\002 \001(\t\022\026\n\016processor_type\030\003 \001(\t\022\037\n\027sk" + + "ip_ingested_documents\030\004 \001(\010\022U\n\017pipeline_" + + "config\030\005 \001(\01326.google.cloud.contentwareh" + + "ouse.v1.IngestPipelineConfigB\004\342A\001\001\"\203\003\n$G" + + "csIngestWithDocAiProcessorsPipeline\022\022\n\ni" + + "nput_path\030\001 \001(\t\022V\n\035split_classify_proces" + + "sor_info\030\002 \001(\0132/.google.cloud.contentwar" + + "ehouse.v1.ProcessorInfo\022P\n\027extract_proce" + + "ssor_infos\030\003 \003(\0132/.google.cloud.contentw" + + "arehouse.v1.ProcessorInfo\022%\n\035processor_r" + + "esults_folder_path\030\004 \001(\t\022\037\n\027skip_ingeste" + + "d_documents\030\005 \001(\010\022U\n\017pipeline_config\030\006 \001" + + "(\01326.google.cloud.contentwarehouse.v1.In" + + "gestPipelineConfigB\004\342A\001\001\"\200\001\n\023ExportToCdw" + + "Pipeline\022\021\n\tdocuments\030\001 \003(\t\022\032\n\022export_fo" + + "lder_path\030\002 \001(\t\022\034\n\016doc_ai_dataset\030\003 \001(\tB" + + "\004\342A\001\001\022\034\n\024training_split_ratio\030\004 \001(\002\"\271\001\n\030" + + "ProcessWithDocAiPipeline\022\021\n\tdocuments\030\001 " + + "\003(\t\022\032\n\022export_folder_path\030\002 \001(\t\022G\n\016proce" + + "ssor_info\030\003 \001(\0132/.google.cloud.contentwa" + + "rehouse.v1.ProcessorInfo\022%\n\035processor_re" + + "sults_folder_path\030\004 \001(\tB\344\002\n$com.google.c" + + "loud.contentwarehouse.v1B\016PipelinesProto" + + "P\001ZPcloud.google.com/go/contentwarehouse" + + "/apiv1/contentwarehousepb;contentwarehou" + + "sepb\252\002 Google.Cloud.ContentWarehouse.V1\312" + + "\002 Google\\Cloud\\ContentWarehouse\\V1\352\002#Goo" + + "gle::Cloud::ContentWarehouse::V1\352Ak\n+clo" + + "udfunctions.googleapis.com/CloudFunction" + + "\022