// Copyright 2025 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
//     http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// 	protoc-gen-go v1.36.11
// 	protoc        v6.33.2
// source: google/cloud/retail/v2/model.proto

package retailpb

import (
	reflect "reflect"
	sync "sync"
	unsafe "unsafe"

	_ "google.golang.org/genproto/googleapis/api/annotations"
	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
	timestamppb "google.golang.org/protobuf/types/known/timestamppb"
)

const (
	// Verify that this generated code is sufficiently up-to-date.
	_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
	// Verify that runtime/protoimpl is sufficiently up-to-date.
	_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)

// The serving state of the model.
type Model_ServingState int32

const (
	// Unspecified serving state.
	Model_SERVING_STATE_UNSPECIFIED Model_ServingState = 0
	// The model is not serving.
	Model_INACTIVE Model_ServingState = 1
	// The model is serving and can be queried.
	Model_ACTIVE Model_ServingState = 2
	// The model is trained on tuned hyperparameters and can be
	// queried.
	Model_TUNED Model_ServingState = 3
)

// Enum value maps for Model_ServingState.
var (
	Model_ServingState_name = map[int32]string{
		0: "SERVING_STATE_UNSPECIFIED",
		1: "INACTIVE",
		2: "ACTIVE",
		3: "TUNED",
	}
	Model_ServingState_value = map[string]int32{
		"SERVING_STATE_UNSPECIFIED": 0,
		"INACTIVE":                  1,
		"ACTIVE":                    2,
		"TUNED":                     3,
	}
)

func (x Model_ServingState) Enum() *Model_ServingState {
	p := new(Model_ServingState)
	*p = x
	return p
}

func (x Model_ServingState) String() string {
	return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}

func (Model_ServingState) Descriptor() protoreflect.EnumDescriptor {
	return file_google_cloud_retail_v2_model_proto_enumTypes[0].Descriptor()
}

func (Model_ServingState) Type() protoreflect.EnumType {
	return &file_google_cloud_retail_v2_model_proto_enumTypes[0]
}

func (x Model_ServingState) Number() protoreflect.EnumNumber {
	return protoreflect.EnumNumber(x)
}

// Deprecated: Use Model_ServingState.Descriptor instead.
func (Model_ServingState) EnumDescriptor() ([]byte, []int) {
	return file_google_cloud_retail_v2_model_proto_rawDescGZIP(), []int{0, 0}
}

// The training state of the model.
type Model_TrainingState int32

const (
	// Unspecified training state.
	Model_TRAINING_STATE_UNSPECIFIED Model_TrainingState = 0
	// The model training is paused.
	Model_PAUSED Model_TrainingState = 1
	// The model is training.
	Model_TRAINING Model_TrainingState = 2
)

// Enum value maps for Model_TrainingState.
var (
	Model_TrainingState_name = map[int32]string{
		0: "TRAINING_STATE_UNSPECIFIED",
		1: "PAUSED",
		2: "TRAINING",
	}
	Model_TrainingState_value = map[string]int32{
		"TRAINING_STATE_UNSPECIFIED": 0,
		"PAUSED":                     1,
		"TRAINING":                   2,
	}
)

func (x Model_TrainingState) Enum() *Model_TrainingState {
	p := new(Model_TrainingState)
	*p = x
	return p
}

func (x Model_TrainingState) String() string {
	return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}

func (Model_TrainingState) Descriptor() protoreflect.EnumDescriptor {
	return file_google_cloud_retail_v2_model_proto_enumTypes[1].Descriptor()
}

func (Model_TrainingState) Type() protoreflect.EnumType {
	return &file_google_cloud_retail_v2_model_proto_enumTypes[1]
}

func (x Model_TrainingState) Number() protoreflect.EnumNumber {
	return protoreflect.EnumNumber(x)
}

// Deprecated: Use Model_TrainingState.Descriptor instead.
func (Model_TrainingState) EnumDescriptor() ([]byte, []int) {
	return file_google_cloud_retail_v2_model_proto_rawDescGZIP(), []int{0, 1}
}

// Describes whether periodic tuning is enabled for this model
// or not. Periodic tuning is scheduled at most every three months. You can
// start a tuning process manually by using the `TuneModel`
// method, which starts a tuning process immediately and resets the quarterly
// schedule. Enabling or disabling periodic tuning does not affect any
// current tuning processes.
type Model_PeriodicTuningState int32

const (
	// Unspecified default value, should never be explicitly set.
	Model_PERIODIC_TUNING_STATE_UNSPECIFIED Model_PeriodicTuningState = 0
	// The model has periodic tuning disabled. Tuning
	// can be reenabled by calling the `EnableModelPeriodicTuning`
	// method or by calling the `TuneModel` method.
	Model_PERIODIC_TUNING_DISABLED Model_PeriodicTuningState = 1
	// The model cannot be tuned with periodic tuning OR the
	// `TuneModel` method. Hide the options in customer UI and
	// reject any requests through the backend self serve API.
	Model_ALL_TUNING_DISABLED Model_PeriodicTuningState = 3
	// The model has periodic tuning enabled. Tuning
	// can be disabled by calling the `DisableModelPeriodicTuning`
	// method.
	Model_PERIODIC_TUNING_ENABLED Model_PeriodicTuningState = 2
)

