github.com/igggame/nebulas-go@v2.1.0+incompatible/core/pb/dynasty.pb.go (about)

     1  // Code generated by protoc-gen-gogo. DO NOT EDIT.
     2  // source: dynasty.proto
     3  
     4  /*
     5  Package corepb is a generated protocol buffer package.
     6  
     7  It is generated from these files:
     8  	dynasty.proto
     9  
    10  It has these top-level messages:
    11  	Dynasty
    12  	DynastyMeta
    13  	DynastyCandidate
    14  */
    15  package corepb
    16  
    17  import proto "github.com/gogo/protobuf/proto"
    18  import fmt "fmt"
    19  import math "math"
    20  
    21  // Reference imports to suppress errors if they are not otherwise used.
    22  var _ = proto.Marshal
    23  var _ = fmt.Errorf
    24  var _ = math.Inf
    25  
    26  // This is a compile-time assertion to ensure that this generated file
    27  // is compatible with the proto package it is being compiled against.
    28  // A compilation error at this line likely means your copy of the
    29  // proto package needs to be updated.
    30  const _ = proto.GoGoProtoPackageIsVersion2 // please upgrade the proto package
    31  
    32  type Dynasty struct {
    33  	// dynasty meta
    34  	Meta *DynastyMeta `protobuf:"bytes,1,opt,name=meta" json:"meta,omitempty"`
    35  	// candidate dynasty
    36  	Candidate []*DynastyCandidate `protobuf:"bytes,2,rep,name=candidate" json:"candidate,omitempty"`
    37  }
    38  
    39  func (m *Dynasty) Reset()                    { *m = Dynasty{} }
    40  func (m *Dynasty) String() string            { return proto.CompactTextString(m) }
    41  func (*Dynasty) ProtoMessage()               {}
    42  func (*Dynasty) Descriptor() ([]byte, []int) { return fileDescriptorDynasty, []int{0} }
    43  
    44  func (m *Dynasty) GetMeta() *DynastyMeta {
    45  	if m != nil {
    46  		return m.Meta
    47  	}
    48  	return nil
    49  }
    50  
    51  func (m *Dynasty) GetCandidate() []*DynastyCandidate {
    52  	if m != nil {
    53  		return m.Candidate
    54  	}
    55  	return nil
    56  }
    57  
    58  type DynastyMeta struct {
    59  	// ChainID.
    60  	ChainId uint32 `protobuf:"varint,1,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"`
    61  }
    62  
    63  func (m *DynastyMeta) Reset()                    { *m = DynastyMeta{} }
    64  func (m *DynastyMeta) String() string            { return proto.CompactTextString(m) }
    65  func (*DynastyMeta) ProtoMessage()               {}
    66  func (*DynastyMeta) Descriptor() ([]byte, []int) { return fileDescriptorDynasty, []int{1} }
    67  
    68  func (m *DynastyMeta) GetChainId() uint32 {
    69  	if m != nil {
    70  		return m.ChainId
    71  	}
    72  	return 0
    73  }
    74  
    75  type DynastyCandidate struct {
    76  	// effective dynasty
    77  	Serial uint64 `protobuf:"varint,1,opt,name=serial,proto3" json:"serial,omitempty"`
    78  	// dpos dynasty address
    79  	Dynasty []string `protobuf:"bytes,2,rep,name=dynasty" json:"dynasty,omitempty"`
    80  }
    81  
    82  func (m *DynastyCandidate) Reset()                    { *m = DynastyCandidate{} }
    83  func (m *DynastyCandidate) String() string            { return proto.CompactTextString(m) }
    84  func (*DynastyCandidate) ProtoMessage()               {}
    85  func (*DynastyCandidate) Descriptor() ([]byte, []int) { return fileDescriptorDynasty, []int{2} }
    86  
    87  func (m *DynastyCandidate) GetSerial() uint64 {
    88  	if m != nil {
    89  		return m.Serial
    90  	}
    91  	return 0
    92  }
    93  
    94  func (m *DynastyCandidate) GetDynasty() []string {
    95  	if m != nil {
    96  		return m.Dynasty
    97  	}
    98  	return nil
    99  }
   100  
   101  func init() {
   102  	proto.RegisterType((*Dynasty)(nil), "corepb.Dynasty")
   103  	proto.RegisterType((*DynastyMeta)(nil), "corepb.DynastyMeta")
   104  	proto.RegisterType((*DynastyCandidate)(nil), "corepb.DynastyCandidate")
   105  }
   106  
   107  func init() { proto.RegisterFile("dynasty.proto", fileDescriptorDynasty) }
   108  
   109  var fileDescriptorDynasty = []byte{
   110  	// 178 bytes of a gzipped FileDescriptorProto
   111  	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0xe2, 0x4d, 0xa9, 0xcc, 0x4b,
   112  	0x2c, 0x2e, 0xa9, 0xd4, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x62, 0x4b, 0xce, 0x2f, 0x4a, 0x2d,
   113  	0x48, 0x52, 0xca, 0xe2, 0x62, 0x77, 0x81, 0x48, 0x08, 0xa9, 0x73, 0xb1, 0xe4, 0xa6, 0x96, 0x24,
   114  	0x4a, 0x30, 0x2a, 0x30, 0x6a, 0x70, 0x1b, 0x09, 0xeb, 0x41, 0x54, 0xe8, 0x41, 0xa5, 0x7d, 0x53,
   115  	0x4b, 0x12, 0x83, 0xc0, 0x0a, 0x84, 0xcc, 0xb8, 0x38, 0x93, 0x13, 0xf3, 0x52, 0x32, 0x53, 0x12,
   116  	0x4b, 0x52, 0x25, 0x98, 0x14, 0x98, 0x35, 0xb8, 0x8d, 0x24, 0xd0, 0x54, 0x3b, 0xc3, 0xe4, 0x83,
   117  	0x10, 0x4a, 0x95, 0x34, 0xb8, 0xb8, 0x91, 0x0c, 0x13, 0x92, 0xe4, 0xe2, 0x48, 0xce, 0x48, 0xcc,
   118  	0xcc, 0x8b, 0xcf, 0x4c, 0x01, 0xdb, 0xc9, 0x1b, 0xc4, 0x0e, 0xe6, 0x7b, 0xa6, 0x28, 0xb9, 0x70,
   119  	0x09, 0xa0, 0x1b, 0x24, 0x24, 0xc6, 0xc5, 0x56, 0x9c, 0x5a, 0x94, 0x99, 0x98, 0x03, 0x56, 0xcc,
   120  	0x12, 0x04, 0xe5, 0x09, 0x49, 0x70, 0xb1, 0x43, 0xbd, 0x06, 0x76, 0x0b, 0x67, 0x10, 0x8c, 0x9b,
   121  	0xc4, 0x06, 0xf6, 0xaa, 0x31, 0x20, 0x00, 0x00, 0xff, 0xff, 0xf3, 0x0d, 0x40, 0xa3, 0xfb, 0x00,
   122  	0x00, 0x00,
   123  }