google-cloud-discovery_engine-v1 1.0.2 → 1.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (89) hide show
  1. checksums.yaml +4 -4
  2. data/lib/google/cloud/discovery_engine/v1/completion_service/rest/operations.rb +14 -0
  3. data/lib/google/cloud/discovery_engine/v1/control_service/client.rb +6 -6
  4. data/lib/google/cloud/discovery_engine/v1/control_service/rest/client.rb +6 -6
  5. data/lib/google/cloud/discovery_engine/v1/conversational_search_service/client.rb +15 -12
  6. data/lib/google/cloud/discovery_engine/v1/conversational_search_service/rest/client.rb +15 -12
  7. data/lib/google/cloud/discovery_engine/v1/data_store_service/client.rb +10 -1
  8. data/lib/google/cloud/discovery_engine/v1/data_store_service/rest/client.rb +10 -1
  9. data/lib/google/cloud/discovery_engine/v1/data_store_service/rest/operations.rb +14 -0
  10. data/lib/google/cloud/discovery_engine/v1/document_service/client.rb +109 -1
  11. data/lib/google/cloud/discovery_engine/v1/document_service/paths.rb +25 -0
  12. data/lib/google/cloud/discovery_engine/v1/document_service/rest/client.rb +102 -1
  13. data/lib/google/cloud/discovery_engine/v1/document_service/rest/operations.rb +14 -0
  14. data/lib/google/cloud/discovery_engine/v1/document_service/rest/service_stub.rb +66 -0
  15. data/lib/google/cloud/discovery_engine/v1/engine_service/rest/operations.rb +14 -0
  16. data/lib/google/cloud/discovery_engine/v1/grounded_generation_service/client.rb +219 -3
  17. data/lib/google/cloud/discovery_engine/v1/grounded_generation_service/paths.rb +85 -0
  18. data/lib/google/cloud/discovery_engine/v1/grounded_generation_service/rest/client.rb +126 -3
  19. data/lib/google/cloud/discovery_engine/v1/grounded_generation_service/rest/service_stub.rb +60 -0
  20. data/lib/google/cloud/discovery_engine/v1/project_service/rest/operations.rb +14 -0
  21. data/lib/google/cloud/discovery_engine/v1/rank_service/client.rb +1 -1
  22. data/lib/google/cloud/discovery_engine/v1/rank_service/rest/client.rb +1 -1
  23. data/lib/google/cloud/discovery_engine/v1/recommendation_service/client.rb +2 -1
  24. data/lib/google/cloud/discovery_engine/v1/recommendation_service/rest/client.rb +2 -1
  25. data/lib/google/cloud/discovery_engine/v1/rest.rb +1 -0
  26. data/lib/google/cloud/discovery_engine/v1/schema_service/rest/operations.rb +14 -0
  27. data/lib/google/cloud/discovery_engine/v1/search_service/client.rb +11 -4
  28. data/lib/google/cloud/discovery_engine/v1/search_service/rest/client.rb +11 -4
  29. data/lib/google/cloud/discovery_engine/v1/search_tuning_service/client.rb +571 -0
  30. data/lib/google/cloud/discovery_engine/v1/search_tuning_service/credentials.rb +47 -0
  31. data/lib/google/cloud/discovery_engine/v1/search_tuning_service/operations.rb +809 -0
  32. data/lib/google/cloud/discovery_engine/v1/search_tuning_service/paths.rb +78 -0
  33. data/lib/google/cloud/discovery_engine/v1/search_tuning_service/rest/client.rb +531 -0
  34. data/lib/google/cloud/discovery_engine/v1/search_tuning_service/rest/operations.rb +1128 -0
  35. data/lib/google/cloud/discovery_engine/v1/search_tuning_service/rest/service_stub.rb +188 -0
  36. data/lib/google/cloud/discovery_engine/v1/search_tuning_service/rest.rb +53 -0
  37. data/lib/google/cloud/discovery_engine/v1/search_tuning_service.rb +56 -0
  38. data/lib/google/cloud/discovery_engine/v1/site_search_engine_service/client.rb +5 -1
  39. data/lib/google/cloud/discovery_engine/v1/site_search_engine_service/rest/client.rb +5 -1
  40. data/lib/google/cloud/discovery_engine/v1/site_search_engine_service/rest/operations.rb +14 -0
  41. data/lib/google/cloud/discovery_engine/v1/user_event_service/client.rb +139 -0
  42. data/lib/google/cloud/discovery_engine/v1/user_event_service/rest/client.rb +132 -0
  43. data/lib/google/cloud/discovery_engine/v1/user_event_service/rest/operations.rb +14 -0
  44. data/lib/google/cloud/discovery_engine/v1/user_event_service/rest/service_stub.rb +68 -0
  45. data/lib/google/cloud/discovery_engine/v1/version.rb +1 -1
  46. data/lib/google/cloud/discovery_engine/v1.rb +1 -0
  47. data/lib/google/cloud/discoveryengine/v1/answer_pb.rb +2 -1
  48. data/lib/google/cloud/discoveryengine/v1/common_pb.rb +1 -1
  49. data/lib/google/cloud/discoveryengine/v1/conversational_search_service_pb.rb +2 -1
  50. data/lib/google/cloud/discoveryengine/v1/custom_tuning_model_pb.rb +48 -0
  51. data/lib/google/cloud/discoveryengine/v1/data_store_pb.rb +4 -1
  52. data/lib/google/cloud/discoveryengine/v1/data_store_service_pb.rb +1 -1
  53. data/lib/google/cloud/discoveryengine/v1/document_pb.rb +4 -1
  54. data/lib/google/cloud/discoveryengine/v1/document_service_pb.rb +11 -1
  55. data/lib/google/cloud/discoveryengine/v1/document_service_services_pb.rb +4 -0
  56. data/lib/google/cloud/discoveryengine/v1/engine_pb.rb +1 -1
  57. data/lib/google/cloud/discoveryengine/v1/grounded_generation_service_pb.rb +23 -1
  58. data/lib/google/cloud/discoveryengine/v1/grounded_generation_service_services_pb.rb +4 -0
  59. data/lib/google/cloud/discoveryengine/v1/import_config_pb.rb +1 -1
  60. data/lib/google/cloud/discoveryengine/v1/purge_config_pb.rb +8 -1
  61. data/lib/google/cloud/discoveryengine/v1/search_service_pb.rb +5 -1
  62. data/lib/google/cloud/discoveryengine/v1/search_tuning_service_pb.rb +61 -0
  63. data/lib/google/cloud/discoveryengine/v1/search_tuning_service_services_pb.rb +47 -0
  64. data/lib/google/cloud/discoveryengine/v1/site_search_engine_service_pb.rb +1 -1
  65. data/lib/google/cloud/discoveryengine/v1/user_event_pb.rb +1 -1
  66. data/lib/google/cloud/discoveryengine/v1/user_event_service_pb.rb +2 -1
  67. data/lib/google/cloud/discoveryengine/v1/user_event_service_services_pb.rb +5 -0
  68. data/proto_docs/google/cloud/discoveryengine/v1/answer.rb +62 -7
  69. data/proto_docs/google/cloud/discoveryengine/v1/control.rb +6 -4
  70. data/proto_docs/google/cloud/discoveryengine/v1/control_service.rb +6 -6
  71. data/proto_docs/google/cloud/discoveryengine/v1/conversational_search_service.rb +68 -24
  72. data/proto_docs/google/cloud/discoveryengine/v1/custom_tuning_model.rb +99 -0
  73. data/proto_docs/google/cloud/discoveryengine/v1/data_store.rb +88 -0
  74. data/proto_docs/google/cloud/discoveryengine/v1/data_store_service.rb +10 -0
  75. data/proto_docs/google/cloud/discoveryengine/v1/document.rb +22 -0
  76. data/proto_docs/google/cloud/discoveryengine/v1/document_processing_config.rb +9 -5
  77. data/proto_docs/google/cloud/discoveryengine/v1/document_service.rb +120 -0
  78. data/proto_docs/google/cloud/discoveryengine/v1/engine.rb +5 -1
  79. data/proto_docs/google/cloud/discoveryengine/v1/grounded_generation_service.rb +385 -1
  80. data/proto_docs/google/cloud/discoveryengine/v1/import_config.rb +13 -7
  81. data/proto_docs/google/cloud/discoveryengine/v1/project.rb +1 -1
  82. data/proto_docs/google/cloud/discoveryengine/v1/purge_config.rb +115 -0
  83. data/proto_docs/google/cloud/discoveryengine/v1/rank_service.rb +1 -1
  84. data/proto_docs/google/cloud/discoveryengine/v1/recommendation_service.rb +2 -1
  85. data/proto_docs/google/cloud/discoveryengine/v1/search_service.rb +156 -16
  86. data/proto_docs/google/cloud/discoveryengine/v1/search_tuning_service.rb +172 -0
  87. data/proto_docs/google/cloud/discoveryengine/v1/site_search_engine_service.rb +5 -0
  88. data/proto_docs/google/cloud/discoveryengine/v1/user_event.rb +5 -1
  89. metadata +17 -3
