google-cloud-discovery_engine-v1beta 0.11.0 → 0.12.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (115) 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 +21 -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 +21 -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 +21 -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 +21 -6
  27. data/lib/google/cloud/discovery_engine/v1beta/grounded_generation_service/client.rb +25 -3
  28. data/lib/google/cloud/discovery_engine/v1beta/grounded_generation_service/rest/client.rb +25 -3
  29. data/lib/google/cloud/discovery_engine/v1beta/project_service/client.rb +485 -0
  30. data/lib/google/cloud/discovery_engine/v1beta/project_service/credentials.rb +47 -0
  31. data/lib/google/cloud/discovery_engine/v1beta/project_service/operations.rb +809 -0
  32. data/lib/google/cloud/discovery_engine/v1beta/project_service/paths.rb +47 -0
  33. data/lib/google/cloud/discovery_engine/v1beta/project_service/rest/client.rb +452 -0
  34. data/lib/google/cloud/discovery_engine/v1beta/project_service/rest/operations.rb +1092 -0
  35. data/lib/google/cloud/discovery_engine/v1beta/project_service/rest/service_stub.rb +129 -0
  36. data/lib/google/cloud/discovery_engine/v1beta/project_service/rest.rb +54 -0
  37. data/lib/google/cloud/discovery_engine/v1beta/project_service.rb +57 -0
  38. data/lib/google/cloud/discovery_engine/v1beta/rank_service/client.rb +24 -2
  39. data/lib/google/cloud/discovery_engine/v1beta/rank_service/rest/client.rb +24 -2
  40. data/lib/google/cloud/discovery_engine/v1beta/recommendation_service/client.rb +24 -19
  41. data/lib/google/cloud/discovery_engine/v1beta/recommendation_service/paths.rb +66 -0
  42. data/lib/google/cloud/discovery_engine/v1beta/recommendation_service/rest/client.rb +24 -19
  43. data/lib/google/cloud/discovery_engine/v1beta/rest.rb +2 -0
  44. data/lib/google/cloud/discovery_engine/v1beta/schema_service/client.rb +18 -10
  45. data/lib/google/cloud/discovery_engine/v1beta/schema_service/operations.rb +13 -5
  46. data/lib/google/cloud/discovery_engine/v1beta/schema_service/rest/client.rb +18 -10
  47. data/lib/google/cloud/discovery_engine/v1beta/schema_service/rest/operations.rb +21 -6
  48. data/lib/google/cloud/discovery_engine/v1beta/search_service/client.rb +15 -8
  49. data/lib/google/cloud/discovery_engine/v1beta/search_service/rest/client.rb +15 -8
  50. data/lib/google/cloud/discovery_engine/v1beta/search_tuning_service/client.rb +104 -2
  51. data/lib/google/cloud/discovery_engine/v1beta/search_tuning_service/operations.rb +13 -5
  52. data/lib/google/cloud/discovery_engine/v1beta/search_tuning_service/rest/client.rb +97 -2
  53. data/lib/google/cloud/discovery_engine/v1beta/search_tuning_service/rest/operations.rb +21 -6
  54. data/lib/google/cloud/discovery_engine/v1beta/search_tuning_service/rest/service_stub.rb +59 -0
  55. data/lib/google/cloud/discovery_engine/v1beta/serving_config_service/client.rb +9 -3
  56. data/lib/google/cloud/discovery_engine/v1beta/serving_config_service/rest/client.rb +9 -3
  57. data/lib/google/cloud/discovery_engine/v1beta/site_search_engine_service/client.rb +27 -12
  58. data/lib/google/cloud/discovery_engine/v1beta/site_search_engine_service/operations.rb +13 -5
  59. data/lib/google/cloud/discovery_engine/v1beta/site_search_engine_service/rest/client.rb +27 -12
  60. data/lib/google/cloud/discovery_engine/v1beta/site_search_engine_service/rest/operations.rb +21 -6
  61. data/lib/google/cloud/discovery_engine/v1beta/user_event_service/client.rb +23 -6
  62. data/lib/google/cloud/discovery_engine/v1beta/user_event_service/operations.rb +13 -5
  63. data/lib/google/cloud/discovery_engine/v1beta/user_event_service/paths.rb +21 -0
  64. data/lib/google/cloud/discovery_engine/v1beta/user_event_service/rest/client.rb +23 -6
  65. data/lib/google/cloud/discovery_engine/v1beta/user_event_service/rest/operations.rb +21 -6
  66. data/lib/google/cloud/discovery_engine/v1beta/user_event_service/rest/service_stub.rb +8 -0
  67. data/lib/google/cloud/discovery_engine/v1beta/version.rb +1 -1
  68. data/lib/google/cloud/discovery_engine/v1beta.rb +2 -0
  69. data/lib/google/cloud/discoveryengine/v1beta/answer_pb.rb +3 -1
  70. data/lib/google/cloud/discoveryengine/v1beta/common_pb.rb +2 -1
  71. data/lib/google/cloud/discoveryengine/v1beta/control_pb.rb +55 -0
  72. data/lib/google/cloud/discoveryengine/v1beta/control_service_pb.rb +57 -0
  73. data/lib/google/cloud/discoveryengine/v1beta/control_service_services_pb.rb +69 -0
  74. data/lib/google/cloud/discoveryengine/v1beta/conversational_search_service_pb.rb +1 -1
  75. data/lib/google/cloud/discoveryengine/v1beta/custom_tuning_model_pb.rb +48 -0
  76. data/lib/google/cloud/discoveryengine/v1beta/document_service_services_pb.rb +1 -1
  77. data/lib/google/cloud/discoveryengine/v1beta/engine_pb.rb +1 -1
  78. data/lib/google/cloud/discoveryengine/v1beta/grounded_generation_service_pb.rb +1 -1
  79. data/lib/google/cloud/discoveryengine/v1beta/grounding_pb.rb +1 -1
  80. data/lib/google/cloud/discoveryengine/v1beta/project_pb.rb +49 -0
  81. data/lib/google/cloud/discoveryengine/v1beta/project_service_pb.rb +50 -0
  82. data/lib/google/cloud/discoveryengine/v1beta/project_service_services_pb.rb +51 -0
  83. data/lib/google/cloud/discoveryengine/v1beta/rank_service_pb.rb +1 -1
  84. data/lib/google/cloud/discoveryengine/v1beta/search_tuning_service_pb.rb +5 -1
  85. data/lib/google/cloud/discoveryengine/v1beta/search_tuning_service_services_pb.rb +2 -0
  86. data/lib/google/cloud/discoveryengine/v1beta/site_search_engine_pb.rb +1 -1
  87. data/lib/google/cloud/discoveryengine/v1beta/user_event_pb.rb +1 -1
  88. data/lib/google/cloud/discoveryengine/v1beta/user_event_service_pb.rb +1 -1
  89. data/lib/google/cloud/discoveryengine/v1beta/user_event_service_services_pb.rb +1 -1
  90. data/proto_docs/google/cloud/discoveryengine/v1beta/answer.rb +9 -1
  91. data/proto_docs/google/cloud/discoveryengine/v1beta/common.rb +16 -0
  92. data/proto_docs/google/cloud/discoveryengine/v1beta/control.rb +209 -0
  93. data/proto_docs/google/cloud/discoveryengine/v1beta/control_service.rb +126 -0
  94. data/proto_docs/google/cloud/discoveryengine/v1beta/conversation.rb +2 -2
  95. data/proto_docs/google/cloud/discoveryengine/v1beta/conversational_search_service.rb +19 -3
  96. data/proto_docs/google/cloud/discoveryengine/v1beta/custom_tuning_model.rb +75 -0
  97. data/proto_docs/google/cloud/discoveryengine/v1beta/data_store_service.rb +2 -2
  98. data/proto_docs/google/cloud/discoveryengine/v1beta/document_processing_config.rb +1 -0
  99. data/proto_docs/google/cloud/discoveryengine/v1beta/document_service.rb +6 -7
  100. data/proto_docs/google/cloud/discoveryengine/v1beta/engine.rb +3 -3
  101. data/proto_docs/google/cloud/discoveryengine/v1beta/grounded_generation_service.rb +39 -1
  102. data/proto_docs/google/cloud/discoveryengine/v1beta/grounding.rb +3 -0
  103. data/proto_docs/google/cloud/discoveryengine/v1beta/import_config.rb +4 -4
  104. data/proto_docs/google/cloud/discoveryengine/v1beta/project.rb +106 -0
  105. data/proto_docs/google/cloud/discoveryengine/v1beta/project_service.rb +57 -0
  106. data/proto_docs/google/cloud/discoveryengine/v1beta/rank_service.rb +28 -0
  107. data/proto_docs/google/cloud/discoveryengine/v1beta/recommendation_service.rb +20 -19
  108. data/proto_docs/google/cloud/discoveryengine/v1beta/schema_service.rb +5 -5
  109. data/proto_docs/google/cloud/discoveryengine/v1beta/search_service.rb +30 -24
  110. data/proto_docs/google/cloud/discoveryengine/v1beta/search_tuning_service.rb +31 -0
  111. data/proto_docs/google/cloud/discoveryengine/v1beta/session.rb +4 -1
  112. data/proto_docs/google/cloud/discoveryengine/v1beta/site_search_engine.rb +3 -0
  113. data/proto_docs/google/cloud/discoveryengine/v1beta/user_event.rb +24 -3
  114. data/proto_docs/google/cloud/discoveryengine/v1beta/user_event_service.rb +13 -1
  115. metadata +30 -2
