|
@@ -0,0 +1,4871 @@
|
|
|
+// Code generated by protoc-gen-gogo. DO NOT EDIT.
|
|
|
+// source: control.proto
|
|
|
+
|
|
|
+/*
|
|
|
+ Package moby_buildkit_v1 is a generated protocol buffer package.
|
|
|
+
|
|
|
+ It is generated from these files:
|
|
|
+ control.proto
|
|
|
+
|
|
|
+ It has these top-level messages:
|
|
|
+ PruneRequest
|
|
|
+ DiskUsageRequest
|
|
|
+ DiskUsageResponse
|
|
|
+ UsageRecord
|
|
|
+ SolveRequest
|
|
|
+ CacheOptions
|
|
|
+ SolveResponse
|
|
|
+ StatusRequest
|
|
|
+ StatusResponse
|
|
|
+ Vertex
|
|
|
+ VertexStatus
|
|
|
+ VertexLog
|
|
|
+ BytesMessage
|
|
|
+ ListWorkersRequest
|
|
|
+ ListWorkersResponse
|
|
|
+ WorkerRecord
|
|
|
+*/
|
|
|
+package moby_buildkit_v1
|
|
|
+
|
|
|
+import proto "github.com/gogo/protobuf/proto"
|
|
|
+import fmt "fmt"
|
|
|
+import math "math"
|
|
|
+import _ "github.com/gogo/protobuf/gogoproto"
|
|
|
+import _ "github.com/golang/protobuf/ptypes/timestamp"
|
|
|
+import pb "github.com/moby/buildkit/solver/pb"
|
|
|
+
|
|
|
+import time "time"
|
|
|
+import github_com_opencontainers_go_digest "github.com/opencontainers/go-digest"
|
|
|
+
|
|
|
+import context "golang.org/x/net/context"
|
|
|
+import grpc "google.golang.org/grpc"
|
|
|
+
|
|
|
+import types "github.com/gogo/protobuf/types"
|
|
|
+
|
|
|
+import io "io"
|
|
|
+
|
|
|
+// Reference imports to suppress errors if they are not otherwise used.
|
|
|
+var _ = proto.Marshal
|
|
|
+var _ = fmt.Errorf
|
|
|
+var _ = math.Inf
|
|
|
+var _ = time.Kitchen
|
|
|
+
|
|
|
+// This is a compile-time assertion to ensure that this generated file
|
|
|
+// is compatible with the proto package it is being compiled against.
|
|
|
+// A compilation error at this line likely means your copy of the
|
|
|
+// proto package needs to be updated.
|
|
|
+const _ = proto.GoGoProtoPackageIsVersion2 // please upgrade the proto package
|
|
|
+
|
|
|
+type PruneRequest struct {
|
|
|
+}
|
|
|
+
|
|
|
+func (m *PruneRequest) Reset() { *m = PruneRequest{} }
|
|
|
+func (m *PruneRequest) String() string { return proto.CompactTextString(m) }
|
|
|
+func (*PruneRequest) ProtoMessage() {}
|
|
|
+func (*PruneRequest) Descriptor() ([]byte, []int) { return fileDescriptorControl, []int{0} }
|
|
|
+
|
|
|
+type DiskUsageRequest struct {
|
|
|
+ Filter string `protobuf:"bytes,1,opt,name=filter,proto3" json:"filter,omitempty"`
|
|
|
+}
|
|
|
+
|
|
|
+func (m *DiskUsageRequest) Reset() { *m = DiskUsageRequest{} }
|
|
|
+func (m *DiskUsageRequest) String() string { return proto.CompactTextString(m) }
|
|
|
+func (*DiskUsageRequest) ProtoMessage() {}
|
|
|
+func (*DiskUsageRequest) Descriptor() ([]byte, []int) { return fileDescriptorControl, []int{1} }
|
|
|
+
|
|
|
+func (m *DiskUsageRequest) GetFilter() string {
|
|
|
+ if m != nil {
|
|
|
+ return m.Filter
|
|
|
+ }
|
|
|
+ return ""
|
|
|
+}
|
|
|
+
|
|
|
+type DiskUsageResponse struct {
|
|
|
+ Record []*UsageRecord `protobuf:"bytes,1,rep,name=record" json:"record,omitempty"`
|
|
|
+}
|
|
|
+
|
|
|
+func (m *DiskUsageResponse) Reset() { *m = DiskUsageResponse{} }
|
|
|
+func (m *DiskUsageResponse) String() string { return proto.CompactTextString(m) }
|
|
|
+func (*DiskUsageResponse) ProtoMessage() {}
|
|
|
+func (*DiskUsageResponse) Descriptor() ([]byte, []int) { return fileDescriptorControl, []int{2} }
|
|
|
+
|
|
|
+func (m *DiskUsageResponse) GetRecord() []*UsageRecord {
|
|
|
+ if m != nil {
|
|
|
+ return m.Record
|
|
|
+ }
|
|
|
+ return nil
|
|
|
+}
|
|
|
+
|
|
|
+type UsageRecord struct {
|
|
|
+ ID string `protobuf:"bytes,1,opt,name=ID,proto3" json:"ID,omitempty"`
|
|
|
+ Mutable bool `protobuf:"varint,2,opt,name=Mutable,proto3" json:"Mutable,omitempty"`
|
|
|
+ InUse bool `protobuf:"varint,3,opt,name=InUse,proto3" json:"InUse,omitempty"`
|
|
|
+ Size_ int64 `protobuf:"varint,4,opt,name=Size,proto3" json:"Size,omitempty"`
|
|
|
+ Parent string `protobuf:"bytes,5,opt,name=Parent,proto3" json:"Parent,omitempty"`
|
|
|
+ CreatedAt time.Time `protobuf:"bytes,6,opt,name=CreatedAt,stdtime" json:"CreatedAt"`
|
|
|
+ LastUsedAt *time.Time `protobuf:"bytes,7,opt,name=LastUsedAt,stdtime" json:"LastUsedAt,omitempty"`
|
|
|
+ UsageCount int64 `protobuf:"varint,8,opt,name=UsageCount,proto3" json:"UsageCount,omitempty"`
|
|
|
+ Description string `protobuf:"bytes,9,opt,name=Description,proto3" json:"Description,omitempty"`
|
|
|
+}
|
|
|
+
|
|
|
+func (m *UsageRecord) Reset() { *m = UsageRecord{} }
|
|
|
+func (m *UsageRecord) String() string { return proto.CompactTextString(m) }
|
|
|
+func (*UsageRecord) ProtoMessage() {}
|
|
|
+func (*UsageRecord) Descriptor() ([]byte, []int) { return fileDescriptorControl, []int{3} }
|
|
|
+
|
|
|
+func (m *UsageRecord) GetID() string {
|
|
|
+ if m != nil {
|
|
|
+ return m.ID
|
|
|
+ }
|
|
|
+ return ""
|
|
|
+}
|
|
|
+
|
|
|
+func (m *UsageRecord) GetMutable() bool {
|
|
|
+ if m != nil {
|
|
|
+ return m.Mutable
|
|
|
+ }
|
|
|
+ return false
|
|
|
+}
|
|
|
+
|
|
|
+func (m *UsageRecord) GetInUse() bool {
|
|
|
+ if m != nil {
|
|
|
+ return m.InUse
|
|
|
+ }
|
|
|
+ return false
|
|
|
+}
|
|
|
+
|
|
|
+func (m *UsageRecord) GetSize_() int64 {
|
|
|
+ if m != nil {
|
|
|
+ return m.Size_
|
|
|
+ }
|
|
|
+ return 0
|
|
|
+}
|
|
|
+
|
|
|
+func (m *UsageRecord) GetParent() string {
|
|
|
+ if m != nil {
|
|
|
+ return m.Parent
|
|
|
+ }
|
|
|
+ return ""
|
|
|
+}
|
|
|
+
|
|
|
+func (m *UsageRecord) GetCreatedAt() time.Time {
|
|
|
+ if m != nil {
|
|
|
+ return m.CreatedAt
|
|
|
+ }
|
|
|
+ return time.Time{}
|
|
|
+}
|
|
|
+
|
|
|
+func (m *UsageRecord) GetLastUsedAt() *time.Time {
|
|
|
+ if m != nil {
|
|
|
+ return m.LastUsedAt
|
|
|
+ }
|
|
|
+ return nil
|
|
|
+}
|
|
|
+
|
|
|
+func (m *UsageRecord) GetUsageCount() int64 {
|
|
|
+ if m != nil {
|
|
|
+ return m.UsageCount
|
|
|
+ }
|
|
|
+ return 0
|
|
|
+}
|
|
|
+
|
|
|
+func (m *UsageRecord) GetDescription() string {
|
|
|
+ if m != nil {
|
|
|
+ return m.Description
|
|
|
+ }
|
|
|
+ return ""
|
|
|
+}
|
|
|
+
|
|
|
+type SolveRequest struct {
|
|
|
+ Ref string `protobuf:"bytes,1,opt,name=Ref,proto3" json:"Ref,omitempty"`
|
|
|
+ Definition *pb.Definition `protobuf:"bytes,2,opt,name=Definition" json:"Definition,omitempty"`
|
|
|
+ Exporter string `protobuf:"bytes,3,opt,name=Exporter,proto3" json:"Exporter,omitempty"`
|
|
|
+ ExporterAttrs map[string]string `protobuf:"bytes,4,rep,name=ExporterAttrs" json:"ExporterAttrs,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
|
|
|
+ Session string `protobuf:"bytes,5,opt,name=Session,proto3" json:"Session,omitempty"`
|
|
|
+ Frontend string `protobuf:"bytes,6,opt,name=Frontend,proto3" json:"Frontend,omitempty"`
|
|
|
+ FrontendAttrs map[string]string `protobuf:"bytes,7,rep,name=FrontendAttrs" json:"FrontendAttrs,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
|
|
|
+ Cache CacheOptions `protobuf:"bytes,8,opt,name=Cache" json:"Cache"`
|
|
|
+}
|
|
|
+
|
|
|
+func (m *SolveRequest) Reset() { *m = SolveRequest{} }
|
|
|
+func (m *SolveRequest) String() string { return proto.CompactTextString(m) }
|
|
|
+func (*SolveRequest) ProtoMessage() {}
|
|
|
+func (*SolveRequest) Descriptor() ([]byte, []int) { return fileDescriptorControl, []int{4} }
|
|
|
+
|
|
|
+func (m *SolveRequest) GetRef() string {
|
|
|
+ if m != nil {
|
|
|
+ return m.Ref
|
|
|
+ }
|
|
|
+ return ""
|
|
|
+}
|
|
|
+
|
|
|
+func (m *SolveRequest) GetDefinition() *pb.Definition {
|
|
|
+ if m != nil {
|
|
|
+ return m.Definition
|
|
|
+ }
|
|
|
+ return nil
|
|
|
+}
|
|
|
+
|
|
|
+func (m *SolveRequest) GetExporter() string {
|
|
|
+ if m != nil {
|
|
|
+ return m.Exporter
|
|
|
+ }
|
|
|
+ return ""
|
|
|
+}
|
|
|
+
|
|
|
+func (m *SolveRequest) GetExporterAttrs() map[string]string {
|
|
|
+ if m != nil {
|
|
|
+ return m.ExporterAttrs
|
|
|
+ }
|
|
|
+ return nil
|
|
|
+}
|
|
|
+
|
|
|
+func (m *SolveRequest) GetSession() string {
|
|
|
+ if m != nil {
|
|
|
+ return m.Session
|
|
|
+ }
|
|
|
+ return ""
|
|
|
+}
|
|
|
+
|
|
|
+func (m *SolveRequest) GetFrontend() string {
|
|
|
+ if m != nil {
|
|
|
+ return m.Frontend
|
|
|
+ }
|
|
|
+ return ""
|
|
|
+}
|
|
|
+
|
|
|
+func (m *SolveRequest) GetFrontendAttrs() map[string]string {
|
|
|
+ if m != nil {
|
|
|
+ return m.FrontendAttrs
|
|
|
+ }
|
|
|
+ return nil
|
|
|
+}
|
|
|
+
|
|
|
+func (m *SolveRequest) GetCache() CacheOptions {
|
|
|
+ if m != nil {
|
|
|
+ return m.Cache
|
|
|
+ }
|
|
|
+ return CacheOptions{}
|
|
|
+}
|
|
|
+
|
|
|
+type CacheOptions struct {
|
|
|
+ ExportRef string `protobuf:"bytes,1,opt,name=ExportRef,proto3" json:"ExportRef,omitempty"`
|
|
|
+ ImportRefs []string `protobuf:"bytes,2,rep,name=ImportRefs" json:"ImportRefs,omitempty"`
|
|
|
+ ExportAttrs map[string]string `protobuf:"bytes,3,rep,name=ExportAttrs" json:"ExportAttrs,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
|
|
|
+}
|
|
|
+
|
|
|
+func (m *CacheOptions) Reset() { *m = CacheOptions{} }
|
|
|
+func (m *CacheOptions) String() string { return proto.CompactTextString(m) }
|
|
|
+func (*CacheOptions) ProtoMessage() {}
|
|
|
+func (*CacheOptions) Descriptor() ([]byte, []int) { return fileDescriptorControl, []int{5} }
|
|
|
+
|
|
|
+func (m *CacheOptions) GetExportRef() string {
|
|
|
+ if m != nil {
|
|
|
+ return m.ExportRef
|
|
|
+ }
|
|
|
+ return ""
|
|
|
+}
|
|
|
+
|
|
|
+func (m *CacheOptions) GetImportRefs() []string {
|
|
|
+ if m != nil {
|
|
|
+ return m.ImportRefs
|
|
|
+ }
|
|
|
+ return nil
|
|
|
+}
|
|
|
+
|
|
|
+func (m *CacheOptions) GetExportAttrs() map[string]string {
|
|
|
+ if m != nil {
|
|
|
+ return m.ExportAttrs
|
|
|
+ }
|
|
|
+ return nil
|
|
|
+}
|
|
|
+
|
|
|
+type SolveResponse struct {
|
|
|
+ ExporterResponse map[string]string `protobuf:"bytes,1,rep,name=ExporterResponse" json:"ExporterResponse,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
|
|
|
+}
|
|
|
+
|
|
|
+func (m *SolveResponse) Reset() { *m = SolveResponse{} }
|
|
|
+func (m *SolveResponse) String() string { return proto.CompactTextString(m) }
|
|
|
+func (*SolveResponse) ProtoMessage() {}
|
|
|
+func (*SolveResponse) Descriptor() ([]byte, []int) { return fileDescriptorControl, []int{6} }
|
|
|
+
|
|
|
+func (m *SolveResponse) GetExporterResponse() map[string]string {
|
|
|
+ if m != nil {
|
|
|
+ return m.ExporterResponse
|
|
|
+ }
|
|
|
+ return nil
|
|
|
+}
|
|
|
+
|
|
|
+type StatusRequest struct {
|
|
|
+ Ref string `protobuf:"bytes,1,opt,name=Ref,proto3" json:"Ref,omitempty"`
|
|
|
+}
|
|
|
+
|
|
|
+func (m *StatusRequest) Reset() { *m = StatusRequest{} }
|
|
|
+func (m *StatusRequest) String() string { return proto.CompactTextString(m) }
|
|
|
+func (*StatusRequest) ProtoMessage() {}
|
|
|
+func (*StatusRequest) Descriptor() ([]byte, []int) { return fileDescriptorControl, []int{7} }
|
|
|
+
|
|
|
+func (m *StatusRequest) GetRef() string {
|
|
|
+ if m != nil {
|
|
|
+ return m.Ref
|
|
|
+ }
|
|
|
+ return ""
|
|
|
+}
|
|
|
+
|
|
|
+type StatusResponse struct {
|
|
|
+ Vertexes []*Vertex `protobuf:"bytes,1,rep,name=vertexes" json:"vertexes,omitempty"`
|
|
|
+ Statuses []*VertexStatus `protobuf:"bytes,2,rep,name=statuses" json:"statuses,omitempty"`
|
|
|
+ Logs []*VertexLog `protobuf:"bytes,3,rep,name=logs" json:"logs,omitempty"`
|
|
|
+}
|
|
|
+
|
|
|
+func (m *StatusResponse) Reset() { *m = StatusResponse{} }
|
|
|
+func (m *StatusResponse) String() string { return proto.CompactTextString(m) }
|
|
|
+func (*StatusResponse) ProtoMessage() {}
|
|
|
+func (*StatusResponse) Descriptor() ([]byte, []int) { return fileDescriptorControl, []int{8} }
|
|
|
+
|
|
|
+func (m *StatusResponse) GetVertexes() []*Vertex {
|
|
|
+ if m != nil {
|
|
|
+ return m.Vertexes
|
|
|
+ }
|
|
|
+ return nil
|
|
|
+}
|
|
|
+
|
|
|
+func (m *StatusResponse) GetStatuses() []*VertexStatus {
|
|
|
+ if m != nil {
|
|
|
+ return m.Statuses
|
|
|
+ }
|
|
|
+ return nil
|
|
|
+}
|
|
|
+
|
|
|
+func (m *StatusResponse) GetLogs() []*VertexLog {
|
|
|
+ if m != nil {
|
|
|
+ return m.Logs
|
|
|
+ }
|
|
|
+ return nil
|
|
|
+}
|
|
|
+
|
|
|
+type Vertex struct {
|
|
|
+ Digest github_com_opencontainers_go_digest.Digest `protobuf:"bytes,1,opt,name=digest,proto3,customtype=github.com/opencontainers/go-digest.Digest" json:"digest"`
|
|
|
+ Inputs []github_com_opencontainers_go_digest.Digest `protobuf:"bytes,2,rep,name=inputs,customtype=github.com/opencontainers/go-digest.Digest" json:"inputs"`
|
|
|
+ Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
|
|
|
+ Cached bool `protobuf:"varint,4,opt,name=cached,proto3" json:"cached,omitempty"`
|
|
|
+ Started *time.Time `protobuf:"bytes,5,opt,name=started,stdtime" json:"started,omitempty"`
|
|
|
+ Completed *time.Time `protobuf:"bytes,6,opt,name=completed,stdtime" json:"completed,omitempty"`
|
|
|
+ Error string `protobuf:"bytes,7,opt,name=error,proto3" json:"error,omitempty"`
|
|
|
+}
|
|
|
+
|
|
|
+func (m *Vertex) Reset() { *m = Vertex{} }
|
|
|
+func (m *Vertex) String() string { return proto.CompactTextString(m) }
|
|
|
+func (*Vertex) ProtoMessage() {}
|
|
|
+func (*Vertex) Descriptor() ([]byte, []int) { return fileDescriptorControl, []int{9} }
|
|
|
+
|
|
|
+func (m *Vertex) GetName() string {
|
|
|
+ if m != nil {
|
|
|
+ return m.Name
|
|
|
+ }
|
|
|
+ return ""
|
|
|
+}
|
|
|
+
|
|
|
+func (m *Vertex) GetCached() bool {
|
|
|
+ if m != nil {
|
|
|
+ return m.Cached
|
|
|
+ }
|
|
|
+ return false
|
|
|
+}
|
|
|
+
|
|
|
+func (m *Vertex) GetStarted() *time.Time {
|
|
|
+ if m != nil {
|
|
|
+ return m.Started
|
|
|
+ }
|
|
|
+ return nil
|
|
|
+}
|
|
|
+
|
|
|
+func (m *Vertex) GetCompleted() *time.Time {
|
|
|
+ if m != nil {
|
|
|
+ return m.Completed
|
|
|
+ }
|
|
|
+ return nil
|
|
|
+}
|
|
|
+
|
|
|
+func (m *Vertex) GetError() string {
|
|
|
+ if m != nil {
|
|
|
+ return m.Error
|
|
|
+ }
|
|
|
+ return ""
|
|
|
+}
|
|
|
+
|
|
|
+type VertexStatus struct {
|
|
|
+ ID string `protobuf:"bytes,1,opt,name=ID,proto3" json:"ID,omitempty"`
|
|
|
+ Vertex github_com_opencontainers_go_digest.Digest `protobuf:"bytes,2,opt,name=vertex,proto3,customtype=github.com/opencontainers/go-digest.Digest" json:"vertex"`
|
|
|
+ Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
|
|
|
+ Current int64 `protobuf:"varint,4,opt,name=current,proto3" json:"current,omitempty"`
|
|
|
+ Total int64 `protobuf:"varint,5,opt,name=total,proto3" json:"total,omitempty"`
|
|
|
+ // TODO: add started, completed
|
|
|
+ Timestamp time.Time `protobuf:"bytes,6,opt,name=timestamp,stdtime" json:"timestamp"`
|
|
|
+ Started *time.Time `protobuf:"bytes,7,opt,name=started,stdtime" json:"started,omitempty"`
|
|
|
+ Completed *time.Time `protobuf:"bytes,8,opt,name=completed,stdtime" json:"completed,omitempty"`
|
|
|
+}
|
|
|
+
|
|
|
+func (m *VertexStatus) Reset() { *m = VertexStatus{} }
|
|
|
+func (m *VertexStatus) String() string { return proto.CompactTextString(m) }
|
|
|
+func (*VertexStatus) ProtoMessage() {}
|
|
|
+func (*VertexStatus) Descriptor() ([]byte, []int) { return fileDescriptorControl, []int{10} }
|
|
|
+
|
|
|
+func (m *VertexStatus) GetID() string {
|
|
|
+ if m != nil {
|
|
|
+ return m.ID
|
|
|
+ }
|
|
|
+ return ""
|
|
|
+}
|
|
|
+
|
|
|
+func (m *VertexStatus) GetName() string {
|
|
|
+ if m != nil {
|
|
|
+ return m.Name
|
|
|
+ }
|
|
|
+ return ""
|
|
|
+}
|
|
|
+
|
|
|
+func (m *VertexStatus) GetCurrent() int64 {
|
|
|
+ if m != nil {
|
|
|
+ return m.Current
|
|
|
+ }
|
|
|
+ return 0
|
|
|
+}
|
|
|
+
|
|
|
+func (m *VertexStatus) GetTotal() int64 {
|
|
|
+ if m != nil {
|
|
|
+ return m.Total
|
|
|
+ }
|
|
|
+ return 0
|
|
|
+}
|
|
|
+
|
|
|
+func (m *VertexStatus) GetTimestamp() time.Time {
|
|
|
+ if m != nil {
|
|
|
+ return m.Timestamp
|
|
|
+ }
|
|
|
+ return time.Time{}
|
|
|
+}
|
|
|
+
|
|
|
+func (m *VertexStatus) GetStarted() *time.Time {
|
|
|
+ if m != nil {
|
|
|
+ return m.Started
|
|
|
+ }
|
|
|
+ return nil
|
|
|
+}
|
|
|
+
|
|
|
+func (m *VertexStatus) GetCompleted() *time.Time {
|
|
|
+ if m != nil {
|
|
|
+ return m.Completed
|
|
|
+ }
|
|
|
+ return nil
|
|
|
+}
|
|
|
+
|
|
|
+type VertexLog struct {
|
|
|
+ Vertex github_com_opencontainers_go_digest.Digest `protobuf:"bytes,1,opt,name=vertex,proto3,customtype=github.com/opencontainers/go-digest.Digest" json:"vertex"`
|
|
|
+ Timestamp time.Time `protobuf:"bytes,2,opt,name=timestamp,stdtime" json:"timestamp"`
|
|
|
+ Stream int64 `protobuf:"varint,3,opt,name=stream,proto3" json:"stream,omitempty"`
|
|
|
+ Msg []byte `protobuf:"bytes,4,opt,name=msg,proto3" json:"msg,omitempty"`
|
|
|
+}
|
|
|
+
|
|
|
+func (m *VertexLog) Reset() { *m = VertexLog{} }
|
|
|
+func (m *VertexLog) String() string { return proto.CompactTextString(m) }
|
|
|
+func (*VertexLog) ProtoMessage() {}
|
|
|
+func (*VertexLog) Descriptor() ([]byte, []int) { return fileDescriptorControl, []int{11} }
|
|
|
+
|
|
|
+func (m *VertexLog) GetTimestamp() time.Time {
|
|
|
+ if m != nil {
|
|
|
+ return m.Timestamp
|
|
|
+ }
|
|
|
+ return time.Time{}
|
|
|
+}
|
|
|
+
|
|
|
+func (m *VertexLog) GetStream() int64 {
|
|
|
+ if m != nil {
|
|
|
+ return m.Stream
|
|
|
+ }
|
|
|
+ return 0
|
|
|
+}
|
|
|
+
|
|
|
+func (m *VertexLog) GetMsg() []byte {
|
|
|
+ if m != nil {
|
|
|
+ return m.Msg
|
|
|
+ }
|
|
|
+ return nil
|
|
|
+}
|
|
|
+
|
|
|
+type BytesMessage struct {
|
|
|
+ Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
|
|
|
+}
|
|
|
+
|
|
|
+func (m *BytesMessage) Reset() { *m = BytesMessage{} }
|
|
|
+func (m *BytesMessage) String() string { return proto.CompactTextString(m) }
|
|
|
+func (*BytesMessage) ProtoMessage() {}
|
|
|
+func (*BytesMessage) Descriptor() ([]byte, []int) { return fileDescriptorControl, []int{12} }
|
|
|
+
|
|
|
+func (m *BytesMessage) GetData() []byte {
|
|
|
+ if m != nil {
|
|
|
+ return m.Data
|
|
|
+ }
|
|
|
+ return nil
|
|
|
+}
|
|
|
+
|
|
|
+type ListWorkersRequest struct {
|
|
|
+ Filter []string `protobuf:"bytes,1,rep,name=filter" json:"filter,omitempty"`
|
|
|
+}
|
|
|
+
|
|
|
+func (m *ListWorkersRequest) Reset() { *m = ListWorkersRequest{} }
|
|
|
+func (m *ListWorkersRequest) String() string { return proto.CompactTextString(m) }
|
|
|
+func (*ListWorkersRequest) ProtoMessage() {}
|
|
|
+func (*ListWorkersRequest) Descriptor() ([]byte, []int) { return fileDescriptorControl, []int{13} }
|
|
|
+
|
|
|
+func (m *ListWorkersRequest) GetFilter() []string {
|
|
|
+ if m != nil {
|
|
|
+ return m.Filter
|
|
|
+ }
|
|
|
+ return nil
|
|
|
+}
|
|
|
+
|
|
|
+type ListWorkersResponse struct {
|
|
|
+ Record []*WorkerRecord `protobuf:"bytes,1,rep,name=record" json:"record,omitempty"`
|
|
|
+}
|
|
|
+
|
|
|
+func (m *ListWorkersResponse) Reset() { *m = ListWorkersResponse{} }
|
|
|
+func (m *ListWorkersResponse) String() string { return proto.CompactTextString(m) }
|
|
|
+func (*ListWorkersResponse) ProtoMessage() {}
|
|
|
+func (*ListWorkersResponse) Descriptor() ([]byte, []int) { return fileDescriptorControl, []int{14} }
|
|
|
+
|
|
|
+func (m *ListWorkersResponse) GetRecord() []*WorkerRecord {
|
|
|
+ if m != nil {
|
|
|
+ return m.Record
|
|
|
+ }
|
|
|
+ return nil
|
|
|
+}
|
|
|
+
|
|
|
+type WorkerRecord struct {
|
|
|
+ ID string `protobuf:"bytes,1,opt,name=ID,proto3" json:"ID,omitempty"`
|
|
|
+ Labels map[string]string `protobuf:"bytes,2,rep,name=Labels" json:"Labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
|
|
|
+}
|
|
|
+
|
|
|
+func (m *WorkerRecord) Reset() { *m = WorkerRecord{} }
|
|
|
+func (m *WorkerRecord) String() string { return proto.CompactTextString(m) }
|
|
|
+func (*WorkerRecord) ProtoMessage() {}
|
|
|
+func (*WorkerRecord) Descriptor() ([]byte, []int) { return fileDescriptorControl, []int{15} }
|
|
|
+
|
|
|
+func (m *WorkerRecord) GetID() string {
|
|
|
+ if m != nil {
|
|
|
+ return m.ID
|
|
|
+ }
|
|
|
+ return ""
|
|
|
+}
|
|
|
+
|
|
|
+func (m *WorkerRecord) GetLabels() map[string]string {
|
|
|
+ if m != nil {
|
|
|
+ return m.Labels
|
|
|
+ }
|
|
|
+ return nil
|
|
|
+}
|
|
|
+
|
|
|
+func init() {
|
|
|
+ proto.RegisterType((*PruneRequest)(nil), "moby.buildkit.v1.PruneRequest")
|
|
|
+ proto.RegisterType((*DiskUsageRequest)(nil), "moby.buildkit.v1.DiskUsageRequest")
|
|
|
+ proto.RegisterType((*DiskUsageResponse)(nil), "moby.buildkit.v1.DiskUsageResponse")
|
|
|
+ proto.RegisterType((*UsageRecord)(nil), "moby.buildkit.v1.UsageRecord")
|
|
|
+ proto.RegisterType((*SolveRequest)(nil), "moby.buildkit.v1.SolveRequest")
|
|
|
+ proto.RegisterType((*CacheOptions)(nil), "moby.buildkit.v1.CacheOptions")
|
|
|
+ proto.RegisterType((*SolveResponse)(nil), "moby.buildkit.v1.SolveResponse")
|
|
|
+ proto.RegisterType((*StatusRequest)(nil), "moby.buildkit.v1.StatusRequest")
|
|
|
+ proto.RegisterType((*StatusResponse)(nil), "moby.buildkit.v1.StatusResponse")
|
|
|
+ proto.RegisterType((*Vertex)(nil), "moby.buildkit.v1.Vertex")
|
|
|
+ proto.RegisterType((*VertexStatus)(nil), "moby.buildkit.v1.VertexStatus")
|
|
|
+ proto.RegisterType((*VertexLog)(nil), "moby.buildkit.v1.VertexLog")
|
|
|
+ proto.RegisterType((*BytesMessage)(nil), "moby.buildkit.v1.BytesMessage")
|
|
|
+ proto.RegisterType((*ListWorkersRequest)(nil), "moby.buildkit.v1.ListWorkersRequest")
|
|
|
+ proto.RegisterType((*ListWorkersResponse)(nil), "moby.buildkit.v1.ListWorkersResponse")
|
|
|
+ proto.RegisterType((*WorkerRecord)(nil), "moby.buildkit.v1.WorkerRecord")
|
|
|
+}
|
|
|
+
|
|
|
+// Reference imports to suppress errors if they are not otherwise used.
|
|
|
+var _ context.Context
|
|
|
+var _ grpc.ClientConn
|
|
|
+
|
|
|
+// This is a compile-time assertion to ensure that this generated file
|
|
|
+// is compatible with the grpc package it is being compiled against.
|
|
|
+const _ = grpc.SupportPackageIsVersion4
|
|
|
+
|
|
|
+// Client API for Control service
|
|
|
+
|
|
|
+type ControlClient interface {
|
|
|
+ DiskUsage(ctx context.Context, in *DiskUsageRequest, opts ...grpc.CallOption) (*DiskUsageResponse, error)
|
|
|
+ Prune(ctx context.Context, in *PruneRequest, opts ...grpc.CallOption) (Control_PruneClient, error)
|
|
|
+ Solve(ctx context.Context, in *SolveRequest, opts ...grpc.CallOption) (*SolveResponse, error)
|
|
|
+ Status(ctx context.Context, in *StatusRequest, opts ...grpc.CallOption) (Control_StatusClient, error)
|
|
|
+ Session(ctx context.Context, opts ...grpc.CallOption) (Control_SessionClient, error)
|
|
|
+ ListWorkers(ctx context.Context, in *ListWorkersRequest, opts ...grpc.CallOption) (*ListWorkersResponse, error)
|
|
|
+}
|
|
|
+
|
|
|
+type controlClient struct {
|
|
|
+ cc *grpc.ClientConn
|
|
|
+}
|
|
|
+
|
|
|
+func NewControlClient(cc *grpc.ClientConn) ControlClient {
|
|
|
+ return &controlClient{cc}
|
|
|
+}
|
|
|
+
|
|
|
+func (c *controlClient) DiskUsage(ctx context.Context, in *DiskUsageRequest, opts ...grpc.CallOption) (*DiskUsageResponse, error) {
|
|
|
+ out := new(DiskUsageResponse)
|
|
|
+ err := grpc.Invoke(ctx, "/moby.buildkit.v1.Control/DiskUsage", in, out, c.cc, opts...)
|
|
|
+ if err != nil {
|
|
|
+ return nil, err
|
|
|
+ }
|
|
|
+ return out, nil
|
|
|
+}
|
|
|
+
|
|
|
+func (c *controlClient) Prune(ctx context.Context, in *PruneRequest, opts ...grpc.CallOption) (Control_PruneClient, error) {
|
|
|
+ stream, err := grpc.NewClientStream(ctx, &_Control_serviceDesc.Streams[0], c.cc, "/moby.buildkit.v1.Control/Prune", opts...)
|
|
|
+ if err != nil {
|
|
|
+ return nil, err
|
|
|
+ }
|
|
|
+ x := &controlPruneClient{stream}
|
|
|
+ if err := x.ClientStream.SendMsg(in); err != nil {
|
|
|
+ return nil, err
|
|
|
+ }
|
|
|
+ if err := x.ClientStream.CloseSend(); err != nil {
|
|
|
+ return nil, err
|
|
|
+ }
|
|
|
+ return x, nil
|
|
|
+}
|
|
|
+
|
|
|
+type Control_PruneClient interface {
|
|
|
+ Recv() (*UsageRecord, error)
|
|
|
+ grpc.ClientStream
|
|
|
+}
|
|
|
+
|
|
|
+type controlPruneClient struct {
|
|
|
+ grpc.ClientStream
|
|
|
+}
|
|
|
+
|
|
|
+func (x *controlPruneClient) Recv() (*UsageRecord, error) {
|
|
|
+ m := new(UsageRecord)
|
|
|
+ if err := x.ClientStream.RecvMsg(m); err != nil {
|
|
|
+ return nil, err
|
|
|
+ }
|
|
|
+ return m, nil
|
|
|
+}
|
|
|
+
|
|
|
+func (c *controlClient) Solve(ctx context.Context, in *SolveRequest, opts ...grpc.CallOption) (*SolveResponse, error) {
|
|
|
+ out := new(SolveResponse)
|
|
|
+ err := grpc.Invoke(ctx, "/moby.buildkit.v1.Control/Solve", in, out, c.cc, opts...)
|
|
|
+ if err != nil {
|
|
|
+ return nil, err
|
|
|
+ }
|
|
|
+ return out, nil
|
|
|
+}
|
|
|
+
|
|
|
+func (c *controlClient) Status(ctx context.Context, in *StatusRequest, opts ...grpc.CallOption) (Control_StatusClient, error) {
|
|
|
+ stream, err := grpc.NewClientStream(ctx, &_Control_serviceDesc.Streams[1], c.cc, "/moby.buildkit.v1.Control/Status", opts...)
|
|
|
+ if err != nil {
|
|
|
+ return nil, err
|
|
|
+ }
|
|
|
+ x := &controlStatusClient{stream}
|
|
|
+ if err := x.ClientStream.SendMsg(in); err != nil {
|
|
|
+ return nil, err
|
|
|
+ }
|
|
|
+ if err := x.ClientStream.CloseSend(); err != nil {
|
|
|
+ return nil, err
|
|
|
+ }
|
|
|
+ return x, nil
|
|
|
+}
|
|
|
+
|
|
|
+type Control_StatusClient interface {
|
|
|
+ Recv() (*StatusResponse, error)
|
|
|
+ grpc.ClientStream
|
|
|
+}
|
|
|
+
|
|
|
+type controlStatusClient struct {
|
|
|
+ grpc.ClientStream
|
|
|
+}
|
|
|
+
|
|
|
+func (x *controlStatusClient) Recv() (*StatusResponse, error) {
|
|
|
+ m := new(StatusResponse)
|
|
|
+ if err := x.ClientStream.RecvMsg(m); err != nil {
|
|
|
+ return nil, err
|
|
|
+ }
|
|
|
+ return m, nil
|
|
|
+}
|
|
|
+
|
|
|
+func (c *controlClient) Session(ctx context.Context, opts ...grpc.CallOption) (Control_SessionClient, error) {
|
|
|
+ stream, err := grpc.NewClientStream(ctx, &_Control_serviceDesc.Streams[2], c.cc, "/moby.buildkit.v1.Control/Session", opts...)
|
|
|
+ if err != nil {
|
|
|
+ return nil, err
|
|
|
+ }
|
|
|
+ x := &controlSessionClient{stream}
|
|
|
+ return x, nil
|
|
|
+}
|
|
|
+
|
|
|
+type Control_SessionClient interface {
|
|
|
+ Send(*BytesMessage) error
|
|
|
+ Recv() (*BytesMessage, error)
|
|
|
+ grpc.ClientStream
|
|
|
+}
|
|
|
+
|
|
|
+type controlSessionClient struct {
|
|
|
+ grpc.ClientStream
|
|
|
+}
|
|
|
+
|
|
|
+func (x *controlSessionClient) Send(m *BytesMessage) error {
|
|
|
+ return x.ClientStream.SendMsg(m)
|
|
|
+}
|
|
|
+
|
|
|
+func (x *controlSessionClient) Recv() (*BytesMessage, error) {
|
|
|
+ m := new(BytesMessage)
|
|
|
+ if err := x.ClientStream.RecvMsg(m); err != nil {
|
|
|
+ return nil, err
|
|
|
+ }
|
|
|
+ return m, nil
|
|
|
+}
|
|
|
+
|
|
|
+func (c *controlClient) ListWorkers(ctx context.Context, in *ListWorkersRequest, opts ...grpc.CallOption) (*ListWorkersResponse, error) {
|
|
|
+ out := new(ListWorkersResponse)
|
|
|
+ err := grpc.Invoke(ctx, "/moby.buildkit.v1.Control/ListWorkers", in, out, c.cc, opts...)
|
|
|
+ if err != nil {
|
|
|
+ return nil, err
|
|
|
+ }
|
|
|
+ return out, nil
|
|
|
+}
|
|
|
+
|
|
|
+// Server API for Control service
|
|
|
+
|
|
|
+type ControlServer interface {
|
|
|
+ DiskUsage(context.Context, *DiskUsageRequest) (*DiskUsageResponse, error)
|
|
|
+ Prune(*PruneRequest, Control_PruneServer) error
|
|
|
+ Solve(context.Context, *SolveRequest) (*SolveResponse, error)
|
|
|
+ Status(*StatusRequest, Control_StatusServer) error
|
|
|
+ Session(Control_SessionServer) error
|
|
|
+ ListWorkers(context.Context, *ListWorkersRequest) (*ListWorkersResponse, error)
|
|
|
+}
|
|
|
+
|
|
|
+func RegisterControlServer(s *grpc.Server, srv ControlServer) {
|
|
|
+ s.RegisterService(&_Control_serviceDesc, srv)
|
|
|
+}
|
|
|
+
|
|
|
+func _Control_DiskUsage_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
|
+ in := new(DiskUsageRequest)
|
|
|
+ if err := dec(in); err != nil {
|
|
|
+ return nil, err
|
|
|
+ }
|
|
|
+ if interceptor == nil {
|
|
|
+ return srv.(ControlServer).DiskUsage(ctx, in)
|
|
|
+ }
|
|
|
+ info := &grpc.UnaryServerInfo{
|
|
|
+ Server: srv,
|
|
|
+ FullMethod: "/moby.buildkit.v1.Control/DiskUsage",
|
|
|
+ }
|
|
|
+ handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
|
+ return srv.(ControlServer).DiskUsage(ctx, req.(*DiskUsageRequest))
|
|
|
+ }
|
|
|
+ return interceptor(ctx, in, info, handler)
|
|
|
+}
|
|
|
+
|
|
|
+func _Control_Prune_Handler(srv interface{}, stream grpc.ServerStream) error {
|
|
|
+ m := new(PruneRequest)
|
|
|
+ if err := stream.RecvMsg(m); err != nil {
|
|
|
+ return err
|
|
|
+ }
|
|
|
+ return srv.(ControlServer).Prune(m, &controlPruneServer{stream})
|
|
|
+}
|
|
|
+
|
|
|
+type Control_PruneServer interface {
|
|
|
+ Send(*UsageRecord) error
|
|
|
+ grpc.ServerStream
|
|
|
+}
|
|
|
+
|
|
|
+type controlPruneServer struct {
|
|
|
+ grpc.ServerStream
|
|
|
+}
|
|
|
+
|
|
|
+func (x *controlPruneServer) Send(m *UsageRecord) error {
|
|
|
+ return x.ServerStream.SendMsg(m)
|
|
|
+}
|
|
|
+
|
|
|
+func _Control_Solve_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
|
+ in := new(SolveRequest)
|
|
|
+ if err := dec(in); err != nil {
|
|
|
+ return nil, err
|
|
|
+ }
|
|
|
+ if interceptor == nil {
|
|
|
+ return srv.(ControlServer).Solve(ctx, in)
|
|
|
+ }
|
|
|
+ info := &grpc.UnaryServerInfo{
|
|
|
+ Server: srv,
|
|
|
+ FullMethod: "/moby.buildkit.v1.Control/Solve",
|
|
|
+ }
|
|
|
+ handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
|
+ return srv.(ControlServer).Solve(ctx, req.(*SolveRequest))
|
|
|
+ }
|
|
|
+ return interceptor(ctx, in, info, handler)
|
|
|
+}
|
|
|
+
|
|
|
+func _Control_Status_Handler(srv interface{}, stream grpc.ServerStream) error {
|
|
|
+ m := new(StatusRequest)
|
|
|
+ if err := stream.RecvMsg(m); err != nil {
|
|
|
+ return err
|
|
|
+ }
|
|
|
+ return srv.(ControlServer).Status(m, &controlStatusServer{stream})
|
|
|
+}
|
|
|
+
|
|
|
+type Control_StatusServer interface {
|
|
|
+ Send(*StatusResponse) error
|
|
|
+ grpc.ServerStream
|
|
|
+}
|
|
|
+
|
|
|
+type controlStatusServer struct {
|
|
|
+ grpc.ServerStream
|
|
|
+}
|
|
|
+
|
|
|
+func (x *controlStatusServer) Send(m *StatusResponse) error {
|
|
|
+ return x.ServerStream.SendMsg(m)
|
|
|
+}
|
|
|
+
|
|
|
+func _Control_Session_Handler(srv interface{}, stream grpc.ServerStream) error {
|
|
|
+ return srv.(ControlServer).Session(&controlSessionServer{stream})
|
|
|
+}
|
|
|
+
|
|
|
+type Control_SessionServer interface {
|
|
|
+ Send(*BytesMessage) error
|
|
|
+ Recv() (*BytesMessage, error)
|
|
|
+ grpc.ServerStream
|
|
|
+}
|
|
|
+
|
|
|
+type controlSessionServer struct {
|
|
|
+ grpc.ServerStream
|
|
|
+}
|
|
|
+
|
|
|
+func (x *controlSessionServer) Send(m *BytesMessage) error {
|
|
|
+ return x.ServerStream.SendMsg(m)
|
|
|
+}
|
|
|
+
|
|
|
+func (x *controlSessionServer) Recv() (*BytesMessage, error) {
|
|
|
+ m := new(BytesMessage)
|
|
|
+ if err := x.ServerStream.RecvMsg(m); err != nil {
|
|
|
+ return nil, err
|
|
|
+ }
|
|
|
+ return m, nil
|
|
|
+}
|
|
|
+
|
|
|
+func _Control_ListWorkers_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
|
+ in := new(ListWorkersRequest)
|
|
|
+ if err := dec(in); err != nil {
|
|
|
+ return nil, err
|
|
|
+ }
|
|
|
+ if interceptor == nil {
|
|
|
+ return srv.(ControlServer).ListWorkers(ctx, in)
|
|
|
+ }
|
|
|
+ info := &grpc.UnaryServerInfo{
|
|
|
+ Server: srv,
|
|
|
+ FullMethod: "/moby.buildkit.v1.Control/ListWorkers",
|
|
|
+ }
|
|
|
+ handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
|
+ return srv.(ControlServer).ListWorkers(ctx, req.(*ListWorkersRequest))
|
|
|
+ }
|
|
|
+ return interceptor(ctx, in, info, handler)
|
|
|
+}
|
|
|
+
|
|
|
+var _Control_serviceDesc = grpc.ServiceDesc{
|
|
|
+ ServiceName: "moby.buildkit.v1.Control",
|
|
|
+ HandlerType: (*ControlServer)(nil),
|
|
|
+ Methods: []grpc.MethodDesc{
|
|
|
+ {
|
|
|
+ MethodName: "DiskUsage",
|
|
|
+ Handler: _Control_DiskUsage_Handler,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ MethodName: "Solve",
|
|
|
+ Handler: _Control_Solve_Handler,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ MethodName: "ListWorkers",
|
|
|
+ Handler: _Control_ListWorkers_Handler,
|
|
|
+ },
|
|
|
+ },
|
|
|
+ Streams: []grpc.StreamDesc{
|
|
|
+ {
|
|
|
+ StreamName: "Prune",
|
|
|
+ Handler: _Control_Prune_Handler,
|
|
|
+ ServerStreams: true,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ StreamName: "Status",
|
|
|
+ Handler: _Control_Status_Handler,
|
|
|
+ ServerStreams: true,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ StreamName: "Session",
|
|
|
+ Handler: _Control_Session_Handler,
|
|
|
+ ServerStreams: true,
|
|
|
+ ClientStreams: true,
|
|
|
+ },
|
|
|
+ },
|
|
|
+ Metadata: "control.proto",
|
|
|
+}
|
|
|
+
|
|
|
+func (m *PruneRequest) 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 *PruneRequest) MarshalTo(dAtA []byte) (int, error) {
|
|
|
+ var i int
|
|
|
+ _ = i
|
|
|
+ var l int
|
|
|
+ _ = l
|
|
|
+ return i, nil
|
|
|
+}
|
|
|
+
|
|
|
+func (m *DiskUsageRequest) 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 *DiskUsageRequest) MarshalTo(dAtA []byte) (int, error) {
|
|
|
+ var i int
|
|
|
+ _ = i
|
|
|
+ var l int
|
|
|
+ _ = l
|
|
|
+ if len(m.Filter) > 0 {
|
|
|
+ dAtA[i] = 0xa
|
|
|
+ i++
|
|
|
+ i = encodeVarintControl(dAtA, i, uint64(len(m.Filter)))
|
|
|
+ i += copy(dAtA[i:], m.Filter)
|
|
|
+ }
|
|
|
+ return i, nil
|
|
|
+}
|
|
|
+
|
|
|
+func (m *DiskUsageResponse) 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 *DiskUsageResponse) MarshalTo(dAtA []byte) (int, error) {
|
|
|
+ var i int
|
|
|
+ _ = i
|
|
|
+ var l int
|
|
|
+ _ = l
|
|
|
+ if len(m.Record) > 0 {
|
|
|
+ for _, msg := range m.Record {
|
|
|
+ dAtA[i] = 0xa
|
|
|
+ i++
|
|
|
+ i = encodeVarintControl(dAtA, i, uint64(msg.Size()))
|
|
|
+ n, err := msg.MarshalTo(dAtA[i:])
|
|
|
+ if err != nil {
|
|
|
+ return 0, err
|
|
|
+ }
|
|
|
+ i += n
|
|
|
+ }
|
|
|
+ }
|
|
|
+ return i, nil
|
|
|
+}
|
|
|
+
|
|
|
+func (m *UsageRecord) 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 *UsageRecord) MarshalTo(dAtA []byte) (int, error) {
|
|
|
+ var i int
|
|
|
+ _ = i
|
|
|
+ var l int
|
|
|
+ _ = l
|
|
|
+ if len(m.ID) > 0 {
|
|
|
+ dAtA[i] = 0xa
|
|
|
+ i++
|
|
|
+ i = encodeVarintControl(dAtA, i, uint64(len(m.ID)))
|
|
|
+ i += copy(dAtA[i:], m.ID)
|
|
|
+ }
|
|
|
+ if m.Mutable {
|
|
|
+ dAtA[i] = 0x10
|
|
|
+ i++
|
|
|
+ if m.Mutable {
|
|
|
+ dAtA[i] = 1
|
|
|
+ } else {
|
|
|
+ dAtA[i] = 0
|
|
|
+ }
|
|
|
+ i++
|
|
|
+ }
|
|
|
+ if m.InUse {
|
|
|
+ dAtA[i] = 0x18
|
|
|
+ i++
|
|
|
+ if m.InUse {
|
|
|
+ dAtA[i] = 1
|
|
|
+ } else {
|
|
|
+ dAtA[i] = 0
|
|
|
+ }
|
|
|
+ i++
|
|
|
+ }
|
|
|
+ if m.Size_ != 0 {
|
|
|
+ dAtA[i] = 0x20
|
|
|
+ i++
|
|
|
+ i = encodeVarintControl(dAtA, i, uint64(m.Size_))
|
|
|
+ }
|
|
|
+ if len(m.Parent) > 0 {
|
|
|
+ dAtA[i] = 0x2a
|
|
|
+ i++
|
|
|
+ i = encodeVarintControl(dAtA, i, uint64(len(m.Parent)))
|
|
|
+ i += copy(dAtA[i:], m.Parent)
|
|
|
+ }
|
|
|
+ dAtA[i] = 0x32
|
|
|
+ i++
|
|
|
+ i = encodeVarintControl(dAtA, i, uint64(types.SizeOfStdTime(m.CreatedAt)))
|
|
|
+ n1, err := types.StdTimeMarshalTo(m.CreatedAt, dAtA[i:])
|
|
|
+ if err != nil {
|
|
|
+ return 0, err
|
|
|
+ }
|
|
|
+ i += n1
|
|
|
+ if m.LastUsedAt != nil {
|
|
|
+ dAtA[i] = 0x3a
|
|
|
+ i++
|
|
|
+ i = encodeVarintControl(dAtA, i, uint64(types.SizeOfStdTime(*m.LastUsedAt)))
|
|
|
+ n2, err := types.StdTimeMarshalTo(*m.LastUsedAt, dAtA[i:])
|
|
|
+ if err != nil {
|
|
|
+ return 0, err
|
|
|
+ }
|
|
|
+ i += n2
|
|
|
+ }
|
|
|
+ if m.UsageCount != 0 {
|
|
|
+ dAtA[i] = 0x40
|
|
|
+ i++
|
|
|
+ i = encodeVarintControl(dAtA, i, uint64(m.UsageCount))
|
|
|
+ }
|
|
|
+ if len(m.Description) > 0 {
|
|
|
+ dAtA[i] = 0x4a
|
|
|
+ i++
|
|
|
+ i = encodeVarintControl(dAtA, i, uint64(len(m.Description)))
|
|
|
+ i += copy(dAtA[i:], m.Description)
|
|
|
+ }
|
|
|
+ return i, nil
|
|
|
+}
|
|
|
+
|
|
|
+func (m *SolveRequest) 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 *SolveRequest) MarshalTo(dAtA []byte) (int, error) {
|
|
|
+ var i int
|
|
|
+ _ = i
|
|
|
+ var l int
|
|
|
+ _ = l
|
|
|
+ if len(m.Ref) > 0 {
|
|
|
+ dAtA[i] = 0xa
|
|
|
+ i++
|
|
|
+ i = encodeVarintControl(dAtA, i, uint64(len(m.Ref)))
|
|
|
+ i += copy(dAtA[i:], m.Ref)
|
|
|
+ }
|
|
|
+ if m.Definition != nil {
|
|
|
+ dAtA[i] = 0x12
|
|
|
+ i++
|
|
|
+ i = encodeVarintControl(dAtA, i, uint64(m.Definition.Size()))
|
|
|
+ n3, err := m.Definition.MarshalTo(dAtA[i:])
|
|
|
+ if err != nil {
|
|
|
+ return 0, err
|
|
|
+ }
|
|
|
+ i += n3
|
|
|
+ }
|
|
|
+ if len(m.Exporter) > 0 {
|
|
|
+ dAtA[i] = 0x1a
|
|
|
+ i++
|
|
|
+ i = encodeVarintControl(dAtA, i, uint64(len(m.Exporter)))
|
|
|
+ i += copy(dAtA[i:], m.Exporter)
|
|
|
+ }
|
|
|
+ if len(m.ExporterAttrs) > 0 {
|
|
|
+ for k, _ := range m.ExporterAttrs {
|
|
|
+ dAtA[i] = 0x22
|
|
|
+ i++
|
|
|
+ v := m.ExporterAttrs[k]
|
|
|
+ mapSize := 1 + len(k) + sovControl(uint64(len(k))) + 1 + len(v) + sovControl(uint64(len(v)))
|
|
|
+ i = encodeVarintControl(dAtA, i, uint64(mapSize))
|
|
|
+ dAtA[i] = 0xa
|
|
|
+ i++
|
|
|
+ i = encodeVarintControl(dAtA, i, uint64(len(k)))
|
|
|
+ i += copy(dAtA[i:], k)
|
|
|
+ dAtA[i] = 0x12
|
|
|
+ i++
|
|
|
+ i = encodeVarintControl(dAtA, i, uint64(len(v)))
|
|
|
+ i += copy(dAtA[i:], v)
|
|
|
+ }
|
|
|
+ }
|
|
|
+ if len(m.Session) > 0 {
|
|
|
+ dAtA[i] = 0x2a
|
|
|
+ i++
|
|
|
+ i = encodeVarintControl(dAtA, i, uint64(len(m.Session)))
|
|
|
+ i += copy(dAtA[i:], m.Session)
|
|
|
+ }
|
|
|
+ if len(m.Frontend) > 0 {
|
|
|
+ dAtA[i] = 0x32
|
|
|
+ i++
|
|
|
+ i = encodeVarintControl(dAtA, i, uint64(len(m.Frontend)))
|
|
|
+ i += copy(dAtA[i:], m.Frontend)
|
|
|
+ }
|
|
|
+ if len(m.FrontendAttrs) > 0 {
|
|
|
+ for k, _ := range m.FrontendAttrs {
|
|
|
+ dAtA[i] = 0x3a
|
|
|
+ i++
|
|
|
+ v := m.FrontendAttrs[k]
|
|
|
+ mapSize := 1 + len(k) + sovControl(uint64(len(k))) + 1 + len(v) + sovControl(uint64(len(v)))
|
|
|
+ i = encodeVarintControl(dAtA, i, uint64(mapSize))
|
|
|
+ dAtA[i] = 0xa
|
|
|
+ i++
|
|
|
+ i = encodeVarintControl(dAtA, i, uint64(len(k)))
|
|
|
+ i += copy(dAtA[i:], k)
|
|
|
+ dAtA[i] = 0x12
|
|
|
+ i++
|
|
|
+ i = encodeVarintControl(dAtA, i, uint64(len(v)))
|
|
|
+ i += copy(dAtA[i:], v)
|
|
|
+ }
|
|
|
+ }
|
|
|
+ dAtA[i] = 0x42
|
|
|
+ i++
|
|
|
+ i = encodeVarintControl(dAtA, i, uint64(m.Cache.Size()))
|
|
|
+ n4, err := m.Cache.MarshalTo(dAtA[i:])
|
|
|
+ if err != nil {
|
|
|
+ return 0, err
|
|
|
+ }
|
|
|
+ i += n4
|
|
|
+ return i, nil
|
|
|
+}
|
|
|
+
|
|
|
+func (m *CacheOptions) 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 *CacheOptions) MarshalTo(dAtA []byte) (int, error) {
|
|
|
+ var i int
|
|
|
+ _ = i
|
|
|
+ var l int
|
|
|
+ _ = l
|
|
|
+ if len(m.ExportRef) > 0 {
|
|
|
+ dAtA[i] = 0xa
|
|
|
+ i++
|
|
|
+ i = encodeVarintControl(dAtA, i, uint64(len(m.ExportRef)))
|
|
|
+ i += copy(dAtA[i:], m.ExportRef)
|
|
|
+ }
|
|
|
+ if len(m.ImportRefs) > 0 {
|
|
|
+ for _, s := range m.ImportRefs {
|
|
|
+ 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.ExportAttrs) > 0 {
|
|
|
+ for k, _ := range m.ExportAttrs {
|
|
|
+ dAtA[i] = 0x1a
|
|
|
+ i++
|
|
|
+ v := m.ExportAttrs[k]
|
|
|
+ mapSize := 1 + len(k) + sovControl(uint64(len(k))) + 1 + len(v) + sovControl(uint64(len(v)))
|
|
|
+ i = encodeVarintControl(dAtA, i, uint64(mapSize))
|
|
|
+ dAtA[i] = 0xa
|
|
|
+ i++
|
|
|
+ i = encodeVarintControl(dAtA, i, uint64(len(k)))
|
|
|
+ i += copy(dAtA[i:], k)
|
|
|
+ dAtA[i] = 0x12
|
|
|
+ i++
|
|
|
+ i = encodeVarintControl(dAtA, i, uint64(len(v)))
|
|
|
+ i += copy(dAtA[i:], v)
|
|
|
+ }
|
|
|
+ }
|
|
|
+ return i, nil
|
|
|
+}
|
|
|
+
|
|
|
+func (m *SolveResponse) 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 *SolveResponse) MarshalTo(dAtA []byte) (int, error) {
|
|
|
+ var i int
|
|
|
+ _ = i
|
|
|
+ var l int
|
|
|
+ _ = l
|
|
|
+ if len(m.ExporterResponse) > 0 {
|
|
|
+ for k, _ := range m.ExporterResponse {
|
|
|
+ dAtA[i] = 0xa
|
|
|
+ i++
|
|
|
+ v := m.ExporterResponse[k]
|
|
|
+ mapSize := 1 + len(k) + sovControl(uint64(len(k))) + 1 + len(v) + sovControl(uint64(len(v)))
|
|
|
+ i = encodeVarintControl(dAtA, i, uint64(mapSize))
|
|
|
+ dAtA[i] = 0xa
|
|
|
+ i++
|
|
|
+ i = encodeVarintControl(dAtA, i, uint64(len(k)))
|
|
|
+ i += copy(dAtA[i:], k)
|
|
|
+ dAtA[i] = 0x12
|
|
|
+ i++
|
|
|
+ i = encodeVarintControl(dAtA, i, uint64(len(v)))
|
|
|
+ i += copy(dAtA[i:], v)
|
|
|
+ }
|
|
|
+ }
|
|
|
+ return i, nil
|
|
|
+}
|
|
|
+
|
|
|
+func (m *StatusRequest) 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 *StatusRequest) MarshalTo(dAtA []byte) (int, error) {
|
|
|
+ var i int
|
|
|
+ _ = i
|
|
|
+ var l int
|
|
|
+ _ = l
|
|
|
+ if len(m.Ref) > 0 {
|
|
|
+ dAtA[i] = 0xa
|
|
|
+ i++
|
|
|
+ i = encodeVarintControl(dAtA, i, uint64(len(m.Ref)))
|
|
|
+ i += copy(dAtA[i:], m.Ref)
|
|
|
+ }
|
|
|
+ return i, nil
|
|
|
+}
|
|
|
+
|
|
|
+func (m *StatusResponse) 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 *StatusResponse) MarshalTo(dAtA []byte) (int, error) {
|
|
|
+ var i int
|
|
|
+ _ = i
|
|
|
+ var l int
|
|
|
+ _ = l
|
|
|
+ if len(m.Vertexes) > 0 {
|
|
|
+ for _, msg := range m.Vertexes {
|
|
|
+ dAtA[i] = 0xa
|
|
|
+ i++
|
|
|
+ i = encodeVarintControl(dAtA, i, uint64(msg.Size()))
|
|
|
+ n, err := msg.MarshalTo(dAtA[i:])
|
|
|
+ if err != nil {
|
|
|
+ return 0, err
|
|
|
+ }
|
|
|
+ i += n
|
|
|
+ }
|
|
|
+ }
|
|
|
+ if len(m.Statuses) > 0 {
|
|
|
+ for _, msg := range m.Statuses {
|
|
|
+ dAtA[i] = 0x12
|
|
|
+ i++
|
|
|
+ i = encodeVarintControl(dAtA, i, uint64(msg.Size()))
|
|
|
+ n, err := msg.MarshalTo(dAtA[i:])
|
|
|
+ if err != nil {
|
|
|
+ return 0, err
|
|
|
+ }
|
|
|
+ i += n
|
|
|
+ }
|
|
|
+ }
|
|
|
+ if len(m.Logs) > 0 {
|
|
|
+ for _, msg := range m.Logs {
|
|
|
+ dAtA[i] = 0x1a
|
|
|
+ i++
|
|
|
+ i = encodeVarintControl(dAtA, i, uint64(msg.Size()))
|
|
|
+ n, err := msg.MarshalTo(dAtA[i:])
|
|
|
+ if err != nil {
|
|
|
+ return 0, err
|
|
|
+ }
|
|
|
+ i += n
|
|
|
+ }
|
|
|
+ }
|
|
|
+ return i, nil
|
|
|
+}
|
|
|
+
|
|
|
+func (m *Vertex) 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 *Vertex) MarshalTo(dAtA []byte) (int, error) {
|
|
|
+ var i int
|
|
|
+ _ = i
|
|
|
+ var l int
|
|
|
+ _ = l
|
|
|
+ if len(m.Digest) > 0 {
|
|
|
+ dAtA[i] = 0xa
|
|
|
+ i++
|
|
|
+ i = encodeVarintControl(dAtA, i, uint64(len(m.Digest)))
|
|
|
+ i += copy(dAtA[i:], m.Digest)
|
|
|
+ }
|
|
|
+ if len(m.Inputs) > 0 {
|
|
|
+ for _, s := range m.Inputs {
|
|
|
+ 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.Name) > 0 {
|
|
|
+ dAtA[i] = 0x1a
|
|
|
+ i++
|
|
|
+ i = encodeVarintControl(dAtA, i, uint64(len(m.Name)))
|
|
|
+ i += copy(dAtA[i:], m.Name)
|
|
|
+ }
|
|
|
+ if m.Cached {
|
|
|
+ dAtA[i] = 0x20
|
|
|
+ i++
|
|
|
+ if m.Cached {
|
|
|
+ dAtA[i] = 1
|
|
|
+ } else {
|
|
|
+ dAtA[i] = 0
|
|
|
+ }
|
|
|
+ i++
|
|
|
+ }
|
|
|
+ if m.Started != nil {
|
|
|
+ dAtA[i] = 0x2a
|
|
|
+ i++
|
|
|
+ i = encodeVarintControl(dAtA, i, uint64(types.SizeOfStdTime(*m.Started)))
|
|
|
+ n5, err := types.StdTimeMarshalTo(*m.Started, dAtA[i:])
|
|
|
+ if err != nil {
|
|
|
+ return 0, err
|
|
|
+ }
|
|
|
+ i += n5
|
|
|
+ }
|
|
|
+ if m.Completed != nil {
|
|
|
+ dAtA[i] = 0x32
|
|
|
+ i++
|
|
|
+ i = encodeVarintControl(dAtA, i, uint64(types.SizeOfStdTime(*m.Completed)))
|
|
|
+ n6, err := types.StdTimeMarshalTo(*m.Completed, dAtA[i:])
|
|
|
+ if err != nil {
|
|
|
+ return 0, err
|
|
|
+ }
|
|
|
+ i += n6
|
|
|
+ }
|
|
|
+ if len(m.Error) > 0 {
|
|
|
+ dAtA[i] = 0x3a
|
|
|
+ i++
|
|
|
+ i = encodeVarintControl(dAtA, i, uint64(len(m.Error)))
|
|
|
+ i += copy(dAtA[i:], m.Error)
|
|
|
+ }
|
|
|
+ return i, nil
|
|
|
+}
|
|
|
+
|
|
|
+func (m *VertexStatus) 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 *VertexStatus) MarshalTo(dAtA []byte) (int, error) {
|
|
|
+ var i int
|
|
|
+ _ = i
|
|
|
+ var l int
|
|
|
+ _ = l
|
|
|
+ if len(m.ID) > 0 {
|
|
|
+ dAtA[i] = 0xa
|
|
|
+ i++
|
|
|
+ i = encodeVarintControl(dAtA, i, uint64(len(m.ID)))
|
|
|
+ i += copy(dAtA[i:], m.ID)
|
|
|
+ }
|
|
|
+ if len(m.Vertex) > 0 {
|
|
|
+ dAtA[i] = 0x12
|
|
|
+ i++
|
|
|
+ i = encodeVarintControl(dAtA, i, uint64(len(m.Vertex)))
|
|
|
+ i += copy(dAtA[i:], m.Vertex)
|
|
|
+ }
|
|
|
+ if len(m.Name) > 0 {
|
|
|
+ dAtA[i] = 0x1a
|
|
|
+ i++
|
|
|
+ i = encodeVarintControl(dAtA, i, uint64(len(m.Name)))
|
|
|
+ i += copy(dAtA[i:], m.Name)
|
|
|
+ }
|
|
|
+ if m.Current != 0 {
|
|
|
+ dAtA[i] = 0x20
|
|
|
+ i++
|
|
|
+ i = encodeVarintControl(dAtA, i, uint64(m.Current))
|
|
|
+ }
|
|
|
+ if m.Total != 0 {
|
|
|
+ dAtA[i] = 0x28
|
|
|
+ i++
|
|
|
+ i = encodeVarintControl(dAtA, i, uint64(m.Total))
|
|
|
+ }
|
|
|
+ dAtA[i] = 0x32
|
|
|
+ i++
|
|
|
+ i = encodeVarintControl(dAtA, i, uint64(types.SizeOfStdTime(m.Timestamp)))
|
|
|
+ n7, err := types.StdTimeMarshalTo(m.Timestamp, dAtA[i:])
|
|
|
+ if err != nil {
|
|
|
+ return 0, err
|
|
|
+ }
|
|
|
+ i += n7
|
|
|
+ if m.Started != nil {
|
|
|
+ dAtA[i] = 0x3a
|
|
|
+ i++
|
|
|
+ i = encodeVarintControl(dAtA, i, uint64(types.SizeOfStdTime(*m.Started)))
|
|
|
+ n8, err := types.StdTimeMarshalTo(*m.Started, dAtA[i:])
|
|
|
+ if err != nil {
|
|
|
+ return 0, err
|
|
|
+ }
|
|
|
+ i += n8
|
|
|
+ }
|
|
|
+ if m.Completed != nil {
|
|
|
+ dAtA[i] = 0x42
|
|
|
+ i++
|
|
|
+ i = encodeVarintControl(dAtA, i, uint64(types.SizeOfStdTime(*m.Completed)))
|
|
|
+ n9, err := types.StdTimeMarshalTo(*m.Completed, dAtA[i:])
|
|
|
+ if err != nil {
|
|
|
+ return 0, err
|
|
|
+ }
|
|
|
+ i += n9
|
|
|
+ }
|
|
|
+ return i, nil
|
|
|
+}
|
|
|
+
|
|
|
+func (m *VertexLog) 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 *VertexLog) MarshalTo(dAtA []byte) (int, error) {
|
|
|
+ var i int
|
|
|
+ _ = i
|
|
|
+ var l int
|
|
|
+ _ = l
|
|
|
+ if len(m.Vertex) > 0 {
|
|
|
+ dAtA[i] = 0xa
|
|
|
+ i++
|
|
|
+ i = encodeVarintControl(dAtA, i, uint64(len(m.Vertex)))
|
|
|
+ i += copy(dAtA[i:], m.Vertex)
|
|
|
+ }
|
|
|
+ dAtA[i] = 0x12
|
|
|
+ i++
|
|
|
+ i = encodeVarintControl(dAtA, i, uint64(types.SizeOfStdTime(m.Timestamp)))
|
|
|
+ n10, err := types.StdTimeMarshalTo(m.Timestamp, dAtA[i:])
|
|
|
+ if err != nil {
|
|
|
+ return 0, err
|
|
|
+ }
|
|
|
+ i += n10
|
|
|
+ if m.Stream != 0 {
|
|
|
+ dAtA[i] = 0x18
|
|
|
+ i++
|
|
|
+ i = encodeVarintControl(dAtA, i, uint64(m.Stream))
|
|
|
+ }
|
|
|
+ if len(m.Msg) > 0 {
|
|
|
+ dAtA[i] = 0x22
|
|
|
+ i++
|
|
|
+ i = encodeVarintControl(dAtA, i, uint64(len(m.Msg)))
|
|
|
+ i += copy(dAtA[i:], m.Msg)
|
|
|
+ }
|
|
|
+ return i, nil
|
|
|
+}
|
|
|
+
|
|
|
+func (m *BytesMessage) 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 *BytesMessage) MarshalTo(dAtA []byte) (int, error) {
|
|
|
+ var i int
|
|
|
+ _ = i
|
|
|
+ var l int
|
|
|
+ _ = l
|
|
|
+ if len(m.Data) > 0 {
|
|
|
+ dAtA[i] = 0xa
|
|
|
+ i++
|
|
|
+ i = encodeVarintControl(dAtA, i, uint64(len(m.Data)))
|
|
|
+ i += copy(dAtA[i:], m.Data)
|
|
|
+ }
|
|
|
+ return i, nil
|
|
|
+}
|
|
|
+
|
|
|
+func (m *ListWorkersRequest) 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 *ListWorkersRequest) MarshalTo(dAtA []byte) (int, error) {
|
|
|
+ var i int
|
|
|
+ _ = i
|
|
|
+ var l int
|
|
|
+ _ = l
|
|
|
+ if len(m.Filter) > 0 {
|
|
|
+ for _, s := range m.Filter {
|
|
|
+ dAtA[i] = 0xa
|
|
|
+ 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 *ListWorkersResponse) 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 *ListWorkersResponse) MarshalTo(dAtA []byte) (int, error) {
|
|
|
+ var i int
|
|
|
+ _ = i
|
|
|
+ var l int
|
|
|
+ _ = l
|
|
|
+ if len(m.Record) > 0 {
|
|
|
+ for _, msg := range m.Record {
|
|
|
+ dAtA[i] = 0xa
|
|
|
+ i++
|
|
|
+ i = encodeVarintControl(dAtA, i, uint64(msg.Size()))
|
|
|
+ n, err := msg.MarshalTo(dAtA[i:])
|
|
|
+ if err != nil {
|
|
|
+ return 0, err
|
|
|
+ }
|
|
|
+ i += n
|
|
|
+ }
|
|
|
+ }
|
|
|
+ return i, nil
|
|
|
+}
|
|
|
+
|
|
|
+func (m *WorkerRecord) 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 *WorkerRecord) MarshalTo(dAtA []byte) (int, error) {
|
|
|
+ var i int
|
|
|
+ _ = i
|
|
|
+ var l int
|
|
|
+ _ = l
|
|
|
+ if len(m.ID) > 0 {
|
|
|
+ dAtA[i] = 0xa
|
|
|
+ i++
|
|
|
+ i = encodeVarintControl(dAtA, i, uint64(len(m.ID)))
|
|
|
+ i += copy(dAtA[i:], m.ID)
|
|
|
+ }
|
|
|
+ if len(m.Labels) > 0 {
|
|
|
+ for k, _ := range m.Labels {
|
|
|
+ dAtA[i] = 0x12
|
|
|
+ i++
|
|
|
+ v := m.Labels[k]
|
|
|
+ mapSize := 1 + len(k) + sovControl(uint64(len(k))) + 1 + len(v) + sovControl(uint64(len(v)))
|
|
|
+ i = encodeVarintControl(dAtA, i, uint64(mapSize))
|
|
|
+ dAtA[i] = 0xa
|
|
|
+ i++
|
|
|
+ i = encodeVarintControl(dAtA, i, uint64(len(k)))
|
|
|
+ i += copy(dAtA[i:], k)
|
|
|
+ dAtA[i] = 0x12
|
|
|
+ i++
|
|
|
+ i = encodeVarintControl(dAtA, i, uint64(len(v)))
|
|
|
+ i += copy(dAtA[i:], v)
|
|
|
+ }
|
|
|
+ }
|
|
|
+ return i, nil
|
|
|
+}
|
|
|
+
|
|
|
+func encodeVarintControl(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 *PruneRequest) Size() (n int) {
|
|
|
+ var l int
|
|
|
+ _ = l
|
|
|
+ return n
|
|
|
+}
|
|
|
+
|
|
|
+func (m *DiskUsageRequest) Size() (n int) {
|
|
|
+ var l int
|
|
|
+ _ = l
|
|
|
+ l = len(m.Filter)
|
|
|
+ if l > 0 {
|
|
|
+ n += 1 + l + sovControl(uint64(l))
|
|
|
+ }
|
|
|
+ return n
|
|
|
+}
|
|
|
+
|
|
|
+func (m *DiskUsageResponse) Size() (n int) {
|
|
|
+ var l int
|
|
|
+ _ = l
|
|
|
+ if len(m.Record) > 0 {
|
|
|
+ for _, e := range m.Record {
|
|
|
+ l = e.Size()
|
|
|
+ n += 1 + l + sovControl(uint64(l))
|
|
|
+ }
|
|
|
+ }
|
|
|
+ return n
|
|
|
+}
|
|
|
+
|
|
|
+func (m *UsageRecord) Size() (n int) {
|
|
|
+ var l int
|
|
|
+ _ = l
|
|
|
+ l = len(m.ID)
|
|
|
+ if l > 0 {
|
|
|
+ n += 1 + l + sovControl(uint64(l))
|
|
|
+ }
|
|
|
+ if m.Mutable {
|
|
|
+ n += 2
|
|
|
+ }
|
|
|
+ if m.InUse {
|
|
|
+ n += 2
|
|
|
+ }
|
|
|
+ if m.Size_ != 0 {
|
|
|
+ n += 1 + sovControl(uint64(m.Size_))
|
|
|
+ }
|
|
|
+ l = len(m.Parent)
|
|
|
+ if l > 0 {
|
|
|
+ n += 1 + l + sovControl(uint64(l))
|
|
|
+ }
|
|
|
+ l = types.SizeOfStdTime(m.CreatedAt)
|
|
|
+ n += 1 + l + sovControl(uint64(l))
|
|
|
+ if m.LastUsedAt != nil {
|
|
|
+ l = types.SizeOfStdTime(*m.LastUsedAt)
|
|
|
+ n += 1 + l + sovControl(uint64(l))
|
|
|
+ }
|
|
|
+ if m.UsageCount != 0 {
|
|
|
+ n += 1 + sovControl(uint64(m.UsageCount))
|
|
|
+ }
|
|
|
+ l = len(m.Description)
|
|
|
+ if l > 0 {
|
|
|
+ n += 1 + l + sovControl(uint64(l))
|
|
|
+ }
|
|
|
+ return n
|
|
|
+}
|
|
|
+
|
|
|
+func (m *SolveRequest) Size() (n int) {
|
|
|
+ var l int
|
|
|
+ _ = l
|
|
|
+ l = len(m.Ref)
|
|
|
+ if l > 0 {
|
|
|
+ n += 1 + l + sovControl(uint64(l))
|
|
|
+ }
|
|
|
+ if m.Definition != nil {
|
|
|
+ l = m.Definition.Size()
|
|
|
+ n += 1 + l + sovControl(uint64(l))
|
|
|
+ }
|
|
|
+ l = len(m.Exporter)
|
|
|
+ if l > 0 {
|
|
|
+ n += 1 + l + sovControl(uint64(l))
|
|
|
+ }
|
|
|
+ if len(m.ExporterAttrs) > 0 {
|
|
|
+ for k, v := range m.ExporterAttrs {
|
|
|
+ _ = k
|
|
|
+ _ = v
|
|
|
+ mapEntrySize := 1 + len(k) + sovControl(uint64(len(k))) + 1 + len(v) + sovControl(uint64(len(v)))
|
|
|
+ n += mapEntrySize + 1 + sovControl(uint64(mapEntrySize))
|
|
|
+ }
|
|
|
+ }
|
|
|
+ l = len(m.Session)
|
|
|
+ if l > 0 {
|
|
|
+ n += 1 + l + sovControl(uint64(l))
|
|
|
+ }
|
|
|
+ l = len(m.Frontend)
|
|
|
+ if l > 0 {
|
|
|
+ n += 1 + l + sovControl(uint64(l))
|
|
|
+ }
|
|
|
+ if len(m.FrontendAttrs) > 0 {
|
|
|
+ for k, v := range m.FrontendAttrs {
|
|
|
+ _ = k
|
|
|
+ _ = v
|
|
|
+ mapEntrySize := 1 + len(k) + sovControl(uint64(len(k))) + 1 + len(v) + sovControl(uint64(len(v)))
|
|
|
+ n += mapEntrySize + 1 + sovControl(uint64(mapEntrySize))
|
|
|
+ }
|
|
|
+ }
|
|
|
+ l = m.Cache.Size()
|
|
|
+ n += 1 + l + sovControl(uint64(l))
|
|
|
+ return n
|
|
|
+}
|
|
|
+
|
|
|
+func (m *CacheOptions) Size() (n int) {
|
|
|
+ var l int
|
|
|
+ _ = l
|
|
|
+ l = len(m.ExportRef)
|
|
|
+ if l > 0 {
|
|
|
+ n += 1 + l + sovControl(uint64(l))
|
|
|
+ }
|
|
|
+ if len(m.ImportRefs) > 0 {
|
|
|
+ for _, s := range m.ImportRefs {
|
|
|
+ l = len(s)
|
|
|
+ n += 1 + l + sovControl(uint64(l))
|
|
|
+ }
|
|
|
+ }
|
|
|
+ if len(m.ExportAttrs) > 0 {
|
|
|
+ for k, v := range m.ExportAttrs {
|
|
|
+ _ = k
|
|
|
+ _ = v
|
|
|
+ mapEntrySize := 1 + len(k) + sovControl(uint64(len(k))) + 1 + len(v) + sovControl(uint64(len(v)))
|
|
|
+ n += mapEntrySize + 1 + sovControl(uint64(mapEntrySize))
|
|
|
+ }
|
|
|
+ }
|
|
|
+ return n
|
|
|
+}
|
|
|
+
|
|
|
+func (m *SolveResponse) Size() (n int) {
|
|
|
+ var l int
|
|
|
+ _ = l
|
|
|
+ if len(m.ExporterResponse) > 0 {
|
|
|
+ for k, v := range m.ExporterResponse {
|
|
|
+ _ = k
|
|
|
+ _ = v
|
|
|
+ mapEntrySize := 1 + len(k) + sovControl(uint64(len(k))) + 1 + len(v) + sovControl(uint64(len(v)))
|
|
|
+ n += mapEntrySize + 1 + sovControl(uint64(mapEntrySize))
|
|
|
+ }
|
|
|
+ }
|
|
|
+ return n
|
|
|
+}
|
|
|
+
|
|
|
+func (m *StatusRequest) Size() (n int) {
|
|
|
+ var l int
|
|
|
+ _ = l
|
|
|
+ l = len(m.Ref)
|
|
|
+ if l > 0 {
|
|
|
+ n += 1 + l + sovControl(uint64(l))
|
|
|
+ }
|
|
|
+ return n
|
|
|
+}
|
|
|
+
|
|
|
+func (m *StatusResponse) Size() (n int) {
|
|
|
+ var l int
|
|
|
+ _ = l
|
|
|
+ if len(m.Vertexes) > 0 {
|
|
|
+ for _, e := range m.Vertexes {
|
|
|
+ l = e.Size()
|
|
|
+ n += 1 + l + sovControl(uint64(l))
|
|
|
+ }
|
|
|
+ }
|
|
|
+ if len(m.Statuses) > 0 {
|
|
|
+ for _, e := range m.Statuses {
|
|
|
+ l = e.Size()
|
|
|
+ n += 1 + l + sovControl(uint64(l))
|
|
|
+ }
|
|
|
+ }
|
|
|
+ if len(m.Logs) > 0 {
|
|
|
+ for _, e := range m.Logs {
|
|
|
+ l = e.Size()
|
|
|
+ n += 1 + l + sovControl(uint64(l))
|
|
|
+ }
|
|
|
+ }
|
|
|
+ return n
|
|
|
+}
|
|
|
+
|
|
|
+func (m *Vertex) Size() (n int) {
|
|
|
+ var l int
|
|
|
+ _ = l
|
|
|
+ l = len(m.Digest)
|
|
|
+ if l > 0 {
|
|
|
+ n += 1 + l + sovControl(uint64(l))
|
|
|
+ }
|
|
|
+ if len(m.Inputs) > 0 {
|
|
|
+ for _, s := range m.Inputs {
|
|
|
+ l = len(s)
|
|
|
+ n += 1 + l + sovControl(uint64(l))
|
|
|
+ }
|
|
|
+ }
|
|
|
+ l = len(m.Name)
|
|
|
+ if l > 0 {
|
|
|
+ n += 1 + l + sovControl(uint64(l))
|
|
|
+ }
|
|
|
+ if m.Cached {
|
|
|
+ n += 2
|
|
|
+ }
|
|
|
+ if m.Started != nil {
|
|
|
+ l = types.SizeOfStdTime(*m.Started)
|
|
|
+ n += 1 + l + sovControl(uint64(l))
|
|
|
+ }
|
|
|
+ if m.Completed != nil {
|
|
|
+ l = types.SizeOfStdTime(*m.Completed)
|
|
|
+ n += 1 + l + sovControl(uint64(l))
|
|
|
+ }
|
|
|
+ l = len(m.Error)
|
|
|
+ if l > 0 {
|
|
|
+ n += 1 + l + sovControl(uint64(l))
|
|
|
+ }
|
|
|
+ return n
|
|
|
+}
|
|
|
+
|
|
|
+func (m *VertexStatus) Size() (n int) {
|
|
|
+ var l int
|
|
|
+ _ = l
|
|
|
+ l = len(m.ID)
|
|
|
+ if l > 0 {
|
|
|
+ n += 1 + l + sovControl(uint64(l))
|
|
|
+ }
|
|
|
+ l = len(m.Vertex)
|
|
|
+ if l > 0 {
|
|
|
+ n += 1 + l + sovControl(uint64(l))
|
|
|
+ }
|
|
|
+ l = len(m.Name)
|
|
|
+ if l > 0 {
|
|
|
+ n += 1 + l + sovControl(uint64(l))
|
|
|
+ }
|
|
|
+ if m.Current != 0 {
|
|
|
+ n += 1 + sovControl(uint64(m.Current))
|
|
|
+ }
|
|
|
+ if m.Total != 0 {
|
|
|
+ n += 1 + sovControl(uint64(m.Total))
|
|
|
+ }
|
|
|
+ l = types.SizeOfStdTime(m.Timestamp)
|
|
|
+ n += 1 + l + sovControl(uint64(l))
|
|
|
+ if m.Started != nil {
|
|
|
+ l = types.SizeOfStdTime(*m.Started)
|
|
|
+ n += 1 + l + sovControl(uint64(l))
|
|
|
+ }
|
|
|
+ if m.Completed != nil {
|
|
|
+ l = types.SizeOfStdTime(*m.Completed)
|
|
|
+ n += 1 + l + sovControl(uint64(l))
|
|
|
+ }
|
|
|
+ return n
|
|
|
+}
|
|
|
+
|
|
|
+func (m *VertexLog) Size() (n int) {
|
|
|
+ var l int
|
|
|
+ _ = l
|
|
|
+ l = len(m.Vertex)
|
|
|
+ if l > 0 {
|
|
|
+ n += 1 + l + sovControl(uint64(l))
|
|
|
+ }
|
|
|
+ l = types.SizeOfStdTime(m.Timestamp)
|
|
|
+ n += 1 + l + sovControl(uint64(l))
|
|
|
+ if m.Stream != 0 {
|
|
|
+ n += 1 + sovControl(uint64(m.Stream))
|
|
|
+ }
|
|
|
+ l = len(m.Msg)
|
|
|
+ if l > 0 {
|
|
|
+ n += 1 + l + sovControl(uint64(l))
|
|
|
+ }
|
|
|
+ return n
|
|
|
+}
|
|
|
+
|
|
|
+func (m *BytesMessage) Size() (n int) {
|
|
|
+ var l int
|
|
|
+ _ = l
|
|
|
+ l = len(m.Data)
|
|
|
+ if l > 0 {
|
|
|
+ n += 1 + l + sovControl(uint64(l))
|
|
|
+ }
|
|
|
+ return n
|
|
|
+}
|
|
|
+
|
|
|
+func (m *ListWorkersRequest) Size() (n int) {
|
|
|
+ var l int
|
|
|
+ _ = l
|
|
|
+ if len(m.Filter) > 0 {
|
|
|
+ for _, s := range m.Filter {
|
|
|
+ l = len(s)
|
|
|
+ n += 1 + l + sovControl(uint64(l))
|
|
|
+ }
|
|
|
+ }
|
|
|
+ return n
|
|
|
+}
|
|
|
+
|
|
|
+func (m *ListWorkersResponse) Size() (n int) {
|
|
|
+ var l int
|
|
|
+ _ = l
|
|
|
+ if len(m.Record) > 0 {
|
|
|
+ for _, e := range m.Record {
|
|
|
+ l = e.Size()
|
|
|
+ n += 1 + l + sovControl(uint64(l))
|
|
|
+ }
|
|
|
+ }
|
|
|
+ return n
|
|
|
+}
|
|
|
+
|
|
|
+func (m *WorkerRecord) Size() (n int) {
|
|
|
+ var l int
|
|
|
+ _ = l
|
|
|
+ l = len(m.ID)
|
|
|
+ if l > 0 {
|
|
|
+ n += 1 + l + sovControl(uint64(l))
|
|
|
+ }
|
|
|
+ if len(m.Labels) > 0 {
|
|
|
+ for k, v := range m.Labels {
|
|
|
+ _ = k
|
|
|
+ _ = v
|
|
|
+ mapEntrySize := 1 + len(k) + sovControl(uint64(len(k))) + 1 + len(v) + sovControl(uint64(len(v)))
|
|
|
+ n += mapEntrySize + 1 + sovControl(uint64(mapEntrySize))
|
|
|
+ }
|
|
|
+ }
|
|
|
+ return n
|
|
|
+}
|
|
|
+
|
|
|
+func sovControl(x uint64) (n int) {
|
|
|
+ for {
|
|
|
+ n++
|
|
|
+ x >>= 7
|
|
|
+ if x == 0 {
|
|
|
+ break
|
|
|
+ }
|
|
|
+ }
|
|
|
+ return n
|
|
|
+}
|
|
|
+func sozControl(x uint64) (n int) {
|
|
|
+ return sovControl(uint64((x << 1) ^ uint64((int64(x) >> 63))))
|
|
|
+}
|
|
|
+func (m *PruneRequest) 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 ErrIntOverflowControl
|
|
|
+ }
|
|
|
+ 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: PruneRequest: wiretype end group for non-group")
|
|
|
+ }
|
|
|
+ if fieldNum <= 0 {
|
|
|
+ return fmt.Errorf("proto: PruneRequest: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
|
+ }
|
|
|
+ switch fieldNum {
|
|
|
+ default:
|
|
|
+ iNdEx = preIndex
|
|
|
+ skippy, err := skipControl(dAtA[iNdEx:])
|
|
|
+ if err != nil {
|
|
|
+ return err
|
|
|
+ }
|
|
|
+ if skippy < 0 {
|
|
|
+ return ErrInvalidLengthControl
|
|
|
+ }
|
|
|
+ if (iNdEx + skippy) > l {
|
|
|
+ return io.ErrUnexpectedEOF
|
|
|
+ }
|
|
|
+ iNdEx += skippy
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ if iNdEx > l {
|
|
|
+ return io.ErrUnexpectedEOF
|
|
|
+ }
|
|
|
+ return nil
|
|
|
+}
|
|
|
+func (m *DiskUsageRequest) 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 ErrIntOverflowControl
|
|
|
+ }
|
|
|
+ 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: DiskUsageRequest: wiretype end group for non-group")
|
|
|
+ }
|
|
|
+ if fieldNum <= 0 {
|
|
|
+ return fmt.Errorf("proto: DiskUsageRequest: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
|
+ }
|
|
|
+ switch fieldNum {
|
|
|
+ case 1:
|
|
|
+ if wireType != 2 {
|
|
|
+ return fmt.Errorf("proto: wrong wireType = %d for field Filter", wireType)
|
|
|
+ }
|
|
|
+ var stringLen uint64
|
|
|
+ for shift := uint(0); ; shift += 7 {
|
|
|
+ if shift >= 64 {
|
|
|
+ return ErrIntOverflowControl
|
|
|
+ }
|
|
|
+ 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 ErrInvalidLengthControl
|
|
|
+ }
|
|
|
+ postIndex := iNdEx + intStringLen
|
|
|
+ if postIndex > l {
|
|
|
+ return io.ErrUnexpectedEOF
|
|
|
+ }
|
|
|
+ m.Filter = string(dAtA[iNdEx:postIndex])
|
|
|
+ iNdEx = postIndex
|
|
|
+ default:
|
|
|
+ iNdEx = preIndex
|
|
|
+ skippy, err := skipControl(dAtA[iNdEx:])
|
|
|
+ if err != nil {
|
|
|
+ return err
|
|
|
+ }
|
|
|
+ if skippy < 0 {
|
|
|
+ return ErrInvalidLengthControl
|
|
|
+ }
|
|
|
+ if (iNdEx + skippy) > l {
|
|
|
+ return io.ErrUnexpectedEOF
|
|
|
+ }
|
|
|
+ iNdEx += skippy
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ if iNdEx > l {
|
|
|
+ return io.ErrUnexpectedEOF
|
|
|
+ }
|
|
|
+ return nil
|
|
|
+}
|
|
|
+func (m *DiskUsageResponse) 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 ErrIntOverflowControl
|
|
|
+ }
|
|
|
+ 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: DiskUsageResponse: wiretype end group for non-group")
|
|
|
+ }
|
|
|
+ if fieldNum <= 0 {
|
|
|
+ return fmt.Errorf("proto: DiskUsageResponse: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
|
+ }
|
|
|
+ switch fieldNum {
|
|
|
+ case 1:
|
|
|
+ if wireType != 2 {
|
|
|
+ return fmt.Errorf("proto: wrong wireType = %d for field Record", wireType)
|
|
|
+ }
|
|
|
+ var msglen int
|
|
|
+ for shift := uint(0); ; shift += 7 {
|
|
|
+ if shift >= 64 {
|
|
|
+ return ErrIntOverflowControl
|
|
|
+ }
|
|
|
+ if iNdEx >= l {
|
|
|
+ return io.ErrUnexpectedEOF
|
|
|
+ }
|
|
|
+ b := dAtA[iNdEx]
|
|
|
+ iNdEx++
|
|
|
+ msglen |= (int(b) & 0x7F) << shift
|
|
|
+ if b < 0x80 {
|
|
|
+ break
|
|
|
+ }
|
|
|
+ }
|
|
|
+ if msglen < 0 {
|
|
|
+ return ErrInvalidLengthControl
|
|
|
+ }
|
|
|
+ postIndex := iNdEx + msglen
|
|
|
+ if postIndex > l {
|
|
|
+ return io.ErrUnexpectedEOF
|
|
|
+ }
|
|
|
+ m.Record = append(m.Record, &UsageRecord{})
|
|
|
+ if err := m.Record[len(m.Record)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
|
+ return err
|
|
|
+ }
|
|
|
+ iNdEx = postIndex
|
|
|
+ default:
|
|
|
+ iNdEx = preIndex
|
|
|
+ skippy, err := skipControl(dAtA[iNdEx:])
|
|
|
+ if err != nil {
|
|
|
+ return err
|
|
|
+ }
|
|
|
+ if skippy < 0 {
|
|
|
+ return ErrInvalidLengthControl
|
|
|
+ }
|
|
|
+ if (iNdEx + skippy) > l {
|
|
|
+ return io.ErrUnexpectedEOF
|
|
|
+ }
|
|
|
+ iNdEx += skippy
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ if iNdEx > l {
|
|
|
+ return io.ErrUnexpectedEOF
|
|
|
+ }
|
|
|
+ return nil
|
|
|
+}
|
|
|
+func (m *UsageRecord) 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 ErrIntOverflowControl
|
|
|
+ }
|
|
|
+ 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: UsageRecord: wiretype end group for non-group")
|
|
|
+ }
|
|
|
+ if fieldNum <= 0 {
|
|
|
+ return fmt.Errorf("proto: UsageRecord: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
|
+ }
|
|
|
+ switch fieldNum {
|
|
|
+ case 1:
|
|
|
+ if wireType != 2 {
|
|
|
+ return fmt.Errorf("proto: wrong wireType = %d for field ID", wireType)
|
|
|
+ }
|
|
|
+ var stringLen uint64
|
|
|
+ for shift := uint(0); ; shift += 7 {
|
|
|
+ if shift >= 64 {
|
|
|
+ return ErrIntOverflowControl
|
|
|
+ }
|
|
|
+ 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 ErrInvalidLengthControl
|
|
|
+ }
|
|
|
+ postIndex := iNdEx + intStringLen
|
|
|
+ if postIndex > l {
|
|
|
+ return io.ErrUnexpectedEOF
|
|
|
+ }
|
|
|
+ m.ID = string(dAtA[iNdEx:postIndex])
|
|
|
+ iNdEx = postIndex
|
|
|
+ case 2:
|
|
|
+ if wireType != 0 {
|
|
|
+ return fmt.Errorf("proto: wrong wireType = %d for field Mutable", wireType)
|
|
|
+ }
|
|
|
+ var v int
|
|
|
+ for shift := uint(0); ; shift += 7 {
|
|
|
+ if shift >= 64 {
|
|
|
+ return ErrIntOverflowControl
|
|
|
+ }
|
|
|
+ if iNdEx >= l {
|
|
|
+ return io.ErrUnexpectedEOF
|
|
|
+ }
|
|
|
+ b := dAtA[iNdEx]
|
|
|
+ iNdEx++
|
|
|
+ v |= (int(b) & 0x7F) << shift
|
|
|
+ if b < 0x80 {
|
|
|
+ break
|
|
|
+ }
|
|
|
+ }
|
|
|
+ m.Mutable = bool(v != 0)
|
|
|
+ case 3:
|
|
|
+ if wireType != 0 {
|
|
|
+ return fmt.Errorf("proto: wrong wireType = %d for field InUse", wireType)
|
|
|
+ }
|
|
|
+ var v int
|
|
|
+ for shift := uint(0); ; shift += 7 {
|
|
|
+ if shift >= 64 {
|
|
|
+ return ErrIntOverflowControl
|
|
|
+ }
|
|
|
+ if iNdEx >= l {
|
|
|
+ return io.ErrUnexpectedEOF
|
|
|
+ }
|
|
|
+ b := dAtA[iNdEx]
|
|
|
+ iNdEx++
|
|
|
+ v |= (int(b) & 0x7F) << shift
|
|
|
+ if b < 0x80 {
|
|
|
+ break
|
|
|
+ }
|
|
|
+ }
|
|
|
+ m.InUse = bool(v != 0)
|
|
|
+ case 4:
|
|
|
+ if wireType != 0 {
|
|
|
+ return fmt.Errorf("proto: wrong wireType = %d for field Size_", wireType)
|
|
|
+ }
|
|
|
+ m.Size_ = 0
|
|
|
+ for shift := uint(0); ; shift += 7 {
|
|
|
+ if shift >= 64 {
|
|
|
+ return ErrIntOverflowControl
|
|
|
+ }
|
|
|
+ if iNdEx >= l {
|
|
|
+ return io.ErrUnexpectedEOF
|
|
|
+ }
|
|
|
+ b := dAtA[iNdEx]
|
|
|
+ iNdEx++
|
|
|
+ m.Size_ |= (int64(b) & 0x7F) << shift
|
|
|
+ if b < 0x80 {
|
|
|
+ break
|
|
|
+ }
|
|
|
+ }
|
|
|
+ case 5:
|
|
|
+ if wireType != 2 {
|
|
|
+ return fmt.Errorf("proto: wrong wireType = %d for field Parent", wireType)
|
|
|
+ }
|
|
|
+ var stringLen uint64
|
|
|
+ for shift := uint(0); ; shift += 7 {
|
|
|
+ if shift >= 64 {
|
|
|
+ return ErrIntOverflowControl
|
|
|
+ }
|
|
|
+ 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 ErrInvalidLengthControl
|
|
|
+ }
|
|
|
+ postIndex := iNdEx + intStringLen
|
|
|
+ if postIndex > l {
|
|
|
+ return io.ErrUnexpectedEOF
|
|
|
+ }
|
|
|
+ m.Parent = string(dAtA[iNdEx:postIndex])
|
|
|
+ iNdEx = postIndex
|
|
|
+ case 6:
|
|
|
+ if wireType != 2 {
|
|
|
+ return fmt.Errorf("proto: wrong wireType = %d for field CreatedAt", wireType)
|
|
|
+ }
|
|
|
+ var msglen int
|
|
|
+ for shift := uint(0); ; shift += 7 {
|
|
|
+ if shift >= 64 {
|
|
|
+ return ErrIntOverflowControl
|
|
|
+ }
|
|
|
+ if iNdEx >= l {
|
|
|
+ return io.ErrUnexpectedEOF
|
|
|
+ }
|
|
|
+ b := dAtA[iNdEx]
|
|
|
+ iNdEx++
|
|
|
+ msglen |= (int(b) & 0x7F) << shift
|
|
|
+ if b < 0x80 {
|
|
|
+ break
|
|
|
+ }
|
|
|
+ }
|
|
|
+ if msglen < 0 {
|
|
|
+ return ErrInvalidLengthControl
|
|
|
+ }
|
|
|
+ postIndex := iNdEx + msglen
|
|
|
+ if postIndex > l {
|
|
|
+ return io.ErrUnexpectedEOF
|
|
|
+ }
|
|
|
+ if err := types.StdTimeUnmarshal(&m.CreatedAt, dAtA[iNdEx:postIndex]); err != nil {
|
|
|
+ return err
|
|
|
+ }
|
|
|
+ iNdEx = postIndex
|
|
|
+ case 7:
|
|
|
+ if wireType != 2 {
|
|
|
+ return fmt.Errorf("proto: wrong wireType = %d for field LastUsedAt", wireType)
|
|
|
+ }
|
|
|
+ var msglen int
|
|
|
+ for shift := uint(0); ; shift += 7 {
|
|
|
+ if shift >= 64 {
|
|
|
+ return ErrIntOverflowControl
|
|
|
+ }
|
|
|
+ if iNdEx >= l {
|
|
|
+ return io.ErrUnexpectedEOF
|
|
|
+ }
|
|
|
+ b := dAtA[iNdEx]
|
|
|
+ iNdEx++
|
|
|
+ msglen |= (int(b) & 0x7F) << shift
|
|
|
+ if b < 0x80 {
|
|
|
+ break
|
|
|
+ }
|
|
|
+ }
|
|
|
+ if msglen < 0 {
|
|
|
+ return ErrInvalidLengthControl
|
|
|
+ }
|
|
|
+ postIndex := iNdEx + msglen
|
|
|
+ if postIndex > l {
|
|
|
+ return io.ErrUnexpectedEOF
|
|
|
+ }
|
|
|
+ if m.LastUsedAt == nil {
|
|
|
+ m.LastUsedAt = new(time.Time)
|
|
|
+ }
|
|
|
+ if err := types.StdTimeUnmarshal(m.LastUsedAt, dAtA[iNdEx:postIndex]); err != nil {
|
|
|
+ return err
|
|
|
+ }
|
|
|
+ iNdEx = postIndex
|
|
|
+ case 8:
|
|
|
+ if wireType != 0 {
|
|
|
+ return fmt.Errorf("proto: wrong wireType = %d for field UsageCount", wireType)
|
|
|
+ }
|
|
|
+ m.UsageCount = 0
|
|
|
+ for shift := uint(0); ; shift += 7 {
|
|
|
+ if shift >= 64 {
|
|
|
+ return ErrIntOverflowControl
|
|
|
+ }
|
|
|
+ if iNdEx >= l {
|
|
|
+ return io.ErrUnexpectedEOF
|
|
|
+ }
|
|
|
+ b := dAtA[iNdEx]
|
|
|
+ iNdEx++
|
|
|
+ m.UsageCount |= (int64(b) & 0x7F) << shift
|
|
|
+ if b < 0x80 {
|
|
|
+ break
|
|
|
+ }
|
|
|
+ }
|
|
|
+ case 9:
|
|
|
+ if wireType != 2 {
|
|
|
+ return fmt.Errorf("proto: wrong wireType = %d for field Description", wireType)
|
|
|
+ }
|
|
|
+ var stringLen uint64
|
|
|
+ for shift := uint(0); ; shift += 7 {
|
|
|
+ if shift >= 64 {
|
|
|
+ return ErrIntOverflowControl
|
|
|
+ }
|
|
|
+ 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 ErrInvalidLengthControl
|
|
|
+ }
|
|
|
+ postIndex := iNdEx + intStringLen
|
|
|
+ if postIndex > l {
|
|
|
+ return io.ErrUnexpectedEOF
|
|
|
+ }
|
|
|
+ m.Description = string(dAtA[iNdEx:postIndex])
|
|
|
+ iNdEx = postIndex
|
|
|
+ default:
|
|
|
+ iNdEx = preIndex
|
|
|
+ skippy, err := skipControl(dAtA[iNdEx:])
|
|
|
+ if err != nil {
|
|
|
+ return err
|
|
|
+ }
|
|
|
+ if skippy < 0 {
|
|
|
+ return ErrInvalidLengthControl
|
|
|
+ }
|
|
|
+ if (iNdEx + skippy) > l {
|
|
|
+ return io.ErrUnexpectedEOF
|
|
|
+ }
|
|
|
+ iNdEx += skippy
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ if iNdEx > l {
|
|
|
+ return io.ErrUnexpectedEOF
|
|
|
+ }
|
|
|
+ return nil
|
|
|
+}
|
|
|
+func (m *SolveRequest) 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 ErrIntOverflowControl
|
|
|
+ }
|
|
|
+ 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: SolveRequest: wiretype end group for non-group")
|
|
|
+ }
|
|
|
+ if fieldNum <= 0 {
|
|
|
+ return fmt.Errorf("proto: SolveRequest: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
|
+ }
|
|
|
+ switch fieldNum {
|
|
|
+ case 1:
|
|
|
+ if wireType != 2 {
|
|
|
+ return fmt.Errorf("proto: wrong wireType = %d for field Ref", wireType)
|
|
|
+ }
|
|
|
+ var stringLen uint64
|
|
|
+ for shift := uint(0); ; shift += 7 {
|
|
|
+ if shift >= 64 {
|
|
|
+ return ErrIntOverflowControl
|
|
|
+ }
|
|
|
+ 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 ErrInvalidLengthControl
|
|
|
+ }
|
|
|
+ postIndex := iNdEx + intStringLen
|
|
|
+ if postIndex > l {
|
|
|
+ return io.ErrUnexpectedEOF
|
|
|
+ }
|
|
|
+ m.Ref = string(dAtA[iNdEx:postIndex])
|
|
|
+ iNdEx = postIndex
|
|
|
+ case 2:
|
|
|
+ if wireType != 2 {
|
|
|
+ return fmt.Errorf("proto: wrong wireType = %d for field Definition", wireType)
|
|
|
+ }
|
|
|
+ var msglen int
|
|
|
+ for shift := uint(0); ; shift += 7 {
|
|
|
+ if shift >= 64 {
|
|
|
+ return ErrIntOverflowControl
|
|
|
+ }
|
|
|
+ if iNdEx >= l {
|
|
|
+ return io.ErrUnexpectedEOF
|
|
|
+ }
|
|
|
+ b := dAtA[iNdEx]
|
|
|
+ iNdEx++
|
|
|
+ msglen |= (int(b) & 0x7F) << shift
|
|
|
+ if b < 0x80 {
|
|
|
+ break
|
|
|
+ }
|
|
|
+ }
|
|
|
+ if msglen < 0 {
|
|
|
+ return ErrInvalidLengthControl
|
|
|
+ }
|
|
|
+ postIndex := iNdEx + msglen
|
|
|
+ if postIndex > l {
|
|
|
+ return io.ErrUnexpectedEOF
|
|
|
+ }
|
|
|
+ if m.Definition == nil {
|
|
|
+ m.Definition = &pb.Definition{}
|
|
|
+ }
|
|
|
+ if err := m.Definition.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
|
+ return err
|
|
|
+ }
|
|
|
+ iNdEx = postIndex
|
|
|
+ case 3:
|
|
|
+ if wireType != 2 {
|
|
|
+ return fmt.Errorf("proto: wrong wireType = %d for field Exporter", wireType)
|
|
|
+ }
|
|
|
+ var stringLen uint64
|
|
|
+ for shift := uint(0); ; shift += 7 {
|
|
|
+ if shift >= 64 {
|
|
|
+ return ErrIntOverflowControl
|
|
|
+ }
|
|
|
+ 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 ErrInvalidLengthControl
|
|
|
+ }
|
|
|
+ postIndex := iNdEx + intStringLen
|
|
|
+ if postIndex > l {
|
|
|
+ return io.ErrUnexpectedEOF
|
|
|
+ }
|
|
|
+ m.Exporter = string(dAtA[iNdEx:postIndex])
|
|
|
+ iNdEx = postIndex
|
|
|
+ case 4:
|
|
|
+ if wireType != 2 {
|
|
|
+ return fmt.Errorf("proto: wrong wireType = %d for field ExporterAttrs", wireType)
|
|
|
+ }
|
|
|
+ var msglen int
|
|
|
+ for shift := uint(0); ; shift += 7 {
|
|
|
+ if shift >= 64 {
|
|
|
+ return ErrIntOverflowControl
|
|
|
+ }
|
|
|
+ if iNdEx >= l {
|
|
|
+ return io.ErrUnexpectedEOF
|
|
|
+ }
|
|
|
+ b := dAtA[iNdEx]
|
|
|
+ iNdEx++
|
|
|
+ msglen |= (int(b) & 0x7F) << shift
|
|
|
+ if b < 0x80 {
|
|
|
+ break
|
|
|
+ }
|
|
|
+ }
|
|
|
+ if msglen < 0 {
|
|
|
+ return ErrInvalidLengthControl
|
|
|
+ }
|
|
|
+ postIndex := iNdEx + msglen
|
|
|
+ if postIndex > l {
|
|
|
+ return io.ErrUnexpectedEOF
|
|
|
+ }
|
|
|
+ if m.ExporterAttrs == nil {
|
|
|
+ m.ExporterAttrs = make(map[string]string)
|
|
|
+ }
|
|
|
+ var mapkey string
|
|
|
+ var mapvalue string
|
|
|
+ for iNdEx < postIndex {
|
|
|
+ entryPreIndex := iNdEx
|
|
|
+ var wire uint64
|
|
|
+ for shift := uint(0); ; shift += 7 {
|
|
|
+ if shift >= 64 {
|
|
|
+ return ErrIntOverflowControl
|
|
|
+ }
|
|
|
+ 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 ErrIntOverflowControl
|
|
|
+ }
|
|
|
+ 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 ErrInvalidLengthControl
|
|
|
+ }
|
|
|
+ postStringIndexmapkey := iNdEx + intStringLenmapkey
|
|
|
+ if postStringIndexmapkey > l {
|
|
|
+ return io.ErrUnexpectedEOF
|
|
|
+ }
|
|
|
+ mapkey = string(dAtA[iNdEx:postStringIndexmapkey])
|
|
|
+ iNdEx = postStringIndexmapkey
|
|
|
+ } else if fieldNum == 2 {
|
|
|
+ var stringLenmapvalue uint64
|
|
|
+ for shift := uint(0); ; shift += 7 {
|
|
|
+ if shift >= 64 {
|
|
|
+ return ErrIntOverflowControl
|
|
|
+ }
|
|
|
+ if iNdEx >= l {
|
|
|
+ return io.ErrUnexpectedEOF
|
|
|
+ }
|
|
|
+ b := dAtA[iNdEx]
|
|
|
+ iNdEx++
|
|
|
+ stringLenmapvalue |= (uint64(b) & 0x7F) << shift
|
|
|
+ if b < 0x80 {
|
|
|
+ break
|
|
|
+ }
|
|
|
+ }
|
|
|
+ intStringLenmapvalue := int(stringLenmapvalue)
|
|
|
+ if intStringLenmapvalue < 0 {
|
|
|
+ return ErrInvalidLengthControl
|
|
|
+ }
|
|
|
+ postStringIndexmapvalue := iNdEx + intStringLenmapvalue
|
|
|
+ if postStringIndexmapvalue > l {
|
|
|
+ return io.ErrUnexpectedEOF
|
|
|
+ }
|
|
|
+ mapvalue = string(dAtA[iNdEx:postStringIndexmapvalue])
|
|
|
+ iNdEx = postStringIndexmapvalue
|
|
|
+ } else {
|
|
|
+ iNdEx = entryPreIndex
|
|
|
+ skippy, err := skipControl(dAtA[iNdEx:])
|
|
|
+ if err != nil {
|
|
|
+ return err
|
|
|
+ }
|
|
|
+ if skippy < 0 {
|
|
|
+ return ErrInvalidLengthControl
|
|
|
+ }
|
|
|
+ if (iNdEx + skippy) > postIndex {
|
|
|
+ return io.ErrUnexpectedEOF
|
|
|
+ }
|
|
|
+ iNdEx += skippy
|
|
|
+ }
|
|
|
+ }
|
|
|
+ m.ExporterAttrs[mapkey] = mapvalue
|
|
|
+ iNdEx = postIndex
|
|
|
+ case 5:
|
|
|
+ if wireType != 2 {
|
|
|
+ return fmt.Errorf("proto: wrong wireType = %d for field Session", wireType)
|
|
|
+ }
|
|
|
+ var stringLen uint64
|
|
|
+ for shift := uint(0); ; shift += 7 {
|
|
|
+ if shift >= 64 {
|
|
|
+ return ErrIntOverflowControl
|
|
|
+ }
|
|
|
+ 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 ErrInvalidLengthControl
|
|
|
+ }
|
|
|
+ postIndex := iNdEx + intStringLen
|
|
|
+ if postIndex > l {
|
|
|
+ return io.ErrUnexpectedEOF
|
|
|
+ }
|
|
|
+ m.Session = string(dAtA[iNdEx:postIndex])
|
|
|
+ iNdEx = postIndex
|
|
|
+ case 6:
|
|
|
+ if wireType != 2 {
|
|
|
+ return fmt.Errorf("proto: wrong wireType = %d for field Frontend", wireType)
|
|
|
+ }
|
|
|
+ var stringLen uint64
|
|
|
+ for shift := uint(0); ; shift += 7 {
|
|
|
+ if shift >= 64 {
|
|
|
+ return ErrIntOverflowControl
|
|
|
+ }
|
|
|
+ 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 ErrInvalidLengthControl
|
|
|
+ }
|
|
|
+ postIndex := iNdEx + intStringLen
|
|
|
+ if postIndex > l {
|
|
|
+ return io.ErrUnexpectedEOF
|
|
|
+ }
|
|
|
+ m.Frontend = string(dAtA[iNdEx:postIndex])
|
|
|
+ iNdEx = postIndex
|
|
|
+ case 7:
|
|
|
+ if wireType != 2 {
|
|
|
+ return fmt.Errorf("proto: wrong wireType = %d for field FrontendAttrs", wireType)
|
|
|
+ }
|
|
|
+ var msglen int
|
|
|
+ for shift := uint(0); ; shift += 7 {
|
|
|
+ if shift >= 64 {
|
|
|
+ return ErrIntOverflowControl
|
|
|
+ }
|
|
|
+ if iNdEx >= l {
|
|
|
+ return io.ErrUnexpectedEOF
|
|
|
+ }
|
|
|
+ b := dAtA[iNdEx]
|
|
|
+ iNdEx++
|
|
|
+ msglen |= (int(b) & 0x7F) << shift
|
|
|
+ if b < 0x80 {
|
|
|
+ break
|
|
|
+ }
|
|
|
+ }
|
|
|
+ if msglen < 0 {
|
|
|
+ return ErrInvalidLengthControl
|
|
|
+ }
|
|
|
+ postIndex := iNdEx + msglen
|
|
|
+ if postIndex > l {
|
|
|
+ return io.ErrUnexpectedEOF
|
|
|
+ }
|
|
|
+ if m.FrontendAttrs == nil {
|
|
|
+ m.FrontendAttrs = make(map[string]string)
|
|
|
+ }
|
|
|
+ var mapkey string
|
|
|
+ var mapvalue string
|
|
|
+ for iNdEx < postIndex {
|
|
|
+ entryPreIndex := iNdEx
|
|
|
+ var wire uint64
|
|
|
+ for shift := uint(0); ; shift += 7 {
|
|
|
+ if shift >= 64 {
|
|
|
+ return ErrIntOverflowControl
|
|
|
+ }
|
|
|
+ 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 ErrIntOverflowControl
|
|
|
+ }
|
|
|
+ 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 ErrInvalidLengthControl
|
|
|
+ }
|
|
|
+ postStringIndexmapkey := iNdEx + intStringLenmapkey
|
|
|
+ if postStringIndexmapkey > l {
|
|
|
+ return io.ErrUnexpectedEOF
|
|
|
+ }
|
|
|
+ mapkey = string(dAtA[iNdEx:postStringIndexmapkey])
|
|
|
+ iNdEx = postStringIndexmapkey
|
|
|
+ } else if fieldNum == 2 {
|
|
|
+ var stringLenmapvalue uint64
|
|
|
+ for shift := uint(0); ; shift += 7 {
|
|
|
+ if shift >= 64 {
|
|
|
+ return ErrIntOverflowControl
|
|
|
+ }
|
|
|
+ if iNdEx >= l {
|
|
|
+ return io.ErrUnexpectedEOF
|
|
|
+ }
|
|
|
+ b := dAtA[iNdEx]
|
|
|
+ iNdEx++
|
|
|
+ stringLenmapvalue |= (uint64(b) & 0x7F) << shift
|
|
|
+ if b < 0x80 {
|
|
|
+ break
|
|
|
+ }
|
|
|
+ }
|
|
|
+ intStringLenmapvalue := int(stringLenmapvalue)
|
|
|
+ if intStringLenmapvalue < 0 {
|
|
|
+ return ErrInvalidLengthControl
|
|
|
+ }
|
|
|
+ postStringIndexmapvalue := iNdEx + intStringLenmapvalue
|
|
|
+ if postStringIndexmapvalue > l {
|
|
|
+ return io.ErrUnexpectedEOF
|
|
|
+ }
|
|
|
+ mapvalue = string(dAtA[iNdEx:postStringIndexmapvalue])
|
|
|
+ iNdEx = postStringIndexmapvalue
|
|
|
+ } else {
|
|
|
+ iNdEx = entryPreIndex
|
|
|
+ skippy, err := skipControl(dAtA[iNdEx:])
|
|
|
+ if err != nil {
|
|
|
+ return err
|
|
|
+ }
|
|
|
+ if skippy < 0 {
|
|
|
+ return ErrInvalidLengthControl
|
|
|
+ }
|
|
|
+ if (iNdEx + skippy) > postIndex {
|
|
|
+ return io.ErrUnexpectedEOF
|
|
|
+ }
|
|
|
+ iNdEx += skippy
|
|
|
+ }
|
|
|
+ }
|
|
|
+ m.FrontendAttrs[mapkey] = mapvalue
|
|
|
+ iNdEx = postIndex
|
|
|
+ case 8:
|
|
|
+ if wireType != 2 {
|
|
|
+ return fmt.Errorf("proto: wrong wireType = %d for field Cache", wireType)
|
|
|
+ }
|
|
|
+ var msglen int
|
|
|
+ for shift := uint(0); ; shift += 7 {
|
|
|
+ if shift >= 64 {
|
|
|
+ return ErrIntOverflowControl
|
|
|
+ }
|
|
|
+ if iNdEx >= l {
|
|
|
+ return io.ErrUnexpectedEOF
|
|
|
+ }
|
|
|
+ b := dAtA[iNdEx]
|
|
|
+ iNdEx++
|
|
|
+ msglen |= (int(b) & 0x7F) << shift
|
|
|
+ if b < 0x80 {
|
|
|
+ break
|
|
|
+ }
|
|
|
+ }
|
|
|
+ if msglen < 0 {
|
|
|
+ return ErrInvalidLengthControl
|
|
|
+ }
|
|
|
+ postIndex := iNdEx + msglen
|
|
|
+ if postIndex > l {
|
|
|
+ return io.ErrUnexpectedEOF
|
|
|
+ }
|
|
|
+ if err := m.Cache.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
|
+ return err
|
|
|
+ }
|
|
|
+ iNdEx = postIndex
|
|
|
+ default:
|
|
|
+ iNdEx = preIndex
|
|
|
+ skippy, err := skipControl(dAtA[iNdEx:])
|
|
|
+ if err != nil {
|
|
|
+ return err
|
|
|
+ }
|
|
|
+ if skippy < 0 {
|
|
|
+ return ErrInvalidLengthControl
|
|
|
+ }
|
|
|
+ if (iNdEx + skippy) > l {
|
|
|
+ return io.ErrUnexpectedEOF
|
|
|
+ }
|
|
|
+ iNdEx += skippy
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ if iNdEx > l {
|
|
|
+ return io.ErrUnexpectedEOF
|
|
|
+ }
|
|
|
+ return nil
|
|
|
+}
|
|
|
+func (m *CacheOptions) 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 ErrIntOverflowControl
|
|
|
+ }
|
|
|
+ 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: CacheOptions: wiretype end group for non-group")
|
|
|
+ }
|
|
|
+ if fieldNum <= 0 {
|
|
|
+ return fmt.Errorf("proto: CacheOptions: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
|
+ }
|
|
|
+ switch fieldNum {
|
|
|
+ case 1:
|
|
|
+ if wireType != 2 {
|
|
|
+ return fmt.Errorf("proto: wrong wireType = %d for field ExportRef", wireType)
|
|
|
+ }
|
|
|
+ var stringLen uint64
|
|
|
+ for shift := uint(0); ; shift += 7 {
|
|
|
+ if shift >= 64 {
|
|
|
+ return ErrIntOverflowControl
|
|
|
+ }
|
|
|
+ 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 ErrInvalidLengthControl
|
|
|
+ }
|
|
|
+ postIndex := iNdEx + intStringLen
|
|
|
+ if postIndex > l {
|
|
|
+ return io.ErrUnexpectedEOF
|
|
|
+ }
|
|
|
+ m.ExportRef = string(dAtA[iNdEx:postIndex])
|
|
|
+ iNdEx = postIndex
|
|
|
+ case 2:
|
|
|
+ if wireType != 2 {
|
|
|
+ return fmt.Errorf("proto: wrong wireType = %d for field ImportRefs", wireType)
|
|
|
+ }
|
|
|
+ var stringLen uint64
|
|
|
+ for shift := uint(0); ; shift += 7 {
|
|
|
+ if shift >= 64 {
|
|
|
+ return ErrIntOverflowControl
|
|
|
+ }
|
|
|
+ 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 ErrInvalidLengthControl
|
|
|
+ }
|
|
|
+ postIndex := iNdEx + intStringLen
|
|
|
+ if postIndex > l {
|
|
|
+ return io.ErrUnexpectedEOF
|
|
|
+ }
|
|
|
+ m.ImportRefs = append(m.ImportRefs, string(dAtA[iNdEx:postIndex]))
|
|
|
+ iNdEx = postIndex
|
|
|
+ case 3:
|
|
|
+ if wireType != 2 {
|
|
|
+ return fmt.Errorf("proto: wrong wireType = %d for field ExportAttrs", wireType)
|
|
|
+ }
|
|
|
+ var msglen int
|
|
|
+ for shift := uint(0); ; shift += 7 {
|
|
|
+ if shift >= 64 {
|
|
|
+ return ErrIntOverflowControl
|
|
|
+ }
|
|
|
+ if iNdEx >= l {
|
|
|
+ return io.ErrUnexpectedEOF
|
|
|
+ }
|
|
|
+ b := dAtA[iNdEx]
|
|
|
+ iNdEx++
|
|
|
+ msglen |= (int(b) & 0x7F) << shift
|
|
|
+ if b < 0x80 {
|
|
|
+ break
|
|
|
+ }
|
|
|
+ }
|
|
|
+ if msglen < 0 {
|
|
|
+ return ErrInvalidLengthControl
|
|
|
+ }
|
|
|
+ postIndex := iNdEx + msglen
|
|
|
+ if postIndex > l {
|
|
|
+ return io.ErrUnexpectedEOF
|
|
|
+ }
|
|
|
+ if m.ExportAttrs == nil {
|
|
|
+ m.ExportAttrs = make(map[string]string)
|
|
|
+ }
|
|
|
+ var mapkey string
|
|
|
+ var mapvalue string
|
|
|
+ for iNdEx < postIndex {
|
|
|
+ entryPreIndex := iNdEx
|
|
|
+ var wire uint64
|
|
|
+ for shift := uint(0); ; shift += 7 {
|
|
|
+ if shift >= 64 {
|
|
|
+ return ErrIntOverflowControl
|
|
|
+ }
|
|
|
+ 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 ErrIntOverflowControl
|
|
|
+ }
|
|
|
+ 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 ErrInvalidLengthControl
|
|
|
+ }
|
|
|
+ postStringIndexmapkey := iNdEx + intStringLenmapkey
|
|
|
+ if postStringIndexmapkey > l {
|
|
|
+ return io.ErrUnexpectedEOF
|
|
|
+ }
|
|
|
+ mapkey = string(dAtA[iNdEx:postStringIndexmapkey])
|
|
|
+ iNdEx = postStringIndexmapkey
|
|
|
+ } else if fieldNum == 2 {
|
|
|
+ var stringLenmapvalue uint64
|
|
|
+ for shift := uint(0); ; shift += 7 {
|
|
|
+ if shift >= 64 {
|
|
|
+ return ErrIntOverflowControl
|
|
|
+ }
|
|
|
+ if iNdEx >= l {
|
|
|
+ return io.ErrUnexpectedEOF
|
|
|
+ }
|
|
|
+ b := dAtA[iNdEx]
|
|
|
+ iNdEx++
|
|
|
+ stringLenmapvalue |= (uint64(b) & 0x7F) << shift
|
|
|
+ if b < 0x80 {
|
|
|
+ break
|
|
|
+ }
|
|
|
+ }
|
|
|
+ intStringLenmapvalue := int(stringLenmapvalue)
|
|
|
+ if intStringLenmapvalue < 0 {
|
|
|
+ return ErrInvalidLengthControl
|
|
|
+ }
|
|
|
+ postStringIndexmapvalue := iNdEx + intStringLenmapvalue
|
|
|
+ if postStringIndexmapvalue > l {
|
|
|
+ return io.ErrUnexpectedEOF
|
|
|
+ }
|
|
|
+ mapvalue = string(dAtA[iNdEx:postStringIndexmapvalue])
|
|
|
+ iNdEx = postStringIndexmapvalue
|
|
|
+ } else {
|
|
|
+ iNdEx = entryPreIndex
|
|
|
+ skippy, err := skipControl(dAtA[iNdEx:])
|
|
|
+ if err != nil {
|
|
|
+ return err
|
|
|
+ }
|
|
|
+ if skippy < 0 {
|
|
|
+ return ErrInvalidLengthControl
|
|
|
+ }
|
|
|
+ if (iNdEx + skippy) > postIndex {
|
|
|
+ return io.ErrUnexpectedEOF
|
|
|
+ }
|
|
|
+ iNdEx += skippy
|
|
|
+ }
|
|
|
+ }
|
|
|
+ m.ExportAttrs[mapkey] = mapvalue
|
|
|
+ iNdEx = postIndex
|
|
|
+ default:
|
|
|
+ iNdEx = preIndex
|
|
|
+ skippy, err := skipControl(dAtA[iNdEx:])
|
|
|
+ if err != nil {
|
|
|
+ return err
|
|
|
+ }
|
|
|
+ if skippy < 0 {
|
|
|
+ return ErrInvalidLengthControl
|
|
|
+ }
|
|
|
+ if (iNdEx + skippy) > l {
|
|
|
+ return io.ErrUnexpectedEOF
|
|
|
+ }
|
|
|
+ iNdEx += skippy
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ if iNdEx > l {
|
|
|
+ return io.ErrUnexpectedEOF
|
|
|
+ }
|
|
|
+ return nil
|
|
|
+}
|
|
|
+func (m *SolveResponse) 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 ErrIntOverflowControl
|
|
|
+ }
|
|
|
+ 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: SolveResponse: wiretype end group for non-group")
|
|
|
+ }
|
|
|
+ if fieldNum <= 0 {
|
|
|
+ return fmt.Errorf("proto: SolveResponse: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
|
+ }
|
|
|
+ switch fieldNum {
|
|
|
+ case 1:
|
|
|
+ if wireType != 2 {
|
|
|
+ return fmt.Errorf("proto: wrong wireType = %d for field ExporterResponse", wireType)
|
|
|
+ }
|
|
|
+ var msglen int
|
|
|
+ for shift := uint(0); ; shift += 7 {
|
|
|
+ if shift >= 64 {
|
|
|
+ return ErrIntOverflowControl
|
|
|
+ }
|
|
|
+ if iNdEx >= l {
|
|
|
+ return io.ErrUnexpectedEOF
|
|
|
+ }
|
|
|
+ b := dAtA[iNdEx]
|
|
|
+ iNdEx++
|
|
|
+ msglen |= (int(b) & 0x7F) << shift
|
|
|
+ if b < 0x80 {
|
|
|
+ break
|
|
|
+ }
|
|
|
+ }
|
|
|
+ if msglen < 0 {
|
|
|
+ return ErrInvalidLengthControl
|
|
|
+ }
|
|
|
+ postIndex := iNdEx + msglen
|
|
|
+ if postIndex > l {
|
|
|
+ return io.ErrUnexpectedEOF
|
|
|
+ }
|
|
|
+ if m.ExporterResponse == nil {
|
|
|
+ m.ExporterResponse = make(map[string]string)
|
|
|
+ }
|
|
|
+ var mapkey string
|
|
|
+ var mapvalue string
|
|
|
+ for iNdEx < postIndex {
|
|
|
+ entryPreIndex := iNdEx
|
|
|
+ var wire uint64
|
|
|
+ for shift := uint(0); ; shift += 7 {
|
|
|
+ if shift >= 64 {
|
|
|
+ return ErrIntOverflowControl
|
|
|
+ }
|
|
|
+ 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 ErrIntOverflowControl
|
|
|
+ }
|
|
|
+ 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 ErrInvalidLengthControl
|
|
|
+ }
|
|
|
+ postStringIndexmapkey := iNdEx + intStringLenmapkey
|
|
|
+ if postStringIndexmapkey > l {
|
|
|
+ return io.ErrUnexpectedEOF
|
|
|
+ }
|
|
|
+ mapkey = string(dAtA[iNdEx:postStringIndexmapkey])
|
|
|
+ iNdEx = postStringIndexmapkey
|
|
|
+ } else if fieldNum == 2 {
|
|
|
+ var stringLenmapvalue uint64
|
|
|
+ for shift := uint(0); ; shift += 7 {
|
|
|
+ if shift >= 64 {
|
|
|
+ return ErrIntOverflowControl
|
|
|
+ }
|
|
|
+ if iNdEx >= l {
|
|
|
+ return io.ErrUnexpectedEOF
|
|
|
+ }
|
|
|
+ b := dAtA[iNdEx]
|
|
|
+ iNdEx++
|
|
|
+ stringLenmapvalue |= (uint64(b) & 0x7F) << shift
|
|
|
+ if b < 0x80 {
|
|
|
+ break
|
|
|
+ }
|
|
|
+ }
|
|
|
+ intStringLenmapvalue := int(stringLenmapvalue)
|
|
|
+ if intStringLenmapvalue < 0 {
|
|
|
+ return ErrInvalidLengthControl
|
|
|
+ }
|
|
|
+ postStringIndexmapvalue := iNdEx + intStringLenmapvalue
|
|
|
+ if postStringIndexmapvalue > l {
|
|
|
+ return io.ErrUnexpectedEOF
|
|
|
+ }
|
|
|
+ mapvalue = string(dAtA[iNdEx:postStringIndexmapvalue])
|
|
|
+ iNdEx = postStringIndexmapvalue
|
|
|
+ } else {
|
|
|
+ iNdEx = entryPreIndex
|
|
|
+ skippy, err := skipControl(dAtA[iNdEx:])
|
|
|
+ if err != nil {
|
|
|
+ return err
|
|
|
+ }
|
|
|
+ if skippy < 0 {
|
|
|
+ return ErrInvalidLengthControl
|
|
|
+ }
|
|
|
+ if (iNdEx + skippy) > postIndex {
|
|
|
+ return io.ErrUnexpectedEOF
|
|
|
+ }
|
|
|
+ iNdEx += skippy
|
|
|
+ }
|
|
|
+ }
|
|
|
+ m.ExporterResponse[mapkey] = mapvalue
|
|
|
+ iNdEx = postIndex
|
|
|
+ default:
|
|
|
+ iNdEx = preIndex
|
|
|
+ skippy, err := skipControl(dAtA[iNdEx:])
|
|
|
+ if err != nil {
|
|
|
+ return err
|
|
|
+ }
|
|
|
+ if skippy < 0 {
|
|
|
+ return ErrInvalidLengthControl
|
|
|
+ }
|
|
|
+ if (iNdEx + skippy) > l {
|
|
|
+ return io.ErrUnexpectedEOF
|
|
|
+ }
|
|
|
+ iNdEx += skippy
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ if iNdEx > l {
|
|
|
+ return io.ErrUnexpectedEOF
|
|
|
+ }
|
|
|
+ return nil
|
|
|
+}
|
|
|
+func (m *StatusRequest) 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 ErrIntOverflowControl
|
|
|
+ }
|
|
|
+ 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: StatusRequest: wiretype end group for non-group")
|
|
|
+ }
|
|
|
+ if fieldNum <= 0 {
|
|
|
+ return fmt.Errorf("proto: StatusRequest: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
|
+ }
|
|
|
+ switch fieldNum {
|
|
|
+ case 1:
|
|
|
+ if wireType != 2 {
|
|
|
+ return fmt.Errorf("proto: wrong wireType = %d for field Ref", wireType)
|
|
|
+ }
|
|
|
+ var stringLen uint64
|
|
|
+ for shift := uint(0); ; shift += 7 {
|
|
|
+ if shift >= 64 {
|
|
|
+ return ErrIntOverflowControl
|
|
|
+ }
|
|
|
+ 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 ErrInvalidLengthControl
|
|
|
+ }
|
|
|
+ postIndex := iNdEx + intStringLen
|
|
|
+ if postIndex > l {
|
|
|
+ return io.ErrUnexpectedEOF
|
|
|
+ }
|
|
|
+ m.Ref = string(dAtA[iNdEx:postIndex])
|
|
|
+ iNdEx = postIndex
|
|
|
+ default:
|
|
|
+ iNdEx = preIndex
|
|
|
+ skippy, err := skipControl(dAtA[iNdEx:])
|
|
|
+ if err != nil {
|
|
|
+ return err
|
|
|
+ }
|
|
|
+ if skippy < 0 {
|
|
|
+ return ErrInvalidLengthControl
|
|
|
+ }
|
|
|
+ if (iNdEx + skippy) > l {
|
|
|
+ return io.ErrUnexpectedEOF
|
|
|
+ }
|
|
|
+ iNdEx += skippy
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ if iNdEx > l {
|
|
|
+ return io.ErrUnexpectedEOF
|
|
|
+ }
|
|
|
+ return nil
|
|
|
+}
|
|
|
+func (m *StatusResponse) 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 ErrIntOverflowControl
|
|
|
+ }
|
|
|
+ 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: StatusResponse: wiretype end group for non-group")
|
|
|
+ }
|
|
|
+ if fieldNum <= 0 {
|
|
|
+ return fmt.Errorf("proto: StatusResponse: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
|
+ }
|
|
|
+ switch fieldNum {
|
|
|
+ case 1:
|
|
|
+ if wireType != 2 {
|
|
|
+ return fmt.Errorf("proto: wrong wireType = %d for field Vertexes", wireType)
|
|
|
+ }
|
|
|
+ var msglen int
|
|
|
+ for shift := uint(0); ; shift += 7 {
|
|
|
+ if shift >= 64 {
|
|
|
+ return ErrIntOverflowControl
|
|
|
+ }
|
|
|
+ if iNdEx >= l {
|
|
|
+ return io.ErrUnexpectedEOF
|
|
|
+ }
|
|
|
+ b := dAtA[iNdEx]
|
|
|
+ iNdEx++
|
|
|
+ msglen |= (int(b) & 0x7F) << shift
|
|
|
+ if b < 0x80 {
|
|
|
+ break
|
|
|
+ }
|
|
|
+ }
|
|
|
+ if msglen < 0 {
|
|
|
+ return ErrInvalidLengthControl
|
|
|
+ }
|
|
|
+ postIndex := iNdEx + msglen
|
|
|
+ if postIndex > l {
|
|
|
+ return io.ErrUnexpectedEOF
|
|
|
+ }
|
|
|
+ m.Vertexes = append(m.Vertexes, &Vertex{})
|
|
|
+ if err := m.Vertexes[len(m.Vertexes)-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 Statuses", wireType)
|
|
|
+ }
|
|
|
+ var msglen int
|
|
|
+ for shift := uint(0); ; shift += 7 {
|
|
|
+ if shift >= 64 {
|
|
|
+ return ErrIntOverflowControl
|
|
|
+ }
|
|
|
+ if iNdEx >= l {
|
|
|
+ return io.ErrUnexpectedEOF
|
|
|
+ }
|
|
|
+ b := dAtA[iNdEx]
|
|
|
+ iNdEx++
|
|
|
+ msglen |= (int(b) & 0x7F) << shift
|
|
|
+ if b < 0x80 {
|
|
|
+ break
|
|
|
+ }
|
|
|
+ }
|
|
|
+ if msglen < 0 {
|
|
|
+ return ErrInvalidLengthControl
|
|
|
+ }
|
|
|
+ postIndex := iNdEx + msglen
|
|
|
+ if postIndex > l {
|
|
|
+ return io.ErrUnexpectedEOF
|
|
|
+ }
|
|
|
+ m.Statuses = append(m.Statuses, &VertexStatus{})
|
|
|
+ if err := m.Statuses[len(m.Statuses)-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 Logs", wireType)
|
|
|
+ }
|
|
|
+ var msglen int
|
|
|
+ for shift := uint(0); ; shift += 7 {
|
|
|
+ if shift >= 64 {
|
|
|
+ return ErrIntOverflowControl
|
|
|
+ }
|
|
|
+ if iNdEx >= l {
|
|
|
+ return io.ErrUnexpectedEOF
|
|
|
+ }
|
|
|
+ b := dAtA[iNdEx]
|
|
|
+ iNdEx++
|
|
|
+ msglen |= (int(b) & 0x7F) << shift
|
|
|
+ if b < 0x80 {
|
|
|
+ break
|
|
|
+ }
|
|
|
+ }
|
|
|
+ if msglen < 0 {
|
|
|
+ return ErrInvalidLengthControl
|
|
|
+ }
|
|
|
+ postIndex := iNdEx + msglen
|
|
|
+ if postIndex > l {
|
|
|
+ return io.ErrUnexpectedEOF
|
|
|
+ }
|
|
|
+ m.Logs = append(m.Logs, &VertexLog{})
|
|
|
+ if err := m.Logs[len(m.Logs)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
|
+ return err
|
|
|
+ }
|
|
|
+ iNdEx = postIndex
|
|
|
+ default:
|
|
|
+ iNdEx = preIndex
|
|
|
+ skippy, err := skipControl(dAtA[iNdEx:])
|
|
|
+ if err != nil {
|
|
|
+ return err
|
|
|
+ }
|
|
|
+ if skippy < 0 {
|
|
|
+ return ErrInvalidLengthControl
|
|
|
+ }
|
|
|
+ if (iNdEx + skippy) > l {
|
|
|
+ return io.ErrUnexpectedEOF
|
|
|
+ }
|
|
|
+ iNdEx += skippy
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ if iNdEx > l {
|
|
|
+ return io.ErrUnexpectedEOF
|
|
|
+ }
|
|
|
+ return nil
|
|
|
+}
|
|
|
+func (m *Vertex) 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 ErrIntOverflowControl
|
|
|
+ }
|
|
|
+ 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: Vertex: wiretype end group for non-group")
|
|
|
+ }
|
|
|
+ if fieldNum <= 0 {
|
|
|
+ return fmt.Errorf("proto: Vertex: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
|
+ }
|
|
|
+ switch fieldNum {
|
|
|
+ case 1:
|
|
|
+ if wireType != 2 {
|
|
|
+ return fmt.Errorf("proto: wrong wireType = %d for field Digest", wireType)
|
|
|
+ }
|
|
|
+ var stringLen uint64
|
|
|
+ for shift := uint(0); ; shift += 7 {
|
|
|
+ if shift >= 64 {
|
|
|
+ return ErrIntOverflowControl
|
|
|
+ }
|
|
|
+ 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 ErrInvalidLengthControl
|
|
|
+ }
|
|
|
+ postIndex := iNdEx + intStringLen
|
|
|
+ if postIndex > l {
|
|
|
+ return io.ErrUnexpectedEOF
|
|
|
+ }
|
|
|
+ m.Digest = github_com_opencontainers_go_digest.Digest(dAtA[iNdEx:postIndex])
|
|
|
+ iNdEx = postIndex
|
|
|
+ case 2:
|
|
|
+ if wireType != 2 {
|
|
|
+ return fmt.Errorf("proto: wrong wireType = %d for field Inputs", wireType)
|
|
|
+ }
|
|
|
+ var stringLen uint64
|
|
|
+ for shift := uint(0); ; shift += 7 {
|
|
|
+ if shift >= 64 {
|
|
|
+ return ErrIntOverflowControl
|
|
|
+ }
|
|
|
+ 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 ErrInvalidLengthControl
|
|
|
+ }
|
|
|
+ postIndex := iNdEx + intStringLen
|
|
|
+ if postIndex > l {
|
|
|
+ return io.ErrUnexpectedEOF
|
|
|
+ }
|
|
|
+ m.Inputs = append(m.Inputs, github_com_opencontainers_go_digest.Digest(dAtA[iNdEx:postIndex]))
|
|
|
+ iNdEx = postIndex
|
|
|
+ case 3:
|
|
|
+ if wireType != 2 {
|
|
|
+ return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType)
|
|
|
+ }
|
|
|
+ var stringLen uint64
|
|
|
+ for shift := uint(0); ; shift += 7 {
|
|
|
+ if shift >= 64 {
|
|
|
+ return ErrIntOverflowControl
|
|
|
+ }
|
|
|
+ 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 ErrInvalidLengthControl
|
|
|
+ }
|
|
|
+ postIndex := iNdEx + intStringLen
|
|
|
+ if postIndex > l {
|
|
|
+ return io.ErrUnexpectedEOF
|
|
|
+ }
|
|
|
+ m.Name = string(dAtA[iNdEx:postIndex])
|
|
|
+ iNdEx = postIndex
|
|
|
+ case 4:
|
|
|
+ if wireType != 0 {
|
|
|
+ return fmt.Errorf("proto: wrong wireType = %d for field Cached", wireType)
|
|
|
+ }
|
|
|
+ var v int
|
|
|
+ for shift := uint(0); ; shift += 7 {
|
|
|
+ if shift >= 64 {
|
|
|
+ return ErrIntOverflowControl
|
|
|
+ }
|
|
|
+ if iNdEx >= l {
|
|
|
+ return io.ErrUnexpectedEOF
|
|
|
+ }
|
|
|
+ b := dAtA[iNdEx]
|
|
|
+ iNdEx++
|
|
|
+ v |= (int(b) & 0x7F) << shift
|
|
|
+ if b < 0x80 {
|
|
|
+ break
|
|
|
+ }
|
|
|
+ }
|
|
|
+ m.Cached = bool(v != 0)
|
|
|
+ case 5:
|
|
|
+ if wireType != 2 {
|
|
|
+ return fmt.Errorf("proto: wrong wireType = %d for field Started", wireType)
|
|
|
+ }
|
|
|
+ var msglen int
|
|
|
+ for shift := uint(0); ; shift += 7 {
|
|
|
+ if shift >= 64 {
|
|
|
+ return ErrIntOverflowControl
|
|
|
+ }
|
|
|
+ if iNdEx >= l {
|
|
|
+ return io.ErrUnexpectedEOF
|
|
|
+ }
|
|
|
+ b := dAtA[iNdEx]
|
|
|
+ iNdEx++
|
|
|
+ msglen |= (int(b) & 0x7F) << shift
|
|
|
+ if b < 0x80 {
|
|
|
+ break
|
|
|
+ }
|
|
|
+ }
|
|
|
+ if msglen < 0 {
|
|
|
+ return ErrInvalidLengthControl
|
|
|
+ }
|
|
|
+ postIndex := iNdEx + msglen
|
|
|
+ if postIndex > l {
|
|
|
+ return io.ErrUnexpectedEOF
|
|
|
+ }
|
|
|
+ if m.Started == nil {
|
|
|
+ m.Started = new(time.Time)
|
|
|
+ }
|
|
|
+ if err := types.StdTimeUnmarshal(m.Started, dAtA[iNdEx:postIndex]); err != nil {
|
|
|
+ return err
|
|
|
+ }
|
|
|
+ iNdEx = postIndex
|
|
|
+ case 6:
|
|
|
+ if wireType != 2 {
|
|
|
+ return fmt.Errorf("proto: wrong wireType = %d for field Completed", wireType)
|
|
|
+ }
|
|
|
+ var msglen int
|
|
|
+ for shift := uint(0); ; shift += 7 {
|
|
|
+ if shift >= 64 {
|
|
|
+ return ErrIntOverflowControl
|
|
|
+ }
|
|
|
+ if iNdEx >= l {
|
|
|
+ return io.ErrUnexpectedEOF
|
|
|
+ }
|
|
|
+ b := dAtA[iNdEx]
|
|
|
+ iNdEx++
|
|
|
+ msglen |= (int(b) & 0x7F) << shift
|
|
|
+ if b < 0x80 {
|
|
|
+ break
|
|
|
+ }
|
|
|
+ }
|
|
|
+ if msglen < 0 {
|
|
|
+ return ErrInvalidLengthControl
|
|
|
+ }
|
|
|
+ postIndex := iNdEx + msglen
|
|
|
+ if postIndex > l {
|
|
|
+ return io.ErrUnexpectedEOF
|
|
|
+ }
|
|
|
+ if m.Completed == nil {
|
|
|
+ m.Completed = new(time.Time)
|
|
|
+ }
|
|
|
+ if err := types.StdTimeUnmarshal(m.Completed, dAtA[iNdEx:postIndex]); err != nil {
|
|
|
+ return err
|
|
|
+ }
|
|
|
+ iNdEx = postIndex
|
|
|
+ case 7:
|
|
|
+ if wireType != 2 {
|
|
|
+ return fmt.Errorf("proto: wrong wireType = %d for field Error", wireType)
|
|
|
+ }
|
|
|
+ var stringLen uint64
|
|
|
+ for shift := uint(0); ; shift += 7 {
|
|
|
+ if shift >= 64 {
|
|
|
+ return ErrIntOverflowControl
|
|
|
+ }
|
|
|
+ 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 ErrInvalidLengthControl
|
|
|
+ }
|
|
|
+ postIndex := iNdEx + intStringLen
|
|
|
+ if postIndex > l {
|
|
|
+ return io.ErrUnexpectedEOF
|
|
|
+ }
|
|
|
+ m.Error = string(dAtA[iNdEx:postIndex])
|
|
|
+ iNdEx = postIndex
|
|
|
+ default:
|
|
|
+ iNdEx = preIndex
|
|
|
+ skippy, err := skipControl(dAtA[iNdEx:])
|
|
|
+ if err != nil {
|
|
|
+ return err
|
|
|
+ }
|
|
|
+ if skippy < 0 {
|
|
|
+ return ErrInvalidLengthControl
|
|
|
+ }
|
|
|
+ if (iNdEx + skippy) > l {
|
|
|
+ return io.ErrUnexpectedEOF
|
|
|
+ }
|
|
|
+ iNdEx += skippy
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ if iNdEx > l {
|
|
|
+ return io.ErrUnexpectedEOF
|
|
|
+ }
|
|
|
+ return nil
|
|
|
+}
|
|
|
+func (m *VertexStatus) 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 ErrIntOverflowControl
|
|
|
+ }
|
|
|
+ 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: VertexStatus: wiretype end group for non-group")
|
|
|
+ }
|
|
|
+ if fieldNum <= 0 {
|
|
|
+ return fmt.Errorf("proto: VertexStatus: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
|
+ }
|
|
|
+ switch fieldNum {
|
|
|
+ case 1:
|
|
|
+ if wireType != 2 {
|
|
|
+ return fmt.Errorf("proto: wrong wireType = %d for field ID", wireType)
|
|
|
+ }
|
|
|
+ var stringLen uint64
|
|
|
+ for shift := uint(0); ; shift += 7 {
|
|
|
+ if shift >= 64 {
|
|
|
+ return ErrIntOverflowControl
|
|
|
+ }
|
|
|
+ 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 ErrInvalidLengthControl
|
|
|
+ }
|
|
|
+ postIndex := iNdEx + intStringLen
|
|
|
+ if postIndex > l {
|
|
|
+ return io.ErrUnexpectedEOF
|
|
|
+ }
|
|
|
+ m.ID = string(dAtA[iNdEx:postIndex])
|
|
|
+ iNdEx = postIndex
|
|
|
+ case 2:
|
|
|
+ if wireType != 2 {
|
|
|
+ return fmt.Errorf("proto: wrong wireType = %d for field Vertex", wireType)
|
|
|
+ }
|
|
|
+ var stringLen uint64
|
|
|
+ for shift := uint(0); ; shift += 7 {
|
|
|
+ if shift >= 64 {
|
|
|
+ return ErrIntOverflowControl
|
|
|
+ }
|
|
|
+ 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 ErrInvalidLengthControl
|
|
|
+ }
|
|
|
+ postIndex := iNdEx + intStringLen
|
|
|
+ if postIndex > l {
|
|
|
+ return io.ErrUnexpectedEOF
|
|
|
+ }
|
|
|
+ m.Vertex = github_com_opencontainers_go_digest.Digest(dAtA[iNdEx:postIndex])
|
|
|
+ iNdEx = postIndex
|
|
|
+ case 3:
|
|
|
+ if wireType != 2 {
|
|
|
+ return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType)
|
|
|
+ }
|
|
|
+ var stringLen uint64
|
|
|
+ for shift := uint(0); ; shift += 7 {
|
|
|
+ if shift >= 64 {
|
|
|
+ return ErrIntOverflowControl
|
|
|
+ }
|
|
|
+ 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 ErrInvalidLengthControl
|
|
|
+ }
|
|
|
+ postIndex := iNdEx + intStringLen
|
|
|
+ if postIndex > l {
|
|
|
+ return io.ErrUnexpectedEOF
|
|
|
+ }
|
|
|
+ m.Name = string(dAtA[iNdEx:postIndex])
|
|
|
+ iNdEx = postIndex
|
|
|
+ case 4:
|
|
|
+ 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 ErrIntOverflowControl
|
|
|
+ }
|
|
|
+ if iNdEx >= l {
|
|
|
+ return io.ErrUnexpectedEOF
|
|
|
+ }
|
|
|
+ b := dAtA[iNdEx]
|
|
|
+ iNdEx++
|
|
|
+ m.Current |= (int64(b) & 0x7F) << shift
|
|
|
+ if b < 0x80 {
|
|
|
+ break
|
|
|
+ }
|
|
|
+ }
|
|
|
+ case 5:
|
|
|
+ if wireType != 0 {
|
|
|
+ return fmt.Errorf("proto: wrong wireType = %d for field Total", wireType)
|
|
|
+ }
|
|
|
+ m.Total = 0
|
|
|
+ for shift := uint(0); ; shift += 7 {
|
|
|
+ if shift >= 64 {
|
|
|
+ return ErrIntOverflowControl
|
|
|
+ }
|
|
|
+ if iNdEx >= l {
|
|
|
+ return io.ErrUnexpectedEOF
|
|
|
+ }
|
|
|
+ b := dAtA[iNdEx]
|
|
|
+ iNdEx++
|
|
|
+ m.Total |= (int64(b) & 0x7F) << shift
|
|
|
+ if b < 0x80 {
|
|
|
+ break
|
|
|
+ }
|
|
|
+ }
|
|
|
+ case 6:
|
|
|
+ if wireType != 2 {
|
|
|
+ return fmt.Errorf("proto: wrong wireType = %d for field Timestamp", wireType)
|
|
|
+ }
|
|
|
+ var msglen int
|
|
|
+ for shift := uint(0); ; shift += 7 {
|
|
|
+ if shift >= 64 {
|
|
|
+ return ErrIntOverflowControl
|
|
|
+ }
|
|
|
+ if iNdEx >= l {
|
|
|
+ return io.ErrUnexpectedEOF
|
|
|
+ }
|
|
|
+ b := dAtA[iNdEx]
|
|
|
+ iNdEx++
|
|
|
+ msglen |= (int(b) & 0x7F) << shift
|
|
|
+ if b < 0x80 {
|
|
|
+ break
|
|
|
+ }
|
|
|
+ }
|
|
|
+ if msglen < 0 {
|
|
|
+ return ErrInvalidLengthControl
|
|
|
+ }
|
|
|
+ postIndex := iNdEx + msglen
|
|
|
+ if postIndex > l {
|
|
|
+ return io.ErrUnexpectedEOF
|
|
|
+ }
|
|
|
+ if err := types.StdTimeUnmarshal(&m.Timestamp, dAtA[iNdEx:postIndex]); err != nil {
|
|
|
+ return err
|
|
|
+ }
|
|
|
+ iNdEx = postIndex
|
|
|
+ case 7:
|
|
|
+ if wireType != 2 {
|
|
|
+ return fmt.Errorf("proto: wrong wireType = %d for field Started", wireType)
|
|
|
+ }
|
|
|
+ var msglen int
|
|
|
+ for shift := uint(0); ; shift += 7 {
|
|
|
+ if shift >= 64 {
|
|
|
+ return ErrIntOverflowControl
|
|
|
+ }
|
|
|
+ if iNdEx >= l {
|
|
|
+ return io.ErrUnexpectedEOF
|
|
|
+ }
|
|
|
+ b := dAtA[iNdEx]
|
|
|
+ iNdEx++
|
|
|
+ msglen |= (int(b) & 0x7F) << shift
|
|
|
+ if b < 0x80 {
|
|
|
+ break
|
|
|
+ }
|
|
|
+ }
|
|
|
+ if msglen < 0 {
|
|
|
+ return ErrInvalidLengthControl
|
|
|
+ }
|
|
|
+ postIndex := iNdEx + msglen
|
|
|
+ if postIndex > l {
|
|
|
+ return io.ErrUnexpectedEOF
|
|
|
+ }
|
|
|
+ if m.Started == nil {
|
|
|
+ m.Started = new(time.Time)
|
|
|
+ }
|
|
|
+ if err := types.StdTimeUnmarshal(m.Started, dAtA[iNdEx:postIndex]); err != nil {
|
|
|
+ return err
|
|
|
+ }
|
|
|
+ iNdEx = postIndex
|
|
|
+ case 8:
|
|
|
+ if wireType != 2 {
|
|
|
+ return fmt.Errorf("proto: wrong wireType = %d for field Completed", wireType)
|
|
|
+ }
|
|
|
+ var msglen int
|
|
|
+ for shift := uint(0); ; shift += 7 {
|
|
|
+ if shift >= 64 {
|
|
|
+ return ErrIntOverflowControl
|
|
|
+ }
|
|
|
+ if iNdEx >= l {
|
|
|
+ return io.ErrUnexpectedEOF
|
|
|
+ }
|
|
|
+ b := dAtA[iNdEx]
|
|
|
+ iNdEx++
|
|
|
+ msglen |= (int(b) & 0x7F) << shift
|
|
|
+ if b < 0x80 {
|
|
|
+ break
|
|
|
+ }
|
|
|
+ }
|
|
|
+ if msglen < 0 {
|
|
|
+ return ErrInvalidLengthControl
|
|
|
+ }
|
|
|
+ postIndex := iNdEx + msglen
|
|
|
+ if postIndex > l {
|
|
|
+ return io.ErrUnexpectedEOF
|
|
|
+ }
|
|
|
+ if m.Completed == nil {
|
|
|
+ m.Completed = new(time.Time)
|
|
|
+ }
|
|
|
+ if err := types.StdTimeUnmarshal(m.Completed, dAtA[iNdEx:postIndex]); err != nil {
|
|
|
+ return err
|
|
|
+ }
|
|
|
+ iNdEx = postIndex
|
|
|
+ default:
|
|
|
+ iNdEx = preIndex
|
|
|
+ skippy, err := skipControl(dAtA[iNdEx:])
|
|
|
+ if err != nil {
|
|
|
+ return err
|
|
|
+ }
|
|
|
+ if skippy < 0 {
|
|
|
+ return ErrInvalidLengthControl
|
|
|
+ }
|
|
|
+ if (iNdEx + skippy) > l {
|
|
|
+ return io.ErrUnexpectedEOF
|
|
|
+ }
|
|
|
+ iNdEx += skippy
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ if iNdEx > l {
|
|
|
+ return io.ErrUnexpectedEOF
|
|
|
+ }
|
|
|
+ return nil
|
|
|
+}
|
|
|
+func (m *VertexLog) 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 ErrIntOverflowControl
|
|
|
+ }
|
|
|
+ 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: VertexLog: wiretype end group for non-group")
|
|
|
+ }
|
|
|
+ if fieldNum <= 0 {
|
|
|
+ return fmt.Errorf("proto: VertexLog: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
|
+ }
|
|
|
+ switch fieldNum {
|
|
|
+ case 1:
|
|
|
+ if wireType != 2 {
|
|
|
+ return fmt.Errorf("proto: wrong wireType = %d for field Vertex", wireType)
|
|
|
+ }
|
|
|
+ var stringLen uint64
|
|
|
+ for shift := uint(0); ; shift += 7 {
|
|
|
+ if shift >= 64 {
|
|
|
+ return ErrIntOverflowControl
|
|
|
+ }
|
|
|
+ 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 ErrInvalidLengthControl
|
|
|
+ }
|
|
|
+ postIndex := iNdEx + intStringLen
|
|
|
+ if postIndex > l {
|
|
|
+ return io.ErrUnexpectedEOF
|
|
|
+ }
|
|
|
+ m.Vertex = github_com_opencontainers_go_digest.Digest(dAtA[iNdEx:postIndex])
|
|
|
+ iNdEx = postIndex
|
|
|
+ case 2:
|
|
|
+ if wireType != 2 {
|
|
|
+ return fmt.Errorf("proto: wrong wireType = %d for field Timestamp", wireType)
|
|
|
+ }
|
|
|
+ var msglen int
|
|
|
+ for shift := uint(0); ; shift += 7 {
|
|
|
+ if shift >= 64 {
|
|
|
+ return ErrIntOverflowControl
|
|
|
+ }
|
|
|
+ if iNdEx >= l {
|
|
|
+ return io.ErrUnexpectedEOF
|
|
|
+ }
|
|
|
+ b := dAtA[iNdEx]
|
|
|
+ iNdEx++
|
|
|
+ msglen |= (int(b) & 0x7F) << shift
|
|
|
+ if b < 0x80 {
|
|
|
+ break
|
|
|
+ }
|
|
|
+ }
|
|
|
+ if msglen < 0 {
|
|
|
+ return ErrInvalidLengthControl
|
|
|
+ }
|
|
|
+ postIndex := iNdEx + msglen
|
|
|
+ if postIndex > l {
|
|
|
+ return io.ErrUnexpectedEOF
|
|
|
+ }
|
|
|
+ if err := types.StdTimeUnmarshal(&m.Timestamp, dAtA[iNdEx:postIndex]); err != nil {
|
|
|
+ return err
|
|
|
+ }
|
|
|
+ iNdEx = postIndex
|
|
|
+ case 3:
|
|
|
+ if wireType != 0 {
|
|
|
+ return fmt.Errorf("proto: wrong wireType = %d for field Stream", wireType)
|
|
|
+ }
|
|
|
+ m.Stream = 0
|
|
|
+ for shift := uint(0); ; shift += 7 {
|
|
|
+ if shift >= 64 {
|
|
|
+ return ErrIntOverflowControl
|
|
|
+ }
|
|
|
+ if iNdEx >= l {
|
|
|
+ return io.ErrUnexpectedEOF
|
|
|
+ }
|
|
|
+ b := dAtA[iNdEx]
|
|
|
+ iNdEx++
|
|
|
+ m.Stream |= (int64(b) & 0x7F) << shift
|
|
|
+ if b < 0x80 {
|
|
|
+ break
|
|
|
+ }
|
|
|
+ }
|
|
|
+ case 4:
|
|
|
+ if wireType != 2 {
|
|
|
+ return fmt.Errorf("proto: wrong wireType = %d for field Msg", wireType)
|
|
|
+ }
|
|
|
+ var byteLen int
|
|
|
+ for shift := uint(0); ; shift += 7 {
|
|
|
+ if shift >= 64 {
|
|
|
+ return ErrIntOverflowControl
|
|
|
+ }
|
|
|
+ if iNdEx >= l {
|
|
|
+ return io.ErrUnexpectedEOF
|
|
|
+ }
|
|
|
+ b := dAtA[iNdEx]
|
|
|
+ iNdEx++
|
|
|
+ byteLen |= (int(b) & 0x7F) << shift
|
|
|
+ if b < 0x80 {
|
|
|
+ break
|
|
|
+ }
|
|
|
+ }
|
|
|
+ if byteLen < 0 {
|
|
|
+ return ErrInvalidLengthControl
|
|
|
+ }
|
|
|
+ postIndex := iNdEx + byteLen
|
|
|
+ if postIndex > l {
|
|
|
+ return io.ErrUnexpectedEOF
|
|
|
+ }
|
|
|
+ m.Msg = append(m.Msg[:0], dAtA[iNdEx:postIndex]...)
|
|
|
+ if m.Msg == nil {
|
|
|
+ m.Msg = []byte{}
|
|
|
+ }
|
|
|
+ iNdEx = postIndex
|
|
|
+ default:
|
|
|
+ iNdEx = preIndex
|
|
|
+ skippy, err := skipControl(dAtA[iNdEx:])
|
|
|
+ if err != nil {
|
|
|
+ return err
|
|
|
+ }
|
|
|
+ if skippy < 0 {
|
|
|
+ return ErrInvalidLengthControl
|
|
|
+ }
|
|
|
+ if (iNdEx + skippy) > l {
|
|
|
+ return io.ErrUnexpectedEOF
|
|
|
+ }
|
|
|
+ iNdEx += skippy
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ if iNdEx > l {
|
|
|
+ return io.ErrUnexpectedEOF
|
|
|
+ }
|
|
|
+ return nil
|
|
|
+}
|
|
|
+func (m *BytesMessage) 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 ErrIntOverflowControl
|
|
|
+ }
|
|
|
+ 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: BytesMessage: wiretype end group for non-group")
|
|
|
+ }
|
|
|
+ if fieldNum <= 0 {
|
|
|
+ return fmt.Errorf("proto: BytesMessage: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
|
+ }
|
|
|
+ switch fieldNum {
|
|
|
+ case 1:
|
|
|
+ if wireType != 2 {
|
|
|
+ return fmt.Errorf("proto: wrong wireType = %d for field Data", wireType)
|
|
|
+ }
|
|
|
+ var byteLen int
|
|
|
+ for shift := uint(0); ; shift += 7 {
|
|
|
+ if shift >= 64 {
|
|
|
+ return ErrIntOverflowControl
|
|
|
+ }
|
|
|
+ if iNdEx >= l {
|
|
|
+ return io.ErrUnexpectedEOF
|
|
|
+ }
|
|
|
+ b := dAtA[iNdEx]
|
|
|
+ iNdEx++
|
|
|
+ byteLen |= (int(b) & 0x7F) << shift
|
|
|
+ if b < 0x80 {
|
|
|
+ break
|
|
|
+ }
|
|
|
+ }
|
|
|
+ if byteLen < 0 {
|
|
|
+ return ErrInvalidLengthControl
|
|
|
+ }
|
|
|
+ postIndex := iNdEx + byteLen
|
|
|
+ if postIndex > l {
|
|
|
+ return io.ErrUnexpectedEOF
|
|
|
+ }
|
|
|
+ m.Data = append(m.Data[:0], dAtA[iNdEx:postIndex]...)
|
|
|
+ if m.Data == nil {
|
|
|
+ m.Data = []byte{}
|
|
|
+ }
|
|
|
+ iNdEx = postIndex
|
|
|
+ default:
|
|
|
+ iNdEx = preIndex
|
|
|
+ skippy, err := skipControl(dAtA[iNdEx:])
|
|
|
+ if err != nil {
|
|
|
+ return err
|
|
|
+ }
|
|
|
+ if skippy < 0 {
|
|
|
+ return ErrInvalidLengthControl
|
|
|
+ }
|
|
|
+ if (iNdEx + skippy) > l {
|
|
|
+ return io.ErrUnexpectedEOF
|
|
|
+ }
|
|
|
+ iNdEx += skippy
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ if iNdEx > l {
|
|
|
+ return io.ErrUnexpectedEOF
|
|
|
+ }
|
|
|
+ return nil
|
|
|
+}
|
|
|
+func (m *ListWorkersRequest) 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 ErrIntOverflowControl
|
|
|
+ }
|
|
|
+ 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: ListWorkersRequest: wiretype end group for non-group")
|
|
|
+ }
|
|
|
+ if fieldNum <= 0 {
|
|
|
+ return fmt.Errorf("proto: ListWorkersRequest: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
|
+ }
|
|
|
+ switch fieldNum {
|
|
|
+ case 1:
|
|
|
+ if wireType != 2 {
|
|
|
+ return fmt.Errorf("proto: wrong wireType = %d for field Filter", wireType)
|
|
|
+ }
|
|
|
+ var stringLen uint64
|
|
|
+ for shift := uint(0); ; shift += 7 {
|
|
|
+ if shift >= 64 {
|
|
|
+ return ErrIntOverflowControl
|
|
|
+ }
|
|
|
+ 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 ErrInvalidLengthControl
|
|
|
+ }
|
|
|
+ postIndex := iNdEx + intStringLen
|
|
|
+ if postIndex > l {
|
|
|
+ return io.ErrUnexpectedEOF
|
|
|
+ }
|
|
|
+ m.Filter = append(m.Filter, string(dAtA[iNdEx:postIndex]))
|
|
|
+ iNdEx = postIndex
|
|
|
+ default:
|
|
|
+ iNdEx = preIndex
|
|
|
+ skippy, err := skipControl(dAtA[iNdEx:])
|
|
|
+ if err != nil {
|
|
|
+ return err
|
|
|
+ }
|
|
|
+ if skippy < 0 {
|
|
|
+ return ErrInvalidLengthControl
|
|
|
+ }
|
|
|
+ if (iNdEx + skippy) > l {
|
|
|
+ return io.ErrUnexpectedEOF
|
|
|
+ }
|
|
|
+ iNdEx += skippy
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ if iNdEx > l {
|
|
|
+ return io.ErrUnexpectedEOF
|
|
|
+ }
|
|
|
+ return nil
|
|
|
+}
|
|
|
+func (m *ListWorkersResponse) 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 ErrIntOverflowControl
|
|
|
+ }
|
|
|
+ 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: ListWorkersResponse: wiretype end group for non-group")
|
|
|
+ }
|
|
|
+ if fieldNum <= 0 {
|
|
|
+ return fmt.Errorf("proto: ListWorkersResponse: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
|
+ }
|
|
|
+ switch fieldNum {
|
|
|
+ case 1:
|
|
|
+ if wireType != 2 {
|
|
|
+ return fmt.Errorf("proto: wrong wireType = %d for field Record", wireType)
|
|
|
+ }
|
|
|
+ var msglen int
|
|
|
+ for shift := uint(0); ; shift += 7 {
|
|
|
+ if shift >= 64 {
|
|
|
+ return ErrIntOverflowControl
|
|
|
+ }
|
|
|
+ if iNdEx >= l {
|
|
|
+ return io.ErrUnexpectedEOF
|
|
|
+ }
|
|
|
+ b := dAtA[iNdEx]
|
|
|
+ iNdEx++
|
|
|
+ msglen |= (int(b) & 0x7F) << shift
|
|
|
+ if b < 0x80 {
|
|
|
+ break
|
|
|
+ }
|
|
|
+ }
|
|
|
+ if msglen < 0 {
|
|
|
+ return ErrInvalidLengthControl
|
|
|
+ }
|
|
|
+ postIndex := iNdEx + msglen
|
|
|
+ if postIndex > l {
|
|
|
+ return io.ErrUnexpectedEOF
|
|
|
+ }
|
|
|
+ m.Record = append(m.Record, &WorkerRecord{})
|
|
|
+ if err := m.Record[len(m.Record)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
|
+ return err
|
|
|
+ }
|
|
|
+ iNdEx = postIndex
|
|
|
+ default:
|
|
|
+ iNdEx = preIndex
|
|
|
+ skippy, err := skipControl(dAtA[iNdEx:])
|
|
|
+ if err != nil {
|
|
|
+ return err
|
|
|
+ }
|
|
|
+ if skippy < 0 {
|
|
|
+ return ErrInvalidLengthControl
|
|
|
+ }
|
|
|
+ if (iNdEx + skippy) > l {
|
|
|
+ return io.ErrUnexpectedEOF
|
|
|
+ }
|
|
|
+ iNdEx += skippy
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ if iNdEx > l {
|
|
|
+ return io.ErrUnexpectedEOF
|
|
|
+ }
|
|
|
+ return nil
|
|
|
+}
|
|
|
+func (m *WorkerRecord) 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 ErrIntOverflowControl
|
|
|
+ }
|
|
|
+ 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: WorkerRecord: wiretype end group for non-group")
|
|
|
+ }
|
|
|
+ if fieldNum <= 0 {
|
|
|
+ return fmt.Errorf("proto: WorkerRecord: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
|
+ }
|
|
|
+ switch fieldNum {
|
|
|
+ case 1:
|
|
|
+ if wireType != 2 {
|
|
|
+ return fmt.Errorf("proto: wrong wireType = %d for field ID", wireType)
|
|
|
+ }
|
|
|
+ var stringLen uint64
|
|
|
+ for shift := uint(0); ; shift += 7 {
|
|
|
+ if shift >= 64 {
|
|
|
+ return ErrIntOverflowControl
|
|
|
+ }
|
|
|
+ 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 ErrInvalidLengthControl
|
|
|
+ }
|
|
|
+ postIndex := iNdEx + intStringLen
|
|
|
+ if postIndex > l {
|
|
|
+ return io.ErrUnexpectedEOF
|
|
|
+ }
|
|
|
+ m.ID = string(dAtA[iNdEx:postIndex])
|
|
|
+ iNdEx = postIndex
|
|
|
+ case 2:
|
|
|
+ if wireType != 2 {
|
|
|
+ return fmt.Errorf("proto: wrong wireType = %d for field Labels", wireType)
|
|
|
+ }
|
|
|
+ var msglen int
|
|
|
+ for shift := uint(0); ; shift += 7 {
|
|
|
+ if shift >= 64 {
|
|
|
+ return ErrIntOverflowControl
|
|
|
+ }
|
|
|
+ if iNdEx >= l {
|
|
|
+ return io.ErrUnexpectedEOF
|
|
|
+ }
|
|
|
+ b := dAtA[iNdEx]
|
|
|
+ iNdEx++
|
|
|
+ msglen |= (int(b) & 0x7F) << shift
|
|
|
+ if b < 0x80 {
|
|
|
+ break
|
|
|
+ }
|
|
|
+ }
|
|
|
+ if msglen < 0 {
|
|
|
+ return ErrInvalidLengthControl
|
|
|
+ }
|
|
|
+ postIndex := iNdEx + msglen
|
|
|
+ if postIndex > l {
|
|
|
+ return io.ErrUnexpectedEOF
|
|
|
+ }
|
|
|
+ if m.Labels == nil {
|
|
|
+ m.Labels = make(map[string]string)
|
|
|
+ }
|
|
|
+ var mapkey string
|
|
|
+ var mapvalue string
|
|
|
+ for iNdEx < postIndex {
|
|
|
+ entryPreIndex := iNdEx
|
|
|
+ var wire uint64
|
|
|
+ for shift := uint(0); ; shift += 7 {
|
|
|
+ if shift >= 64 {
|
|
|
+ return ErrIntOverflowControl
|
|
|
+ }
|
|
|
+ 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 ErrIntOverflowControl
|
|
|
+ }
|
|
|
+ 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 ErrInvalidLengthControl
|
|
|
+ }
|
|
|
+ postStringIndexmapkey := iNdEx + intStringLenmapkey
|
|
|
+ if postStringIndexmapkey > l {
|
|
|
+ return io.ErrUnexpectedEOF
|
|
|
+ }
|
|
|
+ mapkey = string(dAtA[iNdEx:postStringIndexmapkey])
|
|
|
+ iNdEx = postStringIndexmapkey
|
|
|
+ } else if fieldNum == 2 {
|
|
|
+ var stringLenmapvalue uint64
|
|
|
+ for shift := uint(0); ; shift += 7 {
|
|
|
+ if shift >= 64 {
|
|
|
+ return ErrIntOverflowControl
|
|
|
+ }
|
|
|
+ if iNdEx >= l {
|
|
|
+ return io.ErrUnexpectedEOF
|
|
|
+ }
|
|
|
+ b := dAtA[iNdEx]
|
|
|
+ iNdEx++
|
|
|
+ stringLenmapvalue |= (uint64(b) & 0x7F) << shift
|
|
|
+ if b < 0x80 {
|
|
|
+ break
|
|
|
+ }
|
|
|
+ }
|
|
|
+ intStringLenmapvalue := int(stringLenmapvalue)
|
|
|
+ if intStringLenmapvalue < 0 {
|
|
|
+ return ErrInvalidLengthControl
|
|
|
+ }
|
|
|
+ postStringIndexmapvalue := iNdEx + intStringLenmapvalue
|
|
|
+ if postStringIndexmapvalue > l {
|
|
|
+ return io.ErrUnexpectedEOF
|
|
|
+ }
|
|
|
+ mapvalue = string(dAtA[iNdEx:postStringIndexmapvalue])
|
|
|
+ iNdEx = postStringIndexmapvalue
|
|
|
+ } else {
|
|
|
+ iNdEx = entryPreIndex
|
|
|
+ skippy, err := skipControl(dAtA[iNdEx:])
|
|
|
+ if err != nil {
|
|
|
+ return err
|
|
|
+ }
|
|
|
+ if skippy < 0 {
|
|
|
+ return ErrInvalidLengthControl
|
|
|
+ }
|
|
|
+ if (iNdEx + skippy) > postIndex {
|
|
|
+ return io.ErrUnexpectedEOF
|
|
|
+ }
|
|
|
+ iNdEx += skippy
|
|
|
+ }
|
|
|
+ }
|
|
|
+ m.Labels[mapkey] = mapvalue
|
|
|
+ iNdEx = postIndex
|
|
|
+ default:
|
|
|
+ iNdEx = preIndex
|
|
|
+ skippy, err := skipControl(dAtA[iNdEx:])
|
|
|
+ if err != nil {
|
|
|
+ return err
|
|
|
+ }
|
|
|
+ if skippy < 0 {
|
|
|
+ return ErrInvalidLengthControl
|
|
|
+ }
|
|
|
+ if (iNdEx + skippy) > l {
|
|
|
+ return io.ErrUnexpectedEOF
|
|
|
+ }
|
|
|
+ iNdEx += skippy
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ if iNdEx > l {
|
|
|
+ return io.ErrUnexpectedEOF
|
|
|
+ }
|
|
|
+ return nil
|
|
|
+}
|
|
|
+func skipControl(dAtA []byte) (n int, err error) {
|
|
|
+ l := len(dAtA)
|
|
|
+ iNdEx := 0
|
|
|
+ for iNdEx < l {
|
|
|
+ var wire uint64
|
|
|
+ for shift := uint(0); ; shift += 7 {
|
|
|
+ if shift >= 64 {
|
|
|
+ return 0, ErrIntOverflowControl
|
|
|
+ }
|
|
|
+ if iNdEx >= l {
|
|
|
+ return 0, io.ErrUnexpectedEOF
|
|
|
+ }
|
|
|
+ b := dAtA[iNdEx]
|
|
|
+ iNdEx++
|
|
|
+ wire |= (uint64(b) & 0x7F) << shift
|
|
|
+ if b < 0x80 {
|
|
|
+ break
|
|
|
+ }
|
|
|
+ }
|
|
|
+ wireType := int(wire & 0x7)
|
|
|
+ switch wireType {
|
|
|
+ case 0:
|
|
|
+ for shift := uint(0); ; shift += 7 {
|
|
|
+ if shift >= 64 {
|
|
|
+ return 0, ErrIntOverflowControl
|
|
|
+ }
|
|
|
+ if iNdEx >= l {
|
|
|
+ return 0, io.ErrUnexpectedEOF
|
|
|
+ }
|
|
|
+ iNdEx++
|
|
|
+ if dAtA[iNdEx-1] < 0x80 {
|
|
|
+ break
|
|
|
+ }
|
|
|
+ }
|
|
|
+ return iNdEx, nil
|
|
|
+ case 1:
|
|
|
+ iNdEx += 8
|
|
|
+ return iNdEx, nil
|
|
|
+ case 2:
|
|
|
+ var length int
|
|
|
+ for shift := uint(0); ; shift += 7 {
|
|
|
+ if shift >= 64 {
|
|
|
+ return 0, ErrIntOverflowControl
|
|
|
+ }
|
|
|
+ if iNdEx >= l {
|
|
|
+ return 0, io.ErrUnexpectedEOF
|
|
|
+ }
|
|
|
+ b := dAtA[iNdEx]
|
|
|
+ iNdEx++
|
|
|
+ length |= (int(b) & 0x7F) << shift
|
|
|
+ if b < 0x80 {
|
|
|
+ break
|
|
|
+ }
|
|
|
+ }
|
|
|
+ iNdEx += length
|
|
|
+ if length < 0 {
|
|
|
+ return 0, ErrInvalidLengthControl
|
|
|
+ }
|
|
|
+ return iNdEx, nil
|
|
|
+ case 3:
|
|
|
+ for {
|
|
|
+ var innerWire uint64
|
|
|
+ var start int = iNdEx
|
|
|
+ for shift := uint(0); ; shift += 7 {
|
|
|
+ if shift >= 64 {
|
|
|
+ return 0, ErrIntOverflowControl
|
|
|
+ }
|
|
|
+ if iNdEx >= l {
|
|
|
+ return 0, io.ErrUnexpectedEOF
|
|
|
+ }
|
|
|
+ b := dAtA[iNdEx]
|
|
|
+ iNdEx++
|
|
|
+ innerWire |= (uint64(b) & 0x7F) << shift
|
|
|
+ if b < 0x80 {
|
|
|
+ break
|
|
|
+ }
|
|
|
+ }
|
|
|
+ innerWireType := int(innerWire & 0x7)
|
|
|
+ if innerWireType == 4 {
|
|
|
+ break
|
|
|
+ }
|
|
|
+ next, err := skipControl(dAtA[start:])
|
|
|
+ if err != nil {
|
|
|
+ return 0, err
|
|
|
+ }
|
|
|
+ iNdEx = start + next
|
|
|
+ }
|
|
|
+ return iNdEx, nil
|
|
|
+ case 4:
|
|
|
+ return iNdEx, nil
|
|
|
+ case 5:
|
|
|
+ iNdEx += 4
|
|
|
+ return iNdEx, nil
|
|
|
+ default:
|
|
|
+ return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
|
|
|
+ }
|
|
|
+ }
|
|
|
+ panic("unreachable")
|
|
|
+}
|
|
|
+
|
|
|
+var (
|
|
|
+ ErrInvalidLengthControl = fmt.Errorf("proto: negative length found during unmarshaling")
|
|
|
+ ErrIntOverflowControl = fmt.Errorf("proto: integer overflow")
|
|
|
+)
|
|
|
+
|
|
|
+func init() { proto.RegisterFile("control.proto", fileDescriptorControl) }
|
|
|
+
|
|
|
+var fileDescriptorControl = []byte{
|
|
|
+ // 1192 bytes of a gzipped FileDescriptorProto
|
|
|
+ 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x56, 0xcd, 0x6e, 0x23, 0x45,
|
|
|
+ 0x10, 0x66, 0x6c, 0xc7, 0x3f, 0x65, 0x27, 0x0a, 0x0d, 0xac, 0x46, 0x03, 0x24, 0x66, 0x00, 0xc9,
|
|
|
+ 0x8a, 0x76, 0xc7, 0xd9, 0xc0, 0x22, 0xc8, 0x61, 0xb5, 0xeb, 0x78, 0x11, 0x89, 0x12, 0xb1, 0x74,
|
|
|
+ 0x36, 0xac, 0xc4, 0x6d, 0x6c, 0x77, 0xbc, 0xa3, 0xd8, 0xd3, 0xa6, 0xbb, 0x27, 0xda, 0xf0, 0x14,
|
|
|
+ 0x1c, 0xb8, 0xf2, 0x14, 0x1c, 0x38, 0x73, 0x40, 0xda, 0x23, 0x67, 0x0e, 0x59, 0x94, 0x3b, 0x3c,
|
|
|
+ 0x03, 0xea, 0x9f, 0xb1, 0xdb, 0x1e, 0xe7, 0xc7, 0xd9, 0x53, 0xba, 0x3a, 0x5f, 0x7d, 0x53, 0x5d,
|
|
|
+ 0x5f, 0xb9, 0xaa, 0x60, 0xb9, 0x4b, 0x63, 0xc1, 0xe8, 0x20, 0x18, 0x31, 0x2a, 0x28, 0x5a, 0x1d,
|
|
|
+ 0xd2, 0xce, 0x59, 0xd0, 0x49, 0xa2, 0x41, 0xef, 0x24, 0x12, 0xc1, 0xe9, 0x7d, 0xef, 0x5e, 0x3f,
|
|
|
+ 0x12, 0x2f, 0x92, 0x4e, 0xd0, 0xa5, 0xc3, 0x66, 0x9f, 0xf6, 0x69, 0x53, 0x01, 0x3b, 0xc9, 0xb1,
|
|
|
+ 0xb2, 0x94, 0xa1, 0x4e, 0x9a, 0xc0, 0x5b, 0xef, 0x53, 0xda, 0x1f, 0x90, 0x09, 0x4a, 0x44, 0x43,
|
|
|
+ 0xc2, 0x45, 0x38, 0x1c, 0x19, 0xc0, 0x5d, 0x8b, 0x4f, 0x7e, 0xac, 0x99, 0x7e, 0xac, 0xc9, 0xe9,
|
|
|
+ 0xe0, 0x94, 0xb0, 0xe6, 0xa8, 0xd3, 0xa4, 0x23, 0xae, 0xd1, 0xfe, 0x0a, 0xd4, 0x9e, 0xb2, 0x24,
|
|
|
+ 0x26, 0x98, 0xfc, 0x98, 0x10, 0x2e, 0xfc, 0x0d, 0x58, 0x6d, 0x47, 0xfc, 0xe4, 0x88, 0x87, 0xfd,
|
|
|
+ 0xf4, 0x0e, 0xdd, 0x81, 0xe2, 0x71, 0x34, 0x10, 0x84, 0xb9, 0x4e, 0xdd, 0x69, 0x54, 0xb0, 0xb1,
|
|
|
+ 0xfc, 0x3d, 0x78, 0xdb, 0xc2, 0xf2, 0x11, 0x8d, 0x39, 0x41, 0x0f, 0xa0, 0xc8, 0x48, 0x97, 0xb2,
|
|
|
+ 0x9e, 0xeb, 0xd4, 0xf3, 0x8d, 0xea, 0xd6, 0x87, 0xc1, 0xec, 0x8b, 0x03, 0xe3, 0x20, 0x41, 0xd8,
|
|
|
+ 0x80, 0xfd, 0x3f, 0x72, 0x50, 0xb5, 0xee, 0xd1, 0x0a, 0xe4, 0x76, 0xdb, 0xe6, 0x7b, 0xb9, 0xdd,
|
|
|
+ 0x36, 0x72, 0xa1, 0x74, 0x90, 0x88, 0xb0, 0x33, 0x20, 0x6e, 0xae, 0xee, 0x34, 0xca, 0x38, 0x35,
|
|
|
+ 0xd1, 0xbb, 0xb0, 0xb4, 0x1b, 0x1f, 0x71, 0xe2, 0xe6, 0xd5, 0xbd, 0x36, 0x10, 0x82, 0xc2, 0x61,
|
|
|
+ 0xf4, 0x13, 0x71, 0x0b, 0x75, 0xa7, 0x91, 0xc7, 0xea, 0x2c, 0xdf, 0xf1, 0x34, 0x64, 0x24, 0x16,
|
|
|
+ 0xee, 0x92, 0x7e, 0x87, 0xb6, 0x50, 0x0b, 0x2a, 0x3b, 0x8c, 0x84, 0x82, 0xf4, 0x1e, 0x0b, 0xb7,
|
|
|
+ 0x58, 0x77, 0x1a, 0xd5, 0x2d, 0x2f, 0xd0, 0x69, 0x0e, 0xd2, 0x34, 0x07, 0xcf, 0xd2, 0x34, 0xb7,
|
|
|
+ 0xca, 0xaf, 0xce, 0xd7, 0xdf, 0xfa, 0xf9, 0xf5, 0xba, 0x83, 0x27, 0x6e, 0xe8, 0x11, 0xc0, 0x7e,
|
|
|
+ 0xc8, 0xc5, 0x11, 0x57, 0x24, 0xa5, 0x6b, 0x49, 0x0a, 0x8a, 0xc0, 0xf2, 0x41, 0x6b, 0x00, 0x2a,
|
|
|
+ 0x01, 0x3b, 0x34, 0x89, 0x85, 0x5b, 0x56, 0x71, 0x5b, 0x37, 0xa8, 0x0e, 0xd5, 0x36, 0xe1, 0x5d,
|
|
|
+ 0x16, 0x8d, 0x44, 0x44, 0x63, 0xb7, 0xa2, 0x9e, 0x60, 0x5f, 0xf9, 0xbf, 0x14, 0xa0, 0x76, 0x28,
|
|
|
+ 0x35, 0x4e, 0x85, 0x5b, 0x85, 0x3c, 0x26, 0xc7, 0x26, 0x8b, 0xf2, 0x88, 0x02, 0x80, 0x36, 0x39,
|
|
|
+ 0x8e, 0xe2, 0x48, 0x71, 0xe4, 0x54, 0x98, 0x2b, 0xc1, 0xa8, 0x13, 0x4c, 0x6e, 0xb1, 0x85, 0x40,
|
|
|
+ 0x1e, 0x94, 0x9f, 0xbc, 0x1c, 0x51, 0x26, 0xc5, 0xcf, 0x2b, 0x9a, 0xb1, 0x8d, 0x9e, 0xc3, 0x72,
|
|
|
+ 0x7a, 0x7e, 0x2c, 0x04, 0xe3, 0x6e, 0x41, 0x09, 0x7e, 0x3f, 0x2b, 0xb8, 0x1d, 0x54, 0x30, 0xe5,
|
|
|
+ 0xf3, 0x24, 0x16, 0xec, 0x0c, 0x4f, 0xf3, 0x48, 0xad, 0x0f, 0x09, 0xe7, 0x32, 0x42, 0x2d, 0x54,
|
|
|
+ 0x6a, 0xca, 0x70, 0xbe, 0x66, 0x34, 0x16, 0x24, 0xee, 0x29, 0xa1, 0x2a, 0x78, 0x6c, 0xcb, 0x70,
|
|
|
+ 0xd2, 0xb3, 0x0e, 0xa7, 0x74, 0xa3, 0x70, 0xa6, 0x7c, 0x4c, 0x38, 0x53, 0x77, 0x68, 0x1b, 0x96,
|
|
|
+ 0x76, 0xc2, 0xee, 0x0b, 0xa2, 0x34, 0xa9, 0x6e, 0xad, 0x65, 0x09, 0xd5, 0xbf, 0xbf, 0x55, 0x22,
|
|
|
+ 0xf0, 0x56, 0x41, 0x96, 0x07, 0xd6, 0x2e, 0xde, 0x23, 0x40, 0xd9, 0xf7, 0x4a, 0x5d, 0x4e, 0xc8,
|
|
|
+ 0x59, 0xaa, 0xcb, 0x09, 0x39, 0x93, 0x45, 0x7c, 0x1a, 0x0e, 0x12, 0x5d, 0xdc, 0x15, 0xac, 0x8d,
|
|
|
+ 0xed, 0xdc, 0x97, 0x8e, 0x64, 0xc8, 0x86, 0xb8, 0x08, 0x83, 0xff, 0xda, 0x81, 0x9a, 0x1d, 0x21,
|
|
|
+ 0xfa, 0x00, 0x2a, 0x3a, 0xa8, 0x49, 0x71, 0x4c, 0x2e, 0x64, 0x1d, 0xee, 0x0e, 0x8d, 0xc1, 0xdd,
|
|
|
+ 0x5c, 0x3d, 0xdf, 0xa8, 0x60, 0xeb, 0x06, 0x7d, 0x07, 0x55, 0x0d, 0xd6, 0x59, 0xce, 0xab, 0x2c,
|
|
|
+ 0x37, 0xaf, 0x4e, 0x4a, 0x60, 0x79, 0xe8, 0x1c, 0xdb, 0x1c, 0xde, 0x43, 0x58, 0x9d, 0x05, 0x2c,
|
|
|
+ 0xf4, 0xc2, 0xdf, 0x1d, 0x58, 0x36, 0xa2, 0x9a, 0x2e, 0x14, 0xa6, 0x8c, 0x84, 0xa5, 0x77, 0xa6,
|
|
|
+ 0x1f, 0x3d, 0xb8, 0xb4, 0x1e, 0x34, 0x2c, 0x98, 0xf5, 0xd3, 0xf1, 0x66, 0xe8, 0xbc, 0x1d, 0x78,
|
|
|
+ 0x6f, 0x2e, 0x74, 0xa1, 0xc8, 0x3f, 0x82, 0xe5, 0x43, 0x11, 0x8a, 0x84, 0x5f, 0xfa, 0x93, 0xf5,
|
|
|
+ 0x7f, 0x73, 0x60, 0x25, 0xc5, 0x98, 0xd7, 0x7d, 0x0e, 0xe5, 0x53, 0xc2, 0x04, 0x79, 0x49, 0xb8,
|
|
|
+ 0x79, 0x95, 0x9b, 0x7d, 0xd5, 0xf7, 0x0a, 0x81, 0xc7, 0x48, 0xb4, 0x0d, 0x65, 0xae, 0x78, 0x88,
|
|
|
+ 0x96, 0x75, 0x6e, 0x29, 0x6b, 0x2f, 0xf3, 0xbd, 0x31, 0x1e, 0x35, 0xa1, 0x30, 0xa0, 0xfd, 0x54,
|
|
|
+ 0xed, 0xf7, 0x2f, 0xf3, 0xdb, 0xa7, 0x7d, 0xac, 0x80, 0xfe, 0x79, 0x0e, 0x8a, 0xfa, 0x0e, 0xed,
|
|
|
+ 0x41, 0xb1, 0x17, 0xf5, 0x09, 0x17, 0xfa, 0x55, 0xad, 0x2d, 0xf9, 0x03, 0xf9, 0xfb, 0x7c, 0x7d,
|
|
|
+ 0xc3, 0x1a, 0x54, 0x74, 0x44, 0x62, 0x39, 0x28, 0xc3, 0x28, 0x26, 0x8c, 0x37, 0xfb, 0xf4, 0x9e,
|
|
|
+ 0x76, 0x09, 0xda, 0xea, 0x0f, 0x36, 0x0c, 0x92, 0x2b, 0x8a, 0x47, 0x89, 0x30, 0x85, 0x79, 0x3b,
|
|
|
+ 0x2e, 0xcd, 0x20, 0x47, 0x44, 0x1c, 0x0e, 0x89, 0xe9, 0x6b, 0xea, 0x2c, 0x47, 0x44, 0x57, 0xd6,
|
|
|
+ 0x6d, 0x4f, 0x0d, 0x8e, 0x32, 0x36, 0x16, 0xda, 0x86, 0x12, 0x17, 0x21, 0x13, 0xa4, 0xa7, 0x5a,
|
|
|
+ 0xd2, 0x4d, 0x7a, 0x7b, 0xea, 0x80, 0x1e, 0x42, 0xa5, 0x4b, 0x87, 0xa3, 0x01, 0x91, 0xde, 0xc5,
|
|
|
+ 0x1b, 0x7a, 0x4f, 0x5c, 0x64, 0xf5, 0x10, 0xc6, 0x28, 0x53, 0x53, 0xa5, 0x82, 0xb5, 0xe1, 0xff,
|
|
|
+ 0x97, 0x83, 0x9a, 0x2d, 0x56, 0x66, 0x62, 0xee, 0x41, 0x51, 0x4b, 0xaf, 0xab, 0xee, 0x76, 0xa9,
|
|
|
+ 0xd2, 0x0c, 0x73, 0x53, 0xe5, 0x42, 0xa9, 0x9b, 0x30, 0x35, 0x4e, 0xf5, 0x90, 0x4d, 0x4d, 0x19,
|
|
|
+ 0xb0, 0xa0, 0x22, 0x1c, 0xa8, 0x54, 0xe5, 0xb1, 0x36, 0xe4, 0x94, 0x1d, 0xaf, 0x2a, 0x8b, 0x4d,
|
|
|
+ 0xd9, 0xb1, 0x9b, 0x2d, 0x43, 0xe9, 0x8d, 0x64, 0x28, 0x2f, 0x2c, 0x83, 0xff, 0xa7, 0x03, 0x95,
|
|
|
+ 0x71, 0x95, 0x5b, 0xd9, 0x75, 0xde, 0x38, 0xbb, 0x53, 0x99, 0xc9, 0xdd, 0x2e, 0x33, 0x77, 0xa0,
|
|
|
+ 0xc8, 0x05, 0x23, 0xe1, 0x50, 0x69, 0x94, 0xc7, 0xc6, 0x92, 0xfd, 0x64, 0xc8, 0xfb, 0x4a, 0xa1,
|
|
|
+ 0x1a, 0x96, 0x47, 0xdf, 0x87, 0x5a, 0xeb, 0x4c, 0x10, 0x7e, 0x40, 0xb8, 0x5c, 0x2e, 0xa4, 0xb6,
|
|
|
+ 0xbd, 0x50, 0x84, 0xea, 0x1d, 0x35, 0xac, 0xce, 0xfe, 0x5d, 0x40, 0xfb, 0x11, 0x17, 0xcf, 0x29,
|
|
|
+ 0x3b, 0x21, 0x8c, 0xcf, 0xdb, 0x03, 0xf3, 0xd6, 0x1e, 0x78, 0x00, 0xef, 0x4c, 0xa1, 0x4d, 0x97,
|
|
|
+ 0xfa, 0x62, 0x66, 0x13, 0x9c, 0xd3, 0x6d, 0xb4, 0xcb, 0xcc, 0x2a, 0xf8, 0xab, 0x03, 0x35, 0xfb,
|
|
|
+ 0x1f, 0x99, 0xca, 0x6e, 0x41, 0x71, 0x3f, 0xec, 0x90, 0x41, 0xda, 0xc6, 0x36, 0xae, 0x26, 0x0e,
|
|
|
+ 0x34, 0x58, 0xf7, 0x71, 0xe3, 0xe9, 0x7d, 0x05, 0x55, 0xeb, 0x7a, 0x91, 0x9e, 0xbd, 0xf5, 0x6f,
|
|
|
+ 0x1e, 0x4a, 0x3b, 0x7a, 0xa9, 0x47, 0xcf, 0xa0, 0x32, 0x5e, 0x81, 0x91, 0x9f, 0x8d, 0x63, 0x76,
|
|
|
+ 0x97, 0xf6, 0x3e, 0xbe, 0x12, 0x63, 0x32, 0xf7, 0x0d, 0x2c, 0xa9, 0xa5, 0x1c, 0xcd, 0x49, 0x99,
|
|
|
+ 0xbd, 0xad, 0x7b, 0x57, 0x2f, 0xd7, 0x9b, 0x8e, 0x64, 0x52, 0xd3, 0x6d, 0x1e, 0x93, 0xbd, 0x06,
|
|
|
+ 0x79, 0xeb, 0xd7, 0x8c, 0x45, 0x74, 0x00, 0x45, 0xd3, 0x68, 0xe6, 0x41, 0xed, 0x19, 0xe6, 0xd5,
|
|
|
+ 0x2f, 0x07, 0x68, 0xb2, 0x4d, 0x07, 0x1d, 0x8c, 0x77, 0xbc, 0x79, 0xa1, 0xd9, 0x05, 0xea, 0x5d,
|
|
|
+ 0xf3, 0xff, 0x86, 0xb3, 0xe9, 0xa0, 0x1f, 0xa0, 0x6a, 0x95, 0x20, 0xfa, 0x24, 0xeb, 0x92, 0xad,
|
|
|
+ 0x67, 0xef, 0xd3, 0x6b, 0x50, 0x3a, 0xd8, 0x56, 0xed, 0xd5, 0xc5, 0x9a, 0xf3, 0xd7, 0xc5, 0x9a,
|
|
|
+ 0xf3, 0xcf, 0xc5, 0x9a, 0xd3, 0x29, 0xaa, 0x5f, 0xe4, 0x67, 0xff, 0x07, 0x00, 0x00, 0xff, 0xff,
|
|
|
+ 0x4d, 0x94, 0x5a, 0xb6, 0xd8, 0x0d, 0x00, 0x00,
|
|
|
+}
|