diff --git a/CHANGELOG.md b/CHANGELOG.md index ca48c506..9083bcc1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Changed +- Refreshed the vendored Durable Task protobuf contract to [`2dab0e7`](https://github.com/microsoft/durabletask-protobuf/commit/2dab0e72d0dea59c5c8c412dd03204a47b9aaf2f). It adds the sidecar extended-session RPCs and messages, `completionCount` on orchestration and entity completions, and tags on entity-started orchestrations. The worker doesn't use them yet. + - Azure Blob payload reads use independent `AllowAllContainersInConfiguredAccount` and `AdditionalAccountURLs` options, with endpoint-and-container defaults shared by native token and generic location reads. Additional accounts require identity authentication and exact service endpoints. V2 token queries and fragments are ignored when resolving existing references; new v2 tokens remain credential-free, and v1 reads remain supported. ### Added diff --git a/internal/protos/orchestrator_service.pb.go b/internal/protos/orchestrator_service.pb.go index 9aca4923..ffb97718 100644 --- a/internal/protos/orchestrator_service.pb.go +++ b/internal/protos/orchestrator_service.pb.go @@ -4,7 +4,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.36.12 -// protoc v7.36.1 +// protoc v7.36.2 // source: orchestrator_service.proto package protos @@ -3676,9 +3676,14 @@ type OrchestratorResponse struct { // This field is omitted for non-chunked completions. // // Deprecated: Marked as deprecated in orchestrator_service.proto. - ChunkIndex *wrapperspb.Int32Value `protobuf:"bytes,9,opt,name=chunkIndex,proto3" json:"chunkIndex,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache + ChunkIndex *wrapperspb.Int32Value `protobuf:"bytes,9,opt,name=chunkIndex,proto3" json:"chunkIndex,omitempty"` + // The number of completions already sent for this work item. It is 0 for the first completion and + // increases by one for each completion in an extended session. Every completion of a work item that + // is in an extended session must carry the current count, including completions sent with + // CompleteOrchestratorTask. A completion with the wrong count fails with NOT_FOUND. + CompletionCount int32 `protobuf:"varint,10,opt,name=completionCount,proto3" json:"completionCount,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *OrchestratorResponse) Reset() { @@ -3776,6 +3781,13 @@ func (x *OrchestratorResponse) GetChunkIndex() *wrapperspb.Int32Value { return nil } +func (x *OrchestratorResponse) GetCompletionCount() int32 { + if x != nil { + return x.CompletionCount + } + return 0 +} + type CreateInstanceRequest struct { state protoimpl.MessageState `protogen:"open.v1"` InstanceId string `protobuf:"bytes,1,opt,name=instanceId,proto3" json:"instanceId,omitempty"` @@ -6241,8 +6253,13 @@ type EntityBatchResult struct { OperationInfos []*OperationInfo `protobuf:"bytes,6,rep,name=operationInfos,proto3" json:"operationInfos,omitempty"` // used only with DTS // Whether or not an entity state is required to complete the original EntityBatchRequest and none was provided. RequiresState bool `protobuf:"varint,7,opt,name=requiresState,proto3" json:"requiresState,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache + // The number of completions already sent for this work item. It is 0 for the first completion and + // increases by one for each completion in an extended session. Every completion of a work item that + // is in an extended session must carry the current count, including completions sent with + // CompleteEntityTask. A completion with the wrong count fails with NOT_FOUND. + CompletionCount int32 `protobuf:"varint,8,opt,name=completionCount,proto3" json:"completionCount,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *EntityBatchResult) Reset() { @@ -6324,6 +6341,13 @@ func (x *EntityBatchResult) GetRequiresState() bool { return false } +func (x *EntityBatchResult) GetCompletionCount() int32 { + if x != nil { + return x.CompletionCount + } + return 0 +} + type EntityRequest struct { state protoimpl.MessageState `protogen:"open.v1"` InstanceId string `protobuf:"bytes,1,opt,name=instanceId,proto3" json:"instanceId,omitempty"` @@ -6897,6 +6921,7 @@ type StartNewOrchestrationAction struct { ScheduledTime *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=scheduledTime,proto3" json:"scheduledTime,omitempty"` RequestTime *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=requestTime,proto3" json:"requestTime,omitempty"` ParentTraceContext *TraceContext `protobuf:"bytes,7,opt,name=parentTraceContext,proto3" json:"parentTraceContext,omitempty"` + Tags map[string]string `protobuf:"bytes,8,rep,name=tags,proto3" json:"tags,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } @@ -6980,6 +7005,13 @@ func (x *StartNewOrchestrationAction) GetParentTraceContext() *TraceContext { return nil } +func (x *StartNewOrchestrationAction) GetTags() map[string]string { + if x != nil { + return x.Tags + } + return nil +} + type AbandonActivityTaskRequest struct { state protoimpl.MessageState `protogen:"open.v1"` CompletionToken string `protobuf:"bytes,1,opt,name=completionToken,proto3" json:"completionToken,omitempty"` @@ -7220,6 +7252,241 @@ func (*AbandonEntityTaskResponse) Descriptor() ([]byte, []int) { return file_orchestrator_service_proto_rawDescGZIP(), []int{104} } +type ReleaseTaskWorkItemRequest struct { + state protoimpl.MessageState `protogen:"open.v1"` + CompletionToken string `protobuf:"bytes,1,opt,name=completionToken,proto3" json:"completionToken,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ReleaseTaskWorkItemRequest) Reset() { + *x = ReleaseTaskWorkItemRequest{} + mi := &file_orchestrator_service_proto_msgTypes[105] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ReleaseTaskWorkItemRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ReleaseTaskWorkItemRequest) ProtoMessage() {} + +func (x *ReleaseTaskWorkItemRequest) ProtoReflect() protoreflect.Message { + mi := &file_orchestrator_service_proto_msgTypes[105] + 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 ReleaseTaskWorkItemRequest.ProtoReflect.Descriptor instead. +func (*ReleaseTaskWorkItemRequest) Descriptor() ([]byte, []int) { + return file_orchestrator_service_proto_rawDescGZIP(), []int{105} +} + +func (x *ReleaseTaskWorkItemRequest) GetCompletionToken() string { + if x != nil { + return x.CompletionToken + } + return "" +} + +type ReleaseTaskWorkItemResponse struct { + state protoimpl.MessageState `protogen:"open.v1"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ReleaseTaskWorkItemResponse) Reset() { + *x = ReleaseTaskWorkItemResponse{} + mi := &file_orchestrator_service_proto_msgTypes[106] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ReleaseTaskWorkItemResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ReleaseTaskWorkItemResponse) ProtoMessage() {} + +func (x *ReleaseTaskWorkItemResponse) ProtoReflect() protoreflect.Message { + mi := &file_orchestrator_service_proto_msgTypes[106] + 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 ReleaseTaskWorkItemResponse.ProtoReflect.Descriptor instead. +func (*ReleaseTaskWorkItemResponse) Descriptor() ([]byte, []int) { + return file_orchestrator_service_proto_rawDescGZIP(), []int{106} +} + +// Confirms that the service applied a completion. It gives the same guarantee as a successful +// CompleteOrchestratorTask or CompleteEntityTask response. +type ExtendedSessionAck struct { + state protoimpl.MessageState `protogen:"open.v1"` + // The number of history events stored for the instance's current execution + // after applying this completion. It is 0 after continue-as-new and for entities. + HistoryEventCount int32 `protobuf:"varint,1,opt,name=historyEventCount,proto3" json:"historyEventCount,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ExtendedSessionAck) Reset() { + *x = ExtendedSessionAck{} + mi := &file_orchestrator_service_proto_msgTypes[107] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ExtendedSessionAck) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ExtendedSessionAck) ProtoMessage() {} + +func (x *ExtendedSessionAck) ProtoReflect() protoreflect.Message { + mi := &file_orchestrator_service_proto_msgTypes[107] + 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 ExtendedSessionAck.ProtoReflect.Descriptor instead. +func (*ExtendedSessionAck) Descriptor() ([]byte, []int) { + return file_orchestrator_service_proto_rawDescGZIP(), []int{107} +} + +func (x *ExtendedSessionAck) GetHistoryEventCount() int32 { + if x != nil { + return x.HistoryEventCount + } + return 0 +} + +// A message on the stream of an extended-session completion. +type CompleteTaskWithExtendedSessionResponse struct { + state protoimpl.MessageState `protogen:"open.v1"` + // Types that are valid to be assigned to Response: + // + // *CompleteTaskWithExtendedSessionResponse_Ack + // *CompleteTaskWithExtendedSessionResponse_HealthPing + // *CompleteTaskWithExtendedSessionResponse_NewMessages + Response isCompleteTaskWithExtendedSessionResponse_Response `protobuf_oneof:"response"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *CompleteTaskWithExtendedSessionResponse) Reset() { + *x = CompleteTaskWithExtendedSessionResponse{} + mi := &file_orchestrator_service_proto_msgTypes[108] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *CompleteTaskWithExtendedSessionResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CompleteTaskWithExtendedSessionResponse) ProtoMessage() {} + +func (x *CompleteTaskWithExtendedSessionResponse) ProtoReflect() protoreflect.Message { + mi := &file_orchestrator_service_proto_msgTypes[108] + 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 CompleteTaskWithExtendedSessionResponse.ProtoReflect.Descriptor instead. +func (*CompleteTaskWithExtendedSessionResponse) Descriptor() ([]byte, []int) { + return file_orchestrator_service_proto_rawDescGZIP(), []int{108} +} + +func (x *CompleteTaskWithExtendedSessionResponse) GetResponse() isCompleteTaskWithExtendedSessionResponse_Response { + if x != nil { + return x.Response + } + return nil +} + +func (x *CompleteTaskWithExtendedSessionResponse) GetAck() *ExtendedSessionAck { + if x != nil { + if x, ok := x.Response.(*CompleteTaskWithExtendedSessionResponse_Ack); ok { + return x.Ack + } + } + return nil +} + +func (x *CompleteTaskWithExtendedSessionResponse) GetHealthPing() *HealthPing { + if x != nil { + if x, ok := x.Response.(*CompleteTaskWithExtendedSessionResponse_HealthPing); ok { + return x.HealthPing + } + } + return nil +} + +func (x *CompleteTaskWithExtendedSessionResponse) GetNewMessages() *HistoryChunk { + if x != nil { + if x, ok := x.Response.(*CompleteTaskWithExtendedSessionResponse_NewMessages); ok { + return x.NewMessages + } + } + return nil +} + +type isCompleteTaskWithExtendedSessionResponse_Response interface { + isCompleteTaskWithExtendedSessionResponse_Response() +} + +type CompleteTaskWithExtendedSessionResponse_Ack struct { + // Always the first message on the stream. + Ack *ExtendedSessionAck `protobuf:"bytes,1,opt,name=ack,proto3,oneof"` +} + +type CompleteTaskWithExtendedSessionResponse_HealthPing struct { + // Sent while the service waits for new messages for the instance. A ping shows only that + // the connection is alive. It is not a sign of progress. + HealthPing *HealthPing `protobuf:"bytes,2,opt,name=healthPing,proto3,oneof"` +} + +type CompleteTaskWithExtendedSessionResponse_NewMessages struct { + // One part of the next batch of new messages. A large batch is split into several chunks. + // The batch is complete only when the stream ends with an OK status. + NewMessages *HistoryChunk `protobuf:"bytes,3,opt,name=newMessages,proto3,oneof"` +} + +func (*CompleteTaskWithExtendedSessionResponse_Ack) isCompleteTaskWithExtendedSessionResponse_Response() { +} + +func (*CompleteTaskWithExtendedSessionResponse_HealthPing) isCompleteTaskWithExtendedSessionResponse_Response() { +} + +func (*CompleteTaskWithExtendedSessionResponse_NewMessages) isCompleteTaskWithExtendedSessionResponse_Response() { +} + type SkipGracefulOrchestrationTerminationsRequest struct { state protoimpl.MessageState `protogen:"open.v1"` InstanceBatch *InstanceBatch `protobuf:"bytes,1,opt,name=instanceBatch,proto3" json:"instanceBatch,omitempty"` @@ -7230,7 +7497,7 @@ type SkipGracefulOrchestrationTerminationsRequest struct { func (x *SkipGracefulOrchestrationTerminationsRequest) Reset() { *x = SkipGracefulOrchestrationTerminationsRequest{} - mi := &file_orchestrator_service_proto_msgTypes[105] + mi := &file_orchestrator_service_proto_msgTypes[109] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -7242,7 +7509,7 @@ func (x *SkipGracefulOrchestrationTerminationsRequest) String() string { func (*SkipGracefulOrchestrationTerminationsRequest) ProtoMessage() {} func (x *SkipGracefulOrchestrationTerminationsRequest) ProtoReflect() protoreflect.Message { - mi := &file_orchestrator_service_proto_msgTypes[105] + mi := &file_orchestrator_service_proto_msgTypes[109] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -7255,7 +7522,7 @@ func (x *SkipGracefulOrchestrationTerminationsRequest) ProtoReflect() protorefle // Deprecated: Use SkipGracefulOrchestrationTerminationsRequest.ProtoReflect.Descriptor instead. func (*SkipGracefulOrchestrationTerminationsRequest) Descriptor() ([]byte, []int) { - return file_orchestrator_service_proto_rawDescGZIP(), []int{105} + return file_orchestrator_service_proto_rawDescGZIP(), []int{109} } func (x *SkipGracefulOrchestrationTerminationsRequest) GetInstanceBatch() *InstanceBatch { @@ -7283,7 +7550,7 @@ type SkipGracefulOrchestrationTerminationsResponse struct { func (x *SkipGracefulOrchestrationTerminationsResponse) Reset() { *x = SkipGracefulOrchestrationTerminationsResponse{} - mi := &file_orchestrator_service_proto_msgTypes[106] + mi := &file_orchestrator_service_proto_msgTypes[110] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -7295,7 +7562,7 @@ func (x *SkipGracefulOrchestrationTerminationsResponse) String() string { func (*SkipGracefulOrchestrationTerminationsResponse) ProtoMessage() {} func (x *SkipGracefulOrchestrationTerminationsResponse) ProtoReflect() protoreflect.Message { - mi := &file_orchestrator_service_proto_msgTypes[106] + mi := &file_orchestrator_service_proto_msgTypes[110] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -7308,7 +7575,7 @@ func (x *SkipGracefulOrchestrationTerminationsResponse) ProtoReflect() protorefl // Deprecated: Use SkipGracefulOrchestrationTerminationsResponse.ProtoReflect.Descriptor instead. func (*SkipGracefulOrchestrationTerminationsResponse) Descriptor() ([]byte, []int) { - return file_orchestrator_service_proto_rawDescGZIP(), []int{106} + return file_orchestrator_service_proto_rawDescGZIP(), []int{110} } func (x *SkipGracefulOrchestrationTerminationsResponse) GetUnterminatedInstanceIds() []string { @@ -7331,7 +7598,7 @@ type GetWorkItemsRequest struct { func (x *GetWorkItemsRequest) Reset() { *x = GetWorkItemsRequest{} - mi := &file_orchestrator_service_proto_msgTypes[107] + mi := &file_orchestrator_service_proto_msgTypes[111] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -7343,7 +7610,7 @@ func (x *GetWorkItemsRequest) String() string { func (*GetWorkItemsRequest) ProtoMessage() {} func (x *GetWorkItemsRequest) ProtoReflect() protoreflect.Message { - mi := &file_orchestrator_service_proto_msgTypes[107] + mi := &file_orchestrator_service_proto_msgTypes[111] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -7356,7 +7623,7 @@ func (x *GetWorkItemsRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use GetWorkItemsRequest.ProtoReflect.Descriptor instead. func (*GetWorkItemsRequest) Descriptor() ([]byte, []int) { - return file_orchestrator_service_proto_rawDescGZIP(), []int{107} + return file_orchestrator_service_proto_rawDescGZIP(), []int{111} } func (x *GetWorkItemsRequest) GetMaxConcurrentOrchestrationWorkItems() int32 { @@ -7405,7 +7672,7 @@ type WorkItemFilters struct { func (x *WorkItemFilters) Reset() { *x = WorkItemFilters{} - mi := &file_orchestrator_service_proto_msgTypes[108] + mi := &file_orchestrator_service_proto_msgTypes[112] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -7417,7 +7684,7 @@ func (x *WorkItemFilters) String() string { func (*WorkItemFilters) ProtoMessage() {} func (x *WorkItemFilters) ProtoReflect() protoreflect.Message { - mi := &file_orchestrator_service_proto_msgTypes[108] + mi := &file_orchestrator_service_proto_msgTypes[112] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -7430,7 +7697,7 @@ func (x *WorkItemFilters) ProtoReflect() protoreflect.Message { // Deprecated: Use WorkItemFilters.ProtoReflect.Descriptor instead. func (*WorkItemFilters) Descriptor() ([]byte, []int) { - return file_orchestrator_service_proto_rawDescGZIP(), []int{108} + return file_orchestrator_service_proto_rawDescGZIP(), []int{112} } func (x *WorkItemFilters) GetOrchestrations() []*OrchestrationFilter { @@ -7464,7 +7731,7 @@ type OrchestrationFilter struct { func (x *OrchestrationFilter) Reset() { *x = OrchestrationFilter{} - mi := &file_orchestrator_service_proto_msgTypes[109] + mi := &file_orchestrator_service_proto_msgTypes[113] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -7476,7 +7743,7 @@ func (x *OrchestrationFilter) String() string { func (*OrchestrationFilter) ProtoMessage() {} func (x *OrchestrationFilter) ProtoReflect() protoreflect.Message { - mi := &file_orchestrator_service_proto_msgTypes[109] + mi := &file_orchestrator_service_proto_msgTypes[113] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -7489,7 +7756,7 @@ func (x *OrchestrationFilter) ProtoReflect() protoreflect.Message { // Deprecated: Use OrchestrationFilter.ProtoReflect.Descriptor instead. func (*OrchestrationFilter) Descriptor() ([]byte, []int) { - return file_orchestrator_service_proto_rawDescGZIP(), []int{109} + return file_orchestrator_service_proto_rawDescGZIP(), []int{113} } func (x *OrchestrationFilter) GetName() string { @@ -7516,7 +7783,7 @@ type ActivityFilter struct { func (x *ActivityFilter) Reset() { *x = ActivityFilter{} - mi := &file_orchestrator_service_proto_msgTypes[110] + mi := &file_orchestrator_service_proto_msgTypes[114] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -7528,7 +7795,7 @@ func (x *ActivityFilter) String() string { func (*ActivityFilter) ProtoMessage() {} func (x *ActivityFilter) ProtoReflect() protoreflect.Message { - mi := &file_orchestrator_service_proto_msgTypes[110] + mi := &file_orchestrator_service_proto_msgTypes[114] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -7541,7 +7808,7 @@ func (x *ActivityFilter) ProtoReflect() protoreflect.Message { // Deprecated: Use ActivityFilter.ProtoReflect.Descriptor instead. func (*ActivityFilter) Descriptor() ([]byte, []int) { - return file_orchestrator_service_proto_rawDescGZIP(), []int{110} + return file_orchestrator_service_proto_rawDescGZIP(), []int{114} } func (x *ActivityFilter) GetName() string { @@ -7567,7 +7834,7 @@ type EntityFilter struct { func (x *EntityFilter) Reset() { *x = EntityFilter{} - mi := &file_orchestrator_service_proto_msgTypes[111] + mi := &file_orchestrator_service_proto_msgTypes[115] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -7579,7 +7846,7 @@ func (x *EntityFilter) String() string { func (*EntityFilter) ProtoMessage() {} func (x *EntityFilter) ProtoReflect() protoreflect.Message { - mi := &file_orchestrator_service_proto_msgTypes[111] + mi := &file_orchestrator_service_proto_msgTypes[115] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -7592,7 +7859,7 @@ func (x *EntityFilter) ProtoReflect() protoreflect.Message { // Deprecated: Use EntityFilter.ProtoReflect.Descriptor instead. func (*EntityFilter) Descriptor() ([]byte, []int) { - return file_orchestrator_service_proto_rawDescGZIP(), []int{111} + return file_orchestrator_service_proto_rawDescGZIP(), []int{115} } func (x *EntityFilter) GetName() string { @@ -7619,7 +7886,7 @@ type WorkItem struct { func (x *WorkItem) Reset() { *x = WorkItem{} - mi := &file_orchestrator_service_proto_msgTypes[112] + mi := &file_orchestrator_service_proto_msgTypes[116] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -7631,7 +7898,7 @@ func (x *WorkItem) String() string { func (*WorkItem) ProtoMessage() {} func (x *WorkItem) ProtoReflect() protoreflect.Message { - mi := &file_orchestrator_service_proto_msgTypes[112] + mi := &file_orchestrator_service_proto_msgTypes[116] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -7644,7 +7911,7 @@ func (x *WorkItem) ProtoReflect() protoreflect.Message { // Deprecated: Use WorkItem.ProtoReflect.Descriptor instead. func (*WorkItem) Descriptor() ([]byte, []int) { - return file_orchestrator_service_proto_rawDescGZIP(), []int{112} + return file_orchestrator_service_proto_rawDescGZIP(), []int{116} } func (x *WorkItem) GetRequest() isWorkItem_Request { @@ -7748,7 +8015,7 @@ type CompleteTaskResponse struct { func (x *CompleteTaskResponse) Reset() { *x = CompleteTaskResponse{} - mi := &file_orchestrator_service_proto_msgTypes[113] + mi := &file_orchestrator_service_proto_msgTypes[117] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -7760,7 +8027,7 @@ func (x *CompleteTaskResponse) String() string { func (*CompleteTaskResponse) ProtoMessage() {} func (x *CompleteTaskResponse) ProtoReflect() protoreflect.Message { - mi := &file_orchestrator_service_proto_msgTypes[113] + mi := &file_orchestrator_service_proto_msgTypes[117] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -7773,7 +8040,7 @@ func (x *CompleteTaskResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use CompleteTaskResponse.ProtoReflect.Descriptor instead. func (*CompleteTaskResponse) Descriptor() ([]byte, []int) { - return file_orchestrator_service_proto_rawDescGZIP(), []int{113} + return file_orchestrator_service_proto_rawDescGZIP(), []int{117} } type HealthPing struct { @@ -7784,7 +8051,7 @@ type HealthPing struct { func (x *HealthPing) Reset() { *x = HealthPing{} - mi := &file_orchestrator_service_proto_msgTypes[114] + mi := &file_orchestrator_service_proto_msgTypes[118] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -7796,7 +8063,7 @@ func (x *HealthPing) String() string { func (*HealthPing) ProtoMessage() {} func (x *HealthPing) ProtoReflect() protoreflect.Message { - mi := &file_orchestrator_service_proto_msgTypes[114] + mi := &file_orchestrator_service_proto_msgTypes[118] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -7809,7 +8076,7 @@ func (x *HealthPing) ProtoReflect() protoreflect.Message { // Deprecated: Use HealthPing.ProtoReflect.Descriptor instead. func (*HealthPing) Descriptor() ([]byte, []int) { - return file_orchestrator_service_proto_rawDescGZIP(), []int{114} + return file_orchestrator_service_proto_rawDescGZIP(), []int{118} } type StreamInstanceHistoryRequest struct { @@ -7824,7 +8091,7 @@ type StreamInstanceHistoryRequest struct { func (x *StreamInstanceHistoryRequest) Reset() { *x = StreamInstanceHistoryRequest{} - mi := &file_orchestrator_service_proto_msgTypes[115] + mi := &file_orchestrator_service_proto_msgTypes[119] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -7836,7 +8103,7 @@ func (x *StreamInstanceHistoryRequest) String() string { func (*StreamInstanceHistoryRequest) ProtoMessage() {} func (x *StreamInstanceHistoryRequest) ProtoReflect() protoreflect.Message { - mi := &file_orchestrator_service_proto_msgTypes[115] + mi := &file_orchestrator_service_proto_msgTypes[119] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -7849,7 +8116,7 @@ func (x *StreamInstanceHistoryRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use StreamInstanceHistoryRequest.ProtoReflect.Descriptor instead. func (*StreamInstanceHistoryRequest) Descriptor() ([]byte, []int) { - return file_orchestrator_service_proto_rawDescGZIP(), []int{115} + return file_orchestrator_service_proto_rawDescGZIP(), []int{119} } func (x *StreamInstanceHistoryRequest) GetInstanceId() string { @@ -7882,7 +8149,7 @@ type HistoryChunk struct { func (x *HistoryChunk) Reset() { *x = HistoryChunk{} - mi := &file_orchestrator_service_proto_msgTypes[116] + mi := &file_orchestrator_service_proto_msgTypes[120] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -7894,7 +8161,7 @@ func (x *HistoryChunk) String() string { func (*HistoryChunk) ProtoMessage() {} func (x *HistoryChunk) ProtoReflect() protoreflect.Message { - mi := &file_orchestrator_service_proto_msgTypes[116] + mi := &file_orchestrator_service_proto_msgTypes[120] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -7907,7 +8174,7 @@ func (x *HistoryChunk) ProtoReflect() protoreflect.Message { // Deprecated: Use HistoryChunk.ProtoReflect.Descriptor instead. func (*HistoryChunk) Descriptor() ([]byte, []int) { - return file_orchestrator_service_proto_rawDescGZIP(), []int{116} + return file_orchestrator_service_proto_rawDescGZIP(), []int{120} } func (x *HistoryChunk) GetEvents() []*HistoryEvent { @@ -7927,7 +8194,7 @@ type InstanceBatch struct { func (x *InstanceBatch) Reset() { *x = InstanceBatch{} - mi := &file_orchestrator_service_proto_msgTypes[117] + mi := &file_orchestrator_service_proto_msgTypes[121] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -7939,7 +8206,7 @@ func (x *InstanceBatch) String() string { func (*InstanceBatch) ProtoMessage() {} func (x *InstanceBatch) ProtoReflect() protoreflect.Message { - mi := &file_orchestrator_service_proto_msgTypes[117] + mi := &file_orchestrator_service_proto_msgTypes[121] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -7952,7 +8219,7 @@ func (x *InstanceBatch) ProtoReflect() protoreflect.Message { // Deprecated: Use InstanceBatch.ProtoReflect.Descriptor instead. func (*InstanceBatch) Descriptor() ([]byte, []int) { - return file_orchestrator_service_proto_rawDescGZIP(), []int{117} + return file_orchestrator_service_proto_rawDescGZIP(), []int{121} } func (x *InstanceBatch) GetInstanceIds() []string { @@ -8265,7 +8532,7 @@ const file_orchestrator_service_proto_rawDesc = "" + "\x19orchestrationTraceContext\x18\b \x01(\v2\x1a.OrchestrationTraceContextR\x19orchestrationTraceContext\x1aU\n" + "\x0fPropertiesEntry\x12\x10\n" + "\x03key\x18\x01 \x01(\tR\x03key\x12,\n" + - "\x05value\x18\x02 \x01(\v2\x16.google.protobuf.ValueR\x05value:\x028\x01\"\x85\x04\n" + + "\x05value\x18\x02 \x01(\v2\x16.google.protobuf.ValueR\x05value:\x028\x01\"\xaf\x04\n" + "\x14OrchestratorResponse\x12\x1e\n" + "\n" + "instanceId\x18\x01 \x01(\tR\n" + @@ -8279,7 +8546,9 @@ const file_orchestrator_service_proto_rawDesc = "" + "\tisPartial\x18\b \x01(\bB\x02\x18\x01R\tisPartial\x12?\n" + "\n" + "chunkIndex\x18\t \x01(\v2\x1b.google.protobuf.Int32ValueB\x02\x18\x01R\n" + - "chunkIndex\"\x96\x05\n" + + "chunkIndex\x12(\n" + + "\x0fcompletionCount\x18\n" + + " \x01(\x05R\x0fcompletionCount\"\x96\x05\n" + "\x15CreateInstanceRequest\x12\x1e\n" + "\n" + "instanceId\x18\x01 \x01(\tR\n" + @@ -8484,7 +8753,7 @@ const file_orchestrator_service_proto_rawDesc = "" + "properties\x1aU\n" + "\x0fPropertiesEntry\x12\x10\n" + "\x03key\x18\x01 \x01(\tR\x03key\x12,\n" + - "\x05value\x18\x02 \x01(\v2\x16.google.protobuf.ValueR\x05value:\x028\x01\"\xf0\x02\n" + + "\x05value\x18\x02 \x01(\v2\x16.google.protobuf.ValueR\x05value:\x028\x01\"\x9a\x03\n" + "\x11EntityBatchResult\x12*\n" + "\aresults\x18\x01 \x03(\v2\x10.OperationResultR\aresults\x12*\n" + "\aactions\x18\x02 \x03(\v2\x10.OperationActionR\aactions\x12>\n" + @@ -8492,7 +8761,8 @@ const file_orchestrator_service_proto_rawDesc = "" + "\x0efailureDetails\x18\x04 \x01(\v2\x13.TaskFailureDetailsR\x0efailureDetails\x12(\n" + "\x0fcompletionToken\x18\x05 \x01(\tR\x0fcompletionToken\x126\n" + "\x0eoperationInfos\x18\x06 \x03(\v2\x0e.OperationInfoR\x0eoperationInfos\x12$\n" + - "\rrequiresState\x18\a \x01(\bR\rrequiresState\"\xce\x01\n" + + "\rrequiresState\x18\a \x01(\bR\rrequiresState\x12(\n" + + "\x0fcompletionCount\x18\b \x01(\x05R\x0fcompletionCount\"\xce\x01\n" + "\rEntityRequest\x12\x1e\n" + "\n" + "instanceId\x18\x01 \x01(\tR\n" + @@ -8540,7 +8810,7 @@ const file_orchestrator_service_proto_rawDesc = "" + "\x05input\x18\x03 \x01(\v2\x1c.google.protobuf.StringValueR\x05input\x12@\n" + "\rscheduledTime\x18\x04 \x01(\v2\x1a.google.protobuf.TimestampR\rscheduledTime\x12<\n" + "\vrequestTime\x18\x05 \x01(\v2\x1a.google.protobuf.TimestampR\vrequestTime\x12=\n" + - "\x12parentTraceContext\x18\x06 \x01(\v2\r.TraceContextR\x12parentTraceContext\"\xfc\x02\n" + + "\x12parentTraceContext\x18\x06 \x01(\v2\r.TraceContextR\x12parentTraceContext\"\xf1\x03\n" + "\x1bStartNewOrchestrationAction\x12\x1e\n" + "\n" + "instanceId\x18\x01 \x01(\tR\n" + @@ -8550,7 +8820,11 @@ const file_orchestrator_service_proto_rawDesc = "" + "\x05input\x18\x04 \x01(\v2\x1c.google.protobuf.StringValueR\x05input\x12@\n" + "\rscheduledTime\x18\x05 \x01(\v2\x1a.google.protobuf.TimestampR\rscheduledTime\x12<\n" + "\vrequestTime\x18\x06 \x01(\v2\x1a.google.protobuf.TimestampR\vrequestTime\x12=\n" + - "\x12parentTraceContext\x18\a \x01(\v2\r.TraceContextR\x12parentTraceContext\"F\n" + + "\x12parentTraceContext\x18\a \x01(\v2\r.TraceContextR\x12parentTraceContext\x12:\n" + + "\x04tags\x18\b \x03(\v2&.StartNewOrchestrationAction.TagsEntryR\x04tags\x1a7\n" + + "\tTagsEntry\x12\x10\n" + + "\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n" + + "\x05value\x18\x02 \x01(\tR\x05value:\x028\x01\"F\n" + "\x1aAbandonActivityTaskRequest\x12(\n" + "\x0fcompletionToken\x18\x01 \x01(\tR\x0fcompletionToken\"\x1d\n" + "\x1bAbandonActivityTaskResponse\"K\n" + @@ -8559,7 +8833,20 @@ const file_orchestrator_service_proto_rawDesc = "" + " AbandonOrchestrationTaskResponse\"D\n" + "\x18AbandonEntityTaskRequest\x12(\n" + "\x0fcompletionToken\x18\x01 \x01(\tR\x0fcompletionToken\"\x1b\n" + - "\x19AbandonEntityTaskResponse\"\x9a\x01\n" + + "\x19AbandonEntityTaskResponse\"F\n" + + "\x1aReleaseTaskWorkItemRequest\x12(\n" + + "\x0fcompletionToken\x18\x01 \x01(\tR\x0fcompletionToken\"\x1d\n" + + "\x1bReleaseTaskWorkItemResponse\"B\n" + + "\x12ExtendedSessionAck\x12,\n" + + "\x11historyEventCount\x18\x01 \x01(\x05R\x11historyEventCount\"\xc0\x01\n" + + "'CompleteTaskWithExtendedSessionResponse\x12'\n" + + "\x03ack\x18\x01 \x01(\v2\x13.ExtendedSessionAckH\x00R\x03ack\x12-\n" + + "\n" + + "healthPing\x18\x02 \x01(\v2\v.HealthPingH\x00R\n" + + "healthPing\x121\n" + + "\vnewMessages\x18\x03 \x01(\v2\r.HistoryChunkH\x00R\vnewMessagesB\n" + + "\n" + + "\bresponse\"\x9a\x01\n" + ",SkipGracefulOrchestrationTerminationsRequest\x124\n" + "\rinstanceBatch\x18\x01 \x01(\v2\x0e.InstanceBatchR\rinstanceBatch\x124\n" + "\x06reason\x18\x02 \x01(\v2\x1c.google.protobuf.StringValueR\x06reason\"i\n" + @@ -8623,7 +8910,7 @@ const file_orchestrator_service_proto_rawDesc = "" + "\x1dWORKER_CAPABILITY_UNSPECIFIED\x10\x00\x12'\n" + "#WORKER_CAPABILITY_HISTORY_STREAMING\x10\x01\x12%\n" + "!WORKER_CAPABILITY_SCHEDULED_TASKS\x10\x02\x12$\n" + - " WORKER_CAPABILITY_LARGE_PAYLOADS\x10\x032\xf0\x0f\n" + + " WORKER_CAPABILITY_LARGE_PAYLOADS\x10\x032\x81\x13\n" + "\x15TaskHubSidecarService\x127\n" + "\x05Hello\x12\x16.google.protobuf.Empty\x1a\x16.google.protobuf.Empty\x12@\n" + "\rStartInstance\x12\x16.CreateInstanceRequest\x1a\x17.CreateInstanceResponse\x128\n" + @@ -8643,7 +8930,9 @@ const file_orchestrator_service_proto_rawDesc = "" + "\fGetWorkItems\x12\x14.GetWorkItemsRequest\x1a\t.WorkItem0\x01\x12@\n" + "\x14CompleteActivityTask\x12\x11.ActivityResponse\x1a\x15.CompleteTaskResponse\x12H\n" + "\x18CompleteOrchestratorTask\x12\x15.OrchestratorResponse\x1a\x15.CompleteTaskResponse\x12?\n" + - "\x12CompleteEntityTask\x12\x12.EntityBatchResult\x1a\x15.CompleteTaskResponse\x12G\n" + + "\x12CompleteEntityTask\x12\x12.EntityBatchResult\x1a\x15.CompleteTaskResponse\x12p\n" + + "+CompleteOrchestratorTaskWithExtendedSession\x12\x15.OrchestratorResponse\x1a(.CompleteTaskWithExtendedSessionResponse0\x01\x12g\n" + + "%CompleteEntityTaskWithExtendedSession\x12\x12.EntityBatchResult\x1a(.CompleteTaskWithExtendedSessionResponse0\x01\x12G\n" + "\x15StreamInstanceHistory\x12\x1d.StreamInstanceHistoryRequest\x1a\r.HistoryChunk0\x01\x12>\n" + "\rCreateTaskHub\x12\x15.CreateTaskHubRequest\x1a\x16.CreateTaskHubResponse\x12>\n" + "\rDeleteTaskHub\x12\x15.DeleteTaskHubRequest\x1a\x16.DeleteTaskHubResponse\x12;\n" + @@ -8653,7 +8942,9 @@ const file_orchestrator_service_proto_rawDesc = "" + "\x12CleanEntityStorage\x12\x1a.CleanEntityStorageRequest\x1a\x1b.CleanEntityStorageResponse\x12X\n" + "\x1bAbandonTaskActivityWorkItem\x12\x1b.AbandonActivityTaskRequest\x1a\x1c.AbandonActivityTaskResponse\x12f\n" + "\x1fAbandonTaskOrchestratorWorkItem\x12 .AbandonOrchestrationTaskRequest\x1a!.AbandonOrchestrationTaskResponse\x12R\n" + - "\x19AbandonTaskEntityWorkItem\x12\x19.AbandonEntityTaskRequest\x1a\x1a.AbandonEntityTaskResponse\x12\x86\x01\n" + + "\x19AbandonTaskEntityWorkItem\x12\x19.AbandonEntityTaskRequest\x1a\x1a.AbandonEntityTaskResponse\x12\\\n" + + "\x1fReleaseTaskOrchestratorWorkItem\x12\x1b.ReleaseTaskWorkItemRequest\x1a\x1c.ReleaseTaskWorkItemResponse\x12V\n" + + "\x19ReleaseTaskEntityWorkItem\x12\x1b.ReleaseTaskWorkItemRequest\x1a\x1c.ReleaseTaskWorkItemResponse\x12\x86\x01\n" + "%SkipGracefulOrchestrationTerminations\x12-.SkipGracefulOrchestrationTerminationsRequest\x1a..SkipGracefulOrchestrationTerminationsResponseBf\n" + "1com.microsoft.durabletask.implementation.protobufZ\x10/internal/protos\xaa\x02\x1eMicrosoft.DurableTask.Protobufb\x06proto3" @@ -8670,7 +8961,7 @@ func file_orchestrator_service_proto_rawDescGZIP() []byte { } var file_orchestrator_service_proto_enumTypes = make([]protoimpl.EnumInfo, 2) -var file_orchestrator_service_proto_msgTypes = make([]protoimpl.MessageInfo, 131) +var file_orchestrator_service_proto_msgTypes = make([]protoimpl.MessageInfo, 136) var file_orchestrator_service_proto_goTypes = []any{ (OrchestrationStatus)(0), // 0: OrchestrationStatus (WorkerCapability)(0), // 1: WorkerCapability @@ -8779,112 +9070,117 @@ var file_orchestrator_service_proto_goTypes = []any{ (*AbandonOrchestrationTaskResponse)(nil), // 104: AbandonOrchestrationTaskResponse (*AbandonEntityTaskRequest)(nil), // 105: AbandonEntityTaskRequest (*AbandonEntityTaskResponse)(nil), // 106: AbandonEntityTaskResponse - (*SkipGracefulOrchestrationTerminationsRequest)(nil), // 107: SkipGracefulOrchestrationTerminationsRequest - (*SkipGracefulOrchestrationTerminationsResponse)(nil), // 108: SkipGracefulOrchestrationTerminationsResponse - (*GetWorkItemsRequest)(nil), // 109: GetWorkItemsRequest - (*WorkItemFilters)(nil), // 110: WorkItemFilters - (*OrchestrationFilter)(nil), // 111: OrchestrationFilter - (*ActivityFilter)(nil), // 112: ActivityFilter - (*EntityFilter)(nil), // 113: EntityFilter - (*WorkItem)(nil), // 114: WorkItem - (*CompleteTaskResponse)(nil), // 115: CompleteTaskResponse - (*HealthPing)(nil), // 116: HealthPing - (*StreamInstanceHistoryRequest)(nil), // 117: StreamInstanceHistoryRequest - (*HistoryChunk)(nil), // 118: HistoryChunk - (*InstanceBatch)(nil), // 119: InstanceBatch - nil, // 120: ActivityRequest.TagsEntry - nil, // 121: TaskFailureDetails.PropertiesEntry - nil, // 122: ExecutionStartedEvent.TagsEntry - nil, // 123: TaskScheduledEvent.TagsEntry - nil, // 124: SubOrchestrationInstanceCreatedEvent.TagsEntry - nil, // 125: ExecutionRewoundEvent.TagsEntry - nil, // 126: ScheduleTaskAction.TagsEntry - nil, // 127: CreateSubOrchestrationAction.TagsEntry - nil, // 128: CompleteOrchestrationAction.TagsEntry - nil, // 129: OrchestratorRequest.PropertiesEntry - nil, // 130: CreateInstanceRequest.TagsEntry - nil, // 131: OrchestrationState.TagsEntry - nil, // 132: EntityBatchRequest.PropertiesEntry - (*wrapperspb.StringValue)(nil), // 133: google.protobuf.StringValue - (*timestamppb.Timestamp)(nil), // 134: google.protobuf.Timestamp - (*wrapperspb.Int32Value)(nil), // 135: google.protobuf.Int32Value - (*durationpb.Duration)(nil), // 136: google.protobuf.Duration - (*wrapperspb.BoolValue)(nil), // 137: google.protobuf.BoolValue - (*structpb.Value)(nil), // 138: google.protobuf.Value - (*emptypb.Empty)(nil), // 139: google.protobuf.Empty + (*ReleaseTaskWorkItemRequest)(nil), // 107: ReleaseTaskWorkItemRequest + (*ReleaseTaskWorkItemResponse)(nil), // 108: ReleaseTaskWorkItemResponse + (*ExtendedSessionAck)(nil), // 109: ExtendedSessionAck + (*CompleteTaskWithExtendedSessionResponse)(nil), // 110: CompleteTaskWithExtendedSessionResponse + (*SkipGracefulOrchestrationTerminationsRequest)(nil), // 111: SkipGracefulOrchestrationTerminationsRequest + (*SkipGracefulOrchestrationTerminationsResponse)(nil), // 112: SkipGracefulOrchestrationTerminationsResponse + (*GetWorkItemsRequest)(nil), // 113: GetWorkItemsRequest + (*WorkItemFilters)(nil), // 114: WorkItemFilters + (*OrchestrationFilter)(nil), // 115: OrchestrationFilter + (*ActivityFilter)(nil), // 116: ActivityFilter + (*EntityFilter)(nil), // 117: EntityFilter + (*WorkItem)(nil), // 118: WorkItem + (*CompleteTaskResponse)(nil), // 119: CompleteTaskResponse + (*HealthPing)(nil), // 120: HealthPing + (*StreamInstanceHistoryRequest)(nil), // 121: StreamInstanceHistoryRequest + (*HistoryChunk)(nil), // 122: HistoryChunk + (*InstanceBatch)(nil), // 123: InstanceBatch + nil, // 124: ActivityRequest.TagsEntry + nil, // 125: TaskFailureDetails.PropertiesEntry + nil, // 126: ExecutionStartedEvent.TagsEntry + nil, // 127: TaskScheduledEvent.TagsEntry + nil, // 128: SubOrchestrationInstanceCreatedEvent.TagsEntry + nil, // 129: ExecutionRewoundEvent.TagsEntry + nil, // 130: ScheduleTaskAction.TagsEntry + nil, // 131: CreateSubOrchestrationAction.TagsEntry + nil, // 132: CompleteOrchestrationAction.TagsEntry + nil, // 133: OrchestratorRequest.PropertiesEntry + nil, // 134: CreateInstanceRequest.TagsEntry + nil, // 135: OrchestrationState.TagsEntry + nil, // 136: EntityBatchRequest.PropertiesEntry + nil, // 137: StartNewOrchestrationAction.TagsEntry + (*wrapperspb.StringValue)(nil), // 138: google.protobuf.StringValue + (*timestamppb.Timestamp)(nil), // 139: google.protobuf.Timestamp + (*wrapperspb.Int32Value)(nil), // 140: google.protobuf.Int32Value + (*durationpb.Duration)(nil), // 141: google.protobuf.Duration + (*wrapperspb.BoolValue)(nil), // 142: google.protobuf.BoolValue + (*structpb.Value)(nil), // 143: google.protobuf.Value + (*emptypb.Empty)(nil), // 144: google.protobuf.Empty } var file_orchestrator_service_proto_depIdxs = []int32{ - 133, // 0: OrchestrationInstance.executionId:type_name -> google.protobuf.StringValue - 133, // 1: ActivityRequest.version:type_name -> google.protobuf.StringValue - 133, // 2: ActivityRequest.input:type_name -> google.protobuf.StringValue + 138, // 0: OrchestrationInstance.executionId:type_name -> google.protobuf.StringValue + 138, // 1: ActivityRequest.version:type_name -> google.protobuf.StringValue + 138, // 2: ActivityRequest.input:type_name -> google.protobuf.StringValue 2, // 3: ActivityRequest.orchestrationInstance:type_name -> OrchestrationInstance 7, // 4: ActivityRequest.parentTraceContext:type_name -> TraceContext - 120, // 5: ActivityRequest.tags:type_name -> ActivityRequest.TagsEntry - 133, // 6: ActivityResponse.result:type_name -> google.protobuf.StringValue + 124, // 5: ActivityRequest.tags:type_name -> ActivityRequest.TagsEntry + 138, // 6: ActivityResponse.result:type_name -> google.protobuf.StringValue 5, // 7: ActivityResponse.failureDetails:type_name -> TaskFailureDetails - 133, // 8: TaskFailureDetails.stackTrace:type_name -> google.protobuf.StringValue + 138, // 8: TaskFailureDetails.stackTrace:type_name -> google.protobuf.StringValue 5, // 9: TaskFailureDetails.innerFailure:type_name -> TaskFailureDetails - 121, // 10: TaskFailureDetails.properties:type_name -> TaskFailureDetails.PropertiesEntry - 133, // 11: ParentInstanceInfo.name:type_name -> google.protobuf.StringValue - 133, // 12: ParentInstanceInfo.version:type_name -> google.protobuf.StringValue + 125, // 10: TaskFailureDetails.properties:type_name -> TaskFailureDetails.PropertiesEntry + 138, // 11: ParentInstanceInfo.name:type_name -> google.protobuf.StringValue + 138, // 12: ParentInstanceInfo.version:type_name -> google.protobuf.StringValue 2, // 13: ParentInstanceInfo.orchestrationInstance:type_name -> OrchestrationInstance - 133, // 14: TraceContext.traceState:type_name -> google.protobuf.StringValue - 133, // 15: ExecutionStartedEvent.version:type_name -> google.protobuf.StringValue - 133, // 16: ExecutionStartedEvent.input:type_name -> google.protobuf.StringValue + 138, // 14: TraceContext.traceState:type_name -> google.protobuf.StringValue + 138, // 15: ExecutionStartedEvent.version:type_name -> google.protobuf.StringValue + 138, // 16: ExecutionStartedEvent.input:type_name -> google.protobuf.StringValue 2, // 17: ExecutionStartedEvent.orchestrationInstance:type_name -> OrchestrationInstance 6, // 18: ExecutionStartedEvent.parentInstance:type_name -> ParentInstanceInfo - 134, // 19: ExecutionStartedEvent.scheduledStartTimestamp:type_name -> google.protobuf.Timestamp + 139, // 19: ExecutionStartedEvent.scheduledStartTimestamp:type_name -> google.protobuf.Timestamp 7, // 20: ExecutionStartedEvent.parentTraceContext:type_name -> TraceContext - 133, // 21: ExecutionStartedEvent.orchestrationSpanID:type_name -> google.protobuf.StringValue - 122, // 22: ExecutionStartedEvent.tags:type_name -> ExecutionStartedEvent.TagsEntry + 138, // 21: ExecutionStartedEvent.orchestrationSpanID:type_name -> google.protobuf.StringValue + 126, // 22: ExecutionStartedEvent.tags:type_name -> ExecutionStartedEvent.TagsEntry 0, // 23: ExecutionCompletedEvent.orchestrationStatus:type_name -> OrchestrationStatus - 133, // 24: ExecutionCompletedEvent.result:type_name -> google.protobuf.StringValue + 138, // 24: ExecutionCompletedEvent.result:type_name -> google.protobuf.StringValue 5, // 25: ExecutionCompletedEvent.failureDetails:type_name -> TaskFailureDetails - 133, // 26: ExecutionTerminatedEvent.input:type_name -> google.protobuf.StringValue - 133, // 27: TaskScheduledEvent.version:type_name -> google.protobuf.StringValue - 133, // 28: TaskScheduledEvent.input:type_name -> google.protobuf.StringValue + 138, // 26: ExecutionTerminatedEvent.input:type_name -> google.protobuf.StringValue + 138, // 27: TaskScheduledEvent.version:type_name -> google.protobuf.StringValue + 138, // 28: TaskScheduledEvent.input:type_name -> google.protobuf.StringValue 7, // 29: TaskScheduledEvent.parentTraceContext:type_name -> TraceContext - 123, // 30: TaskScheduledEvent.tags:type_name -> TaskScheduledEvent.TagsEntry - 133, // 31: TaskCompletedEvent.result:type_name -> google.protobuf.StringValue + 127, // 30: TaskScheduledEvent.tags:type_name -> TaskScheduledEvent.TagsEntry + 138, // 31: TaskCompletedEvent.result:type_name -> google.protobuf.StringValue 5, // 32: TaskFailedEvent.failureDetails:type_name -> TaskFailureDetails - 133, // 33: SubOrchestrationInstanceCreatedEvent.version:type_name -> google.protobuf.StringValue - 133, // 34: SubOrchestrationInstanceCreatedEvent.input:type_name -> google.protobuf.StringValue + 138, // 33: SubOrchestrationInstanceCreatedEvent.version:type_name -> google.protobuf.StringValue + 138, // 34: SubOrchestrationInstanceCreatedEvent.input:type_name -> google.protobuf.StringValue 7, // 35: SubOrchestrationInstanceCreatedEvent.parentTraceContext:type_name -> TraceContext - 124, // 36: SubOrchestrationInstanceCreatedEvent.tags:type_name -> SubOrchestrationInstanceCreatedEvent.TagsEntry - 133, // 37: SubOrchestrationInstanceCompletedEvent.result:type_name -> google.protobuf.StringValue + 128, // 36: SubOrchestrationInstanceCreatedEvent.tags:type_name -> SubOrchestrationInstanceCreatedEvent.TagsEntry + 138, // 37: SubOrchestrationInstanceCompletedEvent.result:type_name -> google.protobuf.StringValue 5, // 38: SubOrchestrationInstanceFailedEvent.failureDetails:type_name -> TaskFailureDetails - 134, // 39: TimerCreatedEvent.fireAt:type_name -> google.protobuf.Timestamp - 134, // 40: TimerFiredEvent.fireAt:type_name -> google.protobuf.Timestamp - 133, // 41: EventSentEvent.input:type_name -> google.protobuf.StringValue - 133, // 42: EventRaisedEvent.input:type_name -> google.protobuf.StringValue - 133, // 43: GenericEvent.data:type_name -> google.protobuf.StringValue + 139, // 39: TimerCreatedEvent.fireAt:type_name -> google.protobuf.Timestamp + 139, // 40: TimerFiredEvent.fireAt:type_name -> google.protobuf.Timestamp + 138, // 41: EventSentEvent.input:type_name -> google.protobuf.StringValue + 138, // 42: EventRaisedEvent.input:type_name -> google.protobuf.StringValue + 138, // 43: GenericEvent.data:type_name -> google.protobuf.StringValue 56, // 44: HistoryStateEvent.orchestrationState:type_name -> OrchestrationState - 133, // 45: ContinueAsNewEvent.input:type_name -> google.protobuf.StringValue - 133, // 46: ExecutionSuspendedEvent.input:type_name -> google.protobuf.StringValue - 133, // 47: ExecutionResumedEvent.input:type_name -> google.protobuf.StringValue - 134, // 48: EntityOperationSignaledEvent.scheduledTime:type_name -> google.protobuf.Timestamp - 133, // 49: EntityOperationSignaledEvent.input:type_name -> google.protobuf.StringValue - 133, // 50: EntityOperationSignaledEvent.targetInstanceId:type_name -> google.protobuf.StringValue - 134, // 51: EntityOperationCalledEvent.scheduledTime:type_name -> google.protobuf.Timestamp - 133, // 52: EntityOperationCalledEvent.input:type_name -> google.protobuf.StringValue - 133, // 53: EntityOperationCalledEvent.parentInstanceId:type_name -> google.protobuf.StringValue - 133, // 54: EntityOperationCalledEvent.parentExecutionId:type_name -> google.protobuf.StringValue - 133, // 55: EntityOperationCalledEvent.targetInstanceId:type_name -> google.protobuf.StringValue - 133, // 56: EntityLockRequestedEvent.parentInstanceId:type_name -> google.protobuf.StringValue - 133, // 57: EntityOperationCompletedEvent.output:type_name -> google.protobuf.StringValue + 138, // 45: ContinueAsNewEvent.input:type_name -> google.protobuf.StringValue + 138, // 46: ExecutionSuspendedEvent.input:type_name -> google.protobuf.StringValue + 138, // 47: ExecutionResumedEvent.input:type_name -> google.protobuf.StringValue + 139, // 48: EntityOperationSignaledEvent.scheduledTime:type_name -> google.protobuf.Timestamp + 138, // 49: EntityOperationSignaledEvent.input:type_name -> google.protobuf.StringValue + 138, // 50: EntityOperationSignaledEvent.targetInstanceId:type_name -> google.protobuf.StringValue + 139, // 51: EntityOperationCalledEvent.scheduledTime:type_name -> google.protobuf.Timestamp + 138, // 52: EntityOperationCalledEvent.input:type_name -> google.protobuf.StringValue + 138, // 53: EntityOperationCalledEvent.parentInstanceId:type_name -> google.protobuf.StringValue + 138, // 54: EntityOperationCalledEvent.parentExecutionId:type_name -> google.protobuf.StringValue + 138, // 55: EntityOperationCalledEvent.targetInstanceId:type_name -> google.protobuf.StringValue + 138, // 56: EntityLockRequestedEvent.parentInstanceId:type_name -> google.protobuf.StringValue + 138, // 57: EntityOperationCompletedEvent.output:type_name -> google.protobuf.StringValue 5, // 58: EntityOperationFailedEvent.failureDetails:type_name -> TaskFailureDetails - 133, // 59: EntityUnlockSentEvent.parentInstanceId:type_name -> google.protobuf.StringValue - 133, // 60: EntityUnlockSentEvent.targetInstanceId:type_name -> google.protobuf.StringValue - 133, // 61: ExecutionRewoundEvent.reason:type_name -> google.protobuf.StringValue - 133, // 62: ExecutionRewoundEvent.parentExecutionId:type_name -> google.protobuf.StringValue - 133, // 63: ExecutionRewoundEvent.instanceId:type_name -> google.protobuf.StringValue + 138, // 59: EntityUnlockSentEvent.parentInstanceId:type_name -> google.protobuf.StringValue + 138, // 60: EntityUnlockSentEvent.targetInstanceId:type_name -> google.protobuf.StringValue + 138, // 61: ExecutionRewoundEvent.reason:type_name -> google.protobuf.StringValue + 138, // 62: ExecutionRewoundEvent.parentExecutionId:type_name -> google.protobuf.StringValue + 138, // 63: ExecutionRewoundEvent.instanceId:type_name -> google.protobuf.StringValue 7, // 64: ExecutionRewoundEvent.parentTraceContext:type_name -> TraceContext - 133, // 65: ExecutionRewoundEvent.name:type_name -> google.protobuf.StringValue - 133, // 66: ExecutionRewoundEvent.version:type_name -> google.protobuf.StringValue - 133, // 67: ExecutionRewoundEvent.input:type_name -> google.protobuf.StringValue + 138, // 65: ExecutionRewoundEvent.name:type_name -> google.protobuf.StringValue + 138, // 66: ExecutionRewoundEvent.version:type_name -> google.protobuf.StringValue + 138, // 67: ExecutionRewoundEvent.input:type_name -> google.protobuf.StringValue 6, // 68: ExecutionRewoundEvent.parentInstance:type_name -> ParentInstanceInfo - 125, // 69: ExecutionRewoundEvent.tags:type_name -> ExecutionRewoundEvent.TagsEntry - 134, // 70: HistoryEvent.timestamp:type_name -> google.protobuf.Timestamp + 129, // 69: ExecutionRewoundEvent.tags:type_name -> ExecutionRewoundEvent.TagsEntry + 139, // 70: HistoryEvent.timestamp:type_name -> google.protobuf.Timestamp 8, // 71: HistoryEvent.executionStarted:type_name -> ExecutionStartedEvent 9, // 72: HistoryEvent.executionCompleted:type_name -> ExecutionCompletedEvent 10, // 73: HistoryEvent.executionTerminated:type_name -> ExecutionTerminatedEvent @@ -8913,25 +9209,25 @@ var file_orchestrator_service_proto_depIdxs = []int32{ 34, // 96: HistoryEvent.entityLockGranted:type_name -> EntityLockGrantedEvent 33, // 97: HistoryEvent.entityUnlockSent:type_name -> EntityUnlockSentEvent 35, // 98: HistoryEvent.executionRewound:type_name -> ExecutionRewoundEvent - 133, // 99: ScheduleTaskAction.version:type_name -> google.protobuf.StringValue - 133, // 100: ScheduleTaskAction.input:type_name -> google.protobuf.StringValue - 126, // 101: ScheduleTaskAction.tags:type_name -> ScheduleTaskAction.TagsEntry + 138, // 99: ScheduleTaskAction.version:type_name -> google.protobuf.StringValue + 138, // 100: ScheduleTaskAction.input:type_name -> google.protobuf.StringValue + 130, // 101: ScheduleTaskAction.tags:type_name -> ScheduleTaskAction.TagsEntry 7, // 102: ScheduleTaskAction.parentTraceContext:type_name -> TraceContext - 133, // 103: CreateSubOrchestrationAction.version:type_name -> google.protobuf.StringValue - 133, // 104: CreateSubOrchestrationAction.input:type_name -> google.protobuf.StringValue + 138, // 103: CreateSubOrchestrationAction.version:type_name -> google.protobuf.StringValue + 138, // 104: CreateSubOrchestrationAction.input:type_name -> google.protobuf.StringValue 7, // 105: CreateSubOrchestrationAction.parentTraceContext:type_name -> TraceContext - 127, // 106: CreateSubOrchestrationAction.tags:type_name -> CreateSubOrchestrationAction.TagsEntry - 134, // 107: CreateTimerAction.fireAt:type_name -> google.protobuf.Timestamp + 131, // 106: CreateSubOrchestrationAction.tags:type_name -> CreateSubOrchestrationAction.TagsEntry + 139, // 107: CreateTimerAction.fireAt:type_name -> google.protobuf.Timestamp 2, // 108: SendEventAction.instance:type_name -> OrchestrationInstance - 133, // 109: SendEventAction.data:type_name -> google.protobuf.StringValue + 138, // 109: SendEventAction.data:type_name -> google.protobuf.StringValue 0, // 110: CompleteOrchestrationAction.orchestrationStatus:type_name -> OrchestrationStatus - 133, // 111: CompleteOrchestrationAction.result:type_name -> google.protobuf.StringValue - 133, // 112: CompleteOrchestrationAction.details:type_name -> google.protobuf.StringValue - 133, // 113: CompleteOrchestrationAction.newVersion:type_name -> google.protobuf.StringValue + 138, // 111: CompleteOrchestrationAction.result:type_name -> google.protobuf.StringValue + 138, // 112: CompleteOrchestrationAction.details:type_name -> google.protobuf.StringValue + 138, // 113: CompleteOrchestrationAction.newVersion:type_name -> google.protobuf.StringValue 36, // 114: CompleteOrchestrationAction.carryoverEvents:type_name -> HistoryEvent 5, // 115: CompleteOrchestrationAction.failureDetails:type_name -> TaskFailureDetails - 128, // 116: CompleteOrchestrationAction.tags:type_name -> CompleteOrchestrationAction.TagsEntry - 133, // 117: TerminateOrchestrationAction.reason:type_name -> google.protobuf.StringValue + 132, // 116: CompleteOrchestrationAction.tags:type_name -> CompleteOrchestrationAction.TagsEntry + 138, // 117: TerminateOrchestrationAction.reason:type_name -> google.protobuf.StringValue 28, // 118: SendEntityMessageAction.entityOperationSignaled:type_name -> EntityOperationSignaledEvent 29, // 119: SendEntityMessageAction.entityOperationCalled:type_name -> EntityOperationCalledEvent 30, // 120: SendEntityMessageAction.entityLockRequested:type_name -> EntityLockRequestedEvent @@ -8945,199 +9241,211 @@ var file_orchestrator_service_proto_depIdxs = []int32{ 42, // 128: OrchestratorAction.terminateOrchestration:type_name -> TerminateOrchestrationAction 43, // 129: OrchestratorAction.sendEntityMessage:type_name -> SendEntityMessageAction 44, // 130: OrchestratorAction.rewindOrchestration:type_name -> RewindOrchestrationAction - 133, // 131: OrchestrationTraceContext.spanID:type_name -> google.protobuf.StringValue - 134, // 132: OrchestrationTraceContext.spanStartTime:type_name -> google.protobuf.Timestamp - 133, // 133: OrchestratorRequest.executionId:type_name -> google.protobuf.StringValue + 138, // 131: OrchestrationTraceContext.spanID:type_name -> google.protobuf.StringValue + 139, // 132: OrchestrationTraceContext.spanStartTime:type_name -> google.protobuf.Timestamp + 138, // 133: OrchestratorRequest.executionId:type_name -> google.protobuf.StringValue 36, // 134: OrchestratorRequest.pastEvents:type_name -> HistoryEvent 36, // 135: OrchestratorRequest.newEvents:type_name -> HistoryEvent 89, // 136: OrchestratorRequest.entityParameters:type_name -> OrchestratorEntityParameters - 129, // 137: OrchestratorRequest.properties:type_name -> OrchestratorRequest.PropertiesEntry + 133, // 137: OrchestratorRequest.properties:type_name -> OrchestratorRequest.PropertiesEntry 46, // 138: OrchestratorRequest.orchestrationTraceContext:type_name -> OrchestrationTraceContext 45, // 139: OrchestratorResponse.actions:type_name -> OrchestratorAction - 133, // 140: OrchestratorResponse.customStatus:type_name -> google.protobuf.StringValue - 135, // 141: OrchestratorResponse.numEventsProcessed:type_name -> google.protobuf.Int32Value + 138, // 140: OrchestratorResponse.customStatus:type_name -> google.protobuf.StringValue + 140, // 141: OrchestratorResponse.numEventsProcessed:type_name -> google.protobuf.Int32Value 46, // 142: OrchestratorResponse.orchestrationTraceContext:type_name -> OrchestrationTraceContext - 135, // 143: OrchestratorResponse.chunkIndex:type_name -> google.protobuf.Int32Value - 133, // 144: CreateInstanceRequest.version:type_name -> google.protobuf.StringValue - 133, // 145: CreateInstanceRequest.input:type_name -> google.protobuf.StringValue - 134, // 146: CreateInstanceRequest.scheduledStartTimestamp:type_name -> google.protobuf.Timestamp + 140, // 143: OrchestratorResponse.chunkIndex:type_name -> google.protobuf.Int32Value + 138, // 144: CreateInstanceRequest.version:type_name -> google.protobuf.StringValue + 138, // 145: CreateInstanceRequest.input:type_name -> google.protobuf.StringValue + 139, // 146: CreateInstanceRequest.scheduledStartTimestamp:type_name -> google.protobuf.Timestamp 50, // 147: CreateInstanceRequest.orchestrationIdReusePolicy:type_name -> OrchestrationIdReusePolicy - 133, // 148: CreateInstanceRequest.executionId:type_name -> google.protobuf.StringValue - 130, // 149: CreateInstanceRequest.tags:type_name -> CreateInstanceRequest.TagsEntry + 138, // 148: CreateInstanceRequest.executionId:type_name -> google.protobuf.StringValue + 134, // 149: CreateInstanceRequest.tags:type_name -> CreateInstanceRequest.TagsEntry 7, // 150: CreateInstanceRequest.parentTraceContext:type_name -> TraceContext - 134, // 151: CreateInstanceRequest.requestTime:type_name -> google.protobuf.Timestamp + 139, // 151: CreateInstanceRequest.requestTime:type_name -> google.protobuf.Timestamp 0, // 152: OrchestrationIdReusePolicy.replaceableStatus:type_name -> OrchestrationStatus 56, // 153: GetInstanceResponse.orchestrationState:type_name -> OrchestrationState - 133, // 154: RewindInstanceRequest.reason:type_name -> google.protobuf.StringValue - 133, // 155: OrchestrationState.version:type_name -> google.protobuf.StringValue + 138, // 154: RewindInstanceRequest.reason:type_name -> google.protobuf.StringValue + 138, // 155: OrchestrationState.version:type_name -> google.protobuf.StringValue 0, // 156: OrchestrationState.orchestrationStatus:type_name -> OrchestrationStatus - 134, // 157: OrchestrationState.scheduledStartTimestamp:type_name -> google.protobuf.Timestamp - 134, // 158: OrchestrationState.createdTimestamp:type_name -> google.protobuf.Timestamp - 134, // 159: OrchestrationState.lastUpdatedTimestamp:type_name -> google.protobuf.Timestamp - 133, // 160: OrchestrationState.input:type_name -> google.protobuf.StringValue - 133, // 161: OrchestrationState.output:type_name -> google.protobuf.StringValue - 133, // 162: OrchestrationState.customStatus:type_name -> google.protobuf.StringValue + 139, // 157: OrchestrationState.scheduledStartTimestamp:type_name -> google.protobuf.Timestamp + 139, // 158: OrchestrationState.createdTimestamp:type_name -> google.protobuf.Timestamp + 139, // 159: OrchestrationState.lastUpdatedTimestamp:type_name -> google.protobuf.Timestamp + 138, // 160: OrchestrationState.input:type_name -> google.protobuf.StringValue + 138, // 161: OrchestrationState.output:type_name -> google.protobuf.StringValue + 138, // 162: OrchestrationState.customStatus:type_name -> google.protobuf.StringValue 5, // 163: OrchestrationState.failureDetails:type_name -> TaskFailureDetails - 133, // 164: OrchestrationState.executionId:type_name -> google.protobuf.StringValue - 134, // 165: OrchestrationState.completedTimestamp:type_name -> google.protobuf.Timestamp - 133, // 166: OrchestrationState.parentInstanceId:type_name -> google.protobuf.StringValue - 131, // 167: OrchestrationState.tags:type_name -> OrchestrationState.TagsEntry - 133, // 168: RaiseEventRequest.input:type_name -> google.protobuf.StringValue - 133, // 169: TerminateRequest.output:type_name -> google.protobuf.StringValue - 133, // 170: SuspendRequest.reason:type_name -> google.protobuf.StringValue - 133, // 171: ResumeRequest.reason:type_name -> google.protobuf.StringValue + 138, // 164: OrchestrationState.executionId:type_name -> google.protobuf.StringValue + 139, // 165: OrchestrationState.completedTimestamp:type_name -> google.protobuf.Timestamp + 138, // 166: OrchestrationState.parentInstanceId:type_name -> google.protobuf.StringValue + 135, // 167: OrchestrationState.tags:type_name -> OrchestrationState.TagsEntry + 138, // 168: RaiseEventRequest.input:type_name -> google.protobuf.StringValue + 138, // 169: TerminateRequest.output:type_name -> google.protobuf.StringValue + 138, // 170: SuspendRequest.reason:type_name -> google.protobuf.StringValue + 138, // 171: ResumeRequest.reason:type_name -> google.protobuf.StringValue 66, // 172: QueryInstancesRequest.query:type_name -> InstanceQuery 0, // 173: InstanceQuery.runtimeStatus:type_name -> OrchestrationStatus - 134, // 174: InstanceQuery.createdTimeFrom:type_name -> google.protobuf.Timestamp - 134, // 175: InstanceQuery.createdTimeTo:type_name -> google.protobuf.Timestamp - 133, // 176: InstanceQuery.taskHubNames:type_name -> google.protobuf.StringValue - 133, // 177: InstanceQuery.continuationToken:type_name -> google.protobuf.StringValue - 133, // 178: InstanceQuery.instanceIdPrefix:type_name -> google.protobuf.StringValue + 139, // 174: InstanceQuery.createdTimeFrom:type_name -> google.protobuf.Timestamp + 139, // 175: InstanceQuery.createdTimeTo:type_name -> google.protobuf.Timestamp + 138, // 176: InstanceQuery.taskHubNames:type_name -> google.protobuf.StringValue + 138, // 177: InstanceQuery.continuationToken:type_name -> google.protobuf.StringValue + 138, // 178: InstanceQuery.instanceIdPrefix:type_name -> google.protobuf.StringValue 56, // 179: QueryInstancesResponse.orchestrationState:type_name -> OrchestrationState - 133, // 180: QueryInstancesResponse.continuationToken:type_name -> google.protobuf.StringValue + 138, // 180: QueryInstancesResponse.continuationToken:type_name -> google.protobuf.StringValue 0, // 181: ListInstanceIdsRequest.runtimeStatus:type_name -> OrchestrationStatus - 134, // 182: ListInstanceIdsRequest.completedTimeFrom:type_name -> google.protobuf.Timestamp - 134, // 183: ListInstanceIdsRequest.completedTimeTo:type_name -> google.protobuf.Timestamp - 133, // 184: ListInstanceIdsRequest.lastInstanceKey:type_name -> google.protobuf.StringValue - 133, // 185: ListInstanceIdsResponse.lastInstanceKey:type_name -> google.protobuf.StringValue + 139, // 182: ListInstanceIdsRequest.completedTimeFrom:type_name -> google.protobuf.Timestamp + 139, // 183: ListInstanceIdsRequest.completedTimeTo:type_name -> google.protobuf.Timestamp + 138, // 184: ListInstanceIdsRequest.lastInstanceKey:type_name -> google.protobuf.StringValue + 138, // 185: ListInstanceIdsResponse.lastInstanceKey:type_name -> google.protobuf.StringValue 71, // 186: PurgeInstancesRequest.purgeInstanceFilter:type_name -> PurgeInstanceFilter - 119, // 187: PurgeInstancesRequest.instanceBatch:type_name -> InstanceBatch - 134, // 188: PurgeInstanceFilter.createdTimeFrom:type_name -> google.protobuf.Timestamp - 134, // 189: PurgeInstanceFilter.createdTimeTo:type_name -> google.protobuf.Timestamp + 123, // 187: PurgeInstancesRequest.instanceBatch:type_name -> InstanceBatch + 139, // 188: PurgeInstanceFilter.createdTimeFrom:type_name -> google.protobuf.Timestamp + 139, // 189: PurgeInstanceFilter.createdTimeTo:type_name -> google.protobuf.Timestamp 0, // 190: PurgeInstanceFilter.runtimeStatus:type_name -> OrchestrationStatus - 136, // 191: PurgeInstanceFilter.timeout:type_name -> google.protobuf.Duration - 137, // 192: PurgeInstancesResponse.isComplete:type_name -> google.protobuf.BoolValue - 133, // 193: SignalEntityRequest.input:type_name -> google.protobuf.StringValue - 134, // 194: SignalEntityRequest.scheduledTime:type_name -> google.protobuf.Timestamp + 141, // 191: PurgeInstanceFilter.timeout:type_name -> google.protobuf.Duration + 142, // 192: PurgeInstancesResponse.isComplete:type_name -> google.protobuf.BoolValue + 138, // 193: SignalEntityRequest.input:type_name -> google.protobuf.StringValue + 139, // 194: SignalEntityRequest.scheduledTime:type_name -> google.protobuf.Timestamp 7, // 195: SignalEntityRequest.parentTraceContext:type_name -> TraceContext - 134, // 196: SignalEntityRequest.requestTime:type_name -> google.protobuf.Timestamp + 139, // 196: SignalEntityRequest.requestTime:type_name -> google.protobuf.Timestamp 86, // 197: GetEntityResponse.entity:type_name -> EntityMetadata - 133, // 198: EntityQuery.instanceIdStartsWith:type_name -> google.protobuf.StringValue - 134, // 199: EntityQuery.lastModifiedFrom:type_name -> google.protobuf.Timestamp - 134, // 200: EntityQuery.lastModifiedTo:type_name -> google.protobuf.Timestamp - 135, // 201: EntityQuery.pageSize:type_name -> google.protobuf.Int32Value - 133, // 202: EntityQuery.continuationToken:type_name -> google.protobuf.StringValue + 138, // 198: EntityQuery.instanceIdStartsWith:type_name -> google.protobuf.StringValue + 139, // 199: EntityQuery.lastModifiedFrom:type_name -> google.protobuf.Timestamp + 139, // 200: EntityQuery.lastModifiedTo:type_name -> google.protobuf.Timestamp + 140, // 201: EntityQuery.pageSize:type_name -> google.protobuf.Int32Value + 138, // 202: EntityQuery.continuationToken:type_name -> google.protobuf.StringValue 83, // 203: QueryEntitiesRequest.query:type_name -> EntityQuery 86, // 204: QueryEntitiesResponse.entities:type_name -> EntityMetadata - 133, // 205: QueryEntitiesResponse.continuationToken:type_name -> google.protobuf.StringValue - 134, // 206: EntityMetadata.lastModifiedTime:type_name -> google.protobuf.Timestamp - 133, // 207: EntityMetadata.lockedBy:type_name -> google.protobuf.StringValue - 133, // 208: EntityMetadata.serializedState:type_name -> google.protobuf.StringValue - 133, // 209: CleanEntityStorageRequest.continuationToken:type_name -> google.protobuf.StringValue - 133, // 210: CleanEntityStorageResponse.continuationToken:type_name -> google.protobuf.StringValue - 136, // 211: OrchestratorEntityParameters.entityMessageReorderWindow:type_name -> google.protobuf.Duration - 133, // 212: EntityBatchRequest.entityState:type_name -> google.protobuf.StringValue + 138, // 205: QueryEntitiesResponse.continuationToken:type_name -> google.protobuf.StringValue + 139, // 206: EntityMetadata.lastModifiedTime:type_name -> google.protobuf.Timestamp + 138, // 207: EntityMetadata.lockedBy:type_name -> google.protobuf.StringValue + 138, // 208: EntityMetadata.serializedState:type_name -> google.protobuf.StringValue + 138, // 209: CleanEntityStorageRequest.continuationToken:type_name -> google.protobuf.StringValue + 138, // 210: CleanEntityStorageResponse.continuationToken:type_name -> google.protobuf.StringValue + 141, // 211: OrchestratorEntityParameters.entityMessageReorderWindow:type_name -> google.protobuf.Duration + 138, // 212: EntityBatchRequest.entityState:type_name -> google.protobuf.StringValue 93, // 213: EntityBatchRequest.operations:type_name -> OperationRequest - 132, // 214: EntityBatchRequest.properties:type_name -> EntityBatchRequest.PropertiesEntry + 136, // 214: EntityBatchRequest.properties:type_name -> EntityBatchRequest.PropertiesEntry 94, // 215: EntityBatchResult.results:type_name -> OperationResult 98, // 216: EntityBatchResult.actions:type_name -> OperationAction - 133, // 217: EntityBatchResult.entityState:type_name -> google.protobuf.StringValue + 138, // 217: EntityBatchResult.entityState:type_name -> google.protobuf.StringValue 5, // 218: EntityBatchResult.failureDetails:type_name -> TaskFailureDetails 95, // 219: EntityBatchResult.operationInfos:type_name -> OperationInfo - 133, // 220: EntityRequest.entityState:type_name -> google.protobuf.StringValue + 138, // 220: EntityRequest.entityState:type_name -> google.protobuf.StringValue 36, // 221: EntityRequest.operationRequests:type_name -> HistoryEvent - 133, // 222: OperationRequest.input:type_name -> google.protobuf.StringValue + 138, // 222: OperationRequest.input:type_name -> google.protobuf.StringValue 7, // 223: OperationRequest.traceContext:type_name -> TraceContext 96, // 224: OperationResult.success:type_name -> OperationResultSuccess 97, // 225: OperationResult.failure:type_name -> OperationResultFailure 2, // 226: OperationInfo.responseDestination:type_name -> OrchestrationInstance - 133, // 227: OperationResultSuccess.result:type_name -> google.protobuf.StringValue - 134, // 228: OperationResultSuccess.startTimeUtc:type_name -> google.protobuf.Timestamp - 134, // 229: OperationResultSuccess.endTimeUtc:type_name -> google.protobuf.Timestamp + 138, // 227: OperationResultSuccess.result:type_name -> google.protobuf.StringValue + 139, // 228: OperationResultSuccess.startTimeUtc:type_name -> google.protobuf.Timestamp + 139, // 229: OperationResultSuccess.endTimeUtc:type_name -> google.protobuf.Timestamp 5, // 230: OperationResultFailure.failureDetails:type_name -> TaskFailureDetails - 134, // 231: OperationResultFailure.startTimeUtc:type_name -> google.protobuf.Timestamp - 134, // 232: OperationResultFailure.endTimeUtc:type_name -> google.protobuf.Timestamp + 139, // 231: OperationResultFailure.startTimeUtc:type_name -> google.protobuf.Timestamp + 139, // 232: OperationResultFailure.endTimeUtc:type_name -> google.protobuf.Timestamp 99, // 233: OperationAction.sendSignal:type_name -> SendSignalAction 100, // 234: OperationAction.startNewOrchestration:type_name -> StartNewOrchestrationAction - 133, // 235: SendSignalAction.input:type_name -> google.protobuf.StringValue - 134, // 236: SendSignalAction.scheduledTime:type_name -> google.protobuf.Timestamp - 134, // 237: SendSignalAction.requestTime:type_name -> google.protobuf.Timestamp + 138, // 235: SendSignalAction.input:type_name -> google.protobuf.StringValue + 139, // 236: SendSignalAction.scheduledTime:type_name -> google.protobuf.Timestamp + 139, // 237: SendSignalAction.requestTime:type_name -> google.protobuf.Timestamp 7, // 238: SendSignalAction.parentTraceContext:type_name -> TraceContext - 133, // 239: StartNewOrchestrationAction.version:type_name -> google.protobuf.StringValue - 133, // 240: StartNewOrchestrationAction.input:type_name -> google.protobuf.StringValue - 134, // 241: StartNewOrchestrationAction.scheduledTime:type_name -> google.protobuf.Timestamp - 134, // 242: StartNewOrchestrationAction.requestTime:type_name -> google.protobuf.Timestamp + 138, // 239: StartNewOrchestrationAction.version:type_name -> google.protobuf.StringValue + 138, // 240: StartNewOrchestrationAction.input:type_name -> google.protobuf.StringValue + 139, // 241: StartNewOrchestrationAction.scheduledTime:type_name -> google.protobuf.Timestamp + 139, // 242: StartNewOrchestrationAction.requestTime:type_name -> google.protobuf.Timestamp 7, // 243: StartNewOrchestrationAction.parentTraceContext:type_name -> TraceContext - 119, // 244: SkipGracefulOrchestrationTerminationsRequest.instanceBatch:type_name -> InstanceBatch - 133, // 245: SkipGracefulOrchestrationTerminationsRequest.reason:type_name -> google.protobuf.StringValue - 1, // 246: GetWorkItemsRequest.capabilities:type_name -> WorkerCapability - 110, // 247: GetWorkItemsRequest.workItemFilters:type_name -> WorkItemFilters - 111, // 248: WorkItemFilters.orchestrations:type_name -> OrchestrationFilter - 112, // 249: WorkItemFilters.activities:type_name -> ActivityFilter - 113, // 250: WorkItemFilters.entities:type_name -> EntityFilter - 47, // 251: WorkItem.orchestratorRequest:type_name -> OrchestratorRequest - 3, // 252: WorkItem.activityRequest:type_name -> ActivityRequest - 90, // 253: WorkItem.entityRequest:type_name -> EntityBatchRequest - 116, // 254: WorkItem.healthPing:type_name -> HealthPing - 92, // 255: WorkItem.entityRequestV2:type_name -> EntityRequest - 133, // 256: StreamInstanceHistoryRequest.executionId:type_name -> google.protobuf.StringValue - 36, // 257: HistoryChunk.events:type_name -> HistoryEvent - 138, // 258: TaskFailureDetails.PropertiesEntry.value:type_name -> google.protobuf.Value - 138, // 259: OrchestratorRequest.PropertiesEntry.value:type_name -> google.protobuf.Value - 138, // 260: EntityBatchRequest.PropertiesEntry.value:type_name -> google.protobuf.Value - 139, // 261: TaskHubSidecarService.Hello:input_type -> google.protobuf.Empty - 49, // 262: TaskHubSidecarService.StartInstance:input_type -> CreateInstanceRequest - 52, // 263: TaskHubSidecarService.GetInstance:input_type -> GetInstanceRequest - 54, // 264: TaskHubSidecarService.RewindInstance:input_type -> RewindInstanceRequest - 73, // 265: TaskHubSidecarService.RestartInstance:input_type -> RestartInstanceRequest - 52, // 266: TaskHubSidecarService.WaitForInstanceStart:input_type -> GetInstanceRequest - 52, // 267: TaskHubSidecarService.WaitForInstanceCompletion:input_type -> GetInstanceRequest - 57, // 268: TaskHubSidecarService.RaiseEvent:input_type -> RaiseEventRequest - 59, // 269: TaskHubSidecarService.TerminateInstance:input_type -> TerminateRequest - 61, // 270: TaskHubSidecarService.SuspendInstance:input_type -> SuspendRequest - 63, // 271: TaskHubSidecarService.ResumeInstance:input_type -> ResumeRequest - 65, // 272: TaskHubSidecarService.QueryInstances:input_type -> QueryInstancesRequest - 68, // 273: TaskHubSidecarService.ListInstanceIds:input_type -> ListInstanceIdsRequest - 70, // 274: TaskHubSidecarService.PurgeInstances:input_type -> PurgeInstancesRequest - 109, // 275: TaskHubSidecarService.GetWorkItems:input_type -> GetWorkItemsRequest - 4, // 276: TaskHubSidecarService.CompleteActivityTask:input_type -> ActivityResponse - 48, // 277: TaskHubSidecarService.CompleteOrchestratorTask:input_type -> OrchestratorResponse - 91, // 278: TaskHubSidecarService.CompleteEntityTask:input_type -> EntityBatchResult - 117, // 279: TaskHubSidecarService.StreamInstanceHistory:input_type -> StreamInstanceHistoryRequest - 75, // 280: TaskHubSidecarService.CreateTaskHub:input_type -> CreateTaskHubRequest - 77, // 281: TaskHubSidecarService.DeleteTaskHub:input_type -> DeleteTaskHubRequest - 79, // 282: TaskHubSidecarService.SignalEntity:input_type -> SignalEntityRequest - 81, // 283: TaskHubSidecarService.GetEntity:input_type -> GetEntityRequest - 84, // 284: TaskHubSidecarService.QueryEntities:input_type -> QueryEntitiesRequest - 87, // 285: TaskHubSidecarService.CleanEntityStorage:input_type -> CleanEntityStorageRequest - 101, // 286: TaskHubSidecarService.AbandonTaskActivityWorkItem:input_type -> AbandonActivityTaskRequest - 103, // 287: TaskHubSidecarService.AbandonTaskOrchestratorWorkItem:input_type -> AbandonOrchestrationTaskRequest - 105, // 288: TaskHubSidecarService.AbandonTaskEntityWorkItem:input_type -> AbandonEntityTaskRequest - 107, // 289: TaskHubSidecarService.SkipGracefulOrchestrationTerminations:input_type -> SkipGracefulOrchestrationTerminationsRequest - 139, // 290: TaskHubSidecarService.Hello:output_type -> google.protobuf.Empty - 51, // 291: TaskHubSidecarService.StartInstance:output_type -> CreateInstanceResponse - 53, // 292: TaskHubSidecarService.GetInstance:output_type -> GetInstanceResponse - 55, // 293: TaskHubSidecarService.RewindInstance:output_type -> RewindInstanceResponse - 74, // 294: TaskHubSidecarService.RestartInstance:output_type -> RestartInstanceResponse - 53, // 295: TaskHubSidecarService.WaitForInstanceStart:output_type -> GetInstanceResponse - 53, // 296: TaskHubSidecarService.WaitForInstanceCompletion:output_type -> GetInstanceResponse - 58, // 297: TaskHubSidecarService.RaiseEvent:output_type -> RaiseEventResponse - 60, // 298: TaskHubSidecarService.TerminateInstance:output_type -> TerminateResponse - 62, // 299: TaskHubSidecarService.SuspendInstance:output_type -> SuspendResponse - 64, // 300: TaskHubSidecarService.ResumeInstance:output_type -> ResumeResponse - 67, // 301: TaskHubSidecarService.QueryInstances:output_type -> QueryInstancesResponse - 69, // 302: TaskHubSidecarService.ListInstanceIds:output_type -> ListInstanceIdsResponse - 72, // 303: TaskHubSidecarService.PurgeInstances:output_type -> PurgeInstancesResponse - 114, // 304: TaskHubSidecarService.GetWorkItems:output_type -> WorkItem - 115, // 305: TaskHubSidecarService.CompleteActivityTask:output_type -> CompleteTaskResponse - 115, // 306: TaskHubSidecarService.CompleteOrchestratorTask:output_type -> CompleteTaskResponse - 115, // 307: TaskHubSidecarService.CompleteEntityTask:output_type -> CompleteTaskResponse - 118, // 308: TaskHubSidecarService.StreamInstanceHistory:output_type -> HistoryChunk - 76, // 309: TaskHubSidecarService.CreateTaskHub:output_type -> CreateTaskHubResponse - 78, // 310: TaskHubSidecarService.DeleteTaskHub:output_type -> DeleteTaskHubResponse - 80, // 311: TaskHubSidecarService.SignalEntity:output_type -> SignalEntityResponse - 82, // 312: TaskHubSidecarService.GetEntity:output_type -> GetEntityResponse - 85, // 313: TaskHubSidecarService.QueryEntities:output_type -> QueryEntitiesResponse - 88, // 314: TaskHubSidecarService.CleanEntityStorage:output_type -> CleanEntityStorageResponse - 102, // 315: TaskHubSidecarService.AbandonTaskActivityWorkItem:output_type -> AbandonActivityTaskResponse - 104, // 316: TaskHubSidecarService.AbandonTaskOrchestratorWorkItem:output_type -> AbandonOrchestrationTaskResponse - 106, // 317: TaskHubSidecarService.AbandonTaskEntityWorkItem:output_type -> AbandonEntityTaskResponse - 108, // 318: TaskHubSidecarService.SkipGracefulOrchestrationTerminations:output_type -> SkipGracefulOrchestrationTerminationsResponse - 290, // [290:319] is the sub-list for method output_type - 261, // [261:290] is the sub-list for method input_type - 261, // [261:261] is the sub-list for extension type_name - 261, // [261:261] is the sub-list for extension extendee - 0, // [0:261] is the sub-list for field type_name + 137, // 244: StartNewOrchestrationAction.tags:type_name -> StartNewOrchestrationAction.TagsEntry + 109, // 245: CompleteTaskWithExtendedSessionResponse.ack:type_name -> ExtendedSessionAck + 120, // 246: CompleteTaskWithExtendedSessionResponse.healthPing:type_name -> HealthPing + 122, // 247: CompleteTaskWithExtendedSessionResponse.newMessages:type_name -> HistoryChunk + 123, // 248: SkipGracefulOrchestrationTerminationsRequest.instanceBatch:type_name -> InstanceBatch + 138, // 249: SkipGracefulOrchestrationTerminationsRequest.reason:type_name -> google.protobuf.StringValue + 1, // 250: GetWorkItemsRequest.capabilities:type_name -> WorkerCapability + 114, // 251: GetWorkItemsRequest.workItemFilters:type_name -> WorkItemFilters + 115, // 252: WorkItemFilters.orchestrations:type_name -> OrchestrationFilter + 116, // 253: WorkItemFilters.activities:type_name -> ActivityFilter + 117, // 254: WorkItemFilters.entities:type_name -> EntityFilter + 47, // 255: WorkItem.orchestratorRequest:type_name -> OrchestratorRequest + 3, // 256: WorkItem.activityRequest:type_name -> ActivityRequest + 90, // 257: WorkItem.entityRequest:type_name -> EntityBatchRequest + 120, // 258: WorkItem.healthPing:type_name -> HealthPing + 92, // 259: WorkItem.entityRequestV2:type_name -> EntityRequest + 138, // 260: StreamInstanceHistoryRequest.executionId:type_name -> google.protobuf.StringValue + 36, // 261: HistoryChunk.events:type_name -> HistoryEvent + 143, // 262: TaskFailureDetails.PropertiesEntry.value:type_name -> google.protobuf.Value + 143, // 263: OrchestratorRequest.PropertiesEntry.value:type_name -> google.protobuf.Value + 143, // 264: EntityBatchRequest.PropertiesEntry.value:type_name -> google.protobuf.Value + 144, // 265: TaskHubSidecarService.Hello:input_type -> google.protobuf.Empty + 49, // 266: TaskHubSidecarService.StartInstance:input_type -> CreateInstanceRequest + 52, // 267: TaskHubSidecarService.GetInstance:input_type -> GetInstanceRequest + 54, // 268: TaskHubSidecarService.RewindInstance:input_type -> RewindInstanceRequest + 73, // 269: TaskHubSidecarService.RestartInstance:input_type -> RestartInstanceRequest + 52, // 270: TaskHubSidecarService.WaitForInstanceStart:input_type -> GetInstanceRequest + 52, // 271: TaskHubSidecarService.WaitForInstanceCompletion:input_type -> GetInstanceRequest + 57, // 272: TaskHubSidecarService.RaiseEvent:input_type -> RaiseEventRequest + 59, // 273: TaskHubSidecarService.TerminateInstance:input_type -> TerminateRequest + 61, // 274: TaskHubSidecarService.SuspendInstance:input_type -> SuspendRequest + 63, // 275: TaskHubSidecarService.ResumeInstance:input_type -> ResumeRequest + 65, // 276: TaskHubSidecarService.QueryInstances:input_type -> QueryInstancesRequest + 68, // 277: TaskHubSidecarService.ListInstanceIds:input_type -> ListInstanceIdsRequest + 70, // 278: TaskHubSidecarService.PurgeInstances:input_type -> PurgeInstancesRequest + 113, // 279: TaskHubSidecarService.GetWorkItems:input_type -> GetWorkItemsRequest + 4, // 280: TaskHubSidecarService.CompleteActivityTask:input_type -> ActivityResponse + 48, // 281: TaskHubSidecarService.CompleteOrchestratorTask:input_type -> OrchestratorResponse + 91, // 282: TaskHubSidecarService.CompleteEntityTask:input_type -> EntityBatchResult + 48, // 283: TaskHubSidecarService.CompleteOrchestratorTaskWithExtendedSession:input_type -> OrchestratorResponse + 91, // 284: TaskHubSidecarService.CompleteEntityTaskWithExtendedSession:input_type -> EntityBatchResult + 121, // 285: TaskHubSidecarService.StreamInstanceHistory:input_type -> StreamInstanceHistoryRequest + 75, // 286: TaskHubSidecarService.CreateTaskHub:input_type -> CreateTaskHubRequest + 77, // 287: TaskHubSidecarService.DeleteTaskHub:input_type -> DeleteTaskHubRequest + 79, // 288: TaskHubSidecarService.SignalEntity:input_type -> SignalEntityRequest + 81, // 289: TaskHubSidecarService.GetEntity:input_type -> GetEntityRequest + 84, // 290: TaskHubSidecarService.QueryEntities:input_type -> QueryEntitiesRequest + 87, // 291: TaskHubSidecarService.CleanEntityStorage:input_type -> CleanEntityStorageRequest + 101, // 292: TaskHubSidecarService.AbandonTaskActivityWorkItem:input_type -> AbandonActivityTaskRequest + 103, // 293: TaskHubSidecarService.AbandonTaskOrchestratorWorkItem:input_type -> AbandonOrchestrationTaskRequest + 105, // 294: TaskHubSidecarService.AbandonTaskEntityWorkItem:input_type -> AbandonEntityTaskRequest + 107, // 295: TaskHubSidecarService.ReleaseTaskOrchestratorWorkItem:input_type -> ReleaseTaskWorkItemRequest + 107, // 296: TaskHubSidecarService.ReleaseTaskEntityWorkItem:input_type -> ReleaseTaskWorkItemRequest + 111, // 297: TaskHubSidecarService.SkipGracefulOrchestrationTerminations:input_type -> SkipGracefulOrchestrationTerminationsRequest + 144, // 298: TaskHubSidecarService.Hello:output_type -> google.protobuf.Empty + 51, // 299: TaskHubSidecarService.StartInstance:output_type -> CreateInstanceResponse + 53, // 300: TaskHubSidecarService.GetInstance:output_type -> GetInstanceResponse + 55, // 301: TaskHubSidecarService.RewindInstance:output_type -> RewindInstanceResponse + 74, // 302: TaskHubSidecarService.RestartInstance:output_type -> RestartInstanceResponse + 53, // 303: TaskHubSidecarService.WaitForInstanceStart:output_type -> GetInstanceResponse + 53, // 304: TaskHubSidecarService.WaitForInstanceCompletion:output_type -> GetInstanceResponse + 58, // 305: TaskHubSidecarService.RaiseEvent:output_type -> RaiseEventResponse + 60, // 306: TaskHubSidecarService.TerminateInstance:output_type -> TerminateResponse + 62, // 307: TaskHubSidecarService.SuspendInstance:output_type -> SuspendResponse + 64, // 308: TaskHubSidecarService.ResumeInstance:output_type -> ResumeResponse + 67, // 309: TaskHubSidecarService.QueryInstances:output_type -> QueryInstancesResponse + 69, // 310: TaskHubSidecarService.ListInstanceIds:output_type -> ListInstanceIdsResponse + 72, // 311: TaskHubSidecarService.PurgeInstances:output_type -> PurgeInstancesResponse + 118, // 312: TaskHubSidecarService.GetWorkItems:output_type -> WorkItem + 119, // 313: TaskHubSidecarService.CompleteActivityTask:output_type -> CompleteTaskResponse + 119, // 314: TaskHubSidecarService.CompleteOrchestratorTask:output_type -> CompleteTaskResponse + 119, // 315: TaskHubSidecarService.CompleteEntityTask:output_type -> CompleteTaskResponse + 110, // 316: TaskHubSidecarService.CompleteOrchestratorTaskWithExtendedSession:output_type -> CompleteTaskWithExtendedSessionResponse + 110, // 317: TaskHubSidecarService.CompleteEntityTaskWithExtendedSession:output_type -> CompleteTaskWithExtendedSessionResponse + 122, // 318: TaskHubSidecarService.StreamInstanceHistory:output_type -> HistoryChunk + 76, // 319: TaskHubSidecarService.CreateTaskHub:output_type -> CreateTaskHubResponse + 78, // 320: TaskHubSidecarService.DeleteTaskHub:output_type -> DeleteTaskHubResponse + 80, // 321: TaskHubSidecarService.SignalEntity:output_type -> SignalEntityResponse + 82, // 322: TaskHubSidecarService.GetEntity:output_type -> GetEntityResponse + 85, // 323: TaskHubSidecarService.QueryEntities:output_type -> QueryEntitiesResponse + 88, // 324: TaskHubSidecarService.CleanEntityStorage:output_type -> CleanEntityStorageResponse + 102, // 325: TaskHubSidecarService.AbandonTaskActivityWorkItem:output_type -> AbandonActivityTaskResponse + 104, // 326: TaskHubSidecarService.AbandonTaskOrchestratorWorkItem:output_type -> AbandonOrchestrationTaskResponse + 106, // 327: TaskHubSidecarService.AbandonTaskEntityWorkItem:output_type -> AbandonEntityTaskResponse + 108, // 328: TaskHubSidecarService.ReleaseTaskOrchestratorWorkItem:output_type -> ReleaseTaskWorkItemResponse + 108, // 329: TaskHubSidecarService.ReleaseTaskEntityWorkItem:output_type -> ReleaseTaskWorkItemResponse + 112, // 330: TaskHubSidecarService.SkipGracefulOrchestrationTerminations:output_type -> SkipGracefulOrchestrationTerminationsResponse + 298, // [298:331] is the sub-list for method output_type + 265, // [265:298] is the sub-list for method input_type + 265, // [265:265] is the sub-list for extension type_name + 265, // [265:265] is the sub-list for extension extendee + 0, // [0:265] is the sub-list for field type_name } func init() { file_orchestrator_service_proto_init() } @@ -9204,7 +9512,12 @@ func file_orchestrator_service_proto_init() { (*OperationAction_SendSignal)(nil), (*OperationAction_StartNewOrchestration)(nil), } - file_orchestrator_service_proto_msgTypes[112].OneofWrappers = []any{ + file_orchestrator_service_proto_msgTypes[108].OneofWrappers = []any{ + (*CompleteTaskWithExtendedSessionResponse_Ack)(nil), + (*CompleteTaskWithExtendedSessionResponse_HealthPing)(nil), + (*CompleteTaskWithExtendedSessionResponse_NewMessages)(nil), + } + file_orchestrator_service_proto_msgTypes[116].OneofWrappers = []any{ (*WorkItem_OrchestratorRequest)(nil), (*WorkItem_ActivityRequest)(nil), (*WorkItem_EntityRequest)(nil), @@ -9217,7 +9530,7 @@ func file_orchestrator_service_proto_init() { GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: unsafe.Slice(unsafe.StringData(file_orchestrator_service_proto_rawDesc), len(file_orchestrator_service_proto_rawDesc)), NumEnums: 2, - NumMessages: 131, + NumMessages: 136, NumExtensions: 0, NumServices: 1, }, diff --git a/internal/protos/orchestrator_service_grpc.pb.go b/internal/protos/orchestrator_service_grpc.pb.go index d14acd41..9a1e0c9f 100644 --- a/internal/protos/orchestrator_service_grpc.pb.go +++ b/internal/protos/orchestrator_service_grpc.pb.go @@ -4,7 +4,7 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: // - protoc-gen-go-grpc v1.6.2 -// - protoc v7.36.1 +// - protoc v7.36.2 // source: orchestrator_service.proto package protos @@ -23,35 +23,39 @@ import ( const _ = grpc.SupportPackageIsVersion9 const ( - TaskHubSidecarService_Hello_FullMethodName = "/TaskHubSidecarService/Hello" - TaskHubSidecarService_StartInstance_FullMethodName = "/TaskHubSidecarService/StartInstance" - TaskHubSidecarService_GetInstance_FullMethodName = "/TaskHubSidecarService/GetInstance" - TaskHubSidecarService_RewindInstance_FullMethodName = "/TaskHubSidecarService/RewindInstance" - TaskHubSidecarService_RestartInstance_FullMethodName = "/TaskHubSidecarService/RestartInstance" - TaskHubSidecarService_WaitForInstanceStart_FullMethodName = "/TaskHubSidecarService/WaitForInstanceStart" - TaskHubSidecarService_WaitForInstanceCompletion_FullMethodName = "/TaskHubSidecarService/WaitForInstanceCompletion" - TaskHubSidecarService_RaiseEvent_FullMethodName = "/TaskHubSidecarService/RaiseEvent" - TaskHubSidecarService_TerminateInstance_FullMethodName = "/TaskHubSidecarService/TerminateInstance" - TaskHubSidecarService_SuspendInstance_FullMethodName = "/TaskHubSidecarService/SuspendInstance" - TaskHubSidecarService_ResumeInstance_FullMethodName = "/TaskHubSidecarService/ResumeInstance" - TaskHubSidecarService_QueryInstances_FullMethodName = "/TaskHubSidecarService/QueryInstances" - TaskHubSidecarService_ListInstanceIds_FullMethodName = "/TaskHubSidecarService/ListInstanceIds" - TaskHubSidecarService_PurgeInstances_FullMethodName = "/TaskHubSidecarService/PurgeInstances" - TaskHubSidecarService_GetWorkItems_FullMethodName = "/TaskHubSidecarService/GetWorkItems" - TaskHubSidecarService_CompleteActivityTask_FullMethodName = "/TaskHubSidecarService/CompleteActivityTask" - TaskHubSidecarService_CompleteOrchestratorTask_FullMethodName = "/TaskHubSidecarService/CompleteOrchestratorTask" - TaskHubSidecarService_CompleteEntityTask_FullMethodName = "/TaskHubSidecarService/CompleteEntityTask" - TaskHubSidecarService_StreamInstanceHistory_FullMethodName = "/TaskHubSidecarService/StreamInstanceHistory" - TaskHubSidecarService_CreateTaskHub_FullMethodName = "/TaskHubSidecarService/CreateTaskHub" - TaskHubSidecarService_DeleteTaskHub_FullMethodName = "/TaskHubSidecarService/DeleteTaskHub" - TaskHubSidecarService_SignalEntity_FullMethodName = "/TaskHubSidecarService/SignalEntity" - TaskHubSidecarService_GetEntity_FullMethodName = "/TaskHubSidecarService/GetEntity" - TaskHubSidecarService_QueryEntities_FullMethodName = "/TaskHubSidecarService/QueryEntities" - TaskHubSidecarService_CleanEntityStorage_FullMethodName = "/TaskHubSidecarService/CleanEntityStorage" - TaskHubSidecarService_AbandonTaskActivityWorkItem_FullMethodName = "/TaskHubSidecarService/AbandonTaskActivityWorkItem" - TaskHubSidecarService_AbandonTaskOrchestratorWorkItem_FullMethodName = "/TaskHubSidecarService/AbandonTaskOrchestratorWorkItem" - TaskHubSidecarService_AbandonTaskEntityWorkItem_FullMethodName = "/TaskHubSidecarService/AbandonTaskEntityWorkItem" - TaskHubSidecarService_SkipGracefulOrchestrationTerminations_FullMethodName = "/TaskHubSidecarService/SkipGracefulOrchestrationTerminations" + TaskHubSidecarService_Hello_FullMethodName = "/TaskHubSidecarService/Hello" + TaskHubSidecarService_StartInstance_FullMethodName = "/TaskHubSidecarService/StartInstance" + TaskHubSidecarService_GetInstance_FullMethodName = "/TaskHubSidecarService/GetInstance" + TaskHubSidecarService_RewindInstance_FullMethodName = "/TaskHubSidecarService/RewindInstance" + TaskHubSidecarService_RestartInstance_FullMethodName = "/TaskHubSidecarService/RestartInstance" + TaskHubSidecarService_WaitForInstanceStart_FullMethodName = "/TaskHubSidecarService/WaitForInstanceStart" + TaskHubSidecarService_WaitForInstanceCompletion_FullMethodName = "/TaskHubSidecarService/WaitForInstanceCompletion" + TaskHubSidecarService_RaiseEvent_FullMethodName = "/TaskHubSidecarService/RaiseEvent" + TaskHubSidecarService_TerminateInstance_FullMethodName = "/TaskHubSidecarService/TerminateInstance" + TaskHubSidecarService_SuspendInstance_FullMethodName = "/TaskHubSidecarService/SuspendInstance" + TaskHubSidecarService_ResumeInstance_FullMethodName = "/TaskHubSidecarService/ResumeInstance" + TaskHubSidecarService_QueryInstances_FullMethodName = "/TaskHubSidecarService/QueryInstances" + TaskHubSidecarService_ListInstanceIds_FullMethodName = "/TaskHubSidecarService/ListInstanceIds" + TaskHubSidecarService_PurgeInstances_FullMethodName = "/TaskHubSidecarService/PurgeInstances" + TaskHubSidecarService_GetWorkItems_FullMethodName = "/TaskHubSidecarService/GetWorkItems" + TaskHubSidecarService_CompleteActivityTask_FullMethodName = "/TaskHubSidecarService/CompleteActivityTask" + TaskHubSidecarService_CompleteOrchestratorTask_FullMethodName = "/TaskHubSidecarService/CompleteOrchestratorTask" + TaskHubSidecarService_CompleteEntityTask_FullMethodName = "/TaskHubSidecarService/CompleteEntityTask" + TaskHubSidecarService_CompleteOrchestratorTaskWithExtendedSession_FullMethodName = "/TaskHubSidecarService/CompleteOrchestratorTaskWithExtendedSession" + TaskHubSidecarService_CompleteEntityTaskWithExtendedSession_FullMethodName = "/TaskHubSidecarService/CompleteEntityTaskWithExtendedSession" + TaskHubSidecarService_StreamInstanceHistory_FullMethodName = "/TaskHubSidecarService/StreamInstanceHistory" + TaskHubSidecarService_CreateTaskHub_FullMethodName = "/TaskHubSidecarService/CreateTaskHub" + TaskHubSidecarService_DeleteTaskHub_FullMethodName = "/TaskHubSidecarService/DeleteTaskHub" + TaskHubSidecarService_SignalEntity_FullMethodName = "/TaskHubSidecarService/SignalEntity" + TaskHubSidecarService_GetEntity_FullMethodName = "/TaskHubSidecarService/GetEntity" + TaskHubSidecarService_QueryEntities_FullMethodName = "/TaskHubSidecarService/QueryEntities" + TaskHubSidecarService_CleanEntityStorage_FullMethodName = "/TaskHubSidecarService/CleanEntityStorage" + TaskHubSidecarService_AbandonTaskActivityWorkItem_FullMethodName = "/TaskHubSidecarService/AbandonTaskActivityWorkItem" + TaskHubSidecarService_AbandonTaskOrchestratorWorkItem_FullMethodName = "/TaskHubSidecarService/AbandonTaskOrchestratorWorkItem" + TaskHubSidecarService_AbandonTaskEntityWorkItem_FullMethodName = "/TaskHubSidecarService/AbandonTaskEntityWorkItem" + TaskHubSidecarService_ReleaseTaskOrchestratorWorkItem_FullMethodName = "/TaskHubSidecarService/ReleaseTaskOrchestratorWorkItem" + TaskHubSidecarService_ReleaseTaskEntityWorkItem_FullMethodName = "/TaskHubSidecarService/ReleaseTaskEntityWorkItem" + TaskHubSidecarService_SkipGracefulOrchestrationTerminations_FullMethodName = "/TaskHubSidecarService/SkipGracefulOrchestrationTerminations" ) // TaskHubSidecarServiceClient is the client API for TaskHubSidecarService service. @@ -87,6 +91,25 @@ type TaskHubSidecarServiceClient interface { CompleteActivityTask(ctx context.Context, in *ActivityResponse, opts ...grpc.CallOption) (*CompleteTaskResponse, error) CompleteOrchestratorTask(ctx context.Context, in *OrchestratorResponse, opts ...grpc.CallOption) (*CompleteTaskResponse, error) CompleteEntityTask(ctx context.Context, in *EntityBatchResult, opts ...grpc.CallOption) (*CompleteTaskResponse, error) + // Completes an orchestration work item and keeps it in an extended session, so the worker can keep + // the orchestration in memory and receive only new messages. + // - The first message is an ack. After the ack, the completion is applied. + // - The service then sends health pings until new messages arrive, sends them as one batch of + // newMessages chunks, and ends the stream with OK. The worker must not run a batch until the + // stream ends with OK. If the stream fails after some chunks, the worker discards them, and the + // service delivers the messages again later. + // - The service can end the stream after the ack without a batch, for example after a terminal + // completion or when the session is idle for too long. The work item is then no longer owned. + // - The worker continues the session by calling this RPC again with the same completionToken and + // completionCount increased by one. It ends the session with ReleaseTaskOrchestratorWorkItem. + // - If the call fails before the ack and the outcome is unknown, the worker abandons the work item. + // If the stream fails after the ack, the worker releases it. + // - UNIMPLEMENTED means that the service does not support extended sessions. Only in that case may + // the worker send the same result with CompleteOrchestratorTask instead. + CompleteOrchestratorTaskWithExtendedSession(ctx context.Context, in *OrchestratorResponse, opts ...grpc.CallOption) (grpc.ServerStreamingClient[CompleteTaskWithExtendedSessionResponse], error) + // Completes an entity work item and keeps it in an extended session. It follows the same rules as + // CompleteOrchestratorTaskWithExtendedSession. The session ends with ReleaseTaskEntityWorkItem. + CompleteEntityTaskWithExtendedSession(ctx context.Context, in *EntityBatchResult, opts ...grpc.CallOption) (grpc.ServerStreamingClient[CompleteTaskWithExtendedSessionResponse], error) // Gets the history of an orchestration instance as a stream of events. StreamInstanceHistory(ctx context.Context, in *StreamInstanceHistoryRequest, opts ...grpc.CallOption) (grpc.ServerStreamingClient[HistoryChunk], error) // Deletes and Creates the necessary resources for the orchestration service and the instance store @@ -107,6 +130,13 @@ type TaskHubSidecarServiceClient interface { AbandonTaskOrchestratorWorkItem(ctx context.Context, in *AbandonOrchestrationTaskRequest, opts ...grpc.CallOption) (*AbandonOrchestrationTaskResponse, error) // Abandon an entity work item AbandonTaskEntityWorkItem(ctx context.Context, in *AbandonEntityTaskRequest, opts ...grpc.CallOption) (*AbandonEntityTaskResponse, error) + // Ends the extended session of an orchestration work item after its last completion was acknowledged. + // New messages for the instance are then dispatched as a normal work item with the full history. + // Releasing a work item that is no longer active succeeds and does nothing. + ReleaseTaskOrchestratorWorkItem(ctx context.Context, in *ReleaseTaskWorkItemRequest, opts ...grpc.CallOption) (*ReleaseTaskWorkItemResponse, error) + // Ends the extended session of an entity work item. It follows the same rules as + // ReleaseTaskOrchestratorWorkItem. + ReleaseTaskEntityWorkItem(ctx context.Context, in *ReleaseTaskWorkItemRequest, opts ...grpc.CallOption) (*ReleaseTaskWorkItemResponse, error) // "Skip" graceful termination of orchestrations by immediately changing their status in storage to "terminated". // Note that a maximum of 500 orchestrations can be terminated at a time using this method. SkipGracefulOrchestrationTerminations(ctx context.Context, in *SkipGracefulOrchestrationTerminationsRequest, opts ...grpc.CallOption) (*SkipGracefulOrchestrationTerminationsResponse, error) @@ -309,9 +339,47 @@ func (c *taskHubSidecarServiceClient) CompleteEntityTask(ctx context.Context, in return out, nil } +func (c *taskHubSidecarServiceClient) CompleteOrchestratorTaskWithExtendedSession(ctx context.Context, in *OrchestratorResponse, opts ...grpc.CallOption) (grpc.ServerStreamingClient[CompleteTaskWithExtendedSessionResponse], error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + stream, err := c.cc.NewStream(ctx, &TaskHubSidecarService_ServiceDesc.Streams[1], TaskHubSidecarService_CompleteOrchestratorTaskWithExtendedSession_FullMethodName, cOpts...) + if err != nil { + return nil, err + } + x := &grpc.GenericClientStream[OrchestratorResponse, CompleteTaskWithExtendedSessionResponse]{ClientStream: stream} + if err := x.ClientStream.SendMsg(in); err != nil { + return nil, err + } + if err := x.ClientStream.CloseSend(); err != nil { + return nil, err + } + return x, nil +} + +// This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name. +type TaskHubSidecarService_CompleteOrchestratorTaskWithExtendedSessionClient = grpc.ServerStreamingClient[CompleteTaskWithExtendedSessionResponse] + +func (c *taskHubSidecarServiceClient) CompleteEntityTaskWithExtendedSession(ctx context.Context, in *EntityBatchResult, opts ...grpc.CallOption) (grpc.ServerStreamingClient[CompleteTaskWithExtendedSessionResponse], error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + stream, err := c.cc.NewStream(ctx, &TaskHubSidecarService_ServiceDesc.Streams[2], TaskHubSidecarService_CompleteEntityTaskWithExtendedSession_FullMethodName, cOpts...) + if err != nil { + return nil, err + } + x := &grpc.GenericClientStream[EntityBatchResult, CompleteTaskWithExtendedSessionResponse]{ClientStream: stream} + if err := x.ClientStream.SendMsg(in); err != nil { + return nil, err + } + if err := x.ClientStream.CloseSend(); err != nil { + return nil, err + } + return x, nil +} + +// This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name. +type TaskHubSidecarService_CompleteEntityTaskWithExtendedSessionClient = grpc.ServerStreamingClient[CompleteTaskWithExtendedSessionResponse] + func (c *taskHubSidecarServiceClient) StreamInstanceHistory(ctx context.Context, in *StreamInstanceHistoryRequest, opts ...grpc.CallOption) (grpc.ServerStreamingClient[HistoryChunk], error) { cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) - stream, err := c.cc.NewStream(ctx, &TaskHubSidecarService_ServiceDesc.Streams[1], TaskHubSidecarService_StreamInstanceHistory_FullMethodName, cOpts...) + stream, err := c.cc.NewStream(ctx, &TaskHubSidecarService_ServiceDesc.Streams[3], TaskHubSidecarService_StreamInstanceHistory_FullMethodName, cOpts...) if err != nil { return nil, err } @@ -418,6 +486,26 @@ func (c *taskHubSidecarServiceClient) AbandonTaskEntityWorkItem(ctx context.Cont return out, nil } +func (c *taskHubSidecarServiceClient) ReleaseTaskOrchestratorWorkItem(ctx context.Context, in *ReleaseTaskWorkItemRequest, opts ...grpc.CallOption) (*ReleaseTaskWorkItemResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(ReleaseTaskWorkItemResponse) + err := c.cc.Invoke(ctx, TaskHubSidecarService_ReleaseTaskOrchestratorWorkItem_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *taskHubSidecarServiceClient) ReleaseTaskEntityWorkItem(ctx context.Context, in *ReleaseTaskWorkItemRequest, opts ...grpc.CallOption) (*ReleaseTaskWorkItemResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(ReleaseTaskWorkItemResponse) + err := c.cc.Invoke(ctx, TaskHubSidecarService_ReleaseTaskEntityWorkItem_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + func (c *taskHubSidecarServiceClient) SkipGracefulOrchestrationTerminations(ctx context.Context, in *SkipGracefulOrchestrationTerminationsRequest, opts ...grpc.CallOption) (*SkipGracefulOrchestrationTerminationsResponse, error) { cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(SkipGracefulOrchestrationTerminationsResponse) @@ -461,6 +549,25 @@ type TaskHubSidecarServiceServer interface { CompleteActivityTask(context.Context, *ActivityResponse) (*CompleteTaskResponse, error) CompleteOrchestratorTask(context.Context, *OrchestratorResponse) (*CompleteTaskResponse, error) CompleteEntityTask(context.Context, *EntityBatchResult) (*CompleteTaskResponse, error) + // Completes an orchestration work item and keeps it in an extended session, so the worker can keep + // the orchestration in memory and receive only new messages. + // - The first message is an ack. After the ack, the completion is applied. + // - The service then sends health pings until new messages arrive, sends them as one batch of + // newMessages chunks, and ends the stream with OK. The worker must not run a batch until the + // stream ends with OK. If the stream fails after some chunks, the worker discards them, and the + // service delivers the messages again later. + // - The service can end the stream after the ack without a batch, for example after a terminal + // completion or when the session is idle for too long. The work item is then no longer owned. + // - The worker continues the session by calling this RPC again with the same completionToken and + // completionCount increased by one. It ends the session with ReleaseTaskOrchestratorWorkItem. + // - If the call fails before the ack and the outcome is unknown, the worker abandons the work item. + // If the stream fails after the ack, the worker releases it. + // - UNIMPLEMENTED means that the service does not support extended sessions. Only in that case may + // the worker send the same result with CompleteOrchestratorTask instead. + CompleteOrchestratorTaskWithExtendedSession(*OrchestratorResponse, grpc.ServerStreamingServer[CompleteTaskWithExtendedSessionResponse]) error + // Completes an entity work item and keeps it in an extended session. It follows the same rules as + // CompleteOrchestratorTaskWithExtendedSession. The session ends with ReleaseTaskEntityWorkItem. + CompleteEntityTaskWithExtendedSession(*EntityBatchResult, grpc.ServerStreamingServer[CompleteTaskWithExtendedSessionResponse]) error // Gets the history of an orchestration instance as a stream of events. StreamInstanceHistory(*StreamInstanceHistoryRequest, grpc.ServerStreamingServer[HistoryChunk]) error // Deletes and Creates the necessary resources for the orchestration service and the instance store @@ -481,6 +588,13 @@ type TaskHubSidecarServiceServer interface { AbandonTaskOrchestratorWorkItem(context.Context, *AbandonOrchestrationTaskRequest) (*AbandonOrchestrationTaskResponse, error) // Abandon an entity work item AbandonTaskEntityWorkItem(context.Context, *AbandonEntityTaskRequest) (*AbandonEntityTaskResponse, error) + // Ends the extended session of an orchestration work item after its last completion was acknowledged. + // New messages for the instance are then dispatched as a normal work item with the full history. + // Releasing a work item that is no longer active succeeds and does nothing. + ReleaseTaskOrchestratorWorkItem(context.Context, *ReleaseTaskWorkItemRequest) (*ReleaseTaskWorkItemResponse, error) + // Ends the extended session of an entity work item. It follows the same rules as + // ReleaseTaskOrchestratorWorkItem. + ReleaseTaskEntityWorkItem(context.Context, *ReleaseTaskWorkItemRequest) (*ReleaseTaskWorkItemResponse, error) // "Skip" graceful termination of orchestrations by immediately changing their status in storage to "terminated". // Note that a maximum of 500 orchestrations can be terminated at a time using this method. SkipGracefulOrchestrationTerminations(context.Context, *SkipGracefulOrchestrationTerminationsRequest) (*SkipGracefulOrchestrationTerminationsResponse, error) @@ -548,6 +662,12 @@ func (UnimplementedTaskHubSidecarServiceServer) CompleteOrchestratorTask(context func (UnimplementedTaskHubSidecarServiceServer) CompleteEntityTask(context.Context, *EntityBatchResult) (*CompleteTaskResponse, error) { return nil, status.Error(codes.Unimplemented, "method CompleteEntityTask not implemented") } +func (UnimplementedTaskHubSidecarServiceServer) CompleteOrchestratorTaskWithExtendedSession(*OrchestratorResponse, grpc.ServerStreamingServer[CompleteTaskWithExtendedSessionResponse]) error { + return status.Error(codes.Unimplemented, "method CompleteOrchestratorTaskWithExtendedSession not implemented") +} +func (UnimplementedTaskHubSidecarServiceServer) CompleteEntityTaskWithExtendedSession(*EntityBatchResult, grpc.ServerStreamingServer[CompleteTaskWithExtendedSessionResponse]) error { + return status.Error(codes.Unimplemented, "method CompleteEntityTaskWithExtendedSession not implemented") +} func (UnimplementedTaskHubSidecarServiceServer) StreamInstanceHistory(*StreamInstanceHistoryRequest, grpc.ServerStreamingServer[HistoryChunk]) error { return status.Error(codes.Unimplemented, "method StreamInstanceHistory not implemented") } @@ -578,6 +698,12 @@ func (UnimplementedTaskHubSidecarServiceServer) AbandonTaskOrchestratorWorkItem( func (UnimplementedTaskHubSidecarServiceServer) AbandonTaskEntityWorkItem(context.Context, *AbandonEntityTaskRequest) (*AbandonEntityTaskResponse, error) { return nil, status.Error(codes.Unimplemented, "method AbandonTaskEntityWorkItem not implemented") } +func (UnimplementedTaskHubSidecarServiceServer) ReleaseTaskOrchestratorWorkItem(context.Context, *ReleaseTaskWorkItemRequest) (*ReleaseTaskWorkItemResponse, error) { + return nil, status.Error(codes.Unimplemented, "method ReleaseTaskOrchestratorWorkItem not implemented") +} +func (UnimplementedTaskHubSidecarServiceServer) ReleaseTaskEntityWorkItem(context.Context, *ReleaseTaskWorkItemRequest) (*ReleaseTaskWorkItemResponse, error) { + return nil, status.Error(codes.Unimplemented, "method ReleaseTaskEntityWorkItem not implemented") +} func (UnimplementedTaskHubSidecarServiceServer) SkipGracefulOrchestrationTerminations(context.Context, *SkipGracefulOrchestrationTerminationsRequest) (*SkipGracefulOrchestrationTerminationsResponse, error) { return nil, status.Error(codes.Unimplemented, "method SkipGracefulOrchestrationTerminations not implemented") } @@ -919,6 +1045,28 @@ func _TaskHubSidecarService_CompleteEntityTask_Handler(srv interface{}, ctx cont return interceptor(ctx, in, info, handler) } +func _TaskHubSidecarService_CompleteOrchestratorTaskWithExtendedSession_Handler(srv interface{}, stream grpc.ServerStream) error { + m := new(OrchestratorResponse) + if err := stream.RecvMsg(m); err != nil { + return err + } + return srv.(TaskHubSidecarServiceServer).CompleteOrchestratorTaskWithExtendedSession(m, &grpc.GenericServerStream[OrchestratorResponse, CompleteTaskWithExtendedSessionResponse]{ServerStream: stream}) +} + +// This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name. +type TaskHubSidecarService_CompleteOrchestratorTaskWithExtendedSessionServer = grpc.ServerStreamingServer[CompleteTaskWithExtendedSessionResponse] + +func _TaskHubSidecarService_CompleteEntityTaskWithExtendedSession_Handler(srv interface{}, stream grpc.ServerStream) error { + m := new(EntityBatchResult) + if err := stream.RecvMsg(m); err != nil { + return err + } + return srv.(TaskHubSidecarServiceServer).CompleteEntityTaskWithExtendedSession(m, &grpc.GenericServerStream[EntityBatchResult, CompleteTaskWithExtendedSessionResponse]{ServerStream: stream}) +} + +// This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name. +type TaskHubSidecarService_CompleteEntityTaskWithExtendedSessionServer = grpc.ServerStreamingServer[CompleteTaskWithExtendedSessionResponse] + func _TaskHubSidecarService_StreamInstanceHistory_Handler(srv interface{}, stream grpc.ServerStream) error { m := new(StreamInstanceHistoryRequest) if err := stream.RecvMsg(m); err != nil { @@ -1092,6 +1240,42 @@ func _TaskHubSidecarService_AbandonTaskEntityWorkItem_Handler(srv interface{}, c return interceptor(ctx, in, info, handler) } +func _TaskHubSidecarService_ReleaseTaskOrchestratorWorkItem_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ReleaseTaskWorkItemRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(TaskHubSidecarServiceServer).ReleaseTaskOrchestratorWorkItem(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: TaskHubSidecarService_ReleaseTaskOrchestratorWorkItem_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(TaskHubSidecarServiceServer).ReleaseTaskOrchestratorWorkItem(ctx, req.(*ReleaseTaskWorkItemRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _TaskHubSidecarService_ReleaseTaskEntityWorkItem_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ReleaseTaskWorkItemRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(TaskHubSidecarServiceServer).ReleaseTaskEntityWorkItem(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: TaskHubSidecarService_ReleaseTaskEntityWorkItem_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(TaskHubSidecarServiceServer).ReleaseTaskEntityWorkItem(ctx, req.(*ReleaseTaskWorkItemRequest)) + } + return interceptor(ctx, in, info, handler) +} + func _TaskHubSidecarService_SkipGracefulOrchestrationTerminations_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(SkipGracefulOrchestrationTerminationsRequest) if err := dec(in); err != nil { @@ -1221,6 +1405,14 @@ var TaskHubSidecarService_ServiceDesc = grpc.ServiceDesc{ MethodName: "AbandonTaskEntityWorkItem", Handler: _TaskHubSidecarService_AbandonTaskEntityWorkItem_Handler, }, + { + MethodName: "ReleaseTaskOrchestratorWorkItem", + Handler: _TaskHubSidecarService_ReleaseTaskOrchestratorWorkItem_Handler, + }, + { + MethodName: "ReleaseTaskEntityWorkItem", + Handler: _TaskHubSidecarService_ReleaseTaskEntityWorkItem_Handler, + }, { MethodName: "SkipGracefulOrchestrationTerminations", Handler: _TaskHubSidecarService_SkipGracefulOrchestrationTerminations_Handler, @@ -1232,6 +1424,16 @@ var TaskHubSidecarService_ServiceDesc = grpc.ServiceDesc{ Handler: _TaskHubSidecarService_GetWorkItems_Handler, ServerStreams: true, }, + { + StreamName: "CompleteOrchestratorTaskWithExtendedSession", + Handler: _TaskHubSidecarService_CompleteOrchestratorTaskWithExtendedSession_Handler, + ServerStreams: true, + }, + { + StreamName: "CompleteEntityTaskWithExtendedSession", + Handler: _TaskHubSidecarService_CompleteEntityTaskWithExtendedSession_Handler, + ServerStreams: true, + }, { StreamName: "StreamInstanceHistory", Handler: _TaskHubSidecarService_StreamInstanceHistory_Handler, diff --git a/vendored/durabletask-protobuf/PROTO_SOURCE_COMMIT_HASH b/vendored/durabletask-protobuf/PROTO_SOURCE_COMMIT_HASH index 21e3e6f9..439a99a1 100644 --- a/vendored/durabletask-protobuf/PROTO_SOURCE_COMMIT_HASH +++ b/vendored/durabletask-protobuf/PROTO_SOURCE_COMMIT_HASH @@ -1,4 +1,4 @@ Source: https://github.com/microsoft/durabletask-protobuf Branch: main -Commit: 3145f9337fca9de57d2f89a6ff6f07150d34f1c2 -URL: https://github.com/microsoft/durabletask-protobuf/blob/3145f9337fca9de57d2f89a6ff6f07150d34f1c2/protos/orchestrator_service.proto +Commit: 2dab0e72d0dea59c5c8c412dd03204a47b9aaf2f +URL: https://github.com/microsoft/durabletask-protobuf/blob/2dab0e72d0dea59c5c8c412dd03204a47b9aaf2f/protos/orchestrator_service.proto diff --git a/vendored/durabletask-protobuf/protos/orchestrator_service.proto b/vendored/durabletask-protobuf/protos/orchestrator_service.proto index 3d9194ac..31dbec7c 100644 --- a/vendored/durabletask-protobuf/protos/orchestrator_service.proto +++ b/vendored/durabletask-protobuf/protos/orchestrator_service.proto @@ -378,6 +378,12 @@ message OrchestratorResponse { // Zero-based position of the current chunk within a chunked completion sequence. // This field is omitted for non-chunked completions. google.protobuf.Int32Value chunkIndex = 9 [deprecated=true]; + + // The number of completions already sent for this work item. It is 0 for the first completion and + // increases by one for each completion in an extended session. Every completion of a work item that + // is in an extended session must carry the current count, including completions sent with + // CompleteOrchestratorTask. A completion with the wrong count fails with NOT_FOUND. + int32 completionCount = 10; } message CreateInstanceRequest { @@ -641,6 +647,12 @@ message EntityBatchResult { repeated OperationInfo operationInfos = 6; // used only with DTS // Whether or not an entity state is required to complete the original EntityBatchRequest and none was provided. bool requiresState = 7; + + // The number of completions already sent for this work item. It is 0 for the first completion and + // increases by one for each completion in an extended session. Every completion of a work item that + // is in an extended session must carry the current count, including completions sent with + // CompleteEntityTask. A completion with the wrong count fails with NOT_FOUND. + int32 completionCount = 8; } message EntityRequest { @@ -706,6 +718,7 @@ message StartNewOrchestrationAction { google.protobuf.Timestamp scheduledTime = 5; google.protobuf.Timestamp requestTime = 6; TraceContext parentTraceContext = 7; + map tags = 8; } message AbandonActivityTaskRequest { @@ -732,6 +745,38 @@ message AbandonEntityTaskResponse { // Empty. } +message ReleaseTaskWorkItemRequest { + string completionToken = 1; +} + +message ReleaseTaskWorkItemResponse { + // Empty. +} + +// Confirms that the service applied a completion. It gives the same guarantee as a successful +// CompleteOrchestratorTask or CompleteEntityTask response. +message ExtendedSessionAck { + // The number of history events stored for the instance's current execution + // after applying this completion. It is 0 after continue-as-new and for entities. + int32 historyEventCount = 1; +} + +// A message on the stream of an extended-session completion. +message CompleteTaskWithExtendedSessionResponse { + oneof response { + // Always the first message on the stream. + ExtendedSessionAck ack = 1; + + // Sent while the service waits for new messages for the instance. A ping shows only that + // the connection is alive. It is not a sign of progress. + HealthPing healthPing = 2; + + // One part of the next batch of new messages. A large batch is split into several chunks. + // The batch is complete only when the stream ends with an OK status. + HistoryChunk newMessages = 3; + } +} + message SkipGracefulOrchestrationTerminationsRequest { InstanceBatch instanceBatch = 1; google.protobuf.StringValue reason = 2; @@ -790,6 +835,27 @@ service TaskHubSidecarService { rpc CompleteOrchestratorTask(OrchestratorResponse) returns (CompleteTaskResponse); rpc CompleteEntityTask(EntityBatchResult) returns (CompleteTaskResponse); + // Completes an orchestration work item and keeps it in an extended session, so the worker can keep + // the orchestration in memory and receive only new messages. + // - The first message is an ack. After the ack, the completion is applied. + // - The service then sends health pings until new messages arrive, sends them as one batch of + // newMessages chunks, and ends the stream with OK. The worker must not run a batch until the + // stream ends with OK. If the stream fails after some chunks, the worker discards them, and the + // service delivers the messages again later. + // - The service can end the stream after the ack without a batch, for example after a terminal + // completion or when the session is idle for too long. The work item is then no longer owned. + // - The worker continues the session by calling this RPC again with the same completionToken and + // completionCount increased by one. It ends the session with ReleaseTaskOrchestratorWorkItem. + // - If the call fails before the ack and the outcome is unknown, the worker abandons the work item. + // If the stream fails after the ack, the worker releases it. + // - UNIMPLEMENTED means that the service does not support extended sessions. Only in that case may + // the worker send the same result with CompleteOrchestratorTask instead. + rpc CompleteOrchestratorTaskWithExtendedSession(OrchestratorResponse) returns (stream CompleteTaskWithExtendedSessionResponse); + + // Completes an entity work item and keeps it in an extended session. It follows the same rules as + // CompleteOrchestratorTaskWithExtendedSession. The session ends with ReleaseTaskEntityWorkItem. + rpc CompleteEntityTaskWithExtendedSession(EntityBatchResult) returns (stream CompleteTaskWithExtendedSessionResponse); + // Gets the history of an orchestration instance as a stream of events. rpc StreamInstanceHistory(StreamInstanceHistoryRequest) returns (stream HistoryChunk); @@ -820,6 +886,15 @@ service TaskHubSidecarService { // Abandon an entity work item rpc AbandonTaskEntityWorkItem(AbandonEntityTaskRequest) returns (AbandonEntityTaskResponse); + // Ends the extended session of an orchestration work item after its last completion was acknowledged. + // New messages for the instance are then dispatched as a normal work item with the full history. + // Releasing a work item that is no longer active succeeds and does nothing. + rpc ReleaseTaskOrchestratorWorkItem(ReleaseTaskWorkItemRequest) returns (ReleaseTaskWorkItemResponse); + + // Ends the extended session of an entity work item. It follows the same rules as + // ReleaseTaskOrchestratorWorkItem. + rpc ReleaseTaskEntityWorkItem(ReleaseTaskWorkItemRequest) returns (ReleaseTaskWorkItemResponse); + // "Skip" graceful termination of orchestrations by immediately changing their status in storage to "terminated". // Note that a maximum of 500 orchestrations can be terminated at a time using this method. rpc SkipGracefulOrchestrationTerminations(SkipGracefulOrchestrationTerminationsRequest) returns (SkipGracefulOrchestrationTerminationsResponse);