@@ -31,6 +31,9 @@ module Google
31
31
  # Service for conversational 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
 
@@ -293,10 +296,11 @@ module Google
293
296
  # Customize the options with defaults
294
297
  metadata = @config.rpcs.converse_conversation.metadata.to_h
295
298
 
296
- # Set x-goog-api-client and x-goog-user-project headers
299
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
297
300
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
298
301
  lib_name: @config.lib_name, lib_version: @config.lib_version,
299
302
  gapic_version: ::Google::Cloud::DiscoveryEngine::V1beta::VERSION
303
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
300
304
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
301
305
 
302
306
  header_params = {}
@@ -384,10 +388,11 @@ module Google
384
388
  # Customize the options with defaults
385
389
  metadata = @config.rpcs.create_conversation.metadata.to_h
386
390
 
387
- # Set x-goog-api-client and x-goog-user-project headers
391
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
388
392
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
389
393
  lib_name: @config.lib_name, lib_version: @config.lib_version,
390
394
  gapic_version: ::Google::Cloud::DiscoveryEngine::V1beta::VERSION
395
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
391
396
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
392
397
 
393
398
  header_params = {}
@@ -473,10 +478,11 @@ module Google
473
478
  # Customize the options with defaults
474
479
  metadata = @config.rpcs.delete_conversation.metadata.to_h
