// 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/control_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"
	emptypb "google.golang.org/protobuf/types/known/emptypb"
	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 CreateControl method.
type CreateControlRequest struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// Required. Full resource name of parent catalog. Format:
	// `projects/{project_number}/locations/{location_id}/catalogs/{catalog_id}`
	Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
	// Required. The Control to create.
	Control *Control `protobuf:"bytes,2,opt,name=control,proto3" json:"control,omitempty"`
	// Required. The ID to use for the Control, which will become the final
	// component of the Control's resource name.
	//
	// This value should be 4-63 characters, and valid characters
	// are /[a-z][0-9]-_/.
	ControlId     string `protobuf:"bytes,3,opt,name=control_id,json=controlId,proto3" json:"control_id,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*CreateControlRequest) ProtoMessage() {}

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

func (x *CreateControlRequest) GetParent() string {
	if x != nil {
		return x.Parent
	}
	return ""
}

func (x *CreateControlRequest) GetControl() *Control {
	if x != nil {
		return x.Control
	}
	return nil
}

func (x *CreateControlRequest) GetControlId() string {
	if x != nil {
		return x.ControlId
	}
	return ""
}

// Request for UpdateControl method.
type UpdateControlRequest struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// Required. The Control to update.
	Control *Control `protobuf:"bytes,1,opt,name=control,proto3" json:"control,omitempty"`
	// Indicates which fields in the provided
	// [Control][google.cloud.retail.v2.Control] to update. The following are NOT
	// supported:
	//
	// * [Control.name][google.cloud.retail.v2.Control.name]
	//
	// If not set or empty, 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 *UpdateControlRequest) Reset() {
	*x = UpdateControlRequest{}
	mi := &file_google_cloud_retail_v2_control_service_proto_msgTypes[1]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

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

func (*UpdateControlRequest) ProtoMessage() {}

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

func (x *UpdateControlRequest) GetControl() *Control {
	if x != nil {
		return x.Control
	}
	return nil
}

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

// Request for DeleteControl method.
type DeleteControlRequest struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// Required. The resource name of the Control to delete. Format:
	// `projects/{project_number}/locations/{location_id}/catalogs/{catalog_id}/controls/{control_id}`
	Name          string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*DeleteControlRequest) ProtoMessage() {}

func (x *DeleteControlRequest) ProtoReflect() protoreflect.Message {
	mi := &file_google_cloud_retail_v2_control_service_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 DeleteControlRequest.ProtoReflect.Descriptor instead.
func (*DeleteControlRequest) Descriptor() ([]byte, []int) {
	return file_google_cloud_retail_v2_control_service_proto_rawDescGZIP(), []int{2}
}

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

// Request for GetControl method.
type GetControlRequest struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// Required. The resource name of the Control to get. Format:
	// `projects/{project_number}/locations/{location_id}/catalogs/{catalog_id}/controls/{control_id}`
	Name          string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*GetControlRequest) ProtoMessage() {}

func (x *GetControlRequest) ProtoReflect() protoreflect.Message {
	mi := &file_google_cloud_retail_v2_control_service_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 GetControlRequest.ProtoReflect.Descriptor instead.
func (*GetControlRequest) Descriptor() ([]byte, []int) {
	return file_google_cloud_retail_v2_control_service_proto_rawDescGZIP(), []int{3}
}

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

// Request for ListControls method.
type ListControlsRequest struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// Required. The catalog resource name. Format:
	// `projects/{project_number}/locations/{location_id}/catalogs/{catalog_id}`
	Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
	// Optional. Maximum number of results to return. If unspecified, defaults
	// to 50. Max allowed value is 1000.
	PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
	// Optional. A page token, received from a previous `ListControls` call.
	// Provide this to retrieve the subsequent page.
	PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
	// Optional. A filter to apply on the list results. Supported features:
	//
	// * List all the products under the parent branch if
	// [filter][google.cloud.retail.v2.ListControlsRequest.filter] is unset.
	//   - List controls that are used in a single ServingConfig:
	//     'serving_config = "boosted_home_page_cvr"'
	Filter        string `protobuf:"bytes,4,opt,name=filter,proto3" json:"filter,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

