| 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 amount of time after the task was created that log stream complet
eness |
| 22 » Complete bool `protobuf:"varint,2,opt,name=complete" json:"complete,omit
empty"` | 23 » // will be used as a success criteria. If the task's age is older than t
his |
| 24 » // value, completeness will not be enforced. |
| 25 » // |
| 26 » // The task's age can be calculated by subtracting its lease expiration
time |
| 27 » // (leaseTimestamp) from its enqueued timestamp (enqueueTimestamp). |
| 28 » CompletePeriod *google_protobuf1.Duration `protobuf:"bytes,2,opt,name=co
mplete_period,json=completePeriod" json:"complete_period,omitempty"` |
| 23 } | 29 } |
| 24 | 30 |
| 25 func (m *ArchiveTask) Reset() { *m = ArchiveTask{} } | 31 func (m *ArchiveTask) Reset() { *m = ArchiveTask{} } |
| 26 func (m *ArchiveTask) String() string { return proto.CompactTextStrin
g(m) } | 32 func (m *ArchiveTask) String() string { return proto.CompactTextStrin
g(m) } |
| 27 func (*ArchiveTask) ProtoMessage() {} | 33 func (*ArchiveTask) ProtoMessage() {} |
| 28 func (*ArchiveTask) Descriptor() ([]byte, []int) { return fileDescriptor2, []int
{0} } | 34 func (*ArchiveTask) Descriptor() ([]byte, []int) { return fileDescriptor2, []int
{0} } |
| 29 | 35 |
| 36 func (m *ArchiveTask) GetCompletePeriod() *google_protobuf1.Duration { |
| 37 if m != nil { |
| 38 return m.CompletePeriod |
| 39 } |
| 40 return nil |
| 41 } |
| 42 |
| 30 func init() { | 43 func init() { |
| 31 proto.RegisterType((*ArchiveTask)(nil), "logdog.ArchiveTask") | 44 proto.RegisterType((*ArchiveTask)(nil), "logdog.ArchiveTask") |
| 32 } | 45 } |
| 33 | 46 |
| 34 var fileDescriptor2 = []byte{ | 47 var fileDescriptor2 = []byte{ |
| 35 » // 100 bytes of a gzipped FileDescriptorProto | 48 » // 149 bytes of a gzipped FileDescriptorProto |
| 36 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0xe2, 0xe2,
0x2e, 0x49, 0x2c, 0xce, | 49 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, | 50 » 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, | 51 » 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, | 52 » 0x16, 0x25, 0x96, 0x64, 0xe6, 0xe7, 0x41, 0xd4, 0x29, 0xa5, 0x72, 0x71,
0x3b, 0x16, 0x25, 0x67, |
| 40 » 0x5c, 0x1c, 0xc9, 0xf9, 0xb9, 0x05, 0x39, 0xa9, 0x25, 0xa9, 0x12, 0x4c,
0x40, 0x71, 0x8e, 0x20, | 53 » 0x64, 0x96, 0xa5, 0x86, 0x00, 0x75, 0x0b, 0x09, 0x71, 0xb1, 0x14, 0x24,
0x96, 0x64, 0x48, 0x30, |
| 41 » 0x38, 0x3f, 0x89, 0x0d, 0x6c, 0x9a, 0x31, 0x20, 0x00, 0x00, 0xff, 0xff,
0x53, 0x52, 0x9b, 0x13, | 54 » 0x2a, 0x30, 0x6a, 0x70, 0x06, 0x81, 0xd9, 0x42, 0x4e, 0x5c, 0xfc, 0xc9,
0xf9, 0xb9, 0x05, 0x39, |
| 42 » 0x5c, 0x00, 0x00, 0x00, | 55 » 0xa9, 0x25, 0xa9, 0xf1, 0x05, 0xa9, 0x45, 0x99, 0xf9, 0x29, 0x12, 0x4c,
0x40, 0x69, 0x6e, 0x23, |
| 56 » 0x49, 0x3d, 0x88, 0xe1, 0x7a, 0x30, 0xc3, 0xf5, 0x5c, 0xa0, 0x86, 0x07,
0xf1, 0xc1, 0x74, 0x04, |
| 57 » 0x80, 0x35, 0x24, 0xb1, 0x81, 0x95, 0x18, 0x03, 0x02, 0x00, 0x00, 0xff,
0xff, 0xaa, 0x54, 0xdd, |
| 58 » 0x1b, 0xa4, 0x00, 0x00, 0x00, |
| 43 } | 59 } |
| OLD | NEW |