@@ -176,6 +176,122 @@ module Google
176
176
 
177
177
  # Service calls
178
178
 
179
+ ##
180
+ # Generates grounded content.
181
+ #
182
+ # @overload generate_grounded_content(request, options = nil)
183
+ # Pass arguments to `generate_grounded_content` via a request object, either of type
184
+ # {::Google::Cloud::DiscoveryEngine::V1::GenerateGroundedContentRequest} or an equivalent Hash.
185
+ #
186
+ # @param request [::Google::Cloud::DiscoveryEngine::V1::GenerateGroundedContentRequest, ::Hash]
187
+ # A request object representing the call parameters. Required. To specify no
188
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
189
+ # @param options [::Gapic::CallOptions, ::Hash]
190
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
191
+ #
192
+ # @overload generate_grounded_content(location: nil, system_instruction: nil, contents: nil, generation_spec: nil, grounding_spec: nil, user_labels: nil)
193
+ # Pass arguments to `generate_grounded_content` via keyword arguments. Note that at
194
+ # least one keyword argument is required. To specify no parameters, or to keep all
195
+ # the default parameter values, pass an empty Hash as a request object (see above).
196
+ #
197
+ # @param location [::String]
198
+ # Required. Location resource.
199
+ #
200
+ # Format: `projects/{project}/locations/{location}`.
201
+ # @param system_instruction [::Google::Cloud::DiscoveryEngine::V1::GroundedGenerationContent, ::Hash]
202
+ # Content of the system instruction for the current API.
203
+ #
204
+ # These instructions will take priority over any other prompt instructions
205
+ # if the selected model is supporting them.
206
+ # @param contents [::Array<::Google::Cloud::DiscoveryEngine::V1::GroundedGenerationContent, ::Hash>]
207
+ # Content of the current conversation with the model.
208
+ #
209
+ # For single-turn queries, this is a single instance. For multi-turn queries,
210
+ # this is a repeated field that contains conversation history + latest
211
+ # request.
212
+ #
213
+ # Only a single-turn query is supported currently.
214
+ # @param generation_spec [::Google::Cloud::DiscoveryEngine::V1::GenerateGroundedContentRequest::GenerationSpec, ::Hash]
215
+ # Content generation specification.
216
+ # @param grounding_spec [::Google::Cloud::DiscoveryEngine::V1::GenerateGroundedContentRequest::GroundingSpec, ::Hash]
217
+ # Grounding specification.
218
+ # @param user_labels [::Hash{::String => ::String}]
219
+ # The user labels applied to a resource must meet the following requirements:
220
+ #
221
+ # * Each resource can have multiple labels, up to a maximum of 64.
222
+ # * Each label must be a key-value pair.
223
+ # * Keys have a minimum length of 1 character and a maximum length of 63
224
+ # characters and cannot be empty. Values can be empty and have a maximum
225
+ # length of 63 characters.
226
+ # * Keys and values can contain only lowercase letters, numeric characters,
227
+ # underscores, and dashes. All characters must use UTF-8 encoding, and
228
+ # international characters are allowed.
229
+ # * The key portion of a label must be unique. However, you can use the same
230
+ # key with multiple resources.
231
+ # * Keys must start with a lowercase letter or international character.
232
+ #
233
+ # See [Google Cloud
234
+ # Document](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements)
235
+ # for more details.
236
+ # @yield [result, operation] Access the result along with the TransportOperation object
237
+ # @yieldparam result [::Google::Cloud::DiscoveryEngine::V1::GenerateGroundedContentResponse]
238
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
239
+ #
240
+ # @return [::Google::Cloud::DiscoveryEngine::V1::GenerateGroundedContentResponse]
241
+ #
242
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
243
+ #
244
+ # @example Basic example
245
+ # require "google/cloud/discovery_engine/v1"
246
+ #
247
+ # # Create a client object. The client can be reused for multiple calls.
248
+ # client = Google::Cloud::DiscoveryEngine::V1::GroundedGenerationService::Rest::Client.new
249
+ #
250
+ # # Create a request. To set request fields, pass in keyword arguments.
251
+ # request = Google::Cloud::DiscoveryEngine::V1::GenerateGroundedContentRequest.new
252
+ #
253
+ # # Call the generate_grounded_content method.
254
+ # result = client.generate_grounded_content request
255
+ #
256
+ # # The returned object is of type Google::Cloud::DiscoveryEngine::V1::GenerateGroundedContentResponse.
257
+ # p result
258
+ #
259
+ def generate_grounded_content request, options = nil
260
+ raise ::ArgumentError, "request must be provided" if request.nil?
261
+
262
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::DiscoveryEngine::V1::GenerateGroundedContentRequest
263
+
264
+ # Converts hash and nil to an options object
265
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
266
+
267
+ # Customize the options with defaults
268
+ call_metadata = @config.rpcs.generate_grounded_content.metadata.to_h
269
+
270
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
271
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
272
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
273
+ gapic_version: ::Google::Cloud::DiscoveryEngine::V1::VERSION,
274
+ transports_version_send: [:rest]
275
+
276
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
277
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
278
+
279
+ options.apply_defaults timeout: @config.rpcs.generate_grounded_content.timeout,
280
+ metadata: call_metadata,
281
+ retry_policy: @config.rpcs.generate_grounded_content.retry_policy
282
+
283
+ options.apply_defaults timeout: @config.timeout,
284
+ metadata: @config.metadata,
285
+ retry_policy: @config.retry_policy
286
+
287
+ @grounded_generation_service_stub.generate_grounded_content request, options do |result, operation|
288
+ yield result, operation if block_given?
289
+ return result
290
+ end
291
+ rescue ::Gapic::Rest::Error => e
292
+ raise ::Google::Cloud::Error.from_error(e)
293
+ end
294
+
179
295
  ##
