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

package appsender

import (
	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
	emptypb "google.golang.org/protobuf/types/known/emptypb"
	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 SendAppRequestMsg struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// The nodes to send this request to
	NodeIds [][]byte `protobuf:"bytes,1,rep,name=node_ids,json=nodeIds,proto3" json:"node_ids,omitempty"`
	// The ID of this request
	RequestId uint32 `protobuf:"varint,2,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"`
	// The request body
	Request       []byte `protobuf:"bytes,3,opt,name=request,proto3" json:"request,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*SendAppRequestMsg) ProtoMessage() {}

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

func (x *SendAppRequestMsg) GetNodeIds() [][]byte {
	if x != nil {
		return x.NodeIds
	}
	return nil
}

func (x *SendAppRequestMsg) GetRequestId() uint32 {
	if x != nil {
		return x.RequestId
	}
	return 0
}

func (x *SendAppRequestMsg) GetRequest() []byte {
	if x != nil {
		return x.Request
	}
	return nil
}

type SendAppResponseMsg struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// The node to send a response to
	NodeId []byte `protobuf:"bytes,1,opt,name=node_id,json=nodeId,proto3" json:"node_id,omitempty"`
	// ID of this request
	RequestId uint32 `protobuf:"varint,2,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"`
	// The response body
	Response      []byte `protobuf:"bytes,3,opt,name=response,proto3" json:"response,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*SendAppResponseMsg) ProtoMessage() {}

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

func (x *SendAppResponseMsg) GetNodeId() []byte {
	if x != nil {
		return x.NodeId
	}
	return nil
}

func (x *SendAppResponseMsg) GetRequestId() uint32 {
	if x != nil {
		return x.RequestId
	}
	return 0
}

func (x *SendAppResponseMsg) GetResponse() []byte {
	if x != nil {
		return x.Response
	}
	return nil
}

type SendAppErrorMsg struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// The node to send a response to
	NodeId []byte `protobuf:"bytes,1,opt,name=node_id,json=nodeId,proto3" json:"node_id,omitempty"`
	// ID of this request
	RequestId uint32 `protobuf:"varint,2,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"`
	// Application-defined error code
	ErrorCode int32 `protobuf:"zigzag32,3,opt,name=error_code,json=errorCode,proto3" json:"error_code,omitempty"`
	// Application-defined error message
	ErrorMessage  string `protobuf:"bytes,4,opt,name=error_message,json=errorMessage,proto3" json:"error_message,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*SendAppErrorMsg) ProtoMessage() {}

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

func (x *SendAppErrorMsg) GetNodeId() []byte {
	if x != nil {
		return x.NodeId
	}
	return nil
}

func (x *SendAppErrorMsg) GetRequestId() uint32 {
	if x != nil {
		return x.RequestId
	}
	return 0
}

func (x *SendAppErrorMsg) GetErrorCode() int32 {
	if x != nil {
		return x.ErrorCode
	}
	return 0
}

func (x *SendAppErrorMsg) GetErrorMessage() string {
	if x != nil {
		return x.ErrorMessage
	}
	return ""
}

type SendAppGossipMsg struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// Who to send this message to
	NodeIds       [][]byte `protobuf:"bytes,1,rep,name=node_ids,json=nodeIds,proto3" json:"node_ids,omitempty"`
	Validators    uint64   `protobuf:"varint,2,opt,name=validators,proto3" json:"validators,omitempty"`
	NonValidators uint64   `protobuf:"varint,3,opt,name=non_validators,json=nonValidators,proto3" json:"non_validators,omitempty"`
	Peers         uint64   `protobuf:"varint,4,opt,name=peers,proto3" json:"peers,omitempty"`
	// The message body
	Msg           []byte `protobuf:"bytes,5,opt,name=msg,proto3" json:"msg,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*SendAppGossipMsg) ProtoMessage() {}

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

func (x *SendAppGossipMsg) GetNodeIds() [][]byte {
	if x != nil {
		return x.NodeIds
	}
	return nil
}

func (x *SendAppGossipMsg) GetValidators() uint64 {
	if x != nil {
		return x.Validators
	}
	return 0
}

func (x *SendAppGossipMsg) GetNonValidators() uint64 {
	if x != nil {
		return x.NonValidators
	}
	return 0
}

func (x *SendAppGossipMsg) GetPeers() uint64 {
	if x != nil {
		return x.Peers
	}
	return 0
}

func (x *SendAppGossipMsg) GetMsg() []byte {
	if x != nil {
		return x.Msg
	}
	return nil
}

var File_appsender_appsender_proto protoreflect.FileDescriptor

const file_appsender_appsender_proto_rawDesc = "" +
	"\n" +
	"\x19appsender/appsender.proto\x12\tappsender\x1a\x1bgoogle/protobuf/empty.proto\"g\n" +
	"\x11SendAppRequestMsg\x12\x19\n" +
	"\bnode_ids\x18\x01 \x03(\fR\anodeIds\x12\x1d\n" +
	"\n" +
	"request_id\x18\x02 \x01(\rR\trequestId\x12\x18\n" +
	"\arequest\x18\x03 \x01(\fR\arequest\"h\n" +
	"\x12SendAppResponseMsg\x12\x17\n" +
	"\anode_id\x18\x01 \x01(\fR\x06nodeId\x12\x1d\n" +
	"\n" +
	"request_id\x18\x02 \x01(\rR\trequestId\x12\x1a\n" +
	"\bresponse\x18\x03 \x01(\fR\bresponse\"\x8d\x01\n" +
	"\x0fSendAppErrorMsg\x12\x17\n" +
	"\anode_id\x18\x01 \x01(\fR\x06nodeId\x12\x1d\n" +
	"\n" +
	"request_id\x18\x02 \x01(\rR\trequestId\x12\x1d\n" +
	"\n" +
	"error_code\x18\x03 \x01(\x11R\terrorCode\x12#\n" +
	"\rerror_message\x18\x04 \x01(\tR\ferrorMessage\"\x9c\x01\n" +
	"\x10SendAppGossipMsg\x12\x19\n" +
	"\bnode_ids\x18\x01 \x03(\fR\anodeIds\x12\x1e\n" +
	"\n" +
	"validators\x18\x02 \x01(\x04R\n" +
	"validators\x12%\n" +
	"\x0enon_validators\x18\x03 \x01(\x04R\rnonValidators\x12\x14\n" +
	"\x05peers\x18\x04 \x01(\x04R\x05peers\x12\x10\n" +
	"\x03msg\x18\x05 \x01(\fR\x03msg2\xa7\x02\n" +
	"\tAppSender\x12F\n" +
	"\x0eSendAppRequest\x12\x1c.appsender.SendAppRequestMsg\x1a\x16.google.protobuf.Empty\x12H\n" +
	"\x0fSendAppResponse\x12\x1d.appsender.SendAppResponseMsg\x1a\x16.google.protobuf.Empty\x12B\n" +
	"\fSendAppError\x12\x1a.appsender.SendAppErrorMsg\x1a\x16.google.protobuf.Empty\x12D\n" +
	"\rSendAppGossip\x12\x1b.appsender.SendAppGossipMsg\x1a\x16.google.protobuf.EmptyB4Z2github.com/ava-labs/avalanchego/proto/pb/appsenderb\x06proto3"

var (
	file_appsender_appsender_proto_rawDescOnce sync.Once
	file_appsender_appsender_proto_rawDescData []byte
)

func file_appsender_appsender_proto_rawDescGZIP() []byte {
	file_appsender_appsender_proto_rawDescOnce.Do(func() {
		file_appsender_appsender_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_appsender_appsender_proto_rawDesc), len(file_appsender_appsender_proto_rawDesc)))
	})
	return file_appsender_appsender_proto_rawDescData
}

