Schedules leave the schedules control-plane resource for State Store tables behind a ScheduleService contract. A run is claimed per schedule slot, missed slots fire once, the next run stays on the schedule's grid, cron is read in the schedule-settings time zone, and failed runs are recorded and advance. Three failures in a row raise a schedule.failing alert. A fired run records a schedule-fired capture. Run history is pruned by age and count. Removes the chat and spawn-task runners, the dangerous-payload guard and the old schedules settings page.
1599 lines
51 KiB
Go
1599 lines
51 KiB
Go
// Code generated by protoc-gen-go. DO NOT EDIT.
|
|
// versions:
|
|
// protoc-gen-go v1.36.11
|
|
// protoc (unknown)
|
|
// source: state/v1/schedule.proto
|
|
|
|
package statev1
|
|
|
|
import (
|
|
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
|
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
|
timestamppb "google.golang.org/protobuf/types/known/timestamppb"
|
|
reflect "reflect"
|
|
sync "sync"
|
|
unsafe "unsafe"
|
|
)
|
|
|
|
const (
|
|
// Verify that this generated code is sufficiently up-to-date.
|
|
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
|
|
// Verify that runtime/protoimpl is sufficiently up-to-date.
|
|
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
|
|
)
|
|
|
|
type ScheduleOwner struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
// kind is "instance" or "org".
|
|
Kind string `protobuf:"bytes,1,opt,name=kind,proto3" json:"kind,omitempty"`
|
|
// id is the organisation id for an org owner, empty for the instance.
|
|
Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *ScheduleOwner) Reset() {
|
|
*x = ScheduleOwner{}
|
|
mi := &file_state_v1_schedule_proto_msgTypes[0]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *ScheduleOwner) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*ScheduleOwner) ProtoMessage() {}
|
|
|
|
func (x *ScheduleOwner) ProtoReflect() protoreflect.Message {
|
|
mi := &file_state_v1_schedule_proto_msgTypes[0]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use ScheduleOwner.ProtoReflect.Descriptor instead.
|
|
func (*ScheduleOwner) Descriptor() ([]byte, []int) {
|
|
return file_state_v1_schedule_proto_rawDescGZIP(), []int{0}
|
|
}
|
|
|
|
func (x *ScheduleOwner) GetKind() string {
|
|
if x != nil {
|
|
return x.Kind
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *ScheduleOwner) GetId() string {
|
|
if x != nil {
|
|
return x.Id
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type ScheduleTiming struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
// kind is "interval", "cron" or "once".
|
|
Kind string `protobuf:"bytes,1,opt,name=kind,proto3" json:"kind,omitempty"`
|
|
IntervalSeconds int64 `protobuf:"varint,2,opt,name=interval_seconds,json=intervalSeconds,proto3" json:"interval_seconds,omitempty"`
|
|
Cron string `protobuf:"bytes,3,opt,name=cron,proto3" json:"cron,omitempty"`
|
|
At *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=at,proto3" json:"at,omitempty"`
|
|
Start *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=start,proto3" json:"start,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *ScheduleTiming) Reset() {
|
|
*x = ScheduleTiming{}
|
|
mi := &file_state_v1_schedule_proto_msgTypes[1]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *ScheduleTiming) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*ScheduleTiming) ProtoMessage() {}
|
|
|
|
func (x *ScheduleTiming) ProtoReflect() protoreflect.Message {
|
|
mi := &file_state_v1_schedule_proto_msgTypes[1]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use ScheduleTiming.ProtoReflect.Descriptor instead.
|
|
func (*ScheduleTiming) Descriptor() ([]byte, []int) {
|
|
return file_state_v1_schedule_proto_rawDescGZIP(), []int{1}
|
|
}
|
|
|
|
func (x *ScheduleTiming) GetKind() string {
|
|
if x != nil {
|
|
return x.Kind
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *ScheduleTiming) GetIntervalSeconds() int64 {
|
|
if x != nil {
|
|
return x.IntervalSeconds
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *ScheduleTiming) GetCron() string {
|
|
if x != nil {
|
|
return x.Cron
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *ScheduleTiming) GetAt() *timestamppb.Timestamp {
|
|
if x != nil {
|
|
return x.At
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *ScheduleTiming) GetStart() *timestamppb.Timestamp {
|
|
if x != nil {
|
|
return x.Start
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type Schedule struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
|
|
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
|
|
Owner *ScheduleOwner `protobuf:"bytes,3,opt,name=owner,proto3" json:"owner,omitempty"`
|
|
Enabled bool `protobuf:"varint,4,opt,name=enabled,proto3" json:"enabled,omitempty"`
|
|
BuiltIn bool `protobuf:"varint,5,opt,name=built_in,json=builtIn,proto3" json:"built_in,omitempty"`
|
|
Timing *ScheduleTiming `protobuf:"bytes,6,opt,name=timing,proto3" json:"timing,omitempty"`
|
|
NextRun *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=next_run,json=nextRun,proto3" json:"next_run,omitempty"`
|
|
Created *timestamppb.Timestamp `protobuf:"bytes,8,opt,name=created,proto3" json:"created,omitempty"`
|
|
Updated *timestamppb.Timestamp `protobuf:"bytes,9,opt,name=updated,proto3" json:"updated,omitempty"`
|
|
LastRun *ScheduleRun `protobuf:"bytes,10,opt,name=last_run,json=lastRun,proto3" json:"last_run,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *Schedule) Reset() {
|
|
*x = Schedule{}
|
|
mi := &file_state_v1_schedule_proto_msgTypes[2]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *Schedule) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*Schedule) ProtoMessage() {}
|
|
|
|
func (x *Schedule) ProtoReflect() protoreflect.Message {
|
|
mi := &file_state_v1_schedule_proto_msgTypes[2]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use Schedule.ProtoReflect.Descriptor instead.
|
|
func (*Schedule) Descriptor() ([]byte, []int) {
|
|
return file_state_v1_schedule_proto_rawDescGZIP(), []int{2}
|
|
}
|
|
|
|
func (x *Schedule) GetId() string {
|
|
if x != nil {
|
|
return x.Id
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *Schedule) GetName() string {
|
|
if x != nil {
|
|
return x.Name
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *Schedule) GetOwner() *ScheduleOwner {
|
|
if x != nil {
|
|
return x.Owner
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *Schedule) GetEnabled() bool {
|
|
if x != nil {
|
|
return x.Enabled
|
|
}
|
|
return false
|
|
}
|
|
|
|
func (x *Schedule) GetBuiltIn() bool {
|
|
if x != nil {
|
|
return x.BuiltIn
|
|
}
|
|
return false
|
|
}
|
|
|
|
func (x *Schedule) GetTiming() *ScheduleTiming {
|
|
if x != nil {
|
|
return x.Timing
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *Schedule) GetNextRun() *timestamppb.Timestamp {
|
|
if x != nil {
|
|
return x.NextRun
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *Schedule) GetCreated() *timestamppb.Timestamp {
|
|
if x != nil {
|
|
return x.Created
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *Schedule) GetUpdated() *timestamppb.Timestamp {
|
|
if x != nil {
|
|
return x.Updated
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *Schedule) GetLastRun() *ScheduleRun {
|
|
if x != nil {
|
|
return x.LastRun
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type ScheduleRun struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
|
|
ScheduleId string `protobuf:"bytes,2,opt,name=schedule_id,json=scheduleId,proto3" json:"schedule_id,omitempty"`
|
|
ScheduledFor *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=scheduled_for,json=scheduledFor,proto3" json:"scheduled_for,omitempty"`
|
|
Started *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=started,proto3" json:"started,omitempty"`
|
|
Finished *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=finished,proto3" json:"finished,omitempty"`
|
|
// result is pending, running, succeeded, failed or skipped.
|
|
Result string `protobuf:"bytes,6,opt,name=result,proto3" json:"result,omitempty"`
|
|
Error string `protobuf:"bytes,7,opt,name=error,proto3" json:"error,omitempty"`
|
|
CaptureId string `protobuf:"bytes,8,opt,name=capture_id,json=captureId,proto3" json:"capture_id,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *ScheduleRun) Reset() {
|
|
*x = ScheduleRun{}
|
|
mi := &file_state_v1_schedule_proto_msgTypes[3]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *ScheduleRun) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*ScheduleRun) ProtoMessage() {}
|
|
|
|
func (x *ScheduleRun) ProtoReflect() protoreflect.Message {
|
|
mi := &file_state_v1_schedule_proto_msgTypes[3]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use ScheduleRun.ProtoReflect.Descriptor instead.
|
|
func (*ScheduleRun) Descriptor() ([]byte, []int) {
|
|
return file_state_v1_schedule_proto_rawDescGZIP(), []int{3}
|
|
}
|
|
|
|
func (x *ScheduleRun) GetId() int64 {
|
|
if x != nil {
|
|
return x.Id
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *ScheduleRun) GetScheduleId() string {
|
|
if x != nil {
|
|
return x.ScheduleId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *ScheduleRun) GetScheduledFor() *timestamppb.Timestamp {
|
|
if x != nil {
|
|
return x.ScheduledFor
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *ScheduleRun) GetStarted() *timestamppb.Timestamp {
|
|
if x != nil {
|
|
return x.Started
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *ScheduleRun) GetFinished() *timestamppb.Timestamp {
|
|
if x != nil {
|
|
return x.Finished
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *ScheduleRun) GetResult() string {
|
|
if x != nil {
|
|
return x.Result
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *ScheduleRun) GetError() string {
|
|
if x != nil {
|
|
return x.Error
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *ScheduleRun) GetCaptureId() string {
|
|
if x != nil {
|
|
return x.CaptureId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type ScheduleClaim struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Run *ScheduleRun `protobuf:"bytes,1,opt,name=run,proto3" json:"run,omitempty"`
|
|
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
|
|
BuiltIn bool `protobuf:"varint,3,opt,name=built_in,json=builtIn,proto3" json:"built_in,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *ScheduleClaim) Reset() {
|
|
*x = ScheduleClaim{}
|
|
mi := &file_state_v1_schedule_proto_msgTypes[4]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *ScheduleClaim) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*ScheduleClaim) ProtoMessage() {}
|
|
|
|
func (x *ScheduleClaim) ProtoReflect() protoreflect.Message {
|
|
mi := &file_state_v1_schedule_proto_msgTypes[4]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use ScheduleClaim.ProtoReflect.Descriptor instead.
|
|
func (*ScheduleClaim) Descriptor() ([]byte, []int) {
|
|
return file_state_v1_schedule_proto_rawDescGZIP(), []int{4}
|
|
}
|
|
|
|
func (x *ScheduleClaim) GetRun() *ScheduleRun {
|
|
if x != nil {
|
|
return x.Run
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *ScheduleClaim) GetName() string {
|
|
if x != nil {
|
|
return x.Name
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *ScheduleClaim) GetBuiltIn() bool {
|
|
if x != nil {
|
|
return x.BuiltIn
|
|
}
|
|
return false
|
|
}
|
|
|
|
type ListSchedulesRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *ListSchedulesRequest) Reset() {
|
|
*x = ListSchedulesRequest{}
|
|
mi := &file_state_v1_schedule_proto_msgTypes[5]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *ListSchedulesRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*ListSchedulesRequest) ProtoMessage() {}
|
|
|
|
func (x *ListSchedulesRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_state_v1_schedule_proto_msgTypes[5]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use ListSchedulesRequest.ProtoReflect.Descriptor instead.
|
|
func (*ListSchedulesRequest) Descriptor() ([]byte, []int) {
|
|
return file_state_v1_schedule_proto_rawDescGZIP(), []int{5}
|
|
}
|
|
|
|
type ListSchedulesResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Schedules []*Schedule `protobuf:"bytes,1,rep,name=schedules,proto3" json:"schedules,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *ListSchedulesResponse) Reset() {
|
|
*x = ListSchedulesResponse{}
|
|
mi := &file_state_v1_schedule_proto_msgTypes[6]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *ListSchedulesResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*ListSchedulesResponse) ProtoMessage() {}
|
|
|
|
func (x *ListSchedulesResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_state_v1_schedule_proto_msgTypes[6]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use ListSchedulesResponse.ProtoReflect.Descriptor instead.
|
|
func (*ListSchedulesResponse) Descriptor() ([]byte, []int) {
|
|
return file_state_v1_schedule_proto_rawDescGZIP(), []int{6}
|
|
}
|
|
|
|
func (x *ListSchedulesResponse) GetSchedules() []*Schedule {
|
|
if x != nil {
|
|
return x.Schedules
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type GetScheduleRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *GetScheduleRequest) Reset() {
|
|
*x = GetScheduleRequest{}
|
|
mi := &file_state_v1_schedule_proto_msgTypes[7]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *GetScheduleRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*GetScheduleRequest) ProtoMessage() {}
|
|
|
|
func (x *GetScheduleRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_state_v1_schedule_proto_msgTypes[7]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use GetScheduleRequest.ProtoReflect.Descriptor instead.
|
|
func (*GetScheduleRequest) Descriptor() ([]byte, []int) {
|
|
return file_state_v1_schedule_proto_rawDescGZIP(), []int{7}
|
|
}
|
|
|
|
func (x *GetScheduleRequest) GetId() string {
|
|
if x != nil {
|
|
return x.Id
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type GetScheduleResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Schedule *Schedule `protobuf:"bytes,1,opt,name=schedule,proto3" json:"schedule,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *GetScheduleResponse) Reset() {
|
|
*x = GetScheduleResponse{}
|
|
mi := &file_state_v1_schedule_proto_msgTypes[8]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *GetScheduleResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*GetScheduleResponse) ProtoMessage() {}
|
|
|
|
func (x *GetScheduleResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_state_v1_schedule_proto_msgTypes[8]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use GetScheduleResponse.ProtoReflect.Descriptor instead.
|
|
func (*GetScheduleResponse) Descriptor() ([]byte, []int) {
|
|
return file_state_v1_schedule_proto_rawDescGZIP(), []int{8}
|
|
}
|
|
|
|
func (x *GetScheduleResponse) GetSchedule() *Schedule {
|
|
if x != nil {
|
|
return x.Schedule
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type PutScheduleRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Schedule *Schedule `protobuf:"bytes,1,opt,name=schedule,proto3" json:"schedule,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *PutScheduleRequest) Reset() {
|
|
*x = PutScheduleRequest{}
|
|
mi := &file_state_v1_schedule_proto_msgTypes[9]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *PutScheduleRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*PutScheduleRequest) ProtoMessage() {}
|
|
|
|
func (x *PutScheduleRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_state_v1_schedule_proto_msgTypes[9]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use PutScheduleRequest.ProtoReflect.Descriptor instead.
|
|
func (*PutScheduleRequest) Descriptor() ([]byte, []int) {
|
|
return file_state_v1_schedule_proto_rawDescGZIP(), []int{9}
|
|
}
|
|
|
|
func (x *PutScheduleRequest) GetSchedule() *Schedule {
|
|
if x != nil {
|
|
return x.Schedule
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type PutScheduleResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Schedule *Schedule `protobuf:"bytes,1,opt,name=schedule,proto3" json:"schedule,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *PutScheduleResponse) Reset() {
|
|
*x = PutScheduleResponse{}
|
|
mi := &file_state_v1_schedule_proto_msgTypes[10]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *PutScheduleResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*PutScheduleResponse) ProtoMessage() {}
|
|
|
|
func (x *PutScheduleResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_state_v1_schedule_proto_msgTypes[10]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use PutScheduleResponse.ProtoReflect.Descriptor instead.
|
|
func (*PutScheduleResponse) Descriptor() ([]byte, []int) {
|
|
return file_state_v1_schedule_proto_rawDescGZIP(), []int{10}
|
|
}
|
|
|
|
func (x *PutScheduleResponse) GetSchedule() *Schedule {
|
|
if x != nil {
|
|
return x.Schedule
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type DeleteScheduleRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *DeleteScheduleRequest) Reset() {
|
|
*x = DeleteScheduleRequest{}
|
|
mi := &file_state_v1_schedule_proto_msgTypes[11]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *DeleteScheduleRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*DeleteScheduleRequest) ProtoMessage() {}
|
|
|
|
func (x *DeleteScheduleRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_state_v1_schedule_proto_msgTypes[11]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use DeleteScheduleRequest.ProtoReflect.Descriptor instead.
|
|
func (*DeleteScheduleRequest) Descriptor() ([]byte, []int) {
|
|
return file_state_v1_schedule_proto_rawDescGZIP(), []int{11}
|
|
}
|
|
|
|
func (x *DeleteScheduleRequest) GetId() string {
|
|
if x != nil {
|
|
return x.Id
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type DeleteScheduleResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *DeleteScheduleResponse) Reset() {
|
|
*x = DeleteScheduleResponse{}
|
|
mi := &file_state_v1_schedule_proto_msgTypes[12]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *DeleteScheduleResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*DeleteScheduleResponse) ProtoMessage() {}
|
|
|
|
func (x *DeleteScheduleResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_state_v1_schedule_proto_msgTypes[12]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use DeleteScheduleResponse.ProtoReflect.Descriptor instead.
|
|
func (*DeleteScheduleResponse) Descriptor() ([]byte, []int) {
|
|
return file_state_v1_schedule_proto_rawDescGZIP(), []int{12}
|
|
}
|
|
|
|
type BuiltinSchedule struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
|
|
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
|
|
IntervalSeconds int64 `protobuf:"varint,3,opt,name=interval_seconds,json=intervalSeconds,proto3" json:"interval_seconds,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *BuiltinSchedule) Reset() {
|
|
*x = BuiltinSchedule{}
|
|
mi := &file_state_v1_schedule_proto_msgTypes[13]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *BuiltinSchedule) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*BuiltinSchedule) ProtoMessage() {}
|
|
|
|
func (x *BuiltinSchedule) ProtoReflect() protoreflect.Message {
|
|
mi := &file_state_v1_schedule_proto_msgTypes[13]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use BuiltinSchedule.ProtoReflect.Descriptor instead.
|
|
func (*BuiltinSchedule) Descriptor() ([]byte, []int) {
|
|
return file_state_v1_schedule_proto_rawDescGZIP(), []int{13}
|
|
}
|
|
|
|
func (x *BuiltinSchedule) GetId() string {
|
|
if x != nil {
|
|
return x.Id
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *BuiltinSchedule) GetName() string {
|
|
if x != nil {
|
|
return x.Name
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *BuiltinSchedule) GetIntervalSeconds() int64 {
|
|
if x != nil {
|
|
return x.IntervalSeconds
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type EnsureBuiltinSchedulesRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Builtins []*BuiltinSchedule `protobuf:"bytes,1,rep,name=builtins,proto3" json:"builtins,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *EnsureBuiltinSchedulesRequest) Reset() {
|
|
*x = EnsureBuiltinSchedulesRequest{}
|
|
mi := &file_state_v1_schedule_proto_msgTypes[14]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *EnsureBuiltinSchedulesRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*EnsureBuiltinSchedulesRequest) ProtoMessage() {}
|
|
|
|
func (x *EnsureBuiltinSchedulesRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_state_v1_schedule_proto_msgTypes[14]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use EnsureBuiltinSchedulesRequest.ProtoReflect.Descriptor instead.
|
|
func (*EnsureBuiltinSchedulesRequest) Descriptor() ([]byte, []int) {
|
|
return file_state_v1_schedule_proto_rawDescGZIP(), []int{14}
|
|
}
|
|
|
|
func (x *EnsureBuiltinSchedulesRequest) GetBuiltins() []*BuiltinSchedule {
|
|
if x != nil {
|
|
return x.Builtins
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type EnsureBuiltinSchedulesResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *EnsureBuiltinSchedulesResponse) Reset() {
|
|
*x = EnsureBuiltinSchedulesResponse{}
|
|
mi := &file_state_v1_schedule_proto_msgTypes[15]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *EnsureBuiltinSchedulesResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*EnsureBuiltinSchedulesResponse) ProtoMessage() {}
|
|
|
|
func (x *EnsureBuiltinSchedulesResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_state_v1_schedule_proto_msgTypes[15]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use EnsureBuiltinSchedulesResponse.ProtoReflect.Descriptor instead.
|
|
func (*EnsureBuiltinSchedulesResponse) Descriptor() ([]byte, []int) {
|
|
return file_state_v1_schedule_proto_rawDescGZIP(), []int{15}
|
|
}
|
|
|
|
type ClaimDueRunsRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Now *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=now,proto3" json:"now,omitempty"`
|
|
// stale_seconds fails a run still running after this long.
|
|
StaleSeconds int64 `protobuf:"varint,2,opt,name=stale_seconds,json=staleSeconds,proto3" json:"stale_seconds,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *ClaimDueRunsRequest) Reset() {
|
|
*x = ClaimDueRunsRequest{}
|
|
mi := &file_state_v1_schedule_proto_msgTypes[16]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *ClaimDueRunsRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*ClaimDueRunsRequest) ProtoMessage() {}
|
|
|
|
func (x *ClaimDueRunsRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_state_v1_schedule_proto_msgTypes[16]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use ClaimDueRunsRequest.ProtoReflect.Descriptor instead.
|
|
func (*ClaimDueRunsRequest) Descriptor() ([]byte, []int) {
|
|
return file_state_v1_schedule_proto_rawDescGZIP(), []int{16}
|
|
}
|
|
|
|
func (x *ClaimDueRunsRequest) GetNow() *timestamppb.Timestamp {
|
|
if x != nil {
|
|
return x.Now
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *ClaimDueRunsRequest) GetStaleSeconds() int64 {
|
|
if x != nil {
|
|
return x.StaleSeconds
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type ClaimDueRunsResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Claims []*ScheduleClaim `protobuf:"bytes,1,rep,name=claims,proto3" json:"claims,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *ClaimDueRunsResponse) Reset() {
|
|
*x = ClaimDueRunsResponse{}
|
|
mi := &file_state_v1_schedule_proto_msgTypes[17]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *ClaimDueRunsResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*ClaimDueRunsResponse) ProtoMessage() {}
|
|
|
|
func (x *ClaimDueRunsResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_state_v1_schedule_proto_msgTypes[17]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use ClaimDueRunsResponse.ProtoReflect.Descriptor instead.
|
|
func (*ClaimDueRunsResponse) Descriptor() ([]byte, []int) {
|
|
return file_state_v1_schedule_proto_rawDescGZIP(), []int{17}
|
|
}
|
|
|
|
func (x *ClaimDueRunsResponse) GetClaims() []*ScheduleClaim {
|
|
if x != nil {
|
|
return x.Claims
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type RequestScheduleRunRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *RequestScheduleRunRequest) Reset() {
|
|
*x = RequestScheduleRunRequest{}
|
|
mi := &file_state_v1_schedule_proto_msgTypes[18]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *RequestScheduleRunRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*RequestScheduleRunRequest) ProtoMessage() {}
|
|
|
|
func (x *RequestScheduleRunRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_state_v1_schedule_proto_msgTypes[18]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use RequestScheduleRunRequest.ProtoReflect.Descriptor instead.
|
|
func (*RequestScheduleRunRequest) Descriptor() ([]byte, []int) {
|
|
return file_state_v1_schedule_proto_rawDescGZIP(), []int{18}
|
|
}
|
|
|
|
func (x *RequestScheduleRunRequest) GetId() string {
|
|
if x != nil {
|
|
return x.Id
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type RequestScheduleRunResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Run *ScheduleRun `protobuf:"bytes,1,opt,name=run,proto3" json:"run,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *RequestScheduleRunResponse) Reset() {
|
|
*x = RequestScheduleRunResponse{}
|
|
mi := &file_state_v1_schedule_proto_msgTypes[19]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *RequestScheduleRunResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*RequestScheduleRunResponse) ProtoMessage() {}
|
|
|
|
func (x *RequestScheduleRunResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_state_v1_schedule_proto_msgTypes[19]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use RequestScheduleRunResponse.ProtoReflect.Descriptor instead.
|
|
func (*RequestScheduleRunResponse) Descriptor() ([]byte, []int) {
|
|
return file_state_v1_schedule_proto_rawDescGZIP(), []int{19}
|
|
}
|
|
|
|
func (x *RequestScheduleRunResponse) GetRun() *ScheduleRun {
|
|
if x != nil {
|
|
return x.Run
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type FinishScheduleRunRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
RunId int64 `protobuf:"varint,1,opt,name=run_id,json=runId,proto3" json:"run_id,omitempty"`
|
|
Result string `protobuf:"bytes,2,opt,name=result,proto3" json:"result,omitempty"`
|
|
Error string `protobuf:"bytes,3,opt,name=error,proto3" json:"error,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *FinishScheduleRunRequest) Reset() {
|
|
*x = FinishScheduleRunRequest{}
|
|
mi := &file_state_v1_schedule_proto_msgTypes[20]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *FinishScheduleRunRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*FinishScheduleRunRequest) ProtoMessage() {}
|
|
|
|
func (x *FinishScheduleRunRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_state_v1_schedule_proto_msgTypes[20]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use FinishScheduleRunRequest.ProtoReflect.Descriptor instead.
|
|
func (*FinishScheduleRunRequest) Descriptor() ([]byte, []int) {
|
|
return file_state_v1_schedule_proto_rawDescGZIP(), []int{20}
|
|
}
|
|
|
|
func (x *FinishScheduleRunRequest) GetRunId() int64 {
|
|
if x != nil {
|
|
return x.RunId
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *FinishScheduleRunRequest) GetResult() string {
|
|
if x != nil {
|
|
return x.Result
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *FinishScheduleRunRequest) GetError() string {
|
|
if x != nil {
|
|
return x.Error
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type FinishScheduleRunResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
// failure_streak is how many of the schedule's latest finished runs failed
|
|
// in a row.
|
|
FailureStreak int64 `protobuf:"varint,1,opt,name=failure_streak,json=failureStreak,proto3" json:"failure_streak,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *FinishScheduleRunResponse) Reset() {
|
|
*x = FinishScheduleRunResponse{}
|
|
mi := &file_state_v1_schedule_proto_msgTypes[21]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *FinishScheduleRunResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*FinishScheduleRunResponse) ProtoMessage() {}
|
|
|
|
func (x *FinishScheduleRunResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_state_v1_schedule_proto_msgTypes[21]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use FinishScheduleRunResponse.ProtoReflect.Descriptor instead.
|
|
func (*FinishScheduleRunResponse) Descriptor() ([]byte, []int) {
|
|
return file_state_v1_schedule_proto_rawDescGZIP(), []int{21}
|
|
}
|
|
|
|
func (x *FinishScheduleRunResponse) GetFailureStreak() int64 {
|
|
if x != nil {
|
|
return x.FailureStreak
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type SetScheduleRunCaptureRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
RunId int64 `protobuf:"varint,1,opt,name=run_id,json=runId,proto3" json:"run_id,omitempty"`
|
|
CaptureId string `protobuf:"bytes,2,opt,name=capture_id,json=captureId,proto3" json:"capture_id,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *SetScheduleRunCaptureRequest) Reset() {
|
|
*x = SetScheduleRunCaptureRequest{}
|
|
mi := &file_state_v1_schedule_proto_msgTypes[22]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *SetScheduleRunCaptureRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*SetScheduleRunCaptureRequest) ProtoMessage() {}
|
|
|
|
func (x *SetScheduleRunCaptureRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_state_v1_schedule_proto_msgTypes[22]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use SetScheduleRunCaptureRequest.ProtoReflect.Descriptor instead.
|
|
func (*SetScheduleRunCaptureRequest) Descriptor() ([]byte, []int) {
|
|
return file_state_v1_schedule_proto_rawDescGZIP(), []int{22}
|
|
}
|
|
|
|
func (x *SetScheduleRunCaptureRequest) GetRunId() int64 {
|
|
if x != nil {
|
|
return x.RunId
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *SetScheduleRunCaptureRequest) GetCaptureId() string {
|
|
if x != nil {
|
|
return x.CaptureId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type SetScheduleRunCaptureResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *SetScheduleRunCaptureResponse) Reset() {
|
|
*x = SetScheduleRunCaptureResponse{}
|
|
mi := &file_state_v1_schedule_proto_msgTypes[23]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *SetScheduleRunCaptureResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*SetScheduleRunCaptureResponse) ProtoMessage() {}
|
|
|
|
func (x *SetScheduleRunCaptureResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_state_v1_schedule_proto_msgTypes[23]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use SetScheduleRunCaptureResponse.ProtoReflect.Descriptor instead.
|
|
func (*SetScheduleRunCaptureResponse) Descriptor() ([]byte, []int) {
|
|
return file_state_v1_schedule_proto_rawDescGZIP(), []int{23}
|
|
}
|
|
|
|
type ListScheduleRunsRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
ScheduleId string `protobuf:"bytes,1,opt,name=schedule_id,json=scheduleId,proto3" json:"schedule_id,omitempty"`
|
|
Limit int32 `protobuf:"varint,2,opt,name=limit,proto3" json:"limit,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *ListScheduleRunsRequest) Reset() {
|
|
*x = ListScheduleRunsRequest{}
|
|
mi := &file_state_v1_schedule_proto_msgTypes[24]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *ListScheduleRunsRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*ListScheduleRunsRequest) ProtoMessage() {}
|
|
|
|
func (x *ListScheduleRunsRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_state_v1_schedule_proto_msgTypes[24]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use ListScheduleRunsRequest.ProtoReflect.Descriptor instead.
|
|
func (*ListScheduleRunsRequest) Descriptor() ([]byte, []int) {
|
|
return file_state_v1_schedule_proto_rawDescGZIP(), []int{24}
|
|
}
|
|
|
|
func (x *ListScheduleRunsRequest) GetScheduleId() string {
|
|
if x != nil {
|
|
return x.ScheduleId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *ListScheduleRunsRequest) GetLimit() int32 {
|
|
if x != nil {
|
|
return x.Limit
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type ListScheduleRunsResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Runs []*ScheduleRun `protobuf:"bytes,1,rep,name=runs,proto3" json:"runs,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *ListScheduleRunsResponse) Reset() {
|
|
*x = ListScheduleRunsResponse{}
|
|
mi := &file_state_v1_schedule_proto_msgTypes[25]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *ListScheduleRunsResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*ListScheduleRunsResponse) ProtoMessage() {}
|
|
|
|
func (x *ListScheduleRunsResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_state_v1_schedule_proto_msgTypes[25]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use ListScheduleRunsResponse.ProtoReflect.Descriptor instead.
|
|
func (*ListScheduleRunsResponse) Descriptor() ([]byte, []int) {
|
|
return file_state_v1_schedule_proto_rawDescGZIP(), []int{25}
|
|
}
|
|
|
|
func (x *ListScheduleRunsResponse) GetRuns() []*ScheduleRun {
|
|
if x != nil {
|
|
return x.Runs
|
|
}
|
|
return nil
|
|
}
|
|
|
|
var File_state_v1_schedule_proto protoreflect.FileDescriptor
|
|
|
|
const file_state_v1_schedule_proto_rawDesc = "" +
|
|
"\n" +
|
|
"\x17state/v1/schedule.proto\x12\bstate.v1\x1a\x1fgoogle/protobuf/timestamp.proto\"3\n" +
|
|
"\rScheduleOwner\x12\x12\n" +
|
|
"\x04kind\x18\x01 \x01(\tR\x04kind\x12\x0e\n" +
|
|
"\x02id\x18\x02 \x01(\tR\x02id\"\xc1\x01\n" +
|
|
"\x0eScheduleTiming\x12\x12\n" +
|
|
"\x04kind\x18\x01 \x01(\tR\x04kind\x12)\n" +
|
|
"\x10interval_seconds\x18\x02 \x01(\x03R\x0fintervalSeconds\x12\x12\n" +
|
|
"\x04cron\x18\x03 \x01(\tR\x04cron\x12*\n" +
|
|
"\x02at\x18\x04 \x01(\v2\x1a.google.protobuf.TimestampR\x02at\x120\n" +
|
|
"\x05start\x18\x05 \x01(\v2\x1a.google.protobuf.TimestampR\x05start\"\x99\x03\n" +
|
|
"\bSchedule\x12\x0e\n" +
|
|
"\x02id\x18\x01 \x01(\tR\x02id\x12\x12\n" +
|
|
"\x04name\x18\x02 \x01(\tR\x04name\x12-\n" +
|
|
"\x05owner\x18\x03 \x01(\v2\x17.state.v1.ScheduleOwnerR\x05owner\x12\x18\n" +
|
|
"\aenabled\x18\x04 \x01(\bR\aenabled\x12\x19\n" +
|
|
"\bbuilt_in\x18\x05 \x01(\bR\abuiltIn\x120\n" +
|
|
"\x06timing\x18\x06 \x01(\v2\x18.state.v1.ScheduleTimingR\x06timing\x125\n" +
|
|
"\bnext_run\x18\a \x01(\v2\x1a.google.protobuf.TimestampR\anextRun\x124\n" +
|
|
"\acreated\x18\b \x01(\v2\x1a.google.protobuf.TimestampR\acreated\x124\n" +
|
|
"\aupdated\x18\t \x01(\v2\x1a.google.protobuf.TimestampR\aupdated\x120\n" +
|
|
"\blast_run\x18\n" +
|
|
" \x01(\v2\x15.state.v1.ScheduleRunR\alastRun\"\xba\x02\n" +
|
|
"\vScheduleRun\x12\x0e\n" +
|
|
"\x02id\x18\x01 \x01(\x03R\x02id\x12\x1f\n" +
|
|
"\vschedule_id\x18\x02 \x01(\tR\n" +
|
|
"scheduleId\x12?\n" +
|
|
"\rscheduled_for\x18\x03 \x01(\v2\x1a.google.protobuf.TimestampR\fscheduledFor\x124\n" +
|
|
"\astarted\x18\x04 \x01(\v2\x1a.google.protobuf.TimestampR\astarted\x126\n" +
|
|
"\bfinished\x18\x05 \x01(\v2\x1a.google.protobuf.TimestampR\bfinished\x12\x16\n" +
|
|
"\x06result\x18\x06 \x01(\tR\x06result\x12\x14\n" +
|
|
"\x05error\x18\a \x01(\tR\x05error\x12\x1d\n" +
|
|
"\n" +
|
|
"capture_id\x18\b \x01(\tR\tcaptureId\"g\n" +
|
|
"\rScheduleClaim\x12'\n" +
|
|
"\x03run\x18\x01 \x01(\v2\x15.state.v1.ScheduleRunR\x03run\x12\x12\n" +
|
|
"\x04name\x18\x02 \x01(\tR\x04name\x12\x19\n" +
|
|
"\bbuilt_in\x18\x03 \x01(\bR\abuiltIn\"\x16\n" +
|
|
"\x14ListSchedulesRequest\"I\n" +
|
|
"\x15ListSchedulesResponse\x120\n" +
|
|
"\tschedules\x18\x01 \x03(\v2\x12.state.v1.ScheduleR\tschedules\"$\n" +
|
|
"\x12GetScheduleRequest\x12\x0e\n" +
|
|
"\x02id\x18\x01 \x01(\tR\x02id\"E\n" +
|
|
"\x13GetScheduleResponse\x12.\n" +
|
|
"\bschedule\x18\x01 \x01(\v2\x12.state.v1.ScheduleR\bschedule\"D\n" +
|
|
"\x12PutScheduleRequest\x12.\n" +
|
|
"\bschedule\x18\x01 \x01(\v2\x12.state.v1.ScheduleR\bschedule\"E\n" +
|
|
"\x13PutScheduleResponse\x12.\n" +
|
|
"\bschedule\x18\x01 \x01(\v2\x12.state.v1.ScheduleR\bschedule\"'\n" +
|
|
"\x15DeleteScheduleRequest\x12\x0e\n" +
|
|
"\x02id\x18\x01 \x01(\tR\x02id\"\x18\n" +
|
|
"\x16DeleteScheduleResponse\"`\n" +
|
|
"\x0fBuiltinSchedule\x12\x0e\n" +
|
|
"\x02id\x18\x01 \x01(\tR\x02id\x12\x12\n" +
|
|
"\x04name\x18\x02 \x01(\tR\x04name\x12)\n" +
|
|
"\x10interval_seconds\x18\x03 \x01(\x03R\x0fintervalSeconds\"V\n" +
|
|
"\x1dEnsureBuiltinSchedulesRequest\x125\n" +
|
|
"\bbuiltins\x18\x01 \x03(\v2\x19.state.v1.BuiltinScheduleR\bbuiltins\" \n" +
|
|
"\x1eEnsureBuiltinSchedulesResponse\"h\n" +
|
|
"\x13ClaimDueRunsRequest\x12,\n" +
|
|
"\x03now\x18\x01 \x01(\v2\x1a.google.protobuf.TimestampR\x03now\x12#\n" +
|
|
"\rstale_seconds\x18\x02 \x01(\x03R\fstaleSeconds\"G\n" +
|
|
"\x14ClaimDueRunsResponse\x12/\n" +
|
|
"\x06claims\x18\x01 \x03(\v2\x17.state.v1.ScheduleClaimR\x06claims\"+\n" +
|
|
"\x19RequestScheduleRunRequest\x12\x0e\n" +
|
|
"\x02id\x18\x01 \x01(\tR\x02id\"E\n" +
|
|
"\x1aRequestScheduleRunResponse\x12'\n" +
|
|
"\x03run\x18\x01 \x01(\v2\x15.state.v1.ScheduleRunR\x03run\"_\n" +
|
|
"\x18FinishScheduleRunRequest\x12\x15\n" +
|
|
"\x06run_id\x18\x01 \x01(\x03R\x05runId\x12\x16\n" +
|
|
"\x06result\x18\x02 \x01(\tR\x06result\x12\x14\n" +
|
|
"\x05error\x18\x03 \x01(\tR\x05error\"B\n" +
|
|
"\x19FinishScheduleRunResponse\x12%\n" +
|
|
"\x0efailure_streak\x18\x01 \x01(\x03R\rfailureStreak\"T\n" +
|
|
"\x1cSetScheduleRunCaptureRequest\x12\x15\n" +
|
|
"\x06run_id\x18\x01 \x01(\x03R\x05runId\x12\x1d\n" +
|
|
"\n" +
|
|
"capture_id\x18\x02 \x01(\tR\tcaptureId\"\x1f\n" +
|
|
"\x1dSetScheduleRunCaptureResponse\"P\n" +
|
|
"\x17ListScheduleRunsRequest\x12\x1f\n" +
|
|
"\vschedule_id\x18\x01 \x01(\tR\n" +
|
|
"scheduleId\x12\x14\n" +
|
|
"\x05limit\x18\x02 \x01(\x05R\x05limit\"E\n" +
|
|
"\x18ListScheduleRunsResponse\x12)\n" +
|
|
"\x04runs\x18\x01 \x03(\v2\x15.state.v1.ScheduleRunR\x04runs2\x90\a\n" +
|
|
"\x0fScheduleService\x12P\n" +
|
|
"\rListSchedules\x12\x1e.state.v1.ListSchedulesRequest\x1a\x1f.state.v1.ListSchedulesResponse\x12J\n" +
|
|
"\vGetSchedule\x12\x1c.state.v1.GetScheduleRequest\x1a\x1d.state.v1.GetScheduleResponse\x12J\n" +
|
|
"\vPutSchedule\x12\x1c.state.v1.PutScheduleRequest\x1a\x1d.state.v1.PutScheduleResponse\x12S\n" +
|
|
"\x0eDeleteSchedule\x12\x1f.state.v1.DeleteScheduleRequest\x1a .state.v1.DeleteScheduleResponse\x12k\n" +
|
|
"\x16EnsureBuiltinSchedules\x12'.state.v1.EnsureBuiltinSchedulesRequest\x1a(.state.v1.EnsureBuiltinSchedulesResponse\x12M\n" +
|
|
"\fClaimDueRuns\x12\x1d.state.v1.ClaimDueRunsRequest\x1a\x1e.state.v1.ClaimDueRunsResponse\x12_\n" +
|
|
"\x12RequestScheduleRun\x12#.state.v1.RequestScheduleRunRequest\x1a$.state.v1.RequestScheduleRunResponse\x12\\\n" +
|
|
"\x11FinishScheduleRun\x12\".state.v1.FinishScheduleRunRequest\x1a#.state.v1.FinishScheduleRunResponse\x12h\n" +
|
|
"\x15SetScheduleRunCapture\x12&.state.v1.SetScheduleRunCaptureRequest\x1a'.state.v1.SetScheduleRunCaptureResponse\x12Y\n" +
|
|
"\x10ListScheduleRuns\x12!.state.v1.ListScheduleRunsRequest\x1a\".state.v1.ListScheduleRunsResponseB\xa7\x01\n" +
|
|
"\fcom.state.v1B\rScheduleProtoP\x01ZGgithub.com/samcharles93/archie-core/internal/contracts/state/v1;statev1\xa2\x02\x03SXX\xaa\x02\bState.V1\xca\x02\bState\\V1\xe2\x02\x14State\\V1\\GPBMetadata\xea\x02\tState::V1b\x06proto3"
|
|
|
|
var (
|
|
file_state_v1_schedule_proto_rawDescOnce sync.Once
|
|
file_state_v1_schedule_proto_rawDescData []byte
|
|
)
|
|
|
|
func file_state_v1_schedule_proto_rawDescGZIP() []byte {
|
|
file_state_v1_schedule_proto_rawDescOnce.Do(func() {
|
|
file_state_v1_schedule_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_state_v1_schedule_proto_rawDesc), len(file_state_v1_schedule_proto_rawDesc)))
|
|
})
|
|
return file_state_v1_schedule_proto_rawDescData
|
|
}
|
|
|
|
var file_state_v1_schedule_proto_msgTypes = make([]protoimpl.MessageInfo, 26)
|
|
var file_state_v1_schedule_proto_goTypes = []any{
|
|
(*ScheduleOwner)(nil), // 0: state.v1.ScheduleOwner
|
|
(*ScheduleTiming)(nil), // 1: state.v1.ScheduleTiming
|
|
(*Schedule)(nil), // 2: state.v1.Schedule
|
|
(*ScheduleRun)(nil), // 3: state.v1.ScheduleRun
|
|
(*ScheduleClaim)(nil), // 4: state.v1.ScheduleClaim
|
|
(*ListSchedulesRequest)(nil), // 5: state.v1.ListSchedulesRequest
|
|
(*ListSchedulesResponse)(nil), // 6: state.v1.ListSchedulesResponse
|
|
(*GetScheduleRequest)(nil), // 7: state.v1.GetScheduleRequest
|
|
(*GetScheduleResponse)(nil), // 8: state.v1.GetScheduleResponse
|
|
(*PutScheduleRequest)(nil), // 9: state.v1.PutScheduleRequest
|
|
(*PutScheduleResponse)(nil), // 10: state.v1.PutScheduleResponse
|
|
(*DeleteScheduleRequest)(nil), // 11: state.v1.DeleteScheduleRequest
|
|
(*DeleteScheduleResponse)(nil), // 12: state.v1.DeleteScheduleResponse
|
|
(*BuiltinSchedule)(nil), // 13: state.v1.BuiltinSchedule
|
|
(*EnsureBuiltinSchedulesRequest)(nil), // 14: state.v1.EnsureBuiltinSchedulesRequest
|
|
(*EnsureBuiltinSchedulesResponse)(nil), // 15: state.v1.EnsureBuiltinSchedulesResponse
|
|
(*ClaimDueRunsRequest)(nil), // 16: state.v1.ClaimDueRunsRequest
|
|
(*ClaimDueRunsResponse)(nil), // 17: state.v1.ClaimDueRunsResponse
|
|
(*RequestScheduleRunRequest)(nil), // 18: state.v1.RequestScheduleRunRequest
|
|
(*RequestScheduleRunResponse)(nil), // 19: state.v1.RequestScheduleRunResponse
|
|
(*FinishScheduleRunRequest)(nil), // 20: state.v1.FinishScheduleRunRequest
|
|
(*FinishScheduleRunResponse)(nil), // 21: state.v1.FinishScheduleRunResponse
|
|
(*SetScheduleRunCaptureRequest)(nil), // 22: state.v1.SetScheduleRunCaptureRequest
|
|
(*SetScheduleRunCaptureResponse)(nil), // 23: state.v1.SetScheduleRunCaptureResponse
|
|
(*ListScheduleRunsRequest)(nil), // 24: state.v1.ListScheduleRunsRequest
|
|
(*ListScheduleRunsResponse)(nil), // 25: state.v1.ListScheduleRunsResponse
|
|
(*timestamppb.Timestamp)(nil), // 26: google.protobuf.Timestamp
|
|
}
|
|
var file_state_v1_schedule_proto_depIdxs = []int32{
|
|
26, // 0: state.v1.ScheduleTiming.at:type_name -> google.protobuf.Timestamp
|
|
26, // 1: state.v1.ScheduleTiming.start:type_name -> google.protobuf.Timestamp
|
|
0, // 2: state.v1.Schedule.owner:type_name -> state.v1.ScheduleOwner
|
|
1, // 3: state.v1.Schedule.timing:type_name -> state.v1.ScheduleTiming
|
|
26, // 4: state.v1.Schedule.next_run:type_name -> google.protobuf.Timestamp
|
|
26, // 5: state.v1.Schedule.created:type_name -> google.protobuf.Timestamp
|
|
26, // 6: state.v1.Schedule.updated:type_name -> google.protobuf.Timestamp
|
|
3, // 7: state.v1.Schedule.last_run:type_name -> state.v1.ScheduleRun
|
|
26, // 8: state.v1.ScheduleRun.scheduled_for:type_name -> google.protobuf.Timestamp
|
|
26, // 9: state.v1.ScheduleRun.started:type_name -> google.protobuf.Timestamp
|
|
26, // 10: state.v1.ScheduleRun.finished:type_name -> google.protobuf.Timestamp
|
|
3, // 11: state.v1.ScheduleClaim.run:type_name -> state.v1.ScheduleRun
|
|
2, // 12: state.v1.ListSchedulesResponse.schedules:type_name -> state.v1.Schedule
|
|
2, // 13: state.v1.GetScheduleResponse.schedule:type_name -> state.v1.Schedule
|
|
2, // 14: state.v1.PutScheduleRequest.schedule:type_name -> state.v1.Schedule
|
|
2, // 15: state.v1.PutScheduleResponse.schedule:type_name -> state.v1.Schedule
|
|
13, // 16: state.v1.EnsureBuiltinSchedulesRequest.builtins:type_name -> state.v1.BuiltinSchedule
|
|
26, // 17: state.v1.ClaimDueRunsRequest.now:type_name -> google.protobuf.Timestamp
|
|
4, // 18: state.v1.ClaimDueRunsResponse.claims:type_name -> state.v1.ScheduleClaim
|
|
3, // 19: state.v1.RequestScheduleRunResponse.run:type_name -> state.v1.ScheduleRun
|
|
3, // 20: state.v1.ListScheduleRunsResponse.runs:type_name -> state.v1.ScheduleRun
|
|
5, // 21: state.v1.ScheduleService.ListSchedules:input_type -> state.v1.ListSchedulesRequest
|
|
7, // 22: state.v1.ScheduleService.GetSchedule:input_type -> state.v1.GetScheduleRequest
|
|
9, // 23: state.v1.ScheduleService.PutSchedule:input_type -> state.v1.PutScheduleRequest
|
|
11, // 24: state.v1.ScheduleService.DeleteSchedule:input_type -> state.v1.DeleteScheduleRequest
|
|
14, // 25: state.v1.ScheduleService.EnsureBuiltinSchedules:input_type -> state.v1.EnsureBuiltinSchedulesRequest
|
|
16, // 26: state.v1.ScheduleService.ClaimDueRuns:input_type -> state.v1.ClaimDueRunsRequest
|
|
18, // 27: state.v1.ScheduleService.RequestScheduleRun:input_type -> state.v1.RequestScheduleRunRequest
|
|
20, // 28: state.v1.ScheduleService.FinishScheduleRun:input_type -> state.v1.FinishScheduleRunRequest
|
|
22, // 29: state.v1.ScheduleService.SetScheduleRunCapture:input_type -> state.v1.SetScheduleRunCaptureRequest
|
|
24, // 30: state.v1.ScheduleService.ListScheduleRuns:input_type -> state.v1.ListScheduleRunsRequest
|
|
6, // 31: state.v1.ScheduleService.ListSchedules:output_type -> state.v1.ListSchedulesResponse
|
|
8, // 32: state.v1.ScheduleService.GetSchedule:output_type -> state.v1.GetScheduleResponse
|
|
10, // 33: state.v1.ScheduleService.PutSchedule:output_type -> state.v1.PutScheduleResponse
|
|
12, // 34: state.v1.ScheduleService.DeleteSchedule:output_type -> state.v1.DeleteScheduleResponse
|
|
15, // 35: state.v1.ScheduleService.EnsureBuiltinSchedules:output_type -> state.v1.EnsureBuiltinSchedulesResponse
|
|
17, // 36: state.v1.ScheduleService.ClaimDueRuns:output_type -> state.v1.ClaimDueRunsResponse
|
|
19, // 37: state.v1.ScheduleService.RequestScheduleRun:output_type -> state.v1.RequestScheduleRunResponse
|
|
21, // 38: state.v1.ScheduleService.FinishScheduleRun:output_type -> state.v1.FinishScheduleRunResponse
|
|
23, // 39: state.v1.ScheduleService.SetScheduleRunCapture:output_type -> state.v1.SetScheduleRunCaptureResponse
|
|
25, // 40: state.v1.ScheduleService.ListScheduleRuns:output_type -> state.v1.ListScheduleRunsResponse
|
|
31, // [31:41] is the sub-list for method output_type
|
|
21, // [21:31] is the sub-list for method input_type
|
|
21, // [21:21] is the sub-list for extension type_name
|
|
21, // [21:21] is the sub-list for extension extendee
|
|
0, // [0:21] is the sub-list for field type_name
|
|
}
|
|
|
|
func init() { file_state_v1_schedule_proto_init() }
|
|
func file_state_v1_schedule_proto_init() {
|
|
if File_state_v1_schedule_proto != nil {
|
|
return
|
|
}
|
|
type x struct{}
|
|
out := protoimpl.TypeBuilder{
|
|
File: protoimpl.DescBuilder{
|
|
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
|
RawDescriptor: unsafe.Slice(unsafe.StringData(file_state_v1_schedule_proto_rawDesc), len(file_state_v1_schedule_proto_rawDesc)),
|
|
NumEnums: 0,
|
|
NumMessages: 26,
|
|
NumExtensions: 0,
|
|
NumServices: 1,
|
|
},
|
|
GoTypes: file_state_v1_schedule_proto_goTypes,
|
|
DependencyIndexes: file_state_v1_schedule_proto_depIdxs,
|
|
MessageInfos: file_state_v1_schedule_proto_msgTypes,
|
|
}.Build()
|
|
File_state_v1_schedule_proto = out.File
|
|
file_state_v1_schedule_proto_goTypes = nil
|
|
file_state_v1_schedule_proto_depIdxs = nil
|
|
}
|