google-cloud-retail-v2 0.10.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/AUTHENTICATION.md +1 -1
- data/README.md +1 -1
- data/lib/google/cloud/retail/v2/catalog_pb.rb +69 -0
- data/lib/google/cloud/retail/v2/catalog_service/client.rb +718 -0
- data/lib/google/cloud/retail/v2/catalog_service/paths.rb +38 -0
- data/lib/google/cloud/retail/v2/catalog_service.rb +1 -1
- data/lib/google/cloud/retail/v2/catalog_service_pb.rb +34 -0
- data/lib/google/cloud/retail/v2/catalog_service_services_pb.rb +38 -0
- data/lib/google/cloud/retail/v2/common_pb.rb +86 -0
- data/lib/google/cloud/retail/v2/completion_service/client.rb +11 -8
- data/lib/google/cloud/retail/v2/completion_service.rb +2 -2
- data/lib/google/cloud/retail/v2/completion_service_services_pb.rb +3 -3
- data/lib/google/cloud/retail/v2/control_pb.rb +33 -0
- data/lib/google/cloud/retail/v2/control_service/client.rb +807 -0
- data/lib/google/cloud/retail/v2/control_service/credentials.rb +51 -0
- data/lib/google/cloud/retail/v2/control_service/paths.rb +73 -0
- data/lib/google/cloud/retail/v2/control_service.rb +49 -0
- data/lib/google/cloud/retail/v2/control_service_pb.rb +57 -0
- data/lib/google/cloud/retail/v2/control_service_services_pb.rb +65 -0
- data/lib/google/cloud/retail/v2/prediction_service/client.rb +7 -8
- data/lib/google/cloud/retail/v2/prediction_service.rb +1 -1
- data/lib/google/cloud/retail/v2/product_pb.rb +1 -0
- data/lib/google/cloud/retail/v2/product_service/client.rb +65 -25
- data/lib/google/cloud/retail/v2/product_service.rb +1 -1
- data/lib/google/cloud/retail/v2/product_service_services_pb.rb +58 -13
- data/lib/google/cloud/retail/v2/search_service/client.rb +16 -5
- data/lib/google/cloud/retail/v2/search_service.rb +2 -2
- data/lib/google/cloud/retail/v2/search_service_pb.rb +1 -0
- data/lib/google/cloud/retail/v2/search_service_services_pb.rb +2 -2
- data/lib/google/cloud/retail/v2/serving_config_pb.rb +51 -0
- data/lib/google/cloud/retail/v2/serving_config_service/client.rb +998 -0
- data/lib/google/cloud/retail/v2/serving_config_service/credentials.rb +51 -0
- data/lib/google/cloud/retail/v2/serving_config_service/paths.rb +73 -0
- data/lib/google/cloud/retail/v2/serving_config_service.rb +49 -0
- data/lib/google/cloud/retail/v2/serving_config_service_pb.rb +66 -0
- data/lib/google/cloud/retail/v2/serving_config_service_services_pb.rb +74 -0
- data/lib/google/cloud/retail/v2/user_event_service/client.rb +27 -14
- data/lib/google/cloud/retail/v2/user_event_service.rb +1 -1
- data/lib/google/cloud/retail/v2/user_event_service_pb.rb +5 -0
- data/lib/google/cloud/retail/v2/user_event_service_services_pb.rb +10 -10
- data/lib/google/cloud/retail/v2/version.rb +1 -1
- data/lib/google/cloud/retail/v2.rb +4 -2
- data/proto_docs/google/api/client.rb +318 -0
- data/proto_docs/google/api/launch_stage.rb +71 -0
- data/proto_docs/google/cloud/retail/v2/catalog.rb +271 -0
- data/proto_docs/google/cloud/retail/v2/catalog_service.rb +133 -0
- data/proto_docs/google/cloud/retail/v2/common.rb +316 -4
- data/proto_docs/google/cloud/retail/v2/completion_service.rb +6 -3
- data/proto_docs/google/cloud/retail/v2/control.rb +75 -0
- data/proto_docs/google/cloud/retail/v2/control_service.rb +122 -0
- data/proto_docs/google/cloud/retail/v2/import_config.rb +20 -35
- data/proto_docs/google/cloud/retail/v2/prediction_service.rb +7 -8
- data/proto_docs/google/cloud/retail/v2/product.rb +33 -5
- data/proto_docs/google/cloud/retail/v2/search_service.rb +44 -10
- data/proto_docs/google/cloud/retail/v2/serving_config.rb +255 -0
- data/proto_docs/google/cloud/retail/v2/serving_config_service.rb +143 -0
- data/proto_docs/google/cloud/retail/v2/user_event.rb +1 -1
- data/proto_docs/google/cloud/retail/v2/user_event_service.rb +24 -8
- data/proto_docs/google/rpc/status.rb +4 -2
- metadata +24 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d4df763185ea268c1b76c5bd40fbf66332d5deefae96183fede94683c06f7eea
|
4
|
+
data.tar.gz: 1ade5fffb7896518d8ef4411b3ba02ae8225d91002ce0e59d5b340fe2cde3df5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 49ef27a2292d149e7fb763b13b07f41fe1bf5af5ebde1dbcfe6ba5cbb01c9586637f05b6fbe30c4b3ba24715dd3a458a573e7a74f63254b2a676f3cbe4233d9e
|
7
|
+
data.tar.gz: a135a6f28d70aec5096240f03713e65c35d5ca92022ccadd142ac7cf1e90b04b659141b32b342f79b5633406b517afb064f68db0978422d982f06a964a7e2973
|
data/AUTHENTICATION.md
CHANGED
@@ -114,7 +114,7 @@ credentials are discovered.
|
|
114
114
|
To configure your system for this, simply:
|
115
115
|
|
116
116
|
1. [Download and install the Cloud SDK](https://cloud.google.com/sdk)
|
117
|
-
2. Authenticate using OAuth 2.0 `$ gcloud auth login`
|
117
|
+
2. Authenticate using OAuth 2.0 `$ gcloud auth application-default login`
|
118
118
|
3. Write code as if already authenticated.
|
119
119
|
|
120
120
|
**NOTE:** This is _not_ recommended for running in production. The Cloud SDK
|
data/README.md
CHANGED
@@ -46,7 +46,7 @@ for general usage information.
|
|
46
46
|
## Enabling Logging
|
47
47
|
|
48
48
|
To enable logging for this library, set the logger for the underlying [gRPC](https://github.com/grpc/grpc/tree/master/src/ruby) library.
|
49
|
-
The logger that you set may be a Ruby stdlib [`Logger`](https://ruby-doc.org/
|
49
|
+
The logger that you set may be a Ruby stdlib [`Logger`](https://ruby-doc.org/current/stdlibs/logger/Logger.html) as shown below,
|
50
50
|
or a [`Google::Cloud::Logging::Logger`](https://googleapis.dev/ruby/google-cloud-logging/latest)
|
51
51
|
that will write logs to [Cloud Logging](https://cloud.google.com/logging/). See [grpc/logconfig.rb](https://github.com/grpc/grpc/blob/master/src/ruby/lib/grpc/logconfig.rb)
|
52
52
|
and the gRPC [spec_helper.rb](https://github.com/grpc/grpc/blob/master/src/ruby/spec/spec_helper.rb) for additional information.
|
@@ -5,6 +5,8 @@ require 'google/protobuf'
|
|
5
5
|
|
6
6
|
require 'google/api/field_behavior_pb'
|
7
7
|
require 'google/api/resource_pb'
|
8
|
+
require 'google/cloud/retail/v2/common_pb'
|
9
|
+
require 'google/cloud/retail/v2/import_config_pb'
|
8
10
|
|
9
11
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
10
12
|
add_file("google/cloud/retail/v2/catalog.proto", :syntax => :proto3) do
|
@@ -12,6 +14,64 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
12
14
|
optional :ingestion_product_type, :string, 1
|
13
15
|
optional :merchant_center_product_id_field, :string, 2
|
14
16
|
end
|
17
|
+
add_message "google.cloud.retail.v2.CatalogAttribute" do
|
18
|
+
optional :key, :string, 1
|
19
|
+
optional :in_use, :bool, 9
|
20
|
+
optional :type, :enum, 10, "google.cloud.retail.v2.CatalogAttribute.AttributeType"
|
21
|
+
optional :indexable_option, :enum, 5, "google.cloud.retail.v2.CatalogAttribute.IndexableOption"
|
22
|
+
optional :dynamic_facetable_option, :enum, 6, "google.cloud.retail.v2.CatalogAttribute.DynamicFacetableOption"
|
23
|
+
optional :searchable_option, :enum, 7, "google.cloud.retail.v2.CatalogAttribute.SearchableOption"
|
24
|
+
optional :exact_searchable_option, :enum, 11, "google.cloud.retail.v2.CatalogAttribute.ExactSearchableOption"
|
25
|
+
optional :retrievable_option, :enum, 12, "google.cloud.retail.v2.CatalogAttribute.RetrievableOption"
|
26
|
+
end
|
27
|
+
add_enum "google.cloud.retail.v2.CatalogAttribute.AttributeType" do
|
28
|
+
value :UNKNOWN, 0
|
29
|
+
value :TEXTUAL, 1
|
30
|
+
value :NUMERICAL, 2
|
31
|
+
end
|
32
|
+
add_enum "google.cloud.retail.v2.CatalogAttribute.IndexableOption" do
|
33
|
+
value :INDEXABLE_OPTION_UNSPECIFIED, 0
|
34
|
+
value :INDEXABLE_ENABLED, 1
|
35
|
+
value :INDEXABLE_DISABLED, 2
|
36
|
+
end
|
37
|
+
add_enum "google.cloud.retail.v2.CatalogAttribute.DynamicFacetableOption" do
|
38
|
+
value :DYNAMIC_FACETABLE_OPTION_UNSPECIFIED, 0
|
39
|
+
value :DYNAMIC_FACETABLE_ENABLED, 1
|
40
|
+
value :DYNAMIC_FACETABLE_DISABLED, 2
|
41
|
+
end
|
42
|
+
add_enum "google.cloud.retail.v2.CatalogAttribute.SearchableOption" do
|
43
|
+
value :SEARCHABLE_OPTION_UNSPECIFIED, 0
|
44
|
+
value :SEARCHABLE_ENABLED, 1
|
45
|
+
value :SEARCHABLE_DISABLED, 2
|
46
|
+
end
|
47
|
+
add_enum "google.cloud.retail.v2.CatalogAttribute.ExactSearchableOption" do
|
48
|
+
value :EXACT_SEARCHABLE_OPTION_UNSPECIFIED, 0
|
49
|
+
value :EXACT_SEARCHABLE_ENABLED, 1
|
50
|
+
value :EXACT_SEARCHABLE_DISABLED, 2
|
51
|
+
end
|
52
|
+
add_enum "google.cloud.retail.v2.CatalogAttribute.RetrievableOption" do
|
53
|
+
value :RETRIEVABLE_OPTION_UNSPECIFIED, 0
|
54
|
+
value :RETRIEVABLE_ENABLED, 1
|
55
|
+
value :RETRIEVABLE_DISABLED, 2
|
56
|
+
end
|
57
|
+
add_message "google.cloud.retail.v2.AttributesConfig" do
|
58
|
+
optional :name, :string, 1
|
59
|
+
map :catalog_attributes, :string, :message, 2, "google.cloud.retail.v2.CatalogAttribute"
|
60
|
+
optional :attribute_config_level, :enum, 3, "google.cloud.retail.v2.AttributeConfigLevel"
|
61
|
+
end
|
62
|
+
add_message "google.cloud.retail.v2.CompletionConfig" do
|
63
|
+
optional :name, :string, 1
|
64
|
+
optional :matching_order, :string, 2
|
65
|
+
optional :max_suggestions, :int32, 3
|
66
|
+
optional :min_prefix_length, :int32, 4
|
67
|
+
optional :auto_learning, :bool, 11
|
68
|
+
optional :suggestions_input_config, :message, 5, "google.cloud.retail.v2.CompletionDataInputConfig"
|
69
|
+
optional :last_suggestions_import_operation, :string, 6
|
70
|
+
optional :denylist_input_config, :message, 7, "google.cloud.retail.v2.CompletionDataInputConfig"
|
71
|
+
optional :last_denylist_import_operation, :string, 8
|
72
|
+
optional :allowlist_input_config, :message, 9, "google.cloud.retail.v2.CompletionDataInputConfig"
|
73
|
+
optional :last_allowlist_import_operation, :string, 10
|
74
|
+
end
|
15
75
|
add_message "google.cloud.retail.v2.Catalog" do
|
16
76
|
optional :name, :string, 1
|
17
77
|
optional :display_name, :string, 2
|
@@ -25,6 +85,15 @@ module Google
|
|
25
85
|
module Retail
|
26
86
|
module V2
|
27
87
|
ProductLevelConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.retail.v2.ProductLevelConfig").msgclass
|
88
|
+
CatalogAttribute = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.retail.v2.CatalogAttribute").msgclass
|
89
|
+
CatalogAttribute::AttributeType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.retail.v2.CatalogAttribute.AttributeType").enummodule
|
90
|
+
CatalogAttribute::IndexableOption = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.retail.v2.CatalogAttribute.IndexableOption").enummodule
|
91
|
+
CatalogAttribute::DynamicFacetableOption = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.retail.v2.CatalogAttribute.DynamicFacetableOption").enummodule
|
92
|
+
CatalogAttribute::SearchableOption = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.retail.v2.CatalogAttribute.SearchableOption").enummodule
|
93
|
+
CatalogAttribute::ExactSearchableOption = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.retail.v2.CatalogAttribute.ExactSearchableOption").enummodule
|
94
|
+
CatalogAttribute::RetrievableOption = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.retail.v2.CatalogAttribute.RetrievableOption").enummodule
|
95
|
+
AttributesConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.retail.v2.AttributesConfig").msgclass
|
96
|
+
CompletionConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.retail.v2.CompletionConfig").msgclass
|
28
97
|
Catalog = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.retail.v2.Catalog").msgclass
|
29
98
|
end
|
30
99
|
end
|