log.pb.go 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138
  1. package log
  2. import (
  3. protoreflect "google.golang.org/protobuf/reflect/protoreflect"
  4. protoimpl "google.golang.org/protobuf/runtime/protoimpl"
  5. reflect "reflect"
  6. sync "sync"
  7. unsafe "unsafe"
  8. )
  9. const (
  10. // Verify that this generated code is sufficiently up-to-date.
  11. _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
  12. // Verify that runtime/protoimpl is sufficiently up-to-date.
  13. _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
  14. )
  15. type Severity int32
  16. const (
  17. Severity_Unknown Severity = 0
  18. Severity_Error Severity = 1
  19. Severity_Warning Severity = 2
  20. Severity_Info Severity = 3
  21. Severity_Debug Severity = 4
  22. )
  23. // Enum value maps for Severity.
  24. var (
  25. Severity_name = map[int32]string{
  26. 0: "Unknown",
  27. 1: "Error",
  28. 2: "Warning",
  29. 3: "Info",
  30. 4: "Debug",
  31. }
  32. Severity_value = map[string]int32{
  33. "Unknown": 0,
  34. "Error": 1,
  35. "Warning": 2,
  36. "Info": 3,
  37. "Debug": 4,
  38. }
  39. )
  40. func (x Severity) Enum() *Severity {
  41. p := new(Severity)
  42. *p = x
  43. return p
  44. }
  45. func (x Severity) String() string {
  46. return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
  47. }
  48. func (Severity) Descriptor() protoreflect.EnumDescriptor {
  49. return file_common_log_log_proto_enumTypes[0].Descriptor()
  50. }
  51. func (Severity) Type() protoreflect.EnumType {
  52. return &file_common_log_log_proto_enumTypes[0]
  53. }
  54. func (x Severity) Number() protoreflect.EnumNumber {
  55. return protoreflect.EnumNumber(x)
  56. }
  57. // Deprecated: Use Severity.Descriptor instead.
  58. func (Severity) EnumDescriptor() ([]byte, []int) {
  59. return file_common_log_log_proto_rawDescGZIP(), []int{0}
  60. }
  61. var File_common_log_log_proto protoreflect.FileDescriptor
  62. var file_common_log_log_proto_rawDesc = string([]byte{
  63. 0x0a, 0x14, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x6c, 0x6f, 0x67, 0x2f, 0x6c, 0x6f, 0x67,
  64. 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x15, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f,
  65. 0x72, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x6c, 0x6f, 0x67, 0x2a, 0x44, 0x0a,
  66. 0x08, 0x53, 0x65, 0x76, 0x65, 0x72, 0x69, 0x74, 0x79, 0x12, 0x0b, 0x0a, 0x07, 0x55, 0x6e, 0x6b,
  67. 0x6e, 0x6f, 0x77, 0x6e, 0x10, 0x00, 0x12, 0x09, 0x0a, 0x05, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x10,
  68. 0x01, 0x12, 0x0b, 0x0a, 0x07, 0x57, 0x61, 0x72, 0x6e, 0x69, 0x6e, 0x67, 0x10, 0x02, 0x12, 0x08,
  69. 0x0a, 0x04, 0x49, 0x6e, 0x66, 0x6f, 0x10, 0x03, 0x12, 0x09, 0x0a, 0x05, 0x44, 0x65, 0x62, 0x75,
  70. 0x67, 0x10, 0x04, 0x42, 0x60, 0x0a, 0x19, 0x63, 0x6f, 0x6d, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79,
  71. 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x6c, 0x6f, 0x67,
  72. 0x50, 0x01, 0x5a, 0x29, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x76,
  73. 0x32, 0x66, 0x6c, 0x79, 0x2f, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2d, 0x63, 0x6f, 0x72, 0x65, 0x2f,
  74. 0x76, 0x35, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x6c, 0x6f, 0x67, 0xaa, 0x02, 0x15,
  75. 0x56, 0x32, 0x52, 0x61, 0x79, 0x2e, 0x43, 0x6f, 0x72, 0x65, 0x2e, 0x43, 0x6f, 0x6d, 0x6d, 0x6f,
  76. 0x6e, 0x2e, 0x4c, 0x6f, 0x67, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
  77. })
  78. var (
  79. file_common_log_log_proto_rawDescOnce sync.Once
  80. file_common_log_log_proto_rawDescData []byte
  81. )
  82. func file_common_log_log_proto_rawDescGZIP() []byte {
  83. file_common_log_log_proto_rawDescOnce.Do(func() {
  84. 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)))
  85. })
  86. return file_common_log_log_proto_rawDescData
  87. }
  88. var file_common_log_log_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
  89. var file_common_log_log_proto_goTypes = []any{
  90. (Severity)(0), // 0: v2ray.core.common.log.Severity
  91. }
  92. var file_common_log_log_proto_depIdxs = []int32{
  93. 0, // [0:0] is the sub-list for method output_type
  94. 0, // [0:0] is the sub-list for method input_type
  95. 0, // [0:0] is the sub-list for extension type_name
  96. 0, // [0:0] is the sub-list for extension extendee
  97. 0, // [0:0] is the sub-list for field type_name
  98. }
  99. func init() { file_common_log_log_proto_init() }
  100. func file_common_log_log_proto_init() {
  101. if File_common_log_log_proto != nil {
  102. return
  103. }
  104. type x struct{}
  105. out := protoimpl.TypeBuilder{
  106. File: protoimpl.DescBuilder{
  107. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  108. RawDescriptor: unsafe.Slice(unsafe.StringData(file_common_log_log_proto_rawDesc), len(file_common_log_log_proto_rawDesc)),
  109. NumEnums: 1,
  110. NumMessages: 0,
  111. NumExtensions: 0,
  112. NumServices: 0,
  113. },
  114. GoTypes: file_common_log_log_proto_goTypes,
  115. DependencyIndexes: file_common_log_log_proto_depIdxs,
  116. EnumInfos: file_common_log_log_proto_enumTypes,
  117. }.Build()
  118. File_common_log_log_proto = out.File
  119. file_common_log_log_proto_goTypes = nil
  120. file_common_log_log_proto_depIdxs = nil
  121. }