From 29d945c27924cfd3c6d3f2724fa280f36158e496 Mon Sep 17 00:00:00 2001 From: c00416947 Date: Tue, 24 Apr 2018 17:25:29 +0800 Subject: [PATCH] grpc :[RPC]Add the StatsContainer api for `events cli` Add `StatsContainer` API to display container events Fixes: #221 Signed-off-by: c00416947 --- grpc.go | 28 + protocols/grpc/agent.pb.go | 5511 ++++++++++++++++++++++++------- protocols/grpc/agent.proto | 82 + protocols/grpc/health.pb.go | 36 +- protocols/grpc/healthpb_test.go | 155 +- protocols/grpc/oci.pb.go | 310 +- protocols/grpc/ocipb_test.go | 1555 ++++----- 7 files changed, 5649 insertions(+), 2028 deletions(-) diff --git a/grpc.go b/grpc.go index 0011cfc36d..6e92b766ea 100644 --- a/grpc.go +++ b/grpc.go @@ -718,6 +718,34 @@ func (a *agentGRPC) ListProcesses(ctx context.Context, req *pb.ListProcessesRequ return resp, nil } +func (a *agentGRPC) StatsContainer(ctx context.Context, req *pb.StatsContainerRequest) (*pb.StatsContainerResponse, error){ + c, err := a.sandbox.getContainer(req.ContainerId) + if err != nil { + return nil, err + } + + stats ,err := c.container.Stats() + if err != nil { + return nil ,err + } + + data,err := json.Marshal(stats.CgroupStats) + if err != nil { + return nil ,err + } + + var cgroupStats pb.CgroupStats + err = json.Unmarshal(data,&cgroupStats) + if err != nil { + return nil,err + } + resp := &pb.StatsContainerResponse{ + CgroupStats:&cgroupStats, + } + + return resp, nil +} + func (a *agentGRPC) RemoveContainer(ctx context.Context, req *pb.RemoveContainerRequest) (*gpb.Empty, error) { ctr, err := a.sandbox.getContainer(req.ContainerId) if err != nil { diff --git a/protocols/grpc/agent.pb.go b/protocols/grpc/agent.pb.go index d70011c1a2..e4f19879e5 100644 --- a/protocols/grpc/agent.pb.go +++ b/protocols/grpc/agent.pb.go @@ -19,6 +19,18 @@ WaitProcessResponse ListProcessesRequest ListProcessesResponse + StatsContainerRequest + CpuUsage + ThrottlingData + CpuStats + PidsStats + MemoryData + MemoryStats + BlkioStatsEntry + BlkioStats + HugetlbStats + CgroupStats + StatsContainerResponse WriteStreamRequest WriteStreamResponse ReadStreamRequest @@ -81,8 +93,10 @@ import fmt "fmt" import math "math" import google_protobuf2 "github.com/gogo/protobuf/types" -import context "golang.org/x/net/context" -import grpc1 "google.golang.org/grpc" +import ( + context "golang.org/x/net/context" + grpc1 "google.golang.org/grpc" +) import io "io" @@ -384,6 +398,446 @@ func (m *ListProcessesResponse) GetProcessList() []byte { return nil } +type StatsContainerRequest struct { + ContainerId string `protobuf:"bytes,1,opt,name=container_id,json=containerId,proto3" json:"container_id,omitempty"` +} + +func (m *StatsContainerRequest) Reset() { *m = StatsContainerRequest{} } +func (m *StatsContainerRequest) String() string { return proto.CompactTextString(m) } +func (*StatsContainerRequest) ProtoMessage() {} +func (*StatsContainerRequest) Descriptor() ([]byte, []int) { return fileDescriptorAgent, []int{9} } + +func (m *StatsContainerRequest) GetContainerId() string { + if m != nil { + return m.ContainerId + } + return "" +} + +type CpuUsage struct { + TotalUsage uint64 `protobuf:"varint,1,opt,name=total_usage,json=totalUsage,proto3" json:"total_usage,omitempty"` + PercpuUsage []uint64 `protobuf:"varint,2,rep,packed,name=percpu_usage,json=percpuUsage" json:"percpu_usage,omitempty"` + UsageInKernelmode uint64 `protobuf:"varint,3,opt,name=usage_in_kernelmode,json=usageInKernelmode,proto3" json:"usage_in_kernelmode,omitempty"` + UsageInUsermode uint64 `protobuf:"varint,4,opt,name=usage_in_usermode,json=usageInUsermode,proto3" json:"usage_in_usermode,omitempty"` +} + +func (m *CpuUsage) Reset() { *m = CpuUsage{} } +func (m *CpuUsage) String() string { return proto.CompactTextString(m) } +func (*CpuUsage) ProtoMessage() {} +func (*CpuUsage) Descriptor() ([]byte, []int) { return fileDescriptorAgent, []int{10} } + +func (m *CpuUsage) GetTotalUsage() uint64 { + if m != nil { + return m.TotalUsage + } + return 0 +} + +func (m *CpuUsage) GetPercpuUsage() []uint64 { + if m != nil { + return m.PercpuUsage + } + return nil +} + +func (m *CpuUsage) GetUsageInKernelmode() uint64 { + if m != nil { + return m.UsageInKernelmode + } + return 0 +} + +func (m *CpuUsage) GetUsageInUsermode() uint64 { + if m != nil { + return m.UsageInUsermode + } + return 0 +} + +type ThrottlingData struct { + Periods uint64 `protobuf:"varint,1,opt,name=periods,proto3" json:"periods,omitempty"` + ThrottledPeriods uint64 `protobuf:"varint,2,opt,name=throttled_periods,json=throttledPeriods,proto3" json:"throttled_periods,omitempty"` + ThrottledTime uint64 `protobuf:"varint,3,opt,name=throttled_time,json=throttledTime,proto3" json:"throttled_time,omitempty"` +} + +func (m *ThrottlingData) Reset() { *m = ThrottlingData{} } +func (m *ThrottlingData) String() string { return proto.CompactTextString(m) } +func (*ThrottlingData) ProtoMessage() {} +func (*ThrottlingData) Descriptor() ([]byte, []int) { return fileDescriptorAgent, []int{11} } + +func (m *ThrottlingData) GetPeriods() uint64 { + if m != nil { + return m.Periods + } + return 0 +} + +func (m *ThrottlingData) GetThrottledPeriods() uint64 { + if m != nil { + return m.ThrottledPeriods + } + return 0 +} + +func (m *ThrottlingData) GetThrottledTime() uint64 { + if m != nil { + return m.ThrottledTime + } + return 0 +} + +type CpuStats struct { + CpuUsage *CpuUsage `protobuf:"bytes,1,opt,name=cpu_usage,json=cpuUsage" json:"cpu_usage,omitempty"` + ThrottlingData *ThrottlingData `protobuf:"bytes,2,opt,name=throttling_data,json=throttlingData" json:"throttling_data,omitempty"` +} + +func (m *CpuStats) Reset() { *m = CpuStats{} } +func (m *CpuStats) String() string { return proto.CompactTextString(m) } +func (*CpuStats) ProtoMessage() {} +func (*CpuStats) Descriptor() ([]byte, []int) { return fileDescriptorAgent, []int{12} } + +func (m *CpuStats) GetCpuUsage() *CpuUsage { + if m != nil { + return m.CpuUsage + } + return nil +} + +func (m *CpuStats) GetThrottlingData() *ThrottlingData { + if m != nil { + return m.ThrottlingData + } + return nil +} + +type PidsStats struct { + Current uint64 `protobuf:"varint,1,opt,name=current,proto3" json:"current,omitempty"` + Limit uint64 `protobuf:"varint,2,opt,name=limit,proto3" json:"limit,omitempty"` +} + +func (m *PidsStats) Reset() { *m = PidsStats{} } +func (m *PidsStats) String() string { return proto.CompactTextString(m) } +func (*PidsStats) ProtoMessage() {} +func (*PidsStats) Descriptor() ([]byte, []int) { return fileDescriptorAgent, []int{13} } + +func (m *PidsStats) GetCurrent() uint64 { + if m != nil { + return m.Current + } + return 0 +} + +func (m *PidsStats) GetLimit() uint64 { + if m != nil { + return m.Limit + } + return 0 +} + +type MemoryData struct { + Usage uint64 `protobuf:"varint,1,opt,name=usage,proto3" json:"usage,omitempty"` + MaxUsage uint64 `protobuf:"varint,2,opt,name=max_usage,json=maxUsage,proto3" json:"max_usage,omitempty"` + Failcnt uint64 `protobuf:"varint,3,opt,name=failcnt,proto3" json:"failcnt,omitempty"` + Limit uint64 `protobuf:"varint,4,opt,name=limit,proto3" json:"limit,omitempty"` +} + +func (m *MemoryData) Reset() { *m = MemoryData{} } +func (m *MemoryData) String() string { return proto.CompactTextString(m) } +func (*MemoryData) ProtoMessage() {} +func (*MemoryData) Descriptor() ([]byte, []int) { return fileDescriptorAgent, []int{14} } + +func (m *MemoryData) GetUsage() uint64 { + if m != nil { + return m.Usage + } + return 0 +} + +func (m *MemoryData) GetMaxUsage() uint64 { + if m != nil { + return m.MaxUsage + } + return 0 +} + +func (m *MemoryData) GetFailcnt() uint64 { + if m != nil { + return m.Failcnt + } + return 0 +} + +func (m *MemoryData) GetLimit() uint64 { + if m != nil { + return m.Limit + } + return 0 +} + +type MemoryStats struct { + Cache uint64 `protobuf:"varint,1,opt,name=cache,proto3" json:"cache,omitempty"` + Usage *MemoryData `protobuf:"bytes,2,opt,name=usage" json:"usage,omitempty"` + SwapUsage *MemoryData `protobuf:"bytes,3,opt,name=swap_usage,json=swapUsage" json:"swap_usage,omitempty"` + KernelUsage *MemoryData `protobuf:"bytes,4,opt,name=kernel_usage,json=kernelUsage" json:"kernel_usage,omitempty"` + UseHierarchy bool `protobuf:"varint,5,opt,name=use_hierarchy,json=useHierarchy,proto3" json:"use_hierarchy,omitempty"` + Stats map[string]uint64 `protobuf:"bytes,6,rep,name=stats" json:"stats,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"varint,2,opt,name=value,proto3"` +} + +func (m *MemoryStats) Reset() { *m = MemoryStats{} } +func (m *MemoryStats) String() string { return proto.CompactTextString(m) } +func (*MemoryStats) ProtoMessage() {} +func (*MemoryStats) Descriptor() ([]byte, []int) { return fileDescriptorAgent, []int{15} } + +func (m *MemoryStats) GetCache() uint64 { + if m != nil { + return m.Cache + } + return 0 +} + +func (m *MemoryStats) GetUsage() *MemoryData { + if m != nil { + return m.Usage + } + return nil +} + +func (m *MemoryStats) GetSwapUsage() *MemoryData { + if m != nil { + return m.SwapUsage + } + return nil +} + +func (m *MemoryStats) GetKernelUsage() *MemoryData { + if m != nil { + return m.KernelUsage + } + return nil +} + +func (m *MemoryStats) GetUseHierarchy() bool { + if m != nil { + return m.UseHierarchy + } + return false +} + +func (m *MemoryStats) GetStats() map[string]uint64 { + if m != nil { + return m.Stats + } + return nil +} + +type BlkioStatsEntry struct { + Major uint64 `protobuf:"varint,1,opt,name=major,proto3" json:"major,omitempty"` + Minor uint64 `protobuf:"varint,2,opt,name=minor,proto3" json:"minor,omitempty"` + Op string `protobuf:"bytes,3,opt,name=op,proto3" json:"op,omitempty"` + Value uint64 `protobuf:"varint,4,opt,name=value,proto3" json:"value,omitempty"` +} + +func (m *BlkioStatsEntry) Reset() { *m = BlkioStatsEntry{} } +func (m *BlkioStatsEntry) String() string { return proto.CompactTextString(m) } +func (*BlkioStatsEntry) ProtoMessage() {} +func (*BlkioStatsEntry) Descriptor() ([]byte, []int) { return fileDescriptorAgent, []int{16} } + +func (m *BlkioStatsEntry) GetMajor() uint64 { + if m != nil { + return m.Major + } + return 0 +} + +func (m *BlkioStatsEntry) GetMinor() uint64 { + if m != nil { + return m.Minor + } + return 0 +} + +func (m *BlkioStatsEntry) GetOp() string { + if m != nil { + return m.Op + } + return "" +} + +func (m *BlkioStatsEntry) GetValue() uint64 { + if m != nil { + return m.Value + } + return 0 +} + +type BlkioStats struct { + IoServiceBytesRecursive []*BlkioStatsEntry `protobuf:"bytes,1,rep,name=io_service_bytes_recursive,json=ioServiceBytesRecursive" json:"io_service_bytes_recursive,omitempty"` + IoServicedRecursive []*BlkioStatsEntry `protobuf:"bytes,2,rep,name=io_serviced_recursive,json=ioServicedRecursive" json:"io_serviced_recursive,omitempty"` + IoQueuedRecursive []*BlkioStatsEntry `protobuf:"bytes,3,rep,name=io_queued_recursive,json=ioQueuedRecursive" json:"io_queued_recursive,omitempty"` + IoServiceTimeRecursive []*BlkioStatsEntry `protobuf:"bytes,4,rep,name=io_service_time_recursive,json=ioServiceTimeRecursive" json:"io_service_time_recursive,omitempty"` + IoWaitTimeRecursive []*BlkioStatsEntry `protobuf:"bytes,5,rep,name=io_wait_time_recursive,json=ioWaitTimeRecursive" json:"io_wait_time_recursive,omitempty"` + IoMergedRecursive []*BlkioStatsEntry `protobuf:"bytes,6,rep,name=io_merged_recursive,json=ioMergedRecursive" json:"io_merged_recursive,omitempty"` + IoTimeRecursive []*BlkioStatsEntry `protobuf:"bytes,7,rep,name=io_time_recursive,json=ioTimeRecursive" json:"io_time_recursive,omitempty"` + SectorsRecursive []*BlkioStatsEntry `protobuf:"bytes,8,rep,name=sectors_recursive,json=sectorsRecursive" json:"sectors_recursive,omitempty"` +} + +func (m *BlkioStats) Reset() { *m = BlkioStats{} } +func (m *BlkioStats) String() string { return proto.CompactTextString(m) } +func (*BlkioStats) ProtoMessage() {} +func (*BlkioStats) Descriptor() ([]byte, []int) { return fileDescriptorAgent, []int{17} } + +func (m *BlkioStats) GetIoServiceBytesRecursive() []*BlkioStatsEntry { + if m != nil { + return m.IoServiceBytesRecursive + } + return nil +} + +func (m *BlkioStats) GetIoServicedRecursive() []*BlkioStatsEntry { + if m != nil { + return m.IoServicedRecursive + } + return nil +} + +func (m *BlkioStats) GetIoQueuedRecursive() []*BlkioStatsEntry { + if m != nil { + return m.IoQueuedRecursive + } + return nil +} + +func (m *BlkioStats) GetIoServiceTimeRecursive() []*BlkioStatsEntry { + if m != nil { + return m.IoServiceTimeRecursive + } + return nil +} + +func (m *BlkioStats) GetIoWaitTimeRecursive() []*BlkioStatsEntry { + if m != nil { + return m.IoWaitTimeRecursive + } + return nil +} + +func (m *BlkioStats) GetIoMergedRecursive() []*BlkioStatsEntry { + if m != nil { + return m.IoMergedRecursive + } + return nil +} + +func (m *BlkioStats) GetIoTimeRecursive() []*BlkioStatsEntry { + if m != nil { + return m.IoTimeRecursive + } + return nil +} + +func (m *BlkioStats) GetSectorsRecursive() []*BlkioStatsEntry { + if m != nil { + return m.SectorsRecursive + } + return nil +} + +type HugetlbStats struct { + Usage uint64 `protobuf:"varint,1,opt,name=usage,proto3" json:"usage,omitempty"` + MaxUsage uint64 `protobuf:"varint,2,opt,name=max_usage,json=maxUsage,proto3" json:"max_usage,omitempty"` + Failcnt uint64 `protobuf:"varint,3,opt,name=failcnt,proto3" json:"failcnt,omitempty"` +} + +func (m *HugetlbStats) Reset() { *m = HugetlbStats{} } +func (m *HugetlbStats) String() string { return proto.CompactTextString(m) } +func (*HugetlbStats) ProtoMessage() {} +func (*HugetlbStats) Descriptor() ([]byte, []int) { return fileDescriptorAgent, []int{18} } + +func (m *HugetlbStats) GetUsage() uint64 { + if m != nil { + return m.Usage + } + return 0 +} + +func (m *HugetlbStats) GetMaxUsage() uint64 { + if m != nil { + return m.MaxUsage + } + return 0 +} + +func (m *HugetlbStats) GetFailcnt() uint64 { + if m != nil { + return m.Failcnt + } + return 0 +} + +type CgroupStats struct { + CpuStats *CpuStats `protobuf:"bytes,1,opt,name=cpu_stats,json=cpuStats" json:"cpu_stats,omitempty"` + MemoryStats *MemoryStats `protobuf:"bytes,2,opt,name=memory_stats,json=memoryStats" json:"memory_stats,omitempty"` + PidsStats *PidsStats `protobuf:"bytes,3,opt,name=pids_stats,json=pidsStats" json:"pids_stats,omitempty"` + BlkioStats *BlkioStats `protobuf:"bytes,4,opt,name=blkio_stats,json=blkioStats" json:"blkio_stats,omitempty"` + HugetlbStats map[string]*HugetlbStats `protobuf:"bytes,5,rep,name=hugetlb_stats,json=hugetlbStats" json:"hugetlb_stats,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value"` +} + +func (m *CgroupStats) Reset() { *m = CgroupStats{} } +func (m *CgroupStats) String() string { return proto.CompactTextString(m) } +func (*CgroupStats) ProtoMessage() {} +func (*CgroupStats) Descriptor() ([]byte, []int) { return fileDescriptorAgent, []int{19} } + +func (m *CgroupStats) GetCpuStats() *CpuStats { + if m != nil { + return m.CpuStats + } + return nil +} + +func (m *CgroupStats) GetMemoryStats() *MemoryStats { + if m != nil { + return m.MemoryStats + } + return nil +} + +func (m *CgroupStats) GetPidsStats() *PidsStats { + if m != nil { + return m.PidsStats + } + return nil +} + +func (m *CgroupStats) GetBlkioStats() *BlkioStats { + if m != nil { + return m.BlkioStats + } + return nil +} + +func (m *CgroupStats) GetHugetlbStats() map[string]*HugetlbStats { + if m != nil { + return m.HugetlbStats + } + return nil +} + +type StatsContainerResponse struct { + CgroupStats *CgroupStats `protobuf:"bytes,1,opt,name=cgroup_stats,json=cgroupStats" json:"cgroup_stats,omitempty"` +} + +func (m *StatsContainerResponse) Reset() { *m = StatsContainerResponse{} } +func (m *StatsContainerResponse) String() string { return proto.CompactTextString(m) } +func (*StatsContainerResponse) ProtoMessage() {} +func (*StatsContainerResponse) Descriptor() ([]byte, []int) { return fileDescriptorAgent, []int{20} } + +func (m *StatsContainerResponse) GetCgroupStats() *CgroupStats { + if m != nil { + return m.CgroupStats + } + return nil +} + type WriteStreamRequest struct { ContainerId string `protobuf:"bytes,1,opt,name=container_id,json=containerId,proto3" json:"container_id,omitempty"` ExecId string `protobuf:"bytes,2,opt,name=exec_id,json=execId,proto3" json:"exec_id,omitempty"` @@ -393,7 +847,7 @@ type WriteStreamRequest struct { func (m *WriteStreamRequest) Reset() { *m = WriteStreamRequest{} } func (m *WriteStreamRequest) String() string { return proto.CompactTextString(m) } func (*WriteStreamRequest) ProtoMessage() {} -func (*WriteStreamRequest) Descriptor() ([]byte, []int) { return fileDescriptorAgent, []int{9} } +func (*WriteStreamRequest) Descriptor() ([]byte, []int) { return fileDescriptorAgent, []int{21} } func (m *WriteStreamRequest) GetContainerId() string { if m != nil { @@ -423,7 +877,7 @@ type WriteStreamResponse struct { func (m *WriteStreamResponse) Reset() { *m = WriteStreamResponse{} } func (m *WriteStreamResponse) String() string { return proto.CompactTextString(m) } func (*WriteStreamResponse) ProtoMessage() {} -func (*WriteStreamResponse) Descriptor() ([]byte, []int) { return fileDescriptorAgent, []int{10} } +func (*WriteStreamResponse) Descriptor() ([]byte, []int) { return fileDescriptorAgent, []int{22} } func (m *WriteStreamResponse) GetLen() uint32 { if m != nil { @@ -441,7 +895,7 @@ type ReadStreamRequest struct { func (m *ReadStreamRequest) Reset() { *m = ReadStreamRequest{} } func (m *ReadStreamRequest) String() string { return proto.CompactTextString(m) } func (*ReadStreamRequest) ProtoMessage() {} -func (*ReadStreamRequest) Descriptor() ([]byte, []int) { return fileDescriptorAgent, []int{11} } +func (*ReadStreamRequest) Descriptor() ([]byte, []int) { return fileDescriptorAgent, []int{23} } func (m *ReadStreamRequest) GetContainerId() string { if m != nil { @@ -471,7 +925,7 @@ type ReadStreamResponse struct { func (m *ReadStreamResponse) Reset() { *m = ReadStreamResponse{} } func (m *ReadStreamResponse) String() string { return proto.CompactTextString(m) } func (*ReadStreamResponse) ProtoMessage() {} -func (*ReadStreamResponse) Descriptor() ([]byte, []int) { return fileDescriptorAgent, []int{12} } +func (*ReadStreamResponse) Descriptor() ([]byte, []int) { return fileDescriptorAgent, []int{24} } func (m *ReadStreamResponse) GetData() []byte { if m != nil { @@ -488,7 +942,7 @@ type CloseStdinRequest struct { func (m *CloseStdinRequest) Reset() { *m = CloseStdinRequest{} } func (m *CloseStdinRequest) String() string { return proto.CompactTextString(m) } func (*CloseStdinRequest) ProtoMessage() {} -func (*CloseStdinRequest) Descriptor() ([]byte, []int) { return fileDescriptorAgent, []int{13} } +func (*CloseStdinRequest) Descriptor() ([]byte, []int) { return fileDescriptorAgent, []int{25} } func (m *CloseStdinRequest) GetContainerId() string { if m != nil { @@ -514,7 +968,7 @@ type TtyWinResizeRequest struct { func (m *TtyWinResizeRequest) Reset() { *m = TtyWinResizeRequest{} } func (m *TtyWinResizeRequest) String() string { return proto.CompactTextString(m) } func (*TtyWinResizeRequest) ProtoMessage() {} -func (*TtyWinResizeRequest) Descriptor() ([]byte, []int) { return fileDescriptorAgent, []int{14} } +func (*TtyWinResizeRequest) Descriptor() ([]byte, []int) { return fileDescriptorAgent, []int{26} } func (m *TtyWinResizeRequest) GetContainerId() string { if m != nil { @@ -554,7 +1008,7 @@ type CreateSandboxRequest struct { func (m *CreateSandboxRequest) Reset() { *m = CreateSandboxRequest{} } func (m *CreateSandboxRequest) String() string { return proto.CompactTextString(m) } func (*CreateSandboxRequest) ProtoMessage() {} -func (*CreateSandboxRequest) Descriptor() ([]byte, []int) { return fileDescriptorAgent, []int{15} } +func (*CreateSandboxRequest) Descriptor() ([]byte, []int) { return fileDescriptorAgent, []int{27} } func (m *CreateSandboxRequest) GetHostname() string { if m != nil { @@ -590,7 +1044,7 @@ type DestroySandboxRequest struct { func (m *DestroySandboxRequest) Reset() { *m = DestroySandboxRequest{} } func (m *DestroySandboxRequest) String() string { return proto.CompactTextString(m) } func (*DestroySandboxRequest) ProtoMessage() {} -func (*DestroySandboxRequest) Descriptor() ([]byte, []int) { return fileDescriptorAgent, []int{16} } +func (*DestroySandboxRequest) Descriptor() ([]byte, []int) { return fileDescriptorAgent, []int{28} } type IPAddress struct { Family IPFamily `protobuf:"varint,1,opt,name=family,proto3,enum=grpc.IPFamily" json:"family,omitempty"` @@ -601,7 +1055,7 @@ type IPAddress struct { func (m *IPAddress) Reset() { *m = IPAddress{} } func (m *IPAddress) String() string { return proto.CompactTextString(m) } func (*IPAddress) ProtoMessage() {} -func (*IPAddress) Descriptor() ([]byte, []int) { return fileDescriptorAgent, []int{17} } +func (*IPAddress) Descriptor() ([]byte, []int) { return fileDescriptorAgent, []int{29} } func (m *IPAddress) GetFamily() IPFamily { if m != nil { @@ -635,7 +1089,7 @@ type Interface struct { func (m *Interface) Reset() { *m = Interface{} } func (m *Interface) String() string { return proto.CompactTextString(m) } func (*Interface) ProtoMessage() {} -func (*Interface) Descriptor() ([]byte, []int) { return fileDescriptorAgent, []int{18} } +func (*Interface) Descriptor() ([]byte, []int) { return fileDescriptorAgent, []int{30} } func (m *Interface) GetDevice() string { if m != nil { @@ -683,7 +1137,7 @@ type Route struct { func (m *Route) Reset() { *m = Route{} } func (m *Route) String() string { return proto.CompactTextString(m) } func (*Route) ProtoMessage() {} -func (*Route) Descriptor() ([]byte, []int) { return fileDescriptorAgent, []int{19} } +func (*Route) Descriptor() ([]byte, []int) { return fileDescriptorAgent, []int{31} } func (m *Route) GetDest() string { if m != nil { @@ -727,7 +1181,7 @@ type Routes struct { func (m *Routes) Reset() { *m = Routes{} } func (m *Routes) String() string { return proto.CompactTextString(m) } func (*Routes) ProtoMessage() {} -func (*Routes) Descriptor() ([]byte, []int) { return fileDescriptorAgent, []int{20} } +func (*Routes) Descriptor() ([]byte, []int) { return fileDescriptorAgent, []int{32} } func (m *Routes) GetRoutes() []*Route { if m != nil { @@ -743,7 +1197,7 @@ type UpdateInterfaceRequest struct { func (m *UpdateInterfaceRequest) Reset() { *m = UpdateInterfaceRequest{} } func (m *UpdateInterfaceRequest) String() string { return proto.CompactTextString(m) } func (*UpdateInterfaceRequest) ProtoMessage() {} -func (*UpdateInterfaceRequest) Descriptor() ([]byte, []int) { return fileDescriptorAgent, []int{21} } +func (*UpdateInterfaceRequest) Descriptor() ([]byte, []int) { return fileDescriptorAgent, []int{33} } func (m *UpdateInterfaceRequest) GetInterface() *Interface { if m != nil { @@ -759,7 +1213,7 @@ type AddInterfaceRequest struct { func (m *AddInterfaceRequest) Reset() { *m = AddInterfaceRequest{} } func (m *AddInterfaceRequest) String() string { return proto.CompactTextString(m) } func (*AddInterfaceRequest) ProtoMessage() {} -func (*AddInterfaceRequest) Descriptor() ([]byte, []int) { return fileDescriptorAgent, []int{22} } +func (*AddInterfaceRequest) Descriptor() ([]byte, []int) { return fileDescriptorAgent, []int{34} } func (m *AddInterfaceRequest) GetInterface() *Interface { if m != nil { @@ -775,7 +1229,7 @@ type RemoveInterfaceRequest struct { func (m *RemoveInterfaceRequest) Reset() { *m = RemoveInterfaceRequest{} } func (m *RemoveInterfaceRequest) String() string { return proto.CompactTextString(m) } func (*RemoveInterfaceRequest) ProtoMessage() {} -func (*RemoveInterfaceRequest) Descriptor() ([]byte, []int) { return fileDescriptorAgent, []int{23} } +func (*RemoveInterfaceRequest) Descriptor() ([]byte, []int) { return fileDescriptorAgent, []int{35} } func (m *RemoveInterfaceRequest) GetInterface() *Interface { if m != nil { @@ -791,7 +1245,7 @@ type UpdateRoutesRequest struct { func (m *UpdateRoutesRequest) Reset() { *m = UpdateRoutesRequest{} } func (m *UpdateRoutesRequest) String() string { return proto.CompactTextString(m) } func (*UpdateRoutesRequest) ProtoMessage() {} -func (*UpdateRoutesRequest) Descriptor() ([]byte, []int) { return fileDescriptorAgent, []int{24} } +func (*UpdateRoutesRequest) Descriptor() ([]byte, []int) { return fileDescriptorAgent, []int{36} } func (m *UpdateRoutesRequest) GetRoutes() *Routes { if m != nil { @@ -812,7 +1266,7 @@ type OnlineCPUMemRequest struct { func (m *OnlineCPUMemRequest) Reset() { *m = OnlineCPUMemRequest{} } func (m *OnlineCPUMemRequest) String() string { return proto.CompactTextString(m) } func (*OnlineCPUMemRequest) ProtoMessage() {} -func (*OnlineCPUMemRequest) Descriptor() ([]byte, []int) { return fileDescriptorAgent, []int{25} } +func (*OnlineCPUMemRequest) Descriptor() ([]byte, []int) { return fileDescriptorAgent, []int{37} } func (m *OnlineCPUMemRequest) GetWait() bool { if m != nil { @@ -861,7 +1315,7 @@ type Storage struct { func (m *Storage) Reset() { *m = Storage{} } func (m *Storage) String() string { return proto.CompactTextString(m) } func (*Storage) ProtoMessage() {} -func (*Storage) Descriptor() ([]byte, []int) { return fileDescriptorAgent, []int{26} } +func (*Storage) Descriptor() ([]byte, []int) { return fileDescriptorAgent, []int{38} } func (m *Storage) GetDriver() string { if m != nil { @@ -944,7 +1398,7 @@ type Device struct { func (m *Device) Reset() { *m = Device{} } func (m *Device) String() string { return proto.CompactTextString(m) } func (*Device) ProtoMessage() {} -func (*Device) Descriptor() ([]byte, []int) { return fileDescriptorAgent, []int{27} } +func (*Device) Descriptor() ([]byte, []int) { return fileDescriptorAgent, []int{39} } func (m *Device) GetId() string { if m != nil { @@ -990,7 +1444,7 @@ type StringUser struct { func (m *StringUser) Reset() { *m = StringUser{} } func (m *StringUser) String() string { return proto.CompactTextString(m) } func (*StringUser) ProtoMessage() {} -func (*StringUser) Descriptor() ([]byte, []int) { return fileDescriptorAgent, []int{28} } +func (*StringUser) Descriptor() ([]byte, []int) { return fileDescriptorAgent, []int{40} } func (m *StringUser) GetUid() string { if m != nil { @@ -1023,6 +1477,18 @@ func init() { proto.RegisterType((*WaitProcessResponse)(nil), "grpc.WaitProcessResponse") proto.RegisterType((*ListProcessesRequest)(nil), "grpc.ListProcessesRequest") proto.RegisterType((*ListProcessesResponse)(nil), "grpc.ListProcessesResponse") + proto.RegisterType((*StatsContainerRequest)(nil), "grpc.StatsContainerRequest") + proto.RegisterType((*CpuUsage)(nil), "grpc.CpuUsage") + proto.RegisterType((*ThrottlingData)(nil), "grpc.ThrottlingData") + proto.RegisterType((*CpuStats)(nil), "grpc.CpuStats") + proto.RegisterType((*PidsStats)(nil), "grpc.PidsStats") + proto.RegisterType((*MemoryData)(nil), "grpc.MemoryData") + proto.RegisterType((*MemoryStats)(nil), "grpc.MemoryStats") + proto.RegisterType((*BlkioStatsEntry)(nil), "grpc.BlkioStatsEntry") + proto.RegisterType((*BlkioStats)(nil), "grpc.BlkioStats") + proto.RegisterType((*HugetlbStats)(nil), "grpc.HugetlbStats") + proto.RegisterType((*CgroupStats)(nil), "grpc.CgroupStats") + proto.RegisterType((*StatsContainerResponse)(nil), "grpc.StatsContainerResponse") proto.RegisterType((*WriteStreamRequest)(nil), "grpc.WriteStreamRequest") proto.RegisterType((*WriteStreamResponse)(nil), "grpc.WriteStreamResponse") proto.RegisterType((*ReadStreamRequest)(nil), "grpc.ReadStreamRequest") @@ -1071,6 +1537,7 @@ type AgentServiceClient interface { SignalProcess(ctx context.Context, in *SignalProcessRequest, opts ...grpc1.CallOption) (*google_protobuf2.Empty, error) WaitProcess(ctx context.Context, in *WaitProcessRequest, opts ...grpc1.CallOption) (*WaitProcessResponse, error) ListProcesses(ctx context.Context, in *ListProcessesRequest, opts ...grpc1.CallOption) (*ListProcessesResponse, error) + StatsContainer(ctx context.Context, in *StatsContainerRequest, opts ...grpc1.CallOption) (*StatsContainerResponse, error) // stdio WriteStdin(ctx context.Context, in *WriteStreamRequest, opts ...grpc1.CallOption) (*WriteStreamResponse, error) ReadStdout(ctx context.Context, in *ReadStreamRequest, opts ...grpc1.CallOption) (*ReadStreamResponse, error) @@ -1159,8 +1626,17 @@ func (c *agentServiceClient) ListProcesses(ctx context.Context, in *ListProcesse return out, nil } -func (c *agentServiceClient) WriteStdin(ctx context.Context, in *WriteStreamRequest, opts ...grpc1.CallOption) (*WriteStreamResponse, error) { - out := new(WriteStreamResponse) +func (c *agentServiceClient) StatsContainer(ctx context.Context, in *StatsContainerRequest, opts ...grpc1.CallOption) (*StatsContainerResponse, error) { + out := new(StatsContainerResponse) + err := grpc1.Invoke(ctx, "/grpc.AgentService/StatsContainer", in, out, c.cc, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *agentServiceClient) WriteStdin(ctx context.Context, in *WriteStreamRequest, opts ...grpc1.CallOption) (*WriteStreamResponse, error) { + out := new(WriteStreamResponse) err := grpc1.Invoke(ctx, "/grpc.AgentService/WriteStdin", in, out, c.cc, opts...) if err != nil { return nil, err @@ -1284,6 +1760,7 @@ type AgentServiceServer interface { SignalProcess(context.Context, *SignalProcessRequest) (*google_protobuf2.Empty, error) WaitProcess(context.Context, *WaitProcessRequest) (*WaitProcessResponse, error) ListProcesses(context.Context, *ListProcessesRequest) (*ListProcessesResponse, error) + StatsContainer(context.Context, *StatsContainerRequest) (*StatsContainerResponse, error) // stdio WriteStdin(context.Context, *WriteStreamRequest) (*WriteStreamResponse, error) ReadStdout(context.Context, *ReadStreamRequest) (*ReadStreamResponse, error) @@ -1431,6 +1908,24 @@ func _AgentService_ListProcesses_Handler(srv interface{}, ctx context.Context, d return interceptor(ctx, in, info, handler) } +func _AgentService_StatsContainer_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc1.UnaryServerInterceptor) (interface{}, error) { + in := new(StatsContainerRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AgentServiceServer).StatsContainer(ctx, in) + } + info := &grpc1.UnaryServerInfo{ + Server: srv, + FullMethod: "/grpc.AgentService/StatsContainer", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AgentServiceServer).StatsContainer(ctx, req.(*StatsContainerRequest)) + } + return interceptor(ctx, in, info, handler) +} + func _AgentService_WriteStdin_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc1.UnaryServerInterceptor) (interface{}, error) { in := new(WriteStreamRequest) if err := dec(in); err != nil { @@ -1679,6 +2174,10 @@ var _AgentService_serviceDesc = grpc1.ServiceDesc{ MethodName: "ListProcesses", Handler: _AgentService_ListProcesses_Handler, }, + { + MethodName: "StatsContainer", + Handler: _AgentService_StatsContainer_Handler, + }, { MethodName: "WriteStdin", Handler: _AgentService_WriteStdin_Handler, @@ -2066,7 +2565,7 @@ func (m *ListProcessesResponse) MarshalTo(dAtA []byte) (int, error) { return i, nil } -func (m *WriteStreamRequest) Marshal() (dAtA []byte, err error) { +func (m *StatsContainerRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalTo(dAtA) @@ -2076,7 +2575,7 @@ func (m *WriteStreamRequest) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *WriteStreamRequest) MarshalTo(dAtA []byte) (int, error) { +func (m *StatsContainerRequest) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int @@ -2087,22 +2586,10 @@ func (m *WriteStreamRequest) MarshalTo(dAtA []byte) (int, error) { i = encodeVarintAgent(dAtA, i, uint64(len(m.ContainerId))) i += copy(dAtA[i:], m.ContainerId) } - if len(m.ExecId) > 0 { - dAtA[i] = 0x12 - i++ - i = encodeVarintAgent(dAtA, i, uint64(len(m.ExecId))) - i += copy(dAtA[i:], m.ExecId) - } - if len(m.Data) > 0 { - dAtA[i] = 0x1a - i++ - i = encodeVarintAgent(dAtA, i, uint64(len(m.Data))) - i += copy(dAtA[i:], m.Data) - } return i, nil } -func (m *WriteStreamResponse) Marshal() (dAtA []byte, err error) { +func (m *CpuUsage) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalTo(dAtA) @@ -2112,20 +2599,47 @@ func (m *WriteStreamResponse) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *WriteStreamResponse) MarshalTo(dAtA []byte) (int, error) { +func (m *CpuUsage) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int _ = l - if m.Len != 0 { + if m.TotalUsage != 0 { dAtA[i] = 0x8 i++ - i = encodeVarintAgent(dAtA, i, uint64(m.Len)) + i = encodeVarintAgent(dAtA, i, uint64(m.TotalUsage)) + } + if len(m.PercpuUsage) > 0 { + dAtA6 := make([]byte, len(m.PercpuUsage)*10) + var j5 int + for _, num := range m.PercpuUsage { + for num >= 1<<7 { + dAtA6[j5] = uint8(uint64(num)&0x7f | 0x80) + num >>= 7 + j5++ + } + dAtA6[j5] = uint8(num) + j5++ + } + dAtA[i] = 0x12 + i++ + i = encodeVarintAgent(dAtA, i, uint64(j5)) + i += copy(dAtA[i:], dAtA6[:j5]) + } + if m.UsageInKernelmode != 0 { + dAtA[i] = 0x18 + i++ + i = encodeVarintAgent(dAtA, i, uint64(m.UsageInKernelmode)) + } + if m.UsageInUsermode != 0 { + dAtA[i] = 0x20 + i++ + i = encodeVarintAgent(dAtA, i, uint64(m.UsageInUsermode)) } return i, nil } -func (m *ReadStreamRequest) Marshal() (dAtA []byte, err error) { +func (m *ThrottlingData) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalTo(dAtA) @@ -2135,32 +2649,30 @@ func (m *ReadStreamRequest) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *ReadStreamRequest) MarshalTo(dAtA []byte) (int, error) { +func (m *ThrottlingData) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int _ = l - if len(m.ContainerId) > 0 { - dAtA[i] = 0xa + if m.Periods != 0 { + dAtA[i] = 0x8 i++ - i = encodeVarintAgent(dAtA, i, uint64(len(m.ContainerId))) - i += copy(dAtA[i:], m.ContainerId) + i = encodeVarintAgent(dAtA, i, uint64(m.Periods)) } - if len(m.ExecId) > 0 { - dAtA[i] = 0x12 + if m.ThrottledPeriods != 0 { + dAtA[i] = 0x10 i++ - i = encodeVarintAgent(dAtA, i, uint64(len(m.ExecId))) - i += copy(dAtA[i:], m.ExecId) + i = encodeVarintAgent(dAtA, i, uint64(m.ThrottledPeriods)) } - if m.Len != 0 { + if m.ThrottledTime != 0 { dAtA[i] = 0x18 i++ - i = encodeVarintAgent(dAtA, i, uint64(m.Len)) + i = encodeVarintAgent(dAtA, i, uint64(m.ThrottledTime)) } return i, nil } -func (m *ReadStreamResponse) Marshal() (dAtA []byte, err error) { +func (m *CpuStats) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalTo(dAtA) @@ -2170,21 +2682,35 @@ func (m *ReadStreamResponse) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *ReadStreamResponse) MarshalTo(dAtA []byte) (int, error) { +func (m *CpuStats) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int _ = l - if len(m.Data) > 0 { + if m.CpuUsage != nil { dAtA[i] = 0xa i++ - i = encodeVarintAgent(dAtA, i, uint64(len(m.Data))) - i += copy(dAtA[i:], m.Data) + i = encodeVarintAgent(dAtA, i, uint64(m.CpuUsage.Size())) + n7, err := m.CpuUsage.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n7 + } + if m.ThrottlingData != nil { + dAtA[i] = 0x12 + i++ + i = encodeVarintAgent(dAtA, i, uint64(m.ThrottlingData.Size())) + n8, err := m.ThrottlingData.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n8 } return i, nil } -func (m *CloseStdinRequest) Marshal() (dAtA []byte, err error) { +func (m *PidsStats) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalTo(dAtA) @@ -2194,27 +2720,25 @@ func (m *CloseStdinRequest) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *CloseStdinRequest) MarshalTo(dAtA []byte) (int, error) { +func (m *PidsStats) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int _ = l - if len(m.ContainerId) > 0 { - dAtA[i] = 0xa + if m.Current != 0 { + dAtA[i] = 0x8 i++ - i = encodeVarintAgent(dAtA, i, uint64(len(m.ContainerId))) - i += copy(dAtA[i:], m.ContainerId) + i = encodeVarintAgent(dAtA, i, uint64(m.Current)) } - if len(m.ExecId) > 0 { - dAtA[i] = 0x12 + if m.Limit != 0 { + dAtA[i] = 0x10 i++ - i = encodeVarintAgent(dAtA, i, uint64(len(m.ExecId))) - i += copy(dAtA[i:], m.ExecId) + i = encodeVarintAgent(dAtA, i, uint64(m.Limit)) } return i, nil } -func (m *TtyWinResizeRequest) Marshal() (dAtA []byte, err error) { +func (m *MemoryData) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalTo(dAtA) @@ -2224,37 +2748,35 @@ func (m *TtyWinResizeRequest) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *TtyWinResizeRequest) MarshalTo(dAtA []byte) (int, error) { +func (m *MemoryData) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int _ = l - if len(m.ContainerId) > 0 { - dAtA[i] = 0xa + if m.Usage != 0 { + dAtA[i] = 0x8 i++ - i = encodeVarintAgent(dAtA, i, uint64(len(m.ContainerId))) - i += copy(dAtA[i:], m.ContainerId) + i = encodeVarintAgent(dAtA, i, uint64(m.Usage)) } - if len(m.ExecId) > 0 { - dAtA[i] = 0x12 + if m.MaxUsage != 0 { + dAtA[i] = 0x10 i++ - i = encodeVarintAgent(dAtA, i, uint64(len(m.ExecId))) - i += copy(dAtA[i:], m.ExecId) + i = encodeVarintAgent(dAtA, i, uint64(m.MaxUsage)) } - if m.Row != 0 { + if m.Failcnt != 0 { dAtA[i] = 0x18 i++ - i = encodeVarintAgent(dAtA, i, uint64(m.Row)) + i = encodeVarintAgent(dAtA, i, uint64(m.Failcnt)) } - if m.Column != 0 { + if m.Limit != 0 { dAtA[i] = 0x20 i++ - i = encodeVarintAgent(dAtA, i, uint64(m.Column)) + i = encodeVarintAgent(dAtA, i, uint64(m.Limit)) } return i, nil } -func (m *CreateSandboxRequest) Marshal() (dAtA []byte, err error) { +func (m *MemoryStats) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalTo(dAtA) @@ -2264,76 +2786,76 @@ func (m *CreateSandboxRequest) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *CreateSandboxRequest) MarshalTo(dAtA []byte) (int, error) { +func (m *MemoryStats) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int _ = l - if len(m.Hostname) > 0 { - dAtA[i] = 0xa + if m.Cache != 0 { + dAtA[i] = 0x8 i++ - i = encodeVarintAgent(dAtA, i, uint64(len(m.Hostname))) - i += copy(dAtA[i:], m.Hostname) + i = encodeVarintAgent(dAtA, i, uint64(m.Cache)) } - if len(m.Dns) > 0 { - for _, s := range m.Dns { - dAtA[i] = 0x12 - i++ - l = len(s) - for l >= 1<<7 { - dAtA[i] = uint8(uint64(l)&0x7f | 0x80) - l >>= 7 - i++ - } - dAtA[i] = uint8(l) - i++ - i += copy(dAtA[i:], s) + if m.Usage != nil { + dAtA[i] = 0x12 + i++ + i = encodeVarintAgent(dAtA, i, uint64(m.Usage.Size())) + n9, err := m.Usage.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } + i += n9 } - if len(m.Storages) > 0 { - for _, msg := range m.Storages { - dAtA[i] = 0x1a - i++ - i = encodeVarintAgent(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n + if m.SwapUsage != nil { + dAtA[i] = 0x1a + i++ + i = encodeVarintAgent(dAtA, i, uint64(m.SwapUsage.Size())) + n10, err := m.SwapUsage.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } + i += n10 } - if m.SandboxPidns { - dAtA[i] = 0x20 + if m.KernelUsage != nil { + dAtA[i] = 0x22 i++ - if m.SandboxPidns { + i = encodeVarintAgent(dAtA, i, uint64(m.KernelUsage.Size())) + n11, err := m.KernelUsage.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n11 + } + if m.UseHierarchy { + dAtA[i] = 0x28 + i++ + if m.UseHierarchy { dAtA[i] = 1 } else { dAtA[i] = 0 } i++ } - return i, nil -} - -func (m *DestroySandboxRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err + if len(m.Stats) > 0 { + for k, _ := range m.Stats { + dAtA[i] = 0x32 + i++ + v := m.Stats[k] + mapSize := 1 + len(k) + sovAgent(uint64(len(k))) + 1 + sovAgent(uint64(v)) + i = encodeVarintAgent(dAtA, i, uint64(mapSize)) + dAtA[i] = 0xa + i++ + i = encodeVarintAgent(dAtA, i, uint64(len(k))) + i += copy(dAtA[i:], k) + dAtA[i] = 0x10 + i++ + i = encodeVarintAgent(dAtA, i, uint64(v)) + } } - return dAtA[:n], nil -} - -func (m *DestroySandboxRequest) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l return i, nil } -func (m *IPAddress) Marshal() (dAtA []byte, err error) { +func (m *BlkioStatsEntry) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalTo(dAtA) @@ -2343,32 +2865,36 @@ func (m *IPAddress) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *IPAddress) MarshalTo(dAtA []byte) (int, error) { +func (m *BlkioStatsEntry) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int _ = l - if m.Family != 0 { + if m.Major != 0 { dAtA[i] = 0x8 i++ - i = encodeVarintAgent(dAtA, i, uint64(m.Family)) + i = encodeVarintAgent(dAtA, i, uint64(m.Major)) } - if len(m.Address) > 0 { - dAtA[i] = 0x12 + if m.Minor != 0 { + dAtA[i] = 0x10 i++ - i = encodeVarintAgent(dAtA, i, uint64(len(m.Address))) - i += copy(dAtA[i:], m.Address) + i = encodeVarintAgent(dAtA, i, uint64(m.Minor)) } - if len(m.Mask) > 0 { + if len(m.Op) > 0 { dAtA[i] = 0x1a i++ - i = encodeVarintAgent(dAtA, i, uint64(len(m.Mask))) - i += copy(dAtA[i:], m.Mask) + i = encodeVarintAgent(dAtA, i, uint64(len(m.Op))) + i += copy(dAtA[i:], m.Op) + } + if m.Value != 0 { + dAtA[i] = 0x20 + i++ + i = encodeVarintAgent(dAtA, i, uint64(m.Value)) } return i, nil } -func (m *Interface) Marshal() (dAtA []byte, err error) { +func (m *BlkioStats) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalTo(dAtA) @@ -2378,25 +2904,37 @@ func (m *Interface) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Interface) MarshalTo(dAtA []byte) (int, error) { +func (m *BlkioStats) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int _ = l - if len(m.Device) > 0 { - dAtA[i] = 0xa - i++ - i = encodeVarintAgent(dAtA, i, uint64(len(m.Device))) - i += copy(dAtA[i:], m.Device) + if len(m.IoServiceBytesRecursive) > 0 { + for _, msg := range m.IoServiceBytesRecursive { + dAtA[i] = 0xa + i++ + i = encodeVarintAgent(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n + } } - if len(m.Name) > 0 { - dAtA[i] = 0x12 - i++ - i = encodeVarintAgent(dAtA, i, uint64(len(m.Name))) - i += copy(dAtA[i:], m.Name) + if len(m.IoServicedRecursive) > 0 { + for _, msg := range m.IoServicedRecursive { + dAtA[i] = 0x12 + i++ + i = encodeVarintAgent(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n + } } - if len(m.IPAddresses) > 0 { - for _, msg := range m.IPAddresses { + if len(m.IoQueuedRecursive) > 0 { + for _, msg := range m.IoQueuedRecursive { dAtA[i] = 0x1a i++ i = encodeVarintAgent(dAtA, i, uint64(msg.Size())) @@ -2407,21 +2945,70 @@ func (m *Interface) MarshalTo(dAtA []byte) (int, error) { i += n } } - if m.Mtu != 0 { - dAtA[i] = 0x20 - i++ - i = encodeVarintAgent(dAtA, i, uint64(m.Mtu)) + if len(m.IoServiceTimeRecursive) > 0 { + for _, msg := range m.IoServiceTimeRecursive { + dAtA[i] = 0x22 + i++ + i = encodeVarintAgent(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n + } } - if len(m.HwAddr) > 0 { - dAtA[i] = 0x2a - i++ - i = encodeVarintAgent(dAtA, i, uint64(len(m.HwAddr))) - i += copy(dAtA[i:], m.HwAddr) + if len(m.IoWaitTimeRecursive) > 0 { + for _, msg := range m.IoWaitTimeRecursive { + dAtA[i] = 0x2a + i++ + i = encodeVarintAgent(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n + } } - return i, nil -} + if len(m.IoMergedRecursive) > 0 { + for _, msg := range m.IoMergedRecursive { + dAtA[i] = 0x32 + i++ + i = encodeVarintAgent(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n + } + } + if len(m.IoTimeRecursive) > 0 { + for _, msg := range m.IoTimeRecursive { + dAtA[i] = 0x3a + i++ + i = encodeVarintAgent(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n + } + } + if len(m.SectorsRecursive) > 0 { + for _, msg := range m.SectorsRecursive { + dAtA[i] = 0x42 + i++ + i = encodeVarintAgent(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n + } + } + return i, nil +} -func (m *Route) Marshal() (dAtA []byte, err error) { +func (m *HugetlbStats) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalTo(dAtA) @@ -2431,44 +3018,30 @@ func (m *Route) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Route) MarshalTo(dAtA []byte) (int, error) { +func (m *HugetlbStats) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int _ = l - if len(m.Dest) > 0 { - dAtA[i] = 0xa - i++ - i = encodeVarintAgent(dAtA, i, uint64(len(m.Dest))) - i += copy(dAtA[i:], m.Dest) - } - if len(m.Gateway) > 0 { - dAtA[i] = 0x12 - i++ - i = encodeVarintAgent(dAtA, i, uint64(len(m.Gateway))) - i += copy(dAtA[i:], m.Gateway) - } - if len(m.Device) > 0 { - dAtA[i] = 0x1a + if m.Usage != 0 { + dAtA[i] = 0x8 i++ - i = encodeVarintAgent(dAtA, i, uint64(len(m.Device))) - i += copy(dAtA[i:], m.Device) + i = encodeVarintAgent(dAtA, i, uint64(m.Usage)) } - if len(m.Source) > 0 { - dAtA[i] = 0x22 + if m.MaxUsage != 0 { + dAtA[i] = 0x10 i++ - i = encodeVarintAgent(dAtA, i, uint64(len(m.Source))) - i += copy(dAtA[i:], m.Source) + i = encodeVarintAgent(dAtA, i, uint64(m.MaxUsage)) } - if m.Scope != 0 { - dAtA[i] = 0x28 + if m.Failcnt != 0 { + dAtA[i] = 0x18 i++ - i = encodeVarintAgent(dAtA, i, uint64(m.Scope)) + i = encodeVarintAgent(dAtA, i, uint64(m.Failcnt)) } return i, nil } -func (m *Routes) Marshal() (dAtA []byte, err error) { +func (m *CgroupStats) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalTo(dAtA) @@ -2478,27 +3051,83 @@ func (m *Routes) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Routes) MarshalTo(dAtA []byte) (int, error) { +func (m *CgroupStats) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int _ = l - if len(m.Routes) > 0 { - for _, msg := range m.Routes { + if m.CpuStats != nil { + dAtA[i] = 0xa + i++ + i = encodeVarintAgent(dAtA, i, uint64(m.CpuStats.Size())) + n12, err := m.CpuStats.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n12 + } + if m.MemoryStats != nil { + dAtA[i] = 0x12 + i++ + i = encodeVarintAgent(dAtA, i, uint64(m.MemoryStats.Size())) + n13, err := m.MemoryStats.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n13 + } + if m.PidsStats != nil { + dAtA[i] = 0x1a + i++ + i = encodeVarintAgent(dAtA, i, uint64(m.PidsStats.Size())) + n14, err := m.PidsStats.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n14 + } + if m.BlkioStats != nil { + dAtA[i] = 0x22 + i++ + i = encodeVarintAgent(dAtA, i, uint64(m.BlkioStats.Size())) + n15, err := m.BlkioStats.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n15 + } + if len(m.HugetlbStats) > 0 { + for k, _ := range m.HugetlbStats { + dAtA[i] = 0x2a + i++ + v := m.HugetlbStats[k] + msgSize := 0 + if v != nil { + msgSize = v.Size() + msgSize += 1 + sovAgent(uint64(msgSize)) + } + mapSize := 1 + len(k) + sovAgent(uint64(len(k))) + msgSize + i = encodeVarintAgent(dAtA, i, uint64(mapSize)) dAtA[i] = 0xa i++ - i = encodeVarintAgent(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + i = encodeVarintAgent(dAtA, i, uint64(len(k))) + i += copy(dAtA[i:], k) + if v != nil { + dAtA[i] = 0x12 + i++ + i = encodeVarintAgent(dAtA, i, uint64(v.Size())) + n16, err := v.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n16 } - i += n } } return i, nil } -func (m *UpdateInterfaceRequest) Marshal() (dAtA []byte, err error) { +func (m *StatsContainerResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalTo(dAtA) @@ -2508,25 +3137,25 @@ func (m *UpdateInterfaceRequest) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *UpdateInterfaceRequest) MarshalTo(dAtA []byte) (int, error) { +func (m *StatsContainerResponse) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int _ = l - if m.Interface != nil { + if m.CgroupStats != nil { dAtA[i] = 0xa i++ - i = encodeVarintAgent(dAtA, i, uint64(m.Interface.Size())) - n5, err := m.Interface.MarshalTo(dAtA[i:]) + i = encodeVarintAgent(dAtA, i, uint64(m.CgroupStats.Size())) + n17, err := m.CgroupStats.MarshalTo(dAtA[i:]) if err != nil { return 0, err } - i += n5 + i += n17 } return i, nil } -func (m *AddInterfaceRequest) Marshal() (dAtA []byte, err error) { +func (m *WriteStreamRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalTo(dAtA) @@ -2536,25 +3165,33 @@ func (m *AddInterfaceRequest) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *AddInterfaceRequest) MarshalTo(dAtA []byte) (int, error) { +func (m *WriteStreamRequest) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int _ = l - if m.Interface != nil { + if len(m.ContainerId) > 0 { dAtA[i] = 0xa i++ - i = encodeVarintAgent(dAtA, i, uint64(m.Interface.Size())) - n6, err := m.Interface.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n6 + i = encodeVarintAgent(dAtA, i, uint64(len(m.ContainerId))) + i += copy(dAtA[i:], m.ContainerId) + } + if len(m.ExecId) > 0 { + dAtA[i] = 0x12 + i++ + i = encodeVarintAgent(dAtA, i, uint64(len(m.ExecId))) + i += copy(dAtA[i:], m.ExecId) + } + if len(m.Data) > 0 { + dAtA[i] = 0x1a + i++ + i = encodeVarintAgent(dAtA, i, uint64(len(m.Data))) + i += copy(dAtA[i:], m.Data) } return i, nil } -func (m *RemoveInterfaceRequest) Marshal() (dAtA []byte, err error) { +func (m *WriteStreamResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalTo(dAtA) @@ -2564,25 +3201,20 @@ func (m *RemoveInterfaceRequest) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *RemoveInterfaceRequest) MarshalTo(dAtA []byte) (int, error) { +func (m *WriteStreamResponse) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int _ = l - if m.Interface != nil { - dAtA[i] = 0xa + if m.Len != 0 { + dAtA[i] = 0x8 i++ - i = encodeVarintAgent(dAtA, i, uint64(m.Interface.Size())) - n7, err := m.Interface.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n7 + i = encodeVarintAgent(dAtA, i, uint64(m.Len)) } return i, nil } -func (m *UpdateRoutesRequest) Marshal() (dAtA []byte, err error) { +func (m *ReadStreamRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalTo(dAtA) @@ -2592,25 +3224,32 @@ func (m *UpdateRoutesRequest) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *UpdateRoutesRequest) MarshalTo(dAtA []byte) (int, error) { +func (m *ReadStreamRequest) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int _ = l - if m.Routes != nil { + if len(m.ContainerId) > 0 { dAtA[i] = 0xa i++ - i = encodeVarintAgent(dAtA, i, uint64(m.Routes.Size())) - n8, err := m.Routes.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n8 + i = encodeVarintAgent(dAtA, i, uint64(len(m.ContainerId))) + i += copy(dAtA[i:], m.ContainerId) + } + if len(m.ExecId) > 0 { + dAtA[i] = 0x12 + i++ + i = encodeVarintAgent(dAtA, i, uint64(len(m.ExecId))) + i += copy(dAtA[i:], m.ExecId) + } + if m.Len != 0 { + dAtA[i] = 0x18 + i++ + i = encodeVarintAgent(dAtA, i, uint64(m.Len)) } return i, nil } -func (m *OnlineCPUMemRequest) Marshal() (dAtA []byte, err error) { +func (m *ReadStreamResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalTo(dAtA) @@ -2620,30 +3259,21 @@ func (m *OnlineCPUMemRequest) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *OnlineCPUMemRequest) MarshalTo(dAtA []byte) (int, error) { +func (m *ReadStreamResponse) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int _ = l - if m.Wait { - dAtA[i] = 0x8 - i++ - if m.Wait { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i++ - } - if m.NbCpus != 0 { - dAtA[i] = 0x10 + if len(m.Data) > 0 { + dAtA[i] = 0xa i++ - i = encodeVarintAgent(dAtA, i, uint64(m.NbCpus)) + i = encodeVarintAgent(dAtA, i, uint64(len(m.Data))) + i += copy(dAtA[i:], m.Data) } return i, nil } -func (m *Storage) Marshal() (dAtA []byte, err error) { +func (m *CloseStdinRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalTo(dAtA) @@ -2653,69 +3283,27 @@ func (m *Storage) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Storage) MarshalTo(dAtA []byte) (int, error) { +func (m *CloseStdinRequest) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int _ = l - if len(m.Driver) > 0 { + if len(m.ContainerId) > 0 { dAtA[i] = 0xa i++ - i = encodeVarintAgent(dAtA, i, uint64(len(m.Driver))) - i += copy(dAtA[i:], m.Driver) - } - if len(m.DriverOptions) > 0 { - for _, s := range m.DriverOptions { - dAtA[i] = 0x12 - i++ - l = len(s) - for l >= 1<<7 { - dAtA[i] = uint8(uint64(l)&0x7f | 0x80) - l >>= 7 - i++ - } - dAtA[i] = uint8(l) - i++ - i += copy(dAtA[i:], s) - } - } - if len(m.Source) > 0 { - dAtA[i] = 0x1a - i++ - i = encodeVarintAgent(dAtA, i, uint64(len(m.Source))) - i += copy(dAtA[i:], m.Source) - } - if len(m.Fstype) > 0 { - dAtA[i] = 0x22 - i++ - i = encodeVarintAgent(dAtA, i, uint64(len(m.Fstype))) - i += copy(dAtA[i:], m.Fstype) - } - if len(m.Options) > 0 { - for _, s := range m.Options { - dAtA[i] = 0x2a - i++ - l = len(s) - for l >= 1<<7 { - dAtA[i] = uint8(uint64(l)&0x7f | 0x80) - l >>= 7 - i++ - } - dAtA[i] = uint8(l) - i++ - i += copy(dAtA[i:], s) - } + i = encodeVarintAgent(dAtA, i, uint64(len(m.ContainerId))) + i += copy(dAtA[i:], m.ContainerId) } - if len(m.MountPoint) > 0 { - dAtA[i] = 0x32 + if len(m.ExecId) > 0 { + dAtA[i] = 0x12 i++ - i = encodeVarintAgent(dAtA, i, uint64(len(m.MountPoint))) - i += copy(dAtA[i:], m.MountPoint) + i = encodeVarintAgent(dAtA, i, uint64(len(m.ExecId))) + i += copy(dAtA[i:], m.ExecId) } return i, nil } -func (m *Device) Marshal() (dAtA []byte, err error) { +func (m *TtyWinResizeRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalTo(dAtA) @@ -2725,54 +3313,37 @@ func (m *Device) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Device) MarshalTo(dAtA []byte) (int, error) { +func (m *TtyWinResizeRequest) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int _ = l - if len(m.Id) > 0 { + if len(m.ContainerId) > 0 { dAtA[i] = 0xa i++ - i = encodeVarintAgent(dAtA, i, uint64(len(m.Id))) - i += copy(dAtA[i:], m.Id) + i = encodeVarintAgent(dAtA, i, uint64(len(m.ContainerId))) + i += copy(dAtA[i:], m.ContainerId) } - if len(m.Type) > 0 { + if len(m.ExecId) > 0 { dAtA[i] = 0x12 i++ - i = encodeVarintAgent(dAtA, i, uint64(len(m.Type))) - i += copy(dAtA[i:], m.Type) + i = encodeVarintAgent(dAtA, i, uint64(len(m.ExecId))) + i += copy(dAtA[i:], m.ExecId) } - if len(m.VmPath) > 0 { - dAtA[i] = 0x1a + if m.Row != 0 { + dAtA[i] = 0x18 i++ - i = encodeVarintAgent(dAtA, i, uint64(len(m.VmPath))) - i += copy(dAtA[i:], m.VmPath) + i = encodeVarintAgent(dAtA, i, uint64(m.Row)) } - if len(m.ContainerPath) > 0 { - dAtA[i] = 0x22 + if m.Column != 0 { + dAtA[i] = 0x20 i++ - i = encodeVarintAgent(dAtA, i, uint64(len(m.ContainerPath))) - i += copy(dAtA[i:], m.ContainerPath) - } - if len(m.Options) > 0 { - for _, s := range m.Options { - dAtA[i] = 0x2a - i++ - l = len(s) - for l >= 1<<7 { - dAtA[i] = uint8(uint64(l)&0x7f | 0x80) - l >>= 7 - i++ - } - dAtA[i] = uint8(l) - i++ - i += copy(dAtA[i:], s) - } + i = encodeVarintAgent(dAtA, i, uint64(m.Column)) } return i, nil } -func (m *StringUser) Marshal() (dAtA []byte, err error) { +func (m *CreateSandboxRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalTo(dAtA) @@ -2782,26 +3353,20 @@ func (m *StringUser) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *StringUser) MarshalTo(dAtA []byte) (int, error) { +func (m *CreateSandboxRequest) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int _ = l - if len(m.Uid) > 0 { + if len(m.Hostname) > 0 { dAtA[i] = 0xa i++ - i = encodeVarintAgent(dAtA, i, uint64(len(m.Uid))) - i += copy(dAtA[i:], m.Uid) - } - if len(m.Gid) > 0 { - dAtA[i] = 0x12 - i++ - i = encodeVarintAgent(dAtA, i, uint64(len(m.Gid))) - i += copy(dAtA[i:], m.Gid) + i = encodeVarintAgent(dAtA, i, uint64(len(m.Hostname))) + i += copy(dAtA[i:], m.Hostname) } - if len(m.AdditionalGids) > 0 { - for _, s := range m.AdditionalGids { - dAtA[i] = 0x1a + if len(m.Dns) > 0 { + for _, s := range m.Dns { + dAtA[i] = 0x12 i++ l = len(s) for l >= 1<<7 { @@ -2814,515 +3379,2963 @@ func (m *StringUser) MarshalTo(dAtA []byte) (int, error) { i += copy(dAtA[i:], s) } } - return i, nil -} - -func encodeVarintAgent(dAtA []byte, offset int, v uint64) int { - for v >= 1<<7 { - dAtA[offset] = uint8(v&0x7f | 0x80) - v >>= 7 - offset++ - } - dAtA[offset] = uint8(v) - return offset + 1 -} -func (m *CreateContainerRequest) Size() (n int) { - var l int - _ = l - l = len(m.ContainerId) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) - } - l = len(m.ExecId) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) - } - if m.StringUser != nil { - l = m.StringUser.Size() - n += 1 + l + sovAgent(uint64(l)) - } - if len(m.Devices) > 0 { - for _, e := range m.Devices { - l = e.Size() - n += 1 + l + sovAgent(uint64(l)) - } - } if len(m.Storages) > 0 { - for _, e := range m.Storages { - l = e.Size() - n += 1 + l + sovAgent(uint64(l)) + for _, msg := range m.Storages { + dAtA[i] = 0x1a + i++ + i = encodeVarintAgent(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n } } - if m.OCI != nil { - l = m.OCI.Size() - n += 1 + l + sovAgent(uint64(l)) + if m.SandboxPidns { + dAtA[i] = 0x20 + i++ + if m.SandboxPidns { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i++ } - return n + return i, nil } -func (m *StartContainerRequest) Size() (n int) { - var l int - _ = l - l = len(m.ContainerId) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) +func (m *DestroySandboxRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) + if err != nil { + return nil, err } - return n + return dAtA[:n], nil } -func (m *RemoveContainerRequest) Size() (n int) { +func (m *DestroySandboxRequest) MarshalTo(dAtA []byte) (int, error) { + var i int + _ = i var l int _ = l - l = len(m.ContainerId) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) - } - if m.Timeout != 0 { - n += 1 + sovAgent(uint64(m.Timeout)) - } - return n + return i, nil } -func (m *ExecProcessRequest) Size() (n int) { - var l int - _ = l - l = len(m.ContainerId) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) - } - l = len(m.ExecId) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) - } - if m.StringUser != nil { - l = m.StringUser.Size() - n += 1 + l + sovAgent(uint64(l)) - } - if m.Process != nil { - l = m.Process.Size() - n += 1 + l + sovAgent(uint64(l)) +func (m *IPAddress) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) + if err != nil { + return nil, err } - return n + return dAtA[:n], nil } -func (m *SignalProcessRequest) Size() (n int) { +func (m *IPAddress) MarshalTo(dAtA []byte) (int, error) { + var i int + _ = i var l int _ = l - l = len(m.ContainerId) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) - } - l = len(m.ExecId) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) - } - if m.Signal != 0 { - n += 1 + sovAgent(uint64(m.Signal)) + if m.Family != 0 { + dAtA[i] = 0x8 + i++ + i = encodeVarintAgent(dAtA, i, uint64(m.Family)) } - return n -} - -func (m *WaitProcessRequest) Size() (n int) { - var l int - _ = l - l = len(m.ContainerId) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) + if len(m.Address) > 0 { + dAtA[i] = 0x12 + i++ + i = encodeVarintAgent(dAtA, i, uint64(len(m.Address))) + i += copy(dAtA[i:], m.Address) } - l = len(m.ExecId) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) + if len(m.Mask) > 0 { + dAtA[i] = 0x1a + i++ + i = encodeVarintAgent(dAtA, i, uint64(len(m.Mask))) + i += copy(dAtA[i:], m.Mask) } - return n + return i, nil } -func (m *WaitProcessResponse) Size() (n int) { - var l int - _ = l - if m.Status != 0 { - n += 1 + sovAgent(uint64(m.Status)) +func (m *Interface) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) + if err != nil { + return nil, err } - return n + return dAtA[:n], nil } -func (m *ListProcessesRequest) Size() (n int) { +func (m *Interface) MarshalTo(dAtA []byte) (int, error) { + var i int + _ = i var l int _ = l - l = len(m.ContainerId) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) + if len(m.Device) > 0 { + dAtA[i] = 0xa + i++ + i = encodeVarintAgent(dAtA, i, uint64(len(m.Device))) + i += copy(dAtA[i:], m.Device) } - l = len(m.Format) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) + if len(m.Name) > 0 { + dAtA[i] = 0x12 + i++ + i = encodeVarintAgent(dAtA, i, uint64(len(m.Name))) + i += copy(dAtA[i:], m.Name) } - if len(m.Args) > 0 { - for _, s := range m.Args { - l = len(s) - n += 1 + l + sovAgent(uint64(l)) + if len(m.IPAddresses) > 0 { + for _, msg := range m.IPAddresses { + dAtA[i] = 0x1a + i++ + i = encodeVarintAgent(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n } } - return n + if m.Mtu != 0 { + dAtA[i] = 0x20 + i++ + i = encodeVarintAgent(dAtA, i, uint64(m.Mtu)) + } + if len(m.HwAddr) > 0 { + dAtA[i] = 0x2a + i++ + i = encodeVarintAgent(dAtA, i, uint64(len(m.HwAddr))) + i += copy(dAtA[i:], m.HwAddr) + } + return i, nil } -func (m *ListProcessesResponse) Size() (n int) { - var l int - _ = l - l = len(m.ProcessList) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) +func (m *Route) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) + if err != nil { + return nil, err } - return n + return dAtA[:n], nil } -func (m *WriteStreamRequest) Size() (n int) { +func (m *Route) MarshalTo(dAtA []byte) (int, error) { + var i int + _ = i var l int _ = l - l = len(m.ContainerId) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) + if len(m.Dest) > 0 { + dAtA[i] = 0xa + i++ + i = encodeVarintAgent(dAtA, i, uint64(len(m.Dest))) + i += copy(dAtA[i:], m.Dest) } - l = len(m.ExecId) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) + if len(m.Gateway) > 0 { + dAtA[i] = 0x12 + i++ + i = encodeVarintAgent(dAtA, i, uint64(len(m.Gateway))) + i += copy(dAtA[i:], m.Gateway) } - l = len(m.Data) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) + if len(m.Device) > 0 { + dAtA[i] = 0x1a + i++ + i = encodeVarintAgent(dAtA, i, uint64(len(m.Device))) + i += copy(dAtA[i:], m.Device) } - return n + if len(m.Source) > 0 { + dAtA[i] = 0x22 + i++ + i = encodeVarintAgent(dAtA, i, uint64(len(m.Source))) + i += copy(dAtA[i:], m.Source) + } + if m.Scope != 0 { + dAtA[i] = 0x28 + i++ + i = encodeVarintAgent(dAtA, i, uint64(m.Scope)) + } + return i, nil } -func (m *WriteStreamResponse) Size() (n int) { - var l int - _ = l - if m.Len != 0 { - n += 1 + sovAgent(uint64(m.Len)) +func (m *Routes) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) + if err != nil { + return nil, err } - return n + return dAtA[:n], nil } -func (m *ReadStreamRequest) Size() (n int) { +func (m *Routes) MarshalTo(dAtA []byte) (int, error) { + var i int + _ = i var l int _ = l - l = len(m.ContainerId) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) - } - l = len(m.ExecId) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) - } - if m.Len != 0 { - n += 1 + sovAgent(uint64(m.Len)) + if len(m.Routes) > 0 { + for _, msg := range m.Routes { + dAtA[i] = 0xa + i++ + i = encodeVarintAgent(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n + } } - return n + return i, nil } -func (m *ReadStreamResponse) Size() (n int) { - var l int - _ = l - l = len(m.Data) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) +func (m *UpdateInterfaceRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) + if err != nil { + return nil, err } - return n + return dAtA[:n], nil } -func (m *CloseStdinRequest) Size() (n int) { +func (m *UpdateInterfaceRequest) MarshalTo(dAtA []byte) (int, error) { + var i int + _ = i var l int _ = l - l = len(m.ContainerId) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) + if m.Interface != nil { + dAtA[i] = 0xa + i++ + i = encodeVarintAgent(dAtA, i, uint64(m.Interface.Size())) + n18, err := m.Interface.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n18 } - l = len(m.ExecId) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) + return i, nil +} + +func (m *AddInterfaceRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) + if err != nil { + return nil, err } - return n + return dAtA[:n], nil } -func (m *TtyWinResizeRequest) Size() (n int) { +func (m *AddInterfaceRequest) MarshalTo(dAtA []byte) (int, error) { + var i int + _ = i var l int _ = l - l = len(m.ContainerId) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) - } - l = len(m.ExecId) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) - } - if m.Row != 0 { - n += 1 + sovAgent(uint64(m.Row)) + if m.Interface != nil { + dAtA[i] = 0xa + i++ + i = encodeVarintAgent(dAtA, i, uint64(m.Interface.Size())) + n19, err := m.Interface.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n19 } - if m.Column != 0 { - n += 1 + sovAgent(uint64(m.Column)) + return i, nil +} + +func (m *RemoveInterfaceRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) + if err != nil { + return nil, err } - return n + return dAtA[:n], nil } -func (m *CreateSandboxRequest) Size() (n int) { +func (m *RemoveInterfaceRequest) MarshalTo(dAtA []byte) (int, error) { + var i int + _ = i var l int _ = l - l = len(m.Hostname) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) - } - if len(m.Dns) > 0 { - for _, s := range m.Dns { - l = len(s) - n += 1 + l + sovAgent(uint64(l)) - } - } - if len(m.Storages) > 0 { - for _, e := range m.Storages { - l = e.Size() - n += 1 + l + sovAgent(uint64(l)) + if m.Interface != nil { + dAtA[i] = 0xa + i++ + i = encodeVarintAgent(dAtA, i, uint64(m.Interface.Size())) + n20, err := m.Interface.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } + i += n20 } - if m.SandboxPidns { - n += 2 - } - return n + return i, nil } -func (m *DestroySandboxRequest) Size() (n int) { - var l int - _ = l - return n +func (m *UpdateRoutesRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) + if err != nil { + return nil, err + } + return dAtA[:n], nil } -func (m *IPAddress) Size() (n int) { +func (m *UpdateRoutesRequest) MarshalTo(dAtA []byte) (int, error) { + var i int + _ = i var l int _ = l - if m.Family != 0 { - n += 1 + sovAgent(uint64(m.Family)) - } - l = len(m.Address) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) + if m.Routes != nil { + dAtA[i] = 0xa + i++ + i = encodeVarintAgent(dAtA, i, uint64(m.Routes.Size())) + n21, err := m.Routes.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n21 } - l = len(m.Mask) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) + return i, nil +} + +func (m *OnlineCPUMemRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) + if err != nil { + return nil, err } - return n + return dAtA[:n], nil } -func (m *Interface) Size() (n int) { +func (m *OnlineCPUMemRequest) MarshalTo(dAtA []byte) (int, error) { + var i int + _ = i var l int _ = l - l = len(m.Device) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) - } - l = len(m.Name) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) - } - if len(m.IPAddresses) > 0 { - for _, e := range m.IPAddresses { - l = e.Size() - n += 1 + l + sovAgent(uint64(l)) + if m.Wait { + dAtA[i] = 0x8 + i++ + if m.Wait { + dAtA[i] = 1 + } else { + dAtA[i] = 0 } + i++ } - if m.Mtu != 0 { - n += 1 + sovAgent(uint64(m.Mtu)) + if m.NbCpus != 0 { + dAtA[i] = 0x10 + i++ + i = encodeVarintAgent(dAtA, i, uint64(m.NbCpus)) } - l = len(m.HwAddr) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) + return i, nil +} + +func (m *Storage) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) + if err != nil { + return nil, err } - return n + return dAtA[:n], nil } -func (m *Route) Size() (n int) { +func (m *Storage) MarshalTo(dAtA []byte) (int, error) { + var i int + _ = i var l int _ = l - l = len(m.Dest) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) - } - l = len(m.Gateway) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) + if len(m.Driver) > 0 { + dAtA[i] = 0xa + i++ + i = encodeVarintAgent(dAtA, i, uint64(len(m.Driver))) + i += copy(dAtA[i:], m.Driver) } - l = len(m.Device) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) + if len(m.DriverOptions) > 0 { + for _, s := range m.DriverOptions { + dAtA[i] = 0x12 + i++ + l = len(s) + for l >= 1<<7 { + dAtA[i] = uint8(uint64(l)&0x7f | 0x80) + l >>= 7 + i++ + } + dAtA[i] = uint8(l) + i++ + i += copy(dAtA[i:], s) + } } - l = len(m.Source) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) + if len(m.Source) > 0 { + dAtA[i] = 0x1a + i++ + i = encodeVarintAgent(dAtA, i, uint64(len(m.Source))) + i += copy(dAtA[i:], m.Source) } - if m.Scope != 0 { - n += 1 + sovAgent(uint64(m.Scope)) + if len(m.Fstype) > 0 { + dAtA[i] = 0x22 + i++ + i = encodeVarintAgent(dAtA, i, uint64(len(m.Fstype))) + i += copy(dAtA[i:], m.Fstype) } - return n -} - -func (m *Routes) Size() (n int) { - var l int - _ = l - if len(m.Routes) > 0 { - for _, e := range m.Routes { - l = e.Size() - n += 1 + l + sovAgent(uint64(l)) + if len(m.Options) > 0 { + for _, s := range m.Options { + dAtA[i] = 0x2a + i++ + l = len(s) + for l >= 1<<7 { + dAtA[i] = uint8(uint64(l)&0x7f | 0x80) + l >>= 7 + i++ + } + dAtA[i] = uint8(l) + i++ + i += copy(dAtA[i:], s) } } - return n -} - -func (m *UpdateInterfaceRequest) Size() (n int) { - var l int - _ = l - if m.Interface != nil { - l = m.Interface.Size() - n += 1 + l + sovAgent(uint64(l)) + if len(m.MountPoint) > 0 { + dAtA[i] = 0x32 + i++ + i = encodeVarintAgent(dAtA, i, uint64(len(m.MountPoint))) + i += copy(dAtA[i:], m.MountPoint) } - return n + return i, nil } -func (m *AddInterfaceRequest) Size() (n int) { - var l int - _ = l - if m.Interface != nil { - l = m.Interface.Size() - n += 1 + l + sovAgent(uint64(l)) +func (m *Device) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) + if err != nil { + return nil, err } - return n + return dAtA[:n], nil } -func (m *RemoveInterfaceRequest) Size() (n int) { +func (m *Device) MarshalTo(dAtA []byte) (int, error) { + var i int + _ = i var l int _ = l - if m.Interface != nil { - l = m.Interface.Size() - n += 1 + l + sovAgent(uint64(l)) + if len(m.Id) > 0 { + dAtA[i] = 0xa + i++ + i = encodeVarintAgent(dAtA, i, uint64(len(m.Id))) + i += copy(dAtA[i:], m.Id) } - return n + if len(m.Type) > 0 { + dAtA[i] = 0x12 + i++ + i = encodeVarintAgent(dAtA, i, uint64(len(m.Type))) + i += copy(dAtA[i:], m.Type) + } + if len(m.VmPath) > 0 { + dAtA[i] = 0x1a + i++ + i = encodeVarintAgent(dAtA, i, uint64(len(m.VmPath))) + i += copy(dAtA[i:], m.VmPath) + } + if len(m.ContainerPath) > 0 { + dAtA[i] = 0x22 + i++ + i = encodeVarintAgent(dAtA, i, uint64(len(m.ContainerPath))) + i += copy(dAtA[i:], m.ContainerPath) + } + if len(m.Options) > 0 { + for _, s := range m.Options { + dAtA[i] = 0x2a + i++ + l = len(s) + for l >= 1<<7 { + dAtA[i] = uint8(uint64(l)&0x7f | 0x80) + l >>= 7 + i++ + } + dAtA[i] = uint8(l) + i++ + i += copy(dAtA[i:], s) + } + } + return i, nil } -func (m *UpdateRoutesRequest) Size() (n int) { - var l int - _ = l - if m.Routes != nil { - l = m.Routes.Size() - n += 1 + l + sovAgent(uint64(l)) +func (m *StringUser) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) + if err != nil { + return nil, err } - return n + return dAtA[:n], nil } -func (m *OnlineCPUMemRequest) Size() (n int) { +func (m *StringUser) MarshalTo(dAtA []byte) (int, error) { + var i int + _ = i var l int _ = l - if m.Wait { - n += 2 + if len(m.Uid) > 0 { + dAtA[i] = 0xa + i++ + i = encodeVarintAgent(dAtA, i, uint64(len(m.Uid))) + i += copy(dAtA[i:], m.Uid) } - if m.NbCpus != 0 { - n += 1 + sovAgent(uint64(m.NbCpus)) + if len(m.Gid) > 0 { + dAtA[i] = 0x12 + i++ + i = encodeVarintAgent(dAtA, i, uint64(len(m.Gid))) + i += copy(dAtA[i:], m.Gid) } - return n + if len(m.AdditionalGids) > 0 { + for _, s := range m.AdditionalGids { + dAtA[i] = 0x1a + i++ + l = len(s) + for l >= 1<<7 { + dAtA[i] = uint8(uint64(l)&0x7f | 0x80) + l >>= 7 + i++ + } + dAtA[i] = uint8(l) + i++ + i += copy(dAtA[i:], s) + } + } + return i, nil } -func (m *Storage) Size() (n int) { +func encodeVarintAgent(dAtA []byte, offset int, v uint64) int { + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return offset + 1 +} +func (m *CreateContainerRequest) Size() (n int) { var l int _ = l - l = len(m.Driver) + l = len(m.ContainerId) if l > 0 { n += 1 + l + sovAgent(uint64(l)) } - if len(m.DriverOptions) > 0 { - for _, s := range m.DriverOptions { - l = len(s) + l = len(m.ExecId) + if l > 0 { + n += 1 + l + sovAgent(uint64(l)) + } + if m.StringUser != nil { + l = m.StringUser.Size() + n += 1 + l + sovAgent(uint64(l)) + } + if len(m.Devices) > 0 { + for _, e := range m.Devices { + l = e.Size() n += 1 + l + sovAgent(uint64(l)) } } - l = len(m.Source) + if len(m.Storages) > 0 { + for _, e := range m.Storages { + l = e.Size() + n += 1 + l + sovAgent(uint64(l)) + } + } + if m.OCI != nil { + l = m.OCI.Size() + n += 1 + l + sovAgent(uint64(l)) + } + return n +} + +func (m *StartContainerRequest) Size() (n int) { + var l int + _ = l + l = len(m.ContainerId) if l > 0 { n += 1 + l + sovAgent(uint64(l)) } - l = len(m.Fstype) + return n +} + +func (m *RemoveContainerRequest) Size() (n int) { + var l int + _ = l + l = len(m.ContainerId) if l > 0 { n += 1 + l + sovAgent(uint64(l)) } - if len(m.Options) > 0 { - for _, s := range m.Options { - l = len(s) - n += 1 + l + sovAgent(uint64(l)) - } + if m.Timeout != 0 { + n += 1 + sovAgent(uint64(m.Timeout)) } - l = len(m.MountPoint) + return n +} + +func (m *ExecProcessRequest) Size() (n int) { + var l int + _ = l + l = len(m.ContainerId) + if l > 0 { + n += 1 + l + sovAgent(uint64(l)) + } + l = len(m.ExecId) + if l > 0 { + n += 1 + l + sovAgent(uint64(l)) + } + if m.StringUser != nil { + l = m.StringUser.Size() + n += 1 + l + sovAgent(uint64(l)) + } + if m.Process != nil { + l = m.Process.Size() + n += 1 + l + sovAgent(uint64(l)) + } + return n +} + +func (m *SignalProcessRequest) Size() (n int) { + var l int + _ = l + l = len(m.ContainerId) + if l > 0 { + n += 1 + l + sovAgent(uint64(l)) + } + l = len(m.ExecId) if l > 0 { n += 1 + l + sovAgent(uint64(l)) } + if m.Signal != 0 { + n += 1 + sovAgent(uint64(m.Signal)) + } return n } -func (m *Device) Size() (n int) { +func (m *WaitProcessRequest) Size() (n int) { var l int _ = l - l = len(m.Id) + l = len(m.ContainerId) if l > 0 { n += 1 + l + sovAgent(uint64(l)) } - l = len(m.Type) + l = len(m.ExecId) if l > 0 { n += 1 + l + sovAgent(uint64(l)) } - l = len(m.VmPath) + return n +} + +func (m *WaitProcessResponse) Size() (n int) { + var l int + _ = l + if m.Status != 0 { + n += 1 + sovAgent(uint64(m.Status)) + } + return n +} + +func (m *ListProcessesRequest) Size() (n int) { + var l int + _ = l + l = len(m.ContainerId) if l > 0 { n += 1 + l + sovAgent(uint64(l)) } - l = len(m.ContainerPath) + l = len(m.Format) if l > 0 { n += 1 + l + sovAgent(uint64(l)) } - if len(m.Options) > 0 { - for _, s := range m.Options { + if len(m.Args) > 0 { + for _, s := range m.Args { l = len(s) n += 1 + l + sovAgent(uint64(l)) } } - return n -} + return n +} + +func (m *ListProcessesResponse) Size() (n int) { + var l int + _ = l + l = len(m.ProcessList) + if l > 0 { + n += 1 + l + sovAgent(uint64(l)) + } + return n +} + +func (m *StatsContainerRequest) Size() (n int) { + var l int + _ = l + l = len(m.ContainerId) + if l > 0 { + n += 1 + l + sovAgent(uint64(l)) + } + return n +} + +func (m *CpuUsage) Size() (n int) { + var l int + _ = l + if m.TotalUsage != 0 { + n += 1 + sovAgent(uint64(m.TotalUsage)) + } + if len(m.PercpuUsage) > 0 { + l = 0 + for _, e := range m.PercpuUsage { + l += sovAgent(uint64(e)) + } + n += 1 + sovAgent(uint64(l)) + l + } + if m.UsageInKernelmode != 0 { + n += 1 + sovAgent(uint64(m.UsageInKernelmode)) + } + if m.UsageInUsermode != 0 { + n += 1 + sovAgent(uint64(m.UsageInUsermode)) + } + return n +} + +func (m *ThrottlingData) Size() (n int) { + var l int + _ = l + if m.Periods != 0 { + n += 1 + sovAgent(uint64(m.Periods)) + } + if m.ThrottledPeriods != 0 { + n += 1 + sovAgent(uint64(m.ThrottledPeriods)) + } + if m.ThrottledTime != 0 { + n += 1 + sovAgent(uint64(m.ThrottledTime)) + } + return n +} + +func (m *CpuStats) Size() (n int) { + var l int + _ = l + if m.CpuUsage != nil { + l = m.CpuUsage.Size() + n += 1 + l + sovAgent(uint64(l)) + } + if m.ThrottlingData != nil { + l = m.ThrottlingData.Size() + n += 1 + l + sovAgent(uint64(l)) + } + return n +} + +func (m *PidsStats) Size() (n int) { + var l int + _ = l + if m.Current != 0 { + n += 1 + sovAgent(uint64(m.Current)) + } + if m.Limit != 0 { + n += 1 + sovAgent(uint64(m.Limit)) + } + return n +} + +func (m *MemoryData) Size() (n int) { + var l int + _ = l + if m.Usage != 0 { + n += 1 + sovAgent(uint64(m.Usage)) + } + if m.MaxUsage != 0 { + n += 1 + sovAgent(uint64(m.MaxUsage)) + } + if m.Failcnt != 0 { + n += 1 + sovAgent(uint64(m.Failcnt)) + } + if m.Limit != 0 { + n += 1 + sovAgent(uint64(m.Limit)) + } + return n +} + +func (m *MemoryStats) Size() (n int) { + var l int + _ = l + if m.Cache != 0 { + n += 1 + sovAgent(uint64(m.Cache)) + } + if m.Usage != nil { + l = m.Usage.Size() + n += 1 + l + sovAgent(uint64(l)) + } + if m.SwapUsage != nil { + l = m.SwapUsage.Size() + n += 1 + l + sovAgent(uint64(l)) + } + if m.KernelUsage != nil { + l = m.KernelUsage.Size() + n += 1 + l + sovAgent(uint64(l)) + } + if m.UseHierarchy { + n += 2 + } + if len(m.Stats) > 0 { + for k, v := range m.Stats { + _ = k + _ = v + mapEntrySize := 1 + len(k) + sovAgent(uint64(len(k))) + 1 + sovAgent(uint64(v)) + n += mapEntrySize + 1 + sovAgent(uint64(mapEntrySize)) + } + } + return n +} + +func (m *BlkioStatsEntry) Size() (n int) { + var l int + _ = l + if m.Major != 0 { + n += 1 + sovAgent(uint64(m.Major)) + } + if m.Minor != 0 { + n += 1 + sovAgent(uint64(m.Minor)) + } + l = len(m.Op) + if l > 0 { + n += 1 + l + sovAgent(uint64(l)) + } + if m.Value != 0 { + n += 1 + sovAgent(uint64(m.Value)) + } + return n +} + +func (m *BlkioStats) Size() (n int) { + var l int + _ = l + if len(m.IoServiceBytesRecursive) > 0 { + for _, e := range m.IoServiceBytesRecursive { + l = e.Size() + n += 1 + l + sovAgent(uint64(l)) + } + } + if len(m.IoServicedRecursive) > 0 { + for _, e := range m.IoServicedRecursive { + l = e.Size() + n += 1 + l + sovAgent(uint64(l)) + } + } + if len(m.IoQueuedRecursive) > 0 { + for _, e := range m.IoQueuedRecursive { + l = e.Size() + n += 1 + l + sovAgent(uint64(l)) + } + } + if len(m.IoServiceTimeRecursive) > 0 { + for _, e := range m.IoServiceTimeRecursive { + l = e.Size() + n += 1 + l + sovAgent(uint64(l)) + } + } + if len(m.IoWaitTimeRecursive) > 0 { + for _, e := range m.IoWaitTimeRecursive { + l = e.Size() + n += 1 + l + sovAgent(uint64(l)) + } + } + if len(m.IoMergedRecursive) > 0 { + for _, e := range m.IoMergedRecursive { + l = e.Size() + n += 1 + l + sovAgent(uint64(l)) + } + } + if len(m.IoTimeRecursive) > 0 { + for _, e := range m.IoTimeRecursive { + l = e.Size() + n += 1 + l + sovAgent(uint64(l)) + } + } + if len(m.SectorsRecursive) > 0 { + for _, e := range m.SectorsRecursive { + l = e.Size() + n += 1 + l + sovAgent(uint64(l)) + } + } + return n +} + +func (m *HugetlbStats) Size() (n int) { + var l int + _ = l + if m.Usage != 0 { + n += 1 + sovAgent(uint64(m.Usage)) + } + if m.MaxUsage != 0 { + n += 1 + sovAgent(uint64(m.MaxUsage)) + } + if m.Failcnt != 0 { + n += 1 + sovAgent(uint64(m.Failcnt)) + } + return n +} + +func (m *CgroupStats) Size() (n int) { + var l int + _ = l + if m.CpuStats != nil { + l = m.CpuStats.Size() + n += 1 + l + sovAgent(uint64(l)) + } + if m.MemoryStats != nil { + l = m.MemoryStats.Size() + n += 1 + l + sovAgent(uint64(l)) + } + if m.PidsStats != nil { + l = m.PidsStats.Size() + n += 1 + l + sovAgent(uint64(l)) + } + if m.BlkioStats != nil { + l = m.BlkioStats.Size() + n += 1 + l + sovAgent(uint64(l)) + } + if len(m.HugetlbStats) > 0 { + for k, v := range m.HugetlbStats { + _ = k + _ = v + l = 0 + if v != nil { + l = v.Size() + l += 1 + sovAgent(uint64(l)) + } + mapEntrySize := 1 + len(k) + sovAgent(uint64(len(k))) + l + n += mapEntrySize + 1 + sovAgent(uint64(mapEntrySize)) + } + } + return n +} + +func (m *StatsContainerResponse) Size() (n int) { + var l int + _ = l + if m.CgroupStats != nil { + l = m.CgroupStats.Size() + n += 1 + l + sovAgent(uint64(l)) + } + return n +} + +func (m *WriteStreamRequest) Size() (n int) { + var l int + _ = l + l = len(m.ContainerId) + if l > 0 { + n += 1 + l + sovAgent(uint64(l)) + } + l = len(m.ExecId) + if l > 0 { + n += 1 + l + sovAgent(uint64(l)) + } + l = len(m.Data) + if l > 0 { + n += 1 + l + sovAgent(uint64(l)) + } + return n +} + +func (m *WriteStreamResponse) Size() (n int) { + var l int + _ = l + if m.Len != 0 { + n += 1 + sovAgent(uint64(m.Len)) + } + return n +} + +func (m *ReadStreamRequest) Size() (n int) { + var l int + _ = l + l = len(m.ContainerId) + if l > 0 { + n += 1 + l + sovAgent(uint64(l)) + } + l = len(m.ExecId) + if l > 0 { + n += 1 + l + sovAgent(uint64(l)) + } + if m.Len != 0 { + n += 1 + sovAgent(uint64(m.Len)) + } + return n +} + +func (m *ReadStreamResponse) Size() (n int) { + var l int + _ = l + l = len(m.Data) + if l > 0 { + n += 1 + l + sovAgent(uint64(l)) + } + return n +} + +func (m *CloseStdinRequest) Size() (n int) { + var l int + _ = l + l = len(m.ContainerId) + if l > 0 { + n += 1 + l + sovAgent(uint64(l)) + } + l = len(m.ExecId) + if l > 0 { + n += 1 + l + sovAgent(uint64(l)) + } + return n +} + +func (m *TtyWinResizeRequest) Size() (n int) { + var l int + _ = l + l = len(m.ContainerId) + if l > 0 { + n += 1 + l + sovAgent(uint64(l)) + } + l = len(m.ExecId) + if l > 0 { + n += 1 + l + sovAgent(uint64(l)) + } + if m.Row != 0 { + n += 1 + sovAgent(uint64(m.Row)) + } + if m.Column != 0 { + n += 1 + sovAgent(uint64(m.Column)) + } + return n +} + +func (m *CreateSandboxRequest) Size() (n int) { + var l int + _ = l + l = len(m.Hostname) + if l > 0 { + n += 1 + l + sovAgent(uint64(l)) + } + if len(m.Dns) > 0 { + for _, s := range m.Dns { + l = len(s) + n += 1 + l + sovAgent(uint64(l)) + } + } + if len(m.Storages) > 0 { + for _, e := range m.Storages { + l = e.Size() + n += 1 + l + sovAgent(uint64(l)) + } + } + if m.SandboxPidns { + n += 2 + } + return n +} + +func (m *DestroySandboxRequest) Size() (n int) { + var l int + _ = l + return n +} + +func (m *IPAddress) Size() (n int) { + var l int + _ = l + if m.Family != 0 { + n += 1 + sovAgent(uint64(m.Family)) + } + l = len(m.Address) + if l > 0 { + n += 1 + l + sovAgent(uint64(l)) + } + l = len(m.Mask) + if l > 0 { + n += 1 + l + sovAgent(uint64(l)) + } + return n +} + +func (m *Interface) Size() (n int) { + var l int + _ = l + l = len(m.Device) + if l > 0 { + n += 1 + l + sovAgent(uint64(l)) + } + l = len(m.Name) + if l > 0 { + n += 1 + l + sovAgent(uint64(l)) + } + if len(m.IPAddresses) > 0 { + for _, e := range m.IPAddresses { + l = e.Size() + n += 1 + l + sovAgent(uint64(l)) + } + } + if m.Mtu != 0 { + n += 1 + sovAgent(uint64(m.Mtu)) + } + l = len(m.HwAddr) + if l > 0 { + n += 1 + l + sovAgent(uint64(l)) + } + return n +} + +func (m *Route) Size() (n int) { + var l int + _ = l + l = len(m.Dest) + if l > 0 { + n += 1 + l + sovAgent(uint64(l)) + } + l = len(m.Gateway) + if l > 0 { + n += 1 + l + sovAgent(uint64(l)) + } + l = len(m.Device) + if l > 0 { + n += 1 + l + sovAgent(uint64(l)) + } + l = len(m.Source) + if l > 0 { + n += 1 + l + sovAgent(uint64(l)) + } + if m.Scope != 0 { + n += 1 + sovAgent(uint64(m.Scope)) + } + return n +} + +func (m *Routes) Size() (n int) { + var l int + _ = l + if len(m.Routes) > 0 { + for _, e := range m.Routes { + l = e.Size() + n += 1 + l + sovAgent(uint64(l)) + } + } + return n +} + +func (m *UpdateInterfaceRequest) Size() (n int) { + var l int + _ = l + if m.Interface != nil { + l = m.Interface.Size() + n += 1 + l + sovAgent(uint64(l)) + } + return n +} + +func (m *AddInterfaceRequest) Size() (n int) { + var l int + _ = l + if m.Interface != nil { + l = m.Interface.Size() + n += 1 + l + sovAgent(uint64(l)) + } + return n +} + +func (m *RemoveInterfaceRequest) Size() (n int) { + var l int + _ = l + if m.Interface != nil { + l = m.Interface.Size() + n += 1 + l + sovAgent(uint64(l)) + } + return n +} + +func (m *UpdateRoutesRequest) Size() (n int) { + var l int + _ = l + if m.Routes != nil { + l = m.Routes.Size() + n += 1 + l + sovAgent(uint64(l)) + } + return n +} + +func (m *OnlineCPUMemRequest) Size() (n int) { + var l int + _ = l + if m.Wait { + n += 2 + } + if m.NbCpus != 0 { + n += 1 + sovAgent(uint64(m.NbCpus)) + } + return n +} + +func (m *Storage) Size() (n int) { + var l int + _ = l + l = len(m.Driver) + if l > 0 { + n += 1 + l + sovAgent(uint64(l)) + } + if len(m.DriverOptions) > 0 { + for _, s := range m.DriverOptions { + l = len(s) + n += 1 + l + sovAgent(uint64(l)) + } + } + l = len(m.Source) + if l > 0 { + n += 1 + l + sovAgent(uint64(l)) + } + l = len(m.Fstype) + if l > 0 { + n += 1 + l + sovAgent(uint64(l)) + } + if len(m.Options) > 0 { + for _, s := range m.Options { + l = len(s) + n += 1 + l + sovAgent(uint64(l)) + } + } + l = len(m.MountPoint) + if l > 0 { + n += 1 + l + sovAgent(uint64(l)) + } + return n +} + +func (m *Device) Size() (n int) { + var l int + _ = l + l = len(m.Id) + if l > 0 { + n += 1 + l + sovAgent(uint64(l)) + } + l = len(m.Type) + if l > 0 { + n += 1 + l + sovAgent(uint64(l)) + } + l = len(m.VmPath) + if l > 0 { + n += 1 + l + sovAgent(uint64(l)) + } + l = len(m.ContainerPath) + if l > 0 { + n += 1 + l + sovAgent(uint64(l)) + } + if len(m.Options) > 0 { + for _, s := range m.Options { + l = len(s) + n += 1 + l + sovAgent(uint64(l)) + } + } + return n +} + +func (m *StringUser) Size() (n int) { + var l int + _ = l + l = len(m.Uid) + if l > 0 { + n += 1 + l + sovAgent(uint64(l)) + } + l = len(m.Gid) + if l > 0 { + n += 1 + l + sovAgent(uint64(l)) + } + if len(m.AdditionalGids) > 0 { + for _, s := range m.AdditionalGids { + l = len(s) + n += 1 + l + sovAgent(uint64(l)) + } + } + return n +} + +func sovAgent(x uint64) (n int) { + for { + n++ + x >>= 7 + if x == 0 { + break + } + } + return n +} +func sozAgent(x uint64) (n int) { + return sovAgent(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *CreateContainerRequest) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAgent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: CreateContainerRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: CreateContainerRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ContainerId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAgent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthAgent + } + postIndex := iNdEx + intStringLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ContainerId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ExecId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAgent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthAgent + } + postIndex := iNdEx + intStringLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ExecId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field StringUser", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAgent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthAgent + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.StringUser == nil { + m.StringUser = &StringUser{} + } + if err := m.StringUser.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Devices", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAgent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthAgent + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Devices = append(m.Devices, &Device{}) + if err := m.Devices[len(m.Devices)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Storages", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAgent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthAgent + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Storages = append(m.Storages, &Storage{}) + if err := m.Storages[len(m.Storages)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field OCI", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAgent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthAgent + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.OCI == nil { + m.OCI = &Spec{} + } + if err := m.OCI.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipAgent(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthAgent + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *StartContainerRequest) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAgent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: StartContainerRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: StartContainerRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ContainerId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAgent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthAgent + } + postIndex := iNdEx + intStringLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ContainerId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipAgent(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthAgent + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RemoveContainerRequest) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAgent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: RemoveContainerRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: RemoveContainerRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ContainerId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAgent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthAgent + } + postIndex := iNdEx + intStringLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ContainerId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Timeout", wireType) + } + m.Timeout = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAgent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Timeout |= (uint32(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipAgent(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthAgent + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ExecProcessRequest) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAgent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ExecProcessRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ExecProcessRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ContainerId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAgent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthAgent + } + postIndex := iNdEx + intStringLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ContainerId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ExecId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAgent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthAgent + } + postIndex := iNdEx + intStringLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ExecId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field StringUser", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAgent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthAgent + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.StringUser == nil { + m.StringUser = &StringUser{} + } + if err := m.StringUser.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Process", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAgent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthAgent + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Process == nil { + m.Process = &Process{} + } + if err := m.Process.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipAgent(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthAgent + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *SignalProcessRequest) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAgent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: SignalProcessRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: SignalProcessRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ContainerId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAgent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthAgent + } + postIndex := iNdEx + intStringLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ContainerId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ExecId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAgent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthAgent + } + postIndex := iNdEx + intStringLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ExecId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Signal", wireType) + } + m.Signal = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAgent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Signal |= (uint32(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipAgent(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthAgent + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *WaitProcessRequest) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAgent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: WaitProcessRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: WaitProcessRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ContainerId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAgent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthAgent + } + postIndex := iNdEx + intStringLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ContainerId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ExecId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAgent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthAgent + } + postIndex := iNdEx + intStringLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ExecId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipAgent(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthAgent + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *WaitProcessResponse) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAgent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: WaitProcessResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: WaitProcessResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) + } + m.Status = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAgent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Status |= (int32(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipAgent(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthAgent + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ListProcessesRequest) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAgent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ListProcessesRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ListProcessesRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ContainerId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAgent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthAgent + } + postIndex := iNdEx + intStringLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ContainerId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Format", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAgent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthAgent + } + postIndex := iNdEx + intStringLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Format = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Args", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAgent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthAgent + } + postIndex := iNdEx + intStringLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Args = append(m.Args, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipAgent(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthAgent + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ListProcessesResponse) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAgent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ListProcessesResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ListProcessesResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ProcessList", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAgent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLengthAgent + } + postIndex := iNdEx + byteLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ProcessList = append(m.ProcessList[:0], dAtA[iNdEx:postIndex]...) + if m.ProcessList == nil { + m.ProcessList = []byte{} + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipAgent(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthAgent + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *StatsContainerRequest) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAgent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: StatsContainerRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: StatsContainerRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ContainerId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAgent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthAgent + } + postIndex := iNdEx + intStringLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ContainerId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipAgent(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthAgent + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *CpuUsage) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAgent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: CpuUsage: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: CpuUsage: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field TotalUsage", wireType) + } + m.TotalUsage = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAgent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.TotalUsage |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType == 0 { + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAgent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + m.PercpuUsage = append(m.PercpuUsage, v) + } else if wireType == 2 { + var packedLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAgent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + packedLen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if packedLen < 0 { + return ErrInvalidLengthAgent + } + postIndex := iNdEx + packedLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + for iNdEx < postIndex { + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAgent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + m.PercpuUsage = append(m.PercpuUsage, v) + } + } else { + return fmt.Errorf("proto: wrong wireType = %d for field PercpuUsage", wireType) + } + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field UsageInKernelmode", wireType) + } + m.UsageInKernelmode = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAgent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.UsageInKernelmode |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field UsageInUsermode", wireType) + } + m.UsageInUsermode = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAgent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.UsageInUsermode |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipAgent(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthAgent + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ThrottlingData) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAgent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ThrottlingData: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ThrottlingData: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Periods", wireType) + } + m.Periods = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAgent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Periods |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ThrottledPeriods", wireType) + } + m.ThrottledPeriods = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAgent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.ThrottledPeriods |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ThrottledTime", wireType) + } + m.ThrottledTime = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAgent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.ThrottledTime |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipAgent(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthAgent + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *CpuStats) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAgent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: CpuStats: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: CpuStats: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CpuUsage", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAgent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthAgent + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.CpuUsage == nil { + m.CpuUsage = &CpuUsage{} + } + if err := m.CpuUsage.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ThrottlingData", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAgent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthAgent + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.ThrottlingData == nil { + m.ThrottlingData = &ThrottlingData{} + } + if err := m.ThrottlingData.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipAgent(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthAgent + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } -func (m *StringUser) Size() (n int) { - var l int - _ = l - l = len(m.Uid) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) - } - l = len(m.Gid) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) + if iNdEx > l { + return io.ErrUnexpectedEOF } - if len(m.AdditionalGids) > 0 { - for _, s := range m.AdditionalGids { - l = len(s) - n += 1 + l + sovAgent(uint64(l)) + return nil +} +func (m *PidsStats) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAgent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: PidsStats: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: PidsStats: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Current", wireType) + } + m.Current = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAgent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Current |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Limit", wireType) + } + m.Limit = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAgent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Limit |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipAgent(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthAgent + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy } } - return n -} -func sovAgent(x uint64) (n int) { - for { - n++ - x >>= 7 - if x == 0 { - break - } + if iNdEx > l { + return io.ErrUnexpectedEOF } - return n -} -func sozAgent(x uint64) (n int) { - return sovAgent(uint64((x << 1) ^ uint64((int64(x) >> 63)))) + return nil } -func (m *CreateContainerRequest) Unmarshal(dAtA []byte) error { +func (m *MemoryData) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -3345,17 +6358,17 @@ func (m *CreateContainerRequest) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: CreateContainerRequest: wiretype end group for non-group") + return fmt.Errorf("proto: MemoryData: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: CreateContainerRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: MemoryData: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ContainerId", wireType) + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Usage", wireType) } - var stringLen uint64 + m.Usage = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowAgent @@ -3365,26 +6378,142 @@ func (m *CreateContainerRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + m.Usage |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MaxUsage", wireType) + } + m.MaxUsage = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAgent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.MaxUsage |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Failcnt", wireType) + } + m.Failcnt = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAgent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Failcnt |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Limit", wireType) + } + m.Limit = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAgent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Limit |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipAgent(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { return ErrInvalidLengthAgent } - postIndex := iNdEx + intStringLen - if postIndex > l { + if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.ContainerId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *MemoryStats) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAgent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: MemoryStats: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MemoryStats: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Cache", wireType) + } + m.Cache = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAgent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Cache |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ExecId", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Usage", wireType) } - var stringLen uint64 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowAgent @@ -3394,24 +6523,28 @@ func (m *CreateContainerRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { + if msglen < 0 { return ErrInvalidLengthAgent } - postIndex := iNdEx + intStringLen + postIndex := iNdEx + msglen if postIndex > l { return io.ErrUnexpectedEOF } - m.ExecId = string(dAtA[iNdEx:postIndex]) + if m.Usage == nil { + m.Usage = &MemoryData{} + } + if err := m.Usage.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } iNdEx = postIndex case 3: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field StringUser", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field SwapUsage", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -3435,16 +6568,16 @@ func (m *CreateContainerRequest) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.StringUser == nil { - m.StringUser = &StringUser{} + if m.SwapUsage == nil { + m.SwapUsage = &MemoryData{} } - if err := m.StringUser.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if err := m.SwapUsage.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex case 4: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Devices", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field KernelUsage", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -3468,16 +6601,18 @@ func (m *CreateContainerRequest) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Devices = append(m.Devices, &Device{}) - if err := m.Devices[len(m.Devices)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if m.KernelUsage == nil { + m.KernelUsage = &MemoryData{} + } + if err := m.KernelUsage.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Storages", wireType) + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field UseHierarchy", wireType) } - var msglen int + var v int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowAgent @@ -3487,26 +6622,15 @@ func (m *CreateContainerRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + v |= (int(b) & 0x7F) << shift if b < 0x80 { break } } - if msglen < 0 { - return ErrInvalidLengthAgent - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Storages = append(m.Storages, &Storage{}) - if err := m.Storages[len(m.Storages)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex + m.UseHierarchy = bool(v != 0) case 6: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field OCI", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Stats", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -3530,12 +6654,86 @@ func (m *CreateContainerRequest) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.OCI == nil { - m.OCI = &Spec{} + if m.Stats == nil { + m.Stats = make(map[string]uint64) } - if err := m.OCI.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err + var mapkey string + var mapvalue uint64 + for iNdEx < postIndex { + entryPreIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAgent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + if fieldNum == 1 { + var stringLenmapkey uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAgent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLenmapkey |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + intStringLenmapkey := int(stringLenmapkey) + if intStringLenmapkey < 0 { + return ErrInvalidLengthAgent + } + postStringIndexmapkey := iNdEx + intStringLenmapkey + if postStringIndexmapkey > l { + return io.ErrUnexpectedEOF + } + mapkey = string(dAtA[iNdEx:postStringIndexmapkey]) + iNdEx = postStringIndexmapkey + } else if fieldNum == 2 { + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAgent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + mapvalue |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + } else { + iNdEx = entryPreIndex + skippy, err := skipAgent(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthAgent + } + if (iNdEx + skippy) > postIndex { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } } + m.Stats[mapkey] = mapvalue iNdEx = postIndex default: iNdEx = preIndex @@ -3558,7 +6756,7 @@ func (m *CreateContainerRequest) Unmarshal(dAtA []byte) error { } return nil } -func (m *StartContainerRequest) Unmarshal(dAtA []byte) error { +func (m *BlkioStatsEntry) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -3581,17 +6779,17 @@ func (m *StartContainerRequest) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: StartContainerRequest: wiretype end group for non-group") + return fmt.Errorf("proto: BlkioStatsEntry: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: StartContainerRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: BlkioStatsEntry: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ContainerId", wireType) + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Major", wireType) } - var stringLen uint64 + m.Major = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowAgent @@ -3601,74 +6799,33 @@ func (m *StartContainerRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + m.Major |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthAgent - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ContainerId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipAgent(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthAgent - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RemoveContainerRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent - } - if iNdEx >= l { - return io.ErrUnexpectedEOF + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Minor", wireType) } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break + m.Minor = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAgent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Minor |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: RemoveContainerRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: RemoveContainerRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: + case 3: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ContainerId", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Op", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -3693,13 +6850,13 @@ func (m *RemoveContainerRequest) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.ContainerId = string(dAtA[iNdEx:postIndex]) + m.Op = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex - case 2: + case 4: if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Timeout", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Value", wireType) } - m.Timeout = 0 + m.Value = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowAgent @@ -3709,7 +6866,7 @@ func (m *RemoveContainerRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Timeout |= (uint32(b) & 0x7F) << shift + m.Value |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } @@ -3735,7 +6892,7 @@ func (m *RemoveContainerRequest) Unmarshal(dAtA []byte) error { } return nil } -func (m *ExecProcessRequest) Unmarshal(dAtA []byte) error { +func (m *BlkioStats) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -3758,17 +6915,17 @@ func (m *ExecProcessRequest) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: ExecProcessRequest: wiretype end group for non-group") + return fmt.Errorf("proto: BlkioStats: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: ExecProcessRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: BlkioStats: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ContainerId", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field IoServiceBytesRecursive", wireType) } - var stringLen uint64 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowAgent @@ -3778,26 +6935,28 @@ func (m *ExecProcessRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { + if msglen < 0 { return ErrInvalidLengthAgent } - postIndex := iNdEx + intStringLen + postIndex := iNdEx + msglen if postIndex > l { return io.ErrUnexpectedEOF } - m.ContainerId = string(dAtA[iNdEx:postIndex]) + m.IoServiceBytesRecursive = append(m.IoServiceBytesRecursive, &BlkioStatsEntry{}) + if err := m.IoServiceBytesRecursive[len(m.IoServiceBytesRecursive)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } iNdEx = postIndex case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ExecId", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field IoServicedRecursive", wireType) } - var stringLen uint64 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowAgent @@ -3807,24 +6966,26 @@ func (m *ExecProcessRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { + if msglen < 0 { return ErrInvalidLengthAgent } - postIndex := iNdEx + intStringLen + postIndex := iNdEx + msglen if postIndex > l { return io.ErrUnexpectedEOF } - m.ExecId = string(dAtA[iNdEx:postIndex]) + m.IoServicedRecursive = append(m.IoServicedRecursive, &BlkioStatsEntry{}) + if err := m.IoServicedRecursive[len(m.IoServicedRecursive)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } iNdEx = postIndex case 3: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field StringUser", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field IoQueuedRecursive", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -3848,16 +7009,14 @@ func (m *ExecProcessRequest) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.StringUser == nil { - m.StringUser = &StringUser{} - } - if err := m.StringUser.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + m.IoQueuedRecursive = append(m.IoQueuedRecursive, &BlkioStatsEntry{}) + if err := m.IoQueuedRecursive[len(m.IoQueuedRecursive)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex case 4: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Process", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field IoServiceTimeRecursive", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -3881,68 +7040,47 @@ func (m *ExecProcessRequest) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.Process == nil { - m.Process = &Process{} - } - if err := m.Process.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + m.IoServiceTimeRecursive = append(m.IoServiceTimeRecursive, &BlkioStatsEntry{}) + if err := m.IoServiceTimeRecursive[len(m.IoServiceTimeRecursive)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipAgent(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthAgent + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field IoWaitTimeRecursive", wireType) } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAgent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *SignalProcessRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent + if msglen < 0 { + return ErrInvalidLengthAgent } - if iNdEx >= l { + postIndex := iNdEx + msglen + if postIndex > l { return io.ErrUnexpectedEOF } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break + m.IoWaitTimeRecursive = append(m.IoWaitTimeRecursive, &BlkioStatsEntry{}) + if err := m.IoWaitTimeRecursive[len(m.IoWaitTimeRecursive)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: SignalProcessRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: SignalProcessRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: + iNdEx = postIndex + case 6: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ContainerId", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field IoMergedRecursive", wireType) } - var stringLen uint64 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowAgent @@ -3952,26 +7090,28 @@ func (m *SignalProcessRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { + if msglen < 0 { return ErrInvalidLengthAgent } - postIndex := iNdEx + intStringLen + postIndex := iNdEx + msglen if postIndex > l { return io.ErrUnexpectedEOF } - m.ContainerId = string(dAtA[iNdEx:postIndex]) + m.IoMergedRecursive = append(m.IoMergedRecursive, &BlkioStatsEntry{}) + if err := m.IoMergedRecursive[len(m.IoMergedRecursive)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } iNdEx = postIndex - case 2: + case 7: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ExecId", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field IoTimeRecursive", wireType) } - var stringLen uint64 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowAgent @@ -3981,26 +7121,28 @@ func (m *SignalProcessRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { + if msglen < 0 { return ErrInvalidLengthAgent } - postIndex := iNdEx + intStringLen + postIndex := iNdEx + msglen if postIndex > l { return io.ErrUnexpectedEOF } - m.ExecId = string(dAtA[iNdEx:postIndex]) + m.IoTimeRecursive = append(m.IoTimeRecursive, &BlkioStatsEntry{}) + if err := m.IoTimeRecursive[len(m.IoTimeRecursive)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } iNdEx = postIndex - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Signal", wireType) + case 8: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SectorsRecursive", wireType) } - m.Signal = 0 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowAgent @@ -4010,11 +7152,23 @@ func (m *SignalProcessRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Signal |= (uint32(b) & 0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } } + if msglen < 0 { + return ErrInvalidLengthAgent + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.SectorsRecursive = append(m.SectorsRecursive, &BlkioStatsEntry{}) + if err := m.SectorsRecursive[len(m.SectorsRecursive)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipAgent(dAtA[iNdEx:]) @@ -4036,7 +7190,7 @@ func (m *SignalProcessRequest) Unmarshal(dAtA []byte) error { } return nil } -func (m *WaitProcessRequest) Unmarshal(dAtA []byte) error { +func (m *HugetlbStats) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -4059,17 +7213,17 @@ func (m *WaitProcessRequest) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: WaitProcessRequest: wiretype end group for non-group") + return fmt.Errorf("proto: HugetlbStats: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: WaitProcessRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: HugetlbStats: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ContainerId", wireType) + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Usage", wireType) } - var stringLen uint64 + m.Usage = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowAgent @@ -4079,26 +7233,16 @@ func (m *WaitProcessRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + m.Usage |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthAgent - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ContainerId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ExecId", wireType) + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MaxUsage", wireType) } - var stringLen uint64 + m.MaxUsage = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowAgent @@ -4108,21 +7252,30 @@ func (m *WaitProcessRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + m.MaxUsage |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthAgent + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Failcnt", wireType) } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF + m.Failcnt = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAgent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Failcnt |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } } - m.ExecId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipAgent(dAtA[iNdEx:]) @@ -4144,7 +7297,7 @@ func (m *WaitProcessRequest) Unmarshal(dAtA []byte) error { } return nil } -func (m *WaitProcessResponse) Unmarshal(dAtA []byte) error { +func (m *CgroupStats) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -4167,17 +7320,17 @@ func (m *WaitProcessResponse) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: WaitProcessResponse: wiretype end group for non-group") + return fmt.Errorf("proto: CgroupStats: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: WaitProcessResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: CgroupStats: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CpuStats", wireType) } - m.Status = 0 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowAgent @@ -4187,66 +7340,63 @@ func (m *WaitProcessResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Status |= (int32(b) & 0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } } - default: - iNdEx = preIndex - skippy, err := skipAgent(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { + if msglen < 0 { return ErrInvalidLengthAgent } - if (iNdEx + skippy) > l { + postIndex := iNdEx + msglen + if postIndex > l { return io.ErrUnexpectedEOF } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ListProcessesRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAgent + if m.CpuStats == nil { + m.CpuStats = &CpuStats{} } - if iNdEx >= l { + if err := m.CpuStats.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field MemoryStats", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAgent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthAgent + } + postIndex := iNdEx + msglen + if postIndex > l { return io.ErrUnexpectedEOF } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break + if m.MemoryStats == nil { + m.MemoryStats = &MemoryStats{} } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ListProcessesRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ListProcessesRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: + if err := m.MemoryStats.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ContainerId", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field PidsStats", wireType) } - var stringLen uint64 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowAgent @@ -4256,26 +7406,30 @@ func (m *ListProcessesRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { + if msglen < 0 { return ErrInvalidLengthAgent } - postIndex := iNdEx + intStringLen + postIndex := iNdEx + msglen if postIndex > l { return io.ErrUnexpectedEOF } - m.ContainerId = string(dAtA[iNdEx:postIndex]) + if m.PidsStats == nil { + m.PidsStats = &PidsStats{} + } + if err := m.PidsStats.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } iNdEx = postIndex - case 2: + case 4: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Format", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field BlkioStats", wireType) } - var stringLen uint64 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowAgent @@ -4285,26 +7439,30 @@ func (m *ListProcessesRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { + if msglen < 0 { return ErrInvalidLengthAgent } - postIndex := iNdEx + intStringLen + postIndex := iNdEx + msglen if postIndex > l { return io.ErrUnexpectedEOF } - m.Format = string(dAtA[iNdEx:postIndex]) + if m.BlkioStats == nil { + m.BlkioStats = &BlkioStats{} + } + if err := m.BlkioStats.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } iNdEx = postIndex - case 3: + case 5: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Args", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field HugetlbStats", wireType) } - var stringLen uint64 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowAgent @@ -4314,20 +7472,114 @@ func (m *ListProcessesRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { + if msglen < 0 { return ErrInvalidLengthAgent } - postIndex := iNdEx + intStringLen + postIndex := iNdEx + msglen if postIndex > l { return io.ErrUnexpectedEOF } - m.Args = append(m.Args, string(dAtA[iNdEx:postIndex])) + if m.HugetlbStats == nil { + m.HugetlbStats = make(map[string]*HugetlbStats) + } + var mapkey string + var mapvalue *HugetlbStats + for iNdEx < postIndex { + entryPreIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAgent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + if fieldNum == 1 { + var stringLenmapkey uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAgent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLenmapkey |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + intStringLenmapkey := int(stringLenmapkey) + if intStringLenmapkey < 0 { + return ErrInvalidLengthAgent + } + postStringIndexmapkey := iNdEx + intStringLenmapkey + if postStringIndexmapkey > l { + return io.ErrUnexpectedEOF + } + mapkey = string(dAtA[iNdEx:postStringIndexmapkey]) + iNdEx = postStringIndexmapkey + } else if fieldNum == 2 { + var mapmsglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAgent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + mapmsglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if mapmsglen < 0 { + return ErrInvalidLengthAgent + } + postmsgIndex := iNdEx + mapmsglen + if mapmsglen < 0 { + return ErrInvalidLengthAgent + } + if postmsgIndex > l { + return io.ErrUnexpectedEOF + } + mapvalue = &HugetlbStats{} + if err := mapvalue.Unmarshal(dAtA[iNdEx:postmsgIndex]); err != nil { + return err + } + iNdEx = postmsgIndex + } else { + iNdEx = entryPreIndex + skippy, err := skipAgent(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthAgent + } + if (iNdEx + skippy) > postIndex { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + m.HugetlbStats[mapkey] = mapvalue iNdEx = postIndex default: iNdEx = preIndex @@ -4350,7 +7602,7 @@ func (m *ListProcessesRequest) Unmarshal(dAtA []byte) error { } return nil } -func (m *ListProcessesResponse) Unmarshal(dAtA []byte) error { +func (m *StatsContainerResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -4373,17 +7625,17 @@ func (m *ListProcessesResponse) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: ListProcessesResponse: wiretype end group for non-group") + return fmt.Errorf("proto: StatsContainerResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: ListProcessesResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: StatsContainerResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ProcessList", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field CgroupStats", wireType) } - var byteLen int + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowAgent @@ -4393,21 +7645,23 @@ func (m *ListProcessesResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= (int(b) & 0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } } - if byteLen < 0 { + if msglen < 0 { return ErrInvalidLengthAgent } - postIndex := iNdEx + byteLen + postIndex := iNdEx + msglen if postIndex > l { return io.ErrUnexpectedEOF } - m.ProcessList = append(m.ProcessList[:0], dAtA[iNdEx:postIndex]...) - if m.ProcessList == nil { - m.ProcessList = []byte{} + if m.CgroupStats == nil { + m.CgroupStats = &CgroupStats{} + } + if err := m.CgroupStats.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err } iNdEx = postIndex default: @@ -6975,91 +10229,140 @@ var ( func init() { proto.RegisterFile("agent.proto", fileDescriptorAgent) } var fileDescriptorAgent = []byte{ - // 1367 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xc4, 0x56, 0x5f, 0x6f, 0x1b, 0xc5, - 0x16, 0xbf, 0x1b, 0x3b, 0x4e, 0x7c, 0x6c, 0x27, 0xe9, 0x24, 0x4d, 0xf6, 0xba, 0x55, 0x6f, 0xba, - 0xf7, 0xde, 0x36, 0x20, 0x35, 0x15, 0x01, 0x81, 0x54, 0x84, 0x4a, 0xea, 0x96, 0x10, 0x09, 0x14, - 0x6b, 0x4c, 0x54, 0xde, 0xac, 0xc9, 0xee, 0xc4, 0x59, 0xf0, 0xee, 0x2c, 0x33, 0xb3, 0x49, 0x43, - 0xdf, 0x79, 0xe0, 0x99, 0x8f, 0xc1, 0x1b, 0x5f, 0x82, 0x47, 0x3e, 0x02, 0xea, 0xa7, 0xe0, 0x11, - 0xcd, 0xbf, 0xb5, 0xd7, 0x59, 0x17, 0xd1, 0x46, 0xe2, 0x69, 0xe7, 0x9c, 0x33, 0x7b, 0xce, 0x6f, - 0xce, 0x9c, 0x39, 0xe7, 0x07, 0x2d, 0x32, 0xa2, 0xa9, 0xdc, 0xcd, 0x38, 0x93, 0x0c, 0xd5, 0x47, - 0x3c, 0x0b, 0xbb, 0x4d, 0x16, 0xc6, 0x46, 0xd1, 0xbd, 0x35, 0x62, 0x6c, 0x34, 0xa6, 0x0f, 0xb5, - 0x74, 0x92, 0x9f, 0x3e, 0xa4, 0x49, 0x26, 0x2f, 0x8d, 0x31, 0xf8, 0xc3, 0x83, 0xcd, 0x1e, 0xa7, - 0x44, 0xd2, 0x1e, 0x4b, 0x25, 0x89, 0x53, 0xca, 0x31, 0xfd, 0x2e, 0xa7, 0x42, 0xa2, 0xbb, 0xd0, - 0x0e, 0x9d, 0x6e, 0x18, 0x47, 0xbe, 0xb7, 0xed, 0xed, 0x34, 0x71, 0xab, 0xd0, 0x1d, 0x46, 0x68, - 0x0b, 0x96, 0xe8, 0x0b, 0x1a, 0x2a, 0xeb, 0x82, 0xb6, 0x36, 0x94, 0x78, 0x18, 0xa1, 0xf7, 0xa0, - 0x25, 0x24, 0x8f, 0xd3, 0xd1, 0x30, 0x17, 0x94, 0xfb, 0xb5, 0x6d, 0x6f, 0xa7, 0xb5, 0xb7, 0xb6, - 0xab, 0xa0, 0xed, 0x0e, 0xb4, 0xe1, 0x58, 0x50, 0x8e, 0x41, 0x14, 0x6b, 0x74, 0x0f, 0x96, 0x22, - 0x7a, 0x1e, 0x87, 0x54, 0xf8, 0xf5, 0xed, 0xda, 0x4e, 0x6b, 0xaf, 0x6d, 0xb6, 0x3f, 0xd5, 0x4a, - 0xec, 0x8c, 0xe8, 0x1d, 0x58, 0x16, 0x92, 0x71, 0x32, 0xa2, 0xc2, 0x5f, 0xd4, 0x1b, 0x3b, 0xce, - 0xaf, 0xd6, 0xe2, 0xc2, 0x8c, 0x6e, 0x43, 0xed, 0xa8, 0x77, 0xe8, 0x37, 0x74, 0x74, 0xb0, 0xbb, - 0x32, 0x1a, 0x62, 0xa5, 0x0e, 0x1e, 0xc1, 0xcd, 0x81, 0x24, 0x5c, 0xbe, 0xc1, 0xc1, 0x83, 0x63, - 0xd8, 0xc4, 0x34, 0x61, 0xe7, 0x6f, 0x94, 0x35, 0x1f, 0x96, 0x64, 0x9c, 0x50, 0x96, 0x4b, 0x9d, - 0xb5, 0x0e, 0x76, 0x62, 0xf0, 0xb3, 0x07, 0xe8, 0xd9, 0x0b, 0x1a, 0xf6, 0x39, 0x0b, 0xa9, 0x10, - 0xff, 0xd0, 0x4d, 0xdc, 0x87, 0xa5, 0xcc, 0x00, 0xf0, 0xeb, 0x7a, 0xbb, 0x4d, 0xb0, 0x43, 0xe5, - 0xac, 0xc1, 0x37, 0xb0, 0x31, 0x88, 0x47, 0x29, 0x19, 0x5f, 0x23, 0xde, 0x4d, 0x68, 0x08, 0xed, - 0x53, 0x43, 0xed, 0x60, 0x2b, 0x05, 0x7d, 0x40, 0xcf, 0x49, 0x2c, 0xaf, 0x2f, 0x52, 0xf0, 0x00, - 0xd6, 0x4b, 0x1e, 0x45, 0xc6, 0x52, 0x41, 0x35, 0x00, 0x49, 0x64, 0x2e, 0xb4, 0xb3, 0x45, 0x6c, - 0xa5, 0x80, 0xc2, 0xc6, 0x17, 0xb1, 0x70, 0xdb, 0xe9, 0xdf, 0x81, 0xb0, 0x09, 0x8d, 0x53, 0xc6, - 0x13, 0x22, 0x1d, 0x02, 0x23, 0x21, 0x04, 0x75, 0xc2, 0x47, 0xc2, 0xaf, 0x6d, 0xd7, 0x76, 0x9a, - 0x58, 0xaf, 0x55, 0x55, 0xce, 0x84, 0xb1, 0xb8, 0xee, 0x42, 0xdb, 0xe6, 0x7d, 0x38, 0x8e, 0x85, - 0xd4, 0x71, 0xda, 0xb8, 0x65, 0x75, 0xea, 0x9f, 0x20, 0x02, 0xf4, 0x9c, 0xc7, 0x92, 0x0e, 0x24, - 0xa7, 0x24, 0xb9, 0x8e, 0xdb, 0x40, 0x50, 0x8f, 0x88, 0x24, 0xfa, 0x2e, 0xda, 0x58, 0xaf, 0x83, - 0xfb, 0xb0, 0x5e, 0x8a, 0x62, 0xf1, 0xad, 0x41, 0x6d, 0x4c, 0x53, 0xed, 0xbd, 0x83, 0xd5, 0x32, - 0x20, 0x70, 0x03, 0x53, 0x12, 0x5d, 0x1f, 0x1a, 0x1b, 0xa2, 0x36, 0x09, 0xb1, 0x03, 0x68, 0x3a, - 0x84, 0x85, 0xe2, 0x50, 0x7b, 0x53, 0xa8, 0x8f, 0xe0, 0x46, 0x6f, 0xcc, 0x04, 0x1d, 0xc8, 0x28, - 0x4e, 0xaf, 0xa3, 0x7c, 0x5e, 0xc2, 0xfa, 0x57, 0xf2, 0xf2, 0xb9, 0x72, 0x26, 0xe2, 0xef, 0xe9, - 0x35, 0x9d, 0x8f, 0xb3, 0x0b, 0x77, 0x3e, 0xce, 0x2e, 0x54, 0xe5, 0x84, 0x6c, 0x9c, 0x27, 0xa9, - 0x7e, 0x89, 0x1d, 0x6c, 0xa5, 0xe0, 0x27, 0x0f, 0x36, 0x4c, 0xdb, 0x1e, 0x90, 0x34, 0x3a, 0x61, - 0x2f, 0x5c, 0xf8, 0x2e, 0x2c, 0x9f, 0x31, 0x21, 0x53, 0x92, 0x50, 0x1b, 0xba, 0x90, 0x95, 0xfb, - 0x28, 0x15, 0xfe, 0x82, 0xae, 0x36, 0xb5, 0x2c, 0xf5, 0xd2, 0xda, 0xeb, 0x7b, 0xe9, 0x7f, 0xa1, - 0x23, 0x4c, 0xa8, 0x61, 0x16, 0x2b, 0x37, 0x0a, 0xd0, 0x32, 0x6e, 0x5b, 0x65, 0x5f, 0xe9, 0x82, - 0x2d, 0xb8, 0xf9, 0x94, 0x0a, 0xc9, 0xd9, 0x65, 0x19, 0x56, 0x40, 0xa0, 0x79, 0xd8, 0xdf, 0x8f, - 0x22, 0x4e, 0x85, 0x40, 0xf7, 0xa0, 0x71, 0x4a, 0x92, 0x78, 0x7c, 0xa9, 0x11, 0xae, 0xec, 0xad, - 0x98, 0x98, 0x87, 0xfd, 0xcf, 0xb4, 0x16, 0x5b, 0xab, 0xea, 0x93, 0xc4, 0xfc, 0x62, 0xf3, 0xe4, - 0x44, 0x75, 0xc1, 0x09, 0x11, 0xdf, 0xea, 0x4c, 0x35, 0xb1, 0x5e, 0xab, 0x94, 0x34, 0x0f, 0x53, - 0x49, 0xf9, 0x29, 0x09, 0xf5, 0x2b, 0x36, 0x03, 0xc3, 0x66, 0xc1, 0x4a, 0xea, 0x4f, 0x9d, 0x1b, - 0xe3, 0x50, 0xaf, 0x55, 0x8b, 0x2c, 0xc0, 0x15, 0x89, 0x58, 0x75, 0xa0, 0xac, 0x01, 0x4f, 0xef, - 0x51, 0xa9, 0x4c, 0x64, 0xae, 0x73, 0x50, 0xc7, 0x6a, 0xa9, 0x02, 0x9e, 0x5d, 0xa8, 0x0d, 0xfe, - 0xa2, 0x09, 0x68, 0xa4, 0xe0, 0x25, 0x2c, 0x62, 0x96, 0x4b, 0x53, 0x94, 0xd4, 0xbe, 0xdb, 0x26, - 0xd6, 0x6b, 0x75, 0xc2, 0x11, 0x91, 0xf4, 0x82, 0x5c, 0xba, 0x13, 0x5a, 0x71, 0x0a, 0x7f, 0xad, - 0x84, 0x5f, 0x75, 0x27, 0x96, 0xf3, 0x90, 0xea, 0xd8, 0x4d, 0x6c, 0x25, 0xb4, 0x01, 0x8b, 0x22, - 0x64, 0x19, 0xd5, 0xd1, 0x3b, 0xd8, 0x08, 0xc1, 0x03, 0x68, 0xe8, 0xe0, 0xea, 0xfa, 0xec, 0xca, - 0xf7, 0xf4, 0xf1, 0x5a, 0xe6, 0x78, 0x5a, 0x87, 0xad, 0x29, 0x38, 0x80, 0xcd, 0xe3, 0x2c, 0x22, - 0x92, 0x16, 0x79, 0x74, 0x65, 0xf5, 0x00, 0x9a, 0xb1, 0xd3, 0xe9, 0x13, 0x4c, 0x12, 0x54, 0x6c, - 0x9d, 0xec, 0x08, 0x9e, 0xc2, 0xfa, 0x7e, 0x14, 0xbd, 0xad, 0x97, 0x03, 0x37, 0x64, 0xdf, 0xd6, - 0xd1, 0xc7, 0xb0, 0x6e, 0xce, 0x65, 0xce, 0xe9, 0xbc, 0xfc, 0x0f, 0x1a, 0xdc, 0xe5, 0xc4, 0x9b, - 0x10, 0x0e, 0xbb, 0xc9, 0xda, 0x82, 0x27, 0xb0, 0x7e, 0x94, 0x8e, 0xe3, 0x94, 0xf6, 0xfa, 0xc7, - 0x5f, 0xd2, 0xa2, 0x8f, 0x21, 0xa8, 0x5f, 0x90, 0xd8, 0x5c, 0xe7, 0x32, 0xd6, 0x6b, 0xf5, 0xb0, - 0xd3, 0x93, 0x61, 0x98, 0xe5, 0xc2, 0x0e, 0xf6, 0x46, 0x7a, 0xd2, 0xcb, 0x72, 0x11, 0xfc, 0xe2, - 0xc1, 0x92, 0x7d, 0x52, 0xfa, 0x66, 0x79, 0x7c, 0x4e, 0x79, 0x51, 0x99, 0x5a, 0x42, 0xff, 0x87, - 0x15, 0xb3, 0x1a, 0xb2, 0x4c, 0xc6, 0xac, 0x78, 0xa8, 0x1d, 0xa3, 0x3d, 0x32, 0xca, 0xa9, 0x02, - 0xa8, 0x95, 0x0a, 0x40, 0xcd, 0x18, 0x21, 0x2f, 0xb3, 0xa2, 0x30, 0x8c, 0xa4, 0x4a, 0xcc, 0xf9, - 0x5b, 0xd4, 0xfe, 0x9c, 0x88, 0xfe, 0x03, 0xad, 0x84, 0xe5, 0xa9, 0x1c, 0x66, 0x2c, 0x4e, 0xa5, - 0x66, 0x49, 0x4d, 0x0c, 0x5a, 0xd5, 0x57, 0x9a, 0xe0, 0x07, 0x0f, 0x1a, 0x86, 0x7d, 0xa1, 0x15, - 0x58, 0x28, 0x7a, 0xd9, 0x42, 0xac, 0xe7, 0x82, 0x8e, 0x65, 0x9f, 0x91, 0x8e, 0xb4, 0x05, 0x4b, - 0xe7, 0xc9, 0x30, 0x23, 0xf2, 0xcc, 0x41, 0x3b, 0x4f, 0xfa, 0x44, 0x9e, 0xa9, 0x93, 0x4d, 0x5a, - 0xa2, 0xb6, 0x1b, 0x88, 0x9d, 0x42, 0xab, 0xb7, 0xcd, 0x45, 0x1a, 0x7c, 0x0d, 0x30, 0xa1, 0x2a, - 0xea, 0xed, 0xe5, 0x05, 0x18, 0xb5, 0x54, 0x9a, 0x51, 0xd1, 0x4c, 0xd5, 0x12, 0xdd, 0x83, 0x15, - 0x12, 0x45, 0xb1, 0xfa, 0x9d, 0x8c, 0x0f, 0xe2, 0xc8, 0xcd, 0xd8, 0x19, 0xed, 0xbb, 0x5d, 0x58, - 0x76, 0x6d, 0x07, 0x35, 0x60, 0xe1, 0xfc, 0x83, 0xb5, 0x7f, 0xe9, 0xef, 0x87, 0x6b, 0xde, 0xde, - 0x8f, 0x00, 0xed, 0x7d, 0x45, 0xac, 0x07, 0x94, 0xeb, 0x24, 0x1c, 0xc0, 0xea, 0x0c, 0x55, 0x46, - 0xb7, 0x4d, 0xc9, 0x54, 0x33, 0xe8, 0xee, 0xe6, 0xae, 0xa1, 0xde, 0xbb, 0x8e, 0x7a, 0xef, 0x3e, - 0x53, 0xd4, 0x1b, 0x3d, 0x83, 0x95, 0x32, 0xf3, 0x44, 0xb7, 0x5c, 0xdb, 0xad, 0xe0, 0xa3, 0x73, - 0xdd, 0x1c, 0xc0, 0xea, 0x0c, 0x09, 0x75, 0x78, 0xaa, 0xb9, 0xe9, 0x5c, 0x47, 0x8f, 0xa1, 0x35, - 0xc5, 0x3a, 0x91, 0x6f, 0x9c, 0x5c, 0x25, 0xa2, 0x73, 0x1d, 0xf4, 0xa0, 0x53, 0x22, 0x82, 0xa8, - 0x6b, 0xcf, 0x53, 0xc1, 0x0e, 0xe7, 0x3a, 0x79, 0x02, 0xad, 0x29, 0x3e, 0xe6, 0x50, 0x5c, 0x25, - 0x7d, 0xdd, 0x7f, 0x57, 0x58, 0xec, 0xe4, 0xff, 0x1c, 0x3a, 0x25, 0xf6, 0xe4, 0x80, 0x54, 0x31, - 0xb7, 0xee, 0xad, 0x4a, 0x9b, 0xf5, 0xb4, 0x0f, 0x60, 0x59, 0x4e, 0x14, 0xa7, 0x05, 0x98, 0x2b, - 0xec, 0xaa, 0x00, 0x53, 0xc1, 0x88, 0x1e, 0x03, 0x18, 0x72, 0x12, 0xb1, 0x5c, 0xa2, 0x2d, 0x77, - 0x35, 0x33, 0x8c, 0xa8, 0xeb, 0x5f, 0x35, 0x5c, 0x71, 0x40, 0x39, 0x7f, 0x13, 0x07, 0x9f, 0x00, - 0x4c, 0x48, 0x8f, 0x73, 0x70, 0x85, 0x06, 0xcd, 0xbd, 0x91, 0x7d, 0x68, 0x4f, 0x53, 0x1c, 0x64, - 0xcf, 0x5a, 0x41, 0x7b, 0xe6, 0xba, 0x78, 0x04, 0xed, 0xe9, 0x49, 0xe0, 0x5c, 0x54, 0x4c, 0x87, - 0xee, 0x6c, 0x07, 0x47, 0x9f, 0xc2, 0xea, 0xcc, 0x38, 0x72, 0xf5, 0x5d, 0x3d, 0xa5, 0x2a, 0x3d, - 0xcc, 0x4c, 0x90, 0xf2, 0x0b, 0xf9, 0x6b, 0x0f, 0x1f, 0x41, 0x7b, 0x7a, 0x74, 0x38, 0xfc, 0x15, - 0xe3, 0xa4, 0x5b, 0x1a, 0x1f, 0xea, 0x49, 0x94, 0x08, 0x9a, 0xab, 0xc4, 0x2a, 0xd6, 0xf6, 0xba, - 0x46, 0x51, 0xe6, 0x53, 0xae, 0x51, 0x54, 0xb2, 0xac, 0xd7, 0xdd, 0xe3, 0xf4, 0x08, 0x73, 0x87, - 0xa8, 0x18, 0x6b, 0xf3, 0x5c, 0x3c, 0x69, 0xff, 0xfa, 0xea, 0x8e, 0xf7, 0xdb, 0xab, 0x3b, 0xde, - 0xef, 0xaf, 0xee, 0x78, 0x27, 0x0d, 0x6d, 0x7d, 0xff, 0xcf, 0x00, 0x00, 0x00, 0xff, 0xff, 0x42, - 0x3f, 0x03, 0x5f, 0x79, 0x10, 0x00, 0x00, + // 2160 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xc4, 0x58, 0xcd, 0x6e, 0x1b, 0xc9, + 0xf1, 0xff, 0xf3, 0x53, 0x62, 0x91, 0x94, 0xc4, 0x91, 0x2c, 0x73, 0x69, 0xc3, 0x7f, 0xed, 0x38, + 0xf1, 0x2a, 0xbb, 0xb0, 0x8c, 0xd5, 0x1a, 0xc9, 0xc2, 0x8b, 0xc5, 0x46, 0x92, 0x1d, 0x5b, 0xd9, + 0x38, 0x66, 0x5a, 0x16, 0x1c, 0x20, 0x07, 0xa2, 0x35, 0xd3, 0xa6, 0x7a, 0xcd, 0x99, 0x9e, 0xed, + 0xee, 0x91, 0xc4, 0x2c, 0x90, 0x63, 0x9e, 0x20, 0x4f, 0x11, 0xe4, 0x96, 0x57, 0xc8, 0x21, 0xc7, + 0xdc, 0x72, 0x0b, 0x02, 0x3f, 0x42, 0x4e, 0x39, 0x06, 0xfd, 0x35, 0x1f, 0x14, 0x29, 0x23, 0x5e, + 0x01, 0xb9, 0x90, 0x5d, 0xd5, 0xd5, 0xbf, 0xfa, 0xe8, 0xee, 0xea, 0x9a, 0x82, 0x36, 0x1e, 0x93, + 0x58, 0xee, 0x24, 0x9c, 0x49, 0xe6, 0xd5, 0xc7, 0x3c, 0x09, 0x06, 0x2d, 0x16, 0x50, 0xc3, 0x18, + 0xdc, 0x1a, 0x33, 0x36, 0x9e, 0x90, 0x07, 0x9a, 0x3a, 0x49, 0x5f, 0x3f, 0x20, 0x51, 0x22, 0xa7, + 0x66, 0xd2, 0xff, 0x77, 0x05, 0x36, 0x0f, 0x38, 0xc1, 0x92, 0x1c, 0xb0, 0x58, 0x62, 0x1a, 0x13, + 0x8e, 0xc8, 0xb7, 0x29, 0x11, 0xd2, 0xfb, 0x10, 0x3a, 0x81, 0xe3, 0x8d, 0x68, 0xd8, 0xaf, 0x6c, + 0x55, 0xb6, 0x5b, 0xa8, 0x9d, 0xf1, 0x0e, 0x43, 0xef, 0x26, 0x2c, 0x91, 0x0b, 0x12, 0xa8, 0xd9, + 0xaa, 0x9e, 0x6d, 0x2a, 0xf2, 0x30, 0xf4, 0x3e, 0x85, 0xb6, 0x90, 0x9c, 0xc6, 0xe3, 0x51, 0x2a, + 0x08, 0xef, 0xd7, 0xb6, 0x2a, 0xdb, 0xed, 0xdd, 0xb5, 0x1d, 0x65, 0xda, 0xce, 0x91, 0x9e, 0x38, + 0x16, 0x84, 0x23, 0x10, 0xd9, 0xd8, 0xbb, 0x07, 0x4b, 0x21, 0x39, 0xa3, 0x01, 0x11, 0xfd, 0xfa, + 0x56, 0x6d, 0xbb, 0xbd, 0xdb, 0x31, 0xe2, 0x8f, 0x35, 0x13, 0xb9, 0x49, 0xef, 0x47, 0xb0, 0x2c, + 0x24, 0xe3, 0x78, 0x4c, 0x44, 0xbf, 0xa1, 0x05, 0xbb, 0x0e, 0x57, 0x73, 0x51, 0x36, 0xed, 0xdd, + 0x86, 0xda, 0x8b, 0x83, 0xc3, 0x7e, 0x53, 0x6b, 0x07, 0x2b, 0x95, 0x90, 0x00, 0x29, 0xb6, 0xff, + 0x08, 0x6e, 0x1c, 0x49, 0xcc, 0xe5, 0x7b, 0x38, 0xee, 0x1f, 0xc3, 0x26, 0x22, 0x11, 0x3b, 0x7b, + 0xaf, 0xa8, 0xf5, 0x61, 0x49, 0xd2, 0x88, 0xb0, 0x54, 0xea, 0xa8, 0x75, 0x91, 0x23, 0xfd, 0x3f, + 0x55, 0xc0, 0x7b, 0x72, 0x41, 0x82, 0x21, 0x67, 0x01, 0x11, 0xe2, 0x7f, 0xb4, 0x13, 0x1f, 0xc1, + 0x52, 0x62, 0x0c, 0xe8, 0xd7, 0xb5, 0xb8, 0x0d, 0xb0, 0xb3, 0xca, 0xcd, 0xfa, 0xdf, 0xc0, 0xc6, + 0x11, 0x1d, 0xc7, 0x78, 0x72, 0x8d, 0xf6, 0x6e, 0x42, 0x53, 0x68, 0x4c, 0x6d, 0x6a, 0x17, 0x59, + 0xca, 0x1f, 0x82, 0xf7, 0x0a, 0x53, 0x79, 0x7d, 0x9a, 0xfc, 0xfb, 0xb0, 0x5e, 0x42, 0x14, 0x09, + 0x8b, 0x05, 0xd1, 0x06, 0x48, 0x2c, 0x53, 0xa1, 0xc1, 0x1a, 0xc8, 0x52, 0x3e, 0x81, 0x8d, 0x5f, + 0x50, 0xe1, 0xc4, 0xc9, 0x7f, 0x63, 0xc2, 0x26, 0x34, 0x5f, 0x33, 0x1e, 0x61, 0xe9, 0x2c, 0x30, + 0x94, 0xe7, 0x41, 0x1d, 0xf3, 0xb1, 0xe8, 0xd7, 0xb6, 0x6a, 0xdb, 0x2d, 0xa4, 0xc7, 0xea, 0x54, + 0xce, 0xa8, 0xb1, 0x76, 0x7d, 0x08, 0x1d, 0x1b, 0xf7, 0xd1, 0x84, 0x0a, 0xa9, 0xf5, 0x74, 0x50, + 0xdb, 0xf2, 0xd4, 0x1a, 0x7b, 0xa2, 0xa5, 0x78, 0x9f, 0x13, 0xfd, 0xc7, 0x0a, 0x2c, 0x1f, 0x24, + 0xe9, 0xb1, 0xc0, 0x63, 0xe2, 0xfd, 0x3f, 0xb4, 0x25, 0x93, 0x78, 0x32, 0x4a, 0x15, 0xa9, 0xc5, + 0xeb, 0x08, 0x34, 0xcb, 0x08, 0x28, 0x63, 0x08, 0x0f, 0x92, 0xd4, 0x4a, 0x54, 0xb7, 0x6a, 0xdb, + 0x75, 0xd4, 0x36, 0x3c, 0x23, 0xb2, 0x03, 0xeb, 0x7a, 0x6e, 0x44, 0xe3, 0xd1, 0x1b, 0xc2, 0x63, + 0x32, 0x89, 0x58, 0x48, 0xf4, 0xae, 0xd6, 0x51, 0x4f, 0x4f, 0x1d, 0xc6, 0x5f, 0x67, 0x13, 0xde, + 0xc7, 0xd0, 0xcb, 0xe4, 0xd5, 0x51, 0xd5, 0xd2, 0x75, 0x2d, 0xbd, 0x6a, 0xa5, 0x8f, 0x2d, 0xdb, + 0xff, 0x1d, 0xac, 0xbc, 0x3c, 0xe5, 0x4c, 0xca, 0x09, 0x8d, 0xc7, 0x8f, 0xb1, 0xc4, 0xea, 0x4e, + 0x25, 0x84, 0x53, 0x16, 0x0a, 0x6b, 0xad, 0x23, 0xbd, 0x4f, 0xa0, 0x27, 0x8d, 0x2c, 0x09, 0x47, + 0x4e, 0xa6, 0xaa, 0x65, 0xd6, 0xb2, 0x89, 0xa1, 0x15, 0xfe, 0x21, 0xac, 0xe4, 0xc2, 0xea, 0x56, + 0x5a, 0x7b, 0xbb, 0x19, 0xf7, 0x25, 0x8d, 0x88, 0x7f, 0xa6, 0x63, 0xa5, 0x63, 0xed, 0x7d, 0x02, + 0xad, 0x3c, 0x0e, 0x15, 0x7d, 0x5f, 0x56, 0xcc, 0x7d, 0x71, 0xe1, 0x44, 0xcb, 0x59, 0x50, 0xbe, + 0x84, 0x55, 0x99, 0x19, 0x3e, 0x0a, 0xb1, 0xc4, 0xda, 0x94, 0xf6, 0xee, 0x86, 0x59, 0x52, 0xf6, + 0x0a, 0xad, 0xc8, 0x12, 0xed, 0x7f, 0x01, 0xad, 0x21, 0x0d, 0x85, 0x51, 0xdc, 0x87, 0xa5, 0x20, + 0xe5, 0x9c, 0xc4, 0xd2, 0xb9, 0x6c, 0x49, 0x6f, 0x03, 0x1a, 0x13, 0x1a, 0x51, 0x69, 0xdd, 0x34, + 0x84, 0xcf, 0x00, 0x9e, 0x93, 0x88, 0xf1, 0xa9, 0x0e, 0xd8, 0x06, 0x34, 0x8a, 0x9b, 0x6b, 0x08, + 0xef, 0x16, 0xb4, 0x22, 0x7c, 0x91, 0x6d, 0xaa, 0x9a, 0x59, 0x8e, 0xf0, 0x85, 0x31, 0xbe, 0x0f, + 0x4b, 0xaf, 0x31, 0x9d, 0x04, 0xb1, 0xb4, 0x51, 0x71, 0x64, 0xae, 0xb0, 0x5e, 0x54, 0xf8, 0x97, + 0x2a, 0xb4, 0x8d, 0x46, 0x63, 0xf0, 0x06, 0x34, 0x02, 0x1c, 0x9c, 0x66, 0x2a, 0x35, 0xe1, 0xdd, + 0x73, 0x86, 0x54, 0x8b, 0xa9, 0x29, 0xb7, 0xd4, 0x99, 0xf6, 0x00, 0x40, 0x9c, 0xe3, 0xc4, 0xda, + 0x56, 0x5b, 0x20, 0xdc, 0x52, 0x32, 0xc6, 0xdc, 0xcf, 0xa0, 0x63, 0xce, 0x9d, 0x5d, 0x52, 0x5f, + 0xb0, 0xa4, 0x6d, 0xa4, 0xcc, 0xa2, 0xbb, 0xd0, 0x4d, 0x05, 0x19, 0x9d, 0x52, 0xc2, 0x31, 0x0f, + 0x4e, 0xa7, 0xfd, 0xc6, 0x56, 0x65, 0x7b, 0x19, 0x75, 0x52, 0x41, 0x9e, 0x39, 0x9e, 0xb7, 0x0b, + 0x0d, 0x95, 0x14, 0x44, 0xbf, 0xa9, 0xdf, 0x9f, 0xdb, 0x45, 0x48, 0xed, 0xea, 0x8e, 0xfe, 0x7d, + 0x12, 0x4b, 0x3e, 0x45, 0x46, 0x74, 0xf0, 0x39, 0x40, 0xce, 0xf4, 0xd6, 0xa0, 0xf6, 0x86, 0x4c, + 0xed, 0x3d, 0x54, 0x43, 0x15, 0x9c, 0x33, 0x3c, 0x49, 0x5d, 0xd4, 0x0d, 0xf1, 0xa8, 0xfa, 0x79, + 0xc5, 0x0f, 0x60, 0x75, 0x7f, 0xf2, 0x86, 0xb2, 0xc2, 0xf2, 0x0d, 0x68, 0x44, 0xf8, 0x1b, 0xc6, + 0x5d, 0x24, 0x35, 0xa1, 0xb9, 0x34, 0x66, 0xdc, 0x41, 0x68, 0xc2, 0x5b, 0x81, 0x2a, 0x4b, 0x74, + 0xbc, 0x5a, 0xa8, 0xca, 0x92, 0x5c, 0x51, 0xbd, 0xa0, 0xc8, 0xff, 0x47, 0x1d, 0x20, 0xd7, 0xe2, + 0x21, 0x18, 0x50, 0x36, 0x12, 0x84, 0xab, 0x37, 0x77, 0x74, 0x32, 0x95, 0x44, 0x8c, 0x38, 0x09, + 0x52, 0x2e, 0xe8, 0x99, 0xda, 0x3f, 0xe5, 0xf6, 0x0d, 0xe3, 0xf6, 0x8c, 0x6d, 0xe8, 0x26, 0x65, + 0x47, 0x66, 0xdd, 0xbe, 0x5a, 0x86, 0xdc, 0x2a, 0xef, 0x10, 0x6e, 0xe4, 0x98, 0x61, 0x01, 0xae, + 0x7a, 0x15, 0xdc, 0x7a, 0x06, 0x17, 0xe6, 0x50, 0x4f, 0x60, 0x9d, 0xb2, 0xd1, 0xb7, 0x29, 0x49, + 0x4b, 0x40, 0xb5, 0xab, 0x80, 0x7a, 0x94, 0xfd, 0x4a, 0x2f, 0xc8, 0x61, 0x86, 0xf0, 0x41, 0xc1, + 0x4b, 0x75, 0xdd, 0x0b, 0x60, 0xf5, 0xab, 0xc0, 0x36, 0x33, 0xab, 0x54, 0x3e, 0xc8, 0x11, 0x7f, + 0x0e, 0x9b, 0x94, 0x8d, 0xce, 0x31, 0x95, 0xb3, 0x70, 0x8d, 0x77, 0x38, 0xa9, 0x9e, 0xa2, 0x32, + 0x96, 0x71, 0x32, 0x22, 0x7c, 0x5c, 0x72, 0xb2, 0xf9, 0x0e, 0x27, 0x9f, 0xeb, 0x05, 0x39, 0xcc, + 0x1e, 0xf4, 0x28, 0x9b, 0xb5, 0x66, 0xe9, 0x2a, 0x90, 0x55, 0xca, 0xca, 0x96, 0xec, 0x43, 0x4f, + 0x90, 0x40, 0x32, 0x5e, 0x3c, 0x04, 0xcb, 0x57, 0x41, 0xac, 0x59, 0xf9, 0x0c, 0xc3, 0xff, 0x0d, + 0x74, 0x9e, 0xa5, 0x63, 0x22, 0x27, 0x27, 0x59, 0x32, 0xb8, 0xb6, 0xfc, 0xe3, 0xff, 0xab, 0x0a, + 0xed, 0x83, 0x31, 0x67, 0x69, 0x52, 0xca, 0xc9, 0xe6, 0x92, 0xce, 0xe6, 0x64, 0x2d, 0xa2, 0x73, + 0xb2, 0x11, 0x7e, 0x08, 0x9d, 0x48, 0x5f, 0x5d, 0x2b, 0x6f, 0xf2, 0x50, 0xef, 0xd2, 0xa5, 0x46, + 0xed, 0xa8, 0x90, 0xcc, 0x76, 0x00, 0x12, 0x1a, 0x0a, 0xbb, 0xc6, 0xa4, 0xa3, 0x55, 0x5b, 0x27, + 0xb9, 0x14, 0x8d, 0x5a, 0x49, 0x96, 0xad, 0x3f, 0x85, 0xf6, 0x89, 0x0a, 0x92, 0x5d, 0x50, 0x4a, + 0x46, 0x79, 0xf4, 0x10, 0x9c, 0xe4, 0x97, 0xf0, 0x19, 0x74, 0x4f, 0x4d, 0xc8, 0xec, 0x22, 0x73, + 0x86, 0xee, 0x5a, 0x4f, 0x72, 0x7f, 0x77, 0x8a, 0x91, 0x35, 0x1b, 0xd0, 0x39, 0x2d, 0xb0, 0x06, + 0x47, 0xd0, 0xbb, 0x24, 0x32, 0x27, 0x07, 0x6d, 0x17, 0x73, 0x50, 0x7b, 0xd7, 0x33, 0x8a, 0x8a, + 0x2b, 0x8b, 0x79, 0xe9, 0x97, 0xb0, 0x39, 0x5b, 0x6d, 0xd8, 0x52, 0xe5, 0x21, 0x74, 0x02, 0x6d, + 0x5d, 0x69, 0x07, 0x7a, 0x97, 0xec, 0x46, 0xed, 0x20, 0x27, 0xfc, 0x10, 0xbc, 0x57, 0x9c, 0x4a, + 0x72, 0x24, 0x39, 0xc1, 0xd1, 0x75, 0xd4, 0x92, 0x1e, 0xd4, 0xf5, 0x13, 0x5b, 0xd3, 0xa5, 0x92, + 0x1e, 0xfb, 0x1f, 0xc1, 0x7a, 0x49, 0x8b, 0x35, 0x79, 0x0d, 0x6a, 0x13, 0x12, 0x6b, 0xf4, 0x2e, + 0x52, 0x43, 0x1f, 0x43, 0x0f, 0x11, 0x1c, 0x5e, 0x9f, 0x35, 0x56, 0x45, 0x2d, 0x57, 0xb1, 0x0d, + 0x5e, 0x51, 0x85, 0x35, 0xc5, 0x59, 0x5d, 0x29, 0x58, 0xfd, 0x02, 0x7a, 0x07, 0x13, 0x26, 0xc8, + 0x91, 0x0c, 0x69, 0x7c, 0x1d, 0xc5, 0xef, 0x77, 0xb0, 0xfe, 0x52, 0x4e, 0x5f, 0x29, 0x30, 0x41, + 0x7f, 0x4b, 0xae, 0xc9, 0x3f, 0xce, 0xce, 0x9d, 0x7f, 0x9c, 0x9d, 0xab, 0xba, 0x37, 0x60, 0x93, + 0x34, 0x8a, 0xf5, 0x71, 0xef, 0x22, 0x4b, 0xf9, 0x7f, 0xa8, 0xc0, 0x86, 0xf9, 0xe8, 0x3c, 0xc2, + 0x71, 0x78, 0xc2, 0x2e, 0x9c, 0xfa, 0x01, 0x2c, 0x9f, 0x32, 0x21, 0x63, 0x1c, 0x11, 0xab, 0x3a, + 0xa3, 0x15, 0x7c, 0x18, 0x0b, 0xfd, 0x58, 0xb4, 0x90, 0x1a, 0x96, 0xbe, 0x04, 0x6b, 0x57, 0x7f, + 0x09, 0xde, 0x85, 0xae, 0x30, 0xaa, 0x46, 0x09, 0x55, 0x30, 0x75, 0xf3, 0xac, 0x5b, 0xe6, 0x50, + 0xf1, 0xfc, 0x9b, 0x70, 0xe3, 0x31, 0x11, 0x92, 0xb3, 0x69, 0xd9, 0x2c, 0x1f, 0x43, 0xeb, 0x70, + 0xb8, 0x17, 0x86, 0x9c, 0x08, 0xe1, 0xdd, 0x83, 0xe6, 0x6b, 0x1c, 0xd1, 0x89, 0xb9, 0x39, 0x2b, + 0x2e, 0xb1, 0x1c, 0x0e, 0x7f, 0xa6, 0xb9, 0xc8, 0xce, 0xaa, 0x6c, 0x85, 0xcd, 0x12, 0x1b, 0x27, + 0x47, 0xaa, 0x0d, 0x8e, 0xb0, 0x78, 0x63, 0xdf, 0x64, 0x3d, 0x56, 0x21, 0x69, 0x1d, 0xc6, 0x92, + 0xf0, 0xd7, 0x38, 0xd0, 0xdf, 0x20, 0xe6, 0x73, 0xd7, 0x46, 0xc1, 0x52, 0x6a, 0xa5, 0x8e, 0x8d, + 0x01, 0xd4, 0x63, 0x95, 0x58, 0x32, 0xe3, 0xb2, 0x40, 0xac, 0x3a, 0xa3, 0xec, 0x04, 0x2a, 0xca, + 0xa8, 0x50, 0x46, 0x32, 0xb5, 0x05, 0x80, 0x1a, 0x2a, 0x85, 0xa7, 0xe7, 0x4a, 0x40, 0xd7, 0x3b, + 0x2d, 0x64, 0x29, 0xff, 0x3b, 0x68, 0x20, 0x96, 0x4a, 0x73, 0x28, 0x89, 0xfd, 0xea, 0x68, 0x21, + 0x3d, 0x56, 0x1e, 0x8e, 0xb1, 0x24, 0xe7, 0x78, 0xea, 0x3c, 0xb4, 0x64, 0xc1, 0xfe, 0x5a, 0xc9, + 0x7e, 0xf5, 0x6d, 0xc5, 0x52, 0x1e, 0x98, 0xe2, 0xa3, 0x85, 0x2c, 0xa5, 0x1e, 0x03, 0x11, 0xb0, + 0x84, 0x68, 0xed, 0x5d, 0x64, 0x08, 0xff, 0x3e, 0x34, 0xb5, 0x72, 0xb5, 0x7d, 0x76, 0x64, 0x4b, + 0x8f, 0xb6, 0x71, 0x4f, 0xf3, 0x90, 0x9d, 0xf2, 0x9f, 0xc2, 0xe6, 0x71, 0x12, 0x62, 0x49, 0xb2, + 0x38, 0xba, 0x63, 0x75, 0x1f, 0x5a, 0xd4, 0xf1, 0x6c, 0x32, 0x72, 0x01, 0xca, 0x44, 0x73, 0x09, + 0xff, 0x31, 0xac, 0xef, 0x85, 0xe1, 0xf7, 0x45, 0x79, 0xea, 0x5a, 0x04, 0xdf, 0x17, 0xe8, 0x0b, + 0x58, 0x37, 0x7e, 0x19, 0x3f, 0x1d, 0xca, 0x0f, 0xa0, 0xc9, 0x5d, 0x4c, 0x2a, 0x79, 0xbb, 0xc4, + 0x0a, 0xd9, 0x39, 0x7f, 0x1f, 0xd6, 0x5f, 0xc4, 0x13, 0x1a, 0x93, 0x83, 0xe1, 0xf1, 0x73, 0x92, + 0xe5, 0x31, 0x0f, 0xea, 0xaa, 0x48, 0xd1, 0x4b, 0x97, 0x91, 0x1e, 0xab, 0x8b, 0x1d, 0x9f, 0x8c, + 0x82, 0x24, 0x15, 0xb6, 0x2d, 0xd1, 0x8c, 0x4f, 0x0e, 0x92, 0x54, 0xf8, 0x7f, 0xae, 0xc0, 0x92, + 0xbd, 0x52, 0x7a, 0x67, 0x39, 0x3d, 0x23, 0x3c, 0x3b, 0x99, 0x9a, 0x52, 0x1f, 0x4e, 0x66, 0x34, + 0x62, 0x89, 0xa4, 0x2c, 0xbb, 0xa8, 0x5d, 0xc3, 0x7d, 0x61, 0x98, 0x85, 0x03, 0x50, 0x2b, 0x1d, + 0x00, 0xf5, 0x85, 0x2c, 0xe4, 0x34, 0xc9, 0x0e, 0x86, 0xa1, 0xd4, 0x11, 0x73, 0x78, 0x0d, 0x8d, + 0xe7, 0x48, 0xf5, 0x89, 0x1a, 0xb1, 0x34, 0x96, 0xa3, 0x84, 0xd1, 0x58, 0xea, 0x1e, 0x4f, 0x0b, + 0x81, 0x66, 0x0d, 0x15, 0xc7, 0xff, 0x7d, 0x05, 0x9a, 0xa6, 0x77, 0xa4, 0x4a, 0xe0, 0x2c, 0x97, + 0x55, 0xa9, 0x7e, 0x17, 0xb4, 0x2e, 0x7b, 0x8d, 0xb4, 0xa6, 0x9b, 0xb0, 0x74, 0x16, 0x8d, 0x12, + 0x2c, 0x4f, 0x9d, 0x69, 0x67, 0xd1, 0x10, 0xcb, 0x53, 0xe5, 0x59, 0x9e, 0x12, 0xf5, 0xbc, 0x31, + 0xb1, 0x9b, 0x71, 0xb5, 0xd8, 0x42, 0x4b, 0xfd, 0x5f, 0xab, 0xca, 0x3f, 0x6b, 0xae, 0xac, 0x41, + 0x2d, 0xcd, 0x8c, 0x51, 0x43, 0xc5, 0x19, 0x67, 0xc9, 0x54, 0x0d, 0xbd, 0x7b, 0xb0, 0x82, 0xc3, + 0x90, 0xaa, 0xe5, 0x78, 0xf2, 0x94, 0x86, 0xae, 0x43, 0x30, 0xc3, 0xfd, 0x78, 0x00, 0xcb, 0x2e, + 0xed, 0x78, 0x4d, 0xa8, 0x9e, 0x3d, 0x5c, 0xfb, 0x3f, 0xfd, 0xff, 0xe3, 0xb5, 0xca, 0xee, 0xdf, + 0x01, 0x3a, 0x7b, 0x63, 0x12, 0x4b, 0x5b, 0xa7, 0x7a, 0x4f, 0x61, 0x75, 0xa6, 0xd1, 0xe7, 0xd9, + 0x0f, 0x97, 0xf9, 0xfd, 0xbf, 0xc1, 0xe6, 0x8e, 0x69, 0x1c, 0xee, 0xb8, 0xc6, 0xe1, 0xce, 0x93, + 0x28, 0x91, 0x53, 0xef, 0x09, 0xac, 0x94, 0xfb, 0x66, 0xde, 0x2d, 0x97, 0x76, 0xe7, 0x74, 0xd3, + 0x16, 0xc2, 0x3c, 0x85, 0xd5, 0x99, 0x16, 0x9a, 0xb3, 0x67, 0x7e, 0x67, 0x6d, 0x21, 0xd0, 0x57, + 0xd0, 0x2e, 0xf4, 0xcc, 0xbc, 0xbe, 0x01, 0xb9, 0xdc, 0x46, 0x5b, 0x08, 0x70, 0x00, 0xdd, 0x52, + 0x1b, 0xcb, 0x1b, 0x58, 0x7f, 0xe6, 0xf4, 0xb6, 0x16, 0x82, 0xec, 0x43, 0xbb, 0xd0, 0x4d, 0x72, + 0x56, 0x5c, 0x6e, 0x59, 0x0d, 0x3e, 0x98, 0x33, 0x63, 0x5f, 0xfe, 0x67, 0xd0, 0x2d, 0xf5, 0x7e, + 0x9c, 0x21, 0xf3, 0xfa, 0x4e, 0x83, 0x5b, 0x73, 0xe7, 0x2c, 0xd2, 0xd7, 0x7a, 0x8f, 0x0a, 0xb5, + 0x59, 0x61, 0x8f, 0x2e, 0xf7, 0x87, 0x06, 0xb7, 0xe7, 0x4f, 0x5a, 0xb0, 0x3d, 0x00, 0x5b, 0x32, + 0x85, 0x34, 0xce, 0x3c, 0xbb, 0x54, 0xaa, 0x65, 0x9e, 0xcd, 0x29, 0xaf, 0xbe, 0x02, 0x30, 0x95, + 0x4e, 0xc8, 0x52, 0xe9, 0xdd, 0x74, 0xfb, 0x3c, 0x53, 0x5e, 0x0d, 0xfa, 0x97, 0x27, 0x2e, 0x01, + 0x10, 0xce, 0xdf, 0x07, 0xe0, 0x4b, 0x80, 0xbc, 0x82, 0x72, 0x00, 0x97, 0x6a, 0xaa, 0x85, 0xdb, + 0xbb, 0x07, 0x9d, 0x62, 0xbd, 0xe4, 0x59, 0x5f, 0xe7, 0xd4, 0x50, 0x0b, 0x21, 0x1e, 0x41, 0xa7, + 0xf8, 0xac, 0x38, 0x88, 0x39, 0x4f, 0xcd, 0x60, 0xf6, 0x39, 0xf0, 0x7e, 0x0a, 0xab, 0x33, 0x6f, + 0x9b, 0xbb, 0x2c, 0xf3, 0x9f, 0xbc, 0xb9, 0x08, 0x33, 0xcf, 0x51, 0xf9, 0xba, 0xbd, 0x1b, 0xe1, + 0x27, 0xd0, 0x29, 0xbe, 0x43, 0xce, 0xfe, 0x39, 0x6f, 0xd3, 0xa0, 0xf4, 0x16, 0xa9, 0xfb, 0x55, + 0xaa, 0xf6, 0xdc, 0xb1, 0x9e, 0x57, 0x02, 0x5e, 0x95, 0x75, 0xca, 0xc5, 0x99, 0x3b, 0xd1, 0x73, + 0x4b, 0xb6, 0xab, 0xf6, 0xb1, 0xf8, 0x1e, 0x3a, 0x27, 0xe6, 0xbc, 0x91, 0x8b, 0x20, 0xf6, 0x3b, + 0x7f, 0x7d, 0x7b, 0xa7, 0xf2, 0xb7, 0xb7, 0x77, 0x2a, 0xff, 0x7c, 0x7b, 0xa7, 0x72, 0xd2, 0xd4, + 0xb3, 0x9f, 0xfd, 0x27, 0x00, 0x00, 0xff, 0xff, 0xab, 0x20, 0x3e, 0xbd, 0x84, 0x19, 0x00, 0x00, } diff --git a/protocols/grpc/agent.proto b/protocols/grpc/agent.proto index 911680a050..662cb74e69 100644 --- a/protocols/grpc/agent.proto +++ b/protocols/grpc/agent.proto @@ -29,6 +29,7 @@ service AgentService { rpc SignalProcess(SignalProcessRequest) returns (google.protobuf.Empty); rpc WaitProcess(WaitProcessRequest) returns (WaitProcessResponse); // wait & reap like waitpid(2) rpc ListProcesses(ListProcessesRequest) returns (ListProcessesResponse); + rpc StatsContainer(StatsContainerRequest) returns (StatsContainerResponse); // stdio rpc WriteStdin(WriteStreamRequest) returns (WriteStreamResponse); @@ -110,6 +111,87 @@ message ListProcessesResponse { bytes process_list = 1; } +message StatsContainerRequest { + string container_id = 1; +} + +message CpuUsage { + uint64 total_usage = 1; + repeated uint64 percpu_usage = 2; + uint64 usage_in_kernelmode = 3; + uint64 usage_in_usermode = 4; +} + +message ThrottlingData { + uint64 periods = 1; + uint64 throttled_periods = 2; + uint64 throttled_time = 3; +} + +message CpuStats { + CpuUsage cpu_usage = 1; + ThrottlingData throttling_data = 2; +} + +message PidsStats { + uint64 current = 1; + uint64 limit = 2; +} + +message MemoryData { + uint64 usage = 1; + uint64 max_usage = 2; + uint64 failcnt = 3; + uint64 limit = 4; +} + +message MemoryStats { + uint64 cache = 1; + MemoryData usage = 2; + MemoryData swap_usage = 3; + MemoryData kernel_usage = 4; + bool use_hierarchy = 5; + map stats = 6; +} + + +message BlkioStatsEntry { + uint64 major = 1; + uint64 minor = 2; + string op = 3; + uint64 value = 4; +} + +message BlkioStats { + repeated BlkioStatsEntry io_service_bytes_recursive = 1; // number of bytes transferred to and from the block device + repeated BlkioStatsEntry io_serviced_recursive = 2; + repeated BlkioStatsEntry io_queued_recursive = 3; + repeated BlkioStatsEntry io_service_time_recursive = 4; + repeated BlkioStatsEntry io_wait_time_recursive = 5; + repeated BlkioStatsEntry io_merged_recursive = 6; + repeated BlkioStatsEntry io_time_recursive = 7; + repeated BlkioStatsEntry sectors_recursive = 8; +} + +message HugetlbStats { + uint64 usage = 1; + uint64 max_usage = 2; + uint64 failcnt = 3; +} + +message CgroupStats { + CpuStats cpu_stats = 1; + MemoryStats memory_stats = 2; + PidsStats pids_stats = 3; + BlkioStats blkio_stats = 4; + map hugetlb_stats = 5; // the map is in the format "size of hugepage: stats of the hugepage" + +} + +message StatsContainerResponse { + CgroupStats cgroup_stats = 1; +} + message WriteStreamRequest { string container_id = 1; string exec_id = 2; diff --git a/protocols/grpc/health.pb.go b/protocols/grpc/health.pb.go index 2126ae3259..9dd54fbe32 100644 --- a/protocols/grpc/health.pb.go +++ b/protocols/grpc/health.pb.go @@ -8,8 +8,10 @@ import fmt "fmt" import math "math" import _ "github.com/gogo/protobuf/gogoproto" -import context "golang.org/x/net/context" -import grpc1 "google.golang.org/grpc" +import ( + context "golang.org/x/net/context" + grpc1 "google.golang.org/grpc" +) import io "io" @@ -108,7 +110,10 @@ func init() { } func (this *CheckRequest) Equal(that interface{}) bool { if that == nil { - return this == nil + if this == nil { + return true + } + return false } that1, ok := that.(*CheckRequest) @@ -121,7 +126,10 @@ func (this *CheckRequest) Equal(that interface{}) bool { } } if that1 == nil { - return this == nil + if this == nil { + return true + } + return false } else if this == nil { return false } @@ -132,7 +140,10 @@ func (this *CheckRequest) Equal(that interface{}) bool { } func (this *HealthCheckResponse) Equal(that interface{}) bool { if that == nil { - return this == nil + if this == nil { + return true + } + return false } that1, ok := that.(*HealthCheckResponse) @@ -145,7 +156,10 @@ func (this *HealthCheckResponse) Equal(that interface{}) bool { } } if that1 == nil { - return this == nil + if this == nil { + return true + } + return false } else if this == nil { return false } @@ -156,7 +170,10 @@ func (this *HealthCheckResponse) Equal(that interface{}) bool { } func (this *VersionCheckResponse) Equal(that interface{}) bool { if that == nil { - return this == nil + if this == nil { + return true + } + return false } that1, ok := that.(*VersionCheckResponse) @@ -169,7 +186,10 @@ func (this *VersionCheckResponse) Equal(that interface{}) bool { } } if that1 == nil { - return this == nil + if this == nil { + return true + } + return false } else if this == nil { return false } diff --git a/protocols/grpc/healthpb_test.go b/protocols/grpc/healthpb_test.go index ecbdacff5b..16a23cddc2 100644 --- a/protocols/grpc/healthpb_test.go +++ b/protocols/grpc/healthpb_test.go @@ -4,10 +4,11 @@ package grpc import testing "testing" -import rand "math/rand" +import math_rand "math/rand" import time "time" +import github_com_gogo_protobuf_proto "github.com/gogo/protobuf/proto" +import github_com_gogo_protobuf_jsonpb "github.com/gogo/protobuf/jsonpb" import proto "github.com/gogo/protobuf/proto" -import jsonpb "github.com/gogo/protobuf/jsonpb" import fmt "fmt" import math "math" import _ "github.com/gogo/protobuf/gogoproto" @@ -19,14 +20,14 @@ var _ = math.Inf func TestCheckRequestProto(t *testing.T) { seed := time.Now().UnixNano() - popr := rand.New(rand.NewSource(seed)) + popr := math_rand.New(math_rand.NewSource(seed)) p := NewPopulatedCheckRequest(popr, false) - dAtA, err := proto.Marshal(p) + dAtA, err := github_com_gogo_protobuf_proto.Marshal(p) if err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } msg := &CheckRequest{} - if err := proto.Unmarshal(dAtA, msg); err != nil { + if err := github_com_gogo_protobuf_proto.Unmarshal(dAtA, msg); err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } littlefuzz := make([]byte, len(dAtA)) @@ -44,13 +45,13 @@ func TestCheckRequestProto(t *testing.T) { littlefuzz = append(littlefuzz, byte(popr.Intn(256))) } // shouldn't panic - _ = proto.Unmarshal(littlefuzz, msg) + _ = github_com_gogo_protobuf_proto.Unmarshal(littlefuzz, msg) } } func TestCheckRequestMarshalTo(t *testing.T) { seed := time.Now().UnixNano() - popr := rand.New(rand.NewSource(seed)) + popr := math_rand.New(math_rand.NewSource(seed)) p := NewPopulatedCheckRequest(popr, false) size := p.Size() dAtA := make([]byte, size) @@ -62,7 +63,7 @@ func TestCheckRequestMarshalTo(t *testing.T) { t.Fatalf("seed = %d, err = %v", seed, err) } msg := &CheckRequest{} - if err := proto.Unmarshal(dAtA, msg); err != nil { + if err := github_com_gogo_protobuf_proto.Unmarshal(dAtA, msg); err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } for i := range dAtA { @@ -74,7 +75,7 @@ func TestCheckRequestMarshalTo(t *testing.T) { } func BenchmarkCheckRequestProtoMarshal(b *testing.B) { - popr := rand.New(rand.NewSource(616)) + popr := math_rand.New(math_rand.NewSource(616)) total := 0 pops := make([]*CheckRequest, 10000) for i := 0; i < 10000; i++ { @@ -82,7 +83,7 @@ func BenchmarkCheckRequestProtoMarshal(b *testing.B) { } b.ResetTimer() for i := 0; i < b.N; i++ { - dAtA, err := proto.Marshal(pops[i%10000]) + dAtA, err := github_com_gogo_protobuf_proto.Marshal(pops[i%10000]) if err != nil { panic(err) } @@ -92,11 +93,11 @@ func BenchmarkCheckRequestProtoMarshal(b *testing.B) { } func BenchmarkCheckRequestProtoUnmarshal(b *testing.B) { - popr := rand.New(rand.NewSource(616)) + popr := math_rand.New(math_rand.NewSource(616)) total := 0 datas := make([][]byte, 10000) for i := 0; i < 10000; i++ { - dAtA, err := proto.Marshal(NewPopulatedCheckRequest(popr, false)) + dAtA, err := github_com_gogo_protobuf_proto.Marshal(NewPopulatedCheckRequest(popr, false)) if err != nil { panic(err) } @@ -106,7 +107,7 @@ func BenchmarkCheckRequestProtoUnmarshal(b *testing.B) { b.ResetTimer() for i := 0; i < b.N; i++ { total += len(datas[i%10000]) - if err := proto.Unmarshal(datas[i%10000], msg); err != nil { + if err := github_com_gogo_protobuf_proto.Unmarshal(datas[i%10000], msg); err != nil { panic(err) } } @@ -115,14 +116,14 @@ func BenchmarkCheckRequestProtoUnmarshal(b *testing.B) { func TestHealthCheckResponseProto(t *testing.T) { seed := time.Now().UnixNano() - popr := rand.New(rand.NewSource(seed)) + popr := math_rand.New(math_rand.NewSource(seed)) p := NewPopulatedHealthCheckResponse(popr, false) - dAtA, err := proto.Marshal(p) + dAtA, err := github_com_gogo_protobuf_proto.Marshal(p) if err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } msg := &HealthCheckResponse{} - if err := proto.Unmarshal(dAtA, msg); err != nil { + if err := github_com_gogo_protobuf_proto.Unmarshal(dAtA, msg); err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } littlefuzz := make([]byte, len(dAtA)) @@ -140,13 +141,13 @@ func TestHealthCheckResponseProto(t *testing.T) { littlefuzz = append(littlefuzz, byte(popr.Intn(256))) } // shouldn't panic - _ = proto.Unmarshal(littlefuzz, msg) + _ = github_com_gogo_protobuf_proto.Unmarshal(littlefuzz, msg) } } func TestHealthCheckResponseMarshalTo(t *testing.T) { seed := time.Now().UnixNano() - popr := rand.New(rand.NewSource(seed)) + popr := math_rand.New(math_rand.NewSource(seed)) p := NewPopulatedHealthCheckResponse(popr, false) size := p.Size() dAtA := make([]byte, size) @@ -158,7 +159,7 @@ func TestHealthCheckResponseMarshalTo(t *testing.T) { t.Fatalf("seed = %d, err = %v", seed, err) } msg := &HealthCheckResponse{} - if err := proto.Unmarshal(dAtA, msg); err != nil { + if err := github_com_gogo_protobuf_proto.Unmarshal(dAtA, msg); err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } for i := range dAtA { @@ -170,7 +171,7 @@ func TestHealthCheckResponseMarshalTo(t *testing.T) { } func BenchmarkHealthCheckResponseProtoMarshal(b *testing.B) { - popr := rand.New(rand.NewSource(616)) + popr := math_rand.New(math_rand.NewSource(616)) total := 0 pops := make([]*HealthCheckResponse, 10000) for i := 0; i < 10000; i++ { @@ -178,7 +179,7 @@ func BenchmarkHealthCheckResponseProtoMarshal(b *testing.B) { } b.ResetTimer() for i := 0; i < b.N; i++ { - dAtA, err := proto.Marshal(pops[i%10000]) + dAtA, err := github_com_gogo_protobuf_proto.Marshal(pops[i%10000]) if err != nil { panic(err) } @@ -188,11 +189,11 @@ func BenchmarkHealthCheckResponseProtoMarshal(b *testing.B) { } func BenchmarkHealthCheckResponseProtoUnmarshal(b *testing.B) { - popr := rand.New(rand.NewSource(616)) + popr := math_rand.New(math_rand.NewSource(616)) total := 0 datas := make([][]byte, 10000) for i := 0; i < 10000; i++ { - dAtA, err := proto.Marshal(NewPopulatedHealthCheckResponse(popr, false)) + dAtA, err := github_com_gogo_protobuf_proto.Marshal(NewPopulatedHealthCheckResponse(popr, false)) if err != nil { panic(err) } @@ -202,7 +203,7 @@ func BenchmarkHealthCheckResponseProtoUnmarshal(b *testing.B) { b.ResetTimer() for i := 0; i < b.N; i++ { total += len(datas[i%10000]) - if err := proto.Unmarshal(datas[i%10000], msg); err != nil { + if err := github_com_gogo_protobuf_proto.Unmarshal(datas[i%10000], msg); err != nil { panic(err) } } @@ -211,14 +212,14 @@ func BenchmarkHealthCheckResponseProtoUnmarshal(b *testing.B) { func TestVersionCheckResponseProto(t *testing.T) { seed := time.Now().UnixNano() - popr := rand.New(rand.NewSource(seed)) + popr := math_rand.New(math_rand.NewSource(seed)) p := NewPopulatedVersionCheckResponse(popr, false) - dAtA, err := proto.Marshal(p) + dAtA, err := github_com_gogo_protobuf_proto.Marshal(p) if err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } msg := &VersionCheckResponse{} - if err := proto.Unmarshal(dAtA, msg); err != nil { + if err := github_com_gogo_protobuf_proto.Unmarshal(dAtA, msg); err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } littlefuzz := make([]byte, len(dAtA)) @@ -236,13 +237,13 @@ func TestVersionCheckResponseProto(t *testing.T) { littlefuzz = append(littlefuzz, byte(popr.Intn(256))) } // shouldn't panic - _ = proto.Unmarshal(littlefuzz, msg) + _ = github_com_gogo_protobuf_proto.Unmarshal(littlefuzz, msg) } } func TestVersionCheckResponseMarshalTo(t *testing.T) { seed := time.Now().UnixNano() - popr := rand.New(rand.NewSource(seed)) + popr := math_rand.New(math_rand.NewSource(seed)) p := NewPopulatedVersionCheckResponse(popr, false) size := p.Size() dAtA := make([]byte, size) @@ -254,7 +255,7 @@ func TestVersionCheckResponseMarshalTo(t *testing.T) { t.Fatalf("seed = %d, err = %v", seed, err) } msg := &VersionCheckResponse{} - if err := proto.Unmarshal(dAtA, msg); err != nil { + if err := github_com_gogo_protobuf_proto.Unmarshal(dAtA, msg); err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } for i := range dAtA { @@ -266,7 +267,7 @@ func TestVersionCheckResponseMarshalTo(t *testing.T) { } func BenchmarkVersionCheckResponseProtoMarshal(b *testing.B) { - popr := rand.New(rand.NewSource(616)) + popr := math_rand.New(math_rand.NewSource(616)) total := 0 pops := make([]*VersionCheckResponse, 10000) for i := 0; i < 10000; i++ { @@ -274,7 +275,7 @@ func BenchmarkVersionCheckResponseProtoMarshal(b *testing.B) { } b.ResetTimer() for i := 0; i < b.N; i++ { - dAtA, err := proto.Marshal(pops[i%10000]) + dAtA, err := github_com_gogo_protobuf_proto.Marshal(pops[i%10000]) if err != nil { panic(err) } @@ -284,11 +285,11 @@ func BenchmarkVersionCheckResponseProtoMarshal(b *testing.B) { } func BenchmarkVersionCheckResponseProtoUnmarshal(b *testing.B) { - popr := rand.New(rand.NewSource(616)) + popr := math_rand.New(math_rand.NewSource(616)) total := 0 datas := make([][]byte, 10000) for i := 0; i < 10000; i++ { - dAtA, err := proto.Marshal(NewPopulatedVersionCheckResponse(popr, false)) + dAtA, err := github_com_gogo_protobuf_proto.Marshal(NewPopulatedVersionCheckResponse(popr, false)) if err != nil { panic(err) } @@ -298,7 +299,7 @@ func BenchmarkVersionCheckResponseProtoUnmarshal(b *testing.B) { b.ResetTimer() for i := 0; i < b.N; i++ { total += len(datas[i%10000]) - if err := proto.Unmarshal(datas[i%10000], msg); err != nil { + if err := github_com_gogo_protobuf_proto.Unmarshal(datas[i%10000], msg); err != nil { panic(err) } } @@ -307,15 +308,15 @@ func BenchmarkVersionCheckResponseProtoUnmarshal(b *testing.B) { func TestCheckRequestJSON(t *testing.T) { seed := time.Now().UnixNano() - popr := rand.New(rand.NewSource(seed)) + popr := math_rand.New(math_rand.NewSource(seed)) p := NewPopulatedCheckRequest(popr, true) - marshaler := jsonpb.Marshaler{} + marshaler := github_com_gogo_protobuf_jsonpb.Marshaler{} jsondata, err := marshaler.MarshalToString(p) if err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } msg := &CheckRequest{} - err = jsonpb.UnmarshalString(jsondata, msg) + err = github_com_gogo_protobuf_jsonpb.UnmarshalString(jsondata, msg) if err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } @@ -325,15 +326,15 @@ func TestCheckRequestJSON(t *testing.T) { } func TestHealthCheckResponseJSON(t *testing.T) { seed := time.Now().UnixNano() - popr := rand.New(rand.NewSource(seed)) + popr := math_rand.New(math_rand.NewSource(seed)) p := NewPopulatedHealthCheckResponse(popr, true) - marshaler := jsonpb.Marshaler{} + marshaler := github_com_gogo_protobuf_jsonpb.Marshaler{} jsondata, err := marshaler.MarshalToString(p) if err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } msg := &HealthCheckResponse{} - err = jsonpb.UnmarshalString(jsondata, msg) + err = github_com_gogo_protobuf_jsonpb.UnmarshalString(jsondata, msg) if err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } @@ -343,15 +344,15 @@ func TestHealthCheckResponseJSON(t *testing.T) { } func TestVersionCheckResponseJSON(t *testing.T) { seed := time.Now().UnixNano() - popr := rand.New(rand.NewSource(seed)) + popr := math_rand.New(math_rand.NewSource(seed)) p := NewPopulatedVersionCheckResponse(popr, true) - marshaler := jsonpb.Marshaler{} + marshaler := github_com_gogo_protobuf_jsonpb.Marshaler{} jsondata, err := marshaler.MarshalToString(p) if err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } msg := &VersionCheckResponse{} - err = jsonpb.UnmarshalString(jsondata, msg) + err = github_com_gogo_protobuf_jsonpb.UnmarshalString(jsondata, msg) if err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } @@ -361,11 +362,11 @@ func TestVersionCheckResponseJSON(t *testing.T) { } func TestCheckRequestProtoText(t *testing.T) { seed := time.Now().UnixNano() - popr := rand.New(rand.NewSource(seed)) + popr := math_rand.New(math_rand.NewSource(seed)) p := NewPopulatedCheckRequest(popr, true) - dAtA := proto.MarshalTextString(p) + dAtA := github_com_gogo_protobuf_proto.MarshalTextString(p) msg := &CheckRequest{} - if err := proto.UnmarshalText(dAtA, msg); err != nil { + if err := github_com_gogo_protobuf_proto.UnmarshalText(dAtA, msg); err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } if !p.Equal(msg) { @@ -375,11 +376,11 @@ func TestCheckRequestProtoText(t *testing.T) { func TestCheckRequestProtoCompactText(t *testing.T) { seed := time.Now().UnixNano() - popr := rand.New(rand.NewSource(seed)) + popr := math_rand.New(math_rand.NewSource(seed)) p := NewPopulatedCheckRequest(popr, true) - dAtA := proto.CompactTextString(p) + dAtA := github_com_gogo_protobuf_proto.CompactTextString(p) msg := &CheckRequest{} - if err := proto.UnmarshalText(dAtA, msg); err != nil { + if err := github_com_gogo_protobuf_proto.UnmarshalText(dAtA, msg); err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } if !p.Equal(msg) { @@ -389,11 +390,11 @@ func TestCheckRequestProtoCompactText(t *testing.T) { func TestHealthCheckResponseProtoText(t *testing.T) { seed := time.Now().UnixNano() - popr := rand.New(rand.NewSource(seed)) + popr := math_rand.New(math_rand.NewSource(seed)) p := NewPopulatedHealthCheckResponse(popr, true) - dAtA := proto.MarshalTextString(p) + dAtA := github_com_gogo_protobuf_proto.MarshalTextString(p) msg := &HealthCheckResponse{} - if err := proto.UnmarshalText(dAtA, msg); err != nil { + if err := github_com_gogo_protobuf_proto.UnmarshalText(dAtA, msg); err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } if !p.Equal(msg) { @@ -403,11 +404,11 @@ func TestHealthCheckResponseProtoText(t *testing.T) { func TestHealthCheckResponseProtoCompactText(t *testing.T) { seed := time.Now().UnixNano() - popr := rand.New(rand.NewSource(seed)) + popr := math_rand.New(math_rand.NewSource(seed)) p := NewPopulatedHealthCheckResponse(popr, true) - dAtA := proto.CompactTextString(p) + dAtA := github_com_gogo_protobuf_proto.CompactTextString(p) msg := &HealthCheckResponse{} - if err := proto.UnmarshalText(dAtA, msg); err != nil { + if err := github_com_gogo_protobuf_proto.UnmarshalText(dAtA, msg); err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } if !p.Equal(msg) { @@ -417,11 +418,11 @@ func TestHealthCheckResponseProtoCompactText(t *testing.T) { func TestVersionCheckResponseProtoText(t *testing.T) { seed := time.Now().UnixNano() - popr := rand.New(rand.NewSource(seed)) + popr := math_rand.New(math_rand.NewSource(seed)) p := NewPopulatedVersionCheckResponse(popr, true) - dAtA := proto.MarshalTextString(p) + dAtA := github_com_gogo_protobuf_proto.MarshalTextString(p) msg := &VersionCheckResponse{} - if err := proto.UnmarshalText(dAtA, msg); err != nil { + if err := github_com_gogo_protobuf_proto.UnmarshalText(dAtA, msg); err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } if !p.Equal(msg) { @@ -431,11 +432,11 @@ func TestVersionCheckResponseProtoText(t *testing.T) { func TestVersionCheckResponseProtoCompactText(t *testing.T) { seed := time.Now().UnixNano() - popr := rand.New(rand.NewSource(seed)) + popr := math_rand.New(math_rand.NewSource(seed)) p := NewPopulatedVersionCheckResponse(popr, true) - dAtA := proto.CompactTextString(p) + dAtA := github_com_gogo_protobuf_proto.CompactTextString(p) msg := &VersionCheckResponse{} - if err := proto.UnmarshalText(dAtA, msg); err != nil { + if err := github_com_gogo_protobuf_proto.UnmarshalText(dAtA, msg); err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } if !p.Equal(msg) { @@ -445,10 +446,10 @@ func TestVersionCheckResponseProtoCompactText(t *testing.T) { func TestCheckRequestSize(t *testing.T) { seed := time.Now().UnixNano() - popr := rand.New(rand.NewSource(seed)) + popr := math_rand.New(math_rand.NewSource(seed)) p := NewPopulatedCheckRequest(popr, true) - size2 := proto.Size(p) - dAtA, err := proto.Marshal(p) + size2 := github_com_gogo_protobuf_proto.Size(p) + dAtA, err := github_com_gogo_protobuf_proto.Marshal(p) if err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } @@ -459,14 +460,14 @@ func TestCheckRequestSize(t *testing.T) { if size2 != size { t.Errorf("seed = %d, size %v != before marshal proto.Size %v", seed, size, size2) } - size3 := proto.Size(p) + size3 := github_com_gogo_protobuf_proto.Size(p) if size3 != size { t.Errorf("seed = %d, size %v != after marshal proto.Size %v", seed, size, size3) } } func BenchmarkCheckRequestSize(b *testing.B) { - popr := rand.New(rand.NewSource(616)) + popr := math_rand.New(math_rand.NewSource(616)) total := 0 pops := make([]*CheckRequest, 1000) for i := 0; i < 1000; i++ { @@ -481,10 +482,10 @@ func BenchmarkCheckRequestSize(b *testing.B) { func TestHealthCheckResponseSize(t *testing.T) { seed := time.Now().UnixNano() - popr := rand.New(rand.NewSource(seed)) + popr := math_rand.New(math_rand.NewSource(seed)) p := NewPopulatedHealthCheckResponse(popr, true) - size2 := proto.Size(p) - dAtA, err := proto.Marshal(p) + size2 := github_com_gogo_protobuf_proto.Size(p) + dAtA, err := github_com_gogo_protobuf_proto.Marshal(p) if err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } @@ -495,14 +496,14 @@ func TestHealthCheckResponseSize(t *testing.T) { if size2 != size { t.Errorf("seed = %d, size %v != before marshal proto.Size %v", seed, size, size2) } - size3 := proto.Size(p) + size3 := github_com_gogo_protobuf_proto.Size(p) if size3 != size { t.Errorf("seed = %d, size %v != after marshal proto.Size %v", seed, size, size3) } } func BenchmarkHealthCheckResponseSize(b *testing.B) { - popr := rand.New(rand.NewSource(616)) + popr := math_rand.New(math_rand.NewSource(616)) total := 0 pops := make([]*HealthCheckResponse, 1000) for i := 0; i < 1000; i++ { @@ -517,10 +518,10 @@ func BenchmarkHealthCheckResponseSize(b *testing.B) { func TestVersionCheckResponseSize(t *testing.T) { seed := time.Now().UnixNano() - popr := rand.New(rand.NewSource(seed)) + popr := math_rand.New(math_rand.NewSource(seed)) p := NewPopulatedVersionCheckResponse(popr, true) - size2 := proto.Size(p) - dAtA, err := proto.Marshal(p) + size2 := github_com_gogo_protobuf_proto.Size(p) + dAtA, err := github_com_gogo_protobuf_proto.Marshal(p) if err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } @@ -531,14 +532,14 @@ func TestVersionCheckResponseSize(t *testing.T) { if size2 != size { t.Errorf("seed = %d, size %v != before marshal proto.Size %v", seed, size, size2) } - size3 := proto.Size(p) + size3 := github_com_gogo_protobuf_proto.Size(p) if size3 != size { t.Errorf("seed = %d, size %v != after marshal proto.Size %v", seed, size, size3) } } func BenchmarkVersionCheckResponseSize(b *testing.B) { - popr := rand.New(rand.NewSource(616)) + popr := math_rand.New(math_rand.NewSource(616)) total := 0 pops := make([]*VersionCheckResponse, 1000) for i := 0; i < 1000; i++ { diff --git a/protocols/grpc/oci.pb.go b/protocols/grpc/oci.pb.go index 5296a082f2..cbfbab5870 100644 --- a/protocols/grpc/oci.pb.go +++ b/protocols/grpc/oci.pb.go @@ -1499,7 +1499,10 @@ func init() { } func (this *Spec) Equal(that interface{}) bool { if that == nil { - return this == nil + if this == nil { + return true + } + return false } that1, ok := that.(*Spec) @@ -1512,7 +1515,10 @@ func (this *Spec) Equal(that interface{}) bool { } } if that1 == nil { - return this == nil + if this == nil { + return true + } + return false } else if this == nil { return false } @@ -1560,7 +1566,10 @@ func (this *Spec) Equal(that interface{}) bool { } func (this *Process) Equal(that interface{}) bool { if that == nil { - return this == nil + if this == nil { + return true + } + return false } that1, ok := that.(*Process) @@ -1573,7 +1582,10 @@ func (this *Process) Equal(that interface{}) bool { } } if that1 == nil { - return this == nil + if this == nil { + return true + } + return false } else if this == nil { return false } @@ -1632,7 +1644,10 @@ func (this *Process) Equal(that interface{}) bool { } func (this *Box) Equal(that interface{}) bool { if that == nil { - return this == nil + if this == nil { + return true + } + return false } that1, ok := that.(*Box) @@ -1645,7 +1660,10 @@ func (this *Box) Equal(that interface{}) bool { } } if that1 == nil { - return this == nil + if this == nil { + return true + } + return false } else if this == nil { return false } @@ -1659,7 +1677,10 @@ func (this *Box) Equal(that interface{}) bool { } func (this *User) Equal(that interface{}) bool { if that == nil { - return this == nil + if this == nil { + return true + } + return false } that1, ok := that.(*User) @@ -1672,7 +1693,10 @@ func (this *User) Equal(that interface{}) bool { } } if that1 == nil { - return this == nil + if this == nil { + return true + } + return false } else if this == nil { return false } @@ -1697,7 +1721,10 @@ func (this *User) Equal(that interface{}) bool { } func (this *LinuxCapabilities) Equal(that interface{}) bool { if that == nil { - return this == nil + if this == nil { + return true + } + return false } that1, ok := that.(*LinuxCapabilities) @@ -1710,7 +1737,10 @@ func (this *LinuxCapabilities) Equal(that interface{}) bool { } } if that1 == nil { - return this == nil + if this == nil { + return true + } + return false } else if this == nil { return false } @@ -1758,7 +1788,10 @@ func (this *LinuxCapabilities) Equal(that interface{}) bool { } func (this *POSIXRlimit) Equal(that interface{}) bool { if that == nil { - return this == nil + if this == nil { + return true + } + return false } that1, ok := that.(*POSIXRlimit) @@ -1771,7 +1804,10 @@ func (this *POSIXRlimit) Equal(that interface{}) bool { } } if that1 == nil { - return this == nil + if this == nil { + return true + } + return false } else if this == nil { return false } @@ -1788,7 +1824,10 @@ func (this *POSIXRlimit) Equal(that interface{}) bool { } func (this *Mount) Equal(that interface{}) bool { if that == nil { - return this == nil + if this == nil { + return true + } + return false } that1, ok := that.(*Mount) @@ -1801,7 +1840,10 @@ func (this *Mount) Equal(that interface{}) bool { } } if that1 == nil { - return this == nil + if this == nil { + return true + } + return false } else if this == nil { return false } @@ -1826,7 +1868,10 @@ func (this *Mount) Equal(that interface{}) bool { } func (this *Root) Equal(that interface{}) bool { if that == nil { - return this == nil + if this == nil { + return true + } + return false } that1, ok := that.(*Root) @@ -1839,7 +1884,10 @@ func (this *Root) Equal(that interface{}) bool { } } if that1 == nil { - return this == nil + if this == nil { + return true + } + return false } else if this == nil { return false } @@ -1853,7 +1901,10 @@ func (this *Root) Equal(that interface{}) bool { } func (this *Hooks) Equal(that interface{}) bool { if that == nil { - return this == nil + if this == nil { + return true + } + return false } that1, ok := that.(*Hooks) @@ -1866,7 +1917,10 @@ func (this *Hooks) Equal(that interface{}) bool { } } if that1 == nil { - return this == nil + if this == nil { + return true + } + return false } else if this == nil { return false } @@ -1898,7 +1952,10 @@ func (this *Hooks) Equal(that interface{}) bool { } func (this *Hook) Equal(that interface{}) bool { if that == nil { - return this == nil + if this == nil { + return true + } + return false } that1, ok := that.(*Hook) @@ -1911,7 +1968,10 @@ func (this *Hook) Equal(that interface{}) bool { } } if that1 == nil { - return this == nil + if this == nil { + return true + } + return false } else if this == nil { return false } @@ -1941,7 +2001,10 @@ func (this *Hook) Equal(that interface{}) bool { } func (this *Linux) Equal(that interface{}) bool { if that == nil { - return this == nil + if this == nil { + return true + } + return false } that1, ok := that.(*Linux) @@ -1954,7 +2017,10 @@ func (this *Linux) Equal(that interface{}) bool { } } if that1 == nil { - return this == nil + if this == nil { + return true + } + return false } else if this == nil { return false } @@ -2036,7 +2102,10 @@ func (this *Linux) Equal(that interface{}) bool { } func (this *Windows) Equal(that interface{}) bool { if that == nil { - return this == nil + if this == nil { + return true + } + return false } that1, ok := that.(*Windows) @@ -2049,7 +2118,10 @@ func (this *Windows) Equal(that interface{}) bool { } } if that1 == nil { - return this == nil + if this == nil { + return true + } + return false } else if this == nil { return false } @@ -2060,7 +2132,10 @@ func (this *Windows) Equal(that interface{}) bool { } func (this *Solaris) Equal(that interface{}) bool { if that == nil { - return this == nil + if this == nil { + return true + } + return false } that1, ok := that.(*Solaris) @@ -2073,7 +2148,10 @@ func (this *Solaris) Equal(that interface{}) bool { } } if that1 == nil { - return this == nil + if this == nil { + return true + } + return false } else if this == nil { return false } @@ -2084,7 +2162,10 @@ func (this *Solaris) Equal(that interface{}) bool { } func (this *LinuxIDMapping) Equal(that interface{}) bool { if that == nil { - return this == nil + if this == nil { + return true + } + return false } that1, ok := that.(*LinuxIDMapping) @@ -2097,7 +2178,10 @@ func (this *LinuxIDMapping) Equal(that interface{}) bool { } } if that1 == nil { - return this == nil + if this == nil { + return true + } + return false } else if this == nil { return false } @@ -2114,7 +2198,10 @@ func (this *LinuxIDMapping) Equal(that interface{}) bool { } func (this *LinuxNamespace) Equal(that interface{}) bool { if that == nil { - return this == nil + if this == nil { + return true + } + return false } that1, ok := that.(*LinuxNamespace) @@ -2127,7 +2214,10 @@ func (this *LinuxNamespace) Equal(that interface{}) bool { } } if that1 == nil { - return this == nil + if this == nil { + return true + } + return false } else if this == nil { return false } @@ -2141,7 +2231,10 @@ func (this *LinuxNamespace) Equal(that interface{}) bool { } func (this *LinuxDevice) Equal(that interface{}) bool { if that == nil { - return this == nil + if this == nil { + return true + } + return false } that1, ok := that.(*LinuxDevice) @@ -2154,7 +2247,10 @@ func (this *LinuxDevice) Equal(that interface{}) bool { } } if that1 == nil { - return this == nil + if this == nil { + return true + } + return false } else if this == nil { return false } @@ -2183,7 +2279,10 @@ func (this *LinuxDevice) Equal(that interface{}) bool { } func (this *LinuxResources) Equal(that interface{}) bool { if that == nil { - return this == nil + if this == nil { + return true + } + return false } that1, ok := that.(*LinuxResources) @@ -2196,7 +2295,10 @@ func (this *LinuxResources) Equal(that interface{}) bool { } } if that1 == nil { - return this == nil + if this == nil { + return true + } + return false } else if this == nil { return false } @@ -2235,7 +2337,10 @@ func (this *LinuxResources) Equal(that interface{}) bool { } func (this *LinuxMemory) Equal(that interface{}) bool { if that == nil { - return this == nil + if this == nil { + return true + } + return false } that1, ok := that.(*LinuxMemory) @@ -2248,7 +2353,10 @@ func (this *LinuxMemory) Equal(that interface{}) bool { } } if that1 == nil { - return this == nil + if this == nil { + return true + } + return false } else if this == nil { return false } @@ -2277,7 +2385,10 @@ func (this *LinuxMemory) Equal(that interface{}) bool { } func (this *LinuxCPU) Equal(that interface{}) bool { if that == nil { - return this == nil + if this == nil { + return true + } + return false } that1, ok := that.(*LinuxCPU) @@ -2290,7 +2401,10 @@ func (this *LinuxCPU) Equal(that interface{}) bool { } } if that1 == nil { - return this == nil + if this == nil { + return true + } + return false } else if this == nil { return false } @@ -2319,7 +2433,10 @@ func (this *LinuxCPU) Equal(that interface{}) bool { } func (this *LinuxWeightDevice) Equal(that interface{}) bool { if that == nil { - return this == nil + if this == nil { + return true + } + return false } that1, ok := that.(*LinuxWeightDevice) @@ -2332,7 +2449,10 @@ func (this *LinuxWeightDevice) Equal(that interface{}) bool { } } if that1 == nil { - return this == nil + if this == nil { + return true + } + return false } else if this == nil { return false } @@ -2352,7 +2472,10 @@ func (this *LinuxWeightDevice) Equal(that interface{}) bool { } func (this *LinuxThrottleDevice) Equal(that interface{}) bool { if that == nil { - return this == nil + if this == nil { + return true + } + return false } that1, ok := that.(*LinuxThrottleDevice) @@ -2365,7 +2488,10 @@ func (this *LinuxThrottleDevice) Equal(that interface{}) bool { } } if that1 == nil { - return this == nil + if this == nil { + return true + } + return false } else if this == nil { return false } @@ -2382,7 +2508,10 @@ func (this *LinuxThrottleDevice) Equal(that interface{}) bool { } func (this *LinuxBlockIO) Equal(that interface{}) bool { if that == nil { - return this == nil + if this == nil { + return true + } + return false } that1, ok := that.(*LinuxBlockIO) @@ -2395,7 +2524,10 @@ func (this *LinuxBlockIO) Equal(that interface{}) bool { } } if that1 == nil { - return this == nil + if this == nil { + return true + } + return false } else if this == nil { return false } @@ -2449,7 +2581,10 @@ func (this *LinuxBlockIO) Equal(that interface{}) bool { } func (this *LinuxPids) Equal(that interface{}) bool { if that == nil { - return this == nil + if this == nil { + return true + } + return false } that1, ok := that.(*LinuxPids) @@ -2462,7 +2597,10 @@ func (this *LinuxPids) Equal(that interface{}) bool { } } if that1 == nil { - return this == nil + if this == nil { + return true + } + return false } else if this == nil { return false } @@ -2473,7 +2611,10 @@ func (this *LinuxPids) Equal(that interface{}) bool { } func (this *LinuxDeviceCgroup) Equal(that interface{}) bool { if that == nil { - return this == nil + if this == nil { + return true + } + return false } that1, ok := that.(*LinuxDeviceCgroup) @@ -2486,7 +2627,10 @@ func (this *LinuxDeviceCgroup) Equal(that interface{}) bool { } } if that1 == nil { - return this == nil + if this == nil { + return true + } + return false } else if this == nil { return false } @@ -2509,7 +2653,10 @@ func (this *LinuxDeviceCgroup) Equal(that interface{}) bool { } func (this *LinuxNetwork) Equal(that interface{}) bool { if that == nil { - return this == nil + if this == nil { + return true + } + return false } that1, ok := that.(*LinuxNetwork) @@ -2522,7 +2669,10 @@ func (this *LinuxNetwork) Equal(that interface{}) bool { } } if that1 == nil { - return this == nil + if this == nil { + return true + } + return false } else if this == nil { return false } @@ -2541,7 +2691,10 @@ func (this *LinuxNetwork) Equal(that interface{}) bool { } func (this *LinuxHugepageLimit) Equal(that interface{}) bool { if that == nil { - return this == nil + if this == nil { + return true + } + return false } that1, ok := that.(*LinuxHugepageLimit) @@ -2554,7 +2707,10 @@ func (this *LinuxHugepageLimit) Equal(that interface{}) bool { } } if that1 == nil { - return this == nil + if this == nil { + return true + } + return false } else if this == nil { return false } @@ -2568,7 +2724,10 @@ func (this *LinuxHugepageLimit) Equal(that interface{}) bool { } func (this *LinuxInterfacePriority) Equal(that interface{}) bool { if that == nil { - return this == nil + if this == nil { + return true + } + return false } that1, ok := that.(*LinuxInterfacePriority) @@ -2581,7 +2740,10 @@ func (this *LinuxInterfacePriority) Equal(that interface{}) bool { } } if that1 == nil { - return this == nil + if this == nil { + return true + } + return false } else if this == nil { return false } @@ -2595,7 +2757,10 @@ func (this *LinuxInterfacePriority) Equal(that interface{}) bool { } func (this *LinuxSeccomp) Equal(that interface{}) bool { if that == nil { - return this == nil + if this == nil { + return true + } + return false } that1, ok := that.(*LinuxSeccomp) @@ -2608,7 +2773,10 @@ func (this *LinuxSeccomp) Equal(that interface{}) bool { } } if that1 == nil { - return this == nil + if this == nil { + return true + } + return false } else if this == nil { return false } @@ -2635,7 +2803,10 @@ func (this *LinuxSeccomp) Equal(that interface{}) bool { } func (this *LinuxSeccompArg) Equal(that interface{}) bool { if that == nil { - return this == nil + if this == nil { + return true + } + return false } that1, ok := that.(*LinuxSeccompArg) @@ -2648,7 +2819,10 @@ func (this *LinuxSeccompArg) Equal(that interface{}) bool { } } if that1 == nil { - return this == nil + if this == nil { + return true + } + return false } else if this == nil { return false } @@ -2668,7 +2842,10 @@ func (this *LinuxSeccompArg) Equal(that interface{}) bool { } func (this *LinuxSyscall) Equal(that interface{}) bool { if that == nil { - return this == nil + if this == nil { + return true + } + return false } that1, ok := that.(*LinuxSyscall) @@ -2681,7 +2858,10 @@ func (this *LinuxSyscall) Equal(that interface{}) bool { } } if that1 == nil { - return this == nil + if this == nil { + return true + } + return false } else if this == nil { return false } @@ -2708,7 +2888,10 @@ func (this *LinuxSyscall) Equal(that interface{}) bool { } func (this *LinuxIntelRdt) Equal(that interface{}) bool { if that == nil { - return this == nil + if this == nil { + return true + } + return false } that1, ok := that.(*LinuxIntelRdt) @@ -2721,7 +2904,10 @@ func (this *LinuxIntelRdt) Equal(that interface{}) bool { } } if that1 == nil { - return this == nil + if this == nil { + return true + } + return false } else if this == nil { return false } diff --git a/protocols/grpc/ocipb_test.go b/protocols/grpc/ocipb_test.go index b9649d07b4..e6538df364 100644 --- a/protocols/grpc/ocipb_test.go +++ b/protocols/grpc/ocipb_test.go @@ -4,10 +4,11 @@ package grpc import testing "testing" -import rand "math/rand" +import math_rand "math/rand" import time "time" +import github_com_gogo_protobuf_proto "github.com/gogo/protobuf/proto" +import github_com_gogo_protobuf_jsonpb "github.com/gogo/protobuf/jsonpb" import proto "github.com/gogo/protobuf/proto" -import jsonpb "github.com/gogo/protobuf/jsonpb" import fmt "fmt" import math "math" import _ "github.com/gogo/protobuf/gogoproto" @@ -20,14 +21,14 @@ var _ = math.Inf func TestSpecProto(t *testing.T) { seed := time.Now().UnixNano() - popr := rand.New(rand.NewSource(seed)) + popr := math_rand.New(math_rand.NewSource(seed)) p := NewPopulatedSpec(popr, false) - dAtA, err := proto.Marshal(p) + dAtA, err := github_com_gogo_protobuf_proto.Marshal(p) if err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } msg := &Spec{} - if err := proto.Unmarshal(dAtA, msg); err != nil { + if err := github_com_gogo_protobuf_proto.Unmarshal(dAtA, msg); err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } littlefuzz := make([]byte, len(dAtA)) @@ -45,13 +46,13 @@ func TestSpecProto(t *testing.T) { littlefuzz = append(littlefuzz, byte(popr.Intn(256))) } // shouldn't panic - _ = proto.Unmarshal(littlefuzz, msg) + _ = github_com_gogo_protobuf_proto.Unmarshal(littlefuzz, msg) } } func TestSpecMarshalTo(t *testing.T) { seed := time.Now().UnixNano() - popr := rand.New(rand.NewSource(seed)) + popr := math_rand.New(math_rand.NewSource(seed)) p := NewPopulatedSpec(popr, false) size := p.Size() dAtA := make([]byte, size) @@ -63,7 +64,7 @@ func TestSpecMarshalTo(t *testing.T) { t.Fatalf("seed = %d, err = %v", seed, err) } msg := &Spec{} - if err := proto.Unmarshal(dAtA, msg); err != nil { + if err := github_com_gogo_protobuf_proto.Unmarshal(dAtA, msg); err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } for i := range dAtA { @@ -75,7 +76,7 @@ func TestSpecMarshalTo(t *testing.T) { } func BenchmarkSpecProtoMarshal(b *testing.B) { - popr := rand.New(rand.NewSource(616)) + popr := math_rand.New(math_rand.NewSource(616)) total := 0 pops := make([]*Spec, 10000) for i := 0; i < 10000; i++ { @@ -83,7 +84,7 @@ func BenchmarkSpecProtoMarshal(b *testing.B) { } b.ResetTimer() for i := 0; i < b.N; i++ { - dAtA, err := proto.Marshal(pops[i%10000]) + dAtA, err := github_com_gogo_protobuf_proto.Marshal(pops[i%10000]) if err != nil { panic(err) } @@ -93,11 +94,11 @@ func BenchmarkSpecProtoMarshal(b *testing.B) { } func BenchmarkSpecProtoUnmarshal(b *testing.B) { - popr := rand.New(rand.NewSource(616)) + popr := math_rand.New(math_rand.NewSource(616)) total := 0 datas := make([][]byte, 10000) for i := 0; i < 10000; i++ { - dAtA, err := proto.Marshal(NewPopulatedSpec(popr, false)) + dAtA, err := github_com_gogo_protobuf_proto.Marshal(NewPopulatedSpec(popr, false)) if err != nil { panic(err) } @@ -107,7 +108,7 @@ func BenchmarkSpecProtoUnmarshal(b *testing.B) { b.ResetTimer() for i := 0; i < b.N; i++ { total += len(datas[i%10000]) - if err := proto.Unmarshal(datas[i%10000], msg); err != nil { + if err := github_com_gogo_protobuf_proto.Unmarshal(datas[i%10000], msg); err != nil { panic(err) } } @@ -116,14 +117,14 @@ func BenchmarkSpecProtoUnmarshal(b *testing.B) { func TestProcessProto(t *testing.T) { seed := time.Now().UnixNano() - popr := rand.New(rand.NewSource(seed)) + popr := math_rand.New(math_rand.NewSource(seed)) p := NewPopulatedProcess(popr, false) - dAtA, err := proto.Marshal(p) + dAtA, err := github_com_gogo_protobuf_proto.Marshal(p) if err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } msg := &Process{} - if err := proto.Unmarshal(dAtA, msg); err != nil { + if err := github_com_gogo_protobuf_proto.Unmarshal(dAtA, msg); err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } littlefuzz := make([]byte, len(dAtA)) @@ -141,13 +142,13 @@ func TestProcessProto(t *testing.T) { littlefuzz = append(littlefuzz, byte(popr.Intn(256))) } // shouldn't panic - _ = proto.Unmarshal(littlefuzz, msg) + _ = github_com_gogo_protobuf_proto.Unmarshal(littlefuzz, msg) } } func TestProcessMarshalTo(t *testing.T) { seed := time.Now().UnixNano() - popr := rand.New(rand.NewSource(seed)) + popr := math_rand.New(math_rand.NewSource(seed)) p := NewPopulatedProcess(popr, false) size := p.Size() dAtA := make([]byte, size) @@ -159,7 +160,7 @@ func TestProcessMarshalTo(t *testing.T) { t.Fatalf("seed = %d, err = %v", seed, err) } msg := &Process{} - if err := proto.Unmarshal(dAtA, msg); err != nil { + if err := github_com_gogo_protobuf_proto.Unmarshal(dAtA, msg); err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } for i := range dAtA { @@ -171,7 +172,7 @@ func TestProcessMarshalTo(t *testing.T) { } func BenchmarkProcessProtoMarshal(b *testing.B) { - popr := rand.New(rand.NewSource(616)) + popr := math_rand.New(math_rand.NewSource(616)) total := 0 pops := make([]*Process, 10000) for i := 0; i < 10000; i++ { @@ -179,7 +180,7 @@ func BenchmarkProcessProtoMarshal(b *testing.B) { } b.ResetTimer() for i := 0; i < b.N; i++ { - dAtA, err := proto.Marshal(pops[i%10000]) + dAtA, err := github_com_gogo_protobuf_proto.Marshal(pops[i%10000]) if err != nil { panic(err) } @@ -189,11 +190,11 @@ func BenchmarkProcessProtoMarshal(b *testing.B) { } func BenchmarkProcessProtoUnmarshal(b *testing.B) { - popr := rand.New(rand.NewSource(616)) + popr := math_rand.New(math_rand.NewSource(616)) total := 0 datas := make([][]byte, 10000) for i := 0; i < 10000; i++ { - dAtA, err := proto.Marshal(NewPopulatedProcess(popr, false)) + dAtA, err := github_com_gogo_protobuf_proto.Marshal(NewPopulatedProcess(popr, false)) if err != nil { panic(err) } @@ -203,7 +204,7 @@ func BenchmarkProcessProtoUnmarshal(b *testing.B) { b.ResetTimer() for i := 0; i < b.N; i++ { total += len(datas[i%10000]) - if err := proto.Unmarshal(datas[i%10000], msg); err != nil { + if err := github_com_gogo_protobuf_proto.Unmarshal(datas[i%10000], msg); err != nil { panic(err) } } @@ -212,14 +213,14 @@ func BenchmarkProcessProtoUnmarshal(b *testing.B) { func TestBoxProto(t *testing.T) { seed := time.Now().UnixNano() - popr := rand.New(rand.NewSource(seed)) + popr := math_rand.New(math_rand.NewSource(seed)) p := NewPopulatedBox(popr, false) - dAtA, err := proto.Marshal(p) + dAtA, err := github_com_gogo_protobuf_proto.Marshal(p) if err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } msg := &Box{} - if err := proto.Unmarshal(dAtA, msg); err != nil { + if err := github_com_gogo_protobuf_proto.Unmarshal(dAtA, msg); err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } littlefuzz := make([]byte, len(dAtA)) @@ -237,13 +238,13 @@ func TestBoxProto(t *testing.T) { littlefuzz = append(littlefuzz, byte(popr.Intn(256))) } // shouldn't panic - _ = proto.Unmarshal(littlefuzz, msg) + _ = github_com_gogo_protobuf_proto.Unmarshal(littlefuzz, msg) } } func TestBoxMarshalTo(t *testing.T) { seed := time.Now().UnixNano() - popr := rand.New(rand.NewSource(seed)) + popr := math_rand.New(math_rand.NewSource(seed)) p := NewPopulatedBox(popr, false) size := p.Size() dAtA := make([]byte, size) @@ -255,7 +256,7 @@ func TestBoxMarshalTo(t *testing.T) { t.Fatalf("seed = %d, err = %v", seed, err) } msg := &Box{} - if err := proto.Unmarshal(dAtA, msg); err != nil { + if err := github_com_gogo_protobuf_proto.Unmarshal(dAtA, msg); err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } for i := range dAtA { @@ -267,7 +268,7 @@ func TestBoxMarshalTo(t *testing.T) { } func BenchmarkBoxProtoMarshal(b *testing.B) { - popr := rand.New(rand.NewSource(616)) + popr := math_rand.New(math_rand.NewSource(616)) total := 0 pops := make([]*Box, 10000) for i := 0; i < 10000; i++ { @@ -275,7 +276,7 @@ func BenchmarkBoxProtoMarshal(b *testing.B) { } b.ResetTimer() for i := 0; i < b.N; i++ { - dAtA, err := proto.Marshal(pops[i%10000]) + dAtA, err := github_com_gogo_protobuf_proto.Marshal(pops[i%10000]) if err != nil { panic(err) } @@ -285,11 +286,11 @@ func BenchmarkBoxProtoMarshal(b *testing.B) { } func BenchmarkBoxProtoUnmarshal(b *testing.B) { - popr := rand.New(rand.NewSource(616)) + popr := math_rand.New(math_rand.NewSource(616)) total := 0 datas := make([][]byte, 10000) for i := 0; i < 10000; i++ { - dAtA, err := proto.Marshal(NewPopulatedBox(popr, false)) + dAtA, err := github_com_gogo_protobuf_proto.Marshal(NewPopulatedBox(popr, false)) if err != nil { panic(err) } @@ -299,7 +300,7 @@ func BenchmarkBoxProtoUnmarshal(b *testing.B) { b.ResetTimer() for i := 0; i < b.N; i++ { total += len(datas[i%10000]) - if err := proto.Unmarshal(datas[i%10000], msg); err != nil { + if err := github_com_gogo_protobuf_proto.Unmarshal(datas[i%10000], msg); err != nil { panic(err) } } @@ -308,14 +309,14 @@ func BenchmarkBoxProtoUnmarshal(b *testing.B) { func TestUserProto(t *testing.T) { seed := time.Now().UnixNano() - popr := rand.New(rand.NewSource(seed)) + popr := math_rand.New(math_rand.NewSource(seed)) p := NewPopulatedUser(popr, false) - dAtA, err := proto.Marshal(p) + dAtA, err := github_com_gogo_protobuf_proto.Marshal(p) if err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } msg := &User{} - if err := proto.Unmarshal(dAtA, msg); err != nil { + if err := github_com_gogo_protobuf_proto.Unmarshal(dAtA, msg); err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } littlefuzz := make([]byte, len(dAtA)) @@ -333,13 +334,13 @@ func TestUserProto(t *testing.T) { littlefuzz = append(littlefuzz, byte(popr.Intn(256))) } // shouldn't panic - _ = proto.Unmarshal(littlefuzz, msg) + _ = github_com_gogo_protobuf_proto.Unmarshal(littlefuzz, msg) } } func TestUserMarshalTo(t *testing.T) { seed := time.Now().UnixNano() - popr := rand.New(rand.NewSource(seed)) + popr := math_rand.New(math_rand.NewSource(seed)) p := NewPopulatedUser(popr, false) size := p.Size() dAtA := make([]byte, size) @@ -351,7 +352,7 @@ func TestUserMarshalTo(t *testing.T) { t.Fatalf("seed = %d, err = %v", seed, err) } msg := &User{} - if err := proto.Unmarshal(dAtA, msg); err != nil { + if err := github_com_gogo_protobuf_proto.Unmarshal(dAtA, msg); err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } for i := range dAtA { @@ -363,7 +364,7 @@ func TestUserMarshalTo(t *testing.T) { } func BenchmarkUserProtoMarshal(b *testing.B) { - popr := rand.New(rand.NewSource(616)) + popr := math_rand.New(math_rand.NewSource(616)) total := 0 pops := make([]*User, 10000) for i := 0; i < 10000; i++ { @@ -371,7 +372,7 @@ func BenchmarkUserProtoMarshal(b *testing.B) { } b.ResetTimer() for i := 0; i < b.N; i++ { - dAtA, err := proto.Marshal(pops[i%10000]) + dAtA, err := github_com_gogo_protobuf_proto.Marshal(pops[i%10000]) if err != nil { panic(err) } @@ -381,11 +382,11 @@ func BenchmarkUserProtoMarshal(b *testing.B) { } func BenchmarkUserProtoUnmarshal(b *testing.B) { - popr := rand.New(rand.NewSource(616)) + popr := math_rand.New(math_rand.NewSource(616)) total := 0 datas := make([][]byte, 10000) for i := 0; i < 10000; i++ { - dAtA, err := proto.Marshal(NewPopulatedUser(popr, false)) + dAtA, err := github_com_gogo_protobuf_proto.Marshal(NewPopulatedUser(popr, false)) if err != nil { panic(err) } @@ -395,7 +396,7 @@ func BenchmarkUserProtoUnmarshal(b *testing.B) { b.ResetTimer() for i := 0; i < b.N; i++ { total += len(datas[i%10000]) - if err := proto.Unmarshal(datas[i%10000], msg); err != nil { + if err := github_com_gogo_protobuf_proto.Unmarshal(datas[i%10000], msg); err != nil { panic(err) } } @@ -404,14 +405,14 @@ func BenchmarkUserProtoUnmarshal(b *testing.B) { func TestLinuxCapabilitiesProto(t *testing.T) { seed := time.Now().UnixNano() - popr := rand.New(rand.NewSource(seed)) + popr := math_rand.New(math_rand.NewSource(seed)) p := NewPopulatedLinuxCapabilities(popr, false) - dAtA, err := proto.Marshal(p) + dAtA, err := github_com_gogo_protobuf_proto.Marshal(p) if err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } msg := &LinuxCapabilities{} - if err := proto.Unmarshal(dAtA, msg); err != nil { + if err := github_com_gogo_protobuf_proto.Unmarshal(dAtA, msg); err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } littlefuzz := make([]byte, len(dAtA)) @@ -429,13 +430,13 @@ func TestLinuxCapabilitiesProto(t *testing.T) { littlefuzz = append(littlefuzz, byte(popr.Intn(256))) } // shouldn't panic - _ = proto.Unmarshal(littlefuzz, msg) + _ = github_com_gogo_protobuf_proto.Unmarshal(littlefuzz, msg) } } func TestLinuxCapabilitiesMarshalTo(t *testing.T) { seed := time.Now().UnixNano() - popr := rand.New(rand.NewSource(seed)) + popr := math_rand.New(math_rand.NewSource(seed)) p := NewPopulatedLinuxCapabilities(popr, false) size := p.Size() dAtA := make([]byte, size) @@ -447,7 +448,7 @@ func TestLinuxCapabilitiesMarshalTo(t *testing.T) { t.Fatalf("seed = %d, err = %v", seed, err) } msg := &LinuxCapabilities{} - if err := proto.Unmarshal(dAtA, msg); err != nil { + if err := github_com_gogo_protobuf_proto.Unmarshal(dAtA, msg); err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } for i := range dAtA { @@ -459,7 +460,7 @@ func TestLinuxCapabilitiesMarshalTo(t *testing.T) { } func BenchmarkLinuxCapabilitiesProtoMarshal(b *testing.B) { - popr := rand.New(rand.NewSource(616)) + popr := math_rand.New(math_rand.NewSource(616)) total := 0 pops := make([]*LinuxCapabilities, 10000) for i := 0; i < 10000; i++ { @@ -467,7 +468,7 @@ func BenchmarkLinuxCapabilitiesProtoMarshal(b *testing.B) { } b.ResetTimer() for i := 0; i < b.N; i++ { - dAtA, err := proto.Marshal(pops[i%10000]) + dAtA, err := github_com_gogo_protobuf_proto.Marshal(pops[i%10000]) if err != nil { panic(err) } @@ -477,11 +478,11 @@ func BenchmarkLinuxCapabilitiesProtoMarshal(b *testing.B) { } func BenchmarkLinuxCapabilitiesProtoUnmarshal(b *testing.B) { - popr := rand.New(rand.NewSource(616)) + popr := math_rand.New(math_rand.NewSource(616)) total := 0 datas := make([][]byte, 10000) for i := 0; i < 10000; i++ { - dAtA, err := proto.Marshal(NewPopulatedLinuxCapabilities(popr, false)) + dAtA, err := github_com_gogo_protobuf_proto.Marshal(NewPopulatedLinuxCapabilities(popr, false)) if err != nil { panic(err) } @@ -491,7 +492,7 @@ func BenchmarkLinuxCapabilitiesProtoUnmarshal(b *testing.B) { b.ResetTimer() for i := 0; i < b.N; i++ { total += len(datas[i%10000]) - if err := proto.Unmarshal(datas[i%10000], msg); err != nil { + if err := github_com_gogo_protobuf_proto.Unmarshal(datas[i%10000], msg); err != nil { panic(err) } } @@ -500,14 +501,14 @@ func BenchmarkLinuxCapabilitiesProtoUnmarshal(b *testing.B) { func TestPOSIXRlimitProto(t *testing.T) { seed := time.Now().UnixNano() - popr := rand.New(rand.NewSource(seed)) + popr := math_rand.New(math_rand.NewSource(seed)) p := NewPopulatedPOSIXRlimit(popr, false) - dAtA, err := proto.Marshal(p) + dAtA, err := github_com_gogo_protobuf_proto.Marshal(p) if err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } msg := &POSIXRlimit{} - if err := proto.Unmarshal(dAtA, msg); err != nil { + if err := github_com_gogo_protobuf_proto.Unmarshal(dAtA, msg); err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } littlefuzz := make([]byte, len(dAtA)) @@ -525,13 +526,13 @@ func TestPOSIXRlimitProto(t *testing.T) { littlefuzz = append(littlefuzz, byte(popr.Intn(256))) } // shouldn't panic - _ = proto.Unmarshal(littlefuzz, msg) + _ = github_com_gogo_protobuf_proto.Unmarshal(littlefuzz, msg) } } func TestPOSIXRlimitMarshalTo(t *testing.T) { seed := time.Now().UnixNano() - popr := rand.New(rand.NewSource(seed)) + popr := math_rand.New(math_rand.NewSource(seed)) p := NewPopulatedPOSIXRlimit(popr, false) size := p.Size() dAtA := make([]byte, size) @@ -543,7 +544,7 @@ func TestPOSIXRlimitMarshalTo(t *testing.T) { t.Fatalf("seed = %d, err = %v", seed, err) } msg := &POSIXRlimit{} - if err := proto.Unmarshal(dAtA, msg); err != nil { + if err := github_com_gogo_protobuf_proto.Unmarshal(dAtA, msg); err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } for i := range dAtA { @@ -555,7 +556,7 @@ func TestPOSIXRlimitMarshalTo(t *testing.T) { } func BenchmarkPOSIXRlimitProtoMarshal(b *testing.B) { - popr := rand.New(rand.NewSource(616)) + popr := math_rand.New(math_rand.NewSource(616)) total := 0 pops := make([]*POSIXRlimit, 10000) for i := 0; i < 10000; i++ { @@ -563,7 +564,7 @@ func BenchmarkPOSIXRlimitProtoMarshal(b *testing.B) { } b.ResetTimer() for i := 0; i < b.N; i++ { - dAtA, err := proto.Marshal(pops[i%10000]) + dAtA, err := github_com_gogo_protobuf_proto.Marshal(pops[i%10000]) if err != nil { panic(err) } @@ -573,11 +574,11 @@ func BenchmarkPOSIXRlimitProtoMarshal(b *testing.B) { } func BenchmarkPOSIXRlimitProtoUnmarshal(b *testing.B) { - popr := rand.New(rand.NewSource(616)) + popr := math_rand.New(math_rand.NewSource(616)) total := 0 datas := make([][]byte, 10000) for i := 0; i < 10000; i++ { - dAtA, err := proto.Marshal(NewPopulatedPOSIXRlimit(popr, false)) + dAtA, err := github_com_gogo_protobuf_proto.Marshal(NewPopulatedPOSIXRlimit(popr, false)) if err != nil { panic(err) } @@ -587,7 +588,7 @@ func BenchmarkPOSIXRlimitProtoUnmarshal(b *testing.B) { b.ResetTimer() for i := 0; i < b.N; i++ { total += len(datas[i%10000]) - if err := proto.Unmarshal(datas[i%10000], msg); err != nil { + if err := github_com_gogo_protobuf_proto.Unmarshal(datas[i%10000], msg); err != nil { panic(err) } } @@ -596,14 +597,14 @@ func BenchmarkPOSIXRlimitProtoUnmarshal(b *testing.B) { func TestMountProto(t *testing.T) { seed := time.Now().UnixNano() - popr := rand.New(rand.NewSource(seed)) + popr := math_rand.New(math_rand.NewSource(seed)) p := NewPopulatedMount(popr, false) - dAtA, err := proto.Marshal(p) + dAtA, err := github_com_gogo_protobuf_proto.Marshal(p) if err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } msg := &Mount{} - if err := proto.Unmarshal(dAtA, msg); err != nil { + if err := github_com_gogo_protobuf_proto.Unmarshal(dAtA, msg); err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } littlefuzz := make([]byte, len(dAtA)) @@ -621,13 +622,13 @@ func TestMountProto(t *testing.T) { littlefuzz = append(littlefuzz, byte(popr.Intn(256))) } // shouldn't panic - _ = proto.Unmarshal(littlefuzz, msg) + _ = github_com_gogo_protobuf_proto.Unmarshal(littlefuzz, msg) } } func TestMountMarshalTo(t *testing.T) { seed := time.Now().UnixNano() - popr := rand.New(rand.NewSource(seed)) + popr := math_rand.New(math_rand.NewSource(seed)) p := NewPopulatedMount(popr, false) size := p.Size() dAtA := make([]byte, size) @@ -639,7 +640,7 @@ func TestMountMarshalTo(t *testing.T) { t.Fatalf("seed = %d, err = %v", seed, err) } msg := &Mount{} - if err := proto.Unmarshal(dAtA, msg); err != nil { + if err := github_com_gogo_protobuf_proto.Unmarshal(dAtA, msg); err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } for i := range dAtA { @@ -651,7 +652,7 @@ func TestMountMarshalTo(t *testing.T) { } func BenchmarkMountProtoMarshal(b *testing.B) { - popr := rand.New(rand.NewSource(616)) + popr := math_rand.New(math_rand.NewSource(616)) total := 0 pops := make([]*Mount, 10000) for i := 0; i < 10000; i++ { @@ -659,7 +660,7 @@ func BenchmarkMountProtoMarshal(b *testing.B) { } b.ResetTimer() for i := 0; i < b.N; i++ { - dAtA, err := proto.Marshal(pops[i%10000]) + dAtA, err := github_com_gogo_protobuf_proto.Marshal(pops[i%10000]) if err != nil { panic(err) } @@ -669,11 +670,11 @@ func BenchmarkMountProtoMarshal(b *testing.B) { } func BenchmarkMountProtoUnmarshal(b *testing.B) { - popr := rand.New(rand.NewSource(616)) + popr := math_rand.New(math_rand.NewSource(616)) total := 0 datas := make([][]byte, 10000) for i := 0; i < 10000; i++ { - dAtA, err := proto.Marshal(NewPopulatedMount(popr, false)) + dAtA, err := github_com_gogo_protobuf_proto.Marshal(NewPopulatedMount(popr, false)) if err != nil { panic(err) } @@ -683,7 +684,7 @@ func BenchmarkMountProtoUnmarshal(b *testing.B) { b.ResetTimer() for i := 0; i < b.N; i++ { total += len(datas[i%10000]) - if err := proto.Unmarshal(datas[i%10000], msg); err != nil { + if err := github_com_gogo_protobuf_proto.Unmarshal(datas[i%10000], msg); err != nil { panic(err) } } @@ -692,14 +693,14 @@ func BenchmarkMountProtoUnmarshal(b *testing.B) { func TestRootProto(t *testing.T) { seed := time.Now().UnixNano() - popr := rand.New(rand.NewSource(seed)) + popr := math_rand.New(math_rand.NewSource(seed)) p := NewPopulatedRoot(popr, false) - dAtA, err := proto.Marshal(p) + dAtA, err := github_com_gogo_protobuf_proto.Marshal(p) if err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } msg := &Root{} - if err := proto.Unmarshal(dAtA, msg); err != nil { + if err := github_com_gogo_protobuf_proto.Unmarshal(dAtA, msg); err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } littlefuzz := make([]byte, len(dAtA)) @@ -717,13 +718,13 @@ func TestRootProto(t *testing.T) { littlefuzz = append(littlefuzz, byte(popr.Intn(256))) } // shouldn't panic - _ = proto.Unmarshal(littlefuzz, msg) + _ = github_com_gogo_protobuf_proto.Unmarshal(littlefuzz, msg) } } func TestRootMarshalTo(t *testing.T) { seed := time.Now().UnixNano() - popr := rand.New(rand.NewSource(seed)) + popr := math_rand.New(math_rand.NewSource(seed)) p := NewPopulatedRoot(popr, false) size := p.Size() dAtA := make([]byte, size) @@ -735,7 +736,7 @@ func TestRootMarshalTo(t *testing.T) { t.Fatalf("seed = %d, err = %v", seed, err) } msg := &Root{} - if err := proto.Unmarshal(dAtA, msg); err != nil { + if err := github_com_gogo_protobuf_proto.Unmarshal(dAtA, msg); err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } for i := range dAtA { @@ -747,7 +748,7 @@ func TestRootMarshalTo(t *testing.T) { } func BenchmarkRootProtoMarshal(b *testing.B) { - popr := rand.New(rand.NewSource(616)) + popr := math_rand.New(math_rand.NewSource(616)) total := 0 pops := make([]*Root, 10000) for i := 0; i < 10000; i++ { @@ -755,7 +756,7 @@ func BenchmarkRootProtoMarshal(b *testing.B) { } b.ResetTimer() for i := 0; i < b.N; i++ { - dAtA, err := proto.Marshal(pops[i%10000]) + dAtA, err := github_com_gogo_protobuf_proto.Marshal(pops[i%10000]) if err != nil { panic(err) } @@ -765,11 +766,11 @@ func BenchmarkRootProtoMarshal(b *testing.B) { } func BenchmarkRootProtoUnmarshal(b *testing.B) { - popr := rand.New(rand.NewSource(616)) + popr := math_rand.New(math_rand.NewSource(616)) total := 0 datas := make([][]byte, 10000) for i := 0; i < 10000; i++ { - dAtA, err := proto.Marshal(NewPopulatedRoot(popr, false)) + dAtA, err := github_com_gogo_protobuf_proto.Marshal(NewPopulatedRoot(popr, false)) if err != nil { panic(err) } @@ -779,7 +780,7 @@ func BenchmarkRootProtoUnmarshal(b *testing.B) { b.ResetTimer() for i := 0; i < b.N; i++ { total += len(datas[i%10000]) - if err := proto.Unmarshal(datas[i%10000], msg); err != nil { + if err := github_com_gogo_protobuf_proto.Unmarshal(datas[i%10000], msg); err != nil { panic(err) } } @@ -788,14 +789,14 @@ func BenchmarkRootProtoUnmarshal(b *testing.B) { func TestHooksProto(t *testing.T) { seed := time.Now().UnixNano() - popr := rand.New(rand.NewSource(seed)) + popr := math_rand.New(math_rand.NewSource(seed)) p := NewPopulatedHooks(popr, false) - dAtA, err := proto.Marshal(p) + dAtA, err := github_com_gogo_protobuf_proto.Marshal(p) if err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } msg := &Hooks{} - if err := proto.Unmarshal(dAtA, msg); err != nil { + if err := github_com_gogo_protobuf_proto.Unmarshal(dAtA, msg); err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } littlefuzz := make([]byte, len(dAtA)) @@ -813,13 +814,13 @@ func TestHooksProto(t *testing.T) { littlefuzz = append(littlefuzz, byte(popr.Intn(256))) } // shouldn't panic - _ = proto.Unmarshal(littlefuzz, msg) + _ = github_com_gogo_protobuf_proto.Unmarshal(littlefuzz, msg) } } func TestHooksMarshalTo(t *testing.T) { seed := time.Now().UnixNano() - popr := rand.New(rand.NewSource(seed)) + popr := math_rand.New(math_rand.NewSource(seed)) p := NewPopulatedHooks(popr, false) size := p.Size() dAtA := make([]byte, size) @@ -831,7 +832,7 @@ func TestHooksMarshalTo(t *testing.T) { t.Fatalf("seed = %d, err = %v", seed, err) } msg := &Hooks{} - if err := proto.Unmarshal(dAtA, msg); err != nil { + if err := github_com_gogo_protobuf_proto.Unmarshal(dAtA, msg); err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } for i := range dAtA { @@ -843,7 +844,7 @@ func TestHooksMarshalTo(t *testing.T) { } func BenchmarkHooksProtoMarshal(b *testing.B) { - popr := rand.New(rand.NewSource(616)) + popr := math_rand.New(math_rand.NewSource(616)) total := 0 pops := make([]*Hooks, 10000) for i := 0; i < 10000; i++ { @@ -851,7 +852,7 @@ func BenchmarkHooksProtoMarshal(b *testing.B) { } b.ResetTimer() for i := 0; i < b.N; i++ { - dAtA, err := proto.Marshal(pops[i%10000]) + dAtA, err := github_com_gogo_protobuf_proto.Marshal(pops[i%10000]) if err != nil { panic(err) } @@ -861,11 +862,11 @@ func BenchmarkHooksProtoMarshal(b *testing.B) { } func BenchmarkHooksProtoUnmarshal(b *testing.B) { - popr := rand.New(rand.NewSource(616)) + popr := math_rand.New(math_rand.NewSource(616)) total := 0 datas := make([][]byte, 10000) for i := 0; i < 10000; i++ { - dAtA, err := proto.Marshal(NewPopulatedHooks(popr, false)) + dAtA, err := github_com_gogo_protobuf_proto.Marshal(NewPopulatedHooks(popr, false)) if err != nil { panic(err) } @@ -875,7 +876,7 @@ func BenchmarkHooksProtoUnmarshal(b *testing.B) { b.ResetTimer() for i := 0; i < b.N; i++ { total += len(datas[i%10000]) - if err := proto.Unmarshal(datas[i%10000], msg); err != nil { + if err := github_com_gogo_protobuf_proto.Unmarshal(datas[i%10000], msg); err != nil { panic(err) } } @@ -884,14 +885,14 @@ func BenchmarkHooksProtoUnmarshal(b *testing.B) { func TestHookProto(t *testing.T) { seed := time.Now().UnixNano() - popr := rand.New(rand.NewSource(seed)) + popr := math_rand.New(math_rand.NewSource(seed)) p := NewPopulatedHook(popr, false) - dAtA, err := proto.Marshal(p) + dAtA, err := github_com_gogo_protobuf_proto.Marshal(p) if err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } msg := &Hook{} - if err := proto.Unmarshal(dAtA, msg); err != nil { + if err := github_com_gogo_protobuf_proto.Unmarshal(dAtA, msg); err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } littlefuzz := make([]byte, len(dAtA)) @@ -909,13 +910,13 @@ func TestHookProto(t *testing.T) { littlefuzz = append(littlefuzz, byte(popr.Intn(256))) } // shouldn't panic - _ = proto.Unmarshal(littlefuzz, msg) + _ = github_com_gogo_protobuf_proto.Unmarshal(littlefuzz, msg) } } func TestHookMarshalTo(t *testing.T) { seed := time.Now().UnixNano() - popr := rand.New(rand.NewSource(seed)) + popr := math_rand.New(math_rand.NewSource(seed)) p := NewPopulatedHook(popr, false) size := p.Size() dAtA := make([]byte, size) @@ -927,7 +928,7 @@ func TestHookMarshalTo(t *testing.T) { t.Fatalf("seed = %d, err = %v", seed, err) } msg := &Hook{} - if err := proto.Unmarshal(dAtA, msg); err != nil { + if err := github_com_gogo_protobuf_proto.Unmarshal(dAtA, msg); err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } for i := range dAtA { @@ -939,7 +940,7 @@ func TestHookMarshalTo(t *testing.T) { } func BenchmarkHookProtoMarshal(b *testing.B) { - popr := rand.New(rand.NewSource(616)) + popr := math_rand.New(math_rand.NewSource(616)) total := 0 pops := make([]*Hook, 10000) for i := 0; i < 10000; i++ { @@ -947,7 +948,7 @@ func BenchmarkHookProtoMarshal(b *testing.B) { } b.ResetTimer() for i := 0; i < b.N; i++ { - dAtA, err := proto.Marshal(pops[i%10000]) + dAtA, err := github_com_gogo_protobuf_proto.Marshal(pops[i%10000]) if err != nil { panic(err) } @@ -957,11 +958,11 @@ func BenchmarkHookProtoMarshal(b *testing.B) { } func BenchmarkHookProtoUnmarshal(b *testing.B) { - popr := rand.New(rand.NewSource(616)) + popr := math_rand.New(math_rand.NewSource(616)) total := 0 datas := make([][]byte, 10000) for i := 0; i < 10000; i++ { - dAtA, err := proto.Marshal(NewPopulatedHook(popr, false)) + dAtA, err := github_com_gogo_protobuf_proto.Marshal(NewPopulatedHook(popr, false)) if err != nil { panic(err) } @@ -971,7 +972,7 @@ func BenchmarkHookProtoUnmarshal(b *testing.B) { b.ResetTimer() for i := 0; i < b.N; i++ { total += len(datas[i%10000]) - if err := proto.Unmarshal(datas[i%10000], msg); err != nil { + if err := github_com_gogo_protobuf_proto.Unmarshal(datas[i%10000], msg); err != nil { panic(err) } } @@ -980,14 +981,14 @@ func BenchmarkHookProtoUnmarshal(b *testing.B) { func TestLinuxProto(t *testing.T) { seed := time.Now().UnixNano() - popr := rand.New(rand.NewSource(seed)) + popr := math_rand.New(math_rand.NewSource(seed)) p := NewPopulatedLinux(popr, false) - dAtA, err := proto.Marshal(p) + dAtA, err := github_com_gogo_protobuf_proto.Marshal(p) if err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } msg := &Linux{} - if err := proto.Unmarshal(dAtA, msg); err != nil { + if err := github_com_gogo_protobuf_proto.Unmarshal(dAtA, msg); err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } littlefuzz := make([]byte, len(dAtA)) @@ -1005,13 +1006,13 @@ func TestLinuxProto(t *testing.T) { littlefuzz = append(littlefuzz, byte(popr.Intn(256))) } // shouldn't panic - _ = proto.Unmarshal(littlefuzz, msg) + _ = github_com_gogo_protobuf_proto.Unmarshal(littlefuzz, msg) } } func TestLinuxMarshalTo(t *testing.T) { seed := time.Now().UnixNano() - popr := rand.New(rand.NewSource(seed)) + popr := math_rand.New(math_rand.NewSource(seed)) p := NewPopulatedLinux(popr, false) size := p.Size() dAtA := make([]byte, size) @@ -1023,7 +1024,7 @@ func TestLinuxMarshalTo(t *testing.T) { t.Fatalf("seed = %d, err = %v", seed, err) } msg := &Linux{} - if err := proto.Unmarshal(dAtA, msg); err != nil { + if err := github_com_gogo_protobuf_proto.Unmarshal(dAtA, msg); err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } for i := range dAtA { @@ -1035,7 +1036,7 @@ func TestLinuxMarshalTo(t *testing.T) { } func BenchmarkLinuxProtoMarshal(b *testing.B) { - popr := rand.New(rand.NewSource(616)) + popr := math_rand.New(math_rand.NewSource(616)) total := 0 pops := make([]*Linux, 10000) for i := 0; i < 10000; i++ { @@ -1043,7 +1044,7 @@ func BenchmarkLinuxProtoMarshal(b *testing.B) { } b.ResetTimer() for i := 0; i < b.N; i++ { - dAtA, err := proto.Marshal(pops[i%10000]) + dAtA, err := github_com_gogo_protobuf_proto.Marshal(pops[i%10000]) if err != nil { panic(err) } @@ -1053,11 +1054,11 @@ func BenchmarkLinuxProtoMarshal(b *testing.B) { } func BenchmarkLinuxProtoUnmarshal(b *testing.B) { - popr := rand.New(rand.NewSource(616)) + popr := math_rand.New(math_rand.NewSource(616)) total := 0 datas := make([][]byte, 10000) for i := 0; i < 10000; i++ { - dAtA, err := proto.Marshal(NewPopulatedLinux(popr, false)) + dAtA, err := github_com_gogo_protobuf_proto.Marshal(NewPopulatedLinux(popr, false)) if err != nil { panic(err) } @@ -1067,7 +1068,7 @@ func BenchmarkLinuxProtoUnmarshal(b *testing.B) { b.ResetTimer() for i := 0; i < b.N; i++ { total += len(datas[i%10000]) - if err := proto.Unmarshal(datas[i%10000], msg); err != nil { + if err := github_com_gogo_protobuf_proto.Unmarshal(datas[i%10000], msg); err != nil { panic(err) } } @@ -1076,14 +1077,14 @@ func BenchmarkLinuxProtoUnmarshal(b *testing.B) { func TestWindowsProto(t *testing.T) { seed := time.Now().UnixNano() - popr := rand.New(rand.NewSource(seed)) + popr := math_rand.New(math_rand.NewSource(seed)) p := NewPopulatedWindows(popr, false) - dAtA, err := proto.Marshal(p) + dAtA, err := github_com_gogo_protobuf_proto.Marshal(p) if err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } msg := &Windows{} - if err := proto.Unmarshal(dAtA, msg); err != nil { + if err := github_com_gogo_protobuf_proto.Unmarshal(dAtA, msg); err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } littlefuzz := make([]byte, len(dAtA)) @@ -1101,13 +1102,13 @@ func TestWindowsProto(t *testing.T) { littlefuzz = append(littlefuzz, byte(popr.Intn(256))) } // shouldn't panic - _ = proto.Unmarshal(littlefuzz, msg) + _ = github_com_gogo_protobuf_proto.Unmarshal(littlefuzz, msg) } } func TestWindowsMarshalTo(t *testing.T) { seed := time.Now().UnixNano() - popr := rand.New(rand.NewSource(seed)) + popr := math_rand.New(math_rand.NewSource(seed)) p := NewPopulatedWindows(popr, false) size := p.Size() dAtA := make([]byte, size) @@ -1119,7 +1120,7 @@ func TestWindowsMarshalTo(t *testing.T) { t.Fatalf("seed = %d, err = %v", seed, err) } msg := &Windows{} - if err := proto.Unmarshal(dAtA, msg); err != nil { + if err := github_com_gogo_protobuf_proto.Unmarshal(dAtA, msg); err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } for i := range dAtA { @@ -1131,7 +1132,7 @@ func TestWindowsMarshalTo(t *testing.T) { } func BenchmarkWindowsProtoMarshal(b *testing.B) { - popr := rand.New(rand.NewSource(616)) + popr := math_rand.New(math_rand.NewSource(616)) total := 0 pops := make([]*Windows, 10000) for i := 0; i < 10000; i++ { @@ -1139,7 +1140,7 @@ func BenchmarkWindowsProtoMarshal(b *testing.B) { } b.ResetTimer() for i := 0; i < b.N; i++ { - dAtA, err := proto.Marshal(pops[i%10000]) + dAtA, err := github_com_gogo_protobuf_proto.Marshal(pops[i%10000]) if err != nil { panic(err) } @@ -1149,11 +1150,11 @@ func BenchmarkWindowsProtoMarshal(b *testing.B) { } func BenchmarkWindowsProtoUnmarshal(b *testing.B) { - popr := rand.New(rand.NewSource(616)) + popr := math_rand.New(math_rand.NewSource(616)) total := 0 datas := make([][]byte, 10000) for i := 0; i < 10000; i++ { - dAtA, err := proto.Marshal(NewPopulatedWindows(popr, false)) + dAtA, err := github_com_gogo_protobuf_proto.Marshal(NewPopulatedWindows(popr, false)) if err != nil { panic(err) } @@ -1163,7 +1164,7 @@ func BenchmarkWindowsProtoUnmarshal(b *testing.B) { b.ResetTimer() for i := 0; i < b.N; i++ { total += len(datas[i%10000]) - if err := proto.Unmarshal(datas[i%10000], msg); err != nil { + if err := github_com_gogo_protobuf_proto.Unmarshal(datas[i%10000], msg); err != nil { panic(err) } } @@ -1172,14 +1173,14 @@ func BenchmarkWindowsProtoUnmarshal(b *testing.B) { func TestSolarisProto(t *testing.T) { seed := time.Now().UnixNano() - popr := rand.New(rand.NewSource(seed)) + popr := math_rand.New(math_rand.NewSource(seed)) p := NewPopulatedSolaris(popr, false) - dAtA, err := proto.Marshal(p) + dAtA, err := github_com_gogo_protobuf_proto.Marshal(p) if err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } msg := &Solaris{} - if err := proto.Unmarshal(dAtA, msg); err != nil { + if err := github_com_gogo_protobuf_proto.Unmarshal(dAtA, msg); err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } littlefuzz := make([]byte, len(dAtA)) @@ -1197,13 +1198,13 @@ func TestSolarisProto(t *testing.T) { littlefuzz = append(littlefuzz, byte(popr.Intn(256))) } // shouldn't panic - _ = proto.Unmarshal(littlefuzz, msg) + _ = github_com_gogo_protobuf_proto.Unmarshal(littlefuzz, msg) } } func TestSolarisMarshalTo(t *testing.T) { seed := time.Now().UnixNano() - popr := rand.New(rand.NewSource(seed)) + popr := math_rand.New(math_rand.NewSource(seed)) p := NewPopulatedSolaris(popr, false) size := p.Size() dAtA := make([]byte, size) @@ -1215,7 +1216,7 @@ func TestSolarisMarshalTo(t *testing.T) { t.Fatalf("seed = %d, err = %v", seed, err) } msg := &Solaris{} - if err := proto.Unmarshal(dAtA, msg); err != nil { + if err := github_com_gogo_protobuf_proto.Unmarshal(dAtA, msg); err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } for i := range dAtA { @@ -1227,7 +1228,7 @@ func TestSolarisMarshalTo(t *testing.T) { } func BenchmarkSolarisProtoMarshal(b *testing.B) { - popr := rand.New(rand.NewSource(616)) + popr := math_rand.New(math_rand.NewSource(616)) total := 0 pops := make([]*Solaris, 10000) for i := 0; i < 10000; i++ { @@ -1235,7 +1236,7 @@ func BenchmarkSolarisProtoMarshal(b *testing.B) { } b.ResetTimer() for i := 0; i < b.N; i++ { - dAtA, err := proto.Marshal(pops[i%10000]) + dAtA, err := github_com_gogo_protobuf_proto.Marshal(pops[i%10000]) if err != nil { panic(err) } @@ -1245,11 +1246,11 @@ func BenchmarkSolarisProtoMarshal(b *testing.B) { } func BenchmarkSolarisProtoUnmarshal(b *testing.B) { - popr := rand.New(rand.NewSource(616)) + popr := math_rand.New(math_rand.NewSource(616)) total := 0 datas := make([][]byte, 10000) for i := 0; i < 10000; i++ { - dAtA, err := proto.Marshal(NewPopulatedSolaris(popr, false)) + dAtA, err := github_com_gogo_protobuf_proto.Marshal(NewPopulatedSolaris(popr, false)) if err != nil { panic(err) } @@ -1259,7 +1260,7 @@ func BenchmarkSolarisProtoUnmarshal(b *testing.B) { b.ResetTimer() for i := 0; i < b.N; i++ { total += len(datas[i%10000]) - if err := proto.Unmarshal(datas[i%10000], msg); err != nil { + if err := github_com_gogo_protobuf_proto.Unmarshal(datas[i%10000], msg); err != nil { panic(err) } } @@ -1268,14 +1269,14 @@ func BenchmarkSolarisProtoUnmarshal(b *testing.B) { func TestLinuxIDMappingProto(t *testing.T) { seed := time.Now().UnixNano() - popr := rand.New(rand.NewSource(seed)) + popr := math_rand.New(math_rand.NewSource(seed)) p := NewPopulatedLinuxIDMapping(popr, false) - dAtA, err := proto.Marshal(p) + dAtA, err := github_com_gogo_protobuf_proto.Marshal(p) if err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } msg := &LinuxIDMapping{} - if err := proto.Unmarshal(dAtA, msg); err != nil { + if err := github_com_gogo_protobuf_proto.Unmarshal(dAtA, msg); err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } littlefuzz := make([]byte, len(dAtA)) @@ -1293,13 +1294,13 @@ func TestLinuxIDMappingProto(t *testing.T) { littlefuzz = append(littlefuzz, byte(popr.Intn(256))) } // shouldn't panic - _ = proto.Unmarshal(littlefuzz, msg) + _ = github_com_gogo_protobuf_proto.Unmarshal(littlefuzz, msg) } } func TestLinuxIDMappingMarshalTo(t *testing.T) { seed := time.Now().UnixNano() - popr := rand.New(rand.NewSource(seed)) + popr := math_rand.New(math_rand.NewSource(seed)) p := NewPopulatedLinuxIDMapping(popr, false) size := p.Size() dAtA := make([]byte, size) @@ -1311,7 +1312,7 @@ func TestLinuxIDMappingMarshalTo(t *testing.T) { t.Fatalf("seed = %d, err = %v", seed, err) } msg := &LinuxIDMapping{} - if err := proto.Unmarshal(dAtA, msg); err != nil { + if err := github_com_gogo_protobuf_proto.Unmarshal(dAtA, msg); err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } for i := range dAtA { @@ -1323,7 +1324,7 @@ func TestLinuxIDMappingMarshalTo(t *testing.T) { } func BenchmarkLinuxIDMappingProtoMarshal(b *testing.B) { - popr := rand.New(rand.NewSource(616)) + popr := math_rand.New(math_rand.NewSource(616)) total := 0 pops := make([]*LinuxIDMapping, 10000) for i := 0; i < 10000; i++ { @@ -1331,7 +1332,7 @@ func BenchmarkLinuxIDMappingProtoMarshal(b *testing.B) { } b.ResetTimer() for i := 0; i < b.N; i++ { - dAtA, err := proto.Marshal(pops[i%10000]) + dAtA, err := github_com_gogo_protobuf_proto.Marshal(pops[i%10000]) if err != nil { panic(err) } @@ -1341,11 +1342,11 @@ func BenchmarkLinuxIDMappingProtoMarshal(b *testing.B) { } func BenchmarkLinuxIDMappingProtoUnmarshal(b *testing.B) { - popr := rand.New(rand.NewSource(616)) + popr := math_rand.New(math_rand.NewSource(616)) total := 0 datas := make([][]byte, 10000) for i := 0; i < 10000; i++ { - dAtA, err := proto.Marshal(NewPopulatedLinuxIDMapping(popr, false)) + dAtA, err := github_com_gogo_protobuf_proto.Marshal(NewPopulatedLinuxIDMapping(popr, false)) if err != nil { panic(err) } @@ -1355,7 +1356,7 @@ func BenchmarkLinuxIDMappingProtoUnmarshal(b *testing.B) { b.ResetTimer() for i := 0; i < b.N; i++ { total += len(datas[i%10000]) - if err := proto.Unmarshal(datas[i%10000], msg); err != nil { + if err := github_com_gogo_protobuf_proto.Unmarshal(datas[i%10000], msg); err != nil { panic(err) } } @@ -1364,14 +1365,14 @@ func BenchmarkLinuxIDMappingProtoUnmarshal(b *testing.B) { func TestLinuxNamespaceProto(t *testing.T) { seed := time.Now().UnixNano() - popr := rand.New(rand.NewSource(seed)) + popr := math_rand.New(math_rand.NewSource(seed)) p := NewPopulatedLinuxNamespace(popr, false) - dAtA, err := proto.Marshal(p) + dAtA, err := github_com_gogo_protobuf_proto.Marshal(p) if err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } msg := &LinuxNamespace{} - if err := proto.Unmarshal(dAtA, msg); err != nil { + if err := github_com_gogo_protobuf_proto.Unmarshal(dAtA, msg); err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } littlefuzz := make([]byte, len(dAtA)) @@ -1389,13 +1390,13 @@ func TestLinuxNamespaceProto(t *testing.T) { littlefuzz = append(littlefuzz, byte(popr.Intn(256))) } // shouldn't panic - _ = proto.Unmarshal(littlefuzz, msg) + _ = github_com_gogo_protobuf_proto.Unmarshal(littlefuzz, msg) } } func TestLinuxNamespaceMarshalTo(t *testing.T) { seed := time.Now().UnixNano() - popr := rand.New(rand.NewSource(seed)) + popr := math_rand.New(math_rand.NewSource(seed)) p := NewPopulatedLinuxNamespace(popr, false) size := p.Size() dAtA := make([]byte, size) @@ -1407,7 +1408,7 @@ func TestLinuxNamespaceMarshalTo(t *testing.T) { t.Fatalf("seed = %d, err = %v", seed, err) } msg := &LinuxNamespace{} - if err := proto.Unmarshal(dAtA, msg); err != nil { + if err := github_com_gogo_protobuf_proto.Unmarshal(dAtA, msg); err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } for i := range dAtA { @@ -1419,7 +1420,7 @@ func TestLinuxNamespaceMarshalTo(t *testing.T) { } func BenchmarkLinuxNamespaceProtoMarshal(b *testing.B) { - popr := rand.New(rand.NewSource(616)) + popr := math_rand.New(math_rand.NewSource(616)) total := 0 pops := make([]*LinuxNamespace, 10000) for i := 0; i < 10000; i++ { @@ -1427,7 +1428,7 @@ func BenchmarkLinuxNamespaceProtoMarshal(b *testing.B) { } b.ResetTimer() for i := 0; i < b.N; i++ { - dAtA, err := proto.Marshal(pops[i%10000]) + dAtA, err := github_com_gogo_protobuf_proto.Marshal(pops[i%10000]) if err != nil { panic(err) } @@ -1437,11 +1438,11 @@ func BenchmarkLinuxNamespaceProtoMarshal(b *testing.B) { } func BenchmarkLinuxNamespaceProtoUnmarshal(b *testing.B) { - popr := rand.New(rand.NewSource(616)) + popr := math_rand.New(math_rand.NewSource(616)) total := 0 datas := make([][]byte, 10000) for i := 0; i < 10000; i++ { - dAtA, err := proto.Marshal(NewPopulatedLinuxNamespace(popr, false)) + dAtA, err := github_com_gogo_protobuf_proto.Marshal(NewPopulatedLinuxNamespace(popr, false)) if err != nil { panic(err) } @@ -1451,7 +1452,7 @@ func BenchmarkLinuxNamespaceProtoUnmarshal(b *testing.B) { b.ResetTimer() for i := 0; i < b.N; i++ { total += len(datas[i%10000]) - if err := proto.Unmarshal(datas[i%10000], msg); err != nil { + if err := github_com_gogo_protobuf_proto.Unmarshal(datas[i%10000], msg); err != nil { panic(err) } } @@ -1460,14 +1461,14 @@ func BenchmarkLinuxNamespaceProtoUnmarshal(b *testing.B) { func TestLinuxDeviceProto(t *testing.T) { seed := time.Now().UnixNano() - popr := rand.New(rand.NewSource(seed)) + popr := math_rand.New(math_rand.NewSource(seed)) p := NewPopulatedLinuxDevice(popr, false) - dAtA, err := proto.Marshal(p) + dAtA, err := github_com_gogo_protobuf_proto.Marshal(p) if err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } msg := &LinuxDevice{} - if err := proto.Unmarshal(dAtA, msg); err != nil { + if err := github_com_gogo_protobuf_proto.Unmarshal(dAtA, msg); err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } littlefuzz := make([]byte, len(dAtA)) @@ -1485,13 +1486,13 @@ func TestLinuxDeviceProto(t *testing.T) { littlefuzz = append(littlefuzz, byte(popr.Intn(256))) } // shouldn't panic - _ = proto.Unmarshal(littlefuzz, msg) + _ = github_com_gogo_protobuf_proto.Unmarshal(littlefuzz, msg) } } func TestLinuxDeviceMarshalTo(t *testing.T) { seed := time.Now().UnixNano() - popr := rand.New(rand.NewSource(seed)) + popr := math_rand.New(math_rand.NewSource(seed)) p := NewPopulatedLinuxDevice(popr, false) size := p.Size() dAtA := make([]byte, size) @@ -1503,7 +1504,7 @@ func TestLinuxDeviceMarshalTo(t *testing.T) { t.Fatalf("seed = %d, err = %v", seed, err) } msg := &LinuxDevice{} - if err := proto.Unmarshal(dAtA, msg); err != nil { + if err := github_com_gogo_protobuf_proto.Unmarshal(dAtA, msg); err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } for i := range dAtA { @@ -1515,7 +1516,7 @@ func TestLinuxDeviceMarshalTo(t *testing.T) { } func BenchmarkLinuxDeviceProtoMarshal(b *testing.B) { - popr := rand.New(rand.NewSource(616)) + popr := math_rand.New(math_rand.NewSource(616)) total := 0 pops := make([]*LinuxDevice, 10000) for i := 0; i < 10000; i++ { @@ -1523,7 +1524,7 @@ func BenchmarkLinuxDeviceProtoMarshal(b *testing.B) { } b.ResetTimer() for i := 0; i < b.N; i++ { - dAtA, err := proto.Marshal(pops[i%10000]) + dAtA, err := github_com_gogo_protobuf_proto.Marshal(pops[i%10000]) if err != nil { panic(err) } @@ -1533,11 +1534,11 @@ func BenchmarkLinuxDeviceProtoMarshal(b *testing.B) { } func BenchmarkLinuxDeviceProtoUnmarshal(b *testing.B) { - popr := rand.New(rand.NewSource(616)) + popr := math_rand.New(math_rand.NewSource(616)) total := 0 datas := make([][]byte, 10000) for i := 0; i < 10000; i++ { - dAtA, err := proto.Marshal(NewPopulatedLinuxDevice(popr, false)) + dAtA, err := github_com_gogo_protobuf_proto.Marshal(NewPopulatedLinuxDevice(popr, false)) if err != nil { panic(err) } @@ -1547,7 +1548,7 @@ func BenchmarkLinuxDeviceProtoUnmarshal(b *testing.B) { b.ResetTimer() for i := 0; i < b.N; i++ { total += len(datas[i%10000]) - if err := proto.Unmarshal(datas[i%10000], msg); err != nil { + if err := github_com_gogo_protobuf_proto.Unmarshal(datas[i%10000], msg); err != nil { panic(err) } } @@ -1556,14 +1557,14 @@ func BenchmarkLinuxDeviceProtoUnmarshal(b *testing.B) { func TestLinuxResourcesProto(t *testing.T) { seed := time.Now().UnixNano() - popr := rand.New(rand.NewSource(seed)) + popr := math_rand.New(math_rand.NewSource(seed)) p := NewPopulatedLinuxResources(popr, false) - dAtA, err := proto.Marshal(p) + dAtA, err := github_com_gogo_protobuf_proto.Marshal(p) if err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } msg := &LinuxResources{} - if err := proto.Unmarshal(dAtA, msg); err != nil { + if err := github_com_gogo_protobuf_proto.Unmarshal(dAtA, msg); err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } littlefuzz := make([]byte, len(dAtA)) @@ -1581,13 +1582,13 @@ func TestLinuxResourcesProto(t *testing.T) { littlefuzz = append(littlefuzz, byte(popr.Intn(256))) } // shouldn't panic - _ = proto.Unmarshal(littlefuzz, msg) + _ = github_com_gogo_protobuf_proto.Unmarshal(littlefuzz, msg) } } func TestLinuxResourcesMarshalTo(t *testing.T) { seed := time.Now().UnixNano() - popr := rand.New(rand.NewSource(seed)) + popr := math_rand.New(math_rand.NewSource(seed)) p := NewPopulatedLinuxResources(popr, false) size := p.Size() dAtA := make([]byte, size) @@ -1599,7 +1600,7 @@ func TestLinuxResourcesMarshalTo(t *testing.T) { t.Fatalf("seed = %d, err = %v", seed, err) } msg := &LinuxResources{} - if err := proto.Unmarshal(dAtA, msg); err != nil { + if err := github_com_gogo_protobuf_proto.Unmarshal(dAtA, msg); err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } for i := range dAtA { @@ -1611,7 +1612,7 @@ func TestLinuxResourcesMarshalTo(t *testing.T) { } func BenchmarkLinuxResourcesProtoMarshal(b *testing.B) { - popr := rand.New(rand.NewSource(616)) + popr := math_rand.New(math_rand.NewSource(616)) total := 0 pops := make([]*LinuxResources, 10000) for i := 0; i < 10000; i++ { @@ -1619,7 +1620,7 @@ func BenchmarkLinuxResourcesProtoMarshal(b *testing.B) { } b.ResetTimer() for i := 0; i < b.N; i++ { - dAtA, err := proto.Marshal(pops[i%10000]) + dAtA, err := github_com_gogo_protobuf_proto.Marshal(pops[i%10000]) if err != nil { panic(err) } @@ -1629,11 +1630,11 @@ func BenchmarkLinuxResourcesProtoMarshal(b *testing.B) { } func BenchmarkLinuxResourcesProtoUnmarshal(b *testing.B) { - popr := rand.New(rand.NewSource(616)) + popr := math_rand.New(math_rand.NewSource(616)) total := 0 datas := make([][]byte, 10000) for i := 0; i < 10000; i++ { - dAtA, err := proto.Marshal(NewPopulatedLinuxResources(popr, false)) + dAtA, err := github_com_gogo_protobuf_proto.Marshal(NewPopulatedLinuxResources(popr, false)) if err != nil { panic(err) } @@ -1643,7 +1644,7 @@ func BenchmarkLinuxResourcesProtoUnmarshal(b *testing.B) { b.ResetTimer() for i := 0; i < b.N; i++ { total += len(datas[i%10000]) - if err := proto.Unmarshal(datas[i%10000], msg); err != nil { + if err := github_com_gogo_protobuf_proto.Unmarshal(datas[i%10000], msg); err != nil { panic(err) } } @@ -1652,14 +1653,14 @@ func BenchmarkLinuxResourcesProtoUnmarshal(b *testing.B) { func TestLinuxMemoryProto(t *testing.T) { seed := time.Now().UnixNano() - popr := rand.New(rand.NewSource(seed)) + popr := math_rand.New(math_rand.NewSource(seed)) p := NewPopulatedLinuxMemory(popr, false) - dAtA, err := proto.Marshal(p) + dAtA, err := github_com_gogo_protobuf_proto.Marshal(p) if err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } msg := &LinuxMemory{} - if err := proto.Unmarshal(dAtA, msg); err != nil { + if err := github_com_gogo_protobuf_proto.Unmarshal(dAtA, msg); err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } littlefuzz := make([]byte, len(dAtA)) @@ -1677,13 +1678,13 @@ func TestLinuxMemoryProto(t *testing.T) { littlefuzz = append(littlefuzz, byte(popr.Intn(256))) } // shouldn't panic - _ = proto.Unmarshal(littlefuzz, msg) + _ = github_com_gogo_protobuf_proto.Unmarshal(littlefuzz, msg) } } func TestLinuxMemoryMarshalTo(t *testing.T) { seed := time.Now().UnixNano() - popr := rand.New(rand.NewSource(seed)) + popr := math_rand.New(math_rand.NewSource(seed)) p := NewPopulatedLinuxMemory(popr, false) size := p.Size() dAtA := make([]byte, size) @@ -1695,7 +1696,7 @@ func TestLinuxMemoryMarshalTo(t *testing.T) { t.Fatalf("seed = %d, err = %v", seed, err) } msg := &LinuxMemory{} - if err := proto.Unmarshal(dAtA, msg); err != nil { + if err := github_com_gogo_protobuf_proto.Unmarshal(dAtA, msg); err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } for i := range dAtA { @@ -1707,7 +1708,7 @@ func TestLinuxMemoryMarshalTo(t *testing.T) { } func BenchmarkLinuxMemoryProtoMarshal(b *testing.B) { - popr := rand.New(rand.NewSource(616)) + popr := math_rand.New(math_rand.NewSource(616)) total := 0 pops := make([]*LinuxMemory, 10000) for i := 0; i < 10000; i++ { @@ -1715,7 +1716,7 @@ func BenchmarkLinuxMemoryProtoMarshal(b *testing.B) { } b.ResetTimer() for i := 0; i < b.N; i++ { - dAtA, err := proto.Marshal(pops[i%10000]) + dAtA, err := github_com_gogo_protobuf_proto.Marshal(pops[i%10000]) if err != nil { panic(err) } @@ -1725,11 +1726,11 @@ func BenchmarkLinuxMemoryProtoMarshal(b *testing.B) { } func BenchmarkLinuxMemoryProtoUnmarshal(b *testing.B) { - popr := rand.New(rand.NewSource(616)) + popr := math_rand.New(math_rand.NewSource(616)) total := 0 datas := make([][]byte, 10000) for i := 0; i < 10000; i++ { - dAtA, err := proto.Marshal(NewPopulatedLinuxMemory(popr, false)) + dAtA, err := github_com_gogo_protobuf_proto.Marshal(NewPopulatedLinuxMemory(popr, false)) if err != nil { panic(err) } @@ -1739,7 +1740,7 @@ func BenchmarkLinuxMemoryProtoUnmarshal(b *testing.B) { b.ResetTimer() for i := 0; i < b.N; i++ { total += len(datas[i%10000]) - if err := proto.Unmarshal(datas[i%10000], msg); err != nil { + if err := github_com_gogo_protobuf_proto.Unmarshal(datas[i%10000], msg); err != nil { panic(err) } } @@ -1748,14 +1749,14 @@ func BenchmarkLinuxMemoryProtoUnmarshal(b *testing.B) { func TestLinuxCPUProto(t *testing.T) { seed := time.Now().UnixNano() - popr := rand.New(rand.NewSource(seed)) + popr := math_rand.New(math_rand.NewSource(seed)) p := NewPopulatedLinuxCPU(popr, false) - dAtA, err := proto.Marshal(p) + dAtA, err := github_com_gogo_protobuf_proto.Marshal(p) if err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } msg := &LinuxCPU{} - if err := proto.Unmarshal(dAtA, msg); err != nil { + if err := github_com_gogo_protobuf_proto.Unmarshal(dAtA, msg); err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } littlefuzz := make([]byte, len(dAtA)) @@ -1773,13 +1774,13 @@ func TestLinuxCPUProto(t *testing.T) { littlefuzz = append(littlefuzz, byte(popr.Intn(256))) } // shouldn't panic - _ = proto.Unmarshal(littlefuzz, msg) + _ = github_com_gogo_protobuf_proto.Unmarshal(littlefuzz, msg) } } func TestLinuxCPUMarshalTo(t *testing.T) { seed := time.Now().UnixNano() - popr := rand.New(rand.NewSource(seed)) + popr := math_rand.New(math_rand.NewSource(seed)) p := NewPopulatedLinuxCPU(popr, false) size := p.Size() dAtA := make([]byte, size) @@ -1791,7 +1792,7 @@ func TestLinuxCPUMarshalTo(t *testing.T) { t.Fatalf("seed = %d, err = %v", seed, err) } msg := &LinuxCPU{} - if err := proto.Unmarshal(dAtA, msg); err != nil { + if err := github_com_gogo_protobuf_proto.Unmarshal(dAtA, msg); err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } for i := range dAtA { @@ -1803,7 +1804,7 @@ func TestLinuxCPUMarshalTo(t *testing.T) { } func BenchmarkLinuxCPUProtoMarshal(b *testing.B) { - popr := rand.New(rand.NewSource(616)) + popr := math_rand.New(math_rand.NewSource(616)) total := 0 pops := make([]*LinuxCPU, 10000) for i := 0; i < 10000; i++ { @@ -1811,7 +1812,7 @@ func BenchmarkLinuxCPUProtoMarshal(b *testing.B) { } b.ResetTimer() for i := 0; i < b.N; i++ { - dAtA, err := proto.Marshal(pops[i%10000]) + dAtA, err := github_com_gogo_protobuf_proto.Marshal(pops[i%10000]) if err != nil { panic(err) } @@ -1821,11 +1822,11 @@ func BenchmarkLinuxCPUProtoMarshal(b *testing.B) { } func BenchmarkLinuxCPUProtoUnmarshal(b *testing.B) { - popr := rand.New(rand.NewSource(616)) + popr := math_rand.New(math_rand.NewSource(616)) total := 0 datas := make([][]byte, 10000) for i := 0; i < 10000; i++ { - dAtA, err := proto.Marshal(NewPopulatedLinuxCPU(popr, false)) + dAtA, err := github_com_gogo_protobuf_proto.Marshal(NewPopulatedLinuxCPU(popr, false)) if err != nil { panic(err) } @@ -1835,7 +1836,7 @@ func BenchmarkLinuxCPUProtoUnmarshal(b *testing.B) { b.ResetTimer() for i := 0; i < b.N; i++ { total += len(datas[i%10000]) - if err := proto.Unmarshal(datas[i%10000], msg); err != nil { + if err := github_com_gogo_protobuf_proto.Unmarshal(datas[i%10000], msg); err != nil { panic(err) } } @@ -1844,14 +1845,14 @@ func BenchmarkLinuxCPUProtoUnmarshal(b *testing.B) { func TestLinuxWeightDeviceProto(t *testing.T) { seed := time.Now().UnixNano() - popr := rand.New(rand.NewSource(seed)) + popr := math_rand.New(math_rand.NewSource(seed)) p := NewPopulatedLinuxWeightDevice(popr, false) - dAtA, err := proto.Marshal(p) + dAtA, err := github_com_gogo_protobuf_proto.Marshal(p) if err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } msg := &LinuxWeightDevice{} - if err := proto.Unmarshal(dAtA, msg); err != nil { + if err := github_com_gogo_protobuf_proto.Unmarshal(dAtA, msg); err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } littlefuzz := make([]byte, len(dAtA)) @@ -1869,13 +1870,13 @@ func TestLinuxWeightDeviceProto(t *testing.T) { littlefuzz = append(littlefuzz, byte(popr.Intn(256))) } // shouldn't panic - _ = proto.Unmarshal(littlefuzz, msg) + _ = github_com_gogo_protobuf_proto.Unmarshal(littlefuzz, msg) } } func TestLinuxWeightDeviceMarshalTo(t *testing.T) { seed := time.Now().UnixNano() - popr := rand.New(rand.NewSource(seed)) + popr := math_rand.New(math_rand.NewSource(seed)) p := NewPopulatedLinuxWeightDevice(popr, false) size := p.Size() dAtA := make([]byte, size) @@ -1887,7 +1888,7 @@ func TestLinuxWeightDeviceMarshalTo(t *testing.T) { t.Fatalf("seed = %d, err = %v", seed, err) } msg := &LinuxWeightDevice{} - if err := proto.Unmarshal(dAtA, msg); err != nil { + if err := github_com_gogo_protobuf_proto.Unmarshal(dAtA, msg); err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } for i := range dAtA { @@ -1899,7 +1900,7 @@ func TestLinuxWeightDeviceMarshalTo(t *testing.T) { } func BenchmarkLinuxWeightDeviceProtoMarshal(b *testing.B) { - popr := rand.New(rand.NewSource(616)) + popr := math_rand.New(math_rand.NewSource(616)) total := 0 pops := make([]*LinuxWeightDevice, 10000) for i := 0; i < 10000; i++ { @@ -1907,7 +1908,7 @@ func BenchmarkLinuxWeightDeviceProtoMarshal(b *testing.B) { } b.ResetTimer() for i := 0; i < b.N; i++ { - dAtA, err := proto.Marshal(pops[i%10000]) + dAtA, err := github_com_gogo_protobuf_proto.Marshal(pops[i%10000]) if err != nil { panic(err) } @@ -1917,11 +1918,11 @@ func BenchmarkLinuxWeightDeviceProtoMarshal(b *testing.B) { } func BenchmarkLinuxWeightDeviceProtoUnmarshal(b *testing.B) { - popr := rand.New(rand.NewSource(616)) + popr := math_rand.New(math_rand.NewSource(616)) total := 0 datas := make([][]byte, 10000) for i := 0; i < 10000; i++ { - dAtA, err := proto.Marshal(NewPopulatedLinuxWeightDevice(popr, false)) + dAtA, err := github_com_gogo_protobuf_proto.Marshal(NewPopulatedLinuxWeightDevice(popr, false)) if err != nil { panic(err) } @@ -1931,7 +1932,7 @@ func BenchmarkLinuxWeightDeviceProtoUnmarshal(b *testing.B) { b.ResetTimer() for i := 0; i < b.N; i++ { total += len(datas[i%10000]) - if err := proto.Unmarshal(datas[i%10000], msg); err != nil { + if err := github_com_gogo_protobuf_proto.Unmarshal(datas[i%10000], msg); err != nil { panic(err) } } @@ -1940,14 +1941,14 @@ func BenchmarkLinuxWeightDeviceProtoUnmarshal(b *testing.B) { func TestLinuxThrottleDeviceProto(t *testing.T) { seed := time.Now().UnixNano() - popr := rand.New(rand.NewSource(seed)) + popr := math_rand.New(math_rand.NewSource(seed)) p := NewPopulatedLinuxThrottleDevice(popr, false) - dAtA, err := proto.Marshal(p) + dAtA, err := github_com_gogo_protobuf_proto.Marshal(p) if err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } msg := &LinuxThrottleDevice{} - if err := proto.Unmarshal(dAtA, msg); err != nil { + if err := github_com_gogo_protobuf_proto.Unmarshal(dAtA, msg); err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } littlefuzz := make([]byte, len(dAtA)) @@ -1965,13 +1966,13 @@ func TestLinuxThrottleDeviceProto(t *testing.T) { littlefuzz = append(littlefuzz, byte(popr.Intn(256))) } // shouldn't panic - _ = proto.Unmarshal(littlefuzz, msg) + _ = github_com_gogo_protobuf_proto.Unmarshal(littlefuzz, msg) } } func TestLinuxThrottleDeviceMarshalTo(t *testing.T) { seed := time.Now().UnixNano() - popr := rand.New(rand.NewSource(seed)) + popr := math_rand.New(math_rand.NewSource(seed)) p := NewPopulatedLinuxThrottleDevice(popr, false) size := p.Size() dAtA := make([]byte, size) @@ -1983,7 +1984,7 @@ func TestLinuxThrottleDeviceMarshalTo(t *testing.T) { t.Fatalf("seed = %d, err = %v", seed, err) } msg := &LinuxThrottleDevice{} - if err := proto.Unmarshal(dAtA, msg); err != nil { + if err := github_com_gogo_protobuf_proto.Unmarshal(dAtA, msg); err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } for i := range dAtA { @@ -1995,7 +1996,7 @@ func TestLinuxThrottleDeviceMarshalTo(t *testing.T) { } func BenchmarkLinuxThrottleDeviceProtoMarshal(b *testing.B) { - popr := rand.New(rand.NewSource(616)) + popr := math_rand.New(math_rand.NewSource(616)) total := 0 pops := make([]*LinuxThrottleDevice, 10000) for i := 0; i < 10000; i++ { @@ -2003,7 +2004,7 @@ func BenchmarkLinuxThrottleDeviceProtoMarshal(b *testing.B) { } b.ResetTimer() for i := 0; i < b.N; i++ { - dAtA, err := proto.Marshal(pops[i%10000]) + dAtA, err := github_com_gogo_protobuf_proto.Marshal(pops[i%10000]) if err != nil { panic(err) } @@ -2013,11 +2014,11 @@ func BenchmarkLinuxThrottleDeviceProtoMarshal(b *testing.B) { } func BenchmarkLinuxThrottleDeviceProtoUnmarshal(b *testing.B) { - popr := rand.New(rand.NewSource(616)) + popr := math_rand.New(math_rand.NewSource(616)) total := 0 datas := make([][]byte, 10000) for i := 0; i < 10000; i++ { - dAtA, err := proto.Marshal(NewPopulatedLinuxThrottleDevice(popr, false)) + dAtA, err := github_com_gogo_protobuf_proto.Marshal(NewPopulatedLinuxThrottleDevice(popr, false)) if err != nil { panic(err) } @@ -2027,7 +2028,7 @@ func BenchmarkLinuxThrottleDeviceProtoUnmarshal(b *testing.B) { b.ResetTimer() for i := 0; i < b.N; i++ { total += len(datas[i%10000]) - if err := proto.Unmarshal(datas[i%10000], msg); err != nil { + if err := github_com_gogo_protobuf_proto.Unmarshal(datas[i%10000], msg); err != nil { panic(err) } } @@ -2036,14 +2037,14 @@ func BenchmarkLinuxThrottleDeviceProtoUnmarshal(b *testing.B) { func TestLinuxBlockIOProto(t *testing.T) { seed := time.Now().UnixNano() - popr := rand.New(rand.NewSource(seed)) + popr := math_rand.New(math_rand.NewSource(seed)) p := NewPopulatedLinuxBlockIO(popr, false) - dAtA, err := proto.Marshal(p) + dAtA, err := github_com_gogo_protobuf_proto.Marshal(p) if err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } msg := &LinuxBlockIO{} - if err := proto.Unmarshal(dAtA, msg); err != nil { + if err := github_com_gogo_protobuf_proto.Unmarshal(dAtA, msg); err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } littlefuzz := make([]byte, len(dAtA)) @@ -2061,13 +2062,13 @@ func TestLinuxBlockIOProto(t *testing.T) { littlefuzz = append(littlefuzz, byte(popr.Intn(256))) } // shouldn't panic - _ = proto.Unmarshal(littlefuzz, msg) + _ = github_com_gogo_protobuf_proto.Unmarshal(littlefuzz, msg) } } func TestLinuxBlockIOMarshalTo(t *testing.T) { seed := time.Now().UnixNano() - popr := rand.New(rand.NewSource(seed)) + popr := math_rand.New(math_rand.NewSource(seed)) p := NewPopulatedLinuxBlockIO(popr, false) size := p.Size() dAtA := make([]byte, size) @@ -2079,7 +2080,7 @@ func TestLinuxBlockIOMarshalTo(t *testing.T) { t.Fatalf("seed = %d, err = %v", seed, err) } msg := &LinuxBlockIO{} - if err := proto.Unmarshal(dAtA, msg); err != nil { + if err := github_com_gogo_protobuf_proto.Unmarshal(dAtA, msg); err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } for i := range dAtA { @@ -2091,7 +2092,7 @@ func TestLinuxBlockIOMarshalTo(t *testing.T) { } func BenchmarkLinuxBlockIOProtoMarshal(b *testing.B) { - popr := rand.New(rand.NewSource(616)) + popr := math_rand.New(math_rand.NewSource(616)) total := 0 pops := make([]*LinuxBlockIO, 10000) for i := 0; i < 10000; i++ { @@ -2099,7 +2100,7 @@ func BenchmarkLinuxBlockIOProtoMarshal(b *testing.B) { } b.ResetTimer() for i := 0; i < b.N; i++ { - dAtA, err := proto.Marshal(pops[i%10000]) + dAtA, err := github_com_gogo_protobuf_proto.Marshal(pops[i%10000]) if err != nil { panic(err) } @@ -2109,11 +2110,11 @@ func BenchmarkLinuxBlockIOProtoMarshal(b *testing.B) { } func BenchmarkLinuxBlockIOProtoUnmarshal(b *testing.B) { - popr := rand.New(rand.NewSource(616)) + popr := math_rand.New(math_rand.NewSource(616)) total := 0 datas := make([][]byte, 10000) for i := 0; i < 10000; i++ { - dAtA, err := proto.Marshal(NewPopulatedLinuxBlockIO(popr, false)) + dAtA, err := github_com_gogo_protobuf_proto.Marshal(NewPopulatedLinuxBlockIO(popr, false)) if err != nil { panic(err) } @@ -2123,7 +2124,7 @@ func BenchmarkLinuxBlockIOProtoUnmarshal(b *testing.B) { b.ResetTimer() for i := 0; i < b.N; i++ { total += len(datas[i%10000]) - if err := proto.Unmarshal(datas[i%10000], msg); err != nil { + if err := github_com_gogo_protobuf_proto.Unmarshal(datas[i%10000], msg); err != nil { panic(err) } } @@ -2132,14 +2133,14 @@ func BenchmarkLinuxBlockIOProtoUnmarshal(b *testing.B) { func TestLinuxPidsProto(t *testing.T) { seed := time.Now().UnixNano() - popr := rand.New(rand.NewSource(seed)) + popr := math_rand.New(math_rand.NewSource(seed)) p := NewPopulatedLinuxPids(popr, false) - dAtA, err := proto.Marshal(p) + dAtA, err := github_com_gogo_protobuf_proto.Marshal(p) if err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } msg := &LinuxPids{} - if err := proto.Unmarshal(dAtA, msg); err != nil { + if err := github_com_gogo_protobuf_proto.Unmarshal(dAtA, msg); err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } littlefuzz := make([]byte, len(dAtA)) @@ -2157,13 +2158,13 @@ func TestLinuxPidsProto(t *testing.T) { littlefuzz = append(littlefuzz, byte(popr.Intn(256))) } // shouldn't panic - _ = proto.Unmarshal(littlefuzz, msg) + _ = github_com_gogo_protobuf_proto.Unmarshal(littlefuzz, msg) } } func TestLinuxPidsMarshalTo(t *testing.T) { seed := time.Now().UnixNano() - popr := rand.New(rand.NewSource(seed)) + popr := math_rand.New(math_rand.NewSource(seed)) p := NewPopulatedLinuxPids(popr, false) size := p.Size() dAtA := make([]byte, size) @@ -2175,7 +2176,7 @@ func TestLinuxPidsMarshalTo(t *testing.T) { t.Fatalf("seed = %d, err = %v", seed, err) } msg := &LinuxPids{} - if err := proto.Unmarshal(dAtA, msg); err != nil { + if err := github_com_gogo_protobuf_proto.Unmarshal(dAtA, msg); err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } for i := range dAtA { @@ -2187,7 +2188,7 @@ func TestLinuxPidsMarshalTo(t *testing.T) { } func BenchmarkLinuxPidsProtoMarshal(b *testing.B) { - popr := rand.New(rand.NewSource(616)) + popr := math_rand.New(math_rand.NewSource(616)) total := 0 pops := make([]*LinuxPids, 10000) for i := 0; i < 10000; i++ { @@ -2195,7 +2196,7 @@ func BenchmarkLinuxPidsProtoMarshal(b *testing.B) { } b.ResetTimer() for i := 0; i < b.N; i++ { - dAtA, err := proto.Marshal(pops[i%10000]) + dAtA, err := github_com_gogo_protobuf_proto.Marshal(pops[i%10000]) if err != nil { panic(err) } @@ -2205,11 +2206,11 @@ func BenchmarkLinuxPidsProtoMarshal(b *testing.B) { } func BenchmarkLinuxPidsProtoUnmarshal(b *testing.B) { - popr := rand.New(rand.NewSource(616)) + popr := math_rand.New(math_rand.NewSource(616)) total := 0 datas := make([][]byte, 10000) for i := 0; i < 10000; i++ { - dAtA, err := proto.Marshal(NewPopulatedLinuxPids(popr, false)) + dAtA, err := github_com_gogo_protobuf_proto.Marshal(NewPopulatedLinuxPids(popr, false)) if err != nil { panic(err) } @@ -2219,7 +2220,7 @@ func BenchmarkLinuxPidsProtoUnmarshal(b *testing.B) { b.ResetTimer() for i := 0; i < b.N; i++ { total += len(datas[i%10000]) - if err := proto.Unmarshal(datas[i%10000], msg); err != nil { + if err := github_com_gogo_protobuf_proto.Unmarshal(datas[i%10000], msg); err != nil { panic(err) } } @@ -2228,14 +2229,14 @@ func BenchmarkLinuxPidsProtoUnmarshal(b *testing.B) { func TestLinuxDeviceCgroupProto(t *testing.T) { seed := time.Now().UnixNano() - popr := rand.New(rand.NewSource(seed)) + popr := math_rand.New(math_rand.NewSource(seed)) p := NewPopulatedLinuxDeviceCgroup(popr, false) - dAtA, err := proto.Marshal(p) + dAtA, err := github_com_gogo_protobuf_proto.Marshal(p) if err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } msg := &LinuxDeviceCgroup{} - if err := proto.Unmarshal(dAtA, msg); err != nil { + if err := github_com_gogo_protobuf_proto.Unmarshal(dAtA, msg); err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } littlefuzz := make([]byte, len(dAtA)) @@ -2253,13 +2254,13 @@ func TestLinuxDeviceCgroupProto(t *testing.T) { littlefuzz = append(littlefuzz, byte(popr.Intn(256))) } // shouldn't panic - _ = proto.Unmarshal(littlefuzz, msg) + _ = github_com_gogo_protobuf_proto.Unmarshal(littlefuzz, msg) } } func TestLinuxDeviceCgroupMarshalTo(t *testing.T) { seed := time.Now().UnixNano() - popr := rand.New(rand.NewSource(seed)) + popr := math_rand.New(math_rand.NewSource(seed)) p := NewPopulatedLinuxDeviceCgroup(popr, false) size := p.Size() dAtA := make([]byte, size) @@ -2271,7 +2272,7 @@ func TestLinuxDeviceCgroupMarshalTo(t *testing.T) { t.Fatalf("seed = %d, err = %v", seed, err) } msg := &LinuxDeviceCgroup{} - if err := proto.Unmarshal(dAtA, msg); err != nil { + if err := github_com_gogo_protobuf_proto.Unmarshal(dAtA, msg); err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } for i := range dAtA { @@ -2283,7 +2284,7 @@ func TestLinuxDeviceCgroupMarshalTo(t *testing.T) { } func BenchmarkLinuxDeviceCgroupProtoMarshal(b *testing.B) { - popr := rand.New(rand.NewSource(616)) + popr := math_rand.New(math_rand.NewSource(616)) total := 0 pops := make([]*LinuxDeviceCgroup, 10000) for i := 0; i < 10000; i++ { @@ -2291,7 +2292,7 @@ func BenchmarkLinuxDeviceCgroupProtoMarshal(b *testing.B) { } b.ResetTimer() for i := 0; i < b.N; i++ { - dAtA, err := proto.Marshal(pops[i%10000]) + dAtA, err := github_com_gogo_protobuf_proto.Marshal(pops[i%10000]) if err != nil { panic(err) } @@ -2301,11 +2302,11 @@ func BenchmarkLinuxDeviceCgroupProtoMarshal(b *testing.B) { } func BenchmarkLinuxDeviceCgroupProtoUnmarshal(b *testing.B) { - popr := rand.New(rand.NewSource(616)) + popr := math_rand.New(math_rand.NewSource(616)) total := 0 datas := make([][]byte, 10000) for i := 0; i < 10000; i++ { - dAtA, err := proto.Marshal(NewPopulatedLinuxDeviceCgroup(popr, false)) + dAtA, err := github_com_gogo_protobuf_proto.Marshal(NewPopulatedLinuxDeviceCgroup(popr, false)) if err != nil { panic(err) } @@ -2315,7 +2316,7 @@ func BenchmarkLinuxDeviceCgroupProtoUnmarshal(b *testing.B) { b.ResetTimer() for i := 0; i < b.N; i++ { total += len(datas[i%10000]) - if err := proto.Unmarshal(datas[i%10000], msg); err != nil { + if err := github_com_gogo_protobuf_proto.Unmarshal(datas[i%10000], msg); err != nil { panic(err) } } @@ -2324,14 +2325,14 @@ func BenchmarkLinuxDeviceCgroupProtoUnmarshal(b *testing.B) { func TestLinuxNetworkProto(t *testing.T) { seed := time.Now().UnixNano() - popr := rand.New(rand.NewSource(seed)) + popr := math_rand.New(math_rand.NewSource(seed)) p := NewPopulatedLinuxNetwork(popr, false) - dAtA, err := proto.Marshal(p) + dAtA, err := github_com_gogo_protobuf_proto.Marshal(p) if err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } msg := &LinuxNetwork{} - if err := proto.Unmarshal(dAtA, msg); err != nil { + if err := github_com_gogo_protobuf_proto.Unmarshal(dAtA, msg); err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } littlefuzz := make([]byte, len(dAtA)) @@ -2349,13 +2350,13 @@ func TestLinuxNetworkProto(t *testing.T) { littlefuzz = append(littlefuzz, byte(popr.Intn(256))) } // shouldn't panic - _ = proto.Unmarshal(littlefuzz, msg) + _ = github_com_gogo_protobuf_proto.Unmarshal(littlefuzz, msg) } } func TestLinuxNetworkMarshalTo(t *testing.T) { seed := time.Now().UnixNano() - popr := rand.New(rand.NewSource(seed)) + popr := math_rand.New(math_rand.NewSource(seed)) p := NewPopulatedLinuxNetwork(popr, false) size := p.Size() dAtA := make([]byte, size) @@ -2367,7 +2368,7 @@ func TestLinuxNetworkMarshalTo(t *testing.T) { t.Fatalf("seed = %d, err = %v", seed, err) } msg := &LinuxNetwork{} - if err := proto.Unmarshal(dAtA, msg); err != nil { + if err := github_com_gogo_protobuf_proto.Unmarshal(dAtA, msg); err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } for i := range dAtA { @@ -2379,7 +2380,7 @@ func TestLinuxNetworkMarshalTo(t *testing.T) { } func BenchmarkLinuxNetworkProtoMarshal(b *testing.B) { - popr := rand.New(rand.NewSource(616)) + popr := math_rand.New(math_rand.NewSource(616)) total := 0 pops := make([]*LinuxNetwork, 10000) for i := 0; i < 10000; i++ { @@ -2387,7 +2388,7 @@ func BenchmarkLinuxNetworkProtoMarshal(b *testing.B) { } b.ResetTimer() for i := 0; i < b.N; i++ { - dAtA, err := proto.Marshal(pops[i%10000]) + dAtA, err := github_com_gogo_protobuf_proto.Marshal(pops[i%10000]) if err != nil { panic(err) } @@ -2397,11 +2398,11 @@ func BenchmarkLinuxNetworkProtoMarshal(b *testing.B) { } func BenchmarkLinuxNetworkProtoUnmarshal(b *testing.B) { - popr := rand.New(rand.NewSource(616)) + popr := math_rand.New(math_rand.NewSource(616)) total := 0 datas := make([][]byte, 10000) for i := 0; i < 10000; i++ { - dAtA, err := proto.Marshal(NewPopulatedLinuxNetwork(popr, false)) + dAtA, err := github_com_gogo_protobuf_proto.Marshal(NewPopulatedLinuxNetwork(popr, false)) if err != nil { panic(err) } @@ -2411,7 +2412,7 @@ func BenchmarkLinuxNetworkProtoUnmarshal(b *testing.B) { b.ResetTimer() for i := 0; i < b.N; i++ { total += len(datas[i%10000]) - if err := proto.Unmarshal(datas[i%10000], msg); err != nil { + if err := github_com_gogo_protobuf_proto.Unmarshal(datas[i%10000], msg); err != nil { panic(err) } } @@ -2420,14 +2421,14 @@ func BenchmarkLinuxNetworkProtoUnmarshal(b *testing.B) { func TestLinuxHugepageLimitProto(t *testing.T) { seed := time.Now().UnixNano() - popr := rand.New(rand.NewSource(seed)) + popr := math_rand.New(math_rand.NewSource(seed)) p := NewPopulatedLinuxHugepageLimit(popr, false) - dAtA, err := proto.Marshal(p) + dAtA, err := github_com_gogo_protobuf_proto.Marshal(p) if err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } msg := &LinuxHugepageLimit{} - if err := proto.Unmarshal(dAtA, msg); err != nil { + if err := github_com_gogo_protobuf_proto.Unmarshal(dAtA, msg); err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } littlefuzz := make([]byte, len(dAtA)) @@ -2445,13 +2446,13 @@ func TestLinuxHugepageLimitProto(t *testing.T) { littlefuzz = append(littlefuzz, byte(popr.Intn(256))) } // shouldn't panic - _ = proto.Unmarshal(littlefuzz, msg) + _ = github_com_gogo_protobuf_proto.Unmarshal(littlefuzz, msg) } } func TestLinuxHugepageLimitMarshalTo(t *testing.T) { seed := time.Now().UnixNano() - popr := rand.New(rand.NewSource(seed)) + popr := math_rand.New(math_rand.NewSource(seed)) p := NewPopulatedLinuxHugepageLimit(popr, false) size := p.Size() dAtA := make([]byte, size) @@ -2463,7 +2464,7 @@ func TestLinuxHugepageLimitMarshalTo(t *testing.T) { t.Fatalf("seed = %d, err = %v", seed, err) } msg := &LinuxHugepageLimit{} - if err := proto.Unmarshal(dAtA, msg); err != nil { + if err := github_com_gogo_protobuf_proto.Unmarshal(dAtA, msg); err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } for i := range dAtA { @@ -2475,7 +2476,7 @@ func TestLinuxHugepageLimitMarshalTo(t *testing.T) { } func BenchmarkLinuxHugepageLimitProtoMarshal(b *testing.B) { - popr := rand.New(rand.NewSource(616)) + popr := math_rand.New(math_rand.NewSource(616)) total := 0 pops := make([]*LinuxHugepageLimit, 10000) for i := 0; i < 10000; i++ { @@ -2483,7 +2484,7 @@ func BenchmarkLinuxHugepageLimitProtoMarshal(b *testing.B) { } b.ResetTimer() for i := 0; i < b.N; i++ { - dAtA, err := proto.Marshal(pops[i%10000]) + dAtA, err := github_com_gogo_protobuf_proto.Marshal(pops[i%10000]) if err != nil { panic(err) } @@ -2493,11 +2494,11 @@ func BenchmarkLinuxHugepageLimitProtoMarshal(b *testing.B) { } func BenchmarkLinuxHugepageLimitProtoUnmarshal(b *testing.B) { - popr := rand.New(rand.NewSource(616)) + popr := math_rand.New(math_rand.NewSource(616)) total := 0 datas := make([][]byte, 10000) for i := 0; i < 10000; i++ { - dAtA, err := proto.Marshal(NewPopulatedLinuxHugepageLimit(popr, false)) + dAtA, err := github_com_gogo_protobuf_proto.Marshal(NewPopulatedLinuxHugepageLimit(popr, false)) if err != nil { panic(err) } @@ -2507,7 +2508,7 @@ func BenchmarkLinuxHugepageLimitProtoUnmarshal(b *testing.B) { b.ResetTimer() for i := 0; i < b.N; i++ { total += len(datas[i%10000]) - if err := proto.Unmarshal(datas[i%10000], msg); err != nil { + if err := github_com_gogo_protobuf_proto.Unmarshal(datas[i%10000], msg); err != nil { panic(err) } } @@ -2516,14 +2517,14 @@ func BenchmarkLinuxHugepageLimitProtoUnmarshal(b *testing.B) { func TestLinuxInterfacePriorityProto(t *testing.T) { seed := time.Now().UnixNano() - popr := rand.New(rand.NewSource(seed)) + popr := math_rand.New(math_rand.NewSource(seed)) p := NewPopulatedLinuxInterfacePriority(popr, false) - dAtA, err := proto.Marshal(p) + dAtA, err := github_com_gogo_protobuf_proto.Marshal(p) if err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } msg := &LinuxInterfacePriority{} - if err := proto.Unmarshal(dAtA, msg); err != nil { + if err := github_com_gogo_protobuf_proto.Unmarshal(dAtA, msg); err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } littlefuzz := make([]byte, len(dAtA)) @@ -2541,13 +2542,13 @@ func TestLinuxInterfacePriorityProto(t *testing.T) { littlefuzz = append(littlefuzz, byte(popr.Intn(256))) } // shouldn't panic - _ = proto.Unmarshal(littlefuzz, msg) + _ = github_com_gogo_protobuf_proto.Unmarshal(littlefuzz, msg) } } func TestLinuxInterfacePriorityMarshalTo(t *testing.T) { seed := time.Now().UnixNano() - popr := rand.New(rand.NewSource(seed)) + popr := math_rand.New(math_rand.NewSource(seed)) p := NewPopulatedLinuxInterfacePriority(popr, false) size := p.Size() dAtA := make([]byte, size) @@ -2559,7 +2560,7 @@ func TestLinuxInterfacePriorityMarshalTo(t *testing.T) { t.Fatalf("seed = %d, err = %v", seed, err) } msg := &LinuxInterfacePriority{} - if err := proto.Unmarshal(dAtA, msg); err != nil { + if err := github_com_gogo_protobuf_proto.Unmarshal(dAtA, msg); err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } for i := range dAtA { @@ -2571,7 +2572,7 @@ func TestLinuxInterfacePriorityMarshalTo(t *testing.T) { } func BenchmarkLinuxInterfacePriorityProtoMarshal(b *testing.B) { - popr := rand.New(rand.NewSource(616)) + popr := math_rand.New(math_rand.NewSource(616)) total := 0 pops := make([]*LinuxInterfacePriority, 10000) for i := 0; i < 10000; i++ { @@ -2579,7 +2580,7 @@ func BenchmarkLinuxInterfacePriorityProtoMarshal(b *testing.B) { } b.ResetTimer() for i := 0; i < b.N; i++ { - dAtA, err := proto.Marshal(pops[i%10000]) + dAtA, err := github_com_gogo_protobuf_proto.Marshal(pops[i%10000]) if err != nil { panic(err) } @@ -2589,11 +2590,11 @@ func BenchmarkLinuxInterfacePriorityProtoMarshal(b *testing.B) { } func BenchmarkLinuxInterfacePriorityProtoUnmarshal(b *testing.B) { - popr := rand.New(rand.NewSource(616)) + popr := math_rand.New(math_rand.NewSource(616)) total := 0 datas := make([][]byte, 10000) for i := 0; i < 10000; i++ { - dAtA, err := proto.Marshal(NewPopulatedLinuxInterfacePriority(popr, false)) + dAtA, err := github_com_gogo_protobuf_proto.Marshal(NewPopulatedLinuxInterfacePriority(popr, false)) if err != nil { panic(err) } @@ -2603,7 +2604,7 @@ func BenchmarkLinuxInterfacePriorityProtoUnmarshal(b *testing.B) { b.ResetTimer() for i := 0; i < b.N; i++ { total += len(datas[i%10000]) - if err := proto.Unmarshal(datas[i%10000], msg); err != nil { + if err := github_com_gogo_protobuf_proto.Unmarshal(datas[i%10000], msg); err != nil { panic(err) } } @@ -2612,14 +2613,14 @@ func BenchmarkLinuxInterfacePriorityProtoUnmarshal(b *testing.B) { func TestLinuxSeccompProto(t *testing.T) { seed := time.Now().UnixNano() - popr := rand.New(rand.NewSource(seed)) + popr := math_rand.New(math_rand.NewSource(seed)) p := NewPopulatedLinuxSeccomp(popr, false) - dAtA, err := proto.Marshal(p) + dAtA, err := github_com_gogo_protobuf_proto.Marshal(p) if err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } msg := &LinuxSeccomp{} - if err := proto.Unmarshal(dAtA, msg); err != nil { + if err := github_com_gogo_protobuf_proto.Unmarshal(dAtA, msg); err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } littlefuzz := make([]byte, len(dAtA)) @@ -2637,13 +2638,13 @@ func TestLinuxSeccompProto(t *testing.T) { littlefuzz = append(littlefuzz, byte(popr.Intn(256))) } // shouldn't panic - _ = proto.Unmarshal(littlefuzz, msg) + _ = github_com_gogo_protobuf_proto.Unmarshal(littlefuzz, msg) } } func TestLinuxSeccompMarshalTo(t *testing.T) { seed := time.Now().UnixNano() - popr := rand.New(rand.NewSource(seed)) + popr := math_rand.New(math_rand.NewSource(seed)) p := NewPopulatedLinuxSeccomp(popr, false) size := p.Size() dAtA := make([]byte, size) @@ -2655,7 +2656,7 @@ func TestLinuxSeccompMarshalTo(t *testing.T) { t.Fatalf("seed = %d, err = %v", seed, err) } msg := &LinuxSeccomp{} - if err := proto.Unmarshal(dAtA, msg); err != nil { + if err := github_com_gogo_protobuf_proto.Unmarshal(dAtA, msg); err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } for i := range dAtA { @@ -2667,7 +2668,7 @@ func TestLinuxSeccompMarshalTo(t *testing.T) { } func BenchmarkLinuxSeccompProtoMarshal(b *testing.B) { - popr := rand.New(rand.NewSource(616)) + popr := math_rand.New(math_rand.NewSource(616)) total := 0 pops := make([]*LinuxSeccomp, 10000) for i := 0; i < 10000; i++ { @@ -2675,7 +2676,7 @@ func BenchmarkLinuxSeccompProtoMarshal(b *testing.B) { } b.ResetTimer() for i := 0; i < b.N; i++ { - dAtA, err := proto.Marshal(pops[i%10000]) + dAtA, err := github_com_gogo_protobuf_proto.Marshal(pops[i%10000]) if err != nil { panic(err) } @@ -2685,11 +2686,11 @@ func BenchmarkLinuxSeccompProtoMarshal(b *testing.B) { } func BenchmarkLinuxSeccompProtoUnmarshal(b *testing.B) { - popr := rand.New(rand.NewSource(616)) + popr := math_rand.New(math_rand.NewSource(616)) total := 0 datas := make([][]byte, 10000) for i := 0; i < 10000; i++ { - dAtA, err := proto.Marshal(NewPopulatedLinuxSeccomp(popr, false)) + dAtA, err := github_com_gogo_protobuf_proto.Marshal(NewPopulatedLinuxSeccomp(popr, false)) if err != nil { panic(err) } @@ -2699,7 +2700,7 @@ func BenchmarkLinuxSeccompProtoUnmarshal(b *testing.B) { b.ResetTimer() for i := 0; i < b.N; i++ { total += len(datas[i%10000]) - if err := proto.Unmarshal(datas[i%10000], msg); err != nil { + if err := github_com_gogo_protobuf_proto.Unmarshal(datas[i%10000], msg); err != nil { panic(err) } } @@ -2708,14 +2709,14 @@ func BenchmarkLinuxSeccompProtoUnmarshal(b *testing.B) { func TestLinuxSeccompArgProto(t *testing.T) { seed := time.Now().UnixNano() - popr := rand.New(rand.NewSource(seed)) + popr := math_rand.New(math_rand.NewSource(seed)) p := NewPopulatedLinuxSeccompArg(popr, false) - dAtA, err := proto.Marshal(p) + dAtA, err := github_com_gogo_protobuf_proto.Marshal(p) if err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } msg := &LinuxSeccompArg{} - if err := proto.Unmarshal(dAtA, msg); err != nil { + if err := github_com_gogo_protobuf_proto.Unmarshal(dAtA, msg); err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } littlefuzz := make([]byte, len(dAtA)) @@ -2733,13 +2734,13 @@ func TestLinuxSeccompArgProto(t *testing.T) { littlefuzz = append(littlefuzz, byte(popr.Intn(256))) } // shouldn't panic - _ = proto.Unmarshal(littlefuzz, msg) + _ = github_com_gogo_protobuf_proto.Unmarshal(littlefuzz, msg) } } func TestLinuxSeccompArgMarshalTo(t *testing.T) { seed := time.Now().UnixNano() - popr := rand.New(rand.NewSource(seed)) + popr := math_rand.New(math_rand.NewSource(seed)) p := NewPopulatedLinuxSeccompArg(popr, false) size := p.Size() dAtA := make([]byte, size) @@ -2751,7 +2752,7 @@ func TestLinuxSeccompArgMarshalTo(t *testing.T) { t.Fatalf("seed = %d, err = %v", seed, err) } msg := &LinuxSeccompArg{} - if err := proto.Unmarshal(dAtA, msg); err != nil { + if err := github_com_gogo_protobuf_proto.Unmarshal(dAtA, msg); err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } for i := range dAtA { @@ -2763,7 +2764,7 @@ func TestLinuxSeccompArgMarshalTo(t *testing.T) { } func BenchmarkLinuxSeccompArgProtoMarshal(b *testing.B) { - popr := rand.New(rand.NewSource(616)) + popr := math_rand.New(math_rand.NewSource(616)) total := 0 pops := make([]*LinuxSeccompArg, 10000) for i := 0; i < 10000; i++ { @@ -2771,7 +2772,7 @@ func BenchmarkLinuxSeccompArgProtoMarshal(b *testing.B) { } b.ResetTimer() for i := 0; i < b.N; i++ { - dAtA, err := proto.Marshal(pops[i%10000]) + dAtA, err := github_com_gogo_protobuf_proto.Marshal(pops[i%10000]) if err != nil { panic(err) } @@ -2781,11 +2782,11 @@ func BenchmarkLinuxSeccompArgProtoMarshal(b *testing.B) { } func BenchmarkLinuxSeccompArgProtoUnmarshal(b *testing.B) { - popr := rand.New(rand.NewSource(616)) + popr := math_rand.New(math_rand.NewSource(616)) total := 0 datas := make([][]byte, 10000) for i := 0; i < 10000; i++ { - dAtA, err := proto.Marshal(NewPopulatedLinuxSeccompArg(popr, false)) + dAtA, err := github_com_gogo_protobuf_proto.Marshal(NewPopulatedLinuxSeccompArg(popr, false)) if err != nil { panic(err) } @@ -2795,7 +2796,7 @@ func BenchmarkLinuxSeccompArgProtoUnmarshal(b *testing.B) { b.ResetTimer() for i := 0; i < b.N; i++ { total += len(datas[i%10000]) - if err := proto.Unmarshal(datas[i%10000], msg); err != nil { + if err := github_com_gogo_protobuf_proto.Unmarshal(datas[i%10000], msg); err != nil { panic(err) } } @@ -2804,14 +2805,14 @@ func BenchmarkLinuxSeccompArgProtoUnmarshal(b *testing.B) { func TestLinuxSyscallProto(t *testing.T) { seed := time.Now().UnixNano() - popr := rand.New(rand.NewSource(seed)) + popr := math_rand.New(math_rand.NewSource(seed)) p := NewPopulatedLinuxSyscall(popr, false) - dAtA, err := proto.Marshal(p) + dAtA, err := github_com_gogo_protobuf_proto.Marshal(p) if err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } msg := &LinuxSyscall{} - if err := proto.Unmarshal(dAtA, msg); err != nil { + if err := github_com_gogo_protobuf_proto.Unmarshal(dAtA, msg); err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } littlefuzz := make([]byte, len(dAtA)) @@ -2829,13 +2830,13 @@ func TestLinuxSyscallProto(t *testing.T) { littlefuzz = append(littlefuzz, byte(popr.Intn(256))) } // shouldn't panic - _ = proto.Unmarshal(littlefuzz, msg) + _ = github_com_gogo_protobuf_proto.Unmarshal(littlefuzz, msg) } } func TestLinuxSyscallMarshalTo(t *testing.T) { seed := time.Now().UnixNano() - popr := rand.New(rand.NewSource(seed)) + popr := math_rand.New(math_rand.NewSource(seed)) p := NewPopulatedLinuxSyscall(popr, false) size := p.Size() dAtA := make([]byte, size) @@ -2847,7 +2848,7 @@ func TestLinuxSyscallMarshalTo(t *testing.T) { t.Fatalf("seed = %d, err = %v", seed, err) } msg := &LinuxSyscall{} - if err := proto.Unmarshal(dAtA, msg); err != nil { + if err := github_com_gogo_protobuf_proto.Unmarshal(dAtA, msg); err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } for i := range dAtA { @@ -2859,7 +2860,7 @@ func TestLinuxSyscallMarshalTo(t *testing.T) { } func BenchmarkLinuxSyscallProtoMarshal(b *testing.B) { - popr := rand.New(rand.NewSource(616)) + popr := math_rand.New(math_rand.NewSource(616)) total := 0 pops := make([]*LinuxSyscall, 10000) for i := 0; i < 10000; i++ { @@ -2867,7 +2868,7 @@ func BenchmarkLinuxSyscallProtoMarshal(b *testing.B) { } b.ResetTimer() for i := 0; i < b.N; i++ { - dAtA, err := proto.Marshal(pops[i%10000]) + dAtA, err := github_com_gogo_protobuf_proto.Marshal(pops[i%10000]) if err != nil { panic(err) } @@ -2877,11 +2878,11 @@ func BenchmarkLinuxSyscallProtoMarshal(b *testing.B) { } func BenchmarkLinuxSyscallProtoUnmarshal(b *testing.B) { - popr := rand.New(rand.NewSource(616)) + popr := math_rand.New(math_rand.NewSource(616)) total := 0 datas := make([][]byte, 10000) for i := 0; i < 10000; i++ { - dAtA, err := proto.Marshal(NewPopulatedLinuxSyscall(popr, false)) + dAtA, err := github_com_gogo_protobuf_proto.Marshal(NewPopulatedLinuxSyscall(popr, false)) if err != nil { panic(err) } @@ -2891,7 +2892,7 @@ func BenchmarkLinuxSyscallProtoUnmarshal(b *testing.B) { b.ResetTimer() for i := 0; i < b.N; i++ { total += len(datas[i%10000]) - if err := proto.Unmarshal(datas[i%10000], msg); err != nil { + if err := github_com_gogo_protobuf_proto.Unmarshal(datas[i%10000], msg); err != nil { panic(err) } } @@ -2900,14 +2901,14 @@ func BenchmarkLinuxSyscallProtoUnmarshal(b *testing.B) { func TestLinuxIntelRdtProto(t *testing.T) { seed := time.Now().UnixNano() - popr := rand.New(rand.NewSource(seed)) + popr := math_rand.New(math_rand.NewSource(seed)) p := NewPopulatedLinuxIntelRdt(popr, false) - dAtA, err := proto.Marshal(p) + dAtA, err := github_com_gogo_protobuf_proto.Marshal(p) if err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } msg := &LinuxIntelRdt{} - if err := proto.Unmarshal(dAtA, msg); err != nil { + if err := github_com_gogo_protobuf_proto.Unmarshal(dAtA, msg); err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } littlefuzz := make([]byte, len(dAtA)) @@ -2925,13 +2926,13 @@ func TestLinuxIntelRdtProto(t *testing.T) { littlefuzz = append(littlefuzz, byte(popr.Intn(256))) } // shouldn't panic - _ = proto.Unmarshal(littlefuzz, msg) + _ = github_com_gogo_protobuf_proto.Unmarshal(littlefuzz, msg) } } func TestLinuxIntelRdtMarshalTo(t *testing.T) { seed := time.Now().UnixNano() - popr := rand.New(rand.NewSource(seed)) + popr := math_rand.New(math_rand.NewSource(seed)) p := NewPopulatedLinuxIntelRdt(popr, false) size := p.Size() dAtA := make([]byte, size) @@ -2943,7 +2944,7 @@ func TestLinuxIntelRdtMarshalTo(t *testing.T) { t.Fatalf("seed = %d, err = %v", seed, err) } msg := &LinuxIntelRdt{} - if err := proto.Unmarshal(dAtA, msg); err != nil { + if err := github_com_gogo_protobuf_proto.Unmarshal(dAtA, msg); err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } for i := range dAtA { @@ -2955,7 +2956,7 @@ func TestLinuxIntelRdtMarshalTo(t *testing.T) { } func BenchmarkLinuxIntelRdtProtoMarshal(b *testing.B) { - popr := rand.New(rand.NewSource(616)) + popr := math_rand.New(math_rand.NewSource(616)) total := 0 pops := make([]*LinuxIntelRdt, 10000) for i := 0; i < 10000; i++ { @@ -2963,7 +2964,7 @@ func BenchmarkLinuxIntelRdtProtoMarshal(b *testing.B) { } b.ResetTimer() for i := 0; i < b.N; i++ { - dAtA, err := proto.Marshal(pops[i%10000]) + dAtA, err := github_com_gogo_protobuf_proto.Marshal(pops[i%10000]) if err != nil { panic(err) } @@ -2973,11 +2974,11 @@ func BenchmarkLinuxIntelRdtProtoMarshal(b *testing.B) { } func BenchmarkLinuxIntelRdtProtoUnmarshal(b *testing.B) { - popr := rand.New(rand.NewSource(616)) + popr := math_rand.New(math_rand.NewSource(616)) total := 0 datas := make([][]byte, 10000) for i := 0; i < 10000; i++ { - dAtA, err := proto.Marshal(NewPopulatedLinuxIntelRdt(popr, false)) + dAtA, err := github_com_gogo_protobuf_proto.Marshal(NewPopulatedLinuxIntelRdt(popr, false)) if err != nil { panic(err) } @@ -2987,7 +2988,7 @@ func BenchmarkLinuxIntelRdtProtoUnmarshal(b *testing.B) { b.ResetTimer() for i := 0; i < b.N; i++ { total += len(datas[i%10000]) - if err := proto.Unmarshal(datas[i%10000], msg); err != nil { + if err := github_com_gogo_protobuf_proto.Unmarshal(datas[i%10000], msg); err != nil { panic(err) } } @@ -2996,15 +2997,15 @@ func BenchmarkLinuxIntelRdtProtoUnmarshal(b *testing.B) { func TestSpecJSON(t *testing.T) { seed := time.Now().UnixNano() - popr := rand.New(rand.NewSource(seed)) + popr := math_rand.New(math_rand.NewSource(seed)) p := NewPopulatedSpec(popr, true) - marshaler := jsonpb.Marshaler{} + marshaler := github_com_gogo_protobuf_jsonpb.Marshaler{} jsondata, err := marshaler.MarshalToString(p) if err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } msg := &Spec{} - err = jsonpb.UnmarshalString(jsondata, msg) + err = github_com_gogo_protobuf_jsonpb.UnmarshalString(jsondata, msg) if err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } @@ -3014,15 +3015,15 @@ func TestSpecJSON(t *testing.T) { } func TestProcessJSON(t *testing.T) { seed := time.Now().UnixNano() - popr := rand.New(rand.NewSource(seed)) + popr := math_rand.New(math_rand.NewSource(seed)) p := NewPopulatedProcess(popr, true) - marshaler := jsonpb.Marshaler{} + marshaler := github_com_gogo_protobuf_jsonpb.Marshaler{} jsondata, err := marshaler.MarshalToString(p) if err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } msg := &Process{} - err = jsonpb.UnmarshalString(jsondata, msg) + err = github_com_gogo_protobuf_jsonpb.UnmarshalString(jsondata, msg) if err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } @@ -3032,15 +3033,15 @@ func TestProcessJSON(t *testing.T) { } func TestBoxJSON(t *testing.T) { seed := time.Now().UnixNano() - popr := rand.New(rand.NewSource(seed)) + popr := math_rand.New(math_rand.NewSource(seed)) p := NewPopulatedBox(popr, true) - marshaler := jsonpb.Marshaler{} + marshaler := github_com_gogo_protobuf_jsonpb.Marshaler{} jsondata, err := marshaler.MarshalToString(p) if err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } msg := &Box{} - err = jsonpb.UnmarshalString(jsondata, msg) + err = github_com_gogo_protobuf_jsonpb.UnmarshalString(jsondata, msg) if err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } @@ -3050,15 +3051,15 @@ func TestBoxJSON(t *testing.T) { } func TestUserJSON(t *testing.T) { seed := time.Now().UnixNano() - popr := rand.New(rand.NewSource(seed)) + popr := math_rand.New(math_rand.NewSource(seed)) p := NewPopulatedUser(popr, true) - marshaler := jsonpb.Marshaler{} + marshaler := github_com_gogo_protobuf_jsonpb.Marshaler{} jsondata, err := marshaler.MarshalToString(p) if err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } msg := &User{} - err = jsonpb.UnmarshalString(jsondata, msg) + err = github_com_gogo_protobuf_jsonpb.UnmarshalString(jsondata, msg) if err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } @@ -3068,15 +3069,15 @@ func TestUserJSON(t *testing.T) { } func TestLinuxCapabilitiesJSON(t *testing.T) { seed := time.Now().UnixNano() - popr := rand.New(rand.NewSource(seed)) + popr := math_rand.New(math_rand.NewSource(seed)) p := NewPopulatedLinuxCapabilities(popr, true) - marshaler := jsonpb.Marshaler{} + marshaler := github_com_gogo_protobuf_jsonpb.Marshaler{} jsondata, err := marshaler.MarshalToString(p) if err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } msg := &LinuxCapabilities{} - err = jsonpb.UnmarshalString(jsondata, msg) + err = github_com_gogo_protobuf_jsonpb.UnmarshalString(jsondata, msg) if err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } @@ -3086,15 +3087,15 @@ func TestLinuxCapabilitiesJSON(t *testing.T) { } func TestPOSIXRlimitJSON(t *testing.T) { seed := time.Now().UnixNano() - popr := rand.New(rand.NewSource(seed)) + popr := math_rand.New(math_rand.NewSource(seed)) p := NewPopulatedPOSIXRlimit(popr, true) - marshaler := jsonpb.Marshaler{} + marshaler := github_com_gogo_protobuf_jsonpb.Marshaler{} jsondata, err := marshaler.MarshalToString(p) if err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } msg := &POSIXRlimit{} - err = jsonpb.UnmarshalString(jsondata, msg) + err = github_com_gogo_protobuf_jsonpb.UnmarshalString(jsondata, msg) if err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } @@ -3104,15 +3105,15 @@ func TestPOSIXRlimitJSON(t *testing.T) { } func TestMountJSON(t *testing.T) { seed := time.Now().UnixNano() - popr := rand.New(rand.NewSource(seed)) + popr := math_rand.New(math_rand.NewSource(seed)) p := NewPopulatedMount(popr, true) - marshaler := jsonpb.Marshaler{} + marshaler := github_com_gogo_protobuf_jsonpb.Marshaler{} jsondata, err := marshaler.MarshalToString(p) if err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } msg := &Mount{} - err = jsonpb.UnmarshalString(jsondata, msg) + err = github_com_gogo_protobuf_jsonpb.UnmarshalString(jsondata, msg) if err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } @@ -3122,15 +3123,15 @@ func TestMountJSON(t *testing.T) { } func TestRootJSON(t *testing.T) { seed := time.Now().UnixNano() - popr := rand.New(rand.NewSource(seed)) + popr := math_rand.New(math_rand.NewSource(seed)) p := NewPopulatedRoot(popr, true) - marshaler := jsonpb.Marshaler{} + marshaler := github_com_gogo_protobuf_jsonpb.Marshaler{} jsondata, err := marshaler.MarshalToString(p) if err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } msg := &Root{} - err = jsonpb.UnmarshalString(jsondata, msg) + err = github_com_gogo_protobuf_jsonpb.UnmarshalString(jsondata, msg) if err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } @@ -3140,15 +3141,15 @@ func TestRootJSON(t *testing.T) { } func TestHooksJSON(t *testing.T) { seed := time.Now().UnixNano() - popr := rand.New(rand.NewSource(seed)) + popr := math_rand.New(math_rand.NewSource(seed)) p := NewPopulatedHooks(popr, true) - marshaler := jsonpb.Marshaler{} + marshaler := github_com_gogo_protobuf_jsonpb.Marshaler{} jsondata, err := marshaler.MarshalToString(p) if err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } msg := &Hooks{} - err = jsonpb.UnmarshalString(jsondata, msg) + err = github_com_gogo_protobuf_jsonpb.UnmarshalString(jsondata, msg) if err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } @@ -3158,15 +3159,15 @@ func TestHooksJSON(t *testing.T) { } func TestHookJSON(t *testing.T) { seed := time.Now().UnixNano() - popr := rand.New(rand.NewSource(seed)) + popr := math_rand.New(math_rand.NewSource(seed)) p := NewPopulatedHook(popr, true) - marshaler := jsonpb.Marshaler{} + marshaler := github_com_gogo_protobuf_jsonpb.Marshaler{} jsondata, err := marshaler.MarshalToString(p) if err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } msg := &Hook{} - err = jsonpb.UnmarshalString(jsondata, msg) + err = github_com_gogo_protobuf_jsonpb.UnmarshalString(jsondata, msg) if err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } @@ -3176,15 +3177,15 @@ func TestHookJSON(t *testing.T) { } func TestLinuxJSON(t *testing.T) { seed := time.Now().UnixNano() - popr := rand.New(rand.NewSource(seed)) + popr := math_rand.New(math_rand.NewSource(seed)) p := NewPopulatedLinux(popr, true) - marshaler := jsonpb.Marshaler{} + marshaler := github_com_gogo_protobuf_jsonpb.Marshaler{} jsondata, err := marshaler.MarshalToString(p) if err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } msg := &Linux{} - err = jsonpb.UnmarshalString(jsondata, msg) + err = github_com_gogo_protobuf_jsonpb.UnmarshalString(jsondata, msg) if err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } @@ -3194,15 +3195,15 @@ func TestLinuxJSON(t *testing.T) { } func TestWindowsJSON(t *testing.T) { seed := time.Now().UnixNano() - popr := rand.New(rand.NewSource(seed)) + popr := math_rand.New(math_rand.NewSource(seed)) p := NewPopulatedWindows(popr, true) - marshaler := jsonpb.Marshaler{} + marshaler := github_com_gogo_protobuf_jsonpb.Marshaler{} jsondata, err := marshaler.MarshalToString(p) if err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } msg := &Windows{} - err = jsonpb.UnmarshalString(jsondata, msg) + err = github_com_gogo_protobuf_jsonpb.UnmarshalString(jsondata, msg) if err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } @@ -3212,15 +3213,15 @@ func TestWindowsJSON(t *testing.T) { } func TestSolarisJSON(t *testing.T) { seed := time.Now().UnixNano() - popr := rand.New(rand.NewSource(seed)) + popr := math_rand.New(math_rand.NewSource(seed)) p := NewPopulatedSolaris(popr, true) - marshaler := jsonpb.Marshaler{} + marshaler := github_com_gogo_protobuf_jsonpb.Marshaler{} jsondata, err := marshaler.MarshalToString(p) if err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } msg := &Solaris{} - err = jsonpb.UnmarshalString(jsondata, msg) + err = github_com_gogo_protobuf_jsonpb.UnmarshalString(jsondata, msg) if err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } @@ -3230,15 +3231,15 @@ func TestSolarisJSON(t *testing.T) { } func TestLinuxIDMappingJSON(t *testing.T) { seed := time.Now().UnixNano() - popr := rand.New(rand.NewSource(seed)) + popr := math_rand.New(math_rand.NewSource(seed)) p := NewPopulatedLinuxIDMapping(popr, true) - marshaler := jsonpb.Marshaler{} + marshaler := github_com_gogo_protobuf_jsonpb.Marshaler{} jsondata, err := marshaler.MarshalToString(p) if err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } msg := &LinuxIDMapping{} - err = jsonpb.UnmarshalString(jsondata, msg) + err = github_com_gogo_protobuf_jsonpb.UnmarshalString(jsondata, msg) if err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } @@ -3248,15 +3249,15 @@ func TestLinuxIDMappingJSON(t *testing.T) { } func TestLinuxNamespaceJSON(t *testing.T) { seed := time.Now().UnixNano() - popr := rand.New(rand.NewSource(seed)) + popr := math_rand.New(math_rand.NewSource(seed)) p := NewPopulatedLinuxNamespace(popr, true) - marshaler := jsonpb.Marshaler{} + marshaler := github_com_gogo_protobuf_jsonpb.Marshaler{} jsondata, err := marshaler.MarshalToString(p) if err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } msg := &LinuxNamespace{} - err = jsonpb.UnmarshalString(jsondata, msg) + err = github_com_gogo_protobuf_jsonpb.UnmarshalString(jsondata, msg) if err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } @@ -3266,15 +3267,15 @@ func TestLinuxNamespaceJSON(t *testing.T) { } func TestLinuxDeviceJSON(t *testing.T) { seed := time.Now().UnixNano() - popr := rand.New(rand.NewSource(seed)) + popr := math_rand.New(math_rand.NewSource(seed)) p := NewPopulatedLinuxDevice(popr, true) - marshaler := jsonpb.Marshaler{} + marshaler := github_com_gogo_protobuf_jsonpb.Marshaler{} jsondata, err := marshaler.MarshalToString(p) if err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } msg := &LinuxDevice{} - err = jsonpb.UnmarshalString(jsondata, msg) + err = github_com_gogo_protobuf_jsonpb.UnmarshalString(jsondata, msg) if err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } @@ -3284,15 +3285,15 @@ func TestLinuxDeviceJSON(t *testing.T) { } func TestLinuxResourcesJSON(t *testing.T) { seed := time.Now().UnixNano() - popr := rand.New(rand.NewSource(seed)) + popr := math_rand.New(math_rand.NewSource(seed)) p := NewPopulatedLinuxResources(popr, true) - marshaler := jsonpb.Marshaler{} + marshaler := github_com_gogo_protobuf_jsonpb.Marshaler{} jsondata, err := marshaler.MarshalToString(p) if err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } msg := &LinuxResources{} - err = jsonpb.UnmarshalString(jsondata, msg) + err = github_com_gogo_protobuf_jsonpb.UnmarshalString(jsondata, msg) if err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } @@ -3302,15 +3303,15 @@ func TestLinuxResourcesJSON(t *testing.T) { } func TestLinuxMemoryJSON(t *testing.T) { seed := time.Now().UnixNano() - popr := rand.New(rand.NewSource(seed)) + popr := math_rand.New(math_rand.NewSource(seed)) p := NewPopulatedLinuxMemory(popr, true) - marshaler := jsonpb.Marshaler{} + marshaler := github_com_gogo_protobuf_jsonpb.Marshaler{} jsondata, err := marshaler.MarshalToString(p) if err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } msg := &LinuxMemory{} - err = jsonpb.UnmarshalString(jsondata, msg) + err = github_com_gogo_protobuf_jsonpb.UnmarshalString(jsondata, msg) if err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } @@ -3320,15 +3321,15 @@ func TestLinuxMemoryJSON(t *testing.T) { } func TestLinuxCPUJSON(t *testing.T) { seed := time.Now().UnixNano() - popr := rand.New(rand.NewSource(seed)) + popr := math_rand.New(math_rand.NewSource(seed)) p := NewPopulatedLinuxCPU(popr, true) - marshaler := jsonpb.Marshaler{} + marshaler := github_com_gogo_protobuf_jsonpb.Marshaler{} jsondata, err := marshaler.MarshalToString(p) if err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } msg := &LinuxCPU{} - err = jsonpb.UnmarshalString(jsondata, msg) + err = github_com_gogo_protobuf_jsonpb.UnmarshalString(jsondata, msg) if err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } @@ -3338,15 +3339,15 @@ func TestLinuxCPUJSON(t *testing.T) { } func TestLinuxWeightDeviceJSON(t *testing.T) { seed := time.Now().UnixNano() - popr := rand.New(rand.NewSource(seed)) + popr := math_rand.New(math_rand.NewSource(seed)) p := NewPopulatedLinuxWeightDevice(popr, true) - marshaler := jsonpb.Marshaler{} + marshaler := github_com_gogo_protobuf_jsonpb.Marshaler{} jsondata, err := marshaler.MarshalToString(p) if err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } msg := &LinuxWeightDevice{} - err = jsonpb.UnmarshalString(jsondata, msg) + err = github_com_gogo_protobuf_jsonpb.UnmarshalString(jsondata, msg) if err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } @@ -3356,15 +3357,15 @@ func TestLinuxWeightDeviceJSON(t *testing.T) { } func TestLinuxThrottleDeviceJSON(t *testing.T) { seed := time.Now().UnixNano() - popr := rand.New(rand.NewSource(seed)) + popr := math_rand.New(math_rand.NewSource(seed)) p := NewPopulatedLinuxThrottleDevice(popr, true) - marshaler := jsonpb.Marshaler{} + marshaler := github_com_gogo_protobuf_jsonpb.Marshaler{} jsondata, err := marshaler.MarshalToString(p) if err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } msg := &LinuxThrottleDevice{} - err = jsonpb.UnmarshalString(jsondata, msg) + err = github_com_gogo_protobuf_jsonpb.UnmarshalString(jsondata, msg) if err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } @@ -3374,15 +3375,15 @@ func TestLinuxThrottleDeviceJSON(t *testing.T) { } func TestLinuxBlockIOJSON(t *testing.T) { seed := time.Now().UnixNano() - popr := rand.New(rand.NewSource(seed)) + popr := math_rand.New(math_rand.NewSource(seed)) p := NewPopulatedLinuxBlockIO(popr, true) - marshaler := jsonpb.Marshaler{} + marshaler := github_com_gogo_protobuf_jsonpb.Marshaler{} jsondata, err := marshaler.MarshalToString(p) if err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } msg := &LinuxBlockIO{} - err = jsonpb.UnmarshalString(jsondata, msg) + err = github_com_gogo_protobuf_jsonpb.UnmarshalString(jsondata, msg) if err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } @@ -3392,15 +3393,15 @@ func TestLinuxBlockIOJSON(t *testing.T) { } func TestLinuxPidsJSON(t *testing.T) { seed := time.Now().UnixNano() - popr := rand.New(rand.NewSource(seed)) + popr := math_rand.New(math_rand.NewSource(seed)) p := NewPopulatedLinuxPids(popr, true) - marshaler := jsonpb.Marshaler{} + marshaler := github_com_gogo_protobuf_jsonpb.Marshaler{} jsondata, err := marshaler.MarshalToString(p) if err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } msg := &LinuxPids{} - err = jsonpb.UnmarshalString(jsondata, msg) + err = github_com_gogo_protobuf_jsonpb.UnmarshalString(jsondata, msg) if err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } @@ -3410,15 +3411,15 @@ func TestLinuxPidsJSON(t *testing.T) { } func TestLinuxDeviceCgroupJSON(t *testing.T) { seed := time.Now().UnixNano() - popr := rand.New(rand.NewSource(seed)) + popr := math_rand.New(math_rand.NewSource(seed)) p := NewPopulatedLinuxDeviceCgroup(popr, true) - marshaler := jsonpb.Marshaler{} + marshaler := github_com_gogo_protobuf_jsonpb.Marshaler{} jsondata, err := marshaler.MarshalToString(p) if err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } msg := &LinuxDeviceCgroup{} - err = jsonpb.UnmarshalString(jsondata, msg) + err = github_com_gogo_protobuf_jsonpb.UnmarshalString(jsondata, msg) if err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } @@ -3428,15 +3429,15 @@ func TestLinuxDeviceCgroupJSON(t *testing.T) { } func TestLinuxNetworkJSON(t *testing.T) { seed := time.Now().UnixNano() - popr := rand.New(rand.NewSource(seed)) + popr := math_rand.New(math_rand.NewSource(seed)) p := NewPopulatedLinuxNetwork(popr, true) - marshaler := jsonpb.Marshaler{} + marshaler := github_com_gogo_protobuf_jsonpb.Marshaler{} jsondata, err := marshaler.MarshalToString(p) if err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } msg := &LinuxNetwork{} - err = jsonpb.UnmarshalString(jsondata, msg) + err = github_com_gogo_protobuf_jsonpb.UnmarshalString(jsondata, msg) if err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } @@ -3446,15 +3447,15 @@ func TestLinuxNetworkJSON(t *testing.T) { } func TestLinuxHugepageLimitJSON(t *testing.T) { seed := time.Now().UnixNano() - popr := rand.New(rand.NewSource(seed)) + popr := math_rand.New(math_rand.NewSource(seed)) p := NewPopulatedLinuxHugepageLimit(popr, true) - marshaler := jsonpb.Marshaler{} + marshaler := github_com_gogo_protobuf_jsonpb.Marshaler{} jsondata, err := marshaler.MarshalToString(p) if err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } msg := &LinuxHugepageLimit{} - err = jsonpb.UnmarshalString(jsondata, msg) + err = github_com_gogo_protobuf_jsonpb.UnmarshalString(jsondata, msg) if err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } @@ -3464,15 +3465,15 @@ func TestLinuxHugepageLimitJSON(t *testing.T) { } func TestLinuxInterfacePriorityJSON(t *testing.T) { seed := time.Now().UnixNano() - popr := rand.New(rand.NewSource(seed)) + popr := math_rand.New(math_rand.NewSource(seed)) p := NewPopulatedLinuxInterfacePriority(popr, true) - marshaler := jsonpb.Marshaler{} + marshaler := github_com_gogo_protobuf_jsonpb.Marshaler{} jsondata, err := marshaler.MarshalToString(p) if err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } msg := &LinuxInterfacePriority{} - err = jsonpb.UnmarshalString(jsondata, msg) + err = github_com_gogo_protobuf_jsonpb.UnmarshalString(jsondata, msg) if err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } @@ -3482,15 +3483,15 @@ func TestLinuxInterfacePriorityJSON(t *testing.T) { } func TestLinuxSeccompJSON(t *testing.T) { seed := time.Now().UnixNano() - popr := rand.New(rand.NewSource(seed)) + popr := math_rand.New(math_rand.NewSource(seed)) p := NewPopulatedLinuxSeccomp(popr, true) - marshaler := jsonpb.Marshaler{} + marshaler := github_com_gogo_protobuf_jsonpb.Marshaler{} jsondata, err := marshaler.MarshalToString(p) if err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } msg := &LinuxSeccomp{} - err = jsonpb.UnmarshalString(jsondata, msg) + err = github_com_gogo_protobuf_jsonpb.UnmarshalString(jsondata, msg) if err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } @@ -3500,15 +3501,15 @@ func TestLinuxSeccompJSON(t *testing.T) { } func TestLinuxSeccompArgJSON(t *testing.T) { seed := time.Now().UnixNano() - popr := rand.New(rand.NewSource(seed)) + popr := math_rand.New(math_rand.NewSource(seed)) p := NewPopulatedLinuxSeccompArg(popr, true) - marshaler := jsonpb.Marshaler{} + marshaler := github_com_gogo_protobuf_jsonpb.Marshaler{} jsondata, err := marshaler.MarshalToString(p) if err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } msg := &LinuxSeccompArg{} - err = jsonpb.UnmarshalString(jsondata, msg) + err = github_com_gogo_protobuf_jsonpb.UnmarshalString(jsondata, msg) if err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } @@ -3518,15 +3519,15 @@ func TestLinuxSeccompArgJSON(t *testing.T) { } func TestLinuxSyscallJSON(t *testing.T) { seed := time.Now().UnixNano() - popr := rand.New(rand.NewSource(seed)) + popr := math_rand.New(math_rand.NewSource(seed)) p := NewPopulatedLinuxSyscall(popr, true) - marshaler := jsonpb.Marshaler{} + marshaler := github_com_gogo_protobuf_jsonpb.Marshaler{} jsondata, err := marshaler.MarshalToString(p) if err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } msg := &LinuxSyscall{} - err = jsonpb.UnmarshalString(jsondata, msg) + err = github_com_gogo_protobuf_jsonpb.UnmarshalString(jsondata, msg) if err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } @@ -3536,15 +3537,15 @@ func TestLinuxSyscallJSON(t *testing.T) { } func TestLinuxIntelRdtJSON(t *testing.T) { seed := time.Now().UnixNano() - popr := rand.New(rand.NewSource(seed)) + popr := math_rand.New(math_rand.NewSource(seed)) p := NewPopulatedLinuxIntelRdt(popr, true) - marshaler := jsonpb.Marshaler{} + marshaler := github_com_gogo_protobuf_jsonpb.Marshaler{} jsondata, err := marshaler.MarshalToString(p) if err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } msg := &LinuxIntelRdt{} - err = jsonpb.UnmarshalString(jsondata, msg) + err = github_com_gogo_protobuf_jsonpb.UnmarshalString(jsondata, msg) if err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } @@ -3554,11 +3555,11 @@ func TestLinuxIntelRdtJSON(t *testing.T) { } func TestSpecProtoText(t *testing.T) { seed := time.Now().UnixNano() - popr := rand.New(rand.NewSource(seed)) + popr := math_rand.New(math_rand.NewSource(seed)) p := NewPopulatedSpec(popr, true) - dAtA := proto.MarshalTextString(p) + dAtA := github_com_gogo_protobuf_proto.MarshalTextString(p) msg := &Spec{} - if err := proto.UnmarshalText(dAtA, msg); err != nil { + if err := github_com_gogo_protobuf_proto.UnmarshalText(dAtA, msg); err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } if !p.Equal(msg) { @@ -3568,11 +3569,11 @@ func TestSpecProtoText(t *testing.T) { func TestSpecProtoCompactText(t *testing.T) { seed := time.Now().UnixNano() - popr := rand.New(rand.NewSource(seed)) + popr := math_rand.New(math_rand.NewSource(seed)) p := NewPopulatedSpec(popr, true) - dAtA := proto.CompactTextString(p) + dAtA := github_com_gogo_protobuf_proto.CompactTextString(p) msg := &Spec{} - if err := proto.UnmarshalText(dAtA, msg); err != nil { + if err := github_com_gogo_protobuf_proto.UnmarshalText(dAtA, msg); err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } if !p.Equal(msg) { @@ -3582,11 +3583,11 @@ func TestSpecProtoCompactText(t *testing.T) { func TestProcessProtoText(t *testing.T) { seed := time.Now().UnixNano() - popr := rand.New(rand.NewSource(seed)) + popr := math_rand.New(math_rand.NewSource(seed)) p := NewPopulatedProcess(popr, true) - dAtA := proto.MarshalTextString(p) + dAtA := github_com_gogo_protobuf_proto.MarshalTextString(p) msg := &Process{} - if err := proto.UnmarshalText(dAtA, msg); err != nil { + if err := github_com_gogo_protobuf_proto.UnmarshalText(dAtA, msg); err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } if !p.Equal(msg) { @@ -3596,11 +3597,11 @@ func TestProcessProtoText(t *testing.T) { func TestProcessProtoCompactText(t *testing.T) { seed := time.Now().UnixNano() - popr := rand.New(rand.NewSource(seed)) + popr := math_rand.New(math_rand.NewSource(seed)) p := NewPopulatedProcess(popr, true) - dAtA := proto.CompactTextString(p) + dAtA := github_com_gogo_protobuf_proto.CompactTextString(p) msg := &Process{} - if err := proto.UnmarshalText(dAtA, msg); err != nil { + if err := github_com_gogo_protobuf_proto.UnmarshalText(dAtA, msg); err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } if !p.Equal(msg) { @@ -3610,11 +3611,11 @@ func TestProcessProtoCompactText(t *testing.T) { func TestBoxProtoText(t *testing.T) { seed := time.Now().UnixNano() - popr := rand.New(rand.NewSource(seed)) + popr := math_rand.New(math_rand.NewSource(seed)) p := NewPopulatedBox(popr, true) - dAtA := proto.MarshalTextString(p) + dAtA := github_com_gogo_protobuf_proto.MarshalTextString(p) msg := &Box{} - if err := proto.UnmarshalText(dAtA, msg); err != nil { + if err := github_com_gogo_protobuf_proto.UnmarshalText(dAtA, msg); err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } if !p.Equal(msg) { @@ -3624,11 +3625,11 @@ func TestBoxProtoText(t *testing.T) { func TestBoxProtoCompactText(t *testing.T) { seed := time.Now().UnixNano() - popr := rand.New(rand.NewSource(seed)) + popr := math_rand.New(math_rand.NewSource(seed)) p := NewPopulatedBox(popr, true) - dAtA := proto.CompactTextString(p) + dAtA := github_com_gogo_protobuf_proto.CompactTextString(p) msg := &Box{} - if err := proto.UnmarshalText(dAtA, msg); err != nil { + if err := github_com_gogo_protobuf_proto.UnmarshalText(dAtA, msg); err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } if !p.Equal(msg) { @@ -3638,11 +3639,11 @@ func TestBoxProtoCompactText(t *testing.T) { func TestUserProtoText(t *testing.T) { seed := time.Now().UnixNano() - popr := rand.New(rand.NewSource(seed)) + popr := math_rand.New(math_rand.NewSource(seed)) p := NewPopulatedUser(popr, true) - dAtA := proto.MarshalTextString(p) + dAtA := github_com_gogo_protobuf_proto.MarshalTextString(p) msg := &User{} - if err := proto.UnmarshalText(dAtA, msg); err != nil { + if err := github_com_gogo_protobuf_proto.UnmarshalText(dAtA, msg); err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } if !p.Equal(msg) { @@ -3652,11 +3653,11 @@ func TestUserProtoText(t *testing.T) { func TestUserProtoCompactText(t *testing.T) { seed := time.Now().UnixNano() - popr := rand.New(rand.NewSource(seed)) + popr := math_rand.New(math_rand.NewSource(seed)) p := NewPopulatedUser(popr, true) - dAtA := proto.CompactTextString(p) + dAtA := github_com_gogo_protobuf_proto.CompactTextString(p) msg := &User{} - if err := proto.UnmarshalText(dAtA, msg); err != nil { + if err := github_com_gogo_protobuf_proto.UnmarshalText(dAtA, msg); err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } if !p.Equal(msg) { @@ -3666,11 +3667,11 @@ func TestUserProtoCompactText(t *testing.T) { func TestLinuxCapabilitiesProtoText(t *testing.T) { seed := time.Now().UnixNano() - popr := rand.New(rand.NewSource(seed)) + popr := math_rand.New(math_rand.NewSource(seed)) p := NewPopulatedLinuxCapabilities(popr, true) - dAtA := proto.MarshalTextString(p) + dAtA := github_com_gogo_protobuf_proto.MarshalTextString(p) msg := &LinuxCapabilities{} - if err := proto.UnmarshalText(dAtA, msg); err != nil { + if err := github_com_gogo_protobuf_proto.UnmarshalText(dAtA, msg); err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } if !p.Equal(msg) { @@ -3680,11 +3681,11 @@ func TestLinuxCapabilitiesProtoText(t *testing.T) { func TestLinuxCapabilitiesProtoCompactText(t *testing.T) { seed := time.Now().UnixNano() - popr := rand.New(rand.NewSource(seed)) + popr := math_rand.New(math_rand.NewSource(seed)) p := NewPopulatedLinuxCapabilities(popr, true) - dAtA := proto.CompactTextString(p) + dAtA := github_com_gogo_protobuf_proto.CompactTextString(p) msg := &LinuxCapabilities{} - if err := proto.UnmarshalText(dAtA, msg); err != nil { + if err := github_com_gogo_protobuf_proto.UnmarshalText(dAtA, msg); err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } if !p.Equal(msg) { @@ -3694,11 +3695,11 @@ func TestLinuxCapabilitiesProtoCompactText(t *testing.T) { func TestPOSIXRlimitProtoText(t *testing.T) { seed := time.Now().UnixNano() - popr := rand.New(rand.NewSource(seed)) + popr := math_rand.New(math_rand.NewSource(seed)) p := NewPopulatedPOSIXRlimit(popr, true) - dAtA := proto.MarshalTextString(p) + dAtA := github_com_gogo_protobuf_proto.MarshalTextString(p) msg := &POSIXRlimit{} - if err := proto.UnmarshalText(dAtA, msg); err != nil { + if err := github_com_gogo_protobuf_proto.UnmarshalText(dAtA, msg); err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } if !p.Equal(msg) { @@ -3708,11 +3709,11 @@ func TestPOSIXRlimitProtoText(t *testing.T) { func TestPOSIXRlimitProtoCompactText(t *testing.T) { seed := time.Now().UnixNano() - popr := rand.New(rand.NewSource(seed)) + popr := math_rand.New(math_rand.NewSource(seed)) p := NewPopulatedPOSIXRlimit(popr, true) - dAtA := proto.CompactTextString(p) + dAtA := github_com_gogo_protobuf_proto.CompactTextString(p) msg := &POSIXRlimit{} - if err := proto.UnmarshalText(dAtA, msg); err != nil { + if err := github_com_gogo_protobuf_proto.UnmarshalText(dAtA, msg); err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } if !p.Equal(msg) { @@ -3722,11 +3723,11 @@ func TestPOSIXRlimitProtoCompactText(t *testing.T) { func TestMountProtoText(t *testing.T) { seed := time.Now().UnixNano() - popr := rand.New(rand.NewSource(seed)) + popr := math_rand.New(math_rand.NewSource(seed)) p := NewPopulatedMount(popr, true) - dAtA := proto.MarshalTextString(p) + dAtA := github_com_gogo_protobuf_proto.MarshalTextString(p) msg := &Mount{} - if err := proto.UnmarshalText(dAtA, msg); err != nil { + if err := github_com_gogo_protobuf_proto.UnmarshalText(dAtA, msg); err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } if !p.Equal(msg) { @@ -3736,11 +3737,11 @@ func TestMountProtoText(t *testing.T) { func TestMountProtoCompactText(t *testing.T) { seed := time.Now().UnixNano() - popr := rand.New(rand.NewSource(seed)) + popr := math_rand.New(math_rand.NewSource(seed)) p := NewPopulatedMount(popr, true) - dAtA := proto.CompactTextString(p) + dAtA := github_com_gogo_protobuf_proto.CompactTextString(p) msg := &Mount{} - if err := proto.UnmarshalText(dAtA, msg); err != nil { + if err := github_com_gogo_protobuf_proto.UnmarshalText(dAtA, msg); err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } if !p.Equal(msg) { @@ -3750,11 +3751,11 @@ func TestMountProtoCompactText(t *testing.T) { func TestRootProtoText(t *testing.T) { seed := time.Now().UnixNano() - popr := rand.New(rand.NewSource(seed)) + popr := math_rand.New(math_rand.NewSource(seed)) p := NewPopulatedRoot(popr, true) - dAtA := proto.MarshalTextString(p) + dAtA := github_com_gogo_protobuf_proto.MarshalTextString(p) msg := &Root{} - if err := proto.UnmarshalText(dAtA, msg); err != nil { + if err := github_com_gogo_protobuf_proto.UnmarshalText(dAtA, msg); err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } if !p.Equal(msg) { @@ -3764,11 +3765,11 @@ func TestRootProtoText(t *testing.T) { func TestRootProtoCompactText(t *testing.T) { seed := time.Now().UnixNano() - popr := rand.New(rand.NewSource(seed)) + popr := math_rand.New(math_rand.NewSource(seed)) p := NewPopulatedRoot(popr, true) - dAtA := proto.CompactTextString(p) + dAtA := github_com_gogo_protobuf_proto.CompactTextString(p) msg := &Root{} - if err := proto.UnmarshalText(dAtA, msg); err != nil { + if err := github_com_gogo_protobuf_proto.UnmarshalText(dAtA, msg); err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } if !p.Equal(msg) { @@ -3778,11 +3779,11 @@ func TestRootProtoCompactText(t *testing.T) { func TestHooksProtoText(t *testing.T) { seed := time.Now().UnixNano() - popr := rand.New(rand.NewSource(seed)) + popr := math_rand.New(math_rand.NewSource(seed)) p := NewPopulatedHooks(popr, true) - dAtA := proto.MarshalTextString(p) + dAtA := github_com_gogo_protobuf_proto.MarshalTextString(p) msg := &Hooks{} - if err := proto.UnmarshalText(dAtA, msg); err != nil { + if err := github_com_gogo_protobuf_proto.UnmarshalText(dAtA, msg); err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } if !p.Equal(msg) { @@ -3792,11 +3793,11 @@ func TestHooksProtoText(t *testing.T) { func TestHooksProtoCompactText(t *testing.T) { seed := time.Now().UnixNano() - popr := rand.New(rand.NewSource(seed)) + popr := math_rand.New(math_rand.NewSource(seed)) p := NewPopulatedHooks(popr, true) - dAtA := proto.CompactTextString(p) + dAtA := github_com_gogo_protobuf_proto.CompactTextString(p) msg := &Hooks{} - if err := proto.UnmarshalText(dAtA, msg); err != nil { + if err := github_com_gogo_protobuf_proto.UnmarshalText(dAtA, msg); err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } if !p.Equal(msg) { @@ -3806,11 +3807,11 @@ func TestHooksProtoCompactText(t *testing.T) { func TestHookProtoText(t *testing.T) { seed := time.Now().UnixNano() - popr := rand.New(rand.NewSource(seed)) + popr := math_rand.New(math_rand.NewSource(seed)) p := NewPopulatedHook(popr, true) - dAtA := proto.MarshalTextString(p) + dAtA := github_com_gogo_protobuf_proto.MarshalTextString(p) msg := &Hook{} - if err := proto.UnmarshalText(dAtA, msg); err != nil { + if err := github_com_gogo_protobuf_proto.UnmarshalText(dAtA, msg); err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } if !p.Equal(msg) { @@ -3820,11 +3821,11 @@ func TestHookProtoText(t *testing.T) { func TestHookProtoCompactText(t *testing.T) { seed := time.Now().UnixNano() - popr := rand.New(rand.NewSource(seed)) + popr := math_rand.New(math_rand.NewSource(seed)) p := NewPopulatedHook(popr, true) - dAtA := proto.CompactTextString(p) + dAtA := github_com_gogo_protobuf_proto.CompactTextString(p) msg := &Hook{} - if err := proto.UnmarshalText(dAtA, msg); err != nil { + if err := github_com_gogo_protobuf_proto.UnmarshalText(dAtA, msg); err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } if !p.Equal(msg) { @@ -3834,11 +3835,11 @@ func TestHookProtoCompactText(t *testing.T) { func TestLinuxProtoText(t *testing.T) { seed := time.Now().UnixNano() - popr := rand.New(rand.NewSource(seed)) + popr := math_rand.New(math_rand.NewSource(seed)) p := NewPopulatedLinux(popr, true) - dAtA := proto.MarshalTextString(p) + dAtA := github_com_gogo_protobuf_proto.MarshalTextString(p) msg := &Linux{} - if err := proto.UnmarshalText(dAtA, msg); err != nil { + if err := github_com_gogo_protobuf_proto.UnmarshalText(dAtA, msg); err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } if !p.Equal(msg) { @@ -3848,11 +3849,11 @@ func TestLinuxProtoText(t *testing.T) { func TestLinuxProtoCompactText(t *testing.T) { seed := time.Now().UnixNano() - popr := rand.New(rand.NewSource(seed)) + popr := math_rand.New(math_rand.NewSource(seed)) p := NewPopulatedLinux(popr, true) - dAtA := proto.CompactTextString(p) + dAtA := github_com_gogo_protobuf_proto.CompactTextString(p) msg := &Linux{} - if err := proto.UnmarshalText(dAtA, msg); err != nil { + if err := github_com_gogo_protobuf_proto.UnmarshalText(dAtA, msg); err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } if !p.Equal(msg) { @@ -3862,11 +3863,11 @@ func TestLinuxProtoCompactText(t *testing.T) { func TestWindowsProtoText(t *testing.T) { seed := time.Now().UnixNano() - popr := rand.New(rand.NewSource(seed)) + popr := math_rand.New(math_rand.NewSource(seed)) p := NewPopulatedWindows(popr, true) - dAtA := proto.MarshalTextString(p) + dAtA := github_com_gogo_protobuf_proto.MarshalTextString(p) msg := &Windows{} - if err := proto.UnmarshalText(dAtA, msg); err != nil { + if err := github_com_gogo_protobuf_proto.UnmarshalText(dAtA, msg); err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } if !p.Equal(msg) { @@ -3876,11 +3877,11 @@ func TestWindowsProtoText(t *testing.T) { func TestWindowsProtoCompactText(t *testing.T) { seed := time.Now().UnixNano() - popr := rand.New(rand.NewSource(seed)) + popr := math_rand.New(math_rand.NewSource(seed)) p := NewPopulatedWindows(popr, true) - dAtA := proto.CompactTextString(p) + dAtA := github_com_gogo_protobuf_proto.CompactTextString(p) msg := &Windows{} - if err := proto.UnmarshalText(dAtA, msg); err != nil { + if err := github_com_gogo_protobuf_proto.UnmarshalText(dAtA, msg); err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } if !p.Equal(msg) { @@ -3890,11 +3891,11 @@ func TestWindowsProtoCompactText(t *testing.T) { func TestSolarisProtoText(t *testing.T) { seed := time.Now().UnixNano() - popr := rand.New(rand.NewSource(seed)) + popr := math_rand.New(math_rand.NewSource(seed)) p := NewPopulatedSolaris(popr, true) - dAtA := proto.MarshalTextString(p) + dAtA := github_com_gogo_protobuf_proto.MarshalTextString(p) msg := &Solaris{} - if err := proto.UnmarshalText(dAtA, msg); err != nil { + if err := github_com_gogo_protobuf_proto.UnmarshalText(dAtA, msg); err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } if !p.Equal(msg) { @@ -3904,11 +3905,11 @@ func TestSolarisProtoText(t *testing.T) { func TestSolarisProtoCompactText(t *testing.T) { seed := time.Now().UnixNano() - popr := rand.New(rand.NewSource(seed)) + popr := math_rand.New(math_rand.NewSource(seed)) p := NewPopulatedSolaris(popr, true) - dAtA := proto.CompactTextString(p) + dAtA := github_com_gogo_protobuf_proto.CompactTextString(p) msg := &Solaris{} - if err := proto.UnmarshalText(dAtA, msg); err != nil { + if err := github_com_gogo_protobuf_proto.UnmarshalText(dAtA, msg); err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } if !p.Equal(msg) { @@ -3918,11 +3919,11 @@ func TestSolarisProtoCompactText(t *testing.T) { func TestLinuxIDMappingProtoText(t *testing.T) { seed := time.Now().UnixNano() - popr := rand.New(rand.NewSource(seed)) + popr := math_rand.New(math_rand.NewSource(seed)) p := NewPopulatedLinuxIDMapping(popr, true) - dAtA := proto.MarshalTextString(p) + dAtA := github_com_gogo_protobuf_proto.MarshalTextString(p) msg := &LinuxIDMapping{} - if err := proto.UnmarshalText(dAtA, msg); err != nil { + if err := github_com_gogo_protobuf_proto.UnmarshalText(dAtA, msg); err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } if !p.Equal(msg) { @@ -3932,11 +3933,11 @@ func TestLinuxIDMappingProtoText(t *testing.T) { func TestLinuxIDMappingProtoCompactText(t *testing.T) { seed := time.Now().UnixNano() - popr := rand.New(rand.NewSource(seed)) + popr := math_rand.New(math_rand.NewSource(seed)) p := NewPopulatedLinuxIDMapping(popr, true) - dAtA := proto.CompactTextString(p) + dAtA := github_com_gogo_protobuf_proto.CompactTextString(p) msg := &LinuxIDMapping{} - if err := proto.UnmarshalText(dAtA, msg); err != nil { + if err := github_com_gogo_protobuf_proto.UnmarshalText(dAtA, msg); err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } if !p.Equal(msg) { @@ -3946,11 +3947,11 @@ func TestLinuxIDMappingProtoCompactText(t *testing.T) { func TestLinuxNamespaceProtoText(t *testing.T) { seed := time.Now().UnixNano() - popr := rand.New(rand.NewSource(seed)) + popr := math_rand.New(math_rand.NewSource(seed)) p := NewPopulatedLinuxNamespace(popr, true) - dAtA := proto.MarshalTextString(p) + dAtA := github_com_gogo_protobuf_proto.MarshalTextString(p) msg := &LinuxNamespace{} - if err := proto.UnmarshalText(dAtA, msg); err != nil { + if err := github_com_gogo_protobuf_proto.UnmarshalText(dAtA, msg); err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } if !p.Equal(msg) { @@ -3960,11 +3961,11 @@ func TestLinuxNamespaceProtoText(t *testing.T) { func TestLinuxNamespaceProtoCompactText(t *testing.T) { seed := time.Now().UnixNano() - popr := rand.New(rand.NewSource(seed)) + popr := math_rand.New(math_rand.NewSource(seed)) p := NewPopulatedLinuxNamespace(popr, true) - dAtA := proto.CompactTextString(p) + dAtA := github_com_gogo_protobuf_proto.CompactTextString(p) msg := &LinuxNamespace{} - if err := proto.UnmarshalText(dAtA, msg); err != nil { + if err := github_com_gogo_protobuf_proto.UnmarshalText(dAtA, msg); err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } if !p.Equal(msg) { @@ -3974,11 +3975,11 @@ func TestLinuxNamespaceProtoCompactText(t *testing.T) { func TestLinuxDeviceProtoText(t *testing.T) { seed := time.Now().UnixNano() - popr := rand.New(rand.NewSource(seed)) + popr := math_rand.New(math_rand.NewSource(seed)) p := NewPopulatedLinuxDevice(popr, true) - dAtA := proto.MarshalTextString(p) + dAtA := github_com_gogo_protobuf_proto.MarshalTextString(p) msg := &LinuxDevice{} - if err := proto.UnmarshalText(dAtA, msg); err != nil { + if err := github_com_gogo_protobuf_proto.UnmarshalText(dAtA, msg); err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } if !p.Equal(msg) { @@ -3988,11 +3989,11 @@ func TestLinuxDeviceProtoText(t *testing.T) { func TestLinuxDeviceProtoCompactText(t *testing.T) { seed := time.Now().UnixNano() - popr := rand.New(rand.NewSource(seed)) + popr := math_rand.New(math_rand.NewSource(seed)) p := NewPopulatedLinuxDevice(popr, true) - dAtA := proto.CompactTextString(p) + dAtA := github_com_gogo_protobuf_proto.CompactTextString(p) msg := &LinuxDevice{} - if err := proto.UnmarshalText(dAtA, msg); err != nil { + if err := github_com_gogo_protobuf_proto.UnmarshalText(dAtA, msg); err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } if !p.Equal(msg) { @@ -4002,11 +4003,11 @@ func TestLinuxDeviceProtoCompactText(t *testing.T) { func TestLinuxResourcesProtoText(t *testing.T) { seed := time.Now().UnixNano() - popr := rand.New(rand.NewSource(seed)) + popr := math_rand.New(math_rand.NewSource(seed)) p := NewPopulatedLinuxResources(popr, true) - dAtA := proto.MarshalTextString(p) + dAtA := github_com_gogo_protobuf_proto.MarshalTextString(p) msg := &LinuxResources{} - if err := proto.UnmarshalText(dAtA, msg); err != nil { + if err := github_com_gogo_protobuf_proto.UnmarshalText(dAtA, msg); err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } if !p.Equal(msg) { @@ -4016,11 +4017,11 @@ func TestLinuxResourcesProtoText(t *testing.T) { func TestLinuxResourcesProtoCompactText(t *testing.T) { seed := time.Now().UnixNano() - popr := rand.New(rand.NewSource(seed)) + popr := math_rand.New(math_rand.NewSource(seed)) p := NewPopulatedLinuxResources(popr, true) - dAtA := proto.CompactTextString(p) + dAtA := github_com_gogo_protobuf_proto.CompactTextString(p) msg := &LinuxResources{} - if err := proto.UnmarshalText(dAtA, msg); err != nil { + if err := github_com_gogo_protobuf_proto.UnmarshalText(dAtA, msg); err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } if !p.Equal(msg) { @@ -4030,11 +4031,11 @@ func TestLinuxResourcesProtoCompactText(t *testing.T) { func TestLinuxMemoryProtoText(t *testing.T) { seed := time.Now().UnixNano() - popr := rand.New(rand.NewSource(seed)) + popr := math_rand.New(math_rand.NewSource(seed)) p := NewPopulatedLinuxMemory(popr, true) - dAtA := proto.MarshalTextString(p) + dAtA := github_com_gogo_protobuf_proto.MarshalTextString(p) msg := &LinuxMemory{} - if err := proto.UnmarshalText(dAtA, msg); err != nil { + if err := github_com_gogo_protobuf_proto.UnmarshalText(dAtA, msg); err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } if !p.Equal(msg) { @@ -4044,11 +4045,11 @@ func TestLinuxMemoryProtoText(t *testing.T) { func TestLinuxMemoryProtoCompactText(t *testing.T) { seed := time.Now().UnixNano() - popr := rand.New(rand.NewSource(seed)) + popr := math_rand.New(math_rand.NewSource(seed)) p := NewPopulatedLinuxMemory(popr, true) - dAtA := proto.CompactTextString(p) + dAtA := github_com_gogo_protobuf_proto.CompactTextString(p) msg := &LinuxMemory{} - if err := proto.UnmarshalText(dAtA, msg); err != nil { + if err := github_com_gogo_protobuf_proto.UnmarshalText(dAtA, msg); err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } if !p.Equal(msg) { @@ -4058,11 +4059,11 @@ func TestLinuxMemoryProtoCompactText(t *testing.T) { func TestLinuxCPUProtoText(t *testing.T) { seed := time.Now().UnixNano() - popr := rand.New(rand.NewSource(seed)) + popr := math_rand.New(math_rand.NewSource(seed)) p := NewPopulatedLinuxCPU(popr, true) - dAtA := proto.MarshalTextString(p) + dAtA := github_com_gogo_protobuf_proto.MarshalTextString(p) msg := &LinuxCPU{} - if err := proto.UnmarshalText(dAtA, msg); err != nil { + if err := github_com_gogo_protobuf_proto.UnmarshalText(dAtA, msg); err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } if !p.Equal(msg) { @@ -4072,11 +4073,11 @@ func TestLinuxCPUProtoText(t *testing.T) { func TestLinuxCPUProtoCompactText(t *testing.T) { seed := time.Now().UnixNano() - popr := rand.New(rand.NewSource(seed)) + popr := math_rand.New(math_rand.NewSource(seed)) p := NewPopulatedLinuxCPU(popr, true) - dAtA := proto.CompactTextString(p) + dAtA := github_com_gogo_protobuf_proto.CompactTextString(p) msg := &LinuxCPU{} - if err := proto.UnmarshalText(dAtA, msg); err != nil { + if err := github_com_gogo_protobuf_proto.UnmarshalText(dAtA, msg); err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } if !p.Equal(msg) { @@ -4086,11 +4087,11 @@ func TestLinuxCPUProtoCompactText(t *testing.T) { func TestLinuxWeightDeviceProtoText(t *testing.T) { seed := time.Now().UnixNano() - popr := rand.New(rand.NewSource(seed)) + popr := math_rand.New(math_rand.NewSource(seed)) p := NewPopulatedLinuxWeightDevice(popr, true) - dAtA := proto.MarshalTextString(p) + dAtA := github_com_gogo_protobuf_proto.MarshalTextString(p) msg := &LinuxWeightDevice{} - if err := proto.UnmarshalText(dAtA, msg); err != nil { + if err := github_com_gogo_protobuf_proto.UnmarshalText(dAtA, msg); err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } if !p.Equal(msg) { @@ -4100,11 +4101,11 @@ func TestLinuxWeightDeviceProtoText(t *testing.T) { func TestLinuxWeightDeviceProtoCompactText(t *testing.T) { seed := time.Now().UnixNano() - popr := rand.New(rand.NewSource(seed)) + popr := math_rand.New(math_rand.NewSource(seed)) p := NewPopulatedLinuxWeightDevice(popr, true) - dAtA := proto.CompactTextString(p) + dAtA := github_com_gogo_protobuf_proto.CompactTextString(p) msg := &LinuxWeightDevice{} - if err := proto.UnmarshalText(dAtA, msg); err != nil { + if err := github_com_gogo_protobuf_proto.UnmarshalText(dAtA, msg); err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } if !p.Equal(msg) { @@ -4114,11 +4115,11 @@ func TestLinuxWeightDeviceProtoCompactText(t *testing.T) { func TestLinuxThrottleDeviceProtoText(t *testing.T) { seed := time.Now().UnixNano() - popr := rand.New(rand.NewSource(seed)) + popr := math_rand.New(math_rand.NewSource(seed)) p := NewPopulatedLinuxThrottleDevice(popr, true) - dAtA := proto.MarshalTextString(p) + dAtA := github_com_gogo_protobuf_proto.MarshalTextString(p) msg := &LinuxThrottleDevice{} - if err := proto.UnmarshalText(dAtA, msg); err != nil { + if err := github_com_gogo_protobuf_proto.UnmarshalText(dAtA, msg); err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } if !p.Equal(msg) { @@ -4128,11 +4129,11 @@ func TestLinuxThrottleDeviceProtoText(t *testing.T) { func TestLinuxThrottleDeviceProtoCompactText(t *testing.T) { seed := time.Now().UnixNano() - popr := rand.New(rand.NewSource(seed)) + popr := math_rand.New(math_rand.NewSource(seed)) p := NewPopulatedLinuxThrottleDevice(popr, true) - dAtA := proto.CompactTextString(p) + dAtA := github_com_gogo_protobuf_proto.CompactTextString(p) msg := &LinuxThrottleDevice{} - if err := proto.UnmarshalText(dAtA, msg); err != nil { + if err := github_com_gogo_protobuf_proto.UnmarshalText(dAtA, msg); err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } if !p.Equal(msg) { @@ -4142,11 +4143,11 @@ func TestLinuxThrottleDeviceProtoCompactText(t *testing.T) { func TestLinuxBlockIOProtoText(t *testing.T) { seed := time.Now().UnixNano() - popr := rand.New(rand.NewSource(seed)) + popr := math_rand.New(math_rand.NewSource(seed)) p := NewPopulatedLinuxBlockIO(popr, true) - dAtA := proto.MarshalTextString(p) + dAtA := github_com_gogo_protobuf_proto.MarshalTextString(p) msg := &LinuxBlockIO{} - if err := proto.UnmarshalText(dAtA, msg); err != nil { + if err := github_com_gogo_protobuf_proto.UnmarshalText(dAtA, msg); err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } if !p.Equal(msg) { @@ -4156,11 +4157,11 @@ func TestLinuxBlockIOProtoText(t *testing.T) { func TestLinuxBlockIOProtoCompactText(t *testing.T) { seed := time.Now().UnixNano() - popr := rand.New(rand.NewSource(seed)) + popr := math_rand.New(math_rand.NewSource(seed)) p := NewPopulatedLinuxBlockIO(popr, true) - dAtA := proto.CompactTextString(p) + dAtA := github_com_gogo_protobuf_proto.CompactTextString(p) msg := &LinuxBlockIO{} - if err := proto.UnmarshalText(dAtA, msg); err != nil { + if err := github_com_gogo_protobuf_proto.UnmarshalText(dAtA, msg); err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } if !p.Equal(msg) { @@ -4170,11 +4171,11 @@ func TestLinuxBlockIOProtoCompactText(t *testing.T) { func TestLinuxPidsProtoText(t *testing.T) { seed := time.Now().UnixNano() - popr := rand.New(rand.NewSource(seed)) + popr := math_rand.New(math_rand.NewSource(seed)) p := NewPopulatedLinuxPids(popr, true) - dAtA := proto.MarshalTextString(p) + dAtA := github_com_gogo_protobuf_proto.MarshalTextString(p) msg := &LinuxPids{} - if err := proto.UnmarshalText(dAtA, msg); err != nil { + if err := github_com_gogo_protobuf_proto.UnmarshalText(dAtA, msg); err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } if !p.Equal(msg) { @@ -4184,11 +4185,11 @@ func TestLinuxPidsProtoText(t *testing.T) { func TestLinuxPidsProtoCompactText(t *testing.T) { seed := time.Now().UnixNano() - popr := rand.New(rand.NewSource(seed)) + popr := math_rand.New(math_rand.NewSource(seed)) p := NewPopulatedLinuxPids(popr, true) - dAtA := proto.CompactTextString(p) + dAtA := github_com_gogo_protobuf_proto.CompactTextString(p) msg := &LinuxPids{} - if err := proto.UnmarshalText(dAtA, msg); err != nil { + if err := github_com_gogo_protobuf_proto.UnmarshalText(dAtA, msg); err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } if !p.Equal(msg) { @@ -4198,11 +4199,11 @@ func TestLinuxPidsProtoCompactText(t *testing.T) { func TestLinuxDeviceCgroupProtoText(t *testing.T) { seed := time.Now().UnixNano() - popr := rand.New(rand.NewSource(seed)) + popr := math_rand.New(math_rand.NewSource(seed)) p := NewPopulatedLinuxDeviceCgroup(popr, true) - dAtA := proto.MarshalTextString(p) + dAtA := github_com_gogo_protobuf_proto.MarshalTextString(p) msg := &LinuxDeviceCgroup{} - if err := proto.UnmarshalText(dAtA, msg); err != nil { + if err := github_com_gogo_protobuf_proto.UnmarshalText(dAtA, msg); err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } if !p.Equal(msg) { @@ -4212,11 +4213,11 @@ func TestLinuxDeviceCgroupProtoText(t *testing.T) { func TestLinuxDeviceCgroupProtoCompactText(t *testing.T) { seed := time.Now().UnixNano() - popr := rand.New(rand.NewSource(seed)) + popr := math_rand.New(math_rand.NewSource(seed)) p := NewPopulatedLinuxDeviceCgroup(popr, true) - dAtA := proto.CompactTextString(p) + dAtA := github_com_gogo_protobuf_proto.CompactTextString(p) msg := &LinuxDeviceCgroup{} - if err := proto.UnmarshalText(dAtA, msg); err != nil { + if err := github_com_gogo_protobuf_proto.UnmarshalText(dAtA, msg); err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } if !p.Equal(msg) { @@ -4226,11 +4227,11 @@ func TestLinuxDeviceCgroupProtoCompactText(t *testing.T) { func TestLinuxNetworkProtoText(t *testing.T) { seed := time.Now().UnixNano() - popr := rand.New(rand.NewSource(seed)) + popr := math_rand.New(math_rand.NewSource(seed)) p := NewPopulatedLinuxNetwork(popr, true) - dAtA := proto.MarshalTextString(p) + dAtA := github_com_gogo_protobuf_proto.MarshalTextString(p) msg := &LinuxNetwork{} - if err := proto.UnmarshalText(dAtA, msg); err != nil { + if err := github_com_gogo_protobuf_proto.UnmarshalText(dAtA, msg); err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } if !p.Equal(msg) { @@ -4240,11 +4241,11 @@ func TestLinuxNetworkProtoText(t *testing.T) { func TestLinuxNetworkProtoCompactText(t *testing.T) { seed := time.Now().UnixNano() - popr := rand.New(rand.NewSource(seed)) + popr := math_rand.New(math_rand.NewSource(seed)) p := NewPopulatedLinuxNetwork(popr, true) - dAtA := proto.CompactTextString(p) + dAtA := github_com_gogo_protobuf_proto.CompactTextString(p) msg := &LinuxNetwork{} - if err := proto.UnmarshalText(dAtA, msg); err != nil { + if err := github_com_gogo_protobuf_proto.UnmarshalText(dAtA, msg); err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } if !p.Equal(msg) { @@ -4254,11 +4255,11 @@ func TestLinuxNetworkProtoCompactText(t *testing.T) { func TestLinuxHugepageLimitProtoText(t *testing.T) { seed := time.Now().UnixNano() - popr := rand.New(rand.NewSource(seed)) + popr := math_rand.New(math_rand.NewSource(seed)) p := NewPopulatedLinuxHugepageLimit(popr, true) - dAtA := proto.MarshalTextString(p) + dAtA := github_com_gogo_protobuf_proto.MarshalTextString(p) msg := &LinuxHugepageLimit{} - if err := proto.UnmarshalText(dAtA, msg); err != nil { + if err := github_com_gogo_protobuf_proto.UnmarshalText(dAtA, msg); err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } if !p.Equal(msg) { @@ -4268,11 +4269,11 @@ func TestLinuxHugepageLimitProtoText(t *testing.T) { func TestLinuxHugepageLimitProtoCompactText(t *testing.T) { seed := time.Now().UnixNano() - popr := rand.New(rand.NewSource(seed)) + popr := math_rand.New(math_rand.NewSource(seed)) p := NewPopulatedLinuxHugepageLimit(popr, true) - dAtA := proto.CompactTextString(p) + dAtA := github_com_gogo_protobuf_proto.CompactTextString(p) msg := &LinuxHugepageLimit{} - if err := proto.UnmarshalText(dAtA, msg); err != nil { + if err := github_com_gogo_protobuf_proto.UnmarshalText(dAtA, msg); err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } if !p.Equal(msg) { @@ -4282,11 +4283,11 @@ func TestLinuxHugepageLimitProtoCompactText(t *testing.T) { func TestLinuxInterfacePriorityProtoText(t *testing.T) { seed := time.Now().UnixNano() - popr := rand.New(rand.NewSource(seed)) + popr := math_rand.New(math_rand.NewSource(seed)) p := NewPopulatedLinuxInterfacePriority(popr, true) - dAtA := proto.MarshalTextString(p) + dAtA := github_com_gogo_protobuf_proto.MarshalTextString(p) msg := &LinuxInterfacePriority{} - if err := proto.UnmarshalText(dAtA, msg); err != nil { + if err := github_com_gogo_protobuf_proto.UnmarshalText(dAtA, msg); err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } if !p.Equal(msg) { @@ -4296,11 +4297,11 @@ func TestLinuxInterfacePriorityProtoText(t *testing.T) { func TestLinuxInterfacePriorityProtoCompactText(t *testing.T) { seed := time.Now().UnixNano() - popr := rand.New(rand.NewSource(seed)) + popr := math_rand.New(math_rand.NewSource(seed)) p := NewPopulatedLinuxInterfacePriority(popr, true) - dAtA := proto.CompactTextString(p) + dAtA := github_com_gogo_protobuf_proto.CompactTextString(p) msg := &LinuxInterfacePriority{} - if err := proto.UnmarshalText(dAtA, msg); err != nil { + if err := github_com_gogo_protobuf_proto.UnmarshalText(dAtA, msg); err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } if !p.Equal(msg) { @@ -4310,11 +4311,11 @@ func TestLinuxInterfacePriorityProtoCompactText(t *testing.T) { func TestLinuxSeccompProtoText(t *testing.T) { seed := time.Now().UnixNano() - popr := rand.New(rand.NewSource(seed)) + popr := math_rand.New(math_rand.NewSource(seed)) p := NewPopulatedLinuxSeccomp(popr, true) - dAtA := proto.MarshalTextString(p) + dAtA := github_com_gogo_protobuf_proto.MarshalTextString(p) msg := &LinuxSeccomp{} - if err := proto.UnmarshalText(dAtA, msg); err != nil { + if err := github_com_gogo_protobuf_proto.UnmarshalText(dAtA, msg); err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } if !p.Equal(msg) { @@ -4324,11 +4325,11 @@ func TestLinuxSeccompProtoText(t *testing.T) { func TestLinuxSeccompProtoCompactText(t *testing.T) { seed := time.Now().UnixNano() - popr := rand.New(rand.NewSource(seed)) + popr := math_rand.New(math_rand.NewSource(seed)) p := NewPopulatedLinuxSeccomp(popr, true) - dAtA := proto.CompactTextString(p) + dAtA := github_com_gogo_protobuf_proto.CompactTextString(p) msg := &LinuxSeccomp{} - if err := proto.UnmarshalText(dAtA, msg); err != nil { + if err := github_com_gogo_protobuf_proto.UnmarshalText(dAtA, msg); err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } if !p.Equal(msg) { @@ -4338,11 +4339,11 @@ func TestLinuxSeccompProtoCompactText(t *testing.T) { func TestLinuxSeccompArgProtoText(t *testing.T) { seed := time.Now().UnixNano() - popr := rand.New(rand.NewSource(seed)) + popr := math_rand.New(math_rand.NewSource(seed)) p := NewPopulatedLinuxSeccompArg(popr, true) - dAtA := proto.MarshalTextString(p) + dAtA := github_com_gogo_protobuf_proto.MarshalTextString(p) msg := &LinuxSeccompArg{} - if err := proto.UnmarshalText(dAtA, msg); err != nil { + if err := github_com_gogo_protobuf_proto.UnmarshalText(dAtA, msg); err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } if !p.Equal(msg) { @@ -4352,11 +4353,11 @@ func TestLinuxSeccompArgProtoText(t *testing.T) { func TestLinuxSeccompArgProtoCompactText(t *testing.T) { seed := time.Now().UnixNano() - popr := rand.New(rand.NewSource(seed)) + popr := math_rand.New(math_rand.NewSource(seed)) p := NewPopulatedLinuxSeccompArg(popr, true) - dAtA := proto.CompactTextString(p) + dAtA := github_com_gogo_protobuf_proto.CompactTextString(p) msg := &LinuxSeccompArg{} - if err := proto.UnmarshalText(dAtA, msg); err != nil { + if err := github_com_gogo_protobuf_proto.UnmarshalText(dAtA, msg); err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } if !p.Equal(msg) { @@ -4366,11 +4367,11 @@ func TestLinuxSeccompArgProtoCompactText(t *testing.T) { func TestLinuxSyscallProtoText(t *testing.T) { seed := time.Now().UnixNano() - popr := rand.New(rand.NewSource(seed)) + popr := math_rand.New(math_rand.NewSource(seed)) p := NewPopulatedLinuxSyscall(popr, true) - dAtA := proto.MarshalTextString(p) + dAtA := github_com_gogo_protobuf_proto.MarshalTextString(p) msg := &LinuxSyscall{} - if err := proto.UnmarshalText(dAtA, msg); err != nil { + if err := github_com_gogo_protobuf_proto.UnmarshalText(dAtA, msg); err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } if !p.Equal(msg) { @@ -4380,11 +4381,11 @@ func TestLinuxSyscallProtoText(t *testing.T) { func TestLinuxSyscallProtoCompactText(t *testing.T) { seed := time.Now().UnixNano() - popr := rand.New(rand.NewSource(seed)) + popr := math_rand.New(math_rand.NewSource(seed)) p := NewPopulatedLinuxSyscall(popr, true) - dAtA := proto.CompactTextString(p) + dAtA := github_com_gogo_protobuf_proto.CompactTextString(p) msg := &LinuxSyscall{} - if err := proto.UnmarshalText(dAtA, msg); err != nil { + if err := github_com_gogo_protobuf_proto.UnmarshalText(dAtA, msg); err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } if !p.Equal(msg) { @@ -4394,11 +4395,11 @@ func TestLinuxSyscallProtoCompactText(t *testing.T) { func TestLinuxIntelRdtProtoText(t *testing.T) { seed := time.Now().UnixNano() - popr := rand.New(rand.NewSource(seed)) + popr := math_rand.New(math_rand.NewSource(seed)) p := NewPopulatedLinuxIntelRdt(popr, true) - dAtA := proto.MarshalTextString(p) + dAtA := github_com_gogo_protobuf_proto.MarshalTextString(p) msg := &LinuxIntelRdt{} - if err := proto.UnmarshalText(dAtA, msg); err != nil { + if err := github_com_gogo_protobuf_proto.UnmarshalText(dAtA, msg); err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } if !p.Equal(msg) { @@ -4408,11 +4409,11 @@ func TestLinuxIntelRdtProtoText(t *testing.T) { func TestLinuxIntelRdtProtoCompactText(t *testing.T) { seed := time.Now().UnixNano() - popr := rand.New(rand.NewSource(seed)) + popr := math_rand.New(math_rand.NewSource(seed)) p := NewPopulatedLinuxIntelRdt(popr, true) - dAtA := proto.CompactTextString(p) + dAtA := github_com_gogo_protobuf_proto.CompactTextString(p) msg := &LinuxIntelRdt{} - if err := proto.UnmarshalText(dAtA, msg); err != nil { + if err := github_com_gogo_protobuf_proto.UnmarshalText(dAtA, msg); err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } if !p.Equal(msg) { @@ -4422,10 +4423,10 @@ func TestLinuxIntelRdtProtoCompactText(t *testing.T) { func TestSpecSize(t *testing.T) { seed := time.Now().UnixNano() - popr := rand.New(rand.NewSource(seed)) + popr := math_rand.New(math_rand.NewSource(seed)) p := NewPopulatedSpec(popr, true) - size2 := proto.Size(p) - dAtA, err := proto.Marshal(p) + size2 := github_com_gogo_protobuf_proto.Size(p) + dAtA, err := github_com_gogo_protobuf_proto.Marshal(p) if err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } @@ -4436,14 +4437,14 @@ func TestSpecSize(t *testing.T) { if size2 != size { t.Errorf("seed = %d, size %v != before marshal proto.Size %v", seed, size, size2) } - size3 := proto.Size(p) + size3 := github_com_gogo_protobuf_proto.Size(p) if size3 != size { t.Errorf("seed = %d, size %v != after marshal proto.Size %v", seed, size, size3) } } func BenchmarkSpecSize(b *testing.B) { - popr := rand.New(rand.NewSource(616)) + popr := math_rand.New(math_rand.NewSource(616)) total := 0 pops := make([]*Spec, 1000) for i := 0; i < 1000; i++ { @@ -4458,10 +4459,10 @@ func BenchmarkSpecSize(b *testing.B) { func TestProcessSize(t *testing.T) { seed := time.Now().UnixNano() - popr := rand.New(rand.NewSource(seed)) + popr := math_rand.New(math_rand.NewSource(seed)) p := NewPopulatedProcess(popr, true) - size2 := proto.Size(p) - dAtA, err := proto.Marshal(p) + size2 := github_com_gogo_protobuf_proto.Size(p) + dAtA, err := github_com_gogo_protobuf_proto.Marshal(p) if err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } @@ -4472,14 +4473,14 @@ func TestProcessSize(t *testing.T) { if size2 != size { t.Errorf("seed = %d, size %v != before marshal proto.Size %v", seed, size, size2) } - size3 := proto.Size(p) + size3 := github_com_gogo_protobuf_proto.Size(p) if size3 != size { t.Errorf("seed = %d, size %v != after marshal proto.Size %v", seed, size, size3) } } func BenchmarkProcessSize(b *testing.B) { - popr := rand.New(rand.NewSource(616)) + popr := math_rand.New(math_rand.NewSource(616)) total := 0 pops := make([]*Process, 1000) for i := 0; i < 1000; i++ { @@ -4494,10 +4495,10 @@ func BenchmarkProcessSize(b *testing.B) { func TestBoxSize(t *testing.T) { seed := time.Now().UnixNano() - popr := rand.New(rand.NewSource(seed)) + popr := math_rand.New(math_rand.NewSource(seed)) p := NewPopulatedBox(popr, true) - size2 := proto.Size(p) - dAtA, err := proto.Marshal(p) + size2 := github_com_gogo_protobuf_proto.Size(p) + dAtA, err := github_com_gogo_protobuf_proto.Marshal(p) if err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } @@ -4508,14 +4509,14 @@ func TestBoxSize(t *testing.T) { if size2 != size { t.Errorf("seed = %d, size %v != before marshal proto.Size %v", seed, size, size2) } - size3 := proto.Size(p) + size3 := github_com_gogo_protobuf_proto.Size(p) if size3 != size { t.Errorf("seed = %d, size %v != after marshal proto.Size %v", seed, size, size3) } } func BenchmarkBoxSize(b *testing.B) { - popr := rand.New(rand.NewSource(616)) + popr := math_rand.New(math_rand.NewSource(616)) total := 0 pops := make([]*Box, 1000) for i := 0; i < 1000; i++ { @@ -4530,10 +4531,10 @@ func BenchmarkBoxSize(b *testing.B) { func TestUserSize(t *testing.T) { seed := time.Now().UnixNano() - popr := rand.New(rand.NewSource(seed)) + popr := math_rand.New(math_rand.NewSource(seed)) p := NewPopulatedUser(popr, true) - size2 := proto.Size(p) - dAtA, err := proto.Marshal(p) + size2 := github_com_gogo_protobuf_proto.Size(p) + dAtA, err := github_com_gogo_protobuf_proto.Marshal(p) if err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } @@ -4544,14 +4545,14 @@ func TestUserSize(t *testing.T) { if size2 != size { t.Errorf("seed = %d, size %v != before marshal proto.Size %v", seed, size, size2) } - size3 := proto.Size(p) + size3 := github_com_gogo_protobuf_proto.Size(p) if size3 != size { t.Errorf("seed = %d, size %v != after marshal proto.Size %v", seed, size, size3) } } func BenchmarkUserSize(b *testing.B) { - popr := rand.New(rand.NewSource(616)) + popr := math_rand.New(math_rand.NewSource(616)) total := 0 pops := make([]*User, 1000) for i := 0; i < 1000; i++ { @@ -4566,10 +4567,10 @@ func BenchmarkUserSize(b *testing.B) { func TestLinuxCapabilitiesSize(t *testing.T) { seed := time.Now().UnixNano() - popr := rand.New(rand.NewSource(seed)) + popr := math_rand.New(math_rand.NewSource(seed)) p := NewPopulatedLinuxCapabilities(popr, true) - size2 := proto.Size(p) - dAtA, err := proto.Marshal(p) + size2 := github_com_gogo_protobuf_proto.Size(p) + dAtA, err := github_com_gogo_protobuf_proto.Marshal(p) if err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } @@ -4580,14 +4581,14 @@ func TestLinuxCapabilitiesSize(t *testing.T) { if size2 != size { t.Errorf("seed = %d, size %v != before marshal proto.Size %v", seed, size, size2) } - size3 := proto.Size(p) + size3 := github_com_gogo_protobuf_proto.Size(p) if size3 != size { t.Errorf("seed = %d, size %v != after marshal proto.Size %v", seed, size, size3) } } func BenchmarkLinuxCapabilitiesSize(b *testing.B) { - popr := rand.New(rand.NewSource(616)) + popr := math_rand.New(math_rand.NewSource(616)) total := 0 pops := make([]*LinuxCapabilities, 1000) for i := 0; i < 1000; i++ { @@ -4602,10 +4603,10 @@ func BenchmarkLinuxCapabilitiesSize(b *testing.B) { func TestPOSIXRlimitSize(t *testing.T) { seed := time.Now().UnixNano() - popr := rand.New(rand.NewSource(seed)) + popr := math_rand.New(math_rand.NewSource(seed)) p := NewPopulatedPOSIXRlimit(popr, true) - size2 := proto.Size(p) - dAtA, err := proto.Marshal(p) + size2 := github_com_gogo_protobuf_proto.Size(p) + dAtA, err := github_com_gogo_protobuf_proto.Marshal(p) if err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } @@ -4616,14 +4617,14 @@ func TestPOSIXRlimitSize(t *testing.T) { if size2 != size { t.Errorf("seed = %d, size %v != before marshal proto.Size %v", seed, size, size2) } - size3 := proto.Size(p) + size3 := github_com_gogo_protobuf_proto.Size(p) if size3 != size { t.Errorf("seed = %d, size %v != after marshal proto.Size %v", seed, size, size3) } } func BenchmarkPOSIXRlimitSize(b *testing.B) { - popr := rand.New(rand.NewSource(616)) + popr := math_rand.New(math_rand.NewSource(616)) total := 0 pops := make([]*POSIXRlimit, 1000) for i := 0; i < 1000; i++ { @@ -4638,10 +4639,10 @@ func BenchmarkPOSIXRlimitSize(b *testing.B) { func TestMountSize(t *testing.T) { seed := time.Now().UnixNano() - popr := rand.New(rand.NewSource(seed)) + popr := math_rand.New(math_rand.NewSource(seed)) p := NewPopulatedMount(popr, true) - size2 := proto.Size(p) - dAtA, err := proto.Marshal(p) + size2 := github_com_gogo_protobuf_proto.Size(p) + dAtA, err := github_com_gogo_protobuf_proto.Marshal(p) if err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } @@ -4652,14 +4653,14 @@ func TestMountSize(t *testing.T) { if size2 != size { t.Errorf("seed = %d, size %v != before marshal proto.Size %v", seed, size, size2) } - size3 := proto.Size(p) + size3 := github_com_gogo_protobuf_proto.Size(p) if size3 != size { t.Errorf("seed = %d, size %v != after marshal proto.Size %v", seed, size, size3) } } func BenchmarkMountSize(b *testing.B) { - popr := rand.New(rand.NewSource(616)) + popr := math_rand.New(math_rand.NewSource(616)) total := 0 pops := make([]*Mount, 1000) for i := 0; i < 1000; i++ { @@ -4674,10 +4675,10 @@ func BenchmarkMountSize(b *testing.B) { func TestRootSize(t *testing.T) { seed := time.Now().UnixNano() - popr := rand.New(rand.NewSource(seed)) + popr := math_rand.New(math_rand.NewSource(seed)) p := NewPopulatedRoot(popr, true) - size2 := proto.Size(p) - dAtA, err := proto.Marshal(p) + size2 := github_com_gogo_protobuf_proto.Size(p) + dAtA, err := github_com_gogo_protobuf_proto.Marshal(p) if err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } @@ -4688,14 +4689,14 @@ func TestRootSize(t *testing.T) { if size2 != size { t.Errorf("seed = %d, size %v != before marshal proto.Size %v", seed, size, size2) } - size3 := proto.Size(p) + size3 := github_com_gogo_protobuf_proto.Size(p) if size3 != size { t.Errorf("seed = %d, size %v != after marshal proto.Size %v", seed, size, size3) } } func BenchmarkRootSize(b *testing.B) { - popr := rand.New(rand.NewSource(616)) + popr := math_rand.New(math_rand.NewSource(616)) total := 0 pops := make([]*Root, 1000) for i := 0; i < 1000; i++ { @@ -4710,10 +4711,10 @@ func BenchmarkRootSize(b *testing.B) { func TestHooksSize(t *testing.T) { seed := time.Now().UnixNano() - popr := rand.New(rand.NewSource(seed)) + popr := math_rand.New(math_rand.NewSource(seed)) p := NewPopulatedHooks(popr, true) - size2 := proto.Size(p) - dAtA, err := proto.Marshal(p) + size2 := github_com_gogo_protobuf_proto.Size(p) + dAtA, err := github_com_gogo_protobuf_proto.Marshal(p) if err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } @@ -4724,14 +4725,14 @@ func TestHooksSize(t *testing.T) { if size2 != size { t.Errorf("seed = %d, size %v != before marshal proto.Size %v", seed, size, size2) } - size3 := proto.Size(p) + size3 := github_com_gogo_protobuf_proto.Size(p) if size3 != size { t.Errorf("seed = %d, size %v != after marshal proto.Size %v", seed, size, size3) } } func BenchmarkHooksSize(b *testing.B) { - popr := rand.New(rand.NewSource(616)) + popr := math_rand.New(math_rand.NewSource(616)) total := 0 pops := make([]*Hooks, 1000) for i := 0; i < 1000; i++ { @@ -4746,10 +4747,10 @@ func BenchmarkHooksSize(b *testing.B) { func TestHookSize(t *testing.T) { seed := time.Now().UnixNano() - popr := rand.New(rand.NewSource(seed)) + popr := math_rand.New(math_rand.NewSource(seed)) p := NewPopulatedHook(popr, true) - size2 := proto.Size(p) - dAtA, err := proto.Marshal(p) + size2 := github_com_gogo_protobuf_proto.Size(p) + dAtA, err := github_com_gogo_protobuf_proto.Marshal(p) if err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } @@ -4760,14 +4761,14 @@ func TestHookSize(t *testing.T) { if size2 != size { t.Errorf("seed = %d, size %v != before marshal proto.Size %v", seed, size, size2) } - size3 := proto.Size(p) + size3 := github_com_gogo_protobuf_proto.Size(p) if size3 != size { t.Errorf("seed = %d, size %v != after marshal proto.Size %v", seed, size, size3) } } func BenchmarkHookSize(b *testing.B) { - popr := rand.New(rand.NewSource(616)) + popr := math_rand.New(math_rand.NewSource(616)) total := 0 pops := make([]*Hook, 1000) for i := 0; i < 1000; i++ { @@ -4782,10 +4783,10 @@ func BenchmarkHookSize(b *testing.B) { func TestLinuxSize(t *testing.T) { seed := time.Now().UnixNano() - popr := rand.New(rand.NewSource(seed)) + popr := math_rand.New(math_rand.NewSource(seed)) p := NewPopulatedLinux(popr, true) - size2 := proto.Size(p) - dAtA, err := proto.Marshal(p) + size2 := github_com_gogo_protobuf_proto.Size(p) + dAtA, err := github_com_gogo_protobuf_proto.Marshal(p) if err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } @@ -4796,14 +4797,14 @@ func TestLinuxSize(t *testing.T) { if size2 != size { t.Errorf("seed = %d, size %v != before marshal proto.Size %v", seed, size, size2) } - size3 := proto.Size(p) + size3 := github_com_gogo_protobuf_proto.Size(p) if size3 != size { t.Errorf("seed = %d, size %v != after marshal proto.Size %v", seed, size, size3) } } func BenchmarkLinuxSize(b *testing.B) { - popr := rand.New(rand.NewSource(616)) + popr := math_rand.New(math_rand.NewSource(616)) total := 0 pops := make([]*Linux, 1000) for i := 0; i < 1000; i++ { @@ -4818,10 +4819,10 @@ func BenchmarkLinuxSize(b *testing.B) { func TestWindowsSize(t *testing.T) { seed := time.Now().UnixNano() - popr := rand.New(rand.NewSource(seed)) + popr := math_rand.New(math_rand.NewSource(seed)) p := NewPopulatedWindows(popr, true) - size2 := proto.Size(p) - dAtA, err := proto.Marshal(p) + size2 := github_com_gogo_protobuf_proto.Size(p) + dAtA, err := github_com_gogo_protobuf_proto.Marshal(p) if err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } @@ -4832,14 +4833,14 @@ func TestWindowsSize(t *testing.T) { if size2 != size { t.Errorf("seed = %d, size %v != before marshal proto.Size %v", seed, size, size2) } - size3 := proto.Size(p) + size3 := github_com_gogo_protobuf_proto.Size(p) if size3 != size { t.Errorf("seed = %d, size %v != after marshal proto.Size %v", seed, size, size3) } } func BenchmarkWindowsSize(b *testing.B) { - popr := rand.New(rand.NewSource(616)) + popr := math_rand.New(math_rand.NewSource(616)) total := 0 pops := make([]*Windows, 1000) for i := 0; i < 1000; i++ { @@ -4854,10 +4855,10 @@ func BenchmarkWindowsSize(b *testing.B) { func TestSolarisSize(t *testing.T) { seed := time.Now().UnixNano() - popr := rand.New(rand.NewSource(seed)) + popr := math_rand.New(math_rand.NewSource(seed)) p := NewPopulatedSolaris(popr, true) - size2 := proto.Size(p) - dAtA, err := proto.Marshal(p) + size2 := github_com_gogo_protobuf_proto.Size(p) + dAtA, err := github_com_gogo_protobuf_proto.Marshal(p) if err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } @@ -4868,14 +4869,14 @@ func TestSolarisSize(t *testing.T) { if size2 != size { t.Errorf("seed = %d, size %v != before marshal proto.Size %v", seed, size, size2) } - size3 := proto.Size(p) + size3 := github_com_gogo_protobuf_proto.Size(p) if size3 != size { t.Errorf("seed = %d, size %v != after marshal proto.Size %v", seed, size, size3) } } func BenchmarkSolarisSize(b *testing.B) { - popr := rand.New(rand.NewSource(616)) + popr := math_rand.New(math_rand.NewSource(616)) total := 0 pops := make([]*Solaris, 1000) for i := 0; i < 1000; i++ { @@ -4890,10 +4891,10 @@ func BenchmarkSolarisSize(b *testing.B) { func TestLinuxIDMappingSize(t *testing.T) { seed := time.Now().UnixNano() - popr := rand.New(rand.NewSource(seed)) + popr := math_rand.New(math_rand.NewSource(seed)) p := NewPopulatedLinuxIDMapping(popr, true) - size2 := proto.Size(p) - dAtA, err := proto.Marshal(p) + size2 := github_com_gogo_protobuf_proto.Size(p) + dAtA, err := github_com_gogo_protobuf_proto.Marshal(p) if err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } @@ -4904,14 +4905,14 @@ func TestLinuxIDMappingSize(t *testing.T) { if size2 != size { t.Errorf("seed = %d, size %v != before marshal proto.Size %v", seed, size, size2) } - size3 := proto.Size(p) + size3 := github_com_gogo_protobuf_proto.Size(p) if size3 != size { t.Errorf("seed = %d, size %v != after marshal proto.Size %v", seed, size, size3) } } func BenchmarkLinuxIDMappingSize(b *testing.B) { - popr := rand.New(rand.NewSource(616)) + popr := math_rand.New(math_rand.NewSource(616)) total := 0 pops := make([]*LinuxIDMapping, 1000) for i := 0; i < 1000; i++ { @@ -4926,10 +4927,10 @@ func BenchmarkLinuxIDMappingSize(b *testing.B) { func TestLinuxNamespaceSize(t *testing.T) { seed := time.Now().UnixNano() - popr := rand.New(rand.NewSource(seed)) + popr := math_rand.New(math_rand.NewSource(seed)) p := NewPopulatedLinuxNamespace(popr, true) - size2 := proto.Size(p) - dAtA, err := proto.Marshal(p) + size2 := github_com_gogo_protobuf_proto.Size(p) + dAtA, err := github_com_gogo_protobuf_proto.Marshal(p) if err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } @@ -4940,14 +4941,14 @@ func TestLinuxNamespaceSize(t *testing.T) { if size2 != size { t.Errorf("seed = %d, size %v != before marshal proto.Size %v", seed, size, size2) } - size3 := proto.Size(p) + size3 := github_com_gogo_protobuf_proto.Size(p) if size3 != size { t.Errorf("seed = %d, size %v != after marshal proto.Size %v", seed, size, size3) } } func BenchmarkLinuxNamespaceSize(b *testing.B) { - popr := rand.New(rand.NewSource(616)) + popr := math_rand.New(math_rand.NewSource(616)) total := 0 pops := make([]*LinuxNamespace, 1000) for i := 0; i < 1000; i++ { @@ -4962,10 +4963,10 @@ func BenchmarkLinuxNamespaceSize(b *testing.B) { func TestLinuxDeviceSize(t *testing.T) { seed := time.Now().UnixNano() - popr := rand.New(rand.NewSource(seed)) + popr := math_rand.New(math_rand.NewSource(seed)) p := NewPopulatedLinuxDevice(popr, true) - size2 := proto.Size(p) - dAtA, err := proto.Marshal(p) + size2 := github_com_gogo_protobuf_proto.Size(p) + dAtA, err := github_com_gogo_protobuf_proto.Marshal(p) if err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } @@ -4976,14 +4977,14 @@ func TestLinuxDeviceSize(t *testing.T) { if size2 != size { t.Errorf("seed = %d, size %v != before marshal proto.Size %v", seed, size, size2) } - size3 := proto.Size(p) + size3 := github_com_gogo_protobuf_proto.Size(p) if size3 != size { t.Errorf("seed = %d, size %v != after marshal proto.Size %v", seed, size, size3) } } func BenchmarkLinuxDeviceSize(b *testing.B) { - popr := rand.New(rand.NewSource(616)) + popr := math_rand.New(math_rand.NewSource(616)) total := 0 pops := make([]*LinuxDevice, 1000) for i := 0; i < 1000; i++ { @@ -4998,10 +4999,10 @@ func BenchmarkLinuxDeviceSize(b *testing.B) { func TestLinuxResourcesSize(t *testing.T) { seed := time.Now().UnixNano() - popr := rand.New(rand.NewSource(seed)) + popr := math_rand.New(math_rand.NewSource(seed)) p := NewPopulatedLinuxResources(popr, true) - size2 := proto.Size(p) - dAtA, err := proto.Marshal(p) + size2 := github_com_gogo_protobuf_proto.Size(p) + dAtA, err := github_com_gogo_protobuf_proto.Marshal(p) if err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } @@ -5012,14 +5013,14 @@ func TestLinuxResourcesSize(t *testing.T) { if size2 != size { t.Errorf("seed = %d, size %v != before marshal proto.Size %v", seed, size, size2) } - size3 := proto.Size(p) + size3 := github_com_gogo_protobuf_proto.Size(p) if size3 != size { t.Errorf("seed = %d, size %v != after marshal proto.Size %v", seed, size, size3) } } func BenchmarkLinuxResourcesSize(b *testing.B) { - popr := rand.New(rand.NewSource(616)) + popr := math_rand.New(math_rand.NewSource(616)) total := 0 pops := make([]*LinuxResources, 1000) for i := 0; i < 1000; i++ { @@ -5034,10 +5035,10 @@ func BenchmarkLinuxResourcesSize(b *testing.B) { func TestLinuxMemorySize(t *testing.T) { seed := time.Now().UnixNano() - popr := rand.New(rand.NewSource(seed)) + popr := math_rand.New(math_rand.NewSource(seed)) p := NewPopulatedLinuxMemory(popr, true) - size2 := proto.Size(p) - dAtA, err := proto.Marshal(p) + size2 := github_com_gogo_protobuf_proto.Size(p) + dAtA, err := github_com_gogo_protobuf_proto.Marshal(p) if err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } @@ -5048,14 +5049,14 @@ func TestLinuxMemorySize(t *testing.T) { if size2 != size { t.Errorf("seed = %d, size %v != before marshal proto.Size %v", seed, size, size2) } - size3 := proto.Size(p) + size3 := github_com_gogo_protobuf_proto.Size(p) if size3 != size { t.Errorf("seed = %d, size %v != after marshal proto.Size %v", seed, size, size3) } } func BenchmarkLinuxMemorySize(b *testing.B) { - popr := rand.New(rand.NewSource(616)) + popr := math_rand.New(math_rand.NewSource(616)) total := 0 pops := make([]*LinuxMemory, 1000) for i := 0; i < 1000; i++ { @@ -5070,10 +5071,10 @@ func BenchmarkLinuxMemorySize(b *testing.B) { func TestLinuxCPUSize(t *testing.T) { seed := time.Now().UnixNano() - popr := rand.New(rand.NewSource(seed)) + popr := math_rand.New(math_rand.NewSource(seed)) p := NewPopulatedLinuxCPU(popr, true) - size2 := proto.Size(p) - dAtA, err := proto.Marshal(p) + size2 := github_com_gogo_protobuf_proto.Size(p) + dAtA, err := github_com_gogo_protobuf_proto.Marshal(p) if err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } @@ -5084,14 +5085,14 @@ func TestLinuxCPUSize(t *testing.T) { if size2 != size { t.Errorf("seed = %d, size %v != before marshal proto.Size %v", seed, size, size2) } - size3 := proto.Size(p) + size3 := github_com_gogo_protobuf_proto.Size(p) if size3 != size { t.Errorf("seed = %d, size %v != after marshal proto.Size %v", seed, size, size3) } } func BenchmarkLinuxCPUSize(b *testing.B) { - popr := rand.New(rand.NewSource(616)) + popr := math_rand.New(math_rand.NewSource(616)) total := 0 pops := make([]*LinuxCPU, 1000) for i := 0; i < 1000; i++ { @@ -5106,10 +5107,10 @@ func BenchmarkLinuxCPUSize(b *testing.B) { func TestLinuxWeightDeviceSize(t *testing.T) { seed := time.Now().UnixNano() - popr := rand.New(rand.NewSource(seed)) + popr := math_rand.New(math_rand.NewSource(seed)) p := NewPopulatedLinuxWeightDevice(popr, true) - size2 := proto.Size(p) - dAtA, err := proto.Marshal(p) + size2 := github_com_gogo_protobuf_proto.Size(p) + dAtA, err := github_com_gogo_protobuf_proto.Marshal(p) if err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } @@ -5120,14 +5121,14 @@ func TestLinuxWeightDeviceSize(t *testing.T) { if size2 != size { t.Errorf("seed = %d, size %v != before marshal proto.Size %v", seed, size, size2) } - size3 := proto.Size(p) + size3 := github_com_gogo_protobuf_proto.Size(p) if size3 != size { t.Errorf("seed = %d, size %v != after marshal proto.Size %v", seed, size, size3) } } func BenchmarkLinuxWeightDeviceSize(b *testing.B) { - popr := rand.New(rand.NewSource(616)) + popr := math_rand.New(math_rand.NewSource(616)) total := 0 pops := make([]*LinuxWeightDevice, 1000) for i := 0; i < 1000; i++ { @@ -5142,10 +5143,10 @@ func BenchmarkLinuxWeightDeviceSize(b *testing.B) { func TestLinuxThrottleDeviceSize(t *testing.T) { seed := time.Now().UnixNano() - popr := rand.New(rand.NewSource(seed)) + popr := math_rand.New(math_rand.NewSource(seed)) p := NewPopulatedLinuxThrottleDevice(popr, true) - size2 := proto.Size(p) - dAtA, err := proto.Marshal(p) + size2 := github_com_gogo_protobuf_proto.Size(p) + dAtA, err := github_com_gogo_protobuf_proto.Marshal(p) if err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } @@ -5156,14 +5157,14 @@ func TestLinuxThrottleDeviceSize(t *testing.T) { if size2 != size { t.Errorf("seed = %d, size %v != before marshal proto.Size %v", seed, size, size2) } - size3 := proto.Size(p) + size3 := github_com_gogo_protobuf_proto.Size(p) if size3 != size { t.Errorf("seed = %d, size %v != after marshal proto.Size %v", seed, size, size3) } } func BenchmarkLinuxThrottleDeviceSize(b *testing.B) { - popr := rand.New(rand.NewSource(616)) + popr := math_rand.New(math_rand.NewSource(616)) total := 0 pops := make([]*LinuxThrottleDevice, 1000) for i := 0; i < 1000; i++ { @@ -5178,10 +5179,10 @@ func BenchmarkLinuxThrottleDeviceSize(b *testing.B) { func TestLinuxBlockIOSize(t *testing.T) { seed := time.Now().UnixNano() - popr := rand.New(rand.NewSource(seed)) + popr := math_rand.New(math_rand.NewSource(seed)) p := NewPopulatedLinuxBlockIO(popr, true) - size2 := proto.Size(p) - dAtA, err := proto.Marshal(p) + size2 := github_com_gogo_protobuf_proto.Size(p) + dAtA, err := github_com_gogo_protobuf_proto.Marshal(p) if err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } @@ -5192,14 +5193,14 @@ func TestLinuxBlockIOSize(t *testing.T) { if size2 != size { t.Errorf("seed = %d, size %v != before marshal proto.Size %v", seed, size, size2) } - size3 := proto.Size(p) + size3 := github_com_gogo_protobuf_proto.Size(p) if size3 != size { t.Errorf("seed = %d, size %v != after marshal proto.Size %v", seed, size, size3) } } func BenchmarkLinuxBlockIOSize(b *testing.B) { - popr := rand.New(rand.NewSource(616)) + popr := math_rand.New(math_rand.NewSource(616)) total := 0 pops := make([]*LinuxBlockIO, 1000) for i := 0; i < 1000; i++ { @@ -5214,10 +5215,10 @@ func BenchmarkLinuxBlockIOSize(b *testing.B) { func TestLinuxPidsSize(t *testing.T) { seed := time.Now().UnixNano() - popr := rand.New(rand.NewSource(seed)) + popr := math_rand.New(math_rand.NewSource(seed)) p := NewPopulatedLinuxPids(popr, true) - size2 := proto.Size(p) - dAtA, err := proto.Marshal(p) + size2 := github_com_gogo_protobuf_proto.Size(p) + dAtA, err := github_com_gogo_protobuf_proto.Marshal(p) if err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } @@ -5228,14 +5229,14 @@ func TestLinuxPidsSize(t *testing.T) { if size2 != size { t.Errorf("seed = %d, size %v != before marshal proto.Size %v", seed, size, size2) } - size3 := proto.Size(p) + size3 := github_com_gogo_protobuf_proto.Size(p) if size3 != size { t.Errorf("seed = %d, size %v != after marshal proto.Size %v", seed, size, size3) } } func BenchmarkLinuxPidsSize(b *testing.B) { - popr := rand.New(rand.NewSource(616)) + popr := math_rand.New(math_rand.NewSource(616)) total := 0 pops := make([]*LinuxPids, 1000) for i := 0; i < 1000; i++ { @@ -5250,10 +5251,10 @@ func BenchmarkLinuxPidsSize(b *testing.B) { func TestLinuxDeviceCgroupSize(t *testing.T) { seed := time.Now().UnixNano() - popr := rand.New(rand.NewSource(seed)) + popr := math_rand.New(math_rand.NewSource(seed)) p := NewPopulatedLinuxDeviceCgroup(popr, true) - size2 := proto.Size(p) - dAtA, err := proto.Marshal(p) + size2 := github_com_gogo_protobuf_proto.Size(p) + dAtA, err := github_com_gogo_protobuf_proto.Marshal(p) if err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } @@ -5264,14 +5265,14 @@ func TestLinuxDeviceCgroupSize(t *testing.T) { if size2 != size { t.Errorf("seed = %d, size %v != before marshal proto.Size %v", seed, size, size2) } - size3 := proto.Size(p) + size3 := github_com_gogo_protobuf_proto.Size(p) if size3 != size { t.Errorf("seed = %d, size %v != after marshal proto.Size %v", seed, size, size3) } } func BenchmarkLinuxDeviceCgroupSize(b *testing.B) { - popr := rand.New(rand.NewSource(616)) + popr := math_rand.New(math_rand.NewSource(616)) total := 0 pops := make([]*LinuxDeviceCgroup, 1000) for i := 0; i < 1000; i++ { @@ -5286,10 +5287,10 @@ func BenchmarkLinuxDeviceCgroupSize(b *testing.B) { func TestLinuxNetworkSize(t *testing.T) { seed := time.Now().UnixNano() - popr := rand.New(rand.NewSource(seed)) + popr := math_rand.New(math_rand.NewSource(seed)) p := NewPopulatedLinuxNetwork(popr, true) - size2 := proto.Size(p) - dAtA, err := proto.Marshal(p) + size2 := github_com_gogo_protobuf_proto.Size(p) + dAtA, err := github_com_gogo_protobuf_proto.Marshal(p) if err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } @@ -5300,14 +5301,14 @@ func TestLinuxNetworkSize(t *testing.T) { if size2 != size { t.Errorf("seed = %d, size %v != before marshal proto.Size %v", seed, size, size2) } - size3 := proto.Size(p) + size3 := github_com_gogo_protobuf_proto.Size(p) if size3 != size { t.Errorf("seed = %d, size %v != after marshal proto.Size %v", seed, size, size3) } } func BenchmarkLinuxNetworkSize(b *testing.B) { - popr := rand.New(rand.NewSource(616)) + popr := math_rand.New(math_rand.NewSource(616)) total := 0 pops := make([]*LinuxNetwork, 1000) for i := 0; i < 1000; i++ { @@ -5322,10 +5323,10 @@ func BenchmarkLinuxNetworkSize(b *testing.B) { func TestLinuxHugepageLimitSize(t *testing.T) { seed := time.Now().UnixNano() - popr := rand.New(rand.NewSource(seed)) + popr := math_rand.New(math_rand.NewSource(seed)) p := NewPopulatedLinuxHugepageLimit(popr, true) - size2 := proto.Size(p) - dAtA, err := proto.Marshal(p) + size2 := github_com_gogo_protobuf_proto.Size(p) + dAtA, err := github_com_gogo_protobuf_proto.Marshal(p) if err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } @@ -5336,14 +5337,14 @@ func TestLinuxHugepageLimitSize(t *testing.T) { if size2 != size { t.Errorf("seed = %d, size %v != before marshal proto.Size %v", seed, size, size2) } - size3 := proto.Size(p) + size3 := github_com_gogo_protobuf_proto.Size(p) if size3 != size { t.Errorf("seed = %d, size %v != after marshal proto.Size %v", seed, size, size3) } } func BenchmarkLinuxHugepageLimitSize(b *testing.B) { - popr := rand.New(rand.NewSource(616)) + popr := math_rand.New(math_rand.NewSource(616)) total := 0 pops := make([]*LinuxHugepageLimit, 1000) for i := 0; i < 1000; i++ { @@ -5358,10 +5359,10 @@ func BenchmarkLinuxHugepageLimitSize(b *testing.B) { func TestLinuxInterfacePrioritySize(t *testing.T) { seed := time.Now().UnixNano() - popr := rand.New(rand.NewSource(seed)) + popr := math_rand.New(math_rand.NewSource(seed)) p := NewPopulatedLinuxInterfacePriority(popr, true) - size2 := proto.Size(p) - dAtA, err := proto.Marshal(p) + size2 := github_com_gogo_protobuf_proto.Size(p) + dAtA, err := github_com_gogo_protobuf_proto.Marshal(p) if err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } @@ -5372,14 +5373,14 @@ func TestLinuxInterfacePrioritySize(t *testing.T) { if size2 != size { t.Errorf("seed = %d, size %v != before marshal proto.Size %v", seed, size, size2) } - size3 := proto.Size(p) + size3 := github_com_gogo_protobuf_proto.Size(p) if size3 != size { t.Errorf("seed = %d, size %v != after marshal proto.Size %v", seed, size, size3) } } func BenchmarkLinuxInterfacePrioritySize(b *testing.B) { - popr := rand.New(rand.NewSource(616)) + popr := math_rand.New(math_rand.NewSource(616)) total := 0 pops := make([]*LinuxInterfacePriority, 1000) for i := 0; i < 1000; i++ { @@ -5394,10 +5395,10 @@ func BenchmarkLinuxInterfacePrioritySize(b *testing.B) { func TestLinuxSeccompSize(t *testing.T) { seed := time.Now().UnixNano() - popr := rand.New(rand.NewSource(seed)) + popr := math_rand.New(math_rand.NewSource(seed)) p := NewPopulatedLinuxSeccomp(popr, true) - size2 := proto.Size(p) - dAtA, err := proto.Marshal(p) + size2 := github_com_gogo_protobuf_proto.Size(p) + dAtA, err := github_com_gogo_protobuf_proto.Marshal(p) if err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } @@ -5408,14 +5409,14 @@ func TestLinuxSeccompSize(t *testing.T) { if size2 != size { t.Errorf("seed = %d, size %v != before marshal proto.Size %v", seed, size, size2) } - size3 := proto.Size(p) + size3 := github_com_gogo_protobuf_proto.Size(p) if size3 != size { t.Errorf("seed = %d, size %v != after marshal proto.Size %v", seed, size, size3) } } func BenchmarkLinuxSeccompSize(b *testing.B) { - popr := rand.New(rand.NewSource(616)) + popr := math_rand.New(math_rand.NewSource(616)) total := 0 pops := make([]*LinuxSeccomp, 1000) for i := 0; i < 1000; i++ { @@ -5430,10 +5431,10 @@ func BenchmarkLinuxSeccompSize(b *testing.B) { func TestLinuxSeccompArgSize(t *testing.T) { seed := time.Now().UnixNano() - popr := rand.New(rand.NewSource(seed)) + popr := math_rand.New(math_rand.NewSource(seed)) p := NewPopulatedLinuxSeccompArg(popr, true) - size2 := proto.Size(p) - dAtA, err := proto.Marshal(p) + size2 := github_com_gogo_protobuf_proto.Size(p) + dAtA, err := github_com_gogo_protobuf_proto.Marshal(p) if err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } @@ -5444,14 +5445,14 @@ func TestLinuxSeccompArgSize(t *testing.T) { if size2 != size { t.Errorf("seed = %d, size %v != before marshal proto.Size %v", seed, size, size2) } - size3 := proto.Size(p) + size3 := github_com_gogo_protobuf_proto.Size(p) if size3 != size { t.Errorf("seed = %d, size %v != after marshal proto.Size %v", seed, size, size3) } } func BenchmarkLinuxSeccompArgSize(b *testing.B) { - popr := rand.New(rand.NewSource(616)) + popr := math_rand.New(math_rand.NewSource(616)) total := 0 pops := make([]*LinuxSeccompArg, 1000) for i := 0; i < 1000; i++ { @@ -5466,10 +5467,10 @@ func BenchmarkLinuxSeccompArgSize(b *testing.B) { func TestLinuxSyscallSize(t *testing.T) { seed := time.Now().UnixNano() - popr := rand.New(rand.NewSource(seed)) + popr := math_rand.New(math_rand.NewSource(seed)) p := NewPopulatedLinuxSyscall(popr, true) - size2 := proto.Size(p) - dAtA, err := proto.Marshal(p) + size2 := github_com_gogo_protobuf_proto.Size(p) + dAtA, err := github_com_gogo_protobuf_proto.Marshal(p) if err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } @@ -5480,14 +5481,14 @@ func TestLinuxSyscallSize(t *testing.T) { if size2 != size { t.Errorf("seed = %d, size %v != before marshal proto.Size %v", seed, size, size2) } - size3 := proto.Size(p) + size3 := github_com_gogo_protobuf_proto.Size(p) if size3 != size { t.Errorf("seed = %d, size %v != after marshal proto.Size %v", seed, size, size3) } } func BenchmarkLinuxSyscallSize(b *testing.B) { - popr := rand.New(rand.NewSource(616)) + popr := math_rand.New(math_rand.NewSource(616)) total := 0 pops := make([]*LinuxSyscall, 1000) for i := 0; i < 1000; i++ { @@ -5502,10 +5503,10 @@ func BenchmarkLinuxSyscallSize(b *testing.B) { func TestLinuxIntelRdtSize(t *testing.T) { seed := time.Now().UnixNano() - popr := rand.New(rand.NewSource(seed)) + popr := math_rand.New(math_rand.NewSource(seed)) p := NewPopulatedLinuxIntelRdt(popr, true) - size2 := proto.Size(p) - dAtA, err := proto.Marshal(p) + size2 := github_com_gogo_protobuf_proto.Size(p) + dAtA, err := github_com_gogo_protobuf_proto.Marshal(p) if err != nil { t.Fatalf("seed = %d, err = %v", seed, err) } @@ -5516,14 +5517,14 @@ func TestLinuxIntelRdtSize(t *testing.T) { if size2 != size { t.Errorf("seed = %d, size %v != before marshal proto.Size %v", seed, size, size2) } - size3 := proto.Size(p) + size3 := github_com_gogo_protobuf_proto.Size(p) if size3 != size { t.Errorf("seed = %d, size %v != after marshal proto.Size %v", seed, size, size3) } } func BenchmarkLinuxIntelRdtSize(b *testing.B) { - popr := rand.New(rand.NewSource(616)) + popr := math_rand.New(math_rand.NewSource(616)) total := 0 pops := make([]*LinuxIntelRdt, 1000) for i := 0; i < 1000; i++ {