180
296
  # Performs a grounding check.
181
297
  #
@@ -297,17 +413,17 @@ module Google
297
413
  # @example
298
414
  #
299
415
  # # Modify the global config, setting the timeout for
300
- # # check_grounding to 20 seconds,
416
+ # # generate_grounded_content to 20 seconds,
301
417
  # # and all remaining timeouts to 10 seconds.
302
418
  # ::Google::Cloud::DiscoveryEngine::V1::GroundedGenerationService::Rest::Client.configure do |config|
303
419
  # config.timeout = 10.0
304
- # config.rpcs.check_grounding.timeout = 20.0
420
+ # config.rpcs.generate_grounded_content.timeout = 20.0
305
421
  # end
306
422
  #
307
423
  # # Apply the above configuration only to a new client.
308
424
  # client = ::Google::Cloud::DiscoveryEngine::V1::GroundedGenerationService::Rest::Client.new do |config|
309
425
  # config.timeout = 10.0
310
- # config.rpcs.check_grounding.timeout = 20.0
426
+ # config.rpcs.generate_grounded_content.timeout = 20.0
311
427
  # end
312
428
  #
313
429
  # @!attribute [rw] endpoint
@@ -414,6 +530,11 @@ module Google
414
530
  # trigger a retry.
415
531
  #
