headers.pb.go 3.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. package protocol
  2. import proto "github.com/golang/protobuf/proto"
  3. import fmt "fmt"
  4. import math "math"
  5. // Reference imports to suppress errors if they are not otherwise used.
  6. var _ = proto.Marshal
  7. var _ = fmt.Errorf
  8. var _ = math.Inf
  9. type SecurityType int32
  10. const (
  11. SecurityType_UNKNOWN SecurityType = 0
  12. SecurityType_LEGACY SecurityType = 1
  13. SecurityType_AUTO SecurityType = 2
  14. SecurityType_AES128_GCM SecurityType = 3
  15. SecurityType_CHACHA20_POLY1305 SecurityType = 4
  16. SecurityType_NONE SecurityType = 5
  17. )
  18. var SecurityType_name = map[int32]string{
  19. 0: "UNKNOWN",
  20. 1: "LEGACY",
  21. 2: "AUTO",
  22. 3: "AES128_GCM",
  23. 4: "CHACHA20_POLY1305",
  24. 5: "NONE",
  25. }
  26. var SecurityType_value = map[string]int32{
  27. "UNKNOWN": 0,
  28. "LEGACY": 1,
  29. "AUTO": 2,
  30. "AES128_GCM": 3,
  31. "CHACHA20_POLY1305": 4,
  32. "NONE": 5,
  33. }
  34. func (x SecurityType) String() string {
  35. return proto.EnumName(SecurityType_name, int32(x))
  36. }
  37. func (SecurityType) EnumDescriptor() ([]byte, []int) { return fileDescriptor1, []int{0} }
  38. type SecurityConfig struct {
  39. Type SecurityType `protobuf:"varint,1,opt,name=type,enum=v2ray.core.common.protocol.SecurityType" json:"type,omitempty"`
  40. }
  41. func (m *SecurityConfig) Reset() { *m = SecurityConfig{} }
  42. func (m *SecurityConfig) String() string { return proto.CompactTextString(m) }
  43. func (*SecurityConfig) ProtoMessage() {}
  44. func (*SecurityConfig) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{0} }
  45. func (m *SecurityConfig) GetType() SecurityType {
  46. if m != nil {
  47. return m.Type
  48. }
  49. return SecurityType_UNKNOWN
  50. }
  51. func init() {
  52. proto.RegisterType((*SecurityConfig)(nil), "v2ray.core.common.protocol.SecurityConfig")
  53. proto.RegisterEnum("v2ray.core.common.protocol.SecurityType", SecurityType_name, SecurityType_value)
  54. }
  55. func init() { proto.RegisterFile("v2ray.com/core/common/protocol/headers.proto", fileDescriptor1) }
  56. var fileDescriptor1 = []byte{
  57. // 252 bytes of a gzipped FileDescriptorProto
  58. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0xe2, 0xd2, 0x29, 0x33, 0x2a, 0x4a,
  59. 0xac, 0xd4, 0x4b, 0xce, 0xcf, 0xd5, 0x4f, 0xce, 0x2f, 0x4a, 0xd5, 0x4f, 0xce, 0xcf, 0xcd, 0xcd,
  60. 0xcf, 0xd3, 0x2f, 0x28, 0xca, 0x2f, 0xc9, 0x4f, 0xce, 0xcf, 0xd1, 0xcf, 0x48, 0x4d, 0x4c, 0x49,
  61. 0x2d, 0x2a, 0xd6, 0x03, 0x0b, 0x08, 0x49, 0xc1, 0x54, 0x17, 0xa5, 0xea, 0x41, 0x54, 0xea, 0xc1,
  62. 0x54, 0x2a, 0xf9, 0x71, 0xf1, 0x05, 0xa7, 0x26, 0x97, 0x16, 0x65, 0x96, 0x54, 0x3a, 0xe7, 0xe7,
  63. 0xa5, 0x65, 0xa6, 0x0b, 0xd9, 0x70, 0xb1, 0x94, 0x54, 0x16, 0xa4, 0x4a, 0x30, 0x2a, 0x30, 0x6a,
  64. 0xf0, 0x19, 0x69, 0xe8, 0xe1, 0xd6, 0xac, 0x07, 0xd3, 0x19, 0x52, 0x59, 0x90, 0x1a, 0x04, 0xd6,
  65. 0xa5, 0x95, 0xc4, 0xc5, 0x83, 0x2c, 0x2a, 0xc4, 0xcd, 0xc5, 0x1e, 0xea, 0xe7, 0xed, 0xe7, 0x1f,
  66. 0xee, 0x27, 0xc0, 0x20, 0xc4, 0xc5, 0xc5, 0xe6, 0xe3, 0xea, 0xee, 0xe8, 0x1c, 0x29, 0xc0, 0x28,
  67. 0xc4, 0xc1, 0xc5, 0xe2, 0x18, 0x1a, 0xe2, 0x2f, 0xc0, 0x24, 0xc4, 0xc7, 0xc5, 0xe5, 0xe8, 0x1a,
  68. 0x6c, 0x68, 0x64, 0x11, 0xef, 0xee, 0xec, 0x2b, 0xc0, 0x2c, 0x24, 0xca, 0x25, 0xe8, 0xec, 0xe1,
  69. 0xe8, 0xec, 0xe1, 0x68, 0x64, 0x10, 0x1f, 0xe0, 0xef, 0x13, 0x69, 0x68, 0x6c, 0x60, 0x2a, 0xc0,
  70. 0x02, 0xd2, 0xe0, 0xe7, 0xef, 0xe7, 0x2a, 0xc0, 0xea, 0xe4, 0xc9, 0x25, 0x97, 0x9c, 0x9f, 0x8b,
  71. 0xc7, 0x61, 0x01, 0x8c, 0x51, 0x1c, 0x30, 0xf6, 0x2a, 0x26, 0xa9, 0x30, 0xa3, 0xa0, 0xc4, 0x4a,
  72. 0x3d, 0x67, 0x90, 0x42, 0x67, 0x88, 0xc2, 0x00, 0xa8, 0x64, 0x12, 0x1b, 0x58, 0x99, 0x31, 0x20,
  73. 0x00, 0x00, 0xff, 0xff, 0x0b, 0xc1, 0xe1, 0x94, 0x51, 0x01, 0x00, 0x00,
  74. }