config.pb.go 6.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136
  1. package internet
  2. import proto "github.com/golang/protobuf/proto"
  3. import fmt "fmt"
  4. import math "math"
  5. import v2ray_core_common_net "v2ray.com/core/common/net"
  6. import v2ray_core_common_serial "v2ray.com/core/common/serial"
  7. // Reference imports to suppress errors if they are not otherwise used.
  8. var _ = proto.Marshal
  9. var _ = fmt.Errorf
  10. var _ = math.Inf
  11. // This is a compile-time assertion to ensure that this generated file
  12. // is compatible with the proto package it is being compiled against.
  13. // A compilation error at this line likely means your copy of the
  14. // proto package needs to be updated.
  15. const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
  16. type NetworkSettings struct {
  17. // Type of network that this settings supports.
  18. Network v2ray_core_common_net.Network `protobuf:"varint,1,opt,name=network,enum=v2ray.core.common.net.Network" json:"network,omitempty"`
  19. // Specific settings.
  20. Settings *v2ray_core_common_serial.TypedMessage `protobuf:"bytes,2,opt,name=settings" json:"settings,omitempty"`
  21. }
  22. func (m *NetworkSettings) Reset() { *m = NetworkSettings{} }
  23. func (m *NetworkSettings) String() string { return proto.CompactTextString(m) }
  24. func (*NetworkSettings) ProtoMessage() {}
  25. func (*NetworkSettings) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} }
  26. func (m *NetworkSettings) GetNetwork() v2ray_core_common_net.Network {
  27. if m != nil {
  28. return m.Network
  29. }
  30. return v2ray_core_common_net.Network_Unknown
  31. }
  32. func (m *NetworkSettings) GetSettings() *v2ray_core_common_serial.TypedMessage {
  33. if m != nil {
  34. return m.Settings
  35. }
  36. return nil
  37. }
  38. type StreamConfig struct {
  39. // Effective network.
  40. Network v2ray_core_common_net.Network `protobuf:"varint,1,opt,name=network,enum=v2ray.core.common.net.Network" json:"network,omitempty"`
  41. NetworkSettings []*NetworkSettings `protobuf:"bytes,2,rep,name=network_settings,json=networkSettings" json:"network_settings,omitempty"`
  42. // Type of security. Must be a message name of the settings proto.
  43. SecurityType string `protobuf:"bytes,3,opt,name=security_type,json=securityType" json:"security_type,omitempty"`
  44. SecuritySettings []*v2ray_core_common_serial.TypedMessage `protobuf:"bytes,4,rep,name=security_settings,json=securitySettings" json:"security_settings,omitempty"`
  45. }
  46. func (m *StreamConfig) Reset() { *m = StreamConfig{} }
  47. func (m *StreamConfig) String() string { return proto.CompactTextString(m) }
  48. func (*StreamConfig) ProtoMessage() {}
  49. func (*StreamConfig) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{1} }
  50. func (m *StreamConfig) GetNetwork() v2ray_core_common_net.Network {
  51. if m != nil {
  52. return m.Network
  53. }
  54. return v2ray_core_common_net.Network_Unknown
  55. }
  56. func (m *StreamConfig) GetNetworkSettings() []*NetworkSettings {
  57. if m != nil {
  58. return m.NetworkSettings
  59. }
  60. return nil
  61. }
  62. func (m *StreamConfig) GetSecurityType() string {
  63. if m != nil {
  64. return m.SecurityType
  65. }
  66. return ""
  67. }
  68. func (m *StreamConfig) GetSecuritySettings() []*v2ray_core_common_serial.TypedMessage {
  69. if m != nil {
  70. return m.SecuritySettings
  71. }
  72. return nil
  73. }
  74. type ProxyConfig struct {
  75. Tag string `protobuf:"bytes,1,opt,name=tag" json:"tag,omitempty"`
  76. }
  77. func (m *ProxyConfig) Reset() { *m = ProxyConfig{} }
  78. func (m *ProxyConfig) String() string { return proto.CompactTextString(m) }
  79. func (*ProxyConfig) ProtoMessage() {}
  80. func (*ProxyConfig) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{2} }
  81. func (m *ProxyConfig) GetTag() string {
  82. if m != nil {
  83. return m.Tag
  84. }
  85. return ""
  86. }
  87. func init() {
  88. proto.RegisterType((*NetworkSettings)(nil), "v2ray.core.transport.internet.NetworkSettings")
  89. proto.RegisterType((*StreamConfig)(nil), "v2ray.core.transport.internet.StreamConfig")
  90. proto.RegisterType((*ProxyConfig)(nil), "v2ray.core.transport.internet.ProxyConfig")
  91. }
  92. func init() { proto.RegisterFile("v2ray.com/core/transport/internet/config.proto", fileDescriptor0) }
  93. var fileDescriptor0 = []byte{
  94. // 344 bytes of a gzipped FileDescriptorProto
  95. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0xa4, 0x92, 0xcf, 0x4a, 0xc3, 0x40,
  96. 0x10, 0xc6, 0x49, 0x2b, 0xda, 0x6e, 0xab, 0xad, 0x39, 0x95, 0x42, 0xb5, 0x56, 0xd0, 0x9c, 0x26,
  97. 0x12, 0x2f, 0x9e, 0xdb, 0x93, 0x87, 0x8a, 0xa4, 0x45, 0xd0, 0x4b, 0x59, 0xe3, 0x18, 0x82, 0x66,
  98. 0xb7, 0xec, 0x8e, 0x7f, 0xf2, 0x14, 0x3e, 0x81, 0x2f, 0xe0, 0x53, 0x4a, 0x92, 0xdd, 0x50, 0x4a,
  99. 0x29, 0x82, 0xb7, 0x21, 0xf9, 0xe6, 0xcb, 0x6f, 0x7e, 0x84, 0xc1, 0x7b, 0xa0, 0x78, 0x06, 0x91,
  100. 0x4c, 0xfd, 0x48, 0x2a, 0xf4, 0x49, 0x71, 0xa1, 0x97, 0x52, 0x91, 0x9f, 0x08, 0x42, 0x25, 0x90,
  101. 0xfc, 0x48, 0x8a, 0xe7, 0x24, 0x86, 0xa5, 0x92, 0x24, 0xdd, 0x81, 0xcd, 0x2b, 0x84, 0x2a, 0x0b,
  102. 0x36, 0xdb, 0x3f, 0x5f, 0xab, 0x8b, 0x64, 0x9a, 0x4a, 0xe1, 0xe7, 0x35, 0x02, 0xe9, 0x43, 0xaa,
  103. 0x97, 0xb2, 0xa7, 0x7f, 0xb1, 0x39, 0xa8, 0x51, 0x25, 0xfc, 0xd5, 0xa7, 0x6c, 0x89, 0x4f, 0x8b,
  104. 0x14, 0xb5, 0xe6, 0x31, 0x96, 0x1b, 0xa3, 0x2f, 0x87, 0x75, 0x6e, 0xca, 0x8e, 0x19, 0x12, 0x25,
  105. 0x22, 0xd6, 0xee, 0x15, 0xdb, 0x33, 0xb5, 0x3d, 0x67, 0xe8, 0x78, 0x07, 0xc1, 0x11, 0xac, 0xf0,
  106. 0x95, 0x9d, 0x20, 0x90, 0xc0, 0x2c, 0x86, 0x36, 0xee, 0x8e, 0x59, 0x43, 0x9b, 0x96, 0x5e, 0x6d,
  107. 0xe8, 0x78, 0xad, 0xe0, 0x6c, 0xc3, 0x6a, 0x89, 0x03, 0xf3, 0x1c, 0x67, 0x5a, 0xd2, 0x84, 0xd5,
  108. 0xde, 0xe8, 0xbb, 0xc6, 0xda, 0x33, 0x52, 0xc8, 0xd3, 0x49, 0xa1, 0xe8, 0x1f, 0x38, 0xf7, 0xac,
  109. 0x6b, 0xc6, 0xc5, 0x0a, 0x56, 0xdd, 0x6b, 0x05, 0x00, 0x5b, 0x8d, 0xc3, 0x9a, 0x92, 0xb0, 0x23,
  110. 0xd6, 0x1c, 0x9d, 0xb2, 0x7d, 0x8d, 0xd1, 0x9b, 0x4a, 0x28, 0x5b, 0xe4, 0x5e, 0x7b, 0xf5, 0xa1,
  111. 0xe3, 0x35, 0xc3, 0xb6, 0x7d, 0x98, 0x1f, 0xe7, 0xce, 0xd8, 0x61, 0x15, 0xaa, 0x00, 0x76, 0x0a,
  112. 0x80, 0xbf, 0x7a, 0xe9, 0xda, 0x02, 0xfb, 0xe5, 0xd1, 0x31, 0x6b, 0xdd, 0x2a, 0xf9, 0x99, 0x19,
  113. 0x3b, 0x5d, 0x56, 0x27, 0x1e, 0x17, 0x66, 0x9a, 0x61, 0x3e, 0x8e, 0xa7, 0xec, 0x24, 0x92, 0xe9,
  114. 0xf6, 0x03, 0x1f, 0x1a, 0x76, 0xfa, 0xa9, 0x0d, 0xee, 0x82, 0x90, 0x67, 0x30, 0xc9, 0x93, 0xf3,
  115. 0x2a, 0x79, 0x6d, 0xde, 0x3f, 0xee, 0x16, 0x3f, 0xca, 0xe5, 0x6f, 0x00, 0x00, 0x00, 0xff, 0xff,
  116. 0x5e, 0x2e, 0x73, 0x09, 0xd4, 0x02, 0x00, 0x00,
  117. }