416
532
  class Rpcs
533
+ ##
534
+ # RPC-specific configuration for `generate_grounded_content`
535
+ # @return [::Gapic::Config::Method]
536
+ #
537
+ attr_reader :generate_grounded_content
417
538
  ##
418
539
  # RPC-specific configuration for `check_grounding`
419
540
  # @return [::Gapic::Config::Method]
@@ -422,6 +543,8 @@ module Google
422
543
 
423
544
  # @private
424
545
  def initialize parent_rpcs = nil
546
+ generate_grounded_content_config = parent_rpcs.generate_grounded_content if parent_rpcs.respond_to? :generate_grounded_content
547
+ @generate_grounded_content = ::Gapic::Config::Method.new generate_grounded_content_config
425
548
  check_grounding_config = parent_rpcs.check_grounding if parent_rpcs.respond_to? :check_grounding
426
549
  @check_grounding = ::Gapic::Config::Method.new check_grounding_config
427
550
 
@@ -61,6 +61,44 @@ module Google
61
61
  @client_stub.endpoint
62
62
  end
63
63
 
64
+ ##
65
+ # Baseline implementation for the generate_grounded_content REST call
66
+ #
67
+ # @param request_pb [::Google::Cloud::DiscoveryEngine::V1::GenerateGroundedContentRequest]
68
+ # A request object representing the call parameters. Required.
69
+ # @param options [::Gapic::CallOptions]
70
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
71
+ #
72
+ # @yield [result, operation] Access the result along with the TransportOperation object
73
+ # @yieldparam result [::Google::Cloud::DiscoveryEngine::V1::GenerateGroundedContentResponse]
74
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
75
+ #
76
+ # @return [::Google::Cloud::DiscoveryEngine::V1::GenerateGroundedContentResponse]
77
+ # A result object deserialized from the server's reply
78
+ def generate_grounded_content request_pb, options = nil
79
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
80
+
81
+ verb, uri, query_string_params, body = ServiceStub.transcode_generate_grounded_content_request request_pb
82
+ query_string_params = if query_string_params.any?
83
+ query_string_params.to_h { |p| p.split "=", 2 }
84
+ else
85
+ {}
86
+ end
87
+
88
+ response = @client_stub.make_http_request(
89
+ verb,
90
+ uri: uri,
91
+ body: body || "",
92
+ params: query_string_params,
93
+ options: options
94
+ )
95
+ operation = ::Gapic::Rest::TransportOperation.new response
96
+ result = ::Google::Cloud::DiscoveryEngine::V1::GenerateGroundedContentResponse.decode_json response.body, ignore_unknown_fields: true
97
+
98
+ yield result, operation if block_given?
99
+ result
100
+ end
101
+
64
102
  ##