475
480
 
476
- # Set x-goog-api-client and x-goog-user-project headers
481
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
477
482
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
478
483
  lib_name: @config.lib_name, lib_version: @config.lib_version,
479
484
  gapic_version: ::Google::Cloud::DiscoveryEngine::V1beta::VERSION
485
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
480
486
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
481
487
 
482
488
  header_params = {}
@@ -571,10 +577,11 @@ module Google
571
577
  # Customize the options with defaults
572
578
  metadata = @config.rpcs.update_conversation.metadata.to_h
573
579
 
574
- # Set x-goog-api-client and x-goog-user-project headers
580
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
575
581
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
576
582
  lib_name: @config.lib_name, lib_version: @config.lib_version,
577
583
  gapic_version: ::Google::Cloud::DiscoveryEngine::V1beta::VERSION
584
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
578
585
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
579
586
 
580
587
  header_params = {}
@@ -657,10 +664,11 @@ module Google
657
664
  # Customize the options with defaults
658
665
  metadata = @config.rpcs.get_conversation.metadata.to_h
659
666
 
660
- # Set x-goog-api-client and x-goog-user-project headers
667
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
661
668
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
662
669
  lib_name: @config.lib_name, lib_version: @config.lib_version,
663
670
  gapic_version: ::Google::Cloud::DiscoveryEngine::V1beta::VERSION
671
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
664
672
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
665
673
 
666
674
  header_params = {}
@@ -771,10 +779,11 @@ module Google
771
779
  # Customize the options with defaults
772
780
  metadata = @config.rpcs.list_conversations.metadata.to_h
773
781
 
774
- # Set x-goog-api-client and x-goog-user-project headers
782
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
775
783
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
776
784
  lib_name: @config.lib_name, lib_version: @config.lib_version,
777
785
  gapic_version: ::Google::Cloud::DiscoveryEngine::V1beta::VERSION
786
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
778
787
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
779
788
 
780
789
  header_params = {}
@@ -834,8 +843,8 @@ module Google
834
843
  #
835
844
  # When session field is not set, the API is in sessionless mode.
836
845
  #
837
- # We support auto session mode: users can use the wildcard symbol “-” as
838
- # session id. A new id will be automatically generated and assigned.
846
+ # We support auto session mode: users can use the wildcard symbol `-` as
847
+ # session ID. A new ID will be automatically generated and assigned.
839
848
  # @param safety_spec [::Google::Cloud::DiscoveryEngine::V1beta::AnswerQueryRequest::SafetySpec, ::Hash]
840
849
  # Model specification.
841
850
  # @param related_questions_spec [::Google::Cloud::DiscoveryEngine::V1beta::AnswerQueryRequest::RelatedQuestionsSpec, ::Hash]
@@ -901,10 +910,11 @@ module Google
901
910
  # Customize the options with defaults
902
911
  metadata = @config.rpcs.answer_query.metadata.to_h
903
912
 
904
- # Set x-goog-api-client and x-goog-user-project headers
913
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
905
914
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
906
915
  lib_name: @config.lib_name, lib_version: @config.lib_version,
907
916
  gapic_version: ::Google::Cloud::DiscoveryEngine::V1beta::VERSION
