Debian Codegraph @

retail/apiv2beta/retailpb/user_event_service.pb.go

raw
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_service.proto
20
21 package retailpb
22
23 import (
24 longrunningpb "cloud.google.com/go/longrunning/autogen/longrunningpb"
25 context "context"
26 _ "google.golang.org/genproto/googleapis/api/annotations"
27 httpbody "google.golang.org/genproto/googleapis/api/httpbody"
28 grpc "google.golang.org/grpc"
29 codes "google.golang.org/grpc/codes"
30 status "google.golang.org/grpc/status"
31 protoreflect "google.golang.org/protobuf/reflect/protoreflect"
32 protoimpl "google.golang.org/protobuf/runtime/protoimpl"
33 reflect "reflect"
34 sync "sync"
35 )
36
37 const (
38 // Verify that this generated code is sufficiently up-to-date.
39 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
40 // Verify that runtime/protoimpl is sufficiently up-to-date.
41 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
42 )
43
44 // The scope of user events to be rejoined with the latest product catalog.
45 // If the rejoining aims at reducing number of unjoined events, set
46 // `UserEventRejoinScope` to `UNJOINED_EVENTS`.
47 // If the rejoining aims at correcting product catalog information in joined
48 // events, set `UserEventRejoinScope` to `JOINED_EVENTS`.
49 // If all events needs to be rejoined, set `UserEventRejoinScope` to
50 // `USER_EVENT_REJOIN_SCOPE_UNSPECIFIED`.
51 type RejoinUserEventsRequest_UserEventRejoinScope int32
52
53 const (
54 // Rejoin all events with the latest product catalog, including both joined
55 // events and unjoined events.
56 RejoinUserEventsRequest_USER_EVENT_REJOIN_SCOPE_UNSPECIFIED RejoinUserEventsRequest_UserEventRejoinScope = 0
57 // Only rejoin joined events with the latest product catalog.
58 RejoinUserEventsRequest_JOINED_EVENTS RejoinUserEventsRequest_UserEventRejoinScope = 1
59 // Only rejoin unjoined events with the latest product catalog.
60 RejoinUserEventsRequest_UNJOINED_EVENTS RejoinUserEventsRequest_UserEventRejoinScope = 2
61 )
62
63 // Enum value maps for RejoinUserEventsRequest_UserEventRejoinScope.
64 var (
65 RejoinUserEventsRequest_UserEventRejoinScope_name = map[int32]string{
66 0: "USER_EVENT_REJOIN_SCOPE_UNSPECIFIED",
67 1: "JOINED_EVENTS",
68 2: "UNJOINED_EVENTS",
69 }
70 RejoinUserEventsRequest_UserEventRejoinScope_value = map[string]int32{
71 "USER_EVENT_REJOIN_SCOPE_UNSPECIFIED": 0,
72 "JOINED_EVENTS": 1,
73 "UNJOINED_EVENTS": 2,
74 }
75 )
76
77 func (x RejoinUserEventsRequest_UserEventRejoinScope) Enum() *RejoinUserEventsRequest_UserEventRejoinScope {
78 p := new(RejoinUserEventsRequest_UserEventRejoinScope)
79 *p = x
80 return p
81 }
82
83 func (x RejoinUserEventsRequest_UserEventRejoinScope) String() string {
84 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
85 }
86
87 func (RejoinUserEventsRequest_UserEventRejoinScope) Descriptor() protoreflect.EnumDescriptor {
88 return file_google_cloud_retail_v2beta_user_event_service_proto_enumTypes[0].Descriptor()
89 }
90
91 func (RejoinUserEventsRequest_UserEventRejoinScope) Type() protoreflect.EnumType {
92 return &file_google_cloud_retail_v2beta_user_event_service_proto_enumTypes[0]
93 }
94
95 func (x RejoinUserEventsRequest_UserEventRejoinScope) Number() protoreflect.EnumNumber {
96 return protoreflect.EnumNumber(x)
97 }
98
99 // Deprecated: Use RejoinUserEventsRequest_UserEventRejoinScope.Descriptor instead.
100 func (RejoinUserEventsRequest_UserEventRejoinScope) EnumDescriptor() ([]byte, []int) {
101 return file_google_cloud_retail_v2beta_user_event_service_proto_rawDescGZIP(), []int{2, 0}
102 }
103
104 // Request message for WriteUserEvent method.
105 type WriteUserEventRequest struct {
106 state protoimpl.MessageState
107 sizeCache protoimpl.SizeCache
108 unknownFields protoimpl.UnknownFields
109
110 // Required. The parent catalog resource name, such as
111 // `projects/1234/locations/global/catalogs/default_catalog`.
112 Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
113 // Required. User event to write.
114 UserEvent *UserEvent `protobuf:"bytes,2,opt,name=user_event,json=userEvent,proto3" json:"user_event,omitempty"`
115 // If set to true, the user event will be written asynchronously after
116 // validation, and the API will respond without waiting for the write.
117 // Therefore, silent failures can occur even if the API returns success. In
118 // case of silent failures, error messages can be found in Stackdriver logs.
119 WriteAsync bool `protobuf:"varint,3,opt,name=write_async,json=writeAsync,proto3" json:"write_async,omitempty"`
120 }
121
122 func (x *WriteUserEventRequest) Reset() {
123 *x = WriteUserEventRequest{}
124 mi := &file_google_cloud_retail_v2beta_user_event_service_proto_msgTypes[0]
125 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
126 ms.StoreMessageInfo(mi)
127 }
128
129 func (x *WriteUserEventRequest) String() string {
130 return protoimpl.X.MessageStringOf(x)
131 }
132
133 func (*WriteUserEventRequest) ProtoMessage() {}
134
135 func (x *WriteUserEventRequest) ProtoReflect() protoreflect.Message {
136 mi := &file_google_cloud_retail_v2beta_user_event_service_proto_msgTypes[0]
137 if x != nil {
138 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
139 if ms.LoadMessageInfo() == nil {
140 ms.StoreMessageInfo(mi)
141 }
142 return ms
143 }
144 return mi.MessageOf(x)
145 }
146
147 // Deprecated: Use WriteUserEventRequest.ProtoReflect.Descriptor instead.
148 func (*WriteUserEventRequest) Descriptor() ([]byte, []int) {
149 return file_google_cloud_retail_v2beta_user_event_service_proto_rawDescGZIP(), []int{0}
150 }
151
152 func (x *WriteUserEventRequest) GetParent() string {
153 if x != nil {
154 return x.Parent
155 }
156 return ""
157 }
158
159 func (x *WriteUserEventRequest) GetUserEvent() *UserEvent {
160 if x != nil {
161 return x.UserEvent
162 }
163 return nil
164 }
165
166 func (x *WriteUserEventRequest) GetWriteAsync() bool {
167 if x != nil {
168 return x.WriteAsync
169 }
170 return false
171 }
172
173 // Request message for CollectUserEvent method.
174 type CollectUserEventRequest struct {
175 state protoimpl.MessageState
176 sizeCache protoimpl.SizeCache
177 unknownFields protoimpl.UnknownFields
178
179 // The rule that can convert the raw_json to a user event. It is needed
180 // only when the raw_json is set.
181 //
182 // Types that are assignable to ConversionRule:
183 //
184 // *CollectUserEventRequest_PrebuiltRule
185 ConversionRule isCollectUserEventRequest_ConversionRule `protobuf_oneof:"conversion_rule"`
186 // Required. The parent catalog name, such as
187 // `projects/1234/locations/global/catalogs/default_catalog`.
188 Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
189 // Required. URL encoded UserEvent proto with a length limit of 2,000,000
190 // characters.
191 UserEvent string `protobuf:"bytes,2,opt,name=user_event,json=userEvent,proto3" json:"user_event,omitempty"`
192 // The URL including cgi-parameters but excluding the hash fragment with a
193 // length limit of 5,000 characters. This is often more useful than the
194 // referer URL, because many browsers only send the domain for 3rd party
195 // requests.
196 Uri string `protobuf:"bytes,3,opt,name=uri,proto3" json:"uri,omitempty"`
197 // The event timestamp in milliseconds. This prevents browser caching of
198 // otherwise identical get requests. The name is abbreviated to reduce the
199 // payload bytes.
200 Ets int64 `protobuf:"varint,4,opt,name=ets,proto3" json:"ets,omitempty"`
201 // An arbitrary serialized JSON string that contains necessary information
202 // that can comprise a user event. When this field is specified, the
203 // user_event field will be ignored. Note: line-delimited JSON is not
204 // supported, a single JSON only.
205 RawJson string `protobuf:"bytes,5,opt,name=raw_json,json=rawJson,proto3" json:"raw_json,omitempty"`
206 }
207
208 func (x *CollectUserEventRequest) Reset() {
209 *x = CollectUserEventRequest{}
210 mi := &file_google_cloud_retail_v2beta_user_event_service_proto_msgTypes[1]
211 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
212 ms.StoreMessageInfo(mi)
213 }
214
215 func (x *CollectUserEventRequest) String() string {
216 return protoimpl.X.MessageStringOf(x)
217 }
218
219 func (*CollectUserEventRequest) ProtoMessage() {}
220
221 func (x *CollectUserEventRequest) ProtoReflect() protoreflect.Message {
222 mi := &file_google_cloud_retail_v2beta_user_event_service_proto_msgTypes[1]
223 if x != nil {
224 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
225 if ms.LoadMessageInfo() == nil {
226 ms.StoreMessageInfo(mi)
227 }
228 return ms
229 }
230 return mi.MessageOf(x)
231 }
232
233 // Deprecated: Use CollectUserEventRequest.ProtoReflect.Descriptor instead.
234 func (*CollectUserEventRequest) Descriptor() ([]byte, []int) {
235 return file_google_cloud_retail_v2beta_user_event_service_proto_rawDescGZIP(), []int{1}
236 }
237
238 func (m *CollectUserEventRequest) GetConversionRule() isCollectUserEventRequest_ConversionRule {
239 if m != nil {
240 return m.ConversionRule
241 }
242 return nil
243 }
244
245 func (x *CollectUserEventRequest) GetPrebuiltRule() string {
246 if x, ok := x.GetConversionRule().(*CollectUserEventRequest_PrebuiltRule); ok {
247 return x.PrebuiltRule
248 }
249 return ""
250 }
251
252 func (x *CollectUserEventRequest) GetParent() string {
253 if x != nil {
254 return x.Parent
255 }
256 return ""
257 }
258
259 func (x *CollectUserEventRequest) GetUserEvent() string {
260 if x != nil {
261 return x.UserEvent
262 }
263 return ""
264 }
265
266 func (x *CollectUserEventRequest) GetUri() string {
267 if x != nil {
268 return x.Uri
269 }
270 return ""
271 }
272
273 func (x *CollectUserEventRequest) GetEts() int64 {
274 if x != nil {
275 return x.Ets
276 }
277 return 0
278 }
279
280 func (x *CollectUserEventRequest) GetRawJson() string {
281 if x != nil {
282 return x.RawJson
283 }
284 return ""
285 }
286
287 type isCollectUserEventRequest_ConversionRule interface {
288 isCollectUserEventRequest_ConversionRule()
289 }
290
291 type CollectUserEventRequest_PrebuiltRule struct {
292 // The prebuilt rule name that can convert a specific type of raw_json.
293 // For example: "ga4_bq" rule for the GA4 user event schema.
294 PrebuiltRule string `protobuf:"bytes,6,opt,name=prebuilt_rule,json=prebuiltRule,proto3,oneof"`
295 }
296
297 func (*CollectUserEventRequest_PrebuiltRule) isCollectUserEventRequest_ConversionRule() {}
298
299 // Request message for RejoinUserEvents method.
300 type RejoinUserEventsRequest struct {
301 state protoimpl.MessageState
302 sizeCache protoimpl.SizeCache
303 unknownFields protoimpl.UnknownFields
304
305 // Required. The parent catalog resource name, such as
306 // `projects/1234/locations/global/catalogs/default_catalog`.
307 Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
308 // The type of the user event rejoin to define the scope and range of the user
309 // events to be rejoined with the latest product catalog. Defaults to
310 // `USER_EVENT_REJOIN_SCOPE_UNSPECIFIED` if this field is not set, or set to
311 // an invalid integer value.
312 UserEventRejoinScope RejoinUserEventsRequest_UserEventRejoinScope `protobuf:"varint,2,opt,name=user_event_rejoin_scope,json=userEventRejoinScope,proto3,enum=google.cloud.retail.v2beta.RejoinUserEventsRequest_UserEventRejoinScope" json:"user_event_rejoin_scope,omitempty"`
313 }
314
315 func (x *RejoinUserEventsRequest) Reset() {
316 *x = RejoinUserEventsRequest{}
317 mi := &file_google_cloud_retail_v2beta_user_event_service_proto_msgTypes[2]
318 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
319 ms.StoreMessageInfo(mi)
320 }
321
322 func (x *RejoinUserEventsRequest) String() string {
323 return protoimpl.X.MessageStringOf(x)
324 }
325
326 func (*RejoinUserEventsRequest) ProtoMessage() {}
327
328 func (x *RejoinUserEventsRequest) ProtoReflect() protoreflect.Message {
329 mi := &file_google_cloud_retail_v2beta_user_event_service_proto_msgTypes[2]
330 if x != nil {
331 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
332 if ms.LoadMessageInfo() == nil {
333 ms.StoreMessageInfo(mi)
334 }
335 return ms
336 }
337 return mi.MessageOf(x)
338 }
339
340 // Deprecated: Use RejoinUserEventsRequest.ProtoReflect.Descriptor instead.
341 func (*RejoinUserEventsRequest) Descriptor() ([]byte, []int) {
342 return file_google_cloud_retail_v2beta_user_event_service_proto_rawDescGZIP(), []int{2}
343 }
344
345 func (x *RejoinUserEventsRequest) GetParent() string {
346 if x != nil {
347 return x.Parent
348 }
349 return ""
350 }
351
352 func (x *RejoinUserEventsRequest) GetUserEventRejoinScope() RejoinUserEventsRequest_UserEventRejoinScope {
353 if x != nil {
354 return x.UserEventRejoinScope
355 }
356 return RejoinUserEventsRequest_USER_EVENT_REJOIN_SCOPE_UNSPECIFIED
357 }
358
359 // Response message for `RejoinUserEvents` method.
360 type RejoinUserEventsResponse struct {
361 state protoimpl.MessageState
362 sizeCache protoimpl.SizeCache
363 unknownFields protoimpl.UnknownFields
364
365 // Number of user events that were joined with latest product catalog.
366 RejoinedUserEventsCount int64 `protobuf:"varint,1,opt,name=rejoined_user_events_count,json=rejoinedUserEventsCount,proto3" json:"rejoined_user_events_count,omitempty"`
367 }
368
369 func (x *RejoinUserEventsResponse) Reset() {
370 *x = RejoinUserEventsResponse{}
371 mi := &file_google_cloud_retail_v2beta_user_event_service_proto_msgTypes[3]
372 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
373 ms.StoreMessageInfo(mi)
374 }
375
376 func (x *RejoinUserEventsResponse) String() string {
377 return protoimpl.X.MessageStringOf(x)
378 }
379
380 func (*RejoinUserEventsResponse) ProtoMessage() {}
381
382 func (x *RejoinUserEventsResponse) ProtoReflect() protoreflect.Message {
383 mi := &file_google_cloud_retail_v2beta_user_event_service_proto_msgTypes[3]
384 if x != nil {
385 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
386 if ms.LoadMessageInfo() == nil {
387 ms.StoreMessageInfo(mi)
388 }
389 return ms
390 }
391 return mi.MessageOf(x)
392 }
393
394 // Deprecated: Use RejoinUserEventsResponse.ProtoReflect.Descriptor instead.
395 func (*RejoinUserEventsResponse) Descriptor() ([]byte, []int) {
396 return file_google_cloud_retail_v2beta_user_event_service_proto_rawDescGZIP(), []int{3}
397 }
398
399 func (x *RejoinUserEventsResponse) GetRejoinedUserEventsCount() int64 {
400 if x != nil {
401 return x.RejoinedUserEventsCount
402 }
403 return 0
404 }
405
406 // Metadata for `RejoinUserEvents` method.
407 type RejoinUserEventsMetadata struct {
408 state protoimpl.MessageState
409 sizeCache protoimpl.SizeCache
410 unknownFields protoimpl.UnknownFields
411 }
412
413 func (x *RejoinUserEventsMetadata) Reset() {
414 *x = RejoinUserEventsMetadata{}
415 mi := &file_google_cloud_retail_v2beta_user_event_service_proto_msgTypes[4]
416 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
417 ms.StoreMessageInfo(mi)
418 }
419
420 func (x *RejoinUserEventsMetadata) String() string {
421 return protoimpl.X.MessageStringOf(x)
422 }
423
424 func (*RejoinUserEventsMetadata) ProtoMessage() {}
425
426 func (x *RejoinUserEventsMetadata) ProtoReflect() protoreflect.Message {
427 mi := &file_google_cloud_retail_v2beta_user_event_service_proto_msgTypes[4]
428 if x != nil {
429 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
430 if ms.LoadMessageInfo() == nil {
431 ms.StoreMessageInfo(mi)
432 }
433 return ms
434 }
435 return mi.MessageOf(x)
436 }
437
438 // Deprecated: Use RejoinUserEventsMetadata.ProtoReflect.Descriptor instead.
439 func (*RejoinUserEventsMetadata) Descriptor() ([]byte, []int) {
440 return file_google_cloud_retail_v2beta_user_event_service_proto_rawDescGZIP(), []int{4}
441 }
442
443 var File_google_cloud_retail_v2beta_user_event_service_proto protoreflect.FileDescriptor
444
445 var file_google_cloud_retail_v2beta_user_event_service_proto_rawDesc = []byte{
446 0x0a, 0x33, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x72,
447 0x65, 0x74, 0x61, 0x69, 0x6c, 0x2f, 0x76, 0x32, 0x62, 0x65, 0x74, 0x61, 0x2f, 0x75, 0x73, 0x65,
448 0x72, 0x5f, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e,
449 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x1a, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c,
450 0x6f, 0x75, 0x64, 0x2e, 0x72, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x2e, 0x76, 0x32, 0x62, 0x65, 0x74,
451 0x61, 0x1a, 0x1c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x61, 0x6e,
452 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a,
453 0x17, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x63, 0x6c, 0x69, 0x65,
454 0x6e, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
455 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x5f, 0x62, 0x65, 0x68, 0x61, 0x76,
456 0x69, 0x6f, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x19, 0x67, 0x6f, 0x6f, 0x67, 0x6c,
457 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x68, 0x74, 0x74, 0x70, 0x62, 0x6f, 0x64, 0x79, 0x2e, 0x70,
458 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x19, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69,
459 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a,
460 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x72, 0x65,
461 0x74, 0x61, 0x69, 0x6c, 0x2f, 0x76, 0x32, 0x62, 0x65, 0x74, 0x61, 0x2f, 0x65, 0x78, 0x70, 0x6f,
462 0x72, 0x74, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a,
463 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x72, 0x65,
464 0x74, 0x61, 0x69, 0x6c, 0x2f, 0x76, 0x32, 0x62, 0x65, 0x74, 0x61, 0x2f, 0x69, 0x6d, 0x70, 0x6f,
465 0x72, 0x74, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a,
466 0x2d, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x72, 0x65,
467 0x74, 0x61, 0x69, 0x6c, 0x2f, 0x76, 0x32, 0x62, 0x65, 0x74, 0x61, 0x2f, 0x70, 0x75, 0x72, 0x67,
468 0x65, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x2b,
469 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x72, 0x65, 0x74,
470 0x61, 0x69, 0x6c, 0x2f, 0x76, 0x32, 0x62, 0x65, 0x74, 0x61, 0x2f, 0x75, 0x73, 0x65, 0x72, 0x5f,
471 0x65, 0x76, 0x65, 0x6e, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x23, 0x67, 0x6f, 0x6f,
472 0x67, 0x6c, 0x65, 0x2f, 0x6c, 0x6f, 0x6e, 0x67, 0x72, 0x75, 0x6e, 0x6e, 0x69, 0x6e, 0x67, 0x2f,
473 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
474 0x22, 0xa0, 0x01, 0x0a, 0x15, 0x57, 0x72, 0x69, 0x74, 0x65, 0x55, 0x73, 0x65, 0x72, 0x45, 0x76,
475 0x65, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1b, 0x0a, 0x06, 0x70, 0x61,
476 0x72, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52,
477 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x12, 0x49, 0x0a, 0x0a, 0x75, 0x73, 0x65, 0x72, 0x5f,
478 0x65, 0x76, 0x65, 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x67, 0x6f,
479 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x72, 0x65, 0x74, 0x61, 0x69,
480 0x6c, 0x2e, 0x76, 0x32, 0x62, 0x65, 0x74, 0x61, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x45, 0x76, 0x65,
481 0x6e, 0x74, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x09, 0x75, 0x73, 0x65, 0x72, 0x45, 0x76, 0x65,
482 0x6e, 0x74, 0x12, 0x1f, 0x0a, 0x0b, 0x77, 0x72, 0x69, 0x74, 0x65, 0x5f, 0x61, 0x73, 0x79, 0x6e,
483 0x63, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0a, 0x77, 0x72, 0x69, 0x74, 0x65, 0x41, 0x73,
484 0x79, 0x6e, 0x63, 0x22, 0xd3, 0x01, 0x0a, 0x17, 0x43, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x55,
485 0x73, 0x65, 0x72, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12,
486 0x25, 0x0a, 0x0d, 0x70, 0x72, 0x65, 0x62, 0x75, 0x69, 0x6c, 0x74, 0x5f, 0x72, 0x75, 0x6c, 0x65,
487 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x0c, 0x70, 0x72, 0x65, 0x62, 0x75, 0x69,
488 0x6c, 0x74, 0x52, 0x75, 0x6c, 0x65, 0x12, 0x1b, 0x0a, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74,
489 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x06, 0x70, 0x61, 0x72,
490 0x65, 0x6e, 0x74, 0x12, 0x22, 0x0a, 0x0a, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x65, 0x76, 0x65, 0x6e,
491 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x09, 0x75, 0x73,
492 0x65, 0x72, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x12, 0x10, 0x0a, 0x03, 0x75, 0x72, 0x69, 0x18, 0x03,
493 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x75, 0x72, 0x69, 0x12, 0x10, 0x0a, 0x03, 0x65, 0x74, 0x73,
494 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, 0x52, 0x03, 0x65, 0x74, 0x73, 0x12, 0x19, 0x0a, 0x08, 0x72,
495 0x61, 0x77, 0x5f, 0x6a, 0x73, 0x6f, 0x6e, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x72,
496 0x61, 0x77, 0x4a, 0x73, 0x6f, 0x6e, 0x42, 0x11, 0x0a, 0x0f, 0x63, 0x6f, 0x6e, 0x76, 0x65, 0x72,
497 0x73, 0x69, 0x6f, 0x6e, 0x5f, 0x72, 0x75, 0x6c, 0x65, 0x22, 0xa0, 0x02, 0x0a, 0x17, 0x52, 0x65,
498 0x6a, 0x6f, 0x69, 0x6e, 0x55, 0x73, 0x65, 0x72, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x52, 0x65,
499 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1b, 0x0a, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x18,
500 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x06, 0x70, 0x61, 0x72, 0x65,
501 0x6e, 0x74, 0x12, 0x7f, 0x0a, 0x17, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x65, 0x76, 0x65, 0x6e, 0x74,
502 0x5f, 0x72, 0x65, 0x6a, 0x6f, 0x69, 0x6e, 0x5f, 0x73, 0x63, 0x6f, 0x70, 0x65, 0x18, 0x02, 0x20,
503 0x01, 0x28, 0x0e, 0x32, 0x48, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f,
504 0x75, 0x64, 0x2e, 0x72, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x2e, 0x76, 0x32, 0x62, 0x65, 0x74, 0x61,
505 0x2e, 0x52, 0x65, 0x6a, 0x6f, 0x69, 0x6e, 0x55, 0x73, 0x65, 0x72, 0x45, 0x76, 0x65, 0x6e, 0x74,
506 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x45, 0x76, 0x65,
507 0x6e, 0x74, 0x52, 0x65, 0x6a, 0x6f, 0x69, 0x6e, 0x53, 0x63, 0x6f, 0x70, 0x65, 0x52, 0x14, 0x75,
508 0x73, 0x65, 0x72, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x6a, 0x6f, 0x69, 0x6e, 0x53, 0x63,
509 0x6f, 0x70, 0x65, 0x22, 0x67, 0x0a, 0x14, 0x55, 0x73, 0x65, 0x72, 0x45, 0x76, 0x65, 0x6e, 0x74,
510 0x52, 0x65, 0x6a, 0x6f, 0x69, 0x6e, 0x53, 0x63, 0x6f, 0x70, 0x65, 0x12, 0x27, 0x0a, 0x23, 0x55,
511 0x53, 0x45, 0x52, 0x5f, 0x45, 0x56, 0x45, 0x4e, 0x54, 0x5f, 0x52, 0x45, 0x4a, 0x4f, 0x49, 0x4e,
512 0x5f, 0x53, 0x43, 0x4f, 0x50, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49,
513 0x45, 0x44, 0x10, 0x00, 0x12, 0x11, 0x0a, 0x0d, 0x4a, 0x4f, 0x49, 0x4e, 0x45, 0x44, 0x5f, 0x45,
514 0x56, 0x45, 0x4e, 0x54, 0x53, 0x10, 0x01, 0x12, 0x13, 0x0a, 0x0f, 0x55, 0x4e, 0x4a, 0x4f, 0x49,
515 0x4e, 0x45, 0x44, 0x5f, 0x45, 0x56, 0x45, 0x4e, 0x54, 0x53, 0x10, 0x02, 0x22, 0x57, 0x0a, 0x18,
516 0x52, 0x65, 0x6a, 0x6f, 0x69, 0x6e, 0x55, 0x73, 0x65, 0x72, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x73,
517 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3b, 0x0a, 0x1a, 0x72, 0x65, 0x6a, 0x6f,
518 0x69, 0x6e, 0x65, 0x64, 0x5f, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x73,
519 0x5f, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x17, 0x72, 0x65,
520 0x6a, 0x6f, 0x69, 0x6e, 0x65, 0x64, 0x55, 0x73, 0x65, 0x72, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x73,
521 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x22, 0x1a, 0x0a, 0x18, 0x52, 0x65, 0x6a, 0x6f, 0x69, 0x6e, 0x55,
522 0x73, 0x65, 0x72, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74,
523 0x61, 0x32, 0xe7, 0x0c, 0x0a, 0x10, 0x55, 0x73, 0x65, 0x72, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x53,
524 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0xc3, 0x01, 0x0a, 0x0e, 0x57, 0x72, 0x69, 0x74, 0x65,
525 0x55, 0x73, 0x65, 0x72, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x12, 0x31, 0x2e, 0x67, 0x6f, 0x6f, 0x67,
526 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x72, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x2e,
527 0x76, 0x32, 0x62, 0x65, 0x74, 0x61, 0x2e, 0x57, 0x72, 0x69, 0x74, 0x65, 0x55, 0x73, 0x65, 0x72,
528 0x45, 0x76, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x25, 0x2e, 0x67,
529 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x72, 0x65, 0x74, 0x61,
530 0x69, 0x6c, 0x2e, 0x76, 0x32, 0x62, 0x65, 0x74, 0x61, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x45, 0x76,
531 0x65, 0x6e, 0x74, 0x22, 0x57, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x51, 0x3a, 0x0a, 0x75, 0x73, 0x65,
532 0x72, 0x5f, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x22, 0x43, 0x2f, 0x76, 0x32, 0x62, 0x65, 0x74, 0x61,
533 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74,
534 0x73, 0x2f, 0x2a, 0x2f, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x2a, 0x2f,
535 0x63, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x73, 0x2f, 0x2a, 0x7d, 0x2f, 0x75, 0x73, 0x65, 0x72,
536 0x45, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x3a, 0x77, 0x72, 0x69, 0x74, 0x65, 0x12, 0xfa, 0x01, 0x0a,
537 0x10, 0x43, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x55, 0x73, 0x65, 0x72, 0x45, 0x76, 0x65, 0x6e,
538 0x74, 0x12, 0x33, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64,
539 0x2e, 0x72, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x2e, 0x76, 0x32, 0x62, 0x65, 0x74, 0x61, 0x2e, 0x43,
540 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x55, 0x73, 0x65, 0x72, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x52,
541 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x14, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e,
542 0x61, 0x70, 0x69, 0x2e, 0x48, 0x74, 0x74, 0x70, 0x42, 0x6f, 0x64, 0x79, 0x22, 0x9a, 0x01, 0x82,
543 0xd3, 0xe4, 0x93, 0x02, 0x93, 0x01, 0x5a, 0x4a, 0x3a, 0x01, 0x2a, 0x22, 0x45, 0x2f, 0x76, 0x32,
544 0x62, 0x65, 0x74, 0x61, 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x3d, 0x70, 0x72, 0x6f,
545 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e,
546 0x73, 0x2f, 0x2a, 0x2f, 0x63, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x73, 0x2f, 0x2a, 0x7d, 0x2f,
547 0x75, 0x73, 0x65, 0x72, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x3a, 0x63, 0x6f, 0x6c, 0x6c, 0x65,
548 0x63, 0x74, 0x12, 0x45, 0x2f, 0x76, 0x32, 0x62, 0x65, 0x74, 0x61, 0x2f, 0x7b, 0x70, 0x61, 0x72,
549 0x65, 0x6e, 0x74, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x6c,
550 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x2a, 0x2f, 0x63, 0x61, 0x74, 0x61, 0x6c,
551 0x6f, 0x67, 0x73, 0x2f, 0x2a, 0x7d, 0x2f, 0x75, 0x73, 0x65, 0x72, 0x45, 0x76, 0x65, 0x6e, 0x74,
552 0x73, 0x3a, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x12, 0x96, 0x02, 0x0a, 0x0f, 0x50, 0x75,
553 0x72, 0x67, 0x65, 0x55, 0x73, 0x65, 0x72, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x12, 0x32, 0x2e,
554 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x72, 0x65, 0x74,
555 0x61, 0x69, 0x6c, 0x2e, 0x76, 0x32, 0x62, 0x65, 0x74, 0x61, 0x2e, 0x50, 0x75, 0x72, 0x67, 0x65,
556 0x55, 0x73, 0x65, 0x72, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,
557 0x74, 0x1a, 0x1d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x6c, 0x6f, 0x6e, 0x67, 0x72,
558 0x75, 0x6e, 0x6e, 0x69, 0x6e, 0x67, 0x2e, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e,
559 0x22, 0xaf, 0x01, 0xca, 0x41, 0x5e, 0x0a, 0x32, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63,
560 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x72, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x2e, 0x76, 0x32, 0x62, 0x65,
561 0x74, 0x61, 0x2e, 0x50, 0x75, 0x72, 0x67, 0x65, 0x55, 0x73, 0x65, 0x72, 0x45, 0x76, 0x65, 0x6e,
562 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x28, 0x67, 0x6f, 0x6f, 0x67,
563 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x72, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x2e,
564 0x76, 0x32, 0x62, 0x65, 0x74, 0x61, 0x2e, 0x50, 0x75, 0x72, 0x67, 0x65, 0x4d, 0x65, 0x74, 0x61,
565 0x64, 0x61, 0x74, 0x61, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x48, 0x3a, 0x01, 0x2a, 0x22, 0x43, 0x2f,
566 0x76, 0x32, 0x62, 0x65, 0x74, 0x61, 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x3d, 0x70,
567 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69,
568 0x6f, 0x6e, 0x73, 0x2f, 0x2a, 0x2f, 0x63, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x73, 0x2f, 0x2a,
569 0x7d, 0x2f, 0x75, 0x73, 0x65, 0x72, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x3a, 0x70, 0x75, 0x72,
570 0x67, 0x65, 0x12, 0x9b, 0x02, 0x0a, 0x10, 0x49, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x55, 0x73, 0x65,
571 0x72, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x12, 0x33, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
572 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x72, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x2e, 0x76, 0x32,
573 0x62, 0x65, 0x74, 0x61, 0x2e, 0x49, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x55, 0x73, 0x65, 0x72, 0x45,
574 0x76, 0x65, 0x6e, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1d, 0x2e, 0x67,
575 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x6c, 0x6f, 0x6e, 0x67, 0x72, 0x75, 0x6e, 0x6e, 0x69, 0x6e,
576 0x67, 0x2e, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0xb2, 0x01, 0xca, 0x41,
577 0x60, 0x0a, 0x33, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e,
578 0x72, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x2e, 0x76, 0x32, 0x62, 0x65, 0x74, 0x61, 0x2e, 0x49, 0x6d,
579 0x70, 0x6f, 0x72, 0x74, 0x55, 0x73, 0x65, 0x72, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x52, 0x65,
580 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x29, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63,
581 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x72, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x2e, 0x76, 0x32, 0x62, 0x65,
582 0x74, 0x61, 0x2e, 0x49, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74,
583 0x61, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x49, 0x3a, 0x01, 0x2a, 0x22, 0x44, 0x2f, 0x76, 0x32, 0x62,
584 0x65, 0x74, 0x61, 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x3d, 0x70, 0x72, 0x6f, 0x6a,
585 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73,
586 0x2f, 0x2a, 0x2f, 0x63, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x73, 0x2f, 0x2a, 0x7d, 0x2f, 0x75,
587 0x73, 0x65, 0x72, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x3a, 0x69, 0x6d, 0x70, 0x6f, 0x72, 0x74,
588 0x12, 0x9b, 0x02, 0x0a, 0x10, 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x55, 0x73, 0x65, 0x72, 0x45,
589 0x76, 0x65, 0x6e, 0x74, 0x73, 0x12, 0x33, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63,
590 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x72, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x2e, 0x76, 0x32, 0x62, 0x65,
591 0x74, 0x61, 0x2e, 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x55, 0x73, 0x65, 0x72, 0x45, 0x76, 0x65,
592 0x6e, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1d, 0x2e, 0x67, 0x6f, 0x6f,
593 0x67, 0x6c, 0x65, 0x2e, 0x6c, 0x6f, 0x6e, 0x67, 0x72, 0x75, 0x6e, 0x6e, 0x69, 0x6e, 0x67, 0x2e,
594 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0xb2, 0x01, 0xca, 0x41, 0x60, 0x0a,
595 0x33, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x72, 0x65,
596 0x74, 0x61, 0x69, 0x6c, 0x2e, 0x76, 0x32, 0x62, 0x65, 0x74, 0x61, 0x2e, 0x45, 0x78, 0x70, 0x6f,
597 0x72, 0x74, 0x55, 0x73, 0x65, 0x72, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70,
598 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x29, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f,
599 0x75, 0x64, 0x2e, 0x72, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x2e, 0x76, 0x32, 0x62, 0x65, 0x74, 0x61,
600 0x2e, 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x82,
601 0xd3, 0xe4, 0x93, 0x02, 0x49, 0x3a, 0x01, 0x2a, 0x22, 0x44, 0x2f, 0x76, 0x32, 0x62, 0x65, 0x74,
602 0x61, 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63,
603 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x2a,
604 0x2f, 0x63, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x73, 0x2f, 0x2a, 0x7d, 0x2f, 0x75, 0x73, 0x65,
605 0x72, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x3a, 0x65, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x12, 0xef,
606 0x01, 0x0a, 0x10, 0x52, 0x65, 0x6a, 0x6f, 0x69, 0x6e, 0x55, 0x73, 0x65, 0x72, 0x45, 0x76, 0x65,
607 0x6e, 0x74, 0x73, 0x12, 0x33, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f,
608 0x75, 0x64, 0x2e, 0x72, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x2e, 0x76, 0x32, 0x62, 0x65, 0x74, 0x61,
609 0x2e, 0x52, 0x65, 0x6a, 0x6f, 0x69, 0x6e, 0x55, 0x73, 0x65, 0x72, 0x45, 0x76, 0x65, 0x6e, 0x74,
610 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c,
611 0x65, 0x2e, 0x6c, 0x6f, 0x6e, 0x67, 0x72, 0x75, 0x6e, 0x6e, 0x69, 0x6e, 0x67, 0x2e, 0x4f, 0x70,
612 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x86, 0x01, 0xca, 0x41, 0x34, 0x0a, 0x18, 0x52,
613 0x65, 0x6a, 0x6f, 0x69, 0x6e, 0x55, 0x73, 0x65, 0x72, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x52,
614 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x18, 0x52, 0x65, 0x6a, 0x6f, 0x69, 0x6e, 0x55,
615 0x73, 0x65, 0x72, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74,
616 0x61, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x49, 0x3a, 0x01, 0x2a, 0x22, 0x44, 0x2f, 0x76, 0x32, 0x62,
617 0x65, 0x74, 0x61, 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x3d, 0x70, 0x72, 0x6f, 0x6a,
618 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73,
619 0x2f, 0x2a, 0x2f, 0x63, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x73, 0x2f, 0x2a, 0x7d, 0x2f, 0x75,
620 0x73, 0x65, 0x72, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x3a, 0x72, 0x65, 0x6a, 0x6f, 0x69, 0x6e,
621 0x1a, 0x49, 0xca, 0x41, 0x15, 0x72, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x2e, 0x67, 0x6f, 0x6f, 0x67,
622 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0xd2, 0x41, 0x2e, 0x68, 0x74, 0x74,
623 0x70, 0x73, 0x3a, 0x2f, 0x2f, 0x77, 0x77, 0x77, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61,
624 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x61, 0x75, 0x74, 0x68, 0x2f, 0x63, 0x6c, 0x6f,
625 0x75, 0x64, 0x2d, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x42, 0xd4, 0x01, 0x0a, 0x1e,
626 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64,
627 0x2e, 0x72, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x2e, 0x76, 0x32, 0x62, 0x65, 0x74, 0x61, 0x42, 0x15,
628 0x55, 0x73, 0x65, 0x72, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65,
629 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x36, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x67,
630 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x6f, 0x2f, 0x72, 0x65, 0x74,
631 0x61, 0x69, 0x6c, 0x2f, 0x61, 0x70, 0x69, 0x76, 0x32, 0x62, 0x65, 0x74, 0x61, 0x2f, 0x72, 0x65,
632 0x74, 0x61, 0x69, 0x6c, 0x70, 0x62, 0x3b, 0x72, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x70, 0x62, 0xa2,
633 0x02, 0x06, 0x52, 0x45, 0x54, 0x41, 0x49, 0x4c, 0xaa, 0x02, 0x1a, 0x47, 0x6f, 0x6f, 0x67, 0x6c,
634 0x65, 0x2e, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x52, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x2e, 0x56,
635 0x32, 0x42, 0x65, 0x74, 0x61, 0xca, 0x02, 0x1a, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x5c, 0x43,
636 0x6c, 0x6f, 0x75, 0x64, 0x5c, 0x52, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x5c, 0x56, 0x32, 0x62, 0x65,
637 0x74, 0x61, 0xea, 0x02, 0x1d, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x3a, 0x3a, 0x43, 0x6c, 0x6f,
638 0x75, 0x64, 0x3a, 0x3a, 0x52, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x3a, 0x3a, 0x56, 0x32, 0x62, 0x65,
639 0x74, 0x61, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
640 }
641
642 var (
643 file_google_cloud_retail_v2beta_user_event_service_proto_rawDescOnce sync.Once
644 file_google_cloud_retail_v2beta_user_event_service_proto_rawDescData = file_google_cloud_retail_v2beta_user_event_service_proto_rawDesc
645 )
646
647 func file_google_cloud_retail_v2beta_user_event_service_proto_rawDescGZIP() []byte {
648 file_google_cloud_retail_v2beta_user_event_service_proto_rawDescOnce.Do(func() {
649 file_google_cloud_retail_v2beta_user_event_service_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_cloud_retail_v2beta_user_event_service_proto_rawDescData)
650 })
651 return file_google_cloud_retail_v2beta_user_event_service_proto_rawDescData
652 }
653
654 var file_google_cloud_retail_v2beta_user_event_service_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
655 var file_google_cloud_retail_v2beta_user_event_service_proto_msgTypes = make([]protoimpl.MessageInfo, 5)
656 var file_google_cloud_retail_v2beta_user_event_service_proto_goTypes = []any{
657 (RejoinUserEventsRequest_UserEventRejoinScope)(0), // 0: google.cloud.retail.v2beta.RejoinUserEventsRequest.UserEventRejoinScope
658 (*WriteUserEventRequest)(nil), // 1: google.cloud.retail.v2beta.WriteUserEventRequest
659 (*CollectUserEventRequest)(nil), // 2: google.cloud.retail.v2beta.CollectUserEventRequest
660 (*RejoinUserEventsRequest)(nil), // 3: google.cloud.retail.v2beta.RejoinUserEventsRequest
661 (*RejoinUserEventsResponse)(nil), // 4: google.cloud.retail.v2beta.RejoinUserEventsResponse
662 (*RejoinUserEventsMetadata)(nil), // 5: google.cloud.retail.v2beta.RejoinUserEventsMetadata
663 (*UserEvent)(nil), // 6: google.cloud.retail.v2beta.UserEvent
664 (*PurgeUserEventsRequest)(nil), // 7: google.cloud.retail.v2beta.PurgeUserEventsRequest
665 (*ImportUserEventsRequest)(nil), // 8: google.cloud.retail.v2beta.ImportUserEventsRequest
666 (*ExportUserEventsRequest)(nil), // 9: google.cloud.retail.v2beta.ExportUserEventsRequest
667 (*httpbody.HttpBody)(nil), // 10: google.api.HttpBody
668 (*longrunningpb.Operation)(nil), // 11: google.longrunning.Operation
669 }
670 var file_google_cloud_retail_v2beta_user_event_service_proto_depIdxs = []int32{
671 6, // 0: google.cloud.retail.v2beta.WriteUserEventRequest.user_event:type_name -> google.cloud.retail.v2beta.UserEvent
672 0, // 1: google.cloud.retail.v2beta.RejoinUserEventsRequest.user_event_rejoin_scope:type_name -> google.cloud.retail.v2beta.RejoinUserEventsRequest.UserEventRejoinScope
673 1, // 2: google.cloud.retail.v2beta.UserEventService.WriteUserEvent:input_type -> google.cloud.retail.v2beta.WriteUserEventRequest
674 2, // 3: google.cloud.retail.v2beta.UserEventService.CollectUserEvent:input_type -> google.cloud.retail.v2beta.CollectUserEventRequest
675 7, // 4: google.cloud.retail.v2beta.UserEventService.PurgeUserEvents:input_type -> google.cloud.retail.v2beta.PurgeUserEventsRequest
676 8, // 5: google.cloud.retail.v2beta.UserEventService.ImportUserEvents:input_type -> google.cloud.retail.v2beta.ImportUserEventsRequest
677 9, // 6: google.cloud.retail.v2beta.UserEventService.ExportUserEvents:input_type -> google.cloud.retail.v2beta.ExportUserEventsRequest
678 3, // 7: google.cloud.retail.v2beta.UserEventService.RejoinUserEvents:input_type -> google.cloud.retail.v2beta.RejoinUserEventsRequest
679 6, // 8: google.cloud.retail.v2beta.UserEventService.WriteUserEvent:output_type -> google.cloud.retail.v2beta.UserEvent
680 10, // 9: google.cloud.retail.v2beta.UserEventService.CollectUserEvent:output_type -> google.api.HttpBody
681 11, // 10: google.cloud.retail.v2beta.UserEventService.PurgeUserEvents:output_type -> google.longrunning.Operation
682 11, // 11: google.cloud.retail.v2beta.UserEventService.ImportUserEvents:output_type -> google.longrunning.Operation
683 11, // 12: google.cloud.retail.v2beta.UserEventService.ExportUserEvents:output_type -> google.longrunning.Operation
684 11, // 13: google.cloud.retail.v2beta.UserEventService.RejoinUserEvents:output_type -> google.longrunning.Operation
685 8, // [8:14] is the sub-list for method output_type
686 2, // [2:8] is the sub-list for method input_type
687 2, // [2:2] is the sub-list for extension type_name
688 2, // [2:2] is the sub-list for extension extendee
689 0, // [0:2] is the sub-list for field type_name
690 }
691
692 func init() { file_google_cloud_retail_v2beta_user_event_service_proto_init() }
693 func file_google_cloud_retail_v2beta_user_event_service_proto_init() {
694 if File_google_cloud_retail_v2beta_user_event_service_proto != nil {
695 return
696 }
697 file_google_cloud_retail_v2beta_export_config_proto_init()
698 file_google_cloud_retail_v2beta_import_config_proto_init()
699 file_google_cloud_retail_v2beta_purge_config_proto_init()
700 file_google_cloud_retail_v2beta_user_event_proto_init()
701 file_google_cloud_retail_v2beta_user_event_service_proto_msgTypes[1].OneofWrappers = []any{
702 (*CollectUserEventRequest_PrebuiltRule)(nil),
703 }
704 type x struct{}
705 out := protoimpl.TypeBuilder{
706 File: protoimpl.DescBuilder{
707 GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
708 RawDescriptor: file_google_cloud_retail_v2beta_user_event_service_proto_rawDesc,
709 NumEnums: 1,
710 NumMessages: 5,
711 NumExtensions: 0,
712 NumServices: 1,
713 },
714 GoTypes: file_google_cloud_retail_v2beta_user_event_service_proto_goTypes,
715 DependencyIndexes: file_google_cloud_retail_v2beta_user_event_service_proto_depIdxs,
716 EnumInfos: file_google_cloud_retail_v2beta_user_event_service_proto_enumTypes,
717 MessageInfos: file_google_cloud_retail_v2beta_user_event_service_proto_msgTypes,
718 }.Build()
719 File_google_cloud_retail_v2beta_user_event_service_proto = out.File
720 file_google_cloud_retail_v2beta_user_event_service_proto_rawDesc = nil
721 file_google_cloud_retail_v2beta_user_event_service_proto_goTypes = nil
722 file_google_cloud_retail_v2beta_user_event_service_proto_depIdxs = nil
723 }
724
725 // Reference imports to suppress errors if they are not otherwise used.
726 var _ context.Context
727 var _ grpc.ClientConnInterface
728
729 // This is a compile-time assertion to ensure that this generated file
730 // is compatible with the grpc package it is being compiled against.
731 const _ = grpc.SupportPackageIsVersion6
732
733 // UserEventServiceClient is the client API for UserEventService service.
734 //
735 // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
736 type UserEventServiceClient interface {
737 // Writes a single user event.
738 WriteUserEvent(ctx context.Context, in *WriteUserEventRequest, opts ...grpc.CallOption) (*UserEvent, error)
739 // Writes a single user event from the browser.
740 //
741 // For larger user event payload over 16 KB, the POST method should be used
742 // instead, otherwise a 400 Bad Request error is returned.
743 //
744 // This method is used only by the Retail API JavaScript pixel and Google Tag
745 // Manager. Users should not call this method directly.
746 CollectUserEvent(ctx context.Context, in *CollectUserEventRequest, opts ...grpc.CallOption) (*httpbody.HttpBody, error)
747 // Deletes permanently all user events specified by the filter provided.
748 // Depending on the number of events specified by the filter, this operation
749 // could take hours or days to complete. To test a filter, use the list
750 // command first.
751 PurgeUserEvents(ctx context.Context, in *PurgeUserEventsRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error)
752 // Bulk import of User events. Request processing might be
753 // synchronous. Events that already exist are skipped.
754 // Use this method for backfilling historical user events.
755 //
756 // `Operation.response` is of type `ImportResponse`. Note that it is
757 // possible for a subset of the items to be successfully inserted.
758 // `Operation.metadata` is of type `ImportMetadata`.
759 ImportUserEvents(ctx context.Context, in *ImportUserEventsRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error)
760 // Exports user events.
761 //
762 // `Operation.response` is of type `ExportResponse`.
763 // `Operation.metadata` is of type `ExportMetadata`.
764 ExportUserEvents(ctx context.Context, in *ExportUserEventsRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error)
765 // Starts a user-event rejoin operation with latest product catalog. Events
766 // are not annotated with detailed product information for products that are
767 // missing from the catalog when the user event is ingested. These
768 // events are stored as unjoined events with limited usage on training and
769 // serving. You can use this method to start a join operation on specified
770 // events with the latest version of product catalog. You can also use this
771 // method to correct events joined with the wrong product catalog. A rejoin
772 // operation can take hours or days to complete.
773 RejoinUserEvents(ctx context.Context, in *RejoinUserEventsRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error)
774 }
775
776 type userEventServiceClient struct {
777 cc grpc.ClientConnInterface
778 }
779
780 func NewUserEventServiceClient(cc grpc.ClientConnInterface) UserEventServiceClient {
781 return &userEventServiceClient{cc}
782 }
783
784 func (c *userEventServiceClient) WriteUserEvent(ctx context.Context, in *WriteUserEventRequest, opts ...grpc.CallOption) (*UserEvent, error) {
785 out := new(UserEvent)
786 err := c.cc.Invoke(ctx, "/google.cloud.retail.v2beta.UserEventService/WriteUserEvent", in, out, opts...)
787 if err != nil {
788 return nil, err
789 }
790 return out, nil
791 }
792
793 func (c *userEventServiceClient) CollectUserEvent(ctx context.Context, in *CollectUserEventRequest, opts ...grpc.CallOption) (*httpbody.HttpBody, error) {
794 out := new(httpbody.HttpBody)
795 err := c.cc.Invoke(ctx, "/google.cloud.retail.v2beta.UserEventService/CollectUserEvent", in, out, opts...)
796 if err != nil {
797 return nil, err
798 }
799 return out, nil
800 }
801
802 func (c *userEventServiceClient) PurgeUserEvents(ctx context.Context, in *PurgeUserEventsRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) {
803 out := new(longrunningpb.Operation)
804 err := c.cc.Invoke(ctx, "/google.cloud.retail.v2beta.UserEventService/PurgeUserEvents", in, out, opts...)
805 if err != nil {
806 return nil, err
807 }
808 return out, nil
809 }
810
811 func (c *userEventServiceClient) ImportUserEvents(ctx context.Context, in *ImportUserEventsRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) {
812 out := new(longrunningpb.Operation)
813 err := c.cc.Invoke(ctx, "/google.cloud.retail.v2beta.UserEventService/ImportUserEvents", in, out, opts...)
814 if err != nil {
815 return nil, err
816 }
817 return out, nil
818 }
819
820 func (c *userEventServiceClient) ExportUserEvents(ctx context.Context, in *ExportUserEventsRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) {
821 out := new(longrunningpb.Operation)
822 err := c.cc.Invoke(ctx, "/google.cloud.retail.v2beta.UserEventService/ExportUserEvents", in, out, opts...)
823 if err != nil {
824 return nil, err
825 }
826 return out, nil
827 }
828
829 func (c *userEventServiceClient) RejoinUserEvents(ctx context.Context, in *RejoinUserEventsRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) {
830 out := new(longrunningpb.Operation)
831 err := c.cc.Invoke(ctx, "/google.cloud.retail.v2beta.UserEventService/RejoinUserEvents", in, out, opts...)
832 if err != nil {
833 return nil, err
834 }
835 return out, nil
836 }
837
838 // UserEventServiceServer is the server API for UserEventService service.
839 type UserEventServiceServer interface {
840 // Writes a single user event.
841 WriteUserEvent(context.Context, *WriteUserEventRequest) (*UserEvent, error)
842 // Writes a single user event from the browser.
843 //
844 // For larger user event payload over 16 KB, the POST method should be used
845 // instead, otherwise a 400 Bad Request error is returned.
846 //
847 // This method is used only by the Retail API JavaScript pixel and Google Tag
848 // Manager. Users should not call this method directly.
849 CollectUserEvent(context.Context, *CollectUserEventRequest) (*httpbody.HttpBody, error)
850 // Deletes permanently all user events specified by the filter provided.
851 // Depending on the number of events specified by the filter, this operation
852 // could take hours or days to complete. To test a filter, use the list
853 // command first.
854 PurgeUserEvents(context.Context, *PurgeUserEventsRequest) (*longrunningpb.Operation, error)
855 // Bulk import of User events. Request processing might be
856 // synchronous. Events that already exist are skipped.
857 // Use this method for backfilling historical user events.
858 //
859 // `Operation.response` is of type `ImportResponse`. Note that it is
860 // possible for a subset of the items to be successfully inserted.
861 // `Operation.metadata` is of type `ImportMetadata`.
862 ImportUserEvents(context.Context, *ImportUserEventsRequest) (*longrunningpb.Operation, error)
863 // Exports user events.
864 //
865 // `Operation.response` is of type `ExportResponse`.
866 // `Operation.metadata` is of type `ExportMetadata`.
867 ExportUserEvents(context.Context, *ExportUserEventsRequest) (*longrunningpb.Operation, error)
868 // Starts a user-event rejoin operation with latest product catalog. Events
869 // are not annotated with detailed product information for products that are
870 // missing from the catalog when the user event is ingested. These
871 // events are stored as unjoined events with limited usage on training and
872 // serving. You can use this method to start a join operation on specified
873 // events with the latest version of product catalog. You can also use this
874 // method to correct events joined with the wrong product catalog. A rejoin
875 // operation can take hours or days to complete.
876 RejoinUserEvents(context.Context, *RejoinUserEventsRequest) (*longrunningpb.Operation, error)
877 }
878
879 // UnimplementedUserEventServiceServer can be embedded to have forward compatible implementations.
880 type UnimplementedUserEventServiceServer struct {
881 }
882
883 func (*UnimplementedUserEventServiceServer) WriteUserEvent(context.Context, *WriteUserEventRequest) (*UserEvent, error) {
884 return nil, status.Errorf(codes.Unimplemented, "method WriteUserEvent not implemented")
885 }
886 func (*UnimplementedUserEventServiceServer) CollectUserEvent(context.Context, *CollectUserEventRequest) (*httpbody.HttpBody, error) {
887 return nil, status.Errorf(codes.Unimplemented, "method CollectUserEvent not implemented")
888 }
889 func (*UnimplementedUserEventServiceServer) PurgeUserEvents(context.Context, *PurgeUserEventsRequest) (*longrunningpb.Operation, error) {
890 return nil, status.Errorf(codes.Unimplemented, "method PurgeUserEvents not implemented")
891 }
892 func (*UnimplementedUserEventServiceServer) ImportUserEvents(context.Context, *ImportUserEventsRequest) (*longrunningpb.Operation, error) {
893 return nil, status.Errorf(codes.Unimplemented, "method ImportUserEvents not implemented")
894 }
895 func (*UnimplementedUserEventServiceServer) ExportUserEvents(context.Context, *ExportUserEventsRequest) (*longrunningpb.Operation, error) {
896 return nil, status.Errorf(codes.Unimplemented, "method ExportUserEvents not implemented")
897 }
898 func (*UnimplementedUserEventServiceServer) RejoinUserEvents(context.Context, *RejoinUserEventsRequest) (*longrunningpb.Operation, error) {
899 return nil, status.Errorf(codes.Unimplemented, "method RejoinUserEvents not implemented")
900 }
901
902 func RegisterUserEventServiceServer(s *grpc.Server, srv UserEventServiceServer) {
903 s.RegisterService(&_UserEventService_serviceDesc, srv)
904 }
905
906 func _UserEventService_WriteUserEvent_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
907 in := new(WriteUserEventRequest)
908 if err := dec(in); err != nil {
909 return nil, err
910 }
911 if interceptor == nil {
912 return srv.(UserEventServiceServer).WriteUserEvent(ctx, in)
913 }
914 info := &grpc.UnaryServerInfo{
915 Server: srv,
916 FullMethod: "/google.cloud.retail.v2beta.UserEventService/WriteUserEvent",
917 }
918 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
919 return srv.(UserEventServiceServer).WriteUserEvent(ctx, req.(*WriteUserEventRequest))
920 }
921 return interceptor(ctx, in, info, handler)
922 }
923
924 func _UserEventService_CollectUserEvent_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
925 in := new(CollectUserEventRequest)
926 if err := dec(in); err != nil {
927 return nil, err
928 }
929 if interceptor == nil {
930 return srv.(UserEventServiceServer).CollectUserEvent(ctx, in)
931 }
932 info := &grpc.UnaryServerInfo{
933 Server: srv,
934 FullMethod: "/google.cloud.retail.v2beta.UserEventService/CollectUserEvent",
935 }
936 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
937 return srv.(UserEventServiceServer).CollectUserEvent(ctx, req.(*CollectUserEventRequest))
938 }
939 return interceptor(ctx, in, info, handler)
940 }
941
942 func _UserEventService_PurgeUserEvents_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
943 in := new(PurgeUserEventsRequest)
944 if err := dec(in); err != nil {
945 return nil, err
946 }
947 if interceptor == nil {
948 return srv.(UserEventServiceServer).PurgeUserEvents(ctx, in)
949 }
950 info := &grpc.UnaryServerInfo{
951 Server: srv,
952 FullMethod: "/google.cloud.retail.v2beta.UserEventService/PurgeUserEvents",
953 }
954 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
955 return srv.(UserEventServiceServer).PurgeUserEvents(ctx, req.(*PurgeUserEventsRequest))
956 }
957 return interceptor(ctx, in, info, handler)
958 }
959
960 func _UserEventService_ImportUserEvents_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
961 in := new(ImportUserEventsRequest)
962 if err := dec(in); err != nil {
963 return nil, err
964 }
965 if interceptor == nil {
966 return srv.(UserEventServiceServer).ImportUserEvents(ctx, in)
967 }
968 info := &grpc.UnaryServerInfo{
969 Server: srv,
970 FullMethod: "/google.cloud.retail.v2beta.UserEventService/ImportUserEvents",
971 }
972 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
973 return srv.(UserEventServiceServer).ImportUserEvents(ctx, req.(*ImportUserEventsRequest))
974 }
975 return interceptor(ctx, in, info, handler)
976 }
977
978 func _UserEventService_ExportUserEvents_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
979 in := new(ExportUserEventsRequest)
980 if err := dec(in); err != nil {
981 return nil, err
982 }
983 if interceptor == nil {
984 return srv.(UserEventServiceServer).ExportUserEvents(ctx, in)
985 }
986 info := &grpc.UnaryServerInfo{
987 Server: srv,
988 FullMethod: "/google.cloud.retail.v2beta.UserEventService/ExportUserEvents",
989 }
990 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
991 return srv.(UserEventServiceServer).ExportUserEvents(ctx, req.(*ExportUserEventsRequest))
992 }
993 return interceptor(ctx, in, info, handler)
994 }
995
996 func _UserEventService_RejoinUserEvents_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
997 in := new(RejoinUserEventsRequest)
998 if err := dec(in); err != nil {
999 return nil, err
1000 }
1001 if interceptor == nil {
1002 return srv.(UserEventServiceServer).RejoinUserEvents(ctx, in)
1003 }
1004 info := &grpc.UnaryServerInfo{
1005 Server: srv,
1006 FullMethod: "/google.cloud.retail.v2beta.UserEventService/RejoinUserEvents",
1007 }
1008 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
1009 return srv.(UserEventServiceServer).RejoinUserEvents(ctx, req.(*RejoinUserEventsRequest))
1010 }
1011 return interceptor(ctx, in, info, handler)
1012 }
1013
1014 var _UserEventService_serviceDesc = grpc.ServiceDesc{
1015 ServiceName: "google.cloud.retail.v2beta.UserEventService",
1016 HandlerType: (*UserEventServiceServer)(nil),
1017 Methods: []grpc.MethodDesc{
1018 {
1019 MethodName: "WriteUserEvent",
1020 Handler: _UserEventService_WriteUserEvent_Handler,
1021 },
1022 {
1023 MethodName: "CollectUserEvent",
1024 Handler: _UserEventService_CollectUserEvent_Handler,
1025 },
1026 {
1027 MethodName: "PurgeUserEvents",
1028 Handler: _UserEventService_PurgeUserEvents_Handler,
1029 },
1030 {
1031 MethodName: "ImportUserEvents",
1032 Handler: _UserEventService_ImportUserEvents_Handler,
1033 },
1034 {
1035 MethodName: "ExportUserEvents",
1036 Handler: _UserEventService_ExportUserEvents_Handler,
1037 },
1038 {
1039 MethodName: "RejoinUserEvents",
1040 Handler: _UserEventService_RejoinUserEvents_Handler,
1041 },
1042 },
1043 Streams: []grpc.StreamDesc{},
1044 Metadata: "google/cloud/retail/v2beta/user_event_service.proto",
1045 }