google-cloud-discovery_engine-v1beta 0.11.0 → 0.13.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (164) hide show
  1. checksums.yaml +4 -4
  2. data/lib/google/cloud/discovery_engine/v1beta/completion_service/client.rb +9 -3
  3. data/lib/google/cloud/discovery_engine/v1beta/completion_service/operations.rb +13 -5
  4. data/lib/google/cloud/discovery_engine/v1beta/completion_service/rest/client.rb +9 -3
  5. data/lib/google/cloud/discovery_engine/v1beta/completion_service/rest/operations.rb +35 -6
  6. data/lib/google/cloud/discovery_engine/v1beta/control_service/client.rb +875 -0
  7. data/lib/google/cloud/discovery_engine/v1beta/control_service/credentials.rb +47 -0
  8. data/lib/google/cloud/discovery_engine/v1beta/control_service/paths.rb +167 -0
  9. data/lib/google/cloud/discovery_engine/v1beta/control_service/rest/client.rb +814 -0
  10. data/lib/google/cloud/discovery_engine/v1beta/control_service/rest/service_stub.rb +440 -0
  11. data/lib/google/cloud/discovery_engine/v1beta/control_service/rest.rb +55 -0
  12. data/lib/google/cloud/discovery_engine/v1beta/control_service.rb +58 -0
  13. data/lib/google/cloud/discovery_engine/v1beta/conversational_search_service/client.rb +31 -15
  14. data/lib/google/cloud/discovery_engine/v1beta/conversational_search_service/rest/client.rb +31 -15
  15. data/lib/google/cloud/discovery_engine/v1beta/data_store_service/client.rb +15 -7
  16. data/lib/google/cloud/discovery_engine/v1beta/data_store_service/operations.rb +13 -5
  17. data/lib/google/cloud/discovery_engine/v1beta/data_store_service/rest/client.rb +15 -7
  18. data/lib/google/cloud/discovery_engine/v1beta/data_store_service/rest/operations.rb +35 -6
  19. data/lib/google/cloud/discovery_engine/v1beta/document_service/client.rb +24 -15
  20. data/lib/google/cloud/discovery_engine/v1beta/document_service/operations.rb +13 -5
  21. data/lib/google/cloud/discovery_engine/v1beta/document_service/rest/client.rb +24 -15
  22. data/lib/google/cloud/discovery_engine/v1beta/document_service/rest/operations.rb +35 -6
  23. data/lib/google/cloud/discovery_engine/v1beta/engine_service/client.rb +19 -8
  24. data/lib/google/cloud/discovery_engine/v1beta/engine_service/operations.rb +13 -5
  25. data/lib/google/cloud/discovery_engine/v1beta/engine_service/rest/client.rb +19 -8
  26. data/lib/google/cloud/discovery_engine/v1beta/engine_service/rest/operations.rb +35 -6
  27. data/lib/google/cloud/discovery_engine/v1beta/evaluation_service/client.rb +824 -0
  28. data/lib/google/cloud/discovery_engine/v1beta/evaluation_service/credentials.rb +47 -0
  29. data/lib/google/cloud/discovery_engine/v1beta/evaluation_service/operations.rb +809 -0
  30. data/lib/google/cloud/discovery_engine/v1beta/evaluation_service/paths.rb +250 -0
  31. data/lib/google/cloud/discovery_engine/v1beta/evaluation_service/rest/client.rb +770 -0
  32. data/lib/google/cloud/discovery_engine/v1beta/evaluation_service/rest/operations.rb +1106 -0
  33. data/lib/google/cloud/discovery_engine/v1beta/evaluation_service/rest/service_stub.rb +306 -0
  34. data/lib/google/cloud/discovery_engine/v1beta/evaluation_service/rest.rb +54 -0
  35. data/lib/google/cloud/discovery_engine/v1beta/evaluation_service.rb +57 -0
  36. data/lib/google/cloud/discovery_engine/v1beta/grounded_generation_service/client.rb +25 -3
  37. data/lib/google/cloud/discovery_engine/v1beta/grounded_generation_service/rest/client.rb +25 -3
  38. data/lib/google/cloud/discovery_engine/v1beta/project_service/client.rb +485 -0
  39. data/lib/google/cloud/discovery_engine/v1beta/project_service/credentials.rb +47 -0
  40. data/lib/google/cloud/discovery_engine/v1beta/project_service/operations.rb +809 -0
  41. data/lib/google/cloud/discovery_engine/v1beta/project_service/paths.rb +47 -0
  42. data/lib/google/cloud/discovery_engine/v1beta/project_service/rest/client.rb +452 -0
  43. data/lib/google/cloud/discovery_engine/v1beta/project_service/rest/operations.rb +1106 -0
  44. data/lib/google/cloud/discovery_engine/v1beta/project_service/rest/service_stub.rb +129 -0
  45. data/lib/google/cloud/discovery_engine/v1beta/project_service/rest.rb +54 -0
  46. data/lib/google/cloud/discovery_engine/v1beta/project_service.rb +57 -0
  47. data/lib/google/cloud/discovery_engine/v1beta/rank_service/client.rb +24 -2
  48. data/lib/google/cloud/discovery_engine/v1beta/rank_service/rest/client.rb +24 -2
  49. data/lib/google/cloud/discovery_engine/v1beta/recommendation_service/client.rb +24 -19
  50. data/lib/google/cloud/discovery_engine/v1beta/recommendation_service/paths.rb +66 -0
  51. data/lib/google/cloud/discovery_engine/v1beta/recommendation_service/rest/client.rb +24 -19
  52. data/lib/google/cloud/discovery_engine/v1beta/rest.rb +5 -0
  53. data/lib/google/cloud/discovery_engine/v1beta/sample_query_service/client.rb +1035 -0
  54. data/lib/google/cloud/discovery_engine/v1beta/sample_query_service/credentials.rb +47 -0
  55. data/lib/google/cloud/discovery_engine/v1beta/sample_query_service/operations.rb +809 -0
  56. data/lib/google/cloud/discovery_engine/v1beta/sample_query_service/paths.rb +73 -0
  57. data/lib/google/cloud/discovery_engine/v1beta/sample_query_service/rest/client.rb +967 -0
  58. data/lib/google/cloud/discovery_engine/v1beta/sample_query_service/rest/operations.rb +1106 -0
  59. data/lib/google/cloud/discovery_engine/v1beta/sample_query_service/rest/service_stub.rb +426 -0
  60. data/lib/google/cloud/discovery_engine/v1beta/sample_query_service/rest.rb +54 -0
  61. data/lib/google/cloud/discovery_engine/v1beta/sample_query_service.rb +57 -0
  62. data/lib/google/cloud/discovery_engine/v1beta/sample_query_set_service/client.rb +911 -0
  63. data/lib/google/cloud/discovery_engine/v1beta/sample_query_set_service/credentials.rb +47 -0
  64. data/lib/google/cloud/discovery_engine/v1beta/sample_query_set_service/paths.rb +69 -0
  65. data/lib/google/cloud/discovery_engine/v1beta/sample_query_set_service/rest/client.rb +850 -0
  66. data/lib/google/cloud/discovery_engine/v1beta/sample_query_set_service/rest/service_stub.rb +366 -0
  67. data/lib/google/cloud/discovery_engine/v1beta/sample_query_set_service/rest.rb +53 -0
  68. data/lib/google/cloud/discovery_engine/v1beta/sample_query_set_service.rb +56 -0
  69. data/lib/google/cloud/discovery_engine/v1beta/schema_service/client.rb +18 -10
  70. data/lib/google/cloud/discovery_engine/v1beta/schema_service/operations.rb +13 -5
  71. data/lib/google/cloud/discovery_engine/v1beta/schema_service/rest/client.rb +18 -10
  72. data/lib/google/cloud/discovery_engine/v1beta/schema_service/rest/operations.rb +35 -6
  73. data/lib/google/cloud/discovery_engine/v1beta/search_service/client.rb +25 -12
  74. data/lib/google/cloud/discovery_engine/v1beta/search_service/rest/client.rb +25 -12
  75. data/lib/google/cloud/discovery_engine/v1beta/search_tuning_service/client.rb +104 -2
  76. data/lib/google/cloud/discovery_engine/v1beta/search_tuning_service/operations.rb +13 -5
  77. data/lib/google/cloud/discovery_engine/v1beta/search_tuning_service/rest/client.rb +97 -2
  78. data/lib/google/cloud/discovery_engine/v1beta/search_tuning_service/rest/operations.rb +35 -6
  79. data/lib/google/cloud/discovery_engine/v1beta/search_tuning_service/rest/service_stub.rb +59 -0
  80. data/lib/google/cloud/discovery_engine/v1beta/serving_config_service/client.rb +9 -3
  81. data/lib/google/cloud/discovery_engine/v1beta/serving_config_service/rest/client.rb +9 -3
  82. data/lib/google/cloud/discovery_engine/v1beta/site_search_engine_service/client.rb +27 -12
  83. data/lib/google/cloud/discovery_engine/v1beta/site_search_engine_service/operations.rb +13 -5
  84. data/lib/google/cloud/discovery_engine/v1beta/site_search_engine_service/rest/client.rb +27 -12
  85. data/lib/google/cloud/discovery_engine/v1beta/site_search_engine_service/rest/operations.rb +35 -6
  86. data/lib/google/cloud/discovery_engine/v1beta/user_event_service/client.rb +23 -6
  87. data/lib/google/cloud/discovery_engine/v1beta/user_event_service/operations.rb +13 -5
  88. data/lib/google/cloud/discovery_engine/v1beta/user_event_service/paths.rb +21 -0
  89. data/lib/google/cloud/discovery_engine/v1beta/user_event_service/rest/client.rb +23 -6
  90. data/lib/google/cloud/discovery_engine/v1beta/user_event_service/rest/operations.rb +35 -6
  91. data/lib/google/cloud/discovery_engine/v1beta/user_event_service/rest/service_stub.rb +8 -0
  92. data/lib/google/cloud/discovery_engine/v1beta/version.rb +1 -1
  93. data/lib/google/cloud/discovery_engine/v1beta.rb +5 -0
  94. data/lib/google/cloud/discoveryengine/v1beta/answer_pb.rb +3 -1
  95. data/lib/google/cloud/discoveryengine/v1beta/chunk_pb.rb +50 -0
  96. data/lib/google/cloud/discoveryengine/v1beta/common_pb.rb +2 -1
  97. data/lib/google/cloud/discoveryengine/v1beta/control_pb.rb +55 -0
  98. data/lib/google/cloud/discoveryengine/v1beta/control_service_pb.rb +57 -0
  99. data/lib/google/cloud/discoveryengine/v1beta/control_service_services_pb.rb +69 -0
  100. data/lib/google/cloud/discoveryengine/v1beta/conversational_search_service_pb.rb +1 -1
  101. data/lib/google/cloud/discoveryengine/v1beta/custom_tuning_model_pb.rb +48 -0
  102. data/lib/google/cloud/discoveryengine/v1beta/document_processing_config_pb.rb +4 -1
  103. data/lib/google/cloud/discoveryengine/v1beta/document_service_services_pb.rb +1 -1
  104. data/lib/google/cloud/discoveryengine/v1beta/engine_pb.rb +1 -1
  105. data/lib/google/cloud/discoveryengine/v1beta/evaluation_pb.rb +56 -0
  106. data/lib/google/cloud/discoveryengine/v1beta/evaluation_service_pb.rb +59 -0
  107. data/lib/google/cloud/discoveryengine/v1beta/evaluation_service_services_pb.rb +57 -0
  108. data/lib/google/cloud/discoveryengine/v1beta/grounded_generation_service_pb.rb +1 -1
  109. data/lib/google/cloud/discoveryengine/v1beta/grounding_pb.rb +1 -1
  110. data/lib/google/cloud/discoveryengine/v1beta/import_config_pb.rb +7 -1
  111. data/lib/google/cloud/discoveryengine/v1beta/project_pb.rb +49 -0
  112. data/lib/google/cloud/discoveryengine/v1beta/project_service_pb.rb +50 -0
  113. data/lib/google/cloud/discoveryengine/v1beta/project_service_services_pb.rb +51 -0
  114. data/lib/google/cloud/discoveryengine/v1beta/rank_service_pb.rb +1 -1
  115. data/lib/google/cloud/discoveryengine/v1beta/sample_query_pb.rb +49 -0
  116. data/lib/google/cloud/discoveryengine/v1beta/sample_query_service_pb.rb +59 -0
  117. data/lib/google/cloud/discoveryengine/v1beta/sample_query_service_services_pb.rb +63 -0
  118. data/lib/google/cloud/discoveryengine/v1beta/sample_query_set_pb.rb +47 -0
  119. data/lib/google/cloud/discoveryengine/v1beta/sample_query_set_service_pb.rb +57 -0
  120. data/lib/google/cloud/discoveryengine/v1beta/sample_query_set_service_services_pb.rb +59 -0
  121. data/lib/google/cloud/discoveryengine/v1beta/search_service_pb.rb +5 -1
  122. data/lib/google/cloud/discoveryengine/v1beta/search_tuning_service_pb.rb +5 -1
  123. data/lib/google/cloud/discoveryengine/v1beta/search_tuning_service_services_pb.rb +2 -0
  124. data/lib/google/cloud/discoveryengine/v1beta/site_search_engine_pb.rb +1 -1
  125. data/lib/google/cloud/discoveryengine/v1beta/user_event_pb.rb +1 -1
  126. data/lib/google/cloud/discoveryengine/v1beta/user_event_service_pb.rb +1 -1
  127. data/lib/google/cloud/discoveryengine/v1beta/user_event_service_services_pb.rb +1 -1
  128. data/proto_docs/google/api/client.rb +14 -10
  129. data/proto_docs/google/api/resource.rb +7 -2
  130. data/proto_docs/google/cloud/discoveryengine/v1beta/answer.rb +9 -1
  131. data/proto_docs/google/cloud/discoveryengine/v1beta/chunk.rb +119 -0
  132. data/proto_docs/google/cloud/discoveryengine/v1beta/common.rb +16 -0
  133. data/proto_docs/google/cloud/discoveryengine/v1beta/control.rb +209 -0
  134. data/proto_docs/google/cloud/discoveryengine/v1beta/control_service.rb +126 -0
  135. data/proto_docs/google/cloud/discoveryengine/v1beta/conversation.rb +2 -2
  136. data/proto_docs/google/cloud/discoveryengine/v1beta/conversational_search_service.rb +29 -5
  137. data/proto_docs/google/cloud/discoveryengine/v1beta/custom_tuning_model.rb +75 -0
  138. data/proto_docs/google/cloud/discoveryengine/v1beta/data_store_service.rb +2 -2
  139. data/proto_docs/google/cloud/discoveryengine/v1beta/document.rb +1 -1
  140. data/proto_docs/google/cloud/discoveryengine/v1beta/document_processing_config.rb +44 -2
  141. data/proto_docs/google/cloud/discoveryengine/v1beta/document_service.rb +6 -7
  142. data/proto_docs/google/cloud/discoveryengine/v1beta/engine.rb +3 -3
  143. data/proto_docs/google/cloud/discoveryengine/v1beta/evaluation.rb +223 -0
  144. data/proto_docs/google/cloud/discoveryengine/v1beta/evaluation_service.rb +194 -0
  145. data/proto_docs/google/cloud/discoveryengine/v1beta/grounded_generation_service.rb +39 -1
  146. data/proto_docs/google/cloud/discoveryengine/v1beta/grounding.rb +3 -0
  147. data/proto_docs/google/cloud/discoveryengine/v1beta/import_config.rb +89 -4
  148. data/proto_docs/google/cloud/discoveryengine/v1beta/project.rb +106 -0
  149. data/proto_docs/google/cloud/discoveryengine/v1beta/project_service.rb +57 -0
  150. data/proto_docs/google/cloud/discoveryengine/v1beta/rank_service.rb +28 -0
  151. data/proto_docs/google/cloud/discoveryengine/v1beta/recommendation_service.rb +20 -19
  152. data/proto_docs/google/cloud/discoveryengine/v1beta/sample_query.rb +82 -0
  153. data/proto_docs/google/cloud/discoveryengine/v1beta/sample_query_service.rb +179 -0
  154. data/proto_docs/google/cloud/discoveryengine/v1beta/sample_query_set.rb +57 -0
  155. data/proto_docs/google/cloud/discoveryengine/v1beta/sample_query_set_service.rb +186 -0
  156. data/proto_docs/google/cloud/discoveryengine/v1beta/schema_service.rb +5 -5
  157. data/proto_docs/google/cloud/discoveryengine/v1beta/search_service.rb +95 -28
  158. data/proto_docs/google/cloud/discoveryengine/v1beta/search_tuning_service.rb +31 -0
  159. data/proto_docs/google/cloud/discoveryengine/v1beta/serving_config.rb +11 -5
  160. data/proto_docs/google/cloud/discoveryengine/v1beta/session.rb +4 -1
  161. data/proto_docs/google/cloud/discoveryengine/v1beta/site_search_engine.rb +3 -0
  162. data/proto_docs/google/cloud/discoveryengine/v1beta/user_event.rb +24 -3
  163. data/proto_docs/google/cloud/discoveryengine/v1beta/user_event_service.rb +13 -1
  164. metadata +72 -2
