google-cloud-retail-v2 2.0.0 → 2.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/lib/google/cloud/retail/v2/analytics_service/client.rb +2 -2
- data/lib/google/cloud/retail/v2/analytics_service/operations.rb +2 -2
- data/lib/google/cloud/retail/v2/analytics_service/rest/client.rb +1 -1
- data/lib/google/cloud/retail/v2/analytics_service/rest/operations.rb +1 -1
- data/lib/google/cloud/retail/v2/catalog_service/client.rb +37 -36
- data/lib/google/cloud/retail/v2/catalog_service/rest/client.rb +36 -35
- data/lib/google/cloud/retail/v2/catalog_service_services_pb.rb +30 -29
- data/lib/google/cloud/retail/v2/common_pb.rb +4 -1
- data/lib/google/cloud/retail/v2/completion_service/client.rb +14 -8
- data/lib/google/cloud/retail/v2/completion_service/operations.rb +2 -2
- data/lib/google/cloud/retail/v2/completion_service/rest/client.rb +13 -7
- data/lib/google/cloud/retail/v2/completion_service/rest/operations.rb +1 -1
- data/lib/google/cloud/retail/v2/control_service/client.rb +2 -2
- data/lib/google/cloud/retail/v2/control_service/rest/client.rb +1 -1
- data/lib/google/cloud/retail/v2/generative_question_service/client.rb +2 -2
- data/lib/google/cloud/retail/v2/generative_question_service/rest/client.rb +1 -1
- data/lib/google/cloud/retail/v2/model_service/client.rb +2 -2
- data/lib/google/cloud/retail/v2/model_service/operations.rb +2 -2
- data/lib/google/cloud/retail/v2/model_service/rest/client.rb +1 -1
- data/lib/google/cloud/retail/v2/model_service/rest/operations.rb +1 -1
- data/lib/google/cloud/retail/v2/prediction_service/client.rb +2 -2
- data/lib/google/cloud/retail/v2/prediction_service/rest/client.rb +1 -1
- data/lib/google/cloud/retail/v2/product_service/client.rb +2 -2
- data/lib/google/cloud/retail/v2/product_service/operations.rb +2 -2
- data/lib/google/cloud/retail/v2/product_service/rest/client.rb +1 -1
- data/lib/google/cloud/retail/v2/product_service/rest/operations.rb +1 -1
- data/lib/google/cloud/retail/v2/search_service/client.rb +21 -3
- data/lib/google/cloud/retail/v2/search_service/rest/client.rb +20 -2
- data/lib/google/cloud/retail/v2/search_service_pb.rb +1 -1
- data/lib/google/cloud/retail/v2/serving_config_service/client.rb +2 -2
- data/lib/google/cloud/retail/v2/serving_config_service/rest/client.rb +1 -1
- data/lib/google/cloud/retail/v2/user_event_service/client.rb +6 -4
- data/lib/google/cloud/retail/v2/user_event_service/operations.rb +2 -2
- data/lib/google/cloud/retail/v2/user_event_service/rest/client.rb +5 -3
- data/lib/google/cloud/retail/v2/user_event_service/rest/operations.rb +1 -1
- data/lib/google/cloud/retail/v2/user_event_service/rest/service_stub.rb +8 -0
- data/lib/google/cloud/retail/v2/user_event_service_pb.rb +1 -1
- data/lib/google/cloud/retail/v2/user_event_service_services_pb.rb +4 -2
- data/lib/google/cloud/retail/v2/version.rb +1 -1
- data/proto_docs/google/api/client.rb +6 -0
- data/proto_docs/google/cloud/retail/v2/catalog.rb +2 -2
- data/proto_docs/google/cloud/retail/v2/common.rb +129 -25
- data/proto_docs/google/cloud/retail/v2/completion_service.rb +16 -10
- data/proto_docs/google/cloud/retail/v2/import_config.rb +0 -3
- data/proto_docs/google/cloud/retail/v2/model.rb +0 -1
- data/proto_docs/google/cloud/retail/v2/product.rb +0 -1
- data/proto_docs/google/cloud/retail/v2/search_service.rb +41 -8
- data/proto_docs/google/cloud/retail/v2/serving_config.rb +15 -15
- data/proto_docs/google/cloud/retail/v2/user_event.rb +0 -2
- metadata +7 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6c85083cea45daf0cf52335b84943e09d9bfff33ebe04e6121ba9728258a59c6
|
4
|
+
data.tar.gz: e3bde6f59711dbfcfd558ed300efbe9e8bdd29e3daedd4f22912bf10b22ee5d2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 12a54004201fda1dae3cf9bc8dd2c7ca3f5e9174c8ad0ddc205646f2939c43b870cd7e58cefca6bfb5a95d74107882850e7b935b58b8043f77096f2df9ef74d3
|
7
|
+
data.tar.gz: fc9dff9dd35382071ccbc6f346232b5cfe3e77e3c7466a15d74a8b0bd9d9f9c46968663d95ae2d9b3bc2ae87e4059f188e9674e07e06f552284fc7f27cacf2ed
|
data/README.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# Ruby Client for the Retail V2 API
|
2
2
|
|
3
|
-
Vertex AI Search for
|
3
|
+
Vertex AI Search for commerce API is made up of Retail Search, Browse and Recommendations. These discovery AI solutions help you implement personalized search, browse and recommendations, based on machine learning models, across your websites and mobile applications.
|
4
4
|
|
5
5
|
Retail enables you to build an end-to-end personalized recommendation system based on state-of-the-art deep learning ML models, without a need for expertise in ML or recommendation systems.
|
6
6
|
|
@@ -440,8 +440,8 @@ module Google
|
|
440
440
|
|
441
441
|
config_attr :endpoint, nil, ::String, nil
|
442
442
|
config_attr :credentials, nil do |value|
|
443
|
-
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
444
|
-
allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
|
443
|
+
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil]
|
444
|
+
allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC::Core::Channel
|
445
445
|
allowed.any? { |klass| klass === value }
|
446
446
|
end
|
447
447
|
config_attr :scope, nil, ::String, ::Array, nil
|
@@ -701,8 +701,8 @@ module Google
|
|
701
701
|
|
702
702
|
config_attr :endpoint, nil, ::String, nil
|
703
703
|
config_attr :credentials, nil do |value|
|
704
|
-
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
705
|
-
allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
|
704
|
+
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil]
|
705
|
+
allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC::Core::Channel
|
706
706
|
allowed.any? { |klass| klass === value }
|
707
707
|
end
|
708
708
|
config_attr :scope, nil, ::String, ::Array, nil
|
@@ -417,7 +417,7 @@ module Google
|
|
417
417
|
|
418
418
|
config_attr :endpoint, nil, ::String, nil
|
419
419
|
config_attr :credentials, nil do |value|
|
420
|
-
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
420
|
+
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil]
|
421
421
|
allowed.any? { |klass| klass === value }
|
422
422
|
end
|
423
423
|
config_attr :scope, nil, ::String, ::Array, nil
|
@@ -556,7 +556,7 @@ module Google
|
|
556
556
|
|
557
557
|
config_attr :endpoint, nil, ::String, nil
|
558
558
|
config_attr :credentials, nil do |value|
|
559
|
-
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
559
|
+
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil]
|
560
560
|
allowed.any? { |klass| klass === value }
|
561
561
|
end
|
562
562
|
config_attr :scope, nil, ::String, ::Array, nil
|
@@ -418,38 +418,39 @@ module Google
|
|
418
418
|
|
419
419
|
##
|
420
420
|
# Set a specified branch id as default branch. API methods such as
|
421
|
-
#
|
422
|
-
#
|
423
|
-
#
|
424
|
-
#
|
425
|
-
#
|
426
|
-
#
|
427
|
-
#
|
428
|
-
#
|
429
|
-
#
|
430
|
-
#
|
431
|
-
#
|
432
|
-
#
|
433
|
-
#
|
434
|
-
#
|
435
|
-
#
|
436
|
-
#
|
437
|
-
#
|
438
|
-
# keeping using
|
439
|
-
# as
|
440
|
-
#
|
441
|
-
#
|
442
|
-
#
|
443
|
-
#
|
444
|
-
#
|
445
|
-
#
|
446
|
-
#
|
447
|
-
#
|
448
|
-
#
|
449
|
-
#
|
450
|
-
#
|
451
|
-
#
|
452
|
-
#
|
421
|
+
# {::Google::Cloud::Retail::V2::SearchService::Client#search SearchService.Search},
|
422
|
+
# {::Google::Cloud::Retail::V2::ProductService::Client#get_product ProductService.GetProduct},
|
423
|
+
# {::Google::Cloud::Retail::V2::ProductService::Client#list_products ProductService.ListProducts}
|
424
|
+
# will treat requests using "default_branch" to the actual branch id set as
|
425
|
+
# default.
|
426
|
+
#
|
427
|
+
# For example, if `projects/*/locations/*/catalogs/*/branches/1` is set as
|
428
|
+
# default, setting
|
429
|
+
# {::Google::Cloud::Retail::V2::SearchRequest#branch SearchRequest.branch} to
|
430
|
+
# `projects/*/locations/*/catalogs/*/branches/default_branch` is equivalent
|
431
|
+
# to setting
|
432
|
+
# {::Google::Cloud::Retail::V2::SearchRequest#branch SearchRequest.branch} to
|
433
|
+
# `projects/*/locations/*/catalogs/*/branches/1`.
|
434
|
+
#
|
435
|
+
# Using multiple branches can be useful when developers would like
|
436
|
+
# to have a staging branch to test and verify for future usage. When it
|
437
|
+
# becomes ready, developers switch on the staging branch using this API
|
438
|
+
# while keeping using
|
439
|
+
# `projects/*/locations/*/catalogs/*/branches/default_branch` as
|
440
|
+
# {::Google::Cloud::Retail::V2::SearchRequest#branch SearchRequest.branch} to
|
441
|
+
# route the traffic to this staging branch.
|
442
|
+
#
|
443
|
+
# CAUTION: If you have live predict/search traffic, switching the default
|
444
|
+
# branch could potentially cause outages if the ID space of the new branch
|
445
|
+
# is very different from the old one.
|
446
|
+
#
|
447
|
+
# More specifically:
|
448
|
+
#
|
449
|
+
# * PredictionService will only return product IDs from branch \\{newBranch}.
|
450
|
+
# * SearchService will only return product IDs from branch \\{newBranch}
|
451
|
+
# (if branch is not explicitly set).
|
452
|
+
# * UserEventService will only join events with products from branch
|
453
|
+
# \\{newBranch}.
|
453
454
|
#
|
454
455
|
# @overload set_default_branch(request, options = nil)
|
455
456
|
# Pass arguments to `set_default_branch` via a request object, either of type
|
@@ -556,8 +557,8 @@ module Google
|
|
556
557
|
|
557
558
|
##
|
558
559
|
# Get which branch is currently default branch set by
|
559
|
-
#
|
560
|
-
#
|
560
|
+
# {::Google::Cloud::Retail::V2::CatalogService::Client#set_default_branch CatalogService.SetDefaultBranch}
|
561
|
+
# method under a specified parent catalog.
|
561
562
|
#
|
562
563
|
# @overload get_default_branch(request, options = nil)
|
563
564
|
# Pass arguments to `get_default_branch` via a request object, either of type
|
@@ -1416,8 +1417,8 @@ module Google
|
|
1416
1417
|
|
1417
1418
|
config_attr :endpoint, nil, ::String, nil
|
1418
1419
|
config_attr :credentials, nil do |value|
|
1419
|
-
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
1420
|
-
allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
|
1420
|
+
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil]
|
1421
|
+
allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC::Core::Channel
|
1421
1422
|
allowed.any? { |klass| klass === value }
|
1422
1423
|
end
|
1423
1424
|
config_attr :scope, nil, ::String, ::Array, nil
|
@@ -397,38 +397,39 @@ module Google
|
|
397
397
|
|
398
398
|
##
|
399
399
|
# Set a specified branch id as default branch. API methods such as
|
400
|
-
#
|
401
|
-
#
|
402
|
-
#
|
403
|
-
#
|
404
|
-
#
|
405
|
-
#
|
406
|
-
#
|
407
|
-
#
|
408
|
-
#
|
409
|
-
#
|
410
|
-
#
|
411
|
-
#
|
412
|
-
#
|
413
|
-
#
|
414
|
-
#
|
415
|
-
#
|
416
|
-
#
|
417
|
-
# keeping using
|
418
|
-
# as
|
419
|
-
#
|
420
|
-
#
|
421
|
-
#
|
422
|
-
#
|
423
|
-
#
|
424
|
-
#
|
425
|
-
#
|
426
|
-
#
|
427
|
-
#
|
428
|
-
#
|
429
|
-
#
|
430
|
-
#
|
431
|
-
#
|
400
|
+
# {::Google::Cloud::Retail::V2::SearchService::Rest::Client#search SearchService.Search},
|
401
|
+
# {::Google::Cloud::Retail::V2::ProductService::Rest::Client#get_product ProductService.GetProduct},
|
402
|
+
# {::Google::Cloud::Retail::V2::ProductService::Rest::Client#list_products ProductService.ListProducts}
|
403
|
+
# will treat requests using "default_branch" to the actual branch id set as
|
404
|
+
# default.
|
405
|
+
#
|
406
|
+
# For example, if `projects/*/locations/*/catalogs/*/branches/1` is set as
|
407
|
+
# default, setting
|
408
|
+
# {::Google::Cloud::Retail::V2::SearchRequest#branch SearchRequest.branch} to
|
409
|
+
# `projects/*/locations/*/catalogs/*/branches/default_branch` is equivalent
|
410
|
+
# to setting
|
411
|
+
# {::Google::Cloud::Retail::V2::SearchRequest#branch SearchRequest.branch} to
|
412
|
+
# `projects/*/locations/*/catalogs/*/branches/1`.
|
413
|
+
#
|
414
|
+
# Using multiple branches can be useful when developers would like
|
415
|
+
# to have a staging branch to test and verify for future usage. When it
|
416
|
+
# becomes ready, developers switch on the staging branch using this API
|
417
|
+
# while keeping using
|
418
|
+
# `projects/*/locations/*/catalogs/*/branches/default_branch` as
|
419
|
+
# {::Google::Cloud::Retail::V2::SearchRequest#branch SearchRequest.branch} to
|
420
|
+
# route the traffic to this staging branch.
|
421
|
+
#
|
422
|
+
# CAUTION: If you have live predict/search traffic, switching the default
|
423
|
+
# branch could potentially cause outages if the ID space of the new branch
|
424
|
+
# is very different from the old one.
|
425
|
+
#
|
426
|
+
# More specifically:
|
427
|
+
#
|
428
|
+
# * PredictionService will only return product IDs from branch \\{newBranch}.
|
429
|
+
# * SearchService will only return product IDs from branch \\{newBranch}
|
430
|
+
# (if branch is not explicitly set).
|
431
|
+
# * UserEventService will only join events with products from branch
|
432
|
+
# \\{newBranch}.
|
432
433
|
#
|
433
434
|
# @overload set_default_branch(request, options = nil)
|
434
435
|
# Pass arguments to `set_default_branch` via a request object, either of type
|
@@ -528,8 +529,8 @@ module Google
|
|
528
529
|
|
529
530
|
##
|
530
531
|
# Get which branch is currently default branch set by
|
531
|
-
#
|
532
|
-
#
|
532
|
+
# {::Google::Cloud::Retail::V2::CatalogService::Rest::Client#set_default_branch CatalogService.SetDefaultBranch}
|
533
|
+
# method under a specified parent catalog.
|
533
534
|
#
|
534
535
|
# @overload get_default_branch(request, options = nil)
|
535
536
|
# Pass arguments to `get_default_branch` via a request object, either of type
|
@@ -1323,7 +1324,7 @@ module Google
|
|
1323
1324
|
|
1324
1325
|
config_attr :endpoint, nil, ::String, nil
|
1325
1326
|
config_attr :credentials, nil do |value|
|
1326
|
-
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
1327
|
+
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil]
|
1327
1328
|
allowed.any? { |klass| klass === value }
|
1328
1329
|
end
|
1329
1330
|
config_attr :scope, nil, ::String, ::Array, nil
|
@@ -39,42 +39,43 @@ module Google
|
|
39
39
|
# Updates the [Catalog][google.cloud.retail.v2.Catalog]s.
|
40
40
|
rpc :UpdateCatalog, ::Google::Cloud::Retail::V2::UpdateCatalogRequest, ::Google::Cloud::Retail::V2::Catalog
|
41
41
|
# Set a specified branch id as default branch. API methods such as
|
42
|
-
#
|
43
|
-
#
|
44
|
-
#
|
45
|
-
#
|
46
|
-
#
|
42
|
+
# [SearchService.Search][google.cloud.retail.v2.SearchService.Search],
|
43
|
+
# [ProductService.GetProduct][google.cloud.retail.v2.ProductService.GetProduct],
|
44
|
+
# [ProductService.ListProducts][google.cloud.retail.v2.ProductService.ListProducts]
|
45
|
+
# will treat requests using "default_branch" to the actual branch id set as
|
46
|
+
# default.
|
47
47
|
#
|
48
|
-
#
|
49
|
-
#
|
50
|
-
#
|
51
|
-
#
|
52
|
-
#
|
53
|
-
#
|
54
|
-
#
|
48
|
+
# For example, if `projects/*/locations/*/catalogs/*/branches/1` is set as
|
49
|
+
# default, setting
|
50
|
+
# [SearchRequest.branch][google.cloud.retail.v2.SearchRequest.branch] to
|
51
|
+
# `projects/*/locations/*/catalogs/*/branches/default_branch` is equivalent
|
52
|
+
# to setting
|
53
|
+
# [SearchRequest.branch][google.cloud.retail.v2.SearchRequest.branch] to
|
54
|
+
# `projects/*/locations/*/catalogs/*/branches/1`.
|
55
55
|
#
|
56
|
-
#
|
57
|
-
#
|
58
|
-
#
|
59
|
-
# keeping using
|
60
|
-
# as
|
61
|
-
#
|
56
|
+
# Using multiple branches can be useful when developers would like
|
57
|
+
# to have a staging branch to test and verify for future usage. When it
|
58
|
+
# becomes ready, developers switch on the staging branch using this API
|
59
|
+
# while keeping using
|
60
|
+
# `projects/*/locations/*/catalogs/*/branches/default_branch` as
|
61
|
+
# [SearchRequest.branch][google.cloud.retail.v2.SearchRequest.branch] to
|
62
|
+
# route the traffic to this staging branch.
|
62
63
|
#
|
63
|
-
#
|
64
|
-
#
|
65
|
-
# very different from the old one.
|
64
|
+
# CAUTION: If you have live predict/search traffic, switching the default
|
65
|
+
# branch could potentially cause outages if the ID space of the new branch
|
66
|
+
# is very different from the old one.
|
66
67
|
#
|
67
|
-
#
|
68
|
+
# More specifically:
|
68
69
|
#
|
69
|
-
#
|
70
|
-
#
|
71
|
-
#
|
72
|
-
#
|
73
|
-
#
|
70
|
+
# * PredictionService will only return product IDs from branch {newBranch}.
|
71
|
+
# * SearchService will only return product IDs from branch {newBranch}
|
72
|
+
# (if branch is not explicitly set).
|
73
|
+
# * UserEventService will only join events with products from branch
|
74
|
+
# {newBranch}.
|
74
75
|
rpc :SetDefaultBranch, ::Google::Cloud::Retail::V2::SetDefaultBranchRequest, ::Google::Protobuf::Empty
|
75
76
|
# Get which branch is currently default branch set by
|
76
|
-
#
|
77
|
-
#
|
77
|
+
# [CatalogService.SetDefaultBranch][google.cloud.retail.v2.CatalogService.SetDefaultBranch]
|
78
|
+
# method under a specified parent catalog.
|
78
79
|
rpc :GetDefaultBranch, ::Google::Cloud::Retail::V2::GetDefaultBranchRequest, ::Google::Cloud::Retail::V2::GetDefaultBranchResponse
|
79
80
|
# Gets a [CompletionConfig][google.cloud.retail.v2.CompletionConfig].
|
80
81
|
rpc :GetCompletionConfig, ::Google::Cloud::Retail::V2::GetCompletionConfigRequest, ::Google::Cloud::Retail::V2::CompletionConfig
|
@@ -8,7 +8,7 @@ require 'google/api/field_behavior_pb'
|
|
8
8
|
require 'google/protobuf/timestamp_pb'
|
9
9
|
|
10
10
|
|
11
|
-
descriptor_data = "\n#google/cloud/retail/v2/common.proto\x12\x16google.cloud.retail.v2\x1a\x1fgoogle/api/field_behavior.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xc9\x02\n\tCondition\x12@\n\x0bquery_terms\x18\x01 \x03(\x0b\x32+.google.cloud.retail.v2.Condition.QueryTerm\x12\x46\n\x11\x61\x63tive_time_range\x18\x03 \x03(\x0b\x32+.google.cloud.retail.v2.Condition.TimeRange\x12\x17\n\x0fpage_categories\x18\x04 \x03(\t\x1a.\n\tQueryTerm\x12\r\n\x05value\x18\x01 \x01(\t\x12\x12\n\nfull_match\x18\x02 \x01(\x08\x1ai\n\tTimeRange\x12.\n\nstart_time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12,\n\x08\x65nd_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"\
|
11
|
+
descriptor_data = "\n#google/cloud/retail/v2/common.proto\x12\x16google.cloud.retail.v2\x1a\x1fgoogle/api/field_behavior.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xc9\x02\n\tCondition\x12@\n\x0bquery_terms\x18\x01 \x03(\x0b\x32+.google.cloud.retail.v2.Condition.QueryTerm\x12\x46\n\x11\x61\x63tive_time_range\x18\x03 \x03(\x0b\x32+.google.cloud.retail.v2.Condition.TimeRange\x12\x17\n\x0fpage_categories\x18\x04 \x03(\t\x1a.\n\tQueryTerm\x12\r\n\x05value\x18\x01 \x01(\t\x12\x12\n\nfull_match\x18\x02 \x01(\x08\x1ai\n\tTimeRange\x12.\n\nstart_time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12,\n\x08\x65nd_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"\xea\r\n\x04Rule\x12@\n\x0c\x62oost_action\x18\x02 \x01(\x0b\x32(.google.cloud.retail.v2.Rule.BoostActionH\x00\x12\x46\n\x0fredirect_action\x18\x03 \x01(\x0b\x32+.google.cloud.retail.v2.Rule.RedirectActionH\x00\x12S\n\x16oneway_synonyms_action\x18\x06 \x01(\x0b\x32\x31.google.cloud.retail.v2.Rule.OnewaySynonymsActionH\x00\x12T\n\x17\x64o_not_associate_action\x18\x07 \x01(\x0b\x32\x31.google.cloud.retail.v2.Rule.DoNotAssociateActionH\x00\x12L\n\x12replacement_action\x18\x08 \x01(\x0b\x32..google.cloud.retail.v2.Rule.ReplacementActionH\x00\x12\x42\n\rignore_action\x18\t \x01(\x0b\x32).google.cloud.retail.v2.Rule.IgnoreActionH\x00\x12\x42\n\rfilter_action\x18\n \x01(\x0b\x32).google.cloud.retail.v2.Rule.FilterActionH\x00\x12S\n\x16twoway_synonyms_action\x18\x0b \x01(\x0b\x32\x31.google.cloud.retail.v2.Rule.TwowaySynonymsActionH\x00\x12X\n\x19\x66orce_return_facet_action\x18\x0c \x01(\x0b\x32\x33.google.cloud.retail.v2.Rule.ForceReturnFacetActionH\x00\x12M\n\x13remove_facet_action\x18\r \x01(\x0b\x32..google.cloud.retail.v2.Rule.RemoveFacetActionH\x00\x12<\n\npin_action\x18\x0e \x01(\x0b\x32&.google.cloud.retail.v2.Rule.PinActionH\x00\x12\x39\n\tcondition\x18\x01 \x01(\x0b\x32!.google.cloud.retail.v2.ConditionB\x03\xe0\x41\x02\x1a\x35\n\x0b\x42oostAction\x12\r\n\x05\x62oost\x18\x01 \x01(\x02\x12\x17\n\x0fproducts_filter\x18\x02 \x01(\t\x1a\x1e\n\x0c\x46ilterAction\x12\x0e\n\x06\x66ilter\x18\x01 \x01(\t\x1a&\n\x0eRedirectAction\x12\x14\n\x0credirect_uri\x18\x01 \x01(\t\x1a(\n\x14TwowaySynonymsAction\x12\x10\n\x08synonyms\x18\x01 \x03(\t\x1aS\n\x14OnewaySynonymsAction\x12\x13\n\x0bquery_terms\x18\x03 \x03(\t\x12\x10\n\x08synonyms\x18\x04 \x03(\t\x12\x14\n\x0coneway_terms\x18\x02 \x03(\t\x1aZ\n\x14\x44oNotAssociateAction\x12\x13\n\x0bquery_terms\x18\x02 \x03(\t\x12\x1e\n\x16\x64o_not_associate_terms\x18\x03 \x03(\t\x12\r\n\x05terms\x18\x01 \x03(\t\x1aP\n\x11ReplacementAction\x12\x13\n\x0bquery_terms\x18\x02 \x03(\t\x12\x18\n\x10replacement_term\x18\x03 \x01(\t\x12\x0c\n\x04term\x18\x01 \x01(\t\x1a$\n\x0cIgnoreAction\x12\x14\n\x0cignore_terms\x18\x01 \x03(\t\x1a\xce\x01\n\x16\x46orceReturnFacetAction\x12o\n\x1a\x66\x61\x63\x65t_position_adjustments\x18\x01 \x03(\x0b\x32K.google.cloud.retail.v2.Rule.ForceReturnFacetAction.FacetPositionAdjustment\x1a\x43\n\x17\x46\x61\x63\x65tPositionAdjustment\x12\x16\n\x0e\x61ttribute_name\x18\x01 \x01(\t\x12\x10\n\x08position\x18\x02 \x01(\x05\x1a,\n\x11RemoveFacetAction\x12\x17\n\x0f\x61ttribute_names\x18\x01 \x03(\t\x1a\x84\x01\n\tPinAction\x12H\n\x07pin_map\x18\x01 \x03(\x0b\x32\x32.google.cloud.retail.v2.Rule.PinAction.PinMapEntryB\x03\xe0\x41\x02\x1a-\n\x0bPinMapEntry\x12\x0b\n\x03key\x18\x01 \x01(\x03\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x42\x08\n\x06\x61\x63tion\"/\n\x08\x41udience\x12\x0f\n\x07genders\x18\x01 \x03(\t\x12\x12\n\nage_groups\x18\x02 \x03(\t\"3\n\tColorInfo\x12\x16\n\x0e\x63olor_families\x18\x01 \x03(\t\x12\x0e\n\x06\x63olors\x18\x02 \x03(\t\"\x86\x01\n\x0f\x43ustomAttribute\x12\x0c\n\x04text\x18\x01 \x03(\t\x12\x0f\n\x07numbers\x18\x02 \x03(\x01\x12\x1b\n\nsearchable\x18\x03 \x01(\x08\x42\x02\x18\x01H\x00\x88\x01\x01\x12\x1a\n\tindexable\x18\x04 \x01(\x08\x42\x02\x18\x01H\x01\x88\x01\x01\x42\r\n\x0b_searchableB\x0c\n\n_indexable\"2\n\x0f\x46ulfillmentInfo\x12\x0c\n\x04type\x18\x01 \x01(\t\x12\x11\n\tplace_ids\x18\x02 \x03(\t\"8\n\x05Image\x12\x10\n\x03uri\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x0e\n\x06height\x18\x02 \x01(\x05\x12\r\n\x05width\x18\x03 \x01(\x05\"x\n\x08Interval\x12\x11\n\x07minimum\x18\x01 \x01(\x01H\x00\x12\x1b\n\x11\x65xclusive_minimum\x18\x02 \x01(\x01H\x00\x12\x11\n\x07maximum\x18\x03 \x01(\x01H\x01\x12\x1b\n\x11\x65xclusive_maximum\x18\x04 \x01(\x01H\x01\x42\x05\n\x03minB\x05\n\x03max\"\x89\x03\n\tPriceInfo\x12\x15\n\rcurrency_code\x18\x01 \x01(\t\x12\r\n\x05price\x18\x02 \x01(\x02\x12\x16\n\x0eoriginal_price\x18\x03 \x01(\x02\x12\x0c\n\x04\x63ost\x18\x04 \x01(\x02\x12\x38\n\x14price_effective_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x35\n\x11price_expire_time\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x46\n\x0bprice_range\x18\x07 \x01(\x0b\x32,.google.cloud.retail.v2.PriceInfo.PriceRangeB\x03\xe0\x41\x03\x1aw\n\nPriceRange\x12/\n\x05price\x18\x01 \x01(\x0b\x32 .google.cloud.retail.v2.Interval\x12\x38\n\x0eoriginal_price\x18\x02 \x01(\x0b\x32 .google.cloud.retail.v2.Interval\"P\n\x06Rating\x12\x14\n\x0crating_count\x18\x01 \x01(\x05\x12\x16\n\x0e\x61verage_rating\x18\x02 \x01(\x02\x12\x18\n\x10rating_histogram\x18\x03 \x03(\x05\"`\n\x08UserInfo\x12\x0f\n\x07user_id\x18\x01 \x01(\t\x12\x12\n\nip_address\x18\x02 \x01(\t\x12\x12\n\nuser_agent\x18\x03 \x01(\t\x12\x1b\n\x13\x64irect_user_request\x18\x04 \x01(\x08\"\xb0\x02\n\x0eLocalInventory\x12\x15\n\x08place_id\x18\x01 \x01(\tB\x03\xe0\x41\x01\x12:\n\nprice_info\x18\x02 \x01(\x0b\x32!.google.cloud.retail.v2.PriceInfoB\x03\xe0\x41\x01\x12O\n\nattributes\x18\x03 \x03(\x0b\x32\x36.google.cloud.retail.v2.LocalInventory.AttributesEntryB\x03\xe0\x41\x01\x12\x1e\n\x11\x66ulfillment_types\x18\x04 \x03(\tB\x03\xe0\x41\x01\x1aZ\n\x0f\x41ttributesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x36\n\x05value\x18\x02 \x01(\x0b\x32\'.google.cloud.retail.v2.CustomAttribute:\x02\x38\x01\"\xbf\x03\n\x12PinControlMetadata\x12X\n\x10\x61ll_matched_pins\x18\x01 \x03(\x0b\x32>.google.cloud.retail.v2.PinControlMetadata.AllMatchedPinsEntry\x12Q\n\x0c\x64ropped_pins\x18\x02 \x03(\x0b\x32;.google.cloud.retail.v2.PinControlMetadata.DroppedPinsEntry\x1a!\n\x0bProductPins\x12\x12\n\nproduct_id\x18\x01 \x03(\t\x1am\n\x13\x41llMatchedPinsEntry\x12\x0b\n\x03key\x18\x01 \x01(\x03\x12\x45\n\x05value\x18\x02 \x01(\x0b\x32\x36.google.cloud.retail.v2.PinControlMetadata.ProductPins:\x02\x38\x01\x1aj\n\x10\x44roppedPinsEntry\x12\x0b\n\x03key\x18\x01 \x01(\x03\x12\x45\n\x05value\x18\x02 \x01(\x0b\x32\x36.google.cloud.retail.v2.PinControlMetadata.ProductPins:\x02\x38\x01*\x86\x01\n\x14\x41ttributeConfigLevel\x12&\n\"ATTRIBUTE_CONFIG_LEVEL_UNSPECIFIED\x10\x00\x12\"\n\x1ePRODUCT_LEVEL_ATTRIBUTE_CONFIG\x10\x01\x12\"\n\x1e\x43\x41TALOG_LEVEL_ATTRIBUTE_CONFIG\x10\x02*i\n\x0cSolutionType\x12\x1d\n\x19SOLUTION_TYPE_UNSPECIFIED\x10\x00\x12 \n\x1cSOLUTION_TYPE_RECOMMENDATION\x10\x01\x12\x18\n\x14SOLUTION_TYPE_SEARCH\x10\x02*\xa1\x01\n\x1eRecommendationsFilteringOption\x12\x30\n,RECOMMENDATIONS_FILTERING_OPTION_UNSPECIFIED\x10\x00\x12&\n\"RECOMMENDATIONS_FILTERING_DISABLED\x10\x01\x12%\n!RECOMMENDATIONS_FILTERING_ENABLED\x10\x03*\x8b\x01\n\x15SearchSolutionUseCase\x12(\n$SEARCH_SOLUTION_USE_CASE_UNSPECIFIED\x10\x00\x12#\n\x1fSEARCH_SOLUTION_USE_CASE_SEARCH\x10\x01\x12#\n\x1fSEARCH_SOLUTION_USE_CASE_BROWSE\x10\x02\x42\xb6\x01\n\x1a\x63om.google.cloud.retail.v2B\x0b\x43ommonProtoP\x01Z2cloud.google.com/go/retail/apiv2/retailpb;retailpb\xa2\x02\x06RETAIL\xaa\x02\x16Google.Cloud.Retail.V2\xca\x02\x16Google\\Cloud\\Retail\\V2\xea\x02\x19Google::Cloud::Retail::V2b\x06proto3"
|
12
12
|
|
13
13
|
pool = Google::Protobuf::DescriptorPool.generated_pool
|
14
14
|
|
@@ -54,6 +54,7 @@ module Google
|
|
54
54
|
Rule::ForceReturnFacetAction = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.retail.v2.Rule.ForceReturnFacetAction").msgclass
|
55
55
|
Rule::ForceReturnFacetAction::FacetPositionAdjustment = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.retail.v2.Rule.ForceReturnFacetAction.FacetPositionAdjustment").msgclass
|
56
56
|
Rule::RemoveFacetAction = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.retail.v2.Rule.RemoveFacetAction").msgclass
|
57
|
+
Rule::PinAction = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.retail.v2.Rule.PinAction").msgclass
|
57
58
|
Audience = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.retail.v2.Audience").msgclass
|
58
59
|
ColorInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.retail.v2.ColorInfo").msgclass
|
59
60
|
CustomAttribute = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.retail.v2.CustomAttribute").msgclass
|
@@ -65,6 +66,8 @@ module Google
|
|
65
66
|
Rating = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.retail.v2.Rating").msgclass
|
66
67
|
UserInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.retail.v2.UserInfo").msgclass
|
67
68
|
LocalInventory = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.retail.v2.LocalInventory").msgclass
|
69
|
+
PinControlMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.retail.v2.PinControlMetadata").msgclass
|
70
|
+
PinControlMetadata::ProductPins = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.retail.v2.PinControlMetadata.ProductPins").msgclass
|
68
71
|
AttributeConfigLevel = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.retail.v2.AttributeConfigLevel").enummodule
|
69
72
|
SolutionType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.retail.v2.SolutionType").enummodule
|
70
73
|
RecommendationsFilteringOption = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.retail.v2.RecommendationsFilteringOption").enummodule
|
@@ -252,7 +252,7 @@ module Google
|
|
252
252
|
#
|
253
253
|
# The maximum number of allowed characters is 255.
|
254
254
|
# @param visitor_id [::String]
|
255
|
-
#
|
255
|
+
# Recommended field. A unique identifier for tracking visitors. For example,
|
256
256
|
# this could be implemented with an HTTP cookie, which should be able to
|
257
257
|
# uniquely identify a visitor on a single device. This unique identifier
|
258
258
|
# should not change if the visitor logs in or out of the website.
|
@@ -288,10 +288,11 @@ module Google
|
|
288
288
|
# * A customized string starts with `OTHER_`, e.g. `OTHER_IPHONE`.
|
289
289
|
# @param dataset [::String]
|
290
290
|
# Determines which dataset to use for fetching completion. "user-data" will
|
291
|
-
# use the imported
|
291
|
+
# use the dataset imported through
|
292
292
|
# {::Google::Cloud::Retail::V2::CompletionService::Client#import_completion_data CompletionService.ImportCompletionData}.
|
293
|
-
#
|
294
|
-
# events. If
|
293
|
+
# `cloud-retail` will use the dataset generated by Cloud Retail based on user
|
294
|
+
# events. If left empty, completions will be fetched from the `user-data`
|
295
|
+
# dataset.
|
295
296
|
#
|
296
297
|
# Current supported values:
|
297
298
|
#
|
@@ -310,14 +311,19 @@ module Google
|
|
310
311
|
# @param enable_attribute_suggestions [::Boolean]
|
311
312
|
# If true, attribute suggestions are enabled and provided in the response.
|
312
313
|
#
|
313
|
-
# This field is only available for the
|
314
|
+
# This field is only available for the `cloud-retail` dataset.
|
314
315
|
# @param entity [::String]
|
315
316
|
# The entity for customers who run multiple entities, domains, sites, or
|
316
317
|
# regions, for example, `Google US`, `Google Ads`, `Waymo`,
|
317
318
|
# `google.com`, `youtube.com`, etc.
|
318
319
|
# If this is set, it must be an exact match with
|
319
320
|
# {::Google::Cloud::Retail::V2::UserEvent#entity UserEvent.entity} to get
|
320
|
-
# per-entity autocomplete results.
|
321
|
+
# per-entity autocomplete results. This field will be applied to
|
322
|
+
# `completion_results` only. It has no effect on the `attribute_results`.
|
323
|
+
# Also, this entity should be limited to 256 characters, if too long, it will
|
324
|
+
# be truncated to 256 characters in both generation and serving time, and may
|
325
|
+
# lead to mis-match. To ensure it works, please set the entity with string
|
326
|
+
# within 256 characters.
|
321
327
|
#
|
322
328
|
# @yield [response, operation] Access the result along with the RPC operation
|
323
329
|
# @yieldparam response [::Google::Cloud::Retail::V2::CompleteQueryResponse]
|
@@ -600,8 +606,8 @@ module Google
|
|
600
606
|
|
601
607
|
config_attr :endpoint, nil, ::String, nil
|
602
608
|
config_attr :credentials, nil do |value|
|
603
|
-
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
604
|
-
allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
|
609
|
+
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil]
|
610
|
+
allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC::Core::Channel
|
605
611
|
allowed.any? { |klass| klass === value }
|
606
612
|
end
|
607
613
|
config_attr :scope, nil, ::String, ::Array, nil
|
@@ -701,8 +701,8 @@ module Google
|
|
701
701
|
|
702
702
|
config_attr :endpoint, nil, ::String, nil
|
703
703
|
config_attr :credentials, nil do |value|
|
704
|
-
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
705
|
-
allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
|
704
|
+
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil]
|
705
|
+
allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC::Core::Channel
|
706
706
|
allowed.any? { |klass| klass === value }
|
707
707
|
end
|
708
708
|
config_attr :scope, nil, ::String, ::Array, nil
|
@@ -245,7 +245,7 @@ module Google
|
|
245
245
|
#
|
246
246
|
# The maximum number of allowed characters is 255.
|
247
247
|
# @param visitor_id [::String]
|
248
|
-
#
|
248
|
+
# Recommended field. A unique identifier for tracking visitors. For example,
|
249
249
|
# this could be implemented with an HTTP cookie, which should be able to
|
250
250
|
# uniquely identify a visitor on a single device. This unique identifier
|
251
251
|
# should not change if the visitor logs in or out of the website.
|
@@ -281,10 +281,11 @@ module Google
|
|
281
281
|
# * A customized string starts with `OTHER_`, e.g. `OTHER_IPHONE`.
|
282
282
|
# @param dataset [::String]
|
283
283
|
# Determines which dataset to use for fetching completion. "user-data" will
|
284
|
-
# use the imported
|
284
|
+
# use the dataset imported through
|
285
285
|
# {::Google::Cloud::Retail::V2::CompletionService::Rest::Client#import_completion_data CompletionService.ImportCompletionData}.
|
286
|
-
#
|
287
|
-
# events. If
|
286
|
+
# `cloud-retail` will use the dataset generated by Cloud Retail based on user
|
287
|
+
# events. If left empty, completions will be fetched from the `user-data`
|
288
|
+
# dataset.
|
288
289
|
#
|
289
290
|
# Current supported values:
|
290
291
|
#
|
@@ -303,14 +304,19 @@ module Google
|
|
303
304
|
# @param enable_attribute_suggestions [::Boolean]
|
304
305
|
# If true, attribute suggestions are enabled and provided in the response.
|
305
306
|
#
|
306
|
-
# This field is only available for the
|
307
|
+
# This field is only available for the `cloud-retail` dataset.
|
307
308
|
# @param entity [::String]
|
308
309
|
# The entity for customers who run multiple entities, domains, sites, or
|
309
310
|
# regions, for example, `Google US`, `Google Ads`, `Waymo`,
|
310
311
|
# `google.com`, `youtube.com`, etc.
|
311
312
|
# If this is set, it must be an exact match with
|
312
313
|
# {::Google::Cloud::Retail::V2::UserEvent#entity UserEvent.entity} to get
|
313
|
-
# per-entity autocomplete results.
|
314
|
+
# per-entity autocomplete results. This field will be applied to
|
315
|
+
# `completion_results` only. It has no effect on the `attribute_results`.
|
316
|
+
# Also, this entity should be limited to 256 characters, if too long, it will
|
317
|
+
# be truncated to 256 characters in both generation and serving time, and may
|
318
|
+
# lead to mis-match. To ensure it works, please set the entity with string
|
319
|
+
# within 256 characters.
|
314
320
|
# @yield [result, operation] Access the result along with the TransportOperation object
|
315
321
|
# @yieldparam result [::Google::Cloud::Retail::V2::CompleteQueryResponse]
|
316
322
|
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
@@ -570,7 +576,7 @@ module Google
|
|
570
576
|
|
571
577
|
config_attr :endpoint, nil, ::String, nil
|
572
578
|
config_attr :credentials, nil do |value|
|
573
|
-
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
579
|
+
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil]
|
574
580
|
allowed.any? { |klass| klass === value }
|
575
581
|
end
|
576
582
|
config_attr :scope, nil, ::String, ::Array, nil
|
@@ -556,7 +556,7 @@ module Google
|
|
556
556
|
|
557
557
|
config_attr :endpoint, nil, ::String, nil
|
558
558
|
config_attr :credentials, nil do |value|
|
559
|
-
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
559
|
+
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil]
|
560
560
|
allowed.any? { |klass| klass === value }
|
561
561
|
end
|
562
562
|
config_attr :scope, nil, ::String, ::Array, nil
|
@@ -780,8 +780,8 @@ module Google
|
|
780
780
|
|
781
781
|
config_attr :endpoint, nil, ::String, nil
|
782
782
|
config_attr :credentials, nil do |value|
|
783
|
-
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
784
|
-
allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
|
783
|
+
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil]
|
784
|
+
allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC::Core::Channel
|
785
785
|
allowed.any? { |klass| klass === value }
|
786
786
|
end
|
787
787
|
config_attr :scope, nil, ::String, ::Array, nil
|
@@ -729,7 +729,7 @@ module Google
|
|
729
729
|
|
730
730
|
config_attr :endpoint, nil, ::String, nil
|
731
731
|
config_attr :credentials, nil do |value|
|
732
|
-
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
732
|
+
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil]
|
733
733
|
allowed.any? { |klass| klass === value }
|
734
734
|
end
|
735
735
|
config_attr :scope, nil, ::String, ::Array, nil
|
@@ -748,8 +748,8 @@ module Google
|
|
748
748
|
|
749
749
|
config_attr :endpoint, nil, ::String, nil
|
750
750
|
config_attr :credentials, nil do |value|
|
751
|
-
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
752
|
-
allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
|
751
|
+
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil]
|
752
|
+
allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC::Core::Channel
|
753
753
|
allowed.any? { |klass| klass === value }
|
754
754
|
end
|
755
755
|
config_attr :scope, nil, ::String, ::Array, nil
|
@@ -697,7 +697,7 @@ module Google
|
|
697
697
|
|
698
698
|
config_attr :endpoint, nil, ::String, nil
|
699
699
|
config_attr :credentials, nil do |value|
|
700
|
-
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
700
|
+
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil]
|
701
701
|
allowed.any? { |klass| klass === value }
|
702
702
|
end
|
703
703
|
config_attr :scope, nil, ::String, ::Array, nil
|
@@ -1069,8 +1069,8 @@ module Google
|
|
1069
1069
|
|
1070
1070
|
config_attr :endpoint, nil, ::String, nil
|
1071
1071
|
config_attr :credentials, nil do |value|
|
1072
|
-
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
1073
|
-
allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
|
1072
|
+
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil]
|
1073
|
+
allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC::Core::Channel
|
1074
1074
|
allowed.any? { |klass| klass === value }
|
1075
1075
|
end
|
1076
1076
|
config_attr :scope, nil, ::String, ::Array, nil
|
@@ -701,8 +701,8 @@ module Google
|
|
701
701
|
|
702
702
|
config_attr :endpoint, nil, ::String, nil
|
703
703
|
config_attr :credentials, nil do |value|
|
704
|
-
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
705
|
-
allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
|
704
|
+
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil]
|
705
|
+
allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC::Core::Channel
|
706
706
|
allowed.any? { |klass| klass === value }
|
707
707
|
end
|
708
708
|
config_attr :scope, nil, ::String, ::Array, nil
|
@@ -997,7 +997,7 @@ module Google
|
|
997
997
|
|
998
998
|
config_attr :endpoint, nil, ::String, nil
|
999
999
|
config_attr :credentials, nil do |value|
|
1000
|
-
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
1000
|
+
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil]
|
1001
1001
|
allowed.any? { |klass| klass === value }
|
1002
1002
|
end
|
1003
1003
|
config_attr :scope, nil, ::String, ::Array, nil
|