// Enum value maps for Model_PeriodicTuningState.
var (
	Model_PeriodicTuningState_name = map[int32]string{
		0: "PERIODIC_TUNING_STATE_UNSPECIFIED",
		1: "PERIODIC_TUNING_DISABLED",
		3: "ALL_TUNING_DISABLED",
		2: "PERIODIC_TUNING_ENABLED",
	}
	Model_PeriodicTuningState_value = map[string]int32{
		"PERIODIC_TUNING_STATE_UNSPECIFIED": 0,
		"PERIODIC_TUNING_DISABLED":          1,
		"ALL_TUNING_DISABLED":               3,
		"PERIODIC_TUNING_ENABLED":           2,
	}
)

func (x Model_PeriodicTuningState) Enum() *Model_PeriodicTuningState {
	p := new(Model_PeriodicTuningState)
	*p = x
	return p
}

func (x Model_PeriodicTuningState) String() string {
	return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}

func (Model_PeriodicTuningState) Descriptor() protoreflect.EnumDescriptor {
	return file_google_cloud_retail_v2_model_proto_enumTypes[2].Descriptor()
}

func (Model_PeriodicTuningState) Type() protoreflect.EnumType {
	return &file_google_cloud_retail_v2_model_proto_enumTypes[2]
}

func (x Model_PeriodicTuningState) Number() protoreflect.EnumNumber {
	return protoreflect.EnumNumber(x)
}

// Deprecated: Use Model_PeriodicTuningState.Descriptor instead.
func (Model_PeriodicTuningState) EnumDescriptor() ([]byte, []int) {
	return file_google_cloud_retail_v2_model_proto_rawDescGZIP(), []int{0, 2}
}

// Describes whether this model have sufficient training data
// to be continuously trained.
type Model_DataState int32

const (
	// Unspecified default value, should never be explicitly set.
	Model_DATA_STATE_UNSPECIFIED Model_DataState = 0
	// The model has sufficient training data.
	Model_DATA_OK Model_DataState = 1
	// The model does not have sufficient training data. Error
	// messages can be queried via Stackdriver.
	Model_DATA_ERROR Model_DataState = 2
)

// Enum value maps for Model_DataState.
var (
	Model_DataState_name = map[int32]string{
		0: "DATA_STATE_UNSPECIFIED",
		1: "DATA_OK",
		2: "DATA_ERROR",
	}
	Model_DataState_value = map[string]int32{
		"DATA_STATE_UNSPECIFIED": 0,
		"DATA_OK":                1,
		"DATA_ERROR":             2,
	}
)

func (x Model_DataState) Enum() *Model_DataState {
	p := new(Model_DataState)
	*p = x
	return p
}

func (x Model_DataState) String() string {
	return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}

func (Model_DataState) Descriptor() protoreflect.EnumDescriptor {
	return file_google_cloud_retail_v2_model_proto_enumTypes[3].Descriptor()
}

func (Model_DataState) Type() protoreflect.EnumType {
	return &file_google_cloud_retail_v2_model_proto_enumTypes[3]
}

func (x Model_DataState) Number() protoreflect.EnumNumber {
	return protoreflect.EnumNumber(x)
}

// Deprecated: Use Model_DataState.Descriptor instead.
func (Model_DataState) EnumDescriptor() ([]byte, []int) {
	return file_google_cloud_retail_v2_model_proto_rawDescGZIP(), []int{0, 3}
}

// Use single or multiple context products for recommendations.
type Model_ContextProductsType int32

const (
	// Unspecified default value, should never be explicitly set.
	// Defaults to
	// [MULTIPLE_CONTEXT_PRODUCTS][google.cloud.retail.v2.Model.ContextProductsType.MULTIPLE_CONTEXT_PRODUCTS].
	Model_CONTEXT_PRODUCTS_TYPE_UNSPECIFIED Model_ContextProductsType = 0
	// Use only a single product as context for the recommendation. Typically
	// used on pages like add-to-cart or product details.
	Model_SINGLE_CONTEXT_PRODUCT Model_ContextProductsType = 1
	// Use one or multiple products as context for the recommendation. Typically
	// used on shopping cart pages.
	Model_MULTIPLE_CONTEXT_PRODUCTS Model_ContextProductsType = 2
)

// Enum value maps for Model_ContextProductsType.
var (
	Model_ContextProductsType_name = map[int32]string{
		0: "CONTEXT_PRODUCTS_TYPE_UNSPECIFIED",
		1: "SINGLE_CONTEXT_PRODUCT",
		2: "MULTIPLE_CONTEXT_PRODUCTS",
	}
	Model_ContextProductsType_value = map[string]int32{
		"CONTEXT_PRODUCTS_TYPE_UNSPECIFIED": 0,
		"SINGLE_CONTEXT_PRODUCT":            1,
		"MULTIPLE_CONTEXT_PRODUCTS":         2,
	}
)

