log.pb.go 5.0 KB

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