var file_appsender_appsender_proto_msgTypes = make([]protoimpl.MessageInfo, 4)
var file_appsender_appsender_proto_goTypes = []any{
	(*SendAppRequestMsg)(nil),  // 0: appsender.SendAppRequestMsg
	(*SendAppResponseMsg)(nil), // 1: appsender.SendAppResponseMsg
	(*SendAppErrorMsg)(nil),    // 2: appsender.SendAppErrorMsg
	(*SendAppGossipMsg)(nil),   // 3: appsender.SendAppGossipMsg
	(*emptypb.Empty)(nil),      // 4: google.protobuf.Empty
}
var file_appsender_appsender_proto_depIdxs = []int32{
	0, // 0: appsender.AppSender.SendAppRequest:input_type -> appsender.SendAppRequestMsg
	1, // 1: appsender.AppSender.SendAppResponse:input_type -> appsender.SendAppResponseMsg
	2, // 2: appsender.AppSender.SendAppError:input_type -> appsender.SendAppErrorMsg
	3, // 3: appsender.AppSender.SendAppGossip:input_type -> appsender.SendAppGossipMsg
	4, // 4: appsender.AppSender.SendAppRequest:output_type -> google.protobuf.Empty
	4, // 5: appsender.AppSender.SendAppResponse:output_type -> google.protobuf.Empty
	4, // 6: appsender.AppSender.SendAppError:output_type -> google.protobuf.Empty
	4, // 7: appsender.AppSender.SendAppGossip:output_type -> google.protobuf.Empty
	4, // [4:8] is the sub-list for method output_type
	0, // [0:4] 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_appsender_appsender_proto_init() }
func file_appsender_appsender_proto_init() {
	if File_appsender_appsender_proto != nil {
		return
	}
	type x struct{}
	out := protoimpl.TypeBuilder{
		File: protoimpl.DescBuilder{
			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
			RawDescriptor: unsafe.Slice(unsafe.StringData(file_appsender_appsender_proto_rawDesc), len(file_appsender_appsender_proto_rawDesc)),
			NumEnums:      0,
			NumMessages:   4,
			NumExtensions: 0,
			NumServices:   1,
		},
		GoTypes:           file_appsender_appsender_proto_goTypes,
		DependencyIndexes: file_appsender_appsender_proto_depIdxs,
		MessageInfos:      file_appsender_appsender_proto_msgTypes,
	}.Build()
	File_appsender_appsender_proto = out.File
	file_appsender_appsender_proto_goTypes = nil
	file_appsender_appsender_proto_depIdxs = nil
}