func (x Model_ContextProductsType) Enum() *Model_ContextProductsType {
	p := new(Model_ContextProductsType)
	*p = x
	return p
}

func (x Model_ContextProductsType) String() string {
	return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}

func (Model_ContextProductsType) Descriptor() protoreflect.EnumDescriptor {
	return file_google_cloud_retail_v2_model_proto_enumTypes[4].Descriptor()
}

func (Model_ContextProductsType) Type() protoreflect.EnumType {
	return &file_google_cloud_retail_v2_model_proto_enumTypes[4]
}

func (x Model_ContextProductsType) Number() protoreflect.EnumNumber {
	return protoreflect.EnumNumber(x)
}

// Deprecated: Use Model_ContextProductsType.Descriptor instead.
func (Model_ContextProductsType) EnumDescriptor() ([]byte, []int) {
	return file_google_cloud_retail_v2_model_proto_rawDescGZIP(), []int{0, 4}
}

// Metadata that describes the training and serving parameters of a
// [Model][google.cloud.retail.v2.Model]. A
// [Model][google.cloud.retail.v2.Model] can be associated with a
// [ServingConfig][google.cloud.retail.v2.ServingConfig] and then queried
// through the Predict API.
type Model struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// Required. The fully qualified resource name of the model.
	//
	// Format:
	// `projects/{project_number}/locations/{location_id}/catalogs/{catalog_id}/models/{model_id}`
	// catalog_id has char limit of 50.
	// recommendation_model_id has char limit of 40.
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// Required. The display name of the model.
	//
	// Should be human readable, used to display Recommendation Models in the
	// Retail Cloud Console Dashboard. UTF-8 encoded string with limit of 1024
	// characters.
	DisplayName string `protobuf:"bytes,2,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"`
	// Optional. The training state that the model is in (e.g.
	// `TRAINING` or `PAUSED`).
	//
	// Since part of the cost of running the service
	// is frequency of training - this can be used to determine when to train
	// model in order to control cost. If not specified: the default value for
	// `CreateModel` method is `TRAINING`. The default value for
	// `UpdateModel` method is to keep the state the same as before.
	TrainingState Model_TrainingState `protobuf:"varint,3,opt,name=training_state,json=trainingState,proto3,enum=google.cloud.retail.v2.Model_TrainingState" json:"training_state,omitempty"`
	// Output only. The serving state of the model: `ACTIVE`, `NOT_ACTIVE`.
	ServingState Model_ServingState `protobuf:"varint,4,opt,name=serving_state,json=servingState,proto3,enum=google.cloud.retail.v2.Model_ServingState" json:"serving_state,omitempty"`
	// Output only. Timestamp the Recommendation Model was created at.
	CreateTime *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
	// Output only. Timestamp the Recommendation Model was last updated. E.g.
	// if a Recommendation Model was paused - this would be the time the pause was
	// initiated.
	UpdateTime *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"`
	// Required. The type of model e.g. `home-page`.
	//
	// Currently supported values: `recommended-for-you`, `others-you-may-like`,
	// `frequently-bought-together`, `page-optimization`, `similar-items`,
	// `buy-it-again`, `on-sale-items`, and `recently-viewed`(readonly value).
	//
	// This field together with
	// [optimization_objective][google.cloud.retail.v2.Model.optimization_objective]
	// describe model metadata to use to control model training and serving.
	// See https://cloud.google.com/retail/docs/models
	// for more details on what the model metadata control and which combination
	// of parameters are valid. For invalid combinations of parameters (e.g. type
	// = `frequently-bought-together` and optimization_objective = `ctr`), you
	// receive an error 400 if you try to create/update a recommendation with
	// this set of knobs.
	Type string `protobuf:"bytes,7,opt,name=type,proto3" json:"type,omitempty"`
	// Optional. The optimization objective e.g. `cvr`.
	//
	// Currently supported
	// values: `ctr`, `cvr`, `revenue-per-order`.
	//
	//	If not specified, we choose default based on model type.
	//
	// Default depends on type of recommendation:
	//
	// `recommended-for-you` => `ctr`
	//
	// `others-you-may-like` => `ctr`
	//
	// `frequently-bought-together` => `revenue_per_order`
	//
	// This field together with
	// [optimization_objective][google.cloud.retail.v2.Model.type]
	// describe model metadata to use to control model training and serving.
	// See https://cloud.google.com/retail/docs/models
	// for more details on what the model metadata control and which combination
	// of parameters are valid. For invalid combinations of parameters (e.g. type
	// = `frequently-bought-together` and optimization_objective = `ctr`), you
	// receive an error 400 if you try to create/update a recommendation with
	// this set of knobs.
	OptimizationObjective string `protobuf:"bytes,8,opt,name=optimization_objective,json=optimizationObjective,proto3" json:"optimization_objective,omitempty"`
	// Optional. The state of periodic tuning.
	//
	// The period we use is 3 months - to do a
	// one-off tune earlier use the `TuneModel` method. Default value
	// is `PERIODIC_TUNING_ENABLED`.
	PeriodicTuningState Model_PeriodicTuningState `protobuf:"varint,11,opt,name=periodic_tuning_state,json=periodicTuningState,proto3,enum=google.cloud.retail.v2.Model_PeriodicTuningState" json:"periodic_tuning_state,omitempty"`
	// Output only. The timestamp when the latest successful tune finished.
	LastTuneTime *timestamppb.Timestamp `protobuf:"bytes,12,opt,name=last_tune_time,json=lastTuneTime,proto3" json:"last_tune_time,omitempty"`
	// Output only. The tune operation associated with the model.
	//
	// Can be used to determine if there is an ongoing tune for this
	// recommendation. Empty field implies no tune is goig on.
	TuningOperation string `protobuf:"bytes,15,opt,name=tuning_operation,json=tuningOperation,proto3" json:"tuning_operation,omitempty"`
	// Output only. The state of data requirements for this model: `DATA_OK` and
	// `DATA_ERROR`.
	//
	// Recommendation model cannot be trained if the data is in
	// `DATA_ERROR` state. Recommendation model can have `DATA_ERROR` state even
	// if serving state is `ACTIVE`: models were trained successfully before, but
	// cannot be refreshed because model no longer has sufficient
	// data for training.
	DataState Model_DataState `protobuf:"varint,16,opt,name=data_state,json=dataState,proto3,enum=google.cloud.retail.v2.Model_DataState" json:"data_state,omitempty"`
	// Optional. If `RECOMMENDATIONS_FILTERING_ENABLED`, recommendation filtering
	// by attributes is enabled for the model.
	FilteringOption RecommendationsFilteringOption `protobuf:"varint,18,opt,name=filtering_option,json=filteringOption,proto3,enum=google.cloud.retail.v2.RecommendationsFilteringOption" json:"filtering_option,omitempty"`
	// Output only. The list of valid serving configs associated with the
	// PageOptimizationConfig.
	ServingConfigLists []*Model_ServingConfigList `protobuf:"bytes,19,rep,name=serving_config_lists,json=servingConfigLists,proto3" json:"serving_config_lists,omitempty"`
	// Optional. Additional model features config.
	ModelFeaturesConfig *Model_ModelFeaturesConfig `protobuf:"bytes,22,opt,name=model_features_config,json=modelFeaturesConfig,proto3" json:"model_features_config,omitempty"`
	unknownFields       protoimpl.UnknownFields
	sizeCache           protoimpl.SizeCache
}