@@ -33,6 +33,9 @@ module Google
33
33
  # Service for managing {::Google::Cloud::DiscoveryEngine::V1beta::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 and x-goog-user-project headers
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::V1beta::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
  # to return. The service may return fewer than this value.
293
297
  #
294
298
  # If unspecified, at most 100
295
- # {::Google::Cloud::DiscoveryEngine::V1beta::Schema Schema}s will be returned.
299
+ # {::Google::Cloud::DiscoveryEngine::V1beta::Schema Schema}s are returned.
296
300
  #
297
- # The maximum value is 1000; values above 1000 will be coerced to 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::V1beta::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 and x-goog-user-project headers
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::V1beta::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,
@@ -392,7 +397,7 @@ module Google
392
397
  # create.
393
398
  # @param schema_id [::String]
394
399
  # Required. The ID to use for the
395
- # {::Google::Cloud::DiscoveryEngine::V1beta::Schema Schema}, which will become the
400
+ # {::Google::Cloud::DiscoveryEngine::V1beta::Schema Schema}, which becomes the
396
401
  # final component of the
397
402
  # {::Google::Cloud::DiscoveryEngine::V1beta::Schema#name Schema.name}.
398
403
  #
@@ -440,12 +445,13 @@ module Google
440
445
  # Customize the options with defaults
