google-cloud-discovery_engine-v1beta 0.2.1 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/google/cloud/discovery_engine/v1beta/completion_service/client.rb +2 -0
- data/lib/google/cloud/discovery_engine/v1beta/completion_service/rest/client.rb +2 -0
- data/lib/google/cloud/discovery_engine/v1beta/document_service/client.rb +1 -1
- data/lib/google/cloud/discovery_engine/v1beta/document_service/rest/client.rb +1 -1
- data/lib/google/cloud/discovery_engine/v1beta/user_event_service/client.rb +3 -3
- data/lib/google/cloud/discovery_engine/v1beta/user_event_service/rest/client.rb +3 -3
- data/lib/google/cloud/discovery_engine/v1beta/version.rb +1 -1
- data/lib/google/cloud/discoveryengine/v1beta/import_config_pb.rb +1 -1
- data/lib/google/cloud/discoveryengine/v1beta/search_service_pb.rb +2 -1
- data/proto_docs/google/cloud/discoveryengine/v1beta/completion_service.rb +2 -0
- data/proto_docs/google/cloud/discoveryengine/v1beta/document.rb +4 -1
- data/proto_docs/google/cloud/discoveryengine/v1beta/import_config.rb +8 -4
- data/proto_docs/google/cloud/discoveryengine/v1beta/search_service.rb +49 -0
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: fb1dee36ab960da08a6d19850c1d28c65a185d77fae4dc99d3cdd24da46d207d
|
|
4
|
+
data.tar.gz: 1ec5ed0e2c7edc520ae0af03a864244feb8aba2c581d28e950169c64c6525ebc
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 0b7f0f69a6078bca452a551f57409b7e9bed09203fdcb2318ec69dfc290d5af019d407a99f9eb2de1968c7207deda19dca395623a68455c0b8f69b0210d484b6
|
|
7
|
+
data.tar.gz: 63734a0f89e7bf4477f94cc2092516b141bd3de0291f1436e1cdd8dc7a893e1f737407a6acf2f9157718d5c135e332d3777c2c21c6c662124933c20490f75f96
|
|
@@ -184,6 +184,8 @@ module Google
|
|
|
184
184
|
# API calls. Do not use it when there is no traffic for Search API.
|
|
185
185
|
# * `user-event` - Using suggestions generated from user-imported search
|
|
186
186
|
# events.
|
|
187
|
+
# * `document-completable` - Using suggestions taken directly from
|
|
188
|
+
# user-imported document fields marked as completable.
|
|
187
189
|
#
|
|
188
190
|
# Default values:
|
|
189
191
|
#
|
|
@@ -175,6 +175,8 @@ module Google
|
|
|
175
175
|
# API calls. Do not use it when there is no traffic for Search API.
|
|
176
176
|
# * `user-event` - Using suggestions generated from user-imported search
|
|
177
177
|
# events.
|
|
178
|
+
# * `document-completable` - Using suggestions taken directly from
|
|
179
|
+
# user-imported document fields marked as completable.
|
|
178
180
|
#
|
|
179
181
|
# Default values:
|
|
180
182
|
#
|
|
@@ -738,7 +738,7 @@ module Google
|
|
|
738
738
|
# {::Google::Cloud::DiscoveryEngine::V1beta::GcsSource#data_schema GcsSource.data_schema}
|
|
739
739
|
# or
|
|
740
740
|
# {::Google::Cloud::DiscoveryEngine::V1beta::BigQuerySource#data_schema BigQuerySource.data_schema}
|
|
741
|
-
# is `custom`. Otherwise, an INVALID_ARGUMENT error is thrown.
|
|
741
|
+
# is `custom` or `csv`. Otherwise, an INVALID_ARGUMENT error is thrown.
|
|
742
742
|
# @param id_field [::String]
|
|
743
743
|
# The field in the Cloud Storage and BigQuery sources that indicates the
|
|
744
744
|
# unique IDs of the documents.
|
|
@@ -610,7 +610,7 @@ module Google
|
|
|
610
610
|
# {::Google::Cloud::DiscoveryEngine::V1beta::GcsSource#data_schema GcsSource.data_schema}
|
|
611
611
|
# or
|
|
612
612
|
# {::Google::Cloud::DiscoveryEngine::V1beta::BigQuerySource#data_schema BigQuerySource.data_schema}
|
|
613
|
-
# is `custom`. Otherwise, an INVALID_ARGUMENT error is thrown.
|
|
613
|
+
# is `custom` or `csv`. Otherwise, an INVALID_ARGUMENT error is thrown.
|
|
614
614
|
# @param id_field [::String]
|
|
615
615
|
# The field in the Cloud Storage and BigQuery sources that indicates the
|
|
616
616
|
# unique IDs of the documents.
|
|
@@ -382,11 +382,11 @@ module Google
|
|
|
382
382
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
383
383
|
#
|
|
384
384
|
# @param inline_source [::Google::Cloud::DiscoveryEngine::V1beta::ImportUserEventsRequest::InlineSource, ::Hash]
|
|
385
|
-
#
|
|
385
|
+
# The Inline source for the input content for UserEvents.
|
|
386
386
|
# @param gcs_source [::Google::Cloud::DiscoveryEngine::V1beta::GcsSource, ::Hash]
|
|
387
|
-
#
|
|
387
|
+
# Cloud Storage location for the input content.
|
|
388
388
|
# @param bigquery_source [::Google::Cloud::DiscoveryEngine::V1beta::BigQuerySource, ::Hash]
|
|
389
|
-
#
|
|
389
|
+
# BigQuery input source.
|
|
390
390
|
# @param parent [::String]
|
|
391
391
|
# Required. Parent DataStore resource name, of the form
|
|
392
392
|
# `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}`
|
|
@@ -327,11 +327,11 @@ module Google
|
|
|
327
327
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
328
328
|
#
|
|
329
329
|
# @param inline_source [::Google::Cloud::DiscoveryEngine::V1beta::ImportUserEventsRequest::InlineSource, ::Hash]
|
|
330
|
-
#
|
|
330
|
+
# The Inline source for the input content for UserEvents.
|
|
331
331
|
# @param gcs_source [::Google::Cloud::DiscoveryEngine::V1beta::GcsSource, ::Hash]
|
|
332
|
-
#
|
|
332
|
+
# Cloud Storage location for the input content.
|
|
333
333
|
# @param bigquery_source [::Google::Cloud::DiscoveryEngine::V1beta::BigQuerySource, ::Hash]
|
|
334
|
-
#
|
|
334
|
+
# BigQuery input source.
|
|
335
335
|
# @param parent [::String]
|
|
336
336
|
# Required. Parent DataStore resource name, of the form
|
|
337
337
|
# `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}`
|
|
@@ -13,7 +13,7 @@ require 'google/rpc/status_pb'
|
|
|
13
13
|
require 'google/type/date_pb'
|
|
14
14
|
|
|
15
15
|
|
|
16
|
-
descriptor_data = "\n7google/cloud/discoveryengine/v1beta/import_config.proto\x12#google.cloud.discoveryengine.v1beta\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x32google/cloud/discoveryengine/v1beta/document.proto\x1a\x34google/cloud/discoveryengine/v1beta/user_event.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x17google/rpc/status.proto\x1a\x16google/type/date.proto\"9\n\tGcsSource\x12\x17\n\ninput_uris\x18\x01 \x03(\tB\x03\xe0\x41\x02\x12\x13\n\x0b\x64\x61ta_schema\x18\x02 \x01(\t\"\xbc\x01\n\x0e\x42igQuerySource\x12+\n\x0epartition_date\x18\x05 \x01(\x0b\x32\x11.google.type.DateH\x00\x12\x12\n\nproject_id\x18\x01 \x01(\t\x12\x17\n\ndataset_id\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x15\n\x08table_id\x18\x03 \x01(\tB\x03\xe0\x41\x02\x12\x17\n\x0fgcs_staging_dir\x18\x04 \x01(\t\x12\x13\n\x0b\x64\x61ta_schema\x18\x06 \x01(\tB\x0b\n\tpartition\"8\n\x11ImportErrorConfig\x12\x14\n\ngcs_prefix\x18\x01 \x01(\tH\x00\x42\r\n\x0b\x64\x65stination\"\
|
|
16
|
+
descriptor_data = "\n7google/cloud/discoveryengine/v1beta/import_config.proto\x12#google.cloud.discoveryengine.v1beta\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x32google/cloud/discoveryengine/v1beta/document.proto\x1a\x34google/cloud/discoveryengine/v1beta/user_event.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x17google/rpc/status.proto\x1a\x16google/type/date.proto\"9\n\tGcsSource\x12\x17\n\ninput_uris\x18\x01 \x03(\tB\x03\xe0\x41\x02\x12\x13\n\x0b\x64\x61ta_schema\x18\x02 \x01(\t\"\xbc\x01\n\x0e\x42igQuerySource\x12+\n\x0epartition_date\x18\x05 \x01(\x0b\x32\x11.google.type.DateH\x00\x12\x12\n\nproject_id\x18\x01 \x01(\t\x12\x17\n\ndataset_id\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x15\n\x08table_id\x18\x03 \x01(\tB\x03\xe0\x41\x02\x12\x17\n\x0fgcs_staging_dir\x18\x04 \x01(\t\x12\x13\n\x0b\x64\x61ta_schema\x18\x06 \x01(\tB\x0b\n\tpartition\"8\n\x11ImportErrorConfig\x12\x14\n\ngcs_prefix\x18\x01 \x01(\tH\x00\x42\r\n\x0b\x64\x65stination\"\x87\x04\n\x17ImportUserEventsRequest\x12\x62\n\rinline_source\x18\x02 \x01(\x0b\x32I.google.cloud.discoveryengine.v1beta.ImportUserEventsRequest.InlineSourceH\x00\x12\x44\n\ngcs_source\x18\x03 \x01(\x0b\x32..google.cloud.discoveryengine.v1beta.GcsSourceH\x00\x12N\n\x0f\x62igquery_source\x18\x04 \x01(\x0b\x32\x33.google.cloud.discoveryengine.v1beta.BigQuerySourceH\x00\x12@\n\x06parent\x18\x01 \x01(\tB0\xe0\x41\x02\xfa\x41*\n(discoveryengine.googleapis.com/DataStore\x12L\n\x0c\x65rror_config\x18\x05 \x01(\x0b\x32\x36.google.cloud.discoveryengine.v1beta.ImportErrorConfig\x1aX\n\x0cInlineSource\x12H\n\x0buser_events\x18\x01 \x03(\x0b\x32..google.cloud.discoveryengine.v1beta.UserEventB\x03\xe0\x41\x02\x42\x08\n\x06source\"\xcf\x01\n\x18ImportUserEventsResponse\x12)\n\rerror_samples\x18\x01 \x03(\x0b\x32\x12.google.rpc.Status\x12L\n\x0c\x65rror_config\x18\x02 \x01(\x0b\x32\x36.google.cloud.discoveryengine.v1beta.ImportErrorConfig\x12\x1b\n\x13joined_events_count\x18\x03 \x01(\x03\x12\x1d\n\x15unjoined_events_count\x18\x04 \x01(\x03\"\xaa\x01\n\x18ImportUserEventsMetadata\x12/\n\x0b\x63reate_time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12/\n\x0bupdate_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x15\n\rsuccess_count\x18\x03 \x01(\x03\x12\x15\n\rfailure_count\x18\x04 \x01(\x03\"\xa9\x01\n\x17ImportDocumentsMetadata\x12/\n\x0b\x63reate_time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12/\n\x0bupdate_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x15\n\rsuccess_count\x18\x03 \x01(\x03\x12\x15\n\rfailure_count\x18\x04 \x01(\x03\"\xef\x05\n\x16ImportDocumentsRequest\x12\x61\n\rinline_source\x18\x02 \x01(\x0b\x32H.google.cloud.discoveryengine.v1beta.ImportDocumentsRequest.InlineSourceH\x00\x12\x44\n\ngcs_source\x18\x03 \x01(\x0b\x32..google.cloud.discoveryengine.v1beta.GcsSourceH\x00\x12N\n\x0f\x62igquery_source\x18\x04 \x01(\x0b\x32\x33.google.cloud.discoveryengine.v1beta.BigQuerySourceH\x00\x12=\n\x06parent\x18\x01 \x01(\tB-\xe0\x41\x02\xfa\x41\'\n%discoveryengine.googleapis.com/Branch\x12L\n\x0c\x65rror_config\x18\x05 \x01(\x0b\x32\x36.google.cloud.discoveryengine.v1beta.ImportErrorConfig\x12k\n\x13reconciliation_mode\x18\x06 \x01(\x0e\x32N.google.cloud.discoveryengine.v1beta.ImportDocumentsRequest.ReconciliationMode\x12\x19\n\x11\x61uto_generate_ids\x18\x08 \x01(\x08\x12\x10\n\x08id_field\x18\t \x01(\t\x1aU\n\x0cInlineSource\x12\x45\n\tdocuments\x18\x01 \x03(\x0b\x32-.google.cloud.discoveryengine.v1beta.DocumentB\x03\xe0\x41\x02\"T\n\x12ReconciliationMode\x12#\n\x1fRECONCILIATION_MODE_UNSPECIFIED\x10\x00\x12\x0f\n\x0bINCREMENTAL\x10\x01\x12\x08\n\x04\x46ULL\x10\x02\x42\x08\n\x06source\"\x92\x01\n\x17ImportDocumentsResponse\x12)\n\rerror_samples\x18\x01 \x03(\x0b\x32\x12.google.rpc.Status\x12L\n\x0c\x65rror_config\x18\x02 \x01(\x0b\x32\x36.google.cloud.discoveryengine.v1beta.ImportErrorConfigB\x98\x02\n\'com.google.cloud.discoveryengine.v1betaB\x11ImportConfigProtoP\x01ZQcloud.google.com/go/discoveryengine/apiv1beta/discoveryenginepb;discoveryenginepb\xa2\x02\x0f\x44ISCOVERYENGINE\xaa\x02#Google.Cloud.DiscoveryEngine.V1Beta\xca\x02#Google\\Cloud\\DiscoveryEngine\\V1beta\xea\x02&Google::Cloud::DiscoveryEngine::V1betab\x06proto3"
|
|
17
17
|
|
|
18
18
|
pool = Google::Protobuf::DescriptorPool.generated_pool
|
|
19
19
|
|
|
@@ -13,7 +13,7 @@ require 'google/cloud/discoveryengine/v1beta/document_pb'
|
|
|
13
13
|
require 'google/protobuf/struct_pb'
|
|
14
14
|
|
|
15
15
|
|
|
16
|
-
descriptor_data = "\n8google/cloud/discoveryengine/v1beta/search_service.proto\x12#google.cloud.discoveryengine.v1beta\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x30google/cloud/discoveryengine/v1beta/common.proto\x1a\x32google/cloud/discoveryengine/v1beta/document.proto\x1a\x1cgoogle/protobuf/struct.proto\"\
|
|
16
|
+
descriptor_data = "\n8google/cloud/discoveryengine/v1beta/search_service.proto\x12#google.cloud.discoveryengine.v1beta\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x30google/cloud/discoveryengine/v1beta/common.proto\x1a\x32google/cloud/discoveryengine/v1beta/document.proto\x1a\x1cgoogle/protobuf/struct.proto\"\xc5\x14\n\rSearchRequest\x12L\n\x0eserving_config\x18\x01 \x01(\tB4\xe0\x41\x02\xfa\x41.\n,discoveryengine.googleapis.com/ServingConfig\x12:\n\x06\x62ranch\x18\x02 \x01(\tB*\xfa\x41\'\n%discoveryengine.googleapis.com/Branch\x12\r\n\x05query\x18\x03 \x01(\t\x12\x11\n\tpage_size\x18\x04 \x01(\x05\x12\x12\n\npage_token\x18\x05 \x01(\t\x12\x0e\n\x06offset\x18\x06 \x01(\x05\x12\x0e\n\x06\x66ilter\x18\x07 \x01(\t\x12\x10\n\x08order_by\x18\x08 \x01(\t\x12@\n\tuser_info\x18\x15 \x01(\x0b\x32-.google.cloud.discoveryengine.v1beta.UserInfo\x12Q\n\x0b\x66\x61\x63\x65t_specs\x18\t \x03(\x0b\x32<.google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec\x12P\n\nboost_spec\x18\n \x01(\x0b\x32<.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec\x12N\n\x06params\x18\x0b \x03(\x0b\x32>.google.cloud.discoveryengine.v1beta.SearchRequest.ParamsEntry\x12\x63\n\x14query_expansion_spec\x18\r \x01(\x0b\x32\x45.google.cloud.discoveryengine.v1beta.SearchRequest.QueryExpansionSpec\x12\x65\n\x15spell_correction_spec\x18\x0e \x01(\x0b\x32\x46.google.cloud.discoveryengine.v1beta.SearchRequest.SpellCorrectionSpec\x12\x16\n\x0euser_pseudo_id\x18\x0f \x01(\t\x12\x61\n\x13\x63ontent_search_spec\x18\x18 \x01(\x0b\x32\x44.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec\x12\x13\n\x0bsafe_search\x18\x14 \x01(\x08\x12W\n\x0buser_labels\x18\x16 \x03(\x0b\x32\x42.google.cloud.discoveryengine.v1beta.SearchRequest.UserLabelsEntry\x1a\x84\x03\n\tFacetSpec\x12]\n\tfacet_key\x18\x01 \x01(\x0b\x32\x45.google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec.FacetKeyB\x03\xe0\x41\x02\x12\r\n\x05limit\x18\x02 \x01(\x05\x12\x1c\n\x14\x65xcluded_filter_keys\x18\x03 \x03(\t\x12\x1f\n\x17\x65nable_dynamic_position\x18\x04 \x01(\x08\x1a\xc9\x01\n\x08\x46\x61\x63\x65tKey\x12\x10\n\x03key\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12@\n\tintervals\x18\x02 \x03(\x0b\x32-.google.cloud.discoveryengine.v1beta.Interval\x12\x19\n\x11restricted_values\x18\x03 \x03(\t\x12\x10\n\x08prefixes\x18\x04 \x03(\t\x12\x10\n\x08\x63ontains\x18\x05 \x03(\t\x12\x18\n\x10\x63\x61se_insensitive\x18\x06 \x01(\x08\x12\x10\n\x08order_by\x18\x07 \x01(\t\x1a\xb3\x01\n\tBoostSpec\x12n\n\x15\x63ondition_boost_specs\x18\x01 \x03(\x0b\x32O.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec.ConditionBoostSpec\x1a\x36\n\x12\x43onditionBoostSpec\x12\x11\n\tcondition\x18\x01 \x01(\t\x12\r\n\x05\x62oost\x18\x02 \x01(\x02\x1a\xb8\x01\n\x12QueryExpansionSpec\x12\x62\n\tcondition\x18\x01 \x01(\x0e\x32O.google.cloud.discoveryengine.v1beta.SearchRequest.QueryExpansionSpec.Condition\">\n\tCondition\x12\x19\n\x15\x43ONDITION_UNSPECIFIED\x10\x00\x12\x0c\n\x08\x44ISABLED\x10\x01\x12\x08\n\x04\x41UTO\x10\x02\x1a\xad\x01\n\x13SpellCorrectionSpec\x12Y\n\x04mode\x18\x01 \x01(\x0e\x32K.google.cloud.discoveryengine.v1beta.SearchRequest.SpellCorrectionSpec.Mode\";\n\x04Mode\x12\x14\n\x10MODE_UNSPECIFIED\x10\x00\x12\x13\n\x0fSUGGESTION_ONLY\x10\x01\x12\x08\n\x04\x41UTO\x10\x02\x1a\xb3\x04\n\x11\x43ontentSearchSpec\x12\x66\n\x0csnippet_spec\x18\x01 \x01(\x0b\x32P.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SnippetSpec\x12\x66\n\x0csummary_spec\x18\x02 \x01(\x0b\x32P.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec\x12{\n\x17\x65xtractive_content_spec\x18\x03 \x01(\x0b\x32Z.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ExtractiveContentSpec\x1a@\n\x0bSnippetSpec\x12\x19\n\x11max_snippet_count\x18\x01 \x01(\x05\x12\x16\n\x0ereference_only\x18\x02 \x01(\x08\x1a+\n\x0bSummarySpec\x12\x1c\n\x14summary_result_count\x18\x01 \x01(\x05\x1a\x62\n\x15\x45xtractiveContentSpec\x12#\n\x1bmax_extractive_answer_count\x18\x01 \x01(\x05\x12$\n\x1cmax_extractive_segment_count\x18\x02 \x01(\x05\x1a\x45\n\x0bParamsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12%\n\x05value\x18\x02 \x01(\x0b\x32\x16.google.protobuf.Value:\x02\x38\x01\x1a\x31\n\x0fUserLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\xce\x08\n\x0eSearchResponse\x12Q\n\x07results\x18\x01 \x03(\x0b\x32@.google.cloud.discoveryengine.v1beta.SearchResponse.SearchResult\x12I\n\x06\x66\x61\x63\x65ts\x18\x02 \x03(\x0b\x32\x39.google.cloud.discoveryengine.v1beta.SearchResponse.Facet\x12\x64\n\x14guided_search_result\x18\x08 \x01(\x0b\x32\x46.google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult\x12\x12\n\ntotal_size\x18\x03 \x01(\x05\x12\x19\n\x11\x61ttribution_token\x18\x04 \x01(\t\x12\x14\n\x0credirect_uri\x18\x0c \x01(\t\x12\x17\n\x0fnext_page_token\x18\x05 \x01(\t\x12\x17\n\x0f\x63orrected_query\x18\x07 \x01(\t\x12L\n\x07summary\x18\t \x01(\x0b\x32;.google.cloud.discoveryengine.v1beta.SearchResponse.Summary\x12\x18\n\x10\x61pplied_controls\x18\n \x03(\t\x1a[\n\x0cSearchResult\x12\n\n\x02id\x18\x01 \x01(\t\x12?\n\x08\x64ocument\x18\x02 \x01(\x0b\x32-.google.cloud.discoveryengine.v1beta.Document\x1a\x81\x02\n\x05\x46\x61\x63\x65t\x12\x0b\n\x03key\x18\x01 \x01(\t\x12T\n\x06values\x18\x02 \x03(\x0b\x32\x44.google.cloud.discoveryengine.v1beta.SearchResponse.Facet.FacetValue\x12\x15\n\rdynamic_facet\x18\x03 \x01(\x08\x1a~\n\nFacetValue\x12\x0f\n\x05value\x18\x01 \x01(\tH\x00\x12\x41\n\x08interval\x18\x02 \x01(\x0b\x32-.google.cloud.discoveryengine.v1beta.IntervalH\x00\x12\r\n\x05\x63ount\x18\x03 \x01(\x03\x42\r\n\x0b\x66\x61\x63\x65t_value\x1a\xd6\x01\n\x12GuidedSearchResult\x12y\n\x15refinement_attributes\x18\x01 \x03(\x0b\x32Z.google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult.RefinementAttribute\x1a\x45\n\x13RefinementAttribute\x12\x15\n\rattribute_key\x18\x01 \x01(\t\x12\x17\n\x0f\x61ttribute_value\x18\x02 \x01(\t\x1a\x1f\n\x07Summary\x12\x14\n\x0csummary_text\x18\x01 \x01(\t2\xa3\x03\n\rSearchService\x12\xbd\x02\n\x06Search\x12\x32.google.cloud.discoveryengine.v1beta.SearchRequest\x1a\x33.google.cloud.discoveryengine.v1beta.SearchResponse\"\xc9\x01\x82\xd3\xe4\x93\x02\xc2\x01\"T/v1beta/{serving_config=projects/*/locations/*/dataStores/*/servingConfigs/*}:search:\x01*Zg\"b/v1beta/{serving_config=projects/*/locations/*/collections/*/dataStores/*/servingConfigs/*}:search:\x01*\x1aR\xca\x41\x1e\x64iscoveryengine.googleapis.com\xd2\x41.https://www.googleapis.com/auth/cloud-platformB\x99\x02\n\'com.google.cloud.discoveryengine.v1betaB\x12SearchServiceProtoP\x01ZQcloud.google.com/go/discoveryengine/apiv1beta/discoveryenginepb;discoveryenginepb\xa2\x02\x0f\x44ISCOVERYENGINE\xaa\x02#Google.Cloud.DiscoveryEngine.V1Beta\xca\x02#Google\\Cloud\\DiscoveryEngine\\V1beta\xea\x02&Google::Cloud::DiscoveryEngine::V1betab\x06proto3"
|
|
17
17
|
|
|
18
18
|
pool = Google::Protobuf::DescriptorPool.generated_pool
|
|
19
19
|
|
|
@@ -58,6 +58,7 @@ module Google
|
|
|
58
58
|
SearchRequest::ContentSearchSpec = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec").msgclass
|
|
59
59
|
SearchRequest::ContentSearchSpec::SnippetSpec = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SnippetSpec").msgclass
|
|
60
60
|
SearchRequest::ContentSearchSpec::SummarySpec = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec").msgclass
|
|
61
|
+
SearchRequest::ContentSearchSpec::ExtractiveContentSpec = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ExtractiveContentSpec").msgclass
|
|
61
62
|
SearchResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.discoveryengine.v1beta.SearchResponse").msgclass
|
|
62
63
|
SearchResponse::SearchResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.discoveryengine.v1beta.SearchResponse.SearchResult").msgclass
|
|
63
64
|
SearchResponse::Facet = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.discoveryengine.v1beta.SearchResponse.Facet").msgclass
|
|
@@ -44,6 +44,8 @@ module Google
|
|
|
44
44
|
# API calls. Do not use it when there is no traffic for Search API.
|
|
45
45
|
# * `user-event` - Using suggestions generated from user-imported search
|
|
46
46
|
# events.
|
|
47
|
+
# * `document-completable` - Using suggestions taken directly from
|
|
48
|
+
# user-imported document fields marked as completable.
|
|
47
49
|
#
|
|
48
50
|
# Default values:
|
|
49
51
|
#
|
|
@@ -92,8 +92,11 @@ module Google
|
|
|
92
92
|
# @return [::String]
|
|
93
93
|
# The MIME type of the content. Supported types:
|
|
94
94
|
#
|
|
95
|
-
# * `application/pdf` (PDF)
|
|
95
|
+
# * `application/pdf` (PDF, only native PDFs are supported for now)
|
|
96
96
|
# * `text/html` (HTML)
|
|
97
|
+
# * `application/vnd.openxmlformats-officedocument.wordprocessingml.document` (DOCX)
|
|
98
|
+
# * `application/vnd.openxmlformats-officedocument.presentationml.presentation` (PPTX)
|
|
99
|
+
# * `text/plain` (TXT)
|
|
97
100
|
#
|
|
98
101
|
# See https://www.iana.org/assignments/media-types/media-types.xhtml.
|
|
99
102
|
class Content
|
|
@@ -49,6 +49,10 @@ module Google
|
|
|
49
49
|
# * `custom`: One custom data JSON per row in arbitrary format that conforms
|
|
50
50
|
# the defined {::Google::Cloud::DiscoveryEngine::V1beta::Schema Schema} of the
|
|
51
51
|
# data store. This can only be used by the GENERIC Data Store vertical.
|
|
52
|
+
# * `csv`: A CSV file with header conforming the defined
|
|
53
|
+
# {::Google::Cloud::DiscoveryEngine::V1beta::Schema Schema} of the
|
|
54
|
+
# data store. Each entry after the header will be imported as a Document.
|
|
55
|
+
# This can only be used by the GENERIC Data Store vertical.
|
|
52
56
|
#
|
|
53
57
|
# Supported values for user even imports:
|
|
54
58
|
#
|
|
@@ -122,13 +126,13 @@ module Google
|
|
|
122
126
|
# Request message for the ImportUserEvents request.
|
|
123
127
|
# @!attribute [rw] inline_source
|
|
124
128
|
# @return [::Google::Cloud::DiscoveryEngine::V1beta::ImportUserEventsRequest::InlineSource]
|
|
125
|
-
#
|
|
129
|
+
# The Inline source for the input content for UserEvents.
|
|
126
130
|
# @!attribute [rw] gcs_source
|
|
127
131
|
# @return [::Google::Cloud::DiscoveryEngine::V1beta::GcsSource]
|
|
128
|
-
#
|
|
132
|
+
# Cloud Storage location for the input content.
|
|
129
133
|
# @!attribute [rw] bigquery_source
|
|
130
134
|
# @return [::Google::Cloud::DiscoveryEngine::V1beta::BigQuerySource]
|
|
131
|
-
#
|
|
135
|
+
# BigQuery input source.
|
|
132
136
|
# @!attribute [rw] parent
|
|
133
137
|
# @return [::String]
|
|
134
138
|
# Required. Parent DataStore resource name, of the form
|
|
@@ -258,7 +262,7 @@ module Google
|
|
|
258
262
|
# {::Google::Cloud::DiscoveryEngine::V1beta::GcsSource#data_schema GcsSource.data_schema}
|
|
259
263
|
# or
|
|
260
264
|
# {::Google::Cloud::DiscoveryEngine::V1beta::BigQuerySource#data_schema BigQuerySource.data_schema}
|
|
261
|
-
# is `custom`. Otherwise, an INVALID_ARGUMENT error is thrown.
|
|
265
|
+
# is `custom` or `csv`. Otherwise, an INVALID_ARGUMENT error is thrown.
|
|
262
266
|
# @!attribute [rw] id_field
|
|
263
267
|
# @return [::String]
|
|
264
268
|
# The field in the Cloud Storage and BigQuery sources that indicates the
|
|
@@ -415,6 +415,10 @@ module Google
|
|
|
415
415
|
# @return [::Google::Cloud::DiscoveryEngine::V1beta::SearchRequest::ContentSearchSpec::SummarySpec]
|
|
416
416
|
# If there is no summary spec provided, there will be no summary in the
|
|
417
417
|
# search response.
|
|
418
|
+
# @!attribute [rw] extractive_content_spec
|
|
419
|
+
# @return [::Google::Cloud::DiscoveryEngine::V1beta::SearchRequest::ContentSearchSpec::ExtractiveContentSpec]
|
|
420
|
+
# If there is no extractive_content_spec provided, there will be no
|
|
421
|
+
# extractive answer in the search response.
|
|
418
422
|
class ContentSearchSpec
|
|
419
423
|
include ::Google::Protobuf::MessageExts
|
|
420
424
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
@@ -423,6 +427,10 @@ module Google
|
|
|
423
427
|
# @!attribute [rw] max_snippet_count
|
|
424
428
|
# @return [::Integer]
|
|
425
429
|
# Max number of snippets returned in each search result.
|
|
430
|
+
#
|
|
431
|
+
# A snippet is an infomartive summary of a content with highlighting for
|
|
432
|
+
# UI rendering.
|
|
433
|
+
#
|
|
426
434
|
# If the matching snippets is less than the max_snippet_count, return all
|
|
427
435
|
# of the snippets; otherwise, return the max_snippet_count.
|
|
428
436
|
#
|
|
@@ -448,6 +456,39 @@ module Google
|
|
|
448
456
|
include ::Google::Protobuf::MessageExts
|
|
449
457
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
450
458
|
end
|
|
459
|
+
|
|
460
|
+
# The specification that configs the extractive content in search results.
|
|
461
|
+
# @!attribute [rw] max_extractive_answer_count
|
|
462
|
+
# @return [::Integer]
|
|
463
|
+
# The max number of extractive answers returned in each search result.
|
|
464
|
+
#
|
|
465
|
+
# An extractive answer is a verbatim answer extracted from the original
|
|
466
|
+
# document, which provides precise and contextually relevant answer to
|
|
467
|
+
# the search query.
|
|
468
|
+
#
|
|
469
|
+
# If the number of matching answers is less than the
|
|
470
|
+
# extractive_answer_count, return all of the answers; otherwise, return
|
|
471
|
+
# the extractive_answer_count.
|
|
472
|
+
#
|
|
473
|
+
# At most 5 answers will be returned for each SearchResult.
|
|
474
|
+
# @!attribute [rw] max_extractive_segment_count
|
|
475
|
+
# @return [::Integer]
|
|
476
|
+
# The max number of extractive segments returned in each search result.
|
|
477
|
+
#
|
|
478
|
+
# An extractive segment is a text segment extracted from the original
|
|
479
|
+
# document which is relevant to the search query and in general more
|
|
480
|
+
# verbose than an extrative answer. The segment could then be used as
|
|
481
|
+
# input for LLMs to generate summaries and answers.
|
|
482
|
+
#
|
|
483
|
+
# If the number of matching segments is less than the
|
|
484
|
+
# max_extractive_segment_count, return all of the segments; otherwise,
|
|
485
|
+
# return the max_extractive_segment_count.
|
|
486
|
+
#
|
|
487
|
+
# Currently one segment will be returned for each SearchResult.
|
|
488
|
+
class ExtractiveContentSpec
|
|
489
|
+
include ::Google::Protobuf::MessageExts
|
|
490
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
491
|
+
end
|
|
451
492
|
end
|
|
452
493
|
|
|
453
494
|
# @!attribute [rw] key
|
|
@@ -495,6 +536,14 @@ module Google
|
|
|
495
536
|
# {::Google::Cloud::DiscoveryEngine::V1beta::UserEvent UserEvent} logs resulting
|
|
496
537
|
# from this search, which enables accurate attribution of search model
|
|
497
538
|
# performance.
|
|
539
|
+
# @!attribute [rw] redirect_uri
|
|
540
|
+
# @return [::String]
|
|
541
|
+
# The URI of a customer-defined redirect page. If redirect action is
|
|
542
|
+
# triggered, no search is performed, and only
|
|
543
|
+
# {::Google::Cloud::DiscoveryEngine::V1beta::SearchResponse#redirect_uri redirect_uri}
|
|
544
|
+
# and
|
|
545
|
+
# {::Google::Cloud::DiscoveryEngine::V1beta::SearchResponse#attribution_token attribution_token}
|
|
546
|
+
# are set in the response.
|
|
498
547
|
# @!attribute [rw] next_page_token
|
|
499
548
|
# @return [::String]
|
|
500
549
|
# A token that can be sent as
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: google-cloud-discovery_engine-v1beta
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.3.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Google LLC
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2023-06-
|
|
11
|
+
date: 2023-06-20 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: gapic-common
|