func (x *Model) Reset() {
	*x = Model{}
	mi := &file_google_cloud_retail_v2_model_proto_msgTypes[0]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

func (x *Model) String() string {
	return protoimpl.X.MessageStringOf(x)
}

func (*Model) ProtoMessage() {}

func (x *Model) ProtoReflect() protoreflect.Message {
	mi := &file_google_cloud_retail_v2_model_proto_msgTypes[0]
	if x != nil {
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		if ms.LoadMessageInfo() == nil {
			ms.StoreMessageInfo(mi)
		}
		return ms
	}
	return mi.MessageOf(x)
}

// Deprecated: Use Model.ProtoReflect.Descriptor instead.
func (*Model) Descriptor() ([]byte, []int) {
	return file_google_cloud_retail_v2_model_proto_rawDescGZIP(), []int{0}
}

func (x *Model) GetName() string {
	if x != nil {
		return x.Name
	}
	return ""
}

func (x *Model) GetDisplayName() string {
	if x != nil {
		return x.DisplayName
	}
	return ""
}

func (x *Model) GetTrainingState() Model_TrainingState {
	if x != nil {
		return x.TrainingState
	}
	return Model_TRAINING_STATE_UNSPECIFIED
}

func (x *Model) GetServingState() Model_ServingState {
	if x != nil {
		return x.ServingState
	}
	return Model_SERVING_STATE_UNSPECIFIED
}

func (x *Model) GetCreateTime() *timestamppb.Timestamp {
	if x != nil {
		return x.CreateTime
	}
	return nil
}

func (x *Model) GetUpdateTime() *timestamppb.Timestamp {
	if x != nil {
		return x.UpdateTime
	}
	return nil
}

func (x *Model) GetType() string {
	if x != nil {
		return x.Type
	}
	return ""
}

func (x *Model) GetOptimizationObjective() string {
	if x != nil {
		return x.OptimizationObjective
	}
	return ""
}

func (x *Model) GetPeriodicTuningState() Model_PeriodicTuningState {
	if x != nil {
		return x.PeriodicTuningState
	}
	return Model_PERIODIC_TUNING_STATE_UNSPECIFIED
}

func (x *Model) GetLastTuneTime() *timestamppb.Timestamp {
	if x != nil {
		return x.LastTuneTime
	}
	return nil
}

func (x *Model) GetTuningOperation() string {
	if x != nil {
		return x.TuningOperation
	}
	return ""
}

func (x *Model) GetDataState() Model_DataState {
	if x != nil {
		return x.DataState
	}
	return Model_DATA_STATE_UNSPECIFIED
}

func (x *Model) GetFilteringOption() RecommendationsFilteringOption {
	if x != nil {
		return x.FilteringOption
	}
	return RecommendationsFilteringOption_RECOMMENDATIONS_FILTERING_OPTION_UNSPECIFIED
}

func (x *Model) GetServingConfigLists() []*Model_ServingConfigList {
	if x != nil {
		return x.ServingConfigLists
	}
	return nil
}

func (x *Model) GetModelFeaturesConfig() *Model_ModelFeaturesConfig {
	if x != nil {
		return x.ModelFeaturesConfig
	}
	return nil
}

// Represents an ordered combination of valid serving configs, which
// can be used for `PAGE_OPTIMIZATION` recommendations.
type Model_ServingConfigList struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// Optional. A set of valid serving configs that may be used for
	// `PAGE_OPTIMIZATION`.
	ServingConfigIds []string `protobuf:"bytes,1,rep,name=serving_config_ids,json=servingConfigIds,proto3" json:"serving_config_ids,omitempty"`
	unknownFields    protoimpl.UnknownFields
	sizeCache        protoimpl.SizeCache
}

