github.com/decred/dcrlnd@v0.7.6/lnrpc/invoicesrpc/invoices.pb.go (about)

     1  // Code generated by protoc-gen-go. DO NOT EDIT.
     2  // versions:
     3  // 	protoc-gen-go v1.31.0
     4  // 	protoc        v3.4.0
     5  // source: invoicesrpc/invoices.proto
     6  
     7  package invoicesrpc
     8  
     9  import (
    10  	context "context"
    11  	lnrpc "github.com/decred/dcrlnd/lnrpc"
    12  	grpc "google.golang.org/grpc"
    13  	codes "google.golang.org/grpc/codes"
    14  	status "google.golang.org/grpc/status"
    15  	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
    16  	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
    17  	reflect "reflect"
    18  	sync "sync"
    19  )
    20  
    21  const (
    22  	// Verify that this generated code is sufficiently up-to-date.
    23  	_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
    24  	// Verify that runtime/protoimpl is sufficiently up-to-date.
    25  	_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
    26  )
    27  
    28  type LookupModifier int32
    29  
    30  const (
    31  	// The default look up modifier, no look up behavior is changed.
    32  	LookupModifier_DEFAULT LookupModifier = 0
    33  	// Indicates that when a look up is done based on a set_id, then only that set
    34  	// of HTLCs related to that set ID should be returned.
    35  	LookupModifier_HTLC_SET_ONLY LookupModifier = 1
    36  	// Indicates that when a look up is done using a payment_addr, then no HTLCs
    37  	// related to the payment_addr should be returned. This is useful when one
    38  	// wants to be able to obtain the set of associated setIDs with a given
    39  	// invoice, then look up the sub-invoices "projected" by that set ID.
    40  	LookupModifier_HTLC_SET_BLANK LookupModifier = 2
    41  )
    42  
    43  // Enum value maps for LookupModifier.
    44  var (
    45  	LookupModifier_name = map[int32]string{
    46  		0: "DEFAULT",
    47  		1: "HTLC_SET_ONLY",
    48  		2: "HTLC_SET_BLANK",
    49  	}
    50  	LookupModifier_value = map[string]int32{
    51  		"DEFAULT":        0,
    52  		"HTLC_SET_ONLY":  1,
    53  		"HTLC_SET_BLANK": 2,
    54  	}
    55  )
    56  
    57  func (x LookupModifier) Enum() *LookupModifier {
    58  	p := new(LookupModifier)
    59  	*p = x
    60  	return p
    61  }
    62  
    63  func (x LookupModifier) String() string {
    64  	return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
    65  }
    66  
    67  func (LookupModifier) Descriptor() protoreflect.EnumDescriptor {
    68  	return file_invoicesrpc_invoices_proto_enumTypes[0].Descriptor()
    69  }
    70  
    71  func (LookupModifier) Type() protoreflect.EnumType {
    72  	return &file_invoicesrpc_invoices_proto_enumTypes[0]
    73  }
    74  
    75  func (x LookupModifier) Number() protoreflect.EnumNumber {
    76  	return protoreflect.EnumNumber(x)
    77  }
    78  
    79  // Deprecated: Use LookupModifier.Descriptor instead.
    80  func (LookupModifier) EnumDescriptor() ([]byte, []int) {
    81  	return file_invoicesrpc_invoices_proto_rawDescGZIP(), []int{0}
    82  }
    83  
    84  type CancelInvoiceMsg struct {
    85  	state         protoimpl.MessageState
    86  	sizeCache     protoimpl.SizeCache
    87  	unknownFields protoimpl.UnknownFields
    88  
    89  	// Hash corresponding to the (hold) invoice to cancel.
    90  	PaymentHash []byte `protobuf:"bytes,1,opt,name=payment_hash,json=paymentHash,proto3" json:"payment_hash,omitempty"`
    91  }
    92  
    93  func (x *CancelInvoiceMsg) Reset() {
    94  	*x = CancelInvoiceMsg{}
    95  	if protoimpl.UnsafeEnabled {
    96  		mi := &file_invoicesrpc_invoices_proto_msgTypes[0]
    97  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    98  		ms.StoreMessageInfo(mi)
    99  	}
   100  }
   101  
   102  func (x *CancelInvoiceMsg) String() string {
   103  	return protoimpl.X.MessageStringOf(x)
   104  }
   105  
   106  func (*CancelInvoiceMsg) ProtoMessage() {}
   107  
   108  func (x *CancelInvoiceMsg) ProtoReflect() protoreflect.Message {
   109  	mi := &file_invoicesrpc_invoices_proto_msgTypes[0]
   110  	if protoimpl.UnsafeEnabled && x != nil {
   111  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   112  		if ms.LoadMessageInfo() == nil {
   113  			ms.StoreMessageInfo(mi)
   114  		}
   115  		return ms
   116  	}
   117  	return mi.MessageOf(x)
   118  }
   119  
   120  // Deprecated: Use CancelInvoiceMsg.ProtoReflect.Descriptor instead.
   121  func (*CancelInvoiceMsg) Descriptor() ([]byte, []int) {
   122  	return file_invoicesrpc_invoices_proto_rawDescGZIP(), []int{0}
   123  }
   124  
   125  func (x *CancelInvoiceMsg) GetPaymentHash() []byte {
   126  	if x != nil {
   127  		return x.PaymentHash
   128  	}
   129  	return nil
   130  }
   131  
   132  type CancelInvoiceResp struct {
   133  	state         protoimpl.MessageState
   134  	sizeCache     protoimpl.SizeCache
   135  	unknownFields protoimpl.UnknownFields
   136  }
   137  
   138  func (x *CancelInvoiceResp) Reset() {
   139  	*x = CancelInvoiceResp{}
   140  	if protoimpl.UnsafeEnabled {
   141  		mi := &file_invoicesrpc_invoices_proto_msgTypes[1]
   142  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   143  		ms.StoreMessageInfo(mi)
   144  	}
   145  }
   146  
   147  func (x *CancelInvoiceResp) String() string {
   148  	return protoimpl.X.MessageStringOf(x)
   149  }
   150  
   151  func (*CancelInvoiceResp) ProtoMessage() {}
   152  
   153  func (x *CancelInvoiceResp) ProtoReflect() protoreflect.Message {
   154  	mi := &file_invoicesrpc_invoices_proto_msgTypes[1]
   155  	if protoimpl.UnsafeEnabled && x != nil {
   156  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   157  		if ms.LoadMessageInfo() == nil {
   158  			ms.StoreMessageInfo(mi)
   159  		}
   160  		return ms
   161  	}
   162  	return mi.MessageOf(x)
   163  }
   164  
   165  // Deprecated: Use CancelInvoiceResp.ProtoReflect.Descriptor instead.
   166  func (*CancelInvoiceResp) Descriptor() ([]byte, []int) {
   167  	return file_invoicesrpc_invoices_proto_rawDescGZIP(), []int{1}
   168  }
   169  
   170  type AddHoldInvoiceRequest struct {
   171  	state         protoimpl.MessageState
   172  	sizeCache     protoimpl.SizeCache
   173  	unknownFields protoimpl.UnknownFields
   174  
   175  	// An optional memo to attach along with the invoice. Used for record keeping
   176  	// purposes for the invoice's creator, and will also be set in the description
   177  	// field of the encoded payment request if the description_hash field is not
   178  	// being used.
   179  	Memo string `protobuf:"bytes,1,opt,name=memo,proto3" json:"memo,omitempty"`
   180  	// The hash of the preimage
   181  	Hash []byte `protobuf:"bytes,2,opt,name=hash,proto3" json:"hash,omitempty"`
   182  	// The value of this invoice in atoms.
   183  	//
   184  	// The fields value and value_m_atoms are mutually exclusive.
   185  	Value int64 `protobuf:"varint,3,opt,name=value,proto3" json:"value,omitempty"`
   186  	// The value of this invoice in milliatoms.
   187  	//
   188  	// The fields value and value_m_atoms are mutually exclusive.
   189  	ValueMAtoms int64 `protobuf:"varint,10,opt,name=value_m_atoms,json=valueMAtoms,proto3" json:"value_m_atoms,omitempty"`
   190  	// Hash (SHA-256) of a description of the payment. Used if the description of
   191  	// payment (memo) is too long to naturally fit within the description field
   192  	// of an encoded payment request.
   193  	DescriptionHash []byte `protobuf:"bytes,4,opt,name=description_hash,json=descriptionHash,proto3" json:"description_hash,omitempty"`
   194  	// Payment request expiry time in seconds. Default is 3600 (1 hour).
   195  	Expiry int64 `protobuf:"varint,5,opt,name=expiry,proto3" json:"expiry,omitempty"`
   196  	// Fallback on-chain address.
   197  	FallbackAddr string `protobuf:"bytes,6,opt,name=fallback_addr,json=fallbackAddr,proto3" json:"fallback_addr,omitempty"`
   198  	// Delta to use for the time-lock of the CLTV extended to the final hop.
   199  	CltvExpiry uint64 `protobuf:"varint,7,opt,name=cltv_expiry,json=cltvExpiry,proto3" json:"cltv_expiry,omitempty"`
   200  	// Route hints that can each be individually used to assist in reaching the
   201  	// invoice's destination.
   202  	RouteHints []*lnrpc.RouteHint `protobuf:"bytes,8,rep,name=route_hints,json=routeHints,proto3" json:"route_hints,omitempty"`
   203  	// Whether this invoice should include routing hints for private channels.
   204  	Private bool `protobuf:"varint,9,opt,name=private,proto3" json:"private,omitempty"`
   205  }
   206  
   207  func (x *AddHoldInvoiceRequest) Reset() {
   208  	*x = AddHoldInvoiceRequest{}
   209  	if protoimpl.UnsafeEnabled {
   210  		mi := &file_invoicesrpc_invoices_proto_msgTypes[2]
   211  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   212  		ms.StoreMessageInfo(mi)
   213  	}
   214  }
   215  
   216  func (x *AddHoldInvoiceRequest) String() string {
   217  	return protoimpl.X.MessageStringOf(x)
   218  }
   219  
   220  func (*AddHoldInvoiceRequest) ProtoMessage() {}
   221  
   222  func (x *AddHoldInvoiceRequest) ProtoReflect() protoreflect.Message {
   223  	mi := &file_invoicesrpc_invoices_proto_msgTypes[2]
   224  	if protoimpl.UnsafeEnabled && x != nil {
   225  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   226  		if ms.LoadMessageInfo() == nil {
   227  			ms.StoreMessageInfo(mi)
   228  		}
   229  		return ms
   230  	}
   231  	return mi.MessageOf(x)
   232  }
   233  
   234  // Deprecated: Use AddHoldInvoiceRequest.ProtoReflect.Descriptor instead.
   235  func (*AddHoldInvoiceRequest) Descriptor() ([]byte, []int) {
   236  	return file_invoicesrpc_invoices_proto_rawDescGZIP(), []int{2}
   237  }
   238  
   239  func (x *AddHoldInvoiceRequest) GetMemo() string {
   240  	if x != nil {
   241  		return x.Memo
   242  	}
   243  	return ""
   244  }
   245  
   246  func (x *AddHoldInvoiceRequest) GetHash() []byte {
   247  	if x != nil {
   248  		return x.Hash
   249  	}
   250  	return nil
   251  }
   252  
   253  func (x *AddHoldInvoiceRequest) GetValue() int64 {
   254  	if x != nil {
   255  		return x.Value
   256  	}
   257  	return 0
   258  }
   259  
   260  func (x *AddHoldInvoiceRequest) GetValueMAtoms() int64 {
   261  	if x != nil {
   262  		return x.ValueMAtoms
   263  	}
   264  	return 0
   265  }
   266  
   267  func (x *AddHoldInvoiceRequest) GetDescriptionHash() []byte {
   268  	if x != nil {
   269  		return x.DescriptionHash
   270  	}
   271  	return nil
   272  }
   273  
   274  func (x *AddHoldInvoiceRequest) GetExpiry() int64 {
   275  	if x != nil {
   276  		return x.Expiry
   277  	}
   278  	return 0
   279  }
   280  
   281  func (x *AddHoldInvoiceRequest) GetFallbackAddr() string {
   282  	if x != nil {
   283  		return x.FallbackAddr
   284  	}
   285  	return ""
   286  }
   287  
   288  func (x *AddHoldInvoiceRequest) GetCltvExpiry() uint64 {
   289  	if x != nil {
   290  		return x.CltvExpiry
   291  	}
   292  	return 0
   293  }
   294  
   295  func (x *AddHoldInvoiceRequest) GetRouteHints() []*lnrpc.RouteHint {
   296  	if x != nil {
   297  		return x.RouteHints
   298  	}
   299  	return nil
   300  }
   301  
   302  func (x *AddHoldInvoiceRequest) GetPrivate() bool {
   303  	if x != nil {
   304  		return x.Private
   305  	}
   306  	return false
   307  }
   308  
   309  type AddHoldInvoiceResp struct {
   310  	state         protoimpl.MessageState
   311  	sizeCache     protoimpl.SizeCache
   312  	unknownFields protoimpl.UnknownFields
   313  
   314  	// A bare-bones invoice for a payment within the Lightning Network. With the
   315  	// details of the invoice, the sender has all the data necessary to send a
   316  	// payment to the recipient.
   317  	PaymentRequest string `protobuf:"bytes,1,opt,name=payment_request,json=paymentRequest,proto3" json:"payment_request,omitempty"`
   318  	// The "add" index of this invoice. Each newly created invoice will increment
   319  	// this index making it monotonically increasing. Callers to the
   320  	// SubscribeInvoices call can use this to instantly get notified of all added
   321  	// invoices with an add_index greater than this one.
   322  	AddIndex uint64 `protobuf:"varint,2,opt,name=add_index,json=addIndex,proto3" json:"add_index,omitempty"`
   323  	// The payment address of the generated invoice. This value should be used
   324  	// in all payments for this invoice as we require it for end to end
   325  	// security.
   326  	PaymentAddr []byte `protobuf:"bytes,3,opt,name=payment_addr,json=paymentAddr,proto3" json:"payment_addr,omitempty"`
   327  }
   328  
   329  func (x *AddHoldInvoiceResp) Reset() {
   330  	*x = AddHoldInvoiceResp{}
   331  	if protoimpl.UnsafeEnabled {
   332  		mi := &file_invoicesrpc_invoices_proto_msgTypes[3]
   333  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   334  		ms.StoreMessageInfo(mi)
   335  	}
   336  }
   337  
   338  func (x *AddHoldInvoiceResp) String() string {
   339  	return protoimpl.X.MessageStringOf(x)
   340  }
   341  
   342  func (*AddHoldInvoiceResp) ProtoMessage() {}
   343  
   344  func (x *AddHoldInvoiceResp) ProtoReflect() protoreflect.Message {
   345  	mi := &file_invoicesrpc_invoices_proto_msgTypes[3]
   346  	if protoimpl.UnsafeEnabled && x != nil {
   347  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   348  		if ms.LoadMessageInfo() == nil {
   349  			ms.StoreMessageInfo(mi)
   350  		}
   351  		return ms
   352  	}
   353  	return mi.MessageOf(x)
   354  }
   355  
   356  // Deprecated: Use AddHoldInvoiceResp.ProtoReflect.Descriptor instead.
   357  func (*AddHoldInvoiceResp) Descriptor() ([]byte, []int) {
   358  	return file_invoicesrpc_invoices_proto_rawDescGZIP(), []int{3}
   359  }
   360  
   361  func (x *AddHoldInvoiceResp) GetPaymentRequest() string {
   362  	if x != nil {
   363  		return x.PaymentRequest
   364  	}
   365  	return ""
   366  }
   367  
   368  func (x *AddHoldInvoiceResp) GetAddIndex() uint64 {
   369  	if x != nil {
   370  		return x.AddIndex
   371  	}
   372  	return 0
   373  }
   374  
   375  func (x *AddHoldInvoiceResp) GetPaymentAddr() []byte {
   376  	if x != nil {
   377  		return x.PaymentAddr
   378  	}
   379  	return nil
   380  }
   381  
   382  type SettleInvoiceMsg struct {
   383  	state         protoimpl.MessageState
   384  	sizeCache     protoimpl.SizeCache
   385  	unknownFields protoimpl.UnknownFields
   386  
   387  	// Externally discovered pre-image that should be used to settle the hold
   388  	// invoice.
   389  	Preimage []byte `protobuf:"bytes,1,opt,name=preimage,proto3" json:"preimage,omitempty"`
   390  }
   391  
   392  func (x *SettleInvoiceMsg) Reset() {
   393  	*x = SettleInvoiceMsg{}
   394  	if protoimpl.UnsafeEnabled {
   395  		mi := &file_invoicesrpc_invoices_proto_msgTypes[4]
   396  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   397  		ms.StoreMessageInfo(mi)
   398  	}
   399  }
   400  
   401  func (x *SettleInvoiceMsg) String() string {
   402  	return protoimpl.X.MessageStringOf(x)
   403  }
   404  
   405  func (*SettleInvoiceMsg) ProtoMessage() {}
   406  
   407  func (x *SettleInvoiceMsg) ProtoReflect() protoreflect.Message {
   408  	mi := &file_invoicesrpc_invoices_proto_msgTypes[4]
   409  	if protoimpl.UnsafeEnabled && x != nil {
   410  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   411  		if ms.LoadMessageInfo() == nil {
   412  			ms.StoreMessageInfo(mi)
   413  		}
   414  		return ms
   415  	}
   416  	return mi.MessageOf(x)
   417  }
   418  
   419  // Deprecated: Use SettleInvoiceMsg.ProtoReflect.Descriptor instead.
   420  func (*SettleInvoiceMsg) Descriptor() ([]byte, []int) {
   421  	return file_invoicesrpc_invoices_proto_rawDescGZIP(), []int{4}
   422  }
   423  
   424  func (x *SettleInvoiceMsg) GetPreimage() []byte {
   425  	if x != nil {
   426  		return x.Preimage
   427  	}
   428  	return nil
   429  }
   430  
   431  type SettleInvoiceResp struct {
   432  	state         protoimpl.MessageState
   433  	sizeCache     protoimpl.SizeCache
   434  	unknownFields protoimpl.UnknownFields
   435  }
   436  
   437  func (x *SettleInvoiceResp) Reset() {
   438  	*x = SettleInvoiceResp{}
   439  	if protoimpl.UnsafeEnabled {
   440  		mi := &file_invoicesrpc_invoices_proto_msgTypes[5]
   441  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   442  		ms.StoreMessageInfo(mi)
   443  	}
   444  }
   445  
   446  func (x *SettleInvoiceResp) String() string {
   447  	return protoimpl.X.MessageStringOf(x)
   448  }
   449  
   450  func (*SettleInvoiceResp) ProtoMessage() {}
   451  
   452  func (x *SettleInvoiceResp) ProtoReflect() protoreflect.Message {
   453  	mi := &file_invoicesrpc_invoices_proto_msgTypes[5]
   454  	if protoimpl.UnsafeEnabled && x != nil {
   455  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   456  		if ms.LoadMessageInfo() == nil {
   457  			ms.StoreMessageInfo(mi)
   458  		}
   459  		return ms
   460  	}
   461  	return mi.MessageOf(x)
   462  }
   463  
   464  // Deprecated: Use SettleInvoiceResp.ProtoReflect.Descriptor instead.
   465  func (*SettleInvoiceResp) Descriptor() ([]byte, []int) {
   466  	return file_invoicesrpc_invoices_proto_rawDescGZIP(), []int{5}
   467  }
   468  
   469  type SubscribeSingleInvoiceRequest struct {
   470  	state         protoimpl.MessageState
   471  	sizeCache     protoimpl.SizeCache
   472  	unknownFields protoimpl.UnknownFields
   473  
   474  	// Hash corresponding to the (hold) invoice to subscribe to.
   475  	RHash []byte `protobuf:"bytes,2,opt,name=r_hash,json=rHash,proto3" json:"r_hash,omitempty"`
   476  }
   477  
   478  func (x *SubscribeSingleInvoiceRequest) Reset() {
   479  	*x = SubscribeSingleInvoiceRequest{}
   480  	if protoimpl.UnsafeEnabled {
   481  		mi := &file_invoicesrpc_invoices_proto_msgTypes[6]
   482  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   483  		ms.StoreMessageInfo(mi)
   484  	}
   485  }
   486  
   487  func (x *SubscribeSingleInvoiceRequest) String() string {
   488  	return protoimpl.X.MessageStringOf(x)
   489  }
   490  
   491  func (*SubscribeSingleInvoiceRequest) ProtoMessage() {}
   492  
   493  func (x *SubscribeSingleInvoiceRequest) ProtoReflect() protoreflect.Message {
   494  	mi := &file_invoicesrpc_invoices_proto_msgTypes[6]
   495  	if protoimpl.UnsafeEnabled && x != nil {
   496  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   497  		if ms.LoadMessageInfo() == nil {
   498  			ms.StoreMessageInfo(mi)
   499  		}
   500  		return ms
   501  	}
   502  	return mi.MessageOf(x)
   503  }
   504  
   505  // Deprecated: Use SubscribeSingleInvoiceRequest.ProtoReflect.Descriptor instead.
   506  func (*SubscribeSingleInvoiceRequest) Descriptor() ([]byte, []int) {
   507  	return file_invoicesrpc_invoices_proto_rawDescGZIP(), []int{6}
   508  }
   509  
   510  func (x *SubscribeSingleInvoiceRequest) GetRHash() []byte {
   511  	if x != nil {
   512  		return x.RHash
   513  	}
   514  	return nil
   515  }
   516  
   517  type LookupInvoiceMsg struct {
   518  	state         protoimpl.MessageState
   519  	sizeCache     protoimpl.SizeCache
   520  	unknownFields protoimpl.UnknownFields
   521  
   522  	// Types that are assignable to InvoiceRef:
   523  	//
   524  	//	*LookupInvoiceMsg_PaymentHash
   525  	//	*LookupInvoiceMsg_PaymentAddr
   526  	//	*LookupInvoiceMsg_SetId
   527  	InvoiceRef     isLookupInvoiceMsg_InvoiceRef `protobuf_oneof:"invoice_ref"`
   528  	LookupModifier LookupModifier                `protobuf:"varint,4,opt,name=lookup_modifier,json=lookupModifier,proto3,enum=invoicesrpc.LookupModifier" json:"lookup_modifier,omitempty"`
   529  }
   530  
   531  func (x *LookupInvoiceMsg) Reset() {
   532  	*x = LookupInvoiceMsg{}
   533  	if protoimpl.UnsafeEnabled {
   534  		mi := &file_invoicesrpc_invoices_proto_msgTypes[7]
   535  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   536  		ms.StoreMessageInfo(mi)
   537  	}
   538  }
   539  
   540  func (x *LookupInvoiceMsg) String() string {
   541  	return protoimpl.X.MessageStringOf(x)
   542  }
   543  
   544  func (*LookupInvoiceMsg) ProtoMessage() {}
   545  
   546  func (x *LookupInvoiceMsg) ProtoReflect() protoreflect.Message {
   547  	mi := &file_invoicesrpc_invoices_proto_msgTypes[7]
   548  	if protoimpl.UnsafeEnabled && x != nil {
   549  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   550  		if ms.LoadMessageInfo() == nil {
   551  			ms.StoreMessageInfo(mi)
   552  		}
   553  		return ms
   554  	}
   555  	return mi.MessageOf(x)
   556  }
   557  
   558  // Deprecated: Use LookupInvoiceMsg.ProtoReflect.Descriptor instead.
   559  func (*LookupInvoiceMsg) Descriptor() ([]byte, []int) {
   560  	return file_invoicesrpc_invoices_proto_rawDescGZIP(), []int{7}
   561  }
   562  
   563  func (m *LookupInvoiceMsg) GetInvoiceRef() isLookupInvoiceMsg_InvoiceRef {
   564  	if m != nil {
   565  		return m.InvoiceRef
   566  	}
   567  	return nil
   568  }
   569  
   570  func (x *LookupInvoiceMsg) GetPaymentHash() []byte {
   571  	if x, ok := x.GetInvoiceRef().(*LookupInvoiceMsg_PaymentHash); ok {
   572  		return x.PaymentHash
   573  	}
   574  	return nil
   575  }
   576  
   577  func (x *LookupInvoiceMsg) GetPaymentAddr() []byte {
   578  	if x, ok := x.GetInvoiceRef().(*LookupInvoiceMsg_PaymentAddr); ok {
   579  		return x.PaymentAddr
   580  	}
   581  	return nil
   582  }
   583  
   584  func (x *LookupInvoiceMsg) GetSetId() []byte {
   585  	if x, ok := x.GetInvoiceRef().(*LookupInvoiceMsg_SetId); ok {
   586  		return x.SetId
   587  	}
   588  	return nil
   589  }
   590  
   591  func (x *LookupInvoiceMsg) GetLookupModifier() LookupModifier {
   592  	if x != nil {
   593  		return x.LookupModifier
   594  	}
   595  	return LookupModifier_DEFAULT
   596  }
   597  
   598  type isLookupInvoiceMsg_InvoiceRef interface {
   599  	isLookupInvoiceMsg_InvoiceRef()
   600  }
   601  
   602  type LookupInvoiceMsg_PaymentHash struct {
   603  	PaymentHash []byte `protobuf:"bytes,1,opt,name=payment_hash,json=paymentHash,proto3,oneof"`
   604  }
   605  
   606  type LookupInvoiceMsg_PaymentAddr struct {
   607  	PaymentAddr []byte `protobuf:"bytes,2,opt,name=payment_addr,json=paymentAddr,proto3,oneof"`
   608  }
   609  
   610  type LookupInvoiceMsg_SetId struct {
   611  	SetId []byte `protobuf:"bytes,3,opt,name=set_id,json=setId,proto3,oneof"`
   612  }
   613  
   614  func (*LookupInvoiceMsg_PaymentHash) isLookupInvoiceMsg_InvoiceRef() {}
   615  
   616  func (*LookupInvoiceMsg_PaymentAddr) isLookupInvoiceMsg_InvoiceRef() {}
   617  
   618  func (*LookupInvoiceMsg_SetId) isLookupInvoiceMsg_InvoiceRef() {}
   619  
   620  var File_invoicesrpc_invoices_proto protoreflect.FileDescriptor
   621  
   622  var file_invoicesrpc_invoices_proto_rawDesc = []byte{
   623  	0x0a, 0x1a, 0x69, 0x6e, 0x76, 0x6f, 0x69, 0x63, 0x65, 0x73, 0x72, 0x70, 0x63, 0x2f, 0x69, 0x6e,
   624  	0x76, 0x6f, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0b, 0x69, 0x6e,
   625  	0x76, 0x6f, 0x69, 0x63, 0x65, 0x73, 0x72, 0x70, 0x63, 0x1a, 0x0f, 0x6c, 0x69, 0x67, 0x68, 0x74,
   626  	0x6e, 0x69, 0x6e, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x35, 0x0a, 0x10, 0x43, 0x61,
   627  	0x6e, 0x63, 0x65, 0x6c, 0x49, 0x6e, 0x76, 0x6f, 0x69, 0x63, 0x65, 0x4d, 0x73, 0x67, 0x12, 0x21,
   628  	0x0a, 0x0c, 0x70, 0x61, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x5f, 0x68, 0x61, 0x73, 0x68, 0x18, 0x01,
   629  	0x20, 0x01, 0x28, 0x0c, 0x52, 0x0b, 0x70, 0x61, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x48, 0x61, 0x73,
   630  	0x68, 0x22, 0x13, 0x0a, 0x11, 0x43, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x49, 0x6e, 0x76, 0x6f, 0x69,
   631  	0x63, 0x65, 0x52, 0x65, 0x73, 0x70, 0x22, 0xcf, 0x02, 0x0a, 0x15, 0x41, 0x64, 0x64, 0x48, 0x6f,
   632  	0x6c, 0x64, 0x49, 0x6e, 0x76, 0x6f, 0x69, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,
   633  	0x12, 0x12, 0x0a, 0x04, 0x6d, 0x65, 0x6d, 0x6f, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04,
   634  	0x6d, 0x65, 0x6d, 0x6f, 0x12, 0x12, 0x0a, 0x04, 0x68, 0x61, 0x73, 0x68, 0x18, 0x02, 0x20, 0x01,
   635  	0x28, 0x0c, 0x52, 0x04, 0x68, 0x61, 0x73, 0x68, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75,
   636  	0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x22,
   637  	0x0a, 0x0d, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x5f, 0x6d, 0x5f, 0x61, 0x74, 0x6f, 0x6d, 0x73, 0x18,
   638  	0x0a, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0b, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x4d, 0x41, 0x74, 0x6f,
   639  	0x6d, 0x73, 0x12, 0x29, 0x0a, 0x10, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f,
   640  	0x6e, 0x5f, 0x68, 0x61, 0x73, 0x68, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0f, 0x64, 0x65,
   641  	0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x48, 0x61, 0x73, 0x68, 0x12, 0x16, 0x0a,
   642  	0x06, 0x65, 0x78, 0x70, 0x69, 0x72, 0x79, 0x18, 0x05, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x65,
   643  	0x78, 0x70, 0x69, 0x72, 0x79, 0x12, 0x23, 0x0a, 0x0d, 0x66, 0x61, 0x6c, 0x6c, 0x62, 0x61, 0x63,
   644  	0x6b, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x66, 0x61,
   645  	0x6c, 0x6c, 0x62, 0x61, 0x63, 0x6b, 0x41, 0x64, 0x64, 0x72, 0x12, 0x1f, 0x0a, 0x0b, 0x63, 0x6c,
   646  	0x74, 0x76, 0x5f, 0x65, 0x78, 0x70, 0x69, 0x72, 0x79, 0x18, 0x07, 0x20, 0x01, 0x28, 0x04, 0x52,
   647  	0x0a, 0x63, 0x6c, 0x74, 0x76, 0x45, 0x78, 0x70, 0x69, 0x72, 0x79, 0x12, 0x31, 0x0a, 0x0b, 0x72,
   648  	0x6f, 0x75, 0x74, 0x65, 0x5f, 0x68, 0x69, 0x6e, 0x74, 0x73, 0x18, 0x08, 0x20, 0x03, 0x28, 0x0b,
   649  	0x32, 0x10, 0x2e, 0x6c, 0x6e, 0x72, 0x70, 0x63, 0x2e, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x48, 0x69,
   650  	0x6e, 0x74, 0x52, 0x0a, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x48, 0x69, 0x6e, 0x74, 0x73, 0x12, 0x18,
   651  	0x0a, 0x07, 0x70, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x18, 0x09, 0x20, 0x01, 0x28, 0x08, 0x52,
   652  	0x07, 0x70, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x22, 0x7d, 0x0a, 0x12, 0x41, 0x64, 0x64, 0x48,
   653  	0x6f, 0x6c, 0x64, 0x49, 0x6e, 0x76, 0x6f, 0x69, 0x63, 0x65, 0x52, 0x65, 0x73, 0x70, 0x12, 0x27,
   654  	0x0a, 0x0f, 0x70, 0x61, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x5f, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73,
   655  	0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x70, 0x61, 0x79, 0x6d, 0x65, 0x6e, 0x74,
   656  	0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x61, 0x64, 0x64, 0x5f, 0x69,
   657  	0x6e, 0x64, 0x65, 0x78, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x08, 0x61, 0x64, 0x64, 0x49,
   658  	0x6e, 0x64, 0x65, 0x78, 0x12, 0x21, 0x0a, 0x0c, 0x70, 0x61, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x5f,
   659  	0x61, 0x64, 0x64, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0b, 0x70, 0x61, 0x79, 0x6d,
   660  	0x65, 0x6e, 0x74, 0x41, 0x64, 0x64, 0x72, 0x22, 0x2e, 0x0a, 0x10, 0x53, 0x65, 0x74, 0x74, 0x6c,
   661  	0x65, 0x49, 0x6e, 0x76, 0x6f, 0x69, 0x63, 0x65, 0x4d, 0x73, 0x67, 0x12, 0x1a, 0x0a, 0x08, 0x70,
   662  	0x72, 0x65, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x08, 0x70,
   663  	0x72, 0x65, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x22, 0x13, 0x0a, 0x11, 0x53, 0x65, 0x74, 0x74, 0x6c,
   664  	0x65, 0x49, 0x6e, 0x76, 0x6f, 0x69, 0x63, 0x65, 0x52, 0x65, 0x73, 0x70, 0x22, 0x3c, 0x0a, 0x1d,
   665  	0x53, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x62, 0x65, 0x53, 0x69, 0x6e, 0x67, 0x6c, 0x65, 0x49,
   666  	0x6e, 0x76, 0x6f, 0x69, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x15, 0x0a,
   667  	0x06, 0x72, 0x5f, 0x68, 0x61, 0x73, 0x68, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x05, 0x72,
   668  	0x48, 0x61, 0x73, 0x68, 0x4a, 0x04, 0x08, 0x01, 0x10, 0x02, 0x22, 0xca, 0x01, 0x0a, 0x10, 0x4c,
   669  	0x6f, 0x6f, 0x6b, 0x75, 0x70, 0x49, 0x6e, 0x76, 0x6f, 0x69, 0x63, 0x65, 0x4d, 0x73, 0x67, 0x12,
   670  	0x23, 0x0a, 0x0c, 0x70, 0x61, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x5f, 0x68, 0x61, 0x73, 0x68, 0x18,
   671  	0x01, 0x20, 0x01, 0x28, 0x0c, 0x48, 0x00, 0x52, 0x0b, 0x70, 0x61, 0x79, 0x6d, 0x65, 0x6e, 0x74,
   672  	0x48, 0x61, 0x73, 0x68, 0x12, 0x23, 0x0a, 0x0c, 0x70, 0x61, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x5f,
   673  	0x61, 0x64, 0x64, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x48, 0x00, 0x52, 0x0b, 0x70, 0x61,
   674  	0x79, 0x6d, 0x65, 0x6e, 0x74, 0x41, 0x64, 0x64, 0x72, 0x12, 0x17, 0x0a, 0x06, 0x73, 0x65, 0x74,
   675  	0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0c, 0x48, 0x00, 0x52, 0x05, 0x73, 0x65, 0x74,
   676  	0x49, 0x64, 0x12, 0x44, 0x0a, 0x0f, 0x6c, 0x6f, 0x6f, 0x6b, 0x75, 0x70, 0x5f, 0x6d, 0x6f, 0x64,
   677  	0x69, 0x66, 0x69, 0x65, 0x72, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1b, 0x2e, 0x69, 0x6e,
   678  	0x76, 0x6f, 0x69, 0x63, 0x65, 0x73, 0x72, 0x70, 0x63, 0x2e, 0x4c, 0x6f, 0x6f, 0x6b, 0x75, 0x70,
   679  	0x4d, 0x6f, 0x64, 0x69, 0x66, 0x69, 0x65, 0x72, 0x52, 0x0e, 0x6c, 0x6f, 0x6f, 0x6b, 0x75, 0x70,
   680  	0x4d, 0x6f, 0x64, 0x69, 0x66, 0x69, 0x65, 0x72, 0x42, 0x0d, 0x0a, 0x0b, 0x69, 0x6e, 0x76, 0x6f,
   681  	0x69, 0x63, 0x65, 0x5f, 0x72, 0x65, 0x66, 0x2a, 0x44, 0x0a, 0x0e, 0x4c, 0x6f, 0x6f, 0x6b, 0x75,
   682  	0x70, 0x4d, 0x6f, 0x64, 0x69, 0x66, 0x69, 0x65, 0x72, 0x12, 0x0b, 0x0a, 0x07, 0x44, 0x45, 0x46,
   683  	0x41, 0x55, 0x4c, 0x54, 0x10, 0x00, 0x12, 0x11, 0x0a, 0x0d, 0x48, 0x54, 0x4c, 0x43, 0x5f, 0x53,
   684  	0x45, 0x54, 0x5f, 0x4f, 0x4e, 0x4c, 0x59, 0x10, 0x01, 0x12, 0x12, 0x0a, 0x0e, 0x48, 0x54, 0x4c,
   685  	0x43, 0x5f, 0x53, 0x45, 0x54, 0x5f, 0x42, 0x4c, 0x41, 0x4e, 0x4b, 0x10, 0x02, 0x32, 0x9b, 0x03,
   686  	0x0a, 0x08, 0x49, 0x6e, 0x76, 0x6f, 0x69, 0x63, 0x65, 0x73, 0x12, 0x56, 0x0a, 0x16, 0x53, 0x75,
   687  	0x62, 0x73, 0x63, 0x72, 0x69, 0x62, 0x65, 0x53, 0x69, 0x6e, 0x67, 0x6c, 0x65, 0x49, 0x6e, 0x76,
   688  	0x6f, 0x69, 0x63, 0x65, 0x12, 0x2a, 0x2e, 0x69, 0x6e, 0x76, 0x6f, 0x69, 0x63, 0x65, 0x73, 0x72,
   689  	0x70, 0x63, 0x2e, 0x53, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x62, 0x65, 0x53, 0x69, 0x6e, 0x67,
   690  	0x6c, 0x65, 0x49, 0x6e, 0x76, 0x6f, 0x69, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,
   691  	0x1a, 0x0e, 0x2e, 0x6c, 0x6e, 0x72, 0x70, 0x63, 0x2e, 0x49, 0x6e, 0x76, 0x6f, 0x69, 0x63, 0x65,
   692  	0x30, 0x01, 0x12, 0x4e, 0x0a, 0x0d, 0x43, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x49, 0x6e, 0x76, 0x6f,
   693  	0x69, 0x63, 0x65, 0x12, 0x1d, 0x2e, 0x69, 0x6e, 0x76, 0x6f, 0x69, 0x63, 0x65, 0x73, 0x72, 0x70,
   694  	0x63, 0x2e, 0x43, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x49, 0x6e, 0x76, 0x6f, 0x69, 0x63, 0x65, 0x4d,
   695  	0x73, 0x67, 0x1a, 0x1e, 0x2e, 0x69, 0x6e, 0x76, 0x6f, 0x69, 0x63, 0x65, 0x73, 0x72, 0x70, 0x63,
   696  	0x2e, 0x43, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x49, 0x6e, 0x76, 0x6f, 0x69, 0x63, 0x65, 0x52, 0x65,
   697  	0x73, 0x70, 0x12, 0x55, 0x0a, 0x0e, 0x41, 0x64, 0x64, 0x48, 0x6f, 0x6c, 0x64, 0x49, 0x6e, 0x76,
   698  	0x6f, 0x69, 0x63, 0x65, 0x12, 0x22, 0x2e, 0x69, 0x6e, 0x76, 0x6f, 0x69, 0x63, 0x65, 0x73, 0x72,
   699  	0x70, 0x63, 0x2e, 0x41, 0x64, 0x64, 0x48, 0x6f, 0x6c, 0x64, 0x49, 0x6e, 0x76, 0x6f, 0x69, 0x63,
   700  	0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1f, 0x2e, 0x69, 0x6e, 0x76, 0x6f, 0x69,
   701  	0x63, 0x65, 0x73, 0x72, 0x70, 0x63, 0x2e, 0x41, 0x64, 0x64, 0x48, 0x6f, 0x6c, 0x64, 0x49, 0x6e,
   702  	0x76, 0x6f, 0x69, 0x63, 0x65, 0x52, 0x65, 0x73, 0x70, 0x12, 0x4e, 0x0a, 0x0d, 0x53, 0x65, 0x74,
   703  	0x74, 0x6c, 0x65, 0x49, 0x6e, 0x76, 0x6f, 0x69, 0x63, 0x65, 0x12, 0x1d, 0x2e, 0x69, 0x6e, 0x76,
   704  	0x6f, 0x69, 0x63, 0x65, 0x73, 0x72, 0x70, 0x63, 0x2e, 0x53, 0x65, 0x74, 0x74, 0x6c, 0x65, 0x49,
   705  	0x6e, 0x76, 0x6f, 0x69, 0x63, 0x65, 0x4d, 0x73, 0x67, 0x1a, 0x1e, 0x2e, 0x69, 0x6e, 0x76, 0x6f,
   706  	0x69, 0x63, 0x65, 0x73, 0x72, 0x70, 0x63, 0x2e, 0x53, 0x65, 0x74, 0x74, 0x6c, 0x65, 0x49, 0x6e,
   707  	0x76, 0x6f, 0x69, 0x63, 0x65, 0x52, 0x65, 0x73, 0x70, 0x12, 0x40, 0x0a, 0x0f, 0x4c, 0x6f, 0x6f,
   708  	0x6b, 0x75, 0x70, 0x49, 0x6e, 0x76, 0x6f, 0x69, 0x63, 0x65, 0x56, 0x32, 0x12, 0x1d, 0x2e, 0x69,
   709  	0x6e, 0x76, 0x6f, 0x69, 0x63, 0x65, 0x73, 0x72, 0x70, 0x63, 0x2e, 0x4c, 0x6f, 0x6f, 0x6b, 0x75,
   710  	0x70, 0x49, 0x6e, 0x76, 0x6f, 0x69, 0x63, 0x65, 0x4d, 0x73, 0x67, 0x1a, 0x0e, 0x2e, 0x6c, 0x6e,
   711  	0x72, 0x70, 0x63, 0x2e, 0x49, 0x6e, 0x76, 0x6f, 0x69, 0x63, 0x65, 0x42, 0x2c, 0x5a, 0x2a, 0x67,
   712  	0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x64, 0x65, 0x63, 0x72, 0x65, 0x64,
   713  	0x2f, 0x64, 0x63, 0x72, 0x6c, 0x6e, 0x64, 0x2f, 0x6c, 0x6e, 0x72, 0x70, 0x63, 0x2f, 0x69, 0x6e,
   714  	0x76, 0x6f, 0x69, 0x63, 0x65, 0x73, 0x72, 0x70, 0x63, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f,
   715  	0x33,
   716  }
   717  
   718  var (
   719  	file_invoicesrpc_invoices_proto_rawDescOnce sync.Once
   720  	file_invoicesrpc_invoices_proto_rawDescData = file_invoicesrpc_invoices_proto_rawDesc
   721  )
   722  
   723  func file_invoicesrpc_invoices_proto_rawDescGZIP() []byte {
   724  	file_invoicesrpc_invoices_proto_rawDescOnce.Do(func() {
   725  		file_invoicesrpc_invoices_proto_rawDescData = protoimpl.X.CompressGZIP(file_invoicesrpc_invoices_proto_rawDescData)
   726  	})
   727  	return file_invoicesrpc_invoices_proto_rawDescData
   728  }
   729  
   730  var file_invoicesrpc_invoices_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
   731  var file_invoicesrpc_invoices_proto_msgTypes = make([]protoimpl.MessageInfo, 8)
   732  var file_invoicesrpc_invoices_proto_goTypes = []interface{}{
   733  	(LookupModifier)(0),                   // 0: invoicesrpc.LookupModifier
   734  	(*CancelInvoiceMsg)(nil),              // 1: invoicesrpc.CancelInvoiceMsg
   735  	(*CancelInvoiceResp)(nil),             // 2: invoicesrpc.CancelInvoiceResp
   736  	(*AddHoldInvoiceRequest)(nil),         // 3: invoicesrpc.AddHoldInvoiceRequest
   737  	(*AddHoldInvoiceResp)(nil),            // 4: invoicesrpc.AddHoldInvoiceResp
   738  	(*SettleInvoiceMsg)(nil),              // 5: invoicesrpc.SettleInvoiceMsg
   739  	(*SettleInvoiceResp)(nil),             // 6: invoicesrpc.SettleInvoiceResp
   740  	(*SubscribeSingleInvoiceRequest)(nil), // 7: invoicesrpc.SubscribeSingleInvoiceRequest
   741  	(*LookupInvoiceMsg)(nil),              // 8: invoicesrpc.LookupInvoiceMsg
   742  	(*lnrpc.RouteHint)(nil),               // 9: lnrpc.RouteHint
   743  	(*lnrpc.Invoice)(nil),                 // 10: lnrpc.Invoice
   744  }
   745  var file_invoicesrpc_invoices_proto_depIdxs = []int32{
   746  	9,  // 0: invoicesrpc.AddHoldInvoiceRequest.route_hints:type_name -> lnrpc.RouteHint
   747  	0,  // 1: invoicesrpc.LookupInvoiceMsg.lookup_modifier:type_name -> invoicesrpc.LookupModifier
   748  	7,  // 2: invoicesrpc.Invoices.SubscribeSingleInvoice:input_type -> invoicesrpc.SubscribeSingleInvoiceRequest
   749  	1,  // 3: invoicesrpc.Invoices.CancelInvoice:input_type -> invoicesrpc.CancelInvoiceMsg
   750  	3,  // 4: invoicesrpc.Invoices.AddHoldInvoice:input_type -> invoicesrpc.AddHoldInvoiceRequest
   751  	5,  // 5: invoicesrpc.Invoices.SettleInvoice:input_type -> invoicesrpc.SettleInvoiceMsg
   752  	8,  // 6: invoicesrpc.Invoices.LookupInvoiceV2:input_type -> invoicesrpc.LookupInvoiceMsg
   753  	10, // 7: invoicesrpc.Invoices.SubscribeSingleInvoice:output_type -> lnrpc.Invoice
   754  	2,  // 8: invoicesrpc.Invoices.CancelInvoice:output_type -> invoicesrpc.CancelInvoiceResp
   755  	4,  // 9: invoicesrpc.Invoices.AddHoldInvoice:output_type -> invoicesrpc.AddHoldInvoiceResp
   756  	6,  // 10: invoicesrpc.Invoices.SettleInvoice:output_type -> invoicesrpc.SettleInvoiceResp
   757  	10, // 11: invoicesrpc.Invoices.LookupInvoiceV2:output_type -> lnrpc.Invoice
   758  	7,  // [7:12] is the sub-list for method output_type
   759  	2,  // [2:7] is the sub-list for method input_type
   760  	2,  // [2:2] is the sub-list for extension type_name
   761  	2,  // [2:2] is the sub-list for extension extendee
   762  	0,  // [0:2] is the sub-list for field type_name
   763  }
   764  
   765  func init() { file_invoicesrpc_invoices_proto_init() }
   766  func file_invoicesrpc_invoices_proto_init() {
   767  	if File_invoicesrpc_invoices_proto != nil {
   768  		return
   769  	}
   770  	if !protoimpl.UnsafeEnabled {
   771  		file_invoicesrpc_invoices_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
   772  			switch v := v.(*CancelInvoiceMsg); i {
   773  			case 0:
   774  				return &v.state
   775  			case 1:
   776  				return &v.sizeCache
   777  			case 2:
   778  				return &v.unknownFields
   779  			default:
   780  				return nil
   781  			}
   782  		}
   783  		file_invoicesrpc_invoices_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
   784  			switch v := v.(*CancelInvoiceResp); i {
   785  			case 0:
   786  				return &v.state
   787  			case 1:
   788  				return &v.sizeCache
   789  			case 2:
   790  				return &v.unknownFields
   791  			default:
   792  				return nil
   793  			}
   794  		}
   795  		file_invoicesrpc_invoices_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
   796  			switch v := v.(*AddHoldInvoiceRequest); i {
   797  			case 0:
   798  				return &v.state
   799  			case 1:
   800  				return &v.sizeCache
   801  			case 2:
   802  				return &v.unknownFields
   803  			default:
   804  				return nil
   805  			}
   806  		}
   807  		file_invoicesrpc_invoices_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
   808  			switch v := v.(*AddHoldInvoiceResp); i {
   809  			case 0:
   810  				return &v.state
   811  			case 1:
   812  				return &v.sizeCache
   813  			case 2:
   814  				return &v.unknownFields
   815  			default:
   816  				return nil
   817  			}
   818  		}
   819  		file_invoicesrpc_invoices_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
   820  			switch v := v.(*SettleInvoiceMsg); i {
   821  			case 0:
   822  				return &v.state
   823  			case 1:
   824  				return &v.sizeCache
   825  			case 2:
   826  				return &v.unknownFields
   827  			default:
   828  				return nil
   829  			}
   830  		}
   831  		file_invoicesrpc_invoices_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
   832  			switch v := v.(*SettleInvoiceResp); i {
   833  			case 0:
   834  				return &v.state
   835  			case 1:
   836  				return &v.sizeCache
   837  			case 2:
   838  				return &v.unknownFields
   839  			default:
   840  				return nil
   841  			}
   842  		}
   843  		file_invoicesrpc_invoices_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
   844  			switch v := v.(*SubscribeSingleInvoiceRequest); i {
   845  			case 0:
   846  				return &v.state
   847  			case 1:
   848  				return &v.sizeCache
   849  			case 2:
   850  				return &v.unknownFields
   851  			default:
   852  				return nil
   853  			}
   854  		}
   855  		file_invoicesrpc_invoices_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {
   856  			switch v := v.(*LookupInvoiceMsg); i {
   857  			case 0:
   858  				return &v.state
   859  			case 1:
   860  				return &v.sizeCache
   861  			case 2:
   862  				return &v.unknownFields
   863  			default:
   864  				return nil
   865  			}
   866  		}
   867  	}
   868  	file_invoicesrpc_invoices_proto_msgTypes[7].OneofWrappers = []interface{}{
   869  		(*LookupInvoiceMsg_PaymentHash)(nil),
   870  		(*LookupInvoiceMsg_PaymentAddr)(nil),
   871  		(*LookupInvoiceMsg_SetId)(nil),
   872  	}
   873  	type x struct{}
   874  	out := protoimpl.TypeBuilder{
   875  		File: protoimpl.DescBuilder{
   876  			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
   877  			RawDescriptor: file_invoicesrpc_invoices_proto_rawDesc,
   878  			NumEnums:      1,
   879  			NumMessages:   8,
   880  			NumExtensions: 0,
   881  			NumServices:   1,
   882  		},
   883  		GoTypes:           file_invoicesrpc_invoices_proto_goTypes,
   884  		DependencyIndexes: file_invoicesrpc_invoices_proto_depIdxs,
   885  		EnumInfos:         file_invoicesrpc_invoices_proto_enumTypes,
   886  		MessageInfos:      file_invoicesrpc_invoices_proto_msgTypes,
   887  	}.Build()
   888  	File_invoicesrpc_invoices_proto = out.File
   889  	file_invoicesrpc_invoices_proto_rawDesc = nil
   890  	file_invoicesrpc_invoices_proto_goTypes = nil
   891  	file_invoicesrpc_invoices_proto_depIdxs = nil
   892  }
   893  
   894  // Reference imports to suppress errors if they are not otherwise used.
   895  var _ context.Context
   896  var _ grpc.ClientConnInterface
   897  
   898  // This is a compile-time assertion to ensure that this generated file
   899  // is compatible with the grpc package it is being compiled against.
   900  const _ = grpc.SupportPackageIsVersion6
   901  
   902  // InvoicesClient is the client API for Invoices service.
   903  //
   904  // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
   905  type InvoicesClient interface {
   906  	// SubscribeSingleInvoice returns a uni-directional stream (server -> client)
   907  	// to notify the client of state transitions of the specified invoice.
   908  	// Initially the current invoice state is always sent out.
   909  	SubscribeSingleInvoice(ctx context.Context, in *SubscribeSingleInvoiceRequest, opts ...grpc.CallOption) (Invoices_SubscribeSingleInvoiceClient, error)
   910  	// CancelInvoice cancels a currently open invoice. If the invoice is already
   911  	// canceled, this call will succeed. If the invoice is already settled, it will
   912  	// fail.
   913  	CancelInvoice(ctx context.Context, in *CancelInvoiceMsg, opts ...grpc.CallOption) (*CancelInvoiceResp, error)
   914  	// AddHoldInvoice creates a hold invoice. It ties the invoice to the hash
   915  	// supplied in the request.
   916  	AddHoldInvoice(ctx context.Context, in *AddHoldInvoiceRequest, opts ...grpc.CallOption) (*AddHoldInvoiceResp, error)
   917  	// SettleInvoice settles an accepted invoice. If the invoice is already
   918  	// settled, this call will succeed.
   919  	SettleInvoice(ctx context.Context, in *SettleInvoiceMsg, opts ...grpc.CallOption) (*SettleInvoiceResp, error)
   920  	// LookupInvoiceV2 attempts to look up at invoice. An invoice can be refrenced
   921  	// using either its payment hash, payment address, or set ID.
   922  	LookupInvoiceV2(ctx context.Context, in *LookupInvoiceMsg, opts ...grpc.CallOption) (*lnrpc.Invoice, error)
   923  }
   924  
   925  type invoicesClient struct {
   926  	cc grpc.ClientConnInterface
   927  }
   928  
   929  func NewInvoicesClient(cc grpc.ClientConnInterface) InvoicesClient {
   930  	return &invoicesClient{cc}
   931  }
   932  
   933  func (c *invoicesClient) SubscribeSingleInvoice(ctx context.Context, in *SubscribeSingleInvoiceRequest, opts ...grpc.CallOption) (Invoices_SubscribeSingleInvoiceClient, error) {
   934  	stream, err := c.cc.NewStream(ctx, &_Invoices_serviceDesc.Streams[0], "/invoicesrpc.Invoices/SubscribeSingleInvoice", opts...)
   935  	if err != nil {
   936  		return nil, err
   937  	}
   938  	x := &invoicesSubscribeSingleInvoiceClient{stream}
   939  	if err := x.ClientStream.SendMsg(in); err != nil {
   940  		return nil, err
   941  	}
   942  	if err := x.ClientStream.CloseSend(); err != nil {
   943  		return nil, err
   944  	}
   945  	return x, nil
   946  }
   947  
   948  type Invoices_SubscribeSingleInvoiceClient interface {
   949  	Recv() (*lnrpc.Invoice, error)
   950  	grpc.ClientStream
   951  }
   952  
   953  type invoicesSubscribeSingleInvoiceClient struct {
   954  	grpc.ClientStream
   955  }
   956  
   957  func (x *invoicesSubscribeSingleInvoiceClient) Recv() (*lnrpc.Invoice, error) {
   958  	m := new(lnrpc.Invoice)
   959  	if err := x.ClientStream.RecvMsg(m); err != nil {
   960  		return nil, err
   961  	}
   962  	return m, nil
   963  }
   964  
   965  func (c *invoicesClient) CancelInvoice(ctx context.Context, in *CancelInvoiceMsg, opts ...grpc.CallOption) (*CancelInvoiceResp, error) {
   966  	out := new(CancelInvoiceResp)
   967  	err := c.cc.Invoke(ctx, "/invoicesrpc.Invoices/CancelInvoice", in, out, opts...)
   968  	if err != nil {
   969  		return nil, err
   970  	}
   971  	return out, nil
   972  }
   973  
   974  func (c *invoicesClient) AddHoldInvoice(ctx context.Context, in *AddHoldInvoiceRequest, opts ...grpc.CallOption) (*AddHoldInvoiceResp, error) {
   975  	out := new(AddHoldInvoiceResp)
   976  	err := c.cc.Invoke(ctx, "/invoicesrpc.Invoices/AddHoldInvoice", in, out, opts...)
   977  	if err != nil {
   978  		return nil, err
   979  	}
   980  	return out, nil
   981  }
   982  
   983  func (c *invoicesClient) SettleInvoice(ctx context.Context, in *SettleInvoiceMsg, opts ...grpc.CallOption) (*SettleInvoiceResp, error) {
   984  	out := new(SettleInvoiceResp)
   985  	err := c.cc.Invoke(ctx, "/invoicesrpc.Invoices/SettleInvoice", in, out, opts...)
   986  	if err != nil {
   987  		return nil, err
   988  	}
   989  	return out, nil
   990  }
   991  
   992  func (c *invoicesClient) LookupInvoiceV2(ctx context.Context, in *LookupInvoiceMsg, opts ...grpc.CallOption) (*lnrpc.Invoice, error) {
   993  	out := new(lnrpc.Invoice)
   994  	err := c.cc.Invoke(ctx, "/invoicesrpc.Invoices/LookupInvoiceV2", in, out, opts...)
   995  	if err != nil {
   996  		return nil, err
   997  	}
   998  	return out, nil
   999  }
  1000  
  1001  // InvoicesServer is the server API for Invoices service.
  1002  type InvoicesServer interface {
  1003  	// SubscribeSingleInvoice returns a uni-directional stream (server -> client)
  1004  	// to notify the client of state transitions of the specified invoice.
  1005  	// Initially the current invoice state is always sent out.
  1006  	SubscribeSingleInvoice(*SubscribeSingleInvoiceRequest, Invoices_SubscribeSingleInvoiceServer) error
  1007  	// CancelInvoice cancels a currently open invoice. If the invoice is already
  1008  	// canceled, this call will succeed. If the invoice is already settled, it will
  1009  	// fail.
  1010  	CancelInvoice(context.Context, *CancelInvoiceMsg) (*CancelInvoiceResp, error)
  1011  	// AddHoldInvoice creates a hold invoice. It ties the invoice to the hash
  1012  	// supplied in the request.
  1013  	AddHoldInvoice(context.Context, *AddHoldInvoiceRequest) (*AddHoldInvoiceResp, error)
  1014  	// SettleInvoice settles an accepted invoice. If the invoice is already
  1015  	// settled, this call will succeed.
  1016  	SettleInvoice(context.Context, *SettleInvoiceMsg) (*SettleInvoiceResp, error)
  1017  	// LookupInvoiceV2 attempts to look up at invoice. An invoice can be refrenced
  1018  	// using either its payment hash, payment address, or set ID.
  1019  	LookupInvoiceV2(context.Context, *LookupInvoiceMsg) (*lnrpc.Invoice, error)
  1020  }
  1021  
  1022  // UnimplementedInvoicesServer can be embedded to have forward compatible implementations.
  1023  type UnimplementedInvoicesServer struct {
  1024  }
  1025  
  1026  func (*UnimplementedInvoicesServer) SubscribeSingleInvoice(*SubscribeSingleInvoiceRequest, Invoices_SubscribeSingleInvoiceServer) error {
  1027  	return status.Errorf(codes.Unimplemented, "method SubscribeSingleInvoice not implemented")
  1028  }
  1029  func (*UnimplementedInvoicesServer) CancelInvoice(context.Context, *CancelInvoiceMsg) (*CancelInvoiceResp, error) {
  1030  	return nil, status.Errorf(codes.Unimplemented, "method CancelInvoice not implemented")
  1031  }
  1032  func (*UnimplementedInvoicesServer) AddHoldInvoice(context.Context, *AddHoldInvoiceRequest) (*AddHoldInvoiceResp, error) {
  1033  	return nil, status.Errorf(codes.Unimplemented, "method AddHoldInvoice not implemented")
  1034  }
  1035  func (*UnimplementedInvoicesServer) SettleInvoice(context.Context, *SettleInvoiceMsg) (*SettleInvoiceResp, error) {
  1036  	return nil, status.Errorf(codes.Unimplemented, "method SettleInvoice not implemented")
  1037  }
  1038  func (*UnimplementedInvoicesServer) LookupInvoiceV2(context.Context, *LookupInvoiceMsg) (*lnrpc.Invoice, error) {
  1039  	return nil, status.Errorf(codes.Unimplemented, "method LookupInvoiceV2 not implemented")
  1040  }
  1041  
  1042  func RegisterInvoicesServer(s *grpc.Server, srv InvoicesServer) {
  1043  	s.RegisterService(&_Invoices_serviceDesc, srv)
  1044  }
  1045  
  1046  func _Invoices_SubscribeSingleInvoice_Handler(srv interface{}, stream grpc.ServerStream) error {
  1047  	m := new(SubscribeSingleInvoiceRequest)
  1048  	if err := stream.RecvMsg(m); err != nil {
  1049  		return err
  1050  	}
  1051  	return srv.(InvoicesServer).SubscribeSingleInvoice(m, &invoicesSubscribeSingleInvoiceServer{stream})
  1052  }
  1053  
  1054  type Invoices_SubscribeSingleInvoiceServer interface {
  1055  	Send(*lnrpc.Invoice) error
  1056  	grpc.ServerStream
  1057  }
  1058  
  1059  type invoicesSubscribeSingleInvoiceServer struct {
  1060  	grpc.ServerStream
  1061  }
  1062  
  1063  func (x *invoicesSubscribeSingleInvoiceServer) Send(m *lnrpc.Invoice) error {
  1064  	return x.ServerStream.SendMsg(m)
  1065  }
  1066  
  1067  func _Invoices_CancelInvoice_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1068  	in := new(CancelInvoiceMsg)
  1069  	if err := dec(in); err != nil {
  1070  		return nil, err
  1071  	}
  1072  	if interceptor == nil {
  1073  		return srv.(InvoicesServer).CancelInvoice(ctx, in)
  1074  	}
  1075  	info := &grpc.UnaryServerInfo{
  1076  		Server:     srv,
  1077  		FullMethod: "/invoicesrpc.Invoices/CancelInvoice",
  1078  	}
  1079  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1080  		return srv.(InvoicesServer).CancelInvoice(ctx, req.(*CancelInvoiceMsg))
  1081  	}
  1082  	return interceptor(ctx, in, info, handler)
  1083  }
  1084  
  1085  func _Invoices_AddHoldInvoice_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1086  	in := new(AddHoldInvoiceRequest)
  1087  	if err := dec(in); err != nil {
  1088  		return nil, err
  1089  	}
  1090  	if interceptor == nil {
  1091  		return srv.(InvoicesServer).AddHoldInvoice(ctx, in)
  1092  	}
  1093  	info := &grpc.UnaryServerInfo{
  1094  		Server:     srv,
  1095  		FullMethod: "/invoicesrpc.Invoices/AddHoldInvoice",
  1096  	}
  1097  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1098  		return srv.(InvoicesServer).AddHoldInvoice(ctx, req.(*AddHoldInvoiceRequest))
  1099  	}
  1100  	return interceptor(ctx, in, info, handler)
  1101  }
  1102  
  1103  func _Invoices_SettleInvoice_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1104  	in := new(SettleInvoiceMsg)
  1105  	if err := dec(in); err != nil {
  1106  		return nil, err
  1107  	}
  1108  	if interceptor == nil {
  1109  		return srv.(InvoicesServer).SettleInvoice(ctx, in)
  1110  	}
  1111  	info := &grpc.UnaryServerInfo{
  1112  		Server:     srv,
  1113  		FullMethod: "/invoicesrpc.Invoices/SettleInvoice",
  1114  	}
  1115  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1116  		return srv.(InvoicesServer).SettleInvoice(ctx, req.(*SettleInvoiceMsg))
  1117  	}
  1118  	return interceptor(ctx, in, info, handler)
  1119  }
  1120  
  1121  func _Invoices_LookupInvoiceV2_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1122  	in := new(LookupInvoiceMsg)
  1123  	if err := dec(in); err != nil {
  1124  		return nil, err
  1125  	}
  1126  	if interceptor == nil {
  1127  		return srv.(InvoicesServer).LookupInvoiceV2(ctx, in)
  1128  	}
  1129  	info := &grpc.UnaryServerInfo{
  1130  		Server:     srv,
  1131  		FullMethod: "/invoicesrpc.Invoices/LookupInvoiceV2",
  1132  	}
  1133  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1134  		return srv.(InvoicesServer).LookupInvoiceV2(ctx, req.(*LookupInvoiceMsg))
  1135  	}
  1136  	return interceptor(ctx, in, info, handler)
  1137  }
  1138  
  1139  var _Invoices_serviceDesc = grpc.ServiceDesc{
  1140  	ServiceName: "invoicesrpc.Invoices",
  1141  	HandlerType: (*InvoicesServer)(nil),
  1142  	Methods: []grpc.MethodDesc{
  1143  		{
  1144  			MethodName: "CancelInvoice",
  1145  			Handler:    _Invoices_CancelInvoice_Handler,
  1146  		},
  1147  		{
  1148  			MethodName: "AddHoldInvoice",
  1149  			Handler:    _Invoices_AddHoldInvoice_Handler,
  1150  		},
  1151  		{
  1152  			MethodName: "SettleInvoice",
  1153  			Handler:    _Invoices_SettleInvoice_Handler,
  1154  		},
  1155  		{
  1156  			MethodName: "LookupInvoiceV2",
  1157  			Handler:    _Invoices_LookupInvoiceV2_Handler,
  1158  		},
  1159  	},
  1160  	Streams: []grpc.StreamDesc{
  1161  		{
  1162  			StreamName:    "SubscribeSingleInvoice",
  1163  			Handler:       _Invoices_SubscribeSingleInvoice_Handler,
  1164  			ServerStreams: true,
  1165  		},
  1166  	},
  1167  	Metadata: "invoicesrpc/invoices.proto",
  1168  }