package internet import 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.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 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_d7068fe3707ce485, []int{0} } type SocketConfig_TCPFastOpenState int32 const ( // AsIs is to leave the current TFO state as is, unmodified. SocketConfig_AsIs SocketConfig_TCPFastOpenState = 0 // Enable is for enabling TFO explictly. SocketConfig_Enable SocketConfig_TCPFastOpenState = 1 // Disable is for disabling TFO explictly. SocketConfig_Disable SocketConfig_TCPFastOpenState = 2 ) var SocketConfig_TCPFastOpenState_name = map[int32]string{ 0: "AsIs", 1: "Enable", 2: "Disable", } var SocketConfig_TCPFastOpenState_value = map[string]int32{ "AsIs": 0, "Enable": 1, "Disable": 2, } func (x SocketConfig_TCPFastOpenState) String() string { return proto.EnumName(SocketConfig_TCPFastOpenState_name, int32(x)) } func (SocketConfig_TCPFastOpenState) EnumDescriptor() ([]byte, []int) { return fileDescriptor_config_d7068fe3707ce485, []int{3, 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_d7068fe3707ce485, []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.InternalMessageInfo func (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_d7068fe3707ce485, []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_d7068fe3707ce485, []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.InternalMessageInfo func (m *ProxyConfig) GetTag() string { if m != nil { return m.Tag } return "" } // SocketConfig is options to be applied on network sockets. type SocketConfig struct { // Mark of the connection. If non-zero, the value will be set to SO_MARK. Mark int32 `protobuf:"varint,1,opt,name=mark,proto3" json:"mark,omitempty"` // TFO is the state of TFO settings. Tfo SocketConfig_TCPFastOpenState `protobuf:"varint,2,opt,name=tfo,proto3,enum=v2ray.core.transport.internet.SocketConfig_TCPFastOpenState" json:"tfo,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_d7068fe3707ce485, []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.InternalMessageInfo func (m *SocketConfig) GetMark() int32 { if m != nil { return m.Mark } return 0 } func (m *SocketConfig) GetTfo() SocketConfig_TCPFastOpenState { if m != nil { return m.Tfo } return SocketConfig_AsIs } 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) proto.RegisterEnum("v2ray.core.transport.internet.SocketConfig_TCPFastOpenState", SocketConfig_TCPFastOpenState_name, SocketConfig_TCPFastOpenState_value) } func init() { proto.RegisterFile("v2ray.com/core/transport/internet/config.proto", fileDescriptor_config_d7068fe3707ce485) } var fileDescriptor_config_d7068fe3707ce485 = []byte{ // 518 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x92, 0xd1, 0x8a, 0x13, 0x31, 0x14, 0x86, 0x77,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