config.pb.go 6.4 KB

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