config.pb.go 6.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132
  1. // Code generated by protoc-gen-go.
  2. // source: v2ray.com/core/transport/internet/config.proto
  3. // DO NOT EDIT!
  4. package internet
  5. import proto "github.com/golang/protobuf/proto"
  6. import fmt "fmt"
  7. import math "math"
  8. import v2ray_core_common_net "v2ray.com/core/common/net"
  9. import google_protobuf "github.com/golang/protobuf/ptypes/any"
  10. // Reference imports to suppress errors if they are not otherwise used.
  11. var _ = proto.Marshal
  12. var _ = fmt.Errorf
  13. var _ = math.Inf
  14. type SecurityType int32
  15. const (
  16. SecurityType_None SecurityType = 0
  17. SecurityType_TLS SecurityType = 1
  18. )
  19. var SecurityType_name = map[int32]string{
  20. 0: "None",
  21. 1: "TLS",
  22. }
  23. var SecurityType_value = map[string]int32{
  24. "None": 0,
  25. "TLS": 1,
  26. }
  27. func (x SecurityType) String() string {
  28. return proto.EnumName(SecurityType_name, int32(x))
  29. }
  30. func (SecurityType) EnumDescriptor() ([]byte, []int) { return fileDescriptor1, []int{0} }
  31. type SecuritySettings struct {
  32. Type SecurityType `protobuf:"varint,1,opt,name=type,enum=v2ray.core.transport.internet.SecurityType" json:"type,omitempty"`
  33. Settings *google_protobuf.Any `protobuf:"bytes,2,opt,name=settings" json:"settings,omitempty"`
  34. }
  35. func (m *SecuritySettings) Reset() { *m = SecuritySettings{} }
  36. func (m *SecuritySettings) String() string { return proto.CompactTextString(m) }
  37. func (*SecuritySettings) ProtoMessage() {}
  38. func (*SecuritySettings) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{0} }
  39. func (m *SecuritySettings) GetSettings() *google_protobuf.Any {
  40. if m != nil {
  41. return m.Settings
  42. }
  43. return nil
  44. }
  45. type NetworkSettings struct {
  46. Network v2ray_core_common_net.Network `protobuf:"varint,1,opt,name=network,enum=v2ray.core.common.net.Network" json:"network,omitempty"`
  47. Settings *google_protobuf.Any `protobuf:"bytes,2,opt,name=settings" json:"settings,omitempty"`
  48. }
  49. func (m *NetworkSettings) Reset() { *m = NetworkSettings{} }
  50. func (m *NetworkSettings) String() string { return proto.CompactTextString(m) }
  51. func (*NetworkSettings) ProtoMessage() {}
  52. func (*NetworkSettings) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{1} }
  53. func (m *NetworkSettings) GetSettings() *google_protobuf.Any {
  54. if m != nil {
  55. return m.Settings
  56. }
  57. return nil
  58. }
  59. type StreamConfig struct {
  60. Network v2ray_core_common_net.Network `protobuf:"varint,1,opt,name=network,enum=v2ray.core.common.net.Network" json:"network,omitempty"`
  61. NetworkSettings []*NetworkSettings `protobuf:"bytes,2,rep,name=network_settings,json=networkSettings" json:"network_settings,omitempty"`
  62. SecurityType SecurityType `protobuf:"varint,3,opt,name=security_type,json=securityType,enum=v2ray.core.transport.internet.SecurityType" json:"security_type,omitempty"`
  63. SecuritySettings []*SecuritySettings `protobuf:"bytes,4,rep,name=security_settings,json=securitySettings" json:"security_settings,omitempty"`
  64. }
  65. func (m *StreamConfig) Reset() { *m = StreamConfig{} }
  66. func (m *StreamConfig) String() string { return proto.CompactTextString(m) }
  67. func (*StreamConfig) ProtoMessage() {}
  68. func (*StreamConfig) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{2} }
  69. func (m *StreamConfig) GetNetworkSettings() []*NetworkSettings {
  70. if m != nil {
  71. return m.NetworkSettings
  72. }
  73. return nil
  74. }
  75. func (m *StreamConfig) GetSecuritySettings() []*SecuritySettings {
  76. if m != nil {
  77. return m.SecuritySettings
  78. }
  79. return nil
  80. }
  81. func init() {
  82. proto.RegisterType((*SecuritySettings)(nil), "v2ray.core.transport.internet.SecuritySettings")
  83. proto.RegisterType((*NetworkSettings)(nil), "v2ray.core.transport.internet.NetworkSettings")
  84. proto.RegisterType((*StreamConfig)(nil), "v2ray.core.transport.internet.StreamConfig")
  85. proto.RegisterEnum("v2ray.core.transport.internet.SecurityType", SecurityType_name, SecurityType_value)
  86. }
  87. func init() { proto.RegisterFile("v2ray.com/core/transport/internet/config.proto", fileDescriptor1) }
  88. var fileDescriptor1 = []byte{
  89. // 347 bytes of a gzipped FileDescriptorProto
  90. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0xa4, 0x91, 0x4f, 0x4b, 0xc3, 0x40,
  91. 0x10, 0xc5, 0x4d, 0x5b, 0x6c, 0x99, 0x56, 0x1b, 0x83, 0x87, 0x5a, 0x50, 0xda, 0x5e, 0x0c, 0x8a,
  92. 0xbb, 0x12, 0x2f, 0xde, 0x44, 0xbd, 0x4a, 0x91, 0xa4, 0x17, 0x45, 0x28, 0x69, 0x98, 0x86, 0xa0,
  93. 0xd9, 0x09, 0x9b, 0xad, 0x92, 0x83, 0x47, 0x3f, 0xa1, 0x5f, 0x48, 0x9a, 0x7f, 0x84, 0x1c, 0xea,
  94. 0xbf, 0xdb, 0x6e, 0xf2, 0xe6, 0xcd, 0x6f, 0xdf, 0x03, 0xf6, 0x6a, 0x49, 0x37, 0x61, 0x1e, 0x85,
  95. 0xdc, 0x23, 0x89, 0x5c, 0x49, 0x57, 0xc4, 0x11, 0x49, 0xc5, 0x03, 0xa1, 0x50, 0x0a, 0x54, 0xdc,
  96. 0x23, 0xb1, 0x0c, 0x7c, 0x16, 0x49, 0x52, 0x64, 0x1c, 0x16, 0x7a, 0x89, 0xac, 0xd4, 0xb2, 0x42,
  97. 0x3b, 0x3c, 0xae, 0xd9, 0x79, 0x14, 0x86, 0x24, 0xf8, 0xda, 0x46, 0xa0, 0x7a, 0x23, 0xf9, 0x9c,
  98. 0xf9, 0x0c, 0x0f, 0x7c, 0x22, 0xff, 0x05, 0x79, 0x7a, 0x5b, 0xac, 0x96, 0xdc, 0x15, 0x49, 0xf6,
  99. 0x6b, 0xf2, 0xa1, 0x81, 0xee, 0xa0, 0xb7, 0x92, 0x81, 0x4a, 0x1c, 0x54, 0x2a, 0x10, 0x7e, 0x6c,
  100. 0x5c, 0x41, 0x4b, 0x25, 0x11, 0x0e, 0xb4, 0x91, 0x66, 0xee, 0x5a, 0xa7, 0x6c, 0x23, 0x06, 0x2b,
  101. 0xc6, 0x67, 0x49, 0x84, 0x76, 0x3a, 0x68, 0x9c, 0x43, 0x27, 0xce, 0xcd, 0x06, 0x8d, 0x91, 0x66,
  102. 0x76, 0xad, 0x7d, 0x96, 0x31, 0xb0, 0x82, 0x81, 0x5d, 0x8b, 0xc4, 0x2e, 0x55, 0x93, 0x77, 0xe8,
  103. 0x4f, 0x33, 0xe6, 0x92, 0xe2, 0x12, 0xda, 0xf9, 0x33, 0x72, 0x90, 0xa3, 0x2a, 0x48, 0xf6, 0x58,
  104. 0xb6, 0x06, 0xc8, 0x07, 0xed, 0x42, 0xfe, 0x87, 0xf5, 0x9f, 0x0d, 0xe8, 0x39, 0x4a, 0xa2, 0x1b,
  105. 0xde, 0xa6, 0x05, 0xfc, 0x63, 0xf9, 0x03, 0xe8, 0xf9, 0x71, 0x5e, 0x81, 0x68, 0x9a, 0x5d, 0x8b,
  106. 0x7d, 0x13, 0x64, 0x2d, 0x00, 0xbb, 0x2f, 0x6a, 0x89, 0xdc, 0xc3, 0x4e, 0x9c, 0x87, 0x3d, 0x4f,
  107. 0x0b, 0x6a, 0xfe, 0xbe, 0xa0, 0x5e, 0x5c, 0xb9, 0x19, 0x4f, 0xb0, 0x57, 0x3a, 0x96, 0xb4, 0xad,
  108. 0x94, 0x96, 0xff, 0xd0, 0xb5, 0xc4, 0xd5, 0xe3, 0xda, 0x97, 0x93, 0x31, 0xf4, 0xaa, 0xbb, 0x8d,
  109. 0x0e, 0xb4, 0xa6, 0x24, 0x50, 0xdf, 0x32, 0xda, 0xd0, 0x9c, 0xdd, 0x39, 0xba, 0x76, 0x73, 0x06,
  110. 0x63, 0x8f, 0xc2, 0xcd, 0xab, 0x1e, 0x3b, 0xc5, 0x69, 0xb1, 0x9d, 0xf6, 0x77, 0xf1, 0x15, 0x00,
  111. 0x00, 0xff, 0xff, 0xb2, 0x2e, 0x36, 0x52, 0x4a, 0x03, 0x00, 0x00,
  112. }