155 lines
4.8 KiB
Go
155 lines
4.8 KiB
Go
|
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||
|
// source: fee.proto
|
||
|
|
||
|
package pb
|
||
|
|
||
|
import proto "github.com/golang/protobuf/proto"
|
||
|
import fmt "fmt"
|
||
|
import math "math"
|
||
|
|
||
|
// Reference imports to suppress errors if they are not otherwise used.
|
||
|
var _ = proto.Marshal
|
||
|
var _ = fmt.Errorf
|
||
|
var _ = math.Inf
|
||
|
|
||
|
type Fee_Version int32
|
||
|
|
||
|
const (
|
||
|
Fee_UNKNOWN_VERSION Fee_Version = 0
|
||
|
Fee__0_0_1 Fee_Version = 1
|
||
|
)
|
||
|
|
||
|
var Fee_Version_name = map[int32]string{
|
||
|
0: "UNKNOWN_VERSION",
|
||
|
1: "_0_0_1",
|
||
|
}
|
||
|
var Fee_Version_value = map[string]int32{
|
||
|
"UNKNOWN_VERSION": 0,
|
||
|
"_0_0_1": 1,
|
||
|
}
|
||
|
|
||
|
func (x Fee_Version) Enum() *Fee_Version {
|
||
|
p := new(Fee_Version)
|
||
|
*p = x
|
||
|
return p
|
||
|
}
|
||
|
func (x Fee_Version) String() string {
|
||
|
return proto.EnumName(Fee_Version_name, int32(x))
|
||
|
}
|
||
|
func (x *Fee_Version) UnmarshalJSON(data []byte) error {
|
||
|
value, err := proto.UnmarshalJSONEnum(Fee_Version_value, data, "Fee_Version")
|
||
|
if err != nil {
|
||
|
return err
|
||
|
}
|
||
|
*x = Fee_Version(value)
|
||
|
return nil
|
||
|
}
|
||
|
func (Fee_Version) EnumDescriptor() ([]byte, []int) { return fileDescriptor2, []int{0, 0} }
|
||
|
|
||
|
type Fee_Currency int32
|
||
|
|
||
|
const (
|
||
|
Fee_UNKNOWN_CURRENCY Fee_Currency = 0
|
||
|
Fee_LBC Fee_Currency = 1
|
||
|
Fee_BTC Fee_Currency = 2
|
||
|
Fee_USD Fee_Currency = 3
|
||
|
)
|
||
|
|
||
|
var Fee_Currency_name = map[int32]string{
|
||
|
0: "UNKNOWN_CURRENCY",
|
||
|
1: "LBC",
|
||
|
2: "BTC",
|
||
|
3: "USD",
|
||
|
}
|
||
|
var Fee_Currency_value = map[string]int32{
|
||
|
"UNKNOWN_CURRENCY": 0,
|
||
|
"LBC": 1,
|
||
|
"BTC": 2,
|
||
|
"USD": 3,
|
||
|
}
|
||
|
|
||
|
func (x Fee_Currency) Enum() *Fee_Currency {
|
||
|
p := new(Fee_Currency)
|
||
|
*p = x
|
||
|
return p
|
||
|
}
|
||
|
func (x Fee_Currency) String() string {
|
||
|
return proto.EnumName(Fee_Currency_name, int32(x))
|
||
|
}
|
||
|
func (x *Fee_Currency) UnmarshalJSON(data []byte) error {
|
||
|
value, err := proto.UnmarshalJSONEnum(Fee_Currency_value, data, "Fee_Currency")
|
||
|
if err != nil {
|
||
|
return err
|
||
|
}
|
||
|
*x = Fee_Currency(value)
|
||
|
return nil
|
||
|
}
|
||
|
func (Fee_Currency) EnumDescriptor() ([]byte, []int) { return fileDescriptor2, []int{0, 1} }
|
||
|
|
||
|
type Fee struct {
|
||
|
Version *Fee_Version `protobuf:"varint,1,req,name=version,enum=pb.Fee_Version" json:"version,omitempty"`
|
||
|
Currency *Fee_Currency `protobuf:"varint,2,req,name=currency,enum=pb.Fee_Currency" json:"currency,omitempty"`
|
||
|
Address []byte `protobuf:"bytes,3,req,name=address" json:"address,omitempty"`
|
||
|
Amount *float32 `protobuf:"fixed32,4,req,name=amount" json:"amount,omitempty"`
|
||
|
XXX_unrecognized []byte `json:"-"`
|
||
|
}
|
||
|
|
||
|
func (m *Fee) Reset() { *m = Fee{} }
|
||
|
func (m *Fee) String() string { return proto.CompactTextString(m) }
|
||
|
func (*Fee) ProtoMessage() {}
|
||
|
func (*Fee) Descriptor() ([]byte, []int) { return fileDescriptor2, []int{0} }
|
||
|
|
||
|
func (m *Fee) GetVersion() Fee_Version {
|
||
|
if m != nil && m.Version != nil {
|
||
|
return *m.Version
|
||
|
}
|
||
|
return Fee_UNKNOWN_VERSION
|
||
|
}
|
||
|
|
||
|
func (m *Fee) GetCurrency() Fee_Currency {
|
||
|
if m != nil && m.Currency != nil {
|
||
|
return *m.Currency
|
||
|
}
|
||
|
return Fee_UNKNOWN_CURRENCY
|
||
|
}
|
||
|
|
||
|
func (m *Fee) GetAddress() []byte {
|
||
|
if m != nil {
|
||
|
return m.Address
|
||
|
}
|
||
|
return nil
|
||
|
}
|
||
|
|
||
|
func (m *Fee) GetAmount() float32 {
|
||
|
if m != nil && m.Amount != nil {
|
||
|
return *m.Amount
|
||
|
}
|
||
|
return 0
|
||
|
}
|
||
|
|
||
|
func init() {
|
||
|
proto.RegisterType((*Fee)(nil), "pb.Fee")
|
||
|
proto.RegisterEnum("pb.Fee_Version", Fee_Version_name, Fee_Version_value)
|
||
|
proto.RegisterEnum("pb.Fee_Currency", Fee_Currency_name, Fee_Currency_value)
|
||
|
}
|
||
|
|
||
|
func init() { proto.RegisterFile("fee.proto", fileDescriptor2) }
|
||
|
|
||
|
var fileDescriptor2 = []byte{
|
||
|
// 224 bytes of a gzipped FileDescriptorProto
|
||
|
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x3c, 0x8d, 0xcf, 0x4b, 0xc3, 0x30,
|
||
|
0x14, 0xc7, 0xd7, 0x54, 0xd6, 0xf9, 0x10, 0xf7, 0x78, 0x8a, 0xe4, 0x58, 0x7a, 0xaa, 0x22, 0x61,
|
||
|
0x7a, 0xf5, 0xb6, 0xb8, 0x81, 0x28, 0x19, 0x64, 0x76, 0xe2, 0x29, 0xec, 0xc7, 0x13, 0x3c, 0xd8,
|
||
|
0x94, 0x74, 0x13, 0xfc, 0xd3, 0xbd, 0x49, 0xb5, 0xf1, 0xf6, 0xfd, 0xf1, 0x81, 0x0f, 0x1c, 0xbf,
|
||
|
0x31, 0xab, 0x26, 0xf8, 0xbd, 0x27, 0xd1, 0x6c, 0x8a, 0xef, 0x04, 0xd2, 0x39, 0x33, 0x5d, 0x42,
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