vitess.io/vitess@v0.16.2/go/vt/proto/logutil/logutil.pb.go (about)

     1  //
     2  //Copyright 2019 The Vitess Authors.
     3  //
     4  //Licensed under the Apache License, Version 2.0 (the "License");
     5  //you may not use this file except in compliance with the License.
     6  //You may obtain a copy of the License at
     7  //
     8  //http://www.apache.org/licenses/LICENSE-2.0
     9  //
    10  //Unless required by applicable law or agreed to in writing, software
    11  //distributed under the License is distributed on an "AS IS" BASIS,
    12  //WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    13  //See the License for the specific language governing permissions and
    14  //limitations under the License.
    15  
    16  // This package contains the data structures for the logging service.
    17  
    18  // Code generated by protoc-gen-go. DO NOT EDIT.
    19  // versions:
    20  // 	protoc-gen-go v1.28.1
    21  // 	protoc        v3.21.3
    22  // source: logutil.proto
    23  
    24  package logutil
    25  
    26  import (
    27  	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
    28  	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
    29  	reflect "reflect"
    30  	sync "sync"
    31  	vttime "vitess.io/vitess/go/vt/proto/vttime"
    32  )
    33  
    34  const (
    35  	// Verify that this generated code is sufficiently up-to-date.
    36  	_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
    37  	// Verify that runtime/protoimpl is sufficiently up-to-date.
    38  	_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
    39  )
    40  
    41  // Level is the level of the log messages.
    42  type Level int32
    43  
    44  const (
    45  	// The usual logging levels.
    46  	// Should be logged using logging facility.
    47  	Level_INFO    Level = 0
    48  	Level_WARNING Level = 1
    49  	Level_ERROR   Level = 2
    50  	// For messages that may contains non-logging events.
    51  	// Should be logged to console directly.
    52  	Level_CONSOLE Level = 3
    53  )
    54  
    55  // Enum value maps for Level.
    56  var (
    57  	Level_name = map[int32]string{
    58  		0: "INFO",
    59  		1: "WARNING",
    60  		2: "ERROR",
    61  		3: "CONSOLE",
    62  	}
    63  	Level_value = map[string]int32{
    64  		"INFO":    0,
    65  		"WARNING": 1,
    66  		"ERROR":   2,
    67  		"CONSOLE": 3,
    68  	}
    69  )
    70  
    71  func (x Level) Enum() *Level {
    72  	p := new(Level)
    73  	*p = x
    74  	return p
    75  }
    76  
    77  func (x Level) String() string {
    78  	return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
    79  }
    80  
    81  func (Level) Descriptor() protoreflect.EnumDescriptor {
    82  	return file_logutil_proto_enumTypes[0].Descriptor()
    83  }
    84  
    85  func (Level) Type() protoreflect.EnumType {
    86  	return &file_logutil_proto_enumTypes[0]
    87  }
    88  
    89  func (x Level) Number() protoreflect.EnumNumber {
    90  	return protoreflect.EnumNumber(x)
    91  }
    92  
    93  // Deprecated: Use Level.Descriptor instead.
    94  func (Level) EnumDescriptor() ([]byte, []int) {
    95  	return file_logutil_proto_rawDescGZIP(), []int{0}
    96  }
    97  
    98  // Event is a single logging event
    99  type Event struct {
   100  	state         protoimpl.MessageState
   101  	sizeCache     protoimpl.SizeCache
   102  	unknownFields protoimpl.UnknownFields
   103  
   104  	Time  *vttime.Time `protobuf:"bytes,1,opt,name=time,proto3" json:"time,omitempty"`
   105  	Level Level        `protobuf:"varint,2,opt,name=level,proto3,enum=logutil.Level" json:"level,omitempty"`
   106  	File  string       `protobuf:"bytes,3,opt,name=file,proto3" json:"file,omitempty"`
   107  	Line  int64        `protobuf:"varint,4,opt,name=line,proto3" json:"line,omitempty"`
   108  	Value string       `protobuf:"bytes,5,opt,name=value,proto3" json:"value,omitempty"`
   109  }
   110  
   111  func (x *Event) Reset() {
   112  	*x = Event{}
   113  	if protoimpl.UnsafeEnabled {
   114  		mi := &file_logutil_proto_msgTypes[0]
   115  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   116  		ms.StoreMessageInfo(mi)
   117  	}
   118  }
   119  
   120  func (x *Event) String() string {
   121  	return protoimpl.X.MessageStringOf(x)
   122  }
   123  
   124  func (*Event) ProtoMessage() {}
   125  
   126  func (x *Event) ProtoReflect() protoreflect.Message {
   127  	mi := &file_logutil_proto_msgTypes[0]
   128  	if protoimpl.UnsafeEnabled && x != nil {
   129  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   130  		if ms.LoadMessageInfo() == nil {
   131  			ms.StoreMessageInfo(mi)
   132  		}
   133  		return ms
   134  	}
   135  	return mi.MessageOf(x)
   136  }
   137  
   138  // Deprecated: Use Event.ProtoReflect.Descriptor instead.
   139  func (*Event) Descriptor() ([]byte, []int) {
   140  	return file_logutil_proto_rawDescGZIP(), []int{0}
   141  }
   142  
   143  func (x *Event) GetTime() *vttime.Time {
   144  	if x != nil {
   145  		return x.Time
   146  	}
   147  	return nil
   148  }
   149  
   150  func (x *Event) GetLevel() Level {
   151  	if x != nil {
   152  		return x.Level
   153  	}
   154  	return Level_INFO
   155  }
   156  
   157  func (x *Event) GetFile() string {
   158  	if x != nil {
   159  		return x.File
   160  	}
   161  	return ""
   162  }
   163  
   164  func (x *Event) GetLine() int64 {
   165  	if x != nil {
   166  		return x.Line
   167  	}
   168  	return 0
   169  }
   170  
   171  func (x *Event) GetValue() string {
   172  	if x != nil {
   173  		return x.Value
   174  	}
   175  	return ""
   176  }
   177  
   178  var File_logutil_proto protoreflect.FileDescriptor
   179  
   180  var file_logutil_proto_rawDesc = []byte{
   181  	0x0a, 0x0d, 0x6c, 0x6f, 0x67, 0x75, 0x74, 0x69, 0x6c, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12,
   182  	0x07, 0x6c, 0x6f, 0x67, 0x75, 0x74, 0x69, 0x6c, 0x1a, 0x0c, 0x76, 0x74, 0x74, 0x69, 0x6d, 0x65,
   183  	0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x8d, 0x01, 0x0a, 0x05, 0x45, 0x76, 0x65, 0x6e, 0x74,
   184  	0x12, 0x20, 0x0a, 0x04, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0c,
   185  	0x2e, 0x76, 0x74, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x52, 0x04, 0x74, 0x69,
   186  	0x6d, 0x65, 0x12, 0x24, 0x0a, 0x05, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28,
   187  	0x0e, 0x32, 0x0e, 0x2e, 0x6c, 0x6f, 0x67, 0x75, 0x74, 0x69, 0x6c, 0x2e, 0x4c, 0x65, 0x76, 0x65,
   188  	0x6c, 0x52, 0x05, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x12, 0x12, 0x0a, 0x04, 0x66, 0x69, 0x6c, 0x65,
   189  	0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x66, 0x69, 0x6c, 0x65, 0x12, 0x12, 0x0a, 0x04,
   190  	0x6c, 0x69, 0x6e, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, 0x52, 0x04, 0x6c, 0x69, 0x6e, 0x65,
   191  	0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52,
   192  	0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x2a, 0x36, 0x0a, 0x05, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x12,
   193  	0x08, 0x0a, 0x04, 0x49, 0x4e, 0x46, 0x4f, 0x10, 0x00, 0x12, 0x0b, 0x0a, 0x07, 0x57, 0x41, 0x52,
   194  	0x4e, 0x49, 0x4e, 0x47, 0x10, 0x01, 0x12, 0x09, 0x0a, 0x05, 0x45, 0x52, 0x52, 0x4f, 0x52, 0x10,
   195  	0x02, 0x12, 0x0b, 0x0a, 0x07, 0x43, 0x4f, 0x4e, 0x53, 0x4f, 0x4c, 0x45, 0x10, 0x03, 0x42, 0x26,
   196  	0x5a, 0x24, 0x76, 0x69, 0x74, 0x65, 0x73, 0x73, 0x2e, 0x69, 0x6f, 0x2f, 0x76, 0x69, 0x74, 0x65,
   197  	0x73, 0x73, 0x2f, 0x67, 0x6f, 0x2f, 0x76, 0x74, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x6c,
   198  	0x6f, 0x67, 0x75, 0x74, 0x69, 0x6c, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
   199  }
   200  
   201  var (
   202  	file_logutil_proto_rawDescOnce sync.Once
   203  	file_logutil_proto_rawDescData = file_logutil_proto_rawDesc
   204  )
   205  
   206  func file_logutil_proto_rawDescGZIP() []byte {
   207  	file_logutil_proto_rawDescOnce.Do(func() {
   208  		file_logutil_proto_rawDescData = protoimpl.X.CompressGZIP(file_logutil_proto_rawDescData)
   209  	})
   210  	return file_logutil_proto_rawDescData
   211  }
   212  
   213  var file_logutil_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
   214  var file_logutil_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
   215  var file_logutil_proto_goTypes = []interface{}{
   216  	(Level)(0),          // 0: logutil.Level
   217  	(*Event)(nil),       // 1: logutil.Event
   218  	(*vttime.Time)(nil), // 2: vttime.Time
   219  }
   220  var file_logutil_proto_depIdxs = []int32{
   221  	2, // 0: logutil.Event.time:type_name -> vttime.Time
   222  	0, // 1: logutil.Event.level:type_name -> logutil.Level
   223  	2, // [2:2] is the sub-list for method output_type
   224  	2, // [2:2] is the sub-list for method input_type
   225  	2, // [2:2] is the sub-list for extension type_name
   226  	2, // [2:2] is the sub-list for extension extendee
   227  	0, // [0:2] is the sub-list for field type_name
   228  }
   229  
   230  func init() { file_logutil_proto_init() }
   231  func file_logutil_proto_init() {
   232  	if File_logutil_proto != nil {
   233  		return
   234  	}
   235  	if !protoimpl.UnsafeEnabled {
   236  		file_logutil_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
   237  			switch v := v.(*Event); i {
   238  			case 0:
   239  				return &v.state
   240  			case 1:
   241  				return &v.sizeCache
   242  			case 2:
   243  				return &v.unknownFields
   244  			default:
   245  				return nil
   246  			}
   247  		}
   248  	}
   249  	type x struct{}
   250  	out := protoimpl.TypeBuilder{
   251  		File: protoimpl.DescBuilder{
   252  			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
   253  			RawDescriptor: file_logutil_proto_rawDesc,
   254  			NumEnums:      1,
   255  			NumMessages:   1,
   256  			NumExtensions: 0,
   257  			NumServices:   0,
   258  		},
   259  		GoTypes:           file_logutil_proto_goTypes,
   260  		DependencyIndexes: file_logutil_proto_depIdxs,
   261  		EnumInfos:         file_logutil_proto_enumTypes,
   262  		MessageInfos:      file_logutil_proto_msgTypes,
   263  	}.Build()
   264  	File_logutil_proto = out.File
   265  	file_logutil_proto_rawDesc = nil
   266  	file_logutil_proto_goTypes = nil
   267  	file_logutil_proto_depIdxs = nil
   268  }