917
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
908
918
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
909
919
 
910
920
  header_params = {}
@@ -987,10 +997,11 @@ module Google
987
997
  # Customize the options with defaults
988
998
  metadata = @config.rpcs.get_answer.metadata.to_h
989
999
 
990
- # Set x-goog-api-client and x-goog-user-project headers
1000
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
991
1001
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
992
1002
  lib_name: @config.lib_name, lib_version: @config.lib_version,
993
1003
  gapic_version: ::Google::Cloud::DiscoveryEngine::V1beta::VERSION
1004
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
994
1005
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
995
1006
 
996
1007
  header_params = {}
@@ -1078,10 +1089,11 @@ module Google
1078
1089
  # Customize the options with defaults
1079
1090
  metadata = @config.rpcs.create_session.metadata.to_h
1080
1091
 
1081
- # Set x-goog-api-client and x-goog-user-project headers
1092
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1082
1093
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1083
1094
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1084
1095
  gapic_version: ::Google::Cloud::DiscoveryEngine::V1beta::VERSION
1096
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1085
1097
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1086
1098
 
1087
1099
  header_params = {}
@@ -1167,10 +1179,11 @@ module Google
1167
1179
  # Customize the options with defaults
1168
1180
  metadata = @config.rpcs.delete_session.metadata.to_h
1169
1181
 
1170
- # Set x-goog-api-client and x-goog-user-project headers
1182
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1171
1183
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1172
1184
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1173
1185
  gapic_version: ::Google::Cloud::DiscoveryEngine::V1beta::VERSION
1186
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1174
1187
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1175
1188
 
1176
1189
  header_params = {}
@@ -1264,10 +1277,11 @@ module Google
1264
1277
  # Customize the options with defaults
1265
1278
  metadata = @config.rpcs.update_session.metadata.to_h
1266
1279
 
1267
- # Set x-goog-api-client and x-goog-user-project headers
1280
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1268
1281
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1269
1282
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1270
1283
  gapic_version: ::Google::Cloud::DiscoveryEngine::V1beta::VERSION
1284
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1271
1285
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1272
1286
 
1273
1287
  header_params = {}
@@ -1350,10 +1364,11 @@ module Google
1350
1364
  # Customize the options with defaults
1351
1365
  metadata = @config.rpcs.get_session.metadata.to_h
1352
1366
 
1353
- # Set x-goog-api-client and x-goog-user-project headers
1367
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1354
1368
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1355
1369
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1356
1370
  gapic_version: ::Google::Cloud::DiscoveryEngine::V1beta::VERSION
1371
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1357
1372
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1358
1373
 
1359
1374
  header_params = {}
@@ -1464,10 +1479,11 @@ module Google
1464
1479
  # Customize the options with defaults
1465
1480
  metadata = @config.rpcs.list_sessions.metadata.to_h
1466
1481
 
1467
- # Set x-goog-api-client and x-goog-user-project headers
1482
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1468
1483
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1469
1484
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1470
1485
  gapic_version: ::Google::Cloud::DiscoveryEngine::V1beta::VERSION
1486
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1471
1487
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1472
1488
 
1473
1489
  header_params = {}
@@ -33,6 +33,9 @@ module Google
33
33
  # Service for conversational 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
 
@@ -285,12 +288,13 @@ module Google
285
288
  # Customize the options with defaults
286
289
  call_metadata = @config.rpcs.converse_conversation.metadata.to_h
287
290
 
288
- # Set x-goog-api-client and x-goog-user-project headers
291
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
289
292
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
290
293
  lib_name: @config.lib_name, lib_version: @config.lib_version,
291
294
  gapic_version: ::Google::Cloud::DiscoveryEngine::V1beta::VERSION,
292
295
  transports_version_send: [:rest]
293
296
 
297
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
294
298
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
295
299
 
296
300
  options.apply_defaults timeout: @config.rpcs.converse_conversation.timeout,
@@ -369,12 +373,13 @@ module Google
369
373
  # Customize the options with defaults
370
374
  call_metadata = @config.rpcs.create_conversation.metadata.to_h
371
375
 
372
- # Set x-goog-api-client and x-goog-user-project headers
376
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
373
377
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
374
378
  lib_name: @config.lib_name, lib_version: @config.lib_version,
375
379
  gapic_version: ::Google::Cloud::DiscoveryEngine::V1beta::VERSION,
376
380
  transports_version_send: [:rest]
377
381
 
382
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
378
383
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
379
384
 
380
385
  options.apply_defaults timeout: @config.rpcs.create_conversation.timeout,
@@ -451,12 +456,13 @@ module Google
451
456
  # Customize the options with defaults
452
457
  call_metadata = @config.rpcs.delete_conversation.metadata.to_h
453
458
 
