log.pb.go 4.5 KB

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