// 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_service.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"
	fieldmaskpb "google.golang.org/protobuf/types/known/fieldmaskpb"
)

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)
)

// Request for
// [ProjectService.GetAlertConfig][google.cloud.retail.v2beta.ProjectService.GetAlertConfig]
// method.
type GetAlertConfigRequest struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// Required. Full AlertConfig resource name. Format:
	// projects/{project_number}/alertConfig
	Name          string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*GetAlertConfigRequest) ProtoMessage() {}

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

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

// Request for
// [ProjectService.UpdateAlertConfig][google.cloud.retail.v2beta.ProjectService.UpdateAlertConfig]
// method.
type UpdateAlertConfigRequest struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// Required. The [AlertConfig][google.cloud.retail.v2beta.AlertConfig] to
	// update.
	//
	// If the caller does not have permission to update the
	// [AlertConfig][google.cloud.retail.v2beta.AlertConfig], then a
	// PERMISSION_DENIED error is returned.
	//
	// If the [AlertConfig][google.cloud.retail.v2beta.AlertConfig] to update does
	// not exist, a NOT_FOUND error is returned.
	AlertConfig *AlertConfig `protobuf:"bytes,1,opt,name=alert_config,json=alertConfig,proto3" json:"alert_config,omitempty"`
	// Indicates which fields in the provided
	// [AlertConfig][google.cloud.retail.v2beta.AlertConfig] to update. If not
	// set, all supported fields are updated.
	UpdateMask    *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*UpdateAlertConfigRequest) ProtoMessage() {}

func (x *UpdateAlertConfigRequest) ProtoReflect() protoreflect.Message {
	mi := &file_google_cloud_retail_v2beta_project_service_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 UpdateAlertConfigRequest.ProtoReflect.Descriptor instead.
func (*UpdateAlertConfigRequest) Descriptor() ([]byte, []int) {
	return file_google_cloud_retail_v2beta_project_service_proto_rawDescGZIP(), []int{1}
}

func (x *UpdateAlertConfigRequest) GetAlertConfig() *AlertConfig {
	if x != nil {
		return x.AlertConfig
	}
	return nil
}

func (x *UpdateAlertConfigRequest) GetUpdateMask() *fieldmaskpb.FieldMask {
	if x != nil {
		return x.UpdateMask
	}
	return nil
}

var File_google_cloud_retail_v2beta_project_service_proto protoreflect.FileDescriptor

const file_google_cloud_retail_v2beta_project_service_proto_rawDesc = "" +
	"\n" +
	"0google/cloud/retail/v2beta/project_service.proto\x12\x1agoogle.cloud.retail.v2beta\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a(google/cloud/retail/v2beta/project.proto\x1a google/protobuf/field_mask.proto\"V\n" +
	"\x15GetAlertConfigRequest\x12=\n" +
	"\x04name\x18\x01 \x01(\tB)\xe0A\x02\xfaA#\n" +
	"!retail.googleapis.com/AlertConfigR\x04name\"\xa8\x01\n" +
	"\x18UpdateAlertConfigRequest\x12O\n" +
	"\falert_config\x18\x01 \x01(\v2'.google.cloud.retail.v2beta.AlertConfigB\x03\xe0A\x02R\valertConfig\x12;\n" +
	"\vupdate_mask\x18\x02 \x01(\v2\x1a.google.protobuf.FieldMaskR\n" +
	"updateMask2\xda\x03\n" +
	"\x0eProjectService\x12\xa2\x01\n" +
	"\x0eGetAlertConfig\x121.google.cloud.retail.v2beta.GetAlertConfigRequest\x1a'.google.cloud.retail.v2beta.AlertConfig\"4\xdaA\x04name\x82\xd3\xe4\x93\x02'\x12%/v2beta/{name=projects/*/alertConfig}\x12\xd7\x01\n" +
	"\x11UpdateAlertConfig\x124.google.cloud.retail.v2beta.UpdateAlertConfigRequest\x1a'.google.cloud.retail.v2beta.AlertConfig\"c\xdaA\x18alert_config,update_mask\x82\xd3\xe4\x93\x02B:\falert_config22/v2beta/{alert_config.name=projects/*/alertConfig}\x1aI\xcaA\x15retail.googleapis.com\xd2A.https://www.googleapis.com/auth/cloud-platformB\xd2\x01\n" +
	"\x1ecom.google.cloud.retail.v2betaB\x13ProjectServiceProtoP\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_service_proto_rawDescOnce sync.Once
	file_google_cloud_retail_v2beta_project_service_proto_rawDescData []byte
)