454
- # Set x-goog-api-client and x-goog-user-project headers
459
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
455
460
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
456
461
  lib_name: @config.lib_name, lib_version: @config.lib_version,
457
462
  gapic_version: ::Google::Cloud::DiscoveryEngine::V1beta::VERSION,
458
463
  transports_version_send: [:rest]
459
464
 
465
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
460
466
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
461
467
 
462
468
  options.apply_defaults timeout: @config.rpcs.delete_conversation.timeout,
@@ -542,12 +548,13 @@ module Google
542
548
  # Customize the options with defaults
543
549
  call_metadata = @config.rpcs.update_conversation.metadata.to_h
544
550
 
545
- # Set x-goog-api-client and x-goog-user-project headers
551
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
546
552
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
547
553
  lib_name: @config.lib_name, lib_version: @config.lib_version,
548
554
  gapic_version: ::Google::Cloud::DiscoveryEngine::V1beta::VERSION,
549
555
  transports_version_send: [:rest]
550
556
 
557
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
551
558
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
552
559
 
553
560
  options.apply_defaults timeout: @config.rpcs.update_conversation.timeout,
@@ -621,12 +628,13 @@ module Google
621
628
  # Customize the options with defaults
622
629
  call_metadata = @config.rpcs.get_conversation.metadata.to_h
623
630
 
624
- # Set x-goog-api-client and x-goog-user-project headers
631
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
625
632
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
626
633
  lib_name: @config.lib_name, lib_version: @config.lib_version,
627
634
  gapic_version: ::Google::Cloud::DiscoveryEngine::V1beta::VERSION,
628
635
  transports_version_send: [:rest]
629
636
 
637
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
630
638
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
631
639
 
632
640
  options.apply_defaults timeout: @config.rpcs.get_conversation.timeout,
@@ -728,12 +736,13 @@ module Google
728
736
  # Customize the options with defaults
729
737
  call_metadata = @config.rpcs.list_conversations.metadata.to_h
730
738
 
731
- # Set x-goog-api-client and x-goog-user-project headers
739
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
732
740
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
733
741
  lib_name: @config.lib_name, lib_version: @config.lib_version,
734
742
  gapic_version: ::Google::Cloud::DiscoveryEngine::V1beta::VERSION,
735
743
  transports_version_send: [:rest]
736
744
 
745
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
737
746
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
738
747
 
739
748
  options.apply_defaults timeout: @config.rpcs.list_conversations.timeout,
@@ -785,8 +794,8 @@ module Google
785
794
  #
786
795
  # When session field is not set, the API is in sessionless mode.
787
796
  #
788
- # We support auto session mode: users can use the wildcard symbol “-” as
789
- # session id. A new id will be automatically generated and assigned.
797
+ # We support auto session mode: users can use the wildcard symbol `-` as
798
+ # session ID. A new ID will be automatically generated and assigned.
790
799
  # @param safety_spec [::Google::Cloud::DiscoveryEngine::V1beta::AnswerQueryRequest::SafetySpec, ::Hash]
791
800
  # Model specification.
792
801
  # @param related_questions_spec [::Google::Cloud::DiscoveryEngine::V1beta::AnswerQueryRequest::RelatedQuestionsSpec, ::Hash]
@@ -851,12 +860,13 @@ module Google
851
860
  # Customize the options with defaults
852
861
  call_metadata = @config.rpcs.answer_query.metadata.to_h
853
862
 
854
- # Set x-goog-api-client and x-goog-user-project headers
863
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
855
864
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
856
865
  lib_name: @config.lib_name, lib_version: @config.lib_version,
857
866
  gapic_version: ::Google::Cloud::DiscoveryEngine::V1beta::VERSION,
858
867
  transports_version_send: [:rest]
859
868
 
869
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
860
870
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
861
871
 
862
872
  options.apply_defaults timeout: @config.rpcs.answer_query.timeout,
@@ -930,12 +940,13 @@ module Google
930
940
  # Customize the options with defaults
931
941
  call_metadata = @config.rpcs.get_answer.metadata.to_h
932
942
 
933
- # Set x-goog-api-client and x-goog-user-project headers
943
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
934
944
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
935
945
  lib_name: @config.lib_name, lib_version: @config.lib_version,
936
946
  gapic_version: ::Google::Cloud::DiscoveryEngine::V1beta::VERSION,
937
947
  transports_version_send: [:rest]
938
948
 
949
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
939
950
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
940
951
 
941
952
  options.apply_defaults timeout: @config.rpcs.get_answer.timeout,
@@ -1014,12 +1025,13 @@ module Google
1014
1025
  # Customize the options with defaults
1015
1026
  call_metadata = @config.rpcs.create_session.metadata.to_h
1016
1027
 
