| OLD | NEW |
| 1 // Code generated by protoc-gen-go. DO NOT EDIT. | 1 // Code generated by protoc-gen-go. DO NOT EDIT. |
| 2 // source: github.com/luci/luci-go/logdog/api/endpoints/coordinator/services/v1/
tasks.proto | 2 // source: github.com/luci/luci-go/logdog/api/endpoints/coordinator/services/v1/
tasks.proto |
| 3 | 3 |
| 4 package logdog | 4 package logdog |
| 5 | 5 |
| 6 import proto "github.com/golang/protobuf/proto" | 6 import proto "github.com/golang/protobuf/proto" |
| 7 import fmt "fmt" | 7 import fmt "fmt" |
| 8 import math "math" | 8 import math "math" |
| 9 import google_protobuf "github.com/golang/protobuf/ptypes/duration" | 9 import google_protobuf "github.com/golang/protobuf/ptypes/duration" |
| 10 import google_protobuf2 "github.com/golang/protobuf/ptypes/timestamp" | 10 import google_protobuf2 "github.com/golang/protobuf/ptypes/timestamp" |
| 11 | 11 |
| 12 // Reference imports to suppress errors if they are not otherwise used. | 12 // Reference imports to suppress errors if they are not otherwise used. |
| 13 var _ = proto.Marshal | 13 var _ = proto.Marshal |
| 14 var _ = fmt.Errorf | 14 var _ = fmt.Errorf |
| 15 var _ = math.Inf | 15 var _ = math.Inf |
| 16 | 16 |
| 17 // The type of archival task. |
| 18 type ArchiveDispatchTask_Tag int32 |
| 19 |
| 20 const ( |
| 21 ArchiveDispatchTask_TERMINATED ArchiveDispatchTask_Tag = 0 |
| 22 ArchiveDispatchTask_EXPIRED ArchiveDispatchTask_Tag = 1 |
| 23 ) |
| 24 |
| 25 var ArchiveDispatchTask_Tag_name = map[int32]string{ |
| 26 0: "TERMINATED", |
| 27 1: "EXPIRED", |
| 28 } |
| 29 var ArchiveDispatchTask_Tag_value = map[string]int32{ |
| 30 "TERMINATED": 0, |
| 31 "EXPIRED": 1, |
| 32 } |
| 33 |
| 34 func (x ArchiveDispatchTask_Tag) String() string { |
| 35 return proto.EnumName(ArchiveDispatchTask_Tag_name, int32(x)) |
| 36 } |
| 37 func (ArchiveDispatchTask_Tag) EnumDescriptor() ([]byte, []int) { return fileDes
criptor2, []int{0, 0} } |
| 38 |
| 39 // ArchiveDispatchTask is an internal task used by the Coordinator to schedule |
| 40 // an archival dispatch. |
| 41 type ArchiveDispatchTask struct { |
| 42 // The hash ID for the log stream to archive. |
| 43 Id string `protobuf:"bytes,1,opt,name=id" json:"id,omi
tempty"` |
| 44 Tag ArchiveDispatchTask_Tag `protobuf:"varint,2,opt,name=tag,enum=logdog
.ArchiveDispatchTask_Tag" json:"tag,omitempty"` |
| 45 // Don't waste time archiving the log stream until it is at least this o
ld. |
| 46 // |
| 47 // This is in place to prevent overly-aggressive archivals from wasting
time |
| 48 // trying, then failing, becuase the log stream data is still being coll
ected |
| 49 // into intermediate storage. |
| 50 SettleDelay *google_protobuf.Duration `protobuf:"bytes,3,opt,name=settle
_delay,json=settleDelay" json:"settle_delay,omitempty"` |
| 51 // The amount of time after the task was created that log stream complet
eness |
| 52 // will be used as a success criteria. If the task's age is older than t
his |
| 53 // value, completeness will not be enforced. |
| 54 // |
| 55 // The task's age can be calculated by subtracting its lease expiration
time |
| 56 // (leaseTimestamp) from its enqueued timestamp (enqueueTimestamp). |
| 57 CompletePeriod *google_protobuf.Duration `protobuf:"bytes,4,opt,name=com
plete_period,json=completePeriod" json:"complete_period,omitempty"` |
| 58 } |
| 59 |
| 60 func (m *ArchiveDispatchTask) Reset() { *m = ArchiveDispatchT
ask{} } |
| 61 func (m *ArchiveDispatchTask) String() string { return proto.CompactT
extString(m) } |
| 62 func (*ArchiveDispatchTask) ProtoMessage() {} |
| 63 func (*ArchiveDispatchTask) Descriptor() ([]byte, []int) { return fileDescriptor
2, []int{0} } |
| 64 |
| 65 func (m *ArchiveDispatchTask) GetId() string { |
| 66 if m != nil { |
| 67 return m.Id |
| 68 } |
| 69 return "" |
| 70 } |
| 71 |
| 72 func (m *ArchiveDispatchTask) GetTag() ArchiveDispatchTask_Tag { |
| 73 if m != nil { |
| 74 return m.Tag |
| 75 } |
| 76 return ArchiveDispatchTask_TERMINATED |
| 77 } |
| 78 |
| 79 func (m *ArchiveDispatchTask) GetSettleDelay() *google_protobuf.Duration { |
| 80 if m != nil { |
| 81 return m.SettleDelay |
| 82 } |
| 83 return nil |
| 84 } |
| 85 |
| 86 func (m *ArchiveDispatchTask) GetCompletePeriod() *google_protobuf.Duration { |
| 87 if m != nil { |
| 88 return m.CompletePeriod |
| 89 } |
| 90 return nil |
| 91 } |
| 92 |
| 17 // ArchiveTask is a task queue task description for the archival of a single | 93 // ArchiveTask is a task queue task description for the archival of a single |
| 18 // log stream. | 94 // log stream. |
| 19 type ArchiveTask struct { | 95 type ArchiveTask struct { |
| 20 // The name of the project that this stream is bound to. | 96 // The name of the project that this stream is bound to. |
| 21 Project string `protobuf:"bytes,1,opt,name=project" json:"project,omitem
pty"` | 97 Project string `protobuf:"bytes,1,opt,name=project" json:"project,omitem
pty"` |
| 22 // The hash ID of the log stream to archive. | 98 // The hash ID of the log stream to archive. |
| 23 Id string `protobuf:"bytes,2,opt,name=id" json:"id,omitempty"` | 99 Id string `protobuf:"bytes,2,opt,name=id" json:"id,omitempty"` |
| 24 // The archival key of the log stream. If this key doesn't match the key
in | 100 // The archival key of the log stream. If this key doesn't match the key
in |
| 25 // the log stream state, the request is superfluous and should be delete
d. | 101 // the log stream state, the request is superfluous and should be delete
d. |
| 26 Key []byte `protobuf:"bytes,3,opt,name=key,proto3" json:"key,omitempty"` | 102 Key []byte `protobuf:"bytes,3,opt,name=key,proto3" json:"key,omitempty"` |
| (...skipping 19 matching lines...) Expand all Loading... |
| 46 // | 122 // |
| 47 // Because archival is dispatched by Tumble, the actual encoding of arch
ival | 123 // Because archival is dispatched by Tumble, the actual encoding of arch
ival |
| 48 // parameters is oftentimes delayed such that the request is dispatched
to | 124 // parameters is oftentimes delayed such that the request is dispatched
to |
| 49 // Pub/Sub before the datastore has been updated. | 125 // Pub/Sub before the datastore has been updated. |
| 50 DispatchedAt *google_protobuf2.Timestamp `protobuf:"bytes,6,opt,name=dis
patched_at,json=dispatchedAt" json:"dispatched_at,omitempty"` | 126 DispatchedAt *google_protobuf2.Timestamp `protobuf:"bytes,6,opt,name=dis
patched_at,json=dispatchedAt" json:"dispatched_at,omitempty"` |
| 51 } | 127 } |
| 52 | 128 |
| 53 func (m *ArchiveTask) Reset() { *m = ArchiveTask{} } | 129 func (m *ArchiveTask) Reset() { *m = ArchiveTask{} } |
| 54 func (m *ArchiveTask) String() string { return proto.CompactTextStrin
g(m) } | 130 func (m *ArchiveTask) String() string { return proto.CompactTextStrin
g(m) } |
| 55 func (*ArchiveTask) ProtoMessage() {} | 131 func (*ArchiveTask) ProtoMessage() {} |
| 56 func (*ArchiveTask) Descriptor() ([]byte, []int) { return fileDescriptor2, []int
{0} } | 132 func (*ArchiveTask) Descriptor() ([]byte, []int) { return fileDescriptor2, []int
{1} } |
| 57 | 133 |
| 58 func (m *ArchiveTask) GetProject() string { | 134 func (m *ArchiveTask) GetProject() string { |
| 59 if m != nil { | 135 if m != nil { |
| 60 return m.Project | 136 return m.Project |
| 61 } | 137 } |
| 62 return "" | 138 return "" |
| 63 } | 139 } |
| 64 | 140 |
| 65 func (m *ArchiveTask) GetId() string { | 141 func (m *ArchiveTask) GetId() string { |
| 66 if m != nil { | 142 if m != nil { |
| (...skipping 24 matching lines...) Expand all Loading... |
| 91 } | 167 } |
| 92 | 168 |
| 93 func (m *ArchiveTask) GetDispatchedAt() *google_protobuf2.Timestamp { | 169 func (m *ArchiveTask) GetDispatchedAt() *google_protobuf2.Timestamp { |
| 94 if m != nil { | 170 if m != nil { |
| 95 return m.DispatchedAt | 171 return m.DispatchedAt |
| 96 } | 172 } |
| 97 return nil | 173 return nil |
| 98 } | 174 } |
| 99 | 175 |
| 100 func init() { | 176 func init() { |
| 177 proto.RegisterType((*ArchiveDispatchTask)(nil), "logdog.ArchiveDispatchT
ask") |
| 101 proto.RegisterType((*ArchiveTask)(nil), "logdog.ArchiveTask") | 178 proto.RegisterType((*ArchiveTask)(nil), "logdog.ArchiveTask") |
| 179 proto.RegisterEnum("logdog.ArchiveDispatchTask_Tag", ArchiveDispatchTask
_Tag_name, ArchiveDispatchTask_Tag_value) |
| 102 } | 180 } |
| 103 | 181 |
| 104 func init() { | 182 func init() { |
| 105 proto.RegisterFile("github.com/luci/luci-go/logdog/api/endpoints/coordin
ator/services/v1/tasks.proto", fileDescriptor2) | 183 proto.RegisterFile("github.com/luci/luci-go/logdog/api/endpoints/coordin
ator/services/v1/tasks.proto", fileDescriptor2) |
| 106 } | 184 } |
| 107 | 185 |
| 108 var fileDescriptor2 = []byte{ | 186 var fileDescriptor2 = []byte{ |
| 109 » // 295 bytes of a gzipped FileDescriptorProto | 187 » // 379 bytes of a gzipped FileDescriptorProto |
| 110 » 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x84, 0x90,
0x41, 0x4b, 0x33, 0x31, | 188 » 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x92,
0xcd, 0x8e, 0xd3, 0x30, |
| 111 » 0x10, 0x86, 0xd9, 0xed, 0xf7, 0x55, 0x4c, 0x6b, 0x95, 0x9c, 0x62, 0x0f,
0x5a, 0x3c, 0xf5, 0xe2, | 189 » 0x14, 0x85, 0x49, 0x3a, 0x74, 0x84, 0x5b, 0x4a, 0x65, 0x36, 0xa1, 0x0b,
0xa6, 0xca, 0xaa, 0x1b, |
| 112 » 0x06, 0xf5, 0x2a, 0x48, 0xa5, 0x3f, 0xa0, 0x2c, 0xbd, 0x97, 0x34, 0x19,
0xb7, 0x63, 0x77, 0x77, | 190 » 0x6c, 0xcd, 0xb0, 0x45, 0x42, 0x45, 0xc9, 0x62, 0x16, 0xa0, 0x2a, 0xca,
0x82, 0x5d, 0xe5, 0xda, |
| 113 » 0x42, 0x32, 0x5b, 0xe8, 0x7f, 0xf0, 0x47, 0x4b, 0x77, 0x5d, 0x04, 0x3d,
0x78, 0x09, 0xc9, 0xe4, | 191 » 0xc6, 0x35, 0x4d, 0x72, 0x2d, 0xfb, 0xa6, 0x12, 0xef, 0xc0, 0x33, 0x23,
0xd4, 0xfc, 0x80, 0xc4, |
| 114 » 0x79, 0x5e, 0x5e, 0x46, 0xac, 0x0a, 0xe4, 0x5d, 0xb3, 0xcd, 0x2c, 0x55,
0xba, 0x6c, 0x2c, 0xb6, | 192 » 0x20, 0x21, 0x34, 0x1b, 0xcb, 0x3f, 0xe7, 0x5c, 0x9f, 0xef, 0xda, 0x64,
0x67, 0x2c, 0x1e, 0xdb, |
| 115 » 0xc7, 0x7d, 0x41, 0xba, 0xa4, 0xc2, 0x51, 0xa1, 0x8d, 0x47, 0x0d, 0xb5,
0xf3, 0x84, 0x35, 0x47, | 193 » 0x03, 0x93, 0x50, 0xf3, 0xaa, 0x95, 0xb6, 0x1b, 0xde, 0x18, 0xe0, 0x15,
0x18, 0x05, 0x86, 0x0b, |
| 116 » 0x6d, 0x89, 0x82, 0xc3, 0xda, 0x30, 0x05, 0x1d, 0x21, 0x1c, 0xd0, 0x42,
0xd4, 0x87, 0x07, 0xcd, | 194 » 0x67, 0xb9, 0x6e, 0x94, 0x03, 0xdb, 0x60, 0xe0, 0x12, 0xc0, 0x2b, 0xdb,
0x08, 0x04, 0xcf, 0x83, |
| 117 » 0x26, 0xee, 0x63, 0xe6, 0x03, 0x31, 0xc9, 0x61, 0x67, 0x4e, 0x6f, 0x0a,
0xa2, 0xa2, 0x04, 0xdd, | 195 » 0xf6, 0x67, 0x2b, 0x75, 0xe0, 0xe7, 0x5b, 0x8e, 0x22, 0x9c, 0x02, 0x73,
0x1e, 0x10, 0xe8, 0xb4, |
| 118 » 0x4e, 0xb7, 0xcd, 0x9b, 0x76, 0x4d, 0x30, 0x8c, 0x54, 0x77, 0xdc, 0xf4,
0xf6, 0xe7, 0x3f, 0x63, | 196 » 0x77, 0xae, 0x5e, 0x1b, 0x00, 0x53, 0x69, 0xde, 0xed, 0x1e, 0xda, 0x2f,
0x5c, 0xb5, 0x5e, 0xa0, |
| 119 » 0x05, 0x91, 0x4d, 0xe5, 0x3b, 0xe0, 0xee, 0x23, 0x15, 0xa3, 0x45, 0xb0,
0x3b, 0x3c, 0xc0, 0xda, | 197 » 0x85, 0xa6, 0xd7, 0xad, 0x6e, 0xfe, 0x3c, 0x47, 0x5b, 0xeb, 0x80, 0xa2,
0x76, 0xbd, 0x20, 0xfd, |
| 120 » 0xc4, 0xbd, 0x54, 0xe2, 0xcc, 0x07, 0x7a, 0x07, 0xcb, 0x2a, 0x99, 0x25,
0xf3, 0xf3, 0xbc, 0x7f, | 198 » 0x11, 0x91, 0x97, 0x5b, 0x2f, 0x8f, 0xf6, 0xac, 0x33, 0x1b, 0x9c, 0x40,
0x79, 0x2c, 0x45, 0x38, |
| 121 » 0xca, 0x89, 0x48, 0xd1, 0xa9, 0xb4, 0x1d, 0xa6, 0xe8, 0xe4, 0x95, 0x18,
0xec, 0xe1, 0xa8, 0x06, | 199 » 0xd1, 0x05, 0x89, 0xad, 0x4a, 0xa2, 0x75, 0xb4, 0x79, 0x56, 0xc4, 0x56,
0xd1, 0x5b, 0x32, 0x41, |
| 122 » 0xb3, 0x64, 0x3e, 0xce, 0x4f, 0x57, 0xf9, 0x2c, 0xc6, 0x11, 0x98, 0x4b,
0xd8, 0x38, 0x28, 0xcd, | 200 » 0x61, 0x92, 0x78, 0x1d, 0x6d, 0x16, 0x77, 0x37, 0xac, 0xbf, 0x9e, 0xfd,
0xc5, 0xc9, 0x4a, 0x61, |
| 123 » 0x51, 0xfd, 0x9b, 0x25, 0xf3, 0xd1, 0xe3, 0x75, 0xd6, 0x75, 0xc8, 0xfa,
0x0e, 0xd9, 0xf2, 0xab, | 201 » 0x8a, 0x8b, 0x96, 0xbe, 0x23, 0xf3, 0xa0, 0x11, 0x2b, 0xbd, 0x57, 0xba,
0x12, 0xdf, 0x92, 0xc9, |
| 124 » 0x63, 0x3e, 0xea, 0xf0, 0xe5, 0x89, 0x96, 0xaf, 0xe2, 0xd2, 0x52, 0xe5,
0x4b, 0x60, 0xd8, 0x78, | 202 » 0x3a, 0xda, 0xcc, 0xee, 0x5e, 0xb1, 0x3e, 0x12, 0x1b, 0x23, 0xb1, 0x6c,
0x88, 0x5c, 0xcc, 0x7a, |
| 125 » 0x08, 0x48, 0x4e, 0xfd, 0xff, 0x2b, 0x60, 0xd2, 0x1b, 0xab, 0x56, 0x90,
0x2f, 0xe2, 0xc2, 0x61, | 203 » 0x79, 0x76, 0x51, 0xd3, 0x0f, 0xe4, 0x85, 0x84, 0xda, 0x55, 0x1a, 0xf5,
0xde, 0x69, 0x6f, 0x41, |
| 126 » 0xf4, 0x86, 0xed, 0x0e, 0xdc, 0xc6, 0xb0, 0x1a, 0xb6, 0x09, 0xd3, 0x5f,
0x09, 0xeb, 0x7e, 0x0d, | 204 » 0x25, 0x57, 0xff, 0x2a, 0xb0, 0x18, 0x1d, 0xbb, 0xce, 0x90, 0xa6, 0x64,
0x52, 0x0a, 0x43, 0x17, |
| 127 » 0xf9, 0xf8, 0x5b, 0x58, 0xf0, 0x76, 0xd8, 0x12, 0x4f, 0x9f, 0x01, 0x00,
0x00, 0xff, 0xff, 0x0a, | 205 » 0x84, 0x94, 0x79, 0xf1, 0xf1, 0xfe, 0xd3, 0xb6, 0xcc, 0xb3, 0xe5, 0x13,
0x3a, 0x23, 0xd7, 0xf9, |
| 128 » 0x85, 0xe4, 0x2b, 0xb2, 0x01, 0x00, 0x00, | 206 » 0xe7, 0xdd, 0x7d, 0x91, 0x67, 0xcb, 0x28, 0xfd, 0x1e, 0x93, 0xd9, 0x80,
0xd1, 0x81, 0x27, 0xe4, |
| 207 » 0xda, 0x79, 0xf8, 0xaa, 0x25, 0x0e, 0xf4, 0xe3, 0x72, 0x68, 0x49, 0xfc,
0xab, 0x25, 0x4b, 0x32, |
| 208 » 0x39, 0xe9, 0x1e, 0x6b, 0x5e, 0x5c, 0xa6, 0x0f, 0x88, 0xaf, 0x1e, 0x4b,
0xfc, 0xf4, 0x3f, 0x89, |
| 209 » 0xe9, 0x7b, 0xf2, 0x5c, 0x0d, 0x8f, 0xa1, 0xd5, 0x5e, 0x60, 0x32, 0xed,
0x2a, 0xac, 0x1e, 0x54, |
| 210 » 0x28, 0xc7, 0x7f, 0x50, 0xcc, 0x7f, 0x1b, 0xb6, 0x78, 0x98, 0x76, 0x8a,
0xb7, 0x3f, 0x03, 0x00, |
| 211 » 0x00, 0xff, 0xff, 0x49, 0xdd, 0x06, 0x6c, 0xb3, 0x02, 0x00, 0x00, |
| 129 } | 212 } |
| OLD | NEW |