| 1 |
// Copyright 2025 Google LLC |
| 2 |
// |
| 3 |
// Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 |
// you may not use this file except in compliance with the License. |
| 5 |
// You may obtain a copy of the License at |
| 6 |
// |
| 7 |
// http://www.apache.org/licenses/LICENSE-2.0 |
| 8 |
// |
| 9 |
// Unless required by applicable law or agreed to in writing, software |
| 10 |
// distributed under the License is distributed on an "AS IS" BASIS, |
| 11 |
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 12 |
// See the License for the specific language governing permissions and |
| 13 |
// limitations under the License. |
| 14 |
|
| 15 |
// Code generated by protoc-gen-go. DO NOT EDIT. |
| 16 |
// versions: |
| 17 |
// protoc-gen-go v1.35.2 |
| 18 |
// protoc v4.25.7 |
| 19 |
// source: google/cloud/retail/v2beta/user_event.proto |
| 20 |
|
| 21 |
package retailpb |
| 22 |
|
| 23 |
import ( |
| 24 |
_ "google.golang.org/genproto/googleapis/api/annotations" |
| 25 |
protoreflect "google.golang.org/protobuf/reflect/protoreflect" |
| 26 |
protoimpl "google.golang.org/protobuf/runtime/protoimpl" |
| 27 |
timestamppb "google.golang.org/protobuf/types/known/timestamppb" |
| 28 |
wrapperspb "google.golang.org/protobuf/types/known/wrapperspb" |
| 29 |
reflect "reflect" |
| 30 |
sync "sync" |
| 31 |
) |
| 32 |
|
| 33 |
const ( |
| 34 |
// Verify that this generated code is sufficiently up-to-date. |
| 35 |
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) |
| 36 |
// Verify that runtime/protoimpl is sufficiently up-to-date. |
| 37 |
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) |
| 38 |
) |
| 39 |
|
| 40 |
// UserEvent captures all metadata information Retail API needs to know about |
| 41 |
// how end users interact with customers' website. |
| 42 |
type UserEvent struct { |
| 43 |
state protoimpl.MessageState |
| 44 |
sizeCache protoimpl.SizeCache |
| 45 |
unknownFields protoimpl.UnknownFields |
| 46 |
|
| 47 |
// Required. User event type. Allowed values are: |
| 48 |
// |
| 49 |
// - `add-to-cart`: Products being added to cart. |
| 50 |
// - `remove-from-cart`: Products being removed from cart. |
| 51 |
// - `category-page-view`: Special pages such as sale or promotion pages |
| 52 |
// viewed. |
| 53 |
// - `detail-page-view`: Products detail page viewed. |
| 54 |
// - `home-page-view`: Homepage viewed. |
| 55 |
// - `purchase-complete`: User finishing a purchase. |
| 56 |
// - `search`: Product search. |
| 57 |
// - `shopping-cart-page-view`: User viewing a shopping cart. |
| 58 |
EventType string `protobuf:"bytes,1,opt,name=event_type,json=eventType,proto3" json:"event_type,omitempty"` |
| 59 |
// Required. A unique identifier for tracking visitors. |
| 60 |
// |
| 61 |
// For example, this could be implemented with an HTTP cookie, which should be |
| 62 |
// able to uniquely identify a visitor on a single device. This unique |
| 63 |
// identifier should not change if the visitor log in/out of the website. |
| 64 |
// |
| 65 |
// Don't set the field to the same fixed ID for different users. This mixes |
| 66 |
// the event history of those users together, which results in degraded model |
| 67 |
// quality. |
| 68 |
// |
| 69 |
// The field must be a UTF-8 encoded string with a length limit of 128 |
| 70 |
// characters. Otherwise, an INVALID_ARGUMENT error is returned. |
| 71 |
// |
| 72 |
// The field should not contain PII or user-data. We recommend to use Google |
| 73 |
// Analytics [Client |
| 74 |
// ID](https://developers.google.com/analytics/devguides/collection/analyticsjs/field-reference#clientId) |
| 75 |
// for this field. |
| 76 |
VisitorId string `protobuf:"bytes,2,opt,name=visitor_id,json=visitorId,proto3" json:"visitor_id,omitempty"` |
| 77 |
// A unique identifier for tracking a visitor session with a length limit of |
| 78 |
// 128 bytes. A session is an aggregation of an end user behavior in a time |
| 79 |
// span. |
| 80 |
// |
| 81 |
// A general guideline to populate the sesion_id: |
| 82 |
// 1. If user has no activity for 30 min, a new session_id should be assigned. |
| 83 |
// 2. The session_id should be unique across users, suggest use uuid or add |
| 84 |
// visitor_id as prefix. |
| 85 |
SessionId string `protobuf:"bytes,21,opt,name=session_id,json=sessionId,proto3" json:"session_id,omitempty"` |
| 86 |
// Only required for |
| 87 |
// [UserEventService.ImportUserEvents][google.cloud.retail.v2beta.UserEventService.ImportUserEvents] |
| 88 |
// method. Timestamp of when the user event happened. |
| 89 |
EventTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=event_time,json=eventTime,proto3" json:"event_time,omitempty"` |
| 90 |
// A list of identifiers for the independent experiment groups this user event |
| 91 |
// belongs to. This is used to distinguish between user events associated with |
| 92 |
// different experiment setups (e.g. using Retail API, using different |
| 93 |
// recommendation models). |
| 94 |
ExperimentIds []string `protobuf:"bytes,4,rep,name=experiment_ids,json=experimentIds,proto3" json:"experiment_ids,omitempty"` |
| 95 |
// Highly recommended for user events that are the result of |
| 96 |
// [PredictionService.Predict][google.cloud.retail.v2beta.PredictionService.Predict]. |
| 97 |
// This field enables accurate attribution of recommendation model |
| 98 |
// performance. |
| 99 |
// |
| 100 |
// The value must be a valid |
| 101 |
// [PredictResponse.attribution_token][google.cloud.retail.v2beta.PredictResponse.attribution_token] |
| 102 |
// for user events that are the result of |
| 103 |
// [PredictionService.Predict][google.cloud.retail.v2beta.PredictionService.Predict]. |
| 104 |
// The value must be a valid |
| 105 |
// [SearchResponse.attribution_token][google.cloud.retail.v2beta.SearchResponse.attribution_token] |
| 106 |
// for user events that are the result of |
| 107 |
// [SearchService.Search][google.cloud.retail.v2beta.SearchService.Search]. |
| 108 |
// |
| 109 |
// This token enables us to accurately attribute page view or purchase back to |
| 110 |
// the event and the particular predict response containing this |
| 111 |
// clicked/purchased product. If user clicks on product K in the |
| 112 |
// recommendation results, pass |
| 113 |
// [PredictResponse.attribution_token][google.cloud.retail.v2beta.PredictResponse.attribution_token] |
| 114 |
// as a URL parameter to product K's page. When recording events on product |
| 115 |
// K's page, log the |
| 116 |
// [PredictResponse.attribution_token][google.cloud.retail.v2beta.PredictResponse.attribution_token] |
| 117 |
// to this field. |
| 118 |
AttributionToken string `protobuf:"bytes,5,opt,name=attribution_token,json=attributionToken,proto3" json:"attribution_token,omitempty"` |
| 119 |
// The main product details related to the event. |
| 120 |
// |
| 121 |
// This field is optional except for the following event types: |
| 122 |
// |
| 123 |
// * `add-to-cart` |
| 124 |
// * `detail-page-view` |
| 125 |
// * `purchase-complete` |
| 126 |
// |
| 127 |
// In a `search` event, this field represents the products returned to the end |
| 128 |
// user on the current page (the end user may have not finished browsing the |
| 129 |
// whole page yet). When a new page is returned to the end user, after |
| 130 |
// pagination/filtering/ordering even for the same query, a new `search` event |
| 131 |
// with different |
| 132 |
// [product_details][google.cloud.retail.v2beta.UserEvent.product_details] is |
| 133 |
// desired. The end user may have not finished browsing the whole page yet. |
| 134 |
ProductDetails []*ProductDetail `protobuf:"bytes,6,rep,name=product_details,json=productDetails,proto3" json:"product_details,omitempty"` |
| 135 |
// The main auto-completion details related to the event. |
| 136 |
// |
| 137 |
// This field should be set for `search` event when autocomplete function is |
| 138 |
// enabled and the user clicks a suggestion for search. |
| 139 |
CompletionDetail *CompletionDetail `protobuf:"bytes,22,opt,name=completion_detail,json=completionDetail,proto3" json:"completion_detail,omitempty"` |
| 140 |
// Extra user event features to include in the recommendation model. |
| 141 |
// |
| 142 |
// If you provide custom attributes for ingested user events, also include |
| 143 |
// them in the user events that you associate with prediction requests. Custom |
| 144 |
// attribute formatting must be consistent between imported events and events |
| 145 |
// provided with prediction requests. This lets the Retail API use |
| 146 |
// those custom attributes when training models and serving predictions, which |
| 147 |
// helps improve recommendation quality. |
| 148 |
// |
| 149 |
// This field needs to pass all below criteria, otherwise an INVALID_ARGUMENT |
| 150 |
// error is returned: |
| 151 |
// |
| 152 |
// - The key must be a UTF-8 encoded string with a length limit of 5,000 |
| 153 |
// characters. |
| 154 |
// - For text attributes, at most 400 values are allowed. Empty values are not |
| 155 |
// allowed. Each value must be a UTF-8 encoded string with a length limit of |
| 156 |
// 256 characters. |
| 157 |
// - For number attributes, at most 400 values are allowed. |
| 158 |
// |
| 159 |
// For product recommendations, an example of extra user information is |
| 160 |
// traffic_channel, which is how a user arrives at the site. Users can arrive |
| 161 |
// at the site by coming to the site directly, coming through Google |
| 162 |
// search, or in other ways. |
| 163 |
Attributes map[string]*CustomAttribute `protobuf:"bytes,7,rep,name=attributes,proto3" json:"attributes,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` |
| 164 |
// The ID or name of the associated shopping cart. This ID is used |
| 165 |
// to associate multiple items added or present in the cart before purchase. |
| 166 |
// |
| 167 |
// This can only be set for `add-to-cart`, `purchase-complete`, or |
| 168 |
// `shopping-cart-page-view` events. |
| 169 |
CartId string `protobuf:"bytes,8,opt,name=cart_id,json=cartId,proto3" json:"cart_id,omitempty"` |
| 170 |
// A transaction represents the entire purchase transaction. |
| 171 |
// |
| 172 |
// Required for `purchase-complete` events. Other event types should not set |
| 173 |
// this field. Otherwise, an INVALID_ARGUMENT error is returned. |
| 174 |
PurchaseTransaction *PurchaseTransaction `protobuf:"bytes,9,opt,name=purchase_transaction,json=purchaseTransaction,proto3" json:"purchase_transaction,omitempty"` |
| 175 |
// The user's search query. |
| 176 |
// |
| 177 |
// See [SearchRequest.query][google.cloud.retail.v2beta.SearchRequest.query] |
| 178 |
// for definition. |
| 179 |
// |
| 180 |
// The value must be a UTF-8 encoded string with a length limit of 5,000 |
| 181 |
// characters. Otherwise, an INVALID_ARGUMENT error is returned. |
| 182 |
// |
| 183 |
// At least one of |
| 184 |
// [search_query][google.cloud.retail.v2beta.UserEvent.search_query] or |
| 185 |
// [page_categories][google.cloud.retail.v2beta.UserEvent.page_categories] is |
| 186 |
// required for `search` events. Other event types should not set this field. |
| 187 |
// Otherwise, an INVALID_ARGUMENT error is returned. |
| 188 |
SearchQuery string `protobuf:"bytes,10,opt,name=search_query,json=searchQuery,proto3" json:"search_query,omitempty"` |
| 189 |
// The filter syntax consists of an expression language for constructing a |
| 190 |
// predicate from one or more fields of the products being filtered. |
| 191 |
// |
| 192 |
// See [SearchRequest.filter][google.cloud.retail.v2beta.SearchRequest.filter] |
| 193 |
// for definition and syntax. |
| 194 |
// |
| 195 |
// The value must be a UTF-8 encoded string with a length limit of 1,000 |
| 196 |
// characters. Otherwise, an INVALID_ARGUMENT error is returned. |
| 197 |
Filter string `protobuf:"bytes,16,opt,name=filter,proto3" json:"filter,omitempty"` |
| 198 |
// The order in which products are returned. |
| 199 |
// |
| 200 |
// See |
| 201 |
// [SearchRequest.order_by][google.cloud.retail.v2beta.SearchRequest.order_by] |
| 202 |
// for definition and syntax. |
| 203 |
// |
| 204 |
// The value must be a UTF-8 encoded string with a length limit of 1,000 |
| 205 |
// characters. Otherwise, an INVALID_ARGUMENT error is returned. |
| 206 |
// |
| 207 |
// This can only be set for `search` events. Other event types should not set |
| 208 |
// this field. Otherwise, an INVALID_ARGUMENT error is returned. |
| 209 |
OrderBy string `protobuf:"bytes,17,opt,name=order_by,json=orderBy,proto3" json:"order_by,omitempty"` |
| 210 |
// An integer that specifies the current offset for pagination (the 0-indexed |
| 211 |
// starting location, amongst the products deemed by the API as relevant). |
| 212 |
// |
| 213 |
// See [SearchRequest.offset][google.cloud.retail.v2beta.SearchRequest.offset] |
| 214 |
// for definition. |
| 215 |
// |
| 216 |
// If this field is negative, an INVALID_ARGUMENT is returned. |
| 217 |
// |
| 218 |
// This can only be set for `search` events. Other event types should not set |
| 219 |
// this field. Otherwise, an INVALID_ARGUMENT error is returned. |
| 220 |
Offset int32 `protobuf:"varint,18,opt,name=offset,proto3" json:"offset,omitempty"` |
| 221 |
// The categories associated with a category page. |
| 222 |
// |
| 223 |
// To represent full path of category, use '>' sign to separate different |
| 224 |
// hierarchies. If '>' is part of the category name, replace it with |
| 225 |
// other character(s). |
| 226 |
// |
| 227 |
// Category pages include special pages such as sales or promotions. For |
| 228 |
// instance, a special sale page may have the category hierarchy: |
| 229 |
// "pageCategories" : ["Sales > 2017 Black Friday Deals"]. |
| 230 |
// |
| 231 |
// Required for `category-page-view` events. At least one of |
| 232 |
// [search_query][google.cloud.retail.v2beta.UserEvent.search_query] or |
| 233 |
// [page_categories][google.cloud.retail.v2beta.UserEvent.page_categories] is |
| 234 |
// required for `search` events. Other event types should not set this field. |
| 235 |
// Otherwise, an INVALID_ARGUMENT error is returned. |
| 236 |
PageCategories []string `protobuf:"bytes,11,rep,name=page_categories,json=pageCategories,proto3" json:"page_categories,omitempty"` |
| 237 |
// User information. |
| 238 |
UserInfo *UserInfo `protobuf:"bytes,12,opt,name=user_info,json=userInfo,proto3" json:"user_info,omitempty"` |
| 239 |
// Complete URL (window.location.href) of the user's current page. |
| 240 |
// |
| 241 |
// When using the client side event reporting with JavaScript pixel and Google |
| 242 |
// Tag Manager, this value is filled in automatically. Maximum length 5,000 |
| 243 |
// characters. |
| 244 |
Uri string `protobuf:"bytes,13,opt,name=uri,proto3" json:"uri,omitempty"` |
| 245 |
// The referrer URL of the current page. |
| 246 |
// |
| 247 |
// When using the client side event reporting with JavaScript pixel and Google |
| 248 |
// Tag Manager, this value is filled in automatically. |
| 249 |
ReferrerUri string `protobuf:"bytes,14,opt,name=referrer_uri,json=referrerUri,proto3" json:"referrer_uri,omitempty"` |
| 250 |
// A unique ID of a web page view. |
| 251 |
// |
| 252 |
// This should be kept the same for all user events triggered from the same |
| 253 |
// pageview. For example, an item detail page view could trigger multiple |
| 254 |
// events as the user is browsing the page. The `pageViewId` property should |
| 255 |
// be kept the same for all these events so that they can be grouped together |
| 256 |
// properly. |
| 257 |
// |
| 258 |
// When using the client side event reporting with JavaScript pixel and Google |
| 259 |
// Tag Manager, this value is filled in automatically. |
| 260 |
PageViewId string `protobuf:"bytes,15,opt,name=page_view_id,json=pageViewId,proto3" json:"page_view_id,omitempty"` |
| 261 |
// The entity for customers that may run multiple different entities, domains, |
| 262 |
// sites or regions, for example, `Google US`, `Google Ads`, `Waymo`, |
| 263 |
// `google.com`, `youtube.com`, etc. |
| 264 |
// We recommend that you set this field to get better per-entity search, |
| 265 |
// completion, and prediction results. |
| 266 |
Entity string `protobuf:"bytes,23,opt,name=entity,proto3" json:"entity,omitempty"` |
| 267 |
} |
| 268 |
|
| 269 |
func (x *UserEvent) Reset() { |
| 270 |
*x = UserEvent{} |
| 271 |
mi := &file_google_cloud_retail_v2beta_user_event_proto_msgTypes[0] |
| 272 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 273 |
ms.StoreMessageInfo(mi) |
| 274 |
} |
| 275 |
|
| 276 |
func (x *UserEvent) String() string { |
| 277 |
return protoimpl.X.MessageStringOf(x) |
| 278 |
} |
| 279 |
|
| 280 |
func (*UserEvent) ProtoMessage() {} |
| 281 |
|
| 282 |
func (x *UserEvent) ProtoReflect() protoreflect.Message { |
| 283 |
mi := &file_google_cloud_retail_v2beta_user_event_proto_msgTypes[0] |
| 284 |
if x != nil { |
| 285 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 286 |
if ms.LoadMessageInfo() == nil { |
| 287 |
ms.StoreMessageInfo(mi) |
| 288 |
} |
| 289 |
return ms |
| 290 |
} |
| 291 |
return mi.MessageOf(x) |
| 292 |
} |
| 293 |
|
| 294 |
// Deprecated: Use UserEvent.ProtoReflect.Descriptor instead. |
| 295 |
func (*UserEvent) Descriptor() ([]byte, []int) { |
| 296 |
return file_google_cloud_retail_v2beta_user_event_proto_rawDescGZIP(), []int{0} |
| 297 |
} |
| 298 |
|
| 299 |
func (x *UserEvent) GetEventType() string { |
| 300 |
if x != nil { |
| 301 |
return x.EventType |
| 302 |
} |
| 303 |
return "" |
| 304 |
} |
| 305 |
|
| 306 |
func (x *UserEvent) GetVisitorId() string { |
| 307 |
if x != nil { |
| 308 |
return x.VisitorId |
| 309 |
} |
| 310 |
return "" |
| 311 |
} |
| 312 |
|
| 313 |
func (x *UserEvent) GetSessionId() string { |
| 314 |
if x != nil { |
| 315 |
return x.SessionId |
| 316 |
} |
| 317 |
return "" |
| 318 |
} |
| 319 |
|
| 320 |
func (x *UserEvent) GetEventTime() *timestamppb.Timestamp { |
| 321 |
if x != nil { |
| 322 |
return x.EventTime |
| 323 |
} |
| 324 |
return nil |
| 325 |
} |
| 326 |
|
| 327 |
func (x *UserEvent) GetExperimentIds() []string { |
| 328 |
if x != nil { |
| 329 |
return x.ExperimentIds |
| 330 |
} |
| 331 |
return nil |
| 332 |
} |
| 333 |
|
| 334 |
func (x *UserEvent) GetAttributionToken() string { |
| 335 |
if x != nil { |
| 336 |
return x.AttributionToken |
| 337 |
} |
| 338 |
return "" |
| 339 |
} |
| 340 |
|
| 341 |
func (x *UserEvent) GetProductDetails() []*ProductDetail { |
| 342 |
if x != nil { |
| 343 |
return x.ProductDetails |
| 344 |
} |
| 345 |
return nil |
| 346 |
} |
| 347 |
|
| 348 |
func (x *UserEvent) GetCompletionDetail() *CompletionDetail { |
| 349 |
if x != nil { |
| 350 |
return x.CompletionDetail |
| 351 |
} |
| 352 |
return nil |
| 353 |
} |
| 354 |
|
| 355 |
func (x *UserEvent) GetAttributes() map[string]*CustomAttribute { |
| 356 |
if x != nil { |
| 357 |
return x.Attributes |
| 358 |
} |
| 359 |
return nil |
| 360 |
} |
| 361 |
|
| 362 |
func (x *UserEvent) GetCartId() string { |
| 363 |
if x != nil { |
| 364 |
return x.CartId |
| 365 |
} |
| 366 |
return "" |
| 367 |
} |
| 368 |
|
| 369 |
func (x *UserEvent) GetPurchaseTransaction() *PurchaseTransaction { |
| 370 |
if x != nil { |
| 371 |
return x.PurchaseTransaction |
| 372 |
} |
| 373 |
return nil |
| 374 |
} |
| 375 |
|
| 376 |
func (x *UserEvent) GetSearchQuery() string { |
| 377 |
if x != nil { |
| 378 |
return x.SearchQuery |
| 379 |
} |
| 380 |
return "" |
| 381 |
} |
| 382 |
|
| 383 |
func (x *UserEvent) GetFilter() string { |
| 384 |
if x != nil { |
| 385 |
return x.Filter |
| 386 |
} |
| 387 |
return "" |
| 388 |
} |
| 389 |
|
| 390 |
func (x *UserEvent) GetOrderBy() string { |
| 391 |
if x != nil { |
| 392 |
return x.OrderBy |
| 393 |
} |
| 394 |
return "" |
| 395 |
} |
| 396 |
|
| 397 |
func (x *UserEvent) GetOffset() int32 { |
| 398 |
if x != nil { |
| 399 |
return x.Offset |
| 400 |
} |
| 401 |
return 0 |
| 402 |
} |
| 403 |
|
| 404 |
func (x *UserEvent) GetPageCategories() []string { |
| 405 |
if x != nil { |
| 406 |
return x.PageCategories |
| 407 |
} |
| 408 |
return nil |
| 409 |
} |
| 410 |
|
| 411 |
func (x *UserEvent) GetUserInfo() *UserInfo { |
| 412 |
if x != nil { |
| 413 |
return x.UserInfo |
| 414 |
} |
| 415 |
return nil |
| 416 |
} |
| 417 |
|
| 418 |
func (x *UserEvent) GetUri() string { |
| 419 |
if x != nil { |
| 420 |
return x.Uri |
| 421 |
} |
| 422 |
return "" |
| 423 |
} |
| 424 |
|
| 425 |
func (x *UserEvent) GetReferrerUri() string { |
| 426 |
if x != nil { |
| 427 |
return x.ReferrerUri |
| 428 |
} |
| 429 |
return "" |
| 430 |
} |
| 431 |
|
| 432 |
func (x *UserEvent) GetPageViewId() string { |
| 433 |
if x != nil { |
| 434 |
return x.PageViewId |
| 435 |
} |
| 436 |
return "" |
| 437 |
} |
| 438 |
|
| 439 |
func (x *UserEvent) GetEntity() string { |
| 440 |
if x != nil { |
| 441 |
return x.Entity |
| 442 |
} |
| 443 |
return "" |
| 444 |
} |
| 445 |
|
| 446 |
// Detailed product information associated with a user event. |
| 447 |
type ProductDetail struct { |
| 448 |
state protoimpl.MessageState |
| 449 |
sizeCache protoimpl.SizeCache |
| 450 |
unknownFields protoimpl.UnknownFields |
| 451 |
|
| 452 |
// Required. [Product][google.cloud.retail.v2beta.Product] information. |
| 453 |
// |
| 454 |
// Required field(s): |
| 455 |
// |
| 456 |
// * [Product.id][google.cloud.retail.v2beta.Product.id] |
| 457 |
// |
| 458 |
// Optional override field(s): |
| 459 |
// |
| 460 |
// * [Product.price_info][google.cloud.retail.v2beta.Product.price_info] |
| 461 |
// |
| 462 |
// If any supported optional fields are provided, we will treat them as a full |
| 463 |
// override when looking up product information from the catalog. Thus, it is |
| 464 |
// important to ensure that the overriding fields are accurate and |
| 465 |
// complete. |
| 466 |
// |
| 467 |
// All other product fields are ignored and instead populated via catalog |
| 468 |
// lookup after event ingestion. |
| 469 |
Product *Product `protobuf:"bytes,1,opt,name=product,proto3" json:"product,omitempty"` |
| 470 |
// Quantity of the product associated with the user event. |
| 471 |
// |
| 472 |
// For example, this field will be 2 if two products are added to the shopping |
| 473 |
// cart for `purchase-complete` event. Required for `add-to-cart` and |
| 474 |
// `purchase-complete` event types. |
| 475 |
Quantity *wrapperspb.Int32Value `protobuf:"bytes,2,opt,name=quantity,proto3" json:"quantity,omitempty"` |
| 476 |
} |
| 477 |
|
| 478 |
func (x *ProductDetail) Reset() { |
| 479 |
*x = ProductDetail{} |
| 480 |
mi := &file_google_cloud_retail_v2beta_user_event_proto_msgTypes[1] |
| 481 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 482 |
ms.StoreMessageInfo(mi) |
| 483 |
} |
| 484 |
|
| 485 |
func (x *ProductDetail) String() string { |
| 486 |
return protoimpl.X.MessageStringOf(x) |
| 487 |
} |
| 488 |
|
| 489 |
func (*ProductDetail) ProtoMessage() {} |
| 490 |
|
| 491 |
func (x *ProductDetail) ProtoReflect() protoreflect.Message { |
| 492 |
mi := &file_google_cloud_retail_v2beta_user_event_proto_msgTypes[1] |
| 493 |
if x != nil { |
| 494 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 495 |
if ms.LoadMessageInfo() == nil { |
| 496 |
ms.StoreMessageInfo(mi) |
| 497 |
} |
| 498 |
return ms |
| 499 |
} |
| 500 |
return mi.MessageOf(x) |
| 501 |
} |
| 502 |
|
| 503 |
// Deprecated: Use ProductDetail.ProtoReflect.Descriptor instead. |
| 504 |
func (*ProductDetail) Descriptor() ([]byte, []int) { |
| 505 |
return file_google_cloud_retail_v2beta_user_event_proto_rawDescGZIP(), []int{1} |
| 506 |
} |
| 507 |
|
| 508 |
func (x *ProductDetail) GetProduct() *Product { |
| 509 |
if x != nil { |
| 510 |
return x.Product |
| 511 |
} |
| 512 |
return nil |
| 513 |
} |
| 514 |
|
| 515 |
func (x *ProductDetail) GetQuantity() *wrapperspb.Int32Value { |
| 516 |
if x != nil { |
| 517 |
return x.Quantity |
| 518 |
} |
| 519 |
return nil |
| 520 |
} |
| 521 |
|
| 522 |
// Detailed completion information including completion attribution token and |
| 523 |
// clicked completion info. |
| 524 |
type CompletionDetail struct { |
| 525 |
state protoimpl.MessageState |
| 526 |
sizeCache protoimpl.SizeCache |
| 527 |
unknownFields protoimpl.UnknownFields |
| 528 |
|
| 529 |
// Completion attribution token in |
| 530 |
// [CompleteQueryResponse.attribution_token][google.cloud.retail.v2beta.CompleteQueryResponse.attribution_token]. |
| 531 |
CompletionAttributionToken string `protobuf:"bytes,1,opt,name=completion_attribution_token,json=completionAttributionToken,proto3" json:"completion_attribution_token,omitempty"` |
| 532 |
// End user selected |
| 533 |
// [CompleteQueryResponse.CompletionResult.suggestion][google.cloud.retail.v2beta.CompleteQueryResponse.CompletionResult.suggestion]. |
| 534 |
SelectedSuggestion string `protobuf:"bytes,2,opt,name=selected_suggestion,json=selectedSuggestion,proto3" json:"selected_suggestion,omitempty"` |
| 535 |
// End user selected |
| 536 |
// [CompleteQueryResponse.CompletionResult.suggestion][google.cloud.retail.v2beta.CompleteQueryResponse.CompletionResult.suggestion] |
| 537 |
// position, starting from 0. |
| 538 |
SelectedPosition int32 `protobuf:"varint,3,opt,name=selected_position,json=selectedPosition,proto3" json:"selected_position,omitempty"` |
| 539 |
} |
| 540 |
|
| 541 |
func (x *CompletionDetail) Reset() { |
| 542 |
*x = CompletionDetail{} |
| 543 |
mi := &file_google_cloud_retail_v2beta_user_event_proto_msgTypes[2] |
| 544 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 545 |
ms.StoreMessageInfo(mi) |
| 546 |
} |
| 547 |
|
| 548 |
func (x *CompletionDetail) String() string { |
| 549 |
return protoimpl.X.MessageStringOf(x) |
| 550 |
} |
| 551 |
|
| 552 |
func (*CompletionDetail) ProtoMessage() {} |
| 553 |
|
| 554 |
func (x *CompletionDetail) ProtoReflect() protoreflect.Message { |
| 555 |
mi := &file_google_cloud_retail_v2beta_user_event_proto_msgTypes[2] |
| 556 |
if x != nil { |
| 557 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 558 |
if ms.LoadMessageInfo() == nil { |
| 559 |
ms.StoreMessageInfo(mi) |
| 560 |
} |
| 561 |
return ms |
| 562 |
} |
| 563 |
return mi.MessageOf(x) |
| 564 |
} |
| 565 |
|
| 566 |
// Deprecated: Use CompletionDetail.ProtoReflect.Descriptor instead. |
| 567 |
func (*CompletionDetail) Descriptor() ([]byte, []int) { |
| 568 |
return file_google_cloud_retail_v2beta_user_event_proto_rawDescGZIP(), []int{2} |
| 569 |
} |
| 570 |
|
| 571 |
func (x *CompletionDetail) GetCompletionAttributionToken() string { |
| 572 |
if x != nil { |
| 573 |
return x.CompletionAttributionToken |
| 574 |
} |
| 575 |
return "" |
| 576 |
} |
| 577 |
|
| 578 |
func (x *CompletionDetail) GetSelectedSuggestion() string { |
| 579 |
if x != nil { |
| 580 |
return x.SelectedSuggestion |
| 581 |
} |
| 582 |
return "" |
| 583 |
} |
| 584 |
|
| 585 |
func (x *CompletionDetail) GetSelectedPosition() int32 { |
| 586 |
if x != nil { |
| 587 |
return x.SelectedPosition |
| 588 |
} |
| 589 |
return 0 |
| 590 |
} |
| 591 |
|
| 592 |
// A transaction represents the entire purchase transaction. |
| 593 |
type PurchaseTransaction struct { |
| 594 |
state protoimpl.MessageState |
| 595 |
sizeCache protoimpl.SizeCache |
| 596 |
unknownFields protoimpl.UnknownFields |
| 597 |
|
| 598 |
// The transaction ID with a length limit of 128 characters. |
| 599 |
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` |
| 600 |
// Required. Total non-zero revenue or grand total associated with the |
| 601 |
// transaction. This value include shipping, tax, or other adjustments to |
| 602 |
// total revenue that you want to include as part of your revenue |
| 603 |
// calculations. |
| 604 |
Revenue float32 `protobuf:"fixed32,2,opt,name=revenue,proto3" json:"revenue,omitempty"` |
| 605 |
// All the taxes associated with the transaction. |
| 606 |
Tax float32 `protobuf:"fixed32,3,opt,name=tax,proto3" json:"tax,omitempty"` |
| 607 |
// All the costs associated with the products. These can be manufacturing |
| 608 |
// costs, shipping expenses not borne by the end user, or any other costs, |
| 609 |
// such that: |
| 610 |
// |
| 611 |
// * Profit = |
| 612 |
// [revenue][google.cloud.retail.v2beta.PurchaseTransaction.revenue] - |
| 613 |
// [tax][google.cloud.retail.v2beta.PurchaseTransaction.tax] - |
| 614 |
// [cost][google.cloud.retail.v2beta.PurchaseTransaction.cost] |
| 615 |
Cost float32 `protobuf:"fixed32,4,opt,name=cost,proto3" json:"cost,omitempty"` |
| 616 |
// Required. Currency code. Use three-character ISO-4217 code. |
| 617 |
CurrencyCode string `protobuf:"bytes,5,opt,name=currency_code,json=currencyCode,proto3" json:"currency_code,omitempty"` |
| 618 |
} |
| 619 |
|
| 620 |
func (x *PurchaseTransaction) Reset() { |
| 621 |
*x = PurchaseTransaction{} |
| 622 |
mi := &file_google_cloud_retail_v2beta_user_event_proto_msgTypes[3] |
| 623 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 624 |
ms.StoreMessageInfo(mi) |
| 625 |
} |
| 626 |
|
| 627 |
func (x *PurchaseTransaction) String() string { |
| 628 |
return protoimpl.X.MessageStringOf(x) |
| 629 |
} |
| 630 |
|
| 631 |
func (*PurchaseTransaction) ProtoMessage() {} |
| 632 |
|
| 633 |
func (x *PurchaseTransaction) ProtoReflect() protoreflect.Message { |
| 634 |
mi := &file_google_cloud_retail_v2beta_user_event_proto_msgTypes[3] |
| 635 |
if x != nil { |
| 636 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 637 |
if ms.LoadMessageInfo() == nil { |
| 638 |
ms.StoreMessageInfo(mi) |
| 639 |
} |
| 640 |
return ms |
| 641 |
} |
| 642 |
return mi.MessageOf(x) |
| 643 |
} |
| 644 |
|
| 645 |
// Deprecated: Use PurchaseTransaction.ProtoReflect.Descriptor instead. |
| 646 |
func (*PurchaseTransaction) Descriptor() ([]byte, []int) { |
| 647 |
return file_google_cloud_retail_v2beta_user_event_proto_rawDescGZIP(), []int{3} |
| 648 |
} |
| 649 |
|
| 650 |
func (x *PurchaseTransaction) GetId() string { |
| 651 |
if x != nil { |
| 652 |
return x.Id |
| 653 |
} |
| 654 |
return "" |
| 655 |
} |
| 656 |
|
| 657 |
func (x *PurchaseTransaction) GetRevenue() float32 { |
| 658 |
if x != nil { |
| 659 |
return x.Revenue |
| 660 |
} |
| 661 |
return 0 |
| 662 |
} |
| 663 |
|
| 664 |
func (x *PurchaseTransaction) GetTax() float32 { |
| 665 |
if x != nil { |
| 666 |
return x.Tax |
| 667 |
} |
| 668 |
return 0 |
| 669 |
} |
| 670 |
|
| 671 |
func (x *PurchaseTransaction) GetCost() float32 { |
| 672 |
if x != nil { |
| 673 |
return x.Cost |
| 674 |
} |
| 675 |
return 0 |
| 676 |
} |
| 677 |
|
| 678 |
func (x *PurchaseTransaction) GetCurrencyCode() string { |
| 679 |
if x != nil { |
| 680 |
return x.CurrencyCode |
| 681 |
} |
| 682 |
return "" |
| 683 |
} |
| 684 |
|
| 685 |
var File_google_cloud_retail_v2beta_user_event_proto protoreflect.FileDescriptor |
| 686 |
|
| 687 |
var file_google_cloud_retail_v2beta_user_event_proto_rawDesc = []byte{ |
| 688 |
0x0a, 0x2b, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x72, |
| 689 |
0x65, 0x74, 0x61, 0x69, 0x6c, 0x2f, 0x76, 0x32, 0x62, 0x65, 0x74, 0x61, 0x2f, 0x75, 0x73, 0x65, |
| 690 |
0x72, 0x5f, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x1a, 0x67, |
| 691 |
0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x72, 0x65, 0x74, 0x61, |
| 692 |
0x69, 0x6c, 0x2e, 0x76, 0x32, 0x62, 0x65, 0x74, 0x61, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, |
| 693 |
0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x5f, 0x62, 0x65, 0x68, 0x61, |
| 694 |
0x76, 0x69, 0x6f, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x27, 0x67, 0x6f, 0x6f, 0x67, |
| 695 |
0x6c, 0x65, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x72, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x2f, |
| 696 |
0x76, 0x32, 0x62, 0x65, 0x74, 0x61, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x70, 0x72, |
| 697 |
0x6f, 0x74, 0x6f, 0x1a, 0x28, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x63, 0x6c, 0x6f, 0x75, |
| 698 |
0x64, 0x2f, 0x72, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x2f, 0x76, 0x32, 0x62, 0x65, 0x74, 0x61, 0x2f, |
| 699 |
0x70, 0x72, 0x6f, 0x64, 0x75, 0x63, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1f, 0x67, |
| 700 |
0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, |
| 701 |
0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1e, |
| 702 |
0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, |
| 703 |
0x77, 0x72, 0x61, 0x70, 0x70, 0x65, 0x72, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xb9, |
| 704 |
0x08, 0x0a, 0x09, 0x55, 0x73, 0x65, 0x72, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x12, 0x22, 0x0a, 0x0a, |
| 705 |
0x65, 0x76, 0x65, 0x6e, 0x74, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, |
| 706 |
0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x09, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x54, 0x79, 0x70, 0x65, |
| 707 |
0x12, 0x22, 0x0a, 0x0a, 0x76, 0x69, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x02, |
| 708 |
0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x09, 0x76, 0x69, 0x73, 0x69, 0x74, |
| 709 |
0x6f, 0x72, 0x49, 0x64, 0x12, 0x1d, 0x0a, 0x0a, 0x73, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x5f, |
| 710 |
0x69, 0x64, 0x18, 0x15, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x73, 0x65, 0x73, 0x73, 0x69, 0x6f, |
| 711 |
0x6e, 0x49, 0x64, 0x12, 0x39, 0x0a, 0x0a, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x5f, 0x74, 0x69, 0x6d, |
| 712 |
0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, |
| 713 |
0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, |
| 714 |
0x61, 0x6d, 0x70, 0x52, 0x09, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x25, |
| 715 |
0x0a, 0x0e, 0x65, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x73, |
| 716 |
0x18, 0x04, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0d, 0x65, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, |
| 717 |
0x6e, 0x74, 0x49, 0x64, 0x73, 0x12, 0x2b, 0x0a, 0x11, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, |
| 718 |
0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, |
| 719 |
0x52, 0x10, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x6f, 0x6b, |
| 720 |
0x65, 0x6e, 0x12, 0x52, 0x0a, 0x0f, 0x70, 0x72, 0x6f, 0x64, 0x75, 0x63, 0x74, 0x5f, 0x64, 0x65, |
| 721 |
0x74, 0x61, 0x69, 0x6c, 0x73, 0x18, 0x06, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x29, 0x2e, 0x67, 0x6f, |
| 722 |
0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x72, 0x65, 0x74, 0x61, 0x69, |
| 723 |
0x6c, 0x2e, 0x76, 0x32, 0x62, 0x65, 0x74, 0x61, 0x2e, 0x50, 0x72, 0x6f, 0x64, 0x75, 0x63, 0x74, |
| 724 |
0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x52, 0x0e, 0x70, 0x72, 0x6f, 0x64, 0x75, 0x63, 0x74, 0x44, |
| 725 |
0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x12, 0x59, 0x0a, 0x11, 0x63, 0x6f, 0x6d, 0x70, 0x6c, 0x65, |
| 726 |
0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x64, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x18, 0x16, 0x20, 0x01, 0x28, |
| 727 |
0x0b, 0x32, 0x2c, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, |
| 728 |
0x2e, 0x72, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x2e, 0x76, 0x32, 0x62, 0x65, 0x74, 0x61, 0x2e, 0x43, |
| 729 |
0x6f, 0x6d, 0x70, 0x6c, 0x65, 0x74, 0x69, 0x6f, 0x6e, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x52, |
| 730 |
0x10, 0x63, 0x6f, 0x6d, 0x70, 0x6c, 0x65, 0x74, 0x69, 0x6f, 0x6e, 0x44, 0x65, 0x74, 0x61, 0x69, |
| 731 |
0x6c, 0x12, 0x55, 0x0a, 0x0a, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x18, |
| 732 |
0x07, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x35, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, |
| 733 |
0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x72, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x2e, 0x76, 0x32, 0x62, 0x65, |
| 734 |
0x74, 0x61, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x2e, 0x41, 0x74, 0x74, |
| 735 |
0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0a, 0x61, 0x74, |
| 736 |
0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x12, 0x17, 0x0a, 0x07, 0x63, 0x61, 0x72, 0x74, |
| 737 |
0x5f, 0x69, 0x64, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x63, 0x61, 0x72, 0x74, 0x49, |
| 738 |
0x64, 0x12, 0x62, 0x0a, 0x14, 0x70, 0x75, 0x72, 0x63, 0x68, 0x61, 0x73, 0x65, 0x5f, 0x74, 0x72, |
| 739 |
0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x09, 0x20, 0x01, 0x28, 0x0b, 0x32, |
| 740 |
0x2f, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x72, |
| 741 |
0x65, 0x74, 0x61, 0x69, 0x6c, 0x2e, 0x76, 0x32, 0x62, 0x65, 0x74, 0x61, 0x2e, 0x50, 0x75, 0x72, |
| 742 |
0x63, 0x68, 0x61, 0x73, 0x65, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, |
| 743 |
0x52, 0x13, 0x70, 0x75, 0x72, 0x63, 0x68, 0x61, 0x73, 0x65, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, |
| 744 |
0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x21, 0x0a, 0x0c, 0x73, 0x65, 0x61, 0x72, 0x63, 0x68, 0x5f, |
| 745 |
0x71, 0x75, 0x65, 0x72, 0x79, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x73, 0x65, 0x61, |
| 746 |
0x72, 0x63, 0x68, 0x51, 0x75, 0x65, 0x72, 0x79, 0x12, 0x16, 0x0a, 0x06, 0x66, 0x69, 0x6c, 0x74, |
| 747 |
0x65, 0x72, 0x18, 0x10, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, |
| 748 |
0x12, 0x19, 0x0a, 0x08, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x5f, 0x62, 0x79, 0x18, 0x11, 0x20, 0x01, |
| 749 |
0x28, 0x09, 0x52, 0x07, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x42, 0x79, 0x12, 0x16, 0x0a, 0x06, 0x6f, |
| 750 |
0x66, 0x66, 0x73, 0x65, 0x74, 0x18, 0x12, 0x20, 0x01, 0x28, 0x05, 0x52, 0x06, 0x6f, 0x66, 0x66, |
| 751 |
0x73, 0x65, 0x74, 0x12, 0x27, 0x0a, 0x0f, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x63, 0x61, 0x74, 0x65, |
| 752 |
0x67, 0x6f, 0x72, 0x69, 0x65, 0x73, 0x18, 0x0b, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0e, 0x70, 0x61, |
| 753 |
0x67, 0x65, 0x43, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, 0x69, 0x65, 0x73, 0x12, 0x41, 0x0a, 0x09, |
| 754 |
0x75, 0x73, 0x65, 0x72, 0x5f, 0x69, 0x6e, 0x66, 0x6f, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x0b, 0x32, |
| 755 |
0x24, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x72, |
| 756 |
0x65, 0x74, 0x61, 0x69, 0x6c, 0x2e, 0x76, 0x32, 0x62, 0x65, 0x74, 0x61, 0x2e, 0x55, 0x73, 0x65, |
| 757 |
0x72, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x08, 0x75, 0x73, 0x65, 0x72, 0x49, 0x6e, 0x66, 0x6f, 0x12, |
| 758 |
0x10, 0x0a, 0x03, 0x75, 0x72, 0x69, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x75, 0x72, |
| 759 |
0x69, 0x12, 0x21, 0x0a, 0x0c, 0x72, 0x65, 0x66, 0x65, 0x72, 0x72, 0x65, 0x72, 0x5f, 0x75, 0x72, |
| 760 |
0x69, 0x18, 0x0e, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x72, 0x65, 0x66, 0x65, 0x72, 0x72, 0x65, |
| 761 |
0x72, 0x55, 0x72, 0x69, 0x12, 0x20, 0x0a, 0x0c, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x76, 0x69, 0x65, |
| 762 |
0x77, 0x5f, 0x69, 0x64, 0x18, 0x0f, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x70, 0x61, 0x67, 0x65, |
| 763 |
0x56, 0x69, 0x65, 0x77, 0x49, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, |
| 764 |
0x18, 0x17, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x1a, 0x6a, |
| 765 |
0x0a, 0x0f, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x45, 0x6e, 0x74, 0x72, |
| 766 |
0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, |
| 767 |
0x6b, 0x65, 0x79, 0x12, 0x41, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, |
| 768 |
0x28, 0x0b, 0x32, 0x2b, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, |
| 769 |
0x64, 0x2e, 0x72, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x2e, 0x76, 0x32, 0x62, 0x65, 0x74, 0x61, 0x2e, |
| 770 |
0x43, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x52, |
| 771 |
0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0x8c, 0x01, 0x0a, 0x0d, 0x50, |
| 772 |
0x72, 0x6f, 0x64, 0x75, 0x63, 0x74, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x12, 0x42, 0x0a, 0x07, |
| 773 |
0x70, 0x72, 0x6f, 0x64, 0x75, 0x63, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x23, 0x2e, |
| 774 |
0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x72, 0x65, 0x74, |
| 775 |
0x61, 0x69, 0x6c, 0x2e, 0x76, 0x32, 0x62, 0x65, 0x74, 0x61, 0x2e, 0x50, 0x72, 0x6f, 0x64, 0x75, |
| 776 |
0x63, 0x74, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x07, 0x70, 0x72, 0x6f, 0x64, 0x75, 0x63, 0x74, |
| 777 |
0x12, 0x37, 0x0a, 0x08, 0x71, 0x75, 0x61, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x18, 0x02, 0x20, 0x01, |
| 778 |
0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, |
| 779 |
0x6f, 0x62, 0x75, 0x66, 0x2e, 0x49, 0x6e, 0x74, 0x33, 0x32, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, |
| 780 |
0x08, 0x71, 0x75, 0x61, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x22, 0xb2, 0x01, 0x0a, 0x10, 0x43, 0x6f, |
| 781 |
0x6d, 0x70, 0x6c, 0x65, 0x74, 0x69, 0x6f, 0x6e, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x12, 0x40, |
| 782 |
0x0a, 0x1c, 0x63, 0x6f, 0x6d, 0x70, 0x6c, 0x65, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x61, 0x74, 0x74, |
| 783 |
0x72, 0x69, 0x62, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x01, |
| 784 |
0x20, 0x01, 0x28, 0x09, 0x52, 0x1a, 0x63, 0x6f, 0x6d, 0x70, 0x6c, 0x65, 0x74, 0x69, 0x6f, 0x6e, |
| 785 |
0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x6f, 0x6b, 0x65, 0x6e, |
| 786 |
0x12, 0x2f, 0x0a, 0x13, 0x73, 0x65, 0x6c, 0x65, 0x63, 0x74, 0x65, 0x64, 0x5f, 0x73, 0x75, 0x67, |
| 787 |
0x67, 0x65, 0x73, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x12, 0x73, |
| 788 |
0x65, 0x6c, 0x65, 0x63, 0x74, 0x65, 0x64, 0x53, 0x75, 0x67, 0x67, 0x65, 0x73, 0x74, 0x69, 0x6f, |
| 789 |
0x6e, 0x12, 0x2b, 0x0a, 0x11, 0x73, 0x65, 0x6c, 0x65, 0x63, 0x74, 0x65, 0x64, 0x5f, 0x70, 0x6f, |
| 790 |
0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x10, 0x73, 0x65, |
| 791 |
0x6c, 0x65, 0x63, 0x74, 0x65, 0x64, 0x50, 0x6f, 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x94, |
| 792 |
0x01, 0x0a, 0x13, 0x50, 0x75, 0x72, 0x63, 0x68, 0x61, 0x73, 0x65, 0x54, 0x72, 0x61, 0x6e, 0x73, |
| 793 |
0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, |
| 794 |
0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x1d, 0x0a, 0x07, 0x72, 0x65, 0x76, 0x65, 0x6e, 0x75, |
| 795 |
0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x02, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x07, 0x72, 0x65, |
| 796 |
0x76, 0x65, 0x6e, 0x75, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x74, 0x61, 0x78, 0x18, 0x03, 0x20, 0x01, |
| 797 |
0x28, 0x02, 0x52, 0x03, 0x74, 0x61, 0x78, 0x12, 0x12, 0x0a, 0x04, 0x63, 0x6f, 0x73, 0x74, 0x18, |
| 798 |
0x04, 0x20, 0x01, 0x28, 0x02, 0x52, 0x04, 0x63, 0x6f, 0x73, 0x74, 0x12, 0x28, 0x0a, 0x0d, 0x63, |
| 799 |
0x75, 0x72, 0x72, 0x65, 0x6e, 0x63, 0x79, 0x5f, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x05, 0x20, 0x01, |
| 800 |
0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x0c, 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x63, |
| 801 |
0x79, 0x43, 0x6f, 0x64, 0x65, 0x42, 0xcd, 0x01, 0x0a, 0x1e, 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f, |
| 802 |
0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x72, 0x65, 0x74, 0x61, 0x69, |
| 803 |
0x6c, 0x2e, 0x76, 0x32, 0x62, 0x65, 0x74, 0x61, 0x42, 0x0e, 0x55, 0x73, 0x65, 0x72, 0x45, 0x76, |
| 804 |
0x65, 0x6e, 0x74, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x36, 0x63, 0x6c, 0x6f, 0x75, |
| 805 |
0x64, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x6f, 0x2f, |
| 806 |
0x72, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x2f, 0x61, 0x70, 0x69, 0x76, 0x32, 0x62, 0x65, 0x74, 0x61, |
| 807 |
0x2f, 0x72, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x70, 0x62, 0x3b, 0x72, 0x65, 0x74, 0x61, 0x69, 0x6c, |
| 808 |
0x70, 0x62, 0xa2, 0x02, 0x06, 0x52, 0x45, 0x54, 0x41, 0x49, 0x4c, 0xaa, 0x02, 0x1a, 0x47, 0x6f, |
| 809 |
0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x52, 0x65, 0x74, 0x61, 0x69, |
| 810 |
0x6c, 0x2e, 0x56, 0x32, 0x42, 0x65, 0x74, 0x61, 0xca, 0x02, 0x1a, 0x47, 0x6f, 0x6f, 0x67, 0x6c, |
| 811 |
0x65, 0x5c, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x5c, 0x52, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x5c, 0x56, |
| 812 |
0x32, 0x62, 0x65, 0x74, 0x61, 0xea, 0x02, 0x1d, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x3a, 0x3a, |
| 813 |
0x43, 0x6c, 0x6f, 0x75, 0x64, 0x3a, 0x3a, 0x52, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x3a, 0x3a, 0x56, |
| 814 |
0x32, 0x62, 0x65, 0x74, 0x61, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, |
| 815 |
} |
| 816 |
|
| 817 |
var ( |
| 818 |
file_google_cloud_retail_v2beta_user_event_proto_rawDescOnce sync.Once |
| 819 |
file_google_cloud_retail_v2beta_user_event_proto_rawDescData = file_google_cloud_retail_v2beta_user_event_proto_rawDesc |
| 820 |
) |
| 821 |
|
| 822 |
func file_google_cloud_retail_v2beta_user_event_proto_rawDescGZIP() []byte { |
| 823 |
file_google_cloud_retail_v2beta_user_event_proto_rawDescOnce.Do(func() { |
| 824 |
file_google_cloud_retail_v2beta_user_event_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_cloud_retail_v2beta_user_event_proto_rawDescData) |
| 825 |
}) |
| 826 |
return file_google_cloud_retail_v2beta_user_event_proto_rawDescData |
| 827 |
} |
| 828 |
|
| 829 |
var file_google_cloud_retail_v2beta_user_event_proto_msgTypes = make([]protoimpl.MessageInfo, 5) |
| 830 |
var file_google_cloud_retail_v2beta_user_event_proto_goTypes = []any{ |
| 831 |
(*UserEvent)(nil), // 0: google.cloud.retail.v2beta.UserEvent |
| 832 |
(*ProductDetail)(nil), // 1: google.cloud.retail.v2beta.ProductDetail |
| 833 |
(*CompletionDetail)(nil), // 2: google.cloud.retail.v2beta.CompletionDetail |
| 834 |
(*PurchaseTransaction)(nil), // 3: google.cloud.retail.v2beta.PurchaseTransaction |
| 835 |
nil, // 4: google.cloud.retail.v2beta.UserEvent.AttributesEntry |
| 836 |
(*timestamppb.Timestamp)(nil), // 5: google.protobuf.Timestamp |
| 837 |
(*UserInfo)(nil), // 6: google.cloud.retail.v2beta.UserInfo |
| 838 |
(*Product)(nil), // 7: google.cloud.retail.v2beta.Product |
| 839 |
(*wrapperspb.Int32Value)(nil), // 8: google.protobuf.Int32Value |
| 840 |
(*CustomAttribute)(nil), // 9: google.cloud.retail.v2beta.CustomAttribute |
| 841 |
} |
| 842 |
var file_google_cloud_retail_v2beta_user_event_proto_depIdxs = []int32{ |
| 843 |
5, // 0: google.cloud.retail.v2beta.UserEvent.event_time:type_name -> google.protobuf.Timestamp |
| 844 |
1, // 1: google.cloud.retail.v2beta.UserEvent.product_details:type_name -> google.cloud.retail.v2beta.ProductDetail |
| 845 |
2, // 2: google.cloud.retail.v2beta.UserEvent.completion_detail:type_name -> google.cloud.retail.v2beta.CompletionDetail |
| 846 |
4, // 3: google.cloud.retail.v2beta.UserEvent.attributes:type_name -> google.cloud.retail.v2beta.UserEvent.AttributesEntry |
| 847 |
3, // 4: google.cloud.retail.v2beta.UserEvent.purchase_transaction:type_name -> google.cloud.retail.v2beta.PurchaseTransaction |
| 848 |
6, // 5: google.cloud.retail.v2beta.UserEvent.user_info:type_name -> google.cloud.retail.v2beta.UserInfo |
| 849 |
7, // 6: google.cloud.retail.v2beta.ProductDetail.product:type_name -> google.cloud.retail.v2beta.Product |
| 850 |
8, // 7: google.cloud.retail.v2beta.ProductDetail.quantity:type_name -> google.protobuf.Int32Value |
| 851 |
9, // 8: google.cloud.retail.v2beta.UserEvent.AttributesEntry.value:type_name -> google.cloud.retail.v2beta.CustomAttribute |
| 852 |
9, // [9:9] is the sub-list for method output_type |
| 853 |
9, // [9:9] is the sub-list for method input_type |
| 854 |
9, // [9:9] is the sub-list for extension type_name |
| 855 |
9, // [9:9] is the sub-list for extension extendee |
| 856 |
0, // [0:9] is the sub-list for field type_name |
| 857 |
} |
| 858 |
|
| 859 |
func init() { file_google_cloud_retail_v2beta_user_event_proto_init() } |
| 860 |
func file_google_cloud_retail_v2beta_user_event_proto_init() { |
| 861 |
if File_google_cloud_retail_v2beta_user_event_proto != nil { |
| 862 |
return |
| 863 |
} |
| 864 |
file_google_cloud_retail_v2beta_common_proto_init() |
| 865 |
file_google_cloud_retail_v2beta_product_proto_init() |
| 866 |
type x struct{} |
| 867 |
out := protoimpl.TypeBuilder{ |
| 868 |
File: protoimpl.DescBuilder{ |
| 869 |
GoPackagePath: reflect.TypeOf(x{}).PkgPath(), |
| 870 |
RawDescriptor: file_google_cloud_retail_v2beta_user_event_proto_rawDesc, |
| 871 |
NumEnums: 0, |
| 872 |
NumMessages: 5, |
| 873 |
NumExtensions: 0, |
| 874 |
NumServices: 0, |
| 875 |
}, |
| 876 |
GoTypes: file_google_cloud_retail_v2beta_user_event_proto_goTypes, |
| 877 |
DependencyIndexes: file_google_cloud_retail_v2beta_user_event_proto_depIdxs, |
| 878 |
MessageInfos: file_google_cloud_retail_v2beta_user_event_proto_msgTypes, |
| 879 |
}.Build() |
| 880 |
File_google_cloud_retail_v2beta_user_event_proto = out.File |
| 881 |
file_google_cloud_retail_v2beta_user_event_proto_rawDesc = nil |
| 882 |
file_google_cloud_retail_v2beta_user_event_proto_goTypes = nil |
| 883 |
file_google_cloud_retail_v2beta_user_event_proto_depIdxs = nil |
| 884 |
} |