github.com/Asutorufa/yuhaiin@v0.3.6-0.20240502055049-7984da7023a0/pkg/protos/config/log/log.pb.go (about)

     1  // Code generated by protoc-gen-go. DO NOT EDIT.
     2  // versions:
     3  // 	protoc-gen-go v1.34.0
     4  // 	protoc        v4.25.3
     5  // source: config/log/log.proto
     6  
     7  package log
     8  
     9  import (
    10  	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
    11  	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
    12  	reflect "reflect"
    13  	sync "sync"
    14  )
    15  
    16  const (
    17  	// Verify that this generated code is sufficiently up-to-date.
    18  	_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
    19  	// Verify that runtime/protoimpl is sufficiently up-to-date.
    20  	_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
    21  )
    22  
    23  type LogLevel int32
    24  
    25  const (
    26  	LogLevel_verbose LogLevel = 0
    27  	LogLevel_debug   LogLevel = 1
    28  	LogLevel_info    LogLevel = 2
    29  	LogLevel_warning LogLevel = 3
    30  	LogLevel_error   LogLevel = 4
    31  	LogLevel_fatal   LogLevel = 5
    32  )
    33  
    34  // Enum value maps for LogLevel.
    35  var (
    36  	LogLevel_name = map[int32]string{
    37  		0: "verbose",
    38  		1: "debug",
    39  		2: "info",
    40  		3: "warning",
    41  		4: "error",
    42  		5: "fatal",
    43  	}
    44  	LogLevel_value = map[string]int32{
    45  		"verbose": 0,
    46  		"debug":   1,
    47  		"info":    2,
    48  		"warning": 3,
    49  		"error":   4,
    50  		"fatal":   5,
    51  	}
    52  )
    53  
    54  func (x LogLevel) Enum() *LogLevel {
    55  	p := new(LogLevel)
    56  	*p = x
    57  	return p
    58  }
    59  
    60  func (x LogLevel) String() string {
    61  	return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
    62  }
    63  
    64  func (LogLevel) Descriptor() protoreflect.EnumDescriptor {
    65  	return file_config_log_log_proto_enumTypes[0].Descriptor()
    66  }
    67  
    68  func (LogLevel) Type() protoreflect.EnumType {
    69  	return &file_config_log_log_proto_enumTypes[0]
    70  }
    71  
    72  func (x LogLevel) Number() protoreflect.EnumNumber {
    73  	return protoreflect.EnumNumber(x)
    74  }
    75  
    76  // Deprecated: Use LogLevel.Descriptor instead.
    77  func (LogLevel) EnumDescriptor() ([]byte, []int) {
    78  	return file_config_log_log_proto_rawDescGZIP(), []int{0}
    79  }
    80  
    81  type Logcat struct {
    82  	state         protoimpl.MessageState
    83  	sizeCache     protoimpl.SizeCache
    84  	unknownFields protoimpl.UnknownFields
    85  
    86  	Level LogLevel `protobuf:"varint,1,opt,name=level,proto3,enum=yuhaiin.log.LogLevel" json:"level,omitempty"`
    87  	Save  bool     `protobuf:"varint,2,opt,name=save,proto3" json:"save,omitempty"`
    88  }
    89  
    90  func (x *Logcat) Reset() {
    91  	*x = Logcat{}
    92  	if protoimpl.UnsafeEnabled {
    93  		mi := &file_config_log_log_proto_msgTypes[0]
    94  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    95  		ms.StoreMessageInfo(mi)
    96  	}
    97  }
    98  
    99  func (x *Logcat) String() string {
   100  	return protoimpl.X.MessageStringOf(x)
   101  }
   102  
   103  func (*Logcat) ProtoMessage() {}
   104  
   105  func (x *Logcat) ProtoReflect() protoreflect.Message {
   106  	mi := &file_config_log_log_proto_msgTypes[0]
   107  	if protoimpl.UnsafeEnabled && x != nil {
   108  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   109  		if ms.LoadMessageInfo() == nil {
   110  			ms.StoreMessageInfo(mi)
   111  		}
   112  		return ms
   113  	}
   114  	return mi.MessageOf(x)
   115  }
   116  
   117  // Deprecated: Use Logcat.ProtoReflect.Descriptor instead.
   118  func (*Logcat) Descriptor() ([]byte, []int) {
   119  	return file_config_log_log_proto_rawDescGZIP(), []int{0}
   120  }
   121  
   122  func (x *Logcat) GetLevel() LogLevel {
   123  	if x != nil {
   124  		return x.Level
   125  	}
   126  	return LogLevel_verbose
   127  }
   128  
   129  func (x *Logcat) GetSave() bool {
   130  	if x != nil {
   131  		return x.Save
   132  	}
   133  	return false
   134  }
   135  
   136  var File_config_log_log_proto protoreflect.FileDescriptor
   137  
   138  var file_config_log_log_proto_rawDesc = []byte{
   139  	0x0a, 0x14, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2f, 0x6c, 0x6f, 0x67, 0x2f, 0x6c, 0x6f, 0x67,
   140  	0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0b, 0x79, 0x75, 0x68, 0x61, 0x69, 0x69, 0x6e, 0x2e,
   141  	0x6c, 0x6f, 0x67, 0x22, 0x4a, 0x0a, 0x06, 0x6c, 0x6f, 0x67, 0x63, 0x61, 0x74, 0x12, 0x2c, 0x0a,
   142  	0x05, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x16, 0x2e, 0x79,
   143  	0x75, 0x68, 0x61, 0x69, 0x69, 0x6e, 0x2e, 0x6c, 0x6f, 0x67, 0x2e, 0x6c, 0x6f, 0x67, 0x5f, 0x6c,
   144  	0x65, 0x76, 0x65, 0x6c, 0x52, 0x05, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x12, 0x12, 0x0a, 0x04, 0x73,
   145  	0x61, 0x76, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x04, 0x73, 0x61, 0x76, 0x65, 0x2a,
   146  	0x50, 0x0a, 0x09, 0x6c, 0x6f, 0x67, 0x5f, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x12, 0x0b, 0x0a, 0x07,
   147  	0x76, 0x65, 0x72, 0x62, 0x6f, 0x73, 0x65, 0x10, 0x00, 0x12, 0x09, 0x0a, 0x05, 0x64, 0x65, 0x62,
   148  	0x75, 0x67, 0x10, 0x01, 0x12, 0x08, 0x0a, 0x04, 0x69, 0x6e, 0x66, 0x6f, 0x10, 0x02, 0x12, 0x0b,
   149  	0x0a, 0x07, 0x77, 0x61, 0x72, 0x6e, 0x69, 0x6e, 0x67, 0x10, 0x03, 0x12, 0x09, 0x0a, 0x05, 0x65,
   150  	0x72, 0x72, 0x6f, 0x72, 0x10, 0x04, 0x12, 0x09, 0x0a, 0x05, 0x66, 0x61, 0x74, 0x61, 0x6c, 0x10,
   151  	0x05, 0x42, 0x34, 0x5a, 0x32, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f,
   152  	0x41, 0x73, 0x75, 0x74, 0x6f, 0x72, 0x75, 0x66, 0x61, 0x2f, 0x79, 0x75, 0x68, 0x61, 0x69, 0x69,
   153  	0x6e, 0x2f, 0x70, 0x6b, 0x67, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2f, 0x63, 0x6f, 0x6e,
   154  	0x66, 0x69, 0x67, 0x2f, 0x6c, 0x6f, 0x67, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
   155  }
   156  
   157  var (
   158  	file_config_log_log_proto_rawDescOnce sync.Once
   159  	file_config_log_log_proto_rawDescData = file_config_log_log_proto_rawDesc
   160  )
   161  
   162  func file_config_log_log_proto_rawDescGZIP() []byte {
   163  	file_config_log_log_proto_rawDescOnce.Do(func() {
   164  		file_config_log_log_proto_rawDescData = protoimpl.X.CompressGZIP(file_config_log_log_proto_rawDescData)
   165  	})
   166  	return file_config_log_log_proto_rawDescData
   167  }
   168  
   169  var file_config_log_log_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
   170  var file_config_log_log_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
   171  var file_config_log_log_proto_goTypes = []interface{}{
   172  	(LogLevel)(0),  // 0: yuhaiin.log.log_level
   173  	(*Logcat)(nil), // 1: yuhaiin.log.logcat
   174  }
   175  var file_config_log_log_proto_depIdxs = []int32{
   176  	0, // 0: yuhaiin.log.logcat.level:type_name -> yuhaiin.log.log_level
   177  	1, // [1:1] is the sub-list for method output_type
   178  	1, // [1:1] is the sub-list for method input_type
   179  	1, // [1:1] is the sub-list for extension type_name
   180  	1, // [1:1] is the sub-list for extension extendee
   181  	0, // [0:1] is the sub-list for field type_name
   182  }
   183  
   184  func init() { file_config_log_log_proto_init() }
   185  func file_config_log_log_proto_init() {
   186  	if File_config_log_log_proto != nil {
   187  		return
   188  	}
   189  	if !protoimpl.UnsafeEnabled {
   190  		file_config_log_log_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
   191  			switch v := v.(*Logcat); i {
   192  			case 0:
   193  				return &v.state
   194  			case 1:
   195  				return &v.sizeCache
   196  			case 2:
   197  				return &v.unknownFields
   198  			default:
   199  				return nil
   200  			}
   201  		}
   202  	}
   203  	type x struct{}
   204  	out := protoimpl.TypeBuilder{
   205  		File: protoimpl.DescBuilder{
   206  			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
   207  			RawDescriptor: file_config_log_log_proto_rawDesc,
   208  			NumEnums:      1,
   209  			NumMessages:   1,
   210  			NumExtensions: 0,
   211  			NumServices:   0,
   212  		},
   213  		GoTypes:           file_config_log_log_proto_goTypes,
   214  		DependencyIndexes: file_config_log_log_proto_depIdxs,
   215  		EnumInfos:         file_config_log_log_proto_enumTypes,
   216  		MessageInfos:      file_config_log_log_proto_msgTypes,
   217  	}.Build()
   218  	File_config_log_log_proto = out.File
   219  	file_config_log_log_proto_rawDesc = nil
   220  	file_config_log_log_proto_goTypes = nil
   221  	file_config_log_log_proto_depIdxs = nil
   222  }