headers.pb.go 8.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230
  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // versions:
  3. // protoc-gen-go v1.25.0
  4. // protoc v3.15.5
  5. // source: common/protocol/headers.proto
  6. package protocol
  7. import (
  8. proto "github.com/golang/protobuf/proto"
  9. protoreflect "google.golang.org/protobuf/reflect/protoreflect"
  10. protoimpl "google.golang.org/protobuf/runtime/protoimpl"
  11. reflect "reflect"
  12. sync "sync"
  13. )
  14. const (
  15. // Verify that this generated code is sufficiently up-to-date.
  16. _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
  17. // Verify that runtime/protoimpl is sufficiently up-to-date.
  18. _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
  19. )
  20. // This is a compile-time assertion that a sufficiently up-to-date version
  21. // of the legacy proto package is being used.
  22. const _ = proto.ProtoPackageIsVersion4
  23. type SecurityType int32
  24. const (
  25. SecurityType_UNKNOWN SecurityType = 0
  26. SecurityType_LEGACY SecurityType = 1
  27. SecurityType_AUTO SecurityType = 2
  28. SecurityType_AES128_GCM SecurityType = 3
  29. SecurityType_CHACHA20_POLY1305 SecurityType = 4
  30. SecurityType_NONE SecurityType = 5
  31. SecurityType_ZERO SecurityType = 6
  32. )
  33. // Enum value maps for SecurityType.
  34. var (
  35. SecurityType_name = map[int32]string{
  36. 0: "UNKNOWN",
  37. 1: "LEGACY",
  38. 2: "AUTO",
  39. 3: "AES128_GCM",
  40. 4: "CHACHA20_POLY1305",
  41. 5: "NONE",
  42. 6: "ZERO",
  43. }
  44. SecurityType_value = map[string]int32{
  45. "UNKNOWN": 0,
  46. "LEGACY": 1,
  47. "AUTO": 2,
  48. "AES128_GCM": 3,
  49. "CHACHA20_POLY1305": 4,
  50. "NONE": 5,
  51. "ZERO": 6,
  52. }
  53. )
  54. func (x SecurityType) Enum() *SecurityType {
  55. p := new(SecurityType)
  56. *p = x
  57. return p
  58. }
  59. func (x SecurityType) String() string {
  60. return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
  61. }
  62. func (SecurityType) Descriptor() protoreflect.EnumDescriptor {
  63. return file_common_protocol_headers_proto_enumTypes[0].Descriptor()
  64. }
  65. func (SecurityType) Type() protoreflect.EnumType {
  66. return &file_common_protocol_headers_proto_enumTypes[0]
  67. }
  68. func (x SecurityType) Number() protoreflect.EnumNumber {
  69. return protoreflect.EnumNumber(x)
  70. }
  71. // Deprecated: Use SecurityType.Descriptor instead.
  72. func (SecurityType) EnumDescriptor() ([]byte, []int) {
  73. return file_common_protocol_headers_proto_rawDescGZIP(), []int{0}
  74. }
  75. type SecurityConfig struct {
  76. state protoimpl.MessageState
  77. sizeCache protoimpl.SizeCache
  78. unknownFields protoimpl.UnknownFields
  79. Type SecurityType `protobuf:"varint,1,opt,name=type,proto3,enum=v2ray.core.common.protocol.SecurityType" json:"type,omitempty"`
  80. }
  81. func (x *SecurityConfig) Reset() {
  82. *x = SecurityConfig{}
  83. if protoimpl.UnsafeEnabled {
  84. mi := &file_common_protocol_headers_proto_msgTypes[0]
  85. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  86. ms.StoreMessageInfo(mi)
  87. }
  88. }
  89. func (x *SecurityConfig) String() string {
  90. return protoimpl.X.MessageStringOf(x)
  91. }
  92. func (*SecurityConfig) ProtoMessage() {}
  93. func (x *SecurityConfig) ProtoReflect() protoreflect.Message {
  94. mi := &file_common_protocol_headers_proto_msgTypes[0]
  95. if protoimpl.UnsafeEnabled && x != nil {
  96. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  97. if ms.LoadMessageInfo() == nil {
  98. ms.StoreMessageInfo(mi)
  99. }
  100. return ms
  101. }
  102. return mi.MessageOf(x)
  103. }
  104. // Deprecated: Use SecurityConfig.ProtoReflect.Descriptor instead.
  105. func (*SecurityConfig) Descriptor() ([]byte, []int) {
  106. return file_common_protocol_headers_proto_rawDescGZIP(), []int{0}
  107. }
  108. func (x *SecurityConfig) GetType() SecurityType {
  109. if x != nil {
  110. return x.Type
  111. }
  112. return SecurityType_UNKNOWN
  113. }
  114. var File_common_protocol_headers_proto protoreflect.FileDescriptor
  115. var file_common_protocol_headers_proto_rawDesc = []byte{
  116. 0x0a, 0x1d, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f,
  117. 0x6c, 0x2f, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12,
  118. 0x1a, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x6d,
  119. 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x22, 0x4e, 0x0a, 0x0e, 0x53,
  120. 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x3c, 0x0a,
  121. 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x28, 0x2e, 0x76, 0x32,
  122. 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e,
  123. 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x2e, 0x53, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74,
  124. 0x79, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x2a, 0x6c, 0x0a, 0x0c, 0x53,
  125. 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x54, 0x79, 0x70, 0x65, 0x12, 0x0b, 0x0a, 0x07, 0x55,
  126. 0x4e, 0x4b, 0x4e, 0x4f, 0x57, 0x4e, 0x10, 0x00, 0x12, 0x0a, 0x0a, 0x06, 0x4c, 0x45, 0x47, 0x41,
  127. 0x43, 0x59, 0x10, 0x01, 0x12, 0x08, 0x0a, 0x04, 0x41, 0x55, 0x54, 0x4f, 0x10, 0x02, 0x12, 0x0e,
  128. 0x0a, 0x0a, 0x41, 0x45, 0x53, 0x31, 0x32, 0x38, 0x5f, 0x47, 0x43, 0x4d, 0x10, 0x03, 0x12, 0x15,
  129. 0x0a, 0x11, 0x43, 0x48, 0x41, 0x43, 0x48, 0x41, 0x32, 0x30, 0x5f, 0x50, 0x4f, 0x4c, 0x59, 0x31,
  130. 0x33, 0x30, 0x35, 0x10, 0x04, 0x12, 0x08, 0x0a, 0x04, 0x4e, 0x4f, 0x4e, 0x45, 0x10, 0x05, 0x12,
  131. 0x08, 0x0a, 0x04, 0x5a, 0x45, 0x52, 0x4f, 0x10, 0x06, 0x42, 0x6f, 0x0a, 0x1e, 0x63, 0x6f, 0x6d,
  132. 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x6d,
  133. 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x50, 0x01, 0x5a, 0x2e, 0x67,
  134. 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x76, 0x32, 0x66, 0x6c, 0x79, 0x2f,
  135. 0x76, 0x32, 0x72, 0x61, 0x79, 0x2d, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x76, 0x34, 0x2f, 0x63, 0x6f,
  136. 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0xaa, 0x02, 0x1a,
  137. 0x56, 0x32, 0x52, 0x61, 0x79, 0x2e, 0x43, 0x6f, 0x72, 0x65, 0x2e, 0x43, 0x6f, 0x6d, 0x6d, 0x6f,
  138. 0x6e, 0x2e, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74,
  139. 0x6f, 0x33,
  140. }
  141. var (
  142. file_common_protocol_headers_proto_rawDescOnce sync.Once
  143. file_common_protocol_headers_proto_rawDescData = file_common_protocol_headers_proto_rawDesc
  144. )
  145. func file_common_protocol_headers_proto_rawDescGZIP() []byte {
  146. file_common_protocol_headers_proto_rawDescOnce.Do(func() {
  147. file_common_protocol_headers_proto_rawDescData = protoimpl.X.CompressGZIP(file_common_protocol_headers_proto_rawDescData)
  148. })
  149. return file_common_protocol_headers_proto_rawDescData
  150. }
  151. var file_common_protocol_headers_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
  152. var file_common_protocol_headers_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
  153. var file_common_protocol_headers_proto_goTypes = []interface{}{
  154. (SecurityType)(0), // 0: v2ray.core.common.protocol.SecurityType
  155. (*SecurityConfig)(nil), // 1: v2ray.core.common.protocol.SecurityConfig
  156. }
  157. var file_common_protocol_headers_proto_depIdxs = []int32{
  158. 0, // 0: v2ray.core.common.protocol.SecurityConfig.type:type_name -> v2ray.core.common.protocol.SecurityType
  159. 1, // [1:1] is the sub-list for method output_type
  160. 1, // [1:1] is the sub-list for method input_type
  161. 1, // [1:1] is the sub-list for extension type_name
  162. 1, // [1:1] is the sub-list for extension extendee
  163. 0, // [0:1] is the sub-list for field type_name
  164. }
  165. func init() { file_common_protocol_headers_proto_init() }
  166. func file_common_protocol_headers_proto_init() {
  167. if File_common_protocol_headers_proto != nil {
  168. return
  169. }
  170. if !protoimpl.UnsafeEnabled {
  171. file_common_protocol_headers_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
  172. switch v := v.(*SecurityConfig); i {
  173. case 0:
  174. return &v.state
  175. case 1:
  176. return &v.sizeCache
  177. case 2:
  178. return &v.unknownFields
  179. default:
  180. return nil
  181. }
  182. }
  183. }
  184. type x struct{}
  185. out := protoimpl.TypeBuilder{
  186. File: protoimpl.DescBuilder{
  187. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  188. RawDescriptor: file_common_protocol_headers_proto_rawDesc,
  189. NumEnums: 1,
  190. NumMessages: 1,
  191. NumExtensions: 0,
  192. NumServices: 0,
  193. },
  194. GoTypes: file_common_protocol_headers_proto_goTypes,
  195. DependencyIndexes: file_common_protocol_headers_proto_depIdxs,
  196. EnumInfos: file_common_protocol_headers_proto_enumTypes,
  197. MessageInfos: file_common_protocol_headers_proto_msgTypes,
  198. }.Build()
  199. File_common_protocol_headers_proto = out.File
  200. file_common_protocol_headers_proto_rawDesc = nil
  201. file_common_protocol_headers_proto_goTypes = nil
  202. file_common_protocol_headers_proto_depIdxs = nil
  203. }