65
103
  # Baseline implementation for the check_grounding REST call
66
104
  #
@@ -99,6 +137,28 @@ module Google
99
137
  result
100
138
  end
101
139
 
140
+ ##
141
+ # @private
142
+ #
143
+ # GRPC transcoding helper method for the generate_grounded_content REST call
144
+ #
145
+ # @param request_pb [::Google::Cloud::DiscoveryEngine::V1::GenerateGroundedContentRequest]
146
+ # A request object representing the call parameters. Required.
147
+ # @return [Array(String, [String, nil], Hash{String => String})]
148
+ # Uri, Body, Query string parameters
149
+ def self.transcode_generate_grounded_content_request request_pb
150
+ transcoder = Gapic::Rest::GrpcTranscoder.new
151
+ .with_bindings(
152
+ uri_method: :post,
153
+ uri_template: "/v1/{location}:generateGroundedContent",
154
+ body: "*",
155
+ matches: [
156
+ ["location", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
157
+ ]
158
+ )
159
+ transcoder.transcode request_pb
160
+ end
161
+
102
162
  ##
103
163
  # @private
104
164
  #
@@ -911,6 +911,13 @@ module Google
911
911
  ["name", %r{^projects/[^/]+/locations/[^/]+/dataStores/[^/]+/?$}, false]
912
912
  ]
913
913
  )
914
+ .with_bindings(
915
+ uri_method: :get,
916
+ uri_template: "/v1/{name}/operations",
917
+ matches: [
918
+ ["name", %r{^projects/[^/]+/locations/[^/]+/identityMappingStores/[^/]+/?$}, false]
919
+ ]
920
+ )
914
921
  .with_bindings(
915
922
  uri_method: :get,
916
923
  uri_template: "/v1/{name}/operations",
@@ -1030,6 +1037,13 @@ module Google
1030
1037
  ["name", %r{^projects/[^/]+/locations/[^/]+/dataStores/[^/]+/operations/[^/]+/?$}, false]
1031
1038
  ]
1032
1039
  )
