| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314 | package internetimport proto "github.com/golang/protobuf/proto"import fmt "fmt"import math "math"import serial "v2ray.com/core/common/serial"// Reference imports to suppress errors if they are not otherwise used.var _ = proto.Marshalvar _ = fmt.Errorfvar _ = 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 packagetype TransportProtocol int32const (	TransportProtocol_TCP          TransportProtocol = 0	TransportProtocol_UDP          TransportProtocol = 1	TransportProtocol_MKCP         TransportProtocol = 2	TransportProtocol_WebSocket    TransportProtocol = 3	TransportProtocol_HTTP         TransportProtocol = 4	TransportProtocol_DomainSocket TransportProtocol = 5)var TransportProtocol_name = map[int32]string{	0: "TCP",	1: "UDP",	2: "MKCP",	3: "WebSocket",	4: "HTTP",	5: "DomainSocket",}var TransportProtocol_value = map[string]int32{	"TCP":          0,	"UDP":          1,	"MKCP":         2,	"WebSocket":    3,	"HTTP":         4,	"DomainSocket": 5,}func (x TransportProtocol) String() string {	return proto.EnumName(TransportProtocol_name, int32(x))}func (TransportProtocol) EnumDescriptor() ([]byte, []int) {	return fileDescriptor_config_807c5df32db81c88, []int{0}}type TransportConfig struct {	// Type of network that this settings supports.	// Deprecated. Use the string form below.	Protocol TransportProtocol `protobuf:"varint,1,opt,name=protocol,proto3,enum=v2ray.core.transport.internet.TransportProtocol" json:"protocol,omitempty"`	// Type of network that this settings supports.	ProtocolName string `protobuf:"bytes,3,opt,name=protocol_name,json=protocolName,proto3" json:"protocol_name,omitempty"`	// Specific settings. Must be of the transports.	Settings             *serial.TypedMessage `protobuf:"bytes,2,opt,name=settings,proto3" json:"settings,omitempty"`	XXX_NoUnkeyedLiteral struct{}             `json:"-"`	XXX_unrecognized     []byte               `json:"-"`	XXX_sizecache        int32                `json:"-"`}func (m *TransportConfig) Reset()         { *m = TransportConfig{} }func (m *TransportConfig) String() string { return proto.CompactTextString(m) }func (*TransportConfig) ProtoMessage()    {}func (*TransportConfig) Descriptor() ([]byte, []int) {	return fileDescriptor_config_807c5df32db81c88, []int{0}}func (m *TransportConfig) XXX_Unmarshal(b []byte) error {	return xxx_messageInfo_TransportConfig.Unmarshal(m, b)}func (m *TransportConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {	return xxx_messageInfo_TransportConfig.Marshal(b, m, deterministic)}func (dst *TransportConfig) XXX_Merge(src proto.Message) {	xxx_messageInfo_TransportConfig.Merge(dst, src)}func (m *TransportConfig) XXX_Size() int {	return xxx_messageInfo_TransportConfig.Size(m)}func (m *TransportConfig) XXX_DiscardUnknown() {	xxx_messageInfo_TransportConfig.DiscardUnknown(m)}var xxx_messageInfo_TransportConfig proto.InternalMessageInfofunc (m *TransportConfig) GetProtocol() TransportProtocol {	if m != nil {		return m.Protocol	}	return TransportProtocol_TCP}func (m *TransportConfig) GetProtocolName() string {	if m != nil {		return m.ProtocolName	}	return ""}func (m *TransportConfig) GetSettings() *serial.TypedMessage {	if m != nil {		return m.Settings	}	return nil}type StreamConfig struct {	// Effective network. Deprecated. Use the string form below.	Protocol TransportProtocol `protobuf:"varint,1,opt,name=protocol,proto3,enum=v2ray.core.transport.internet.TransportProtocol" json:"protocol,omitempty"` // Deprecated: Do not use.	// Effective network.	ProtocolName      string             `protobuf:"bytes,5,opt,name=protocol_name,json=protocolName,proto3" json:"protocol_name,omitempty"`	TransportSettings []*TransportConfig `protobuf:"bytes,2,rep,name=transport_settings,json=transportSettings,proto3" json:"transport_settings,omitempty"`	// Type of security. Must be a message name of the settings proto.	SecurityType string `protobuf:"bytes,3,opt,name=security_type,json=securityType,proto3" json:"security_type,omitempty"`	// Settings for transport security. For now the only choice is TLS.	SecuritySettings     []*serial.TypedMessage `protobuf:"bytes,4,rep,name=security_settings,json=securitySettings,proto3" json:"security_settings,omitempty"`	SocketSettings       *SocketConfig          `protobuf:"bytes,6,opt,name=socket_settings,json=socketSettings,proto3" json:"socket_settings,omitempty"`	XXX_NoUnkeyedLiteral struct{}               `json:"-"`	XXX_unrecognized     []byte                 `json:"-"`	XXX_sizecache        int32                  `json:"-"`}func (m *StreamConfig) Reset()         { *m = StreamConfig{} }func (m *StreamConfig) String() string { return proto.CompactTextString(m) }func (*StreamConfig) ProtoMessage()    {}func (*StreamConfig) Descriptor() ([]byte, []int) {	return fileDescriptor_config_807c5df32db81c88, []int{1}}func (m *StreamConfig) XXX_Unmarshal(b []byte) error {	return xxx_messageInfo_StreamConfig.Unmarshal(m, b)}func (m *StreamConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {	return xxx_messageInfo_StreamConfig.Marshal(b, m, deterministic)}func (dst *StreamConfig) XXX_Merge(src proto.Message) {	xxx_messageInfo_StreamConfig.Merge(dst, src)}func (m *StreamConfig) XXX_Size() int {	return xxx_messageInfo_StreamConfig.Size(m)}func (m *StreamConfig) XXX_DiscardUnknown() {	xxx_messageInfo_StreamConfig.DiscardUnknown(m)}var xxx_messageInfo_StreamConfig proto.InternalMessageInfo// Deprecated: Do not use.func (m *StreamConfig) GetProtocol() TransportProtocol {	if m != nil {		return m.Protocol	}	return TransportProtocol_TCP}func (m *StreamConfig) GetProtocolName() string {	if m != nil {		return m.ProtocolName	}	return ""}func (m *StreamConfig) GetTransportSettings() []*TransportConfig {	if m != nil {		return m.TransportSettings	}	return nil}func (m *StreamConfig) GetSecurityType() string {	if m != nil {		return m.SecurityType	}	return ""}func (m *StreamConfig) GetSecuritySettings() []*serial.TypedMessage {	if m != nil {		return m.SecuritySettings	}	return nil}func (m *StreamConfig) GetSocketSettings() *SocketConfig {	if m != nil {		return m.SocketSettings	}	return nil}type ProxyConfig struct {	Tag                  string   `protobuf:"bytes,1,opt,name=tag,proto3" json:"tag,omitempty"`	XXX_NoUnkeyedLiteral struct{} `json:"-"`	XXX_unrecognized     []byte   `json:"-"`	XXX_sizecache        int32    `json:"-"`}func (m *ProxyConfig) Reset()         { *m = ProxyConfig{} }func (m *ProxyConfig) String() string { return proto.CompactTextString(m) }func (*ProxyConfig) ProtoMessage()    {}func (*ProxyConfig) Descriptor() ([]byte, []int) {	return fileDescriptor_config_807c5df32db81c88, []int{2}}func (m *ProxyConfig) XXX_Unmarshal(b []byte) error {	return xxx_messageInfo_ProxyConfig.Unmarshal(m, b)}func (m *ProxyConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {	return xxx_messageInfo_ProxyConfig.Marshal(b, m, deterministic)}func (dst *ProxyConfig) XXX_Merge(src proto.Message) {	xxx_messageInfo_ProxyConfig.Merge(dst, src)}func (m *ProxyConfig) XXX_Size() int {	return xxx_messageInfo_ProxyConfig.Size(m)}func (m *ProxyConfig) XXX_DiscardUnknown() {	xxx_messageInfo_ProxyConfig.DiscardUnknown(m)}var xxx_messageInfo_ProxyConfig proto.InternalMessageInfofunc (m *ProxyConfig) GetTag() string {	if m != nil {		return m.Tag	}	return ""}type SocketConfig struct {	Mark                 int32    `protobuf:"varint,1,opt,name=mark,proto3" json:"mark,omitempty"`	XXX_NoUnkeyedLiteral struct{} `json:"-"`	XXX_unrecognized     []byte   `json:"-"`	XXX_sizecache        int32    `json:"-"`}func (m *SocketConfig) Reset()         { *m = SocketConfig{} }func (m *SocketConfig) String() string { return proto.CompactTextString(m) }func (*SocketConfig) ProtoMessage()    {}func (*SocketConfig) Descriptor() ([]byte, []int) {	return fileDescriptor_config_807c5df32db81c88, []int{3}}func (m *SocketConfig) XXX_Unmarshal(b []byte) error {	return xxx_messageInfo_SocketConfig.Unmarshal(m, b)}func (m *SocketConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {	return xxx_messageInfo_SocketConfig.Marshal(b, m, deterministic)}func (dst *SocketConfig) XXX_Merge(src proto.Message) {	xxx_messageInfo_SocketConfig.Merge(dst, src)}func (m *SocketConfig) XXX_Size() int {	return xxx_messageInfo_SocketConfig.Size(m)}func (m *SocketConfig) XXX_DiscardUnknown() {	xxx_messageInfo_SocketConfig.DiscardUnknown(m)}var xxx_messageInfo_SocketConfig proto.InternalMessageInfofunc (m *SocketConfig) GetMark() int32 {	if m != nil {		return m.Mark	}	return 0}func init() {	proto.RegisterType((*TransportConfig)(nil), "v2ray.core.transport.internet.TransportConfig")	proto.RegisterType((*StreamConfig)(nil), "v2ray.core.transport.internet.StreamConfig")	proto.RegisterType((*ProxyConfig)(nil), "v2ray.core.transport.internet.ProxyConfig")	proto.RegisterType((*SocketConfig)(nil), "v2ray.core.transport.internet.SocketConfig")	proto.RegisterEnum("v2ray.core.transport.internet.TransportProtocol", TransportProtocol_name, TransportProtocol_value)}func init() {	proto.RegisterFile("v2ray.com/core/transport/internet/config.proto", fileDescriptor_config_807c5df32db81c88)}var fileDescriptor_config_807c5df32db81c88 = []byte{	// 456 bytes of a gzipped FileDescriptorProto	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x92, 0xe1, 0x8a, 0x13, 0x31,	0x10, 0xc7, 0xdd, 0x6e, 0x7b, 0xb6, 0xd3, 0xde, 0xdd, 0x36, 0x9f, 0x8a, 0x70, 0x58, 0x57, 0x90,	0xa2, 0x90, 0x3d, 0xd6, 0x37, 0x68, 0xef, 0x83, 0xa2, 0xa7, 0xcb, 0x76, 0x55, 0x38, 0x90, 0x92,	0x8b, 0xb1, 0x2c, 0x77, 0x49, 0x4a, 0x12, 0xc5, 0x7d, 0x25, 0x3f, 0xfb, 0x10, 0x3e, 0x96, 0x24,	0xbb, 0x09, 0x45, 0xa5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