| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
|
| 13 |
|
| 14 |
|
| 15 |
|
| 16 |
|
| 17 |
|
| 18 |
|
| 19 |
|
| 20 |
|
| 21 |
package retailpb |
| 22 |
|
| 23 |
import ( |
| 24 |
context "context" |
| 25 |
_ "google.golang.org/genproto/googleapis/api/annotations" |
| 26 |
grpc "google.golang.org/grpc" |
| 27 |
codes "google.golang.org/grpc/codes" |
| 28 |
status "google.golang.org/grpc/status" |
| 29 |
protoreflect "google.golang.org/protobuf/reflect/protoreflect" |
| 30 |
protoimpl "google.golang.org/protobuf/runtime/protoimpl" |
| 31 |
structpb "google.golang.org/protobuf/types/known/structpb" |
| 32 |
reflect "reflect" |
| 33 |
sync "sync" |
| 34 |
) |
| 35 |
|
| 36 |
const ( |
| 37 |
|
| 38 |
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) |
| 39 |
|
| 40 |
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) |
| 41 |
) |
| 42 |
|
| 43 |
|
| 44 |
type PredictRequest struct { |
| 45 |
state protoimpl.MessageState |
| 46 |
sizeCache protoimpl.SizeCache |
| 47 |
unknownFields protoimpl.UnknownFields |
| 48 |
|
| 49 |
|
| 50 |
|
| 51 |
|
| 52 |
|
| 53 |
|
| 54 |
|
| 55 |
|
| 56 |
|
| 57 |
|
| 58 |
|
| 59 |
|
| 60 |
|
| 61 |
|
| 62 |
|
| 63 |
Placement string `protobuf:"bytes,1,opt,name=placement,proto3" json:"placement,omitempty"` |
| 64 |
|
| 65 |
|
| 66 |
|
| 67 |
|
| 68 |
|
| 69 |
|
| 70 |
|
| 71 |
|
| 72 |
|
| 73 |
|
| 74 |
|
| 75 |
|
| 76 |
|
| 77 |
|
| 78 |
UserEvent *UserEvent `protobuf:"bytes,2,opt,name=user_event,json=userEvent,proto3" json:"user_event,omitempty"` |
| 79 |
|
| 80 |
|
| 81 |
|
| 82 |
|
| 83 |
PageSize int32 `protobuf:"varint,3,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` |
| 84 |
|
| 85 |
|
| 86 |
|
| 87 |
PageToken string `protobuf:"bytes,4,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` |
| 88 |
|
| 89 |
|
| 90 |
|
| 91 |
|
| 92 |
|
| 93 |
|
| 94 |
|
| 95 |
|
| 96 |
|
| 97 |
|
| 98 |
|
| 99 |
|
| 100 |
|
| 101 |
|
| 102 |
|
| 103 |
|
| 104 |
|
| 105 |
|
| 106 |
|
| 107 |
|
| 108 |
|
| 109 |
|
| 110 |
|
| 111 |
|
| 112 |
|
| 113 |
|
| 114 |
|
| 115 |
|
| 116 |
|
| 117 |
|
| 118 |
|
| 119 |
|
| 120 |
|
| 121 |
|
| 122 |
|
| 123 |
|
| 124 |
|
| 125 |
|
| 126 |
|
| 127 |
Filter string `protobuf:"bytes,5,opt,name=filter,proto3" json:"filter,omitempty"` |
| 128 |
|
| 129 |
|
| 130 |
|
| 131 |
|
| 132 |
ValidateOnly bool `protobuf:"varint,6,opt,name=validate_only,json=validateOnly,proto3" json:"validate_only,omitempty"` |
| 133 |
|
| 134 |
|
| 135 |
|
| 136 |
|
| 137 |
|
| 138 |
|
| 139 |
|
| 140 |
|
| 141 |
|
| 142 |
|
| 143 |
|
| 144 |
|
| 145 |
|
| 146 |
|
| 147 |
|
| 148 |
|
| 149 |
|
| 150 |
|
| 151 |
|
| 152 |
|
| 153 |
|
| 154 |
|
| 155 |
|
| 156 |
|
| 157 |
|
| 158 |
|
| 159 |
|
| 160 |
Params map[string]*structpb.Value `protobuf:"bytes,7,rep,name=params,proto3" json:"params,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` |
| 161 |
|
| 162 |
|
| 163 |
|
| 164 |
|
| 165 |
|
| 166 |
|
| 167 |
|
| 168 |
|
| 169 |
|
| 170 |
|
| 171 |
|
| 172 |
|
| 173 |
|
| 174 |
|
| 175 |
|
| 176 |
|
| 177 |
|
| 178 |
Labels map[string]string `protobuf:"bytes,8,rep,name=labels,proto3" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` |
| 179 |
} |
| 180 |
|
| 181 |
func (x *PredictRequest) Reset() { |
| 182 |
*x = PredictRequest{} |
| 183 |
mi := &file_google_cloud_retail_v2_prediction_service_proto_msgTypes[0] |
| 184 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 185 |
ms.StoreMessageInfo(mi) |
| 186 |
} |
| 187 |
|
| 188 |
func (x *PredictRequest) String() string { |
| 189 |
return protoimpl.X.MessageStringOf(x) |
| 190 |
} |
| 191 |
|
| 192 |
func (*PredictRequest) ProtoMessage() {} |
| 193 |
|
| 194 |
func (x *PredictRequest) ProtoReflect() protoreflect.Message { |
| 195 |
mi := &file_google_cloud_retail_v2_prediction_service_proto_msgTypes[0] |
| 196 |
if x != nil { |
| 197 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 198 |
if ms.LoadMessageInfo() == nil { |
| 199 |
ms.StoreMessageInfo(mi) |
| 200 |
} |
| 201 |
return ms |
| 202 |
} |
| 203 |
return mi.MessageOf(x) |
| 204 |
} |
| 205 |
|
| 206 |
|
| 207 |
func (*PredictRequest) Descriptor() ([]byte, []int) { |
| 208 |
return file_google_cloud_retail_v2_prediction_service_proto_rawDescGZIP(), []int{0} |
| 209 |
} |
| 210 |
|
| 211 |
func (x *PredictRequest) GetPlacement() string { |
| 212 |
if x != nil { |
| 213 |
return x.Placement |
| 214 |
} |
| 215 |
return "" |
| 216 |
} |
| 217 |
|
| 218 |
func (x *PredictRequest) GetUserEvent() *UserEvent { |
| 219 |
if x != nil { |
| 220 |
return x.UserEvent |
| 221 |
} |
| 222 |
return nil |
| 223 |
} |
| 224 |
|
| 225 |
func (x *PredictRequest) GetPageSize() int32 { |
| 226 |
if x != nil { |
| 227 |
return x.PageSize |
| 228 |
} |
| 229 |
return 0 |
| 230 |
} |
| 231 |
|
| 232 |
|
| 233 |
func (x *PredictRequest) GetPageToken() string { |
| 234 |
if x != nil { |
| 235 |
return x.PageToken |
| 236 |
} |
| 237 |
return "" |
| 238 |
} |
| 239 |
|
| 240 |
func (x *PredictRequest) GetFilter() string { |
| 241 |
if x != nil { |
| 242 |
return x.Filter |
| 243 |
} |
| 244 |
return "" |
| 245 |
} |
| 246 |
|
| 247 |
func (x *PredictRequest) GetValidateOnly() bool { |
| 248 |
if x != nil { |
| 249 |
return x.ValidateOnly |
| 250 |
} |
| 251 |
return false |
| 252 |
} |
| 253 |
|
| 254 |
func (x *PredictRequest) GetParams() map[string]*structpb.Value { |
| 255 |
if x != nil { |
| 256 |
return x.Params |
| 257 |
} |
| 258 |
return nil |
| 259 |
} |
| 260 |
|
| 261 |
func (x *PredictRequest) GetLabels() map[string]string { |
| 262 |
if x != nil { |
| 263 |
return x.Labels |
| 264 |
} |
| 265 |
return nil |
| 266 |
} |
| 267 |
|
| 268 |
|
| 269 |
type PredictResponse struct { |
| 270 |
state protoimpl.MessageState |
| 271 |
sizeCache protoimpl.SizeCache |
| 272 |
unknownFields protoimpl.UnknownFields |
| 273 |
|
| 274 |
|
| 275 |
|
| 276 |
Results []*PredictResponse_PredictionResult `protobuf:"bytes,1,rep,name=results,proto3" json:"results,omitempty"` |
| 277 |
|
| 278 |
|
| 279 |
|
| 280 |
|
| 281 |
AttributionToken string `protobuf:"bytes,2,opt,name=attribution_token,json=attributionToken,proto3" json:"attribution_token,omitempty"` |
| 282 |
|
| 283 |
MissingIds []string `protobuf:"bytes,3,rep,name=missing_ids,json=missingIds,proto3" json:"missing_ids,omitempty"` |
| 284 |
|
| 285 |
ValidateOnly bool `protobuf:"varint,4,opt,name=validate_only,json=validateOnly,proto3" json:"validate_only,omitempty"` |
| 286 |
} |
| 287 |
|
| 288 |
func (x *PredictResponse) Reset() { |
| 289 |
*x = PredictResponse{} |
| 290 |
mi := &file_google_cloud_retail_v2_prediction_service_proto_msgTypes[1] |
| 291 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 292 |
ms.StoreMessageInfo(mi) |
| 293 |
} |
| 294 |
|
| 295 |
func (x *PredictResponse) String() string { |
| 296 |
return protoimpl.X.MessageStringOf(x) |
| 297 |
} |
| 298 |
|
| 299 |
func (*PredictResponse) ProtoMessage() {} |
| 300 |
|
| 301 |
func (x *PredictResponse) ProtoReflect() protoreflect.Message { |
| 302 |
mi := &file_google_cloud_retail_v2_prediction_service_proto_msgTypes[1] |
| 303 |
if x != nil { |
| 304 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 305 |
if ms.LoadMessageInfo() == nil { |
| 306 |
ms.StoreMessageInfo(mi) |
| 307 |
} |
| 308 |
return ms |
| 309 |
} |
| 310 |
return mi.MessageOf(x) |
| 311 |
} |
| 312 |
|
| 313 |
|
| 314 |
func (*PredictResponse) Descriptor() ([]byte, []int) { |
| 315 |
return file_google_cloud_retail_v2_prediction_service_proto_rawDescGZIP(), []int{1} |
| 316 |
} |
| 317 |
|
| 318 |
func (x *PredictResponse) GetResults() []*PredictResponse_PredictionResult { |
| 319 |
if x != nil { |
| 320 |
return x.Results |
| 321 |
} |
| 322 |
return nil |
| 323 |
} |
| 324 |
|
| 325 |
func (x *PredictResponse) GetAttributionToken() string { |
| 326 |
if x != nil { |
| 327 |
return x.AttributionToken |
| 328 |
} |
| 329 |
return "" |
| 330 |
} |
| 331 |
|
| 332 |
func (x *PredictResponse) GetMissingIds() []string { |
| 333 |
if x != nil { |
| 334 |
return x.MissingIds |
| 335 |
} |
| 336 |
return nil |
| 337 |
} |
| 338 |
|
| 339 |
func (x *PredictResponse) GetValidateOnly() bool { |
| 340 |
if x != nil { |
| 341 |
return x.ValidateOnly |
| 342 |
} |
| 343 |
return false |
| 344 |
} |
| 345 |
|
| 346 |
|
| 347 |
type PredictResponse_PredictionResult struct { |
| 348 |
state protoimpl.MessageState |
| 349 |
sizeCache protoimpl.SizeCache |
| 350 |
unknownFields protoimpl.UnknownFields |
| 351 |
|
| 352 |
|
| 353 |
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` |
| 354 |
|
| 355 |
|
| 356 |
|
| 357 |
|
| 358 |
|
| 359 |
|
| 360 |
|
| 361 |
|
| 362 |
Metadata map[string]*structpb.Value `protobuf:"bytes,2,rep,name=metadata,proto3" json:"metadata,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` |
| 363 |
} |
| 364 |
|
| 365 |
func (x *PredictResponse_PredictionResult) Reset() { |
| 366 |
*x = PredictResponse_PredictionResult{} |
| 367 |
mi := &file_google_cloud_retail_v2_prediction_service_proto_msgTypes[4] |
| 368 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 369 |
ms.StoreMessageInfo(mi) |
| 370 |
} |
| 371 |
|
| 372 |
func (x *PredictResponse_PredictionResult) String() string { |
| 373 |
return protoimpl.X.MessageStringOf(x) |
| 374 |
} |
| 375 |
|
| 376 |
func (*PredictResponse_PredictionResult) ProtoMessage() {} |
| 377 |
|
| 378 |
func (x *PredictResponse_PredictionResult) ProtoReflect() protoreflect.Message { |
| 379 |
mi := &file_google_cloud_retail_v2_prediction_service_proto_msgTypes[4] |
| 380 |
if x != nil { |
| 381 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 382 |
if ms.LoadMessageInfo() == nil { |
| 383 |
ms.StoreMessageInfo(mi) |
| 384 |
} |
| 385 |
return ms |
| 386 |
} |
| 387 |
return mi.MessageOf(x) |
| 388 |
} |
| 389 |
|
| 390 |
|
| 391 |
func (*PredictResponse_PredictionResult) Descriptor() ([]byte, []int) { |
| 392 |
return file_google_cloud_retail_v2_prediction_service_proto_rawDescGZIP(), []int{1, 0} |
| 393 |
} |
| 394 |
|
| 395 |
func (x *PredictResponse_PredictionResult) GetId() string { |
| 396 |
if x != nil { |
| 397 |
return x.Id |
| 398 |
} |
| 399 |
return "" |
| 400 |
} |
| 401 |
|
| 402 |
func (x *PredictResponse_PredictionResult) GetMetadata() map[string]*structpb.Value { |
| 403 |
if x != nil { |
| 404 |
return x.Metadata |
| 405 |
} |
| 406 |
return nil |
| 407 |
} |
| 408 |
|
| 409 |
var File_google_cloud_retail_v2_prediction_service_proto protoreflect.FileDescriptor |
| 410 |
|
| 411 |
var file_google_cloud_retail_v2_prediction_service_proto_rawDesc = []byte{ |
| 412 |
0x0a, 0x2f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x72, |
| 413 |
0x65, 0x74, 0x61, 0x69, 0x6c, 0x2f, 0x76, 0x32, 0x2f, 0x70, 0x72, 0x65, 0x64, 0x69, 0x63, 0x74, |
| 414 |
0x69, 0x6f, 0x6e, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, |
| 415 |
0x6f, 0x12, 0x16, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, |
| 416 |
0x72, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x2e, 0x76, 0x32, 0x1a, 0x1c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, |
| 417 |
0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, |
| 418 |
0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x17, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, |
| 419 |
0x61, 0x70, 0x69, 0x2f, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, |
| 420 |
0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x66, 0x69, 0x65, |
| 421 |
0x6c, 0x64, 0x5f, 0x62, 0x65, 0x68, 0x61, 0x76, 0x69, 0x6f, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, |
| 422 |
0x6f, 0x1a, 0x19, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x72, 0x65, |
| 423 |
0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x27, 0x67, 0x6f, |
| 424 |
0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x72, 0x65, 0x74, 0x61, 0x69, |
| 425 |
0x6c, 0x2f, 0x76, 0x32, 0x2f, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x2e, |
| 426 |
0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, |
| 427 |
0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x73, 0x74, 0x72, 0x75, 0x63, 0x74, 0x2e, 0x70, 0x72, |
| 428 |
0x6f, 0x74, 0x6f, 0x22, 0x9d, 0x04, 0x0a, 0x0e, 0x50, 0x72, 0x65, 0x64, 0x69, 0x63, 0x74, 0x52, |
| 429 |
0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x21, 0x0a, 0x09, 0x70, 0x6c, 0x61, 0x63, 0x65, 0x6d, |
| 430 |
0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x09, |
| 431 |
0x70, 0x6c, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x45, 0x0a, 0x0a, 0x75, 0x73, 0x65, |
| 432 |
0x72, 0x5f, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, |
| 433 |
0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x72, 0x65, 0x74, |
| 434 |
0x61, 0x69, 0x6c, 0x2e, 0x76, 0x32, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x45, 0x76, 0x65, 0x6e, 0x74, |
| 435 |
0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x09, 0x75, 0x73, 0x65, 0x72, 0x45, 0x76, 0x65, 0x6e, 0x74, |
| 436 |
0x12, 0x1b, 0x0a, 0x09, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x03, 0x20, |
| 437 |
0x01, 0x28, 0x05, 0x52, 0x08, 0x70, 0x61, 0x67, 0x65, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x21, 0x0a, |
| 438 |
0x0a, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, |
| 439 |
0x09, 0x42, 0x02, 0x18, 0x01, 0x52, 0x09, 0x70, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, |
| 440 |
0x12, 0x16, 0x0a, 0x06, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, |
| 441 |
0x52, 0x06, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x12, 0x23, 0x0a, 0x0d, 0x76, 0x61, 0x6c, 0x69, |
| 442 |
0x64, 0x61, 0x74, 0x65, 0x5f, 0x6f, 0x6e, 0x6c, 0x79, 0x18, 0x06, 0x20, 0x01, 0x28, 0x08, 0x52, |
| 443 |
0x0c, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x4f, 0x6e, 0x6c, 0x79, 0x12, 0x4a, 0x0a, |
| 444 |
0x06, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x18, 0x07, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x32, 0x2e, |
| 445 |
0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x72, 0x65, 0x74, |
| 446 |
0x61, 0x69, 0x6c, 0x2e, 0x76, 0x32, 0x2e, 0x50, 0x72, 0x65, 0x64, 0x69, 0x63, 0x74, 0x52, 0x65, |
| 447 |
0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x45, 0x6e, 0x74, 0x72, |
| 448 |
0x79, 0x52, 0x06, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x12, 0x4a, 0x0a, 0x06, 0x6c, 0x61, 0x62, |
| 449 |
0x65, 0x6c, 0x73, 0x18, 0x08, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x32, 0x2e, 0x67, 0x6f, 0x6f, 0x67, |
| 450 |
0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x72, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x2e, |
| 451 |
0x76, 0x32, 0x2e, 0x50, 0x72, 0x65, 0x64, 0x69, 0x63, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, |
| 452 |
0x74, 0x2e, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x06, 0x6c, |
| 453 |
0x61, 0x62, 0x65, 0x6c, 0x73, 0x1a, 0x51, 0x0a, 0x0b, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x45, |
| 454 |
0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, |
| 455 |
0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x2c, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, |
| 456 |
0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, |
| 457 |
0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x05, 0x76, |
| 458 |
0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x1a, 0x39, 0x0a, 0x0b, 0x4c, 0x61, 0x62, 0x65, |
| 459 |
0x6c, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, |
| 460 |
0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, |
| 461 |
0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, |
| 462 |
0x02, 0x38, 0x01, 0x22, 0xb6, 0x03, 0x0a, 0x0f, 0x50, 0x72, 0x65, 0x64, 0x69, 0x63, 0x74, 0x52, |
| 463 |
0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x52, 0x0a, 0x07, 0x72, 0x65, 0x73, 0x75, 0x6c, |
| 464 |
0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x38, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, |
| 465 |
0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x72, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x2e, 0x76, |
| 466 |
0x32, 0x2e, 0x50, 0x72, 0x65, 0x64, 0x69, 0x63, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, |
| 467 |
0x65, 0x2e, 0x50, 0x72, 0x65, 0x64, 0x69, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x75, |
| 468 |
0x6c, 0x74, 0x52, 0x07, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, 0x12, 0x2b, 0x0a, 0x11, 0x61, |
| 469 |
0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, |
| 470 |
0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x10, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, |
| 471 |
0x69, 0x6f, 0x6e, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x1f, 0x0a, 0x0b, 0x6d, 0x69, 0x73, 0x73, |
| 472 |
0x69, 0x6e, 0x67, 0x5f, 0x69, 0x64, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0a, 0x6d, |
| 473 |
0x69, 0x73, 0x73, 0x69, 0x6e, 0x67, 0x49, 0x64, 0x73, 0x12, 0x23, 0x0a, 0x0d, 0x76, 0x61, 0x6c, |
| 474 |
0x69, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x6f, 0x6e, 0x6c, 0x79, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, |
| 475 |
0x52, 0x0c, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x4f, 0x6e, 0x6c, 0x79, 0x1a, 0xdb, |
| 476 |
0x01, 0x0a, 0x10, 0x50, 0x72, 0x65, 0x64, 0x69, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, |
| 477 |
0x75, 0x6c, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, |
| 478 |
0x02, 0x69, 0x64, 0x12, 0x62, 0x0a, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x18, |
| 479 |
0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x46, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, |
| 480 |
0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x72, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x2e, 0x76, 0x32, 0x2e, 0x50, |
| 481 |
0x72, 0x65, 0x64, 0x69, 0x63, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x50, |
| 482 |
0x72, 0x65, 0x64, 0x69, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x2e, |
| 483 |
0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x08, 0x6d, |
| 484 |
0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x1a, 0x53, 0x0a, 0x0d, 0x4d, 0x65, 0x74, 0x61, 0x64, |
| 485 |
0x61, 0x74, 0x61, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, |
| 486 |
0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x2c, 0x0a, 0x05, 0x76, 0x61, |
| 487 |
0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, |
| 488 |
0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x56, 0x61, 0x6c, 0x75, |
| 489 |
0x65, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x32, 0xe1, 0x02, 0x0a, |
| 490 |
0x11, 0x50, 0x72, 0x65, 0x64, 0x69, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x65, 0x72, 0x76, 0x69, |
| 491 |
0x63, 0x65, 0x12, 0x80, 0x02, 0x0a, 0x07, 0x50, 0x72, 0x65, 0x64, 0x69, 0x63, 0x74, 0x12, 0x26, |
| 492 |
0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x72, 0x65, |
| 493 |
0x74, 0x61, 0x69, 0x6c, 0x2e, 0x76, 0x32, 0x2e, 0x50, 0x72, 0x65, 0x64, 0x69, 0x63, 0x74, 0x52, |
| 494 |
0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x27, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, |
| 495 |
0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x72, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x2e, 0x76, 0x32, 0x2e, |
| 496 |
0x50, 0x72, 0x65, 0x64, 0x69, 0x63, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, |
| 497 |
0xa3, 0x01, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x9c, 0x01, 0x3a, 0x01, 0x2a, 0x5a, 0x4f, 0x3a, 0x01, |
| 498 |
0x2a, 0x22, 0x4a, 0x2f, 0x76, 0x32, 0x2f, 0x7b, 0x70, 0x6c, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x6e, |
| 499 |
0x74, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x6c, 0x6f, 0x63, |
| 500 |
0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x2a, 0x2f, 0x63, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, |
| 501 |
0x73, 0x2f, 0x2a, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x6e, 0x67, 0x43, 0x6f, 0x6e, 0x66, 0x69, |
| 502 |
0x67, 0x73, 0x2f, 0x2a, 0x7d, 0x3a, 0x70, 0x72, 0x65, 0x64, 0x69, 0x63, 0x74, 0x22, 0x46, 0x2f, |
| 503 |
0x76, 0x32, 0x2f, 0x7b, 0x70, 0x6c, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x3d, 0x70, 0x72, |
| 504 |
0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, |
| 505 |
0x6e, 0x73, 0x2f, 0x2a, 0x2f, 0x63, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x73, 0x2f, 0x2a, 0x2f, |
| 506 |
0x70, 0x6c, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x2a, 0x7d, 0x3a, 0x70, 0x72, |
| 507 |
0x65, 0x64, 0x69, 0x63, 0x74, 0x1a, 0x49, 0xca, 0x41, 0x15, 0x72, 0x65, 0x74, 0x61, 0x69, 0x6c, |
| 508 |
0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0xd2, |
| 509 |
0x41, 0x2e, 0x68, 0x74, 0x74, 0x70, 0x73, 0x3a, 0x2f, 0x2f, 0x77, 0x77, 0x77, 0x2e, 0x67, 0x6f, |
| 510 |
0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x61, 0x75, 0x74, |
| 511 |
0x68, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2d, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, |
| 512 |
0x42, 0xc1, 0x01, 0x0a, 0x1a, 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, |
| 513 |
0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x72, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x2e, 0x76, 0x32, 0x42, |
| 514 |
0x16, 0x50, 0x72, 0x65, 0x64, 0x69, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x65, 0x72, 0x76, 0x69, |
| 515 |
0x63, 0x65, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x32, 0x63, 0x6c, 0x6f, 0x75, 0x64, |
| 516 |
0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x6f, 0x2f, 0x72, |
| 517 |
0x65, 0x74, 0x61, 0x69, 0x6c, 0x2f, 0x61, 0x70, 0x69, 0x76, 0x32, 0x2f, 0x72, 0x65, 0x74, 0x61, |
| 518 |
0x69, 0x6c, 0x70, 0x62, 0x3b, 0x72, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x70, 0x62, 0xa2, 0x02, 0x06, |
| 519 |
0x52, 0x45, 0x54, 0x41, 0x49, 0x4c, 0xaa, 0x02, 0x16, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, |
| 520 |
0x43, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x52, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x2e, 0x56, 0x32, 0xca, |
| 521 |
0x02, 0x16, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x5c, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x5c, 0x52, |
| 522 |
0x65, 0x74, 0x61, 0x69, 0x6c, 0x5c, 0x56, 0x32, 0xea, 0x02, 0x19, 0x47, 0x6f, 0x6f, 0x67, 0x6c, |
| 523 |
0x65, 0x3a, 0x3a, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x3a, 0x3a, 0x52, 0x65, 0x74, 0x61, 0x69, 0x6c, |
| 524 |
0x3a, 0x3a, 0x56, 0x32, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, |
| 525 |
} |
| 526 |
|
| 527 |
var ( |
| 528 |
file_google_cloud_retail_v2_prediction_service_proto_rawDescOnce sync.Once |
| 529 |
file_google_cloud_retail_v2_prediction_service_proto_rawDescData = file_google_cloud_retail_v2_prediction_service_proto_rawDesc |
| 530 |
) |
| 531 |
|
| 532 |
func file_google_cloud_retail_v2_prediction_service_proto_rawDescGZIP() []byte { |
| 533 |
file_google_cloud_retail_v2_prediction_service_proto_rawDescOnce.Do(func() { |
| 534 |
file_google_cloud_retail_v2_prediction_service_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_cloud_retail_v2_prediction_service_proto_rawDescData) |
| 535 |
}) |
| 536 |
return file_google_cloud_retail_v2_prediction_service_proto_rawDescData |
| 537 |
} |
| 538 |
|
| 539 |
var file_google_cloud_retail_v2_prediction_service_proto_msgTypes = make([]protoimpl.MessageInfo, 6) |
| 540 |
var file_google_cloud_retail_v2_prediction_service_proto_goTypes = []any{ |
| 541 |
(*PredictRequest)(nil), |
| 542 |
(*PredictResponse)(nil), |
| 543 |
nil, |
| 544 |
nil, |
| 545 |
(*PredictResponse_PredictionResult)(nil), |
| 546 |
nil, |
| 547 |
(*UserEvent)(nil), |
| 548 |
(*structpb.Value)(nil), |
| 549 |
} |
| 550 |
var file_google_cloud_retail_v2_prediction_service_proto_depIdxs = []int32{ |
| 551 |
6, |
| 552 |
2, |
| 553 |
3, |
| 554 |
4, |
| 555 |
7, |
| 556 |
5, |
| 557 |
7, |
| 558 |
0, |
| 559 |
1, |
| 560 |
8, |
| 561 |
7, |
| 562 |
7, |
| 563 |
7, |
| 564 |
0, |
| 565 |
} |
| 566 |
|
| 567 |
func init() { file_google_cloud_retail_v2_prediction_service_proto_init() } |
| 568 |
func file_google_cloud_retail_v2_prediction_service_proto_init() { |
| 569 |
if File_google_cloud_retail_v2_prediction_service_proto != nil { |
| 570 |
return |
| 571 |
} |
| 572 |
file_google_cloud_retail_v2_user_event_proto_init() |
| 573 |
type x struct{} |
| 574 |
out := protoimpl.TypeBuilder{ |
| 575 |
File: protoimpl.DescBuilder{ |
| 576 |
GoPackagePath: reflect.TypeOf(x{}).PkgPath(), |
| 577 |
RawDescriptor: file_google_cloud_retail_v2_prediction_service_proto_rawDesc, |
| 578 |
NumEnums: 0, |
| 579 |
NumMessages: 6, |
| 580 |
NumExtensions: 0, |
| 581 |
NumServices: 1, |
| 582 |
}, |
| 583 |
GoTypes: file_google_cloud_retail_v2_prediction_service_proto_goTypes, |
| 584 |
DependencyIndexes: file_google_cloud_retail_v2_prediction_service_proto_depIdxs, |
| 585 |
MessageInfos: file_google_cloud_retail_v2_prediction_service_proto_msgTypes, |
| 586 |
}.Build() |
| 587 |
File_google_cloud_retail_v2_prediction_service_proto = out.File |
| 588 |
file_google_cloud_retail_v2_prediction_service_proto_rawDesc = nil |
| 589 |
file_google_cloud_retail_v2_prediction_service_proto_goTypes = nil |
| 590 |
file_google_cloud_retail_v2_prediction_service_proto_depIdxs = nil |
| 591 |
} |
| 592 |
|
| 593 |
|
| 594 |
var _ context.Context |
| 595 |
var _ grpc.ClientConnInterface |
| 596 |
|
| 597 |
|
| 598 |
|
| 599 |
const _ = grpc.SupportPackageIsVersion6 |
| 600 |
|
| 601 |
|
| 602 |
|
| 603 |
|
| 604 |
type PredictionServiceClient interface { |
| 605 |
|
| 606 |
Predict(ctx context.Context, in *PredictRequest, opts ...grpc.CallOption) (*PredictResponse, error) |
| 607 |
} |
| 608 |
|
| 609 |
type predictionServiceClient struct { |
| 610 |
cc grpc.ClientConnInterface |
| 611 |
} |
| 612 |
|
| 613 |
func NewPredictionServiceClient(cc grpc.ClientConnInterface) PredictionServiceClient { |
| 614 |
return &predictionServiceClient{cc} |
| 615 |
} |
| 616 |
|
| 617 |
func (c *predictionServiceClient) Predict(ctx context.Context, in *PredictRequest, opts ...grpc.CallOption) (*PredictResponse, error) { |
| 618 |
out := new(PredictResponse) |
| 619 |
err := c.cc.Invoke(ctx, "/google.cloud.retail.v2.PredictionService/Predict", in, out, opts...) |
| 620 |
if err != nil { |
| 621 |
return nil, err |
| 622 |
} |
| 623 |
return out, nil |
| 624 |
} |
| 625 |
|
| 626 |
|
| 627 |
type PredictionServiceServer interface { |
| 628 |
|
| 629 |
Predict(context.Context, *PredictRequest) (*PredictResponse, error) |
| 630 |
} |
| 631 |
|
| 632 |
|
| 633 |
type UnimplementedPredictionServiceServer struct { |
| 634 |
} |
| 635 |
|
| 636 |
func (*UnimplementedPredictionServiceServer) Predict(context.Context, *PredictRequest) (*PredictResponse, error) { |
| 637 |
return nil, status.Errorf(codes.Unimplemented, "method Predict not implemented") |
| 638 |
} |
| 639 |
|
| 640 |
func RegisterPredictionServiceServer(s *grpc.Server, srv PredictionServiceServer) { |
| 641 |
s.RegisterService(&_PredictionService_serviceDesc, srv) |
| 642 |
} |
| 643 |
|
| 644 |
func _PredictionService_Predict_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 645 |
in := new(PredictRequest) |
| 646 |
if err := dec(in); err != nil { |
| 647 |
return nil, err |
| 648 |
} |
| 649 |
if interceptor == nil { |
| 650 |
return srv.(PredictionServiceServer).Predict(ctx, in) |
| 651 |
} |
| 652 |
info := &grpc.UnaryServerInfo{ |
| 653 |
Server: srv, |
| 654 |
FullMethod: "/google.cloud.retail.v2.PredictionService/Predict", |
| 655 |
} |
| 656 |
handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 657 |
return srv.(PredictionServiceServer).Predict(ctx, req.(*PredictRequest)) |
| 658 |
} |
| 659 |
return interceptor(ctx, in, info, handler) |
| 660 |
} |
| 661 |
|
| 662 |
var _PredictionService_serviceDesc = grpc.ServiceDesc{ |
| 663 |
ServiceName: "google.cloud.retail.v2.PredictionService", |
| 664 |
HandlerType: (*PredictionServiceServer)(nil), |
| 665 |
Methods: []grpc.MethodDesc{ |
| 666 |
{ |
| 667 |
MethodName: "Predict", |
| 668 |
Handler: _PredictionService_Predict_Handler, |
| 669 |
}, |
| 670 |
}, |
| 671 |
Streams: []grpc.StreamDesc{}, |
| 672 |
Metadata: "google/cloud/retail/v2/prediction_service.proto", |
| 673 |
} |