google-cloud-discovery_engine-v1beta 0.2.0 → 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/README.md +1 -1
- data/lib/google/cloud/discovery_engine/v1beta/completion_service/client.rb +6 -2
- data/lib/google/cloud/discovery_engine/v1beta/completion_service/rest/client.rb +6 -2
- data/lib/google/cloud/discovery_engine/v1beta/completion_service/rest/service_stub.rb +1 -1
- data/lib/google/cloud/discovery_engine/v1beta/document_service/client.rb +5 -3
- data/lib/google/cloud/discovery_engine/v1beta/document_service/operations.rb +3 -1
- data/lib/google/cloud/discovery_engine/v1beta/document_service/rest/client.rb +5 -3
- data/lib/google/cloud/discovery_engine/v1beta/document_service/rest/operations.rb +7 -5
- data/lib/google/cloud/discovery_engine/v1beta/document_service/rest/service_stub.rb +7 -7
- data/lib/google/cloud/discovery_engine/v1beta/recommendation_service/client.rb +4 -2
- data/lib/google/cloud/discovery_engine/v1beta/recommendation_service/rest/client.rb +4 -2
- data/lib/google/cloud/discovery_engine/v1beta/recommendation_service/rest/service_stub.rb +1 -1
- data/lib/google/cloud/discovery_engine/v1beta/schema_service/client.rb +4 -2
- data/lib/google/cloud/discovery_engine/v1beta/schema_service/operations.rb +3 -1
- data/lib/google/cloud/discovery_engine/v1beta/schema_service/rest/client.rb +4 -2
- data/lib/google/cloud/discovery_engine/v1beta/schema_service/rest/operations.rb +7 -5
- data/lib/google/cloud/discovery_engine/v1beta/schema_service/rest/service_stub.rb +5 -5
- data/lib/google/cloud/discovery_engine/v1beta/search_service/client.rb +4 -2
- data/lib/google/cloud/discovery_engine/v1beta/search_service/rest/client.rb +4 -2
- data/lib/google/cloud/discovery_engine/v1beta/search_service/rest/service_stub.rb +1 -1
- data/lib/google/cloud/discovery_engine/v1beta/user_event_service/client.rb +7 -5
- data/lib/google/cloud/discovery_engine/v1beta/user_event_service/operations.rb +3 -1
- data/lib/google/cloud/discovery_engine/v1beta/user_event_service/rest/client.rb +7 -5
- data/lib/google/cloud/discovery_engine/v1beta/user_event_service/rest/operations.rb +7 -5
- data/lib/google/cloud/discovery_engine/v1beta/user_event_service/rest/service_stub.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 +4 -4
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
|
data/README.md
CHANGED
|
@@ -40,7 +40,7 @@ response = client.complete_query request
|
|
|
40
40
|
View the [Client Library Documentation](https://cloud.google.com/ruby/docs/reference/google-cloud-discovery_engine-v1beta/latest)
|
|
41
41
|
for class and method documentation.
|
|
42
42
|
|
|
43
|
-
See also the [Product Documentation](https://cloud.google.com/
|
|
43
|
+
See also the [Product Documentation](https://cloud.google.com/discovery-engine/media/docs)
|
|
44
44
|
for general usage information.
|
|
45
45
|
|
|
46
46
|
## Enabling Logging
|
|
@@ -128,7 +128,7 @@ module Google
|
|
|
128
128
|
credentials = @config.credentials
|
|
129
129
|
# Use self-signed JWT if the endpoint is unchanged from default,
|
|
130
130
|
# but only if the default endpoint does not have a region prefix.
|
|
131
|
-
enable_self_signed_jwt = @config.endpoint ==
|
|
131
|
+
enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
|
|
132
132
|
!@config.endpoint.split(".").first.include?("-")
|
|
133
133
|
credentials ||= Credentials.default scope: @config.scope,
|
|
134
134
|
enable_self_signed_jwt: enable_self_signed_jwt
|
|
@@ -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
|
#
|
|
@@ -353,7 +355,9 @@ module Google
|
|
|
353
355
|
class Configuration
|
|
354
356
|
extend ::Gapic::Config
|
|
355
357
|
|
|
356
|
-
|
|
358
|
+
DEFAULT_ENDPOINT = "discoveryengine.googleapis.com"
|
|
359
|
+
|
|
360
|
+
config_attr :endpoint, DEFAULT_ENDPOINT, ::String
|
|
357
361
|
config_attr :credentials, nil do |value|
|
|
358
362
|
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
|
359
363
|
allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
|
|
@@ -124,7 +124,7 @@ module Google
|
|
|
124
124
|
credentials = @config.credentials
|
|
125
125
|
# Use self-signed JWT if the endpoint is unchanged from default,
|
|
126
126
|
# but only if the default endpoint does not have a region prefix.
|
|
127
|
-
enable_self_signed_jwt = @config.endpoint ==
|
|
127
|
+
enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
|
|
128
128
|
!@config.endpoint.split(".").first.include?("-")
|
|
129
129
|
credentials ||= Credentials.default scope: @config.scope,
|
|
130
130
|
enable_self_signed_jwt: enable_self_signed_jwt
|
|
@@ -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
|
#
|
|
@@ -312,7 +314,9 @@ module Google
|
|
|
312
314
|
class Configuration
|
|
313
315
|
extend ::Gapic::Config
|
|
314
316
|
|
|
315
|
-
|
|
317
|
+
DEFAULT_ENDPOINT = "discoveryengine.googleapis.com"
|
|
318
|
+
|
|
319
|
+
config_attr :endpoint, DEFAULT_ENDPOINT, ::String
|
|
316
320
|
config_attr :credentials, nil do |value|
|
|
317
321
|
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
|
318
322
|
allowed.any? { |klass| klass === value }
|
|
@@ -59,7 +59,7 @@ module Google
|
|
|
59
59
|
|
|
60
60
|
verb, uri, query_string_params, body = ServiceStub.transcode_complete_query_request request_pb
|
|
61
61
|
query_string_params = if query_string_params.any?
|
|
62
|
-
query_string_params.to_h { |p| p.split
|
|
62
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
63
63
|
else
|
|
64
64
|
{}
|
|
65
65
|
end
|
|
@@ -135,7 +135,7 @@ module Google
|
|
|
135
135
|
credentials = @config.credentials
|
|
136
136
|
# Use self-signed JWT if the endpoint is unchanged from default,
|
|
137
137
|
# but only if the default endpoint does not have a region prefix.
|
|
138
|
-
enable_self_signed_jwt = @config.endpoint ==
|
|
138
|
+
enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
|
|
139
139
|
!@config.endpoint.split(".").first.include?("-")
|
|
140
140
|
credentials ||= Credentials.default scope: @config.scope,
|
|
141
141
|
enable_self_signed_jwt: enable_self_signed_jwt
|
|
@@ -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.
|
|
@@ -1041,7 +1041,9 @@ module Google
|
|
|
1041
1041
|
class Configuration
|
|
1042
1042
|
extend ::Gapic::Config
|
|
1043
1043
|
|
|
1044
|
-
|
|
1044
|
+
DEFAULT_ENDPOINT = "discoveryengine.googleapis.com"
|
|
1045
|
+
|
|
1046
|
+
config_attr :endpoint, DEFAULT_ENDPOINT, ::String
|
|
1045
1047
|
config_attr :credentials, nil do |value|
|
|
1046
1048
|
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
|
1047
1049
|
allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
|
|
@@ -664,7 +664,9 @@ module Google
|
|
|
664
664
|
class Configuration
|
|
665
665
|
extend ::Gapic::Config
|
|
666
666
|
|
|
667
|
-
|
|
667
|
+
DEFAULT_ENDPOINT = "discoveryengine.googleapis.com"
|
|
668
|
+
|
|
669
|
+
config_attr :endpoint, DEFAULT_ENDPOINT, ::String
|
|
668
670
|
config_attr :credentials, nil do |value|
|
|
669
671
|
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
|
670
672
|
allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
|
|
@@ -131,7 +131,7 @@ module Google
|
|
|
131
131
|
credentials = @config.credentials
|
|
132
132
|
# Use self-signed JWT if the endpoint is unchanged from default,
|
|
133
133
|
# but only if the default endpoint does not have a region prefix.
|
|
134
|
-
enable_self_signed_jwt = @config.endpoint ==
|
|
134
|
+
enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
|
|
135
135
|
!@config.endpoint.split(".").first.include?("-")
|
|
136
136
|
credentials ||= Credentials.default scope: @config.scope,
|
|
137
137
|
enable_self_signed_jwt: enable_self_signed_jwt
|
|
@@ -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.
|
|
@@ -844,7 +844,9 @@ module Google
|
|
|
844
844
|
class Configuration
|
|
845
845
|
extend ::Gapic::Config
|
|
846
846
|
|
|
847
|
-
|
|
847
|
+
DEFAULT_ENDPOINT = "discoveryengine.googleapis.com"
|
|
848
|
+
|
|
849
|
+
config_attr :endpoint, DEFAULT_ENDPOINT, ::String
|
|
848
850
|
config_attr :credentials, nil do |value|
|
|
849
851
|
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
|
850
852
|
allowed.any? { |klass| klass === value }
|
|
@@ -446,7 +446,9 @@ module Google
|
|
|
446
446
|
class Configuration
|
|
447
447
|
extend ::Gapic::Config
|
|
448
448
|
|
|
449
|
-
|
|
449
|
+
DEFAULT_ENDPOINT = "discoveryengine.googleapis.com"
|
|
450
|
+
|
|
451
|
+
config_attr :endpoint, DEFAULT_ENDPOINT, ::String
|
|
450
452
|
config_attr :credentials, nil do |value|
|
|
451
453
|
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
|
452
454
|
allowed.any? { |klass| klass === value }
|
|
@@ -567,7 +569,7 @@ module Google
|
|
|
567
569
|
|
|
568
570
|
verb, uri, query_string_params, body = OperationsServiceStub.transcode_list_operations_request request_pb
|
|
569
571
|
query_string_params = if query_string_params.any?
|
|
570
|
-
query_string_params.to_h { |p| p.split
|
|
572
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
571
573
|
else
|
|
572
574
|
{}
|
|
573
575
|
end
|
|
@@ -605,7 +607,7 @@ module Google
|
|
|
605
607
|
|
|
606
608
|
verb, uri, query_string_params, body = OperationsServiceStub.transcode_get_operation_request request_pb
|
|
607
609
|
query_string_params = if query_string_params.any?
|
|
608
|
-
query_string_params.to_h { |p| p.split
|
|
610
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
609
611
|
else
|
|
610
612
|
{}
|
|
611
613
|
end
|
|
@@ -643,7 +645,7 @@ module Google
|
|
|
643
645
|
|
|
644
646
|
verb, uri, query_string_params, body = OperationsServiceStub.transcode_delete_operation_request request_pb
|
|
645
647
|
query_string_params = if query_string_params.any?
|
|
646
|
-
query_string_params.to_h { |p| p.split
|
|
648
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
647
649
|
else
|
|
648
650
|
{}
|
|
649
651
|
end
|
|
@@ -681,7 +683,7 @@ module Google
|
|
|
681
683
|
|
|
682
684
|
verb, uri, query_string_params, body = OperationsServiceStub.transcode_cancel_operation_request request_pb
|
|
683
685
|
query_string_params = if query_string_params.any?
|
|
684
|
-
query_string_params.to_h { |p| p.split
|
|
686
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
685
687
|
else
|
|
686
688
|
{}
|
|
687
689
|
end
|
|
@@ -59,7 +59,7 @@ module Google
|
|
|
59
59
|
|
|
60
60
|
verb, uri, query_string_params, body = ServiceStub.transcode_get_document_request request_pb
|
|
61
61
|
query_string_params = if query_string_params.any?
|
|
62
|
-
query_string_params.to_h { |p| p.split
|
|
62
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
63
63
|
else
|
|
64
64
|
{}
|
|
65
65
|
end
|
|
@@ -97,7 +97,7 @@ module Google
|
|
|
97
97
|
|
|
98
98
|
verb, uri, query_string_params, body = ServiceStub.transcode_list_documents_request request_pb
|
|
99
99
|
query_string_params = if query_string_params.any?
|
|
100
|
-
query_string_params.to_h { |p| p.split
|
|
100
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
101
101
|
else
|
|
102
102
|
{}
|
|
103
103
|
end
|
|
@@ -135,7 +135,7 @@ module Google
|
|
|
135
135
|
|
|
136
136
|
verb, uri, query_string_params, body = ServiceStub.transcode_create_document_request request_pb
|
|
137
137
|
query_string_params = if query_string_params.any?
|
|
138
|
-
query_string_params.to_h { |p| p.split
|
|
138
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
139
139
|
else
|
|
140
140
|
{}
|
|
141
141
|
end
|
|
@@ -173,7 +173,7 @@ module Google
|
|
|
173
173
|
|
|
174
174
|
verb, uri, query_string_params, body = ServiceStub.transcode_update_document_request request_pb
|
|
175
175
|
query_string_params = if query_string_params.any?
|
|
176
|
-
query_string_params.to_h { |p| p.split
|
|
176
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
177
177
|
else
|
|
178
178
|
{}
|
|
179
179
|
end
|
|
@@ -211,7 +211,7 @@ module Google
|
|
|
211
211
|
|
|
212
212
|
verb, uri, query_string_params, body = ServiceStub.transcode_delete_document_request request_pb
|
|
213
213
|
query_string_params = if query_string_params.any?
|
|
214
|
-
query_string_params.to_h { |p| p.split
|
|
214
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
215
215
|
else
|
|
216
216
|
{}
|
|
217
217
|
end
|
|
@@ -249,7 +249,7 @@ module Google
|
|
|
249
249
|
|
|
250
250
|
verb, uri, query_string_params, body = ServiceStub.transcode_import_documents_request request_pb
|
|
251
251
|
query_string_params = if query_string_params.any?
|
|
252
|
-
query_string_params.to_h { |p| p.split
|
|
252
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
253
253
|
else
|
|
254
254
|
{}
|
|
255
255
|
end
|
|
@@ -287,7 +287,7 @@ module Google
|
|
|
287
287
|
|
|
288
288
|
verb, uri, query_string_params, body = ServiceStub.transcode_purge_documents_request request_pb
|
|
289
289
|
query_string_params = if query_string_params.any?
|
|
290
|
-
query_string_params.to_h { |p| p.split
|
|
290
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
291
291
|
else
|
|
292
292
|
{}
|
|
293
293
|
end
|
|
@@ -128,7 +128,7 @@ module Google
|
|
|
128
128
|
credentials = @config.credentials
|
|
129
129
|
# Use self-signed JWT if the endpoint is unchanged from default,
|
|
130
130
|
# but only if the default endpoint does not have a region prefix.
|
|
131
|
-
enable_self_signed_jwt = @config.endpoint ==
|
|
131
|
+
enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
|
|
132
132
|
!@config.endpoint.split(".").first.include?("-")
|
|
133
133
|
credentials ||= Credentials.default scope: @config.scope,
|
|
134
134
|
enable_self_signed_jwt: enable_self_signed_jwt
|
|
@@ -410,7 +410,9 @@ module Google
|
|
|
410
410
|
class Configuration
|
|
411
411
|
extend ::Gapic::Config
|
|
412
412
|
|
|
413
|
-
|
|
413
|
+
DEFAULT_ENDPOINT = "discoveryengine.googleapis.com"
|
|
414
|
+
|
|
415
|
+
config_attr :endpoint, DEFAULT_ENDPOINT, ::String
|
|
414
416
|
config_attr :credentials, nil do |value|
|
|
415
417
|
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
|
416
418
|
allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
|
|
@@ -124,7 +124,7 @@ module Google
|
|
|
124
124
|
credentials = @config.credentials
|
|
125
125
|
# Use self-signed JWT if the endpoint is unchanged from default,
|
|
126
126
|
# but only if the default endpoint does not have a region prefix.
|
|
127
|
-
enable_self_signed_jwt = @config.endpoint ==
|
|
127
|
+
enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
|
|
128
128
|
!@config.endpoint.split(".").first.include?("-")
|
|
129
129
|
credentials ||= Credentials.default scope: @config.scope,
|
|
130
130
|
enable_self_signed_jwt: enable_self_signed_jwt
|
|
@@ -369,7 +369,9 @@ module Google
|
|
|
369
369
|
class Configuration
|
|
370
370
|
extend ::Gapic::Config
|
|
371
371
|
|
|
372
|
-
|
|
372
|
+
DEFAULT_ENDPOINT = "discoveryengine.googleapis.com"
|
|
373
|
+
|
|
374
|
+
config_attr :endpoint, DEFAULT_ENDPOINT, ::String
|
|
373
375
|
config_attr :credentials, nil do |value|
|
|
374
376
|
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
|
375
377
|
allowed.any? { |klass| klass === value }
|
|
@@ -59,7 +59,7 @@ module Google
|
|
|
59
59
|
|
|
60
60
|
verb, uri, query_string_params, body = ServiceStub.transcode_recommend_request request_pb
|
|
61
61
|
query_string_params = if query_string_params.any?
|
|
62
|
-
query_string_params.to_h { |p| p.split
|
|
62
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
63
63
|
else
|
|
64
64
|
{}
|
|
65
65
|
end
|
|
@@ -128,7 +128,7 @@ module Google
|
|
|
128
128
|
credentials = @config.credentials
|
|
129
129
|
# Use self-signed JWT if the endpoint is unchanged from default,
|
|
130
130
|
# but only if the default endpoint does not have a region prefix.
|
|
131
|
-
enable_self_signed_jwt = @config.endpoint ==
|
|
131
|
+
enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
|
|
132
132
|
!@config.endpoint.split(".").first.include?("-")
|
|
133
133
|
credentials ||= Credentials.default scope: @config.scope,
|
|
134
134
|
enable_self_signed_jwt: enable_self_signed_jwt
|
|
@@ -736,7 +736,9 @@ module Google
|
|
|
736
736
|
class Configuration
|
|
737
737
|
extend ::Gapic::Config
|
|
738
738
|
|
|
739
|
-
|
|
739
|
+
DEFAULT_ENDPOINT = "discoveryengine.googleapis.com"
|
|
740
|
+
|
|
741
|
+
config_attr :endpoint, DEFAULT_ENDPOINT, ::String
|
|
740
742
|
config_attr :credentials, nil do |value|
|
|
741
743
|
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
|
742
744
|
allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
|
|
@@ -664,7 +664,9 @@ module Google
|
|
|
664
664
|
class Configuration
|
|
665
665
|
extend ::Gapic::Config
|
|
666
666
|
|
|
667
|
-
|
|
667
|
+
DEFAULT_ENDPOINT = "discoveryengine.googleapis.com"
|
|
668
|
+
|
|
669
|
+
config_attr :endpoint, DEFAULT_ENDPOINT, ::String
|
|
668
670
|
config_attr :credentials, nil do |value|
|
|
669
671
|
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
|
670
672
|
allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
|
|
@@ -124,7 +124,7 @@ module Google
|
|
|
124
124
|
credentials = @config.credentials
|
|
125
125
|
# Use self-signed JWT if the endpoint is unchanged from default,
|
|
126
126
|
# but only if the default endpoint does not have a region prefix.
|
|
127
|
-
enable_self_signed_jwt = @config.endpoint ==
|
|
127
|
+
enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
|
|
128
128
|
!@config.endpoint.split(".").first.include?("-")
|
|
129
129
|
credentials ||= Credentials.default scope: @config.scope,
|
|
130
130
|
enable_self_signed_jwt: enable_self_signed_jwt
|
|
@@ -578,7 +578,9 @@ module Google
|
|
|
578
578
|
class Configuration
|
|
579
579
|
extend ::Gapic::Config
|
|
580
580
|
|
|
581
|
-
|
|
581
|
+
DEFAULT_ENDPOINT = "discoveryengine.googleapis.com"
|
|
582
|
+
|
|
583
|
+
config_attr :endpoint, DEFAULT_ENDPOINT, ::String
|
|
582
584
|
config_attr :credentials, nil do |value|
|
|
583
585
|
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
|
584
586
|
allowed.any? { |klass| klass === value }
|
|
@@ -446,7 +446,9 @@ module Google
|
|
|
446
446
|
class Configuration
|
|
447
447
|
extend ::Gapic::Config
|
|
448
448
|
|
|
449
|
-
|
|
449
|
+
DEFAULT_ENDPOINT = "discoveryengine.googleapis.com"
|
|
450
|
+
|
|
451
|
+
config_attr :endpoint, DEFAULT_ENDPOINT, ::String
|
|
450
452
|
config_attr :credentials, nil do |value|
|
|
451
453
|
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
|
452
454
|
allowed.any? { |klass| klass === value }
|
|
@@ -567,7 +569,7 @@ module Google
|
|
|
567
569
|
|
|
568
570
|
verb, uri, query_string_params, body = OperationsServiceStub.transcode_list_operations_request request_pb
|
|
569
571
|
query_string_params = if query_string_params.any?
|
|
570
|
-
query_string_params.to_h { |p| p.split
|
|
572
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
571
573
|
else
|
|
572
574
|
{}
|
|
573
575
|
end
|
|
@@ -605,7 +607,7 @@ module Google
|
|
|
605
607
|
|
|
606
608
|
verb, uri, query_string_params, body = OperationsServiceStub.transcode_get_operation_request request_pb
|
|
607
609
|
query_string_params = if query_string_params.any?
|
|
608
|
-
query_string_params.to_h { |p| p.split
|
|
610
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
609
611
|
else
|
|
610
612
|
{}
|
|
611
613
|
end
|
|
@@ -643,7 +645,7 @@ module Google
|
|
|
643
645
|
|
|
644
646
|
verb, uri, query_string_params, body = OperationsServiceStub.transcode_delete_operation_request request_pb
|
|
645
647
|
query_string_params = if query_string_params.any?
|
|
646
|
-
query_string_params.to_h { |p| p.split
|
|
648
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
647
649
|
else
|
|
648
650
|
{}
|
|
649
651
|
end
|
|
@@ -681,7 +683,7 @@ module Google
|
|
|
681
683
|
|
|
682
684
|
verb, uri, query_string_params, body = OperationsServiceStub.transcode_cancel_operation_request request_pb
|
|
683
685
|
query_string_params = if query_string_params.any?
|
|
684
|
-
query_string_params.to_h { |p| p.split
|
|
686
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
685
687
|
else
|
|
686
688
|
{}
|
|
687
689
|
end
|
|
@@ -59,7 +59,7 @@ module Google
|
|
|
59
59
|
|
|
60
60
|
verb, uri, query_string_params, body = ServiceStub.transcode_get_schema_request request_pb
|
|
61
61
|
query_string_params = if query_string_params.any?
|
|
62
|
-
query_string_params.to_h { |p| p.split
|
|
62
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
63
63
|
else
|
|
64
64
|
{}
|
|
65
65
|
end
|
|
@@ -97,7 +97,7 @@ module Google
|
|
|
97
97
|
|
|
98
98
|
verb, uri, query_string_params, body = ServiceStub.transcode_list_schemas_request request_pb
|
|
99
99
|
query_string_params = if query_string_params.any?
|
|
100
|
-
query_string_params.to_h { |p| p.split
|
|
100
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
101
101
|
else
|
|
102
102
|
{}
|
|
103
103
|
end
|
|
@@ -135,7 +135,7 @@ module Google
|
|
|
135
135
|
|
|
136
136
|
verb, uri, query_string_params, body = ServiceStub.transcode_create_schema_request request_pb
|
|
137
137
|
query_string_params = if query_string_params.any?
|
|
138
|
-
query_string_params.to_h { |p| p.split
|
|
138
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
139
139
|
else
|
|
140
140
|
{}
|
|
141
141
|
end
|
|
@@ -173,7 +173,7 @@ module Google
|
|
|
173
173
|
|
|
174
174
|
verb, uri, query_string_params, body = ServiceStub.transcode_update_schema_request request_pb
|
|
175
175
|
query_string_params = if query_string_params.any?
|
|
176
|
-
query_string_params.to_h { |p| p.split
|
|
176
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
177
177
|
else
|
|
178
178
|
{}
|
|
179
179
|
end
|
|
@@ -211,7 +211,7 @@ module Google
|
|
|
211
211
|
|
|
212
212
|
verb, uri, query_string_params, body = ServiceStub.transcode_delete_schema_request request_pb
|
|
213
213
|
query_string_params = if query_string_params.any?
|
|
214
|
-
query_string_params.to_h { |p| p.split
|
|
214
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
215
215
|
else
|
|
216
216
|
{}
|
|
217
217
|
end
|
|
@@ -128,7 +128,7 @@ module Google
|
|
|
128
128
|
credentials = @config.credentials
|
|
129
129
|
# Use self-signed JWT if the endpoint is unchanged from default,
|
|
130
130
|
# but only if the default endpoint does not have a region prefix.
|
|
131
|
-
enable_self_signed_jwt = @config.endpoint ==
|
|
131
|
+
enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
|
|
132
132
|
!@config.endpoint.split(".").first.include?("-")
|
|
133
133
|
credentials ||= Credentials.default scope: @config.scope,
|
|
134
134
|
enable_self_signed_jwt: enable_self_signed_jwt
|
|
@@ -435,7 +435,9 @@ module Google
|
|
|
435
435
|
class Configuration
|
|
436
436
|
extend ::Gapic::Config
|
|
437
437
|
|
|
438
|
-
|
|
438
|
+
DEFAULT_ENDPOINT = "discoveryengine.googleapis.com"
|
|
439
|
+
|
|
440
|
+
config_attr :endpoint, DEFAULT_ENDPOINT, ::String
|
|
439
441
|
config_attr :credentials, nil do |value|
|
|
440
442
|
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
|
441
443
|
allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
|
|
@@ -124,7 +124,7 @@ module Google
|
|
|
124
124
|
credentials = @config.credentials
|
|
125
125
|
# Use self-signed JWT if the endpoint is unchanged from default,
|
|
126
126
|
# but only if the default endpoint does not have a region prefix.
|
|
127
|
-
enable_self_signed_jwt = @config.endpoint ==
|
|
127
|
+
enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
|
|
128
128
|
!@config.endpoint.split(".").first.include?("-")
|
|
129
129
|
credentials ||= Credentials.default scope: @config.scope,
|
|
130
130
|
enable_self_signed_jwt: enable_self_signed_jwt
|
|
@@ -389,7 +389,9 @@ module Google
|
|
|
389
389
|
class Configuration
|
|
390
390
|
extend ::Gapic::Config
|
|
391
391
|
|
|
392
|
-
|
|
392
|
+
DEFAULT_ENDPOINT = "discoveryengine.googleapis.com"
|
|
393
|
+
|
|
394
|
+
config_attr :endpoint, DEFAULT_ENDPOINT, ::String
|
|
393
395
|
config_attr :credentials, nil do |value|
|
|
394
396
|
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
|
395
397
|
allowed.any? { |klass| klass === value }
|
|
@@ -59,7 +59,7 @@ module Google
|
|
|
59
59
|
|
|
60
60
|
verb, uri, query_string_params, body = ServiceStub.transcode_search_request request_pb
|
|
61
61
|
query_string_params = if query_string_params.any?
|
|
62
|
-
query_string_params.to_h { |p| p.split
|
|
62
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
63
63
|
else
|
|
64
64
|
{}
|
|
65
65
|
end
|
|
@@ -133,7 +133,7 @@ module Google
|
|
|
133
133
|
credentials = @config.credentials
|
|
134
134
|
# Use self-signed JWT if the endpoint is unchanged from default,
|
|
135
135
|
# but only if the default endpoint does not have a region prefix.
|
|
136
|
-
enable_self_signed_jwt = @config.endpoint ==
|
|
136
|
+
enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
|
|
137
137
|
!@config.endpoint.split(".").first.include?("-")
|
|
138
138
|
credentials ||= Credentials.default scope: @config.scope,
|
|
139
139
|
enable_self_signed_jwt: enable_self_signed_jwt
|
|
@@ -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}`
|
|
@@ -548,7 +548,9 @@ module Google
|
|
|
548
548
|
class Configuration
|
|
549
549
|
extend ::Gapic::Config
|
|
550
550
|
|
|
551
|
-
|
|
551
|
+
DEFAULT_ENDPOINT = "discoveryengine.googleapis.com"
|
|
552
|
+
|
|
553
|
+
config_attr :endpoint, DEFAULT_ENDPOINT, ::String
|
|
552
554
|
config_attr :credentials, nil do |value|
|
|
553
555
|
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
|
554
556
|
allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
|
|
@@ -664,7 +664,9 @@ module Google
|
|
|
664
664
|
class Configuration
|
|
665
665
|
extend ::Gapic::Config
|
|
666
666
|
|
|
667
|
-
|
|
667
|
+
DEFAULT_ENDPOINT = "discoveryengine.googleapis.com"
|
|
668
|
+
|
|
669
|
+
config_attr :endpoint, DEFAULT_ENDPOINT, ::String
|
|
668
670
|
config_attr :credentials, nil do |value|
|
|
669
671
|
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
|
670
672
|
allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
|
|
@@ -129,7 +129,7 @@ module Google
|
|
|
129
129
|
credentials = @config.credentials
|
|
130
130
|
# Use self-signed JWT if the endpoint is unchanged from default,
|
|
131
131
|
# but only if the default endpoint does not have a region prefix.
|
|
132
|
-
enable_self_signed_jwt = @config.endpoint ==
|
|
132
|
+
enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
|
|
133
133
|
!@config.endpoint.split(".").first.include?("-")
|
|
134
134
|
credentials ||= Credentials.default scope: @config.scope,
|
|
135
135
|
enable_self_signed_jwt: enable_self_signed_jwt
|
|
@@ -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}`
|
|
@@ -454,7 +454,9 @@ module Google
|
|
|
454
454
|
class Configuration
|
|
455
455
|
extend ::Gapic::Config
|
|
456
456
|
|
|
457
|
-
|
|
457
|
+
DEFAULT_ENDPOINT = "discoveryengine.googleapis.com"
|
|
458
|
+
|
|
459
|
+
config_attr :endpoint, DEFAULT_ENDPOINT, ::String
|
|
458
460
|
config_attr :credentials, nil do |value|
|
|
459
461
|
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
|
460
462
|
allowed.any? { |klass| klass === value }
|
|
@@ -446,7 +446,9 @@ module Google
|
|
|
446
446
|
class Configuration
|
|
447
447
|
extend ::Gapic::Config
|
|
448
448
|
|
|
449
|
-
|
|
449
|
+
DEFAULT_ENDPOINT = "discoveryengine.googleapis.com"
|
|
450
|
+
|
|
451
|
+
config_attr :endpoint, DEFAULT_ENDPOINT, ::String
|
|
450
452
|
config_attr :credentials, nil do |value|
|
|
451
453
|
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
|
452
454
|
allowed.any? { |klass| klass === value }
|
|
@@ -567,7 +569,7 @@ module Google
|
|
|
567
569
|
|
|
568
570
|
verb, uri, query_string_params, body = OperationsServiceStub.transcode_list_operations_request request_pb
|
|
569
571
|
query_string_params = if query_string_params.any?
|
|
570
|
-
query_string_params.to_h { |p| p.split
|
|
572
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
571
573
|
else
|
|
572
574
|
{}
|
|
573
575
|
end
|
|
@@ -605,7 +607,7 @@ module Google
|
|
|
605
607
|
|
|
606
608
|
verb, uri, query_string_params, body = OperationsServiceStub.transcode_get_operation_request request_pb
|
|
607
609
|
query_string_params = if query_string_params.any?
|
|
608
|
-
query_string_params.to_h { |p| p.split
|
|
610
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
609
611
|
else
|
|
610
612
|
{}
|
|
611
613
|
end
|
|
@@ -643,7 +645,7 @@ module Google
|
|
|
643
645
|
|
|
644
646
|
verb, uri, query_string_params, body = OperationsServiceStub.transcode_delete_operation_request request_pb
|
|
645
647
|
query_string_params = if query_string_params.any?
|
|
646
|
-
query_string_params.to_h { |p| p.split
|
|
648
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
647
649
|
else
|
|
648
650
|
{}
|
|
649
651
|
end
|
|
@@ -681,7 +683,7 @@ module Google
|
|
|
681
683
|
|
|
682
684
|
verb, uri, query_string_params, body = OperationsServiceStub.transcode_cancel_operation_request request_pb
|
|
683
685
|
query_string_params = if query_string_params.any?
|
|
684
|
-
query_string_params.to_h { |p| p.split
|
|
686
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
685
687
|
else
|
|
686
688
|
{}
|
|
687
689
|
end
|
|
@@ -59,7 +59,7 @@ module Google
|
|
|
59
59
|
|
|
60
60
|
verb, uri, query_string_params, body = ServiceStub.transcode_write_user_event_request request_pb
|
|
61
61
|
query_string_params = if query_string_params.any?
|
|
62
|
-
query_string_params.to_h { |p| p.split
|
|
62
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
63
63
|
else
|
|
64
64
|
{}
|
|
65
65
|
end
|
|
@@ -97,7 +97,7 @@ module Google
|
|
|
97
97
|
|
|
98
98
|
verb, uri, query_string_params, body = ServiceStub.transcode_collect_user_event_request request_pb
|
|
99
99
|
query_string_params = if query_string_params.any?
|
|
100
|
-
query_string_params.to_h { |p| p.split
|
|
100
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
101
101
|
else
|
|
102
102
|
{}
|
|
103
103
|
end
|
|
@@ -135,7 +135,7 @@ module Google
|
|
|
135
135
|
|
|
136
136
|
verb, uri, query_string_params, body = ServiceStub.transcode_import_user_events_request request_pb
|
|
137
137
|
query_string_params = if query_string_params.any?
|
|
138
|
-
query_string_params.to_h { |p| p.split
|
|
138
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
139
139
|
else
|
|
140
140
|
{}
|
|
141
141
|
end
|
|
@@ -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-
|
|
11
|
+
date: 2023-06-20 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: gapic-common
|
|
@@ -16,7 +16,7 @@ dependencies:
|
|
|
16
16
|
requirements:
|
|
17
17
|
- - ">="
|
|
18
18
|
- !ruby/object:Gem::Version
|
|
19
|
-
version: 0.19.
|
|
19
|
+
version: 0.19.1
|
|
20
20
|
- - "<"
|
|
21
21
|
- !ruby/object:Gem::Version
|
|
22
22
|
version: 2.a
|
|
@@ -26,7 +26,7 @@ dependencies:
|
|
|
26
26
|
requirements:
|
|
27
27
|
- - ">="
|
|
28
28
|
- !ruby/object:Gem::Version
|
|
29
|
-
version: 0.19.
|
|
29
|
+
version: 0.19.1
|
|
30
30
|
- - "<"
|
|
31
31
|
- !ruby/object:Gem::Version
|
|
32
32
|
version: 2.a
|