google-cloud-retail-v2 0.8.0 → 0.11.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +5 -5
- data/lib/google/cloud/retail/v2/catalog_pb.rb +55 -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_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 +7 -3
- data/lib/google/cloud/retail/v2/completion_service/operations.rb +3 -0
- 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 +28 -13
- data/lib/google/cloud/retail/v2/product_pb.rb +1 -0
- data/lib/google/cloud/retail/v2/product_service/client.rb +87 -42
- data/lib/google/cloud/retail/v2/product_service/operations.rb +3 -0
- data/lib/google/cloud/retail/v2/product_service_services_pb.rb +67 -23
- data/lib/google/cloud/retail/v2/search_service/client.rb +15 -2
- data/lib/google/cloud/retail/v2/search_service_pb.rb +5 -0
- data/lib/google/cloud/retail/v2/serving_config_pb.rb +44 -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 +2 -2
- data/lib/google/cloud/retail/v2/user_event_service/operations.rb +3 -0
- data/lib/google/cloud/retail/v2/user_event_service_pb.rb +0 -1
- data/lib/google/cloud/retail/v2/user_event_service_services_pb.rb +2 -2
- data/lib/google/cloud/retail/v2/version.rb +1 -1
- data/lib/google/cloud/retail/v2.rb +2 -0
- data/proto_docs/google/cloud/retail/v2/catalog.rb +233 -0
- data/proto_docs/google/cloud/retail/v2/catalog_service.rb +133 -0
- data/proto_docs/google/cloud/retail/v2/common.rb +314 -4
- data/proto_docs/google/cloud/retail/v2/completion_service.rb +9 -4
- data/proto_docs/google/cloud/retail/v2/control.rb +76 -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 +27 -12
- data/proto_docs/google/cloud/retail/v2/product.rb +7 -1
- data/proto_docs/google/cloud/retail/v2/product_service.rb +49 -21
- data/proto_docs/google/cloud/retail/v2/search_service.rb +72 -13
- data/proto_docs/google/cloud/retail/v2/serving_config.rb +238 -0
- data/proto_docs/google/cloud/retail/v2/serving_config_service.rb +143 -0
- data/proto_docs/google/protobuf/empty.rb +0 -2
- metadata +29 -11
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ac1d9a4731b52436b27d039833a64947536a4d01829e67222514a50e3155319d
|
4
|
+
data.tar.gz: 6f48023be7da11258abc4354a2b9e413bcd095057be10ab0fe42cc2b7380bb60
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 23f52514bc53344d461a35b5b3e726ef5099af6eb4afa04c9550c13e78db52a51964fb5fc4444db98c3e0bc54946e67e0763b7213f85c58cab6625b33ef19656
|
7
|
+
data.tar.gz: 72a0285df4a4304728b0b17c1bd457593631f7286dc193058db05dd448c58ef971fe5ce12fc00c5776f8313213ac82d265715e27d533fbd67878a88e14470305
|
data/README.md
CHANGED
@@ -76,14 +76,14 @@ To browse ready to use code samples check [Google Cloud Samples](https://cloud.g
|
|
76
76
|
|
77
77
|
## Supported Ruby Versions
|
78
78
|
|
79
|
-
This library is supported on Ruby 2.
|
79
|
+
This library is supported on Ruby 2.6+.
|
80
80
|
|
81
81
|
Google provides official support for Ruby versions that are actively supported
|
82
82
|
by Ruby Core—that is, Ruby versions that are either in normal maintenance or
|
83
|
-
in security maintenance, and not end of life.
|
84
|
-
|
85
|
-
|
86
|
-
|
83
|
+
in security maintenance, and not end of life. Older versions of Ruby _may_
|
84
|
+
still work, but are unsupported and not recommended. See
|
85
|
+
https://www.ruby-lang.org/en/downloads/branches/ for details about the Ruby
|
86
|
+
support schedule.
|
87
87
|
|
88
88
|
## Which client should I use?
|
89
89
|
|
@@ -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,52 @@ 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
|
+
end
|
25
|
+
add_enum "google.cloud.retail.v2.CatalogAttribute.AttributeType" do
|
26
|
+
value :UNKNOWN, 0
|
27
|
+
value :TEXTUAL, 1
|
28
|
+
value :NUMERICAL, 2
|
29
|
+
end
|
30
|
+
add_enum "google.cloud.retail.v2.CatalogAttribute.IndexableOption" do
|
31
|
+
value :INDEXABLE_OPTION_UNSPECIFIED, 0
|
32
|
+
value :INDEXABLE_ENABLED, 1
|
33
|
+
value :INDEXABLE_DISABLED, 2
|
34
|
+
end
|
35
|
+
add_enum "google.cloud.retail.v2.CatalogAttribute.DynamicFacetableOption" do
|
36
|
+
value :DYNAMIC_FACETABLE_OPTION_UNSPECIFIED, 0
|
37
|
+
value :DYNAMIC_FACETABLE_ENABLED, 1
|
38
|
+
value :DYNAMIC_FACETABLE_DISABLED, 2
|
39
|
+
end
|
40
|
+
add_enum "google.cloud.retail.v2.CatalogAttribute.SearchableOption" do
|
41
|
+
value :SEARCHABLE_OPTION_UNSPECIFIED, 0
|
42
|
+
value :SEARCHABLE_ENABLED, 1
|
43
|
+
value :SEARCHABLE_DISABLED, 2
|
44
|
+
end
|
45
|
+
add_message "google.cloud.retail.v2.AttributesConfig" do
|
46
|
+
optional :name, :string, 1
|
47
|
+
map :catalog_attributes, :string, :message, 2, "google.cloud.retail.v2.CatalogAttribute"
|
48
|
+
optional :attribute_config_level, :enum, 3, "google.cloud.retail.v2.AttributeConfigLevel"
|
49
|
+
end
|
50
|
+
add_message "google.cloud.retail.v2.CompletionConfig" do
|
51
|
+
optional :name, :string, 1
|
52
|
+
optional :matching_order, :string, 2
|
53
|
+
optional :max_suggestions, :int32, 3
|
54
|
+
optional :min_prefix_length, :int32, 4
|
55
|
+
optional :auto_learning, :bool, 11
|
56
|
+
optional :suggestions_input_config, :message, 5, "google.cloud.retail.v2.CompletionDataInputConfig"
|
57
|
+
optional :last_suggestions_import_operation, :string, 6
|
58
|
+
optional :denylist_input_config, :message, 7, "google.cloud.retail.v2.CompletionDataInputConfig"
|
59
|
+
optional :last_denylist_import_operation, :string, 8
|
60
|
+
optional :allowlist_input_config, :message, 9, "google.cloud.retail.v2.CompletionDataInputConfig"
|
61
|
+
optional :last_allowlist_import_operation, :string, 10
|
62
|
+
end
|
15
63
|
add_message "google.cloud.retail.v2.Catalog" do
|
16
64
|
optional :name, :string, 1
|
17
65
|
optional :display_name, :string, 2
|
@@ -25,6 +73,13 @@ module Google
|
|
25
73
|
module Retail
|
26
74
|
module V2
|
27
75
|
ProductLevelConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.retail.v2.ProductLevelConfig").msgclass
|
76
|
+
CatalogAttribute = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.retail.v2.CatalogAttribute").msgclass
|
77
|
+
CatalogAttribute::AttributeType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.retail.v2.CatalogAttribute.AttributeType").enummodule
|
78
|
+
CatalogAttribute::IndexableOption = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.retail.v2.CatalogAttribute.IndexableOption").enummodule
|
79
|
+
CatalogAttribute::DynamicFacetableOption = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.retail.v2.CatalogAttribute.DynamicFacetableOption").enummodule
|
80
|
+
CatalogAttribute::SearchableOption = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.retail.v2.CatalogAttribute.SearchableOption").enummodule
|
81
|
+
AttributesConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.retail.v2.AttributesConfig").msgclass
|
82
|
+
CompletionConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.retail.v2.CompletionConfig").msgclass
|
28
83
|
Catalog = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.retail.v2.Catalog").msgclass
|
29
84
|
end
|
30
85
|
end
|