github.com/mysteriumnetwork/node@v0.0.0-20240516044423-365054f76801/pb/payment.pb.go (about)

     1  // Code generated by protoc-gen-go. DO NOT EDIT.
     2  // versions:
     3  // 	protoc-gen-go v1.25.0
     4  // 	protoc        v4.24.4
     5  // source: pb/payment.proto
     6  
     7  package pb
     8  
     9  import (
    10  	proto "github.com/golang/protobuf/proto"
    11  	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
    12  	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
    13  	reflect "reflect"
    14  	sync "sync"
    15  )
    16  
    17  const (
    18  	// Verify that this generated code is sufficiently up-to-date.
    19  	_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
    20  	// Verify that runtime/protoimpl is sufficiently up-to-date.
    21  	_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
    22  )
    23  
    24  // This is a compile-time assertion that a sufficiently up-to-date version
    25  // of the legacy proto package is being used.
    26  const _ = proto.ProtoPackageIsVersion4
    27  
    28  type Invoice struct {
    29  	state         protoimpl.MessageState
    30  	sizeCache     protoimpl.SizeCache
    31  	unknownFields protoimpl.UnknownFields
    32  
    33  	AgreementID    string `protobuf:"bytes,1,opt,name=AgreementID,proto3" json:"AgreementID,omitempty"`
    34  	AgreementTotal string `protobuf:"bytes,2,opt,name=AgreementTotal,proto3" json:"AgreementTotal,omitempty"`
    35  	TransactorFee  string `protobuf:"bytes,3,opt,name=TransactorFee,proto3" json:"TransactorFee,omitempty"`
    36  	Hashlock       string `protobuf:"bytes,4,opt,name=Hashlock,proto3" json:"Hashlock,omitempty"`
    37  	Provider       string `protobuf:"bytes,5,opt,name=Provider,proto3" json:"Provider,omitempty"`
    38  	ChainID        int64  `protobuf:"varint,6,opt,name=ChainID,proto3" json:"ChainID,omitempty"`
    39  }
    40  
    41  func (x *Invoice) Reset() {
    42  	*x = Invoice{}
    43  	if protoimpl.UnsafeEnabled {
    44  		mi := &file_pb_payment_proto_msgTypes[0]
    45  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    46  		ms.StoreMessageInfo(mi)
    47  	}
    48  }
    49  
    50  func (x *Invoice) String() string {
    51  	return protoimpl.X.MessageStringOf(x)
    52  }
    53  
    54  func (*Invoice) ProtoMessage() {}
    55  
    56  func (x *Invoice) ProtoReflect() protoreflect.Message {
    57  	mi := &file_pb_payment_proto_msgTypes[0]
    58  	if protoimpl.UnsafeEnabled && x != nil {
    59  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    60  		if ms.LoadMessageInfo() == nil {
    61  			ms.StoreMessageInfo(mi)
    62  		}
    63  		return ms
    64  	}
    65  	return mi.MessageOf(x)
    66  }
    67  
    68  // Deprecated: Use Invoice.ProtoReflect.Descriptor instead.
    69  func (*Invoice) Descriptor() ([]byte, []int) {
    70  	return file_pb_payment_proto_rawDescGZIP(), []int{0}
    71  }
    72  
    73  func (x *Invoice) GetAgreementID() string {
    74  	if x != nil {
    75  		return x.AgreementID
    76  	}
    77  	return ""
    78  }
    79  
    80  func (x *Invoice) GetAgreementTotal() string {
    81  	if x != nil {
    82  		return x.AgreementTotal
    83  	}
    84  	return ""
    85  }
    86  
    87  func (x *Invoice) GetTransactorFee() string {
    88  	if x != nil {
    89  		return x.TransactorFee
    90  	}
    91  	return ""
    92  }
    93  
    94  func (x *Invoice) GetHashlock() string {
    95  	if x != nil {
    96  		return x.Hashlock
    97  	}
    98  	return ""
    99  }
   100  
   101  func (x *Invoice) GetProvider() string {
   102  	if x != nil {
   103  		return x.Provider
   104  	}
   105  	return ""
   106  }
   107  
   108  func (x *Invoice) GetChainID() int64 {
   109  	if x != nil {
   110  		return x.ChainID
   111  	}
   112  	return 0
   113  }
   114  
   115  type ExchangeMessage struct {
   116  	state         protoimpl.MessageState
   117  	sizeCache     protoimpl.SizeCache
   118  	unknownFields protoimpl.UnknownFields
   119  
   120  	Promise        *Promise `protobuf:"bytes,1,opt,name=Promise,proto3" json:"Promise,omitempty"`
   121  	AgreementID    string   `protobuf:"bytes,2,opt,name=AgreementID,proto3" json:"AgreementID,omitempty"`
   122  	AgreementTotal string   `protobuf:"bytes,3,opt,name=AgreementTotal,proto3" json:"AgreementTotal,omitempty"`
   123  	Provider       string   `protobuf:"bytes,4,opt,name=Provider,proto3" json:"Provider,omitempty"`
   124  	Signature      string   `protobuf:"bytes,5,opt,name=Signature,proto3" json:"Signature,omitempty"`
   125  	HermesID       string   `protobuf:"bytes,6,opt,name=HermesID,proto3" json:"HermesID,omitempty"`
   126  	ChainID        int64    `protobuf:"varint,7,opt,name=ChainID,proto3" json:"ChainID,omitempty"`
   127  }
   128  
   129  func (x *ExchangeMessage) Reset() {
   130  	*x = ExchangeMessage{}
   131  	if protoimpl.UnsafeEnabled {
   132  		mi := &file_pb_payment_proto_msgTypes[1]
   133  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   134  		ms.StoreMessageInfo(mi)
   135  	}
   136  }
   137  
   138  func (x *ExchangeMessage) String() string {
   139  	return protoimpl.X.MessageStringOf(x)
   140  }
   141  
   142  func (*ExchangeMessage) ProtoMessage() {}
   143  
   144  func (x *ExchangeMessage) ProtoReflect() protoreflect.Message {
   145  	mi := &file_pb_payment_proto_msgTypes[1]
   146  	if protoimpl.UnsafeEnabled && x != nil {
   147  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   148  		if ms.LoadMessageInfo() == nil {
   149  			ms.StoreMessageInfo(mi)
   150  		}
   151  		return ms
   152  	}
   153  	return mi.MessageOf(x)
   154  }
   155  
   156  // Deprecated: Use ExchangeMessage.ProtoReflect.Descriptor instead.
   157  func (*ExchangeMessage) Descriptor() ([]byte, []int) {
   158  	return file_pb_payment_proto_rawDescGZIP(), []int{1}
   159  }
   160  
   161  func (x *ExchangeMessage) GetPromise() *Promise {
   162  	if x != nil {
   163  		return x.Promise
   164  	}
   165  	return nil
   166  }
   167  
   168  func (x *ExchangeMessage) GetAgreementID() string {
   169  	if x != nil {
   170  		return x.AgreementID
   171  	}
   172  	return ""
   173  }
   174  
   175  func (x *ExchangeMessage) GetAgreementTotal() string {
   176  	if x != nil {
   177  		return x.AgreementTotal
   178  	}
   179  	return ""
   180  }
   181  
   182  func (x *ExchangeMessage) GetProvider() string {
   183  	if x != nil {
   184  		return x.Provider
   185  	}
   186  	return ""
   187  }
   188  
   189  func (x *ExchangeMessage) GetSignature() string {
   190  	if x != nil {
   191  		return x.Signature
   192  	}
   193  	return ""
   194  }
   195  
   196  func (x *ExchangeMessage) GetHermesID() string {
   197  	if x != nil {
   198  		return x.HermesID
   199  	}
   200  	return ""
   201  }
   202  
   203  func (x *ExchangeMessage) GetChainID() int64 {
   204  	if x != nil {
   205  		return x.ChainID
   206  	}
   207  	return 0
   208  }
   209  
   210  type Promise struct {
   211  	state         protoimpl.MessageState
   212  	sizeCache     protoimpl.SizeCache
   213  	unknownFields protoimpl.UnknownFields
   214  
   215  	ChannelID []byte `protobuf:"bytes,1,opt,name=ChannelID,proto3" json:"ChannelID,omitempty"`
   216  	Amount    string `protobuf:"bytes,2,opt,name=Amount,proto3" json:"Amount,omitempty"`
   217  	Fee       string `protobuf:"bytes,3,opt,name=Fee,proto3" json:"Fee,omitempty"`
   218  	Hashlock  []byte `protobuf:"bytes,4,opt,name=Hashlock,proto3" json:"Hashlock,omitempty"`
   219  	R         []byte `protobuf:"bytes,5,opt,name=R,proto3" json:"R,omitempty"`
   220  	ChainID   int64  `protobuf:"varint,6,opt,name=ChainID,proto3" json:"ChainID,omitempty"`
   221  	Signature []byte `protobuf:"bytes,7,opt,name=Signature,proto3" json:"Signature,omitempty"`
   222  }
   223  
   224  func (x *Promise) Reset() {
   225  	*x = Promise{}
   226  	if protoimpl.UnsafeEnabled {
   227  		mi := &file_pb_payment_proto_msgTypes[2]
   228  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   229  		ms.StoreMessageInfo(mi)
   230  	}
   231  }
   232  
   233  func (x *Promise) String() string {
   234  	return protoimpl.X.MessageStringOf(x)
   235  }
   236  
   237  func (*Promise) ProtoMessage() {}
   238  
   239  func (x *Promise) ProtoReflect() protoreflect.Message {
   240  	mi := &file_pb_payment_proto_msgTypes[2]
   241  	if protoimpl.UnsafeEnabled && x != nil {
   242  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   243  		if ms.LoadMessageInfo() == nil {
   244  			ms.StoreMessageInfo(mi)
   245  		}
   246  		return ms
   247  	}
   248  	return mi.MessageOf(x)
   249  }
   250  
   251  // Deprecated: Use Promise.ProtoReflect.Descriptor instead.
   252  func (*Promise) Descriptor() ([]byte, []int) {
   253  	return file_pb_payment_proto_rawDescGZIP(), []int{2}
   254  }
   255  
   256  func (x *Promise) GetChannelID() []byte {
   257  	if x != nil {
   258  		return x.ChannelID
   259  	}
   260  	return nil
   261  }
   262  
   263  func (x *Promise) GetAmount() string {
   264  	if x != nil {
   265  		return x.Amount
   266  	}
   267  	return ""
   268  }
   269  
   270  func (x *Promise) GetFee() string {
   271  	if x != nil {
   272  		return x.Fee
   273  	}
   274  	return ""
   275  }
   276  
   277  func (x *Promise) GetHashlock() []byte {
   278  	if x != nil {
   279  		return x.Hashlock
   280  	}
   281  	return nil
   282  }
   283  
   284  func (x *Promise) GetR() []byte {
   285  	if x != nil {
   286  		return x.R
   287  	}
   288  	return nil
   289  }
   290  
   291  func (x *Promise) GetChainID() int64 {
   292  	if x != nil {
   293  		return x.ChainID
   294  	}
   295  	return 0
   296  }
   297  
   298  func (x *Promise) GetSignature() []byte {
   299  	if x != nil {
   300  		return x.Signature
   301  	}
   302  	return nil
   303  }
   304  
   305  var File_pb_payment_proto protoreflect.FileDescriptor
   306  
   307  var file_pb_payment_proto_rawDesc = []byte{
   308  	0x0a, 0x10, 0x70, 0x62, 0x2f, 0x70, 0x61, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x2e, 0x70, 0x72, 0x6f,
   309  	0x74, 0x6f, 0x12, 0x02, 0x70, 0x62, 0x22, 0xcb, 0x01, 0x0a, 0x07, 0x49, 0x6e, 0x76, 0x6f, 0x69,
   310  	0x63, 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x41, 0x67, 0x72, 0x65, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x49,
   311  	0x44, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x41, 0x67, 0x72, 0x65, 0x65, 0x6d, 0x65,
   312  	0x6e, 0x74, 0x49, 0x44, 0x12, 0x26, 0x0a, 0x0e, 0x41, 0x67, 0x72, 0x65, 0x65, 0x6d, 0x65, 0x6e,
   313  	0x74, 0x54, 0x6f, 0x74, 0x61, 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x41, 0x67,
   314  	0x72, 0x65, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x54, 0x6f, 0x74, 0x61, 0x6c, 0x12, 0x24, 0x0a, 0x0d,
   315  	0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x6f, 0x72, 0x46, 0x65, 0x65, 0x18, 0x03, 0x20,
   316  	0x01, 0x28, 0x09, 0x52, 0x0d, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x6f, 0x72, 0x46,
   317  	0x65, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x48, 0x61, 0x73, 0x68, 0x6c, 0x6f, 0x63, 0x6b, 0x18, 0x04,
   318  	0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x48, 0x61, 0x73, 0x68, 0x6c, 0x6f, 0x63, 0x6b, 0x12, 0x1a,
   319  	0x0a, 0x08, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09,
   320  	0x52, 0x08, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x12, 0x18, 0x0a, 0x07, 0x43, 0x68,
   321  	0x61, 0x69, 0x6e, 0x49, 0x44, 0x18, 0x06, 0x20, 0x01, 0x28, 0x03, 0x52, 0x07, 0x43, 0x68, 0x61,
   322  	0x69, 0x6e, 0x49, 0x44, 0x22, 0xf2, 0x01, 0x0a, 0x0f, 0x45, 0x78, 0x63, 0x68, 0x61, 0x6e, 0x67,
   323  	0x65, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x25, 0x0a, 0x07, 0x50, 0x72, 0x6f, 0x6d,
   324  	0x69, 0x73, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0b, 0x2e, 0x70, 0x62, 0x2e, 0x50,
   325  	0x72, 0x6f, 0x6d, 0x69, 0x73, 0x65, 0x52, 0x07, 0x50, 0x72, 0x6f, 0x6d, 0x69, 0x73, 0x65, 0x12,
   326  	0x20, 0x0a, 0x0b, 0x41, 0x67, 0x72, 0x65, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x49, 0x44, 0x18, 0x02,
   327  	0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x41, 0x67, 0x72, 0x65, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x49,
   328  	0x44, 0x12, 0x26, 0x0a, 0x0e, 0x41, 0x67, 0x72, 0x65, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x54, 0x6f,
   329  	0x74, 0x61, 0x6c, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x41, 0x67, 0x72, 0x65, 0x65,
   330  	0x6d, 0x65, 0x6e, 0x74, 0x54, 0x6f, 0x74, 0x61, 0x6c, 0x12, 0x1a, 0x0a, 0x08, 0x50, 0x72, 0x6f,
   331  	0x76, 0x69, 0x64, 0x65, 0x72, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x50, 0x72, 0x6f,
   332  	0x76, 0x69, 0x64, 0x65, 0x72, 0x12, 0x1c, 0x0a, 0x09, 0x53, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75,
   333  	0x72, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x53, 0x69, 0x67, 0x6e, 0x61, 0x74,
   334  	0x75, 0x72, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x48, 0x65, 0x72, 0x6d, 0x65, 0x73, 0x49, 0x44, 0x18,
   335  	0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x48, 0x65, 0x72, 0x6d, 0x65, 0x73, 0x49, 0x44, 0x12,
   336  	0x18, 0x0a, 0x07, 0x43, 0x68, 0x61, 0x69, 0x6e, 0x49, 0x44, 0x18, 0x07, 0x20, 0x01, 0x28, 0x03,
   337  	0x52, 0x07, 0x43, 0x68, 0x61, 0x69, 0x6e, 0x49, 0x44, 0x22, 0xb3, 0x01, 0x0a, 0x07, 0x50, 0x72,
   338  	0x6f, 0x6d, 0x69, 0x73, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x43, 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c,
   339  	0x49, 0x44, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x09, 0x43, 0x68, 0x61, 0x6e, 0x6e, 0x65,
   340  	0x6c, 0x49, 0x44, 0x12, 0x16, 0x0a, 0x06, 0x41, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x02, 0x20,
   341  	0x01, 0x28, 0x09, 0x52, 0x06, 0x41, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x10, 0x0a, 0x03, 0x46,
   342  	0x65, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x46, 0x65, 0x65, 0x12, 0x1a, 0x0a,
   343  	0x08, 0x48, 0x61, 0x73, 0x68, 0x6c, 0x6f, 0x63, 0x6b, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0c, 0x52,
   344  	0x08, 0x48, 0x61, 0x73, 0x68, 0x6c, 0x6f, 0x63, 0x6b, 0x12, 0x0c, 0x0a, 0x01, 0x52, 0x18, 0x05,
   345  	0x20, 0x01, 0x28, 0x0c, 0x52, 0x01, 0x52, 0x12, 0x18, 0x0a, 0x07, 0x43, 0x68, 0x61, 0x69, 0x6e,
   346  	0x49, 0x44, 0x18, 0x06, 0x20, 0x01, 0x28, 0x03, 0x52, 0x07, 0x43, 0x68, 0x61, 0x69, 0x6e, 0x49,
   347  	0x44, 0x12, 0x1c, 0x0a, 0x09, 0x53, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x18, 0x07,
   348  	0x20, 0x01, 0x28, 0x0c, 0x52, 0x09, 0x53, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x42,
   349  	0x06, 0x5a, 0x04, 0x2e, 0x3b, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
   350  }
   351  
   352  var (
   353  	file_pb_payment_proto_rawDescOnce sync.Once
   354  	file_pb_payment_proto_rawDescData = file_pb_payment_proto_rawDesc
   355  )
   356  
   357  func file_pb_payment_proto_rawDescGZIP() []byte {
   358  	file_pb_payment_proto_rawDescOnce.Do(func() {
   359  		file_pb_payment_proto_rawDescData = protoimpl.X.CompressGZIP(file_pb_payment_proto_rawDescData)
   360  	})
   361  	return file_pb_payment_proto_rawDescData
   362  }
   363  
   364  var file_pb_payment_proto_msgTypes = make([]protoimpl.MessageInfo, 3)
   365  var file_pb_payment_proto_goTypes = []interface{}{
   366  	(*Invoice)(nil),         // 0: pb.Invoice
   367  	(*ExchangeMessage)(nil), // 1: pb.ExchangeMessage
   368  	(*Promise)(nil),         // 2: pb.Promise
   369  }
   370  var file_pb_payment_proto_depIdxs = []int32{
   371  	2, // 0: pb.ExchangeMessage.Promise:type_name -> pb.Promise
   372  	1, // [1:1] is the sub-list for method output_type
   373  	1, // [1:1] is the sub-list for method input_type
   374  	1, // [1:1] is the sub-list for extension type_name
   375  	1, // [1:1] is the sub-list for extension extendee
   376  	0, // [0:1] is the sub-list for field type_name
   377  }
   378  
   379  func init() { file_pb_payment_proto_init() }
   380  func file_pb_payment_proto_init() {
   381  	if File_pb_payment_proto != nil {
   382  		return
   383  	}
   384  	if !protoimpl.UnsafeEnabled {
   385  		file_pb_payment_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
   386  			switch v := v.(*Invoice); i {
   387  			case 0:
   388  				return &v.state
   389  			case 1:
   390  				return &v.sizeCache
   391  			case 2:
   392  				return &v.unknownFields
   393  			default:
   394  				return nil
   395  			}
   396  		}
   397  		file_pb_payment_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
   398  			switch v := v.(*ExchangeMessage); i {
   399  			case 0:
   400  				return &v.state
   401  			case 1:
   402  				return &v.sizeCache
   403  			case 2:
   404  				return &v.unknownFields
   405  			default:
   406  				return nil
   407  			}
   408  		}
   409  		file_pb_payment_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
   410  			switch v := v.(*Promise); i {
   411  			case 0:
   412  				return &v.state
   413  			case 1:
   414  				return &v.sizeCache
   415  			case 2:
   416  				return &v.unknownFields
   417  			default:
   418  				return nil
   419  			}
   420  		}
   421  	}
   422  	type x struct{}
   423  	out := protoimpl.TypeBuilder{
   424  		File: protoimpl.DescBuilder{
   425  			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
   426  			RawDescriptor: file_pb_payment_proto_rawDesc,
   427  			NumEnums:      0,
   428  			NumMessages:   3,
   429  			NumExtensions: 0,
   430  			NumServices:   0,
   431  		},
   432  		GoTypes:           file_pb_payment_proto_goTypes,
   433  		DependencyIndexes: file_pb_payment_proto_depIdxs,
   434  		MessageInfos:      file_pb_payment_proto_msgTypes,
   435  	}.Build()
   436  	File_pb_payment_proto = out.File
   437  	file_pb_payment_proto_rawDesc = nil
   438  	file_pb_payment_proto_goTypes = nil
   439  	file_pb_payment_proto_depIdxs = nil
   440  }