diff --git a/api/orchestration.go b/api/orchestration.go index 12bc9ef3..0f71d901 100644 --- a/api/orchestration.go +++ b/api/orchestration.go @@ -23,14 +23,6 @@ var ( EmptyInstanceID = InstanceID("") ) -type CreateOrchestrationAction = protos.CreateOrchestrationAction - -const ( - REUSE_ID_ACTION_ERROR CreateOrchestrationAction = protos.CreateOrchestrationAction_ERROR - REUSE_ID_ACTION_IGNORE CreateOrchestrationAction = protos.CreateOrchestrationAction_IGNORE - REUSE_ID_ACTION_TERMINATE CreateOrchestrationAction = protos.CreateOrchestrationAction_TERMINATE -) - type OrchestrationStatus = protos.OrchestrationStatus const ( @@ -59,6 +51,7 @@ type OrchestrationMetadata struct { SerializedOutput string SerializedCustomStatus string FailureDetails *protos.TaskFailureDetails + ParentInstanceID *string } // NewOrchestrationOptions configures options for starting a new orchestration. @@ -90,8 +83,7 @@ func WithOrchestrationIdReusePolicy(policy *protos.OrchestrationIdReusePolicy) N return func(req *protos.CreateInstanceRequest) error { // initialize CreateInstanceOption req.OrchestrationIdReusePolicy = &protos.OrchestrationIdReusePolicy{ - Action: policy.Action, - OperationStatus: policy.OperationStatus, + ReplaceableStatus: policy.ReplaceableStatus, } return nil } @@ -259,6 +251,9 @@ func (m *OrchestrationMetadata) MarshalJSON() ([]byte, error) { } obj["failureDetails"] = root } + if m.ParentInstanceID != nil { + obj["parentInstanceId"] = *m.ParentInstanceID + } return json.Marshal(obj) } @@ -278,6 +273,9 @@ func (m *OrchestrationMetadata) UnmarshalJSON(data []byte) (err error) { return fmt.Errorf("failed to unmarshal orchestration metadata json: %w", err) } + // Save a reference to the original map before we potentially modify it for failureDetails + originalObj := obj + if id, ok := obj["id"]; ok { m.InstanceID = InstanceID(id.(string)) } else { @@ -344,6 +342,10 @@ func (m *OrchestrationMetadata) UnmarshalJSON(data []byte) (err error) { } } } + if parentInstanceId, ok := originalObj["parentInstanceId"]; ok { + parentInstanceID := parentInstanceId.(string) + m.ParentInstanceID = &parentInstanceID + } return nil } diff --git a/backend/backend.go b/backend/backend.go index f5c77758..a1e3201c 100644 --- a/backend/backend.go +++ b/backend/backend.go @@ -33,8 +33,7 @@ type OrchestrationIdReusePolicyOptions func(*protos.OrchestrationIdReusePolicy) func WithOrchestrationIdReusePolicy(policy *protos.OrchestrationIdReusePolicy) OrchestrationIdReusePolicyOptions { return func(po *protos.OrchestrationIdReusePolicy) error { if policy != nil { - po.Action = policy.Action - po.OperationStatus = policy.OperationStatus + po.ReplaceableStatus = policy.ReplaceableStatus } return nil } diff --git a/backend/executor.go b/backend/executor.go index 570988cd..97cc811f 100644 --- a/backend/executor.go +++ b/backend/executor.go @@ -523,6 +523,10 @@ func createGetInstanceResponse(req *protos.GetInstanceRequest, metadata *api.Orc LastUpdatedTimestamp: timestamppb.New(metadata.LastUpdatedAt), } + if metadata.ParentInstanceID != nil { + state.ParentInstanceId = wrapperspb.String(*metadata.ParentInstanceID) + } + if req.GetInputsAndOutputs { state.Input = wrapperspb.String(metadata.SerializedInput) state.CustomStatus = wrapperspb.String(metadata.SerializedCustomStatus) diff --git a/backend/postgres/postgres.go b/backend/postgres/postgres.go index 10d83363..5808ac81 100644 --- a/backend/postgres/postgres.go +++ b/backend/postgres/postgres.go @@ -140,7 +140,7 @@ func (be *postgresBackend) AbandonOrchestrationWorkItem(ctx context.Context, wi } defer tx.Rollback(ctx) //nolint:errcheck // rollback after commit is a no-op - var visibleTime*time.Time = nil + var visibleTime *time.Time = nil if delay := wi.GetAbandonDelay(); delay > 0 { t := time.Now().UTC().Add(delay) visibleTime = &t @@ -363,8 +363,7 @@ func (be *postgresBackend) CompleteOrchestrationWorkItem(ctx context.Context, wi if es := msg.HistoryEvent.GetExecutionStarted(); es != nil { // Need to insert a new row into the DB if _, err := be.createOrchestrationInstanceInternal(ctx, msg.HistoryEvent, tx, backend.WithOrchestrationIdReusePolicy(&protos.OrchestrationIdReusePolicy{ - OperationStatus: []protos.OrchestrationStatus{protos.OrchestrationStatus_ORCHESTRATION_STATUS_FAILED}, - Action: api.REUSE_ID_ACTION_TERMINATE, + ReplaceableStatus: []protos.OrchestrationStatus{protos.OrchestrationStatus_ORCHESTRATION_STATUS_FAILED}, })); err != nil { if errors.Is(err, backend.ErrDuplicateEvent) { be.logger.Warnf( @@ -497,6 +496,12 @@ func (be *postgresBackend) createOrchestrationInstanceInternal(ctx context.Conte } func insertOrIgnoreInstanceTableInternal(ctx context.Context, tx pgx.Tx, e *backend.HistoryEvent, startEvent *protos.ExecutionStartedEvent) (int64, error) { + var parentInstanceID *string + if pi := startEvent.GetParentInstance(); pi != nil { + if orchestrationInstance := pi.GetOrchestrationInstance(); orchestrationInstance != nil { + parentInstanceID = &orchestrationInstance.InstanceId + } + } res, err := tx.Exec( ctx, `INSERT INTO Instances ( @@ -506,8 +511,9 @@ func insertOrIgnoreInstanceTableInternal(ctx context.Context, tx pgx.Tx, e *back ExecutionID, Input, RuntimeStatus, - CreatedTime - ) VALUES ($1, $2, $3, $4, $5, $6, $7) ON CONFLICT DO NOTHING`, + CreatedTime, + ParentInstanceID + ) VALUES ($1, $2, $3, $4, $5, $6, $7, $8) ON CONFLICT DO NOTHING`, startEvent.Name, startEvent.Version.GetValue(), startEvent.OrchestrationInstance.InstanceId, @@ -515,6 +521,7 @@ func insertOrIgnoreInstanceTableInternal(ctx context.Context, tx pgx.Tx, e *back startEvent.Input.GetValue(), "PENDING", e.Timestamp.AsTime(), + parentInstanceID, ) if err != nil { return -1, fmt.Errorf("failed to insert into Instances table: %w", err) @@ -543,35 +550,25 @@ func (be *postgresBackend) handleInstanceExists(ctx context.Context, tx pgx.Tx, } // status not match, return instance duplicate error - if !isStatusMatch(policy.OperationStatus, helpers.FromRuntimeStatusString(*runtimeStatus)) { + if !isStatusMatch(policy.ReplaceableStatus, helpers.FromRuntimeStatusString(*runtimeStatus)) { return api.ErrDuplicateInstance } - // status match - switch policy.Action { - case protos.CreateOrchestrationAction_IGNORE: - // Log an warning message and ignore creating new instance - be.logger.Warnf("An instance with ID '%s' already exists; dropping duplicate create request", startEvent.OrchestrationInstance.InstanceId) - return api.ErrIgnoreInstance - case protos.CreateOrchestrationAction_TERMINATE: - // terminate existing instance - if err := be.cleanupOrchestrationStateInternal(ctx, tx, api.InstanceID(startEvent.OrchestrationInstance.InstanceId), false); err != nil { - return fmt.Errorf("failed to cleanup orchestration status: %w", err) - } - // create a new instance - var rows int64 - if rows, err = insertOrIgnoreInstanceTableInternal(ctx, tx, e, startEvent); err != nil { - return err - } + // status match - terminate existing instance and create a new one + if err := be.cleanupOrchestrationStateInternal(ctx, tx, api.InstanceID(startEvent.OrchestrationInstance.InstanceId), false); err != nil { + return fmt.Errorf("failed to cleanup orchestration status: %w", err) + } + // create a new instance + var rows int64 + if rows, err = insertOrIgnoreInstanceTableInternal(ctx, tx, e, startEvent); err != nil { + return err + } - // should never happen, because we clean up instance before create new one - if rows <= 0 { - return fmt.Errorf("failed to insert into Instances table because entry already exists") - } - return nil + // should never happen, because we clean up instance before create new one + if rows <= 0 { + return fmt.Errorf("failed to insert into Instances table because entry already exists") } - // default behavior - return api.ErrDuplicateInstance + return nil } func isStatusMatch(statuses []protos.OrchestrationStatus, runtimeStatus protos.OrchestrationStatus) bool { @@ -665,7 +662,7 @@ func (be *postgresBackend) GetOrchestrationMetadata(ctx context.Context, iid api row := be.db.QueryRow( ctx, - `SELECT InstanceID, Name, RuntimeStatus, CreatedTime, LastUpdatedTime, Input, Output, CustomStatus, FailureDetails + `SELECT InstanceID, Name, RuntimeStatus, CreatedTime, LastUpdatedTime, Input, Output, CustomStatus, FailureDetails, ParentInstanceID FROM Instances WHERE InstanceID = $1`, string(iid), ) @@ -679,9 +676,10 @@ func (be *postgresBackend) GetOrchestrationMetadata(ctx context.Context, iid api var output *string var customStatus *string var failureDetails *protos.TaskFailureDetails + var parentInstanceID *string var failureDetailsPayload []byte - err := row.Scan(&instanceID, &name, &runtimeStatus, &createdAt, &lastUpdatedAt, &input, &output, &customStatus, &failureDetailsPayload) + err := row.Scan(&instanceID, &name, &runtimeStatus, &createdAt, &lastUpdatedAt, &input, &output, &customStatus, &failureDetailsPayload, &parentInstanceID) if errors.Is(err, pgx.ErrNoRows) { return nil, api.ErrInstanceNotFound } else if err != nil { @@ -718,6 +716,7 @@ func (be *postgresBackend) GetOrchestrationMetadata(ctx context.Context, iid api *customStatus, failureDetails, ) + metadata.ParentInstanceID = parentInstanceID return metadata, nil } @@ -769,7 +768,7 @@ func (be *postgresBackend) GetOrchestrationWorkItem(ctx context.Context) (*backe defer tx.Rollback(ctx) //nolint:errcheck // rollback after commit is a no-op now := time.Now().UTC() - newLockExpiration:= now.Add(be.options.OrchestrationLockTimeout) + newLockExpiration := now.Add(be.options.OrchestrationLockTimeout) // Place a lock on an orchestration instance that has new events that are ready to be executed. row := tx.QueryRow( diff --git a/backend/sqlite/sqlite.go b/backend/sqlite/sqlite.go index 1e1d1eab..adac1c7a 100644 --- a/backend/sqlite/sqlite.go +++ b/backend/sqlite/sqlite.go @@ -336,8 +336,7 @@ func (be *sqliteBackend) CompleteOrchestrationWorkItem(ctx context.Context, wi * if es := msg.HistoryEvent.GetExecutionStarted(); es != nil { // Need to insert a new row into the DB if _, err := be.createOrchestrationInstanceInternal(ctx, msg.HistoryEvent, tx, backend.WithOrchestrationIdReusePolicy(&protos.OrchestrationIdReusePolicy{ - OperationStatus: []protos.OrchestrationStatus{protos.OrchestrationStatus_ORCHESTRATION_STATUS_FAILED}, - Action: api.REUSE_ID_ACTION_TERMINATE, + ReplaceableStatus: []protos.OrchestrationStatus{protos.OrchestrationStatus_ORCHESTRATION_STATUS_FAILED}, })); err != nil { if errors.Is(err, backend.ErrDuplicateEvent) { be.logger.Warnf( @@ -470,6 +469,12 @@ func (be *sqliteBackend) createOrchestrationInstanceInternal(ctx context.Context } func insertOrIgnoreInstanceTableInternal(ctx context.Context, tx *sql.Tx, e *backend.HistoryEvent, startEvent *protos.ExecutionStartedEvent) (int64, error) { + var parentInstanceID *string + if pi := startEvent.GetParentInstance(); pi != nil { + if orchestrationInstance := pi.GetOrchestrationInstance(); orchestrationInstance != nil { + parentInstanceID = &orchestrationInstance.InstanceId + } + } res, err := tx.ExecContext( ctx, `INSERT OR IGNORE INTO [Instances] ( @@ -479,8 +484,9 @@ func insertOrIgnoreInstanceTableInternal(ctx context.Context, tx *sql.Tx, e *bac [ExecutionID], [Input], [RuntimeStatus], - [CreatedTime] - ) VALUES (?, ?, ?, ?, ?, ?, ?)`, + [CreatedTime], + [ParentInstanceID] + ) VALUES (?, ?, ?, ?, ?, ?, ?, ?)`, startEvent.Name, startEvent.Version.GetValue(), startEvent.OrchestrationInstance.InstanceId, @@ -488,6 +494,7 @@ func insertOrIgnoreInstanceTableInternal(ctx context.Context, tx *sql.Tx, e *bac startEvent.Input.GetValue(), "PENDING", e.Timestamp.AsTime(), + parentInstanceID, ) if err != nil { return -1, fmt.Errorf("failed to insert into [Instances] table: %w", err) @@ -516,35 +523,25 @@ func (be *sqliteBackend) handleInstanceExists(ctx context.Context, tx *sql.Tx, s } // status not match, return instance duplicate error - if !isStatusMatch(policy.OperationStatus, helpers.FromRuntimeStatusString(*runtimeStatus)) { + if !isStatusMatch(policy.ReplaceableStatus, helpers.FromRuntimeStatusString(*runtimeStatus)) { return api.ErrDuplicateInstance } - // status match - switch policy.Action { - case protos.CreateOrchestrationAction_IGNORE: - // Log an warning message and ignore creating new instance - be.logger.Warnf("An instance with ID '%s' already exists; dropping duplicate create request", startEvent.OrchestrationInstance.InstanceId) - return api.ErrIgnoreInstance - case protos.CreateOrchestrationAction_TERMINATE: - // terminate existing instance - if err := be.cleanupOrchestrationStateInternal(ctx, tx, api.InstanceID(startEvent.OrchestrationInstance.InstanceId), false); err != nil { - return fmt.Errorf("failed to cleanup orchestration status: %w", err) - } - // create a new instance - var rows int64 - if rows, err = insertOrIgnoreInstanceTableInternal(ctx, tx, e, startEvent); err != nil { - return err - } + // status match - terminate existing instance and create a new one + if err := be.cleanupOrchestrationStateInternal(ctx, tx, api.InstanceID(startEvent.OrchestrationInstance.InstanceId), false); err != nil { + return fmt.Errorf("failed to cleanup orchestration status: %w", err) + } + // create a new instance + var rows int64 + if rows, err = insertOrIgnoreInstanceTableInternal(ctx, tx, e, startEvent); err != nil { + return err + } - // should never happen, because we clean up instance before create new one - if rows <= 0 { - return fmt.Errorf("failed to insert into [Instances] table because entry already exists") - } - return nil + // should never happen, because we clean up instance before create new one + if rows <= 0 { + return fmt.Errorf("failed to insert into [Instances] table because entry already exists") } - // default behavior - return api.ErrDuplicateInstance + return nil } func isStatusMatch(statuses []protos.OrchestrationStatus, runtimeStatus protos.OrchestrationStatus) bool { @@ -642,7 +639,7 @@ func (be *sqliteBackend) GetOrchestrationMetadata(ctx context.Context, iid api.I row := be.db.QueryRowContext( ctx, - `SELECT [InstanceID], [Name], [RuntimeStatus], [CreatedTime], [LastUpdatedTime], [Input], [Output], [CustomStatus], [FailureDetails] + `SELECT [InstanceID], [Name], [RuntimeStatus], [CreatedTime], [LastUpdatedTime], [Input], [Output], [CustomStatus], [FailureDetails], [ParentInstanceID] FROM Instances WHERE [InstanceID] = ?`, string(iid), ) @@ -663,9 +660,10 @@ func (be *sqliteBackend) GetOrchestrationMetadata(ctx context.Context, iid api.I var output *string var customStatus *string var failureDetails *protos.TaskFailureDetails + var parentInstanceID *string var failureDetailsPayload []byte - err = row.Scan(&instanceID, &name, &runtimeStatus, &createdAt, &lastUpdatedAt, &input, &output, &customStatus, &failureDetailsPayload) + err = row.Scan(&instanceID, &name, &runtimeStatus, &createdAt, &lastUpdatedAt, &input, &output, &customStatus, &failureDetailsPayload, &parentInstanceID) if errors.Is(err, sql.ErrNoRows) { return nil, api.ErrInstanceNotFound } else if err != nil { @@ -702,6 +700,7 @@ func (be *sqliteBackend) GetOrchestrationMetadata(ctx context.Context, iid api.I *customStatus, failureDetails, ) + metadata.ParentInstanceID = parentInstanceID return metadata, nil } diff --git a/client/client_grpc.go b/client/client_grpc.go index 996fd985..2d74f61a 100644 --- a/client/client_grpc.go +++ b/client/client_grpc.go @@ -246,5 +246,9 @@ func makeOrchestrationMetadata(resp *protos.GetInstanceResponse) (*api.Orchestra if resp.OrchestrationState.LastUpdatedTimestamp != nil { metadata.LastUpdatedAt = resp.OrchestrationState.LastUpdatedTimestamp.AsTime() } + if resp.OrchestrationState.ParentInstanceId != nil { + parentInstanceID := resp.OrchestrationState.ParentInstanceId.GetValue() + metadata.ParentInstanceID = &parentInstanceID + } return metadata, nil } diff --git a/internal/protos/orchestrator_service.pb.go b/internal/protos/orchestrator_service.pb.go index 52eb6d21..6ef66ee8 100644 --- a/internal/protos/orchestrator_service.pb.go +++ b/internal/protos/orchestrator_service.pb.go @@ -3,21 +3,23 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.31.0 +// protoc-gen-go v1.36.11 // protoc v3.12.4 // source: orchestrator_service.proto package protos import ( - duration "google.golang.org/protobuf/types/known/durationpb" - empty "google.golang.org/protobuf/types/known/emptypb" - timestamp "google.golang.org/protobuf/types/known/timestamppb" - wrappers "google.golang.org/protobuf/types/known/wrapperspb" + duration "github.com/golang/protobuf/ptypes/duration" + empty "github.com/golang/protobuf/ptypes/empty" + _struct "github.com/golang/protobuf/ptypes/struct" + timestamp "github.com/golang/protobuf/ptypes/timestamp" + wrappers "github.com/golang/protobuf/ptypes/wrappers" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "reflect" sync "sync" + unsafe "unsafe" ) const ( @@ -91,71 +93,81 @@ func (OrchestrationStatus) EnumDescriptor() ([]byte, []int) { return file_orchestrator_service_proto_rawDescGZIP(), []int{0} } -type CreateOrchestrationAction int32 +type WorkerCapability int32 const ( - CreateOrchestrationAction_ERROR CreateOrchestrationAction = 0 - CreateOrchestrationAction_IGNORE CreateOrchestrationAction = 1 - CreateOrchestrationAction_TERMINATE CreateOrchestrationAction = 2 + WorkerCapability_WORKER_CAPABILITY_UNSPECIFIED WorkerCapability = 0 + // Indicates that the worker is capable of streaming instance history as a more optimized + // alternative to receiving the full history embedded in the orchestrator work-item. + // When set, the service may return work items without any history events as an optimization. + // It is strongly recommended that all SDKs support this capability. + WorkerCapability_WORKER_CAPABILITY_HISTORY_STREAMING WorkerCapability = 1 + // Indicates that the worker supports scheduled tasks. + // The service may send schedule-triggered orchestration work items, + // and the worker must handle them, including the scheduledTime field. + WorkerCapability_WORKER_CAPABILITY_SCHEDULED_TASKS WorkerCapability = 2 + // Signals that the worker can handle large payloads stored externally (e.g., Blob Storage). + // Work items may contain URI references instead of inline data, and the worker must fetch them. + // This avoids message size limits and reduces network overhead. + WorkerCapability_WORKER_CAPABILITY_LARGE_PAYLOADS WorkerCapability = 3 ) -// Enum value maps for CreateOrchestrationAction. +// Enum value maps for WorkerCapability. var ( - CreateOrchestrationAction_name = map[int32]string{ - 0: "ERROR", - 1: "IGNORE", - 2: "TERMINATE", - } - CreateOrchestrationAction_value = map[string]int32{ - "ERROR": 0, - "IGNORE": 1, - "TERMINATE": 2, + WorkerCapability_name = map[int32]string{ + 0: "WORKER_CAPABILITY_UNSPECIFIED", + 1: "WORKER_CAPABILITY_HISTORY_STREAMING", + 2: "WORKER_CAPABILITY_SCHEDULED_TASKS", + 3: "WORKER_CAPABILITY_LARGE_PAYLOADS", + } + WorkerCapability_value = map[string]int32{ + "WORKER_CAPABILITY_UNSPECIFIED": 0, + "WORKER_CAPABILITY_HISTORY_STREAMING": 1, + "WORKER_CAPABILITY_SCHEDULED_TASKS": 2, + "WORKER_CAPABILITY_LARGE_PAYLOADS": 3, } ) -func (x CreateOrchestrationAction) Enum() *CreateOrchestrationAction { - p := new(CreateOrchestrationAction) +func (x WorkerCapability) Enum() *WorkerCapability { + p := new(WorkerCapability) *p = x return p } -func (x CreateOrchestrationAction) String() string { +func (x WorkerCapability) String() string { return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) } -func (CreateOrchestrationAction) Descriptor() protoreflect.EnumDescriptor { +func (WorkerCapability) Descriptor() protoreflect.EnumDescriptor { return file_orchestrator_service_proto_enumTypes[1].Descriptor() } -func (CreateOrchestrationAction) Type() protoreflect.EnumType { +func (WorkerCapability) Type() protoreflect.EnumType { return &file_orchestrator_service_proto_enumTypes[1] } -func (x CreateOrchestrationAction) Number() protoreflect.EnumNumber { +func (x WorkerCapability) Number() protoreflect.EnumNumber { return protoreflect.EnumNumber(x) } -// Deprecated: Use CreateOrchestrationAction.Descriptor instead. -func (CreateOrchestrationAction) EnumDescriptor() ([]byte, []int) { +// Deprecated: Use WorkerCapability.Descriptor instead. +func (WorkerCapability) EnumDescriptor() ([]byte, []int) { return file_orchestrator_service_proto_rawDescGZIP(), []int{1} } type OrchestrationInstance struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + InstanceId string `protobuf:"bytes,1,opt,name=instanceId,proto3" json:"instanceId,omitempty"` + ExecutionId *wrappers.StringValue `protobuf:"bytes,2,opt,name=executionId,proto3" json:"executionId,omitempty"` unknownFields protoimpl.UnknownFields - - InstanceId string `protobuf:"bytes,1,opt,name=instanceId,proto3" json:"instanceId,omitempty"` - ExecutionId *wrappers.StringValue `protobuf:"bytes,2,opt,name=executionId,proto3" json:"executionId,omitempty"` + sizeCache protoimpl.SizeCache } func (x *OrchestrationInstance) Reset() { *x = OrchestrationInstance{} - if protoimpl.UnsafeEnabled { - mi := &file_orchestrator_service_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_orchestrator_service_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *OrchestrationInstance) String() string { @@ -166,7 +178,7 @@ func (*OrchestrationInstance) ProtoMessage() {} func (x *OrchestrationInstance) ProtoReflect() protoreflect.Message { mi := &file_orchestrator_service_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -196,24 +208,23 @@ func (x *OrchestrationInstance) GetExecutionId() *wrappers.StringValue { } type ActivityRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - + state protoimpl.MessageState `protogen:"open.v1"` Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Version *wrappers.StringValue `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"` Input *wrappers.StringValue `protobuf:"bytes,3,opt,name=input,proto3" json:"input,omitempty"` OrchestrationInstance *OrchestrationInstance `protobuf:"bytes,4,opt,name=orchestrationInstance,proto3" json:"orchestrationInstance,omitempty"` TaskId int32 `protobuf:"varint,5,opt,name=taskId,proto3" json:"taskId,omitempty"` + ParentTraceContext *TraceContext `protobuf:"bytes,6,opt,name=parentTraceContext,proto3" json:"parentTraceContext,omitempty"` + Tags map[string]string `protobuf:"bytes,7,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 } func (x *ActivityRequest) Reset() { *x = ActivityRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_orchestrator_service_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_orchestrator_service_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ActivityRequest) String() string { @@ -224,7 +235,7 @@ func (*ActivityRequest) ProtoMessage() {} func (x *ActivityRequest) ProtoReflect() protoreflect.Message { mi := &file_orchestrator_service_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -274,24 +285,36 @@ func (x *ActivityRequest) GetTaskId() int32 { return 0 } -type ActivityResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields +func (x *ActivityRequest) GetParentTraceContext() *TraceContext { + if x != nil { + return x.ParentTraceContext + } + return nil +} + +func (x *ActivityRequest) GetTags() map[string]string { + if x != nil { + return x.Tags + } + return nil +} - InstanceId string `protobuf:"bytes,1,opt,name=instanceId,proto3" json:"instanceId,omitempty"` - TaskId int32 `protobuf:"varint,2,opt,name=taskId,proto3" json:"taskId,omitempty"` - Result *wrappers.StringValue `protobuf:"bytes,3,opt,name=result,proto3" json:"result,omitempty"` - FailureDetails *TaskFailureDetails `protobuf:"bytes,4,opt,name=failureDetails,proto3" json:"failureDetails,omitempty"` +type ActivityResponse struct { + state protoimpl.MessageState `protogen:"open.v1"` + InstanceId string `protobuf:"bytes,1,opt,name=instanceId,proto3" json:"instanceId,omitempty"` + TaskId int32 `protobuf:"varint,2,opt,name=taskId,proto3" json:"taskId,omitempty"` + Result *wrappers.StringValue `protobuf:"bytes,3,opt,name=result,proto3" json:"result,omitempty"` + FailureDetails *TaskFailureDetails `protobuf:"bytes,4,opt,name=failureDetails,proto3" json:"failureDetails,omitempty"` + CompletionToken string `protobuf:"bytes,5,opt,name=completionToken,proto3" json:"completionToken,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *ActivityResponse) Reset() { *x = ActivityResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_orchestrator_service_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_orchestrator_service_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ActivityResponse) String() string { @@ -302,7 +325,7 @@ func (*ActivityResponse) ProtoMessage() {} func (x *ActivityResponse) ProtoReflect() protoreflect.Message { mi := &file_orchestrator_service_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -345,25 +368,30 @@ func (x *ActivityResponse) GetFailureDetails() *TaskFailureDetails { return nil } -type TaskFailureDetails struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields +func (x *ActivityResponse) GetCompletionToken() string { + if x != nil { + return x.CompletionToken + } + return "" +} - ErrorType string `protobuf:"bytes,1,opt,name=errorType,proto3" json:"errorType,omitempty"` - ErrorMessage string `protobuf:"bytes,2,opt,name=errorMessage,proto3" json:"errorMessage,omitempty"` - StackTrace *wrappers.StringValue `protobuf:"bytes,3,opt,name=stackTrace,proto3" json:"stackTrace,omitempty"` - InnerFailure *TaskFailureDetails `protobuf:"bytes,4,opt,name=innerFailure,proto3" json:"innerFailure,omitempty"` - IsNonRetriable bool `protobuf:"varint,5,opt,name=isNonRetriable,proto3" json:"isNonRetriable,omitempty"` +type TaskFailureDetails struct { + state protoimpl.MessageState `protogen:"open.v1"` + ErrorType string `protobuf:"bytes,1,opt,name=errorType,proto3" json:"errorType,omitempty"` + ErrorMessage string `protobuf:"bytes,2,opt,name=errorMessage,proto3" json:"errorMessage,omitempty"` + StackTrace *wrappers.StringValue `protobuf:"bytes,3,opt,name=stackTrace,proto3" json:"stackTrace,omitempty"` + InnerFailure *TaskFailureDetails `protobuf:"bytes,4,opt,name=innerFailure,proto3" json:"innerFailure,omitempty"` + IsNonRetriable bool `protobuf:"varint,5,opt,name=isNonRetriable,proto3" json:"isNonRetriable,omitempty"` + Properties map[string]*_struct.Value `protobuf:"bytes,6,rep,name=properties,proto3" json:"properties,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *TaskFailureDetails) Reset() { *x = TaskFailureDetails{} - if protoimpl.UnsafeEnabled { - mi := &file_orchestrator_service_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_orchestrator_service_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *TaskFailureDetails) String() string { @@ -374,7 +402,7 @@ func (*TaskFailureDetails) ProtoMessage() {} func (x *TaskFailureDetails) ProtoReflect() protoreflect.Message { mi := &file_orchestrator_service_proto_msgTypes[3] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -424,24 +452,28 @@ func (x *TaskFailureDetails) GetIsNonRetriable() bool { return false } -type ParentInstanceInfo struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields +func (x *TaskFailureDetails) GetProperties() map[string]*_struct.Value { + if x != nil { + return x.Properties + } + return nil +} +type ParentInstanceInfo struct { + state protoimpl.MessageState `protogen:"open.v1"` TaskScheduledId int32 `protobuf:"varint,1,opt,name=taskScheduledId,proto3" json:"taskScheduledId,omitempty"` Name *wrappers.StringValue `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` Version *wrappers.StringValue `protobuf:"bytes,3,opt,name=version,proto3" json:"version,omitempty"` OrchestrationInstance *OrchestrationInstance `protobuf:"bytes,4,opt,name=orchestrationInstance,proto3" json:"orchestrationInstance,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *ParentInstanceInfo) Reset() { *x = ParentInstanceInfo{} - if protoimpl.UnsafeEnabled { - mi := &file_orchestrator_service_proto_msgTypes[4] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_orchestrator_service_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ParentInstanceInfo) String() string { @@ -452,7 +484,7 @@ func (*ParentInstanceInfo) ProtoMessage() {} func (x *ParentInstanceInfo) ProtoReflect() protoreflect.Message { mi := &file_orchestrator_service_proto_msgTypes[4] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -496,23 +528,20 @@ func (x *ParentInstanceInfo) GetOrchestrationInstance() *OrchestrationInstance { } type TraceContext struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - TraceParent string `protobuf:"bytes,1,opt,name=traceParent,proto3" json:"traceParent,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + TraceParent string `protobuf:"bytes,1,opt,name=traceParent,proto3" json:"traceParent,omitempty"` // Deprecated: Marked as deprecated in orchestrator_service.proto. - SpanID string `protobuf:"bytes,2,opt,name=spanID,proto3" json:"spanID,omitempty"` - TraceState *wrappers.StringValue `protobuf:"bytes,3,opt,name=traceState,proto3" json:"traceState,omitempty"` + SpanID string `protobuf:"bytes,2,opt,name=spanID,proto3" json:"spanID,omitempty"` + TraceState *wrappers.StringValue `protobuf:"bytes,3,opt,name=traceState,proto3" json:"traceState,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *TraceContext) Reset() { *x = TraceContext{} - if protoimpl.UnsafeEnabled { - mi := &file_orchestrator_service_proto_msgTypes[5] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_orchestrator_service_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *TraceContext) String() string { @@ -523,7 +552,7 @@ func (*TraceContext) ProtoMessage() {} func (x *TraceContext) ProtoReflect() protoreflect.Message { mi := &file_orchestrator_service_proto_msgTypes[5] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -561,10 +590,7 @@ func (x *TraceContext) GetTraceState() *wrappers.StringValue { } type ExecutionStartedEvent struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - + state protoimpl.MessageState `protogen:"open.v1"` Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Version *wrappers.StringValue `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"` Input *wrappers.StringValue `protobuf:"bytes,3,opt,name=input,proto3" json:"input,omitempty"` @@ -573,15 +599,16 @@ type ExecutionStartedEvent struct { ScheduledStartTimestamp *timestamp.Timestamp `protobuf:"bytes,6,opt,name=scheduledStartTimestamp,proto3" json:"scheduledStartTimestamp,omitempty"` ParentTraceContext *TraceContext `protobuf:"bytes,7,opt,name=parentTraceContext,proto3" json:"parentTraceContext,omitempty"` OrchestrationSpanID *wrappers.StringValue `protobuf:"bytes,8,opt,name=orchestrationSpanID,proto3" json:"orchestrationSpanID,omitempty"` + Tags map[string]string `protobuf:"bytes,9,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 } func (x *ExecutionStartedEvent) Reset() { *x = ExecutionStartedEvent{} - if protoimpl.UnsafeEnabled { - mi := &file_orchestrator_service_proto_msgTypes[6] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_orchestrator_service_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ExecutionStartedEvent) String() string { @@ -592,7 +619,7 @@ func (*ExecutionStartedEvent) ProtoMessage() {} func (x *ExecutionStartedEvent) ProtoReflect() protoreflect.Message { mi := &file_orchestrator_service_proto_msgTypes[6] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -663,23 +690,27 @@ func (x *ExecutionStartedEvent) GetOrchestrationSpanID() *wrappers.StringValue { return nil } -type ExecutionCompletedEvent struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields +func (x *ExecutionStartedEvent) GetTags() map[string]string { + if x != nil { + return x.Tags + } + return nil +} - OrchestrationStatus OrchestrationStatus `protobuf:"varint,1,opt,name=orchestrationStatus,proto3,enum=OrchestrationStatus" json:"orchestrationStatus,omitempty"` - Result *wrappers.StringValue `protobuf:"bytes,2,opt,name=result,proto3" json:"result,omitempty"` - FailureDetails *TaskFailureDetails `protobuf:"bytes,3,opt,name=failureDetails,proto3" json:"failureDetails,omitempty"` +type ExecutionCompletedEvent struct { + state protoimpl.MessageState `protogen:"open.v1"` + OrchestrationStatus OrchestrationStatus `protobuf:"varint,1,opt,name=orchestrationStatus,proto3,enum=OrchestrationStatus" json:"orchestrationStatus,omitempty"` + Result *wrappers.StringValue `protobuf:"bytes,2,opt,name=result,proto3" json:"result,omitempty"` + FailureDetails *TaskFailureDetails `protobuf:"bytes,3,opt,name=failureDetails,proto3" json:"failureDetails,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *ExecutionCompletedEvent) Reset() { *x = ExecutionCompletedEvent{} - if protoimpl.UnsafeEnabled { - mi := &file_orchestrator_service_proto_msgTypes[7] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_orchestrator_service_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ExecutionCompletedEvent) String() string { @@ -690,7 +721,7 @@ func (*ExecutionCompletedEvent) ProtoMessage() {} func (x *ExecutionCompletedEvent) ProtoReflect() protoreflect.Message { mi := &file_orchestrator_service_proto_msgTypes[7] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -727,21 +758,18 @@ func (x *ExecutionCompletedEvent) GetFailureDetails() *TaskFailureDetails { } type ExecutionTerminatedEvent struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Input *wrappers.StringValue `protobuf:"bytes,1,opt,name=input,proto3" json:"input,omitempty"` + Recurse bool `protobuf:"varint,2,opt,name=recurse,proto3" json:"recurse,omitempty"` unknownFields protoimpl.UnknownFields - - Input *wrappers.StringValue `protobuf:"bytes,1,opt,name=input,proto3" json:"input,omitempty"` - Recurse bool `protobuf:"varint,2,opt,name=recurse,proto3" json:"recurse,omitempty"` + sizeCache protoimpl.SizeCache } func (x *ExecutionTerminatedEvent) Reset() { *x = ExecutionTerminatedEvent{} - if protoimpl.UnsafeEnabled { - mi := &file_orchestrator_service_proto_msgTypes[8] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_orchestrator_service_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ExecutionTerminatedEvent) String() string { @@ -752,7 +780,7 @@ func (*ExecutionTerminatedEvent) ProtoMessage() {} func (x *ExecutionTerminatedEvent) ProtoReflect() protoreflect.Message { mi := &file_orchestrator_service_proto_msgTypes[8] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -782,23 +810,21 @@ func (x *ExecutionTerminatedEvent) GetRecurse() bool { } type TaskScheduledEvent struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` - Version *wrappers.StringValue `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"` - Input *wrappers.StringValue `protobuf:"bytes,3,opt,name=input,proto3" json:"input,omitempty"` - ParentTraceContext *TraceContext `protobuf:"bytes,4,opt,name=parentTraceContext,proto3" json:"parentTraceContext,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + Version *wrappers.StringValue `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"` + Input *wrappers.StringValue `protobuf:"bytes,3,opt,name=input,proto3" json:"input,omitempty"` + ParentTraceContext *TraceContext `protobuf:"bytes,4,opt,name=parentTraceContext,proto3" json:"parentTraceContext,omitempty"` + Tags map[string]string `protobuf:"bytes,5,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 } func (x *TaskScheduledEvent) Reset() { *x = TaskScheduledEvent{} - if protoimpl.UnsafeEnabled { - mi := &file_orchestrator_service_proto_msgTypes[9] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_orchestrator_service_proto_msgTypes[9] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *TaskScheduledEvent) String() string { @@ -809,7 +835,7 @@ func (*TaskScheduledEvent) ProtoMessage() {} func (x *TaskScheduledEvent) ProtoReflect() protoreflect.Message { mi := &file_orchestrator_service_proto_msgTypes[9] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -852,22 +878,26 @@ func (x *TaskScheduledEvent) GetParentTraceContext() *TraceContext { return nil } -type TaskCompletedEvent struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields +func (x *TaskScheduledEvent) GetTags() map[string]string { + if x != nil { + return x.Tags + } + return nil +} - TaskScheduledId int32 `protobuf:"varint,1,opt,name=taskScheduledId,proto3" json:"taskScheduledId,omitempty"` - Result *wrappers.StringValue `protobuf:"bytes,2,opt,name=result,proto3" json:"result,omitempty"` +type TaskCompletedEvent struct { + state protoimpl.MessageState `protogen:"open.v1"` + TaskScheduledId int32 `protobuf:"varint,1,opt,name=taskScheduledId,proto3" json:"taskScheduledId,omitempty"` + Result *wrappers.StringValue `protobuf:"bytes,2,opt,name=result,proto3" json:"result,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *TaskCompletedEvent) Reset() { *x = TaskCompletedEvent{} - if protoimpl.UnsafeEnabled { - mi := &file_orchestrator_service_proto_msgTypes[10] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_orchestrator_service_proto_msgTypes[10] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *TaskCompletedEvent) String() string { @@ -878,7 +908,7 @@ func (*TaskCompletedEvent) ProtoMessage() {} func (x *TaskCompletedEvent) ProtoReflect() protoreflect.Message { mi := &file_orchestrator_service_proto_msgTypes[10] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -908,21 +938,18 @@ func (x *TaskCompletedEvent) GetResult() *wrappers.StringValue { } type TaskFailedEvent struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - TaskScheduledId int32 `protobuf:"varint,1,opt,name=taskScheduledId,proto3" json:"taskScheduledId,omitempty"` - FailureDetails *TaskFailureDetails `protobuf:"bytes,2,opt,name=failureDetails,proto3" json:"failureDetails,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + TaskScheduledId int32 `protobuf:"varint,1,opt,name=taskScheduledId,proto3" json:"taskScheduledId,omitempty"` + FailureDetails *TaskFailureDetails `protobuf:"bytes,2,opt,name=failureDetails,proto3" json:"failureDetails,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *TaskFailedEvent) Reset() { *x = TaskFailedEvent{} - if protoimpl.UnsafeEnabled { - mi := &file_orchestrator_service_proto_msgTypes[11] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_orchestrator_service_proto_msgTypes[11] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *TaskFailedEvent) String() string { @@ -933,7 +960,7 @@ func (*TaskFailedEvent) ProtoMessage() {} func (x *TaskFailedEvent) ProtoReflect() protoreflect.Message { mi := &file_orchestrator_service_proto_msgTypes[11] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -963,24 +990,22 @@ func (x *TaskFailedEvent) GetFailureDetails() *TaskFailureDetails { } type SubOrchestrationInstanceCreatedEvent struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - InstanceId string `protobuf:"bytes,1,opt,name=instanceId,proto3" json:"instanceId,omitempty"` - Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` - Version *wrappers.StringValue `protobuf:"bytes,3,opt,name=version,proto3" json:"version,omitempty"` - Input *wrappers.StringValue `protobuf:"bytes,4,opt,name=input,proto3" json:"input,omitempty"` - ParentTraceContext *TraceContext `protobuf:"bytes,5,opt,name=parentTraceContext,proto3" json:"parentTraceContext,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + InstanceId string `protobuf:"bytes,1,opt,name=instanceId,proto3" json:"instanceId,omitempty"` + Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` + Version *wrappers.StringValue `protobuf:"bytes,3,opt,name=version,proto3" json:"version,omitempty"` + Input *wrappers.StringValue `protobuf:"bytes,4,opt,name=input,proto3" json:"input,omitempty"` + ParentTraceContext *TraceContext `protobuf:"bytes,5,opt,name=parentTraceContext,proto3" json:"parentTraceContext,omitempty"` + Tags map[string]string `protobuf:"bytes,6,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 } func (x *SubOrchestrationInstanceCreatedEvent) Reset() { *x = SubOrchestrationInstanceCreatedEvent{} - if protoimpl.UnsafeEnabled { - mi := &file_orchestrator_service_proto_msgTypes[12] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_orchestrator_service_proto_msgTypes[12] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *SubOrchestrationInstanceCreatedEvent) String() string { @@ -991,7 +1016,7 @@ func (*SubOrchestrationInstanceCreatedEvent) ProtoMessage() {} func (x *SubOrchestrationInstanceCreatedEvent) ProtoReflect() protoreflect.Message { mi := &file_orchestrator_service_proto_msgTypes[12] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1041,22 +1066,26 @@ func (x *SubOrchestrationInstanceCreatedEvent) GetParentTraceContext() *TraceCon return nil } -type SubOrchestrationInstanceCompletedEvent struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields +func (x *SubOrchestrationInstanceCreatedEvent) GetTags() map[string]string { + if x != nil { + return x.Tags + } + return nil +} - TaskScheduledId int32 `protobuf:"varint,1,opt,name=taskScheduledId,proto3" json:"taskScheduledId,omitempty"` - Result *wrappers.StringValue `protobuf:"bytes,2,opt,name=result,proto3" json:"result,omitempty"` +type SubOrchestrationInstanceCompletedEvent struct { + state protoimpl.MessageState `protogen:"open.v1"` + TaskScheduledId int32 `protobuf:"varint,1,opt,name=taskScheduledId,proto3" json:"taskScheduledId,omitempty"` + Result *wrappers.StringValue `protobuf:"bytes,2,opt,name=result,proto3" json:"result,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *SubOrchestrationInstanceCompletedEvent) Reset() { *x = SubOrchestrationInstanceCompletedEvent{} - if protoimpl.UnsafeEnabled { - mi := &file_orchestrator_service_proto_msgTypes[13] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_orchestrator_service_proto_msgTypes[13] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *SubOrchestrationInstanceCompletedEvent) String() string { @@ -1067,7 +1096,7 @@ func (*SubOrchestrationInstanceCompletedEvent) ProtoMessage() {} func (x *SubOrchestrationInstanceCompletedEvent) ProtoReflect() protoreflect.Message { mi := &file_orchestrator_service_proto_msgTypes[13] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1097,21 +1126,18 @@ func (x *SubOrchestrationInstanceCompletedEvent) GetResult() *wrappers.StringVal } type SubOrchestrationInstanceFailedEvent struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - TaskScheduledId int32 `protobuf:"varint,1,opt,name=taskScheduledId,proto3" json:"taskScheduledId,omitempty"` - FailureDetails *TaskFailureDetails `protobuf:"bytes,2,opt,name=failureDetails,proto3" json:"failureDetails,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + TaskScheduledId int32 `protobuf:"varint,1,opt,name=taskScheduledId,proto3" json:"taskScheduledId,omitempty"` + FailureDetails *TaskFailureDetails `protobuf:"bytes,2,opt,name=failureDetails,proto3" json:"failureDetails,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *SubOrchestrationInstanceFailedEvent) Reset() { *x = SubOrchestrationInstanceFailedEvent{} - if protoimpl.UnsafeEnabled { - mi := &file_orchestrator_service_proto_msgTypes[14] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_orchestrator_service_proto_msgTypes[14] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *SubOrchestrationInstanceFailedEvent) String() string { @@ -1122,7 +1148,7 @@ func (*SubOrchestrationInstanceFailedEvent) ProtoMessage() {} func (x *SubOrchestrationInstanceFailedEvent) ProtoReflect() protoreflect.Message { mi := &file_orchestrator_service_proto_msgTypes[14] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1152,20 +1178,17 @@ func (x *SubOrchestrationInstanceFailedEvent) GetFailureDetails() *TaskFailureDe } type TimerCreatedEvent struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + FireAt *timestamp.Timestamp `protobuf:"bytes,1,opt,name=fireAt,proto3" json:"fireAt,omitempty"` unknownFields protoimpl.UnknownFields - - FireAt *timestamp.Timestamp `protobuf:"bytes,1,opt,name=fireAt,proto3" json:"fireAt,omitempty"` + sizeCache protoimpl.SizeCache } func (x *TimerCreatedEvent) Reset() { *x = TimerCreatedEvent{} - if protoimpl.UnsafeEnabled { - mi := &file_orchestrator_service_proto_msgTypes[15] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_orchestrator_service_proto_msgTypes[15] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *TimerCreatedEvent) String() string { @@ -1176,7 +1199,7 @@ func (*TimerCreatedEvent) ProtoMessage() {} func (x *TimerCreatedEvent) ProtoReflect() protoreflect.Message { mi := &file_orchestrator_service_proto_msgTypes[15] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1199,21 +1222,18 @@ func (x *TimerCreatedEvent) GetFireAt() *timestamp.Timestamp { } type TimerFiredEvent struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + FireAt *timestamp.Timestamp `protobuf:"bytes,1,opt,name=fireAt,proto3" json:"fireAt,omitempty"` + TimerId int32 `protobuf:"varint,2,opt,name=timerId,proto3" json:"timerId,omitempty"` unknownFields protoimpl.UnknownFields - - FireAt *timestamp.Timestamp `protobuf:"bytes,1,opt,name=fireAt,proto3" json:"fireAt,omitempty"` - TimerId int32 `protobuf:"varint,2,opt,name=timerId,proto3" json:"timerId,omitempty"` + sizeCache protoimpl.SizeCache } func (x *TimerFiredEvent) Reset() { *x = TimerFiredEvent{} - if protoimpl.UnsafeEnabled { - mi := &file_orchestrator_service_proto_msgTypes[16] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_orchestrator_service_proto_msgTypes[16] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *TimerFiredEvent) String() string { @@ -1224,7 +1244,7 @@ func (*TimerFiredEvent) ProtoMessage() {} func (x *TimerFiredEvent) ProtoReflect() protoreflect.Message { mi := &file_orchestrator_service_proto_msgTypes[16] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1254,18 +1274,16 @@ func (x *TimerFiredEvent) GetTimerId() int32 { } type OrchestratorStartedEvent struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *OrchestratorStartedEvent) Reset() { *x = OrchestratorStartedEvent{} - if protoimpl.UnsafeEnabled { - mi := &file_orchestrator_service_proto_msgTypes[17] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_orchestrator_service_proto_msgTypes[17] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *OrchestratorStartedEvent) String() string { @@ -1276,7 +1294,7 @@ func (*OrchestratorStartedEvent) ProtoMessage() {} func (x *OrchestratorStartedEvent) ProtoReflect() protoreflect.Message { mi := &file_orchestrator_service_proto_msgTypes[17] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1292,18 +1310,16 @@ func (*OrchestratorStartedEvent) Descriptor() ([]byte, []int) { } type OrchestratorCompletedEvent struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *OrchestratorCompletedEvent) Reset() { *x = OrchestratorCompletedEvent{} - if protoimpl.UnsafeEnabled { - mi := &file_orchestrator_service_proto_msgTypes[18] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_orchestrator_service_proto_msgTypes[18] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *OrchestratorCompletedEvent) String() string { @@ -1314,7 +1330,7 @@ func (*OrchestratorCompletedEvent) ProtoMessage() {} func (x *OrchestratorCompletedEvent) ProtoReflect() protoreflect.Message { mi := &file_orchestrator_service_proto_msgTypes[18] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1330,22 +1346,19 @@ func (*OrchestratorCompletedEvent) Descriptor() ([]byte, []int) { } type EventSentEvent struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + InstanceId string `protobuf:"bytes,1,opt,name=instanceId,proto3" json:"instanceId,omitempty"` + Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` + Input *wrappers.StringValue `protobuf:"bytes,3,opt,name=input,proto3" json:"input,omitempty"` unknownFields protoimpl.UnknownFields - - InstanceId string `protobuf:"bytes,1,opt,name=instanceId,proto3" json:"instanceId,omitempty"` - Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` - Input *wrappers.StringValue `protobuf:"bytes,3,opt,name=input,proto3" json:"input,omitempty"` + sizeCache protoimpl.SizeCache } func (x *EventSentEvent) Reset() { *x = EventSentEvent{} - if protoimpl.UnsafeEnabled { - mi := &file_orchestrator_service_proto_msgTypes[19] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_orchestrator_service_proto_msgTypes[19] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *EventSentEvent) String() string { @@ -1356,7 +1369,7 @@ func (*EventSentEvent) ProtoMessage() {} func (x *EventSentEvent) ProtoReflect() protoreflect.Message { mi := &file_orchestrator_service_proto_msgTypes[19] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1393,21 +1406,18 @@ func (x *EventSentEvent) GetInput() *wrappers.StringValue { } type EventRaisedEvent struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + Input *wrappers.StringValue `protobuf:"bytes,2,opt,name=input,proto3" json:"input,omitempty"` unknownFields protoimpl.UnknownFields - - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` - Input *wrappers.StringValue `protobuf:"bytes,2,opt,name=input,proto3" json:"input,omitempty"` + sizeCache protoimpl.SizeCache } func (x *EventRaisedEvent) Reset() { *x = EventRaisedEvent{} - if protoimpl.UnsafeEnabled { - mi := &file_orchestrator_service_proto_msgTypes[20] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_orchestrator_service_proto_msgTypes[20] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *EventRaisedEvent) String() string { @@ -1418,7 +1428,7 @@ func (*EventRaisedEvent) ProtoMessage() {} func (x *EventRaisedEvent) ProtoReflect() protoreflect.Message { mi := &file_orchestrator_service_proto_msgTypes[20] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1448,20 +1458,17 @@ func (x *EventRaisedEvent) GetInput() *wrappers.StringValue { } type GenericEvent struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Data *wrappers.StringValue `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` unknownFields protoimpl.UnknownFields - - Data *wrappers.StringValue `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` + sizeCache protoimpl.SizeCache } func (x *GenericEvent) Reset() { *x = GenericEvent{} - if protoimpl.UnsafeEnabled { - mi := &file_orchestrator_service_proto_msgTypes[21] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_orchestrator_service_proto_msgTypes[21] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *GenericEvent) String() string { @@ -1472,7 +1479,7 @@ func (*GenericEvent) ProtoMessage() {} func (x *GenericEvent) ProtoReflect() protoreflect.Message { mi := &file_orchestrator_service_proto_msgTypes[21] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1495,20 +1502,17 @@ func (x *GenericEvent) GetData() *wrappers.StringValue { } type HistoryStateEvent struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - OrchestrationState *OrchestrationState `protobuf:"bytes,1,opt,name=orchestrationState,proto3" json:"orchestrationState,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + OrchestrationState *OrchestrationState `protobuf:"bytes,1,opt,name=orchestrationState,proto3" json:"orchestrationState,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *HistoryStateEvent) Reset() { *x = HistoryStateEvent{} - if protoimpl.UnsafeEnabled { - mi := &file_orchestrator_service_proto_msgTypes[22] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_orchestrator_service_proto_msgTypes[22] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *HistoryStateEvent) String() string { @@ -1519,7 +1523,7 @@ func (*HistoryStateEvent) ProtoMessage() {} func (x *HistoryStateEvent) ProtoReflect() protoreflect.Message { mi := &file_orchestrator_service_proto_msgTypes[22] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1542,20 +1546,17 @@ func (x *HistoryStateEvent) GetOrchestrationState() *OrchestrationState { } type ContinueAsNewEvent struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Input *wrappers.StringValue `protobuf:"bytes,1,opt,name=input,proto3" json:"input,omitempty"` unknownFields protoimpl.UnknownFields - - Input *wrappers.StringValue `protobuf:"bytes,1,opt,name=input,proto3" json:"input,omitempty"` + sizeCache protoimpl.SizeCache } func (x *ContinueAsNewEvent) Reset() { *x = ContinueAsNewEvent{} - if protoimpl.UnsafeEnabled { - mi := &file_orchestrator_service_proto_msgTypes[23] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_orchestrator_service_proto_msgTypes[23] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ContinueAsNewEvent) String() string { @@ -1566,7 +1567,7 @@ func (*ContinueAsNewEvent) ProtoMessage() {} func (x *ContinueAsNewEvent) ProtoReflect() protoreflect.Message { mi := &file_orchestrator_service_proto_msgTypes[23] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1589,20 +1590,17 @@ func (x *ContinueAsNewEvent) GetInput() *wrappers.StringValue { } type ExecutionSuspendedEvent struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Input *wrappers.StringValue `protobuf:"bytes,1,opt,name=input,proto3" json:"input,omitempty"` unknownFields protoimpl.UnknownFields - - Input *wrappers.StringValue `protobuf:"bytes,1,opt,name=input,proto3" json:"input,omitempty"` + sizeCache protoimpl.SizeCache } func (x *ExecutionSuspendedEvent) Reset() { *x = ExecutionSuspendedEvent{} - if protoimpl.UnsafeEnabled { - mi := &file_orchestrator_service_proto_msgTypes[24] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_orchestrator_service_proto_msgTypes[24] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ExecutionSuspendedEvent) String() string { @@ -1613,7 +1611,7 @@ func (*ExecutionSuspendedEvent) ProtoMessage() {} func (x *ExecutionSuspendedEvent) ProtoReflect() protoreflect.Message { mi := &file_orchestrator_service_proto_msgTypes[24] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1636,20 +1634,17 @@ func (x *ExecutionSuspendedEvent) GetInput() *wrappers.StringValue { } type ExecutionResumedEvent struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Input *wrappers.StringValue `protobuf:"bytes,1,opt,name=input,proto3" json:"input,omitempty"` unknownFields protoimpl.UnknownFields - - Input *wrappers.StringValue `protobuf:"bytes,1,opt,name=input,proto3" json:"input,omitempty"` + sizeCache protoimpl.SizeCache } func (x *ExecutionResumedEvent) Reset() { *x = ExecutionResumedEvent{} - if protoimpl.UnsafeEnabled { - mi := &file_orchestrator_service_proto_msgTypes[25] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_orchestrator_service_proto_msgTypes[25] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ExecutionResumedEvent) String() string { @@ -1660,7 +1655,7 @@ func (*ExecutionResumedEvent) ProtoMessage() {} func (x *ExecutionResumedEvent) ProtoReflect() protoreflect.Message { mi := &file_orchestrator_service_proto_msgTypes[25] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1682,56 +1677,33 @@ func (x *ExecutionResumedEvent) GetInput() *wrappers.StringValue { return nil } -type HistoryEvent struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - EventId int32 `protobuf:"varint,1,opt,name=eventId,proto3" json:"eventId,omitempty"` - Timestamp *timestamp.Timestamp `protobuf:"bytes,2,opt,name=timestamp,proto3" json:"timestamp,omitempty"` - // Types that are assignable to EventType: - // - // *HistoryEvent_ExecutionStarted - // *HistoryEvent_ExecutionCompleted - // *HistoryEvent_ExecutionTerminated - // *HistoryEvent_TaskScheduled - // *HistoryEvent_TaskCompleted - // *HistoryEvent_TaskFailed - // *HistoryEvent_SubOrchestrationInstanceCreated - // *HistoryEvent_SubOrchestrationInstanceCompleted - // *HistoryEvent_SubOrchestrationInstanceFailed - // *HistoryEvent_TimerCreated - // *HistoryEvent_TimerFired - // *HistoryEvent_OrchestratorStarted - // *HistoryEvent_OrchestratorCompleted - // *HistoryEvent_EventSent - // *HistoryEvent_EventRaised - // *HistoryEvent_GenericEvent - // *HistoryEvent_HistoryState - // *HistoryEvent_ContinueAsNew - // *HistoryEvent_ExecutionSuspended - // *HistoryEvent_ExecutionResumed - EventType isHistoryEvent_EventType `protobuf_oneof:"eventType"` +type EntityOperationSignaledEvent struct { + state protoimpl.MessageState `protogen:"open.v1"` + RequestId string `protobuf:"bytes,1,opt,name=requestId,proto3" json:"requestId,omitempty"` + Operation string `protobuf:"bytes,2,opt,name=operation,proto3" json:"operation,omitempty"` + ScheduledTime *timestamp.Timestamp `protobuf:"bytes,3,opt,name=scheduledTime,proto3" json:"scheduledTime,omitempty"` + Input *wrappers.StringValue `protobuf:"bytes,4,opt,name=input,proto3" json:"input,omitempty"` + TargetInstanceId *wrappers.StringValue `protobuf:"bytes,5,opt,name=targetInstanceId,proto3" json:"targetInstanceId,omitempty"` // used only within histories, null in messages + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } -func (x *HistoryEvent) Reset() { - *x = HistoryEvent{} - if protoimpl.UnsafeEnabled { - mi := &file_orchestrator_service_proto_msgTypes[26] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } +func (x *EntityOperationSignaledEvent) Reset() { + *x = EntityOperationSignaledEvent{} + mi := &file_orchestrator_service_proto_msgTypes[26] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } -func (x *HistoryEvent) String() string { +func (x *EntityOperationSignaledEvent) String() string { return protoimpl.X.MessageStringOf(x) } -func (*HistoryEvent) ProtoMessage() {} +func (*EntityOperationSignaledEvent) ProtoMessage() {} -func (x *HistoryEvent) ProtoReflect() protoreflect.Message { +func (x *EntityOperationSignaledEvent) ProtoReflect() protoreflect.Message { mi := &file_orchestrator_service_proto_msgTypes[26] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1741,324 +1713,335 @@ func (x *HistoryEvent) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use HistoryEvent.ProtoReflect.Descriptor instead. -func (*HistoryEvent) Descriptor() ([]byte, []int) { +// Deprecated: Use EntityOperationSignaledEvent.ProtoReflect.Descriptor instead. +func (*EntityOperationSignaledEvent) Descriptor() ([]byte, []int) { return file_orchestrator_service_proto_rawDescGZIP(), []int{26} } -func (x *HistoryEvent) GetEventId() int32 { +func (x *EntityOperationSignaledEvent) GetRequestId() string { if x != nil { - return x.EventId + return x.RequestId } - return 0 + return "" } -func (x *HistoryEvent) GetTimestamp() *timestamp.Timestamp { +func (x *EntityOperationSignaledEvent) GetOperation() string { if x != nil { - return x.Timestamp + return x.Operation } - return nil + return "" } -func (m *HistoryEvent) GetEventType() isHistoryEvent_EventType { - if m != nil { - return m.EventType +func (x *EntityOperationSignaledEvent) GetScheduledTime() *timestamp.Timestamp { + if x != nil { + return x.ScheduledTime } return nil } -func (x *HistoryEvent) GetExecutionStarted() *ExecutionStartedEvent { - if x, ok := x.GetEventType().(*HistoryEvent_ExecutionStarted); ok { - return x.ExecutionStarted +func (x *EntityOperationSignaledEvent) GetInput() *wrappers.StringValue { + if x != nil { + return x.Input } return nil } -func (x *HistoryEvent) GetExecutionCompleted() *ExecutionCompletedEvent { - if x, ok := x.GetEventType().(*HistoryEvent_ExecutionCompleted); ok { - return x.ExecutionCompleted +func (x *EntityOperationSignaledEvent) GetTargetInstanceId() *wrappers.StringValue { + if x != nil { + return x.TargetInstanceId } return nil } -func (x *HistoryEvent) GetExecutionTerminated() *ExecutionTerminatedEvent { - if x, ok := x.GetEventType().(*HistoryEvent_ExecutionTerminated); ok { - return x.ExecutionTerminated - } - return nil +type EntityOperationCalledEvent struct { + state protoimpl.MessageState `protogen:"open.v1"` + RequestId string `protobuf:"bytes,1,opt,name=requestId,proto3" json:"requestId,omitempty"` + Operation string `protobuf:"bytes,2,opt,name=operation,proto3" json:"operation,omitempty"` + ScheduledTime *timestamp.Timestamp `protobuf:"bytes,3,opt,name=scheduledTime,proto3" json:"scheduledTime,omitempty"` + Input *wrappers.StringValue `protobuf:"bytes,4,opt,name=input,proto3" json:"input,omitempty"` + ParentInstanceId *wrappers.StringValue `protobuf:"bytes,5,opt,name=parentInstanceId,proto3" json:"parentInstanceId,omitempty"` // used only within messages, null in histories + ParentExecutionId *wrappers.StringValue `protobuf:"bytes,6,opt,name=parentExecutionId,proto3" json:"parentExecutionId,omitempty"` // used only within messages, null in histories + TargetInstanceId *wrappers.StringValue `protobuf:"bytes,7,opt,name=targetInstanceId,proto3" json:"targetInstanceId,omitempty"` // used only within histories, null in messages + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } -func (x *HistoryEvent) GetTaskScheduled() *TaskScheduledEvent { - if x, ok := x.GetEventType().(*HistoryEvent_TaskScheduled); ok { - return x.TaskScheduled - } - return nil +func (x *EntityOperationCalledEvent) Reset() { + *x = EntityOperationCalledEvent{} + mi := &file_orchestrator_service_proto_msgTypes[27] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } -func (x *HistoryEvent) GetTaskCompleted() *TaskCompletedEvent { - if x, ok := x.GetEventType().(*HistoryEvent_TaskCompleted); ok { - return x.TaskCompleted - } - return nil +func (x *EntityOperationCalledEvent) String() string { + return protoimpl.X.MessageStringOf(x) } -func (x *HistoryEvent) GetTaskFailed() *TaskFailedEvent { - if x, ok := x.GetEventType().(*HistoryEvent_TaskFailed); ok { - return x.TaskFailed - } - return nil -} +func (*EntityOperationCalledEvent) ProtoMessage() {} -func (x *HistoryEvent) GetSubOrchestrationInstanceCreated() *SubOrchestrationInstanceCreatedEvent { - if x, ok := x.GetEventType().(*HistoryEvent_SubOrchestrationInstanceCreated); ok { - return x.SubOrchestrationInstanceCreated +func (x *EntityOperationCalledEvent) ProtoReflect() protoreflect.Message { + mi := &file_orchestrator_service_proto_msgTypes[27] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } - return nil + return mi.MessageOf(x) } -func (x *HistoryEvent) GetSubOrchestrationInstanceCompleted() *SubOrchestrationInstanceCompletedEvent { - if x, ok := x.GetEventType().(*HistoryEvent_SubOrchestrationInstanceCompleted); ok { - return x.SubOrchestrationInstanceCompleted - } - return nil +// Deprecated: Use EntityOperationCalledEvent.ProtoReflect.Descriptor instead. +func (*EntityOperationCalledEvent) Descriptor() ([]byte, []int) { + return file_orchestrator_service_proto_rawDescGZIP(), []int{27} } -func (x *HistoryEvent) GetSubOrchestrationInstanceFailed() *SubOrchestrationInstanceFailedEvent { - if x, ok := x.GetEventType().(*HistoryEvent_SubOrchestrationInstanceFailed); ok { - return x.SubOrchestrationInstanceFailed +func (x *EntityOperationCalledEvent) GetRequestId() string { + if x != nil { + return x.RequestId } - return nil + return "" } -func (x *HistoryEvent) GetTimerCreated() *TimerCreatedEvent { - if x, ok := x.GetEventType().(*HistoryEvent_TimerCreated); ok { - return x.TimerCreated +func (x *EntityOperationCalledEvent) GetOperation() string { + if x != nil { + return x.Operation } - return nil + return "" } -func (x *HistoryEvent) GetTimerFired() *TimerFiredEvent { - if x, ok := x.GetEventType().(*HistoryEvent_TimerFired); ok { - return x.TimerFired +func (x *EntityOperationCalledEvent) GetScheduledTime() *timestamp.Timestamp { + if x != nil { + return x.ScheduledTime } return nil } -func (x *HistoryEvent) GetOrchestratorStarted() *OrchestratorStartedEvent { - if x, ok := x.GetEventType().(*HistoryEvent_OrchestratorStarted); ok { - return x.OrchestratorStarted +func (x *EntityOperationCalledEvent) GetInput() *wrappers.StringValue { + if x != nil { + return x.Input } return nil } -func (x *HistoryEvent) GetOrchestratorCompleted() *OrchestratorCompletedEvent { - if x, ok := x.GetEventType().(*HistoryEvent_OrchestratorCompleted); ok { - return x.OrchestratorCompleted +func (x *EntityOperationCalledEvent) GetParentInstanceId() *wrappers.StringValue { + if x != nil { + return x.ParentInstanceId } return nil } -func (x *HistoryEvent) GetEventSent() *EventSentEvent { - if x, ok := x.GetEventType().(*HistoryEvent_EventSent); ok { - return x.EventSent +func (x *EntityOperationCalledEvent) GetParentExecutionId() *wrappers.StringValue { + if x != nil { + return x.ParentExecutionId } return nil } -func (x *HistoryEvent) GetEventRaised() *EventRaisedEvent { - if x, ok := x.GetEventType().(*HistoryEvent_EventRaised); ok { - return x.EventRaised +func (x *EntityOperationCalledEvent) GetTargetInstanceId() *wrappers.StringValue { + if x != nil { + return x.TargetInstanceId } return nil } -func (x *HistoryEvent) GetGenericEvent() *GenericEvent { - if x, ok := x.GetEventType().(*HistoryEvent_GenericEvent); ok { - return x.GenericEvent - } - return nil +type EntityLockRequestedEvent struct { + state protoimpl.MessageState `protogen:"open.v1"` + CriticalSectionId string `protobuf:"bytes,1,opt,name=criticalSectionId,proto3" json:"criticalSectionId,omitempty"` + LockSet []string `protobuf:"bytes,2,rep,name=lockSet,proto3" json:"lockSet,omitempty"` + Position int32 `protobuf:"varint,3,opt,name=position,proto3" json:"position,omitempty"` + ParentInstanceId *wrappers.StringValue `protobuf:"bytes,4,opt,name=parentInstanceId,proto3" json:"parentInstanceId,omitempty"` // used only within messages, null in histories + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } -func (x *HistoryEvent) GetHistoryState() *HistoryStateEvent { - if x, ok := x.GetEventType().(*HistoryEvent_HistoryState); ok { - return x.HistoryState - } - return nil +func (x *EntityLockRequestedEvent) Reset() { + *x = EntityLockRequestedEvent{} + mi := &file_orchestrator_service_proto_msgTypes[28] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } -func (x *HistoryEvent) GetContinueAsNew() *ContinueAsNewEvent { - if x, ok := x.GetEventType().(*HistoryEvent_ContinueAsNew); ok { - return x.ContinueAsNew - } - return nil +func (x *EntityLockRequestedEvent) String() string { + return protoimpl.X.MessageStringOf(x) } -func (x *HistoryEvent) GetExecutionSuspended() *ExecutionSuspendedEvent { - if x, ok := x.GetEventType().(*HistoryEvent_ExecutionSuspended); ok { - return x.ExecutionSuspended - } - return nil -} +func (*EntityLockRequestedEvent) ProtoMessage() {} -func (x *HistoryEvent) GetExecutionResumed() *ExecutionResumedEvent { - if x, ok := x.GetEventType().(*HistoryEvent_ExecutionResumed); ok { - return x.ExecutionResumed +func (x *EntityLockRequestedEvent) ProtoReflect() protoreflect.Message { + mi := &file_orchestrator_service_proto_msgTypes[28] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } - return nil + return mi.MessageOf(x) } -type isHistoryEvent_EventType interface { - isHistoryEvent_EventType() +// Deprecated: Use EntityLockRequestedEvent.ProtoReflect.Descriptor instead. +func (*EntityLockRequestedEvent) Descriptor() ([]byte, []int) { + return file_orchestrator_service_proto_rawDescGZIP(), []int{28} } -type HistoryEvent_ExecutionStarted struct { - ExecutionStarted *ExecutionStartedEvent `protobuf:"bytes,3,opt,name=executionStarted,proto3,oneof"` +func (x *EntityLockRequestedEvent) GetCriticalSectionId() string { + if x != nil { + return x.CriticalSectionId + } + return "" } -type HistoryEvent_ExecutionCompleted struct { - ExecutionCompleted *ExecutionCompletedEvent `protobuf:"bytes,4,opt,name=executionCompleted,proto3,oneof"` +func (x *EntityLockRequestedEvent) GetLockSet() []string { + if x != nil { + return x.LockSet + } + return nil } -type HistoryEvent_ExecutionTerminated struct { - ExecutionTerminated *ExecutionTerminatedEvent `protobuf:"bytes,5,opt,name=executionTerminated,proto3,oneof"` +func (x *EntityLockRequestedEvent) GetPosition() int32 { + if x != nil { + return x.Position + } + return 0 } -type HistoryEvent_TaskScheduled struct { - TaskScheduled *TaskScheduledEvent `protobuf:"bytes,6,opt,name=taskScheduled,proto3,oneof"` +func (x *EntityLockRequestedEvent) GetParentInstanceId() *wrappers.StringValue { + if x != nil { + return x.ParentInstanceId + } + return nil } -type HistoryEvent_TaskCompleted struct { - TaskCompleted *TaskCompletedEvent `protobuf:"bytes,7,opt,name=taskCompleted,proto3,oneof"` +type EntityOperationCompletedEvent struct { + state protoimpl.MessageState `protogen:"open.v1"` + RequestId string `protobuf:"bytes,1,opt,name=requestId,proto3" json:"requestId,omitempty"` + Output *wrappers.StringValue `protobuf:"bytes,2,opt,name=output,proto3" json:"output,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } -type HistoryEvent_TaskFailed struct { - TaskFailed *TaskFailedEvent `protobuf:"bytes,8,opt,name=taskFailed,proto3,oneof"` +func (x *EntityOperationCompletedEvent) Reset() { + *x = EntityOperationCompletedEvent{} + mi := &file_orchestrator_service_proto_msgTypes[29] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } -type HistoryEvent_SubOrchestrationInstanceCreated struct { - SubOrchestrationInstanceCreated *SubOrchestrationInstanceCreatedEvent `protobuf:"bytes,9,opt,name=subOrchestrationInstanceCreated,proto3,oneof"` +func (x *EntityOperationCompletedEvent) String() string { + return protoimpl.X.MessageStringOf(x) } -type HistoryEvent_SubOrchestrationInstanceCompleted struct { - SubOrchestrationInstanceCompleted *SubOrchestrationInstanceCompletedEvent `protobuf:"bytes,10,opt,name=subOrchestrationInstanceCompleted,proto3,oneof"` -} +func (*EntityOperationCompletedEvent) ProtoMessage() {} -type HistoryEvent_SubOrchestrationInstanceFailed struct { - SubOrchestrationInstanceFailed *SubOrchestrationInstanceFailedEvent `protobuf:"bytes,11,opt,name=subOrchestrationInstanceFailed,proto3,oneof"` +func (x *EntityOperationCompletedEvent) ProtoReflect() protoreflect.Message { + mi := &file_orchestrator_service_proto_msgTypes[29] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -type HistoryEvent_TimerCreated struct { - TimerCreated *TimerCreatedEvent `protobuf:"bytes,12,opt,name=timerCreated,proto3,oneof"` +// Deprecated: Use EntityOperationCompletedEvent.ProtoReflect.Descriptor instead. +func (*EntityOperationCompletedEvent) Descriptor() ([]byte, []int) { + return file_orchestrator_service_proto_rawDescGZIP(), []int{29} } -type HistoryEvent_TimerFired struct { - TimerFired *TimerFiredEvent `protobuf:"bytes,13,opt,name=timerFired,proto3,oneof"` +func (x *EntityOperationCompletedEvent) GetRequestId() string { + if x != nil { + return x.RequestId + } + return "" } -type HistoryEvent_OrchestratorStarted struct { - OrchestratorStarted *OrchestratorStartedEvent `protobuf:"bytes,14,opt,name=orchestratorStarted,proto3,oneof"` +func (x *EntityOperationCompletedEvent) GetOutput() *wrappers.StringValue { + if x != nil { + return x.Output + } + return nil } -type HistoryEvent_OrchestratorCompleted struct { - OrchestratorCompleted *OrchestratorCompletedEvent `protobuf:"bytes,15,opt,name=orchestratorCompleted,proto3,oneof"` +type EntityOperationFailedEvent struct { + state protoimpl.MessageState `protogen:"open.v1"` + RequestId string `protobuf:"bytes,1,opt,name=requestId,proto3" json:"requestId,omitempty"` + FailureDetails *TaskFailureDetails `protobuf:"bytes,2,opt,name=failureDetails,proto3" json:"failureDetails,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } -type HistoryEvent_EventSent struct { - EventSent *EventSentEvent `protobuf:"bytes,16,opt,name=eventSent,proto3,oneof"` +func (x *EntityOperationFailedEvent) Reset() { + *x = EntityOperationFailedEvent{} + mi := &file_orchestrator_service_proto_msgTypes[30] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } -type HistoryEvent_EventRaised struct { - EventRaised *EventRaisedEvent `protobuf:"bytes,17,opt,name=eventRaised,proto3,oneof"` +func (x *EntityOperationFailedEvent) String() string { + return protoimpl.X.MessageStringOf(x) } -type HistoryEvent_GenericEvent struct { - GenericEvent *GenericEvent `protobuf:"bytes,18,opt,name=genericEvent,proto3,oneof"` -} +func (*EntityOperationFailedEvent) ProtoMessage() {} -type HistoryEvent_HistoryState struct { - HistoryState *HistoryStateEvent `protobuf:"bytes,19,opt,name=historyState,proto3,oneof"` +func (x *EntityOperationFailedEvent) ProtoReflect() protoreflect.Message { + mi := &file_orchestrator_service_proto_msgTypes[30] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -type HistoryEvent_ContinueAsNew struct { - ContinueAsNew *ContinueAsNewEvent `protobuf:"bytes,20,opt,name=continueAsNew,proto3,oneof"` +// Deprecated: Use EntityOperationFailedEvent.ProtoReflect.Descriptor instead. +func (*EntityOperationFailedEvent) Descriptor() ([]byte, []int) { + return file_orchestrator_service_proto_rawDescGZIP(), []int{30} } -type HistoryEvent_ExecutionSuspended struct { - ExecutionSuspended *ExecutionSuspendedEvent `protobuf:"bytes,21,opt,name=executionSuspended,proto3,oneof"` +func (x *EntityOperationFailedEvent) GetRequestId() string { + if x != nil { + return x.RequestId + } + return "" } -type HistoryEvent_ExecutionResumed struct { - ExecutionResumed *ExecutionResumedEvent `protobuf:"bytes,22,opt,name=executionResumed,proto3,oneof"` +func (x *EntityOperationFailedEvent) GetFailureDetails() *TaskFailureDetails { + if x != nil { + return x.FailureDetails + } + return nil } -func (*HistoryEvent_ExecutionStarted) isHistoryEvent_EventType() {} - -func (*HistoryEvent_ExecutionCompleted) isHistoryEvent_EventType() {} - -func (*HistoryEvent_ExecutionTerminated) isHistoryEvent_EventType() {} - -func (*HistoryEvent_TaskScheduled) isHistoryEvent_EventType() {} - -func (*HistoryEvent_TaskCompleted) isHistoryEvent_EventType() {} - -func (*HistoryEvent_TaskFailed) isHistoryEvent_EventType() {} - -func (*HistoryEvent_SubOrchestrationInstanceCreated) isHistoryEvent_EventType() {} - -func (*HistoryEvent_SubOrchestrationInstanceCompleted) isHistoryEvent_EventType() {} - -func (*HistoryEvent_SubOrchestrationInstanceFailed) isHistoryEvent_EventType() {} - -func (*HistoryEvent_TimerCreated) isHistoryEvent_EventType() {} - -func (*HistoryEvent_TimerFired) isHistoryEvent_EventType() {} - -func (*HistoryEvent_OrchestratorStarted) isHistoryEvent_EventType() {} - -func (*HistoryEvent_OrchestratorCompleted) isHistoryEvent_EventType() {} - -func (*HistoryEvent_EventSent) isHistoryEvent_EventType() {} - -func (*HistoryEvent_EventRaised) isHistoryEvent_EventType() {} - -func (*HistoryEvent_GenericEvent) isHistoryEvent_EventType() {} - -func (*HistoryEvent_HistoryState) isHistoryEvent_EventType() {} - -func (*HistoryEvent_ContinueAsNew) isHistoryEvent_EventType() {} - -func (*HistoryEvent_ExecutionSuspended) isHistoryEvent_EventType() {} - -func (*HistoryEvent_ExecutionResumed) isHistoryEvent_EventType() {} - -type ScheduleTaskAction struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` - Version *wrappers.StringValue `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"` - Input *wrappers.StringValue `protobuf:"bytes,3,opt,name=input,proto3" json:"input,omitempty"` +type EntityUnlockSentEvent struct { + state protoimpl.MessageState `protogen:"open.v1"` + CriticalSectionId string `protobuf:"bytes,1,opt,name=criticalSectionId,proto3" json:"criticalSectionId,omitempty"` + ParentInstanceId *wrappers.StringValue `protobuf:"bytes,2,opt,name=parentInstanceId,proto3" json:"parentInstanceId,omitempty"` // used only within messages, null in histories + TargetInstanceId *wrappers.StringValue `protobuf:"bytes,3,opt,name=targetInstanceId,proto3" json:"targetInstanceId,omitempty"` // used only within histories, null in messages + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } -func (x *ScheduleTaskAction) Reset() { - *x = ScheduleTaskAction{} - if protoimpl.UnsafeEnabled { - mi := &file_orchestrator_service_proto_msgTypes[27] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } +func (x *EntityUnlockSentEvent) Reset() { + *x = EntityUnlockSentEvent{} + mi := &file_orchestrator_service_proto_msgTypes[31] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } -func (x *ScheduleTaskAction) String() string { +func (x *EntityUnlockSentEvent) String() string { return protoimpl.X.MessageStringOf(x) } -func (*ScheduleTaskAction) ProtoMessage() {} +func (*EntityUnlockSentEvent) ProtoMessage() {} -func (x *ScheduleTaskAction) ProtoReflect() protoreflect.Message { - mi := &file_orchestrator_service_proto_msgTypes[27] - if protoimpl.UnsafeEnabled && x != nil { +func (x *EntityUnlockSentEvent) ProtoReflect() protoreflect.Message { + mi := &file_orchestrator_service_proto_msgTypes[31] + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2068,61 +2051,55 @@ func (x *ScheduleTaskAction) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use ScheduleTaskAction.ProtoReflect.Descriptor instead. -func (*ScheduleTaskAction) Descriptor() ([]byte, []int) { - return file_orchestrator_service_proto_rawDescGZIP(), []int{27} +// Deprecated: Use EntityUnlockSentEvent.ProtoReflect.Descriptor instead. +func (*EntityUnlockSentEvent) Descriptor() ([]byte, []int) { + return file_orchestrator_service_proto_rawDescGZIP(), []int{31} } -func (x *ScheduleTaskAction) GetName() string { +func (x *EntityUnlockSentEvent) GetCriticalSectionId() string { if x != nil { - return x.Name + return x.CriticalSectionId } return "" } -func (x *ScheduleTaskAction) GetVersion() *wrappers.StringValue { +func (x *EntityUnlockSentEvent) GetParentInstanceId() *wrappers.StringValue { if x != nil { - return x.Version + return x.ParentInstanceId } return nil } -func (x *ScheduleTaskAction) GetInput() *wrappers.StringValue { +func (x *EntityUnlockSentEvent) GetTargetInstanceId() *wrappers.StringValue { if x != nil { - return x.Input + return x.TargetInstanceId } return nil } -type CreateSubOrchestrationAction struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - InstanceId string `protobuf:"bytes,1,opt,name=instanceId,proto3" json:"instanceId,omitempty"` - Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` - Version *wrappers.StringValue `protobuf:"bytes,3,opt,name=version,proto3" json:"version,omitempty"` - Input *wrappers.StringValue `protobuf:"bytes,4,opt,name=input,proto3" json:"input,omitempty"` +type EntityLockGrantedEvent struct { + state protoimpl.MessageState `protogen:"open.v1"` + CriticalSectionId string `protobuf:"bytes,1,opt,name=criticalSectionId,proto3" json:"criticalSectionId,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } -func (x *CreateSubOrchestrationAction) Reset() { - *x = CreateSubOrchestrationAction{} - if protoimpl.UnsafeEnabled { - mi := &file_orchestrator_service_proto_msgTypes[28] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } +func (x *EntityLockGrantedEvent) Reset() { + *x = EntityLockGrantedEvent{} + mi := &file_orchestrator_service_proto_msgTypes[32] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } -func (x *CreateSubOrchestrationAction) String() string { +func (x *EntityLockGrantedEvent) String() string { return protoimpl.X.MessageStringOf(x) } -func (*CreateSubOrchestrationAction) ProtoMessage() {} +func (*EntityLockGrantedEvent) ProtoMessage() {} -func (x *CreateSubOrchestrationAction) ProtoReflect() protoreflect.Message { - mi := &file_orchestrator_service_proto_msgTypes[28] - if protoimpl.UnsafeEnabled && x != nil { +func (x *EntityLockGrantedEvent) ProtoReflect() protoreflect.Message { + mi := &file_orchestrator_service_proto_msgTypes[32] + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2132,65 +2109,49 @@ func (x *CreateSubOrchestrationAction) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use CreateSubOrchestrationAction.ProtoReflect.Descriptor instead. -func (*CreateSubOrchestrationAction) Descriptor() ([]byte, []int) { - return file_orchestrator_service_proto_rawDescGZIP(), []int{28} -} - -func (x *CreateSubOrchestrationAction) GetInstanceId() string { - if x != nil { - return x.InstanceId - } - return "" +// Deprecated: Use EntityLockGrantedEvent.ProtoReflect.Descriptor instead. +func (*EntityLockGrantedEvent) Descriptor() ([]byte, []int) { + return file_orchestrator_service_proto_rawDescGZIP(), []int{32} } -func (x *CreateSubOrchestrationAction) GetName() string { +func (x *EntityLockGrantedEvent) GetCriticalSectionId() string { if x != nil { - return x.Name + return x.CriticalSectionId } return "" } -func (x *CreateSubOrchestrationAction) GetVersion() *wrappers.StringValue { - if x != nil { - return x.Version - } - return nil -} - -func (x *CreateSubOrchestrationAction) GetInput() *wrappers.StringValue { - if x != nil { - return x.Input - } - return nil -} - -type CreateTimerAction struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - FireAt *timestamp.Timestamp `protobuf:"bytes,1,opt,name=fireAt,proto3" json:"fireAt,omitempty"` +type ExecutionRewoundEvent struct { + state protoimpl.MessageState `protogen:"open.v1"` + Reason *wrappers.StringValue `protobuf:"bytes,1,opt,name=reason,proto3" json:"reason,omitempty"` + ParentExecutionId *wrappers.StringValue `protobuf:"bytes,2,opt,name=parentExecutionId,proto3" json:"parentExecutionId,omitempty"` // used only for rewinding suborchestrations, null otherwise + InstanceId *wrappers.StringValue `protobuf:"bytes,3,opt,name=instanceId,proto3" json:"instanceId,omitempty"` // used only for rewinding suborchestrations, null otherwise + ParentTraceContext *TraceContext `protobuf:"bytes,4,opt,name=parentTraceContext,proto3" json:"parentTraceContext,omitempty"` // used only for rewinding suborchestrations, null otherwise + Name *wrappers.StringValue `protobuf:"bytes,5,opt,name=name,proto3" json:"name,omitempty"` // used by DTS backend only + Version *wrappers.StringValue `protobuf:"bytes,6,opt,name=version,proto3" json:"version,omitempty"` // used by DTS backend only + Input *wrappers.StringValue `protobuf:"bytes,7,opt,name=input,proto3" json:"input,omitempty"` // used by DTS backend only + ParentInstance *ParentInstanceInfo `protobuf:"bytes,8,opt,name=parentInstance,proto3" json:"parentInstance,omitempty"` // used by DTS backend only + Tags map[string]string `protobuf:"bytes,9,rep,name=tags,proto3" json:"tags,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"` // used by DTS backend only + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } -func (x *CreateTimerAction) Reset() { - *x = CreateTimerAction{} - if protoimpl.UnsafeEnabled { - mi := &file_orchestrator_service_proto_msgTypes[29] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } +func (x *ExecutionRewoundEvent) Reset() { + *x = ExecutionRewoundEvent{} + mi := &file_orchestrator_service_proto_msgTypes[33] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } -func (x *CreateTimerAction) String() string { +func (x *ExecutionRewoundEvent) String() string { return protoimpl.X.MessageStringOf(x) } -func (*CreateTimerAction) ProtoMessage() {} +func (*ExecutionRewoundEvent) ProtoMessage() {} -func (x *CreateTimerAction) ProtoReflect() protoreflect.Message { - mi := &file_orchestrator_service_proto_msgTypes[29] - if protoimpl.UnsafeEnabled && x != nil { +func (x *ExecutionRewoundEvent) ProtoReflect() protoreflect.Message { + mi := &file_orchestrator_service_proto_msgTypes[33] + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2200,112 +2161,129 @@ func (x *CreateTimerAction) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use CreateTimerAction.ProtoReflect.Descriptor instead. -func (*CreateTimerAction) Descriptor() ([]byte, []int) { - return file_orchestrator_service_proto_rawDescGZIP(), []int{29} +// Deprecated: Use ExecutionRewoundEvent.ProtoReflect.Descriptor instead. +func (*ExecutionRewoundEvent) Descriptor() ([]byte, []int) { + return file_orchestrator_service_proto_rawDescGZIP(), []int{33} } -func (x *CreateTimerAction) GetFireAt() *timestamp.Timestamp { +func (x *ExecutionRewoundEvent) GetReason() *wrappers.StringValue { if x != nil { - return x.FireAt + return x.Reason } return nil } -type SendEventAction struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Instance *OrchestrationInstance `protobuf:"bytes,1,opt,name=instance,proto3" json:"instance,omitempty"` - Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` - Data *wrappers.StringValue `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"` +func (x *ExecutionRewoundEvent) GetParentExecutionId() *wrappers.StringValue { + if x != nil { + return x.ParentExecutionId + } + return nil } -func (x *SendEventAction) Reset() { - *x = SendEventAction{} - if protoimpl.UnsafeEnabled { - mi := &file_orchestrator_service_proto_msgTypes[30] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) +func (x *ExecutionRewoundEvent) GetInstanceId() *wrappers.StringValue { + if x != nil { + return x.InstanceId } + return nil } -func (x *SendEventAction) String() string { - return protoimpl.X.MessageStringOf(x) +func (x *ExecutionRewoundEvent) GetParentTraceContext() *TraceContext { + if x != nil { + return x.ParentTraceContext + } + return nil } -func (*SendEventAction) ProtoMessage() {} - -func (x *SendEventAction) ProtoReflect() protoreflect.Message { - mi := &file_orchestrator_service_proto_msgTypes[30] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms +func (x *ExecutionRewoundEvent) GetName() *wrappers.StringValue { + if x != nil { + return x.Name } - return mi.MessageOf(x) + return nil } -// Deprecated: Use SendEventAction.ProtoReflect.Descriptor instead. -func (*SendEventAction) Descriptor() ([]byte, []int) { - return file_orchestrator_service_proto_rawDescGZIP(), []int{30} +func (x *ExecutionRewoundEvent) GetVersion() *wrappers.StringValue { + if x != nil { + return x.Version + } + return nil } -func (x *SendEventAction) GetInstance() *OrchestrationInstance { +func (x *ExecutionRewoundEvent) GetInput() *wrappers.StringValue { if x != nil { - return x.Instance + return x.Input } return nil } -func (x *SendEventAction) GetName() string { +func (x *ExecutionRewoundEvent) GetParentInstance() *ParentInstanceInfo { if x != nil { - return x.Name + return x.ParentInstance } - return "" + return nil } -func (x *SendEventAction) GetData() *wrappers.StringValue { +func (x *ExecutionRewoundEvent) GetTags() map[string]string { if x != nil { - return x.Data + return x.Tags } return nil } -type CompleteOrchestrationAction struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache +type HistoryEvent struct { + state protoimpl.MessageState `protogen:"open.v1"` + EventId int32 `protobuf:"varint,1,opt,name=eventId,proto3" json:"eventId,omitempty"` + Timestamp *timestamp.Timestamp `protobuf:"bytes,2,opt,name=timestamp,proto3" json:"timestamp,omitempty"` + // Types that are valid to be assigned to EventType: + // + // *HistoryEvent_ExecutionStarted + // *HistoryEvent_ExecutionCompleted + // *HistoryEvent_ExecutionTerminated + // *HistoryEvent_TaskScheduled + // *HistoryEvent_TaskCompleted + // *HistoryEvent_TaskFailed + // *HistoryEvent_SubOrchestrationInstanceCreated + // *HistoryEvent_SubOrchestrationInstanceCompleted + // *HistoryEvent_SubOrchestrationInstanceFailed + // *HistoryEvent_TimerCreated + // *HistoryEvent_TimerFired + // *HistoryEvent_OrchestratorStarted + // *HistoryEvent_OrchestratorCompleted + // *HistoryEvent_EventSent + // *HistoryEvent_EventRaised + // *HistoryEvent_GenericEvent + // *HistoryEvent_HistoryState + // *HistoryEvent_ContinueAsNew + // *HistoryEvent_ExecutionSuspended + // *HistoryEvent_ExecutionResumed + // *HistoryEvent_EntityOperationSignaled + // *HistoryEvent_EntityOperationCalled + // *HistoryEvent_EntityOperationCompleted + // *HistoryEvent_EntityOperationFailed + // *HistoryEvent_EntityLockRequested + // *HistoryEvent_EntityLockGranted + // *HistoryEvent_EntityUnlockSent + // *HistoryEvent_ExecutionRewound + EventType isHistoryEvent_EventType `protobuf_oneof:"eventType"` unknownFields protoimpl.UnknownFields - - OrchestrationStatus OrchestrationStatus `protobuf:"varint,1,opt,name=orchestrationStatus,proto3,enum=OrchestrationStatus" json:"orchestrationStatus,omitempty"` - Result *wrappers.StringValue `protobuf:"bytes,2,opt,name=result,proto3" json:"result,omitempty"` - Details *wrappers.StringValue `protobuf:"bytes,3,opt,name=details,proto3" json:"details,omitempty"` - NewVersion *wrappers.StringValue `protobuf:"bytes,4,opt,name=newVersion,proto3" json:"newVersion,omitempty"` - CarryoverEvents []*HistoryEvent `protobuf:"bytes,5,rep,name=carryoverEvents,proto3" json:"carryoverEvents,omitempty"` - FailureDetails *TaskFailureDetails `protobuf:"bytes,6,opt,name=failureDetails,proto3" json:"failureDetails,omitempty"` + sizeCache protoimpl.SizeCache } -func (x *CompleteOrchestrationAction) Reset() { - *x = CompleteOrchestrationAction{} - if protoimpl.UnsafeEnabled { - mi := &file_orchestrator_service_proto_msgTypes[31] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } +func (x *HistoryEvent) Reset() { + *x = HistoryEvent{} + mi := &file_orchestrator_service_proto_msgTypes[34] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } -func (x *CompleteOrchestrationAction) String() string { +func (x *HistoryEvent) String() string { return protoimpl.X.MessageStringOf(x) } -func (*CompleteOrchestrationAction) ProtoMessage() {} +func (*HistoryEvent) ProtoMessage() {} -func (x *CompleteOrchestrationAction) ProtoReflect() protoreflect.Message { - mi := &file_orchestrator_service_proto_msgTypes[31] - if protoimpl.UnsafeEnabled && x != nil { +func (x *HistoryEvent) ProtoReflect() protoreflect.Message { + mi := &file_orchestrator_service_proto_msgTypes[34] + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2315,151 +2293,2066 @@ func (x *CompleteOrchestrationAction) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use CompleteOrchestrationAction.ProtoReflect.Descriptor instead. -func (*CompleteOrchestrationAction) Descriptor() ([]byte, []int) { - return file_orchestrator_service_proto_rawDescGZIP(), []int{31} +// Deprecated: Use HistoryEvent.ProtoReflect.Descriptor instead. +func (*HistoryEvent) Descriptor() ([]byte, []int) { + return file_orchestrator_service_proto_rawDescGZIP(), []int{34} } -func (x *CompleteOrchestrationAction) GetOrchestrationStatus() OrchestrationStatus { +func (x *HistoryEvent) GetEventId() int32 { if x != nil { - return x.OrchestrationStatus + return x.EventId } - return OrchestrationStatus_ORCHESTRATION_STATUS_RUNNING + return 0 } -func (x *CompleteOrchestrationAction) GetResult() *wrappers.StringValue { +func (x *HistoryEvent) GetTimestamp() *timestamp.Timestamp { if x != nil { - return x.Result + return x.Timestamp } return nil } -func (x *CompleteOrchestrationAction) GetDetails() *wrappers.StringValue { +func (x *HistoryEvent) GetEventType() isHistoryEvent_EventType { if x != nil { - return x.Details + return x.EventType } return nil } -func (x *CompleteOrchestrationAction) GetNewVersion() *wrappers.StringValue { +func (x *HistoryEvent) GetExecutionStarted() *ExecutionStartedEvent { if x != nil { - return x.NewVersion + if x, ok := x.EventType.(*HistoryEvent_ExecutionStarted); ok { + return x.ExecutionStarted + } } return nil } -func (x *CompleteOrchestrationAction) GetCarryoverEvents() []*HistoryEvent { +func (x *HistoryEvent) GetExecutionCompleted() *ExecutionCompletedEvent { if x != nil { - return x.CarryoverEvents + if x, ok := x.EventType.(*HistoryEvent_ExecutionCompleted); ok { + return x.ExecutionCompleted + } } return nil } -func (x *CompleteOrchestrationAction) GetFailureDetails() *TaskFailureDetails { +func (x *HistoryEvent) GetExecutionTerminated() *ExecutionTerminatedEvent { if x != nil { - return x.FailureDetails + if x, ok := x.EventType.(*HistoryEvent_ExecutionTerminated); ok { + return x.ExecutionTerminated + } } return nil } -type TerminateOrchestrationAction struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields +func (x *HistoryEvent) GetTaskScheduled() *TaskScheduledEvent { + if x != nil { + if x, ok := x.EventType.(*HistoryEvent_TaskScheduled); ok { + return x.TaskScheduled + } + } + return nil +} - InstanceId string `protobuf:"bytes,1,opt,name=instanceId,proto3" json:"instanceId,omitempty"` - Reason *wrappers.StringValue `protobuf:"bytes,2,opt,name=reason,proto3" json:"reason,omitempty"` - Recurse bool `protobuf:"varint,3,opt,name=recurse,proto3" json:"recurse,omitempty"` +func (x *HistoryEvent) GetTaskCompleted() *TaskCompletedEvent { + if x != nil { + if x, ok := x.EventType.(*HistoryEvent_TaskCompleted); ok { + return x.TaskCompleted + } + } + return nil } -func (x *TerminateOrchestrationAction) Reset() { - *x = TerminateOrchestrationAction{} - if protoimpl.UnsafeEnabled { - mi := &file_orchestrator_service_proto_msgTypes[32] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) +func (x *HistoryEvent) GetTaskFailed() *TaskFailedEvent { + if x != nil { + if x, ok := x.EventType.(*HistoryEvent_TaskFailed); ok { + return x.TaskFailed + } } + return nil } -func (x *TerminateOrchestrationAction) String() string { - return protoimpl.X.MessageStringOf(x) +func (x *HistoryEvent) GetSubOrchestrationInstanceCreated() *SubOrchestrationInstanceCreatedEvent { + if x != nil { + if x, ok := x.EventType.(*HistoryEvent_SubOrchestrationInstanceCreated); ok { + return x.SubOrchestrationInstanceCreated + } + } + return nil } -func (*TerminateOrchestrationAction) ProtoMessage() {} +func (x *HistoryEvent) GetSubOrchestrationInstanceCompleted() *SubOrchestrationInstanceCompletedEvent { + if x != nil { + if x, ok := x.EventType.(*HistoryEvent_SubOrchestrationInstanceCompleted); ok { + return x.SubOrchestrationInstanceCompleted + } + } + return nil +} -func (x *TerminateOrchestrationAction) ProtoReflect() protoreflect.Message { - mi := &file_orchestrator_service_proto_msgTypes[32] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) +func (x *HistoryEvent) GetSubOrchestrationInstanceFailed() *SubOrchestrationInstanceFailedEvent { + if x != nil { + if x, ok := x.EventType.(*HistoryEvent_SubOrchestrationInstanceFailed); ok { + return x.SubOrchestrationInstanceFailed } - return ms } - return mi.MessageOf(x) + return nil } -// Deprecated: Use TerminateOrchestrationAction.ProtoReflect.Descriptor instead. -func (*TerminateOrchestrationAction) Descriptor() ([]byte, []int) { - return file_orchestrator_service_proto_rawDescGZIP(), []int{32} +func (x *HistoryEvent) GetTimerCreated() *TimerCreatedEvent { + if x != nil { + if x, ok := x.EventType.(*HistoryEvent_TimerCreated); ok { + return x.TimerCreated + } + } + return nil } -func (x *TerminateOrchestrationAction) GetInstanceId() string { +func (x *HistoryEvent) GetTimerFired() *TimerFiredEvent { if x != nil { - return x.InstanceId + if x, ok := x.EventType.(*HistoryEvent_TimerFired); ok { + return x.TimerFired + } } - return "" + return nil } -func (x *TerminateOrchestrationAction) GetReason() *wrappers.StringValue { +func (x *HistoryEvent) GetOrchestratorStarted() *OrchestratorStartedEvent { if x != nil { - return x.Reason + if x, ok := x.EventType.(*HistoryEvent_OrchestratorStarted); ok { + return x.OrchestratorStarted + } } return nil } -func (x *TerminateOrchestrationAction) GetRecurse() bool { +func (x *HistoryEvent) GetOrchestratorCompleted() *OrchestratorCompletedEvent { if x != nil { - return x.Recurse + if x, ok := x.EventType.(*HistoryEvent_OrchestratorCompleted); ok { + return x.OrchestratorCompleted + } } - return false + return nil } -type OrchestratorAction struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache +func (x *HistoryEvent) GetEventSent() *EventSentEvent { + if x != nil { + if x, ok := x.EventType.(*HistoryEvent_EventSent); ok { + return x.EventSent + } + } + return nil +} + +func (x *HistoryEvent) GetEventRaised() *EventRaisedEvent { + if x != nil { + if x, ok := x.EventType.(*HistoryEvent_EventRaised); ok { + return x.EventRaised + } + } + return nil +} + +func (x *HistoryEvent) GetGenericEvent() *GenericEvent { + if x != nil { + if x, ok := x.EventType.(*HistoryEvent_GenericEvent); ok { + return x.GenericEvent + } + } + return nil +} + +func (x *HistoryEvent) GetHistoryState() *HistoryStateEvent { + if x != nil { + if x, ok := x.EventType.(*HistoryEvent_HistoryState); ok { + return x.HistoryState + } + } + return nil +} + +func (x *HistoryEvent) GetContinueAsNew() *ContinueAsNewEvent { + if x != nil { + if x, ok := x.EventType.(*HistoryEvent_ContinueAsNew); ok { + return x.ContinueAsNew + } + } + return nil +} + +func (x *HistoryEvent) GetExecutionSuspended() *ExecutionSuspendedEvent { + if x != nil { + if x, ok := x.EventType.(*HistoryEvent_ExecutionSuspended); ok { + return x.ExecutionSuspended + } + } + return nil +} + +func (x *HistoryEvent) GetExecutionResumed() *ExecutionResumedEvent { + if x != nil { + if x, ok := x.EventType.(*HistoryEvent_ExecutionResumed); ok { + return x.ExecutionResumed + } + } + return nil +} + +func (x *HistoryEvent) GetEntityOperationSignaled() *EntityOperationSignaledEvent { + if x != nil { + if x, ok := x.EventType.(*HistoryEvent_EntityOperationSignaled); ok { + return x.EntityOperationSignaled + } + } + return nil +} + +func (x *HistoryEvent) GetEntityOperationCalled() *EntityOperationCalledEvent { + if x != nil { + if x, ok := x.EventType.(*HistoryEvent_EntityOperationCalled); ok { + return x.EntityOperationCalled + } + } + return nil +} + +func (x *HistoryEvent) GetEntityOperationCompleted() *EntityOperationCompletedEvent { + if x != nil { + if x, ok := x.EventType.(*HistoryEvent_EntityOperationCompleted); ok { + return x.EntityOperationCompleted + } + } + return nil +} + +func (x *HistoryEvent) GetEntityOperationFailed() *EntityOperationFailedEvent { + if x != nil { + if x, ok := x.EventType.(*HistoryEvent_EntityOperationFailed); ok { + return x.EntityOperationFailed + } + } + return nil +} + +func (x *HistoryEvent) GetEntityLockRequested() *EntityLockRequestedEvent { + if x != nil { + if x, ok := x.EventType.(*HistoryEvent_EntityLockRequested); ok { + return x.EntityLockRequested + } + } + return nil +} + +func (x *HistoryEvent) GetEntityLockGranted() *EntityLockGrantedEvent { + if x != nil { + if x, ok := x.EventType.(*HistoryEvent_EntityLockGranted); ok { + return x.EntityLockGranted + } + } + return nil +} + +func (x *HistoryEvent) GetEntityUnlockSent() *EntityUnlockSentEvent { + if x != nil { + if x, ok := x.EventType.(*HistoryEvent_EntityUnlockSent); ok { + return x.EntityUnlockSent + } + } + return nil +} + +func (x *HistoryEvent) GetExecutionRewound() *ExecutionRewoundEvent { + if x != nil { + if x, ok := x.EventType.(*HistoryEvent_ExecutionRewound); ok { + return x.ExecutionRewound + } + } + return nil +} + +type isHistoryEvent_EventType interface { + isHistoryEvent_EventType() +} + +type HistoryEvent_ExecutionStarted struct { + ExecutionStarted *ExecutionStartedEvent `protobuf:"bytes,3,opt,name=executionStarted,proto3,oneof"` +} + +type HistoryEvent_ExecutionCompleted struct { + ExecutionCompleted *ExecutionCompletedEvent `protobuf:"bytes,4,opt,name=executionCompleted,proto3,oneof"` +} + +type HistoryEvent_ExecutionTerminated struct { + ExecutionTerminated *ExecutionTerminatedEvent `protobuf:"bytes,5,opt,name=executionTerminated,proto3,oneof"` +} + +type HistoryEvent_TaskScheduled struct { + TaskScheduled *TaskScheduledEvent `protobuf:"bytes,6,opt,name=taskScheduled,proto3,oneof"` +} + +type HistoryEvent_TaskCompleted struct { + TaskCompleted *TaskCompletedEvent `protobuf:"bytes,7,opt,name=taskCompleted,proto3,oneof"` +} + +type HistoryEvent_TaskFailed struct { + TaskFailed *TaskFailedEvent `protobuf:"bytes,8,opt,name=taskFailed,proto3,oneof"` +} + +type HistoryEvent_SubOrchestrationInstanceCreated struct { + SubOrchestrationInstanceCreated *SubOrchestrationInstanceCreatedEvent `protobuf:"bytes,9,opt,name=subOrchestrationInstanceCreated,proto3,oneof"` +} + +type HistoryEvent_SubOrchestrationInstanceCompleted struct { + SubOrchestrationInstanceCompleted *SubOrchestrationInstanceCompletedEvent `protobuf:"bytes,10,opt,name=subOrchestrationInstanceCompleted,proto3,oneof"` +} + +type HistoryEvent_SubOrchestrationInstanceFailed struct { + SubOrchestrationInstanceFailed *SubOrchestrationInstanceFailedEvent `protobuf:"bytes,11,opt,name=subOrchestrationInstanceFailed,proto3,oneof"` +} + +type HistoryEvent_TimerCreated struct { + TimerCreated *TimerCreatedEvent `protobuf:"bytes,12,opt,name=timerCreated,proto3,oneof"` +} + +type HistoryEvent_TimerFired struct { + TimerFired *TimerFiredEvent `protobuf:"bytes,13,opt,name=timerFired,proto3,oneof"` +} + +type HistoryEvent_OrchestratorStarted struct { + OrchestratorStarted *OrchestratorStartedEvent `protobuf:"bytes,14,opt,name=orchestratorStarted,proto3,oneof"` +} + +type HistoryEvent_OrchestratorCompleted struct { + OrchestratorCompleted *OrchestratorCompletedEvent `protobuf:"bytes,15,opt,name=orchestratorCompleted,proto3,oneof"` +} + +type HistoryEvent_EventSent struct { + EventSent *EventSentEvent `protobuf:"bytes,16,opt,name=eventSent,proto3,oneof"` +} + +type HistoryEvent_EventRaised struct { + EventRaised *EventRaisedEvent `protobuf:"bytes,17,opt,name=eventRaised,proto3,oneof"` +} + +type HistoryEvent_GenericEvent struct { + GenericEvent *GenericEvent `protobuf:"bytes,18,opt,name=genericEvent,proto3,oneof"` +} + +type HistoryEvent_HistoryState struct { + HistoryState *HistoryStateEvent `protobuf:"bytes,19,opt,name=historyState,proto3,oneof"` +} + +type HistoryEvent_ContinueAsNew struct { + ContinueAsNew *ContinueAsNewEvent `protobuf:"bytes,20,opt,name=continueAsNew,proto3,oneof"` +} + +type HistoryEvent_ExecutionSuspended struct { + ExecutionSuspended *ExecutionSuspendedEvent `protobuf:"bytes,21,opt,name=executionSuspended,proto3,oneof"` +} + +type HistoryEvent_ExecutionResumed struct { + ExecutionResumed *ExecutionResumedEvent `protobuf:"bytes,22,opt,name=executionResumed,proto3,oneof"` +} + +type HistoryEvent_EntityOperationSignaled struct { + EntityOperationSignaled *EntityOperationSignaledEvent `protobuf:"bytes,23,opt,name=entityOperationSignaled,proto3,oneof"` +} + +type HistoryEvent_EntityOperationCalled struct { + EntityOperationCalled *EntityOperationCalledEvent `protobuf:"bytes,24,opt,name=entityOperationCalled,proto3,oneof"` +} + +type HistoryEvent_EntityOperationCompleted struct { + EntityOperationCompleted *EntityOperationCompletedEvent `protobuf:"bytes,25,opt,name=entityOperationCompleted,proto3,oneof"` +} + +type HistoryEvent_EntityOperationFailed struct { + EntityOperationFailed *EntityOperationFailedEvent `protobuf:"bytes,26,opt,name=entityOperationFailed,proto3,oneof"` +} + +type HistoryEvent_EntityLockRequested struct { + EntityLockRequested *EntityLockRequestedEvent `protobuf:"bytes,27,opt,name=entityLockRequested,proto3,oneof"` +} + +type HistoryEvent_EntityLockGranted struct { + EntityLockGranted *EntityLockGrantedEvent `protobuf:"bytes,28,opt,name=entityLockGranted,proto3,oneof"` +} + +type HistoryEvent_EntityUnlockSent struct { + EntityUnlockSent *EntityUnlockSentEvent `protobuf:"bytes,29,opt,name=entityUnlockSent,proto3,oneof"` +} + +type HistoryEvent_ExecutionRewound struct { + ExecutionRewound *ExecutionRewoundEvent `protobuf:"bytes,30,opt,name=executionRewound,proto3,oneof"` +} + +func (*HistoryEvent_ExecutionStarted) isHistoryEvent_EventType() {} + +func (*HistoryEvent_ExecutionCompleted) isHistoryEvent_EventType() {} + +func (*HistoryEvent_ExecutionTerminated) isHistoryEvent_EventType() {} + +func (*HistoryEvent_TaskScheduled) isHistoryEvent_EventType() {} + +func (*HistoryEvent_TaskCompleted) isHistoryEvent_EventType() {} + +func (*HistoryEvent_TaskFailed) isHistoryEvent_EventType() {} + +func (*HistoryEvent_SubOrchestrationInstanceCreated) isHistoryEvent_EventType() {} + +func (*HistoryEvent_SubOrchestrationInstanceCompleted) isHistoryEvent_EventType() {} + +func (*HistoryEvent_SubOrchestrationInstanceFailed) isHistoryEvent_EventType() {} + +func (*HistoryEvent_TimerCreated) isHistoryEvent_EventType() {} + +func (*HistoryEvent_TimerFired) isHistoryEvent_EventType() {} + +func (*HistoryEvent_OrchestratorStarted) isHistoryEvent_EventType() {} + +func (*HistoryEvent_OrchestratorCompleted) isHistoryEvent_EventType() {} + +func (*HistoryEvent_EventSent) isHistoryEvent_EventType() {} + +func (*HistoryEvent_EventRaised) isHistoryEvent_EventType() {} + +func (*HistoryEvent_GenericEvent) isHistoryEvent_EventType() {} + +func (*HistoryEvent_HistoryState) isHistoryEvent_EventType() {} + +func (*HistoryEvent_ContinueAsNew) isHistoryEvent_EventType() {} + +func (*HistoryEvent_ExecutionSuspended) isHistoryEvent_EventType() {} + +func (*HistoryEvent_ExecutionResumed) isHistoryEvent_EventType() {} + +func (*HistoryEvent_EntityOperationSignaled) isHistoryEvent_EventType() {} + +func (*HistoryEvent_EntityOperationCalled) isHistoryEvent_EventType() {} + +func (*HistoryEvent_EntityOperationCompleted) isHistoryEvent_EventType() {} + +func (*HistoryEvent_EntityOperationFailed) isHistoryEvent_EventType() {} + +func (*HistoryEvent_EntityLockRequested) isHistoryEvent_EventType() {} + +func (*HistoryEvent_EntityLockGranted) isHistoryEvent_EventType() {} + +func (*HistoryEvent_EntityUnlockSent) isHistoryEvent_EventType() {} + +func (*HistoryEvent_ExecutionRewound) isHistoryEvent_EventType() {} + +type ScheduleTaskAction struct { + state protoimpl.MessageState `protogen:"open.v1"` + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + Version *wrappers.StringValue `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"` + Input *wrappers.StringValue `protobuf:"bytes,3,opt,name=input,proto3" json:"input,omitempty"` + Tags map[string]string `protobuf:"bytes,4,rep,name=tags,proto3" json:"tags,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"` + ParentTraceContext *TraceContext `protobuf:"bytes,5,opt,name=parentTraceContext,proto3" json:"parentTraceContext,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ScheduleTaskAction) Reset() { + *x = ScheduleTaskAction{} + mi := &file_orchestrator_service_proto_msgTypes[35] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ScheduleTaskAction) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ScheduleTaskAction) ProtoMessage() {} + +func (x *ScheduleTaskAction) ProtoReflect() protoreflect.Message { + mi := &file_orchestrator_service_proto_msgTypes[35] + 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 ScheduleTaskAction.ProtoReflect.Descriptor instead. +func (*ScheduleTaskAction) Descriptor() ([]byte, []int) { + return file_orchestrator_service_proto_rawDescGZIP(), []int{35} +} + +func (x *ScheduleTaskAction) GetName() string { + if x != nil { + return x.Name + } + return "" +} + +func (x *ScheduleTaskAction) GetVersion() *wrappers.StringValue { + if x != nil { + return x.Version + } + return nil +} + +func (x *ScheduleTaskAction) GetInput() *wrappers.StringValue { + if x != nil { + return x.Input + } + return nil +} + +func (x *ScheduleTaskAction) GetTags() map[string]string { + if x != nil { + return x.Tags + } + return nil +} + +func (x *ScheduleTaskAction) GetParentTraceContext() *TraceContext { + if x != nil { + return x.ParentTraceContext + } + return nil +} + +type CreateSubOrchestrationAction struct { + state protoimpl.MessageState `protogen:"open.v1"` + InstanceId string `protobuf:"bytes,1,opt,name=instanceId,proto3" json:"instanceId,omitempty"` + Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` + Version *wrappers.StringValue `protobuf:"bytes,3,opt,name=version,proto3" json:"version,omitempty"` + Input *wrappers.StringValue `protobuf:"bytes,4,opt,name=input,proto3" json:"input,omitempty"` + ParentTraceContext *TraceContext `protobuf:"bytes,5,opt,name=parentTraceContext,proto3" json:"parentTraceContext,omitempty"` + Tags map[string]string `protobuf:"bytes,6,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 +} + +func (x *CreateSubOrchestrationAction) Reset() { + *x = CreateSubOrchestrationAction{} + mi := &file_orchestrator_service_proto_msgTypes[36] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *CreateSubOrchestrationAction) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CreateSubOrchestrationAction) ProtoMessage() {} + +func (x *CreateSubOrchestrationAction) ProtoReflect() protoreflect.Message { + mi := &file_orchestrator_service_proto_msgTypes[36] + 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 CreateSubOrchestrationAction.ProtoReflect.Descriptor instead. +func (*CreateSubOrchestrationAction) Descriptor() ([]byte, []int) { + return file_orchestrator_service_proto_rawDescGZIP(), []int{36} +} + +func (x *CreateSubOrchestrationAction) GetInstanceId() string { + if x != nil { + return x.InstanceId + } + return "" +} + +func (x *CreateSubOrchestrationAction) GetName() string { + if x != nil { + return x.Name + } + return "" +} + +func (x *CreateSubOrchestrationAction) GetVersion() *wrappers.StringValue { + if x != nil { + return x.Version + } + return nil +} + +func (x *CreateSubOrchestrationAction) GetInput() *wrappers.StringValue { + if x != nil { + return x.Input + } + return nil +} + +func (x *CreateSubOrchestrationAction) GetParentTraceContext() *TraceContext { + if x != nil { + return x.ParentTraceContext + } + return nil +} + +func (x *CreateSubOrchestrationAction) GetTags() map[string]string { + if x != nil { + return x.Tags + } + return nil +} + +type CreateTimerAction struct { + state protoimpl.MessageState `protogen:"open.v1"` + FireAt *timestamp.Timestamp `protobuf:"bytes,1,opt,name=fireAt,proto3" json:"fireAt,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *CreateTimerAction) Reset() { + *x = CreateTimerAction{} + mi := &file_orchestrator_service_proto_msgTypes[37] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *CreateTimerAction) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CreateTimerAction) ProtoMessage() {} + +func (x *CreateTimerAction) ProtoReflect() protoreflect.Message { + mi := &file_orchestrator_service_proto_msgTypes[37] + 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 CreateTimerAction.ProtoReflect.Descriptor instead. +func (*CreateTimerAction) Descriptor() ([]byte, []int) { + return file_orchestrator_service_proto_rawDescGZIP(), []int{37} +} + +func (x *CreateTimerAction) GetFireAt() *timestamp.Timestamp { + if x != nil { + return x.FireAt + } + return nil +} + +type SendEventAction struct { + state protoimpl.MessageState `protogen:"open.v1"` + Instance *OrchestrationInstance `protobuf:"bytes,1,opt,name=instance,proto3" json:"instance,omitempty"` + Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` + Data *wrappers.StringValue `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *SendEventAction) Reset() { + *x = SendEventAction{} + mi := &file_orchestrator_service_proto_msgTypes[38] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *SendEventAction) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*SendEventAction) ProtoMessage() {} + +func (x *SendEventAction) ProtoReflect() protoreflect.Message { + mi := &file_orchestrator_service_proto_msgTypes[38] + 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 SendEventAction.ProtoReflect.Descriptor instead. +func (*SendEventAction) Descriptor() ([]byte, []int) { + return file_orchestrator_service_proto_rawDescGZIP(), []int{38} +} + +func (x *SendEventAction) GetInstance() *OrchestrationInstance { + if x != nil { + return x.Instance + } + return nil +} + +func (x *SendEventAction) GetName() string { + if x != nil { + return x.Name + } + return "" +} + +func (x *SendEventAction) GetData() *wrappers.StringValue { + if x != nil { + return x.Data + } + return nil +} + +type CompleteOrchestrationAction struct { + state protoimpl.MessageState `protogen:"open.v1"` + OrchestrationStatus OrchestrationStatus `protobuf:"varint,1,opt,name=orchestrationStatus,proto3,enum=OrchestrationStatus" json:"orchestrationStatus,omitempty"` + Result *wrappers.StringValue `protobuf:"bytes,2,opt,name=result,proto3" json:"result,omitempty"` + Details *wrappers.StringValue `protobuf:"bytes,3,opt,name=details,proto3" json:"details,omitempty"` + NewVersion *wrappers.StringValue `protobuf:"bytes,4,opt,name=newVersion,proto3" json:"newVersion,omitempty"` + CarryoverEvents []*HistoryEvent `protobuf:"bytes,5,rep,name=carryoverEvents,proto3" json:"carryoverEvents,omitempty"` + FailureDetails *TaskFailureDetails `protobuf:"bytes,6,opt,name=failureDetails,proto3" json:"failureDetails,omitempty"` + Tags map[string]string `protobuf:"bytes,7,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 +} + +func (x *CompleteOrchestrationAction) Reset() { + *x = CompleteOrchestrationAction{} + mi := &file_orchestrator_service_proto_msgTypes[39] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *CompleteOrchestrationAction) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CompleteOrchestrationAction) ProtoMessage() {} + +func (x *CompleteOrchestrationAction) ProtoReflect() protoreflect.Message { + mi := &file_orchestrator_service_proto_msgTypes[39] + 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 CompleteOrchestrationAction.ProtoReflect.Descriptor instead. +func (*CompleteOrchestrationAction) Descriptor() ([]byte, []int) { + return file_orchestrator_service_proto_rawDescGZIP(), []int{39} +} + +func (x *CompleteOrchestrationAction) GetOrchestrationStatus() OrchestrationStatus { + if x != nil { + return x.OrchestrationStatus + } + return OrchestrationStatus_ORCHESTRATION_STATUS_RUNNING +} + +func (x *CompleteOrchestrationAction) GetResult() *wrappers.StringValue { + if x != nil { + return x.Result + } + return nil +} + +func (x *CompleteOrchestrationAction) GetDetails() *wrappers.StringValue { + if x != nil { + return x.Details + } + return nil +} + +func (x *CompleteOrchestrationAction) GetNewVersion() *wrappers.StringValue { + if x != nil { + return x.NewVersion + } + return nil +} + +func (x *CompleteOrchestrationAction) GetCarryoverEvents() []*HistoryEvent { + if x != nil { + return x.CarryoverEvents + } + return nil +} + +func (x *CompleteOrchestrationAction) GetFailureDetails() *TaskFailureDetails { + if x != nil { + return x.FailureDetails + } + return nil +} + +func (x *CompleteOrchestrationAction) GetTags() map[string]string { + if x != nil { + return x.Tags + } + return nil +} + +type TerminateOrchestrationAction struct { + state protoimpl.MessageState `protogen:"open.v1"` + InstanceId string `protobuf:"bytes,1,opt,name=instanceId,proto3" json:"instanceId,omitempty"` + Reason *wrappers.StringValue `protobuf:"bytes,2,opt,name=reason,proto3" json:"reason,omitempty"` + Recurse bool `protobuf:"varint,3,opt,name=recurse,proto3" json:"recurse,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *TerminateOrchestrationAction) Reset() { + *x = TerminateOrchestrationAction{} + mi := &file_orchestrator_service_proto_msgTypes[40] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *TerminateOrchestrationAction) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*TerminateOrchestrationAction) ProtoMessage() {} + +func (x *TerminateOrchestrationAction) ProtoReflect() protoreflect.Message { + mi := &file_orchestrator_service_proto_msgTypes[40] + 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 TerminateOrchestrationAction.ProtoReflect.Descriptor instead. +func (*TerminateOrchestrationAction) Descriptor() ([]byte, []int) { + return file_orchestrator_service_proto_rawDescGZIP(), []int{40} +} + +func (x *TerminateOrchestrationAction) GetInstanceId() string { + if x != nil { + return x.InstanceId + } + return "" +} + +func (x *TerminateOrchestrationAction) GetReason() *wrappers.StringValue { + if x != nil { + return x.Reason + } + return nil +} + +func (x *TerminateOrchestrationAction) GetRecurse() bool { + if x != nil { + return x.Recurse + } + return false +} + +type SendEntityMessageAction struct { + state protoimpl.MessageState `protogen:"open.v1"` + // Types that are valid to be assigned to EntityMessageType: + // + // *SendEntityMessageAction_EntityOperationSignaled + // *SendEntityMessageAction_EntityOperationCalled + // *SendEntityMessageAction_EntityLockRequested + // *SendEntityMessageAction_EntityUnlockSent + EntityMessageType isSendEntityMessageAction_EntityMessageType `protobuf_oneof:"EntityMessageType"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *SendEntityMessageAction) Reset() { + *x = SendEntityMessageAction{} + mi := &file_orchestrator_service_proto_msgTypes[41] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *SendEntityMessageAction) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*SendEntityMessageAction) ProtoMessage() {} + +func (x *SendEntityMessageAction) ProtoReflect() protoreflect.Message { + mi := &file_orchestrator_service_proto_msgTypes[41] + 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 SendEntityMessageAction.ProtoReflect.Descriptor instead. +func (*SendEntityMessageAction) Descriptor() ([]byte, []int) { + return file_orchestrator_service_proto_rawDescGZIP(), []int{41} +} + +func (x *SendEntityMessageAction) GetEntityMessageType() isSendEntityMessageAction_EntityMessageType { + if x != nil { + return x.EntityMessageType + } + return nil +} + +func (x *SendEntityMessageAction) GetEntityOperationSignaled() *EntityOperationSignaledEvent { + if x != nil { + if x, ok := x.EntityMessageType.(*SendEntityMessageAction_EntityOperationSignaled); ok { + return x.EntityOperationSignaled + } + } + return nil +} + +func (x *SendEntityMessageAction) GetEntityOperationCalled() *EntityOperationCalledEvent { + if x != nil { + if x, ok := x.EntityMessageType.(*SendEntityMessageAction_EntityOperationCalled); ok { + return x.EntityOperationCalled + } + } + return nil +} + +func (x *SendEntityMessageAction) GetEntityLockRequested() *EntityLockRequestedEvent { + if x != nil { + if x, ok := x.EntityMessageType.(*SendEntityMessageAction_EntityLockRequested); ok { + return x.EntityLockRequested + } + } + return nil +} + +func (x *SendEntityMessageAction) GetEntityUnlockSent() *EntityUnlockSentEvent { + if x != nil { + if x, ok := x.EntityMessageType.(*SendEntityMessageAction_EntityUnlockSent); ok { + return x.EntityUnlockSent + } + } + return nil +} + +type isSendEntityMessageAction_EntityMessageType interface { + isSendEntityMessageAction_EntityMessageType() +} + +type SendEntityMessageAction_EntityOperationSignaled struct { + EntityOperationSignaled *EntityOperationSignaledEvent `protobuf:"bytes,1,opt,name=entityOperationSignaled,proto3,oneof"` +} + +type SendEntityMessageAction_EntityOperationCalled struct { + EntityOperationCalled *EntityOperationCalledEvent `protobuf:"bytes,2,opt,name=entityOperationCalled,proto3,oneof"` +} + +type SendEntityMessageAction_EntityLockRequested struct { + EntityLockRequested *EntityLockRequestedEvent `protobuf:"bytes,3,opt,name=entityLockRequested,proto3,oneof"` +} + +type SendEntityMessageAction_EntityUnlockSent struct { + EntityUnlockSent *EntityUnlockSentEvent `protobuf:"bytes,4,opt,name=entityUnlockSent,proto3,oneof"` +} + +func (*SendEntityMessageAction_EntityOperationSignaled) isSendEntityMessageAction_EntityMessageType() { +} + +func (*SendEntityMessageAction_EntityOperationCalled) isSendEntityMessageAction_EntityMessageType() {} + +func (*SendEntityMessageAction_EntityLockRequested) isSendEntityMessageAction_EntityMessageType() {} + +func (*SendEntityMessageAction_EntityUnlockSent) isSendEntityMessageAction_EntityMessageType() {} + +type RewindOrchestrationAction struct { + state protoimpl.MessageState `protogen:"open.v1"` + NewHistory []*HistoryEvent `protobuf:"bytes,1,rep,name=newHistory,proto3" json:"newHistory,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *RewindOrchestrationAction) Reset() { + *x = RewindOrchestrationAction{} + mi := &file_orchestrator_service_proto_msgTypes[42] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *RewindOrchestrationAction) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*RewindOrchestrationAction) ProtoMessage() {} + +func (x *RewindOrchestrationAction) ProtoReflect() protoreflect.Message { + mi := &file_orchestrator_service_proto_msgTypes[42] + 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 RewindOrchestrationAction.ProtoReflect.Descriptor instead. +func (*RewindOrchestrationAction) Descriptor() ([]byte, []int) { + return file_orchestrator_service_proto_rawDescGZIP(), []int{42} +} + +func (x *RewindOrchestrationAction) GetNewHistory() []*HistoryEvent { + if x != nil { + return x.NewHistory + } + return nil +} + +type OrchestratorAction struct { + state protoimpl.MessageState `protogen:"open.v1"` + Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` + // Types that are valid to be assigned to OrchestratorActionType: + // + // *OrchestratorAction_ScheduleTask + // *OrchestratorAction_CreateSubOrchestration + // *OrchestratorAction_CreateTimer + // *OrchestratorAction_SendEvent + // *OrchestratorAction_CompleteOrchestration + // *OrchestratorAction_TerminateOrchestration + // *OrchestratorAction_SendEntityMessage + // *OrchestratorAction_RewindOrchestration + OrchestratorActionType isOrchestratorAction_OrchestratorActionType `protobuf_oneof:"orchestratorActionType"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *OrchestratorAction) Reset() { + *x = OrchestratorAction{} + mi := &file_orchestrator_service_proto_msgTypes[43] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *OrchestratorAction) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*OrchestratorAction) ProtoMessage() {} + +func (x *OrchestratorAction) ProtoReflect() protoreflect.Message { + mi := &file_orchestrator_service_proto_msgTypes[43] + 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 OrchestratorAction.ProtoReflect.Descriptor instead. +func (*OrchestratorAction) Descriptor() ([]byte, []int) { + return file_orchestrator_service_proto_rawDescGZIP(), []int{43} +} + +func (x *OrchestratorAction) GetId() int32 { + if x != nil { + return x.Id + } + return 0 +} + +func (x *OrchestratorAction) GetOrchestratorActionType() isOrchestratorAction_OrchestratorActionType { + if x != nil { + return x.OrchestratorActionType + } + return nil +} + +func (x *OrchestratorAction) GetScheduleTask() *ScheduleTaskAction { + if x != nil { + if x, ok := x.OrchestratorActionType.(*OrchestratorAction_ScheduleTask); ok { + return x.ScheduleTask + } + } + return nil +} + +func (x *OrchestratorAction) GetCreateSubOrchestration() *CreateSubOrchestrationAction { + if x != nil { + if x, ok := x.OrchestratorActionType.(*OrchestratorAction_CreateSubOrchestration); ok { + return x.CreateSubOrchestration + } + } + return nil +} + +func (x *OrchestratorAction) GetCreateTimer() *CreateTimerAction { + if x != nil { + if x, ok := x.OrchestratorActionType.(*OrchestratorAction_CreateTimer); ok { + return x.CreateTimer + } + } + return nil +} + +func (x *OrchestratorAction) GetSendEvent() *SendEventAction { + if x != nil { + if x, ok := x.OrchestratorActionType.(*OrchestratorAction_SendEvent); ok { + return x.SendEvent + } + } + return nil +} + +func (x *OrchestratorAction) GetCompleteOrchestration() *CompleteOrchestrationAction { + if x != nil { + if x, ok := x.OrchestratorActionType.(*OrchestratorAction_CompleteOrchestration); ok { + return x.CompleteOrchestration + } + } + return nil +} + +func (x *OrchestratorAction) GetTerminateOrchestration() *TerminateOrchestrationAction { + if x != nil { + if x, ok := x.OrchestratorActionType.(*OrchestratorAction_TerminateOrchestration); ok { + return x.TerminateOrchestration + } + } + return nil +} + +func (x *OrchestratorAction) GetSendEntityMessage() *SendEntityMessageAction { + if x != nil { + if x, ok := x.OrchestratorActionType.(*OrchestratorAction_SendEntityMessage); ok { + return x.SendEntityMessage + } + } + return nil +} + +func (x *OrchestratorAction) GetRewindOrchestration() *RewindOrchestrationAction { + if x != nil { + if x, ok := x.OrchestratorActionType.(*OrchestratorAction_RewindOrchestration); ok { + return x.RewindOrchestration + } + } + return nil +} + +type isOrchestratorAction_OrchestratorActionType interface { + isOrchestratorAction_OrchestratorActionType() +} + +type OrchestratorAction_ScheduleTask struct { + ScheduleTask *ScheduleTaskAction `protobuf:"bytes,2,opt,name=scheduleTask,proto3,oneof"` +} + +type OrchestratorAction_CreateSubOrchestration struct { + CreateSubOrchestration *CreateSubOrchestrationAction `protobuf:"bytes,3,opt,name=createSubOrchestration,proto3,oneof"` +} + +type OrchestratorAction_CreateTimer struct { + CreateTimer *CreateTimerAction `protobuf:"bytes,4,opt,name=createTimer,proto3,oneof"` +} + +type OrchestratorAction_SendEvent struct { + SendEvent *SendEventAction `protobuf:"bytes,5,opt,name=sendEvent,proto3,oneof"` +} + +type OrchestratorAction_CompleteOrchestration struct { + CompleteOrchestration *CompleteOrchestrationAction `protobuf:"bytes,6,opt,name=completeOrchestration,proto3,oneof"` +} + +type OrchestratorAction_TerminateOrchestration struct { + TerminateOrchestration *TerminateOrchestrationAction `protobuf:"bytes,7,opt,name=terminateOrchestration,proto3,oneof"` +} + +type OrchestratorAction_SendEntityMessage struct { + SendEntityMessage *SendEntityMessageAction `protobuf:"bytes,8,opt,name=sendEntityMessage,proto3,oneof"` +} + +type OrchestratorAction_RewindOrchestration struct { + RewindOrchestration *RewindOrchestrationAction `protobuf:"bytes,9,opt,name=rewindOrchestration,proto3,oneof"` +} + +func (*OrchestratorAction_ScheduleTask) isOrchestratorAction_OrchestratorActionType() {} + +func (*OrchestratorAction_CreateSubOrchestration) isOrchestratorAction_OrchestratorActionType() {} + +func (*OrchestratorAction_CreateTimer) isOrchestratorAction_OrchestratorActionType() {} + +func (*OrchestratorAction_SendEvent) isOrchestratorAction_OrchestratorActionType() {} + +func (*OrchestratorAction_CompleteOrchestration) isOrchestratorAction_OrchestratorActionType() {} + +func (*OrchestratorAction_TerminateOrchestration) isOrchestratorAction_OrchestratorActionType() {} + +func (*OrchestratorAction_SendEntityMessage) isOrchestratorAction_OrchestratorActionType() {} + +func (*OrchestratorAction_RewindOrchestration) isOrchestratorAction_OrchestratorActionType() {} + +type OrchestrationTraceContext struct { + state protoimpl.MessageState `protogen:"open.v1"` + SpanID *wrappers.StringValue `protobuf:"bytes,1,opt,name=spanID,proto3" json:"spanID,omitempty"` + SpanStartTime *timestamp.Timestamp `protobuf:"bytes,2,opt,name=spanStartTime,proto3" json:"spanStartTime,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *OrchestrationTraceContext) Reset() { + *x = OrchestrationTraceContext{} + mi := &file_orchestrator_service_proto_msgTypes[44] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *OrchestrationTraceContext) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*OrchestrationTraceContext) ProtoMessage() {} + +func (x *OrchestrationTraceContext) ProtoReflect() protoreflect.Message { + mi := &file_orchestrator_service_proto_msgTypes[44] + 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 OrchestrationTraceContext.ProtoReflect.Descriptor instead. +func (*OrchestrationTraceContext) Descriptor() ([]byte, []int) { + return file_orchestrator_service_proto_rawDescGZIP(), []int{44} +} + +func (x *OrchestrationTraceContext) GetSpanID() *wrappers.StringValue { + if x != nil { + return x.SpanID + } + return nil +} + +func (x *OrchestrationTraceContext) GetSpanStartTime() *timestamp.Timestamp { + if x != nil { + return x.SpanStartTime + } + return nil +} + +type OrchestratorRequest struct { + state protoimpl.MessageState `protogen:"open.v1"` + InstanceId string `protobuf:"bytes,1,opt,name=instanceId,proto3" json:"instanceId,omitempty"` + ExecutionId *wrappers.StringValue `protobuf:"bytes,2,opt,name=executionId,proto3" json:"executionId,omitempty"` + PastEvents []*HistoryEvent `protobuf:"bytes,3,rep,name=pastEvents,proto3" json:"pastEvents,omitempty"` + NewEvents []*HistoryEvent `protobuf:"bytes,4,rep,name=newEvents,proto3" json:"newEvents,omitempty"` + EntityParameters *OrchestratorEntityParameters `protobuf:"bytes,5,opt,name=entityParameters,proto3" json:"entityParameters,omitempty"` + RequiresHistoryStreaming bool `protobuf:"varint,6,opt,name=requiresHistoryStreaming,proto3" json:"requiresHistoryStreaming,omitempty"` + Properties map[string]*_struct.Value `protobuf:"bytes,7,rep,name=properties,proto3" json:"properties,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"` + OrchestrationTraceContext *OrchestrationTraceContext `protobuf:"bytes,8,opt,name=orchestrationTraceContext,proto3" json:"orchestrationTraceContext,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *OrchestratorRequest) Reset() { + *x = OrchestratorRequest{} + mi := &file_orchestrator_service_proto_msgTypes[45] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *OrchestratorRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*OrchestratorRequest) ProtoMessage() {} + +func (x *OrchestratorRequest) ProtoReflect() protoreflect.Message { + mi := &file_orchestrator_service_proto_msgTypes[45] + 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 OrchestratorRequest.ProtoReflect.Descriptor instead. +func (*OrchestratorRequest) Descriptor() ([]byte, []int) { + return file_orchestrator_service_proto_rawDescGZIP(), []int{45} +} + +func (x *OrchestratorRequest) GetInstanceId() string { + if x != nil { + return x.InstanceId + } + return "" +} + +func (x *OrchestratorRequest) GetExecutionId() *wrappers.StringValue { + if x != nil { + return x.ExecutionId + } + return nil +} + +func (x *OrchestratorRequest) GetPastEvents() []*HistoryEvent { + if x != nil { + return x.PastEvents + } + return nil +} + +func (x *OrchestratorRequest) GetNewEvents() []*HistoryEvent { + if x != nil { + return x.NewEvents + } + return nil +} + +func (x *OrchestratorRequest) GetEntityParameters() *OrchestratorEntityParameters { + if x != nil { + return x.EntityParameters + } + return nil +} + +func (x *OrchestratorRequest) GetRequiresHistoryStreaming() bool { + if x != nil { + return x.RequiresHistoryStreaming + } + return false +} + +func (x *OrchestratorRequest) GetProperties() map[string]*_struct.Value { + if x != nil { + return x.Properties + } + return nil +} + +func (x *OrchestratorRequest) GetOrchestrationTraceContext() *OrchestrationTraceContext { + if x != nil { + return x.OrchestrationTraceContext + } + return nil +} + +type OrchestratorResponse struct { + state protoimpl.MessageState `protogen:"open.v1"` + InstanceId string `protobuf:"bytes,1,opt,name=instanceId,proto3" json:"instanceId,omitempty"` + Actions []*OrchestratorAction `protobuf:"bytes,2,rep,name=actions,proto3" json:"actions,omitempty"` + CustomStatus *wrappers.StringValue `protobuf:"bytes,3,opt,name=customStatus,proto3" json:"customStatus,omitempty"` + CompletionToken string `protobuf:"bytes,4,opt,name=completionToken,proto3" json:"completionToken,omitempty"` + // The number of work item events that were processed by the orchestrator. + // This field is optional. If not set, the service should assume that the orchestrator processed all events. + NumEventsProcessed *wrappers.Int32Value `protobuf:"bytes,5,opt,name=numEventsProcessed,proto3" json:"numEventsProcessed,omitempty"` + OrchestrationTraceContext *OrchestrationTraceContext `protobuf:"bytes,6,opt,name=orchestrationTraceContext,proto3" json:"orchestrationTraceContext,omitempty"` + // Whether or not a history is required to complete the original OrchestratorRequest and none was provided. + RequiresHistory bool `protobuf:"varint,7,opt,name=requiresHistory,proto3" json:"requiresHistory,omitempty"` + // True if this is a partial (chunked) completion. The backend must keep the work item open until the final chunk (isPartial=false). + // + // Deprecated: Marked as deprecated in orchestrator_service.proto. + IsPartial bool `protobuf:"varint,8,opt,name=isPartial,proto3" json:"isPartial,omitempty"` + // Zero-based position of the current chunk within a chunked completion sequence. + // This field is omitted for non-chunked completions. + // + // Deprecated: Marked as deprecated in orchestrator_service.proto. + ChunkIndex *wrappers.Int32Value `protobuf:"bytes,9,opt,name=chunkIndex,proto3" json:"chunkIndex,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *OrchestratorResponse) Reset() { + *x = OrchestratorResponse{} + mi := &file_orchestrator_service_proto_msgTypes[46] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *OrchestratorResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*OrchestratorResponse) ProtoMessage() {} + +func (x *OrchestratorResponse) ProtoReflect() protoreflect.Message { + mi := &file_orchestrator_service_proto_msgTypes[46] + 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 OrchestratorResponse.ProtoReflect.Descriptor instead. +func (*OrchestratorResponse) Descriptor() ([]byte, []int) { + return file_orchestrator_service_proto_rawDescGZIP(), []int{46} +} + +func (x *OrchestratorResponse) GetInstanceId() string { + if x != nil { + return x.InstanceId + } + return "" +} + +func (x *OrchestratorResponse) GetActions() []*OrchestratorAction { + if x != nil { + return x.Actions + } + return nil +} + +func (x *OrchestratorResponse) GetCustomStatus() *wrappers.StringValue { + if x != nil { + return x.CustomStatus + } + return nil +} + +func (x *OrchestratorResponse) GetCompletionToken() string { + if x != nil { + return x.CompletionToken + } + return "" +} + +func (x *OrchestratorResponse) GetNumEventsProcessed() *wrappers.Int32Value { + if x != nil { + return x.NumEventsProcessed + } + return nil +} + +func (x *OrchestratorResponse) GetOrchestrationTraceContext() *OrchestrationTraceContext { + if x != nil { + return x.OrchestrationTraceContext + } + return nil +} + +func (x *OrchestratorResponse) GetRequiresHistory() bool { + if x != nil { + return x.RequiresHistory + } + return false +} + +// Deprecated: Marked as deprecated in orchestrator_service.proto. +func (x *OrchestratorResponse) GetIsPartial() bool { + if x != nil { + return x.IsPartial + } + return false +} + +// Deprecated: Marked as deprecated in orchestrator_service.proto. +func (x *OrchestratorResponse) GetChunkIndex() *wrappers.Int32Value { + if x != nil { + return x.ChunkIndex + } + return nil +} + +type CreateInstanceRequest struct { + state protoimpl.MessageState `protogen:"open.v1"` + InstanceId string `protobuf:"bytes,1,opt,name=instanceId,proto3" json:"instanceId,omitempty"` + Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` + Version *wrappers.StringValue `protobuf:"bytes,3,opt,name=version,proto3" json:"version,omitempty"` + Input *wrappers.StringValue `protobuf:"bytes,4,opt,name=input,proto3" json:"input,omitempty"` + ScheduledStartTimestamp *timestamp.Timestamp `protobuf:"bytes,5,opt,name=scheduledStartTimestamp,proto3" json:"scheduledStartTimestamp,omitempty"` + OrchestrationIdReusePolicy *OrchestrationIdReusePolicy `protobuf:"bytes,6,opt,name=orchestrationIdReusePolicy,proto3" json:"orchestrationIdReusePolicy,omitempty"` + ExecutionId *wrappers.StringValue `protobuf:"bytes,7,opt,name=executionId,proto3" json:"executionId,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"` + ParentTraceContext *TraceContext `protobuf:"bytes,9,opt,name=parentTraceContext,proto3" json:"parentTraceContext,omitempty"` + RequestTime *timestamp.Timestamp `protobuf:"bytes,10,opt,name=requestTime,proto3" json:"requestTime,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *CreateInstanceRequest) Reset() { + *x = CreateInstanceRequest{} + mi := &file_orchestrator_service_proto_msgTypes[47] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *CreateInstanceRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CreateInstanceRequest) ProtoMessage() {} + +func (x *CreateInstanceRequest) ProtoReflect() protoreflect.Message { + mi := &file_orchestrator_service_proto_msgTypes[47] + 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 CreateInstanceRequest.ProtoReflect.Descriptor instead. +func (*CreateInstanceRequest) Descriptor() ([]byte, []int) { + return file_orchestrator_service_proto_rawDescGZIP(), []int{47} +} + +func (x *CreateInstanceRequest) GetInstanceId() string { + if x != nil { + return x.InstanceId + } + return "" +} + +func (x *CreateInstanceRequest) GetName() string { + if x != nil { + return x.Name + } + return "" +} + +func (x *CreateInstanceRequest) GetVersion() *wrappers.StringValue { + if x != nil { + return x.Version + } + return nil +} + +func (x *CreateInstanceRequest) GetInput() *wrappers.StringValue { + if x != nil { + return x.Input + } + return nil +} + +func (x *CreateInstanceRequest) GetScheduledStartTimestamp() *timestamp.Timestamp { + if x != nil { + return x.ScheduledStartTimestamp + } + return nil +} + +func (x *CreateInstanceRequest) GetOrchestrationIdReusePolicy() *OrchestrationIdReusePolicy { + if x != nil { + return x.OrchestrationIdReusePolicy + } + return nil +} + +func (x *CreateInstanceRequest) GetExecutionId() *wrappers.StringValue { + if x != nil { + return x.ExecutionId + } + return nil +} + +func (x *CreateInstanceRequest) GetTags() map[string]string { + if x != nil { + return x.Tags + } + return nil +} + +func (x *CreateInstanceRequest) GetParentTraceContext() *TraceContext { + if x != nil { + return x.ParentTraceContext + } + return nil +} + +func (x *CreateInstanceRequest) GetRequestTime() *timestamp.Timestamp { + if x != nil { + return x.RequestTime + } + return nil +} + +type OrchestrationIdReusePolicy struct { + state protoimpl.MessageState `protogen:"open.v1"` + ReplaceableStatus []OrchestrationStatus `protobuf:"varint,1,rep,packed,name=replaceableStatus,proto3,enum=OrchestrationStatus" json:"replaceableStatus,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *OrchestrationIdReusePolicy) Reset() { + *x = OrchestrationIdReusePolicy{} + mi := &file_orchestrator_service_proto_msgTypes[48] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *OrchestrationIdReusePolicy) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*OrchestrationIdReusePolicy) ProtoMessage() {} + +func (x *OrchestrationIdReusePolicy) ProtoReflect() protoreflect.Message { + mi := &file_orchestrator_service_proto_msgTypes[48] + 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 OrchestrationIdReusePolicy.ProtoReflect.Descriptor instead. +func (*OrchestrationIdReusePolicy) Descriptor() ([]byte, []int) { + return file_orchestrator_service_proto_rawDescGZIP(), []int{48} +} + +func (x *OrchestrationIdReusePolicy) GetReplaceableStatus() []OrchestrationStatus { + if x != nil { + return x.ReplaceableStatus + } + return nil +} + +type CreateInstanceResponse struct { + state protoimpl.MessageState `protogen:"open.v1"` + InstanceId string `protobuf:"bytes,1,opt,name=instanceId,proto3" json:"instanceId,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *CreateInstanceResponse) Reset() { + *x = CreateInstanceResponse{} + mi := &file_orchestrator_service_proto_msgTypes[49] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *CreateInstanceResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CreateInstanceResponse) ProtoMessage() {} + +func (x *CreateInstanceResponse) ProtoReflect() protoreflect.Message { + mi := &file_orchestrator_service_proto_msgTypes[49] + 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 CreateInstanceResponse.ProtoReflect.Descriptor instead. +func (*CreateInstanceResponse) Descriptor() ([]byte, []int) { + return file_orchestrator_service_proto_rawDescGZIP(), []int{49} +} + +func (x *CreateInstanceResponse) GetInstanceId() string { + if x != nil { + return x.InstanceId + } + return "" +} + +type GetInstanceRequest struct { + state protoimpl.MessageState `protogen:"open.v1"` + InstanceId string `protobuf:"bytes,1,opt,name=instanceId,proto3" json:"instanceId,omitempty"` + GetInputsAndOutputs bool `protobuf:"varint,2,opt,name=getInputsAndOutputs,proto3" json:"getInputsAndOutputs,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *GetInstanceRequest) Reset() { + *x = GetInstanceRequest{} + mi := &file_orchestrator_service_proto_msgTypes[50] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *GetInstanceRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetInstanceRequest) ProtoMessage() {} + +func (x *GetInstanceRequest) ProtoReflect() protoreflect.Message { + mi := &file_orchestrator_service_proto_msgTypes[50] + 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 GetInstanceRequest.ProtoReflect.Descriptor instead. +func (*GetInstanceRequest) Descriptor() ([]byte, []int) { + return file_orchestrator_service_proto_rawDescGZIP(), []int{50} +} + +func (x *GetInstanceRequest) GetInstanceId() string { + if x != nil { + return x.InstanceId + } + return "" +} + +func (x *GetInstanceRequest) GetGetInputsAndOutputs() bool { + if x != nil { + return x.GetInputsAndOutputs + } + return false +} + +type GetInstanceResponse struct { + state protoimpl.MessageState `protogen:"open.v1"` + Exists bool `protobuf:"varint,1,opt,name=exists,proto3" json:"exists,omitempty"` + OrchestrationState *OrchestrationState `protobuf:"bytes,2,opt,name=orchestrationState,proto3" json:"orchestrationState,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *GetInstanceResponse) Reset() { + *x = GetInstanceResponse{} + mi := &file_orchestrator_service_proto_msgTypes[51] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *GetInstanceResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetInstanceResponse) ProtoMessage() {} + +func (x *GetInstanceResponse) ProtoReflect() protoreflect.Message { + mi := &file_orchestrator_service_proto_msgTypes[51] + 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 GetInstanceResponse.ProtoReflect.Descriptor instead. +func (*GetInstanceResponse) Descriptor() ([]byte, []int) { + return file_orchestrator_service_proto_rawDescGZIP(), []int{51} +} + +func (x *GetInstanceResponse) GetExists() bool { + if x != nil { + return x.Exists + } + return false +} + +func (x *GetInstanceResponse) GetOrchestrationState() *OrchestrationState { + if x != nil { + return x.OrchestrationState + } + return nil +} + +type RewindInstanceRequest struct { + state protoimpl.MessageState `protogen:"open.v1"` + InstanceId string `protobuf:"bytes,1,opt,name=instanceId,proto3" json:"instanceId,omitempty"` + Reason *wrappers.StringValue `protobuf:"bytes,2,opt,name=reason,proto3" json:"reason,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *RewindInstanceRequest) Reset() { + *x = RewindInstanceRequest{} + mi := &file_orchestrator_service_proto_msgTypes[52] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *RewindInstanceRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*RewindInstanceRequest) ProtoMessage() {} + +func (x *RewindInstanceRequest) ProtoReflect() protoreflect.Message { + mi := &file_orchestrator_service_proto_msgTypes[52] + 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 RewindInstanceRequest.ProtoReflect.Descriptor instead. +func (*RewindInstanceRequest) Descriptor() ([]byte, []int) { + return file_orchestrator_service_proto_rawDescGZIP(), []int{52} +} + +func (x *RewindInstanceRequest) GetInstanceId() string { + if x != nil { + return x.InstanceId + } + return "" +} + +func (x *RewindInstanceRequest) GetReason() *wrappers.StringValue { + if x != nil { + return x.Reason + } + return nil +} + +type RewindInstanceResponse struct { + state protoimpl.MessageState `protogen:"open.v1"` unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *RewindInstanceResponse) Reset() { + *x = RewindInstanceResponse{} + mi := &file_orchestrator_service_proto_msgTypes[53] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *RewindInstanceResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*RewindInstanceResponse) ProtoMessage() {} + +func (x *RewindInstanceResponse) ProtoReflect() protoreflect.Message { + mi := &file_orchestrator_service_proto_msgTypes[53] + 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 RewindInstanceResponse.ProtoReflect.Descriptor instead. +func (*RewindInstanceResponse) Descriptor() ([]byte, []int) { + return file_orchestrator_service_proto_rawDescGZIP(), []int{53} +} + +type OrchestrationState struct { + state protoimpl.MessageState `protogen:"open.v1"` + InstanceId string `protobuf:"bytes,1,opt,name=instanceId,proto3" json:"instanceId,omitempty"` + Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` + Version *wrappers.StringValue `protobuf:"bytes,3,opt,name=version,proto3" json:"version,omitempty"` + OrchestrationStatus OrchestrationStatus `protobuf:"varint,4,opt,name=orchestrationStatus,proto3,enum=OrchestrationStatus" json:"orchestrationStatus,omitempty"` + ScheduledStartTimestamp *timestamp.Timestamp `protobuf:"bytes,5,opt,name=scheduledStartTimestamp,proto3" json:"scheduledStartTimestamp,omitempty"` + CreatedTimestamp *timestamp.Timestamp `protobuf:"bytes,6,opt,name=createdTimestamp,proto3" json:"createdTimestamp,omitempty"` + LastUpdatedTimestamp *timestamp.Timestamp `protobuf:"bytes,7,opt,name=lastUpdatedTimestamp,proto3" json:"lastUpdatedTimestamp,omitempty"` + Input *wrappers.StringValue `protobuf:"bytes,8,opt,name=input,proto3" json:"input,omitempty"` + Output *wrappers.StringValue `protobuf:"bytes,9,opt,name=output,proto3" json:"output,omitempty"` + CustomStatus *wrappers.StringValue `protobuf:"bytes,10,opt,name=customStatus,proto3" json:"customStatus,omitempty"` + FailureDetails *TaskFailureDetails `protobuf:"bytes,11,opt,name=failureDetails,proto3" json:"failureDetails,omitempty"` + ExecutionId *wrappers.StringValue `protobuf:"bytes,12,opt,name=executionId,proto3" json:"executionId,omitempty"` + CompletedTimestamp *timestamp.Timestamp `protobuf:"bytes,13,opt,name=completedTimestamp,proto3" json:"completedTimestamp,omitempty"` + ParentInstanceId *wrappers.StringValue `protobuf:"bytes,14,opt,name=parentInstanceId,proto3" json:"parentInstanceId,omitempty"` + Tags map[string]string `protobuf:"bytes,15,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 +} + +func (x *OrchestrationState) Reset() { + *x = OrchestrationState{} + mi := &file_orchestrator_service_proto_msgTypes[54] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *OrchestrationState) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*OrchestrationState) ProtoMessage() {} + +func (x *OrchestrationState) ProtoReflect() protoreflect.Message { + mi := &file_orchestrator_service_proto_msgTypes[54] + 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 OrchestrationState.ProtoReflect.Descriptor instead. +func (*OrchestrationState) Descriptor() ([]byte, []int) { + return file_orchestrator_service_proto_rawDescGZIP(), []int{54} +} + +func (x *OrchestrationState) GetInstanceId() string { + if x != nil { + return x.InstanceId + } + return "" +} + +func (x *OrchestrationState) GetName() string { + if x != nil { + return x.Name + } + return "" +} + +func (x *OrchestrationState) GetVersion() *wrappers.StringValue { + if x != nil { + return x.Version + } + return nil +} + +func (x *OrchestrationState) GetOrchestrationStatus() OrchestrationStatus { + if x != nil { + return x.OrchestrationStatus + } + return OrchestrationStatus_ORCHESTRATION_STATUS_RUNNING +} + +func (x *OrchestrationState) GetScheduledStartTimestamp() *timestamp.Timestamp { + if x != nil { + return x.ScheduledStartTimestamp + } + return nil +} + +func (x *OrchestrationState) GetCreatedTimestamp() *timestamp.Timestamp { + if x != nil { + return x.CreatedTimestamp + } + return nil +} + +func (x *OrchestrationState) GetLastUpdatedTimestamp() *timestamp.Timestamp { + if x != nil { + return x.LastUpdatedTimestamp + } + return nil +} + +func (x *OrchestrationState) GetInput() *wrappers.StringValue { + if x != nil { + return x.Input + } + return nil +} + +func (x *OrchestrationState) GetOutput() *wrappers.StringValue { + if x != nil { + return x.Output + } + return nil +} + +func (x *OrchestrationState) GetCustomStatus() *wrappers.StringValue { + if x != nil { + return x.CustomStatus + } + return nil +} + +func (x *OrchestrationState) GetFailureDetails() *TaskFailureDetails { + if x != nil { + return x.FailureDetails + } + return nil +} + +func (x *OrchestrationState) GetExecutionId() *wrappers.StringValue { + if x != nil { + return x.ExecutionId + } + return nil +} - Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` - // Types that are assignable to OrchestratorActionType: - // - // *OrchestratorAction_ScheduleTask - // *OrchestratorAction_CreateSubOrchestration - // *OrchestratorAction_CreateTimer - // *OrchestratorAction_SendEvent - // *OrchestratorAction_CompleteOrchestration - // *OrchestratorAction_TerminateOrchestration - OrchestratorActionType isOrchestratorAction_OrchestratorActionType `protobuf_oneof:"orchestratorActionType"` +func (x *OrchestrationState) GetCompletedTimestamp() *timestamp.Timestamp { + if x != nil { + return x.CompletedTimestamp + } + return nil } -func (x *OrchestratorAction) Reset() { - *x = OrchestratorAction{} - if protoimpl.UnsafeEnabled { - mi := &file_orchestrator_service_proto_msgTypes[33] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) +func (x *OrchestrationState) GetParentInstanceId() *wrappers.StringValue { + if x != nil { + return x.ParentInstanceId } + return nil } -func (x *OrchestratorAction) String() string { +func (x *OrchestrationState) GetTags() map[string]string { + if x != nil { + return x.Tags + } + return nil +} + +type RaiseEventRequest struct { + state protoimpl.MessageState `protogen:"open.v1"` + InstanceId string `protobuf:"bytes,1,opt,name=instanceId,proto3" json:"instanceId,omitempty"` + Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` + Input *wrappers.StringValue `protobuf:"bytes,3,opt,name=input,proto3" json:"input,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *RaiseEventRequest) Reset() { + *x = RaiseEventRequest{} + mi := &file_orchestrator_service_proto_msgTypes[55] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *RaiseEventRequest) String() string { return protoimpl.X.MessageStringOf(x) } -func (*OrchestratorAction) ProtoMessage() {} +func (*RaiseEventRequest) ProtoMessage() {} -func (x *OrchestratorAction) ProtoReflect() protoreflect.Message { - mi := &file_orchestrator_service_proto_msgTypes[33] - if protoimpl.UnsafeEnabled && x != nil { +func (x *RaiseEventRequest) ProtoReflect() protoreflect.Message { + mi := &file_orchestrator_service_proto_msgTypes[55] + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2469,137 +4362,188 @@ func (x *OrchestratorAction) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use OrchestratorAction.ProtoReflect.Descriptor instead. -func (*OrchestratorAction) Descriptor() ([]byte, []int) { - return file_orchestrator_service_proto_rawDescGZIP(), []int{33} +// Deprecated: Use RaiseEventRequest.ProtoReflect.Descriptor instead. +func (*RaiseEventRequest) Descriptor() ([]byte, []int) { + return file_orchestrator_service_proto_rawDescGZIP(), []int{55} } -func (x *OrchestratorAction) GetId() int32 { +func (x *RaiseEventRequest) GetInstanceId() string { if x != nil { - return x.Id + return x.InstanceId } - return 0 + return "" } -func (m *OrchestratorAction) GetOrchestratorActionType() isOrchestratorAction_OrchestratorActionType { - if m != nil { - return m.OrchestratorActionType +func (x *RaiseEventRequest) GetName() string { + if x != nil { + return x.Name } - return nil + return "" } -func (x *OrchestratorAction) GetScheduleTask() *ScheduleTaskAction { - if x, ok := x.GetOrchestratorActionType().(*OrchestratorAction_ScheduleTask); ok { - return x.ScheduleTask +func (x *RaiseEventRequest) GetInput() *wrappers.StringValue { + if x != nil { + return x.Input } return nil } -func (x *OrchestratorAction) GetCreateSubOrchestration() *CreateSubOrchestrationAction { - if x, ok := x.GetOrchestratorActionType().(*OrchestratorAction_CreateSubOrchestration); ok { - return x.CreateSubOrchestration - } - return nil +type RaiseEventResponse struct { + state protoimpl.MessageState `protogen:"open.v1"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } -func (x *OrchestratorAction) GetCreateTimer() *CreateTimerAction { - if x, ok := x.GetOrchestratorActionType().(*OrchestratorAction_CreateTimer); ok { - return x.CreateTimer - } - return nil +func (x *RaiseEventResponse) Reset() { + *x = RaiseEventResponse{} + mi := &file_orchestrator_service_proto_msgTypes[56] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } -func (x *OrchestratorAction) GetSendEvent() *SendEventAction { - if x, ok := x.GetOrchestratorActionType().(*OrchestratorAction_SendEvent); ok { - return x.SendEvent - } - return nil +func (x *RaiseEventResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (x *OrchestratorAction) GetCompleteOrchestration() *CompleteOrchestrationAction { - if x, ok := x.GetOrchestratorActionType().(*OrchestratorAction_CompleteOrchestration); ok { - return x.CompleteOrchestration +func (*RaiseEventResponse) ProtoMessage() {} + +func (x *RaiseEventResponse) ProtoReflect() protoreflect.Message { + mi := &file_orchestrator_service_proto_msgTypes[56] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } - return nil + return mi.MessageOf(x) } -func (x *OrchestratorAction) GetTerminateOrchestration() *TerminateOrchestrationAction { - if x, ok := x.GetOrchestratorActionType().(*OrchestratorAction_TerminateOrchestration); ok { - return x.TerminateOrchestration - } - return nil +// Deprecated: Use RaiseEventResponse.ProtoReflect.Descriptor instead. +func (*RaiseEventResponse) Descriptor() ([]byte, []int) { + return file_orchestrator_service_proto_rawDescGZIP(), []int{56} } -type isOrchestratorAction_OrchestratorActionType interface { - isOrchestratorAction_OrchestratorActionType() +type TerminateRequest struct { + state protoimpl.MessageState `protogen:"open.v1"` + InstanceId string `protobuf:"bytes,1,opt,name=instanceId,proto3" json:"instanceId,omitempty"` + Output *wrappers.StringValue `protobuf:"bytes,2,opt,name=output,proto3" json:"output,omitempty"` + Recursive bool `protobuf:"varint,3,opt,name=recursive,proto3" json:"recursive,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } -type OrchestratorAction_ScheduleTask struct { - ScheduleTask *ScheduleTaskAction `protobuf:"bytes,2,opt,name=scheduleTask,proto3,oneof"` +func (x *TerminateRequest) Reset() { + *x = TerminateRequest{} + mi := &file_orchestrator_service_proto_msgTypes[57] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } -type OrchestratorAction_CreateSubOrchestration struct { - CreateSubOrchestration *CreateSubOrchestrationAction `protobuf:"bytes,3,opt,name=createSubOrchestration,proto3,oneof"` +func (x *TerminateRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -type OrchestratorAction_CreateTimer struct { - CreateTimer *CreateTimerAction `protobuf:"bytes,4,opt,name=createTimer,proto3,oneof"` +func (*TerminateRequest) ProtoMessage() {} + +func (x *TerminateRequest) ProtoReflect() protoreflect.Message { + mi := &file_orchestrator_service_proto_msgTypes[57] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -type OrchestratorAction_SendEvent struct { - SendEvent *SendEventAction `protobuf:"bytes,5,opt,name=sendEvent,proto3,oneof"` +// Deprecated: Use TerminateRequest.ProtoReflect.Descriptor instead. +func (*TerminateRequest) Descriptor() ([]byte, []int) { + return file_orchestrator_service_proto_rawDescGZIP(), []int{57} } -type OrchestratorAction_CompleteOrchestration struct { - CompleteOrchestration *CompleteOrchestrationAction `protobuf:"bytes,6,opt,name=completeOrchestration,proto3,oneof"` +func (x *TerminateRequest) GetInstanceId() string { + if x != nil { + return x.InstanceId + } + return "" } -type OrchestratorAction_TerminateOrchestration struct { - TerminateOrchestration *TerminateOrchestrationAction `protobuf:"bytes,7,opt,name=terminateOrchestration,proto3,oneof"` +func (x *TerminateRequest) GetOutput() *wrappers.StringValue { + if x != nil { + return x.Output + } + return nil } -func (*OrchestratorAction_ScheduleTask) isOrchestratorAction_OrchestratorActionType() {} +func (x *TerminateRequest) GetRecursive() bool { + if x != nil { + return x.Recursive + } + return false +} -func (*OrchestratorAction_CreateSubOrchestration) isOrchestratorAction_OrchestratorActionType() {} +type TerminateResponse struct { + state protoimpl.MessageState `protogen:"open.v1"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} -func (*OrchestratorAction_CreateTimer) isOrchestratorAction_OrchestratorActionType() {} +func (x *TerminateResponse) Reset() { + *x = TerminateResponse{} + mi := &file_orchestrator_service_proto_msgTypes[58] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} -func (*OrchestratorAction_SendEvent) isOrchestratorAction_OrchestratorActionType() {} +func (x *TerminateResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} -func (*OrchestratorAction_CompleteOrchestration) isOrchestratorAction_OrchestratorActionType() {} +func (*TerminateResponse) ProtoMessage() {} -func (*OrchestratorAction_TerminateOrchestration) isOrchestratorAction_OrchestratorActionType() {} +func (x *TerminateResponse) ProtoReflect() protoreflect.Message { + mi := &file_orchestrator_service_proto_msgTypes[58] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} -type OrchestratorRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields +// Deprecated: Use TerminateResponse.ProtoReflect.Descriptor instead. +func (*TerminateResponse) Descriptor() ([]byte, []int) { + return file_orchestrator_service_proto_rawDescGZIP(), []int{58} +} - InstanceId string `protobuf:"bytes,1,opt,name=instanceId,proto3" json:"instanceId,omitempty"` - ExecutionId *wrappers.StringValue `protobuf:"bytes,2,opt,name=executionId,proto3" json:"executionId,omitempty"` - PastEvents []*HistoryEvent `protobuf:"bytes,3,rep,name=pastEvents,proto3" json:"pastEvents,omitempty"` - NewEvents []*HistoryEvent `protobuf:"bytes,4,rep,name=newEvents,proto3" json:"newEvents,omitempty"` - EntityParameters *OrchestratorEntityParameters `protobuf:"bytes,5,opt,name=entityParameters,proto3" json:"entityParameters,omitempty"` +type SuspendRequest struct { + state protoimpl.MessageState `protogen:"open.v1"` + InstanceId string `protobuf:"bytes,1,opt,name=instanceId,proto3" json:"instanceId,omitempty"` + Reason *wrappers.StringValue `protobuf:"bytes,2,opt,name=reason,proto3" json:"reason,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } -func (x *OrchestratorRequest) Reset() { - *x = OrchestratorRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_orchestrator_service_proto_msgTypes[34] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } +func (x *SuspendRequest) Reset() { + *x = SuspendRequest{} + mi := &file_orchestrator_service_proto_msgTypes[59] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } -func (x *OrchestratorRequest) String() string { +func (x *SuspendRequest) String() string { return protoimpl.X.MessageStringOf(x) } -func (*OrchestratorRequest) ProtoMessage() {} +func (*SuspendRequest) ProtoMessage() {} -func (x *OrchestratorRequest) ProtoReflect() protoreflect.Message { - mi := &file_orchestrator_service_proto_msgTypes[34] - if protoimpl.UnsafeEnabled && x != nil { +func (x *SuspendRequest) ProtoReflect() protoreflect.Message { + mi := &file_orchestrator_service_proto_msgTypes[59] + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2609,74 +4553,85 @@ func (x *OrchestratorRequest) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use OrchestratorRequest.ProtoReflect.Descriptor instead. -func (*OrchestratorRequest) Descriptor() ([]byte, []int) { - return file_orchestrator_service_proto_rawDescGZIP(), []int{34} +// Deprecated: Use SuspendRequest.ProtoReflect.Descriptor instead. +func (*SuspendRequest) Descriptor() ([]byte, []int) { + return file_orchestrator_service_proto_rawDescGZIP(), []int{59} } -func (x *OrchestratorRequest) GetInstanceId() string { +func (x *SuspendRequest) GetInstanceId() string { if x != nil { return x.InstanceId } return "" } -func (x *OrchestratorRequest) GetExecutionId() *wrappers.StringValue { +func (x *SuspendRequest) GetReason() *wrappers.StringValue { if x != nil { - return x.ExecutionId + return x.Reason } return nil } -func (x *OrchestratorRequest) GetPastEvents() []*HistoryEvent { - if x != nil { - return x.PastEvents - } - return nil +type SuspendResponse struct { + state protoimpl.MessageState `protogen:"open.v1"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } -func (x *OrchestratorRequest) GetNewEvents() []*HistoryEvent { - if x != nil { - return x.NewEvents - } - return nil +func (x *SuspendResponse) Reset() { + *x = SuspendResponse{} + mi := &file_orchestrator_service_proto_msgTypes[60] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } -func (x *OrchestratorRequest) GetEntityParameters() *OrchestratorEntityParameters { +func (x *SuspendResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*SuspendResponse) ProtoMessage() {} + +func (x *SuspendResponse) ProtoReflect() protoreflect.Message { + mi := &file_orchestrator_service_proto_msgTypes[60] if x != nil { - return x.EntityParameters + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } - return nil + return mi.MessageOf(x) +} + +// Deprecated: Use SuspendResponse.ProtoReflect.Descriptor instead. +func (*SuspendResponse) Descriptor() ([]byte, []int) { + return file_orchestrator_service_proto_rawDescGZIP(), []int{60} } -type OrchestratorResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache +type ResumeRequest struct { + state protoimpl.MessageState `protogen:"open.v1"` + InstanceId string `protobuf:"bytes,1,opt,name=instanceId,proto3" json:"instanceId,omitempty"` + Reason *wrappers.StringValue `protobuf:"bytes,2,opt,name=reason,proto3" json:"reason,omitempty"` unknownFields protoimpl.UnknownFields - - InstanceId string `protobuf:"bytes,1,opt,name=instanceId,proto3" json:"instanceId,omitempty"` - Actions []*OrchestratorAction `protobuf:"bytes,2,rep,name=actions,proto3" json:"actions,omitempty"` - CustomStatus *wrappers.StringValue `protobuf:"bytes,3,opt,name=customStatus,proto3" json:"customStatus,omitempty"` + sizeCache protoimpl.SizeCache } -func (x *OrchestratorResponse) Reset() { - *x = OrchestratorResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_orchestrator_service_proto_msgTypes[35] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } +func (x *ResumeRequest) Reset() { + *x = ResumeRequest{} + mi := &file_orchestrator_service_proto_msgTypes[61] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } -func (x *OrchestratorResponse) String() string { +func (x *ResumeRequest) String() string { return protoimpl.X.MessageStringOf(x) } -func (*OrchestratorResponse) ProtoMessage() {} +func (*ResumeRequest) ProtoMessage() {} -func (x *OrchestratorResponse) ProtoReflect() protoreflect.Message { - mi := &file_orchestrator_service_proto_msgTypes[35] - if protoimpl.UnsafeEnabled && x != nil { +func (x *ResumeRequest) ProtoReflect() protoreflect.Message { + mi := &file_orchestrator_service_proto_msgTypes[61] + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2686,63 +4641,47 @@ func (x *OrchestratorResponse) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use OrchestratorResponse.ProtoReflect.Descriptor instead. -func (*OrchestratorResponse) Descriptor() ([]byte, []int) { - return file_orchestrator_service_proto_rawDescGZIP(), []int{35} +// Deprecated: Use ResumeRequest.ProtoReflect.Descriptor instead. +func (*ResumeRequest) Descriptor() ([]byte, []int) { + return file_orchestrator_service_proto_rawDescGZIP(), []int{61} } -func (x *OrchestratorResponse) GetInstanceId() string { +func (x *ResumeRequest) GetInstanceId() string { if x != nil { return x.InstanceId } return "" } -func (x *OrchestratorResponse) GetActions() []*OrchestratorAction { - if x != nil { - return x.Actions - } - return nil -} - -func (x *OrchestratorResponse) GetCustomStatus() *wrappers.StringValue { +func (x *ResumeRequest) GetReason() *wrappers.StringValue { if x != nil { - return x.CustomStatus + return x.Reason } return nil } -type CreateInstanceRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache +type ResumeResponse struct { + state protoimpl.MessageState `protogen:"open.v1"` unknownFields protoimpl.UnknownFields - - InstanceId string `protobuf:"bytes,1,opt,name=instanceId,proto3" json:"instanceId,omitempty"` - Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` - Version *wrappers.StringValue `protobuf:"bytes,3,opt,name=version,proto3" json:"version,omitempty"` - Input *wrappers.StringValue `protobuf:"bytes,4,opt,name=input,proto3" json:"input,omitempty"` - ScheduledStartTimestamp *timestamp.Timestamp `protobuf:"bytes,5,opt,name=scheduledStartTimestamp,proto3" json:"scheduledStartTimestamp,omitempty"` - OrchestrationIdReusePolicy *OrchestrationIdReusePolicy `protobuf:"bytes,6,opt,name=orchestrationIdReusePolicy,proto3" json:"orchestrationIdReusePolicy,omitempty"` + sizeCache protoimpl.SizeCache } -func (x *CreateInstanceRequest) Reset() { - *x = CreateInstanceRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_orchestrator_service_proto_msgTypes[36] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } +func (x *ResumeResponse) Reset() { + *x = ResumeResponse{} + mi := &file_orchestrator_service_proto_msgTypes[62] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } -func (x *CreateInstanceRequest) String() string { +func (x *ResumeResponse) String() string { return protoimpl.X.MessageStringOf(x) } -func (*CreateInstanceRequest) ProtoMessage() {} +func (*ResumeResponse) ProtoMessage() {} -func (x *CreateInstanceRequest) ProtoReflect() protoreflect.Message { - mi := &file_orchestrator_service_proto_msgTypes[36] - if protoimpl.UnsafeEnabled && x != nil { +func (x *ResumeResponse) ProtoReflect() protoreflect.Message { + mi := &file_orchestrator_service_proto_msgTypes[62] + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2752,80 +4691,34 @@ func (x *CreateInstanceRequest) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use CreateInstanceRequest.ProtoReflect.Descriptor instead. -func (*CreateInstanceRequest) Descriptor() ([]byte, []int) { - return file_orchestrator_service_proto_rawDescGZIP(), []int{36} -} - -func (x *CreateInstanceRequest) GetInstanceId() string { - if x != nil { - return x.InstanceId - } - return "" -} - -func (x *CreateInstanceRequest) GetName() string { - if x != nil { - return x.Name - } - return "" -} - -func (x *CreateInstanceRequest) GetVersion() *wrappers.StringValue { - if x != nil { - return x.Version - } - return nil -} - -func (x *CreateInstanceRequest) GetInput() *wrappers.StringValue { - if x != nil { - return x.Input - } - return nil -} - -func (x *CreateInstanceRequest) GetScheduledStartTimestamp() *timestamp.Timestamp { - if x != nil { - return x.ScheduledStartTimestamp - } - return nil -} - -func (x *CreateInstanceRequest) GetOrchestrationIdReusePolicy() *OrchestrationIdReusePolicy { - if x != nil { - return x.OrchestrationIdReusePolicy - } - return nil +// Deprecated: Use ResumeResponse.ProtoReflect.Descriptor instead. +func (*ResumeResponse) Descriptor() ([]byte, []int) { + return file_orchestrator_service_proto_rawDescGZIP(), []int{62} } -type OrchestrationIdReusePolicy struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache +type QueryInstancesRequest struct { + state protoimpl.MessageState `protogen:"open.v1"` + Query *InstanceQuery `protobuf:"bytes,1,opt,name=query,proto3" json:"query,omitempty"` unknownFields protoimpl.UnknownFields - - OperationStatus []OrchestrationStatus `protobuf:"varint,1,rep,packed,name=operationStatus,proto3,enum=OrchestrationStatus" json:"operationStatus,omitempty"` - Action CreateOrchestrationAction `protobuf:"varint,2,opt,name=action,proto3,enum=CreateOrchestrationAction" json:"action,omitempty"` + sizeCache protoimpl.SizeCache } -func (x *OrchestrationIdReusePolicy) Reset() { - *x = OrchestrationIdReusePolicy{} - if protoimpl.UnsafeEnabled { - mi := &file_orchestrator_service_proto_msgTypes[37] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } +func (x *QueryInstancesRequest) Reset() { + *x = QueryInstancesRequest{} + mi := &file_orchestrator_service_proto_msgTypes[63] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } -func (x *OrchestrationIdReusePolicy) String() string { +func (x *QueryInstancesRequest) String() string { return protoimpl.X.MessageStringOf(x) } -func (*OrchestrationIdReusePolicy) ProtoMessage() {} +func (*QueryInstancesRequest) ProtoMessage() {} -func (x *OrchestrationIdReusePolicy) ProtoReflect() protoreflect.Message { - mi := &file_orchestrator_service_proto_msgTypes[37] - if protoimpl.UnsafeEnabled && x != nil { +func (x *QueryInstancesRequest) ProtoReflect() protoreflect.Message { + mi := &file_orchestrator_service_proto_msgTypes[63] + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2835,51 +4728,48 @@ func (x *OrchestrationIdReusePolicy) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use OrchestrationIdReusePolicy.ProtoReflect.Descriptor instead. -func (*OrchestrationIdReusePolicy) Descriptor() ([]byte, []int) { - return file_orchestrator_service_proto_rawDescGZIP(), []int{37} +// Deprecated: Use QueryInstancesRequest.ProtoReflect.Descriptor instead. +func (*QueryInstancesRequest) Descriptor() ([]byte, []int) { + return file_orchestrator_service_proto_rawDescGZIP(), []int{63} } -func (x *OrchestrationIdReusePolicy) GetOperationStatus() []OrchestrationStatus { +func (x *QueryInstancesRequest) GetQuery() *InstanceQuery { if x != nil { - return x.OperationStatus + return x.Query } return nil } -func (x *OrchestrationIdReusePolicy) GetAction() CreateOrchestrationAction { - if x != nil { - return x.Action - } - return CreateOrchestrationAction_ERROR -} - -type CreateInstanceResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - InstanceId string `protobuf:"bytes,1,opt,name=instanceId,proto3" json:"instanceId,omitempty"` +type InstanceQuery struct { + state protoimpl.MessageState `protogen:"open.v1"` + RuntimeStatus []OrchestrationStatus `protobuf:"varint,1,rep,packed,name=runtimeStatus,proto3,enum=OrchestrationStatus" json:"runtimeStatus,omitempty"` + CreatedTimeFrom *timestamp.Timestamp `protobuf:"bytes,2,opt,name=createdTimeFrom,proto3" json:"createdTimeFrom,omitempty"` + CreatedTimeTo *timestamp.Timestamp `protobuf:"bytes,3,opt,name=createdTimeTo,proto3" json:"createdTimeTo,omitempty"` + TaskHubNames []*wrappers.StringValue `protobuf:"bytes,4,rep,name=taskHubNames,proto3" json:"taskHubNames,omitempty"` + MaxInstanceCount int32 `protobuf:"varint,5,opt,name=maxInstanceCount,proto3" json:"maxInstanceCount,omitempty"` + ContinuationToken *wrappers.StringValue `protobuf:"bytes,6,opt,name=continuationToken,proto3" json:"continuationToken,omitempty"` + InstanceIdPrefix *wrappers.StringValue `protobuf:"bytes,7,opt,name=instanceIdPrefix,proto3" json:"instanceIdPrefix,omitempty"` + FetchInputsAndOutputs bool `protobuf:"varint,8,opt,name=fetchInputsAndOutputs,proto3" json:"fetchInputsAndOutputs,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } -func (x *CreateInstanceResponse) Reset() { - *x = CreateInstanceResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_orchestrator_service_proto_msgTypes[38] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } +func (x *InstanceQuery) Reset() { + *x = InstanceQuery{} + mi := &file_orchestrator_service_proto_msgTypes[64] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } -func (x *CreateInstanceResponse) String() string { +func (x *InstanceQuery) String() string { return protoimpl.X.MessageStringOf(x) } -func (*CreateInstanceResponse) ProtoMessage() {} +func (*InstanceQuery) ProtoMessage() {} -func (x *CreateInstanceResponse) ProtoReflect() protoreflect.Message { - mi := &file_orchestrator_service_proto_msgTypes[38] - if protoimpl.UnsafeEnabled && x != nil { +func (x *InstanceQuery) ProtoReflect() protoreflect.Message { + mi := &file_orchestrator_service_proto_msgTypes[64] + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2889,100 +4779,91 @@ func (x *CreateInstanceResponse) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use CreateInstanceResponse.ProtoReflect.Descriptor instead. -func (*CreateInstanceResponse) Descriptor() ([]byte, []int) { - return file_orchestrator_service_proto_rawDescGZIP(), []int{38} +// Deprecated: Use InstanceQuery.ProtoReflect.Descriptor instead. +func (*InstanceQuery) Descriptor() ([]byte, []int) { + return file_orchestrator_service_proto_rawDescGZIP(), []int{64} } -func (x *CreateInstanceResponse) GetInstanceId() string { +func (x *InstanceQuery) GetRuntimeStatus() []OrchestrationStatus { if x != nil { - return x.InstanceId + return x.RuntimeStatus } - return "" + return nil } -type GetInstanceRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - InstanceId string `protobuf:"bytes,1,opt,name=instanceId,proto3" json:"instanceId,omitempty"` - GetInputsAndOutputs bool `protobuf:"varint,2,opt,name=getInputsAndOutputs,proto3" json:"getInputsAndOutputs,omitempty"` +func (x *InstanceQuery) GetCreatedTimeFrom() *timestamp.Timestamp { + if x != nil { + return x.CreatedTimeFrom + } + return nil } -func (x *GetInstanceRequest) Reset() { - *x = GetInstanceRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_orchestrator_service_proto_msgTypes[39] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) +func (x *InstanceQuery) GetCreatedTimeTo() *timestamp.Timestamp { + if x != nil { + return x.CreatedTimeTo } + return nil } -func (x *GetInstanceRequest) String() string { - return protoimpl.X.MessageStringOf(x) +func (x *InstanceQuery) GetTaskHubNames() []*wrappers.StringValue { + if x != nil { + return x.TaskHubNames + } + return nil } -func (*GetInstanceRequest) ProtoMessage() {} - -func (x *GetInstanceRequest) ProtoReflect() protoreflect.Message { - mi := &file_orchestrator_service_proto_msgTypes[39] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms +func (x *InstanceQuery) GetMaxInstanceCount() int32 { + if x != nil { + return x.MaxInstanceCount } - return mi.MessageOf(x) + return 0 } -// Deprecated: Use GetInstanceRequest.ProtoReflect.Descriptor instead. -func (*GetInstanceRequest) Descriptor() ([]byte, []int) { - return file_orchestrator_service_proto_rawDescGZIP(), []int{39} +func (x *InstanceQuery) GetContinuationToken() *wrappers.StringValue { + if x != nil { + return x.ContinuationToken + } + return nil } -func (x *GetInstanceRequest) GetInstanceId() string { +func (x *InstanceQuery) GetInstanceIdPrefix() *wrappers.StringValue { if x != nil { - return x.InstanceId + return x.InstanceIdPrefix } - return "" + return nil } -func (x *GetInstanceRequest) GetGetInputsAndOutputs() bool { +func (x *InstanceQuery) GetFetchInputsAndOutputs() bool { if x != nil { - return x.GetInputsAndOutputs + return x.FetchInputsAndOutputs } return false } -type GetInstanceResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Exists bool `protobuf:"varint,1,opt,name=exists,proto3" json:"exists,omitempty"` - OrchestrationState *OrchestrationState `protobuf:"bytes,2,opt,name=orchestrationState,proto3" json:"orchestrationState,omitempty"` +type QueryInstancesResponse struct { + state protoimpl.MessageState `protogen:"open.v1"` + OrchestrationState []*OrchestrationState `protobuf:"bytes,1,rep,name=orchestrationState,proto3" json:"orchestrationState,omitempty"` + ContinuationToken *wrappers.StringValue `protobuf:"bytes,2,opt,name=continuationToken,proto3" json:"continuationToken,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } -func (x *GetInstanceResponse) Reset() { - *x = GetInstanceResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_orchestrator_service_proto_msgTypes[40] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } +func (x *QueryInstancesResponse) Reset() { + *x = QueryInstancesResponse{} + mi := &file_orchestrator_service_proto_msgTypes[65] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } -func (x *GetInstanceResponse) String() string { +func (x *QueryInstancesResponse) String() string { return protoimpl.X.MessageStringOf(x) } -func (*GetInstanceResponse) ProtoMessage() {} +func (*QueryInstancesResponse) ProtoMessage() {} -func (x *GetInstanceResponse) ProtoReflect() protoreflect.Message { - mi := &file_orchestrator_service_proto_msgTypes[40] - if protoimpl.UnsafeEnabled && x != nil { +func (x *QueryInstancesResponse) ProtoReflect() protoreflect.Message { + mi := &file_orchestrator_service_proto_msgTypes[65] + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2992,52 +4873,52 @@ func (x *GetInstanceResponse) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use GetInstanceResponse.ProtoReflect.Descriptor instead. -func (*GetInstanceResponse) Descriptor() ([]byte, []int) { - return file_orchestrator_service_proto_rawDescGZIP(), []int{40} +// Deprecated: Use QueryInstancesResponse.ProtoReflect.Descriptor instead. +func (*QueryInstancesResponse) Descriptor() ([]byte, []int) { + return file_orchestrator_service_proto_rawDescGZIP(), []int{65} } -func (x *GetInstanceResponse) GetExists() bool { +func (x *QueryInstancesResponse) GetOrchestrationState() []*OrchestrationState { if x != nil { - return x.Exists + return x.OrchestrationState } - return false + return nil } -func (x *GetInstanceResponse) GetOrchestrationState() *OrchestrationState { +func (x *QueryInstancesResponse) GetContinuationToken() *wrappers.StringValue { if x != nil { - return x.OrchestrationState + return x.ContinuationToken } return nil } -type RewindInstanceRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - InstanceId string `protobuf:"bytes,1,opt,name=instanceId,proto3" json:"instanceId,omitempty"` - Reason *wrappers.StringValue `protobuf:"bytes,2,opt,name=reason,proto3" json:"reason,omitempty"` +type ListInstanceIdsRequest struct { + state protoimpl.MessageState `protogen:"open.v1"` + RuntimeStatus []OrchestrationStatus `protobuf:"varint,1,rep,packed,name=runtimeStatus,proto3,enum=OrchestrationStatus" json:"runtimeStatus,omitempty"` + CompletedTimeFrom *timestamp.Timestamp `protobuf:"bytes,2,opt,name=completedTimeFrom,proto3" json:"completedTimeFrom,omitempty"` + CompletedTimeTo *timestamp.Timestamp `protobuf:"bytes,3,opt,name=completedTimeTo,proto3" json:"completedTimeTo,omitempty"` + PageSize int32 `protobuf:"varint,4,opt,name=pageSize,proto3" json:"pageSize,omitempty"` + LastInstanceKey *wrappers.StringValue `protobuf:"bytes,5,opt,name=lastInstanceKey,proto3" json:"lastInstanceKey,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } -func (x *RewindInstanceRequest) Reset() { - *x = RewindInstanceRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_orchestrator_service_proto_msgTypes[41] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } +func (x *ListInstanceIdsRequest) Reset() { + *x = ListInstanceIdsRequest{} + mi := &file_orchestrator_service_proto_msgTypes[66] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } -func (x *RewindInstanceRequest) String() string { +func (x *ListInstanceIdsRequest) String() string { return protoimpl.X.MessageStringOf(x) } -func (*RewindInstanceRequest) ProtoMessage() {} +func (*ListInstanceIdsRequest) ProtoMessage() {} -func (x *RewindInstanceRequest) ProtoReflect() protoreflect.Message { - mi := &file_orchestrator_service_proto_msgTypes[41] - if protoimpl.UnsafeEnabled && x != nil { +func (x *ListInstanceIdsRequest) ProtoReflect() protoreflect.Message { + mi := &file_orchestrator_service_proto_msgTypes[66] + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -3047,49 +4928,70 @@ func (x *RewindInstanceRequest) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use RewindInstanceRequest.ProtoReflect.Descriptor instead. -func (*RewindInstanceRequest) Descriptor() ([]byte, []int) { - return file_orchestrator_service_proto_rawDescGZIP(), []int{41} +// Deprecated: Use ListInstanceIdsRequest.ProtoReflect.Descriptor instead. +func (*ListInstanceIdsRequest) Descriptor() ([]byte, []int) { + return file_orchestrator_service_proto_rawDescGZIP(), []int{66} } -func (x *RewindInstanceRequest) GetInstanceId() string { +func (x *ListInstanceIdsRequest) GetRuntimeStatus() []OrchestrationStatus { if x != nil { - return x.InstanceId + return x.RuntimeStatus } - return "" + return nil } -func (x *RewindInstanceRequest) GetReason() *wrappers.StringValue { +func (x *ListInstanceIdsRequest) GetCompletedTimeFrom() *timestamp.Timestamp { if x != nil { - return x.Reason + return x.CompletedTimeFrom } return nil } -type RewindInstanceResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields +func (x *ListInstanceIdsRequest) GetCompletedTimeTo() *timestamp.Timestamp { + if x != nil { + return x.CompletedTimeTo + } + return nil } -func (x *RewindInstanceResponse) Reset() { - *x = RewindInstanceResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_orchestrator_service_proto_msgTypes[42] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) +func (x *ListInstanceIdsRequest) GetPageSize() int32 { + if x != nil { + return x.PageSize } + return 0 } -func (x *RewindInstanceResponse) String() string { +func (x *ListInstanceIdsRequest) GetLastInstanceKey() *wrappers.StringValue { + if x != nil { + return x.LastInstanceKey + } + return nil +} + +type ListInstanceIdsResponse struct { + state protoimpl.MessageState `protogen:"open.v1"` + InstanceIds []string `protobuf:"bytes,1,rep,name=instanceIds,proto3" json:"instanceIds,omitempty"` + LastInstanceKey *wrappers.StringValue `protobuf:"bytes,2,opt,name=lastInstanceKey,proto3" json:"lastInstanceKey,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ListInstanceIdsResponse) Reset() { + *x = ListInstanceIdsResponse{} + mi := &file_orchestrator_service_proto_msgTypes[67] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ListInstanceIdsResponse) String() string { return protoimpl.X.MessageStringOf(x) } -func (*RewindInstanceResponse) ProtoMessage() {} +func (*ListInstanceIdsResponse) ProtoMessage() {} -func (x *RewindInstanceResponse) ProtoReflect() protoreflect.Message { - mi := &file_orchestrator_service_proto_msgTypes[42] - if protoimpl.UnsafeEnabled && x != nil { +func (x *ListInstanceIdsResponse) ProtoReflect() protoreflect.Message { + mi := &file_orchestrator_service_proto_msgTypes[67] + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -3099,47 +5001,56 @@ func (x *RewindInstanceResponse) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use RewindInstanceResponse.ProtoReflect.Descriptor instead. -func (*RewindInstanceResponse) Descriptor() ([]byte, []int) { - return file_orchestrator_service_proto_rawDescGZIP(), []int{42} +// Deprecated: Use ListInstanceIdsResponse.ProtoReflect.Descriptor instead. +func (*ListInstanceIdsResponse) Descriptor() ([]byte, []int) { + return file_orchestrator_service_proto_rawDescGZIP(), []int{67} } -type OrchestrationState struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - InstanceId string `protobuf:"bytes,1,opt,name=instanceId,proto3" json:"instanceId,omitempty"` - Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` - Version *wrappers.StringValue `protobuf:"bytes,3,opt,name=version,proto3" json:"version,omitempty"` - OrchestrationStatus OrchestrationStatus `protobuf:"varint,4,opt,name=orchestrationStatus,proto3,enum=OrchestrationStatus" json:"orchestrationStatus,omitempty"` - ScheduledStartTimestamp *timestamp.Timestamp `protobuf:"bytes,5,opt,name=scheduledStartTimestamp,proto3" json:"scheduledStartTimestamp,omitempty"` - CreatedTimestamp *timestamp.Timestamp `protobuf:"bytes,6,opt,name=createdTimestamp,proto3" json:"createdTimestamp,omitempty"` - LastUpdatedTimestamp *timestamp.Timestamp `protobuf:"bytes,7,opt,name=lastUpdatedTimestamp,proto3" json:"lastUpdatedTimestamp,omitempty"` - Input *wrappers.StringValue `protobuf:"bytes,8,opt,name=input,proto3" json:"input,omitempty"` - Output *wrappers.StringValue `protobuf:"bytes,9,opt,name=output,proto3" json:"output,omitempty"` - CustomStatus *wrappers.StringValue `protobuf:"bytes,10,opt,name=customStatus,proto3" json:"customStatus,omitempty"` - FailureDetails *TaskFailureDetails `protobuf:"bytes,11,opt,name=failureDetails,proto3" json:"failureDetails,omitempty"` +func (x *ListInstanceIdsResponse) GetInstanceIds() []string { + if x != nil { + return x.InstanceIds + } + return nil } -func (x *OrchestrationState) Reset() { - *x = OrchestrationState{} - if protoimpl.UnsafeEnabled { - mi := &file_orchestrator_service_proto_msgTypes[43] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) +func (x *ListInstanceIdsResponse) GetLastInstanceKey() *wrappers.StringValue { + if x != nil { + return x.LastInstanceKey } + return nil } -func (x *OrchestrationState) String() string { +type PurgeInstancesRequest struct { + state protoimpl.MessageState `protogen:"open.v1"` + // Types that are valid to be assigned to Request: + // + // *PurgeInstancesRequest_InstanceId + // *PurgeInstancesRequest_PurgeInstanceFilter + // *PurgeInstancesRequest_InstanceBatch + Request isPurgeInstancesRequest_Request `protobuf_oneof:"request"` + Recursive bool `protobuf:"varint,3,opt,name=recursive,proto3" json:"recursive,omitempty"` + // used in the case when an instanceId is specified to determine if the purge request is for an orchestration (as opposed to an entity) + IsOrchestration bool `protobuf:"varint,5,opt,name=isOrchestration,proto3" json:"isOrchestration,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *PurgeInstancesRequest) Reset() { + *x = PurgeInstancesRequest{} + mi := &file_orchestrator_service_proto_msgTypes[68] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *PurgeInstancesRequest) String() string { return protoimpl.X.MessageStringOf(x) } -func (*OrchestrationState) ProtoMessage() {} +func (*PurgeInstancesRequest) ProtoMessage() {} -func (x *OrchestrationState) ProtoReflect() protoreflect.Message { - mi := &file_orchestrator_service_proto_msgTypes[43] - if protoimpl.UnsafeEnabled && x != nil { +func (x *PurgeInstancesRequest) ProtoReflect() protoreflect.Message { + mi := &file_orchestrator_service_proto_msgTypes[68] + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -3149,116 +5060,107 @@ func (x *OrchestrationState) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use OrchestrationState.ProtoReflect.Descriptor instead. -func (*OrchestrationState) Descriptor() ([]byte, []int) { - return file_orchestrator_service_proto_rawDescGZIP(), []int{43} +// Deprecated: Use PurgeInstancesRequest.ProtoReflect.Descriptor instead. +func (*PurgeInstancesRequest) Descriptor() ([]byte, []int) { + return file_orchestrator_service_proto_rawDescGZIP(), []int{68} } -func (x *OrchestrationState) GetInstanceId() string { +func (x *PurgeInstancesRequest) GetRequest() isPurgeInstancesRequest_Request { if x != nil { - return x.InstanceId + return x.Request } - return "" + return nil } -func (x *OrchestrationState) GetName() string { +func (x *PurgeInstancesRequest) GetInstanceId() string { if x != nil { - return x.Name + if x, ok := x.Request.(*PurgeInstancesRequest_InstanceId); ok { + return x.InstanceId + } } return "" } -func (x *OrchestrationState) GetVersion() *wrappers.StringValue { +func (x *PurgeInstancesRequest) GetPurgeInstanceFilter() *PurgeInstanceFilter { if x != nil { - return x.Version + if x, ok := x.Request.(*PurgeInstancesRequest_PurgeInstanceFilter); ok { + return x.PurgeInstanceFilter + } } return nil } -func (x *OrchestrationState) GetOrchestrationStatus() OrchestrationStatus { - if x != nil { - return x.OrchestrationStatus - } - return OrchestrationStatus_ORCHESTRATION_STATUS_RUNNING -} - -func (x *OrchestrationState) GetScheduledStartTimestamp() *timestamp.Timestamp { +func (x *PurgeInstancesRequest) GetInstanceBatch() *InstanceBatch { if x != nil { - return x.ScheduledStartTimestamp + if x, ok := x.Request.(*PurgeInstancesRequest_InstanceBatch); ok { + return x.InstanceBatch + } } return nil } -func (x *OrchestrationState) GetCreatedTimestamp() *timestamp.Timestamp { +func (x *PurgeInstancesRequest) GetRecursive() bool { if x != nil { - return x.CreatedTimestamp + return x.Recursive } - return nil + return false } -func (x *OrchestrationState) GetLastUpdatedTimestamp() *timestamp.Timestamp { +func (x *PurgeInstancesRequest) GetIsOrchestration() bool { if x != nil { - return x.LastUpdatedTimestamp + return x.IsOrchestration } - return nil + return false } -func (x *OrchestrationState) GetInput() *wrappers.StringValue { - if x != nil { - return x.Input - } - return nil +type isPurgeInstancesRequest_Request interface { + isPurgeInstancesRequest_Request() } -func (x *OrchestrationState) GetOutput() *wrappers.StringValue { - if x != nil { - return x.Output - } - return nil +type PurgeInstancesRequest_InstanceId struct { + InstanceId string `protobuf:"bytes,1,opt,name=instanceId,proto3,oneof"` } -func (x *OrchestrationState) GetCustomStatus() *wrappers.StringValue { - if x != nil { - return x.CustomStatus - } - return nil +type PurgeInstancesRequest_PurgeInstanceFilter struct { + PurgeInstanceFilter *PurgeInstanceFilter `protobuf:"bytes,2,opt,name=purgeInstanceFilter,proto3,oneof"` } -func (x *OrchestrationState) GetFailureDetails() *TaskFailureDetails { - if x != nil { - return x.FailureDetails - } - return nil +type PurgeInstancesRequest_InstanceBatch struct { + InstanceBatch *InstanceBatch `protobuf:"bytes,4,opt,name=instanceBatch,proto3,oneof"` } -type RaiseEventRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields +func (*PurgeInstancesRequest_InstanceId) isPurgeInstancesRequest_Request() {} + +func (*PurgeInstancesRequest_PurgeInstanceFilter) isPurgeInstancesRequest_Request() {} + +func (*PurgeInstancesRequest_InstanceBatch) isPurgeInstancesRequest_Request() {} - InstanceId string `protobuf:"bytes,1,opt,name=instanceId,proto3" json:"instanceId,omitempty"` - Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` - Input *wrappers.StringValue `protobuf:"bytes,3,opt,name=input,proto3" json:"input,omitempty"` +type PurgeInstanceFilter struct { + state protoimpl.MessageState `protogen:"open.v1"` + CreatedTimeFrom *timestamp.Timestamp `protobuf:"bytes,1,opt,name=createdTimeFrom,proto3" json:"createdTimeFrom,omitempty"` + CreatedTimeTo *timestamp.Timestamp `protobuf:"bytes,2,opt,name=createdTimeTo,proto3" json:"createdTimeTo,omitempty"` + RuntimeStatus []OrchestrationStatus `protobuf:"varint,3,rep,packed,name=runtimeStatus,proto3,enum=OrchestrationStatus" json:"runtimeStatus,omitempty"` + Timeout *duration.Duration `protobuf:"bytes,4,opt,name=timeout,proto3" json:"timeout,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } -func (x *RaiseEventRequest) Reset() { - *x = RaiseEventRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_orchestrator_service_proto_msgTypes[44] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } +func (x *PurgeInstanceFilter) Reset() { + *x = PurgeInstanceFilter{} + mi := &file_orchestrator_service_proto_msgTypes[69] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } -func (x *RaiseEventRequest) String() string { +func (x *PurgeInstanceFilter) String() string { return protoimpl.X.MessageStringOf(x) } -func (*RaiseEventRequest) ProtoMessage() {} +func (*PurgeInstanceFilter) ProtoMessage() {} -func (x *RaiseEventRequest) ProtoReflect() protoreflect.Message { - mi := &file_orchestrator_service_proto_msgTypes[44] - if protoimpl.UnsafeEnabled && x != nil { +func (x *PurgeInstanceFilter) ProtoReflect() protoreflect.Message { + mi := &file_orchestrator_service_proto_msgTypes[69] + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -3268,56 +5170,63 @@ func (x *RaiseEventRequest) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use RaiseEventRequest.ProtoReflect.Descriptor instead. -func (*RaiseEventRequest) Descriptor() ([]byte, []int) { - return file_orchestrator_service_proto_rawDescGZIP(), []int{44} +// Deprecated: Use PurgeInstanceFilter.ProtoReflect.Descriptor instead. +func (*PurgeInstanceFilter) Descriptor() ([]byte, []int) { + return file_orchestrator_service_proto_rawDescGZIP(), []int{69} } -func (x *RaiseEventRequest) GetInstanceId() string { +func (x *PurgeInstanceFilter) GetCreatedTimeFrom() *timestamp.Timestamp { if x != nil { - return x.InstanceId + return x.CreatedTimeFrom } - return "" + return nil } -func (x *RaiseEventRequest) GetName() string { +func (x *PurgeInstanceFilter) GetCreatedTimeTo() *timestamp.Timestamp { if x != nil { - return x.Name + return x.CreatedTimeTo } - return "" + return nil } -func (x *RaiseEventRequest) GetInput() *wrappers.StringValue { +func (x *PurgeInstanceFilter) GetRuntimeStatus() []OrchestrationStatus { if x != nil { - return x.Input + return x.RuntimeStatus } return nil } -type RaiseEventResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields +func (x *PurgeInstanceFilter) GetTimeout() *duration.Duration { + if x != nil { + return x.Timeout + } + return nil } -func (x *RaiseEventResponse) Reset() { - *x = RaiseEventResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_orchestrator_service_proto_msgTypes[45] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } +type PurgeInstancesResponse struct { + state protoimpl.MessageState `protogen:"open.v1"` + DeletedInstanceCount int32 `protobuf:"varint,1,opt,name=deletedInstanceCount,proto3" json:"deletedInstanceCount,omitempty"` + IsComplete *wrappers.BoolValue `protobuf:"bytes,2,opt,name=isComplete,proto3" json:"isComplete,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } -func (x *RaiseEventResponse) String() string { +func (x *PurgeInstancesResponse) Reset() { + *x = PurgeInstancesResponse{} + mi := &file_orchestrator_service_proto_msgTypes[70] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *PurgeInstancesResponse) String() string { return protoimpl.X.MessageStringOf(x) } -func (*RaiseEventResponse) ProtoMessage() {} +func (*PurgeInstancesResponse) ProtoMessage() {} -func (x *RaiseEventResponse) ProtoReflect() protoreflect.Message { - mi := &file_orchestrator_service_proto_msgTypes[45] - if protoimpl.UnsafeEnabled && x != nil { +func (x *PurgeInstancesResponse) ProtoReflect() protoreflect.Message { + mi := &file_orchestrator_service_proto_msgTypes[70] + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -3327,39 +5236,49 @@ func (x *RaiseEventResponse) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use RaiseEventResponse.ProtoReflect.Descriptor instead. -func (*RaiseEventResponse) Descriptor() ([]byte, []int) { - return file_orchestrator_service_proto_rawDescGZIP(), []int{45} +// Deprecated: Use PurgeInstancesResponse.ProtoReflect.Descriptor instead. +func (*PurgeInstancesResponse) Descriptor() ([]byte, []int) { + return file_orchestrator_service_proto_rawDescGZIP(), []int{70} +} + +func (x *PurgeInstancesResponse) GetDeletedInstanceCount() int32 { + if x != nil { + return x.DeletedInstanceCount + } + return 0 } -type TerminateRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields +func (x *PurgeInstancesResponse) GetIsComplete() *wrappers.BoolValue { + if x != nil { + return x.IsComplete + } + return nil +} - InstanceId string `protobuf:"bytes,1,opt,name=instanceId,proto3" json:"instanceId,omitempty"` - Output *wrappers.StringValue `protobuf:"bytes,2,opt,name=output,proto3" json:"output,omitempty"` - Recursive bool `protobuf:"varint,3,opt,name=recursive,proto3" json:"recursive,omitempty"` +type RestartInstanceRequest struct { + state protoimpl.MessageState `protogen:"open.v1"` + InstanceId string `protobuf:"bytes,1,opt,name=instanceId,proto3" json:"instanceId,omitempty"` + RestartWithNewInstanceId bool `protobuf:"varint,2,opt,name=restartWithNewInstanceId,proto3" json:"restartWithNewInstanceId,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } -func (x *TerminateRequest) Reset() { - *x = TerminateRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_orchestrator_service_proto_msgTypes[46] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } +func (x *RestartInstanceRequest) Reset() { + *x = RestartInstanceRequest{} + mi := &file_orchestrator_service_proto_msgTypes[71] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } -func (x *TerminateRequest) String() string { +func (x *RestartInstanceRequest) String() string { return protoimpl.X.MessageStringOf(x) } -func (*TerminateRequest) ProtoMessage() {} +func (*RestartInstanceRequest) ProtoMessage() {} -func (x *TerminateRequest) ProtoReflect() protoreflect.Message { - mi := &file_orchestrator_service_proto_msgTypes[46] - if protoimpl.UnsafeEnabled && x != nil { +func (x *RestartInstanceRequest) ProtoReflect() protoreflect.Message { + mi := &file_orchestrator_service_proto_msgTypes[71] + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -3369,56 +5288,48 @@ func (x *TerminateRequest) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use TerminateRequest.ProtoReflect.Descriptor instead. -func (*TerminateRequest) Descriptor() ([]byte, []int) { - return file_orchestrator_service_proto_rawDescGZIP(), []int{46} +// Deprecated: Use RestartInstanceRequest.ProtoReflect.Descriptor instead. +func (*RestartInstanceRequest) Descriptor() ([]byte, []int) { + return file_orchestrator_service_proto_rawDescGZIP(), []int{71} } -func (x *TerminateRequest) GetInstanceId() string { +func (x *RestartInstanceRequest) GetInstanceId() string { if x != nil { return x.InstanceId } return "" } -func (x *TerminateRequest) GetOutput() *wrappers.StringValue { - if x != nil { - return x.Output - } - return nil -} - -func (x *TerminateRequest) GetRecursive() bool { +func (x *RestartInstanceRequest) GetRestartWithNewInstanceId() bool { if x != nil { - return x.Recursive + return x.RestartWithNewInstanceId } return false } -type TerminateResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache +type RestartInstanceResponse struct { + state protoimpl.MessageState `protogen:"open.v1"` + InstanceId string `protobuf:"bytes,1,opt,name=instanceId,proto3" json:"instanceId,omitempty"` unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } -func (x *TerminateResponse) Reset() { - *x = TerminateResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_orchestrator_service_proto_msgTypes[47] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } +func (x *RestartInstanceResponse) Reset() { + *x = RestartInstanceResponse{} + mi := &file_orchestrator_service_proto_msgTypes[72] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } -func (x *TerminateResponse) String() string { +func (x *RestartInstanceResponse) String() string { return protoimpl.X.MessageStringOf(x) } -func (*TerminateResponse) ProtoMessage() {} +func (*RestartInstanceResponse) ProtoMessage() {} -func (x *TerminateResponse) ProtoReflect() protoreflect.Message { - mi := &file_orchestrator_service_proto_msgTypes[47] - if protoimpl.UnsafeEnabled && x != nil { +func (x *RestartInstanceResponse) ProtoReflect() protoreflect.Message { + mi := &file_orchestrator_service_proto_msgTypes[72] + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -3428,38 +5339,41 @@ func (x *TerminateResponse) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use TerminateResponse.ProtoReflect.Descriptor instead. -func (*TerminateResponse) Descriptor() ([]byte, []int) { - return file_orchestrator_service_proto_rawDescGZIP(), []int{47} +// Deprecated: Use RestartInstanceResponse.ProtoReflect.Descriptor instead. +func (*RestartInstanceResponse) Descriptor() ([]byte, []int) { + return file_orchestrator_service_proto_rawDescGZIP(), []int{72} } -type SuspendRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields +func (x *RestartInstanceResponse) GetInstanceId() string { + if x != nil { + return x.InstanceId + } + return "" +} - InstanceId string `protobuf:"bytes,1,opt,name=instanceId,proto3" json:"instanceId,omitempty"` - Reason *wrappers.StringValue `protobuf:"bytes,2,opt,name=reason,proto3" json:"reason,omitempty"` +type CreateTaskHubRequest struct { + state protoimpl.MessageState `protogen:"open.v1"` + RecreateIfExists bool `protobuf:"varint,1,opt,name=recreateIfExists,proto3" json:"recreateIfExists,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } -func (x *SuspendRequest) Reset() { - *x = SuspendRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_orchestrator_service_proto_msgTypes[48] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } +func (x *CreateTaskHubRequest) Reset() { + *x = CreateTaskHubRequest{} + mi := &file_orchestrator_service_proto_msgTypes[73] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } -func (x *SuspendRequest) String() string { +func (x *CreateTaskHubRequest) String() string { return protoimpl.X.MessageStringOf(x) } -func (*SuspendRequest) ProtoMessage() {} +func (*CreateTaskHubRequest) ProtoMessage() {} -func (x *SuspendRequest) ProtoReflect() protoreflect.Message { - mi := &file_orchestrator_service_proto_msgTypes[48] - if protoimpl.UnsafeEnabled && x != nil { +func (x *CreateTaskHubRequest) ProtoReflect() protoreflect.Message { + mi := &file_orchestrator_service_proto_msgTypes[73] + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -3469,49 +5383,40 @@ func (x *SuspendRequest) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use SuspendRequest.ProtoReflect.Descriptor instead. -func (*SuspendRequest) Descriptor() ([]byte, []int) { - return file_orchestrator_service_proto_rawDescGZIP(), []int{48} -} - -func (x *SuspendRequest) GetInstanceId() string { - if x != nil { - return x.InstanceId - } - return "" +// Deprecated: Use CreateTaskHubRequest.ProtoReflect.Descriptor instead. +func (*CreateTaskHubRequest) Descriptor() ([]byte, []int) { + return file_orchestrator_service_proto_rawDescGZIP(), []int{73} } -func (x *SuspendRequest) GetReason() *wrappers.StringValue { +func (x *CreateTaskHubRequest) GetRecreateIfExists() bool { if x != nil { - return x.Reason + return x.RecreateIfExists } - return nil + return false } -type SuspendResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache +type CreateTaskHubResponse struct { + state protoimpl.MessageState `protogen:"open.v1"` unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } -func (x *SuspendResponse) Reset() { - *x = SuspendResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_orchestrator_service_proto_msgTypes[49] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } +func (x *CreateTaskHubResponse) Reset() { + *x = CreateTaskHubResponse{} + mi := &file_orchestrator_service_proto_msgTypes[74] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } -func (x *SuspendResponse) String() string { +func (x *CreateTaskHubResponse) String() string { return protoimpl.X.MessageStringOf(x) } -func (*SuspendResponse) ProtoMessage() {} +func (*CreateTaskHubResponse) ProtoMessage() {} -func (x *SuspendResponse) ProtoReflect() protoreflect.Message { - mi := &file_orchestrator_service_proto_msgTypes[49] - if protoimpl.UnsafeEnabled && x != nil { +func (x *CreateTaskHubResponse) ProtoReflect() protoreflect.Message { + mi := &file_orchestrator_service_proto_msgTypes[74] + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -3521,38 +5426,33 @@ func (x *SuspendResponse) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use SuspendResponse.ProtoReflect.Descriptor instead. -func (*SuspendResponse) Descriptor() ([]byte, []int) { - return file_orchestrator_service_proto_rawDescGZIP(), []int{49} +// Deprecated: Use CreateTaskHubResponse.ProtoReflect.Descriptor instead. +func (*CreateTaskHubResponse) Descriptor() ([]byte, []int) { + return file_orchestrator_service_proto_rawDescGZIP(), []int{74} } -type ResumeRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache +type DeleteTaskHubRequest struct { + state protoimpl.MessageState `protogen:"open.v1"` unknownFields protoimpl.UnknownFields - - InstanceId string `protobuf:"bytes,1,opt,name=instanceId,proto3" json:"instanceId,omitempty"` - Reason *wrappers.StringValue `protobuf:"bytes,2,opt,name=reason,proto3" json:"reason,omitempty"` + sizeCache protoimpl.SizeCache } -func (x *ResumeRequest) Reset() { - *x = ResumeRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_orchestrator_service_proto_msgTypes[50] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } +func (x *DeleteTaskHubRequest) Reset() { + *x = DeleteTaskHubRequest{} + mi := &file_orchestrator_service_proto_msgTypes[75] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } -func (x *ResumeRequest) String() string { +func (x *DeleteTaskHubRequest) String() string { return protoimpl.X.MessageStringOf(x) } -func (*ResumeRequest) ProtoMessage() {} +func (*DeleteTaskHubRequest) ProtoMessage() {} -func (x *ResumeRequest) ProtoReflect() protoreflect.Message { - mi := &file_orchestrator_service_proto_msgTypes[50] - if protoimpl.UnsafeEnabled && x != nil { +func (x *DeleteTaskHubRequest) ProtoReflect() protoreflect.Message { + mi := &file_orchestrator_service_proto_msgTypes[75] + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -3562,49 +5462,33 @@ func (x *ResumeRequest) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use ResumeRequest.ProtoReflect.Descriptor instead. -func (*ResumeRequest) Descriptor() ([]byte, []int) { - return file_orchestrator_service_proto_rawDescGZIP(), []int{50} -} - -func (x *ResumeRequest) GetInstanceId() string { - if x != nil { - return x.InstanceId - } - return "" -} - -func (x *ResumeRequest) GetReason() *wrappers.StringValue { - if x != nil { - return x.Reason - } - return nil +// Deprecated: Use DeleteTaskHubRequest.ProtoReflect.Descriptor instead. +func (*DeleteTaskHubRequest) Descriptor() ([]byte, []int) { + return file_orchestrator_service_proto_rawDescGZIP(), []int{75} } -type ResumeResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache +type DeleteTaskHubResponse struct { + state protoimpl.MessageState `protogen:"open.v1"` unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } -func (x *ResumeResponse) Reset() { - *x = ResumeResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_orchestrator_service_proto_msgTypes[51] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } +func (x *DeleteTaskHubResponse) Reset() { + *x = DeleteTaskHubResponse{} + mi := &file_orchestrator_service_proto_msgTypes[76] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } -func (x *ResumeResponse) String() string { +func (x *DeleteTaskHubResponse) String() string { return protoimpl.X.MessageStringOf(x) } -func (*ResumeResponse) ProtoMessage() {} +func (*DeleteTaskHubResponse) ProtoMessage() {} -func (x *ResumeResponse) ProtoReflect() protoreflect.Message { - mi := &file_orchestrator_service_proto_msgTypes[51] - if protoimpl.UnsafeEnabled && x != nil { +func (x *DeleteTaskHubResponse) ProtoReflect() protoreflect.Message { + mi := &file_orchestrator_service_proto_msgTypes[76] + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -3614,91 +5498,125 @@ func (x *ResumeResponse) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use ResumeResponse.ProtoReflect.Descriptor instead. -func (*ResumeResponse) Descriptor() ([]byte, []int) { - return file_orchestrator_service_proto_rawDescGZIP(), []int{51} +// Deprecated: Use DeleteTaskHubResponse.ProtoReflect.Descriptor instead. +func (*DeleteTaskHubResponse) Descriptor() ([]byte, []int) { + return file_orchestrator_service_proto_rawDescGZIP(), []int{76} } -type QueryInstancesRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Query *InstanceQuery `protobuf:"bytes,1,opt,name=query,proto3" json:"query,omitempty"` +type SignalEntityRequest struct { + state protoimpl.MessageState `protogen:"open.v1"` + InstanceId string `protobuf:"bytes,1,opt,name=instanceId,proto3" json:"instanceId,omitempty"` + Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` + Input *wrappers.StringValue `protobuf:"bytes,3,opt,name=input,proto3" json:"input,omitempty"` + RequestId string `protobuf:"bytes,4,opt,name=requestId,proto3" json:"requestId,omitempty"` + ScheduledTime *timestamp.Timestamp `protobuf:"bytes,5,opt,name=scheduledTime,proto3" json:"scheduledTime,omitempty"` + ParentTraceContext *TraceContext `protobuf:"bytes,6,opt,name=parentTraceContext,proto3" json:"parentTraceContext,omitempty"` + RequestTime *timestamp.Timestamp `protobuf:"bytes,7,opt,name=requestTime,proto3" json:"requestTime,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } -func (x *QueryInstancesRequest) Reset() { - *x = QueryInstancesRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_orchestrator_service_proto_msgTypes[52] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } +func (x *SignalEntityRequest) Reset() { + *x = SignalEntityRequest{} + mi := &file_orchestrator_service_proto_msgTypes[77] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } -func (x *QueryInstancesRequest) String() string { +func (x *SignalEntityRequest) String() string { return protoimpl.X.MessageStringOf(x) } -func (*QueryInstancesRequest) ProtoMessage() {} +func (*SignalEntityRequest) ProtoMessage() {} -func (x *QueryInstancesRequest) ProtoReflect() protoreflect.Message { - mi := &file_orchestrator_service_proto_msgTypes[52] - if protoimpl.UnsafeEnabled && x != nil { +func (x *SignalEntityRequest) ProtoReflect() protoreflect.Message { + mi := &file_orchestrator_service_proto_msgTypes[77] + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } - return mi.MessageOf(x) + return mi.MessageOf(x) +} + +// Deprecated: Use SignalEntityRequest.ProtoReflect.Descriptor instead. +func (*SignalEntityRequest) Descriptor() ([]byte, []int) { + return file_orchestrator_service_proto_rawDescGZIP(), []int{77} +} + +func (x *SignalEntityRequest) GetInstanceId() string { + if x != nil { + return x.InstanceId + } + return "" +} + +func (x *SignalEntityRequest) GetName() string { + if x != nil { + return x.Name + } + return "" +} + +func (x *SignalEntityRequest) GetInput() *wrappers.StringValue { + if x != nil { + return x.Input + } + return nil +} + +func (x *SignalEntityRequest) GetRequestId() string { + if x != nil { + return x.RequestId + } + return "" +} + +func (x *SignalEntityRequest) GetScheduledTime() *timestamp.Timestamp { + if x != nil { + return x.ScheduledTime + } + return nil } -// Deprecated: Use QueryInstancesRequest.ProtoReflect.Descriptor instead. -func (*QueryInstancesRequest) Descriptor() ([]byte, []int) { - return file_orchestrator_service_proto_rawDescGZIP(), []int{52} +func (x *SignalEntityRequest) GetParentTraceContext() *TraceContext { + if x != nil { + return x.ParentTraceContext + } + return nil } -func (x *QueryInstancesRequest) GetQuery() *InstanceQuery { +func (x *SignalEntityRequest) GetRequestTime() *timestamp.Timestamp { if x != nil { - return x.Query + return x.RequestTime } return nil } -type InstanceQuery struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache +type SignalEntityResponse struct { + state protoimpl.MessageState `protogen:"open.v1"` unknownFields protoimpl.UnknownFields - - RuntimeStatus []OrchestrationStatus `protobuf:"varint,1,rep,packed,name=runtimeStatus,proto3,enum=OrchestrationStatus" json:"runtimeStatus,omitempty"` - CreatedTimeFrom *timestamp.Timestamp `protobuf:"bytes,2,opt,name=createdTimeFrom,proto3" json:"createdTimeFrom,omitempty"` - CreatedTimeTo *timestamp.Timestamp `protobuf:"bytes,3,opt,name=createdTimeTo,proto3" json:"createdTimeTo,omitempty"` - TaskHubNames []*wrappers.StringValue `protobuf:"bytes,4,rep,name=taskHubNames,proto3" json:"taskHubNames,omitempty"` - MaxInstanceCount int32 `protobuf:"varint,5,opt,name=maxInstanceCount,proto3" json:"maxInstanceCount,omitempty"` - ContinuationToken *wrappers.StringValue `protobuf:"bytes,6,opt,name=continuationToken,proto3" json:"continuationToken,omitempty"` - InstanceIdPrefix *wrappers.StringValue `protobuf:"bytes,7,opt,name=instanceIdPrefix,proto3" json:"instanceIdPrefix,omitempty"` - FetchInputsAndOutputs bool `protobuf:"varint,8,opt,name=fetchInputsAndOutputs,proto3" json:"fetchInputsAndOutputs,omitempty"` + sizeCache protoimpl.SizeCache } -func (x *InstanceQuery) Reset() { - *x = InstanceQuery{} - if protoimpl.UnsafeEnabled { - mi := &file_orchestrator_service_proto_msgTypes[53] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } +func (x *SignalEntityResponse) Reset() { + *x = SignalEntityResponse{} + mi := &file_orchestrator_service_proto_msgTypes[78] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } -func (x *InstanceQuery) String() string { +func (x *SignalEntityResponse) String() string { return protoimpl.X.MessageStringOf(x) } -func (*InstanceQuery) ProtoMessage() {} +func (*SignalEntityResponse) ProtoMessage() {} -func (x *InstanceQuery) ProtoReflect() protoreflect.Message { - mi := &file_orchestrator_service_proto_msgTypes[53] - if protoimpl.UnsafeEnabled && x != nil { +func (x *SignalEntityResponse) ProtoReflect() protoreflect.Message { + mi := &file_orchestrator_service_proto_msgTypes[78] + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -3708,94 +5626,87 @@ func (x *InstanceQuery) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use InstanceQuery.ProtoReflect.Descriptor instead. -func (*InstanceQuery) Descriptor() ([]byte, []int) { - return file_orchestrator_service_proto_rawDescGZIP(), []int{53} +// Deprecated: Use SignalEntityResponse.ProtoReflect.Descriptor instead. +func (*SignalEntityResponse) Descriptor() ([]byte, []int) { + return file_orchestrator_service_proto_rawDescGZIP(), []int{78} } -func (x *InstanceQuery) GetRuntimeStatus() []OrchestrationStatus { - if x != nil { - return x.RuntimeStatus - } - return nil +type GetEntityRequest struct { + state protoimpl.MessageState `protogen:"open.v1"` + InstanceId string `protobuf:"bytes,1,opt,name=instanceId,proto3" json:"instanceId,omitempty"` + IncludeState bool `protobuf:"varint,2,opt,name=includeState,proto3" json:"includeState,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } -func (x *InstanceQuery) GetCreatedTimeFrom() *timestamp.Timestamp { - if x != nil { - return x.CreatedTimeFrom - } - return nil +func (x *GetEntityRequest) Reset() { + *x = GetEntityRequest{} + mi := &file_orchestrator_service_proto_msgTypes[79] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } -func (x *InstanceQuery) GetCreatedTimeTo() *timestamp.Timestamp { - if x != nil { - return x.CreatedTimeTo - } - return nil +func (x *GetEntityRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (x *InstanceQuery) GetTaskHubNames() []*wrappers.StringValue { - if x != nil { - return x.TaskHubNames - } - return nil -} +func (*GetEntityRequest) ProtoMessage() {} -func (x *InstanceQuery) GetMaxInstanceCount() int32 { +func (x *GetEntityRequest) ProtoReflect() protoreflect.Message { + mi := &file_orchestrator_service_proto_msgTypes[79] if x != nil { - return x.MaxInstanceCount + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } - return 0 + return mi.MessageOf(x) } -func (x *InstanceQuery) GetContinuationToken() *wrappers.StringValue { - if x != nil { - return x.ContinuationToken - } - return nil +// Deprecated: Use GetEntityRequest.ProtoReflect.Descriptor instead. +func (*GetEntityRequest) Descriptor() ([]byte, []int) { + return file_orchestrator_service_proto_rawDescGZIP(), []int{79} } -func (x *InstanceQuery) GetInstanceIdPrefix() *wrappers.StringValue { +func (x *GetEntityRequest) GetInstanceId() string { if x != nil { - return x.InstanceIdPrefix + return x.InstanceId } - return nil + return "" } -func (x *InstanceQuery) GetFetchInputsAndOutputs() bool { +func (x *GetEntityRequest) GetIncludeState() bool { if x != nil { - return x.FetchInputsAndOutputs + return x.IncludeState } return false } -type QueryInstancesResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache +type GetEntityResponse struct { + state protoimpl.MessageState `protogen:"open.v1"` + Exists bool `protobuf:"varint,1,opt,name=exists,proto3" json:"exists,omitempty"` + Entity *EntityMetadata `protobuf:"bytes,2,opt,name=entity,proto3" json:"entity,omitempty"` unknownFields protoimpl.UnknownFields - - OrchestrationState []*OrchestrationState `protobuf:"bytes,1,rep,name=orchestrationState,proto3" json:"orchestrationState,omitempty"` - ContinuationToken *wrappers.StringValue `protobuf:"bytes,2,opt,name=continuationToken,proto3" json:"continuationToken,omitempty"` + sizeCache protoimpl.SizeCache } -func (x *QueryInstancesResponse) Reset() { - *x = QueryInstancesResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_orchestrator_service_proto_msgTypes[54] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } +func (x *GetEntityResponse) Reset() { + *x = GetEntityResponse{} + mi := &file_orchestrator_service_proto_msgTypes[80] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } -func (x *QueryInstancesResponse) String() string { +func (x *GetEntityResponse) String() string { return protoimpl.X.MessageStringOf(x) } -func (*QueryInstancesResponse) ProtoMessage() {} +func (*GetEntityResponse) ProtoMessage() {} -func (x *QueryInstancesResponse) ProtoReflect() protoreflect.Message { - mi := &file_orchestrator_service_proto_msgTypes[54] - if protoimpl.UnsafeEnabled && x != nil { +func (x *GetEntityResponse) ProtoReflect() protoreflect.Message { + mi := &file_orchestrator_service_proto_msgTypes[80] + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -3805,56 +5716,54 @@ func (x *QueryInstancesResponse) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use QueryInstancesResponse.ProtoReflect.Descriptor instead. -func (*QueryInstancesResponse) Descriptor() ([]byte, []int) { - return file_orchestrator_service_proto_rawDescGZIP(), []int{54} +// Deprecated: Use GetEntityResponse.ProtoReflect.Descriptor instead. +func (*GetEntityResponse) Descriptor() ([]byte, []int) { + return file_orchestrator_service_proto_rawDescGZIP(), []int{80} } -func (x *QueryInstancesResponse) GetOrchestrationState() []*OrchestrationState { +func (x *GetEntityResponse) GetExists() bool { if x != nil { - return x.OrchestrationState + return x.Exists } - return nil + return false } -func (x *QueryInstancesResponse) GetContinuationToken() *wrappers.StringValue { +func (x *GetEntityResponse) GetEntity() *EntityMetadata { if x != nil { - return x.ContinuationToken + return x.Entity } return nil } -type PurgeInstancesRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Types that are assignable to Request: - // - // *PurgeInstancesRequest_InstanceId - // *PurgeInstancesRequest_PurgeInstanceFilter - Request isPurgeInstancesRequest_Request `protobuf_oneof:"request"` - Recursive bool `protobuf:"varint,3,opt,name=recursive,proto3" json:"recursive,omitempty"` +type EntityQuery struct { + state protoimpl.MessageState `protogen:"open.v1"` + InstanceIdStartsWith *wrappers.StringValue `protobuf:"bytes,1,opt,name=instanceIdStartsWith,proto3" json:"instanceIdStartsWith,omitempty"` + LastModifiedFrom *timestamp.Timestamp `protobuf:"bytes,2,opt,name=lastModifiedFrom,proto3" json:"lastModifiedFrom,omitempty"` + LastModifiedTo *timestamp.Timestamp `protobuf:"bytes,3,opt,name=lastModifiedTo,proto3" json:"lastModifiedTo,omitempty"` + IncludeState bool `protobuf:"varint,4,opt,name=includeState,proto3" json:"includeState,omitempty"` + IncludeTransient bool `protobuf:"varint,5,opt,name=includeTransient,proto3" json:"includeTransient,omitempty"` + PageSize *wrappers.Int32Value `protobuf:"bytes,6,opt,name=pageSize,proto3" json:"pageSize,omitempty"` + ContinuationToken *wrappers.StringValue `protobuf:"bytes,7,opt,name=continuationToken,proto3" json:"continuationToken,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } -func (x *PurgeInstancesRequest) Reset() { - *x = PurgeInstancesRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_orchestrator_service_proto_msgTypes[55] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } +func (x *EntityQuery) Reset() { + *x = EntityQuery{} + mi := &file_orchestrator_service_proto_msgTypes[81] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } -func (x *PurgeInstancesRequest) String() string { +func (x *EntityQuery) String() string { return protoimpl.X.MessageStringOf(x) } -func (*PurgeInstancesRequest) ProtoMessage() {} +func (*EntityQuery) ProtoMessage() {} -func (x *PurgeInstancesRequest) ProtoReflect() protoreflect.Message { - mi := &file_orchestrator_service_proto_msgTypes[55] - if protoimpl.UnsafeEnabled && x != nil { +func (x *EntityQuery) ProtoReflect() protoreflect.Message { + mi := &file_orchestrator_service_proto_msgTypes[81] + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -3864,83 +5773,128 @@ func (x *PurgeInstancesRequest) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use PurgeInstancesRequest.ProtoReflect.Descriptor instead. -func (*PurgeInstancesRequest) Descriptor() ([]byte, []int) { - return file_orchestrator_service_proto_rawDescGZIP(), []int{55} +// Deprecated: Use EntityQuery.ProtoReflect.Descriptor instead. +func (*EntityQuery) Descriptor() ([]byte, []int) { + return file_orchestrator_service_proto_rawDescGZIP(), []int{81} } -func (m *PurgeInstancesRequest) GetRequest() isPurgeInstancesRequest_Request { - if m != nil { - return m.Request +func (x *EntityQuery) GetInstanceIdStartsWith() *wrappers.StringValue { + if x != nil { + return x.InstanceIdStartsWith } return nil } -func (x *PurgeInstancesRequest) GetInstanceId() string { - if x, ok := x.GetRequest().(*PurgeInstancesRequest_InstanceId); ok { - return x.InstanceId +func (x *EntityQuery) GetLastModifiedFrom() *timestamp.Timestamp { + if x != nil { + return x.LastModifiedFrom } - return "" + return nil } -func (x *PurgeInstancesRequest) GetPurgeInstanceFilter() *PurgeInstanceFilter { - if x, ok := x.GetRequest().(*PurgeInstancesRequest_PurgeInstanceFilter); ok { - return x.PurgeInstanceFilter +func (x *EntityQuery) GetLastModifiedTo() *timestamp.Timestamp { + if x != nil { + return x.LastModifiedTo } return nil } -func (x *PurgeInstancesRequest) GetRecursive() bool { +func (x *EntityQuery) GetIncludeState() bool { if x != nil { - return x.Recursive + return x.IncludeState } return false } -type isPurgeInstancesRequest_Request interface { - isPurgeInstancesRequest_Request() +func (x *EntityQuery) GetIncludeTransient() bool { + if x != nil { + return x.IncludeTransient + } + return false } -type PurgeInstancesRequest_InstanceId struct { - InstanceId string `protobuf:"bytes,1,opt,name=instanceId,proto3,oneof"` +func (x *EntityQuery) GetPageSize() *wrappers.Int32Value { + if x != nil { + return x.PageSize + } + return nil } -type PurgeInstancesRequest_PurgeInstanceFilter struct { - PurgeInstanceFilter *PurgeInstanceFilter `protobuf:"bytes,2,opt,name=purgeInstanceFilter,proto3,oneof"` +func (x *EntityQuery) GetContinuationToken() *wrappers.StringValue { + if x != nil { + return x.ContinuationToken + } + return nil } -func (*PurgeInstancesRequest_InstanceId) isPurgeInstancesRequest_Request() {} - -func (*PurgeInstancesRequest_PurgeInstanceFilter) isPurgeInstancesRequest_Request() {} - -type PurgeInstanceFilter struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache +type QueryEntitiesRequest struct { + state protoimpl.MessageState `protogen:"open.v1"` + Query *EntityQuery `protobuf:"bytes,1,opt,name=query,proto3" json:"query,omitempty"` unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *QueryEntitiesRequest) Reset() { + *x = QueryEntitiesRequest{} + mi := &file_orchestrator_service_proto_msgTypes[82] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} - CreatedTimeFrom *timestamp.Timestamp `protobuf:"bytes,1,opt,name=createdTimeFrom,proto3" json:"createdTimeFrom,omitempty"` - CreatedTimeTo *timestamp.Timestamp `protobuf:"bytes,2,opt,name=createdTimeTo,proto3" json:"createdTimeTo,omitempty"` - RuntimeStatus []OrchestrationStatus `protobuf:"varint,3,rep,packed,name=runtimeStatus,proto3,enum=OrchestrationStatus" json:"runtimeStatus,omitempty"` +func (x *QueryEntitiesRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (x *PurgeInstanceFilter) Reset() { - *x = PurgeInstanceFilter{} - if protoimpl.UnsafeEnabled { - mi := &file_orchestrator_service_proto_msgTypes[56] +func (*QueryEntitiesRequest) ProtoMessage() {} + +func (x *QueryEntitiesRequest) ProtoReflect() protoreflect.Message { + mi := &file_orchestrator_service_proto_msgTypes[82] + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use QueryEntitiesRequest.ProtoReflect.Descriptor instead. +func (*QueryEntitiesRequest) Descriptor() ([]byte, []int) { + return file_orchestrator_service_proto_rawDescGZIP(), []int{82} +} + +func (x *QueryEntitiesRequest) GetQuery() *EntityQuery { + if x != nil { + return x.Query } + return nil +} + +type QueryEntitiesResponse struct { + state protoimpl.MessageState `protogen:"open.v1"` + Entities []*EntityMetadata `protobuf:"bytes,1,rep,name=entities,proto3" json:"entities,omitempty"` + ContinuationToken *wrappers.StringValue `protobuf:"bytes,2,opt,name=continuationToken,proto3" json:"continuationToken,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } -func (x *PurgeInstanceFilter) String() string { +func (x *QueryEntitiesResponse) Reset() { + *x = QueryEntitiesResponse{} + mi := &file_orchestrator_service_proto_msgTypes[83] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *QueryEntitiesResponse) String() string { return protoimpl.X.MessageStringOf(x) } -func (*PurgeInstanceFilter) ProtoMessage() {} +func (*QueryEntitiesResponse) ProtoMessage() {} -func (x *PurgeInstanceFilter) ProtoReflect() protoreflect.Message { - mi := &file_orchestrator_service_proto_msgTypes[56] - if protoimpl.UnsafeEnabled && x != nil { +func (x *QueryEntitiesResponse) ProtoReflect() protoreflect.Message { + mi := &file_orchestrator_service_proto_msgTypes[83] + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -3950,58 +5904,52 @@ func (x *PurgeInstanceFilter) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use PurgeInstanceFilter.ProtoReflect.Descriptor instead. -func (*PurgeInstanceFilter) Descriptor() ([]byte, []int) { - return file_orchestrator_service_proto_rawDescGZIP(), []int{56} -} - -func (x *PurgeInstanceFilter) GetCreatedTimeFrom() *timestamp.Timestamp { - if x != nil { - return x.CreatedTimeFrom - } - return nil +// Deprecated: Use QueryEntitiesResponse.ProtoReflect.Descriptor instead. +func (*QueryEntitiesResponse) Descriptor() ([]byte, []int) { + return file_orchestrator_service_proto_rawDescGZIP(), []int{83} } -func (x *PurgeInstanceFilter) GetCreatedTimeTo() *timestamp.Timestamp { +func (x *QueryEntitiesResponse) GetEntities() []*EntityMetadata { if x != nil { - return x.CreatedTimeTo + return x.Entities } return nil } -func (x *PurgeInstanceFilter) GetRuntimeStatus() []OrchestrationStatus { +func (x *QueryEntitiesResponse) GetContinuationToken() *wrappers.StringValue { if x != nil { - return x.RuntimeStatus + return x.ContinuationToken } return nil } -type PurgeInstancesResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - DeletedInstanceCount int32 `protobuf:"varint,1,opt,name=deletedInstanceCount,proto3" json:"deletedInstanceCount,omitempty"` +type EntityMetadata struct { + state protoimpl.MessageState `protogen:"open.v1"` + InstanceId string `protobuf:"bytes,1,opt,name=instanceId,proto3" json:"instanceId,omitempty"` + LastModifiedTime *timestamp.Timestamp `protobuf:"bytes,2,opt,name=lastModifiedTime,proto3" json:"lastModifiedTime,omitempty"` + BacklogQueueSize int32 `protobuf:"varint,3,opt,name=backlogQueueSize,proto3" json:"backlogQueueSize,omitempty"` + LockedBy *wrappers.StringValue `protobuf:"bytes,4,opt,name=lockedBy,proto3" json:"lockedBy,omitempty"` + SerializedState *wrappers.StringValue `protobuf:"bytes,5,opt,name=serializedState,proto3" json:"serializedState,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } -func (x *PurgeInstancesResponse) Reset() { - *x = PurgeInstancesResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_orchestrator_service_proto_msgTypes[57] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } +func (x *EntityMetadata) Reset() { + *x = EntityMetadata{} + mi := &file_orchestrator_service_proto_msgTypes[84] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } -func (x *PurgeInstancesResponse) String() string { +func (x *EntityMetadata) String() string { return protoimpl.X.MessageStringOf(x) } -func (*PurgeInstancesResponse) ProtoMessage() {} +func (*EntityMetadata) ProtoMessage() {} -func (x *PurgeInstancesResponse) ProtoReflect() protoreflect.Message { - mi := &file_orchestrator_service_proto_msgTypes[57] - if protoimpl.UnsafeEnabled && x != nil { +func (x *EntityMetadata) ProtoReflect() protoreflect.Message { + mi := &file_orchestrator_service_proto_msgTypes[84] + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -4011,44 +5959,71 @@ func (x *PurgeInstancesResponse) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use PurgeInstancesResponse.ProtoReflect.Descriptor instead. -func (*PurgeInstancesResponse) Descriptor() ([]byte, []int) { - return file_orchestrator_service_proto_rawDescGZIP(), []int{57} +// Deprecated: Use EntityMetadata.ProtoReflect.Descriptor instead. +func (*EntityMetadata) Descriptor() ([]byte, []int) { + return file_orchestrator_service_proto_rawDescGZIP(), []int{84} } -func (x *PurgeInstancesResponse) GetDeletedInstanceCount() int32 { +func (x *EntityMetadata) GetInstanceId() string { if x != nil { - return x.DeletedInstanceCount + return x.InstanceId } - return 0 + return "" } -type CreateTaskHubRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields +func (x *EntityMetadata) GetLastModifiedTime() *timestamp.Timestamp { + if x != nil { + return x.LastModifiedTime + } + return nil +} - RecreateIfExists bool `protobuf:"varint,1,opt,name=recreateIfExists,proto3" json:"recreateIfExists,omitempty"` +func (x *EntityMetadata) GetBacklogQueueSize() int32 { + if x != nil { + return x.BacklogQueueSize + } + return 0 } -func (x *CreateTaskHubRequest) Reset() { - *x = CreateTaskHubRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_orchestrator_service_proto_msgTypes[58] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) +func (x *EntityMetadata) GetLockedBy() *wrappers.StringValue { + if x != nil { + return x.LockedBy } + return nil } -func (x *CreateTaskHubRequest) String() string { +func (x *EntityMetadata) GetSerializedState() *wrappers.StringValue { + if x != nil { + return x.SerializedState + } + return nil +} + +type CleanEntityStorageRequest struct { + state protoimpl.MessageState `protogen:"open.v1"` + ContinuationToken *wrappers.StringValue `protobuf:"bytes,1,opt,name=continuationToken,proto3" json:"continuationToken,omitempty"` + RemoveEmptyEntities bool `protobuf:"varint,2,opt,name=removeEmptyEntities,proto3" json:"removeEmptyEntities,omitempty"` + ReleaseOrphanedLocks bool `protobuf:"varint,3,opt,name=releaseOrphanedLocks,proto3" json:"releaseOrphanedLocks,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *CleanEntityStorageRequest) Reset() { + *x = CleanEntityStorageRequest{} + mi := &file_orchestrator_service_proto_msgTypes[85] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *CleanEntityStorageRequest) String() string { return protoimpl.X.MessageStringOf(x) } -func (*CreateTaskHubRequest) ProtoMessage() {} +func (*CleanEntityStorageRequest) ProtoMessage() {} -func (x *CreateTaskHubRequest) ProtoReflect() protoreflect.Message { - mi := &file_orchestrator_service_proto_msgTypes[58] - if protoimpl.UnsafeEnabled && x != nil { +func (x *CleanEntityStorageRequest) ProtoReflect() protoreflect.Message { + mi := &file_orchestrator_service_proto_msgTypes[85] + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -4058,42 +6033,57 @@ func (x *CreateTaskHubRequest) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use CreateTaskHubRequest.ProtoReflect.Descriptor instead. -func (*CreateTaskHubRequest) Descriptor() ([]byte, []int) { - return file_orchestrator_service_proto_rawDescGZIP(), []int{58} +// Deprecated: Use CleanEntityStorageRequest.ProtoReflect.Descriptor instead. +func (*CleanEntityStorageRequest) Descriptor() ([]byte, []int) { + return file_orchestrator_service_proto_rawDescGZIP(), []int{85} } -func (x *CreateTaskHubRequest) GetRecreateIfExists() bool { +func (x *CleanEntityStorageRequest) GetContinuationToken() *wrappers.StringValue { if x != nil { - return x.RecreateIfExists + return x.ContinuationToken } - return false + return nil } -type CreateTaskHubResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields +func (x *CleanEntityStorageRequest) GetRemoveEmptyEntities() bool { + if x != nil { + return x.RemoveEmptyEntities + } + return false } -func (x *CreateTaskHubResponse) Reset() { - *x = CreateTaskHubResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_orchestrator_service_proto_msgTypes[59] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) +func (x *CleanEntityStorageRequest) GetReleaseOrphanedLocks() bool { + if x != nil { + return x.ReleaseOrphanedLocks } + return false } -func (x *CreateTaskHubResponse) String() string { +type CleanEntityStorageResponse struct { + state protoimpl.MessageState `protogen:"open.v1"` + ContinuationToken *wrappers.StringValue `protobuf:"bytes,1,opt,name=continuationToken,proto3" json:"continuationToken,omitempty"` + EmptyEntitiesRemoved int32 `protobuf:"varint,2,opt,name=emptyEntitiesRemoved,proto3" json:"emptyEntitiesRemoved,omitempty"` + OrphanedLocksReleased int32 `protobuf:"varint,3,opt,name=orphanedLocksReleased,proto3" json:"orphanedLocksReleased,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *CleanEntityStorageResponse) Reset() { + *x = CleanEntityStorageResponse{} + mi := &file_orchestrator_service_proto_msgTypes[86] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *CleanEntityStorageResponse) String() string { return protoimpl.X.MessageStringOf(x) } -func (*CreateTaskHubResponse) ProtoMessage() {} +func (*CleanEntityStorageResponse) ProtoMessage() {} -func (x *CreateTaskHubResponse) ProtoReflect() protoreflect.Message { - mi := &file_orchestrator_service_proto_msgTypes[59] - if protoimpl.UnsafeEnabled && x != nil { +func (x *CleanEntityStorageResponse) ProtoReflect() protoreflect.Message { + mi := &file_orchestrator_service_proto_msgTypes[86] + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -4103,73 +6093,55 @@ func (x *CreateTaskHubResponse) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use CreateTaskHubResponse.ProtoReflect.Descriptor instead. -func (*CreateTaskHubResponse) Descriptor() ([]byte, []int) { - return file_orchestrator_service_proto_rawDescGZIP(), []int{59} -} - -type DeleteTaskHubRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields +// Deprecated: Use CleanEntityStorageResponse.ProtoReflect.Descriptor instead. +func (*CleanEntityStorageResponse) Descriptor() ([]byte, []int) { + return file_orchestrator_service_proto_rawDescGZIP(), []int{86} } -func (x *DeleteTaskHubRequest) Reset() { - *x = DeleteTaskHubRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_orchestrator_service_proto_msgTypes[60] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) +func (x *CleanEntityStorageResponse) GetContinuationToken() *wrappers.StringValue { + if x != nil { + return x.ContinuationToken } + return nil } -func (x *DeleteTaskHubRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*DeleteTaskHubRequest) ProtoMessage() {} - -func (x *DeleteTaskHubRequest) ProtoReflect() protoreflect.Message { - mi := &file_orchestrator_service_proto_msgTypes[60] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms +func (x *CleanEntityStorageResponse) GetEmptyEntitiesRemoved() int32 { + if x != nil { + return x.EmptyEntitiesRemoved } - return mi.MessageOf(x) + return 0 } -// Deprecated: Use DeleteTaskHubRequest.ProtoReflect.Descriptor instead. -func (*DeleteTaskHubRequest) Descriptor() ([]byte, []int) { - return file_orchestrator_service_proto_rawDescGZIP(), []int{60} +func (x *CleanEntityStorageResponse) GetOrphanedLocksReleased() int32 { + if x != nil { + return x.OrphanedLocksReleased + } + return 0 } -type DeleteTaskHubResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields +type OrchestratorEntityParameters struct { + state protoimpl.MessageState `protogen:"open.v1"` + EntityMessageReorderWindow *duration.Duration `protobuf:"bytes,1,opt,name=entityMessageReorderWindow,proto3" json:"entityMessageReorderWindow,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } -func (x *DeleteTaskHubResponse) Reset() { - *x = DeleteTaskHubResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_orchestrator_service_proto_msgTypes[61] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } +func (x *OrchestratorEntityParameters) Reset() { + *x = OrchestratorEntityParameters{} + mi := &file_orchestrator_service_proto_msgTypes[87] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } -func (x *DeleteTaskHubResponse) String() string { +func (x *OrchestratorEntityParameters) String() string { return protoimpl.X.MessageStringOf(x) } -func (*DeleteTaskHubResponse) ProtoMessage() {} +func (*OrchestratorEntityParameters) ProtoMessage() {} -func (x *DeleteTaskHubResponse) ProtoReflect() protoreflect.Message { - mi := &file_orchestrator_service_proto_msgTypes[61] - if protoimpl.UnsafeEnabled && x != nil { +func (x *OrchestratorEntityParameters) ProtoReflect() protoreflect.Message { + mi := &file_orchestrator_service_proto_msgTypes[87] + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -4179,41 +6151,44 @@ func (x *DeleteTaskHubResponse) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use DeleteTaskHubResponse.ProtoReflect.Descriptor instead. -func (*DeleteTaskHubResponse) Descriptor() ([]byte, []int) { - return file_orchestrator_service_proto_rawDescGZIP(), []int{61} +// Deprecated: Use OrchestratorEntityParameters.ProtoReflect.Descriptor instead. +func (*OrchestratorEntityParameters) Descriptor() ([]byte, []int) { + return file_orchestrator_service_proto_rawDescGZIP(), []int{87} } -type SignalEntityRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields +func (x *OrchestratorEntityParameters) GetEntityMessageReorderWindow() *duration.Duration { + if x != nil { + return x.EntityMessageReorderWindow + } + return nil +} - InstanceId string `protobuf:"bytes,1,opt,name=instanceId,proto3" json:"instanceId,omitempty"` - Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` - Input *wrappers.StringValue `protobuf:"bytes,3,opt,name=input,proto3" json:"input,omitempty"` - RequestId string `protobuf:"bytes,4,opt,name=requestId,proto3" json:"requestId,omitempty"` - ScheduledTime *timestamp.Timestamp `protobuf:"bytes,5,opt,name=scheduledTime,proto3" json:"scheduledTime,omitempty"` +type EntityBatchRequest struct { + state protoimpl.MessageState `protogen:"open.v1"` + InstanceId string `protobuf:"bytes,1,opt,name=instanceId,proto3" json:"instanceId,omitempty"` + EntityState *wrappers.StringValue `protobuf:"bytes,2,opt,name=entityState,proto3" json:"entityState,omitempty"` + Operations []*OperationRequest `protobuf:"bytes,3,rep,name=operations,proto3" json:"operations,omitempty"` + Properties map[string]*_struct.Value `protobuf:"bytes,4,rep,name=properties,proto3" json:"properties,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } -func (x *SignalEntityRequest) Reset() { - *x = SignalEntityRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_orchestrator_service_proto_msgTypes[62] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } +func (x *EntityBatchRequest) Reset() { + *x = EntityBatchRequest{} + mi := &file_orchestrator_service_proto_msgTypes[88] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } -func (x *SignalEntityRequest) String() string { +func (x *EntityBatchRequest) String() string { return protoimpl.X.MessageStringOf(x) } -func (*SignalEntityRequest) ProtoMessage() {} +func (*EntityBatchRequest) ProtoMessage() {} -func (x *SignalEntityRequest) ProtoReflect() protoreflect.Message { - mi := &file_orchestrator_service_proto_msgTypes[62] - if protoimpl.UnsafeEnabled && x != nil { +func (x *EntityBatchRequest) ProtoReflect() protoreflect.Message { + mi := &file_orchestrator_service_proto_msgTypes[88] + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -4223,70 +6198,69 @@ func (x *SignalEntityRequest) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use SignalEntityRequest.ProtoReflect.Descriptor instead. -func (*SignalEntityRequest) Descriptor() ([]byte, []int) { - return file_orchestrator_service_proto_rawDescGZIP(), []int{62} -} - -func (x *SignalEntityRequest) GetInstanceId() string { - if x != nil { - return x.InstanceId - } - return "" +// Deprecated: Use EntityBatchRequest.ProtoReflect.Descriptor instead. +func (*EntityBatchRequest) Descriptor() ([]byte, []int) { + return file_orchestrator_service_proto_rawDescGZIP(), []int{88} } -func (x *SignalEntityRequest) GetName() string { +func (x *EntityBatchRequest) GetInstanceId() string { if x != nil { - return x.Name + return x.InstanceId } return "" } -func (x *SignalEntityRequest) GetInput() *wrappers.StringValue { +func (x *EntityBatchRequest) GetEntityState() *wrappers.StringValue { if x != nil { - return x.Input + return x.EntityState } return nil } -func (x *SignalEntityRequest) GetRequestId() string { +func (x *EntityBatchRequest) GetOperations() []*OperationRequest { if x != nil { - return x.RequestId + return x.Operations } - return "" + return nil } -func (x *SignalEntityRequest) GetScheduledTime() *timestamp.Timestamp { +func (x *EntityBatchRequest) GetProperties() map[string]*_struct.Value { if x != nil { - return x.ScheduledTime + return x.Properties } return nil } -type SignalEntityResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache +type EntityBatchResult struct { + state protoimpl.MessageState `protogen:"open.v1"` + Results []*OperationResult `protobuf:"bytes,1,rep,name=results,proto3" json:"results,omitempty"` + Actions []*OperationAction `protobuf:"bytes,2,rep,name=actions,proto3" json:"actions,omitempty"` + EntityState *wrappers.StringValue `protobuf:"bytes,3,opt,name=entityState,proto3" json:"entityState,omitempty"` + FailureDetails *TaskFailureDetails `protobuf:"bytes,4,opt,name=failureDetails,proto3" json:"failureDetails,omitempty"` + CompletionToken string `protobuf:"bytes,5,opt,name=completionToken,proto3" json:"completionToken,omitempty"` + 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 } -func (x *SignalEntityResponse) Reset() { - *x = SignalEntityResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_orchestrator_service_proto_msgTypes[63] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } +func (x *EntityBatchResult) Reset() { + *x = EntityBatchResult{} + mi := &file_orchestrator_service_proto_msgTypes[89] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } -func (x *SignalEntityResponse) String() string { +func (x *EntityBatchResult) String() string { return protoimpl.X.MessageStringOf(x) } -func (*SignalEntityResponse) ProtoMessage() {} +func (*EntityBatchResult) ProtoMessage() {} -func (x *SignalEntityResponse) ProtoReflect() protoreflect.Message { - mi := &file_orchestrator_service_proto_msgTypes[63] - if protoimpl.UnsafeEnabled && x != nil { +func (x *EntityBatchResult) ProtoReflect() protoreflect.Message { + mi := &file_orchestrator_service_proto_msgTypes[89] + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -4296,93 +6270,86 @@ func (x *SignalEntityResponse) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use SignalEntityResponse.ProtoReflect.Descriptor instead. -func (*SignalEntityResponse) Descriptor() ([]byte, []int) { - return file_orchestrator_service_proto_rawDescGZIP(), []int{63} +// Deprecated: Use EntityBatchResult.ProtoReflect.Descriptor instead. +func (*EntityBatchResult) Descriptor() ([]byte, []int) { + return file_orchestrator_service_proto_rawDescGZIP(), []int{89} } -type GetEntityRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - InstanceId string `protobuf:"bytes,1,opt,name=instanceId,proto3" json:"instanceId,omitempty"` - IncludeState bool `protobuf:"varint,2,opt,name=includeState,proto3" json:"includeState,omitempty"` +func (x *EntityBatchResult) GetResults() []*OperationResult { + if x != nil { + return x.Results + } + return nil } -func (x *GetEntityRequest) Reset() { - *x = GetEntityRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_orchestrator_service_proto_msgTypes[64] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) +func (x *EntityBatchResult) GetActions() []*OperationAction { + if x != nil { + return x.Actions } + return nil } -func (x *GetEntityRequest) String() string { - return protoimpl.X.MessageStringOf(x) +func (x *EntityBatchResult) GetEntityState() *wrappers.StringValue { + if x != nil { + return x.EntityState + } + return nil } -func (*GetEntityRequest) ProtoMessage() {} - -func (x *GetEntityRequest) ProtoReflect() protoreflect.Message { - mi := &file_orchestrator_service_proto_msgTypes[64] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms +func (x *EntityBatchResult) GetFailureDetails() *TaskFailureDetails { + if x != nil { + return x.FailureDetails } - return mi.MessageOf(x) + return nil } -// Deprecated: Use GetEntityRequest.ProtoReflect.Descriptor instead. -func (*GetEntityRequest) Descriptor() ([]byte, []int) { - return file_orchestrator_service_proto_rawDescGZIP(), []int{64} +func (x *EntityBatchResult) GetCompletionToken() string { + if x != nil { + return x.CompletionToken + } + return "" } -func (x *GetEntityRequest) GetInstanceId() string { +func (x *EntityBatchResult) GetOperationInfos() []*OperationInfo { if x != nil { - return x.InstanceId + return x.OperationInfos } - return "" + return nil } -func (x *GetEntityRequest) GetIncludeState() bool { +func (x *EntityBatchResult) GetRequiresState() bool { if x != nil { - return x.IncludeState + return x.RequiresState } return false } -type GetEntityResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Exists bool `protobuf:"varint,1,opt,name=exists,proto3" json:"exists,omitempty"` - Entity *EntityMetadata `protobuf:"bytes,2,opt,name=entity,proto3" json:"entity,omitempty"` +type EntityRequest struct { + state protoimpl.MessageState `protogen:"open.v1"` + InstanceId string `protobuf:"bytes,1,opt,name=instanceId,proto3" json:"instanceId,omitempty"` + ExecutionId string `protobuf:"bytes,2,opt,name=executionId,proto3" json:"executionId,omitempty"` + EntityState *wrappers.StringValue `protobuf:"bytes,3,opt,name=entityState,proto3" json:"entityState,omitempty"` // null if entity does not exist + OperationRequests []*HistoryEvent `protobuf:"bytes,4,rep,name=operationRequests,proto3" json:"operationRequests,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } -func (x *GetEntityResponse) Reset() { - *x = GetEntityResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_orchestrator_service_proto_msgTypes[65] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } +func (x *EntityRequest) Reset() { + *x = EntityRequest{} + mi := &file_orchestrator_service_proto_msgTypes[90] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } -func (x *GetEntityResponse) String() string { +func (x *EntityRequest) String() string { return protoimpl.X.MessageStringOf(x) } -func (*GetEntityResponse) ProtoMessage() {} +func (*EntityRequest) ProtoMessage() {} -func (x *GetEntityResponse) ProtoReflect() protoreflect.Message { - mi := &file_orchestrator_service_proto_msgTypes[65] - if protoimpl.UnsafeEnabled && x != nil { +func (x *EntityRequest) ProtoReflect() protoreflect.Message { + mi := &file_orchestrator_service_proto_msgTypes[90] + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -4392,57 +6359,65 @@ func (x *GetEntityResponse) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use GetEntityResponse.ProtoReflect.Descriptor instead. -func (*GetEntityResponse) Descriptor() ([]byte, []int) { - return file_orchestrator_service_proto_rawDescGZIP(), []int{65} +// Deprecated: Use EntityRequest.ProtoReflect.Descriptor instead. +func (*EntityRequest) Descriptor() ([]byte, []int) { + return file_orchestrator_service_proto_rawDescGZIP(), []int{90} } -func (x *GetEntityResponse) GetExists() bool { +func (x *EntityRequest) GetInstanceId() string { if x != nil { - return x.Exists + return x.InstanceId } - return false + return "" } -func (x *GetEntityResponse) GetEntity() *EntityMetadata { +func (x *EntityRequest) GetExecutionId() string { if x != nil { - return x.Entity + return x.ExecutionId + } + return "" +} + +func (x *EntityRequest) GetEntityState() *wrappers.StringValue { + if x != nil { + return x.EntityState } return nil } -type EntityQuery struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields +func (x *EntityRequest) GetOperationRequests() []*HistoryEvent { + if x != nil { + return x.OperationRequests + } + return nil +} - InstanceIdStartsWith *wrappers.StringValue `protobuf:"bytes,1,opt,name=instanceIdStartsWith,proto3" json:"instanceIdStartsWith,omitempty"` - LastModifiedFrom *timestamp.Timestamp `protobuf:"bytes,2,opt,name=lastModifiedFrom,proto3" json:"lastModifiedFrom,omitempty"` - LastModifiedTo *timestamp.Timestamp `protobuf:"bytes,3,opt,name=lastModifiedTo,proto3" json:"lastModifiedTo,omitempty"` - IncludeState bool `protobuf:"varint,4,opt,name=includeState,proto3" json:"includeState,omitempty"` - IncludeTransient bool `protobuf:"varint,5,opt,name=includeTransient,proto3" json:"includeTransient,omitempty"` - PageSize *wrappers.Int32Value `protobuf:"bytes,6,opt,name=pageSize,proto3" json:"pageSize,omitempty"` - ContinuationToken *wrappers.StringValue `protobuf:"bytes,7,opt,name=continuationToken,proto3" json:"continuationToken,omitempty"` +type OperationRequest struct { + state protoimpl.MessageState `protogen:"open.v1"` + Operation string `protobuf:"bytes,1,opt,name=operation,proto3" json:"operation,omitempty"` + RequestId string `protobuf:"bytes,2,opt,name=requestId,proto3" json:"requestId,omitempty"` + Input *wrappers.StringValue `protobuf:"bytes,3,opt,name=input,proto3" json:"input,omitempty"` + TraceContext *TraceContext `protobuf:"bytes,4,opt,name=traceContext,proto3" json:"traceContext,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } -func (x *EntityQuery) Reset() { - *x = EntityQuery{} - if protoimpl.UnsafeEnabled { - mi := &file_orchestrator_service_proto_msgTypes[66] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } +func (x *OperationRequest) Reset() { + *x = OperationRequest{} + mi := &file_orchestrator_service_proto_msgTypes[91] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } -func (x *EntityQuery) String() string { +func (x *OperationRequest) String() string { return protoimpl.X.MessageStringOf(x) } -func (*EntityQuery) ProtoMessage() {} +func (*OperationRequest) ProtoMessage() {} -func (x *EntityQuery) ProtoReflect() protoreflect.Message { - mi := &file_orchestrator_service_proto_msgTypes[66] - if protoimpl.UnsafeEnabled && x != nil { +func (x *OperationRequest) ProtoReflect() protoreflect.Message { + mi := &file_orchestrator_service_proto_msgTypes[91] + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -4452,86 +6427,66 @@ func (x *EntityQuery) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use EntityQuery.ProtoReflect.Descriptor instead. -func (*EntityQuery) Descriptor() ([]byte, []int) { - return file_orchestrator_service_proto_rawDescGZIP(), []int{66} -} - -func (x *EntityQuery) GetInstanceIdStartsWith() *wrappers.StringValue { - if x != nil { - return x.InstanceIdStartsWith - } - return nil -} - -func (x *EntityQuery) GetLastModifiedFrom() *timestamp.Timestamp { - if x != nil { - return x.LastModifiedFrom - } - return nil -} - -func (x *EntityQuery) GetLastModifiedTo() *timestamp.Timestamp { - if x != nil { - return x.LastModifiedTo - } - return nil +// Deprecated: Use OperationRequest.ProtoReflect.Descriptor instead. +func (*OperationRequest) Descriptor() ([]byte, []int) { + return file_orchestrator_service_proto_rawDescGZIP(), []int{91} } -func (x *EntityQuery) GetIncludeState() bool { +func (x *OperationRequest) GetOperation() string { if x != nil { - return x.IncludeState + return x.Operation } - return false + return "" } -func (x *EntityQuery) GetIncludeTransient() bool { +func (x *OperationRequest) GetRequestId() string { if x != nil { - return x.IncludeTransient + return x.RequestId } - return false + return "" } -func (x *EntityQuery) GetPageSize() *wrappers.Int32Value { +func (x *OperationRequest) GetInput() *wrappers.StringValue { if x != nil { - return x.PageSize + return x.Input } return nil } -func (x *EntityQuery) GetContinuationToken() *wrappers.StringValue { +func (x *OperationRequest) GetTraceContext() *TraceContext { if x != nil { - return x.ContinuationToken + return x.TraceContext } return nil } -type QueryEntitiesRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache +type OperationResult struct { + state protoimpl.MessageState `protogen:"open.v1"` + // Types that are valid to be assigned to ResultType: + // + // *OperationResult_Success + // *OperationResult_Failure + ResultType isOperationResult_ResultType `protobuf_oneof:"resultType"` unknownFields protoimpl.UnknownFields - - Query *EntityQuery `protobuf:"bytes,1,opt,name=query,proto3" json:"query,omitempty"` + sizeCache protoimpl.SizeCache } -func (x *QueryEntitiesRequest) Reset() { - *x = QueryEntitiesRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_orchestrator_service_proto_msgTypes[67] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } +func (x *OperationResult) Reset() { + *x = OperationResult{} + mi := &file_orchestrator_service_proto_msgTypes[92] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } -func (x *QueryEntitiesRequest) String() string { +func (x *OperationResult) String() string { return protoimpl.X.MessageStringOf(x) } -func (*QueryEntitiesRequest) ProtoMessage() {} +func (*OperationResult) ProtoMessage() {} -func (x *QueryEntitiesRequest) ProtoReflect() protoreflect.Message { - mi := &file_orchestrator_service_proto_msgTypes[67] - if protoimpl.UnsafeEnabled && x != nil { +func (x *OperationResult) ProtoReflect() protoreflect.Message { + mi := &file_orchestrator_service_proto_msgTypes[92] + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -4541,45 +6496,76 @@ func (x *QueryEntitiesRequest) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use QueryEntitiesRequest.ProtoReflect.Descriptor instead. -func (*QueryEntitiesRequest) Descriptor() ([]byte, []int) { - return file_orchestrator_service_proto_rawDescGZIP(), []int{67} +// Deprecated: Use OperationResult.ProtoReflect.Descriptor instead. +func (*OperationResult) Descriptor() ([]byte, []int) { + return file_orchestrator_service_proto_rawDescGZIP(), []int{92} } -func (x *QueryEntitiesRequest) GetQuery() *EntityQuery { +func (x *OperationResult) GetResultType() isOperationResult_ResultType { if x != nil { - return x.Query + return x.ResultType } return nil } -type QueryEntitiesResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Entities []*EntityMetadata `protobuf:"bytes,1,rep,name=entities,proto3" json:"entities,omitempty"` - ContinuationToken *wrappers.StringValue `protobuf:"bytes,2,opt,name=continuationToken,proto3" json:"continuationToken,omitempty"` +func (x *OperationResult) GetSuccess() *OperationResultSuccess { + if x != nil { + if x, ok := x.ResultType.(*OperationResult_Success); ok { + return x.Success + } + } + return nil } -func (x *QueryEntitiesResponse) Reset() { - *x = QueryEntitiesResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_orchestrator_service_proto_msgTypes[68] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) +func (x *OperationResult) GetFailure() *OperationResultFailure { + if x != nil { + if x, ok := x.ResultType.(*OperationResult_Failure); ok { + return x.Failure + } } + return nil } -func (x *QueryEntitiesResponse) String() string { +type isOperationResult_ResultType interface { + isOperationResult_ResultType() +} + +type OperationResult_Success struct { + Success *OperationResultSuccess `protobuf:"bytes,1,opt,name=success,proto3,oneof"` +} + +type OperationResult_Failure struct { + Failure *OperationResultFailure `protobuf:"bytes,2,opt,name=failure,proto3,oneof"` +} + +func (*OperationResult_Success) isOperationResult_ResultType() {} + +func (*OperationResult_Failure) isOperationResult_ResultType() {} + +type OperationInfo struct { + state protoimpl.MessageState `protogen:"open.v1"` + RequestId string `protobuf:"bytes,1,opt,name=requestId,proto3" json:"requestId,omitempty"` + ResponseDestination *OrchestrationInstance `protobuf:"bytes,2,opt,name=responseDestination,proto3" json:"responseDestination,omitempty"` // null for signals + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *OperationInfo) Reset() { + *x = OperationInfo{} + mi := &file_orchestrator_service_proto_msgTypes[93] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *OperationInfo) String() string { return protoimpl.X.MessageStringOf(x) } -func (*QueryEntitiesResponse) ProtoMessage() {} +func (*OperationInfo) ProtoMessage() {} -func (x *QueryEntitiesResponse) ProtoReflect() protoreflect.Message { - mi := &file_orchestrator_service_proto_msgTypes[68] - if protoimpl.UnsafeEnabled && x != nil { +func (x *OperationInfo) ProtoReflect() protoreflect.Message { + mi := &file_orchestrator_service_proto_msgTypes[93] + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -4589,55 +6575,50 @@ func (x *QueryEntitiesResponse) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use QueryEntitiesResponse.ProtoReflect.Descriptor instead. -func (*QueryEntitiesResponse) Descriptor() ([]byte, []int) { - return file_orchestrator_service_proto_rawDescGZIP(), []int{68} +// Deprecated: Use OperationInfo.ProtoReflect.Descriptor instead. +func (*OperationInfo) Descriptor() ([]byte, []int) { + return file_orchestrator_service_proto_rawDescGZIP(), []int{93} } -func (x *QueryEntitiesResponse) GetEntities() []*EntityMetadata { +func (x *OperationInfo) GetRequestId() string { if x != nil { - return x.Entities + return x.RequestId } - return nil + return "" } -func (x *QueryEntitiesResponse) GetContinuationToken() *wrappers.StringValue { +func (x *OperationInfo) GetResponseDestination() *OrchestrationInstance { if x != nil { - return x.ContinuationToken + return x.ResponseDestination } return nil } -type EntityMetadata struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache +type OperationResultSuccess struct { + state protoimpl.MessageState `protogen:"open.v1"` + Result *wrappers.StringValue `protobuf:"bytes,1,opt,name=result,proto3" json:"result,omitempty"` + StartTimeUtc *timestamp.Timestamp `protobuf:"bytes,2,opt,name=startTimeUtc,proto3" json:"startTimeUtc,omitempty"` + EndTimeUtc *timestamp.Timestamp `protobuf:"bytes,3,opt,name=endTimeUtc,proto3" json:"endTimeUtc,omitempty"` unknownFields protoimpl.UnknownFields - - InstanceId string `protobuf:"bytes,1,opt,name=instanceId,proto3" json:"instanceId,omitempty"` - LastModifiedTime *timestamp.Timestamp `protobuf:"bytes,2,opt,name=lastModifiedTime,proto3" json:"lastModifiedTime,omitempty"` - BacklogQueueSize int32 `protobuf:"varint,3,opt,name=backlogQueueSize,proto3" json:"backlogQueueSize,omitempty"` - LockedBy *wrappers.StringValue `protobuf:"bytes,4,opt,name=lockedBy,proto3" json:"lockedBy,omitempty"` - SerializedState *wrappers.StringValue `protobuf:"bytes,5,opt,name=serializedState,proto3" json:"serializedState,omitempty"` + sizeCache protoimpl.SizeCache } -func (x *EntityMetadata) Reset() { - *x = EntityMetadata{} - if protoimpl.UnsafeEnabled { - mi := &file_orchestrator_service_proto_msgTypes[69] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } +func (x *OperationResultSuccess) Reset() { + *x = OperationResultSuccess{} + mi := &file_orchestrator_service_proto_msgTypes[94] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } -func (x *EntityMetadata) String() string { +func (x *OperationResultSuccess) String() string { return protoimpl.X.MessageStringOf(x) } -func (*EntityMetadata) ProtoMessage() {} +func (*OperationResultSuccess) ProtoMessage() {} -func (x *EntityMetadata) ProtoReflect() protoreflect.Message { - mi := &file_orchestrator_service_proto_msgTypes[69] - if protoimpl.UnsafeEnabled && x != nil { +func (x *OperationResultSuccess) ProtoReflect() protoreflect.Message { + mi := &file_orchestrator_service_proto_msgTypes[94] + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -4647,74 +6628,57 @@ func (x *EntityMetadata) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use EntityMetadata.ProtoReflect.Descriptor instead. -func (*EntityMetadata) Descriptor() ([]byte, []int) { - return file_orchestrator_service_proto_rawDescGZIP(), []int{69} -} - -func (x *EntityMetadata) GetInstanceId() string { - if x != nil { - return x.InstanceId - } - return "" +// Deprecated: Use OperationResultSuccess.ProtoReflect.Descriptor instead. +func (*OperationResultSuccess) Descriptor() ([]byte, []int) { + return file_orchestrator_service_proto_rawDescGZIP(), []int{94} } -func (x *EntityMetadata) GetLastModifiedTime() *timestamp.Timestamp { +func (x *OperationResultSuccess) GetResult() *wrappers.StringValue { if x != nil { - return x.LastModifiedTime + return x.Result } return nil } -func (x *EntityMetadata) GetBacklogQueueSize() int32 { - if x != nil { - return x.BacklogQueueSize - } - return 0 -} - -func (x *EntityMetadata) GetLockedBy() *wrappers.StringValue { +func (x *OperationResultSuccess) GetStartTimeUtc() *timestamp.Timestamp { if x != nil { - return x.LockedBy + return x.StartTimeUtc } return nil } -func (x *EntityMetadata) GetSerializedState() *wrappers.StringValue { +func (x *OperationResultSuccess) GetEndTimeUtc() *timestamp.Timestamp { if x != nil { - return x.SerializedState + return x.EndTimeUtc } return nil } -type CleanEntityStorageRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - ContinuationToken *wrappers.StringValue `protobuf:"bytes,1,opt,name=continuationToken,proto3" json:"continuationToken,omitempty"` - RemoveEmptyEntities bool `protobuf:"varint,2,opt,name=removeEmptyEntities,proto3" json:"removeEmptyEntities,omitempty"` - ReleaseOrphanedLocks bool `protobuf:"varint,3,opt,name=releaseOrphanedLocks,proto3" json:"releaseOrphanedLocks,omitempty"` +type OperationResultFailure struct { + state protoimpl.MessageState `protogen:"open.v1"` + FailureDetails *TaskFailureDetails `protobuf:"bytes,1,opt,name=failureDetails,proto3" json:"failureDetails,omitempty"` + StartTimeUtc *timestamp.Timestamp `protobuf:"bytes,2,opt,name=startTimeUtc,proto3" json:"startTimeUtc,omitempty"` + EndTimeUtc *timestamp.Timestamp `protobuf:"bytes,3,opt,name=endTimeUtc,proto3" json:"endTimeUtc,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } -func (x *CleanEntityStorageRequest) Reset() { - *x = CleanEntityStorageRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_orchestrator_service_proto_msgTypes[70] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } +func (x *OperationResultFailure) Reset() { + *x = OperationResultFailure{} + mi := &file_orchestrator_service_proto_msgTypes[95] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } -func (x *CleanEntityStorageRequest) String() string { +func (x *OperationResultFailure) String() string { return protoimpl.X.MessageStringOf(x) } -func (*CleanEntityStorageRequest) ProtoMessage() {} +func (*OperationResultFailure) ProtoMessage() {} -func (x *CleanEntityStorageRequest) ProtoReflect() protoreflect.Message { - mi := &file_orchestrator_service_proto_msgTypes[70] - if protoimpl.UnsafeEnabled && x != nil { +func (x *OperationResultFailure) ProtoReflect() protoreflect.Message { + mi := &file_orchestrator_service_proto_msgTypes[95] + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -4724,60 +6688,60 @@ func (x *CleanEntityStorageRequest) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use CleanEntityStorageRequest.ProtoReflect.Descriptor instead. -func (*CleanEntityStorageRequest) Descriptor() ([]byte, []int) { - return file_orchestrator_service_proto_rawDescGZIP(), []int{70} +// Deprecated: Use OperationResultFailure.ProtoReflect.Descriptor instead. +func (*OperationResultFailure) Descriptor() ([]byte, []int) { + return file_orchestrator_service_proto_rawDescGZIP(), []int{95} } -func (x *CleanEntityStorageRequest) GetContinuationToken() *wrappers.StringValue { +func (x *OperationResultFailure) GetFailureDetails() *TaskFailureDetails { if x != nil { - return x.ContinuationToken + return x.FailureDetails } return nil } -func (x *CleanEntityStorageRequest) GetRemoveEmptyEntities() bool { +func (x *OperationResultFailure) GetStartTimeUtc() *timestamp.Timestamp { if x != nil { - return x.RemoveEmptyEntities + return x.StartTimeUtc } - return false + return nil } -func (x *CleanEntityStorageRequest) GetReleaseOrphanedLocks() bool { +func (x *OperationResultFailure) GetEndTimeUtc() *timestamp.Timestamp { if x != nil { - return x.ReleaseOrphanedLocks + return x.EndTimeUtc } - return false + return nil } -type CleanEntityStorageResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - ContinuationToken *wrappers.StringValue `protobuf:"bytes,1,opt,name=continuationToken,proto3" json:"continuationToken,omitempty"` - EmptyEntitiesRemoved int32 `protobuf:"varint,2,opt,name=emptyEntitiesRemoved,proto3" json:"emptyEntitiesRemoved,omitempty"` - OrphanedLocksReleased int32 `protobuf:"varint,3,opt,name=orphanedLocksReleased,proto3" json:"orphanedLocksReleased,omitempty"` +type OperationAction struct { + state protoimpl.MessageState `protogen:"open.v1"` + Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` + // Types that are valid to be assigned to OperationActionType: + // + // *OperationAction_SendSignal + // *OperationAction_StartNewOrchestration + OperationActionType isOperationAction_OperationActionType `protobuf_oneof:"operationActionType"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } -func (x *CleanEntityStorageResponse) Reset() { - *x = CleanEntityStorageResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_orchestrator_service_proto_msgTypes[71] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } +func (x *OperationAction) Reset() { + *x = OperationAction{} + mi := &file_orchestrator_service_proto_msgTypes[96] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } -func (x *CleanEntityStorageResponse) String() string { +func (x *OperationAction) String() string { return protoimpl.X.MessageStringOf(x) } -func (*CleanEntityStorageResponse) ProtoMessage() {} +func (*OperationAction) ProtoMessage() {} -func (x *CleanEntityStorageResponse) ProtoReflect() protoreflect.Message { - mi := &file_orchestrator_service_proto_msgTypes[71] - if protoimpl.UnsafeEnabled && x != nil { +func (x *OperationAction) ProtoReflect() protoreflect.Message { + mi := &file_orchestrator_service_proto_msgTypes[96] + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -4787,58 +6751,87 @@ func (x *CleanEntityStorageResponse) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use CleanEntityStorageResponse.ProtoReflect.Descriptor instead. -func (*CleanEntityStorageResponse) Descriptor() ([]byte, []int) { - return file_orchestrator_service_proto_rawDescGZIP(), []int{71} +// Deprecated: Use OperationAction.ProtoReflect.Descriptor instead. +func (*OperationAction) Descriptor() ([]byte, []int) { + return file_orchestrator_service_proto_rawDescGZIP(), []int{96} } -func (x *CleanEntityStorageResponse) GetContinuationToken() *wrappers.StringValue { +func (x *OperationAction) GetId() int32 { if x != nil { - return x.ContinuationToken + return x.Id + } + return 0 +} + +func (x *OperationAction) GetOperationActionType() isOperationAction_OperationActionType { + if x != nil { + return x.OperationActionType } return nil } -func (x *CleanEntityStorageResponse) GetEmptyEntitiesRemoved() int32 { +func (x *OperationAction) GetSendSignal() *SendSignalAction { if x != nil { - return x.EmptyEntitiesRemoved + if x, ok := x.OperationActionType.(*OperationAction_SendSignal); ok { + return x.SendSignal + } } - return 0 + return nil } -func (x *CleanEntityStorageResponse) GetOrphanedLocksReleased() int32 { +func (x *OperationAction) GetStartNewOrchestration() *StartNewOrchestrationAction { if x != nil { - return x.OrphanedLocksReleased + if x, ok := x.OperationActionType.(*OperationAction_StartNewOrchestration); ok { + return x.StartNewOrchestration + } } - return 0 + return nil } -type OrchestratorEntityParameters struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields +type isOperationAction_OperationActionType interface { + isOperationAction_OperationActionType() +} - EntityMessageReorderWindow *duration.Duration `protobuf:"bytes,1,opt,name=entityMessageReorderWindow,proto3" json:"entityMessageReorderWindow,omitempty"` +type OperationAction_SendSignal struct { + SendSignal *SendSignalAction `protobuf:"bytes,2,opt,name=sendSignal,proto3,oneof"` } -func (x *OrchestratorEntityParameters) Reset() { - *x = OrchestratorEntityParameters{} - if protoimpl.UnsafeEnabled { - mi := &file_orchestrator_service_proto_msgTypes[72] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } +type OperationAction_StartNewOrchestration struct { + StartNewOrchestration *StartNewOrchestrationAction `protobuf:"bytes,3,opt,name=startNewOrchestration,proto3,oneof"` } -func (x *OrchestratorEntityParameters) String() string { +func (*OperationAction_SendSignal) isOperationAction_OperationActionType() {} + +func (*OperationAction_StartNewOrchestration) isOperationAction_OperationActionType() {} + +type SendSignalAction struct { + state protoimpl.MessageState `protogen:"open.v1"` + InstanceId string `protobuf:"bytes,1,opt,name=instanceId,proto3" json:"instanceId,omitempty"` + Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` + Input *wrappers.StringValue `protobuf:"bytes,3,opt,name=input,proto3" json:"input,omitempty"` + ScheduledTime *timestamp.Timestamp `protobuf:"bytes,4,opt,name=scheduledTime,proto3" json:"scheduledTime,omitempty"` + RequestTime *timestamp.Timestamp `protobuf:"bytes,5,opt,name=requestTime,proto3" json:"requestTime,omitempty"` + ParentTraceContext *TraceContext `protobuf:"bytes,6,opt,name=parentTraceContext,proto3" json:"parentTraceContext,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *SendSignalAction) Reset() { + *x = SendSignalAction{} + mi := &file_orchestrator_service_proto_msgTypes[97] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *SendSignalAction) String() string { return protoimpl.X.MessageStringOf(x) } -func (*OrchestratorEntityParameters) ProtoMessage() {} +func (*SendSignalAction) ProtoMessage() {} -func (x *OrchestratorEntityParameters) ProtoReflect() protoreflect.Message { - mi := &file_orchestrator_service_proto_msgTypes[72] - if protoimpl.UnsafeEnabled && x != nil { +func (x *SendSignalAction) ProtoReflect() protoreflect.Message { + mi := &file_orchestrator_service_proto_msgTypes[97] + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -4848,46 +6841,82 @@ func (x *OrchestratorEntityParameters) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use OrchestratorEntityParameters.ProtoReflect.Descriptor instead. -func (*OrchestratorEntityParameters) Descriptor() ([]byte, []int) { - return file_orchestrator_service_proto_rawDescGZIP(), []int{72} +// Deprecated: Use SendSignalAction.ProtoReflect.Descriptor instead. +func (*SendSignalAction) Descriptor() ([]byte, []int) { + return file_orchestrator_service_proto_rawDescGZIP(), []int{97} } -func (x *OrchestratorEntityParameters) GetEntityMessageReorderWindow() *duration.Duration { +func (x *SendSignalAction) GetInstanceId() string { if x != nil { - return x.EntityMessageReorderWindow + return x.InstanceId + } + return "" +} + +func (x *SendSignalAction) GetName() string { + if x != nil { + return x.Name + } + return "" +} + +func (x *SendSignalAction) GetInput() *wrappers.StringValue { + if x != nil { + return x.Input } return nil } -type EntityBatchRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields +func (x *SendSignalAction) GetScheduledTime() *timestamp.Timestamp { + if x != nil { + return x.ScheduledTime + } + return nil +} - InstanceId string `protobuf:"bytes,1,opt,name=instanceId,proto3" json:"instanceId,omitempty"` - EntityState *wrappers.StringValue `protobuf:"bytes,2,opt,name=entityState,proto3" json:"entityState,omitempty"` - Operations []*OperationRequest `protobuf:"bytes,3,rep,name=operations,proto3" json:"operations,omitempty"` +func (x *SendSignalAction) GetRequestTime() *timestamp.Timestamp { + if x != nil { + return x.RequestTime + } + return nil } -func (x *EntityBatchRequest) Reset() { - *x = EntityBatchRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_orchestrator_service_proto_msgTypes[73] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) +func (x *SendSignalAction) GetParentTraceContext() *TraceContext { + if x != nil { + return x.ParentTraceContext } + return nil } -func (x *EntityBatchRequest) String() string { +type StartNewOrchestrationAction struct { + state protoimpl.MessageState `protogen:"open.v1"` + InstanceId string `protobuf:"bytes,1,opt,name=instanceId,proto3" json:"instanceId,omitempty"` + Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` + Version *wrappers.StringValue `protobuf:"bytes,3,opt,name=version,proto3" json:"version,omitempty"` + Input *wrappers.StringValue `protobuf:"bytes,4,opt,name=input,proto3" json:"input,omitempty"` + ScheduledTime *timestamp.Timestamp `protobuf:"bytes,5,opt,name=scheduledTime,proto3" json:"scheduledTime,omitempty"` + RequestTime *timestamp.Timestamp `protobuf:"bytes,6,opt,name=requestTime,proto3" json:"requestTime,omitempty"` + ParentTraceContext *TraceContext `protobuf:"bytes,7,opt,name=parentTraceContext,proto3" json:"parentTraceContext,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *StartNewOrchestrationAction) Reset() { + *x = StartNewOrchestrationAction{} + mi := &file_orchestrator_service_proto_msgTypes[98] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *StartNewOrchestrationAction) String() string { return protoimpl.X.MessageStringOf(x) } -func (*EntityBatchRequest) ProtoMessage() {} +func (*StartNewOrchestrationAction) ProtoMessage() {} -func (x *EntityBatchRequest) ProtoReflect() protoreflect.Message { - mi := &file_orchestrator_service_proto_msgTypes[73] - if protoimpl.UnsafeEnabled && x != nil { +func (x *StartNewOrchestrationAction) ProtoReflect() protoreflect.Message { + mi := &file_orchestrator_service_proto_msgTypes[98] + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -4897,61 +6926,83 @@ func (x *EntityBatchRequest) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use EntityBatchRequest.ProtoReflect.Descriptor instead. -func (*EntityBatchRequest) Descriptor() ([]byte, []int) { - return file_orchestrator_service_proto_rawDescGZIP(), []int{73} +// Deprecated: Use StartNewOrchestrationAction.ProtoReflect.Descriptor instead. +func (*StartNewOrchestrationAction) Descriptor() ([]byte, []int) { + return file_orchestrator_service_proto_rawDescGZIP(), []int{98} +} + +func (x *StartNewOrchestrationAction) GetInstanceId() string { + if x != nil { + return x.InstanceId + } + return "" +} + +func (x *StartNewOrchestrationAction) GetName() string { + if x != nil { + return x.Name + } + return "" +} + +func (x *StartNewOrchestrationAction) GetVersion() *wrappers.StringValue { + if x != nil { + return x.Version + } + return nil } -func (x *EntityBatchRequest) GetInstanceId() string { +func (x *StartNewOrchestrationAction) GetInput() *wrappers.StringValue { if x != nil { - return x.InstanceId + return x.Input } - return "" + return nil } -func (x *EntityBatchRequest) GetEntityState() *wrappers.StringValue { +func (x *StartNewOrchestrationAction) GetScheduledTime() *timestamp.Timestamp { if x != nil { - return x.EntityState + return x.ScheduledTime } return nil } -func (x *EntityBatchRequest) GetOperations() []*OperationRequest { +func (x *StartNewOrchestrationAction) GetRequestTime() *timestamp.Timestamp { if x != nil { - return x.Operations + return x.RequestTime } return nil } -type EntityBatchResult struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields +func (x *StartNewOrchestrationAction) GetParentTraceContext() *TraceContext { + if x != nil { + return x.ParentTraceContext + } + return nil +} - Results []*OperationResult `protobuf:"bytes,1,rep,name=results,proto3" json:"results,omitempty"` - Actions []*OperationAction `protobuf:"bytes,2,rep,name=actions,proto3" json:"actions,omitempty"` - EntityState *wrappers.StringValue `protobuf:"bytes,3,opt,name=entityState,proto3" json:"entityState,omitempty"` - FailureDetails *TaskFailureDetails `protobuf:"bytes,4,opt,name=failureDetails,proto3" json:"failureDetails,omitempty"` +type AbandonActivityTaskRequest 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 *EntityBatchResult) Reset() { - *x = EntityBatchResult{} - if protoimpl.UnsafeEnabled { - mi := &file_orchestrator_service_proto_msgTypes[74] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } +func (x *AbandonActivityTaskRequest) Reset() { + *x = AbandonActivityTaskRequest{} + mi := &file_orchestrator_service_proto_msgTypes[99] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } -func (x *EntityBatchResult) String() string { +func (x *AbandonActivityTaskRequest) String() string { return protoimpl.X.MessageStringOf(x) } -func (*EntityBatchResult) ProtoMessage() {} +func (*AbandonActivityTaskRequest) ProtoMessage() {} -func (x *EntityBatchResult) ProtoReflect() protoreflect.Message { - mi := &file_orchestrator_service_proto_msgTypes[74] - if protoimpl.UnsafeEnabled && x != nil { +func (x *AbandonActivityTaskRequest) ProtoReflect() protoreflect.Message { + mi := &file_orchestrator_service_proto_msgTypes[99] + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -4961,67 +7012,77 @@ func (x *EntityBatchResult) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use EntityBatchResult.ProtoReflect.Descriptor instead. -func (*EntityBatchResult) Descriptor() ([]byte, []int) { - return file_orchestrator_service_proto_rawDescGZIP(), []int{74} +// Deprecated: Use AbandonActivityTaskRequest.ProtoReflect.Descriptor instead. +func (*AbandonActivityTaskRequest) Descriptor() ([]byte, []int) { + return file_orchestrator_service_proto_rawDescGZIP(), []int{99} } -func (x *EntityBatchResult) GetResults() []*OperationResult { +func (x *AbandonActivityTaskRequest) GetCompletionToken() string { if x != nil { - return x.Results + return x.CompletionToken } - return nil + return "" } -func (x *EntityBatchResult) GetActions() []*OperationAction { - if x != nil { - return x.Actions - } - return nil +type AbandonActivityTaskResponse struct { + state protoimpl.MessageState `protogen:"open.v1"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } -func (x *EntityBatchResult) GetEntityState() *wrappers.StringValue { - if x != nil { - return x.EntityState - } - return nil +func (x *AbandonActivityTaskResponse) Reset() { + *x = AbandonActivityTaskResponse{} + mi := &file_orchestrator_service_proto_msgTypes[100] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } -func (x *EntityBatchResult) GetFailureDetails() *TaskFailureDetails { +func (x *AbandonActivityTaskResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*AbandonActivityTaskResponse) ProtoMessage() {} + +func (x *AbandonActivityTaskResponse) ProtoReflect() protoreflect.Message { + mi := &file_orchestrator_service_proto_msgTypes[100] if x != nil { - return x.FailureDetails + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } - return nil + return mi.MessageOf(x) } -type OperationRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields +// Deprecated: Use AbandonActivityTaskResponse.ProtoReflect.Descriptor instead. +func (*AbandonActivityTaskResponse) Descriptor() ([]byte, []int) { + return file_orchestrator_service_proto_rawDescGZIP(), []int{100} +} - Operation string `protobuf:"bytes,1,opt,name=operation,proto3" json:"operation,omitempty"` - RequestId string `protobuf:"bytes,2,opt,name=requestId,proto3" json:"requestId,omitempty"` - Input *wrappers.StringValue `protobuf:"bytes,3,opt,name=input,proto3" json:"input,omitempty"` +type AbandonOrchestrationTaskRequest 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 *OperationRequest) Reset() { - *x = OperationRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_orchestrator_service_proto_msgTypes[75] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } +func (x *AbandonOrchestrationTaskRequest) Reset() { + *x = AbandonOrchestrationTaskRequest{} + mi := &file_orchestrator_service_proto_msgTypes[101] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } -func (x *OperationRequest) String() string { +func (x *AbandonOrchestrationTaskRequest) String() string { return protoimpl.X.MessageStringOf(x) } -func (*OperationRequest) ProtoMessage() {} +func (*AbandonOrchestrationTaskRequest) ProtoMessage() {} -func (x *OperationRequest) ProtoReflect() protoreflect.Message { - mi := &file_orchestrator_service_proto_msgTypes[75] - if protoimpl.UnsafeEnabled && x != nil { +func (x *AbandonOrchestrationTaskRequest) ProtoReflect() protoreflect.Message { + mi := &file_orchestrator_service_proto_msgTypes[101] + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -5031,62 +7092,77 @@ func (x *OperationRequest) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use OperationRequest.ProtoReflect.Descriptor instead. -func (*OperationRequest) Descriptor() ([]byte, []int) { - return file_orchestrator_service_proto_rawDescGZIP(), []int{75} +// Deprecated: Use AbandonOrchestrationTaskRequest.ProtoReflect.Descriptor instead. +func (*AbandonOrchestrationTaskRequest) Descriptor() ([]byte, []int) { + return file_orchestrator_service_proto_rawDescGZIP(), []int{101} } -func (x *OperationRequest) GetOperation() string { +func (x *AbandonOrchestrationTaskRequest) GetCompletionToken() string { if x != nil { - return x.Operation + return x.CompletionToken } return "" } -func (x *OperationRequest) GetRequestId() string { - if x != nil { - return x.RequestId - } - return "" +type AbandonOrchestrationTaskResponse struct { + state protoimpl.MessageState `protogen:"open.v1"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } -func (x *OperationRequest) GetInput() *wrappers.StringValue { +func (x *AbandonOrchestrationTaskResponse) Reset() { + *x = AbandonOrchestrationTaskResponse{} + mi := &file_orchestrator_service_proto_msgTypes[102] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *AbandonOrchestrationTaskResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*AbandonOrchestrationTaskResponse) ProtoMessage() {} + +func (x *AbandonOrchestrationTaskResponse) ProtoReflect() protoreflect.Message { + mi := &file_orchestrator_service_proto_msgTypes[102] if x != nil { - return x.Input + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } - return nil + return mi.MessageOf(x) } -type OperationResult struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields +// Deprecated: Use AbandonOrchestrationTaskResponse.ProtoReflect.Descriptor instead. +func (*AbandonOrchestrationTaskResponse) Descriptor() ([]byte, []int) { + return file_orchestrator_service_proto_rawDescGZIP(), []int{102} +} - // Types that are assignable to ResultType: - // - // *OperationResult_Success - // *OperationResult_Failure - ResultType isOperationResult_ResultType `protobuf_oneof:"resultType"` +type AbandonEntityTaskRequest 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 *OperationResult) Reset() { - *x = OperationResult{} - if protoimpl.UnsafeEnabled { - mi := &file_orchestrator_service_proto_msgTypes[76] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } +func (x *AbandonEntityTaskRequest) Reset() { + *x = AbandonEntityTaskRequest{} + mi := &file_orchestrator_service_proto_msgTypes[103] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } -func (x *OperationResult) String() string { +func (x *AbandonEntityTaskRequest) String() string { return protoimpl.X.MessageStringOf(x) } -func (*OperationResult) ProtoMessage() {} +func (*AbandonEntityTaskRequest) ProtoMessage() {} -func (x *OperationResult) ProtoReflect() protoreflect.Message { - mi := &file_orchestrator_service_proto_msgTypes[76] - if protoimpl.UnsafeEnabled && x != nil { +func (x *AbandonEntityTaskRequest) ProtoReflect() protoreflect.Message { + mi := &file_orchestrator_service_proto_msgTypes[103] + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -5096,74 +7172,78 @@ func (x *OperationResult) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use OperationResult.ProtoReflect.Descriptor instead. -func (*OperationResult) Descriptor() ([]byte, []int) { - return file_orchestrator_service_proto_rawDescGZIP(), []int{76} +// Deprecated: Use AbandonEntityTaskRequest.ProtoReflect.Descriptor instead. +func (*AbandonEntityTaskRequest) Descriptor() ([]byte, []int) { + return file_orchestrator_service_proto_rawDescGZIP(), []int{103} } -func (m *OperationResult) GetResultType() isOperationResult_ResultType { - if m != nil { - return m.ResultType +func (x *AbandonEntityTaskRequest) GetCompletionToken() string { + if x != nil { + return x.CompletionToken } - return nil + return "" } -func (x *OperationResult) GetSuccess() *OperationResultSuccess { - if x, ok := x.GetResultType().(*OperationResult_Success); ok { - return x.Success - } - return nil +type AbandonEntityTaskResponse struct { + state protoimpl.MessageState `protogen:"open.v1"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } -func (x *OperationResult) GetFailure() *OperationResultFailure { - if x, ok := x.GetResultType().(*OperationResult_Failure); ok { - return x.Failure - } - return nil +func (x *AbandonEntityTaskResponse) Reset() { + *x = AbandonEntityTaskResponse{} + mi := &file_orchestrator_service_proto_msgTypes[104] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } -type isOperationResult_ResultType interface { - isOperationResult_ResultType() +func (x *AbandonEntityTaskResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -type OperationResult_Success struct { - Success *OperationResultSuccess `protobuf:"bytes,1,opt,name=success,proto3,oneof"` -} +func (*AbandonEntityTaskResponse) ProtoMessage() {} -type OperationResult_Failure struct { - Failure *OperationResultFailure `protobuf:"bytes,2,opt,name=failure,proto3,oneof"` +func (x *AbandonEntityTaskResponse) ProtoReflect() protoreflect.Message { + mi := &file_orchestrator_service_proto_msgTypes[104] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -func (*OperationResult_Success) isOperationResult_ResultType() {} - -func (*OperationResult_Failure) isOperationResult_ResultType() {} +// Deprecated: Use AbandonEntityTaskResponse.ProtoReflect.Descriptor instead. +func (*AbandonEntityTaskResponse) Descriptor() ([]byte, []int) { + return file_orchestrator_service_proto_rawDescGZIP(), []int{104} +} -type OperationResultSuccess struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache +type SkipGracefulOrchestrationTerminationsRequest struct { + state protoimpl.MessageState `protogen:"open.v1"` + InstanceBatch *InstanceBatch `protobuf:"bytes,1,opt,name=instanceBatch,proto3" json:"instanceBatch,omitempty"` + Reason *wrappers.StringValue `protobuf:"bytes,2,opt,name=reason,proto3" json:"reason,omitempty"` unknownFields protoimpl.UnknownFields - - Result *wrappers.StringValue `protobuf:"bytes,1,opt,name=result,proto3" json:"result,omitempty"` + sizeCache protoimpl.SizeCache } -func (x *OperationResultSuccess) Reset() { - *x = OperationResultSuccess{} - if protoimpl.UnsafeEnabled { - mi := &file_orchestrator_service_proto_msgTypes[77] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } +func (x *SkipGracefulOrchestrationTerminationsRequest) Reset() { + *x = SkipGracefulOrchestrationTerminationsRequest{} + mi := &file_orchestrator_service_proto_msgTypes[105] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } -func (x *OperationResultSuccess) String() string { +func (x *SkipGracefulOrchestrationTerminationsRequest) String() string { return protoimpl.X.MessageStringOf(x) } -func (*OperationResultSuccess) ProtoMessage() {} +func (*SkipGracefulOrchestrationTerminationsRequest) ProtoMessage() {} -func (x *OperationResultSuccess) ProtoReflect() protoreflect.Message { - mi := &file_orchestrator_service_proto_msgTypes[77] - if protoimpl.UnsafeEnabled && x != nil { +func (x *SkipGracefulOrchestrationTerminationsRequest) 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) @@ -5173,44 +7253,50 @@ func (x *OperationResultSuccess) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use OperationResultSuccess.ProtoReflect.Descriptor instead. -func (*OperationResultSuccess) Descriptor() ([]byte, []int) { - return file_orchestrator_service_proto_rawDescGZIP(), []int{77} +// Deprecated: Use SkipGracefulOrchestrationTerminationsRequest.ProtoReflect.Descriptor instead. +func (*SkipGracefulOrchestrationTerminationsRequest) Descriptor() ([]byte, []int) { + return file_orchestrator_service_proto_rawDescGZIP(), []int{105} } -func (x *OperationResultSuccess) GetResult() *wrappers.StringValue { +func (x *SkipGracefulOrchestrationTerminationsRequest) GetInstanceBatch() *InstanceBatch { if x != nil { - return x.Result + return x.InstanceBatch } return nil } -type OperationResultFailure struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields +func (x *SkipGracefulOrchestrationTerminationsRequest) GetReason() *wrappers.StringValue { + if x != nil { + return x.Reason + } + return nil +} - FailureDetails *TaskFailureDetails `protobuf:"bytes,1,opt,name=failureDetails,proto3" json:"failureDetails,omitempty"` +type SkipGracefulOrchestrationTerminationsResponse struct { + state protoimpl.MessageState `protogen:"open.v1"` + // Those instances which could not be terminated because they had locked entities at the time of this termination call, + // are already in a terminal state (completed, failed, terminated, etc.), are not orchestrations, or do not exist (i.e. have been purged) + UnterminatedInstanceIds []string `protobuf:"bytes,1,rep,name=unterminatedInstanceIds,proto3" json:"unterminatedInstanceIds,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } -func (x *OperationResultFailure) Reset() { - *x = OperationResultFailure{} - if protoimpl.UnsafeEnabled { - mi := &file_orchestrator_service_proto_msgTypes[78] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } +func (x *SkipGracefulOrchestrationTerminationsResponse) Reset() { + *x = SkipGracefulOrchestrationTerminationsResponse{} + mi := &file_orchestrator_service_proto_msgTypes[106] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } -func (x *OperationResultFailure) String() string { +func (x *SkipGracefulOrchestrationTerminationsResponse) String() string { return protoimpl.X.MessageStringOf(x) } -func (*OperationResultFailure) ProtoMessage() {} +func (*SkipGracefulOrchestrationTerminationsResponse) ProtoMessage() {} -func (x *OperationResultFailure) ProtoReflect() protoreflect.Message { - mi := &file_orchestrator_service_proto_msgTypes[78] - if protoimpl.UnsafeEnabled && x != nil { +func (x *SkipGracefulOrchestrationTerminationsResponse) 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) @@ -5220,49 +7306,45 @@ func (x *OperationResultFailure) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use OperationResultFailure.ProtoReflect.Descriptor instead. -func (*OperationResultFailure) Descriptor() ([]byte, []int) { - return file_orchestrator_service_proto_rawDescGZIP(), []int{78} +// Deprecated: Use SkipGracefulOrchestrationTerminationsResponse.ProtoReflect.Descriptor instead. +func (*SkipGracefulOrchestrationTerminationsResponse) Descriptor() ([]byte, []int) { + return file_orchestrator_service_proto_rawDescGZIP(), []int{106} } -func (x *OperationResultFailure) GetFailureDetails() *TaskFailureDetails { +func (x *SkipGracefulOrchestrationTerminationsResponse) GetUnterminatedInstanceIds() []string { if x != nil { - return x.FailureDetails + return x.UnterminatedInstanceIds } return nil } -type OperationAction struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` - // Types that are assignable to OperationActionType: - // - // *OperationAction_SendSignal - // *OperationAction_StartNewOrchestration - OperationActionType isOperationAction_OperationActionType `protobuf_oneof:"operationActionType"` +type GetWorkItemsRequest struct { + state protoimpl.MessageState `protogen:"open.v1"` + MaxConcurrentOrchestrationWorkItems int32 `protobuf:"varint,1,opt,name=maxConcurrentOrchestrationWorkItems,proto3" json:"maxConcurrentOrchestrationWorkItems,omitempty"` + MaxConcurrentActivityWorkItems int32 `protobuf:"varint,2,opt,name=maxConcurrentActivityWorkItems,proto3" json:"maxConcurrentActivityWorkItems,omitempty"` + MaxConcurrentEntityWorkItems int32 `protobuf:"varint,3,opt,name=maxConcurrentEntityWorkItems,proto3" json:"maxConcurrentEntityWorkItems,omitempty"` + Capabilities []WorkerCapability `protobuf:"varint,10,rep,packed,name=capabilities,proto3,enum=WorkerCapability" json:"capabilities,omitempty"` + WorkItemFilters *WorkItemFilters `protobuf:"bytes,11,opt,name=workItemFilters,proto3" json:"workItemFilters,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } -func (x *OperationAction) Reset() { - *x = OperationAction{} - if protoimpl.UnsafeEnabled { - mi := &file_orchestrator_service_proto_msgTypes[79] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } +func (x *GetWorkItemsRequest) Reset() { + *x = GetWorkItemsRequest{} + mi := &file_orchestrator_service_proto_msgTypes[107] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } -func (x *OperationAction) String() string { +func (x *GetWorkItemsRequest) String() string { return protoimpl.X.MessageStringOf(x) } -func (*OperationAction) ProtoMessage() {} +func (*GetWorkItemsRequest) ProtoMessage() {} -func (x *OperationAction) ProtoReflect() protoreflect.Message { - mi := &file_orchestrator_service_proto_msgTypes[79] - if protoimpl.UnsafeEnabled && x != nil { +func (x *GetWorkItemsRequest) 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) @@ -5272,84 +7354,71 @@ func (x *OperationAction) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use OperationAction.ProtoReflect.Descriptor instead. -func (*OperationAction) Descriptor() ([]byte, []int) { - return file_orchestrator_service_proto_rawDescGZIP(), []int{79} +// Deprecated: Use GetWorkItemsRequest.ProtoReflect.Descriptor instead. +func (*GetWorkItemsRequest) Descriptor() ([]byte, []int) { + return file_orchestrator_service_proto_rawDescGZIP(), []int{107} } -func (x *OperationAction) GetId() int32 { +func (x *GetWorkItemsRequest) GetMaxConcurrentOrchestrationWorkItems() int32 { if x != nil { - return x.Id + return x.MaxConcurrentOrchestrationWorkItems } return 0 } -func (m *OperationAction) GetOperationActionType() isOperationAction_OperationActionType { - if m != nil { - return m.OperationActionType +func (x *GetWorkItemsRequest) GetMaxConcurrentActivityWorkItems() int32 { + if x != nil { + return x.MaxConcurrentActivityWorkItems } - return nil + return 0 } -func (x *OperationAction) GetSendSignal() *SendSignalAction { - if x, ok := x.GetOperationActionType().(*OperationAction_SendSignal); ok { - return x.SendSignal +func (x *GetWorkItemsRequest) GetMaxConcurrentEntityWorkItems() int32 { + if x != nil { + return x.MaxConcurrentEntityWorkItems } - return nil + return 0 } -func (x *OperationAction) GetStartNewOrchestration() *StartNewOrchestrationAction { - if x, ok := x.GetOperationActionType().(*OperationAction_StartNewOrchestration); ok { - return x.StartNewOrchestration +func (x *GetWorkItemsRequest) GetCapabilities() []WorkerCapability { + if x != nil { + return x.Capabilities } return nil } -type isOperationAction_OperationActionType interface { - isOperationAction_OperationActionType() -} - -type OperationAction_SendSignal struct { - SendSignal *SendSignalAction `protobuf:"bytes,2,opt,name=sendSignal,proto3,oneof"` -} - -type OperationAction_StartNewOrchestration struct { - StartNewOrchestration *StartNewOrchestrationAction `protobuf:"bytes,3,opt,name=startNewOrchestration,proto3,oneof"` +func (x *GetWorkItemsRequest) GetWorkItemFilters() *WorkItemFilters { + if x != nil { + return x.WorkItemFilters + } + return nil } -func (*OperationAction_SendSignal) isOperationAction_OperationActionType() {} - -func (*OperationAction_StartNewOrchestration) isOperationAction_OperationActionType() {} - -type SendSignalAction struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - InstanceId string `protobuf:"bytes,1,opt,name=instanceId,proto3" json:"instanceId,omitempty"` - Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` - Input *wrappers.StringValue `protobuf:"bytes,3,opt,name=input,proto3" json:"input,omitempty"` - ScheduledTime *timestamp.Timestamp `protobuf:"bytes,4,opt,name=scheduledTime,proto3" json:"scheduledTime,omitempty"` +type WorkItemFilters struct { + state protoimpl.MessageState `protogen:"open.v1"` + Orchestrations []*OrchestrationFilter `protobuf:"bytes,1,rep,name=orchestrations,proto3" json:"orchestrations,omitempty"` + Activities []*ActivityFilter `protobuf:"bytes,2,rep,name=activities,proto3" json:"activities,omitempty"` + Entities []*EntityFilter `protobuf:"bytes,3,rep,name=entities,proto3" json:"entities,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } -func (x *SendSignalAction) Reset() { - *x = SendSignalAction{} - if protoimpl.UnsafeEnabled { - mi := &file_orchestrator_service_proto_msgTypes[80] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } +func (x *WorkItemFilters) Reset() { + *x = WorkItemFilters{} + mi := &file_orchestrator_service_proto_msgTypes[108] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } -func (x *SendSignalAction) String() string { +func (x *WorkItemFilters) String() string { return protoimpl.X.MessageStringOf(x) } -func (*SendSignalAction) ProtoMessage() {} +func (*WorkItemFilters) ProtoMessage() {} -func (x *SendSignalAction) ProtoReflect() protoreflect.Message { - mi := &file_orchestrator_service_proto_msgTypes[80] - if protoimpl.UnsafeEnabled && x != nil { +func (x *WorkItemFilters) 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) @@ -5359,69 +7428,56 @@ func (x *SendSignalAction) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use SendSignalAction.ProtoReflect.Descriptor instead. -func (*SendSignalAction) Descriptor() ([]byte, []int) { - return file_orchestrator_service_proto_rawDescGZIP(), []int{80} -} - -func (x *SendSignalAction) GetInstanceId() string { - if x != nil { - return x.InstanceId - } - return "" +// Deprecated: Use WorkItemFilters.ProtoReflect.Descriptor instead. +func (*WorkItemFilters) Descriptor() ([]byte, []int) { + return file_orchestrator_service_proto_rawDescGZIP(), []int{108} } -func (x *SendSignalAction) GetName() string { +func (x *WorkItemFilters) GetOrchestrations() []*OrchestrationFilter { if x != nil { - return x.Name + return x.Orchestrations } - return "" + return nil } -func (x *SendSignalAction) GetInput() *wrappers.StringValue { +func (x *WorkItemFilters) GetActivities() []*ActivityFilter { if x != nil { - return x.Input + return x.Activities } return nil } -func (x *SendSignalAction) GetScheduledTime() *timestamp.Timestamp { +func (x *WorkItemFilters) GetEntities() []*EntityFilter { if x != nil { - return x.ScheduledTime + return x.Entities } return nil } -type StartNewOrchestrationAction struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache +type OrchestrationFilter struct { + state protoimpl.MessageState `protogen:"open.v1"` + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + Versions []string `protobuf:"bytes,2,rep,name=versions,proto3" json:"versions,omitempty"` unknownFields protoimpl.UnknownFields - - InstanceId string `protobuf:"bytes,1,opt,name=instanceId,proto3" json:"instanceId,omitempty"` - Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` - Version *wrappers.StringValue `protobuf:"bytes,3,opt,name=version,proto3" json:"version,omitempty"` - Input *wrappers.StringValue `protobuf:"bytes,4,opt,name=input,proto3" json:"input,omitempty"` - ScheduledTime *timestamp.Timestamp `protobuf:"bytes,5,opt,name=scheduledTime,proto3" json:"scheduledTime,omitempty"` + sizeCache protoimpl.SizeCache } -func (x *StartNewOrchestrationAction) Reset() { - *x = StartNewOrchestrationAction{} - if protoimpl.UnsafeEnabled { - mi := &file_orchestrator_service_proto_msgTypes[81] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } +func (x *OrchestrationFilter) Reset() { + *x = OrchestrationFilter{} + mi := &file_orchestrator_service_proto_msgTypes[109] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } -func (x *StartNewOrchestrationAction) String() string { +func (x *OrchestrationFilter) String() string { return protoimpl.X.MessageStringOf(x) } -func (*StartNewOrchestrationAction) ProtoMessage() {} +func (*OrchestrationFilter) ProtoMessage() {} -func (x *StartNewOrchestrationAction) ProtoReflect() protoreflect.Message { - mi := &file_orchestrator_service_proto_msgTypes[81] - if protoimpl.UnsafeEnabled && x != nil { +func (x *OrchestrationFilter) ProtoReflect() protoreflect.Message { + mi := &file_orchestrator_service_proto_msgTypes[109] + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -5431,70 +7487,100 @@ func (x *StartNewOrchestrationAction) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use StartNewOrchestrationAction.ProtoReflect.Descriptor instead. -func (*StartNewOrchestrationAction) Descriptor() ([]byte, []int) { - return file_orchestrator_service_proto_rawDescGZIP(), []int{81} +// Deprecated: Use OrchestrationFilter.ProtoReflect.Descriptor instead. +func (*OrchestrationFilter) Descriptor() ([]byte, []int) { + return file_orchestrator_service_proto_rawDescGZIP(), []int{109} } -func (x *StartNewOrchestrationAction) GetInstanceId() string { +func (x *OrchestrationFilter) GetName() string { if x != nil { - return x.InstanceId + return x.Name } return "" } -func (x *StartNewOrchestrationAction) GetName() string { +func (x *OrchestrationFilter) GetVersions() []string { if x != nil { - return x.Name + return x.Versions } - return "" + return nil } -func (x *StartNewOrchestrationAction) GetVersion() *wrappers.StringValue { +type ActivityFilter struct { + state protoimpl.MessageState `protogen:"open.v1"` + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + Versions []string `protobuf:"bytes,2,rep,name=versions,proto3" json:"versions,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ActivityFilter) Reset() { + *x = ActivityFilter{} + mi := &file_orchestrator_service_proto_msgTypes[110] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ActivityFilter) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ActivityFilter) ProtoMessage() {} + +func (x *ActivityFilter) ProtoReflect() protoreflect.Message { + mi := &file_orchestrator_service_proto_msgTypes[110] if x != nil { - return x.Version + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } - return nil + return mi.MessageOf(x) } -func (x *StartNewOrchestrationAction) GetInput() *wrappers.StringValue { +// Deprecated: Use ActivityFilter.ProtoReflect.Descriptor instead. +func (*ActivityFilter) Descriptor() ([]byte, []int) { + return file_orchestrator_service_proto_rawDescGZIP(), []int{110} +} + +func (x *ActivityFilter) GetName() string { if x != nil { - return x.Input + return x.Name } - return nil + return "" } -func (x *StartNewOrchestrationAction) GetScheduledTime() *timestamp.Timestamp { +func (x *ActivityFilter) GetVersions() []string { if x != nil { - return x.ScheduledTime + return x.Versions } return nil } -type GetWorkItemsRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache +type EntityFilter struct { + state protoimpl.MessageState `protogen:"open.v1"` + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } -func (x *GetWorkItemsRequest) Reset() { - *x = GetWorkItemsRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_orchestrator_service_proto_msgTypes[82] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } +func (x *EntityFilter) Reset() { + *x = EntityFilter{} + mi := &file_orchestrator_service_proto_msgTypes[111] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } -func (x *GetWorkItemsRequest) String() string { +func (x *EntityFilter) String() string { return protoimpl.X.MessageStringOf(x) } -func (*GetWorkItemsRequest) ProtoMessage() {} +func (*EntityFilter) ProtoMessage() {} -func (x *GetWorkItemsRequest) ProtoReflect() protoreflect.Message { - mi := &file_orchestrator_service_proto_msgTypes[82] - if protoimpl.UnsafeEnabled && x != nil { +func (x *EntityFilter) ProtoReflect() protoreflect.Message { + mi := &file_orchestrator_service_proto_msgTypes[111] + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -5504,31 +7590,38 @@ func (x *GetWorkItemsRequest) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use GetWorkItemsRequest.ProtoReflect.Descriptor instead. -func (*GetWorkItemsRequest) Descriptor() ([]byte, []int) { - return file_orchestrator_service_proto_rawDescGZIP(), []int{82} +// Deprecated: Use EntityFilter.ProtoReflect.Descriptor instead. +func (*EntityFilter) Descriptor() ([]byte, []int) { + return file_orchestrator_service_proto_rawDescGZIP(), []int{111} } -type WorkItem struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields +func (x *EntityFilter) GetName() string { + if x != nil { + return x.Name + } + return "" +} - // Types that are assignable to Request: +type WorkItem struct { + state protoimpl.MessageState `protogen:"open.v1"` + // Types that are valid to be assigned to Request: // // *WorkItem_OrchestratorRequest // *WorkItem_ActivityRequest // *WorkItem_EntityRequest - Request isWorkItem_Request `protobuf_oneof:"request"` + // *WorkItem_HealthPing + // *WorkItem_EntityRequestV2 + Request isWorkItem_Request `protobuf_oneof:"request"` + CompletionToken string `protobuf:"bytes,10,opt,name=completionToken,proto3" json:"completionToken,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *WorkItem) Reset() { *x = WorkItem{} - if protoimpl.UnsafeEnabled { - mi := &file_orchestrator_service_proto_msgTypes[83] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_orchestrator_service_proto_msgTypes[112] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *WorkItem) String() string { @@ -5538,8 +7631,8 @@ func (x *WorkItem) String() string { func (*WorkItem) ProtoMessage() {} func (x *WorkItem) ProtoReflect() protoreflect.Message { - mi := &file_orchestrator_service_proto_msgTypes[83] - if protoimpl.UnsafeEnabled && x != nil { + mi := &file_orchestrator_service_proto_msgTypes[112] + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -5551,37 +7644,68 @@ func (x *WorkItem) ProtoReflect() protoreflect.Message { // Deprecated: Use WorkItem.ProtoReflect.Descriptor instead. func (*WorkItem) Descriptor() ([]byte, []int) { - return file_orchestrator_service_proto_rawDescGZIP(), []int{83} + return file_orchestrator_service_proto_rawDescGZIP(), []int{112} } -func (m *WorkItem) GetRequest() isWorkItem_Request { - if m != nil { - return m.Request +func (x *WorkItem) GetRequest() isWorkItem_Request { + if x != nil { + return x.Request } return nil } func (x *WorkItem) GetOrchestratorRequest() *OrchestratorRequest { - if x, ok := x.GetRequest().(*WorkItem_OrchestratorRequest); ok { - return x.OrchestratorRequest + if x != nil { + if x, ok := x.Request.(*WorkItem_OrchestratorRequest); ok { + return x.OrchestratorRequest + } } return nil } func (x *WorkItem) GetActivityRequest() *ActivityRequest { - if x, ok := x.GetRequest().(*WorkItem_ActivityRequest); ok { - return x.ActivityRequest + if x != nil { + if x, ok := x.Request.(*WorkItem_ActivityRequest); ok { + return x.ActivityRequest + } } return nil } func (x *WorkItem) GetEntityRequest() *EntityBatchRequest { - if x, ok := x.GetRequest().(*WorkItem_EntityRequest); ok { - return x.EntityRequest + if x != nil { + if x, ok := x.Request.(*WorkItem_EntityRequest); ok { + return x.EntityRequest + } + } + return nil +} + +func (x *WorkItem) GetHealthPing() *HealthPing { + if x != nil { + if x, ok := x.Request.(*WorkItem_HealthPing); ok { + return x.HealthPing + } + } + return nil +} + +func (x *WorkItem) GetEntityRequestV2() *EntityRequest { + if x != nil { + if x, ok := x.Request.(*WorkItem_EntityRequestV2); ok { + return x.EntityRequestV2 + } } return nil } +func (x *WorkItem) GetCompletionToken() string { + if x != nil { + return x.CompletionToken + } + return "" +} + type isWorkItem_Request interface { isWorkItem_Request() } @@ -5595,7 +7719,15 @@ type WorkItem_ActivityRequest struct { } type WorkItem_EntityRequest struct { - EntityRequest *EntityBatchRequest `protobuf:"bytes,3,opt,name=entityRequest,proto3,oneof"` + EntityRequest *EntityBatchRequest `protobuf:"bytes,3,opt,name=entityRequest,proto3,oneof"` // (older) used by orchestration services implementations +} + +type WorkItem_HealthPing struct { + HealthPing *HealthPing `protobuf:"bytes,4,opt,name=healthPing,proto3,oneof"` +} + +type WorkItem_EntityRequestV2 struct { + EntityRequestV2 *EntityRequest `protobuf:"bytes,5,opt,name=entityRequestV2,proto3,oneof"` // (newer) used by backend service implementations } func (*WorkItem_OrchestratorRequest) isWorkItem_Request() {} @@ -5604,19 +7736,21 @@ func (*WorkItem_ActivityRequest) isWorkItem_Request() {} func (*WorkItem_EntityRequest) isWorkItem_Request() {} +func (*WorkItem_HealthPing) isWorkItem_Request() {} + +func (*WorkItem_EntityRequestV2) isWorkItem_Request() {} + type CompleteTaskResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *CompleteTaskResponse) Reset() { *x = CompleteTaskResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_orchestrator_service_proto_msgTypes[84] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_orchestrator_service_proto_msgTypes[113] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *CompleteTaskResponse) String() string { @@ -5626,8 +7760,8 @@ func (x *CompleteTaskResponse) String() string { func (*CompleteTaskResponse) ProtoMessage() {} func (x *CompleteTaskResponse) ProtoReflect() protoreflect.Message { - mi := &file_orchestrator_service_proto_msgTypes[84] - if protoimpl.UnsafeEnabled && x != nil { + mi := &file_orchestrator_service_proto_msgTypes[113] + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -5639,1380 +7773,1371 @@ func (x *CompleteTaskResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use CompleteTaskResponse.ProtoReflect.Descriptor instead. func (*CompleteTaskResponse) Descriptor() ([]byte, []int) { - return file_orchestrator_service_proto_rawDescGZIP(), []int{84} + return file_orchestrator_service_proto_rawDescGZIP(), []int{113} } -var File_orchestrator_service_proto protoreflect.FileDescriptor +type HealthPing struct { + state protoimpl.MessageState `protogen:"open.v1"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *HealthPing) Reset() { + *x = HealthPing{} + mi := &file_orchestrator_service_proto_msgTypes[114] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *HealthPing) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*HealthPing) ProtoMessage() {} + +func (x *HealthPing) ProtoReflect() protoreflect.Message { + mi := &file_orchestrator_service_proto_msgTypes[114] + 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 HealthPing.ProtoReflect.Descriptor instead. +func (*HealthPing) Descriptor() ([]byte, []int) { + return file_orchestrator_service_proto_rawDescGZIP(), []int{114} +} + +type StreamInstanceHistoryRequest struct { + state protoimpl.MessageState `protogen:"open.v1"` + InstanceId string `protobuf:"bytes,1,opt,name=instanceId,proto3" json:"instanceId,omitempty"` + ExecutionId *wrappers.StringValue `protobuf:"bytes,2,opt,name=executionId,proto3" json:"executionId,omitempty"` + // When set to true, the service may return a more optimized response suitable for workers. + ForWorkItemProcessing bool `protobuf:"varint,3,opt,name=forWorkItemProcessing,proto3" json:"forWorkItemProcessing,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *StreamInstanceHistoryRequest) Reset() { + *x = StreamInstanceHistoryRequest{} + mi := &file_orchestrator_service_proto_msgTypes[115] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *StreamInstanceHistoryRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*StreamInstanceHistoryRequest) ProtoMessage() {} + +func (x *StreamInstanceHistoryRequest) ProtoReflect() protoreflect.Message { + mi := &file_orchestrator_service_proto_msgTypes[115] + 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 StreamInstanceHistoryRequest.ProtoReflect.Descriptor instead. +func (*StreamInstanceHistoryRequest) Descriptor() ([]byte, []int) { + return file_orchestrator_service_proto_rawDescGZIP(), []int{115} +} + +func (x *StreamInstanceHistoryRequest) GetInstanceId() string { + if x != nil { + return x.InstanceId + } + return "" +} + +func (x *StreamInstanceHistoryRequest) GetExecutionId() *wrappers.StringValue { + if x != nil { + return x.ExecutionId + } + return nil +} + +func (x *StreamInstanceHistoryRequest) GetForWorkItemProcessing() bool { + if x != nil { + return x.ForWorkItemProcessing + } + return false +} + +type HistoryChunk struct { + state protoimpl.MessageState `protogen:"open.v1"` + Events []*HistoryEvent `protobuf:"bytes,1,rep,name=events,proto3" json:"events,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *HistoryChunk) Reset() { + *x = HistoryChunk{} + mi := &file_orchestrator_service_proto_msgTypes[116] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *HistoryChunk) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*HistoryChunk) ProtoMessage() {} + +func (x *HistoryChunk) ProtoReflect() protoreflect.Message { + mi := &file_orchestrator_service_proto_msgTypes[116] + 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 HistoryChunk.ProtoReflect.Descriptor instead. +func (*HistoryChunk) Descriptor() ([]byte, []int) { + return file_orchestrator_service_proto_rawDescGZIP(), []int{116} +} + +func (x *HistoryChunk) GetEvents() []*HistoryEvent { + if x != nil { + return x.Events + } + return nil +} + +type InstanceBatch struct { + state protoimpl.MessageState `protogen:"open.v1"` + // A maximum of 500 instance IDs can be provided in this list. + InstanceIds []string `protobuf:"bytes,1,rep,name=instanceIds,proto3" json:"instanceIds,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *InstanceBatch) Reset() { + *x = InstanceBatch{} + mi := &file_orchestrator_service_proto_msgTypes[117] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *InstanceBatch) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*InstanceBatch) ProtoMessage() {} + +func (x *InstanceBatch) ProtoReflect() protoreflect.Message { + mi := &file_orchestrator_service_proto_msgTypes[117] + 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 InstanceBatch.ProtoReflect.Descriptor instead. +func (*InstanceBatch) Descriptor() ([]byte, []int) { + return file_orchestrator_service_proto_rawDescGZIP(), []int{117} +} -var file_orchestrator_service_proto_rawDesc = []byte{ - 0x0a, 0x1a, 0x6f, 0x72, 0x63, 0x68, 0x65, 0x73, 0x74, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x5f, 0x73, - 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1f, 0x67, 0x6f, - 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 0x69, - 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1e, 0x67, - 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x64, - 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1e, 0x67, - 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x77, - 0x72, 0x61, 0x70, 0x70, 0x65, 0x72, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1b, 0x67, - 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x65, - 0x6d, 0x70, 0x74, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x77, 0x0a, 0x15, 0x4f, 0x72, - 0x63, 0x68, 0x65, 0x73, 0x74, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x6e, 0x73, 0x74, 0x61, - 0x6e, 0x63, 0x65, 0x12, 0x1e, 0x0a, 0x0a, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x49, - 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, - 0x65, 0x49, 0x64, 0x12, 0x3e, 0x0a, 0x0b, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, - 0x49, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, - 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x53, 0x74, 0x72, 0x69, 0x6e, - 0x67, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x0b, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, - 0x6e, 0x49, 0x64, 0x22, 0xf7, 0x01, 0x0a, 0x0f, 0x41, 0x63, 0x74, 0x69, 0x76, 0x69, 0x74, 0x79, - 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x36, 0x0a, 0x07, 0x76, - 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x67, - 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x53, - 0x74, 0x72, 0x69, 0x6e, 0x67, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x07, 0x76, 0x65, 0x72, 0x73, - 0x69, 0x6f, 0x6e, 0x12, 0x32, 0x0a, 0x05, 0x69, 0x6e, 0x70, 0x75, 0x74, 0x18, 0x03, 0x20, 0x01, - 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x56, 0x61, 0x6c, 0x75, 0x65, - 0x52, 0x05, 0x69, 0x6e, 0x70, 0x75, 0x74, 0x12, 0x4c, 0x0a, 0x15, 0x6f, 0x72, 0x63, 0x68, 0x65, - 0x73, 0x74, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, - 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x4f, 0x72, 0x63, 0x68, 0x65, 0x73, 0x74, - 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x15, - 0x6f, 0x72, 0x63, 0x68, 0x65, 0x73, 0x74, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x6e, 0x73, - 0x74, 0x61, 0x6e, 0x63, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x74, 0x61, 0x73, 0x6b, 0x49, 0x64, 0x18, - 0x05, 0x20, 0x01, 0x28, 0x05, 0x52, 0x06, 0x74, 0x61, 0x73, 0x6b, 0x49, 0x64, 0x22, 0xbd, 0x01, - 0x0a, 0x10, 0x41, 0x63, 0x74, 0x69, 0x76, 0x69, 0x74, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x12, 0x1e, 0x0a, 0x0a, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x49, 0x64, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, - 0x49, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x74, 0x61, 0x73, 0x6b, 0x49, 0x64, 0x18, 0x02, 0x20, 0x01, - 0x28, 0x05, 0x52, 0x06, 0x74, 0x61, 0x73, 0x6b, 0x49, 0x64, 0x12, 0x34, 0x0a, 0x06, 0x72, 0x65, - 0x73, 0x75, 0x6c, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x67, 0x6f, 0x6f, - 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x53, 0x74, 0x72, - 0x69, 0x6e, 0x67, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x06, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, - 0x12, 0x3b, 0x0a, 0x0e, 0x66, 0x61, 0x69, 0x6c, 0x75, 0x72, 0x65, 0x44, 0x65, 0x74, 0x61, 0x69, - 0x6c, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x46, - 0x61, 0x69, 0x6c, 0x75, 0x72, 0x65, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x52, 0x0e, 0x66, - 0x61, 0x69, 0x6c, 0x75, 0x72, 0x65, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x22, 0xf5, 0x01, - 0x0a, 0x12, 0x54, 0x61, 0x73, 0x6b, 0x46, 0x61, 0x69, 0x6c, 0x75, 0x72, 0x65, 0x44, 0x65, 0x74, - 0x61, 0x69, 0x6c, 0x73, 0x12, 0x1c, 0x0a, 0x09, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x54, 0x79, 0x70, - 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x54, 0x79, - 0x70, 0x65, 0x12, 0x22, 0x0a, 0x0c, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x4d, 0x65, 0x73, 0x73, 0x61, - 0x67, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x4d, - 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x3c, 0x0a, 0x0a, 0x73, 0x74, 0x61, 0x63, 0x6b, 0x54, - 0x72, 0x61, 0x63, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x67, 0x6f, 0x6f, - 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x53, 0x74, 0x72, - 0x69, 0x6e, 0x67, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x0a, 0x73, 0x74, 0x61, 0x63, 0x6b, 0x54, - 0x72, 0x61, 0x63, 0x65, 0x12, 0x37, 0x0a, 0x0c, 0x69, 0x6e, 0x6e, 0x65, 0x72, 0x46, 0x61, 0x69, - 0x6c, 0x75, 0x72, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x54, 0x61, 0x73, - 0x6b, 0x46, 0x61, 0x69, 0x6c, 0x75, 0x72, 0x65, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x52, - 0x0c, 0x69, 0x6e, 0x6e, 0x65, 0x72, 0x46, 0x61, 0x69, 0x6c, 0x75, 0x72, 0x65, 0x12, 0x26, 0x0a, - 0x0e, 0x69, 0x73, 0x4e, 0x6f, 0x6e, 0x52, 0x65, 0x74, 0x72, 0x69, 0x61, 0x62, 0x6c, 0x65, 0x18, - 0x05, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0e, 0x69, 0x73, 0x4e, 0x6f, 0x6e, 0x52, 0x65, 0x74, 0x72, - 0x69, 0x61, 0x62, 0x6c, 0x65, 0x22, 0xf6, 0x01, 0x0a, 0x12, 0x50, 0x61, 0x72, 0x65, 0x6e, 0x74, - 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x28, 0x0a, 0x0f, - 0x74, 0x61, 0x73, 0x6b, 0x53, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x64, 0x49, 0x64, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0f, 0x74, 0x61, 0x73, 0x6b, 0x53, 0x63, 0x68, 0x65, 0x64, - 0x75, 0x6c, 0x65, 0x64, 0x49, 0x64, 0x12, 0x30, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, - 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x56, 0x61, 0x6c, - 0x75, 0x65, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x36, 0x0a, 0x07, 0x76, 0x65, 0x72, 0x73, - 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x67, 0x6f, 0x6f, 0x67, - 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x53, 0x74, 0x72, 0x69, - 0x6e, 0x67, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, - 0x12, 0x4c, 0x0a, 0x15, 0x6f, 0x72, 0x63, 0x68, 0x65, 0x73, 0x74, 0x72, 0x61, 0x74, 0x69, 0x6f, - 0x6e, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, - 0x16, 0x2e, 0x4f, 0x72, 0x63, 0x68, 0x65, 0x73, 0x74, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x49, - 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x15, 0x6f, 0x72, 0x63, 0x68, 0x65, 0x73, 0x74, - 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x22, 0x8a, - 0x01, 0x0a, 0x0c, 0x54, 0x72, 0x61, 0x63, 0x65, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x12, - 0x20, 0x0a, 0x0b, 0x74, 0x72, 0x61, 0x63, 0x65, 0x50, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x74, 0x72, 0x61, 0x63, 0x65, 0x50, 0x61, 0x72, 0x65, 0x6e, - 0x74, 0x12, 0x1a, 0x0a, 0x06, 0x73, 0x70, 0x61, 0x6e, 0x49, 0x44, 0x18, 0x02, 0x20, 0x01, 0x28, - 0x09, 0x42, 0x02, 0x18, 0x01, 0x52, 0x06, 0x73, 0x70, 0x61, 0x6e, 0x49, 0x44, 0x12, 0x3c, 0x0a, - 0x0a, 0x74, 0x72, 0x61, 0x63, 0x65, 0x53, 0x74, 0x61, 0x74, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, - 0x0b, 0x32, 0x1c, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x62, 0x75, 0x66, 0x2e, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, - 0x0a, 0x74, 0x72, 0x61, 0x63, 0x65, 0x53, 0x74, 0x61, 0x74, 0x65, 0x22, 0x87, 0x04, 0x0a, 0x15, - 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x74, 0x61, 0x72, 0x74, 0x65, 0x64, - 0x45, 0x76, 0x65, 0x6e, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x36, 0x0a, 0x07, 0x76, 0x65, 0x72, - 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x67, 0x6f, 0x6f, - 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x53, 0x74, 0x72, - 0x69, 0x6e, 0x67, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, - 0x6e, 0x12, 0x32, 0x0a, 0x05, 0x69, 0x6e, 0x70, 0x75, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, - 0x32, 0x1c, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, - 0x75, 0x66, 0x2e, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x05, - 0x69, 0x6e, 0x70, 0x75, 0x74, 0x12, 0x4c, 0x0a, 0x15, 0x6f, 0x72, 0x63, 0x68, 0x65, 0x73, 0x74, - 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x18, 0x04, - 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x4f, 0x72, 0x63, 0x68, 0x65, 0x73, 0x74, 0x72, 0x61, - 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x15, 0x6f, 0x72, - 0x63, 0x68, 0x65, 0x73, 0x74, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x6e, 0x73, 0x74, 0x61, - 0x6e, 0x63, 0x65, 0x12, 0x3b, 0x0a, 0x0e, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x49, 0x6e, 0x73, - 0x74, 0x61, 0x6e, 0x63, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x50, 0x61, - 0x72, 0x65, 0x6e, 0x74, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x49, 0x6e, 0x66, 0x6f, - 0x52, 0x0e, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, - 0x12, 0x54, 0x0a, 0x17, 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x64, 0x53, 0x74, 0x61, - 0x72, 0x74, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x18, 0x06, 0x20, 0x01, 0x28, - 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x17, 0x73, - 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x64, 0x53, 0x74, 0x61, 0x72, 0x74, 0x54, 0x69, 0x6d, - 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x12, 0x3d, 0x0a, 0x12, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, - 0x54, 0x72, 0x61, 0x63, 0x65, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x18, 0x07, 0x20, 0x01, - 0x28, 0x0b, 0x32, 0x0d, 0x2e, 0x54, 0x72, 0x61, 0x63, 0x65, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x78, - 0x74, 0x52, 0x12, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x54, 0x72, 0x61, 0x63, 0x65, 0x43, 0x6f, - 0x6e, 0x74, 0x65, 0x78, 0x74, 0x12, 0x4e, 0x0a, 0x13, 0x6f, 0x72, 0x63, 0x68, 0x65, 0x73, 0x74, - 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x70, 0x61, 0x6e, 0x49, 0x44, 0x18, 0x08, 0x20, 0x01, - 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x56, 0x61, 0x6c, 0x75, 0x65, - 0x52, 0x13, 0x6f, 0x72, 0x63, 0x68, 0x65, 0x73, 0x74, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, - 0x70, 0x61, 0x6e, 0x49, 0x44, 0x22, 0xd4, 0x01, 0x0a, 0x17, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, - 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x6d, 0x70, 0x6c, 0x65, 0x74, 0x65, 0x64, 0x45, 0x76, 0x65, 0x6e, - 0x74, 0x12, 0x46, 0x0a, 0x13, 0x6f, 0x72, 0x63, 0x68, 0x65, 0x73, 0x74, 0x72, 0x61, 0x74, 0x69, - 0x6f, 0x6e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x14, - 0x2e, 0x4f, 0x72, 0x63, 0x68, 0x65, 0x73, 0x74, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x74, - 0x61, 0x74, 0x75, 0x73, 0x52, 0x13, 0x6f, 0x72, 0x63, 0x68, 0x65, 0x73, 0x74, 0x72, 0x61, 0x74, - 0x69, 0x6f, 0x6e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x34, 0x0a, 0x06, 0x72, 0x65, 0x73, - 0x75, 0x6c, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x67, 0x6f, 0x6f, 0x67, - 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x53, 0x74, 0x72, 0x69, - 0x6e, 0x67, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x06, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x12, - 0x3b, 0x0a, 0x0e, 0x66, 0x61, 0x69, 0x6c, 0x75, 0x72, 0x65, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, - 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x46, 0x61, - 0x69, 0x6c, 0x75, 0x72, 0x65, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x52, 0x0e, 0x66, 0x61, - 0x69, 0x6c, 0x75, 0x72, 0x65, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x22, 0x68, 0x0a, 0x18, - 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x61, - 0x74, 0x65, 0x64, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x12, 0x32, 0x0a, 0x05, 0x69, 0x6e, 0x70, 0x75, - 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, - 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, - 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x05, 0x69, 0x6e, 0x70, 0x75, 0x74, 0x12, 0x18, 0x0a, 0x07, - 0x72, 0x65, 0x63, 0x75, 0x72, 0x73, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x07, 0x72, - 0x65, 0x63, 0x75, 0x72, 0x73, 0x65, 0x22, 0xd3, 0x01, 0x0a, 0x12, 0x54, 0x61, 0x73, 0x6b, 0x53, - 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x64, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x12, 0x12, 0x0a, - 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, - 0x65, 0x12, 0x36, 0x0a, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, - 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x56, 0x61, 0x6c, 0x75, 0x65, - 0x52, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x32, 0x0a, 0x05, 0x69, 0x6e, 0x70, - 0x75, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, - 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x53, 0x74, 0x72, 0x69, 0x6e, - 0x67, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x05, 0x69, 0x6e, 0x70, 0x75, 0x74, 0x12, 0x3d, 0x0a, - 0x12, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x54, 0x72, 0x61, 0x63, 0x65, 0x43, 0x6f, 0x6e, 0x74, - 0x65, 0x78, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0d, 0x2e, 0x54, 0x72, 0x61, 0x63, - 0x65, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x52, 0x12, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, - 0x54, 0x72, 0x61, 0x63, 0x65, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x22, 0x74, 0x0a, 0x12, - 0x54, 0x61, 0x73, 0x6b, 0x43, 0x6f, 0x6d, 0x70, 0x6c, 0x65, 0x74, 0x65, 0x64, 0x45, 0x76, 0x65, - 0x6e, 0x74, 0x12, 0x28, 0x0a, 0x0f, 0x74, 0x61, 0x73, 0x6b, 0x53, 0x63, 0x68, 0x65, 0x64, 0x75, - 0x6c, 0x65, 0x64, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0f, 0x74, 0x61, 0x73, - 0x6b, 0x53, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x64, 0x49, 0x64, 0x12, 0x34, 0x0a, 0x06, - 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x67, - 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x53, - 0x74, 0x72, 0x69, 0x6e, 0x67, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x06, 0x72, 0x65, 0x73, 0x75, - 0x6c, 0x74, 0x22, 0x78, 0x0a, 0x0f, 0x54, 0x61, 0x73, 0x6b, 0x46, 0x61, 0x69, 0x6c, 0x65, 0x64, - 0x45, 0x76, 0x65, 0x6e, 0x74, 0x12, 0x28, 0x0a, 0x0f, 0x74, 0x61, 0x73, 0x6b, 0x53, 0x63, 0x68, - 0x65, 0x64, 0x75, 0x6c, 0x65, 0x64, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0f, - 0x74, 0x61, 0x73, 0x6b, 0x53, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x64, 0x49, 0x64, 0x12, - 0x3b, 0x0a, 0x0e, 0x66, 0x61, 0x69, 0x6c, 0x75, 0x72, 0x65, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, - 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x46, 0x61, - 0x69, 0x6c, 0x75, 0x72, 0x65, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x52, 0x0e, 0x66, 0x61, - 0x69, 0x6c, 0x75, 0x72, 0x65, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x22, 0x85, 0x02, 0x0a, - 0x24, 0x53, 0x75, 0x62, 0x4f, 0x72, 0x63, 0x68, 0x65, 0x73, 0x74, 0x72, 0x61, 0x74, 0x69, 0x6f, - 0x6e, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, - 0x45, 0x76, 0x65, 0x6e, 0x74, 0x12, 0x1e, 0x0a, 0x0a, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, - 0x65, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x69, 0x6e, 0x73, 0x74, 0x61, - 0x6e, 0x63, 0x65, 0x49, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x36, 0x0a, 0x07, 0x76, 0x65, 0x72, - 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x67, 0x6f, 0x6f, - 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x53, 0x74, 0x72, - 0x69, 0x6e, 0x67, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, - 0x6e, 0x12, 0x32, 0x0a, 0x05, 0x69, 0x6e, 0x70, 0x75, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, - 0x32, 0x1c, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, - 0x75, 0x66, 0x2e, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x05, - 0x69, 0x6e, 0x70, 0x75, 0x74, 0x12, 0x3d, 0x0a, 0x12, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x54, - 0x72, 0x61, 0x63, 0x65, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, - 0x0b, 0x32, 0x0d, 0x2e, 0x54, 0x72, 0x61, 0x63, 0x65, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, - 0x52, 0x12, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x54, 0x72, 0x61, 0x63, 0x65, 0x43, 0x6f, 0x6e, - 0x74, 0x65, 0x78, 0x74, 0x22, 0x88, 0x01, 0x0a, 0x26, 0x53, 0x75, 0x62, 0x4f, 0x72, 0x63, 0x68, - 0x65, 0x73, 0x74, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, - 0x65, 0x43, 0x6f, 0x6d, 0x70, 0x6c, 0x65, 0x74, 0x65, 0x64, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x12, - 0x28, 0x0a, 0x0f, 0x74, 0x61, 0x73, 0x6b, 0x53, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x64, - 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0f, 0x74, 0x61, 0x73, 0x6b, 0x53, 0x63, - 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x64, 0x49, 0x64, 0x12, 0x34, 0x0a, 0x06, 0x72, 0x65, 0x73, - 0x75, 0x6c, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x67, 0x6f, 0x6f, 0x67, - 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x53, 0x74, 0x72, 0x69, - 0x6e, 0x67, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x06, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x22, - 0x8c, 0x01, 0x0a, 0x23, 0x53, 0x75, 0x62, 0x4f, 0x72, 0x63, 0x68, 0x65, 0x73, 0x74, 0x72, 0x61, - 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x46, 0x61, 0x69, 0x6c, - 0x65, 0x64, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x12, 0x28, 0x0a, 0x0f, 0x74, 0x61, 0x73, 0x6b, 0x53, - 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x64, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, - 0x52, 0x0f, 0x74, 0x61, 0x73, 0x6b, 0x53, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x64, 0x49, - 0x64, 0x12, 0x3b, 0x0a, 0x0e, 0x66, 0x61, 0x69, 0x6c, 0x75, 0x72, 0x65, 0x44, 0x65, 0x74, 0x61, - 0x69, 0x6c, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x54, 0x61, 0x73, 0x6b, - 0x46, 0x61, 0x69, 0x6c, 0x75, 0x72, 0x65, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x52, 0x0e, - 0x66, 0x61, 0x69, 0x6c, 0x75, 0x72, 0x65, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x22, 0x47, - 0x0a, 0x11, 0x54, 0x69, 0x6d, 0x65, 0x72, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x45, 0x76, - 0x65, 0x6e, 0x74, 0x12, 0x32, 0x0a, 0x06, 0x66, 0x69, 0x72, 0x65, 0x41, 0x74, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, - 0x06, 0x66, 0x69, 0x72, 0x65, 0x41, 0x74, 0x22, 0x5f, 0x0a, 0x0f, 0x54, 0x69, 0x6d, 0x65, 0x72, - 0x46, 0x69, 0x72, 0x65, 0x64, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x12, 0x32, 0x0a, 0x06, 0x66, 0x69, - 0x72, 0x65, 0x41, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, - 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, - 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x06, 0x66, 0x69, 0x72, 0x65, 0x41, 0x74, 0x12, 0x18, - 0x0a, 0x07, 0x74, 0x69, 0x6d, 0x65, 0x72, 0x49, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, - 0x07, 0x74, 0x69, 0x6d, 0x65, 0x72, 0x49, 0x64, 0x22, 0x1a, 0x0a, 0x18, 0x4f, 0x72, 0x63, 0x68, - 0x65, 0x73, 0x74, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x53, 0x74, 0x61, 0x72, 0x74, 0x65, 0x64, 0x45, - 0x76, 0x65, 0x6e, 0x74, 0x22, 0x1c, 0x0a, 0x1a, 0x4f, 0x72, 0x63, 0x68, 0x65, 0x73, 0x74, 0x72, - 0x61, 0x74, 0x6f, 0x72, 0x43, 0x6f, 0x6d, 0x70, 0x6c, 0x65, 0x74, 0x65, 0x64, 0x45, 0x76, 0x65, - 0x6e, 0x74, 0x22, 0x78, 0x0a, 0x0e, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x53, 0x65, 0x6e, 0x74, 0x45, - 0x76, 0x65, 0x6e, 0x74, 0x12, 0x1e, 0x0a, 0x0a, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, - 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, - 0x63, 0x65, 0x49, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x32, 0x0a, 0x05, 0x69, 0x6e, 0x70, 0x75, - 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, - 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, - 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x05, 0x69, 0x6e, 0x70, 0x75, 0x74, 0x22, 0x5a, 0x0a, 0x10, - 0x45, 0x76, 0x65, 0x6e, 0x74, 0x52, 0x61, 0x69, 0x73, 0x65, 0x64, 0x45, 0x76, 0x65, 0x6e, 0x74, - 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, - 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x32, 0x0a, 0x05, 0x69, 0x6e, 0x70, 0x75, 0x74, 0x18, 0x02, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x56, 0x61, 0x6c, 0x75, - 0x65, 0x52, 0x05, 0x69, 0x6e, 0x70, 0x75, 0x74, 0x22, 0x40, 0x0a, 0x0c, 0x47, 0x65, 0x6e, 0x65, - 0x72, 0x69, 0x63, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x12, 0x30, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x56, - 0x61, 0x6c, 0x75, 0x65, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x22, 0x58, 0x0a, 0x11, 0x48, 0x69, - 0x73, 0x74, 0x6f, 0x72, 0x79, 0x53, 0x74, 0x61, 0x74, 0x65, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x12, - 0x43, 0x0a, 0x12, 0x6f, 0x72, 0x63, 0x68, 0x65, 0x73, 0x74, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, - 0x53, 0x74, 0x61, 0x74, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x4f, 0x72, - 0x63, 0x68, 0x65, 0x73, 0x74, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x74, 0x61, 0x74, 0x65, - 0x52, 0x12, 0x6f, 0x72, 0x63, 0x68, 0x65, 0x73, 0x74, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, - 0x74, 0x61, 0x74, 0x65, 0x22, 0x48, 0x0a, 0x12, 0x43, 0x6f, 0x6e, 0x74, 0x69, 0x6e, 0x75, 0x65, - 0x41, 0x73, 0x4e, 0x65, 0x77, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x12, 0x32, 0x0a, 0x05, 0x69, 0x6e, - 0x70, 0x75, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x67, 0x6f, 0x6f, 0x67, - 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x53, 0x74, 0x72, 0x69, - 0x6e, 0x67, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x05, 0x69, 0x6e, 0x70, 0x75, 0x74, 0x22, 0x4d, - 0x0a, 0x17, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x75, 0x73, 0x70, 0x65, - 0x6e, 0x64, 0x65, 0x64, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x12, 0x32, 0x0a, 0x05, 0x69, 0x6e, 0x70, - 0x75, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, - 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x53, 0x74, 0x72, 0x69, 0x6e, - 0x67, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x05, 0x69, 0x6e, 0x70, 0x75, 0x74, 0x22, 0x4b, 0x0a, - 0x15, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x75, 0x6d, 0x65, - 0x64, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x12, 0x32, 0x0a, 0x05, 0x69, 0x6e, 0x70, 0x75, 0x74, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x56, 0x61, - 0x6c, 0x75, 0x65, 0x52, 0x05, 0x69, 0x6e, 0x70, 0x75, 0x74, 0x22, 0x92, 0x0c, 0x0a, 0x0c, 0x48, - 0x69, 0x73, 0x74, 0x6f, 0x72, 0x79, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x65, - 0x76, 0x65, 0x6e, 0x74, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x07, 0x65, 0x76, - 0x65, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x38, 0x0a, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, - 0x6d, 0x70, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, - 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, - 0x74, 0x61, 0x6d, 0x70, 0x52, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x12, - 0x44, 0x0a, 0x10, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x74, 0x61, 0x72, - 0x74, 0x65, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x45, 0x78, 0x65, 0x63, - 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x74, 0x61, 0x72, 0x74, 0x65, 0x64, 0x45, 0x76, 0x65, 0x6e, - 0x74, 0x48, 0x00, 0x52, 0x10, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x74, - 0x61, 0x72, 0x74, 0x65, 0x64, 0x12, 0x4a, 0x0a, 0x12, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, - 0x6f, 0x6e, 0x43, 0x6f, 0x6d, 0x70, 0x6c, 0x65, 0x74, 0x65, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, - 0x0b, 0x32, 0x18, 0x2e, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x6d, - 0x70, 0x6c, 0x65, 0x74, 0x65, 0x64, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x48, 0x00, 0x52, 0x12, 0x65, - 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x6d, 0x70, 0x6c, 0x65, 0x74, 0x65, - 0x64, 0x12, 0x4d, 0x0a, 0x13, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x65, - 0x72, 0x6d, 0x69, 0x6e, 0x61, 0x74, 0x65, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, - 0x2e, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x65, 0x72, 0x6d, 0x69, 0x6e, - 0x61, 0x74, 0x65, 0x64, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x48, 0x00, 0x52, 0x13, 0x65, 0x78, 0x65, - 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x61, 0x74, 0x65, 0x64, - 0x12, 0x3b, 0x0a, 0x0d, 0x74, 0x61, 0x73, 0x6b, 0x53, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, - 0x64, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x53, 0x63, - 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x64, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x48, 0x00, 0x52, 0x0d, - 0x74, 0x61, 0x73, 0x6b, 0x53, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x64, 0x12, 0x3b, 0x0a, - 0x0d, 0x74, 0x61, 0x73, 0x6b, 0x43, 0x6f, 0x6d, 0x70, 0x6c, 0x65, 0x74, 0x65, 0x64, 0x18, 0x07, - 0x20, 0x01, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x43, 0x6f, 0x6d, 0x70, 0x6c, - 0x65, 0x74, 0x65, 0x64, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x48, 0x00, 0x52, 0x0d, 0x74, 0x61, 0x73, - 0x6b, 0x43, 0x6f, 0x6d, 0x70, 0x6c, 0x65, 0x74, 0x65, 0x64, 0x12, 0x32, 0x0a, 0x0a, 0x74, 0x61, - 0x73, 0x6b, 0x46, 0x61, 0x69, 0x6c, 0x65, 0x64, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x10, - 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x46, 0x61, 0x69, 0x6c, 0x65, 0x64, 0x45, 0x76, 0x65, 0x6e, 0x74, - 0x48, 0x00, 0x52, 0x0a, 0x74, 0x61, 0x73, 0x6b, 0x46, 0x61, 0x69, 0x6c, 0x65, 0x64, 0x12, 0x71, - 0x0a, 0x1f, 0x73, 0x75, 0x62, 0x4f, 0x72, 0x63, 0x68, 0x65, 0x73, 0x74, 0x72, 0x61, 0x74, 0x69, - 0x6f, 0x6e, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, - 0x64, 0x18, 0x09, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x53, 0x75, 0x62, 0x4f, 0x72, 0x63, - 0x68, 0x65, 0x73, 0x74, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, - 0x63, 0x65, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x48, 0x00, - 0x52, 0x1f, 0x73, 0x75, 0x62, 0x4f, 0x72, 0x63, 0x68, 0x65, 0x73, 0x74, 0x72, 0x61, 0x74, 0x69, - 0x6f, 0x6e, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, - 0x64, 0x12, 0x77, 0x0a, 0x21, 0x73, 0x75, 0x62, 0x4f, 0x72, 0x63, 0x68, 0x65, 0x73, 0x74, 0x72, - 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x43, 0x6f, 0x6d, - 0x70, 0x6c, 0x65, 0x74, 0x65, 0x64, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x53, - 0x75, 0x62, 0x4f, 0x72, 0x63, 0x68, 0x65, 0x73, 0x74, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x49, - 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x43, 0x6f, 0x6d, 0x70, 0x6c, 0x65, 0x74, 0x65, 0x64, - 0x45, 0x76, 0x65, 0x6e, 0x74, 0x48, 0x00, 0x52, 0x21, 0x73, 0x75, 0x62, 0x4f, 0x72, 0x63, 0x68, - 0x65, 0x73, 0x74, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, - 0x65, 0x43, 0x6f, 0x6d, 0x70, 0x6c, 0x65, 0x74, 0x65, 0x64, 0x12, 0x6e, 0x0a, 0x1e, 0x73, 0x75, - 0x62, 0x4f, 0x72, 0x63, 0x68, 0x65, 0x73, 0x74, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x6e, - 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x46, 0x61, 0x69, 0x6c, 0x65, 0x64, 0x18, 0x0b, 0x20, 0x01, - 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x53, 0x75, 0x62, 0x4f, 0x72, 0x63, 0x68, 0x65, 0x73, 0x74, 0x72, - 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x46, 0x61, 0x69, - 0x6c, 0x65, 0x64, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x48, 0x00, 0x52, 0x1e, 0x73, 0x75, 0x62, 0x4f, - 0x72, 0x63, 0x68, 0x65, 0x73, 0x74, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x6e, 0x73, 0x74, - 0x61, 0x6e, 0x63, 0x65, 0x46, 0x61, 0x69, 0x6c, 0x65, 0x64, 0x12, 0x38, 0x0a, 0x0c, 0x74, 0x69, - 0x6d, 0x65, 0x72, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x0b, - 0x32, 0x12, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x72, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x45, - 0x76, 0x65, 0x6e, 0x74, 0x48, 0x00, 0x52, 0x0c, 0x74, 0x69, 0x6d, 0x65, 0x72, 0x43, 0x72, 0x65, - 0x61, 0x74, 0x65, 0x64, 0x12, 0x32, 0x0a, 0x0a, 0x74, 0x69, 0x6d, 0x65, 0x72, 0x46, 0x69, 0x72, - 0x65, 0x64, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x72, - 0x46, 0x69, 0x72, 0x65, 0x64, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x48, 0x00, 0x52, 0x0a, 0x74, 0x69, - 0x6d, 0x65, 0x72, 0x46, 0x69, 0x72, 0x65, 0x64, 0x12, 0x4d, 0x0a, 0x13, 0x6f, 0x72, 0x63, 0x68, - 0x65, 0x73, 0x74, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x53, 0x74, 0x61, 0x72, 0x74, 0x65, 0x64, 0x18, - 0x0e, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x4f, 0x72, 0x63, 0x68, 0x65, 0x73, 0x74, 0x72, - 0x61, 0x74, 0x6f, 0x72, 0x53, 0x74, 0x61, 0x72, 0x74, 0x65, 0x64, 0x45, 0x76, 0x65, 0x6e, 0x74, - 0x48, 0x00, 0x52, 0x13, 0x6f, 0x72, 0x63, 0x68, 0x65, 0x73, 0x74, 0x72, 0x61, 0x74, 0x6f, 0x72, - 0x53, 0x74, 0x61, 0x72, 0x74, 0x65, 0x64, 0x12, 0x53, 0x0a, 0x15, 0x6f, 0x72, 0x63, 0x68, 0x65, - 0x73, 0x74, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x43, 0x6f, 0x6d, 0x70, 0x6c, 0x65, 0x74, 0x65, 0x64, - 0x18, 0x0f, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x4f, 0x72, 0x63, 0x68, 0x65, 0x73, 0x74, - 0x72, 0x61, 0x74, 0x6f, 0x72, 0x43, 0x6f, 0x6d, 0x70, 0x6c, 0x65, 0x74, 0x65, 0x64, 0x45, 0x76, - 0x65, 0x6e, 0x74, 0x48, 0x00, 0x52, 0x15, 0x6f, 0x72, 0x63, 0x68, 0x65, 0x73, 0x74, 0x72, 0x61, - 0x74, 0x6f, 0x72, 0x43, 0x6f, 0x6d, 0x70, 0x6c, 0x65, 0x74, 0x65, 0x64, 0x12, 0x2f, 0x0a, 0x09, - 0x65, 0x76, 0x65, 0x6e, 0x74, 0x53, 0x65, 0x6e, 0x74, 0x18, 0x10, 0x20, 0x01, 0x28, 0x0b, 0x32, - 0x0f, 0x2e, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x53, 0x65, 0x6e, 0x74, 0x45, 0x76, 0x65, 0x6e, 0x74, - 0x48, 0x00, 0x52, 0x09, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x53, 0x65, 0x6e, 0x74, 0x12, 0x35, 0x0a, - 0x0b, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x52, 0x61, 0x69, 0x73, 0x65, 0x64, 0x18, 0x11, 0x20, 0x01, - 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x52, 0x61, 0x69, 0x73, 0x65, 0x64, - 0x45, 0x76, 0x65, 0x6e, 0x74, 0x48, 0x00, 0x52, 0x0b, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x52, 0x61, - 0x69, 0x73, 0x65, 0x64, 0x12, 0x33, 0x0a, 0x0c, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x69, 0x63, 0x45, - 0x76, 0x65, 0x6e, 0x74, 0x18, 0x12, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0d, 0x2e, 0x47, 0x65, 0x6e, - 0x65, 0x72, 0x69, 0x63, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x48, 0x00, 0x52, 0x0c, 0x67, 0x65, 0x6e, - 0x65, 0x72, 0x69, 0x63, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x12, 0x38, 0x0a, 0x0c, 0x68, 0x69, 0x73, - 0x74, 0x6f, 0x72, 0x79, 0x53, 0x74, 0x61, 0x74, 0x65, 0x18, 0x13, 0x20, 0x01, 0x28, 0x0b, 0x32, - 0x12, 0x2e, 0x48, 0x69, 0x73, 0x74, 0x6f, 0x72, 0x79, 0x53, 0x74, 0x61, 0x74, 0x65, 0x45, 0x76, - 0x65, 0x6e, 0x74, 0x48, 0x00, 0x52, 0x0c, 0x68, 0x69, 0x73, 0x74, 0x6f, 0x72, 0x79, 0x53, 0x74, - 0x61, 0x74, 0x65, 0x12, 0x3b, 0x0a, 0x0d, 0x63, 0x6f, 0x6e, 0x74, 0x69, 0x6e, 0x75, 0x65, 0x41, - 0x73, 0x4e, 0x65, 0x77, 0x18, 0x14, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x43, 0x6f, 0x6e, - 0x74, 0x69, 0x6e, 0x75, 0x65, 0x41, 0x73, 0x4e, 0x65, 0x77, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x48, - 0x00, 0x52, 0x0d, 0x63, 0x6f, 0x6e, 0x74, 0x69, 0x6e, 0x75, 0x65, 0x41, 0x73, 0x4e, 0x65, 0x77, - 0x12, 0x4a, 0x0a, 0x12, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x75, 0x73, - 0x70, 0x65, 0x6e, 0x64, 0x65, 0x64, 0x18, 0x15, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x45, - 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x75, 0x73, 0x70, 0x65, 0x6e, 0x64, 0x65, - 0x64, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x48, 0x00, 0x52, 0x12, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, - 0x69, 0x6f, 0x6e, 0x53, 0x75, 0x73, 0x70, 0x65, 0x6e, 0x64, 0x65, 0x64, 0x12, 0x44, 0x0a, 0x10, - 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x75, 0x6d, 0x65, 0x64, - 0x18, 0x16, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, - 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x75, 0x6d, 0x65, 0x64, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x48, 0x00, - 0x52, 0x10, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x75, 0x6d, - 0x65, 0x64, 0x42, 0x0b, 0x0a, 0x09, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x54, 0x79, 0x70, 0x65, 0x22, - 0x94, 0x01, 0x0a, 0x12, 0x53, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x54, 0x61, 0x73, 0x6b, - 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x36, 0x0a, 0x07, 0x76, 0x65, - 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x67, 0x6f, - 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x53, 0x74, - 0x72, 0x69, 0x6e, 0x67, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, - 0x6f, 0x6e, 0x12, 0x32, 0x0a, 0x05, 0x69, 0x6e, 0x70, 0x75, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, - 0x0b, 0x32, 0x1c, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x62, 0x75, 0x66, 0x2e, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, - 0x05, 0x69, 0x6e, 0x70, 0x75, 0x74, 0x22, 0xbe, 0x01, 0x0a, 0x1c, 0x43, 0x72, 0x65, 0x61, 0x74, - 0x65, 0x53, 0x75, 0x62, 0x4f, 0x72, 0x63, 0x68, 0x65, 0x73, 0x74, 0x72, 0x61, 0x74, 0x69, 0x6f, - 0x6e, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x1e, 0x0a, 0x0a, 0x69, 0x6e, 0x73, 0x74, 0x61, - 0x6e, 0x63, 0x65, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x69, 0x6e, 0x73, - 0x74, 0x61, 0x6e, 0x63, 0x65, 0x49, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, - 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x36, 0x0a, 0x07, 0x76, - 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x67, - 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x53, - 0x74, 0x72, 0x69, 0x6e, 0x67, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x07, 0x76, 0x65, 0x72, 0x73, - 0x69, 0x6f, 0x6e, 0x12, 0x32, 0x0a, 0x05, 0x69, 0x6e, 0x70, 0x75, 0x74, 0x18, 0x04, 0x20, 0x01, - 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x56, 0x61, 0x6c, 0x75, 0x65, - 0x52, 0x05, 0x69, 0x6e, 0x70, 0x75, 0x74, 0x22, 0x47, 0x0a, 0x11, 0x43, 0x72, 0x65, 0x61, 0x74, - 0x65, 0x54, 0x69, 0x6d, 0x65, 0x72, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x32, 0x0a, 0x06, - 0x66, 0x69, 0x72, 0x65, 0x41, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, - 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, - 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x06, 0x66, 0x69, 0x72, 0x65, 0x41, 0x74, - 0x22, 0x8b, 0x01, 0x0a, 0x0f, 0x53, 0x65, 0x6e, 0x64, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x41, 0x63, - 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x32, 0x0a, 0x08, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x4f, 0x72, 0x63, 0x68, 0x65, 0x73, 0x74, - 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x08, - 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, - 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x30, 0x0a, 0x04, - 0x64, 0x61, 0x74, 0x61, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x67, 0x6f, 0x6f, - 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x53, 0x74, 0x72, - 0x69, 0x6e, 0x67, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x22, 0x87, - 0x03, 0x0a, 0x1b, 0x43, 0x6f, 0x6d, 0x70, 0x6c, 0x65, 0x74, 0x65, 0x4f, 0x72, 0x63, 0x68, 0x65, - 0x73, 0x74, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x46, - 0x0a, 0x13, 0x6f, 0x72, 0x63, 0x68, 0x65, 0x73, 0x74, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, - 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x14, 0x2e, 0x4f, 0x72, - 0x63, 0x68, 0x65, 0x73, 0x74, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x74, 0x61, 0x74, 0x75, - 0x73, 0x52, 0x13, 0x6f, 0x72, 0x63, 0x68, 0x65, 0x73, 0x74, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, - 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x34, 0x0a, 0x06, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, - 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x56, - 0x61, 0x6c, 0x75, 0x65, 0x52, 0x06, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x12, 0x36, 0x0a, 0x07, - 0x64, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, - 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, - 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x07, 0x64, 0x65, 0x74, - 0x61, 0x69, 0x6c, 0x73, 0x12, 0x3c, 0x0a, 0x0a, 0x6e, 0x65, 0x77, 0x56, 0x65, 0x72, 0x73, 0x69, - 0x6f, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, - 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x53, 0x74, 0x72, 0x69, 0x6e, - 0x67, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x0a, 0x6e, 0x65, 0x77, 0x56, 0x65, 0x72, 0x73, 0x69, - 0x6f, 0x6e, 0x12, 0x37, 0x0a, 0x0f, 0x63, 0x61, 0x72, 0x72, 0x79, 0x6f, 0x76, 0x65, 0x72, 0x45, - 0x76, 0x65, 0x6e, 0x74, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0d, 0x2e, 0x48, 0x69, - 0x73, 0x74, 0x6f, 0x72, 0x79, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x52, 0x0f, 0x63, 0x61, 0x72, 0x72, - 0x79, 0x6f, 0x76, 0x65, 0x72, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x12, 0x3b, 0x0a, 0x0e, 0x66, - 0x61, 0x69, 0x6c, 0x75, 0x72, 0x65, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x18, 0x06, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x46, 0x61, 0x69, 0x6c, 0x75, 0x72, - 0x65, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x52, 0x0e, 0x66, 0x61, 0x69, 0x6c, 0x75, 0x72, - 0x65, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x22, 0x8e, 0x01, 0x0a, 0x1c, 0x54, 0x65, 0x72, - 0x6d, 0x69, 0x6e, 0x61, 0x74, 0x65, 0x4f, 0x72, 0x63, 0x68, 0x65, 0x73, 0x74, 0x72, 0x61, 0x74, - 0x69, 0x6f, 0x6e, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x1e, 0x0a, 0x0a, 0x69, 0x6e, 0x73, - 0x74, 0x61, 0x6e, 0x63, 0x65, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x69, - 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x49, 0x64, 0x12, 0x34, 0x0a, 0x06, 0x72, 0x65, 0x61, - 0x73, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x67, 0x6f, 0x6f, 0x67, - 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x53, 0x74, 0x72, 0x69, - 0x6e, 0x67, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x06, 0x72, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x12, - 0x18, 0x0a, 0x07, 0x72, 0x65, 0x63, 0x75, 0x72, 0x73, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, - 0x52, 0x07, 0x72, 0x65, 0x63, 0x75, 0x72, 0x73, 0x65, 0x22, 0xeb, 0x03, 0x0a, 0x12, 0x4f, 0x72, - 0x63, 0x68, 0x65, 0x73, 0x74, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, - 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x02, 0x69, 0x64, - 0x12, 0x39, 0x0a, 0x0c, 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x54, 0x61, 0x73, 0x6b, - 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x53, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, - 0x65, 0x54, 0x61, 0x73, 0x6b, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x48, 0x00, 0x52, 0x0c, 0x73, - 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x54, 0x61, 0x73, 0x6b, 0x12, 0x57, 0x0a, 0x16, 0x63, - 0x72, 0x65, 0x61, 0x74, 0x65, 0x53, 0x75, 0x62, 0x4f, 0x72, 0x63, 0x68, 0x65, 0x73, 0x74, 0x72, - 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x43, 0x72, - 0x65, 0x61, 0x74, 0x65, 0x53, 0x75, 0x62, 0x4f, 0x72, 0x63, 0x68, 0x65, 0x73, 0x74, 0x72, 0x61, - 0x74, 0x69, 0x6f, 0x6e, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x48, 0x00, 0x52, 0x16, 0x63, 0x72, - 0x65, 0x61, 0x74, 0x65, 0x53, 0x75, 0x62, 0x4f, 0x72, 0x63, 0x68, 0x65, 0x73, 0x74, 0x72, 0x61, - 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x36, 0x0a, 0x0b, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x69, - 0x6d, 0x65, 0x72, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x43, 0x72, 0x65, 0x61, - 0x74, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x72, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x48, 0x00, 0x52, - 0x0b, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x72, 0x12, 0x30, 0x0a, 0x09, - 0x73, 0x65, 0x6e, 0x64, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, - 0x10, 0x2e, 0x53, 0x65, 0x6e, 0x64, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x41, 0x63, 0x74, 0x69, 0x6f, - 0x6e, 0x48, 0x00, 0x52, 0x09, 0x73, 0x65, 0x6e, 0x64, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x12, 0x54, - 0x0a, 0x15, 0x63, 0x6f, 0x6d, 0x70, 0x6c, 0x65, 0x74, 0x65, 0x4f, 0x72, 0x63, 0x68, 0x65, 0x73, - 0x74, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, - 0x43, 0x6f, 0x6d, 0x70, 0x6c, 0x65, 0x74, 0x65, 0x4f, 0x72, 0x63, 0x68, 0x65, 0x73, 0x74, 0x72, - 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x48, 0x00, 0x52, 0x15, 0x63, - 0x6f, 0x6d, 0x70, 0x6c, 0x65, 0x74, 0x65, 0x4f, 0x72, 0x63, 0x68, 0x65, 0x73, 0x74, 0x72, 0x61, - 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x57, 0x0a, 0x16, 0x74, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x61, 0x74, - 0x65, 0x4f, 0x72, 0x63, 0x68, 0x65, 0x73, 0x74, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x07, - 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x54, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x61, 0x74, 0x65, - 0x4f, 0x72, 0x63, 0x68, 0x65, 0x73, 0x74, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x41, 0x63, 0x74, - 0x69, 0x6f, 0x6e, 0x48, 0x00, 0x52, 0x16, 0x74, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x61, 0x74, 0x65, - 0x4f, 0x72, 0x63, 0x68, 0x65, 0x73, 0x74, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x42, 0x18, 0x0a, - 0x16, 0x6f, 0x72, 0x63, 0x68, 0x65, 0x73, 0x74, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x41, 0x63, 0x74, - 0x69, 0x6f, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x22, 0x9c, 0x02, 0x0a, 0x13, 0x4f, 0x72, 0x63, 0x68, - 0x65, 0x73, 0x74, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, - 0x1e, 0x0a, 0x0a, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x49, 0x64, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x0a, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x49, 0x64, 0x12, - 0x3e, 0x0a, 0x0b, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x18, 0x02, - 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x56, 0x61, 0x6c, - 0x75, 0x65, 0x52, 0x0b, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x12, - 0x2d, 0x0a, 0x0a, 0x70, 0x61, 0x73, 0x74, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x18, 0x03, 0x20, - 0x03, 0x28, 0x0b, 0x32, 0x0d, 0x2e, 0x48, 0x69, 0x73, 0x74, 0x6f, 0x72, 0x79, 0x45, 0x76, 0x65, - 0x6e, 0x74, 0x52, 0x0a, 0x70, 0x61, 0x73, 0x74, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x12, 0x2b, - 0x0a, 0x09, 0x6e, 0x65, 0x77, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, - 0x0b, 0x32, 0x0d, 0x2e, 0x48, 0x69, 0x73, 0x74, 0x6f, 0x72, 0x79, 0x45, 0x76, 0x65, 0x6e, 0x74, - 0x52, 0x09, 0x6e, 0x65, 0x77, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x12, 0x49, 0x0a, 0x10, 0x65, - 0x6e, 0x74, 0x69, 0x74, 0x79, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x73, 0x18, - 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x4f, 0x72, 0x63, 0x68, 0x65, 0x73, 0x74, 0x72, - 0x61, 0x74, 0x6f, 0x72, 0x45, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x65, - 0x74, 0x65, 0x72, 0x73, 0x52, 0x10, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x50, 0x61, 0x72, 0x61, - 0x6d, 0x65, 0x74, 0x65, 0x72, 0x73, 0x22, 0xa7, 0x01, 0x0a, 0x14, 0x4f, 0x72, 0x63, 0x68, 0x65, - 0x73, 0x74, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, - 0x1e, 0x0a, 0x0a, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x49, 0x64, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x0a, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x49, 0x64, 0x12, - 0x2d, 0x0a, 0x07, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, - 0x32, 0x13, 0x2e, 0x4f, 0x72, 0x63, 0x68, 0x65, 0x73, 0x74, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x41, - 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x07, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x40, - 0x0a, 0x0c, 0x63, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x03, - 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x56, 0x61, 0x6c, - 0x75, 0x65, 0x52, 0x0c, 0x63, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, - 0x22, 0xea, 0x02, 0x0a, 0x15, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x49, 0x6e, 0x73, 0x74, 0x61, - 0x6e, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1e, 0x0a, 0x0a, 0x69, 0x6e, - 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, - 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x49, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, - 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x36, - 0x0a, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, - 0x1c, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, - 0x66, 0x2e, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x07, 0x76, - 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x32, 0x0a, 0x05, 0x69, 0x6e, 0x70, 0x75, 0x74, 0x18, - 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x56, 0x61, - 0x6c, 0x75, 0x65, 0x52, 0x05, 0x69, 0x6e, 0x70, 0x75, 0x74, 0x12, 0x54, 0x0a, 0x17, 0x73, 0x63, - 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x64, 0x53, 0x74, 0x61, 0x72, 0x74, 0x54, 0x69, 0x6d, 0x65, - 0x73, 0x74, 0x61, 0x6d, 0x70, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, - 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, - 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x17, 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, - 0x65, 0x64, 0x53, 0x74, 0x61, 0x72, 0x74, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, - 0x12, 0x5b, 0x0a, 0x1a, 0x6f, 0x72, 0x63, 0x68, 0x65, 0x73, 0x74, 0x72, 0x61, 0x74, 0x69, 0x6f, - 0x6e, 0x49, 0x64, 0x52, 0x65, 0x75, 0x73, 0x65, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x18, 0x06, - 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x4f, 0x72, 0x63, 0x68, 0x65, 0x73, 0x74, 0x72, 0x61, - 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x52, 0x65, 0x75, 0x73, 0x65, 0x50, 0x6f, 0x6c, 0x69, 0x63, - 0x79, 0x52, 0x1a, 0x6f, 0x72, 0x63, 0x68, 0x65, 0x73, 0x74, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, - 0x49, 0x64, 0x52, 0x65, 0x75, 0x73, 0x65, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x22, 0x90, 0x01, - 0x0a, 0x1a, 0x4f, 0x72, 0x63, 0x68, 0x65, 0x73, 0x74, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x49, - 0x64, 0x52, 0x65, 0x75, 0x73, 0x65, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12, 0x3e, 0x0a, 0x0f, - 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, - 0x01, 0x20, 0x03, 0x28, 0x0e, 0x32, 0x14, 0x2e, 0x4f, 0x72, 0x63, 0x68, 0x65, 0x73, 0x74, 0x72, - 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x0f, 0x6f, 0x70, 0x65, - 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x32, 0x0a, 0x06, - 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1a, 0x2e, 0x43, - 0x72, 0x65, 0x61, 0x74, 0x65, 0x4f, 0x72, 0x63, 0x68, 0x65, 0x73, 0x74, 0x72, 0x61, 0x74, 0x69, - 0x6f, 0x6e, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x06, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, - 0x22, 0x38, 0x0a, 0x16, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, - 0x63, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x1e, 0x0a, 0x0a, 0x69, 0x6e, - 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, - 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x49, 0x64, 0x22, 0x66, 0x0a, 0x12, 0x47, 0x65, - 0x74, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, - 0x12, 0x1e, 0x0a, 0x0a, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x49, 0x64, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x49, 0x64, - 0x12, 0x30, 0x0a, 0x13, 0x67, 0x65, 0x74, 0x49, 0x6e, 0x70, 0x75, 0x74, 0x73, 0x41, 0x6e, 0x64, - 0x4f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x13, 0x67, - 0x65, 0x74, 0x49, 0x6e, 0x70, 0x75, 0x74, 0x73, 0x41, 0x6e, 0x64, 0x4f, 0x75, 0x74, 0x70, 0x75, - 0x74, 0x73, 0x22, 0x72, 0x0a, 0x13, 0x47, 0x65, 0x74, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, - 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x65, 0x78, 0x69, - 0x73, 0x74, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x06, 0x65, 0x78, 0x69, 0x73, 0x74, - 0x73, 0x12, 0x43, 0x0a, 0x12, 0x6f, 0x72, 0x63, 0x68, 0x65, 0x73, 0x74, 0x72, 0x61, 0x74, 0x69, - 0x6f, 0x6e, 0x53, 0x74, 0x61, 0x74, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x13, 0x2e, - 0x4f, 0x72, 0x63, 0x68, 0x65, 0x73, 0x74, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x74, 0x61, - 0x74, 0x65, 0x52, 0x12, 0x6f, 0x72, 0x63, 0x68, 0x65, 0x73, 0x74, 0x72, 0x61, 0x74, 0x69, 0x6f, - 0x6e, 0x53, 0x74, 0x61, 0x74, 0x65, 0x22, 0x6d, 0x0a, 0x15, 0x52, 0x65, 0x77, 0x69, 0x6e, 0x64, - 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, - 0x1e, 0x0a, 0x0a, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x49, 0x64, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x0a, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x49, 0x64, 0x12, - 0x34, 0x0a, 0x06, 0x72, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, - 0x1c, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, - 0x66, 0x2e, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x06, 0x72, - 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x22, 0x18, 0x0a, 0x16, 0x52, 0x65, 0x77, 0x69, 0x6e, 0x64, 0x49, - 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, - 0x9f, 0x05, 0x0a, 0x12, 0x4f, 0x72, 0x63, 0x68, 0x65, 0x73, 0x74, 0x72, 0x61, 0x74, 0x69, 0x6f, - 0x6e, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x1e, 0x0a, 0x0a, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, - 0x63, 0x65, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x69, 0x6e, 0x73, 0x74, - 0x61, 0x6e, 0x63, 0x65, 0x49, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x36, 0x0a, 0x07, 0x76, 0x65, - 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x67, 0x6f, - 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x53, 0x74, - 0x72, 0x69, 0x6e, 0x67, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, - 0x6f, 0x6e, 0x12, 0x46, 0x0a, 0x13, 0x6f, 0x72, 0x63, 0x68, 0x65, 0x73, 0x74, 0x72, 0x61, 0x74, - 0x69, 0x6f, 0x6e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0e, 0x32, - 0x14, 0x2e, 0x4f, 0x72, 0x63, 0x68, 0x65, 0x73, 0x74, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, - 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x13, 0x6f, 0x72, 0x63, 0x68, 0x65, 0x73, 0x74, 0x72, 0x61, - 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x54, 0x0a, 0x17, 0x73, 0x63, - 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x64, 0x53, 0x74, 0x61, 0x72, 0x74, 0x54, 0x69, 0x6d, 0x65, - 0x73, 0x74, 0x61, 0x6d, 0x70, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, - 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, - 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x17, 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, - 0x65, 0x64, 0x53, 0x74, 0x61, 0x72, 0x74, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, - 0x12, 0x46, 0x0a, 0x10, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x73, - 0x74, 0x61, 0x6d, 0x70, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, - 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, - 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x10, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x54, - 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x12, 0x4e, 0x0a, 0x14, 0x6c, 0x61, 0x73, 0x74, - 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, - 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, - 0x6d, 0x70, 0x52, 0x14, 0x6c, 0x61, 0x73, 0x74, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x64, 0x54, - 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x12, 0x32, 0x0a, 0x05, 0x69, 0x6e, 0x70, 0x75, - 0x74, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, - 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, - 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x05, 0x69, 0x6e, 0x70, 0x75, 0x74, 0x12, 0x34, 0x0a, 0x06, - 0x6f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x18, 0x09, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x67, - 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x53, - 0x74, 0x72, 0x69, 0x6e, 0x67, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x06, 0x6f, 0x75, 0x74, 0x70, - 0x75, 0x74, 0x12, 0x40, 0x0a, 0x0c, 0x63, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x53, 0x74, 0x61, 0x74, - 0x75, 0x73, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, - 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x53, 0x74, 0x72, 0x69, 0x6e, - 0x67, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x0c, 0x63, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x53, 0x74, - 0x61, 0x74, 0x75, 0x73, 0x12, 0x3b, 0x0a, 0x0e, 0x66, 0x61, 0x69, 0x6c, 0x75, 0x72, 0x65, 0x44, - 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x54, - 0x61, 0x73, 0x6b, 0x46, 0x61, 0x69, 0x6c, 0x75, 0x72, 0x65, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, - 0x73, 0x52, 0x0e, 0x66, 0x61, 0x69, 0x6c, 0x75, 0x72, 0x65, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, - 0x73, 0x22, 0x7b, 0x0a, 0x11, 0x52, 0x61, 0x69, 0x73, 0x65, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1e, 0x0a, 0x0a, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, - 0x63, 0x65, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x69, 0x6e, 0x73, 0x74, - 0x61, 0x6e, 0x63, 0x65, 0x49, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x32, 0x0a, 0x05, 0x69, 0x6e, - 0x70, 0x75, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x67, 0x6f, 0x6f, 0x67, - 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x53, 0x74, 0x72, 0x69, - 0x6e, 0x67, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x05, 0x69, 0x6e, 0x70, 0x75, 0x74, 0x22, 0x14, - 0x0a, 0x12, 0x52, 0x61, 0x69, 0x73, 0x65, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x86, 0x01, 0x0a, 0x10, 0x54, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x61, - 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1e, 0x0a, 0x0a, 0x69, 0x6e, 0x73, - 0x74, 0x61, 0x6e, 0x63, 0x65, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x69, - 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x49, 0x64, 0x12, 0x34, 0x0a, 0x06, 0x6f, 0x75, 0x74, - 0x70, 0x75, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x67, 0x6f, 0x6f, 0x67, - 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x53, 0x74, 0x72, 0x69, - 0x6e, 0x67, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x06, 0x6f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x12, - 0x1c, 0x0a, 0x09, 0x72, 0x65, 0x63, 0x75, 0x72, 0x73, 0x69, 0x76, 0x65, 0x18, 0x03, 0x20, 0x01, - 0x28, 0x08, 0x52, 0x09, 0x72, 0x65, 0x63, 0x75, 0x72, 0x73, 0x69, 0x76, 0x65, 0x22, 0x13, 0x0a, - 0x11, 0x54, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x61, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x22, 0x66, 0x0a, 0x0e, 0x53, 0x75, 0x73, 0x70, 0x65, 0x6e, 0x64, 0x52, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x12, 0x1e, 0x0a, 0x0a, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, - 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, - 0x63, 0x65, 0x49, 0x64, 0x12, 0x34, 0x0a, 0x06, 0x72, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x18, 0x02, - 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x56, 0x61, 0x6c, - 0x75, 0x65, 0x52, 0x06, 0x72, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x22, 0x11, 0x0a, 0x0f, 0x53, 0x75, - 0x73, 0x70, 0x65, 0x6e, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x65, 0x0a, - 0x0d, 0x52, 0x65, 0x73, 0x75, 0x6d, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1e, - 0x0a, 0x0a, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x0a, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x49, 0x64, 0x12, 0x34, - 0x0a, 0x06, 0x72, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, - 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, - 0x2e, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x06, 0x72, 0x65, - 0x61, 0x73, 0x6f, 0x6e, 0x22, 0x10, 0x0a, 0x0e, 0x52, 0x65, 0x73, 0x75, 0x6d, 0x65, 0x52, 0x65, - 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x3d, 0x0a, 0x15, 0x51, 0x75, 0x65, 0x72, 0x79, 0x49, - 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, - 0x24, 0x0a, 0x05, 0x71, 0x75, 0x65, 0x72, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0e, - 0x2e, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, 0x05, - 0x71, 0x75, 0x65, 0x72, 0x79, 0x22, 0x8d, 0x04, 0x0a, 0x0d, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, - 0x63, 0x65, 0x51, 0x75, 0x65, 0x72, 0x79, 0x12, 0x3a, 0x0a, 0x0d, 0x72, 0x75, 0x6e, 0x74, 0x69, - 0x6d, 0x65, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0e, 0x32, 0x14, - 0x2e, 0x4f, 0x72, 0x63, 0x68, 0x65, 0x73, 0x74, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x74, - 0x61, 0x74, 0x75, 0x73, 0x52, 0x0d, 0x72, 0x75, 0x6e, 0x74, 0x69, 0x6d, 0x65, 0x53, 0x74, 0x61, - 0x74, 0x75, 0x73, 0x12, 0x44, 0x0a, 0x0f, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x54, 0x69, - 0x6d, 0x65, 0x46, 0x72, 0x6f, 0x6d, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, - 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, - 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x0f, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, - 0x64, 0x54, 0x69, 0x6d, 0x65, 0x46, 0x72, 0x6f, 0x6d, 0x12, 0x40, 0x0a, 0x0d, 0x63, 0x72, 0x65, - 0x61, 0x74, 0x65, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x54, 0x6f, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, - 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, - 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x0d, 0x63, 0x72, - 0x65, 0x61, 0x74, 0x65, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x54, 0x6f, 0x12, 0x40, 0x0a, 0x0c, 0x74, - 0x61, 0x73, 0x6b, 0x48, 0x75, 0x62, 0x4e, 0x61, 0x6d, 0x65, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, - 0x0b, 0x32, 0x1c, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x62, 0x75, 0x66, 0x2e, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, - 0x0c, 0x74, 0x61, 0x73, 0x6b, 0x48, 0x75, 0x62, 0x4e, 0x61, 0x6d, 0x65, 0x73, 0x12, 0x2a, 0x0a, - 0x10, 0x6d, 0x61, 0x78, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x43, 0x6f, 0x75, 0x6e, - 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x05, 0x52, 0x10, 0x6d, 0x61, 0x78, 0x49, 0x6e, 0x73, 0x74, - 0x61, 0x6e, 0x63, 0x65, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x4a, 0x0a, 0x11, 0x63, 0x6f, 0x6e, - 0x74, 0x69, 0x6e, 0x75, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x06, - 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x56, 0x61, 0x6c, - 0x75, 0x65, 0x52, 0x11, 0x63, 0x6f, 0x6e, 0x74, 0x69, 0x6e, 0x75, 0x61, 0x74, 0x69, 0x6f, 0x6e, - 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x48, 0x0a, 0x10, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, - 0x65, 0x49, 0x64, 0x50, 0x72, 0x65, 0x66, 0x69, 0x78, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, - 0x1c, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, - 0x66, 0x2e, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x10, 0x69, - 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x49, 0x64, 0x50, 0x72, 0x65, 0x66, 0x69, 0x78, 0x12, - 0x34, 0x0a, 0x15, 0x66, 0x65, 0x74, 0x63, 0x68, 0x49, 0x6e, 0x70, 0x75, 0x74, 0x73, 0x41, 0x6e, - 0x64, 0x4f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x73, 0x18, 0x08, 0x20, 0x01, 0x28, 0x08, 0x52, 0x15, - 0x66, 0x65, 0x74, 0x63, 0x68, 0x49, 0x6e, 0x70, 0x75, 0x74, 0x73, 0x41, 0x6e, 0x64, 0x4f, 0x75, - 0x74, 0x70, 0x75, 0x74, 0x73, 0x22, 0xa9, 0x01, 0x0a, 0x16, 0x51, 0x75, 0x65, 0x72, 0x79, 0x49, - 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x12, 0x43, 0x0a, 0x12, 0x6f, 0x72, 0x63, 0x68, 0x65, 0x73, 0x74, 0x72, 0x61, 0x74, 0x69, 0x6f, - 0x6e, 0x53, 0x74, 0x61, 0x74, 0x65, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x4f, - 0x72, 0x63, 0x68, 0x65, 0x73, 0x74, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x74, 0x61, 0x74, - 0x65, 0x52, 0x12, 0x6f, 0x72, 0x63, 0x68, 0x65, 0x73, 0x74, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, - 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x4a, 0x0a, 0x11, 0x63, 0x6f, 0x6e, 0x74, 0x69, 0x6e, 0x75, - 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, - 0x32, 0x1c, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, - 0x75, 0x66, 0x2e, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x11, - 0x63, 0x6f, 0x6e, 0x74, 0x69, 0x6e, 0x75, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x6f, 0x6b, 0x65, - 0x6e, 0x22, 0xac, 0x01, 0x0a, 0x15, 0x50, 0x75, 0x72, 0x67, 0x65, 0x49, 0x6e, 0x73, 0x74, 0x61, - 0x6e, 0x63, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x20, 0x0a, 0x0a, 0x69, - 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x48, - 0x00, 0x52, 0x0a, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x49, 0x64, 0x12, 0x48, 0x0a, - 0x13, 0x70, 0x75, 0x72, 0x67, 0x65, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x46, 0x69, - 0x6c, 0x74, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x50, 0x75, 0x72, - 0x67, 0x65, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, - 0x48, 0x00, 0x52, 0x13, 0x70, 0x75, 0x72, 0x67, 0x65, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, - 0x65, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x12, 0x1c, 0x0a, 0x09, 0x72, 0x65, 0x63, 0x75, 0x72, - 0x73, 0x69, 0x76, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x09, 0x72, 0x65, 0x63, 0x75, - 0x72, 0x73, 0x69, 0x76, 0x65, 0x42, 0x09, 0x0a, 0x07, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, - 0x22, 0xd9, 0x01, 0x0a, 0x13, 0x50, 0x75, 0x72, 0x67, 0x65, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, - 0x63, 0x65, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x12, 0x44, 0x0a, 0x0f, 0x63, 0x72, 0x65, 0x61, - 0x74, 0x65, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x46, 0x72, 0x6f, 0x6d, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x0f, 0x63, - 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x46, 0x72, 0x6f, 0x6d, 0x12, 0x40, - 0x0a, 0x0d, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x54, 0x6f, 0x18, - 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, - 0x70, 0x52, 0x0d, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x54, 0x6f, - 0x12, 0x3a, 0x0a, 0x0d, 0x72, 0x75, 0x6e, 0x74, 0x69, 0x6d, 0x65, 0x53, 0x74, 0x61, 0x74, 0x75, - 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0e, 0x32, 0x14, 0x2e, 0x4f, 0x72, 0x63, 0x68, 0x65, 0x73, - 0x74, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x0d, 0x72, - 0x75, 0x6e, 0x74, 0x69, 0x6d, 0x65, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x22, 0x4c, 0x0a, 0x16, - 0x50, 0x75, 0x72, 0x67, 0x65, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x52, 0x65, - 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x32, 0x0a, 0x14, 0x64, 0x65, 0x6c, 0x65, 0x74, 0x65, - 0x64, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x05, 0x52, 0x14, 0x64, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x64, 0x49, 0x6e, 0x73, - 0x74, 0x61, 0x6e, 0x63, 0x65, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x22, 0x42, 0x0a, 0x14, 0x43, 0x72, - 0x65, 0x61, 0x74, 0x65, 0x54, 0x61, 0x73, 0x6b, 0x48, 0x75, 0x62, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x12, 0x2a, 0x0a, 0x10, 0x72, 0x65, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x49, 0x66, - 0x45, 0x78, 0x69, 0x73, 0x74, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x10, 0x72, 0x65, - 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x49, 0x66, 0x45, 0x78, 0x69, 0x73, 0x74, 0x73, 0x22, 0x17, - 0x0a, 0x15, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x61, 0x73, 0x6b, 0x48, 0x75, 0x62, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x16, 0x0a, 0x14, 0x44, 0x65, 0x6c, 0x65, 0x74, - 0x65, 0x54, 0x61, 0x73, 0x6b, 0x48, 0x75, 0x62, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, - 0x17, 0x0a, 0x15, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x54, 0x61, 0x73, 0x6b, 0x48, 0x75, 0x62, - 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0xdd, 0x01, 0x0a, 0x13, 0x53, 0x69, 0x67, - 0x6e, 0x61, 0x6c, 0x45, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, - 0x12, 0x1e, 0x0a, 0x0a, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x49, 0x64, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x49, 0x64, - 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, - 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x32, 0x0a, 0x05, 0x69, 0x6e, 0x70, 0x75, 0x74, 0x18, 0x03, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x56, 0x61, 0x6c, 0x75, - 0x65, 0x52, 0x05, 0x69, 0x6e, 0x70, 0x75, 0x74, 0x12, 0x1c, 0x0a, 0x09, 0x72, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x49, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x72, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x49, 0x64, 0x12, 0x40, 0x0a, 0x0d, 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, - 0x6c, 0x65, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, - 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, - 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x0d, 0x73, 0x63, 0x68, 0x65, 0x64, - 0x75, 0x6c, 0x65, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x22, 0x16, 0x0a, 0x14, 0x53, 0x69, 0x67, 0x6e, - 0x61, 0x6c, 0x45, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x22, 0x56, 0x0a, 0x10, 0x47, 0x65, 0x74, 0x45, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x52, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x12, 0x1e, 0x0a, 0x0a, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, - 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, - 0x63, 0x65, 0x49, 0x64, 0x12, 0x22, 0x0a, 0x0c, 0x69, 0x6e, 0x63, 0x6c, 0x75, 0x64, 0x65, 0x53, - 0x74, 0x61, 0x74, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0c, 0x69, 0x6e, 0x63, 0x6c, - 0x75, 0x64, 0x65, 0x53, 0x74, 0x61, 0x74, 0x65, 0x22, 0x54, 0x0a, 0x11, 0x47, 0x65, 0x74, 0x45, - 0x6e, 0x74, 0x69, 0x74, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x16, 0x0a, - 0x06, 0x65, 0x78, 0x69, 0x73, 0x74, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x06, 0x65, - 0x78, 0x69, 0x73, 0x74, 0x73, 0x12, 0x27, 0x0a, 0x06, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x18, - 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0f, 0x2e, 0x45, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x4d, 0x65, - 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x52, 0x06, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x22, 0xc0, - 0x03, 0x0a, 0x0b, 0x45, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x51, 0x75, 0x65, 0x72, 0x79, 0x12, 0x50, - 0x0a, 0x14, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x49, 0x64, 0x53, 0x74, 0x61, 0x72, - 0x74, 0x73, 0x57, 0x69, 0x74, 0x68, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x67, - 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x53, - 0x74, 0x72, 0x69, 0x6e, 0x67, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x14, 0x69, 0x6e, 0x73, 0x74, - 0x61, 0x6e, 0x63, 0x65, 0x49, 0x64, 0x53, 0x74, 0x61, 0x72, 0x74, 0x73, 0x57, 0x69, 0x74, 0x68, - 0x12, 0x46, 0x0a, 0x10, 0x6c, 0x61, 0x73, 0x74, 0x4d, 0x6f, 0x64, 0x69, 0x66, 0x69, 0x65, 0x64, - 0x46, 0x72, 0x6f, 0x6d, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, - 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, - 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x10, 0x6c, 0x61, 0x73, 0x74, 0x4d, 0x6f, 0x64, 0x69, - 0x66, 0x69, 0x65, 0x64, 0x46, 0x72, 0x6f, 0x6d, 0x12, 0x42, 0x0a, 0x0e, 0x6c, 0x61, 0x73, 0x74, - 0x4d, 0x6f, 0x64, 0x69, 0x66, 0x69, 0x65, 0x64, 0x54, 0x6f, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, - 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, - 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x0e, 0x6c, 0x61, - 0x73, 0x74, 0x4d, 0x6f, 0x64, 0x69, 0x66, 0x69, 0x65, 0x64, 0x54, 0x6f, 0x12, 0x22, 0x0a, 0x0c, - 0x69, 0x6e, 0x63, 0x6c, 0x75, 0x64, 0x65, 0x53, 0x74, 0x61, 0x74, 0x65, 0x18, 0x04, 0x20, 0x01, - 0x28, 0x08, 0x52, 0x0c, 0x69, 0x6e, 0x63, 0x6c, 0x75, 0x64, 0x65, 0x53, 0x74, 0x61, 0x74, 0x65, - 0x12, 0x2a, 0x0a, 0x10, 0x69, 0x6e, 0x63, 0x6c, 0x75, 0x64, 0x65, 0x54, 0x72, 0x61, 0x6e, 0x73, - 0x69, 0x65, 0x6e, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x08, 0x52, 0x10, 0x69, 0x6e, 0x63, 0x6c, - 0x75, 0x64, 0x65, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x69, 0x65, 0x6e, 0x74, 0x12, 0x37, 0x0a, 0x08, - 0x70, 0x61, 0x67, 0x65, 0x53, 0x69, 0x7a, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, - 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, - 0x2e, 0x49, 0x6e, 0x74, 0x33, 0x32, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x08, 0x70, 0x61, 0x67, - 0x65, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x4a, 0x0a, 0x11, 0x63, 0x6f, 0x6e, 0x74, 0x69, 0x6e, 0x75, - 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, - 0x32, 0x1c, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, - 0x75, 0x66, 0x2e, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x11, - 0x63, 0x6f, 0x6e, 0x74, 0x69, 0x6e, 0x75, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x6f, 0x6b, 0x65, - 0x6e, 0x22, 0x3a, 0x0a, 0x14, 0x51, 0x75, 0x65, 0x72, 0x79, 0x45, 0x6e, 0x74, 0x69, 0x74, 0x69, - 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x22, 0x0a, 0x05, 0x71, 0x75, 0x65, - 0x72, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0c, 0x2e, 0x45, 0x6e, 0x74, 0x69, 0x74, - 0x79, 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, 0x05, 0x71, 0x75, 0x65, 0x72, 0x79, 0x22, 0x90, 0x01, - 0x0a, 0x15, 0x51, 0x75, 0x65, 0x72, 0x79, 0x45, 0x6e, 0x74, 0x69, 0x74, 0x69, 0x65, 0x73, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2b, 0x0a, 0x08, 0x65, 0x6e, 0x74, 0x69, 0x74, - 0x69, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0f, 0x2e, 0x45, 0x6e, 0x74, 0x69, - 0x74, 0x79, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x52, 0x08, 0x65, 0x6e, 0x74, 0x69, - 0x74, 0x69, 0x65, 0x73, 0x12, 0x4a, 0x0a, 0x11, 0x63, 0x6f, 0x6e, 0x74, 0x69, 0x6e, 0x75, 0x61, - 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, - 0x1c, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, - 0x66, 0x2e, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x11, 0x63, - 0x6f, 0x6e, 0x74, 0x69, 0x6e, 0x75, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x6f, 0x6b, 0x65, 0x6e, - 0x22, 0xa6, 0x02, 0x0a, 0x0e, 0x45, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x4d, 0x65, 0x74, 0x61, 0x64, - 0x61, 0x74, 0x61, 0x12, 0x1e, 0x0a, 0x0a, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x49, - 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, - 0x65, 0x49, 0x64, 0x12, 0x46, 0x0a, 0x10, 0x6c, 0x61, 0x73, 0x74, 0x4d, 0x6f, 0x64, 0x69, 0x66, - 0x69, 0x65, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, - 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, - 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x10, 0x6c, 0x61, 0x73, 0x74, 0x4d, - 0x6f, 0x64, 0x69, 0x66, 0x69, 0x65, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x2a, 0x0a, 0x10, 0x62, - 0x61, 0x63, 0x6b, 0x6c, 0x6f, 0x67, 0x51, 0x75, 0x65, 0x75, 0x65, 0x53, 0x69, 0x7a, 0x65, 0x18, - 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x10, 0x62, 0x61, 0x63, 0x6b, 0x6c, 0x6f, 0x67, 0x51, 0x75, - 0x65, 0x75, 0x65, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x38, 0x0a, 0x08, 0x6c, 0x6f, 0x63, 0x6b, 0x65, - 0x64, 0x42, 0x79, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x67, 0x6f, 0x6f, 0x67, - 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x53, 0x74, 0x72, 0x69, - 0x6e, 0x67, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x08, 0x6c, 0x6f, 0x63, 0x6b, 0x65, 0x64, 0x42, - 0x79, 0x12, 0x46, 0x0a, 0x0f, 0x73, 0x65, 0x72, 0x69, 0x61, 0x6c, 0x69, 0x7a, 0x65, 0x64, 0x53, - 0x74, 0x61, 0x74, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x67, 0x6f, 0x6f, - 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x53, 0x74, 0x72, - 0x69, 0x6e, 0x67, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x0f, 0x73, 0x65, 0x72, 0x69, 0x61, 0x6c, - 0x69, 0x7a, 0x65, 0x64, 0x53, 0x74, 0x61, 0x74, 0x65, 0x22, 0xcd, 0x01, 0x0a, 0x19, 0x43, 0x6c, - 0x65, 0x61, 0x6e, 0x45, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, - 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x4a, 0x0a, 0x11, 0x63, 0x6f, 0x6e, 0x74, 0x69, - 0x6e, 0x75, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x56, 0x61, 0x6c, 0x75, 0x65, - 0x52, 0x11, 0x63, 0x6f, 0x6e, 0x74, 0x69, 0x6e, 0x75, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x6f, - 0x6b, 0x65, 0x6e, 0x12, 0x30, 0x0a, 0x13, 0x72, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x45, 0x6d, 0x70, - 0x74, 0x79, 0x45, 0x6e, 0x74, 0x69, 0x74, 0x69, 0x65, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, - 0x52, 0x13, 0x72, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x45, 0x6e, 0x74, - 0x69, 0x74, 0x69, 0x65, 0x73, 0x12, 0x32, 0x0a, 0x14, 0x72, 0x65, 0x6c, 0x65, 0x61, 0x73, 0x65, - 0x4f, 0x72, 0x70, 0x68, 0x61, 0x6e, 0x65, 0x64, 0x4c, 0x6f, 0x63, 0x6b, 0x73, 0x18, 0x03, 0x20, - 0x01, 0x28, 0x08, 0x52, 0x14, 0x72, 0x65, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x4f, 0x72, 0x70, 0x68, - 0x61, 0x6e, 0x65, 0x64, 0x4c, 0x6f, 0x63, 0x6b, 0x73, 0x22, 0xd2, 0x01, 0x0a, 0x1a, 0x43, 0x6c, - 0x65, 0x61, 0x6e, 0x45, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, - 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x4a, 0x0a, 0x11, 0x63, 0x6f, 0x6e, 0x74, - 0x69, 0x6e, 0x75, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x56, 0x61, 0x6c, 0x75, - 0x65, 0x52, 0x11, 0x63, 0x6f, 0x6e, 0x74, 0x69, 0x6e, 0x75, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x54, - 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x32, 0x0a, 0x14, 0x65, 0x6d, 0x70, 0x74, 0x79, 0x45, 0x6e, 0x74, - 0x69, 0x74, 0x69, 0x65, 0x73, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x64, 0x18, 0x02, 0x20, 0x01, - 0x28, 0x05, 0x52, 0x14, 0x65, 0x6d, 0x70, 0x74, 0x79, 0x45, 0x6e, 0x74, 0x69, 0x74, 0x69, 0x65, - 0x73, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x64, 0x12, 0x34, 0x0a, 0x15, 0x6f, 0x72, 0x70, 0x68, - 0x61, 0x6e, 0x65, 0x64, 0x4c, 0x6f, 0x63, 0x6b, 0x73, 0x52, 0x65, 0x6c, 0x65, 0x61, 0x73, 0x65, - 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x15, 0x6f, 0x72, 0x70, 0x68, 0x61, 0x6e, 0x65, - 0x64, 0x4c, 0x6f, 0x63, 0x6b, 0x73, 0x52, 0x65, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x64, 0x22, 0x79, - 0x0a, 0x1c, 0x4f, 0x72, 0x63, 0x68, 0x65, 0x73, 0x74, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x45, 0x6e, - 0x74, 0x69, 0x74, 0x79, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x73, 0x12, 0x59, - 0x0a, 0x1a, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x52, - 0x65, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x57, 0x69, 0x6e, 0x64, 0x6f, 0x77, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x1a, 0x65, - 0x6e, 0x74, 0x69, 0x74, 0x79, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x52, 0x65, 0x6f, 0x72, - 0x64, 0x65, 0x72, 0x57, 0x69, 0x6e, 0x64, 0x6f, 0x77, 0x22, 0xa7, 0x01, 0x0a, 0x12, 0x45, 0x6e, - 0x74, 0x69, 0x74, 0x79, 0x42, 0x61, 0x74, 0x63, 0x68, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, - 0x12, 0x1e, 0x0a, 0x0a, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x49, 0x64, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x49, 0x64, - 0x12, 0x3e, 0x0a, 0x0b, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x53, 0x74, 0x61, 0x74, 0x65, 0x18, - 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x56, 0x61, - 0x6c, 0x75, 0x65, 0x52, 0x0b, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x53, 0x74, 0x61, 0x74, 0x65, - 0x12, 0x31, 0x0a, 0x0a, 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x03, - 0x20, 0x03, 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, - 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x52, 0x0a, 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, - 0x6f, 0x6e, 0x73, 0x22, 0xe8, 0x01, 0x0a, 0x11, 0x45, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x42, 0x61, - 0x74, 0x63, 0x68, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x12, 0x2a, 0x0a, 0x07, 0x72, 0x65, 0x73, - 0x75, 0x6c, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x4f, 0x70, 0x65, - 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x52, 0x07, 0x72, 0x65, - 0x73, 0x75, 0x6c, 0x74, 0x73, 0x12, 0x2a, 0x0a, 0x07, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, - 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, - 0x6f, 0x6e, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x07, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, - 0x73, 0x12, 0x3e, 0x0a, 0x0b, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x53, 0x74, 0x61, 0x74, 0x65, - 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x56, - 0x61, 0x6c, 0x75, 0x65, 0x52, 0x0b, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x53, 0x74, 0x61, 0x74, - 0x65, 0x12, 0x3b, 0x0a, 0x0e, 0x66, 0x61, 0x69, 0x6c, 0x75, 0x72, 0x65, 0x44, 0x65, 0x74, 0x61, - 0x69, 0x6c, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x54, 0x61, 0x73, 0x6b, - 0x46, 0x61, 0x69, 0x6c, 0x75, 0x72, 0x65, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x52, 0x0e, - 0x66, 0x61, 0x69, 0x6c, 0x75, 0x72, 0x65, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x22, 0x82, - 0x01, 0x0a, 0x10, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x12, 0x1c, 0x0a, 0x09, 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, - 0x6e, 0x12, 0x1c, 0x0a, 0x09, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x49, 0x64, 0x18, 0x02, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x49, 0x64, 0x12, - 0x32, 0x0a, 0x05, 0x69, 0x6e, 0x70, 0x75, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, - 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, - 0x2e, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x05, 0x69, 0x6e, - 0x70, 0x75, 0x74, 0x22, 0x89, 0x01, 0x0a, 0x0f, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, - 0x6e, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x12, 0x33, 0x0a, 0x07, 0x73, 0x75, 0x63, 0x63, 0x65, - 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x4f, 0x70, 0x65, 0x72, 0x61, - 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x53, 0x75, 0x63, 0x63, 0x65, 0x73, - 0x73, 0x48, 0x00, 0x52, 0x07, 0x73, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x12, 0x33, 0x0a, 0x07, - 0x66, 0x61, 0x69, 0x6c, 0x75, 0x72, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, - 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x46, - 0x61, 0x69, 0x6c, 0x75, 0x72, 0x65, 0x48, 0x00, 0x52, 0x07, 0x66, 0x61, 0x69, 0x6c, 0x75, 0x72, - 0x65, 0x42, 0x0c, 0x0a, 0x0a, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x54, 0x79, 0x70, 0x65, 0x22, - 0x4e, 0x0a, 0x16, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x75, - 0x6c, 0x74, 0x53, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x12, 0x34, 0x0a, 0x06, 0x72, 0x65, 0x73, - 0x75, 0x6c, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x67, 0x6f, 0x6f, 0x67, - 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x53, 0x74, 0x72, 0x69, - 0x6e, 0x67, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x06, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x22, - 0x55, 0x0a, 0x16, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x75, - 0x6c, 0x74, 0x46, 0x61, 0x69, 0x6c, 0x75, 0x72, 0x65, 0x12, 0x3b, 0x0a, 0x0e, 0x66, 0x61, 0x69, - 0x6c, 0x75, 0x72, 0x65, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x0b, 0x32, 0x13, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x46, 0x61, 0x69, 0x6c, 0x75, 0x72, 0x65, 0x44, - 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x52, 0x0e, 0x66, 0x61, 0x69, 0x6c, 0x75, 0x72, 0x65, 0x44, - 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x22, 0xc3, 0x01, 0x0a, 0x0f, 0x4f, 0x70, 0x65, 0x72, 0x61, - 0x74, 0x69, 0x6f, 0x6e, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x02, 0x69, 0x64, 0x12, 0x33, 0x0a, 0x0a, 0x73, 0x65, - 0x6e, 0x64, 0x53, 0x69, 0x67, 0x6e, 0x61, 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x11, - 0x2e, 0x53, 0x65, 0x6e, 0x64, 0x53, 0x69, 0x67, 0x6e, 0x61, 0x6c, 0x41, 0x63, 0x74, 0x69, 0x6f, - 0x6e, 0x48, 0x00, 0x52, 0x0a, 0x73, 0x65, 0x6e, 0x64, 0x53, 0x69, 0x67, 0x6e, 0x61, 0x6c, 0x12, - 0x54, 0x0a, 0x15, 0x73, 0x74, 0x61, 0x72, 0x74, 0x4e, 0x65, 0x77, 0x4f, 0x72, 0x63, 0x68, 0x65, - 0x73, 0x74, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, - 0x2e, 0x53, 0x74, 0x61, 0x72, 0x74, 0x4e, 0x65, 0x77, 0x4f, 0x72, 0x63, 0x68, 0x65, 0x73, 0x74, - 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x48, 0x00, 0x52, 0x15, - 0x73, 0x74, 0x61, 0x72, 0x74, 0x4e, 0x65, 0x77, 0x4f, 0x72, 0x63, 0x68, 0x65, 0x73, 0x74, 0x72, - 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x42, 0x15, 0x0a, 0x13, 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, - 0x6f, 0x6e, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x22, 0xbc, 0x01, 0x0a, - 0x10, 0x53, 0x65, 0x6e, 0x64, 0x53, 0x69, 0x67, 0x6e, 0x61, 0x6c, 0x41, 0x63, 0x74, 0x69, 0x6f, - 0x6e, 0x12, 0x1e, 0x0a, 0x0a, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x49, 0x64, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x49, - 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x32, 0x0a, 0x05, 0x69, 0x6e, 0x70, 0x75, 0x74, 0x18, 0x03, - 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x56, 0x61, 0x6c, - 0x75, 0x65, 0x52, 0x05, 0x69, 0x6e, 0x70, 0x75, 0x74, 0x12, 0x40, 0x0a, 0x0d, 0x73, 0x63, 0x68, - 0x65, 0x64, 0x75, 0x6c, 0x65, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, - 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, - 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x0d, 0x73, 0x63, - 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x22, 0xff, 0x01, 0x0a, 0x1b, - 0x53, 0x74, 0x61, 0x72, 0x74, 0x4e, 0x65, 0x77, 0x4f, 0x72, 0x63, 0x68, 0x65, 0x73, 0x74, 0x72, - 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x1e, 0x0a, 0x0a, 0x69, - 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x0a, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x49, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, - 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, - 0x36, 0x0a, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, - 0x32, 0x1c, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, - 0x75, 0x66, 0x2e, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x07, - 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x32, 0x0a, 0x05, 0x69, 0x6e, 0x70, 0x75, 0x74, - 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x56, - 0x61, 0x6c, 0x75, 0x65, 0x52, 0x05, 0x69, 0x6e, 0x70, 0x75, 0x74, 0x12, 0x40, 0x0a, 0x0d, 0x73, - 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x18, 0x05, 0x20, 0x01, - 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x0d, - 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x22, 0x15, 0x0a, - 0x13, 0x47, 0x65, 0x74, 0x57, 0x6f, 0x72, 0x6b, 0x49, 0x74, 0x65, 0x6d, 0x73, 0x52, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x22, 0xda, 0x01, 0x0a, 0x08, 0x57, 0x6f, 0x72, 0x6b, 0x49, 0x74, 0x65, - 0x6d, 0x12, 0x48, 0x0a, 0x13, 0x6f, 0x72, 0x63, 0x68, 0x65, 0x73, 0x74, 0x72, 0x61, 0x74, 0x6f, - 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, - 0x2e, 0x4f, 0x72, 0x63, 0x68, 0x65, 0x73, 0x74, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x52, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x48, 0x00, 0x52, 0x13, 0x6f, 0x72, 0x63, 0x68, 0x65, 0x73, 0x74, 0x72, - 0x61, 0x74, 0x6f, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x3c, 0x0a, 0x0f, 0x61, - 0x63, 0x74, 0x69, 0x76, 0x69, 0x74, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x18, 0x02, - 0x20, 0x01, 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x41, 0x63, 0x74, 0x69, 0x76, 0x69, 0x74, 0x79, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x48, 0x00, 0x52, 0x0f, 0x61, 0x63, 0x74, 0x69, 0x76, 0x69, - 0x74, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x3b, 0x0a, 0x0d, 0x65, 0x6e, 0x74, - 0x69, 0x74, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, - 0x32, 0x13, 0x2e, 0x45, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x42, 0x61, 0x74, 0x63, 0x68, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x48, 0x00, 0x52, 0x0d, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x42, 0x09, 0x0a, 0x07, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x22, 0x16, 0x0a, 0x14, 0x43, 0x6f, 0x6d, 0x70, 0x6c, 0x65, 0x74, 0x65, 0x54, 0x61, 0x73, - 0x6b, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2a, 0xb5, 0x02, 0x0a, 0x13, 0x4f, 0x72, - 0x63, 0x68, 0x65, 0x73, 0x74, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x74, 0x61, 0x74, 0x75, - 0x73, 0x12, 0x20, 0x0a, 0x1c, 0x4f, 0x52, 0x43, 0x48, 0x45, 0x53, 0x54, 0x52, 0x41, 0x54, 0x49, - 0x4f, 0x4e, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x52, 0x55, 0x4e, 0x4e, 0x49, 0x4e, - 0x47, 0x10, 0x00, 0x12, 0x22, 0x0a, 0x1e, 0x4f, 0x52, 0x43, 0x48, 0x45, 0x53, 0x54, 0x52, 0x41, - 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x43, 0x4f, 0x4d, 0x50, - 0x4c, 0x45, 0x54, 0x45, 0x44, 0x10, 0x01, 0x12, 0x29, 0x0a, 0x25, 0x4f, 0x52, 0x43, 0x48, 0x45, - 0x53, 0x54, 0x52, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, - 0x43, 0x4f, 0x4e, 0x54, 0x49, 0x4e, 0x55, 0x45, 0x44, 0x5f, 0x41, 0x53, 0x5f, 0x4e, 0x45, 0x57, - 0x10, 0x02, 0x12, 0x1f, 0x0a, 0x1b, 0x4f, 0x52, 0x43, 0x48, 0x45, 0x53, 0x54, 0x52, 0x41, 0x54, - 0x49, 0x4f, 0x4e, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x46, 0x41, 0x49, 0x4c, 0x45, - 0x44, 0x10, 0x03, 0x12, 0x21, 0x0a, 0x1d, 0x4f, 0x52, 0x43, 0x48, 0x45, 0x53, 0x54, 0x52, 0x41, - 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x43, 0x41, 0x4e, 0x43, - 0x45, 0x4c, 0x45, 0x44, 0x10, 0x04, 0x12, 0x23, 0x0a, 0x1f, 0x4f, 0x52, 0x43, 0x48, 0x45, 0x53, - 0x54, 0x52, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x54, - 0x45, 0x52, 0x4d, 0x49, 0x4e, 0x41, 0x54, 0x45, 0x44, 0x10, 0x05, 0x12, 0x20, 0x0a, 0x1c, 0x4f, - 0x52, 0x43, 0x48, 0x45, 0x53, 0x54, 0x52, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x53, 0x54, 0x41, - 0x54, 0x55, 0x53, 0x5f, 0x50, 0x45, 0x4e, 0x44, 0x49, 0x4e, 0x47, 0x10, 0x06, 0x12, 0x22, 0x0a, - 0x1e, 0x4f, 0x52, 0x43, 0x48, 0x45, 0x53, 0x54, 0x52, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x53, - 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x53, 0x55, 0x53, 0x50, 0x45, 0x4e, 0x44, 0x45, 0x44, 0x10, - 0x07, 0x2a, 0x41, 0x0a, 0x19, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x4f, 0x72, 0x63, 0x68, 0x65, - 0x73, 0x74, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x09, - 0x0a, 0x05, 0x45, 0x52, 0x52, 0x4f, 0x52, 0x10, 0x00, 0x12, 0x0a, 0x0a, 0x06, 0x49, 0x47, 0x4e, - 0x4f, 0x52, 0x45, 0x10, 0x01, 0x12, 0x0d, 0x0a, 0x09, 0x54, 0x45, 0x52, 0x4d, 0x49, 0x4e, 0x41, - 0x54, 0x45, 0x10, 0x02, 0x32, 0xfc, 0x0a, 0x0a, 0x15, 0x54, 0x61, 0x73, 0x6b, 0x48, 0x75, 0x62, - 0x53, 0x69, 0x64, 0x65, 0x63, 0x61, 0x72, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x37, - 0x0a, 0x05, 0x48, 0x65, 0x6c, 0x6c, 0x6f, 0x12, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, - 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x1a, - 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, - 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x12, 0x40, 0x0a, 0x0d, 0x53, 0x74, 0x61, 0x72, 0x74, - 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x12, 0x16, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, - 0x65, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, - 0x1a, 0x17, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, - 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x38, 0x0a, 0x0b, 0x47, 0x65, 0x74, - 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x12, 0x13, 0x2e, 0x47, 0x65, 0x74, 0x49, 0x6e, - 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x14, 0x2e, - 0x47, 0x65, 0x74, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x12, 0x41, 0x0a, 0x0e, 0x52, 0x65, 0x77, 0x69, 0x6e, 0x64, 0x49, 0x6e, 0x73, - 0x74, 0x61, 0x6e, 0x63, 0x65, 0x12, 0x16, 0x2e, 0x52, 0x65, 0x77, 0x69, 0x6e, 0x64, 0x49, 0x6e, - 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x17, 0x2e, - 0x52, 0x65, 0x77, 0x69, 0x6e, 0x64, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x65, - 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x41, 0x0a, 0x14, 0x57, 0x61, 0x69, 0x74, 0x46, 0x6f, - 0x72, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x53, 0x74, 0x61, 0x72, 0x74, 0x12, 0x13, - 0x2e, 0x47, 0x65, 0x74, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x1a, 0x14, 0x2e, 0x47, 0x65, 0x74, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, - 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x46, 0x0a, 0x19, 0x57, 0x61, 0x69, - 0x74, 0x46, 0x6f, 0x72, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x43, 0x6f, 0x6d, 0x70, - 0x6c, 0x65, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x13, 0x2e, 0x47, 0x65, 0x74, 0x49, 0x6e, 0x73, 0x74, - 0x61, 0x6e, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x14, 0x2e, 0x47, 0x65, - 0x74, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, - 0x65, 0x12, 0x35, 0x0a, 0x0a, 0x52, 0x61, 0x69, 0x73, 0x65, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x12, - 0x12, 0x2e, 0x52, 0x61, 0x69, 0x73, 0x65, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x1a, 0x13, 0x2e, 0x52, 0x61, 0x69, 0x73, 0x65, 0x45, 0x76, 0x65, 0x6e, 0x74, - 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3a, 0x0a, 0x11, 0x54, 0x65, 0x72, 0x6d, - 0x69, 0x6e, 0x61, 0x74, 0x65, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x12, 0x11, 0x2e, - 0x54, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x61, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, - 0x1a, 0x12, 0x2e, 0x54, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x61, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x34, 0x0a, 0x0f, 0x53, 0x75, 0x73, 0x70, 0x65, 0x6e, 0x64, 0x49, - 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x12, 0x0f, 0x2e, 0x53, 0x75, 0x73, 0x70, 0x65, 0x6e, - 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x10, 0x2e, 0x53, 0x75, 0x73, 0x70, 0x65, - 0x6e, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x31, 0x0a, 0x0e, 0x52, 0x65, - 0x73, 0x75, 0x6d, 0x65, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x12, 0x0e, 0x2e, 0x52, - 0x65, 0x73, 0x75, 0x6d, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x0f, 0x2e, 0x52, - 0x65, 0x73, 0x75, 0x6d, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x41, 0x0a, - 0x0e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x12, - 0x16, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, - 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x17, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x49, - 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x12, 0x41, 0x0a, 0x0e, 0x50, 0x75, 0x72, 0x67, 0x65, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, - 0x65, 0x73, 0x12, 0x16, 0x2e, 0x50, 0x75, 0x72, 0x67, 0x65, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, - 0x63, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x17, 0x2e, 0x50, 0x75, 0x72, - 0x67, 0x65, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x12, 0x31, 0x0a, 0x0c, 0x47, 0x65, 0x74, 0x57, 0x6f, 0x72, 0x6b, 0x49, 0x74, - 0x65, 0x6d, 0x73, 0x12, 0x14, 0x2e, 0x47, 0x65, 0x74, 0x57, 0x6f, 0x72, 0x6b, 0x49, 0x74, 0x65, - 0x6d, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x09, 0x2e, 0x57, 0x6f, 0x72, 0x6b, - 0x49, 0x74, 0x65, 0x6d, 0x30, 0x01, 0x12, 0x40, 0x0a, 0x14, 0x43, 0x6f, 0x6d, 0x70, 0x6c, 0x65, - 0x74, 0x65, 0x41, 0x63, 0x74, 0x69, 0x76, 0x69, 0x74, 0x79, 0x54, 0x61, 0x73, 0x6b, 0x12, 0x11, - 0x2e, 0x41, 0x63, 0x74, 0x69, 0x76, 0x69, 0x74, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, - 0x65, 0x1a, 0x15, 0x2e, 0x43, 0x6f, 0x6d, 0x70, 0x6c, 0x65, 0x74, 0x65, 0x54, 0x61, 0x73, 0x6b, - 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x48, 0x0a, 0x18, 0x43, 0x6f, 0x6d, 0x70, - 0x6c, 0x65, 0x74, 0x65, 0x4f, 0x72, 0x63, 0x68, 0x65, 0x73, 0x74, 0x72, 0x61, 0x74, 0x6f, 0x72, - 0x54, 0x61, 0x73, 0x6b, 0x12, 0x15, 0x2e, 0x4f, 0x72, 0x63, 0x68, 0x65, 0x73, 0x74, 0x72, 0x61, - 0x74, 0x6f, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x1a, 0x15, 0x2e, 0x43, 0x6f, - 0x6d, 0x70, 0x6c, 0x65, 0x74, 0x65, 0x54, 0x61, 0x73, 0x6b, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x12, 0x3f, 0x0a, 0x12, 0x43, 0x6f, 0x6d, 0x70, 0x6c, 0x65, 0x74, 0x65, 0x45, 0x6e, - 0x74, 0x69, 0x74, 0x79, 0x54, 0x61, 0x73, 0x6b, 0x12, 0x12, 0x2e, 0x45, 0x6e, 0x74, 0x69, 0x74, - 0x79, 0x42, 0x61, 0x74, 0x63, 0x68, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x1a, 0x15, 0x2e, 0x43, - 0x6f, 0x6d, 0x70, 0x6c, 0x65, 0x74, 0x65, 0x54, 0x61, 0x73, 0x6b, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x12, 0x3e, 0x0a, 0x0d, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x61, 0x73, - 0x6b, 0x48, 0x75, 0x62, 0x12, 0x15, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x61, 0x73, - 0x6b, 0x48, 0x75, 0x62, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x43, 0x72, - 0x65, 0x61, 0x74, 0x65, 0x54, 0x61, 0x73, 0x6b, 0x48, 0x75, 0x62, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x12, 0x3e, 0x0a, 0x0d, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x54, 0x61, 0x73, - 0x6b, 0x48, 0x75, 0x62, 0x12, 0x15, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x54, 0x61, 0x73, - 0x6b, 0x48, 0x75, 0x62, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x44, 0x65, - 0x6c, 0x65, 0x74, 0x65, 0x54, 0x61, 0x73, 0x6b, 0x48, 0x75, 0x62, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x12, 0x3b, 0x0a, 0x0c, 0x53, 0x69, 0x67, 0x6e, 0x61, 0x6c, 0x45, 0x6e, 0x74, - 0x69, 0x74, 0x79, 0x12, 0x14, 0x2e, 0x53, 0x69, 0x67, 0x6e, 0x61, 0x6c, 0x45, 0x6e, 0x74, 0x69, - 0x74, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x15, 0x2e, 0x53, 0x69, 0x67, 0x6e, - 0x61, 0x6c, 0x45, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x12, 0x32, 0x0a, 0x09, 0x47, 0x65, 0x74, 0x45, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x12, 0x11, 0x2e, - 0x47, 0x65, 0x74, 0x45, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, - 0x1a, 0x12, 0x2e, 0x47, 0x65, 0x74, 0x45, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3e, 0x0a, 0x0d, 0x51, 0x75, 0x65, 0x72, 0x79, 0x45, 0x6e, 0x74, - 0x69, 0x74, 0x69, 0x65, 0x73, 0x12, 0x15, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x45, 0x6e, 0x74, - 0x69, 0x74, 0x69, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x51, - 0x75, 0x65, 0x72, 0x79, 0x45, 0x6e, 0x74, 0x69, 0x74, 0x69, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x4d, 0x0a, 0x12, 0x43, 0x6c, 0x65, 0x61, 0x6e, 0x45, 0x6e, 0x74, - 0x69, 0x74, 0x79, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x12, 0x1a, 0x2e, 0x43, 0x6c, 0x65, - 0x61, 0x6e, 0x45, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1b, 0x2e, 0x43, 0x6c, 0x65, 0x61, 0x6e, 0x45, 0x6e, - 0x74, 0x69, 0x74, 0x79, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x42, 0x66, 0x0a, 0x31, 0x63, 0x6f, 0x6d, 0x2e, 0x6d, 0x69, 0x63, 0x72, 0x6f, - 0x73, 0x6f, 0x66, 0x74, 0x2e, 0x64, 0x75, 0x72, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x61, 0x73, 0x6b, - 0x2e, 0x69, 0x6d, 0x70, 0x6c, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x5a, 0x10, 0x2f, 0x69, 0x6e, 0x74, 0x65, 0x72, - 0x6e, 0x61, 0x6c, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0xaa, 0x02, 0x1e, 0x4d, 0x69, 0x63, - 0x72, 0x6f, 0x73, 0x6f, 0x66, 0x74, 0x2e, 0x44, 0x75, 0x72, 0x61, 0x62, 0x6c, 0x65, 0x54, 0x61, - 0x73, 0x6b, 0x2e, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x62, 0x06, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x33, +func (x *InstanceBatch) GetInstanceIds() []string { + if x != nil { + return x.InstanceIds + } + return nil } +var File_orchestrator_service_proto protoreflect.FileDescriptor + +const file_orchestrator_service_proto_rawDesc = "" + + "\n" + + "\x1aorchestrator_service.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x1egoogle/protobuf/wrappers.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a\x1cgoogle/protobuf/struct.proto\"w\n" + + "\x15OrchestrationInstance\x12\x1e\n" + + "\n" + + "instanceId\x18\x01 \x01(\tR\n" + + "instanceId\x12>\n" + + "\vexecutionId\x18\x02 \x01(\v2\x1c.google.protobuf.StringValueR\vexecutionId\"\x9f\x03\n" + + "\x0fActivityRequest\x12\x12\n" + + "\x04name\x18\x01 \x01(\tR\x04name\x126\n" + + "\aversion\x18\x02 \x01(\v2\x1c.google.protobuf.StringValueR\aversion\x122\n" + + "\x05input\x18\x03 \x01(\v2\x1c.google.protobuf.StringValueR\x05input\x12L\n" + + "\x15orchestrationInstance\x18\x04 \x01(\v2\x16.OrchestrationInstanceR\x15orchestrationInstance\x12\x16\n" + + "\x06taskId\x18\x05 \x01(\x05R\x06taskId\x12=\n" + + "\x12parentTraceContext\x18\x06 \x01(\v2\r.TraceContextR\x12parentTraceContext\x12.\n" + + "\x04tags\x18\a \x03(\v2\x1a.ActivityRequest.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\"\xe7\x01\n" + + "\x10ActivityResponse\x12\x1e\n" + + "\n" + + "instanceId\x18\x01 \x01(\tR\n" + + "instanceId\x12\x16\n" + + "\x06taskId\x18\x02 \x01(\x05R\x06taskId\x124\n" + + "\x06result\x18\x03 \x01(\v2\x1c.google.protobuf.StringValueR\x06result\x12;\n" + + "\x0efailureDetails\x18\x04 \x01(\v2\x13.TaskFailureDetailsR\x0efailureDetails\x12(\n" + + "\x0fcompletionToken\x18\x05 \x01(\tR\x0fcompletionToken\"\x91\x03\n" + + "\x12TaskFailureDetails\x12\x1c\n" + + "\terrorType\x18\x01 \x01(\tR\terrorType\x12\"\n" + + "\ferrorMessage\x18\x02 \x01(\tR\ferrorMessage\x12<\n" + + "\n" + + "stackTrace\x18\x03 \x01(\v2\x1c.google.protobuf.StringValueR\n" + + "stackTrace\x127\n" + + "\finnerFailure\x18\x04 \x01(\v2\x13.TaskFailureDetailsR\finnerFailure\x12&\n" + + "\x0eisNonRetriable\x18\x05 \x01(\bR\x0eisNonRetriable\x12C\n" + + "\n" + + "properties\x18\x06 \x03(\v2#.TaskFailureDetails.PropertiesEntryR\n" + + "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\"\xf6\x01\n" + + "\x12ParentInstanceInfo\x12(\n" + + "\x0ftaskScheduledId\x18\x01 \x01(\x05R\x0ftaskScheduledId\x120\n" + + "\x04name\x18\x02 \x01(\v2\x1c.google.protobuf.StringValueR\x04name\x126\n" + + "\aversion\x18\x03 \x01(\v2\x1c.google.protobuf.StringValueR\aversion\x12L\n" + + "\x15orchestrationInstance\x18\x04 \x01(\v2\x16.OrchestrationInstanceR\x15orchestrationInstance\"\x8a\x01\n" + + "\fTraceContext\x12 \n" + + "\vtraceParent\x18\x01 \x01(\tR\vtraceParent\x12\x1a\n" + + "\x06spanID\x18\x02 \x01(\tB\x02\x18\x01R\x06spanID\x12<\n" + + "\n" + + "traceState\x18\x03 \x01(\v2\x1c.google.protobuf.StringValueR\n" + + "traceState\"\xf6\x04\n" + + "\x15ExecutionStartedEvent\x12\x12\n" + + "\x04name\x18\x01 \x01(\tR\x04name\x126\n" + + "\aversion\x18\x02 \x01(\v2\x1c.google.protobuf.StringValueR\aversion\x122\n" + + "\x05input\x18\x03 \x01(\v2\x1c.google.protobuf.StringValueR\x05input\x12L\n" + + "\x15orchestrationInstance\x18\x04 \x01(\v2\x16.OrchestrationInstanceR\x15orchestrationInstance\x12;\n" + + "\x0eparentInstance\x18\x05 \x01(\v2\x13.ParentInstanceInfoR\x0eparentInstance\x12T\n" + + "\x17scheduledStartTimestamp\x18\x06 \x01(\v2\x1a.google.protobuf.TimestampR\x17scheduledStartTimestamp\x12=\n" + + "\x12parentTraceContext\x18\a \x01(\v2\r.TraceContextR\x12parentTraceContext\x12N\n" + + "\x13orchestrationSpanID\x18\b \x01(\v2\x1c.google.protobuf.StringValueR\x13orchestrationSpanID\x124\n" + + "\x04tags\x18\t \x03(\v2 .ExecutionStartedEvent.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\"\xd4\x01\n" + + "\x17ExecutionCompletedEvent\x12F\n" + + "\x13orchestrationStatus\x18\x01 \x01(\x0e2\x14.OrchestrationStatusR\x13orchestrationStatus\x124\n" + + "\x06result\x18\x02 \x01(\v2\x1c.google.protobuf.StringValueR\x06result\x12;\n" + + "\x0efailureDetails\x18\x03 \x01(\v2\x13.TaskFailureDetailsR\x0efailureDetails\"h\n" + + "\x18ExecutionTerminatedEvent\x122\n" + + "\x05input\x18\x01 \x01(\v2\x1c.google.protobuf.StringValueR\x05input\x12\x18\n" + + "\arecurse\x18\x02 \x01(\bR\arecurse\"\xbf\x02\n" + + "\x12TaskScheduledEvent\x12\x12\n" + + "\x04name\x18\x01 \x01(\tR\x04name\x126\n" + + "\aversion\x18\x02 \x01(\v2\x1c.google.protobuf.StringValueR\aversion\x122\n" + + "\x05input\x18\x03 \x01(\v2\x1c.google.protobuf.StringValueR\x05input\x12=\n" + + "\x12parentTraceContext\x18\x04 \x01(\v2\r.TraceContextR\x12parentTraceContext\x121\n" + + "\x04tags\x18\x05 \x03(\v2\x1d.TaskScheduledEvent.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\"t\n" + + "\x12TaskCompletedEvent\x12(\n" + + "\x0ftaskScheduledId\x18\x01 \x01(\x05R\x0ftaskScheduledId\x124\n" + + "\x06result\x18\x02 \x01(\v2\x1c.google.protobuf.StringValueR\x06result\"x\n" + + "\x0fTaskFailedEvent\x12(\n" + + "\x0ftaskScheduledId\x18\x01 \x01(\x05R\x0ftaskScheduledId\x12;\n" + + "\x0efailureDetails\x18\x02 \x01(\v2\x13.TaskFailureDetailsR\x0efailureDetails\"\x83\x03\n" + + "$SubOrchestrationInstanceCreatedEvent\x12\x1e\n" + + "\n" + + "instanceId\x18\x01 \x01(\tR\n" + + "instanceId\x12\x12\n" + + "\x04name\x18\x02 \x01(\tR\x04name\x126\n" + + "\aversion\x18\x03 \x01(\v2\x1c.google.protobuf.StringValueR\aversion\x122\n" + + "\x05input\x18\x04 \x01(\v2\x1c.google.protobuf.StringValueR\x05input\x12=\n" + + "\x12parentTraceContext\x18\x05 \x01(\v2\r.TraceContextR\x12parentTraceContext\x12C\n" + + "\x04tags\x18\x06 \x03(\v2/.SubOrchestrationInstanceCreatedEvent.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\"\x88\x01\n" + + "&SubOrchestrationInstanceCompletedEvent\x12(\n" + + "\x0ftaskScheduledId\x18\x01 \x01(\x05R\x0ftaskScheduledId\x124\n" + + "\x06result\x18\x02 \x01(\v2\x1c.google.protobuf.StringValueR\x06result\"\x8c\x01\n" + + "#SubOrchestrationInstanceFailedEvent\x12(\n" + + "\x0ftaskScheduledId\x18\x01 \x01(\x05R\x0ftaskScheduledId\x12;\n" + + "\x0efailureDetails\x18\x02 \x01(\v2\x13.TaskFailureDetailsR\x0efailureDetails\"G\n" + + "\x11TimerCreatedEvent\x122\n" + + "\x06fireAt\x18\x01 \x01(\v2\x1a.google.protobuf.TimestampR\x06fireAt\"_\n" + + "\x0fTimerFiredEvent\x122\n" + + "\x06fireAt\x18\x01 \x01(\v2\x1a.google.protobuf.TimestampR\x06fireAt\x12\x18\n" + + "\atimerId\x18\x02 \x01(\x05R\atimerId\"\x1a\n" + + "\x18OrchestratorStartedEvent\"\x1c\n" + + "\x1aOrchestratorCompletedEvent\"x\n" + + "\x0eEventSentEvent\x12\x1e\n" + + "\n" + + "instanceId\x18\x01 \x01(\tR\n" + + "instanceId\x12\x12\n" + + "\x04name\x18\x02 \x01(\tR\x04name\x122\n" + + "\x05input\x18\x03 \x01(\v2\x1c.google.protobuf.StringValueR\x05input\"Z\n" + + "\x10EventRaisedEvent\x12\x12\n" + + "\x04name\x18\x01 \x01(\tR\x04name\x122\n" + + "\x05input\x18\x02 \x01(\v2\x1c.google.protobuf.StringValueR\x05input\"@\n" + + "\fGenericEvent\x120\n" + + "\x04data\x18\x01 \x01(\v2\x1c.google.protobuf.StringValueR\x04data\"X\n" + + "\x11HistoryStateEvent\x12C\n" + + "\x12orchestrationState\x18\x01 \x01(\v2\x13.OrchestrationStateR\x12orchestrationState\"H\n" + + "\x12ContinueAsNewEvent\x122\n" + + "\x05input\x18\x01 \x01(\v2\x1c.google.protobuf.StringValueR\x05input\"M\n" + + "\x17ExecutionSuspendedEvent\x122\n" + + "\x05input\x18\x01 \x01(\v2\x1c.google.protobuf.StringValueR\x05input\"K\n" + + "\x15ExecutionResumedEvent\x122\n" + + "\x05input\x18\x01 \x01(\v2\x1c.google.protobuf.StringValueR\x05input\"\x9a\x02\n" + + "\x1cEntityOperationSignaledEvent\x12\x1c\n" + + "\trequestId\x18\x01 \x01(\tR\trequestId\x12\x1c\n" + + "\toperation\x18\x02 \x01(\tR\toperation\x12@\n" + + "\rscheduledTime\x18\x03 \x01(\v2\x1a.google.protobuf.TimestampR\rscheduledTime\x122\n" + + "\x05input\x18\x04 \x01(\v2\x1c.google.protobuf.StringValueR\x05input\x12H\n" + + "\x10targetInstanceId\x18\x05 \x01(\v2\x1c.google.protobuf.StringValueR\x10targetInstanceId\"\xae\x03\n" + + "\x1aEntityOperationCalledEvent\x12\x1c\n" + + "\trequestId\x18\x01 \x01(\tR\trequestId\x12\x1c\n" + + "\toperation\x18\x02 \x01(\tR\toperation\x12@\n" + + "\rscheduledTime\x18\x03 \x01(\v2\x1a.google.protobuf.TimestampR\rscheduledTime\x122\n" + + "\x05input\x18\x04 \x01(\v2\x1c.google.protobuf.StringValueR\x05input\x12H\n" + + "\x10parentInstanceId\x18\x05 \x01(\v2\x1c.google.protobuf.StringValueR\x10parentInstanceId\x12J\n" + + "\x11parentExecutionId\x18\x06 \x01(\v2\x1c.google.protobuf.StringValueR\x11parentExecutionId\x12H\n" + + "\x10targetInstanceId\x18\a \x01(\v2\x1c.google.protobuf.StringValueR\x10targetInstanceId\"\xc8\x01\n" + + "\x18EntityLockRequestedEvent\x12,\n" + + "\x11criticalSectionId\x18\x01 \x01(\tR\x11criticalSectionId\x12\x18\n" + + "\alockSet\x18\x02 \x03(\tR\alockSet\x12\x1a\n" + + "\bposition\x18\x03 \x01(\x05R\bposition\x12H\n" + + "\x10parentInstanceId\x18\x04 \x01(\v2\x1c.google.protobuf.StringValueR\x10parentInstanceId\"s\n" + + "\x1dEntityOperationCompletedEvent\x12\x1c\n" + + "\trequestId\x18\x01 \x01(\tR\trequestId\x124\n" + + "\x06output\x18\x02 \x01(\v2\x1c.google.protobuf.StringValueR\x06output\"w\n" + + "\x1aEntityOperationFailedEvent\x12\x1c\n" + + "\trequestId\x18\x01 \x01(\tR\trequestId\x12;\n" + + "\x0efailureDetails\x18\x02 \x01(\v2\x13.TaskFailureDetailsR\x0efailureDetails\"\xd9\x01\n" + + "\x15EntityUnlockSentEvent\x12,\n" + + "\x11criticalSectionId\x18\x01 \x01(\tR\x11criticalSectionId\x12H\n" + + "\x10parentInstanceId\x18\x02 \x01(\v2\x1c.google.protobuf.StringValueR\x10parentInstanceId\x12H\n" + + "\x10targetInstanceId\x18\x03 \x01(\v2\x1c.google.protobuf.StringValueR\x10targetInstanceId\"F\n" + + "\x16EntityLockGrantedEvent\x12,\n" + + "\x11criticalSectionId\x18\x01 \x01(\tR\x11criticalSectionId\"\xe0\x04\n" + + "\x15ExecutionRewoundEvent\x124\n" + + "\x06reason\x18\x01 \x01(\v2\x1c.google.protobuf.StringValueR\x06reason\x12J\n" + + "\x11parentExecutionId\x18\x02 \x01(\v2\x1c.google.protobuf.StringValueR\x11parentExecutionId\x12<\n" + + "\n" + + "instanceId\x18\x03 \x01(\v2\x1c.google.protobuf.StringValueR\n" + + "instanceId\x12=\n" + + "\x12parentTraceContext\x18\x04 \x01(\v2\r.TraceContextR\x12parentTraceContext\x120\n" + + "\x04name\x18\x05 \x01(\v2\x1c.google.protobuf.StringValueR\x04name\x126\n" + + "\aversion\x18\x06 \x01(\v2\x1c.google.protobuf.StringValueR\aversion\x122\n" + + "\x05input\x18\a \x01(\v2\x1c.google.protobuf.StringValueR\x05input\x12;\n" + + "\x0eparentInstance\x18\b \x01(\v2\x13.ParentInstanceInfoR\x0eparentInstance\x124\n" + + "\x04tags\x18\t \x03(\v2 .ExecutionRewoundEvent.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\"\x99\x11\n" + + "\fHistoryEvent\x12\x18\n" + + "\aeventId\x18\x01 \x01(\x05R\aeventId\x128\n" + + "\ttimestamp\x18\x02 \x01(\v2\x1a.google.protobuf.TimestampR\ttimestamp\x12D\n" + + "\x10executionStarted\x18\x03 \x01(\v2\x16.ExecutionStartedEventH\x00R\x10executionStarted\x12J\n" + + "\x12executionCompleted\x18\x04 \x01(\v2\x18.ExecutionCompletedEventH\x00R\x12executionCompleted\x12M\n" + + "\x13executionTerminated\x18\x05 \x01(\v2\x19.ExecutionTerminatedEventH\x00R\x13executionTerminated\x12;\n" + + "\rtaskScheduled\x18\x06 \x01(\v2\x13.TaskScheduledEventH\x00R\rtaskScheduled\x12;\n" + + "\rtaskCompleted\x18\a \x01(\v2\x13.TaskCompletedEventH\x00R\rtaskCompleted\x122\n" + + "\n" + + "taskFailed\x18\b \x01(\v2\x10.TaskFailedEventH\x00R\n" + + "taskFailed\x12q\n" + + "\x1fsubOrchestrationInstanceCreated\x18\t \x01(\v2%.SubOrchestrationInstanceCreatedEventH\x00R\x1fsubOrchestrationInstanceCreated\x12w\n" + + "!subOrchestrationInstanceCompleted\x18\n" + + " \x01(\v2'.SubOrchestrationInstanceCompletedEventH\x00R!subOrchestrationInstanceCompleted\x12n\n" + + "\x1esubOrchestrationInstanceFailed\x18\v \x01(\v2$.SubOrchestrationInstanceFailedEventH\x00R\x1esubOrchestrationInstanceFailed\x128\n" + + "\ftimerCreated\x18\f \x01(\v2\x12.TimerCreatedEventH\x00R\ftimerCreated\x122\n" + + "\n" + + "timerFired\x18\r \x01(\v2\x10.TimerFiredEventH\x00R\n" + + "timerFired\x12M\n" + + "\x13orchestratorStarted\x18\x0e \x01(\v2\x19.OrchestratorStartedEventH\x00R\x13orchestratorStarted\x12S\n" + + "\x15orchestratorCompleted\x18\x0f \x01(\v2\x1b.OrchestratorCompletedEventH\x00R\x15orchestratorCompleted\x12/\n" + + "\teventSent\x18\x10 \x01(\v2\x0f.EventSentEventH\x00R\teventSent\x125\n" + + "\veventRaised\x18\x11 \x01(\v2\x11.EventRaisedEventH\x00R\veventRaised\x123\n" + + "\fgenericEvent\x18\x12 \x01(\v2\r.GenericEventH\x00R\fgenericEvent\x128\n" + + "\fhistoryState\x18\x13 \x01(\v2\x12.HistoryStateEventH\x00R\fhistoryState\x12;\n" + + "\rcontinueAsNew\x18\x14 \x01(\v2\x13.ContinueAsNewEventH\x00R\rcontinueAsNew\x12J\n" + + "\x12executionSuspended\x18\x15 \x01(\v2\x18.ExecutionSuspendedEventH\x00R\x12executionSuspended\x12D\n" + + "\x10executionResumed\x18\x16 \x01(\v2\x16.ExecutionResumedEventH\x00R\x10executionResumed\x12Y\n" + + "\x17entityOperationSignaled\x18\x17 \x01(\v2\x1d.EntityOperationSignaledEventH\x00R\x17entityOperationSignaled\x12S\n" + + "\x15entityOperationCalled\x18\x18 \x01(\v2\x1b.EntityOperationCalledEventH\x00R\x15entityOperationCalled\x12\\\n" + + "\x18entityOperationCompleted\x18\x19 \x01(\v2\x1e.EntityOperationCompletedEventH\x00R\x18entityOperationCompleted\x12S\n" + + "\x15entityOperationFailed\x18\x1a \x01(\v2\x1b.EntityOperationFailedEventH\x00R\x15entityOperationFailed\x12M\n" + + "\x13entityLockRequested\x18\x1b \x01(\v2\x19.EntityLockRequestedEventH\x00R\x13entityLockRequested\x12G\n" + + "\x11entityLockGranted\x18\x1c \x01(\v2\x17.EntityLockGrantedEventH\x00R\x11entityLockGranted\x12D\n" + + "\x10entityUnlockSent\x18\x1d \x01(\v2\x16.EntityUnlockSentEventH\x00R\x10entityUnlockSent\x12D\n" + + "\x10executionRewound\x18\x1e \x01(\v2\x16.ExecutionRewoundEventH\x00R\x10executionRewoundB\v\n" + + "\teventType\"\xbf\x02\n" + + "\x12ScheduleTaskAction\x12\x12\n" + + "\x04name\x18\x01 \x01(\tR\x04name\x126\n" + + "\aversion\x18\x02 \x01(\v2\x1c.google.protobuf.StringValueR\aversion\x122\n" + + "\x05input\x18\x03 \x01(\v2\x1c.google.protobuf.StringValueR\x05input\x121\n" + + "\x04tags\x18\x04 \x03(\v2\x1d.ScheduleTaskAction.TagsEntryR\x04tags\x12=\n" + + "\x12parentTraceContext\x18\x05 \x01(\v2\r.TraceContextR\x12parentTraceContext\x1a7\n" + + "\tTagsEntry\x12\x10\n" + + "\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n" + + "\x05value\x18\x02 \x01(\tR\x05value:\x028\x01\"\xf3\x02\n" + + "\x1cCreateSubOrchestrationAction\x12\x1e\n" + + "\n" + + "instanceId\x18\x01 \x01(\tR\n" + + "instanceId\x12\x12\n" + + "\x04name\x18\x02 \x01(\tR\x04name\x126\n" + + "\aversion\x18\x03 \x01(\v2\x1c.google.protobuf.StringValueR\aversion\x122\n" + + "\x05input\x18\x04 \x01(\v2\x1c.google.protobuf.StringValueR\x05input\x12=\n" + + "\x12parentTraceContext\x18\x05 \x01(\v2\r.TraceContextR\x12parentTraceContext\x12;\n" + + "\x04tags\x18\x06 \x03(\v2'.CreateSubOrchestrationAction.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\"G\n" + + "\x11CreateTimerAction\x122\n" + + "\x06fireAt\x18\x01 \x01(\v2\x1a.google.protobuf.TimestampR\x06fireAt\"\x8b\x01\n" + + "\x0fSendEventAction\x122\n" + + "\binstance\x18\x01 \x01(\v2\x16.OrchestrationInstanceR\binstance\x12\x12\n" + + "\x04name\x18\x02 \x01(\tR\x04name\x120\n" + + "\x04data\x18\x03 \x01(\v2\x1c.google.protobuf.StringValueR\x04data\"\xfc\x03\n" + + "\x1bCompleteOrchestrationAction\x12F\n" + + "\x13orchestrationStatus\x18\x01 \x01(\x0e2\x14.OrchestrationStatusR\x13orchestrationStatus\x124\n" + + "\x06result\x18\x02 \x01(\v2\x1c.google.protobuf.StringValueR\x06result\x126\n" + + "\adetails\x18\x03 \x01(\v2\x1c.google.protobuf.StringValueR\adetails\x12<\n" + + "\n" + + "newVersion\x18\x04 \x01(\v2\x1c.google.protobuf.StringValueR\n" + + "newVersion\x127\n" + + "\x0fcarryoverEvents\x18\x05 \x03(\v2\r.HistoryEventR\x0fcarryoverEvents\x12;\n" + + "\x0efailureDetails\x18\x06 \x01(\v2\x13.TaskFailureDetailsR\x0efailureDetails\x12:\n" + + "\x04tags\x18\a \x03(\v2&.CompleteOrchestrationAction.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\"\x8e\x01\n" + + "\x1cTerminateOrchestrationAction\x12\x1e\n" + + "\n" + + "instanceId\x18\x01 \x01(\tR\n" + + "instanceId\x124\n" + + "\x06reason\x18\x02 \x01(\v2\x1c.google.protobuf.StringValueR\x06reason\x12\x18\n" + + "\arecurse\x18\x03 \x01(\bR\arecurse\"\xf3\x02\n" + + "\x17SendEntityMessageAction\x12Y\n" + + "\x17entityOperationSignaled\x18\x01 \x01(\v2\x1d.EntityOperationSignaledEventH\x00R\x17entityOperationSignaled\x12S\n" + + "\x15entityOperationCalled\x18\x02 \x01(\v2\x1b.EntityOperationCalledEventH\x00R\x15entityOperationCalled\x12M\n" + + "\x13entityLockRequested\x18\x03 \x01(\v2\x19.EntityLockRequestedEventH\x00R\x13entityLockRequested\x12D\n" + + "\x10entityUnlockSent\x18\x04 \x01(\v2\x16.EntityUnlockSentEventH\x00R\x10entityUnlockSentB\x13\n" + + "\x11EntityMessageType\"J\n" + + "\x19RewindOrchestrationAction\x12-\n" + + "\n" + + "newHistory\x18\x01 \x03(\v2\r.HistoryEventR\n" + + "newHistory\"\x85\x05\n" + + "\x12OrchestratorAction\x12\x0e\n" + + "\x02id\x18\x01 \x01(\x05R\x02id\x129\n" + + "\fscheduleTask\x18\x02 \x01(\v2\x13.ScheduleTaskActionH\x00R\fscheduleTask\x12W\n" + + "\x16createSubOrchestration\x18\x03 \x01(\v2\x1d.CreateSubOrchestrationActionH\x00R\x16createSubOrchestration\x126\n" + + "\vcreateTimer\x18\x04 \x01(\v2\x12.CreateTimerActionH\x00R\vcreateTimer\x120\n" + + "\tsendEvent\x18\x05 \x01(\v2\x10.SendEventActionH\x00R\tsendEvent\x12T\n" + + "\x15completeOrchestration\x18\x06 \x01(\v2\x1c.CompleteOrchestrationActionH\x00R\x15completeOrchestration\x12W\n" + + "\x16terminateOrchestration\x18\a \x01(\v2\x1d.TerminateOrchestrationActionH\x00R\x16terminateOrchestration\x12H\n" + + "\x11sendEntityMessage\x18\b \x01(\v2\x18.SendEntityMessageActionH\x00R\x11sendEntityMessage\x12N\n" + + "\x13rewindOrchestration\x18\t \x01(\v2\x1a.RewindOrchestrationActionH\x00R\x13rewindOrchestrationB\x18\n" + + "\x16orchestratorActionType\"\x93\x01\n" + + "\x19OrchestrationTraceContext\x124\n" + + "\x06spanID\x18\x01 \x01(\v2\x1c.google.protobuf.StringValueR\x06spanID\x12@\n" + + "\rspanStartTime\x18\x02 \x01(\v2\x1a.google.protobuf.TimestampR\rspanStartTime\"\xcf\x04\n" + + "\x13OrchestratorRequest\x12\x1e\n" + + "\n" + + "instanceId\x18\x01 \x01(\tR\n" + + "instanceId\x12>\n" + + "\vexecutionId\x18\x02 \x01(\v2\x1c.google.protobuf.StringValueR\vexecutionId\x12-\n" + + "\n" + + "pastEvents\x18\x03 \x03(\v2\r.HistoryEventR\n" + + "pastEvents\x12+\n" + + "\tnewEvents\x18\x04 \x03(\v2\r.HistoryEventR\tnewEvents\x12I\n" + + "\x10entityParameters\x18\x05 \x01(\v2\x1d.OrchestratorEntityParametersR\x10entityParameters\x12:\n" + + "\x18requiresHistoryStreaming\x18\x06 \x01(\bR\x18requiresHistoryStreaming\x12D\n" + + "\n" + + "properties\x18\a \x03(\v2$.OrchestratorRequest.PropertiesEntryR\n" + + "properties\x12X\n" + + "\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" + + "\x14OrchestratorResponse\x12\x1e\n" + + "\n" + + "instanceId\x18\x01 \x01(\tR\n" + + "instanceId\x12-\n" + + "\aactions\x18\x02 \x03(\v2\x13.OrchestratorActionR\aactions\x12@\n" + + "\fcustomStatus\x18\x03 \x01(\v2\x1c.google.protobuf.StringValueR\fcustomStatus\x12(\n" + + "\x0fcompletionToken\x18\x04 \x01(\tR\x0fcompletionToken\x12K\n" + + "\x12numEventsProcessed\x18\x05 \x01(\v2\x1b.google.protobuf.Int32ValueR\x12numEventsProcessed\x12X\n" + + "\x19orchestrationTraceContext\x18\x06 \x01(\v2\x1a.OrchestrationTraceContextR\x19orchestrationTraceContext\x12(\n" + + "\x0frequiresHistory\x18\a \x01(\bR\x0frequiresHistory\x12 \n" + + "\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" + + "\x15CreateInstanceRequest\x12\x1e\n" + + "\n" + + "instanceId\x18\x01 \x01(\tR\n" + + "instanceId\x12\x12\n" + + "\x04name\x18\x02 \x01(\tR\x04name\x126\n" + + "\aversion\x18\x03 \x01(\v2\x1c.google.protobuf.StringValueR\aversion\x122\n" + + "\x05input\x18\x04 \x01(\v2\x1c.google.protobuf.StringValueR\x05input\x12T\n" + + "\x17scheduledStartTimestamp\x18\x05 \x01(\v2\x1a.google.protobuf.TimestampR\x17scheduledStartTimestamp\x12[\n" + + "\x1aorchestrationIdReusePolicy\x18\x06 \x01(\v2\x1b.OrchestrationIdReusePolicyR\x1aorchestrationIdReusePolicy\x12>\n" + + "\vexecutionId\x18\a \x01(\v2\x1c.google.protobuf.StringValueR\vexecutionId\x124\n" + + "\x04tags\x18\b \x03(\v2 .CreateInstanceRequest.TagsEntryR\x04tags\x12=\n" + + "\x12parentTraceContext\x18\t \x01(\v2\r.TraceContextR\x12parentTraceContext\x12<\n" + + "\vrequestTime\x18\n" + + " \x01(\v2\x1a.google.protobuf.TimestampR\vrequestTime\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" + + "\x1aOrchestrationIdReusePolicy\x12B\n" + + "\x11replaceableStatus\x18\x01 \x03(\x0e2\x14.OrchestrationStatusR\x11replaceableStatusJ\x04\b\x02\x10\x03\"8\n" + + "\x16CreateInstanceResponse\x12\x1e\n" + + "\n" + + "instanceId\x18\x01 \x01(\tR\n" + + "instanceId\"f\n" + + "\x12GetInstanceRequest\x12\x1e\n" + + "\n" + + "instanceId\x18\x01 \x01(\tR\n" + + "instanceId\x120\n" + + "\x13getInputsAndOutputs\x18\x02 \x01(\bR\x13getInputsAndOutputs\"r\n" + + "\x13GetInstanceResponse\x12\x16\n" + + "\x06exists\x18\x01 \x01(\bR\x06exists\x12C\n" + + "\x12orchestrationState\x18\x02 \x01(\v2\x13.OrchestrationStateR\x12orchestrationState\"m\n" + + "\x15RewindInstanceRequest\x12\x1e\n" + + "\n" + + "instanceId\x18\x01 \x01(\tR\n" + + "instanceId\x124\n" + + "\x06reason\x18\x02 \x01(\v2\x1c.google.protobuf.StringValueR\x06reason\"\x18\n" + + "\x16RewindInstanceResponse\"\xe1\a\n" + + "\x12OrchestrationState\x12\x1e\n" + + "\n" + + "instanceId\x18\x01 \x01(\tR\n" + + "instanceId\x12\x12\n" + + "\x04name\x18\x02 \x01(\tR\x04name\x126\n" + + "\aversion\x18\x03 \x01(\v2\x1c.google.protobuf.StringValueR\aversion\x12F\n" + + "\x13orchestrationStatus\x18\x04 \x01(\x0e2\x14.OrchestrationStatusR\x13orchestrationStatus\x12T\n" + + "\x17scheduledStartTimestamp\x18\x05 \x01(\v2\x1a.google.protobuf.TimestampR\x17scheduledStartTimestamp\x12F\n" + + "\x10createdTimestamp\x18\x06 \x01(\v2\x1a.google.protobuf.TimestampR\x10createdTimestamp\x12N\n" + + "\x14lastUpdatedTimestamp\x18\a \x01(\v2\x1a.google.protobuf.TimestampR\x14lastUpdatedTimestamp\x122\n" + + "\x05input\x18\b \x01(\v2\x1c.google.protobuf.StringValueR\x05input\x124\n" + + "\x06output\x18\t \x01(\v2\x1c.google.protobuf.StringValueR\x06output\x12@\n" + + "\fcustomStatus\x18\n" + + " \x01(\v2\x1c.google.protobuf.StringValueR\fcustomStatus\x12;\n" + + "\x0efailureDetails\x18\v \x01(\v2\x13.TaskFailureDetailsR\x0efailureDetails\x12>\n" + + "\vexecutionId\x18\f \x01(\v2\x1c.google.protobuf.StringValueR\vexecutionId\x12J\n" + + "\x12completedTimestamp\x18\r \x01(\v2\x1a.google.protobuf.TimestampR\x12completedTimestamp\x12H\n" + + "\x10parentInstanceId\x18\x0e \x01(\v2\x1c.google.protobuf.StringValueR\x10parentInstanceId\x121\n" + + "\x04tags\x18\x0f \x03(\v2\x1d.OrchestrationState.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\"{\n" + + "\x11RaiseEventRequest\x12\x1e\n" + + "\n" + + "instanceId\x18\x01 \x01(\tR\n" + + "instanceId\x12\x12\n" + + "\x04name\x18\x02 \x01(\tR\x04name\x122\n" + + "\x05input\x18\x03 \x01(\v2\x1c.google.protobuf.StringValueR\x05input\"\x14\n" + + "\x12RaiseEventResponse\"\x86\x01\n" + + "\x10TerminateRequest\x12\x1e\n" + + "\n" + + "instanceId\x18\x01 \x01(\tR\n" + + "instanceId\x124\n" + + "\x06output\x18\x02 \x01(\v2\x1c.google.protobuf.StringValueR\x06output\x12\x1c\n" + + "\trecursive\x18\x03 \x01(\bR\trecursive\"\x13\n" + + "\x11TerminateResponse\"f\n" + + "\x0eSuspendRequest\x12\x1e\n" + + "\n" + + "instanceId\x18\x01 \x01(\tR\n" + + "instanceId\x124\n" + + "\x06reason\x18\x02 \x01(\v2\x1c.google.protobuf.StringValueR\x06reason\"\x11\n" + + "\x0fSuspendResponse\"e\n" + + "\rResumeRequest\x12\x1e\n" + + "\n" + + "instanceId\x18\x01 \x01(\tR\n" + + "instanceId\x124\n" + + "\x06reason\x18\x02 \x01(\v2\x1c.google.protobuf.StringValueR\x06reason\"\x10\n" + + "\x0eResumeResponse\"=\n" + + "\x15QueryInstancesRequest\x12$\n" + + "\x05query\x18\x01 \x01(\v2\x0e.InstanceQueryR\x05query\"\x8d\x04\n" + + "\rInstanceQuery\x12:\n" + + "\rruntimeStatus\x18\x01 \x03(\x0e2\x14.OrchestrationStatusR\rruntimeStatus\x12D\n" + + "\x0fcreatedTimeFrom\x18\x02 \x01(\v2\x1a.google.protobuf.TimestampR\x0fcreatedTimeFrom\x12@\n" + + "\rcreatedTimeTo\x18\x03 \x01(\v2\x1a.google.protobuf.TimestampR\rcreatedTimeTo\x12@\n" + + "\ftaskHubNames\x18\x04 \x03(\v2\x1c.google.protobuf.StringValueR\ftaskHubNames\x12*\n" + + "\x10maxInstanceCount\x18\x05 \x01(\x05R\x10maxInstanceCount\x12J\n" + + "\x11continuationToken\x18\x06 \x01(\v2\x1c.google.protobuf.StringValueR\x11continuationToken\x12H\n" + + "\x10instanceIdPrefix\x18\a \x01(\v2\x1c.google.protobuf.StringValueR\x10instanceIdPrefix\x124\n" + + "\x15fetchInputsAndOutputs\x18\b \x01(\bR\x15fetchInputsAndOutputs\"\xa9\x01\n" + + "\x16QueryInstancesResponse\x12C\n" + + "\x12orchestrationState\x18\x01 \x03(\v2\x13.OrchestrationStateR\x12orchestrationState\x12J\n" + + "\x11continuationToken\x18\x02 \x01(\v2\x1c.google.protobuf.StringValueR\x11continuationToken\"\xc8\x02\n" + + "\x16ListInstanceIdsRequest\x12:\n" + + "\rruntimeStatus\x18\x01 \x03(\x0e2\x14.OrchestrationStatusR\rruntimeStatus\x12H\n" + + "\x11completedTimeFrom\x18\x02 \x01(\v2\x1a.google.protobuf.TimestampR\x11completedTimeFrom\x12D\n" + + "\x0fcompletedTimeTo\x18\x03 \x01(\v2\x1a.google.protobuf.TimestampR\x0fcompletedTimeTo\x12\x1a\n" + + "\bpageSize\x18\x04 \x01(\x05R\bpageSize\x12F\n" + + "\x0flastInstanceKey\x18\x05 \x01(\v2\x1c.google.protobuf.StringValueR\x0flastInstanceKey\"\x83\x01\n" + + "\x17ListInstanceIdsResponse\x12 \n" + + "\vinstanceIds\x18\x01 \x03(\tR\vinstanceIds\x12F\n" + + "\x0flastInstanceKey\x18\x02 \x01(\v2\x1c.google.protobuf.StringValueR\x0flastInstanceKey\"\x8e\x02\n" + + "\x15PurgeInstancesRequest\x12 \n" + + "\n" + + "instanceId\x18\x01 \x01(\tH\x00R\n" + + "instanceId\x12H\n" + + "\x13purgeInstanceFilter\x18\x02 \x01(\v2\x14.PurgeInstanceFilterH\x00R\x13purgeInstanceFilter\x126\n" + + "\rinstanceBatch\x18\x04 \x01(\v2\x0e.InstanceBatchH\x00R\rinstanceBatch\x12\x1c\n" + + "\trecursive\x18\x03 \x01(\bR\trecursive\x12(\n" + + "\x0fisOrchestration\x18\x05 \x01(\bR\x0fisOrchestrationB\t\n" + + "\arequest\"\x8e\x02\n" + + "\x13PurgeInstanceFilter\x12D\n" + + "\x0fcreatedTimeFrom\x18\x01 \x01(\v2\x1a.google.protobuf.TimestampR\x0fcreatedTimeFrom\x12@\n" + + "\rcreatedTimeTo\x18\x02 \x01(\v2\x1a.google.protobuf.TimestampR\rcreatedTimeTo\x12:\n" + + "\rruntimeStatus\x18\x03 \x03(\x0e2\x14.OrchestrationStatusR\rruntimeStatus\x123\n" + + "\atimeout\x18\x04 \x01(\v2\x19.google.protobuf.DurationR\atimeout\"\x88\x01\n" + + "\x16PurgeInstancesResponse\x122\n" + + "\x14deletedInstanceCount\x18\x01 \x01(\x05R\x14deletedInstanceCount\x12:\n" + + "\n" + + "isComplete\x18\x02 \x01(\v2\x1a.google.protobuf.BoolValueR\n" + + "isComplete\"t\n" + + "\x16RestartInstanceRequest\x12\x1e\n" + + "\n" + + "instanceId\x18\x01 \x01(\tR\n" + + "instanceId\x12:\n" + + "\x18restartWithNewInstanceId\x18\x02 \x01(\bR\x18restartWithNewInstanceId\"9\n" + + "\x17RestartInstanceResponse\x12\x1e\n" + + "\n" + + "instanceId\x18\x01 \x01(\tR\n" + + "instanceId\"B\n" + + "\x14CreateTaskHubRequest\x12*\n" + + "\x10recreateIfExists\x18\x01 \x01(\bR\x10recreateIfExists\"\x17\n" + + "\x15CreateTaskHubResponse\"\x16\n" + + "\x14DeleteTaskHubRequest\"\x17\n" + + "\x15DeleteTaskHubResponse\"\xda\x02\n" + + "\x13SignalEntityRequest\x12\x1e\n" + + "\n" + + "instanceId\x18\x01 \x01(\tR\n" + + "instanceId\x12\x12\n" + + "\x04name\x18\x02 \x01(\tR\x04name\x122\n" + + "\x05input\x18\x03 \x01(\v2\x1c.google.protobuf.StringValueR\x05input\x12\x1c\n" + + "\trequestId\x18\x04 \x01(\tR\trequestId\x12@\n" + + "\rscheduledTime\x18\x05 \x01(\v2\x1a.google.protobuf.TimestampR\rscheduledTime\x12=\n" + + "\x12parentTraceContext\x18\x06 \x01(\v2\r.TraceContextR\x12parentTraceContext\x12<\n" + + "\vrequestTime\x18\a \x01(\v2\x1a.google.protobuf.TimestampR\vrequestTime\"\x16\n" + + "\x14SignalEntityResponse\"V\n" + + "\x10GetEntityRequest\x12\x1e\n" + + "\n" + + "instanceId\x18\x01 \x01(\tR\n" + + "instanceId\x12\"\n" + + "\fincludeState\x18\x02 \x01(\bR\fincludeState\"T\n" + + "\x11GetEntityResponse\x12\x16\n" + + "\x06exists\x18\x01 \x01(\bR\x06exists\x12'\n" + + "\x06entity\x18\x02 \x01(\v2\x0f.EntityMetadataR\x06entity\"\xc0\x03\n" + + "\vEntityQuery\x12P\n" + + "\x14instanceIdStartsWith\x18\x01 \x01(\v2\x1c.google.protobuf.StringValueR\x14instanceIdStartsWith\x12F\n" + + "\x10lastModifiedFrom\x18\x02 \x01(\v2\x1a.google.protobuf.TimestampR\x10lastModifiedFrom\x12B\n" + + "\x0elastModifiedTo\x18\x03 \x01(\v2\x1a.google.protobuf.TimestampR\x0elastModifiedTo\x12\"\n" + + "\fincludeState\x18\x04 \x01(\bR\fincludeState\x12*\n" + + "\x10includeTransient\x18\x05 \x01(\bR\x10includeTransient\x127\n" + + "\bpageSize\x18\x06 \x01(\v2\x1b.google.protobuf.Int32ValueR\bpageSize\x12J\n" + + "\x11continuationToken\x18\a \x01(\v2\x1c.google.protobuf.StringValueR\x11continuationToken\":\n" + + "\x14QueryEntitiesRequest\x12\"\n" + + "\x05query\x18\x01 \x01(\v2\f.EntityQueryR\x05query\"\x90\x01\n" + + "\x15QueryEntitiesResponse\x12+\n" + + "\bentities\x18\x01 \x03(\v2\x0f.EntityMetadataR\bentities\x12J\n" + + "\x11continuationToken\x18\x02 \x01(\v2\x1c.google.protobuf.StringValueR\x11continuationToken\"\xa6\x02\n" + + "\x0eEntityMetadata\x12\x1e\n" + + "\n" + + "instanceId\x18\x01 \x01(\tR\n" + + "instanceId\x12F\n" + + "\x10lastModifiedTime\x18\x02 \x01(\v2\x1a.google.protobuf.TimestampR\x10lastModifiedTime\x12*\n" + + "\x10backlogQueueSize\x18\x03 \x01(\x05R\x10backlogQueueSize\x128\n" + + "\blockedBy\x18\x04 \x01(\v2\x1c.google.protobuf.StringValueR\blockedBy\x12F\n" + + "\x0fserializedState\x18\x05 \x01(\v2\x1c.google.protobuf.StringValueR\x0fserializedState\"\xcd\x01\n" + + "\x19CleanEntityStorageRequest\x12J\n" + + "\x11continuationToken\x18\x01 \x01(\v2\x1c.google.protobuf.StringValueR\x11continuationToken\x120\n" + + "\x13removeEmptyEntities\x18\x02 \x01(\bR\x13removeEmptyEntities\x122\n" + + "\x14releaseOrphanedLocks\x18\x03 \x01(\bR\x14releaseOrphanedLocks\"\xd2\x01\n" + + "\x1aCleanEntityStorageResponse\x12J\n" + + "\x11continuationToken\x18\x01 \x01(\v2\x1c.google.protobuf.StringValueR\x11continuationToken\x122\n" + + "\x14emptyEntitiesRemoved\x18\x02 \x01(\x05R\x14emptyEntitiesRemoved\x124\n" + + "\x15orphanedLocksReleased\x18\x03 \x01(\x05R\x15orphanedLocksReleased\"y\n" + + "\x1cOrchestratorEntityParameters\x12Y\n" + + "\x1aentityMessageReorderWindow\x18\x01 \x01(\v2\x19.google.protobuf.DurationR\x1aentityMessageReorderWindow\"\xc3\x02\n" + + "\x12EntityBatchRequest\x12\x1e\n" + + "\n" + + "instanceId\x18\x01 \x01(\tR\n" + + "instanceId\x12>\n" + + "\ventityState\x18\x02 \x01(\v2\x1c.google.protobuf.StringValueR\ventityState\x121\n" + + "\n" + + "operations\x18\x03 \x03(\v2\x11.OperationRequestR\n" + + "operations\x12C\n" + + "\n" + + "properties\x18\x04 \x03(\v2#.EntityBatchRequest.PropertiesEntryR\n" + + "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" + + "\x11EntityBatchResult\x12*\n" + + "\aresults\x18\x01 \x03(\v2\x10.OperationResultR\aresults\x12*\n" + + "\aactions\x18\x02 \x03(\v2\x10.OperationActionR\aactions\x12>\n" + + "\ventityState\x18\x03 \x01(\v2\x1c.google.protobuf.StringValueR\ventityState\x12;\n" + + "\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" + + "\rEntityRequest\x12\x1e\n" + + "\n" + + "instanceId\x18\x01 \x01(\tR\n" + + "instanceId\x12 \n" + + "\vexecutionId\x18\x02 \x01(\tR\vexecutionId\x12>\n" + + "\ventityState\x18\x03 \x01(\v2\x1c.google.protobuf.StringValueR\ventityState\x12;\n" + + "\x11operationRequests\x18\x04 \x03(\v2\r.HistoryEventR\x11operationRequests\"\xb5\x01\n" + + "\x10OperationRequest\x12\x1c\n" + + "\toperation\x18\x01 \x01(\tR\toperation\x12\x1c\n" + + "\trequestId\x18\x02 \x01(\tR\trequestId\x122\n" + + "\x05input\x18\x03 \x01(\v2\x1c.google.protobuf.StringValueR\x05input\x121\n" + + "\ftraceContext\x18\x04 \x01(\v2\r.TraceContextR\ftraceContext\"\x89\x01\n" + + "\x0fOperationResult\x123\n" + + "\asuccess\x18\x01 \x01(\v2\x17.OperationResultSuccessH\x00R\asuccess\x123\n" + + "\afailure\x18\x02 \x01(\v2\x17.OperationResultFailureH\x00R\afailureB\f\n" + + "\n" + + "resultType\"w\n" + + "\rOperationInfo\x12\x1c\n" + + "\trequestId\x18\x01 \x01(\tR\trequestId\x12H\n" + + "\x13responseDestination\x18\x02 \x01(\v2\x16.OrchestrationInstanceR\x13responseDestination\"\xca\x01\n" + + "\x16OperationResultSuccess\x124\n" + + "\x06result\x18\x01 \x01(\v2\x1c.google.protobuf.StringValueR\x06result\x12>\n" + + "\fstartTimeUtc\x18\x02 \x01(\v2\x1a.google.protobuf.TimestampR\fstartTimeUtc\x12:\n" + + "\n" + + "endTimeUtc\x18\x03 \x01(\v2\x1a.google.protobuf.TimestampR\n" + + "endTimeUtc\"\xd1\x01\n" + + "\x16OperationResultFailure\x12;\n" + + "\x0efailureDetails\x18\x01 \x01(\v2\x13.TaskFailureDetailsR\x0efailureDetails\x12>\n" + + "\fstartTimeUtc\x18\x02 \x01(\v2\x1a.google.protobuf.TimestampR\fstartTimeUtc\x12:\n" + + "\n" + + "endTimeUtc\x18\x03 \x01(\v2\x1a.google.protobuf.TimestampR\n" + + "endTimeUtc\"\xc3\x01\n" + + "\x0fOperationAction\x12\x0e\n" + + "\x02id\x18\x01 \x01(\x05R\x02id\x123\n" + + "\n" + + "sendSignal\x18\x02 \x01(\v2\x11.SendSignalActionH\x00R\n" + + "sendSignal\x12T\n" + + "\x15startNewOrchestration\x18\x03 \x01(\v2\x1c.StartNewOrchestrationActionH\x00R\x15startNewOrchestrationB\x15\n" + + "\x13operationActionType\"\xb9\x02\n" + + "\x10SendSignalAction\x12\x1e\n" + + "\n" + + "instanceId\x18\x01 \x01(\tR\n" + + "instanceId\x12\x12\n" + + "\x04name\x18\x02 \x01(\tR\x04name\x122\n" + + "\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" + + "\x1bStartNewOrchestrationAction\x12\x1e\n" + + "\n" + + "instanceId\x18\x01 \x01(\tR\n" + + "instanceId\x12\x12\n" + + "\x04name\x18\x02 \x01(\tR\x04name\x126\n" + + "\aversion\x18\x03 \x01(\v2\x1c.google.protobuf.StringValueR\aversion\x122\n" + + "\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" + + "\x1aAbandonActivityTaskRequest\x12(\n" + + "\x0fcompletionToken\x18\x01 \x01(\tR\x0fcompletionToken\"\x1d\n" + + "\x1bAbandonActivityTaskResponse\"K\n" + + "\x1fAbandonOrchestrationTaskRequest\x12(\n" + + "\x0fcompletionToken\x18\x01 \x01(\tR\x0fcompletionToken\"\"\n" + + " AbandonOrchestrationTaskResponse\"D\n" + + "\x18AbandonEntityTaskRequest\x12(\n" + + "\x0fcompletionToken\x18\x01 \x01(\tR\x0fcompletionToken\"\x1b\n" + + "\x19AbandonEntityTaskResponse\"\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" + + "-SkipGracefulOrchestrationTerminationsResponse\x128\n" + + "\x17unterminatedInstanceIds\x18\x01 \x03(\tR\x17unterminatedInstanceIds\"\xe6\x02\n" + + "\x13GetWorkItemsRequest\x12P\n" + + "#maxConcurrentOrchestrationWorkItems\x18\x01 \x01(\x05R#maxConcurrentOrchestrationWorkItems\x12F\n" + + "\x1emaxConcurrentActivityWorkItems\x18\x02 \x01(\x05R\x1emaxConcurrentActivityWorkItems\x12B\n" + + "\x1cmaxConcurrentEntityWorkItems\x18\x03 \x01(\x05R\x1cmaxConcurrentEntityWorkItems\x125\n" + + "\fcapabilities\x18\n" + + " \x03(\x0e2\x11.WorkerCapabilityR\fcapabilities\x12:\n" + + "\x0fworkItemFilters\x18\v \x01(\v2\x10.WorkItemFiltersR\x0fworkItemFilters\"\xab\x01\n" + + "\x0fWorkItemFilters\x12<\n" + + "\x0eorchestrations\x18\x01 \x03(\v2\x14.OrchestrationFilterR\x0eorchestrations\x12/\n" + + "\n" + + "activities\x18\x02 \x03(\v2\x0f.ActivityFilterR\n" + + "activities\x12)\n" + + "\bentities\x18\x03 \x03(\v2\r.EntityFilterR\bentities\"E\n" + + "\x13OrchestrationFilter\x12\x12\n" + + "\x04name\x18\x01 \x01(\tR\x04name\x12\x1a\n" + + "\bversions\x18\x02 \x03(\tR\bversions\"@\n" + + "\x0eActivityFilter\x12\x12\n" + + "\x04name\x18\x01 \x01(\tR\x04name\x12\x1a\n" + + "\bversions\x18\x02 \x03(\tR\bversions\"\"\n" + + "\fEntityFilter\x12\x12\n" + + "\x04name\x18\x01 \x01(\tR\x04name\"\xef\x02\n" + + "\bWorkItem\x12H\n" + + "\x13orchestratorRequest\x18\x01 \x01(\v2\x14.OrchestratorRequestH\x00R\x13orchestratorRequest\x12<\n" + + "\x0factivityRequest\x18\x02 \x01(\v2\x10.ActivityRequestH\x00R\x0factivityRequest\x12;\n" + + "\rentityRequest\x18\x03 \x01(\v2\x13.EntityBatchRequestH\x00R\rentityRequest\x12-\n" + + "\n" + + "healthPing\x18\x04 \x01(\v2\v.HealthPingH\x00R\n" + + "healthPing\x12:\n" + + "\x0fentityRequestV2\x18\x05 \x01(\v2\x0e.EntityRequestH\x00R\x0fentityRequestV2\x12(\n" + + "\x0fcompletionToken\x18\n" + + " \x01(\tR\x0fcompletionTokenB\t\n" + + "\arequest\"\x16\n" + + "\x14CompleteTaskResponse\"\f\n" + + "\n" + + "HealthPing\"\xb4\x01\n" + + "\x1cStreamInstanceHistoryRequest\x12\x1e\n" + + "\n" + + "instanceId\x18\x01 \x01(\tR\n" + + "instanceId\x12>\n" + + "\vexecutionId\x18\x02 \x01(\v2\x1c.google.protobuf.StringValueR\vexecutionId\x124\n" + + "\x15forWorkItemProcessing\x18\x03 \x01(\bR\x15forWorkItemProcessing\"5\n" + + "\fHistoryChunk\x12%\n" + + "\x06events\x18\x01 \x03(\v2\r.HistoryEventR\x06events\"1\n" + + "\rInstanceBatch\x12 \n" + + "\vinstanceIds\x18\x01 \x03(\tR\vinstanceIds*\xb5\x02\n" + + "\x13OrchestrationStatus\x12 \n" + + "\x1cORCHESTRATION_STATUS_RUNNING\x10\x00\x12\"\n" + + "\x1eORCHESTRATION_STATUS_COMPLETED\x10\x01\x12)\n" + + "%ORCHESTRATION_STATUS_CONTINUED_AS_NEW\x10\x02\x12\x1f\n" + + "\x1bORCHESTRATION_STATUS_FAILED\x10\x03\x12!\n" + + "\x1dORCHESTRATION_STATUS_CANCELED\x10\x04\x12#\n" + + "\x1fORCHESTRATION_STATUS_TERMINATED\x10\x05\x12 \n" + + "\x1cORCHESTRATION_STATUS_PENDING\x10\x06\x12\"\n" + + "\x1eORCHESTRATION_STATUS_SUSPENDED\x10\a*\xab\x01\n" + + "\x10WorkerCapability\x12!\n" + + "\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" + + "\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" + + "\vGetInstance\x12\x13.GetInstanceRequest\x1a\x14.GetInstanceResponse\x12A\n" + + "\x0eRewindInstance\x12\x16.RewindInstanceRequest\x1a\x17.RewindInstanceResponse\x12D\n" + + "\x0fRestartInstance\x12\x17.RestartInstanceRequest\x1a\x18.RestartInstanceResponse\x12A\n" + + "\x14WaitForInstanceStart\x12\x13.GetInstanceRequest\x1a\x14.GetInstanceResponse\x12F\n" + + "\x19WaitForInstanceCompletion\x12\x13.GetInstanceRequest\x1a\x14.GetInstanceResponse\x125\n" + + "\n" + + "RaiseEvent\x12\x12.RaiseEventRequest\x1a\x13.RaiseEventResponse\x12:\n" + + "\x11TerminateInstance\x12\x11.TerminateRequest\x1a\x12.TerminateResponse\x124\n" + + "\x0fSuspendInstance\x12\x0f.SuspendRequest\x1a\x10.SuspendResponse\x121\n" + + "\x0eResumeInstance\x12\x0e.ResumeRequest\x1a\x0f.ResumeResponse\x12A\n" + + "\x0eQueryInstances\x12\x16.QueryInstancesRequest\x1a\x17.QueryInstancesResponse\x12D\n" + + "\x0fListInstanceIds\x12\x17.ListInstanceIdsRequest\x1a\x18.ListInstanceIdsResponse\x12A\n" + + "\x0ePurgeInstances\x12\x16.PurgeInstancesRequest\x1a\x17.PurgeInstancesResponse\x121\n" + + "\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" + + "\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" + + "\fSignalEntity\x12\x14.SignalEntityRequest\x1a\x15.SignalEntityResponse\x122\n" + + "\tGetEntity\x12\x11.GetEntityRequest\x1a\x12.GetEntityResponse\x12>\n" + + "\rQueryEntities\x12\x15.QueryEntitiesRequest\x1a\x16.QueryEntitiesResponse\x12M\n" + + "\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" + + "%SkipGracefulOrchestrationTerminations\x12-.SkipGracefulOrchestrationTerminationsRequest\x1a..SkipGracefulOrchestrationTerminationsResponseBf\n" + + "1com.microsoft.durabletask.implementation.protobufZ\x10/internal/protos\xaa\x02\x1eMicrosoft.DurableTask.Protobufb\x06proto3" + var ( file_orchestrator_service_proto_rawDescOnce sync.Once - file_orchestrator_service_proto_rawDescData = file_orchestrator_service_proto_rawDesc + file_orchestrator_service_proto_rawDescData []byte ) func file_orchestrator_service_proto_rawDescGZIP() []byte { file_orchestrator_service_proto_rawDescOnce.Do(func() { - file_orchestrator_service_proto_rawDescData = protoimpl.X.CompressGZIP(file_orchestrator_service_proto_rawDescData) + file_orchestrator_service_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_orchestrator_service_proto_rawDesc), len(file_orchestrator_service_proto_rawDesc))) }) return file_orchestrator_service_proto_rawDescData } var file_orchestrator_service_proto_enumTypes = make([]protoimpl.EnumInfo, 2) -var file_orchestrator_service_proto_msgTypes = make([]protoimpl.MessageInfo, 85) -var file_orchestrator_service_proto_goTypes = []interface{}{ - (OrchestrationStatus)(0), // 0: OrchestrationStatus - (CreateOrchestrationAction)(0), // 1: CreateOrchestrationAction - (*OrchestrationInstance)(nil), // 2: OrchestrationInstance - (*ActivityRequest)(nil), // 3: ActivityRequest - (*ActivityResponse)(nil), // 4: ActivityResponse - (*TaskFailureDetails)(nil), // 5: TaskFailureDetails - (*ParentInstanceInfo)(nil), // 6: ParentInstanceInfo - (*TraceContext)(nil), // 7: TraceContext - (*ExecutionStartedEvent)(nil), // 8: ExecutionStartedEvent - (*ExecutionCompletedEvent)(nil), // 9: ExecutionCompletedEvent - (*ExecutionTerminatedEvent)(nil), // 10: ExecutionTerminatedEvent - (*TaskScheduledEvent)(nil), // 11: TaskScheduledEvent - (*TaskCompletedEvent)(nil), // 12: TaskCompletedEvent - (*TaskFailedEvent)(nil), // 13: TaskFailedEvent - (*SubOrchestrationInstanceCreatedEvent)(nil), // 14: SubOrchestrationInstanceCreatedEvent - (*SubOrchestrationInstanceCompletedEvent)(nil), // 15: SubOrchestrationInstanceCompletedEvent - (*SubOrchestrationInstanceFailedEvent)(nil), // 16: SubOrchestrationInstanceFailedEvent - (*TimerCreatedEvent)(nil), // 17: TimerCreatedEvent - (*TimerFiredEvent)(nil), // 18: TimerFiredEvent - (*OrchestratorStartedEvent)(nil), // 19: OrchestratorStartedEvent - (*OrchestratorCompletedEvent)(nil), // 20: OrchestratorCompletedEvent - (*EventSentEvent)(nil), // 21: EventSentEvent - (*EventRaisedEvent)(nil), // 22: EventRaisedEvent - (*GenericEvent)(nil), // 23: GenericEvent - (*HistoryStateEvent)(nil), // 24: HistoryStateEvent - (*ContinueAsNewEvent)(nil), // 25: ContinueAsNewEvent - (*ExecutionSuspendedEvent)(nil), // 26: ExecutionSuspendedEvent - (*ExecutionResumedEvent)(nil), // 27: ExecutionResumedEvent - (*HistoryEvent)(nil), // 28: HistoryEvent - (*ScheduleTaskAction)(nil), // 29: ScheduleTaskAction - (*CreateSubOrchestrationAction)(nil), // 30: CreateSubOrchestrationAction - (*CreateTimerAction)(nil), // 31: CreateTimerAction - (*SendEventAction)(nil), // 32: SendEventAction - (*CompleteOrchestrationAction)(nil), // 33: CompleteOrchestrationAction - (*TerminateOrchestrationAction)(nil), // 34: TerminateOrchestrationAction - (*OrchestratorAction)(nil), // 35: OrchestratorAction - (*OrchestratorRequest)(nil), // 36: OrchestratorRequest - (*OrchestratorResponse)(nil), // 37: OrchestratorResponse - (*CreateInstanceRequest)(nil), // 38: CreateInstanceRequest - (*OrchestrationIdReusePolicy)(nil), // 39: OrchestrationIdReusePolicy - (*CreateInstanceResponse)(nil), // 40: CreateInstanceResponse - (*GetInstanceRequest)(nil), // 41: GetInstanceRequest - (*GetInstanceResponse)(nil), // 42: GetInstanceResponse - (*RewindInstanceRequest)(nil), // 43: RewindInstanceRequest - (*RewindInstanceResponse)(nil), // 44: RewindInstanceResponse - (*OrchestrationState)(nil), // 45: OrchestrationState - (*RaiseEventRequest)(nil), // 46: RaiseEventRequest - (*RaiseEventResponse)(nil), // 47: RaiseEventResponse - (*TerminateRequest)(nil), // 48: TerminateRequest - (*TerminateResponse)(nil), // 49: TerminateResponse - (*SuspendRequest)(nil), // 50: SuspendRequest - (*SuspendResponse)(nil), // 51: SuspendResponse - (*ResumeRequest)(nil), // 52: ResumeRequest - (*ResumeResponse)(nil), // 53: ResumeResponse - (*QueryInstancesRequest)(nil), // 54: QueryInstancesRequest - (*InstanceQuery)(nil), // 55: InstanceQuery - (*QueryInstancesResponse)(nil), // 56: QueryInstancesResponse - (*PurgeInstancesRequest)(nil), // 57: PurgeInstancesRequest - (*PurgeInstanceFilter)(nil), // 58: PurgeInstanceFilter - (*PurgeInstancesResponse)(nil), // 59: PurgeInstancesResponse - (*CreateTaskHubRequest)(nil), // 60: CreateTaskHubRequest - (*CreateTaskHubResponse)(nil), // 61: CreateTaskHubResponse - (*DeleteTaskHubRequest)(nil), // 62: DeleteTaskHubRequest - (*DeleteTaskHubResponse)(nil), // 63: DeleteTaskHubResponse - (*SignalEntityRequest)(nil), // 64: SignalEntityRequest - (*SignalEntityResponse)(nil), // 65: SignalEntityResponse - (*GetEntityRequest)(nil), // 66: GetEntityRequest - (*GetEntityResponse)(nil), // 67: GetEntityResponse - (*EntityQuery)(nil), // 68: EntityQuery - (*QueryEntitiesRequest)(nil), // 69: QueryEntitiesRequest - (*QueryEntitiesResponse)(nil), // 70: QueryEntitiesResponse - (*EntityMetadata)(nil), // 71: EntityMetadata - (*CleanEntityStorageRequest)(nil), // 72: CleanEntityStorageRequest - (*CleanEntityStorageResponse)(nil), // 73: CleanEntityStorageResponse - (*OrchestratorEntityParameters)(nil), // 74: OrchestratorEntityParameters - (*EntityBatchRequest)(nil), // 75: EntityBatchRequest - (*EntityBatchResult)(nil), // 76: EntityBatchResult - (*OperationRequest)(nil), // 77: OperationRequest - (*OperationResult)(nil), // 78: OperationResult - (*OperationResultSuccess)(nil), // 79: OperationResultSuccess - (*OperationResultFailure)(nil), // 80: OperationResultFailure - (*OperationAction)(nil), // 81: OperationAction - (*SendSignalAction)(nil), // 82: SendSignalAction - (*StartNewOrchestrationAction)(nil), // 83: StartNewOrchestrationAction - (*GetWorkItemsRequest)(nil), // 84: GetWorkItemsRequest - (*WorkItem)(nil), // 85: WorkItem - (*CompleteTaskResponse)(nil), // 86: CompleteTaskResponse - (*wrappers.StringValue)(nil), // 87: google.protobuf.StringValue - (*timestamp.Timestamp)(nil), // 88: google.protobuf.Timestamp - (*wrappers.Int32Value)(nil), // 89: google.protobuf.Int32Value - (*duration.Duration)(nil), // 90: google.protobuf.Duration - (*empty.Empty)(nil), // 91: google.protobuf.Empty +var file_orchestrator_service_proto_msgTypes = make([]protoimpl.MessageInfo, 131) +var file_orchestrator_service_proto_goTypes = []any{ + (OrchestrationStatus)(0), // 0: OrchestrationStatus + (WorkerCapability)(0), // 1: WorkerCapability + (*OrchestrationInstance)(nil), // 2: OrchestrationInstance + (*ActivityRequest)(nil), // 3: ActivityRequest + (*ActivityResponse)(nil), // 4: ActivityResponse + (*TaskFailureDetails)(nil), // 5: TaskFailureDetails + (*ParentInstanceInfo)(nil), // 6: ParentInstanceInfo + (*TraceContext)(nil), // 7: TraceContext + (*ExecutionStartedEvent)(nil), // 8: ExecutionStartedEvent + (*ExecutionCompletedEvent)(nil), // 9: ExecutionCompletedEvent + (*ExecutionTerminatedEvent)(nil), // 10: ExecutionTerminatedEvent + (*TaskScheduledEvent)(nil), // 11: TaskScheduledEvent + (*TaskCompletedEvent)(nil), // 12: TaskCompletedEvent + (*TaskFailedEvent)(nil), // 13: TaskFailedEvent + (*SubOrchestrationInstanceCreatedEvent)(nil), // 14: SubOrchestrationInstanceCreatedEvent + (*SubOrchestrationInstanceCompletedEvent)(nil), // 15: SubOrchestrationInstanceCompletedEvent + (*SubOrchestrationInstanceFailedEvent)(nil), // 16: SubOrchestrationInstanceFailedEvent + (*TimerCreatedEvent)(nil), // 17: TimerCreatedEvent + (*TimerFiredEvent)(nil), // 18: TimerFiredEvent + (*OrchestratorStartedEvent)(nil), // 19: OrchestratorStartedEvent + (*OrchestratorCompletedEvent)(nil), // 20: OrchestratorCompletedEvent + (*EventSentEvent)(nil), // 21: EventSentEvent + (*EventRaisedEvent)(nil), // 22: EventRaisedEvent + (*GenericEvent)(nil), // 23: GenericEvent + (*HistoryStateEvent)(nil), // 24: HistoryStateEvent + (*ContinueAsNewEvent)(nil), // 25: ContinueAsNewEvent + (*ExecutionSuspendedEvent)(nil), // 26: ExecutionSuspendedEvent + (*ExecutionResumedEvent)(nil), // 27: ExecutionResumedEvent + (*EntityOperationSignaledEvent)(nil), // 28: EntityOperationSignaledEvent + (*EntityOperationCalledEvent)(nil), // 29: EntityOperationCalledEvent + (*EntityLockRequestedEvent)(nil), // 30: EntityLockRequestedEvent + (*EntityOperationCompletedEvent)(nil), // 31: EntityOperationCompletedEvent + (*EntityOperationFailedEvent)(nil), // 32: EntityOperationFailedEvent + (*EntityUnlockSentEvent)(nil), // 33: EntityUnlockSentEvent + (*EntityLockGrantedEvent)(nil), // 34: EntityLockGrantedEvent + (*ExecutionRewoundEvent)(nil), // 35: ExecutionRewoundEvent + (*HistoryEvent)(nil), // 36: HistoryEvent + (*ScheduleTaskAction)(nil), // 37: ScheduleTaskAction + (*CreateSubOrchestrationAction)(nil), // 38: CreateSubOrchestrationAction + (*CreateTimerAction)(nil), // 39: CreateTimerAction + (*SendEventAction)(nil), // 40: SendEventAction + (*CompleteOrchestrationAction)(nil), // 41: CompleteOrchestrationAction + (*TerminateOrchestrationAction)(nil), // 42: TerminateOrchestrationAction + (*SendEntityMessageAction)(nil), // 43: SendEntityMessageAction + (*RewindOrchestrationAction)(nil), // 44: RewindOrchestrationAction + (*OrchestratorAction)(nil), // 45: OrchestratorAction + (*OrchestrationTraceContext)(nil), // 46: OrchestrationTraceContext + (*OrchestratorRequest)(nil), // 47: OrchestratorRequest + (*OrchestratorResponse)(nil), // 48: OrchestratorResponse + (*CreateInstanceRequest)(nil), // 49: CreateInstanceRequest + (*OrchestrationIdReusePolicy)(nil), // 50: OrchestrationIdReusePolicy + (*CreateInstanceResponse)(nil), // 51: CreateInstanceResponse + (*GetInstanceRequest)(nil), // 52: GetInstanceRequest + (*GetInstanceResponse)(nil), // 53: GetInstanceResponse + (*RewindInstanceRequest)(nil), // 54: RewindInstanceRequest + (*RewindInstanceResponse)(nil), // 55: RewindInstanceResponse + (*OrchestrationState)(nil), // 56: OrchestrationState + (*RaiseEventRequest)(nil), // 57: RaiseEventRequest + (*RaiseEventResponse)(nil), // 58: RaiseEventResponse + (*TerminateRequest)(nil), // 59: TerminateRequest + (*TerminateResponse)(nil), // 60: TerminateResponse + (*SuspendRequest)(nil), // 61: SuspendRequest + (*SuspendResponse)(nil), // 62: SuspendResponse + (*ResumeRequest)(nil), // 63: ResumeRequest + (*ResumeResponse)(nil), // 64: ResumeResponse + (*QueryInstancesRequest)(nil), // 65: QueryInstancesRequest + (*InstanceQuery)(nil), // 66: InstanceQuery + (*QueryInstancesResponse)(nil), // 67: QueryInstancesResponse + (*ListInstanceIdsRequest)(nil), // 68: ListInstanceIdsRequest + (*ListInstanceIdsResponse)(nil), // 69: ListInstanceIdsResponse + (*PurgeInstancesRequest)(nil), // 70: PurgeInstancesRequest + (*PurgeInstanceFilter)(nil), // 71: PurgeInstanceFilter + (*PurgeInstancesResponse)(nil), // 72: PurgeInstancesResponse + (*RestartInstanceRequest)(nil), // 73: RestartInstanceRequest + (*RestartInstanceResponse)(nil), // 74: RestartInstanceResponse + (*CreateTaskHubRequest)(nil), // 75: CreateTaskHubRequest + (*CreateTaskHubResponse)(nil), // 76: CreateTaskHubResponse + (*DeleteTaskHubRequest)(nil), // 77: DeleteTaskHubRequest + (*DeleteTaskHubResponse)(nil), // 78: DeleteTaskHubResponse + (*SignalEntityRequest)(nil), // 79: SignalEntityRequest + (*SignalEntityResponse)(nil), // 80: SignalEntityResponse + (*GetEntityRequest)(nil), // 81: GetEntityRequest + (*GetEntityResponse)(nil), // 82: GetEntityResponse + (*EntityQuery)(nil), // 83: EntityQuery + (*QueryEntitiesRequest)(nil), // 84: QueryEntitiesRequest + (*QueryEntitiesResponse)(nil), // 85: QueryEntitiesResponse + (*EntityMetadata)(nil), // 86: EntityMetadata + (*CleanEntityStorageRequest)(nil), // 87: CleanEntityStorageRequest + (*CleanEntityStorageResponse)(nil), // 88: CleanEntityStorageResponse + (*OrchestratorEntityParameters)(nil), // 89: OrchestratorEntityParameters + (*EntityBatchRequest)(nil), // 90: EntityBatchRequest + (*EntityBatchResult)(nil), // 91: EntityBatchResult + (*EntityRequest)(nil), // 92: EntityRequest + (*OperationRequest)(nil), // 93: OperationRequest + (*OperationResult)(nil), // 94: OperationResult + (*OperationInfo)(nil), // 95: OperationInfo + (*OperationResultSuccess)(nil), // 96: OperationResultSuccess + (*OperationResultFailure)(nil), // 97: OperationResultFailure + (*OperationAction)(nil), // 98: OperationAction + (*SendSignalAction)(nil), // 99: SendSignalAction + (*StartNewOrchestrationAction)(nil), // 100: StartNewOrchestrationAction + (*AbandonActivityTaskRequest)(nil), // 101: AbandonActivityTaskRequest + (*AbandonActivityTaskResponse)(nil), // 102: AbandonActivityTaskResponse + (*AbandonOrchestrationTaskRequest)(nil), // 103: AbandonOrchestrationTaskRequest + (*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 + (*wrappers.StringValue)(nil), // 133: google.protobuf.StringValue + (*timestamp.Timestamp)(nil), // 134: google.protobuf.Timestamp + (*wrappers.Int32Value)(nil), // 135: google.protobuf.Int32Value + (*duration.Duration)(nil), // 136: google.protobuf.Duration + (*wrappers.BoolValue)(nil), // 137: google.protobuf.BoolValue + (*_struct.Value)(nil), // 138: google.protobuf.Value + (*empty.Empty)(nil), // 139: google.protobuf.Empty } var file_orchestrator_service_proto_depIdxs = []int32{ - 87, // 0: OrchestrationInstance.executionId:type_name -> google.protobuf.StringValue - 87, // 1: ActivityRequest.version:type_name -> google.protobuf.StringValue - 87, // 2: ActivityRequest.input:type_name -> google.protobuf.StringValue + 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 2, // 3: ActivityRequest.orchestrationInstance:type_name -> OrchestrationInstance - 87, // 4: ActivityResponse.result:type_name -> google.protobuf.StringValue - 5, // 5: ActivityResponse.failureDetails:type_name -> TaskFailureDetails - 87, // 6: TaskFailureDetails.stackTrace:type_name -> google.protobuf.StringValue - 5, // 7: TaskFailureDetails.innerFailure:type_name -> TaskFailureDetails - 87, // 8: ParentInstanceInfo.name:type_name -> google.protobuf.StringValue - 87, // 9: ParentInstanceInfo.version:type_name -> google.protobuf.StringValue - 2, // 10: ParentInstanceInfo.orchestrationInstance:type_name -> OrchestrationInstance - 87, // 11: TraceContext.traceState:type_name -> google.protobuf.StringValue - 87, // 12: ExecutionStartedEvent.version:type_name -> google.protobuf.StringValue - 87, // 13: ExecutionStartedEvent.input:type_name -> google.protobuf.StringValue - 2, // 14: ExecutionStartedEvent.orchestrationInstance:type_name -> OrchestrationInstance - 6, // 15: ExecutionStartedEvent.parentInstance:type_name -> ParentInstanceInfo - 88, // 16: ExecutionStartedEvent.scheduledStartTimestamp:type_name -> google.protobuf.Timestamp - 7, // 17: ExecutionStartedEvent.parentTraceContext:type_name -> TraceContext - 87, // 18: ExecutionStartedEvent.orchestrationSpanID:type_name -> google.protobuf.StringValue - 0, // 19: ExecutionCompletedEvent.orchestrationStatus:type_name -> OrchestrationStatus - 87, // 20: ExecutionCompletedEvent.result:type_name -> google.protobuf.StringValue - 5, // 21: ExecutionCompletedEvent.failureDetails:type_name -> TaskFailureDetails - 87, // 22: ExecutionTerminatedEvent.input:type_name -> google.protobuf.StringValue - 87, // 23: TaskScheduledEvent.version:type_name -> google.protobuf.StringValue - 87, // 24: TaskScheduledEvent.input:type_name -> google.protobuf.StringValue - 7, // 25: TaskScheduledEvent.parentTraceContext:type_name -> TraceContext - 87, // 26: TaskCompletedEvent.result:type_name -> google.protobuf.StringValue - 5, // 27: TaskFailedEvent.failureDetails:type_name -> TaskFailureDetails - 87, // 28: SubOrchestrationInstanceCreatedEvent.version:type_name -> google.protobuf.StringValue - 87, // 29: SubOrchestrationInstanceCreatedEvent.input:type_name -> google.protobuf.StringValue - 7, // 30: SubOrchestrationInstanceCreatedEvent.parentTraceContext:type_name -> TraceContext - 87, // 31: SubOrchestrationInstanceCompletedEvent.result:type_name -> google.protobuf.StringValue - 5, // 32: SubOrchestrationInstanceFailedEvent.failureDetails:type_name -> TaskFailureDetails - 88, // 33: TimerCreatedEvent.fireAt:type_name -> google.protobuf.Timestamp - 88, // 34: TimerFiredEvent.fireAt:type_name -> google.protobuf.Timestamp - 87, // 35: EventSentEvent.input:type_name -> google.protobuf.StringValue - 87, // 36: EventRaisedEvent.input:type_name -> google.protobuf.StringValue - 87, // 37: GenericEvent.data:type_name -> google.protobuf.StringValue - 45, // 38: HistoryStateEvent.orchestrationState:type_name -> OrchestrationState - 87, // 39: ContinueAsNewEvent.input:type_name -> google.protobuf.StringValue - 87, // 40: ExecutionSuspendedEvent.input:type_name -> google.protobuf.StringValue - 87, // 41: ExecutionResumedEvent.input:type_name -> google.protobuf.StringValue - 88, // 42: HistoryEvent.timestamp:type_name -> google.protobuf.Timestamp - 8, // 43: HistoryEvent.executionStarted:type_name -> ExecutionStartedEvent - 9, // 44: HistoryEvent.executionCompleted:type_name -> ExecutionCompletedEvent - 10, // 45: HistoryEvent.executionTerminated:type_name -> ExecutionTerminatedEvent - 11, // 46: HistoryEvent.taskScheduled:type_name -> TaskScheduledEvent - 12, // 47: HistoryEvent.taskCompleted:type_name -> TaskCompletedEvent - 13, // 48: HistoryEvent.taskFailed:type_name -> TaskFailedEvent - 14, // 49: HistoryEvent.subOrchestrationInstanceCreated:type_name -> SubOrchestrationInstanceCreatedEvent - 15, // 50: HistoryEvent.subOrchestrationInstanceCompleted:type_name -> SubOrchestrationInstanceCompletedEvent - 16, // 51: HistoryEvent.subOrchestrationInstanceFailed:type_name -> SubOrchestrationInstanceFailedEvent - 17, // 52: HistoryEvent.timerCreated:type_name -> TimerCreatedEvent - 18, // 53: HistoryEvent.timerFired:type_name -> TimerFiredEvent - 19, // 54: HistoryEvent.orchestratorStarted:type_name -> OrchestratorStartedEvent - 20, // 55: HistoryEvent.orchestratorCompleted:type_name -> OrchestratorCompletedEvent - 21, // 56: HistoryEvent.eventSent:type_name -> EventSentEvent - 22, // 57: HistoryEvent.eventRaised:type_name -> EventRaisedEvent - 23, // 58: HistoryEvent.genericEvent:type_name -> GenericEvent - 24, // 59: HistoryEvent.historyState:type_name -> HistoryStateEvent - 25, // 60: HistoryEvent.continueAsNew:type_name -> ContinueAsNewEvent - 26, // 61: HistoryEvent.executionSuspended:type_name -> ExecutionSuspendedEvent - 27, // 62: HistoryEvent.executionResumed:type_name -> ExecutionResumedEvent - 87, // 63: ScheduleTaskAction.version:type_name -> google.protobuf.StringValue - 87, // 64: ScheduleTaskAction.input:type_name -> google.protobuf.StringValue - 87, // 65: CreateSubOrchestrationAction.version:type_name -> google.protobuf.StringValue - 87, // 66: CreateSubOrchestrationAction.input:type_name -> google.protobuf.StringValue - 88, // 67: CreateTimerAction.fireAt:type_name -> google.protobuf.Timestamp - 2, // 68: SendEventAction.instance:type_name -> OrchestrationInstance - 87, // 69: SendEventAction.data:type_name -> google.protobuf.StringValue - 0, // 70: CompleteOrchestrationAction.orchestrationStatus:type_name -> OrchestrationStatus - 87, // 71: CompleteOrchestrationAction.result:type_name -> google.protobuf.StringValue - 87, // 72: CompleteOrchestrationAction.details:type_name -> google.protobuf.StringValue - 87, // 73: CompleteOrchestrationAction.newVersion:type_name -> google.protobuf.StringValue - 28, // 74: CompleteOrchestrationAction.carryoverEvents:type_name -> HistoryEvent - 5, // 75: CompleteOrchestrationAction.failureDetails:type_name -> TaskFailureDetails - 87, // 76: TerminateOrchestrationAction.reason:type_name -> google.protobuf.StringValue - 29, // 77: OrchestratorAction.scheduleTask:type_name -> ScheduleTaskAction - 30, // 78: OrchestratorAction.createSubOrchestration:type_name -> CreateSubOrchestrationAction - 31, // 79: OrchestratorAction.createTimer:type_name -> CreateTimerAction - 32, // 80: OrchestratorAction.sendEvent:type_name -> SendEventAction - 33, // 81: OrchestratorAction.completeOrchestration:type_name -> CompleteOrchestrationAction - 34, // 82: OrchestratorAction.terminateOrchestration:type_name -> TerminateOrchestrationAction - 87, // 83: OrchestratorRequest.executionId:type_name -> google.protobuf.StringValue - 28, // 84: OrchestratorRequest.pastEvents:type_name -> HistoryEvent - 28, // 85: OrchestratorRequest.newEvents:type_name -> HistoryEvent - 74, // 86: OrchestratorRequest.entityParameters:type_name -> OrchestratorEntityParameters - 35, // 87: OrchestratorResponse.actions:type_name -> OrchestratorAction - 87, // 88: OrchestratorResponse.customStatus:type_name -> google.protobuf.StringValue - 87, // 89: CreateInstanceRequest.version:type_name -> google.protobuf.StringValue - 87, // 90: CreateInstanceRequest.input:type_name -> google.protobuf.StringValue - 88, // 91: CreateInstanceRequest.scheduledStartTimestamp:type_name -> google.protobuf.Timestamp - 39, // 92: CreateInstanceRequest.orchestrationIdReusePolicy:type_name -> OrchestrationIdReusePolicy - 0, // 93: OrchestrationIdReusePolicy.operationStatus:type_name -> OrchestrationStatus - 1, // 94: OrchestrationIdReusePolicy.action:type_name -> CreateOrchestrationAction - 45, // 95: GetInstanceResponse.orchestrationState:type_name -> OrchestrationState - 87, // 96: RewindInstanceRequest.reason:type_name -> google.protobuf.StringValue - 87, // 97: OrchestrationState.version:type_name -> google.protobuf.StringValue - 0, // 98: OrchestrationState.orchestrationStatus:type_name -> OrchestrationStatus - 88, // 99: OrchestrationState.scheduledStartTimestamp:type_name -> google.protobuf.Timestamp - 88, // 100: OrchestrationState.createdTimestamp:type_name -> google.protobuf.Timestamp - 88, // 101: OrchestrationState.lastUpdatedTimestamp:type_name -> google.protobuf.Timestamp - 87, // 102: OrchestrationState.input:type_name -> google.protobuf.StringValue - 87, // 103: OrchestrationState.output:type_name -> google.protobuf.StringValue - 87, // 104: OrchestrationState.customStatus:type_name -> google.protobuf.StringValue - 5, // 105: OrchestrationState.failureDetails:type_name -> TaskFailureDetails - 87, // 106: RaiseEventRequest.input:type_name -> google.protobuf.StringValue - 87, // 107: TerminateRequest.output:type_name -> google.protobuf.StringValue - 87, // 108: SuspendRequest.reason:type_name -> google.protobuf.StringValue - 87, // 109: ResumeRequest.reason:type_name -> google.protobuf.StringValue - 55, // 110: QueryInstancesRequest.query:type_name -> InstanceQuery - 0, // 111: InstanceQuery.runtimeStatus:type_name -> OrchestrationStatus - 88, // 112: InstanceQuery.createdTimeFrom:type_name -> google.protobuf.Timestamp - 88, // 113: InstanceQuery.createdTimeTo:type_name -> google.protobuf.Timestamp - 87, // 114: InstanceQuery.taskHubNames:type_name -> google.protobuf.StringValue - 87, // 115: InstanceQuery.continuationToken:type_name -> google.protobuf.StringValue - 87, // 116: InstanceQuery.instanceIdPrefix:type_name -> google.protobuf.StringValue - 45, // 117: QueryInstancesResponse.orchestrationState:type_name -> OrchestrationState - 87, // 118: QueryInstancesResponse.continuationToken:type_name -> google.protobuf.StringValue - 58, // 119: PurgeInstancesRequest.purgeInstanceFilter:type_name -> PurgeInstanceFilter - 88, // 120: PurgeInstanceFilter.createdTimeFrom:type_name -> google.protobuf.Timestamp - 88, // 121: PurgeInstanceFilter.createdTimeTo:type_name -> google.protobuf.Timestamp - 0, // 122: PurgeInstanceFilter.runtimeStatus:type_name -> OrchestrationStatus - 87, // 123: SignalEntityRequest.input:type_name -> google.protobuf.StringValue - 88, // 124: SignalEntityRequest.scheduledTime:type_name -> google.protobuf.Timestamp - 71, // 125: GetEntityResponse.entity:type_name -> EntityMetadata - 87, // 126: EntityQuery.instanceIdStartsWith:type_name -> google.protobuf.StringValue - 88, // 127: EntityQuery.lastModifiedFrom:type_name -> google.protobuf.Timestamp - 88, // 128: EntityQuery.lastModifiedTo:type_name -> google.protobuf.Timestamp - 89, // 129: EntityQuery.pageSize:type_name -> google.protobuf.Int32Value - 87, // 130: EntityQuery.continuationToken:type_name -> google.protobuf.StringValue - 68, // 131: QueryEntitiesRequest.query:type_name -> EntityQuery - 71, // 132: QueryEntitiesResponse.entities:type_name -> EntityMetadata - 87, // 133: QueryEntitiesResponse.continuationToken:type_name -> google.protobuf.StringValue - 88, // 134: EntityMetadata.lastModifiedTime:type_name -> google.protobuf.Timestamp - 87, // 135: EntityMetadata.lockedBy:type_name -> google.protobuf.StringValue - 87, // 136: EntityMetadata.serializedState:type_name -> google.protobuf.StringValue - 87, // 137: CleanEntityStorageRequest.continuationToken:type_name -> google.protobuf.StringValue - 87, // 138: CleanEntityStorageResponse.continuationToken:type_name -> google.protobuf.StringValue - 90, // 139: OrchestratorEntityParameters.entityMessageReorderWindow:type_name -> google.protobuf.Duration - 87, // 140: EntityBatchRequest.entityState:type_name -> google.protobuf.StringValue - 77, // 141: EntityBatchRequest.operations:type_name -> OperationRequest - 78, // 142: EntityBatchResult.results:type_name -> OperationResult - 81, // 143: EntityBatchResult.actions:type_name -> OperationAction - 87, // 144: EntityBatchResult.entityState:type_name -> google.protobuf.StringValue - 5, // 145: EntityBatchResult.failureDetails:type_name -> TaskFailureDetails - 87, // 146: OperationRequest.input:type_name -> google.protobuf.StringValue - 79, // 147: OperationResult.success:type_name -> OperationResultSuccess - 80, // 148: OperationResult.failure:type_name -> OperationResultFailure - 87, // 149: OperationResultSuccess.result:type_name -> google.protobuf.StringValue - 5, // 150: OperationResultFailure.failureDetails:type_name -> TaskFailureDetails - 82, // 151: OperationAction.sendSignal:type_name -> SendSignalAction - 83, // 152: OperationAction.startNewOrchestration:type_name -> StartNewOrchestrationAction - 87, // 153: SendSignalAction.input:type_name -> google.protobuf.StringValue - 88, // 154: SendSignalAction.scheduledTime:type_name -> google.protobuf.Timestamp - 87, // 155: StartNewOrchestrationAction.version:type_name -> google.protobuf.StringValue - 87, // 156: StartNewOrchestrationAction.input:type_name -> google.protobuf.StringValue - 88, // 157: StartNewOrchestrationAction.scheduledTime:type_name -> google.protobuf.Timestamp - 36, // 158: WorkItem.orchestratorRequest:type_name -> OrchestratorRequest - 3, // 159: WorkItem.activityRequest:type_name -> ActivityRequest - 75, // 160: WorkItem.entityRequest:type_name -> EntityBatchRequest - 91, // 161: TaskHubSidecarService.Hello:input_type -> google.protobuf.Empty - 38, // 162: TaskHubSidecarService.StartInstance:input_type -> CreateInstanceRequest - 41, // 163: TaskHubSidecarService.GetInstance:input_type -> GetInstanceRequest - 43, // 164: TaskHubSidecarService.RewindInstance:input_type -> RewindInstanceRequest - 41, // 165: TaskHubSidecarService.WaitForInstanceStart:input_type -> GetInstanceRequest - 41, // 166: TaskHubSidecarService.WaitForInstanceCompletion:input_type -> GetInstanceRequest - 46, // 167: TaskHubSidecarService.RaiseEvent:input_type -> RaiseEventRequest - 48, // 168: TaskHubSidecarService.TerminateInstance:input_type -> TerminateRequest - 50, // 169: TaskHubSidecarService.SuspendInstance:input_type -> SuspendRequest - 52, // 170: TaskHubSidecarService.ResumeInstance:input_type -> ResumeRequest - 54, // 171: TaskHubSidecarService.QueryInstances:input_type -> QueryInstancesRequest - 57, // 172: TaskHubSidecarService.PurgeInstances:input_type -> PurgeInstancesRequest - 84, // 173: TaskHubSidecarService.GetWorkItems:input_type -> GetWorkItemsRequest - 4, // 174: TaskHubSidecarService.CompleteActivityTask:input_type -> ActivityResponse - 37, // 175: TaskHubSidecarService.CompleteOrchestratorTask:input_type -> OrchestratorResponse - 76, // 176: TaskHubSidecarService.CompleteEntityTask:input_type -> EntityBatchResult - 60, // 177: TaskHubSidecarService.CreateTaskHub:input_type -> CreateTaskHubRequest - 62, // 178: TaskHubSidecarService.DeleteTaskHub:input_type -> DeleteTaskHubRequest - 64, // 179: TaskHubSidecarService.SignalEntity:input_type -> SignalEntityRequest - 66, // 180: TaskHubSidecarService.GetEntity:input_type -> GetEntityRequest - 69, // 181: TaskHubSidecarService.QueryEntities:input_type -> QueryEntitiesRequest - 72, // 182: TaskHubSidecarService.CleanEntityStorage:input_type -> CleanEntityStorageRequest - 91, // 183: TaskHubSidecarService.Hello:output_type -> google.protobuf.Empty - 40, // 184: TaskHubSidecarService.StartInstance:output_type -> CreateInstanceResponse - 42, // 185: TaskHubSidecarService.GetInstance:output_type -> GetInstanceResponse - 44, // 186: TaskHubSidecarService.RewindInstance:output_type -> RewindInstanceResponse - 42, // 187: TaskHubSidecarService.WaitForInstanceStart:output_type -> GetInstanceResponse - 42, // 188: TaskHubSidecarService.WaitForInstanceCompletion:output_type -> GetInstanceResponse - 47, // 189: TaskHubSidecarService.RaiseEvent:output_type -> RaiseEventResponse - 49, // 190: TaskHubSidecarService.TerminateInstance:output_type -> TerminateResponse - 51, // 191: TaskHubSidecarService.SuspendInstance:output_type -> SuspendResponse - 53, // 192: TaskHubSidecarService.ResumeInstance:output_type -> ResumeResponse - 56, // 193: TaskHubSidecarService.QueryInstances:output_type -> QueryInstancesResponse - 59, // 194: TaskHubSidecarService.PurgeInstances:output_type -> PurgeInstancesResponse - 85, // 195: TaskHubSidecarService.GetWorkItems:output_type -> WorkItem - 86, // 196: TaskHubSidecarService.CompleteActivityTask:output_type -> CompleteTaskResponse - 86, // 197: TaskHubSidecarService.CompleteOrchestratorTask:output_type -> CompleteTaskResponse - 86, // 198: TaskHubSidecarService.CompleteEntityTask:output_type -> CompleteTaskResponse - 61, // 199: TaskHubSidecarService.CreateTaskHub:output_type -> CreateTaskHubResponse - 63, // 200: TaskHubSidecarService.DeleteTaskHub:output_type -> DeleteTaskHubResponse - 65, // 201: TaskHubSidecarService.SignalEntity:output_type -> SignalEntityResponse - 67, // 202: TaskHubSidecarService.GetEntity:output_type -> GetEntityResponse - 70, // 203: TaskHubSidecarService.QueryEntities:output_type -> QueryEntitiesResponse - 73, // 204: TaskHubSidecarService.CleanEntityStorage:output_type -> CleanEntityStorageResponse - 183, // [183:205] is the sub-list for method output_type - 161, // [161:183] is the sub-list for method input_type - 161, // [161:161] is the sub-list for extension type_name - 161, // [161:161] is the sub-list for extension extendee - 0, // [0:161] is the sub-list for field type_name + 7, // 4: ActivityRequest.parentTraceContext:type_name -> TraceContext + 120, // 5: ActivityRequest.tags:type_name -> ActivityRequest.TagsEntry + 133, // 6: ActivityResponse.result:type_name -> google.protobuf.StringValue + 5, // 7: ActivityResponse.failureDetails:type_name -> TaskFailureDetails + 133, // 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 + 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 + 2, // 17: ExecutionStartedEvent.orchestrationInstance:type_name -> OrchestrationInstance + 6, // 18: ExecutionStartedEvent.parentInstance:type_name -> ParentInstanceInfo + 134, // 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 + 0, // 23: ExecutionCompletedEvent.orchestrationStatus:type_name -> OrchestrationStatus + 133, // 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 + 7, // 29: TaskScheduledEvent.parentTraceContext:type_name -> TraceContext + 123, // 30: TaskScheduledEvent.tags:type_name -> TaskScheduledEvent.TagsEntry + 133, // 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 + 7, // 35: SubOrchestrationInstanceCreatedEvent.parentTraceContext:type_name -> TraceContext + 124, // 36: SubOrchestrationInstanceCreatedEvent.tags:type_name -> SubOrchestrationInstanceCreatedEvent.TagsEntry + 133, // 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 + 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 + 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 + 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 + 6, // 68: ExecutionRewoundEvent.parentInstance:type_name -> ParentInstanceInfo + 125, // 69: ExecutionRewoundEvent.tags:type_name -> ExecutionRewoundEvent.TagsEntry + 134, // 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 + 11, // 74: HistoryEvent.taskScheduled:type_name -> TaskScheduledEvent + 12, // 75: HistoryEvent.taskCompleted:type_name -> TaskCompletedEvent + 13, // 76: HistoryEvent.taskFailed:type_name -> TaskFailedEvent + 14, // 77: HistoryEvent.subOrchestrationInstanceCreated:type_name -> SubOrchestrationInstanceCreatedEvent + 15, // 78: HistoryEvent.subOrchestrationInstanceCompleted:type_name -> SubOrchestrationInstanceCompletedEvent + 16, // 79: HistoryEvent.subOrchestrationInstanceFailed:type_name -> SubOrchestrationInstanceFailedEvent + 17, // 80: HistoryEvent.timerCreated:type_name -> TimerCreatedEvent + 18, // 81: HistoryEvent.timerFired:type_name -> TimerFiredEvent + 19, // 82: HistoryEvent.orchestratorStarted:type_name -> OrchestratorStartedEvent + 20, // 83: HistoryEvent.orchestratorCompleted:type_name -> OrchestratorCompletedEvent + 21, // 84: HistoryEvent.eventSent:type_name -> EventSentEvent + 22, // 85: HistoryEvent.eventRaised:type_name -> EventRaisedEvent + 23, // 86: HistoryEvent.genericEvent:type_name -> GenericEvent + 24, // 87: HistoryEvent.historyState:type_name -> HistoryStateEvent + 25, // 88: HistoryEvent.continueAsNew:type_name -> ContinueAsNewEvent + 26, // 89: HistoryEvent.executionSuspended:type_name -> ExecutionSuspendedEvent + 27, // 90: HistoryEvent.executionResumed:type_name -> ExecutionResumedEvent + 28, // 91: HistoryEvent.entityOperationSignaled:type_name -> EntityOperationSignaledEvent + 29, // 92: HistoryEvent.entityOperationCalled:type_name -> EntityOperationCalledEvent + 31, // 93: HistoryEvent.entityOperationCompleted:type_name -> EntityOperationCompletedEvent + 32, // 94: HistoryEvent.entityOperationFailed:type_name -> EntityOperationFailedEvent + 30, // 95: HistoryEvent.entityLockRequested:type_name -> EntityLockRequestedEvent + 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 + 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 + 7, // 105: CreateSubOrchestrationAction.parentTraceContext:type_name -> TraceContext + 127, // 106: CreateSubOrchestrationAction.tags:type_name -> CreateSubOrchestrationAction.TagsEntry + 134, // 107: CreateTimerAction.fireAt:type_name -> google.protobuf.Timestamp + 2, // 108: SendEventAction.instance:type_name -> OrchestrationInstance + 133, // 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 + 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 + 28, // 118: SendEntityMessageAction.entityOperationSignaled:type_name -> EntityOperationSignaledEvent + 29, // 119: SendEntityMessageAction.entityOperationCalled:type_name -> EntityOperationCalledEvent + 30, // 120: SendEntityMessageAction.entityLockRequested:type_name -> EntityLockRequestedEvent + 33, // 121: SendEntityMessageAction.entityUnlockSent:type_name -> EntityUnlockSentEvent + 36, // 122: RewindOrchestrationAction.newHistory:type_name -> HistoryEvent + 37, // 123: OrchestratorAction.scheduleTask:type_name -> ScheduleTaskAction + 38, // 124: OrchestratorAction.createSubOrchestration:type_name -> CreateSubOrchestrationAction + 39, // 125: OrchestratorAction.createTimer:type_name -> CreateTimerAction + 40, // 126: OrchestratorAction.sendEvent:type_name -> SendEventAction + 41, // 127: OrchestratorAction.completeOrchestration:type_name -> CompleteOrchestrationAction + 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 + 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 + 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 + 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 + 50, // 147: CreateInstanceRequest.orchestrationIdReusePolicy:type_name -> OrchestrationIdReusePolicy + 133, // 148: CreateInstanceRequest.executionId:type_name -> google.protobuf.StringValue + 130, // 149: CreateInstanceRequest.tags:type_name -> CreateInstanceRequest.TagsEntry + 7, // 150: CreateInstanceRequest.parentTraceContext:type_name -> TraceContext + 134, // 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 + 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 + 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 + 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 + 56, // 179: QueryInstancesResponse.orchestrationState:type_name -> OrchestrationState + 133, // 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 + 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 + 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 + 7, // 195: SignalEntityRequest.parentTraceContext:type_name -> TraceContext + 134, // 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 + 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 + 93, // 213: EntityBatchRequest.operations:type_name -> OperationRequest + 132, // 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 + 5, // 218: EntityBatchResult.failureDetails:type_name -> TaskFailureDetails + 95, // 219: EntityBatchResult.operationInfos:type_name -> OperationInfo + 133, // 220: EntityRequest.entityState:type_name -> google.protobuf.StringValue + 36, // 221: EntityRequest.operationRequests:type_name -> HistoryEvent + 133, // 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 + 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 + 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 + 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 + 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 } func init() { file_orchestrator_service_proto_init() } @@ -7020,1029 +9145,7 @@ func file_orchestrator_service_proto_init() { if File_orchestrator_service_proto != nil { return } - if !protoimpl.UnsafeEnabled { - file_orchestrator_service_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*OrchestrationInstance); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_orchestrator_service_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ActivityRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_orchestrator_service_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ActivityResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_orchestrator_service_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*TaskFailureDetails); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_orchestrator_service_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ParentInstanceInfo); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_orchestrator_service_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*TraceContext); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_orchestrator_service_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ExecutionStartedEvent); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_orchestrator_service_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ExecutionCompletedEvent); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_orchestrator_service_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ExecutionTerminatedEvent); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_orchestrator_service_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*TaskScheduledEvent); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_orchestrator_service_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*TaskCompletedEvent); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_orchestrator_service_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*TaskFailedEvent); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_orchestrator_service_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*SubOrchestrationInstanceCreatedEvent); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_orchestrator_service_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*SubOrchestrationInstanceCompletedEvent); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_orchestrator_service_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*SubOrchestrationInstanceFailedEvent); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_orchestrator_service_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*TimerCreatedEvent); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_orchestrator_service_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*TimerFiredEvent); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_orchestrator_service_proto_msgTypes[17].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*OrchestratorStartedEvent); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_orchestrator_service_proto_msgTypes[18].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*OrchestratorCompletedEvent); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_orchestrator_service_proto_msgTypes[19].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*EventSentEvent); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_orchestrator_service_proto_msgTypes[20].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*EventRaisedEvent); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_orchestrator_service_proto_msgTypes[21].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GenericEvent); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_orchestrator_service_proto_msgTypes[22].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*HistoryStateEvent); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_orchestrator_service_proto_msgTypes[23].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ContinueAsNewEvent); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_orchestrator_service_proto_msgTypes[24].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ExecutionSuspendedEvent); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_orchestrator_service_proto_msgTypes[25].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ExecutionResumedEvent); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_orchestrator_service_proto_msgTypes[26].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*HistoryEvent); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_orchestrator_service_proto_msgTypes[27].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ScheduleTaskAction); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_orchestrator_service_proto_msgTypes[28].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CreateSubOrchestrationAction); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_orchestrator_service_proto_msgTypes[29].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CreateTimerAction); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_orchestrator_service_proto_msgTypes[30].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*SendEventAction); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_orchestrator_service_proto_msgTypes[31].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CompleteOrchestrationAction); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_orchestrator_service_proto_msgTypes[32].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*TerminateOrchestrationAction); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_orchestrator_service_proto_msgTypes[33].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*OrchestratorAction); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_orchestrator_service_proto_msgTypes[34].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*OrchestratorRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_orchestrator_service_proto_msgTypes[35].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*OrchestratorResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_orchestrator_service_proto_msgTypes[36].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CreateInstanceRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_orchestrator_service_proto_msgTypes[37].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*OrchestrationIdReusePolicy); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_orchestrator_service_proto_msgTypes[38].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CreateInstanceResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_orchestrator_service_proto_msgTypes[39].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetInstanceRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_orchestrator_service_proto_msgTypes[40].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetInstanceResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_orchestrator_service_proto_msgTypes[41].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*RewindInstanceRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_orchestrator_service_proto_msgTypes[42].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*RewindInstanceResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_orchestrator_service_proto_msgTypes[43].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*OrchestrationState); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_orchestrator_service_proto_msgTypes[44].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*RaiseEventRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_orchestrator_service_proto_msgTypes[45].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*RaiseEventResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_orchestrator_service_proto_msgTypes[46].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*TerminateRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_orchestrator_service_proto_msgTypes[47].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*TerminateResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_orchestrator_service_proto_msgTypes[48].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*SuspendRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_orchestrator_service_proto_msgTypes[49].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*SuspendResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_orchestrator_service_proto_msgTypes[50].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ResumeRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_orchestrator_service_proto_msgTypes[51].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ResumeResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_orchestrator_service_proto_msgTypes[52].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QueryInstancesRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_orchestrator_service_proto_msgTypes[53].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*InstanceQuery); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_orchestrator_service_proto_msgTypes[54].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QueryInstancesResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_orchestrator_service_proto_msgTypes[55].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*PurgeInstancesRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_orchestrator_service_proto_msgTypes[56].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*PurgeInstanceFilter); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_orchestrator_service_proto_msgTypes[57].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*PurgeInstancesResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_orchestrator_service_proto_msgTypes[58].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CreateTaskHubRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_orchestrator_service_proto_msgTypes[59].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CreateTaskHubResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_orchestrator_service_proto_msgTypes[60].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*DeleteTaskHubRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_orchestrator_service_proto_msgTypes[61].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*DeleteTaskHubResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_orchestrator_service_proto_msgTypes[62].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*SignalEntityRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_orchestrator_service_proto_msgTypes[63].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*SignalEntityResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_orchestrator_service_proto_msgTypes[64].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetEntityRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_orchestrator_service_proto_msgTypes[65].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetEntityResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_orchestrator_service_proto_msgTypes[66].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*EntityQuery); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_orchestrator_service_proto_msgTypes[67].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QueryEntitiesRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_orchestrator_service_proto_msgTypes[68].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QueryEntitiesResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_orchestrator_service_proto_msgTypes[69].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*EntityMetadata); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_orchestrator_service_proto_msgTypes[70].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CleanEntityStorageRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_orchestrator_service_proto_msgTypes[71].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CleanEntityStorageResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_orchestrator_service_proto_msgTypes[72].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*OrchestratorEntityParameters); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_orchestrator_service_proto_msgTypes[73].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*EntityBatchRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_orchestrator_service_proto_msgTypes[74].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*EntityBatchResult); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_orchestrator_service_proto_msgTypes[75].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*OperationRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_orchestrator_service_proto_msgTypes[76].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*OperationResult); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_orchestrator_service_proto_msgTypes[77].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*OperationResultSuccess); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_orchestrator_service_proto_msgTypes[78].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*OperationResultFailure); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_orchestrator_service_proto_msgTypes[79].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*OperationAction); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_orchestrator_service_proto_msgTypes[80].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*SendSignalAction); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_orchestrator_service_proto_msgTypes[81].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*StartNewOrchestrationAction); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_orchestrator_service_proto_msgTypes[82].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetWorkItemsRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_orchestrator_service_proto_msgTypes[83].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*WorkItem); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_orchestrator_service_proto_msgTypes[84].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CompleteTaskResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } - file_orchestrator_service_proto_msgTypes[26].OneofWrappers = []interface{}{ + file_orchestrator_service_proto_msgTypes[34].OneofWrappers = []any{ (*HistoryEvent_ExecutionStarted)(nil), (*HistoryEvent_ExecutionCompleted)(nil), (*HistoryEvent_ExecutionTerminated)(nil), @@ -8063,39 +9166,58 @@ func file_orchestrator_service_proto_init() { (*HistoryEvent_ContinueAsNew)(nil), (*HistoryEvent_ExecutionSuspended)(nil), (*HistoryEvent_ExecutionResumed)(nil), - } - file_orchestrator_service_proto_msgTypes[33].OneofWrappers = []interface{}{ + (*HistoryEvent_EntityOperationSignaled)(nil), + (*HistoryEvent_EntityOperationCalled)(nil), + (*HistoryEvent_EntityOperationCompleted)(nil), + (*HistoryEvent_EntityOperationFailed)(nil), + (*HistoryEvent_EntityLockRequested)(nil), + (*HistoryEvent_EntityLockGranted)(nil), + (*HistoryEvent_EntityUnlockSent)(nil), + (*HistoryEvent_ExecutionRewound)(nil), + } + file_orchestrator_service_proto_msgTypes[41].OneofWrappers = []any{ + (*SendEntityMessageAction_EntityOperationSignaled)(nil), + (*SendEntityMessageAction_EntityOperationCalled)(nil), + (*SendEntityMessageAction_EntityLockRequested)(nil), + (*SendEntityMessageAction_EntityUnlockSent)(nil), + } + file_orchestrator_service_proto_msgTypes[43].OneofWrappers = []any{ (*OrchestratorAction_ScheduleTask)(nil), (*OrchestratorAction_CreateSubOrchestration)(nil), (*OrchestratorAction_CreateTimer)(nil), (*OrchestratorAction_SendEvent)(nil), (*OrchestratorAction_CompleteOrchestration)(nil), (*OrchestratorAction_TerminateOrchestration)(nil), + (*OrchestratorAction_SendEntityMessage)(nil), + (*OrchestratorAction_RewindOrchestration)(nil), } - file_orchestrator_service_proto_msgTypes[55].OneofWrappers = []interface{}{ + file_orchestrator_service_proto_msgTypes[68].OneofWrappers = []any{ (*PurgeInstancesRequest_InstanceId)(nil), (*PurgeInstancesRequest_PurgeInstanceFilter)(nil), + (*PurgeInstancesRequest_InstanceBatch)(nil), } - file_orchestrator_service_proto_msgTypes[76].OneofWrappers = []interface{}{ + file_orchestrator_service_proto_msgTypes[92].OneofWrappers = []any{ (*OperationResult_Success)(nil), (*OperationResult_Failure)(nil), } - file_orchestrator_service_proto_msgTypes[79].OneofWrappers = []interface{}{ + file_orchestrator_service_proto_msgTypes[96].OneofWrappers = []any{ (*OperationAction_SendSignal)(nil), (*OperationAction_StartNewOrchestration)(nil), } - file_orchestrator_service_proto_msgTypes[83].OneofWrappers = []interface{}{ + file_orchestrator_service_proto_msgTypes[112].OneofWrappers = []any{ (*WorkItem_OrchestratorRequest)(nil), (*WorkItem_ActivityRequest)(nil), (*WorkItem_EntityRequest)(nil), + (*WorkItem_HealthPing)(nil), + (*WorkItem_EntityRequestV2)(nil), } type x struct{} out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_orchestrator_service_proto_rawDesc, + RawDescriptor: unsafe.Slice(unsafe.StringData(file_orchestrator_service_proto_rawDesc), len(file_orchestrator_service_proto_rawDesc)), NumEnums: 2, - NumMessages: 85, + NumMessages: 131, NumExtensions: 0, NumServices: 1, }, @@ -8105,7 +9227,6 @@ func file_orchestrator_service_proto_init() { MessageInfos: file_orchestrator_service_proto_msgTypes, }.Build() File_orchestrator_service_proto = out.File - file_orchestrator_service_proto_rawDesc = nil file_orchestrator_service_proto_goTypes = nil file_orchestrator_service_proto_depIdxs = nil } diff --git a/internal/protos/orchestrator_service_grpc.pb.go b/internal/protos/orchestrator_service_grpc.pb.go index 0bc36435..81435cfd 100644 --- a/internal/protos/orchestrator_service_grpc.pb.go +++ b/internal/protos/orchestrator_service_grpc.pb.go @@ -11,7 +11,7 @@ package protos import ( context "context" - empty "google.golang.org/protobuf/types/known/emptypb" + empty "github.com/golang/protobuf/ptypes/empty" grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" @@ -23,28 +23,35 @@ import ( const _ = grpc.SupportPackageIsVersion7 const ( - TaskHubSidecarService_Hello_FullMethodName = "/TaskHubSidecarService/Hello" - TaskHubSidecarService_StartInstance_FullMethodName = "/TaskHubSidecarService/StartInstance" - TaskHubSidecarService_GetInstance_FullMethodName = "/TaskHubSidecarService/GetInstance" - TaskHubSidecarService_RewindInstance_FullMethodName = "/TaskHubSidecarService/RewindInstance" - 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_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_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_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" ) // TaskHubSidecarServiceClient is the client API for TaskHubSidecarService service. @@ -59,6 +66,8 @@ type TaskHubSidecarServiceClient interface { GetInstance(ctx context.Context, in *GetInstanceRequest, opts ...grpc.CallOption) (*GetInstanceResponse, error) // Rewinds an orchestration instance to last known good state and replays from there. RewindInstance(ctx context.Context, in *RewindInstanceRequest, opts ...grpc.CallOption) (*RewindInstanceResponse, error) + // Restarts an orchestration instance. + RestartInstance(ctx context.Context, in *RestartInstanceRequest, opts ...grpc.CallOption) (*RestartInstanceResponse, error) // Waits for an orchestration instance to reach a running or completion state. WaitForInstanceStart(ctx context.Context, in *GetInstanceRequest, opts ...grpc.CallOption) (*GetInstanceResponse, error) // Waits for an orchestration instance to reach a completion state (completed, failed, terminated, etc.). @@ -72,11 +81,14 @@ type TaskHubSidecarServiceClient interface { // Resumes a suspended orchestration instance. ResumeInstance(ctx context.Context, in *ResumeRequest, opts ...grpc.CallOption) (*ResumeResponse, error) QueryInstances(ctx context.Context, in *QueryInstancesRequest, opts ...grpc.CallOption) (*QueryInstancesResponse, error) + ListInstanceIds(ctx context.Context, in *ListInstanceIdsRequest, opts ...grpc.CallOption) (*ListInstanceIdsResponse, error) PurgeInstances(ctx context.Context, in *PurgeInstancesRequest, opts ...grpc.CallOption) (*PurgeInstancesResponse, error) GetWorkItems(ctx context.Context, in *GetWorkItemsRequest, opts ...grpc.CallOption) (TaskHubSidecarService_GetWorkItemsClient, error) 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) + // Gets the history of an orchestration instance as a stream of events. + StreamInstanceHistory(ctx context.Context, in *StreamInstanceHistoryRequest, opts ...grpc.CallOption) (TaskHubSidecarService_StreamInstanceHistoryClient, error) // Deletes and Creates the necessary resources for the orchestration service and the instance store CreateTaskHub(ctx context.Context, in *CreateTaskHubRequest, opts ...grpc.CallOption) (*CreateTaskHubResponse, error) // Deletes the resources for the orchestration service and optionally the instance store @@ -89,6 +101,15 @@ type TaskHubSidecarServiceClient interface { QueryEntities(ctx context.Context, in *QueryEntitiesRequest, opts ...grpc.CallOption) (*QueryEntitiesResponse, error) // clean entity storage CleanEntityStorage(ctx context.Context, in *CleanEntityStorageRequest, opts ...grpc.CallOption) (*CleanEntityStorageResponse, error) + // Abandons a single work item + AbandonTaskActivityWorkItem(ctx context.Context, in *AbandonActivityTaskRequest, opts ...grpc.CallOption) (*AbandonActivityTaskResponse, error) + // Abandon an orchestration work item + 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) + // "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) } type taskHubSidecarServiceClient struct { @@ -135,6 +156,15 @@ func (c *taskHubSidecarServiceClient) RewindInstance(ctx context.Context, in *Re return out, nil } +func (c *taskHubSidecarServiceClient) RestartInstance(ctx context.Context, in *RestartInstanceRequest, opts ...grpc.CallOption) (*RestartInstanceResponse, error) { + out := new(RestartInstanceResponse) + err := c.cc.Invoke(ctx, TaskHubSidecarService_RestartInstance_FullMethodName, in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + func (c *taskHubSidecarServiceClient) WaitForInstanceStart(ctx context.Context, in *GetInstanceRequest, opts ...grpc.CallOption) (*GetInstanceResponse, error) { out := new(GetInstanceResponse) err := c.cc.Invoke(ctx, TaskHubSidecarService_WaitForInstanceStart_FullMethodName, in, out, opts...) @@ -198,6 +228,15 @@ func (c *taskHubSidecarServiceClient) QueryInstances(ctx context.Context, in *Qu return out, nil } +func (c *taskHubSidecarServiceClient) ListInstanceIds(ctx context.Context, in *ListInstanceIdsRequest, opts ...grpc.CallOption) (*ListInstanceIdsResponse, error) { + out := new(ListInstanceIdsResponse) + err := c.cc.Invoke(ctx, TaskHubSidecarService_ListInstanceIds_FullMethodName, in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + func (c *taskHubSidecarServiceClient) PurgeInstances(ctx context.Context, in *PurgeInstancesRequest, opts ...grpc.CallOption) (*PurgeInstancesResponse, error) { out := new(PurgeInstancesResponse) err := c.cc.Invoke(ctx, TaskHubSidecarService_PurgeInstances_FullMethodName, in, out, opts...) @@ -266,6 +305,38 @@ func (c *taskHubSidecarServiceClient) CompleteEntityTask(ctx context.Context, in return out, nil } +func (c *taskHubSidecarServiceClient) StreamInstanceHistory(ctx context.Context, in *StreamInstanceHistoryRequest, opts ...grpc.CallOption) (TaskHubSidecarService_StreamInstanceHistoryClient, error) { + stream, err := c.cc.NewStream(ctx, &TaskHubSidecarService_ServiceDesc.Streams[1], TaskHubSidecarService_StreamInstanceHistory_FullMethodName, opts...) + if err != nil { + return nil, err + } + x := &taskHubSidecarServiceStreamInstanceHistoryClient{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 +} + +type TaskHubSidecarService_StreamInstanceHistoryClient interface { + Recv() (*HistoryChunk, error) + grpc.ClientStream +} + +type taskHubSidecarServiceStreamInstanceHistoryClient struct { + grpc.ClientStream +} + +func (x *taskHubSidecarServiceStreamInstanceHistoryClient) Recv() (*HistoryChunk, error) { + m := new(HistoryChunk) + if err := x.ClientStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + func (c *taskHubSidecarServiceClient) CreateTaskHub(ctx context.Context, in *CreateTaskHubRequest, opts ...grpc.CallOption) (*CreateTaskHubResponse, error) { out := new(CreateTaskHubResponse) err := c.cc.Invoke(ctx, TaskHubSidecarService_CreateTaskHub_FullMethodName, in, out, opts...) @@ -320,6 +391,42 @@ func (c *taskHubSidecarServiceClient) CleanEntityStorage(ctx context.Context, in return out, nil } +func (c *taskHubSidecarServiceClient) AbandonTaskActivityWorkItem(ctx context.Context, in *AbandonActivityTaskRequest, opts ...grpc.CallOption) (*AbandonActivityTaskResponse, error) { + out := new(AbandonActivityTaskResponse) + err := c.cc.Invoke(ctx, TaskHubSidecarService_AbandonTaskActivityWorkItem_FullMethodName, in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *taskHubSidecarServiceClient) AbandonTaskOrchestratorWorkItem(ctx context.Context, in *AbandonOrchestrationTaskRequest, opts ...grpc.CallOption) (*AbandonOrchestrationTaskResponse, error) { + out := new(AbandonOrchestrationTaskResponse) + err := c.cc.Invoke(ctx, TaskHubSidecarService_AbandonTaskOrchestratorWorkItem_FullMethodName, in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *taskHubSidecarServiceClient) AbandonTaskEntityWorkItem(ctx context.Context, in *AbandonEntityTaskRequest, opts ...grpc.CallOption) (*AbandonEntityTaskResponse, error) { + out := new(AbandonEntityTaskResponse) + err := c.cc.Invoke(ctx, TaskHubSidecarService_AbandonTaskEntityWorkItem_FullMethodName, in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *taskHubSidecarServiceClient) SkipGracefulOrchestrationTerminations(ctx context.Context, in *SkipGracefulOrchestrationTerminationsRequest, opts ...grpc.CallOption) (*SkipGracefulOrchestrationTerminationsResponse, error) { + out := new(SkipGracefulOrchestrationTerminationsResponse) + err := c.cc.Invoke(ctx, TaskHubSidecarService_SkipGracefulOrchestrationTerminations_FullMethodName, in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + // TaskHubSidecarServiceServer is the server API for TaskHubSidecarService service. // All implementations must embed UnimplementedTaskHubSidecarServiceServer // for forward compatibility @@ -332,6 +439,8 @@ type TaskHubSidecarServiceServer interface { GetInstance(context.Context, *GetInstanceRequest) (*GetInstanceResponse, error) // Rewinds an orchestration instance to last known good state and replays from there. RewindInstance(context.Context, *RewindInstanceRequest) (*RewindInstanceResponse, error) + // Restarts an orchestration instance. + RestartInstance(context.Context, *RestartInstanceRequest) (*RestartInstanceResponse, error) // Waits for an orchestration instance to reach a running or completion state. WaitForInstanceStart(context.Context, *GetInstanceRequest) (*GetInstanceResponse, error) // Waits for an orchestration instance to reach a completion state (completed, failed, terminated, etc.). @@ -345,11 +454,14 @@ type TaskHubSidecarServiceServer interface { // Resumes a suspended orchestration instance. ResumeInstance(context.Context, *ResumeRequest) (*ResumeResponse, error) QueryInstances(context.Context, *QueryInstancesRequest) (*QueryInstancesResponse, error) + ListInstanceIds(context.Context, *ListInstanceIdsRequest) (*ListInstanceIdsResponse, error) PurgeInstances(context.Context, *PurgeInstancesRequest) (*PurgeInstancesResponse, error) GetWorkItems(*GetWorkItemsRequest, TaskHubSidecarService_GetWorkItemsServer) error CompleteActivityTask(context.Context, *ActivityResponse) (*CompleteTaskResponse, error) CompleteOrchestratorTask(context.Context, *OrchestratorResponse) (*CompleteTaskResponse, error) CompleteEntityTask(context.Context, *EntityBatchResult) (*CompleteTaskResponse, error) + // Gets the history of an orchestration instance as a stream of events. + StreamInstanceHistory(*StreamInstanceHistoryRequest, TaskHubSidecarService_StreamInstanceHistoryServer) error // Deletes and Creates the necessary resources for the orchestration service and the instance store CreateTaskHub(context.Context, *CreateTaskHubRequest) (*CreateTaskHubResponse, error) // Deletes the resources for the orchestration service and optionally the instance store @@ -362,6 +474,15 @@ type TaskHubSidecarServiceServer interface { QueryEntities(context.Context, *QueryEntitiesRequest) (*QueryEntitiesResponse, error) // clean entity storage CleanEntityStorage(context.Context, *CleanEntityStorageRequest) (*CleanEntityStorageResponse, error) + // Abandons a single work item + AbandonTaskActivityWorkItem(context.Context, *AbandonActivityTaskRequest) (*AbandonActivityTaskResponse, error) + // Abandon an orchestration work item + AbandonTaskOrchestratorWorkItem(context.Context, *AbandonOrchestrationTaskRequest) (*AbandonOrchestrationTaskResponse, error) + // Abandon an entity work item + AbandonTaskEntityWorkItem(context.Context, *AbandonEntityTaskRequest) (*AbandonEntityTaskResponse, 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) mustEmbedUnimplementedTaskHubSidecarServiceServer() } @@ -381,6 +502,9 @@ func (UnimplementedTaskHubSidecarServiceServer) GetInstance(context.Context, *Ge func (UnimplementedTaskHubSidecarServiceServer) RewindInstance(context.Context, *RewindInstanceRequest) (*RewindInstanceResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method RewindInstance not implemented") } +func (UnimplementedTaskHubSidecarServiceServer) RestartInstance(context.Context, *RestartInstanceRequest) (*RestartInstanceResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method RestartInstance not implemented") +} func (UnimplementedTaskHubSidecarServiceServer) WaitForInstanceStart(context.Context, *GetInstanceRequest) (*GetInstanceResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method WaitForInstanceStart not implemented") } @@ -402,6 +526,9 @@ func (UnimplementedTaskHubSidecarServiceServer) ResumeInstance(context.Context, func (UnimplementedTaskHubSidecarServiceServer) QueryInstances(context.Context, *QueryInstancesRequest) (*QueryInstancesResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method QueryInstances not implemented") } +func (UnimplementedTaskHubSidecarServiceServer) ListInstanceIds(context.Context, *ListInstanceIdsRequest) (*ListInstanceIdsResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method ListInstanceIds not implemented") +} func (UnimplementedTaskHubSidecarServiceServer) PurgeInstances(context.Context, *PurgeInstancesRequest) (*PurgeInstancesResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method PurgeInstances not implemented") } @@ -417,6 +544,9 @@ func (UnimplementedTaskHubSidecarServiceServer) CompleteOrchestratorTask(context func (UnimplementedTaskHubSidecarServiceServer) CompleteEntityTask(context.Context, *EntityBatchResult) (*CompleteTaskResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method CompleteEntityTask not implemented") } +func (UnimplementedTaskHubSidecarServiceServer) StreamInstanceHistory(*StreamInstanceHistoryRequest, TaskHubSidecarService_StreamInstanceHistoryServer) error { + return status.Errorf(codes.Unimplemented, "method StreamInstanceHistory not implemented") +} func (UnimplementedTaskHubSidecarServiceServer) CreateTaskHub(context.Context, *CreateTaskHubRequest) (*CreateTaskHubResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method CreateTaskHub not implemented") } @@ -435,6 +565,18 @@ func (UnimplementedTaskHubSidecarServiceServer) QueryEntities(context.Context, * func (UnimplementedTaskHubSidecarServiceServer) CleanEntityStorage(context.Context, *CleanEntityStorageRequest) (*CleanEntityStorageResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method CleanEntityStorage not implemented") } +func (UnimplementedTaskHubSidecarServiceServer) AbandonTaskActivityWorkItem(context.Context, *AbandonActivityTaskRequest) (*AbandonActivityTaskResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method AbandonTaskActivityWorkItem not implemented") +} +func (UnimplementedTaskHubSidecarServiceServer) AbandonTaskOrchestratorWorkItem(context.Context, *AbandonOrchestrationTaskRequest) (*AbandonOrchestrationTaskResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method AbandonTaskOrchestratorWorkItem not implemented") +} +func (UnimplementedTaskHubSidecarServiceServer) AbandonTaskEntityWorkItem(context.Context, *AbandonEntityTaskRequest) (*AbandonEntityTaskResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method AbandonTaskEntityWorkItem not implemented") +} +func (UnimplementedTaskHubSidecarServiceServer) SkipGracefulOrchestrationTerminations(context.Context, *SkipGracefulOrchestrationTerminationsRequest) (*SkipGracefulOrchestrationTerminationsResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method SkipGracefulOrchestrationTerminations not implemented") +} func (UnimplementedTaskHubSidecarServiceServer) mustEmbedUnimplementedTaskHubSidecarServiceServer() {} // UnsafeTaskHubSidecarServiceServer may be embedded to opt out of forward compatibility for this service. @@ -520,6 +662,24 @@ func _TaskHubSidecarService_RewindInstance_Handler(srv interface{}, ctx context. return interceptor(ctx, in, info, handler) } +func _TaskHubSidecarService_RestartInstance_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(RestartInstanceRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(TaskHubSidecarServiceServer).RestartInstance(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: TaskHubSidecarService_RestartInstance_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(TaskHubSidecarServiceServer).RestartInstance(ctx, req.(*RestartInstanceRequest)) + } + return interceptor(ctx, in, info, handler) +} + func _TaskHubSidecarService_WaitForInstanceStart_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(GetInstanceRequest) if err := dec(in); err != nil { @@ -646,6 +806,24 @@ func _TaskHubSidecarService_QueryInstances_Handler(srv interface{}, ctx context. return interceptor(ctx, in, info, handler) } +func _TaskHubSidecarService_ListInstanceIds_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ListInstanceIdsRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(TaskHubSidecarServiceServer).ListInstanceIds(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: TaskHubSidecarService_ListInstanceIds_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(TaskHubSidecarServiceServer).ListInstanceIds(ctx, req.(*ListInstanceIdsRequest)) + } + return interceptor(ctx, in, info, handler) +} + func _TaskHubSidecarService_PurgeInstances_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(PurgeInstancesRequest) if err := dec(in); err != nil { @@ -739,6 +917,27 @@ func _TaskHubSidecarService_CompleteEntityTask_Handler(srv interface{}, ctx cont return interceptor(ctx, in, info, handler) } +func _TaskHubSidecarService_StreamInstanceHistory_Handler(srv interface{}, stream grpc.ServerStream) error { + m := new(StreamInstanceHistoryRequest) + if err := stream.RecvMsg(m); err != nil { + return err + } + return srv.(TaskHubSidecarServiceServer).StreamInstanceHistory(m, &taskHubSidecarServiceStreamInstanceHistoryServer{stream}) +} + +type TaskHubSidecarService_StreamInstanceHistoryServer interface { + Send(*HistoryChunk) error + grpc.ServerStream +} + +type taskHubSidecarServiceStreamInstanceHistoryServer struct { + grpc.ServerStream +} + +func (x *taskHubSidecarServiceStreamInstanceHistoryServer) Send(m *HistoryChunk) error { + return x.ServerStream.SendMsg(m) +} + func _TaskHubSidecarService_CreateTaskHub_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(CreateTaskHubRequest) if err := dec(in); err != nil { @@ -847,6 +1046,78 @@ func _TaskHubSidecarService_CleanEntityStorage_Handler(srv interface{}, ctx cont return interceptor(ctx, in, info, handler) } +func _TaskHubSidecarService_AbandonTaskActivityWorkItem_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(AbandonActivityTaskRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(TaskHubSidecarServiceServer).AbandonTaskActivityWorkItem(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: TaskHubSidecarService_AbandonTaskActivityWorkItem_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(TaskHubSidecarServiceServer).AbandonTaskActivityWorkItem(ctx, req.(*AbandonActivityTaskRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _TaskHubSidecarService_AbandonTaskOrchestratorWorkItem_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(AbandonOrchestrationTaskRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(TaskHubSidecarServiceServer).AbandonTaskOrchestratorWorkItem(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: TaskHubSidecarService_AbandonTaskOrchestratorWorkItem_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(TaskHubSidecarServiceServer).AbandonTaskOrchestratorWorkItem(ctx, req.(*AbandonOrchestrationTaskRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _TaskHubSidecarService_AbandonTaskEntityWorkItem_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(AbandonEntityTaskRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(TaskHubSidecarServiceServer).AbandonTaskEntityWorkItem(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: TaskHubSidecarService_AbandonTaskEntityWorkItem_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(TaskHubSidecarServiceServer).AbandonTaskEntityWorkItem(ctx, req.(*AbandonEntityTaskRequest)) + } + 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 { + return nil, err + } + if interceptor == nil { + return srv.(TaskHubSidecarServiceServer).SkipGracefulOrchestrationTerminations(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: TaskHubSidecarService_SkipGracefulOrchestrationTerminations_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(TaskHubSidecarServiceServer).SkipGracefulOrchestrationTerminations(ctx, req.(*SkipGracefulOrchestrationTerminationsRequest)) + } + return interceptor(ctx, in, info, handler) +} + // TaskHubSidecarService_ServiceDesc is the grpc.ServiceDesc for TaskHubSidecarService service. // It's only intended for direct use with grpc.RegisterService, // and not to be introspected or modified (even as a copy) @@ -870,6 +1141,10 @@ var TaskHubSidecarService_ServiceDesc = grpc.ServiceDesc{ MethodName: "RewindInstance", Handler: _TaskHubSidecarService_RewindInstance_Handler, }, + { + MethodName: "RestartInstance", + Handler: _TaskHubSidecarService_RestartInstance_Handler, + }, { MethodName: "WaitForInstanceStart", Handler: _TaskHubSidecarService_WaitForInstanceStart_Handler, @@ -898,6 +1173,10 @@ var TaskHubSidecarService_ServiceDesc = grpc.ServiceDesc{ MethodName: "QueryInstances", Handler: _TaskHubSidecarService_QueryInstances_Handler, }, + { + MethodName: "ListInstanceIds", + Handler: _TaskHubSidecarService_ListInstanceIds_Handler, + }, { MethodName: "PurgeInstances", Handler: _TaskHubSidecarService_PurgeInstances_Handler, @@ -938,6 +1217,22 @@ var TaskHubSidecarService_ServiceDesc = grpc.ServiceDesc{ MethodName: "CleanEntityStorage", Handler: _TaskHubSidecarService_CleanEntityStorage_Handler, }, + { + MethodName: "AbandonTaskActivityWorkItem", + Handler: _TaskHubSidecarService_AbandonTaskActivityWorkItem_Handler, + }, + { + MethodName: "AbandonTaskOrchestratorWorkItem", + Handler: _TaskHubSidecarService_AbandonTaskOrchestratorWorkItem_Handler, + }, + { + MethodName: "AbandonTaskEntityWorkItem", + Handler: _TaskHubSidecarService_AbandonTaskEntityWorkItem_Handler, + }, + { + MethodName: "SkipGracefulOrchestrationTerminations", + Handler: _TaskHubSidecarService_SkipGracefulOrchestrationTerminations_Handler, + }, }, Streams: []grpc.StreamDesc{ { @@ -945,6 +1240,11 @@ var TaskHubSidecarService_ServiceDesc = grpc.ServiceDesc{ Handler: _TaskHubSidecarService_GetWorkItems_Handler, ServerStreams: true, }, + { + StreamName: "StreamInstanceHistory", + Handler: _TaskHubSidecarService_StreamInstanceHistory_Handler, + ServerStreams: true, + }, }, Metadata: "orchestrator_service.proto", } diff --git a/tests/backend_test.go b/tests/backend_test.go index 1d72729a..faa62738 100644 --- a/tests/backend_test.go +++ b/tests/backend_test.go @@ -1,537 +1,590 @@ -package tests - -import ( - "context" - "fmt" - "github.com/microsoft/durabletask-go/backend/postgres" - "os" - "reflect" - "runtime" - "testing" - "time" - - "github.com/microsoft/durabletask-go/api" - "github.com/microsoft/durabletask-go/backend" - "github.com/microsoft/durabletask-go/backend/sqlite" - "github.com/microsoft/durabletask-go/internal/helpers" - "github.com/microsoft/durabletask-go/internal/protos" - "github.com/stretchr/testify/assert" - "google.golang.org/protobuf/types/known/timestamppb" - "google.golang.org/protobuf/types/known/wrapperspb" -) - -var ( - ctx = context.Background() - logger = backend.DefaultLogger() - sqliteInMemoryOptions = sqlite.NewSqliteOptions("") - sqliteFileOptions = sqlite.NewSqliteOptions("test.sqlite3") -) - -func getRunnableBackends() []backend.Backend { - var runnableBackends []backend.Backend - - runnableBackends = append(runnableBackends, sqlite.NewSqliteBackend(sqliteFileOptions, logger)) - runnableBackends = append(runnableBackends, sqlite.NewSqliteBackend(sqliteInMemoryOptions, logger)) - - if os.Getenv("POSTGRES_ENABLED") == "true" { - runnableBackends = append(runnableBackends, postgres.NewPostgresBackend(nil, logger)) - } - - return runnableBackends -} - -var backends = getRunnableBackends() - -var completionStatusValues = []protos.OrchestrationStatus{ - protos.OrchestrationStatus_ORCHESTRATION_STATUS_COMPLETED, - protos.OrchestrationStatus_ORCHESTRATION_STATUS_TERMINATED, - protos.OrchestrationStatus_ORCHESTRATION_STATUS_FAILED, -} - -const ( - defaultName = "testing" - defaultInput = "Hello, 世界!" -) - -// Test_NewOrchestrationWorkItem_Single enqueues a single work item into the backend -// store and attempts to fetch it immediately afterwards. -func Test_NewOrchestrationWorkItem_Single(t *testing.T) { - for i, be := range backends { - initTest(t, be, i, true) - - expectedID := "myinstance" - if createOrchestrationInstance(t, be, expectedID) { - if wi, ok := getOrchestrationWorkItem(t, be, expectedID); ok { - if assert.Equal(t, 1, len(wi.NewEvents)) { - startEvent := wi.NewEvents[0].GetExecutionStarted() - if assert.NotNil(t, startEvent) { - assert.Equal(t, expectedID, startEvent.OrchestrationInstance.GetInstanceId()) - assert.Equal(t, defaultName, startEvent.Name) - assert.Equal(t, defaultInput, startEvent.Input.GetValue()) - } - } - if state, ok := getOrchestrationRuntimeState(t, be, wi); ok { - // initial state should be empty since this is a new instance - iid := state.InstanceID() - assert.Equal(t, wi.InstanceID, iid) - _, err := state.Name() - assert.ErrorIs(t, err, api.ErrNotStarted) - _, err = state.Input() - assert.ErrorIs(t, err, api.ErrNotStarted) - assert.Equal(t, 0, len(state.NewEvents())) - assert.Equal(t, 0, len(state.OldEvents())) - } - - // Ensure no more work items - _, err := be.GetOrchestrationWorkItem(ctx) - assert.ErrorIs(t, err, backend.ErrNoWorkItems) - } - } - } -} - -// Test_NewOrchestrationWorkItem_Multiple enqueues multiple work items into the sqlite backend -// store and then attempts to fetch them one-at-a-time, in order. -func Test_NewOrchestrationWorkItem_Multiple(t *testing.T) { - for i, be := range backends { - initTest(t, be, i, true) - - const WorkItems = 4 - - // Create multiple work items up front - for j := 0; j < WorkItems; j++ { - expectedID := fmt.Sprintf("instance_%d", j) - createOrchestrationInstance(t, be, expectedID) - } - - for j := 0; j < WorkItems; j++ { - expectedID := fmt.Sprintf("instance_%d", j) - if wi, ok := getOrchestrationWorkItem(t, be, expectedID); ok { - if assert.Equal(t, 1, len(wi.NewEvents)) { - startEvent := wi.NewEvents[0].GetExecutionStarted() - if assert.NotNil(t, startEvent) { - assert.Equal(t, expectedID, startEvent.OrchestrationInstance.GetInstanceId()) - assert.Equal(t, defaultName, startEvent.Name) - assert.Equal(t, defaultInput, startEvent.Input.GetValue()) - } - } - if state, ok := getOrchestrationRuntimeState(t, be, wi); ok { - // initial state should be empty since this is a new instance - _, err := state.Name() - assert.ErrorIs(t, err, api.ErrNotStarted) - _, err = state.Input() - assert.ErrorIs(t, err, api.ErrNotStarted) - assert.Equal(t, 0, len(state.NewEvents())) - assert.Equal(t, 0, len(state.OldEvents())) - } - } - } - - // Ensure no more work items - _, err := be.GetOrchestrationWorkItem(ctx) - assert.ErrorIs(t, err, backend.ErrNoWorkItems) - } -} - -func Test_CompleteOrchestration(t *testing.T) { - for i, be := range backends { - for _, expectedStatus := range completionStatusValues { - initTest(t, be, i, true) - - expectedResult := "done!" - stackTraceBuffer := make([]byte, 256) - var expectedStackTrace string - - // Produce an ExecutionCompleted event with a particular output - getOrchestratorActions := func() []*protos.OrchestratorAction { - completeAction := &protos.CompleteOrchestrationAction{OrchestrationStatus: expectedStatus} - if expectedStatus == protos.OrchestrationStatus_ORCHESTRATION_STATUS_FAILED { - runtime.Stack(stackTraceBuffer, false) - expectedStackTrace = string(stackTraceBuffer) - completeAction.FailureDetails = &protos.TaskFailureDetails{ - ErrorType: "MyError", - ErrorMessage: "Kah-BOOOM!!", - StackTrace: wrapperspb.String(expectedStackTrace), - } - } else { - completeAction.Result = wrapperspb.String(expectedResult) - } - - return []*protos.OrchestratorAction{{ - OrchestratorActionType: &protos.OrchestratorAction_CompleteOrchestration{ - CompleteOrchestration: completeAction, - }, - }} - } - - validateMetadata := func(metadata *api.OrchestrationMetadata) { - assert.True(t, metadata.IsComplete()) - assert.False(t, metadata.IsRunning()) - - if expectedStatus == protos.OrchestrationStatus_ORCHESTRATION_STATUS_FAILED { - assert.Equal(t, "MyError", metadata.FailureDetails.ErrorType) - assert.Equal(t, "Kah-BOOOM!!", metadata.FailureDetails.ErrorMessage) - assert.Equal(t, expectedStackTrace, metadata.FailureDetails.StackTrace.GetValue()) - } else { - assert.Equal(t, expectedResult, metadata.SerializedOutput) - } - } - - // Execute the test, which calls the above callbacks - workItemProcessingTestLogic(t, be, getOrchestratorActions, validateMetadata) - - // Ensure no more work items - _, err := be.GetOrchestrationWorkItem(ctx) - assert.ErrorIs(t, err, backend.ErrNoWorkItems) - } - } -} - -func Test_ScheduleActivityTasks(t *testing.T) { - expectedInput := "Hello, activity!" - expectedName := "MyActivity" - expectedResult := "42" - expectedTaskID := int32(7) - - for i, be := range backends { - initTest(t, be, i, true) - - _, err := be.GetActivityWorkItem(ctx) - if !assert.ErrorIs(t, err, backend.ErrNoWorkItems) { - continue - } - - // Produce a TaskScheduled event with a particular input - getOrchestratorActions := func() []*protos.OrchestratorAction { - return []*protos.OrchestratorAction{ - helpers.NewScheduleTaskAction(expectedTaskID, expectedName, wrapperspb.String(expectedInput)), - } - } - - // Make sure the metadata reflects that the orchestration is running - validateMetadata := func(metadata *api.OrchestrationMetadata) { - assert.True(t, metadata.IsRunning()) - } - - // Execute the test, which calls the above callbacks - workItemProcessingTestLogic(t, be, getOrchestratorActions, validateMetadata) - - // Ensure no more orchestration work items - _, err = be.GetOrchestrationWorkItem(ctx) - assert.ErrorIs(t, err, backend.ErrNoWorkItems) - - // However, there should be an activity work item - wi, err := be.GetActivityWorkItem(ctx) - if assert.NoError(t, err) && assert.NotNil(t, wi) { - assert.Equal(t, expectedName, wi.NewEvent.GetTaskScheduled().GetName()) - assert.Equal(t, expectedInput, wi.NewEvent.GetTaskScheduled().GetInput().GetValue()) - } - - // Ensure no more activity work items - _, err = be.GetActivityWorkItem(ctx) - assert.ErrorIs(t, err, backend.ErrNoWorkItems) - - // Complete the fetched activity work item - wi.Result = helpers.NewTaskCompletedEvent(expectedTaskID, wrapperspb.String(expectedResult)) - err = be.CompleteActivityWorkItem(ctx, wi) - if assert.NoError(t, err) { - // Completing the activity work item should create a new TaskCompleted event - wi, err := be.GetOrchestrationWorkItem(ctx) - if assert.NoError(t, err) && assert.NotNil(t, wi) && assert.Len(t, wi.NewEvents, 1) { - assert.Equal(t, expectedTaskID, wi.NewEvents[0].GetTaskCompleted().GetTaskScheduledId()) - assert.Equal(t, expectedResult, wi.NewEvents[0].GetTaskCompleted().GetResult().GetValue()) - } - } - } -} - -func Test_ScheduleTimerTasks(t *testing.T) { - for i, be := range backends { - initTest(t, be, i, true) - - timerDuration := 1 * time.Second - expectedFireAt := time.Now().Add(timerDuration) - - // Produce a TimerCreated event with a particular fireat time - getOrchestratorActions := func() []*protos.OrchestratorAction { - return []*protos.OrchestratorAction{{ - OrchestratorActionType: &protos.OrchestratorAction_CreateTimer{ - CreateTimer: &protos.CreateTimerAction{FireAt: timestamppb.New(expectedFireAt)}, - }, - }} - } - - // Make sure the metadata reflects that the orchestration is running - validateMetadata := func(metadata *api.OrchestrationMetadata) { - assert.True(t, metadata.IsRunning()) - } - - // Execute the test, which calls the above callbacks - workItemProcessingTestLogic(t, be, getOrchestratorActions, validateMetadata) - - // Validate that the timer work-item isn't yet visible - _, err := be.GetOrchestrationWorkItem(ctx) - assert.ErrorIs(t, err, backend.ErrNoWorkItems) - - // Sleep until the expected visibility time expires - time.Sleep(timerDuration) - - // Validate that the timer work-item is now visible - wi, err := be.GetOrchestrationWorkItem(ctx) - if assert.NoError(t, err) && assert.Equal(t, 1, len(wi.NewEvents)) { - e := wi.NewEvents[0] - tf := e.GetTimerFired() - if assert.NotNil(t, tf) { - assert.WithinDuration(t, expectedFireAt, tf.FireAt.AsTime(), 0) - } - } - } -} - -func Test_AbandonOrchestrationWorkItem(t *testing.T) { - iid := "abc" - - for i, be := range backends { - initTest(t, be, i, true) - - if createOrchestrationInstance(t, be, iid) { - if wi, ok := getOrchestrationWorkItem(t, be, iid); ok { - if err := be.AbandonOrchestrationWorkItem(ctx, wi); assert.NoError(t, err) { - // Make sure we can fetch it again immediately after abandoning - getOrchestrationWorkItem(t, be, iid) - } - } - } - } -} - -func Test_AbandonActivityWorkItem(t *testing.T) { - for i, be := range backends { - initTest(t, be, i, true) - - getOrchestratorActions := func() []*protos.OrchestratorAction { - return []*protos.OrchestratorAction{ - helpers.NewScheduleTaskAction(123, "MyActivity", nil), - } - } - - // Make sure the metadata reflects that the orchestration is running - validateMetadata := func(metadata *api.OrchestrationMetadata) { - assert.True(t, metadata.IsRunning()) - } - - // Execute the test, which calls the above callbacks - workItemProcessingTestLogic(t, be, getOrchestratorActions, validateMetadata) - - // The NewScheduleTaskAction should have created an activity work item - wi, err := be.GetActivityWorkItem(ctx) - if assert.NoError(t, err) && assert.NotNil(t, wi) { - // Ensure no more activity work items - _, err = be.GetActivityWorkItem(ctx) - assert.ErrorIs(t, err, backend.ErrNoWorkItems) - - if err := be.AbandonActivityWorkItem(ctx, wi); assert.NoError(t, err) { - // Re-fetch the abandoned activity work item - wi, err := be.GetActivityWorkItem(ctx) - if assert.NoError(t, err) { - assert.Equal(t, "MyActivity", wi.NewEvent.GetTaskScheduled().GetName()) - assert.Equal(t, int32(123), wi.NewEvent.EventId) - assert.Nil(t, wi.NewEvent.GetTaskScheduled().GetInput()) - } - } - } - } -} - -func Test_UninitializedBackend(t *testing.T) { - for i, be := range backends { - initTest(t, be, i, false) - - err := be.AbandonOrchestrationWorkItem(ctx, nil) - assert.Equal(t, err, backend.ErrNotInitialized) - err = be.CompleteOrchestrationWorkItem(ctx, nil) - assert.Equal(t, err, backend.ErrNotInitialized) - err = be.CreateOrchestrationInstance(ctx, nil) - assert.Equal(t, err, backend.ErrNotInitialized) - _, err = be.GetOrchestrationMetadata(ctx, api.InstanceID("")) - assert.Equal(t, err, backend.ErrNotInitialized) - _, err = be.GetOrchestrationRuntimeState(ctx, nil) - assert.Equal(t, err, backend.ErrNotInitialized) - _, err = be.GetOrchestrationWorkItem(ctx) - assert.Equal(t, err, backend.ErrNotInitialized) - _, err = be.GetActivityWorkItem(ctx) - assert.Equal(t, err, backend.ErrNotInitialized) - } -} - -func Test_GetNonExistingMetadata(t *testing.T) { - for i, be := range backends { - initTest(t, be, i, true) - - _, err := be.GetOrchestrationMetadata(ctx, api.InstanceID("bogus")) - assert.ErrorIs(t, err, api.ErrInstanceNotFound) - } -} - -func Test_PurgeOrchestrationState(t *testing.T) { - for i, be := range backends { - initTest(t, be, i, true) - - expectedResult := "done!" - - // Produce an ExecutionCompleted event with a particular output - getOrchestratorActions := func() []*protos.OrchestratorAction { - return []*protos.OrchestratorAction{{ - OrchestratorActionType: &protos.OrchestratorAction_CompleteOrchestration{ - CompleteOrchestration: &protos.CompleteOrchestrationAction{ - OrchestrationStatus: protos.OrchestrationStatus_ORCHESTRATION_STATUS_COMPLETED, - Result: wrapperspb.String(expectedResult), - }, - }, - }} - } - - // Make sure the orchestration actually completed and get the instance ID - var instanceID api.InstanceID - validateMetadata := func(metadata *api.OrchestrationMetadata) { - instanceID = metadata.InstanceID - assert.True(t, metadata.IsComplete()) - assert.False(t, metadata.IsRunning()) - } - - // Execute the test, which calls the above callbacks - workItemProcessingTestLogic(t, be, getOrchestratorActions, validateMetadata) - - // Purge the workflow state - if err := be.PurgeOrchestrationState(ctx, instanceID); !assert.NoError(t, err) { - return - } - - // The metadata should be gone - if _, err := be.GetOrchestrationMetadata(ctx, instanceID); !assert.ErrorIs(t, err, api.ErrInstanceNotFound) { - return - } - - wi := &backend.OrchestrationWorkItem{InstanceID: instanceID} - state, err := be.GetOrchestrationRuntimeState(ctx, wi) - assert.NoError(t, err) - - // The state should be empty - assert.Equal(t, 0, len(state.NewEvents())) - assert.Equal(t, 0, len(state.OldEvents())) - - // Attempting to purge again should fail with api.ErrInstanceNotFound - if err := be.PurgeOrchestrationState(ctx, instanceID); !assert.ErrorIs(t, err, api.ErrInstanceNotFound) { - return - } - } -} - -func initTest(t *testing.T, be backend.Backend, testIteration int, createTaskHub bool) { - t.Logf("(%d) Testing %s...", testIteration, reflect.TypeOf(be).String()) - err := be.DeleteTaskHub(ctx) - if err != nil { - assert.Equal(t, backend.ErrTaskHubNotFound, err) - } - if createTaskHub { - err := be.CreateTaskHub(ctx) - assert.NoError(t, err) - } -} - -func workItemProcessingTestLogic( - t *testing.T, - be backend.Backend, - getOrchestratorActions func() []*protos.OrchestratorAction, - validateMetadata func(metadata *api.OrchestrationMetadata), -) { - expectedID := "myinstance" - - startTime := time.Now().UTC() - if createOrchestrationInstance(t, be, expectedID) { - if wi, ok := getOrchestrationWorkItem(t, be, expectedID); ok { - if state, ok := getOrchestrationRuntimeState(t, be, wi); ok { - // Update the state with new events. Normally the worker logic would do this. - for _, e := range wi.NewEvents { - if err := state.AddEvent(e); err != nil { - t.Fatalf("failed to add event: %v", err) - } - } - - actions := getOrchestratorActions() - _, err := state.ApplyActions(actions, nil) - if assert.NoError(t, err) { - wi.State = state - err := be.CompleteOrchestrationWorkItem(ctx, wi) - if assert.NoError(t, err) { - // Validate runtime state - if state, ok = getOrchestrationRuntimeState(t, be, wi); ok { - createdTime, err := state.CreatedTime() - if assert.NoError(t, err) { - assert.GreaterOrEqual(t, createdTime, startTime) - } - - // State should be initialized with only "old" events - assert.Empty(t, state.NewEvents()) - assert.NotEmpty(t, state.OldEvents()) - // Validate orchestration metadata - if metadata, ok := getOrchestrationMetadata(t, be, state.InstanceID()); ok { - assert.Equal(t, defaultName, metadata.Name) - assert.Equal(t, defaultInput, metadata.SerializedInput) - assert.Less(t, createdTime.Sub(metadata.CreatedAt).Abs(), time.Microsecond) // Some database backends (like postgres) don't support sub-microsecond precision - assert.Equal(t, state.RuntimeStatus(), metadata.RuntimeStatus) - - validateMetadata(metadata) - } - } - } - } - } - } - } -} - -func createOrchestrationInstance(t assert.TestingT, be backend.Backend, instanceID string) bool { - e := &protos.HistoryEvent{ - Timestamp: timestamppb.New(time.Now()), - EventType: &protos.HistoryEvent_ExecutionStarted{ - ExecutionStarted: &protos.ExecutionStartedEvent{ - Name: defaultName, - OrchestrationInstance: &protos.OrchestrationInstance{InstanceId: instanceID}, - Input: wrapperspb.String(defaultInput), - }, - }, - } - policy := &protos.OrchestrationIdReusePolicy{} - err := be.CreateOrchestrationInstance(ctx, e, backend.WithOrchestrationIdReusePolicy(policy)) - return assert.NoError(t, err) -} - -func getOrchestrationWorkItem(t assert.TestingT, be backend.Backend, expectedInstanceID string) (*backend.OrchestrationWorkItem, bool) { - wi, err := be.GetOrchestrationWorkItem(ctx) - if assert.NoError(t, err) && assert.NotNil(t, wi) { - assert.NotEmpty(t, wi.LockedBy) - return wi, assert.Equal(t, expectedInstanceID, string(wi.InstanceID)) - } - - return nil, false -} - -func getOrchestrationRuntimeState(t assert.TestingT, be backend.Backend, wi *backend.OrchestrationWorkItem) (*backend.OrchestrationRuntimeState, bool) { - state, err := be.GetOrchestrationRuntimeState(ctx, wi) - if assert.NoError(t, err) && assert.NotNil(t, state) { - iid := state.InstanceID() - return state, assert.Equal(t, wi.InstanceID, iid) - } - - return nil, false -} - -func getOrchestrationMetadata(t assert.TestingT, be backend.Backend, iid api.InstanceID) (*api.OrchestrationMetadata, bool) { - metadata, err := be.GetOrchestrationMetadata(ctx, iid) - if assert.NoError(t, err) && assert.NotNil(t, metadata) { - return metadata, assert.Equal(t, iid, metadata.InstanceID) - } - - return nil, false -} +package tests + +import ( + "context" + "fmt" + "os" + "reflect" + "runtime" + "testing" + "time" + + "github.com/microsoft/durabletask-go/backend/postgres" + + "github.com/microsoft/durabletask-go/api" + "github.com/microsoft/durabletask-go/backend" + "github.com/microsoft/durabletask-go/backend/sqlite" + "github.com/microsoft/durabletask-go/internal/helpers" + "github.com/microsoft/durabletask-go/internal/protos" + "github.com/stretchr/testify/assert" + "google.golang.org/protobuf/types/known/timestamppb" + "google.golang.org/protobuf/types/known/wrapperspb" +) + +var ( + ctx = context.Background() + logger = backend.DefaultLogger() + sqliteInMemoryOptions = sqlite.NewSqliteOptions("") + sqliteFileOptions = sqlite.NewSqliteOptions("test.sqlite3") +) + +func getRunnableBackends() []backend.Backend { + var runnableBackends []backend.Backend + + runnableBackends = append(runnableBackends, sqlite.NewSqliteBackend(sqliteFileOptions, logger)) + runnableBackends = append(runnableBackends, sqlite.NewSqliteBackend(sqliteInMemoryOptions, logger)) + + if os.Getenv("POSTGRES_ENABLED") == "true" { + runnableBackends = append(runnableBackends, postgres.NewPostgresBackend(nil, logger)) + } + + return runnableBackends +} + +var backends = getRunnableBackends() + +var completionStatusValues = []protos.OrchestrationStatus{ + protos.OrchestrationStatus_ORCHESTRATION_STATUS_COMPLETED, + protos.OrchestrationStatus_ORCHESTRATION_STATUS_TERMINATED, + protos.OrchestrationStatus_ORCHESTRATION_STATUS_FAILED, +} + +const ( + defaultName = "testing" + defaultInput = "Hello, 世界!" +) + +// Test_NewOrchestrationWorkItem_Single enqueues a single work item into the backend +// store and attempts to fetch it immediately afterwards. +func Test_NewOrchestrationWorkItem_Single(t *testing.T) { + for i, be := range backends { + initTest(t, be, i, true) + + expectedID := "myinstance" + if createOrchestrationInstance(t, be, expectedID) { + if wi, ok := getOrchestrationWorkItem(t, be, expectedID); ok { + if assert.Equal(t, 1, len(wi.NewEvents)) { + startEvent := wi.NewEvents[0].GetExecutionStarted() + if assert.NotNil(t, startEvent) { + assert.Equal(t, expectedID, startEvent.OrchestrationInstance.GetInstanceId()) + assert.Equal(t, defaultName, startEvent.Name) + assert.Equal(t, defaultInput, startEvent.Input.GetValue()) + } + } + if state, ok := getOrchestrationRuntimeState(t, be, wi); ok { + // initial state should be empty since this is a new instance + iid := state.InstanceID() + assert.Equal(t, wi.InstanceID, iid) + _, err := state.Name() + assert.ErrorIs(t, err, api.ErrNotStarted) + _, err = state.Input() + assert.ErrorIs(t, err, api.ErrNotStarted) + assert.Equal(t, 0, len(state.NewEvents())) + assert.Equal(t, 0, len(state.OldEvents())) + } + + // Ensure no more work items + _, err := be.GetOrchestrationWorkItem(ctx) + assert.ErrorIs(t, err, backend.ErrNoWorkItems) + } + } + } +} + +// Test_NewOrchestrationWorkItem_Multiple enqueues multiple work items into the sqlite backend +// store and then attempts to fetch them one-at-a-time, in order. +func Test_NewOrchestrationWorkItem_Multiple(t *testing.T) { + for i, be := range backends { + initTest(t, be, i, true) + + const WorkItems = 4 + + // Create multiple work items up front + for j := 0; j < WorkItems; j++ { + expectedID := fmt.Sprintf("instance_%d", j) + createOrchestrationInstance(t, be, expectedID) + } + + for j := 0; j < WorkItems; j++ { + expectedID := fmt.Sprintf("instance_%d", j) + if wi, ok := getOrchestrationWorkItem(t, be, expectedID); ok { + if assert.Equal(t, 1, len(wi.NewEvents)) { + startEvent := wi.NewEvents[0].GetExecutionStarted() + if assert.NotNil(t, startEvent) { + assert.Equal(t, expectedID, startEvent.OrchestrationInstance.GetInstanceId()) + assert.Equal(t, defaultName, startEvent.Name) + assert.Equal(t, defaultInput, startEvent.Input.GetValue()) + } + } + if state, ok := getOrchestrationRuntimeState(t, be, wi); ok { + // initial state should be empty since this is a new instance + _, err := state.Name() + assert.ErrorIs(t, err, api.ErrNotStarted) + _, err = state.Input() + assert.ErrorIs(t, err, api.ErrNotStarted) + assert.Equal(t, 0, len(state.NewEvents())) + assert.Equal(t, 0, len(state.OldEvents())) + } + } + } + + // Ensure no more work items + _, err := be.GetOrchestrationWorkItem(ctx) + assert.ErrorIs(t, err, backend.ErrNoWorkItems) + } +} + +func Test_CompleteOrchestration(t *testing.T) { + for i, be := range backends { + for _, expectedStatus := range completionStatusValues { + initTest(t, be, i, true) + + expectedResult := "done!" + stackTraceBuffer := make([]byte, 256) + var expectedStackTrace string + + // Produce an ExecutionCompleted event with a particular output + getOrchestratorActions := func() []*protos.OrchestratorAction { + completeAction := &protos.CompleteOrchestrationAction{OrchestrationStatus: expectedStatus} + if expectedStatus == protos.OrchestrationStatus_ORCHESTRATION_STATUS_FAILED { + runtime.Stack(stackTraceBuffer, false) + expectedStackTrace = string(stackTraceBuffer) + completeAction.FailureDetails = &protos.TaskFailureDetails{ + ErrorType: "MyError", + ErrorMessage: "Kah-BOOOM!!", + StackTrace: wrapperspb.String(expectedStackTrace), + } + } else { + completeAction.Result = wrapperspb.String(expectedResult) + } + + return []*protos.OrchestratorAction{{ + OrchestratorActionType: &protos.OrchestratorAction_CompleteOrchestration{ + CompleteOrchestration: completeAction, + }, + }} + } + + validateMetadata := func(metadata *api.OrchestrationMetadata) { + assert.True(t, metadata.IsComplete()) + assert.False(t, metadata.IsRunning()) + + if expectedStatus == protos.OrchestrationStatus_ORCHESTRATION_STATUS_FAILED { + assert.Equal(t, "MyError", metadata.FailureDetails.ErrorType) + assert.Equal(t, "Kah-BOOOM!!", metadata.FailureDetails.ErrorMessage) + assert.Equal(t, expectedStackTrace, metadata.FailureDetails.StackTrace.GetValue()) + } else { + assert.Equal(t, expectedResult, metadata.SerializedOutput) + } + } + + // Execute the test, which calls the above callbacks + workItemProcessingTestLogic(t, be, getOrchestratorActions, validateMetadata) + + // Ensure no more work items + _, err := be.GetOrchestrationWorkItem(ctx) + assert.ErrorIs(t, err, backend.ErrNoWorkItems) + } + } +} + +func Test_ScheduleActivityTasks(t *testing.T) { + expectedInput := "Hello, activity!" + expectedName := "MyActivity" + expectedResult := "42" + expectedTaskID := int32(7) + + for i, be := range backends { + initTest(t, be, i, true) + + _, err := be.GetActivityWorkItem(ctx) + if !assert.ErrorIs(t, err, backend.ErrNoWorkItems) { + continue + } + + // Produce a TaskScheduled event with a particular input + getOrchestratorActions := func() []*protos.OrchestratorAction { + return []*protos.OrchestratorAction{ + helpers.NewScheduleTaskAction(expectedTaskID, expectedName, wrapperspb.String(expectedInput)), + } + } + + // Make sure the metadata reflects that the orchestration is running + validateMetadata := func(metadata *api.OrchestrationMetadata) { + assert.True(t, metadata.IsRunning()) + } + + // Execute the test, which calls the above callbacks + workItemProcessingTestLogic(t, be, getOrchestratorActions, validateMetadata) + + // Ensure no more orchestration work items + _, err = be.GetOrchestrationWorkItem(ctx) + assert.ErrorIs(t, err, backend.ErrNoWorkItems) + + // However, there should be an activity work item + wi, err := be.GetActivityWorkItem(ctx) + if assert.NoError(t, err) && assert.NotNil(t, wi) { + assert.Equal(t, expectedName, wi.NewEvent.GetTaskScheduled().GetName()) + assert.Equal(t, expectedInput, wi.NewEvent.GetTaskScheduled().GetInput().GetValue()) + } + + // Ensure no more activity work items + _, err = be.GetActivityWorkItem(ctx) + assert.ErrorIs(t, err, backend.ErrNoWorkItems) + + // Complete the fetched activity work item + wi.Result = helpers.NewTaskCompletedEvent(expectedTaskID, wrapperspb.String(expectedResult)) + err = be.CompleteActivityWorkItem(ctx, wi) + if assert.NoError(t, err) { + // Completing the activity work item should create a new TaskCompleted event + wi, err := be.GetOrchestrationWorkItem(ctx) + if assert.NoError(t, err) && assert.NotNil(t, wi) && assert.Len(t, wi.NewEvents, 1) { + assert.Equal(t, expectedTaskID, wi.NewEvents[0].GetTaskCompleted().GetTaskScheduledId()) + assert.Equal(t, expectedResult, wi.NewEvents[0].GetTaskCompleted().GetResult().GetValue()) + } + } + } +} + +func Test_ScheduleTimerTasks(t *testing.T) { + for i, be := range backends { + initTest(t, be, i, true) + + timerDuration := 1 * time.Second + expectedFireAt := time.Now().Add(timerDuration) + + // Produce a TimerCreated event with a particular fireat time + getOrchestratorActions := func() []*protos.OrchestratorAction { + return []*protos.OrchestratorAction{{ + OrchestratorActionType: &protos.OrchestratorAction_CreateTimer{ + CreateTimer: &protos.CreateTimerAction{FireAt: timestamppb.New(expectedFireAt)}, + }, + }} + } + + // Make sure the metadata reflects that the orchestration is running + validateMetadata := func(metadata *api.OrchestrationMetadata) { + assert.True(t, metadata.IsRunning()) + } + + // Execute the test, which calls the above callbacks + workItemProcessingTestLogic(t, be, getOrchestratorActions, validateMetadata) + + // Validate that the timer work-item isn't yet visible + _, err := be.GetOrchestrationWorkItem(ctx) + assert.ErrorIs(t, err, backend.ErrNoWorkItems) + + // Sleep until the expected visibility time expires + time.Sleep(timerDuration) + + // Validate that the timer work-item is now visible + wi, err := be.GetOrchestrationWorkItem(ctx) + if assert.NoError(t, err) && assert.Equal(t, 1, len(wi.NewEvents)) { + e := wi.NewEvents[0] + tf := e.GetTimerFired() + if assert.NotNil(t, tf) { + assert.WithinDuration(t, expectedFireAt, tf.FireAt.AsTime(), 0) + } + } + } +} + +func Test_AbandonOrchestrationWorkItem(t *testing.T) { + iid := "abc" + + for i, be := range backends { + initTest(t, be, i, true) + + if createOrchestrationInstance(t, be, iid) { + if wi, ok := getOrchestrationWorkItem(t, be, iid); ok { + if err := be.AbandonOrchestrationWorkItem(ctx, wi); assert.NoError(t, err) { + // Make sure we can fetch it again immediately after abandoning + getOrchestrationWorkItem(t, be, iid) + } + } + } + } +} + +func Test_AbandonActivityWorkItem(t *testing.T) { + for i, be := range backends { + initTest(t, be, i, true) + + getOrchestratorActions := func() []*protos.OrchestratorAction { + return []*protos.OrchestratorAction{ + helpers.NewScheduleTaskAction(123, "MyActivity", nil), + } + } + + // Make sure the metadata reflects that the orchestration is running + validateMetadata := func(metadata *api.OrchestrationMetadata) { + assert.True(t, metadata.IsRunning()) + } + + // Execute the test, which calls the above callbacks + workItemProcessingTestLogic(t, be, getOrchestratorActions, validateMetadata) + + // The NewScheduleTaskAction should have created an activity work item + wi, err := be.GetActivityWorkItem(ctx) + if assert.NoError(t, err) && assert.NotNil(t, wi) { + // Ensure no more activity work items + _, err = be.GetActivityWorkItem(ctx) + assert.ErrorIs(t, err, backend.ErrNoWorkItems) + + if err := be.AbandonActivityWorkItem(ctx, wi); assert.NoError(t, err) { + // Re-fetch the abandoned activity work item + wi, err := be.GetActivityWorkItem(ctx) + if assert.NoError(t, err) { + assert.Equal(t, "MyActivity", wi.NewEvent.GetTaskScheduled().GetName()) + assert.Equal(t, int32(123), wi.NewEvent.EventId) + assert.Nil(t, wi.NewEvent.GetTaskScheduled().GetInput()) + } + } + } + } +} + +func Test_UninitializedBackend(t *testing.T) { + for i, be := range backends { + initTest(t, be, i, false) + + err := be.AbandonOrchestrationWorkItem(ctx, nil) + assert.Equal(t, err, backend.ErrNotInitialized) + err = be.CompleteOrchestrationWorkItem(ctx, nil) + assert.Equal(t, err, backend.ErrNotInitialized) + err = be.CreateOrchestrationInstance(ctx, nil) + assert.Equal(t, err, backend.ErrNotInitialized) + _, err = be.GetOrchestrationMetadata(ctx, api.InstanceID("")) + assert.Equal(t, err, backend.ErrNotInitialized) + _, err = be.GetOrchestrationRuntimeState(ctx, nil) + assert.Equal(t, err, backend.ErrNotInitialized) + _, err = be.GetOrchestrationWorkItem(ctx) + assert.Equal(t, err, backend.ErrNotInitialized) + _, err = be.GetActivityWorkItem(ctx) + assert.Equal(t, err, backend.ErrNotInitialized) + } +} + +func Test_GetNonExistingMetadata(t *testing.T) { + for i, be := range backends { + initTest(t, be, i, true) + + _, err := be.GetOrchestrationMetadata(ctx, api.InstanceID("bogus")) + assert.ErrorIs(t, err, api.ErrInstanceNotFound) + } +} + +func Test_PurgeOrchestrationState(t *testing.T) { + for i, be := range backends { + initTest(t, be, i, true) + + expectedResult := "done!" + + // Produce an ExecutionCompleted event with a particular output + getOrchestratorActions := func() []*protos.OrchestratorAction { + return []*protos.OrchestratorAction{{ + OrchestratorActionType: &protos.OrchestratorAction_CompleteOrchestration{ + CompleteOrchestration: &protos.CompleteOrchestrationAction{ + OrchestrationStatus: protos.OrchestrationStatus_ORCHESTRATION_STATUS_COMPLETED, + Result: wrapperspb.String(expectedResult), + }, + }, + }} + } + + // Make sure the orchestration actually completed and get the instance ID + var instanceID api.InstanceID + validateMetadata := func(metadata *api.OrchestrationMetadata) { + instanceID = metadata.InstanceID + assert.True(t, metadata.IsComplete()) + assert.False(t, metadata.IsRunning()) + } + + // Execute the test, which calls the above callbacks + workItemProcessingTestLogic(t, be, getOrchestratorActions, validateMetadata) + + // Purge the workflow state + if err := be.PurgeOrchestrationState(ctx, instanceID); !assert.NoError(t, err) { + return + } + + // The metadata should be gone + if _, err := be.GetOrchestrationMetadata(ctx, instanceID); !assert.ErrorIs(t, err, api.ErrInstanceNotFound) { + return + } + + wi := &backend.OrchestrationWorkItem{InstanceID: instanceID} + state, err := be.GetOrchestrationRuntimeState(ctx, wi) + assert.NoError(t, err) + + // The state should be empty + assert.Equal(t, 0, len(state.NewEvents())) + assert.Equal(t, 0, len(state.OldEvents())) + + // Attempting to purge again should fail with api.ErrInstanceNotFound + if err := be.PurgeOrchestrationState(ctx, instanceID); !assert.ErrorIs(t, err, api.ErrInstanceNotFound) { + return + } + } +} + +func initTest(t *testing.T, be backend.Backend, testIteration int, createTaskHub bool) { + t.Logf("(%d) Testing %s...", testIteration, reflect.TypeOf(be).String()) + err := be.DeleteTaskHub(ctx) + if err != nil { + assert.Equal(t, backend.ErrTaskHubNotFound, err) + } + if createTaskHub { + err := be.CreateTaskHub(ctx) + assert.NoError(t, err) + } +} + +func workItemProcessingTestLogic( + t *testing.T, + be backend.Backend, + getOrchestratorActions func() []*protos.OrchestratorAction, + validateMetadata func(metadata *api.OrchestrationMetadata), +) { + expectedID := "myinstance" + + startTime := time.Now().UTC() + if createOrchestrationInstance(t, be, expectedID) { + if wi, ok := getOrchestrationWorkItem(t, be, expectedID); ok { + if state, ok := getOrchestrationRuntimeState(t, be, wi); ok { + // Update the state with new events. Normally the worker logic would do this. + for _, e := range wi.NewEvents { + if err := state.AddEvent(e); err != nil { + t.Fatalf("failed to add event: %v", err) + } + } + + actions := getOrchestratorActions() + _, err := state.ApplyActions(actions, nil) + if assert.NoError(t, err) { + wi.State = state + err := be.CompleteOrchestrationWorkItem(ctx, wi) + if assert.NoError(t, err) { + // Validate runtime state + if state, ok = getOrchestrationRuntimeState(t, be, wi); ok { + createdTime, err := state.CreatedTime() + if assert.NoError(t, err) { + assert.GreaterOrEqual(t, createdTime, startTime) + } + + // State should be initialized with only "old" events + assert.Empty(t, state.NewEvents()) + assert.NotEmpty(t, state.OldEvents()) + // Validate orchestration metadata + if metadata, ok := getOrchestrationMetadata(t, be, state.InstanceID()); ok { + assert.Equal(t, defaultName, metadata.Name) + assert.Equal(t, defaultInput, metadata.SerializedInput) + assert.Less(t, createdTime.Sub(metadata.CreatedAt).Abs(), time.Microsecond) // Some database backends (like postgres) don't support sub-microsecond precision + assert.Equal(t, state.RuntimeStatus(), metadata.RuntimeStatus) + + validateMetadata(metadata) + } + } + } + } + } + } + } +} + +func createOrchestrationInstance(t assert.TestingT, be backend.Backend, instanceID string) bool { + e := &protos.HistoryEvent{ + Timestamp: timestamppb.New(time.Now()), + EventType: &protos.HistoryEvent_ExecutionStarted{ + ExecutionStarted: &protos.ExecutionStartedEvent{ + Name: defaultName, + OrchestrationInstance: &protos.OrchestrationInstance{InstanceId: instanceID}, + Input: wrapperspb.String(defaultInput), + }, + }, + } + policy := &protos.OrchestrationIdReusePolicy{} + err := be.CreateOrchestrationInstance(ctx, e, backend.WithOrchestrationIdReusePolicy(policy)) + return assert.NoError(t, err) +} + +func getOrchestrationWorkItem(t assert.TestingT, be backend.Backend, expectedInstanceID string) (*backend.OrchestrationWorkItem, bool) { + wi, err := be.GetOrchestrationWorkItem(ctx) + if assert.NoError(t, err) && assert.NotNil(t, wi) { + assert.NotEmpty(t, wi.LockedBy) + return wi, assert.Equal(t, expectedInstanceID, string(wi.InstanceID)) + } + + return nil, false +} + +func getOrchestrationRuntimeState(t assert.TestingT, be backend.Backend, wi *backend.OrchestrationWorkItem) (*backend.OrchestrationRuntimeState, bool) { + state, err := be.GetOrchestrationRuntimeState(ctx, wi) + if assert.NoError(t, err) && assert.NotNil(t, state) { + iid := state.InstanceID() + return state, assert.Equal(t, wi.InstanceID, iid) + } + + return nil, false +} + +func getOrchestrationMetadata(t assert.TestingT, be backend.Backend, iid api.InstanceID) (*api.OrchestrationMetadata, bool) { + metadata, err := be.GetOrchestrationMetadata(ctx, iid) + if assert.NoError(t, err) && assert.NotNil(t, metadata) { + return metadata, assert.Equal(t, iid, metadata.InstanceID) + } + + return nil, false +} + +// Test_SubOrchestrationParentInstanceID verifies that when creating a sub-orchestration, +// the child row persists the parent instance ID in the ParentInstanceID column. +func Test_SubOrchestrationParentInstanceID(t *testing.T) { + for i, be := range backends { + initTest(t, be, i, true) + + parentInstanceID := fmt.Sprintf("parent-instance-%d", i) + childInstanceID := fmt.Sprintf("child-instance-%d", i) + + // Create parent orchestration instance + parentEvent := &protos.HistoryEvent{ + Timestamp: timestamppb.Now(), + EventType: &protos.HistoryEvent_ExecutionStarted{ + ExecutionStarted: &protos.ExecutionStartedEvent{ + Name: "ParentOrchestration", + OrchestrationInstance: &protos.OrchestrationInstance{InstanceId: parentInstanceID}, + Input: wrapperspb.String("parent-input"), + }, + }, + } + if !assert.NoError(t, be.CreateOrchestrationInstance(ctx, parentEvent, backend.WithOrchestrationIdReusePolicy(&protos.OrchestrationIdReusePolicy{}))) { + continue + } + + // Create child orchestration instance with parent info + parentInfo := helpers.NewParentInfo(1, "ParentOrchestration", parentInstanceID) + childEvent := &protos.HistoryEvent{ + Timestamp: timestamppb.Now(), + EventType: &protos.HistoryEvent_ExecutionStarted{ + ExecutionStarted: &protos.ExecutionStartedEvent{ + Name: "ChildOrchestration", + OrchestrationInstance: &protos.OrchestrationInstance{InstanceId: childInstanceID}, + Input: wrapperspb.String("child-input"), + ParentInstance: parentInfo, + }, + }, + } + if !assert.NoError(t, be.CreateOrchestrationInstance(ctx, childEvent, backend.WithOrchestrationIdReusePolicy(&protos.OrchestrationIdReusePolicy{}))) { + continue + } + + // Verify the ParentInstanceID is set correctly using GetOrchestrationMetadata + childMetadata, err := be.GetOrchestrationMetadata(ctx, api.InstanceID(childInstanceID)) + if assert.NoError(t, err) { + // Verify the parent instance ID is correctly set + if assert.NotNil(t, childMetadata.ParentInstanceID) { + assert.Equal(t, parentInstanceID, *childMetadata.ParentInstanceID) + } + } + } +} diff --git a/tests/grpc/grpc_test.go b/tests/grpc/grpc_test.go index e5bf6d35..e9a53d2b 100644 --- a/tests/grpc/grpc_test.go +++ b/tests/grpc/grpc_test.go @@ -308,57 +308,6 @@ func Test_Grpc_Terminate_Recursive(t *testing.T) { } } -func Test_Grpc_ReuseInstanceIDIgnore(t *testing.T) { - delayTime := 2 * time.Second - r := task.NewTaskRegistry() - require.NoError(t, r.AddOrchestratorN("SingleActivity", func(ctx *task.OrchestrationContext) (any, error) { - var input string - if err := ctx.GetInput(&input); err != nil { - return nil, err - } - var output string - if err := ctx.CreateTimer(delayTime).Await(nil); err != nil { - return nil, err - } - err := ctx.CallActivity("SayHello", task.WithActivityInput(input)).Await(&output) - return output, err - })) - require.NoError(t, r.AddActivityN("SayHello", func(ctx task.ActivityContext) (any, error) { - var name string - if err := ctx.GetInput(&name); err != nil { - return nil, err - } - return fmt.Sprintf("Hello, %s!", name), nil - })) - - cancelListener := startGrpcListener(t, r) - defer cancelListener() - instanceID := api.InstanceID("SKIP_IF_RUNNING_OR_COMPLETED") - reuseIdPolicy := &api.OrchestrationIdReusePolicy{ - Action: api.REUSE_ID_ACTION_IGNORE, - OperationStatus: []api.OrchestrationStatus{api.RUNTIME_STATUS_RUNNING, api.RUNTIME_STATUS_COMPLETED, api.RUNTIME_STATUS_PENDING}, - } - - id, err := grpcClient.ScheduleNewOrchestration(ctx, "SingleActivity", api.WithInput("世界"), api.WithInstanceID(instanceID)) - require.NoError(t, err) - // wait orchestration to start - _, err = grpcClient.WaitForOrchestrationStart(ctx, id) - require.NoError(t, err) - pivotTime := time.Now() - // schedule again, it should ignore creating the new orchestration - id, err = grpcClient.ScheduleNewOrchestration(ctx, "SingleActivity", api.WithInput("World"), api.WithInstanceID(id), api.WithOrchestrationIdReusePolicy(reuseIdPolicy)) - require.NoError(t, err) - timeoutCtx, cancelTimeout := context.WithTimeout(ctx, 30*time.Second) - defer cancelTimeout() - metadata, err := grpcClient.WaitForOrchestrationCompletion(timeoutCtx, id, api.WithFetchPayloads(true)) - require.NoError(t, err) - assert.Equal(t, true, metadata.IsComplete()) - // the first orchestration should complete as the second one is ignored - assert.Equal(t, `"Hello, 世界!"`, metadata.SerializedOutput) - // assert the orchestration created timestamp - assert.True(t, pivotTime.After(metadata.CreatedAt)) -} - func Test_Grpc_ReuseInstanceIDTerminate(t *testing.T) { delayTime := 2 * time.Second r := task.NewTaskRegistry() @@ -386,8 +335,7 @@ func Test_Grpc_ReuseInstanceIDTerminate(t *testing.T) { defer cancelListener() instanceID := api.InstanceID("TERMINATE_IF_RUNNING_OR_COMPLETED") reuseIdPolicy := &api.OrchestrationIdReusePolicy{ - Action: api.REUSE_ID_ACTION_TERMINATE, - OperationStatus: []api.OrchestrationStatus{api.RUNTIME_STATUS_RUNNING, api.RUNTIME_STATUS_COMPLETED, api.RUNTIME_STATUS_PENDING}, + ReplaceableStatus: []protos.OrchestrationStatus{protos.OrchestrationStatus_ORCHESTRATION_STATUS_RUNNING, protos.OrchestrationStatus_ORCHESTRATION_STATUS_COMPLETED, protos.OrchestrationStatus_ORCHESTRATION_STATUS_PENDING}, } id, err := grpcClient.ScheduleNewOrchestration(ctx, "SingleActivity", api.WithInput("世界"), api.WithInstanceID(instanceID)) @@ -508,3 +456,34 @@ func Test_Grpc_SubOrchestratorRetries(t *testing.T) { // With 3 max attempts there will be two retries with 10 millis delay before each require.GreaterOrEqual(t, metadata.LastUpdatedAt, metadata.CreatedAt.Add(2*10*time.Millisecond)) } + +func Test_Grpc_SubOrchestrationParentInstanceID(t *testing.T) { + r := task.NewTaskRegistry() + childInstanceID := api.InstanceID("child-grpc-parent-id") + + require.NoError(t, r.AddOrchestratorN("Parent", func(ctx *task.OrchestrationContext) (any, error) { + ctx.CallSubOrchestrator("Child", task.WithSubOrchestrationInstanceID(string(childInstanceID))) + return nil, nil + })) + + require.NoError(t, r.AddOrchestratorN("Child", func(ctx *task.OrchestrationContext) (any, error) { + return "child result", nil + })) + + cancelListener := startGrpcListener(t, r) + defer cancelListener() + parentInstanceID := api.InstanceID("parent-grpc-parent-id-test") + + id, err := grpcClient.ScheduleNewOrchestration(ctx, "Parent", api.WithInstanceID(parentInstanceID)) + require.NoError(t, err) + timeoutCtx, cancelTimeout := context.WithTimeout(ctx, 30*time.Second) + defer cancelTimeout() + _, err = grpcClient.WaitForOrchestrationCompletion(timeoutCtx, id) + require.NoError(t, err) + + // Fetch child metadata via gRPC to verify ParentInstanceID is propagated + childMetadata, err := grpcClient.FetchOrchestrationMetadata(ctx, childInstanceID) + require.NoError(t, err) + require.NotNil(t, childMetadata.ParentInstanceID) + assert.Equal(t, string(parentInstanceID), *childMetadata.ParentInstanceID) +} diff --git a/tests/metadata_test.go b/tests/metadata_test.go index b9f1e76d..5606a7dd 100644 --- a/tests/metadata_test.go +++ b/tests/metadata_test.go @@ -12,6 +12,7 @@ import ( ) func Test_OrchestrationMetadata_Serialization(t *testing.T) { + parentInstanceID := "parent-123" metadata := api.NewOrchestrationMetadata( api.InstanceID("abc123"), "MyOrchestration", @@ -29,7 +30,9 @@ func Test_OrchestrationMetadata_Serialization(t *testing.T) { ErrorType: "InnerError", ErrorMessage: "Fuse lit", }, - }) + }, + ) + metadata.ParentInstanceID = &parentInstanceID if bytes, err := json.Marshal(metadata); assert.NoError(t, err) { metadata2 := new(api.OrchestrationMetadata) @@ -53,6 +56,9 @@ func Test_OrchestrationMetadata_Serialization(t *testing.T) { assert.Nil(t, metadata2.FailureDetails.InnerFailure.InnerFailure) } } + if assert.NotNil(t, metadata2.ParentInstanceID) { + assert.Equal(t, parentInstanceID, *metadata2.ParentInstanceID) + } } } } diff --git a/tests/orchestrations_test.go b/tests/orchestrations_test.go index f7b66c66..87652484 100644 --- a/tests/orchestrations_test.go +++ b/tests/orchestrations_test.go @@ -1324,62 +1324,6 @@ func Test_RecreateCompletedOrchestration(t *testing.T) { ) } -func Test_SingleActivity_ReuseInstanceIDIgnore(t *testing.T) { - // Registration - r := task.NewTaskRegistry() - require.NoError(t, r.AddOrchestratorN("SingleActivity", func(ctx *task.OrchestrationContext) (any, error) { - var input string - if err := ctx.GetInput(&input); err != nil { - return nil, err - } - var output string - err := ctx.CallActivity("SayHello", task.WithActivityInput(input)).Await(&output) - return output, err - })) - require.NoError(t, r.AddActivityN("SayHello", func(ctx task.ActivityContext) (any, error) { - var name string - if err := ctx.GetInput(&name); err != nil { - return nil, err - } - return fmt.Sprintf("Hello, %s!", name), nil - })) - - // Initialization - ctx := context.Background() - client, worker := initTaskHubWorker(ctx, r) - defer func() { - if err := worker.Shutdown(ctx); err != nil { - t.Logf("shutdown: %v", err) - } - }() - - instanceID := api.InstanceID("IGNORE_IF_RUNNING_OR_COMPLETED") - reuseIdPolicy := &api.OrchestrationIdReusePolicy{ - Action: api.REUSE_ID_ACTION_IGNORE, - OperationStatus: []api.OrchestrationStatus{api.RUNTIME_STATUS_RUNNING, api.RUNTIME_STATUS_COMPLETED, api.RUNTIME_STATUS_PENDING}, - } - - // Run the orchestration - id, err := client.ScheduleNewOrchestration(ctx, "SingleActivity", api.WithInput("世界"), api.WithInstanceID(instanceID)) - require.NoError(t, err) - // wait orchestration to start - _, err = client.WaitForOrchestrationStart(ctx, id) - require.NoError(t, err) - pivotTime := time.Now() - // schedule again, it should ignore creating the new orchestration - id, err = client.ScheduleNewOrchestration(ctx, "SingleActivity", api.WithInput("World"), api.WithInstanceID(id), api.WithOrchestrationIdReusePolicy(reuseIdPolicy)) - require.NoError(t, err) - timeoutCtx, cancelTimeout := context.WithTimeout(ctx, 30*time.Second) - defer cancelTimeout() - metadata, err := client.WaitForOrchestrationCompletion(timeoutCtx, id) - require.NoError(t, err) - assert.Equal(t, true, metadata.IsComplete()) - // the first orchestration should complete as the second one is ignored - assert.Equal(t, `"Hello, 世界!"`, metadata.SerializedOutput) - // assert the orchestration created timestamp - assert.True(t, pivotTime.After(metadata.CreatedAt)) -} - func Test_SingleActivity_ReuseInstanceIDTerminate(t *testing.T) { // Registration r := task.NewTaskRegistry() @@ -1411,8 +1355,7 @@ func Test_SingleActivity_ReuseInstanceIDTerminate(t *testing.T) { instanceID := api.InstanceID("TERMINATE_IF_RUNNING_OR_COMPLETED") reuseIdPolicy := &api.OrchestrationIdReusePolicy{ - Action: api.REUSE_ID_ACTION_TERMINATE, - OperationStatus: []api.OrchestrationStatus{api.RUNTIME_STATUS_RUNNING, api.RUNTIME_STATUS_COMPLETED, api.RUNTIME_STATUS_PENDING}, + ReplaceableStatus: []protos.OrchestrationStatus{protos.OrchestrationStatus_ORCHESTRATION_STATUS_RUNNING, protos.OrchestrationStatus_ORCHESTRATION_STATUS_COMPLETED, protos.OrchestrationStatus_ORCHESTRATION_STATUS_PENDING}, } // Run the orchestration diff --git a/vendored/durabletask-protobuf/PROTO_SOURCE_COMMIT_HASH b/vendored/durabletask-protobuf/PROTO_SOURCE_COMMIT_HASH index 049687a0..1f574577 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: 4207e1dbd14cedc268f69c3befee60fcaad19367 -URL: https://github.com/microsoft/durabletask-protobuf/blob/4207e1dbd14cedc268f69c3befee60fcaad19367/protos/orchestrator_service.proto \ No newline at end of file +Commit: 98e138452d57586e3109545b94055448f2f6cc24 +URL: https://github.com/microsoft/durabletask-protobuf/blob/98e138452d57586e3109545b94055448f2f6cc24/protos/orchestrator_service.proto diff --git a/vendored/durabletask-protobuf/protos/orchestrator_service.proto b/vendored/durabletask-protobuf/protos/orchestrator_service.proto index 2ca37553..e7e12524 100644 --- a/vendored/durabletask-protobuf/protos/orchestrator_service.proto +++ b/vendored/durabletask-protobuf/protos/orchestrator_service.proto @@ -11,6 +11,7 @@ import "google/protobuf/timestamp.proto"; import "google/protobuf/duration.proto"; import "google/protobuf/wrappers.proto"; import "google/protobuf/empty.proto"; +import "google/protobuf/struct.proto"; message OrchestrationInstance { string instanceId = 1; @@ -23,6 +24,8 @@ message ActivityRequest { google.protobuf.StringValue input = 3; OrchestrationInstance orchestrationInstance = 4; int32 taskId = 5; + TraceContext parentTraceContext = 6; + map tags = 7; } message ActivityResponse { @@ -30,6 +33,7 @@ message ActivityResponse { int32 taskId = 2; google.protobuf.StringValue result = 3; TaskFailureDetails failureDetails = 4; + string completionToken = 5; } message TaskFailureDetails { @@ -38,6 +42,7 @@ message TaskFailureDetails { google.protobuf.StringValue stackTrace = 3; TaskFailureDetails innerFailure = 4; bool isNonRetriable = 5; + map properties = 6; } enum OrchestrationStatus { @@ -73,6 +78,7 @@ message ExecutionStartedEvent { google.protobuf.Timestamp scheduledStartTimestamp = 6; TraceContext parentTraceContext = 7; google.protobuf.StringValue orchestrationSpanID = 8; + map tags = 9; } message ExecutionCompletedEvent { @@ -91,6 +97,7 @@ message TaskScheduledEvent { google.protobuf.StringValue version = 2; google.protobuf.StringValue input = 3; TraceContext parentTraceContext = 4; + map tags = 5; } message TaskCompletedEvent { @@ -109,6 +116,7 @@ message SubOrchestrationInstanceCreatedEvent { google.protobuf.StringValue version = 3; google.protobuf.StringValue input = 4; TraceContext parentTraceContext = 5; + map tags = 6; } message SubOrchestrationInstanceCompletedEvent { @@ -169,6 +177,63 @@ message ExecutionResumedEvent { google.protobuf.StringValue input = 1; } +message EntityOperationSignaledEvent { + string requestId = 1; + string operation = 2; + google.protobuf.Timestamp scheduledTime = 3; + google.protobuf.StringValue input = 4; + google.protobuf.StringValue targetInstanceId = 5; // used only within histories, null in messages +} + +message EntityOperationCalledEvent { + string requestId = 1; + string operation = 2; + google.protobuf.Timestamp scheduledTime = 3; + google.protobuf.StringValue input = 4; + google.protobuf.StringValue parentInstanceId = 5; // used only within messages, null in histories + google.protobuf.StringValue parentExecutionId = 6; // used only within messages, null in histories + google.protobuf.StringValue targetInstanceId = 7; // used only within histories, null in messages +} + +message EntityLockRequestedEvent { + string criticalSectionId = 1; + repeated string lockSet = 2; + int32 position = 3; + google.protobuf.StringValue parentInstanceId = 4; // used only within messages, null in histories +} + +message EntityOperationCompletedEvent { + string requestId = 1; + google.protobuf.StringValue output = 2; +} + +message EntityOperationFailedEvent { + string requestId = 1; + TaskFailureDetails failureDetails = 2; +} + +message EntityUnlockSentEvent { + string criticalSectionId = 1; + google.protobuf.StringValue parentInstanceId = 2; // used only within messages, null in histories + google.protobuf.StringValue targetInstanceId = 3; // used only within histories, null in messages +} + +message EntityLockGrantedEvent { + string criticalSectionId = 1; +} + +message ExecutionRewoundEvent { + google.protobuf.StringValue reason = 1; + google.protobuf.StringValue parentExecutionId = 2; // used only for rewinding suborchestrations, null otherwise + google.protobuf.StringValue instanceId = 3; // used only for rewinding suborchestrations, null otherwise + TraceContext parentTraceContext = 4; // used only for rewinding suborchestrations, null otherwise + google.protobuf.StringValue name = 5; // used by DTS backend only + google.protobuf.StringValue version = 6; // used by DTS backend only + google.protobuf.StringValue input = 7; // used by DTS backend only + ParentInstanceInfo parentInstance = 8; // used by DTS backend only + map tags = 9; // used by DTS backend only +} + message HistoryEvent { int32 eventId = 1; google.protobuf.Timestamp timestamp = 2; @@ -193,6 +258,14 @@ message HistoryEvent { ContinueAsNewEvent continueAsNew = 20; ExecutionSuspendedEvent executionSuspended = 21; ExecutionResumedEvent executionResumed = 22; + EntityOperationSignaledEvent entityOperationSignaled = 23; + EntityOperationCalledEvent entityOperationCalled = 24; + EntityOperationCompletedEvent entityOperationCompleted = 25; + EntityOperationFailedEvent entityOperationFailed = 26; + EntityLockRequestedEvent entityLockRequested = 27; + EntityLockGrantedEvent entityLockGranted = 28; + EntityUnlockSentEvent entityUnlockSent = 29; + ExecutionRewoundEvent executionRewound = 30; } } @@ -200,6 +273,8 @@ message ScheduleTaskAction { string name = 1; google.protobuf.StringValue version = 2; google.protobuf.StringValue input = 3; + map tags = 4; + TraceContext parentTraceContext = 5; } message CreateSubOrchestrationAction { @@ -207,6 +282,8 @@ message CreateSubOrchestrationAction { string name = 2; google.protobuf.StringValue version = 3; google.protobuf.StringValue input = 4; + TraceContext parentTraceContext = 5; + map tags = 6; } message CreateTimerAction { @@ -226,6 +303,7 @@ message CompleteOrchestrationAction { google.protobuf.StringValue newVersion = 4; repeated HistoryEvent carryoverEvents = 5; TaskFailureDetails failureDetails = 6; + map tags = 7; } message TerminateOrchestrationAction { @@ -234,6 +312,19 @@ message TerminateOrchestrationAction { bool recurse = 3; } +message SendEntityMessageAction { + oneof EntityMessageType { + EntityOperationSignaledEvent entityOperationSignaled = 1; + EntityOperationCalledEvent entityOperationCalled = 2; + EntityLockRequestedEvent entityLockRequested = 3; + EntityUnlockSentEvent entityUnlockSent = 4; + } +} + +message RewindOrchestrationAction { + repeated HistoryEvent newHistory = 1; +} + message OrchestratorAction { int32 id = 1; oneof orchestratorActionType { @@ -243,21 +334,50 @@ message OrchestratorAction { SendEventAction sendEvent = 5; CompleteOrchestrationAction completeOrchestration = 6; TerminateOrchestrationAction terminateOrchestration = 7; + SendEntityMessageAction sendEntityMessage = 8; + RewindOrchestrationAction rewindOrchestration = 9; } } +message OrchestrationTraceContext { + google.protobuf.StringValue spanID = 1; + google.protobuf.Timestamp spanStartTime = 2; +} + message OrchestratorRequest { string instanceId = 1; google.protobuf.StringValue executionId = 2; repeated HistoryEvent pastEvents = 3; repeated HistoryEvent newEvents = 4; OrchestratorEntityParameters entityParameters = 5; + bool requiresHistoryStreaming = 6; + map properties = 7; + + OrchestrationTraceContext orchestrationTraceContext = 8; } message OrchestratorResponse { string instanceId = 1; repeated OrchestratorAction actions = 2; google.protobuf.StringValue customStatus = 3; + string completionToken = 4; + + // The number of work item events that were processed by the orchestrator. + // This field is optional. If not set, the service should assume that the orchestrator processed all events. + google.protobuf.Int32Value numEventsProcessed = 5; + OrchestrationTraceContext orchestrationTraceContext = 6; + + // Whether or not a history is required to complete the original OrchestratorRequest and none was provided. + bool requiresHistory = 7; + + /* Chunking logic has since been deprecated and fields related to it are marked as such */ + + // True if this is a partial (chunked) completion. The backend must keep the work item open until the final chunk (isPartial=false). + bool isPartial = 8 [deprecated=true]; + + // 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];; } message CreateInstanceRequest { @@ -267,17 +387,15 @@ message CreateInstanceRequest { google.protobuf.StringValue input = 4; google.protobuf.Timestamp scheduledStartTimestamp = 5; OrchestrationIdReusePolicy orchestrationIdReusePolicy = 6; + google.protobuf.StringValue executionId = 7; + map tags = 8; + TraceContext parentTraceContext = 9; + google.protobuf.Timestamp requestTime = 10; } message OrchestrationIdReusePolicy { - repeated OrchestrationStatus operationStatus = 1; - CreateOrchestrationAction action = 2; -} - -enum CreateOrchestrationAction { - ERROR = 0; - IGNORE = 1; - TERMINATE = 2; + repeated OrchestrationStatus replaceableStatus = 1; + reserved 2; } message CreateInstanceResponse { @@ -315,6 +433,10 @@ message OrchestrationState { google.protobuf.StringValue output = 9; google.protobuf.StringValue customStatus = 10; TaskFailureDetails failureDetails = 11; + google.protobuf.StringValue executionId = 12; + google.protobuf.Timestamp completedTimestamp = 13; + google.protobuf.StringValue parentInstanceId = 14; + map tags = 15; } message RaiseEventRequest { @@ -375,22 +497,49 @@ message QueryInstancesResponse { google.protobuf.StringValue continuationToken = 2; } +message ListInstanceIdsRequest { + repeated OrchestrationStatus runtimeStatus = 1; + google.protobuf.Timestamp completedTimeFrom = 2; + google.protobuf.Timestamp completedTimeTo = 3; + int32 pageSize = 4; + google.protobuf.StringValue lastInstanceKey = 5; +} + +message ListInstanceIdsResponse { + repeated string instanceIds = 1; + google.protobuf.StringValue lastInstanceKey = 2; +} + message PurgeInstancesRequest { oneof request { string instanceId = 1; PurgeInstanceFilter purgeInstanceFilter = 2; + InstanceBatch instanceBatch = 4; } bool recursive = 3; + // used in the case when an instanceId is specified to determine if the purge request is for an orchestration (as opposed to an entity) + bool isOrchestration = 5; } message PurgeInstanceFilter { google.protobuf.Timestamp createdTimeFrom = 1; google.protobuf.Timestamp createdTimeTo = 2; repeated OrchestrationStatus runtimeStatus = 3; + google.protobuf.Duration timeout = 4; } message PurgeInstancesResponse { int32 deletedInstanceCount = 1; + google.protobuf.BoolValue isComplete = 2; +} + +message RestartInstanceRequest { + string instanceId = 1; + bool restartWithNewInstanceId = 2; +} + +message RestartInstanceResponse { + string instanceId = 1; } message CreateTaskHubRequest { @@ -415,26 +564,25 @@ message SignalEntityRequest { google.protobuf.StringValue input = 3; string requestId = 4; google.protobuf.Timestamp scheduledTime = 5; + TraceContext parentTraceContext = 6; + google.protobuf.Timestamp requestTime = 7; } message SignalEntityResponse { - // no payload + // no payload } -message GetEntityRequest -{ +message GetEntityRequest { string instanceId = 1; bool includeState = 2; } -message GetEntityResponse -{ +message GetEntityResponse { bool exists = 1; EntityMetadata entity = 2; } -message EntityQuery -{ +message EntityQuery { google.protobuf.StringValue instanceIdStartsWith = 1; google.protobuf.Timestamp lastModifiedFrom = 2; google.protobuf.Timestamp lastModifiedTo = 3; @@ -444,19 +592,16 @@ message EntityQuery google.protobuf.StringValue continuationToken = 7; } -message QueryEntitiesRequest -{ +message QueryEntitiesRequest { EntityQuery query = 1; } -message QueryEntitiesResponse -{ +message QueryEntitiesResponse { repeated EntityMetadata entities = 1; google.protobuf.StringValue continuationToken = 2; } -message EntityMetadata -{ +message EntityMetadata { string instanceId = 1; google.protobuf.Timestamp lastModifiedTime = 2; int32 backlogQueueSize = 3; @@ -464,22 +609,19 @@ message EntityMetadata google.protobuf.StringValue serializedState = 5; } -message CleanEntityStorageRequest -{ +message CleanEntityStorageRequest { google.protobuf.StringValue continuationToken = 1; bool removeEmptyEntities = 2; bool releaseOrphanedLocks = 3; } -message CleanEntityStorageResponse -{ +message CleanEntityStorageResponse { google.protobuf.StringValue continuationToken = 1; int32 emptyEntitiesRemoved = 2; int32 orphanedLocksReleased = 3; } -message OrchestratorEntityParameters -{ +message OrchestratorEntityParameters { google.protobuf.Duration entityMessageReorderWindow = 1; } @@ -487,6 +629,7 @@ message EntityBatchRequest { string instanceId = 1; google.protobuf.StringValue entityState = 2; repeated OperationRequest operations = 3; + map properties = 4; } message EntityBatchResult { @@ -494,12 +637,24 @@ message EntityBatchResult { repeated OperationAction actions = 2; google.protobuf.StringValue entityState = 3; TaskFailureDetails failureDetails = 4; + string completionToken = 5; + 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; +} + +message EntityRequest { + string instanceId = 1; + string executionId = 2; + google.protobuf.StringValue entityState = 3; // null if entity does not exist + repeated HistoryEvent operationRequests = 4; } message OperationRequest { string operation = 1; string requestId = 2; google.protobuf.StringValue input = 3; + TraceContext traceContext = 4; } message OperationResult { @@ -509,12 +664,21 @@ message OperationResult { } } +message OperationInfo { + string requestId = 1; + OrchestrationInstance responseDestination = 2; // null for signals +} + message OperationResultSuccess { google.protobuf.StringValue result = 1; + google.protobuf.Timestamp startTimeUtc = 2; + google.protobuf.Timestamp endTimeUtc = 3; } message OperationResultFailure { TaskFailureDetails failureDetails = 1; + google.protobuf.Timestamp startTimeUtc = 2; + google.protobuf.Timestamp endTimeUtc = 3; } message OperationAction { @@ -530,6 +694,8 @@ message SendSignalAction { string name = 2; google.protobuf.StringValue input = 3; google.protobuf.Timestamp scheduledTime = 4; + google.protobuf.Timestamp requestTime = 5; + TraceContext parentTraceContext = 6; } message StartNewOrchestrationAction { @@ -538,6 +704,43 @@ message StartNewOrchestrationAction { google.protobuf.StringValue version = 3; google.protobuf.StringValue input = 4; google.protobuf.Timestamp scheduledTime = 5; + google.protobuf.Timestamp requestTime = 6; + TraceContext parentTraceContext = 7; +} + +message AbandonActivityTaskRequest { + string completionToken = 1; +} + +message AbandonActivityTaskResponse { + // Empty. +} + +message AbandonOrchestrationTaskRequest { + string completionToken = 1; +} + +message AbandonOrchestrationTaskResponse { + // Empty. +} + +message AbandonEntityTaskRequest { + string completionToken = 1; +} + +message AbandonEntityTaskResponse { + // Empty. +} + +message SkipGracefulOrchestrationTerminationsRequest { + InstanceBatch instanceBatch = 1; + google.protobuf.StringValue reason = 2; +} + +message SkipGracefulOrchestrationTerminationsResponse { + // Those instances which could not be terminated because they had locked entities at the time of this termination call, + // are already in a terminal state (completed, failed, terminated, etc.), are not orchestrations, or do not exist (i.e. have been purged) + repeated string unterminatedInstanceIds = 1; } service TaskHubSidecarService { @@ -553,18 +756,21 @@ service TaskHubSidecarService { // Rewinds an orchestration instance to last known good state and replays from there. rpc RewindInstance(RewindInstanceRequest) returns (RewindInstanceResponse); + // Restarts an orchestration instance. + rpc RestartInstance(RestartInstanceRequest) returns (RestartInstanceResponse); + // Waits for an orchestration instance to reach a running or completion state. rpc WaitForInstanceStart(GetInstanceRequest) returns (GetInstanceResponse); - + // Waits for an orchestration instance to reach a completion state (completed, failed, terminated, etc.). rpc WaitForInstanceCompletion(GetInstanceRequest) returns (GetInstanceResponse); // Raises an event to a running orchestration instance. rpc RaiseEvent(RaiseEventRequest) returns (RaiseEventResponse); - + // Terminates a running orchestration instance. rpc TerminateInstance(TerminateRequest) returns (TerminateResponse); - + // Suspends a running orchestration instance. rpc SuspendInstance(SuspendRequest) returns (SuspendResponse); @@ -574,6 +780,9 @@ service TaskHubSidecarService { // rpc DeleteInstance(DeleteInstanceRequest) returns (DeleteInstanceResponse); rpc QueryInstances(QueryInstancesRequest) returns (QueryInstancesResponse); + + rpc ListInstanceIds(ListInstanceIdsRequest) returns (ListInstanceIdsResponse); + rpc PurgeInstances(PurgeInstancesRequest) returns (PurgeInstancesResponse); rpc GetWorkItems(GetWorkItemsRequest) returns (stream WorkItem); @@ -581,6 +790,9 @@ service TaskHubSidecarService { rpc CompleteOrchestratorTask(OrchestratorResponse) returns (CompleteTaskResponse); rpc CompleteEntityTask(EntityBatchResult) returns (CompleteTaskResponse); + // Gets the history of an orchestration instance as a stream of events. + rpc StreamInstanceHistory(StreamInstanceHistoryRequest) returns (stream HistoryChunk); + // Deletes and Creates the necessary resources for the orchestration service and the instance store rpc CreateTaskHub(CreateTaskHubRequest) returns (CreateTaskHubResponse); @@ -598,20 +810,102 @@ service TaskHubSidecarService { // clean entity storage rpc CleanEntityStorage(CleanEntityStorageRequest) returns (CleanEntityStorageResponse); + + // Abandons a single work item + rpc AbandonTaskActivityWorkItem(AbandonActivityTaskRequest) returns (AbandonActivityTaskResponse); + + // Abandon an orchestration work item + rpc AbandonTaskOrchestratorWorkItem(AbandonOrchestrationTaskRequest) returns (AbandonOrchestrationTaskResponse); + + // Abandon an entity work item + rpc AbandonTaskEntityWorkItem(AbandonEntityTaskRequest) returns (AbandonEntityTaskResponse); + + // "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); } message GetWorkItemsRequest { - // No parameters currently + int32 maxConcurrentOrchestrationWorkItems = 1; + int32 maxConcurrentActivityWorkItems = 2; + int32 maxConcurrentEntityWorkItems = 3; + + repeated WorkerCapability capabilities = 10; + WorkItemFilters workItemFilters = 11; +} + +enum WorkerCapability { + WORKER_CAPABILITY_UNSPECIFIED = 0; + + // Indicates that the worker is capable of streaming instance history as a more optimized + // alternative to receiving the full history embedded in the orchestrator work-item. + // When set, the service may return work items without any history events as an optimization. + // It is strongly recommended that all SDKs support this capability. + WORKER_CAPABILITY_HISTORY_STREAMING = 1; + + // Indicates that the worker supports scheduled tasks. + // The service may send schedule-triggered orchestration work items, + // and the worker must handle them, including the scheduledTime field. + WORKER_CAPABILITY_SCHEDULED_TASKS = 2; + + // Signals that the worker can handle large payloads stored externally (e.g., Blob Storage). + // Work items may contain URI references instead of inline data, and the worker must fetch them. + // This avoids message size limits and reduces network overhead. + WORKER_CAPABILITY_LARGE_PAYLOADS = 3; +} + +message WorkItemFilters { + repeated OrchestrationFilter orchestrations = 1; + repeated ActivityFilter activities = 2; + repeated EntityFilter entities = 3; +} + +message OrchestrationFilter { + string name = 1; + repeated string versions = 2; +} + +message ActivityFilter { + string name = 1; + repeated string versions = 2; +} + +message EntityFilter { + string name = 1; } message WorkItem { oneof request { OrchestratorRequest orchestratorRequest = 1; ActivityRequest activityRequest = 2; - EntityBatchRequest entityRequest = 3; + EntityBatchRequest entityRequest = 3; // (older) used by orchestration services implementations + HealthPing healthPing = 4; + EntityRequest entityRequestV2 = 5; // (newer) used by backend service implementations } + string completionToken = 10; } message CompleteTaskResponse { // No payload -} \ No newline at end of file +} + +message HealthPing { + // No payload +} + +message StreamInstanceHistoryRequest { + string instanceId = 1; + google.protobuf.StringValue executionId = 2; + + // When set to true, the service may return a more optimized response suitable for workers. + bool forWorkItemProcessing = 3; +} + +message HistoryChunk { + repeated HistoryEvent events = 1; +} + +message InstanceBatch { + // A maximum of 500 instance IDs can be provided in this list. + repeated string instanceIds = 1; +}