github.com/turingchain2020/turingchain@v1.1.21/system/store/mavl/db/ticket/ticket.pb.go (about)

     1  // Code generated by protoc-gen-go. DO NOT EDIT.
     2  // source: ticket.proto
     3  
     4  package ticket
     5  
     6  import (
     7  	fmt "fmt"
     8  	math "math"
     9  
    10  	proto "github.com/golang/protobuf/proto"
    11  )
    12  
    13  // Reference imports to suppress errors if they are not otherwise used.
    14  var _ = proto.Marshal
    15  var _ = fmt.Errorf
    16  var _ = math.Inf
    17  
    18  // This is a compile-time assertion to ensure that this generated file
    19  // is compatible with the proto package it is being compiled against.
    20  // A compilation error at this line likely means your copy of the
    21  // proto package needs to be updated.
    22  const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
    23  
    24  type Ticket struct {
    25  	TicketId string `protobuf:"bytes,1,opt,name=ticketId,proto3" json:"ticketId,omitempty"`
    26  	// 0 -> 未成熟 1 -> 可挖矿 2 -> 已挖成功 3-> 已关闭
    27  	Status int32 `protobuf:"varint,2,opt,name=status,proto3" json:"status,omitempty"`
    28  	// genesis 创建的私钥比较特殊
    29  	IsGenesis bool `protobuf:"varint,3,opt,name=isGenesis,proto3" json:"isGenesis,omitempty"`
    30  	//创建时间
    31  	CreateTime int64 `protobuf:"varint,4,opt,name=createTime,proto3" json:"createTime,omitempty"`
    32  	//挖矿时间
    33  	MinerTime int64 `protobuf:"varint,5,opt,name=minerTime,proto3" json:"minerTime,omitempty"`
    34  	//挖到的币的数目
    35  	MinerValue   int64  `protobuf:"varint,8,opt,name=minerValue,proto3" json:"minerValue,omitempty"`
    36  	MinerAddress string `protobuf:"bytes,6,opt,name=minerAddress,proto3" json:"minerAddress,omitempty"`
    37  	// return wallet
    38  	ReturnAddress string `protobuf:"bytes,7,opt,name=returnAddress,proto3" json:"returnAddress,omitempty"`
    39  	// miner Price
    40  	Price                int64    `protobuf:"varint,9,opt,name=price,proto3" json:"price,omitempty"`
    41  	XXX_NoUnkeyedLiteral struct{} `json:"-"`
    42  	XXX_unrecognized     []byte   `json:"-"`
    43  	XXX_sizecache        int32    `json:"-"`
    44  }
    45  
    46  func (m *Ticket) Reset()         { *m = Ticket{} }
    47  func (m *Ticket) String() string { return proto.CompactTextString(m) }
    48  func (*Ticket) ProtoMessage()    {}
    49  func (*Ticket) Descriptor() ([]byte, []int) {
    50  	return fileDescriptor_98a6c21780e82d22, []int{0}
    51  }
    52  
    53  func (m *Ticket) XXX_Unmarshal(b []byte) error {
    54  	return xxx_messageInfo_Ticket.Unmarshal(m, b)
    55  }
    56  func (m *Ticket) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
    57  	return xxx_messageInfo_Ticket.Marshal(b, m, deterministic)
    58  }
    59  func (m *Ticket) XXX_Merge(src proto.Message) {
    60  	xxx_messageInfo_Ticket.Merge(m, src)
    61  }
    62  func (m *Ticket) XXX_Size() int {
    63  	return xxx_messageInfo_Ticket.Size(m)
    64  }
    65  func (m *Ticket) XXX_DiscardUnknown() {
    66  	xxx_messageInfo_Ticket.DiscardUnknown(m)
    67  }
    68  
    69  var xxx_messageInfo_Ticket proto.InternalMessageInfo
    70  
    71  func (m *Ticket) GetTicketId() string {
    72  	if m != nil {
    73  		return m.TicketId
    74  	}
    75  	return ""
    76  }
    77  
    78  func (m *Ticket) GetStatus() int32 {
    79  	if m != nil {
    80  		return m.Status
    81  	}
    82  	return 0
    83  }
    84  
    85  func (m *Ticket) GetIsGenesis() bool {
    86  	if m != nil {
    87  		return m.IsGenesis
    88  	}
    89  	return false
    90  }
    91  
    92  func (m *Ticket) GetCreateTime() int64 {
    93  	if m != nil {
    94  		return m.CreateTime
    95  	}
    96  	return 0
    97  }
    98  
    99  func (m *Ticket) GetMinerTime() int64 {
   100  	if m != nil {
   101  		return m.MinerTime
   102  	}
   103  	return 0
   104  }
   105  
   106  func (m *Ticket) GetMinerValue() int64 {
   107  	if m != nil {
   108  		return m.MinerValue
   109  	}
   110  	return 0
   111  }
   112  
   113  func (m *Ticket) GetMinerAddress() string {
   114  	if m != nil {
   115  		return m.MinerAddress
   116  	}
   117  	return ""
   118  }
   119  
   120  func (m *Ticket) GetReturnAddress() string {
   121  	if m != nil {
   122  		return m.ReturnAddress
   123  	}
   124  	return ""
   125  }
   126  
   127  func (m *Ticket) GetPrice() int64 {
   128  	if m != nil {
   129  		return m.Price
   130  	}
   131  	return 0
   132  }
   133  
   134  func init() {
   135  	proto.RegisterType((*Ticket)(nil), "ticket.Ticket")
   136  }
   137  
   138  func init() {
   139  	proto.RegisterFile("ticket.proto", fileDescriptor_98a6c21780e82d22)
   140  }
   141  
   142  var fileDescriptor_98a6c21780e82d22 = []byte{
   143  	// 207 bytes of a gzipped FileDescriptorProto
   144  	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x54, 0x90, 0xcd, 0x4a, 0xc4, 0x30,
   145  	0x14, 0x85, 0x49, 0x6b, 0x63, 0x7b, 0xa9, 0x9b, 0x8b, 0x48, 0x10, 0x91, 0x50, 0x5c, 0x64, 0xe5,
   146  	0xc6, 0x27, 0x70, 0x25, 0x6e, 0x43, 0x71, 0x5f, 0xdb, 0xbb, 0x08, 0xda, 0x1f, 0x92, 0xf4, 0x5d,
   147  	0x7c, 0x5c, 0xe9, 0xcd, 0xcc, 0x74, 0xba, 0xcb, 0xf7, 0x9d, 0x73, 0x48, 0x08, 0xd4, 0xd1, 0xf5,
   148  	0x3f, 0x14, 0x5f, 0x17, 0x3f, 0xc7, 0x19, 0x65, 0xa2, 0xe6, 0x2f, 0x03, 0xd9, 0xf2, 0x11, 0x1f,
   149  	0xa1, 0x4c, 0xf2, 0x73, 0x50, 0x42, 0x0b, 0x53, 0xd9, 0x0b, 0xe3, 0x03, 0xc8, 0x10, 0xbb, 0xb8,
   150  	0x06, 0x95, 0x69, 0x61, 0x0a, 0x7b, 0x22, 0x7c, 0x82, 0xca, 0x85, 0x0f, 0x9a, 0x28, 0xb8, 0xa0,
   151  	0x72, 0x2d, 0x4c, 0x69, 0x77, 0x81, 0xcf, 0x00, 0xbd, 0xa7, 0x2e, 0x52, 0xeb, 0x46, 0x52, 0x37,
   152  	0x5a, 0x98, 0xdc, 0x5e, 0x99, 0x6d, 0x3d, 0xba, 0x89, 0x3c, 0xc7, 0x05, 0xc7, 0xbb, 0xd8, 0xd6,
   153  	0x0c, 0x5f, 0xdd, 0xef, 0x4a, 0xaa, 0x4c, 0xeb, 0xdd, 0x60, 0x03, 0x35, 0xd3, 0xfb, 0x30, 0x78,
   154  	0x0a, 0x41, 0x49, 0x7e, 0xf3, 0xc1, 0xe1, 0x0b, 0xdc, 0x79, 0x8a, 0xab, 0x9f, 0xce, 0xa5, 0x5b,
   155  	0x2e, 0x1d, 0x25, 0xde, 0x43, 0xb1, 0x78, 0xd7, 0x93, 0xaa, 0xf8, 0x92, 0x04, 0xdf, 0x92, 0x7f,
   156  	0xea, 0xed, 0x3f, 0x00, 0x00, 0xff, 0xff, 0xb6, 0xb4, 0xe8, 0x04, 0x39, 0x01, 0x00, 0x00,
   157  }