func (x *Model_ServingConfigList) Reset() {
	*x = Model_ServingConfigList{}
	mi := &file_google_cloud_retail_v2_model_proto_msgTypes[1]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

func (x *Model_ServingConfigList) String() string {
	return protoimpl.X.MessageStringOf(x)
}

func (*Model_ServingConfigList) ProtoMessage() {}

func (x *Model_ServingConfigList) ProtoReflect() protoreflect.Message {
	mi := &file_google_cloud_retail_v2_model_proto_msgTypes[1]
	if x != nil {
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		if ms.LoadMessageInfo() == nil {
			ms.StoreMessageInfo(mi)
		}
		return ms
	}
	return mi.MessageOf(x)
}

// Deprecated: Use Model_ServingConfigList.ProtoReflect.Descriptor instead.
func (*Model_ServingConfigList) Descriptor() ([]byte, []int) {
	return file_google_cloud_retail_v2_model_proto_rawDescGZIP(), []int{0, 0}
}

func (x *Model_ServingConfigList) GetServingConfigIds() []string {
	if x != nil {
		return x.ServingConfigIds
	}
	return nil
}

// Additional configs for the frequently-bought-together model type.
type Model_FrequentlyBoughtTogetherFeaturesConfig struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// Optional. Specifies the context of the model when it is used in predict
	// requests. Can only be set for the `frequently-bought-together` type. If
	// it isn't specified, it defaults to
	// [MULTIPLE_CONTEXT_PRODUCTS][google.cloud.retail.v2.Model.ContextProductsType.MULTIPLE_CONTEXT_PRODUCTS].
	ContextProductsType Model_ContextProductsType `protobuf:"varint,2,opt,name=context_products_type,json=contextProductsType,proto3,enum=google.cloud.retail.v2.Model_ContextProductsType" json:"context_products_type,omitempty"`
	unknownFields       protoimpl.UnknownFields
	sizeCache           protoimpl.SizeCache
}

func (x *Model_FrequentlyBoughtTogetherFeaturesConfig) Reset() {
	*x = Model_FrequentlyBoughtTogetherFeaturesConfig{}
	mi := &file_google_cloud_retail_v2_model_proto_msgTypes[2]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

func (x *Model_FrequentlyBoughtTogetherFeaturesConfig) String() string {
	return protoimpl.X.MessageStringOf(x)
}

func (*Model_FrequentlyBoughtTogetherFeaturesConfig) ProtoMessage() {}

func (x *Model_FrequentlyBoughtTogetherFeaturesConfig) ProtoReflect() protoreflect.Message {
	mi := &file_google_cloud_retail_v2_model_proto_msgTypes[2]
	if x != nil {
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		if ms.LoadMessageInfo() == nil {
			ms.StoreMessageInfo(mi)
		}
		return ms
	}
	return mi.MessageOf(x)
}

// Deprecated: Use Model_FrequentlyBoughtTogetherFeaturesConfig.ProtoReflect.Descriptor instead.
func (*Model_FrequentlyBoughtTogetherFeaturesConfig) Descriptor() ([]byte, []int) {
	return file_google_cloud_retail_v2_model_proto_rawDescGZIP(), []int{0, 1}
}

func (x *Model_FrequentlyBoughtTogetherFeaturesConfig) GetContextProductsType() Model_ContextProductsType {
	if x != nil {
		return x.ContextProductsType
	}
	return Model_CONTEXT_PRODUCTS_TYPE_UNSPECIFIED
}

// Additional model features config.
type Model_ModelFeaturesConfig struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// Types that are valid to be assigned to TypeDedicatedConfig:
	//
	//	*Model_ModelFeaturesConfig_FrequentlyBoughtTogetherConfig
	TypeDedicatedConfig isModel_ModelFeaturesConfig_TypeDedicatedConfig `protobuf_oneof:"type_dedicated_config"`
	unknownFields       protoimpl.UnknownFields
	sizeCache           protoimpl.SizeCache
}

