// 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/v2beta/project.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"
)

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 enrollment status enum for alert policy.
type AlertConfig_AlertPolicy_EnrollStatus int32

const (
	// Default value. Used for customers who have not responded to the
	// alert policy.
	AlertConfig_AlertPolicy_ENROLL_STATUS_UNSPECIFIED AlertConfig_AlertPolicy_EnrollStatus = 0
	// Customer is enrolled in this policy.
	AlertConfig_AlertPolicy_ENROLLED AlertConfig_AlertPolicy_EnrollStatus = 1
	// Customer declined this policy.
	AlertConfig_AlertPolicy_DECLINED AlertConfig_AlertPolicy_EnrollStatus = 2
)

// Enum value maps for AlertConfig_AlertPolicy_EnrollStatus.
var (
	AlertConfig_AlertPolicy_EnrollStatus_name = map[int32]string{
		0: "ENROLL_STATUS_UNSPECIFIED",
		1: "ENROLLED",
		2: "DECLINED",
	}
	AlertConfig_AlertPolicy_EnrollStatus_value = map[string]int32{
		"ENROLL_STATUS_UNSPECIFIED": 0,
		"ENROLLED":                  1,
		"DECLINED":                  2,
	}
)

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

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

func (AlertConfig_AlertPolicy_EnrollStatus) Descriptor() protoreflect.EnumDescriptor {
	return file_google_cloud_retail_v2beta_project_proto_enumTypes[0].Descriptor()
}

func (AlertConfig_AlertPolicy_EnrollStatus) Type() protoreflect.EnumType {
	return &file_google_cloud_retail_v2beta_project_proto_enumTypes[0]
}

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

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

// Project level alert config.
type AlertConfig struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// Required. Immutable. The name of the AlertConfig singleton resource.
	// Format: projects/*/alertConfig
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// Alert policies for a customer.
	// They must be unique by [AlertPolicy.alert_group]
	AlertPolicies []*AlertConfig_AlertPolicy `protobuf:"bytes,2,rep,name=alert_policies,json=alertPolicies,proto3" json:"alert_policies,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*AlertConfig) ProtoMessage() {}

func (x *AlertConfig) ProtoReflect() protoreflect.Message {
	mi := &file_google_cloud_retail_v2beta_project_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 AlertConfig.ProtoReflect.Descriptor instead.
func (*AlertConfig) Descriptor() ([]byte, []int) {
	return file_google_cloud_retail_v2beta_project_proto_rawDescGZIP(), []int{0}
}

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

func (x *AlertConfig) GetAlertPolicies() []*AlertConfig_AlertPolicy {
	if x != nil {
		return x.AlertPolicies
	}
	return nil
}

// Alert policy for a customer.
type AlertConfig_AlertPolicy struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// The feature that provides alerting capability.
	// Supported value:
	// - `search-data-quality` for retail search customers.
	// - `conv-data-quality` for retail conversation customers.
	AlertGroup string `protobuf:"bytes,1,opt,name=alert_group,json=alertGroup,proto3" json:"alert_group,omitempty"`
	// The enrollment status of a customer.
	EnrollStatus AlertConfig_AlertPolicy_EnrollStatus `protobuf:"varint,2,opt,name=enroll_status,json=enrollStatus,proto3,enum=google.cloud.retail.v2beta.AlertConfig_AlertPolicy_EnrollStatus" json:"enroll_status,omitempty"`
	// Recipients for the alert policy.
	// One alert policy should not exceed 20 recipients.
	Recipients    []*AlertConfig_AlertPolicy_Recipient `protobuf:"bytes,3,rep,name=recipients,proto3" json:"recipients,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*AlertConfig_AlertPolicy) ProtoMessage() {}