1040
+ .with_bindings(
1041
+ uri_method: :get,
1042
+ uri_template: "/v1/{name}",
1043
+ matches: [
1044
+ ["name", %r{^projects/[^/]+/locations/[^/]+/identityMappingStores/[^/]+/operations/[^/]+/?$}, false]
1045
+ ]
1046
+ )
1033
1047
  .with_bindings(
1034
1048
  uri_method: :get,
1035
1049
  uri_template: "/v1/{name}",
@@ -203,7 +203,7 @@ module Google
203
203
  #
204
204
  # @param ranking_config [::String]
205
205
  # Required. The resource name of the rank service config, such as
206
- # `projects/{project_num}/locations/{location_id}/rankingConfigs/default_ranking_config`.
206
+ # `projects/{project_num}/locations/{location}/rankingConfigs/default_ranking_config`.
207
207
  # @param model [::String]
208
208
  # The identifier of the model to use. It is one of:
209
209
  #
@@ -196,7 +196,7 @@ module Google
196
196
  #
197
197
  # @param ranking_config [::String]
198
198
  # Required. The resource name of the rank service config, such as
199
- # `projects/{project_num}/locations/{location_id}/rankingConfigs/default_ranking_config`.
199
+ # `projects/{project_num}/locations/{location}/rankingConfigs/default_ranking_config`.
200
200
  # @param model [::String]
201
201
  # The identifier of the model to use. It is one of:
202
202
  #
@@ -202,7 +202,8 @@ module Google
202
202
  # the default parameter values, pass an empty Hash as a request object (see above).
203
203
  #
204
204
  # @param serving_config [::String]
205
- # Required. Full resource name of a [ServingConfig][]:
205
+ # Required. Full resource name of a
206
+ # [ServingConfig][google.cloud.discoveryengine.v1.ServingConfig]:
206
207
  # `projects/*/locations/global/collections/*/engines/*/servingConfigs/*`, or
207
208
  # `projects/*/locations/global/collections/*/dataStores/*/servingConfigs/*`
208
209
  #
@@ -195,7 +195,8 @@ module Google
195
195
  # the default parameter values, pass an empty Hash as a request object (see above).
196
196
  #
197
197
  # @param serving_config [::String]
198
- # Required. Full resource name of a [ServingConfig][]:
198
+ # Required. Full resource name of a
199
+ # [ServingConfig][google.cloud.discoveryengine.v1.ServingConfig]:
199
200
  # `projects/*/locations/global/collections/*/engines/*/servingConfigs/*`, or
200
201
  # `projects/*/locations/global/collections/*/dataStores/*/servingConfigs/*`
201
202
  #
@@ -28,6 +28,7 @@ require "google/cloud/discovery_engine/v1/project_service/rest"
28
28
  require "google/cloud/discovery_engine/v1/rank_service/rest"
29
29
  require "google/cloud/discovery_engine/v1/recommendation_service/rest"
30
30
  require "google/cloud/discovery_engine/v1/schema_service/rest"
31
+ require "google/cloud/discovery_engine/v1/search_tuning_service/rest"
31
32
  require "google/cloud/discovery_engine/v1/site_search_engine_service/rest"
32
33
  require "google/cloud/discovery_engine/v1/user_event_service/rest"
33
34
  require "google/cloud/discovery_engine/v1/version"
@@ -911,6 +911,13 @@ module Google
911
911
  ["name", %r{^projects/[^/]+/locations/[^/]+/dataStores/[^/]+/?$}, false]
912
912
  ]
913
913
  )
914
+ .with_bindings(
915
+ uri_method: :get,
916
+ uri_template: "/v1/{name}/operations",
917
+ matches: [
918
+ ["name", %r{^projects/[^/]+/locations/[^/]+/identityMappingStores/[^/]+/?$}, false]
919
+ ]
920
+ )
914
921
  .with_bindings(
915
922
  uri_method: :get,
916
923
  uri_template: "/v1/{name}/operations",
@@ -1030,6 +1037,13 @@ module Google
1030
1037
  ["name", %r{^projects/[^/]+/locations/[^/]+/dataStores/[^/]+/operations/[^/]+/?$}, false]
1031
1038
  ]
1032
1039
  )
1040
+ .with_bindings(
1041
+ uri_method: :get,
1042
+ uri_template: "/v1/{name}",
1043
+ matches: [
1044
+ ["name", %r{^projects/[^/]+/locations/[^/]+/identityMappingStores/[^/]+/operations/[^/]+/?$}, false]
1045
+ ]
1046
+ )
1033
1047
  .with_bindings(
1034
1048
  uri_method: :get,
1035
1049
  uri_template: "/v1/{name}",
@@ -196,7 +196,7 @@ module Google
196
196
  # @param options [::Gapic::CallOptions, ::Hash]
197
197
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
198
198
  #
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, language_code: 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, search_as_you_type_spec: nil, session: nil, session_spec: nil)
199
+ # @overload search(serving_config: nil, branch: nil, query: nil, image_query: nil, page_size: nil, page_token: nil, offset: nil, one_box_page_size: nil, data_store_specs: nil, filter: nil, canonical_filter: nil, order_by: nil, user_info: nil, language_code: 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, search_as_you_type_spec: nil, session: nil, session_spec: nil)
200
200
  # Pass arguments to `search` via keyword arguments. Note that at
