/
tasks.pb.go
270 lines (239 loc) · 10.8 KB
/
tasks.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
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: go.chromium.org/luci/logdog/api/endpoints/coordinator/services/v1/tasks.proto
package logdog
import (
fmt "fmt"
proto "github.com/golang/protobuf/proto"
duration "github.com/golang/protobuf/ptypes/duration"
timestamp "github.com/golang/protobuf/ptypes/timestamp"
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.ProtoPackageIsVersion2 // please upgrade the proto package
// The type of archival task.
type ArchiveDispatchTask_Tag int32
const (
ArchiveDispatchTask_TERMINATED ArchiveDispatchTask_Tag = 0
ArchiveDispatchTask_EXPIRED ArchiveDispatchTask_Tag = 1
)
var ArchiveDispatchTask_Tag_name = map[int32]string{
0: "TERMINATED",
1: "EXPIRED",
}
var ArchiveDispatchTask_Tag_value = map[string]int32{
"TERMINATED": 0,
"EXPIRED": 1,
}
func (x ArchiveDispatchTask_Tag) String() string {
return proto.EnumName(ArchiveDispatchTask_Tag_name, int32(x))
}
func (ArchiveDispatchTask_Tag) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_cd952f8ecee7e922, []int{0, 0}
}
// ArchiveDispatchTask is an internal task used by the Coordinator to schedule
// an archival dispatch.
type ArchiveDispatchTask struct {
// The hash ID for the log stream to archive.
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
Tag ArchiveDispatchTask_Tag `protobuf:"varint,2,opt,name=tag,proto3,enum=logdog.ArchiveDispatchTask_Tag" json:"tag,omitempty"`
// Don't waste time archiving the log stream until it is at least this old.
//
// This is in place to prevent overly-aggressive archivals from wasting time
// trying, then failing, becuase the log stream data is still being collected
// into intermediate storage.
SettleDelay *duration.Duration `protobuf:"bytes,3,opt,name=settle_delay,json=settleDelay,proto3" json:"settle_delay,omitempty"`
// The amount of time after the task was created that log stream completeness
// will be used as a success criteria. If the task's age is older than this
// value, completeness will not be enforced.
//
// The task's age can be calculated by subtracting its lease expiration time
// (leaseTimestamp) from its enqueued timestamp (enqueueTimestamp).
CompletePeriod *duration.Duration `protobuf:"bytes,4,opt,name=complete_period,json=completePeriod,proto3" json:"complete_period,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ArchiveDispatchTask) Reset() { *m = ArchiveDispatchTask{} }
func (m *ArchiveDispatchTask) String() string { return proto.CompactTextString(m) }
func (*ArchiveDispatchTask) ProtoMessage() {}
func (*ArchiveDispatchTask) Descriptor() ([]byte, []int) {
return fileDescriptor_cd952f8ecee7e922, []int{0}
}
func (m *ArchiveDispatchTask) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ArchiveDispatchTask.Unmarshal(m, b)
}
func (m *ArchiveDispatchTask) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ArchiveDispatchTask.Marshal(b, m, deterministic)
}
func (m *ArchiveDispatchTask) XXX_Merge(src proto.Message) {
xxx_messageInfo_ArchiveDispatchTask.Merge(m, src)
}
func (m *ArchiveDispatchTask) XXX_Size() int {
return xxx_messageInfo_ArchiveDispatchTask.Size(m)
}
func (m *ArchiveDispatchTask) XXX_DiscardUnknown() {
xxx_messageInfo_ArchiveDispatchTask.DiscardUnknown(m)
}
var xxx_messageInfo_ArchiveDispatchTask proto.InternalMessageInfo
func (m *ArchiveDispatchTask) GetId() string {
if m != nil {
return m.Id
}
return ""
}
func (m *ArchiveDispatchTask) GetTag() ArchiveDispatchTask_Tag {
if m != nil {
return m.Tag
}
return ArchiveDispatchTask_TERMINATED
}
func (m *ArchiveDispatchTask) GetSettleDelay() *duration.Duration {
if m != nil {
return m.SettleDelay
}
return nil
}
func (m *ArchiveDispatchTask) GetCompletePeriod() *duration.Duration {
if m != nil {
return m.CompletePeriod
}
return nil
}
// ArchiveTask is a task queue task description for the archival of a single
// log stream.
type ArchiveTask struct {
// The name of the project that this stream is bound to.
Project string `protobuf:"bytes,1,opt,name=project,proto3" json:"project,omitempty"`
// The hash ID of the log stream to archive.
Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"`
// The archival key of the log stream. If this key doesn't match the key in
// the log stream state, the request is superfluous and should be deleted.
Key []byte `protobuf:"bytes,3,opt,name=key,proto3" json:"key,omitempty"`
// Don't waste time archiving the log stream until it is at least this old.
//
// This is in place to prevent overly-aggressive archivals from wasting time
// trying, then failing, becuase the log stream data is still being collected
// into intermediate storage.
SettleDelay *duration.Duration `protobuf:"bytes,4,opt,name=settle_delay,json=settleDelay,proto3" json:"settle_delay,omitempty"`
// The amount of time after the task was created that log stream completeness
// will be used as a success criteria. If the task's age is older than this
// value, completeness will not be enforced.
//
// The task's age can be calculated by subtracting its lease expiration time
// (leaseTimestamp) from its enqueued timestamp (enqueueTimestamp).
CompletePeriod *duration.Duration `protobuf:"bytes,5,opt,name=complete_period,json=completePeriod,proto3" json:"complete_period,omitempty"`
// The time when this archive task was dispatched.
//
// This time is optional, and will be based on the Coordinator's clock. If not
// zero, it can be used by the Archivist to avoid superfluous archival
// processing by asserting that IF this time is close to the Archivist's local
// clock by a specific threshold, it will punt the archival task.
//
// Because archival is dispatched by Tumble, the actual encoding of archival
// parameters is oftentimes delayed such that the request is dispatched to
// Pub/Sub before the datastore has been updated.
DispatchedAt *timestamp.Timestamp `protobuf:"bytes,6,opt,name=dispatched_at,json=dispatchedAt,proto3" json:"dispatched_at,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ArchiveTask) Reset() { *m = ArchiveTask{} }
func (m *ArchiveTask) String() string { return proto.CompactTextString(m) }
func (*ArchiveTask) ProtoMessage() {}
func (*ArchiveTask) Descriptor() ([]byte, []int) {
return fileDescriptor_cd952f8ecee7e922, []int{1}
}
func (m *ArchiveTask) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ArchiveTask.Unmarshal(m, b)
}
func (m *ArchiveTask) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ArchiveTask.Marshal(b, m, deterministic)
}
func (m *ArchiveTask) XXX_Merge(src proto.Message) {
xxx_messageInfo_ArchiveTask.Merge(m, src)
}
func (m *ArchiveTask) XXX_Size() int {
return xxx_messageInfo_ArchiveTask.Size(m)
}
func (m *ArchiveTask) XXX_DiscardUnknown() {
xxx_messageInfo_ArchiveTask.DiscardUnknown(m)
}
var xxx_messageInfo_ArchiveTask proto.InternalMessageInfo
func (m *ArchiveTask) GetProject() string {
if m != nil {
return m.Project
}
return ""
}
func (m *ArchiveTask) GetId() string {
if m != nil {
return m.Id
}
return ""
}
func (m *ArchiveTask) GetKey() []byte {
if m != nil {
return m.Key
}
return nil
}
func (m *ArchiveTask) GetSettleDelay() *duration.Duration {
if m != nil {
return m.SettleDelay
}
return nil
}
func (m *ArchiveTask) GetCompletePeriod() *duration.Duration {
if m != nil {
return m.CompletePeriod
}
return nil
}
func (m *ArchiveTask) GetDispatchedAt() *timestamp.Timestamp {
if m != nil {
return m.DispatchedAt
}
return nil
}
func init() {
proto.RegisterEnum("logdog.ArchiveDispatchTask_Tag", ArchiveDispatchTask_Tag_name, ArchiveDispatchTask_Tag_value)
proto.RegisterType((*ArchiveDispatchTask)(nil), "logdog.ArchiveDispatchTask")
proto.RegisterType((*ArchiveTask)(nil), "logdog.ArchiveTask")
}
func init() {
proto.RegisterFile("github.com/TriggerMail/luci-go/logdog/api/endpoints/coordinator/services/v1/tasks.proto", fileDescriptor_cd952f8ecee7e922)
}
var fileDescriptor_cd952f8ecee7e922 = []byte{
// 377 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x92, 0xbf, 0x8f, 0xd3, 0x30,
0x14, 0xc7, 0x49, 0x72, 0xf4, 0x84, 0x53, 0x42, 0x65, 0x96, 0xd0, 0x81, 0xab, 0x32, 0x75, 0xb2,
0x75, 0xc7, 0x8a, 0x84, 0x8a, 0x92, 0xe1, 0x86, 0xa2, 0x2a, 0xca, 0xc0, 0x56, 0xb9, 0xb6, 0x71,
0x4d, 0x93, 0x3c, 0xcb, 0x76, 0x2a, 0xf1, 0x3f, 0xf0, 0x37, 0x23, 0xd4, 0xfc, 0x00, 0x89, 0x22,
0x21, 0x74, 0x5b, 0x62, 0x7f, 0xbe, 0xcf, 0xef, 0xf3, 0x6c, 0xb4, 0x55, 0x40, 0xf8, 0xd1, 0x42,
0xa3, 0xbb, 0x86, 0x80, 0x55, 0xb4, 0xee, 0xb8, 0xa6, 0x35, 0x28, 0x01, 0x8a, 0x32, 0xa3, 0xa9,
0x6c, 0x85, 0x01, 0xdd, 0x7a, 0x47, 0x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