func (x *ListControlsRequest) Reset() {
	*x = ListControlsRequest{}
	mi := &file_google_cloud_retail_v2_control_service_proto_msgTypes[4]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

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

func (*ListControlsRequest) ProtoMessage() {}

func (x *ListControlsRequest) ProtoReflect() protoreflect.Message {
	mi := &file_google_cloud_retail_v2_control_service_proto_msgTypes[4]
	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 ListControlsRequest.ProtoReflect.Descriptor instead.
func (*ListControlsRequest) Descriptor() ([]byte, []int) {
	return file_google_cloud_retail_v2_control_service_proto_rawDescGZIP(), []int{4}
}

func (x *ListControlsRequest) GetParent() string {
	if x != nil {
		return x.Parent
	}
	return ""
}

func (x *ListControlsRequest) GetPageSize() int32 {
	if x != nil {
		return x.PageSize
	}
	return 0
}

func (x *ListControlsRequest) GetPageToken() string {
	if x != nil {
		return x.PageToken
	}
	return ""
}

func (x *ListControlsRequest) GetFilter() string {
	if x != nil {
		return x.Filter
	}
	return ""
}

// Response for ListControls method.
type ListControlsResponse struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// All the Controls for a given catalog.
	Controls []*Control `protobuf:"bytes,1,rep,name=controls,proto3" json:"controls,omitempty"`
	// Pagination token, if not returned indicates the last page.
	NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

func (x *ListControlsResponse) Reset() {
	*x = ListControlsResponse{}
	mi := &file_google_cloud_retail_v2_control_service_proto_msgTypes[5]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

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

func (*ListControlsResponse) ProtoMessage() {}

func (x *ListControlsResponse) ProtoReflect() protoreflect.Message {
	mi := &file_google_cloud_retail_v2_control_service_proto_msgTypes[5]
	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 ListControlsResponse.ProtoReflect.Descriptor instead.
func (*ListControlsResponse) Descriptor() ([]byte, []int) {
	return file_google_cloud_retail_v2_control_service_proto_rawDescGZIP(), []int{5}
}

func (x *ListControlsResponse) GetControls() []*Control {
	if x != nil {
		return x.Controls
	}
	return nil
}

func (x *ListControlsResponse) GetNextPageToken() string {
	if x != nil {
		return x.NextPageToken
	}
	return ""
}

var File_google_cloud_retail_v2_control_service_proto protoreflect.FileDescriptor

const file_google_cloud_retail_v2_control_service_proto_rawDesc = "" +
	"\n" +
	",google/cloud/retail/v2/control_service.proto\x12\x16google.cloud.retail.v2\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/v2/control.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a google/protobuf/field_mask.proto\"\xb9\x01\n" +
	"\x14CreateControlRequest\x12=\n" +
	"\x06parent\x18\x01 \x01(\tB%\xe0A\x02\xfaA\x1f\n" +
	"\x1dretail.googleapis.com/CatalogR\x06parent\x12>\n" +
	"\acontrol\x18\x02 \x01(\v2\x1f.google.cloud.retail.v2.ControlB\x03\xe0A\x02R\acontrol\x12\"\n" +
	"\n" +
	"control_id\x18\x03 \x01(\tB\x03\xe0A\x02R\tcontrolId\"\x93\x01\n" +
	"\x14UpdateControlRequest\x12>\n" +
	"\acontrol\x18\x01 \x01(\v2\x1f.google.cloud.retail.v2.ControlB\x03\xe0A\x02R\acontrol\x12;\n" +
	"\vupdate_mask\x18\x02 \x01(\v2\x1a.google.protobuf.FieldMaskR\n" +
	"updateMask\"Q\n" +
	"\x14DeleteControlRequest\x129\n" +
	"\x04name\x18\x01 \x01(\tB%\xe0A\x02\xfaA\x1f\n" +
	"\x1dretail.googleapis.com/ControlR\x04name\"N\n" +
	"\x11GetControlRequest\x129\n" +
	"\x04name\x18\x01 \x01(\tB%\xe0A\x02\xfaA\x1f\n" +
	"\x1dretail.googleapis.com/ControlR\x04name\"\xb7\x01\n" +
	"\x13ListControlsRequest\x12=\n" +
	"\x06parent\x18\x01 \x01(\tB%\xe0A\x02\xfaA\x1f\n" +
	"\x1dretail.googleapis.com/CatalogR\x06parent\x12 \n" +
	"\tpage_size\x18\x02 \x01(\x05B\x03\xe0A\x01R\bpageSize\x12\"\n" +
	"\n" +
	"page_token\x18\x03 \x01(\tB\x03\xe0A\x01R\tpageToken\x12\x1b\n" +
	"\x06filter\x18\x04 \x01(\tB\x03\xe0A\x01R\x06filter\"{\n" +
	"\x14ListControlsResponse\x12;\n" +
	"\bcontrols\x18\x01 \x03(\v2\x1f.google.cloud.retail.v2.ControlR\bcontrols\x12&\n" +
	"\x0fnext_page_token\x18\x02 \x01(\tR\rnextPageToken2\xe4\a\n" +
	"\x0eControlService\x12\xc4\x01\n" +
	"\rCreateControl\x12,.google.cloud.retail.v2.CreateControlRequest\x1a\x1f.google.cloud.retail.v2.Control\"d\xdaA\x19parent,control,control_id\x82\xd3\xe4\x93\x02B:\acontrol\"7/v2/{parent=projects/*/locations/*/catalogs/*}/controls\x12\x9d\x01\n" +
	"\rDeleteControl\x12,.google.cloud.retail.v2.DeleteControlRequest\x1a\x16.google.protobuf.Empty\"F\xdaA\x04name\x82\xd3\xe4\x93\x029*7/v2/{name=projects/*/locations/*/catalogs/*/controls/*}\x12\xc6\x01\n" +
	"\rUpdateControl\x12,.google.cloud.retail.v2.UpdateControlRequest\x1a\x1f.google.cloud.retail.v2.Control\"f\xdaA\x13control,update_mask\x82\xd3\xe4\x93\x02J:\acontrol2?/v2/{control.name=projects/*/locations/*/catalogs/*/controls/*}\x12\xa0\x01\n" +
	"\n" +
	"GetControl\x12).google.cloud.retail.v2.GetControlRequest\x1a\x1f.google.cloud.retail.v2.Control\"F\xdaA\x04name\x82\xd3\xe4\x93\x029\x127/v2/{name=projects/*/locations/*/catalogs/*/controls/*}\x12\xb3\x01\n" +
	"\fListControls\x12+.google.cloud.retail.v2.ListControlsRequest\x1a,.google.cloud.retail.v2.ListControlsResponse\"H\xdaA\x06parent\x82\xd3\xe4\x93\x029\x127/v2/{parent=projects/*/locations/*/catalogs/*}/controls\x1aI\xcaA\x15retail.googleapis.com\xd2A.https://www.googleapis.com/auth/cloud-platformB\xbe\x01\n" +
	"\x1acom.google.cloud.retail.v2B\x13ControlServiceProtoP\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_control_service_proto_rawDescOnce sync.Once
	file_google_cloud_retail_v2_control_service_proto_rawDescData []byte
)

func file_google_cloud_retail_v2_control_service_proto_rawDescGZIP() []byte {
	file_google_cloud_retail_v2_control_service_proto_rawDescOnce.Do(func() {
		file_google_cloud_retail_v2_control_service_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_google_cloud_retail_v2_control_service_proto_rawDesc), len(file_google_cloud_retail_v2_control_service_proto_rawDesc)))
	})
	return file_google_cloud_retail_v2_control_service_proto_rawDescData
}

