// Copyright 2025 The Bucketeer Authors.
//
// 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.26.0
// 	protoc        v4.23.4
// source: proto/batch/service.proto

package batch

import (
	context "context"
	grpc "google.golang.org/grpc"
	codes "google.golang.org/grpc/codes"
	status "google.golang.org/grpc/status"
	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
	reflect "reflect"
	sync "sync"
)

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

type BatchJob int32

const (
	BatchJob_ExperimentStatusUpdater   BatchJob = 0
	BatchJob_ExperimentRunningWatcher  BatchJob = 1
	BatchJob_FeatureStaleWatcher       BatchJob = 2
	BatchJob_MauCountWatcher           BatchJob = 3
	BatchJob_DatetimeWatcher           BatchJob = 4
	BatchJob_EventCountWatcher         BatchJob = 5
	BatchJob_DomainEventInformer       BatchJob = 6
	BatchJob_RedisCounterDeleter       BatchJob = 7
	BatchJob_ProgressiveRolloutWatcher BatchJob = 8
	BatchJob_ExperimentCalculator      BatchJob = 9
	BatchJob_MauSummarizer             BatchJob = 10
	BatchJob_MauPartitionDeleter       BatchJob = 11
	BatchJob_MauPartitionCreator       BatchJob = 12
	BatchJob_FeatureFlagCacher         BatchJob = 13
	BatchJob_SegmentUserCacher         BatchJob = 14
	BatchJob_ApiKeyCacher              BatchJob = 15
	BatchJob_AutoOpsRulesCacher        BatchJob = 16
	BatchJob_ExperimentCacher          BatchJob = 17
	BatchJob_TagDeleter                BatchJob = 18
)

// Enum value maps for BatchJob.
var (
	BatchJob_name = map[int32]string{
		0:  "ExperimentStatusUpdater",
		1:  "ExperimentRunningWatcher",
		2:  "FeatureStaleWatcher",
		3:  "MauCountWatcher",
		4:  "DatetimeWatcher",
		5:  "EventCountWatcher",
		6:  "DomainEventInformer",
		7:  "RedisCounterDeleter",
		8:  "ProgressiveRolloutWatcher",
		9:  "ExperimentCalculator",
		10: "MauSummarizer",
		11: "MauPartitionDeleter",
		12: "MauPartitionCreator",
		13: "FeatureFlagCacher",
		14: "SegmentUserCacher",
		15: "ApiKeyCacher",
		16: "AutoOpsRulesCacher",
		17: "ExperimentCacher",
		18: "TagDeleter",
	}
	BatchJob_value = map[string]int32{
		"ExperimentStatusUpdater":   0,
		"ExperimentRunningWatcher":  1,
		"FeatureStaleWatcher":       2,
		"MauCountWatcher":           3,
		"DatetimeWatcher":           4,
		"EventCountWatcher":         5,
		"DomainEventInformer":       6,
		"RedisCounterDeleter":       7,
		"ProgressiveRolloutWatcher": 8,
		"ExperimentCalculator":      9,
		"MauSummarizer":             10,
		"MauPartitionDeleter":       11,
		"MauPartitionCreator":       12,
		"FeatureFlagCacher":         13,
		"SegmentUserCacher":         14,
		"ApiKeyCacher":              15,
		"AutoOpsRulesCacher":        16,
		"ExperimentCacher":          17,
		"TagDeleter":                18,
	}
)

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

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

func (BatchJob) Descriptor() protoreflect.EnumDescriptor {
	return file_proto_batch_service_proto_enumTypes[0].Descriptor()
}

func (BatchJob) Type() protoreflect.EnumType {
	return &file_proto_batch_service_proto_enumTypes[0]
}

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

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

type BatchJobRequest struct {
	state         protoimpl.MessageState
	sizeCache     protoimpl.SizeCache
	unknownFields protoimpl.UnknownFields

	Job BatchJob `protobuf:"varint,1,opt,name=job,proto3,enum=bucketeer.batch.BatchJob" json:"job"`
}

func (x *BatchJobRequest) Reset() {
	*x = BatchJobRequest{}
	if protoimpl.UnsafeEnabled {
		mi := &file_proto_batch_service_proto_msgTypes[0]
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		ms.StoreMessageInfo(mi)
	}
}

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

func (*BatchJobRequest) ProtoMessage() {}

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

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

func (x *BatchJobRequest) GetJob() BatchJob {
	if x != nil {
		return x.Job
	}
	return BatchJob_ExperimentStatusUpdater
}

type BatchJobResponse struct {
	state         protoimpl.MessageState
	sizeCache     protoimpl.SizeCache
	unknownFields protoimpl.UnknownFields
}

