forked from vitessio/vitess
/
logutil.pb.go
164 lines (140 loc) · 4.99 KB
/
logutil.pb.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
// Code generated by protoc-gen-go.
// source: logutil.proto
// DO NOT EDIT!
/*
Package logutil is a generated protocol buffer package.
It is generated from these files:
logutil.proto
It has these top-level messages:
Time
Event
*/
package logutil
import proto "github.com/golang/protobuf/proto"
import fmt "fmt"
import math "math"
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
// Level is the level of the log messages.
type Level int32
const (
// The usual logging levels.
// Should be logged using logging facility.
Level_INFO Level = 0
Level_WARNING Level = 1
Level_ERROR Level = 2
// For messages that may contains non-logging events.
// Should be logged to console directly.
Level_CONSOLE Level = 3
)
var Level_name = map[int32]string{
0: "INFO",
1: "WARNING",
2: "ERROR",
3: "CONSOLE",
}
var Level_value = map[string]int32{
"INFO": 0,
"WARNING": 1,
"ERROR": 2,
"CONSOLE": 3,
}
func (x Level) String() string {
return proto.EnumName(Level_name, int32(x))
}
func (Level) EnumDescriptor() ([]byte, []int) { return fileDescriptor0, []int{0} }
// Time represents a time stamp in nanoseconds. In go, use logutil library
// to convert times.
type Time struct {
Seconds int64 `protobuf:"varint,1,opt,name=seconds" json:"seconds,omitempty"`
Nanoseconds int32 `protobuf:"varint,2,opt,name=nanoseconds" json:"nanoseconds,omitempty"`
}
func (m *Time) Reset() { *m = Time{} }
func (m *Time) String() string { return proto.CompactTextString(m) }
func (*Time) ProtoMessage() {}
func (*Time) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} }
func (m *Time) GetSeconds() int64 {
if m != nil {
return m.Seconds
}
return 0
}
func (m *Time) GetNanoseconds() int32 {
if m != nil {
return m.Nanoseconds
}
return 0
}
// Event is a single logging event
type Event struct {
Time *Time `protobuf:"bytes,1,opt,name=time" json:"time,omitempty"`
Level Level `protobuf:"varint,2,opt,name=level,enum=logutil.Level" json:"level,omitempty"`
File string `protobuf:"bytes,3,opt,name=file" json:"file,omitempty"`
Line int64 `protobuf:"varint,4,opt,name=line" json:"line,omitempty"`
Value string `protobuf:"bytes,5,opt,name=value" json:"value,omitempty"`
}
func (m *Event) Reset() { *m = Event{} }
func (m *Event) String() string { return proto.CompactTextString(m) }
func (*Event) ProtoMessage() {}
func (*Event) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{1} }
func (m *Event) GetTime() *Time {
if m != nil {
return m.Time
}
return nil
}
func (m *Event) GetLevel() Level {
if m != nil {
return m.Level
}
return Level_INFO
}
func (m *Event) GetFile() string {
if m != nil {
return m.File
}
return ""
}
func (m *Event) GetLine() int64 {
if m != nil {
return m.Line
}
return 0
}
func (m *Event) GetValue() string {
if m != nil {
return m.Value
}
return ""
}
func init() {
proto.RegisterType((*Time)(nil), "logutil.Time")
proto.RegisterType((*Event)(nil), "logutil.Event")
proto.RegisterEnum("logutil.Level", Level_name, Level_value)
}
func init() { proto.RegisterFile("logutil.proto", fileDescriptor0) }
var fileDescriptor0 = []byte{
// 235 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x4c, 0x90, 0x41, 0x4b, 0x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