This repository has been archived by the owner on Oct 23, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 62
/
array_job.pb.go
109 lines (95 loc) · 4.44 KB
/
array_job.pb.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: flyteidl/plugins/array_job.proto
package plugins
import (
fmt "fmt"
proto "github.com/golang/protobuf/proto"
math "math"
)
// 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.ProtoPackageIsVersion3 // please upgrade the proto package
// Describes a job that can process independent pieces of data concurrently. Multiple copies of the runnable component
// will be executed concurrently.
type ArrayJob struct {
// Defines the minimum number of instances to bring up concurrently at any given point. Note that this is an
// optimistic restriction and that, due to network partitioning or other failures, the actual number of currently
// running instances might be more. This has to be a positive number if assigned. Default value is size.
Parallelism int64 `protobuf:"varint,1,opt,name=parallelism,proto3" json:"parallelism,omitempty"`
// Defines the number of instances to launch at most. This number should match the size of the input if the job
// requires processing of all input data. This has to be a positive number.
// +required.
Size int64 `protobuf:"varint,2,opt,name=size,proto3" json:"size,omitempty"`
// An absolute number of the minimum number of successful completions of subtasks. As soon as this criteria is met,
// the array job will be marked as successful and outputs will be computed. This has to be a non-negative number if
// assigned. Default value is size.
MinSuccesses int64 `protobuf:"varint,3,opt,name=min_successes,json=minSuccesses,proto3" json:"min_successes,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ArrayJob) Reset() { *m = ArrayJob{} }
func (m *ArrayJob) String() string { return proto.CompactTextString(m) }
func (*ArrayJob) ProtoMessage() {}
func (*ArrayJob) Descriptor() ([]byte, []int) {
return fileDescriptor_794211c91ec6cd2b, []int{0}
}
func (m *ArrayJob) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ArrayJob.Unmarshal(m, b)
}
func (m *ArrayJob) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ArrayJob.Marshal(b, m, deterministic)
}
func (m *ArrayJob) XXX_Merge(src proto.Message) {
xxx_messageInfo_ArrayJob.Merge(m, src)
}
func (m *ArrayJob) XXX_Size() int {
return xxx_messageInfo_ArrayJob.Size(m)
}
func (m *ArrayJob) XXX_DiscardUnknown() {
xxx_messageInfo_ArrayJob.DiscardUnknown(m)
}
var xxx_messageInfo_ArrayJob proto.InternalMessageInfo
func (m *ArrayJob) GetParallelism() int64 {
if m != nil {
return m.Parallelism
}
return 0
}
func (m *ArrayJob) GetSize() int64 {
if m != nil {
return m.Size
}
return 0
}
func (m *ArrayJob) GetMinSuccesses() int64 {
if m != nil {
return m.MinSuccesses
}
return 0
}
func init() {
proto.RegisterType((*ArrayJob)(nil), "flyteidl.plugins.ArrayJob")
}
func init() { proto.RegisterFile("flyteidl/plugins/array_job.proto", fileDescriptor_794211c91ec6cd2b) }
var fileDescriptor_794211c91ec6cd2b = []byte{
// 180 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x5c, 0x8e, 0xbd, 0xca, 0xc2, 0x30,
0x18, 0x46, 0xe9, 0xd7, 0x0f, 0x91, 0xa8, 0x20, 0x99, 0x3a, 0x16, 0x5d, 0x5c, 0x6c, 0x86, 0xe2,
0x05, 0xe8, 0xe8, 0xa8, 0x9b, 0x4b, 0x49, 0x6a, 0x1a, 0x23, 0x6f, 0x7e, 0xc8, 0x9b, 0x0e, 0xf5,
0xea, 0xc5, 0x60, 0x45, 0xdc, 0x1e, 0x9e, 0x73, 0x86, 0x43, 0xca, 0x0e, 0x86, 0x28, 0xf5, 0x15,
0x98, 0x87, 0x5e, 0x69, 0x8b, 0x8c, 0x87, 0xc0, 0x87, 0xe6, 0xee, 0x44, 0xe5, 0x83, 0x8b, 0x8e,
0x2e, 0x47, 0xa3, 0x7a, 0x1b, 0x2b, 0x49, 0xa6, 0xfb, 0x97, 0x74, 0x74, 0x82, 0x96, 0x64, 0xe6,
0x79, 0xe0, 0x00, 0x12, 0x34, 0x9a, 0x22, 0x2b, 0xb3, 0x4d, 0x7e, 0xfa, 0xbe, 0x28, 0x25, 0xff,
0xa8, 0x1f, 0xb2, 0xf8, 0x4b, 0x28, 0x6d, 0xba, 0x26, 0x0b, 0xa3, 0x6d, 0x83, 0x7d, 0xdb, 0x4a,
0x44, 0x89, 0x45, 0x9e, 0xe0, 0xdc, 0x68, 0x7b, 0x1e, 0xbf, 0xc3, 0xee, 0x52, 0x2b, 0x1d, 0x6f,
0xbd, 0xa8, 0x5a, 0x67, 0x18, 0x0c, 0x5d, 0x64, 0x9f, 0x58, 0x25, 0x2d, 0xf3, 0x62, 0xab, 0x1c,
0xfb, 0xed, 0x17, 0x93, 0x94, 0x5d, 0x3f, 0x03, 0x00, 0x00, 0xff, 0xff, 0x75, 0xbd, 0x9d, 0x25,
0xda, 0x00, 0x00, 0x00,
}