| OLD | NEW |
| 1 // Code generated by protoc-gen-go. | 1 // Code generated by protoc-gen-go. |
| 2 // source: tasks.proto | 2 // source: tasks.proto |
| 3 // DO NOT EDIT! | 3 // DO NOT EDIT! |
| 4 | 4 |
| 5 package logdog | 5 package logdog |
| 6 | 6 |
| 7 import proto "github.com/golang/protobuf/proto" | 7 import proto "github.com/golang/protobuf/proto" |
| 8 import fmt "fmt" | 8 import fmt "fmt" |
| 9 import math "math" | 9 import math "math" |
| 10 import google_protobuf1 "github.com/luci/luci-go/common/proto/google" |
| 10 | 11 |
| 11 // Reference imports to suppress errors if they are not otherwise used. | 12 // Reference imports to suppress errors if they are not otherwise used. |
| 12 var _ = proto.Marshal | 13 var _ = proto.Marshal |
| 13 var _ = fmt.Errorf | 14 var _ = fmt.Errorf |
| 14 var _ = math.Inf | 15 var _ = math.Inf |
| 15 | 16 |
| 16 // ArchiveTask is a task queue task description for the archival of a single | 17 // ArchiveTask is a task queue task description for the archival of a single |
| 17 // log stream. | 18 // log stream. |
| 18 type ArchiveTask struct { | 19 type ArchiveTask struct { |
| 19 // The path of the log stream to archive. | 20 // The path of the log stream to archive. |
| 20 Path string `protobuf:"bytes,1,opt,name=path" json:"path,omitempty"` | 21 Path string `protobuf:"bytes,1,opt,name=path" json:"path,omitempty"` |
| 21 » // If true, require that the log stream be complete. | 22 » // The archival key of the log stream. If this key doesn't match the key
in |
| 22 » Complete bool `protobuf:"varint,2,opt,name=complete" json:"complete,omit
empty"` | 23 » // the log stream state, the request is superfluous and should be delete
d. |
| 24 » Key []byte `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"` |
| 25 » // Don't waste time archiving the log stream until it is at least this o
ld. |
| 26 » // |
| 27 » // This is in place to prevent overly-aggressive archivals from wasting
time |
| 28 » // trying, then failing, becuase the log stream data is still being coll
ected |
| 29 » // into intermediate storage. |
| 30 » SettleDelay *google_protobuf1.Duration `protobuf:"bytes,3,opt,name=settl
e_delay,json=settleDelay" json:"settle_delay,omitempty"` |
| 31 » // The amount of time after the task was created that log stream complet
eness |
| 32 » // will be used as a success criteria. If the task's age is older than t
his |
| 33 » // value, completeness will not be enforced. |
| 34 » // |
| 35 » // The task's age can be calculated by subtracting its lease expiration
time |
| 36 » // (leaseTimestamp) from its enqueued timestamp (enqueueTimestamp). |
| 37 » CompletePeriod *google_protobuf1.Duration `protobuf:"bytes,4,opt,name=co
mplete_period,json=completePeriod" json:"complete_period,omitempty"` |
| 23 } | 38 } |
| 24 | 39 |
| 25 func (m *ArchiveTask) Reset() { *m = ArchiveTask{} } | 40 func (m *ArchiveTask) Reset() { *m = ArchiveTask{} } |
| 26 func (m *ArchiveTask) String() string { return proto.CompactTextStrin
g(m) } | 41 func (m *ArchiveTask) String() string { return proto.CompactTextStrin
g(m) } |
| 27 func (*ArchiveTask) ProtoMessage() {} | 42 func (*ArchiveTask) ProtoMessage() {} |
| 28 func (*ArchiveTask) Descriptor() ([]byte, []int) { return fileDescriptor2, []int
{0} } | 43 func (*ArchiveTask) Descriptor() ([]byte, []int) { return fileDescriptor2, []int
{0} } |
| 29 | 44 |
| 45 func (m *ArchiveTask) GetSettleDelay() *google_protobuf1.Duration { |
| 46 if m != nil { |
| 47 return m.SettleDelay |
| 48 } |
| 49 return nil |
| 50 } |
| 51 |
| 52 func (m *ArchiveTask) GetCompletePeriod() *google_protobuf1.Duration { |
| 53 if m != nil { |
| 54 return m.CompletePeriod |
| 55 } |
| 56 return nil |
| 57 } |
| 58 |
| 30 func init() { | 59 func init() { |
| 31 proto.RegisterType((*ArchiveTask)(nil), "logdog.ArchiveTask") | 60 proto.RegisterType((*ArchiveTask)(nil), "logdog.ArchiveTask") |
| 32 } | 61 } |
| 33 | 62 |
| 34 var fileDescriptor2 = []byte{ | 63 var fileDescriptor2 = []byte{ |
| 35 » // 100 bytes of a gzipped FileDescriptorProto | 64 » // 191 bytes of a gzipped FileDescriptorProto |
| 36 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0xe2, 0xe2,
0x2e, 0x49, 0x2c, 0xce, | 65 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0xe2, 0xe2,
0x2e, 0x49, 0x2c, 0xce, |
| 37 » 0x2e, 0xd6, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x62, 0xcb, 0xc9, 0x4f,
0x4f, 0xc9, 0x4f, 0x57, | 66 » 0x2e, 0xd6, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x62, 0xcb, 0xc9, 0x4f,
0x4f, 0xc9, 0x4f, 0x97, |
| 38 » 0xb2, 0xe5, 0xe2, 0x76, 0x2c, 0x4a, 0xce, 0xc8, 0x2c, 0x4b, 0x0d, 0x01,
0xca, 0x0a, 0x09, 0x71, | 67 » 0x92, 0x4b, 0xcf, 0xcf, 0x4f, 0xcf, 0x49, 0xd5, 0x07, 0x8b, 0x26, 0x95,
0xa6, 0xe9, 0xa7, 0x94, |
| 39 » 0xb1, 0x14, 0x24, 0x96, 0x64, 0x48, 0x30, 0x2a, 0x30, 0x6a, 0x70, 0x06,
0x81, 0xd9, 0x42, 0x52, | 68 » 0x16, 0x25, 0x96, 0x64, 0xe6, 0xe7, 0x41, 0xd4, 0x29, 0x6d, 0x65, 0xe4,
0xe2, 0x76, 0x2c, 0x4a, |
| 40 » 0x5c, 0x1c, 0xc9, 0xf9, 0xb9, 0x05, 0x39, 0xa9, 0x25, 0xa9, 0x12, 0x4c,
0x40, 0x71, 0x8e, 0x20, | 69 » 0xce, 0xc8, 0x2c, 0x4b, 0x0d, 0x01, 0x6a, 0x17, 0x12, 0xe2, 0x62, 0x29,
0x48, 0x2c, 0xc9, 0x90, |
| 41 » 0x38, 0x3f, 0x89, 0x0d, 0x6c, 0x9a, 0x31, 0x20, 0x00, 0x00, 0xff, 0xff,
0x53, 0x52, 0x9b, 0x13, | 70 » 0x60, 0x54, 0x60, 0xd4, 0xe0, 0x0c, 0x02, 0xb3, 0x85, 0x04, 0xb8, 0x98,
0xb3, 0x53, 0x2b, 0x25, |
| 42 » 0x5c, 0x00, 0x00, 0x00, | 71 » 0x98, 0x80, 0x42, 0x3c, 0x41, 0x20, 0xa6, 0x90, 0x0d, 0x17, 0x4f, 0x71,
0x6a, 0x49, 0x49, 0x4e, |
| 72 » 0x6a, 0x7c, 0x4a, 0x6a, 0x4e, 0x62, 0xa5, 0x04, 0x33, 0x50, 0x8a, 0xdb,
0x48, 0x52, 0x0f, 0x62, |
| 73 » 0x99, 0x1e, 0xcc, 0x32, 0x3d, 0x17, 0xa8, 0x65, 0x41, 0xdc, 0x10, 0xe5,
0x2e, 0x20, 0xd5, 0x42, |
| 74 » 0x4e, 0x5c, 0xfc, 0xc9, 0xf9, 0xb9, 0x05, 0x39, 0xa9, 0x25, 0xa9, 0xf1,
0x05, 0xa9, 0x45, 0x99, |
| 75 » 0xf9, 0x29, 0x12, 0x2c, 0x84, 0x0c, 0xe0, 0x83, 0xe9, 0x08, 0x00, 0x6b,
0x48, 0x62, 0x03, 0x2b, |
| 76 » 0x31, 0x06, 0x04, 0x00, 0x00, 0xff, 0xff, 0xfd, 0xb1, 0x23, 0xed, 0xf5,
0x00, 0x00, 0x00, |
| 43 } | 77 } |
| OLD | NEW |