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.
- checksums.yaml +4 -4
- data/lib/google/cloud/discovery_engine/v1beta/completion_service/client.rb +9 -3
- data/lib/google/cloud/discovery_engine/v1beta/completion_service/operations.rb +13 -5
- data/lib/google/cloud/discovery_engine/v1beta/completion_service/rest/client.rb +9 -3
- data/lib/google/cloud/discovery_engine/v1beta/completion_service/rest/operations.rb +21 -6
- data/lib/google/cloud/discovery_engine/v1beta/control_service/client.rb +875 -0
- data/lib/google/cloud/discovery_engine/v1beta/control_service/credentials.rb +47 -0
- data/lib/google/cloud/discovery_engine/v1beta/control_service/paths.rb +167 -0
- data/lib/google/cloud/discovery_engine/v1beta/control_service/rest/client.rb +814 -0
- data/lib/google/cloud/discovery_engine/v1beta/control_service/rest/service_stub.rb +440 -0
- data/lib/google/cloud/discovery_engine/v1beta/control_service/rest.rb +55 -0
- data/lib/google/cloud/discovery_engine/v1beta/control_service.rb +58 -0
- data/lib/google/cloud/discovery_engine/v1beta/conversational_search_service/client.rb +31 -15
- data/lib/google/cloud/discovery_engine/v1beta/conversational_search_service/rest/client.rb +31 -15
- data/lib/google/cloud/discovery_engine/v1beta/data_store_service/client.rb +15 -7
- data/lib/google/cloud/discovery_engine/v1beta/data_store_service/operations.rb +13 -5
- data/lib/google/cloud/discovery_engine/v1beta/data_store_service/rest/client.rb +15 -7
- data/lib/google/cloud/discovery_engine/v1beta/data_store_service/rest/operations.rb +21 -6
- data/lib/google/cloud/discovery_engine/v1beta/document_service/client.rb +24 -15
- data/lib/google/cloud/discovery_engine/v1beta/document_service/operations.rb +13 -5
- data/lib/google/cloud/discovery_engine/v1beta/document_service/rest/client.rb +24 -15
- data/lib/google/cloud/discovery_engine/v1beta/document_service/rest/operations.rb +21 -6
- data/lib/google/cloud/discovery_engine/v1beta/engine_service/client.rb +19 -8
- data/lib/google/cloud/discovery_engine/v1beta/engine_service/operations.rb +13 -5
- data/lib/google/cloud/discovery_engine/v1beta/engine_service/rest/client.rb +19 -8
- data/lib/google/cloud/discovery_engine/v1beta/engine_service/rest/operations.rb +21 -6
- data/lib/google/cloud/discovery_engine/v1beta/grounded_generation_service/client.rb +25 -3
- data/lib/google/cloud/discovery_engine/v1beta/grounded_generation_service/rest/client.rb +25 -3
- data/lib/google/cloud/discovery_engine/v1beta/project_service/client.rb +485 -0
- data/lib/google/cloud/discovery_engine/v1beta/project_service/credentials.rb +47 -0
- data/lib/google/cloud/discovery_engine/v1beta/project_service/operations.rb +809 -0
- data/lib/google/cloud/discovery_engine/v1beta/project_service/paths.rb +47 -0
- data/lib/google/cloud/discovery_engine/v1beta/project_service/rest/client.rb +452 -0
- data/lib/google/cloud/discovery_engine/v1beta/project_service/rest/operations.rb +1092 -0
- data/lib/google/cloud/discovery_engine/v1beta/project_service/rest/service_stub.rb +129 -0
- data/lib/google/cloud/discovery_engine/v1beta/project_service/rest.rb +54 -0
- data/lib/google/cloud/discovery_engine/v1beta/project_service.rb +57 -0
- data/lib/google/cloud/discovery_engine/v1beta/rank_service/client.rb +24 -2
- data/lib/google/cloud/discovery_engine/v1beta/rank_service/rest/client.rb +24 -2
- data/lib/google/cloud/discovery_engine/v1beta/recommendation_service/client.rb +24 -19
- data/lib/google/cloud/discovery_engine/v1beta/recommendation_service/paths.rb +66 -0
- data/lib/google/cloud/discovery_engine/v1beta/recommendation_service/rest/client.rb +24 -19
- data/lib/google/cloud/discovery_engine/v1beta/rest.rb +2 -0
- data/lib/google/cloud/discovery_engine/v1beta/schema_service/client.rb +18 -10
- data/lib/google/cloud/discovery_engine/v1beta/schema_service/operations.rb +13 -5
- data/lib/google/cloud/discovery_engine/v1beta/schema_service/rest/client.rb +18 -10
- data/lib/google/cloud/discovery_engine/v1beta/schema_service/rest/operations.rb +21 -6
- data/lib/google/cloud/discovery_engine/v1beta/search_service/client.rb +15 -8
- data/lib/google/cloud/discovery_engine/v1beta/search_service/rest/client.rb +15 -8
- data/lib/google/cloud/discovery_engine/v1beta/search_tuning_service/client.rb +104 -2
- data/lib/google/cloud/discovery_engine/v1beta/search_tuning_service/operations.rb +13 -5
- data/lib/google/cloud/discovery_engine/v1beta/search_tuning_service/rest/client.rb +97 -2
- data/lib/google/cloud/discovery_engine/v1beta/search_tuning_service/rest/operations.rb +21 -6
- data/lib/google/cloud/discovery_engine/v1beta/search_tuning_service/rest/service_stub.rb +59 -0
- data/lib/google/cloud/discovery_engine/v1beta/serving_config_service/client.rb +9 -3
- data/lib/google/cloud/discovery_engine/v1beta/serving_config_service/rest/client.rb +9 -3
- data/lib/google/cloud/discovery_engine/v1beta/site_search_engine_service/client.rb +27 -12
- data/lib/google/cloud/discovery_engine/v1beta/site_search_engine_service/operations.rb +13 -5
- data/lib/google/cloud/discovery_engine/v1beta/site_search_engine_service/rest/client.rb +27 -12
- data/lib/google/cloud/discovery_engine/v1beta/site_search_engine_service/rest/operations.rb +21 -6
- data/lib/google/cloud/discovery_engine/v1beta/user_event_service/client.rb +23 -6
- data/lib/google/cloud/discovery_engine/v1beta/user_event_service/operations.rb +13 -5
- data/lib/google/cloud/discovery_engine/v1beta/user_event_service/paths.rb +21 -0
- data/lib/google/cloud/discovery_engine/v1beta/user_event_service/rest/client.rb +23 -6
- data/lib/google/cloud/discovery_engine/v1beta/user_event_service/rest/operations.rb +21 -6
- data/lib/google/cloud/discovery_engine/v1beta/user_event_service/rest/service_stub.rb +8 -0
- data/lib/google/cloud/discovery_engine/v1beta/version.rb +1 -1
- data/lib/google/cloud/discovery_engine/v1beta.rb +2 -0
- data/lib/google/cloud/discoveryengine/v1beta/answer_pb.rb +3 -1
- data/lib/google/cloud/discoveryengine/v1beta/common_pb.rb +2 -1
- data/lib/google/cloud/discoveryengine/v1beta/control_pb.rb +55 -0
- data/lib/google/cloud/discoveryengine/v1beta/control_service_pb.rb +57 -0
- data/lib/google/cloud/discoveryengine/v1beta/control_service_services_pb.rb +69 -0
- data/lib/google/cloud/discoveryengine/v1beta/conversational_search_service_pb.rb +1 -1
- data/lib/google/cloud/discoveryengine/v1beta/custom_tuning_model_pb.rb +48 -0
- data/lib/google/cloud/discoveryengine/v1beta/document_service_services_pb.rb +1 -1
- data/lib/google/cloud/discoveryengine/v1beta/engine_pb.rb +1 -1
- data/lib/google/cloud/discoveryengine/v1beta/grounded_generation_service_pb.rb +1 -1
- data/lib/google/cloud/discoveryengine/v1beta/grounding_pb.rb +1 -1
- data/lib/google/cloud/discoveryengine/v1beta/project_pb.rb +49 -0
- data/lib/google/cloud/discoveryengine/v1beta/project_service_pb.rb +50 -0
- data/lib/google/cloud/discoveryengine/v1beta/project_service_services_pb.rb +51 -0
- data/lib/google/cloud/discoveryengine/v1beta/rank_service_pb.rb +1 -1
- data/lib/google/cloud/discoveryengine/v1beta/search_tuning_service_pb.rb +5 -1
- data/lib/google/cloud/discoveryengine/v1beta/search_tuning_service_services_pb.rb +2 -0
- data/lib/google/cloud/discoveryengine/v1beta/site_search_engine_pb.rb +1 -1
- data/lib/google/cloud/discoveryengine/v1beta/user_event_pb.rb +1 -1
- data/lib/google/cloud/discoveryengine/v1beta/user_event_service_pb.rb +1 -1
- data/lib/google/cloud/discoveryengine/v1beta/user_event_service_services_pb.rb +1 -1
- data/proto_docs/google/cloud/discoveryengine/v1beta/answer.rb +9 -1
- data/proto_docs/google/cloud/discoveryengine/v1beta/common.rb +16 -0
- data/proto_docs/google/cloud/discoveryengine/v1beta/control.rb +209 -0
- data/proto_docs/google/cloud/discoveryengine/v1beta/control_service.rb +126 -0
- data/proto_docs/google/cloud/discoveryengine/v1beta/conversation.rb +2 -2
- data/proto_docs/google/cloud/discoveryengine/v1beta/conversational_search_service.rb +19 -3
- data/proto_docs/google/cloud/discoveryengine/v1beta/custom_tuning_model.rb +75 -0
- data/proto_docs/google/cloud/discoveryengine/v1beta/data_store_service.rb +2 -2
- data/proto_docs/google/cloud/discoveryengine/v1beta/document_processing_config.rb +1 -0
- data/proto_docs/google/cloud/discoveryengine/v1beta/document_service.rb +6 -7
- data/proto_docs/google/cloud/discoveryengine/v1beta/engine.rb +3 -3
- data/proto_docs/google/cloud/discoveryengine/v1beta/grounded_generation_service.rb +39 -1
- data/proto_docs/google/cloud/discoveryengine/v1beta/grounding.rb +3 -0
- data/proto_docs/google/cloud/discoveryengine/v1beta/import_config.rb +4 -4
- data/proto_docs/google/cloud/discoveryengine/v1beta/project.rb +106 -0
- data/proto_docs/google/cloud/discoveryengine/v1beta/project_service.rb +57 -0
- data/proto_docs/google/cloud/discoveryengine/v1beta/rank_service.rb +28 -0
- data/proto_docs/google/cloud/discoveryengine/v1beta/recommendation_service.rb +20 -19
- data/proto_docs/google/cloud/discoveryengine/v1beta/schema_service.rb +5 -5
- data/proto_docs/google/cloud/discoveryengine/v1beta/search_service.rb +30 -24
- data/proto_docs/google/cloud/discoveryengine/v1beta/search_tuning_service.rb +31 -0
- data/proto_docs/google/cloud/discoveryengine/v1beta/session.rb +4 -1
- data/proto_docs/google/cloud/discoveryengine/v1beta/site_search_engine.rb +3 -0
- data/proto_docs/google/cloud/discoveryengine/v1beta/user_event.rb +24 -3
- data/proto_docs/google/cloud/discoveryengine/v1beta/user_event_service.rb +13 -1
- metadata +30 -2
@@ -32,6 +32,9 @@ module Google
|
|
32
32
|
# 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
|
|
@@ -265,10 +268,11 @@ module Google
|
|
265
268
|
# Customize the options with defaults
|
266
269
|
metadata = @config.rpcs.create_engine.metadata.to_h
|
267
270
|
|
268
|
-
# Set x-goog-api-client
|
271
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
269
272
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
270
273
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
271
274
|
gapic_version: ::Google::Cloud::DiscoveryEngine::V1beta::VERSION
|
275
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
272
276
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
273
277
|
|
274
278
|
header_params = {}
|
@@ -367,10 +371,11 @@ module Google
|
|
367
371
|
# Customize the options with defaults
|
368
372
|
metadata = @config.rpcs.delete_engine.metadata.to_h
|
369
373
|
|
370
|
-
# Set x-goog-api-client
|
374
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
371
375
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
372
376
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
373
377
|
gapic_version: ::Google::Cloud::DiscoveryEngine::V1beta::VERSION
|
378
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
374
379
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
375
380
|
|
376
381
|
header_params = {}
|
@@ -467,10 +472,11 @@ module Google
|
|
467
472
|
# Customize the options with defaults
|
468
473
|
metadata = @config.rpcs.update_engine.metadata.to_h
|
469
474
|
|
470
|
-
# Set x-goog-api-client
|
475
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
471
476
|
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
|
479
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
474
480
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
475
481
|
|
476
482
|
header_params = {}
|
@@ -554,10 +560,11 @@ module Google
|
|
554
560
|
# Customize the options with defaults
|
555
561
|
metadata = @config.rpcs.get_engine.metadata.to_h
|
556
562
|
|
557
|
-
# Set x-goog-api-client
|
563
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
558
564
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
559
565
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
560
566
|
gapic_version: ::Google::Cloud::DiscoveryEngine::V1beta::VERSION
|
567
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
561
568
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
562
569
|
|
563
570
|
header_params = {}
|
@@ -652,10 +659,11 @@ module Google
|
|
652
659
|
# Customize the options with defaults
|
653
660
|
metadata = @config.rpcs.list_engines.metadata.to_h
|
654
661
|
|
655
|
-
# Set x-goog-api-client
|
662
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
656
663
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
657
664
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
658
665
|
gapic_version: ::Google::Cloud::DiscoveryEngine::V1beta::VERSION
|
666
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
659
667
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
660
668
|
|
661
669
|
header_params = {}
|
@@ -742,10 +750,11 @@ module Google
|
|
742
750
|
# Customize the options with defaults
|
743
751
|
metadata = @config.rpcs.pause_engine.metadata.to_h
|
744
752
|
|
745
|
-
# Set x-goog-api-client
|
753
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
746
754
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
747
755
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
748
756
|
gapic_version: ::Google::Cloud::DiscoveryEngine::V1beta::VERSION
|
757
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
749
758
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
750
759
|
|
751
760
|
header_params = {}
|
@@ -831,10 +840,11 @@ module Google
|
|
831
840
|
# Customize the options with defaults
|
832
841
|
metadata = @config.rpcs.resume_engine.metadata.to_h
|
833
842
|
|
834
|
-
# Set x-goog-api-client
|
843
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
835
844
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
836
845
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
837
846
|
gapic_version: ::Google::Cloud::DiscoveryEngine::V1beta::VERSION
|
847
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
838
848
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
839
849
|
|
840
850
|
header_params = {}
|
@@ -927,10 +937,11 @@ module Google
|
|
927
937
|
# Customize the options with defaults
|
928
938
|
metadata = @config.rpcs.tune_engine.metadata.to_h
|
929
939
|
|
930
|
-
# Set x-goog-api-client
|
940
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
931
941
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
932
942
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
933
943
|
gapic_version: ::Google::Cloud::DiscoveryEngine::V1beta::VERSION
|
944
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
934
945
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
935
946
|
|
936
947
|
header_params = {}
|
@@ -26,6 +26,9 @@ module Google
|
|
26
26
|
module EngineService
|
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::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
|
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
|
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
|
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
|
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
|
# 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
|
|
@@ -257,12 +260,13 @@ module Google
|
|
257
260
|
# Customize the options with defaults
|
258
261
|
call_metadata = @config.rpcs.create_engine.metadata.to_h
|
259
262
|
|
260
|
-
# Set x-goog-api-client
|
263
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
261
264
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
262
265
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
263
266
|
gapic_version: ::Google::Cloud::DiscoveryEngine::V1beta::VERSION,
|
264
267
|
transports_version_send: [:rest]
|
265
268
|
|
269
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
266
270
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
267
271
|
|
268
272
|
options.apply_defaults timeout: @config.rpcs.create_engine.timeout,
|
@@ -352,12 +356,13 @@ module Google
|
|
352
356
|
# Customize the options with defaults
|
353
357
|
call_metadata = @config.rpcs.delete_engine.metadata.to_h
|
354
358
|
|
355
|
-
# Set x-goog-api-client
|
359
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
356
360
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
357
361
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
358
362
|
gapic_version: ::Google::Cloud::DiscoveryEngine::V1beta::VERSION,
|
359
363
|
transports_version_send: [:rest]
|
360
364
|
|
365
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
361
366
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
362
367
|
|
363
368
|
options.apply_defaults timeout: @config.rpcs.delete_engine.timeout,
|
@@ -445,12 +450,13 @@ module Google
|
|
445
450
|
# Customize the options with defaults
|
446
451
|
call_metadata = @config.rpcs.update_engine.metadata.to_h
|
447
452
|
|
448
|
-
# Set x-goog-api-client
|
453
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
449
454
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
450
455
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
451
456
|
gapic_version: ::Google::Cloud::DiscoveryEngine::V1beta::VERSION,
|
452
457
|
transports_version_send: [:rest]
|
453
458
|
|
459
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
454
460
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
455
461
|
|
456
462
|
options.apply_defaults timeout: @config.rpcs.update_engine.timeout,
|
@@ -525,12 +531,13 @@ module Google
|
|
525
531
|
# Customize the options with defaults
|
526
532
|
call_metadata = @config.rpcs.get_engine.metadata.to_h
|
527
533
|
|
528
|
-
# Set x-goog-api-client
|
534
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
529
535
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
530
536
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
531
537
|
gapic_version: ::Google::Cloud::DiscoveryEngine::V1beta::VERSION,
|
532
538
|
transports_version_send: [:rest]
|
533
539
|
|
540
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
534
541
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
535
542
|
|
536
543
|
options.apply_defaults timeout: @config.rpcs.get_engine.timeout,
|
@@ -616,12 +623,13 @@ module Google
|
|
616
623
|
# Customize the options with defaults
|
617
624
|
call_metadata = @config.rpcs.list_engines.metadata.to_h
|
618
625
|
|
619
|
-
# Set x-goog-api-client
|
626
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
620
627
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
621
628
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
622
629
|
gapic_version: ::Google::Cloud::DiscoveryEngine::V1beta::VERSION,
|
623
630
|
transports_version_send: [:rest]
|
624
631
|
|
632
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
625
633
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
626
634
|
|
627
635
|
options.apply_defaults timeout: @config.rpcs.list_engines.timeout,
|
@@ -699,12 +707,13 @@ module Google
|
|
699
707
|
# Customize the options with defaults
|
700
708
|
call_metadata = @config.rpcs.pause_engine.metadata.to_h
|
701
709
|
|
702
|
-
# Set x-goog-api-client
|
710
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
703
711
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
704
712
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
705
713
|
gapic_version: ::Google::Cloud::DiscoveryEngine::V1beta::VERSION,
|
706
714
|
transports_version_send: [:rest]
|
707
715
|
|
716
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
708
717
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
709
718
|
|
710
719
|
options.apply_defaults timeout: @config.rpcs.pause_engine.timeout,
|
@@ -781,12 +790,13 @@ module Google
|
|
781
790
|
# Customize the options with defaults
|
782
791
|
call_metadata = @config.rpcs.resume_engine.metadata.to_h
|
783
792
|
|
784
|
-
# Set x-goog-api-client
|
793
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
785
794
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
786
795
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
787
796
|
gapic_version: ::Google::Cloud::DiscoveryEngine::V1beta::VERSION,
|
788
797
|
transports_version_send: [:rest]
|
789
798
|
|
799
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
790
800
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
791
801
|
|
792
802
|
options.apply_defaults timeout: @config.rpcs.resume_engine.timeout,
|
@@ -870,12 +880,13 @@ module Google
|
|
870
880
|
# Customize the options with defaults
|
871
881
|
call_metadata = @config.rpcs.tune_engine.metadata.to_h
|
872
882
|
|
873
|
-
# Set x-goog-api-client
|
883
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
874
884
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
875
885
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
876
886
|
gapic_version: ::Google::Cloud::DiscoveryEngine::V1beta::VERSION,
|
877
887
|
transports_version_send: [:rest]
|
878
888
|
|
889
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
879
890
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
880
891
|
|
881
892
|
options.apply_defaults timeout: @config.rpcs.tune_engine.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::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
|
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
|
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
|
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,
|
@@ -1060,10 +1067,18 @@ module Google
|
|
1060
1067
|
transcoder = Gapic::Rest::GrpcTranscoder.new
|
1061
1068
|
.with_bindings(
|
1062
1069
|
uri_method: :post,
|
1063
|
-
uri_template: "/
|
1070
|
+
uri_template: "/v1beta/{name}:cancel",
|
1064
1071
|
body: "*",
|
1065
1072
|
matches: [
|
1066
|
-
["name", %r{^operations
|
1073
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/collections/[^/]+/dataStores/[^/]+/branches/[^/]+/operations/[^/]+/?$}, false]
|
1074
|
+
]
|
1075
|
+
)
|
1076
|
+
.with_bindings(
|
1077
|
+
uri_method: :post,
|
1078
|
+
uri_template: "/v1beta/{name}:cancel",
|
1079
|
+
body: "*",
|
1080
|
+
matches: [
|
1081
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/dataStores/[^/]+/branches/[^/]+/operations/[^/]+/?$}, false]
|
1067
1082
|
]
|
1068
1083
|
)
|
1069
1084
|
transcoder.transcode request_pb
|
@@ -31,6 +31,9 @@ module Google
|
|
31
31
|
# Service for grounded generation.
|
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
|
|
@@ -193,7 +196,7 @@ module Google
|
|
193
196
|
# @param options [::Gapic::CallOptions, ::Hash]
|
194
197
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
195
198
|
#
|
196
|
-
# @overload check_grounding(grounding_config: nil, answer_candidate: nil, facts: nil, grounding_spec: nil)
|
199
|
+
# @overload check_grounding(grounding_config: nil, answer_candidate: nil, facts: nil, grounding_spec: nil, user_labels: nil)
|
197
200
|
# Pass arguments to `check_grounding` via keyword arguments. Note that at
|
198
201
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
199
202
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
@@ -202,12 +205,30 @@ module Google
|
|
202
205
|
# Required. The resource name of the grounding config, such as
|
203
206
|
# `projects/*/locations/global/groundingConfigs/default_grounding_config`.
|
204
207
|
# @param answer_candidate [::String]
|
205
|
-
# Answer candidate to check.
|
208
|
+
# Answer candidate to check. Can have a maximum length of 1024 characters.
|
206
209
|
# @param facts [::Array<::Google::Cloud::DiscoveryEngine::V1beta::GroundingFact, ::Hash>]
|
207
210
|
# List of facts for the grounding check.
|
208
211
|
# We support up to 200 facts.
|
209
212
|
# @param grounding_spec [::Google::Cloud::DiscoveryEngine::V1beta::CheckGroundingSpec, ::Hash]
|
210
213
|
# Configuration of the grounding check.
|
214
|
+
# @param user_labels [::Hash{::String => ::String}]
|
215
|
+
# The user labels applied to a resource must meet the following requirements:
|
216
|
+
#
|
217
|
+
# * Each resource can have multiple labels, up to a maximum of 64.
|
218
|
+
# * Each label must be a key-value pair.
|
219
|
+
# * Keys have a minimum length of 1 character and a maximum length of 63
|
220
|
+
# characters and cannot be empty. Values can be empty and have a maximum
|
221
|
+
# length of 63 characters.
|
222
|
+
# * Keys and values can contain only lowercase letters, numeric characters,
|
223
|
+
# underscores, and dashes. All characters must use UTF-8 encoding, and
|
224
|
+
# international characters are allowed.
|
225
|
+
# * The key portion of a label must be unique. However, you can use the same
|
226
|
+
# key with multiple resources.
|
227
|
+
# * Keys must start with a lowercase letter or international character.
|
228
|
+
#
|
229
|
+
# See [Google Cloud
|
230
|
+
# Document](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements)
|
231
|
+
# for more details.
|
211
232
|
#
|
212
233
|
# @yield [response, operation] Access the result along with the RPC operation
|
213
234
|
# @yieldparam response [::Google::Cloud::DiscoveryEngine::V1beta::CheckGroundingResponse]
|
@@ -243,10 +264,11 @@ module Google
|
|
243
264
|
# Customize the options with defaults
|
244
265
|
metadata = @config.rpcs.check_grounding.metadata.to_h
|
245
266
|
|
246
|
-
# Set x-goog-api-client
|
267
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
247
268
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
248
269
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
249
270
|
gapic_version: ::Google::Cloud::DiscoveryEngine::V1beta::VERSION
|
271
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
250
272
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
251
273
|
|
252
274
|
header_params = {}
|
@@ -33,6 +33,9 @@ module Google
|
|
33
33
|
# Service for grounded generation.
|
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
|
|
@@ -186,7 +189,7 @@ module Google
|
|
186
189
|
# @param options [::Gapic::CallOptions, ::Hash]
|
187
190
|
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
188
191
|
#
|
189
|
-
# @overload check_grounding(grounding_config: nil, answer_candidate: nil, facts: nil, grounding_spec: nil)
|
192
|
+
# @overload check_grounding(grounding_config: nil, answer_candidate: nil, facts: nil, grounding_spec: nil, user_labels: nil)
|
190
193
|
# Pass arguments to `check_grounding` via keyword arguments. Note that at
|
191
194
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
192
195
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
@@ -195,12 +198,30 @@ module Google
|
|
195
198
|
# Required. The resource name of the grounding config, such as
|
196
199
|
# `projects/*/locations/global/groundingConfigs/default_grounding_config`.
|
197
200
|
# @param answer_candidate [::String]
|
198
|
-
# Answer candidate to check.
|
201
|
+
# Answer candidate to check. Can have a maximum length of 1024 characters.
|
199
202
|
# @param facts [::Array<::Google::Cloud::DiscoveryEngine::V1beta::GroundingFact, ::Hash>]
|
200
203
|
# List of facts for the grounding check.
|
201
204
|
# We support up to 200 facts.
|
202
205
|
# @param grounding_spec [::Google::Cloud::DiscoveryEngine::V1beta::CheckGroundingSpec, ::Hash]
|
203
206
|
# Configuration of the grounding check.
|
207
|
+
# @param user_labels [::Hash{::String => ::String}]
|
208
|
+
# The user labels applied to a resource must meet the following requirements:
|
209
|
+
#
|
210
|
+
# * Each resource can have multiple labels, up to a maximum of 64.
|
211
|
+
# * Each label must be a key-value pair.
|
212
|
+
# * Keys have a minimum length of 1 character and a maximum length of 63
|
213
|
+
# characters and cannot be empty. Values can be empty and have a maximum
|
214
|
+
# length of 63 characters.
|
215
|
+
# * Keys and values can contain only lowercase letters, numeric characters,
|
216
|
+
# underscores, and dashes. All characters must use UTF-8 encoding, and
|
217
|
+
# international characters are allowed.
|
218
|
+
# * The key portion of a label must be unique. However, you can use the same
|
219
|
+
# key with multiple resources.
|
220
|
+
# * Keys must start with a lowercase letter or international character.
|
221
|
+
#
|
222
|
+
# See [Google Cloud
|
223
|
+
# Document](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements)
|
224
|
+
# for more details.
|
204
225
|
# @yield [result, operation] Access the result along with the TransportOperation object
|
205
226
|
# @yieldparam result [::Google::Cloud::DiscoveryEngine::V1beta::CheckGroundingResponse]
|
206
227
|
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
@@ -235,12 +256,13 @@ module Google
|
|
235
256
|
# Customize the options with defaults
|
236
257
|
call_metadata = @config.rpcs.check_grounding.metadata.to_h
|
237
258
|
|
238
|
-
# Set x-goog-api-client
|
259
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
239
260
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
240
261
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
241
262
|
gapic_version: ::Google::Cloud::DiscoveryEngine::V1beta::VERSION,
|
242
263
|
transports_version_send: [:rest]
|
243
264
|
|
265
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
244
266
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
245
267
|
|
246
268
|
options.apply_defaults timeout: @config.rpcs.check_grounding.timeout,
|