github.com/igggame/nebulas-go@v2.1.0+incompatible/common/dag/pb/dag.pb.go (about) 1 // Code generated by protoc-gen-gogo. DO NOT EDIT. 2 // source: dag.proto 3 4 /* 5 Package dagpb is a generated protocol buffer package. 6 7 It is generated from these files: 8 dag.proto 9 10 It has these top-level messages: 11 Dag 12 Node 13 */ 14 package dagpb 15 16 import proto "github.com/gogo/protobuf/proto" 17 import fmt "fmt" 18 import math "math" 19 20 // Reference imports to suppress errors if they are not otherwise used. 21 var _ = proto.Marshal 22 var _ = fmt.Errorf 23 var _ = math.Inf 24 25 // This is a compile-time assertion to ensure that this generated file 26 // is compatible with the proto package it is being compiled against. 27 // A compilation error at this line likely means your copy of the 28 // proto package needs to be updated. 29 const _ = proto.GoGoProtoPackageIsVersion2 // please upgrade the proto package 30 31 type Dag struct { 32 Nodes []*Node `protobuf:"bytes,1,rep,name=Nodes" json:"Nodes,omitempty"` 33 } 34 35 func (m *Dag) Reset() { *m = Dag{} } 36 func (m *Dag) String() string { return proto.CompactTextString(m) } 37 func (*Dag) ProtoMessage() {} 38 func (*Dag) Descriptor() ([]byte, []int) { return fileDescriptorDag, []int{0} } 39 40 func (m *Dag) GetNodes() []*Node { 41 if m != nil { 42 return m.Nodes 43 } 44 return nil 45 } 46 47 type Node struct { 48 Key string `protobuf:"bytes,1,opt,name=Key,proto3" json:"Key,omitempty"` 49 Index int32 `protobuf:"varint,2,opt,name=Index,proto3" json:"Index,omitempty"` 50 Children []int32 `protobuf:"varint,3,rep,packed,name=Children" json:"Children,omitempty"` 51 } 52 53 func (m *Node) Reset() { *m = Node{} } 54 func (m *Node) String() string { return proto.CompactTextString(m) } 55 func (*Node) ProtoMessage() {} 56 func (*Node) Descriptor() ([]byte, []int) { return fileDescriptorDag, []int{1} } 57 58 func (m *Node) GetKey() string { 59 if m != nil { 60 return m.Key 61 } 62 return "" 63 } 64 65 func (m *Node) GetIndex() int32 { 66 if m != nil { 67 return m.Index 68 } 69 return 0 70 } 71 72 func (m *Node) GetChildren() []int32 { 73 if m != nil { 74 return m.Children 75 } 76 return nil 77 } 78 79 func init() { 80 proto.RegisterType((*Dag)(nil), "dagpb.Dag") 81 proto.RegisterType((*Node)(nil), "dagpb.Node") 82 } 83 84 func init() { proto.RegisterFile("dag.proto", fileDescriptorDag) } 85 86 var fileDescriptorDag = []byte{ 87 // 140 bytes of a gzipped FileDescriptorProto 88 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0xe2, 0x4c, 0x49, 0x4c, 0xd7, 89 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x62, 0x4d, 0x49, 0x4c, 0x2f, 0x48, 0x52, 0xd2, 0xe0, 0x62, 90 0x76, 0x49, 0x4c, 0x17, 0x52, 0xe4, 0x62, 0xf5, 0xcb, 0x4f, 0x49, 0x2d, 0x96, 0x60, 0x54, 0x60, 91 0xd6, 0xe0, 0x36, 0xe2, 0xd6, 0x03, 0xcb, 0xea, 0x81, 0xc4, 0x82, 0x20, 0x32, 0x4a, 0x5e, 0x5c, 92 0x2c, 0x20, 0x86, 0x90, 0x00, 0x17, 0xb3, 0x77, 0x6a, 0xa5, 0x04, 0xa3, 0x02, 0xa3, 0x06, 0x67, 93 0x10, 0x88, 0x29, 0x24, 0xc2, 0xc5, 0xea, 0x99, 0x97, 0x92, 0x5a, 0x21, 0xc1, 0xa4, 0xc0, 0xa8, 94 0xc1, 0x1a, 0x04, 0xe1, 0x08, 0x49, 0x71, 0x71, 0x38, 0x67, 0x64, 0xe6, 0xa4, 0x14, 0xa5, 0xe6, 95 0x49, 0x30, 0x2b, 0x30, 0x6b, 0xb0, 0x06, 0xc1, 0xf9, 0x49, 0x6c, 0x60, 0x37, 0x18, 0x03, 0x02, 96 0x00, 0x00, 0xff, 0xff, 0xd9, 0x69, 0x2e, 0xcd, 0x90, 0x00, 0x00, 0x00, 97 }