diff --git a/java-discoveryengine/README.md b/java-discoveryengine/README.md
index 8dc85fe27346..116894145625 100644
--- a/java-discoveryengine/README.md
+++ b/java-discoveryengine/README.md
@@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file:
* The MIME type of the content. Supported types:
*
- * * `application/pdf` (PDF)
+ * * `application/pdf` (PDF, only native PDFs are supported for now)
* * `text/html` (HTML)
+ * * `application/vnd.openxmlformats-officedocument.wordprocessingml.document` (DOCX)
+ * * `application/vnd.openxmlformats-officedocument.presentationml.presentation` (PPTX)
+ * * `text/plain` (TXT)
*
* See https://www.iana.org/assignments/media-types/media-types.xhtml.
*
@@ -176,8 +179,11 @@ public interface ContentOrBuilder
*
* The MIME type of the content. Supported types:
*
- * * `application/pdf` (PDF)
+ * * `application/pdf` (PDF, only native PDFs are supported for now)
* * `text/html` (HTML)
+ * * `application/vnd.openxmlformats-officedocument.wordprocessingml.document` (DOCX)
+ * * `application/vnd.openxmlformats-officedocument.presentationml.presentation` (PPTX)
+ * * `text/plain` (TXT)
*
* See https://www.iana.org/assignments/media-types/media-types.xhtml.
*
@@ -418,8 +424,11 @@ public com.google.protobuf.ByteString getUriBytes() {
*
* The MIME type of the content. Supported types:
*
- * * `application/pdf` (PDF)
+ * * `application/pdf` (PDF, only native PDFs are supported for now)
* * `text/html` (HTML)
+ * * `application/vnd.openxmlformats-officedocument.wordprocessingml.document` (DOCX)
+ * * `application/vnd.openxmlformats-officedocument.presentationml.presentation` (PPTX)
+ * * `text/plain` (TXT)
*
* See https://www.iana.org/assignments/media-types/media-types.xhtml.
*
@@ -446,8 +455,11 @@ public java.lang.String getMimeType() {
*
* The MIME type of the content. Supported types:
*
- * * `application/pdf` (PDF)
+ * * `application/pdf` (PDF, only native PDFs are supported for now)
* * `text/html` (HTML)
+ * * `application/vnd.openxmlformats-officedocument.wordprocessingml.document` (DOCX)
+ * * `application/vnd.openxmlformats-officedocument.presentationml.presentation` (PPTX)
+ * * `text/plain` (TXT)
*
* See https://www.iana.org/assignments/media-types/media-types.xhtml.
*
@@ -1160,8 +1172,11 @@ public Builder setUriBytes(com.google.protobuf.ByteString value) {
*
* The MIME type of the content. Supported types:
*
- * * `application/pdf` (PDF)
+ * * `application/pdf` (PDF, only native PDFs are supported for now)
* * `text/html` (HTML)
+ * * `application/vnd.openxmlformats-officedocument.wordprocessingml.document` (DOCX)
+ * * `application/vnd.openxmlformats-officedocument.presentationml.presentation` (PPTX)
+ * * `text/plain` (TXT)
*
* See https://www.iana.org/assignments/media-types/media-types.xhtml.
*
@@ -1187,8 +1202,11 @@ public java.lang.String getMimeType() {
*
* The MIME type of the content. Supported types:
*
- * * `application/pdf` (PDF)
+ * * `application/pdf` (PDF, only native PDFs are supported for now)
* * `text/html` (HTML)
+ * * `application/vnd.openxmlformats-officedocument.wordprocessingml.document` (DOCX)
+ * * `application/vnd.openxmlformats-officedocument.presentationml.presentation` (PPTX)
+ * * `text/plain` (TXT)
*
* See https://www.iana.org/assignments/media-types/media-types.xhtml.
*
@@ -1214,8 +1232,11 @@ public com.google.protobuf.ByteString getMimeTypeBytes() {
*
* The MIME type of the content. Supported types:
*
- * * `application/pdf` (PDF)
+ * * `application/pdf` (PDF, only native PDFs are supported for now)
* * `text/html` (HTML)
+ * * `application/vnd.openxmlformats-officedocument.wordprocessingml.document` (DOCX)
+ * * `application/vnd.openxmlformats-officedocument.presentationml.presentation` (PPTX)
+ * * `text/plain` (TXT)
*
* See https://www.iana.org/assignments/media-types/media-types.xhtml.
*
@@ -1240,8 +1261,11 @@ public Builder setMimeType(java.lang.String value) {
*
* The MIME type of the content. Supported types:
*
- * * `application/pdf` (PDF)
+ * * `application/pdf` (PDF, only native PDFs are supported for now)
* * `text/html` (HTML)
+ * * `application/vnd.openxmlformats-officedocument.wordprocessingml.document` (DOCX)
+ * * `application/vnd.openxmlformats-officedocument.presentationml.presentation` (PPTX)
+ * * `text/plain` (TXT)
*
* See https://www.iana.org/assignments/media-types/media-types.xhtml.
*
@@ -1262,8 +1286,11 @@ public Builder clearMimeType() {
*
* The MIME type of the content. Supported types:
*
- * * `application/pdf` (PDF)
+ * * `application/pdf` (PDF, only native PDFs are supported for now)
* * `text/html` (HTML)
+ * * `application/vnd.openxmlformats-officedocument.wordprocessingml.document` (DOCX)
+ * * `application/vnd.openxmlformats-officedocument.presentationml.presentation` (PPTX)
+ * * `text/plain` (TXT)
*
* See https://www.iana.org/assignments/media-types/media-types.xhtml.
*
diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/GcsSource.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/GcsSource.java
index c6b51bc9726e..27542386fca7 100644
--- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/GcsSource.java
+++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/GcsSource.java
@@ -178,6 +178,10 @@ public com.google.protobuf.ByteString getInputUrisBytes(int index) {
* * `custom`: One custom data JSON per row in arbitrary format that conforms
* the defined [Schema][google.cloud.discoveryengine.v1beta.Schema] of the
* data store. This can only be used by the GENERIC Data Store vertical.
+ * * `csv`: A CSV file with header conforming the defined
+ * [Schema][google.cloud.discoveryengine.v1beta.Schema] of the
+ * data store. Each entry after the header will be imported as a Document.
+ * This can only be used by the GENERIC Data Store vertical.
*
* Supported values for user even imports:
*
@@ -220,6 +224,10 @@ public java.lang.String getDataSchema() {
* * `custom`: One custom data JSON per row in arbitrary format that conforms
* the defined [Schema][google.cloud.discoveryengine.v1beta.Schema] of the
* data store. This can only be used by the GENERIC Data Store vertical.
+ * * `csv`: A CSV file with header conforming the defined
+ * [Schema][google.cloud.discoveryengine.v1beta.Schema] of the
+ * data store. Each entry after the header will be imported as a Document.
+ * This can only be used by the GENERIC Data Store vertical.
*
* Supported values for user even imports:
*
@@ -881,6 +889,10 @@ public Builder addInputUrisBytes(com.google.protobuf.ByteString value) {
* * `custom`: One custom data JSON per row in arbitrary format that conforms
* the defined [Schema][google.cloud.discoveryengine.v1beta.Schema] of the
* data store. This can only be used by the GENERIC Data Store vertical.
+ * * `csv`: A CSV file with header conforming the defined
+ * [Schema][google.cloud.discoveryengine.v1beta.Schema] of the
+ * data store. Each entry after the header will be imported as a Document.
+ * This can only be used by the GENERIC Data Store vertical.
*
* Supported values for user even imports:
*
@@ -922,6 +934,10 @@ public java.lang.String getDataSchema() {
* * `custom`: One custom data JSON per row in arbitrary format that conforms
* the defined [Schema][google.cloud.discoveryengine.v1beta.Schema] of the
* data store. This can only be used by the GENERIC Data Store vertical.
+ * * `csv`: A CSV file with header conforming the defined
+ * [Schema][google.cloud.discoveryengine.v1beta.Schema] of the
+ * data store. Each entry after the header will be imported as a Document.
+ * This can only be used by the GENERIC Data Store vertical.
*
* Supported values for user even imports:
*
@@ -963,6 +979,10 @@ public com.google.protobuf.ByteString getDataSchemaBytes() {
* * `custom`: One custom data JSON per row in arbitrary format that conforms
* the defined [Schema][google.cloud.discoveryengine.v1beta.Schema] of the
* data store. This can only be used by the GENERIC Data Store vertical.
+ * * `csv`: A CSV file with header conforming the defined
+ * [Schema][google.cloud.discoveryengine.v1beta.Schema] of the
+ * data store. Each entry after the header will be imported as a Document.
+ * This can only be used by the GENERIC Data Store vertical.
*
* Supported values for user even imports:
*
@@ -1003,6 +1023,10 @@ public Builder setDataSchema(java.lang.String value) {
* * `custom`: One custom data JSON per row in arbitrary format that conforms
* the defined [Schema][google.cloud.discoveryengine.v1beta.Schema] of the
* data store. This can only be used by the GENERIC Data Store vertical.
+ * * `csv`: A CSV file with header conforming the defined
+ * [Schema][google.cloud.discoveryengine.v1beta.Schema] of the
+ * data store. Each entry after the header will be imported as a Document.
+ * This can only be used by the GENERIC Data Store vertical.
*
* Supported values for user even imports:
*
@@ -1039,6 +1063,10 @@ public Builder clearDataSchema() {
* * `custom`: One custom data JSON per row in arbitrary format that conforms
* the defined [Schema][google.cloud.discoveryengine.v1beta.Schema] of the
* data store. This can only be used by the GENERIC Data Store vertical.
+ * * `csv`: A CSV file with header conforming the defined
+ * [Schema][google.cloud.discoveryengine.v1beta.Schema] of the
+ * data store. Each entry after the header will be imported as a Document.
+ * This can only be used by the GENERIC Data Store vertical.
*
* Supported values for user even imports:
*
diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/GcsSourceOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/GcsSourceOrBuilder.java
index db6b5d4f522c..1a24cb02c00c 100644
--- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/GcsSourceOrBuilder.java
+++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/GcsSourceOrBuilder.java
@@ -121,6 +121,10 @@ public interface GcsSourceOrBuilder
* * `custom`: One custom data JSON per row in arbitrary format that conforms
* the defined [Schema][google.cloud.discoveryengine.v1beta.Schema] of the
* data store. This can only be used by the GENERIC Data Store vertical.
+ * * `csv`: A CSV file with header conforming the defined
+ * [Schema][google.cloud.discoveryengine.v1beta.Schema] of the
+ * data store. Each entry after the header will be imported as a Document.
+ * This can only be used by the GENERIC Data Store vertical.
*
* Supported values for user even imports:
*
@@ -152,6 +156,10 @@ public interface GcsSourceOrBuilder
* * `custom`: One custom data JSON per row in arbitrary format that conforms
* the defined [Schema][google.cloud.discoveryengine.v1beta.Schema] of the
* data store. This can only be used by the GENERIC Data Store vertical.
+ * * `csv`: A CSV file with header conforming the defined
+ * [Schema][google.cloud.discoveryengine.v1beta.Schema] of the
+ * data store. Each entry after the header will be imported as a Document.
+ * This can only be used by the GENERIC Data Store vertical.
*
* Supported values for user even imports:
*
diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ImportConfigProto.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ImportConfigProto.java
index 07893b04b99e..406a3eedfee5 100644
--- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ImportConfigProto.java
+++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ImportConfigProto.java
@@ -96,64 +96,64 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "e_id\030\003 \001(\tB\004\342A\001\002\022\027\n\017gcs_staging_dir\030\004 \001("
+ "\t\022\023\n\013data_schema\030\006 \001(\tB\013\n\tpartition\"8\n\021I"
+ "mportErrorConfig\022\024\n\ngcs_prefix\030\001 \001(\tH\000B\r"
- + "\n\013destination\"\233\004\n\027ImportUserEventsReques"
- + "t\022h\n\rinline_source\030\002 \001(\0132I.google.cloud."
+ + "\n\013destination\"\211\004\n\027ImportUserEventsReques"
+ + "t\022b\n\rinline_source\030\002 \001(\0132I.google.cloud."
+ "discoveryengine.v1beta.ImportUserEventsR"
- + "equest.InlineSourceB\004\342A\001\002H\000\022J\n\ngcs_sourc"
- + "e\030\003 \001(\0132..google.cloud.discoveryengine.v"
- + "1beta.GcsSourceB\004\342A\001\002H\000\022T\n\017bigquery_sour"
- + "ce\030\004 \001(\01323.google.cloud.discoveryengine."
- + "v1beta.BigQuerySourceB\004\342A\001\002H\000\022A\n\006parent\030"
- + "\001 \001(\tB1\342A\001\002\372A*\n(discoveryengine.googleap"
- + "is.com/DataStore\022L\n\014error_config\030\005 \001(\01326"
- + ".google.cloud.discoveryengine.v1beta.Imp"
- + "ortErrorConfig\032Y\n\014InlineSource\022I\n\013user_e"
- + "vents\030\001 \003(\0132..google.cloud.discoveryengi"
- + "ne.v1beta.UserEventB\004\342A\001\002B\010\n\006source\"\317\001\n\030"
- + "ImportUserEventsResponse\022)\n\rerror_sample"
- + "s\030\001 \003(\0132\022.google.rpc.Status\022L\n\014error_con"
- + "fig\030\002 \001(\01326.google.cloud.discoveryengine"
- + ".v1beta.ImportErrorConfig\022\033\n\023joined_even"
- + "ts_count\030\003 \001(\003\022\035\n\025unjoined_events_count\030"
- + "\004 \001(\003\"\252\001\n\030ImportUserEventsMetadata\022/\n\013cr"
- + "eate_time\030\001 \001(\0132\032.google.protobuf.Timest"
- + "amp\022/\n\013update_time\030\002 \001(\0132\032.google.protob"
- + "uf.Timestamp\022\025\n\rsuccess_count\030\003 \001(\003\022\025\n\rf"
- + "ailure_count\030\004 \001(\003\"\251\001\n\027ImportDocumentsMe"
- + "tadata\022/\n\013create_time\030\001 \001(\0132\032.google.pro"
- + "tobuf.Timestamp\022/\n\013update_time\030\002 \001(\0132\032.g"
- + "oogle.protobuf.Timestamp\022\025\n\rsuccess_coun"
- + "t\030\003 \001(\003\022\025\n\rfailure_count\030\004 \001(\003\"\361\005\n\026Impor"
- + "tDocumentsRequest\022a\n\rinline_source\030\002 \001(\013"
- + "2H.google.cloud.discoveryengine.v1beta.I"
- + "mportDocumentsRequest.InlineSourceH\000\022D\n\n"
- + "gcs_source\030\003 \001(\0132..google.cloud.discover"
- + "yengine.v1beta.GcsSourceH\000\022N\n\017bigquery_s"
- + "ource\030\004 \001(\01323.google.cloud.discoveryengi"
- + "ne.v1beta.BigQuerySourceH\000\022>\n\006parent\030\001 \001"
- + "(\tB.\342A\001\002\372A\'\n%discoveryengine.googleapis."
- + "com/Branch\022L\n\014error_config\030\005 \001(\01326.googl"
- + "e.cloud.discoveryengine.v1beta.ImportErr"
- + "orConfig\022k\n\023reconciliation_mode\030\006 \001(\0162N."
- + "google.cloud.discoveryengine.v1beta.Impo"
- + "rtDocumentsRequest.ReconciliationMode\022\031\n"
- + "\021auto_generate_ids\030\010 \001(\010\022\020\n\010id_field\030\t \001"
- + "(\t\032V\n\014InlineSource\022F\n\tdocuments\030\001 \003(\0132-."
- + "google.cloud.discoveryengine.v1beta.Docu"
- + "mentB\004\342A\001\002\"T\n\022ReconciliationMode\022#\n\037RECO"
- + "NCILIATION_MODE_UNSPECIFIED\020\000\022\017\n\013INCREME"
- + "NTAL\020\001\022\010\n\004FULL\020\002B\010\n\006source\"\222\001\n\027ImportDoc"
- + "umentsResponse\022)\n\rerror_samples\030\001 \003(\0132\022."
- + "google.rpc.Status\022L\n\014error_config\030\002 \001(\0132"
- + "6.google.cloud.discoveryengine.v1beta.Im"
- + "portErrorConfigB\230\002\n\'com.google.cloud.dis"
- + "coveryengine.v1betaB\021ImportConfigProtoP\001"
- + "ZQcloud.google.com/go/discoveryengine/ap"
- + "iv1beta/discoveryenginepb;discoveryengin"
- + "epb\242\002\017DISCOVERYENGINE\252\002#Google.Cloud.Dis"
- + "coveryEngine.V1Beta\312\002#Google\\Cloud\\Disco"
- + "veryEngine\\V1beta\352\002&Google::Cloud::Disco"
- + "veryEngine::V1betab\006proto3"
+ + "equest.InlineSourceH\000\022D\n\ngcs_source\030\003 \001("
+ + "\0132..google.cloud.discoveryengine.v1beta."
+ + "GcsSourceH\000\022N\n\017bigquery_source\030\004 \001(\01323.g"
+ + "oogle.cloud.discoveryengine.v1beta.BigQu"
+ + "erySourceH\000\022A\n\006parent\030\001 \001(\tB1\342A\001\002\372A*\n(di"
+ + "scoveryengine.googleapis.com/DataStore\022L"
+ + "\n\014error_config\030\005 \001(\01326.google.cloud.disc"
+ + "overyengine.v1beta.ImportErrorConfig\032Y\n\014"
+ + "InlineSource\022I\n\013user_events\030\001 \003(\0132..goog"
+ + "le.cloud.discoveryengine.v1beta.UserEven"
+ + "tB\004\342A\001\002B\010\n\006source\"\317\001\n\030ImportUserEventsRe"
+ + "sponse\022)\n\rerror_samples\030\001 \003(\0132\022.google.r"
+ + "pc.Status\022L\n\014error_config\030\002 \001(\01326.google"
+ + ".cloud.discoveryengine.v1beta.ImportErro"
+ + "rConfig\022\033\n\023joined_events_count\030\003 \001(\003\022\035\n\025"
+ + "unjoined_events_count\030\004 \001(\003\"\252\001\n\030ImportUs"
+ + "erEventsMetadata\022/\n\013create_time\030\001 \001(\0132\032."
+ + "google.protobuf.Timestamp\022/\n\013update_time"
+ + "\030\002 \001(\0132\032.google.protobuf.Timestamp\022\025\n\rsu"
+ + "ccess_count\030\003 \001(\003\022\025\n\rfailure_count\030\004 \001(\003"
+ + "\"\251\001\n\027ImportDocumentsMetadata\022/\n\013create_t"
+ + "ime\030\001 \001(\0132\032.google.protobuf.Timestamp\022/\n"
+ + "\013update_time\030\002 \001(\0132\032.google.protobuf.Tim"
+ + "estamp\022\025\n\rsuccess_count\030\003 \001(\003\022\025\n\rfailure"
+ + "_count\030\004 \001(\003\"\361\005\n\026ImportDocumentsRequest\022"
+ + "a\n\rinline_source\030\002 \001(\0132H.google.cloud.di"
+ + "scoveryengine.v1beta.ImportDocumentsRequ"
+ + "est.InlineSourceH\000\022D\n\ngcs_source\030\003 \001(\0132."
+ + ".google.cloud.discoveryengine.v1beta.Gcs"
+ + "SourceH\000\022N\n\017bigquery_source\030\004 \001(\01323.goog"
+ + "le.cloud.discoveryengine.v1beta.BigQuery"
+ + "SourceH\000\022>\n\006parent\030\001 \001(\tB.\342A\001\002\372A\'\n%disco"
+ + "veryengine.googleapis.com/Branch\022L\n\014erro"
+ + "r_config\030\005 \001(\01326.google.cloud.discoverye"
+ + "ngine.v1beta.ImportErrorConfig\022k\n\023reconc"
+ + "iliation_mode\030\006 \001(\0162N.google.cloud.disco"
+ + "veryengine.v1beta.ImportDocumentsRequest"
+ + ".ReconciliationMode\022\031\n\021auto_generate_ids"
+ + "\030\010 \001(\010\022\020\n\010id_field\030\t \001(\t\032V\n\014InlineSource"
+ + "\022F\n\tdocuments\030\001 \003(\0132-.google.cloud.disco"
+ + "veryengine.v1beta.DocumentB\004\342A\001\002\"T\n\022Reco"
+ + "nciliationMode\022#\n\037RECONCILIATION_MODE_UN"
+ + "SPECIFIED\020\000\022\017\n\013INCREMENTAL\020\001\022\010\n\004FULL\020\002B\010"
+ + "\n\006source\"\222\001\n\027ImportDocumentsResponse\022)\n\r"
+ + "error_samples\030\001 \003(\0132\022.google.rpc.Status\022"
+ + "L\n\014error_config\030\002 \001(\01326.google.cloud.dis"
+ + "coveryengine.v1beta.ImportErrorConfigB\230\002"
+ + "\n\'com.google.cloud.discoveryengine.v1bet"
+ + "aB\021ImportConfigProtoP\001ZQcloud.google.com"
+ + "/go/discoveryengine/apiv1beta/discoverye"
+ + "nginepb;discoveryenginepb\242\002\017DISCOVERYENG"
+ + "INE\252\002#Google.Cloud.DiscoveryEngine.V1Bet"
+ + "a\312\002#Google\\Cloud\\DiscoveryEngine\\V1beta\352"
+ + "\002&Google::Cloud::DiscoveryEngine::V1beta"
+ + "b\006proto3"
};
descriptor =
com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ImportDocumentsRequest.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ImportDocumentsRequest.java
index 9219c5b30a38..4c31f3ca7072 100644
--- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ImportDocumentsRequest.java
+++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ImportDocumentsRequest.java
@@ -1756,7 +1756,7 @@ public int getReconciliationModeValue() {
* [GcsSource.data_schema][google.cloud.discoveryengine.v1beta.GcsSource.data_schema]
* or
* [BigQuerySource.data_schema][google.cloud.discoveryengine.v1beta.BigQuerySource.data_schema]
- * is `custom`. Otherwise, an INVALID_ARGUMENT error is thrown.
+ * is `custom` or `csv`. Otherwise, an INVALID_ARGUMENT error is thrown.
*
*
* bool auto_generate_ids = 8;
@@ -3587,7 +3587,7 @@ public Builder clearReconciliationMode() {
* [GcsSource.data_schema][google.cloud.discoveryengine.v1beta.GcsSource.data_schema]
* or
* [BigQuerySource.data_schema][google.cloud.discoveryengine.v1beta.BigQuerySource.data_schema]
- * is `custom`. Otherwise, an INVALID_ARGUMENT error is thrown.
+ * is `custom` or `csv`. Otherwise, an INVALID_ARGUMENT error is thrown.
*
*
* bool auto_generate_ids = 8;
@@ -3622,7 +3622,7 @@ public boolean getAutoGenerateIds() {
* [GcsSource.data_schema][google.cloud.discoveryengine.v1beta.GcsSource.data_schema]
* or
* [BigQuerySource.data_schema][google.cloud.discoveryengine.v1beta.BigQuerySource.data_schema]
- * is `custom`. Otherwise, an INVALID_ARGUMENT error is thrown.
+ * is `custom` or `csv`. Otherwise, an INVALID_ARGUMENT error is thrown.
*
*
* bool auto_generate_ids = 8;
@@ -3661,7 +3661,7 @@ public Builder setAutoGenerateIds(boolean value) {
* [GcsSource.data_schema][google.cloud.discoveryengine.v1beta.GcsSource.data_schema]
* or
* [BigQuerySource.data_schema][google.cloud.discoveryengine.v1beta.BigQuerySource.data_schema]
- * is `custom`. Otherwise, an INVALID_ARGUMENT error is thrown.
+ * is `custom` or `csv`. Otherwise, an INVALID_ARGUMENT error is thrown.
*
*
* bool auto_generate_ids = 8;
diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ImportDocumentsRequestOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ImportDocumentsRequestOrBuilder.java
index 02058fded8cd..f532c379201d 100644
--- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ImportDocumentsRequestOrBuilder.java
+++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ImportDocumentsRequestOrBuilder.java
@@ -261,7 +261,7 @@ public interface ImportDocumentsRequestOrBuilder
* [GcsSource.data_schema][google.cloud.discoveryengine.v1beta.GcsSource.data_schema]
* or
* [BigQuerySource.data_schema][google.cloud.discoveryengine.v1beta.BigQuerySource.data_schema]
- * is `custom`. Otherwise, an INVALID_ARGUMENT error is thrown.
+ * is `custom` or `csv`. Otherwise, an INVALID_ARGUMENT error is thrown.
*
*
* bool auto_generate_ids = 8;
diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ImportUserEventsRequest.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ImportUserEventsRequest.java
index 3f9fa2bba195..4d7a172897fc 100644
--- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ImportUserEventsRequest.java
+++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ImportUserEventsRequest.java
@@ -1193,11 +1193,11 @@ public SourceCase getSourceCase() {
*
*
*
- * Required. The Inline source for the input content for UserEvents.
+ * The Inline source for the input content for UserEvents.
*
*
*
- * .google.cloud.discoveryengine.v1beta.ImportUserEventsRequest.InlineSource inline_source = 2 [(.google.api.field_behavior) = REQUIRED];
+ * .google.cloud.discoveryengine.v1beta.ImportUserEventsRequest.InlineSource inline_source = 2;
*
*
* @return Whether the inlineSource field is set.
@@ -1210,11 +1210,11 @@ public boolean hasInlineSource() {
*
*
*
- * Required. The Inline source for the input content for UserEvents.
+ * The Inline source for the input content for UserEvents.
*
*
*
- * .google.cloud.discoveryengine.v1beta.ImportUserEventsRequest.InlineSource inline_source = 2 [(.google.api.field_behavior) = REQUIRED];
+ * .google.cloud.discoveryengine.v1beta.ImportUserEventsRequest.InlineSource inline_source = 2;
*
*
* @return The inlineSource.
@@ -1232,11 +1232,11 @@ public boolean hasInlineSource() {
*
*
*
- * Required. The Inline source for the input content for UserEvents.
+ * The Inline source for the input content for UserEvents.
*
*
*
- * .google.cloud.discoveryengine.v1beta.ImportUserEventsRequest.InlineSource inline_source = 2 [(.google.api.field_behavior) = REQUIRED];
+ * .google.cloud.discoveryengine.v1beta.ImportUserEventsRequest.InlineSource inline_source = 2;
*
*/
@java.lang.Override
@@ -1254,12 +1254,10 @@ public boolean hasInlineSource() {
*
*
*
- * Required. Cloud Storage location for the input content.
+ * Cloud Storage location for the input content.
*
*
- *
- * .google.cloud.discoveryengine.v1beta.GcsSource gcs_source = 3 [(.google.api.field_behavior) = REQUIRED];
- *
+ * .google.cloud.discoveryengine.v1beta.GcsSource gcs_source = 3;
*
* @return Whether the gcsSource field is set.
*/
@@ -1271,12 +1269,10 @@ public boolean hasGcsSource() {
*
*
*
- * Required. Cloud Storage location for the input content.
+ * Cloud Storage location for the input content.
*
*
- *
- * .google.cloud.discoveryengine.v1beta.GcsSource gcs_source = 3 [(.google.api.field_behavior) = REQUIRED];
- *
+ * .google.cloud.discoveryengine.v1beta.GcsSource gcs_source = 3;
*
* @return The gcsSource.
*/
@@ -1291,12 +1287,10 @@ public com.google.cloud.discoveryengine.v1beta.GcsSource getGcsSource() {
*
*
*
- * Required. Cloud Storage location for the input content.
+ * Cloud Storage location for the input content.
*
*
- *
- * .google.cloud.discoveryengine.v1beta.GcsSource gcs_source = 3 [(.google.api.field_behavior) = REQUIRED];
- *
+ * .google.cloud.discoveryengine.v1beta.GcsSource gcs_source = 3;
*/
@java.lang.Override
public com.google.cloud.discoveryengine.v1beta.GcsSourceOrBuilder getGcsSourceOrBuilder() {
@@ -1311,12 +1305,10 @@ public com.google.cloud.discoveryengine.v1beta.GcsSourceOrBuilder getGcsSourceOr
*
*
*
- * Required. BigQuery input source.
+ * BigQuery input source.
*
*
- *
- * .google.cloud.discoveryengine.v1beta.BigQuerySource bigquery_source = 4 [(.google.api.field_behavior) = REQUIRED];
- *
+ * .google.cloud.discoveryengine.v1beta.BigQuerySource bigquery_source = 4;
*
* @return Whether the bigquerySource field is set.
*/
@@ -1328,12 +1320,10 @@ public boolean hasBigquerySource() {
*
*
*
- * Required. BigQuery input source.
+ * BigQuery input source.
*
*
- *
- * .google.cloud.discoveryengine.v1beta.BigQuerySource bigquery_source = 4 [(.google.api.field_behavior) = REQUIRED];
- *
+ * .google.cloud.discoveryengine.v1beta.BigQuerySource bigquery_source = 4;
*
* @return The bigquerySource.
*/
@@ -1348,12 +1338,10 @@ public com.google.cloud.discoveryengine.v1beta.BigQuerySource getBigquerySource(
*
*
*
- * Required. BigQuery input source.
+ * BigQuery input source.
*
*
- *
- * .google.cloud.discoveryengine.v1beta.BigQuerySource bigquery_source = 4 [(.google.api.field_behavior) = REQUIRED];
- *
+ * .google.cloud.discoveryengine.v1beta.BigQuerySource bigquery_source = 4;
*/
@java.lang.Override
public com.google.cloud.discoveryengine.v1beta.BigQuerySourceOrBuilder
@@ -2001,11 +1989,11 @@ public Builder clearSource() {
*
*
*
- * Required. The Inline source for the input content for UserEvents.
+ * The Inline source for the input content for UserEvents.
*
*
*
- * .google.cloud.discoveryengine.v1beta.ImportUserEventsRequest.InlineSource inline_source = 2 [(.google.api.field_behavior) = REQUIRED];
+ * .google.cloud.discoveryengine.v1beta.ImportUserEventsRequest.InlineSource inline_source = 2;
*
*
* @return Whether the inlineSource field is set.
@@ -2018,11 +2006,11 @@ public boolean hasInlineSource() {
*
*
*
- * Required. The Inline source for the input content for UserEvents.
+ * The Inline source for the input content for UserEvents.
*
*
*
- * .google.cloud.discoveryengine.v1beta.ImportUserEventsRequest.InlineSource inline_source = 2 [(.google.api.field_behavior) = REQUIRED];
+ * .google.cloud.discoveryengine.v1beta.ImportUserEventsRequest.InlineSource inline_source = 2;
*
*
* @return The inlineSource.
@@ -2049,11 +2037,11 @@ public boolean hasInlineSource() {
*
*
*
- * Required. The Inline source for the input content for UserEvents.
+ * The Inline source for the input content for UserEvents.
*
*
*
- * .google.cloud.discoveryengine.v1beta.ImportUserEventsRequest.InlineSource inline_source = 2 [(.google.api.field_behavior) = REQUIRED];
+ * .google.cloud.discoveryengine.v1beta.ImportUserEventsRequest.InlineSource inline_source = 2;
*
*/
public Builder setInlineSource(
@@ -2074,11 +2062,11 @@ public Builder setInlineSource(
*
*
*
- * Required. The Inline source for the input content for UserEvents.
+ * The Inline source for the input content for UserEvents.
*
*
*
- * .google.cloud.discoveryengine.v1beta.ImportUserEventsRequest.InlineSource inline_source = 2 [(.google.api.field_behavior) = REQUIRED];
+ * .google.cloud.discoveryengine.v1beta.ImportUserEventsRequest.InlineSource inline_source = 2;
*
*/
public Builder setInlineSource(
@@ -2097,11 +2085,11 @@ public Builder setInlineSource(
*
*
*
- * Required. The Inline source for the input content for UserEvents.
+ * The Inline source for the input content for UserEvents.
*
*
*
- * .google.cloud.discoveryengine.v1beta.ImportUserEventsRequest.InlineSource inline_source = 2 [(.google.api.field_behavior) = REQUIRED];
+ * .google.cloud.discoveryengine.v1beta.ImportUserEventsRequest.InlineSource inline_source = 2;
*
*/
public Builder mergeInlineSource(
@@ -2136,11 +2124,11 @@ public Builder mergeInlineSource(
*
*
*
- * Required. The Inline source for the input content for UserEvents.
+ * The Inline source for the input content for UserEvents.
*
*
*
- * .google.cloud.discoveryengine.v1beta.ImportUserEventsRequest.InlineSource inline_source = 2 [(.google.api.field_behavior) = REQUIRED];
+ * .google.cloud.discoveryengine.v1beta.ImportUserEventsRequest.InlineSource inline_source = 2;
*
*/
public Builder clearInlineSource() {
@@ -2163,11 +2151,11 @@ public Builder clearInlineSource() {
*
*
*
- * Required. The Inline source for the input content for UserEvents.
+ * The Inline source for the input content for UserEvents.
*
*
*
- * .google.cloud.discoveryengine.v1beta.ImportUserEventsRequest.InlineSource inline_source = 2 [(.google.api.field_behavior) = REQUIRED];
+ * .google.cloud.discoveryengine.v1beta.ImportUserEventsRequest.InlineSource inline_source = 2;
*
*/
public com.google.cloud.discoveryengine.v1beta.ImportUserEventsRequest.InlineSource.Builder
@@ -2178,11 +2166,11 @@ public Builder clearInlineSource() {
*
*
*
- * Required. The Inline source for the input content for UserEvents.
+ * The Inline source for the input content for UserEvents.
*
*
*
- * .google.cloud.discoveryengine.v1beta.ImportUserEventsRequest.InlineSource inline_source = 2 [(.google.api.field_behavior) = REQUIRED];
+ * .google.cloud.discoveryengine.v1beta.ImportUserEventsRequest.InlineSource inline_source = 2;
*
*/
@java.lang.Override
@@ -2203,11 +2191,11 @@ public Builder clearInlineSource() {
*
*
*
- * Required. The Inline source for the input content for UserEvents.
+ * The Inline source for the input content for UserEvents.
*
*
*
- * .google.cloud.discoveryengine.v1beta.ImportUserEventsRequest.InlineSource inline_source = 2 [(.google.api.field_behavior) = REQUIRED];
+ * .google.cloud.discoveryengine.v1beta.ImportUserEventsRequest.InlineSource inline_source = 2;
*
*/
private com.google.protobuf.SingleFieldBuilderV3<
@@ -2248,12 +2236,10 @@ public Builder clearInlineSource() {
*
*
*
- * Required. Cloud Storage location for the input content.
+ * Cloud Storage location for the input content.
*
*
- *
- * .google.cloud.discoveryengine.v1beta.GcsSource gcs_source = 3 [(.google.api.field_behavior) = REQUIRED];
- *
+ * .google.cloud.discoveryengine.v1beta.GcsSource gcs_source = 3;
*
* @return Whether the gcsSource field is set.
*/
@@ -2265,12 +2251,10 @@ public boolean hasGcsSource() {
*
*
*
- * Required. Cloud Storage location for the input content.
+ * Cloud Storage location for the input content.
*
*
- *
- * .google.cloud.discoveryengine.v1beta.GcsSource gcs_source = 3 [(.google.api.field_behavior) = REQUIRED];
- *
+ * .google.cloud.discoveryengine.v1beta.GcsSource gcs_source = 3;
*
* @return The gcsSource.
*/
@@ -2292,12 +2276,10 @@ public com.google.cloud.discoveryengine.v1beta.GcsSource getGcsSource() {
*
*
*
- * Required. Cloud Storage location for the input content.
+ * Cloud Storage location for the input content.
*
*
- *
- * .google.cloud.discoveryengine.v1beta.GcsSource gcs_source = 3 [(.google.api.field_behavior) = REQUIRED];
- *
+ * .google.cloud.discoveryengine.v1beta.GcsSource gcs_source = 3;
*/
public Builder setGcsSource(com.google.cloud.discoveryengine.v1beta.GcsSource value) {
if (gcsSourceBuilder_ == null) {
@@ -2316,12 +2298,10 @@ public Builder setGcsSource(com.google.cloud.discoveryengine.v1beta.GcsSource va
*
*
*
- * Required. Cloud Storage location for the input content.
+ * Cloud Storage location for the input content.
*
*
- *
- * .google.cloud.discoveryengine.v1beta.GcsSource gcs_source = 3 [(.google.api.field_behavior) = REQUIRED];
- *
+ * .google.cloud.discoveryengine.v1beta.GcsSource gcs_source = 3;
*/
public Builder setGcsSource(
com.google.cloud.discoveryengine.v1beta.GcsSource.Builder builderForValue) {
@@ -2338,12 +2318,10 @@ public Builder setGcsSource(
*
*
*
- * Required. Cloud Storage location for the input content.
+ * Cloud Storage location for the input content.
*
*
- *
- * .google.cloud.discoveryengine.v1beta.GcsSource gcs_source = 3 [(.google.api.field_behavior) = REQUIRED];
- *
+ * .google.cloud.discoveryengine.v1beta.GcsSource gcs_source = 3;
*/
public Builder mergeGcsSource(com.google.cloud.discoveryengine.v1beta.GcsSource value) {
if (gcsSourceBuilder_ == null) {
@@ -2372,12 +2350,10 @@ public Builder mergeGcsSource(com.google.cloud.discoveryengine.v1beta.GcsSource
*
*
*
- * Required. Cloud Storage location for the input content.
+ * Cloud Storage location for the input content.
*
*
- *
- * .google.cloud.discoveryengine.v1beta.GcsSource gcs_source = 3 [(.google.api.field_behavior) = REQUIRED];
- *
+ * .google.cloud.discoveryengine.v1beta.GcsSource gcs_source = 3;
*/
public Builder clearGcsSource() {
if (gcsSourceBuilder_ == null) {
@@ -2399,12 +2375,10 @@ public Builder clearGcsSource() {
*
*
*
- * Required. Cloud Storage location for the input content.
+ * Cloud Storage location for the input content.
*
*
- *
- * .google.cloud.discoveryengine.v1beta.GcsSource gcs_source = 3 [(.google.api.field_behavior) = REQUIRED];
- *
+ * .google.cloud.discoveryengine.v1beta.GcsSource gcs_source = 3;
*/
public com.google.cloud.discoveryengine.v1beta.GcsSource.Builder getGcsSourceBuilder() {
return getGcsSourceFieldBuilder().getBuilder();
@@ -2413,12 +2387,10 @@ public com.google.cloud.discoveryengine.v1beta.GcsSource.Builder getGcsSourceBui
*
*
*
- * Required. Cloud Storage location for the input content.
+ * Cloud Storage location for the input content.
*
*
- *
- * .google.cloud.discoveryengine.v1beta.GcsSource gcs_source = 3 [(.google.api.field_behavior) = REQUIRED];
- *
+ * .google.cloud.discoveryengine.v1beta.GcsSource gcs_source = 3;
*/
@java.lang.Override
public com.google.cloud.discoveryengine.v1beta.GcsSourceOrBuilder getGcsSourceOrBuilder() {
@@ -2435,12 +2407,10 @@ public com.google.cloud.discoveryengine.v1beta.GcsSourceOrBuilder getGcsSourceOr
*
*
*
- * Required. Cloud Storage location for the input content.
+ * Cloud Storage location for the input content.
*
*
- *
- * .google.cloud.discoveryengine.v1beta.GcsSource gcs_source = 3 [(.google.api.field_behavior) = REQUIRED];
- *
+ * .google.cloud.discoveryengine.v1beta.GcsSource gcs_source = 3;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.discoveryengine.v1beta.GcsSource,
@@ -2475,12 +2445,10 @@ public com.google.cloud.discoveryengine.v1beta.GcsSourceOrBuilder getGcsSourceOr
*
*
*
- * Required. BigQuery input source.
+ * BigQuery input source.
*
*
- *
- * .google.cloud.discoveryengine.v1beta.BigQuerySource bigquery_source = 4 [(.google.api.field_behavior) = REQUIRED];
- *
+ * .google.cloud.discoveryengine.v1beta.BigQuerySource bigquery_source = 4;
*
* @return Whether the bigquerySource field is set.
*/
@@ -2492,12 +2460,10 @@ public boolean hasBigquerySource() {
*
*
*
- * Required. BigQuery input source.
+ * BigQuery input source.
*
*
- *
- * .google.cloud.discoveryengine.v1beta.BigQuerySource bigquery_source = 4 [(.google.api.field_behavior) = REQUIRED];
- *
+ * .google.cloud.discoveryengine.v1beta.BigQuerySource bigquery_source = 4;
*
* @return The bigquerySource.
*/
@@ -2519,12 +2485,10 @@ public com.google.cloud.discoveryengine.v1beta.BigQuerySource getBigquerySource(
*
*
*
- * Required. BigQuery input source.
+ * BigQuery input source.
*
*
- *
- * .google.cloud.discoveryengine.v1beta.BigQuerySource bigquery_source = 4 [(.google.api.field_behavior) = REQUIRED];
- *
+ * .google.cloud.discoveryengine.v1beta.BigQuerySource bigquery_source = 4;
*/
public Builder setBigquerySource(com.google.cloud.discoveryengine.v1beta.BigQuerySource value) {
if (bigquerySourceBuilder_ == null) {
@@ -2543,12 +2507,10 @@ public Builder setBigquerySource(com.google.cloud.discoveryengine.v1beta.BigQuer
*
*
*
- * Required. BigQuery input source.
+ * BigQuery input source.
*
*
- *
- * .google.cloud.discoveryengine.v1beta.BigQuerySource bigquery_source = 4 [(.google.api.field_behavior) = REQUIRED];
- *
+ * .google.cloud.discoveryengine.v1beta.BigQuerySource bigquery_source = 4;
*/
public Builder setBigquerySource(
com.google.cloud.discoveryengine.v1beta.BigQuerySource.Builder builderForValue) {
@@ -2565,12 +2527,10 @@ public Builder setBigquerySource(
*
*
*
- * Required. BigQuery input source.
+ * BigQuery input source.
*
*
- *
- * .google.cloud.discoveryengine.v1beta.BigQuerySource bigquery_source = 4 [(.google.api.field_behavior) = REQUIRED];
- *
+ * .google.cloud.discoveryengine.v1beta.BigQuerySource bigquery_source = 4;
*/
public Builder mergeBigquerySource(
com.google.cloud.discoveryengine.v1beta.BigQuerySource value) {
@@ -2601,12 +2561,10 @@ public Builder mergeBigquerySource(
*
*
*
- * Required. BigQuery input source.
+ * BigQuery input source.
*
*
- *
- * .google.cloud.discoveryengine.v1beta.BigQuerySource bigquery_source = 4 [(.google.api.field_behavior) = REQUIRED];
- *
+ * .google.cloud.discoveryengine.v1beta.BigQuerySource bigquery_source = 4;
*/
public Builder clearBigquerySource() {
if (bigquerySourceBuilder_ == null) {
@@ -2628,12 +2586,10 @@ public Builder clearBigquerySource() {
*
*
*
- * Required. BigQuery input source.
+ * BigQuery input source.
*
*
- *
- * .google.cloud.discoveryengine.v1beta.BigQuerySource bigquery_source = 4 [(.google.api.field_behavior) = REQUIRED];
- *
+ * .google.cloud.discoveryengine.v1beta.BigQuerySource bigquery_source = 4;
*/
public com.google.cloud.discoveryengine.v1beta.BigQuerySource.Builder
getBigquerySourceBuilder() {
@@ -2643,12 +2599,10 @@ public Builder clearBigquerySource() {
*
*
*
- * Required. BigQuery input source.
+ * BigQuery input source.
*
*
- *
- * .google.cloud.discoveryengine.v1beta.BigQuerySource bigquery_source = 4 [(.google.api.field_behavior) = REQUIRED];
- *
+ * .google.cloud.discoveryengine.v1beta.BigQuerySource bigquery_source = 4;
*/
@java.lang.Override
public com.google.cloud.discoveryengine.v1beta.BigQuerySourceOrBuilder
@@ -2666,12 +2620,10 @@ public Builder clearBigquerySource() {
*
*
*
- * Required. BigQuery input source.
+ * BigQuery input source.
*
*
- *
- * .google.cloud.discoveryengine.v1beta.BigQuerySource bigquery_source = 4 [(.google.api.field_behavior) = REQUIRED];
- *
+ * .google.cloud.discoveryengine.v1beta.BigQuerySource bigquery_source = 4;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.discoveryengine.v1beta.BigQuerySource,
diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ImportUserEventsRequestOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ImportUserEventsRequestOrBuilder.java
index 3e4396ae45a3..a12e4fe34256 100644
--- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ImportUserEventsRequestOrBuilder.java
+++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ImportUserEventsRequestOrBuilder.java
@@ -27,11 +27,11 @@ public interface ImportUserEventsRequestOrBuilder
*
*
*
- * Required. The Inline source for the input content for UserEvents.
+ * The Inline source for the input content for UserEvents.
*
*
*
- * .google.cloud.discoveryengine.v1beta.ImportUserEventsRequest.InlineSource inline_source = 2 [(.google.api.field_behavior) = REQUIRED];
+ * .google.cloud.discoveryengine.v1beta.ImportUserEventsRequest.InlineSource inline_source = 2;
*
*
* @return Whether the inlineSource field is set.
@@ -41,11 +41,11 @@ public interface ImportUserEventsRequestOrBuilder
*
*
*
- * Required. The Inline source for the input content for UserEvents.
+ * The Inline source for the input content for UserEvents.
*
*
*
- * .google.cloud.discoveryengine.v1beta.ImportUserEventsRequest.InlineSource inline_source = 2 [(.google.api.field_behavior) = REQUIRED];
+ * .google.cloud.discoveryengine.v1beta.ImportUserEventsRequest.InlineSource inline_source = 2;
*
*
* @return The inlineSource.
@@ -55,11 +55,11 @@ public interface ImportUserEventsRequestOrBuilder
*
*
*
- * Required. The Inline source for the input content for UserEvents.
+ * The Inline source for the input content for UserEvents.
*
*
*
- * .google.cloud.discoveryengine.v1beta.ImportUserEventsRequest.InlineSource inline_source = 2 [(.google.api.field_behavior) = REQUIRED];
+ * .google.cloud.discoveryengine.v1beta.ImportUserEventsRequest.InlineSource inline_source = 2;
*
*/
com.google.cloud.discoveryengine.v1beta.ImportUserEventsRequest.InlineSourceOrBuilder
@@ -69,12 +69,10 @@ public interface ImportUserEventsRequestOrBuilder
*
*
*
- * Required. Cloud Storage location for the input content.
+ * Cloud Storage location for the input content.
*
*
- *
- * .google.cloud.discoveryengine.v1beta.GcsSource gcs_source = 3 [(.google.api.field_behavior) = REQUIRED];
- *
+ * .google.cloud.discoveryengine.v1beta.GcsSource gcs_source = 3;
*
* @return Whether the gcsSource field is set.
*/
@@ -83,12 +81,10 @@ public interface ImportUserEventsRequestOrBuilder
*
*
*
- * Required. Cloud Storage location for the input content.
+ * Cloud Storage location for the input content.
*
*
- *
- * .google.cloud.discoveryengine.v1beta.GcsSource gcs_source = 3 [(.google.api.field_behavior) = REQUIRED];
- *
+ * .google.cloud.discoveryengine.v1beta.GcsSource gcs_source = 3;
*
* @return The gcsSource.
*/
@@ -97,12 +93,10 @@ public interface ImportUserEventsRequestOrBuilder
*
*
*
- * Required. Cloud Storage location for the input content.
+ * Cloud Storage location for the input content.
*
*
- *
- * .google.cloud.discoveryengine.v1beta.GcsSource gcs_source = 3 [(.google.api.field_behavior) = REQUIRED];
- *
+ * .google.cloud.discoveryengine.v1beta.GcsSource gcs_source = 3;
*/
com.google.cloud.discoveryengine.v1beta.GcsSourceOrBuilder getGcsSourceOrBuilder();
@@ -110,12 +104,10 @@ public interface ImportUserEventsRequestOrBuilder
*
*
*
- * Required. BigQuery input source.
+ * BigQuery input source.
*
*
- *
- * .google.cloud.discoveryengine.v1beta.BigQuerySource bigquery_source = 4 [(.google.api.field_behavior) = REQUIRED];
- *
+ * .google.cloud.discoveryengine.v1beta.BigQuerySource bigquery_source = 4;
*
* @return Whether the bigquerySource field is set.
*/
@@ -124,12 +116,10 @@ public interface ImportUserEventsRequestOrBuilder
*
*
*
- * Required. BigQuery input source.
+ * BigQuery input source.
*
*
- *
- * .google.cloud.discoveryengine.v1beta.BigQuerySource bigquery_source = 4 [(.google.api.field_behavior) = REQUIRED];
- *
+ * .google.cloud.discoveryengine.v1beta.BigQuerySource bigquery_source = 4;
*
* @return The bigquerySource.
*/
@@ -138,12 +128,10 @@ public interface ImportUserEventsRequestOrBuilder
*
*
*
- * Required. BigQuery input source.
+ * BigQuery input source.
*
*
- *
- * .google.cloud.discoveryengine.v1beta.BigQuerySource bigquery_source = 4 [(.google.api.field_behavior) = REQUIRED];
- *
+ * .google.cloud.discoveryengine.v1beta.BigQuerySource bigquery_source = 4;
*/
com.google.cloud.discoveryengine.v1beta.BigQuerySourceOrBuilder getBigquerySourceOrBuilder();
diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/SearchRequest.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/SearchRequest.java
index da93f3217491..80b79973db2b 100644
--- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/SearchRequest.java
+++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/SearchRequest.java
@@ -8965,6 +8965,53 @@ public interface ContentSearchSpecOrBuilder
*/
com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpecOrBuilder
getSummarySpecOrBuilder();
+
+ /**
+ *
+ *
+ * + * If there is no extractive_content_spec provided, there will be no + * extractive answer in the search response. + *+ * + *
+ * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ExtractiveContentSpec extractive_content_spec = 3;
+ *
+ *
+ * @return Whether the extractiveContentSpec field is set.
+ */
+ boolean hasExtractiveContentSpec();
+ /**
+ *
+ *
+ * + * If there is no extractive_content_spec provided, there will be no + * extractive answer in the search response. + *+ * + *
+ * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ExtractiveContentSpec extractive_content_spec = 3;
+ *
+ *
+ * @return The extractiveContentSpec.
+ */
+ com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ExtractiveContentSpec
+ getExtractiveContentSpec();
+ /**
+ *
+ *
+ * + * If there is no extractive_content_spec provided, there will be no + * extractive answer in the search response. + *+ * + *
+ * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ExtractiveContentSpec extractive_content_spec = 3;
+ *
+ */
+ com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec
+ .ExtractiveContentSpecOrBuilder
+ getExtractiveContentSpecOrBuilder();
}
/**
*
@@ -9020,6 +9067,10 @@ public interface SnippetSpecOrBuilder
*
*
* Max number of snippets returned in each search result.
+ *
+ * A snippet is an infomartive summary of a content with highlighting for
+ * UI rendering.
+ *
* If the matching snippets is less than the max_snippet_count, return all
* of the snippets; otherwise, return the max_snippet_count.
*
@@ -9097,6 +9148,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
*
*
* Max number of snippets returned in each search result.
+ *
+ * A snippet is an infomartive summary of a content with highlighting for
+ * UI rendering.
+ *
* If the matching snippets is less than the max_snippet_count, return all
* of the snippets; otherwise, return the max_snippet_count.
*
@@ -9549,6 +9604,10 @@ public Builder mergeFrom(
*
*
* Max number of snippets returned in each search result.
+ *
+ * A snippet is an infomartive summary of a content with highlighting for
+ * UI rendering.
+ *
* If the matching snippets is less than the max_snippet_count, return all
* of the snippets; otherwise, return the max_snippet_count.
*
@@ -9568,6 +9627,10 @@ public int getMaxSnippetCount() {
*
*
* Max number of snippets returned in each search result.
+ *
+ * A snippet is an infomartive summary of a content with highlighting for
+ * UI rendering.
+ *
* If the matching snippets is less than the max_snippet_count, return all
* of the snippets; otherwise, return the max_snippet_count.
*
@@ -9591,6 +9654,10 @@ public Builder setMaxSnippetCount(int value) {
*
*
* Max number of snippets returned in each search result.
+ *
+ * A snippet is an infomartive summary of a content with highlighting for
+ * UI rendering.
+ *
* If the matching snippets is less than the max_snippet_count, return all
* of the snippets; otherwise, return the max_snippet_count.
*
@@ -10353,201 +10420,1102 @@ public com.google.protobuf.Parser getParserForType() {
}
}
- public static final int SNIPPET_SPEC_FIELD_NUMBER = 1;
- private com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SnippetSpec
- snippetSpec_;
- /**
- *
- *
- *
- * If there is no snippet spec provided, there will be no snippet in the
- * search result.
- *
- *
- *
- * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SnippetSpec snippet_spec = 1;
- *
- *
- * @return Whether the snippetSpec field is set.
- */
- @java.lang.Override
- public boolean hasSnippetSpec() {
- return snippetSpec_ != null;
- }
- /**
- *
- *
- *
- * If there is no snippet spec provided, there will be no snippet in the
- * search result.
- *
- *
- *
- * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SnippetSpec snippet_spec = 1;
- *
- *
- * @return The snippetSpec.
- */
- @java.lang.Override
- public com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SnippetSpec
- getSnippetSpec() {
- return snippetSpec_ == null
- ? com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SnippetSpec
- .getDefaultInstance()
- : snippetSpec_;
- }
- /**
- *
- *
- *
- * If there is no snippet spec provided, there will be no snippet in the
- * search result.
- *
- *
- *
- * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SnippetSpec snippet_spec = 1;
- *
- */
- @java.lang.Override
- public com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec
- .SnippetSpecOrBuilder
- getSnippetSpecOrBuilder() {
- return snippetSpec_ == null
- ? com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SnippetSpec
- .getDefaultInstance()
- : snippetSpec_;
- }
+ public interface ExtractiveContentSpecOrBuilder
+ extends
+ // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ExtractiveContentSpec)
+ com.google.protobuf.MessageOrBuilder {
- public static final int SUMMARY_SPEC_FIELD_NUMBER = 2;
- private com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec
- summarySpec_;
- /**
- *
- *
- *
- * If there is no summary spec provided, there will be no summary in the
- * search response.
- *
- *
- *
- * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec summary_spec = 2;
- *
- *
- * @return Whether the summarySpec field is set.
- */
- @java.lang.Override
- public boolean hasSummarySpec() {
- return summarySpec_ != null;
- }
- /**
- *
- *
- *
- * If there is no summary spec provided, there will be no summary in the
- * search response.
- *
- *
- *
- * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec summary_spec = 2;
- *
- *
- * @return The summarySpec.
- */
- @java.lang.Override
- public com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec
- getSummarySpec() {
- return summarySpec_ == null
- ? com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec
- .getDefaultInstance()
- : summarySpec_;
+ /**
+ *
+ *
+ *
+ * The max number of extractive answers returned in each search result.
+ *
+ * An extractive answer is a verbatim answer extracted from the original
+ * document, which provides precise and contextually relevant answer to
+ * the search query.
+ *
+ * If the number of matching answers is less than the
+ * extractive_answer_count, return all of the answers; otherwise, return
+ * the extractive_answer_count.
+ *
+ * At most 5 answers will be returned for each SearchResult.
+ *
+ *
+ * int32 max_extractive_answer_count = 1;
+ *
+ * @return The maxExtractiveAnswerCount.
+ */
+ int getMaxExtractiveAnswerCount();
+
+ /**
+ *
+ *
+ *
+ * The max number of extractive segments returned in each search result.
+ *
+ * An extractive segment is a text segment extracted from the original
+ * document which is relevant to the search query and in general more
+ * verbose than an extrative answer. The segment could then be used as
+ * input for LLMs to generate summaries and answers.
+ *
+ * If the number of matching segments is less than the
+ * max_extractive_segment_count, return all of the segments; otherwise,
+ * return the max_extractive_segment_count.
+ *
+ * Currently one segment will be returned for each SearchResult.
+ *
+ *
+ * int32 max_extractive_segment_count = 2;
+ *
+ * @return The maxExtractiveSegmentCount.
+ */
+ int getMaxExtractiveSegmentCount();
}
/**
*
*
*
- * If there is no summary spec provided, there will be no summary in the
- * search response.
+ * The specification that configs the extractive content in search results.
*
*
- *
- * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec summary_spec = 2;
- *
+ * Protobuf type {@code
+ * google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ExtractiveContentSpec}
*/
- @java.lang.Override
- public com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec
- .SummarySpecOrBuilder
- getSummarySpecOrBuilder() {
- return summarySpec_ == null
- ? com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec
- .getDefaultInstance()
- : summarySpec_;
- }
-
- private byte memoizedIsInitialized = -1;
-
- @java.lang.Override
- public final boolean isInitialized() {
- byte isInitialized = memoizedIsInitialized;
- if (isInitialized == 1) return true;
- if (isInitialized == 0) return false;
-
- memoizedIsInitialized = 1;
- return true;
- }
-
- @java.lang.Override
- public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
- if (snippetSpec_ != null) {
- output.writeMessage(1, getSnippetSpec());
- }
- if (summarySpec_ != null) {
- output.writeMessage(2, getSummarySpec());
+ public static final class ExtractiveContentSpec extends com.google.protobuf.GeneratedMessageV3
+ implements
+ // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ExtractiveContentSpec)
+ ExtractiveContentSpecOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use ExtractiveContentSpec.newBuilder() to construct.
+ private ExtractiveContentSpec(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
}
- getUnknownFields().writeTo(output);
- }
- @java.lang.Override
- public int getSerializedSize() {
- int size = memoizedSize;
- if (size != -1) return size;
+ private ExtractiveContentSpec() {}
- size = 0;
- if (snippetSpec_ != null) {
- size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getSnippetSpec());
- }
- if (summarySpec_ != null) {
- size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getSummarySpec());
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+ return new ExtractiveContentSpec();
}
- size += getUnknownFields().getSerializedSize();
- memoizedSize = size;
- return size;
- }
- @java.lang.Override
- public boolean equals(final java.lang.Object obj) {
- if (obj == this) {
- return true;
- }
- if (!(obj
- instanceof com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec)) {
- return super.equals(obj);
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.cloud.discoveryengine.v1beta.SearchServiceProto
+ .internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_ContentSearchSpec_ExtractiveContentSpec_descriptor;
}
- com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec other =
- (com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec) obj;
- if (hasSnippetSpec() != other.hasSnippetSpec()) return false;
- if (hasSnippetSpec()) {
- if (!getSnippetSpec().equals(other.getSnippetSpec())) return false;
- }
- if (hasSummarySpec() != other.hasSummarySpec()) return false;
- if (hasSummarySpec()) {
- if (!getSummarySpec().equals(other.getSummarySpec())) return false;
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.cloud.discoveryengine.v1beta.SearchServiceProto
+ .internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_ContentSearchSpec_ExtractiveContentSpec_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec
+ .ExtractiveContentSpec.class,
+ com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec
+ .ExtractiveContentSpec.Builder.class);
}
- if (!getUnknownFields().equals(other.getUnknownFields())) return false;
- return true;
- }
- @java.lang.Override
+ public static final int MAX_EXTRACTIVE_ANSWER_COUNT_FIELD_NUMBER = 1;
+ private int maxExtractiveAnswerCount_ = 0;
+ /**
+ *
+ *
+ *
+ * The max number of extractive answers returned in each search result.
+ *
+ * An extractive answer is a verbatim answer extracted from the original
+ * document, which provides precise and contextually relevant answer to
+ * the search query.
+ *
+ * If the number of matching answers is less than the
+ * extractive_answer_count, return all of the answers; otherwise, return
+ * the extractive_answer_count.
+ *
+ * At most 5 answers will be returned for each SearchResult.
+ *
+ *
+ * int32 max_extractive_answer_count = 1;
+ *
+ * @return The maxExtractiveAnswerCount.
+ */
+ @java.lang.Override
+ public int getMaxExtractiveAnswerCount() {
+ return maxExtractiveAnswerCount_;
+ }
+
+ public static final int MAX_EXTRACTIVE_SEGMENT_COUNT_FIELD_NUMBER = 2;
+ private int maxExtractiveSegmentCount_ = 0;
+ /**
+ *
+ *
+ *
+ * The max number of extractive segments returned in each search result.
+ *
+ * An extractive segment is a text segment extracted from the original
+ * document which is relevant to the search query and in general more
+ * verbose than an extrative answer. The segment could then be used as
+ * input for LLMs to generate summaries and answers.
+ *
+ * If the number of matching segments is less than the
+ * max_extractive_segment_count, return all of the segments; otherwise,
+ * return the max_extractive_segment_count.
+ *
+ * Currently one segment will be returned for each SearchResult.
+ *
+ *
+ * int32 max_extractive_segment_count = 2;
+ *
+ * @return The maxExtractiveSegmentCount.
+ */
+ @java.lang.Override
+ public int getMaxExtractiveSegmentCount() {
+ return maxExtractiveSegmentCount_;
+ }
+
+ private byte memoizedIsInitialized = -1;
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+ if (maxExtractiveAnswerCount_ != 0) {
+ output.writeInt32(1, maxExtractiveAnswerCount_);
+ }
+ if (maxExtractiveSegmentCount_ != 0) {
+ output.writeInt32(2, maxExtractiveSegmentCount_);
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (maxExtractiveAnswerCount_ != 0) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeInt32Size(1, maxExtractiveAnswerCount_);
+ }
+ if (maxExtractiveSegmentCount_ != 0) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeInt32Size(2, maxExtractiveSegmentCount_);
+ }
+ size += getUnknownFields().getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj
+ instanceof
+ com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec
+ .ExtractiveContentSpec)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec
+ .ExtractiveContentSpec
+ other =
+ (com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec
+ .ExtractiveContentSpec)
+ obj;
+
+ if (getMaxExtractiveAnswerCount() != other.getMaxExtractiveAnswerCount()) return false;
+ if (getMaxExtractiveSegmentCount() != other.getMaxExtractiveSegmentCount()) return false;
+ if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + MAX_EXTRACTIVE_ANSWER_COUNT_FIELD_NUMBER;
+ hash = (53 * hash) + getMaxExtractiveAnswerCount();
+ hash = (37 * hash) + MAX_EXTRACTIVE_SEGMENT_COUNT_FIELD_NUMBER;
+ hash = (53 * hash) + getMaxExtractiveSegmentCount();
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec
+ .ExtractiveContentSpec
+ parseFrom(java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec
+ .ExtractiveContentSpec
+ parseFrom(
+ java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec
+ .ExtractiveContentSpec
+ parseFrom(com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec
+ .ExtractiveContentSpec
+ parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec
+ .ExtractiveContentSpec
+ parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec
+ .ExtractiveContentSpec
+ parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec
+ .ExtractiveContentSpec
+ parseFrom(java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec
+ .ExtractiveContentSpec
+ parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec
+ .ExtractiveContentSpec
+ parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec
+ .ExtractiveContentSpec
+ parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec
+ .ExtractiveContentSpec
+ parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec
+ .ExtractiveContentSpec
+ parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() {
+ return newBuilder();
+ }
+
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+
+ public static Builder newBuilder(
+ com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec
+ .ExtractiveContentSpec
+ prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ *
+ *
+ *
+ * The specification that configs the extractive content in search results.
+ *
+ *
+ * Protobuf type {@code
+ * google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ExtractiveContentSpec}
+ */
+ public static final class Builder
+ extends com.google.protobuf.GeneratedMessageV3.Builder
+ implements
+ // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ExtractiveContentSpec)
+ com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec
+ .ExtractiveContentSpecOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.cloud.discoveryengine.v1beta.SearchServiceProto
+ .internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_ContentSearchSpec_ExtractiveContentSpec_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.cloud.discoveryengine.v1beta.SearchServiceProto
+ .internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_ContentSearchSpec_ExtractiveContentSpec_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec
+ .ExtractiveContentSpec.class,
+ com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec
+ .ExtractiveContentSpec.Builder.class);
+ }
+
+ // Construct using
+ // com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ExtractiveContentSpec.newBuilder()
+ private Builder() {}
+
+ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ super(parent);
+ }
+
+ @java.lang.Override
+ public Builder clear() {
+ super.clear();
+ bitField0_ = 0;
+ maxExtractiveAnswerCount_ = 0;
+ maxExtractiveSegmentCount_ = 0;
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+ return com.google.cloud.discoveryengine.v1beta.SearchServiceProto
+ .internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_ContentSearchSpec_ExtractiveContentSpec_descriptor;
+ }
+
+ @java.lang.Override
+ public com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec
+ .ExtractiveContentSpec
+ getDefaultInstanceForType() {
+ return com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec
+ .ExtractiveContentSpec.getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec
+ .ExtractiveContentSpec
+ build() {
+ com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec
+ .ExtractiveContentSpec
+ result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec
+ .ExtractiveContentSpec
+ buildPartial() {
+ com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec
+ .ExtractiveContentSpec
+ result =
+ new com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec
+ .ExtractiveContentSpec(this);
+ if (bitField0_ != 0) {
+ buildPartial0(result);
+ }
+ onBuilt();
+ return result;
+ }
+
+ private void buildPartial0(
+ com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec
+ .ExtractiveContentSpec
+ result) {
+ int from_bitField0_ = bitField0_;
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ result.maxExtractiveAnswerCount_ = maxExtractiveAnswerCount_;
+ }
+ if (((from_bitField0_ & 0x00000002) != 0)) {
+ result.maxExtractiveSegmentCount_ = maxExtractiveSegmentCount_;
+ }
+ }
+
+ @java.lang.Override
+ public Builder clone() {
+ return super.clone();
+ }
+
+ @java.lang.Override
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+ return super.setField(field, value);
+ }
+
+ @java.lang.Override
+ public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return super.clearField(field);
+ }
+
+ @java.lang.Override
+ public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return super.clearOneof(oneof);
+ }
+
+ @java.lang.Override
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index,
+ java.lang.Object value) {
+ return super.setRepeatedField(field, index, value);
+ }
+
+ @java.lang.Override
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+ return super.addRepeatedField(field, value);
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other
+ instanceof
+ com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec
+ .ExtractiveContentSpec) {
+ return mergeFrom(
+ (com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec
+ .ExtractiveContentSpec)
+ other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(
+ com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec
+ .ExtractiveContentSpec
+ other) {
+ if (other
+ == com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec
+ .ExtractiveContentSpec.getDefaultInstance()) return this;
+ if (other.getMaxExtractiveAnswerCount() != 0) {
+ setMaxExtractiveAnswerCount(other.getMaxExtractiveAnswerCount());
+ }
+ if (other.getMaxExtractiveSegmentCount() != 0) {
+ setMaxExtractiveSegmentCount(other.getMaxExtractiveSegmentCount());
+ }
+ this.mergeUnknownFields(other.getUnknownFields());
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ return true;
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 8:
+ {
+ maxExtractiveAnswerCount_ = input.readInt32();
+ bitField0_ |= 0x00000001;
+ break;
+ } // case 8
+ case 16:
+ {
+ maxExtractiveSegmentCount_ = input.readInt32();
+ bitField0_ |= 0x00000002;
+ break;
+ } // case 16
+ default:
+ {
+ if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+ done = true; // was an endgroup tag
+ }
+ break;
+ } // default:
+ } // switch (tag)
+ } // while (!done)
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.unwrapIOException();
+ } finally {
+ onChanged();
+ } // finally
+ return this;
+ }
+
+ private int bitField0_;
+
+ private int maxExtractiveAnswerCount_;
+ /**
+ *
+ *
+ *
+ * The max number of extractive answers returned in each search result.
+ *
+ * An extractive answer is a verbatim answer extracted from the original
+ * document, which provides precise and contextually relevant answer to
+ * the search query.
+ *
+ * If the number of matching answers is less than the
+ * extractive_answer_count, return all of the answers; otherwise, return
+ * the extractive_answer_count.
+ *
+ * At most 5 answers will be returned for each SearchResult.
+ *
+ *
+ * int32 max_extractive_answer_count = 1;
+ *
+ * @return The maxExtractiveAnswerCount.
+ */
+ @java.lang.Override
+ public int getMaxExtractiveAnswerCount() {
+ return maxExtractiveAnswerCount_;
+ }
+ /**
+ *
+ *
+ *
+ * The max number of extractive answers returned in each search result.
+ *
+ * An extractive answer is a verbatim answer extracted from the original
+ * document, which provides precise and contextually relevant answer to
+ * the search query.
+ *
+ * If the number of matching answers is less than the
+ * extractive_answer_count, return all of the answers; otherwise, return
+ * the extractive_answer_count.
+ *
+ * At most 5 answers will be returned for each SearchResult.
+ *
+ *
+ * int32 max_extractive_answer_count = 1;
+ *
+ * @param value The maxExtractiveAnswerCount to set.
+ * @return This builder for chaining.
+ */
+ public Builder setMaxExtractiveAnswerCount(int value) {
+
+ maxExtractiveAnswerCount_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The max number of extractive answers returned in each search result.
+ *
+ * An extractive answer is a verbatim answer extracted from the original
+ * document, which provides precise and contextually relevant answer to
+ * the search query.
+ *
+ * If the number of matching answers is less than the
+ * extractive_answer_count, return all of the answers; otherwise, return
+ * the extractive_answer_count.
+ *
+ * At most 5 answers will be returned for each SearchResult.
+ *
+ *
+ * int32 max_extractive_answer_count = 1;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearMaxExtractiveAnswerCount() {
+ bitField0_ = (bitField0_ & ~0x00000001);
+ maxExtractiveAnswerCount_ = 0;
+ onChanged();
+ return this;
+ }
+
+ private int maxExtractiveSegmentCount_;
+ /**
+ *
+ *
+ *
+ * The max number of extractive segments returned in each search result.
+ *
+ * An extractive segment is a text segment extracted from the original
+ * document which is relevant to the search query and in general more
+ * verbose than an extrative answer. The segment could then be used as
+ * input for LLMs to generate summaries and answers.
+ *
+ * If the number of matching segments is less than the
+ * max_extractive_segment_count, return all of the segments; otherwise,
+ * return the max_extractive_segment_count.
+ *
+ * Currently one segment will be returned for each SearchResult.
+ *
+ *
+ * int32 max_extractive_segment_count = 2;
+ *
+ * @return The maxExtractiveSegmentCount.
+ */
+ @java.lang.Override
+ public int getMaxExtractiveSegmentCount() {
+ return maxExtractiveSegmentCount_;
+ }
+ /**
+ *
+ *
+ *
+ * The max number of extractive segments returned in each search result.
+ *
+ * An extractive segment is a text segment extracted from the original
+ * document which is relevant to the search query and in general more
+ * verbose than an extrative answer. The segment could then be used as
+ * input for LLMs to generate summaries and answers.
+ *
+ * If the number of matching segments is less than the
+ * max_extractive_segment_count, return all of the segments; otherwise,
+ * return the max_extractive_segment_count.
+ *
+ * Currently one segment will be returned for each SearchResult.
+ *
+ *
+ * int32 max_extractive_segment_count = 2;
+ *
+ * @param value The maxExtractiveSegmentCount to set.
+ * @return This builder for chaining.
+ */
+ public Builder setMaxExtractiveSegmentCount(int value) {
+
+ maxExtractiveSegmentCount_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The max number of extractive segments returned in each search result.
+ *
+ * An extractive segment is a text segment extracted from the original
+ * document which is relevant to the search query and in general more
+ * verbose than an extrative answer. The segment could then be used as
+ * input for LLMs to generate summaries and answers.
+ *
+ * If the number of matching segments is less than the
+ * max_extractive_segment_count, return all of the segments; otherwise,
+ * return the max_extractive_segment_count.
+ *
+ * Currently one segment will be returned for each SearchResult.
+ *
+ *
+ * int32 max_extractive_segment_count = 2;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearMaxExtractiveSegmentCount() {
+ bitField0_ = (bitField0_ & ~0x00000002);
+ maxExtractiveSegmentCount_ = 0;
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ExtractiveContentSpec)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ExtractiveContentSpec)
+ private static final com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec
+ .ExtractiveContentSpec
+ DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE =
+ new com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec
+ .ExtractiveContentSpec();
+ }
+
+ public static com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec
+ .ExtractiveContentSpec
+ getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser PARSER =
+ new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
+ public ExtractiveContentSpec parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ Builder builder = newBuilder();
+ try {
+ builder.mergeFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(builder.buildPartial());
+ } catch (com.google.protobuf.UninitializedMessageException e) {
+ throw e.asInvalidProtocolBufferException()
+ .setUnfinishedMessage(builder.buildPartial());
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(e)
+ .setUnfinishedMessage(builder.buildPartial());
+ }
+ return builder.buildPartial();
+ }
+ };
+
+ public static com.google.protobuf.Parser parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec
+ .ExtractiveContentSpec
+ getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+ }
+
+ public static final int SNIPPET_SPEC_FIELD_NUMBER = 1;
+ private com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SnippetSpec
+ snippetSpec_;
+ /**
+ *
+ *
+ *
+ * If there is no snippet spec provided, there will be no snippet in the
+ * search result.
+ *
+ *
+ *
+ * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SnippetSpec snippet_spec = 1;
+ *
+ *
+ * @return Whether the snippetSpec field is set.
+ */
+ @java.lang.Override
+ public boolean hasSnippetSpec() {
+ return snippetSpec_ != null;
+ }
+ /**
+ *
+ *
+ *
+ * If there is no snippet spec provided, there will be no snippet in the
+ * search result.
+ *
+ *
+ *
+ * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SnippetSpec snippet_spec = 1;
+ *
+ *
+ * @return The snippetSpec.
+ */
+ @java.lang.Override
+ public com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SnippetSpec
+ getSnippetSpec() {
+ return snippetSpec_ == null
+ ? com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SnippetSpec
+ .getDefaultInstance()
+ : snippetSpec_;
+ }
+ /**
+ *
+ *
+ *
+ * If there is no snippet spec provided, there will be no snippet in the
+ * search result.
+ *
+ *
+ *
+ * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SnippetSpec snippet_spec = 1;
+ *
+ */
+ @java.lang.Override
+ public com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec
+ .SnippetSpecOrBuilder
+ getSnippetSpecOrBuilder() {
+ return snippetSpec_ == null
+ ? com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SnippetSpec
+ .getDefaultInstance()
+ : snippetSpec_;
+ }
+
+ public static final int SUMMARY_SPEC_FIELD_NUMBER = 2;
+ private com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec
+ summarySpec_;
+ /**
+ *
+ *
+ *
+ * If there is no summary spec provided, there will be no summary in the
+ * search response.
+ *
+ *
+ *
+ * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec summary_spec = 2;
+ *
+ *
+ * @return Whether the summarySpec field is set.
+ */
+ @java.lang.Override
+ public boolean hasSummarySpec() {
+ return summarySpec_ != null;
+ }
+ /**
+ *
+ *
+ *
+ * If there is no summary spec provided, there will be no summary in the
+ * search response.
+ *
+ *
+ *
+ * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec summary_spec = 2;
+ *
+ *
+ * @return The summarySpec.
+ */
+ @java.lang.Override
+ public com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec
+ getSummarySpec() {
+ return summarySpec_ == null
+ ? com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec
+ .getDefaultInstance()
+ : summarySpec_;
+ }
+ /**
+ *
+ *
+ *
+ * If there is no summary spec provided, there will be no summary in the
+ * search response.
+ *
+ *
+ *
+ * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec summary_spec = 2;
+ *
+ */
+ @java.lang.Override
+ public com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec
+ .SummarySpecOrBuilder
+ getSummarySpecOrBuilder() {
+ return summarySpec_ == null
+ ? com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec
+ .getDefaultInstance()
+ : summarySpec_;
+ }
+
+ public static final int EXTRACTIVE_CONTENT_SPEC_FIELD_NUMBER = 3;
+ private com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec
+ .ExtractiveContentSpec
+ extractiveContentSpec_;
+ /**
+ *
+ *
+ *
+ * If there is no extractive_content_spec provided, there will be no
+ * extractive answer in the search response.
+ *
+ *
+ *
+ * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ExtractiveContentSpec extractive_content_spec = 3;
+ *
+ *
+ * @return Whether the extractiveContentSpec field is set.
+ */
+ @java.lang.Override
+ public boolean hasExtractiveContentSpec() {
+ return extractiveContentSpec_ != null;
+ }
+ /**
+ *
+ *
+ *
+ * If there is no extractive_content_spec provided, there will be no
+ * extractive answer in the search response.
+ *
+ *
+ *
+ * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ExtractiveContentSpec extractive_content_spec = 3;
+ *
+ *
+ * @return The extractiveContentSpec.
+ */
+ @java.lang.Override
+ public com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec
+ .ExtractiveContentSpec
+ getExtractiveContentSpec() {
+ return extractiveContentSpec_ == null
+ ? com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec
+ .ExtractiveContentSpec.getDefaultInstance()
+ : extractiveContentSpec_;
+ }
+ /**
+ *
+ *
+ *
+ * If there is no extractive_content_spec provided, there will be no
+ * extractive answer in the search response.
+ *
+ *
+ *
+ * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ExtractiveContentSpec extractive_content_spec = 3;
+ *
+ */
+ @java.lang.Override
+ public com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec
+ .ExtractiveContentSpecOrBuilder
+ getExtractiveContentSpecOrBuilder() {
+ return extractiveContentSpec_ == null
+ ? com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec
+ .ExtractiveContentSpec.getDefaultInstance()
+ : extractiveContentSpec_;
+ }
+
+ private byte memoizedIsInitialized = -1;
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+ if (snippetSpec_ != null) {
+ output.writeMessage(1, getSnippetSpec());
+ }
+ if (summarySpec_ != null) {
+ output.writeMessage(2, getSummarySpec());
+ }
+ if (extractiveContentSpec_ != null) {
+ output.writeMessage(3, getExtractiveContentSpec());
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (snippetSpec_ != null) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getSnippetSpec());
+ }
+ if (summarySpec_ != null) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getSummarySpec());
+ }
+ if (extractiveContentSpec_ != null) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeMessageSize(3, getExtractiveContentSpec());
+ }
+ size += getUnknownFields().getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj
+ instanceof com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec other =
+ (com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec) obj;
+
+ if (hasSnippetSpec() != other.hasSnippetSpec()) return false;
+ if (hasSnippetSpec()) {
+ if (!getSnippetSpec().equals(other.getSnippetSpec())) return false;
+ }
+ if (hasSummarySpec() != other.hasSummarySpec()) return false;
+ if (hasSummarySpec()) {
+ if (!getSummarySpec().equals(other.getSummarySpec())) return false;
+ }
+ if (hasExtractiveContentSpec() != other.hasExtractiveContentSpec()) return false;
+ if (hasExtractiveContentSpec()) {
+ if (!getExtractiveContentSpec().equals(other.getExtractiveContentSpec())) return false;
+ }
+ if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ return true;
+ }
+
+ @java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
@@ -10562,6 +11530,10 @@ public int hashCode() {
hash = (37 * hash) + SUMMARY_SPEC_FIELD_NUMBER;
hash = (53 * hash) + getSummarySpec().hashCode();
}
+ if (hasExtractiveContentSpec()) {
+ hash = (37 * hash) + EXTRACTIVE_CONTENT_SPEC_FIELD_NUMBER;
+ hash = (53 * hash) + getExtractiveContentSpec().hashCode();
+ }
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
@@ -10718,6 +11690,11 @@ public Builder clear() {
summarySpecBuilder_.dispose();
summarySpecBuilder_ = null;
}
+ extractiveContentSpec_ = null;
+ if (extractiveContentSpecBuilder_ != null) {
+ extractiveContentSpecBuilder_.dispose();
+ extractiveContentSpecBuilder_ = null;
+ }
return this;
}
@@ -10767,6 +11744,12 @@ private void buildPartial0(
result.summarySpec_ =
summarySpecBuilder_ == null ? summarySpec_ : summarySpecBuilder_.build();
}
+ if (((from_bitField0_ & 0x00000004) != 0)) {
+ result.extractiveContentSpec_ =
+ extractiveContentSpecBuilder_ == null
+ ? extractiveContentSpec_
+ : extractiveContentSpecBuilder_.build();
+ }
}
@java.lang.Override
@@ -10827,6 +11810,9 @@ public Builder mergeFrom(
if (other.hasSummarySpec()) {
mergeSummarySpec(other.getSummarySpec());
}
+ if (other.hasExtractiveContentSpec()) {
+ mergeExtractiveContentSpec(other.getExtractiveContentSpec());
+ }
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
@@ -10865,6 +11851,13 @@ public Builder mergeFrom(
bitField0_ |= 0x00000002;
break;
} // case 18
+ case 26:
+ {
+ input.readMessage(
+ getExtractiveContentSpecFieldBuilder().getBuilder(), extensionRegistry);
+ bitField0_ |= 0x00000004;
+ break;
+ } // case 26
default:
{
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
@@ -11350,6 +12343,246 @@ public Builder clearSummarySpec() {
return summarySpecBuilder_;
}
+ private com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec
+ .ExtractiveContentSpec
+ extractiveContentSpec_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec
+ .ExtractiveContentSpec,
+ com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec
+ .ExtractiveContentSpec.Builder,
+ com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec
+ .ExtractiveContentSpecOrBuilder>
+ extractiveContentSpecBuilder_;
+ /**
+ *
+ *
+ *
+ * If there is no extractive_content_spec provided, there will be no
+ * extractive answer in the search response.
+ *
+ *
+ *
+ * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ExtractiveContentSpec extractive_content_spec = 3;
+ *
+ *
+ * @return Whether the extractiveContentSpec field is set.
+ */
+ public boolean hasExtractiveContentSpec() {
+ return ((bitField0_ & 0x00000004) != 0);
+ }
+ /**
+ *
+ *
+ *
+ * If there is no extractive_content_spec provided, there will be no
+ * extractive answer in the search response.
+ *
+ *
+ *
+ * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ExtractiveContentSpec extractive_content_spec = 3;
+ *
+ *
+ * @return The extractiveContentSpec.
+ */
+ public com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec
+ .ExtractiveContentSpec
+ getExtractiveContentSpec() {
+ if (extractiveContentSpecBuilder_ == null) {
+ return extractiveContentSpec_ == null
+ ? com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec
+ .ExtractiveContentSpec.getDefaultInstance()
+ : extractiveContentSpec_;
+ } else {
+ return extractiveContentSpecBuilder_.getMessage();
+ }
+ }
+ /**
+ *
+ *
+ *
+ * If there is no extractive_content_spec provided, there will be no
+ * extractive answer in the search response.
+ *
+ *
+ *
+ * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ExtractiveContentSpec extractive_content_spec = 3;
+ *
+ */
+ public Builder setExtractiveContentSpec(
+ com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec
+ .ExtractiveContentSpec
+ value) {
+ if (extractiveContentSpecBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ extractiveContentSpec_ = value;
+ } else {
+ extractiveContentSpecBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * If there is no extractive_content_spec provided, there will be no
+ * extractive answer in the search response.
+ *
+ *
+ *
+ * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ExtractiveContentSpec extractive_content_spec = 3;
+ *
+ */
+ public Builder setExtractiveContentSpec(
+ com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec
+ .ExtractiveContentSpec.Builder
+ builderForValue) {
+ if (extractiveContentSpecBuilder_ == null) {
+ extractiveContentSpec_ = builderForValue.build();
+ } else {
+ extractiveContentSpecBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * If there is no extractive_content_spec provided, there will be no
+ * extractive answer in the search response.
+ *
+ *
+ *
+ * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ExtractiveContentSpec extractive_content_spec = 3;
+ *
+ */
+ public Builder mergeExtractiveContentSpec(
+ com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec
+ .ExtractiveContentSpec
+ value) {
+ if (extractiveContentSpecBuilder_ == null) {
+ if (((bitField0_ & 0x00000004) != 0)
+ && extractiveContentSpec_ != null
+ && extractiveContentSpec_
+ != com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec
+ .ExtractiveContentSpec.getDefaultInstance()) {
+ getExtractiveContentSpecBuilder().mergeFrom(value);
+ } else {
+ extractiveContentSpec_ = value;
+ }
+ } else {
+ extractiveContentSpecBuilder_.mergeFrom(value);
+ }
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * If there is no extractive_content_spec provided, there will be no
+ * extractive answer in the search response.
+ *
+ *
+ *
+ * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ExtractiveContentSpec extractive_content_spec = 3;
+ *
+ */
+ public Builder clearExtractiveContentSpec() {
+ bitField0_ = (bitField0_ & ~0x00000004);
+ extractiveContentSpec_ = null;
+ if (extractiveContentSpecBuilder_ != null) {
+ extractiveContentSpecBuilder_.dispose();
+ extractiveContentSpecBuilder_ = null;
+ }
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * If there is no extractive_content_spec provided, there will be no
+ * extractive answer in the search response.
+ *
+ *
+ *
+ * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ExtractiveContentSpec extractive_content_spec = 3;
+ *
+ */
+ public com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec
+ .ExtractiveContentSpec.Builder
+ getExtractiveContentSpecBuilder() {
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return getExtractiveContentSpecFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ *
+ * If there is no extractive_content_spec provided, there will be no
+ * extractive answer in the search response.
+ *
+ *
+ *
+ * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ExtractiveContentSpec extractive_content_spec = 3;
+ *
+ */
+ public com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec
+ .ExtractiveContentSpecOrBuilder
+ getExtractiveContentSpecOrBuilder() {
+ if (extractiveContentSpecBuilder_ != null) {
+ return extractiveContentSpecBuilder_.getMessageOrBuilder();
+ } else {
+ return extractiveContentSpec_ == null
+ ? com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec
+ .ExtractiveContentSpec.getDefaultInstance()
+ : extractiveContentSpec_;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * If there is no extractive_content_spec provided, there will be no
+ * extractive answer in the search response.
+ *
+ *
+ *
+ * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ExtractiveContentSpec extractive_content_spec = 3;
+ *
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec
+ .ExtractiveContentSpec,
+ com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec
+ .ExtractiveContentSpec.Builder,
+ com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec
+ .ExtractiveContentSpecOrBuilder>
+ getExtractiveContentSpecFieldBuilder() {
+ if (extractiveContentSpecBuilder_ == null) {
+ extractiveContentSpecBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec
+ .ExtractiveContentSpec,
+ com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec
+ .ExtractiveContentSpec.Builder,
+ com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec
+ .ExtractiveContentSpecOrBuilder>(
+ getExtractiveContentSpec(), getParentForChildren(), isClean());
+ extractiveContentSpec_ = null;
+ }
+ return extractiveContentSpecBuilder_;
+ }
+
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/SearchResponse.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/SearchResponse.java
index e1374c2f9dd7..05c42cc1060d 100644
--- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/SearchResponse.java
+++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/SearchResponse.java
@@ -43,6 +43,7 @@ private SearchResponse() {
results_ = java.util.Collections.emptyList();
facets_ = java.util.Collections.emptyList();
attributionToken_ = "";
+ redirectUri_ = "";
nextPageToken_ = "";
correctedQuery_ = "";
appliedControls_ = com.google.protobuf.LazyStringArrayList.emptyList();
@@ -6750,6 +6751,67 @@ public com.google.protobuf.ByteString getAttributionTokenBytes() {
}
}
+ public static final int REDIRECT_URI_FIELD_NUMBER = 12;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object redirectUri_ = "";
+ /**
+ *
+ *
+ *
+ * The URI of a customer-defined redirect page. If redirect action is
+ * triggered, no search is performed, and only
+ * [redirect_uri][google.cloud.discoveryengine.v1beta.SearchResponse.redirect_uri]
+ * and
+ * [attribution_token][google.cloud.discoveryengine.v1beta.SearchResponse.attribution_token]
+ * are set in the response.
+ *
+ *
+ * string redirect_uri = 12;
+ *
+ * @return The redirectUri.
+ */
+ @java.lang.Override
+ public java.lang.String getRedirectUri() {
+ java.lang.Object ref = redirectUri_;
+ 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();
+ redirectUri_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * The URI of a customer-defined redirect page. If redirect action is
+ * triggered, no search is performed, and only
+ * [redirect_uri][google.cloud.discoveryengine.v1beta.SearchResponse.redirect_uri]
+ * and
+ * [attribution_token][google.cloud.discoveryengine.v1beta.SearchResponse.attribution_token]
+ * are set in the response.
+ *
+ *
+ * string redirect_uri = 12;
+ *
+ * @return The bytes for redirectUri.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getRedirectUriBytes() {
+ java.lang.Object ref = redirectUri_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ redirectUri_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 5;
@SuppressWarnings("serial")
@@ -7027,6 +7089,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
for (int i = 0; i < appliedControls_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 10, appliedControls_.getRaw(i));
}
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(redirectUri_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 12, redirectUri_);
+ }
getUnknownFields().writeTo(output);
}
@@ -7068,6 +7133,9 @@ public int getSerializedSize() {
size += dataSize;
size += 1 * getAppliedControlsList().size();
}
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(redirectUri_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(12, redirectUri_);
+ }
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
@@ -7092,6 +7160,7 @@ public boolean equals(final java.lang.Object obj) {
}
if (getTotalSize() != other.getTotalSize()) return false;
if (!getAttributionToken().equals(other.getAttributionToken())) return false;
+ if (!getRedirectUri().equals(other.getRedirectUri())) return false;
if (!getNextPageToken().equals(other.getNextPageToken())) return false;
if (!getCorrectedQuery().equals(other.getCorrectedQuery())) return false;
if (hasSummary() != other.hasSummary()) return false;
@@ -7126,6 +7195,8 @@ public int hashCode() {
hash = (53 * hash) + getTotalSize();
hash = (37 * hash) + ATTRIBUTION_TOKEN_FIELD_NUMBER;
hash = (53 * hash) + getAttributionToken().hashCode();
+ hash = (37 * hash) + REDIRECT_URI_FIELD_NUMBER;
+ hash = (53 * hash) + getRedirectUri().hashCode();
hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER;
hash = (53 * hash) + getNextPageToken().hashCode();
hash = (37 * hash) + CORRECTED_QUERY_FIELD_NUMBER;
@@ -7301,6 +7372,7 @@ public Builder clear() {
}
totalSize_ = 0;
attributionToken_ = "";
+ redirectUri_ = "";
nextPageToken_ = "";
correctedQuery_ = "";
summary_ = null;
@@ -7381,15 +7453,18 @@ private void buildPartial0(com.google.cloud.discoveryengine.v1beta.SearchRespons
result.attributionToken_ = attributionToken_;
}
if (((from_bitField0_ & 0x00000020) != 0)) {
- result.nextPageToken_ = nextPageToken_;
+ result.redirectUri_ = redirectUri_;
}
if (((from_bitField0_ & 0x00000040) != 0)) {
- result.correctedQuery_ = correctedQuery_;
+ result.nextPageToken_ = nextPageToken_;
}
if (((from_bitField0_ & 0x00000080) != 0)) {
- result.summary_ = summaryBuilder_ == null ? summary_ : summaryBuilder_.build();
+ result.correctedQuery_ = correctedQuery_;
}
if (((from_bitField0_ & 0x00000100) != 0)) {
+ result.summary_ = summaryBuilder_ == null ? summary_ : summaryBuilder_.build();
+ }
+ if (((from_bitField0_ & 0x00000200) != 0)) {
appliedControls_.makeImmutable();
result.appliedControls_ = appliedControls_;
}
@@ -7506,14 +7581,19 @@ public Builder mergeFrom(com.google.cloud.discoveryengine.v1beta.SearchResponse
bitField0_ |= 0x00000010;
onChanged();
}
+ if (!other.getRedirectUri().isEmpty()) {
+ redirectUri_ = other.redirectUri_;
+ bitField0_ |= 0x00000020;
+ onChanged();
+ }
if (!other.getNextPageToken().isEmpty()) {
nextPageToken_ = other.nextPageToken_;
- bitField0_ |= 0x00000020;
+ bitField0_ |= 0x00000040;
onChanged();
}
if (!other.getCorrectedQuery().isEmpty()) {
correctedQuery_ = other.correctedQuery_;
- bitField0_ |= 0x00000040;
+ bitField0_ |= 0x00000080;
onChanged();
}
if (other.hasSummary()) {
@@ -7522,7 +7602,7 @@ public Builder mergeFrom(com.google.cloud.discoveryengine.v1beta.SearchResponse
if (!other.appliedControls_.isEmpty()) {
if (appliedControls_.isEmpty()) {
appliedControls_ = other.appliedControls_;
- bitField0_ |= 0x00000100;
+ bitField0_ |= 0x00000200;
} else {
ensureAppliedControlsIsMutable();
appliedControls_.addAll(other.appliedControls_);
@@ -7599,13 +7679,13 @@ public Builder mergeFrom(
case 42:
{
nextPageToken_ = input.readStringRequireUtf8();
- bitField0_ |= 0x00000020;
+ bitField0_ |= 0x00000040;
break;
} // case 42
case 58:
{
correctedQuery_ = input.readStringRequireUtf8();
- bitField0_ |= 0x00000040;
+ bitField0_ |= 0x00000080;
break;
} // case 58
case 66:
@@ -7618,7 +7698,7 @@ public Builder mergeFrom(
case 74:
{
input.readMessage(getSummaryFieldBuilder().getBuilder(), extensionRegistry);
- bitField0_ |= 0x00000080;
+ bitField0_ |= 0x00000100;
break;
} // case 74
case 82:
@@ -7628,6 +7708,12 @@ public Builder mergeFrom(
appliedControls_.add(s);
break;
} // case 82
+ case 98:
+ {
+ redirectUri_ = input.readStringRequireUtf8();
+ bitField0_ |= 0x00000020;
+ break;
+ } // case 98
default:
{
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
@@ -8807,6 +8893,137 @@ public Builder setAttributionTokenBytes(com.google.protobuf.ByteString value) {
return this;
}
+ private java.lang.Object redirectUri_ = "";
+ /**
+ *
+ *
+ *
+ * The URI of a customer-defined redirect page. If redirect action is
+ * triggered, no search is performed, and only
+ * [redirect_uri][google.cloud.discoveryengine.v1beta.SearchResponse.redirect_uri]
+ * and
+ * [attribution_token][google.cloud.discoveryengine.v1beta.SearchResponse.attribution_token]
+ * are set in the response.
+ *
+ *
+ * string redirect_uri = 12;
+ *
+ * @return The redirectUri.
+ */
+ public java.lang.String getRedirectUri() {
+ java.lang.Object ref = redirectUri_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ redirectUri_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * The URI of a customer-defined redirect page. If redirect action is
+ * triggered, no search is performed, and only
+ * [redirect_uri][google.cloud.discoveryengine.v1beta.SearchResponse.redirect_uri]
+ * and
+ * [attribution_token][google.cloud.discoveryengine.v1beta.SearchResponse.attribution_token]
+ * are set in the response.
+ *
+ *
+ * string redirect_uri = 12;
+ *
+ * @return The bytes for redirectUri.
+ */
+ public com.google.protobuf.ByteString getRedirectUriBytes() {
+ java.lang.Object ref = redirectUri_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ redirectUri_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * The URI of a customer-defined redirect page. If redirect action is
+ * triggered, no search is performed, and only
+ * [redirect_uri][google.cloud.discoveryengine.v1beta.SearchResponse.redirect_uri]
+ * and
+ * [attribution_token][google.cloud.discoveryengine.v1beta.SearchResponse.attribution_token]
+ * are set in the response.
+ *
+ *
+ * string redirect_uri = 12;
+ *
+ * @param value The redirectUri to set.
+ * @return This builder for chaining.
+ */
+ public Builder setRedirectUri(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ redirectUri_ = value;
+ bitField0_ |= 0x00000020;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The URI of a customer-defined redirect page. If redirect action is
+ * triggered, no search is performed, and only
+ * [redirect_uri][google.cloud.discoveryengine.v1beta.SearchResponse.redirect_uri]
+ * and
+ * [attribution_token][google.cloud.discoveryengine.v1beta.SearchResponse.attribution_token]
+ * are set in the response.
+ *
+ *
+ * string redirect_uri = 12;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearRedirectUri() {
+ redirectUri_ = getDefaultInstance().getRedirectUri();
+ bitField0_ = (bitField0_ & ~0x00000020);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The URI of a customer-defined redirect page. If redirect action is
+ * triggered, no search is performed, and only
+ * [redirect_uri][google.cloud.discoveryengine.v1beta.SearchResponse.redirect_uri]
+ * and
+ * [attribution_token][google.cloud.discoveryengine.v1beta.SearchResponse.attribution_token]
+ * are set in the response.
+ *
+ *
+ * string redirect_uri = 12;
+ *
+ * @param value The bytes for redirectUri to set.
+ * @return This builder for chaining.
+ */
+ public Builder setRedirectUriBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ redirectUri_ = value;
+ bitField0_ |= 0x00000020;
+ onChanged();
+ return this;
+ }
+
private java.lang.Object nextPageToken_ = "";
/**
*
@@ -8878,7 +9095,7 @@ public Builder setNextPageToken(java.lang.String value) {
throw new NullPointerException();
}
nextPageToken_ = value;
- bitField0_ |= 0x00000020;
+ bitField0_ |= 0x00000040;
onChanged();
return this;
}
@@ -8898,7 +9115,7 @@ public Builder setNextPageToken(java.lang.String value) {
*/
public Builder clearNextPageToken() {
nextPageToken_ = getDefaultInstance().getNextPageToken();
- bitField0_ = (bitField0_ & ~0x00000020);
+ bitField0_ = (bitField0_ & ~0x00000040);
onChanged();
return this;
}
@@ -8923,7 +9140,7 @@ public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) {
}
checkByteStringIsUtf8(value);
nextPageToken_ = value;
- bitField0_ |= 0x00000020;
+ bitField0_ |= 0x00000040;
onChanged();
return this;
}
@@ -8996,7 +9213,7 @@ public Builder setCorrectedQuery(java.lang.String value) {
throw new NullPointerException();
}
correctedQuery_ = value;
- bitField0_ |= 0x00000040;
+ bitField0_ |= 0x00000080;
onChanged();
return this;
}
@@ -9015,7 +9232,7 @@ public Builder setCorrectedQuery(java.lang.String value) {
*/
public Builder clearCorrectedQuery() {
correctedQuery_ = getDefaultInstance().getCorrectedQuery();
- bitField0_ = (bitField0_ & ~0x00000040);
+ bitField0_ = (bitField0_ & ~0x00000080);
onChanged();
return this;
}
@@ -9039,7 +9256,7 @@ public Builder setCorrectedQueryBytes(com.google.protobuf.ByteString value) {
}
checkByteStringIsUtf8(value);
correctedQuery_ = value;
- bitField0_ |= 0x00000040;
+ bitField0_ |= 0x00000080;
onChanged();
return this;
}
@@ -9065,7 +9282,7 @@ public Builder setCorrectedQueryBytes(com.google.protobuf.ByteString value) {
* @return Whether the summary field is set.
*/
public boolean hasSummary() {
- return ((bitField0_ & 0x00000080) != 0);
+ return ((bitField0_ & 0x00000100) != 0);
}
/**
*
@@ -9112,7 +9329,7 @@ public Builder setSummary(
} else {
summaryBuilder_.setMessage(value);
}
- bitField0_ |= 0x00000080;
+ bitField0_ |= 0x00000100;
onChanged();
return this;
}
@@ -9135,7 +9352,7 @@ public Builder setSummary(
} else {
summaryBuilder_.setMessage(builderForValue.build());
}
- bitField0_ |= 0x00000080;
+ bitField0_ |= 0x00000100;
onChanged();
return this;
}
@@ -9154,7 +9371,7 @@ public Builder setSummary(
public Builder mergeSummary(
com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary value) {
if (summaryBuilder_ == null) {
- if (((bitField0_ & 0x00000080) != 0)
+ if (((bitField0_ & 0x00000100) != 0)
&& summary_ != null
&& summary_
!= com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary
@@ -9166,7 +9383,7 @@ public Builder mergeSummary(
} else {
summaryBuilder_.mergeFrom(value);
}
- bitField0_ |= 0x00000080;
+ bitField0_ |= 0x00000100;
onChanged();
return this;
}
@@ -9183,7 +9400,7 @@ public Builder mergeSummary(
* .google.cloud.discoveryengine.v1beta.SearchResponse.Summary summary = 9;
*/
public Builder clearSummary() {
- bitField0_ = (bitField0_ & ~0x00000080);
+ bitField0_ = (bitField0_ & ~0x00000100);
summary_ = null;
if (summaryBuilder_ != null) {
summaryBuilder_.dispose();
@@ -9206,7 +9423,7 @@ public Builder clearSummary() {
*/
public com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.Builder
getSummaryBuilder() {
- bitField0_ |= 0x00000080;
+ bitField0_ |= 0x00000100;
onChanged();
return getSummaryFieldBuilder().getBuilder();
}
@@ -9268,7 +9485,7 @@ private void ensureAppliedControlsIsMutable() {
if (!appliedControls_.isModifiable()) {
appliedControls_ = new com.google.protobuf.LazyStringArrayList(appliedControls_);
}
- bitField0_ |= 0x00000100;
+ bitField0_ |= 0x00000200;
}
/**
*
@@ -9348,7 +9565,7 @@ public Builder setAppliedControls(int index, java.lang.String value) {
}
ensureAppliedControlsIsMutable();
appliedControls_.set(index, value);
- bitField0_ |= 0x00000100;
+ bitField0_ |= 0x00000200;
onChanged();
return this;
}
@@ -9370,7 +9587,7 @@ public Builder addAppliedControls(java.lang.String value) {
}
ensureAppliedControlsIsMutable();
appliedControls_.add(value);
- bitField0_ |= 0x00000100;
+ bitField0_ |= 0x00000200;
onChanged();
return this;
}
@@ -9389,7 +9606,7 @@ public Builder addAppliedControls(java.lang.String value) {
public Builder addAllAppliedControls(java.lang.Iterable values) {
ensureAppliedControlsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(values, appliedControls_);
- bitField0_ |= 0x00000100;
+ bitField0_ |= 0x00000200;
onChanged();
return this;
}
@@ -9406,7 +9623,7 @@ public Builder addAllAppliedControls(java.lang.Iterable values
*/
public Builder clearAppliedControls() {
appliedControls_ = com.google.protobuf.LazyStringArrayList.emptyList();
- bitField0_ = (bitField0_ & ~0x00000100);
+ bitField0_ = (bitField0_ & ~0x00000200);
;
onChanged();
return this;
@@ -9430,7 +9647,7 @@ public Builder addAppliedControlsBytes(com.google.protobuf.ByteString value) {
checkByteStringIsUtf8(value);
ensureAppliedControlsIsMutable();
appliedControls_.add(value);
- bitField0_ |= 0x00000100;
+ bitField0_ |= 0x00000200;
onChanged();
return this;
}
diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/SearchResponseOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/SearchResponseOrBuilder.java
index d6240b074ef6..e432d6498be5 100644
--- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/SearchResponseOrBuilder.java
+++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/SearchResponseOrBuilder.java
@@ -227,6 +227,41 @@ com.google.cloud.discoveryengine.v1beta.SearchResponse.FacetOrBuilder getFacetsO
*/
com.google.protobuf.ByteString getAttributionTokenBytes();
+ /**
+ *
+ *
+ *
+ * The URI of a customer-defined redirect page. If redirect action is
+ * triggered, no search is performed, and only
+ * [redirect_uri][google.cloud.discoveryengine.v1beta.SearchResponse.redirect_uri]
+ * and
+ * [attribution_token][google.cloud.discoveryengine.v1beta.SearchResponse.attribution_token]
+ * are set in the response.
+ *
+ *
+ * string redirect_uri = 12;
+ *
+ * @return The redirectUri.
+ */
+ java.lang.String getRedirectUri();
+ /**
+ *
+ *
+ *
+ * The URI of a customer-defined redirect page. If redirect action is
+ * triggered, no search is performed, and only
+ * [redirect_uri][google.cloud.discoveryengine.v1beta.SearchResponse.redirect_uri]
+ * and
+ * [attribution_token][google.cloud.discoveryengine.v1beta.SearchResponse.attribution_token]
+ * are set in the response.
+ *
+ *
+ * string redirect_uri = 12;
+ *
+ * @return The bytes for redirectUri.
+ */
+ com.google.protobuf.ByteString getRedirectUriBytes();
+
/**
*
*
diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/SearchServiceProto.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/SearchServiceProto.java
index d6160a86fe59..4672c35704dc 100644
--- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/SearchServiceProto.java
+++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/SearchServiceProto.java
@@ -67,6 +67,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r
internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_ContentSearchSpec_SummarySpec_descriptor;
static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_ContentSearchSpec_SummarySpec_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_ContentSearchSpec_ExtractiveContentSpec_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_ContentSearchSpec_ExtractiveContentSpec_fieldAccessorTable;
static final com.google.protobuf.Descriptors.Descriptor
internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_ParamsEntry_descriptor;
static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
@@ -120,7 +124,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "urce.proto\0320google/cloud/discoveryengine"
+ "/v1beta/common.proto\0322google/cloud/disco"
+ "veryengine/v1beta/document.proto\032\034google"
- + "/protobuf/struct.proto\"\347\022\n\rSearchRequest"
+ + "/protobuf/struct.proto\"\310\024\n\rSearchRequest"
+ "\022M\n\016serving_config\030\001 \001(\tB5\342A\001\002\372A.\n,disco"
+ "veryengine.googleapis.com/ServingConfig\022"
+ ":\n\006branch\030\002 \001(\tB*\372A\'\n%discoveryengine.go"
@@ -169,63 +173,69 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ ".cloud.discoveryengine.v1beta.SearchRequ"
+ "est.SpellCorrectionSpec.Mode\";\n\004Mode\022\024\n\020"
+ "MODE_UNSPECIFIED\020\000\022\023\n\017SUGGESTION_ONLY\020\001\022"
- + "\010\n\004AUTO\020\002\032\322\002\n\021ContentSearchSpec\022f\n\014snipp"
+ + "\010\n\004AUTO\020\002\032\263\004\n\021ContentSearchSpec\022f\n\014snipp"
+ "et_spec\030\001 \001(\0132P.google.cloud.discoveryen"
+ "gine.v1beta.SearchRequest.ContentSearchS"
+ "pec.SnippetSpec\022f\n\014summary_spec\030\002 \001(\0132P."
+ "google.cloud.discoveryengine.v1beta.Sear"
- + "chRequest.ContentSearchSpec.SummarySpec\032"
- + "@\n\013SnippetSpec\022\031\n\021max_snippet_count\030\001 \001("
- + "\005\022\026\n\016reference_only\030\002 \001(\010\032+\n\013SummarySpec"
- + "\022\034\n\024summary_result_count\030\001 \001(\005\032E\n\013Params"
- + "Entry\022\013\n\003key\030\001 \001(\t\022%\n\005value\030\002 \001(\0132\026.goog"
- + "le.protobuf.Value:\0028\001\0321\n\017UserLabelsEntry"
- + "\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\270\010\n\016Sea"
- + "rchResponse\022Q\n\007results\030\001 \003(\0132@.google.cl"
- + "oud.discoveryengine.v1beta.SearchRespons"
- + "e.SearchResult\022I\n\006facets\030\002 \003(\01329.google."
- + "cloud.discoveryengine.v1beta.SearchRespo"
- + "nse.Facet\022d\n\024guided_search_result\030\010 \001(\0132"
- + "F.google.cloud.discoveryengine.v1beta.Se"
- + "archResponse.GuidedSearchResult\022\022\n\ntotal"
- + "_size\030\003 \001(\005\022\031\n\021attribution_token\030\004 \001(\t\022\027"
- + "\n\017next_page_token\030\005 \001(\t\022\027\n\017corrected_que"
- + "ry\030\007 \001(\t\022L\n\007summary\030\t \001(\0132;.google.cloud"
- + ".discoveryengine.v1beta.SearchResponse.S"
- + "ummary\022\030\n\020applied_controls\030\n \003(\t\032[\n\014Sear"
- + "chResult\022\n\n\002id\030\001 \001(\t\022?\n\010document\030\002 \001(\0132-"
- + ".google.cloud.discoveryengine.v1beta.Doc"
- + "ument\032\201\002\n\005Facet\022\013\n\003key\030\001 \001(\t\022T\n\006values\030\002"
- + " \003(\0132D.google.cloud.discoveryengine.v1be"
- + "ta.SearchResponse.Facet.FacetValue\022\025\n\rdy"
- + "namic_facet\030\003 \001(\010\032~\n\nFacetValue\022\017\n\005value"
- + "\030\001 \001(\tH\000\022A\n\010interval\030\002 \001(\0132-.google.clou"
- + "d.discoveryengine.v1beta.IntervalH\000\022\r\n\005c"
- + "ount\030\003 \001(\003B\r\n\013facet_value\032\326\001\n\022GuidedSear"
- + "chResult\022y\n\025refinement_attributes\030\001 \003(\0132"
- + "Z.google.cloud.discoveryengine.v1beta.Se"
- + "archResponse.GuidedSearchResult.Refineme"
- + "ntAttribute\032E\n\023RefinementAttribute\022\025\n\rat"
- + "tribute_key\030\001 \001(\t\022\027\n\017attribute_value\030\002 \001"
- + "(\t\032\037\n\007Summary\022\024\n\014summary_text\030\001 \001(\t2\243\003\n\r"
- + "SearchService\022\275\002\n\006Search\0222.google.cloud."
- + "discoveryengine.v1beta.SearchRequest\0323.g"
- + "oogle.cloud.discoveryengine.v1beta.Searc"
- + "hResponse\"\311\001\202\323\344\223\002\302\001\"T/v1beta/{serving_co"
- + "nfig=projects/*/locations/*/dataStores/*"
- + "/servingConfigs/*}:search:\001*Zg\"b/v1beta/"
- + "{serving_config=projects/*/locations/*/c"
- + "ollections/*/dataStores/*/servingConfigs"
- + "/*}:search:\001*\032R\312A\036discoveryengine.google"
- + "apis.com\322A.https://www.googleapis.com/au"
- + "th/cloud-platformB\231\002\n\'com.google.cloud.d"
- + "iscoveryengine.v1betaB\022SearchServiceProt"
- + "oP\001ZQcloud.google.com/go/discoveryengine"
- + "/apiv1beta/discoveryenginepb;discoveryen"
- + "ginepb\242\002\017DISCOVERYENGINE\252\002#Google.Cloud."
- + "DiscoveryEngine.V1Beta\312\002#Google\\Cloud\\Di"
- + "scoveryEngine\\V1beta\352\002&Google::Cloud::Di"
- + "scoveryEngine::V1betab\006proto3"
+ + "chRequest.ContentSearchSpec.SummarySpec\022"
+ + "{\n\027extractive_content_spec\030\003 \001(\0132Z.googl"
+ + "e.cloud.discoveryengine.v1beta.SearchReq"
+ + "uest.ContentSearchSpec.ExtractiveContent"
+ + "Spec\032@\n\013SnippetSpec\022\031\n\021max_snippet_count"
+ + "\030\001 \001(\005\022\026\n\016reference_only\030\002 \001(\010\032+\n\013Summar"
+ + "ySpec\022\034\n\024summary_result_count\030\001 \001(\005\032b\n\025E"
+ + "xtractiveContentSpec\022#\n\033max_extractive_a"
+ + "nswer_count\030\001 \001(\005\022$\n\034max_extractive_segm"
+ + "ent_count\030\002 \001(\005\032E\n\013ParamsEntry\022\013\n\003key\030\001 "
+ + "\001(\t\022%\n\005value\030\002 \001(\0132\026.google.protobuf.Val"
+ + "ue:\0028\001\0321\n\017UserLabelsEntry\022\013\n\003key\030\001 \001(\t\022\r"
+ + "\n\005value\030\002 \001(\t:\0028\001\"\316\010\n\016SearchResponse\022Q\n\007"
+ + "results\030\001 \003(\0132@.google.cloud.discoveryen"
+ + "gine.v1beta.SearchResponse.SearchResult\022"
+ + "I\n\006facets\030\002 \003(\01329.google.cloud.discovery"
+ + "engine.v1beta.SearchResponse.Facet\022d\n\024gu"
+ + "ided_search_result\030\010 \001(\0132F.google.cloud."
+ + "discoveryengine.v1beta.SearchResponse.Gu"
+ + "idedSearchResult\022\022\n\ntotal_size\030\003 \001(\005\022\031\n\021"
+ + "attribution_token\030\004 \001(\t\022\024\n\014redirect_uri\030"
+ + "\014 \001(\t\022\027\n\017next_page_token\030\005 \001(\t\022\027\n\017correc"
+ + "ted_query\030\007 \001(\t\022L\n\007summary\030\t \001(\0132;.googl"
+ + "e.cloud.discoveryengine.v1beta.SearchRes"
+ + "ponse.Summary\022\030\n\020applied_controls\030\n \003(\t\032"
+ + "[\n\014SearchResult\022\n\n\002id\030\001 \001(\t\022?\n\010document\030"
+ + "\002 \001(\0132-.google.cloud.discoveryengine.v1b"
+ + "eta.Document\032\201\002\n\005Facet\022\013\n\003key\030\001 \001(\t\022T\n\006v"
+ + "alues\030\002 \003(\0132D.google.cloud.discoveryengi"
+ + "ne.v1beta.SearchResponse.Facet.FacetValu"
+ + "e\022\025\n\rdynamic_facet\030\003 \001(\010\032~\n\nFacetValue\022\017"
+ + "\n\005value\030\001 \001(\tH\000\022A\n\010interval\030\002 \001(\0132-.goog"
+ + "le.cloud.discoveryengine.v1beta.Interval"
+ + "H\000\022\r\n\005count\030\003 \001(\003B\r\n\013facet_value\032\326\001\n\022Gui"
+ + "dedSearchResult\022y\n\025refinement_attributes"
+ + "\030\001 \003(\0132Z.google.cloud.discoveryengine.v1"
+ + "beta.SearchResponse.GuidedSearchResult.R"
+ + "efinementAttribute\032E\n\023RefinementAttribut"
+ + "e\022\025\n\rattribute_key\030\001 \001(\t\022\027\n\017attribute_va"
+ + "lue\030\002 \001(\t\032\037\n\007Summary\022\024\n\014summary_text\030\001 \001"
+ + "(\t2\243\003\n\rSearchService\022\275\002\n\006Search\0222.google"
+ + ".cloud.discoveryengine.v1beta.SearchRequ"
+ + "est\0323.google.cloud.discoveryengine.v1bet"
+ + "a.SearchResponse\"\311\001\202\323\344\223\002\302\001\"T/v1beta/{ser"
+ + "ving_config=projects/*/locations/*/dataS"
+ + "tores/*/servingConfigs/*}:search:\001*Zg\"b/"
+ + "v1beta/{serving_config=projects/*/locati"
+ + "ons/*/collections/*/dataStores/*/serving"
+ + "Configs/*}:search:\001*\032R\312A\036discoveryengine"
+ + ".googleapis.com\322A.https://www.googleapis"
+ + ".com/auth/cloud-platformB\231\002\n\'com.google."
+ + "cloud.discoveryengine.v1betaB\022SearchServ"
+ + "iceProtoP\001ZQcloud.google.com/go/discover"
+ + "yengine/apiv1beta/discoveryenginepb;disc"
+ + "overyenginepb\242\002\017DISCOVERYENGINE\252\002#Google"
+ + ".Cloud.DiscoveryEngine.V1Beta\312\002#Google\\C"
+ + "loud\\DiscoveryEngine\\V1beta\352\002&Google::Cl"
+ + "oud::DiscoveryEngine::V1betab\006proto3"
};
descriptor =
com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
@@ -338,7 +348,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_ContentSearchSpec_descriptor,
new java.lang.String[] {
- "SnippetSpec", "SummarySpec",
+ "SnippetSpec", "SummarySpec", "ExtractiveContentSpec",
});
internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_ContentSearchSpec_SnippetSpec_descriptor =
internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_ContentSearchSpec_descriptor
@@ -360,6 +370,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
new java.lang.String[] {
"SummaryResultCount",
});
+ internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_ContentSearchSpec_ExtractiveContentSpec_descriptor =
+ internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_ContentSearchSpec_descriptor
+ .getNestedTypes()
+ .get(2);
+ internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_ContentSearchSpec_ExtractiveContentSpec_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_ContentSearchSpec_ExtractiveContentSpec_descriptor,
+ new java.lang.String[] {
+ "MaxExtractiveAnswerCount", "MaxExtractiveSegmentCount",
+ });
internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_ParamsEntry_descriptor =
internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_descriptor
.getNestedTypes()
@@ -391,6 +411,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
"GuidedSearchResult",
"TotalSize",
"AttributionToken",
+ "RedirectUri",
"NextPageToken",
"CorrectedQuery",
"Summary",
diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/completion_service.proto b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/completion_service.proto
index 5a8ecd29acc0..cd003bd1fa29 100644
--- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/completion_service.proto
+++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/completion_service.proto
@@ -74,6 +74,8 @@ message CompleteQueryRequest {
// API calls. Do not use it when there is no traffic for Search API.
// * `user-event` - Using suggestions generated from user-imported search
// events.
+ // * `document-completable` - Using suggestions taken directly from
+ // user-imported document fields marked as completable.
//
// Default values:
//
diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/document.proto b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/document.proto
index 67e178c508f7..677228d90118 100644
--- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/document.proto
+++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/document.proto
@@ -59,8 +59,11 @@ message Document {
// The MIME type of the content. Supported types:
//
- // * `application/pdf` (PDF)
+ // * `application/pdf` (PDF, only native PDFs are supported for now)
// * `text/html` (HTML)
+ // * `application/vnd.openxmlformats-officedocument.wordprocessingml.document` (DOCX)
+ // * `application/vnd.openxmlformats-officedocument.presentationml.presentation` (PPTX)
+ // * `text/plain` (TXT)
//
// See https://www.iana.org/assignments/media-types/media-types.xhtml.
string mime_type = 1;
diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/import_config.proto b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/import_config.proto
index 9a901c90b8ef..9c68d47a0fea 100644
--- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/import_config.proto
+++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/import_config.proto
@@ -60,6 +60,10 @@ message GcsSource {
// * `custom`: One custom data JSON per row in arbitrary format that conforms
// the defined [Schema][google.cloud.discoveryengine.v1beta.Schema] of the
// data store. This can only be used by the GENERIC Data Store vertical.
+ // * `csv`: A CSV file with header conforming the defined
+ // [Schema][google.cloud.discoveryengine.v1beta.Schema] of the
+ // data store. Each entry after the header will be imported as a Document.
+ // This can only be used by the GENERIC Data Store vertical.
//
// Supported values for user even imports:
//
@@ -137,16 +141,16 @@ message ImportUserEventsRequest {
repeated UserEvent user_events = 1 [(google.api.field_behavior) = REQUIRED];
}
- // The desired input source of the user event data.
+ // Required - The desired input source of the user event data.
oneof source {
- // Required. The Inline source for the input content for UserEvents.
- InlineSource inline_source = 2 [(google.api.field_behavior) = REQUIRED];
+ // The Inline source for the input content for UserEvents.
+ InlineSource inline_source = 2;
- // Required. Cloud Storage location for the input content.
- GcsSource gcs_source = 3 [(google.api.field_behavior) = REQUIRED];
+ // Cloud Storage location for the input content.
+ GcsSource gcs_source = 3;
- // Required. BigQuery input source.
- BigQuerySource bigquery_source = 4 [(google.api.field_behavior) = REQUIRED];
+ // BigQuery input source.
+ BigQuerySource bigquery_source = 4;
}
// Required. Parent DataStore resource name, of the form
@@ -290,7 +294,7 @@ message ImportDocumentsRequest {
// [GcsSource.data_schema][google.cloud.discoveryengine.v1beta.GcsSource.data_schema]
// or
// [BigQuerySource.data_schema][google.cloud.discoveryengine.v1beta.BigQuerySource.data_schema]
- // is `custom`. Otherwise, an INVALID_ARGUMENT error is thrown.
+ // is `custom` or `csv`. Otherwise, an INVALID_ARGUMENT error is thrown.
bool auto_generate_ids = 8;
// The field in the Cloud Storage and BigQuery sources that indicates the
diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/search_service.proto b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/search_service.proto
index 393f2313a34c..21c48e0734d6 100644
--- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/search_service.proto
+++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/search_service.proto
@@ -287,6 +287,10 @@ message SearchRequest {
// The specification that configs the snippet in the search results.
message SnippetSpec {
// Max number of snippets returned in each search result.
+ //
+ // A snippet is an infomartive summary of a content with highlighting for
+ // UI rendering.
+ //
// If the matching snippets is less than the max_snippet_count, return all
// of the snippets; otherwise, return the max_snippet_count.
//
@@ -308,6 +312,36 @@ message SearchRequest {
int32 summary_result_count = 1;
}
+ // The specification that configs the extractive content in search results.
+ message ExtractiveContentSpec {
+ // The max number of extractive answers returned in each search result.
+ //
+ // An extractive answer is a verbatim answer extracted from the original
+ // document, which provides precise and contextually relevant answer to
+ // the search query.
+ //
+ // If the number of matching answers is less than the
+ // extractive_answer_count, return all of the answers; otherwise, return
+ // the extractive_answer_count.
+ //
+ // At most 5 answers will be returned for each SearchResult.
+ int32 max_extractive_answer_count = 1;
+
+ // The max number of extractive segments returned in each search result.
+ //
+ // An extractive segment is a text segment extracted from the original
+ // document which is relevant to the search query and in general more
+ // verbose than an extrative answer. The segment could then be used as
+ // input for LLMs to generate summaries and answers.
+ //
+ // If the number of matching segments is less than the
+ // max_extractive_segment_count, return all of the segments; otherwise,
+ // return the max_extractive_segment_count.
+ //
+ // Currently one segment will be returned for each SearchResult.
+ int32 max_extractive_segment_count = 2;
+ }
+
// If there is no snippet spec provided, there will be no snippet in the
// search result.
SnippetSpec snippet_spec = 1;
@@ -315,6 +349,10 @@ message SearchRequest {
// If there is no summary spec provided, there will be no summary in the
// search response.
SummarySpec summary_spec = 2;
+
+ // If there is no extractive_content_spec provided, there will be no
+ // extractive answer in the search response.
+ ExtractiveContentSpec extractive_content_spec = 3;
}
// Required. The resource name of the Search serving config, such as
@@ -549,6 +587,14 @@ message SearchResponse {
// performance.
string attribution_token = 4;
+ // The URI of a customer-defined redirect page. If redirect action is
+ // triggered, no search is performed, and only
+ // [redirect_uri][google.cloud.discoveryengine.v1beta.SearchResponse.redirect_uri]
+ // and
+ // [attribution_token][google.cloud.discoveryengine.v1beta.SearchResponse.attribution_token]
+ // are set in the response.
+ string redirect_uri = 12;
+
// A token that can be sent as
// [SearchRequest.page_token][google.cloud.discoveryengine.v1beta.SearchRequest.page_token]
// to retrieve the next page. If this field is omitted, there are no