log.pb.go 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148
  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // versions:
  3. // protoc-gen-go v1.25.0
  4. // protoc v3.13.0
  5. // source: common/log/log.proto
  6. package log
  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 Severity int32
  24. const (
  25. Severity_Unknown Severity = 0
  26. Severity_Error Severity = 1
  27. Severity_Warning Severity = 2
  28. Severity_Info Severity = 3
  29. Severity_Debug Severity = 4
  30. )
  31. // Enum value maps for Severity.
  32. var (
  33. Severity_name = map[int32]string{
  34. 0: "Unknown",
  35. 1: "Error",
  36. 2: "Warning",
  37. 3: "Info",
  38. 4: "Debug",
  39. }
  40. Severity_value = map[string]int32{
  41. "Unknown": 0,
  42. "Error": 1,
  43. "Warning": 2,
  44. "Info": 3,
  45. "Debug": 4,
  46. }
  47. )
  48. func (x Severity) Enum() *Severity {
  49. p := new(Severity)
  50. *p = x
  51. return p
  52. }
  53. func (x Severity) String() string {
  54. return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
  55. }
  56. func (Severity) Descriptor() protoreflect.EnumDescriptor {
  57. return file_common_log_log_proto_enumTypes[0].Descriptor()
  58. }
  59. func (Severity) Type() protoreflect.EnumType {
  60. return &file_common_log_log_proto_enumTypes[0]
  61. }
  62. func (x Severity) Number() protoreflect.EnumNumber {
  63. return protoreflect.EnumNumber(x)
  64. }
  65. // Deprecated: Use Severity.Descriptor instead.
  66. func (Severity) EnumDescriptor() ([]byte, []int) {
  67. return file_common_log_log_proto_rawDescGZIP(), []int{0}
  68. }
  69. var File_common_log_log_proto protoreflect.FileDescriptor
  70. var file_common_log_log_proto_rawDesc = []byte{
  71. 0x0a, 0x14, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x6c, 0x6f, 0x67, 0x2f, 0x6c, 0x6f, 0x67,
  72. 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x15, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f,
  73. 0x72, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x6c, 0x6f, 0x67, 0x2a, 0x44, 0x0a,
  74. 0x08, 0x53, 0x65, 0x76, 0x65, 0x72, 0x69, 0x74, 0x79, 0x12, 0x0b, 0x0a, 0x07, 0x55, 0x6e, 0x6b,
  75. 0x6e, 0x6f, 0x77, 0x6e, 0x10, 0x00, 0x12, 0x09, 0x0a, 0x05, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x10,
  76. 0x01, 0x12, 0x0b, 0x0a, 0x07, 0x57, 0x61, 0x72, 0x6e, 0x69, 0x6e, 0x67, 0x10, 0x02, 0x12, 0x08,
  77. 0x0a, 0x04, 0x49, 0x6e, 0x66, 0x6f, 0x10, 0x03, 0x12, 0x09, 0x0a, 0x05, 0x44, 0x65, 0x62, 0x75,
  78. 0x67, 0x10, 0x04, 0x42, 0x50, 0x0a, 0x19, 0x63, 0x6f, 0x6d, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79,
  79. 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x6c, 0x6f, 0x67,
  80. 0x50, 0x01, 0x5a, 0x19, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x63, 0x6f,
  81. 0x72, 0x65, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x6c, 0x6f, 0x67, 0xaa, 0x02, 0x15,
  82. 0x56, 0x32, 0x52, 0x61, 0x79, 0x2e, 0x43, 0x6f, 0x72, 0x65, 0x2e, 0x43, 0x6f, 0x6d, 0x6d, 0x6f,
  83. 0x6e, 0x2e, 0x4c, 0x6f, 0x67, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
  84. }
  85. var (
  86. file_common_log_log_proto_rawDescOnce sync.Once
  87. file_common_log_log_proto_rawDescData = file_common_log_log_proto_rawDesc
  88. )
  89. func file_common_log_log_proto_rawDescGZIP() []byte {
  90. file_common_log_log_proto_rawDescOnce.Do(func() {
  91. file_common_log_log_proto_rawDescData = protoimpl.X.CompressGZIP(file_common_log_log_proto_rawDescData)
  92. })
  93. return file_common_log_log_proto_rawDescData
  94. }
  95. var file_common_log_log_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
  96. var file_common_log_log_proto_goTypes = []interface{}{
  97. (Severity)(0), // 0: v2ray.core.common.log.Severity
  98. }
  99. var file_common_log_log_proto_depIdxs = []int32{
  100. 0, // [0:0] is the sub-list for method output_type
  101. 0, // [0:0] is the sub-list for method input_type
  102. 0, // [0:0] is the sub-list for extension type_name
  103. 0, // [0:0] is the sub-list for extension extendee
  104. 0, // [0:0] is the sub-list for field type_name
  105. }
  106. func init() { file_common_log_log_proto_init() }
  107. func file_common_log_log_proto_init() {
  108. if File_common_log_log_proto != nil {
  109. return
  110. }
  111. type x struct{}
  112. out := protoimpl.TypeBuilder{
  113. File: protoimpl.DescBuilder{
  114. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  115. RawDescriptor: file_common_log_log_proto_rawDesc,
  116. NumEnums: 1,
  117. NumMessages: 0,
  118. NumExtensions: 0,
  119. NumServices: 0,
  120. },
  121. GoTypes: file_common_log_log_proto_goTypes,
  122. DependencyIndexes: file_common_log_log_proto_depIdxs,
  123. EnumInfos: file_common_log_log_proto_enumTypes,
  124. }.Build()
  125. File_common_log_log_proto = out.File
  126. file_common_log_log_proto_rawDesc = nil
  127. file_common_log_log_proto_goTypes = nil
  128. file_common_log_log_proto_depIdxs = nil
  129. }