-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.pb.go
442 lines (389 loc) · 15.5 KB
/
config.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
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
package kcp
import (
fmt "fmt"
proto "github.com/golang/protobuf/proto"
math "math"
serial "v2ray.com/core/common/serial"
)
// 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
// Maximum Transmission Unit, in bytes.
type MTU struct {
Value uint32 `protobuf:"varint,1,opt,name=value,proto3" json:"value,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *MTU) Reset() { *m = MTU{} }
func (m *MTU) String() string { return proto.CompactTextString(m) }
func (*MTU) ProtoMessage() {}
func (*MTU) Descriptor() ([]byte, []int) {
return fileDescriptor_3746d5d763e81577, []int{0}
}
func (m *MTU) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_MTU.Unmarshal(m, b)
}
func (m *MTU) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_MTU.Marshal(b, m, deterministic)
}
func (m *MTU) XXX_Merge(src proto.Message) {
xxx_messageInfo_MTU.Merge(m, src)
}
func (m *MTU) XXX_Size() int {
return xxx_messageInfo_MTU.Size(m)
}
func (m *MTU) XXX_DiscardUnknown() {
xxx_messageInfo_MTU.DiscardUnknown(m)
}
var xxx_messageInfo_MTU proto.InternalMessageInfo
func (m *MTU) GetValue() uint32 {
if m != nil {
return m.Value
}
return 0
}
// Transmission Time Interview, in milli-sec.
type TTI struct {
Value uint32 `protobuf:"varint,1,opt,name=value,proto3" json:"value,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *TTI) Reset() { *m = TTI{} }
func (m *TTI) String() string { return proto.CompactTextString(m) }
func (*TTI) ProtoMessage() {}
func (*TTI) Descriptor() ([]byte, []int) {
return fileDescriptor_3746d5d763e81577, []int{1}
}
func (m *TTI) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_TTI.Unmarshal(m, b)
}
func (m *TTI) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_TTI.Marshal(b, m, deterministic)
}
func (m *TTI) XXX_Merge(src proto.Message) {
xxx_messageInfo_TTI.Merge(m, src)
}
func (m *TTI) XXX_Size() int {
return xxx_messageInfo_TTI.Size(m)
}
func (m *TTI) XXX_DiscardUnknown() {
xxx_messageInfo_TTI.DiscardUnknown(m)
}
var xxx_messageInfo_TTI proto.InternalMessageInfo
func (m *TTI) GetValue() uint32 {
if m != nil {
return m.Value
}
return 0
}
// Uplink capacity, in MB.
type UplinkCapacity struct {
Value uint32 `protobuf:"varint,1,opt,name=value,proto3" json:"value,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *UplinkCapacity) Reset() { *m = UplinkCapacity{} }
func (m *UplinkCapacity) String() string { return proto.CompactTextString(m) }
func (*UplinkCapacity) ProtoMessage() {}
func (*UplinkCapacity) Descriptor() ([]byte, []int) {
return fileDescriptor_3746d5d763e81577, []int{2}
}
func (m *UplinkCapacity) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_UplinkCapacity.Unmarshal(m, b)
}
func (m *UplinkCapacity) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_UplinkCapacity.Marshal(b, m, deterministic)
}
func (m *UplinkCapacity) XXX_Merge(src proto.Message) {
xxx_messageInfo_UplinkCapacity.Merge(m, src)
}
func (m *UplinkCapacity) XXX_Size() int {
return xxx_messageInfo_UplinkCapacity.Size(m)
}
func (m *UplinkCapacity) XXX_DiscardUnknown() {
xxx_messageInfo_UplinkCapacity.DiscardUnknown(m)
}
var xxx_messageInfo_UplinkCapacity proto.InternalMessageInfo
func (m *UplinkCapacity) GetValue() uint32 {
if m != nil {
return m.Value
}
return 0
}
// Downlink capacity, in MB.
type DownlinkCapacity struct {
Value uint32 `protobuf:"varint,1,opt,name=value,proto3" json:"value,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *DownlinkCapacity) Reset() { *m = DownlinkCapacity{} }
func (m *DownlinkCapacity) String() string { return proto.CompactTextString(m) }
func (*DownlinkCapacity) ProtoMessage() {}
func (*DownlinkCapacity) Descriptor() ([]byte, []int) {
return fileDescriptor_3746d5d763e81577, []int{3}
}
func (m *DownlinkCapacity) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_DownlinkCapacity.Unmarshal(m, b)
}
func (m *DownlinkCapacity) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_DownlinkCapacity.Marshal(b, m, deterministic)
}
func (m *DownlinkCapacity) XXX_Merge(src proto.Message) {
xxx_messageInfo_DownlinkCapacity.Merge(m, src)
}
func (m *DownlinkCapacity) XXX_Size() int {
return xxx_messageInfo_DownlinkCapacity.Size(m)
}
func (m *DownlinkCapacity) XXX_DiscardUnknown() {
xxx_messageInfo_DownlinkCapacity.DiscardUnknown(m)
}
var xxx_messageInfo_DownlinkCapacity proto.InternalMessageInfo
func (m *DownlinkCapacity) GetValue() uint32 {
if m != nil {
return m.Value
}
return 0
}
type WriteBuffer struct {
// Buffer size in bytes.
Size uint32 `protobuf:"varint,1,opt,name=size,proto3" json:"size,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *WriteBuffer) Reset() { *m = WriteBuffer{} }
func (m *WriteBuffer) String() string { return proto.CompactTextString(m) }
func (*WriteBuffer) ProtoMessage() {}
func (*WriteBuffer) Descriptor() ([]byte, []int) {
return fileDescriptor_3746d5d763e81577, []int{4}
}
func (m *WriteBuffer) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_WriteBuffer.Unmarshal(m, b)
}
func (m *WriteBuffer) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_WriteBuffer.Marshal(b, m, deterministic)
}
func (m *WriteBuffer) XXX_Merge(src proto.Message) {
xxx_messageInfo_WriteBuffer.Merge(m, src)
}
func (m *WriteBuffer) XXX_Size() int {
return xxx_messageInfo_WriteBuffer.Size(m)
}
func (m *WriteBuffer) XXX_DiscardUnknown() {
xxx_messageInfo_WriteBuffer.DiscardUnknown(m)
}
var xxx_messageInfo_WriteBuffer proto.InternalMessageInfo
func (m *WriteBuffer) GetSize() uint32 {
if m != nil {
return m.Size
}
return 0
}
type ReadBuffer struct {
// Buffer size in bytes.
Size uint32 `protobuf:"varint,1,opt,name=size,proto3" json:"size,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ReadBuffer) Reset() { *m = ReadBuffer{} }
func (m *ReadBuffer) String() string { return proto.CompactTextString(m) }
func (*ReadBuffer) ProtoMessage() {}
func (*ReadBuffer) Descriptor() ([]byte, []int) {
return fileDescriptor_3746d5d763e81577, []int{5}
}
func (m *ReadBuffer) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ReadBuffer.Unmarshal(m, b)
}
func (m *ReadBuffer) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ReadBuffer.Marshal(b, m, deterministic)
}
func (m *ReadBuffer) XXX_Merge(src proto.Message) {
xxx_messageInfo_ReadBuffer.Merge(m, src)
}
func (m *ReadBuffer) XXX_Size() int {
return xxx_messageInfo_ReadBuffer.Size(m)
}
func (m *ReadBuffer) XXX_DiscardUnknown() {
xxx_messageInfo_ReadBuffer.DiscardUnknown(m)
}
var xxx_messageInfo_ReadBuffer proto.InternalMessageInfo
func (m *ReadBuffer) GetSize() uint32 {
if m != nil {
return m.Size
}
return 0
}
type ConnectionReuse struct {
Enable bool `protobuf:"varint,1,opt,name=enable,proto3" json:"enable,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ConnectionReuse) Reset() { *m = ConnectionReuse{} }
func (m *ConnectionReuse) String() string { return proto.CompactTextString(m) }
func (*ConnectionReuse) ProtoMessage() {}
func (*ConnectionReuse) Descriptor() ([]byte, []int) {
return fileDescriptor_3746d5d763e81577, []int{6}
}
func (m *ConnectionReuse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ConnectionReuse.Unmarshal(m, b)
}
func (m *ConnectionReuse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ConnectionReuse.Marshal(b, m, deterministic)
}
func (m *ConnectionReuse) XXX_Merge(src proto.Message) {
xxx_messageInfo_ConnectionReuse.Merge(m, src)
}
func (m *ConnectionReuse) XXX_Size() int {
return xxx_messageInfo_ConnectionReuse.Size(m)
}
func (m *ConnectionReuse) XXX_DiscardUnknown() {
xxx_messageInfo_ConnectionReuse.DiscardUnknown(m)
}
var xxx_messageInfo_ConnectionReuse proto.InternalMessageInfo
func (m *ConnectionReuse) GetEnable() bool {
if m != nil {
return m.Enable
}
return false
}
type Config struct {
Mtu *MTU `protobuf:"bytes,1,opt,name=mtu,proto3" json:"mtu,omitempty"`
Tti *TTI `protobuf:"bytes,2,opt,name=tti,proto3" json:"tti,omitempty"`
UplinkCapacity *UplinkCapacity `protobuf:"bytes,3,opt,name=uplink_capacity,json=uplinkCapacity,proto3" json:"uplink_capacity,omitempty"`
DownlinkCapacity *DownlinkCapacity `protobuf:"bytes,4,opt,name=downlink_capacity,json=downlinkCapacity,proto3" json:"downlink_capacity,omitempty"`
Congestion bool `protobuf:"varint,5,opt,name=congestion,proto3" json:"congestion,omitempty"`
WriteBuffer *WriteBuffer `protobuf:"bytes,6,opt,name=write_buffer,json=writeBuffer,proto3" json:"write_buffer,omitempty"`
ReadBuffer *ReadBuffer `protobuf:"bytes,7,opt,name=read_buffer,json=readBuffer,proto3" json:"read_buffer,omitempty"`
HeaderConfig *serial.TypedMessage `protobuf:"bytes,8,opt,name=header_config,json=headerConfig,proto3" json:"header_config,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Config) Reset() { *m = Config{} }
func (m *Config) String() string { return proto.CompactTextString(m) }
func (*Config) ProtoMessage() {}
func (*Config) Descriptor() ([]byte, []int) {
return fileDescriptor_3746d5d763e81577, []int{7}
}
func (m *Config) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Config.Unmarshal(m, b)
}
func (m *Config) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Config.Marshal(b, m, deterministic)
}
func (m *Config) XXX_Merge(src proto.Message) {
xxx_messageInfo_Config.Merge(m, src)
}
func (m *Config) XXX_Size() int {
return xxx_messageInfo_Config.Size(m)
}
func (m *Config) XXX_DiscardUnknown() {
xxx_messageInfo_Config.DiscardUnknown(m)
}
var xxx_messageInfo_Config proto.InternalMessageInfo
func (m *Config) GetMtu() *MTU {
if m != nil {
return m.Mtu
}
return nil
}
func (m *Config) GetTti() *TTI {
if m != nil {
return m.Tti
}
return nil
}
func (m *Config) GetUplinkCapacity() *UplinkCapacity {
if m != nil {
return m.UplinkCapacity
}
return nil
}
func (m *Config) GetDownlinkCapacity() *DownlinkCapacity {
if m != nil {
return m.DownlinkCapacity
}
return nil
}
func (m *Config) GetCongestion() bool {
if m != nil {
return m.Congestion
}
return false
}
func (m *Config) GetWriteBuffer() *WriteBuffer {
if m != nil {
return m.WriteBuffer
}
return nil
}
func (m *Config) GetReadBuffer() *ReadBuffer {
if m != nil {
return m.ReadBuffer
}
return nil
}
func (m *Config) GetHeaderConfig() *serial.TypedMessage {
if m != nil {
return m.HeaderConfig
}
return nil
}
func init() {
proto.RegisterType((*MTU)(nil), "v2ray.core.transport.internet.kcp.MTU")
proto.RegisterType((*TTI)(nil), "v2ray.core.transport.internet.kcp.TTI")
proto.RegisterType((*UplinkCapacity)(nil), "v2ray.core.transport.internet.kcp.UplinkCapacity")
proto.RegisterType((*DownlinkCapacity)(nil), "v2ray.core.transport.internet.kcp.DownlinkCapacity")
proto.RegisterType((*WriteBuffer)(nil), "v2ray.core.transport.internet.kcp.WriteBuffer")
proto.RegisterType((*ReadBuffer)(nil), "v2ray.core.transport.internet.kcp.ReadBuffer")
proto.RegisterType((*ConnectionReuse)(nil), "v2ray.core.transport.internet.kcp.ConnectionReuse")
proto.RegisterType((*Config)(nil), "v2ray.core.transport.internet.kcp.Config")
}
func init() {
proto.RegisterFile("v2ray.com/core/transport/internet/kcp/config.proto", fileDescriptor_3746d5d763e81577)
}
var fileDescriptor_3746d5d763e81577 = []byte{
// 471 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x53, 0x5f, 0x6f, 0xd3, 0x3e,
0x14, 0x55, 0xd7, 0xae, 0xbf, 0xfe, 0x6e, 0xf7, 0xa7, 0x44, 0x08, 0x45, 0x20, 0xa1, 0xb5, 0x12,
0xd3, 0x78, 0xc0, 0x81, 0xee, 0x85, 0xe7, 0x95, 0x97, 0x32, 0x15, 0x81, 0x95, 0x82, 0xb4, 0x97,
0xe2, 0x3a, 0xb7, 0xc5, 0x6a, 0x63, 0x5b, 0x8e, 0xb3, 0xaa, 0x7c, 0x24, 0x3e, 0x0d, 0x1f, 0x09,
0xc5, 0x6e, 0xd6, 0xae, 0x68, 0x2c, 0x6f, 0x71, 0xee, 0x39, 0xc7, 0xd6, 0x39, 0xf7, 0x40, 0xff,
0xb6, 0x6f, 0xd8, 0x9a, 0x70, 0x95, 0x46, 0x5c, 0x19, 0x8c, 0xac, 0x61, 0x32, 0xd3, 0xca, 0xd8,
0x48, 0x48, 0x8b, 0x46, 0xa2, 0x8d, 0x16, 0x5c, 0x47, 0x5c, 0xc9, 0x99, 0x98, 0x13, 0x6d, 0x94,
0x55, 0x41, 0xb7, 0xe4, 0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