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

package proposervm

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

// Request to get the current proposed block height.
type GetProposedHeightRequest struct {
	state         protoimpl.MessageState `protogen:"open.v1"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*GetProposedHeightRequest) ProtoMessage() {}

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

// Response containing the current proposed P-chain block height.
type GetProposedHeightReply struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// The P-chain height that would be included in a block if it were proposed
	// right now.
	Height        uint64 `protobuf:"varint,1,opt,name=height,proto3" json:"height,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*GetProposedHeightReply) ProtoMessage() {}

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

func (x *GetProposedHeightReply) GetHeight() uint64 {
	if x != nil {
		return x.Height
	}
	return 0
}

// Request to get the current epoch.
type GetCurrentEpochRequest struct {
	state         protoimpl.MessageState `protogen:"open.v1"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*GetCurrentEpochRequest) ProtoMessage() {}

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

// Response containing the current epoch.
type GetCurrentEpochReply struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// Number of the current epoch.
	Number uint64 `protobuf:"varint,1,opt,name=number,proto3" json:"number,omitempty"`
	// P-chain height which used to verify ICM messages for this epoch.
	PChainHeight uint64 `protobuf:"varint,2,opt,name=p_chain_height,json=pChainHeight,proto3" json:"p_chain_height,omitempty"`
	// Start time of this epoch in Unix time (seconds).
	StartTime     int64 `protobuf:"varint,3,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*GetCurrentEpochReply) ProtoMessage() {}

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

func (x *GetCurrentEpochReply) GetNumber() uint64 {
	if x != nil {
		return x.Number
	}
	return 0
}

func (x *GetCurrentEpochReply) GetPChainHeight() uint64 {
	if x != nil {
		return x.PChainHeight
	}
	return 0
}

func (x *GetCurrentEpochReply) GetStartTime() int64 {
	if x != nil {
		return x.StartTime
	}
	return 0
}

var File_proposervm_service_proto protoreflect.FileDescriptor

const file_proposervm_service_proto_rawDesc = "" +
	"\n" +
	"\x18proposervm/service.proto\x12\n" +
	"proposervm\"\x1a\n" +
	"\x18GetProposedHeightRequest\"0\n" +
	"\x16GetProposedHeightReply\x12\x16\n" +
	"\x06height\x18\x01 \x01(\x04R\x06height\"\x18\n" +
	"\x16GetCurrentEpochRequest\"s\n" +
	"\x14GetCurrentEpochReply\x12\x16\n" +
	"\x06number\x18\x01 \x01(\x04R\x06number\x12$\n" +
	"\x0ep_chain_height\x18\x02 \x01(\x04R\fpChainHeight\x12\x1d\n" +
	"\n" +
	"start_time\x18\x03 \x01(\x03R\tstartTime2\xc4\x01\n" +
	"\n" +
	"ProposerVM\x12]\n" +
	"\x11GetProposedHeight\x12$.proposervm.GetProposedHeightRequest\x1a\".proposervm.GetProposedHeightReply\x12W\n" +
	"\x0fGetCurrentEpoch\x12\".proposervm.GetCurrentEpochRequest\x1a .proposervm.GetCurrentEpochReplyB<Z:github.com/ava-labs/avalanchego/connectproto/pb/proposervmb\x06proto3"

var (
	file_proposervm_service_proto_rawDescOnce sync.Once
	file_proposervm_service_proto_rawDescData []byte
)

func file_proposervm_service_proto_rawDescGZIP() []byte {
	file_proposervm_service_proto_rawDescOnce.Do(func() {
		file_proposervm_service_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_proposervm_service_proto_rawDesc), len(file_proposervm_service_proto_rawDesc)))
	})
	return file_proposervm_service_proto_rawDescData
}

var file_proposervm_service_proto_msgTypes = make([]protoimpl.MessageInfo, 4)
var file_proposervm_service_proto_goTypes = []any{
	(*GetProposedHeightRequest)(nil), // 0: proposervm.GetProposedHeightRequest
	(*GetProposedHeightReply)(nil),   // 1: proposervm.GetProposedHeightReply
	(*GetCurrentEpochRequest)(nil),   // 2: proposervm.GetCurrentEpochRequest
	(*GetCurrentEpochReply)(nil),     // 3: proposervm.GetCurrentEpochReply
}
var file_proposervm_service_proto_depIdxs = []int32{
	0, // 0: proposervm.ProposerVM.GetProposedHeight:input_type -> proposervm.GetProposedHeightRequest
	2, // 1: proposervm.ProposerVM.GetCurrentEpoch:input_type -> proposervm.GetCurrentEpochRequest
	1, // 2: proposervm.ProposerVM.GetProposedHeight:output_type -> proposervm.GetProposedHeightReply
	3, // 3: proposervm.ProposerVM.GetCurrentEpoch:output_type -> proposervm.GetCurrentEpochReply
	2, // [2:4] is the sub-list for method output_type
	0, // [0:2] 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_proposervm_service_proto_init() }
func file_proposervm_service_proto_init() {
	if File_proposervm_service_proto != nil {
		return
	}
	type x struct{}
	out := protoimpl.TypeBuilder{
		File: protoimpl.DescBuilder{
			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
			RawDescriptor: unsafe.Slice(unsafe.StringData(file_proposervm_service_proto_rawDesc), len(file_proposervm_service_proto_rawDesc)),
			NumEnums:      0,
			NumMessages:   4,
			NumExtensions: 0,
			NumServices:   1,
		},
		GoTypes:           file_proposervm_service_proto_goTypes,
		DependencyIndexes: file_proposervm_service_proto_depIdxs,
		MessageInfos:      file_proposervm_service_proto_msgTypes,
	}.Build()
	File_proposervm_service_proto = out.File
	file_proposervm_service_proto_goTypes = nil
	file_proposervm_service_proto_depIdxs = nil
}
