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

package platformvm

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

type L1ValidatorRegistrationJustification struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// Types that are valid to be assigned to Preimage:
	//
	//	*L1ValidatorRegistrationJustification_ConvertSubnetToL1TxData
	//	*L1ValidatorRegistrationJustification_RegisterL1ValidatorMessage
	Preimage      isL1ValidatorRegistrationJustification_Preimage `protobuf_oneof:"preimage"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*L1ValidatorRegistrationJustification) ProtoMessage() {}

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

func (x *L1ValidatorRegistrationJustification) GetPreimage() isL1ValidatorRegistrationJustification_Preimage {
	if x != nil {
		return x.Preimage
	}
	return nil
}

func (x *L1ValidatorRegistrationJustification) GetConvertSubnetToL1TxData() *SubnetIDIndex {
	if x != nil {
		if x, ok := x.Preimage.(*L1ValidatorRegistrationJustification_ConvertSubnetToL1TxData); ok {
			return x.ConvertSubnetToL1TxData
		}
	}
	return nil
}

func (x *L1ValidatorRegistrationJustification) GetRegisterL1ValidatorMessage() []byte {
	if x != nil {
		if x, ok := x.Preimage.(*L1ValidatorRegistrationJustification_RegisterL1ValidatorMessage); ok {
			return x.RegisterL1ValidatorMessage
		}
	}
	return nil
}

type isL1ValidatorRegistrationJustification_Preimage interface {
	isL1ValidatorRegistrationJustification_Preimage()
}

type L1ValidatorRegistrationJustification_ConvertSubnetToL1TxData struct {
	// This should be set to obtain an attestation that a validator specified in
	// a ConvertSubnetToL1Tx has been removed from the validator set.
	ConvertSubnetToL1TxData *SubnetIDIndex `protobuf:"bytes,1,opt,name=convert_subnet_to_l1_tx_data,json=convertSubnetToL1TxData,proto3,oneof"`
}

type L1ValidatorRegistrationJustification_RegisterL1ValidatorMessage struct {
	// This should be set to a RegisterL1ValidatorMessage to obtain an
	// attestation that a validator is not currently registered and can never be
	// registered. This can be because the validator was successfully added and
	// then later removed, or because the validator was never added and the
	// registration expired.
	RegisterL1ValidatorMessage []byte `protobuf:"bytes,2,opt,name=register_l1_validator_message,json=registerL1ValidatorMessage,proto3,oneof"`
}

func (*L1ValidatorRegistrationJustification_ConvertSubnetToL1TxData) isL1ValidatorRegistrationJustification_Preimage() {
}

func (*L1ValidatorRegistrationJustification_RegisterL1ValidatorMessage) isL1ValidatorRegistrationJustification_Preimage() {
}

type SubnetIDIndex struct {
	state         protoimpl.MessageState `protogen:"open.v1"`
	SubnetId      []byte                 `protobuf:"bytes,1,opt,name=subnet_id,json=subnetId,proto3" json:"subnet_id,omitempty"`
	Index         uint32                 `protobuf:"varint,2,opt,name=index,proto3" json:"index,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*SubnetIDIndex) ProtoMessage() {}

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

func (x *SubnetIDIndex) GetSubnetId() []byte {
	if x != nil {
		return x.SubnetId
	}
	return nil
}

func (x *SubnetIDIndex) GetIndex() uint32 {
	if x != nil {
		return x.Index
	}
	return 0
}

var File_platformvm_platformvm_proto protoreflect.FileDescriptor

const file_platformvm_platformvm_proto_rawDesc = "" +
	"\n" +
	"\x1bplatformvm/platformvm.proto\x12\n" +
	"platformvm\"\xd3\x01\n" +
	"$L1ValidatorRegistrationJustification\x12Z\n" +
	"\x1cconvert_subnet_to_l1_tx_data\x18\x01 \x01(\v2\x19.platformvm.SubnetIDIndexH\x00R\x17convertSubnetToL1TxData\x12C\n" +
	"\x1dregister_l1_validator_message\x18\x02 \x01(\fH\x00R\x1aregisterL1ValidatorMessageB\n" +
	"\n" +
	"\bpreimage\"B\n" +
	"\rSubnetIDIndex\x12\x1b\n" +
	"\tsubnet_id\x18\x01 \x01(\fR\bsubnetId\x12\x14\n" +
	"\x05index\x18\x02 \x01(\rR\x05indexB5Z3github.com/ava-labs/avalanchego/proto/pb/platformvmb\x06proto3"

var (
	file_platformvm_platformvm_proto_rawDescOnce sync.Once
	file_platformvm_platformvm_proto_rawDescData []byte
)

func file_platformvm_platformvm_proto_rawDescGZIP() []byte {
	file_platformvm_platformvm_proto_rawDescOnce.Do(func() {
		file_platformvm_platformvm_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_platformvm_platformvm_proto_rawDesc), len(file_platformvm_platformvm_proto_rawDesc)))
	})
	return file_platformvm_platformvm_proto_rawDescData
}

var file_platformvm_platformvm_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
var file_platformvm_platformvm_proto_goTypes = []any{
	(*L1ValidatorRegistrationJustification)(nil), // 0: platformvm.L1ValidatorRegistrationJustification
	(*SubnetIDIndex)(nil),                        // 1: platformvm.SubnetIDIndex
}
var file_platformvm_platformvm_proto_depIdxs = []int32{
	1, // 0: platformvm.L1ValidatorRegistrationJustification.convert_subnet_to_l1_tx_data:type_name -> platformvm.SubnetIDIndex
	1, // [1:1] is the sub-list for method output_type
	1, // [1:1] 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_platformvm_platformvm_proto_init() }
func file_platformvm_platformvm_proto_init() {
	if File_platformvm_platformvm_proto != nil {
		return
	}
	file_platformvm_platformvm_proto_msgTypes[0].OneofWrappers = []any{
		(*L1ValidatorRegistrationJustification_ConvertSubnetToL1TxData)(nil),
		(*L1ValidatorRegistrationJustification_RegisterL1ValidatorMessage)(nil),
	}
	type x struct{}
	out := protoimpl.TypeBuilder{
		File: protoimpl.DescBuilder{
			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
			RawDescriptor: unsafe.Slice(unsafe.StringData(file_platformvm_platformvm_proto_rawDesc), len(file_platformvm_platformvm_proto_rawDesc)),
			NumEnums:      0,
			NumMessages:   2,
			NumExtensions: 0,
			NumServices:   0,
		},
		GoTypes:           file_platformvm_platformvm_proto_goTypes,
		DependencyIndexes: file_platformvm_platformvm_proto_depIdxs,
		MessageInfos:      file_platformvm_platformvm_proto_msgTypes,
	}.Build()
	File_platformvm_platformvm_proto = out.File
	file_platformvm_platformvm_proto_goTypes = nil
	file_platformvm_platformvm_proto_depIdxs = nil
}