func (x *BatchJobResponse) Reset() {
	*x = BatchJobResponse{}
	if protoimpl.UnsafeEnabled {
		mi := &file_proto_batch_service_proto_msgTypes[1]
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		ms.StoreMessageInfo(mi)
	}
}

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

func (*BatchJobResponse) ProtoMessage() {}

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

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

var File_proto_batch_service_proto protoreflect.FileDescriptor

var file_proto_batch_service_proto_rawDesc = []byte{
	0x0a, 0x19, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x62, 0x61, 0x74, 0x63, 0x68, 0x2f, 0x73, 0x65,
	0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0f, 0x62, 0x75, 0x63,
	0x6b, 0x65, 0x74, 0x65, 0x65, 0x72, 0x2e, 0x62, 0x61, 0x74, 0x63, 0x68, 0x22, 0x3e, 0x0a, 0x0f,
	0x42, 0x61, 0x74, 0x63, 0x68, 0x4a, 0x6f, 0x62, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12,
	0x2b, 0x0a, 0x03, 0x6a, 0x6f, 0x62, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x19, 0x2e, 0x62,
	0x75, 0x63, 0x6b, 0x65, 0x74, 0x65, 0x65, 0x72, 0x2e, 0x62, 0x61, 0x74, 0x63, 0x68, 0x2e, 0x42,
	0x61, 0x74, 0x63, 0x68, 0x4a, 0x6f, 0x62, 0x52, 0x03, 0x6a, 0x6f, 0x62, 0x22, 0x12, 0x0a, 0x10,
	0x42, 0x61, 0x74, 0x63, 0x68, 0x4a, 0x6f, 0x62, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65,
	0x2a, 0xcd, 0x03, 0x0a, 0x08, 0x42, 0x61, 0x74, 0x63, 0x68, 0x4a, 0x6f, 0x62, 0x12, 0x1b, 0x0a,
	0x17, 0x45, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x53, 0x74, 0x61, 0x74, 0x75,
	0x73, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x72, 0x10, 0x00, 0x12, 0x1c, 0x0a, 0x18, 0x45, 0x78,
	0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x75, 0x6e, 0x6e, 0x69, 0x6e, 0x67, 0x57,
	0x61, 0x74, 0x63, 0x68, 0x65, 0x72, 0x10, 0x01, 0x12, 0x17, 0x0a, 0x13, 0x46, 0x65, 0x61, 0x74,
	0x75, 0x72, 0x65, 0x53, 0x74, 0x61, 0x6c, 0x65, 0x57, 0x61, 0x74, 0x63, 0x68, 0x65, 0x72, 0x10,
	0x02, 0x12, 0x13, 0x0a, 0x0f, 0x4d, 0x61, 0x75, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x57, 0x61, 0x74,
	0x63, 0x68, 0x65, 0x72, 0x10, 0x03, 0x12, 0x13, 0x0a, 0x0f, 0x44, 0x61, 0x74, 0x65, 0x74, 0x69,
	0x6d, 0x65, 0x57, 0x61, 0x74, 0x63, 0x68, 0x65, 0x72, 0x10, 0x04, 0x12, 0x15, 0x0a, 0x11, 0x45,
	0x76, 0x65, 0x6e, 0x74, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x57, 0x61, 0x74, 0x63, 0x68, 0x65, 0x72,
	0x10, 0x05, 0x12, 0x17, 0x0a, 0x13, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x45, 0x76, 0x65, 0x6e,
	0x74, 0x49, 0x6e, 0x66, 0x6f, 0x72, 0x6d, 0x65, 0x72, 0x10, 0x06, 0x12, 0x17, 0x0a, 0x13, 0x52,
	0x65, 0x64, 0x69, 0x73, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x65, 0x72, 0x44, 0x65, 0x6c, 0x65, 0x74,
	0x65, 0x72, 0x10, 0x07, 0x12, 0x1d, 0x0a, 0x19, 0x50, 0x72, 0x6f, 0x67, 0x72, 0x65, 0x73, 0x73,
	0x69, 0x76, 0x65, 0x52, 0x6f, 0x6c, 0x6c, 0x6f, 0x75, 0x74, 0x57, 0x61, 0x74, 0x63, 0x68, 0x65,
	0x72, 0x10, 0x08, 0x12, 0x18, 0x0a, 0x14, 0x45, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e,
	0x74, 0x43, 0x61, 0x6c, 0x63, 0x75, 0x6c, 0x61, 0x74, 0x6f, 0x72, 0x10, 0x09, 0x12, 0x11, 0x0a,
	0x0d, 0x4d, 0x61, 0x75, 0x53, 0x75, 0x6d, 0x6d, 0x61, 0x72, 0x69, 0x7a, 0x65, 0x72, 0x10, 0x0a,
	0x12, 0x17, 0x0a, 0x13, 0x4d, 0x61, 0x75, 0x50, 0x61, 0x72, 0x74, 0x69, 0x74, 0x69, 0x6f, 0x6e,
	0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x72, 0x10, 0x0b, 0x12, 0x17, 0x0a, 0x13, 0x4d, 0x61, 0x75,
	0x50, 0x61, 0x72, 0x74, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72,
	0x10, 0x0c, 0x12, 0x15, 0x0a, 0x11, 0x46, 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, 0x46, 0x6c, 0x61,
	0x67, 0x43, 0x61, 0x63, 0x68, 0x65, 0x72, 0x10, 0x0d, 0x12, 0x15, 0x0a, 0x11, 0x53, 0x65, 0x67,
	0x6d, 0x65, 0x6e, 0x74, 0x55, 0x73, 0x65, 0x72, 0x43, 0x61, 0x63, 0x68, 0x65, 0x72, 0x10, 0x0e,
	0x12, 0x10, 0x0a, 0x0c, 0x41, 0x70, 0x69, 0x4b, 0x65, 0x79, 0x43, 0x61, 0x63, 0x68, 0x65, 0x72,
	0x10, 0x0f, 0x12, 0x16, 0x0a, 0x12, 0x41, 0x75, 0x74, 0x6f, 0x4f, 0x70, 0x73, 0x52, 0x75, 0x6c,
	0x65, 0x73, 0x43, 0x61, 0x63, 0x68, 0x65, 0x72, 0x10, 0x10, 0x12, 0x14, 0x0a, 0x10, 0x45, 0x78,
	0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x43, 0x61, 0x63, 0x68, 0x65, 0x72, 0x10, 0x11,
	0x12, 0x0e, 0x0a, 0x0a, 0x54, 0x61, 0x67, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x72, 0x10, 0x12,
	0x32, 0x68, 0x0a, 0x0c, 0x42, 0x61, 0x74, 0x63, 0x68, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65,
	0x12, 0x58, 0x0a, 0x0f, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x65, 0x42, 0x61, 0x74, 0x63, 0x68,
	0x4a, 0x6f, 0x62, 0x12, 0x20, 0x2e, 0x62, 0x75, 0x63, 0x6b, 0x65, 0x74, 0x65, 0x65, 0x72, 0x2e,
	0x62, 0x61, 0x74, 0x63, 0x68, 0x2e, 0x42, 0x61, 0x74, 0x63, 0x68, 0x4a, 0x6f, 0x62, 0x52, 0x65,
	0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x21, 0x2e, 0x62, 0x75, 0x63, 0x6b, 0x65, 0x74, 0x65, 0x65,
	0x72, 0x2e, 0x62, 0x61, 0x74, 0x63, 0x68, 0x2e, 0x42, 0x61, 0x74, 0x63, 0x68, 0x4a, 0x6f, 0x62,
	0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x42, 0x32, 0x5a, 0x30, 0x67, 0x69,
	0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x62, 0x75, 0x63, 0x6b, 0x65, 0x74, 0x65,
	0x65, 0x72, 0x2d, 0x69, 0x6f, 0x2f, 0x62, 0x75, 0x63, 0x6b, 0x65, 0x74, 0x65, 0x65, 0x72, 0x2f,
	0x76, 0x32, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x62, 0x61, 0x74, 0x63, 0x68, 0x62, 0x06,
	0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
}

