google-cloud-recommendation_engine-v1beta1 0.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.
Files changed (60) hide show
  1. checksums.yaml +7 -0
  2. data/.yardopts +12 -0
  3. data/AUTHENTICATION.md +169 -0
  4. data/LICENSE.md +203 -0
  5. data/README.md +75 -0
  6. data/lib/google-cloud-recommendation_engine-v1beta1.rb +21 -0
  7. data/lib/google/cloud/recommendation_engine/v1beta1.rb +38 -0
  8. data/lib/google/cloud/recommendation_engine/v1beta1/catalog_service.rb +50 -0
  9. data/lib/google/cloud/recommendation_engine/v1beta1/catalog_service/client.rb +831 -0
  10. data/lib/google/cloud/recommendation_engine/v1beta1/catalog_service/credentials.rb +51 -0
  11. data/lib/google/cloud/recommendation_engine/v1beta1/catalog_service/operations.rb +570 -0
  12. data/lib/google/cloud/recommendation_engine/v1beta1/catalog_service/paths.rb +73 -0
  13. data/lib/google/cloud/recommendation_engine/v1beta1/prediction_api_key_registry.rb +53 -0
  14. data/lib/google/cloud/recommendation_engine/v1beta1/prediction_api_key_registry/client.rb +554 -0
  15. data/lib/google/cloud/recommendation_engine/v1beta1/prediction_api_key_registry/credentials.rb +51 -0
  16. data/lib/google/cloud/recommendation_engine/v1beta1/prediction_api_key_registry/paths.rb +77 -0
  17. data/lib/google/cloud/recommendation_engine/v1beta1/prediction_service.rb +49 -0
  18. data/lib/google/cloud/recommendation_engine/v1beta1/prediction_service/client.rb +468 -0
  19. data/lib/google/cloud/recommendation_engine/v1beta1/prediction_service/credentials.rb +51 -0
  20. data/lib/google/cloud/recommendation_engine/v1beta1/prediction_service/paths.rb +56 -0
  21. data/lib/google/cloud/recommendation_engine/v1beta1/user_event_service.rb +50 -0
  22. data/lib/google/cloud/recommendation_engine/v1beta1/user_event_service/client.rb +820 -0
  23. data/lib/google/cloud/recommendation_engine/v1beta1/user_event_service/credentials.rb +51 -0
  24. data/lib/google/cloud/recommendation_engine/v1beta1/user_event_service/operations.rb +570 -0
  25. data/lib/google/cloud/recommendation_engine/v1beta1/user_event_service/paths.rb +54 -0
  26. data/lib/google/cloud/recommendation_engine/v1beta1/version.rb +28 -0
  27. data/lib/google/cloud/recommendationengine/v1beta1/catalog_pb.rb +77 -0
  28. data/lib/google/cloud/recommendationengine/v1beta1/catalog_service_pb.rb +59 -0
  29. data/lib/google/cloud/recommendationengine/v1beta1/catalog_service_services_pb.rb +61 -0
  30. data/lib/google/cloud/recommendationengine/v1beta1/common_pb.rb +32 -0
  31. data/lib/google/cloud/recommendationengine/v1beta1/import_pb.rb +91 -0
  32. data/lib/google/cloud/recommendationengine/v1beta1/prediction_apikey_registry_service_pb.rb +48 -0
  33. data/lib/google/cloud/recommendationengine/v1beta1/prediction_apikey_registry_service_services_pb.rb +53 -0
  34. data/lib/google/cloud/recommendationengine/v1beta1/prediction_service_pb.rb +49 -0
  35. data/lib/google/cloud/recommendationengine/v1beta1/prediction_service_services_pb.rb +48 -0
  36. data/lib/google/cloud/recommendationengine/v1beta1/recommendationengine_resources_pb.rb +19 -0
  37. data/lib/google/cloud/recommendationengine/v1beta1/user_event_pb.rb +84 -0
  38. data/lib/google/cloud/recommendationengine/v1beta1/user_event_service_pb.rb +68 -0
  39. data/lib/google/cloud/recommendationengine/v1beta1/user_event_service_services_pb.rb +66 -0
  40. data/proto_docs/README.md +4 -0
  41. data/proto_docs/google/api/field_behavior.rb +59 -0
  42. data/proto_docs/google/api/httpbody.rb +75 -0
  43. data/proto_docs/google/api/resource.rb +283 -0
  44. data/proto_docs/google/cloud/recommendationengine/v1beta1/catalog.rb +214 -0
  45. data/proto_docs/google/cloud/recommendationengine/v1beta1/catalog_service.rb +110 -0
  46. data/proto_docs/google/cloud/recommendationengine/v1beta1/common.rb +89 -0
  47. data/proto_docs/google/cloud/recommendationengine/v1beta1/import.rb +206 -0
  48. data/proto_docs/google/cloud/recommendationengine/v1beta1/prediction_apikey_registry_service.rb +88 -0
  49. data/proto_docs/google/cloud/recommendationengine/v1beta1/prediction_service.rb +212 -0
  50. data/proto_docs/google/cloud/recommendationengine/v1beta1/user_event.rb +367 -0
  51. data/proto_docs/google/cloud/recommendationengine/v1beta1/user_event_service.rb +191 -0
  52. data/proto_docs/google/longrunning/operations.rb +150 -0
  53. data/proto_docs/google/protobuf/any.rb +138 -0
  54. data/proto_docs/google/protobuf/empty.rb +36 -0
  55. data/proto_docs/google/protobuf/field_mask.rb +229 -0
  56. data/proto_docs/google/protobuf/struct.rb +96 -0
  57. data/proto_docs/google/protobuf/timestamp.rb +120 -0
  58. data/proto_docs/google/rpc/status.rb +46 -0
  59. data/proto_docs/google/type/date.rb +50 -0
  60. metadata +242 -0
