google-cloud-recommendation_engine-v1beta1 0.5.0 → 0.6.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/lib/google/cloud/recommendation_engine/v1beta1/catalog_service/client.rb +6 -4
- data/lib/google/cloud/recommendation_engine/v1beta1/catalog_service/operations.rb +5 -3
- data/lib/google/cloud/recommendation_engine/v1beta1/catalog_service/rest/client.rb +6 -4
- data/lib/google/cloud/recommendation_engine/v1beta1/catalog_service/rest/operations.rb +9 -7
- data/lib/google/cloud/recommendation_engine/v1beta1/catalog_service/rest/service_stub.rb +6 -6
- data/lib/google/cloud/recommendation_engine/v1beta1/prediction_api_key_registry/client.rb +6 -4
- data/lib/google/cloud/recommendation_engine/v1beta1/prediction_api_key_registry/rest/client.rb +6 -4
- data/lib/google/cloud/recommendation_engine/v1beta1/prediction_api_key_registry/rest/service_stub.rb +3 -3
- data/lib/google/cloud/recommendation_engine/v1beta1/prediction_service/client.rb +6 -4
- data/lib/google/cloud/recommendation_engine/v1beta1/prediction_service/rest/client.rb +6 -4
- data/lib/google/cloud/recommendation_engine/v1beta1/prediction_service/rest/service_stub.rb +1 -1
- data/lib/google/cloud/recommendation_engine/v1beta1/user_event_service/client.rb +6 -4
- data/lib/google/cloud/recommendation_engine/v1beta1/user_event_service/operations.rb +5 -3
- data/lib/google/cloud/recommendation_engine/v1beta1/user_event_service/rest/client.rb +6 -4
- data/lib/google/cloud/recommendation_engine/v1beta1/user_event_service/rest/operations.rb +9 -7
- data/lib/google/cloud/recommendation_engine/v1beta1/user_event_service/rest/service_stub.rb +5 -5
- data/lib/google/cloud/recommendation_engine/v1beta1/version.rb +1 -1
- data/lib/google/cloud/recommendationengine/v1beta1/catalog_pb.rb +25 -49
- data/lib/google/cloud/recommendationengine/v1beta1/catalog_service_pb.rb +26 -26
- data/lib/google/cloud/recommendationengine/v1beta1/common_pb.rb +24 -11
- data/lib/google/cloud/recommendationengine/v1beta1/import_pb.rb +28 -55
- data/lib/google/cloud/recommendationengine/v1beta1/prediction_apikey_registry_service_pb.rb +24 -20
- data/lib/google/cloud/recommendationengine/v1beta1/prediction_service_pb.rb +26 -23
- data/lib/google/cloud/recommendationengine/v1beta1/recommendationengine_resources_pb.rb +25 -2
- data/lib/google/cloud/recommendationengine/v1beta1/user_event_pb.rb +27 -55
- data/lib/google/cloud/recommendationengine/v1beta1/user_event_service_pb.rb +26 -34
- data/proto_docs/google/api/client.rb +67 -4
- data/proto_docs/google/protobuf/any.rb +7 -4
- data/proto_docs/google/protobuf/struct.rb +1 -1
- data/proto_docs/google/protobuf/timestamp.rb +1 -3
- metadata +4 -4
@@ -1,3 +1,4 @@
|
|
1
|
+
# frozen_string_literal: true
|
1
2
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
3
|
# source: google/cloud/recommendationengine/v1beta1/catalog.proto
|
3
4
|
|
@@ -6,57 +7,32 @@ require 'google/protobuf'
|
|
6
7
|
require 'google/api/field_behavior_pb'
|
7
8
|
require 'google/cloud/recommendationengine/v1beta1/common_pb'
|
8
9
|
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
optional :available_quantity, :int64, 6
|
32
|
-
optional :canonical_product_uri, :string, 7
|
33
|
-
repeated :images, :message, 8, "google.cloud.recommendationengine.v1beta1.Image"
|
34
|
-
oneof :price do
|
35
|
-
optional :exact_price, :message, 1, "google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPrice"
|
36
|
-
optional :price_range, :message, 2, "google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRange"
|
37
|
-
end
|
38
|
-
end
|
39
|
-
add_message "google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPrice" do
|
40
|
-
optional :display_price, :float, 1
|
41
|
-
optional :original_price, :float, 2
|
42
|
-
end
|
43
|
-
add_message "google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRange" do
|
44
|
-
optional :min, :float, 1
|
45
|
-
optional :max, :float, 2
|
46
|
-
end
|
47
|
-
add_enum "google.cloud.recommendationengine.v1beta1.ProductCatalogItem.StockState" do
|
48
|
-
value :STOCK_STATE_UNSPECIFIED, 0
|
49
|
-
value :IN_STOCK, 0
|
50
|
-
value :OUT_OF_STOCK, 1
|
51
|
-
value :PREORDER, 2
|
52
|
-
value :BACKORDER, 3
|
53
|
-
end
|
54
|
-
add_message "google.cloud.recommendationengine.v1beta1.Image" do
|
55
|
-
optional :uri, :string, 1
|
56
|
-
optional :height, :int32, 2
|
57
|
-
optional :width, :int32, 3
|
10
|
+
|
11
|
+
descriptor_data = "\n7google/cloud/recommendationengine/v1beta1/catalog.proto\x12)google.cloud.recommendationengine.v1beta1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x36google/cloud/recommendationengine/v1beta1/common.proto\"\xfe\x03\n\x0b\x43\x61talogItem\x12\x0f\n\x02id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12k\n\x14\x63\x61tegory_hierarchies\x18\x02 \x03(\x0b\x32H.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchyB\x03\xe0\x41\x02\x12\x12\n\x05title\x18\x03 \x01(\tB\x03\xe0\x41\x02\x12\x18\n\x0b\x64\x65scription\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12S\n\x0fitem_attributes\x18\x05 \x01(\x0b\x32\x35.google.cloud.recommendationengine.v1beta1.FeatureMapB\x03\xe0\x41\x01\x12\x1a\n\rlanguage_code\x18\x06 \x01(\tB\x03\xe0\x41\x01\x12\x11\n\x04tags\x18\x08 \x03(\tB\x03\xe0\x41\x01\x12\x1a\n\ritem_group_id\x18\t \x01(\tB\x03\xe0\x41\x01\x12^\n\x10product_metadata\x18\n \x01(\x0b\x32=.google.cloud.recommendationengine.v1beta1.ProductCatalogItemB\x03\xe0\x41\x01H\x00\x1a,\n\x11\x43\x61tegoryHierarchy\x12\x17\n\ncategories\x18\x01 \x03(\tB\x03\xe0\x41\x02\x42\x15\n\x13recommendation_type\"\xe6\x06\n\x12ProductCatalogItem\x12\x64\n\x0b\x65xact_price\x18\x01 \x01(\x0b\x32H.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPriceB\x03\xe0\x41\x01H\x00\x12\x64\n\x0bprice_range\x18\x02 \x01(\x0b\x32H.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRangeB\x03\xe0\x41\x01H\x00\x12\\\n\x05\x63osts\x18\x03 \x03(\x0b\x32H.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.CostsEntryB\x03\xe0\x41\x01\x12\x1a\n\rcurrency_code\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12\x62\n\x0bstock_state\x18\x05 \x01(\x0e\x32H.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.StockStateB\x03\xe0\x41\x01\x12\x1f\n\x12\x61vailable_quantity\x18\x06 \x01(\x03\x42\x03\xe0\x41\x01\x12\"\n\x15\x63\x61nonical_product_uri\x18\x07 \x01(\tB\x03\xe0\x41\x01\x12\x45\n\x06images\x18\x08 \x03(\x0b\x32\x30.google.cloud.recommendationengine.v1beta1.ImageB\x03\xe0\x41\x01\x1a\x45\n\nExactPrice\x12\x1a\n\rdisplay_price\x18\x01 \x01(\x02\x42\x03\xe0\x41\x01\x12\x1b\n\x0eoriginal_price\x18\x02 \x01(\x02\x42\x03\xe0\x41\x01\x1a\x30\n\nPriceRange\x12\x10\n\x03min\x18\x01 \x01(\x02\x42\x03\xe0\x41\x02\x12\x10\n\x03max\x18\x02 \x01(\x02\x42\x03\xe0\x41\x02\x1a,\n\nCostsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\x02:\x02\x38\x01\"j\n\nStockState\x12\x1b\n\x17STOCK_STATE_UNSPECIFIED\x10\x00\x12\x0c\n\x08IN_STOCK\x10\x00\x12\x10\n\x0cOUT_OF_STOCK\x10\x01\x12\x0c\n\x08PREORDER\x10\x02\x12\r\n\tBACKORDER\x10\x03\x1a\x02\x10\x01\x42\x07\n\x05price\"B\n\x05Image\x12\x10\n\x03uri\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x13\n\x06height\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x12\n\x05width\x18\x03 \x01(\x05\x42\x03\xe0\x41\x01\x42\xa3\x02\n-com.google.cloud.recommendationengine.v1beta1P\x01Zacloud.google.com/go/recommendationengine/apiv1beta1/recommendationenginepb;recommendationenginepb\xa2\x02\x05RECAI\xaa\x02)Google.Cloud.RecommendationEngine.V1Beta1\xca\x02)Google\\Cloud\\RecommendationEngine\\V1beta1\xea\x02,Google::Cloud::RecommendationEngine::V1beta1b\x06proto3"
|
12
|
+
|
13
|
+
pool = Google::Protobuf::DescriptorPool.generated_pool
|
14
|
+
|
15
|
+
begin
|
16
|
+
pool.add_serialized_file(descriptor_data)
|
17
|
+
rescue TypeError => e
|
18
|
+
# Compatibility code: will be removed in the next major version.
|
19
|
+
require 'google/protobuf/descriptor_pb'
|
20
|
+
parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
|
21
|
+
parsed.clear_dependency
|
22
|
+
serialized = parsed.class.encode(parsed)
|
23
|
+
file = pool.add_serialized_file(serialized)
|
24
|
+
warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
|
25
|
+
imports = [
|
26
|
+
["google.cloud.recommendationengine.v1beta1.FeatureMap", "google/cloud/recommendationengine/v1beta1/common.proto"],
|
27
|
+
]
|
28
|
+
imports.each do |type_name, expected_filename|
|
29
|
+
import_file = pool.lookup(type_name).file_descriptor
|
30
|
+
if import_file.name != expected_filename
|
31
|
+
warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
|
58
32
|
end
|
59
33
|
end
|
34
|
+
warn "Each proto file must use a consistent fully-qualified name."
|
35
|
+
warn "This will become an error in the next major version."
|
60
36
|
end
|
61
37
|
|
62
38
|
module Google
|
@@ -1,3 +1,4 @@
|
|
1
|
+
# frozen_string_literal: true
|
1
2
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
3
|
# source: google/cloud/recommendationengine/v1beta1/catalog_service.proto
|
3
4
|
|
@@ -14,34 +15,33 @@ require 'google/longrunning/operations_pb'
|
|
14
15
|
require 'google/protobuf/empty_pb'
|
15
16
|
require 'google/protobuf/field_mask_pb'
|
16
17
|
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
end
|
41
|
-
add_message "google.cloud.recommendationengine.v1beta1.DeleteCatalogItemRequest" do
|
42
|
-
optional :name, :string, 1
|
18
|
+
|
19
|
+
descriptor_data = "\n?google/cloud/recommendationengine/v1beta1/catalog_service.proto\x12)google.cloud.recommendationengine.v1beta1\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x37google/cloud/recommendationengine/v1beta1/catalog.proto\x1a\x36google/cloud/recommendationengine/v1beta1/import.proto\x1aNgoogle/cloud/recommendationengine/v1beta1/recommendationengine_resources.proto\x1a#google/longrunning/operations.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a google/protobuf/field_mask.proto\"\xb2\x01\n\x18\x43reateCatalogItemRequest\x12\x43\n\x06parent\x18\x01 \x01(\tB3\xe0\x41\x02\xfa\x41-\n+recommendationengine.googleapis.com/Catalog\x12Q\n\x0c\x63\x61talog_item\x18\x02 \x01(\x0b\x32\x36.google.cloud.recommendationengine.v1beta1.CatalogItemB\x03\xe0\x41\x02\"b\n\x15GetCatalogItemRequest\x12I\n\x04name\x18\x01 \x01(\tB;\xe0\x41\x02\xfa\x41\x35\n3recommendationengine.googleapis.com/CatalogItemPath\"\xa4\x01\n\x17ListCatalogItemsRequest\x12\x43\n\x06parent\x18\x01 \x01(\tB3\xe0\x41\x02\xfa\x41-\n+recommendationengine.googleapis.com/Catalog\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x13\n\x06\x66ilter\x18\x04 \x01(\tB\x03\xe0\x41\x01\"\x82\x01\n\x18ListCatalogItemsResponse\x12M\n\rcatalog_items\x18\x01 \x03(\x0b\x32\x36.google.cloud.recommendationengine.v1beta1.CatalogItem\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\xe9\x01\n\x18UpdateCatalogItemRequest\x12I\n\x04name\x18\x01 \x01(\tB;\xe0\x41\x02\xfa\x41\x35\n3recommendationengine.googleapis.com/CatalogItemPath\x12Q\n\x0c\x63\x61talog_item\x18\x02 \x01(\x0b\x32\x36.google.cloud.recommendationengine.v1beta1.CatalogItemB\x03\xe0\x41\x02\x12/\n\x0bupdate_mask\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\"e\n\x18\x44\x65leteCatalogItemRequest\x12I\n\x04name\x18\x01 \x01(\tB;\xe0\x41\x02\xfa\x41\x35\n3recommendationengine.googleapis.com/CatalogItemPath2\x96\r\n\x0e\x43\x61talogService\x12\xfe\x01\n\x11\x43reateCatalogItem\x12\x43.google.cloud.recommendationengine.v1beta1.CreateCatalogItemRequest\x1a\x36.google.cloud.recommendationengine.v1beta1.CatalogItem\"l\x82\xd3\xe4\x93\x02P\"@/v1beta1/{parent=projects/*/locations/*/catalogs/*}/catalogItems:\x0c\x63\x61talog_item\xda\x41\x13parent,catalog_item\x12\xdc\x01\n\x0eGetCatalogItem\x12@.google.cloud.recommendationengine.v1beta1.GetCatalogItemRequest\x1a\x36.google.cloud.recommendationengine.v1beta1.CatalogItem\"P\x82\xd3\xe4\x93\x02\x43\x12\x41/v1beta1/{name=projects/*/locations/*/catalogs/*/catalogItems/**}\xda\x41\x04name\x12\xf5\x01\n\x10ListCatalogItems\x12\x42.google.cloud.recommendationengine.v1beta1.ListCatalogItemsRequest\x1a\x43.google.cloud.recommendationengine.v1beta1.ListCatalogItemsResponse\"X\x82\xd3\xe4\x93\x02\x42\x12@/v1beta1/{parent=projects/*/locations/*/catalogs/*}/catalogItems\xda\x41\rparent,filter\x12\x89\x02\n\x11UpdateCatalogItem\x12\x43.google.cloud.recommendationengine.v1beta1.UpdateCatalogItemRequest\x1a\x36.google.cloud.recommendationengine.v1beta1.CatalogItem\"w\x82\xd3\xe4\x93\x02Q2A/v1beta1/{name=projects/*/locations/*/catalogs/*/catalogItems/**}:\x0c\x63\x61talog_item\xda\x41\x1dname,catalog_item,update_mask\x12\xc2\x01\n\x11\x44\x65leteCatalogItem\x12\x43.google.cloud.recommendationengine.v1beta1.DeleteCatalogItemRequest\x1a\x16.google.protobuf.Empty\"P\x82\xd3\xe4\x93\x02\x43*A/v1beta1/{name=projects/*/locations/*/catalogs/*/catalogItems/**}\xda\x41\x04name\x12\x81\x03\n\x12ImportCatalogItems\x12\x44.google.cloud.recommendationengine.v1beta1.ImportCatalogItemsRequest\x1a\x1d.google.longrunning.Operation\"\x85\x02\x82\xd3\xe4\x93\x02L\"G/v1beta1/{parent=projects/*/locations/*/catalogs/*}/catalogItems:import:\x01*\xca\x41\x80\x01\nDgoogle.cloud.recommendationengine.v1beta1.ImportCatalogItemsResponse\x12\x38google.cloud.recommendationengine.v1beta1.ImportMetadata\xda\x41,parent,request_id,input_config,errors_config\x1aW\xca\x41#recommendationengine.googleapis.com\xd2\x41.https://www.googleapis.com/auth/cloud-platformB\xa3\x02\n-com.google.cloud.recommendationengine.v1beta1P\x01Zacloud.google.com/go/recommendationengine/apiv1beta1/recommendationenginepb;recommendationenginepb\xa2\x02\x05RECAI\xaa\x02)Google.Cloud.RecommendationEngine.V1Beta1\xca\x02)Google\\Cloud\\RecommendationEngine\\V1beta1\xea\x02,Google::Cloud::RecommendationEngine::V1beta1b\x06proto3"
|
20
|
+
|
21
|
+
pool = Google::Protobuf::DescriptorPool.generated_pool
|
22
|
+
|
23
|
+
begin
|
24
|
+
pool.add_serialized_file(descriptor_data)
|
25
|
+
rescue TypeError => e
|
26
|
+
# Compatibility code: will be removed in the next major version.
|
27
|
+
require 'google/protobuf/descriptor_pb'
|
28
|
+
parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
|
29
|
+
parsed.clear_dependency
|
30
|
+
serialized = parsed.class.encode(parsed)
|
31
|
+
file = pool.add_serialized_file(serialized)
|
32
|
+
warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
|
33
|
+
imports = [
|
34
|
+
["google.cloud.recommendationengine.v1beta1.CatalogItem", "google/cloud/recommendationengine/v1beta1/catalog.proto"],
|
35
|
+
["google.protobuf.FieldMask", "google/protobuf/field_mask.proto"],
|
36
|
+
]
|
37
|
+
imports.each do |type_name, expected_filename|
|
38
|
+
import_file = pool.lookup(type_name).file_descriptor
|
39
|
+
if import_file.name != expected_filename
|
40
|
+
warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
|
43
41
|
end
|
44
42
|
end
|
43
|
+
warn "Each proto file must use a consistent fully-qualified name."
|
44
|
+
warn "This will become an error in the next major version."
|
45
45
|
end
|
46
46
|
|
47
47
|
module Google
|
@@ -1,21 +1,34 @@
|
|
1
|
+
# frozen_string_literal: true
|
1
2
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
3
|
# source: google/cloud/recommendationengine/v1beta1/common.proto
|
3
4
|
|
4
5
|
require 'google/protobuf'
|
5
6
|
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
7
|
+
|
8
|
+
descriptor_data = "\n6google/cloud/recommendationengine/v1beta1/common.proto\x12)google.cloud.recommendationengine.v1beta1\"\x96\x04\n\nFeatureMap\x12l\n\x14\x63\x61tegorical_features\x18\x01 \x03(\x0b\x32N.google.cloud.recommendationengine.v1beta1.FeatureMap.CategoricalFeaturesEntry\x12h\n\x12numerical_features\x18\x02 \x03(\x0b\x32L.google.cloud.recommendationengine.v1beta1.FeatureMap.NumericalFeaturesEntry\x1a\x1b\n\nStringList\x12\r\n\x05value\x18\x01 \x03(\t\x1a\x1a\n\tFloatList\x12\r\n\x05value\x18\x01 \x03(\x02\x1a|\n\x18\x43\x61tegoricalFeaturesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12O\n\x05value\x18\x02 \x01(\x0b\x32@.google.cloud.recommendationengine.v1beta1.FeatureMap.StringList:\x02\x38\x01\x1ay\n\x16NumericalFeaturesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12N\n\x05value\x18\x02 \x01(\x0b\x32?.google.cloud.recommendationengine.v1beta1.FeatureMap.FloatList:\x02\x38\x01\x42\xa3\x02\n-com.google.cloud.recommendationengine.v1beta1P\x01Zacloud.google.com/go/recommendationengine/apiv1beta1/recommendationenginepb;recommendationenginepb\xa2\x02\x05RECAI\xaa\x02)Google.Cloud.RecommendationEngine.V1Beta1\xca\x02)Google\\Cloud\\RecommendationEngine\\V1beta1\xea\x02,Google::Cloud::RecommendationEngine::V1beta1b\x06proto3"
|
9
|
+
|
10
|
+
pool = Google::Protobuf::DescriptorPool.generated_pool
|
11
|
+
|
12
|
+
begin
|
13
|
+
pool.add_serialized_file(descriptor_data)
|
14
|
+
rescue TypeError => e
|
15
|
+
# Compatibility code: will be removed in the next major version.
|
16
|
+
require 'google/protobuf/descriptor_pb'
|
17
|
+
parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
|
18
|
+
parsed.clear_dependency
|
19
|
+
serialized = parsed.class.encode(parsed)
|
20
|
+
file = pool.add_serialized_file(serialized)
|
21
|
+
warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
|
22
|
+
imports = [
|
23
|
+
]
|
24
|
+
imports.each do |type_name, expected_filename|
|
25
|
+
import_file = pool.lookup(type_name).file_descriptor
|
26
|
+
if import_file.name != expected_filename
|
27
|
+
warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
|
17
28
|
end
|
18
29
|
end
|
30
|
+
warn "Each proto file must use a consistent fully-qualified name."
|
31
|
+
warn "This will become an error in the next major version."
|
19
32
|
end
|
20
33
|
|
21
34
|
module Google
|
@@ -1,3 +1,4 @@
|
|
1
|
+
# frozen_string_literal: true
|
1
2
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
3
|
# source: google/cloud/recommendationengine/v1beta1/import.proto
|
3
4
|
|
@@ -11,63 +12,35 @@ require 'google/cloud/recommendationengine/v1beta1/recommendationengine_resource
|
|
11
12
|
require 'google/protobuf/timestamp_pb'
|
12
13
|
require 'google/rpc/status_pb'
|
13
14
|
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
optional :input_config, :message, 3, "google.cloud.recommendationengine.v1beta1.InputConfig"
|
40
|
-
optional :errors_config, :message, 4, "google.cloud.recommendationengine.v1beta1.ImportErrorsConfig"
|
41
|
-
end
|
42
|
-
add_message "google.cloud.recommendationengine.v1beta1.InputConfig" do
|
43
|
-
oneof :source do
|
44
|
-
optional :catalog_inline_source, :message, 1, "google.cloud.recommendationengine.v1beta1.CatalogInlineSource"
|
45
|
-
optional :gcs_source, :message, 2, "google.cloud.recommendationengine.v1beta1.GcsSource"
|
46
|
-
optional :user_event_inline_source, :message, 3, "google.cloud.recommendationengine.v1beta1.UserEventInlineSource"
|
47
|
-
end
|
48
|
-
end
|
49
|
-
add_message "google.cloud.recommendationengine.v1beta1.ImportMetadata" do
|
50
|
-
optional :operation_name, :string, 5
|
51
|
-
optional :request_id, :string, 3
|
52
|
-
optional :create_time, :message, 4, "google.protobuf.Timestamp"
|
53
|
-
optional :success_count, :int64, 1
|
54
|
-
optional :failure_count, :int64, 2
|
55
|
-
optional :update_time, :message, 6, "google.protobuf.Timestamp"
|
56
|
-
end
|
57
|
-
add_message "google.cloud.recommendationengine.v1beta1.ImportCatalogItemsResponse" do
|
58
|
-
repeated :error_samples, :message, 1, "google.rpc.Status"
|
59
|
-
optional :errors_config, :message, 2, "google.cloud.recommendationengine.v1beta1.ImportErrorsConfig"
|
60
|
-
end
|
61
|
-
add_message "google.cloud.recommendationengine.v1beta1.ImportUserEventsResponse" do
|
62
|
-
repeated :error_samples, :message, 1, "google.rpc.Status"
|
63
|
-
optional :errors_config, :message, 2, "google.cloud.recommendationengine.v1beta1.ImportErrorsConfig"
|
64
|
-
optional :import_summary, :message, 3, "google.cloud.recommendationengine.v1beta1.UserEventImportSummary"
|
65
|
-
end
|
66
|
-
add_message "google.cloud.recommendationengine.v1beta1.UserEventImportSummary" do
|
67
|
-
optional :joined_events_count, :int64, 1
|
68
|
-
optional :unjoined_events_count, :int64, 2
|
15
|
+
|
16
|
+
descriptor_data = "\n6google/cloud/recommendationengine/v1beta1/import.proto\x12)google.cloud.recommendationengine.v1beta1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x37google/cloud/recommendationengine/v1beta1/catalog.proto\x1a:google/cloud/recommendationengine/v1beta1/user_event.proto\x1aNgoogle/cloud/recommendationengine/v1beta1/recommendationengine_resources.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x17google/rpc/status.proto\"$\n\tGcsSource\x12\x17\n\ninput_uris\x18\x01 \x03(\tB\x03\xe0\x41\x02\"i\n\x13\x43\x61talogInlineSource\x12R\n\rcatalog_items\x18\x01 \x03(\x0b\x32\x36.google.cloud.recommendationengine.v1beta1.CatalogItemB\x03\xe0\x41\x01\"g\n\x15UserEventInlineSource\x12N\n\x0buser_events\x18\x01 \x03(\x0b\x32\x34.google.cloud.recommendationengine.v1beta1.UserEventB\x03\xe0\x41\x01\"9\n\x12ImportErrorsConfig\x12\x14\n\ngcs_prefix\x18\x01 \x01(\tH\x00\x42\r\n\x0b\x64\x65stination\"\xa7\x02\n\x19ImportCatalogItemsRequest\x12\x43\n\x06parent\x18\x01 \x01(\tB3\xe0\x41\x02\xfa\x41-\n+recommendationengine.googleapis.com/Catalog\x12\x17\n\nrequest_id\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12Q\n\x0cinput_config\x18\x03 \x01(\x0b\x32\x36.google.cloud.recommendationengine.v1beta1.InputConfigB\x03\xe0\x41\x02\x12Y\n\rerrors_config\x18\x04 \x01(\x0b\x32=.google.cloud.recommendationengine.v1beta1.ImportErrorsConfigB\x03\xe0\x41\x01\"\xa8\x02\n\x17ImportUserEventsRequest\x12\x46\n\x06parent\x18\x01 \x01(\tB6\xe0\x41\x02\xfa\x41\x30\n.recommendationengine.googleapis.com/EventStore\x12\x17\n\nrequest_id\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12Q\n\x0cinput_config\x18\x03 \x01(\x0b\x32\x36.google.cloud.recommendationengine.v1beta1.InputConfigB\x03\xe0\x41\x02\x12Y\n\rerrors_config\x18\x04 \x01(\x0b\x32=.google.cloud.recommendationengine.v1beta1.ImportErrorsConfigB\x03\xe0\x41\x01\"\xaa\x02\n\x0bInputConfig\x12_\n\x15\x63\x61talog_inline_source\x18\x01 \x01(\x0b\x32>.google.cloud.recommendationengine.v1beta1.CatalogInlineSourceH\x00\x12J\n\ngcs_source\x18\x02 \x01(\x0b\x32\x34.google.cloud.recommendationengine.v1beta1.GcsSourceH\x00\x12\x64\n\x18user_event_inline_source\x18\x03 \x01(\x0b\x32@.google.cloud.recommendationengine.v1beta1.UserEventInlineSourceH\x00\x42\x08\n\x06source\"\xcc\x01\n\x0eImportMetadata\x12\x16\n\x0eoperation_name\x18\x05 \x01(\t\x12\x12\n\nrequest_id\x18\x03 \x01(\t\x12/\n\x0b\x63reate_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x15\n\rsuccess_count\x18\x01 \x01(\x03\x12\x15\n\rfailure_count\x18\x02 \x01(\x03\x12/\n\x0bupdate_time\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"\x9d\x01\n\x1aImportCatalogItemsResponse\x12)\n\rerror_samples\x18\x01 \x03(\x0b\x32\x12.google.rpc.Status\x12T\n\rerrors_config\x18\x02 \x01(\x0b\x32=.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig\"\xf6\x01\n\x18ImportUserEventsResponse\x12)\n\rerror_samples\x18\x01 \x03(\x0b\x32\x12.google.rpc.Status\x12T\n\rerrors_config\x18\x02 \x01(\x0b\x32=.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig\x12Y\n\x0eimport_summary\x18\x03 \x01(\x0b\x32\x41.google.cloud.recommendationengine.v1beta1.UserEventImportSummary\"T\n\x16UserEventImportSummary\x12\x1b\n\x13joined_events_count\x18\x01 \x01(\x03\x12\x1d\n\x15unjoined_events_count\x18\x02 \x01(\x03\x42\xa3\x02\n-com.google.cloud.recommendationengine.v1beta1P\x01Zacloud.google.com/go/recommendationengine/apiv1beta1/recommendationenginepb;recommendationenginepb\xa2\x02\x05RECAI\xaa\x02)Google.Cloud.RecommendationEngine.V1Beta1\xca\x02)Google\\Cloud\\RecommendationEngine\\V1beta1\xea\x02,Google::Cloud::RecommendationEngine::V1beta1b\x06proto3"
|
17
|
+
|
18
|
+
pool = Google::Protobuf::DescriptorPool.generated_pool
|
19
|
+
|
20
|
+
begin
|
21
|
+
pool.add_serialized_file(descriptor_data)
|
22
|
+
rescue TypeError => e
|
23
|
+
# Compatibility code: will be removed in the next major version.
|
24
|
+
require 'google/protobuf/descriptor_pb'
|
25
|
+
parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
|
26
|
+
parsed.clear_dependency
|
27
|
+
serialized = parsed.class.encode(parsed)
|
28
|
+
file = pool.add_serialized_file(serialized)
|
29
|
+
warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
|
30
|
+
imports = [
|
31
|
+
["google.cloud.recommendationengine.v1beta1.CatalogItem", "google/cloud/recommendationengine/v1beta1/catalog.proto"],
|
32
|
+
["google.cloud.recommendationengine.v1beta1.UserEvent", "google/cloud/recommendationengine/v1beta1/user_event.proto"],
|
33
|
+
["google.protobuf.Timestamp", "google/protobuf/timestamp.proto"],
|
34
|
+
["google.rpc.Status", "google/rpc/status.proto"],
|
35
|
+
]
|
36
|
+
imports.each do |type_name, expected_filename|
|
37
|
+
import_file = pool.lookup(type_name).file_descriptor
|
38
|
+
if import_file.name != expected_filename
|
39
|
+
warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
|
69
40
|
end
|
70
41
|
end
|
42
|
+
warn "Each proto file must use a consistent fully-qualified name."
|
43
|
+
warn "This will become an error in the next major version."
|
71
44
|
end
|
72
45
|
|
73
46
|
module Google
|
@@ -1,3 +1,4 @@
|
|
1
|
+
# frozen_string_literal: true
|
1
2
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
3
|
# source: google/cloud/recommendationengine/v1beta1/prediction_apikey_registry_service.proto
|
3
4
|
|
@@ -10,28 +11,31 @@ require 'google/protobuf/empty_pb'
|
|
10
11
|
require 'google/api/client_pb'
|
11
12
|
require 'google/cloud/recommendationengine/v1beta1/recommendationengine_resources_pb'
|
12
13
|
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
14
|
+
|
15
|
+
descriptor_data = "\nRgoogle/cloud/recommendationengine/v1beta1/prediction_apikey_registry_service.proto\x12)google.cloud.recommendationengine.v1beta1\x1a\x1cgoogle/api/annotations.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a\x17google/api/client.proto\x1aNgoogle/cloud/recommendationengine/v1beta1/recommendationengine_resources.proto\"/\n\x1cPredictionApiKeyRegistration\x12\x0f\n\x07\x61pi_key\x18\x01 \x01(\t\"\xea\x01\n)CreatePredictionApiKeyRegistrationRequest\x12\x46\n\x06parent\x18\x01 \x01(\tB6\xe0\x41\x02\xfa\x41\x30\n.recommendationengine.googleapis.com/EventStore\x12u\n\x1fprediction_api_key_registration\x18\x02 \x01(\x0b\x32G.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistrationB\x03\xe0\x41\x02\"\xa3\x01\n(ListPredictionApiKeyRegistrationsRequest\x12\x46\n\x06parent\x18\x01 \x01(\tB6\xe0\x41\x02\xfa\x41\x30\n.recommendationengine.googleapis.com/EventStore\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\"\xb7\x01\n)ListPredictionApiKeyRegistrationsResponse\x12q\n prediction_api_key_registrations\x18\x01 \x03(\x0b\x32G.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\x83\x01\n)DeletePredictionApiKeyRegistrationRequest\x12V\n\x04name\x18\x01 \x01(\tBH\xe0\x41\x02\xfa\x41\x42\n@recommendationengine.googleapis.com/PredictionApiKeyRegistration2\x97\x08\n\x18PredictionApiKeyRegistry\x12\xd9\x02\n\"CreatePredictionApiKeyRegistration\x12T.google.cloud.recommendationengine.v1beta1.CreatePredictionApiKeyRegistrationRequest\x1aG.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration\"\x93\x01\x82\xd3\xe4\x93\x02\x64\"_/v1beta1/{parent=projects/*/locations/*/catalogs/*/eventStores/*}/predictionApiKeyRegistrations:\x01*\xda\x41&parent,prediction_api_key_registration\x12\xc0\x02\n!ListPredictionApiKeyRegistrations\x12S.google.cloud.recommendationengine.v1beta1.ListPredictionApiKeyRegistrationsRequest\x1aT.google.cloud.recommendationengine.v1beta1.ListPredictionApiKeyRegistrationsResponse\"p\x82\xd3\xe4\x93\x02\x61\x12_/v1beta1/{parent=projects/*/locations/*/catalogs/*/eventStores/*}/predictionApiKeyRegistrations\xda\x41\x06parent\x12\x82\x02\n\"DeletePredictionApiKeyRegistration\x12T.google.cloud.recommendationengine.v1beta1.DeletePredictionApiKeyRegistrationRequest\x1a\x16.google.protobuf.Empty\"n\x82\xd3\xe4\x93\x02\x61*_/v1beta1/{name=projects/*/locations/*/catalogs/*/eventStores/*/predictionApiKeyRegistrations/*}\xda\x41\x04name\x1aW\xca\x41#recommendationengine.googleapis.com\xd2\x41.https://www.googleapis.com/auth/cloud-platformB\xa3\x02\n-com.google.cloud.recommendationengine.v1beta1P\x01Zacloud.google.com/go/recommendationengine/apiv1beta1/recommendationenginepb;recommendationenginepb\xa2\x02\x05RECAI\xaa\x02)Google.Cloud.RecommendationEngine.V1Beta1\xca\x02)Google\\Cloud\\RecommendationEngine\\V1beta1\xea\x02,Google::Cloud::RecommendationEngine::V1beta1b\x06proto3"
|
16
|
+
|
17
|
+
pool = Google::Protobuf::DescriptorPool.generated_pool
|
18
|
+
|
19
|
+
begin
|
20
|
+
pool.add_serialized_file(descriptor_data)
|
21
|
+
rescue TypeError => e
|
22
|
+
# Compatibility code: will be removed in the next major version.
|
23
|
+
require 'google/protobuf/descriptor_pb'
|
24
|
+
parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
|
25
|
+
parsed.clear_dependency
|
26
|
+
serialized = parsed.class.encode(parsed)
|
27
|
+
file = pool.add_serialized_file(serialized)
|
28
|
+
warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
|
29
|
+
imports = [
|
30
|
+
]
|
31
|
+
imports.each do |type_name, expected_filename|
|
32
|
+
import_file = pool.lookup(type_name).file_descriptor
|
33
|
+
if import_file.name != expected_filename
|
34
|
+
warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
|
33
35
|
end
|
34
36
|
end
|
37
|
+
warn "Each proto file must use a consistent fully-qualified name."
|
38
|
+
warn "This will become an error in the next major version."
|
35
39
|
end
|
36
40
|
|
37
41
|
module Google
|
@@ -1,3 +1,4 @@
|
|
1
|
+
# frozen_string_literal: true
|
1
2
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
3
|
# source: google/cloud/recommendationengine/v1beta1/prediction_service.proto
|
3
4
|
|
@@ -10,31 +11,33 @@ require 'google/cloud/recommendationengine/v1beta1/user_event_pb'
|
|
10
11
|
require 'google/protobuf/struct_pb'
|
11
12
|
require 'google/api/client_pb'
|
12
13
|
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
14
|
+
|
15
|
+
descriptor_data = "\nBgoogle/cloud/recommendationengine/v1beta1/prediction_service.proto\x12)google.cloud.recommendationengine.v1beta1\x1a\x1cgoogle/api/annotations.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a:google/cloud/recommendationengine/v1beta1/user_event.proto\x1a\x1cgoogle/protobuf/struct.proto\x1a\x17google/api/client.proto\"\xae\x04\n\x0ePredictRequest\x12\x43\n\x04name\x18\x01 \x01(\tB5\xe0\x41\x02\xfa\x41/\n-recommendationengine.googleapis.com/Placement\x12M\n\nuser_event\x18\x02 \x01(\x0b\x32\x34.google.cloud.recommendationengine.v1beta1.UserEventB\x03\xe0\x41\x02\x12\x16\n\tpage_size\x18\x07 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x08 \x01(\tB\x03\xe0\x41\x01\x12\x13\n\x06\x66ilter\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x14\n\x07\x64ry_run\x18\x04 \x01(\x08\x42\x03\xe0\x41\x01\x12Z\n\x06params\x18\x06 \x03(\x0b\x32\x45.google.cloud.recommendationengine.v1beta1.PredictRequest.ParamsEntryB\x03\xe0\x41\x01\x12Z\n\x06labels\x18\t \x03(\x0b\x32\x45.google.cloud.recommendationengine.v1beta1.PredictRequest.LabelsEntryB\x03\xe0\x41\x01\x1a\x45\n\x0bParamsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12%\n\x05value\x18\x02 \x01(\x0b\x32\x16.google.protobuf.Value:\x02\x38\x01\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\xe2\x04\n\x0fPredictResponse\x12\\\n\x07results\x18\x01 \x03(\x0b\x32K.google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult\x12\x1c\n\x14recommendation_token\x18\x02 \x01(\t\x12 \n\x18items_missing_in_catalog\x18\x03 \x03(\t\x12\x0f\n\x07\x64ry_run\x18\x04 \x01(\x08\x12Z\n\x08metadata\x18\x05 \x03(\x0b\x32H.google.cloud.recommendationengine.v1beta1.PredictResponse.MetadataEntry\x12\x17\n\x0fnext_page_token\x18\x06 \x01(\t\x1a\xe1\x01\n\x10PredictionResult\x12\n\n\x02id\x18\x01 \x01(\t\x12t\n\ritem_metadata\x18\x02 \x03(\x0b\x32].google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult.ItemMetadataEntry\x1aK\n\x11ItemMetadataEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12%\n\x05value\x18\x02 \x01(\x0b\x32\x16.google.protobuf.Value:\x02\x38\x01\x1aG\n\rMetadataEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12%\n\x05value\x18\x02 \x01(\x0b\x32\x16.google.protobuf.Value:\x02\x38\x01\x32\xe2\x02\n\x11PredictionService\x12\xf3\x01\n\x07Predict\x12\x39.google.cloud.recommendationengine.v1beta1.PredictRequest\x1a:.google.cloud.recommendationengine.v1beta1.PredictResponse\"q\x82\xd3\xe4\x93\x02Y\"T/v1beta1/{name=projects/*/locations/*/catalogs/*/eventStores/*/placements/*}:predict:\x01*\xda\x41\x0fname,user_event\x1aW\xca\x41#recommendationengine.googleapis.com\xd2\x41.https://www.googleapis.com/auth/cloud-platformB\xa3\x02\n-com.google.cloud.recommendationengine.v1beta1P\x01Zacloud.google.com/go/recommendationengine/apiv1beta1/recommendationenginepb;recommendationenginepb\xa2\x02\x05RECAI\xaa\x02)Google.Cloud.RecommendationEngine.V1Beta1\xca\x02)Google\\Cloud\\RecommendationEngine\\V1beta1\xea\x02,Google::Cloud::RecommendationEngine::V1beta1b\x06proto3"
|
16
|
+
|
17
|
+
pool = Google::Protobuf::DescriptorPool.generated_pool
|
18
|
+
|
19
|
+
begin
|
20
|
+
pool.add_serialized_file(descriptor_data)
|
21
|
+
rescue TypeError => e
|
22
|
+
# Compatibility code: will be removed in the next major version.
|
23
|
+
require 'google/protobuf/descriptor_pb'
|
24
|
+
parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
|
25
|
+
parsed.clear_dependency
|
26
|
+
serialized = parsed.class.encode(parsed)
|
27
|
+
file = pool.add_serialized_file(serialized)
|
28
|
+
warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
|
29
|
+
imports = [
|
30
|
+
["google.cloud.recommendationengine.v1beta1.UserEvent", "google/cloud/recommendationengine/v1beta1/user_event.proto"],
|
31
|
+
["google.protobuf.Value", "google/protobuf/struct.proto"],
|
32
|
+
]
|
33
|
+
imports.each do |type_name, expected_filename|
|
34
|
+
import_file = pool.lookup(type_name).file_descriptor
|
35
|
+
if import_file.name != expected_filename
|
36
|
+
warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
|
36
37
|
end
|
37
38
|
end
|
39
|
+
warn "Each proto file must use a consistent fully-qualified name."
|
40
|
+
warn "This will become an error in the next major version."
|
38
41
|
end
|
39
42
|
|
40
43
|
module Google
|
@@ -1,3 +1,4 @@
|
|
1
|
+
# frozen_string_literal: true
|
1
2
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
3
|
# source: google/cloud/recommendationengine/v1beta1/recommendationengine_resources.proto
|
3
4
|
|
@@ -5,9 +6,31 @@ require 'google/protobuf'
|
|
5
6
|
|
6
7
|
require 'google/api/resource_pb'
|
7
8
|
|
8
|
-
|
9
|
-
|
9
|
+
|
10
|
+
descriptor_data = "\nNgoogle/cloud/recommendationengine/v1beta1/recommendationengine_resources.proto\x12)google.cloud.recommendationengine.v1beta1\x1a\x19google/api/resource.protoB\xac\x08\n-com.google.cloud.recommendationengine.v1beta1P\x01Zacloud.google.com/go/recommendationengine/apiv1beta1/recommendationenginepb;recommendationenginepb\xa2\x02\x05RECAI\xaa\x02)Google.Cloud.RecommendationEngine.V1Beta1\xca\x02)Google\\Cloud\\RecommendationEngine\\V1beta1\xea\x02,Google::Cloud::RecommendationEngine::V1beta1\xea\x41i\n+recommendationengine.googleapis.com/Catalog\x12:projects/{project}/locations/{location}/catalogs/{catalog}\xea\x41\x92\x01\n3recommendationengine.googleapis.com/CatalogItemPath\x12[projects/{project}/locations/{location}/catalogs/{catalog}/catalogItems/{catalog_item_path}\xea\x41\x86\x01\n.recommendationengine.googleapis.com/EventStore\x12Tprojects/{project}/locations/{location}/catalogs/{catalog}/eventStores/{event_store}\xea\x41\xd9\x01\n@recommendationengine.googleapis.com/PredictionApiKeyRegistration\x12\x94\x01projects/{project}/locations/{location}/catalogs/{catalog}/eventStores/{event_store}/predictionApiKeyRegistrations/{prediction_api_key_registration}\xea\x41\x9c\x01\n-recommendationengine.googleapis.com/Placement\x12kprojects/{project}/locations/{location}/catalogs/{catalog}/eventStores/{event_store}/placements/{placement}b\x06proto3"
|
11
|
+
|
12
|
+
pool = Google::Protobuf::DescriptorPool.generated_pool
|
13
|
+
|
14
|
+
begin
|
15
|
+
pool.add_serialized_file(descriptor_data)
|
16
|
+
rescue TypeError => e
|
17
|
+
# Compatibility code: will be removed in the next major version.
|
18
|
+
require 'google/protobuf/descriptor_pb'
|
19
|
+
parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
|
20
|
+
parsed.clear_dependency
|
21
|
+
serialized = parsed.class.encode(parsed)
|
22
|
+
file = pool.add_serialized_file(serialized)
|
23
|
+
warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
|
24
|
+
imports = [
|
25
|
+
]
|
26
|
+
imports.each do |type_name, expected_filename|
|
27
|
+
import_file = pool.lookup(type_name).file_descriptor
|
28
|
+
if import_file.name != expected_filename
|
29
|
+
warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
|
30
|
+
end
|
10
31
|
end
|
32
|
+
warn "Each proto file must use a consistent fully-qualified name."
|
33
|
+
warn "This will become an error in the next major version."
|
11
34
|
end
|
12
35
|
|
13
36
|
module Google
|
@@ -1,3 +1,4 @@
|
|
1
|
+
# frozen_string_literal: true
|
1
2
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
3
|
# source: google/cloud/recommendationengine/v1beta1/user_event.proto
|
3
4
|
|
@@ -8,63 +9,34 @@ require 'google/cloud/recommendationengine/v1beta1/catalog_pb'
|
|
8
9
|
require 'google/cloud/recommendationengine/v1beta1/common_pb'
|
9
10
|
require 'google/protobuf/timestamp_pb'
|
10
11
|
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
optional :uri, :string, 1
|
36
|
-
optional :referrer_uri, :string, 6
|
37
|
-
optional :page_view_id, :string, 2
|
38
|
-
repeated :experiment_ids, :string, 3
|
39
|
-
optional :recommendation_token, :string, 4
|
40
|
-
optional :event_attributes, :message, 5, "google.cloud.recommendationengine.v1beta1.FeatureMap"
|
41
|
-
end
|
42
|
-
add_message "google.cloud.recommendationengine.v1beta1.ProductEventDetail" do
|
43
|
-
optional :search_query, :string, 1
|
44
|
-
repeated :page_categories, :message, 2, "google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy"
|
45
|
-
repeated :product_details, :message, 3, "google.cloud.recommendationengine.v1beta1.ProductDetail"
|
46
|
-
optional :list_id, :string, 4
|
47
|
-
optional :cart_id, :string, 5
|
48
|
-
optional :purchase_transaction, :message, 6, "google.cloud.recommendationengine.v1beta1.PurchaseTransaction"
|
49
|
-
end
|
50
|
-
add_message "google.cloud.recommendationengine.v1beta1.PurchaseTransaction" do
|
51
|
-
optional :id, :string, 1
|
52
|
-
optional :revenue, :float, 2
|
53
|
-
map :taxes, :string, :float, 3
|
54
|
-
map :costs, :string, :float, 4
|
55
|
-
optional :currency_code, :string, 6
|
56
|
-
end
|
57
|
-
add_message "google.cloud.recommendationengine.v1beta1.ProductDetail" do
|
58
|
-
optional :id, :string, 1
|
59
|
-
optional :currency_code, :string, 2
|
60
|
-
optional :original_price, :float, 3
|
61
|
-
optional :display_price, :float, 4
|
62
|
-
optional :stock_state, :enum, 5, "google.cloud.recommendationengine.v1beta1.ProductCatalogItem.StockState"
|
63
|
-
optional :quantity, :int32, 6
|
64
|
-
optional :available_quantity, :int32, 7
|
65
|
-
optional :item_attributes, :message, 8, "google.cloud.recommendationengine.v1beta1.FeatureMap"
|
12
|
+
|
13
|
+
descriptor_data = "\n:google/cloud/recommendationengine/v1beta1/user_event.proto\x12)google.cloud.recommendationengine.v1beta1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x37google/cloud/recommendationengine/v1beta1/catalog.proto\x1a\x36google/cloud/recommendationengine/v1beta1/common.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\x92\x04\n\tUserEvent\x12\x17\n\nevent_type\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12K\n\tuser_info\x18\x02 \x01(\x0b\x32\x33.google.cloud.recommendationengine.v1beta1.UserInfoB\x03\xe0\x41\x02\x12Q\n\x0c\x65vent_detail\x18\x03 \x01(\x0b\x32\x36.google.cloud.recommendationengine.v1beta1.EventDetailB\x03\xe0\x41\x01\x12`\n\x14product_event_detail\x18\x04 \x01(\x0b\x32=.google.cloud.recommendationengine.v1beta1.ProductEventDetailB\x03\xe0\x41\x01\x12\x33\n\nevent_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x01\x12[\n\x0c\x65vent_source\x18\x06 \x01(\x0e\x32@.google.cloud.recommendationengine.v1beta1.UserEvent.EventSourceB\x03\xe0\x41\x01\"X\n\x0b\x45ventSource\x12\x1c\n\x18\x45VENT_SOURCE_UNSPECIFIED\x10\x00\x12\n\n\x06\x41UTOML\x10\x01\x12\r\n\tECOMMERCE\x10\x02\x12\x10\n\x0c\x42\x41TCH_UPLOAD\x10\x03\"\x8d\x01\n\x08UserInfo\x12\x17\n\nvisitor_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x14\n\x07user_id\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12\x17\n\nip_address\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x17\n\nuser_agent\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12 \n\x13\x64irect_user_request\x18\x05 \x01(\x08\x42\x03\xe0\x41\x01\"\xeb\x01\n\x0b\x45ventDetail\x12\x10\n\x03uri\x18\x01 \x01(\tB\x03\xe0\x41\x01\x12\x19\n\x0creferrer_uri\x18\x06 \x01(\tB\x03\xe0\x41\x01\x12\x19\n\x0cpage_view_id\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12\x1b\n\x0e\x65xperiment_ids\x18\x03 \x03(\tB\x03\xe0\x41\x01\x12!\n\x14recommendation_token\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12T\n\x10\x65vent_attributes\x18\x05 \x01(\x0b\x32\x35.google.cloud.recommendationengine.v1beta1.FeatureMapB\x03\xe0\x41\x01\"\xea\x02\n\x12ProductEventDetail\x12\x14\n\x0csearch_query\x18\x01 \x01(\t\x12\x61\n\x0fpage_categories\x18\x02 \x03(\x0b\x32H.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy\x12Q\n\x0fproduct_details\x18\x03 \x03(\x0b\x32\x38.google.cloud.recommendationengine.v1beta1.ProductDetail\x12\x0f\n\x07list_id\x18\x04 \x01(\t\x12\x14\n\x07\x63\x61rt_id\x18\x05 \x01(\tB\x03\xe0\x41\x01\x12\x61\n\x14purchase_transaction\x18\x06 \x01(\x0b\x32>.google.cloud.recommendationengine.v1beta1.PurchaseTransactionB\x03\xe0\x41\x01\"\xf2\x02\n\x13PurchaseTransaction\x12\x0f\n\x02id\x18\x01 \x01(\tB\x03\xe0\x41\x01\x12\x14\n\x07revenue\x18\x02 \x01(\x02\x42\x03\xe0\x41\x02\x12]\n\x05taxes\x18\x03 \x03(\x0b\x32I.google.cloud.recommendationengine.v1beta1.PurchaseTransaction.TaxesEntryB\x03\xe0\x41\x01\x12]\n\x05\x63osts\x18\x04 \x03(\x0b\x32I.google.cloud.recommendationengine.v1beta1.PurchaseTransaction.CostsEntryB\x03\xe0\x41\x01\x12\x1a\n\rcurrency_code\x18\x06 \x01(\tB\x03\xe0\x41\x02\x1a,\n\nTaxesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\x02:\x02\x38\x01\x1a,\n\nCostsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\x02:\x02\x38\x01\"\xe6\x02\n\rProductDetail\x12\x0f\n\x02id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x1a\n\rcurrency_code\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12\x1b\n\x0eoriginal_price\x18\x03 \x01(\x02\x42\x03\xe0\x41\x01\x12\x1a\n\rdisplay_price\x18\x04 \x01(\x02\x42\x03\xe0\x41\x01\x12\x62\n\x0bstock_state\x18\x05 \x01(\x0e\x32H.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.StockStateB\x03\xe0\x41\x01\x12\x15\n\x08quantity\x18\x06 \x01(\x05\x42\x03\xe0\x41\x01\x12\x1f\n\x12\x61vailable_quantity\x18\x07 \x01(\x05\x42\x03\xe0\x41\x01\x12S\n\x0fitem_attributes\x18\x08 \x01(\x0b\x32\x35.google.cloud.recommendationengine.v1beta1.FeatureMapB\x03\xe0\x41\x01\x42\xa3\x02\n-com.google.cloud.recommendationengine.v1beta1P\x01Zacloud.google.com/go/recommendationengine/apiv1beta1/recommendationenginepb;recommendationenginepb\xa2\x02\x05RECAI\xaa\x02)Google.Cloud.RecommendationEngine.V1Beta1\xca\x02)Google\\Cloud\\RecommendationEngine\\V1beta1\xea\x02,Google::Cloud::RecommendationEngine::V1beta1b\x06proto3"
|
14
|
+
|
15
|
+
pool = Google::Protobuf::DescriptorPool.generated_pool
|
16
|
+
|
17
|
+
begin
|
18
|
+
pool.add_serialized_file(descriptor_data)
|
19
|
+
rescue TypeError => e
|
20
|
+
# Compatibility code: will be removed in the next major version.
|
21
|
+
require 'google/protobuf/descriptor_pb'
|
22
|
+
parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
|
23
|
+
parsed.clear_dependency
|
24
|
+
serialized = parsed.class.encode(parsed)
|
25
|
+
file = pool.add_serialized_file(serialized)
|
26
|
+
warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
|
27
|
+
imports = [
|
28
|
+
["google.protobuf.Timestamp", "google/protobuf/timestamp.proto"],
|
29
|
+
["google.cloud.recommendationengine.v1beta1.FeatureMap", "google/cloud/recommendationengine/v1beta1/common.proto"],
|
30
|
+
["google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy", "google/cloud/recommendationengine/v1beta1/catalog.proto"],
|
31
|
+
]
|
32
|
+
imports.each do |type_name, expected_filename|
|
33
|
+
import_file = pool.lookup(type_name).file_descriptor
|
34
|
+
if import_file.name != expected_filename
|
35
|
+
warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
|
66
36
|
end
|
67
37
|
end
|
38
|
+
warn "Each proto file must use a consistent fully-qualified name."
|
39
|
+
warn "This will become an error in the next major version."
|
68
40
|
end
|
69
41
|
|
70
42
|
module Google
|