google-cloud-discovery_engine-v1 0.6.0 → 0.8.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/google/cloud/discovery_engine/v1/completion_service/client.rb +9 -3
- data/lib/google/cloud/discovery_engine/v1/completion_service/operations.rb +13 -5
- data/lib/google/cloud/discovery_engine/v1/completion_service/rest/client.rb +9 -3
- data/lib/google/cloud/discovery_engine/v1/completion_service/rest/operations.rb +28 -5
- data/lib/google/cloud/discovery_engine/v1/control_service/client.rb +875 -0
- data/lib/google/cloud/discovery_engine/v1/control_service/credentials.rb +47 -0
- data/lib/google/cloud/discovery_engine/v1/control_service/paths.rb +167 -0
- data/lib/google/cloud/discovery_engine/v1/control_service/rest/client.rb +814 -0
- data/lib/google/cloud/discovery_engine/v1/control_service/rest/service_stub.rb +440 -0
- data/lib/google/cloud/discovery_engine/v1/control_service/rest.rb +55 -0
- data/lib/google/cloud/discovery_engine/v1/control_service.rb +58 -0
- data/lib/google/cloud/discovery_engine/v1/conversational_search_service/client.rb +769 -7
- data/lib/google/cloud/discovery_engine/v1/conversational_search_service/paths.rb +199 -0
- data/lib/google/cloud/discovery_engine/v1/conversational_search_service/rest/client.rb +720 -7
- data/lib/google/cloud/discovery_engine/v1/conversational_search_service/rest/service_stub.rb +520 -0
- data/lib/google/cloud/discovery_engine/v1/data_store_service/client.rb +15 -7
- data/lib/google/cloud/discovery_engine/v1/data_store_service/operations.rb +13 -5
- data/lib/google/cloud/discovery_engine/v1/data_store_service/paths.rb +94 -0
- data/lib/google/cloud/discovery_engine/v1/data_store_service/rest/client.rb +15 -7
- data/lib/google/cloud/discovery_engine/v1/data_store_service/rest/operations.rb +28 -5
- data/lib/google/cloud/discovery_engine/v1/document_service/client.rb +71 -33
- data/lib/google/cloud/discovery_engine/v1/document_service/operations.rb +13 -5
- data/lib/google/cloud/discovery_engine/v1/document_service/paths.rb +21 -0
- data/lib/google/cloud/discovery_engine/v1/document_service/rest/client.rb +71 -33
- data/lib/google/cloud/discovery_engine/v1/document_service/rest/operations.rb +28 -5
- data/lib/google/cloud/discovery_engine/v1/engine_service/client.rb +13 -5
- data/lib/google/cloud/discovery_engine/v1/engine_service/operations.rb +13 -5
- data/lib/google/cloud/discovery_engine/v1/engine_service/rest/client.rb +13 -5
- data/lib/google/cloud/discovery_engine/v1/engine_service/rest/operations.rb +28 -5
- data/lib/google/cloud/discovery_engine/v1/grounded_generation_service/client.rb +471 -0
- data/lib/google/cloud/discovery_engine/v1/grounded_generation_service/credentials.rb +47 -0
- data/lib/google/cloud/discovery_engine/v1/grounded_generation_service/paths.rb +52 -0
- data/lib/google/cloud/discovery_engine/v1/grounded_generation_service/rest/client.rb +438 -0
- data/lib/google/cloud/discovery_engine/v1/grounded_generation_service/rest/service_stub.rb +129 -0
- data/lib/google/cloud/discovery_engine/v1/grounded_generation_service/rest.rb +52 -0
- data/lib/google/cloud/discovery_engine/v1/grounded_generation_service.rb +55 -0
- data/lib/google/cloud/discovery_engine/v1/project_service/client.rb +485 -0
- data/lib/google/cloud/discovery_engine/v1/project_service/credentials.rb +47 -0
- data/lib/google/cloud/discovery_engine/v1/project_service/operations.rb +809 -0
- data/lib/google/cloud/discovery_engine/v1/project_service/paths.rb +47 -0
- data/lib/google/cloud/discovery_engine/v1/project_service/rest/client.rb +452 -0
- data/lib/google/cloud/discovery_engine/v1/project_service/rest/operations.rb +1114 -0
- data/lib/google/cloud/discovery_engine/v1/project_service/rest/service_stub.rb +129 -0
- data/lib/google/cloud/discovery_engine/v1/project_service/rest.rb +54 -0
- data/lib/google/cloud/discovery_engine/v1/project_service.rb +57 -0
- data/lib/google/cloud/discovery_engine/v1/rank_service/client.rb +481 -0
- data/lib/google/cloud/discovery_engine/v1/rank_service/credentials.rb +47 -0
- data/lib/google/cloud/discovery_engine/v1/rank_service/paths.rb +52 -0
- data/lib/google/cloud/discovery_engine/v1/rank_service/rest/client.rb +448 -0
- data/lib/google/cloud/discovery_engine/v1/rank_service/rest/service_stub.rb +129 -0
- data/lib/google/cloud/discovery_engine/v1/rank_service/rest.rb +52 -0
- data/lib/google/cloud/discovery_engine/v1/rank_service.rb +55 -0
- data/lib/google/cloud/discovery_engine/v1/recommendation_service/client.rb +558 -0
- data/lib/google/cloud/discovery_engine/v1/recommendation_service/credentials.rb +47 -0
- data/lib/google/cloud/discovery_engine/v1/recommendation_service/paths.rb +220 -0
- data/lib/google/cloud/discovery_engine/v1/recommendation_service/rest/client.rb +525 -0
- data/lib/google/cloud/discovery_engine/v1/recommendation_service/rest/service_stub.rb +145 -0
- data/lib/google/cloud/discovery_engine/v1/recommendation_service/rest.rb +52 -0
- data/lib/google/cloud/discovery_engine/v1/recommendation_service.rb +55 -0
- data/lib/google/cloud/discovery_engine/v1/rest.rb +5 -0
- data/lib/google/cloud/discovery_engine/v1/schema_service/client.rb +18 -10
- data/lib/google/cloud/discovery_engine/v1/schema_service/operations.rb +13 -5
- data/lib/google/cloud/discovery_engine/v1/schema_service/rest/client.rb +18 -10
- data/lib/google/cloud/discovery_engine/v1/schema_service/rest/operations.rb +28 -5
- data/lib/google/cloud/discovery_engine/v1/search_service/client.rb +26 -13
- data/lib/google/cloud/discovery_engine/v1/search_service/paths.rb +45 -0
- data/lib/google/cloud/discovery_engine/v1/search_service/rest/client.rb +26 -13
- data/lib/google/cloud/discovery_engine/v1/site_search_engine_service/client.rb +27 -12
- data/lib/google/cloud/discovery_engine/v1/site_search_engine_service/operations.rb +13 -5
- data/lib/google/cloud/discovery_engine/v1/site_search_engine_service/rest/client.rb +27 -12
- data/lib/google/cloud/discovery_engine/v1/site_search_engine_service/rest/operations.rb +28 -5
- data/lib/google/cloud/discovery_engine/v1/user_event_service/client.rb +23 -6
- data/lib/google/cloud/discovery_engine/v1/user_event_service/operations.rb +13 -5
- data/lib/google/cloud/discovery_engine/v1/user_event_service/paths.rb +21 -0
- data/lib/google/cloud/discovery_engine/v1/user_event_service/rest/client.rb +23 -6
- data/lib/google/cloud/discovery_engine/v1/user_event_service/rest/operations.rb +28 -5
- data/lib/google/cloud/discovery_engine/v1/user_event_service/rest/service_stub.rb +8 -0
- data/lib/google/cloud/discovery_engine/v1/version.rb +1 -1
- data/lib/google/cloud/discovery_engine/v1.rb +5 -0
- data/lib/google/cloud/discoveryengine/v1/answer_pb.rb +69 -0
- data/lib/google/cloud/discoveryengine/v1/common_pb.rb +2 -1
- data/lib/google/cloud/discoveryengine/v1/control_pb.rb +55 -0
- data/lib/google/cloud/discoveryengine/v1/control_service_pb.rb +57 -0
- data/lib/google/cloud/discoveryengine/v1/control_service_services_pb.rb +69 -0
- data/lib/google/cloud/discoveryengine/v1/conversational_search_service_pb.rb +32 -1
- data/lib/google/cloud/discoveryengine/v1/conversational_search_service_services_pb.rb +25 -0
- data/lib/google/cloud/discoveryengine/v1/data_store_pb.rb +5 -1
- data/lib/google/cloud/discoveryengine/v1/document_pb.rb +3 -1
- data/lib/google/cloud/discoveryengine/v1/document_processing_config_pb.rb +48 -0
- data/lib/google/cloud/discoveryengine/v1/document_service_pb.rb +3 -1
- data/lib/google/cloud/discoveryengine/v1/document_service_services_pb.rb +1 -1
- data/lib/google/cloud/discoveryengine/v1/engine_pb.rb +1 -1
- data/lib/google/cloud/discoveryengine/v1/grounded_generation_service_pb.rb +52 -0
- data/lib/google/cloud/discoveryengine/v1/grounded_generation_service_services_pb.rb +45 -0
- data/lib/google/cloud/discoveryengine/v1/grounding_pb.rb +46 -0
- data/lib/google/cloud/discoveryengine/v1/import_config_pb.rb +13 -1
- data/lib/google/cloud/discoveryengine/v1/project_pb.rb +49 -0
- data/lib/google/cloud/discoveryengine/v1/project_service_pb.rb +50 -0
- data/lib/google/cloud/discoveryengine/v1/project_service_services_pb.rb +51 -0
- data/lib/google/cloud/discoveryengine/v1/purge_config_pb.rb +1 -1
- data/lib/google/cloud/discoveryengine/v1/rank_service_pb.rb +49 -0
- data/lib/google/cloud/discoveryengine/v1/rank_service_services_pb.rb +45 -0
- data/lib/google/cloud/discoveryengine/v1/recommendation_service_pb.rb +55 -0
- data/lib/google/cloud/discoveryengine/v1/recommendation_service_services_pb.rb +45 -0
- data/lib/google/cloud/discoveryengine/v1/search_service_pb.rb +4 -1
- data/lib/google/cloud/discoveryengine/v1/session_pb.rb +50 -0
- data/lib/google/cloud/discoveryengine/v1/site_search_engine_pb.rb +1 -1
- data/lib/google/cloud/discoveryengine/v1/user_event_pb.rb +1 -1
- data/lib/google/cloud/discoveryengine/v1/user_event_service_pb.rb +1 -1
- data/lib/google/cloud/discoveryengine/v1/user_event_service_services_pb.rb +1 -1
- data/proto_docs/google/api/client.rb +4 -0
- data/proto_docs/google/cloud/discoveryengine/v1/answer.rb +362 -0
- data/proto_docs/google/cloud/discoveryengine/v1/common.rb +25 -1
- data/proto_docs/google/cloud/discoveryengine/v1/control.rb +207 -0
- data/proto_docs/google/cloud/discoveryengine/v1/control_service.rb +126 -0
- data/proto_docs/google/cloud/discoveryengine/v1/conversation.rb +2 -2
- data/proto_docs/google/cloud/discoveryengine/v1/conversational_search_service.rb +490 -0
- data/proto_docs/google/cloud/discoveryengine/v1/data_store.rb +19 -0
- data/proto_docs/google/cloud/discoveryengine/v1/data_store_service.rb +2 -2
- data/proto_docs/google/cloud/discoveryengine/v1/document.rb +7 -0
- data/proto_docs/google/cloud/discoveryengine/v1/document_processing_config.rb +102 -0
- data/proto_docs/google/cloud/discoveryengine/v1/document_service.rb +8 -4
- data/proto_docs/google/cloud/discoveryengine/v1/engine.rb +5 -5
- data/proto_docs/google/cloud/discoveryengine/v1/grounded_generation_service.rb +144 -0
- data/proto_docs/google/cloud/discoveryengine/v1/grounding.rb +79 -0
- data/proto_docs/google/cloud/discoveryengine/v1/import_config.rb +313 -24
- data/proto_docs/google/cloud/discoveryengine/v1/project.rb +106 -0
- data/proto_docs/google/cloud/discoveryengine/v1/project_service.rb +57 -0
- data/proto_docs/google/cloud/discoveryengine/v1/purge_config.rb +3 -0
- data/proto_docs/google/cloud/discoveryengine/v1/rank_service.rb +124 -0
- data/proto_docs/google/cloud/discoveryengine/v1/recommendation_service.rb +229 -0
- data/proto_docs/google/cloud/discoveryengine/v1/schema_service.rb +5 -5
- data/proto_docs/google/cloud/discoveryengine/v1/search_service.rb +150 -37
- data/proto_docs/google/cloud/discoveryengine/v1/session.rb +88 -0
- data/proto_docs/google/cloud/discoveryengine/v1/site_search_engine.rb +3 -0
- data/proto_docs/google/cloud/discoveryengine/v1/user_event.rb +40 -14
- data/proto_docs/google/cloud/discoveryengine/v1/user_event_service.rb +13 -1
- metadata +66 -2
@@ -0,0 +1,52 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2024 Google LLC
|
4
|
+
#
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
+
# you may not use this file except in compliance with the License.
|
7
|
+
# You may obtain a copy of the License at
|
8
|
+
#
|
9
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
#
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
+
# See the License for the specific language governing permissions and
|
15
|
+
# limitations under the License.
|
16
|
+
|
17
|
+
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
18
|
+
|
19
|
+
require "gapic/rest"
|
20
|
+
require "gapic/config"
|
21
|
+
require "gapic/config/method"
|
22
|
+
|
23
|
+
require "google/cloud/discovery_engine/v1/version"
|
24
|
+
|
25
|
+
require "google/cloud/discovery_engine/v1/recommendation_service/credentials"
|
26
|
+
require "google/cloud/discovery_engine/v1/recommendation_service/paths"
|
27
|
+
require "google/cloud/discovery_engine/v1/recommendation_service/rest/client"
|
28
|
+
|
29
|
+
module Google
|
30
|
+
module Cloud
|
31
|
+
module DiscoveryEngine
|
32
|
+
module V1
|
33
|
+
##
|
34
|
+
# Service for making recommendations.
|
35
|
+
#
|
36
|
+
# To load this service and instantiate a REST client:
|
37
|
+
#
|
38
|
+
# require "google/cloud/discovery_engine/v1/recommendation_service/rest"
|
39
|
+
# client = ::Google::Cloud::DiscoveryEngine::V1::RecommendationService::Rest::Client.new
|
40
|
+
#
|
41
|
+
module RecommendationService
|
42
|
+
# Client for the REST transport
|
43
|
+
module Rest
|
44
|
+
end
|
45
|
+
end
|
46
|
+
end
|
47
|
+
end
|
48
|
+
end
|
49
|
+
end
|
50
|
+
|
51
|
+
helper_path = ::File.join __dir__, "rest", "helpers.rb"
|
52
|
+
require "google/cloud/discovery_engine/v1/recommendation_service/rest/helpers" if ::File.file? helper_path
|
@@ -0,0 +1,55 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2024 Google LLC
|
4
|
+
#
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
+
# you may not use this file except in compliance with the License.
|
7
|
+
# You may obtain a copy of the License at
|
8
|
+
#
|
9
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
#
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
+
# See the License for the specific language governing permissions and
|
15
|
+
# limitations under the License.
|
16
|
+
|
17
|
+
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
18
|
+
|
19
|
+
require "gapic/common"
|
20
|
+
require "gapic/config"
|
21
|
+
require "gapic/config/method"
|
22
|
+
|
23
|
+
require "google/cloud/discovery_engine/v1/version"
|
24
|
+
|
25
|
+
require "google/cloud/discovery_engine/v1/recommendation_service/credentials"
|
26
|
+
require "google/cloud/discovery_engine/v1/recommendation_service/paths"
|
27
|
+
require "google/cloud/discovery_engine/v1/recommendation_service/client"
|
28
|
+
require "google/cloud/discovery_engine/v1/recommendation_service/rest"
|
29
|
+
|
30
|
+
module Google
|
31
|
+
module Cloud
|
32
|
+
module DiscoveryEngine
|
33
|
+
module V1
|
34
|
+
##
|
35
|
+
# Service for making recommendations.
|
36
|
+
#
|
37
|
+
# @example Load this service and instantiate a gRPC client
|
38
|
+
#
|
39
|
+
# require "google/cloud/discovery_engine/v1/recommendation_service"
|
40
|
+
# client = ::Google::Cloud::DiscoveryEngine::V1::RecommendationService::Client.new
|
41
|
+
#
|
42
|
+
# @example Load this service and instantiate a REST client
|
43
|
+
#
|
44
|
+
# require "google/cloud/discovery_engine/v1/recommendation_service/rest"
|
45
|
+
# client = ::Google::Cloud::DiscoveryEngine::V1::RecommendationService::Rest::Client.new
|
46
|
+
#
|
47
|
+
module RecommendationService
|
48
|
+
end
|
49
|
+
end
|
50
|
+
end
|
51
|
+
end
|
52
|
+
end
|
53
|
+
|
54
|
+
helper_path = ::File.join __dir__, "recommendation_service", "helpers.rb"
|
55
|
+
require "google/cloud/discovery_engine/v1/recommendation_service/helpers" if ::File.file? helper_path
|
@@ -17,11 +17,16 @@
|
|
17
17
|
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
18
18
|
|
19
19
|
require "google/cloud/discovery_engine/v1/completion_service/rest"
|
20
|
+
require "google/cloud/discovery_engine/v1/control_service/rest"
|
20
21
|
require "google/cloud/discovery_engine/v1/search_service/rest"
|
21
22
|
require "google/cloud/discovery_engine/v1/conversational_search_service/rest"
|
22
23
|
require "google/cloud/discovery_engine/v1/data_store_service/rest"
|
23
24
|
require "google/cloud/discovery_engine/v1/document_service/rest"
|
24
25
|
require "google/cloud/discovery_engine/v1/engine_service/rest"
|
26
|
+
require "google/cloud/discovery_engine/v1/grounded_generation_service/rest"
|
27
|
+
require "google/cloud/discovery_engine/v1/project_service/rest"
|
28
|
+
require "google/cloud/discovery_engine/v1/rank_service/rest"
|
29
|
+
require "google/cloud/discovery_engine/v1/recommendation_service/rest"
|
25
30
|
require "google/cloud/discovery_engine/v1/schema_service/rest"
|
26
31
|
require "google/cloud/discovery_engine/v1/site_search_engine_service/rest"
|
27
32
|
require "google/cloud/discovery_engine/v1/user_event_service/rest"
|
@@ -31,6 +31,9 @@ module Google
|
|
31
31
|
# Service for managing {::Google::Cloud::DiscoveryEngine::V1::Schema Schema}s.
|
32
32
|
#
|
33
33
|
class Client
|
34
|
+
# @private
|
35
|
+
API_VERSION = ""
|
36
|
+
|
34
37
|
# @private
|
35
38
|
DEFAULT_ENDPOINT_TEMPLATE = "discoveryengine.$UNIVERSE_DOMAIN$"
|
36
39
|
|
@@ -250,10 +253,11 @@ module Google
|
|
250
253
|
# Customize the options with defaults
|
251
254
|
metadata = @config.rpcs.get_schema.metadata.to_h
|
252
255
|
|
253
|
-
# Set x-goog-api-client
|
256
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
254
257
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
255
258
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
256
259
|
gapic_version: ::Google::Cloud::DiscoveryEngine::V1::VERSION
|
260
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
257
261
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
258
262
|
|
259
263
|
header_params = {}
|
@@ -306,9 +310,9 @@ module Google
|
|
306
310
|
# return. The service may return fewer than this value.
|
307
311
|
#
|
308
312
|
# If unspecified, at most 100
|
309
|
-
# {::Google::Cloud::DiscoveryEngine::V1::Schema Schema}s
|
313
|
+
# {::Google::Cloud::DiscoveryEngine::V1::Schema Schema}s are returned.
|
310
314
|
#
|
311
|
-
# The maximum value is 1000; values above 1000
|
315
|
+
# The maximum value is 1000; values above 1000 are set to 1000.
|
312
316
|
# @param page_token [::String]
|
313
317
|
# A page token, received from a previous
|
314
318
|
# {::Google::Cloud::DiscoveryEngine::V1::SchemaService::Client#list_schemas SchemaService.ListSchemas}
|
@@ -356,10 +360,11 @@ module Google
|
|
356
360
|
# Customize the options with defaults
|
357
361
|
metadata = @config.rpcs.list_schemas.metadata.to_h
|
358
362
|
|
359
|
-
# Set x-goog-api-client
|
363
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
360
364
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
361
365
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
362
366
|
gapic_version: ::Google::Cloud::DiscoveryEngine::V1::VERSION
|
367
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
363
368
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
364
369
|
|
365
370
|
header_params = {}
|
@@ -412,8 +417,8 @@ module Google
|
|
412
417
|
# Required. The {::Google::Cloud::DiscoveryEngine::V1::Schema Schema} to create.
|
413
418
|
# @param schema_id [::String]
|
414
419
|
# Required. The ID to use for the
|
415
|
-
# {::Google::Cloud::DiscoveryEngine::V1::Schema Schema}, which
|
416
|
-
#
|
420
|
+
# {::Google::Cloud::DiscoveryEngine::V1::Schema Schema}, which becomes the final
|
421
|
+
# component of the
|
417
422
|
# {::Google::Cloud::DiscoveryEngine::V1::Schema#name Schema.name}.
|
418
423
|
#
|
419
424
|
# This field should conform to
|
@@ -461,10 +466,11 @@ module Google
|
|
461
466
|
# Customize the options with defaults
|
462
467
|
metadata = @config.rpcs.create_schema.metadata.to_h
|
463
468
|
|
464
|
-
# Set x-goog-api-client
|
469
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
465
470
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
466
471
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
467
472
|
gapic_version: ::Google::Cloud::DiscoveryEngine::V1::VERSION
|
473
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
468
474
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
469
475
|
|
470
476
|
header_params = {}
|
@@ -514,7 +520,7 @@ module Google
|
|
514
520
|
# Required. The {::Google::Cloud::DiscoveryEngine::V1::Schema Schema} to update.
|
515
521
|
# @param allow_missing [::Boolean]
|
516
522
|
# If set to true, and the {::Google::Cloud::DiscoveryEngine::V1::Schema Schema} is
|
517
|
-
# not found, a new {::Google::Cloud::DiscoveryEngine::V1::Schema Schema}
|
523
|
+
# not found, a new {::Google::Cloud::DiscoveryEngine::V1::Schema Schema} is
|
518
524
|
# created. In this situation, `update_mask` is ignored.
|
519
525
|
#
|
520
526
|
# @yield [response, operation] Access the result along with the RPC operation
|
@@ -558,10 +564,11 @@ module Google
|
|
558
564
|
# Customize the options with defaults
|
559
565
|
metadata = @config.rpcs.update_schema.metadata.to_h
|
560
566
|
|
561
|
-
# Set x-goog-api-client
|
567
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
562
568
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
563
569
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
564
570
|
gapic_version: ::Google::Cloud::DiscoveryEngine::V1::VERSION
|
571
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
565
572
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
566
573
|
|
567
574
|
header_params = {}
|
@@ -652,10 +659,11 @@ module Google
|
|
652
659
|
# Customize the options with defaults
|
653
660
|
metadata = @config.rpcs.delete_schema.metadata.to_h
|
654
661
|
|
655
|
-
# Set x-goog-api-client
|
662
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
656
663
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
657
664
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
658
665
|
gapic_version: ::Google::Cloud::DiscoveryEngine::V1::VERSION
|
666
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
659
667
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
660
668
|
|
661
669
|
header_params = {}
|
@@ -26,6 +26,9 @@ module Google
|
|
26
26
|
module SchemaService
|
27
27
|
# Service that implements Longrunning Operations API.
|
28
28
|
class Operations
|
29
|
+
# @private
|
30
|
+
API_VERSION = ""
|
31
|
+
|
29
32
|
# @private
|
30
33
|
DEFAULT_ENDPOINT_TEMPLATE = "discoveryengine.$UNIVERSE_DOMAIN$"
|
31
34
|
|
@@ -191,10 +194,11 @@ module Google
|
|
191
194
|
# Customize the options with defaults
|
192
195
|
metadata = @config.rpcs.list_operations.metadata.to_h
|
193
196
|
|
194
|
-
# Set x-goog-api-client
|
197
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
195
198
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
196
199
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
197
200
|
gapic_version: ::Google::Cloud::DiscoveryEngine::V1::VERSION
|
201
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
198
202
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
199
203
|
|
200
204
|
header_params = {}
|
@@ -287,10 +291,11 @@ module Google
|
|
287
291
|
# Customize the options with defaults
|
288
292
|
metadata = @config.rpcs.get_operation.metadata.to_h
|
289
293
|
|
290
|
-
# Set x-goog-api-client
|
294
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
291
295
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
292
296
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
293
297
|
gapic_version: ::Google::Cloud::DiscoveryEngine::V1::VERSION
|
298
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
294
299
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
295
300
|
|
296
301
|
header_params = {}
|
@@ -376,10 +381,11 @@ module Google
|
|
376
381
|
# Customize the options with defaults
|
377
382
|
metadata = @config.rpcs.delete_operation.metadata.to_h
|
378
383
|
|
379
|
-
# Set x-goog-api-client
|
384
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
380
385
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
381
386
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
382
387
|
gapic_version: ::Google::Cloud::DiscoveryEngine::V1::VERSION
|
388
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
383
389
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
384
390
|
|
385
391
|
header_params = {}
|
@@ -470,10 +476,11 @@ module Google
|
|
470
476
|
# Customize the options with defaults
|
471
477
|
metadata = @config.rpcs.cancel_operation.metadata.to_h
|
472
478
|
|
473
|
-
# Set x-goog-api-client
|
479
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
474
480
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
475
481
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
476
482
|
gapic_version: ::Google::Cloud::DiscoveryEngine::V1::VERSION
|
483
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
477
484
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
478
485
|
|
479
486
|
header_params = {}
|
@@ -574,10 +581,11 @@ module Google
|
|
574
581
|
# Customize the options with defaults
|
575
582
|
metadata = @config.rpcs.wait_operation.metadata.to_h
|
576
583
|
|
577
|
-
# Set x-goog-api-client
|
584
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
578
585
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
579
586
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
580
587
|
gapic_version: ::Google::Cloud::DiscoveryEngine::V1::VERSION
|
588
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
581
589
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
582
590
|
|
583
591
|
options.apply_defaults timeout: @config.rpcs.wait_operation.timeout,
|
@@ -33,6 +33,9 @@ module Google
|
|
33
33
|
# Service for managing {::Google::Cloud::DiscoveryEngine::V1::Schema Schema}s.
|
34
34
|
#
|
35
35
|
class Client
|
36
|
+
# @private
|
37
|
+
API_VERSION = ""
|
38
|
+
|
36
39
|
# @private
|
37
40
|
DEFAULT_ENDPOINT_TEMPLATE = "discoveryengine.$UNIVERSE_DOMAIN$"
|
38
41
|
|
@@ -242,12 +245,13 @@ module Google
|
|
242
245
|
# Customize the options with defaults
|
243
246
|
call_metadata = @config.rpcs.get_schema.metadata.to_h
|
244
247
|
|
245
|
-
# Set x-goog-api-client
|
248
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
246
249
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
247
250
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
248
251
|
gapic_version: ::Google::Cloud::DiscoveryEngine::V1::VERSION,
|
249
252
|
transports_version_send: [:rest]
|
250
253
|
|
254
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
251
255
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
252
256
|
|
253
257
|
options.apply_defaults timeout: @config.rpcs.get_schema.timeout,
|
@@ -292,9 +296,9 @@ module Google
|
|
292
296
|
# return. The service may return fewer than this value.
|
293
297
|
#
|
294
298
|
# If unspecified, at most 100
|
295
|
-
# {::Google::Cloud::DiscoveryEngine::V1::Schema Schema}s
|
299
|
+
# {::Google::Cloud::DiscoveryEngine::V1::Schema Schema}s are returned.
|
296
300
|
#
|
297
|
-
# The maximum value is 1000; values above 1000
|
301
|
+
# The maximum value is 1000; values above 1000 are set to 1000.
|
298
302
|
# @param page_token [::String]
|
299
303
|
# A page token, received from a previous
|
300
304
|
# {::Google::Cloud::DiscoveryEngine::V1::SchemaService::Rest::Client#list_schemas SchemaService.ListSchemas}
|
@@ -341,12 +345,13 @@ module Google
|
|
341
345
|
# Customize the options with defaults
|
342
346
|
call_metadata = @config.rpcs.list_schemas.metadata.to_h
|
343
347
|
|
344
|
-
# Set x-goog-api-client
|
348
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
345
349
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
346
350
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
347
351
|
gapic_version: ::Google::Cloud::DiscoveryEngine::V1::VERSION,
|
348
352
|
transports_version_send: [:rest]
|
349
353
|
|
354
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
350
355
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
351
356
|
|
352
357
|
options.apply_defaults timeout: @config.rpcs.list_schemas.timeout,
|
@@ -391,8 +396,8 @@ module Google
|
|
391
396
|
# Required. The {::Google::Cloud::DiscoveryEngine::V1::Schema Schema} to create.
|
392
397
|
# @param schema_id [::String]
|
393
398
|
# Required. The ID to use for the
|
394
|
-
# {::Google::Cloud::DiscoveryEngine::V1::Schema Schema}, which
|
395
|
-
#
|
399
|
+
# {::Google::Cloud::DiscoveryEngine::V1::Schema Schema}, which becomes the final
|
400
|
+
# component of the
|
396
401
|
# {::Google::Cloud::DiscoveryEngine::V1::Schema#name Schema.name}.
|
397
402
|
#
|
398
403
|
# This field should conform to
|
@@ -439,12 +444,13 @@ module Google
|
|
439
444
|
# Customize the options with defaults
|
440
445
|
call_metadata = @config.rpcs.create_schema.metadata.to_h
|
441
446
|
|
442
|
-
# Set x-goog-api-client
|
447
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
443
448
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
444
449
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
445
450
|
gapic_version: ::Google::Cloud::DiscoveryEngine::V1::VERSION,
|
446
451
|
transports_version_send: [:rest]
|
447
452
|
|
453
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
448
454
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
449
455
|
|
450
456
|
options.apply_defaults timeout: @config.rpcs.create_schema.timeout,
|
@@ -486,7 +492,7 @@ module Google
|
|
486
492
|
# Required. The {::Google::Cloud::DiscoveryEngine::V1::Schema Schema} to update.
|
487
493
|
# @param allow_missing [::Boolean]
|
488
494
|
# If set to true, and the {::Google::Cloud::DiscoveryEngine::V1::Schema Schema} is
|
489
|
-
# not found, a new {::Google::Cloud::DiscoveryEngine::V1::Schema Schema}
|
495
|
+
# not found, a new {::Google::Cloud::DiscoveryEngine::V1::Schema Schema} is
|
490
496
|
# created. In this situation, `update_mask` is ignored.
|
491
497
|
# @yield [result, operation] Access the result along with the TransportOperation object
|
492
498
|
# @yieldparam result [::Gapic::Operation]
|
@@ -529,12 +535,13 @@ module Google
|
|
529
535
|
# Customize the options with defaults
|
530
536
|
call_metadata = @config.rpcs.update_schema.metadata.to_h
|
531
537
|
|
532
|
-
# Set x-goog-api-client
|
538
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
533
539
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
534
540
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
535
541
|
gapic_version: ::Google::Cloud::DiscoveryEngine::V1::VERSION,
|
536
542
|
transports_version_send: [:rest]
|
537
543
|
|
544
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
538
545
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
539
546
|
|
540
547
|
options.apply_defaults timeout: @config.rpcs.update_schema.timeout,
|
@@ -616,12 +623,13 @@ module Google
|
|
616
623
|
# Customize the options with defaults
|
617
624
|
call_metadata = @config.rpcs.delete_schema.metadata.to_h
|
618
625
|
|
619
|
-
# Set x-goog-api-client
|
626
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
620
627
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
621
628
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
622
629
|
gapic_version: ::Google::Cloud::DiscoveryEngine::V1::VERSION,
|
623
630
|
transports_version_send: [:rest]
|
624
631
|
|
632
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
625
633
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
626
634
|
|
627
635
|
options.apply_defaults timeout: @config.rpcs.delete_schema.timeout,
|
@@ -26,6 +26,9 @@ module Google
|
|
26
26
|
module Rest
|
27
27
|
# Service that implements Longrunning Operations API.
|
28
28
|
class Operations
|
29
|
+
# @private
|
30
|
+
API_VERSION = ""
|
31
|
+
|
29
32
|
# @private
|
30
33
|
DEFAULT_ENDPOINT_TEMPLATE = "discoveryengine.$UNIVERSE_DOMAIN$"
|
31
34
|
|
@@ -181,12 +184,13 @@ module Google
|
|
181
184
|
# Customize the options with defaults
|
182
185
|
call_metadata = @config.rpcs.list_operations.metadata.to_h
|
183
186
|
|
184
|
-
# Set x-goog-api-client
|
187
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
185
188
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
186
189
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
187
190
|
gapic_version: ::Google::Cloud::DiscoveryEngine::V1::VERSION,
|
188
191
|
transports_version_send: [:rest]
|
189
192
|
|
193
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
190
194
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
191
195
|
|
192
196
|
options.apply_defaults timeout: @config.rpcs.list_operations.timeout,
|
@@ -269,12 +273,13 @@ module Google
|
|
269
273
|
# Customize the options with defaults
|
270
274
|
call_metadata = @config.rpcs.get_operation.metadata.to_h
|
271
275
|
|
272
|
-
# Set x-goog-api-client
|
276
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
273
277
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
274
278
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
275
279
|
gapic_version: ::Google::Cloud::DiscoveryEngine::V1::VERSION,
|
276
280
|
transports_version_send: [:rest]
|
277
281
|
|
282
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
278
283
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
279
284
|
|
280
285
|
options.apply_defaults timeout: @config.rpcs.get_operation.timeout,
|
@@ -351,12 +356,13 @@ module Google
|
|
351
356
|
# Customize the options with defaults
|
352
357
|
call_metadata = @config.rpcs.delete_operation.metadata.to_h
|
353
358
|
|
354
|
-
# Set x-goog-api-client
|
359
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
355
360
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
356
361
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
357
362
|
gapic_version: ::Google::Cloud::DiscoveryEngine::V1::VERSION,
|
358
363
|
transports_version_send: [:rest]
|
359
364
|
|
365
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
360
366
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
361
367
|
|
362
368
|
options.apply_defaults timeout: @config.rpcs.delete_operation.timeout,
|
@@ -438,12 +444,13 @@ module Google
|
|
438
444
|
# Customize the options with defaults
|
439
445
|
call_metadata = @config.rpcs.cancel_operation.metadata.to_h
|
440
446
|
|
441
|
-
# Set x-goog-api-client
|
447
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
442
448
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
443
449
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
444
450
|
gapic_version: ::Google::Cloud::DiscoveryEngine::V1::VERSION,
|
445
451
|
transports_version_send: [:rest]
|
446
452
|
|
453
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
447
454
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
448
455
|
|
449
456
|
options.apply_defaults timeout: @config.rpcs.cancel_operation.timeout,
|
@@ -1077,7 +1084,23 @@ module Google
|
|
1077
1084
|
uri_template: "/v1/{name}:cancel",
|
1078
1085
|
body: "*",
|
1079
1086
|
matches: [
|
1080
|
-
["name", %r{^operations
|
1087
|
+
["name", %r{^projects/[^/]+/operations/[^/]+/?$}, false]
|
1088
|
+
]
|
1089
|
+
)
|
1090
|
+
.with_bindings(
|
1091
|
+
uri_method: :post,
|
1092
|
+
uri_template: "/v1/{name}:cancel",
|
1093
|
+
body: "*",
|
1094
|
+
matches: [
|
1095
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/collections/[^/]+/dataStores/[^/]+/branches/[^/]+/operations/[^/]+/?$}, false]
|
1096
|
+
]
|
1097
|
+
)
|
1098
|
+
.with_bindings(
|
1099
|
+
uri_method: :post,
|
1100
|
+
uri_template: "/v1/{name}:cancel",
|
1101
|
+
body: "*",
|
1102
|
+
matches: [
|
1103
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/dataStores/[^/]+/branches/[^/]+/operations/[^/]+/?$}, false]
|
1081
1104
|
]
|
1082
1105
|
)
|
1083
1106
|
transcoder.transcode request_pb
|
@@ -31,6 +31,9 @@ module Google
|
|
31
31
|
# Service for search.
|
32
32
|
#
|
33
33
|
class Client
|
34
|
+
# @private
|
35
|
+
API_VERSION = ""
|
36
|
+
|
34
37
|
# @private
|
35
38
|
DEFAULT_ENDPOINT_TEMPLATE = "discoveryengine.$UNIVERSE_DOMAIN$"
|
36
39
|
|
@@ -68,9 +71,9 @@ module Google
|
|
68
71
|
end
|
69
72
|
default_config = Client::Configuration.new parent_config
|
70
73
|
|
71
|
-
default_config.timeout =
|
74
|
+
default_config.timeout = 30.0
|
72
75
|
default_config.retry_policy = {
|
73
|
-
initial_delay: 0
|
76
|
+
initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14]
|
74
77
|
}
|
75
78
|
|
76
79
|
default_config
|
@@ -193,7 +196,7 @@ module Google
|
|
193
196
|
# @param options [::Gapic::CallOptions, ::Hash]
|
194
197
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
195
198
|
#
|
196
|
-
# @overload search(serving_config: nil, branch: nil, query: nil, image_query: nil, page_size: nil, page_token: nil, offset: nil, filter: nil, canonical_filter: nil, order_by: nil, user_info: nil, facet_specs: nil, boost_spec: nil, params: nil, query_expansion_spec: nil, spell_correction_spec: nil, user_pseudo_id: nil, content_search_spec: nil, safe_search: nil, user_labels: nil)
|
199
|
+
# @overload search(serving_config: nil, branch: nil, query: nil, image_query: nil, page_size: nil, page_token: nil, offset: nil, data_store_specs: nil, filter: nil, canonical_filter: nil, order_by: nil, user_info: nil, facet_specs: nil, boost_spec: nil, params: nil, query_expansion_spec: nil, spell_correction_spec: nil, user_pseudo_id: nil, content_search_spec: nil, safe_search: nil, user_labels: nil)
|
197
200
|
# Pass arguments to `search` via keyword arguments. Note that at
|
198
201
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
199
202
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
@@ -217,10 +220,14 @@ module Google
|
|
217
220
|
# Raw image query.
|
218
221
|
# @param page_size [::Integer]
|
219
222
|
# Maximum number of {::Google::Cloud::DiscoveryEngine::V1::Document Document}s to
|
220
|
-
# return.
|
221
|
-
#
|
223
|
+
# return. The maximum allowed value depends on the data type. Values above
|
224
|
+
# the maximum value are coerced to the maximum value.
|
222
225
|
#
|
223
|
-
#
|
226
|
+
# * Websites with basic indexing: Default `10`, Maximum `25`.
|
227
|
+
# * Websites with advanced indexing: Default `25`, Maximum `50`.
|
228
|
+
# * Other: Default `50`, Maximum `100`.
|
229
|
+
#
|
230
|
+
# If this field is negative, an `INVALID_ARGUMENT` is returned.
|
224
231
|
# @param page_token [::String]
|
225
232
|
# A page token received from a previous
|
226
233
|
# {::Google::Cloud::DiscoveryEngine::V1::SearchService::Client#search SearchService.Search}
|
@@ -239,6 +246,11 @@ module Google
|
|
239
246
|
# unset.
|
240
247
|
#
|
241
248
|
# If this field is negative, an `INVALID_ARGUMENT` is returned.
|
249
|
+
# @param data_store_specs [::Array<::Google::Cloud::DiscoveryEngine::V1::SearchRequest::DataStoreSpec, ::Hash>]
|
250
|
+
# Specs defining dataStores to filter on in a search call and configurations
|
251
|
+
# for those dataStores. This is only considered for engines with multiple
|
252
|
+
# dataStores use case. For single dataStore within an engine, they should
|
253
|
+
# use the specs at the top level.
|
242
254
|
# @param filter [::String]
|
243
255
|
# The filter syntax consists of an expression language for constructing a
|
244
256
|
# predicate from one or more fields of the documents being filtered. Filter
|
@@ -272,7 +284,9 @@ module Google
|
|
272
284
|
# The order in which documents are returned. Documents can be ordered by
|
273
285
|
# a field in an {::Google::Cloud::DiscoveryEngine::V1::Document Document} object.
|
274
286
|
# Leave it unset if ordered by relevance. `order_by` expression is
|
275
|
-
# case-sensitive.
|
287
|
+
# case-sensitive.
|
288
|
+
#
|
289
|
+
# For more information on ordering for retail search, see
|
276
290
|
# [Ordering](https://cloud.google.com/retail/docs/filter-and-order#order)
|
277
291
|
#
|
278
292
|
# If this field is unrecognizable, an `INVALID_ARGUMENT` is returned.
|
@@ -289,7 +303,7 @@ module Google
|
|
289
303
|
# @param boost_spec [::Google::Cloud::DiscoveryEngine::V1::SearchRequest::BoostSpec, ::Hash]
|
290
304
|
# Boost specification to boost certain documents.
|
291
305
|
# For more information on boosting, see
|
292
|
-
# [Boosting](https://cloud.google.com/
|
306
|
+
# [Boosting](https://cloud.google.com/generative-ai-app-builder/docs/boost-search-results)
|
293
307
|
# @param params [::Hash{::String => ::Google::Protobuf::Value, ::Hash}]
|
294
308
|
# Additional search parameters.
|
295
309
|
#
|
@@ -297,8 +311,7 @@ module Google
|
|
297
311
|
#
|
298
312
|
# * `user_country_code`: string. Default empty. If set to non-empty, results
|
299
313
|
# are restricted or boosted based on the location provided.
|
300
|
-
#
|
301
|
-
# user_country_code: "au"
|
314
|
+
# For example, `user_country_code: "au"`
|
302
315
|
#
|
303
316
|
# For available codes see [Country
|
304
317
|
# Codes](https://developers.google.com/custom-search/docs/json_api_reference#countryCodes)
|
@@ -306,8 +319,7 @@ module Google
|
|
306
319
|
# * `search_type`: double. Default empty. Enables non-webpage searching
|
307
320
|
# depending on the value. The only valid non-default value is 1,
|
308
321
|
# which enables image searching.
|
309
|
-
#
|
310
|
-
# search_type: 1
|
322
|
+
# For example, `search_type: 1`
|
311
323
|
# @param query_expansion_spec [::Google::Cloud::DiscoveryEngine::V1::SearchRequest::QueryExpansionSpec, ::Hash]
|
312
324
|
# The query expansion specification that specifies the conditions under which
|
313
325
|
# query expansion occurs.
|
@@ -391,10 +403,11 @@ module Google
|
|
391
403
|
# Customize the options with defaults
|
392
404
|
metadata = @config.rpcs.search.metadata.to_h
|
393
405
|
|
394
|
-
# Set x-goog-api-client
|
406
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
395
407
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
396
408
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
397
409
|
gapic_version: ::Google::Cloud::DiscoveryEngine::V1::VERSION
|
410
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
398
411
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
399
412
|
|
400
413
|
header_params = {}
|