headers.pb.go 3.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. // Code generated by protoc-gen-go.
  2. // source: v2ray.com/core/common/protocol/headers.proto
  3. // DO NOT EDIT!
  4. /*
  5. Package protocol is a generated protocol buffer package.
  6. It is generated from these files:
  7. v2ray.com/core/common/protocol/headers.proto
  8. v2ray.com/core/common/protocol/server_spec.proto
  9. v2ray.com/core/common/protocol/user.proto
  10. It has these top-level messages:
  11. SecurityConfig
  12. ServerEndpoint
  13. User
  14. */
  15. package protocol
  16. import proto "github.com/golang/protobuf/proto"
  17. import fmt "fmt"
  18. import math "math"
  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 SecurityType int32
  29. const (
  30. SecurityType_NONE SecurityType = 0
  31. SecurityType_LEGACY SecurityType = 1
  32. SecurityType_AUTO SecurityType = 2
  33. SecurityType_AES128_GCM SecurityType = 3
  34. SecurityType_CHACHA20_POLY1305 SecurityType = 4
  35. )
  36. var SecurityType_name = map[int32]string{
  37. 0: "NONE",
  38. 1: "LEGACY",
  39. 2: "AUTO",
  40. 3: "AES128_GCM",
  41. 4: "CHACHA20_POLY1305",
  42. }
  43. var SecurityType_value = map[string]int32{
  44. "NONE": 0,
  45. "LEGACY": 1,
  46. "AUTO": 2,
  47. "AES128_GCM": 3,
  48. "CHACHA20_POLY1305": 4,
  49. }
  50. func (x SecurityType) String() string {
  51. return proto.EnumName(SecurityType_name, int32(x))
  52. }
  53. func (SecurityType) EnumDescriptor() ([]byte, []int) { return fileDescriptor0, []int{0} }
  54. type SecurityConfig struct {
  55. Type SecurityType `protobuf:"varint,1,opt,name=type,enum=v2ray.core.common.protocol.SecurityType" json:"type,omitempty"`
  56. }
  57. func (m *SecurityConfig) Reset() { *m = SecurityConfig{} }
  58. func (m *SecurityConfig) String() string { return proto.CompactTextString(m) }
  59. func (*SecurityConfig) ProtoMessage() {}
  60. func (*SecurityConfig) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} }
  61. func init() {
  62. proto.RegisterType((*SecurityConfig)(nil), "v2ray.core.common.protocol.SecurityConfig")
  63. proto.RegisterEnum("v2ray.core.common.protocol.SecurityType", SecurityType_name, SecurityType_value)
  64. }
  65. func init() { proto.RegisterFile("v2ray.com/core/common/protocol/headers.proto", fileDescriptor0) }
  66. var fileDescriptor0 = []byte{
  67. // 227 bytes of a gzipped FileDescriptorProto
  68. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0xe2, 0xd2, 0x29, 0x33, 0x2a, 0x4a,
  69. 0xac, 0xd4, 0x4b, 0xce, 0xcf, 0xd5, 0x4f, 0xce, 0x2f, 0x4a, 0xd5, 0x4f, 0xce, 0xcf, 0xcd, 0xcd,
  70. 0xcf, 0xd3, 0x2f, 0x28, 0xca, 0x2f, 0xc9, 0x4f, 0xce, 0xcf, 0xd1, 0xcf, 0x48, 0x4d, 0x4c, 0x49,
  71. 0x2d, 0x2a, 0xd6, 0x03, 0x0b, 0x08, 0x49, 0xc1, 0x54, 0x17, 0xa5, 0xea, 0x41, 0x54, 0xea, 0xc1,
  72. 0x54, 0x2a, 0xf9, 0x71, 0xf1, 0x05, 0xa7, 0x26, 0x97, 0x16, 0x65, 0x96, 0x54, 0x3a, 0xe7, 0xe7,
  73. 0xa5, 0x65, 0xa6, 0x0b, 0xd9, 0x70, 0xb1, 0x94, 0x54, 0x16, 0xa4, 0x4a, 0x30, 0x2a, 0x30, 0x6a,
  74. 0xf0, 0x19, 0x69, 0xe8, 0xe1, 0xd6, 0xac, 0x07, 0xd3, 0x19, 0x52, 0x59, 0x90, 0x1a, 0x04, 0xd6,
  75. 0xa5, 0x15, 0xca, 0xc5, 0x83, 0x2c, 0x2a, 0xc4, 0xc1, 0xc5, 0xe2, 0xe7, 0xef, 0xe7, 0x2a, 0xc0,
  76. 0x20, 0xc4, 0xc5, 0xc5, 0xe6, 0xe3, 0xea, 0xee, 0xe8, 0x1c, 0x29, 0xc0, 0x08, 0x12, 0x75, 0x0c,
  77. 0x0d, 0xf1, 0x17, 0x60, 0x12, 0xe2, 0xe3, 0xe2, 0x72, 0x74, 0x0d, 0x36, 0x34, 0xb2, 0x88, 0x77,
  78. 0x77, 0xf6, 0x15, 0x60, 0x16, 0x12, 0xe5, 0x12, 0x74, 0xf6, 0x70, 0x74, 0xf6, 0x70, 0x34, 0x32,
  79. 0x88, 0x0f, 0xf0, 0xf7, 0x89, 0x34, 0x34, 0x36, 0x30, 0x15, 0x60, 0x71, 0xb2, 0xe0, 0x92, 0x4b,
  80. 0xce, 0xcf, 0xc5, 0xe3, 0x16, 0x27, 0x1e, 0x0f, 0x88, 0x9f, 0x03, 0x40, 0x02, 0x51, 0x1c, 0x30,
  81. 0xf1, 0x24, 0x36, 0x30, 0xcb, 0x18, 0x10, 0x00, 0x00, 0xff, 0xff, 0xc4, 0x1e, 0x65, 0x93, 0x33,
  82. 0x01, 0x00, 0x00,
  83. }