func (x *Model_ModelFeaturesConfig) Reset() {
	*x = Model_ModelFeaturesConfig{}
	mi := &file_google_cloud_retail_v2_model_proto_msgTypes[3]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

func (x *Model_ModelFeaturesConfig) String() string {
	return protoimpl.X.MessageStringOf(x)
}

func (*Model_ModelFeaturesConfig) ProtoMessage() {}

func (x *Model_ModelFeaturesConfig) ProtoReflect() protoreflect.Message {
	mi := &file_google_cloud_retail_v2_model_proto_msgTypes[3]
	if x != nil {
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		if ms.LoadMessageInfo() == nil {
			ms.StoreMessageInfo(mi)
		}
		return ms
	}
	return mi.MessageOf(x)
}

// Deprecated: Use Model_ModelFeaturesConfig.ProtoReflect.Descriptor instead.
func (*Model_ModelFeaturesConfig) Descriptor() ([]byte, []int) {
	return file_google_cloud_retail_v2_model_proto_rawDescGZIP(), []int{0, 2}
}

func (x *Model_ModelFeaturesConfig) GetTypeDedicatedConfig() isModel_ModelFeaturesConfig_TypeDedicatedConfig {
	if x != nil {
		return x.TypeDedicatedConfig
	}
	return nil
}

func (x *Model_ModelFeaturesConfig) GetFrequentlyBoughtTogetherConfig() *Model_FrequentlyBoughtTogetherFeaturesConfig {
	if x != nil {
		if x, ok := x.TypeDedicatedConfig.(*Model_ModelFeaturesConfig_FrequentlyBoughtTogetherConfig); ok {
			return x.FrequentlyBoughtTogetherConfig
		}
	}
	return nil
}

type isModel_ModelFeaturesConfig_TypeDedicatedConfig interface {
	isModel_ModelFeaturesConfig_TypeDedicatedConfig()
}

type Model_ModelFeaturesConfig_FrequentlyBoughtTogetherConfig struct {
	// Additional configs for frequently-bought-together models.
	FrequentlyBoughtTogetherConfig *Model_FrequentlyBoughtTogetherFeaturesConfig `protobuf:"bytes,1,opt,name=frequently_bought_together_config,json=frequentlyBoughtTogetherConfig,proto3,oneof"`
}

func (*Model_ModelFeaturesConfig_FrequentlyBoughtTogetherConfig) isModel_ModelFeaturesConfig_TypeDedicatedConfig() {
}

var File_google_cloud_retail_v2_model_proto protoreflect.FileDescriptor

const file_google_cloud_retail_v2_model_proto_rawDesc = "" +
	"\n" +
	"\"google/cloud/retail/v2/model.proto\x12\x16google.cloud.retail.v2\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a#google/cloud/retail/v2/common.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xbe\x10\n" +
	"\x05Model\x12\x17\n" +
	"\x04name\x18\x01 \x01(\tB\x03\xe0A\x02R\x04name\x12&\n" +
	"\fdisplay_name\x18\x02 \x01(\tB\x03\xe0A\x02R\vdisplayName\x12W\n" +
	"\x0etraining_state\x18\x03 \x01(\x0e2+.google.cloud.retail.v2.Model.TrainingStateB\x03\xe0A\x01R\rtrainingState\x12T\n" +
	"\rserving_state\x18\x04 \x01(\x0e2*.google.cloud.retail.v2.Model.ServingStateB\x03\xe0A\x03R\fservingState\x12@\n" +
	"\vcreate_time\x18\x05 \x01(\v2\x1a.google.protobuf.TimestampB\x03\xe0A\x03R\n" +
	"createTime\x12@\n" +
	"\vupdate_time\x18\x06 \x01(\v2\x1a.google.protobuf.TimestampB\x03\xe0A\x03R\n" +
	"updateTime\x12\x17\n" +
	"\x04type\x18\a \x01(\tB\x03\xe0A\x02R\x04type\x12:\n" +
	"\x16optimization_objective\x18\b \x01(\tB\x03\xe0A\x01R\x15optimizationObjective\x12j\n" +
	"\x15periodic_tuning_state\x18\v \x01(\x0e21.google.cloud.retail.v2.Model.PeriodicTuningStateB\x03\xe0A\x01R\x13periodicTuningState\x12E\n" +
	"\x0elast_tune_time\x18\f \x01(\v2\x1a.google.protobuf.TimestampB\x03\xe0A\x03R\flastTuneTime\x12.\n" +
	"\x10tuning_operation\x18\x0f \x01(\tB\x03\xe0A\x03R\x0ftuningOperation\x12K\n" +
	"\n" +
	"data_state\x18\x10 \x01(\x0e2'.google.cloud.retail.v2.Model.DataStateB\x03\xe0A\x03R\tdataState\x12f\n" +
	"\x10filtering_option\x18\x12 \x01(\x0e26.google.cloud.retail.v2.RecommendationsFilteringOptionB\x03\xe0A\x01R\x0ffilteringOption\x12f\n" +
	"\x14serving_config_lists\x18\x13 \x03(\v2/.google.cloud.retail.v2.Model.ServingConfigListB\x03\xe0A\x03R\x12servingConfigLists\x12j\n" +
	"\x15model_features_config\x18\x16 \x01(\v21.google.cloud.retail.v2.Model.ModelFeaturesConfigB\x03\xe0A\x01R\x13modelFeaturesConfig\x1aF\n" +
	"\x11ServingConfigList\x121\n" +
	"\x12serving_config_ids\x18\x01 \x03(\tB\x03\xe0A\x01R\x10servingConfigIds\x1a\x94\x01\n" +
	"&FrequentlyBoughtTogetherFeaturesConfig\x12j\n" +
	"\x15context_products_type\x18\x02 \x01(\x0e21.google.cloud.retail.v2.Model.ContextProductsTypeB\x03\xe0A\x01R\x13contextProductsType\x1a\xc2\x01\n" +
	"\x13ModelFeaturesConfig\x12\x91\x01\n" +
	"!frequently_bought_together_config\x18\x01 \x01(\v2D.google.cloud.retail.v2.Model.FrequentlyBoughtTogetherFeaturesConfigH\x00R\x1efrequentlyBoughtTogetherConfigB\x17\n" +
	"\x15type_dedicated_config\"R\n" +
	"\fServingState\x12\x1d\n" +
	"\x19SERVING_STATE_UNSPECIFIED\x10\x00\x12\f\n" +
	"\bINACTIVE\x10\x01\x12\n" +
	"\n" +
	"\x06ACTIVE\x10\x02\x12\t\n" +
	"\x05TUNED\x10\x03\"I\n" +
	"\rTrainingState\x12\x1e\n" +
	"\x1aTRAINING_STATE_UNSPECIFIED\x10\x00\x12\n" +
	"\n" +
	"\x06PAUSED\x10\x01\x12\f\n" +
	"\bTRAINING\x10\x02\"\x90\x01\n" +
	"\x13PeriodicTuningState\x12%\n" +
	"!PERIODIC_TUNING_STATE_UNSPECIFIED\x10\x00\x12\x1c\n" +
	"\x18PERIODIC_TUNING_DISABLED\x10\x01\x12\x17\n" +
	"\x13ALL_TUNING_DISABLED\x10\x03\x12\x1b\n" +
	"\x17PERIODIC_TUNING_ENABLED\x10\x02\"D\n" +
	"\tDataState\x12\x1a\n" +
	"\x16DATA_STATE_UNSPECIFIED\x10\x00\x12\v\n" +
	"\aDATA_OK\x10\x01\x12\x0e\n" +
	"\n" +
	"DATA_ERROR\x10\x02\"w\n" +
	"\x13ContextProductsType\x12%\n" +
	"!CONTEXT_PRODUCTS_TYPE_UNSPECIFIED\x10\x00\x12\x1a\n" +
	"\x16SINGLE_CONTEXT_PRODUCT\x10\x01\x12\x1d\n" +
	"\x19MULTIPLE_CONTEXT_PRODUCTS\x10\x02:k\xeaAh\n" +
	"\x1bretail.googleapis.com/Model\x12Iprojects/{project}/locations/{location}/catalogs/{catalog}/models/{model}B\xb5\x01\n" +
	"\x1acom.google.cloud.retail.v2B\n" +
	"ModelProtoP\x01Z2cloud.google.com/go/retail/apiv2/retailpb;retailpb\xa2\x02\x06RETAIL\xaa\x02\x16Google.Cloud.Retail.V2\xca\x02\x16Google\\Cloud\\Retail\\V2\xea\x02\x19Google::Cloud::Retail::V2b\x06proto3"

var (
	file_google_cloud_retail_v2_model_proto_rawDescOnce sync.Once
	file_google_cloud_retail_v2_model_proto_rawDescData []byte
)

func file_google_cloud_retail_v2_model_proto_rawDescGZIP() []byte {
	file_google_cloud_retail_v2_model_proto_rawDescOnce.Do(func() {
		file_google_cloud_retail_v2_model_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_google_cloud_retail_v2_model_proto_rawDesc), len(file_google_cloud_retail_v2_model_proto_rawDesc)))
	})
	return file_google_cloud_retail_v2_model_proto_rawDescData
}