1017
- # Set x-goog-api-client and x-goog-user-project headers
1028
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1018
1029
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1019
1030
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1020
1031
  gapic_version: ::Google::Cloud::DiscoveryEngine::V1beta::VERSION,
1021
1032
  transports_version_send: [:rest]
1022
1033
 
1034
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1023
1035
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1024
1036
 
1025
1037
  options.apply_defaults timeout: @config.rpcs.create_session.timeout,
@@ -1096,12 +1108,13 @@ module Google
1096
1108
  # Customize the options with defaults
1097
1109
  call_metadata = @config.rpcs.delete_session.metadata.to_h
1098
1110
 
1099
- # Set x-goog-api-client and x-goog-user-project headers
1111
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1100
1112
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1101
1113
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1102
1114
  gapic_version: ::Google::Cloud::DiscoveryEngine::V1beta::VERSION,
1103
1115
  transports_version_send: [:rest]
1104
1116
 
1117
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1105
1118
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1106
1119
 
1107
1120
  options.apply_defaults timeout: @config.rpcs.delete_session.timeout,
@@ -1186,12 +1199,13 @@ module Google
1186
1199
  # Customize the options with defaults
1187
1200
  call_metadata = @config.rpcs.update_session.metadata.to_h
1188
1201
 
1189
- # Set x-goog-api-client and x-goog-user-project headers
1202
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1190
1203
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1191
1204
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1192
1205
  gapic_version: ::Google::Cloud::DiscoveryEngine::V1beta::VERSION,
1193
1206
  transports_version_send: [:rest]
1194
1207
 
1208
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1195
1209
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1196
1210
 
1197
1211
  options.apply_defaults timeout: @config.rpcs.update_session.timeout,
@@ -1265,12 +1279,13 @@ module Google
1265
1279
  # Customize the options with defaults
1266
1280
  call_metadata = @config.rpcs.get_session.metadata.to_h
1267
1281
 
1268
- # Set x-goog-api-client and x-goog-user-project headers
1282
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1269
1283
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1270
1284
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1271
1285
  gapic_version: ::Google::Cloud::DiscoveryEngine::V1beta::VERSION,
1272
1286
  transports_version_send: [:rest]
1273
1287
 
1288
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1274
1289
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1275
1290
 
1276
1291
  options.apply_defaults timeout: @config.rpcs.get_session.timeout,
@@ -1372,12 +1387,13 @@ module Google
1372
1387
  # Customize the options with defaults
1373
1388
  call_metadata = @config.rpcs.list_sessions.metadata.to_h
1374
1389
 
1375
- # Set x-goog-api-client and x-goog-user-project headers
1390
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1376
1391
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1377
1392
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1378
1393
  gapic_version: ::Google::Cloud::DiscoveryEngine::V1beta::VERSION,
1379
1394
  transports_version_send: [:rest]
1380
1395
 
1396
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1381
1397
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1382
1398
 
1383
1399
  options.apply_defaults timeout: @config.rpcs.list_sessions.timeout,
@@ -32,6 +32,9 @@ module Google
32
32
  # {::Google::Cloud::DiscoveryEngine::V1beta::DataStore DataStore} configuration.
33
33
  #
34
34
  class Client
35
+ # @private
36
+ API_VERSION = ""
37
+
35
38
  # @private
36
39
  DEFAULT_ENDPOINT_TEMPLATE = "discoveryengine.$UNIVERSE_DOMAIN$"
37
40
 
@@ -277,10 +280,11 @@ module Google
277
280
  # Customize the options with defaults
278
281
  metadata = @config.rpcs.create_data_store.metadata.to_h
279
282
 
280
- # Set x-goog-api-client and x-goog-user-project headers
283
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
281
284
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
282
285
  lib_name: @config.lib_name, lib_version: @config.lib_version,
283
286
  gapic_version: ::Google::Cloud::DiscoveryEngine::V1beta::VERSION
287
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
284
288
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
285
289
 
286
290
  header_params = {}
@@ -372,10 +376,11 @@ module Google
372
376
  # Customize the options with defaults
373
377
  metadata = @config.rpcs.get_data_store.metadata.to_h
374
378
 
375
- # Set x-goog-api-client and x-goog-user-project headers
379
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
376
380
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
377
381
  lib_name: @config.lib_name, lib_version: @config.lib_version,
378
382
  gapic_version: ::Google::Cloud::DiscoveryEngine::V1beta::VERSION
383
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
379
384
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
380
385
 
381
386
  header_params = {}
@@ -448,8 +453,8 @@ module Google
448
453
  # must match the call that provided the page token. Otherwise, an
449
454
  # INVALID_ARGUMENT error is returned.
450
455
  # @param filter [::String]