441
446
  call_metadata = @config.rpcs.create_schema.metadata.to_h
442
447
 
443
- # Set x-goog-api-client and x-goog-user-project headers
448
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
444
449
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
445
450
  lib_name: @config.lib_name, lib_version: @config.lib_version,
446
451
  gapic_version: ::Google::Cloud::DiscoveryEngine::V1beta::VERSION,
447
452
  transports_version_send: [:rest]
448
453
 
454
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
449
455
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
450
456
 
451
457
  options.apply_defaults timeout: @config.rpcs.create_schema.timeout,
@@ -489,8 +495,8 @@ module Google
489
495
  # @param allow_missing [::Boolean]
490
496
  # If set to true, and the
491
497
  # {::Google::Cloud::DiscoveryEngine::V1beta::Schema Schema} is not found, a new
492
- # {::Google::Cloud::DiscoveryEngine::V1beta::Schema Schema} will be created. In
493
- # this situation, `update_mask` is ignored.
498
+ # {::Google::Cloud::DiscoveryEngine::V1beta::Schema Schema} is created. In this
499
+ # situation, `update_mask` is ignored.
494
500
  # @yield [result, operation] Access the result along with the TransportOperation object
495
501
  # @yieldparam result [::Gapic::Operation]
496
502
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
@@ -532,12 +538,13 @@ module Google
532
538
  # Customize the options with defaults
