123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189 |
- syntax = "proto3";
- package google.cloud.retail.v2;
- import "google/api/annotations.proto";
- import "google/api/client.proto";
- import "google/api/field_behavior.proto";
- import "google/api/httpbody.proto";
- import "google/cloud/retail/v2/import_config.proto";
- import "google/cloud/retail/v2/purge_config.proto";
- import "google/cloud/retail/v2/user_event.proto";
- import "google/longrunning/operations.proto";
- option csharp_namespace = "Google.Cloud.Retail.V2";
- option go_package = "google.golang.org/genproto/googleapis/cloud/retail/v2;retail";
- option java_multiple_files = true;
- option java_outer_classname = "UserEventServiceProto";
- option java_package = "com.google.cloud.retail.v2";
- option objc_class_prefix = "RETAIL";
- option php_namespace = "Google\\Cloud\\Retail\\V2";
- option ruby_package = "Google::Cloud::Retail::V2";
- service UserEventService {
- option (google.api.default_host) = "retail.googleapis.com";
- option (google.api.oauth_scopes) =
- "https://www.googleapis.com/auth/cloud-platform";
-
- rpc WriteUserEvent(WriteUserEventRequest) returns (UserEvent) {
- option (google.api.http) = {
- post: "/v2/{parent=projects/*/locations/*/catalogs/*}/userEvents:write"
- body: "user_event"
- };
- }
-
-
-
-
-
- rpc CollectUserEvent(CollectUserEventRequest) returns (google.api.HttpBody) {
- option (google.api.http) = {
- get: "/v2/{parent=projects/*/locations/*/catalogs/*}/userEvents:collect"
- };
- }
-
-
-
-
- rpc PurgeUserEvents(PurgeUserEventsRequest)
- returns (google.longrunning.Operation) {
- option (google.api.http) = {
- post: "/v2/{parent=projects/*/locations/*/catalogs/*}/userEvents:purge"
- body: "*"
- };
- option (google.longrunning.operation_info) = {
- response_type: "google.cloud.retail.v2.PurgeUserEventsResponse"
- metadata_type: "google.cloud.retail.v2.PurgeMetadata"
- };
- }
-
-
-
-
-
-
-
- rpc ImportUserEvents(ImportUserEventsRequest)
- returns (google.longrunning.Operation) {
- option (google.api.http) = {
- post: "/v2/{parent=projects/*/locations/*/catalogs/*}/userEvents:import"
- body: "*"
- };
- option (google.longrunning.operation_info) = {
- response_type: "google.cloud.retail.v2.ImportUserEventsResponse"
- metadata_type: "google.cloud.retail.v2.ImportMetadata"
- };
- }
-
-
-
-
-
-
-
-
- rpc RejoinUserEvents(RejoinUserEventsRequest)
- returns (google.longrunning.Operation) {
- option (google.api.http) = {
- post: "/v2/{parent=projects/*/locations/*/catalogs/*}/userEvents:rejoin"
- body: "*"
- };
- option (google.longrunning.operation_info) = {
- response_type: "RejoinUserEventsResponse"
- metadata_type: "RejoinUserEventsMetadata"
- };
- }
- }
- message WriteUserEventRequest {
-
-
- string parent = 1 [(google.api.field_behavior) = REQUIRED];
-
- UserEvent user_event = 2 [(google.api.field_behavior) = REQUIRED];
- }
- message CollectUserEventRequest {
-
-
- string parent = 1 [(google.api.field_behavior) = REQUIRED];
-
-
- string user_event = 2 [(google.api.field_behavior) = REQUIRED];
-
-
-
-
- string uri = 3;
-
-
-
- int64 ets = 4;
- }
- message RejoinUserEventsRequest {
-
-
-
-
-
-
-
- enum UserEventRejoinScope {
-
-
- USER_EVENT_REJOIN_SCOPE_UNSPECIFIED = 0;
-
- JOINED_EVENTS = 1;
-
- UNJOINED_EVENTS = 2;
- }
-
-
- string parent = 1 [(google.api.field_behavior) = REQUIRED];
-
-
-
-
- UserEventRejoinScope user_event_rejoin_scope = 2;
- }
- message RejoinUserEventsResponse {
-
- int64 rejoined_user_events_count = 1;
- }
- message RejoinUserEventsMetadata {}
|