@@ -0,0 +1,53 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # Source: google/cloud/recommendationengine/v1beta1/prediction_apikey_registry_service.proto for package 'Google.Cloud.RecommendationEngine.V1beta1'
3
+ # Original file comments:
4
+ # Copyright 2020 Google LLC
5
+ #
6
+ # Licensed under the Apache License, Version 2.0 (the "License");
7
+ # you may not use this file except in compliance with the License.
8
+ # You may obtain a copy of the License at
9
+ #
10
+ # http://www.apache.org/licenses/LICENSE-2.0
11
+ #
12
+ # Unless required by applicable law or agreed to in writing, software
13
+ # distributed under the License is distributed on an "AS IS" BASIS,
14
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
+ # See the License for the specific language governing permissions and
16
+ # limitations under the License.
17
+ #
18
+
19
+ require 'grpc'
20
+ require 'google/cloud/recommendationengine/v1beta1/prediction_apikey_registry_service_pb'
21
+
22
+ module Google
23
+ module Cloud
24
+ module RecommendationEngine
25
+ module V1beta1
26
+ module PredictionApiKeyRegistry
27
+ # Service for registering API keys for use with the `predict` method. If you
28
+ # use an API key to request predictions, you must first register the API key.
29
+ # Otherwise, your prediction request is rejected. If you use OAuth to
30
+ # authenticate your `predict` method call, you do not need to register an API
31
+ # key. You can register up to 20 API keys per project.
32
+ class Service
33
+
34
+ include GRPC::GenericService
35
+
36
+ self.marshal_class_method = :encode
37
+ self.unmarshal_class_method = :decode
38
+ self.service_name = 'google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistry'
39
+
40
+ # Register an API key for use with predict method.
41
+ rpc :CreatePredictionApiKeyRegistration, ::Google::Cloud::RecommendationEngine::V1beta1::CreatePredictionApiKeyRegistrationRequest, ::Google::Cloud::RecommendationEngine::V1beta1::PredictionApiKeyRegistration
42
+ # List the registered apiKeys for use with predict method.
43
+ rpc :ListPredictionApiKeyRegistrations, ::Google::Cloud::RecommendationEngine::V1beta1::ListPredictionApiKeyRegistrationsRequest, ::Google::Cloud::RecommendationEngine::V1beta1::ListPredictionApiKeyRegistrationsResponse
44
+ # Unregister an apiKey from using for predict method.
45
+ rpc :DeletePredictionApiKeyRegistration, ::Google::Cloud::RecommendationEngine::V1beta1::DeletePredictionApiKeyRegistrationRequest, ::Google::Protobuf::Empty
46
+ end
47
+
48
+ Stub = Service.rpc_stub_class
49
+ end
50
+ end
51
+ end
52
+ end
53
+ end
@@ -0,0 +1,49 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # source: google/cloud/recommendationengine/v1beta1/prediction_service.proto
3
+
4
+ require 'google/protobuf'
5
+
6
+ require 'google/api/annotations_pb'
7
+ require 'google/api/field_behavior_pb'
8
+ require 'google/api/resource_pb'
9
+ require 'google/cloud/recommendationengine/v1beta1/user_event_pb'
10
+ require 'google/protobuf/struct_pb'
11
+ require 'google/api/client_pb'
12
+ Google::Protobuf::DescriptorPool.generated_pool.build do
13
+ add_file("google/cloud/recommendationengine/v1beta1/prediction_service.proto", :syntax => :proto3) do
14
+ add_message "google.cloud.recommendationengine.v1beta1.PredictRequest" do
15
+ optional :name, :string, 1
16
+ optional :user_event, :message, 2, "google.cloud.recommendationengine.v1beta1.UserEvent"
17
+ optional :page_size, :int32, 7
18
+ optional :page_token, :string, 8
19
+ optional :filter, :string, 3
20
+ optional :dry_run, :bool, 4
21
+ map :params, :string, :message, 6, "google.protobuf.Value"
22
+ map :labels, :string, :string, 9
23
+ end
24
+ add_message "google.cloud.recommendationengine.v1beta1.PredictResponse" do
25
+ repeated :results, :message, 1, "google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult"
26
+ optional :recommendation_token, :string, 2
27
+ repeated :items_missing_in_catalog, :string, 3
28
+ optional :dry_run, :bool, 4
29
+ map :metadata, :string, :message, 5, "google.protobuf.Value"
30
+ optional :next_page_token, :string, 6
31
+ end
32
+ add_message "google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult" do
33
+ optional :id, :string, 1
34
+ map :item_metadata, :string, :message, 2, "google.protobuf.Value"
35
+ end
36
+ end
37
+ end
38
+
39
+ module Google
40
+ module Cloud
41
+ module RecommendationEngine
42
+ module V1beta1
43
+ PredictRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.recommendationengine.v1beta1.PredictRequest").msgclass
44
+ PredictResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.recommendationengine.v1beta1.PredictResponse").msgclass
45
+ PredictResponse::PredictionResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult").msgclass
46
+ end
47
+ end
48
+ end
49
+ end
@@ -0,0 +1,48 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # Source: google/cloud/recommendationengine/v1beta1/prediction_service.proto for package 'Google.Cloud.RecommendationEngine.V1beta1'
3
+ # Original file comments:
4
+ # Copyright 2020 Google LLC
5
+ #
6
+ # Licensed under the Apache License, Version 2.0 (the "License");
7
+ # you may not use this file except in compliance with the License.
8
+ # You may obtain a copy of the License at
9
+ #
10
+ # http://www.apache.org/licenses/LICENSE-2.0
11
+ #
12
+ # Unless required by applicable law or agreed to in writing, software
13
+ # distributed under the License is distributed on an "AS IS" BASIS,
14
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
+ # See the License for the specific language governing permissions and
16
+ # limitations under the License.
17
+ #
18
+
19
+ require 'grpc'
20
+ require 'google/cloud/recommendationengine/v1beta1/prediction_service_pb'
21
+
22
+ module Google
23
+ module Cloud
24
+ module RecommendationEngine
25
+ module V1beta1
26
+ module PredictionService
27
+ # Service for making recommendation prediction.
28
+ class Service
29
+
30
+ include GRPC::GenericService
31
+
32
+ self.marshal_class_method = :encode
33
+ self.unmarshal_class_method = :decode
34
+ self.service_name = 'google.cloud.recommendationengine.v1beta1.PredictionService'
35
+
36
+ # Makes a recommendation prediction. If using API Key based authentication,
37
+ # the API Key must be registered using the
38
+ # [PredictionApiKeyRegistry][google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistry]
39
+ # service. [Learn more](/recommendations-ai/docs/setting-up#register-key).
40
+ rpc :Predict, ::Google::Cloud::RecommendationEngine::V1beta1::PredictRequest, ::Google::Cloud::RecommendationEngine::V1beta1::PredictResponse
41
+ end
42
+
43
+ Stub = Service.rpc_stub_class
44
+ end
45
+ end
46
+ end
47
+ end
48
+ end
@@ -0,0 +1,19 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # source: google/cloud/recommendationengine/v1beta1/recommendationengine_resources.proto
3
+
4
+ require 'google/protobuf'
5
+
6
+ require 'google/api/resource_pb'
7
+ Google::Protobuf::DescriptorPool.generated_pool.build do
8
+ add_file("google/cloud/recommendationengine/v1beta1/recommendationengine_resources.proto", :syntax => :proto3) do
9
+ end
10
+ end
11
+
12
+ module Google
13
+ module Cloud
14
+ module RecommendationEngine
15
+ module V1beta1
16
+ end
17
+ end
18
+ end
19
+ end
@@ -0,0 +1,84 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # source: google/cloud/recommendationengine/v1beta1/user_event.proto
3
+
4
+ require 'google/protobuf'
5
+
6
+ require 'google/api/field_behavior_pb'
7
+ require 'google/cloud/recommendationengine/v1beta1/catalog_pb'
8
+ require 'google/cloud/recommendationengine/v1beta1/common_pb'
9
+ require 'google/protobuf/timestamp_pb'
10
+ require 'google/api/annotations_pb'
11
+ Google::Protobuf::DescriptorPool.generated_pool.build do
12
+ add_file("google/cloud/recommendationengine/v1beta1/user_event.proto", :syntax => :proto3) do
13
+ add_message "google.cloud.recommendationengine.v1beta1.UserEvent" do
14
+ optional :event_type, :string, 1
15
+ optional :user_info, :message, 2, "google.cloud.recommendationengine.v1beta1.UserInfo"
16
+ optional :event_detail, :message, 3, "google.cloud.recommendationengine.v1beta1.EventDetail"
17
+ optional :product_event_detail, :message, 4, "google.cloud.recommendationengine.v1beta1.ProductEventDetail"
18
+ optional :event_time, :message, 5, "google.protobuf.Timestamp"
19
+ optional :event_source, :enum, 6, "google.cloud.recommendationengine.v1beta1.UserEvent.EventSource"
20
+ end
21
+ add_enum "google.cloud.recommendationengine.v1beta1.UserEvent.EventSource" do
22
+ value :EVENT_SOURCE_UNSPECIFIED, 0
23
+ value :AUTOML, 1
24
+ value :ECOMMERCE, 2
25
+ value :BATCH_UPLOAD, 3
26
+ end
27
+ add_message "google.cloud.recommendationengine.v1beta1.UserInfo" do
28
+ optional :visitor_id, :string, 1
29
+ optional :user_id, :string, 2
30
+ optional :ip_address, :string, 3
31
+ optional :user_agent, :string, 4
32
+ optional :direct_user_request, :bool, 5
33
+ end
34
+ add_message "google.cloud.recommendationengine.v1beta1.EventDetail" do
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"
66
+ end
67
+ end
68
+ end
69
+
70
+ module Google
71
+ module Cloud
72
+ module RecommendationEngine
73
+ module V1beta1
74
+ UserEvent = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.recommendationengine.v1beta1.UserEvent").msgclass
75
+ UserEvent::EventSource = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.recommendationengine.v1beta1.UserEvent.EventSource").enummodule
76
+ UserInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.recommendationengine.v1beta1.UserInfo").msgclass
77
+ EventDetail = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.recommendationengine.v1beta1.EventDetail").msgclass
78
+ ProductEventDetail = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.recommendationengine.v1beta1.ProductEventDetail").msgclass
79
+ PurchaseTransaction = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.recommendationengine.v1beta1.PurchaseTransaction").msgclass
80
+ ProductDetail = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.recommendationengine.v1beta1.ProductDetail").msgclass
81
+ end
82
+ end
83
+ end
84
+ end
@@ -0,0 +1,68 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # source: google/cloud/recommendationengine/v1beta1/user_event_service.proto
3
+
4
+ require 'google/protobuf'
5
+
6
+ require 'google/api/annotations_pb'
7
+ require 'google/api/field_behavior_pb'
8
+ require 'google/api/httpbody_pb'
9
+ require 'google/api/resource_pb'
10
+ require 'google/cloud/recommendationengine/v1beta1/import_pb'
11
+ require 'google/cloud/recommendationengine/v1beta1/user_event_pb'
12
+ require 'google/longrunning/operations_pb'
13
+ require 'google/protobuf/timestamp_pb'
14
+ require 'google/type/date_pb'
15
+ require 'google/api/client_pb'
16
+ Google::Protobuf::DescriptorPool.generated_pool.build do
17
+ add_file("google/cloud/recommendationengine/v1beta1/user_event_service.proto", :syntax => :proto3) do
18
+ add_message "google.cloud.recommendationengine.v1beta1.PurgeUserEventsRequest" do
19
+ optional :parent, :string, 1
20
+ optional :filter, :string, 2
21
+ optional :force, :bool, 3
22
+ end
23
+ add_message "google.cloud.recommendationengine.v1beta1.PurgeUserEventsMetadata" do
24
+ optional :operation_name, :string, 1
25
+ optional :create_time, :message, 2, "google.protobuf.Timestamp"
26
+ end
27
+ add_message "google.cloud.recommendationengine.v1beta1.PurgeUserEventsResponse" do
28
+ optional :purged_events_count, :int64, 1
29
+ repeated :user_events_sample, :message, 2, "google.cloud.recommendationengine.v1beta1.UserEvent"
30
+ end
31
+ add_message "google.cloud.recommendationengine.v1beta1.WriteUserEventRequest" do
32
+ optional :parent, :string, 1
33
+ optional :user_event, :message, 2, "google.cloud.recommendationengine.v1beta1.UserEvent"
34
+ end
35
+ add_message "google.cloud.recommendationengine.v1beta1.CollectUserEventRequest" do
36
+ optional :parent, :string, 1
37
+ optional :user_event, :string, 2
38
+ optional :uri, :string, 3
39
+ optional :ets, :int64, 4
40
+ end
41
+ add_message "google.cloud.recommendationengine.v1beta1.ListUserEventsRequest" do
42
+ optional :parent, :string, 1
43
+ optional :page_size, :int32, 2
44
+ optional :page_token, :string, 3
45
+ optional :filter, :string, 4
46
+ end
47
+ add_message "google.cloud.recommendationengine.v1beta1.ListUserEventsResponse" do
48
+ repeated :user_events, :message, 1, "google.cloud.recommendationengine.v1beta1.UserEvent"
49
+ optional :next_page_token, :string, 2
50
+ end
51
+ end
52
+ end
53
+
54
+ module Google
55
+ module Cloud
56
+ module RecommendationEngine
57
+ module V1beta1
58
+ PurgeUserEventsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.recommendationengine.v1beta1.PurgeUserEventsRequest").msgclass
59
+ PurgeUserEventsMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.recommendationengine.v1beta1.PurgeUserEventsMetadata").msgclass
60
+ PurgeUserEventsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.recommendationengine.v1beta1.PurgeUserEventsResponse").msgclass
61
+ WriteUserEventRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.recommendationengine.v1beta1.WriteUserEventRequest").msgclass
62
+ CollectUserEventRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.recommendationengine.v1beta1.CollectUserEventRequest").msgclass
63
+ ListUserEventsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.recommendationengine.v1beta1.ListUserEventsRequest").msgclass
64
+ ListUserEventsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.recommendationengine.v1beta1.ListUserEventsResponse").msgclass
65
+ end
66
+ end
67
+ end
68
+ end
@@ -0,0 +1,66 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # Source: google/cloud/recommendationengine/v1beta1/user_event_service.proto for package 'Google.Cloud.RecommendationEngine.V1beta1'
3
+ # Original file comments:
4
+ # Copyright 2020 Google LLC
5
+ #
6
+ # Licensed under the Apache License, Version 2.0 (the "License");
7
+ # you may not use this file except in compliance with the License.
8
+ # You may obtain a copy of the License at
9
+ #
10
+ # http://www.apache.org/licenses/LICENSE-2.0
11
+ #
12
+ # Unless required by applicable law or agreed to in writing, software
13
+ # distributed under the License is distributed on an "AS IS" BASIS,
14
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
+ # See the License for the specific language governing permissions and
16
+ # limitations under the License.
17
+ #
18
+
19
+ require 'grpc'
20
+ require 'google/cloud/recommendationengine/v1beta1/user_event_service_pb'
21
+
22
+ module Google
23
+ module Cloud
24
+ module RecommendationEngine
25
+ module V1beta1
26
+ module UserEventService
27
+ # Service for ingesting end user actions on the customer website.
28
+ class Service
29
+
30
+ include GRPC::GenericService
31
+
32
+ self.marshal_class_method = :encode
33
+ self.unmarshal_class_method = :decode
34
+ self.service_name = 'google.cloud.recommendationengine.v1beta1.UserEventService'
35
+
36
+ # Writes a single user event.
37
+ rpc :WriteUserEvent, ::Google::Cloud::RecommendationEngine::V1beta1::WriteUserEventRequest, ::Google::Cloud::RecommendationEngine::V1beta1::UserEvent
38
+ # Writes a single user event from the browser. This uses a GET request to
39
+ # due to browser restriction of POST-ing to a 3rd party domain.
40
+ #
41
+ # This method is used only by the Recommendations AI JavaScript pixel.
42
+ # Users should not call this method directly.
43
+ rpc :CollectUserEvent, ::Google::Cloud::RecommendationEngine::V1beta1::CollectUserEventRequest, ::Google::Api::HttpBody
44
+ # Gets a list of user events within a time range, with potential filtering.
45
+ rpc :ListUserEvents, ::Google::Cloud::RecommendationEngine::V1beta1::ListUserEventsRequest, ::Google::Cloud::RecommendationEngine::V1beta1::ListUserEventsResponse
46
+ # Deletes permanently all user events specified by the filter provided.
47
+ # Depending on the number of events specified by the filter, this operation
48
+ # could take hours or days to complete. To test a filter, use the list
49
+ # command first.
50
+ rpc :PurgeUserEvents, ::Google::Cloud::RecommendationEngine::V1beta1::PurgeUserEventsRequest, ::Google::Longrunning::Operation
51
+ # Bulk import of User events. Request processing might be
52
+ # synchronous. Events that already exist are skipped.
53
+ # Use this method for backfilling historical user events.
54
+ #
55
+ # Operation.response is of type ImportResponse. Note that it is
56
+ # possible for a subset of the items to be successfully inserted.
57
+ # Operation.metadata is of type ImportMetadata.
58
+ rpc :ImportUserEvents, ::Google::Cloud::RecommendationEngine::V1beta1::ImportUserEventsRequest, ::Google::Longrunning::Operation
59
+ end
60
+
61
+ Stub = Service.rpc_stub_class
62
+ end
63
+ end
64
+ end
65
+ end
66
+ end
@@ -0,0 +1,4 @@
1
+ # Recommendations AI V1beta1 Protocol Buffer Documentation
2
+
3
+ These files are for the YARD documentation of the generated protobuf files.
4
+ They are not intended to be required or loaded at runtime.
@@ -0,0 +1,59 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2020 Google LLC
4
+ #
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # https://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+
17
+ # Auto-generated by gapic-generator-ruby. DO NOT EDIT!
18
+
19
+
20
+ module Google
21
+ module Api
22
+ # An indicator of the behavior of a given field (for example, that a field
23
+ # is required in requests, or given as output but ignored as input).
24
+ # This **does not** change the behavior in protocol buffers itself; it only
25
+ # denotes the behavior and may affect how API tooling handles the field.
26
+ #
27
+ # Note: This enum **may** receive new values in the future.
28
+ module FieldBehavior
29
+ # Conventional default for enums. Do not use this.
30
+ FIELD_BEHAVIOR_UNSPECIFIED = 0
31
+
32
+ # Specifically denotes a field as optional.
33
+ # While all fields in protocol buffers are optional, this may be specified
34
+ # for emphasis if appropriate.
35
+ OPTIONAL = 1
36
+
37
+ # Denotes a field as required.
38
+ # This indicates that the field **must** be provided as part of the request,
39
+ # and failure to do so will cause an error (usually `INVALID_ARGUMENT`).
40
+ REQUIRED = 2
41
+
42
+ # Denotes a field as output only.
43
+ # This indicates that the field is provided in responses, but including the
44
+ # field in a request does nothing (the server *must* ignore it and
45
+ # *must not* throw an error as a result of the field's presence).
46
+ OUTPUT_ONLY = 3
47
+
48
+ # Denotes a field as input only.
49
+ # This indicates that the field is provided in requests, and the
50
+ # corresponding field is not included in output.
51
+ INPUT_ONLY = 4
52
+
53
+ # Denotes a field as immutable.
54
+ # This indicates that the field may be set once in a request to create a
55
+ # resource, but may not be changed thereafter.
56
+ IMMUTABLE = 5
57
+ end
58
+ end
59
+ end