-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathprotobuf.pb.go
303 lines (268 loc) · 10.7 KB
/
protobuf.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
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: protobuf.proto
package main
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
// 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.ProtoPackageIsVersion2 // please upgrade the proto package
type InnerStructB struct {
Bool bool `protobuf:"varint,1,opt,name=Bool,proto3" json:"Bool,omitempty"`
Float64 float64 `protobuf:"fixed64,2,opt,name=Float64,proto3" json:"Float64,omitempty"`
Int8 int32 `protobuf:"varint,3,opt,name=Int8,proto3" json:"Int8,omitempty"`
Uint64S []uint64 `protobuf:"varint,4,rep,packed,name=Uint64s,proto3" json:"Uint64s,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *InnerStructB) Reset() { *m = InnerStructB{} }
func (m *InnerStructB) String() string { return proto.CompactTextString(m) }
func (*InnerStructB) ProtoMessage() {}
func (*InnerStructB) Descriptor() ([]byte, []int) {
return fileDescriptor_protobuf_be9db850f74cd161, []int{0}
}
func (m *InnerStructB) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_InnerStructB.Unmarshal(m, b)
}
func (m *InnerStructB) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_InnerStructB.Marshal(b, m, deterministic)
}
func (dst *InnerStructB) XXX_Merge(src proto.Message) {
xxx_messageInfo_InnerStructB.Merge(dst, src)
}
func (m *InnerStructB) XXX_Size() int {
return xxx_messageInfo_InnerStructB.Size(m)
}
func (m *InnerStructB) XXX_DiscardUnknown() {
xxx_messageInfo_InnerStructB.DiscardUnknown(m)
}
var xxx_messageInfo_InnerStructB proto.InternalMessageInfo
func (m *InnerStructB) GetBool() bool {
if m != nil {
return m.Bool
}
return false
}
func (m *InnerStructB) GetFloat64() float64 {
if m != nil {
return m.Float64
}
return 0
}
func (m *InnerStructB) GetInt8() int32 {
if m != nil {
return m.Int8
}
return 0
}
func (m *InnerStructB) GetUint64S() []uint64 {
if m != nil {
return m.Uint64S
}
return nil
}
type Int32S struct {
Ints []int32 `protobuf:"varint,1,rep,packed,name=ints,proto3" json:"ints,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Int32S) Reset() { *m = Int32S{} }
func (m *Int32S) String() string { return proto.CompactTextString(m) }
func (*Int32S) ProtoMessage() {}
func (*Int32S) Descriptor() ([]byte, []int) {
return fileDescriptor_protobuf_be9db850f74cd161, []int{1}
}
func (m *Int32S) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Int32S.Unmarshal(m, b)
}
func (m *Int32S) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Int32S.Marshal(b, m, deterministic)
}
func (dst *Int32S) XXX_Merge(src proto.Message) {
xxx_messageInfo_Int32S.Merge(dst, src)
}
func (m *Int32S) XXX_Size() int {
return xxx_messageInfo_Int32S.Size(m)
}
func (m *Int32S) XXX_DiscardUnknown() {
xxx_messageInfo_Int32S.DiscardUnknown(m)
}
var xxx_messageInfo_Int32S proto.InternalMessageInfo
func (m *Int32S) GetInts() []int32 {
if m != nil {
return m.Ints
}
return nil
}
type StructB struct {
Str string `protobuf:"bytes,1,opt,name=Str,proto3" json:"Str,omitempty"`
Slice []byte `protobuf:"bytes,2,opt,name=Slice,proto3" json:"Slice,omitempty"`
MapStrUint16 map[string]uint32 `protobuf:"bytes,3,rep,name=MapStrUint16,proto3" json:"MapStrUint16,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"varint,2,opt,name=value,proto3"`
Inner *InnerStructB `protobuf:"bytes,4,opt,name=Inner,proto3" json:"Inner,omitempty"`
Bt uint32 `protobuf:"varint,5,opt,name=Bt,proto3" json:"Bt,omitempty"`
Int int32 `protobuf:"varint,6,opt,name=Int,proto3" json:"Int,omitempty"`
Int64 int64 `protobuf:"varint,7,opt,name=Int64,proto3" json:"Int64,omitempty"`
Strs []string `protobuf:"bytes,8,rep,name=Strs,proto3" json:"Strs,omitempty"`
SliceI64 []int64 `protobuf:"varint,9,rep,packed,name=SliceI64,proto3" json:"SliceI64,omitempty"`
MapStrUint64 map[string]uint64 `protobuf:"bytes,10,rep,name=MapStrUint64,proto3" json:"MapStrUint64,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"varint,2,opt,name=value,proto3"`
Recursive []*StructB `protobuf:"bytes,11,rep,name=Recursive,proto3" json:"Recursive,omitempty"`
Float64 float64 `protobuf:"fixed64,12,opt,name=Float64,proto3" json:"Float64,omitempty"`
MapStrSlice map[string]*Int32S `protobuf:"bytes,13,rep,name=MapStrSlice,proto3" json:"MapStrSlice,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
F32 float32 `protobuf:"fixed32,14,opt,name=F32,proto3" json:"F32,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *StructB) Reset() { *m = StructB{} }
func (m *StructB) String() string { return proto.CompactTextString(m) }
func (*StructB) ProtoMessage() {}
func (*StructB) Descriptor() ([]byte, []int) {
return fileDescriptor_protobuf_be9db850f74cd161, []int{2}
}
func (m *StructB) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_StructB.Unmarshal(m, b)
}
func (m *StructB) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_StructB.Marshal(b, m, deterministic)
}
func (dst *StructB) XXX_Merge(src proto.Message) {
xxx_messageInfo_StructB.Merge(dst, src)
}
func (m *StructB) XXX_Size() int {
return xxx_messageInfo_StructB.Size(m)
}
func (m *StructB) XXX_DiscardUnknown() {
xxx_messageInfo_StructB.DiscardUnknown(m)
}
var xxx_messageInfo_StructB proto.InternalMessageInfo
func (m *StructB) GetStr() string {
if m != nil {
return m.Str
}
return ""
}
func (m *StructB) GetSlice() []byte {
if m != nil {
return m.Slice
}
return nil
}
func (m *StructB) GetMapStrUint16() map[string]uint32 {
if m != nil {
return m.MapStrUint16
}
return nil
}
func (m *StructB) GetInner() *InnerStructB {
if m != nil {
return m.Inner
}
return nil
}
func (m *StructB) GetBt() uint32 {
if m != nil {
return m.Bt
}
return 0
}
func (m *StructB) GetInt() int32 {
if m != nil {
return m.Int
}
return 0
}
func (m *StructB) GetInt64() int64 {
if m != nil {
return m.Int64
}
return 0
}
func (m *StructB) GetStrs() []string {
if m != nil {
return m.Strs
}
return nil
}
func (m *StructB) GetSliceI64() []int64 {
if m != nil {
return m.SliceI64
}
return nil
}
func (m *StructB) GetMapStrUint64() map[string]uint64 {
if m != nil {
return m.MapStrUint64
}
return nil
}
func (m *StructB) GetRecursive() []*StructB {
if m != nil {
return m.Recursive
}
return nil
}
func (m *StructB) GetFloat64() float64 {
if m != nil {
return m.Float64
}
return 0
}
func (m *StructB) GetMapStrSlice() map[string]*Int32S {
if m != nil {
return m.MapStrSlice
}
return nil
}
func (m *StructB) GetF32() float32 {
if m != nil {
return m.F32
}
return 0
}
func init() {
proto.RegisterType((*InnerStructB)(nil), "InnerStructB")
proto.RegisterType((*Int32S)(nil), "Int32s")
proto.RegisterType((*StructB)(nil), "StructB")
proto.RegisterMapType((map[string]*Int32S)(nil), "StructB.MapStrSliceEntry")
proto.RegisterMapType((map[string]uint32)(nil), "StructB.MapStrUint16Entry")
proto.RegisterMapType((map[string]uint64)(nil), "StructB.MapStrUint64Entry")
}
func init() { proto.RegisterFile("protobuf.proto", fileDescriptor_protobuf_be9db850f74cd161) }
var fileDescriptor_protobuf_be9db850f74cd161 = []byte{
// 430 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x84, 0x53, 0x4d, 0x8b, 0xd4, 0x40,
0x10, 0xa5, 0xd3, 0xc9, 0x7c, 0x54, 0x66, 0x86, 0xb5, 0xf1, 0xd0, 0x0e, 0x0a, 0xcd, 0x08, 0xd2,
0xa7, 0x80, 0x99, 0x10, 0x16, 0x05, 0x85, 0x80, 0x2b, 0x39, 0x78, 0xa9, 0xe0, 0xc5, 0xdb, 0xec,
0x10, 0x21, 0xee, 0xd8, 0x59, 0x92, 0x9e, 0x85, 0xf9, 0x2b, 0xfe, 0x5a, 0xa9, 0xee, 0x8d, 0x66,
0x76, 0x95, 0xbd, 0xbd, 0xa2, 0xea, 0xbd, 0x7e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