From 86338c4c039cc06d5377995a13a603da82618558 Mon Sep 17 00:00:00 2001 From: kaibocai <89094811+kaibocai@users.noreply.github.com> Date: Mon, 11 Dec 2023 11:56:46 -0600 Subject: [PATCH] Support reusing orchestration id (#46) * support reuse orchestration id * add test * fix tests * implement new design * clean up * refactory * minor updates * minor updates * refactor * improve tests * correct variable name * refactory more refactory refactory * minor refactory * refactor option pattern * formatting - clean up * update changelog.md * clean up --- .github/workflows/pr-validation.yml | 21 +- CHANGELOG.md | 6 + api/orchestration.go | 22 +- backend/backend.go | 14 +- backend/executor.go | 2 +- backend/sqlite/sqlite.go | 184 +- internal/protos/orchestrator_service.pb.go | 1846 +++++++++-------- .../protos/orchestrator_service_grpc.pb.go | 18 +- submodules/durabletask-protobuf | 2 +- tests/backend_test.go | 3 +- tests/grpc/grpc_test.go | 137 ++ tests/mocks/Backend.go | 247 ++- tests/mocks/Executor.go | 51 +- tests/mocks/TaskWorker.go | 37 +- 14 files changed, 1616 insertions(+), 974 deletions(-) diff --git a/.github/workflows/pr-validation.yml b/.github/workflows/pr-validation.yml index e022ab8..98d8a59 100644 --- a/.github/workflows/pr-validation.yml +++ b/.github/workflows/pr-validation.yml @@ -13,6 +13,12 @@ on: # Allows you to run this workflow manually from the Actions tab workflow_dispatch: +env: + # Configure protoc and go grpc plugin + PROTOC_VERSION: "25.x" + PROTOC_GEN_GO: "v1.28" + PROTOC_GEN_GO_GRPC: "v1.2" + # A workflow run is made up of one or more jobs that can run sequentially or in parallel jobs: # This workflow contains a single job called "build" @@ -36,6 +42,19 @@ jobs: - name: Install dependencies run: go get . - + + - name: Install Protoc + uses: arduino/setup-protoc@v2 + with: + version: ${{ env.PROTOC_VERSION }} + + - name: Installing protoc-gen-go + run: | + go install google.golang.org/protobuf/cmd/protoc-gen-go@$PROTOC_GEN_GO + go install google.golang.org/grpc/cmd/protoc-gen-go-grpc@$PROTOC_GEN_GO_GRPC + + - name: Generate grpc code + run: protoc --go_out=. --go-grpc_out=. -I ./submodules/durabletask-protobuf/protos orchestrator_service.proto + - name: Run integration tests run: go test ./tests/... -coverpkg ./api,./task,./client,./backend/...,./internal/helpers diff --git a/CHANGELOG.md b/CHANGELOG.md index 62e04fc..f2f399b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [Unreleased] + +### Changed + +- Support reusing orchestration id ([#46](https://github.com/microsoft/durabletask-go/pull/46)) - contributed by [@kaibocai](https://github.com/kaibocai) + ## [v0.3.1] - 2023-09-08 ### Fixed diff --git a/api/orchestration.go b/api/orchestration.go index 1250644..2e73662 100644 --- a/api/orchestration.go +++ b/api/orchestration.go @@ -13,10 +13,12 @@ import ( ) var ( - ErrInstanceNotFound = errors.New("no such instance exists") - ErrNotStarted = errors.New("orchestration has not started") - ErrNotCompleted = errors.New("orchestration has not yet completed") - ErrNoFailures = errors.New("orchestration did not report failure details") + ErrInstanceNotFound = errors.New("no such instance exists") + ErrNotStarted = errors.New("orchestration has not started") + ErrNotCompleted = errors.New("orchestration has not yet completed") + ErrNoFailures = errors.New("orchestration did not report failure details") + ErrDuplicateInstance = errors.New("orchestration instance already exists") + ErrIgnoreInstance = errors.New("ignore creating orchestration instance") EmptyInstanceID = InstanceID("") ) @@ -57,6 +59,18 @@ func WithInstanceID(id InstanceID) NewOrchestrationOptions { } } +// WithOrchestrationIdReusePolicy configures Orchestration ID reuse policy. +func WithOrchestrationIdReusePolicy(policy *protos.OrchestrationIdReusePolicy) NewOrchestrationOptions { + return func(req *protos.CreateInstanceRequest) error { + // initialize CreateInstanceOption + req.OrchestrationIdReusePolicy = &protos.OrchestrationIdReusePolicy{ + Action: policy.Action, + OperationStatus: policy.OperationStatus, + } + return nil + } +} + // WithInput configures an input for the orchestration. The specified input must be serializable. func WithInput(input any) NewOrchestrationOptions { return func(req *protos.CreateInstanceRequest) error { diff --git a/backend/backend.go b/backend/backend.go index 8edf583..adcd7b0 100644 --- a/backend/backend.go +++ b/backend/backend.go @@ -23,6 +23,18 @@ type ( TaskFailureDetails = protos.TaskFailureDetails ) +type OrchestrationIdReusePolicyOptions func(*protos.OrchestrationIdReusePolicy) error + +func WithOrchestrationIdReusePolicy(policy *protos.OrchestrationIdReusePolicy) OrchestrationIdReusePolicyOptions { + return func(po *protos.OrchestrationIdReusePolicy) error { + if policy != nil { + po.Action = policy.Action + po.OperationStatus = policy.OperationStatus + } + return nil + } +} + type Backend interface { // CreateTaskHub creates a new task hub for the current backend. Task hub creation must be idempotent. // @@ -43,7 +55,7 @@ type Backend interface { // CreateOrchestrationInstance creates a new orchestration instance with a history event that // wraps a ExecutionStarted event. - CreateOrchestrationInstance(context.Context, *HistoryEvent) error + CreateOrchestrationInstance(context.Context, *HistoryEvent, ...OrchestrationIdReusePolicyOptions) error // AddNewEvent adds a new orchestration event to the specified orchestration instance. AddNewOrchestrationEvent(context.Context, api.InstanceID, *HistoryEvent) error diff --git a/backend/executor.go b/backend/executor.go index 4718663..7d7f573 100644 --- a/backend/executor.go +++ b/backend/executor.go @@ -311,7 +311,7 @@ func (g *grpcExecutor) StartInstance(ctx context.Context, req *protos.CreateInst defer span.End() e := helpers.NewExecutionStartedEvent(req.Name, instanceID, req.Input, nil, helpers.TraceContextFromSpan(span)) - if err := g.backend.CreateOrchestrationInstance(ctx, e); err != nil { + if err := g.backend.CreateOrchestrationInstance(ctx, e, WithOrchestrationIdReusePolicy(req.OrchestrationIdReusePolicy)); err != nil { return nil, err } diff --git a/backend/sqlite/sqlite.go b/backend/sqlite/sqlite.go index 8251116..5699c02 100644 --- a/backend/sqlite/sqlite.go +++ b/backend/sqlite/sqlite.go @@ -79,6 +79,9 @@ func NewSqliteBackend(opts *SqliteOptions, logger backend.Logger) backend.Backen be.dsn = opts.FilePath } + // used for local debug + // be.dsn = "file:file.sqlite" + return be } @@ -333,8 +336,7 @@ func (be *sqliteBackend) CompleteOrchestrationWorkItem(ctx context.Context, wi * for _, msg := range wi.State.PendingMessages() { if es := msg.HistoryEvent.GetExecutionStarted(); es != nil { // Need to insert a new row into the DB - var instanceID string - if err := be.createOrchestrationInstanceInternal(ctx, msg.HistoryEvent, tx, &instanceID); err != nil { + if _, err := be.createOrchestrationInstanceInternal(ctx, msg.HistoryEvent, tx); err != nil { if err == backend.ErrDuplicateEvent { be.logger.Warnf( "%v: dropping sub-orchestration creation event because an instance with the target ID (%v) already exists.", @@ -390,7 +392,7 @@ func (be *sqliteBackend) CompleteOrchestrationWorkItem(ctx context.Context, wi * } // CreateOrchestrationInstance implements backend.Backend -func (be *sqliteBackend) CreateOrchestrationInstance(ctx context.Context, e *backend.HistoryEvent) error { +func (be *sqliteBackend) CreateOrchestrationInstance(ctx context.Context, e *backend.HistoryEvent, opts ...backend.OrchestrationIdReusePolicyOptions) error { if err := be.ensureDB(); err != nil { return err } @@ -402,7 +404,10 @@ func (be *sqliteBackend) CreateOrchestrationInstance(ctx context.Context, e *bac defer tx.Rollback() var instanceID string - if err := be.createOrchestrationInstanceInternal(ctx, e, tx, &instanceID); err != nil { + if instanceID, err = be.createOrchestrationInstanceInternal(ctx, e, tx, opts...); errors.Is(err, api.ErrIgnoreInstance) { + // choose to ignore, do nothing + return nil + } else if err != nil { return err } @@ -429,19 +434,45 @@ func (be *sqliteBackend) CreateOrchestrationInstance(ctx context.Context, e *bac return nil } -func (be *sqliteBackend) createOrchestrationInstanceInternal(ctx context.Context, e *backend.HistoryEvent, tx *sql.Tx, instanceID *string) error { +func buildStatusSet(statuses []protos.OrchestrationStatus) map[protos.OrchestrationStatus]struct{} { + statusSet := make(map[protos.OrchestrationStatus]struct{}) + for _, status := range statuses { + statusSet[status] = struct{}{} + } + return statusSet +} + +func (be *sqliteBackend) createOrchestrationInstanceInternal(ctx context.Context, e *backend.HistoryEvent, tx *sql.Tx, opts ...backend.OrchestrationIdReusePolicyOptions) (string, error) { if e == nil { - return errors.New("HistoryEvent must be non-nil") + return "", errors.New("HistoryEvent must be non-nil") } else if e.Timestamp == nil { - return errors.New("HistoryEvent must have a non-nil timestamp") + return "", errors.New("HistoryEvent must have a non-nil timestamp") } startEvent := e.GetExecutionStarted() if startEvent == nil { - return errors.New("HistoryEvent must be an ExecutionStartedEvent") + return "", errors.New("HistoryEvent must be an ExecutionStartedEvent") + } + instanceID := startEvent.OrchestrationInstance.InstanceId + + policy := &protos.OrchestrationIdReusePolicy{} + + for _, opt := range opts { + opt(policy) } - // TODO: Support for re-using orchestration instance IDs + rows, err := insertOrIgnoreInstanceTableInternal(ctx, tx, e, startEvent) + if err != nil { + return "", err + } + + if rows <= 0 { + return instanceID, be.handleInstanceExists(ctx, tx, startEvent, policy, e) + } + return instanceID, nil +} + +func insertOrIgnoreInstanceTableInternal(ctx context.Context, tx *sql.Tx, e *backend.HistoryEvent, startEvent *protos.ExecutionStartedEvent) (int64, error) { res, err := tx.ExecContext( ctx, `INSERT OR IGNORE INTO [Instances] ( @@ -462,19 +493,114 @@ func (be *sqliteBackend) createOrchestrationInstanceInternal(ctx context.Context e.Timestamp.AsTime(), ) if err != nil { - return fmt.Errorf("failed to insert into [Instances] table: %w", err) + return -1, fmt.Errorf("failed to insert into [Instances] table: %w", err) } rows, err := res.RowsAffected() if err != nil { - return fmt.Errorf("failed to count the rows affected: %w", err) + return -1, fmt.Errorf("failed to count the rows affected: %w", err) } + return rows, nil; +} - if rows <= 0 { - return backend.ErrDuplicateEvent +func (be *sqliteBackend) handleInstanceExists(ctx context.Context, tx *sql.Tx, startEvent *protos.ExecutionStartedEvent, policy *protos.OrchestrationIdReusePolicy, e *backend.HistoryEvent) error { + // query RuntimeStatus for the existing instance + queryRow := tx.QueryRowContext( + ctx, + `SELECT [RuntimeStatus] FROM Instances WHERE [InstanceID] = ?`, + startEvent.OrchestrationInstance.InstanceId, + ) + var runtimeStatus *string + err := queryRow.Scan(&runtimeStatus) + if errors.Is(err, sql.ErrNoRows) { + return api.ErrInstanceNotFound + } else if err != nil { + return fmt.Errorf("failed to scan the Instances table result: %w", err) + } + + // instance already exists + targetStatusValues := buildStatusSet(policy.OperationStatus) + // status not match, return instance duplicate error + if _, ok := targetStatusValues[helpers.FromRuntimeStatusString(*runtimeStatus)]; !ok { + 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 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 + } + // default behavior + return api.ErrDuplicateInstance +} + +func (be *sqliteBackend) cleanupOrchestrationStateInternal(ctx context.Context, tx *sql.Tx, id api.InstanceID, onlyIfCompleted bool) error { + row := tx.QueryRowContext(ctx, "SELECT 1 FROM Instances WHERE [InstanceID] = ?", string(id)) + if err := row.Err(); err != nil { + return fmt.Errorf("failed to query for instance existence: %w", err) + } + + var unused int + if err := row.Scan(&unused); errors.Is(err, sql.ErrNoRows) { + return api.ErrInstanceNotFound + } else if err != nil { + return fmt.Errorf("failed to scan instance existence: %w", err) } - *instanceID = startEvent.OrchestrationInstance.InstanceId + if onlyIfCompleted { + // purge orchestration in ['COMPLETED', 'FAILED', 'TERMINATED'] + dbResult, err := tx.ExecContext(ctx, "DELETE FROM Instances WHERE [InstanceID] = ? AND [RuntimeStatus] IN ('COMPLETED', 'FAILED', 'TERMINATED')", string(id)) + if err != nil { + return fmt.Errorf("failed to delete from the Instances table: %w", err) + } + + rowsAffected, err := dbResult.RowsAffected() + if err != nil { + return fmt.Errorf("failed to get rows affected in Instances delete operation: %w", err) + } + if rowsAffected == 0 { + return api.ErrNotCompleted + } + } else { + // clean up orchestration in all [RuntimeStatus] + _, err := tx.ExecContext(ctx, "DELETE FROM Instances WHERE [InstanceID] = ?", string(id)) + if err != nil { + return fmt.Errorf("failed to delete from the Instances table: %w", err) + } + } + + _, err := tx.ExecContext(ctx, "DELETE FROM History WHERE [InstanceID] = ?", string(id)) + if err != nil { + return fmt.Errorf("failed to delete from History table: %w", err) + } + + _, err = tx.ExecContext(ctx, "DELETE FROM NewEvents WHERE [InstanceID] = ?", string(id)) + if err != nil { + return fmt.Errorf("failed to delete from NewEvents table: %w", err) + } + + _, err = tx.ExecContext(ctx, "DELETE FROM NewTasks WHERE [InstanceID] = ?", string(id)) + if err != nil { + return fmt.Errorf("failed to delete from NewTasks table: %w", err) + } return nil } @@ -837,34 +963,8 @@ func (be *sqliteBackend) PurgeOrchestrationState(ctx context.Context, id api.Ins } defer tx.Rollback() - row := tx.QueryRowContext(ctx, "SELECT 1 FROM Instances WHERE [InstanceID] = ?", string(id)) - if err := row.Err(); err != nil { - return fmt.Errorf("failed to query for instance existence: %w", err) - } - - var unused int - if err := row.Scan(&unused); err == sql.ErrNoRows { - return api.ErrInstanceNotFound - } else if err != nil { - return fmt.Errorf("failed to scan instance existence: %w", err) - } - - dbResult, err := tx.ExecContext(ctx, "DELETE FROM Instances WHERE [InstanceID] = ? AND [RuntimeStatus] IN ('COMPLETED', 'FAILED', 'TERMINATED')", string(id)) - if err != nil { - return fmt.Errorf("failed to delete from the Instances table: %w", err) - } - - rowsAffected, err := dbResult.RowsAffected() - if err != nil { - return fmt.Errorf("failed to get rows affected in Instances delete operation: %w", err) - } - if rowsAffected == 0 { - return api.ErrNotCompleted - } - - _, err = tx.ExecContext(ctx, "DELETE FROM History WHERE [InstanceID] = ?", string(id)) - if err != nil { - return fmt.Errorf("failed to delete from History table: %w", err) + if err := be.cleanupOrchestrationStateInternal(ctx, tx, id, true); err != nil { + return err } if err = tx.Commit(); err != nil { diff --git a/internal/protos/orchestrator_service.pb.go b/internal/protos/orchestrator_service.pb.go index 9bb5d40..4bae4a2 100644 --- a/internal/protos/orchestrator_service.pb.go +++ b/internal/protos/orchestrator_service.pb.go @@ -4,18 +4,18 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.28.1 -// protoc v3.21.12 +// protoc v3.12.4 // source: orchestrator_service.proto package protos import ( + duration "github.com/golang/protobuf/ptypes/duration" + empty "github.com/golang/protobuf/ptypes/empty" + 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" - durationpb "google.golang.org/protobuf/types/known/durationpb" - emptypb "google.golang.org/protobuf/types/known/emptypb" - timestamppb "google.golang.org/protobuf/types/known/timestamppb" - wrapperspb "google.golang.org/protobuf/types/known/wrapperspb" reflect "reflect" sync "sync" ) @@ -91,13 +91,62 @@ func (OrchestrationStatus) EnumDescriptor() ([]byte, []int) { return file_orchestrator_service_proto_rawDescGZIP(), []int{0} } +type CreateOrchestrationAction int32 + +const ( + CreateOrchestrationAction_ERROR CreateOrchestrationAction = 0 + CreateOrchestrationAction_IGNORE CreateOrchestrationAction = 1 + CreateOrchestrationAction_TERMINATE CreateOrchestrationAction = 2 +) + +// Enum value maps for CreateOrchestrationAction. +var ( + CreateOrchestrationAction_name = map[int32]string{ + 0: "ERROR", + 1: "IGNORE", + 2: "TERMINATE", + } + CreateOrchestrationAction_value = map[string]int32{ + "ERROR": 0, + "IGNORE": 1, + "TERMINATE": 2, + } +) + +func (x CreateOrchestrationAction) Enum() *CreateOrchestrationAction { + p := new(CreateOrchestrationAction) + *p = x + return p +} + +func (x CreateOrchestrationAction) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (CreateOrchestrationAction) Descriptor() protoreflect.EnumDescriptor { + return file_orchestrator_service_proto_enumTypes[1].Descriptor() +} + +func (CreateOrchestrationAction) Type() protoreflect.EnumType { + return &file_orchestrator_service_proto_enumTypes[1] +} + +func (x CreateOrchestrationAction) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use CreateOrchestrationAction.Descriptor instead. +func (CreateOrchestrationAction) EnumDescriptor() ([]byte, []int) { + return file_orchestrator_service_proto_rawDescGZIP(), []int{1} +} + type OrchestrationInstance struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - InstanceId string `protobuf:"bytes,1,opt,name=instanceId,proto3" json:"instanceId,omitempty"` - ExecutionId *wrapperspb.StringValue `protobuf:"bytes,2,opt,name=executionId,proto3" json:"executionId,omitempty"` + 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"` } func (x *OrchestrationInstance) Reset() { @@ -139,7 +188,7 @@ func (x *OrchestrationInstance) GetInstanceId() string { return "" } -func (x *OrchestrationInstance) GetExecutionId() *wrapperspb.StringValue { +func (x *OrchestrationInstance) GetExecutionId() *wrappers.StringValue { if x != nil { return x.ExecutionId } @@ -151,11 +200,11 @@ type ActivityRequest struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` - Version *wrapperspb.StringValue `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"` - Input *wrapperspb.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"` + 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"` } func (x *ActivityRequest) Reset() { @@ -197,14 +246,14 @@ func (x *ActivityRequest) GetName() string { return "" } -func (x *ActivityRequest) GetVersion() *wrapperspb.StringValue { +func (x *ActivityRequest) GetVersion() *wrappers.StringValue { if x != nil { return x.Version } return nil } -func (x *ActivityRequest) GetInput() *wrapperspb.StringValue { +func (x *ActivityRequest) GetInput() *wrappers.StringValue { if x != nil { return x.Input } @@ -230,10 +279,10 @@ type ActivityResponse struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - 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 *wrapperspb.StringValue `protobuf:"bytes,3,opt,name=result,proto3" json:"result,omitempty"` - FailureDetails *TaskFailureDetails `protobuf:"bytes,4,opt,name=failureDetails,proto3" json:"failureDetails,omitempty"` + 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"` } func (x *ActivityResponse) Reset() { @@ -282,7 +331,7 @@ func (x *ActivityResponse) GetTaskId() int32 { return 0 } -func (x *ActivityResponse) GetResult() *wrapperspb.StringValue { +func (x *ActivityResponse) GetResult() *wrappers.StringValue { if x != nil { return x.Result } @@ -301,11 +350,11 @@ type TaskFailureDetails struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - 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 *wrapperspb.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"` + 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"` } func (x *TaskFailureDetails) Reset() { @@ -354,7 +403,7 @@ func (x *TaskFailureDetails) GetErrorMessage() string { return "" } -func (x *TaskFailureDetails) GetStackTrace() *wrapperspb.StringValue { +func (x *TaskFailureDetails) GetStackTrace() *wrappers.StringValue { if x != nil { return x.StackTrace } @@ -380,10 +429,10 @@ type ParentInstanceInfo struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - TaskScheduledId int32 `protobuf:"varint,1,opt,name=taskScheduledId,proto3" json:"taskScheduledId,omitempty"` - Name *wrapperspb.StringValue `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` - Version *wrapperspb.StringValue `protobuf:"bytes,3,opt,name=version,proto3" json:"version,omitempty"` - OrchestrationInstance *OrchestrationInstance `protobuf:"bytes,4,opt,name=orchestrationInstance,proto3" json:"orchestrationInstance,omitempty"` + 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"` } func (x *ParentInstanceInfo) Reset() { @@ -425,14 +474,14 @@ func (x *ParentInstanceInfo) GetTaskScheduledId() int32 { return 0 } -func (x *ParentInstanceInfo) GetName() *wrapperspb.StringValue { +func (x *ParentInstanceInfo) GetName() *wrappers.StringValue { if x != nil { return x.Name } return nil } -func (x *ParentInstanceInfo) GetVersion() *wrapperspb.StringValue { +func (x *ParentInstanceInfo) GetVersion() *wrappers.StringValue { if x != nil { return x.Version } @@ -453,8 +502,8 @@ type TraceContext struct { TraceParent string `protobuf:"bytes,1,opt,name=traceParent,proto3" json:"traceParent,omitempty"` // Deprecated: Do not use. - SpanID string `protobuf:"bytes,2,opt,name=spanID,proto3" json:"spanID,omitempty"` - TraceState *wrapperspb.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"` } func (x *TraceContext) Reset() { @@ -504,7 +553,7 @@ func (x *TraceContext) GetSpanID() string { return "" } -func (x *TraceContext) GetTraceState() *wrapperspb.StringValue { +func (x *TraceContext) GetTraceState() *wrappers.StringValue { if x != nil { return x.TraceState } @@ -516,14 +565,14 @@ type ExecutionStartedEvent struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` - Version *wrapperspb.StringValue `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"` - Input *wrapperspb.StringValue `protobuf:"bytes,3,opt,name=input,proto3" json:"input,omitempty"` - OrchestrationInstance *OrchestrationInstance `protobuf:"bytes,4,opt,name=orchestrationInstance,proto3" json:"orchestrationInstance,omitempty"` - ParentInstance *ParentInstanceInfo `protobuf:"bytes,5,opt,name=parentInstance,proto3" json:"parentInstance,omitempty"` - ScheduledStartTimestamp *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=scheduledStartTimestamp,proto3" json:"scheduledStartTimestamp,omitempty"` - ParentTraceContext *TraceContext `protobuf:"bytes,7,opt,name=parentTraceContext,proto3" json:"parentTraceContext,omitempty"` - OrchestrationSpanID *wrapperspb.StringValue `protobuf:"bytes,8,opt,name=orchestrationSpanID,proto3" json:"orchestrationSpanID,omitempty"` + 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"` + ParentInstance *ParentInstanceInfo `protobuf:"bytes,5,opt,name=parentInstance,proto3" json:"parentInstance,omitempty"` + 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"` } func (x *ExecutionStartedEvent) Reset() { @@ -565,14 +614,14 @@ func (x *ExecutionStartedEvent) GetName() string { return "" } -func (x *ExecutionStartedEvent) GetVersion() *wrapperspb.StringValue { +func (x *ExecutionStartedEvent) GetVersion() *wrappers.StringValue { if x != nil { return x.Version } return nil } -func (x *ExecutionStartedEvent) GetInput() *wrapperspb.StringValue { +func (x *ExecutionStartedEvent) GetInput() *wrappers.StringValue { if x != nil { return x.Input } @@ -593,7 +642,7 @@ func (x *ExecutionStartedEvent) GetParentInstance() *ParentInstanceInfo { return nil } -func (x *ExecutionStartedEvent) GetScheduledStartTimestamp() *timestamppb.Timestamp { +func (x *ExecutionStartedEvent) GetScheduledStartTimestamp() *timestamp.Timestamp { if x != nil { return x.ScheduledStartTimestamp } @@ -607,7 +656,7 @@ func (x *ExecutionStartedEvent) GetParentTraceContext() *TraceContext { return nil } -func (x *ExecutionStartedEvent) GetOrchestrationSpanID() *wrapperspb.StringValue { +func (x *ExecutionStartedEvent) GetOrchestrationSpanID() *wrappers.StringValue { if x != nil { return x.OrchestrationSpanID } @@ -619,9 +668,9 @@ type ExecutionCompletedEvent struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - OrchestrationStatus OrchestrationStatus `protobuf:"varint,1,opt,name=orchestrationStatus,proto3,enum=OrchestrationStatus" json:"orchestrationStatus,omitempty"` - Result *wrapperspb.StringValue `protobuf:"bytes,2,opt,name=result,proto3" json:"result,omitempty"` - FailureDetails *TaskFailureDetails `protobuf:"bytes,3,opt,name=failureDetails,proto3" json:"failureDetails,omitempty"` + 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"` } func (x *ExecutionCompletedEvent) Reset() { @@ -663,7 +712,7 @@ func (x *ExecutionCompletedEvent) GetOrchestrationStatus() OrchestrationStatus { return OrchestrationStatus_ORCHESTRATION_STATUS_RUNNING } -func (x *ExecutionCompletedEvent) GetResult() *wrapperspb.StringValue { +func (x *ExecutionCompletedEvent) GetResult() *wrappers.StringValue { if x != nil { return x.Result } @@ -682,8 +731,8 @@ type ExecutionTerminatedEvent struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Input *wrapperspb.StringValue `protobuf:"bytes,1,opt,name=input,proto3" json:"input,omitempty"` - Recurse bool `protobuf:"varint,2,opt,name=recurse,proto3" json:"recurse,omitempty"` + 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"` } func (x *ExecutionTerminatedEvent) Reset() { @@ -718,7 +767,7 @@ func (*ExecutionTerminatedEvent) Descriptor() ([]byte, []int) { return file_orchestrator_service_proto_rawDescGZIP(), []int{8} } -func (x *ExecutionTerminatedEvent) GetInput() *wrapperspb.StringValue { +func (x *ExecutionTerminatedEvent) GetInput() *wrappers.StringValue { if x != nil { return x.Input } @@ -737,10 +786,10 @@ type TaskScheduledEvent struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` - Version *wrapperspb.StringValue `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"` - Input *wrapperspb.StringValue `protobuf:"bytes,3,opt,name=input,proto3" json:"input,omitempty"` - ParentTraceContext *TraceContext `protobuf:"bytes,4,opt,name=parentTraceContext,proto3" json:"parentTraceContext,omitempty"` + 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"` } func (x *TaskScheduledEvent) Reset() { @@ -782,14 +831,14 @@ func (x *TaskScheduledEvent) GetName() string { return "" } -func (x *TaskScheduledEvent) GetVersion() *wrapperspb.StringValue { +func (x *TaskScheduledEvent) GetVersion() *wrappers.StringValue { if x != nil { return x.Version } return nil } -func (x *TaskScheduledEvent) GetInput() *wrapperspb.StringValue { +func (x *TaskScheduledEvent) GetInput() *wrappers.StringValue { if x != nil { return x.Input } @@ -808,8 +857,8 @@ type TaskCompletedEvent struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - TaskScheduledId int32 `protobuf:"varint,1,opt,name=taskScheduledId,proto3" json:"taskScheduledId,omitempty"` - Result *wrapperspb.StringValue `protobuf:"bytes,2,opt,name=result,proto3" json:"result,omitempty"` + 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"` } func (x *TaskCompletedEvent) Reset() { @@ -851,7 +900,7 @@ func (x *TaskCompletedEvent) GetTaskScheduledId() int32 { return 0 } -func (x *TaskCompletedEvent) GetResult() *wrapperspb.StringValue { +func (x *TaskCompletedEvent) GetResult() *wrappers.StringValue { if x != nil { return x.Result } @@ -918,11 +967,11 @@ type SubOrchestrationInstanceCreatedEvent struct { 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 *wrapperspb.StringValue `protobuf:"bytes,3,opt,name=version,proto3" json:"version,omitempty"` - Input *wrapperspb.StringValue `protobuf:"bytes,4,opt,name=input,proto3" json:"input,omitempty"` - ParentTraceContext *TraceContext `protobuf:"bytes,5,opt,name=parentTraceContext,proto3" json:"parentTraceContext,omitempty"` + 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"` } func (x *SubOrchestrationInstanceCreatedEvent) Reset() { @@ -971,14 +1020,14 @@ func (x *SubOrchestrationInstanceCreatedEvent) GetName() string { return "" } -func (x *SubOrchestrationInstanceCreatedEvent) GetVersion() *wrapperspb.StringValue { +func (x *SubOrchestrationInstanceCreatedEvent) GetVersion() *wrappers.StringValue { if x != nil { return x.Version } return nil } -func (x *SubOrchestrationInstanceCreatedEvent) GetInput() *wrapperspb.StringValue { +func (x *SubOrchestrationInstanceCreatedEvent) GetInput() *wrappers.StringValue { if x != nil { return x.Input } @@ -997,8 +1046,8 @@ type SubOrchestrationInstanceCompletedEvent struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - TaskScheduledId int32 `protobuf:"varint,1,opt,name=taskScheduledId,proto3" json:"taskScheduledId,omitempty"` - Result *wrapperspb.StringValue `protobuf:"bytes,2,opt,name=result,proto3" json:"result,omitempty"` + 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"` } func (x *SubOrchestrationInstanceCompletedEvent) Reset() { @@ -1040,7 +1089,7 @@ func (x *SubOrchestrationInstanceCompletedEvent) GetTaskScheduledId() int32 { return 0 } -func (x *SubOrchestrationInstanceCompletedEvent) GetResult() *wrapperspb.StringValue { +func (x *SubOrchestrationInstanceCompletedEvent) GetResult() *wrappers.StringValue { if x != nil { return x.Result } @@ -1107,7 +1156,7 @@ type TimerCreatedEvent struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - FireAt *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=fireAt,proto3" json:"fireAt,omitempty"` + FireAt *timestamp.Timestamp `protobuf:"bytes,1,opt,name=fireAt,proto3" json:"fireAt,omitempty"` } func (x *TimerCreatedEvent) Reset() { @@ -1142,7 +1191,7 @@ func (*TimerCreatedEvent) Descriptor() ([]byte, []int) { return file_orchestrator_service_proto_rawDescGZIP(), []int{15} } -func (x *TimerCreatedEvent) GetFireAt() *timestamppb.Timestamp { +func (x *TimerCreatedEvent) GetFireAt() *timestamp.Timestamp { if x != nil { return x.FireAt } @@ -1154,8 +1203,8 @@ type TimerFiredEvent struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - FireAt *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=fireAt,proto3" json:"fireAt,omitempty"` - TimerId int32 `protobuf:"varint,2,opt,name=timerId,proto3" json:"timerId,omitempty"` + 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"` } func (x *TimerFiredEvent) Reset() { @@ -1190,7 +1239,7 @@ func (*TimerFiredEvent) Descriptor() ([]byte, []int) { return file_orchestrator_service_proto_rawDescGZIP(), []int{16} } -func (x *TimerFiredEvent) GetFireAt() *timestamppb.Timestamp { +func (x *TimerFiredEvent) GetFireAt() *timestamp.Timestamp { if x != nil { return x.FireAt } @@ -1285,9 +1334,9 @@ type EventSentEvent struct { 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 *wrapperspb.StringValue `protobuf:"bytes,3,opt,name=input,proto3" json:"input,omitempty"` + 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"` } func (x *EventSentEvent) Reset() { @@ -1336,7 +1385,7 @@ func (x *EventSentEvent) GetName() string { return "" } -func (x *EventSentEvent) GetInput() *wrapperspb.StringValue { +func (x *EventSentEvent) GetInput() *wrappers.StringValue { if x != nil { return x.Input } @@ -1348,8 +1397,8 @@ type EventRaisedEvent struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` - Input *wrapperspb.StringValue `protobuf:"bytes,2,opt,name=input,proto3" json:"input,omitempty"` + 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"` } func (x *EventRaisedEvent) Reset() { @@ -1391,7 +1440,7 @@ func (x *EventRaisedEvent) GetName() string { return "" } -func (x *EventRaisedEvent) GetInput() *wrapperspb.StringValue { +func (x *EventRaisedEvent) GetInput() *wrappers.StringValue { if x != nil { return x.Input } @@ -1497,7 +1546,7 @@ type ContinueAsNewEvent struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Input *wrapperspb.StringValue `protobuf:"bytes,1,opt,name=input,proto3" json:"input,omitempty"` + Input *wrappers.StringValue `protobuf:"bytes,1,opt,name=input,proto3" json:"input,omitempty"` } func (x *ContinueAsNewEvent) Reset() { @@ -1532,7 +1581,7 @@ func (*ContinueAsNewEvent) Descriptor() ([]byte, []int) { return file_orchestrator_service_proto_rawDescGZIP(), []int{23} } -func (x *ContinueAsNewEvent) GetInput() *wrapperspb.StringValue { +func (x *ContinueAsNewEvent) GetInput() *wrappers.StringValue { if x != nil { return x.Input } @@ -1544,7 +1593,7 @@ type ExecutionSuspendedEvent struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Input *wrapperspb.StringValue `protobuf:"bytes,1,opt,name=input,proto3" json:"input,omitempty"` + Input *wrappers.StringValue `protobuf:"bytes,1,opt,name=input,proto3" json:"input,omitempty"` } func (x *ExecutionSuspendedEvent) Reset() { @@ -1579,7 +1628,7 @@ func (*ExecutionSuspendedEvent) Descriptor() ([]byte, []int) { return file_orchestrator_service_proto_rawDescGZIP(), []int{24} } -func (x *ExecutionSuspendedEvent) GetInput() *wrapperspb.StringValue { +func (x *ExecutionSuspendedEvent) GetInput() *wrappers.StringValue { if x != nil { return x.Input } @@ -1591,7 +1640,7 @@ type ExecutionResumedEvent struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Input *wrapperspb.StringValue `protobuf:"bytes,1,opt,name=input,proto3" json:"input,omitempty"` + Input *wrappers.StringValue `protobuf:"bytes,1,opt,name=input,proto3" json:"input,omitempty"` } func (x *ExecutionResumedEvent) Reset() { @@ -1626,7 +1675,7 @@ func (*ExecutionResumedEvent) Descriptor() ([]byte, []int) { return file_orchestrator_service_proto_rawDescGZIP(), []int{25} } -func (x *ExecutionResumedEvent) GetInput() *wrapperspb.StringValue { +func (x *ExecutionResumedEvent) GetInput() *wrappers.StringValue { if x != nil { return x.Input } @@ -1638,8 +1687,8 @@ type HistoryEvent struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - EventId int32 `protobuf:"varint,1,opt,name=eventId,proto3" json:"eventId,omitempty"` - Timestamp *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=timestamp,proto3" json:"timestamp,omitempty"` + 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 @@ -1704,7 +1753,7 @@ func (x *HistoryEvent) GetEventId() int32 { return 0 } -func (x *HistoryEvent) GetTimestamp() *timestamppb.Timestamp { +func (x *HistoryEvent) GetTimestamp() *timestamp.Timestamp { if x != nil { return x.Timestamp } @@ -1987,9 +2036,9 @@ type ScheduleTaskAction struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` - Version *wrapperspb.StringValue `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"` - Input *wrapperspb.StringValue `protobuf:"bytes,3,opt,name=input,proto3" json:"input,omitempty"` + 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"` } func (x *ScheduleTaskAction) Reset() { @@ -2031,14 +2080,14 @@ func (x *ScheduleTaskAction) GetName() string { return "" } -func (x *ScheduleTaskAction) GetVersion() *wrapperspb.StringValue { +func (x *ScheduleTaskAction) GetVersion() *wrappers.StringValue { if x != nil { return x.Version } return nil } -func (x *ScheduleTaskAction) GetInput() *wrapperspb.StringValue { +func (x *ScheduleTaskAction) GetInput() *wrappers.StringValue { if x != nil { return x.Input } @@ -2050,10 +2099,10 @@ type CreateSubOrchestrationAction struct { 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 *wrapperspb.StringValue `protobuf:"bytes,3,opt,name=version,proto3" json:"version,omitempty"` - Input *wrapperspb.StringValue `protobuf:"bytes,4,opt,name=input,proto3" json:"input,omitempty"` + 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"` } func (x *CreateSubOrchestrationAction) Reset() { @@ -2102,14 +2151,14 @@ func (x *CreateSubOrchestrationAction) GetName() string { return "" } -func (x *CreateSubOrchestrationAction) GetVersion() *wrapperspb.StringValue { +func (x *CreateSubOrchestrationAction) GetVersion() *wrappers.StringValue { if x != nil { return x.Version } return nil } -func (x *CreateSubOrchestrationAction) GetInput() *wrapperspb.StringValue { +func (x *CreateSubOrchestrationAction) GetInput() *wrappers.StringValue { if x != nil { return x.Input } @@ -2121,7 +2170,7 @@ type CreateTimerAction struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - FireAt *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=fireAt,proto3" json:"fireAt,omitempty"` + FireAt *timestamp.Timestamp `protobuf:"bytes,1,opt,name=fireAt,proto3" json:"fireAt,omitempty"` } func (x *CreateTimerAction) Reset() { @@ -2156,7 +2205,7 @@ func (*CreateTimerAction) Descriptor() ([]byte, []int) { return file_orchestrator_service_proto_rawDescGZIP(), []int{29} } -func (x *CreateTimerAction) GetFireAt() *timestamppb.Timestamp { +func (x *CreateTimerAction) GetFireAt() *timestamp.Timestamp { if x != nil { return x.FireAt } @@ -2168,9 +2217,9 @@ type SendEventAction struct { 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 *wrapperspb.StringValue `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"` + 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 *SendEventAction) Reset() { @@ -2219,7 +2268,7 @@ func (x *SendEventAction) GetName() string { return "" } -func (x *SendEventAction) GetData() *wrapperspb.StringValue { +func (x *SendEventAction) GetData() *wrappers.StringValue { if x != nil { return x.Data } @@ -2231,12 +2280,12 @@ type CompleteOrchestrationAction struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - OrchestrationStatus OrchestrationStatus `protobuf:"varint,1,opt,name=orchestrationStatus,proto3,enum=OrchestrationStatus" json:"orchestrationStatus,omitempty"` - Result *wrapperspb.StringValue `protobuf:"bytes,2,opt,name=result,proto3" json:"result,omitempty"` - Details *wrapperspb.StringValue `protobuf:"bytes,3,opt,name=details,proto3" json:"details,omitempty"` - NewVersion *wrapperspb.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"` + 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"` } func (x *CompleteOrchestrationAction) Reset() { @@ -2278,21 +2327,21 @@ func (x *CompleteOrchestrationAction) GetOrchestrationStatus() OrchestrationStat return OrchestrationStatus_ORCHESTRATION_STATUS_RUNNING } -func (x *CompleteOrchestrationAction) GetResult() *wrapperspb.StringValue { +func (x *CompleteOrchestrationAction) GetResult() *wrappers.StringValue { if x != nil { return x.Result } return nil } -func (x *CompleteOrchestrationAction) GetDetails() *wrapperspb.StringValue { +func (x *CompleteOrchestrationAction) GetDetails() *wrappers.StringValue { if x != nil { return x.Details } return nil } -func (x *CompleteOrchestrationAction) GetNewVersion() *wrapperspb.StringValue { +func (x *CompleteOrchestrationAction) GetNewVersion() *wrappers.StringValue { if x != nil { return x.NewVersion } @@ -2318,9 +2367,9 @@ type TerminateOrchestrationAction struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - InstanceId string `protobuf:"bytes,1,opt,name=instanceId,proto3" json:"instanceId,omitempty"` - Reason *wrapperspb.StringValue `protobuf:"bytes,2,opt,name=reason,proto3" json:"reason,omitempty"` - Recurse bool `protobuf:"varint,3,opt,name=recurse,proto3" json:"recurse,omitempty"` + 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 *TerminateOrchestrationAction) Reset() { @@ -2362,7 +2411,7 @@ func (x *TerminateOrchestrationAction) GetInstanceId() string { return "" } -func (x *TerminateOrchestrationAction) GetReason() *wrapperspb.StringValue { +func (x *TerminateOrchestrationAction) GetReason() *wrappers.StringValue { if x != nil { return x.Reason } @@ -2527,7 +2576,7 @@ type OrchestratorRequest struct { unknownFields protoimpl.UnknownFields InstanceId string `protobuf:"bytes,1,opt,name=instanceId,proto3" json:"instanceId,omitempty"` - ExecutionId *wrapperspb.StringValue `protobuf:"bytes,2,opt,name=executionId,proto3" json:"executionId,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"` @@ -2572,7 +2621,7 @@ func (x *OrchestratorRequest) GetInstanceId() string { return "" } -func (x *OrchestratorRequest) GetExecutionId() *wrapperspb.StringValue { +func (x *OrchestratorRequest) GetExecutionId() *wrappers.StringValue { if x != nil { return x.ExecutionId } @@ -2605,9 +2654,9 @@ type OrchestratorResponse struct { sizeCache protoimpl.SizeCache 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 *wrapperspb.StringValue `protobuf:"bytes,3,opt,name=customStatus,proto3" json:"customStatus,omitempty"` + 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"` } func (x *OrchestratorResponse) Reset() { @@ -2656,7 +2705,7 @@ func (x *OrchestratorResponse) GetActions() []*OrchestratorAction { return nil } -func (x *OrchestratorResponse) GetCustomStatus() *wrapperspb.StringValue { +func (x *OrchestratorResponse) GetCustomStatus() *wrappers.StringValue { if x != nil { return x.CustomStatus } @@ -2668,11 +2717,12 @@ type CreateInstanceRequest struct { 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 *wrapperspb.StringValue `protobuf:"bytes,3,opt,name=version,proto3" json:"version,omitempty"` - Input *wrapperspb.StringValue `protobuf:"bytes,4,opt,name=input,proto3" json:"input,omitempty"` - ScheduledStartTimestamp *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=scheduledStartTimestamp,proto3" json:"scheduledStartTimestamp,omitempty"` + 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"` } func (x *CreateInstanceRequest) Reset() { @@ -2721,27 +2771,89 @@ func (x *CreateInstanceRequest) GetName() string { return "" } -func (x *CreateInstanceRequest) GetVersion() *wrapperspb.StringValue { +func (x *CreateInstanceRequest) GetVersion() *wrappers.StringValue { if x != nil { return x.Version } return nil } -func (x *CreateInstanceRequest) GetInput() *wrapperspb.StringValue { +func (x *CreateInstanceRequest) GetInput() *wrappers.StringValue { if x != nil { return x.Input } return nil } -func (x *CreateInstanceRequest) GetScheduledStartTimestamp() *timestamppb.Timestamp { +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 +} + +type OrchestrationIdReusePolicy struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + 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"` +} + +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 *OrchestrationIdReusePolicy) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*OrchestrationIdReusePolicy) ProtoMessage() {} + +func (x *OrchestrationIdReusePolicy) ProtoReflect() protoreflect.Message { + mi := &file_orchestrator_service_proto_msgTypes[37] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use OrchestrationIdReusePolicy.ProtoReflect.Descriptor instead. +func (*OrchestrationIdReusePolicy) Descriptor() ([]byte, []int) { + return file_orchestrator_service_proto_rawDescGZIP(), []int{37} +} + +func (x *OrchestrationIdReusePolicy) GetOperationStatus() []OrchestrationStatus { + if x != nil { + return x.OperationStatus + } + 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 @@ -2753,7 +2865,7 @@ type CreateInstanceResponse struct { func (x *CreateInstanceResponse) Reset() { *x = CreateInstanceResponse{} if protoimpl.UnsafeEnabled { - mi := &file_orchestrator_service_proto_msgTypes[37] + mi := &file_orchestrator_service_proto_msgTypes[38] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2766,7 +2878,7 @@ func (x *CreateInstanceResponse) String() string { func (*CreateInstanceResponse) ProtoMessage() {} func (x *CreateInstanceResponse) ProtoReflect() protoreflect.Message { - mi := &file_orchestrator_service_proto_msgTypes[37] + mi := &file_orchestrator_service_proto_msgTypes[38] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2779,7 +2891,7 @@ func (x *CreateInstanceResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use CreateInstanceResponse.ProtoReflect.Descriptor instead. func (*CreateInstanceResponse) Descriptor() ([]byte, []int) { - return file_orchestrator_service_proto_rawDescGZIP(), []int{37} + return file_orchestrator_service_proto_rawDescGZIP(), []int{38} } func (x *CreateInstanceResponse) GetInstanceId() string { @@ -2801,7 +2913,7 @@ type GetInstanceRequest struct { func (x *GetInstanceRequest) Reset() { *x = GetInstanceRequest{} if protoimpl.UnsafeEnabled { - mi := &file_orchestrator_service_proto_msgTypes[38] + mi := &file_orchestrator_service_proto_msgTypes[39] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2814,7 +2926,7 @@ func (x *GetInstanceRequest) String() string { func (*GetInstanceRequest) ProtoMessage() {} func (x *GetInstanceRequest) ProtoReflect() protoreflect.Message { - mi := &file_orchestrator_service_proto_msgTypes[38] + mi := &file_orchestrator_service_proto_msgTypes[39] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2827,7 +2939,7 @@ func (x *GetInstanceRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use GetInstanceRequest.ProtoReflect.Descriptor instead. func (*GetInstanceRequest) Descriptor() ([]byte, []int) { - return file_orchestrator_service_proto_rawDescGZIP(), []int{38} + return file_orchestrator_service_proto_rawDescGZIP(), []int{39} } func (x *GetInstanceRequest) GetInstanceId() string { @@ -2856,7 +2968,7 @@ type GetInstanceResponse struct { func (x *GetInstanceResponse) Reset() { *x = GetInstanceResponse{} if protoimpl.UnsafeEnabled { - mi := &file_orchestrator_service_proto_msgTypes[39] + mi := &file_orchestrator_service_proto_msgTypes[40] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2869,7 +2981,7 @@ func (x *GetInstanceResponse) String() string { func (*GetInstanceResponse) ProtoMessage() {} func (x *GetInstanceResponse) ProtoReflect() protoreflect.Message { - mi := &file_orchestrator_service_proto_msgTypes[39] + mi := &file_orchestrator_service_proto_msgTypes[40] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2882,7 +2994,7 @@ func (x *GetInstanceResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use GetInstanceResponse.ProtoReflect.Descriptor instead. func (*GetInstanceResponse) Descriptor() ([]byte, []int) { - return file_orchestrator_service_proto_rawDescGZIP(), []int{39} + return file_orchestrator_service_proto_rawDescGZIP(), []int{40} } func (x *GetInstanceResponse) GetExists() bool { @@ -2904,14 +3016,14 @@ type RewindInstanceRequest struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - InstanceId string `protobuf:"bytes,1,opt,name=instanceId,proto3" json:"instanceId,omitempty"` - Reason *wrapperspb.StringValue `protobuf:"bytes,2,opt,name=reason,proto3" json:"reason,omitempty"` + 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"` } func (x *RewindInstanceRequest) Reset() { *x = RewindInstanceRequest{} if protoimpl.UnsafeEnabled { - mi := &file_orchestrator_service_proto_msgTypes[40] + mi := &file_orchestrator_service_proto_msgTypes[41] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2924,7 +3036,7 @@ func (x *RewindInstanceRequest) String() string { func (*RewindInstanceRequest) ProtoMessage() {} func (x *RewindInstanceRequest) ProtoReflect() protoreflect.Message { - mi := &file_orchestrator_service_proto_msgTypes[40] + mi := &file_orchestrator_service_proto_msgTypes[41] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2937,7 +3049,7 @@ func (x *RewindInstanceRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use RewindInstanceRequest.ProtoReflect.Descriptor instead. func (*RewindInstanceRequest) Descriptor() ([]byte, []int) { - return file_orchestrator_service_proto_rawDescGZIP(), []int{40} + return file_orchestrator_service_proto_rawDescGZIP(), []int{41} } func (x *RewindInstanceRequest) GetInstanceId() string { @@ -2947,7 +3059,7 @@ func (x *RewindInstanceRequest) GetInstanceId() string { return "" } -func (x *RewindInstanceRequest) GetReason() *wrapperspb.StringValue { +func (x *RewindInstanceRequest) GetReason() *wrappers.StringValue { if x != nil { return x.Reason } @@ -2963,7 +3075,7 @@ type RewindInstanceResponse struct { func (x *RewindInstanceResponse) Reset() { *x = RewindInstanceResponse{} if protoimpl.UnsafeEnabled { - mi := &file_orchestrator_service_proto_msgTypes[41] + mi := &file_orchestrator_service_proto_msgTypes[42] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2976,7 +3088,7 @@ func (x *RewindInstanceResponse) String() string { func (*RewindInstanceResponse) ProtoMessage() {} func (x *RewindInstanceResponse) ProtoReflect() protoreflect.Message { - mi := &file_orchestrator_service_proto_msgTypes[41] + mi := &file_orchestrator_service_proto_msgTypes[42] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2989,7 +3101,7 @@ func (x *RewindInstanceResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use RewindInstanceResponse.ProtoReflect.Descriptor instead. func (*RewindInstanceResponse) Descriptor() ([]byte, []int) { - return file_orchestrator_service_proto_rawDescGZIP(), []int{41} + return file_orchestrator_service_proto_rawDescGZIP(), []int{42} } type OrchestrationState struct { @@ -2997,23 +3109,23 @@ type OrchestrationState struct { 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 *wrapperspb.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 *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=scheduledStartTimestamp,proto3" json:"scheduledStartTimestamp,omitempty"` - CreatedTimestamp *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=createdTimestamp,proto3" json:"createdTimestamp,omitempty"` - LastUpdatedTimestamp *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=lastUpdatedTimestamp,proto3" json:"lastUpdatedTimestamp,omitempty"` - Input *wrapperspb.StringValue `protobuf:"bytes,8,opt,name=input,proto3" json:"input,omitempty"` - Output *wrapperspb.StringValue `protobuf:"bytes,9,opt,name=output,proto3" json:"output,omitempty"` - CustomStatus *wrapperspb.StringValue `protobuf:"bytes,10,opt,name=customStatus,proto3" json:"customStatus,omitempty"` - FailureDetails *TaskFailureDetails `protobuf:"bytes,11,opt,name=failureDetails,proto3" json:"failureDetails,omitempty"` + 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 *OrchestrationState) Reset() { *x = OrchestrationState{} if protoimpl.UnsafeEnabled { - mi := &file_orchestrator_service_proto_msgTypes[42] + mi := &file_orchestrator_service_proto_msgTypes[43] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3026,7 +3138,7 @@ func (x *OrchestrationState) String() string { func (*OrchestrationState) ProtoMessage() {} func (x *OrchestrationState) ProtoReflect() protoreflect.Message { - mi := &file_orchestrator_service_proto_msgTypes[42] + mi := &file_orchestrator_service_proto_msgTypes[43] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3039,7 +3151,7 @@ func (x *OrchestrationState) ProtoReflect() protoreflect.Message { // Deprecated: Use OrchestrationState.ProtoReflect.Descriptor instead. func (*OrchestrationState) Descriptor() ([]byte, []int) { - return file_orchestrator_service_proto_rawDescGZIP(), []int{42} + return file_orchestrator_service_proto_rawDescGZIP(), []int{43} } func (x *OrchestrationState) GetInstanceId() string { @@ -3056,7 +3168,7 @@ func (x *OrchestrationState) GetName() string { return "" } -func (x *OrchestrationState) GetVersion() *wrapperspb.StringValue { +func (x *OrchestrationState) GetVersion() *wrappers.StringValue { if x != nil { return x.Version } @@ -3070,42 +3182,42 @@ func (x *OrchestrationState) GetOrchestrationStatus() OrchestrationStatus { return OrchestrationStatus_ORCHESTRATION_STATUS_RUNNING } -func (x *OrchestrationState) GetScheduledStartTimestamp() *timestamppb.Timestamp { +func (x *OrchestrationState) GetScheduledStartTimestamp() *timestamp.Timestamp { if x != nil { return x.ScheduledStartTimestamp } return nil } -func (x *OrchestrationState) GetCreatedTimestamp() *timestamppb.Timestamp { +func (x *OrchestrationState) GetCreatedTimestamp() *timestamp.Timestamp { if x != nil { return x.CreatedTimestamp } return nil } -func (x *OrchestrationState) GetLastUpdatedTimestamp() *timestamppb.Timestamp { +func (x *OrchestrationState) GetLastUpdatedTimestamp() *timestamp.Timestamp { if x != nil { return x.LastUpdatedTimestamp } return nil } -func (x *OrchestrationState) GetInput() *wrapperspb.StringValue { +func (x *OrchestrationState) GetInput() *wrappers.StringValue { if x != nil { return x.Input } return nil } -func (x *OrchestrationState) GetOutput() *wrapperspb.StringValue { +func (x *OrchestrationState) GetOutput() *wrappers.StringValue { if x != nil { return x.Output } return nil } -func (x *OrchestrationState) GetCustomStatus() *wrapperspb.StringValue { +func (x *OrchestrationState) GetCustomStatus() *wrappers.StringValue { if x != nil { return x.CustomStatus } @@ -3124,15 +3236,15 @@ type RaiseEventRequest struct { 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 *wrapperspb.StringValue `protobuf:"bytes,3,opt,name=input,proto3" json:"input,omitempty"` + 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"` } func (x *RaiseEventRequest) Reset() { *x = RaiseEventRequest{} if protoimpl.UnsafeEnabled { - mi := &file_orchestrator_service_proto_msgTypes[43] + mi := &file_orchestrator_service_proto_msgTypes[44] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3145,7 +3257,7 @@ func (x *RaiseEventRequest) String() string { func (*RaiseEventRequest) ProtoMessage() {} func (x *RaiseEventRequest) ProtoReflect() protoreflect.Message { - mi := &file_orchestrator_service_proto_msgTypes[43] + mi := &file_orchestrator_service_proto_msgTypes[44] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3158,7 +3270,7 @@ func (x *RaiseEventRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use RaiseEventRequest.ProtoReflect.Descriptor instead. func (*RaiseEventRequest) Descriptor() ([]byte, []int) { - return file_orchestrator_service_proto_rawDescGZIP(), []int{43} + return file_orchestrator_service_proto_rawDescGZIP(), []int{44} } func (x *RaiseEventRequest) GetInstanceId() string { @@ -3175,7 +3287,7 @@ func (x *RaiseEventRequest) GetName() string { return "" } -func (x *RaiseEventRequest) GetInput() *wrapperspb.StringValue { +func (x *RaiseEventRequest) GetInput() *wrappers.StringValue { if x != nil { return x.Input } @@ -3191,7 +3303,7 @@ type RaiseEventResponse struct { func (x *RaiseEventResponse) Reset() { *x = RaiseEventResponse{} if protoimpl.UnsafeEnabled { - mi := &file_orchestrator_service_proto_msgTypes[44] + mi := &file_orchestrator_service_proto_msgTypes[45] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3204,7 +3316,7 @@ func (x *RaiseEventResponse) String() string { func (*RaiseEventResponse) ProtoMessage() {} func (x *RaiseEventResponse) ProtoReflect() protoreflect.Message { - mi := &file_orchestrator_service_proto_msgTypes[44] + mi := &file_orchestrator_service_proto_msgTypes[45] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3217,7 +3329,7 @@ func (x *RaiseEventResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use RaiseEventResponse.ProtoReflect.Descriptor instead. func (*RaiseEventResponse) Descriptor() ([]byte, []int) { - return file_orchestrator_service_proto_rawDescGZIP(), []int{44} + return file_orchestrator_service_proto_rawDescGZIP(), []int{45} } type TerminateRequest struct { @@ -3225,15 +3337,15 @@ type TerminateRequest struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - InstanceId string `protobuf:"bytes,1,opt,name=instanceId,proto3" json:"instanceId,omitempty"` - Output *wrapperspb.StringValue `protobuf:"bytes,2,opt,name=output,proto3" json:"output,omitempty"` - Recursive bool `protobuf:"varint,3,opt,name=recursive,proto3" json:"recursive,omitempty"` + 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"` } func (x *TerminateRequest) Reset() { *x = TerminateRequest{} if protoimpl.UnsafeEnabled { - mi := &file_orchestrator_service_proto_msgTypes[45] + mi := &file_orchestrator_service_proto_msgTypes[46] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3246,7 +3358,7 @@ func (x *TerminateRequest) String() string { func (*TerminateRequest) ProtoMessage() {} func (x *TerminateRequest) ProtoReflect() protoreflect.Message { - mi := &file_orchestrator_service_proto_msgTypes[45] + mi := &file_orchestrator_service_proto_msgTypes[46] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3259,7 +3371,7 @@ func (x *TerminateRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use TerminateRequest.ProtoReflect.Descriptor instead. func (*TerminateRequest) Descriptor() ([]byte, []int) { - return file_orchestrator_service_proto_rawDescGZIP(), []int{45} + return file_orchestrator_service_proto_rawDescGZIP(), []int{46} } func (x *TerminateRequest) GetInstanceId() string { @@ -3269,7 +3381,7 @@ func (x *TerminateRequest) GetInstanceId() string { return "" } -func (x *TerminateRequest) GetOutput() *wrapperspb.StringValue { +func (x *TerminateRequest) GetOutput() *wrappers.StringValue { if x != nil { return x.Output } @@ -3292,7 +3404,7 @@ type TerminateResponse struct { func (x *TerminateResponse) Reset() { *x = TerminateResponse{} if protoimpl.UnsafeEnabled { - mi := &file_orchestrator_service_proto_msgTypes[46] + mi := &file_orchestrator_service_proto_msgTypes[47] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3305,7 +3417,7 @@ func (x *TerminateResponse) String() string { func (*TerminateResponse) ProtoMessage() {} func (x *TerminateResponse) ProtoReflect() protoreflect.Message { - mi := &file_orchestrator_service_proto_msgTypes[46] + mi := &file_orchestrator_service_proto_msgTypes[47] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3318,7 +3430,7 @@ func (x *TerminateResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use TerminateResponse.ProtoReflect.Descriptor instead. func (*TerminateResponse) Descriptor() ([]byte, []int) { - return file_orchestrator_service_proto_rawDescGZIP(), []int{46} + return file_orchestrator_service_proto_rawDescGZIP(), []int{47} } type SuspendRequest struct { @@ -3326,14 +3438,14 @@ type SuspendRequest struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - InstanceId string `protobuf:"bytes,1,opt,name=instanceId,proto3" json:"instanceId,omitempty"` - Reason *wrapperspb.StringValue `protobuf:"bytes,2,opt,name=reason,proto3" json:"reason,omitempty"` + 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"` } func (x *SuspendRequest) Reset() { *x = SuspendRequest{} if protoimpl.UnsafeEnabled { - mi := &file_orchestrator_service_proto_msgTypes[47] + mi := &file_orchestrator_service_proto_msgTypes[48] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3346,7 +3458,7 @@ func (x *SuspendRequest) String() string { func (*SuspendRequest) ProtoMessage() {} func (x *SuspendRequest) ProtoReflect() protoreflect.Message { - mi := &file_orchestrator_service_proto_msgTypes[47] + mi := &file_orchestrator_service_proto_msgTypes[48] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3359,7 +3471,7 @@ func (x *SuspendRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use SuspendRequest.ProtoReflect.Descriptor instead. func (*SuspendRequest) Descriptor() ([]byte, []int) { - return file_orchestrator_service_proto_rawDescGZIP(), []int{47} + return file_orchestrator_service_proto_rawDescGZIP(), []int{48} } func (x *SuspendRequest) GetInstanceId() string { @@ -3369,7 +3481,7 @@ func (x *SuspendRequest) GetInstanceId() string { return "" } -func (x *SuspendRequest) GetReason() *wrapperspb.StringValue { +func (x *SuspendRequest) GetReason() *wrappers.StringValue { if x != nil { return x.Reason } @@ -3385,7 +3497,7 @@ type SuspendResponse struct { func (x *SuspendResponse) Reset() { *x = SuspendResponse{} if protoimpl.UnsafeEnabled { - mi := &file_orchestrator_service_proto_msgTypes[48] + mi := &file_orchestrator_service_proto_msgTypes[49] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3398,7 +3510,7 @@ func (x *SuspendResponse) String() string { func (*SuspendResponse) ProtoMessage() {} func (x *SuspendResponse) ProtoReflect() protoreflect.Message { - mi := &file_orchestrator_service_proto_msgTypes[48] + mi := &file_orchestrator_service_proto_msgTypes[49] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3411,7 +3523,7 @@ func (x *SuspendResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use SuspendResponse.ProtoReflect.Descriptor instead. func (*SuspendResponse) Descriptor() ([]byte, []int) { - return file_orchestrator_service_proto_rawDescGZIP(), []int{48} + return file_orchestrator_service_proto_rawDescGZIP(), []int{49} } type ResumeRequest struct { @@ -3419,14 +3531,14 @@ type ResumeRequest struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - InstanceId string `protobuf:"bytes,1,opt,name=instanceId,proto3" json:"instanceId,omitempty"` - Reason *wrapperspb.StringValue `protobuf:"bytes,2,opt,name=reason,proto3" json:"reason,omitempty"` + 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"` } func (x *ResumeRequest) Reset() { *x = ResumeRequest{} if protoimpl.UnsafeEnabled { - mi := &file_orchestrator_service_proto_msgTypes[49] + mi := &file_orchestrator_service_proto_msgTypes[50] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3439,7 +3551,7 @@ func (x *ResumeRequest) String() string { func (*ResumeRequest) ProtoMessage() {} func (x *ResumeRequest) ProtoReflect() protoreflect.Message { - mi := &file_orchestrator_service_proto_msgTypes[49] + mi := &file_orchestrator_service_proto_msgTypes[50] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3452,7 +3564,7 @@ func (x *ResumeRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use ResumeRequest.ProtoReflect.Descriptor instead. func (*ResumeRequest) Descriptor() ([]byte, []int) { - return file_orchestrator_service_proto_rawDescGZIP(), []int{49} + return file_orchestrator_service_proto_rawDescGZIP(), []int{50} } func (x *ResumeRequest) GetInstanceId() string { @@ -3462,7 +3574,7 @@ func (x *ResumeRequest) GetInstanceId() string { return "" } -func (x *ResumeRequest) GetReason() *wrapperspb.StringValue { +func (x *ResumeRequest) GetReason() *wrappers.StringValue { if x != nil { return x.Reason } @@ -3478,7 +3590,7 @@ type ResumeResponse struct { func (x *ResumeResponse) Reset() { *x = ResumeResponse{} if protoimpl.UnsafeEnabled { - mi := &file_orchestrator_service_proto_msgTypes[50] + mi := &file_orchestrator_service_proto_msgTypes[51] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3491,7 +3603,7 @@ func (x *ResumeResponse) String() string { func (*ResumeResponse) ProtoMessage() {} func (x *ResumeResponse) ProtoReflect() protoreflect.Message { - mi := &file_orchestrator_service_proto_msgTypes[50] + mi := &file_orchestrator_service_proto_msgTypes[51] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3504,7 +3616,7 @@ func (x *ResumeResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use ResumeResponse.ProtoReflect.Descriptor instead. func (*ResumeResponse) Descriptor() ([]byte, []int) { - return file_orchestrator_service_proto_rawDescGZIP(), []int{50} + return file_orchestrator_service_proto_rawDescGZIP(), []int{51} } type QueryInstancesRequest struct { @@ -3518,7 +3630,7 @@ type QueryInstancesRequest struct { func (x *QueryInstancesRequest) Reset() { *x = QueryInstancesRequest{} if protoimpl.UnsafeEnabled { - mi := &file_orchestrator_service_proto_msgTypes[51] + mi := &file_orchestrator_service_proto_msgTypes[52] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3531,7 +3643,7 @@ func (x *QueryInstancesRequest) String() string { func (*QueryInstancesRequest) ProtoMessage() {} func (x *QueryInstancesRequest) ProtoReflect() protoreflect.Message { - mi := &file_orchestrator_service_proto_msgTypes[51] + mi := &file_orchestrator_service_proto_msgTypes[52] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3544,7 +3656,7 @@ func (x *QueryInstancesRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use QueryInstancesRequest.ProtoReflect.Descriptor instead. func (*QueryInstancesRequest) Descriptor() ([]byte, []int) { - return file_orchestrator_service_proto_rawDescGZIP(), []int{51} + return file_orchestrator_service_proto_rawDescGZIP(), []int{52} } func (x *QueryInstancesRequest) GetQuery() *InstanceQuery { @@ -3559,20 +3671,20 @@ type InstanceQuery struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - RuntimeStatus []OrchestrationStatus `protobuf:"varint,1,rep,packed,name=runtimeStatus,proto3,enum=OrchestrationStatus" json:"runtimeStatus,omitempty"` - CreatedTimeFrom *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=createdTimeFrom,proto3" json:"createdTimeFrom,omitempty"` - CreatedTimeTo *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=createdTimeTo,proto3" json:"createdTimeTo,omitempty"` - TaskHubNames []*wrapperspb.StringValue `protobuf:"bytes,4,rep,name=taskHubNames,proto3" json:"taskHubNames,omitempty"` - MaxInstanceCount int32 `protobuf:"varint,5,opt,name=maxInstanceCount,proto3" json:"maxInstanceCount,omitempty"` - ContinuationToken *wrapperspb.StringValue `protobuf:"bytes,6,opt,name=continuationToken,proto3" json:"continuationToken,omitempty"` - InstanceIdPrefix *wrapperspb.StringValue `protobuf:"bytes,7,opt,name=instanceIdPrefix,proto3" json:"instanceIdPrefix,omitempty"` - FetchInputsAndOutputs bool `protobuf:"varint,8,opt,name=fetchInputsAndOutputs,proto3" json:"fetchInputsAndOutputs,omitempty"` + 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"` } func (x *InstanceQuery) Reset() { *x = InstanceQuery{} if protoimpl.UnsafeEnabled { - mi := &file_orchestrator_service_proto_msgTypes[52] + mi := &file_orchestrator_service_proto_msgTypes[53] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3585,7 +3697,7 @@ func (x *InstanceQuery) String() string { func (*InstanceQuery) ProtoMessage() {} func (x *InstanceQuery) ProtoReflect() protoreflect.Message { - mi := &file_orchestrator_service_proto_msgTypes[52] + mi := &file_orchestrator_service_proto_msgTypes[53] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3598,7 +3710,7 @@ func (x *InstanceQuery) ProtoReflect() protoreflect.Message { // Deprecated: Use InstanceQuery.ProtoReflect.Descriptor instead. func (*InstanceQuery) Descriptor() ([]byte, []int) { - return file_orchestrator_service_proto_rawDescGZIP(), []int{52} + return file_orchestrator_service_proto_rawDescGZIP(), []int{53} } func (x *InstanceQuery) GetRuntimeStatus() []OrchestrationStatus { @@ -3608,21 +3720,21 @@ func (x *InstanceQuery) GetRuntimeStatus() []OrchestrationStatus { return nil } -func (x *InstanceQuery) GetCreatedTimeFrom() *timestamppb.Timestamp { +func (x *InstanceQuery) GetCreatedTimeFrom() *timestamp.Timestamp { if x != nil { return x.CreatedTimeFrom } return nil } -func (x *InstanceQuery) GetCreatedTimeTo() *timestamppb.Timestamp { +func (x *InstanceQuery) GetCreatedTimeTo() *timestamp.Timestamp { if x != nil { return x.CreatedTimeTo } return nil } -func (x *InstanceQuery) GetTaskHubNames() []*wrapperspb.StringValue { +func (x *InstanceQuery) GetTaskHubNames() []*wrappers.StringValue { if x != nil { return x.TaskHubNames } @@ -3636,14 +3748,14 @@ func (x *InstanceQuery) GetMaxInstanceCount() int32 { return 0 } -func (x *InstanceQuery) GetContinuationToken() *wrapperspb.StringValue { +func (x *InstanceQuery) GetContinuationToken() *wrappers.StringValue { if x != nil { return x.ContinuationToken } return nil } -func (x *InstanceQuery) GetInstanceIdPrefix() *wrapperspb.StringValue { +func (x *InstanceQuery) GetInstanceIdPrefix() *wrappers.StringValue { if x != nil { return x.InstanceIdPrefix } @@ -3662,14 +3774,14 @@ type QueryInstancesResponse struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - OrchestrationState []*OrchestrationState `protobuf:"bytes,1,rep,name=orchestrationState,proto3" json:"orchestrationState,omitempty"` - ContinuationToken *wrapperspb.StringValue `protobuf:"bytes,2,opt,name=continuationToken,proto3" json:"continuationToken,omitempty"` + 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"` } func (x *QueryInstancesResponse) Reset() { *x = QueryInstancesResponse{} if protoimpl.UnsafeEnabled { - mi := &file_orchestrator_service_proto_msgTypes[53] + mi := &file_orchestrator_service_proto_msgTypes[54] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3682,7 +3794,7 @@ func (x *QueryInstancesResponse) String() string { func (*QueryInstancesResponse) ProtoMessage() {} func (x *QueryInstancesResponse) ProtoReflect() protoreflect.Message { - mi := &file_orchestrator_service_proto_msgTypes[53] + mi := &file_orchestrator_service_proto_msgTypes[54] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3695,7 +3807,7 @@ func (x *QueryInstancesResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use QueryInstancesResponse.ProtoReflect.Descriptor instead. func (*QueryInstancesResponse) Descriptor() ([]byte, []int) { - return file_orchestrator_service_proto_rawDescGZIP(), []int{53} + return file_orchestrator_service_proto_rawDescGZIP(), []int{54} } func (x *QueryInstancesResponse) GetOrchestrationState() []*OrchestrationState { @@ -3705,7 +3817,7 @@ func (x *QueryInstancesResponse) GetOrchestrationState() []*OrchestrationState { return nil } -func (x *QueryInstancesResponse) GetContinuationToken() *wrapperspb.StringValue { +func (x *QueryInstancesResponse) GetContinuationToken() *wrappers.StringValue { if x != nil { return x.ContinuationToken } @@ -3727,7 +3839,7 @@ type PurgeInstancesRequest struct { func (x *PurgeInstancesRequest) Reset() { *x = PurgeInstancesRequest{} if protoimpl.UnsafeEnabled { - mi := &file_orchestrator_service_proto_msgTypes[54] + mi := &file_orchestrator_service_proto_msgTypes[55] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3740,7 +3852,7 @@ func (x *PurgeInstancesRequest) String() string { func (*PurgeInstancesRequest) ProtoMessage() {} func (x *PurgeInstancesRequest) ProtoReflect() protoreflect.Message { - mi := &file_orchestrator_service_proto_msgTypes[54] + mi := &file_orchestrator_service_proto_msgTypes[55] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3753,7 +3865,7 @@ func (x *PurgeInstancesRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use PurgeInstancesRequest.ProtoReflect.Descriptor instead. func (*PurgeInstancesRequest) Descriptor() ([]byte, []int) { - return file_orchestrator_service_proto_rawDescGZIP(), []int{54} + return file_orchestrator_service_proto_rawDescGZIP(), []int{55} } func (m *PurgeInstancesRequest) GetRequest() isPurgeInstancesRequest_Request { @@ -3798,15 +3910,15 @@ type PurgeInstanceFilter struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - CreatedTimeFrom *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=createdTimeFrom,proto3" json:"createdTimeFrom,omitempty"` - CreatedTimeTo *timestamppb.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"` + 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 *PurgeInstanceFilter) Reset() { *x = PurgeInstanceFilter{} if protoimpl.UnsafeEnabled { - mi := &file_orchestrator_service_proto_msgTypes[55] + mi := &file_orchestrator_service_proto_msgTypes[56] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3819,7 +3931,7 @@ func (x *PurgeInstanceFilter) String() string { func (*PurgeInstanceFilter) ProtoMessage() {} func (x *PurgeInstanceFilter) ProtoReflect() protoreflect.Message { - mi := &file_orchestrator_service_proto_msgTypes[55] + mi := &file_orchestrator_service_proto_msgTypes[56] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3832,17 +3944,17 @@ func (x *PurgeInstanceFilter) ProtoReflect() protoreflect.Message { // Deprecated: Use PurgeInstanceFilter.ProtoReflect.Descriptor instead. func (*PurgeInstanceFilter) Descriptor() ([]byte, []int) { - return file_orchestrator_service_proto_rawDescGZIP(), []int{55} + return file_orchestrator_service_proto_rawDescGZIP(), []int{56} } -func (x *PurgeInstanceFilter) GetCreatedTimeFrom() *timestamppb.Timestamp { +func (x *PurgeInstanceFilter) GetCreatedTimeFrom() *timestamp.Timestamp { if x != nil { return x.CreatedTimeFrom } return nil } -func (x *PurgeInstanceFilter) GetCreatedTimeTo() *timestamppb.Timestamp { +func (x *PurgeInstanceFilter) GetCreatedTimeTo() *timestamp.Timestamp { if x != nil { return x.CreatedTimeTo } @@ -3867,7 +3979,7 @@ type PurgeInstancesResponse struct { func (x *PurgeInstancesResponse) Reset() { *x = PurgeInstancesResponse{} if protoimpl.UnsafeEnabled { - mi := &file_orchestrator_service_proto_msgTypes[56] + mi := &file_orchestrator_service_proto_msgTypes[57] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3880,7 +3992,7 @@ func (x *PurgeInstancesResponse) String() string { func (*PurgeInstancesResponse) ProtoMessage() {} func (x *PurgeInstancesResponse) ProtoReflect() protoreflect.Message { - mi := &file_orchestrator_service_proto_msgTypes[56] + mi := &file_orchestrator_service_proto_msgTypes[57] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3893,7 +4005,7 @@ func (x *PurgeInstancesResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use PurgeInstancesResponse.ProtoReflect.Descriptor instead. func (*PurgeInstancesResponse) Descriptor() ([]byte, []int) { - return file_orchestrator_service_proto_rawDescGZIP(), []int{56} + return file_orchestrator_service_proto_rawDescGZIP(), []int{57} } func (x *PurgeInstancesResponse) GetDeletedInstanceCount() int32 { @@ -3914,7 +4026,7 @@ type CreateTaskHubRequest struct { func (x *CreateTaskHubRequest) Reset() { *x = CreateTaskHubRequest{} if protoimpl.UnsafeEnabled { - mi := &file_orchestrator_service_proto_msgTypes[57] + mi := &file_orchestrator_service_proto_msgTypes[58] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3927,7 +4039,7 @@ func (x *CreateTaskHubRequest) String() string { func (*CreateTaskHubRequest) ProtoMessage() {} func (x *CreateTaskHubRequest) ProtoReflect() protoreflect.Message { - mi := &file_orchestrator_service_proto_msgTypes[57] + mi := &file_orchestrator_service_proto_msgTypes[58] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3940,7 +4052,7 @@ func (x *CreateTaskHubRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use CreateTaskHubRequest.ProtoReflect.Descriptor instead. func (*CreateTaskHubRequest) Descriptor() ([]byte, []int) { - return file_orchestrator_service_proto_rawDescGZIP(), []int{57} + return file_orchestrator_service_proto_rawDescGZIP(), []int{58} } func (x *CreateTaskHubRequest) GetRecreateIfExists() bool { @@ -3959,7 +4071,7 @@ type CreateTaskHubResponse struct { func (x *CreateTaskHubResponse) Reset() { *x = CreateTaskHubResponse{} if protoimpl.UnsafeEnabled { - mi := &file_orchestrator_service_proto_msgTypes[58] + mi := &file_orchestrator_service_proto_msgTypes[59] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3972,7 +4084,7 @@ func (x *CreateTaskHubResponse) String() string { func (*CreateTaskHubResponse) ProtoMessage() {} func (x *CreateTaskHubResponse) ProtoReflect() protoreflect.Message { - mi := &file_orchestrator_service_proto_msgTypes[58] + mi := &file_orchestrator_service_proto_msgTypes[59] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3985,7 +4097,7 @@ func (x *CreateTaskHubResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use CreateTaskHubResponse.ProtoReflect.Descriptor instead. func (*CreateTaskHubResponse) Descriptor() ([]byte, []int) { - return file_orchestrator_service_proto_rawDescGZIP(), []int{58} + return file_orchestrator_service_proto_rawDescGZIP(), []int{59} } type DeleteTaskHubRequest struct { @@ -3997,7 +4109,7 @@ type DeleteTaskHubRequest struct { func (x *DeleteTaskHubRequest) Reset() { *x = DeleteTaskHubRequest{} if protoimpl.UnsafeEnabled { - mi := &file_orchestrator_service_proto_msgTypes[59] + mi := &file_orchestrator_service_proto_msgTypes[60] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -4010,7 +4122,7 @@ func (x *DeleteTaskHubRequest) String() string { func (*DeleteTaskHubRequest) ProtoMessage() {} func (x *DeleteTaskHubRequest) ProtoReflect() protoreflect.Message { - mi := &file_orchestrator_service_proto_msgTypes[59] + mi := &file_orchestrator_service_proto_msgTypes[60] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4023,7 +4135,7 @@ func (x *DeleteTaskHubRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use DeleteTaskHubRequest.ProtoReflect.Descriptor instead. func (*DeleteTaskHubRequest) Descriptor() ([]byte, []int) { - return file_orchestrator_service_proto_rawDescGZIP(), []int{59} + return file_orchestrator_service_proto_rawDescGZIP(), []int{60} } type DeleteTaskHubResponse struct { @@ -4035,7 +4147,7 @@ type DeleteTaskHubResponse struct { func (x *DeleteTaskHubResponse) Reset() { *x = DeleteTaskHubResponse{} if protoimpl.UnsafeEnabled { - mi := &file_orchestrator_service_proto_msgTypes[60] + mi := &file_orchestrator_service_proto_msgTypes[61] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -4048,7 +4160,7 @@ func (x *DeleteTaskHubResponse) String() string { func (*DeleteTaskHubResponse) ProtoMessage() {} func (x *DeleteTaskHubResponse) ProtoReflect() protoreflect.Message { - mi := &file_orchestrator_service_proto_msgTypes[60] + mi := &file_orchestrator_service_proto_msgTypes[61] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4061,7 +4173,7 @@ func (x *DeleteTaskHubResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use DeleteTaskHubResponse.ProtoReflect.Descriptor instead. func (*DeleteTaskHubResponse) Descriptor() ([]byte, []int) { - return file_orchestrator_service_proto_rawDescGZIP(), []int{60} + return file_orchestrator_service_proto_rawDescGZIP(), []int{61} } type SignalEntityRequest struct { @@ -4069,17 +4181,17 @@ type SignalEntityRequest struct { 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 *wrapperspb.StringValue `protobuf:"bytes,3,opt,name=input,proto3" json:"input,omitempty"` - RequestId string `protobuf:"bytes,4,opt,name=requestId,proto3" json:"requestId,omitempty"` - ScheduledTime *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=scheduledTime,proto3" json:"scheduledTime,omitempty"` + 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"` } func (x *SignalEntityRequest) Reset() { *x = SignalEntityRequest{} if protoimpl.UnsafeEnabled { - mi := &file_orchestrator_service_proto_msgTypes[61] + mi := &file_orchestrator_service_proto_msgTypes[62] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -4092,7 +4204,7 @@ func (x *SignalEntityRequest) String() string { func (*SignalEntityRequest) ProtoMessage() {} func (x *SignalEntityRequest) ProtoReflect() protoreflect.Message { - mi := &file_orchestrator_service_proto_msgTypes[61] + mi := &file_orchestrator_service_proto_msgTypes[62] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4105,7 +4217,7 @@ func (x *SignalEntityRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use SignalEntityRequest.ProtoReflect.Descriptor instead. func (*SignalEntityRequest) Descriptor() ([]byte, []int) { - return file_orchestrator_service_proto_rawDescGZIP(), []int{61} + return file_orchestrator_service_proto_rawDescGZIP(), []int{62} } func (x *SignalEntityRequest) GetInstanceId() string { @@ -4122,7 +4234,7 @@ func (x *SignalEntityRequest) GetName() string { return "" } -func (x *SignalEntityRequest) GetInput() *wrapperspb.StringValue { +func (x *SignalEntityRequest) GetInput() *wrappers.StringValue { if x != nil { return x.Input } @@ -4136,7 +4248,7 @@ func (x *SignalEntityRequest) GetRequestId() string { return "" } -func (x *SignalEntityRequest) GetScheduledTime() *timestamppb.Timestamp { +func (x *SignalEntityRequest) GetScheduledTime() *timestamp.Timestamp { if x != nil { return x.ScheduledTime } @@ -4152,7 +4264,7 @@ type SignalEntityResponse struct { func (x *SignalEntityResponse) Reset() { *x = SignalEntityResponse{} if protoimpl.UnsafeEnabled { - mi := &file_orchestrator_service_proto_msgTypes[62] + mi := &file_orchestrator_service_proto_msgTypes[63] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -4165,7 +4277,7 @@ func (x *SignalEntityResponse) String() string { func (*SignalEntityResponse) ProtoMessage() {} func (x *SignalEntityResponse) ProtoReflect() protoreflect.Message { - mi := &file_orchestrator_service_proto_msgTypes[62] + mi := &file_orchestrator_service_proto_msgTypes[63] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4178,7 +4290,7 @@ func (x *SignalEntityResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use SignalEntityResponse.ProtoReflect.Descriptor instead. func (*SignalEntityResponse) Descriptor() ([]byte, []int) { - return file_orchestrator_service_proto_rawDescGZIP(), []int{62} + return file_orchestrator_service_proto_rawDescGZIP(), []int{63} } type GetEntityRequest struct { @@ -4193,7 +4305,7 @@ type GetEntityRequest struct { func (x *GetEntityRequest) Reset() { *x = GetEntityRequest{} if protoimpl.UnsafeEnabled { - mi := &file_orchestrator_service_proto_msgTypes[63] + mi := &file_orchestrator_service_proto_msgTypes[64] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -4206,7 +4318,7 @@ func (x *GetEntityRequest) String() string { func (*GetEntityRequest) ProtoMessage() {} func (x *GetEntityRequest) ProtoReflect() protoreflect.Message { - mi := &file_orchestrator_service_proto_msgTypes[63] + mi := &file_orchestrator_service_proto_msgTypes[64] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4219,7 +4331,7 @@ func (x *GetEntityRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use GetEntityRequest.ProtoReflect.Descriptor instead. func (*GetEntityRequest) Descriptor() ([]byte, []int) { - return file_orchestrator_service_proto_rawDescGZIP(), []int{63} + return file_orchestrator_service_proto_rawDescGZIP(), []int{64} } func (x *GetEntityRequest) GetInstanceId() string { @@ -4248,7 +4360,7 @@ type GetEntityResponse struct { func (x *GetEntityResponse) Reset() { *x = GetEntityResponse{} if protoimpl.UnsafeEnabled { - mi := &file_orchestrator_service_proto_msgTypes[64] + mi := &file_orchestrator_service_proto_msgTypes[65] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -4261,7 +4373,7 @@ func (x *GetEntityResponse) String() string { func (*GetEntityResponse) ProtoMessage() {} func (x *GetEntityResponse) ProtoReflect() protoreflect.Message { - mi := &file_orchestrator_service_proto_msgTypes[64] + mi := &file_orchestrator_service_proto_msgTypes[65] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4274,7 +4386,7 @@ func (x *GetEntityResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use GetEntityResponse.ProtoReflect.Descriptor instead. func (*GetEntityResponse) Descriptor() ([]byte, []int) { - return file_orchestrator_service_proto_rawDescGZIP(), []int{64} + return file_orchestrator_service_proto_rawDescGZIP(), []int{65} } func (x *GetEntityResponse) GetExists() bool { @@ -4296,19 +4408,19 @@ type EntityQuery struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - InstanceIdStartsWith *wrapperspb.StringValue `protobuf:"bytes,1,opt,name=instanceIdStartsWith,proto3" json:"instanceIdStartsWith,omitempty"` - LastModifiedFrom *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=lastModifiedFrom,proto3" json:"lastModifiedFrom,omitempty"` - LastModifiedTo *timestamppb.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 *wrapperspb.Int32Value `protobuf:"bytes,6,opt,name=pageSize,proto3" json:"pageSize,omitempty"` - ContinuationToken *wrapperspb.StringValue `protobuf:"bytes,7,opt,name=continuationToken,proto3" json:"continuationToken,omitempty"` + 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"` } func (x *EntityQuery) Reset() { *x = EntityQuery{} if protoimpl.UnsafeEnabled { - mi := &file_orchestrator_service_proto_msgTypes[65] + mi := &file_orchestrator_service_proto_msgTypes[66] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -4321,7 +4433,7 @@ func (x *EntityQuery) String() string { func (*EntityQuery) ProtoMessage() {} func (x *EntityQuery) ProtoReflect() protoreflect.Message { - mi := &file_orchestrator_service_proto_msgTypes[65] + mi := &file_orchestrator_service_proto_msgTypes[66] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4334,24 +4446,24 @@ func (x *EntityQuery) ProtoReflect() protoreflect.Message { // Deprecated: Use EntityQuery.ProtoReflect.Descriptor instead. func (*EntityQuery) Descriptor() ([]byte, []int) { - return file_orchestrator_service_proto_rawDescGZIP(), []int{65} + return file_orchestrator_service_proto_rawDescGZIP(), []int{66} } -func (x *EntityQuery) GetInstanceIdStartsWith() *wrapperspb.StringValue { +func (x *EntityQuery) GetInstanceIdStartsWith() *wrappers.StringValue { if x != nil { return x.InstanceIdStartsWith } return nil } -func (x *EntityQuery) GetLastModifiedFrom() *timestamppb.Timestamp { +func (x *EntityQuery) GetLastModifiedFrom() *timestamp.Timestamp { if x != nil { return x.LastModifiedFrom } return nil } -func (x *EntityQuery) GetLastModifiedTo() *timestamppb.Timestamp { +func (x *EntityQuery) GetLastModifiedTo() *timestamp.Timestamp { if x != nil { return x.LastModifiedTo } @@ -4372,14 +4484,14 @@ func (x *EntityQuery) GetIncludeTransient() bool { return false } -func (x *EntityQuery) GetPageSize() *wrapperspb.Int32Value { +func (x *EntityQuery) GetPageSize() *wrappers.Int32Value { if x != nil { return x.PageSize } return nil } -func (x *EntityQuery) GetContinuationToken() *wrapperspb.StringValue { +func (x *EntityQuery) GetContinuationToken() *wrappers.StringValue { if x != nil { return x.ContinuationToken } @@ -4397,7 +4509,7 @@ type QueryEntitiesRequest struct { func (x *QueryEntitiesRequest) Reset() { *x = QueryEntitiesRequest{} if protoimpl.UnsafeEnabled { - mi := &file_orchestrator_service_proto_msgTypes[66] + mi := &file_orchestrator_service_proto_msgTypes[67] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -4410,7 +4522,7 @@ func (x *QueryEntitiesRequest) String() string { func (*QueryEntitiesRequest) ProtoMessage() {} func (x *QueryEntitiesRequest) ProtoReflect() protoreflect.Message { - mi := &file_orchestrator_service_proto_msgTypes[66] + mi := &file_orchestrator_service_proto_msgTypes[67] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4423,7 +4535,7 @@ func (x *QueryEntitiesRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use QueryEntitiesRequest.ProtoReflect.Descriptor instead. func (*QueryEntitiesRequest) Descriptor() ([]byte, []int) { - return file_orchestrator_service_proto_rawDescGZIP(), []int{66} + return file_orchestrator_service_proto_rawDescGZIP(), []int{67} } func (x *QueryEntitiesRequest) GetQuery() *EntityQuery { @@ -4438,14 +4550,14 @@ type QueryEntitiesResponse struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Entities []*EntityMetadata `protobuf:"bytes,1,rep,name=entities,proto3" json:"entities,omitempty"` - ContinuationToken *wrapperspb.StringValue `protobuf:"bytes,2,opt,name=continuationToken,proto3" json:"continuationToken,omitempty"` + 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 *QueryEntitiesResponse) Reset() { *x = QueryEntitiesResponse{} if protoimpl.UnsafeEnabled { - mi := &file_orchestrator_service_proto_msgTypes[67] + mi := &file_orchestrator_service_proto_msgTypes[68] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -4458,7 +4570,7 @@ func (x *QueryEntitiesResponse) String() string { func (*QueryEntitiesResponse) ProtoMessage() {} func (x *QueryEntitiesResponse) ProtoReflect() protoreflect.Message { - mi := &file_orchestrator_service_proto_msgTypes[67] + mi := &file_orchestrator_service_proto_msgTypes[68] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4471,7 +4583,7 @@ func (x *QueryEntitiesResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use QueryEntitiesResponse.ProtoReflect.Descriptor instead. func (*QueryEntitiesResponse) Descriptor() ([]byte, []int) { - return file_orchestrator_service_proto_rawDescGZIP(), []int{67} + return file_orchestrator_service_proto_rawDescGZIP(), []int{68} } func (x *QueryEntitiesResponse) GetEntities() []*EntityMetadata { @@ -4481,7 +4593,7 @@ func (x *QueryEntitiesResponse) GetEntities() []*EntityMetadata { return nil } -func (x *QueryEntitiesResponse) GetContinuationToken() *wrapperspb.StringValue { +func (x *QueryEntitiesResponse) GetContinuationToken() *wrappers.StringValue { if x != nil { return x.ContinuationToken } @@ -4493,17 +4605,17 @@ type EntityMetadata struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - InstanceId string `protobuf:"bytes,1,opt,name=instanceId,proto3" json:"instanceId,omitempty"` - LastModifiedTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=lastModifiedTime,proto3" json:"lastModifiedTime,omitempty"` - BacklogQueueSize int32 `protobuf:"varint,3,opt,name=backlogQueueSize,proto3" json:"backlogQueueSize,omitempty"` - LockedBy *wrapperspb.StringValue `protobuf:"bytes,4,opt,name=lockedBy,proto3" json:"lockedBy,omitempty"` - SerializedState *wrapperspb.StringValue `protobuf:"bytes,5,opt,name=serializedState,proto3" json:"serializedState,omitempty"` + 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"` } func (x *EntityMetadata) Reset() { *x = EntityMetadata{} if protoimpl.UnsafeEnabled { - mi := &file_orchestrator_service_proto_msgTypes[68] + mi := &file_orchestrator_service_proto_msgTypes[69] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -4516,7 +4628,7 @@ func (x *EntityMetadata) String() string { func (*EntityMetadata) ProtoMessage() {} func (x *EntityMetadata) ProtoReflect() protoreflect.Message { - mi := &file_orchestrator_service_proto_msgTypes[68] + mi := &file_orchestrator_service_proto_msgTypes[69] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4529,7 +4641,7 @@ func (x *EntityMetadata) ProtoReflect() protoreflect.Message { // Deprecated: Use EntityMetadata.ProtoReflect.Descriptor instead. func (*EntityMetadata) Descriptor() ([]byte, []int) { - return file_orchestrator_service_proto_rawDescGZIP(), []int{68} + return file_orchestrator_service_proto_rawDescGZIP(), []int{69} } func (x *EntityMetadata) GetInstanceId() string { @@ -4539,7 +4651,7 @@ func (x *EntityMetadata) GetInstanceId() string { return "" } -func (x *EntityMetadata) GetLastModifiedTime() *timestamppb.Timestamp { +func (x *EntityMetadata) GetLastModifiedTime() *timestamp.Timestamp { if x != nil { return x.LastModifiedTime } @@ -4553,14 +4665,14 @@ func (x *EntityMetadata) GetBacklogQueueSize() int32 { return 0 } -func (x *EntityMetadata) GetLockedBy() *wrapperspb.StringValue { +func (x *EntityMetadata) GetLockedBy() *wrappers.StringValue { if x != nil { return x.LockedBy } return nil } -func (x *EntityMetadata) GetSerializedState() *wrapperspb.StringValue { +func (x *EntityMetadata) GetSerializedState() *wrappers.StringValue { if x != nil { return x.SerializedState } @@ -4572,15 +4684,15 @@ type CleanEntityStorageRequest struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - ContinuationToken *wrapperspb.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"` + 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"` } func (x *CleanEntityStorageRequest) Reset() { *x = CleanEntityStorageRequest{} if protoimpl.UnsafeEnabled { - mi := &file_orchestrator_service_proto_msgTypes[69] + mi := &file_orchestrator_service_proto_msgTypes[70] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -4593,7 +4705,7 @@ func (x *CleanEntityStorageRequest) String() string { func (*CleanEntityStorageRequest) ProtoMessage() {} func (x *CleanEntityStorageRequest) ProtoReflect() protoreflect.Message { - mi := &file_orchestrator_service_proto_msgTypes[69] + mi := &file_orchestrator_service_proto_msgTypes[70] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4606,10 +4718,10 @@ func (x *CleanEntityStorageRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use CleanEntityStorageRequest.ProtoReflect.Descriptor instead. func (*CleanEntityStorageRequest) Descriptor() ([]byte, []int) { - return file_orchestrator_service_proto_rawDescGZIP(), []int{69} + return file_orchestrator_service_proto_rawDescGZIP(), []int{70} } -func (x *CleanEntityStorageRequest) GetContinuationToken() *wrapperspb.StringValue { +func (x *CleanEntityStorageRequest) GetContinuationToken() *wrappers.StringValue { if x != nil { return x.ContinuationToken } @@ -4635,15 +4747,15 @@ type CleanEntityStorageResponse struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - ContinuationToken *wrapperspb.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"` + 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"` } func (x *CleanEntityStorageResponse) Reset() { *x = CleanEntityStorageResponse{} if protoimpl.UnsafeEnabled { - mi := &file_orchestrator_service_proto_msgTypes[70] + mi := &file_orchestrator_service_proto_msgTypes[71] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -4656,7 +4768,7 @@ func (x *CleanEntityStorageResponse) String() string { func (*CleanEntityStorageResponse) ProtoMessage() {} func (x *CleanEntityStorageResponse) ProtoReflect() protoreflect.Message { - mi := &file_orchestrator_service_proto_msgTypes[70] + mi := &file_orchestrator_service_proto_msgTypes[71] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4669,10 +4781,10 @@ func (x *CleanEntityStorageResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use CleanEntityStorageResponse.ProtoReflect.Descriptor instead. func (*CleanEntityStorageResponse) Descriptor() ([]byte, []int) { - return file_orchestrator_service_proto_rawDescGZIP(), []int{70} + return file_orchestrator_service_proto_rawDescGZIP(), []int{71} } -func (x *CleanEntityStorageResponse) GetContinuationToken() *wrapperspb.StringValue { +func (x *CleanEntityStorageResponse) GetContinuationToken() *wrappers.StringValue { if x != nil { return x.ContinuationToken } @@ -4698,13 +4810,13 @@ type OrchestratorEntityParameters struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - EntityMessageReorderWindow *durationpb.Duration `protobuf:"bytes,1,opt,name=entityMessageReorderWindow,proto3" json:"entityMessageReorderWindow,omitempty"` + EntityMessageReorderWindow *duration.Duration `protobuf:"bytes,1,opt,name=entityMessageReorderWindow,proto3" json:"entityMessageReorderWindow,omitempty"` } func (x *OrchestratorEntityParameters) Reset() { *x = OrchestratorEntityParameters{} if protoimpl.UnsafeEnabled { - mi := &file_orchestrator_service_proto_msgTypes[71] + mi := &file_orchestrator_service_proto_msgTypes[72] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -4717,7 +4829,7 @@ func (x *OrchestratorEntityParameters) String() string { func (*OrchestratorEntityParameters) ProtoMessage() {} func (x *OrchestratorEntityParameters) ProtoReflect() protoreflect.Message { - mi := &file_orchestrator_service_proto_msgTypes[71] + mi := &file_orchestrator_service_proto_msgTypes[72] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4730,10 +4842,10 @@ func (x *OrchestratorEntityParameters) ProtoReflect() protoreflect.Message { // Deprecated: Use OrchestratorEntityParameters.ProtoReflect.Descriptor instead. func (*OrchestratorEntityParameters) Descriptor() ([]byte, []int) { - return file_orchestrator_service_proto_rawDescGZIP(), []int{71} + return file_orchestrator_service_proto_rawDescGZIP(), []int{72} } -func (x *OrchestratorEntityParameters) GetEntityMessageReorderWindow() *durationpb.Duration { +func (x *OrchestratorEntityParameters) GetEntityMessageReorderWindow() *duration.Duration { if x != nil { return x.EntityMessageReorderWindow } @@ -4745,15 +4857,15 @@ type EntityBatchRequest struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - InstanceId string `protobuf:"bytes,1,opt,name=instanceId,proto3" json:"instanceId,omitempty"` - EntityState *wrapperspb.StringValue `protobuf:"bytes,2,opt,name=entityState,proto3" json:"entityState,omitempty"` - Operations []*OperationRequest `protobuf:"bytes,3,rep,name=operations,proto3" json:"operations,omitempty"` + 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 *EntityBatchRequest) Reset() { *x = EntityBatchRequest{} if protoimpl.UnsafeEnabled { - mi := &file_orchestrator_service_proto_msgTypes[72] + mi := &file_orchestrator_service_proto_msgTypes[73] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -4766,7 +4878,7 @@ func (x *EntityBatchRequest) String() string { func (*EntityBatchRequest) ProtoMessage() {} func (x *EntityBatchRequest) ProtoReflect() protoreflect.Message { - mi := &file_orchestrator_service_proto_msgTypes[72] + mi := &file_orchestrator_service_proto_msgTypes[73] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4779,7 +4891,7 @@ func (x *EntityBatchRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use EntityBatchRequest.ProtoReflect.Descriptor instead. func (*EntityBatchRequest) Descriptor() ([]byte, []int) { - return file_orchestrator_service_proto_rawDescGZIP(), []int{72} + return file_orchestrator_service_proto_rawDescGZIP(), []int{73} } func (x *EntityBatchRequest) GetInstanceId() string { @@ -4789,7 +4901,7 @@ func (x *EntityBatchRequest) GetInstanceId() string { return "" } -func (x *EntityBatchRequest) GetEntityState() *wrapperspb.StringValue { +func (x *EntityBatchRequest) GetEntityState() *wrappers.StringValue { if x != nil { return x.EntityState } @@ -4808,16 +4920,16 @@ type EntityBatchResult struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - 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 *wrapperspb.StringValue `protobuf:"bytes,3,opt,name=entityState,proto3" json:"entityState,omitempty"` - FailureDetails *TaskFailureDetails `protobuf:"bytes,4,opt,name=failureDetails,proto3" json:"failureDetails,omitempty"` + 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"` } func (x *EntityBatchResult) Reset() { *x = EntityBatchResult{} if protoimpl.UnsafeEnabled { - mi := &file_orchestrator_service_proto_msgTypes[73] + mi := &file_orchestrator_service_proto_msgTypes[74] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -4830,7 +4942,7 @@ func (x *EntityBatchResult) String() string { func (*EntityBatchResult) ProtoMessage() {} func (x *EntityBatchResult) ProtoReflect() protoreflect.Message { - mi := &file_orchestrator_service_proto_msgTypes[73] + mi := &file_orchestrator_service_proto_msgTypes[74] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4843,7 +4955,7 @@ func (x *EntityBatchResult) ProtoReflect() protoreflect.Message { // Deprecated: Use EntityBatchResult.ProtoReflect.Descriptor instead. func (*EntityBatchResult) Descriptor() ([]byte, []int) { - return file_orchestrator_service_proto_rawDescGZIP(), []int{73} + return file_orchestrator_service_proto_rawDescGZIP(), []int{74} } func (x *EntityBatchResult) GetResults() []*OperationResult { @@ -4860,7 +4972,7 @@ func (x *EntityBatchResult) GetActions() []*OperationAction { return nil } -func (x *EntityBatchResult) GetEntityState() *wrapperspb.StringValue { +func (x *EntityBatchResult) GetEntityState() *wrappers.StringValue { if x != nil { return x.EntityState } @@ -4879,15 +4991,15 @@ type OperationRequest struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - 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 *wrapperspb.StringValue `protobuf:"bytes,3,opt,name=input,proto3" json:"input,omitempty"` + 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"` } func (x *OperationRequest) Reset() { *x = OperationRequest{} if protoimpl.UnsafeEnabled { - mi := &file_orchestrator_service_proto_msgTypes[74] + mi := &file_orchestrator_service_proto_msgTypes[75] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -4900,7 +5012,7 @@ func (x *OperationRequest) String() string { func (*OperationRequest) ProtoMessage() {} func (x *OperationRequest) ProtoReflect() protoreflect.Message { - mi := &file_orchestrator_service_proto_msgTypes[74] + mi := &file_orchestrator_service_proto_msgTypes[75] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4913,7 +5025,7 @@ func (x *OperationRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use OperationRequest.ProtoReflect.Descriptor instead. func (*OperationRequest) Descriptor() ([]byte, []int) { - return file_orchestrator_service_proto_rawDescGZIP(), []int{74} + return file_orchestrator_service_proto_rawDescGZIP(), []int{75} } func (x *OperationRequest) GetOperation() string { @@ -4930,7 +5042,7 @@ func (x *OperationRequest) GetRequestId() string { return "" } -func (x *OperationRequest) GetInput() *wrapperspb.StringValue { +func (x *OperationRequest) GetInput() *wrappers.StringValue { if x != nil { return x.Input } @@ -4952,7 +5064,7 @@ type OperationResult struct { func (x *OperationResult) Reset() { *x = OperationResult{} if protoimpl.UnsafeEnabled { - mi := &file_orchestrator_service_proto_msgTypes[75] + mi := &file_orchestrator_service_proto_msgTypes[76] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -4965,7 +5077,7 @@ func (x *OperationResult) String() string { func (*OperationResult) ProtoMessage() {} func (x *OperationResult) ProtoReflect() protoreflect.Message { - mi := &file_orchestrator_service_proto_msgTypes[75] + mi := &file_orchestrator_service_proto_msgTypes[76] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4978,7 +5090,7 @@ func (x *OperationResult) ProtoReflect() protoreflect.Message { // Deprecated: Use OperationResult.ProtoReflect.Descriptor instead. func (*OperationResult) Descriptor() ([]byte, []int) { - return file_orchestrator_service_proto_rawDescGZIP(), []int{75} + return file_orchestrator_service_proto_rawDescGZIP(), []int{76} } func (m *OperationResult) GetResultType() isOperationResult_ResultType { @@ -5023,13 +5135,13 @@ type OperationResultSuccess struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Result *wrapperspb.StringValue `protobuf:"bytes,1,opt,name=result,proto3" json:"result,omitempty"` + Result *wrappers.StringValue `protobuf:"bytes,1,opt,name=result,proto3" json:"result,omitempty"` } func (x *OperationResultSuccess) Reset() { *x = OperationResultSuccess{} if protoimpl.UnsafeEnabled { - mi := &file_orchestrator_service_proto_msgTypes[76] + mi := &file_orchestrator_service_proto_msgTypes[77] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -5042,7 +5154,7 @@ func (x *OperationResultSuccess) String() string { func (*OperationResultSuccess) ProtoMessage() {} func (x *OperationResultSuccess) ProtoReflect() protoreflect.Message { - mi := &file_orchestrator_service_proto_msgTypes[76] + mi := &file_orchestrator_service_proto_msgTypes[77] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -5055,10 +5167,10 @@ func (x *OperationResultSuccess) ProtoReflect() protoreflect.Message { // Deprecated: Use OperationResultSuccess.ProtoReflect.Descriptor instead. func (*OperationResultSuccess) Descriptor() ([]byte, []int) { - return file_orchestrator_service_proto_rawDescGZIP(), []int{76} + return file_orchestrator_service_proto_rawDescGZIP(), []int{77} } -func (x *OperationResultSuccess) GetResult() *wrapperspb.StringValue { +func (x *OperationResultSuccess) GetResult() *wrappers.StringValue { if x != nil { return x.Result } @@ -5076,7 +5188,7 @@ type OperationResultFailure struct { func (x *OperationResultFailure) Reset() { *x = OperationResultFailure{} if protoimpl.UnsafeEnabled { - mi := &file_orchestrator_service_proto_msgTypes[77] + mi := &file_orchestrator_service_proto_msgTypes[78] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -5089,7 +5201,7 @@ func (x *OperationResultFailure) String() string { func (*OperationResultFailure) ProtoMessage() {} func (x *OperationResultFailure) ProtoReflect() protoreflect.Message { - mi := &file_orchestrator_service_proto_msgTypes[77] + mi := &file_orchestrator_service_proto_msgTypes[78] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -5102,7 +5214,7 @@ func (x *OperationResultFailure) ProtoReflect() protoreflect.Message { // Deprecated: Use OperationResultFailure.ProtoReflect.Descriptor instead. func (*OperationResultFailure) Descriptor() ([]byte, []int) { - return file_orchestrator_service_proto_rawDescGZIP(), []int{77} + return file_orchestrator_service_proto_rawDescGZIP(), []int{78} } func (x *OperationResultFailure) GetFailureDetails() *TaskFailureDetails { @@ -5128,7 +5240,7 @@ type OperationAction struct { func (x *OperationAction) Reset() { *x = OperationAction{} if protoimpl.UnsafeEnabled { - mi := &file_orchestrator_service_proto_msgTypes[78] + mi := &file_orchestrator_service_proto_msgTypes[79] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -5141,7 +5253,7 @@ func (x *OperationAction) String() string { func (*OperationAction) ProtoMessage() {} func (x *OperationAction) ProtoReflect() protoreflect.Message { - mi := &file_orchestrator_service_proto_msgTypes[78] + mi := &file_orchestrator_service_proto_msgTypes[79] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -5154,7 +5266,7 @@ func (x *OperationAction) ProtoReflect() protoreflect.Message { // Deprecated: Use OperationAction.ProtoReflect.Descriptor instead. func (*OperationAction) Descriptor() ([]byte, []int) { - return file_orchestrator_service_proto_rawDescGZIP(), []int{78} + return file_orchestrator_service_proto_rawDescGZIP(), []int{79} } func (x *OperationAction) GetId() int32 { @@ -5206,16 +5318,16 @@ type SendSignalAction struct { 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 *wrapperspb.StringValue `protobuf:"bytes,3,opt,name=input,proto3" json:"input,omitempty"` - ScheduledTime *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=scheduledTime,proto3" json:"scheduledTime,omitempty"` + 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"` } func (x *SendSignalAction) Reset() { *x = SendSignalAction{} if protoimpl.UnsafeEnabled { - mi := &file_orchestrator_service_proto_msgTypes[79] + mi := &file_orchestrator_service_proto_msgTypes[80] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -5228,7 +5340,7 @@ func (x *SendSignalAction) String() string { func (*SendSignalAction) ProtoMessage() {} func (x *SendSignalAction) ProtoReflect() protoreflect.Message { - mi := &file_orchestrator_service_proto_msgTypes[79] + mi := &file_orchestrator_service_proto_msgTypes[80] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -5241,7 +5353,7 @@ func (x *SendSignalAction) ProtoReflect() protoreflect.Message { // Deprecated: Use SendSignalAction.ProtoReflect.Descriptor instead. func (*SendSignalAction) Descriptor() ([]byte, []int) { - return file_orchestrator_service_proto_rawDescGZIP(), []int{79} + return file_orchestrator_service_proto_rawDescGZIP(), []int{80} } func (x *SendSignalAction) GetInstanceId() string { @@ -5258,14 +5370,14 @@ func (x *SendSignalAction) GetName() string { return "" } -func (x *SendSignalAction) GetInput() *wrapperspb.StringValue { +func (x *SendSignalAction) GetInput() *wrappers.StringValue { if x != nil { return x.Input } return nil } -func (x *SendSignalAction) GetScheduledTime() *timestamppb.Timestamp { +func (x *SendSignalAction) GetScheduledTime() *timestamp.Timestamp { if x != nil { return x.ScheduledTime } @@ -5277,17 +5389,17 @@ type StartNewOrchestrationAction struct { 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 *wrapperspb.StringValue `protobuf:"bytes,3,opt,name=version,proto3" json:"version,omitempty"` - Input *wrapperspb.StringValue `protobuf:"bytes,4,opt,name=input,proto3" json:"input,omitempty"` - ScheduledTime *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=scheduledTime,proto3" json:"scheduledTime,omitempty"` + 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"` } func (x *StartNewOrchestrationAction) Reset() { *x = StartNewOrchestrationAction{} if protoimpl.UnsafeEnabled { - mi := &file_orchestrator_service_proto_msgTypes[80] + mi := &file_orchestrator_service_proto_msgTypes[81] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -5300,7 +5412,7 @@ func (x *StartNewOrchestrationAction) String() string { func (*StartNewOrchestrationAction) ProtoMessage() {} func (x *StartNewOrchestrationAction) ProtoReflect() protoreflect.Message { - mi := &file_orchestrator_service_proto_msgTypes[80] + mi := &file_orchestrator_service_proto_msgTypes[81] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -5313,7 +5425,7 @@ func (x *StartNewOrchestrationAction) ProtoReflect() protoreflect.Message { // Deprecated: Use StartNewOrchestrationAction.ProtoReflect.Descriptor instead. func (*StartNewOrchestrationAction) Descriptor() ([]byte, []int) { - return file_orchestrator_service_proto_rawDescGZIP(), []int{80} + return file_orchestrator_service_proto_rawDescGZIP(), []int{81} } func (x *StartNewOrchestrationAction) GetInstanceId() string { @@ -5330,21 +5442,21 @@ func (x *StartNewOrchestrationAction) GetName() string { return "" } -func (x *StartNewOrchestrationAction) GetVersion() *wrapperspb.StringValue { +func (x *StartNewOrchestrationAction) GetVersion() *wrappers.StringValue { if x != nil { return x.Version } return nil } -func (x *StartNewOrchestrationAction) GetInput() *wrapperspb.StringValue { +func (x *StartNewOrchestrationAction) GetInput() *wrappers.StringValue { if x != nil { return x.Input } return nil } -func (x *StartNewOrchestrationAction) GetScheduledTime() *timestamppb.Timestamp { +func (x *StartNewOrchestrationAction) GetScheduledTime() *timestamp.Timestamp { if x != nil { return x.ScheduledTime } @@ -5360,7 +5472,7 @@ type GetWorkItemsRequest struct { func (x *GetWorkItemsRequest) Reset() { *x = GetWorkItemsRequest{} if protoimpl.UnsafeEnabled { - mi := &file_orchestrator_service_proto_msgTypes[81] + mi := &file_orchestrator_service_proto_msgTypes[82] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -5373,7 +5485,7 @@ func (x *GetWorkItemsRequest) String() string { func (*GetWorkItemsRequest) ProtoMessage() {} func (x *GetWorkItemsRequest) ProtoReflect() protoreflect.Message { - mi := &file_orchestrator_service_proto_msgTypes[81] + mi := &file_orchestrator_service_proto_msgTypes[82] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -5386,7 +5498,7 @@ func (x *GetWorkItemsRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use GetWorkItemsRequest.ProtoReflect.Descriptor instead. func (*GetWorkItemsRequest) Descriptor() ([]byte, []int) { - return file_orchestrator_service_proto_rawDescGZIP(), []int{81} + return file_orchestrator_service_proto_rawDescGZIP(), []int{82} } type WorkItem struct { @@ -5405,7 +5517,7 @@ type WorkItem struct { func (x *WorkItem) Reset() { *x = WorkItem{} if protoimpl.UnsafeEnabled { - mi := &file_orchestrator_service_proto_msgTypes[82] + mi := &file_orchestrator_service_proto_msgTypes[83] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -5418,7 +5530,7 @@ func (x *WorkItem) String() string { func (*WorkItem) ProtoMessage() {} func (x *WorkItem) ProtoReflect() protoreflect.Message { - mi := &file_orchestrator_service_proto_msgTypes[82] + mi := &file_orchestrator_service_proto_msgTypes[83] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -5431,7 +5543,7 @@ func (x *WorkItem) ProtoReflect() protoreflect.Message { // Deprecated: Use WorkItem.ProtoReflect.Descriptor instead. func (*WorkItem) Descriptor() ([]byte, []int) { - return file_orchestrator_service_proto_rawDescGZIP(), []int{82} + return file_orchestrator_service_proto_rawDescGZIP(), []int{83} } func (m *WorkItem) GetRequest() isWorkItem_Request { @@ -5493,7 +5605,7 @@ type CompleteTaskResponse struct { func (x *CompleteTaskResponse) Reset() { *x = CompleteTaskResponse{} if protoimpl.UnsafeEnabled { - mi := &file_orchestrator_service_proto_msgTypes[83] + mi := &file_orchestrator_service_proto_msgTypes[84] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -5506,7 +5618,7 @@ func (x *CompleteTaskResponse) String() string { func (*CompleteTaskResponse) ProtoMessage() {} func (x *CompleteTaskResponse) ProtoReflect() protoreflect.Message { - mi := &file_orchestrator_service_proto_msgTypes[83] + mi := &file_orchestrator_service_proto_msgTypes[84] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -5519,7 +5631,7 @@ func (x *CompleteTaskResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use CompleteTaskResponse.ProtoReflect.Descriptor instead. func (*CompleteTaskResponse) Descriptor() ([]byte, []int) { - return file_orchestrator_service_proto_rawDescGZIP(), []int{83} + return file_orchestrator_service_proto_rawDescGZIP(), []int{84} } var File_orchestrator_service_proto protoreflect.FileDescriptor @@ -6000,7 +6112,7 @@ var file_orchestrator_service_proto_rawDesc = []byte{ 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, 0x8d, 0x02, 0x0a, 0x15, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x49, 0x6e, 0x73, + 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, @@ -6017,7 +6129,22 @@ var file_orchestrator_service_proto_rawDesc = []byte{ 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, 0x22, 0x38, 0x0a, 0x16, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x49, 0x6e, 0x73, 0x74, + 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, @@ -6453,102 +6580,106 @@ var file_orchestrator_service_proto_rawDesc = []byte{ 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, 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, + 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, } var ( @@ -6563,307 +6694,312 @@ func file_orchestrator_service_proto_rawDescGZIP() []byte { return file_orchestrator_service_proto_rawDescData } -var file_orchestrator_service_proto_enumTypes = make([]protoimpl.EnumInfo, 1) -var file_orchestrator_service_proto_msgTypes = make([]protoimpl.MessageInfo, 84) +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 - (*OrchestrationInstance)(nil), // 1: OrchestrationInstance - (*ActivityRequest)(nil), // 2: ActivityRequest - (*ActivityResponse)(nil), // 3: ActivityResponse - (*TaskFailureDetails)(nil), // 4: TaskFailureDetails - (*ParentInstanceInfo)(nil), // 5: ParentInstanceInfo - (*TraceContext)(nil), // 6: TraceContext - (*ExecutionStartedEvent)(nil), // 7: ExecutionStartedEvent - (*ExecutionCompletedEvent)(nil), // 8: ExecutionCompletedEvent - (*ExecutionTerminatedEvent)(nil), // 9: ExecutionTerminatedEvent - (*TaskScheduledEvent)(nil), // 10: TaskScheduledEvent - (*TaskCompletedEvent)(nil), // 11: TaskCompletedEvent - (*TaskFailedEvent)(nil), // 12: TaskFailedEvent - (*SubOrchestrationInstanceCreatedEvent)(nil), // 13: SubOrchestrationInstanceCreatedEvent - (*SubOrchestrationInstanceCompletedEvent)(nil), // 14: SubOrchestrationInstanceCompletedEvent - (*SubOrchestrationInstanceFailedEvent)(nil), // 15: SubOrchestrationInstanceFailedEvent - (*TimerCreatedEvent)(nil), // 16: TimerCreatedEvent - (*TimerFiredEvent)(nil), // 17: TimerFiredEvent - (*OrchestratorStartedEvent)(nil), // 18: OrchestratorStartedEvent - (*OrchestratorCompletedEvent)(nil), // 19: OrchestratorCompletedEvent - (*EventSentEvent)(nil), // 20: EventSentEvent - (*EventRaisedEvent)(nil), // 21: EventRaisedEvent - (*GenericEvent)(nil), // 22: GenericEvent - (*HistoryStateEvent)(nil), // 23: HistoryStateEvent - (*ContinueAsNewEvent)(nil), // 24: ContinueAsNewEvent - (*ExecutionSuspendedEvent)(nil), // 25: ExecutionSuspendedEvent - (*ExecutionResumedEvent)(nil), // 26: ExecutionResumedEvent - (*HistoryEvent)(nil), // 27: HistoryEvent - (*ScheduleTaskAction)(nil), // 28: ScheduleTaskAction - (*CreateSubOrchestrationAction)(nil), // 29: CreateSubOrchestrationAction - (*CreateTimerAction)(nil), // 30: CreateTimerAction - (*SendEventAction)(nil), // 31: SendEventAction - (*CompleteOrchestrationAction)(nil), // 32: CompleteOrchestrationAction - (*TerminateOrchestrationAction)(nil), // 33: TerminateOrchestrationAction - (*OrchestratorAction)(nil), // 34: OrchestratorAction - (*OrchestratorRequest)(nil), // 35: OrchestratorRequest - (*OrchestratorResponse)(nil), // 36: OrchestratorResponse - (*CreateInstanceRequest)(nil), // 37: CreateInstanceRequest - (*CreateInstanceResponse)(nil), // 38: CreateInstanceResponse - (*GetInstanceRequest)(nil), // 39: GetInstanceRequest - (*GetInstanceResponse)(nil), // 40: GetInstanceResponse - (*RewindInstanceRequest)(nil), // 41: RewindInstanceRequest - (*RewindInstanceResponse)(nil), // 42: RewindInstanceResponse - (*OrchestrationState)(nil), // 43: OrchestrationState - (*RaiseEventRequest)(nil), // 44: RaiseEventRequest - (*RaiseEventResponse)(nil), // 45: RaiseEventResponse - (*TerminateRequest)(nil), // 46: TerminateRequest - (*TerminateResponse)(nil), // 47: TerminateResponse - (*SuspendRequest)(nil), // 48: SuspendRequest - (*SuspendResponse)(nil), // 49: SuspendResponse - (*ResumeRequest)(nil), // 50: ResumeRequest - (*ResumeResponse)(nil), // 51: ResumeResponse - (*QueryInstancesRequest)(nil), // 52: QueryInstancesRequest - (*InstanceQuery)(nil), // 53: InstanceQuery - (*QueryInstancesResponse)(nil), // 54: QueryInstancesResponse - (*PurgeInstancesRequest)(nil), // 55: PurgeInstancesRequest - (*PurgeInstanceFilter)(nil), // 56: PurgeInstanceFilter - (*PurgeInstancesResponse)(nil), // 57: PurgeInstancesResponse - (*CreateTaskHubRequest)(nil), // 58: CreateTaskHubRequest - (*CreateTaskHubResponse)(nil), // 59: CreateTaskHubResponse - (*DeleteTaskHubRequest)(nil), // 60: DeleteTaskHubRequest - (*DeleteTaskHubResponse)(nil), // 61: DeleteTaskHubResponse - (*SignalEntityRequest)(nil), // 62: SignalEntityRequest - (*SignalEntityResponse)(nil), // 63: SignalEntityResponse - (*GetEntityRequest)(nil), // 64: GetEntityRequest - (*GetEntityResponse)(nil), // 65: GetEntityResponse - (*EntityQuery)(nil), // 66: EntityQuery - (*QueryEntitiesRequest)(nil), // 67: QueryEntitiesRequest - (*QueryEntitiesResponse)(nil), // 68: QueryEntitiesResponse - (*EntityMetadata)(nil), // 69: EntityMetadata - (*CleanEntityStorageRequest)(nil), // 70: CleanEntityStorageRequest - (*CleanEntityStorageResponse)(nil), // 71: CleanEntityStorageResponse - (*OrchestratorEntityParameters)(nil), // 72: OrchestratorEntityParameters - (*EntityBatchRequest)(nil), // 73: EntityBatchRequest - (*EntityBatchResult)(nil), // 74: EntityBatchResult - (*OperationRequest)(nil), // 75: OperationRequest - (*OperationResult)(nil), // 76: OperationResult - (*OperationResultSuccess)(nil), // 77: OperationResultSuccess - (*OperationResultFailure)(nil), // 78: OperationResultFailure - (*OperationAction)(nil), // 79: OperationAction - (*SendSignalAction)(nil), // 80: SendSignalAction - (*StartNewOrchestrationAction)(nil), // 81: StartNewOrchestrationAction - (*GetWorkItemsRequest)(nil), // 82: GetWorkItemsRequest - (*WorkItem)(nil), // 83: WorkItem - (*CompleteTaskResponse)(nil), // 84: CompleteTaskResponse - (*wrapperspb.StringValue)(nil), // 85: google.protobuf.StringValue - (*timestamppb.Timestamp)(nil), // 86: google.protobuf.Timestamp - (*wrapperspb.Int32Value)(nil), // 87: google.protobuf.Int32Value - (*durationpb.Duration)(nil), // 88: google.protobuf.Duration - (*emptypb.Empty)(nil), // 89: google.protobuf.Empty + (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_depIdxs = []int32{ - 85, // 0: OrchestrationInstance.executionId:type_name -> google.protobuf.StringValue - 85, // 1: ActivityRequest.version:type_name -> google.protobuf.StringValue - 85, // 2: ActivityRequest.input:type_name -> google.protobuf.StringValue - 1, // 3: ActivityRequest.orchestrationInstance:type_name -> OrchestrationInstance - 85, // 4: ActivityResponse.result:type_name -> google.protobuf.StringValue - 4, // 5: ActivityResponse.failureDetails:type_name -> TaskFailureDetails - 85, // 6: TaskFailureDetails.stackTrace:type_name -> google.protobuf.StringValue - 4, // 7: TaskFailureDetails.innerFailure:type_name -> TaskFailureDetails - 85, // 8: ParentInstanceInfo.name:type_name -> google.protobuf.StringValue - 85, // 9: ParentInstanceInfo.version:type_name -> google.protobuf.StringValue - 1, // 10: ParentInstanceInfo.orchestrationInstance:type_name -> OrchestrationInstance - 85, // 11: TraceContext.traceState:type_name -> google.protobuf.StringValue - 85, // 12: ExecutionStartedEvent.version:type_name -> google.protobuf.StringValue - 85, // 13: ExecutionStartedEvent.input:type_name -> google.protobuf.StringValue - 1, // 14: ExecutionStartedEvent.orchestrationInstance:type_name -> OrchestrationInstance - 5, // 15: ExecutionStartedEvent.parentInstance:type_name -> ParentInstanceInfo - 86, // 16: ExecutionStartedEvent.scheduledStartTimestamp:type_name -> google.protobuf.Timestamp - 6, // 17: ExecutionStartedEvent.parentTraceContext:type_name -> TraceContext - 85, // 18: ExecutionStartedEvent.orchestrationSpanID:type_name -> google.protobuf.StringValue + 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 + 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 - 85, // 20: ExecutionCompletedEvent.result:type_name -> google.protobuf.StringValue - 4, // 21: ExecutionCompletedEvent.failureDetails:type_name -> TaskFailureDetails - 85, // 22: ExecutionTerminatedEvent.input:type_name -> google.protobuf.StringValue - 85, // 23: TaskScheduledEvent.version:type_name -> google.protobuf.StringValue - 85, // 24: TaskScheduledEvent.input:type_name -> google.protobuf.StringValue - 6, // 25: TaskScheduledEvent.parentTraceContext:type_name -> TraceContext - 85, // 26: TaskCompletedEvent.result:type_name -> google.protobuf.StringValue - 4, // 27: TaskFailedEvent.failureDetails:type_name -> TaskFailureDetails - 85, // 28: SubOrchestrationInstanceCreatedEvent.version:type_name -> google.protobuf.StringValue - 85, // 29: SubOrchestrationInstanceCreatedEvent.input:type_name -> google.protobuf.StringValue - 6, // 30: SubOrchestrationInstanceCreatedEvent.parentTraceContext:type_name -> TraceContext - 85, // 31: SubOrchestrationInstanceCompletedEvent.result:type_name -> google.protobuf.StringValue - 4, // 32: SubOrchestrationInstanceFailedEvent.failureDetails:type_name -> TaskFailureDetails - 86, // 33: TimerCreatedEvent.fireAt:type_name -> google.protobuf.Timestamp - 86, // 34: TimerFiredEvent.fireAt:type_name -> google.protobuf.Timestamp - 85, // 35: EventSentEvent.input:type_name -> google.protobuf.StringValue - 85, // 36: EventRaisedEvent.input:type_name -> google.protobuf.StringValue - 43, // 37: HistoryStateEvent.orchestrationState:type_name -> OrchestrationState - 85, // 38: ContinueAsNewEvent.input:type_name -> google.protobuf.StringValue - 85, // 39: ExecutionSuspendedEvent.input:type_name -> google.protobuf.StringValue - 85, // 40: ExecutionResumedEvent.input:type_name -> google.protobuf.StringValue - 86, // 41: HistoryEvent.timestamp:type_name -> google.protobuf.Timestamp - 7, // 42: HistoryEvent.executionStarted:type_name -> ExecutionStartedEvent - 8, // 43: HistoryEvent.executionCompleted:type_name -> ExecutionCompletedEvent - 9, // 44: HistoryEvent.executionTerminated:type_name -> ExecutionTerminatedEvent - 10, // 45: HistoryEvent.taskScheduled:type_name -> TaskScheduledEvent - 11, // 46: HistoryEvent.taskCompleted:type_name -> TaskCompletedEvent - 12, // 47: HistoryEvent.taskFailed:type_name -> TaskFailedEvent - 13, // 48: HistoryEvent.subOrchestrationInstanceCreated:type_name -> SubOrchestrationInstanceCreatedEvent - 14, // 49: HistoryEvent.subOrchestrationInstanceCompleted:type_name -> SubOrchestrationInstanceCompletedEvent - 15, // 50: HistoryEvent.subOrchestrationInstanceFailed:type_name -> SubOrchestrationInstanceFailedEvent - 16, // 51: HistoryEvent.timerCreated:type_name -> TimerCreatedEvent - 17, // 52: HistoryEvent.timerFired:type_name -> TimerFiredEvent - 18, // 53: HistoryEvent.orchestratorStarted:type_name -> OrchestratorStartedEvent - 19, // 54: HistoryEvent.orchestratorCompleted:type_name -> OrchestratorCompletedEvent - 20, // 55: HistoryEvent.eventSent:type_name -> EventSentEvent - 21, // 56: HistoryEvent.eventRaised:type_name -> EventRaisedEvent - 22, // 57: HistoryEvent.genericEvent:type_name -> GenericEvent - 23, // 58: HistoryEvent.historyState:type_name -> HistoryStateEvent - 24, // 59: HistoryEvent.continueAsNew:type_name -> ContinueAsNewEvent - 25, // 60: HistoryEvent.executionSuspended:type_name -> ExecutionSuspendedEvent - 26, // 61: HistoryEvent.executionResumed:type_name -> ExecutionResumedEvent - 85, // 62: ScheduleTaskAction.version:type_name -> google.protobuf.StringValue - 85, // 63: ScheduleTaskAction.input:type_name -> google.protobuf.StringValue - 85, // 64: CreateSubOrchestrationAction.version:type_name -> google.protobuf.StringValue - 85, // 65: CreateSubOrchestrationAction.input:type_name -> google.protobuf.StringValue - 86, // 66: CreateTimerAction.fireAt:type_name -> google.protobuf.Timestamp - 1, // 67: SendEventAction.instance:type_name -> OrchestrationInstance - 85, // 68: SendEventAction.data:type_name -> google.protobuf.StringValue + 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 + 45, // 37: HistoryStateEvent.orchestrationState:type_name -> OrchestrationState + 87, // 38: ContinueAsNewEvent.input:type_name -> google.protobuf.StringValue + 87, // 39: ExecutionSuspendedEvent.input:type_name -> google.protobuf.StringValue + 87, // 40: ExecutionResumedEvent.input:type_name -> google.protobuf.StringValue + 88, // 41: HistoryEvent.timestamp:type_name -> google.protobuf.Timestamp + 8, // 42: HistoryEvent.executionStarted:type_name -> ExecutionStartedEvent + 9, // 43: HistoryEvent.executionCompleted:type_name -> ExecutionCompletedEvent + 10, // 44: HistoryEvent.executionTerminated:type_name -> ExecutionTerminatedEvent + 11, // 45: HistoryEvent.taskScheduled:type_name -> TaskScheduledEvent + 12, // 46: HistoryEvent.taskCompleted:type_name -> TaskCompletedEvent + 13, // 47: HistoryEvent.taskFailed:type_name -> TaskFailedEvent + 14, // 48: HistoryEvent.subOrchestrationInstanceCreated:type_name -> SubOrchestrationInstanceCreatedEvent + 15, // 49: HistoryEvent.subOrchestrationInstanceCompleted:type_name -> SubOrchestrationInstanceCompletedEvent + 16, // 50: HistoryEvent.subOrchestrationInstanceFailed:type_name -> SubOrchestrationInstanceFailedEvent + 17, // 51: HistoryEvent.timerCreated:type_name -> TimerCreatedEvent + 18, // 52: HistoryEvent.timerFired:type_name -> TimerFiredEvent + 19, // 53: HistoryEvent.orchestratorStarted:type_name -> OrchestratorStartedEvent + 20, // 54: HistoryEvent.orchestratorCompleted:type_name -> OrchestratorCompletedEvent + 21, // 55: HistoryEvent.eventSent:type_name -> EventSentEvent + 22, // 56: HistoryEvent.eventRaised:type_name -> EventRaisedEvent + 23, // 57: HistoryEvent.genericEvent:type_name -> GenericEvent + 24, // 58: HistoryEvent.historyState:type_name -> HistoryStateEvent + 25, // 59: HistoryEvent.continueAsNew:type_name -> ContinueAsNewEvent + 26, // 60: HistoryEvent.executionSuspended:type_name -> ExecutionSuspendedEvent + 27, // 61: HistoryEvent.executionResumed:type_name -> ExecutionResumedEvent + 87, // 62: ScheduleTaskAction.version:type_name -> google.protobuf.StringValue + 87, // 63: ScheduleTaskAction.input:type_name -> google.protobuf.StringValue + 87, // 64: CreateSubOrchestrationAction.version:type_name -> google.protobuf.StringValue + 87, // 65: CreateSubOrchestrationAction.input:type_name -> google.protobuf.StringValue + 88, // 66: CreateTimerAction.fireAt:type_name -> google.protobuf.Timestamp + 2, // 67: SendEventAction.instance:type_name -> OrchestrationInstance + 87, // 68: SendEventAction.data:type_name -> google.protobuf.StringValue 0, // 69: CompleteOrchestrationAction.orchestrationStatus:type_name -> OrchestrationStatus - 85, // 70: CompleteOrchestrationAction.result:type_name -> google.protobuf.StringValue - 85, // 71: CompleteOrchestrationAction.details:type_name -> google.protobuf.StringValue - 85, // 72: CompleteOrchestrationAction.newVersion:type_name -> google.protobuf.StringValue - 27, // 73: CompleteOrchestrationAction.carryoverEvents:type_name -> HistoryEvent - 4, // 74: CompleteOrchestrationAction.failureDetails:type_name -> TaskFailureDetails - 85, // 75: TerminateOrchestrationAction.reason:type_name -> google.protobuf.StringValue - 28, // 76: OrchestratorAction.scheduleTask:type_name -> ScheduleTaskAction - 29, // 77: OrchestratorAction.createSubOrchestration:type_name -> CreateSubOrchestrationAction - 30, // 78: OrchestratorAction.createTimer:type_name -> CreateTimerAction - 31, // 79: OrchestratorAction.sendEvent:type_name -> SendEventAction - 32, // 80: OrchestratorAction.completeOrchestration:type_name -> CompleteOrchestrationAction - 33, // 81: OrchestratorAction.terminateOrchestration:type_name -> TerminateOrchestrationAction - 85, // 82: OrchestratorRequest.executionId:type_name -> google.protobuf.StringValue - 27, // 83: OrchestratorRequest.pastEvents:type_name -> HistoryEvent - 27, // 84: OrchestratorRequest.newEvents:type_name -> HistoryEvent - 72, // 85: OrchestratorRequest.entityParameters:type_name -> OrchestratorEntityParameters - 34, // 86: OrchestratorResponse.actions:type_name -> OrchestratorAction - 85, // 87: OrchestratorResponse.customStatus:type_name -> google.protobuf.StringValue - 85, // 88: CreateInstanceRequest.version:type_name -> google.protobuf.StringValue - 85, // 89: CreateInstanceRequest.input:type_name -> google.protobuf.StringValue - 86, // 90: CreateInstanceRequest.scheduledStartTimestamp:type_name -> google.protobuf.Timestamp - 43, // 91: GetInstanceResponse.orchestrationState:type_name -> OrchestrationState - 85, // 92: RewindInstanceRequest.reason:type_name -> google.protobuf.StringValue - 85, // 93: OrchestrationState.version:type_name -> google.protobuf.StringValue - 0, // 94: OrchestrationState.orchestrationStatus:type_name -> OrchestrationStatus - 86, // 95: OrchestrationState.scheduledStartTimestamp:type_name -> google.protobuf.Timestamp - 86, // 96: OrchestrationState.createdTimestamp:type_name -> google.protobuf.Timestamp - 86, // 97: OrchestrationState.lastUpdatedTimestamp:type_name -> google.protobuf.Timestamp - 85, // 98: OrchestrationState.input:type_name -> google.protobuf.StringValue - 85, // 99: OrchestrationState.output:type_name -> google.protobuf.StringValue - 85, // 100: OrchestrationState.customStatus:type_name -> google.protobuf.StringValue - 4, // 101: OrchestrationState.failureDetails:type_name -> TaskFailureDetails - 85, // 102: RaiseEventRequest.input:type_name -> google.protobuf.StringValue - 85, // 103: TerminateRequest.output:type_name -> google.protobuf.StringValue - 85, // 104: SuspendRequest.reason:type_name -> google.protobuf.StringValue - 85, // 105: ResumeRequest.reason:type_name -> google.protobuf.StringValue - 53, // 106: QueryInstancesRequest.query:type_name -> InstanceQuery - 0, // 107: InstanceQuery.runtimeStatus:type_name -> OrchestrationStatus - 86, // 108: InstanceQuery.createdTimeFrom:type_name -> google.protobuf.Timestamp - 86, // 109: InstanceQuery.createdTimeTo:type_name -> google.protobuf.Timestamp - 85, // 110: InstanceQuery.taskHubNames:type_name -> google.protobuf.StringValue - 85, // 111: InstanceQuery.continuationToken:type_name -> google.protobuf.StringValue - 85, // 112: InstanceQuery.instanceIdPrefix:type_name -> google.protobuf.StringValue - 43, // 113: QueryInstancesResponse.orchestrationState:type_name -> OrchestrationState - 85, // 114: QueryInstancesResponse.continuationToken:type_name -> google.protobuf.StringValue - 56, // 115: PurgeInstancesRequest.purgeInstanceFilter:type_name -> PurgeInstanceFilter - 86, // 116: PurgeInstanceFilter.createdTimeFrom:type_name -> google.protobuf.Timestamp - 86, // 117: PurgeInstanceFilter.createdTimeTo:type_name -> google.protobuf.Timestamp - 0, // 118: PurgeInstanceFilter.runtimeStatus:type_name -> OrchestrationStatus - 85, // 119: SignalEntityRequest.input:type_name -> google.protobuf.StringValue - 86, // 120: SignalEntityRequest.scheduledTime:type_name -> google.protobuf.Timestamp - 69, // 121: GetEntityResponse.entity:type_name -> EntityMetadata - 85, // 122: EntityQuery.instanceIdStartsWith:type_name -> google.protobuf.StringValue - 86, // 123: EntityQuery.lastModifiedFrom:type_name -> google.protobuf.Timestamp - 86, // 124: EntityQuery.lastModifiedTo:type_name -> google.protobuf.Timestamp - 87, // 125: EntityQuery.pageSize:type_name -> google.protobuf.Int32Value - 85, // 126: EntityQuery.continuationToken:type_name -> google.protobuf.StringValue - 66, // 127: QueryEntitiesRequest.query:type_name -> EntityQuery - 69, // 128: QueryEntitiesResponse.entities:type_name -> EntityMetadata - 85, // 129: QueryEntitiesResponse.continuationToken:type_name -> google.protobuf.StringValue - 86, // 130: EntityMetadata.lastModifiedTime:type_name -> google.protobuf.Timestamp - 85, // 131: EntityMetadata.lockedBy:type_name -> google.protobuf.StringValue - 85, // 132: EntityMetadata.serializedState:type_name -> google.protobuf.StringValue - 85, // 133: CleanEntityStorageRequest.continuationToken:type_name -> google.protobuf.StringValue - 85, // 134: CleanEntityStorageResponse.continuationToken:type_name -> google.protobuf.StringValue - 88, // 135: OrchestratorEntityParameters.entityMessageReorderWindow:type_name -> google.protobuf.Duration - 85, // 136: EntityBatchRequest.entityState:type_name -> google.protobuf.StringValue - 75, // 137: EntityBatchRequest.operations:type_name -> OperationRequest - 76, // 138: EntityBatchResult.results:type_name -> OperationResult - 79, // 139: EntityBatchResult.actions:type_name -> OperationAction - 85, // 140: EntityBatchResult.entityState:type_name -> google.protobuf.StringValue - 4, // 141: EntityBatchResult.failureDetails:type_name -> TaskFailureDetails - 85, // 142: OperationRequest.input:type_name -> google.protobuf.StringValue - 77, // 143: OperationResult.success:type_name -> OperationResultSuccess - 78, // 144: OperationResult.failure:type_name -> OperationResultFailure - 85, // 145: OperationResultSuccess.result:type_name -> google.protobuf.StringValue - 4, // 146: OperationResultFailure.failureDetails:type_name -> TaskFailureDetails - 80, // 147: OperationAction.sendSignal:type_name -> SendSignalAction - 81, // 148: OperationAction.startNewOrchestration:type_name -> StartNewOrchestrationAction - 85, // 149: SendSignalAction.input:type_name -> google.protobuf.StringValue - 86, // 150: SendSignalAction.scheduledTime:type_name -> google.protobuf.Timestamp - 85, // 151: StartNewOrchestrationAction.version:type_name -> google.protobuf.StringValue - 85, // 152: StartNewOrchestrationAction.input:type_name -> google.protobuf.StringValue - 86, // 153: StartNewOrchestrationAction.scheduledTime:type_name -> google.protobuf.Timestamp - 35, // 154: WorkItem.orchestratorRequest:type_name -> OrchestratorRequest - 2, // 155: WorkItem.activityRequest:type_name -> ActivityRequest - 73, // 156: WorkItem.entityRequest:type_name -> EntityBatchRequest - 89, // 157: TaskHubSidecarService.Hello:input_type -> google.protobuf.Empty - 37, // 158: TaskHubSidecarService.StartInstance:input_type -> CreateInstanceRequest - 39, // 159: TaskHubSidecarService.GetInstance:input_type -> GetInstanceRequest - 41, // 160: TaskHubSidecarService.RewindInstance:input_type -> RewindInstanceRequest - 39, // 161: TaskHubSidecarService.WaitForInstanceStart:input_type -> GetInstanceRequest - 39, // 162: TaskHubSidecarService.WaitForInstanceCompletion:input_type -> GetInstanceRequest - 44, // 163: TaskHubSidecarService.RaiseEvent:input_type -> RaiseEventRequest - 46, // 164: TaskHubSidecarService.TerminateInstance:input_type -> TerminateRequest - 48, // 165: TaskHubSidecarService.SuspendInstance:input_type -> SuspendRequest - 50, // 166: TaskHubSidecarService.ResumeInstance:input_type -> ResumeRequest - 52, // 167: TaskHubSidecarService.QueryInstances:input_type -> QueryInstancesRequest - 55, // 168: TaskHubSidecarService.PurgeInstances:input_type -> PurgeInstancesRequest - 82, // 169: TaskHubSidecarService.GetWorkItems:input_type -> GetWorkItemsRequest - 3, // 170: TaskHubSidecarService.CompleteActivityTask:input_type -> ActivityResponse - 36, // 171: TaskHubSidecarService.CompleteOrchestratorTask:input_type -> OrchestratorResponse - 74, // 172: TaskHubSidecarService.CompleteEntityTask:input_type -> EntityBatchResult - 58, // 173: TaskHubSidecarService.CreateTaskHub:input_type -> CreateTaskHubRequest - 60, // 174: TaskHubSidecarService.DeleteTaskHub:input_type -> DeleteTaskHubRequest - 62, // 175: TaskHubSidecarService.SignalEntity:input_type -> SignalEntityRequest - 64, // 176: TaskHubSidecarService.GetEntity:input_type -> GetEntityRequest - 67, // 177: TaskHubSidecarService.QueryEntities:input_type -> QueryEntitiesRequest - 70, // 178: TaskHubSidecarService.CleanEntityStorage:input_type -> CleanEntityStorageRequest - 89, // 179: TaskHubSidecarService.Hello:output_type -> google.protobuf.Empty - 38, // 180: TaskHubSidecarService.StartInstance:output_type -> CreateInstanceResponse - 40, // 181: TaskHubSidecarService.GetInstance:output_type -> GetInstanceResponse - 42, // 182: TaskHubSidecarService.RewindInstance:output_type -> RewindInstanceResponse - 40, // 183: TaskHubSidecarService.WaitForInstanceStart:output_type -> GetInstanceResponse - 40, // 184: TaskHubSidecarService.WaitForInstanceCompletion:output_type -> GetInstanceResponse - 45, // 185: TaskHubSidecarService.RaiseEvent:output_type -> RaiseEventResponse - 47, // 186: TaskHubSidecarService.TerminateInstance:output_type -> TerminateResponse - 49, // 187: TaskHubSidecarService.SuspendInstance:output_type -> SuspendResponse - 51, // 188: TaskHubSidecarService.ResumeInstance:output_type -> ResumeResponse - 54, // 189: TaskHubSidecarService.QueryInstances:output_type -> QueryInstancesResponse - 57, // 190: TaskHubSidecarService.PurgeInstances:output_type -> PurgeInstancesResponse - 83, // 191: TaskHubSidecarService.GetWorkItems:output_type -> WorkItem - 84, // 192: TaskHubSidecarService.CompleteActivityTask:output_type -> CompleteTaskResponse - 84, // 193: TaskHubSidecarService.CompleteOrchestratorTask:output_type -> CompleteTaskResponse - 84, // 194: TaskHubSidecarService.CompleteEntityTask:output_type -> CompleteTaskResponse - 59, // 195: TaskHubSidecarService.CreateTaskHub:output_type -> CreateTaskHubResponse - 61, // 196: TaskHubSidecarService.DeleteTaskHub:output_type -> DeleteTaskHubResponse - 63, // 197: TaskHubSidecarService.SignalEntity:output_type -> SignalEntityResponse - 65, // 198: TaskHubSidecarService.GetEntity:output_type -> GetEntityResponse - 68, // 199: TaskHubSidecarService.QueryEntities:output_type -> QueryEntitiesResponse - 71, // 200: TaskHubSidecarService.CleanEntityStorage:output_type -> CleanEntityStorageResponse - 179, // [179:201] is the sub-list for method output_type - 157, // [157:179] is the sub-list for method input_type - 157, // [157:157] is the sub-list for extension type_name - 157, // [157:157] is the sub-list for extension extendee - 0, // [0:157] is the sub-list for field type_name + 87, // 70: CompleteOrchestrationAction.result:type_name -> google.protobuf.StringValue + 87, // 71: CompleteOrchestrationAction.details:type_name -> google.protobuf.StringValue + 87, // 72: CompleteOrchestrationAction.newVersion:type_name -> google.protobuf.StringValue + 28, // 73: CompleteOrchestrationAction.carryoverEvents:type_name -> HistoryEvent + 5, // 74: CompleteOrchestrationAction.failureDetails:type_name -> TaskFailureDetails + 87, // 75: TerminateOrchestrationAction.reason:type_name -> google.protobuf.StringValue + 29, // 76: OrchestratorAction.scheduleTask:type_name -> ScheduleTaskAction + 30, // 77: OrchestratorAction.createSubOrchestration:type_name -> CreateSubOrchestrationAction + 31, // 78: OrchestratorAction.createTimer:type_name -> CreateTimerAction + 32, // 79: OrchestratorAction.sendEvent:type_name -> SendEventAction + 33, // 80: OrchestratorAction.completeOrchestration:type_name -> CompleteOrchestrationAction + 34, // 81: OrchestratorAction.terminateOrchestration:type_name -> TerminateOrchestrationAction + 87, // 82: OrchestratorRequest.executionId:type_name -> google.protobuf.StringValue + 28, // 83: OrchestratorRequest.pastEvents:type_name -> HistoryEvent + 28, // 84: OrchestratorRequest.newEvents:type_name -> HistoryEvent + 74, // 85: OrchestratorRequest.entityParameters:type_name -> OrchestratorEntityParameters + 35, // 86: OrchestratorResponse.actions:type_name -> OrchestratorAction + 87, // 87: OrchestratorResponse.customStatus:type_name -> google.protobuf.StringValue + 87, // 88: CreateInstanceRequest.version:type_name -> google.protobuf.StringValue + 87, // 89: CreateInstanceRequest.input:type_name -> google.protobuf.StringValue + 88, // 90: CreateInstanceRequest.scheduledStartTimestamp:type_name -> google.protobuf.Timestamp + 39, // 91: CreateInstanceRequest.orchestrationIdReusePolicy:type_name -> OrchestrationIdReusePolicy + 0, // 92: OrchestrationIdReusePolicy.operationStatus:type_name -> OrchestrationStatus + 1, // 93: OrchestrationIdReusePolicy.action:type_name -> CreateOrchestrationAction + 45, // 94: GetInstanceResponse.orchestrationState:type_name -> OrchestrationState + 87, // 95: RewindInstanceRequest.reason:type_name -> google.protobuf.StringValue + 87, // 96: OrchestrationState.version:type_name -> google.protobuf.StringValue + 0, // 97: OrchestrationState.orchestrationStatus:type_name -> OrchestrationStatus + 88, // 98: OrchestrationState.scheduledStartTimestamp:type_name -> google.protobuf.Timestamp + 88, // 99: OrchestrationState.createdTimestamp:type_name -> google.protobuf.Timestamp + 88, // 100: OrchestrationState.lastUpdatedTimestamp:type_name -> google.protobuf.Timestamp + 87, // 101: OrchestrationState.input:type_name -> google.protobuf.StringValue + 87, // 102: OrchestrationState.output:type_name -> google.protobuf.StringValue + 87, // 103: OrchestrationState.customStatus:type_name -> google.protobuf.StringValue + 5, // 104: OrchestrationState.failureDetails:type_name -> TaskFailureDetails + 87, // 105: RaiseEventRequest.input:type_name -> google.protobuf.StringValue + 87, // 106: TerminateRequest.output:type_name -> google.protobuf.StringValue + 87, // 107: SuspendRequest.reason:type_name -> google.protobuf.StringValue + 87, // 108: ResumeRequest.reason:type_name -> google.protobuf.StringValue + 55, // 109: QueryInstancesRequest.query:type_name -> InstanceQuery + 0, // 110: InstanceQuery.runtimeStatus:type_name -> OrchestrationStatus + 88, // 111: InstanceQuery.createdTimeFrom:type_name -> google.protobuf.Timestamp + 88, // 112: InstanceQuery.createdTimeTo:type_name -> google.protobuf.Timestamp + 87, // 113: InstanceQuery.taskHubNames:type_name -> google.protobuf.StringValue + 87, // 114: InstanceQuery.continuationToken:type_name -> google.protobuf.StringValue + 87, // 115: InstanceQuery.instanceIdPrefix:type_name -> google.protobuf.StringValue + 45, // 116: QueryInstancesResponse.orchestrationState:type_name -> OrchestrationState + 87, // 117: QueryInstancesResponse.continuationToken:type_name -> google.protobuf.StringValue + 58, // 118: PurgeInstancesRequest.purgeInstanceFilter:type_name -> PurgeInstanceFilter + 88, // 119: PurgeInstanceFilter.createdTimeFrom:type_name -> google.protobuf.Timestamp + 88, // 120: PurgeInstanceFilter.createdTimeTo:type_name -> google.protobuf.Timestamp + 0, // 121: PurgeInstanceFilter.runtimeStatus:type_name -> OrchestrationStatus + 87, // 122: SignalEntityRequest.input:type_name -> google.protobuf.StringValue + 88, // 123: SignalEntityRequest.scheduledTime:type_name -> google.protobuf.Timestamp + 71, // 124: GetEntityResponse.entity:type_name -> EntityMetadata + 87, // 125: EntityQuery.instanceIdStartsWith:type_name -> google.protobuf.StringValue + 88, // 126: EntityQuery.lastModifiedFrom:type_name -> google.protobuf.Timestamp + 88, // 127: EntityQuery.lastModifiedTo:type_name -> google.protobuf.Timestamp + 89, // 128: EntityQuery.pageSize:type_name -> google.protobuf.Int32Value + 87, // 129: EntityQuery.continuationToken:type_name -> google.protobuf.StringValue + 68, // 130: QueryEntitiesRequest.query:type_name -> EntityQuery + 71, // 131: QueryEntitiesResponse.entities:type_name -> EntityMetadata + 87, // 132: QueryEntitiesResponse.continuationToken:type_name -> google.protobuf.StringValue + 88, // 133: EntityMetadata.lastModifiedTime:type_name -> google.protobuf.Timestamp + 87, // 134: EntityMetadata.lockedBy:type_name -> google.protobuf.StringValue + 87, // 135: EntityMetadata.serializedState:type_name -> google.protobuf.StringValue + 87, // 136: CleanEntityStorageRequest.continuationToken:type_name -> google.protobuf.StringValue + 87, // 137: CleanEntityStorageResponse.continuationToken:type_name -> google.protobuf.StringValue + 90, // 138: OrchestratorEntityParameters.entityMessageReorderWindow:type_name -> google.protobuf.Duration + 87, // 139: EntityBatchRequest.entityState:type_name -> google.protobuf.StringValue + 77, // 140: EntityBatchRequest.operations:type_name -> OperationRequest + 78, // 141: EntityBatchResult.results:type_name -> OperationResult + 81, // 142: EntityBatchResult.actions:type_name -> OperationAction + 87, // 143: EntityBatchResult.entityState:type_name -> google.protobuf.StringValue + 5, // 144: EntityBatchResult.failureDetails:type_name -> TaskFailureDetails + 87, // 145: OperationRequest.input:type_name -> google.protobuf.StringValue + 79, // 146: OperationResult.success:type_name -> OperationResultSuccess + 80, // 147: OperationResult.failure:type_name -> OperationResultFailure + 87, // 148: OperationResultSuccess.result:type_name -> google.protobuf.StringValue + 5, // 149: OperationResultFailure.failureDetails:type_name -> TaskFailureDetails + 82, // 150: OperationAction.sendSignal:type_name -> SendSignalAction + 83, // 151: OperationAction.startNewOrchestration:type_name -> StartNewOrchestrationAction + 87, // 152: SendSignalAction.input:type_name -> google.protobuf.StringValue + 88, // 153: SendSignalAction.scheduledTime:type_name -> google.protobuf.Timestamp + 87, // 154: StartNewOrchestrationAction.version:type_name -> google.protobuf.StringValue + 87, // 155: StartNewOrchestrationAction.input:type_name -> google.protobuf.StringValue + 88, // 156: StartNewOrchestrationAction.scheduledTime:type_name -> google.protobuf.Timestamp + 36, // 157: WorkItem.orchestratorRequest:type_name -> OrchestratorRequest + 3, // 158: WorkItem.activityRequest:type_name -> ActivityRequest + 75, // 159: WorkItem.entityRequest:type_name -> EntityBatchRequest + 91, // 160: TaskHubSidecarService.Hello:input_type -> google.protobuf.Empty + 38, // 161: TaskHubSidecarService.StartInstance:input_type -> CreateInstanceRequest + 41, // 162: TaskHubSidecarService.GetInstance:input_type -> GetInstanceRequest + 43, // 163: TaskHubSidecarService.RewindInstance:input_type -> RewindInstanceRequest + 41, // 164: TaskHubSidecarService.WaitForInstanceStart:input_type -> GetInstanceRequest + 41, // 165: TaskHubSidecarService.WaitForInstanceCompletion:input_type -> GetInstanceRequest + 46, // 166: TaskHubSidecarService.RaiseEvent:input_type -> RaiseEventRequest + 48, // 167: TaskHubSidecarService.TerminateInstance:input_type -> TerminateRequest + 50, // 168: TaskHubSidecarService.SuspendInstance:input_type -> SuspendRequest + 52, // 169: TaskHubSidecarService.ResumeInstance:input_type -> ResumeRequest + 54, // 170: TaskHubSidecarService.QueryInstances:input_type -> QueryInstancesRequest + 57, // 171: TaskHubSidecarService.PurgeInstances:input_type -> PurgeInstancesRequest + 84, // 172: TaskHubSidecarService.GetWorkItems:input_type -> GetWorkItemsRequest + 4, // 173: TaskHubSidecarService.CompleteActivityTask:input_type -> ActivityResponse + 37, // 174: TaskHubSidecarService.CompleteOrchestratorTask:input_type -> OrchestratorResponse + 76, // 175: TaskHubSidecarService.CompleteEntityTask:input_type -> EntityBatchResult + 60, // 176: TaskHubSidecarService.CreateTaskHub:input_type -> CreateTaskHubRequest + 62, // 177: TaskHubSidecarService.DeleteTaskHub:input_type -> DeleteTaskHubRequest + 64, // 178: TaskHubSidecarService.SignalEntity:input_type -> SignalEntityRequest + 66, // 179: TaskHubSidecarService.GetEntity:input_type -> GetEntityRequest + 69, // 180: TaskHubSidecarService.QueryEntities:input_type -> QueryEntitiesRequest + 72, // 181: TaskHubSidecarService.CleanEntityStorage:input_type -> CleanEntityStorageRequest + 91, // 182: TaskHubSidecarService.Hello:output_type -> google.protobuf.Empty + 40, // 183: TaskHubSidecarService.StartInstance:output_type -> CreateInstanceResponse + 42, // 184: TaskHubSidecarService.GetInstance:output_type -> GetInstanceResponse + 44, // 185: TaskHubSidecarService.RewindInstance:output_type -> RewindInstanceResponse + 42, // 186: TaskHubSidecarService.WaitForInstanceStart:output_type -> GetInstanceResponse + 42, // 187: TaskHubSidecarService.WaitForInstanceCompletion:output_type -> GetInstanceResponse + 47, // 188: TaskHubSidecarService.RaiseEvent:output_type -> RaiseEventResponse + 49, // 189: TaskHubSidecarService.TerminateInstance:output_type -> TerminateResponse + 51, // 190: TaskHubSidecarService.SuspendInstance:output_type -> SuspendResponse + 53, // 191: TaskHubSidecarService.ResumeInstance:output_type -> ResumeResponse + 56, // 192: TaskHubSidecarService.QueryInstances:output_type -> QueryInstancesResponse + 59, // 193: TaskHubSidecarService.PurgeInstances:output_type -> PurgeInstancesResponse + 85, // 194: TaskHubSidecarService.GetWorkItems:output_type -> WorkItem + 86, // 195: TaskHubSidecarService.CompleteActivityTask:output_type -> CompleteTaskResponse + 86, // 196: TaskHubSidecarService.CompleteOrchestratorTask:output_type -> CompleteTaskResponse + 86, // 197: TaskHubSidecarService.CompleteEntityTask:output_type -> CompleteTaskResponse + 61, // 198: TaskHubSidecarService.CreateTaskHub:output_type -> CreateTaskHubResponse + 63, // 199: TaskHubSidecarService.DeleteTaskHub:output_type -> DeleteTaskHubResponse + 65, // 200: TaskHubSidecarService.SignalEntity:output_type -> SignalEntityResponse + 67, // 201: TaskHubSidecarService.GetEntity:output_type -> GetEntityResponse + 70, // 202: TaskHubSidecarService.QueryEntities:output_type -> QueryEntitiesResponse + 73, // 203: TaskHubSidecarService.CleanEntityStorage:output_type -> CleanEntityStorageResponse + 182, // [182:204] is the sub-list for method output_type + 160, // [160:182] is the sub-list for method input_type + 160, // [160:160] is the sub-list for extension type_name + 160, // [160:160] is the sub-list for extension extendee + 0, // [0:160] is the sub-list for field type_name } func init() { file_orchestrator_service_proto_init() } @@ -7317,7 +7453,7 @@ func file_orchestrator_service_proto_init() { } } file_orchestrator_service_proto_msgTypes[37].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CreateInstanceResponse); i { + switch v := v.(*OrchestrationIdReusePolicy); i { case 0: return &v.state case 1: @@ -7329,7 +7465,7 @@ func file_orchestrator_service_proto_init() { } } file_orchestrator_service_proto_msgTypes[38].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetInstanceRequest); i { + switch v := v.(*CreateInstanceResponse); i { case 0: return &v.state case 1: @@ -7341,7 +7477,7 @@ func file_orchestrator_service_proto_init() { } } file_orchestrator_service_proto_msgTypes[39].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetInstanceResponse); i { + switch v := v.(*GetInstanceRequest); i { case 0: return &v.state case 1: @@ -7353,7 +7489,7 @@ func file_orchestrator_service_proto_init() { } } file_orchestrator_service_proto_msgTypes[40].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*RewindInstanceRequest); i { + switch v := v.(*GetInstanceResponse); i { case 0: return &v.state case 1: @@ -7365,7 +7501,7 @@ func file_orchestrator_service_proto_init() { } } file_orchestrator_service_proto_msgTypes[41].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*RewindInstanceResponse); i { + switch v := v.(*RewindInstanceRequest); i { case 0: return &v.state case 1: @@ -7377,7 +7513,7 @@ func file_orchestrator_service_proto_init() { } } file_orchestrator_service_proto_msgTypes[42].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*OrchestrationState); i { + switch v := v.(*RewindInstanceResponse); i { case 0: return &v.state case 1: @@ -7389,7 +7525,7 @@ func file_orchestrator_service_proto_init() { } } file_orchestrator_service_proto_msgTypes[43].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*RaiseEventRequest); i { + switch v := v.(*OrchestrationState); i { case 0: return &v.state case 1: @@ -7401,7 +7537,7 @@ func file_orchestrator_service_proto_init() { } } file_orchestrator_service_proto_msgTypes[44].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*RaiseEventResponse); i { + switch v := v.(*RaiseEventRequest); i { case 0: return &v.state case 1: @@ -7413,7 +7549,7 @@ func file_orchestrator_service_proto_init() { } } file_orchestrator_service_proto_msgTypes[45].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*TerminateRequest); i { + switch v := v.(*RaiseEventResponse); i { case 0: return &v.state case 1: @@ -7425,7 +7561,7 @@ func file_orchestrator_service_proto_init() { } } file_orchestrator_service_proto_msgTypes[46].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*TerminateResponse); i { + switch v := v.(*TerminateRequest); i { case 0: return &v.state case 1: @@ -7437,7 +7573,7 @@ func file_orchestrator_service_proto_init() { } } file_orchestrator_service_proto_msgTypes[47].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*SuspendRequest); i { + switch v := v.(*TerminateResponse); i { case 0: return &v.state case 1: @@ -7449,7 +7585,7 @@ func file_orchestrator_service_proto_init() { } } file_orchestrator_service_proto_msgTypes[48].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*SuspendResponse); i { + switch v := v.(*SuspendRequest); i { case 0: return &v.state case 1: @@ -7461,7 +7597,7 @@ func file_orchestrator_service_proto_init() { } } file_orchestrator_service_proto_msgTypes[49].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ResumeRequest); i { + switch v := v.(*SuspendResponse); i { case 0: return &v.state case 1: @@ -7473,7 +7609,7 @@ func file_orchestrator_service_proto_init() { } } file_orchestrator_service_proto_msgTypes[50].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ResumeResponse); i { + switch v := v.(*ResumeRequest); i { case 0: return &v.state case 1: @@ -7485,7 +7621,7 @@ func file_orchestrator_service_proto_init() { } } file_orchestrator_service_proto_msgTypes[51].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QueryInstancesRequest); i { + switch v := v.(*ResumeResponse); i { case 0: return &v.state case 1: @@ -7497,7 +7633,7 @@ func file_orchestrator_service_proto_init() { } } file_orchestrator_service_proto_msgTypes[52].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*InstanceQuery); i { + switch v := v.(*QueryInstancesRequest); i { case 0: return &v.state case 1: @@ -7509,7 +7645,7 @@ func file_orchestrator_service_proto_init() { } } file_orchestrator_service_proto_msgTypes[53].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QueryInstancesResponse); i { + switch v := v.(*InstanceQuery); i { case 0: return &v.state case 1: @@ -7521,7 +7657,7 @@ func file_orchestrator_service_proto_init() { } } file_orchestrator_service_proto_msgTypes[54].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*PurgeInstancesRequest); i { + switch v := v.(*QueryInstancesResponse); i { case 0: return &v.state case 1: @@ -7533,7 +7669,7 @@ func file_orchestrator_service_proto_init() { } } file_orchestrator_service_proto_msgTypes[55].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*PurgeInstanceFilter); i { + switch v := v.(*PurgeInstancesRequest); i { case 0: return &v.state case 1: @@ -7545,7 +7681,7 @@ func file_orchestrator_service_proto_init() { } } file_orchestrator_service_proto_msgTypes[56].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*PurgeInstancesResponse); i { + switch v := v.(*PurgeInstanceFilter); i { case 0: return &v.state case 1: @@ -7557,7 +7693,7 @@ func file_orchestrator_service_proto_init() { } } file_orchestrator_service_proto_msgTypes[57].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CreateTaskHubRequest); i { + switch v := v.(*PurgeInstancesResponse); i { case 0: return &v.state case 1: @@ -7569,7 +7705,7 @@ func file_orchestrator_service_proto_init() { } } file_orchestrator_service_proto_msgTypes[58].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CreateTaskHubResponse); i { + switch v := v.(*CreateTaskHubRequest); i { case 0: return &v.state case 1: @@ -7581,7 +7717,7 @@ func file_orchestrator_service_proto_init() { } } file_orchestrator_service_proto_msgTypes[59].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*DeleteTaskHubRequest); i { + switch v := v.(*CreateTaskHubResponse); i { case 0: return &v.state case 1: @@ -7593,7 +7729,7 @@ func file_orchestrator_service_proto_init() { } } file_orchestrator_service_proto_msgTypes[60].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*DeleteTaskHubResponse); i { + switch v := v.(*DeleteTaskHubRequest); i { case 0: return &v.state case 1: @@ -7605,7 +7741,7 @@ func file_orchestrator_service_proto_init() { } } file_orchestrator_service_proto_msgTypes[61].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*SignalEntityRequest); i { + switch v := v.(*DeleteTaskHubResponse); i { case 0: return &v.state case 1: @@ -7617,7 +7753,7 @@ func file_orchestrator_service_proto_init() { } } file_orchestrator_service_proto_msgTypes[62].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*SignalEntityResponse); i { + switch v := v.(*SignalEntityRequest); i { case 0: return &v.state case 1: @@ -7629,7 +7765,7 @@ func file_orchestrator_service_proto_init() { } } file_orchestrator_service_proto_msgTypes[63].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetEntityRequest); i { + switch v := v.(*SignalEntityResponse); i { case 0: return &v.state case 1: @@ -7641,7 +7777,7 @@ func file_orchestrator_service_proto_init() { } } file_orchestrator_service_proto_msgTypes[64].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetEntityResponse); i { + switch v := v.(*GetEntityRequest); i { case 0: return &v.state case 1: @@ -7653,7 +7789,7 @@ func file_orchestrator_service_proto_init() { } } file_orchestrator_service_proto_msgTypes[65].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*EntityQuery); i { + switch v := v.(*GetEntityResponse); i { case 0: return &v.state case 1: @@ -7665,7 +7801,7 @@ func file_orchestrator_service_proto_init() { } } file_orchestrator_service_proto_msgTypes[66].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QueryEntitiesRequest); i { + switch v := v.(*EntityQuery); i { case 0: return &v.state case 1: @@ -7677,7 +7813,7 @@ func file_orchestrator_service_proto_init() { } } file_orchestrator_service_proto_msgTypes[67].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QueryEntitiesResponse); i { + switch v := v.(*QueryEntitiesRequest); i { case 0: return &v.state case 1: @@ -7689,7 +7825,7 @@ func file_orchestrator_service_proto_init() { } } file_orchestrator_service_proto_msgTypes[68].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*EntityMetadata); i { + switch v := v.(*QueryEntitiesResponse); i { case 0: return &v.state case 1: @@ -7701,7 +7837,7 @@ func file_orchestrator_service_proto_init() { } } file_orchestrator_service_proto_msgTypes[69].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CleanEntityStorageRequest); i { + switch v := v.(*EntityMetadata); i { case 0: return &v.state case 1: @@ -7713,7 +7849,7 @@ func file_orchestrator_service_proto_init() { } } file_orchestrator_service_proto_msgTypes[70].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CleanEntityStorageResponse); i { + switch v := v.(*CleanEntityStorageRequest); i { case 0: return &v.state case 1: @@ -7725,7 +7861,7 @@ func file_orchestrator_service_proto_init() { } } file_orchestrator_service_proto_msgTypes[71].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*OrchestratorEntityParameters); i { + switch v := v.(*CleanEntityStorageResponse); i { case 0: return &v.state case 1: @@ -7737,7 +7873,7 @@ func file_orchestrator_service_proto_init() { } } file_orchestrator_service_proto_msgTypes[72].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*EntityBatchRequest); i { + switch v := v.(*OrchestratorEntityParameters); i { case 0: return &v.state case 1: @@ -7749,7 +7885,7 @@ func file_orchestrator_service_proto_init() { } } file_orchestrator_service_proto_msgTypes[73].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*EntityBatchResult); i { + switch v := v.(*EntityBatchRequest); i { case 0: return &v.state case 1: @@ -7761,7 +7897,7 @@ func file_orchestrator_service_proto_init() { } } file_orchestrator_service_proto_msgTypes[74].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*OperationRequest); i { + switch v := v.(*EntityBatchResult); i { case 0: return &v.state case 1: @@ -7773,7 +7909,7 @@ func file_orchestrator_service_proto_init() { } } file_orchestrator_service_proto_msgTypes[75].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*OperationResult); i { + switch v := v.(*OperationRequest); i { case 0: return &v.state case 1: @@ -7785,7 +7921,7 @@ func file_orchestrator_service_proto_init() { } } file_orchestrator_service_proto_msgTypes[76].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*OperationResultSuccess); i { + switch v := v.(*OperationResult); i { case 0: return &v.state case 1: @@ -7797,7 +7933,7 @@ func file_orchestrator_service_proto_init() { } } file_orchestrator_service_proto_msgTypes[77].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*OperationResultFailure); i { + switch v := v.(*OperationResultSuccess); i { case 0: return &v.state case 1: @@ -7809,7 +7945,7 @@ func file_orchestrator_service_proto_init() { } } file_orchestrator_service_proto_msgTypes[78].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*OperationAction); i { + switch v := v.(*OperationResultFailure); i { case 0: return &v.state case 1: @@ -7821,7 +7957,7 @@ func file_orchestrator_service_proto_init() { } } file_orchestrator_service_proto_msgTypes[79].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*SendSignalAction); i { + switch v := v.(*OperationAction); i { case 0: return &v.state case 1: @@ -7833,7 +7969,7 @@ func file_orchestrator_service_proto_init() { } } file_orchestrator_service_proto_msgTypes[80].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*StartNewOrchestrationAction); i { + switch v := v.(*SendSignalAction); i { case 0: return &v.state case 1: @@ -7845,7 +7981,7 @@ func file_orchestrator_service_proto_init() { } } file_orchestrator_service_proto_msgTypes[81].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetWorkItemsRequest); i { + switch v := v.(*StartNewOrchestrationAction); i { case 0: return &v.state case 1: @@ -7857,7 +7993,7 @@ func file_orchestrator_service_proto_init() { } } file_orchestrator_service_proto_msgTypes[82].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*WorkItem); i { + switch v := v.(*GetWorkItemsRequest); i { case 0: return &v.state case 1: @@ -7869,6 +8005,18 @@ func file_orchestrator_service_proto_init() { } } 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 @@ -7911,19 +8059,19 @@ func file_orchestrator_service_proto_init() { (*OrchestratorAction_CompleteOrchestration)(nil), (*OrchestratorAction_TerminateOrchestration)(nil), } - file_orchestrator_service_proto_msgTypes[54].OneofWrappers = []interface{}{ + file_orchestrator_service_proto_msgTypes[55].OneofWrappers = []interface{}{ (*PurgeInstancesRequest_InstanceId)(nil), (*PurgeInstancesRequest_PurgeInstanceFilter)(nil), } - file_orchestrator_service_proto_msgTypes[75].OneofWrappers = []interface{}{ + file_orchestrator_service_proto_msgTypes[76].OneofWrappers = []interface{}{ (*OperationResult_Success)(nil), (*OperationResult_Failure)(nil), } - file_orchestrator_service_proto_msgTypes[78].OneofWrappers = []interface{}{ + file_orchestrator_service_proto_msgTypes[79].OneofWrappers = []interface{}{ (*OperationAction_SendSignal)(nil), (*OperationAction_StartNewOrchestration)(nil), } - file_orchestrator_service_proto_msgTypes[82].OneofWrappers = []interface{}{ + file_orchestrator_service_proto_msgTypes[83].OneofWrappers = []interface{}{ (*WorkItem_OrchestratorRequest)(nil), (*WorkItem_ActivityRequest)(nil), (*WorkItem_EntityRequest)(nil), @@ -7933,8 +8081,8 @@ func file_orchestrator_service_proto_init() { File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: file_orchestrator_service_proto_rawDesc, - NumEnums: 1, - NumMessages: 84, + NumEnums: 2, + NumMessages: 85, NumExtensions: 0, NumServices: 1, }, diff --git a/internal/protos/orchestrator_service_grpc.pb.go b/internal/protos/orchestrator_service_grpc.pb.go index 442a677..a353d74 100644 --- a/internal/protos/orchestrator_service_grpc.pb.go +++ b/internal/protos/orchestrator_service_grpc.pb.go @@ -1,17 +1,17 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: // - protoc-gen-go-grpc v1.2.0 -// - protoc v3.21.12 +// - protoc v3.12.4 // source: orchestrator_service.proto package protos import ( context "context" + empty "github.com/golang/protobuf/ptypes/empty" grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" - emptypb "google.golang.org/protobuf/types/known/emptypb" ) // This is a compile-time assertion to ensure that this generated file @@ -24,7 +24,7 @@ const _ = grpc.SupportPackageIsVersion7 // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. type TaskHubSidecarServiceClient interface { // Sends a hello request to the sidecar service. - Hello(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*emptypb.Empty, error) + Hello(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*empty.Empty, error) // Starts a new orchestration instance. StartInstance(ctx context.Context, in *CreateInstanceRequest, opts ...grpc.CallOption) (*CreateInstanceResponse, error) // Gets the status of an existing orchestration instance. @@ -71,8 +71,8 @@ func NewTaskHubSidecarServiceClient(cc grpc.ClientConnInterface) TaskHubSidecarS return &taskHubSidecarServiceClient{cc} } -func (c *taskHubSidecarServiceClient) Hello(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*emptypb.Empty, error) { - out := new(emptypb.Empty) +func (c *taskHubSidecarServiceClient) Hello(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*empty.Empty, error) { + out := new(empty.Empty) err := c.cc.Invoke(ctx, "/TaskHubSidecarService/Hello", in, out, opts...) if err != nil { return nil, err @@ -297,7 +297,7 @@ func (c *taskHubSidecarServiceClient) CleanEntityStorage(ctx context.Context, in // for forward compatibility type TaskHubSidecarServiceServer interface { // Sends a hello request to the sidecar service. - Hello(context.Context, *emptypb.Empty) (*emptypb.Empty, error) + Hello(context.Context, *empty.Empty) (*empty.Empty, error) // Starts a new orchestration instance. StartInstance(context.Context, *CreateInstanceRequest) (*CreateInstanceResponse, error) // Gets the status of an existing orchestration instance. @@ -341,7 +341,7 @@ type TaskHubSidecarServiceServer interface { type UnimplementedTaskHubSidecarServiceServer struct { } -func (UnimplementedTaskHubSidecarServiceServer) Hello(context.Context, *emptypb.Empty) (*emptypb.Empty, error) { +func (UnimplementedTaskHubSidecarServiceServer) Hello(context.Context, *empty.Empty) (*empty.Empty, error) { return nil, status.Errorf(codes.Unimplemented, "method Hello not implemented") } func (UnimplementedTaskHubSidecarServiceServer) StartInstance(context.Context, *CreateInstanceRequest) (*CreateInstanceResponse, error) { @@ -421,7 +421,7 @@ func RegisterTaskHubSidecarServiceServer(s grpc.ServiceRegistrar, srv TaskHubSid } func _TaskHubSidecarService_Hello_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(emptypb.Empty) + in := new(empty.Empty) if err := dec(in); err != nil { return nil, err } @@ -433,7 +433,7 @@ func _TaskHubSidecarService_Hello_Handler(srv interface{}, ctx context.Context, FullMethod: "/TaskHubSidecarService/Hello", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(TaskHubSidecarServiceServer).Hello(ctx, req.(*emptypb.Empty)) + return srv.(TaskHubSidecarServiceServer).Hello(ctx, req.(*empty.Empty)) } return interceptor(ctx, in, info, handler) } diff --git a/submodules/durabletask-protobuf b/submodules/durabletask-protobuf index 3c5d082..9e040b5 160000 --- a/submodules/durabletask-protobuf +++ b/submodules/durabletask-protobuf @@ -1 +1 @@ -Subproject commit 3c5d082b5b24adc351a0b8693f023272be18d691 +Subproject commit 9e040b5e4642046291d7089e66131c9c943a5751 diff --git a/tests/backend_test.go b/tests/backend_test.go index 97d3158..2b3f414 100644 --- a/tests/backend_test.go +++ b/tests/backend_test.go @@ -487,7 +487,8 @@ func createOrchestrationInstance(t assert.TestingT, be backend.Backend, instance }, }, } - err := be.CreateOrchestrationInstance(ctx, e) + policy := &protos.OrchestrationIdReusePolicy{} + err := be.CreateOrchestrationInstance(ctx, e, backend.WithOrchestrationIdReusePolicy(policy)) return assert.NoError(t, err) } diff --git a/tests/grpc/grpc_test.go b/tests/grpc/grpc_test.go index 9869694..daa6dca 100644 --- a/tests/grpc/grpc_test.go +++ b/tests/grpc/grpc_test.go @@ -227,3 +227,140 @@ func Test_Grpc_Terminate_Recursive(t *testing.T) { }) } } + +func Test_Grpc_ReuseInstanceIDSkip(t *testing.T) { + delayTime := 2 * time.Second + r := task.NewTaskRegistry() + 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 + ctx.CreateTimer(delayTime).Await(nil) + err := ctx.CallActivity("SayHello", task.WithActivityInput(input)).Await(&output) + return output, err + }) + 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 := &protos.OrchestrationIdReusePolicy{ + Action: protos.CreateOrchestrationAction_IGNORE, + OperationStatus: []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)) + require.NoError(t, err) + // wait orchestration to start + grpcClient.WaitForOrchestrationStart(ctx, id) + 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() + 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 + ctx.CreateTimer(delayTime).Await(nil) + err := ctx.CallActivity("SayHello", task.WithActivityInput(input)).Await(&output) + return output, err + }) + 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("TERMINATE_IF_RUNNING_OR_COMPLETED") + reuseIdPolicy := &protos.OrchestrationIdReusePolicy{ + Action: protos.CreateOrchestrationAction_TERMINATE, + OperationStatus: []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)) + require.NoError(t, err) + // wait orchestration to start + grpcClient.WaitForOrchestrationStart(ctx, id) + pivotTime := time.Now() + // schedule again, it should terminate the first orchestration and start a new one + 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 second orchestration should complete. + assert.Equal(t, `"Hello, World!"`, metadata.SerializedOutput) + // assert the orchestration created timestamp + assert.True(t, pivotTime.Before(metadata.CreatedAt)) +} + +func Test_Grpc_ReuseInstanceIDThrow(t *testing.T) { + delayTime := 4 * time.Second + r := task.NewTaskRegistry() + 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 + ctx.CreateTimer(delayTime).Await(nil) + err := ctx.CallActivity("SayHello", task.WithActivityInput(input)).Await(&output) + return output, err + }) + 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("THROW_IF_RUNNING_OR_COMPLETED") + + id, err := grpcClient.ScheduleNewOrchestration(ctx, "SingleActivity", api.WithInput("世界"), api.WithInstanceID(instanceID)) + require.NoError(t, err) + id, err = grpcClient.ScheduleNewOrchestration(ctx, "SingleActivity", api.WithInput("World"), api.WithInstanceID(id)) + if assert.Error(t, err) { + assert.Contains(t, err.Error(), "orchestration instance already exists") + } +} diff --git a/tests/mocks/Backend.go b/tests/mocks/Backend.go index 4b00f11..a59f0f1 100644 --- a/tests/mocks/Backend.go +++ b/tests/mocks/Backend.go @@ -1,4 +1,4 @@ -// Code generated by mockery v2.14.0. DO NOT EDIT. +// Code generated by mockery v2.38.0. DO NOT EDIT. package mocks @@ -30,6 +30,10 @@ func (_m *Backend) EXPECT() *Backend_Expecter { func (_m *Backend) AbandonActivityWorkItem(_a0 context.Context, _a1 *backend.ActivityWorkItem) error { ret := _m.Called(_a0, _a1) + if len(ret) == 0 { + panic("no return value specified for AbandonActivityWorkItem") + } + var r0 error if rf, ok := ret.Get(0).(func(context.Context, *backend.ActivityWorkItem) error); ok { r0 = rf(_a0, _a1) @@ -46,8 +50,8 @@ type Backend_AbandonActivityWorkItem_Call struct { } // AbandonActivityWorkItem is a helper method to define mock.On call -// - _a0 context.Context -// - _a1 *backend.ActivityWorkItem +// - _a0 context.Context +// - _a1 *backend.ActivityWorkItem func (_e *Backend_Expecter) AbandonActivityWorkItem(_a0 interface{}, _a1 interface{}) *Backend_AbandonActivityWorkItem_Call { return &Backend_AbandonActivityWorkItem_Call{Call: _e.mock.On("AbandonActivityWorkItem", _a0, _a1)} } @@ -64,10 +68,19 @@ func (_c *Backend_AbandonActivityWorkItem_Call) Return(_a0 error) *Backend_Aband return _c } +func (_c *Backend_AbandonActivityWorkItem_Call) RunAndReturn(run func(context.Context, *backend.ActivityWorkItem) error) *Backend_AbandonActivityWorkItem_Call { + _c.Call.Return(run) + return _c +} + // AbandonOrchestrationWorkItem provides a mock function with given fields: _a0, _a1 func (_m *Backend) AbandonOrchestrationWorkItem(_a0 context.Context, _a1 *backend.OrchestrationWorkItem) error { ret := _m.Called(_a0, _a1) + if len(ret) == 0 { + panic("no return value specified for AbandonOrchestrationWorkItem") + } + var r0 error if rf, ok := ret.Get(0).(func(context.Context, *backend.OrchestrationWorkItem) error); ok { r0 = rf(_a0, _a1) @@ -84,8 +97,8 @@ type Backend_AbandonOrchestrationWorkItem_Call struct { } // AbandonOrchestrationWorkItem is a helper method to define mock.On call -// - _a0 context.Context -// - _a1 *backend.OrchestrationWorkItem +// - _a0 context.Context +// - _a1 *backend.OrchestrationWorkItem func (_e *Backend_Expecter) AbandonOrchestrationWorkItem(_a0 interface{}, _a1 interface{}) *Backend_AbandonOrchestrationWorkItem_Call { return &Backend_AbandonOrchestrationWorkItem_Call{Call: _e.mock.On("AbandonOrchestrationWorkItem", _a0, _a1)} } @@ -102,10 +115,19 @@ func (_c *Backend_AbandonOrchestrationWorkItem_Call) Return(_a0 error) *Backend_ return _c } +func (_c *Backend_AbandonOrchestrationWorkItem_Call) RunAndReturn(run func(context.Context, *backend.OrchestrationWorkItem) error) *Backend_AbandonOrchestrationWorkItem_Call { + _c.Call.Return(run) + return _c +} + // AddNewOrchestrationEvent provides a mock function with given fields: _a0, _a1, _a2 func (_m *Backend) AddNewOrchestrationEvent(_a0 context.Context, _a1 api.InstanceID, _a2 *protos.HistoryEvent) error { ret := _m.Called(_a0, _a1, _a2) + if len(ret) == 0 { + panic("no return value specified for AddNewOrchestrationEvent") + } + var r0 error if rf, ok := ret.Get(0).(func(context.Context, api.InstanceID, *protos.HistoryEvent) error); ok { r0 = rf(_a0, _a1, _a2) @@ -122,9 +144,9 @@ type Backend_AddNewOrchestrationEvent_Call struct { } // AddNewOrchestrationEvent is a helper method to define mock.On call -// - _a0 context.Context -// - _a1 api.InstanceID -// - _a2 *protos.HistoryEvent +// - _a0 context.Context +// - _a1 api.InstanceID +// - _a2 *protos.HistoryEvent func (_e *Backend_Expecter) AddNewOrchestrationEvent(_a0 interface{}, _a1 interface{}, _a2 interface{}) *Backend_AddNewOrchestrationEvent_Call { return &Backend_AddNewOrchestrationEvent_Call{Call: _e.mock.On("AddNewOrchestrationEvent", _a0, _a1, _a2)} } @@ -141,10 +163,19 @@ func (_c *Backend_AddNewOrchestrationEvent_Call) Return(_a0 error) *Backend_AddN return _c } +func (_c *Backend_AddNewOrchestrationEvent_Call) RunAndReturn(run func(context.Context, api.InstanceID, *protos.HistoryEvent) error) *Backend_AddNewOrchestrationEvent_Call { + _c.Call.Return(run) + return _c +} + // CompleteActivityWorkItem provides a mock function with given fields: _a0, _a1 func (_m *Backend) CompleteActivityWorkItem(_a0 context.Context, _a1 *backend.ActivityWorkItem) error { ret := _m.Called(_a0, _a1) + if len(ret) == 0 { + panic("no return value specified for CompleteActivityWorkItem") + } + var r0 error if rf, ok := ret.Get(0).(func(context.Context, *backend.ActivityWorkItem) error); ok { r0 = rf(_a0, _a1) @@ -161,8 +192,8 @@ type Backend_CompleteActivityWorkItem_Call struct { } // CompleteActivityWorkItem is a helper method to define mock.On call -// - _a0 context.Context -// - _a1 *backend.ActivityWorkItem +// - _a0 context.Context +// - _a1 *backend.ActivityWorkItem func (_e *Backend_Expecter) CompleteActivityWorkItem(_a0 interface{}, _a1 interface{}) *Backend_CompleteActivityWorkItem_Call { return &Backend_CompleteActivityWorkItem_Call{Call: _e.mock.On("CompleteActivityWorkItem", _a0, _a1)} } @@ -179,10 +210,19 @@ func (_c *Backend_CompleteActivityWorkItem_Call) Return(_a0 error) *Backend_Comp return _c } +func (_c *Backend_CompleteActivityWorkItem_Call) RunAndReturn(run func(context.Context, *backend.ActivityWorkItem) error) *Backend_CompleteActivityWorkItem_Call { + _c.Call.Return(run) + return _c +} + // CompleteOrchestrationWorkItem provides a mock function with given fields: _a0, _a1 func (_m *Backend) CompleteOrchestrationWorkItem(_a0 context.Context, _a1 *backend.OrchestrationWorkItem) error { ret := _m.Called(_a0, _a1) + if len(ret) == 0 { + panic("no return value specified for CompleteOrchestrationWorkItem") + } + var r0 error if rf, ok := ret.Get(0).(func(context.Context, *backend.OrchestrationWorkItem) error); ok { r0 = rf(_a0, _a1) @@ -199,8 +239,8 @@ type Backend_CompleteOrchestrationWorkItem_Call struct { } // CompleteOrchestrationWorkItem is a helper method to define mock.On call -// - _a0 context.Context -// - _a1 *backend.OrchestrationWorkItem +// - _a0 context.Context +// - _a1 *backend.OrchestrationWorkItem func (_e *Backend_Expecter) CompleteOrchestrationWorkItem(_a0 interface{}, _a1 interface{}) *Backend_CompleteOrchestrationWorkItem_Call { return &Backend_CompleteOrchestrationWorkItem_Call{Call: _e.mock.On("CompleteOrchestrationWorkItem", _a0, _a1)} } @@ -217,13 +257,29 @@ func (_c *Backend_CompleteOrchestrationWorkItem_Call) Return(_a0 error) *Backend return _c } -// CreateOrchestrationInstance provides a mock function with given fields: _a0, _a1 -func (_m *Backend) CreateOrchestrationInstance(_a0 context.Context, _a1 *protos.HistoryEvent) error { - ret := _m.Called(_a0, _a1) +func (_c *Backend_CompleteOrchestrationWorkItem_Call) RunAndReturn(run func(context.Context, *backend.OrchestrationWorkItem) error) *Backend_CompleteOrchestrationWorkItem_Call { + _c.Call.Return(run) + return _c +} + +// CreateOrchestrationInstance provides a mock function with given fields: _a0, _a1, _a2 +func (_m *Backend) CreateOrchestrationInstance(_a0 context.Context, _a1 *protos.HistoryEvent, _a2 ...backend.OrchestrationIdReusePolicyOptions) error { + _va := make([]interface{}, len(_a2)) + for _i := range _a2 { + _va[_i] = _a2[_i] + } + var _ca []interface{} + _ca = append(_ca, _a0, _a1) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + if len(ret) == 0 { + panic("no return value specified for CreateOrchestrationInstance") + } var r0 error - if rf, ok := ret.Get(0).(func(context.Context, *protos.HistoryEvent) error); ok { - r0 = rf(_a0, _a1) + if rf, ok := ret.Get(0).(func(context.Context, *protos.HistoryEvent, ...backend.OrchestrationIdReusePolicyOptions) error); ok { + r0 = rf(_a0, _a1, _a2...) } else { r0 = ret.Error(0) } @@ -237,15 +293,23 @@ type Backend_CreateOrchestrationInstance_Call struct { } // CreateOrchestrationInstance is a helper method to define mock.On call -// - _a0 context.Context -// - _a1 *protos.HistoryEvent -func (_e *Backend_Expecter) CreateOrchestrationInstance(_a0 interface{}, _a1 interface{}) *Backend_CreateOrchestrationInstance_Call { - return &Backend_CreateOrchestrationInstance_Call{Call: _e.mock.On("CreateOrchestrationInstance", _a0, _a1)} +// - _a0 context.Context +// - _a1 *protos.HistoryEvent +// - _a2 ...backend.OrchestrationIdReusePolicyOptions +func (_e *Backend_Expecter) CreateOrchestrationInstance(_a0 interface{}, _a1 interface{}, _a2 ...interface{}) *Backend_CreateOrchestrationInstance_Call { + return &Backend_CreateOrchestrationInstance_Call{Call: _e.mock.On("CreateOrchestrationInstance", + append([]interface{}{_a0, _a1}, _a2...)...)} } -func (_c *Backend_CreateOrchestrationInstance_Call) Run(run func(_a0 context.Context, _a1 *protos.HistoryEvent)) *Backend_CreateOrchestrationInstance_Call { +func (_c *Backend_CreateOrchestrationInstance_Call) Run(run func(_a0 context.Context, _a1 *protos.HistoryEvent, _a2 ...backend.OrchestrationIdReusePolicyOptions)) *Backend_CreateOrchestrationInstance_Call { _c.Call.Run(func(args mock.Arguments) { - run(args[0].(context.Context), args[1].(*protos.HistoryEvent)) + variadicArgs := make([]backend.OrchestrationIdReusePolicyOptions, len(args)-2) + for i, a := range args[2:] { + if a != nil { + variadicArgs[i] = a.(backend.OrchestrationIdReusePolicyOptions) + } + } + run(args[0].(context.Context), args[1].(*protos.HistoryEvent), variadicArgs...) }) return _c } @@ -255,10 +319,19 @@ func (_c *Backend_CreateOrchestrationInstance_Call) Return(_a0 error) *Backend_C return _c } +func (_c *Backend_CreateOrchestrationInstance_Call) RunAndReturn(run func(context.Context, *protos.HistoryEvent, ...backend.OrchestrationIdReusePolicyOptions) error) *Backend_CreateOrchestrationInstance_Call { + _c.Call.Return(run) + return _c +} + // CreateTaskHub provides a mock function with given fields: _a0 func (_m *Backend) CreateTaskHub(_a0 context.Context) error { ret := _m.Called(_a0) + if len(ret) == 0 { + panic("no return value specified for CreateTaskHub") + } + var r0 error if rf, ok := ret.Get(0).(func(context.Context) error); ok { r0 = rf(_a0) @@ -275,7 +348,7 @@ type Backend_CreateTaskHub_Call struct { } // CreateTaskHub is a helper method to define mock.On call -// - _a0 context.Context +// - _a0 context.Context func (_e *Backend_Expecter) CreateTaskHub(_a0 interface{}) *Backend_CreateTaskHub_Call { return &Backend_CreateTaskHub_Call{Call: _e.mock.On("CreateTaskHub", _a0)} } @@ -292,10 +365,19 @@ func (_c *Backend_CreateTaskHub_Call) Return(_a0 error) *Backend_CreateTaskHub_C return _c } +func (_c *Backend_CreateTaskHub_Call) RunAndReturn(run func(context.Context) error) *Backend_CreateTaskHub_Call { + _c.Call.Return(run) + return _c +} + // DeleteTaskHub provides a mock function with given fields: _a0 func (_m *Backend) DeleteTaskHub(_a0 context.Context) error { ret := _m.Called(_a0) + if len(ret) == 0 { + panic("no return value specified for DeleteTaskHub") + } + var r0 error if rf, ok := ret.Get(0).(func(context.Context) error); ok { r0 = rf(_a0) @@ -312,7 +394,7 @@ type Backend_DeleteTaskHub_Call struct { } // DeleteTaskHub is a helper method to define mock.On call -// - _a0 context.Context +// - _a0 context.Context func (_e *Backend_Expecter) DeleteTaskHub(_a0 interface{}) *Backend_DeleteTaskHub_Call { return &Backend_DeleteTaskHub_Call{Call: _e.mock.On("DeleteTaskHub", _a0)} } @@ -329,11 +411,24 @@ func (_c *Backend_DeleteTaskHub_Call) Return(_a0 error) *Backend_DeleteTaskHub_C return _c } +func (_c *Backend_DeleteTaskHub_Call) RunAndReturn(run func(context.Context) error) *Backend_DeleteTaskHub_Call { + _c.Call.Return(run) + return _c +} + // GetActivityWorkItem provides a mock function with given fields: _a0 func (_m *Backend) GetActivityWorkItem(_a0 context.Context) (*backend.ActivityWorkItem, error) { ret := _m.Called(_a0) + if len(ret) == 0 { + panic("no return value specified for GetActivityWorkItem") + } + var r0 *backend.ActivityWorkItem + var r1 error + if rf, ok := ret.Get(0).(func(context.Context) (*backend.ActivityWorkItem, error)); ok { + return rf(_a0) + } if rf, ok := ret.Get(0).(func(context.Context) *backend.ActivityWorkItem); ok { r0 = rf(_a0) } else { @@ -342,7 +437,6 @@ func (_m *Backend) GetActivityWorkItem(_a0 context.Context) (*backend.ActivityWo } } - var r1 error if rf, ok := ret.Get(1).(func(context.Context) error); ok { r1 = rf(_a0) } else { @@ -358,7 +452,7 @@ type Backend_GetActivityWorkItem_Call struct { } // GetActivityWorkItem is a helper method to define mock.On call -// - _a0 context.Context +// - _a0 context.Context func (_e *Backend_Expecter) GetActivityWorkItem(_a0 interface{}) *Backend_GetActivityWorkItem_Call { return &Backend_GetActivityWorkItem_Call{Call: _e.mock.On("GetActivityWorkItem", _a0)} } @@ -375,11 +469,24 @@ func (_c *Backend_GetActivityWorkItem_Call) Return(_a0 *backend.ActivityWorkItem return _c } +func (_c *Backend_GetActivityWorkItem_Call) RunAndReturn(run func(context.Context) (*backend.ActivityWorkItem, error)) *Backend_GetActivityWorkItem_Call { + _c.Call.Return(run) + return _c +} + // GetOrchestrationMetadata provides a mock function with given fields: _a0, _a1 func (_m *Backend) GetOrchestrationMetadata(_a0 context.Context, _a1 api.InstanceID) (*api.OrchestrationMetadata, error) { ret := _m.Called(_a0, _a1) + if len(ret) == 0 { + panic("no return value specified for GetOrchestrationMetadata") + } + var r0 *api.OrchestrationMetadata + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, api.InstanceID) (*api.OrchestrationMetadata, error)); ok { + return rf(_a0, _a1) + } if rf, ok := ret.Get(0).(func(context.Context, api.InstanceID) *api.OrchestrationMetadata); ok { r0 = rf(_a0, _a1) } else { @@ -388,7 +495,6 @@ func (_m *Backend) GetOrchestrationMetadata(_a0 context.Context, _a1 api.Instanc } } - var r1 error if rf, ok := ret.Get(1).(func(context.Context, api.InstanceID) error); ok { r1 = rf(_a0, _a1) } else { @@ -404,8 +510,8 @@ type Backend_GetOrchestrationMetadata_Call struct { } // GetOrchestrationMetadata is a helper method to define mock.On call -// - _a0 context.Context -// - _a1 api.InstanceID +// - _a0 context.Context +// - _a1 api.InstanceID func (_e *Backend_Expecter) GetOrchestrationMetadata(_a0 interface{}, _a1 interface{}) *Backend_GetOrchestrationMetadata_Call { return &Backend_GetOrchestrationMetadata_Call{Call: _e.mock.On("GetOrchestrationMetadata", _a0, _a1)} } @@ -422,11 +528,24 @@ func (_c *Backend_GetOrchestrationMetadata_Call) Return(_a0 *api.OrchestrationMe return _c } +func (_c *Backend_GetOrchestrationMetadata_Call) RunAndReturn(run func(context.Context, api.InstanceID) (*api.OrchestrationMetadata, error)) *Backend_GetOrchestrationMetadata_Call { + _c.Call.Return(run) + return _c +} + // GetOrchestrationRuntimeState provides a mock function with given fields: _a0, _a1 func (_m *Backend) GetOrchestrationRuntimeState(_a0 context.Context, _a1 *backend.OrchestrationWorkItem) (*backend.OrchestrationRuntimeState, error) { ret := _m.Called(_a0, _a1) + if len(ret) == 0 { + panic("no return value specified for GetOrchestrationRuntimeState") + } + var r0 *backend.OrchestrationRuntimeState + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, *backend.OrchestrationWorkItem) (*backend.OrchestrationRuntimeState, error)); ok { + return rf(_a0, _a1) + } if rf, ok := ret.Get(0).(func(context.Context, *backend.OrchestrationWorkItem) *backend.OrchestrationRuntimeState); ok { r0 = rf(_a0, _a1) } else { @@ -435,7 +554,6 @@ func (_m *Backend) GetOrchestrationRuntimeState(_a0 context.Context, _a1 *backen } } - var r1 error if rf, ok := ret.Get(1).(func(context.Context, *backend.OrchestrationWorkItem) error); ok { r1 = rf(_a0, _a1) } else { @@ -451,8 +569,8 @@ type Backend_GetOrchestrationRuntimeState_Call struct { } // GetOrchestrationRuntimeState is a helper method to define mock.On call -// - _a0 context.Context -// - _a1 *backend.OrchestrationWorkItem +// - _a0 context.Context +// - _a1 *backend.OrchestrationWorkItem func (_e *Backend_Expecter) GetOrchestrationRuntimeState(_a0 interface{}, _a1 interface{}) *Backend_GetOrchestrationRuntimeState_Call { return &Backend_GetOrchestrationRuntimeState_Call{Call: _e.mock.On("GetOrchestrationRuntimeState", _a0, _a1)} } @@ -469,11 +587,24 @@ func (_c *Backend_GetOrchestrationRuntimeState_Call) Return(_a0 *backend.Orchest return _c } +func (_c *Backend_GetOrchestrationRuntimeState_Call) RunAndReturn(run func(context.Context, *backend.OrchestrationWorkItem) (*backend.OrchestrationRuntimeState, error)) *Backend_GetOrchestrationRuntimeState_Call { + _c.Call.Return(run) + return _c +} + // GetOrchestrationWorkItem provides a mock function with given fields: _a0 func (_m *Backend) GetOrchestrationWorkItem(_a0 context.Context) (*backend.OrchestrationWorkItem, error) { ret := _m.Called(_a0) + if len(ret) == 0 { + panic("no return value specified for GetOrchestrationWorkItem") + } + var r0 *backend.OrchestrationWorkItem + var r1 error + if rf, ok := ret.Get(0).(func(context.Context) (*backend.OrchestrationWorkItem, error)); ok { + return rf(_a0) + } if rf, ok := ret.Get(0).(func(context.Context) *backend.OrchestrationWorkItem); ok { r0 = rf(_a0) } else { @@ -482,7 +613,6 @@ func (_m *Backend) GetOrchestrationWorkItem(_a0 context.Context) (*backend.Orche } } - var r1 error if rf, ok := ret.Get(1).(func(context.Context) error); ok { r1 = rf(_a0) } else { @@ -498,7 +628,7 @@ type Backend_GetOrchestrationWorkItem_Call struct { } // GetOrchestrationWorkItem is a helper method to define mock.On call -// - _a0 context.Context +// - _a0 context.Context func (_e *Backend_Expecter) GetOrchestrationWorkItem(_a0 interface{}) *Backend_GetOrchestrationWorkItem_Call { return &Backend_GetOrchestrationWorkItem_Call{Call: _e.mock.On("GetOrchestrationWorkItem", _a0)} } @@ -515,10 +645,19 @@ func (_c *Backend_GetOrchestrationWorkItem_Call) Return(_a0 *backend.Orchestrati return _c } +func (_c *Backend_GetOrchestrationWorkItem_Call) RunAndReturn(run func(context.Context) (*backend.OrchestrationWorkItem, error)) *Backend_GetOrchestrationWorkItem_Call { + _c.Call.Return(run) + return _c +} + // PurgeOrchestrationState provides a mock function with given fields: _a0, _a1 func (_m *Backend) PurgeOrchestrationState(_a0 context.Context, _a1 api.InstanceID) error { ret := _m.Called(_a0, _a1) + if len(ret) == 0 { + panic("no return value specified for PurgeOrchestrationState") + } + var r0 error if rf, ok := ret.Get(0).(func(context.Context, api.InstanceID) error); ok { r0 = rf(_a0, _a1) @@ -535,8 +674,8 @@ type Backend_PurgeOrchestrationState_Call struct { } // PurgeOrchestrationState is a helper method to define mock.On call -// - _a0 context.Context -// - _a1 api.InstanceID +// - _a0 context.Context +// - _a1 api.InstanceID func (_e *Backend_Expecter) PurgeOrchestrationState(_a0 interface{}, _a1 interface{}) *Backend_PurgeOrchestrationState_Call { return &Backend_PurgeOrchestrationState_Call{Call: _e.mock.On("PurgeOrchestrationState", _a0, _a1)} } @@ -553,10 +692,19 @@ func (_c *Backend_PurgeOrchestrationState_Call) Return(_a0 error) *Backend_Purge return _c } +func (_c *Backend_PurgeOrchestrationState_Call) RunAndReturn(run func(context.Context, api.InstanceID) error) *Backend_PurgeOrchestrationState_Call { + _c.Call.Return(run) + return _c +} + // Start provides a mock function with given fields: _a0 func (_m *Backend) Start(_a0 context.Context) error { ret := _m.Called(_a0) + if len(ret) == 0 { + panic("no return value specified for Start") + } + var r0 error if rf, ok := ret.Get(0).(func(context.Context) error); ok { r0 = rf(_a0) @@ -573,7 +721,7 @@ type Backend_Start_Call struct { } // Start is a helper method to define mock.On call -// - _a0 context.Context +// - _a0 context.Context func (_e *Backend_Expecter) Start(_a0 interface{}) *Backend_Start_Call { return &Backend_Start_Call{Call: _e.mock.On("Start", _a0)} } @@ -590,10 +738,19 @@ func (_c *Backend_Start_Call) Return(_a0 error) *Backend_Start_Call { return _c } +func (_c *Backend_Start_Call) RunAndReturn(run func(context.Context) error) *Backend_Start_Call { + _c.Call.Return(run) + return _c +} + // Stop provides a mock function with given fields: _a0 func (_m *Backend) Stop(_a0 context.Context) error { ret := _m.Called(_a0) + if len(ret) == 0 { + panic("no return value specified for Stop") + } + var r0 error if rf, ok := ret.Get(0).(func(context.Context) error); ok { r0 = rf(_a0) @@ -610,7 +767,7 @@ type Backend_Stop_Call struct { } // Stop is a helper method to define mock.On call -// - _a0 context.Context +// - _a0 context.Context func (_e *Backend_Expecter) Stop(_a0 interface{}) *Backend_Stop_Call { return &Backend_Stop_Call{Call: _e.mock.On("Stop", _a0)} } @@ -627,13 +784,17 @@ func (_c *Backend_Stop_Call) Return(_a0 error) *Backend_Stop_Call { return _c } -type mockConstructorTestingTNewBackend interface { - mock.TestingT - Cleanup(func()) +func (_c *Backend_Stop_Call) RunAndReturn(run func(context.Context) error) *Backend_Stop_Call { + _c.Call.Return(run) + return _c } // NewBackend creates a new instance of Backend. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. -func NewBackend(t mockConstructorTestingTNewBackend) *Backend { +// The first argument is typically a *testing.T value. +func NewBackend(t interface { + mock.TestingT + Cleanup(func()) +}) *Backend { mock := &Backend{} mock.Mock.Test(t) diff --git a/tests/mocks/Executor.go b/tests/mocks/Executor.go index 1f704e6..659ac36 100644 --- a/tests/mocks/Executor.go +++ b/tests/mocks/Executor.go @@ -1,4 +1,4 @@ -// Code generated by mockery v2.14.0. DO NOT EDIT. +// Code generated by mockery v2.38.0. DO NOT EDIT. package mocks @@ -30,7 +30,15 @@ func (_m *Executor) EXPECT() *Executor_Expecter { func (_m *Executor) ExecuteActivity(_a0 context.Context, _a1 api.InstanceID, _a2 *protos.HistoryEvent) (*protos.HistoryEvent, error) { ret := _m.Called(_a0, _a1, _a2) + if len(ret) == 0 { + panic("no return value specified for ExecuteActivity") + } + var r0 *protos.HistoryEvent + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, api.InstanceID, *protos.HistoryEvent) (*protos.HistoryEvent, error)); ok { + return rf(_a0, _a1, _a2) + } if rf, ok := ret.Get(0).(func(context.Context, api.InstanceID, *protos.HistoryEvent) *protos.HistoryEvent); ok { r0 = rf(_a0, _a1, _a2) } else { @@ -39,7 +47,6 @@ func (_m *Executor) ExecuteActivity(_a0 context.Context, _a1 api.InstanceID, _a2 } } - var r1 error if rf, ok := ret.Get(1).(func(context.Context, api.InstanceID, *protos.HistoryEvent) error); ok { r1 = rf(_a0, _a1, _a2) } else { @@ -55,9 +62,9 @@ type Executor_ExecuteActivity_Call struct { } // ExecuteActivity is a helper method to define mock.On call -// - _a0 context.Context -// - _a1 api.InstanceID -// - _a2 *protos.HistoryEvent +// - _a0 context.Context +// - _a1 api.InstanceID +// - _a2 *protos.HistoryEvent func (_e *Executor_Expecter) ExecuteActivity(_a0 interface{}, _a1 interface{}, _a2 interface{}) *Executor_ExecuteActivity_Call { return &Executor_ExecuteActivity_Call{Call: _e.mock.On("ExecuteActivity", _a0, _a1, _a2)} } @@ -74,11 +81,24 @@ func (_c *Executor_ExecuteActivity_Call) Return(_a0 *protos.HistoryEvent, _a1 er return _c } +func (_c *Executor_ExecuteActivity_Call) RunAndReturn(run func(context.Context, api.InstanceID, *protos.HistoryEvent) (*protos.HistoryEvent, error)) *Executor_ExecuteActivity_Call { + _c.Call.Return(run) + return _c +} + // ExecuteOrchestrator provides a mock function with given fields: ctx, iid, oldEvents, newEvents func (_m *Executor) ExecuteOrchestrator(ctx context.Context, iid api.InstanceID, oldEvents []*protos.HistoryEvent, newEvents []*protos.HistoryEvent) (*backend.ExecutionResults, error) { ret := _m.Called(ctx, iid, oldEvents, newEvents) + if len(ret) == 0 { + panic("no return value specified for ExecuteOrchestrator") + } + var r0 *backend.ExecutionResults + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, api.InstanceID, []*protos.HistoryEvent, []*protos.HistoryEvent) (*backend.ExecutionResults, error)); ok { + return rf(ctx, iid, oldEvents, newEvents) + } if rf, ok := ret.Get(0).(func(context.Context, api.InstanceID, []*protos.HistoryEvent, []*protos.HistoryEvent) *backend.ExecutionResults); ok { r0 = rf(ctx, iid, oldEvents, newEvents) } else { @@ -87,7 +107,6 @@ func (_m *Executor) ExecuteOrchestrator(ctx context.Context, iid api.InstanceID, } } - var r1 error if rf, ok := ret.Get(1).(func(context.Context, api.InstanceID, []*protos.HistoryEvent, []*protos.HistoryEvent) error); ok { r1 = rf(ctx, iid, oldEvents, newEvents) } else { @@ -103,10 +122,10 @@ type Executor_ExecuteOrchestrator_Call struct { } // ExecuteOrchestrator is a helper method to define mock.On call -// - ctx context.Context -// - iid api.InstanceID -// - oldEvents []*protos.HistoryEvent -// - newEvents []*protos.HistoryEvent +// - ctx context.Context +// - iid api.InstanceID +// - oldEvents []*protos.HistoryEvent +// - newEvents []*protos.HistoryEvent func (_e *Executor_Expecter) ExecuteOrchestrator(ctx interface{}, iid interface{}, oldEvents interface{}, newEvents interface{}) *Executor_ExecuteOrchestrator_Call { return &Executor_ExecuteOrchestrator_Call{Call: _e.mock.On("ExecuteOrchestrator", ctx, iid, oldEvents, newEvents)} } @@ -123,13 +142,17 @@ func (_c *Executor_ExecuteOrchestrator_Call) Return(_a0 *backend.ExecutionResult return _c } -type mockConstructorTestingTNewExecutor interface { - mock.TestingT - Cleanup(func()) +func (_c *Executor_ExecuteOrchestrator_Call) RunAndReturn(run func(context.Context, api.InstanceID, []*protos.HistoryEvent, []*protos.HistoryEvent) (*backend.ExecutionResults, error)) *Executor_ExecuteOrchestrator_Call { + _c.Call.Return(run) + return _c } // NewExecutor creates a new instance of Executor. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. -func NewExecutor(t mockConstructorTestingTNewExecutor) *Executor { +// The first argument is typically a *testing.T value. +func NewExecutor(t interface { + mock.TestingT + Cleanup(func()) +}) *Executor { mock := &Executor{} mock.Mock.Test(t) diff --git a/tests/mocks/TaskWorker.go b/tests/mocks/TaskWorker.go index 38e7f7c..7ee0f2c 100644 --- a/tests/mocks/TaskWorker.go +++ b/tests/mocks/TaskWorker.go @@ -1,4 +1,4 @@ -// Code generated by mockery v2.14.0. DO NOT EDIT. +// Code generated by mockery v2.38.0. DO NOT EDIT. package mocks @@ -25,14 +25,21 @@ func (_m *TaskWorker) EXPECT() *TaskWorker_Expecter { func (_m *TaskWorker) ProcessNext(_a0 context.Context) (bool, error) { ret := _m.Called(_a0) + if len(ret) == 0 { + panic("no return value specified for ProcessNext") + } + var r0 bool + var r1 error + if rf, ok := ret.Get(0).(func(context.Context) (bool, error)); ok { + return rf(_a0) + } if rf, ok := ret.Get(0).(func(context.Context) bool); ok { r0 = rf(_a0) } else { r0 = ret.Get(0).(bool) } - var r1 error if rf, ok := ret.Get(1).(func(context.Context) error); ok { r1 = rf(_a0) } else { @@ -48,7 +55,7 @@ type TaskWorker_ProcessNext_Call struct { } // ProcessNext is a helper method to define mock.On call -// - _a0 context.Context +// - _a0 context.Context func (_e *TaskWorker_Expecter) ProcessNext(_a0 interface{}) *TaskWorker_ProcessNext_Call { return &TaskWorker_ProcessNext_Call{Call: _e.mock.On("ProcessNext", _a0)} } @@ -65,6 +72,11 @@ func (_c *TaskWorker_ProcessNext_Call) Return(_a0 bool, _a1 error) *TaskWorker_P return _c } +func (_c *TaskWorker_ProcessNext_Call) RunAndReturn(run func(context.Context) (bool, error)) *TaskWorker_ProcessNext_Call { + _c.Call.Return(run) + return _c +} + // Start provides a mock function with given fields: _a0 func (_m *TaskWorker) Start(_a0 context.Context) { _m.Called(_a0) @@ -76,7 +88,7 @@ type TaskWorker_Start_Call struct { } // Start is a helper method to define mock.On call -// - _a0 context.Context +// - _a0 context.Context func (_e *TaskWorker_Expecter) Start(_a0 interface{}) *TaskWorker_Start_Call { return &TaskWorker_Start_Call{Call: _e.mock.On("Start", _a0)} } @@ -93,6 +105,11 @@ func (_c *TaskWorker_Start_Call) Return() *TaskWorker_Start_Call { return _c } +func (_c *TaskWorker_Start_Call) RunAndReturn(run func(context.Context)) *TaskWorker_Start_Call { + _c.Call.Return(run) + return _c +} + // StopAndDrain provides a mock function with given fields: func (_m *TaskWorker) StopAndDrain() { _m.Called() @@ -120,13 +137,17 @@ func (_c *TaskWorker_StopAndDrain_Call) Return() *TaskWorker_StopAndDrain_Call { return _c } -type mockConstructorTestingTNewTaskWorker interface { - mock.TestingT - Cleanup(func()) +func (_c *TaskWorker_StopAndDrain_Call) RunAndReturn(run func()) *TaskWorker_StopAndDrain_Call { + _c.Call.Return(run) + return _c } // NewTaskWorker creates a new instance of TaskWorker. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. -func NewTaskWorker(t mockConstructorTestingTNewTaskWorker) *TaskWorker { +// The first argument is typically a *testing.T value. +func NewTaskWorker(t interface { + mock.TestingT + Cleanup(func()) +}) *TaskWorker { mock := &TaskWorker{} mock.Mock.Test(t)