var (
	file_proto_batch_service_proto_rawDescOnce sync.Once
	file_proto_batch_service_proto_rawDescData = file_proto_batch_service_proto_rawDesc
)

func file_proto_batch_service_proto_rawDescGZIP() []byte {
	file_proto_batch_service_proto_rawDescOnce.Do(func() {
		file_proto_batch_service_proto_rawDescData = protoimpl.X.CompressGZIP(file_proto_batch_service_proto_rawDescData)
	})
	return file_proto_batch_service_proto_rawDescData
}

var file_proto_batch_service_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
var file_proto_batch_service_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
var file_proto_batch_service_proto_goTypes = []interface{}{
	(BatchJob)(0),            // 0: bucketeer.batch.BatchJob
	(*BatchJobRequest)(nil),  // 1: bucketeer.batch.BatchJobRequest
	(*BatchJobResponse)(nil), // 2: bucketeer.batch.BatchJobResponse
}
var file_proto_batch_service_proto_depIdxs = []int32{
	0, // 0: bucketeer.batch.BatchJobRequest.job:type_name -> bucketeer.batch.BatchJob
	1, // 1: bucketeer.batch.BatchService.ExecuteBatchJob:input_type -> bucketeer.batch.BatchJobRequest
	2, // 2: bucketeer.batch.BatchService.ExecuteBatchJob:output_type -> bucketeer.batch.BatchJobResponse
	2, // [2:3] is the sub-list for method output_type
	1, // [1:2] is the sub-list for method input_type
	1, // [1:1] is the sub-list for extension type_name
	1, // [1:1] is the sub-list for extension extendee
	0, // [0:1] is the sub-list for field type_name
}