201
201
  # least one keyword argument is required. To specify no parameters, or to keep all
202
202
  # the default parameter values, pass an empty Hash as a request object (see above).
@@ -246,6 +246,10 @@ module Google
246
246
  # unset.
247
247
  #
248
248
  # If this field is negative, an `INVALID_ARGUMENT` is returned.
249
+ # @param one_box_page_size [::Integer]
250
+ # The maximum number of results to return for OneBox.
251
+ # This applies to each OneBox type individually.
252
+ # Default number is 10.
249
253
  # @param data_store_specs [::Array<::Google::Cloud::DiscoveryEngine::V1::SearchRequest::DataStoreSpec, ::Hash>]
250
254
  # Specs defining dataStores to filter on in a search call and configurations
251
255
  # for those dataStores. This is only considered for engines with multiple
@@ -286,9 +290,12 @@ module Google
286
290
  # Leave it unset if ordered by relevance. `order_by` expression is
287
291
  # case-sensitive.
288
292
  #
289
- # For more information on ordering for retail search, see
290
- # [Ordering](https://cloud.google.com/retail/docs/filter-and-order#order)
291
- #
293
+ # For more information on ordering the website search results, see
294
+ # [Order web search
295
+ # results](https://cloud.google.com/generative-ai-app-builder/docs/order-web-search-results).
296
+ # For more information on ordering the healthcare search results, see
297
+ # [Order healthcare search
298
+ # results](https://cloud.google.com/generative-ai-app-builder/docs/order-hc-results).
292
299
  # If this field is unrecognizable, an `INVALID_ARGUMENT` is returned.
293
300
  # @param user_info [::Google::Cloud::DiscoveryEngine::V1::UserInfo, ::Hash]
294
301
  # Information about the end user.
@@ -189,7 +189,7 @@ module Google
189
189
  # @param options [::Gapic::CallOptions, ::Hash]
190
190
  # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
191
191
  #
192
- # @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, language_code: 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, search_as_you_type_spec: nil, session: nil, session_spec: nil)
192
+ # @overload search(serving_config: nil, branch: nil, query: nil, image_query: nil, page_size: nil, page_token: nil, offset: nil, one_box_page_size: nil, data_store_specs: nil, filter: nil, canonical_filter: nil, order_by: nil, user_info: nil, language_code: 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, search_as_you_type_spec: nil, session: nil, session_spec: nil)
193
193
  # Pass arguments to `search` via keyword arguments. Note that at
194
194
  # least one keyword argument is required. To specify no parameters, or to keep all
195
195
  # the default parameter values, pass an empty Hash as a request object (see above).
@@ -239,6 +239,10 @@ module Google
239
239
  # unset.
240
240
  #
241
241
  # If this field is negative, an `INVALID_ARGUMENT` is returned.
242
+ # @param one_box_page_size [::Integer]
243
+ # The maximum number of results to return for OneBox.
244
+ # This applies to each OneBox type individually.
245
+ # Default number is 10.
242
246
  # @param data_store_specs [::Array<::Google::Cloud::DiscoveryEngine::V1::SearchRequest::DataStoreSpec, ::Hash>]
243
247
  # Specs defining dataStores to filter on in a search call and configurations
244
248
  # for those dataStores. This is only considered for engines with multiple
@@ -279,9 +283,12 @@ module Google
279
283
  # Leave it unset if ordered by relevance. `order_by` expression is
280
284
  # case-sensitive.
281
285
  #
282
- # For more information on ordering for retail search, see
283
- # [Ordering](https://cloud.google.com/retail/docs/filter-and-order#order)
284
- #
286
+ # For more information on ordering the website search results, see
287
+ # [Order web search
288
+ # results](https://cloud.google.com/generative-ai-app-builder/docs/order-web-search-results).
289
+ # For more information on ordering the healthcare search results, see
290
+ # [Order healthcare search
291
+ # results](https://cloud.google.com/generative-ai-app-builder/docs/order-hc-results).
285
292
  # If this field is unrecognizable, an `INVALID_ARGUMENT` is returned.
286
293
  # @param user_info [::Google::Cloud::DiscoveryEngine::V1::UserInfo, ::Hash]
287
294
  # Information about the end user.