diff --git a/apis/workflows/v1/trigger.proto b/apis/workflows/v1/trigger.proto index a525a8a..70d5558 100644 --- a/apis/workflows/v1/trigger.proto +++ b/apis/workflows/v1/trigger.proto @@ -50,6 +50,12 @@ message BucketTriggers { repeated BucketTrigger triggers = 1; } +message BucketTask { + string bucket = 1; + string object = 2; + bytes args = 3; +} + // CronTrigger is a trigger that will trigger a task submission on a schedule. message CronTrigger { UUID id = 1; // Unique identifier for the trigger @@ -71,6 +77,11 @@ message CronTriggers { repeated CronTrigger triggers = 1; } +message CronTask { + google.protobuf.Timestamp trigger_time = 1; + bytes args = 2; +} + // TriggerService is a service for managing NRT triggers. Currently, we support two types of triggers: // - Bucket triggers, which trigger on object uploads to a storage bucket // - Cron triggers, which trigger on a schedule diff --git a/protogen/go/workflows/v1/trigger.pb.go b/protogen/go/workflows/v1/trigger.pb.go index b5ee3e7..dfc3647 100644 --- a/protogen/go/workflows/v1/trigger.pb.go +++ b/protogen/go/workflows/v1/trigger.pb.go @@ -379,6 +379,69 @@ func (x *BucketTriggers) GetTriggers() []*BucketTrigger { return nil } +type BucketTask struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Bucket string `protobuf:"bytes,1,opt,name=bucket,proto3" json:"bucket,omitempty"` + Object string `protobuf:"bytes,2,opt,name=object,proto3" json:"object,omitempty"` + Args []byte `protobuf:"bytes,3,opt,name=args,proto3" json:"args,omitempty"` +} + +func (x *BucketTask) Reset() { + *x = BucketTask{} + if protoimpl.UnsafeEnabled { + mi := &file_workflows_v1_trigger_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *BucketTask) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*BucketTask) ProtoMessage() {} + +func (x *BucketTask) ProtoReflect() protoreflect.Message { + mi := &file_workflows_v1_trigger_proto_msgTypes[5] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use BucketTask.ProtoReflect.Descriptor instead. +func (*BucketTask) Descriptor() ([]byte, []int) { + return file_workflows_v1_trigger_proto_rawDescGZIP(), []int{5} +} + +func (x *BucketTask) GetBucket() string { + if x != nil { + return x.Bucket + } + return "" +} + +func (x *BucketTask) GetObject() string { + if x != nil { + return x.Object + } + return "" +} + +func (x *BucketTask) GetArgs() []byte { + if x != nil { + return x.Args + } + return nil +} + // CronTrigger is a trigger that will trigger a task submission on a schedule. type CronTrigger struct { state protoimpl.MessageState @@ -394,7 +457,7 @@ type CronTrigger struct { func (x *CronTrigger) Reset() { *x = CronTrigger{} if protoimpl.UnsafeEnabled { - mi := &file_workflows_v1_trigger_proto_msgTypes[5] + mi := &file_workflows_v1_trigger_proto_msgTypes[6] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -407,7 +470,7 @@ func (x *CronTrigger) String() string { func (*CronTrigger) ProtoMessage() {} func (x *CronTrigger) ProtoReflect() protoreflect.Message { - mi := &file_workflows_v1_trigger_proto_msgTypes[5] + mi := &file_workflows_v1_trigger_proto_msgTypes[6] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -420,7 +483,7 @@ func (x *CronTrigger) ProtoReflect() protoreflect.Message { // Deprecated: Use CronTrigger.ProtoReflect.Descriptor instead. func (*CronTrigger) Descriptor() ([]byte, []int) { - return file_workflows_v1_trigger_proto_rawDescGZIP(), []int{5} + return file_workflows_v1_trigger_proto_rawDescGZIP(), []int{6} } func (x *CronTrigger) GetId() *UUID { @@ -466,7 +529,7 @@ type CronTriggerDetail struct { func (x *CronTriggerDetail) Reset() { *x = CronTriggerDetail{} if protoimpl.UnsafeEnabled { - mi := &file_workflows_v1_trigger_proto_msgTypes[6] + mi := &file_workflows_v1_trigger_proto_msgTypes[7] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -479,7 +542,7 @@ func (x *CronTriggerDetail) String() string { func (*CronTriggerDetail) ProtoMessage() {} func (x *CronTriggerDetail) ProtoReflect() protoreflect.Message { - mi := &file_workflows_v1_trigger_proto_msgTypes[6] + mi := &file_workflows_v1_trigger_proto_msgTypes[7] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -492,7 +555,7 @@ func (x *CronTriggerDetail) ProtoReflect() protoreflect.Message { // Deprecated: Use CronTriggerDetail.ProtoReflect.Descriptor instead. func (*CronTriggerDetail) Descriptor() ([]byte, []int) { - return file_workflows_v1_trigger_proto_rawDescGZIP(), []int{6} + return file_workflows_v1_trigger_proto_rawDescGZIP(), []int{7} } func (x *CronTriggerDetail) GetTrigger() *CronTrigger { @@ -535,7 +598,7 @@ type CronTriggers struct { func (x *CronTriggers) Reset() { *x = CronTriggers{} if protoimpl.UnsafeEnabled { - mi := &file_workflows_v1_trigger_proto_msgTypes[7] + mi := &file_workflows_v1_trigger_proto_msgTypes[8] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -548,7 +611,7 @@ func (x *CronTriggers) String() string { func (*CronTriggers) ProtoMessage() {} func (x *CronTriggers) ProtoReflect() protoreflect.Message { - mi := &file_workflows_v1_trigger_proto_msgTypes[7] + mi := &file_workflows_v1_trigger_proto_msgTypes[8] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -561,7 +624,7 @@ func (x *CronTriggers) ProtoReflect() protoreflect.Message { // Deprecated: Use CronTriggers.ProtoReflect.Descriptor instead. func (*CronTriggers) Descriptor() ([]byte, []int) { - return file_workflows_v1_trigger_proto_rawDescGZIP(), []int{7} + return file_workflows_v1_trigger_proto_rawDescGZIP(), []int{8} } func (x *CronTriggers) GetTriggers() []*CronTrigger { @@ -571,6 +634,61 @@ func (x *CronTriggers) GetTriggers() []*CronTrigger { return nil } +type CronTask struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + TriggerTime *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=trigger_time,json=triggerTime,proto3" json:"trigger_time,omitempty"` + Args []byte `protobuf:"bytes,2,opt,name=args,proto3" json:"args,omitempty"` +} + +func (x *CronTask) Reset() { + *x = CronTask{} + if protoimpl.UnsafeEnabled { + mi := &file_workflows_v1_trigger_proto_msgTypes[9] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *CronTask) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CronTask) ProtoMessage() {} + +func (x *CronTask) ProtoReflect() protoreflect.Message { + mi := &file_workflows_v1_trigger_proto_msgTypes[9] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use CronTask.ProtoReflect.Descriptor instead. +func (*CronTask) Descriptor() ([]byte, []int) { + return file_workflows_v1_trigger_proto_rawDescGZIP(), []int{9} +} + +func (x *CronTask) GetTriggerTime() *timestamppb.Timestamp { + if x != nil { + return x.TriggerTime + } + return nil +} + +func (x *CronTask) GetArgs() []byte { + if x != nil { + return x.Args + } + return nil +} + var File_workflows_v1_trigger_proto protoreflect.FileDescriptor var file_workflows_v1_trigger_proto_rawDesc = []byte{ @@ -622,85 +740,96 @@ var file_workflows_v1_trigger_proto_rawDesc = []byte{ 0x67, 0x65, 0x72, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x42, 0x75, 0x63, 0x6b, 0x65, 0x74, 0x54, 0x72, 0x69, 0x67, 0x67, 0x65, 0x72, 0x52, 0x08, 0x74, 0x72, 0x69, 0x67, 0x67, 0x65, 0x72, - 0x73, 0x22, 0x9d, 0x01, 0x0a, 0x0b, 0x43, 0x72, 0x6f, 0x6e, 0x54, 0x72, 0x69, 0x67, 0x67, 0x65, - 0x72, 0x12, 0x22, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e, - 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x55, 0x49, - 0x44, 0x52, 0x02, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x73, 0x63, 0x68, - 0x65, 0x64, 0x75, 0x6c, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x73, 0x63, 0x68, - 0x65, 0x64, 0x75, 0x6c, 0x65, 0x12, 0x3a, 0x0a, 0x09, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x74, 0x79, - 0x70, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x77, 0x6f, 0x72, 0x6b, 0x66, - 0x6c, 0x6f, 0x77, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x53, 0x75, 0x62, 0x6d, - 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x09, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x74, 0x79, 0x70, - 0x65, 0x22, 0xdc, 0x01, 0x0a, 0x11, 0x43, 0x72, 0x6f, 0x6e, 0x54, 0x72, 0x69, 0x67, 0x67, 0x65, - 0x72, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x12, 0x33, 0x0a, 0x07, 0x74, 0x72, 0x69, 0x67, 0x67, - 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x77, 0x6f, 0x72, 0x6b, 0x66, - 0x6c, 0x6f, 0x77, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x72, 0x6f, 0x6e, 0x54, 0x72, 0x69, 0x67, - 0x67, 0x65, 0x72, 0x52, 0x07, 0x74, 0x72, 0x69, 0x67, 0x67, 0x65, 0x72, 0x12, 0x21, 0x0a, 0x0c, - 0x74, 0x72, 0x61, 0x63, 0x65, 0x5f, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x0b, 0x74, 0x72, 0x61, 0x63, 0x65, 0x50, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x12, - 0x32, 0x0a, 0x08, 0x6c, 0x61, 0x73, 0x74, 0x5f, 0x6a, 0x6f, 0x62, 0x18, 0x03, 0x20, 0x01, 0x28, - 0x0b, 0x32, 0x12, 0x2e, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x73, 0x2e, 0x76, 0x31, - 0x2e, 0x55, 0x55, 0x49, 0x44, 0x48, 0x00, 0x52, 0x07, 0x6c, 0x61, 0x73, 0x74, 0x4a, 0x6f, 0x62, - 0x88, 0x01, 0x01, 0x12, 0x2e, 0x0a, 0x04, 0x6e, 0x65, 0x78, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, - 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x04, 0x6e, - 0x65, 0x78, 0x74, 0x42, 0x0b, 0x0a, 0x09, 0x5f, 0x6c, 0x61, 0x73, 0x74, 0x5f, 0x6a, 0x6f, 0x62, - 0x22, 0x45, 0x0a, 0x0c, 0x43, 0x72, 0x6f, 0x6e, 0x54, 0x72, 0x69, 0x67, 0x67, 0x65, 0x72, 0x73, - 0x12, 0x35, 0x0a, 0x08, 0x74, 0x72, 0x69, 0x67, 0x67, 0x65, 0x72, 0x73, 0x18, 0x01, 0x20, 0x03, - 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x73, 0x2e, 0x76, - 0x31, 0x2e, 0x43, 0x72, 0x6f, 0x6e, 0x54, 0x72, 0x69, 0x67, 0x67, 0x65, 0x72, 0x52, 0x08, 0x74, - 0x72, 0x69, 0x67, 0x67, 0x65, 0x72, 0x73, 0x2a, 0x52, 0x0a, 0x0a, 0x42, 0x75, 0x63, 0x6b, 0x65, - 0x74, 0x54, 0x79, 0x70, 0x65, 0x12, 0x1b, 0x0a, 0x17, 0x42, 0x55, 0x43, 0x4b, 0x45, 0x54, 0x5f, - 0x54, 0x59, 0x50, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, - 0x10, 0x00, 0x12, 0x13, 0x0a, 0x0f, 0x42, 0x55, 0x43, 0x4b, 0x45, 0x54, 0x5f, 0x54, 0x59, 0x50, - 0x45, 0x5f, 0x47, 0x43, 0x53, 0x10, 0x01, 0x12, 0x12, 0x0a, 0x0e, 0x42, 0x55, 0x43, 0x4b, 0x45, - 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x53, 0x33, 0x10, 0x02, 0x32, 0x84, 0x04, 0x0a, 0x0e, - 0x54, 0x72, 0x69, 0x67, 0x67, 0x65, 0x72, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x3c, - 0x0a, 0x0b, 0x4c, 0x69, 0x73, 0x74, 0x42, 0x75, 0x63, 0x6b, 0x65, 0x74, 0x73, 0x12, 0x16, 0x2e, - 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, - 0x45, 0x6d, 0x70, 0x74, 0x79, 0x1a, 0x15, 0x2e, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, - 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x42, 0x75, 0x63, 0x6b, 0x65, 0x74, 0x73, 0x12, 0x4f, 0x0a, 0x13, - 0x55, 0x70, 0x73, 0x65, 0x72, 0x74, 0x42, 0x75, 0x63, 0x6b, 0x65, 0x74, 0x54, 0x72, 0x69, 0x67, - 0x67, 0x65, 0x72, 0x12, 0x1b, 0x2e, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x73, 0x2e, - 0x76, 0x31, 0x2e, 0x42, 0x75, 0x63, 0x6b, 0x65, 0x74, 0x54, 0x72, 0x69, 0x67, 0x67, 0x65, 0x72, - 0x1a, 0x1b, 0x2e, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x73, 0x2e, 0x76, 0x31, 0x2e, - 0x42, 0x75, 0x63, 0x6b, 0x65, 0x74, 0x54, 0x72, 0x69, 0x67, 0x67, 0x65, 0x72, 0x12, 0x4a, 0x0a, - 0x12, 0x4c, 0x69, 0x73, 0x74, 0x42, 0x75, 0x63, 0x6b, 0x65, 0x74, 0x54, 0x72, 0x69, 0x67, 0x67, - 0x65, 0x72, 0x73, 0x12, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x1a, 0x1c, 0x2e, 0x77, 0x6f, - 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x42, 0x75, 0x63, 0x6b, 0x65, - 0x74, 0x54, 0x72, 0x69, 0x67, 0x67, 0x65, 0x72, 0x73, 0x12, 0x41, 0x0a, 0x13, 0x44, 0x65, 0x6c, - 0x65, 0x74, 0x65, 0x42, 0x75, 0x63, 0x6b, 0x65, 0x74, 0x54, 0x72, 0x69, 0x67, 0x67, 0x65, 0x72, - 0x12, 0x12, 0x2e, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x73, 0x2e, 0x76, 0x31, 0x2e, - 0x55, 0x55, 0x49, 0x44, 0x1a, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x12, 0x49, 0x0a, 0x11, - 0x55, 0x70, 0x73, 0x65, 0x72, 0x74, 0x43, 0x72, 0x6f, 0x6e, 0x54, 0x72, 0x69, 0x67, 0x67, 0x65, - 0x72, 0x12, 0x19, 0x2e, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x73, 0x2e, 0x76, 0x31, - 0x2e, 0x43, 0x72, 0x6f, 0x6e, 0x54, 0x72, 0x69, 0x67, 0x67, 0x65, 0x72, 0x1a, 0x19, 0x2e, 0x77, - 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x72, 0x6f, 0x6e, - 0x54, 0x72, 0x69, 0x67, 0x67, 0x65, 0x72, 0x12, 0x48, 0x0a, 0x10, 0x4c, 0x69, 0x73, 0x74, 0x43, - 0x72, 0x6f, 0x6e, 0x54, 0x72, 0x69, 0x67, 0x67, 0x65, 0x72, 0x73, 0x12, 0x16, 0x2e, 0x67, 0x6f, + 0x73, 0x22, 0x50, 0x0a, 0x0a, 0x42, 0x75, 0x63, 0x6b, 0x65, 0x74, 0x54, 0x61, 0x73, 0x6b, 0x12, + 0x16, 0x0a, 0x06, 0x62, 0x75, 0x63, 0x6b, 0x65, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x06, 0x62, 0x75, 0x63, 0x6b, 0x65, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x6f, 0x62, 0x6a, 0x65, 0x63, + 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x6f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x12, + 0x12, 0x0a, 0x04, 0x61, 0x72, 0x67, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x04, 0x61, + 0x72, 0x67, 0x73, 0x22, 0x9d, 0x01, 0x0a, 0x0b, 0x43, 0x72, 0x6f, 0x6e, 0x54, 0x72, 0x69, 0x67, + 0x67, 0x65, 0x72, 0x12, 0x22, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x12, 0x2e, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x55, + 0x55, 0x49, 0x44, 0x52, 0x02, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x73, + 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x73, + 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x12, 0x3a, 0x0a, 0x09, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x74, 0x79, 0x70, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x77, 0x6f, 0x72, + 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x53, 0x75, + 0x62, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x09, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x74, + 0x79, 0x70, 0x65, 0x22, 0xdc, 0x01, 0x0a, 0x11, 0x43, 0x72, 0x6f, 0x6e, 0x54, 0x72, 0x69, 0x67, + 0x67, 0x65, 0x72, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x12, 0x33, 0x0a, 0x07, 0x74, 0x72, 0x69, + 0x67, 0x67, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x77, 0x6f, 0x72, + 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x72, 0x6f, 0x6e, 0x54, 0x72, + 0x69, 0x67, 0x67, 0x65, 0x72, 0x52, 0x07, 0x74, 0x72, 0x69, 0x67, 0x67, 0x65, 0x72, 0x12, 0x21, + 0x0a, 0x0c, 0x74, 0x72, 0x61, 0x63, 0x65, 0x5f, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x74, 0x72, 0x61, 0x63, 0x65, 0x50, 0x61, 0x72, 0x65, 0x6e, + 0x74, 0x12, 0x32, 0x0a, 0x08, 0x6c, 0x61, 0x73, 0x74, 0x5f, 0x6a, 0x6f, 0x62, 0x18, 0x03, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x73, 0x2e, + 0x76, 0x31, 0x2e, 0x55, 0x55, 0x49, 0x44, 0x48, 0x00, 0x52, 0x07, 0x6c, 0x61, 0x73, 0x74, 0x4a, + 0x6f, 0x62, 0x88, 0x01, 0x01, 0x12, 0x2e, 0x0a, 0x04, 0x6e, 0x65, 0x78, 0x74, 0x18, 0x04, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, + 0x04, 0x6e, 0x65, 0x78, 0x74, 0x42, 0x0b, 0x0a, 0x09, 0x5f, 0x6c, 0x61, 0x73, 0x74, 0x5f, 0x6a, + 0x6f, 0x62, 0x22, 0x45, 0x0a, 0x0c, 0x43, 0x72, 0x6f, 0x6e, 0x54, 0x72, 0x69, 0x67, 0x67, 0x65, + 0x72, 0x73, 0x12, 0x35, 0x0a, 0x08, 0x74, 0x72, 0x69, 0x67, 0x67, 0x65, 0x72, 0x73, 0x18, 0x01, + 0x20, 0x03, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x73, + 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x72, 0x6f, 0x6e, 0x54, 0x72, 0x69, 0x67, 0x67, 0x65, 0x72, 0x52, + 0x08, 0x74, 0x72, 0x69, 0x67, 0x67, 0x65, 0x72, 0x73, 0x22, 0x5d, 0x0a, 0x08, 0x43, 0x72, 0x6f, + 0x6e, 0x54, 0x61, 0x73, 0x6b, 0x12, 0x3d, 0x0a, 0x0c, 0x74, 0x72, 0x69, 0x67, 0x67, 0x65, 0x72, + 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, + 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, + 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x0b, 0x74, 0x72, 0x69, 0x67, 0x67, 0x65, 0x72, + 0x54, 0x69, 0x6d, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x61, 0x72, 0x67, 0x73, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x0c, 0x52, 0x04, 0x61, 0x72, 0x67, 0x73, 0x2a, 0x52, 0x0a, 0x0a, 0x42, 0x75, 0x63, 0x6b, + 0x65, 0x74, 0x54, 0x79, 0x70, 0x65, 0x12, 0x1b, 0x0a, 0x17, 0x42, 0x55, 0x43, 0x4b, 0x45, 0x54, + 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, + 0x44, 0x10, 0x00, 0x12, 0x13, 0x0a, 0x0f, 0x42, 0x55, 0x43, 0x4b, 0x45, 0x54, 0x5f, 0x54, 0x59, + 0x50, 0x45, 0x5f, 0x47, 0x43, 0x53, 0x10, 0x01, 0x12, 0x12, 0x0a, 0x0e, 0x42, 0x55, 0x43, 0x4b, + 0x45, 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x53, 0x33, 0x10, 0x02, 0x32, 0x84, 0x04, 0x0a, + 0x0e, 0x54, 0x72, 0x69, 0x67, 0x67, 0x65, 0x72, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, + 0x3c, 0x0a, 0x0b, 0x4c, 0x69, 0x73, 0x74, 0x42, 0x75, 0x63, 0x6b, 0x65, 0x74, 0x73, 0x12, 0x16, + 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, + 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x1a, 0x15, 0x2e, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, + 0x77, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x42, 0x75, 0x63, 0x6b, 0x65, 0x74, 0x73, 0x12, 0x4f, 0x0a, + 0x13, 0x55, 0x70, 0x73, 0x65, 0x72, 0x74, 0x42, 0x75, 0x63, 0x6b, 0x65, 0x74, 0x54, 0x72, 0x69, + 0x67, 0x67, 0x65, 0x72, 0x12, 0x1b, 0x2e, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x73, + 0x2e, 0x76, 0x31, 0x2e, 0x42, 0x75, 0x63, 0x6b, 0x65, 0x74, 0x54, 0x72, 0x69, 0x67, 0x67, 0x65, + 0x72, 0x1a, 0x1b, 0x2e, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x73, 0x2e, 0x76, 0x31, + 0x2e, 0x42, 0x75, 0x63, 0x6b, 0x65, 0x74, 0x54, 0x72, 0x69, 0x67, 0x67, 0x65, 0x72, 0x12, 0x4a, + 0x0a, 0x12, 0x4c, 0x69, 0x73, 0x74, 0x42, 0x75, 0x63, 0x6b, 0x65, 0x74, 0x54, 0x72, 0x69, 0x67, + 0x67, 0x65, 0x72, 0x73, 0x12, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x1a, 0x1c, 0x2e, 0x77, + 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x42, 0x75, 0x63, 0x6b, + 0x65, 0x74, 0x54, 0x72, 0x69, 0x67, 0x67, 0x65, 0x72, 0x73, 0x12, 0x41, 0x0a, 0x13, 0x44, 0x65, + 0x6c, 0x65, 0x74, 0x65, 0x42, 0x75, 0x63, 0x6b, 0x65, 0x74, 0x54, 0x72, 0x69, 0x67, 0x67, 0x65, + 0x72, 0x12, 0x12, 0x2e, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x73, 0x2e, 0x76, 0x31, + 0x2e, 0x55, 0x55, 0x49, 0x44, 0x1a, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x12, 0x49, 0x0a, + 0x11, 0x55, 0x70, 0x73, 0x65, 0x72, 0x74, 0x43, 0x72, 0x6f, 0x6e, 0x54, 0x72, 0x69, 0x67, 0x67, + 0x65, 0x72, 0x12, 0x19, 0x2e, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x73, 0x2e, 0x76, + 0x31, 0x2e, 0x43, 0x72, 0x6f, 0x6e, 0x54, 0x72, 0x69, 0x67, 0x67, 0x65, 0x72, 0x1a, 0x19, 0x2e, + 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x72, 0x6f, + 0x6e, 0x54, 0x72, 0x69, 0x67, 0x67, 0x65, 0x72, 0x12, 0x48, 0x0a, 0x10, 0x4c, 0x69, 0x73, 0x74, + 0x43, 0x72, 0x6f, 0x6e, 0x54, 0x72, 0x69, 0x67, 0x67, 0x65, 0x72, 0x73, 0x12, 0x16, 0x2e, 0x67, + 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, + 0x6d, 0x70, 0x74, 0x79, 0x1a, 0x1c, 0x2e, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x73, + 0x2e, 0x76, 0x31, 0x2e, 0x42, 0x75, 0x63, 0x6b, 0x65, 0x74, 0x54, 0x72, 0x69, 0x67, 0x67, 0x65, + 0x72, 0x73, 0x12, 0x3f, 0x0a, 0x11, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x43, 0x72, 0x6f, 0x6e, + 0x54, 0x72, 0x69, 0x67, 0x67, 0x65, 0x72, 0x12, 0x12, 0x2e, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, + 0x6f, 0x77, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x55, 0x49, 0x44, 0x1a, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, - 0x70, 0x74, 0x79, 0x1a, 0x1c, 0x2e, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x73, 0x2e, - 0x76, 0x31, 0x2e, 0x42, 0x75, 0x63, 0x6b, 0x65, 0x74, 0x54, 0x72, 0x69, 0x67, 0x67, 0x65, 0x72, - 0x73, 0x12, 0x3f, 0x0a, 0x11, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x43, 0x72, 0x6f, 0x6e, 0x54, - 0x72, 0x69, 0x67, 0x67, 0x65, 0x72, 0x12, 0x12, 0x2e, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, - 0x77, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x55, 0x49, 0x44, 0x1a, 0x16, 0x2e, 0x67, 0x6f, 0x6f, - 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, - 0x74, 0x79, 0x42, 0xb5, 0x01, 0x0a, 0x10, 0x63, 0x6f, 0x6d, 0x2e, 0x77, 0x6f, 0x72, 0x6b, 0x66, - 0x6c, 0x6f, 0x77, 0x73, 0x2e, 0x76, 0x31, 0x42, 0x0c, 0x54, 0x72, 0x69, 0x67, 0x67, 0x65, 0x72, - 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x42, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, - 0x63, 0x6f, 0x6d, 0x2f, 0x74, 0x69, 0x6c, 0x65, 0x62, 0x6f, 0x78, 0x2f, 0x74, 0x69, 0x6c, 0x65, - 0x62, 0x6f, 0x78, 0x2d, 0x67, 0x6f, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x67, 0x65, 0x6e, 0x2f, - 0x67, 0x6f, 0x2f, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x73, 0x2f, 0x76, 0x31, 0x3b, - 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x73, 0x76, 0x31, 0xa2, 0x02, 0x03, 0x57, 0x58, - 0x58, 0xaa, 0x02, 0x0c, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x73, 0x2e, 0x56, 0x31, - 0xca, 0x02, 0x0c, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x73, 0x5c, 0x56, 0x31, 0xe2, - 0x02, 0x18, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x73, 0x5c, 0x56, 0x31, 0x5c, 0x47, - 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x0d, 0x57, 0x6f, 0x72, - 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x73, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x33, + 0x70, 0x74, 0x79, 0x42, 0xb5, 0x01, 0x0a, 0x10, 0x63, 0x6f, 0x6d, 0x2e, 0x77, 0x6f, 0x72, 0x6b, + 0x66, 0x6c, 0x6f, 0x77, 0x73, 0x2e, 0x76, 0x31, 0x42, 0x0c, 0x54, 0x72, 0x69, 0x67, 0x67, 0x65, + 0x72, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x42, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, + 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x74, 0x69, 0x6c, 0x65, 0x62, 0x6f, 0x78, 0x2f, 0x74, 0x69, 0x6c, + 0x65, 0x62, 0x6f, 0x78, 0x2d, 0x67, 0x6f, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x67, 0x65, 0x6e, + 0x2f, 0x67, 0x6f, 0x2f, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x73, 0x2f, 0x76, 0x31, + 0x3b, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x73, 0x76, 0x31, 0xa2, 0x02, 0x03, 0x57, + 0x58, 0x58, 0xaa, 0x02, 0x0c, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x73, 0x2e, 0x56, + 0x31, 0xca, 0x02, 0x0c, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x73, 0x5c, 0x56, 0x31, + 0xe2, 0x02, 0x18, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x73, 0x5c, 0x56, 0x31, 0x5c, + 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x0d, 0x57, 0x6f, + 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x73, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x33, } var ( @@ -716,7 +845,7 @@ func file_workflows_v1_trigger_proto_rawDescGZIP() []byte { } var file_workflows_v1_trigger_proto_enumTypes = make([]protoimpl.EnumInfo, 1) -var file_workflows_v1_trigger_proto_msgTypes = make([]protoimpl.MessageInfo, 8) +var file_workflows_v1_trigger_proto_msgTypes = make([]protoimpl.MessageInfo, 10) var file_workflows_v1_trigger_proto_goTypes = []interface{}{ (BucketType)(0), // 0: workflows.v1.BucketType (*Bucket)(nil), // 1: workflows.v1.Bucket @@ -724,49 +853,52 @@ var file_workflows_v1_trigger_proto_goTypes = []interface{}{ (*BucketTrigger)(nil), // 3: workflows.v1.BucketTrigger (*BucketTriggerDetail)(nil), // 4: workflows.v1.BucketTriggerDetail (*BucketTriggers)(nil), // 5: workflows.v1.BucketTriggers - (*CronTrigger)(nil), // 6: workflows.v1.CronTrigger - (*CronTriggerDetail)(nil), // 7: workflows.v1.CronTriggerDetail - (*CronTriggers)(nil), // 8: workflows.v1.CronTriggers - (*UUID)(nil), // 9: workflows.v1.UUID - (*TaskSubmission)(nil), // 10: workflows.v1.TaskSubmission - (*timestamppb.Timestamp)(nil), // 11: google.protobuf.Timestamp - (*emptypb.Empty)(nil), // 12: google.protobuf.Empty + (*BucketTask)(nil), // 6: workflows.v1.BucketTask + (*CronTrigger)(nil), // 7: workflows.v1.CronTrigger + (*CronTriggerDetail)(nil), // 8: workflows.v1.CronTriggerDetail + (*CronTriggers)(nil), // 9: workflows.v1.CronTriggers + (*CronTask)(nil), // 10: workflows.v1.CronTask + (*UUID)(nil), // 11: workflows.v1.UUID + (*TaskSubmission)(nil), // 12: workflows.v1.TaskSubmission + (*timestamppb.Timestamp)(nil), // 13: google.protobuf.Timestamp + (*emptypb.Empty)(nil), // 14: google.protobuf.Empty } var file_workflows_v1_trigger_proto_depIdxs = []int32{ - 9, // 0: workflows.v1.Bucket.id:type_name -> workflows.v1.UUID + 11, // 0: workflows.v1.Bucket.id:type_name -> workflows.v1.UUID 0, // 1: workflows.v1.Bucket.type:type_name -> workflows.v1.BucketType 1, // 2: workflows.v1.Buckets.buckets:type_name -> workflows.v1.Bucket - 9, // 3: workflows.v1.BucketTrigger.id:type_name -> workflows.v1.UUID + 11, // 3: workflows.v1.BucketTrigger.id:type_name -> workflows.v1.UUID 1, // 4: workflows.v1.BucketTrigger.bucket:type_name -> workflows.v1.Bucket - 10, // 5: workflows.v1.BucketTrigger.prototype:type_name -> workflows.v1.TaskSubmission + 12, // 5: workflows.v1.BucketTrigger.prototype:type_name -> workflows.v1.TaskSubmission 3, // 6: workflows.v1.BucketTriggerDetail.trigger:type_name -> workflows.v1.BucketTrigger - 9, // 7: workflows.v1.BucketTriggerDetail.last_job:type_name -> workflows.v1.UUID + 11, // 7: workflows.v1.BucketTriggerDetail.last_job:type_name -> workflows.v1.UUID 3, // 8: workflows.v1.BucketTriggers.triggers:type_name -> workflows.v1.BucketTrigger - 9, // 9: workflows.v1.CronTrigger.id:type_name -> workflows.v1.UUID - 10, // 10: workflows.v1.CronTrigger.prototype:type_name -> workflows.v1.TaskSubmission - 6, // 11: workflows.v1.CronTriggerDetail.trigger:type_name -> workflows.v1.CronTrigger - 9, // 12: workflows.v1.CronTriggerDetail.last_job:type_name -> workflows.v1.UUID - 11, // 13: workflows.v1.CronTriggerDetail.next:type_name -> google.protobuf.Timestamp - 6, // 14: workflows.v1.CronTriggers.triggers:type_name -> workflows.v1.CronTrigger - 12, // 15: workflows.v1.TriggerService.ListBuckets:input_type -> google.protobuf.Empty - 3, // 16: workflows.v1.TriggerService.UpsertBucketTrigger:input_type -> workflows.v1.BucketTrigger - 12, // 17: workflows.v1.TriggerService.ListBucketTriggers:input_type -> google.protobuf.Empty - 9, // 18: workflows.v1.TriggerService.DeleteBucketTrigger:input_type -> workflows.v1.UUID - 6, // 19: workflows.v1.TriggerService.UpsertCronTrigger:input_type -> workflows.v1.CronTrigger - 12, // 20: workflows.v1.TriggerService.ListCronTriggers:input_type -> google.protobuf.Empty - 9, // 21: workflows.v1.TriggerService.DeleteCronTrigger:input_type -> workflows.v1.UUID - 2, // 22: workflows.v1.TriggerService.ListBuckets:output_type -> workflows.v1.Buckets - 3, // 23: workflows.v1.TriggerService.UpsertBucketTrigger:output_type -> workflows.v1.BucketTrigger - 5, // 24: workflows.v1.TriggerService.ListBucketTriggers:output_type -> workflows.v1.BucketTriggers - 12, // 25: workflows.v1.TriggerService.DeleteBucketTrigger:output_type -> google.protobuf.Empty - 6, // 26: workflows.v1.TriggerService.UpsertCronTrigger:output_type -> workflows.v1.CronTrigger - 5, // 27: workflows.v1.TriggerService.ListCronTriggers:output_type -> workflows.v1.BucketTriggers - 12, // 28: workflows.v1.TriggerService.DeleteCronTrigger:output_type -> google.protobuf.Empty - 22, // [22:29] is the sub-list for method output_type - 15, // [15:22] is the sub-list for method input_type - 15, // [15:15] is the sub-list for extension type_name - 15, // [15:15] is the sub-list for extension extendee - 0, // [0:15] is the sub-list for field type_name + 11, // 9: workflows.v1.CronTrigger.id:type_name -> workflows.v1.UUID + 12, // 10: workflows.v1.CronTrigger.prototype:type_name -> workflows.v1.TaskSubmission + 7, // 11: workflows.v1.CronTriggerDetail.trigger:type_name -> workflows.v1.CronTrigger + 11, // 12: workflows.v1.CronTriggerDetail.last_job:type_name -> workflows.v1.UUID + 13, // 13: workflows.v1.CronTriggerDetail.next:type_name -> google.protobuf.Timestamp + 7, // 14: workflows.v1.CronTriggers.triggers:type_name -> workflows.v1.CronTrigger + 13, // 15: workflows.v1.CronTask.trigger_time:type_name -> google.protobuf.Timestamp + 14, // 16: workflows.v1.TriggerService.ListBuckets:input_type -> google.protobuf.Empty + 3, // 17: workflows.v1.TriggerService.UpsertBucketTrigger:input_type -> workflows.v1.BucketTrigger + 14, // 18: workflows.v1.TriggerService.ListBucketTriggers:input_type -> google.protobuf.Empty + 11, // 19: workflows.v1.TriggerService.DeleteBucketTrigger:input_type -> workflows.v1.UUID + 7, // 20: workflows.v1.TriggerService.UpsertCronTrigger:input_type -> workflows.v1.CronTrigger + 14, // 21: workflows.v1.TriggerService.ListCronTriggers:input_type -> google.protobuf.Empty + 11, // 22: workflows.v1.TriggerService.DeleteCronTrigger:input_type -> workflows.v1.UUID + 2, // 23: workflows.v1.TriggerService.ListBuckets:output_type -> workflows.v1.Buckets + 3, // 24: workflows.v1.TriggerService.UpsertBucketTrigger:output_type -> workflows.v1.BucketTrigger + 5, // 25: workflows.v1.TriggerService.ListBucketTriggers:output_type -> workflows.v1.BucketTriggers + 14, // 26: workflows.v1.TriggerService.DeleteBucketTrigger:output_type -> google.protobuf.Empty + 7, // 27: workflows.v1.TriggerService.UpsertCronTrigger:output_type -> workflows.v1.CronTrigger + 5, // 28: workflows.v1.TriggerService.ListCronTriggers:output_type -> workflows.v1.BucketTriggers + 14, // 29: workflows.v1.TriggerService.DeleteCronTrigger:output_type -> google.protobuf.Empty + 23, // [23:30] is the sub-list for method output_type + 16, // [16:23] is the sub-list for method input_type + 16, // [16:16] is the sub-list for extension type_name + 16, // [16:16] is the sub-list for extension extendee + 0, // [0:16] is the sub-list for field type_name } func init() { file_workflows_v1_trigger_proto_init() } @@ -837,7 +969,7 @@ func file_workflows_v1_trigger_proto_init() { } } file_workflows_v1_trigger_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CronTrigger); i { + switch v := v.(*BucketTask); i { case 0: return &v.state case 1: @@ -849,7 +981,7 @@ func file_workflows_v1_trigger_proto_init() { } } file_workflows_v1_trigger_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CronTriggerDetail); i { + switch v := v.(*CronTrigger); i { case 0: return &v.state case 1: @@ -861,6 +993,18 @@ func file_workflows_v1_trigger_proto_init() { } } file_workflows_v1_trigger_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CronTriggerDetail); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_workflows_v1_trigger_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*CronTriggers); i { case 0: return &v.state @@ -872,16 +1016,28 @@ func file_workflows_v1_trigger_proto_init() { return nil } } + file_workflows_v1_trigger_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CronTask); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } } file_workflows_v1_trigger_proto_msgTypes[3].OneofWrappers = []interface{}{} - file_workflows_v1_trigger_proto_msgTypes[6].OneofWrappers = []interface{}{} + file_workflows_v1_trigger_proto_msgTypes[7].OneofWrappers = []interface{}{} type x struct{} out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: file_workflows_v1_trigger_proto_rawDesc, NumEnums: 1, - NumMessages: 8, + NumMessages: 10, NumExtensions: 0, NumServices: 1, },