diff --git a/cws/dumpsv1/activity_dump_vtproto.pb.go b/cws/dumpsv1/activity_dump_vtproto.pb.go index 12f03305..e38d8bac 100644 --- a/cws/dumpsv1/activity_dump_vtproto.pb.go +++ b/cws/dumpsv1/activity_dump_vtproto.pb.go @@ -1,14 +1,14 @@ // Code generated by protoc-gen-go-vtproto. DO NOT EDIT. -// protoc-gen-go-vtproto version: v0.5.0 +// protoc-gen-go-vtproto version: v0.6.0 // source: proto/cws/dumpsv1/activity_dump.proto package dumpsv1 import ( fmt "fmt" + protohelpers "github.com/planetscale/vtprotobuf/protohelpers" protoimpl "google.golang.org/protobuf/runtime/protoimpl" io "io" - bits "math/bits" sync "sync" ) @@ -56,7 +56,7 @@ func (m *SecDump) MarshalToSizedBufferVT(dAtA []byte) (int, error) { return 0, err } i -= size - i = encodeVarint(dAtA, i, uint64(size)) + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) i-- dAtA[i] = 0x32 } @@ -65,7 +65,7 @@ func (m *SecDump) MarshalToSizedBufferVT(dAtA []byte) (int, error) { for iNdEx := len(m.Tags) - 1; iNdEx >= 0; iNdEx-- { i -= len(m.Tags[iNdEx]) copy(dAtA[i:], m.Tags[iNdEx]) - i = encodeVarint(dAtA, i, uint64(len(m.Tags[iNdEx]))) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.Tags[iNdEx]))) i-- dAtA[i] = 0x2a } @@ -76,28 +76,28 @@ func (m *SecDump) MarshalToSizedBufferVT(dAtA []byte) (int, error) { return 0, err } i -= size - i = encodeVarint(dAtA, i, uint64(size)) + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) i-- dAtA[i] = 0x22 } if len(m.Source) > 0 { i -= len(m.Source) copy(dAtA[i:], m.Source) - i = encodeVarint(dAtA, i, uint64(len(m.Source))) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.Source))) i-- dAtA[i] = 0x1a } if len(m.Service) > 0 { i -= len(m.Service) copy(dAtA[i:], m.Service) - i = encodeVarint(dAtA, i, uint64(len(m.Service))) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.Service))) i-- dAtA[i] = 0x12 } if len(m.Host) > 0 { i -= len(m.Host) copy(dAtA[i:], m.Host) - i = encodeVarint(dAtA, i, uint64(len(m.Host))) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.Host))) i-- dAtA[i] = 0xa } @@ -137,43 +137,43 @@ func (m *Metadata) MarshalToSizedBufferVT(dAtA []byte) (int, error) { if len(m.Serialization) > 0 { i -= len(m.Serialization) copy(dAtA[i:], m.Serialization) - i = encodeVarint(dAtA, i, uint64(len(m.Serialization))) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.Serialization))) i-- dAtA[i] = 0x72 } if len(m.Arch) > 0 { i -= len(m.Arch) copy(dAtA[i:], m.Arch) - i = encodeVarint(dAtA, i, uint64(len(m.Arch))) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.Arch))) i-- dAtA[i] = 0x6a } if m.Size != 0 { - i = encodeVarint(dAtA, i, uint64(m.Size)) + i = protohelpers.EncodeVarint(dAtA, i, uint64(m.Size)) i-- dAtA[i] = 0x60 } if m.End != 0 { - i = encodeVarint(dAtA, i, uint64(m.End)) + i = protohelpers.EncodeVarint(dAtA, i, uint64(m.End)) i-- dAtA[i] = 0x58 } if m.Start != 0 { - i = encodeVarint(dAtA, i, uint64(m.Start)) + i = protohelpers.EncodeVarint(dAtA, i, uint64(m.Start)) i-- dAtA[i] = 0x50 } if len(m.ContainerId) > 0 { i -= len(m.ContainerId) copy(dAtA[i:], m.ContainerId) - i = encodeVarint(dAtA, i, uint64(len(m.ContainerId))) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.ContainerId))) i-- dAtA[i] = 0x4a } if len(m.Comm) > 0 { i -= len(m.Comm) copy(dAtA[i:], m.Comm) - i = encodeVarint(dAtA, i, uint64(len(m.Comm))) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.Comm))) i-- dAtA[i] = 0x42 } @@ -190,42 +190,42 @@ func (m *Metadata) MarshalToSizedBufferVT(dAtA []byte) (int, error) { if len(m.ProtobufVersion) > 0 { i -= len(m.ProtobufVersion) copy(dAtA[i:], m.ProtobufVersion) - i = encodeVarint(dAtA, i, uint64(len(m.ProtobufVersion))) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.ProtobufVersion))) i-- dAtA[i] = 0x32 } if len(m.Name) > 0 { i -= len(m.Name) copy(dAtA[i:], m.Name) - i = encodeVarint(dAtA, i, uint64(len(m.Name))) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.Name))) i-- dAtA[i] = 0x2a } if len(m.LinuxDistribution) > 0 { i -= len(m.LinuxDistribution) copy(dAtA[i:], m.LinuxDistribution) - i = encodeVarint(dAtA, i, uint64(len(m.LinuxDistribution))) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.LinuxDistribution))) i-- dAtA[i] = 0x22 } if len(m.KernelVersion) > 0 { i -= len(m.KernelVersion) copy(dAtA[i:], m.KernelVersion) - i = encodeVarint(dAtA, i, uint64(len(m.KernelVersion))) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.KernelVersion))) i-- dAtA[i] = 0x1a } if len(m.AgentCommit) > 0 { i -= len(m.AgentCommit) copy(dAtA[i:], m.AgentCommit) - i = encodeVarint(dAtA, i, uint64(len(m.AgentCommit))) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.AgentCommit))) i-- dAtA[i] = 0x12 } if len(m.AgentVersion) > 0 { i -= len(m.AgentVersion) copy(dAtA[i:], m.AgentVersion) - i = encodeVarint(dAtA, i, uint64(len(m.AgentVersion))) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.AgentVersion))) i-- dAtA[i] = 0xa } @@ -269,7 +269,7 @@ func (m *SecurityProfile) MarshalToSizedBufferVT(dAtA []byte) (int, error) { return 0, err } i -= size - i = encodeVarint(dAtA, i, uint64(size)) + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) i-- dAtA[i] = 0x32 } @@ -277,7 +277,7 @@ func (m *SecurityProfile) MarshalToSizedBufferVT(dAtA []byte) (int, error) { if len(m.Syscalls) > 0 { var pksize2 int for _, num := range m.Syscalls { - pksize2 += sov(uint64(num)) + pksize2 += protohelpers.SizeOfVarint(uint64(num)) } i -= pksize2 j1 := i @@ -290,7 +290,7 @@ func (m *SecurityProfile) MarshalToSizedBufferVT(dAtA []byte) (int, error) { dAtA[j1] = uint8(num) j1++ } - i = encodeVarint(dAtA, i, uint64(pksize2)) + i = protohelpers.EncodeVarint(dAtA, i, uint64(pksize2)) i-- dAtA[i] = 0x2a } @@ -298,7 +298,7 @@ func (m *SecurityProfile) MarshalToSizedBufferVT(dAtA []byte) (int, error) { for iNdEx := len(m.Tags) - 1; iNdEx >= 0; iNdEx-- { i -= len(m.Tags[iNdEx]) copy(dAtA[i:], m.Tags[iNdEx]) - i = encodeVarint(dAtA, i, uint64(len(m.Tags[iNdEx]))) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.Tags[iNdEx]))) i-- dAtA[i] = 0x22 } @@ -309,19 +309,19 @@ func (m *SecurityProfile) MarshalToSizedBufferVT(dAtA []byte) (int, error) { return 0, err } i -= size - i = encodeVarint(dAtA, i, uint64(size)) + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) i-- dAtA[i] = 0x1a } if len(m.Version) > 0 { i -= len(m.Version) copy(dAtA[i:], m.Version) - i = encodeVarint(dAtA, i, uint64(len(m.Version))) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.Version))) i-- dAtA[i] = 0x12 } if m.Status != 0 { - i = encodeVarint(dAtA, i, uint64(m.Status)) + i = protohelpers.EncodeVarint(dAtA, i, uint64(m.Status)) i-- dAtA[i] = 0x8 } @@ -365,20 +365,20 @@ func (m *ProcessActivityNode) MarshalToSizedBufferVT(dAtA []byte) (int, error) { return 0, err } i -= size - i = encodeVarint(dAtA, i, uint64(size)) + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) i-- dAtA[i] = 0x4a } } if m.GenerationType != 0 { - i = encodeVarint(dAtA, i, uint64(m.GenerationType)) + i = protohelpers.EncodeVarint(dAtA, i, uint64(m.GenerationType)) i-- dAtA[i] = 0x40 } if len(m.Syscalls) > 0 { var pksize2 int for _, num := range m.Syscalls { - pksize2 += sov(uint64(num)) + pksize2 += protohelpers.SizeOfVarint(uint64(num)) } i -= pksize2 j1 := i @@ -391,7 +391,7 @@ func (m *ProcessActivityNode) MarshalToSizedBufferVT(dAtA []byte) (int, error) { dAtA[j1] = uint8(num) j1++ } - i = encodeVarint(dAtA, i, uint64(pksize2)) + i = protohelpers.EncodeVarint(dAtA, i, uint64(pksize2)) i-- dAtA[i] = 0x3a } @@ -402,7 +402,7 @@ func (m *ProcessActivityNode) MarshalToSizedBufferVT(dAtA []byte) (int, error) { return 0, err } i -= size - i = encodeVarint(dAtA, i, uint64(size)) + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) i-- dAtA[i] = 0x32 } @@ -414,7 +414,7 @@ func (m *ProcessActivityNode) MarshalToSizedBufferVT(dAtA []byte) (int, error) { return 0, err } i -= size - i = encodeVarint(dAtA, i, uint64(size)) + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) i-- dAtA[i] = 0x2a } @@ -426,7 +426,7 @@ func (m *ProcessActivityNode) MarshalToSizedBufferVT(dAtA []byte) (int, error) { return 0, err } i -= size - i = encodeVarint(dAtA, i, uint64(size)) + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) i-- dAtA[i] = 0x22 } @@ -438,7 +438,7 @@ func (m *ProcessActivityNode) MarshalToSizedBufferVT(dAtA []byte) (int, error) { return 0, err } i -= size - i = encodeVarint(dAtA, i, uint64(size)) + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) i-- dAtA[i] = 0x1a } @@ -449,7 +449,7 @@ func (m *ProcessActivityNode) MarshalToSizedBufferVT(dAtA []byte) (int, error) { return 0, err } i -= size - i = encodeVarint(dAtA, i, uint64(size)) + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) i-- dAtA[i] = 0xa } @@ -487,7 +487,7 @@ func (m *ProcessInfo) MarshalToSizedBufferVT(dAtA []byte) (int, error) { copy(dAtA[i:], m.unknownFields) } if m.Cookie64 != 0 { - i = encodeVarint(dAtA, i, uint64(m.Cookie64)) + i = protohelpers.EncodeVarint(dAtA, i, uint64(m.Cookie64)) i-- dAtA[i] = 0x1 i-- @@ -521,7 +521,7 @@ func (m *ProcessInfo) MarshalToSizedBufferVT(dAtA []byte) (int, error) { for iNdEx := len(m.Envs) - 1; iNdEx >= 0; iNdEx-- { i -= len(m.Envs[iNdEx]) copy(dAtA[i:], m.Envs[iNdEx]) - i = encodeVarint(dAtA, i, uint64(len(m.Envs[iNdEx]))) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.Envs[iNdEx]))) i-- dAtA[i] = 0x1 i-- @@ -543,7 +543,7 @@ func (m *ProcessInfo) MarshalToSizedBufferVT(dAtA []byte) (int, error) { if len(m.Argv0) > 0 { i -= len(m.Argv0) copy(dAtA[i:], m.Argv0) - i = encodeVarint(dAtA, i, uint64(len(m.Argv0))) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.Argv0))) i-- dAtA[i] = 0x1 i-- @@ -553,7 +553,7 @@ func (m *ProcessInfo) MarshalToSizedBufferVT(dAtA []byte) (int, error) { for iNdEx := len(m.Args) - 1; iNdEx >= 0; iNdEx-- { i -= len(m.Args[iNdEx]) copy(dAtA[i:], m.Args[iNdEx]) - i = encodeVarint(dAtA, i, uint64(len(m.Args[iNdEx]))) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.Args[iNdEx]))) i-- dAtA[i] = 0x1 i-- @@ -566,53 +566,53 @@ func (m *ProcessInfo) MarshalToSizedBufferVT(dAtA []byte) (int, error) { return 0, err } i -= size - i = encodeVarint(dAtA, i, uint64(size)) + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) i-- dAtA[i] = 0x7a } if m.ExecTime != 0 { - i = encodeVarint(dAtA, i, uint64(m.ExecTime)) + i = protohelpers.EncodeVarint(dAtA, i, uint64(m.ExecTime)) i-- dAtA[i] = 0x70 } if m.ExitTime != 0 { - i = encodeVarint(dAtA, i, uint64(m.ExitTime)) + i = protohelpers.EncodeVarint(dAtA, i, uint64(m.ExitTime)) i-- dAtA[i] = 0x68 } if m.ForkTime != 0 { - i = encodeVarint(dAtA, i, uint64(m.ForkTime)) + i = protohelpers.EncodeVarint(dAtA, i, uint64(m.ForkTime)) i-- dAtA[i] = 0x60 } if len(m.Comm) > 0 { i -= len(m.Comm) copy(dAtA[i:], m.Comm) - i = encodeVarint(dAtA, i, uint64(len(m.Comm))) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.Comm))) i-- dAtA[i] = 0x5a } if len(m.Tty) > 0 { i -= len(m.Tty) copy(dAtA[i:], m.Tty) - i = encodeVarint(dAtA, i, uint64(len(m.Tty))) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.Tty))) i-- dAtA[i] = 0x52 } if m.TraceId != 0 { - i = encodeVarint(dAtA, i, uint64(m.TraceId)) + i = protohelpers.EncodeVarint(dAtA, i, uint64(m.TraceId)) i-- dAtA[i] = 0x48 } if m.SpanId != 0 { - i = encodeVarint(dAtA, i, uint64(m.SpanId)) + i = protohelpers.EncodeVarint(dAtA, i, uint64(m.SpanId)) i-- dAtA[i] = 0x40 } if len(m.ContainerId) > 0 { i -= len(m.ContainerId) copy(dAtA[i:], m.ContainerId) - i = encodeVarint(dAtA, i, uint64(len(m.ContainerId))) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.ContainerId))) i-- dAtA[i] = 0x3a } @@ -622,7 +622,7 @@ func (m *ProcessInfo) MarshalToSizedBufferVT(dAtA []byte) (int, error) { return 0, err } i -= size - i = encodeVarint(dAtA, i, uint64(size)) + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) i-- dAtA[i] = 0x32 } @@ -637,22 +637,22 @@ func (m *ProcessInfo) MarshalToSizedBufferVT(dAtA []byte) (int, error) { dAtA[i] = 0x28 } if m.Cookie != 0 { - i = encodeVarint(dAtA, i, uint64(m.Cookie)) + i = protohelpers.EncodeVarint(dAtA, i, uint64(m.Cookie)) i-- dAtA[i] = 0x20 } if m.Ppid != 0 { - i = encodeVarint(dAtA, i, uint64(m.Ppid)) + i = protohelpers.EncodeVarint(dAtA, i, uint64(m.Ppid)) i-- dAtA[i] = 0x18 } if m.Tid != 0 { - i = encodeVarint(dAtA, i, uint64(m.Tid)) + i = protohelpers.EncodeVarint(dAtA, i, uint64(m.Tid)) i-- dAtA[i] = 0x10 } if m.Pid != 0 { - i = encodeVarint(dAtA, i, uint64(m.Pid)) + i = protohelpers.EncodeVarint(dAtA, i, uint64(m.Pid)) i-- dAtA[i] = 0x8 } @@ -696,13 +696,13 @@ func (m *FileActivityNode) MarshalToSizedBufferVT(dAtA []byte) (int, error) { return 0, err } i -= size - i = encodeVarint(dAtA, i, uint64(size)) + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) i-- dAtA[i] = 0x4a } } if m.GenerationType != 0 { - i = encodeVarint(dAtA, i, uint64(m.GenerationType)) + i = protohelpers.EncodeVarint(dAtA, i, uint64(m.GenerationType)) i-- dAtA[i] = 0x40 } @@ -723,7 +723,7 @@ func (m *FileActivityNode) MarshalToSizedBufferVT(dAtA []byte) (int, error) { return 0, err } i -= size - i = encodeVarint(dAtA, i, uint64(size)) + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) i-- dAtA[i] = 0x32 } @@ -734,12 +734,12 @@ func (m *FileActivityNode) MarshalToSizedBufferVT(dAtA []byte) (int, error) { return 0, err } i -= size - i = encodeVarint(dAtA, i, uint64(size)) + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) i-- dAtA[i] = 0x2a } if m.FirstSeen != 0 { - i = encodeVarint(dAtA, i, uint64(m.FirstSeen)) + i = protohelpers.EncodeVarint(dAtA, i, uint64(m.FirstSeen)) i-- dAtA[i] = 0x20 } @@ -749,14 +749,14 @@ func (m *FileActivityNode) MarshalToSizedBufferVT(dAtA []byte) (int, error) { return 0, err } i -= size - i = encodeVarint(dAtA, i, uint64(size)) + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) i-- dAtA[i] = 0x12 } if len(m.Name) > 0 { i -= len(m.Name) copy(dAtA[i:], m.Name) - i = encodeVarint(dAtA, i, uint64(len(m.Name))) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.Name))) i-- dAtA[i] = 0xa } @@ -794,17 +794,17 @@ func (m *OpenNode) MarshalToSizedBufferVT(dAtA []byte) (int, error) { copy(dAtA[i:], m.unknownFields) } if m.Mode != 0 { - i = encodeVarint(dAtA, i, uint64(m.Mode)) + i = protohelpers.EncodeVarint(dAtA, i, uint64(m.Mode)) i-- dAtA[i] = 0x18 } if m.Flags != 0 { - i = encodeVarint(dAtA, i, uint64(m.Flags)) + i = protohelpers.EncodeVarint(dAtA, i, uint64(m.Flags)) i-- dAtA[i] = 0x10 } if m.Retval != 0 { - i = encodeVarint(dAtA, i, uint64((uint64(m.Retval)<<1)^uint64((m.Retval>>63)))) + i = protohelpers.EncodeVarint(dAtA, i, uint64((uint64(m.Retval)<<1)^uint64((m.Retval>>63)))) i-- dAtA[i] = 0x8 } @@ -848,7 +848,7 @@ func (m *DNSNode) MarshalToSizedBufferVT(dAtA []byte) (int, error) { return 0, err } i -= size - i = encodeVarint(dAtA, i, uint64(size)) + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) i-- dAtA[i] = 0x12 } @@ -860,7 +860,7 @@ func (m *DNSNode) MarshalToSizedBufferVT(dAtA []byte) (int, error) { return 0, err } i -= size - i = encodeVarint(dAtA, i, uint64(size)) + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) i-- dAtA[i] = 0xa } @@ -899,29 +899,29 @@ func (m *DNSInfo) MarshalToSizedBufferVT(dAtA []byte) (int, error) { copy(dAtA[i:], m.unknownFields) } if m.Count != 0 { - i = encodeVarint(dAtA, i, uint64(m.Count)) + i = protohelpers.EncodeVarint(dAtA, i, uint64(m.Count)) i-- dAtA[i] = 0x28 } if m.Size != 0 { - i = encodeVarint(dAtA, i, uint64(m.Size)) + i = protohelpers.EncodeVarint(dAtA, i, uint64(m.Size)) i-- dAtA[i] = 0x20 } if m.Class != 0 { - i = encodeVarint(dAtA, i, uint64(m.Class)) + i = protohelpers.EncodeVarint(dAtA, i, uint64(m.Class)) i-- dAtA[i] = 0x18 } if m.Type != 0 { - i = encodeVarint(dAtA, i, uint64(m.Type)) + i = protohelpers.EncodeVarint(dAtA, i, uint64(m.Type)) i-- dAtA[i] = 0x10 } if len(m.Name) > 0 { i -= len(m.Name) copy(dAtA[i:], m.Name) - i = encodeVarint(dAtA, i, uint64(len(m.Name))) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.Name))) i-- dAtA[i] = 0xa } @@ -959,7 +959,7 @@ func (m *FileInfo) MarshalToSizedBufferVT(dAtA []byte) (int, error) { copy(dAtA[i:], m.unknownFields) } if m.HashState != 0 { - i = encodeVarint(dAtA, i, uint64(m.HashState)) + i = protohelpers.EncodeVarint(dAtA, i, uint64(m.HashState)) i-- dAtA[i] = 0x1 i-- @@ -969,7 +969,7 @@ func (m *FileInfo) MarshalToSizedBufferVT(dAtA []byte) (int, error) { for iNdEx := len(m.Hashes) - 1; iNdEx >= 0; iNdEx-- { i -= len(m.Hashes[iNdEx]) copy(dAtA[i:], m.Hashes[iNdEx]) - i = encodeVarint(dAtA, i, uint64(len(m.Hashes[iNdEx]))) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.Hashes[iNdEx]))) i-- dAtA[i] = 0x1 i-- @@ -979,7 +979,7 @@ func (m *FileInfo) MarshalToSizedBufferVT(dAtA []byte) (int, error) { if len(m.PackageSrcversion) > 0 { i -= len(m.PackageSrcversion) copy(dAtA[i:], m.PackageSrcversion) - i = encodeVarint(dAtA, i, uint64(len(m.PackageSrcversion))) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.PackageSrcversion))) i-- dAtA[i] = 0x1 i-- @@ -988,35 +988,35 @@ func (m *FileInfo) MarshalToSizedBufferVT(dAtA []byte) (int, error) { if len(m.PackageVersion) > 0 { i -= len(m.PackageVersion) copy(dAtA[i:], m.PackageVersion) - i = encodeVarint(dAtA, i, uint64(len(m.PackageVersion))) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.PackageVersion))) i-- dAtA[i] = 0x7a } if len(m.PackageName) > 0 { i -= len(m.PackageName) copy(dAtA[i:], m.PackageName) - i = encodeVarint(dAtA, i, uint64(len(m.PackageName))) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.PackageName))) i-- dAtA[i] = 0x72 } if len(m.Filesystem) > 0 { i -= len(m.Filesystem) copy(dAtA[i:], m.Filesystem) - i = encodeVarint(dAtA, i, uint64(len(m.Filesystem))) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.Filesystem))) i-- dAtA[i] = 0x6a } if len(m.Basename) > 0 { i -= len(m.Basename) copy(dAtA[i:], m.Basename) - i = encodeVarint(dAtA, i, uint64(len(m.Basename))) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.Basename))) i-- dAtA[i] = 0x62 } if len(m.Path) > 0 { i -= len(m.Path) copy(dAtA[i:], m.Path) - i = encodeVarint(dAtA, i, uint64(len(m.Path))) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.Path))) i-- dAtA[i] = 0x5a } @@ -1031,51 +1031,51 @@ func (m *FileInfo) MarshalToSizedBufferVT(dAtA []byte) (int, error) { dAtA[i] = 0x50 } if m.Inode != 0 { - i = encodeVarint(dAtA, i, uint64(m.Inode)) + i = protohelpers.EncodeVarint(dAtA, i, uint64(m.Inode)) i-- dAtA[i] = 0x48 } if m.MountId != 0 { - i = encodeVarint(dAtA, i, uint64(m.MountId)) + i = protohelpers.EncodeVarint(dAtA, i, uint64(m.MountId)) i-- dAtA[i] = 0x40 } if m.Mtime != 0 { - i = encodeVarint(dAtA, i, uint64(m.Mtime)) + i = protohelpers.EncodeVarint(dAtA, i, uint64(m.Mtime)) i-- dAtA[i] = 0x38 } if m.Ctime != 0 { - i = encodeVarint(dAtA, i, uint64(m.Ctime)) + i = protohelpers.EncodeVarint(dAtA, i, uint64(m.Ctime)) i-- dAtA[i] = 0x30 } if m.Mode != 0 { - i = encodeVarint(dAtA, i, uint64(m.Mode)) + i = protohelpers.EncodeVarint(dAtA, i, uint64(m.Mode)) i-- dAtA[i] = 0x28 } if len(m.Group) > 0 { i -= len(m.Group) copy(dAtA[i:], m.Group) - i = encodeVarint(dAtA, i, uint64(len(m.Group))) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.Group))) i-- dAtA[i] = 0x22 } if m.Gid != 0 { - i = encodeVarint(dAtA, i, uint64(m.Gid)) + i = protohelpers.EncodeVarint(dAtA, i, uint64(m.Gid)) i-- dAtA[i] = 0x18 } if len(m.User) > 0 { i -= len(m.User) copy(dAtA[i:], m.User) - i = encodeVarint(dAtA, i, uint64(len(m.User))) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.User))) i-- dAtA[i] = 0x12 } if m.Uid != 0 { - i = encodeVarint(dAtA, i, uint64(m.Uid)) + i = protohelpers.EncodeVarint(dAtA, i, uint64(m.Uid)) i-- dAtA[i] = 0x8 } @@ -1113,84 +1113,84 @@ func (m *Credentials) MarshalToSizedBufferVT(dAtA []byte) (int, error) { copy(dAtA[i:], m.unknownFields) } if m.CapPermitted != 0 { - i = encodeVarint(dAtA, i, uint64(m.CapPermitted)) + i = protohelpers.EncodeVarint(dAtA, i, uint64(m.CapPermitted)) i-- dAtA[i] = 0x70 } if m.CapEffective != 0 { - i = encodeVarint(dAtA, i, uint64(m.CapEffective)) + i = protohelpers.EncodeVarint(dAtA, i, uint64(m.CapEffective)) i-- dAtA[i] = 0x68 } if len(m.FsGroup) > 0 { i -= len(m.FsGroup) copy(dAtA[i:], m.FsGroup) - i = encodeVarint(dAtA, i, uint64(len(m.FsGroup))) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.FsGroup))) i-- dAtA[i] = 0x62 } if len(m.FsUser) > 0 { i -= len(m.FsUser) copy(dAtA[i:], m.FsUser) - i = encodeVarint(dAtA, i, uint64(len(m.FsUser))) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.FsUser))) i-- dAtA[i] = 0x5a } if m.FsGid != 0 { - i = encodeVarint(dAtA, i, uint64(m.FsGid)) + i = protohelpers.EncodeVarint(dAtA, i, uint64(m.FsGid)) i-- dAtA[i] = 0x50 } if m.FsUid != 0 { - i = encodeVarint(dAtA, i, uint64(m.FsUid)) + i = protohelpers.EncodeVarint(dAtA, i, uint64(m.FsUid)) i-- dAtA[i] = 0x48 } if len(m.EffectiveGroup) > 0 { i -= len(m.EffectiveGroup) copy(dAtA[i:], m.EffectiveGroup) - i = encodeVarint(dAtA, i, uint64(len(m.EffectiveGroup))) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.EffectiveGroup))) i-- dAtA[i] = 0x42 } if len(m.EffectiveUser) > 0 { i -= len(m.EffectiveUser) copy(dAtA[i:], m.EffectiveUser) - i = encodeVarint(dAtA, i, uint64(len(m.EffectiveUser))) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.EffectiveUser))) i-- dAtA[i] = 0x3a } if m.EffectiveGid != 0 { - i = encodeVarint(dAtA, i, uint64(m.EffectiveGid)) + i = protohelpers.EncodeVarint(dAtA, i, uint64(m.EffectiveGid)) i-- dAtA[i] = 0x30 } if m.EffectiveUid != 0 { - i = encodeVarint(dAtA, i, uint64(m.EffectiveUid)) + i = protohelpers.EncodeVarint(dAtA, i, uint64(m.EffectiveUid)) i-- dAtA[i] = 0x28 } if len(m.Group) > 0 { i -= len(m.Group) copy(dAtA[i:], m.Group) - i = encodeVarint(dAtA, i, uint64(len(m.Group))) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.Group))) i-- dAtA[i] = 0x22 } if len(m.User) > 0 { i -= len(m.User) copy(dAtA[i:], m.User) - i = encodeVarint(dAtA, i, uint64(len(m.User))) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.User))) i-- dAtA[i] = 0x1a } if m.Gid != 0 { - i = encodeVarint(dAtA, i, uint64(m.Gid)) + i = protohelpers.EncodeVarint(dAtA, i, uint64(m.Gid)) i-- dAtA[i] = 0x10 } if m.Uid != 0 { - i = encodeVarint(dAtA, i, uint64(m.Uid)) + i = protohelpers.EncodeVarint(dAtA, i, uint64(m.Uid)) i-- dAtA[i] = 0x8 } @@ -1234,7 +1234,7 @@ func (m *SocketNode) MarshalToSizedBufferVT(dAtA []byte) (int, error) { return 0, err } i -= size - i = encodeVarint(dAtA, i, uint64(size)) + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) i-- dAtA[i] = 0x12 } @@ -1242,7 +1242,7 @@ func (m *SocketNode) MarshalToSizedBufferVT(dAtA []byte) (int, error) { if len(m.Family) > 0 { i -= len(m.Family) copy(dAtA[i:], m.Family) - i = encodeVarint(dAtA, i, uint64(len(m.Family))) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.Family))) i-- dAtA[i] = 0xa } @@ -1286,7 +1286,7 @@ func (m *BindNode) MarshalToSizedBufferVT(dAtA []byte) (int, error) { return 0, err } i -= size - i = encodeVarint(dAtA, i, uint64(size)) + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) i-- dAtA[i] = 0x1a } @@ -1294,12 +1294,12 @@ func (m *BindNode) MarshalToSizedBufferVT(dAtA []byte) (int, error) { if len(m.Ip) > 0 { i -= len(m.Ip) copy(dAtA[i:], m.Ip) - i = encodeVarint(dAtA, i, uint64(len(m.Ip))) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.Ip))) i-- dAtA[i] = 0x12 } if m.Port != 0 { - i = encodeVarint(dAtA, i, uint64(m.Port)) + i = protohelpers.EncodeVarint(dAtA, i, uint64(m.Port)) i-- dAtA[i] = 0x8 } @@ -1342,15 +1342,15 @@ func (m *MatchedRule) MarshalToSizedBufferVT(dAtA []byte) (int, error) { baseI := i i -= len(v) copy(dAtA[i:], v) - i = encodeVarint(dAtA, i, uint64(len(v))) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(v))) i-- dAtA[i] = 0x12 i -= len(k) copy(dAtA[i:], k) - i = encodeVarint(dAtA, i, uint64(len(k))) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(k))) i-- dAtA[i] = 0xa - i = encodeVarint(dAtA, i, uint64(baseI-i)) + i = protohelpers.EncodeVarint(dAtA, i, uint64(baseI-i)) i-- dAtA[i] = 0x2a } @@ -1358,46 +1358,34 @@ func (m *MatchedRule) MarshalToSizedBufferVT(dAtA []byte) (int, error) { if len(m.PolicyVersion) > 0 { i -= len(m.PolicyVersion) copy(dAtA[i:], m.PolicyVersion) - i = encodeVarint(dAtA, i, uint64(len(m.PolicyVersion))) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.PolicyVersion))) i-- dAtA[i] = 0x22 } if len(m.PolicyName) > 0 { i -= len(m.PolicyName) copy(dAtA[i:], m.PolicyName) - i = encodeVarint(dAtA, i, uint64(len(m.PolicyName))) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.PolicyName))) i-- dAtA[i] = 0x1a } if len(m.RuleVersion) > 0 { i -= len(m.RuleVersion) copy(dAtA[i:], m.RuleVersion) - i = encodeVarint(dAtA, i, uint64(len(m.RuleVersion))) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.RuleVersion))) i-- dAtA[i] = 0x12 } if len(m.RuleId) > 0 { i -= len(m.RuleId) copy(dAtA[i:], m.RuleId) - i = encodeVarint(dAtA, i, uint64(len(m.RuleId))) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.RuleId))) i-- dAtA[i] = 0xa } return len(dAtA) - i, nil } -func encodeVarint(dAtA []byte, offset int, v uint64) int { - offset -= sov(v) - base := offset - for v >= 1<<7 { - dAtA[offset] = uint8(v&0x7f | 0x80) - v >>= 7 - offset++ - } - dAtA[offset] = uint8(v) - return base -} - var vtprotoPool_SecDump = sync.Pool{ New: func() interface{} { return &SecDump{} @@ -1405,14 +1393,16 @@ var vtprotoPool_SecDump = sync.Pool{ } func (m *SecDump) ResetVT() { - f0 := m.Tags[:0] - for _, mm := range m.Tree { - mm.ResetVT() - } - f1 := m.Tree[:0] - m.Reset() - m.Tags = f0 - m.Tree = f1 + if m != nil { + f0 := m.Tags[:0] + for _, mm := range m.Tree { + mm.ResetVT() + } + f1 := m.Tree[:0] + m.Reset() + m.Tags = f0 + m.Tree = f1 + } } func (m *SecDump) ReturnToVTPool() { if m != nil { @@ -1431,35 +1421,37 @@ var vtprotoPool_ProcessActivityNode = sync.Pool{ } func (m *ProcessActivityNode) ResetVT() { - m.Process.ReturnToVTPool() - for _, mm := range m.Children { - mm.ResetVT() - } - f0 := m.Children[:0] - for _, mm := range m.Files { - mm.ResetVT() - } - f1 := m.Files[:0] - for _, mm := range m.DnsNames { - mm.Reset() - } - f2 := m.DnsNames[:0] - for _, mm := range m.Sockets { - mm.Reset() - } - f3 := m.Sockets[:0] - f4 := m.Syscalls[:0] - for _, mm := range m.MatchedRules { - mm.Reset() - } - f5 := m.MatchedRules[:0] - m.Reset() - m.Children = f0 - m.Files = f1 - m.DnsNames = f2 - m.Sockets = f3 - m.Syscalls = f4 - m.MatchedRules = f5 + if m != nil { + m.Process.ReturnToVTPool() + for _, mm := range m.Children { + mm.ResetVT() + } + f0 := m.Children[:0] + for _, mm := range m.Files { + mm.ResetVT() + } + f1 := m.Files[:0] + for _, mm := range m.DnsNames { + mm.Reset() + } + f2 := m.DnsNames[:0] + for _, mm := range m.Sockets { + mm.Reset() + } + f3 := m.Sockets[:0] + f4 := m.Syscalls[:0] + for _, mm := range m.MatchedRules { + mm.Reset() + } + f5 := m.MatchedRules[:0] + m.Reset() + m.Children = f0 + m.Files = f1 + m.DnsNames = f2 + m.Sockets = f3 + m.Syscalls = f4 + m.MatchedRules = f5 + } } func (m *ProcessActivityNode) ReturnToVTPool() { if m != nil { @@ -1478,12 +1470,14 @@ var vtprotoPool_ProcessInfo = sync.Pool{ } func (m *ProcessInfo) ResetVT() { - m.File.ReturnToVTPool() - f0 := m.Args[:0] - f1 := m.Envs[:0] - m.Reset() - m.Args = f0 - m.Envs = f1 + if m != nil { + m.File.ReturnToVTPool() + f0 := m.Args[:0] + f1 := m.Envs[:0] + m.Reset() + m.Args = f0 + m.Envs = f1 + } } func (m *ProcessInfo) ReturnToVTPool() { if m != nil { @@ -1502,18 +1496,20 @@ var vtprotoPool_FileActivityNode = sync.Pool{ } func (m *FileActivityNode) ResetVT() { - m.File.ReturnToVTPool() - for _, mm := range m.Children { - mm.ResetVT() - } - f0 := m.Children[:0] - for _, mm := range m.MatchedRules { - mm.Reset() - } - f1 := m.MatchedRules[:0] - m.Reset() - m.Children = f0 - m.MatchedRules = f1 + if m != nil { + m.File.ReturnToVTPool() + for _, mm := range m.Children { + mm.ResetVT() + } + f0 := m.Children[:0] + for _, mm := range m.MatchedRules { + mm.Reset() + } + f1 := m.MatchedRules[:0] + m.Reset() + m.Children = f0 + m.MatchedRules = f1 + } } func (m *FileActivityNode) ReturnToVTPool() { if m != nil { @@ -1532,9 +1528,11 @@ var vtprotoPool_FileInfo = sync.Pool{ } func (m *FileInfo) ResetVT() { - f0 := m.Hashes[:0] - m.Reset() - m.Hashes = f0 + if m != nil { + f0 := m.Hashes[:0] + m.Reset() + m.Hashes = f0 + } } func (m *FileInfo) ReturnToVTPool() { if m != nil { @@ -1553,30 +1551,30 @@ func (m *SecDump) SizeVT() (n int) { _ = l l = len(m.Host) if l > 0 { - n += 1 + l + sov(uint64(l)) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } l = len(m.Service) if l > 0 { - n += 1 + l + sov(uint64(l)) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } l = len(m.Source) if l > 0 { - n += 1 + l + sov(uint64(l)) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } if m.Metadata != nil { l = m.Metadata.SizeVT() - n += 1 + l + sov(uint64(l)) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } if len(m.Tags) > 0 { for _, s := range m.Tags { l = len(s) - n += 1 + l + sov(uint64(l)) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } } if len(m.Tree) > 0 { for _, e := range m.Tree { l = e.SizeVT() - n += 1 + l + sov(uint64(l)) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } } n += len(m.unknownFields) @@ -1591,55 +1589,55 @@ func (m *Metadata) SizeVT() (n int) { _ = l l = len(m.AgentVersion) if l > 0 { - n += 1 + l + sov(uint64(l)) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } l = len(m.AgentCommit) if l > 0 { - n += 1 + l + sov(uint64(l)) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } l = len(m.KernelVersion) if l > 0 { - n += 1 + l + sov(uint64(l)) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } l = len(m.LinuxDistribution) if l > 0 { - n += 1 + l + sov(uint64(l)) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } l = len(m.Name) if l > 0 { - n += 1 + l + sov(uint64(l)) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } l = len(m.ProtobufVersion) if l > 0 { - n += 1 + l + sov(uint64(l)) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } if m.DifferentiateArgs { n += 2 } l = len(m.Comm) if l > 0 { - n += 1 + l + sov(uint64(l)) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } l = len(m.ContainerId) if l > 0 { - n += 1 + l + sov(uint64(l)) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } if m.Start != 0 { - n += 1 + sov(uint64(m.Start)) + n += 1 + protohelpers.SizeOfVarint(uint64(m.Start)) } if m.End != 0 { - n += 1 + sov(uint64(m.End)) + n += 1 + protohelpers.SizeOfVarint(uint64(m.End)) } if m.Size != 0 { - n += 1 + sov(uint64(m.Size)) + n += 1 + protohelpers.SizeOfVarint(uint64(m.Size)) } l = len(m.Arch) if l > 0 { - n += 1 + l + sov(uint64(l)) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } l = len(m.Serialization) if l > 0 { - n += 1 + l + sov(uint64(l)) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } n += len(m.unknownFields) return n @@ -1652,33 +1650,33 @@ func (m *SecurityProfile) SizeVT() (n int) { var l int _ = l if m.Status != 0 { - n += 1 + sov(uint64(m.Status)) + n += 1 + protohelpers.SizeOfVarint(uint64(m.Status)) } l = len(m.Version) if l > 0 { - n += 1 + l + sov(uint64(l)) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } if m.Metadata != nil { l = m.Metadata.SizeVT() - n += 1 + l + sov(uint64(l)) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } if len(m.Tags) > 0 { for _, s := range m.Tags { l = len(s) - n += 1 + l + sov(uint64(l)) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } } if len(m.Syscalls) > 0 { l = 0 for _, e := range m.Syscalls { - l += sov(uint64(e)) + l += protohelpers.SizeOfVarint(uint64(e)) } - n += 1 + sov(uint64(l)) + l + n += 1 + protohelpers.SizeOfVarint(uint64(l)) + l } if len(m.Tree) > 0 { for _, e := range m.Tree { l = e.SizeVT() - n += 1 + l + sov(uint64(l)) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } } n += len(m.unknownFields) @@ -1693,46 +1691,46 @@ func (m *ProcessActivityNode) SizeVT() (n int) { _ = l if m.Process != nil { l = m.Process.SizeVT() - n += 1 + l + sov(uint64(l)) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } if len(m.Children) > 0 { for _, e := range m.Children { l = e.SizeVT() - n += 1 + l + sov(uint64(l)) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } } if len(m.Files) > 0 { for _, e := range m.Files { l = e.SizeVT() - n += 1 + l + sov(uint64(l)) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } } if len(m.DnsNames) > 0 { for _, e := range m.DnsNames { l = e.SizeVT() - n += 1 + l + sov(uint64(l)) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } } if len(m.Sockets) > 0 { for _, e := range m.Sockets { l = e.SizeVT() - n += 1 + l + sov(uint64(l)) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } } if len(m.Syscalls) > 0 { l = 0 for _, e := range m.Syscalls { - l += sov(uint64(e)) + l += protohelpers.SizeOfVarint(uint64(e)) } - n += 1 + sov(uint64(l)) + l + n += 1 + protohelpers.SizeOfVarint(uint64(l)) + l } if m.GenerationType != 0 { - n += 1 + sov(uint64(m.GenerationType)) + n += 1 + protohelpers.SizeOfVarint(uint64(m.GenerationType)) } if len(m.MatchedRules) > 0 { for _, e := range m.MatchedRules { l = e.SizeVT() - n += 1 + l + sov(uint64(l)) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } } n += len(m.unknownFields) @@ -1746,64 +1744,64 @@ func (m *ProcessInfo) SizeVT() (n int) { var l int _ = l if m.Pid != 0 { - n += 1 + sov(uint64(m.Pid)) + n += 1 + protohelpers.SizeOfVarint(uint64(m.Pid)) } if m.Tid != 0 { - n += 1 + sov(uint64(m.Tid)) + n += 1 + protohelpers.SizeOfVarint(uint64(m.Tid)) } if m.Ppid != 0 { - n += 1 + sov(uint64(m.Ppid)) + n += 1 + protohelpers.SizeOfVarint(uint64(m.Ppid)) } if m.Cookie != 0 { - n += 1 + sov(uint64(m.Cookie)) + n += 1 + protohelpers.SizeOfVarint(uint64(m.Cookie)) } if m.IsThread { n += 2 } if m.File != nil { l = m.File.SizeVT() - n += 1 + l + sov(uint64(l)) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } l = len(m.ContainerId) if l > 0 { - n += 1 + l + sov(uint64(l)) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } if m.SpanId != 0 { - n += 1 + sov(uint64(m.SpanId)) + n += 1 + protohelpers.SizeOfVarint(uint64(m.SpanId)) } if m.TraceId != 0 { - n += 1 + sov(uint64(m.TraceId)) + n += 1 + protohelpers.SizeOfVarint(uint64(m.TraceId)) } l = len(m.Tty) if l > 0 { - n += 1 + l + sov(uint64(l)) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } l = len(m.Comm) if l > 0 { - n += 1 + l + sov(uint64(l)) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } if m.ForkTime != 0 { - n += 1 + sov(uint64(m.ForkTime)) + n += 1 + protohelpers.SizeOfVarint(uint64(m.ForkTime)) } if m.ExitTime != 0 { - n += 1 + sov(uint64(m.ExitTime)) + n += 1 + protohelpers.SizeOfVarint(uint64(m.ExitTime)) } if m.ExecTime != 0 { - n += 1 + sov(uint64(m.ExecTime)) + n += 1 + protohelpers.SizeOfVarint(uint64(m.ExecTime)) } if m.Credentials != nil { l = m.Credentials.SizeVT() - n += 1 + l + sov(uint64(l)) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } if len(m.Args) > 0 { for _, s := range m.Args { l = len(s) - n += 2 + l + sov(uint64(l)) + n += 2 + l + protohelpers.SizeOfVarint(uint64(l)) } } l = len(m.Argv0) if l > 0 { - n += 2 + l + sov(uint64(l)) + n += 2 + l + protohelpers.SizeOfVarint(uint64(l)) } if m.ArgsTruncated { n += 3 @@ -1811,7 +1809,7 @@ func (m *ProcessInfo) SizeVT() (n int) { if len(m.Envs) > 0 { for _, s := range m.Envs { l = len(s) - n += 2 + l + sov(uint64(l)) + n += 2 + l + protohelpers.SizeOfVarint(uint64(l)) } } if m.EnvsTruncated { @@ -1821,7 +1819,7 @@ func (m *ProcessInfo) SizeVT() (n int) { n += 3 } if m.Cookie64 != 0 { - n += 2 + sov(uint64(m.Cookie64)) + n += 2 + protohelpers.SizeOfVarint(uint64(m.Cookie64)) } n += len(m.unknownFields) return n @@ -1835,35 +1833,35 @@ func (m *FileActivityNode) SizeVT() (n int) { _ = l l = len(m.Name) if l > 0 { - n += 1 + l + sov(uint64(l)) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } if m.File != nil { l = m.File.SizeVT() - n += 1 + l + sov(uint64(l)) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } if m.FirstSeen != 0 { - n += 1 + sov(uint64(m.FirstSeen)) + n += 1 + protohelpers.SizeOfVarint(uint64(m.FirstSeen)) } if m.Open != nil { l = m.Open.SizeVT() - n += 1 + l + sov(uint64(l)) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } if len(m.Children) > 0 { for _, e := range m.Children { l = e.SizeVT() - n += 1 + l + sov(uint64(l)) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } } if m.IsPattern { n += 2 } if m.GenerationType != 0 { - n += 1 + sov(uint64(m.GenerationType)) + n += 1 + protohelpers.SizeOfVarint(uint64(m.GenerationType)) } if len(m.MatchedRules) > 0 { for _, e := range m.MatchedRules { l = e.SizeVT() - n += 1 + l + sov(uint64(l)) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } } n += len(m.unknownFields) @@ -1877,13 +1875,13 @@ func (m *OpenNode) SizeVT() (n int) { var l int _ = l if m.Retval != 0 { - n += 1 + soz(uint64(m.Retval)) + n += 1 + protohelpers.SizeOfZigzag(uint64(m.Retval)) } if m.Flags != 0 { - n += 1 + sov(uint64(m.Flags)) + n += 1 + protohelpers.SizeOfVarint(uint64(m.Flags)) } if m.Mode != 0 { - n += 1 + sov(uint64(m.Mode)) + n += 1 + protohelpers.SizeOfVarint(uint64(m.Mode)) } n += len(m.unknownFields) return n @@ -1898,13 +1896,13 @@ func (m *DNSNode) SizeVT() (n int) { if len(m.Requests) > 0 { for _, e := range m.Requests { l = e.SizeVT() - n += 1 + l + sov(uint64(l)) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } } if len(m.MatchedRules) > 0 { for _, e := range m.MatchedRules { l = e.SizeVT() - n += 1 + l + sov(uint64(l)) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } } n += len(m.unknownFields) @@ -1919,19 +1917,19 @@ func (m *DNSInfo) SizeVT() (n int) { _ = l l = len(m.Name) if l > 0 { - n += 1 + l + sov(uint64(l)) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } if m.Type != 0 { - n += 1 + sov(uint64(m.Type)) + n += 1 + protohelpers.SizeOfVarint(uint64(m.Type)) } if m.Class != 0 { - n += 1 + sov(uint64(m.Class)) + n += 1 + protohelpers.SizeOfVarint(uint64(m.Class)) } if m.Size != 0 { - n += 1 + sov(uint64(m.Size)) + n += 1 + protohelpers.SizeOfVarint(uint64(m.Size)) } if m.Count != 0 { - n += 1 + sov(uint64(m.Count)) + n += 1 + protohelpers.SizeOfVarint(uint64(m.Count)) } n += len(m.unknownFields) return n @@ -1944,69 +1942,69 @@ func (m *FileInfo) SizeVT() (n int) { var l int _ = l if m.Uid != 0 { - n += 1 + sov(uint64(m.Uid)) + n += 1 + protohelpers.SizeOfVarint(uint64(m.Uid)) } l = len(m.User) if l > 0 { - n += 1 + l + sov(uint64(l)) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } if m.Gid != 0 { - n += 1 + sov(uint64(m.Gid)) + n += 1 + protohelpers.SizeOfVarint(uint64(m.Gid)) } l = len(m.Group) if l > 0 { - n += 1 + l + sov(uint64(l)) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } if m.Mode != 0 { - n += 1 + sov(uint64(m.Mode)) + n += 1 + protohelpers.SizeOfVarint(uint64(m.Mode)) } if m.Ctime != 0 { - n += 1 + sov(uint64(m.Ctime)) + n += 1 + protohelpers.SizeOfVarint(uint64(m.Ctime)) } if m.Mtime != 0 { - n += 1 + sov(uint64(m.Mtime)) + n += 1 + protohelpers.SizeOfVarint(uint64(m.Mtime)) } if m.MountId != 0 { - n += 1 + sov(uint64(m.MountId)) + n += 1 + protohelpers.SizeOfVarint(uint64(m.MountId)) } if m.Inode != 0 { - n += 1 + sov(uint64(m.Inode)) + n += 1 + protohelpers.SizeOfVarint(uint64(m.Inode)) } if m.InUpperLayer { n += 2 } l = len(m.Path) if l > 0 { - n += 1 + l + sov(uint64(l)) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } l = len(m.Basename) if l > 0 { - n += 1 + l + sov(uint64(l)) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } l = len(m.Filesystem) if l > 0 { - n += 1 + l + sov(uint64(l)) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } l = len(m.PackageName) if l > 0 { - n += 1 + l + sov(uint64(l)) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } l = len(m.PackageVersion) if l > 0 { - n += 1 + l + sov(uint64(l)) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } l = len(m.PackageSrcversion) if l > 0 { - n += 2 + l + sov(uint64(l)) + n += 2 + l + protohelpers.SizeOfVarint(uint64(l)) } if len(m.Hashes) > 0 { for _, s := range m.Hashes { l = len(s) - n += 2 + l + sov(uint64(l)) + n += 2 + l + protohelpers.SizeOfVarint(uint64(l)) } } if m.HashState != 0 { - n += 2 + sov(uint64(m.HashState)) + n += 2 + protohelpers.SizeOfVarint(uint64(m.HashState)) } n += len(m.unknownFields) return n @@ -2019,52 +2017,52 @@ func (m *Credentials) SizeVT() (n int) { var l int _ = l if m.Uid != 0 { - n += 1 + sov(uint64(m.Uid)) + n += 1 + protohelpers.SizeOfVarint(uint64(m.Uid)) } if m.Gid != 0 { - n += 1 + sov(uint64(m.Gid)) + n += 1 + protohelpers.SizeOfVarint(uint64(m.Gid)) } l = len(m.User) if l > 0 { - n += 1 + l + sov(uint64(l)) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } l = len(m.Group) if l > 0 { - n += 1 + l + sov(uint64(l)) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } if m.EffectiveUid != 0 { - n += 1 + sov(uint64(m.EffectiveUid)) + n += 1 + protohelpers.SizeOfVarint(uint64(m.EffectiveUid)) } if m.EffectiveGid != 0 { - n += 1 + sov(uint64(m.EffectiveGid)) + n += 1 + protohelpers.SizeOfVarint(uint64(m.EffectiveGid)) } l = len(m.EffectiveUser) if l > 0 { - n += 1 + l + sov(uint64(l)) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } l = len(m.EffectiveGroup) if l > 0 { - n += 1 + l + sov(uint64(l)) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } if m.FsUid != 0 { - n += 1 + sov(uint64(m.FsUid)) + n += 1 + protohelpers.SizeOfVarint(uint64(m.FsUid)) } if m.FsGid != 0 { - n += 1 + sov(uint64(m.FsGid)) + n += 1 + protohelpers.SizeOfVarint(uint64(m.FsGid)) } l = len(m.FsUser) if l > 0 { - n += 1 + l + sov(uint64(l)) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } l = len(m.FsGroup) if l > 0 { - n += 1 + l + sov(uint64(l)) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } if m.CapEffective != 0 { - n += 1 + sov(uint64(m.CapEffective)) + n += 1 + protohelpers.SizeOfVarint(uint64(m.CapEffective)) } if m.CapPermitted != 0 { - n += 1 + sov(uint64(m.CapPermitted)) + n += 1 + protohelpers.SizeOfVarint(uint64(m.CapPermitted)) } n += len(m.unknownFields) return n @@ -2078,12 +2076,12 @@ func (m *SocketNode) SizeVT() (n int) { _ = l l = len(m.Family) if l > 0 { - n += 1 + l + sov(uint64(l)) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } if len(m.Bind) > 0 { for _, e := range m.Bind { l = e.SizeVT() - n += 1 + l + sov(uint64(l)) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } } n += len(m.unknownFields) @@ -2097,16 +2095,16 @@ func (m *BindNode) SizeVT() (n int) { var l int _ = l if m.Port != 0 { - n += 1 + sov(uint64(m.Port)) + n += 1 + protohelpers.SizeOfVarint(uint64(m.Port)) } l = len(m.Ip) if l > 0 { - n += 1 + l + sov(uint64(l)) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } if len(m.MatchedRules) > 0 { for _, e := range m.MatchedRules { l = e.SizeVT() - n += 1 + l + sov(uint64(l)) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } } n += len(m.unknownFields) @@ -2121,38 +2119,32 @@ func (m *MatchedRule) SizeVT() (n int) { _ = l l = len(m.RuleId) if l > 0 { - n += 1 + l + sov(uint64(l)) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } l = len(m.RuleVersion) if l > 0 { - n += 1 + l + sov(uint64(l)) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } l = len(m.PolicyName) if l > 0 { - n += 1 + l + sov(uint64(l)) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } l = len(m.PolicyVersion) if l > 0 { - n += 1 + l + sov(uint64(l)) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } if len(m.RuleTags) > 0 { for k, v := range m.RuleTags { _ = k _ = v - mapEntrySize := 1 + len(k) + sov(uint64(len(k))) + 1 + len(v) + sov(uint64(len(v))) - n += mapEntrySize + 1 + sov(uint64(mapEntrySize)) + mapEntrySize := 1 + len(k) + protohelpers.SizeOfVarint(uint64(len(k))) + 1 + len(v) + protohelpers.SizeOfVarint(uint64(len(v))) + n += mapEntrySize + 1 + protohelpers.SizeOfVarint(uint64(mapEntrySize)) } } n += len(m.unknownFields) return n } -func sov(x uint64) (n int) { - return (bits.Len64(x|1) + 6) / 7 -} -func soz(x uint64) (n int) { - return sov(uint64((x << 1) ^ uint64((int64(x) >> 63)))) -} func (m *SecDump) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -2161,7 +2153,7 @@ func (m *SecDump) UnmarshalVT(dAtA []byte) error { var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -2189,7 +2181,7 @@ func (m *SecDump) UnmarshalVT(dAtA []byte) error { var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -2203,11 +2195,11 @@ func (m *SecDump) UnmarshalVT(dAtA []byte) error { } intStringLen := int(stringLen) if intStringLen < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } postIndex := iNdEx + intStringLen if postIndex < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF @@ -2221,7 +2213,7 @@ func (m *SecDump) UnmarshalVT(dAtA []byte) error { var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -2235,11 +2227,11 @@ func (m *SecDump) UnmarshalVT(dAtA []byte) error { } intStringLen := int(stringLen) if intStringLen < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } postIndex := iNdEx + intStringLen if postIndex < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF @@ -2253,7 +2245,7 @@ func (m *SecDump) UnmarshalVT(dAtA []byte) error { var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -2267,11 +2259,11 @@ func (m *SecDump) UnmarshalVT(dAtA []byte) error { } intStringLen := int(stringLen) if intStringLen < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } postIndex := iNdEx + intStringLen if postIndex < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF @@ -2285,7 +2277,7 @@ func (m *SecDump) UnmarshalVT(dAtA []byte) error { var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -2298,11 +2290,11 @@ func (m *SecDump) UnmarshalVT(dAtA []byte) error { } } if msglen < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } postIndex := iNdEx + msglen if postIndex < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF @@ -2321,7 +2313,7 @@ func (m *SecDump) UnmarshalVT(dAtA []byte) error { var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -2335,11 +2327,11 @@ func (m *SecDump) UnmarshalVT(dAtA []byte) error { } intStringLen := int(stringLen) if intStringLen < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } postIndex := iNdEx + intStringLen if postIndex < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF @@ -2353,7 +2345,7 @@ func (m *SecDump) UnmarshalVT(dAtA []byte) error { var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -2366,11 +2358,11 @@ func (m *SecDump) UnmarshalVT(dAtA []byte) error { } } if msglen < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } postIndex := iNdEx + msglen if postIndex < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF @@ -2389,12 +2381,12 @@ func (m *SecDump) UnmarshalVT(dAtA []byte) error { iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skip(dAtA[iNdEx:]) + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF @@ -2417,7 +2409,7 @@ func (m *Metadata) UnmarshalVT(dAtA []byte) error { var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -2445,7 +2437,7 @@ func (m *Metadata) UnmarshalVT(dAtA []byte) error { var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -2459,11 +2451,11 @@ func (m *Metadata) UnmarshalVT(dAtA []byte) error { } intStringLen := int(stringLen) if intStringLen < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } postIndex := iNdEx + intStringLen if postIndex < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF @@ -2477,7 +2469,7 @@ func (m *Metadata) UnmarshalVT(dAtA []byte) error { var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -2491,11 +2483,11 @@ func (m *Metadata) UnmarshalVT(dAtA []byte) error { } intStringLen := int(stringLen) if intStringLen < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } postIndex := iNdEx + intStringLen if postIndex < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF @@ -2509,7 +2501,7 @@ func (m *Metadata) UnmarshalVT(dAtA []byte) error { var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -2523,11 +2515,11 @@ func (m *Metadata) UnmarshalVT(dAtA []byte) error { } intStringLen := int(stringLen) if intStringLen < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } postIndex := iNdEx + intStringLen if postIndex < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF @@ -2541,7 +2533,7 @@ func (m *Metadata) UnmarshalVT(dAtA []byte) error { var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -2555,11 +2547,11 @@ func (m *Metadata) UnmarshalVT(dAtA []byte) error { } intStringLen := int(stringLen) if intStringLen < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } postIndex := iNdEx + intStringLen if postIndex < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF @@ -2573,7 +2565,7 @@ func (m *Metadata) UnmarshalVT(dAtA []byte) error { var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -2587,11 +2579,11 @@ func (m *Metadata) UnmarshalVT(dAtA []byte) error { } intStringLen := int(stringLen) if intStringLen < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } postIndex := iNdEx + intStringLen if postIndex < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF @@ -2605,7 +2597,7 @@ func (m *Metadata) UnmarshalVT(dAtA []byte) error { var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -2619,11 +2611,11 @@ func (m *Metadata) UnmarshalVT(dAtA []byte) error { } intStringLen := int(stringLen) if intStringLen < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } postIndex := iNdEx + intStringLen if postIndex < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF @@ -2637,7 +2629,7 @@ func (m *Metadata) UnmarshalVT(dAtA []byte) error { var v int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -2657,7 +2649,7 @@ func (m *Metadata) UnmarshalVT(dAtA []byte) error { var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -2671,11 +2663,11 @@ func (m *Metadata) UnmarshalVT(dAtA []byte) error { } intStringLen := int(stringLen) if intStringLen < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } postIndex := iNdEx + intStringLen if postIndex < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF @@ -2689,7 +2681,7 @@ func (m *Metadata) UnmarshalVT(dAtA []byte) error { var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -2703,11 +2695,11 @@ func (m *Metadata) UnmarshalVT(dAtA []byte) error { } intStringLen := int(stringLen) if intStringLen < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } postIndex := iNdEx + intStringLen if postIndex < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF @@ -2721,7 +2713,7 @@ func (m *Metadata) UnmarshalVT(dAtA []byte) error { m.Start = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -2740,7 +2732,7 @@ func (m *Metadata) UnmarshalVT(dAtA []byte) error { m.End = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -2759,7 +2751,7 @@ func (m *Metadata) UnmarshalVT(dAtA []byte) error { m.Size = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -2778,7 +2770,7 @@ func (m *Metadata) UnmarshalVT(dAtA []byte) error { var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -2792,11 +2784,11 @@ func (m *Metadata) UnmarshalVT(dAtA []byte) error { } intStringLen := int(stringLen) if intStringLen < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } postIndex := iNdEx + intStringLen if postIndex < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF @@ -2810,7 +2802,7 @@ func (m *Metadata) UnmarshalVT(dAtA []byte) error { var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -2824,11 +2816,11 @@ func (m *Metadata) UnmarshalVT(dAtA []byte) error { } intStringLen := int(stringLen) if intStringLen < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } postIndex := iNdEx + intStringLen if postIndex < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF @@ -2837,12 +2829,12 @@ func (m *Metadata) UnmarshalVT(dAtA []byte) error { iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skip(dAtA[iNdEx:]) + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF @@ -2865,7 +2857,7 @@ func (m *SecurityProfile) UnmarshalVT(dAtA []byte) error { var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -2893,7 +2885,7 @@ func (m *SecurityProfile) UnmarshalVT(dAtA []byte) error { m.Status = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -2912,7 +2904,7 @@ func (m *SecurityProfile) UnmarshalVT(dAtA []byte) error { var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -2926,11 +2918,11 @@ func (m *SecurityProfile) UnmarshalVT(dAtA []byte) error { } intStringLen := int(stringLen) if intStringLen < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } postIndex := iNdEx + intStringLen if postIndex < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF @@ -2944,7 +2936,7 @@ func (m *SecurityProfile) UnmarshalVT(dAtA []byte) error { var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -2957,11 +2949,11 @@ func (m *SecurityProfile) UnmarshalVT(dAtA []byte) error { } } if msglen < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } postIndex := iNdEx + msglen if postIndex < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF @@ -2980,7 +2972,7 @@ func (m *SecurityProfile) UnmarshalVT(dAtA []byte) error { var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -2994,11 +2986,11 @@ func (m *SecurityProfile) UnmarshalVT(dAtA []byte) error { } intStringLen := int(stringLen) if intStringLen < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } postIndex := iNdEx + intStringLen if postIndex < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF @@ -3010,7 +3002,7 @@ func (m *SecurityProfile) UnmarshalVT(dAtA []byte) error { var v uint32 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -3027,7 +3019,7 @@ func (m *SecurityProfile) UnmarshalVT(dAtA []byte) error { var packedLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -3040,11 +3032,11 @@ func (m *SecurityProfile) UnmarshalVT(dAtA []byte) error { } } if packedLen < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } postIndex := iNdEx + packedLen if postIndex < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF @@ -3064,7 +3056,7 @@ func (m *SecurityProfile) UnmarshalVT(dAtA []byte) error { var v uint32 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -3088,7 +3080,7 @@ func (m *SecurityProfile) UnmarshalVT(dAtA []byte) error { var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -3101,11 +3093,11 @@ func (m *SecurityProfile) UnmarshalVT(dAtA []byte) error { } } if msglen < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } postIndex := iNdEx + msglen if postIndex < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF @@ -3117,12 +3109,12 @@ func (m *SecurityProfile) UnmarshalVT(dAtA []byte) error { iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skip(dAtA[iNdEx:]) + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF @@ -3145,7 +3137,7 @@ func (m *ProcessActivityNode) UnmarshalVT(dAtA []byte) error { var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -3173,7 +3165,7 @@ func (m *ProcessActivityNode) UnmarshalVT(dAtA []byte) error { var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -3186,11 +3178,11 @@ func (m *ProcessActivityNode) UnmarshalVT(dAtA []byte) error { } } if msglen < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } postIndex := iNdEx + msglen if postIndex < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF @@ -3209,7 +3201,7 @@ func (m *ProcessActivityNode) UnmarshalVT(dAtA []byte) error { var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -3222,11 +3214,11 @@ func (m *ProcessActivityNode) UnmarshalVT(dAtA []byte) error { } } if msglen < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } postIndex := iNdEx + msglen if postIndex < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF @@ -3250,7 +3242,7 @@ func (m *ProcessActivityNode) UnmarshalVT(dAtA []byte) error { var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -3263,11 +3255,11 @@ func (m *ProcessActivityNode) UnmarshalVT(dAtA []byte) error { } } if msglen < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } postIndex := iNdEx + msglen if postIndex < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF @@ -3291,7 +3283,7 @@ func (m *ProcessActivityNode) UnmarshalVT(dAtA []byte) error { var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -3304,11 +3296,11 @@ func (m *ProcessActivityNode) UnmarshalVT(dAtA []byte) error { } } if msglen < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } postIndex := iNdEx + msglen if postIndex < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF @@ -3332,7 +3324,7 @@ func (m *ProcessActivityNode) UnmarshalVT(dAtA []byte) error { var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -3345,11 +3337,11 @@ func (m *ProcessActivityNode) UnmarshalVT(dAtA []byte) error { } } if msglen < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } postIndex := iNdEx + msglen if postIndex < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF @@ -3371,7 +3363,7 @@ func (m *ProcessActivityNode) UnmarshalVT(dAtA []byte) error { var v uint32 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -3388,7 +3380,7 @@ func (m *ProcessActivityNode) UnmarshalVT(dAtA []byte) error { var packedLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -3401,11 +3393,11 @@ func (m *ProcessActivityNode) UnmarshalVT(dAtA []byte) error { } } if packedLen < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } postIndex := iNdEx + packedLen if postIndex < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF @@ -3425,7 +3417,7 @@ func (m *ProcessActivityNode) UnmarshalVT(dAtA []byte) error { var v uint32 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -3449,7 +3441,7 @@ func (m *ProcessActivityNode) UnmarshalVT(dAtA []byte) error { m.GenerationType = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -3468,7 +3460,7 @@ func (m *ProcessActivityNode) UnmarshalVT(dAtA []byte) error { var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -3481,11 +3473,11 @@ func (m *ProcessActivityNode) UnmarshalVT(dAtA []byte) error { } } if msglen < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } postIndex := iNdEx + msglen if postIndex < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF @@ -3504,12 +3496,12 @@ func (m *ProcessActivityNode) UnmarshalVT(dAtA []byte) error { iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skip(dAtA[iNdEx:]) + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF @@ -3532,7 +3524,7 @@ func (m *ProcessInfo) UnmarshalVT(dAtA []byte) error { var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -3560,7 +3552,7 @@ func (m *ProcessInfo) UnmarshalVT(dAtA []byte) error { m.Pid = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -3579,7 +3571,7 @@ func (m *ProcessInfo) UnmarshalVT(dAtA []byte) error { m.Tid = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -3598,7 +3590,7 @@ func (m *ProcessInfo) UnmarshalVT(dAtA []byte) error { m.Ppid = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -3617,7 +3609,7 @@ func (m *ProcessInfo) UnmarshalVT(dAtA []byte) error { m.Cookie = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -3636,7 +3628,7 @@ func (m *ProcessInfo) UnmarshalVT(dAtA []byte) error { var v int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -3656,7 +3648,7 @@ func (m *ProcessInfo) UnmarshalVT(dAtA []byte) error { var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -3669,11 +3661,11 @@ func (m *ProcessInfo) UnmarshalVT(dAtA []byte) error { } } if msglen < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } postIndex := iNdEx + msglen if postIndex < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF @@ -3692,7 +3684,7 @@ func (m *ProcessInfo) UnmarshalVT(dAtA []byte) error { var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -3706,11 +3698,11 @@ func (m *ProcessInfo) UnmarshalVT(dAtA []byte) error { } intStringLen := int(stringLen) if intStringLen < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } postIndex := iNdEx + intStringLen if postIndex < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF @@ -3724,7 +3716,7 @@ func (m *ProcessInfo) UnmarshalVT(dAtA []byte) error { m.SpanId = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -3743,7 +3735,7 @@ func (m *ProcessInfo) UnmarshalVT(dAtA []byte) error { m.TraceId = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -3762,7 +3754,7 @@ func (m *ProcessInfo) UnmarshalVT(dAtA []byte) error { var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -3776,11 +3768,11 @@ func (m *ProcessInfo) UnmarshalVT(dAtA []byte) error { } intStringLen := int(stringLen) if intStringLen < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } postIndex := iNdEx + intStringLen if postIndex < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF @@ -3794,7 +3786,7 @@ func (m *ProcessInfo) UnmarshalVT(dAtA []byte) error { var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -3808,11 +3800,11 @@ func (m *ProcessInfo) UnmarshalVT(dAtA []byte) error { } intStringLen := int(stringLen) if intStringLen < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } postIndex := iNdEx + intStringLen if postIndex < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF @@ -3826,7 +3818,7 @@ func (m *ProcessInfo) UnmarshalVT(dAtA []byte) error { m.ForkTime = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -3845,7 +3837,7 @@ func (m *ProcessInfo) UnmarshalVT(dAtA []byte) error { m.ExitTime = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -3864,7 +3856,7 @@ func (m *ProcessInfo) UnmarshalVT(dAtA []byte) error { m.ExecTime = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -3883,7 +3875,7 @@ func (m *ProcessInfo) UnmarshalVT(dAtA []byte) error { var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -3896,11 +3888,11 @@ func (m *ProcessInfo) UnmarshalVT(dAtA []byte) error { } } if msglen < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } postIndex := iNdEx + msglen if postIndex < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF @@ -3919,7 +3911,7 @@ func (m *ProcessInfo) UnmarshalVT(dAtA []byte) error { var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -3933,11 +3925,11 @@ func (m *ProcessInfo) UnmarshalVT(dAtA []byte) error { } intStringLen := int(stringLen) if intStringLen < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } postIndex := iNdEx + intStringLen if postIndex < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF @@ -3951,7 +3943,7 @@ func (m *ProcessInfo) UnmarshalVT(dAtA []byte) error { var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -3965,11 +3957,11 @@ func (m *ProcessInfo) UnmarshalVT(dAtA []byte) error { } intStringLen := int(stringLen) if intStringLen < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } postIndex := iNdEx + intStringLen if postIndex < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF @@ -3983,7 +3975,7 @@ func (m *ProcessInfo) UnmarshalVT(dAtA []byte) error { var v int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -4003,7 +3995,7 @@ func (m *ProcessInfo) UnmarshalVT(dAtA []byte) error { var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -4017,11 +4009,11 @@ func (m *ProcessInfo) UnmarshalVT(dAtA []byte) error { } intStringLen := int(stringLen) if intStringLen < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } postIndex := iNdEx + intStringLen if postIndex < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF @@ -4035,7 +4027,7 @@ func (m *ProcessInfo) UnmarshalVT(dAtA []byte) error { var v int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -4055,7 +4047,7 @@ func (m *ProcessInfo) UnmarshalVT(dAtA []byte) error { var v int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -4075,7 +4067,7 @@ func (m *ProcessInfo) UnmarshalVT(dAtA []byte) error { m.Cookie64 = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -4089,12 +4081,12 @@ func (m *ProcessInfo) UnmarshalVT(dAtA []byte) error { } default: iNdEx = preIndex - skippy, err := skip(dAtA[iNdEx:]) + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF @@ -4117,7 +4109,7 @@ func (m *FileActivityNode) UnmarshalVT(dAtA []byte) error { var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -4145,7 +4137,7 @@ func (m *FileActivityNode) UnmarshalVT(dAtA []byte) error { var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -4159,11 +4151,11 @@ func (m *FileActivityNode) UnmarshalVT(dAtA []byte) error { } intStringLen := int(stringLen) if intStringLen < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } postIndex := iNdEx + intStringLen if postIndex < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF @@ -4177,7 +4169,7 @@ func (m *FileActivityNode) UnmarshalVT(dAtA []byte) error { var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -4190,11 +4182,11 @@ func (m *FileActivityNode) UnmarshalVT(dAtA []byte) error { } } if msglen < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } postIndex := iNdEx + msglen if postIndex < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF @@ -4213,7 +4205,7 @@ func (m *FileActivityNode) UnmarshalVT(dAtA []byte) error { m.FirstSeen = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -4232,7 +4224,7 @@ func (m *FileActivityNode) UnmarshalVT(dAtA []byte) error { var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -4245,11 +4237,11 @@ func (m *FileActivityNode) UnmarshalVT(dAtA []byte) error { } } if msglen < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } postIndex := iNdEx + msglen if postIndex < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF @@ -4268,7 +4260,7 @@ func (m *FileActivityNode) UnmarshalVT(dAtA []byte) error { var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -4281,11 +4273,11 @@ func (m *FileActivityNode) UnmarshalVT(dAtA []byte) error { } } if msglen < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } postIndex := iNdEx + msglen if postIndex < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF @@ -4309,7 +4301,7 @@ func (m *FileActivityNode) UnmarshalVT(dAtA []byte) error { var v int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -4329,7 +4321,7 @@ func (m *FileActivityNode) UnmarshalVT(dAtA []byte) error { m.GenerationType = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -4348,7 +4340,7 @@ func (m *FileActivityNode) UnmarshalVT(dAtA []byte) error { var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -4361,11 +4353,11 @@ func (m *FileActivityNode) UnmarshalVT(dAtA []byte) error { } } if msglen < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } postIndex := iNdEx + msglen if postIndex < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF @@ -4384,12 +4376,12 @@ func (m *FileActivityNode) UnmarshalVT(dAtA []byte) error { iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skip(dAtA[iNdEx:]) + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF @@ -4412,7 +4404,7 @@ func (m *OpenNode) UnmarshalVT(dAtA []byte) error { var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -4440,7 +4432,7 @@ func (m *OpenNode) UnmarshalVT(dAtA []byte) error { var v uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -4461,7 +4453,7 @@ func (m *OpenNode) UnmarshalVT(dAtA []byte) error { m.Flags = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -4480,7 +4472,7 @@ func (m *OpenNode) UnmarshalVT(dAtA []byte) error { m.Mode = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -4494,12 +4486,12 @@ func (m *OpenNode) UnmarshalVT(dAtA []byte) error { } default: iNdEx = preIndex - skippy, err := skip(dAtA[iNdEx:]) + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF @@ -4522,7 +4514,7 @@ func (m *DNSNode) UnmarshalVT(dAtA []byte) error { var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -4550,7 +4542,7 @@ func (m *DNSNode) UnmarshalVT(dAtA []byte) error { var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -4563,11 +4555,11 @@ func (m *DNSNode) UnmarshalVT(dAtA []byte) error { } } if msglen < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } postIndex := iNdEx + msglen if postIndex < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF @@ -4584,7 +4576,7 @@ func (m *DNSNode) UnmarshalVT(dAtA []byte) error { var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -4597,11 +4589,11 @@ func (m *DNSNode) UnmarshalVT(dAtA []byte) error { } } if msglen < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } postIndex := iNdEx + msglen if postIndex < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF @@ -4613,12 +4605,12 @@ func (m *DNSNode) UnmarshalVT(dAtA []byte) error { iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skip(dAtA[iNdEx:]) + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF @@ -4641,7 +4633,7 @@ func (m *DNSInfo) UnmarshalVT(dAtA []byte) error { var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -4669,7 +4661,7 @@ func (m *DNSInfo) UnmarshalVT(dAtA []byte) error { var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -4683,11 +4675,11 @@ func (m *DNSInfo) UnmarshalVT(dAtA []byte) error { } intStringLen := int(stringLen) if intStringLen < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } postIndex := iNdEx + intStringLen if postIndex < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF @@ -4701,7 +4693,7 @@ func (m *DNSInfo) UnmarshalVT(dAtA []byte) error { m.Type = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -4720,7 +4712,7 @@ func (m *DNSInfo) UnmarshalVT(dAtA []byte) error { m.Class = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -4739,7 +4731,7 @@ func (m *DNSInfo) UnmarshalVT(dAtA []byte) error { m.Size = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -4758,7 +4750,7 @@ func (m *DNSInfo) UnmarshalVT(dAtA []byte) error { m.Count = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -4772,12 +4764,12 @@ func (m *DNSInfo) UnmarshalVT(dAtA []byte) error { } default: iNdEx = preIndex - skippy, err := skip(dAtA[iNdEx:]) + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF @@ -4800,7 +4792,7 @@ func (m *FileInfo) UnmarshalVT(dAtA []byte) error { var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -4828,7 +4820,7 @@ func (m *FileInfo) UnmarshalVT(dAtA []byte) error { m.Uid = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -4847,7 +4839,7 @@ func (m *FileInfo) UnmarshalVT(dAtA []byte) error { var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -4861,11 +4853,11 @@ func (m *FileInfo) UnmarshalVT(dAtA []byte) error { } intStringLen := int(stringLen) if intStringLen < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } postIndex := iNdEx + intStringLen if postIndex < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF @@ -4879,7 +4871,7 @@ func (m *FileInfo) UnmarshalVT(dAtA []byte) error { m.Gid = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -4898,7 +4890,7 @@ func (m *FileInfo) UnmarshalVT(dAtA []byte) error { var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -4912,11 +4904,11 @@ func (m *FileInfo) UnmarshalVT(dAtA []byte) error { } intStringLen := int(stringLen) if intStringLen < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } postIndex := iNdEx + intStringLen if postIndex < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF @@ -4930,7 +4922,7 @@ func (m *FileInfo) UnmarshalVT(dAtA []byte) error { m.Mode = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -4949,7 +4941,7 @@ func (m *FileInfo) UnmarshalVT(dAtA []byte) error { m.Ctime = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -4968,7 +4960,7 @@ func (m *FileInfo) UnmarshalVT(dAtA []byte) error { m.Mtime = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -4987,7 +4979,7 @@ func (m *FileInfo) UnmarshalVT(dAtA []byte) error { m.MountId = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -5006,7 +4998,7 @@ func (m *FileInfo) UnmarshalVT(dAtA []byte) error { m.Inode = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -5025,7 +5017,7 @@ func (m *FileInfo) UnmarshalVT(dAtA []byte) error { var v int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -5045,7 +5037,7 @@ func (m *FileInfo) UnmarshalVT(dAtA []byte) error { var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -5059,11 +5051,11 @@ func (m *FileInfo) UnmarshalVT(dAtA []byte) error { } intStringLen := int(stringLen) if intStringLen < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } postIndex := iNdEx + intStringLen if postIndex < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF @@ -5077,7 +5069,7 @@ func (m *FileInfo) UnmarshalVT(dAtA []byte) error { var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -5091,11 +5083,11 @@ func (m *FileInfo) UnmarshalVT(dAtA []byte) error { } intStringLen := int(stringLen) if intStringLen < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } postIndex := iNdEx + intStringLen if postIndex < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF @@ -5109,7 +5101,7 @@ func (m *FileInfo) UnmarshalVT(dAtA []byte) error { var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -5123,11 +5115,11 @@ func (m *FileInfo) UnmarshalVT(dAtA []byte) error { } intStringLen := int(stringLen) if intStringLen < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } postIndex := iNdEx + intStringLen if postIndex < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF @@ -5141,7 +5133,7 @@ func (m *FileInfo) UnmarshalVT(dAtA []byte) error { var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -5155,11 +5147,11 @@ func (m *FileInfo) UnmarshalVT(dAtA []byte) error { } intStringLen := int(stringLen) if intStringLen < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } postIndex := iNdEx + intStringLen if postIndex < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF @@ -5173,7 +5165,7 @@ func (m *FileInfo) UnmarshalVT(dAtA []byte) error { var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -5187,11 +5179,11 @@ func (m *FileInfo) UnmarshalVT(dAtA []byte) error { } intStringLen := int(stringLen) if intStringLen < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } postIndex := iNdEx + intStringLen if postIndex < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF @@ -5205,7 +5197,7 @@ func (m *FileInfo) UnmarshalVT(dAtA []byte) error { var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -5219,11 +5211,11 @@ func (m *FileInfo) UnmarshalVT(dAtA []byte) error { } intStringLen := int(stringLen) if intStringLen < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } postIndex := iNdEx + intStringLen if postIndex < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF @@ -5237,7 +5229,7 @@ func (m *FileInfo) UnmarshalVT(dAtA []byte) error { var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -5251,11 +5243,11 @@ func (m *FileInfo) UnmarshalVT(dAtA []byte) error { } intStringLen := int(stringLen) if intStringLen < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } postIndex := iNdEx + intStringLen if postIndex < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF @@ -5269,7 +5261,7 @@ func (m *FileInfo) UnmarshalVT(dAtA []byte) error { m.HashState = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -5283,12 +5275,12 @@ func (m *FileInfo) UnmarshalVT(dAtA []byte) error { } default: iNdEx = preIndex - skippy, err := skip(dAtA[iNdEx:]) + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF @@ -5311,7 +5303,7 @@ func (m *Credentials) UnmarshalVT(dAtA []byte) error { var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -5339,7 +5331,7 @@ func (m *Credentials) UnmarshalVT(dAtA []byte) error { m.Uid = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -5358,7 +5350,7 @@ func (m *Credentials) UnmarshalVT(dAtA []byte) error { m.Gid = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -5377,7 +5369,7 @@ func (m *Credentials) UnmarshalVT(dAtA []byte) error { var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -5391,11 +5383,11 @@ func (m *Credentials) UnmarshalVT(dAtA []byte) error { } intStringLen := int(stringLen) if intStringLen < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } postIndex := iNdEx + intStringLen if postIndex < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF @@ -5409,7 +5401,7 @@ func (m *Credentials) UnmarshalVT(dAtA []byte) error { var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -5423,11 +5415,11 @@ func (m *Credentials) UnmarshalVT(dAtA []byte) error { } intStringLen := int(stringLen) if intStringLen < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } postIndex := iNdEx + intStringLen if postIndex < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF @@ -5441,7 +5433,7 @@ func (m *Credentials) UnmarshalVT(dAtA []byte) error { m.EffectiveUid = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -5460,7 +5452,7 @@ func (m *Credentials) UnmarshalVT(dAtA []byte) error { m.EffectiveGid = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -5479,7 +5471,7 @@ func (m *Credentials) UnmarshalVT(dAtA []byte) error { var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -5493,11 +5485,11 @@ func (m *Credentials) UnmarshalVT(dAtA []byte) error { } intStringLen := int(stringLen) if intStringLen < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } postIndex := iNdEx + intStringLen if postIndex < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF @@ -5511,7 +5503,7 @@ func (m *Credentials) UnmarshalVT(dAtA []byte) error { var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -5525,11 +5517,11 @@ func (m *Credentials) UnmarshalVT(dAtA []byte) error { } intStringLen := int(stringLen) if intStringLen < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } postIndex := iNdEx + intStringLen if postIndex < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF @@ -5543,7 +5535,7 @@ func (m *Credentials) UnmarshalVT(dAtA []byte) error { m.FsUid = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -5562,7 +5554,7 @@ func (m *Credentials) UnmarshalVT(dAtA []byte) error { m.FsGid = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -5581,7 +5573,7 @@ func (m *Credentials) UnmarshalVT(dAtA []byte) error { var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -5595,11 +5587,11 @@ func (m *Credentials) UnmarshalVT(dAtA []byte) error { } intStringLen := int(stringLen) if intStringLen < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } postIndex := iNdEx + intStringLen if postIndex < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF @@ -5613,7 +5605,7 @@ func (m *Credentials) UnmarshalVT(dAtA []byte) error { var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -5627,11 +5619,11 @@ func (m *Credentials) UnmarshalVT(dAtA []byte) error { } intStringLen := int(stringLen) if intStringLen < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } postIndex := iNdEx + intStringLen if postIndex < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF @@ -5645,7 +5637,7 @@ func (m *Credentials) UnmarshalVT(dAtA []byte) error { m.CapEffective = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -5664,7 +5656,7 @@ func (m *Credentials) UnmarshalVT(dAtA []byte) error { m.CapPermitted = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -5678,12 +5670,12 @@ func (m *Credentials) UnmarshalVT(dAtA []byte) error { } default: iNdEx = preIndex - skippy, err := skip(dAtA[iNdEx:]) + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF @@ -5706,7 +5698,7 @@ func (m *SocketNode) UnmarshalVT(dAtA []byte) error { var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -5734,7 +5726,7 @@ func (m *SocketNode) UnmarshalVT(dAtA []byte) error { var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -5748,11 +5740,11 @@ func (m *SocketNode) UnmarshalVT(dAtA []byte) error { } intStringLen := int(stringLen) if intStringLen < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } postIndex := iNdEx + intStringLen if postIndex < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF @@ -5766,7 +5758,7 @@ func (m *SocketNode) UnmarshalVT(dAtA []byte) error { var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -5779,11 +5771,11 @@ func (m *SocketNode) UnmarshalVT(dAtA []byte) error { } } if msglen < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } postIndex := iNdEx + msglen if postIndex < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF @@ -5795,12 +5787,12 @@ func (m *SocketNode) UnmarshalVT(dAtA []byte) error { iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skip(dAtA[iNdEx:]) + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF @@ -5823,7 +5815,7 @@ func (m *BindNode) UnmarshalVT(dAtA []byte) error { var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -5851,7 +5843,7 @@ func (m *BindNode) UnmarshalVT(dAtA []byte) error { m.Port = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -5870,7 +5862,7 @@ func (m *BindNode) UnmarshalVT(dAtA []byte) error { var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -5884,11 +5876,11 @@ func (m *BindNode) UnmarshalVT(dAtA []byte) error { } intStringLen := int(stringLen) if intStringLen < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } postIndex := iNdEx + intStringLen if postIndex < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF @@ -5902,7 +5894,7 @@ func (m *BindNode) UnmarshalVT(dAtA []byte) error { var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -5915,11 +5907,11 @@ func (m *BindNode) UnmarshalVT(dAtA []byte) error { } } if msglen < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } postIndex := iNdEx + msglen if postIndex < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF @@ -5931,12 +5923,12 @@ func (m *BindNode) UnmarshalVT(dAtA []byte) error { iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skip(dAtA[iNdEx:]) + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF @@ -5959,7 +5951,7 @@ func (m *MatchedRule) UnmarshalVT(dAtA []byte) error { var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -5987,7 +5979,7 @@ func (m *MatchedRule) UnmarshalVT(dAtA []byte) error { var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -6001,11 +5993,11 @@ func (m *MatchedRule) UnmarshalVT(dAtA []byte) error { } intStringLen := int(stringLen) if intStringLen < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } postIndex := iNdEx + intStringLen if postIndex < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF @@ -6019,7 +6011,7 @@ func (m *MatchedRule) UnmarshalVT(dAtA []byte) error { var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -6033,11 +6025,11 @@ func (m *MatchedRule) UnmarshalVT(dAtA []byte) error { } intStringLen := int(stringLen) if intStringLen < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } postIndex := iNdEx + intStringLen if postIndex < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF @@ -6051,7 +6043,7 @@ func (m *MatchedRule) UnmarshalVT(dAtA []byte) error { var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -6065,11 +6057,11 @@ func (m *MatchedRule) UnmarshalVT(dAtA []byte) error { } intStringLen := int(stringLen) if intStringLen < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } postIndex := iNdEx + intStringLen if postIndex < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF @@ -6083,7 +6075,7 @@ func (m *MatchedRule) UnmarshalVT(dAtA []byte) error { var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -6097,11 +6089,11 @@ func (m *MatchedRule) UnmarshalVT(dAtA []byte) error { } intStringLen := int(stringLen) if intStringLen < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } postIndex := iNdEx + intStringLen if postIndex < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF @@ -6115,7 +6107,7 @@ func (m *MatchedRule) UnmarshalVT(dAtA []byte) error { var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -6128,11 +6120,11 @@ func (m *MatchedRule) UnmarshalVT(dAtA []byte) error { } } if msglen < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } postIndex := iNdEx + msglen if postIndex < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF @@ -6147,7 +6139,7 @@ func (m *MatchedRule) UnmarshalVT(dAtA []byte) error { var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -6164,7 +6156,7 @@ func (m *MatchedRule) UnmarshalVT(dAtA []byte) error { var stringLenmapkey uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -6178,11 +6170,11 @@ func (m *MatchedRule) UnmarshalVT(dAtA []byte) error { } intStringLenmapkey := int(stringLenmapkey) if intStringLenmapkey < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } postStringIndexmapkey := iNdEx + intStringLenmapkey if postStringIndexmapkey < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if postStringIndexmapkey > l { return io.ErrUnexpectedEOF @@ -6193,7 +6185,7 @@ func (m *MatchedRule) UnmarshalVT(dAtA []byte) error { var stringLenmapvalue uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflow + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -6207,11 +6199,11 @@ func (m *MatchedRule) UnmarshalVT(dAtA []byte) error { } intStringLenmapvalue := int(stringLenmapvalue) if intStringLenmapvalue < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } postStringIndexmapvalue := iNdEx + intStringLenmapvalue if postStringIndexmapvalue < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if postStringIndexmapvalue > l { return io.ErrUnexpectedEOF @@ -6220,12 +6212,12 @@ func (m *MatchedRule) UnmarshalVT(dAtA []byte) error { iNdEx = postStringIndexmapvalue } else { iNdEx = entryPreIndex - skippy, err := skip(dAtA[iNdEx:]) + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if (iNdEx + skippy) > postIndex { return io.ErrUnexpectedEOF @@ -6237,12 +6229,12 @@ func (m *MatchedRule) UnmarshalVT(dAtA []byte) error { iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skip(dAtA[iNdEx:]) + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLength + return protohelpers.ErrInvalidLength } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF @@ -6257,88 +6249,3 @@ func (m *MatchedRule) UnmarshalVT(dAtA []byte) error { } return nil } - -func skip(dAtA []byte) (n int, err error) { - l := len(dAtA) - iNdEx := 0 - depth := 0 - for iNdEx < l { - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflow - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - wireType := int(wire & 0x7) - switch wireType { - case 0: - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflow - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - iNdEx++ - if dAtA[iNdEx-1] < 0x80 { - break - } - } - case 1: - iNdEx += 8 - case 2: - var length int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflow - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - length |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if length < 0 { - return 0, ErrInvalidLength - } - iNdEx += length - case 3: - depth++ - case 4: - if depth == 0 { - return 0, ErrUnexpectedEndOfGroup - } - depth-- - case 5: - iNdEx += 4 - default: - return 0, fmt.Errorf("proto: illegal wireType %d", wireType) - } - if iNdEx < 0 { - return 0, ErrInvalidLength - } - if depth == 0 { - return iNdEx, nil - } - } - return 0, io.ErrUnexpectedEOF -} - -var ( - ErrInvalidLength = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflow = fmt.Errorf("proto: integer overflow") - ErrUnexpectedEndOfGroup = fmt.Errorf("proto: unexpected end of group") -) diff --git a/go.mod b/go.mod index 26e4d474..19429407 100644 --- a/go.mod +++ b/go.mod @@ -7,14 +7,16 @@ require ( github.com/DataDog/zstd v1.4.8 github.com/DataDog/zstd_0 v0.0.0-20210310093942-586c1286621f github.com/gogo/protobuf v1.3.2 - github.com/golang/protobuf v1.5.0 - github.com/stretchr/testify v1.3.0 - google.golang.org/protobuf v1.28.1 + github.com/golang/protobuf v1.5.3 + github.com/planetscale/vtprotobuf v0.6.0 + github.com/stretchr/testify v1.8.4 + google.golang.org/protobuf v1.31.0 ) require ( github.com/davecgh/go-spew v1.1.1 // indirect github.com/pmezard/go-difflib v1.0.0 // indirect + gopkg.in/yaml.v3 v3.0.1 // indirect ) retract v5.0.59 // Was accidentally deployed in place of v5.0.49 diff --git a/go.sum b/go.sum index 987fb54c..6da19ff5 100644 --- a/go.sum +++ b/go.sum @@ -4,22 +4,23 @@ github.com/DataDog/zstd v1.4.8 h1:Rpmta4xZ/MgZnriKNd24iZMhGpP5dvUcs/uqfBapKZY= github.com/DataDog/zstd v1.4.8/go.mod h1:g4AWEaM3yOg3HYfnJ3YIawPnVdXJh9QME85blwSAmyw= github.com/DataDog/zstd_0 v0.0.0-20210310093942-586c1286621f h1:5Vuo4niPKFkfwW55jV4vY0ih3VQ9RaQqeqY67fvRn8A= github.com/DataDog/zstd_0 v0.0.0-20210310093942-586c1286621f/go.mod h1:oXfOhM/Kr8OvqS6tVqJwxPBornV0yrx3bc+l0BDr7PQ= -github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/gogo/protobuf v1.3.2 h1:Ov1cvc58UF3b5XjBnZv7+opcTcQFZebYjWzi34vdm4Q= github.com/gogo/protobuf v1.3.2/go.mod h1:P1XiOD3dCwIKUDQYPy72D8LYyHL2YPYrpS2s69NZV8Q= -github.com/golang/protobuf v1.5.0 h1:LUVKkCeviFUMKqHa4tXIIij/lbhnMbP7Fn5wKdKkRh4= github.com/golang/protobuf v1.5.0/go.mod h1:FsONVRAS9T7sI+LIUmWTfcYkHO4aIWwzhcaSAoJOfIk= +github.com/golang/protobuf v1.5.3 h1:KhyjKVUg7Usr/dYsdSqoFveMYd5ko72D+zANwlG1mmg= +github.com/golang/protobuf v1.5.3/go.mod h1:XVQd3VNwM+JqD3oG2Ue2ip4fOMUkwXdXDdiuN0vRsmY= github.com/google/go-cmp v0.5.5 h1:Khx7svrCpmxxtHBq5j2mp/xVjsi8hQMfNLvJFAlrGgU= github.com/google/go-cmp v0.5.5/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/kisielk/errcheck v1.5.0/go.mod h1:pFxgyoBC7bSaBwPgfKdkLd5X25qrDl4LWUI2bnpBCr8= github.com/kisielk/gotool v1.0.0/go.mod h1:XhKaO+MFFWcvkIS/tQcRk01m1F5IRFswLeQ+oQHNcck= +github.com/planetscale/vtprotobuf v0.6.0 h1:nBeETjudeJ5ZgBHUz1fVHvbqUKnYOXNhsIEabROxmNA= +github.com/planetscale/vtprotobuf v0.6.0/go.mod h1:t/avpk3KcrXxUnYOhZhMXJlSEyie6gQbtLq5NM3loB8= github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= -github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= -github.com/stretchr/testify v1.3.0 h1:TivCn/peBQ7UY8ooIcPgZFpTNSz0Q2U6UrFlUfqbe0Q= -github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI= +github.com/stretchr/testify v1.8.4 h1:CcVxjf3Q8PM0mHUKJCdn+eZZtm5yQwehR5yeSVQQcUk= +github.com/stretchr/testify v1.8.4/go.mod h1:sz/lmYIOXD/1dqDmKjjqLyZ2RngseejIcXlSw2iwfAo= github.com/yuin/goldmark v1.1.27/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= github.com/yuin/goldmark v1.2.1/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= @@ -49,5 +50,10 @@ golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8T golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1 h1:go1bK/D/BFZV2I8cIQd1NKEZ+0owSTG1fDTci4IqFcE= golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= google.golang.org/protobuf v1.26.0-rc.1/go.mod h1:jlhhOSvTdKEhbULTjvd4ARK9grFBp09yW+WbY/TyQbw= -google.golang.org/protobuf v1.28.1 h1:d0NfwRgPtno5B1Wa6L2DAG+KivqkdutMf1UhdNx175w= -google.golang.org/protobuf v1.28.1/go.mod h1:HV8QOd/L58Z+nl8r43ehVNZIU/HEI6OcFqwMG9pJV4I= +google.golang.org/protobuf v1.26.0/go.mod h1:9q0QmTI4eRPtz6boOQmLYwt+qCgq0jsYwAQnmE0givc= +google.golang.org/protobuf v1.31.0 h1:g0LDEJHgrBl9N9r17Ru3sqWhkIx2NB67okBHPwC7hs8= +google.golang.org/protobuf v1.31.0/go.mod h1:HV8QOd/L58Z+nl8r43ehVNZIU/HEI6OcFqwMG9pJV4I= +gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM= +gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= +gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA= +gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=