mirror of
https://github.com/v2fly/v2ray-core.git
synced 2024-12-22 18:17:52 -05:00
284 lines
11 KiB
Go
284 lines
11 KiB
Go
// Code generated by protoc-gen-go.
|
|
// source: v2ray.com/core/transport/internet/kcp/config.proto
|
|
// DO NOT EDIT!
|
|
|
|
/*
|
|
Package kcp is a generated protocol buffer package.
|
|
|
|
It is generated from these files:
|
|
v2ray.com/core/transport/internet/kcp/config.proto
|
|
|
|
It has these top-level messages:
|
|
MTU
|
|
TTI
|
|
UplinkCapacity
|
|
DownlinkCapacity
|
|
WriteBuffer
|
|
ReadBuffer
|
|
ConnectionReuse
|
|
Config
|
|
*/
|
|
package kcp
|
|
|
|
import proto "github.com/golang/protobuf/proto"
|
|
import fmt "fmt"
|
|
import math "math"
|
|
import v2ray_core_common_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.ProtoPackageIsVersion2 // please upgrade the proto package
|
|
|
|
// Maximum Transmission Unit, in bytes.
|
|
type MTU struct {
|
|
Value uint32 `protobuf:"varint,1,opt,name=value" json:"value,omitempty"`
|
|
}
|
|
|
|
func (m *MTU) Reset() { *m = MTU{} }
|
|
func (m *MTU) String() string { return proto.CompactTextString(m) }
|
|
func (*MTU) ProtoMessage() {}
|
|
func (*MTU) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} }
|
|
|
|
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" json:"value,omitempty"`
|
|
}
|
|
|
|
func (m *TTI) Reset() { *m = TTI{} }
|
|
func (m *TTI) String() string { return proto.CompactTextString(m) }
|
|
func (*TTI) ProtoMessage() {}
|
|
func (*TTI) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{1} }
|
|
|
|
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" json:"value,omitempty"`
|
|
}
|
|
|
|
func (m *UplinkCapacity) Reset() { *m = UplinkCapacity{} }
|
|
func (m *UplinkCapacity) String() string { return proto.CompactTextString(m) }
|
|
func (*UplinkCapacity) ProtoMessage() {}
|
|
func (*UplinkCapacity) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{2} }
|
|
|
|
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" json:"value,omitempty"`
|
|
}
|
|
|
|
func (m *DownlinkCapacity) Reset() { *m = DownlinkCapacity{} }
|
|
func (m *DownlinkCapacity) String() string { return proto.CompactTextString(m) }
|
|
func (*DownlinkCapacity) ProtoMessage() {}
|
|
func (*DownlinkCapacity) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{3} }
|
|
|
|
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" json:"size,omitempty"`
|
|
}
|
|
|
|
func (m *WriteBuffer) Reset() { *m = WriteBuffer{} }
|
|
func (m *WriteBuffer) String() string { return proto.CompactTextString(m) }
|
|
func (*WriteBuffer) ProtoMessage() {}
|
|
func (*WriteBuffer) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{4} }
|
|
|
|
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" json:"size,omitempty"`
|
|
}
|
|
|
|
func (m *ReadBuffer) Reset() { *m = ReadBuffer{} }
|
|
func (m *ReadBuffer) String() string { return proto.CompactTextString(m) }
|
|
func (*ReadBuffer) ProtoMessage() {}
|
|
func (*ReadBuffer) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{5} }
|
|
|
|
func (m *ReadBuffer) GetSize() uint32 {
|
|
if m != nil {
|
|
return m.Size
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type ConnectionReuse struct {
|
|
Enable bool `protobuf:"varint,1,opt,name=enable" json:"enable,omitempty"`
|
|
}
|
|
|
|
func (m *ConnectionReuse) Reset() { *m = ConnectionReuse{} }
|
|
func (m *ConnectionReuse) String() string { return proto.CompactTextString(m) }
|
|
func (*ConnectionReuse) ProtoMessage() {}
|
|
func (*ConnectionReuse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{6} }
|
|
|
|
func (m *ConnectionReuse) GetEnable() bool {
|
|
if m != nil {
|
|
return m.Enable
|
|
}
|
|
return false
|
|
}
|
|
|
|
type Config struct {
|
|
Mtu *MTU `protobuf:"bytes,1,opt,name=mtu" json:"mtu,omitempty"`
|
|
Tti *TTI `protobuf:"bytes,2,opt,name=tti" json:"tti,omitempty"`
|
|
UplinkCapacity *UplinkCapacity `protobuf:"bytes,3,opt,name=uplink_capacity,json=uplinkCapacity" json:"uplink_capacity,omitempty"`
|
|
DownlinkCapacity *DownlinkCapacity `protobuf:"bytes,4,opt,name=downlink_capacity,json=downlinkCapacity" json:"downlink_capacity,omitempty"`
|
|
Congestion bool `protobuf:"varint,5,opt,name=congestion" json:"congestion,omitempty"`
|
|
WriteBuffer *WriteBuffer `protobuf:"bytes,6,opt,name=write_buffer,json=writeBuffer" json:"write_buffer,omitempty"`
|
|
ReadBuffer *ReadBuffer `protobuf:"bytes,7,opt,name=read_buffer,json=readBuffer" json:"read_buffer,omitempty"`
|
|
HeaderConfig *v2ray_core_common_serial.TypedMessage `protobuf:"bytes,8,opt,name=header_config,json=headerConfig" json:"header_config,omitempty"`
|
|
ConnectionReuse *ConnectionReuse `protobuf:"bytes,9,opt,name=connection_reuse,json=connectionReuse" json:"connection_reuse,omitempty"`
|
|
}
|
|
|
|
func (m *Config) Reset() { *m = Config{} }
|
|
func (m *Config) String() string { return proto.CompactTextString(m) }
|
|
func (*Config) ProtoMessage() {}
|
|
func (*Config) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{7} }
|
|
|
|
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() *v2ray_core_common_serial.TypedMessage {
|
|
if m != nil {
|
|
return m.HeaderConfig
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *Config) GetConnectionReuse() *ConnectionReuse {
|
|
if m != nil {
|
|
return m.ConnectionReuse
|
|
}
|
|
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", fileDescriptor0) }
|
|
|
|
var fileDescriptor0 = []byte{
|
|
// 491 bytes of a gzipped FileDescriptorProto
|
|
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0x8c, 0x54, 0xdf, 0x6f, 0xd3, 0x30,
|
|
0x18, 0xd4, 0xd6, 0xad, 0x8c, 0x2f, 0xdb, 0x5a, 0x22, 0x84, 0x22, 0x90, 0xd0, 0x5a, 0x89, 0x69,
|
|
0x3c, 0xe0, 0x40, 0xf6, 0xc2, 0x73, 0xcb, 0x4b, 0x35, 0x15, 0x81, 0x95, 0x82, 0x34, 0x69, 0x0a,
|
|
0xae, 0xf3, 0xb5, 0x44, 0x6d, 0xec, 0xc8, 0x71, 0x56, 0x95, 0xff, 0x08, 0xfe, 0x4a, 0x64, 0xa7,
|
|
0xe9, 0x2f, 0x34, 0x96, 0xb7, 0xd8, 0xbe, 0x3b, 0x5b, 0xf7, 0xdd, 0x05, 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