533
539
  call_metadata = @config.rpcs.update_schema.metadata.to_h
534
540
 
535
- # Set x-goog-api-client and x-goog-user-project headers
541
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
536
542
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
537
543
  lib_name: @config.lib_name, lib_version: @config.lib_version,
538
544
  gapic_version: ::Google::Cloud::DiscoveryEngine::V1beta::VERSION,
539
545
  transports_version_send: [:rest]
540
546
 
547
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
541
548
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
542
549
 
543
550
  options.apply_defaults timeout: @config.rpcs.update_schema.timeout,
@@ -619,12 +626,13 @@ module Google
619
626
  # Customize the options with defaults
620
627
  call_metadata = @config.rpcs.delete_schema.metadata.to_h
621
628
 
622
- # Set x-goog-api-client and x-goog-user-project headers
629
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
623
630
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
624
631
  lib_name: @config.lib_name, lib_version: @config.lib_version,
625
632
  gapic_version: ::Google::Cloud::DiscoveryEngine::V1beta::VERSION,
626
633
  transports_version_send: [:rest]
627
634
 
635
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
628
636
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
629
637
 
630
638
  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 and x-goog-user-project headers
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::V1beta::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 and x-goog-user-project headers
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::V1beta::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 and x-goog-user-project headers
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::V1beta::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 and x-goog-user-project headers
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::V1beta::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,
@@ -1009,6 +1016,13 @@ module Google
1009
1016
  ["name", %r{^projects/[^/]+/locations/[^/]+/dataStores/[^/]+/operations/[^/]+/?$}, false]
