config.pb.go 7.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165
  1. package internet
  2. import proto "github.com/golang/protobuf/proto"
  3. import fmt "fmt"
  4. import math "math"
  5. import v2ray_core_common_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. )
  22. var TransportProtocol_name = map[int32]string{
  23. 0: "TCP",
  24. 1: "UDP",
  25. 2: "MKCP",
  26. 3: "WebSocket",
  27. }
  28. var TransportProtocol_value = map[string]int32{
  29. "TCP": 0,
  30. "UDP": 1,
  31. "MKCP": 2,
  32. "WebSocket": 3,
  33. }
  34. func (x TransportProtocol) String() string {
  35. return proto.EnumName(TransportProtocol_name, int32(x))
  36. }
  37. func (TransportProtocol) EnumDescriptor() ([]byte, []int) { return fileDescriptor0, []int{0} }
  38. type TransportConfig struct {
  39. // Type of network that this settings supports.
  40. Protocol TransportProtocol `protobuf:"varint,1,opt,name=protocol,enum=v2ray.core.transport.internet.TransportProtocol" json:"protocol,omitempty"`
  41. // Specific settings.
  42. Settings *v2ray_core_common_serial.TypedMessage `protobuf:"bytes,2,opt,name=settings" json:"settings,omitempty"`
  43. }
  44. func (m *TransportConfig) Reset() { *m = TransportConfig{} }
  45. func (m *TransportConfig) String() string { return proto.CompactTextString(m) }
  46. func (*TransportConfig) ProtoMessage() {}
  47. func (*TransportConfig) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} }
  48. func (m *TransportConfig) GetProtocol() TransportProtocol {
  49. if m != nil {
  50. return m.Protocol
  51. }
  52. return TransportProtocol_TCP
  53. }
  54. func (m *TransportConfig) GetSettings() *v2ray_core_common_serial.TypedMessage {
  55. if m != nil {
  56. return m.Settings
  57. }
  58. return nil
  59. }
  60. type StreamConfig struct {
  61. // Effective network.
  62. Protocol TransportProtocol `protobuf:"varint,1,opt,name=protocol,enum=v2ray.core.transport.internet.TransportProtocol" json:"protocol,omitempty"`
  63. TransportSettings []*TransportConfig `protobuf:"bytes,2,rep,name=transport_settings,json=transportSettings" json:"transport_settings,omitempty"`
  64. // Type of security. Must be a message name of the settings proto.
  65. SecurityType string `protobuf:"bytes,3,opt,name=security_type,json=securityType" json:"security_type,omitempty"`
  66. SecuritySettings []*v2ray_core_common_serial.TypedMessage `protobuf:"bytes,4,rep,name=security_settings,json=securitySettings" json:"security_settings,omitempty"`
  67. }
  68. func (m *StreamConfig) Reset() { *m = StreamConfig{} }
  69. func (m *StreamConfig) String() string { return proto.CompactTextString(m) }
  70. func (*StreamConfig) ProtoMessage() {}
  71. func (*StreamConfig) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{1} }
  72. func (m *StreamConfig) GetProtocol() TransportProtocol {
  73. if m != nil {
  74. return m.Protocol
  75. }
  76. return TransportProtocol_TCP
  77. }
  78. func (m *StreamConfig) GetTransportSettings() []*TransportConfig {
  79. if m != nil {
  80. return m.TransportSettings
  81. }
  82. return nil
  83. }
  84. func (m *StreamConfig) GetSecurityType() string {
  85. if m != nil {
  86. return m.SecurityType
  87. }
  88. return ""
  89. }
  90. func (m *StreamConfig) GetSecuritySettings() []*v2ray_core_common_serial.TypedMessage {
  91. if m != nil {
  92. return m.SecuritySettings
  93. }
  94. return nil
  95. }
  96. type ProxyConfig struct {
  97. Tag string `protobuf:"bytes,1,opt,name=tag" json:"tag,omitempty"`
  98. }
  99. func (m *ProxyConfig) Reset() { *m = ProxyConfig{} }
  100. func (m *ProxyConfig) String() string { return proto.CompactTextString(m) }
  101. func (*ProxyConfig) ProtoMessage() {}
  102. func (*ProxyConfig) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{2} }
  103. func (m *ProxyConfig) GetTag() string {
  104. if m != nil {
  105. return m.Tag
  106. }
  107. return ""
  108. }
  109. func init() {
  110. proto.RegisterType((*TransportConfig)(nil), "v2ray.core.transport.internet.TransportConfig")
  111. proto.RegisterType((*StreamConfig)(nil), "v2ray.core.transport.internet.StreamConfig")
  112. proto.RegisterType((*ProxyConfig)(nil), "v2ray.core.transport.internet.ProxyConfig")
  113. proto.RegisterEnum("v2ray.core.transport.internet.TransportProtocol", TransportProtocol_name, TransportProtocol_value)
  114. }
  115. func init() { proto.RegisterFile("v2ray.com/core/transport/internet/config.proto", fileDescriptor0) }
  116. var fileDescriptor0 = []byte{
  117. // 374 bytes of a gzipped FileDescriptorProto
  118. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0xb4, 0x91, 0x4d, 0x4b, 0xeb, 0x40,
  119. 0x14, 0x86, 0x6f, 0x92, 0x72, 0x6f, 0x7a, 0xda, 0x5e, 0xd3, 0x59, 0x15, 0xa1, 0x58, 0x2b, 0x48,
  120. 0x70, 0x31, 0x29, 0x71, 0xef, 0xa2, 0x71, 0x23, 0x5a, 0x0c, 0x49, 0x55, 0x10, 0xa4, 0xa4, 0xe3,
  121. 0x18, 0x82, 0x4d, 0xa6, 0x4c, 0x46, 0x31, 0xbf, 0xc7, 0x9d, 0x7b, 0xff, 0x9f, 0xe4, 0x63, 0x86,
  122. 0xa2, 0x50, 0xba, 0x71, 0x37, 0x64, 0xde, 0xf3, 0x9c, 0x27, 0xef, 0x00, 0x7e, 0x75, 0x79, 0x54,
  123. 0x60, 0xc2, 0x52, 0x87, 0x30, 0x4e, 0x1d, 0xc1, 0xa3, 0x2c, 0x5f, 0x33, 0x2e, 0x9c, 0x24, 0x13,
  124. 0x94, 0x67, 0x54, 0x38, 0x84, 0x65, 0x4f, 0x49, 0x8c, 0xd7, 0x9c, 0x09, 0x86, 0x86, 0x32, 0xcf,
  125. 0x29, 0x56, 0x59, 0x2c, 0xb3, 0xfb, 0x93, 0x6f, 0x38, 0xc2, 0xd2, 0x94, 0x65, 0x4e, 0x4e, 0x79,
  126. 0x12, 0xad, 0x1c, 0x51, 0xac, 0xe9, 0xe3, 0x22, 0xa5, 0x79, 0x1e, 0xc5, 0xb4, 0x06, 0x8e, 0xdf,
  127. 0x35, 0xd8, 0x9b, 0x4b, 0x90, 0x57, 0xad, 0x42, 0x57, 0x60, 0x56, 0x97, 0x84, 0xad, 0x06, 0xda,
  128. 0x48, 0xb3, 0xff, 0xbb, 0x13, 0xbc, 0x75, 0x2f, 0x56, 0x04, 0xbf, 0x99, 0x0b, 0x14, 0x01, 0x4d,
  129. 0xc1, 0xcc, 0xa9, 0x10, 0x49, 0x16, 0xe7, 0x03, 0x7d, 0xa4, 0xd9, 0x1d, 0xf7, 0x78, 0x93, 0x56,
  130. 0x2b, 0xe2, 0x5a, 0x11, 0xcf, 0x4b, 0xc5, 0x59, 0x6d, 0x18, 0xa8, 0xb9, 0xf1, 0xa7, 0x0e, 0xdd,
  131. 0x50, 0x70, 0x1a, 0xa5, 0xbf, 0xa2, 0xf8, 0x00, 0x48, 0x4d, 0x2c, 0x36, 0x64, 0x0d, 0xbb, 0xe3,
  132. 0xe2, 0x5d, 0xb9, 0xb5, 0x59, 0xd0, 0x57, 0x99, 0xb0, 0x01, 0xa1, 0x23, 0xe8, 0xe5, 0x94, 0xbc,
  133. 0xf0, 0x44, 0x14, 0x8b, 0xf2, 0x0d, 0x06, 0xc6, 0x48, 0xb3, 0xdb, 0x41, 0x57, 0x7e, 0x2c, 0x7f,
  134. 0x1a, 0x85, 0xd0, 0x57, 0x21, 0xa5, 0xd0, 0xaa, 0x14, 0x76, 0xed, 0xcb, 0x92, 0x00, 0xb9, 0x79,
  135. 0x7c, 0x00, 0x1d, 0x9f, 0xb3, 0xb7, 0xa2, 0x69, 0xcd, 0x02, 0x43, 0x44, 0x71, 0x55, 0x58, 0x3b,
  136. 0x28, 0x8f, 0x27, 0x67, 0xd0, 0xff, 0x51, 0x0c, 0xfa, 0x07, 0xc6, 0xdc, 0xf3, 0xad, 0x3f, 0xe5,
  137. 0xe1, 0xe6, 0xdc, 0xb7, 0x34, 0x64, 0x42, 0x6b, 0x76, 0xe9, 0xf9, 0x96, 0x8e, 0x7a, 0xd0, 0xbe,
  138. 0xa3, 0xcb, 0x90, 0x91, 0x67, 0x2a, 0x2c, 0x63, 0x7a, 0x0d, 0x87, 0x84, 0xa5, 0xdb, 0x2b, 0xf2,
  139. 0xb5, 0x7b, 0x53, 0x9e, 0x3f, 0xf4, 0xe1, 0xad, 0x1b, 0x44, 0x05, 0xf6, 0xca, 0xac, 0x5a, 0x8d,
  140. 0x2f, 0x9a, 0xfb, 0xe5, 0xdf, 0xea, 0x51, 0x4e, 0xbf, 0x02, 0x00, 0x00, 0xff, 0xff, 0xbf, 0x4a,
  141. 0x68, 0x51, 0x19, 0x03, 0x00, 0x00,
  142. }