From 2938c7453bd7ea9add85dd8a5294d0c1ba464d3c Mon Sep 17 00:00:00 2001 From: chaptersix <13949480+chaptersix@users.noreply.github.com> Date: Fri, 4 Sep 2026 21:43:21 -0500 Subject: [PATCH 1/2] Generate extensible schedule action API --- common/v1/message.go-helpers.pb.go | 37 ++ common/v1/message.pb.go | 474 ++++++++++++-------- proto/api | 2 +- schedule/v1/message.go-helpers.pb.go | 74 +++ schedule/v1/message.pb.go | 647 +++++++++++++++++++++------ 5 files changed, 918 insertions(+), 316 deletions(-) diff --git a/common/v1/message.go-helpers.pb.go b/common/v1/message.go-helpers.pb.go index bd4ed7199..0bce2d553 100644 --- a/common/v1/message.go-helpers.pb.go +++ b/common/v1/message.go-helpers.pb.go @@ -301,6 +301,43 @@ func (this *Execution) Equal(that interface{}) bool { return proto.Equal(this, that1) } +// Marshal an object of type ActionExecutionResult to the protobuf v3 wire format +func (val *ActionExecutionResult) Marshal() ([]byte, error) { + return proto.Marshal(val) +} + +// Unmarshal an object of type ActionExecutionResult from the protobuf v3 wire format +func (val *ActionExecutionResult) Unmarshal(buf []byte) error { + return proto.Unmarshal(buf, val) +} + +// Size returns the size of the object, in bytes, once serialized +func (val *ActionExecutionResult) Size() int { + return proto.Size(val) +} + +// Equal returns whether two ActionExecutionResult values are equivalent by recursively +// comparing the message's fields. +// For more information see the documentation for +// https://pkg.go.dev/google.golang.org/protobuf/proto#Equal +func (this *ActionExecutionResult) Equal(that interface{}) bool { + if that == nil { + return this == nil + } + + var that1 *ActionExecutionResult + switch t := that.(type) { + case *ActionExecutionResult: + that1 = t + case ActionExecutionResult: + that1 = &t + default: + return false + } + + return proto.Equal(this, that1) +} + // Marshal an object of type WorkflowType to the protobuf v3 wire format func (val *WorkflowType) Marshal() ([]byte, error) { return proto.Marshal(val) diff --git a/common/v1/message.pb.go b/common/v1/message.pb.go index 9a9b89115..95f8078f4 100644 --- a/common/v1/message.pb.go +++ b/common/v1/message.pb.go @@ -441,6 +441,97 @@ func (x *Execution) GetRunId() string { return "" } +// Identifies an execution started by an action and reports its current status. +type ActionExecutionResult struct { + state protoimpl.MessageState `protogen:"open.v1"` + Execution *Execution `protobuf:"bytes,1,opt,name=execution,proto3" json:"execution,omitempty"` + // Types that are valid to be assigned to Status: + // + // *ActionExecutionResult_WorkflowStatus + // *ActionExecutionResult_ActivityStatus + Status isActionExecutionResult_Status `protobuf_oneof:"status"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ActionExecutionResult) Reset() { + *x = ActionExecutionResult{} + mi := &file_temporal_api_common_v1_message_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ActionExecutionResult) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ActionExecutionResult) ProtoMessage() {} + +func (x *ActionExecutionResult) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_common_v1_message_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 ActionExecutionResult.ProtoReflect.Descriptor instead. +func (*ActionExecutionResult) Descriptor() ([]byte, []int) { + return file_temporal_api_common_v1_message_proto_rawDescGZIP(), []int{8} +} + +func (x *ActionExecutionResult) GetExecution() *Execution { + if x != nil { + return x.Execution + } + return nil +} + +func (x *ActionExecutionResult) GetStatus() isActionExecutionResult_Status { + if x != nil { + return x.Status + } + return nil +} + +func (x *ActionExecutionResult) GetWorkflowStatus() v1.WorkflowExecutionStatus { + if x != nil { + if x, ok := x.Status.(*ActionExecutionResult_WorkflowStatus); ok { + return x.WorkflowStatus + } + } + return v1.WorkflowExecutionStatus(0) +} + +func (x *ActionExecutionResult) GetActivityStatus() v1.ActivityExecutionStatus { + if x != nil { + if x, ok := x.Status.(*ActionExecutionResult_ActivityStatus); ok { + return x.ActivityStatus + } + } + return v1.ActivityExecutionStatus(0) +} + +type isActionExecutionResult_Status interface { + isActionExecutionResult_Status() +} + +type ActionExecutionResult_WorkflowStatus struct { + WorkflowStatus v1.WorkflowExecutionStatus `protobuf:"varint,2,opt,name=workflow_status,json=workflowStatus,proto3,enum=temporal.api.enums.v1.WorkflowExecutionStatus,oneof"` +} + +type ActionExecutionResult_ActivityStatus struct { + ActivityStatus v1.ActivityExecutionStatus `protobuf:"varint,3,opt,name=activity_status,json=activityStatus,proto3,enum=temporal.api.enums.v1.ActivityExecutionStatus,oneof"` +} + +func (*ActionExecutionResult_WorkflowStatus) isActionExecutionResult_Status() {} + +func (*ActionExecutionResult_ActivityStatus) isActionExecutionResult_Status() {} + // Represents the identifier used by a workflow author to define the workflow. Typically, the // name of a function. This is sometimes referred to as the workflow's "name" type WorkflowType struct { @@ -452,7 +543,7 @@ type WorkflowType struct { func (x *WorkflowType) Reset() { *x = WorkflowType{} - mi := &file_temporal_api_common_v1_message_proto_msgTypes[8] + mi := &file_temporal_api_common_v1_message_proto_msgTypes[9] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -464,7 +555,7 @@ func (x *WorkflowType) String() string { func (*WorkflowType) ProtoMessage() {} func (x *WorkflowType) ProtoReflect() protoreflect.Message { - mi := &file_temporal_api_common_v1_message_proto_msgTypes[8] + mi := &file_temporal_api_common_v1_message_proto_msgTypes[9] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -477,7 +568,7 @@ func (x *WorkflowType) ProtoReflect() protoreflect.Message { // Deprecated: Use WorkflowType.ProtoReflect.Descriptor instead. func (*WorkflowType) Descriptor() ([]byte, []int) { - return file_temporal_api_common_v1_message_proto_rawDescGZIP(), []int{8} + return file_temporal_api_common_v1_message_proto_rawDescGZIP(), []int{9} } func (x *WorkflowType) GetName() string { @@ -498,7 +589,7 @@ type ActivityType struct { func (x *ActivityType) Reset() { *x = ActivityType{} - mi := &file_temporal_api_common_v1_message_proto_msgTypes[9] + mi := &file_temporal_api_common_v1_message_proto_msgTypes[10] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -510,7 +601,7 @@ func (x *ActivityType) String() string { func (*ActivityType) ProtoMessage() {} func (x *ActivityType) ProtoReflect() protoreflect.Message { - mi := &file_temporal_api_common_v1_message_proto_msgTypes[9] + mi := &file_temporal_api_common_v1_message_proto_msgTypes[10] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -523,7 +614,7 @@ func (x *ActivityType) ProtoReflect() protoreflect.Message { // Deprecated: Use ActivityType.ProtoReflect.Descriptor instead. func (*ActivityType) Descriptor() ([]byte, []int) { - return file_temporal_api_common_v1_message_proto_rawDescGZIP(), []int{9} + return file_temporal_api_common_v1_message_proto_rawDescGZIP(), []int{10} } func (x *ActivityType) GetName() string { @@ -557,7 +648,7 @@ type RetryPolicy struct { func (x *RetryPolicy) Reset() { *x = RetryPolicy{} - mi := &file_temporal_api_common_v1_message_proto_msgTypes[10] + mi := &file_temporal_api_common_v1_message_proto_msgTypes[11] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -569,7 +660,7 @@ func (x *RetryPolicy) String() string { func (*RetryPolicy) ProtoMessage() {} func (x *RetryPolicy) ProtoReflect() protoreflect.Message { - mi := &file_temporal_api_common_v1_message_proto_msgTypes[10] + mi := &file_temporal_api_common_v1_message_proto_msgTypes[11] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -582,7 +673,7 @@ func (x *RetryPolicy) ProtoReflect() protoreflect.Message { // Deprecated: Use RetryPolicy.ProtoReflect.Descriptor instead. func (*RetryPolicy) Descriptor() ([]byte, []int) { - return file_temporal_api_common_v1_message_proto_rawDescGZIP(), []int{10} + return file_temporal_api_common_v1_message_proto_rawDescGZIP(), []int{11} } func (x *RetryPolicy) GetInitialInterval() *durationpb.Duration { @@ -637,7 +728,7 @@ type MeteringMetadata struct { func (x *MeteringMetadata) Reset() { *x = MeteringMetadata{} - mi := &file_temporal_api_common_v1_message_proto_msgTypes[11] + mi := &file_temporal_api_common_v1_message_proto_msgTypes[12] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -649,7 +740,7 @@ func (x *MeteringMetadata) String() string { func (*MeteringMetadata) ProtoMessage() {} func (x *MeteringMetadata) ProtoReflect() protoreflect.Message { - mi := &file_temporal_api_common_v1_message_proto_msgTypes[11] + mi := &file_temporal_api_common_v1_message_proto_msgTypes[12] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -662,7 +753,7 @@ func (x *MeteringMetadata) ProtoReflect() protoreflect.Message { // Deprecated: Use MeteringMetadata.ProtoReflect.Descriptor instead. func (*MeteringMetadata) Descriptor() ([]byte, []int) { - return file_temporal_api_common_v1_message_proto_rawDescGZIP(), []int{11} + return file_temporal_api_common_v1_message_proto_rawDescGZIP(), []int{12} } func (x *MeteringMetadata) GetNonfirstLocalActivityExecutionAttempts() uint32 { @@ -688,7 +779,7 @@ type WorkerVersionStamp struct { func (x *WorkerVersionStamp) Reset() { *x = WorkerVersionStamp{} - mi := &file_temporal_api_common_v1_message_proto_msgTypes[12] + mi := &file_temporal_api_common_v1_message_proto_msgTypes[13] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -700,7 +791,7 @@ func (x *WorkerVersionStamp) String() string { func (*WorkerVersionStamp) ProtoMessage() {} func (x *WorkerVersionStamp) ProtoReflect() protoreflect.Message { - mi := &file_temporal_api_common_v1_message_proto_msgTypes[12] + mi := &file_temporal_api_common_v1_message_proto_msgTypes[13] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -713,7 +804,7 @@ func (x *WorkerVersionStamp) ProtoReflect() protoreflect.Message { // Deprecated: Use WorkerVersionStamp.ProtoReflect.Descriptor instead. func (*WorkerVersionStamp) Descriptor() ([]byte, []int) { - return file_temporal_api_common_v1_message_proto_rawDescGZIP(), []int{12} + return file_temporal_api_common_v1_message_proto_rawDescGZIP(), []int{13} } func (x *WorkerVersionStamp) GetBuildId() string { @@ -749,7 +840,7 @@ type WorkerVersionCapabilities struct { func (x *WorkerVersionCapabilities) Reset() { *x = WorkerVersionCapabilities{} - mi := &file_temporal_api_common_v1_message_proto_msgTypes[13] + mi := &file_temporal_api_common_v1_message_proto_msgTypes[14] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -761,7 +852,7 @@ func (x *WorkerVersionCapabilities) String() string { func (*WorkerVersionCapabilities) ProtoMessage() {} func (x *WorkerVersionCapabilities) ProtoReflect() protoreflect.Message { - mi := &file_temporal_api_common_v1_message_proto_msgTypes[13] + mi := &file_temporal_api_common_v1_message_proto_msgTypes[14] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -774,7 +865,7 @@ func (x *WorkerVersionCapabilities) ProtoReflect() protoreflect.Message { // Deprecated: Use WorkerVersionCapabilities.ProtoReflect.Descriptor instead. func (*WorkerVersionCapabilities) Descriptor() ([]byte, []int) { - return file_temporal_api_common_v1_message_proto_rawDescGZIP(), []int{13} + return file_temporal_api_common_v1_message_proto_rawDescGZIP(), []int{14} } func (x *WorkerVersionCapabilities) GetBuildId() string { @@ -827,7 +918,7 @@ type ResetOptions struct { func (x *ResetOptions) Reset() { *x = ResetOptions{} - mi := &file_temporal_api_common_v1_message_proto_msgTypes[14] + mi := &file_temporal_api_common_v1_message_proto_msgTypes[15] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -839,7 +930,7 @@ func (x *ResetOptions) String() string { func (*ResetOptions) ProtoMessage() {} func (x *ResetOptions) ProtoReflect() protoreflect.Message { - mi := &file_temporal_api_common_v1_message_proto_msgTypes[14] + mi := &file_temporal_api_common_v1_message_proto_msgTypes[15] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -852,7 +943,7 @@ func (x *ResetOptions) ProtoReflect() protoreflect.Message { // Deprecated: Use ResetOptions.ProtoReflect.Descriptor instead. func (*ResetOptions) Descriptor() ([]byte, []int) { - return file_temporal_api_common_v1_message_proto_rawDescGZIP(), []int{14} + return file_temporal_api_common_v1_message_proto_rawDescGZIP(), []int{15} } func (x *ResetOptions) GetTarget() isResetOptions_Target { @@ -975,7 +1066,7 @@ type Callback struct { func (x *Callback) Reset() { *x = Callback{} - mi := &file_temporal_api_common_v1_message_proto_msgTypes[15] + mi := &file_temporal_api_common_v1_message_proto_msgTypes[16] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -987,7 +1078,7 @@ func (x *Callback) String() string { func (*Callback) ProtoMessage() {} func (x *Callback) ProtoReflect() protoreflect.Message { - mi := &file_temporal_api_common_v1_message_proto_msgTypes[15] + mi := &file_temporal_api_common_v1_message_proto_msgTypes[16] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1000,7 +1091,7 @@ func (x *Callback) ProtoReflect() protoreflect.Message { // Deprecated: Use Callback.ProtoReflect.Descriptor instead. func (*Callback) Descriptor() ([]byte, []int) { - return file_temporal_api_common_v1_message_proto_rawDescGZIP(), []int{15} + return file_temporal_api_common_v1_message_proto_rawDescGZIP(), []int{16} } func (x *Callback) GetVariant() isCallback_Variant { @@ -1071,7 +1162,7 @@ type Link struct { func (x *Link) Reset() { *x = Link{} - mi := &file_temporal_api_common_v1_message_proto_msgTypes[16] + mi := &file_temporal_api_common_v1_message_proto_msgTypes[17] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1083,7 +1174,7 @@ func (x *Link) String() string { func (*Link) ProtoMessage() {} func (x *Link) ProtoReflect() protoreflect.Message { - mi := &file_temporal_api_common_v1_message_proto_msgTypes[16] + mi := &file_temporal_api_common_v1_message_proto_msgTypes[17] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1096,7 +1187,7 @@ func (x *Link) ProtoReflect() protoreflect.Message { // Deprecated: Use Link.ProtoReflect.Descriptor instead. func (*Link) Descriptor() ([]byte, []int) { - return file_temporal_api_common_v1_message_proto_rawDescGZIP(), []int{16} + return file_temporal_api_common_v1_message_proto_rawDescGZIP(), []int{17} } func (x *Link) GetVariant() isLink_Variant { @@ -1199,7 +1290,7 @@ type Principal struct { func (x *Principal) Reset() { *x = Principal{} - mi := &file_temporal_api_common_v1_message_proto_msgTypes[17] + mi := &file_temporal_api_common_v1_message_proto_msgTypes[18] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1211,7 +1302,7 @@ func (x *Principal) String() string { func (*Principal) ProtoMessage() {} func (x *Principal) ProtoReflect() protoreflect.Message { - mi := &file_temporal_api_common_v1_message_proto_msgTypes[17] + mi := &file_temporal_api_common_v1_message_proto_msgTypes[18] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1224,7 +1315,7 @@ func (x *Principal) ProtoReflect() protoreflect.Message { // Deprecated: Use Principal.ProtoReflect.Descriptor instead. func (*Principal) Descriptor() ([]byte, []int) { - return file_temporal_api_common_v1_message_proto_rawDescGZIP(), []int{17} + return file_temporal_api_common_v1_message_proto_rawDescGZIP(), []int{18} } func (x *Principal) GetType() string { @@ -1327,7 +1418,7 @@ type Priority struct { func (x *Priority) Reset() { *x = Priority{} - mi := &file_temporal_api_common_v1_message_proto_msgTypes[18] + mi := &file_temporal_api_common_v1_message_proto_msgTypes[19] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1339,7 +1430,7 @@ func (x *Priority) String() string { func (*Priority) ProtoMessage() {} func (x *Priority) ProtoReflect() protoreflect.Message { - mi := &file_temporal_api_common_v1_message_proto_msgTypes[18] + mi := &file_temporal_api_common_v1_message_proto_msgTypes[19] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1352,7 +1443,7 @@ func (x *Priority) ProtoReflect() protoreflect.Message { // Deprecated: Use Priority.ProtoReflect.Descriptor instead. func (*Priority) Descriptor() ([]byte, []int) { - return file_temporal_api_common_v1_message_proto_rawDescGZIP(), []int{18} + return file_temporal_api_common_v1_message_proto_rawDescGZIP(), []int{19} } func (x *Priority) GetPriorityKey() int32 { @@ -1401,7 +1492,7 @@ type WorkerSelector struct { func (x *WorkerSelector) Reset() { *x = WorkerSelector{} - mi := &file_temporal_api_common_v1_message_proto_msgTypes[19] + mi := &file_temporal_api_common_v1_message_proto_msgTypes[20] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1413,7 +1504,7 @@ func (x *WorkerSelector) String() string { func (*WorkerSelector) ProtoMessage() {} func (x *WorkerSelector) ProtoReflect() protoreflect.Message { - mi := &file_temporal_api_common_v1_message_proto_msgTypes[19] + mi := &file_temporal_api_common_v1_message_proto_msgTypes[20] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1426,7 +1517,7 @@ func (x *WorkerSelector) ProtoReflect() protoreflect.Message { // Deprecated: Use WorkerSelector.ProtoReflect.Descriptor instead. func (*WorkerSelector) Descriptor() ([]byte, []int) { - return file_temporal_api_common_v1_message_proto_rawDescGZIP(), []int{19} + return file_temporal_api_common_v1_message_proto_rawDescGZIP(), []int{20} } func (x *WorkerSelector) GetSelector() isWorkerSelector_Selector { @@ -1472,7 +1563,7 @@ type OnConflictOptions struct { func (x *OnConflictOptions) Reset() { *x = OnConflictOptions{} - mi := &file_temporal_api_common_v1_message_proto_msgTypes[20] + mi := &file_temporal_api_common_v1_message_proto_msgTypes[21] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1484,7 +1575,7 @@ func (x *OnConflictOptions) String() string { func (*OnConflictOptions) ProtoMessage() {} func (x *OnConflictOptions) ProtoReflect() protoreflect.Message { - mi := &file_temporal_api_common_v1_message_proto_msgTypes[20] + mi := &file_temporal_api_common_v1_message_proto_msgTypes[21] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1497,7 +1588,7 @@ func (x *OnConflictOptions) ProtoReflect() protoreflect.Message { // Deprecated: Use OnConflictOptions.ProtoReflect.Descriptor instead. func (*OnConflictOptions) Descriptor() ([]byte, []int) { - return file_temporal_api_common_v1_message_proto_rawDescGZIP(), []int{20} + return file_temporal_api_common_v1_message_proto_rawDescGZIP(), []int{21} } func (x *OnConflictOptions) GetAttachRequestId() bool { @@ -1564,7 +1655,7 @@ type TimeSkippingConfig struct { func (x *TimeSkippingConfig) Reset() { *x = TimeSkippingConfig{} - mi := &file_temporal_api_common_v1_message_proto_msgTypes[21] + mi := &file_temporal_api_common_v1_message_proto_msgTypes[22] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1576,7 +1667,7 @@ func (x *TimeSkippingConfig) String() string { func (*TimeSkippingConfig) ProtoMessage() {} func (x *TimeSkippingConfig) ProtoReflect() protoreflect.Message { - mi := &file_temporal_api_common_v1_message_proto_msgTypes[21] + mi := &file_temporal_api_common_v1_message_proto_msgTypes[22] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1589,7 +1680,7 @@ func (x *TimeSkippingConfig) ProtoReflect() protoreflect.Message { // Deprecated: Use TimeSkippingConfig.ProtoReflect.Descriptor instead. func (*TimeSkippingConfig) Descriptor() ([]byte, []int) { - return file_temporal_api_common_v1_message_proto_rawDescGZIP(), []int{21} + return file_temporal_api_common_v1_message_proto_rawDescGZIP(), []int{22} } func (x *TimeSkippingConfig) GetEnabled() bool { @@ -1642,7 +1733,7 @@ type FastForwardConfig struct { func (x *FastForwardConfig) Reset() { *x = FastForwardConfig{} - mi := &file_temporal_api_common_v1_message_proto_msgTypes[22] + mi := &file_temporal_api_common_v1_message_proto_msgTypes[23] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1654,7 +1745,7 @@ func (x *FastForwardConfig) String() string { func (*FastForwardConfig) ProtoMessage() {} func (x *FastForwardConfig) ProtoReflect() protoreflect.Message { - mi := &file_temporal_api_common_v1_message_proto_msgTypes[22] + mi := &file_temporal_api_common_v1_message_proto_msgTypes[23] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1667,7 +1758,7 @@ func (x *FastForwardConfig) ProtoReflect() protoreflect.Message { // Deprecated: Use FastForwardConfig.ProtoReflect.Descriptor instead. func (*FastForwardConfig) Descriptor() ([]byte, []int) { - return file_temporal_api_common_v1_message_proto_rawDescGZIP(), []int{22} + return file_temporal_api_common_v1_message_proto_rawDescGZIP(), []int{23} } func (x *FastForwardConfig) GetId() string { @@ -1701,7 +1792,7 @@ type TimeSkippingStatePropagation struct { func (x *TimeSkippingStatePropagation) Reset() { *x = TimeSkippingStatePropagation{} - mi := &file_temporal_api_common_v1_message_proto_msgTypes[23] + mi := &file_temporal_api_common_v1_message_proto_msgTypes[24] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1713,7 +1804,7 @@ func (x *TimeSkippingStatePropagation) String() string { func (*TimeSkippingStatePropagation) ProtoMessage() {} func (x *TimeSkippingStatePropagation) ProtoReflect() protoreflect.Message { - mi := &file_temporal_api_common_v1_message_proto_msgTypes[23] + mi := &file_temporal_api_common_v1_message_proto_msgTypes[24] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1726,7 +1817,7 @@ func (x *TimeSkippingStatePropagation) ProtoReflect() protoreflect.Message { // Deprecated: Use TimeSkippingStatePropagation.ProtoReflect.Descriptor instead. func (*TimeSkippingStatePropagation) Descriptor() ([]byte, []int) { - return file_temporal_api_common_v1_message_proto_rawDescGZIP(), []int{23} + return file_temporal_api_common_v1_message_proto_rawDescGZIP(), []int{24} } func (x *TimeSkippingStatePropagation) GetInitialSkippedDuration() *durationpb.Duration { @@ -1772,7 +1863,7 @@ type TimeSkippingInfo struct { func (x *TimeSkippingInfo) Reset() { *x = TimeSkippingInfo{} - mi := &file_temporal_api_common_v1_message_proto_msgTypes[24] + mi := &file_temporal_api_common_v1_message_proto_msgTypes[25] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1784,7 +1875,7 @@ func (x *TimeSkippingInfo) String() string { func (*TimeSkippingInfo) ProtoMessage() {} func (x *TimeSkippingInfo) ProtoReflect() protoreflect.Message { - mi := &file_temporal_api_common_v1_message_proto_msgTypes[24] + mi := &file_temporal_api_common_v1_message_proto_msgTypes[25] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1797,7 +1888,7 @@ func (x *TimeSkippingInfo) ProtoReflect() protoreflect.Message { // Deprecated: Use TimeSkippingInfo.ProtoReflect.Descriptor instead. func (*TimeSkippingInfo) Descriptor() ([]byte, []int) { - return file_temporal_api_common_v1_message_proto_rawDescGZIP(), []int{24} + return file_temporal_api_common_v1_message_proto_rawDescGZIP(), []int{25} } func (x *TimeSkippingInfo) GetCurrentTime() *timestamppb.Timestamp { @@ -1845,7 +1936,7 @@ type TimeSkippingFastForwardInfo struct { func (x *TimeSkippingFastForwardInfo) Reset() { *x = TimeSkippingFastForwardInfo{} - mi := &file_temporal_api_common_v1_message_proto_msgTypes[25] + mi := &file_temporal_api_common_v1_message_proto_msgTypes[26] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1857,7 +1948,7 @@ func (x *TimeSkippingFastForwardInfo) String() string { func (*TimeSkippingFastForwardInfo) ProtoMessage() {} func (x *TimeSkippingFastForwardInfo) ProtoReflect() protoreflect.Message { - mi := &file_temporal_api_common_v1_message_proto_msgTypes[25] + mi := &file_temporal_api_common_v1_message_proto_msgTypes[26] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1870,7 +1961,7 @@ func (x *TimeSkippingFastForwardInfo) ProtoReflect() protoreflect.Message { // Deprecated: Use TimeSkippingFastForwardInfo.ProtoReflect.Descriptor instead. func (*TimeSkippingFastForwardInfo) Descriptor() ([]byte, []int) { - return file_temporal_api_common_v1_message_proto_rawDescGZIP(), []int{25} + return file_temporal_api_common_v1_message_proto_rawDescGZIP(), []int{26} } func (x *TimeSkippingFastForwardInfo) GetFastForwardDuration() *durationpb.Duration { @@ -1912,7 +2003,7 @@ type Payload_ExternalPayloadDetails struct { func (x *Payload_ExternalPayloadDetails) Reset() { *x = Payload_ExternalPayloadDetails{} - mi := &file_temporal_api_common_v1_message_proto_msgTypes[27] + mi := &file_temporal_api_common_v1_message_proto_msgTypes[28] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1924,7 +2015,7 @@ func (x *Payload_ExternalPayloadDetails) String() string { func (*Payload_ExternalPayloadDetails) ProtoMessage() {} func (x *Payload_ExternalPayloadDetails) ProtoReflect() protoreflect.Message { - mi := &file_temporal_api_common_v1_message_proto_msgTypes[27] + mi := &file_temporal_api_common_v1_message_proto_msgTypes[28] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1959,7 +2050,7 @@ type Callback_Nexus struct { func (x *Callback_Nexus) Reset() { *x = Callback_Nexus{} - mi := &file_temporal_api_common_v1_message_proto_msgTypes[31] + mi := &file_temporal_api_common_v1_message_proto_msgTypes[32] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1971,7 +2062,7 @@ func (x *Callback_Nexus) String() string { func (*Callback_Nexus) ProtoMessage() {} func (x *Callback_Nexus) ProtoReflect() protoreflect.Message { - mi := &file_temporal_api_common_v1_message_proto_msgTypes[31] + mi := &file_temporal_api_common_v1_message_proto_msgTypes[32] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1984,7 +2075,7 @@ func (x *Callback_Nexus) ProtoReflect() protoreflect.Message { // Deprecated: Use Callback_Nexus.ProtoReflect.Descriptor instead. func (*Callback_Nexus) Descriptor() ([]byte, []int) { - return file_temporal_api_common_v1_message_proto_rawDescGZIP(), []int{15, 0} + return file_temporal_api_common_v1_message_proto_rawDescGZIP(), []int{16, 0} } func (x *Callback_Nexus) GetUrl() string { @@ -2015,7 +2106,7 @@ type Callback_Internal struct { func (x *Callback_Internal) Reset() { *x = Callback_Internal{} - mi := &file_temporal_api_common_v1_message_proto_msgTypes[32] + mi := &file_temporal_api_common_v1_message_proto_msgTypes[33] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2027,7 +2118,7 @@ func (x *Callback_Internal) String() string { func (*Callback_Internal) ProtoMessage() {} func (x *Callback_Internal) ProtoReflect() protoreflect.Message { - mi := &file_temporal_api_common_v1_message_proto_msgTypes[32] + mi := &file_temporal_api_common_v1_message_proto_msgTypes[33] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2040,7 +2131,7 @@ func (x *Callback_Internal) ProtoReflect() protoreflect.Message { // Deprecated: Use Callback_Internal.ProtoReflect.Descriptor instead. func (*Callback_Internal) Descriptor() ([]byte, []int) { - return file_temporal_api_common_v1_message_proto_rawDescGZIP(), []int{15, 1} + return file_temporal_api_common_v1_message_proto_rawDescGZIP(), []int{16, 1} } func (x *Callback_Internal) GetData() []byte { @@ -2069,7 +2160,7 @@ type Link_WorkflowEvent struct { func (x *Link_WorkflowEvent) Reset() { *x = Link_WorkflowEvent{} - mi := &file_temporal_api_common_v1_message_proto_msgTypes[34] + mi := &file_temporal_api_common_v1_message_proto_msgTypes[35] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2081,7 +2172,7 @@ func (x *Link_WorkflowEvent) String() string { func (*Link_WorkflowEvent) ProtoMessage() {} func (x *Link_WorkflowEvent) ProtoReflect() protoreflect.Message { - mi := &file_temporal_api_common_v1_message_proto_msgTypes[34] + mi := &file_temporal_api_common_v1_message_proto_msgTypes[35] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2094,7 +2185,7 @@ func (x *Link_WorkflowEvent) ProtoReflect() protoreflect.Message { // Deprecated: Use Link_WorkflowEvent.ProtoReflect.Descriptor instead. func (*Link_WorkflowEvent) Descriptor() ([]byte, []int) { - return file_temporal_api_common_v1_message_proto_rawDescGZIP(), []int{16, 0} + return file_temporal_api_common_v1_message_proto_rawDescGZIP(), []int{17, 0} } func (x *Link_WorkflowEvent) GetNamespace() string { @@ -2171,7 +2262,7 @@ type Link_BatchJob struct { func (x *Link_BatchJob) Reset() { *x = Link_BatchJob{} - mi := &file_temporal_api_common_v1_message_proto_msgTypes[35] + mi := &file_temporal_api_common_v1_message_proto_msgTypes[36] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2183,7 +2274,7 @@ func (x *Link_BatchJob) String() string { func (*Link_BatchJob) ProtoMessage() {} func (x *Link_BatchJob) ProtoReflect() protoreflect.Message { - mi := &file_temporal_api_common_v1_message_proto_msgTypes[35] + mi := &file_temporal_api_common_v1_message_proto_msgTypes[36] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2196,7 +2287,7 @@ func (x *Link_BatchJob) ProtoReflect() protoreflect.Message { // Deprecated: Use Link_BatchJob.ProtoReflect.Descriptor instead. func (*Link_BatchJob) Descriptor() ([]byte, []int) { - return file_temporal_api_common_v1_message_proto_rawDescGZIP(), []int{16, 1} + return file_temporal_api_common_v1_message_proto_rawDescGZIP(), []int{17, 1} } func (x *Link_BatchJob) GetJobId() string { @@ -2218,7 +2309,7 @@ type Link_Activity struct { func (x *Link_Activity) Reset() { *x = Link_Activity{} - mi := &file_temporal_api_common_v1_message_proto_msgTypes[36] + mi := &file_temporal_api_common_v1_message_proto_msgTypes[37] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2230,7 +2321,7 @@ func (x *Link_Activity) String() string { func (*Link_Activity) ProtoMessage() {} func (x *Link_Activity) ProtoReflect() protoreflect.Message { - mi := &file_temporal_api_common_v1_message_proto_msgTypes[36] + mi := &file_temporal_api_common_v1_message_proto_msgTypes[37] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2243,7 +2334,7 @@ func (x *Link_Activity) ProtoReflect() protoreflect.Message { // Deprecated: Use Link_Activity.ProtoReflect.Descriptor instead. func (*Link_Activity) Descriptor() ([]byte, []int) { - return file_temporal_api_common_v1_message_proto_rawDescGZIP(), []int{16, 2} + return file_temporal_api_common_v1_message_proto_rawDescGZIP(), []int{17, 2} } func (x *Link_Activity) GetNamespace() string { @@ -2279,7 +2370,7 @@ type Link_NexusOperation struct { func (x *Link_NexusOperation) Reset() { *x = Link_NexusOperation{} - mi := &file_temporal_api_common_v1_message_proto_msgTypes[37] + mi := &file_temporal_api_common_v1_message_proto_msgTypes[38] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2291,7 +2382,7 @@ func (x *Link_NexusOperation) String() string { func (*Link_NexusOperation) ProtoMessage() {} func (x *Link_NexusOperation) ProtoReflect() protoreflect.Message { - mi := &file_temporal_api_common_v1_message_proto_msgTypes[37] + mi := &file_temporal_api_common_v1_message_proto_msgTypes[38] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2304,7 +2395,7 @@ func (x *Link_NexusOperation) ProtoReflect() protoreflect.Message { // Deprecated: Use Link_NexusOperation.ProtoReflect.Descriptor instead. func (*Link_NexusOperation) Descriptor() ([]byte, []int) { - return file_temporal_api_common_v1_message_proto_rawDescGZIP(), []int{16, 3} + return file_temporal_api_common_v1_message_proto_rawDescGZIP(), []int{17, 3} } func (x *Link_NexusOperation) GetNamespace() string { @@ -2343,7 +2434,7 @@ type Link_Workflow struct { func (x *Link_Workflow) Reset() { *x = Link_Workflow{} - mi := &file_temporal_api_common_v1_message_proto_msgTypes[38] + mi := &file_temporal_api_common_v1_message_proto_msgTypes[39] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2355,7 +2446,7 @@ func (x *Link_Workflow) String() string { func (*Link_Workflow) ProtoMessage() {} func (x *Link_Workflow) ProtoReflect() protoreflect.Message { - mi := &file_temporal_api_common_v1_message_proto_msgTypes[38] + mi := &file_temporal_api_common_v1_message_proto_msgTypes[39] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2368,7 +2459,7 @@ func (x *Link_Workflow) ProtoReflect() protoreflect.Message { // Deprecated: Use Link_Workflow.ProtoReflect.Descriptor instead. func (*Link_Workflow) Descriptor() ([]byte, []int) { - return file_temporal_api_common_v1_message_proto_rawDescGZIP(), []int{16, 4} + return file_temporal_api_common_v1_message_proto_rawDescGZIP(), []int{17, 4} } func (x *Link_Workflow) GetNamespace() string { @@ -2410,7 +2501,7 @@ type Link_WorkflowEvent_EventReference struct { func (x *Link_WorkflowEvent_EventReference) Reset() { *x = Link_WorkflowEvent_EventReference{} - mi := &file_temporal_api_common_v1_message_proto_msgTypes[39] + mi := &file_temporal_api_common_v1_message_proto_msgTypes[40] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2422,7 +2513,7 @@ func (x *Link_WorkflowEvent_EventReference) String() string { func (*Link_WorkflowEvent_EventReference) ProtoMessage() {} func (x *Link_WorkflowEvent_EventReference) ProtoReflect() protoreflect.Message { - mi := &file_temporal_api_common_v1_message_proto_msgTypes[39] + mi := &file_temporal_api_common_v1_message_proto_msgTypes[40] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2435,7 +2526,7 @@ func (x *Link_WorkflowEvent_EventReference) ProtoReflect() protoreflect.Message // Deprecated: Use Link_WorkflowEvent_EventReference.ProtoReflect.Descriptor instead. func (*Link_WorkflowEvent_EventReference) Descriptor() ([]byte, []int) { - return file_temporal_api_common_v1_message_proto_rawDescGZIP(), []int{16, 0, 0} + return file_temporal_api_common_v1_message_proto_rawDescGZIP(), []int{17, 0, 0} } func (x *Link_WorkflowEvent_EventReference) GetEventId() int64 { @@ -2463,7 +2554,7 @@ type Link_WorkflowEvent_RequestIdReference struct { func (x *Link_WorkflowEvent_RequestIdReference) Reset() { *x = Link_WorkflowEvent_RequestIdReference{} - mi := &file_temporal_api_common_v1_message_proto_msgTypes[40] + mi := &file_temporal_api_common_v1_message_proto_msgTypes[41] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2475,7 +2566,7 @@ func (x *Link_WorkflowEvent_RequestIdReference) String() string { func (*Link_WorkflowEvent_RequestIdReference) ProtoMessage() {} func (x *Link_WorkflowEvent_RequestIdReference) ProtoReflect() protoreflect.Message { - mi := &file_temporal_api_common_v1_message_proto_msgTypes[40] + mi := &file_temporal_api_common_v1_message_proto_msgTypes[41] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2488,7 +2579,7 @@ func (x *Link_WorkflowEvent_RequestIdReference) ProtoReflect() protoreflect.Mess // Deprecated: Use Link_WorkflowEvent_RequestIdReference.ProtoReflect.Descriptor instead. func (*Link_WorkflowEvent_RequestIdReference) Descriptor() ([]byte, []int) { - return file_temporal_api_common_v1_message_proto_rawDescGZIP(), []int{16, 0, 1} + return file_temporal_api_common_v1_message_proto_rawDescGZIP(), []int{17, 0, 1} } func (x *Link_WorkflowEvent_RequestIdReference) GetRequestId() string { @@ -2509,7 +2600,7 @@ var File_temporal_api_common_v1_message_proto protoreflect.FileDescriptor const file_temporal_api_common_v1_message_proto_rawDesc = "" + "\n" + - "$temporal/api/common/v1/message.proto\x12\x16temporal.api.common.v1\x1a\x1egoogle/protobuf/duration.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\"temporal/api/enums/v1/common.proto\x1a&temporal/api/enums/v1/event_type.proto\x1a!temporal/api/enums/v1/reset.proto\"h\n" + + "$temporal/api/common/v1/message.proto\x12\x16temporal.api.common.v1\x1a\x1egoogle/protobuf/duration.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\"temporal/api/enums/v1/common.proto\x1a$temporal/api/enums/v1/activity.proto\x1a&temporal/api/enums/v1/event_type.proto\x1a!temporal/api/enums/v1/reset.proto\x1a$temporal/api/enums/v1/workflow.proto\"h\n" + "\bDataBlob\x12H\n" + "\rencoding_type\x18\x01 \x01(\x0e2#.temporal.api.enums.v1.EncodingTypeR\fencodingType\x12\x12\n" + "\x04data\x18\x02 \x01(\fR\x04data\"G\n" + @@ -2548,7 +2639,12 @@ const file_temporal_api_common_v1_message_proto_rawDesc = "" + "\x04type\x18\x01 \x01(\x0e2$.temporal.api.enums.v1.ExecutionTypeR\x04type\x12\x1f\n" + "\vbusiness_id\x18\x02 \x01(\tR\n" + "businessId\x12\x15\n" + - "\x06run_id\x18\x03 \x01(\tR\x05runId\"\"\n" + + "\x06run_id\x18\x03 \x01(\tR\x05runId\"\x98\x02\n" + + "\x15ActionExecutionResult\x12?\n" + + "\texecution\x18\x01 \x01(\v2!.temporal.api.common.v1.ExecutionR\texecution\x12Y\n" + + "\x0fworkflow_status\x18\x02 \x01(\x0e2..temporal.api.enums.v1.WorkflowExecutionStatusH\x00R\x0eworkflowStatus\x12Y\n" + + "\x0factivity_status\x18\x03 \x01(\x0e2..temporal.api.enums.v1.ActivityExecutionStatusH\x00R\x0eactivityStatusB\b\n" + + "\x06status\"\"\n" + "\fWorkflowType\x12\x12\n" + "\x04name\x18\x01 \x01(\tR\x04name\"\"\n" + "\fActivityType\x12\x12\n" + @@ -2685,103 +2781,109 @@ func file_temporal_api_common_v1_message_proto_rawDescGZIP() []byte { return file_temporal_api_common_v1_message_proto_rawDescData } -var file_temporal_api_common_v1_message_proto_msgTypes = make([]protoimpl.MessageInfo, 41) +var file_temporal_api_common_v1_message_proto_msgTypes = make([]protoimpl.MessageInfo, 42) var file_temporal_api_common_v1_message_proto_goTypes = []any{ - (*DataBlob)(nil), // 0: temporal.api.common.v1.DataBlob - (*Payloads)(nil), // 1: temporal.api.common.v1.Payloads - (*Payload)(nil), // 2: temporal.api.common.v1.Payload - (*SearchAttributes)(nil), // 3: temporal.api.common.v1.SearchAttributes - (*Memo)(nil), // 4: temporal.api.common.v1.Memo - (*Header)(nil), // 5: temporal.api.common.v1.Header - (*WorkflowExecution)(nil), // 6: temporal.api.common.v1.WorkflowExecution - (*Execution)(nil), // 7: temporal.api.common.v1.Execution - (*WorkflowType)(nil), // 8: temporal.api.common.v1.WorkflowType - (*ActivityType)(nil), // 9: temporal.api.common.v1.ActivityType - (*RetryPolicy)(nil), // 10: temporal.api.common.v1.RetryPolicy - (*MeteringMetadata)(nil), // 11: temporal.api.common.v1.MeteringMetadata - (*WorkerVersionStamp)(nil), // 12: temporal.api.common.v1.WorkerVersionStamp - (*WorkerVersionCapabilities)(nil), // 13: temporal.api.common.v1.WorkerVersionCapabilities - (*ResetOptions)(nil), // 14: temporal.api.common.v1.ResetOptions - (*Callback)(nil), // 15: temporal.api.common.v1.Callback - (*Link)(nil), // 16: temporal.api.common.v1.Link - (*Principal)(nil), // 17: temporal.api.common.v1.Principal - (*Priority)(nil), // 18: temporal.api.common.v1.Priority - (*WorkerSelector)(nil), // 19: temporal.api.common.v1.WorkerSelector - (*OnConflictOptions)(nil), // 20: temporal.api.common.v1.OnConflictOptions - (*TimeSkippingConfig)(nil), // 21: temporal.api.common.v1.TimeSkippingConfig - (*FastForwardConfig)(nil), // 22: temporal.api.common.v1.FastForwardConfig - (*TimeSkippingStatePropagation)(nil), // 23: temporal.api.common.v1.TimeSkippingStatePropagation - (*TimeSkippingInfo)(nil), // 24: temporal.api.common.v1.TimeSkippingInfo - (*TimeSkippingFastForwardInfo)(nil), // 25: temporal.api.common.v1.TimeSkippingFastForwardInfo - nil, // 26: temporal.api.common.v1.Payload.MetadataEntry - (*Payload_ExternalPayloadDetails)(nil), // 27: temporal.api.common.v1.Payload.ExternalPayloadDetails - nil, // 28: temporal.api.common.v1.SearchAttributes.IndexedFieldsEntry - nil, // 29: temporal.api.common.v1.Memo.FieldsEntry - nil, // 30: temporal.api.common.v1.Header.FieldsEntry - (*Callback_Nexus)(nil), // 31: temporal.api.common.v1.Callback.Nexus - (*Callback_Internal)(nil), // 32: temporal.api.common.v1.Callback.Internal - nil, // 33: temporal.api.common.v1.Callback.Nexus.HeaderEntry - (*Link_WorkflowEvent)(nil), // 34: temporal.api.common.v1.Link.WorkflowEvent - (*Link_BatchJob)(nil), // 35: temporal.api.common.v1.Link.BatchJob - (*Link_Activity)(nil), // 36: temporal.api.common.v1.Link.Activity - (*Link_NexusOperation)(nil), // 37: temporal.api.common.v1.Link.NexusOperation - (*Link_Workflow)(nil), // 38: temporal.api.common.v1.Link.Workflow - (*Link_WorkflowEvent_EventReference)(nil), // 39: temporal.api.common.v1.Link.WorkflowEvent.EventReference - (*Link_WorkflowEvent_RequestIdReference)(nil), // 40: temporal.api.common.v1.Link.WorkflowEvent.RequestIdReference - (v1.EncodingType)(0), // 41: temporal.api.enums.v1.EncodingType - (v1.ExecutionType)(0), // 42: temporal.api.enums.v1.ExecutionType - (*durationpb.Duration)(nil), // 43: google.protobuf.Duration - (*emptypb.Empty)(nil), // 44: google.protobuf.Empty - (v1.ResetReapplyType)(0), // 45: temporal.api.enums.v1.ResetReapplyType - (v1.ResetReapplyExcludeType)(0), // 46: temporal.api.enums.v1.ResetReapplyExcludeType - (*timestamppb.Timestamp)(nil), // 47: google.protobuf.Timestamp - (v1.EventType)(0), // 48: temporal.api.enums.v1.EventType + (*DataBlob)(nil), // 0: temporal.api.common.v1.DataBlob + (*Payloads)(nil), // 1: temporal.api.common.v1.Payloads + (*Payload)(nil), // 2: temporal.api.common.v1.Payload + (*SearchAttributes)(nil), // 3: temporal.api.common.v1.SearchAttributes + (*Memo)(nil), // 4: temporal.api.common.v1.Memo + (*Header)(nil), // 5: temporal.api.common.v1.Header + (*WorkflowExecution)(nil), // 6: temporal.api.common.v1.WorkflowExecution + (*Execution)(nil), // 7: temporal.api.common.v1.Execution + (*ActionExecutionResult)(nil), // 8: temporal.api.common.v1.ActionExecutionResult + (*WorkflowType)(nil), // 9: temporal.api.common.v1.WorkflowType + (*ActivityType)(nil), // 10: temporal.api.common.v1.ActivityType + (*RetryPolicy)(nil), // 11: temporal.api.common.v1.RetryPolicy + (*MeteringMetadata)(nil), // 12: temporal.api.common.v1.MeteringMetadata + (*WorkerVersionStamp)(nil), // 13: temporal.api.common.v1.WorkerVersionStamp + (*WorkerVersionCapabilities)(nil), // 14: temporal.api.common.v1.WorkerVersionCapabilities + (*ResetOptions)(nil), // 15: temporal.api.common.v1.ResetOptions + (*Callback)(nil), // 16: temporal.api.common.v1.Callback + (*Link)(nil), // 17: temporal.api.common.v1.Link + (*Principal)(nil), // 18: temporal.api.common.v1.Principal + (*Priority)(nil), // 19: temporal.api.common.v1.Priority + (*WorkerSelector)(nil), // 20: temporal.api.common.v1.WorkerSelector + (*OnConflictOptions)(nil), // 21: temporal.api.common.v1.OnConflictOptions + (*TimeSkippingConfig)(nil), // 22: temporal.api.common.v1.TimeSkippingConfig + (*FastForwardConfig)(nil), // 23: temporal.api.common.v1.FastForwardConfig + (*TimeSkippingStatePropagation)(nil), // 24: temporal.api.common.v1.TimeSkippingStatePropagation + (*TimeSkippingInfo)(nil), // 25: temporal.api.common.v1.TimeSkippingInfo + (*TimeSkippingFastForwardInfo)(nil), // 26: temporal.api.common.v1.TimeSkippingFastForwardInfo + nil, // 27: temporal.api.common.v1.Payload.MetadataEntry + (*Payload_ExternalPayloadDetails)(nil), // 28: temporal.api.common.v1.Payload.ExternalPayloadDetails + nil, // 29: temporal.api.common.v1.SearchAttributes.IndexedFieldsEntry + nil, // 30: temporal.api.common.v1.Memo.FieldsEntry + nil, // 31: temporal.api.common.v1.Header.FieldsEntry + (*Callback_Nexus)(nil), // 32: temporal.api.common.v1.Callback.Nexus + (*Callback_Internal)(nil), // 33: temporal.api.common.v1.Callback.Internal + nil, // 34: temporal.api.common.v1.Callback.Nexus.HeaderEntry + (*Link_WorkflowEvent)(nil), // 35: temporal.api.common.v1.Link.WorkflowEvent + (*Link_BatchJob)(nil), // 36: temporal.api.common.v1.Link.BatchJob + (*Link_Activity)(nil), // 37: temporal.api.common.v1.Link.Activity + (*Link_NexusOperation)(nil), // 38: temporal.api.common.v1.Link.NexusOperation + (*Link_Workflow)(nil), // 39: temporal.api.common.v1.Link.Workflow + (*Link_WorkflowEvent_EventReference)(nil), // 40: temporal.api.common.v1.Link.WorkflowEvent.EventReference + (*Link_WorkflowEvent_RequestIdReference)(nil), // 41: temporal.api.common.v1.Link.WorkflowEvent.RequestIdReference + (v1.EncodingType)(0), // 42: temporal.api.enums.v1.EncodingType + (v1.ExecutionType)(0), // 43: temporal.api.enums.v1.ExecutionType + (v1.WorkflowExecutionStatus)(0), // 44: temporal.api.enums.v1.WorkflowExecutionStatus + (v1.ActivityExecutionStatus)(0), // 45: temporal.api.enums.v1.ActivityExecutionStatus + (*durationpb.Duration)(nil), // 46: google.protobuf.Duration + (*emptypb.Empty)(nil), // 47: google.protobuf.Empty + (v1.ResetReapplyType)(0), // 48: temporal.api.enums.v1.ResetReapplyType + (v1.ResetReapplyExcludeType)(0), // 49: temporal.api.enums.v1.ResetReapplyExcludeType + (*timestamppb.Timestamp)(nil), // 50: google.protobuf.Timestamp + (v1.EventType)(0), // 51: temporal.api.enums.v1.EventType } var file_temporal_api_common_v1_message_proto_depIdxs = []int32{ - 41, // 0: temporal.api.common.v1.DataBlob.encoding_type:type_name -> temporal.api.enums.v1.EncodingType + 42, // 0: temporal.api.common.v1.DataBlob.encoding_type:type_name -> temporal.api.enums.v1.EncodingType 2, // 1: temporal.api.common.v1.Payloads.payloads:type_name -> temporal.api.common.v1.Payload - 26, // 2: temporal.api.common.v1.Payload.metadata:type_name -> temporal.api.common.v1.Payload.MetadataEntry - 27, // 3: temporal.api.common.v1.Payload.external_payloads:type_name -> temporal.api.common.v1.Payload.ExternalPayloadDetails - 28, // 4: temporal.api.common.v1.SearchAttributes.indexed_fields:type_name -> temporal.api.common.v1.SearchAttributes.IndexedFieldsEntry - 29, // 5: temporal.api.common.v1.Memo.fields:type_name -> temporal.api.common.v1.Memo.FieldsEntry - 30, // 6: temporal.api.common.v1.Header.fields:type_name -> temporal.api.common.v1.Header.FieldsEntry - 42, // 7: temporal.api.common.v1.Execution.type:type_name -> temporal.api.enums.v1.ExecutionType - 43, // 8: temporal.api.common.v1.RetryPolicy.initial_interval:type_name -> google.protobuf.Duration - 43, // 9: temporal.api.common.v1.RetryPolicy.maximum_interval:type_name -> google.protobuf.Duration - 44, // 10: temporal.api.common.v1.ResetOptions.first_workflow_task:type_name -> google.protobuf.Empty - 44, // 11: temporal.api.common.v1.ResetOptions.last_workflow_task:type_name -> google.protobuf.Empty - 45, // 12: temporal.api.common.v1.ResetOptions.reset_reapply_type:type_name -> temporal.api.enums.v1.ResetReapplyType - 46, // 13: temporal.api.common.v1.ResetOptions.reset_reapply_exclude_types:type_name -> temporal.api.enums.v1.ResetReapplyExcludeType - 31, // 14: temporal.api.common.v1.Callback.nexus:type_name -> temporal.api.common.v1.Callback.Nexus - 32, // 15: temporal.api.common.v1.Callback.internal:type_name -> temporal.api.common.v1.Callback.Internal - 16, // 16: temporal.api.common.v1.Callback.links:type_name -> temporal.api.common.v1.Link - 34, // 17: temporal.api.common.v1.Link.workflow_event:type_name -> temporal.api.common.v1.Link.WorkflowEvent - 35, // 18: temporal.api.common.v1.Link.batch_job:type_name -> temporal.api.common.v1.Link.BatchJob - 36, // 19: temporal.api.common.v1.Link.activity:type_name -> temporal.api.common.v1.Link.Activity - 37, // 20: temporal.api.common.v1.Link.nexus_operation:type_name -> temporal.api.common.v1.Link.NexusOperation - 38, // 21: temporal.api.common.v1.Link.workflow:type_name -> temporal.api.common.v1.Link.Workflow - 22, // 22: temporal.api.common.v1.TimeSkippingConfig.fast_forward_config:type_name -> temporal.api.common.v1.FastForwardConfig - 43, // 23: temporal.api.common.v1.FastForwardConfig.duration:type_name -> google.protobuf.Duration - 43, // 24: temporal.api.common.v1.TimeSkippingStatePropagation.initial_skipped_duration:type_name -> google.protobuf.Duration - 47, // 25: temporal.api.common.v1.TimeSkippingStatePropagation.fast_forward_target_time:type_name -> google.protobuf.Timestamp - 47, // 26: temporal.api.common.v1.TimeSkippingInfo.current_time:type_name -> google.protobuf.Timestamp - 21, // 27: temporal.api.common.v1.TimeSkippingInfo.effective_config:type_name -> temporal.api.common.v1.TimeSkippingConfig - 25, // 28: temporal.api.common.v1.TimeSkippingInfo.fast_forward_info:type_name -> temporal.api.common.v1.TimeSkippingFastForwardInfo - 43, // 29: temporal.api.common.v1.TimeSkippingFastForwardInfo.fast_forward_duration:type_name -> google.protobuf.Duration - 47, // 30: temporal.api.common.v1.TimeSkippingFastForwardInfo.target_time:type_name -> google.protobuf.Timestamp - 2, // 31: temporal.api.common.v1.SearchAttributes.IndexedFieldsEntry.value:type_name -> temporal.api.common.v1.Payload - 2, // 32: temporal.api.common.v1.Memo.FieldsEntry.value:type_name -> temporal.api.common.v1.Payload - 2, // 33: temporal.api.common.v1.Header.FieldsEntry.value:type_name -> temporal.api.common.v1.Payload - 33, // 34: temporal.api.common.v1.Callback.Nexus.header:type_name -> temporal.api.common.v1.Callback.Nexus.HeaderEntry - 39, // 35: temporal.api.common.v1.Link.WorkflowEvent.event_ref:type_name -> temporal.api.common.v1.Link.WorkflowEvent.EventReference - 40, // 36: temporal.api.common.v1.Link.WorkflowEvent.request_id_ref:type_name -> temporal.api.common.v1.Link.WorkflowEvent.RequestIdReference - 48, // 37: temporal.api.common.v1.Link.WorkflowEvent.EventReference.event_type:type_name -> temporal.api.enums.v1.EventType - 48, // 38: temporal.api.common.v1.Link.WorkflowEvent.RequestIdReference.event_type:type_name -> temporal.api.enums.v1.EventType - 39, // [39:39] is the sub-list for method output_type - 39, // [39:39] is the sub-list for method input_type - 39, // [39:39] is the sub-list for extension type_name - 39, // [39:39] is the sub-list for extension extendee - 0, // [0:39] is the sub-list for field type_name + 27, // 2: temporal.api.common.v1.Payload.metadata:type_name -> temporal.api.common.v1.Payload.MetadataEntry + 28, // 3: temporal.api.common.v1.Payload.external_payloads:type_name -> temporal.api.common.v1.Payload.ExternalPayloadDetails + 29, // 4: temporal.api.common.v1.SearchAttributes.indexed_fields:type_name -> temporal.api.common.v1.SearchAttributes.IndexedFieldsEntry + 30, // 5: temporal.api.common.v1.Memo.fields:type_name -> temporal.api.common.v1.Memo.FieldsEntry + 31, // 6: temporal.api.common.v1.Header.fields:type_name -> temporal.api.common.v1.Header.FieldsEntry + 43, // 7: temporal.api.common.v1.Execution.type:type_name -> temporal.api.enums.v1.ExecutionType + 7, // 8: temporal.api.common.v1.ActionExecutionResult.execution:type_name -> temporal.api.common.v1.Execution + 44, // 9: temporal.api.common.v1.ActionExecutionResult.workflow_status:type_name -> temporal.api.enums.v1.WorkflowExecutionStatus + 45, // 10: temporal.api.common.v1.ActionExecutionResult.activity_status:type_name -> temporal.api.enums.v1.ActivityExecutionStatus + 46, // 11: temporal.api.common.v1.RetryPolicy.initial_interval:type_name -> google.protobuf.Duration + 46, // 12: temporal.api.common.v1.RetryPolicy.maximum_interval:type_name -> google.protobuf.Duration + 47, // 13: temporal.api.common.v1.ResetOptions.first_workflow_task:type_name -> google.protobuf.Empty + 47, // 14: temporal.api.common.v1.ResetOptions.last_workflow_task:type_name -> google.protobuf.Empty + 48, // 15: temporal.api.common.v1.ResetOptions.reset_reapply_type:type_name -> temporal.api.enums.v1.ResetReapplyType + 49, // 16: temporal.api.common.v1.ResetOptions.reset_reapply_exclude_types:type_name -> temporal.api.enums.v1.ResetReapplyExcludeType + 32, // 17: temporal.api.common.v1.Callback.nexus:type_name -> temporal.api.common.v1.Callback.Nexus + 33, // 18: temporal.api.common.v1.Callback.internal:type_name -> temporal.api.common.v1.Callback.Internal + 17, // 19: temporal.api.common.v1.Callback.links:type_name -> temporal.api.common.v1.Link + 35, // 20: temporal.api.common.v1.Link.workflow_event:type_name -> temporal.api.common.v1.Link.WorkflowEvent + 36, // 21: temporal.api.common.v1.Link.batch_job:type_name -> temporal.api.common.v1.Link.BatchJob + 37, // 22: temporal.api.common.v1.Link.activity:type_name -> temporal.api.common.v1.Link.Activity + 38, // 23: temporal.api.common.v1.Link.nexus_operation:type_name -> temporal.api.common.v1.Link.NexusOperation + 39, // 24: temporal.api.common.v1.Link.workflow:type_name -> temporal.api.common.v1.Link.Workflow + 23, // 25: temporal.api.common.v1.TimeSkippingConfig.fast_forward_config:type_name -> temporal.api.common.v1.FastForwardConfig + 46, // 26: temporal.api.common.v1.FastForwardConfig.duration:type_name -> google.protobuf.Duration + 46, // 27: temporal.api.common.v1.TimeSkippingStatePropagation.initial_skipped_duration:type_name -> google.protobuf.Duration + 50, // 28: temporal.api.common.v1.TimeSkippingStatePropagation.fast_forward_target_time:type_name -> google.protobuf.Timestamp + 50, // 29: temporal.api.common.v1.TimeSkippingInfo.current_time:type_name -> google.protobuf.Timestamp + 22, // 30: temporal.api.common.v1.TimeSkippingInfo.effective_config:type_name -> temporal.api.common.v1.TimeSkippingConfig + 26, // 31: temporal.api.common.v1.TimeSkippingInfo.fast_forward_info:type_name -> temporal.api.common.v1.TimeSkippingFastForwardInfo + 46, // 32: temporal.api.common.v1.TimeSkippingFastForwardInfo.fast_forward_duration:type_name -> google.protobuf.Duration + 50, // 33: temporal.api.common.v1.TimeSkippingFastForwardInfo.target_time:type_name -> google.protobuf.Timestamp + 2, // 34: temporal.api.common.v1.SearchAttributes.IndexedFieldsEntry.value:type_name -> temporal.api.common.v1.Payload + 2, // 35: temporal.api.common.v1.Memo.FieldsEntry.value:type_name -> temporal.api.common.v1.Payload + 2, // 36: temporal.api.common.v1.Header.FieldsEntry.value:type_name -> temporal.api.common.v1.Payload + 34, // 37: temporal.api.common.v1.Callback.Nexus.header:type_name -> temporal.api.common.v1.Callback.Nexus.HeaderEntry + 40, // 38: temporal.api.common.v1.Link.WorkflowEvent.event_ref:type_name -> temporal.api.common.v1.Link.WorkflowEvent.EventReference + 41, // 39: temporal.api.common.v1.Link.WorkflowEvent.request_id_ref:type_name -> temporal.api.common.v1.Link.WorkflowEvent.RequestIdReference + 51, // 40: temporal.api.common.v1.Link.WorkflowEvent.EventReference.event_type:type_name -> temporal.api.enums.v1.EventType + 51, // 41: temporal.api.common.v1.Link.WorkflowEvent.RequestIdReference.event_type:type_name -> temporal.api.enums.v1.EventType + 42, // [42:42] is the sub-list for method output_type + 42, // [42:42] is the sub-list for method input_type + 42, // [42:42] is the sub-list for extension type_name + 42, // [42:42] is the sub-list for extension extendee + 0, // [0:42] is the sub-list for field type_name } func init() { file_temporal_api_common_v1_message_proto_init() } @@ -2789,27 +2891,31 @@ func file_temporal_api_common_v1_message_proto_init() { if File_temporal_api_common_v1_message_proto != nil { return } - file_temporal_api_common_v1_message_proto_msgTypes[14].OneofWrappers = []any{ + file_temporal_api_common_v1_message_proto_msgTypes[8].OneofWrappers = []any{ + (*ActionExecutionResult_WorkflowStatus)(nil), + (*ActionExecutionResult_ActivityStatus)(nil), + } + file_temporal_api_common_v1_message_proto_msgTypes[15].OneofWrappers = []any{ (*ResetOptions_FirstWorkflowTask)(nil), (*ResetOptions_LastWorkflowTask)(nil), (*ResetOptions_WorkflowTaskId)(nil), (*ResetOptions_BuildId)(nil), } - file_temporal_api_common_v1_message_proto_msgTypes[15].OneofWrappers = []any{ + file_temporal_api_common_v1_message_proto_msgTypes[16].OneofWrappers = []any{ (*Callback_Nexus_)(nil), (*Callback_Internal_)(nil), } - file_temporal_api_common_v1_message_proto_msgTypes[16].OneofWrappers = []any{ + file_temporal_api_common_v1_message_proto_msgTypes[17].OneofWrappers = []any{ (*Link_WorkflowEvent_)(nil), (*Link_BatchJob_)(nil), (*Link_Activity_)(nil), (*Link_NexusOperation_)(nil), (*Link_Workflow_)(nil), } - file_temporal_api_common_v1_message_proto_msgTypes[19].OneofWrappers = []any{ + file_temporal_api_common_v1_message_proto_msgTypes[20].OneofWrappers = []any{ (*WorkerSelector_WorkerInstanceKey)(nil), } - file_temporal_api_common_v1_message_proto_msgTypes[34].OneofWrappers = []any{ + file_temporal_api_common_v1_message_proto_msgTypes[35].OneofWrappers = []any{ (*Link_WorkflowEvent_EventRef)(nil), (*Link_WorkflowEvent_RequestIdRef)(nil), } @@ -2819,7 +2925,7 @@ func file_temporal_api_common_v1_message_proto_init() { GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: unsafe.Slice(unsafe.StringData(file_temporal_api_common_v1_message_proto_rawDesc), len(file_temporal_api_common_v1_message_proto_rawDesc)), NumEnums: 0, - NumMessages: 41, + NumMessages: 42, NumExtensions: 0, NumServices: 0, }, diff --git a/proto/api b/proto/api index 68c7e8c7b..181d05255 160000 --- a/proto/api +++ b/proto/api @@ -1 +1 @@ -Subproject commit 68c7e8c7b361e77e9cb5d8f9b9c9bcc631382f01 +Subproject commit 181d052558a750032a1b95de96961ba9987e00fe diff --git a/schedule/v1/message.go-helpers.pb.go b/schedule/v1/message.go-helpers.pb.go index d8ab939dd..1dfd208a8 100644 --- a/schedule/v1/message.go-helpers.pb.go +++ b/schedule/v1/message.go-helpers.pb.go @@ -227,6 +227,80 @@ func (this *SchedulePolicies) Equal(that interface{}) bool { return proto.Equal(this, that1) } +// Marshal an object of type CustomOverlapPolicy to the protobuf v3 wire format +func (val *CustomOverlapPolicy) Marshal() ([]byte, error) { + return proto.Marshal(val) +} + +// Unmarshal an object of type CustomOverlapPolicy from the protobuf v3 wire format +func (val *CustomOverlapPolicy) Unmarshal(buf []byte) error { + return proto.Unmarshal(buf, val) +} + +// Size returns the size of the object, in bytes, once serialized +func (val *CustomOverlapPolicy) Size() int { + return proto.Size(val) +} + +// Equal returns whether two CustomOverlapPolicy values are equivalent by recursively +// comparing the message's fields. +// For more information see the documentation for +// https://pkg.go.dev/google.golang.org/protobuf/proto#Equal +func (this *CustomOverlapPolicy) Equal(that interface{}) bool { + if that == nil { + return this == nil + } + + var that1 *CustomOverlapPolicy + switch t := that.(type) { + case *CustomOverlapPolicy: + that1 = t + case CustomOverlapPolicy: + that1 = &t + default: + return false + } + + return proto.Equal(this, that1) +} + +// Marshal an object of type StartActivityExecutionInfo to the protobuf v3 wire format +func (val *StartActivityExecutionInfo) Marshal() ([]byte, error) { + return proto.Marshal(val) +} + +// Unmarshal an object of type StartActivityExecutionInfo from the protobuf v3 wire format +func (val *StartActivityExecutionInfo) Unmarshal(buf []byte) error { + return proto.Unmarshal(buf, val) +} + +// Size returns the size of the object, in bytes, once serialized +func (val *StartActivityExecutionInfo) Size() int { + return proto.Size(val) +} + +// Equal returns whether two StartActivityExecutionInfo values are equivalent by recursively +// comparing the message's fields. +// For more information see the documentation for +// https://pkg.go.dev/google.golang.org/protobuf/proto#Equal +func (this *StartActivityExecutionInfo) Equal(that interface{}) bool { + if that == nil { + return this == nil + } + + var that1 *StartActivityExecutionInfo + switch t := that.(type) { + case *StartActivityExecutionInfo: + that1 = t + case StartActivityExecutionInfo: + that1 = &t + default: + return false + } + + return proto.Equal(this, that1) +} + // Marshal an object of type ScheduleAction to the protobuf v3 wire format func (val *ScheduleAction) Marshal() ([]byte, error) { return proto.Marshal(val) diff --git a/schedule/v1/message.pb.go b/schedule/v1/message.pb.go index add7fe55b..236223855 100644 --- a/schedule/v1/message.pb.go +++ b/schedule/v1/message.pb.go @@ -16,9 +16,11 @@ import ( sync "sync" unsafe "unsafe" - v12 "go.temporal.io/api/common/v1" + v11 "go.temporal.io/api/common/v1" v1 "go.temporal.io/api/enums/v1" - v11 "go.temporal.io/api/workflow/v1" + v13 "go.temporal.io/api/sdk/v1" + v12 "go.temporal.io/api/taskqueue/v1" + v14 "go.temporal.io/api/workflow/v1" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" durationpb "google.golang.org/protobuf/types/known/durationpb" @@ -630,8 +632,11 @@ type SchedulePolicies struct { // If true, and the action would start a workflow, a timestamp will not be // appended to the scheduled workflow id. KeepOriginalWorkflowId bool `protobuf:"varint,4,opt,name=keep_original_workflow_id,json=keepOriginalWorkflowId,proto3" json:"keep_original_workflow_id,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache + // A named overlap policy registered by the action implementation. This may not be set together + // with overlap_policy. + CustomOverlapPolicy *CustomOverlapPolicy `protobuf:"bytes,5,opt,name=custom_overlap_policy,json=customOverlapPolicy,proto3" json:"custom_overlap_policy,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *SchedulePolicies) Reset() { @@ -692,11 +697,214 @@ func (x *SchedulePolicies) GetKeepOriginalWorkflowId() bool { return false } +func (x *SchedulePolicies) GetCustomOverlapPolicy() *CustomOverlapPolicy { + if x != nil { + return x.CustomOverlapPolicy + } + return nil +} + +// Selects an overlap policy registered by an action implementation. +type CustomOverlapPolicy struct { + state protoimpl.MessageState `protogen:"open.v1"` + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *CustomOverlapPolicy) Reset() { + *x = CustomOverlapPolicy{} + mi := &file_temporal_api_schedule_v1_message_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *CustomOverlapPolicy) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CustomOverlapPolicy) ProtoMessage() {} + +func (x *CustomOverlapPolicy) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_schedule_v1_message_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 CustomOverlapPolicy.ProtoReflect.Descriptor instead. +func (*CustomOverlapPolicy) Descriptor() ([]byte, []int) { + return file_temporal_api_schedule_v1_message_proto_rawDescGZIP(), []int{6} +} + +func (x *CustomOverlapPolicy) GetName() string { + if x != nil { + return x.Name + } + return "" +} + +// Describes a standalone activity that a schedule starts. +type StartActivityExecutionInfo struct { + state protoimpl.MessageState `protogen:"open.v1"` + // The activity ID may have a timestamp appended for uniqueness. + ActivityId string `protobuf:"bytes,1,opt,name=activity_id,json=activityId,proto3" json:"activity_id,omitempty"` + ActivityType *v11.ActivityType `protobuf:"bytes,2,opt,name=activity_type,json=activityType,proto3" json:"activity_type,omitempty"` + TaskQueue *v12.TaskQueue `protobuf:"bytes,3,opt,name=task_queue,json=taskQueue,proto3" json:"task_queue,omitempty"` + ScheduleToCloseTimeout *durationpb.Duration `protobuf:"bytes,4,opt,name=schedule_to_close_timeout,json=scheduleToCloseTimeout,proto3" json:"schedule_to_close_timeout,omitempty"` + ScheduleToStartTimeout *durationpb.Duration `protobuf:"bytes,5,opt,name=schedule_to_start_timeout,json=scheduleToStartTimeout,proto3" json:"schedule_to_start_timeout,omitempty"` + StartToCloseTimeout *durationpb.Duration `protobuf:"bytes,6,opt,name=start_to_close_timeout,json=startToCloseTimeout,proto3" json:"start_to_close_timeout,omitempty"` + HeartbeatTimeout *durationpb.Duration `protobuf:"bytes,7,opt,name=heartbeat_timeout,json=heartbeatTimeout,proto3" json:"heartbeat_timeout,omitempty"` + RetryPolicy *v11.RetryPolicy `protobuf:"bytes,8,opt,name=retry_policy,json=retryPolicy,proto3" json:"retry_policy,omitempty"` + Input *v11.Payloads `protobuf:"bytes,9,opt,name=input,proto3" json:"input,omitempty"` + SearchAttributes *v11.SearchAttributes `protobuf:"bytes,10,opt,name=search_attributes,json=searchAttributes,proto3" json:"search_attributes,omitempty"` + Header *v11.Header `protobuf:"bytes,11,opt,name=header,proto3" json:"header,omitempty"` + UserMetadata *v13.UserMetadata `protobuf:"bytes,12,opt,name=user_metadata,json=userMetadata,proto3" json:"user_metadata,omitempty"` + Priority *v11.Priority `protobuf:"bytes,13,opt,name=priority,proto3" json:"priority,omitempty"` + StartDelay *durationpb.Duration `protobuf:"bytes,14,opt,name=start_delay,json=startDelay,proto3" json:"start_delay,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *StartActivityExecutionInfo) Reset() { + *x = StartActivityExecutionInfo{} + mi := &file_temporal_api_schedule_v1_message_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *StartActivityExecutionInfo) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*StartActivityExecutionInfo) ProtoMessage() {} + +func (x *StartActivityExecutionInfo) ProtoReflect() protoreflect.Message { + mi := &file_temporal_api_schedule_v1_message_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 StartActivityExecutionInfo.ProtoReflect.Descriptor instead. +func (*StartActivityExecutionInfo) Descriptor() ([]byte, []int) { + return file_temporal_api_schedule_v1_message_proto_rawDescGZIP(), []int{7} +} + +func (x *StartActivityExecutionInfo) GetActivityId() string { + if x != nil { + return x.ActivityId + } + return "" +} + +func (x *StartActivityExecutionInfo) GetActivityType() *v11.ActivityType { + if x != nil { + return x.ActivityType + } + return nil +} + +func (x *StartActivityExecutionInfo) GetTaskQueue() *v12.TaskQueue { + if x != nil { + return x.TaskQueue + } + return nil +} + +func (x *StartActivityExecutionInfo) GetScheduleToCloseTimeout() *durationpb.Duration { + if x != nil { + return x.ScheduleToCloseTimeout + } + return nil +} + +func (x *StartActivityExecutionInfo) GetScheduleToStartTimeout() *durationpb.Duration { + if x != nil { + return x.ScheduleToStartTimeout + } + return nil +} + +func (x *StartActivityExecutionInfo) GetStartToCloseTimeout() *durationpb.Duration { + if x != nil { + return x.StartToCloseTimeout + } + return nil +} + +func (x *StartActivityExecutionInfo) GetHeartbeatTimeout() *durationpb.Duration { + if x != nil { + return x.HeartbeatTimeout + } + return nil +} + +func (x *StartActivityExecutionInfo) GetRetryPolicy() *v11.RetryPolicy { + if x != nil { + return x.RetryPolicy + } + return nil +} + +func (x *StartActivityExecutionInfo) GetInput() *v11.Payloads { + if x != nil { + return x.Input + } + return nil +} + +func (x *StartActivityExecutionInfo) GetSearchAttributes() *v11.SearchAttributes { + if x != nil { + return x.SearchAttributes + } + return nil +} + +func (x *StartActivityExecutionInfo) GetHeader() *v11.Header { + if x != nil { + return x.Header + } + return nil +} + +func (x *StartActivityExecutionInfo) GetUserMetadata() *v13.UserMetadata { + if x != nil { + return x.UserMetadata + } + return nil +} + +func (x *StartActivityExecutionInfo) GetPriority() *v11.Priority { + if x != nil { + return x.Priority + } + return nil +} + +func (x *StartActivityExecutionInfo) GetStartDelay() *durationpb.Duration { + if x != nil { + return x.StartDelay + } + return nil +} + type ScheduleAction struct { state protoimpl.MessageState `protogen:"open.v1"` // Types that are valid to be assigned to Action: // // *ScheduleAction_StartWorkflow + // *ScheduleAction_StartActivity Action isScheduleAction_Action `protobuf_oneof:"action"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache @@ -704,7 +912,7 @@ type ScheduleAction struct { func (x *ScheduleAction) Reset() { *x = ScheduleAction{} - mi := &file_temporal_api_schedule_v1_message_proto_msgTypes[6] + mi := &file_temporal_api_schedule_v1_message_proto_msgTypes[8] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -716,7 +924,7 @@ func (x *ScheduleAction) String() string { func (*ScheduleAction) ProtoMessage() {} func (x *ScheduleAction) ProtoReflect() protoreflect.Message { - mi := &file_temporal_api_schedule_v1_message_proto_msgTypes[6] + mi := &file_temporal_api_schedule_v1_message_proto_msgTypes[8] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -729,7 +937,7 @@ func (x *ScheduleAction) ProtoReflect() protoreflect.Message { // Deprecated: Use ScheduleAction.ProtoReflect.Descriptor instead. func (*ScheduleAction) Descriptor() ([]byte, []int) { - return file_temporal_api_schedule_v1_message_proto_rawDescGZIP(), []int{6} + return file_temporal_api_schedule_v1_message_proto_rawDescGZIP(), []int{8} } func (x *ScheduleAction) GetAction() isScheduleAction_Action { @@ -739,7 +947,7 @@ func (x *ScheduleAction) GetAction() isScheduleAction_Action { return nil } -func (x *ScheduleAction) GetStartWorkflow() *v11.NewWorkflowExecutionInfo { +func (x *ScheduleAction) GetStartWorkflow() *v14.NewWorkflowExecutionInfo { if x != nil { if x, ok := x.Action.(*ScheduleAction_StartWorkflow); ok { return x.StartWorkflow @@ -748,6 +956,15 @@ func (x *ScheduleAction) GetStartWorkflow() *v11.NewWorkflowExecutionInfo { return nil } +func (x *ScheduleAction) GetStartActivity() *StartActivityExecutionInfo { + if x != nil { + if x, ok := x.Action.(*ScheduleAction_StartActivity); ok { + return x.StartActivity + } + } + return nil +} + type isScheduleAction_Action interface { isScheduleAction_Action() } @@ -758,11 +975,17 @@ type ScheduleAction_StartWorkflow struct { // - cron_schedule // The workflow id of the started workflow may not match this exactly, // it may have a timestamp appended for uniqueness. - StartWorkflow *v11.NewWorkflowExecutionInfo `protobuf:"bytes,1,opt,name=start_workflow,json=startWorkflow,proto3,oneof"` + StartWorkflow *v14.NewWorkflowExecutionInfo `protobuf:"bytes,1,opt,name=start_workflow,json=startWorkflow,proto3,oneof"` +} + +type ScheduleAction_StartActivity struct { + StartActivity *StartActivityExecutionInfo `protobuf:"bytes,2,opt,name=start_activity,json=startActivity,proto3,oneof"` } func (*ScheduleAction_StartWorkflow) isScheduleAction_Action() {} +func (*ScheduleAction_StartActivity) isScheduleAction_Action() {} + type ScheduleActionResult struct { state protoimpl.MessageState `protogen:"open.v1"` // Time that the action was taken (according to the schedule, including jitter). @@ -770,17 +993,21 @@ type ScheduleActionResult struct { // Time that the action was taken (real time). ActualTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=actual_time,json=actualTime,proto3" json:"actual_time,omitempty"` // If action was start_workflow: - StartWorkflowResult *v12.WorkflowExecution `protobuf:"bytes,11,opt,name=start_workflow_result,json=startWorkflowResult,proto3" json:"start_workflow_result,omitempty"` + StartWorkflowResult *v11.WorkflowExecution `protobuf:"bytes,11,opt,name=start_workflow_result,json=startWorkflowResult,proto3" json:"start_workflow_result,omitempty"` // If the action was start_workflow, this field will reflect an // eventually-consistent view of the started workflow's status. StartWorkflowStatus v1.WorkflowExecutionStatus `protobuf:"varint,12,opt,name=start_workflow_status,json=startWorkflowStatus,proto3,enum=temporal.api.enums.v1.WorkflowExecutionStatus" json:"start_workflow_status,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache + // The execution started by this action and its current status. + ActionExecutionResult *v11.ActionExecutionResult `protobuf:"bytes,13,opt,name=action_execution_result,json=actionExecutionResult,proto3" json:"action_execution_result,omitempty"` + // Time the execution reached a terminal status, if known. + CloseTime *timestamppb.Timestamp `protobuf:"bytes,14,opt,name=close_time,json=closeTime,proto3" json:"close_time,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *ScheduleActionResult) Reset() { *x = ScheduleActionResult{} - mi := &file_temporal_api_schedule_v1_message_proto_msgTypes[7] + mi := &file_temporal_api_schedule_v1_message_proto_msgTypes[9] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -792,7 +1019,7 @@ func (x *ScheduleActionResult) String() string { func (*ScheduleActionResult) ProtoMessage() {} func (x *ScheduleActionResult) ProtoReflect() protoreflect.Message { - mi := &file_temporal_api_schedule_v1_message_proto_msgTypes[7] + mi := &file_temporal_api_schedule_v1_message_proto_msgTypes[9] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -805,7 +1032,7 @@ func (x *ScheduleActionResult) ProtoReflect() protoreflect.Message { // Deprecated: Use ScheduleActionResult.ProtoReflect.Descriptor instead. func (*ScheduleActionResult) Descriptor() ([]byte, []int) { - return file_temporal_api_schedule_v1_message_proto_rawDescGZIP(), []int{7} + return file_temporal_api_schedule_v1_message_proto_rawDescGZIP(), []int{9} } func (x *ScheduleActionResult) GetScheduleTime() *timestamppb.Timestamp { @@ -822,7 +1049,7 @@ func (x *ScheduleActionResult) GetActualTime() *timestamppb.Timestamp { return nil } -func (x *ScheduleActionResult) GetStartWorkflowResult() *v12.WorkflowExecution { +func (x *ScheduleActionResult) GetStartWorkflowResult() *v11.WorkflowExecution { if x != nil { return x.StartWorkflowResult } @@ -836,6 +1063,20 @@ func (x *ScheduleActionResult) GetStartWorkflowStatus() v1.WorkflowExecutionStat return v1.WorkflowExecutionStatus(0) } +func (x *ScheduleActionResult) GetActionExecutionResult() *v11.ActionExecutionResult { + if x != nil { + return x.ActionExecutionResult + } + return nil +} + +func (x *ScheduleActionResult) GetCloseTime() *timestamppb.Timestamp { + if x != nil { + return x.CloseTime + } + return nil +} + type ScheduleState struct { state protoimpl.MessageState `protogen:"open.v1"` // Informative human-readable message with contextual notes, e.g. the reason @@ -859,7 +1100,7 @@ type ScheduleState struct { func (x *ScheduleState) Reset() { *x = ScheduleState{} - mi := &file_temporal_api_schedule_v1_message_proto_msgTypes[8] + mi := &file_temporal_api_schedule_v1_message_proto_msgTypes[10] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -871,7 +1112,7 @@ func (x *ScheduleState) String() string { func (*ScheduleState) ProtoMessage() {} func (x *ScheduleState) ProtoReflect() protoreflect.Message { - mi := &file_temporal_api_schedule_v1_message_proto_msgTypes[8] + mi := &file_temporal_api_schedule_v1_message_proto_msgTypes[10] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -884,7 +1125,7 @@ func (x *ScheduleState) ProtoReflect() protoreflect.Message { // Deprecated: Use ScheduleState.ProtoReflect.Descriptor instead. func (*ScheduleState) Descriptor() ([]byte, []int) { - return file_temporal_api_schedule_v1_message_proto_rawDescGZIP(), []int{8} + return file_temporal_api_schedule_v1_message_proto_rawDescGZIP(), []int{10} } func (x *ScheduleState) GetNotes() string { @@ -922,13 +1163,15 @@ type TriggerImmediatelyRequest struct { // Timestamp used for the identity of the target workflow. // If not set the default value is the current time. ScheduledTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=scheduled_time,json=scheduledTime,proto3" json:"scheduled_time,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache + // If set, override overlap policy for this request. This may not be set together with overlap_policy. + CustomOverlapPolicy *CustomOverlapPolicy `protobuf:"bytes,3,opt,name=custom_overlap_policy,json=customOverlapPolicy,proto3" json:"custom_overlap_policy,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *TriggerImmediatelyRequest) Reset() { *x = TriggerImmediatelyRequest{} - mi := &file_temporal_api_schedule_v1_message_proto_msgTypes[9] + mi := &file_temporal_api_schedule_v1_message_proto_msgTypes[11] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -940,7 +1183,7 @@ func (x *TriggerImmediatelyRequest) String() string { func (*TriggerImmediatelyRequest) ProtoMessage() {} func (x *TriggerImmediatelyRequest) ProtoReflect() protoreflect.Message { - mi := &file_temporal_api_schedule_v1_message_proto_msgTypes[9] + mi := &file_temporal_api_schedule_v1_message_proto_msgTypes[11] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -953,7 +1196,7 @@ func (x *TriggerImmediatelyRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use TriggerImmediatelyRequest.ProtoReflect.Descriptor instead. func (*TriggerImmediatelyRequest) Descriptor() ([]byte, []int) { - return file_temporal_api_schedule_v1_message_proto_rawDescGZIP(), []int{9} + return file_temporal_api_schedule_v1_message_proto_rawDescGZIP(), []int{11} } func (x *TriggerImmediatelyRequest) GetOverlapPolicy() v1.ScheduleOverlapPolicy { @@ -970,6 +1213,13 @@ func (x *TriggerImmediatelyRequest) GetScheduledTime() *timestamppb.Timestamp { return nil } +func (x *TriggerImmediatelyRequest) GetCustomOverlapPolicy() *CustomOverlapPolicy { + if x != nil { + return x.CustomOverlapPolicy + } + return nil +} + type BackfillRequest struct { state protoimpl.MessageState `protogen:"open.v1"` // Time range to evaluate schedule in. Currently, this time range is @@ -982,13 +1232,15 @@ type BackfillRequest struct { EndTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"` // If set, override overlap policy for this request. OverlapPolicy v1.ScheduleOverlapPolicy `protobuf:"varint,3,opt,name=overlap_policy,json=overlapPolicy,proto3,enum=temporal.api.enums.v1.ScheduleOverlapPolicy" json:"overlap_policy,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache + // If set, override overlap policy for this request. This may not be set together with overlap_policy. + CustomOverlapPolicy *CustomOverlapPolicy `protobuf:"bytes,4,opt,name=custom_overlap_policy,json=customOverlapPolicy,proto3" json:"custom_overlap_policy,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *BackfillRequest) Reset() { *x = BackfillRequest{} - mi := &file_temporal_api_schedule_v1_message_proto_msgTypes[10] + mi := &file_temporal_api_schedule_v1_message_proto_msgTypes[12] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1000,7 +1252,7 @@ func (x *BackfillRequest) String() string { func (*BackfillRequest) ProtoMessage() {} func (x *BackfillRequest) ProtoReflect() protoreflect.Message { - mi := &file_temporal_api_schedule_v1_message_proto_msgTypes[10] + mi := &file_temporal_api_schedule_v1_message_proto_msgTypes[12] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1013,7 +1265,7 @@ func (x *BackfillRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use BackfillRequest.ProtoReflect.Descriptor instead. func (*BackfillRequest) Descriptor() ([]byte, []int) { - return file_temporal_api_schedule_v1_message_proto_rawDescGZIP(), []int{10} + return file_temporal_api_schedule_v1_message_proto_rawDescGZIP(), []int{12} } func (x *BackfillRequest) GetStartTime() *timestamppb.Timestamp { @@ -1037,6 +1289,13 @@ func (x *BackfillRequest) GetOverlapPolicy() v1.ScheduleOverlapPolicy { return v1.ScheduleOverlapPolicy(0) } +func (x *BackfillRequest) GetCustomOverlapPolicy() *CustomOverlapPolicy { + if x != nil { + return x.CustomOverlapPolicy + } + return nil +} + type SchedulePatch struct { state protoimpl.MessageState `protogen:"open.v1"` // If set, trigger one action immediately. @@ -1055,7 +1314,7 @@ type SchedulePatch struct { func (x *SchedulePatch) Reset() { *x = SchedulePatch{} - mi := &file_temporal_api_schedule_v1_message_proto_msgTypes[11] + mi := &file_temporal_api_schedule_v1_message_proto_msgTypes[13] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1067,7 +1326,7 @@ func (x *SchedulePatch) String() string { func (*SchedulePatch) ProtoMessage() {} func (x *SchedulePatch) ProtoReflect() protoreflect.Message { - mi := &file_temporal_api_schedule_v1_message_proto_msgTypes[11] + mi := &file_temporal_api_schedule_v1_message_proto_msgTypes[13] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1080,7 +1339,7 @@ func (x *SchedulePatch) ProtoReflect() protoreflect.Message { // Deprecated: Use SchedulePatch.ProtoReflect.Descriptor instead. func (*SchedulePatch) Descriptor() ([]byte, []int) { - return file_temporal_api_schedule_v1_message_proto_rawDescGZIP(), []int{11} + return file_temporal_api_schedule_v1_message_proto_rawDescGZIP(), []int{13} } func (x *SchedulePatch) GetTriggerImmediately() *TriggerImmediatelyRequest { @@ -1130,7 +1389,7 @@ type ScheduleInfo struct { // Note that the run_ids in here are the original execution run ids as // started by the schedule. If the workflows retried, did continue-as-new, // or were reset, they might still be running but with a different run_id. - RunningWorkflows []*v12.WorkflowExecution `protobuf:"bytes,9,rep,name=running_workflows,json=runningWorkflows,proto3" json:"running_workflows,omitempty"` + RunningWorkflows []*v11.WorkflowExecution `protobuf:"bytes,9,rep,name=running_workflows,json=runningWorkflows,proto3" json:"running_workflows,omitempty"` // Most recent ten actual action times (including manual triggers). RecentActions []*ScheduleActionResult `protobuf:"bytes,4,rep,name=recent_actions,json=recentActions,proto3" json:"recent_actions,omitempty"` // Next ten scheduled action times. @@ -1144,13 +1403,18 @@ type ScheduleInfo struct { InvalidScheduleError string `protobuf:"bytes,8,opt,name=invalid_schedule_error,json=invalidScheduleError,proto3" json:"invalid_schedule_error,omitempty"` // Size of the schedule's internal state (including payloads) in bytes. StateSizeBytes int64 `protobuf:"varint,12,opt,name=state_size_bytes,json=stateSizeBytes,proto3" json:"state_size_bytes,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache + // Currently-running executions started by this schedule. + RunningExecutions []*v11.Execution `protobuf:"bytes,13,rep,name=running_executions,json=runningExecutions,proto3" json:"running_executions,omitempty"` + // Kind and registered type of the action. + ActionKind v1.ExecutionType `protobuf:"varint,14,opt,name=action_kind,json=actionKind,proto3,enum=temporal.api.enums.v1.ExecutionType" json:"action_kind,omitempty"` + ActionType string `protobuf:"bytes,15,opt,name=action_type,json=actionType,proto3" json:"action_type,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *ScheduleInfo) Reset() { *x = ScheduleInfo{} - mi := &file_temporal_api_schedule_v1_message_proto_msgTypes[12] + mi := &file_temporal_api_schedule_v1_message_proto_msgTypes[14] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1162,7 +1426,7 @@ func (x *ScheduleInfo) String() string { func (*ScheduleInfo) ProtoMessage() {} func (x *ScheduleInfo) ProtoReflect() protoreflect.Message { - mi := &file_temporal_api_schedule_v1_message_proto_msgTypes[12] + mi := &file_temporal_api_schedule_v1_message_proto_msgTypes[14] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1175,7 +1439,7 @@ func (x *ScheduleInfo) ProtoReflect() protoreflect.Message { // Deprecated: Use ScheduleInfo.ProtoReflect.Descriptor instead. func (*ScheduleInfo) Descriptor() ([]byte, []int) { - return file_temporal_api_schedule_v1_message_proto_rawDescGZIP(), []int{12} + return file_temporal_api_schedule_v1_message_proto_rawDescGZIP(), []int{14} } func (x *ScheduleInfo) GetActionCount() int64 { @@ -1213,7 +1477,7 @@ func (x *ScheduleInfo) GetBufferSize() int64 { return 0 } -func (x *ScheduleInfo) GetRunningWorkflows() []*v12.WorkflowExecution { +func (x *ScheduleInfo) GetRunningWorkflows() []*v11.WorkflowExecution { if x != nil { return x.RunningWorkflows } @@ -1263,6 +1527,27 @@ func (x *ScheduleInfo) GetStateSizeBytes() int64 { return 0 } +func (x *ScheduleInfo) GetRunningExecutions() []*v11.Execution { + if x != nil { + return x.RunningExecutions + } + return nil +} + +func (x *ScheduleInfo) GetActionKind() v1.ExecutionType { + if x != nil { + return x.ActionKind + } + return v1.ExecutionType(0) +} + +func (x *ScheduleInfo) GetActionType() string { + if x != nil { + return x.ActionType + } + return "" +} + type Schedule struct { state protoimpl.MessageState `protogen:"open.v1"` Spec *ScheduleSpec `protobuf:"bytes,1,opt,name=spec,proto3" json:"spec,omitempty"` @@ -1275,7 +1560,7 @@ type Schedule struct { func (x *Schedule) Reset() { *x = Schedule{} - mi := &file_temporal_api_schedule_v1_message_proto_msgTypes[13] + mi := &file_temporal_api_schedule_v1_message_proto_msgTypes[15] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1287,7 +1572,7 @@ func (x *Schedule) String() string { func (*Schedule) ProtoMessage() {} func (x *Schedule) ProtoReflect() protoreflect.Message { - mi := &file_temporal_api_schedule_v1_message_proto_msgTypes[13] + mi := &file_temporal_api_schedule_v1_message_proto_msgTypes[15] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1300,7 +1585,7 @@ func (x *Schedule) ProtoReflect() protoreflect.Message { // Deprecated: Use Schedule.ProtoReflect.Descriptor instead. func (*Schedule) Descriptor() ([]byte, []int) { - return file_temporal_api_schedule_v1_message_proto_rawDescGZIP(), []int{13} + return file_temporal_api_schedule_v1_message_proto_rawDescGZIP(), []int{15} } func (x *Schedule) GetSpec() *ScheduleSpec { @@ -1341,7 +1626,7 @@ type ScheduleListInfo struct { // From action: // Action is a oneof field, but we need to encode this in JSON and oneof fields don't work // well with JSON. If action is start_workflow, this is set: - WorkflowType *v12.WorkflowType `protobuf:"bytes,2,opt,name=workflow_type,json=workflowType,proto3" json:"workflow_type,omitempty"` + WorkflowType *v11.WorkflowType `protobuf:"bytes,2,opt,name=workflow_type,json=workflowType,proto3" json:"workflow_type,omitempty"` // From state: Notes string `protobuf:"bytes,3,opt,name=notes,proto3" json:"notes,omitempty"` Paused bool `protobuf:"varint,4,opt,name=paused,proto3" json:"paused,omitempty"` @@ -1350,13 +1635,18 @@ type ScheduleListInfo struct { FutureActionTimes []*timestamppb.Timestamp `protobuf:"bytes,6,rep,name=future_action_times,json=futureActionTimes,proto3" json:"future_action_times,omitempty"` // Size of the schedule's internal state (including payloads) in bytes. StateSizeBytes int64 `protobuf:"varint,7,opt,name=state_size_bytes,json=stateSizeBytes,proto3" json:"state_size_bytes,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache + // Kind and registered type of the action. + ActionKind v1.ExecutionType `protobuf:"varint,8,opt,name=action_kind,json=actionKind,proto3,enum=temporal.api.enums.v1.ExecutionType" json:"action_kind,omitempty"` + ActionType string `protobuf:"bytes,9,opt,name=action_type,json=actionType,proto3" json:"action_type,omitempty"` + // Number of tracked running executions started by the schedule. + RunningExecutionCount int64 `protobuf:"varint,10,opt,name=running_execution_count,json=runningExecutionCount,proto3" json:"running_execution_count,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *ScheduleListInfo) Reset() { *x = ScheduleListInfo{} - mi := &file_temporal_api_schedule_v1_message_proto_msgTypes[14] + mi := &file_temporal_api_schedule_v1_message_proto_msgTypes[16] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1368,7 +1658,7 @@ func (x *ScheduleListInfo) String() string { func (*ScheduleListInfo) ProtoMessage() {} func (x *ScheduleListInfo) ProtoReflect() protoreflect.Message { - mi := &file_temporal_api_schedule_v1_message_proto_msgTypes[14] + mi := &file_temporal_api_schedule_v1_message_proto_msgTypes[16] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1381,7 +1671,7 @@ func (x *ScheduleListInfo) ProtoReflect() protoreflect.Message { // Deprecated: Use ScheduleListInfo.ProtoReflect.Descriptor instead. func (*ScheduleListInfo) Descriptor() ([]byte, []int) { - return file_temporal_api_schedule_v1_message_proto_rawDescGZIP(), []int{14} + return file_temporal_api_schedule_v1_message_proto_rawDescGZIP(), []int{16} } func (x *ScheduleListInfo) GetSpec() *ScheduleSpec { @@ -1391,7 +1681,7 @@ func (x *ScheduleListInfo) GetSpec() *ScheduleSpec { return nil } -func (x *ScheduleListInfo) GetWorkflowType() *v12.WorkflowType { +func (x *ScheduleListInfo) GetWorkflowType() *v11.WorkflowType { if x != nil { return x.WorkflowType } @@ -1433,12 +1723,33 @@ func (x *ScheduleListInfo) GetStateSizeBytes() int64 { return 0 } +func (x *ScheduleListInfo) GetActionKind() v1.ExecutionType { + if x != nil { + return x.ActionKind + } + return v1.ExecutionType(0) +} + +func (x *ScheduleListInfo) GetActionType() string { + if x != nil { + return x.ActionType + } + return "" +} + +func (x *ScheduleListInfo) GetRunningExecutionCount() int64 { + if x != nil { + return x.RunningExecutionCount + } + return 0 +} + // ScheduleListEntry is returned by ListSchedules. type ScheduleListEntry struct { state protoimpl.MessageState `protogen:"open.v1"` ScheduleId string `protobuf:"bytes,1,opt,name=schedule_id,json=scheduleId,proto3" json:"schedule_id,omitempty"` - Memo *v12.Memo `protobuf:"bytes,2,opt,name=memo,proto3" json:"memo,omitempty"` - SearchAttributes *v12.SearchAttributes `protobuf:"bytes,3,opt,name=search_attributes,json=searchAttributes,proto3" json:"search_attributes,omitempty"` + Memo *v11.Memo `protobuf:"bytes,2,opt,name=memo,proto3" json:"memo,omitempty"` + SearchAttributes *v11.SearchAttributes `protobuf:"bytes,3,opt,name=search_attributes,json=searchAttributes,proto3" json:"search_attributes,omitempty"` Info *ScheduleListInfo `protobuf:"bytes,4,opt,name=info,proto3" json:"info,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache @@ -1446,7 +1757,7 @@ type ScheduleListEntry struct { func (x *ScheduleListEntry) Reset() { *x = ScheduleListEntry{} - mi := &file_temporal_api_schedule_v1_message_proto_msgTypes[15] + mi := &file_temporal_api_schedule_v1_message_proto_msgTypes[17] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1458,7 +1769,7 @@ func (x *ScheduleListEntry) String() string { func (*ScheduleListEntry) ProtoMessage() {} func (x *ScheduleListEntry) ProtoReflect() protoreflect.Message { - mi := &file_temporal_api_schedule_v1_message_proto_msgTypes[15] + mi := &file_temporal_api_schedule_v1_message_proto_msgTypes[17] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1471,7 +1782,7 @@ func (x *ScheduleListEntry) ProtoReflect() protoreflect.Message { // Deprecated: Use ScheduleListEntry.ProtoReflect.Descriptor instead. func (*ScheduleListEntry) Descriptor() ([]byte, []int) { - return file_temporal_api_schedule_v1_message_proto_rawDescGZIP(), []int{15} + return file_temporal_api_schedule_v1_message_proto_rawDescGZIP(), []int{17} } func (x *ScheduleListEntry) GetScheduleId() string { @@ -1481,14 +1792,14 @@ func (x *ScheduleListEntry) GetScheduleId() string { return "" } -func (x *ScheduleListEntry) GetMemo() *v12.Memo { +func (x *ScheduleListEntry) GetMemo() *v11.Memo { if x != nil { return x.Memo } return nil } -func (x *ScheduleListEntry) GetSearchAttributes() *v12.SearchAttributes { +func (x *ScheduleListEntry) GetSearchAttributes() *v11.SearchAttributes { if x != nil { return x.SearchAttributes } @@ -1506,7 +1817,7 @@ var File_temporal_api_schedule_v1_message_proto protoreflect.FileDescriptor const file_temporal_api_schedule_v1_message_proto_rawDesc = "" + "\n" + - "&temporal/api/schedule/v1/message.proto\x12\x18temporal.api.schedule.v1\x1a\x1egoogle/protobuf/duration.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a$temporal/api/common/v1/message.proto\x1a$temporal/api/enums/v1/schedule.proto\x1a$temporal/api/enums/v1/workflow.proto\x1a&temporal/api/workflow/v1/message.proto\"\xd8\x01\n" + + "&temporal/api/schedule/v1/message.proto\x12\x18temporal.api.schedule.v1\x1a\x1egoogle/protobuf/duration.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a$temporal/api/common/v1/message.proto\x1a\"temporal/api/enums/v1/common.proto\x1a$temporal/api/enums/v1/schedule.proto\x1a$temporal/api/enums/v1/workflow.proto\x1a'temporal/api/sdk/v1/user_metadata.proto\x1a'temporal/api/taskqueue/v1/message.proto\x1a&temporal/api/workflow/v1/message.proto\"\xd8\x01\n" + "\fCalendarSpec\x12\x16\n" + "\x06second\x18\x01 \x01(\tR\x06second\x12\x16\n" + "\x06minute\x18\x02 \x01(\tR\x06minute\x12\x12\n" + @@ -1548,39 +1859,67 @@ const file_temporal_api_schedule_v1_message_proto_rawDesc = "" + "\x06jitter\x18\x06 \x01(\v2\x19.google.protobuf.DurationR\x06jitter\x12#\n" + "\rtimezone_name\x18\n" + " \x01(\tR\ftimezoneName\x12#\n" + - "\rtimezone_data\x18\v \x01(\fR\ftimezoneData\"\x8e\x02\n" + + "\rtimezone_data\x18\v \x01(\fR\ftimezoneData\"\xf1\x02\n" + "\x10SchedulePolicies\x12S\n" + "\x0eoverlap_policy\x18\x01 \x01(\x0e2,.temporal.api.enums.v1.ScheduleOverlapPolicyR\roverlapPolicy\x12@\n" + "\x0ecatchup_window\x18\x02 \x01(\v2\x19.google.protobuf.DurationR\rcatchupWindow\x12(\n" + "\x10pause_on_failure\x18\x03 \x01(\bR\x0epauseOnFailure\x129\n" + - "\x19keep_original_workflow_id\x18\x04 \x01(\bR\x16keepOriginalWorkflowId\"w\n" + + "\x19keep_original_workflow_id\x18\x04 \x01(\bR\x16keepOriginalWorkflowId\x12a\n" + + "\x15custom_overlap_policy\x18\x05 \x01(\v2-.temporal.api.schedule.v1.CustomOverlapPolicyR\x13customOverlapPolicy\")\n" + + "\x13CustomOverlapPolicy\x12\x12\n" + + "\x04name\x18\x01 \x01(\tR\x04name\"\xe2\a\n" + + "\x1aStartActivityExecutionInfo\x12\x1f\n" + + "\vactivity_id\x18\x01 \x01(\tR\n" + + "activityId\x12I\n" + + "\ractivity_type\x18\x02 \x01(\v2$.temporal.api.common.v1.ActivityTypeR\factivityType\x12C\n" + + "\n" + + "task_queue\x18\x03 \x01(\v2$.temporal.api.taskqueue.v1.TaskQueueR\ttaskQueue\x12T\n" + + "\x19schedule_to_close_timeout\x18\x04 \x01(\v2\x19.google.protobuf.DurationR\x16scheduleToCloseTimeout\x12T\n" + + "\x19schedule_to_start_timeout\x18\x05 \x01(\v2\x19.google.protobuf.DurationR\x16scheduleToStartTimeout\x12N\n" + + "\x16start_to_close_timeout\x18\x06 \x01(\v2\x19.google.protobuf.DurationR\x13startToCloseTimeout\x12F\n" + + "\x11heartbeat_timeout\x18\a \x01(\v2\x19.google.protobuf.DurationR\x10heartbeatTimeout\x12F\n" + + "\fretry_policy\x18\b \x01(\v2#.temporal.api.common.v1.RetryPolicyR\vretryPolicy\x126\n" + + "\x05input\x18\t \x01(\v2 .temporal.api.common.v1.PayloadsR\x05input\x12U\n" + + "\x11search_attributes\x18\n" + + " \x01(\v2(.temporal.api.common.v1.SearchAttributesR\x10searchAttributes\x126\n" + + "\x06header\x18\v \x01(\v2\x1e.temporal.api.common.v1.HeaderR\x06header\x12F\n" + + "\ruser_metadata\x18\f \x01(\v2!.temporal.api.sdk.v1.UserMetadataR\fuserMetadata\x12<\n" + + "\bpriority\x18\r \x01(\v2 .temporal.api.common.v1.PriorityR\bpriority\x12:\n" + + "\vstart_delay\x18\x0e \x01(\v2\x19.google.protobuf.DurationR\n" + + "startDelay\"\xd6\x01\n" + "\x0eScheduleAction\x12[\n" + - "\x0estart_workflow\x18\x01 \x01(\v22.temporal.api.workflow.v1.NewWorkflowExecutionInfoH\x00R\rstartWorkflowB\b\n" + - "\x06action\"\xd7\x02\n" + + "\x0estart_workflow\x18\x01 \x01(\v22.temporal.api.workflow.v1.NewWorkflowExecutionInfoH\x00R\rstartWorkflow\x12]\n" + + "\x0estart_activity\x18\x02 \x01(\v24.temporal.api.schedule.v1.StartActivityExecutionInfoH\x00R\rstartActivityB\b\n" + + "\x06action\"\xf9\x03\n" + "\x14ScheduleActionResult\x12?\n" + "\rschedule_time\x18\x01 \x01(\v2\x1a.google.protobuf.TimestampR\fscheduleTime\x12;\n" + "\vactual_time\x18\x02 \x01(\v2\x1a.google.protobuf.TimestampR\n" + "actualTime\x12]\n" + "\x15start_workflow_result\x18\v \x01(\v2).temporal.api.common.v1.WorkflowExecutionR\x13startWorkflowResult\x12b\n" + - "\x15start_workflow_status\x18\f \x01(\x0e2..temporal.api.enums.v1.WorkflowExecutionStatusR\x13startWorkflowStatus\"\x93\x01\n" + + "\x15start_workflow_status\x18\f \x01(\x0e2..temporal.api.enums.v1.WorkflowExecutionStatusR\x13startWorkflowStatus\x12e\n" + + "\x17action_execution_result\x18\r \x01(\v2-.temporal.api.common.v1.ActionExecutionResultR\x15actionExecutionResult\x129\n" + + "\n" + + "close_time\x18\x0e \x01(\v2\x1a.google.protobuf.TimestampR\tcloseTime\"\x93\x01\n" + "\rScheduleState\x12\x14\n" + "\x05notes\x18\x01 \x01(\tR\x05notes\x12\x16\n" + "\x06paused\x18\x02 \x01(\bR\x06paused\x12'\n" + "\x0flimited_actions\x18\x03 \x01(\bR\x0elimitedActions\x12+\n" + - "\x11remaining_actions\x18\x04 \x01(\x03R\x10remainingActions\"\xb3\x01\n" + + "\x11remaining_actions\x18\x04 \x01(\x03R\x10remainingActions\"\x96\x02\n" + "\x19TriggerImmediatelyRequest\x12S\n" + "\x0eoverlap_policy\x18\x01 \x01(\x0e2,.temporal.api.enums.v1.ScheduleOverlapPolicyR\roverlapPolicy\x12A\n" + - "\x0escheduled_time\x18\x02 \x01(\v2\x1a.google.protobuf.TimestampR\rscheduledTime\"\xd8\x01\n" + + "\x0escheduled_time\x18\x02 \x01(\v2\x1a.google.protobuf.TimestampR\rscheduledTime\x12a\n" + + "\x15custom_overlap_policy\x18\x03 \x01(\v2-.temporal.api.schedule.v1.CustomOverlapPolicyR\x13customOverlapPolicy\"\xbb\x02\n" + "\x0fBackfillRequest\x129\n" + "\n" + "start_time\x18\x01 \x01(\v2\x1a.google.protobuf.TimestampR\tstartTime\x125\n" + "\bend_time\x18\x02 \x01(\v2\x1a.google.protobuf.TimestampR\aendTime\x12S\n" + - "\x0eoverlap_policy\x18\x03 \x01(\x0e2,.temporal.api.enums.v1.ScheduleOverlapPolicyR\roverlapPolicy\"\xfb\x01\n" + + "\x0eoverlap_policy\x18\x03 \x01(\x0e2,.temporal.api.enums.v1.ScheduleOverlapPolicyR\roverlapPolicy\x12a\n" + + "\x15custom_overlap_policy\x18\x04 \x01(\v2-.temporal.api.schedule.v1.CustomOverlapPolicyR\x13customOverlapPolicy\"\xfb\x01\n" + "\rSchedulePatch\x12d\n" + "\x13trigger_immediately\x18\x01 \x01(\v23.temporal.api.schedule.v1.TriggerImmediatelyRequestR\x12triggerImmediately\x12T\n" + "\x10backfill_request\x18\x02 \x03(\v2).temporal.api.schedule.v1.BackfillRequestR\x0fbackfillRequest\x12\x14\n" + "\x05pause\x18\x03 \x01(\tR\x05pause\x12\x18\n" + - "\aunpause\x18\x04 \x01(\tR\aunpause\"\xaf\x05\n" + + "\aunpause\x18\x04 \x01(\tR\aunpause\"\xe9\x06\n" + "\fScheduleInfo\x12!\n" + "\faction_count\x18\x01 \x01(\x03R\vactionCount\x122\n" + "\x15missed_catchup_window\x18\x02 \x01(\x03R\x13missedCatchupWindow\x12'\n" + @@ -1597,12 +1936,17 @@ const file_temporal_api_schedule_v1_message_proto_rawDesc = "" + "\vupdate_time\x18\a \x01(\v2\x1a.google.protobuf.TimestampR\n" + "updateTime\x128\n" + "\x16invalid_schedule_error\x18\b \x01(\tB\x02\x18\x01R\x14invalidScheduleError\x12(\n" + - "\x10state_size_bytes\x18\f \x01(\x03R\x0estateSizeBytes\"\x8f\x02\n" + + "\x10state_size_bytes\x18\f \x01(\x03R\x0estateSizeBytes\x12P\n" + + "\x12running_executions\x18\r \x03(\v2!.temporal.api.common.v1.ExecutionR\x11runningExecutions\x12E\n" + + "\vaction_kind\x18\x0e \x01(\x0e2$.temporal.api.enums.v1.ExecutionTypeR\n" + + "actionKind\x12\x1f\n" + + "\vaction_type\x18\x0f \x01(\tR\n" + + "actionType\"\x8f\x02\n" + "\bSchedule\x12:\n" + "\x04spec\x18\x01 \x01(\v2&.temporal.api.schedule.v1.ScheduleSpecR\x04spec\x12@\n" + "\x06action\x18\x02 \x01(\v2(.temporal.api.schedule.v1.ScheduleActionR\x06action\x12F\n" + "\bpolicies\x18\x03 \x01(\v2*.temporal.api.schedule.v1.SchedulePoliciesR\bpolicies\x12=\n" + - "\x05state\x18\x04 \x01(\v2'.temporal.api.schedule.v1.ScheduleStateR\x05state\"\x94\x03\n" + + "\x05state\x18\x04 \x01(\v2'.temporal.api.schedule.v1.ScheduleStateR\x05state\"\xb4\x04\n" + "\x10ScheduleListInfo\x12:\n" + "\x04spec\x18\x01 \x01(\v2&.temporal.api.schedule.v1.ScheduleSpecR\x04spec\x12I\n" + "\rworkflow_type\x18\x02 \x01(\v2$.temporal.api.common.v1.WorkflowTypeR\fworkflowType\x12\x14\n" + @@ -1610,7 +1954,13 @@ const file_temporal_api_schedule_v1_message_proto_rawDesc = "" + "\x06paused\x18\x04 \x01(\bR\x06paused\x12U\n" + "\x0erecent_actions\x18\x05 \x03(\v2..temporal.api.schedule.v1.ScheduleActionResultR\rrecentActions\x12J\n" + "\x13future_action_times\x18\x06 \x03(\v2\x1a.google.protobuf.TimestampR\x11futureActionTimes\x12(\n" + - "\x10state_size_bytes\x18\a \x01(\x03R\x0estateSizeBytes\"\xfd\x01\n" + + "\x10state_size_bytes\x18\a \x01(\x03R\x0estateSizeBytes\x12E\n" + + "\vaction_kind\x18\b \x01(\x0e2$.temporal.api.enums.v1.ExecutionTypeR\n" + + "actionKind\x12\x1f\n" + + "\vaction_type\x18\t \x01(\tR\n" + + "actionType\x126\n" + + "\x17running_execution_count\x18\n" + + " \x01(\x03R\x15runningExecutionCount\"\xfd\x01\n" + "\x11ScheduleListEntry\x12\x1f\n" + "\vschedule_id\x18\x01 \x01(\tR\n" + "scheduleId\x120\n" + @@ -1631,7 +1981,7 @@ func file_temporal_api_schedule_v1_message_proto_rawDescGZIP() []byte { return file_temporal_api_schedule_v1_message_proto_rawDescData } -var file_temporal_api_schedule_v1_message_proto_msgTypes = make([]protoimpl.MessageInfo, 16) +var file_temporal_api_schedule_v1_message_proto_msgTypes = make([]protoimpl.MessageInfo, 18) var file_temporal_api_schedule_v1_message_proto_goTypes = []any{ (*CalendarSpec)(nil), // 0: temporal.api.schedule.v1.CalendarSpec (*Range)(nil), // 1: temporal.api.schedule.v1.Range @@ -1639,25 +1989,37 @@ var file_temporal_api_schedule_v1_message_proto_goTypes = []any{ (*IntervalSpec)(nil), // 3: temporal.api.schedule.v1.IntervalSpec (*ScheduleSpec)(nil), // 4: temporal.api.schedule.v1.ScheduleSpec (*SchedulePolicies)(nil), // 5: temporal.api.schedule.v1.SchedulePolicies - (*ScheduleAction)(nil), // 6: temporal.api.schedule.v1.ScheduleAction - (*ScheduleActionResult)(nil), // 7: temporal.api.schedule.v1.ScheduleActionResult - (*ScheduleState)(nil), // 8: temporal.api.schedule.v1.ScheduleState - (*TriggerImmediatelyRequest)(nil), // 9: temporal.api.schedule.v1.TriggerImmediatelyRequest - (*BackfillRequest)(nil), // 10: temporal.api.schedule.v1.BackfillRequest - (*SchedulePatch)(nil), // 11: temporal.api.schedule.v1.SchedulePatch - (*ScheduleInfo)(nil), // 12: temporal.api.schedule.v1.ScheduleInfo - (*Schedule)(nil), // 13: temporal.api.schedule.v1.Schedule - (*ScheduleListInfo)(nil), // 14: temporal.api.schedule.v1.ScheduleListInfo - (*ScheduleListEntry)(nil), // 15: temporal.api.schedule.v1.ScheduleListEntry - (*durationpb.Duration)(nil), // 16: google.protobuf.Duration - (*timestamppb.Timestamp)(nil), // 17: google.protobuf.Timestamp - (v1.ScheduleOverlapPolicy)(0), // 18: temporal.api.enums.v1.ScheduleOverlapPolicy - (*v11.NewWorkflowExecutionInfo)(nil), // 19: temporal.api.workflow.v1.NewWorkflowExecutionInfo - (*v12.WorkflowExecution)(nil), // 20: temporal.api.common.v1.WorkflowExecution - (v1.WorkflowExecutionStatus)(0), // 21: temporal.api.enums.v1.WorkflowExecutionStatus - (*v12.WorkflowType)(nil), // 22: temporal.api.common.v1.WorkflowType - (*v12.Memo)(nil), // 23: temporal.api.common.v1.Memo - (*v12.SearchAttributes)(nil), // 24: temporal.api.common.v1.SearchAttributes + (*CustomOverlapPolicy)(nil), // 6: temporal.api.schedule.v1.CustomOverlapPolicy + (*StartActivityExecutionInfo)(nil), // 7: temporal.api.schedule.v1.StartActivityExecutionInfo + (*ScheduleAction)(nil), // 8: temporal.api.schedule.v1.ScheduleAction + (*ScheduleActionResult)(nil), // 9: temporal.api.schedule.v1.ScheduleActionResult + (*ScheduleState)(nil), // 10: temporal.api.schedule.v1.ScheduleState + (*TriggerImmediatelyRequest)(nil), // 11: temporal.api.schedule.v1.TriggerImmediatelyRequest + (*BackfillRequest)(nil), // 12: temporal.api.schedule.v1.BackfillRequest + (*SchedulePatch)(nil), // 13: temporal.api.schedule.v1.SchedulePatch + (*ScheduleInfo)(nil), // 14: temporal.api.schedule.v1.ScheduleInfo + (*Schedule)(nil), // 15: temporal.api.schedule.v1.Schedule + (*ScheduleListInfo)(nil), // 16: temporal.api.schedule.v1.ScheduleListInfo + (*ScheduleListEntry)(nil), // 17: temporal.api.schedule.v1.ScheduleListEntry + (*durationpb.Duration)(nil), // 18: google.protobuf.Duration + (*timestamppb.Timestamp)(nil), // 19: google.protobuf.Timestamp + (v1.ScheduleOverlapPolicy)(0), // 20: temporal.api.enums.v1.ScheduleOverlapPolicy + (*v11.ActivityType)(nil), // 21: temporal.api.common.v1.ActivityType + (*v12.TaskQueue)(nil), // 22: temporal.api.taskqueue.v1.TaskQueue + (*v11.RetryPolicy)(nil), // 23: temporal.api.common.v1.RetryPolicy + (*v11.Payloads)(nil), // 24: temporal.api.common.v1.Payloads + (*v11.SearchAttributes)(nil), // 25: temporal.api.common.v1.SearchAttributes + (*v11.Header)(nil), // 26: temporal.api.common.v1.Header + (*v13.UserMetadata)(nil), // 27: temporal.api.sdk.v1.UserMetadata + (*v11.Priority)(nil), // 28: temporal.api.common.v1.Priority + (*v14.NewWorkflowExecutionInfo)(nil), // 29: temporal.api.workflow.v1.NewWorkflowExecutionInfo + (*v11.WorkflowExecution)(nil), // 30: temporal.api.common.v1.WorkflowExecution + (v1.WorkflowExecutionStatus)(0), // 31: temporal.api.enums.v1.WorkflowExecutionStatus + (*v11.ActionExecutionResult)(nil), // 32: temporal.api.common.v1.ActionExecutionResult + (*v11.Execution)(nil), // 33: temporal.api.common.v1.Execution + (v1.ExecutionType)(0), // 34: temporal.api.enums.v1.ExecutionType + (*v11.WorkflowType)(nil), // 35: temporal.api.common.v1.WorkflowType + (*v11.Memo)(nil), // 36: temporal.api.common.v1.Memo } var file_temporal_api_schedule_v1_message_proto_depIdxs = []int32{ 1, // 0: temporal.api.schedule.v1.StructuredCalendarSpec.second:type_name -> temporal.api.schedule.v1.Range @@ -1667,51 +2029,73 @@ var file_temporal_api_schedule_v1_message_proto_depIdxs = []int32{ 1, // 4: temporal.api.schedule.v1.StructuredCalendarSpec.month:type_name -> temporal.api.schedule.v1.Range 1, // 5: temporal.api.schedule.v1.StructuredCalendarSpec.year:type_name -> temporal.api.schedule.v1.Range 1, // 6: temporal.api.schedule.v1.StructuredCalendarSpec.day_of_week:type_name -> temporal.api.schedule.v1.Range - 16, // 7: temporal.api.schedule.v1.IntervalSpec.interval:type_name -> google.protobuf.Duration - 16, // 8: temporal.api.schedule.v1.IntervalSpec.phase:type_name -> google.protobuf.Duration + 18, // 7: temporal.api.schedule.v1.IntervalSpec.interval:type_name -> google.protobuf.Duration + 18, // 8: temporal.api.schedule.v1.IntervalSpec.phase:type_name -> google.protobuf.Duration 2, // 9: temporal.api.schedule.v1.ScheduleSpec.structured_calendar:type_name -> temporal.api.schedule.v1.StructuredCalendarSpec 0, // 10: temporal.api.schedule.v1.ScheduleSpec.calendar:type_name -> temporal.api.schedule.v1.CalendarSpec 3, // 11: temporal.api.schedule.v1.ScheduleSpec.interval:type_name -> temporal.api.schedule.v1.IntervalSpec 0, // 12: temporal.api.schedule.v1.ScheduleSpec.exclude_calendar:type_name -> temporal.api.schedule.v1.CalendarSpec 2, // 13: temporal.api.schedule.v1.ScheduleSpec.exclude_structured_calendar:type_name -> temporal.api.schedule.v1.StructuredCalendarSpec - 17, // 14: temporal.api.schedule.v1.ScheduleSpec.start_time:type_name -> google.protobuf.Timestamp - 17, // 15: temporal.api.schedule.v1.ScheduleSpec.end_time:type_name -> google.protobuf.Timestamp - 16, // 16: temporal.api.schedule.v1.ScheduleSpec.jitter:type_name -> google.protobuf.Duration - 18, // 17: temporal.api.schedule.v1.SchedulePolicies.overlap_policy:type_name -> temporal.api.enums.v1.ScheduleOverlapPolicy - 16, // 18: temporal.api.schedule.v1.SchedulePolicies.catchup_window:type_name -> google.protobuf.Duration - 19, // 19: temporal.api.schedule.v1.ScheduleAction.start_workflow:type_name -> temporal.api.workflow.v1.NewWorkflowExecutionInfo - 17, // 20: temporal.api.schedule.v1.ScheduleActionResult.schedule_time:type_name -> google.protobuf.Timestamp - 17, // 21: temporal.api.schedule.v1.ScheduleActionResult.actual_time:type_name -> google.protobuf.Timestamp - 20, // 22: temporal.api.schedule.v1.ScheduleActionResult.start_workflow_result:type_name -> temporal.api.common.v1.WorkflowExecution - 21, // 23: temporal.api.schedule.v1.ScheduleActionResult.start_workflow_status:type_name -> temporal.api.enums.v1.WorkflowExecutionStatus - 18, // 24: temporal.api.schedule.v1.TriggerImmediatelyRequest.overlap_policy:type_name -> temporal.api.enums.v1.ScheduleOverlapPolicy - 17, // 25: temporal.api.schedule.v1.TriggerImmediatelyRequest.scheduled_time:type_name -> google.protobuf.Timestamp - 17, // 26: temporal.api.schedule.v1.BackfillRequest.start_time:type_name -> google.protobuf.Timestamp - 17, // 27: temporal.api.schedule.v1.BackfillRequest.end_time:type_name -> google.protobuf.Timestamp - 18, // 28: temporal.api.schedule.v1.BackfillRequest.overlap_policy:type_name -> temporal.api.enums.v1.ScheduleOverlapPolicy - 9, // 29: temporal.api.schedule.v1.SchedulePatch.trigger_immediately:type_name -> temporal.api.schedule.v1.TriggerImmediatelyRequest - 10, // 30: temporal.api.schedule.v1.SchedulePatch.backfill_request:type_name -> temporal.api.schedule.v1.BackfillRequest - 20, // 31: temporal.api.schedule.v1.ScheduleInfo.running_workflows:type_name -> temporal.api.common.v1.WorkflowExecution - 7, // 32: temporal.api.schedule.v1.ScheduleInfo.recent_actions:type_name -> temporal.api.schedule.v1.ScheduleActionResult - 17, // 33: temporal.api.schedule.v1.ScheduleInfo.future_action_times:type_name -> google.protobuf.Timestamp - 17, // 34: temporal.api.schedule.v1.ScheduleInfo.create_time:type_name -> google.protobuf.Timestamp - 17, // 35: temporal.api.schedule.v1.ScheduleInfo.update_time:type_name -> google.protobuf.Timestamp - 4, // 36: temporal.api.schedule.v1.Schedule.spec:type_name -> temporal.api.schedule.v1.ScheduleSpec - 6, // 37: temporal.api.schedule.v1.Schedule.action:type_name -> temporal.api.schedule.v1.ScheduleAction - 5, // 38: temporal.api.schedule.v1.Schedule.policies:type_name -> temporal.api.schedule.v1.SchedulePolicies - 8, // 39: temporal.api.schedule.v1.Schedule.state:type_name -> temporal.api.schedule.v1.ScheduleState - 4, // 40: temporal.api.schedule.v1.ScheduleListInfo.spec:type_name -> temporal.api.schedule.v1.ScheduleSpec - 22, // 41: temporal.api.schedule.v1.ScheduleListInfo.workflow_type:type_name -> temporal.api.common.v1.WorkflowType - 7, // 42: temporal.api.schedule.v1.ScheduleListInfo.recent_actions:type_name -> temporal.api.schedule.v1.ScheduleActionResult - 17, // 43: temporal.api.schedule.v1.ScheduleListInfo.future_action_times:type_name -> google.protobuf.Timestamp - 23, // 44: temporal.api.schedule.v1.ScheduleListEntry.memo:type_name -> temporal.api.common.v1.Memo - 24, // 45: temporal.api.schedule.v1.ScheduleListEntry.search_attributes:type_name -> temporal.api.common.v1.SearchAttributes - 14, // 46: temporal.api.schedule.v1.ScheduleListEntry.info:type_name -> temporal.api.schedule.v1.ScheduleListInfo - 47, // [47:47] is the sub-list for method output_type - 47, // [47:47] is the sub-list for method input_type - 47, // [47:47] is the sub-list for extension type_name - 47, // [47:47] is the sub-list for extension extendee - 0, // [0:47] is the sub-list for field type_name + 19, // 14: temporal.api.schedule.v1.ScheduleSpec.start_time:type_name -> google.protobuf.Timestamp + 19, // 15: temporal.api.schedule.v1.ScheduleSpec.end_time:type_name -> google.protobuf.Timestamp + 18, // 16: temporal.api.schedule.v1.ScheduleSpec.jitter:type_name -> google.protobuf.Duration + 20, // 17: temporal.api.schedule.v1.SchedulePolicies.overlap_policy:type_name -> temporal.api.enums.v1.ScheduleOverlapPolicy + 18, // 18: temporal.api.schedule.v1.SchedulePolicies.catchup_window:type_name -> google.protobuf.Duration + 6, // 19: temporal.api.schedule.v1.SchedulePolicies.custom_overlap_policy:type_name -> temporal.api.schedule.v1.CustomOverlapPolicy + 21, // 20: temporal.api.schedule.v1.StartActivityExecutionInfo.activity_type:type_name -> temporal.api.common.v1.ActivityType + 22, // 21: temporal.api.schedule.v1.StartActivityExecutionInfo.task_queue:type_name -> temporal.api.taskqueue.v1.TaskQueue + 18, // 22: temporal.api.schedule.v1.StartActivityExecutionInfo.schedule_to_close_timeout:type_name -> google.protobuf.Duration + 18, // 23: temporal.api.schedule.v1.StartActivityExecutionInfo.schedule_to_start_timeout:type_name -> google.protobuf.Duration + 18, // 24: temporal.api.schedule.v1.StartActivityExecutionInfo.start_to_close_timeout:type_name -> google.protobuf.Duration + 18, // 25: temporal.api.schedule.v1.StartActivityExecutionInfo.heartbeat_timeout:type_name -> google.protobuf.Duration + 23, // 26: temporal.api.schedule.v1.StartActivityExecutionInfo.retry_policy:type_name -> temporal.api.common.v1.RetryPolicy + 24, // 27: temporal.api.schedule.v1.StartActivityExecutionInfo.input:type_name -> temporal.api.common.v1.Payloads + 25, // 28: temporal.api.schedule.v1.StartActivityExecutionInfo.search_attributes:type_name -> temporal.api.common.v1.SearchAttributes + 26, // 29: temporal.api.schedule.v1.StartActivityExecutionInfo.header:type_name -> temporal.api.common.v1.Header + 27, // 30: temporal.api.schedule.v1.StartActivityExecutionInfo.user_metadata:type_name -> temporal.api.sdk.v1.UserMetadata + 28, // 31: temporal.api.schedule.v1.StartActivityExecutionInfo.priority:type_name -> temporal.api.common.v1.Priority + 18, // 32: temporal.api.schedule.v1.StartActivityExecutionInfo.start_delay:type_name -> google.protobuf.Duration + 29, // 33: temporal.api.schedule.v1.ScheduleAction.start_workflow:type_name -> temporal.api.workflow.v1.NewWorkflowExecutionInfo + 7, // 34: temporal.api.schedule.v1.ScheduleAction.start_activity:type_name -> temporal.api.schedule.v1.StartActivityExecutionInfo + 19, // 35: temporal.api.schedule.v1.ScheduleActionResult.schedule_time:type_name -> google.protobuf.Timestamp + 19, // 36: temporal.api.schedule.v1.ScheduleActionResult.actual_time:type_name -> google.protobuf.Timestamp + 30, // 37: temporal.api.schedule.v1.ScheduleActionResult.start_workflow_result:type_name -> temporal.api.common.v1.WorkflowExecution + 31, // 38: temporal.api.schedule.v1.ScheduleActionResult.start_workflow_status:type_name -> temporal.api.enums.v1.WorkflowExecutionStatus + 32, // 39: temporal.api.schedule.v1.ScheduleActionResult.action_execution_result:type_name -> temporal.api.common.v1.ActionExecutionResult + 19, // 40: temporal.api.schedule.v1.ScheduleActionResult.close_time:type_name -> google.protobuf.Timestamp + 20, // 41: temporal.api.schedule.v1.TriggerImmediatelyRequest.overlap_policy:type_name -> temporal.api.enums.v1.ScheduleOverlapPolicy + 19, // 42: temporal.api.schedule.v1.TriggerImmediatelyRequest.scheduled_time:type_name -> google.protobuf.Timestamp + 6, // 43: temporal.api.schedule.v1.TriggerImmediatelyRequest.custom_overlap_policy:type_name -> temporal.api.schedule.v1.CustomOverlapPolicy + 19, // 44: temporal.api.schedule.v1.BackfillRequest.start_time:type_name -> google.protobuf.Timestamp + 19, // 45: temporal.api.schedule.v1.BackfillRequest.end_time:type_name -> google.protobuf.Timestamp + 20, // 46: temporal.api.schedule.v1.BackfillRequest.overlap_policy:type_name -> temporal.api.enums.v1.ScheduleOverlapPolicy + 6, // 47: temporal.api.schedule.v1.BackfillRequest.custom_overlap_policy:type_name -> temporal.api.schedule.v1.CustomOverlapPolicy + 11, // 48: temporal.api.schedule.v1.SchedulePatch.trigger_immediately:type_name -> temporal.api.schedule.v1.TriggerImmediatelyRequest + 12, // 49: temporal.api.schedule.v1.SchedulePatch.backfill_request:type_name -> temporal.api.schedule.v1.BackfillRequest + 30, // 50: temporal.api.schedule.v1.ScheduleInfo.running_workflows:type_name -> temporal.api.common.v1.WorkflowExecution + 9, // 51: temporal.api.schedule.v1.ScheduleInfo.recent_actions:type_name -> temporal.api.schedule.v1.ScheduleActionResult + 19, // 52: temporal.api.schedule.v1.ScheduleInfo.future_action_times:type_name -> google.protobuf.Timestamp + 19, // 53: temporal.api.schedule.v1.ScheduleInfo.create_time:type_name -> google.protobuf.Timestamp + 19, // 54: temporal.api.schedule.v1.ScheduleInfo.update_time:type_name -> google.protobuf.Timestamp + 33, // 55: temporal.api.schedule.v1.ScheduleInfo.running_executions:type_name -> temporal.api.common.v1.Execution + 34, // 56: temporal.api.schedule.v1.ScheduleInfo.action_kind:type_name -> temporal.api.enums.v1.ExecutionType + 4, // 57: temporal.api.schedule.v1.Schedule.spec:type_name -> temporal.api.schedule.v1.ScheduleSpec + 8, // 58: temporal.api.schedule.v1.Schedule.action:type_name -> temporal.api.schedule.v1.ScheduleAction + 5, // 59: temporal.api.schedule.v1.Schedule.policies:type_name -> temporal.api.schedule.v1.SchedulePolicies + 10, // 60: temporal.api.schedule.v1.Schedule.state:type_name -> temporal.api.schedule.v1.ScheduleState + 4, // 61: temporal.api.schedule.v1.ScheduleListInfo.spec:type_name -> temporal.api.schedule.v1.ScheduleSpec + 35, // 62: temporal.api.schedule.v1.ScheduleListInfo.workflow_type:type_name -> temporal.api.common.v1.WorkflowType + 9, // 63: temporal.api.schedule.v1.ScheduleListInfo.recent_actions:type_name -> temporal.api.schedule.v1.ScheduleActionResult + 19, // 64: temporal.api.schedule.v1.ScheduleListInfo.future_action_times:type_name -> google.protobuf.Timestamp + 34, // 65: temporal.api.schedule.v1.ScheduleListInfo.action_kind:type_name -> temporal.api.enums.v1.ExecutionType + 36, // 66: temporal.api.schedule.v1.ScheduleListEntry.memo:type_name -> temporal.api.common.v1.Memo + 25, // 67: temporal.api.schedule.v1.ScheduleListEntry.search_attributes:type_name -> temporal.api.common.v1.SearchAttributes + 16, // 68: temporal.api.schedule.v1.ScheduleListEntry.info:type_name -> temporal.api.schedule.v1.ScheduleListInfo + 69, // [69:69] is the sub-list for method output_type + 69, // [69:69] is the sub-list for method input_type + 69, // [69:69] is the sub-list for extension type_name + 69, // [69:69] is the sub-list for extension extendee + 0, // [0:69] is the sub-list for field type_name } func init() { file_temporal_api_schedule_v1_message_proto_init() } @@ -1719,8 +2103,9 @@ func file_temporal_api_schedule_v1_message_proto_init() { if File_temporal_api_schedule_v1_message_proto != nil { return } - file_temporal_api_schedule_v1_message_proto_msgTypes[6].OneofWrappers = []any{ + file_temporal_api_schedule_v1_message_proto_msgTypes[8].OneofWrappers = []any{ (*ScheduleAction_StartWorkflow)(nil), + (*ScheduleAction_StartActivity)(nil), } type x struct{} out := protoimpl.TypeBuilder{ @@ -1728,7 +2113,7 @@ func file_temporal_api_schedule_v1_message_proto_init() { GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: unsafe.Slice(unsafe.StringData(file_temporal_api_schedule_v1_message_proto_rawDesc), len(file_temporal_api_schedule_v1_message_proto_rawDesc)), NumEnums: 0, - NumMessages: 16, + NumMessages: 18, NumExtensions: 0, NumServices: 0, }, From 5fd10bc0a6cd7694373353cf6e00a0886a0b8167 Mon Sep 17 00:00:00 2001 From: chaptersix <13949480+chaptersix@users.noreply.github.com> Date: Fri, 4 Sep 2026 22:27:33 -0500 Subject: [PATCH 2/2] Regenerate timeout annotations --- proto/api | 2 +- schedule/v1/message.pb.go | 41 ++++++++++++++++++++++++--------------- 2 files changed, 26 insertions(+), 17 deletions(-) diff --git a/proto/api b/proto/api index 181d05255..40766d34e 160000 --- a/proto/api +++ b/proto/api @@ -1 +1 @@ -Subproject commit 181d052558a750032a1b95de96961ba9987e00fe +Subproject commit 40766d34ea6c0d2e59c100c1cf20cdf4fb286fe4 diff --git a/schedule/v1/message.pb.go b/schedule/v1/message.pb.go index 236223855..8441afb55 100644 --- a/schedule/v1/message.pb.go +++ b/schedule/v1/message.pb.go @@ -753,22 +753,31 @@ func (x *CustomOverlapPolicy) GetName() string { type StartActivityExecutionInfo struct { state protoimpl.MessageState `protogen:"open.v1"` // The activity ID may have a timestamp appended for uniqueness. - ActivityId string `protobuf:"bytes,1,opt,name=activity_id,json=activityId,proto3" json:"activity_id,omitempty"` - ActivityType *v11.ActivityType `protobuf:"bytes,2,opt,name=activity_type,json=activityType,proto3" json:"activity_type,omitempty"` - TaskQueue *v12.TaskQueue `protobuf:"bytes,3,opt,name=task_queue,json=taskQueue,proto3" json:"task_queue,omitempty"` - ScheduleToCloseTimeout *durationpb.Duration `protobuf:"bytes,4,opt,name=schedule_to_close_timeout,json=scheduleToCloseTimeout,proto3" json:"schedule_to_close_timeout,omitempty"` - ScheduleToStartTimeout *durationpb.Duration `protobuf:"bytes,5,opt,name=schedule_to_start_timeout,json=scheduleToStartTimeout,proto3" json:"schedule_to_start_timeout,omitempty"` - StartToCloseTimeout *durationpb.Duration `protobuf:"bytes,6,opt,name=start_to_close_timeout,json=startToCloseTimeout,proto3" json:"start_to_close_timeout,omitempty"` - HeartbeatTimeout *durationpb.Duration `protobuf:"bytes,7,opt,name=heartbeat_timeout,json=heartbeatTimeout,proto3" json:"heartbeat_timeout,omitempty"` - RetryPolicy *v11.RetryPolicy `protobuf:"bytes,8,opt,name=retry_policy,json=retryPolicy,proto3" json:"retry_policy,omitempty"` - Input *v11.Payloads `protobuf:"bytes,9,opt,name=input,proto3" json:"input,omitempty"` - SearchAttributes *v11.SearchAttributes `protobuf:"bytes,10,opt,name=search_attributes,json=searchAttributes,proto3" json:"search_attributes,omitempty"` - Header *v11.Header `protobuf:"bytes,11,opt,name=header,proto3" json:"header,omitempty"` - UserMetadata *v13.UserMetadata `protobuf:"bytes,12,opt,name=user_metadata,json=userMetadata,proto3" json:"user_metadata,omitempty"` - Priority *v11.Priority `protobuf:"bytes,13,opt,name=priority,proto3" json:"priority,omitempty"` - StartDelay *durationpb.Duration `protobuf:"bytes,14,opt,name=start_delay,json=startDelay,proto3" json:"start_delay,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache + ActivityId string `protobuf:"bytes,1,opt,name=activity_id,json=activityId,proto3" json:"activity_id,omitempty"` + ActivityType *v11.ActivityType `protobuf:"bytes,2,opt,name=activity_type,json=activityType,proto3" json:"activity_type,omitempty"` + TaskQueue *v12.TaskQueue `protobuf:"bytes,3,opt,name=task_queue,json=taskQueue,proto3" json:"task_queue,omitempty"` + // (-- api-linter: core::0140::prepositions=disabled + // + // aip.dev/not-precedent: "to" is used to indicate interval. --) + ScheduleToCloseTimeout *durationpb.Duration `protobuf:"bytes,4,opt,name=schedule_to_close_timeout,json=scheduleToCloseTimeout,proto3" json:"schedule_to_close_timeout,omitempty"` + // (-- api-linter: core::0140::prepositions=disabled + // + // aip.dev/not-precedent: "to" is used to indicate interval. --) + ScheduleToStartTimeout *durationpb.Duration `protobuf:"bytes,5,opt,name=schedule_to_start_timeout,json=scheduleToStartTimeout,proto3" json:"schedule_to_start_timeout,omitempty"` + // (-- api-linter: core::0140::prepositions=disabled + // + // aip.dev/not-precedent: "to" is used to indicate interval. --) + StartToCloseTimeout *durationpb.Duration `protobuf:"bytes,6,opt,name=start_to_close_timeout,json=startToCloseTimeout,proto3" json:"start_to_close_timeout,omitempty"` + HeartbeatTimeout *durationpb.Duration `protobuf:"bytes,7,opt,name=heartbeat_timeout,json=heartbeatTimeout,proto3" json:"heartbeat_timeout,omitempty"` + RetryPolicy *v11.RetryPolicy `protobuf:"bytes,8,opt,name=retry_policy,json=retryPolicy,proto3" json:"retry_policy,omitempty"` + Input *v11.Payloads `protobuf:"bytes,9,opt,name=input,proto3" json:"input,omitempty"` + SearchAttributes *v11.SearchAttributes `protobuf:"bytes,10,opt,name=search_attributes,json=searchAttributes,proto3" json:"search_attributes,omitempty"` + Header *v11.Header `protobuf:"bytes,11,opt,name=header,proto3" json:"header,omitempty"` + UserMetadata *v13.UserMetadata `protobuf:"bytes,12,opt,name=user_metadata,json=userMetadata,proto3" json:"user_metadata,omitempty"` + Priority *v11.Priority `protobuf:"bytes,13,opt,name=priority,proto3" json:"priority,omitempty"` + StartDelay *durationpb.Duration `protobuf:"bytes,14,opt,name=start_delay,json=startDelay,proto3" json:"start_delay,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *StartActivityExecutionInfo) Reset() {