// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// 	protoc-gen-go v1.36.11
// 	protoc        v6.33.5
// source: transport/internet/kcp/config.proto

package kcp

import (
	serial "github.com/xtls/xray-core/common/serial"
	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
	reflect "reflect"
	sync "sync"
	unsafe "unsafe"
)

const (
	// Verify that this generated code is sufficiently up-to-date.
	_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
	// Verify that runtime/protoimpl is sufficiently up-to-date.
	_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)

// Maximum Transmission Unit, in bytes.
type MTU struct {
	state         protoimpl.MessageState `protogen:"open.v1"`
	Value         uint32                 `protobuf:"varint,1,opt,name=value,proto3" json:"value,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

func (x *MTU) Reset() {
	*x = MTU{}
	mi := &file_transport_internet_kcp_config_proto_msgTypes[0]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

func (x *MTU) String() string {
	return protoimpl.X.MessageStringOf(x)
}

func (*MTU) ProtoMessage() {}

func (x *MTU) ProtoReflect() protoreflect.Message {
	mi := &file_transport_internet_kcp_config_proto_msgTypes[0]
	if x != nil {
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		if ms.LoadMessageInfo() == nil {
			ms.StoreMessageInfo(mi)
		}
		return ms
	}
	return mi.MessageOf(x)
}

// Deprecated: Use MTU.ProtoReflect.Descriptor instead.
func (*MTU) Descriptor() ([]byte, []int) {
	return file_transport_internet_kcp_config_proto_rawDescGZIP(), []int{0}
}

func (x *MTU) GetValue() uint32 {
	if x != nil {
		return x.Value
	}
	return 0
}

// Transmission Time Interview, in milli-sec.
type TTI struct {
	state         protoimpl.MessageState `protogen:"open.v1"`
	Value         uint32                 `protobuf:"varint,1,opt,name=value,proto3" json:"value,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

func (x *TTI) Reset() {
	*x = TTI{}
	mi := &file_transport_internet_kcp_config_proto_msgTypes[1]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

func (x *TTI) String() string {
	return protoimpl.X.MessageStringOf(x)
}

func (*TTI) ProtoMessage() {}

func (x *TTI) ProtoReflect() protoreflect.Message {
	mi := &file_transport_internet_kcp_config_proto_msgTypes[1]
	if x != nil {
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		if ms.LoadMessageInfo() == nil {
			ms.StoreMessageInfo(mi)
		}
		return ms
	}
	return mi.MessageOf(x)
}

// Deprecated: Use TTI.ProtoReflect.Descriptor instead.
func (*TTI) Descriptor() ([]byte, []int) {
	return file_transport_internet_kcp_config_proto_rawDescGZIP(), []int{1}
}

func (x *TTI) GetValue() uint32 {
	if x != nil {
		return x.Value
	}
	return 0
}

// Uplink capacity, in MB.
type UplinkCapacity struct {
	state         protoimpl.MessageState `protogen:"open.v1"`
	Value         uint32                 `protobuf:"varint,1,opt,name=value,proto3" json:"value,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

func (x *UplinkCapacity) Reset() {
	*x = UplinkCapacity{}
	mi := &file_transport_internet_kcp_config_proto_msgTypes[2]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

func (x *UplinkCapacity) String() string {
	return protoimpl.X.MessageStringOf(x)
}

func (*UplinkCapacity) ProtoMessage() {}

func (x *UplinkCapacity) ProtoReflect() protoreflect.Message {
	mi := &file_transport_internet_kcp_config_proto_msgTypes[2]
	if x != nil {
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		if ms.LoadMessageInfo() == nil {
			ms.StoreMessageInfo(mi)
		}
		return ms
	}
	return mi.MessageOf(x)
}

// Deprecated: Use UplinkCapacity.ProtoReflect.Descriptor instead.
func (*UplinkCapacity) Descriptor() ([]byte, []int) {
	return file_transport_internet_kcp_config_proto_rawDescGZIP(), []int{2}
}

func (x *UplinkCapacity) GetValue() uint32 {
	if x != nil {
		return x.Value
	}
	return 0
}

// Downlink capacity, in MB.
type DownlinkCapacity struct {
	state         protoimpl.MessageState `protogen:"open.v1"`
	Value         uint32                 `protobuf:"varint,1,opt,name=value,proto3" json:"value,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

func (x *DownlinkCapacity) Reset() {
	*x = DownlinkCapacity{}
	mi := &file_transport_internet_kcp_config_proto_msgTypes[3]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

func (x *DownlinkCapacity) String() string {
	return protoimpl.X.MessageStringOf(x)
}

func (*DownlinkCapacity) ProtoMessage() {}

func (x *DownlinkCapacity) ProtoReflect() protoreflect.Message {
	mi := &file_transport_internet_kcp_config_proto_msgTypes[3]
	if x != nil {
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		if ms.LoadMessageInfo() == nil {
			ms.StoreMessageInfo(mi)
		}
		return ms
	}
	return mi.MessageOf(x)
}

// Deprecated: Use DownlinkCapacity.ProtoReflect.Descriptor instead.
func (*DownlinkCapacity) Descriptor() ([]byte, []int) {
	return file_transport_internet_kcp_config_proto_rawDescGZIP(), []int{3}
}

func (x *DownlinkCapacity) GetValue() uint32 {
	if x != nil {
		return x.Value
	}
	return 0
}

type WriteBuffer struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// Buffer size in bytes.
	Size          uint32 `protobuf:"varint,1,opt,name=size,proto3" json:"size,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

func (x *WriteBuffer) Reset() {
	*x = WriteBuffer{}
	mi := &file_transport_internet_kcp_config_proto_msgTypes[4]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

func (x *WriteBuffer) String() string {
	return protoimpl.X.MessageStringOf(x)
}

func (*WriteBuffer) ProtoMessage() {}

func (x *WriteBuffer) ProtoReflect() protoreflect.Message {
	mi := &file_transport_internet_kcp_config_proto_msgTypes[4]
	if x != nil {
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		if ms.LoadMessageInfo() == nil {
			ms.StoreMessageInfo(mi)
		}
		return ms
	}
	return mi.MessageOf(x)
}

// Deprecated: Use WriteBuffer.ProtoReflect.Descriptor instead.
func (*WriteBuffer) Descriptor() ([]byte, []int) {
	return file_transport_internet_kcp_config_proto_rawDescGZIP(), []int{4}
}

func (x *WriteBuffer) GetSize() uint32 {
	if x != nil {
		return x.Size
	}
	return 0
}

type ReadBuffer struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// Buffer size in bytes.
	Size          uint32 `protobuf:"varint,1,opt,name=size,proto3" json:"size,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

func (x *ReadBuffer) Reset() {
	*x = ReadBuffer{}
	mi := &file_transport_internet_kcp_config_proto_msgTypes[5]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

func (x *ReadBuffer) String() string {
	return protoimpl.X.MessageStringOf(x)
}

func (*ReadBuffer) ProtoMessage() {}

func (x *ReadBuffer) ProtoReflect() protoreflect.Message {
	mi := &file_transport_internet_kcp_config_proto_msgTypes[5]
	if x != nil {
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		if ms.LoadMessageInfo() == nil {
			ms.StoreMessageInfo(mi)
		}
		return ms
	}
	return mi.MessageOf(x)
}

// Deprecated: Use ReadBuffer.ProtoReflect.Descriptor instead.
func (*ReadBuffer) Descriptor() ([]byte, []int) {
	return file_transport_internet_kcp_config_proto_rawDescGZIP(), []int{5}
}

func (x *ReadBuffer) GetSize() uint32 {
	if x != nil {
		return x.Size
	}
	return 0
}

type ConnectionReuse struct {
	state         protoimpl.MessageState `protogen:"open.v1"`
	Enable        bool                   `protobuf:"varint,1,opt,name=enable,proto3" json:"enable,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

func (x *ConnectionReuse) Reset() {
	*x = ConnectionReuse{}
	mi := &file_transport_internet_kcp_config_proto_msgTypes[6]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

func (x *ConnectionReuse) String() string {
	return protoimpl.X.MessageStringOf(x)
}

func (*ConnectionReuse) ProtoMessage() {}

func (x *ConnectionReuse) ProtoReflect() protoreflect.Message {
	mi := &file_transport_internet_kcp_config_proto_msgTypes[6]
	if x != nil {
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		if ms.LoadMessageInfo() == nil {
			ms.StoreMessageInfo(mi)
		}
		return ms
	}
	return mi.MessageOf(x)
}

// Deprecated: Use ConnectionReuse.ProtoReflect.Descriptor instead.
func (*ConnectionReuse) Descriptor() ([]byte, []int) {
	return file_transport_internet_kcp_config_proto_rawDescGZIP(), []int{6}
}

func (x *ConnectionReuse) GetEnable() bool {
	if x != nil {
		return x.Enable
	}
	return false
}

// Pre-shared secret between client and server. It is used for traffic obfuscation.
// Note that if seed is absent in the config, the traffic will still be obfuscated,
// but by a predefined algorithm.
type EncryptionSeed struct {
	state         protoimpl.MessageState `protogen:"open.v1"`
	Seed          string                 `protobuf:"bytes,1,opt,name=seed,proto3" json:"seed,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

func (x *EncryptionSeed) Reset() {
	*x = EncryptionSeed{}
	mi := &file_transport_internet_kcp_config_proto_msgTypes[7]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

func (x *EncryptionSeed) String() string {
	return protoimpl.X.MessageStringOf(x)
}

func (*EncryptionSeed) ProtoMessage() {}

func (x *EncryptionSeed) ProtoReflect() protoreflect.Message {
	mi := &file_transport_internet_kcp_config_proto_msgTypes[7]
	if x != nil {
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		if ms.LoadMessageInfo() == nil {
			ms.StoreMessageInfo(mi)
		}
		return ms
	}
	return mi.MessageOf(x)
}

// Deprecated: Use EncryptionSeed.ProtoReflect.Descriptor instead.
func (*EncryptionSeed) Descriptor() ([]byte, []int) {
	return file_transport_internet_kcp_config_proto_rawDescGZIP(), []int{7}
}

func (x *EncryptionSeed) GetSeed() string {
	if x != nil {
		return x.Seed
	}
	return ""
}

type Config struct {
	state            protoimpl.MessageState `protogen:"open.v1"`
	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"`
	Seed             *EncryptionSeed        `protobuf:"bytes,10,opt,name=seed,proto3" json:"seed,omitempty"`
	unknownFields    protoimpl.UnknownFields
	sizeCache        protoimpl.SizeCache
}

func (x *Config) Reset() {
	*x = Config{}
	mi := &file_transport_internet_kcp_config_proto_msgTypes[8]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

func (x *Config) String() string {
	return protoimpl.X.MessageStringOf(x)
}

func (*Config) ProtoMessage() {}

func (x *Config) ProtoReflect() protoreflect.Message {
	mi := &file_transport_internet_kcp_config_proto_msgTypes[8]
	if x != nil {
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		if ms.LoadMessageInfo() == nil {
			ms.StoreMessageInfo(mi)
		}
		return ms
	}
	return mi.MessageOf(x)
}

// Deprecated: Use Config.ProtoReflect.Descriptor instead.
func (*Config) Descriptor() ([]byte, []int) {
	return file_transport_internet_kcp_config_proto_rawDescGZIP(), []int{8}
}

func (x *Config) GetMtu() *MTU {
	if x != nil {
		return x.Mtu
	}
	return nil
}

func (x *Config) GetTti() *TTI {
	if x != nil {
		return x.Tti
	}
	return nil
}

func (x *Config) GetUplinkCapacity() *UplinkCapacity {
	if x != nil {
		return x.UplinkCapacity
	}
	return nil
}

func (x *Config) GetDownlinkCapacity() *DownlinkCapacity {
	if x != nil {
		return x.DownlinkCapacity
	}
	return nil
}

func (x *Config) GetCongestion() bool {
	if x != nil {
		return x.Congestion
	}
	return false
}

func (x *Config) GetWriteBuffer() *WriteBuffer {
	if x != nil {
		return x.WriteBuffer
	}
	return nil
}

func (x *Config) GetReadBuffer() *ReadBuffer {
	if x != nil {
		return x.ReadBuffer
	}
	return nil
}

func (x *Config) GetHeaderConfig() *serial.TypedMessage {
	if x != nil {
		return x.HeaderConfig
	}
	return nil
}

func (x *Config) GetSeed() *EncryptionSeed {
	if x != nil {
		return x.Seed
	}
	return nil
}

var File_transport_internet_kcp_config_proto protoreflect.FileDescriptor

const file_transport_internet_kcp_config_proto_rawDesc = "" +
	"\n" +
	"#transport/internet/kcp/config.proto\x12\x1bxray.transport.internet.kcp\x1a!common/serial/typed_message.proto\"\x1b\n" +
	"\x03MTU\x12\x14\n" +
	"\x05value\x18\x01 \x01(\rR\x05value\"\x1b\n" +
	"\x03TTI\x12\x14\n" +
	"\x05value\x18\x01 \x01(\rR\x05value\"&\n" +
	"\x0eUplinkCapacity\x12\x14\n" +
	"\x05value\x18\x01 \x01(\rR\x05value\"(\n" +
	"\x10DownlinkCapacity\x12\x14\n" +
	"\x05value\x18\x01 \x01(\rR\x05value\"!\n" +
	"\vWriteBuffer\x12\x12\n" +
	"\x04size\x18\x01 \x01(\rR\x04size\" \n" +
	"\n" +
	"ReadBuffer\x12\x12\n" +
	"\x04size\x18\x01 \x01(\rR\x04size\")\n" +
	"\x0fConnectionReuse\x12\x16\n" +
	"\x06enable\x18\x01 \x01(\bR\x06enable\"$\n" +
	"\x0eEncryptionSeed\x12\x12\n" +
	"\x04seed\x18\x01 \x01(\tR\x04seed\"\xe7\x04\n" +
	"\x06Config\x122\n" +
	"\x03mtu\x18\x01 \x01(\v2 .xray.transport.internet.kcp.MTUR\x03mtu\x122\n" +
	"\x03tti\x18\x02 \x01(\v2 .xray.transport.internet.kcp.TTIR\x03tti\x12T\n" +
	"\x0fuplink_capacity\x18\x03 \x01(\v2+.xray.transport.internet.kcp.UplinkCapacityR\x0euplinkCapacity\x12Z\n" +
	"\x11downlink_capacity\x18\x04 \x01(\v2-.xray.transport.internet.kcp.DownlinkCapacityR\x10downlinkCapacity\x12\x1e\n" +
	"\n" +
	"congestion\x18\x05 \x01(\bR\n" +
	"congestion\x12K\n" +
	"\fwrite_buffer\x18\x06 \x01(\v2(.xray.transport.internet.kcp.WriteBufferR\vwriteBuffer\x12H\n" +
	"\vread_buffer\x18\a \x01(\v2'.xray.transport.internet.kcp.ReadBufferR\n" +
	"readBuffer\x12E\n" +
	"\rheader_config\x18\b \x01(\v2 .xray.common.serial.TypedMessageR\fheaderConfig\x12?\n" +
	"\x04seed\x18\n" +
	" \x01(\v2+.xray.transport.internet.kcp.EncryptionSeedR\x04seedJ\x04\b\t\x10\n" +
	"Bs\n" +
	"\x1fcom.xray.transport.internet.kcpP\x01Z0github.com/xtls/xray-core/transport/internet/kcp\xaa\x02\x1bXray.Transport.Internet.Kcpb\x06proto3"

var (
	file_transport_internet_kcp_config_proto_rawDescOnce sync.Once
	file_transport_internet_kcp_config_proto_rawDescData []byte
)

func file_transport_internet_kcp_config_proto_rawDescGZIP() []byte {
	file_transport_internet_kcp_config_proto_rawDescOnce.Do(func() {
		file_transport_internet_kcp_config_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_transport_internet_kcp_config_proto_rawDesc), len(file_transport_internet_kcp_config_proto_rawDesc)))
	})
	return file_transport_internet_kcp_config_proto_rawDescData
}

var file_transport_internet_kcp_config_proto_msgTypes = make([]protoimpl.MessageInfo, 9)
var file_transport_internet_kcp_config_proto_goTypes = []any{
	(*MTU)(nil),                 // 0: xray.transport.internet.kcp.MTU
	(*TTI)(nil),                 // 1: xray.transport.internet.kcp.TTI
	(*UplinkCapacity)(nil),      // 2: xray.transport.internet.kcp.UplinkCapacity
	(*DownlinkCapacity)(nil),    // 3: xray.transport.internet.kcp.DownlinkCapacity
	(*WriteBuffer)(nil),         // 4: xray.transport.internet.kcp.WriteBuffer
	(*ReadBuffer)(nil),          // 5: xray.transport.internet.kcp.ReadBuffer
	(*ConnectionReuse)(nil),     // 6: xray.transport.internet.kcp.ConnectionReuse
	(*EncryptionSeed)(nil),      // 7: xray.transport.internet.kcp.EncryptionSeed
	(*Config)(nil),              // 8: xray.transport.internet.kcp.Config
	(*serial.TypedMessage)(nil), // 9: xray.common.serial.TypedMessage
}
var file_transport_internet_kcp_config_proto_depIdxs = []int32{
	0, // 0: xray.transport.internet.kcp.Config.mtu:type_name -> xray.transport.internet.kcp.MTU
	1, // 1: xray.transport.internet.kcp.Config.tti:type_name -> xray.transport.internet.kcp.TTI
	2, // 2: xray.transport.internet.kcp.Config.uplink_capacity:type_name -> xray.transport.internet.kcp.UplinkCapacity
	3, // 3: xray.transport.internet.kcp.Config.downlink_capacity:type_name -> xray.transport.internet.kcp.DownlinkCapacity
	4, // 4: xray.transport.internet.kcp.Config.write_buffer:type_name -> xray.transport.internet.kcp.WriteBuffer
	5, // 5: xray.transport.internet.kcp.Config.read_buffer:type_name -> xray.transport.internet.kcp.ReadBuffer
	9, // 6: xray.transport.internet.kcp.Config.header_config:type_name -> xray.common.serial.TypedMessage
	7, // 7: xray.transport.internet.kcp.Config.seed:type_name -> xray.transport.internet.kcp.EncryptionSeed
	8, // [8:8] is the sub-list for method output_type
	8, // [8:8] is the sub-list for method input_type
	8, // [8:8] is the sub-list for extension type_name
	8, // [8:8] is the sub-list for extension extendee
	0, // [0:8] is the sub-list for field type_name
}

func init() { file_transport_internet_kcp_config_proto_init() }
func file_transport_internet_kcp_config_proto_init() {
	if File_transport_internet_kcp_config_proto != nil {
		return
	}
	type x struct{}
	out := protoimpl.TypeBuilder{
		File: protoimpl.DescBuilder{
			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
			RawDescriptor: unsafe.Slice(unsafe.StringData(file_transport_internet_kcp_config_proto_rawDesc), len(file_transport_internet_kcp_config_proto_rawDesc)),
			NumEnums:      0,
			NumMessages:   9,
			NumExtensions: 0,
			NumServices:   0,
		},
		GoTypes:           file_transport_internet_kcp_config_proto_goTypes,
		DependencyIndexes: file_transport_internet_kcp_config_proto_depIdxs,
		MessageInfos:      file_transport_internet_kcp_config_proto_msgTypes,
	}.Build()
	File_transport_internet_kcp_config_proto = out.File
	file_transport_internet_kcp_config_proto_goTypes = nil
	file_transport_internet_kcp_config_proto_depIdxs = nil
}