1010
1017
  ]
1011
1018
  )
1019
+ .with_bindings(
1020
+ uri_method: :get,
1021
+ uri_template: "/v1beta/{name}",
1022
+ matches: [
1023
+ ["name", %r{^projects/[^/]+/locations/[^/]+/evaluations/[^/]+/operations/[^/]+/?$}, false]
1024
+ ]
1025
+ )
1012
1026
  .with_bindings(
1013
1027
  uri_method: :get,
1014
1028
  uri_template: "/v1beta/{name}",
@@ -1016,6 +1030,13 @@ module Google
1016
1030
  ["name", %r{^projects/[^/]+/locations/[^/]+/operations/[^/]+/?$}, false]
1017
1031
  ]
1018
1032
  )
1033
+ .with_bindings(
1034
+ uri_method: :get,
1035
+ uri_template: "/v1beta/{name}",
1036
+ matches: [
1037
+ ["name", %r{^projects/[^/]+/locations/[^/]+/sampleQuerySets/[^/]+/operations/[^/]+/?$}, false]
1038
+ ]
1039
+ )
1019
1040
  .with_bindings(
1020
1041
  uri_method: :get,
1021
1042
  uri_template: "/v1beta/{name}",
@@ -1060,10 +1081,18 @@ module Google
1060
1081
  transcoder = Gapic::Rest::GrpcTranscoder.new
1061
1082
  .with_bindings(
1062
1083
  uri_method: :post,
1063
- uri_template: "/v1/{name}:cancel",
1084
+ uri_template: "/v1beta/{name}:cancel",
1064
1085
  body: "*",
1065
1086
  matches: [
1066
- ["name", %r{^operations(?:/.*)?$}, true]
1087
+ ["name", %r{^projects/[^/]+/locations/[^/]+/collections/[^/]+/dataStores/[^/]+/branches/[^/]+/operations/[^/]+/?$}, false]
1088
+ ]
1089
+ )
1090
+ .with_bindings(
1091
+ uri_method: :post,
1092
+ uri_template: "/v1beta/{name}:cancel",
1093
+ body: "*",
1094
+ matches: [
1095
+ ["name", %r{^projects/[^/]+/locations/[^/]+/dataStores/[^/]+/branches/[^/]+/operations/[^/]+/?$}, false]
1067
1096
  ]
1068
1097
  )
1069
1098
  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
 
@@ -244,7 +247,10 @@ module Google
244
247
  #
245
248
  # If this field is negative, an `INVALID_ARGUMENT` is returned.
246
249
  # @param data_store_specs [::Array<::Google::Cloud::DiscoveryEngine::V1beta::SearchRequest::DataStoreSpec, ::Hash>]
247
- # A list of data store specs to apply on a search call.
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.
248
254
  # @param filter [::String]
249
255
  # The filter syntax consists of an expression language for constructing a
250
256
  # predicate from one or more fields of the documents being filtered. Filter
@@ -278,7 +284,9 @@ module Google
278
284
  # The order in which documents are returned. Documents can be ordered by
279
285
  # a field in an {::Google::Cloud::DiscoveryEngine::V1beta::Document Document}
280
286
  # object. Leave it unset if ordered by relevance. `order_by` expression is
281
- # case-sensitive. For more information on ordering, see
287
+ # case-sensitive.
288
+ #
289
+ # For more information on ordering for retail search, see
282
290
  # [Ordering](https://cloud.google.com/retail/docs/filter-and-order#order)
283
291
  #
284
292
  # If this field is unrecognizable, an `INVALID_ARGUMENT` is returned.
@@ -295,7 +303,7 @@ module Google
295
303
  # @param boost_spec [::Google::Cloud::DiscoveryEngine::V1beta::SearchRequest::BoostSpec, ::Hash]
296
304
  # Boost specification to boost certain documents.
297
305
  # For more information on boosting, see
298
- # [Boosting](https://cloud.google.com/retail/docs/boosting#boost)
306
+ # [Boosting](https://cloud.google.com/generative-ai-app-builder/docs/boost-search-results)
299
307
  # @param params [::Hash{::String => ::Google::Protobuf::Value, ::Hash}]
300
308
  # Additional search parameters.
301
309
  #
@@ -303,8 +311,7 @@ module Google
303
311
  #
304
312
  # * `user_country_code`: string. Default empty. If set to non-empty, results
305
313
  # are restricted or boosted based on the location provided.
306
- # Example:
307
- # user_country_code: "au"
314
+ # For example, `user_country_code: "au"`
308
315
  #
309
316
  # For available codes see [Country
310
317
  # Codes](https://developers.google.com/custom-search/docs/json_api_reference#countryCodes)
@@ -312,8 +319,7 @@ module Google
312
319
  # * `search_type`: double. Default empty. Enables non-webpage searching
313
320
  # depending on the value. The only valid non-default value is 1,
314
321
  # which enables image searching.
315
- # Example:
316
- # search_type: 1
322
+ # For example, `search_type: 1`
317
323
  # @param query_expansion_spec [::Google::Cloud::DiscoveryEngine::V1beta::SearchRequest::QueryExpansionSpec, ::Hash]
318
324
  # The query expansion specification that specifies the conditions under which
319
325
  # query expansion occurs.
@@ -353,20 +359,26 @@ module Google
353
359
  # documents. This overrides
354
360
  # {::Google::Cloud::DiscoveryEngine::V1beta::ServingConfig#ranking_expression ServingConfig.ranking_expression}.
355
361
  # The ranking expression is a single function or multiple functions that are
356
- # joint by "+".
362
+ # joined by "+".
363
+ #
357
364
  # * ranking_expression = function, { " + ", function };
365
+ #
358
366
  # Supported functions:
367
+ #
359
368
  # * double * relevance_score
360
369
  # * double * dotProduct(embedding_field_path)
370
+ #
361
371
  # Function variables:
362
- # `relevance_score`: pre-defined keywords, used for measure relevance
372
+ #
373
+ # * `relevance_score`: pre-defined keywords, used for measure relevance
363
374
  # between query and document.
364
- # `embedding_field_path`: the document embedding field
375
+ # * `embedding_field_path`: the document embedding field
365
376
  # used with query embedding vector.
366
- # `dotProduct`: embedding function between embedding_field_path and query
377
+ # * `dotProduct`: embedding function between embedding_field_path and query
367
378
  # embedding vector.
368
379
  #
369
380
  # Example ranking expression:
381
+ #
370
382
  # If document has an embedding field doc_embedding, the ranking expression
371
383
  # could be `0.5 * relevance_score + 0.3 * dotProduct(doc_embedding)`.
372
384
  # @param safe_search [::Boolean]
@@ -429,10 +441,11 @@ module Google
429
441
  # Customize the options with defaults
430
442
  metadata = @config.rpcs.search.metadata.to_h
431
443
 
432
- # Set x-goog-api-client and x-goog-user-project headers
444
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
433
445
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
434
446
  lib_name: @config.lib_name, lib_version: @config.lib_version,
435
447
  gapic_version: ::Google::Cloud::DiscoveryEngine::V1beta::VERSION
448
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
436
449
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
437
450
 
438
451
  header_params = {}
@@ -33,6 +33,9 @@ module Google
33
33
  # Service for search.
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
 
@@ -237,7 +240,10 @@ module Google
237
240
  #
238
241
  # If this field is negative, an `INVALID_ARGUMENT` is returned.
239
242
  # @param data_store_specs [::Array<::Google::Cloud::DiscoveryEngine::V1beta::SearchRequest::DataStoreSpec, ::Hash>]
240
- # A list of data store specs to apply on a search call.
243
+ # Specs defining dataStores to filter on in a search call and configurations
244
+ # for those dataStores. This is only considered for engines with multiple
245
+ # dataStores use case. For single dataStore within an engine, they should
246
+ # use the specs at the top level.
241
247
  # @param filter [::String]
242
248
  # The filter syntax consists of an expression language for constructing a
243
249
  # predicate from one or more fields of the documents being filtered. Filter
@@ -271,7 +277,9 @@ module Google
271
277
  # The order in which documents are returned. Documents can be ordered by
272
278
  # a field in an {::Google::Cloud::DiscoveryEngine::V1beta::Document Document}
273
279
  # object. Leave it unset if ordered by relevance. `order_by` expression is
274
- # case-sensitive. For more information on ordering, see
280
+ # case-sensitive.
281
+ #
282
+ # For more information on ordering for retail search, see
275
283
  # [Ordering](https://cloud.google.com/retail/docs/filter-and-order#order)
276
284
  #
277
285
  # If this field is unrecognizable, an `INVALID_ARGUMENT` is returned.
@@ -288,7 +296,7 @@ module Google
288
296
  # @param boost_spec [::Google::Cloud::DiscoveryEngine::V1beta::SearchRequest::BoostSpec, ::Hash]
289
297
  # Boost specification to boost certain documents.
290
298
  # For more information on boosting, see
291
- # [Boosting](https://cloud.google.com/retail/docs/boosting#boost)
299
+ # [Boosting](https://cloud.google.com/generative-ai-app-builder/docs/boost-search-results)
292
300
  # @param params [::Hash{::String => ::Google::Protobuf::Value, ::Hash}]
293
301
  # Additional search parameters.
294
302
  #
@@ -296,8 +304,7 @@ module Google
296
304
  #
297
305
  # * `user_country_code`: string. Default empty. If set to non-empty, results
298
306
  # are restricted or boosted based on the location provided.
299
- # Example:
300
- # user_country_code: "au"
307
+ # For example, `user_country_code: "au"`
301
308
  #
302
309
  # For available codes see [Country
303
310
  # Codes](https://developers.google.com/custom-search/docs/json_api_reference#countryCodes)
@@ -305,8 +312,7 @@ module Google
305
312
  # * `search_type`: double. Default empty. Enables non-webpage searching
306
313
  # depending on the value. The only valid non-default value is 1,
307
314
  # which enables image searching.
308
- # Example:
309
- # search_type: 1
315
+ # For example, `search_type: 1`
310
316
  # @param query_expansion_spec [::Google::Cloud::DiscoveryEngine::V1beta::SearchRequest::QueryExpansionSpec, ::Hash]
311
317
  # The query expansion specification that specifies the conditions under which
312
318
  # query expansion occurs.
@@ -346,20 +352,26 @@ module Google
346
352
  # documents. This overrides
347
353
  # {::Google::Cloud::DiscoveryEngine::V1beta::ServingConfig#ranking_expression ServingConfig.ranking_expression}.
348
354
  # The ranking expression is a single function or multiple functions that are
349
- # joint by "+".
355
+ # joined by "+".
356
+ #
350
357
  # * ranking_expression = function, { " + ", function };
358
+ #
351
359
  # Supported functions:
360
+ #
352
361
  # * double * relevance_score
353
362
  # * double * dotProduct(embedding_field_path)
363
+ #
354
364
  # Function variables:
355
- # `relevance_score`: pre-defined keywords, used for measure relevance
365
+ #
366
+ # * `relevance_score`: pre-defined keywords, used for measure relevance
356
367
  # between query and document.
357
- # `embedding_field_path`: the document embedding field
368
+ # * `embedding_field_path`: the document embedding field
358
369
  # used with query embedding vector.
359
- # `dotProduct`: embedding function between embedding_field_path and query
370
+ # * `dotProduct`: embedding function between embedding_field_path and query
360
371
  # embedding vector.
361
372
  #
362
373
  # Example ranking expression:
374
+ #
363
375
  # If document has an embedding field doc_embedding, the ranking expression
364
376
  # could be `0.5 * relevance_score + 0.3 * dotProduct(doc_embedding)`.
365
377
  # @param safe_search [::Boolean]
@@ -421,12 +433,13 @@ module Google
421
433
  # Customize the options with defaults
422
434
  call_metadata = @config.rpcs.search.metadata.to_h
423
435
 
424
- # Set x-goog-api-client and x-goog-user-project headers
436
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
425
437
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
426
438
  lib_name: @config.lib_name, lib_version: @config.lib_version,
427
439
  gapic_version: ::Google::Cloud::DiscoveryEngine::V1beta::VERSION,
428
440
  transports_version_send: [:rest]
429
441
 
442
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
430
443
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
431
444
 
432
445
  options.apply_defaults timeout: @config.rpcs.search.timeout,
@@ -31,6 +31,9 @@ module Google
31
31
  # Service for search tuning.
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
 
@@ -202,7 +205,7 @@ module Google
202
205
  # @param options [::Gapic::CallOptions, ::Hash]
203
206
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
204
207
  #
205
- # @overload train_custom_model(gcs_training_input: nil, data_store: nil, model_type: nil, error_config: nil)
208
+ # @overload train_custom_model(gcs_training_input: nil, data_store: nil, model_type: nil, error_config: nil, model_id: nil)
206
209
  # Pass arguments to `train_custom_model` via keyword arguments. Note that at
207
210
  # least one keyword argument is required. To specify no parameters, or to keep all
208
211
  # the default parameter values, pass an empty Hash as a request object (see above).
@@ -220,6 +223,8 @@ module Google
220
223
  # @param error_config [::Google::Cloud::DiscoveryEngine::V1beta::ImportErrorConfig, ::Hash]
221
224
  # The desired location of errors incurred during the data ingestion and
222
225
  # training.
226
+ # @param model_id [::String]
227
+ # If not provided, a UUID will be generated.
223
228
  #
224
229
  # @yield [response, operation] Access the result along with the RPC operation
225
230
  # @yieldparam response [::Gapic::Operation]
@@ -262,10 +267,11 @@ module Google
262
267
  # Customize the options with defaults
263
268
  metadata = @config.rpcs.train_custom_model.metadata.to_h
264
269
 
265
- # Set x-goog-api-client and x-goog-user-project headers
270
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
266
271
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
267
272
  lib_name: @config.lib_name, lib_version: @config.lib_version,
268
273
  gapic_version: ::Google::Cloud::DiscoveryEngine::V1beta::VERSION
274
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
269
275
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
270
276
 
271
277
  header_params = {}
@@ -293,6 +299,95 @@ module Google
293
299
  raise ::Google::Cloud::Error.from_error(e)
294
300
  end
295
301
 
302
+ ##
303
+ # Gets a list of all the custom models.
304
+ #
305
+ # @overload list_custom_models(request, options = nil)
306
+ # Pass arguments to `list_custom_models` via a request object, either of type
307
+ # {::Google::Cloud::DiscoveryEngine::V1beta::ListCustomModelsRequest} or an equivalent Hash.
308
+ #
309
+ # @param request [::Google::Cloud::DiscoveryEngine::V1beta::ListCustomModelsRequest, ::Hash]
310
+ # A request object representing the call parameters. Required. To specify no
311
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
312
+ # @param options [::Gapic::CallOptions, ::Hash]
313
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
314
+ #
315
+ # @overload list_custom_models(data_store: nil)
316
+ # Pass arguments to `list_custom_models` via keyword arguments. Note that at
317
+ # least one keyword argument is required. To specify no parameters, or to keep all
318
+ # the default parameter values, pass an empty Hash as a request object (see above).
319
+ #
320
+ # @param data_store [::String]
321
+ # Required. The resource name of the parent Data Store, such as
322
+ # `projects/*/locations/global/collections/default_collection/dataStores/default_data_store`.
323
+ # This field is used to identify the data store where to fetch the models
324
+ # from.
325
+ #
326
+ # @yield [response, operation] Access the result along with the RPC operation
327
+ # @yieldparam response [::Google::Cloud::DiscoveryEngine::V1beta::ListCustomModelsResponse]
328
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
329
+ #
330
+ # @return [::Google::Cloud::DiscoveryEngine::V1beta::ListCustomModelsResponse]
331
+ #
332
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
333
+ #
334
+ # @example Basic example
335
+ # require "google/cloud/discovery_engine/v1beta"
336
+ #
337
+ # # Create a client object. The client can be reused for multiple calls.
338
+ # client = Google::Cloud::DiscoveryEngine::V1beta::SearchTuningService::Client.new
339
+ #
340
+ # # Create a request. To set request fields, pass in keyword arguments.
341
+ # request = Google::Cloud::DiscoveryEngine::V1beta::ListCustomModelsRequest.new
342
+ #
343
+ # # Call the list_custom_models method.
344
+ # result = client.list_custom_models request
345
+ #
346
+ # # The returned object is of type Google::Cloud::DiscoveryEngine::V1beta::ListCustomModelsResponse.
347
+ # p result
348
+ #
349
+ def list_custom_models request, options = nil
350
+ raise ::ArgumentError, "request must be provided" if request.nil?
351
+
352
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::DiscoveryEngine::V1beta::ListCustomModelsRequest
353
+
354
+ # Converts hash and nil to an options object
355
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
356
+
357
+ # Customize the options with defaults
358
+ metadata = @config.rpcs.list_custom_models.metadata.to_h
359
+
360
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
361
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
362
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
363
+ gapic_version: ::Google::Cloud::DiscoveryEngine::V1beta::VERSION
364
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
365
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
366
+
367
+ header_params = {}
368
+ if request.data_store
369
+ header_params["data_store"] = request.data_store
370
+ end
371
+
372
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
373
+ metadata[:"x-goog-request-params"] ||= request_params_header
374
+
375
+ options.apply_defaults timeout: @config.rpcs.list_custom_models.timeout,
376
+ metadata: metadata,
377
+ retry_policy: @config.rpcs.list_custom_models.retry_policy
378
+
379
+ options.apply_defaults timeout: @config.timeout,
380
+ metadata: @config.metadata,
381
+ retry_policy: @config.retry_policy
382
+
383
+ @search_tuning_service_stub.call_rpc :list_custom_models, request, options: options do |response, operation|
384
+ yield response, operation if block_given?
385
+ return response
386
+ end
387
+ rescue ::GRPC::BadStatus => e
388
+ raise ::Google::Cloud::Error.from_error(e)
389
+ end
390
+
296
391
  ##
297
392
  # Configuration class for the SearchTuningService API.
298
393
  #
@@ -451,11 +546,18 @@ module Google
451
546
  # @return [::Gapic::Config::Method]
452
547
  #
453
548
  attr_reader :train_custom_model
549
+ ##
550
+ # RPC-specific configuration for `list_custom_models`
551
+ # @return [::Gapic::Config::Method]
552
+ #
553
+ attr_reader :list_custom_models
454
554
 
455
555
  # @private
456
556
  def initialize parent_rpcs = nil
457
557
  train_custom_model_config = parent_rpcs.train_custom_model if parent_rpcs.respond_to? :train_custom_model
458
558
  @train_custom_model = ::Gapic::Config::Method.new train_custom_model_config
559
+ list_custom_models_config = parent_rpcs.list_custom_models if parent_rpcs.respond_to? :list_custom_models
560
+ @list_custom_models = ::Gapic::Config::Method.new list_custom_models_config
459
561
 
460
562
  yield self if block_given?
461
563
  end