Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: [contentwarehouse] add ROOT_FOLDER field to Document Warehouse API v1 #4672

Merged
merged 2 commits into from
Sep 19, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -262,6 +262,9 @@ message FileTypeFilter {

// Returns only non-folder documents.
DOCUMENT = 3;

// Returns only root folders
ROOT_FOLDER = 4;
}

// The type of files to return.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@ option java_outer_classname = "PipelinesProto";
option java_package = "com.google.cloud.contentwarehouse.v1";
option php_namespace = "Google\\Cloud\\ContentWarehouse\\V1";
option ruby_package = "Google::Cloud::ContentWarehouse::V1";
option (google.api.resource_definition) = {
type: "cloudfunctions.googleapis.com/CloudFunction"
pattern: "projects/{project}/locations/{location}/functions/{function}"
};

// Response message of RunPipeline method.
message RunPipelineResponse {}
Expand Down Expand Up @@ -146,6 +150,33 @@ message IngestPipelineConfig {
// linked during ingestion process. Format is
// `projects/{project}/locations/{location}/documents/{folder_id}`
string folder = 3 [(google.api.field_behavior) = OPTIONAL];

// 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) = {
type: "cloudfunctions.googleapis.com/CloudFunction"
}];
}

// The configuration of the Cloud Storage Ingestion pipeline.
Expand Down
9 changes: 8 additions & 1 deletion packages/google-cloud-contentwarehouse/protos/protos.d.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

30 changes: 30 additions & 0 deletions packages/google-cloud-contentwarehouse/protos/protos.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 11 additions & 3 deletions packages/google-cloud-contentwarehouse/protos/protos.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.