// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// 	protoc-gen-go v1.36.6
// 	protoc        (unknown)
// source: xyz/block/ftl/raft/v1/raft.proto

package raftpb

import (
	v1 "github.com/block/ftl/backend/protos/xyz/block/ftl/v1"
	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
	reflect "reflect"
	sync "sync"
	unsafe "unsafe"
)

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 AddMemberRequest struct {
	state         protoimpl.MessageState `protogen:"open.v1"`
	Address       string                 `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
	ReplicaId     uint64                 `protobuf:"varint,2,opt,name=replica_id,json=replicaId,proto3" json:"replica_id,omitempty"`
	ShardIds      []uint64               `protobuf:"varint,3,rep,packed,name=shard_ids,json=shardIds,proto3" json:"shard_ids,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*AddMemberRequest) ProtoMessage() {}

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

func (x *AddMemberRequest) GetAddress() string {
	if x != nil {
		return x.Address
	}
	return ""
}

func (x *AddMemberRequest) GetReplicaId() uint64 {
	if x != nil {
		return x.ReplicaId
	}
	return 0
}

func (x *AddMemberRequest) GetShardIds() []uint64 {
	if x != nil {
		return x.ShardIds
	}
	return nil
}

type AddMemberResponse struct {
	state         protoimpl.MessageState `protogen:"open.v1"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*AddMemberResponse) ProtoMessage() {}

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

type RemoveMemberRequest struct {
	state         protoimpl.MessageState `protogen:"open.v1"`
	ReplicaId     uint64                 `protobuf:"varint,1,opt,name=replica_id,json=replicaId,proto3" json:"replica_id,omitempty"`
	ShardIds      []uint64               `protobuf:"varint,2,rep,packed,name=shard_ids,json=shardIds,proto3" json:"shard_ids,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*RemoveMemberRequest) ProtoMessage() {}

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

func (x *RemoveMemberRequest) GetReplicaId() uint64 {
	if x != nil {
		return x.ReplicaId
	}
	return 0
}

func (x *RemoveMemberRequest) GetShardIds() []uint64 {
	if x != nil {
		return x.ShardIds
	}
	return nil
}

type RemoveMemberResponse struct {
	state         protoimpl.MessageState `protogen:"open.v1"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*RemoveMemberResponse) ProtoMessage() {}

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

var File_xyz_block_ftl_raft_v1_raft_proto protoreflect.FileDescriptor

const file_xyz_block_ftl_raft_v1_raft_proto_rawDesc = "" +
	"\n" +
	" xyz/block/ftl/raft/v1/raft.proto\x12\x15xyz.block.ftl.raft.v1\x1a\x1axyz/block/ftl/v1/ftl.proto\"h\n" +
	"\x10AddMemberRequest\x12\x18\n" +
	"\aaddress\x18\x01 \x01(\tR\aaddress\x12\x1d\n" +
	"\n" +
	"replica_id\x18\x02 \x01(\x04R\treplicaId\x12\x1b\n" +
	"\tshard_ids\x18\x03 \x03(\x04R\bshardIds\"\x13\n" +
	"\x11AddMemberResponse\"Q\n" +
	"\x13RemoveMemberRequest\x12\x1d\n" +
	"\n" +
	"replica_id\x18\x01 \x01(\x04R\treplicaId\x12\x1b\n" +
	"\tshard_ids\x18\x02 \x03(\x04R\bshardIds\"\x16\n" +
	"\x14RemoveMemberResponse2\xa2\x02\n" +
	"\vRaftService\x12J\n" +
	"\x04Ping\x12\x1d.xyz.block.ftl.v1.PingRequest\x1a\x1e.xyz.block.ftl.v1.PingResponse\"\x03\x90\x02\x01\x12^\n" +
	"\tAddMember\x12'.xyz.block.ftl.raft.v1.AddMemberRequest\x1a(.xyz.block.ftl.raft.v1.AddMemberResponse\x12g\n" +
	"\fRemoveMember\x12*.xyz.block.ftl.raft.v1.RemoveMemberRequest\x1a+.xyz.block.ftl.raft.v1.RemoveMemberResponseBDP\x01Z@github.com/block/ftl/backend/protos/xyz/block/ftl/raft/v1;raftpbb\x06proto3"

var (
	file_xyz_block_ftl_raft_v1_raft_proto_rawDescOnce sync.Once
	file_xyz_block_ftl_raft_v1_raft_proto_rawDescData []byte
)

func file_xyz_block_ftl_raft_v1_raft_proto_rawDescGZIP() []byte {
	file_xyz_block_ftl_raft_v1_raft_proto_rawDescOnce.Do(func() {
		file_xyz_block_ftl_raft_v1_raft_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_xyz_block_ftl_raft_v1_raft_proto_rawDesc), len(file_xyz_block_ftl_raft_v1_raft_proto_rawDesc)))
	})
	return file_xyz_block_ftl_raft_v1_raft_proto_rawDescData
}

var file_xyz_block_ftl_raft_v1_raft_proto_msgTypes = make([]protoimpl.MessageInfo, 4)
var file_xyz_block_ftl_raft_v1_raft_proto_goTypes = []any{
	(*AddMemberRequest)(nil),     // 0: xyz.block.ftl.raft.v1.AddMemberRequest
	(*AddMemberResponse)(nil),    // 1: xyz.block.ftl.raft.v1.AddMemberResponse
	(*RemoveMemberRequest)(nil),  // 2: xyz.block.ftl.raft.v1.RemoveMemberRequest
	(*RemoveMemberResponse)(nil), // 3: xyz.block.ftl.raft.v1.RemoveMemberResponse
	(*v1.PingRequest)(nil),       // 4: xyz.block.ftl.v1.PingRequest
	(*v1.PingResponse)(nil),      // 5: xyz.block.ftl.v1.PingResponse
}
var file_xyz_block_ftl_raft_v1_raft_proto_depIdxs = []int32{
	4, // 0: xyz.block.ftl.raft.v1.RaftService.Ping:input_type -> xyz.block.ftl.v1.PingRequest
	0, // 1: xyz.block.ftl.raft.v1.RaftService.AddMember:input_type -> xyz.block.ftl.raft.v1.AddMemberRequest
	2, // 2: xyz.block.ftl.raft.v1.RaftService.RemoveMember:input_type -> xyz.block.ftl.raft.v1.RemoveMemberRequest
	5, // 3: xyz.block.ftl.raft.v1.RaftService.Ping:output_type -> xyz.block.ftl.v1.PingResponse
	1, // 4: xyz.block.ftl.raft.v1.RaftService.AddMember:output_type -> xyz.block.ftl.raft.v1.AddMemberResponse
	3, // 5: xyz.block.ftl.raft.v1.RaftService.RemoveMember:output_type -> xyz.block.ftl.raft.v1.RemoveMemberResponse
	3, // [3:6] is the sub-list for method output_type
	0, // [0:3] is the sub-list for method input_type
	0, // [0:0] is the sub-list for extension type_name
	0, // [0:0] is the sub-list for extension extendee
	0, // [0:0] is the sub-list for field type_name
}

func init() { file_xyz_block_ftl_raft_v1_raft_proto_init() }
func file_xyz_block_ftl_raft_v1_raft_proto_init() {
	if File_xyz_block_ftl_raft_v1_raft_proto != nil {
		return
	}
	type x struct{}
	out := protoimpl.TypeBuilder{
		File: protoimpl.DescBuilder{
			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
			RawDescriptor: unsafe.Slice(unsafe.StringData(file_xyz_block_ftl_raft_v1_raft_proto_rawDesc), len(file_xyz_block_ftl_raft_v1_raft_proto_rawDesc)),
			NumEnums:      0,
			NumMessages:   4,
			NumExtensions: 0,
			NumServices:   1,
		},
		GoTypes:           file_xyz_block_ftl_raft_v1_raft_proto_goTypes,
		DependencyIndexes: file_xyz_block_ftl_raft_v1_raft_proto_depIdxs,
		MessageInfos:      file_xyz_block_ftl_raft_v1_raft_proto_msgTypes,
	}.Build()
	File_xyz_block_ftl_raft_v1_raft_proto = out.File
	file_xyz_block_ftl_raft_v1_raft_proto_goTypes = nil
	file_xyz_block_ftl_raft_v1_raft_proto_depIdxs = nil
}
