Debian Codegraph @

retail/apiv2alpha/retailpb/prediction_service.pb.go

raw symbols SCIP
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/v2alpha/prediction_service.proto
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 // Verify that this generated code is sufficiently up-to-date.
38 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
39 // Verify that runtime/protoimpl is sufficiently up-to-date.
40 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
41 )
42
43 // Request message for Predict method.
44 type PredictRequest struct {
45 state protoimpl.MessageState
46 sizeCache protoimpl.SizeCache
47 unknownFields protoimpl.UnknownFields
48
49 // Required. Full resource name of the format:
50 // `{placement=projects/*/locations/global/catalogs/default_catalog/servingConfigs/*}`
51 // or
52 // `{placement=projects/*/locations/global/catalogs/default_catalog/placements/*}`.
53 // We recommend using the `servingConfigs` resource. `placements` is a legacy
54 // resource.
55 // The ID of the Recommendations AI serving config or placement.
56 // Before you can request predictions from your model, you must create at
57 // least one serving config or placement for it. For more information, see
58 // [Manage serving configs]
59 // (https://cloud.google.com/retail/docs/manage-configs).
60 //
61 // The full list of available serving configs can be seen at
62 // https://console.cloud.google.com/ai/retail/catalogs/default_catalog/configs
63 Placement string `protobuf:"bytes,1,opt,name=placement,proto3" json:"placement,omitempty"`
64 // Required. Context about the user, what they are looking at and what action
65 // they took to trigger the predict request. Note that this user event detail
66 // won't be ingested to userEvent logs. Thus, a separate userEvent write
67 // request is required for event logging.
68 //
69 // Don't set
70 // [UserEvent.visitor_id][google.cloud.retail.v2alpha.UserEvent.visitor_id] or
71 // [UserInfo.user_id][google.cloud.retail.v2alpha.UserInfo.user_id] to the
72 // same fixed ID for different users. If you are trying to receive
73 // non-personalized recommendations (not recommended; this can negatively
74 // impact model performance), instead set
75 // [UserEvent.visitor_id][google.cloud.retail.v2alpha.UserEvent.visitor_id] to
76 // a random unique ID and leave
77 // [UserInfo.user_id][google.cloud.retail.v2alpha.UserInfo.user_id] unset.
78 UserEvent *UserEvent `protobuf:"bytes,2,opt,name=user_event,json=userEvent,proto3" json:"user_event,omitempty"`
79 // Maximum number of results to return. Set this property to the number of
80 // prediction results needed. If zero, the service will choose a reasonable
81 // default. The maximum allowed value is 100. Values above 100 will be coerced
82 // to 100.
83 PageSize int32 `protobuf:"varint,3,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
84 // This field is not used; leave it unset.
85 //
86 // Deprecated: Marked as deprecated in google/cloud/retail/v2alpha/prediction_service.proto.
87 PageToken string `protobuf:"bytes,4,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
88 // Filter for restricting prediction results with a length limit of 5,000
89 // characters. Accepts values for tags and the `filterOutOfStockItems` flag.
90 //
91 // - Tag expressions. Restricts predictions to products that match all of the
92 // specified tags. Boolean operators `OR` and `NOT` are supported if the
93 // expression is enclosed in parentheses, and must be separated from the
94 // tag values by a space. `-"tagA"` is also supported and is equivalent to
95 // `NOT "tagA"`. Tag values must be double quoted UTF-8 encoded strings
96 // with a size limit of 1,000 characters.
97 //
98 // Note: "Recently viewed" models don't support tag filtering at the
99 // moment.
100 //
101 // - filterOutOfStockItems. Restricts predictions to products that do not
102 // have a
103 // stockState value of OUT_OF_STOCK.
104 //
105 // Examples:
106 //
107 // - tag=("Red" OR "Blue") tag="New-Arrival" tag=(NOT "promotional")
108 // - filterOutOfStockItems tag=(-"promotional")
109 // - filterOutOfStockItems
110 //
111 // If your filter blocks all prediction results, the API will return *no*
112 // results. If instead you want empty result sets to return generic
113 // (unfiltered) popular products, set `strictFiltering` to False in
114 // `PredictRequest.params`. Note that the API will never return items with
115 // storageStatus of "EXPIRED" or "DELETED" regardless of filter choices.
116 //
117 // If `filterSyntaxV2` is set to true under the `params` field, then
118 // attribute-based expressions are expected instead of the above described
119 // tag-based syntax. Examples:
120 //
121 // - (colors: ANY("Red", "Blue")) AND NOT (categories: ANY("Phones"))
122 // - (availability: ANY("IN_STOCK")) AND
123 // (colors: ANY("Red") OR categories: ANY("Phones"))
124 //
125 // For more information, see
126 // [Filter recommendations](https://cloud.google.com/retail/docs/filter-recs).
127 Filter string `protobuf:"bytes,5,opt,name=filter,proto3" json:"filter,omitempty"`
128 // Use validate only mode for this prediction query. If set to true, a
129 // dummy model will be used that returns arbitrary products.
130 // Note that the validate only mode should only be used for testing the API,
131 // or if the model is not ready.
132 ValidateOnly bool `protobuf:"varint,6,opt,name=validate_only,json=validateOnly,proto3" json:"validate_only,omitempty"`
133 // Additional domain specific parameters for the predictions.
134 //
135 // Allowed values:
136 //
137 // - `returnProduct`: Boolean. If set to true, the associated product
138 // object will be returned in the `results.metadata` field in the
139 // prediction response.
140 // - `returnScore`: Boolean. If set to true, the prediction 'score'
141 // corresponding to each returned product will be set in the
142 // `results.metadata` field in the prediction response. The given
143 // 'score' indicates the probability of a product being clicked/purchased
144 // given the user's context and history.
145 // - `strictFiltering`: Boolean. True by default. If set to false, the service
146 // will return generic (unfiltered) popular products instead of empty if
147 // your filter blocks all prediction results.
148 // - `priceRerankLevel`: String. Default empty. If set to be non-empty, then
149 // it needs to be one of {'no-price-reranking', 'low-price-reranking',
150 // 'medium-price-reranking', 'high-price-reranking'}. This gives
151 // request-level control and adjusts prediction results based on product
152 // price.
153 // - `diversityLevel`: String. Default empty. If set to be non-empty, then
154 // it needs to be one of {'no-diversity', 'low-diversity',
155 // 'medium-diversity', 'high-diversity', 'auto-diversity'}. This gives
156 // request-level control and adjusts prediction results based on product
157 // category.
158 // - `filterSyntaxV2`: Boolean. False by default. If set to true, the `filter`
159 // field is interpreteted according to the new, attribute-based syntax.
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 // The labels applied to a resource must meet the following requirements:
162 //
163 // - Each resource can have multiple labels, up to a maximum of 64.
164 // - Each label must be a key-value pair.
165 // - Keys have a minimum length of 1 character and a maximum length of 63
166 // characters and cannot be empty. Values can be empty and have a maximum
167 // length of 63 characters.
168 // - Keys and values can contain only lowercase letters, numeric characters,
169 // underscores, and dashes. All characters must use UTF-8 encoding, and
170 // international characters are allowed.
171 // - The key portion of a label must be unique. However, you can use the same
172 // key with multiple resources.
173 // - Keys must start with a lowercase letter or international character.
174 //
175 // See [Google Cloud
176 // Document](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements)
177 // for more details.
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_v2alpha_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_v2alpha_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 // Deprecated: Use PredictRequest.ProtoReflect.Descriptor instead.
207 func (*PredictRequest) Descriptor() ([]byte, []int) {
208 return file_google_cloud_retail_v2alpha_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 // Deprecated: Marked as deprecated in google/cloud/retail/v2alpha/prediction_service.proto.
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 // Response message for predict method.
269 type PredictResponse struct {
270 state protoimpl.MessageState
271 sizeCache protoimpl.SizeCache
272 unknownFields protoimpl.UnknownFields
273
274 // A list of recommended products. The order represents the ranking (from the
275 // most relevant product to the least).
276 Results []*PredictResponse_PredictionResult `protobuf:"bytes,1,rep,name=results,proto3" json:"results,omitempty"`
277 // A unique attribution token. This should be included in the
278 // [UserEvent][google.cloud.retail.v2alpha.UserEvent] logs resulting from this
279 // recommendation, which enables accurate attribution of recommendation model
280 // performance.
281 AttributionToken string `protobuf:"bytes,2,opt,name=attribution_token,json=attributionToken,proto3" json:"attribution_token,omitempty"`
282 // IDs of products in the request that were missing from the inventory.
283 MissingIds []string `protobuf:"bytes,3,rep,name=missing_ids,json=missingIds,proto3" json:"missing_ids,omitempty"`
284 // True if the validateOnly property was set in the request.
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_v2alpha_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_v2alpha_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 // Deprecated: Use PredictResponse.ProtoReflect.Descriptor instead.
314 func (*PredictResponse) Descriptor() ([]byte, []int) {
315 return file_google_cloud_retail_v2alpha_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 // PredictionResult represents the recommendation prediction results.
347 type PredictResponse_PredictionResult struct {
348 state protoimpl.MessageState
349 sizeCache protoimpl.SizeCache
350 unknownFields protoimpl.UnknownFields
351
352 // ID of the recommended product
353 Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
354 // Additional product metadata / annotations.
355 //
356 // Possible values:
357 //
358 // - `product`: JSON representation of the product. Is set if
359 // `returnProduct` is set to true in `PredictRequest.params`.
360 // - `score`: Prediction score in double value. Is set if
361 // `returnScore` is set to true in `PredictRequest.params`.
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_v2alpha_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_v2alpha_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 // Deprecated: Use PredictResponse_PredictionResult.ProtoReflect.Descriptor instead.
391 func (*PredictResponse_PredictionResult) Descriptor() ([]byte, []int) {
392 return file_google_cloud_retail_v2alpha_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_v2alpha_prediction_service_proto protoreflect.FileDescriptor
410
411 var file_google_cloud_retail_v2alpha_prediction_service_proto_rawDesc = []byte{
412 0x0a, 0x34, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x72,
413 0x65, 0x74, 0x61, 0x69, 0x6c, 0x2f, 0x76, 0x32, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2f, 0x70, 0x72,
414 0x65, 0x64, 0x69, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65,
415 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x1b, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63,
416 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x72, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x2e, 0x76, 0x32, 0x61, 0x6c,
417 0x70, 0x68, 0x61, 0x1a, 0x1c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f,
418 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74,
419 0x6f, 0x1a, 0x17, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x63, 0x6c,
420 0x69, 0x65, 0x6e, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67,
421 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x5f, 0x62, 0x65, 0x68,
422 0x61, 0x76, 0x69, 0x6f, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x19, 0x67, 0x6f, 0x6f,
423 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65,
424 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x2c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x63,
425 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x72, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x2f, 0x76, 0x32, 0x61, 0x6c,
426 0x70, 0x68, 0x61, 0x2f, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x2e, 0x70,
427 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f,
428 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x73, 0x74, 0x72, 0x75, 0x63, 0x74, 0x2e, 0x70, 0x72, 0x6f,
429 0x74, 0x6f, 0x22, 0xac, 0x04, 0x0a, 0x0e, 0x50, 0x72, 0x65, 0x64, 0x69, 0x63, 0x74, 0x52, 0x65,
430 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x21, 0x0a, 0x09, 0x70, 0x6c, 0x61, 0x63, 0x65, 0x6d, 0x65,
431 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x09, 0x70,
432 0x6c, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x4a, 0x0a, 0x0a, 0x75, 0x73, 0x65, 0x72,
433 0x5f, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x67,
434 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x72, 0x65, 0x74, 0x61,
435 0x69, 0x6c, 0x2e, 0x76, 0x32, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x45,
436 0x76, 0x65, 0x6e, 0x74, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x09, 0x75, 0x73, 0x65, 0x72, 0x45,
437 0x76, 0x65, 0x6e, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x73, 0x69, 0x7a,
438 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x70, 0x61, 0x67, 0x65, 0x53, 0x69, 0x7a,
439 0x65, 0x12, 0x21, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18,
440 0x04, 0x20, 0x01, 0x28, 0x09, 0x42, 0x02, 0x18, 0x01, 0x52, 0x09, 0x70, 0x61, 0x67, 0x65, 0x54,
441 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x16, 0x0a, 0x06, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x18, 0x05,
442 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x12, 0x23, 0x0a, 0x0d,
443 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x6f, 0x6e, 0x6c, 0x79, 0x18, 0x06, 0x20,
444 0x01, 0x28, 0x08, 0x52, 0x0c, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x4f, 0x6e, 0x6c,
445 0x79, 0x12, 0x4f, 0x0a, 0x06, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x18, 0x07, 0x20, 0x03, 0x28,
446 0x0b, 0x32, 0x37, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64,
447 0x2e, 0x72, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x2e, 0x76, 0x32, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e,
448 0x50, 0x72, 0x65, 0x64, 0x69, 0x63, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x50,
449 0x61, 0x72, 0x61, 0x6d, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x06, 0x70, 0x61, 0x72, 0x61,
450 0x6d, 0x73, 0x12, 0x4f, 0x0a, 0x06, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x18, 0x08, 0x20, 0x03,
451 0x28, 0x0b, 0x32, 0x37, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75,
452 0x64, 0x2e, 0x72, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x2e, 0x76, 0x32, 0x61, 0x6c, 0x70, 0x68, 0x61,
453 0x2e, 0x50, 0x72, 0x65, 0x64, 0x69, 0x63, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e,
454 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x06, 0x6c, 0x61, 0x62,
455 0x65, 0x6c, 0x73, 0x1a, 0x51, 0x0a, 0x0b, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x45, 0x6e, 0x74,
456 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52,
457 0x03, 0x6b, 0x65, 0x79, 0x12, 0x2c, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20,
458 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f,
459 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x05, 0x76, 0x61, 0x6c,
460 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x1a, 0x39, 0x0a, 0x0b, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x73,
461 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01,
462 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65,
463 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38,
464 0x01, 0x22, 0xc0, 0x03, 0x0a, 0x0f, 0x50, 0x72, 0x65, 0x64, 0x69, 0x63, 0x74, 0x52, 0x65, 0x73,
465 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x57, 0x0a, 0x07, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73,
466 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x3d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e,
467 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x72, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x2e, 0x76, 0x32, 0x61,
468 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x50, 0x72, 0x65, 0x64, 0x69, 0x63, 0x74, 0x52, 0x65, 0x73, 0x70,
469 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x50, 0x72, 0x65, 0x64, 0x69, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52,
470 0x65, 0x73, 0x75, 0x6c, 0x74, 0x52, 0x07, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, 0x12, 0x2b,
471 0x0a, 0x11, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x74, 0x6f,
472 0x6b, 0x65, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x10, 0x61, 0x74, 0x74, 0x72, 0x69,
473 0x62, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x1f, 0x0a, 0x0b, 0x6d,
474 0x69, 0x73, 0x73, 0x69, 0x6e, 0x67, 0x5f, 0x69, 0x64, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x09,
475 0x52, 0x0a, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6e, 0x67, 0x49, 0x64, 0x73, 0x12, 0x23, 0x0a, 0x0d,
476 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x6f, 0x6e, 0x6c, 0x79, 0x18, 0x04, 0x20,
477 0x01, 0x28, 0x08, 0x52, 0x0c, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x4f, 0x6e, 0x6c,
478 0x79, 0x1a, 0xe0, 0x01, 0x0a, 0x10, 0x50, 0x72, 0x65, 0x64, 0x69, 0x63, 0x74, 0x69, 0x6f, 0x6e,
479 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01,
480 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x67, 0x0a, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61,
481 0x74, 0x61, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x4b, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c,
482 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x72, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x2e, 0x76,
483 0x32, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x50, 0x72, 0x65, 0x64, 0x69, 0x63, 0x74, 0x52, 0x65,
484 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x50, 0x72, 0x65, 0x64, 0x69, 0x63, 0x74, 0x69, 0x6f,
485 0x6e, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x2e, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61,
486 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x1a,
487 0x53, 0x0a, 0x0d, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x45, 0x6e, 0x74, 0x72, 0x79,
488 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b,
489 0x65, 0x79, 0x12, 0x2c, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28,
490 0x0b, 0x32, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
491 0x62, 0x75, 0x66, 0x2e, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65,
492 0x3a, 0x02, 0x38, 0x01, 0x32, 0xf5, 0x02, 0x0a, 0x11, 0x50, 0x72, 0x65, 0x64, 0x69, 0x63, 0x74,
493 0x69, 0x6f, 0x6e, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x94, 0x02, 0x0a, 0x07, 0x50,
494 0x72, 0x65, 0x64, 0x69, 0x63, 0x74, 0x12, 0x2b, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e,
495 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x72, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x2e, 0x76, 0x32, 0x61,
496 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x50, 0x72, 0x65, 0x64, 0x69, 0x63, 0x74, 0x52, 0x65, 0x71, 0x75,
497 0x65, 0x73, 0x74, 0x1a, 0x2c, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f,
498 0x75, 0x64, 0x2e, 0x72, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x2e, 0x76, 0x32, 0x61, 0x6c, 0x70, 0x68,
499 0x61, 0x2e, 0x50, 0x72, 0x65, 0x64, 0x69, 0x63, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73,
500 0x65, 0x22, 0xad, 0x01, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0xa6, 0x01, 0x3a, 0x01, 0x2a, 0x5a, 0x54,
501 0x3a, 0x01, 0x2a, 0x22, 0x4f, 0x2f, 0x76, 0x32, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2f, 0x7b, 0x70,
502 0x6c, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74,
503 0x73, 0x2f, 0x2a, 0x2f, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x2a, 0x2f,
504 0x63, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x73, 0x2f, 0x2a, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x69,
505 0x6e, 0x67, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x73, 0x2f, 0x2a, 0x7d, 0x3a, 0x70, 0x72, 0x65,
506 0x64, 0x69, 0x63, 0x74, 0x22, 0x4b, 0x2f, 0x76, 0x32, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2f, 0x7b,
507 0x70, 0x6c, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63,
508 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x2a,
509 0x2f, 0x63, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x73, 0x2f, 0x2a, 0x2f, 0x70, 0x6c, 0x61, 0x63,
510 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x2a, 0x7d, 0x3a, 0x70, 0x72, 0x65, 0x64, 0x69, 0x63,
511 0x74, 0x1a, 0x49, 0xca, 0x41, 0x15, 0x72, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x2e, 0x67, 0x6f, 0x6f,
512 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0xd2, 0x41, 0x2e, 0x68, 0x74,
513 0x74, 0x70, 0x73, 0x3a, 0x2f, 0x2f, 0x77, 0x77, 0x77, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
514 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x61, 0x75, 0x74, 0x68, 0x2f, 0x63, 0x6c,
515 0x6f, 0x75, 0x64, 0x2d, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x42, 0xda, 0x01, 0x0a,
516 0x1f, 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75,
517 0x64, 0x2e, 0x72, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x2e, 0x76, 0x32, 0x61, 0x6c, 0x70, 0x68, 0x61,
518 0x42, 0x16, 0x50, 0x72, 0x65, 0x64, 0x69, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x65, 0x72, 0x76,
519 0x69, 0x63, 0x65, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x37, 0x63, 0x6c, 0x6f, 0x75,
520 0x64, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x6f, 0x2f,
521 0x72, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x2f, 0x61, 0x70, 0x69, 0x76, 0x32, 0x61, 0x6c, 0x70, 0x68,
522 0x61, 0x2f, 0x72, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x70, 0x62, 0x3b, 0x72, 0x65, 0x74, 0x61, 0x69,
523 0x6c, 0x70, 0x62, 0xa2, 0x02, 0x06, 0x52, 0x45, 0x54, 0x41, 0x49, 0x4c, 0xaa, 0x02, 0x1b, 0x47,
524 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x52, 0x65, 0x74, 0x61,
525 0x69, 0x6c, 0x2e, 0x56, 0x32, 0x41, 0x6c, 0x70, 0x68, 0x61, 0xca, 0x02, 0x1b, 0x47, 0x6f, 0x6f,
526 0x67, 0x6c, 0x65, 0x5c, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x5c, 0x52, 0x65, 0x74, 0x61, 0x69, 0x6c,
527 0x5c, 0x56, 0x32, 0x61, 0x6c, 0x70, 0x68, 0x61, 0xea, 0x02, 0x1e, 0x47, 0x6f, 0x6f, 0x67, 0x6c,
528 0x65, 0x3a, 0x3a, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x3a, 0x3a, 0x52, 0x65, 0x74, 0x61, 0x69, 0x6c,
529 0x3a, 0x3a, 0x56, 0x32, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f,
530 0x33,
531 }
532
533 var (
534 file_google_cloud_retail_v2alpha_prediction_service_proto_rawDescOnce sync.Once
535 file_google_cloud_retail_v2alpha_prediction_service_proto_rawDescData = file_google_cloud_retail_v2alpha_prediction_service_proto_rawDesc
536 )
537
538 func file_google_cloud_retail_v2alpha_prediction_service_proto_rawDescGZIP() []byte {
539 file_google_cloud_retail_v2alpha_prediction_service_proto_rawDescOnce.Do(func() {
540 file_google_cloud_retail_v2alpha_prediction_service_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_cloud_retail_v2alpha_prediction_service_proto_rawDescData)
541 })
542 return file_google_cloud_retail_v2alpha_prediction_service_proto_rawDescData
543 }
544
545 var file_google_cloud_retail_v2alpha_prediction_service_proto_msgTypes = make([]protoimpl.MessageInfo, 6)
546 var file_google_cloud_retail_v2alpha_prediction_service_proto_goTypes = []any{
547 (*PredictRequest)(nil), // 0: google.cloud.retail.v2alpha.PredictRequest
548 (*PredictResponse)(nil), // 1: google.cloud.retail.v2alpha.PredictResponse
549 nil, // 2: google.cloud.retail.v2alpha.PredictRequest.ParamsEntry
550 nil, // 3: google.cloud.retail.v2alpha.PredictRequest.LabelsEntry
551 (*PredictResponse_PredictionResult)(nil), // 4: google.cloud.retail.v2alpha.PredictResponse.PredictionResult
552 nil, // 5: google.cloud.retail.v2alpha.PredictResponse.PredictionResult.MetadataEntry
553 (*UserEvent)(nil), // 6: google.cloud.retail.v2alpha.UserEvent
554 (*structpb.Value)(nil), // 7: google.protobuf.Value
555 }
556 var file_google_cloud_retail_v2alpha_prediction_service_proto_depIdxs = []int32{
557 6, // 0: google.cloud.retail.v2alpha.PredictRequest.user_event:type_name -> google.cloud.retail.v2alpha.UserEvent
558 2, // 1: google.cloud.retail.v2alpha.PredictRequest.params:type_name -> google.cloud.retail.v2alpha.PredictRequest.ParamsEntry
559 3, // 2: google.cloud.retail.v2alpha.PredictRequest.labels:type_name -> google.cloud.retail.v2alpha.PredictRequest.LabelsEntry
560 4, // 3: google.cloud.retail.v2alpha.PredictResponse.results:type_name -> google.cloud.retail.v2alpha.PredictResponse.PredictionResult
561 7, // 4: google.cloud.retail.v2alpha.PredictRequest.ParamsEntry.value:type_name -> google.protobuf.Value
562 5, // 5: google.cloud.retail.v2alpha.PredictResponse.PredictionResult.metadata:type_name -> google.cloud.retail.v2alpha.PredictResponse.PredictionResult.MetadataEntry
563 7, // 6: google.cloud.retail.v2alpha.PredictResponse.PredictionResult.MetadataEntry.value:type_name -> google.protobuf.Value
564 0, // 7: google.cloud.retail.v2alpha.PredictionService.Predict:input_type -> google.cloud.retail.v2alpha.PredictRequest
565 1, // 8: google.cloud.retail.v2alpha.PredictionService.Predict:output_type -> google.cloud.retail.v2alpha.PredictResponse
566 8, // [8:9] is the sub-list for method output_type
567 7, // [7:8] is the sub-list for method input_type
568 7, // [7:7] is the sub-list for extension type_name
569 7, // [7:7] is the sub-list for extension extendee
570 0, // [0:7] is the sub-list for field type_name
571 }
572
573 func init() { file_google_cloud_retail_v2alpha_prediction_service_proto_init() }
574 func file_google_cloud_retail_v2alpha_prediction_service_proto_init() {
575 if File_google_cloud_retail_v2alpha_prediction_service_proto != nil {
576 return
577 }
578 file_google_cloud_retail_v2alpha_user_event_proto_init()
579 type x struct{}
580 out := protoimpl.TypeBuilder{
581 File: protoimpl.DescBuilder{
582 GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
583 RawDescriptor: file_google_cloud_retail_v2alpha_prediction_service_proto_rawDesc,
584 NumEnums: 0,
585 NumMessages: 6,
586 NumExtensions: 0,
587 NumServices: 1,
588 },
589 GoTypes: file_google_cloud_retail_v2alpha_prediction_service_proto_goTypes,
590 DependencyIndexes: file_google_cloud_retail_v2alpha_prediction_service_proto_depIdxs,
591 MessageInfos: file_google_cloud_retail_v2alpha_prediction_service_proto_msgTypes,
592 }.Build()
593 File_google_cloud_retail_v2alpha_prediction_service_proto = out.File
594 file_google_cloud_retail_v2alpha_prediction_service_proto_rawDesc = nil
595 file_google_cloud_retail_v2alpha_prediction_service_proto_goTypes = nil
596 file_google_cloud_retail_v2alpha_prediction_service_proto_depIdxs = nil
597 }
598
599 // Reference imports to suppress errors if they are not otherwise used.
600 var _ context.Context
601 var _ grpc.ClientConnInterface
602
603 // This is a compile-time assertion to ensure that this generated file
604 // is compatible with the grpc package it is being compiled against.
605 const _ = grpc.SupportPackageIsVersion6
606
607 // PredictionServiceClient is the client API for PredictionService service.
608 //
609 // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
610 type PredictionServiceClient interface {
611 // Makes a recommendation prediction.
612 Predict(ctx context.Context, in *PredictRequest, opts ...grpc.CallOption) (*PredictResponse, error)
613 }
614
615 type predictionServiceClient struct {
616 cc grpc.ClientConnInterface
617 }
618
619 func NewPredictionServiceClient(cc grpc.ClientConnInterface) PredictionServiceClient {
620 return &predictionServiceClient{cc}
621 }
622
623 func (c *predictionServiceClient) Predict(ctx context.Context, in *PredictRequest, opts ...grpc.CallOption) (*PredictResponse, error) {
624 out := new(PredictResponse)
625 err := c.cc.Invoke(ctx, "/google.cloud.retail.v2alpha.PredictionService/Predict", in, out, opts...)
626 if err != nil {
627 return nil, err
628 }
629 return out, nil
630 }
631
632 // PredictionServiceServer is the server API for PredictionService service.
633 type PredictionServiceServer interface {
634 // Makes a recommendation prediction.
635 Predict(context.Context, *PredictRequest) (*PredictResponse, error)
636 }
637
638 // UnimplementedPredictionServiceServer can be embedded to have forward compatible implementations.
639 type UnimplementedPredictionServiceServer struct {
640 }
641
642 func (*UnimplementedPredictionServiceServer) Predict(context.Context, *PredictRequest) (*PredictResponse, error) {
643 return nil, status.Errorf(codes.Unimplemented, "method Predict not implemented")
644 }
645
646 func RegisterPredictionServiceServer(s *grpc.Server, srv PredictionServiceServer) {
647 s.RegisterService(&_PredictionService_serviceDesc, srv)
648 }
649
650 func _PredictionService_Predict_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
651 in := new(PredictRequest)
652 if err := dec(in); err != nil {
653 return nil, err
654 }
655 if interceptor == nil {
656 return srv.(PredictionServiceServer).Predict(ctx, in)
657 }
658 info := &grpc.UnaryServerInfo{
659 Server: srv,
660 FullMethod: "/google.cloud.retail.v2alpha.PredictionService/Predict",
661 }
662 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
663 return srv.(PredictionServiceServer).Predict(ctx, req.(*PredictRequest))
664 }
665 return interceptor(ctx, in, info, handler)
666 }
667
668 var _PredictionService_serviceDesc = grpc.ServiceDesc{
669 ServiceName: "google.cloud.retail.v2alpha.PredictionService",
670 HandlerType: (*PredictionServiceServer)(nil),
671 Methods: []grpc.MethodDesc{
672 {
673 MethodName: "Predict",
674 Handler: _PredictionService_Predict_Handler,
675 },
676 },
677 Streams: []grpc.StreamDesc{},
678 Metadata: "google/cloud/retail/v2alpha/prediction_service.proto",
679 }