451
- # Filter by solution type. For example: filter =
452
- # 'solution_type:SOLUTION_TYPE_SEARCH'
456
+ # Filter by solution type .
457
+ # For example: `filter = 'solution_type:SOLUTION_TYPE_SEARCH'`
453
458
  #
454
459
  # @yield [response, operation] Access the result along with the RPC operation
455
460
  # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::DiscoveryEngine::V1beta::DataStore>]
@@ -489,10 +494,11 @@ module Google
489
494
  # Customize the options with defaults
490
495
  metadata = @config.rpcs.list_data_stores.metadata.to_h
491
496
 
492
- # Set x-goog-api-client and x-goog-user-project headers
497
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
493
498
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
494
499
  lib_name: @config.lib_name, lib_version: @config.lib_version,
495
500
  gapic_version: ::Google::Cloud::DiscoveryEngine::V1beta::VERSION
501
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
496
502
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
497
503
 
498
504
  header_params = {}
@@ -591,10 +597,11 @@ module Google
591
597
  # Customize the options with defaults
592
598
  metadata = @config.rpcs.delete_data_store.metadata.to_h
593
599
 
594
- # Set x-goog-api-client and x-goog-user-project headers
600
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
595
601
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
596
602
  lib_name: @config.lib_name, lib_version: @config.lib_version,
597
603
  gapic_version: ::Google::Cloud::DiscoveryEngine::V1beta::VERSION
604
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
598
605
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
599
606
 
600
607
  header_params = {}
@@ -691,10 +698,11 @@ module Google
691
698
  # Customize the options with defaults
692
699
  metadata = @config.rpcs.update_data_store.metadata.to_h
693
700
 
694
- # Set x-goog-api-client and x-goog-user-project headers
701
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
695
702
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
696
703
  lib_name: @config.lib_name, lib_version: @config.lib_version,
697
704
  gapic_version: ::Google::Cloud::DiscoveryEngine::V1beta::VERSION
705
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
698
706
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
699
707
 
700
708
  header_params = {}
@@ -26,6 +26,9 @@ module Google
26
26
  module DataStoreService
27
27
  # Service that implements Longrunning Operations API.
28
28
  class Operations
29
+ # @private
30
+ API_VERSION = ""
31
+
29
32
  # @private
30
33
  DEFAULT_ENDPOINT_TEMPLATE = "discoveryengine.$UNIVERSE_DOMAIN$"
31
34
 
@@ -191,10 +194,11 @@ module Google
191
194
  # Customize the options with defaults
192
195
  metadata = @config.rpcs.list_operations.metadata.to_h
193
196
 
194
- # Set x-goog-api-client and x-goog-user-project headers
197
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
195
198
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
196
199
  lib_name: @config.lib_name, lib_version: @config.lib_version,
197
200
  gapic_version: ::Google::Cloud::DiscoveryEngine::V1beta::VERSION
201
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
198
202
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
199
203
 
200
204
  header_params = {}
@@ -287,10 +291,11 @@ module Google
287
291
  # Customize the options with defaults
288
292
  metadata = @config.rpcs.get_operation.metadata.to_h
289
293
 
290
- # Set x-goog-api-client and x-goog-user-project headers
294
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
291
295
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
292
296
  lib_name: @config.lib_name, lib_version: @config.lib_version,
293
297
  gapic_version: ::Google::Cloud::DiscoveryEngine::V1beta::VERSION
298
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
294
299
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
295
300
 
296
301
  header_params = {}
@@ -376,10 +381,11 @@ module Google
376
381
  # Customize the options with defaults
377
382
  metadata = @config.rpcs.delete_operation.metadata.to_h
378
383
 
379
- # Set x-goog-api-client and x-goog-user-project headers
384
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
380
385
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
381
386
  lib_name: @config.lib_name, lib_version: @config.lib_version,
382
387
  gapic_version: ::Google::Cloud::DiscoveryEngine::V1beta::VERSION
388
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
383
389
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
384
390
 
385
391
  header_params = {}
@@ -470,10 +476,11 @@ module Google
470
476
  # Customize the options with defaults
471
477
  metadata = @config.rpcs.cancel_operation.metadata.to_h
472
478
 
473
- # Set x-goog-api-client and x-goog-user-project headers
479
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
474
480
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
475
481
  lib_name: @config.lib_name, lib_version: @config.lib_version,
476
482
  gapic_version: ::Google::Cloud::DiscoveryEngine::V1beta::VERSION
483
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
477
484
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
478
485
 
479
486
  header_params = {}
@@ -574,10 +581,11 @@ module Google
574
581
  # Customize the options with defaults
575
582
  metadata = @config.rpcs.wait_operation.metadata.to_h
576
583
 
