github.com/imannamdari/v2ray-core/v5@v5.0.5/app/log/config.pb.go (about)

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