123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343 |
- syntax = "proto3";
- package google.cloud.retail.v2;
- import "google/api/field_behavior.proto";
- import "google/cloud/retail/v2/common.proto";
- import "google/cloud/retail/v2/product.proto";
- import "google/protobuf/timestamp.proto";
- import "google/protobuf/wrappers.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 = "UserEventProto";
- 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";
- message UserEvent {
-
-
-
-
-
-
-
-
-
-
-
-
- string event_type = 1 [(google.api.field_behavior) = REQUIRED];
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- string visitor_id = 2 [(google.api.field_behavior) = REQUIRED];
-
-
-
-
-
-
-
-
- string session_id = 21;
-
-
-
- google.protobuf.Timestamp event_time = 3;
-
-
-
-
- repeated string experiment_ids = 4;
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- string attribution_token = 5;
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- repeated ProductDetail product_details = 6;
-
-
-
-
- CompletionDetail completion_detail = 22;
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- map<string, CustomAttribute> attributes = 7;
-
-
-
-
-
- string cart_id = 8;
-
-
-
-
- PurchaseTransaction purchase_transaction = 9;
-
-
-
-
-
-
-
-
-
-
-
-
-
- string search_query = 10;
-
-
-
-
-
-
-
-
- string filter = 16;
-
-
-
-
-
-
-
-
-
-
- string order_by = 17;
-
-
-
-
-
-
-
-
-
-
- int32 offset = 18;
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- repeated string page_categories = 11;
-
- UserInfo user_info = 12;
-
-
-
-
-
- string uri = 13;
-
-
-
-
- string referrer_uri = 14;
-
-
-
-
-
-
-
-
-
-
- string page_view_id = 15;
- }
- message ProductDetail {
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Product product = 1 [(google.api.field_behavior) = REQUIRED];
-
-
-
-
-
- google.protobuf.Int32Value quantity = 2;
- }
- message CompletionDetail {
-
-
- string completion_attribution_token = 1;
-
-
- string selected_suggestion = 2;
-
-
-
- int32 selected_position = 3;
- }
- message PurchaseTransaction {
-
- string id = 1;
-
-
-
-
- float revenue = 2 [(google.api.field_behavior) = REQUIRED];
-
- float tax = 3;
-
-
-
-
-
-
-
- float cost = 4;
-
- string currency_code = 5 [(google.api.field_behavior) = REQUIRED];
- }
|