config.pb.go 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265
  1. package internet
  2. import proto "github.com/golang/protobuf/proto"
  3. import fmt "fmt"
  4. import math "math"
  5. import serial "v2ray.com/core/common/serial"
  6. // Reference imports to suppress errors if they are not otherwise used.
  7. var _ = proto.Marshal
  8. var _ = fmt.Errorf
  9. var _ = math.Inf
  10. // This is a compile-time assertion to ensure that this generated file
  11. // is compatible with the proto package it is being compiled against.
  12. // A compilation error at this line likely means your copy of the
  13. // proto package needs to be updated.
  14. const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
  15. type TransportProtocol int32
  16. const (
  17. TransportProtocol_TCP TransportProtocol = 0
  18. TransportProtocol_UDP TransportProtocol = 1
  19. TransportProtocol_MKCP TransportProtocol = 2
  20. TransportProtocol_WebSocket TransportProtocol = 3
  21. TransportProtocol_HTTP TransportProtocol = 4
  22. TransportProtocol_DomainSocket TransportProtocol = 5
  23. )
  24. var TransportProtocol_name = map[int32]string{
  25. 0: "TCP",
  26. 1: "UDP",
  27. 2: "MKCP",
  28. 3: "WebSocket",
  29. 4: "HTTP",
  30. 5: "DomainSocket",
  31. }
  32. var TransportProtocol_value = map[string]int32{
  33. "TCP": 0,
  34. "UDP": 1,
  35. "MKCP": 2,
  36. "WebSocket": 3,
  37. "HTTP": 4,
  38. "DomainSocket": 5,
  39. }
  40. func (x TransportProtocol) String() string {
  41. return proto.EnumName(TransportProtocol_name, int32(x))
  42. }
  43. func (TransportProtocol) EnumDescriptor() ([]byte, []int) {
  44. return fileDescriptor_config_59931ebeb80dc13e, []int{0}
  45. }
  46. type TransportConfig struct {
  47. // Type of network that this settings supports.
  48. // Deprecated. Use the string form below.
  49. Protocol TransportProtocol `protobuf:"varint,1,opt,name=protocol,proto3,enum=v2ray.core.transport.internet.TransportProtocol" json:"protocol,omitempty"`
  50. // Type of network that this settings supports.
  51. ProtocolName string `protobuf:"bytes,3,opt,name=protocol_name,json=protocolName,proto3" json:"protocol_name,omitempty"`
  52. // Specific settings. Must be of the transports.
  53. Settings *serial.TypedMessage `protobuf:"bytes,2,opt,name=settings,proto3" json:"settings,omitempty"`
  54. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  55. XXX_unrecognized []byte `json:"-"`
  56. XXX_sizecache int32 `json:"-"`
  57. }
  58. func (m *TransportConfig) Reset() { *m = TransportConfig{} }
  59. func (m *TransportConfig) String() string { return proto.CompactTextString(m) }
  60. func (*TransportConfig) ProtoMessage() {}
  61. func (*TransportConfig) Descriptor() ([]byte, []int) {
  62. return fileDescriptor_config_59931ebeb80dc13e, []int{0}
  63. }
  64. func (m *TransportConfig) XXX_Unmarshal(b []byte) error {
  65. return xxx_messageInfo_TransportConfig.Unmarshal(m, b)
  66. }
  67. func (m *TransportConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  68. return xxx_messageInfo_TransportConfig.Marshal(b, m, deterministic)
  69. }
  70. func (dst *TransportConfig) XXX_Merge(src proto.Message) {
  71. xxx_messageInfo_TransportConfig.Merge(dst, src)
  72. }
  73. func (m *TransportConfig) XXX_Size() int {
  74. return xxx_messageInfo_TransportConfig.Size(m)
  75. }
  76. func (m *TransportConfig) XXX_DiscardUnknown() {
  77. xxx_messageInfo_TransportConfig.DiscardUnknown(m)
  78. }
  79. var xxx_messageInfo_TransportConfig proto.InternalMessageInfo
  80. func (m *TransportConfig) GetProtocol() TransportProtocol {
  81. if m != nil {
  82. return m.Protocol
  83. }
  84. return TransportProtocol_TCP
  85. }
  86. func (m *TransportConfig) GetProtocolName() string {
  87. if m != nil {
  88. return m.ProtocolName
  89. }
  90. return ""
  91. }
  92. func (m *TransportConfig) GetSettings() *serial.TypedMessage {
  93. if m != nil {
  94. return m.Settings
  95. }
  96. return nil
  97. }
  98. type StreamConfig struct {
  99. // Effective network. Deprecated. Use the string form below.
  100. Protocol TransportProtocol `protobuf:"varint,1,opt,name=protocol,proto3,enum=v2ray.core.transport.internet.TransportProtocol" json:"protocol,omitempty"` // Deprecated: Do not use.
  101. // Effective network.
  102. ProtocolName string `protobuf:"bytes,5,opt,name=protocol_name,json=protocolName,proto3" json:"protocol_name,omitempty"`
  103. TransportSettings []*TransportConfig `protobuf:"bytes,2,rep,name=transport_settings,json=transportSettings,proto3" json:"transport_settings,omitempty"`
  104. // Type of security. Must be a message name of the settings proto.
  105. SecurityType string `protobuf:"bytes,3,opt,name=security_type,json=securityType,proto3" json:"security_type,omitempty"`
  106. // Settings for transport security. For now the only choice is TLS.
  107. SecuritySettings []*serial.TypedMessage `protobuf:"bytes,4,rep,name=security_settings,json=securitySettings,proto3" json:"security_settings,omitempty"`
  108. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  109. XXX_unrecognized []byte `json:"-"`
  110. XXX_sizecache int32 `json:"-"`
  111. }
  112. func (m *StreamConfig) Reset() { *m = StreamConfig{} }
  113. func (m *StreamConfig) String() string { return proto.CompactTextString(m) }
  114. func (*StreamConfig) ProtoMessage() {}
  115. func (*StreamConfig) Descriptor() ([]byte, []int) {
  116. return fileDescriptor_config_59931ebeb80dc13e, []int{1}
  117. }
  118. func (m *StreamConfig) XXX_Unmarshal(b []byte) error {
  119. return xxx_messageInfo_StreamConfig.Unmarshal(m, b)
  120. }
  121. func (m *StreamConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  122. return xxx_messageInfo_StreamConfig.Marshal(b, m, deterministic)
  123. }
  124. func (dst *StreamConfig) XXX_Merge(src proto.Message) {
  125. xxx_messageInfo_StreamConfig.Merge(dst, src)
  126. }
  127. func (m *StreamConfig) XXX_Size() int {
  128. return xxx_messageInfo_StreamConfig.Size(m)
  129. }
  130. func (m *StreamConfig) XXX_DiscardUnknown() {
  131. xxx_messageInfo_StreamConfig.DiscardUnknown(m)
  132. }
  133. var xxx_messageInfo_StreamConfig proto.InternalMessageInfo
  134. // Deprecated: Do not use.
  135. func (m *StreamConfig) GetProtocol() TransportProtocol {
  136. if m != nil {
  137. return m.Protocol
  138. }
  139. return TransportProtocol_TCP
  140. }
  141. func (m *StreamConfig) GetProtocolName() string {
  142. if m != nil {
  143. return m.ProtocolName
  144. }
  145. return ""
  146. }
  147. func (m *StreamConfig) GetTransportSettings() []*TransportConfig {
  148. if m != nil {
  149. return m.TransportSettings
  150. }
  151. return nil
  152. }
  153. func (m *StreamConfig) GetSecurityType() string {
  154. if m != nil {
  155. return m.SecurityType
  156. }
  157. return ""
  158. }
  159. func (m *StreamConfig) GetSecuritySettings() []*serial.TypedMessage {
  160. if m != nil {
  161. return m.SecuritySettings
  162. }
  163. return nil
  164. }
  165. type ProxyConfig struct {
  166. Tag string `protobuf:"bytes,1,opt,name=tag,proto3" json:"tag,omitempty"`
  167. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  168. XXX_unrecognized []byte `json:"-"`
  169. XXX_sizecache int32 `json:"-"`
  170. }
  171. func (m *ProxyConfig) Reset() { *m = ProxyConfig{} }
  172. func (m *ProxyConfig) String() string { return proto.CompactTextString(m) }
  173. func (*ProxyConfig) ProtoMessage() {}
  174. func (*ProxyConfig) Descriptor() ([]byte, []int) {
  175. return fileDescriptor_config_59931ebeb80dc13e, []int{2}
  176. }
  177. func (m *ProxyConfig) XXX_Unmarshal(b []byte) error {
  178. return xxx_messageInfo_ProxyConfig.Unmarshal(m, b)
  179. }
  180. func (m *ProxyConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  181. return xxx_messageInfo_ProxyConfig.Marshal(b, m, deterministic)
  182. }
  183. func (dst *ProxyConfig) XXX_Merge(src proto.Message) {
  184. xxx_messageInfo_ProxyConfig.Merge(dst, src)
  185. }
  186. func (m *ProxyConfig) XXX_Size() int {
  187. return xxx_messageInfo_ProxyConfig.Size(m)
  188. }
  189. func (m *ProxyConfig) XXX_DiscardUnknown() {
  190. xxx_messageInfo_ProxyConfig.DiscardUnknown(m)
  191. }
  192. var xxx_messageInfo_ProxyConfig proto.InternalMessageInfo
  193. func (m *ProxyConfig) GetTag() string {
  194. if m != nil {
  195. return m.Tag
  196. }
  197. return ""
  198. }
  199. func init() {
  200. proto.RegisterType((*TransportConfig)(nil), "v2ray.core.transport.internet.TransportConfig")
  201. proto.RegisterType((*StreamConfig)(nil), "v2ray.core.transport.internet.StreamConfig")
  202. proto.RegisterType((*ProxyConfig)(nil), "v2ray.core.transport.internet.ProxyConfig")
  203. proto.RegisterEnum("v2ray.core.transport.internet.TransportProtocol", TransportProtocol_name, TransportProtocol_value)
  204. }
  205. func init() {
  206. proto.RegisterFile("v2ray.com/core/transport/internet/config.proto", fileDescriptor_config_59931ebeb80dc13e)
  207. }
  208. var fileDescriptor_config_59931ebeb80dc13e = []byte{
  209. // 419 bytes of a gzipped FileDescriptorProto
  210. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x91, 0xd1, 0x8a, 0x13, 0x31,
  211. 0x14, 0x86, 0xcd, 0x4c, 0x57, 0xdb, 0xd3, 0xae, 0xa6, 0xb9, 0x2a, 0xc2, 0x62, 0xad, 0x20, 0xc5,
  212. 0x8b, 0xcc, 0x32, 0xbe, 0x41, 0xbb, 0x17, 0x8a, 0xae, 0x86, 0xe9, 0xa8, 0xb0, 0x20, 0x25, 0x1b,
  213. 0x63, 0x19, 0xdc, 0x24, 0x25, 0x13, 0xc5, 0x79, 0x25, 0x9f, 0xc4, 0xa7, 0xf0, 0x59, 0x24, 0x33,
  214. 0x93, 0xb0, 0xa8, 0x94, 0x82, 0x77, 0x87, 0x9c, 0x3f, 0xff, 0x39, 0xdf, 0x7f, 0x80, 0x7e, 0xcb,
  215. 0x2d, 0x6f, 0xa8, 0x30, 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, 0xec, 0x02, 0x1d, 0x42, 0x31, 0x8d, 0x9a, 0x4d, 0x6f, 0xe4, 0x77, 0xa8, 0xa5,
  227. 0xf8, 0x6a, 0x2b, 0xd7, 0x6c, 0xfd, 0x45, 0x43, 0x9e, 0xe1, 0xd1, 0xa7, 0x43, 0x36, 0x30, 0x8d,
  228. 0xa2, 0xb8, 0xc2, 0xa0, 0x5d, 0xe1, 0xd8, 0x60, 0x71, 0x30, 0x08, 0x93, 0x17, 0x8f, 0x60, 0xcc,
  229. 0xac, 0xf9, 0xde, 0xf4, 0xf1, 0x62, 0x48, 0x1d, 0xdf, 0xb5, 0xc9, 0x8e, 0x0a, 0x5f, 0x3e, 0xbb,
  230. 0x82, 0xe9, 0x5f, 0x09, 0x92, 0x7b, 0x90, 0x96, 0x6b, 0x86, 0xef, 0xf8, 0xe2, 0xdd, 0x05, 0xc3,
  231. 0x88, 0x0c, 0x61, 0x70, 0xf9, 0x6a, 0xcd, 0x70, 0x42, 0x4e, 0x61, 0xf4, 0x41, 0x5e, 0x6f, 0x8c,
  232. 0xf8, 0x22, 0x1d, 0x4e, 0x7d, 0xe3, 0x45, 0x59, 0x32, 0x3c, 0x20, 0x18, 0x26, 0x17, 0x46, 0xf1,
  233. 0x4a, 0xf7, 0xbd, 0x93, 0xd5, 0x5b, 0x78, 0x2c, 0x8c, 0x3a, 0x1c, 0x1f, 0x43, 0x57, 0xc3, 0x50,
  234. 0xff, 0x48, 0xce, 0xde, 0xe7, 0x05, 0x6f, 0xe8, 0xda, 0x6b, 0xe3, 0x5a, 0xf4, 0x65, 0xdf, 0xbf,
  235. 0xbe, 0xdb, 0x1e, 0xed, 0xf9, 0xef, 0x00, 0x00, 0x00, 0xff, 0xff, 0x1c, 0x47, 0x39, 0x56, 0x83,
  236. 0x03, 0x00, 0x00,
  237. }