config.pb.go 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281
  1. package log
  2. import (
  3. log "github.com/v2fly/v2ray-core/v5/common/log"
  4. _ "github.com/v2fly/v2ray-core/v5/common/protoext"
  5. protoreflect "google.golang.org/protobuf/reflect/protoreflect"
  6. protoimpl "google.golang.org/protobuf/runtime/protoimpl"
  7. reflect "reflect"
  8. sync "sync"
  9. unsafe "unsafe"
  10. )
  11. const (
  12. // Verify that this generated code is sufficiently up-to-date.
  13. _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
  14. // Verify that runtime/protoimpl is sufficiently up-to-date.
  15. _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
  16. )
  17. type LogType int32
  18. const (
  19. LogType_None LogType = 0
  20. LogType_Console LogType = 1
  21. LogType_File LogType = 2
  22. LogType_Event LogType = 3
  23. )
  24. // Enum value maps for LogType.
  25. var (
  26. LogType_name = map[int32]string{
  27. 0: "None",
  28. 1: "Console",
  29. 2: "File",
  30. 3: "Event",
  31. }
  32. LogType_value = map[string]int32{
  33. "None": 0,
  34. "Console": 1,
  35. "File": 2,
  36. "Event": 3,
  37. }
  38. )
  39. func (x LogType) Enum() *LogType {
  40. p := new(LogType)
  41. *p = x
  42. return p
  43. }
  44. func (x LogType) String() string {
  45. return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
  46. }
  47. func (LogType) Descriptor() protoreflect.EnumDescriptor {
  48. return file_app_log_config_proto_enumTypes[0].Descriptor()
  49. }
  50. func (LogType) Type() protoreflect.EnumType {
  51. return &file_app_log_config_proto_enumTypes[0]
  52. }
  53. func (x LogType) Number() protoreflect.EnumNumber {
  54. return protoreflect.EnumNumber(x)
  55. }
  56. // Deprecated: Use LogType.Descriptor instead.
  57. func (LogType) EnumDescriptor() ([]byte, []int) {
  58. return file_app_log_config_proto_rawDescGZIP(), []int{0}
  59. }
  60. type LogSpecification struct {
  61. state protoimpl.MessageState `protogen:"open.v1"`
  62. Type LogType `protobuf:"varint,1,opt,name=type,proto3,enum=v2ray.core.app.log.LogType" json:"type,omitempty"`
  63. Level log.Severity `protobuf:"varint,2,opt,name=level,proto3,enum=v2ray.core.common.log.Severity" json:"level,omitempty"`
  64. Path string `protobuf:"bytes,3,opt,name=path,proto3" json:"path,omitempty"`
  65. unknownFields protoimpl.UnknownFields
  66. sizeCache protoimpl.SizeCache
  67. }
  68. func (x *LogSpecification) Reset() {
  69. *x = LogSpecification{}
  70. mi := &file_app_log_config_proto_msgTypes[0]
  71. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  72. ms.StoreMessageInfo(mi)
  73. }
  74. func (x *LogSpecification) String() string {
  75. return protoimpl.X.MessageStringOf(x)
  76. }
  77. func (*LogSpecification) ProtoMessage() {}
  78. func (x *LogSpecification) ProtoReflect() protoreflect.Message {
  79. mi := &file_app_log_config_proto_msgTypes[0]
  80. if x != nil {
  81. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  82. if ms.LoadMessageInfo() == nil {
  83. ms.StoreMessageInfo(mi)
  84. }
  85. return ms
  86. }
  87. return mi.MessageOf(x)
  88. }
  89. // Deprecated: Use LogSpecification.ProtoReflect.Descriptor instead.
  90. func (*LogSpecification) Descriptor() ([]byte, []int) {
  91. return file_app_log_config_proto_rawDescGZIP(), []int{0}
  92. }
  93. func (x *LogSpecification) GetType() LogType {
  94. if x != nil {
  95. return x.Type
  96. }
  97. return LogType_None
  98. }
  99. func (x *LogSpecification) GetLevel() log.Severity {
  100. if x != nil {
  101. return x.Level
  102. }
  103. return log.Severity(0)
  104. }
  105. func (x *LogSpecification) GetPath() string {
  106. if x != nil {
  107. return x.Path
  108. }
  109. return ""
  110. }
  111. type Config struct {
  112. state protoimpl.MessageState `protogen:"open.v1"`
  113. Error *LogSpecification `protobuf:"bytes,6,opt,name=error,proto3" json:"error,omitempty"`
  114. Access *LogSpecification `protobuf:"bytes,7,opt,name=access,proto3" json:"access,omitempty"`
  115. unknownFields protoimpl.UnknownFields
  116. sizeCache protoimpl.SizeCache
  117. }
  118. func (x *Config) Reset() {
  119. *x = Config{}
  120. mi := &file_app_log_config_proto_msgTypes[1]
  121. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  122. ms.StoreMessageInfo(mi)
  123. }
  124. func (x *Config) String() string {
  125. return protoimpl.X.MessageStringOf(x)
  126. }
  127. func (*Config) ProtoMessage() {}
  128. func (x *Config) ProtoReflect() protoreflect.Message {
  129. mi := &file_app_log_config_proto_msgTypes[1]
  130. if x != nil {
  131. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  132. if ms.LoadMessageInfo() == nil {
  133. ms.StoreMessageInfo(mi)
  134. }
  135. return ms
  136. }
  137. return mi.MessageOf(x)
  138. }
  139. // Deprecated: Use Config.ProtoReflect.Descriptor instead.
  140. func (*Config) Descriptor() ([]byte, []int) {
  141. return file_app_log_config_proto_rawDescGZIP(), []int{1}
  142. }
  143. func (x *Config) GetError() *LogSpecification {
  144. if x != nil {
  145. return x.Error
  146. }
  147. return nil
  148. }
  149. func (x *Config) GetAccess() *LogSpecification {
  150. if x != nil {
  151. return x.Access
  152. }
  153. return nil
  154. }
  155. var File_app_log_config_proto protoreflect.FileDescriptor
  156. var file_app_log_config_proto_rawDesc = string([]byte{
  157. 0x0a, 0x14, 0x61, 0x70, 0x70, 0x2f, 0x6c, 0x6f, 0x67, 0x2f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67,
  158. 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x12, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f,
  159. 0x72, 0x65, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x6c, 0x6f, 0x67, 0x1a, 0x14, 0x63, 0x6f, 0x6d, 0x6d,
  160. 0x6f, 0x6e, 0x2f, 0x6c, 0x6f, 0x67, 0x2f, 0x6c, 0x6f, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
  161. 0x1a, 0x20, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x65, 0x78,
  162. 0x74, 0x2f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f,
  163. 0x74, 0x6f, 0x22, 0x8e, 0x01, 0x0a, 0x10, 0x4c, 0x6f, 0x67, 0x53, 0x70, 0x65, 0x63, 0x69, 0x66,
  164. 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x2f, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18,
  165. 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1b, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f,
  166. 0x72, 0x65, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x6c, 0x6f, 0x67, 0x2e, 0x4c, 0x6f, 0x67, 0x54, 0x79,
  167. 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x35, 0x0a, 0x05, 0x6c, 0x65, 0x76, 0x65,
  168. 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1f, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e,
  169. 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x6c, 0x6f, 0x67, 0x2e,
  170. 0x53, 0x65, 0x76, 0x65, 0x72, 0x69, 0x74, 0x79, 0x52, 0x05, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x12,
  171. 0x12, 0x0a, 0x04, 0x70, 0x61, 0x74, 0x68, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x70,
  172. 0x61, 0x74, 0x68, 0x22, 0xb4, 0x01, 0x0a, 0x06, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x3a,
  173. 0x0a, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x24, 0x2e,
  174. 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x6c,
  175. 0x6f, 0x67, 0x2e, 0x4c, 0x6f, 0x67, 0x53, 0x70, 0x65, 0x63, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74,
  176. 0x69, 0x6f, 0x6e, 0x52, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x12, 0x3c, 0x0a, 0x06, 0x61, 0x63,
  177. 0x63, 0x65, 0x73, 0x73, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x76, 0x32, 0x72,
  178. 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x6c, 0x6f, 0x67, 0x2e,
  179. 0x4c, 0x6f, 0x67, 0x53, 0x70, 0x65, 0x63, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e,
  180. 0x52, 0x06, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x3a, 0x12, 0x82, 0xb5, 0x18, 0x0e, 0x0a, 0x07,
  181. 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x03, 0x6c, 0x6f, 0x67, 0x4a, 0x04, 0x08, 0x01,
  182. 0x10, 0x02, 0x4a, 0x04, 0x08, 0x02, 0x10, 0x03, 0x4a, 0x04, 0x08, 0x03, 0x10, 0x04, 0x4a, 0x04,
  183. 0x08, 0x04, 0x10, 0x05, 0x4a, 0x04, 0x08, 0x05, 0x10, 0x06, 0x2a, 0x35, 0x0a, 0x07, 0x4c, 0x6f,
  184. 0x67, 0x54, 0x79, 0x70, 0x65, 0x12, 0x08, 0x0a, 0x04, 0x4e, 0x6f, 0x6e, 0x65, 0x10, 0x00, 0x12,
  185. 0x0b, 0x0a, 0x07, 0x43, 0x6f, 0x6e, 0x73, 0x6f, 0x6c, 0x65, 0x10, 0x01, 0x12, 0x08, 0x0a, 0x04,
  186. 0x46, 0x69, 0x6c, 0x65, 0x10, 0x02, 0x12, 0x09, 0x0a, 0x05, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x10,
  187. 0x03, 0x42, 0x57, 0x0a, 0x16, 0x63, 0x6f, 0x6d, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63,
  188. 0x6f, 0x72, 0x65, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x6c, 0x6f, 0x67, 0x50, 0x01, 0x5a, 0x26, 0x67,
  189. 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x76, 0x32, 0x66, 0x6c, 0x79, 0x2f,
  190. 0x76, 0x32, 0x72, 0x61, 0x79, 0x2d, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x76, 0x35, 0x2f, 0x61, 0x70,
  191. 0x70, 0x2f, 0x6c, 0x6f, 0x67, 0xaa, 0x02, 0x12, 0x56, 0x32, 0x52, 0x61, 0x79, 0x2e, 0x43, 0x6f,
  192. 0x72, 0x65, 0x2e, 0x41, 0x70, 0x70, 0x2e, 0x4c, 0x6f, 0x67, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74,
  193. 0x6f, 0x33,
  194. })
  195. var (
  196. file_app_log_config_proto_rawDescOnce sync.Once
  197. file_app_log_config_proto_rawDescData []byte
  198. )
  199. func file_app_log_config_proto_rawDescGZIP() []byte {
  200. file_app_log_config_proto_rawDescOnce.Do(func() {
  201. file_app_log_config_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_app_log_config_proto_rawDesc), len(file_app_log_config_proto_rawDesc)))
  202. })
  203. return file_app_log_config_proto_rawDescData
  204. }
  205. var file_app_log_config_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
  206. var file_app_log_config_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
  207. var file_app_log_config_proto_goTypes = []any{
  208. (LogType)(0), // 0: v2ray.core.app.log.LogType
  209. (*LogSpecification)(nil), // 1: v2ray.core.app.log.LogSpecification
  210. (*Config)(nil), // 2: v2ray.core.app.log.Config
  211. (log.Severity)(0), // 3: v2ray.core.common.log.Severity
  212. }
  213. var file_app_log_config_proto_depIdxs = []int32{
  214. 0, // 0: v2ray.core.app.log.LogSpecification.type:type_name -> v2ray.core.app.log.LogType
  215. 3, // 1: v2ray.core.app.log.LogSpecification.level:type_name -> v2ray.core.common.log.Severity
  216. 1, // 2: v2ray.core.app.log.Config.error:type_name -> v2ray.core.app.log.LogSpecification
  217. 1, // 3: v2ray.core.app.log.Config.access:type_name -> v2ray.core.app.log.LogSpecification
  218. 4, // [4:4] is the sub-list for method output_type
  219. 4, // [4:4] is the sub-list for method input_type
  220. 4, // [4:4] is the sub-list for extension type_name
  221. 4, // [4:4] is the sub-list for extension extendee
  222. 0, // [0:4] is the sub-list for field type_name
  223. }
  224. func init() { file_app_log_config_proto_init() }
  225. func file_app_log_config_proto_init() {
  226. if File_app_log_config_proto != nil {
  227. return
  228. }
  229. type x struct{}
  230. out := protoimpl.TypeBuilder{
  231. File: protoimpl.DescBuilder{
  232. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  233. RawDescriptor: unsafe.Slice(unsafe.StringData(file_app_log_config_proto_rawDesc), len(file_app_log_config_proto_rawDesc)),
  234. NumEnums: 1,
  235. NumMessages: 2,
  236. NumExtensions: 0,
  237. NumServices: 0,
  238. },
  239. GoTypes: file_app_log_config_proto_goTypes,
  240. DependencyIndexes: file_app_log_config_proto_depIdxs,
  241. EnumInfos: file_app_log_config_proto_enumTypes,
  242. MessageInfos: file_app_log_config_proto_msgTypes,
  243. }.Build()
  244. File_app_log_config_proto = out.File
  245. file_app_log_config_proto_goTypes = nil
  246. file_app_log_config_proto_depIdxs = nil
  247. }