/
desc_test_options.pb.go
363 lines (321 loc) · 13.1 KB
/
desc_test_options.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
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: desc_test_options.proto
package testprotos
import (
fmt "fmt"
proto "github.com/golang/protobuf/proto"
descriptor "github.com/golang/protobuf/protoc-gen-go/descriptor"
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
// Test enum used by custom options
type ReallySimpleEnum int32
const (
ReallySimpleEnum_VALUE ReallySimpleEnum = 1
)
var ReallySimpleEnum_name = map[int32]string{
1: "VALUE",
}
var ReallySimpleEnum_value = map[string]int32{
"VALUE": 1,
}
func (x ReallySimpleEnum) Enum() *ReallySimpleEnum {
p := new(ReallySimpleEnum)
*p = x
return p
}
func (x ReallySimpleEnum) String() string {
return proto.EnumName(ReallySimpleEnum_name, int32(x))
}
func (x *ReallySimpleEnum) UnmarshalJSON(data []byte) error {
value, err := proto.UnmarshalJSONEnum(ReallySimpleEnum_value, data, "ReallySimpleEnum")
if err != nil {
return err
}
*x = ReallySimpleEnum(value)
return nil
}
func (ReallySimpleEnum) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_6909196e6f18ac08, []int{0}
}
// Test message used by custom options
type ReallySimpleMessage struct {
Id *uint64 `protobuf:"varint,1,opt,name=id" json:"id,omitempty"`
Name *string `protobuf:"bytes,2,opt,name=name" json:"name,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ReallySimpleMessage) Reset() { *m = ReallySimpleMessage{} }
func (m *ReallySimpleMessage) String() string { return proto.CompactTextString(m) }
func (*ReallySimpleMessage) ProtoMessage() {}
func (*ReallySimpleMessage) Descriptor() ([]byte, []int) {
return fileDescriptor_6909196e6f18ac08, []int{0}
}
func (m *ReallySimpleMessage) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ReallySimpleMessage.Unmarshal(m, b)
}
func (m *ReallySimpleMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ReallySimpleMessage.Marshal(b, m, deterministic)
}
func (m *ReallySimpleMessage) XXX_Merge(src proto.Message) {
xxx_messageInfo_ReallySimpleMessage.Merge(m, src)
}
func (m *ReallySimpleMessage) XXX_Size() int {
return xxx_messageInfo_ReallySimpleMessage.Size(m)
}
func (m *ReallySimpleMessage) XXX_DiscardUnknown() {
xxx_messageInfo_ReallySimpleMessage.DiscardUnknown(m)
}
var xxx_messageInfo_ReallySimpleMessage proto.InternalMessageInfo
func (m *ReallySimpleMessage) GetId() uint64 {
if m != nil && m.Id != nil {
return *m.Id
}
return 0
}
func (m *ReallySimpleMessage) GetName() string {
if m != nil && m.Name != nil {
return *m.Name
}
return ""
}
var E_Mfubar = &proto.ExtensionDesc{
ExtendedType: (*descriptor.MessageOptions)(nil),
ExtensionType: (*bool)(nil),
Field: 10101,
Name: "testprotos.mfubar",
Tag: "varint,10101,opt,name=mfubar",
Filename: "desc_test_options.proto",
}
var E_Ffubar = &proto.ExtensionDesc{
ExtendedType: (*descriptor.FieldOptions)(nil),
ExtensionType: ([]string)(nil),
Field: 10101,
Name: "testprotos.ffubar",
Tag: "bytes,10101,rep,name=ffubar",
Filename: "desc_test_options.proto",
}
var E_Ffubarb = &proto.ExtensionDesc{
ExtendedType: (*descriptor.FieldOptions)(nil),
ExtensionType: ([]byte)(nil),
Field: 10102,
Name: "testprotos.ffubarb",
Tag: "bytes,10102,opt,name=ffubarb",
Filename: "desc_test_options.proto",
}
var E_Efubar = &proto.ExtensionDesc{
ExtendedType: (*descriptor.EnumOptions)(nil),
ExtensionType: (*int32)(nil),
Field: 10101,
Name: "testprotos.efubar",
Tag: "varint,10101,opt,name=efubar",
Filename: "desc_test_options.proto",
}
var E_Efubars = &proto.ExtensionDesc{
ExtendedType: (*descriptor.EnumOptions)(nil),
ExtensionType: (*int32)(nil),
Field: 10102,
Name: "testprotos.efubars",
Tag: "zigzag32,10102,opt,name=efubars",
Filename: "desc_test_options.proto",
}
var E_Efubarsf = &proto.ExtensionDesc{
ExtendedType: (*descriptor.EnumOptions)(nil),
ExtensionType: (*int32)(nil),
Field: 10103,
Name: "testprotos.efubarsf",
Tag: "fixed32,10103,opt,name=efubarsf",
Filename: "desc_test_options.proto",
}
var E_Efubaru = &proto.ExtensionDesc{
ExtendedType: (*descriptor.EnumOptions)(nil),
ExtensionType: (*uint32)(nil),
Field: 10104,
Name: "testprotos.efubaru",
Tag: "varint,10104,opt,name=efubaru",
Filename: "desc_test_options.proto",
}
var E_Efubaruf = &proto.ExtensionDesc{
ExtendedType: (*descriptor.EnumOptions)(nil),
ExtensionType: (*uint32)(nil),
Field: 10105,
Name: "testprotos.efubaruf",
Tag: "fixed32,10105,opt,name=efubaruf",
Filename: "desc_test_options.proto",
}
var E_Evfubar = &proto.ExtensionDesc{
ExtendedType: (*descriptor.EnumValueOptions)(nil),
ExtensionType: (*int64)(nil),
Field: 10101,
Name: "testprotos.evfubar",
Tag: "varint,10101,opt,name=evfubar",
Filename: "desc_test_options.proto",
}
var E_Evfubars = &proto.ExtensionDesc{
ExtendedType: (*descriptor.EnumValueOptions)(nil),
ExtensionType: (*int64)(nil),
Field: 10102,
Name: "testprotos.evfubars",
Tag: "zigzag64,10102,opt,name=evfubars",
Filename: "desc_test_options.proto",
}
var E_Evfubarsf = &proto.ExtensionDesc{
ExtendedType: (*descriptor.EnumValueOptions)(nil),
ExtensionType: (*int64)(nil),
Field: 10103,
Name: "testprotos.evfubarsf",
Tag: "fixed64,10103,opt,name=evfubarsf",
Filename: "desc_test_options.proto",
}
var E_Evfubaru = &proto.ExtensionDesc{
ExtendedType: (*descriptor.EnumValueOptions)(nil),
ExtensionType: (*uint64)(nil),
Field: 10104,
Name: "testprotos.evfubaru",
Tag: "varint,10104,opt,name=evfubaru",
Filename: "desc_test_options.proto",
}
var E_Evfubaruf = &proto.ExtensionDesc{
ExtendedType: (*descriptor.EnumValueOptions)(nil),
ExtensionType: (*uint64)(nil),
Field: 10105,
Name: "testprotos.evfubaruf",
Tag: "fixed64,10105,opt,name=evfubaruf",
Filename: "desc_test_options.proto",
}
var E_Sfubar = &proto.ExtensionDesc{
ExtendedType: (*descriptor.ServiceOptions)(nil),
ExtensionType: (*ReallySimpleMessage)(nil),
Field: 10101,
Name: "testprotos.sfubar",
Tag: "bytes,10101,opt,name=sfubar",
Filename: "desc_test_options.proto",
}
var E_Sfubare = &proto.ExtensionDesc{
ExtendedType: (*descriptor.ServiceOptions)(nil),
ExtensionType: (*ReallySimpleEnum)(nil),
Field: 10102,
Name: "testprotos.sfubare",
Tag: "varint,10102,opt,name=sfubare,enum=testprotos.ReallySimpleEnum",
Filename: "desc_test_options.proto",
}
var E_Mtfubar = &proto.ExtensionDesc{
ExtendedType: (*descriptor.MethodOptions)(nil),
ExtensionType: ([]float32)(nil),
Field: 10101,
Name: "testprotos.mtfubar",
Tag: "fixed32,10101,rep,name=mtfubar",
Filename: "desc_test_options.proto",
}
var E_Mtfubard = &proto.ExtensionDesc{
ExtendedType: (*descriptor.MethodOptions)(nil),
ExtensionType: (*float64)(nil),
Field: 10102,
Name: "testprotos.mtfubard",
Tag: "fixed64,10102,opt,name=mtfubard",
Filename: "desc_test_options.proto",
}
var E_Exfubar = &proto.ExtensionDesc{
ExtendedType: (*descriptor.ExtensionRangeOptions)(nil),
ExtensionType: ([]string)(nil),
Field: 10101,
Name: "testprotos.exfubar",
Tag: "bytes,10101,rep,name=exfubar",
Filename: "desc_test_options.proto",
}
var E_Exfubarb = &proto.ExtensionDesc{
ExtendedType: (*descriptor.ExtensionRangeOptions)(nil),
ExtensionType: ([]byte)(nil),
Field: 10102,
Name: "testprotos.exfubarb",
Tag: "bytes,10102,opt,name=exfubarb",
Filename: "desc_test_options.proto",
}
var E_Oofubar = &proto.ExtensionDesc{
ExtendedType: (*descriptor.OneofOptions)(nil),
ExtensionType: ([]string)(nil),
Field: 10101,
Name: "testprotos.oofubar",
Tag: "bytes,10101,rep,name=oofubar",
Filename: "desc_test_options.proto",
}
var E_Oofubarb = &proto.ExtensionDesc{
ExtendedType: (*descriptor.OneofOptions)(nil),
ExtensionType: ([]byte)(nil),
Field: 10102,
Name: "testprotos.oofubarb",
Tag: "bytes,10102,opt,name=oofubarb",
Filename: "desc_test_options.proto",
}
func init() {
proto.RegisterEnum("testprotos.ReallySimpleEnum", ReallySimpleEnum_name, ReallySimpleEnum_value)
proto.RegisterType((*ReallySimpleMessage)(nil), "testprotos.ReallySimpleMessage")
proto.RegisterExtension(E_Mfubar)
proto.RegisterExtension(E_Ffubar)
proto.RegisterExtension(E_Ffubarb)
proto.RegisterExtension(E_Efubar)
proto.RegisterExtension(E_Efubars)
proto.RegisterExtension(E_Efubarsf)
proto.RegisterExtension(E_Efubaru)
proto.RegisterExtension(E_Efubaruf)
proto.RegisterExtension(E_Evfubar)
proto.RegisterExtension(E_Evfubars)
proto.RegisterExtension(E_Evfubarsf)
proto.RegisterExtension(E_Evfubaru)
proto.RegisterExtension(E_Evfubaruf)
proto.RegisterExtension(E_Sfubar)
proto.RegisterExtension(E_Sfubare)
proto.RegisterExtension(E_Mtfubar)
proto.RegisterExtension(E_Mtfubard)
proto.RegisterExtension(E_Exfubar)
proto.RegisterExtension(E_Exfubarb)
proto.RegisterExtension(E_Oofubar)
proto.RegisterExtension(E_Oofubarb)
}
func init() { proto.RegisterFile("desc_test_options.proto", fileDescriptor_6909196e6f18ac08) }
var fileDescriptor_6909196e6f18ac08 = []byte{
// 544 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x94, 0xcd, 0x6f, 0xd3, 0x4c,
0x10, 0xc6, 0xe5, 0x34, 0x8d, 0x9d, 0x79, 0x5f, 0x4a, 0x30, 0x07, 0x22, 0xd4, 0xd2, 0xc0, 0x01,
0x45, 0x1c, 0x1c, 0x51, 0x04, 0x34, 0x0b, 0x42, 0x14, 0x54, 0x4e, 0x40, 0xa5, 0xad, 0xa8, 0x80,
0x4b, 0x65, 0x27, 0xeb, 0xc4, 0xc8, 0xf6, 0x46, 0xde, 0xdd, 0xaa, 0xfc, 0xe1, 0x7c, 0xdd, 0xd0,
0x7e, 0xd9, 0x09, 0x49, 0x64, 0xdf, 0x9e, 0x44, 0xcf, 0x6f, 0x9e, 0xf1, 0xac, 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