func init() { file_proto_batch_service_proto_init() }
func file_proto_batch_service_proto_init() {
	if File_proto_batch_service_proto != nil {
		return
	}
	if !protoimpl.UnsafeEnabled {
		file_proto_batch_service_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
			switch v := v.(*BatchJobRequest); i {
			case 0:
				return &v.state
			case 1:
				return &v.sizeCache
			case 2:
				return &v.unknownFields
			default:
				return nil
			}
		}
		file_proto_batch_service_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
			switch v := v.(*BatchJobResponse); i {
			case 0:
				return &v.state
			case 1:
				return &v.sizeCache
			case 2:
				return &v.unknownFields
			default:
				return nil
			}
		}
	}
	type x struct{}
	out := protoimpl.TypeBuilder{
		File: protoimpl.DescBuilder{
			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
			RawDescriptor: file_proto_batch_service_proto_rawDesc,
			NumEnums:      1,
			NumMessages:   2,
			NumExtensions: 0,
			NumServices:   1,
		},
		GoTypes:           file_proto_batch_service_proto_goTypes,
		DependencyIndexes: file_proto_batch_service_proto_depIdxs,
		EnumInfos:         file_proto_batch_service_proto_enumTypes,
		MessageInfos:      file_proto_batch_service_proto_msgTypes,
	}.Build()
	File_proto_batch_service_proto = out.File
	file_proto_batch_service_proto_rawDesc = nil
	file_proto_batch_service_proto_goTypes = nil
	file_proto_batch_service_proto_depIdxs = nil
}

// Reference imports to suppress errors if they are not otherwise used.
var _ context.Context
var _ grpc.ClientConnInterface

// This is a compile-time assertion to ensure that this generated file
// is compatible with the grpc package it is being compiled against.
const _ = grpc.SupportPackageIsVersion6

// BatchServiceClient is the client API for BatchService service.
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
type BatchServiceClient interface {
	ExecuteBatchJob(ctx context.Context, in *BatchJobRequest, opts ...grpc.CallOption) (*BatchJobResponse, error)
}

type batchServiceClient struct {
	cc grpc.ClientConnInterface
}

func NewBatchServiceClient(cc grpc.ClientConnInterface) BatchServiceClient {
	return &batchServiceClient{cc}
}

func (c *batchServiceClient) ExecuteBatchJob(ctx context.Context, in *BatchJobRequest, opts ...grpc.CallOption) (*BatchJobResponse, error) {
	out := new(BatchJobResponse)
	err := c.cc.Invoke(ctx, "/bucketeer.batch.BatchService/ExecuteBatchJob", in, out, opts...)
	if err != nil {
		return nil, err
	}
	return out, nil
}

// BatchServiceServer is the server API for BatchService service.
type BatchServiceServer interface {
	ExecuteBatchJob(context.Context, *BatchJobRequest) (*BatchJobResponse, error)
}

// UnimplementedBatchServiceServer can be embedded to have forward compatible implementations.
type UnimplementedBatchServiceServer struct {
}

func (*UnimplementedBatchServiceServer) ExecuteBatchJob(context.Context, *BatchJobRequest) (*BatchJobResponse, error) {
	return nil, status.Errorf(codes.Unimplemented, "method ExecuteBatchJob not implemented")
}

func RegisterBatchServiceServer(s *grpc.Server, srv BatchServiceServer) {
	s.RegisterService(&_BatchService_serviceDesc, srv)
}

func _BatchService_ExecuteBatchJob_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
	in := new(BatchJobRequest)
	if err := dec(in); err != nil {
		return nil, err
	}
	if interceptor == nil {
		return srv.(BatchServiceServer).ExecuteBatchJob(ctx, in)
	}
	info := &grpc.UnaryServerInfo{
		Server:     srv,
		FullMethod: "/bucketeer.batch.BatchService/ExecuteBatchJob",
	}
	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
		return srv.(BatchServiceServer).ExecuteBatchJob(ctx, req.(*BatchJobRequest))
	}
	return interceptor(ctx, in, info, handler)
}

var _BatchService_serviceDesc = grpc.ServiceDesc{
	ServiceName: "bucketeer.batch.BatchService",
	HandlerType: (*BatchServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "ExecuteBatchJob",
			Handler:    _BatchService_ExecuteBatchJob_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "proto/batch/service.proto",
}
