google-cloud-discovery_engine-v1 0.7.0 → 0.8.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/google/cloud/discovery_engine/v1/completion_service/client.rb +9 -3
- data/lib/google/cloud/discovery_engine/v1/completion_service/operations.rb +13 -5
- data/lib/google/cloud/discovery_engine/v1/completion_service/rest/client.rb +9 -3
- data/lib/google/cloud/discovery_engine/v1/completion_service/rest/operations.rb +28 -5
- data/lib/google/cloud/discovery_engine/v1/control_service/client.rb +875 -0
- data/lib/google/cloud/discovery_engine/v1/control_service/credentials.rb +47 -0
- data/lib/google/cloud/discovery_engine/v1/control_service/paths.rb +167 -0
- data/lib/google/cloud/discovery_engine/v1/control_service/rest/client.rb +814 -0
- data/lib/google/cloud/discovery_engine/v1/control_service/rest/service_stub.rb +440 -0
- data/lib/google/cloud/discovery_engine/v1/control_service/rest.rb +55 -0
- data/lib/google/cloud/discovery_engine/v1/control_service.rb +58 -0
- data/lib/google/cloud/discovery_engine/v1/conversational_search_service/client.rb +764 -6
- data/lib/google/cloud/discovery_engine/v1/conversational_search_service/paths.rb +199 -0
- data/lib/google/cloud/discovery_engine/v1/conversational_search_service/rest/client.rb +715 -6
- data/lib/google/cloud/discovery_engine/v1/conversational_search_service/rest/service_stub.rb +520 -0
- data/lib/google/cloud/discovery_engine/v1/data_store_service/client.rb +15 -7
- data/lib/google/cloud/discovery_engine/v1/data_store_service/operations.rb +13 -5
- data/lib/google/cloud/discovery_engine/v1/data_store_service/paths.rb +45 -0
- data/lib/google/cloud/discovery_engine/v1/data_store_service/rest/client.rb +15 -7
- data/lib/google/cloud/discovery_engine/v1/data_store_service/rest/operations.rb +28 -5
- data/lib/google/cloud/discovery_engine/v1/document_service/client.rb +23 -13
- data/lib/google/cloud/discovery_engine/v1/document_service/operations.rb +13 -5
- data/lib/google/cloud/discovery_engine/v1/document_service/rest/client.rb +23 -13
- data/lib/google/cloud/discovery_engine/v1/document_service/rest/operations.rb +28 -5
- data/lib/google/cloud/discovery_engine/v1/engine_service/client.rb +13 -5
- data/lib/google/cloud/discovery_engine/v1/engine_service/operations.rb +13 -5
- data/lib/google/cloud/discovery_engine/v1/engine_service/rest/client.rb +13 -5
- data/lib/google/cloud/discovery_engine/v1/engine_service/rest/operations.rb +28 -5
- data/lib/google/cloud/discovery_engine/v1/grounded_generation_service/client.rb +471 -0
- data/lib/google/cloud/discovery_engine/v1/grounded_generation_service/credentials.rb +47 -0
- data/lib/google/cloud/discovery_engine/v1/grounded_generation_service/paths.rb +52 -0
- data/lib/google/cloud/discovery_engine/v1/grounded_generation_service/rest/client.rb +438 -0
- data/lib/google/cloud/discovery_engine/v1/grounded_generation_service/rest/service_stub.rb +129 -0
- data/lib/google/cloud/discovery_engine/v1/grounded_generation_service/rest.rb +52 -0
- data/lib/google/cloud/discovery_engine/v1/grounded_generation_service.rb +55 -0
- data/lib/google/cloud/discovery_engine/v1/project_service/client.rb +485 -0
- data/lib/google/cloud/discovery_engine/v1/project_service/credentials.rb +47 -0
- data/lib/google/cloud/discovery_engine/v1/project_service/operations.rb +809 -0
- data/lib/google/cloud/discovery_engine/v1/project_service/paths.rb +47 -0
- data/lib/google/cloud/discovery_engine/v1/project_service/rest/client.rb +452 -0
- data/lib/google/cloud/discovery_engine/v1/project_service/rest/operations.rb +1114 -0
- data/lib/google/cloud/discovery_engine/v1/project_service/rest/service_stub.rb +129 -0
- data/lib/google/cloud/discovery_engine/v1/project_service/rest.rb +54 -0
- data/lib/google/cloud/discovery_engine/v1/project_service.rb +57 -0
- data/lib/google/cloud/discovery_engine/v1/rank_service/client.rb +481 -0
- data/lib/google/cloud/discovery_engine/v1/rank_service/credentials.rb +47 -0
- data/lib/google/cloud/discovery_engine/v1/rank_service/paths.rb +52 -0
- data/lib/google/cloud/discovery_engine/v1/rank_service/rest/client.rb +448 -0
- data/lib/google/cloud/discovery_engine/v1/rank_service/rest/service_stub.rb +129 -0
- data/lib/google/cloud/discovery_engine/v1/rank_service/rest.rb +52 -0
- data/lib/google/cloud/discovery_engine/v1/rank_service.rb +55 -0
- data/lib/google/cloud/discovery_engine/v1/recommendation_service/client.rb +24 -19
- data/lib/google/cloud/discovery_engine/v1/recommendation_service/paths.rb +66 -0
- data/lib/google/cloud/discovery_engine/v1/recommendation_service/rest/client.rb +24 -19
- data/lib/google/cloud/discovery_engine/v1/rest.rb +4 -0
- data/lib/google/cloud/discovery_engine/v1/schema_service/client.rb +18 -10
- data/lib/google/cloud/discovery_engine/v1/schema_service/operations.rb +13 -5
- data/lib/google/cloud/discovery_engine/v1/schema_service/rest/client.rb +18 -10
- data/lib/google/cloud/discovery_engine/v1/schema_service/rest/operations.rb +28 -5
- data/lib/google/cloud/discovery_engine/v1/search_service/client.rb +15 -8
- data/lib/google/cloud/discovery_engine/v1/search_service/rest/client.rb +15 -8
- data/lib/google/cloud/discovery_engine/v1/site_search_engine_service/client.rb +27 -12
- data/lib/google/cloud/discovery_engine/v1/site_search_engine_service/operations.rb +13 -5
- data/lib/google/cloud/discovery_engine/v1/site_search_engine_service/rest/client.rb +27 -12
- data/lib/google/cloud/discovery_engine/v1/site_search_engine_service/rest/operations.rb +28 -5
- data/lib/google/cloud/discovery_engine/v1/user_event_service/client.rb +23 -6
- data/lib/google/cloud/discovery_engine/v1/user_event_service/operations.rb +13 -5
- data/lib/google/cloud/discovery_engine/v1/user_event_service/paths.rb +21 -0
- data/lib/google/cloud/discovery_engine/v1/user_event_service/rest/client.rb +23 -6
- data/lib/google/cloud/discovery_engine/v1/user_event_service/rest/operations.rb +28 -5
- data/lib/google/cloud/discovery_engine/v1/user_event_service/rest/service_stub.rb +8 -0
- data/lib/google/cloud/discovery_engine/v1/version.rb +1 -1
- data/lib/google/cloud/discovery_engine/v1.rb +4 -0
- data/lib/google/cloud/discoveryengine/v1/answer_pb.rb +69 -0
- data/lib/google/cloud/discoveryengine/v1/common_pb.rb +2 -1
- data/lib/google/cloud/discoveryengine/v1/control_pb.rb +55 -0
- data/lib/google/cloud/discoveryengine/v1/control_service_pb.rb +57 -0
- data/lib/google/cloud/discoveryengine/v1/control_service_services_pb.rb +69 -0
- data/lib/google/cloud/discoveryengine/v1/conversational_search_service_pb.rb +32 -1
- data/lib/google/cloud/discoveryengine/v1/conversational_search_service_services_pb.rb +25 -0
- data/lib/google/cloud/discoveryengine/v1/data_store_pb.rb +3 -1
- data/lib/google/cloud/discoveryengine/v1/document_processing_config_pb.rb +48 -0
- data/lib/google/cloud/discoveryengine/v1/document_service_services_pb.rb +1 -1
- data/lib/google/cloud/discoveryengine/v1/engine_pb.rb +1 -1
- data/lib/google/cloud/discoveryengine/v1/grounded_generation_service_pb.rb +52 -0
- data/lib/google/cloud/discoveryengine/v1/grounded_generation_service_services_pb.rb +45 -0
- data/lib/google/cloud/discoveryengine/v1/grounding_pb.rb +46 -0
- data/lib/google/cloud/discoveryengine/v1/project_pb.rb +49 -0
- data/lib/google/cloud/discoveryengine/v1/project_service_pb.rb +50 -0
- data/lib/google/cloud/discoveryengine/v1/project_service_services_pb.rb +51 -0
- data/lib/google/cloud/discoveryengine/v1/rank_service_pb.rb +49 -0
- data/lib/google/cloud/discoveryengine/v1/rank_service_services_pb.rb +45 -0
- data/lib/google/cloud/discoveryengine/v1/session_pb.rb +50 -0
- data/lib/google/cloud/discoveryengine/v1/site_search_engine_pb.rb +1 -1
- data/lib/google/cloud/discoveryengine/v1/user_event_pb.rb +1 -1
- data/lib/google/cloud/discoveryengine/v1/user_event_service_pb.rb +1 -1
- data/lib/google/cloud/discoveryengine/v1/user_event_service_services_pb.rb +1 -1
- data/proto_docs/google/cloud/discoveryengine/v1/answer.rb +362 -0
- data/proto_docs/google/cloud/discoveryengine/v1/common.rb +16 -0
- data/proto_docs/google/cloud/discoveryengine/v1/control.rb +207 -0
- data/proto_docs/google/cloud/discoveryengine/v1/control_service.rb +126 -0
- data/proto_docs/google/cloud/discoveryengine/v1/conversation.rb +2 -2
- data/proto_docs/google/cloud/discoveryengine/v1/conversational_search_service.rb +485 -0
- data/proto_docs/google/cloud/discoveryengine/v1/data_store.rb +3 -0
- data/proto_docs/google/cloud/discoveryengine/v1/data_store_service.rb +2 -2
- data/proto_docs/google/cloud/discoveryengine/v1/document_processing_config.rb +102 -0
- data/proto_docs/google/cloud/discoveryengine/v1/document_service.rb +5 -5
- data/proto_docs/google/cloud/discoveryengine/v1/engine.rb +3 -3
- data/proto_docs/google/cloud/discoveryengine/v1/grounded_generation_service.rb +144 -0
- data/proto_docs/google/cloud/discoveryengine/v1/grounding.rb +79 -0
- data/proto_docs/google/cloud/discoveryengine/v1/import_config.rb +4 -4
- data/proto_docs/google/cloud/discoveryengine/v1/project.rb +106 -0
- data/proto_docs/google/cloud/discoveryengine/v1/project_service.rb +57 -0
- data/proto_docs/google/cloud/discoveryengine/v1/rank_service.rb +124 -0
- data/proto_docs/google/cloud/discoveryengine/v1/recommendation_service.rb +20 -19
- data/proto_docs/google/cloud/discoveryengine/v1/schema_service.rb +5 -5
- data/proto_docs/google/cloud/discoveryengine/v1/search_service.rb +23 -18
- data/proto_docs/google/cloud/discoveryengine/v1/session.rb +88 -0
- data/proto_docs/google/cloud/discoveryengine/v1/site_search_engine.rb +3 -0
- data/proto_docs/google/cloud/discoveryengine/v1/user_event.rb +24 -3
- data/proto_docs/google/cloud/discoveryengine/v1/user_event_service.rb +13 -1
- metadata +56 -2
@@ -33,6 +33,9 @@ module Google
|
|
33
33
|
# Service for managing site search related resources.
|
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
|
|
@@ -244,12 +247,13 @@ module Google
|
|
244
247
|
# Customize the options with defaults
|
245
248
|
call_metadata = @config.rpcs.get_site_search_engine.metadata.to_h
|
246
249
|
|
247
|
-
# Set x-goog-api-client
|
250
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
248
251
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
249
252
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
250
253
|
gapic_version: ::Google::Cloud::DiscoveryEngine::V1::VERSION,
|
251
254
|
transports_version_send: [:rest]
|
252
255
|
|
256
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
253
257
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
254
258
|
|
255
259
|
options.apply_defaults timeout: @config.rpcs.get_site_search_engine.timeout,
|
@@ -334,12 +338,13 @@ module Google
|
|
334
338
|
# Customize the options with defaults
|
335
339
|
call_metadata = @config.rpcs.create_target_site.metadata.to_h
|
336
340
|
|
337
|
-
# Set x-goog-api-client
|
341
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
338
342
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
339
343
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
340
344
|
gapic_version: ::Google::Cloud::DiscoveryEngine::V1::VERSION,
|
341
345
|
transports_version_send: [:rest]
|
342
346
|
|
347
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
343
348
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
344
349
|
|
345
350
|
options.apply_defaults timeout: @config.rpcs.create_target_site.timeout,
|
@@ -427,12 +432,13 @@ module Google
|
|
427
432
|
# Customize the options with defaults
|
428
433
|
call_metadata = @config.rpcs.batch_create_target_sites.metadata.to_h
|
429
434
|
|
430
|
-
# Set x-goog-api-client
|
435
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
431
436
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
432
437
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
433
438
|
gapic_version: ::Google::Cloud::DiscoveryEngine::V1::VERSION,
|
434
439
|
transports_version_send: [:rest]
|
435
440
|
|
441
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
436
442
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
437
443
|
|
438
444
|
options.apply_defaults timeout: @config.rpcs.batch_create_target_sites.timeout,
|
@@ -515,12 +521,13 @@ module Google
|
|
515
521
|
# Customize the options with defaults
|
516
522
|
call_metadata = @config.rpcs.get_target_site.metadata.to_h
|
517
523
|
|
518
|
-
# Set x-goog-api-client
|
524
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
519
525
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
520
526
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
521
527
|
gapic_version: ::Google::Cloud::DiscoveryEngine::V1::VERSION,
|
522
528
|
transports_version_send: [:rest]
|
523
529
|
|
530
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
524
531
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
525
532
|
|
526
533
|
options.apply_defaults timeout: @config.rpcs.get_target_site.timeout,
|
@@ -606,12 +613,13 @@ module Google
|
|
606
613
|
# Customize the options with defaults
|
607
614
|
call_metadata = @config.rpcs.update_target_site.metadata.to_h
|
608
615
|
|
609
|
-
# Set x-goog-api-client
|
616
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
610
617
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
611
618
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
612
619
|
gapic_version: ::Google::Cloud::DiscoveryEngine::V1::VERSION,
|
613
620
|
transports_version_send: [:rest]
|
614
621
|
|
622
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
615
623
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
616
624
|
|
617
625
|
options.apply_defaults timeout: @config.rpcs.update_target_site.timeout,
|
@@ -701,12 +709,13 @@ module Google
|
|
701
709
|
# Customize the options with defaults
|
702
710
|
call_metadata = @config.rpcs.delete_target_site.metadata.to_h
|
703
711
|
|
704
|
-
# Set x-goog-api-client
|
712
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
705
713
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
706
714
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
707
715
|
gapic_version: ::Google::Cloud::DiscoveryEngine::V1::VERSION,
|
708
716
|
transports_version_send: [:rest]
|
709
717
|
|
718
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
710
719
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
711
720
|
|
712
721
|
options.apply_defaults timeout: @config.rpcs.delete_target_site.timeout,
|
@@ -802,12 +811,13 @@ module Google
|
|
802
811
|
# Customize the options with defaults
|
803
812
|
call_metadata = @config.rpcs.list_target_sites.metadata.to_h
|
804
813
|
|
805
|
-
# Set x-goog-api-client
|
814
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
806
815
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
807
816
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
808
817
|
gapic_version: ::Google::Cloud::DiscoveryEngine::V1::VERSION,
|
809
818
|
transports_version_send: [:rest]
|
810
819
|
|
820
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
811
821
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
812
822
|
|
813
823
|
options.apply_defaults timeout: @config.rpcs.list_target_sites.timeout,
|
@@ -891,12 +901,13 @@ module Google
|
|
891
901
|
# Customize the options with defaults
|
892
902
|
call_metadata = @config.rpcs.enable_advanced_site_search.metadata.to_h
|
893
903
|
|
894
|
-
# Set x-goog-api-client
|
904
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
895
905
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
896
906
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
897
907
|
gapic_version: ::Google::Cloud::DiscoveryEngine::V1::VERSION,
|
898
908
|
transports_version_send: [:rest]
|
899
909
|
|
910
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
900
911
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
901
912
|
|
902
913
|
options.apply_defaults timeout: @config.rpcs.enable_advanced_site_search.timeout,
|
@@ -980,12 +991,13 @@ module Google
|
|
980
991
|
# Customize the options with defaults
|
981
992
|
call_metadata = @config.rpcs.disable_advanced_site_search.metadata.to_h
|
982
993
|
|
983
|
-
# Set x-goog-api-client
|
994
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
984
995
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
985
996
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
986
997
|
gapic_version: ::Google::Cloud::DiscoveryEngine::V1::VERSION,
|
987
998
|
transports_version_send: [:rest]
|
988
999
|
|
1000
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
989
1001
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
990
1002
|
|
991
1003
|
options.apply_defaults timeout: @config.rpcs.disable_advanced_site_search.timeout,
|
@@ -1073,12 +1085,13 @@ module Google
|
|
1073
1085
|
# Customize the options with defaults
|
1074
1086
|
call_metadata = @config.rpcs.recrawl_uris.metadata.to_h
|
1075
1087
|
|
1076
|
-
# Set x-goog-api-client
|
1088
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1077
1089
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1078
1090
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1079
1091
|
gapic_version: ::Google::Cloud::DiscoveryEngine::V1::VERSION,
|
1080
1092
|
transports_version_send: [:rest]
|
1081
1093
|
|
1094
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1082
1095
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1083
1096
|
|
1084
1097
|
options.apply_defaults timeout: @config.rpcs.recrawl_uris.timeout,
|
@@ -1162,12 +1175,13 @@ module Google
|
|
1162
1175
|
# Customize the options with defaults
|
1163
1176
|
call_metadata = @config.rpcs.batch_verify_target_sites.metadata.to_h
|
1164
1177
|
|
1165
|
-
# Set x-goog-api-client
|
1178
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1166
1179
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1167
1180
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1168
1181
|
gapic_version: ::Google::Cloud::DiscoveryEngine::V1::VERSION,
|
1169
1182
|
transports_version_send: [:rest]
|
1170
1183
|
|
1184
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1171
1185
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1172
1186
|
|
1173
1187
|
options.apply_defaults timeout: @config.rpcs.batch_verify_target_sites.timeout,
|
@@ -1262,12 +1276,13 @@ module Google
|
|
1262
1276
|
# Customize the options with defaults
|
1263
1277
|
call_metadata = @config.rpcs.fetch_domain_verification_status.metadata.to_h
|
1264
1278
|
|
1265
|
-
# Set x-goog-api-client
|
1279
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1266
1280
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1267
1281
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1268
1282
|
gapic_version: ::Google::Cloud::DiscoveryEngine::V1::VERSION,
|
1269
1283
|
transports_version_send: [:rest]
|
1270
1284
|
|
1285
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1271
1286
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1272
1287
|
|
1273
1288
|
options.apply_defaults timeout: @config.rpcs.fetch_domain_verification_status.timeout,
|
@@ -26,6 +26,9 @@ module Google
|
|
26
26
|
module Rest
|
27
27
|
# Service that implements Longrunning Operations API.
|
28
28
|
class Operations
|
29
|
+
# @private
|
30
|
+
API_VERSION = ""
|
31
|
+
|
29
32
|
# @private
|
30
33
|
DEFAULT_ENDPOINT_TEMPLATE = "discoveryengine.$UNIVERSE_DOMAIN$"
|
31
34
|
|
@@ -181,12 +184,13 @@ module Google
|
|
181
184
|
# Customize the options with defaults
|
182
185
|
call_metadata = @config.rpcs.list_operations.metadata.to_h
|
183
186
|
|
184
|
-
# Set x-goog-api-client
|
187
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
185
188
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
186
189
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
187
190
|
gapic_version: ::Google::Cloud::DiscoveryEngine::V1::VERSION,
|
188
191
|
transports_version_send: [:rest]
|
189
192
|
|
193
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
190
194
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
191
195
|
|
192
196
|
options.apply_defaults timeout: @config.rpcs.list_operations.timeout,
|
@@ -269,12 +273,13 @@ module Google
|
|
269
273
|
# Customize the options with defaults
|
270
274
|
call_metadata = @config.rpcs.get_operation.metadata.to_h
|
271
275
|
|
272
|
-
# Set x-goog-api-client
|
276
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
273
277
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
274
278
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
275
279
|
gapic_version: ::Google::Cloud::DiscoveryEngine::V1::VERSION,
|
276
280
|
transports_version_send: [:rest]
|
277
281
|
|
282
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
278
283
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
279
284
|
|
280
285
|
options.apply_defaults timeout: @config.rpcs.get_operation.timeout,
|
@@ -351,12 +356,13 @@ module Google
|
|
351
356
|
# Customize the options with defaults
|
352
357
|
call_metadata = @config.rpcs.delete_operation.metadata.to_h
|
353
358
|
|
354
|
-
# Set x-goog-api-client
|
359
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
355
360
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
356
361
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
357
362
|
gapic_version: ::Google::Cloud::DiscoveryEngine::V1::VERSION,
|
358
363
|
transports_version_send: [:rest]
|
359
364
|
|
365
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
360
366
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
361
367
|
|
362
368
|
options.apply_defaults timeout: @config.rpcs.delete_operation.timeout,
|
@@ -438,12 +444,13 @@ module Google
|
|
438
444
|
# Customize the options with defaults
|
439
445
|
call_metadata = @config.rpcs.cancel_operation.metadata.to_h
|
440
446
|
|
441
|
-
# Set x-goog-api-client
|
447
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
442
448
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
443
449
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
444
450
|
gapic_version: ::Google::Cloud::DiscoveryEngine::V1::VERSION,
|
445
451
|
transports_version_send: [:rest]
|
446
452
|
|
453
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
447
454
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
448
455
|
|
449
456
|
options.apply_defaults timeout: @config.rpcs.cancel_operation.timeout,
|
@@ -1077,7 +1084,23 @@ module Google
|
|
1077
1084
|
uri_template: "/v1/{name}:cancel",
|
1078
1085
|
body: "*",
|
1079
1086
|
matches: [
|
1080
|
-
["name", %r{^operations
|
1087
|
+
["name", %r{^projects/[^/]+/operations/[^/]+/?$}, false]
|
1088
|
+
]
|
1089
|
+
)
|
1090
|
+
.with_bindings(
|
1091
|
+
uri_method: :post,
|
1092
|
+
uri_template: "/v1/{name}:cancel",
|
1093
|
+
body: "*",
|
1094
|
+
matches: [
|
1095
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/collections/[^/]+/dataStores/[^/]+/branches/[^/]+/operations/[^/]+/?$}, false]
|
1096
|
+
]
|
1097
|
+
)
|
1098
|
+
.with_bindings(
|
1099
|
+
uri_method: :post,
|
1100
|
+
uri_template: "/v1/{name}:cancel",
|
1101
|
+
body: "*",
|
1102
|
+
matches: [
|
1103
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/dataStores/[^/]+/branches/[^/]+/operations/[^/]+/?$}, false]
|
1081
1104
|
]
|
1082
1105
|
)
|
1083
1106
|
transcoder.transcode request_pb
|
@@ -31,6 +31,9 @@ module Google
|
|
31
31
|
# Service for ingesting end user actions on a website to Discovery Engine API.
|
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
|
|
@@ -212,16 +215,27 @@ module Google
|
|
212
215
|
# @param options [::Gapic::CallOptions, ::Hash]
|
213
216
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
214
217
|
#
|
215
|
-
# @overload write_user_event(parent: nil, user_event: nil)
|
218
|
+
# @overload write_user_event(parent: nil, user_event: nil, write_async: nil)
|
216
219
|
# Pass arguments to `write_user_event` via keyword arguments. Note that at
|
217
220
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
218
221
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
219
222
|
#
|
220
223
|
# @param parent [::String]
|
221
|
-
# Required. The parent
|
224
|
+
# Required. The parent resource name.
|
225
|
+
# If the write user event action is applied in
|
226
|
+
# {::Google::Cloud::DiscoveryEngine::V1::DataStore DataStore} level, the format
|
227
|
+
# is:
|
222
228
|
# `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}`.
|
229
|
+
# If the write user event action is applied in [Location][] level, for
|
230
|
+
# example, the event with
|
231
|
+
# {::Google::Cloud::DiscoveryEngine::V1::Document Document} across multiple
|
232
|
+
# {::Google::Cloud::DiscoveryEngine::V1::DataStore DataStore}, the format is:
|
233
|
+
# `projects/{project}/locations/{location}`.
|
223
234
|
# @param user_event [::Google::Cloud::DiscoveryEngine::V1::UserEvent, ::Hash]
|
224
235
|
# Required. User event to write.
|
236
|
+
# @param write_async [::Boolean]
|
237
|
+
# If set to true, the user event is written asynchronously after
|
238
|
+
# validation, and the API responds without waiting for the write.
|
225
239
|
#
|
226
240
|
# @yield [response, operation] Access the result along with the RPC operation
|
227
241
|
# @yieldparam response [::Google::Cloud::DiscoveryEngine::V1::UserEvent]
|
@@ -257,10 +271,11 @@ module Google
|
|
257
271
|
# Customize the options with defaults
|
258
272
|
metadata = @config.rpcs.write_user_event.metadata.to_h
|
259
273
|
|
260
|
-
# Set x-goog-api-client
|
274
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
261
275
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
262
276
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
263
277
|
gapic_version: ::Google::Cloud::DiscoveryEngine::V1::VERSION
|
278
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
264
279
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
265
280
|
|
266
281
|
header_params = {}
|
@@ -359,10 +374,11 @@ module Google
|
|
359
374
|
# Customize the options with defaults
|
360
375
|
metadata = @config.rpcs.collect_user_event.metadata.to_h
|
361
376
|
|
362
|
-
# Set x-goog-api-client
|
377
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
363
378
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
364
379
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
365
380
|
gapic_version: ::Google::Cloud::DiscoveryEngine::V1::VERSION
|
381
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
366
382
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
367
383
|
|
368
384
|
header_params = {}
|
@@ -390,7 +406,7 @@ module Google
|
|
390
406
|
end
|
391
407
|
|
392
408
|
##
|
393
|
-
# Bulk import of
|
409
|
+
# Bulk import of user events. Request processing might be
|
394
410
|
# synchronous. Events that already exist are skipped.
|
395
411
|
# Use this method for backfilling historical user events.
|
396
412
|
#
|
@@ -467,10 +483,11 @@ module Google
|
|
467
483
|
# Customize the options with defaults
|
468
484
|
metadata = @config.rpcs.import_user_events.metadata.to_h
|
469
485
|
|
470
|
-
# Set x-goog-api-client
|
486
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
471
487
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
472
488
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
473
489
|
gapic_version: ::Google::Cloud::DiscoveryEngine::V1::VERSION
|
490
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
474
491
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
475
492
|
|
476
493
|
header_params = {}
|
@@ -26,6 +26,9 @@ module Google
|
|
26
26
|
module UserEventService
|
27
27
|
# Service that implements Longrunning Operations API.
|
28
28
|
class Operations
|
29
|
+
# @private
|
30
|
+
API_VERSION = ""
|
31
|
+
|
29
32
|
# @private
|
30
33
|
DEFAULT_ENDPOINT_TEMPLATE = "discoveryengine.$UNIVERSE_DOMAIN$"
|
31
34
|
|
@@ -191,10 +194,11 @@ module Google
|
|
191
194
|
# Customize the options with defaults
|
192
195
|
metadata = @config.rpcs.list_operations.metadata.to_h
|
193
196
|
|
194
|
-
# Set x-goog-api-client
|
197
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
195
198
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
196
199
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
197
200
|
gapic_version: ::Google::Cloud::DiscoveryEngine::V1::VERSION
|
201
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
198
202
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
199
203
|
|
200
204
|
header_params = {}
|
@@ -287,10 +291,11 @@ module Google
|
|
287
291
|
# Customize the options with defaults
|
288
292
|
metadata = @config.rpcs.get_operation.metadata.to_h
|
289
293
|
|
290
|
-
# Set x-goog-api-client
|
294
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
291
295
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
292
296
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
293
297
|
gapic_version: ::Google::Cloud::DiscoveryEngine::V1::VERSION
|
298
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
294
299
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
295
300
|
|
296
301
|
header_params = {}
|
@@ -376,10 +381,11 @@ module Google
|
|
376
381
|
# Customize the options with defaults
|
377
382
|
metadata = @config.rpcs.delete_operation.metadata.to_h
|
378
383
|
|
379
|
-
# Set x-goog-api-client
|
384
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
380
385
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
381
386
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
382
387
|
gapic_version: ::Google::Cloud::DiscoveryEngine::V1::VERSION
|
388
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
383
389
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
384
390
|
|
385
391
|
header_params = {}
|
@@ -470,10 +476,11 @@ module Google
|
|
470
476
|
# Customize the options with defaults
|
471
477
|
metadata = @config.rpcs.cancel_operation.metadata.to_h
|
472
478
|
|
473
|
-
# Set x-goog-api-client
|
479
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
474
480
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
475
481
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
476
482
|
gapic_version: ::Google::Cloud::DiscoveryEngine::V1::VERSION
|
483
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
477
484
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
478
485
|
|
479
486
|
header_params = {}
|
@@ -574,10 +581,11 @@ module Google
|
|
574
581
|
# Customize the options with defaults
|
575
582
|
metadata = @config.rpcs.wait_operation.metadata.to_h
|
576
583
|
|
577
|
-
# Set x-goog-api-client
|
584
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
578
585
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
579
586
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
580
587
|
gapic_version: ::Google::Cloud::DiscoveryEngine::V1::VERSION
|
588
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
581
589
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
582
590
|
|
583
591
|
options.apply_defaults timeout: @config.rpcs.wait_operation.timeout,
|
@@ -122,6 +122,27 @@ module Google
|
|
122
122
|
resource.call(**args)
|
123
123
|
end
|
124
124
|
|
125
|
+
##
|
126
|
+
# Create a fully-qualified Engine resource string.
|
127
|
+
#
|
128
|
+
# The resource will be in the following format:
|
129
|
+
#
|
130
|
+
# `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}`
|
131
|
+
#
|
132
|
+
# @param project [String]
|
133
|
+
# @param location [String]
|
134
|
+
# @param collection [String]
|
135
|
+
# @param engine [String]
|
136
|
+
#
|
137
|
+
# @return [::String]
|
138
|
+
def engine_path project:, location:, collection:, engine:
|
139
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
140
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
141
|
+
raise ::ArgumentError, "collection cannot contain /" if collection.to_s.include? "/"
|
142
|
+
|
143
|
+
"projects/#{project}/locations/#{location}/collections/#{collection}/engines/#{engine}"
|
144
|
+
end
|
145
|
+
|
125
146
|
extend self
|
126
147
|
end
|
127
148
|
end
|
@@ -33,6 +33,9 @@ module Google
|
|
33
33
|
# Service for ingesting end user actions on a website to Discovery Engine API.
|
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
|
|
@@ -205,16 +208,27 @@ module Google
|
|
205
208
|
# @param options [::Gapic::CallOptions, ::Hash]
|
206
209
|
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
207
210
|
#
|
208
|
-
# @overload write_user_event(parent: nil, user_event: nil)
|
211
|
+
# @overload write_user_event(parent: nil, user_event: nil, write_async: nil)
|
209
212
|
# Pass arguments to `write_user_event` via keyword arguments. Note that at
|
210
213
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
211
214
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
212
215
|
#
|
213
216
|
# @param parent [::String]
|
214
|
-
# Required. The parent
|
217
|
+
# Required. The parent resource name.
|
218
|
+
# If the write user event action is applied in
|
219
|
+
# {::Google::Cloud::DiscoveryEngine::V1::DataStore DataStore} level, the format
|
220
|
+
# is:
|
215
221
|
# `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}`.
|
222
|
+
# If the write user event action is applied in [Location][] level, for
|
223
|
+
# example, the event with
|
224
|
+
# {::Google::Cloud::DiscoveryEngine::V1::Document Document} across multiple
|
225
|
+
# {::Google::Cloud::DiscoveryEngine::V1::DataStore DataStore}, the format is:
|
226
|
+
# `projects/{project}/locations/{location}`.
|
216
227
|
# @param user_event [::Google::Cloud::DiscoveryEngine::V1::UserEvent, ::Hash]
|
217
228
|
# Required. User event to write.
|
229
|
+
# @param write_async [::Boolean]
|
230
|
+
# If set to true, the user event is written asynchronously after
|
231
|
+
# validation, and the API responds without waiting for the write.
|
218
232
|
# @yield [result, operation] Access the result along with the TransportOperation object
|
219
233
|
# @yieldparam result [::Google::Cloud::DiscoveryEngine::V1::UserEvent]
|
220
234
|
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
@@ -249,12 +263,13 @@ module Google
|
|
249
263
|
# Customize the options with defaults
|
250
264
|
call_metadata = @config.rpcs.write_user_event.metadata.to_h
|
251
265
|
|
252
|
-
# Set x-goog-api-client
|
266
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
253
267
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
254
268
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
255
269
|
gapic_version: ::Google::Cloud::DiscoveryEngine::V1::VERSION,
|
256
270
|
transports_version_send: [:rest]
|
257
271
|
|
272
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
258
273
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
259
274
|
|
260
275
|
options.apply_defaults timeout: @config.rpcs.write_user_event.timeout,
|
@@ -344,12 +359,13 @@ module Google
|
|
344
359
|
# Customize the options with defaults
|
345
360
|
call_metadata = @config.rpcs.collect_user_event.metadata.to_h
|
346
361
|
|
347
|
-
# Set x-goog-api-client
|
362
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
348
363
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
349
364
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
350
365
|
gapic_version: ::Google::Cloud::DiscoveryEngine::V1::VERSION,
|
351
366
|
transports_version_send: [:rest]
|
352
367
|
|
368
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
353
369
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
354
370
|
|
355
371
|
options.apply_defaults timeout: @config.rpcs.collect_user_event.timeout,
|
@@ -369,7 +385,7 @@ module Google
|
|
369
385
|
end
|
370
386
|
|
371
387
|
##
|
372
|
-
# Bulk import of
|
388
|
+
# Bulk import of user events. Request processing might be
|
373
389
|
# synchronous. Events that already exist are skipped.
|
374
390
|
# Use this method for backfilling historical user events.
|
375
391
|
#
|
@@ -445,12 +461,13 @@ module Google
|
|
445
461
|
# Customize the options with defaults
|
446
462
|
call_metadata = @config.rpcs.import_user_events.metadata.to_h
|
447
463
|
|
448
|
-
# Set x-goog-api-client
|
464
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
449
465
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
450
466
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
451
467
|
gapic_version: ::Google::Cloud::DiscoveryEngine::V1::VERSION,
|
452
468
|
transports_version_send: [:rest]
|
453
469
|
|
470
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
454
471
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
455
472
|
|
456
473
|
options.apply_defaults timeout: @config.rpcs.import_user_events.timeout,
|