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
@@ -31,6 +31,9 @@ module Google
|
|
31
31
|
# Service for managing {::Google::Cloud::DiscoveryEngine::V1beta::Schema Schema}s.
|
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
|
|
@@ -250,10 +253,11 @@ module Google
|
|
250
253
|
# Customize the options with defaults
|
251
254
|
metadata = @config.rpcs.get_schema.metadata.to_h
|
252
255
|
|
253
|
-
# Set x-goog-api-client
|
256
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
254
257
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
255
258
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
256
259
|
gapic_version: ::Google::Cloud::DiscoveryEngine::V1beta::VERSION
|
260
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
257
261
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
258
262
|
|
259
263
|
header_params = {}
|
@@ -306,9 +310,9 @@ module Google
|
|
306
310
|
# to return. The service may return fewer than this value.
|
307
311
|
#
|
308
312
|
# If unspecified, at most 100
|
309
|
-
# {::Google::Cloud::DiscoveryEngine::V1beta::Schema Schema}s
|
313
|
+
# {::Google::Cloud::DiscoveryEngine::V1beta::Schema Schema}s are returned.
|
310
314
|
#
|
311
|
-
# The maximum value is 1000; values above 1000
|
315
|
+
# The maximum value is 1000; values above 1000 are set to 1000.
|
312
316
|
# @param page_token [::String]
|
313
317
|
# A page token, received from a previous
|
314
318
|
# {::Google::Cloud::DiscoveryEngine::V1beta::SchemaService::Client#list_schemas SchemaService.ListSchemas}
|
@@ -356,10 +360,11 @@ module Google
|
|
356
360
|
# Customize the options with defaults
|
357
361
|
metadata = @config.rpcs.list_schemas.metadata.to_h
|
358
362
|
|
359
|
-
# Set x-goog-api-client
|
363
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
360
364
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
361
365
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
362
366
|
gapic_version: ::Google::Cloud::DiscoveryEngine::V1beta::VERSION
|
367
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
363
368
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
364
369
|
|
365
370
|
header_params = {}
|
@@ -413,7 +418,7 @@ module Google
|
|
413
418
|
# create.
|
414
419
|
# @param schema_id [::String]
|
415
420
|
# Required. The ID to use for the
|
416
|
-
# {::Google::Cloud::DiscoveryEngine::V1beta::Schema Schema}, which
|
421
|
+
# {::Google::Cloud::DiscoveryEngine::V1beta::Schema Schema}, which becomes the
|
417
422
|
# final component of the
|
418
423
|
# {::Google::Cloud::DiscoveryEngine::V1beta::Schema#name Schema.name}.
|
419
424
|
#
|
@@ -462,10 +467,11 @@ module Google
|
|
462
467
|
# Customize the options with defaults
|
463
468
|
metadata = @config.rpcs.create_schema.metadata.to_h
|
464
469
|
|
465
|
-
# Set x-goog-api-client
|
470
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
466
471
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
467
472
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
468
473
|
gapic_version: ::Google::Cloud::DiscoveryEngine::V1beta::VERSION
|
474
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
469
475
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
470
476
|
|
471
477
|
header_params = {}
|
@@ -517,8 +523,8 @@ module Google
|
|
517
523
|
# @param allow_missing [::Boolean]
|
518
524
|
# If set to true, and the
|
519
525
|
# {::Google::Cloud::DiscoveryEngine::V1beta::Schema Schema} is not found, a new
|
520
|
-
# {::Google::Cloud::DiscoveryEngine::V1beta::Schema Schema}
|
521
|
-
#
|
526
|
+
# {::Google::Cloud::DiscoveryEngine::V1beta::Schema Schema} is created. In this
|
527
|
+
# situation, `update_mask` is ignored.
|
522
528
|
#
|
523
529
|
# @yield [response, operation] Access the result along with the RPC operation
|
524
530
|
# @yieldparam response [::Gapic::Operation]
|
@@ -561,10 +567,11 @@ module Google
|
|
561
567
|
# Customize the options with defaults
|
562
568
|
metadata = @config.rpcs.update_schema.metadata.to_h
|
563
569
|
|
564
|
-
# Set x-goog-api-client
|
570
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
565
571
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
566
572
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
567
573
|
gapic_version: ::Google::Cloud::DiscoveryEngine::V1beta::VERSION
|
574
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
568
575
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
569
576
|
|
570
577
|
header_params = {}
|
@@ -655,10 +662,11 @@ module Google
|
|
655
662
|
# Customize the options with defaults
|
656
663
|
metadata = @config.rpcs.delete_schema.metadata.to_h
|
657
664
|
|
658
|
-
# Set x-goog-api-client
|
665
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
659
666
|
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
|
669
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
662
670
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
663
671
|
|
664
672
|
header_params = {}
|
@@ -26,6 +26,9 @@ module Google
|
|
26
26
|
module SchemaService
|
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,
|
@@ -33,6 +33,9 @@ module Google
|
|
33
33
|
# Service for managing {::Google::Cloud::DiscoveryEngine::V1beta::Schema Schema}s.
|
34
34
|
#
|
35
35
|
class Client
|
36
|
+
# @private
|
37
|
+
API_VERSION = ""
|
38
|
+
|
36
39
|
# @private
|
37
40
|
DEFAULT_ENDPOINT_TEMPLATE = "discoveryengine.$UNIVERSE_DOMAIN$"
|
38
41
|
|
@@ -242,12 +245,13 @@ module Google
|
|
242
245
|
# Customize the options with defaults
|
243
246
|
call_metadata = @config.rpcs.get_schema.metadata.to_h
|
244
247
|
|
245
|
-
# Set x-goog-api-client
|
248
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
246
249
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
247
250
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
248
251
|
gapic_version: ::Google::Cloud::DiscoveryEngine::V1beta::VERSION,
|
249
252
|
transports_version_send: [:rest]
|
250
253
|
|
254
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
251
255
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
252
256
|
|
253
257
|
options.apply_defaults timeout: @config.rpcs.get_schema.timeout,
|
@@ -292,9 +296,9 @@ module Google
|
|
292
296
|
# to return. The service may return fewer than this value.
|
293
297
|
#
|
294
298
|
# If unspecified, at most 100
|
295
|
-
# {::Google::Cloud::DiscoveryEngine::V1beta::Schema Schema}s
|
299
|
+
# {::Google::Cloud::DiscoveryEngine::V1beta::Schema Schema}s are returned.
|
296
300
|
#
|
297
|
-
# The maximum value is 1000; values above 1000
|
301
|
+
# The maximum value is 1000; values above 1000 are set to 1000.
|
298
302
|
# @param page_token [::String]
|
299
303
|
# A page token, received from a previous
|
300
304
|
# {::Google::Cloud::DiscoveryEngine::V1beta::SchemaService::Rest::Client#list_schemas SchemaService.ListSchemas}
|
@@ -341,12 +345,13 @@ module Google
|
|
341
345
|
# Customize the options with defaults
|
342
346
|
call_metadata = @config.rpcs.list_schemas.metadata.to_h
|
343
347
|
|
344
|
-
# Set x-goog-api-client
|
348
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
345
349
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
346
350
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
347
351
|
gapic_version: ::Google::Cloud::DiscoveryEngine::V1beta::VERSION,
|
348
352
|
transports_version_send: [:rest]
|
349
353
|
|
354
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
350
355
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
351
356
|
|
352
357
|
options.apply_defaults timeout: @config.rpcs.list_schemas.timeout,
|
@@ -392,7 +397,7 @@ module Google
|
|
392
397
|
# create.
|
393
398
|
# @param schema_id [::String]
|
394
399
|
# Required. The ID to use for the
|
395
|
-
# {::Google::Cloud::DiscoveryEngine::V1beta::Schema Schema}, which
|
400
|
+
# {::Google::Cloud::DiscoveryEngine::V1beta::Schema Schema}, which becomes the
|
396
401
|
# final component of the
|
397
402
|
# {::Google::Cloud::DiscoveryEngine::V1beta::Schema#name Schema.name}.
|
398
403
|
#
|
@@ -440,12 +445,13 @@ module Google
|
|
440
445
|
# Customize the options with defaults
|
441
446
|
call_metadata = @config.rpcs.create_schema.metadata.to_h
|
442
447
|
|
443
|
-
# Set x-goog-api-client
|
448
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
444
449
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
445
450
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
446
451
|
gapic_version: ::Google::Cloud::DiscoveryEngine::V1beta::VERSION,
|
447
452
|
transports_version_send: [:rest]
|
448
453
|
|
454
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
449
455
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
450
456
|
|
451
457
|
options.apply_defaults timeout: @config.rpcs.create_schema.timeout,
|
@@ -489,8 +495,8 @@ module Google
|
|
489
495
|
# @param allow_missing [::Boolean]
|
490
496
|
# If set to true, and the
|
491
497
|
# {::Google::Cloud::DiscoveryEngine::V1beta::Schema Schema} is not found, a new
|
492
|
-
# {::Google::Cloud::DiscoveryEngine::V1beta::Schema Schema}
|
493
|
-
#
|
498
|
+
# {::Google::Cloud::DiscoveryEngine::V1beta::Schema Schema} is created. In this
|
499
|
+
# situation, `update_mask` is ignored.
|
494
500
|
# @yield [result, operation] Access the result along with the TransportOperation object
|
495
501
|
# @yieldparam result [::Gapic::Operation]
|
496
502
|
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
@@ -532,12 +538,13 @@ module Google
|
|
532
538
|
# Customize the options with defaults
|
533
539
|
call_metadata = @config.rpcs.update_schema.metadata.to_h
|
534
540
|
|
535
|
-
# Set x-goog-api-client
|
541
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
536
542
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
537
543
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
538
544
|
gapic_version: ::Google::Cloud::DiscoveryEngine::V1beta::VERSION,
|
539
545
|
transports_version_send: [:rest]
|
540
546
|
|
547
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
541
548
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
542
549
|
|
543
550
|
options.apply_defaults timeout: @config.rpcs.update_schema.timeout,
|
@@ -619,12 +626,13 @@ module Google
|
|
619
626
|
# Customize the options with defaults
|
620
627
|
call_metadata = @config.rpcs.delete_schema.metadata.to_h
|
621
628
|
|
622
|
-
# Set x-goog-api-client
|
629
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
623
630
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
624
631
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
625
632
|
gapic_version: ::Google::Cloud::DiscoveryEngine::V1beta::VERSION,
|
626
633
|
transports_version_send: [:rest]
|
627
634
|
|
635
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
628
636
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
629
637
|
|
630
638
|
options.apply_defaults timeout: @config.rpcs.delete_schema.timeout,
|
@@ -26,6 +26,9 @@ module Google
|
|
26
26
|
module Rest
|
27
27
|
# Service that implements Longrunning Operations API.
|
28
28
|
class Operations
|
29
|
+
# @private
|
30
|
+
API_VERSION = ""
|
31
|
+
|
29
32
|
# @private
|
30
33
|
DEFAULT_ENDPOINT_TEMPLATE = "discoveryengine.$UNIVERSE_DOMAIN$"
|
31
34
|
|
@@ -181,12 +184,13 @@ module Google
|
|
181
184
|
# Customize the options with defaults
|
182
185
|
call_metadata = @config.rpcs.list_operations.metadata.to_h
|
183
186
|
|
184
|
-
# Set x-goog-api-client
|
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 search.
|
32
32
|
#
|
33
33
|
class Client
|
34
|
+
# @private
|
35
|
+
API_VERSION = ""
|
36
|
+
|
34
37
|
# @private
|
35
38
|
DEFAULT_ENDPOINT_TEMPLATE = "discoveryengine.$UNIVERSE_DOMAIN$"
|
36
39
|
|
@@ -244,7 +247,10 @@ module Google
|
|
244
247
|
#
|
245
248
|
# If this field is negative, an `INVALID_ARGUMENT` is returned.
|
246
249
|
# @param data_store_specs [::Array<::Google::Cloud::DiscoveryEngine::V1beta::SearchRequest::DataStoreSpec, ::Hash>]
|
247
|
-
#
|
250
|
+
# Specs defining dataStores to filter on in a search call and configurations
|
251
|
+
# for those dataStores. This is only considered for engines with multiple
|
252
|
+
# dataStores use case. For single dataStore within an engine, they should
|
253
|
+
# use the specs at the top level.
|
248
254
|
# @param filter [::String]
|
249
255
|
# The filter syntax consists of an expression language for constructing a
|
250
256
|
# predicate from one or more fields of the documents being filtered. Filter
|
@@ -278,7 +284,9 @@ module Google
|
|
278
284
|
# The order in which documents are returned. Documents can be ordered by
|
279
285
|
# a field in an {::Google::Cloud::DiscoveryEngine::V1beta::Document Document}
|
280
286
|
# object. Leave it unset if ordered by relevance. `order_by` expression is
|
281
|
-
# case-sensitive.
|
287
|
+
# case-sensitive.
|
288
|
+
#
|
289
|
+
# For more information on ordering for retail search, see
|
282
290
|
# [Ordering](https://cloud.google.com/retail/docs/filter-and-order#order)
|
283
291
|
#
|
284
292
|
# If this field is unrecognizable, an `INVALID_ARGUMENT` is returned.
|
@@ -295,7 +303,7 @@ module Google
|
|
295
303
|
# @param boost_spec [::Google::Cloud::DiscoveryEngine::V1beta::SearchRequest::BoostSpec, ::Hash]
|
296
304
|
# Boost specification to boost certain documents.
|
297
305
|
# For more information on boosting, see
|
298
|
-
# [Boosting](https://cloud.google.com/
|
306
|
+
# [Boosting](https://cloud.google.com/generative-ai-app-builder/docs/boost-search-results)
|
299
307
|
# @param params [::Hash{::String => ::Google::Protobuf::Value, ::Hash}]
|
300
308
|
# Additional search parameters.
|
301
309
|
#
|
@@ -303,8 +311,7 @@ module Google
|
|
303
311
|
#
|
304
312
|
# * `user_country_code`: string. Default empty. If set to non-empty, results
|
305
313
|
# are restricted or boosted based on the location provided.
|
306
|
-
#
|
307
|
-
# user_country_code: "au"
|
314
|
+
# For example, `user_country_code: "au"`
|
308
315
|
#
|
309
316
|
# For available codes see [Country
|
310
317
|
# Codes](https://developers.google.com/custom-search/docs/json_api_reference#countryCodes)
|
@@ -312,8 +319,7 @@ module Google
|
|
312
319
|
# * `search_type`: double. Default empty. Enables non-webpage searching
|
313
320
|
# depending on the value. The only valid non-default value is 1,
|
314
321
|
# which enables image searching.
|
315
|
-
#
|
316
|
-
# search_type: 1
|
322
|
+
# For example, `search_type: 1`
|
317
323
|
# @param query_expansion_spec [::Google::Cloud::DiscoveryEngine::V1beta::SearchRequest::QueryExpansionSpec, ::Hash]
|
318
324
|
# The query expansion specification that specifies the conditions under which
|
319
325
|
# query expansion occurs.
|
@@ -429,10 +435,11 @@ module Google
|
|
429
435
|
# Customize the options with defaults
|
430
436
|
metadata = @config.rpcs.search.metadata.to_h
|
431
437
|
|
432
|
-
# Set x-goog-api-client
|
438
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
433
439
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
434
440
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
435
441
|
gapic_version: ::Google::Cloud::DiscoveryEngine::V1beta::VERSION
|
442
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
436
443
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
437
444
|
|
438
445
|
header_params = {}
|
@@ -33,6 +33,9 @@ module Google
|
|
33
33
|
# Service for search.
|
34
34
|
#
|
35
35
|
class Client
|
36
|
+
# @private
|
37
|
+
API_VERSION = ""
|
38
|
+
|
36
39
|
# @private
|
37
40
|
DEFAULT_ENDPOINT_TEMPLATE = "discoveryengine.$UNIVERSE_DOMAIN$"
|
38
41
|
|
@@ -237,7 +240,10 @@ module Google
|
|
237
240
|
#
|
238
241
|
# If this field is negative, an `INVALID_ARGUMENT` is returned.
|
239
242
|
# @param data_store_specs [::Array<::Google::Cloud::DiscoveryEngine::V1beta::SearchRequest::DataStoreSpec, ::Hash>]
|
240
|
-
#
|
243
|
+
# Specs defining dataStores to filter on in a search call and configurations
|
244
|
+
# for those dataStores. This is only considered for engines with multiple
|
245
|
+
# dataStores use case. For single dataStore within an engine, they should
|
246
|
+
# use the specs at the top level.
|
241
247
|
# @param filter [::String]
|
242
248
|
# The filter syntax consists of an expression language for constructing a
|
243
249
|
# predicate from one or more fields of the documents being filtered. Filter
|
@@ -271,7 +277,9 @@ module Google
|
|
271
277
|
# The order in which documents are returned. Documents can be ordered by
|
272
278
|
# a field in an {::Google::Cloud::DiscoveryEngine::V1beta::Document Document}
|
273
279
|
# object. Leave it unset if ordered by relevance. `order_by` expression is
|
274
|
-
# case-sensitive.
|
280
|
+
# case-sensitive.
|
281
|
+
#
|
282
|
+
# For more information on ordering for retail search, see
|
275
283
|
# [Ordering](https://cloud.google.com/retail/docs/filter-and-order#order)
|
276
284
|
#
|
277
285
|
# If this field is unrecognizable, an `INVALID_ARGUMENT` is returned.
|
@@ -288,7 +296,7 @@ module Google
|
|
288
296
|
# @param boost_spec [::Google::Cloud::DiscoveryEngine::V1beta::SearchRequest::BoostSpec, ::Hash]
|
289
297
|
# Boost specification to boost certain documents.
|
290
298
|
# For more information on boosting, see
|
291
|
-
# [Boosting](https://cloud.google.com/
|
299
|
+
# [Boosting](https://cloud.google.com/generative-ai-app-builder/docs/boost-search-results)
|
292
300
|
# @param params [::Hash{::String => ::Google::Protobuf::Value, ::Hash}]
|
293
301
|
# Additional search parameters.
|
294
302
|
#
|
@@ -296,8 +304,7 @@ module Google
|
|
296
304
|
#
|
297
305
|
# * `user_country_code`: string. Default empty. If set to non-empty, results
|
298
306
|
# are restricted or boosted based on the location provided.
|
299
|
-
#
|
300
|
-
# user_country_code: "au"
|
307
|
+
# For example, `user_country_code: "au"`
|
301
308
|
#
|
302
309
|
# For available codes see [Country
|
303
310
|
# Codes](https://developers.google.com/custom-search/docs/json_api_reference#countryCodes)
|
@@ -305,8 +312,7 @@ module Google
|
|
305
312
|
# * `search_type`: double. Default empty. Enables non-webpage searching
|
306
313
|
# depending on the value. The only valid non-default value is 1,
|
307
314
|
# which enables image searching.
|
308
|
-
#
|
309
|
-
# search_type: 1
|
315
|
+
# For example, `search_type: 1`
|
310
316
|
# @param query_expansion_spec [::Google::Cloud::DiscoveryEngine::V1beta::SearchRequest::QueryExpansionSpec, ::Hash]
|
311
317
|
# The query expansion specification that specifies the conditions under which
|
312
318
|
# query expansion occurs.
|
@@ -421,12 +427,13 @@ module Google
|
|
421
427
|
# Customize the options with defaults
|
422
428
|
call_metadata = @config.rpcs.search.metadata.to_h
|
423
429
|
|
424
|
-
# Set x-goog-api-client
|
430
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
425
431
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
426
432
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
427
433
|
gapic_version: ::Google::Cloud::DiscoveryEngine::V1beta::VERSION,
|
428
434
|
transports_version_send: [:rest]
|
429
435
|
|
436
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
430
437
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
431
438
|
|
432
439
|
options.apply_defaults timeout: @config.rpcs.search.timeout,
|