// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// 	protoc-gen-go v1.36.11
// 	protoc        v3.21.12
// source: stateservice.proto

package lnrpc

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 WalletState int32

const (
	// NON_EXISTING means that the wallet has not yet been initialized.
	WalletState_NON_EXISTING WalletState = 0
	// LOCKED means that the wallet is locked and requires a password to unlock.
	WalletState_LOCKED WalletState = 1
	// UNLOCKED means that the wallet was unlocked successfully, but RPC server
	// isn't ready.
	WalletState_UNLOCKED WalletState = 2
	// RPC_ACTIVE means that the lnd server is active but not fully ready for
	// calls.
	WalletState_RPC_ACTIVE WalletState = 3
	// SERVER_ACTIVE means that the lnd server is ready to accept calls.
	WalletState_SERVER_ACTIVE WalletState = 4
	// WAITING_TO_START means that node is waiting to become the leader in a
	// cluster and is not started yet.
	WalletState_WAITING_TO_START WalletState = 255
)

// Enum value maps for WalletState.
var (
	WalletState_name = map[int32]string{
		0:   "NON_EXISTING",
		1:   "LOCKED",
		2:   "UNLOCKED",
		3:   "RPC_ACTIVE",
		4:   "SERVER_ACTIVE",
		255: "WAITING_TO_START",
	}
	WalletState_value = map[string]int32{
		"NON_EXISTING":     0,
		"LOCKED":           1,
		"UNLOCKED":         2,
		"RPC_ACTIVE":       3,
		"SERVER_ACTIVE":    4,
		"WAITING_TO_START": 255,
	}
)

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

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

func (WalletState) Descriptor() protoreflect.EnumDescriptor {
	return file_stateservice_proto_enumTypes[0].Descriptor()
}

func (WalletState) Type() protoreflect.EnumType {
	return &file_stateservice_proto_enumTypes[0]
}

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

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

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

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

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

func (*SubscribeStateRequest) ProtoMessage() {}

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

type SubscribeStateResponse struct {
	state         protoimpl.MessageState `protogen:"open.v1"`
	State         WalletState            `protobuf:"varint,1,opt,name=state,proto3,enum=lnrpc.WalletState" json:"state,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*SubscribeStateResponse) ProtoMessage() {}

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

func (x *SubscribeStateResponse) GetState() WalletState {
	if x != nil {
		return x.State
	}
	return WalletState_NON_EXISTING
}

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

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

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

func (*GetStateRequest) ProtoMessage() {}

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

type GetStateResponse struct {
	state         protoimpl.MessageState `protogen:"open.v1"`
	State         WalletState            `protobuf:"varint,1,opt,name=state,proto3,enum=lnrpc.WalletState" json:"state,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*GetStateResponse) ProtoMessage() {}

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

func (x *GetStateResponse) GetState() WalletState {
	if x != nil {
		return x.State
	}
	return WalletState_NON_EXISTING
}

var File_stateservice_proto protoreflect.FileDescriptor

const file_stateservice_proto_rawDesc = "" +
	"\n" +
	"\x12stateservice.proto\x12\x05lnrpc\"\x17\n" +
	"\x15SubscribeStateRequest\"B\n" +
	"\x16SubscribeStateResponse\x12(\n" +
	"\x05state\x18\x01 \x01(\x0e2\x12.lnrpc.WalletStateR\x05state\"\x11\n" +
	"\x0fGetStateRequest\"<\n" +
	"\x10GetStateResponse\x12(\n" +
	"\x05state\x18\x01 \x01(\x0e2\x12.lnrpc.WalletStateR\x05state*s\n" +
	"\vWalletState\x12\x10\n" +
	"\fNON_EXISTING\x10\x00\x12\n" +
	"\n" +
	"\x06LOCKED\x10\x01\x12\f\n" +
	"\bUNLOCKED\x10\x02\x12\x0e\n" +
	"\n" +
	"RPC_ACTIVE\x10\x03\x12\x11\n" +
	"\rSERVER_ACTIVE\x10\x04\x12\x15\n" +
	"\x10WAITING_TO_START\x10\xff\x012\x95\x01\n" +
	"\x05State\x12O\n" +
	"\x0eSubscribeState\x12\x1c.lnrpc.SubscribeStateRequest\x1a\x1d.lnrpc.SubscribeStateResponse0\x01\x12;\n" +
	"\bGetState\x12\x16.lnrpc.GetStateRequest\x1a\x17.lnrpc.GetStateResponseB'Z%github.com/lightningnetwork/lnd/lnrpcb\x06proto3"

var (
	file_stateservice_proto_rawDescOnce sync.Once
	file_stateservice_proto_rawDescData []byte
)

func file_stateservice_proto_rawDescGZIP() []byte {
	file_stateservice_proto_rawDescOnce.Do(func() {
		file_stateservice_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_stateservice_proto_rawDesc), len(file_stateservice_proto_rawDesc)))
	})
	return file_stateservice_proto_rawDescData
}

var file_stateservice_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
var file_stateservice_proto_msgTypes = make([]protoimpl.MessageInfo, 4)
var file_stateservice_proto_goTypes = []any{
	(WalletState)(0),               // 0: lnrpc.WalletState
	(*SubscribeStateRequest)(nil),  // 1: lnrpc.SubscribeStateRequest
	(*SubscribeStateResponse)(nil), // 2: lnrpc.SubscribeStateResponse
	(*GetStateRequest)(nil),        // 3: lnrpc.GetStateRequest
	(*GetStateResponse)(nil),       // 4: lnrpc.GetStateResponse
}
var file_stateservice_proto_depIdxs = []int32{
	0, // 0: lnrpc.SubscribeStateResponse.state:type_name -> lnrpc.WalletState
	0, // 1: lnrpc.GetStateResponse.state:type_name -> lnrpc.WalletState
	1, // 2: lnrpc.State.SubscribeState:input_type -> lnrpc.SubscribeStateRequest
	3, // 3: lnrpc.State.GetState:input_type -> lnrpc.GetStateRequest
	2, // 4: lnrpc.State.SubscribeState:output_type -> lnrpc.SubscribeStateResponse
	4, // 5: lnrpc.State.GetState:output_type -> lnrpc.GetStateResponse
	4, // [4:6] is the sub-list for method output_type
	2, // [2:4] is the sub-list for method input_type
	2, // [2:2] is the sub-list for extension type_name
	2, // [2:2] is the sub-list for extension extendee
	0, // [0:2] is the sub-list for field type_name
}

func init() { file_stateservice_proto_init() }
func file_stateservice_proto_init() {
	if File_stateservice_proto != nil {
		return
	}
	type x struct{}
	out := protoimpl.TypeBuilder{
		File: protoimpl.DescBuilder{
			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
			RawDescriptor: unsafe.Slice(unsafe.StringData(file_stateservice_proto_rawDesc), len(file_stateservice_proto_rawDesc)),
			NumEnums:      1,
			NumMessages:   4,
			NumExtensions: 0,
			NumServices:   1,
		},
		GoTypes:           file_stateservice_proto_goTypes,
		DependencyIndexes: file_stateservice_proto_depIdxs,
		EnumInfos:         file_stateservice_proto_enumTypes,
		MessageInfos:      file_stateservice_proto_msgTypes,
	}.Build()
	File_stateservice_proto = out.File
	file_stateservice_proto_goTypes = nil
	file_stateservice_proto_depIdxs = nil
}
