github.com/v2fly/v2ray-core/v5@v5.16.2-0.20240507031116-8191faa6e095/app/log/config.pb.go (about)

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