-
Notifications
You must be signed in to change notification settings - Fork 567
/
task.pb.zap.go
45 lines (39 loc) · 967 Bytes
/
task.pb.zap.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
// Code generated by protoc-gen-zap (etc/proto/protoc-gen-zap). DO NOT EDIT.
//
// source: internal/task/task.proto
package task
import (
protoextensions "github.com/pachyderm/pachyderm/v2/src/protoextensions"
zapcore "go.uber.org/zap/zapcore"
)
func (x *Group) MarshalLogObject(enc zapcore.ObjectEncoder) error {
if x == nil {
return nil
}
return nil
}
func (x *Task) MarshalLogObject(enc zapcore.ObjectEncoder) error {
if x == nil {
return nil
}
enc.AddString("id", x.Id)
enc.AddString("state", x.State.String())
protoextensions.AddAny(enc, "input", x.Input)
protoextensions.AddAny(enc, "output", x.Output)
enc.AddString("reason", x.Reason)
enc.AddInt64("index", x.Index)
return nil
}
func (x *Claim) MarshalLogObject(enc zapcore.ObjectEncoder) error {
if x == nil {
return nil
}
return nil
}
func (x *TestTask) MarshalLogObject(enc zapcore.ObjectEncoder) error {
if x == nil {
return nil
}
enc.AddString("id", x.Id)
return nil
}