log.pb.go 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138
  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // versions:
  3. // protoc-gen-go v1.36.11
  4. // protoc v6.33.5
  5. // source: common/log/log.proto
  6. package log
  7. import (
  8. protoreflect "google.golang.org/protobuf/reflect/protoreflect"
  9. protoimpl "google.golang.org/protobuf/runtime/protoimpl"
  10. reflect "reflect"
  11. sync "sync"
  12. unsafe "unsafe"
  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. type Severity int32
  21. const (
  22. Severity_Unknown Severity = 0
  23. Severity_Error Severity = 1
  24. Severity_Warning Severity = 2
  25. Severity_Info Severity = 3
  26. Severity_Debug Severity = 4
  27. )
  28. // Enum value maps for Severity.
  29. var (
  30. Severity_name = map[int32]string{
  31. 0: "Unknown",
  32. 1: "Error",
  33. 2: "Warning",
  34. 3: "Info",
  35. 4: "Debug",
  36. }
  37. Severity_value = map[string]int32{
  38. "Unknown": 0,
  39. "Error": 1,
  40. "Warning": 2,
  41. "Info": 3,
  42. "Debug": 4,
  43. }
  44. )
  45. func (x Severity) Enum() *Severity {
  46. p := new(Severity)
  47. *p = x
  48. return p
  49. }
  50. func (x Severity) String() string {
  51. return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
  52. }
  53. func (Severity) Descriptor() protoreflect.EnumDescriptor {
  54. return file_common_log_log_proto_enumTypes[0].Descriptor()
  55. }
  56. func (Severity) Type() protoreflect.EnumType {
  57. return &file_common_log_log_proto_enumTypes[0]
  58. }
  59. func (x Severity) Number() protoreflect.EnumNumber {
  60. return protoreflect.EnumNumber(x)
  61. }
  62. // Deprecated: Use Severity.Descriptor instead.
  63. func (Severity) EnumDescriptor() ([]byte, []int) {
  64. return file_common_log_log_proto_rawDescGZIP(), []int{0}
  65. }
  66. var File_common_log_log_proto protoreflect.FileDescriptor
  67. const file_common_log_log_proto_rawDesc = "" +
  68. "\n" +
  69. "\x14common/log/log.proto\x12\x0fxray.common.log*D\n" +
  70. "\bSeverity\x12\v\n" +
  71. "\aUnknown\x10\x00\x12\t\n" +
  72. "\x05Error\x10\x01\x12\v\n" +
  73. "\aWarning\x10\x02\x12\b\n" +
  74. "\x04Info\x10\x03\x12\t\n" +
  75. "\x05Debug\x10\x04BO\n" +
  76. "\x13com.xray.common.logP\x01Z$github.com/xtls/xray-core/common/log\xaa\x02\x0fXray.Common.Logb\x06proto3"
  77. var (
  78. file_common_log_log_proto_rawDescOnce sync.Once
  79. file_common_log_log_proto_rawDescData []byte
  80. )
  81. func file_common_log_log_proto_rawDescGZIP() []byte {
  82. file_common_log_log_proto_rawDescOnce.Do(func() {
  83. file_common_log_log_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_common_log_log_proto_rawDesc), len(file_common_log_log_proto_rawDesc)))
  84. })
  85. return file_common_log_log_proto_rawDescData
  86. }
  87. var file_common_log_log_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
  88. var file_common_log_log_proto_goTypes = []any{
  89. (Severity)(0), // 0: xray.common.log.Severity
  90. }
  91. var file_common_log_log_proto_depIdxs = []int32{
  92. 0, // [0:0] is the sub-list for method output_type
  93. 0, // [0:0] is the sub-list for method input_type
  94. 0, // [0:0] is the sub-list for extension type_name
  95. 0, // [0:0] is the sub-list for extension extendee
  96. 0, // [0:0] is the sub-list for field type_name
  97. }
  98. func init() { file_common_log_log_proto_init() }
  99. func file_common_log_log_proto_init() {
  100. if File_common_log_log_proto != nil {
  101. return
  102. }
  103. type x struct{}
  104. out := protoimpl.TypeBuilder{
  105. File: protoimpl.DescBuilder{
  106. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  107. RawDescriptor: unsafe.Slice(unsafe.StringData(file_common_log_log_proto_rawDesc), len(file_common_log_log_proto_rawDesc)),
  108. NumEnums: 1,
  109. NumMessages: 0,
  110. NumExtensions: 0,
  111. NumServices: 0,
  112. },
  113. GoTypes: file_common_log_log_proto_goTypes,
  114. DependencyIndexes: file_common_log_log_proto_depIdxs,
  115. EnumInfos: file_common_log_log_proto_enumTypes,
  116. }.Build()
  117. File_common_log_log_proto = out.File
  118. file_common_log_log_proto_goTypes = nil
  119. file_common_log_log_proto_depIdxs = nil
  120. }