var file_google_cloud_retail_v2_control_service_proto_msgTypes = make([]protoimpl.MessageInfo, 6)
var file_google_cloud_retail_v2_control_service_proto_goTypes = []any{
	(*CreateControlRequest)(nil),  // 0: google.cloud.retail.v2.CreateControlRequest
	(*UpdateControlRequest)(nil),  // 1: google.cloud.retail.v2.UpdateControlRequest
	(*DeleteControlRequest)(nil),  // 2: google.cloud.retail.v2.DeleteControlRequest
	(*GetControlRequest)(nil),     // 3: google.cloud.retail.v2.GetControlRequest
	(*ListControlsRequest)(nil),   // 4: google.cloud.retail.v2.ListControlsRequest
	(*ListControlsResponse)(nil),  // 5: google.cloud.retail.v2.ListControlsResponse
	(*Control)(nil),               // 6: google.cloud.retail.v2.Control
	(*fieldmaskpb.FieldMask)(nil), // 7: google.protobuf.FieldMask
	(*emptypb.Empty)(nil),         // 8: google.protobuf.Empty
}
var file_google_cloud_retail_v2_control_service_proto_depIdxs = []int32{
	6, // 0: google.cloud.retail.v2.CreateControlRequest.control:type_name -> google.cloud.retail.v2.Control
	6, // 1: google.cloud.retail.v2.UpdateControlRequest.control:type_name -> google.cloud.retail.v2.Control
	7, // 2: google.cloud.retail.v2.UpdateControlRequest.update_mask:type_name -> google.protobuf.FieldMask
	6, // 3: google.cloud.retail.v2.ListControlsResponse.controls:type_name -> google.cloud.retail.v2.Control
	0, // 4: google.cloud.retail.v2.ControlService.CreateControl:input_type -> google.cloud.retail.v2.CreateControlRequest
	2, // 5: google.cloud.retail.v2.ControlService.DeleteControl:input_type -> google.cloud.retail.v2.DeleteControlRequest
	1, // 6: google.cloud.retail.v2.ControlService.UpdateControl:input_type -> google.cloud.retail.v2.UpdateControlRequest
	3, // 7: google.cloud.retail.v2.ControlService.GetControl:input_type -> google.cloud.retail.v2.GetControlRequest
	4, // 8: google.cloud.retail.v2.ControlService.ListControls:input_type -> google.cloud.retail.v2.ListControlsRequest
	6, // 9: google.cloud.retail.v2.ControlService.CreateControl:output_type -> google.cloud.retail.v2.Control
	8, // 10: google.cloud.retail.v2.ControlService.DeleteControl:output_type -> google.protobuf.Empty
	6, // 11: google.cloud.retail.v2.ControlService.UpdateControl:output_type -> google.cloud.retail.v2.Control
	6, // 12: google.cloud.retail.v2.ControlService.GetControl:output_type -> google.cloud.retail.v2.Control
	5, // 13: google.cloud.retail.v2.ControlService.ListControls:output_type -> google.cloud.retail.v2.ListControlsResponse
	9, // [9:14] is the sub-list for method output_type
	4, // [4:9] is the sub-list for method input_type
	4, // [4:4] is the sub-list for extension type_name
	4, // [4:4] is the sub-list for extension extendee
	0, // [0:4] is the sub-list for field type_name
}

func init() { file_google_cloud_retail_v2_control_service_proto_init() }
func file_google_cloud_retail_v2_control_service_proto_init() {
	if File_google_cloud_retail_v2_control_service_proto != nil {
		return
	}
	file_google_cloud_retail_v2_control_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_v2_control_service_proto_rawDesc), len(file_google_cloud_retail_v2_control_service_proto_rawDesc)),
			NumEnums:      0,
			NumMessages:   6,
			NumExtensions: 0,
			NumServices:   1,
		},
		GoTypes:           file_google_cloud_retail_v2_control_service_proto_goTypes,
		DependencyIndexes: file_google_cloud_retail_v2_control_service_proto_depIdxs,
		MessageInfos:      file_google_cloud_retail_v2_control_service_proto_msgTypes,
	}.Build()
	File_google_cloud_retail_v2_control_service_proto = out.File
	file_google_cloud_retail_v2_control_service_proto_goTypes = nil
	file_google_cloud_retail_v2_control_service_proto_depIdxs = nil
}