var file_google_cloud_retail_v2_model_proto_enumTypes = make([]protoimpl.EnumInfo, 5)
var file_google_cloud_retail_v2_model_proto_msgTypes = make([]protoimpl.MessageInfo, 4)
var file_google_cloud_retail_v2_model_proto_goTypes = []any{
	(Model_ServingState)(0),                              // 0: google.cloud.retail.v2.Model.ServingState
	(Model_TrainingState)(0),                             // 1: google.cloud.retail.v2.Model.TrainingState
	(Model_PeriodicTuningState)(0),                       // 2: google.cloud.retail.v2.Model.PeriodicTuningState
	(Model_DataState)(0),                                 // 3: google.cloud.retail.v2.Model.DataState
	(Model_ContextProductsType)(0),                       // 4: google.cloud.retail.v2.Model.ContextProductsType
	(*Model)(nil),                                        // 5: google.cloud.retail.v2.Model
	(*Model_ServingConfigList)(nil),                      // 6: google.cloud.retail.v2.Model.ServingConfigList
	(*Model_FrequentlyBoughtTogetherFeaturesConfig)(nil), // 7: google.cloud.retail.v2.Model.FrequentlyBoughtTogetherFeaturesConfig
	(*Model_ModelFeaturesConfig)(nil),                    // 8: google.cloud.retail.v2.Model.ModelFeaturesConfig
	(*timestamppb.Timestamp)(nil),                        // 9: google.protobuf.Timestamp
	(RecommendationsFilteringOption)(0),                  // 10: google.cloud.retail.v2.RecommendationsFilteringOption
}
var file_google_cloud_retail_v2_model_proto_depIdxs = []int32{
	1,  // 0: google.cloud.retail.v2.Model.training_state:type_name -> google.cloud.retail.v2.Model.TrainingState
	0,  // 1: google.cloud.retail.v2.Model.serving_state:type_name -> google.cloud.retail.v2.Model.ServingState
	9,  // 2: google.cloud.retail.v2.Model.create_time:type_name -> google.protobuf.Timestamp
	9,  // 3: google.cloud.retail.v2.Model.update_time:type_name -> google.protobuf.Timestamp
	2,  // 4: google.cloud.retail.v2.Model.periodic_tuning_state:type_name -> google.cloud.retail.v2.Model.PeriodicTuningState
	9,  // 5: google.cloud.retail.v2.Model.last_tune_time:type_name -> google.protobuf.Timestamp
	3,  // 6: google.cloud.retail.v2.Model.data_state:type_name -> google.cloud.retail.v2.Model.DataState
	10, // 7: google.cloud.retail.v2.Model.filtering_option:type_name -> google.cloud.retail.v2.RecommendationsFilteringOption
	6,  // 8: google.cloud.retail.v2.Model.serving_config_lists:type_name -> google.cloud.retail.v2.Model.ServingConfigList
	8,  // 9: google.cloud.retail.v2.Model.model_features_config:type_name -> google.cloud.retail.v2.Model.ModelFeaturesConfig
	4,  // 10: google.cloud.retail.v2.Model.FrequentlyBoughtTogetherFeaturesConfig.context_products_type:type_name -> google.cloud.retail.v2.Model.ContextProductsType
	7,  // 11: google.cloud.retail.v2.Model.ModelFeaturesConfig.frequently_bought_together_config:type_name -> google.cloud.retail.v2.Model.FrequentlyBoughtTogetherFeaturesConfig
	12, // [12:12] is the sub-list for method output_type
	12, // [12:12] is the sub-list for method input_type
	12, // [12:12] is the sub-list for extension type_name
	12, // [12:12] is the sub-list for extension extendee
	0,  // [0:12] is the sub-list for field type_name
}

