/
fileset.pb.zap.go
50 lines (44 loc) · 1.11 KB
/
fileset.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
46
47
48
49
50
// Code generated by protoc-gen-zap (etc/proto/protoc-gen-zap). DO NOT EDIT.
//
// source: internal/storage/fileset/fileset.proto
package fileset
import (
zapcore "go.uber.org/zap/zapcore"
)
func (x *Metadata) MarshalLogObject(enc zapcore.ObjectEncoder) error {
if x == nil {
return nil
}
enc.AddObject("primitive", x.GetPrimitive())
enc.AddObject("composite", x.GetComposite())
return nil
}
func (x *Composite) MarshalLogObject(enc zapcore.ObjectEncoder) error {
if x == nil {
return nil
}
layersArrMarshaller := func(enc zapcore.ArrayEncoder) error {
for _, v := range x.Layers {
enc.AppendString(v)
}
return nil
}
enc.AddArray("layers", zapcore.ArrayMarshalerFunc(layersArrMarshaller))
return nil
}
func (x *Primitive) MarshalLogObject(enc zapcore.ObjectEncoder) error {
if x == nil {
return nil
}
enc.AddObject("deletive", x.Deletive)
enc.AddObject("additive", x.Additive)
enc.AddInt64("size_bytes", x.SizeBytes)
return nil
}
func (x *TestCacheValue) MarshalLogObject(enc zapcore.ObjectEncoder) error {
if x == nil {
return nil
}
enc.AddString("file_set_id", x.FileSetId)
return nil
}