func (x *AlertConfig_AlertPolicy) ProtoReflect() protoreflect.Message {
	mi := &file_google_cloud_retail_v2beta_project_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 AlertConfig_AlertPolicy.ProtoReflect.Descriptor instead.
func (*AlertConfig_AlertPolicy) Descriptor() ([]byte, []int) {
	return file_google_cloud_retail_v2beta_project_proto_rawDescGZIP(), []int{0, 0}
}

func (x *AlertConfig_AlertPolicy) GetAlertGroup() string {
	if x != nil {
		return x.AlertGroup
	}
	return ""
}

func (x *AlertConfig_AlertPolicy) GetEnrollStatus() AlertConfig_AlertPolicy_EnrollStatus {
	if x != nil {
		return x.EnrollStatus
	}
	return AlertConfig_AlertPolicy_ENROLL_STATUS_UNSPECIFIED
}

func (x *AlertConfig_AlertPolicy) GetRecipients() []*AlertConfig_AlertPolicy_Recipient {
	if x != nil {
		return x.Recipients
	}
	return nil
}

// Recipient contact information.
type AlertConfig_AlertPolicy_Recipient struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// Email address of the recipient.
	EmailAddress  string `protobuf:"bytes,1,opt,name=email_address,json=emailAddress,proto3" json:"email_address,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*AlertConfig_AlertPolicy_Recipient) ProtoMessage() {}

func (x *AlertConfig_AlertPolicy_Recipient) ProtoReflect() protoreflect.Message {
	mi := &file_google_cloud_retail_v2beta_project_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 AlertConfig_AlertPolicy_Recipient.ProtoReflect.Descriptor instead.
func (*AlertConfig_AlertPolicy_Recipient) Descriptor() ([]byte, []int) {
	return file_google_cloud_retail_v2beta_project_proto_rawDescGZIP(), []int{0, 0, 0}
}

func (x *AlertConfig_AlertPolicy_Recipient) GetEmailAddress() string {
	if x != nil {
		return x.EmailAddress
	}
	return ""
}

var File_google_cloud_retail_v2beta_project_proto protoreflect.FileDescriptor

const file_google_cloud_retail_v2beta_project_proto_rawDesc = "" +
	"\n" +
	"(google/cloud/retail/v2beta/project.proto\x12\x1agoogle.cloud.retail.v2beta\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\xc1\x04\n" +
	"\vAlertConfig\x12\x1a\n" +
	"\x04name\x18\x01 \x01(\tB\x06\xe0A\x02\xe0A\x05R\x04name\x12Z\n" +
	"\x0ealert_policies\x18\x02 \x03(\v23.google.cloud.retail.v2beta.AlertConfig.AlertPolicyR\ralertPolicies\x1a\xf1\x02\n" +
	"\vAlertPolicy\x12\x1f\n" +
	"\valert_group\x18\x01 \x01(\tR\n" +
	"alertGroup\x12e\n" +
	"\renroll_status\x18\x02 \x01(\x0e2@.google.cloud.retail.v2beta.AlertConfig.AlertPolicy.EnrollStatusR\fenrollStatus\x12]\n" +
	"\n" +
	"recipients\x18\x03 \x03(\v2=.google.cloud.retail.v2beta.AlertConfig.AlertPolicy.RecipientR\n" +
	"recipients\x1a0\n" +
	"\tRecipient\x12#\n" +
	"\remail_address\x18\x01 \x01(\tR\femailAddress\"I\n" +
	"\fEnrollStatus\x12\x1d\n" +
	"\x19ENROLL_STATUS_UNSPECIFIED\x10\x00\x12\f\n" +
	"\bENROLLED\x10\x01\x12\f\n" +
	"\bDECLINED\x10\x02:F\xeaAC\n" +
	"!retail.googleapis.com/AlertConfig\x12\x1eprojects/{project}/alertConfigB\xcb\x01\n" +
	"\x1ecom.google.cloud.retail.v2betaB\fProjectProtoP\x01Z6cloud.google.com/go/retail/apiv2beta/retailpb;retailpb\xa2\x02\x06RETAIL\xaa\x02\x1aGoogle.Cloud.Retail.V2Beta\xca\x02\x1aGoogle\\Cloud\\Retail\\V2beta\xea\x02\x1dGoogle::Cloud::Retail::V2betab\x06proto3"

var (
	file_google_cloud_retail_v2beta_project_proto_rawDescOnce sync.Once
	file_google_cloud_retail_v2beta_project_proto_rawDescData []byte
)

func file_google_cloud_retail_v2beta_project_proto_rawDescGZIP() []byte {
	file_google_cloud_retail_v2beta_project_proto_rawDescOnce.Do(func() {
		file_google_cloud_retail_v2beta_project_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_google_cloud_retail_v2beta_project_proto_rawDesc), len(file_google_cloud_retail_v2beta_project_proto_rawDesc)))
	})
	return file_google_cloud_retail_v2beta_project_proto_rawDescData
}

var file_google_cloud_retail_v2beta_project_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
var file_google_cloud_retail_v2beta_project_proto_msgTypes = make([]protoimpl.MessageInfo, 3)
var file_google_cloud_retail_v2beta_project_proto_goTypes = []any{
	(AlertConfig_AlertPolicy_EnrollStatus)(0), // 0: google.cloud.retail.v2beta.AlertConfig.AlertPolicy.EnrollStatus
	(*AlertConfig)(nil),                       // 1: google.cloud.retail.v2beta.AlertConfig
	(*AlertConfig_AlertPolicy)(nil),           // 2: google.cloud.retail.v2beta.AlertConfig.AlertPolicy
	(*AlertConfig_AlertPolicy_Recipient)(nil), // 3: google.cloud.retail.v2beta.AlertConfig.AlertPolicy.Recipient
}
var file_google_cloud_retail_v2beta_project_proto_depIdxs = []int32{
	2, // 0: google.cloud.retail.v2beta.AlertConfig.alert_policies:type_name -> google.cloud.retail.v2beta.AlertConfig.AlertPolicy
	0, // 1: google.cloud.retail.v2beta.AlertConfig.AlertPolicy.enroll_status:type_name -> google.cloud.retail.v2beta.AlertConfig.AlertPolicy.EnrollStatus
	3, // 2: google.cloud.retail.v2beta.AlertConfig.AlertPolicy.recipients:type_name -> google.cloud.retail.v2beta.AlertConfig.AlertPolicy.Recipient
	3, // [3:3] is the sub-list for method output_type
	3, // [3:3] is the sub-list for method input_type
	3, // [3:3] is the sub-list for extension type_name
	3, // [3:3] is the sub-list for extension extendee
	0, // [0:3] is the sub-list for field type_name
}

func init() { file_google_cloud_retail_v2beta_project_proto_init() }
func file_google_cloud_retail_v2beta_project_proto_init() {
	if File_google_cloud_retail_v2beta_project_proto != nil {
		return
	}
	type x struct{}
	out := protoimpl.TypeBuilder{
		File: protoimpl.DescBuilder{
			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
			RawDescriptor: unsafe.Slice(unsafe.StringData(file_google_cloud_retail_v2beta_project_proto_rawDesc), len(file_google_cloud_retail_v2beta_project_proto_rawDesc)),
			NumEnums:      1,
			NumMessages:   3,
			NumExtensions: 0,
			NumServices:   0,
		},
		GoTypes:           file_google_cloud_retail_v2beta_project_proto_goTypes,
		DependencyIndexes: file_google_cloud_retail_v2beta_project_proto_depIdxs,
		EnumInfos:         file_google_cloud_retail_v2beta_project_proto_enumTypes,
		MessageInfos:      file_google_cloud_retail_v2beta_project_proto_msgTypes,
	}.Build()
	File_google_cloud_retail_v2beta_project_proto = out.File
	file_google_cloud_retail_v2beta_project_proto_goTypes = nil
	file_google_cloud_retail_v2beta_project_proto_depIdxs = nil
}