func file_google_cloud_retail_v2beta_project_service_proto_rawDescGZIP() []byte {
	file_google_cloud_retail_v2beta_project_service_proto_rawDescOnce.Do(func() {
		file_google_cloud_retail_v2beta_project_service_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_google_cloud_retail_v2beta_project_service_proto_rawDesc), len(file_google_cloud_retail_v2beta_project_service_proto_rawDesc)))
	})
	return file_google_cloud_retail_v2beta_project_service_proto_rawDescData
}

var file_google_cloud_retail_v2beta_project_service_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
var file_google_cloud_retail_v2beta_project_service_proto_goTypes = []any{
	(*GetAlertConfigRequest)(nil),    // 0: google.cloud.retail.v2beta.GetAlertConfigRequest
	(*UpdateAlertConfigRequest)(nil), // 1: google.cloud.retail.v2beta.UpdateAlertConfigRequest
	(*AlertConfig)(nil),              // 2: google.cloud.retail.v2beta.AlertConfig
	(*fieldmaskpb.FieldMask)(nil),    // 3: google.protobuf.FieldMask
}
var file_google_cloud_retail_v2beta_project_service_proto_depIdxs = []int32{
	2, // 0: google.cloud.retail.v2beta.UpdateAlertConfigRequest.alert_config:type_name -> google.cloud.retail.v2beta.AlertConfig
	3, // 1: google.cloud.retail.v2beta.UpdateAlertConfigRequest.update_mask:type_name -> google.protobuf.FieldMask
	0, // 2: google.cloud.retail.v2beta.ProjectService.GetAlertConfig:input_type -> google.cloud.retail.v2beta.GetAlertConfigRequest
	1, // 3: google.cloud.retail.v2beta.ProjectService.UpdateAlertConfig:input_type -> google.cloud.retail.v2beta.UpdateAlertConfigRequest
	2, // 4: google.cloud.retail.v2beta.ProjectService.GetAlertConfig:output_type -> google.cloud.retail.v2beta.AlertConfig
	2, // 5: google.cloud.retail.v2beta.ProjectService.UpdateAlertConfig:output_type -> google.cloud.retail.v2beta.AlertConfig
	4, // [4:6] is the sub-list for method output_type
	2, // [2:4] is the sub-list for method input_type
	2, // [2:2] is the sub-list for extension type_name
	2, // [2:2] is the sub-list for extension extendee
	0, // [0:2] is the sub-list for field type_name
}

func init() { file_google_cloud_retail_v2beta_project_service_proto_init() }
func file_google_cloud_retail_v2beta_project_service_proto_init() {
	if File_google_cloud_retail_v2beta_project_service_proto != nil {
		return
	}
	file_google_cloud_retail_v2beta_project_proto_init()
	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_service_proto_rawDesc), len(file_google_cloud_retail_v2beta_project_service_proto_rawDesc)),
			NumEnums:      0,
			NumMessages:   2,
			NumExtensions: 0,
			NumServices:   1,
		},
		GoTypes:           file_google_cloud_retail_v2beta_project_service_proto_goTypes,
		DependencyIndexes: file_google_cloud_retail_v2beta_project_service_proto_depIdxs,
		MessageInfos:      file_google_cloud_retail_v2beta_project_service_proto_msgTypes,
	}.Build()
	File_google_cloud_retail_v2beta_project_service_proto = out.File
	file_google_cloud_retail_v2beta_project_service_proto_goTypes = nil
	file_google_cloud_retail_v2beta_project_service_proto_depIdxs = nil
}
