| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165 | 
							- package internet
 
- 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
 
- type TransportProtocol int32
 
- const (
 
- 	TransportProtocol_TCP       TransportProtocol = 0
 
- 	TransportProtocol_UDP       TransportProtocol = 1
 
- 	TransportProtocol_MKCP      TransportProtocol = 2
 
- 	TransportProtocol_WebSocket TransportProtocol = 3
 
- )
 
- var TransportProtocol_name = map[int32]string{
 
- 	0: "TCP",
 
- 	1: "UDP",
 
- 	2: "MKCP",
 
- 	3: "WebSocket",
 
- }
 
- var TransportProtocol_value = map[string]int32{
 
- 	"TCP":       0,
 
- 	"UDP":       1,
 
- 	"MKCP":      2,
 
- 	"WebSocket": 3,
 
- }
 
- func (x TransportProtocol) String() string {
 
- 	return proto.EnumName(TransportProtocol_name, int32(x))
 
- }
 
- func (TransportProtocol) EnumDescriptor() ([]byte, []int) { return fileDescriptor0, []int{0} }
 
- type TransportConfig struct {
 
- 	// Type of network that this settings supports.
 
- 	Protocol TransportProtocol `protobuf:"varint,1,opt,name=protocol,enum=v2ray.core.transport.internet.TransportProtocol" json:"protocol,omitempty"`
 
- 	// Specific settings.
 
- 	Settings *v2ray_core_common_serial.TypedMessage `protobuf:"bytes,2,opt,name=settings" json:"settings,omitempty"`
 
- }
 
- func (m *TransportConfig) Reset()                    { *m = TransportConfig{} }
 
- func (m *TransportConfig) String() string            { return proto.CompactTextString(m) }
 
- func (*TransportConfig) ProtoMessage()               {}
 
- func (*TransportConfig) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} }
 
- func (m *TransportConfig) GetProtocol() TransportProtocol {
 
- 	if m != nil {
 
- 		return m.Protocol
 
- 	}
 
- 	return TransportProtocol_TCP
 
- }
 
- func (m *TransportConfig) GetSettings() *v2ray_core_common_serial.TypedMessage {
 
- 	if m != nil {
 
- 		return m.Settings
 
- 	}
 
- 	return nil
 
- }
 
- type StreamConfig struct {
 
- 	// Effective network.
 
- 	Protocol          TransportProtocol  `protobuf:"varint,1,opt,name=protocol,enum=v2ray.core.transport.internet.TransportProtocol" json:"protocol,omitempty"`
 
- 	TransportSettings []*TransportConfig `protobuf:"bytes,2,rep,name=transport_settings,json=transportSettings" 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" json:"security_type,omitempty"`
 
- 	SecuritySettings []*v2ray_core_common_serial.TypedMessage `protobuf:"bytes,4,rep,name=security_settings,json=securitySettings" json:"security_settings,omitempty"`
 
- }
 
- func (m *StreamConfig) Reset()                    { *m = StreamConfig{} }
 
- func (m *StreamConfig) String() string            { return proto.CompactTextString(m) }
 
- func (*StreamConfig) ProtoMessage()               {}
 
- func (*StreamConfig) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{1} }
 
- func (m *StreamConfig) GetProtocol() TransportProtocol {
 
- 	if m != nil {
 
- 		return m.Protocol
 
- 	}
 
- 	return TransportProtocol_TCP
 
- }
 
- 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() []*v2ray_core_common_serial.TypedMessage {
 
- 	if m != nil {
 
- 		return m.SecuritySettings
 
- 	}
 
- 	return nil
 
- }
 
- type ProxyConfig struct {
 
- 	Tag string `protobuf:"bytes,1,opt,name=tag" json:"tag,omitempty"`
 
- }
 
- func (m *ProxyConfig) Reset()                    { *m = ProxyConfig{} }
 
- func (m *ProxyConfig) String() string            { return proto.CompactTextString(m) }
 
- func (*ProxyConfig) ProtoMessage()               {}
 
- func (*ProxyConfig) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{2} }
 
- func (m *ProxyConfig) GetTag() string {
 
- 	if m != nil {
 
- 		return m.Tag
 
- 	}
 
- 	return ""
 
- }
 
- 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.RegisterEnum("v2ray.core.transport.internet.TransportProtocol", TransportProtocol_name, TransportProtocol_value)
 
- }
 
- func init() { proto.RegisterFile("v2ray.com/core/transport/internet/config.proto", fileDescriptor0) }
 
- var fileDescriptor0 = []byte{
 
- 	// 375 bytes of a gzipped FileDescriptorProto
 
- 	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0xb4, 0x91, 0x4f, 0x4b, 0xc3, 0x30,
 
- 	0x18, 0xc6, 0x6d, 0x3b, 0xb4, 0x7b, 0xbb, 0x69, 0x97, 0xd3, 0x10, 0x86, 0x73, 0x82, 0x14, 0x0f,
 
- 	0xe9, 0xa8, 0x77, 0x0f, 0xab, 0x17, 0xd1, 0x41, 0x69, 0xa7, 0xc2, 0x40, 0x46, 0x17, 0x63, 0x29,
 
- 	0xae, 0xcd, 0x48, 0xa3, 0xd8, 0xcf, 0xe3, 0xcd, 0xbb, 0xdf, 0x4f, 0xfa, 0x2f, 0x0c, 0x85, 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