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: add ROOT_FOLDER field to Document Warehouse API v1 #9846

Merged
merged 2 commits into from
Sep 21, 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
4 changes: 2 additions & 2 deletions java-contentwarehouse/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file:
<dependency>
<groupId>com.google.cloud</groupId>
<artifactId>libraries-bom</artifactId>
<version>26.22.0</version>
<version>26.23.0</version>
<type>pom</type>
<scope>import</scope>
</dependency>
Expand Down Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,16 @@ public enum FileType implements com.google.protobuf.ProtocolMessageEnum {
* <code>DOCUMENT = 3;</code>
*/
DOCUMENT(3),
/**
*
*
* <pre>
* Returns only root folders
* </pre>
*
* <code>ROOT_FOLDER = 4;</code>
*/
ROOT_FOLDER(4),
UNRECOGNIZED(-1),
;

Expand Down Expand Up @@ -155,6 +165,16 @@ public enum FileType implements com.google.protobuf.ProtocolMessageEnum {
* <code>DOCUMENT = 3;</code>
*/
public static final int DOCUMENT_VALUE = 3;
/**
*
*
* <pre>
* Returns only root folders
* </pre>
*
* <code>ROOT_FOLDER = 4;</code>
*/
public static final int ROOT_FOLDER_VALUE = 4;

public final int getNumber() {
if (this == UNRECOGNIZED) {
Expand Down Expand Up @@ -188,6 +208,8 @@ public static FileType forNumber(int value) {
return FOLDER;
case 3:
return DOCUMENT;
case 4:
return ROOT_FOLDER;
default:
return null;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down
Loading