google-cloud-discovery_engine-v1 0.4.2 → 0.5.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 +235 -4
- data/lib/google/cloud/discovery_engine/v1/completion_service/operations.rb +801 -0
- data/lib/google/cloud/discovery_engine/v1/completion_service/rest/client.rb +221 -4
- data/lib/google/cloud/discovery_engine/v1/completion_service/rest/operations.rb +1091 -0
- data/lib/google/cloud/discovery_engine/v1/completion_service/rest/service_stub.rb +136 -0
- data/lib/google/cloud/discovery_engine/v1/completion_service/rest.rb +1 -0
- data/lib/google/cloud/discovery_engine/v1/completion_service.rb +1 -0
- data/lib/google/cloud/discovery_engine/v1/conversational_search_service/client.rb +20 -3
- data/lib/google/cloud/discovery_engine/v1/conversational_search_service/paths.rb +91 -0
- data/lib/google/cloud/discovery_engine/v1/conversational_search_service/rest/client.rb +20 -3
- data/lib/google/cloud/discovery_engine/v1/conversational_search_service/rest/service_stub.rb +45 -0
- data/lib/google/cloud/discovery_engine/v1/data_store_service/client.rb +924 -0
- data/lib/google/cloud/discovery_engine/v1/data_store_service/credentials.rb +47 -0
- data/lib/google/cloud/discovery_engine/v1/data_store_service/operations.rb +801 -0
- data/lib/google/cloud/discovery_engine/v1/data_store_service/paths.rb +97 -0
- data/lib/google/cloud/discovery_engine/v1/data_store_service/rest/client.rb +863 -0
- data/lib/google/cloud/discovery_engine/v1/data_store_service/rest/operations.rb +1091 -0
- data/lib/google/cloud/discovery_engine/v1/data_store_service/rest/service_stub.rb +403 -0
- data/lib/google/cloud/discovery_engine/v1/data_store_service/rest.rb +54 -0
- data/lib/google/cloud/discovery_engine/v1/data_store_service.rb +57 -0
- data/lib/google/cloud/discovery_engine/v1/document_service/rest/operations.rb +14 -0
- data/lib/google/cloud/discovery_engine/v1/engine_service/client.rb +885 -0
- data/lib/google/cloud/discovery_engine/v1/engine_service/credentials.rb +47 -0
- data/lib/google/cloud/discovery_engine/v1/engine_service/operations.rb +801 -0
- data/lib/google/cloud/discovery_engine/v1/engine_service/paths.rb +73 -0
- data/lib/google/cloud/discovery_engine/v1/engine_service/rest/client.rb +824 -0
- data/lib/google/cloud/discovery_engine/v1/engine_service/rest/operations.rb +1091 -0
- data/lib/google/cloud/discovery_engine/v1/engine_service/rest/service_stub.rb +366 -0
- data/lib/google/cloud/discovery_engine/v1/engine_service/rest.rb +54 -0
- data/lib/google/cloud/discovery_engine/v1/engine_service.rb +57 -0
- data/lib/google/cloud/discovery_engine/v1/rest.rb +3 -0
- data/lib/google/cloud/discovery_engine/v1/schema_service/rest/operations.rb +14 -0
- data/lib/google/cloud/discovery_engine/v1/search_service/client.rb +40 -4
- data/lib/google/cloud/discovery_engine/v1/search_service/paths.rb +19 -0
- data/lib/google/cloud/discovery_engine/v1/search_service/rest/client.rb +40 -4
- data/lib/google/cloud/discovery_engine/v1/search_service/rest/service_stub.rb +8 -0
- data/lib/google/cloud/discovery_engine/v1/site_search_engine_service/client.rb +1631 -0
- data/lib/google/cloud/discovery_engine/v1/site_search_engine_service/credentials.rb +47 -0
- data/lib/google/cloud/discovery_engine/v1/site_search_engine_service/operations.rb +801 -0
- data/lib/google/cloud/discovery_engine/v1/site_search_engine_service/paths.rb +127 -0
- data/lib/google/cloud/discovery_engine/v1/site_search_engine_service/rest/client.rb +1521 -0
- data/lib/google/cloud/discovery_engine/v1/site_search_engine_service/rest/operations.rb +1091 -0
- data/lib/google/cloud/discovery_engine/v1/site_search_engine_service/rest/service_stub.rb +860 -0
- data/lib/google/cloud/discovery_engine/v1/site_search_engine_service/rest.rb +53 -0
- data/lib/google/cloud/discovery_engine/v1/site_search_engine_service.rb +56 -0
- data/lib/google/cloud/discovery_engine/v1/user_event_service/rest/operations.rb +14 -0
- data/lib/google/cloud/discovery_engine/v1/version.rb +1 -1
- data/lib/google/cloud/discovery_engine/v1.rb +3 -0
- data/lib/google/cloud/discoveryengine/v1/common_pb.rb +5 -1
- data/lib/google/cloud/discoveryengine/v1/completion_pb.rb +45 -0
- data/lib/google/cloud/discoveryengine/v1/completion_service_pb.rb +4 -1
- data/lib/google/cloud/discoveryengine/v1/completion_service_services_pb.rb +8 -0
- data/lib/google/cloud/discoveryengine/v1/conversation_pb.rb +1 -1
- data/lib/google/cloud/discoveryengine/v1/conversational_search_service_pb.rb +1 -1
- data/lib/google/cloud/discoveryengine/v1/data_store_pb.rb +49 -0
- data/lib/google/cloud/discoveryengine/v1/data_store_service_pb.rb +62 -0
- data/lib/google/cloud/discoveryengine/v1/data_store_service_services_pb.rb +61 -0
- data/lib/google/cloud/discoveryengine/v1/document_pb.rb +1 -1
- data/lib/google/cloud/discoveryengine/v1/document_service_pb.rb +1 -1
- data/lib/google/cloud/discoveryengine/v1/engine_pb.rb +53 -0
- data/lib/google/cloud/discoveryengine/v1/engine_service_pb.rb +62 -0
- data/lib/google/cloud/discoveryengine/v1/engine_service_services_pb.rb +55 -0
- data/lib/google/cloud/discoveryengine/v1/import_config_pb.rb +7 -1
- data/lib/google/cloud/discoveryengine/v1/purge_config_pb.rb +6 -1
- data/lib/google/cloud/discoveryengine/v1/schema_pb.rb +1 -1
- data/lib/google/cloud/discoveryengine/v1/schema_service_pb.rb +1 -1
- data/lib/google/cloud/discoveryengine/v1/search_service_pb.rb +8 -1
- data/lib/google/cloud/discoveryengine/v1/site_search_engine_pb.rb +54 -0
- data/lib/google/cloud/discoveryengine/v1/site_search_engine_service_pb.rb +82 -0
- data/lib/google/cloud/discoveryengine/v1/site_search_engine_service_services_pb.rb +73 -0
- 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/proto_docs/google/cloud/discoveryengine/v1/common.rb +51 -0
- data/proto_docs/google/cloud/discoveryengine/v1/completion.rb +53 -0
- data/proto_docs/google/cloud/discoveryengine/v1/completion_service.rb +10 -4
- data/proto_docs/google/cloud/discoveryengine/v1/conversation.rb +2 -0
- data/proto_docs/google/cloud/discoveryengine/v1/conversational_search_service.rb +19 -1
- data/proto_docs/google/cloud/discoveryengine/v1/data_store.rb +88 -0
- data/proto_docs/google/cloud/discoveryengine/v1/data_store_service.rb +214 -0
- data/proto_docs/google/cloud/discoveryengine/v1/document.rb +1 -1
- data/proto_docs/google/cloud/discoveryengine/v1/engine.rb +214 -0
- data/proto_docs/google/cloud/discoveryengine/v1/engine_service.rb +177 -0
- data/proto_docs/google/cloud/discoveryengine/v1/import_config.rb +66 -0
- data/proto_docs/google/cloud/discoveryengine/v1/purge_config.rb +41 -0
- data/proto_docs/google/cloud/discoveryengine/v1/search_service.rb +149 -4
- data/proto_docs/google/cloud/discoveryengine/v1/site_search_engine.rb +160 -0
- data/proto_docs/google/cloud/discoveryengine/v1/site_search_engine_service.rb +525 -0
- data/proto_docs/google/cloud/discoveryengine/v1/user_event.rb +3 -3
- metadata +48 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 23b98fb7f61fcc45f4d176e118c6466e73582a2e557be1b1ab861ff75f3dff1d
|
4
|
+
data.tar.gz: fe2d39f77372393b3b43b2b5ce093c306342833c49839bc1d3bd45a6b8c506a3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d030718a6ac316ffffd50dde950e1ebd88d3e690fdbd655cdd1a8c0441f8b8db77abb12daca11b5754ec5378742728169adcfefe278a0fcd0870041dc9916b75
|
7
|
+
data.tar.gz: c3b5b7f7f769bb24e19006e28b8ffe343373c5d5d5d93fd05d5056967c7746cd49dd7263190006427da830dfbedaa6b2c68f8204e0b9aa8b5981ee9b28b8f665
|
@@ -152,6 +152,13 @@ module Google
|
|
152
152
|
@quota_project_id = @config.quota_project
|
153
153
|
@quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id
|
154
154
|
|
155
|
+
@operations_client = Operations.new do |config|
|
156
|
+
config.credentials = credentials
|
157
|
+
config.quota_project = @quota_project_id
|
158
|
+
config.endpoint = @config.endpoint
|
159
|
+
config.universe_domain = @config.universe_domain
|
160
|
+
end
|
161
|
+
|
155
162
|
@completion_service_stub = ::Gapic::ServiceStub.new(
|
156
163
|
::Google::Cloud::DiscoveryEngine::V1::CompletionService::Stub,
|
157
164
|
credentials: credentials,
|
@@ -171,6 +178,13 @@ module Google
|
|
171
178
|
end
|
172
179
|
end
|
173
180
|
|
181
|
+
##
|
182
|
+
# Get the associated client for long-running operations.
|
183
|
+
#
|
184
|
+
# @return [::Google::Cloud::DiscoveryEngine::V1::CompletionService::Operations]
|
185
|
+
#
|
186
|
+
attr_reader :operations_client
|
187
|
+
|
174
188
|
##
|
175
189
|
# Get the associated client for mix-in of the Locations.
|
176
190
|
#
|
@@ -206,8 +220,9 @@ module Google
|
|
206
220
|
# Required. The typeahead input used to fetch suggestions. Maximum length is
|
207
221
|
# 128 characters.
|
208
222
|
# @param query_model [::String]
|
209
|
-
#
|
210
|
-
#
|
223
|
+
# Specifies the autocomplete data model. This overrides any model specified
|
224
|
+
# in the Configuration > Autocomplete section of the Cloud console. Currently
|
225
|
+
# supported values:
|
211
226
|
#
|
212
227
|
# * `document` - Using suggestions generated from user-imported documents.
|
213
228
|
# * `search-history` - Using suggestions generated from the past history of
|
@@ -221,8 +236,7 @@ module Google
|
|
221
236
|
# Default values:
|
222
237
|
#
|
223
238
|
# * `document` is the default model for regular dataStores.
|
224
|
-
# * `search-history` is the default model for
|
225
|
-
# [IndustryVertical.SITE_SEARCH][] dataStores.
|
239
|
+
# * `search-history` is the default model for site search dataStores.
|
226
240
|
# @param user_pseudo_id [::String]
|
227
241
|
# A unique identifier for tracking visitors. For example, this could be
|
228
242
|
# implemented with an HTTP cookie, which should be able to uniquely identify
|
@@ -308,6 +322,209 @@ module Google
|
|
308
322
|
raise ::Google::Cloud::Error.from_error(e)
|
309
323
|
end
|
310
324
|
|
325
|
+
##
|
326
|
+
# Imports all
|
327
|
+
# {::Google::Cloud::DiscoveryEngine::V1::SuggestionDenyListEntry SuggestionDenyListEntry}
|
328
|
+
# for a DataStore.
|
329
|
+
#
|
330
|
+
# @overload import_suggestion_deny_list_entries(request, options = nil)
|
331
|
+
# Pass arguments to `import_suggestion_deny_list_entries` via a request object, either of type
|
332
|
+
# {::Google::Cloud::DiscoveryEngine::V1::ImportSuggestionDenyListEntriesRequest} or an equivalent Hash.
|
333
|
+
#
|
334
|
+
# @param request [::Google::Cloud::DiscoveryEngine::V1::ImportSuggestionDenyListEntriesRequest, ::Hash]
|
335
|
+
# A request object representing the call parameters. Required. To specify no
|
336
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
337
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
338
|
+
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
339
|
+
#
|
340
|
+
# @overload import_suggestion_deny_list_entries(inline_source: nil, gcs_source: nil, parent: nil)
|
341
|
+
# Pass arguments to `import_suggestion_deny_list_entries` via keyword arguments. Note that at
|
342
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
343
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
344
|
+
#
|
345
|
+
# @param inline_source [::Google::Cloud::DiscoveryEngine::V1::ImportSuggestionDenyListEntriesRequest::InlineSource, ::Hash]
|
346
|
+
# The Inline source for the input content for suggestion deny list entries.
|
347
|
+
# @param gcs_source [::Google::Cloud::DiscoveryEngine::V1::GcsSource, ::Hash]
|
348
|
+
# Cloud Storage location for the input content.
|
349
|
+
#
|
350
|
+
# Only 1 file can be specified that contains all entries to import.
|
351
|
+
# Supported values `gcs_source.schema` for autocomplete suggestion deny
|
352
|
+
# list entry imports:
|
353
|
+
#
|
354
|
+
# * `suggestion_deny_list` (default): One JSON [SuggestionDenyListEntry]
|
355
|
+
# per line.
|
356
|
+
# @param parent [::String]
|
357
|
+
# Required. The parent data store resource name for which to import denylist
|
358
|
+
# entries. Follows pattern projects/*/locations/*/collections/*/dataStores/*.
|
359
|
+
#
|
360
|
+
# @yield [response, operation] Access the result along with the RPC operation
|
361
|
+
# @yieldparam response [::Gapic::Operation]
|
362
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
363
|
+
#
|
364
|
+
# @return [::Gapic::Operation]
|
365
|
+
#
|
366
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
367
|
+
#
|
368
|
+
# @example Basic example
|
369
|
+
# require "google/cloud/discovery_engine/v1"
|
370
|
+
#
|
371
|
+
# # Create a client object. The client can be reused for multiple calls.
|
372
|
+
# client = Google::Cloud::DiscoveryEngine::V1::CompletionService::Client.new
|
373
|
+
#
|
374
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
375
|
+
# request = Google::Cloud::DiscoveryEngine::V1::ImportSuggestionDenyListEntriesRequest.new
|
376
|
+
#
|
377
|
+
# # Call the import_suggestion_deny_list_entries method.
|
378
|
+
# result = client.import_suggestion_deny_list_entries request
|
379
|
+
#
|
380
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
381
|
+
# # check the status of an operation, cancel it, or wait for results.
|
382
|
+
# # Here is how to wait for a response.
|
383
|
+
# result.wait_until_done! timeout: 60
|
384
|
+
# if result.response?
|
385
|
+
# p result.response
|
386
|
+
# else
|
387
|
+
# puts "No response received."
|
388
|
+
# end
|
389
|
+
#
|
390
|
+
def import_suggestion_deny_list_entries request, options = nil
|
391
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
392
|
+
|
393
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::DiscoveryEngine::V1::ImportSuggestionDenyListEntriesRequest
|
394
|
+
|
395
|
+
# Converts hash and nil to an options object
|
396
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
397
|
+
|
398
|
+
# Customize the options with defaults
|
399
|
+
metadata = @config.rpcs.import_suggestion_deny_list_entries.metadata.to_h
|
400
|
+
|
401
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
402
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
403
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
404
|
+
gapic_version: ::Google::Cloud::DiscoveryEngine::V1::VERSION
|
405
|
+
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
406
|
+
|
407
|
+
header_params = {}
|
408
|
+
if request.parent
|
409
|
+
header_params["parent"] = request.parent
|
410
|
+
end
|
411
|
+
|
412
|
+
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
413
|
+
metadata[:"x-goog-request-params"] ||= request_params_header
|
414
|
+
|
415
|
+
options.apply_defaults timeout: @config.rpcs.import_suggestion_deny_list_entries.timeout,
|
416
|
+
metadata: metadata,
|
417
|
+
retry_policy: @config.rpcs.import_suggestion_deny_list_entries.retry_policy
|
418
|
+
|
419
|
+
options.apply_defaults timeout: @config.timeout,
|
420
|
+
metadata: @config.metadata,
|
421
|
+
retry_policy: @config.retry_policy
|
422
|
+
|
423
|
+
@completion_service_stub.call_rpc :import_suggestion_deny_list_entries, request, options: options do |response, operation|
|
424
|
+
response = ::Gapic::Operation.new response, @operations_client, options: options
|
425
|
+
yield response, operation if block_given?
|
426
|
+
return response
|
427
|
+
end
|
428
|
+
rescue ::GRPC::BadStatus => e
|
429
|
+
raise ::Google::Cloud::Error.from_error(e)
|
430
|
+
end
|
431
|
+
|
432
|
+
##
|
433
|
+
# Permanently deletes all
|
434
|
+
# {::Google::Cloud::DiscoveryEngine::V1::SuggestionDenyListEntry SuggestionDenyListEntry}
|
435
|
+
# for a DataStore.
|
436
|
+
#
|
437
|
+
# @overload purge_suggestion_deny_list_entries(request, options = nil)
|
438
|
+
# Pass arguments to `purge_suggestion_deny_list_entries` via a request object, either of type
|
439
|
+
# {::Google::Cloud::DiscoveryEngine::V1::PurgeSuggestionDenyListEntriesRequest} or an equivalent Hash.
|
440
|
+
#
|
441
|
+
# @param request [::Google::Cloud::DiscoveryEngine::V1::PurgeSuggestionDenyListEntriesRequest, ::Hash]
|
442
|
+
# A request object representing the call parameters. Required. To specify no
|
443
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
444
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
445
|
+
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
446
|
+
#
|
447
|
+
# @overload purge_suggestion_deny_list_entries(parent: nil)
|
448
|
+
# Pass arguments to `purge_suggestion_deny_list_entries` via keyword arguments. Note that at
|
449
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
450
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
451
|
+
#
|
452
|
+
# @param parent [::String]
|
453
|
+
# Required. The parent data store resource name for which to import denylist
|
454
|
+
# entries. Follows pattern projects/*/locations/*/collections/*/dataStores/*.
|
455
|
+
#
|
456
|
+
# @yield [response, operation] Access the result along with the RPC operation
|
457
|
+
# @yieldparam response [::Gapic::Operation]
|
458
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
459
|
+
#
|
460
|
+
# @return [::Gapic::Operation]
|
461
|
+
#
|
462
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
463
|
+
#
|
464
|
+
# @example Basic example
|
465
|
+
# require "google/cloud/discovery_engine/v1"
|
466
|
+
#
|
467
|
+
# # Create a client object. The client can be reused for multiple calls.
|
468
|
+
# client = Google::Cloud::DiscoveryEngine::V1::CompletionService::Client.new
|
469
|
+
#
|
470
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
471
|
+
# request = Google::Cloud::DiscoveryEngine::V1::PurgeSuggestionDenyListEntriesRequest.new
|
472
|
+
#
|
473
|
+
# # Call the purge_suggestion_deny_list_entries method.
|
474
|
+
# result = client.purge_suggestion_deny_list_entries request
|
475
|
+
#
|
476
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
477
|
+
# # check the status of an operation, cancel it, or wait for results.
|
478
|
+
# # Here is how to wait for a response.
|
479
|
+
# result.wait_until_done! timeout: 60
|
480
|
+
# if result.response?
|
481
|
+
# p result.response
|
482
|
+
# else
|
483
|
+
# puts "No response received."
|
484
|
+
# end
|
485
|
+
#
|
486
|
+
def purge_suggestion_deny_list_entries request, options = nil
|
487
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
488
|
+
|
489
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::DiscoveryEngine::V1::PurgeSuggestionDenyListEntriesRequest
|
490
|
+
|
491
|
+
# Converts hash and nil to an options object
|
492
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
493
|
+
|
494
|
+
# Customize the options with defaults
|
495
|
+
metadata = @config.rpcs.purge_suggestion_deny_list_entries.metadata.to_h
|
496
|
+
|
497
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
498
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
499
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
500
|
+
gapic_version: ::Google::Cloud::DiscoveryEngine::V1::VERSION
|
501
|
+
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
502
|
+
|
503
|
+
header_params = {}
|
504
|
+
if request.parent
|
505
|
+
header_params["parent"] = request.parent
|
506
|
+
end
|
507
|
+
|
508
|
+
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
509
|
+
metadata[:"x-goog-request-params"] ||= request_params_header
|
510
|
+
|
511
|
+
options.apply_defaults timeout: @config.rpcs.purge_suggestion_deny_list_entries.timeout,
|
512
|
+
metadata: metadata,
|
513
|
+
retry_policy: @config.rpcs.purge_suggestion_deny_list_entries.retry_policy
|
514
|
+
|
515
|
+
options.apply_defaults timeout: @config.timeout,
|
516
|
+
metadata: @config.metadata,
|
517
|
+
retry_policy: @config.retry_policy
|
518
|
+
|
519
|
+
@completion_service_stub.call_rpc :purge_suggestion_deny_list_entries, request, options: options do |response, operation|
|
520
|
+
response = ::Gapic::Operation.new response, @operations_client, options: options
|
521
|
+
yield response, operation if block_given?
|
522
|
+
return response
|
523
|
+
end
|
524
|
+
rescue ::GRPC::BadStatus => e
|
525
|
+
raise ::Google::Cloud::Error.from_error(e)
|
526
|
+
end
|
527
|
+
|
311
528
|
##
|
312
529
|
# Configuration class for the CompletionService API.
|
313
530
|
#
|
@@ -466,11 +683,25 @@ module Google
|
|
466
683
|
# @return [::Gapic::Config::Method]
|
467
684
|
#
|
468
685
|
attr_reader :complete_query
|
686
|
+
##
|
687
|
+
# RPC-specific configuration for `import_suggestion_deny_list_entries`
|
688
|
+
# @return [::Gapic::Config::Method]
|
689
|
+
#
|
690
|
+
attr_reader :import_suggestion_deny_list_entries
|
691
|
+
##
|
692
|
+
# RPC-specific configuration for `purge_suggestion_deny_list_entries`
|
693
|
+
# @return [::Gapic::Config::Method]
|
694
|
+
#
|
695
|
+
attr_reader :purge_suggestion_deny_list_entries
|
469
696
|
|
470
697
|
# @private
|
471
698
|
def initialize parent_rpcs = nil
|
472
699
|
complete_query_config = parent_rpcs.complete_query if parent_rpcs.respond_to? :complete_query
|
473
700
|
@complete_query = ::Gapic::Config::Method.new complete_query_config
|
701
|
+
import_suggestion_deny_list_entries_config = parent_rpcs.import_suggestion_deny_list_entries if parent_rpcs.respond_to? :import_suggestion_deny_list_entries
|
702
|
+
@import_suggestion_deny_list_entries = ::Gapic::Config::Method.new import_suggestion_deny_list_entries_config
|
703
|
+
purge_suggestion_deny_list_entries_config = parent_rpcs.purge_suggestion_deny_list_entries if parent_rpcs.respond_to? :purge_suggestion_deny_list_entries
|
704
|
+
@purge_suggestion_deny_list_entries = ::Gapic::Config::Method.new purge_suggestion_deny_list_entries_config
|
474
705
|
|
475
706
|
yield self if block_given?
|
476
707
|
end
|