buildkit/solver/pb/ops.pb.go

2439 lines
50 KiB
Go
Raw Normal View History

// Code generated by protoc-gen-gogo.
// source: ops.proto
// DO NOT EDIT!
/*
Package pb is a generated protocol buffer package.
It is generated from these files:
ops.proto
It has these top-level messages:
Op
ExecOp
Meta
Mount
CopyOp
CopySource
SourceOp
*/
package pb
import proto "github.com/gogo/protobuf/proto"
import fmt "fmt"
import math "math"
import strings "strings"
import reflect "reflect"
import io "io"
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// 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 Op struct {
Inputs []string `protobuf:"bytes,1,rep,name=inputs" json:"inputs,omitempty"`
// Types that are valid to be assigned to Op:
// *Op_Exec
// *Op_Source
// *Op_Copy
Op isOp_Op `protobuf_oneof:"op"`
}
func (m *Op) Reset() { *m = Op{} }
func (*Op) ProtoMessage() {}
func (*Op) Descriptor() ([]byte, []int) { return fileDescriptorOps, []int{0} }
type isOp_Op interface {
isOp_Op()
Equal(interface{}) bool
MarshalTo([]byte) (int, error)
Size() int
}
type Op_Exec struct {
Exec *ExecOp `protobuf:"bytes,2,opt,name=exec,oneof"`
}
type Op_Source struct {
Source *SourceOp `protobuf:"bytes,3,opt,name=source,oneof"`
}
type Op_Copy struct {
Copy *CopyOp `protobuf:"bytes,4,opt,name=copy,oneof"`
}
func (*Op_Exec) isOp_Op() {}
func (*Op_Source) isOp_Op() {}
func (*Op_Copy) isOp_Op() {}
func (m *Op) GetOp() isOp_Op {
if m != nil {
return m.Op
}
return nil
}
func (m *Op) GetInputs() []string {
if m != nil {
return m.Inputs
}
return nil
}
func (m *Op) GetExec() *ExecOp {
if x, ok := m.GetOp().(*Op_Exec); ok {
return x.Exec
}
return nil
}
func (m *Op) GetSource() *SourceOp {
if x, ok := m.GetOp().(*Op_Source); ok {
return x.Source
}
return nil
}
func (m *Op) GetCopy() *CopyOp {
if x, ok := m.GetOp().(*Op_Copy); ok {
return x.Copy
}
return nil
}
// XXX_OneofFuncs is for the internal use of the proto package.
func (*Op) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {
return _Op_OneofMarshaler, _Op_OneofUnmarshaler, _Op_OneofSizer, []interface{}{
(*Op_Exec)(nil),
(*Op_Source)(nil),
(*Op_Copy)(nil),
}
}
func _Op_OneofMarshaler(msg proto.Message, b *proto.Buffer) error {
m := msg.(*Op)
// op
switch x := m.Op.(type) {
case *Op_Exec:
_ = b.EncodeVarint(2<<3 | proto.WireBytes)
if err := b.EncodeMessage(x.Exec); err != nil {
return err
}
case *Op_Source:
_ = b.EncodeVarint(3<<3 | proto.WireBytes)
if err := b.EncodeMessage(x.Source); err != nil {
return err
}
case *Op_Copy:
_ = b.EncodeVarint(4<<3 | proto.WireBytes)
if err := b.EncodeMessage(x.Copy); err != nil {
return err
}
case nil:
default:
return fmt.Errorf("Op.Op has unexpected type %T", x)
}
return nil
}
func _Op_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) {
m := msg.(*Op)
switch tag {
case 2: // op.exec
if wire != proto.WireBytes {
return true, proto.ErrInternalBadWireType
}
msg := new(ExecOp)
err := b.DecodeMessage(msg)
m.Op = &Op_Exec{msg}
return true, err
case 3: // op.source
if wire != proto.WireBytes {
return true, proto.ErrInternalBadWireType
}
msg := new(SourceOp)
err := b.DecodeMessage(msg)
m.Op = &Op_Source{msg}
return true, err
case 4: // op.copy
if wire != proto.WireBytes {
return true, proto.ErrInternalBadWireType
}
msg := new(CopyOp)
err := b.DecodeMessage(msg)
m.Op = &Op_Copy{msg}
return true, err
default:
return false, nil
}
}
func _Op_OneofSizer(msg proto.Message) (n int) {
m := msg.(*Op)
// op
switch x := m.Op.(type) {
case *Op_Exec:
s := proto.Size(x.Exec)
n += proto.SizeVarint(2<<3 | proto.WireBytes)
n += proto.SizeVarint(uint64(s))
n += s
case *Op_Source:
s := proto.Size(x.Source)
n += proto.SizeVarint(3<<3 | proto.WireBytes)
n += proto.SizeVarint(uint64(s))
n += s
case *Op_Copy:
s := proto.Size(x.Copy)
n += proto.SizeVarint(4<<3 | proto.WireBytes)
n += proto.SizeVarint(uint64(s))
n += s
case nil:
default:
panic(fmt.Sprintf("proto: unexpected type %T in oneof", x))
}
return n
}
type ExecOp struct {
Meta *Meta `protobuf:"bytes,1,opt,name=meta" json:"meta,omitempty"`
Mounts []*Mount `protobuf:"bytes,2,rep,name=mounts" json:"mounts,omitempty"`
}
func (m *ExecOp) Reset() { *m = ExecOp{} }
func (*ExecOp) ProtoMessage() {}
func (*ExecOp) Descriptor() ([]byte, []int) { return fileDescriptorOps, []int{1} }
func (m *ExecOp) GetMeta() *Meta {
if m != nil {
return m.Meta
}
return nil
}
func (m *ExecOp) GetMounts() []*Mount {
if m != nil {
return m.Mounts
}
return nil
}
type Meta struct {
Args []string `protobuf:"bytes,1,rep,name=args" json:"args,omitempty"`
Env []string `protobuf:"bytes,2,rep,name=env" json:"env,omitempty"`
Cwd string `protobuf:"bytes,3,opt,name=cwd,proto3" json:"cwd,omitempty"`
}
func (m *Meta) Reset() { *m = Meta{} }
func (*Meta) ProtoMessage() {}
func (*Meta) Descriptor() ([]byte, []int) { return fileDescriptorOps, []int{2} }
func (m *Meta) GetArgs() []string {
if m != nil {
return m.Args
}
return nil
}
func (m *Meta) GetEnv() []string {
if m != nil {
return m.Env
}
return nil
}
func (m *Meta) GetCwd() string {
if m != nil {
return m.Cwd
}
return ""
}
type Mount struct {
Input int64 `protobuf:"varint,1,opt,name=input,proto3" json:"input,omitempty"`
Selector string `protobuf:"bytes,2,opt,name=selector,proto3" json:"selector,omitempty"`
Dest string `protobuf:"bytes,3,opt,name=dest,proto3" json:"dest,omitempty"`
Output int64 `protobuf:"varint,4,opt,name=output,proto3" json:"output,omitempty"`
}
func (m *Mount) Reset() { *m = Mount{} }
func (*Mount) ProtoMessage() {}
func (*Mount) Descriptor() ([]byte, []int) { return fileDescriptorOps, []int{3} }
func (m *Mount) GetInput() int64 {
if m != nil {
return m.Input
}
return 0
}
func (m *Mount) GetSelector() string {
if m != nil {
return m.Selector
}
return ""
}
func (m *Mount) GetDest() string {
if m != nil {
return m.Dest
}
return ""
}
func (m *Mount) GetOutput() int64 {
if m != nil {
return m.Output
}
return 0
}
type CopyOp struct {
Src []*CopySource `protobuf:"bytes,1,rep,name=src" json:"src,omitempty"`
Dest string `protobuf:"bytes,2,opt,name=dest,proto3" json:"dest,omitempty"`
}
func (m *CopyOp) Reset() { *m = CopyOp{} }
func (*CopyOp) ProtoMessage() {}
func (*CopyOp) Descriptor() ([]byte, []int) { return fileDescriptorOps, []int{4} }
func (m *CopyOp) GetSrc() []*CopySource {
if m != nil {
return m.Src
}
return nil
}
func (m *CopyOp) GetDest() string {
if m != nil {
return m.Dest
}
return ""
}
type CopySource struct {
Input int64 `protobuf:"varint,1,opt,name=input,proto3" json:"input,omitempty"`
Selector string `protobuf:"bytes,2,opt,name=selector,proto3" json:"selector,omitempty"`
}
func (m *CopySource) Reset() { *m = CopySource{} }
func (*CopySource) ProtoMessage() {}
func (*CopySource) Descriptor() ([]byte, []int) { return fileDescriptorOps, []int{5} }
func (m *CopySource) GetInput() int64 {
if m != nil {
return m.Input
}
return 0
}
func (m *CopySource) GetSelector() string {
if m != nil {
return m.Selector
}
return ""
}
type SourceOp struct {
Identifier string `protobuf:"bytes,1,opt,name=identifier,proto3" json:"identifier,omitempty"`
}
func (m *SourceOp) Reset() { *m = SourceOp{} }
func (*SourceOp) ProtoMessage() {}
func (*SourceOp) Descriptor() ([]byte, []int) { return fileDescriptorOps, []int{6} }
func (m *SourceOp) GetIdentifier() string {
if m != nil {
return m.Identifier
}
return ""
}
func init() {
proto.RegisterType((*Op)(nil), "pb.Op")
proto.RegisterType((*ExecOp)(nil), "pb.ExecOp")
proto.RegisterType((*Meta)(nil), "pb.Meta")
proto.RegisterType((*Mount)(nil), "pb.Mount")
proto.RegisterType((*CopyOp)(nil), "pb.CopyOp")
proto.RegisterType((*CopySource)(nil), "pb.CopySource")
proto.RegisterType((*SourceOp)(nil), "pb.SourceOp")
}
func (this *Op) Equal(that interface{}) bool {
if that == nil {
if this == nil {
return true
}
return false
}
that1, ok := that.(*Op)
if !ok {
that2, ok := that.(Op)
if ok {
that1 = &that2
} else {
return false
}
}
if that1 == nil {
if this == nil {
return true
}
return false
} else if this == nil {
return false
}
if len(this.Inputs) != len(that1.Inputs) {
return false
}
for i := range this.Inputs {
if this.Inputs[i] != that1.Inputs[i] {
return false
}
}
if that1.Op == nil {
if this.Op != nil {
return false
}
} else if this.Op == nil {
return false
} else if !this.Op.Equal(that1.Op) {
return false
}
return true
}
func (this *Op_Exec) Equal(that interface{}) bool {
if that == nil {
if this == nil {
return true
}
return false
}
that1, ok := that.(*Op_Exec)
if !ok {
that2, ok := that.(Op_Exec)
if ok {
that1 = &that2
} else {
return false
}
}
if that1 == nil {
if this == nil {
return true
}
return false
} else if this == nil {
return false
}
if !this.Exec.Equal(that1.Exec) {
return false
}
return true
}
func (this *Op_Source) Equal(that interface{}) bool {
if that == nil {
if this == nil {
return true
}
return false
}
that1, ok := that.(*Op_Source)
if !ok {
that2, ok := that.(Op_Source)
if ok {
that1 = &that2
} else {
return false
}
}
if that1 == nil {
if this == nil {
return true
}
return false
} else if this == nil {
return false
}
if !this.Source.Equal(that1.Source) {
return false
}
return true
}
func (this *Op_Copy) Equal(that interface{}) bool {
if that == nil {
if this == nil {
return true
}
return false
}
that1, ok := that.(*Op_Copy)
if !ok {
that2, ok := that.(Op_Copy)
if ok {
that1 = &that2
} else {
return false
}
}
if that1 == nil {
if this == nil {
return true
}
return false
} else if this == nil {
return false
}
if !this.Copy.Equal(that1.Copy) {
return false
}
return true
}
func (this *ExecOp) Equal(that interface{}) bool {
if that == nil {
if this == nil {
return true
}
return false
}
that1, ok := that.(*ExecOp)
if !ok {
that2, ok := that.(ExecOp)
if ok {
that1 = &that2
} else {
return false
}
}
if that1 == nil {
if this == nil {
return true
}
return false
} else if this == nil {
return false
}
if !this.Meta.Equal(that1.Meta) {
return false
}
if len(this.Mounts) != len(that1.Mounts) {
return false
}
for i := range this.Mounts {
if !this.Mounts[i].Equal(that1.Mounts[i]) {
return false
}
}
return true
}
func (this *Meta) Equal(that interface{}) bool {
if that == nil {
if this == nil {
return true
}
return false
}
that1, ok := that.(*Meta)
if !ok {
that2, ok := that.(Meta)
if ok {
that1 = &that2
} else {
return false
}
}
if that1 == nil {
if this == nil {
return true
}
return false
} else if this == nil {
return false
}
if len(this.Args) != len(that1.Args) {
return false
}
for i := range this.Args {
if this.Args[i] != that1.Args[i] {
return false
}
}
if len(this.Env) != len(that1.Env) {
return false
}
for i := range this.Env {
if this.Env[i] != that1.Env[i] {
return false
}
}
if this.Cwd != that1.Cwd {
return false
}
return true
}
func (this *Mount) Equal(that interface{}) bool {
if that == nil {
if this == nil {
return true
}
return false
}
that1, ok := that.(*Mount)
if !ok {
that2, ok := that.(Mount)
if ok {
that1 = &that2
} else {
return false
}
}
if that1 == nil {
if this == nil {
return true
}
return false
} else if this == nil {
return false
}
if this.Input != that1.Input {
return false
}
if this.Selector != that1.Selector {
return false
}
if this.Dest != that1.Dest {
return false
}
if this.Output != that1.Output {
return false
}
return true
}
func (this *CopyOp) Equal(that interface{}) bool {
if that == nil {
if this == nil {
return true
}
return false
}
that1, ok := that.(*CopyOp)
if !ok {
that2, ok := that.(CopyOp)
if ok {
that1 = &that2
} else {
return false
}
}
if that1 == nil {
if this == nil {
return true
}
return false
} else if this == nil {
return false
}
if len(this.Src) != len(that1.Src) {
return false
}
for i := range this.Src {
if !this.Src[i].Equal(that1.Src[i]) {
return false
}
}
if this.Dest != that1.Dest {
return false
}
return true
}
func (this *CopySource) Equal(that interface{}) bool {
if that == nil {
if this == nil {
return true
}
return false
}
that1, ok := that.(*CopySource)
if !ok {
that2, ok := that.(CopySource)
if ok {
that1 = &that2
} else {
return false
}
}
if that1 == nil {
if this == nil {
return true
}
return false
} else if this == nil {
return false
}
if this.Input != that1.Input {
return false
}
if this.Selector != that1.Selector {
return false
}
return true
}
func (this *SourceOp) Equal(that interface{}) bool {
if that == nil {
if this == nil {
return true
}
return false
}
that1, ok := that.(*SourceOp)
if !ok {
that2, ok := that.(SourceOp)
if ok {
that1 = &that2
} else {
return false
}
}
if that1 == nil {
if this == nil {
return true
}
return false
} else if this == nil {
return false
}
if this.Identifier != that1.Identifier {
return false
}
return true
}
func (this *Op) GoString() string {
if this == nil {
return "nil"
}
s := make([]string, 0, 8)
s = append(s, "&pb.Op{")
s = append(s, "Inputs: "+fmt.Sprintf("%#v", this.Inputs)+",\n")
if this.Op != nil {
s = append(s, "Op: "+fmt.Sprintf("%#v", this.Op)+",\n")
}
s = append(s, "}")
return strings.Join(s, "")
}
func (this *Op_Exec) GoString() string {
if this == nil {
return "nil"
}
s := strings.Join([]string{`&pb.Op_Exec{` +
`Exec:` + fmt.Sprintf("%#v", this.Exec) + `}`}, ", ")
return s
}
func (this *Op_Source) GoString() string {
if this == nil {
return "nil"
}
s := strings.Join([]string{`&pb.Op_Source{` +
`Source:` + fmt.Sprintf("%#v", this.Source) + `}`}, ", ")
return s
}
func (this *Op_Copy) GoString() string {
if this == nil {
return "nil"
}
s := strings.Join([]string{`&pb.Op_Copy{` +
`Copy:` + fmt.Sprintf("%#v", this.Copy) + `}`}, ", ")
return s
}
func (this *ExecOp) GoString() string {
if this == nil {
return "nil"
}
s := make([]string, 0, 6)
s = append(s, "&pb.ExecOp{")
if this.Meta != nil {
s = append(s, "Meta: "+fmt.Sprintf("%#v", this.Meta)+",\n")
}
if this.Mounts != nil {
s = append(s, "Mounts: "+fmt.Sprintf("%#v", this.Mounts)+",\n")
}
s = append(s, "}")
return strings.Join(s, "")
}
func (this *Meta) GoString() string {
if this == nil {
return "nil"
}
s := make([]string, 0, 7)
s = append(s, "&pb.Meta{")
s = append(s, "Args: "+fmt.Sprintf("%#v", this.Args)+",\n")
s = append(s, "Env: "+fmt.Sprintf("%#v", this.Env)+",\n")
s = append(s, "Cwd: "+fmt.Sprintf("%#v", this.Cwd)+",\n")
s = append(s, "}")
return strings.Join(s, "")
}
func (this *Mount) GoString() string {
if this == nil {
return "nil"
}
s := make([]string, 0, 8)
s = append(s, "&pb.Mount{")
s = append(s, "Input: "+fmt.Sprintf("%#v", this.Input)+",\n")
s = append(s, "Selector: "+fmt.Sprintf("%#v", this.Selector)+",\n")
s = append(s, "Dest: "+fmt.Sprintf("%#v", this.Dest)+",\n")
s = append(s, "Output: "+fmt.Sprintf("%#v", this.Output)+",\n")
s = append(s, "}")
return strings.Join(s, "")
}
func (this *CopyOp) GoString() string {
if this == nil {
return "nil"
}
s := make([]string, 0, 6)
s = append(s, "&pb.CopyOp{")
if this.Src != nil {
s = append(s, "Src: "+fmt.Sprintf("%#v", this.Src)+",\n")
}
s = append(s, "Dest: "+fmt.Sprintf("%#v", this.Dest)+",\n")
s = append(s, "}")
return strings.Join(s, "")
}
func (this *CopySource) GoString() string {
if this == nil {
return "nil"
}
s := make([]string, 0, 6)
s = append(s, "&pb.CopySource{")
s = append(s, "Input: "+fmt.Sprintf("%#v", this.Input)+",\n")
s = append(s, "Selector: "+fmt.Sprintf("%#v", this.Selector)+",\n")
s = append(s, "}")
return strings.Join(s, "")
}
func (this *SourceOp) GoString() string {
if this == nil {
return "nil"
}
s := make([]string, 0, 5)
s = append(s, "&pb.SourceOp{")
s = append(s, "Identifier: "+fmt.Sprintf("%#v", this.Identifier)+",\n")
s = append(s, "}")
return strings.Join(s, "")
}
func valueToGoStringOps(v interface{}, typ string) string {
rv := reflect.ValueOf(v)
if rv.IsNil() {
return "nil"
}
pv := reflect.Indirect(rv).Interface()
return fmt.Sprintf("func(v %v) *%v { return &v } ( %#v )", typ, typ, pv)
}
func (m *Op) 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 *Op) MarshalTo(dAtA []byte) (int, error) {
var i int
_ = i
var l int
_ = l
if len(m.Inputs) > 0 {
for _, s := range m.Inputs {
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)
}
}
if m.Op != nil {
nn1, err := m.Op.MarshalTo(dAtA[i:])
if err != nil {
return 0, err
}
i += nn1
}
return i, nil
}
func (m *Op_Exec) MarshalTo(dAtA []byte) (int, error) {
i := 0
if m.Exec != nil {
dAtA[i] = 0x12
i++
i = encodeVarintOps(dAtA, i, uint64(m.Exec.Size()))
n2, err := m.Exec.MarshalTo(dAtA[i:])
if err != nil {
return 0, err
}
i += n2
}
return i, nil
}
func (m *Op_Source) MarshalTo(dAtA []byte) (int, error) {
i := 0
if m.Source != nil {
dAtA[i] = 0x1a
i++
i = encodeVarintOps(dAtA, i, uint64(m.Source.Size()))
n3, err := m.Source.MarshalTo(dAtA[i:])
if err != nil {
return 0, err
}
i += n3
}
return i, nil
}
func (m *Op_Copy) MarshalTo(dAtA []byte) (int, error) {
i := 0
if m.Copy != nil {
dAtA[i] = 0x22
i++
i = encodeVarintOps(dAtA, i, uint64(m.Copy.Size()))
n4, err := m.Copy.MarshalTo(dAtA[i:])
if err != nil {
return 0, err
}
i += n4
}
return i, nil
}
func (m *ExecOp) 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 *ExecOp) MarshalTo(dAtA []byte) (int, error) {
var i int
_ = i
var l int
_ = l
if m.Meta != nil {
dAtA[i] = 0xa
i++
i = encodeVarintOps(dAtA, i, uint64(m.Meta.Size()))
n5, err := m.Meta.MarshalTo(dAtA[i:])
if err != nil {
return 0, err
}
i += n5
}
if len(m.Mounts) > 0 {
for _, msg := range m.Mounts {
dAtA[i] = 0x12
i++
i = encodeVarintOps(dAtA, i, uint64(msg.Size()))
n, err := msg.MarshalTo(dAtA[i:])
if err != nil {
return 0, err
}
i += n
}
}
return i, nil
}
func (m *Meta) 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 *Meta) MarshalTo(dAtA []byte) (int, error) {
var i int
_ = i
var l int
_ = l
if len(m.Args) > 0 {
for _, s := range m.Args {
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)
}
}
if len(m.Env) > 0 {
for _, s := range m.Env {
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.Cwd) > 0 {
dAtA[i] = 0x1a
i++
i = encodeVarintOps(dAtA, i, uint64(len(m.Cwd)))
i += copy(dAtA[i:], m.Cwd)
}
return i, nil
}
func (m *Mount) 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 *Mount) MarshalTo(dAtA []byte) (int, error) {
var i int
_ = i
var l int
_ = l
if m.Input != 0 {
dAtA[i] = 0x8
i++
i = encodeVarintOps(dAtA, i, uint64(m.Input))
}
if len(m.Selector) > 0 {
dAtA[i] = 0x12
i++
i = encodeVarintOps(dAtA, i, uint64(len(m.Selector)))
i += copy(dAtA[i:], m.Selector)
}
if len(m.Dest) > 0 {
dAtA[i] = 0x1a
i++
i = encodeVarintOps(dAtA, i, uint64(len(m.Dest)))
i += copy(dAtA[i:], m.Dest)
}
if m.Output != 0 {
dAtA[i] = 0x20
i++
i = encodeVarintOps(dAtA, i, uint64(m.Output))
}
return i, nil
}
func (m *CopyOp) 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 *CopyOp) MarshalTo(dAtA []byte) (int, error) {
var i int
_ = i
var l int
_ = l
if len(m.Src) > 0 {
for _, msg := range m.Src {
dAtA[i] = 0xa
i++
i = encodeVarintOps(dAtA, i, uint64(msg.Size()))
n, err := msg.MarshalTo(dAtA[i:])
if err != nil {
return 0, err
}
i += n
}
}
if len(m.Dest) > 0 {
dAtA[i] = 0x12
i++
i = encodeVarintOps(dAtA, i, uint64(len(m.Dest)))
i += copy(dAtA[i:], m.Dest)
}
return i, nil
}
func (m *CopySource) 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 *CopySource) MarshalTo(dAtA []byte) (int, error) {
var i int
_ = i
var l int
_ = l
if m.Input != 0 {
dAtA[i] = 0x8
i++
i = encodeVarintOps(dAtA, i, uint64(m.Input))
}
if len(m.Selector) > 0 {
dAtA[i] = 0x12
i++
i = encodeVarintOps(dAtA, i, uint64(len(m.Selector)))
i += copy(dAtA[i:], m.Selector)
}
return i, nil
}
func (m *SourceOp) 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 *SourceOp) MarshalTo(dAtA []byte) (int, error) {
var i int
_ = i
var l int
_ = l
if len(m.Identifier) > 0 {
dAtA[i] = 0xa
i++
i = encodeVarintOps(dAtA, i, uint64(len(m.Identifier)))
i += copy(dAtA[i:], m.Identifier)
}
return i, nil
}
func encodeFixed64Ops(dAtA []byte, offset int, v uint64) int {
dAtA[offset] = uint8(v)
dAtA[offset+1] = uint8(v >> 8)
dAtA[offset+2] = uint8(v >> 16)
dAtA[offset+3] = uint8(v >> 24)
dAtA[offset+4] = uint8(v >> 32)
dAtA[offset+5] = uint8(v >> 40)
dAtA[offset+6] = uint8(v >> 48)
dAtA[offset+7] = uint8(v >> 56)
return offset + 8
}
func encodeFixed32Ops(dAtA []byte, offset int, v uint32) int {
dAtA[offset] = uint8(v)
dAtA[offset+1] = uint8(v >> 8)
dAtA[offset+2] = uint8(v >> 16)
dAtA[offset+3] = uint8(v >> 24)
return offset + 4
}
func encodeVarintOps(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 *Op) Size() (n int) {
var l int
_ = l
if len(m.Inputs) > 0 {
for _, s := range m.Inputs {
l = len(s)
n += 1 + l + sovOps(uint64(l))
}
}
if m.Op != nil {
n += m.Op.Size()
}
return n
}
func (m *Op_Exec) Size() (n int) {
var l int
_ = l
if m.Exec != nil {
l = m.Exec.Size()
n += 1 + l + sovOps(uint64(l))
}
return n
}
func (m *Op_Source) Size() (n int) {
var l int
_ = l
if m.Source != nil {
l = m.Source.Size()
n += 1 + l + sovOps(uint64(l))
}
return n
}
func (m *Op_Copy) Size() (n int) {
var l int
_ = l
if m.Copy != nil {
l = m.Copy.Size()
n += 1 + l + sovOps(uint64(l))
}
return n
}
func (m *ExecOp) Size() (n int) {
var l int
_ = l
if m.Meta != nil {
l = m.Meta.Size()
n += 1 + l + sovOps(uint64(l))
}
if len(m.Mounts) > 0 {
for _, e := range m.Mounts {
l = e.Size()
n += 1 + l + sovOps(uint64(l))
}
}
return n
}
func (m *Meta) Size() (n int) {
var l int
_ = l
if len(m.Args) > 0 {
for _, s := range m.Args {
l = len(s)
n += 1 + l + sovOps(uint64(l))
}
}
if len(m.Env) > 0 {
for _, s := range m.Env {
l = len(s)
n += 1 + l + sovOps(uint64(l))
}
}
l = len(m.Cwd)
if l > 0 {
n += 1 + l + sovOps(uint64(l))
}
return n
}
func (m *Mount) Size() (n int) {
var l int
_ = l
if m.Input != 0 {
n += 1 + sovOps(uint64(m.Input))
}
l = len(m.Selector)
if l > 0 {
n += 1 + l + sovOps(uint64(l))
}
l = len(m.Dest)
if l > 0 {
n += 1 + l + sovOps(uint64(l))
}
if m.Output != 0 {
n += 1 + sovOps(uint64(m.Output))
}
return n
}
func (m *CopyOp) Size() (n int) {
var l int
_ = l
if len(m.Src) > 0 {
for _, e := range m.Src {
l = e.Size()
n += 1 + l + sovOps(uint64(l))
}
}
l = len(m.Dest)
if l > 0 {
n += 1 + l + sovOps(uint64(l))
}
return n
}
func (m *CopySource) Size() (n int) {
var l int
_ = l
if m.Input != 0 {
n += 1 + sovOps(uint64(m.Input))
}
l = len(m.Selector)
if l > 0 {
n += 1 + l + sovOps(uint64(l))
}
return n
}
func (m *SourceOp) Size() (n int) {
var l int
_ = l
l = len(m.Identifier)
if l > 0 {
n += 1 + l + sovOps(uint64(l))
}
return n
}
func sovOps(x uint64) (n int) {
for {
n++
x >>= 7
if x == 0 {
break
}
}
return n
}
func sozOps(x uint64) (n int) {
return sovOps(uint64((x << 1) ^ uint64((int64(x) >> 63))))
}
func (this *Op) String() string {
if this == nil {
return "nil"
}
s := strings.Join([]string{`&Op{`,
`Inputs:` + fmt.Sprintf("%v", this.Inputs) + `,`,
`Op:` + fmt.Sprintf("%v", this.Op) + `,`,
`}`,
}, "")
return s
}
func (this *Op_Exec) String() string {
if this == nil {
return "nil"
}
s := strings.Join([]string{`&Op_Exec{`,
`Exec:` + strings.Replace(fmt.Sprintf("%v", this.Exec), "ExecOp", "ExecOp", 1) + `,`,
`}`,
}, "")
return s
}
func (this *Op_Source) String() string {
if this == nil {
return "nil"
}
s := strings.Join([]string{`&Op_Source{`,
`Source:` + strings.Replace(fmt.Sprintf("%v", this.Source), "SourceOp", "SourceOp", 1) + `,`,
`}`,
}, "")
return s
}
func (this *Op_Copy) String() string {
if this == nil {
return "nil"
}
s := strings.Join([]string{`&Op_Copy{`,
`Copy:` + strings.Replace(fmt.Sprintf("%v", this.Copy), "CopyOp", "CopyOp", 1) + `,`,
`}`,
}, "")
return s
}
func (this *ExecOp) String() string {
if this == nil {
return "nil"
}
s := strings.Join([]string{`&ExecOp{`,
`Meta:` + strings.Replace(fmt.Sprintf("%v", this.Meta), "Meta", "Meta", 1) + `,`,
`Mounts:` + strings.Replace(fmt.Sprintf("%v", this.Mounts), "Mount", "Mount", 1) + `,`,
`}`,
}, "")
return s
}
func (this *Meta) String() string {
if this == nil {
return "nil"
}
s := strings.Join([]string{`&Meta{`,
`Args:` + fmt.Sprintf("%v", this.Args) + `,`,
`Env:` + fmt.Sprintf("%v", this.Env) + `,`,
`Cwd:` + fmt.Sprintf("%v", this.Cwd) + `,`,
`}`,
}, "")
return s
}
func (this *Mount) String() string {
if this == nil {
return "nil"
}
s := strings.Join([]string{`&Mount{`,
`Input:` + fmt.Sprintf("%v", this.Input) + `,`,
`Selector:` + fmt.Sprintf("%v", this.Selector) + `,`,
`Dest:` + fmt.Sprintf("%v", this.Dest) + `,`,
`Output:` + fmt.Sprintf("%v", this.Output) + `,`,
`}`,
}, "")
return s
}
func (this *CopyOp) String() string {
if this == nil {
return "nil"
}
s := strings.Join([]string{`&CopyOp{`,
`Src:` + strings.Replace(fmt.Sprintf("%v", this.Src), "CopySource", "CopySource", 1) + `,`,
`Dest:` + fmt.Sprintf("%v", this.Dest) + `,`,
`}`,
}, "")
return s
}
func (this *CopySource) String() string {
if this == nil {
return "nil"
}
s := strings.Join([]string{`&CopySource{`,
`Input:` + fmt.Sprintf("%v", this.Input) + `,`,
`Selector:` + fmt.Sprintf("%v", this.Selector) + `,`,
`}`,
}, "")
return s
}
func (this *SourceOp) String() string {
if this == nil {
return "nil"
}
s := strings.Join([]string{`&SourceOp{`,
`Identifier:` + fmt.Sprintf("%v", this.Identifier) + `,`,
`}`,
}, "")
return s
}
func valueToStringOps(v interface{}) string {
rv := reflect.ValueOf(v)
if rv.IsNil() {
return "nil"
}
pv := reflect.Indirect(rv).Interface()
return fmt.Sprintf("*%v", pv)
}
func (m *Op) 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 ErrIntOverflowOps
}
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: Op: wiretype end group for non-group")
}
if fieldNum <= 0 {
return fmt.Errorf("proto: Op: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
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 ErrIntOverflowOps
}
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 ErrInvalidLengthOps
}
postIndex := iNdEx + intStringLen
if postIndex > l {
return io.ErrUnexpectedEOF
}
m.Inputs = append(m.Inputs, string(dAtA[iNdEx:postIndex]))
iNdEx = postIndex
case 2:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field Exec", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowOps
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
msglen |= (int(b) & 0x7F) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return ErrInvalidLengthOps
}
postIndex := iNdEx + msglen
if postIndex > l {
return io.ErrUnexpectedEOF
}
v := &ExecOp{}
if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
return err
}
m.Op = &Op_Exec{v}
iNdEx = postIndex
case 3:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field Source", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowOps
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
msglen |= (int(b) & 0x7F) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return ErrInvalidLengthOps
}
postIndex := iNdEx + msglen
if postIndex > l {
return io.ErrUnexpectedEOF
}
v := &SourceOp{}
if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
return err
}
m.Op = &Op_Source{v}
iNdEx = postIndex
case 4:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field Copy", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowOps
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
msglen |= (int(b) & 0x7F) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return ErrInvalidLengthOps
}
postIndex := iNdEx + msglen
if postIndex > l {
return io.ErrUnexpectedEOF
}
v := &CopyOp{}
if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
return err
}
m.Op = &Op_Copy{v}
iNdEx = postIndex
default:
iNdEx = preIndex
skippy, err := skipOps(dAtA[iNdEx:])
if err != nil {
return err
}
if skippy < 0 {
return ErrInvalidLengthOps
}
if (iNdEx + skippy) > l {
return io.ErrUnexpectedEOF
}
iNdEx += skippy
}
}
if iNdEx > l {
return io.ErrUnexpectedEOF
}
return nil
}
func (m *ExecOp) 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 ErrIntOverflowOps
}
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: ExecOp: wiretype end group for non-group")
}
if fieldNum <= 0 {
return fmt.Errorf("proto: ExecOp: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field Meta", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowOps
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
msglen |= (int(b) & 0x7F) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return ErrInvalidLengthOps
}
postIndex := iNdEx + msglen
if postIndex > l {
return io.ErrUnexpectedEOF
}
if m.Meta == nil {
m.Meta = &Meta{}
}
if err := m.Meta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
return err
}
iNdEx = postIndex
case 2:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field Mounts", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowOps
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
msglen |= (int(b) & 0x7F) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return ErrInvalidLengthOps
}
postIndex := iNdEx + msglen
if postIndex > l {
return io.ErrUnexpectedEOF
}
m.Mounts = append(m.Mounts, &Mount{})
if err := m.Mounts[len(m.Mounts)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
return err
}
iNdEx = postIndex
default:
iNdEx = preIndex
skippy, err := skipOps(dAtA[iNdEx:])
if err != nil {
return err
}
if skippy < 0 {
return ErrInvalidLengthOps
}
if (iNdEx + skippy) > l {
return io.ErrUnexpectedEOF
}
iNdEx += skippy
}
}
if iNdEx > l {
return io.ErrUnexpectedEOF
}
return nil
}
func (m *Meta) 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 ErrIntOverflowOps
}
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: Meta: wiretype end group for non-group")
}
if fieldNum <= 0 {
return fmt.Errorf("proto: Meta: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field Args", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowOps
}
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 ErrInvalidLengthOps
}
postIndex := iNdEx + intStringLen
if postIndex > l {
return io.ErrUnexpectedEOF
}
m.Args = append(m.Args, string(dAtA[iNdEx:postIndex]))
iNdEx = postIndex
case 2:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field Env", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowOps
}
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 ErrInvalidLengthOps
}
postIndex := iNdEx + intStringLen
if postIndex > l {
return io.ErrUnexpectedEOF
}
m.Env = append(m.Env, string(dAtA[iNdEx:postIndex]))
iNdEx = postIndex
case 3:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field Cwd", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowOps
}
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 ErrInvalidLengthOps
}
postIndex := iNdEx + intStringLen
if postIndex > l {
return io.ErrUnexpectedEOF
}
m.Cwd = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex
default:
iNdEx = preIndex
skippy, err := skipOps(dAtA[iNdEx:])
if err != nil {
return err
}
if skippy < 0 {
return ErrInvalidLengthOps
}
if (iNdEx + skippy) > l {
return io.ErrUnexpectedEOF
}
iNdEx += skippy
}
}
if iNdEx > l {
return io.ErrUnexpectedEOF
}
return nil
}
func (m *Mount) 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 ErrIntOverflowOps
}
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: Mount: wiretype end group for non-group")
}
if fieldNum <= 0 {
return fmt.Errorf("proto: Mount: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 0 {
return fmt.Errorf("proto: wrong wireType = %d for field Input", wireType)
}
m.Input = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowOps
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
m.Input |= (int64(b) & 0x7F) << shift
if b < 0x80 {
break
}
}
case 2:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field Selector", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowOps
}
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 ErrInvalidLengthOps
}
postIndex := iNdEx + intStringLen
if postIndex > l {
return io.ErrUnexpectedEOF
}
m.Selector = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex
case 3:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field Dest", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowOps
}
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 ErrInvalidLengthOps
}
postIndex := iNdEx + intStringLen
if postIndex > l {
return io.ErrUnexpectedEOF
}
m.Dest = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex
case 4:
if wireType != 0 {
return fmt.Errorf("proto: wrong wireType = %d for field Output", wireType)
}
m.Output = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowOps
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
m.Output |= (int64(b) & 0x7F) << shift
if b < 0x80 {
break
}
}
default:
iNdEx = preIndex
skippy, err := skipOps(dAtA[iNdEx:])
if err != nil {
return err
}
if skippy < 0 {
return ErrInvalidLengthOps
}
if (iNdEx + skippy) > l {
return io.ErrUnexpectedEOF
}
iNdEx += skippy
}
}
if iNdEx > l {
return io.ErrUnexpectedEOF
}
return nil
}
func (m *CopyOp) 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 ErrIntOverflowOps
}
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: CopyOp: wiretype end group for non-group")
}
if fieldNum <= 0 {
return fmt.Errorf("proto: CopyOp: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field Src", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowOps
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
msglen |= (int(b) & 0x7F) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return ErrInvalidLengthOps
}
postIndex := iNdEx + msglen
if postIndex > l {
return io.ErrUnexpectedEOF
}
m.Src = append(m.Src, &CopySource{})
if err := m.Src[len(m.Src)-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 Dest", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowOps
}
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 ErrInvalidLengthOps
}
postIndex := iNdEx + intStringLen
if postIndex > l {
return io.ErrUnexpectedEOF
}
m.Dest = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex
default:
iNdEx = preIndex
skippy, err := skipOps(dAtA[iNdEx:])
if err != nil {
return err
}
if skippy < 0 {
return ErrInvalidLengthOps
}
if (iNdEx + skippy) > l {
return io.ErrUnexpectedEOF
}
iNdEx += skippy
}
}
if iNdEx > l {
return io.ErrUnexpectedEOF
}
return nil
}
func (m *CopySource) 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 ErrIntOverflowOps
}
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: CopySource: wiretype end group for non-group")
}
if fieldNum <= 0 {
return fmt.Errorf("proto: CopySource: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 0 {
return fmt.Errorf("proto: wrong wireType = %d for field Input", wireType)
}
m.Input = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowOps
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
m.Input |= (int64(b) & 0x7F) << shift
if b < 0x80 {
break
}
}
case 2:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field Selector", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowOps
}
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 ErrInvalidLengthOps
}
postIndex := iNdEx + intStringLen
if postIndex > l {
return io.ErrUnexpectedEOF
}
m.Selector = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex
default:
iNdEx = preIndex
skippy, err := skipOps(dAtA[iNdEx:])
if err != nil {
return err
}
if skippy < 0 {
return ErrInvalidLengthOps
}
if (iNdEx + skippy) > l {
return io.ErrUnexpectedEOF
}
iNdEx += skippy
}
}
if iNdEx > l {
return io.ErrUnexpectedEOF
}
return nil
}
func (m *SourceOp) 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 ErrIntOverflowOps
}
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: SourceOp: wiretype end group for non-group")
}
if fieldNum <= 0 {
return fmt.Errorf("proto: SourceOp: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field Identifier", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowOps
}
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 ErrInvalidLengthOps
}
postIndex := iNdEx + intStringLen
if postIndex > l {
return io.ErrUnexpectedEOF
}
m.Identifier = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex
default:
iNdEx = preIndex
skippy, err := skipOps(dAtA[iNdEx:])
if err != nil {
return err
}
if skippy < 0 {
return ErrInvalidLengthOps
}
if (iNdEx + skippy) > l {
return io.ErrUnexpectedEOF
}
iNdEx += skippy
}
}
if iNdEx > l {
return io.ErrUnexpectedEOF
}
return nil
}
func skipOps(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, ErrIntOverflowOps
}
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, ErrIntOverflowOps
}
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, ErrIntOverflowOps
}
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, ErrInvalidLengthOps
}
return iNdEx, nil
case 3:
for {
var innerWire uint64
var start int = iNdEx
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return 0, ErrIntOverflowOps
}
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 := skipOps(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 (
ErrInvalidLengthOps = fmt.Errorf("proto: negative length found during unmarshaling")
ErrIntOverflowOps = fmt.Errorf("proto: integer overflow")
)
func init() { proto.RegisterFile("ops.proto", fileDescriptorOps) }
var fileDescriptorOps = []byte{
// 390 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0x94, 0x92, 0xc1, 0x4a, 0xfb, 0x40,
0x10, 0xc6, 0xb3, 0x49, 0x1a, 0x9a, 0xe9, 0x9f, 0x3f, 0xb2, 0x88, 0x04, 0x91, 0x25, 0xe6, 0x20,
0x45, 0xa4, 0x87, 0x7a, 0xef, 0xa1, 0x22, 0xe8, 0x41, 0x0a, 0xeb, 0x13, 0xb4, 0xe9, 0x2a, 0x01,
0x9b, 0x5d, 0x92, 0x8d, 0xb6, 0x37, 0x9f, 0x40, 0x7c, 0x0c, 0x1f, 0xc5, 0x63, 0x8f, 0x1e, 0xed,
0x7a, 0xf1, 0xd8, 0x47, 0x90, 0x9d, 0xa4, 0xad, 0x57, 0x6f, 0x33, 0xdf, 0x37, 0xf3, 0xdb, 0xdd,
0x2f, 0x81, 0x50, 0xaa, 0xb2, 0xa7, 0x0a, 0xa9, 0x25, 0x75, 0xd5, 0x24, 0x79, 0x21, 0xe0, 0x8e,
0x14, 0x3d, 0x80, 0x20, 0xcb, 0x55, 0xa5, 0xcb, 0x88, 0xc4, 0x5e, 0x37, 0xe4, 0x4d, 0x47, 0x63,
0xf0, 0xc5, 0x5c, 0xa4, 0x91, 0x1b, 0x93, 0x6e, 0xa7, 0x0f, 0x3d, 0x35, 0xe9, 0x5d, 0xce, 0x45,
0x3a, 0x52, 0x57, 0x0e, 0x47, 0x87, 0x9e, 0x40, 0x50, 0xca, 0xaa, 0x48, 0x45, 0xe4, 0xe1, 0xcc,
0x3f, 0x3b, 0x73, 0x8b, 0x0a, 0x4e, 0x35, 0xae, 0x25, 0xa5, 0x52, 0x2d, 0x22, 0x7f, 0x47, 0xba,
0x90, 0x6a, 0x51, 0x93, 0xac, 0x33, 0xf4, 0xc1, 0x95, 0x2a, 0xb9, 0x86, 0xa0, 0x3e, 0x81, 0x1e,
0x81, 0x3f, 0x13, 0x7a, 0x1c, 0x11, 0xdc, 0x68, 0xdb, 0x8d, 0x1b, 0xa1, 0xc7, 0x1c, 0x55, 0x7a,
0x0c, 0xc1, 0x4c, 0x56, 0xb9, 0x2e, 0x23, 0x37, 0xf6, 0xba, 0x9d, 0x7e, 0x88, 0xbe, 0x55, 0x78,
0x63, 0x24, 0x03, 0xf0, 0xed, 0x02, 0xa5, 0xe0, 0x8f, 0x8b, 0xfb, 0xcd, 0xd3, 0xb0, 0xa6, 0x7b,
0xe0, 0x89, 0xfc, 0x11, 0x77, 0x43, 0x6e, 0x4b, 0xab, 0xa4, 0x4f, 0x53, 0x7c, 0x45, 0xc8, 0x6d,
0x99, 0x08, 0x68, 0x21, 0x90, 0xee, 0x43, 0x0b, 0xf3, 0xc0, 0xab, 0x78, 0xbc, 0x6e, 0xe8, 0x21,
0xb4, 0x4b, 0xf1, 0x20, 0x52, 0x2d, 0x0b, 0xcc, 0x27, 0xe4, 0xdb, 0xde, 0x1e, 0x39, 0x15, 0xa5,
0x6e, 0x68, 0x58, 0xdb, 0x8c, 0x65, 0xa5, 0x2d, 0xc6, 0x47, 0x4c, 0xd3, 0x25, 0x03, 0x08, 0xea,
0x24, 0x68, 0x0c, 0x5e, 0x59, 0xa4, 0x78, 0xcf, 0x4e, 0xff, 0xff, 0x26, 0xa2, 0x3a, 0x4c, 0x6e,
0xad, 0x2d, 0xd7, 0xdd, 0x71, 0x93, 0x01, 0xc0, 0x6e, 0xec, 0xef, 0x77, 0x4d, 0x4e, 0xa1, 0xbd,
0xf9, 0x5e, 0x94, 0x01, 0x64, 0x53, 0x91, 0xeb, 0xec, 0x2e, 0x13, 0x05, 0x22, 0x42, 0xfe, 0x4b,
0x19, 0x9e, 0x2d, 0x57, 0xcc, 0xf9, 0x58, 0x31, 0x67, 0xbd, 0x62, 0xe4, 0xd9, 0x30, 0xf2, 0x66,
0x18, 0x79, 0x37, 0x8c, 0x2c, 0x0d, 0x23, 0x9f, 0x86, 0x91, 0x6f, 0xc3, 0x9c, 0xb5, 0x61, 0xe4,
0xf5, 0x8b, 0x39, 0x93, 0x00, 0xff, 0xb3, 0xf3, 0x9f, 0x00, 0x00, 0x00, 0xff, 0xff, 0x94, 0x7b,
0xeb, 0x69, 0x74, 0x02, 0x00, 0x00,
}