-
Notifications
You must be signed in to change notification settings - Fork 0
/
protocol.pb.go
163 lines (138 loc) · 5.75 KB
/
protocol.pb.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: protocol.proto
package protos
import (
fmt "fmt"
proto "github.com/golang/protobuf/proto"
math "math"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
type ObjType int32
const (
ObjType_BlockHeaders ObjType = 0
ObjType_BlockBodies ObjType = 1
ObjType_BlockTransactions ObjType = 2
ObjType_RoverBestHeights ObjType = 3
ObjType_RoverBlockHeaders ObjType = 4
ObjType_RoverBlockBodies ObjType = 5
ObjType_RoverTransactionHeaders ObjType = 6
ObjType_RoverMarkedHeaders ObjType = 7
)
var ObjType_name = map[int32]string{
0: "BlockHeaders",
1: "BlockBodies",
2: "BlockTransactions",
3: "RoverBestHeights",
4: "RoverBlockHeaders",
5: "RoverBlockBodies",
6: "RoverTransactionHeaders",
7: "RoverMarkedHeaders",
}
var ObjType_value = map[string]int32{
"BlockHeaders": 0,
"BlockBodies": 1,
"BlockTransactions": 2,
"RoverBestHeights": 3,
"RoverBlockHeaders": 4,
"RoverBlockBodies": 5,
"RoverTransactionHeaders": 6,
"RoverMarkedHeaders": 7,
}
func (x ObjType) String() string {
return proto.EnumName(ObjType_name, int32(x))
}
func (ObjType) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_2bc2336598a3f7e0, []int{0}
}
type MsgType int32
const (
MsgType_GetObjectsRequest MsgType = 0
)
var MsgType_name = map[int32]string{
0: "GetObjectsRequest",
}
var MsgType_value = map[string]int32{
"GetObjectsRequest": 0,
}
func (x MsgType) String() string {
return proto.EnumName(MsgType_name, int32(x))
}
func (MsgType) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_2bc2336598a3f7e0, []int{1}
}
type MessageGetObjectsRequest struct {
Type MsgType `protobuf:"varint,1,opt,name=type,proto3,enum=MsgType" json:"type,omitempty"`
Body ObjType `protobuf:"varint,2,opt,name=body,proto3,enum=ObjType" json:"body,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *MessageGetObjectsRequest) Reset() { *m = MessageGetObjectsRequest{} }
func (m *MessageGetObjectsRequest) String() string { return proto.CompactTextString(m) }
func (*MessageGetObjectsRequest) ProtoMessage() {}
func (*MessageGetObjectsRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_2bc2336598a3f7e0, []int{0}
}
func (m *MessageGetObjectsRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_MessageGetObjectsRequest.Unmarshal(m, b)
}
func (m *MessageGetObjectsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_MessageGetObjectsRequest.Marshal(b, m, deterministic)
}
func (m *MessageGetObjectsRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_MessageGetObjectsRequest.Merge(m, src)
}
func (m *MessageGetObjectsRequest) XXX_Size() int {
return xxx_messageInfo_MessageGetObjectsRequest.Size(m)
}
func (m *MessageGetObjectsRequest) XXX_DiscardUnknown() {
xxx_messageInfo_MessageGetObjectsRequest.DiscardUnknown(m)
}
var xxx_messageInfo_MessageGetObjectsRequest proto.InternalMessageInfo
func (m *MessageGetObjectsRequest) GetType() MsgType {
if m != nil {
return m.Type
}
return MsgType_GetObjectsRequest
}
func (m *MessageGetObjectsRequest) GetBody() ObjType {
if m != nil {
return m.Body
}
return ObjType_BlockHeaders
}
func init() {
proto.RegisterEnum("ObjType", ObjType_name, ObjType_value)
proto.RegisterEnum("MsgType", MsgType_name, MsgType_value)
proto.RegisterType((*MessageGetObjectsRequest)(nil), "MessageGetObjectsRequest")
}
func init() { proto.RegisterFile("protocol.proto", fileDescriptor_2bc2336598a3f7e0) }
var fileDescriptor_2bc2336598a3f7e0 = []byte{
// 273 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x64, 0x90, 0xdf, 0x4a, 0xc3, 0x30,
0x14, 0xc6, 0xd7, 0x39, 0x57, 0x89, 0x32, 0x63, 0xf0, 0x4f, 0x41, 0x2f, 0x86, 0x57, 0x52, 0xb4,
0x05, 0x7d, 0x83, 0xde, 0xb8, 0x9b, 0x32, 0x28, 0xc3, 0x0b, 0xef, 0xda, 0xf4, 0x90, 0x65, 0xeb,
0x7a, 0x6a, 0x4e, 0x26, 0xf4, 0xd9, 0x7c, 0x39, 0x69, 0xd6, 0x61, 0xc1, 0xab, 0x84, 0xdf, 0x77,
0xf2, 0x0b, 0xe7, 0x63, 0xb3, 0xc6, 0xa0, 0x45, 0x89, 0x55, 0xe4, 0x2e, 0x8f, 0x1f, 0x2c, 0x48,
0x81, 0x28, 0x57, 0xf0, 0x0e, 0x76, 0x59, 0x6c, 0x40, 0x5a, 0xca, 0xe0, 0x6b, 0x0f, 0x64, 0xc5,
0x03, 0x9b, 0xd8, 0xb6, 0x81, 0xc0, 0x9b, 0x7b, 0x4f, 0xb3, 0xd7, 0xb3, 0x28, 0x25, 0xb5, 0x6a,
0x1b, 0xc8, 0x1c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