577
- # Set x-goog-api-client and x-goog-user-project headers
584
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
578
585
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
579
586
  lib_name: @config.lib_name, lib_version: @config.lib_version,
580
587
  gapic_version: ::Google::Cloud::DiscoveryEngine::V1beta::VERSION
588
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
581
589
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
582
590
 
583
591
  options.apply_defaults timeout: @config.rpcs.wait_operation.timeout,
@@ -34,6 +34,9 @@ module Google
34
34
  # {::Google::Cloud::DiscoveryEngine::V1beta::DataStore DataStore} configuration.
35
35
  #
36
36
  class Client
37
+ # @private
38
+ API_VERSION = ""
39
+
37
40
  # @private
38
41
  DEFAULT_ENDPOINT_TEMPLATE = "discoveryengine.$UNIVERSE_DOMAIN$"
39
42
 
@@ -269,12 +272,13 @@ module Google
269
272
  # Customize the options with defaults
270
273
  call_metadata = @config.rpcs.create_data_store.metadata.to_h
271
274
 
272
- # Set x-goog-api-client and x-goog-user-project headers
275
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
273
276
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
274
277
  lib_name: @config.lib_name, lib_version: @config.lib_version,
275
278
  gapic_version: ::Google::Cloud::DiscoveryEngine::V1beta::VERSION,
276
279
  transports_version_send: [:rest]
277
280
 
281
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
278
282
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
279
283
 
280
284
  options.apply_defaults timeout: @config.rpcs.create_data_store.timeout,
@@ -357,12 +361,13 @@ module Google
357
361
  # Customize the options with defaults
358
362
  call_metadata = @config.rpcs.get_data_store.metadata.to_h
359
363
 
360
- # Set x-goog-api-client and x-goog-user-project headers
364
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
361
365
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
362
366
  lib_name: @config.lib_name, lib_version: @config.lib_version,
363
367
  gapic_version: ::Google::Cloud::DiscoveryEngine::V1beta::VERSION,
364
368
  transports_version_send: [:rest]
365
369
 
370
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
366
371
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
367
372
 
368
373
  options.apply_defaults timeout: @config.rpcs.get_data_store.timeout,
@@ -427,8 +432,8 @@ module Google
427
432
  # must match the call that provided the page token. Otherwise, an
428
433
  # INVALID_ARGUMENT error is returned.
429
434
  # @param filter [::String]
430
- # Filter by solution type. For example: filter =
431
- # 'solution_type:SOLUTION_TYPE_SEARCH'
435
+ # Filter by solution type .
436
+ # For example: `filter = 'solution_type:SOLUTION_TYPE_SEARCH'`
432
437
  # @yield [result, operation] Access the result along with the TransportOperation object
433
438
  # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::DiscoveryEngine::V1beta::DataStore>]
434
439
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
@@ -467,12 +472,13 @@ module Google
467
472
  # Customize the options with defaults
468
473
  call_metadata = @config.rpcs.list_data_stores.metadata.to_h
469
474
 
470
- # Set x-goog-api-client and x-goog-user-project headers
475
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
471
476
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
472
477
  lib_name: @config.lib_name, lib_version: @config.lib_version,
473
478
  gapic_version: ::Google::Cloud::DiscoveryEngine::V1beta::VERSION,
474
479
  transports_version_send: [:rest]
475
480
 
481
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
476
482
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
477
483
 
478
484
  options.apply_defaults timeout: @config.rpcs.list_data_stores.timeout,
@@ -562,12 +568,13 @@ module Google
562
568
  # Customize the options with defaults
563
569
  call_metadata = @config.rpcs.delete_data_store.metadata.to_h
564
570
 
565
- # Set x-goog-api-client and x-goog-user-project headers
571
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
566
572
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
567
573
  lib_name: @config.lib_name, lib_version: @config.lib_version,
568
574
  gapic_version: ::Google::Cloud::DiscoveryEngine::V1beta::VERSION,
569
575
  transports_version_send: [:rest]
570
576
 
577
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
571
578
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
572
579
 
573
580
  options.apply_defaults timeout: @config.rpcs.delete_data_store.timeout,
@@ -655,12 +662,13 @@ module Google
655
662
  # Customize the options with defaults
656
663
  call_metadata = @config.rpcs.update_data_store.metadata.to_h
657
664
 
658
- # Set x-goog-api-client and x-goog-user-project headers
665
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
659
666
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
660
667
  lib_name: @config.lib_name, lib_version: @config.lib_version,
661
668
  gapic_version: ::Google::Cloud::DiscoveryEngine::V1beta::VERSION,
662
669
  transports_version_send: [:rest]
663
670
 
671
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
664
672
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
665
673
 
666
674
  options.apply_defaults timeout: @config.rpcs.update_data_store.timeout,