Debian Codegraph @

retail/apiv2beta/retailpb/model.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/model.proto
20
21 package retailpb
22
23 import (
24 _ "google.golang.org/genproto/googleapis/api/annotations"
25 protoreflect "google.golang.org/protobuf/reflect/protoreflect"
26 protoimpl "google.golang.org/protobuf/runtime/protoimpl"
27 timestamppb "google.golang.org/protobuf/types/known/timestamppb"
28 reflect "reflect"
29 sync "sync"
30 )
31
32 const (
33 // Verify that this generated code is sufficiently up-to-date.
34 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
35 // Verify that runtime/protoimpl is sufficiently up-to-date.
36 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
37 )
38
39 // The serving state of the model.
40 type Model_ServingState int32
41
42 const (
43 // Unspecified serving state.
44 Model_SERVING_STATE_UNSPECIFIED Model_ServingState = 0
45 // The model is not serving.
46 Model_INACTIVE Model_ServingState = 1
47 // The model is serving and can be queried.
48 Model_ACTIVE Model_ServingState = 2
49 // The model is trained on tuned hyperparameters and can be
50 // queried.
51 Model_TUNED Model_ServingState = 3
52 )
53
54 // Enum value maps for Model_ServingState.
55 var (
56 Model_ServingState_name = map[int32]string{
57 0: "SERVING_STATE_UNSPECIFIED",
58 1: "INACTIVE",
59 2: "ACTIVE",
60 3: "TUNED",
61 }
62 Model_ServingState_value = map[string]int32{
63 "SERVING_STATE_UNSPECIFIED": 0,
64 "INACTIVE": 1,
65 "ACTIVE": 2,
66 "TUNED": 3,
67 }
68 )
69
70 func (x Model_ServingState) Enum() *Model_ServingState {
71 p := new(Model_ServingState)
72 *p = x
73 return p
74 }
75
76 func (x Model_ServingState) String() string {
77 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
78 }
79
80 func (Model_ServingState) Descriptor() protoreflect.EnumDescriptor {
81 return file_google_cloud_retail_v2beta_model_proto_enumTypes[0].Descriptor()
82 }
83
84 func (Model_ServingState) Type() protoreflect.EnumType {
85 return &file_google_cloud_retail_v2beta_model_proto_enumTypes[0]
86 }
87
88 func (x Model_ServingState) Number() protoreflect.EnumNumber {
89 return protoreflect.EnumNumber(x)
90 }
91
92 // Deprecated: Use Model_ServingState.Descriptor instead.
93 func (Model_ServingState) EnumDescriptor() ([]byte, []int) {
94 return file_google_cloud_retail_v2beta_model_proto_rawDescGZIP(), []int{0, 0}
95 }
96
97 // The training state of the model.
98 type Model_TrainingState int32
99
100 const (
101 // Unspecified training state.
102 Model_TRAINING_STATE_UNSPECIFIED Model_TrainingState = 0
103 // The model training is paused.
104 Model_PAUSED Model_TrainingState = 1
105 // The model is training.
106 Model_TRAINING Model_TrainingState = 2
107 )
108
109 // Enum value maps for Model_TrainingState.
110 var (
111 Model_TrainingState_name = map[int32]string{
112 0: "TRAINING_STATE_UNSPECIFIED",
113 1: "PAUSED",
114 2: "TRAINING",
115 }
116 Model_TrainingState_value = map[string]int32{
117 "TRAINING_STATE_UNSPECIFIED": 0,
118 "PAUSED": 1,
119 "TRAINING": 2,
120 }
121 )
122
123 func (x Model_TrainingState) Enum() *Model_TrainingState {
124 p := new(Model_TrainingState)
125 *p = x
126 return p
127 }
128
129 func (x Model_TrainingState) String() string {
130 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
131 }
132
133 func (Model_TrainingState) Descriptor() protoreflect.EnumDescriptor {
134 return file_google_cloud_retail_v2beta_model_proto_enumTypes[1].Descriptor()
135 }
136
137 func (Model_TrainingState) Type() protoreflect.EnumType {
138 return &file_google_cloud_retail_v2beta_model_proto_enumTypes[1]
139 }
140
141 func (x Model_TrainingState) Number() protoreflect.EnumNumber {
142 return protoreflect.EnumNumber(x)
143 }
144
145 // Deprecated: Use Model_TrainingState.Descriptor instead.
146 func (Model_TrainingState) EnumDescriptor() ([]byte, []int) {
147 return file_google_cloud_retail_v2beta_model_proto_rawDescGZIP(), []int{0, 1}
148 }
149
150 // Describes whether periodic tuning is enabled for this model
151 // or not. Periodic tuning is scheduled at most every three months. You can
152 // start a tuning process manually by using the `TuneModel`
153 // method, which starts a tuning process immediately and resets the quarterly
154 // schedule. Enabling or disabling periodic tuning does not affect any
155 // current tuning processes.
156 type Model_PeriodicTuningState int32
157
158 const (
159 // Unspecified default value, should never be explicitly set.
160 Model_PERIODIC_TUNING_STATE_UNSPECIFIED Model_PeriodicTuningState = 0
161 // The model has periodic tuning disabled. Tuning
162 // can be reenabled by calling the `EnableModelPeriodicTuning`
163 // method or by calling the `TuneModel` method.
164 Model_PERIODIC_TUNING_DISABLED Model_PeriodicTuningState = 1
165 // The model cannot be tuned with periodic tuning OR the
166 // `TuneModel` method. Hide the options in customer UI and
167 // reject any requests through the backend self serve API.
168 Model_ALL_TUNING_DISABLED Model_PeriodicTuningState = 3
169 // The model has periodic tuning enabled. Tuning
170 // can be disabled by calling the `DisableModelPeriodicTuning`
171 // method.
172 Model_PERIODIC_TUNING_ENABLED Model_PeriodicTuningState = 2
173 )
174
175 // Enum value maps for Model_PeriodicTuningState.
176 var (
177 Model_PeriodicTuningState_name = map[int32]string{
178 0: "PERIODIC_TUNING_STATE_UNSPECIFIED",
179 1: "PERIODIC_TUNING_DISABLED",
180 3: "ALL_TUNING_DISABLED",
181 2: "PERIODIC_TUNING_ENABLED",
182 }
183 Model_PeriodicTuningState_value = map[string]int32{
184 "PERIODIC_TUNING_STATE_UNSPECIFIED": 0,
185 "PERIODIC_TUNING_DISABLED": 1,
186 "ALL_TUNING_DISABLED": 3,
187 "PERIODIC_TUNING_ENABLED": 2,
188 }
189 )
190
191 func (x Model_PeriodicTuningState) Enum() *Model_PeriodicTuningState {
192 p := new(Model_PeriodicTuningState)
193 *p = x
194 return p
195 }
196
197 func (x Model_PeriodicTuningState) String() string {
198 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
199 }
200
201 func (Model_PeriodicTuningState) Descriptor() protoreflect.EnumDescriptor {
202 return file_google_cloud_retail_v2beta_model_proto_enumTypes[2].Descriptor()
203 }
204
205 func (Model_PeriodicTuningState) Type() protoreflect.EnumType {
206 return &file_google_cloud_retail_v2beta_model_proto_enumTypes[2]
207 }
208
209 func (x Model_PeriodicTuningState) Number() protoreflect.EnumNumber {
210 return protoreflect.EnumNumber(x)
211 }
212
213 // Deprecated: Use Model_PeriodicTuningState.Descriptor instead.
214 func (Model_PeriodicTuningState) EnumDescriptor() ([]byte, []int) {
215 return file_google_cloud_retail_v2beta_model_proto_rawDescGZIP(), []int{0, 2}
216 }
217
218 // Describes whether this model have sufficient training data
219 // to be continuously trained.
220 type Model_DataState int32
221
222 const (
223 // Unspecified default value, should never be explicitly set.
224 Model_DATA_STATE_UNSPECIFIED Model_DataState = 0
225 // The model has sufficient training data.
226 Model_DATA_OK Model_DataState = 1
227 // The model does not have sufficient training data. Error
228 // messages can be queried via Stackdriver.
229 Model_DATA_ERROR Model_DataState = 2
230 )
231
232 // Enum value maps for Model_DataState.
233 var (
234 Model_DataState_name = map[int32]string{
235 0: "DATA_STATE_UNSPECIFIED",
236 1: "DATA_OK",
237 2: "DATA_ERROR",
238 }
239 Model_DataState_value = map[string]int32{
240 "DATA_STATE_UNSPECIFIED": 0,
241 "DATA_OK": 1,
242 "DATA_ERROR": 2,
243 }
244 )
245
246 func (x Model_DataState) Enum() *Model_DataState {
247 p := new(Model_DataState)
248 *p = x
249 return p
250 }
251
252 func (x Model_DataState) String() string {
253 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
254 }
255
256 func (Model_DataState) Descriptor() protoreflect.EnumDescriptor {
257 return file_google_cloud_retail_v2beta_model_proto_enumTypes[3].Descriptor()
258 }
259
260 func (Model_DataState) Type() protoreflect.EnumType {
261 return &file_google_cloud_retail_v2beta_model_proto_enumTypes[3]
262 }
263
264 func (x Model_DataState) Number() protoreflect.EnumNumber {
265 return protoreflect.EnumNumber(x)
266 }
267
268 // Deprecated: Use Model_DataState.Descriptor instead.
269 func (Model_DataState) EnumDescriptor() ([]byte, []int) {
270 return file_google_cloud_retail_v2beta_model_proto_rawDescGZIP(), []int{0, 3}
271 }
272
273 // Use single or multiple context products for recommendations.
274 type Model_ContextProductsType int32
275
276 const (
277 // Unspecified default value, should never be explicitly set.
278 // Defaults to
279 // [MULTIPLE_CONTEXT_PRODUCTS][google.cloud.retail.v2beta.Model.ContextProductsType.MULTIPLE_CONTEXT_PRODUCTS].
280 Model_CONTEXT_PRODUCTS_TYPE_UNSPECIFIED Model_ContextProductsType = 0
281 // Use only a single product as context for the recommendation. Typically
282 // used on pages like add-to-cart or product details.
283 Model_SINGLE_CONTEXT_PRODUCT Model_ContextProductsType = 1
284 // Use one or multiple products as context for the recommendation. Typically
285 // used on shopping cart pages.
286 Model_MULTIPLE_CONTEXT_PRODUCTS Model_ContextProductsType = 2
287 )
288
289 // Enum value maps for Model_ContextProductsType.
290 var (
291 Model_ContextProductsType_name = map[int32]string{
292 0: "CONTEXT_PRODUCTS_TYPE_UNSPECIFIED",
293 1: "SINGLE_CONTEXT_PRODUCT",
294 2: "MULTIPLE_CONTEXT_PRODUCTS",
295 }
296 Model_ContextProductsType_value = map[string]int32{
297 "CONTEXT_PRODUCTS_TYPE_UNSPECIFIED": 0,
298 "SINGLE_CONTEXT_PRODUCT": 1,
299 "MULTIPLE_CONTEXT_PRODUCTS": 2,
300 }
301 )
302
303 func (x Model_ContextProductsType) Enum() *Model_ContextProductsType {
304 p := new(Model_ContextProductsType)
305 *p = x
306 return p
307 }
308
309 func (x Model_ContextProductsType) String() string {
310 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
311 }
312
313 func (Model_ContextProductsType) Descriptor() protoreflect.EnumDescriptor {
314 return file_google_cloud_retail_v2beta_model_proto_enumTypes[4].Descriptor()
315 }
316
317 func (Model_ContextProductsType) Type() protoreflect.EnumType {
318 return &file_google_cloud_retail_v2beta_model_proto_enumTypes[4]
319 }
320
321 func (x Model_ContextProductsType) Number() protoreflect.EnumNumber {
322 return protoreflect.EnumNumber(x)
323 }
324
325 // Deprecated: Use Model_ContextProductsType.Descriptor instead.
326 func (Model_ContextProductsType) EnumDescriptor() ([]byte, []int) {
327 return file_google_cloud_retail_v2beta_model_proto_rawDescGZIP(), []int{0, 4}
328 }
329
330 // Metadata that describes the training and serving parameters of a
331 // [Model][google.cloud.retail.v2beta.Model]. A
332 // [Model][google.cloud.retail.v2beta.Model] can be associated with a
333 // [ServingConfig][google.cloud.retail.v2beta.ServingConfig] and then queried
334 // through the Predict API.
335 type Model struct {
336 state protoimpl.MessageState
337 sizeCache protoimpl.SizeCache
338 unknownFields protoimpl.UnknownFields
339
340 // Required. The fully qualified resource name of the model.
341 //
342 // Format:
343 // `projects/{project_number}/locations/{location_id}/catalogs/{catalog_id}/models/{model_id}`
344 // catalog_id has char limit of 50.
345 // recommendation_model_id has char limit of 40.
346 Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
347 // Required. The display name of the model.
348 //
349 // Should be human readable, used to display Recommendation Models in the
350 // Retail Cloud Console Dashboard. UTF-8 encoded string with limit of 1024
351 // characters.
352 DisplayName string `protobuf:"bytes,2,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"`
353 // Optional. The training state that the model is in (e.g.
354 // `TRAINING` or `PAUSED`).
355 //
356 // Since part of the cost of running the service
357 // is frequency of training - this can be used to determine when to train
358 // model in order to control cost. If not specified: the default value for
359 // `CreateModel` method is `TRAINING`. The default value for
360 // `UpdateModel` method is to keep the state the same as before.
361 TrainingState Model_TrainingState `protobuf:"varint,3,opt,name=training_state,json=trainingState,proto3,enum=google.cloud.retail.v2beta.Model_TrainingState" json:"training_state,omitempty"`
362 // Output only. The serving state of the model: `ACTIVE`, `NOT_ACTIVE`.
363 ServingState Model_ServingState `protobuf:"varint,4,opt,name=serving_state,json=servingState,proto3,enum=google.cloud.retail.v2beta.Model_ServingState" json:"serving_state,omitempty"`
364 // Output only. Timestamp the Recommendation Model was created at.
365 CreateTime *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
366 // Output only. Timestamp the Recommendation Model was last updated. E.g.
367 // if a Recommendation Model was paused - this would be the time the pause was
368 // initiated.
369 UpdateTime *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"`
370 // Required. The type of model e.g. `home-page`.
371 //
372 // Currently supported values: `recommended-for-you`, `others-you-may-like`,
373 // `frequently-bought-together`, `page-optimization`, `similar-items`,
374 // `buy-it-again`, `on-sale-items`, and `recently-viewed`(readonly value).
375 //
376 // This field together with
377 // [optimization_objective][google.cloud.retail.v2beta.Model.optimization_objective]
378 // describe model metadata to use to control model training and serving.
379 // See https://cloud.google.com/retail/docs/models
380 // for more details on what the model metadata control and which combination
381 // of parameters are valid. For invalid combinations of parameters (e.g. type
382 // = `frequently-bought-together` and optimization_objective = `ctr`), you
383 // receive an error 400 if you try to create/update a recommendation with
384 // this set of knobs.
385 Type string `protobuf:"bytes,7,opt,name=type,proto3" json:"type,omitempty"`
386 // Optional. The optimization objective e.g. `cvr`.
387 //
388 // Currently supported
389 // values: `ctr`, `cvr`, `revenue-per-order`.
390 //
391 // If not specified, we choose default based on model type.
392 //
393 // Default depends on type of recommendation:
394 //
395 // `recommended-for-you` => `ctr`
396 //
397 // `others-you-may-like` => `ctr`
398 //
399 // `frequently-bought-together` => `revenue_per_order`
400 //
401 // This field together with
402 // [optimization_objective][google.cloud.retail.v2beta.Model.type]
403 // describe model metadata to use to control model training and serving.
404 // See https://cloud.google.com/retail/docs/models
405 // for more details on what the model metadata control and which combination
406 // of parameters are valid. For invalid combinations of parameters (e.g. type
407 // = `frequently-bought-together` and optimization_objective = `ctr`), you
408 // receive an error 400 if you try to create/update a recommendation with
409 // this set of knobs.
410 OptimizationObjective string `protobuf:"bytes,8,opt,name=optimization_objective,json=optimizationObjective,proto3" json:"optimization_objective,omitempty"`
411 // Optional. The state of periodic tuning.
412 //
413 // The period we use is 3 months - to do a
414 // one-off tune earlier use the `TuneModel` method. Default value
415 // is `PERIODIC_TUNING_ENABLED`.
416 PeriodicTuningState Model_PeriodicTuningState `protobuf:"varint,11,opt,name=periodic_tuning_state,json=periodicTuningState,proto3,enum=google.cloud.retail.v2beta.Model_PeriodicTuningState" json:"periodic_tuning_state,omitempty"`
417 // Output only. The timestamp when the latest successful tune finished.
418 LastTuneTime *timestamppb.Timestamp `protobuf:"bytes,12,opt,name=last_tune_time,json=lastTuneTime,proto3" json:"last_tune_time,omitempty"`
419 // Output only. The tune operation associated with the model.
420 //
421 // Can be used to determine if there is an ongoing tune for this
422 // recommendation. Empty field implies no tune is goig on.
423 TuningOperation string `protobuf:"bytes,15,opt,name=tuning_operation,json=tuningOperation,proto3" json:"tuning_operation,omitempty"`
424 // Output only. The state of data requirements for this model: `DATA_OK` and
425 // `DATA_ERROR`.
426 //
427 // Recommendation model cannot be trained if the data is in
428 // `DATA_ERROR` state. Recommendation model can have `DATA_ERROR` state even
429 // if serving state is `ACTIVE`: models were trained successfully before, but
430 // cannot be refreshed because model no longer has sufficient
431 // data for training.
432 DataState Model_DataState `protobuf:"varint,16,opt,name=data_state,json=dataState,proto3,enum=google.cloud.retail.v2beta.Model_DataState" json:"data_state,omitempty"`
433 // Optional. If `RECOMMENDATIONS_FILTERING_ENABLED`, recommendation filtering
434 // by attributes is enabled for the model.
435 FilteringOption RecommendationsFilteringOption `protobuf:"varint,18,opt,name=filtering_option,json=filteringOption,proto3,enum=google.cloud.retail.v2beta.RecommendationsFilteringOption" json:"filtering_option,omitempty"`
436 // Output only. The list of valid serving configs associated with the
437 // PageOptimizationConfig.
438 ServingConfigLists []*Model_ServingConfigList `protobuf:"bytes,19,rep,name=serving_config_lists,json=servingConfigLists,proto3" json:"serving_config_lists,omitempty"`
439 // Optional. Additional model features config.
440 ModelFeaturesConfig *Model_ModelFeaturesConfig `protobuf:"bytes,22,opt,name=model_features_config,json=modelFeaturesConfig,proto3" json:"model_features_config,omitempty"`
441 }
442
443 func (x *Model) Reset() {
444 *x = Model{}
445 mi := &file_google_cloud_retail_v2beta_model_proto_msgTypes[0]
446 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
447 ms.StoreMessageInfo(mi)
448 }
449
450 func (x *Model) String() string {
451 return protoimpl.X.MessageStringOf(x)
452 }
453
454 func (*Model) ProtoMessage() {}
455
456 func (x *Model) ProtoReflect() protoreflect.Message {
457 mi := &file_google_cloud_retail_v2beta_model_proto_msgTypes[0]
458 if x != nil {
459 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
460 if ms.LoadMessageInfo() == nil {
461 ms.StoreMessageInfo(mi)
462 }
463 return ms
464 }
465 return mi.MessageOf(x)
466 }
467
468 // Deprecated: Use Model.ProtoReflect.Descriptor instead.
469 func (*Model) Descriptor() ([]byte, []int) {
470 return file_google_cloud_retail_v2beta_model_proto_rawDescGZIP(), []int{0}
471 }
472
473 func (x *Model) GetName() string {
474 if x != nil {
475 return x.Name
476 }
477 return ""
478 }
479
480 func (x *Model) GetDisplayName() string {
481 if x != nil {
482 return x.DisplayName
483 }
484 return ""
485 }
486
487 func (x *Model) GetTrainingState() Model_TrainingState {
488 if x != nil {
489 return x.TrainingState
490 }
491 return Model_TRAINING_STATE_UNSPECIFIED
492 }
493
494 func (x *Model) GetServingState() Model_ServingState {
495 if x != nil {
496 return x.ServingState
497 }
498 return Model_SERVING_STATE_UNSPECIFIED
499 }
500
501 func (x *Model) GetCreateTime() *timestamppb.Timestamp {
502 if x != nil {
503 return x.CreateTime
504 }
505 return nil
506 }
507
508 func (x *Model) GetUpdateTime() *timestamppb.Timestamp {
509 if x != nil {
510 return x.UpdateTime
511 }
512 return nil
513 }
514
515 func (x *Model) GetType() string {
516 if x != nil {
517 return x.Type
518 }
519 return ""
520 }
521
522 func (x *Model) GetOptimizationObjective() string {
523 if x != nil {
524 return x.OptimizationObjective
525 }
526 return ""
527 }
528
529 func (x *Model) GetPeriodicTuningState() Model_PeriodicTuningState {
530 if x != nil {
531 return x.PeriodicTuningState
532 }
533 return Model_PERIODIC_TUNING_STATE_UNSPECIFIED
534 }
535
536 func (x *Model) GetLastTuneTime() *timestamppb.Timestamp {
537 if x != nil {
538 return x.LastTuneTime
539 }
540 return nil
541 }
542
543 func (x *Model) GetTuningOperation() string {
544 if x != nil {
545 return x.TuningOperation
546 }
547 return ""
548 }
549
550 func (x *Model) GetDataState() Model_DataState {
551 if x != nil {
552 return x.DataState
553 }
554 return Model_DATA_STATE_UNSPECIFIED
555 }
556
557 func (x *Model) GetFilteringOption() RecommendationsFilteringOption {
558 if x != nil {
559 return x.FilteringOption
560 }
561 return RecommendationsFilteringOption_RECOMMENDATIONS_FILTERING_OPTION_UNSPECIFIED
562 }
563
564 func (x *Model) GetServingConfigLists() []*Model_ServingConfigList {
565 if x != nil {
566 return x.ServingConfigLists
567 }
568 return nil
569 }
570
571 func (x *Model) GetModelFeaturesConfig() *Model_ModelFeaturesConfig {
572 if x != nil {
573 return x.ModelFeaturesConfig
574 }
575 return nil
576 }
577
578 // Represents an ordered combination of valid serving configs, which
579 // can be used for `PAGE_OPTIMIZATION` recommendations.
580 type Model_ServingConfigList struct {
581 state protoimpl.MessageState
582 sizeCache protoimpl.SizeCache
583 unknownFields protoimpl.UnknownFields
584
585 // Optional. A set of valid serving configs that may be used for
586 // `PAGE_OPTIMIZATION`.
587 ServingConfigIds []string `protobuf:"bytes,1,rep,name=serving_config_ids,json=servingConfigIds,proto3" json:"serving_config_ids,omitempty"`
588 }
589
590 func (x *Model_ServingConfigList) Reset() {
591 *x = Model_ServingConfigList{}
592 mi := &file_google_cloud_retail_v2beta_model_proto_msgTypes[1]
593 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
594 ms.StoreMessageInfo(mi)
595 }
596
597 func (x *Model_ServingConfigList) String() string {
598 return protoimpl.X.MessageStringOf(x)
599 }
600
601 func (*Model_ServingConfigList) ProtoMessage() {}
602
603 func (x *Model_ServingConfigList) ProtoReflect() protoreflect.Message {
604 mi := &file_google_cloud_retail_v2beta_model_proto_msgTypes[1]
605 if x != nil {
606 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
607 if ms.LoadMessageInfo() == nil {
608 ms.StoreMessageInfo(mi)
609 }
610 return ms
611 }
612 return mi.MessageOf(x)
613 }
614
615 // Deprecated: Use Model_ServingConfigList.ProtoReflect.Descriptor instead.
616 func (*Model_ServingConfigList) Descriptor() ([]byte, []int) {
617 return file_google_cloud_retail_v2beta_model_proto_rawDescGZIP(), []int{0, 0}
618 }
619
620 func (x *Model_ServingConfigList) GetServingConfigIds() []string {
621 if x != nil {
622 return x.ServingConfigIds
623 }
624 return nil
625 }
626
627 // Additional configs for the frequently-bought-together model type.
628 type Model_FrequentlyBoughtTogetherFeaturesConfig struct {
629 state protoimpl.MessageState
630 sizeCache protoimpl.SizeCache
631 unknownFields protoimpl.UnknownFields
632
633 // Optional. Specifies the context of the model when it is used in predict
634 // requests. Can only be set for the `frequently-bought-together` type. If
635 // it isn't specified, it defaults to
636 // [MULTIPLE_CONTEXT_PRODUCTS][google.cloud.retail.v2beta.Model.ContextProductsType.MULTIPLE_CONTEXT_PRODUCTS].
637 ContextProductsType Model_ContextProductsType `protobuf:"varint,2,opt,name=context_products_type,json=contextProductsType,proto3,enum=google.cloud.retail.v2beta.Model_ContextProductsType" json:"context_products_type,omitempty"`
638 }
639
640 func (x *Model_FrequentlyBoughtTogetherFeaturesConfig) Reset() {
641 *x = Model_FrequentlyBoughtTogetherFeaturesConfig{}
642 mi := &file_google_cloud_retail_v2beta_model_proto_msgTypes[2]
643 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
644 ms.StoreMessageInfo(mi)
645 }
646
647 func (x *Model_FrequentlyBoughtTogetherFeaturesConfig) String() string {
648 return protoimpl.X.MessageStringOf(x)
649 }
650
651 func (*Model_FrequentlyBoughtTogetherFeaturesConfig) ProtoMessage() {}
652
653 func (x *Model_FrequentlyBoughtTogetherFeaturesConfig) ProtoReflect() protoreflect.Message {
654 mi := &file_google_cloud_retail_v2beta_model_proto_msgTypes[2]
655 if x != nil {
656 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
657 if ms.LoadMessageInfo() == nil {
658 ms.StoreMessageInfo(mi)
659 }
660 return ms
661 }
662 return mi.MessageOf(x)
663 }
664
665 // Deprecated: Use Model_FrequentlyBoughtTogetherFeaturesConfig.ProtoReflect.Descriptor instead.
666 func (*Model_FrequentlyBoughtTogetherFeaturesConfig) Descriptor() ([]byte, []int) {
667 return file_google_cloud_retail_v2beta_model_proto_rawDescGZIP(), []int{0, 1}
668 }
669
670 func (x *Model_FrequentlyBoughtTogetherFeaturesConfig) GetContextProductsType() Model_ContextProductsType {
671 if x != nil {
672 return x.ContextProductsType
673 }
674 return Model_CONTEXT_PRODUCTS_TYPE_UNSPECIFIED
675 }
676
677 // Additional model features config.
678 type Model_ModelFeaturesConfig struct {
679 state protoimpl.MessageState
680 sizeCache protoimpl.SizeCache
681 unknownFields protoimpl.UnknownFields
682
683 // Types that are assignable to TypeDedicatedConfig:
684 //
685 // *Model_ModelFeaturesConfig_FrequentlyBoughtTogetherConfig
686 TypeDedicatedConfig isModel_ModelFeaturesConfig_TypeDedicatedConfig `protobuf_oneof:"type_dedicated_config"`
687 }
688
689 func (x *Model_ModelFeaturesConfig) Reset() {
690 *x = Model_ModelFeaturesConfig{}
691 mi := &file_google_cloud_retail_v2beta_model_proto_msgTypes[3]
692 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
693 ms.StoreMessageInfo(mi)
694 }
695
696 func (x *Model_ModelFeaturesConfig) String() string {
697 return protoimpl.X.MessageStringOf(x)
698 }
699
700 func (*Model_ModelFeaturesConfig) ProtoMessage() {}
701
702 func (x *Model_ModelFeaturesConfig) ProtoReflect() protoreflect.Message {
703 mi := &file_google_cloud_retail_v2beta_model_proto_msgTypes[3]
704 if x != nil {
705 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
706 if ms.LoadMessageInfo() == nil {
707 ms.StoreMessageInfo(mi)
708 }
709 return ms
710 }
711 return mi.MessageOf(x)
712 }
713
714 // Deprecated: Use Model_ModelFeaturesConfig.ProtoReflect.Descriptor instead.
715 func (*Model_ModelFeaturesConfig) Descriptor() ([]byte, []int) {
716 return file_google_cloud_retail_v2beta_model_proto_rawDescGZIP(), []int{0, 2}
717 }
718
719 func (m *Model_ModelFeaturesConfig) GetTypeDedicatedConfig() isModel_ModelFeaturesConfig_TypeDedicatedConfig {
720 if m != nil {
721 return m.TypeDedicatedConfig
722 }
723 return nil
724 }
725
726 func (x *Model_ModelFeaturesConfig) GetFrequentlyBoughtTogetherConfig() *Model_FrequentlyBoughtTogetherFeaturesConfig {
727 if x, ok := x.GetTypeDedicatedConfig().(*Model_ModelFeaturesConfig_FrequentlyBoughtTogetherConfig); ok {
728 return x.FrequentlyBoughtTogetherConfig
729 }
730 return nil
731 }
732
733 type isModel_ModelFeaturesConfig_TypeDedicatedConfig interface {
734 isModel_ModelFeaturesConfig_TypeDedicatedConfig()
735 }
736
737 type Model_ModelFeaturesConfig_FrequentlyBoughtTogetherConfig struct {
738 // Additional configs for frequently-bought-together models.
739 FrequentlyBoughtTogetherConfig *Model_FrequentlyBoughtTogetherFeaturesConfig `protobuf:"bytes,1,opt,name=frequently_bought_together_config,json=frequentlyBoughtTogetherConfig,proto3,oneof"`
740 }
741
742 func (*Model_ModelFeaturesConfig_FrequentlyBoughtTogetherConfig) isModel_ModelFeaturesConfig_TypeDedicatedConfig() {
743 }
744
745 var File_google_cloud_retail_v2beta_model_proto protoreflect.FileDescriptor
746
747 var file_google_cloud_retail_v2beta_model_proto_rawDesc = []byte{
748 0x0a, 0x26, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x72,
749 0x65, 0x74, 0x61, 0x69, 0x6c, 0x2f, 0x76, 0x32, 0x62, 0x65, 0x74, 0x61, 0x2f, 0x6d, 0x6f, 0x64,
750 0x65, 0x6c, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x1a, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
751 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x72, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x2e, 0x76, 0x32,
752 0x62, 0x65, 0x74, 0x61, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69,
753 0x2f, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x5f, 0x62, 0x65, 0x68, 0x61, 0x76, 0x69, 0x6f, 0x72, 0x2e,
754 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x19, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70,
755 0x69, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
756 0x1a, 0x27, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x72,
757 0x65, 0x74, 0x61, 0x69, 0x6c, 0x2f, 0x76, 0x32, 0x62, 0x65, 0x74, 0x61, 0x2f, 0x63, 0x6f, 0x6d,
758 0x6d, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c,
759 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x73,
760 0x74, 0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xe2, 0x10, 0x0a, 0x05, 0x4d,
761 0x6f, 0x64, 0x65, 0x6c, 0x12, 0x17, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01,
762 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x26, 0x0a,
763 0x0c, 0x64, 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20,
764 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x0b, 0x64, 0x69, 0x73, 0x70, 0x6c, 0x61,
765 0x79, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x5b, 0x0a, 0x0e, 0x74, 0x72, 0x61, 0x69, 0x6e, 0x69, 0x6e,
766 0x67, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x2f, 0x2e,
767 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x72, 0x65, 0x74,
768 0x61, 0x69, 0x6c, 0x2e, 0x76, 0x32, 0x62, 0x65, 0x74, 0x61, 0x2e, 0x4d, 0x6f, 0x64, 0x65, 0x6c,
769 0x2e, 0x54, 0x72, 0x61, 0x69, 0x6e, 0x69, 0x6e, 0x67, 0x53, 0x74, 0x61, 0x74, 0x65, 0x42, 0x03,
770 0xe0, 0x41, 0x01, 0x52, 0x0d, 0x74, 0x72, 0x61, 0x69, 0x6e, 0x69, 0x6e, 0x67, 0x53, 0x74, 0x61,
771 0x74, 0x65, 0x12, 0x58, 0x0a, 0x0d, 0x73, 0x65, 0x72, 0x76, 0x69, 0x6e, 0x67, 0x5f, 0x73, 0x74,
772 0x61, 0x74, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x2e, 0x2e, 0x67, 0x6f, 0x6f, 0x67,
773 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x72, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x2e,
774 0x76, 0x32, 0x62, 0x65, 0x74, 0x61, 0x2e, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x2e, 0x53, 0x65, 0x72,
775 0x76, 0x69, 0x6e, 0x67, 0x53, 0x74, 0x61, 0x74, 0x65, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x0c,
776 0x73, 0x65, 0x72, 0x76, 0x69, 0x6e, 0x67, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x40, 0x0a, 0x0b,
777 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28,
778 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
779 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x42, 0x03, 0xe0,
780 0x41, 0x03, 0x52, 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x40,
781 0x0a, 0x0b, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x06, 0x20,
782 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f,
783 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x42,
784 0x03, 0xe0, 0x41, 0x03, 0x52, 0x0a, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x54, 0x69, 0x6d, 0x65,
785 0x12, 0x17, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03,
786 0xe0, 0x41, 0x02, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x3a, 0x0a, 0x16, 0x6f, 0x70, 0x74,
787 0x69, 0x6d, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x6f, 0x62, 0x6a, 0x65, 0x63, 0x74,
788 0x69, 0x76, 0x65, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x01, 0x52, 0x15,
789 0x6f, 0x70, 0x74, 0x69, 0x6d, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4f, 0x62, 0x6a, 0x65,
790 0x63, 0x74, 0x69, 0x76, 0x65, 0x12, 0x6e, 0x0a, 0x15, 0x70, 0x65, 0x72, 0x69, 0x6f, 0x64, 0x69,
791 0x63, 0x5f, 0x74, 0x75, 0x6e, 0x69, 0x6e, 0x67, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, 0x0b,
792 0x20, 0x01, 0x28, 0x0e, 0x32, 0x35, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c,
793 0x6f, 0x75, 0x64, 0x2e, 0x72, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x2e, 0x76, 0x32, 0x62, 0x65, 0x74,
794 0x61, 0x2e, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x2e, 0x50, 0x65, 0x72, 0x69, 0x6f, 0x64, 0x69, 0x63,
795 0x54, 0x75, 0x6e, 0x69, 0x6e, 0x67, 0x53, 0x74, 0x61, 0x74, 0x65, 0x42, 0x03, 0xe0, 0x41, 0x01,
796 0x52, 0x13, 0x70, 0x65, 0x72, 0x69, 0x6f, 0x64, 0x69, 0x63, 0x54, 0x75, 0x6e, 0x69, 0x6e, 0x67,
797 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x45, 0x0a, 0x0e, 0x6c, 0x61, 0x73, 0x74, 0x5f, 0x74, 0x75,
798 0x6e, 0x65, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e,
799 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e,
800 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x0c,
801 0x6c, 0x61, 0x73, 0x74, 0x54, 0x75, 0x6e, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x2e, 0x0a, 0x10,
802 0x74, 0x75, 0x6e, 0x69, 0x6e, 0x67, 0x5f, 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e,
803 0x18, 0x0f, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x0f, 0x74, 0x75, 0x6e,
804 0x69, 0x6e, 0x67, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x4f, 0x0a, 0x0a,
805 0x64, 0x61, 0x74, 0x61, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, 0x10, 0x20, 0x01, 0x28, 0x0e,
806 0x32, 0x2b, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e,
807 0x72, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x2e, 0x76, 0x32, 0x62, 0x65, 0x74, 0x61, 0x2e, 0x4d, 0x6f,
808 0x64, 0x65, 0x6c, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x53, 0x74, 0x61, 0x74, 0x65, 0x42, 0x03, 0xe0,
809 0x41, 0x03, 0x52, 0x09, 0x64, 0x61, 0x74, 0x61, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x6a, 0x0a,
810 0x10, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x69, 0x6e, 0x67, 0x5f, 0x6f, 0x70, 0x74, 0x69, 0x6f,
811 0x6e, 0x18, 0x12, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x3a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
812 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x72, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x2e, 0x76, 0x32,
813 0x62, 0x65, 0x74, 0x61, 0x2e, 0x52, 0x65, 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x64, 0x61, 0x74,
814 0x69, 0x6f, 0x6e, 0x73, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x69, 0x6e, 0x67, 0x4f, 0x70, 0x74,
815 0x69, 0x6f, 0x6e, 0x42, 0x03, 0xe0, 0x41, 0x01, 0x52, 0x0f, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72,
816 0x69, 0x6e, 0x67, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x6a, 0x0a, 0x14, 0x73, 0x65, 0x72,
817 0x76, 0x69, 0x6e, 0x67, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x5f, 0x6c, 0x69, 0x73, 0x74,
818 0x73, 0x18, 0x13, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x33, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
819 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x72, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x2e, 0x76, 0x32,
820 0x62, 0x65, 0x74, 0x61, 0x2e, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x2e, 0x53, 0x65, 0x72, 0x76, 0x69,
821 0x6e, 0x67, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x4c, 0x69, 0x73, 0x74, 0x42, 0x03, 0xe0, 0x41,
822 0x03, 0x52, 0x12, 0x73, 0x65, 0x72, 0x76, 0x69, 0x6e, 0x67, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67,
823 0x4c, 0x69, 0x73, 0x74, 0x73, 0x12, 0x6e, 0x0a, 0x15, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x5f, 0x66,
824 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, 0x73, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, 0x16,
825 0x20, 0x01, 0x28, 0x0b, 0x32, 0x35, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c,
826 0x6f, 0x75, 0x64, 0x2e, 0x72, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x2e, 0x76, 0x32, 0x62, 0x65, 0x74,
827 0x61, 0x2e, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x2e, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x46, 0x65, 0x61,
828 0x74, 0x75, 0x72, 0x65, 0x73, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x42, 0x03, 0xe0, 0x41, 0x01,
829 0x52, 0x13, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x46, 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, 0x73, 0x43,
830 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x1a, 0x46, 0x0a, 0x11, 0x53, 0x65, 0x72, 0x76, 0x69, 0x6e, 0x67,
831 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x31, 0x0a, 0x12, 0x73, 0x65,
832 0x72, 0x76, 0x69, 0x6e, 0x67, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x5f, 0x69, 0x64, 0x73,
833 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x01, 0x52, 0x10, 0x73, 0x65, 0x72,
834 0x76, 0x69, 0x6e, 0x67, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x49, 0x64, 0x73, 0x1a, 0x98, 0x01,
835 0x0a, 0x26, 0x46, 0x72, 0x65, 0x71, 0x75, 0x65, 0x6e, 0x74, 0x6c, 0x79, 0x42, 0x6f, 0x75, 0x67,
836 0x68, 0x74, 0x54, 0x6f, 0x67, 0x65, 0x74, 0x68, 0x65, 0x72, 0x46, 0x65, 0x61, 0x74, 0x75, 0x72,
837 0x65, 0x73, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x6e, 0x0a, 0x15, 0x63, 0x6f, 0x6e, 0x74,
838 0x65, 0x78, 0x74, 0x5f, 0x70, 0x72, 0x6f, 0x64, 0x75, 0x63, 0x74, 0x73, 0x5f, 0x74, 0x79, 0x70,
839 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x35, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
840 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x72, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x2e, 0x76, 0x32,
841 0x62, 0x65, 0x74, 0x61, 0x2e, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x2e, 0x43, 0x6f, 0x6e, 0x74, 0x65,
842 0x78, 0x74, 0x50, 0x72, 0x6f, 0x64, 0x75, 0x63, 0x74, 0x73, 0x54, 0x79, 0x70, 0x65, 0x42, 0x03,
843 0xe0, 0x41, 0x01, 0x52, 0x13, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x50, 0x72, 0x6f, 0x64,
844 0x75, 0x63, 0x74, 0x73, 0x54, 0x79, 0x70, 0x65, 0x1a, 0xc6, 0x01, 0x0a, 0x13, 0x4d, 0x6f, 0x64,
845 0x65, 0x6c, 0x46, 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, 0x73, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67,
846 0x12, 0x95, 0x01, 0x0a, 0x21, 0x66, 0x72, 0x65, 0x71, 0x75, 0x65, 0x6e, 0x74, 0x6c, 0x79, 0x5f,
847 0x62, 0x6f, 0x75, 0x67, 0x68, 0x74, 0x5f, 0x74, 0x6f, 0x67, 0x65, 0x74, 0x68, 0x65, 0x72, 0x5f,
848 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x48, 0x2e, 0x67,
849 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x72, 0x65, 0x74, 0x61,
850 0x69, 0x6c, 0x2e, 0x76, 0x32, 0x62, 0x65, 0x74, 0x61, 0x2e, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x2e,
851 0x46, 0x72, 0x65, 0x71, 0x75, 0x65, 0x6e, 0x74, 0x6c, 0x79, 0x42, 0x6f, 0x75, 0x67, 0x68, 0x74,
852 0x54, 0x6f, 0x67, 0x65, 0x74, 0x68, 0x65, 0x72, 0x46, 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, 0x73,
853 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x48, 0x00, 0x52, 0x1e, 0x66, 0x72, 0x65, 0x71, 0x75, 0x65,
854 0x6e, 0x74, 0x6c, 0x79, 0x42, 0x6f, 0x75, 0x67, 0x68, 0x74, 0x54, 0x6f, 0x67, 0x65, 0x74, 0x68,
855 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x42, 0x17, 0x0a, 0x15, 0x74, 0x79, 0x70, 0x65,
856 0x5f, 0x64, 0x65, 0x64, 0x69, 0x63, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69,
857 0x67, 0x22, 0x52, 0x0a, 0x0c, 0x53, 0x65, 0x72, 0x76, 0x69, 0x6e, 0x67, 0x53, 0x74, 0x61, 0x74,
858 0x65, 0x12, 0x1d, 0x0a, 0x19, 0x53, 0x45, 0x52, 0x56, 0x49, 0x4e, 0x47, 0x5f, 0x53, 0x54, 0x41,
859 0x54, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00,
860 0x12, 0x0c, 0x0a, 0x08, 0x49, 0x4e, 0x41, 0x43, 0x54, 0x49, 0x56, 0x45, 0x10, 0x01, 0x12, 0x0a,
861 0x0a, 0x06, 0x41, 0x43, 0x54, 0x49, 0x56, 0x45, 0x10, 0x02, 0x12, 0x09, 0x0a, 0x05, 0x54, 0x55,
862 0x4e, 0x45, 0x44, 0x10, 0x03, 0x22, 0x49, 0x0a, 0x0d, 0x54, 0x72, 0x61, 0x69, 0x6e, 0x69, 0x6e,
863 0x67, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x1e, 0x0a, 0x1a, 0x54, 0x52, 0x41, 0x49, 0x4e, 0x49,
864 0x4e, 0x47, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49,
865 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x0a, 0x0a, 0x06, 0x50, 0x41, 0x55, 0x53, 0x45, 0x44,
866 0x10, 0x01, 0x12, 0x0c, 0x0a, 0x08, 0x54, 0x52, 0x41, 0x49, 0x4e, 0x49, 0x4e, 0x47, 0x10, 0x02,
867 0x22, 0x90, 0x01, 0x0a, 0x13, 0x50, 0x65, 0x72, 0x69, 0x6f, 0x64, 0x69, 0x63, 0x54, 0x75, 0x6e,
868 0x69, 0x6e, 0x67, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x25, 0x0a, 0x21, 0x50, 0x45, 0x52, 0x49,
869 0x4f, 0x44, 0x49, 0x43, 0x5f, 0x54, 0x55, 0x4e, 0x49, 0x4e, 0x47, 0x5f, 0x53, 0x54, 0x41, 0x54,
870 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12,
871 0x1c, 0x0a, 0x18, 0x50, 0x45, 0x52, 0x49, 0x4f, 0x44, 0x49, 0x43, 0x5f, 0x54, 0x55, 0x4e, 0x49,
872 0x4e, 0x47, 0x5f, 0x44, 0x49, 0x53, 0x41, 0x42, 0x4c, 0x45, 0x44, 0x10, 0x01, 0x12, 0x17, 0x0a,
873 0x13, 0x41, 0x4c, 0x4c, 0x5f, 0x54, 0x55, 0x4e, 0x49, 0x4e, 0x47, 0x5f, 0x44, 0x49, 0x53, 0x41,
874 0x42, 0x4c, 0x45, 0x44, 0x10, 0x03, 0x12, 0x1b, 0x0a, 0x17, 0x50, 0x45, 0x52, 0x49, 0x4f, 0x44,
875 0x49, 0x43, 0x5f, 0x54, 0x55, 0x4e, 0x49, 0x4e, 0x47, 0x5f, 0x45, 0x4e, 0x41, 0x42, 0x4c, 0x45,
876 0x44, 0x10, 0x02, 0x22, 0x44, 0x0a, 0x09, 0x44, 0x61, 0x74, 0x61, 0x53, 0x74, 0x61, 0x74, 0x65,
877 0x12, 0x1a, 0x0a, 0x16, 0x44, 0x41, 0x54, 0x41, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x45, 0x5f, 0x55,
878 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x0b, 0x0a, 0x07,
879 0x44, 0x41, 0x54, 0x41, 0x5f, 0x4f, 0x4b, 0x10, 0x01, 0x12, 0x0e, 0x0a, 0x0a, 0x44, 0x41, 0x54,
880 0x41, 0x5f, 0x45, 0x52, 0x52, 0x4f, 0x52, 0x10, 0x02, 0x22, 0x77, 0x0a, 0x13, 0x43, 0x6f, 0x6e,
881 0x74, 0x65, 0x78, 0x74, 0x50, 0x72, 0x6f, 0x64, 0x75, 0x63, 0x74, 0x73, 0x54, 0x79, 0x70, 0x65,
882 0x12, 0x25, 0x0a, 0x21, 0x43, 0x4f, 0x4e, 0x54, 0x45, 0x58, 0x54, 0x5f, 0x50, 0x52, 0x4f, 0x44,
883 0x55, 0x43, 0x54, 0x53, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43,
884 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x1a, 0x0a, 0x16, 0x53, 0x49, 0x4e, 0x47, 0x4c,
885 0x45, 0x5f, 0x43, 0x4f, 0x4e, 0x54, 0x45, 0x58, 0x54, 0x5f, 0x50, 0x52, 0x4f, 0x44, 0x55, 0x43,
886 0x54, 0x10, 0x01, 0x12, 0x1d, 0x0a, 0x19, 0x4d, 0x55, 0x4c, 0x54, 0x49, 0x50, 0x4c, 0x45, 0x5f,
887 0x43, 0x4f, 0x4e, 0x54, 0x45, 0x58, 0x54, 0x5f, 0x50, 0x52, 0x4f, 0x44, 0x55, 0x43, 0x54, 0x53,
888 0x10, 0x02, 0x3a, 0x6b, 0xea, 0x41, 0x68, 0x0a, 0x1b, 0x72, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x2e,
889 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x4d,
890 0x6f, 0x64, 0x65, 0x6c, 0x12, 0x49, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x7b,
891 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x7d, 0x2f, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f,
892 0x6e, 0x73, 0x2f, 0x7b, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x7d, 0x2f, 0x63, 0x61,
893 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x73, 0x2f, 0x7b, 0x63, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x7d,
894 0x2f, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x73, 0x2f, 0x7b, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x7d, 0x42,
895 0xc9, 0x01, 0x0a, 0x1e, 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63,
896 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x72, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x2e, 0x76, 0x32, 0x62, 0x65,
897 0x74, 0x61, 0x42, 0x0a, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01,
898 0x5a, 0x36, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63,
899 0x6f, 0x6d, 0x2f, 0x67, 0x6f, 0x2f, 0x72, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x2f, 0x61, 0x70, 0x69,
900 0x76, 0x32, 0x62, 0x65, 0x74, 0x61, 0x2f, 0x72, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x70, 0x62, 0x3b,
901 0x72, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x70, 0x62, 0xa2, 0x02, 0x06, 0x52, 0x45, 0x54, 0x41, 0x49,
902 0x4c, 0xaa, 0x02, 0x1a, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x43, 0x6c, 0x6f, 0x75, 0x64,
903 0x2e, 0x52, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x2e, 0x56, 0x32, 0x42, 0x65, 0x74, 0x61, 0xca, 0x02,
904 0x1a, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x5c, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x5c, 0x52, 0x65,
905 0x74, 0x61, 0x69, 0x6c, 0x5c, 0x56, 0x32, 0x62, 0x65, 0x74, 0x61, 0xea, 0x02, 0x1d, 0x47, 0x6f,
906 0x6f, 0x67, 0x6c, 0x65, 0x3a, 0x3a, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x3a, 0x3a, 0x52, 0x65, 0x74,
907 0x61, 0x69, 0x6c, 0x3a, 0x3a, 0x56, 0x32, 0x62, 0x65, 0x74, 0x61, 0x62, 0x06, 0x70, 0x72, 0x6f,
908 0x74, 0x6f, 0x33,
909 }
910
911 var (
912 file_google_cloud_retail_v2beta_model_proto_rawDescOnce sync.Once
913 file_google_cloud_retail_v2beta_model_proto_rawDescData = file_google_cloud_retail_v2beta_model_proto_rawDesc
914 )
915
916 func file_google_cloud_retail_v2beta_model_proto_rawDescGZIP() []byte {
917 file_google_cloud_retail_v2beta_model_proto_rawDescOnce.Do(func() {
918 file_google_cloud_retail_v2beta_model_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_cloud_retail_v2beta_model_proto_rawDescData)
919 })
920 return file_google_cloud_retail_v2beta_model_proto_rawDescData
921 }
922
923 var file_google_cloud_retail_v2beta_model_proto_enumTypes = make([]protoimpl.EnumInfo, 5)
924 var file_google_cloud_retail_v2beta_model_proto_msgTypes = make([]protoimpl.MessageInfo, 4)
925 var file_google_cloud_retail_v2beta_model_proto_goTypes = []any{
926 (Model_ServingState)(0), // 0: google.cloud.retail.v2beta.Model.ServingState
927 (Model_TrainingState)(0), // 1: google.cloud.retail.v2beta.Model.TrainingState
928 (Model_PeriodicTuningState)(0), // 2: google.cloud.retail.v2beta.Model.PeriodicTuningState
929 (Model_DataState)(0), // 3: google.cloud.retail.v2beta.Model.DataState
930 (Model_ContextProductsType)(0), // 4: google.cloud.retail.v2beta.Model.ContextProductsType
931 (*Model)(nil), // 5: google.cloud.retail.v2beta.Model
932 (*Model_ServingConfigList)(nil), // 6: google.cloud.retail.v2beta.Model.ServingConfigList
933 (*Model_FrequentlyBoughtTogetherFeaturesConfig)(nil), // 7: google.cloud.retail.v2beta.Model.FrequentlyBoughtTogetherFeaturesConfig
934 (*Model_ModelFeaturesConfig)(nil), // 8: google.cloud.retail.v2beta.Model.ModelFeaturesConfig
935 (*timestamppb.Timestamp)(nil), // 9: google.protobuf.Timestamp
936 (RecommendationsFilteringOption)(0), // 10: google.cloud.retail.v2beta.RecommendationsFilteringOption
937 }
938 var file_google_cloud_retail_v2beta_model_proto_depIdxs = []int32{
939 1, // 0: google.cloud.retail.v2beta.Model.training_state:type_name -> google.cloud.retail.v2beta.Model.TrainingState
940 0, // 1: google.cloud.retail.v2beta.Model.serving_state:type_name -> google.cloud.retail.v2beta.Model.ServingState
941 9, // 2: google.cloud.retail.v2beta.Model.create_time:type_name -> google.protobuf.Timestamp
942 9, // 3: google.cloud.retail.v2beta.Model.update_time:type_name -> google.protobuf.Timestamp
943 2, // 4: google.cloud.retail.v2beta.Model.periodic_tuning_state:type_name -> google.cloud.retail.v2beta.Model.PeriodicTuningState
944 9, // 5: google.cloud.retail.v2beta.Model.last_tune_time:type_name -> google.protobuf.Timestamp
945 3, // 6: google.cloud.retail.v2beta.Model.data_state:type_name -> google.cloud.retail.v2beta.Model.DataState
946 10, // 7: google.cloud.retail.v2beta.Model.filtering_option:type_name -> google.cloud.retail.v2beta.RecommendationsFilteringOption
947 6, // 8: google.cloud.retail.v2beta.Model.serving_config_lists:type_name -> google.cloud.retail.v2beta.Model.ServingConfigList
948 8, // 9: google.cloud.retail.v2beta.Model.model_features_config:type_name -> google.cloud.retail.v2beta.Model.ModelFeaturesConfig
949 4, // 10: google.cloud.retail.v2beta.Model.FrequentlyBoughtTogetherFeaturesConfig.context_products_type:type_name -> google.cloud.retail.v2beta.Model.ContextProductsType
950 7, // 11: google.cloud.retail.v2beta.Model.ModelFeaturesConfig.frequently_bought_together_config:type_name -> google.cloud.retail.v2beta.Model.FrequentlyBoughtTogetherFeaturesConfig
951 12, // [12:12] is the sub-list for method output_type
952 12, // [12:12] is the sub-list for method input_type
953 12, // [12:12] is the sub-list for extension type_name
954 12, // [12:12] is the sub-list for extension extendee
955 0, // [0:12] is the sub-list for field type_name
956 }
957
958 func init() { file_google_cloud_retail_v2beta_model_proto_init() }
959 func file_google_cloud_retail_v2beta_model_proto_init() {
960 if File_google_cloud_retail_v2beta_model_proto != nil {
961 return
962 }
963 file_google_cloud_retail_v2beta_common_proto_init()
964 file_google_cloud_retail_v2beta_model_proto_msgTypes[3].OneofWrappers = []any{
965 (*Model_ModelFeaturesConfig_FrequentlyBoughtTogetherConfig)(nil),
966 }
967 type x struct{}
968 out := protoimpl.TypeBuilder{
969 File: protoimpl.DescBuilder{
970 GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
971 RawDescriptor: file_google_cloud_retail_v2beta_model_proto_rawDesc,
972 NumEnums: 5,
973 NumMessages: 4,
974 NumExtensions: 0,
975 NumServices: 0,
976 },
977 GoTypes: file_google_cloud_retail_v2beta_model_proto_goTypes,
978 DependencyIndexes: file_google_cloud_retail_v2beta_model_proto_depIdxs,
979 EnumInfos: file_google_cloud_retail_v2beta_model_proto_enumTypes,
980 MessageInfos: file_google_cloud_retail_v2beta_model_proto_msgTypes,
981 }.Build()
982 File_google_cloud_retail_v2beta_model_proto = out.File
983 file_google_cloud_retail_v2beta_model_proto_rawDesc = nil
984 file_google_cloud_retail_v2beta_model_proto_goTypes = nil
985 file_google_cloud_retail_v2beta_model_proto_depIdxs = nil
986 }