| // 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.ProtoPackageIsVersion3 // please upgrade the proto package |
| |
| // 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"` |
| // The archival key of the previous archive task, to ensure only a single |
| // retry is tasked. |
| Key []byte `protobuf:"bytes,2,opt,name=key,proto3" json:"key,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) GetKey() []byte { |
| if m != nil { |
| return m.Key |
| } |
| 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.RegisterType((*ArchiveDispatchTask)(nil), "logdog.ArchiveDispatchTask") |
| proto.RegisterType((*ArchiveTask)(nil), "logdog.ArchiveTask") |
| } |
| |
| func init() { |
| proto.RegisterFile("go.chromium.org/luci/logdog/api/endpoints/coordinator/services/v1/tasks.proto", fileDescriptor_cd952f8ecee7e922) |
| } |
| |
| var fileDescriptor_cd952f8ecee7e922 = []byte{ |
| // 309 bytes of a gzipped FileDescriptorProto |
| 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x84, 0x90, 0x4d, 0x4b, 0xc3, 0x40, |
| 0x10, 0x40, 0x49, 0xaa, 0x15, 0xb7, 0xb5, 0x4a, 0xbc, 0xc4, 0x1e, 0xb4, 0xf4, 0xd4, 0x53, 0x16, |
| 0xf5, 0xe0, 0x45, 0x90, 0x4a, 0xaf, 0x82, 0x84, 0xde, 0xcb, 0x76, 0x77, 0x4c, 0xc7, 0x26, 0x99, |
| 0x65, 0x77, 0x52, 0xe8, 0x7f, 0xf0, 0x47, 0x4b, 0xf3, 0xa1, 0x50, 0x0f, 0xde, 0x92, 0xdd, 0xf7, |
| 0x1e, 0x33, 0x2b, 0xde, 0x32, 0x4a, 0xf4, 0xc6, 0x51, 0x81, 0x55, 0x91, 0x90, 0xcb, 0x64, 0x5e, |
| 0x69, 0x94, 0x39, 0x65, 0x86, 0x32, 0xa9, 0x2c, 0x4a, 0x28, 0x8d, 0x25, 0x2c, 0xd9, 0x4b, 0x4d, |
| 0xe4, 0x0c, 0x96, 0x8a, 0xc9, 0x49, 0x0f, 0x6e, 0x87, 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