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 disposition_time, legal_hold, document_is_retention_folder, document_is_legal_hold_folder, question_answer, document_name_filter field to Document Warehouse API v1 #4537

Merged
merged 2 commits into from
Aug 15, 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 @@ -131,7 +131,7 @@ enum DatabaseType {
DB_INFRA_SPANNER = 1;

// Cloud Sql with a Postgres Sql instance
DB_CLOUD_SQL_POSTGRES = 2;
DB_CLOUD_SQL_POSTGRES = 2 [deprecated = true];
}

// Access Control Mode.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,14 @@ message Document {

// The user who lastly updates the document.
string updater = 14;

// Output only. If linked to a Collection with RetentionPolicy, the date when
// the document becomes mutable.
google.protobuf.Timestamp disposition_time = 22
[(google.api.field_behavior) = OUTPUT_ONLY];

// Output only. Indicates if the document has a legal hold on it.
bool legal_hold = 23 [(google.api.field_behavior) = OUTPUT_ONLY];
}

// References to the documents.
Expand Down Expand Up @@ -158,6 +166,12 @@ message DocumentReference {
// Output only. The time when the document is deleted.
google.protobuf.Timestamp delete_time = 7
[(google.api.field_behavior) = OUTPUT_ONLY];

// Document is a folder with retention policy.
bool document_is_retention_folder = 8;

// Document is a folder with legal hold.
bool document_is_legal_hold_folder = 9;
}

// Property of a document.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -248,6 +248,10 @@ message SearchDocumentsResponse {
// The histogram results that match with the specified
// [SearchDocumentsRequest.histogram_queries][google.cloud.contentwarehouse.v1.SearchDocumentsRequest.histogram_queries].
repeated HistogramQueryResult histogram_query_results = 6;

// Experimental.
// Question answer from the query against the document.
string question_answer = 7;
}

// Response message for DocumentService.FetchAcl.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,11 @@ message DocumentQuery {
// projects/{project_number}/locations/{location}/documents/{document_id}.
string folder_name_filter = 9;

// Search the documents in the list.
// Format:
// projects/{project_number}/locations/{location}/documents/{document_id}.
repeated string document_name_filter = 14;

// For custom synonyms.
// Customers provide the synonyms based on context. One customer can provide
// multiple set of synonyms based on different context. The search query will
Expand Down Expand Up @@ -175,6 +180,9 @@ message TimeFilter {

// Latest document update time.
UPDATE_TIME = 2;

// Time when document becomes mutable again.
DISPOSITION_TIME = 3;
}

google.type.Interval time_range = 1;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,12 @@ message Rule {

// Trigger for update document action.
ON_UPDATE = 4;

// Trigger for create link action.
ON_CREATE_LINK = 7;

// Trigger for delete link action.
ON_DELETE_LINK = 8;
}

// Short description of the rule and its context.
Expand Down
43 changes: 41 additions & 2 deletions 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.

Loading