func init() { file_google_cloud_retail_v2_model_proto_init() }
func file_google_cloud_retail_v2_model_proto_init() {
	if File_google_cloud_retail_v2_model_proto != nil {
		return
	}
	file_google_cloud_retail_v2_common_proto_init()
	file_google_cloud_retail_v2_model_proto_msgTypes[3].OneofWrappers = []any{
		(*Model_ModelFeaturesConfig_FrequentlyBoughtTogetherConfig)(nil),
	}
	type x struct{}
	out := protoimpl.TypeBuilder{
		File: protoimpl.DescBuilder{
			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
			RawDescriptor: unsafe.Slice(unsafe.StringData(file_google_cloud_retail_v2_model_proto_rawDesc), len(file_google_cloud_retail_v2_model_proto_rawDesc)),
			NumEnums:      5,
			NumMessages:   4,
			NumExtensions: 0,
			NumServices:   0,
		},
		GoTypes:           file_google_cloud_retail_v2_model_proto_goTypes,
		DependencyIndexes: file_google_cloud_retail_v2_model_proto_depIdxs,
		EnumInfos:         file_google_cloud_retail_v2_model_proto_enumTypes,
		MessageInfos:      file_google_cloud_retail_v2_model_proto_msgTypes,
	}.Build()
	File_google_cloud_retail_v2_model_proto = out.File
	file_google_cloud_retail_v2_model_proto_goTypes = nil
	file_google_cloud_retail_v2_model_proto_depIdxs = nil
}
