From 641e4a7e10c3d9ff03752605ff2df79f8365b823 Mon Sep 17 00:00:00 2001 From: Shijie Sheng Date: Tue, 3 Dec 2024 14:00:11 -0800 Subject: [PATCH] update IDL (#1408) What changed? new endpoint DiagnoseWorkflowExecution new field AutoConfigHint in Poll responses Why? new field is needed for worker auto config project How did you test it? unit test --- .gen/go/cadence/cadence.go | 3357 ++++++++++++++++- .../cadence/workflowserviceclient/client.go | 29 + .../cadence/workflowserviceserver/server.go | 48 +- .gen/go/cadence/workflowservicetest/client.go | 33 + .gen/go/shared/shared.go | 996 ++++- go.mod | 2 +- go.sum | 4 +- idls | 2 +- internal/common/auth/service_wrapper.go | 10 + internal/common/auth/service_wrapper_test.go | 16 + .../common/isolationgroup/service_wrapper.go | 6 + .../isolationgroup/service_wrapper_test.go | 9 + internal/common/metrics/service_wrapper.go | 8 + internal/compatibility/adapter.go | 9 + internal/compatibility/api_test.go | 10 + internal/compatibility/proto/request.go | 11 + internal/compatibility/proto/response.go | 10 + internal/compatibility/testdata/service.go | 9 + internal/compatibility/thrift/request.go | 11 + internal/compatibility/thrift/response.go | 12 + internal/compatibility/thrift/types.go | 17 + 21 files changed, 4472 insertions(+), 137 deletions(-) diff --git a/.gen/go/cadence/cadence.go b/.gen/go/cadence/cadence.go index a24c7fa3d..3e36fc4ed 100644 --- a/.gen/go/cadence/cadence.go +++ b/.gen/go/cadence/cadence.go @@ -41,14 +41,14 @@ var ThriftModule = &thriftreflect.ThriftModule{ Name: "cadence", Package: "go.uber.org/cadence/.gen/go/cadence", FilePath: "cadence.thrift", - SHA1: "d3aed495096c071e130c4dd03f2ff16c7a9a2022", + SHA1: "46920c6a1869dbda8563382e770b39a9313e79cd", Includes: []*thriftreflect.ThriftModule{ shared.ThriftModule, }, Raw: rawIDL, } -const rawIDL = "// Copyright (c) 2017 Uber Technologies, Inc.\n//\n// Permission is hereby granted, free of charge, to any person obtaining a copy\n// of this software and associated documentation files (the \"Software\"), to deal\n// in the Software without restriction, including without limitation the rights\n// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n// copies of the Software, and to permit persons to whom the Software is\n// furnished to do so, subject to the following conditions:\n//\n// The above copyright notice and this permission notice shall be included in\n// all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n// THE SOFTWARE.\n\ninclude \"shared.thrift\"\n\nnamespace java com.uber.cadence\n\n/**\n* WorkflowService API is exposed to provide support for long running applications. Application is expected to call\n* StartWorkflowExecution to create an instance for each instance of long running workflow. Such applications are expected\n* to have a worker which regularly polls for DecisionTask and ActivityTask from the WorkflowService. For each\n* DecisionTask, application is expected to process the history of events for that session and respond back with next\n* decisions. For each ActivityTask, application is expected to execute the actual logic for that task and respond back\n* with completion or failure. Worker is expected to regularly heartbeat while activity task is running.\n**/\nservice WorkflowService {\n /**\n * RegisterDomain creates a new domain which can be used as a container for all resources. Domain is a top level\n * entity within Cadence, used as a container for all resources like workflow executions, tasklists, etc. Domain\n * acts as a sandbox and provides isolation for all resources within the domain. All resources belongs to exactly one\n * domain.\n **/\n void RegisterDomain(1: shared.RegisterDomainRequest registerRequest)\n throws (\n 1: shared.BadRequestError badRequestError,\n 3: shared.DomainAlreadyExistsError domainExistsError,\n 4: shared.ServiceBusyError serviceBusyError,\n 5: shared.ClientVersionNotSupportedError clientVersionNotSupportedError,\n )\n\n /**\n * DescribeDomain returns the information and configuration for a registered domain.\n **/\n shared.DescribeDomainResponse DescribeDomain(1: shared.DescribeDomainRequest describeRequest)\n throws (\n 1: shared.BadRequestError badRequestError,\n 3: shared.EntityNotExistsError entityNotExistError,\n 4: shared.ServiceBusyError serviceBusyError,\n 5: shared.ClientVersionNotSupportedError clientVersionNotSupportedError,\n )\n\n /**\n * ListDomains returns the information and configuration for all domains.\n **/\n shared.ListDomainsResponse ListDomains(1: shared.ListDomainsRequest listRequest)\n throws (\n 1: shared.BadRequestError badRequestError,\n 3: shared.EntityNotExistsError entityNotExistError,\n 4: shared.ServiceBusyError serviceBusyError,\n 5: shared.ClientVersionNotSupportedError clientVersionNotSupportedError,\n )\n\n /**\n * UpdateDomain is used to update the information and configuration for a registered domain.\n **/\n shared.UpdateDomainResponse UpdateDomain(1: shared.UpdateDomainRequest updateRequest)\n throws (\n 1: shared.BadRequestError badRequestError,\n 3: shared.EntityNotExistsError entityNotExistError,\n 4: shared.ServiceBusyError serviceBusyError,\n 5: shared.DomainNotActiveError domainNotActiveError,\n 6: shared.ClientVersionNotSupportedError clientVersionNotSupportedError,\n )\n\n /**\n * DeprecateDomain us used to update status of a registered domain to DEPRECATED. Once the domain is deprecated\n * it cannot be used to start new workflow executions. Existing workflow executions will continue to run on\n * deprecated domains.\n **/\n void DeprecateDomain(1: shared.DeprecateDomainRequest deprecateRequest)\n throws (\n 1: shared.BadRequestError badRequestError,\n 3: shared.EntityNotExistsError entityNotExistError,\n 4: shared.ServiceBusyError serviceBusyError,\n 5: shared.DomainNotActiveError domainNotActiveError,\n 6: shared.ClientVersionNotSupportedError clientVersionNotSupportedError,\n )\n\n /**\n * RestartWorkflowExecution restarts a previous workflow\n * If the workflow is currently running it will terminate and restart\n **/\n shared.RestartWorkflowExecutionResponse RestartWorkflowExecution(1: shared.RestartWorkflowExecutionRequest restartRequest)\n throws (\n 1: shared.BadRequestError badRequestError,\n 2: shared.ServiceBusyError serviceBusyError,\n 3: shared.DomainNotActiveError domainNotActiveError,\n 4: shared.LimitExceededError limitExceededError,\n 5: shared.EntityNotExistsError entityNotExistError,\n 6: shared.ClientVersionNotSupportedError clientVersionNotSupportedError,\n )\n /**\n * StartWorkflowExecution starts a new long running workflow instance. It will create the instance with\n * 'WorkflowExecutionStarted' event in history and also schedule the first DecisionTask for the worker to make the\n * first decision for this instance. It will return 'WorkflowExecutionAlreadyStartedError', if an instance already\n * exists with same workflowId.\n **/\n shared.StartWorkflowExecutionResponse StartWorkflowExecution(1: shared.StartWorkflowExecutionRequest startRequest)\n throws (\n 1: shared.BadRequestError badRequestError,\n 3: shared.WorkflowExecutionAlreadyStartedError sessionAlreadyExistError,\n 4: shared.ServiceBusyError serviceBusyError,\n 5: shared.DomainNotActiveError domainNotActiveError,\n 6: shared.LimitExceededError limitExceededError,\n 7: shared.EntityNotExistsError entityNotExistError,\n 8: shared.ClientVersionNotSupportedError clientVersionNotSupportedError,\n )\n /**\n * StartWorkflowExecutionAsync starts a new long running workflow instance asynchronously. It will push a StartWorkflowExecutionRequest to a queue\n * and immediately return a response. The request will be processed by a separate consumer eventually.\n **/\n shared.StartWorkflowExecutionAsyncResponse StartWorkflowExecutionAsync(1: shared.StartWorkflowExecutionAsyncRequest startRequest)\n throws (\n 1: shared.BadRequestError badRequestError,\n 3: shared.WorkflowExecutionAlreadyStartedError sessionAlreadyExistError,\n 4: shared.ServiceBusyError serviceBusyError,\n 5: shared.DomainNotActiveError domainNotActiveError,\n 6: shared.LimitExceededError limitExceededError,\n 7: shared.EntityNotExistsError entityNotExistError,\n 8: shared.ClientVersionNotSupportedError clientVersionNotSupportedError,\n )\n /**\n * Returns the history of specified workflow execution. It fails with 'EntityNotExistError' if speficied workflow\n * execution in unknown to the service.\n **/\n shared.GetWorkflowExecutionHistoryResponse GetWorkflowExecutionHistory(1: shared.GetWorkflowExecutionHistoryRequest getRequest)\n throws (\n 1: shared.BadRequestError badRequestError,\n 3: shared.EntityNotExistsError entityNotExistError,\n 4: shared.ServiceBusyError serviceBusyError,\n 5: shared.ClientVersionNotSupportedError clientVersionNotSupportedError,\n )\n\n /**\n * PollForDecisionTask is called by application worker to process DecisionTask from a specific taskList. A\n * DecisionTask is dispatched to callers for active workflow executions, with pending decisions.\n * Application is then expected to call 'RespondDecisionTaskCompleted' API when it is done processing the DecisionTask.\n * It will also create a 'DecisionTaskStarted' event in the history for that session before handing off DecisionTask to\n * application worker.\n **/\n shared.PollForDecisionTaskResponse PollForDecisionTask(1: shared.PollForDecisionTaskRequest pollRequest)\n throws (\n 1: shared.BadRequestError badRequestError,\n 3: shared.ServiceBusyError serviceBusyError,\n 4: shared.LimitExceededError limitExceededError,\n 5: shared.EntityNotExistsError entityNotExistError,\n 6: shared.DomainNotActiveError domainNotActiveError,\n 7: shared.ClientVersionNotSupportedError clientVersionNotSupportedError,\n )\n\n /**\n * RespondDecisionTaskCompleted is called by application worker to complete a DecisionTask handed as a result of\n * 'PollForDecisionTask' API call. Completing a DecisionTask will result in new events for the workflow execution and\n * potentially new ActivityTask being created for corresponding decisions. It will also create a DecisionTaskCompleted\n * event in the history for that session. Use the 'taskToken' provided as response of PollForDecisionTask API call\n * for completing the DecisionTask.\n * The response could contain a new decision task if there is one or if the request asking for one.\n **/\n shared.RespondDecisionTaskCompletedResponse RespondDecisionTaskCompleted(1: shared.RespondDecisionTaskCompletedRequest completeRequest)\n throws (\n 1: shared.BadRequestError badRequestError,\n 3: shared.EntityNotExistsError entityNotExistError,\n 4: shared.DomainNotActiveError domainNotActiveError,\n 5: shared.LimitExceededError limitExceededError,\n 6: shared.ServiceBusyError serviceBusyError,\n 7: shared.ClientVersionNotSupportedError clientVersionNotSupportedError,\n 8: shared.WorkflowExecutionAlreadyCompletedError workflowExecutionAlreadyCompletedError,\n )\n\n /**\n * RespondDecisionTaskFailed is called by application worker to indicate failure. This results in\n * DecisionTaskFailedEvent written to the history and a new DecisionTask created. This API can be used by client to\n * either clear sticky tasklist or report any panics during DecisionTask processing. Cadence will only append first\n * DecisionTaskFailed event to the history of workflow execution for consecutive failures.\n **/\n void RespondDecisionTaskFailed(1: shared.RespondDecisionTaskFailedRequest failedRequest)\n throws (\n 1: shared.BadRequestError badRequestError,\n 3: shared.EntityNotExistsError entityNotExistError,\n 4: shared.DomainNotActiveError domainNotActiveError,\n 5: shared.LimitExceededError limitExceededError,\n 6: shared.ServiceBusyError serviceBusyError,\n 7: shared.ClientVersionNotSupportedError clientVersionNotSupportedError,\n 8: shared.WorkflowExecutionAlreadyCompletedError workflowExecutionAlreadyCompletedError,\n )\n\n /**\n * PollForActivityTask is called by application worker to process ActivityTask from a specific taskList. ActivityTask\n * is dispatched to callers whenever a ScheduleTask decision is made for a workflow execution.\n * Application is expected to call 'RespondActivityTaskCompleted' or 'RespondActivityTaskFailed' once it is done\n * processing the task.\n * Application also needs to call 'RecordActivityTaskHeartbeat' API within 'heartbeatTimeoutSeconds' interval to\n * prevent the task from getting timed out. An event 'ActivityTaskStarted' event is also written to workflow execution\n * history before the ActivityTask is dispatched to application worker.\n **/\n shared.PollForActivityTaskResponse PollForActivityTask(1: shared.PollForActivityTaskRequest pollRequest)\n throws (\n 1: shared.BadRequestError badRequestError,\n 3: shared.ServiceBusyError serviceBusyError,\n 4: shared.LimitExceededError limitExceededError,\n 5: shared.EntityNotExistsError entityNotExistError,\n 6: shared.DomainNotActiveError domainNotActiveError,\n 7: shared.ClientVersionNotSupportedError clientVersionNotSupportedError,\n )\n\n /**\n * RecordActivityTaskHeartbeat is called by application worker while it is processing an ActivityTask. If worker fails\n * to heartbeat within 'heartbeatTimeoutSeconds' interval for the ActivityTask, then it will be marked as timedout and\n * 'ActivityTaskTimedOut' event will be written to the workflow history. Calling 'RecordActivityTaskHeartbeat' will\n * fail with 'EntityNotExistsError' in such situations. Use the 'taskToken' provided as response of\n * PollForActivityTask API call for heartbeating.\n **/\n shared.RecordActivityTaskHeartbeatResponse RecordActivityTaskHeartbeat(1: shared.RecordActivityTaskHeartbeatRequest heartbeatRequest)\n throws (\n 1: shared.BadRequestError badRequestError,\n 3: shared.EntityNotExistsError entityNotExistError,\n 4: shared.DomainNotActiveError domainNotActiveError,\n 5: shared.LimitExceededError limitExceededError,\n 6: shared.ServiceBusyError serviceBusyError,\n 7: shared.ClientVersionNotSupportedError clientVersionNotSupportedError,\n 8: shared.WorkflowExecutionAlreadyCompletedError workflowExecutionAlreadyCompletedError,\n )\n\n /**\n * RecordActivityTaskHeartbeatByID is called by application worker while it is processing an ActivityTask. If worker fails\n * to heartbeat within 'heartbeatTimeoutSeconds' interval for the ActivityTask, then it will be marked as timedout and\n * 'ActivityTaskTimedOut' event will be written to the workflow history. Calling 'RecordActivityTaskHeartbeatByID' will\n * fail with 'EntityNotExistsError' in such situations. Instead of using 'taskToken' like in RecordActivityTaskHeartbeat,\n * use Domain, WorkflowID and ActivityID\n **/\n shared.RecordActivityTaskHeartbeatResponse RecordActivityTaskHeartbeatByID(1: shared.RecordActivityTaskHeartbeatByIDRequest heartbeatRequest)\n throws (\n 1: shared.BadRequestError badRequestError,\n 3: shared.EntityNotExistsError entityNotExistError,\n 4: shared.DomainNotActiveError domainNotActiveError,\n 5: shared.LimitExceededError limitExceededError,\n 6: shared.ServiceBusyError serviceBusyError,\n 7: shared.ClientVersionNotSupportedError clientVersionNotSupportedError,\n 8: shared.WorkflowExecutionAlreadyCompletedError workflowExecutionAlreadyCompletedError,\n )\n\n /**\n * RespondActivityTaskCompleted is called by application worker when it is done processing an ActivityTask. It will\n * result in a new 'ActivityTaskCompleted' event being written to the workflow history and a new DecisionTask\n * created for the workflow so new decisions could be made. Use the 'taskToken' provided as response of\n * PollForActivityTask API call for completion. It fails with 'EntityNotExistsError' if the taskToken is not valid\n * anymore due to activity timeout.\n **/\n void RespondActivityTaskCompleted(1: shared.RespondActivityTaskCompletedRequest completeRequest)\n throws (\n 1: shared.BadRequestError badRequestError,\n 3: shared.EntityNotExistsError entityNotExistError,\n 4: shared.DomainNotActiveError domainNotActiveError,\n 5: shared.LimitExceededError limitExceededError,\n 6: shared.ServiceBusyError serviceBusyError,\n 7: shared.ClientVersionNotSupportedError clientVersionNotSupportedError,\n 8: shared.WorkflowExecutionAlreadyCompletedError workflowExecutionAlreadyCompletedError,\n )\n\n /**\n * RespondActivityTaskCompletedByID is called by application worker when it is done processing an ActivityTask.\n * It will result in a new 'ActivityTaskCompleted' event being written to the workflow history and a new DecisionTask\n * created for the workflow so new decisions could be made. Similar to RespondActivityTaskCompleted but use Domain,\n * WorkflowID and ActivityID instead of 'taskToken' for completion. It fails with 'EntityNotExistsError'\n * if the these IDs are not valid anymore due to activity timeout.\n **/\n void RespondActivityTaskCompletedByID(1: shared.RespondActivityTaskCompletedByIDRequest completeRequest)\n throws (\n 1: shared.BadRequestError badRequestError,\n 3: shared.EntityNotExistsError entityNotExistError,\n 4: shared.DomainNotActiveError domainNotActiveError,\n 5: shared.LimitExceededError limitExceededError,\n 6: shared.ServiceBusyError serviceBusyError,\n 7: shared.ClientVersionNotSupportedError clientVersionNotSupportedError,\n 8: shared.WorkflowExecutionAlreadyCompletedError workflowExecutionAlreadyCompletedError,\n )\n\n /**\n * RespondActivityTaskFailed is called by application worker when it is done processing an ActivityTask. It will\n * result in a new 'ActivityTaskFailed' event being written to the workflow history and a new DecisionTask\n * created for the workflow instance so new decisions could be made. Use the 'taskToken' provided as response of\n * PollForActivityTask API call for completion. It fails with 'EntityNotExistsError' if the taskToken is not valid\n * anymore due to activity timeout.\n **/\n void RespondActivityTaskFailed(1: shared.RespondActivityTaskFailedRequest failRequest)\n throws (\n 1: shared.BadRequestError badRequestError,\n 3: shared.EntityNotExistsError entityNotExistError,\n 4: shared.DomainNotActiveError domainNotActiveError,\n 5: shared.LimitExceededError limitExceededError,\n 6: shared.ServiceBusyError serviceBusyError,\n 7: shared.ClientVersionNotSupportedError clientVersionNotSupportedError,\n 8: shared.WorkflowExecutionAlreadyCompletedError workflowExecutionAlreadyCompletedError,\n )\n\n /**\n * RespondActivityTaskFailedByID is called by application worker when it is done processing an ActivityTask.\n * It will result in a new 'ActivityTaskFailed' event being written to the workflow history and a new DecisionTask\n * created for the workflow instance so new decisions could be made. Similar to RespondActivityTaskFailed but use\n * Domain, WorkflowID and ActivityID instead of 'taskToken' for completion. It fails with 'EntityNotExistsError'\n * if the these IDs are not valid anymore due to activity timeout.\n **/\n void RespondActivityTaskFailedByID(1: shared.RespondActivityTaskFailedByIDRequest failRequest)\n throws (\n 1: shared.BadRequestError badRequestError,\n 3: shared.EntityNotExistsError entityNotExistError,\n 4: shared.DomainNotActiveError domainNotActiveError,\n 5: shared.LimitExceededError limitExceededError,\n 6: shared.ServiceBusyError serviceBusyError,\n 7: shared.ClientVersionNotSupportedError clientVersionNotSupportedError,\n 8: shared.WorkflowExecutionAlreadyCompletedError workflowExecutionAlreadyCompletedError,\n )\n\n /**\n * RespondActivityTaskCanceled is called by application worker when it is successfully canceled an ActivityTask. It will\n * result in a new 'ActivityTaskCanceled' event being written to the workflow history and a new DecisionTask\n * created for the workflow instance so new decisions could be made. Use the 'taskToken' provided as response of\n * PollForActivityTask API call for completion. It fails with 'EntityNotExistsError' if the taskToken is not valid\n * anymore due to activity timeout.\n **/\n void RespondActivityTaskCanceled(1: shared.RespondActivityTaskCanceledRequest canceledRequest)\n throws (\n 1: shared.BadRequestError badRequestError,\n 3: shared.EntityNotExistsError entityNotExistError,\n 4: shared.DomainNotActiveError domainNotActiveError,\n 5: shared.LimitExceededError limitExceededError,\n 6: shared.ServiceBusyError serviceBusyError,\n 7: shared.ClientVersionNotSupportedError clientVersionNotSupportedError,\n 8: shared.WorkflowExecutionAlreadyCompletedError workflowExecutionAlreadyCompletedError,\n )\n\n /**\n * RespondActivityTaskCanceledByID is called by application worker when it is successfully canceled an ActivityTask.\n * It will result in a new 'ActivityTaskCanceled' event being written to the workflow history and a new DecisionTask\n * created for the workflow instance so new decisions could be made. Similar to RespondActivityTaskCanceled but use\n * Domain, WorkflowID and ActivityID instead of 'taskToken' for completion. It fails with 'EntityNotExistsError'\n * if the these IDs are not valid anymore due to activity timeout.\n **/\n void RespondActivityTaskCanceledByID(1: shared.RespondActivityTaskCanceledByIDRequest canceledRequest)\n throws (\n 1: shared.BadRequestError badRequestError,\n 3: shared.EntityNotExistsError entityNotExistError,\n 4: shared.DomainNotActiveError domainNotActiveError,\n 5: shared.LimitExceededError limitExceededError,\n 6: shared.ServiceBusyError serviceBusyError,\n 7: shared.ClientVersionNotSupportedError clientVersionNotSupportedError,\n 8: shared.WorkflowExecutionAlreadyCompletedError workflowExecutionAlreadyCompletedError,\n )\n\n /**\n * RequestCancelWorkflowExecution is called by application worker when it wants to request cancellation of a workflow instance.\n * It will result in a new 'WorkflowExecutionCancelRequested' event being written to the workflow history and a new DecisionTask\n * created for the workflow instance so new decisions could be made. It fails with 'EntityNotExistsError' if the workflow is not valid\n * anymore due to completion or doesn't exist.\n **/\n void RequestCancelWorkflowExecution(1: shared.RequestCancelWorkflowExecutionRequest cancelRequest)\n throws (\n 1: shared.BadRequestError badRequestError,\n 3: shared.EntityNotExistsError entityNotExistError,\n 4: shared.CancellationAlreadyRequestedError cancellationAlreadyRequestedError,\n 5: shared.ServiceBusyError serviceBusyError,\n 6: shared.DomainNotActiveError domainNotActiveError,\n 7: shared.LimitExceededError limitExceededError,\n 8: shared.ClientVersionNotSupportedError clientVersionNotSupportedError,\n 9: shared.WorkflowExecutionAlreadyCompletedError workflowExecutionAlreadyCompletedError,\n )\n\n /**\n * SignalWorkflowExecution is used to send a signal event to running workflow execution. This results in\n * WorkflowExecutionSignaled event recorded in the history and a decision task being created for the execution.\n **/\n void SignalWorkflowExecution(1: shared.SignalWorkflowExecutionRequest signalRequest)\n throws (\n 1: shared.BadRequestError badRequestError,\n 3: shared.EntityNotExistsError entityNotExistError,\n 4: shared.ServiceBusyError serviceBusyError,\n 5: shared.DomainNotActiveError domainNotActiveError,\n 6: shared.LimitExceededError limitExceededError,\n 7: shared.ClientVersionNotSupportedError clientVersionNotSupportedError,\n 8: shared.WorkflowExecutionAlreadyCompletedError workflowExecutionAlreadyCompletedError,\n )\n\n /**\n * SignalWithStartWorkflowExecution is used to ensure sending signal to a workflow.\n * If the workflow is running, this results in WorkflowExecutionSignaled event being recorded in the history\n * and a decision task being created for the execution.\n * If the workflow is not running or not found, this results in WorkflowExecutionStarted and WorkflowExecutionSignaled\n * events being recorded in history, and a decision task being created for the execution\n **/\n shared.StartWorkflowExecutionResponse SignalWithStartWorkflowExecution(1: shared.SignalWithStartWorkflowExecutionRequest signalWithStartRequest)\n throws (\n 1: shared.BadRequestError badRequestError,\n 3: shared.EntityNotExistsError entityNotExistError,\n 4: shared.ServiceBusyError serviceBusyError,\n 5: shared.DomainNotActiveError domainNotActiveError,\n 6: shared.LimitExceededError limitExceededError,\n 7: shared.WorkflowExecutionAlreadyStartedError workflowAlreadyStartedError,\n 8: shared.ClientVersionNotSupportedError clientVersionNotSupportedError,\n )\n\n /**\n * SignalWithStartWorkflowExecutionAsync is used to ensure sending signal to a workflow asynchronously. It will push a SignalWithStartWorkflowExecutionRequest to a queue\n * and immediately return a response. The request will be processed by a separate consumer eventually.\n **/\n shared.SignalWithStartWorkflowExecutionAsyncResponse SignalWithStartWorkflowExecutionAsync(1: shared.SignalWithStartWorkflowExecutionAsyncRequest signalWithStartRequest)\n throws (\n 1: shared.BadRequestError badRequestError,\n 3: shared.WorkflowExecutionAlreadyStartedError sessionAlreadyExistError,\n 4: shared.ServiceBusyError serviceBusyError,\n 5: shared.DomainNotActiveError domainNotActiveError,\n 6: shared.LimitExceededError limitExceededError,\n 7: shared.EntityNotExistsError entityNotExistError,\n 8: shared.ClientVersionNotSupportedError clientVersionNotSupportedError,\n )\n /**\n * ResetWorkflowExecution reset an existing workflow execution to DecisionTaskCompleted event(exclusive).\n * And it will immediately terminating the current execution instance.\n **/\n shared.ResetWorkflowExecutionResponse ResetWorkflowExecution(1: shared.ResetWorkflowExecutionRequest resetRequest)\n throws (\n 1: shared.BadRequestError badRequestError,\n 3: shared.EntityNotExistsError entityNotExistError,\n 4: shared.ServiceBusyError serviceBusyError,\n 5: shared.DomainNotActiveError domainNotActiveError,\n 6: shared.LimitExceededError limitExceededError,\n 7: shared.ClientVersionNotSupportedError clientVersionNotSupportedError,\n )\n\n /**\n * TerminateWorkflowExecution terminates an existing workflow execution by recording WorkflowExecutionTerminated event\n * in the history and immediately terminating the execution instance.\n **/\n void TerminateWorkflowExecution(1: shared.TerminateWorkflowExecutionRequest terminateRequest)\n throws (\n 1: shared.BadRequestError badRequestError,\n 3: shared.EntityNotExistsError entityNotExistError,\n 4: shared.ServiceBusyError serviceBusyError,\n 5: shared.DomainNotActiveError domainNotActiveError,\n 6: shared.LimitExceededError limitExceededError,\n 7: shared.ClientVersionNotSupportedError clientVersionNotSupportedError,\n 8: shared.WorkflowExecutionAlreadyCompletedError workflowExecutionAlreadyCompletedError,\n )\n\n /**\n * ListOpenWorkflowExecutions is a visibility API to list the open executions in a specific domain.\n **/\n shared.ListOpenWorkflowExecutionsResponse ListOpenWorkflowExecutions(1: shared.ListOpenWorkflowExecutionsRequest listRequest)\n throws (\n 1: shared.BadRequestError badRequestError,\n 3: shared.EntityNotExistsError entityNotExistError,\n 4: shared.ServiceBusyError serviceBusyError,\n 5: shared.LimitExceededError limitExceededError,\n 6: shared.ClientVersionNotSupportedError clientVersionNotSupportedError,\n )\n\n /**\n * ListClosedWorkflowExecutions is a visibility API to list the closed executions in a specific domain.\n **/\n shared.ListClosedWorkflowExecutionsResponse ListClosedWorkflowExecutions(1: shared.ListClosedWorkflowExecutionsRequest listRequest)\n throws (\n 1: shared.BadRequestError badRequestError,\n 3: shared.EntityNotExistsError entityNotExistError,\n 4: shared.ServiceBusyError serviceBusyError,\n 5: shared.ClientVersionNotSupportedError clientVersionNotSupportedError,\n )\n\n /**\n * ListWorkflowExecutions is a visibility API to list workflow executions in a specific domain.\n **/\n shared.ListWorkflowExecutionsResponse ListWorkflowExecutions(1: shared.ListWorkflowExecutionsRequest listRequest)\n throws (\n 1: shared.BadRequestError badRequestError,\n 3: shared.EntityNotExistsError entityNotExistError,\n 4: shared.ServiceBusyError serviceBusyError,\n 5: shared.ClientVersionNotSupportedError clientVersionNotSupportedError,\n )\n\n /**\n * ListArchivedWorkflowExecutions is a visibility API to list archived workflow executions in a specific domain.\n **/\n shared.ListArchivedWorkflowExecutionsResponse ListArchivedWorkflowExecutions(1: shared.ListArchivedWorkflowExecutionsRequest listRequest)\n throws (\n 1: shared.BadRequestError badRequestError,\n 3: shared.EntityNotExistsError entityNotExistError,\n 4: shared.ServiceBusyError serviceBusyError,\n 5: shared.ClientVersionNotSupportedError clientVersionNotSupportedError,\n )\n\n /**\n * ScanWorkflowExecutions is a visibility API to list large amount of workflow executions in a specific domain without order.\n **/\n shared.ListWorkflowExecutionsResponse ScanWorkflowExecutions(1: shared.ListWorkflowExecutionsRequest listRequest)\n throws (\n 1: shared.BadRequestError badRequestError,\n 3: shared.EntityNotExistsError entityNotExistError,\n 4: shared.ServiceBusyError serviceBusyError,\n 5: shared.ClientVersionNotSupportedError clientVersionNotSupportedError,\n )\n\n /**\n * CountWorkflowExecutions is a visibility API to count of workflow executions in a specific domain.\n **/\n shared.CountWorkflowExecutionsResponse CountWorkflowExecutions(1: shared.CountWorkflowExecutionsRequest countRequest)\n throws (\n 1: shared.BadRequestError badRequestError,\n 3: shared.EntityNotExistsError entityNotExistError,\n 4: shared.ServiceBusyError serviceBusyError,\n 5: shared.ClientVersionNotSupportedError clientVersionNotSupportedError,\n )\n\n /**\n * GetSearchAttributes is a visibility API to get all legal keys that could be used in list APIs\n **/\n shared.GetSearchAttributesResponse GetSearchAttributes()\n throws (\n 2: shared.ServiceBusyError serviceBusyError,\n 3: shared.ClientVersionNotSupportedError clientVersionNotSupportedError,\n )\n\n /**\n * RespondQueryTaskCompleted is called by application worker to complete a QueryTask (which is a DecisionTask for query)\n * as a result of 'PollForDecisionTask' API call. Completing a QueryTask will unblock the client call to 'QueryWorkflow'\n * API and return the query result to client as a response to 'QueryWorkflow' API call.\n **/\n void RespondQueryTaskCompleted(1: shared.RespondQueryTaskCompletedRequest completeRequest)\n throws (\n 1: shared.BadRequestError badRequestError,\n 3: shared.EntityNotExistsError entityNotExistError,\n 4: shared.LimitExceededError limitExceededError,\n 5: shared.ServiceBusyError serviceBusyError,\n 6: shared.DomainNotActiveError domainNotActiveError,\n 7: shared.ClientVersionNotSupportedError clientVersionNotSupportedError,\n )\n\n /**\n * Reset the sticky tasklist related information in mutable state of a given workflow.\n * Things cleared are:\n * 1. StickyTaskList\n * 2. StickyScheduleToStartTimeout\n * 3. ClientLibraryVersion\n * 4. ClientFeatureVersion\n * 5. ClientImpl\n **/\n shared.ResetStickyTaskListResponse ResetStickyTaskList(1: shared.ResetStickyTaskListRequest resetRequest)\n throws (\n 1: shared.BadRequestError badRequestError,\n 3: shared.EntityNotExistsError entityNotExistError,\n 4: shared.LimitExceededError limitExceededError,\n 5: shared.ServiceBusyError serviceBusyError,\n 6: shared.DomainNotActiveError domainNotActiveError,\n 7: shared.ClientVersionNotSupportedError clientVersionNotSupportedError,\n 8: shared.WorkflowExecutionAlreadyCompletedError workflowExecutionAlreadyCompletedError,\n )\n\n /**\n * QueryWorkflow returns query result for a specified workflow execution\n **/\n shared.QueryWorkflowResponse QueryWorkflow(1: shared.QueryWorkflowRequest queryRequest)\n\tthrows (\n\t 1: shared.BadRequestError badRequestError,\n\t 3: shared.EntityNotExistsError entityNotExistError,\n\t 4: shared.QueryFailedError queryFailedError,\n\t 5: shared.LimitExceededError limitExceededError,\n\t 6: shared.ServiceBusyError serviceBusyError,\n\t 7: shared.ClientVersionNotSupportedError clientVersionNotSupportedError,\n\t)\n\n /**\n * DescribeWorkflowExecution returns information about the specified workflow execution.\n **/\n shared.DescribeWorkflowExecutionResponse DescribeWorkflowExecution(1: shared.DescribeWorkflowExecutionRequest describeRequest)\n throws (\n 1: shared.BadRequestError badRequestError,\n 3: shared.EntityNotExistsError entityNotExistError,\n 4: shared.LimitExceededError limitExceededError,\n 5: shared.ServiceBusyError serviceBusyError,\n 6: shared.ClientVersionNotSupportedError clientVersionNotSupportedError,\n )\n\n /**\n * DescribeTaskList returns information about the target tasklist, right now this API returns the\n * pollers which polled this tasklist in last few minutes.\n **/\n shared.DescribeTaskListResponse DescribeTaskList(1: shared.DescribeTaskListRequest request)\n throws (\n 1: shared.BadRequestError badRequestError,\n 3: shared.EntityNotExistsError entityNotExistError,\n 4: shared.LimitExceededError limitExceededError,\n 5: shared.ServiceBusyError serviceBusyError,\n 6: shared.ClientVersionNotSupportedError clientVersionNotSupportedError,\n )\n\n /**\n * GetClusterInfo returns information about cadence cluster\n **/\n shared.ClusterInfo GetClusterInfo()\n throws (\n 1: shared.InternalServiceError internalServiceError,\n 2: shared.ServiceBusyError serviceBusyError,\n )\n\n /**\n * GetTaskListsByDomain returns the list of all the task lists for a domainName.\n **/\n shared.GetTaskListsByDomainResponse GetTaskListsByDomain(1: shared.GetTaskListsByDomainRequest request)\n throws (\n 1: shared.BadRequestError badRequestError,\n 2: shared.EntityNotExistsError entityNotExistError,\n 3: shared.LimitExceededError limitExceededError,\n 4: shared.ServiceBusyError serviceBusyError,\n 5: shared.ClientVersionNotSupportedError clientVersionNotSupportedError,\n )\n\n /**\n * ReapplyEvents applies stale events to the current workflow and current run\n **/\n shared.ListTaskListPartitionsResponse ListTaskListPartitions(1: shared.ListTaskListPartitionsRequest request)\n throws (\n 1: shared.BadRequestError badRequestError,\n 3: shared.EntityNotExistsError entityNotExistError,\n 4: shared.LimitExceededError limitExceededError,\n 5: shared.ServiceBusyError serviceBusyError,\n )\n\n /**\n * RefreshWorkflowTasks refreshes all tasks of a workflow\n **/\n void RefreshWorkflowTasks(1: shared.RefreshWorkflowTasksRequest request)\n throws (\n 1: shared.BadRequestError badRequestError,\n 2: shared.DomainNotActiveError domainNotActiveError,\n 3: shared.ServiceBusyError serviceBusyError,\n 4: shared.EntityNotExistsError entityNotExistError,\n )\n}\n" +const rawIDL = "// Copyright (c) 2017 Uber Technologies, Inc.\n//\n// Permission is hereby granted, free of charge, to any person obtaining a copy\n// of this software and associated documentation files (the \"Software\"), to deal\n// in the Software without restriction, including without limitation the rights\n// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n// copies of the Software, and to permit persons to whom the Software is\n// furnished to do so, subject to the following conditions:\n//\n// The above copyright notice and this permission notice shall be included in\n// all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n// THE SOFTWARE.\n\ninclude \"shared.thrift\"\n\nnamespace java com.uber.cadence\n\n/**\n* WorkflowService API is exposed to provide support for long running applications. Application is expected to call\n* StartWorkflowExecution to create an instance for each instance of long running workflow. Such applications are expected\n* to have a worker which regularly polls for DecisionTask and ActivityTask from the WorkflowService. For each\n* DecisionTask, application is expected to process the history of events for that session and respond back with next\n* decisions. For each ActivityTask, application is expected to execute the actual logic for that task and respond back\n* with completion or failure. Worker is expected to regularly heartbeat while activity task is running.\n**/\nservice WorkflowService {\n /**\n * RegisterDomain creates a new domain which can be used as a container for all resources. Domain is a top level\n * entity within Cadence, used as a container for all resources like workflow executions, tasklists, etc. Domain\n * acts as a sandbox and provides isolation for all resources within the domain. All resources belongs to exactly one\n * domain.\n **/\n void RegisterDomain(1: shared.RegisterDomainRequest registerRequest)\n throws (\n 1: shared.BadRequestError badRequestError,\n 3: shared.DomainAlreadyExistsError domainExistsError,\n 4: shared.ServiceBusyError serviceBusyError,\n 5: shared.ClientVersionNotSupportedError clientVersionNotSupportedError,\n 6: shared.AccessDeniedError accessDeniedError,\n )\n\n /**\n * DescribeDomain returns the information and configuration for a registered domain.\n **/\n shared.DescribeDomainResponse DescribeDomain(1: shared.DescribeDomainRequest describeRequest)\n throws (\n 1: shared.BadRequestError badRequestError,\n 3: shared.EntityNotExistsError entityNotExistError,\n 4: shared.ServiceBusyError serviceBusyError,\n 5: shared.ClientVersionNotSupportedError clientVersionNotSupportedError,\n 6: shared.AccessDeniedError accessDeniedError,\n )\n\n /**\n * ListDomains returns the information and configuration for all domains.\n **/\n shared.ListDomainsResponse ListDomains(1: shared.ListDomainsRequest listRequest)\n throws (\n 1: shared.BadRequestError badRequestError,\n 3: shared.EntityNotExistsError entityNotExistError,\n 4: shared.ServiceBusyError serviceBusyError,\n 5: shared.ClientVersionNotSupportedError clientVersionNotSupportedError,\n 6: shared.AccessDeniedError accessDeniedError,\n )\n\n /**\n * UpdateDomain is used to update the information and configuration for a registered domain.\n **/\n shared.UpdateDomainResponse UpdateDomain(1: shared.UpdateDomainRequest updateRequest)\n throws (\n 1: shared.BadRequestError badRequestError,\n 3: shared.EntityNotExistsError entityNotExistError,\n 4: shared.ServiceBusyError serviceBusyError,\n 5: shared.DomainNotActiveError domainNotActiveError,\n 6: shared.ClientVersionNotSupportedError clientVersionNotSupportedError,\n 7: shared.AccessDeniedError accessDeniedError,\n )\n\n /**\n * DeprecateDomain us used to update status of a registered domain to DEPRECATED. Once the domain is deprecated\n * it cannot be used to start new workflow executions. Existing workflow executions will continue to run on\n * deprecated domains.\n **/\n void DeprecateDomain(1: shared.DeprecateDomainRequest deprecateRequest)\n throws (\n 1: shared.BadRequestError badRequestError,\n 3: shared.EntityNotExistsError entityNotExistError,\n 4: shared.ServiceBusyError serviceBusyError,\n 5: shared.DomainNotActiveError domainNotActiveError,\n 6: shared.ClientVersionNotSupportedError clientVersionNotSupportedError,\n 7: shared.AccessDeniedError accessDeniedError,\n )\n\n /**\n * RestartWorkflowExecution restarts a previous workflow\n * If the workflow is currently running it will terminate and restart\n **/\n shared.RestartWorkflowExecutionResponse RestartWorkflowExecution(1: shared.RestartWorkflowExecutionRequest restartRequest)\n throws (\n 1: shared.BadRequestError badRequestError,\n 2: shared.ServiceBusyError serviceBusyError,\n 3: shared.DomainNotActiveError domainNotActiveError,\n 4: shared.LimitExceededError limitExceededError,\n 5: shared.EntityNotExistsError entityNotExistError,\n 6: shared.ClientVersionNotSupportedError clientVersionNotSupportedError,\n 7: shared.AccessDeniedError accessDeniedError,\n )\n\n /**\n * DiagnoseWorkflowExecution diagnoses a previous workflow execution\n **/\n shared.DiagnoseWorkflowExecutionResponse DiagnoseWorkflowExecution(1: shared.DiagnoseWorkflowExecutionRequest diagnoseRequest)\n throws (\n 1: shared.DomainNotActiveError domainNotActiveError,\n 2: shared.ServiceBusyError serviceBusyError,\n 3: shared.EntityNotExistsError entityNotExistError,\n 4: shared.ClientVersionNotSupportedError clientVersionNotSupportedError,\n 5: shared.AccessDeniedError accessDeniedError,\n )\n\n /**\n * StartWorkflowExecution starts a new long running workflow instance. It will create the instance with\n * 'WorkflowExecutionStarted' event in history and also schedule the first DecisionTask for the worker to make the\n * first decision for this instance. It will return 'WorkflowExecutionAlreadyStartedError', if an instance already\n * exists with same workflowId.\n **/\n shared.StartWorkflowExecutionResponse StartWorkflowExecution(1: shared.StartWorkflowExecutionRequest startRequest)\n throws (\n 1: shared.BadRequestError badRequestError,\n 3: shared.WorkflowExecutionAlreadyStartedError sessionAlreadyExistError,\n 4: shared.ServiceBusyError serviceBusyError,\n 5: shared.DomainNotActiveError domainNotActiveError,\n 6: shared.LimitExceededError limitExceededError,\n 7: shared.EntityNotExistsError entityNotExistError,\n 8: shared.ClientVersionNotSupportedError clientVersionNotSupportedError,\n 9: shared.AccessDeniedError accessDeniedError,\n )\n /**\n * StartWorkflowExecutionAsync starts a new long running workflow instance asynchronously. It will push a StartWorkflowExecutionRequest to a queue\n * and immediately return a response. The request will be processed by a separate consumer eventually.\n **/\n shared.StartWorkflowExecutionAsyncResponse StartWorkflowExecutionAsync(1: shared.StartWorkflowExecutionAsyncRequest startRequest)\n throws (\n 1: shared.BadRequestError badRequestError,\n 3: shared.WorkflowExecutionAlreadyStartedError sessionAlreadyExistError,\n 4: shared.ServiceBusyError serviceBusyError,\n 5: shared.DomainNotActiveError domainNotActiveError,\n 6: shared.LimitExceededError limitExceededError,\n 7: shared.EntityNotExistsError entityNotExistError,\n 8: shared.ClientVersionNotSupportedError clientVersionNotSupportedError,\n 9: shared.AccessDeniedError accessDeniedError,\n )\n /**\n * Returns the history of specified workflow execution. It fails with 'EntityNotExistError' if speficied workflow\n * execution in unknown to the service.\n **/\n shared.GetWorkflowExecutionHistoryResponse GetWorkflowExecutionHistory(1: shared.GetWorkflowExecutionHistoryRequest getRequest)\n throws (\n 1: shared.BadRequestError badRequestError,\n 3: shared.EntityNotExistsError entityNotExistError,\n 4: shared.ServiceBusyError serviceBusyError,\n 5: shared.ClientVersionNotSupportedError clientVersionNotSupportedError,\n 6: shared.AccessDeniedError accessDeniedError,\n )\n\n /**\n * PollForDecisionTask is called by application worker to process DecisionTask from a specific taskList. A\n * DecisionTask is dispatched to callers for active workflow executions, with pending decisions.\n * Application is then expected to call 'RespondDecisionTaskCompleted' API when it is done processing the DecisionTask.\n * It will also create a 'DecisionTaskStarted' event in the history for that session before handing off DecisionTask to\n * application worker.\n **/\n shared.PollForDecisionTaskResponse PollForDecisionTask(1: shared.PollForDecisionTaskRequest pollRequest)\n throws (\n 1: shared.BadRequestError badRequestError,\n 3: shared.ServiceBusyError serviceBusyError,\n 4: shared.LimitExceededError limitExceededError,\n 5: shared.EntityNotExistsError entityNotExistError,\n 6: shared.DomainNotActiveError domainNotActiveError,\n 7: shared.ClientVersionNotSupportedError clientVersionNotSupportedError,\n 8: shared.AccessDeniedError accessDeniedError,\n )\n\n /**\n * RespondDecisionTaskCompleted is called by application worker to complete a DecisionTask handed as a result of\n * 'PollForDecisionTask' API call. Completing a DecisionTask will result in new events for the workflow execution and\n * potentially new ActivityTask being created for corresponding decisions. It will also create a DecisionTaskCompleted\n * event in the history for that session. Use the 'taskToken' provided as response of PollForDecisionTask API call\n * for completing the DecisionTask.\n * The response could contain a new decision task if there is one or if the request asking for one.\n **/\n shared.RespondDecisionTaskCompletedResponse RespondDecisionTaskCompleted(1: shared.RespondDecisionTaskCompletedRequest completeRequest)\n throws (\n 1: shared.BadRequestError badRequestError,\n 3: shared.EntityNotExistsError entityNotExistError,\n 4: shared.DomainNotActiveError domainNotActiveError,\n 5: shared.LimitExceededError limitExceededError,\n 6: shared.ServiceBusyError serviceBusyError,\n 7: shared.ClientVersionNotSupportedError clientVersionNotSupportedError,\n 8: shared.WorkflowExecutionAlreadyCompletedError workflowExecutionAlreadyCompletedError,\n 9: shared.AccessDeniedError accessDeniedError,\n )\n\n /**\n * RespondDecisionTaskFailed is called by application worker to indicate failure. This results in\n * DecisionTaskFailedEvent written to the history and a new DecisionTask created. This API can be used by client to\n * either clear sticky tasklist or report any panics during DecisionTask processing. Cadence will only append first\n * DecisionTaskFailed event to the history of workflow execution for consecutive failures.\n **/\n void RespondDecisionTaskFailed(1: shared.RespondDecisionTaskFailedRequest failedRequest)\n throws (\n 1: shared.BadRequestError badRequestError,\n 3: shared.EntityNotExistsError entityNotExistError,\n 4: shared.DomainNotActiveError domainNotActiveError,\n 5: shared.LimitExceededError limitExceededError,\n 6: shared.ServiceBusyError serviceBusyError,\n 7: shared.ClientVersionNotSupportedError clientVersionNotSupportedError,\n 8: shared.WorkflowExecutionAlreadyCompletedError workflowExecutionAlreadyCompletedError,\n 9: shared.AccessDeniedError accessDeniedError,\n )\n\n /**\n * PollForActivityTask is called by application worker to process ActivityTask from a specific taskList. ActivityTask\n * is dispatched to callers whenever a ScheduleTask decision is made for a workflow execution.\n * Application is expected to call 'RespondActivityTaskCompleted' or 'RespondActivityTaskFailed' once it is done\n * processing the task.\n * Application also needs to call 'RecordActivityTaskHeartbeat' API within 'heartbeatTimeoutSeconds' interval to\n * prevent the task from getting timed out. An event 'ActivityTaskStarted' event is also written to workflow execution\n * history before the ActivityTask is dispatched to application worker.\n **/\n shared.PollForActivityTaskResponse PollForActivityTask(1: shared.PollForActivityTaskRequest pollRequest)\n throws (\n 1: shared.BadRequestError badRequestError,\n 3: shared.ServiceBusyError serviceBusyError,\n 4: shared.LimitExceededError limitExceededError,\n 5: shared.EntityNotExistsError entityNotExistError,\n 6: shared.DomainNotActiveError domainNotActiveError,\n 7: shared.ClientVersionNotSupportedError clientVersionNotSupportedError,\n 8: shared.AccessDeniedError accessDeniedError,\n )\n\n /**\n * RecordActivityTaskHeartbeat is called by application worker while it is processing an ActivityTask. If worker fails\n * to heartbeat within 'heartbeatTimeoutSeconds' interval for the ActivityTask, then it will be marked as timedout and\n * 'ActivityTaskTimedOut' event will be written to the workflow history. Calling 'RecordActivityTaskHeartbeat' will\n * fail with 'EntityNotExistsError' in such situations. Use the 'taskToken' provided as response of\n * PollForActivityTask API call for heartbeating.\n **/\n shared.RecordActivityTaskHeartbeatResponse RecordActivityTaskHeartbeat(1: shared.RecordActivityTaskHeartbeatRequest heartbeatRequest)\n throws (\n 1: shared.BadRequestError badRequestError,\n 3: shared.EntityNotExistsError entityNotExistError,\n 4: shared.DomainNotActiveError domainNotActiveError,\n 5: shared.LimitExceededError limitExceededError,\n 6: shared.ServiceBusyError serviceBusyError,\n 7: shared.ClientVersionNotSupportedError clientVersionNotSupportedError,\n 8: shared.WorkflowExecutionAlreadyCompletedError workflowExecutionAlreadyCompletedError,\n 9: shared.AccessDeniedError accessDeniedError,\n )\n\n /**\n * RecordActivityTaskHeartbeatByID is called by application worker while it is processing an ActivityTask. If worker fails\n * to heartbeat within 'heartbeatTimeoutSeconds' interval for the ActivityTask, then it will be marked as timedout and\n * 'ActivityTaskTimedOut' event will be written to the workflow history. Calling 'RecordActivityTaskHeartbeatByID' will\n * fail with 'EntityNotExistsError' in such situations. Instead of using 'taskToken' like in RecordActivityTaskHeartbeat,\n * use Domain, WorkflowID and ActivityID\n **/\n shared.RecordActivityTaskHeartbeatResponse RecordActivityTaskHeartbeatByID(1: shared.RecordActivityTaskHeartbeatByIDRequest heartbeatRequest)\n throws (\n 1: shared.BadRequestError badRequestError,\n 3: shared.EntityNotExistsError entityNotExistError,\n 4: shared.DomainNotActiveError domainNotActiveError,\n 5: shared.LimitExceededError limitExceededError,\n 6: shared.ServiceBusyError serviceBusyError,\n 7: shared.ClientVersionNotSupportedError clientVersionNotSupportedError,\n 8: shared.WorkflowExecutionAlreadyCompletedError workflowExecutionAlreadyCompletedError,\n 9: shared.AccessDeniedError accessDeniedError,\n )\n\n /**\n * RespondActivityTaskCompleted is called by application worker when it is done processing an ActivityTask. It will\n * result in a new 'ActivityTaskCompleted' event being written to the workflow history and a new DecisionTask\n * created for the workflow so new decisions could be made. Use the 'taskToken' provided as response of\n * PollForActivityTask API call for completion. It fails with 'EntityNotExistsError' if the taskToken is not valid\n * anymore due to activity timeout.\n **/\n void RespondActivityTaskCompleted(1: shared.RespondActivityTaskCompletedRequest completeRequest)\n throws (\n 1: shared.BadRequestError badRequestError,\n 3: shared.EntityNotExistsError entityNotExistError,\n 4: shared.DomainNotActiveError domainNotActiveError,\n 5: shared.LimitExceededError limitExceededError,\n 6: shared.ServiceBusyError serviceBusyError,\n 7: shared.ClientVersionNotSupportedError clientVersionNotSupportedError,\n 8: shared.WorkflowExecutionAlreadyCompletedError workflowExecutionAlreadyCompletedError,\n 9: shared.AccessDeniedError accessDeniedError,\n )\n\n /**\n * RespondActivityTaskCompletedByID is called by application worker when it is done processing an ActivityTask.\n * It will result in a new 'ActivityTaskCompleted' event being written to the workflow history and a new DecisionTask\n * created for the workflow so new decisions could be made. Similar to RespondActivityTaskCompleted but use Domain,\n * WorkflowID and ActivityID instead of 'taskToken' for completion. It fails with 'EntityNotExistsError'\n * if the these IDs are not valid anymore due to activity timeout.\n **/\n void RespondActivityTaskCompletedByID(1: shared.RespondActivityTaskCompletedByIDRequest completeRequest)\n throws (\n 1: shared.BadRequestError badRequestError,\n 3: shared.EntityNotExistsError entityNotExistError,\n 4: shared.DomainNotActiveError domainNotActiveError,\n 5: shared.LimitExceededError limitExceededError,\n 6: shared.ServiceBusyError serviceBusyError,\n 7: shared.ClientVersionNotSupportedError clientVersionNotSupportedError,\n 8: shared.WorkflowExecutionAlreadyCompletedError workflowExecutionAlreadyCompletedError,\n 9: shared.AccessDeniedError accessDeniedError,\n )\n\n /**\n * RespondActivityTaskFailed is called by application worker when it is done processing an ActivityTask. It will\n * result in a new 'ActivityTaskFailed' event being written to the workflow history and a new DecisionTask\n * created for the workflow instance so new decisions could be made. Use the 'taskToken' provided as response of\n * PollForActivityTask API call for completion. It fails with 'EntityNotExistsError' if the taskToken is not valid\n * anymore due to activity timeout.\n **/\n void RespondActivityTaskFailed(1: shared.RespondActivityTaskFailedRequest failRequest)\n throws (\n 1: shared.BadRequestError badRequestError,\n 3: shared.EntityNotExistsError entityNotExistError,\n 4: shared.DomainNotActiveError domainNotActiveError,\n 5: shared.LimitExceededError limitExceededError,\n 6: shared.ServiceBusyError serviceBusyError,\n 7: shared.ClientVersionNotSupportedError clientVersionNotSupportedError,\n 8: shared.WorkflowExecutionAlreadyCompletedError workflowExecutionAlreadyCompletedError,\n 9: shared.AccessDeniedError accessDeniedError,\n )\n\n /**\n * RespondActivityTaskFailedByID is called by application worker when it is done processing an ActivityTask.\n * It will result in a new 'ActivityTaskFailed' event being written to the workflow history and a new DecisionTask\n * created for the workflow instance so new decisions could be made. Similar to RespondActivityTaskFailed but use\n * Domain, WorkflowID and ActivityID instead of 'taskToken' for completion. It fails with 'EntityNotExistsError'\n * if the these IDs are not valid anymore due to activity timeout.\n **/\n void RespondActivityTaskFailedByID(1: shared.RespondActivityTaskFailedByIDRequest failRequest)\n throws (\n 1: shared.BadRequestError badRequestError,\n 3: shared.EntityNotExistsError entityNotExistError,\n 4: shared.DomainNotActiveError domainNotActiveError,\n 5: shared.LimitExceededError limitExceededError,\n 6: shared.ServiceBusyError serviceBusyError,\n 7: shared.ClientVersionNotSupportedError clientVersionNotSupportedError,\n 8: shared.WorkflowExecutionAlreadyCompletedError workflowExecutionAlreadyCompletedError,\n 9: shared.AccessDeniedError accessDeniedError,\n )\n\n /**\n * RespondActivityTaskCanceled is called by application worker when it is successfully canceled an ActivityTask. It will\n * result in a new 'ActivityTaskCanceled' event being written to the workflow history and a new DecisionTask\n * created for the workflow instance so new decisions could be made. Use the 'taskToken' provided as response of\n * PollForActivityTask API call for completion. It fails with 'EntityNotExistsError' if the taskToken is not valid\n * anymore due to activity timeout.\n **/\n void RespondActivityTaskCanceled(1: shared.RespondActivityTaskCanceledRequest canceledRequest)\n throws (\n 1: shared.BadRequestError badRequestError,\n 3: shared.EntityNotExistsError entityNotExistError,\n 4: shared.DomainNotActiveError domainNotActiveError,\n 5: shared.LimitExceededError limitExceededError,\n 6: shared.ServiceBusyError serviceBusyError,\n 7: shared.ClientVersionNotSupportedError clientVersionNotSupportedError,\n 8: shared.WorkflowExecutionAlreadyCompletedError workflowExecutionAlreadyCompletedError,\n 9: shared.AccessDeniedError accessDeniedError,\n )\n\n /**\n * RespondActivityTaskCanceledByID is called by application worker when it is successfully canceled an ActivityTask.\n * It will result in a new 'ActivityTaskCanceled' event being written to the workflow history and a new DecisionTask\n * created for the workflow instance so new decisions could be made. Similar to RespondActivityTaskCanceled but use\n * Domain, WorkflowID and ActivityID instead of 'taskToken' for completion. It fails with 'EntityNotExistsError'\n * if the these IDs are not valid anymore due to activity timeout.\n **/\n void RespondActivityTaskCanceledByID(1: shared.RespondActivityTaskCanceledByIDRequest canceledRequest)\n throws (\n 1: shared.BadRequestError badRequestError,\n 3: shared.EntityNotExistsError entityNotExistError,\n 4: shared.DomainNotActiveError domainNotActiveError,\n 5: shared.LimitExceededError limitExceededError,\n 6: shared.ServiceBusyError serviceBusyError,\n 7: shared.ClientVersionNotSupportedError clientVersionNotSupportedError,\n 8: shared.WorkflowExecutionAlreadyCompletedError workflowExecutionAlreadyCompletedError,\n 9: shared.AccessDeniedError accessDeniedError,\n )\n\n /**\n * RequestCancelWorkflowExecution is called by application worker when it wants to request cancellation of a workflow instance.\n * It will result in a new 'WorkflowExecutionCancelRequested' event being written to the workflow history and a new DecisionTask\n * created for the workflow instance so new decisions could be made. It fails with 'EntityNotExistsError' if the workflow is not valid\n * anymore due to completion or doesn't exist.\n **/\n void RequestCancelWorkflowExecution(1: shared.RequestCancelWorkflowExecutionRequest cancelRequest)\n throws (\n 1: shared.BadRequestError badRequestError,\n 3: shared.EntityNotExistsError entityNotExistError,\n 4: shared.CancellationAlreadyRequestedError cancellationAlreadyRequestedError,\n 5: shared.ServiceBusyError serviceBusyError,\n 6: shared.DomainNotActiveError domainNotActiveError,\n 7: shared.LimitExceededError limitExceededError,\n 8: shared.ClientVersionNotSupportedError clientVersionNotSupportedError,\n 9: shared.WorkflowExecutionAlreadyCompletedError workflowExecutionAlreadyCompletedError,\n 10: shared.AccessDeniedError accessDeniedError,\n )\n\n /**\n * SignalWorkflowExecution is used to send a signal event to running workflow execution. This results in\n * WorkflowExecutionSignaled event recorded in the history and a decision task being created for the execution.\n **/\n void SignalWorkflowExecution(1: shared.SignalWorkflowExecutionRequest signalRequest)\n throws (\n 1: shared.BadRequestError badRequestError,\n 3: shared.EntityNotExistsError entityNotExistError,\n 4: shared.ServiceBusyError serviceBusyError,\n 5: shared.DomainNotActiveError domainNotActiveError,\n 6: shared.LimitExceededError limitExceededError,\n 7: shared.ClientVersionNotSupportedError clientVersionNotSupportedError,\n 8: shared.WorkflowExecutionAlreadyCompletedError workflowExecutionAlreadyCompletedError,\n 9: shared.AccessDeniedError accessDeniedError,\n )\n\n /**\n * SignalWithStartWorkflowExecution is used to ensure sending signal to a workflow.\n * If the workflow is running, this results in WorkflowExecutionSignaled event being recorded in the history\n * and a decision task being created for the execution.\n * If the workflow is not running or not found, this results in WorkflowExecutionStarted and WorkflowExecutionSignaled\n * events being recorded in history, and a decision task being created for the execution\n **/\n shared.StartWorkflowExecutionResponse SignalWithStartWorkflowExecution(1: shared.SignalWithStartWorkflowExecutionRequest signalWithStartRequest)\n throws (\n 1: shared.BadRequestError badRequestError,\n 3: shared.EntityNotExistsError entityNotExistError,\n 4: shared.ServiceBusyError serviceBusyError,\n 5: shared.DomainNotActiveError domainNotActiveError,\n 6: shared.LimitExceededError limitExceededError,\n 7: shared.WorkflowExecutionAlreadyStartedError workflowAlreadyStartedError,\n 8: shared.ClientVersionNotSupportedError clientVersionNotSupportedError,\n 9: shared.AccessDeniedError accessDeniedError,\n )\n\n /**\n * SignalWithStartWorkflowExecutionAsync is used to ensure sending signal to a workflow asynchronously. It will push a SignalWithStartWorkflowExecutionRequest to a queue\n * and immediately return a response. The request will be processed by a separate consumer eventually.\n **/\n shared.SignalWithStartWorkflowExecutionAsyncResponse SignalWithStartWorkflowExecutionAsync(1: shared.SignalWithStartWorkflowExecutionAsyncRequest signalWithStartRequest)\n throws (\n 1: shared.BadRequestError badRequestError,\n 3: shared.WorkflowExecutionAlreadyStartedError sessionAlreadyExistError,\n 4: shared.ServiceBusyError serviceBusyError,\n 5: shared.DomainNotActiveError domainNotActiveError,\n 6: shared.LimitExceededError limitExceededError,\n 7: shared.EntityNotExistsError entityNotExistError,\n 8: shared.ClientVersionNotSupportedError clientVersionNotSupportedError,\n 9: shared.AccessDeniedError accessDeniedError,\n )\n /**\n * ResetWorkflowExecution reset an existing workflow execution to DecisionTaskCompleted event(exclusive).\n * And it will immediately terminating the current execution instance.\n **/\n shared.ResetWorkflowExecutionResponse ResetWorkflowExecution(1: shared.ResetWorkflowExecutionRequest resetRequest)\n throws (\n 1: shared.BadRequestError badRequestError,\n 3: shared.EntityNotExistsError entityNotExistError,\n 4: shared.ServiceBusyError serviceBusyError,\n 5: shared.DomainNotActiveError domainNotActiveError,\n 6: shared.LimitExceededError limitExceededError,\n 7: shared.ClientVersionNotSupportedError clientVersionNotSupportedError,\n 8: shared.AccessDeniedError accessDeniedError,\n )\n\n /**\n * TerminateWorkflowExecution terminates an existing workflow execution by recording WorkflowExecutionTerminated event\n * in the history and immediately terminating the execution instance.\n **/\n void TerminateWorkflowExecution(1: shared.TerminateWorkflowExecutionRequest terminateRequest)\n throws (\n 1: shared.BadRequestError badRequestError,\n 3: shared.EntityNotExistsError entityNotExistError,\n 4: shared.ServiceBusyError serviceBusyError,\n 5: shared.DomainNotActiveError domainNotActiveError,\n 6: shared.LimitExceededError limitExceededError,\n 7: shared.ClientVersionNotSupportedError clientVersionNotSupportedError,\n 8: shared.WorkflowExecutionAlreadyCompletedError workflowExecutionAlreadyCompletedError,\n 9: shared.AccessDeniedError accessDeniedError,\n )\n\n /**\n * ListOpenWorkflowExecutions is a visibility API to list the open executions in a specific domain.\n **/\n shared.ListOpenWorkflowExecutionsResponse ListOpenWorkflowExecutions(1: shared.ListOpenWorkflowExecutionsRequest listRequest)\n throws (\n 1: shared.BadRequestError badRequestError,\n 3: shared.EntityNotExistsError entityNotExistError,\n 4: shared.ServiceBusyError serviceBusyError,\n 5: shared.LimitExceededError limitExceededError,\n 6: shared.ClientVersionNotSupportedError clientVersionNotSupportedError,\n 7: shared.AccessDeniedError accessDeniedError,\n )\n\n /**\n * ListClosedWorkflowExecutions is a visibility API to list the closed executions in a specific domain.\n **/\n shared.ListClosedWorkflowExecutionsResponse ListClosedWorkflowExecutions(1: shared.ListClosedWorkflowExecutionsRequest listRequest)\n throws (\n 1: shared.BadRequestError badRequestError,\n 3: shared.EntityNotExistsError entityNotExistError,\n 4: shared.ServiceBusyError serviceBusyError,\n 5: shared.ClientVersionNotSupportedError clientVersionNotSupportedError,\n 6: shared.AccessDeniedError accessDeniedError,\n )\n\n /**\n * ListWorkflowExecutions is a visibility API to list workflow executions in a specific domain.\n **/\n shared.ListWorkflowExecutionsResponse ListWorkflowExecutions(1: shared.ListWorkflowExecutionsRequest listRequest)\n throws (\n 1: shared.BadRequestError badRequestError,\n 3: shared.EntityNotExistsError entityNotExistError,\n 4: shared.ServiceBusyError serviceBusyError,\n 5: shared.ClientVersionNotSupportedError clientVersionNotSupportedError,\n 6: shared.AccessDeniedError accessDeniedError,\n )\n\n /**\n * ListArchivedWorkflowExecutions is a visibility API to list archived workflow executions in a specific domain.\n **/\n shared.ListArchivedWorkflowExecutionsResponse ListArchivedWorkflowExecutions(1: shared.ListArchivedWorkflowExecutionsRequest listRequest)\n throws (\n 1: shared.BadRequestError badRequestError,\n 3: shared.EntityNotExistsError entityNotExistError,\n 4: shared.ServiceBusyError serviceBusyError,\n 5: shared.ClientVersionNotSupportedError clientVersionNotSupportedError,\n 6: shared.AccessDeniedError accessDeniedError,\n )\n\n /**\n * ScanWorkflowExecutions is a visibility API to list large amount of workflow executions in a specific domain without order.\n **/\n shared.ListWorkflowExecutionsResponse ScanWorkflowExecutions(1: shared.ListWorkflowExecutionsRequest listRequest)\n throws (\n 1: shared.BadRequestError badRequestError,\n 3: shared.EntityNotExistsError entityNotExistError,\n 4: shared.ServiceBusyError serviceBusyError,\n 5: shared.ClientVersionNotSupportedError clientVersionNotSupportedError,\n 6: shared.AccessDeniedError accessDeniedError,\n )\n\n /**\n * CountWorkflowExecutions is a visibility API to count of workflow executions in a specific domain.\n **/\n shared.CountWorkflowExecutionsResponse CountWorkflowExecutions(1: shared.CountWorkflowExecutionsRequest countRequest)\n throws (\n 1: shared.BadRequestError badRequestError,\n 3: shared.EntityNotExistsError entityNotExistError,\n 4: shared.ServiceBusyError serviceBusyError,\n 5: shared.ClientVersionNotSupportedError clientVersionNotSupportedError,\n 6: shared.AccessDeniedError accessDeniedError,\n )\n\n /**\n * GetSearchAttributes is a visibility API to get all legal keys that could be used in list APIs\n **/\n shared.GetSearchAttributesResponse GetSearchAttributes()\n throws (\n 2: shared.ServiceBusyError serviceBusyError,\n 3: shared.ClientVersionNotSupportedError clientVersionNotSupportedError,\n 4: shared.AccessDeniedError accessDeniedError,\n )\n\n /**\n * RespondQueryTaskCompleted is called by application worker to complete a QueryTask (which is a DecisionTask for query)\n * as a result of 'PollForDecisionTask' API call. Completing a QueryTask will unblock the client call to 'QueryWorkflow'\n * API and return the query result to client as a response to 'QueryWorkflow' API call.\n **/\n void RespondQueryTaskCompleted(1: shared.RespondQueryTaskCompletedRequest completeRequest)\n throws (\n 1: shared.BadRequestError badRequestError,\n 3: shared.EntityNotExistsError entityNotExistError,\n 4: shared.LimitExceededError limitExceededError,\n 5: shared.ServiceBusyError serviceBusyError,\n 6: shared.DomainNotActiveError domainNotActiveError,\n 7: shared.ClientVersionNotSupportedError clientVersionNotSupportedError,\n 8: shared.AccessDeniedError accessDeniedError,\n )\n\n /**\n * Reset the sticky tasklist related information in mutable state of a given workflow.\n * Things cleared are:\n * 1. StickyTaskList\n * 2. StickyScheduleToStartTimeout\n * 3. ClientLibraryVersion\n * 4. ClientFeatureVersion\n * 5. ClientImpl\n **/\n shared.ResetStickyTaskListResponse ResetStickyTaskList(1: shared.ResetStickyTaskListRequest resetRequest)\n throws (\n 1: shared.BadRequestError badRequestError,\n 3: shared.EntityNotExistsError entityNotExistError,\n 4: shared.LimitExceededError limitExceededError,\n 5: shared.ServiceBusyError serviceBusyError,\n 6: shared.DomainNotActiveError domainNotActiveError,\n 7: shared.ClientVersionNotSupportedError clientVersionNotSupportedError,\n 8: shared.WorkflowExecutionAlreadyCompletedError workflowExecutionAlreadyCompletedError,\n 9: shared.AccessDeniedError accessDeniedError,\n )\n\n /**\n * QueryWorkflow returns query result for a specified workflow execution\n **/\n shared.QueryWorkflowResponse QueryWorkflow(1: shared.QueryWorkflowRequest queryRequest)\n\tthrows (\n\t 1: shared.BadRequestError badRequestError,\n\t 3: shared.EntityNotExistsError entityNotExistError,\n\t 4: shared.QueryFailedError queryFailedError,\n\t 5: shared.LimitExceededError limitExceededError,\n\t 6: shared.ServiceBusyError serviceBusyError,\n\t 7: shared.ClientVersionNotSupportedError clientVersionNotSupportedError,\n 8: shared.AccessDeniedError accessDeniedError,\n\t)\n\n /**\n * DescribeWorkflowExecution returns information about the specified workflow execution.\n **/\n shared.DescribeWorkflowExecutionResponse DescribeWorkflowExecution(1: shared.DescribeWorkflowExecutionRequest describeRequest)\n throws (\n 1: shared.BadRequestError badRequestError,\n 3: shared.EntityNotExistsError entityNotExistError,\n 4: shared.LimitExceededError limitExceededError,\n 5: shared.ServiceBusyError serviceBusyError,\n 6: shared.ClientVersionNotSupportedError clientVersionNotSupportedError,\n 7: shared.AccessDeniedError accessDeniedError,\n )\n\n /**\n * DescribeTaskList returns information about the target tasklist, right now this API returns the\n * pollers which polled this tasklist in last few minutes.\n **/\n shared.DescribeTaskListResponse DescribeTaskList(1: shared.DescribeTaskListRequest request)\n throws (\n 1: shared.BadRequestError badRequestError,\n 3: shared.EntityNotExistsError entityNotExistError,\n 4: shared.LimitExceededError limitExceededError,\n 5: shared.ServiceBusyError serviceBusyError,\n 6: shared.ClientVersionNotSupportedError clientVersionNotSupportedError,\n 7: shared.AccessDeniedError accessDeniedError,\n )\n\n /**\n * GetClusterInfo returns information about cadence cluster\n **/\n shared.ClusterInfo GetClusterInfo()\n throws (\n 1: shared.InternalServiceError internalServiceError,\n 2: shared.ServiceBusyError serviceBusyError,\n 3: shared.AccessDeniedError accessDeniedError,\n )\n\n /**\n * GetTaskListsByDomain returns the list of all the task lists for a domainName.\n **/\n shared.GetTaskListsByDomainResponse GetTaskListsByDomain(1: shared.GetTaskListsByDomainRequest request)\n throws (\n 1: shared.BadRequestError badRequestError,\n 2: shared.EntityNotExistsError entityNotExistError,\n 3: shared.LimitExceededError limitExceededError,\n 4: shared.ServiceBusyError serviceBusyError,\n 5: shared.ClientVersionNotSupportedError clientVersionNotSupportedError,\n 6: shared.AccessDeniedError accessDeniedError,\n )\n\n /**\n * ReapplyEvents applies stale events to the current workflow and current run\n **/\n shared.ListTaskListPartitionsResponse ListTaskListPartitions(1: shared.ListTaskListPartitionsRequest request)\n throws (\n 1: shared.BadRequestError badRequestError,\n 3: shared.EntityNotExistsError entityNotExistError,\n 4: shared.LimitExceededError limitExceededError,\n 5: shared.ServiceBusyError serviceBusyError,\n 6: shared.AccessDeniedError accessDeniedError,\n )\n\n /**\n * RefreshWorkflowTasks refreshes all tasks of a workflow\n **/\n void RefreshWorkflowTasks(1: shared.RefreshWorkflowTasksRequest request)\n throws (\n 1: shared.BadRequestError badRequestError,\n 2: shared.DomainNotActiveError domainNotActiveError,\n 3: shared.ServiceBusyError serviceBusyError,\n 4: shared.EntityNotExistsError entityNotExistError,\n 5: shared.AccessDeniedError accessDeniedError,\n )\n}\n" // WorkflowService_CountWorkflowExecutions_Args represents the arguments for the WorkflowService.CountWorkflowExecutions function. // @@ -274,6 +274,8 @@ func init() { return true case *shared.ClientVersionNotSupportedError: return true + case *shared.AccessDeniedError: + return true default: return false } @@ -305,6 +307,11 @@ func init() { return nil, errors.New("WrapResponse received non-nil error type with nil value for WorkflowService_CountWorkflowExecutions_Result.ClientVersionNotSupportedError") } return &WorkflowService_CountWorkflowExecutions_Result{ClientVersionNotSupportedError: e}, nil + case *shared.AccessDeniedError: + if e == nil { + return nil, errors.New("WrapResponse received non-nil error type with nil value for WorkflowService_CountWorkflowExecutions_Result.AccessDeniedError") + } + return &WorkflowService_CountWorkflowExecutions_Result{AccessDeniedError: e}, nil } return nil, err @@ -326,6 +333,10 @@ func init() { err = result.ClientVersionNotSupportedError return } + if result.AccessDeniedError != nil { + err = result.AccessDeniedError + return + } if result.Success != nil { success = result.Success @@ -350,6 +361,7 @@ type WorkflowService_CountWorkflowExecutions_Result struct { EntityNotExistError *shared.EntityNotExistsError `json:"entityNotExistError,omitempty"` ServiceBusyError *shared.ServiceBusyError `json:"serviceBusyError,omitempty"` ClientVersionNotSupportedError *shared.ClientVersionNotSupportedError `json:"clientVersionNotSupportedError,omitempty"` + AccessDeniedError *shared.AccessDeniedError `json:"accessDeniedError,omitempty"` } // ToWire translates a WorkflowService_CountWorkflowExecutions_Result struct into a Thrift-level intermediate @@ -369,7 +381,7 @@ type WorkflowService_CountWorkflowExecutions_Result struct { // } func (v *WorkflowService_CountWorkflowExecutions_Result) ToWire() (wire.Value, error) { var ( - fields [5]wire.Field + fields [6]wire.Field i int = 0 w wire.Value err error @@ -415,6 +427,14 @@ func (v *WorkflowService_CountWorkflowExecutions_Result) ToWire() (wire.Value, e fields[i] = wire.Field{ID: 5, Value: w} i++ } + if v.AccessDeniedError != nil { + w, err = v.AccessDeniedError.ToWire() + if err != nil { + return w, err + } + fields[i] = wire.Field{ID: 6, Value: w} + i++ + } if i != 1 { return wire.Value{}, fmt.Errorf("WorkflowService_CountWorkflowExecutions_Result should have exactly one field: got %v fields", i) @@ -453,6 +473,12 @@ func _ClientVersionNotSupportedError_Read(w wire.Value) (*shared.ClientVersionNo return &v, err } +func _AccessDeniedError_Read(w wire.Value) (*shared.AccessDeniedError, error) { + var v shared.AccessDeniedError + err := v.FromWire(w) + return &v, err +} + // FromWire deserializes a WorkflowService_CountWorkflowExecutions_Result struct from its Thrift-level // representation. The Thrift-level representation may be obtained // from a ThriftRW protocol implementation. @@ -514,6 +540,14 @@ func (v *WorkflowService_CountWorkflowExecutions_Result) FromWire(w wire.Value) return err } + } + case 6: + if field.Value.Type() == wire.TStruct { + v.AccessDeniedError, err = _AccessDeniedError_Read(field.Value) + if err != nil { + return err + } + } } } @@ -534,6 +568,9 @@ func (v *WorkflowService_CountWorkflowExecutions_Result) FromWire(w wire.Value) if v.ClientVersionNotSupportedError != nil { count++ } + if v.AccessDeniedError != nil { + count++ + } if count != 1 { return fmt.Errorf("WorkflowService_CountWorkflowExecutions_Result should have exactly one field: got %v fields", count) } @@ -548,7 +585,7 @@ func (v *WorkflowService_CountWorkflowExecutions_Result) String() string { return "" } - var fields [5]string + var fields [6]string i := 0 if v.Success != nil { fields[i] = fmt.Sprintf("Success: %v", v.Success) @@ -570,6 +607,10 @@ func (v *WorkflowService_CountWorkflowExecutions_Result) String() string { fields[i] = fmt.Sprintf("ClientVersionNotSupportedError: %v", v.ClientVersionNotSupportedError) i++ } + if v.AccessDeniedError != nil { + fields[i] = fmt.Sprintf("AccessDeniedError: %v", v.AccessDeniedError) + i++ + } return fmt.Sprintf("WorkflowService_CountWorkflowExecutions_Result{%v}", strings.Join(fields[:i], ", ")) } @@ -599,6 +640,9 @@ func (v *WorkflowService_CountWorkflowExecutions_Result) Equals(rhs *WorkflowSer if !((v.ClientVersionNotSupportedError == nil && rhs.ClientVersionNotSupportedError == nil) || (v.ClientVersionNotSupportedError != nil && rhs.ClientVersionNotSupportedError != nil && v.ClientVersionNotSupportedError.Equals(rhs.ClientVersionNotSupportedError))) { return false } + if !((v.AccessDeniedError == nil && rhs.AccessDeniedError == nil) || (v.AccessDeniedError != nil && rhs.AccessDeniedError != nil && v.AccessDeniedError.Equals(rhs.AccessDeniedError))) { + return false + } return true } @@ -624,6 +668,9 @@ func (v *WorkflowService_CountWorkflowExecutions_Result) MarshalLogObject(enc za if v.ClientVersionNotSupportedError != nil { err = multierr.Append(err, enc.AddObject("clientVersionNotSupportedError", v.ClientVersionNotSupportedError)) } + if v.AccessDeniedError != nil { + err = multierr.Append(err, enc.AddObject("accessDeniedError", v.AccessDeniedError)) + } return err } @@ -702,6 +749,21 @@ func (v *WorkflowService_CountWorkflowExecutions_Result) IsSetClientVersionNotSu return v != nil && v.ClientVersionNotSupportedError != nil } +// GetAccessDeniedError returns the value of AccessDeniedError if it is set or its +// zero value if it is unset. +func (v *WorkflowService_CountWorkflowExecutions_Result) GetAccessDeniedError() (o *shared.AccessDeniedError) { + if v != nil && v.AccessDeniedError != nil { + return v.AccessDeniedError + } + + return +} + +// IsSetAccessDeniedError returns true if AccessDeniedError is not nil. +func (v *WorkflowService_CountWorkflowExecutions_Result) IsSetAccessDeniedError() bool { + return v != nil && v.AccessDeniedError != nil +} + // MethodName returns the name of the Thrift function as specified in // the IDL, for which this struct represent the result. // @@ -944,6 +1006,8 @@ func init() { return true case *shared.ClientVersionNotSupportedError: return true + case *shared.AccessDeniedError: + return true default: return false } @@ -980,6 +1044,11 @@ func init() { return nil, errors.New("WrapResponse received non-nil error type with nil value for WorkflowService_DeprecateDomain_Result.ClientVersionNotSupportedError") } return &WorkflowService_DeprecateDomain_Result{ClientVersionNotSupportedError: e}, nil + case *shared.AccessDeniedError: + if e == nil { + return nil, errors.New("WrapResponse received non-nil error type with nil value for WorkflowService_DeprecateDomain_Result.AccessDeniedError") + } + return &WorkflowService_DeprecateDomain_Result{AccessDeniedError: e}, nil } return nil, err @@ -1005,6 +1074,10 @@ func init() { err = result.ClientVersionNotSupportedError return } + if result.AccessDeniedError != nil { + err = result.AccessDeniedError + return + } return } @@ -1019,6 +1092,7 @@ type WorkflowService_DeprecateDomain_Result struct { ServiceBusyError *shared.ServiceBusyError `json:"serviceBusyError,omitempty"` DomainNotActiveError *shared.DomainNotActiveError `json:"domainNotActiveError,omitempty"` ClientVersionNotSupportedError *shared.ClientVersionNotSupportedError `json:"clientVersionNotSupportedError,omitempty"` + AccessDeniedError *shared.AccessDeniedError `json:"accessDeniedError,omitempty"` } // ToWire translates a WorkflowService_DeprecateDomain_Result struct into a Thrift-level intermediate @@ -1038,7 +1112,7 @@ type WorkflowService_DeprecateDomain_Result struct { // } func (v *WorkflowService_DeprecateDomain_Result) ToWire() (wire.Value, error) { var ( - fields [5]wire.Field + fields [6]wire.Field i int = 0 w wire.Value err error @@ -1084,6 +1158,14 @@ func (v *WorkflowService_DeprecateDomain_Result) ToWire() (wire.Value, error) { fields[i] = wire.Field{ID: 6, Value: w} i++ } + if v.AccessDeniedError != nil { + w, err = v.AccessDeniedError.ToWire() + if err != nil { + return w, err + } + fields[i] = wire.Field{ID: 7, Value: w} + i++ + } if i > 1 { return wire.Value{}, fmt.Errorf("WorkflowService_DeprecateDomain_Result should have at most one field: got %v fields", i) @@ -1159,6 +1241,14 @@ func (v *WorkflowService_DeprecateDomain_Result) FromWire(w wire.Value) error { return err } + } + case 7: + if field.Value.Type() == wire.TStruct { + v.AccessDeniedError, err = _AccessDeniedError_Read(field.Value) + if err != nil { + return err + } + } } } @@ -1179,6 +1269,9 @@ func (v *WorkflowService_DeprecateDomain_Result) FromWire(w wire.Value) error { if v.ClientVersionNotSupportedError != nil { count++ } + if v.AccessDeniedError != nil { + count++ + } if count > 1 { return fmt.Errorf("WorkflowService_DeprecateDomain_Result should have at most one field: got %v fields", count) } @@ -1193,7 +1286,7 @@ func (v *WorkflowService_DeprecateDomain_Result) String() string { return "" } - var fields [5]string + var fields [6]string i := 0 if v.BadRequestError != nil { fields[i] = fmt.Sprintf("BadRequestError: %v", v.BadRequestError) @@ -1215,6 +1308,10 @@ func (v *WorkflowService_DeprecateDomain_Result) String() string { fields[i] = fmt.Sprintf("ClientVersionNotSupportedError: %v", v.ClientVersionNotSupportedError) i++ } + if v.AccessDeniedError != nil { + fields[i] = fmt.Sprintf("AccessDeniedError: %v", v.AccessDeniedError) + i++ + } return fmt.Sprintf("WorkflowService_DeprecateDomain_Result{%v}", strings.Join(fields[:i], ", ")) } @@ -1244,6 +1341,9 @@ func (v *WorkflowService_DeprecateDomain_Result) Equals(rhs *WorkflowService_Dep if !((v.ClientVersionNotSupportedError == nil && rhs.ClientVersionNotSupportedError == nil) || (v.ClientVersionNotSupportedError != nil && rhs.ClientVersionNotSupportedError != nil && v.ClientVersionNotSupportedError.Equals(rhs.ClientVersionNotSupportedError))) { return false } + if !((v.AccessDeniedError == nil && rhs.AccessDeniedError == nil) || (v.AccessDeniedError != nil && rhs.AccessDeniedError != nil && v.AccessDeniedError.Equals(rhs.AccessDeniedError))) { + return false + } return true } @@ -1269,6 +1369,9 @@ func (v *WorkflowService_DeprecateDomain_Result) MarshalLogObject(enc zapcore.Ob if v.ClientVersionNotSupportedError != nil { err = multierr.Append(err, enc.AddObject("clientVersionNotSupportedError", v.ClientVersionNotSupportedError)) } + if v.AccessDeniedError != nil { + err = multierr.Append(err, enc.AddObject("accessDeniedError", v.AccessDeniedError)) + } return err } @@ -1347,6 +1450,21 @@ func (v *WorkflowService_DeprecateDomain_Result) IsSetClientVersionNotSupportedE return v != nil && v.ClientVersionNotSupportedError != nil } +// GetAccessDeniedError returns the value of AccessDeniedError if it is set or its +// zero value if it is unset. +func (v *WorkflowService_DeprecateDomain_Result) GetAccessDeniedError() (o *shared.AccessDeniedError) { + if v != nil && v.AccessDeniedError != nil { + return v.AccessDeniedError + } + + return +} + +// IsSetAccessDeniedError returns true if AccessDeniedError is not nil. +func (v *WorkflowService_DeprecateDomain_Result) IsSetAccessDeniedError() bool { + return v != nil && v.AccessDeniedError != nil +} + // MethodName returns the name of the Thrift function as specified in // the IDL, for which this struct represent the result. // @@ -1586,6 +1704,8 @@ func init() { return true case *shared.ClientVersionNotSupportedError: return true + case *shared.AccessDeniedError: + return true default: return false } @@ -1617,6 +1737,11 @@ func init() { return nil, errors.New("WrapResponse received non-nil error type with nil value for WorkflowService_DescribeDomain_Result.ClientVersionNotSupportedError") } return &WorkflowService_DescribeDomain_Result{ClientVersionNotSupportedError: e}, nil + case *shared.AccessDeniedError: + if e == nil { + return nil, errors.New("WrapResponse received non-nil error type with nil value for WorkflowService_DescribeDomain_Result.AccessDeniedError") + } + return &WorkflowService_DescribeDomain_Result{AccessDeniedError: e}, nil } return nil, err @@ -1638,6 +1763,10 @@ func init() { err = result.ClientVersionNotSupportedError return } + if result.AccessDeniedError != nil { + err = result.AccessDeniedError + return + } if result.Success != nil { success = result.Success @@ -1662,6 +1791,7 @@ type WorkflowService_DescribeDomain_Result struct { EntityNotExistError *shared.EntityNotExistsError `json:"entityNotExistError,omitempty"` ServiceBusyError *shared.ServiceBusyError `json:"serviceBusyError,omitempty"` ClientVersionNotSupportedError *shared.ClientVersionNotSupportedError `json:"clientVersionNotSupportedError,omitempty"` + AccessDeniedError *shared.AccessDeniedError `json:"accessDeniedError,omitempty"` } // ToWire translates a WorkflowService_DescribeDomain_Result struct into a Thrift-level intermediate @@ -1681,7 +1811,7 @@ type WorkflowService_DescribeDomain_Result struct { // } func (v *WorkflowService_DescribeDomain_Result) ToWire() (wire.Value, error) { var ( - fields [5]wire.Field + fields [6]wire.Field i int = 0 w wire.Value err error @@ -1727,6 +1857,14 @@ func (v *WorkflowService_DescribeDomain_Result) ToWire() (wire.Value, error) { fields[i] = wire.Field{ID: 5, Value: w} i++ } + if v.AccessDeniedError != nil { + w, err = v.AccessDeniedError.ToWire() + if err != nil { + return w, err + } + fields[i] = wire.Field{ID: 6, Value: w} + i++ + } if i != 1 { return wire.Value{}, fmt.Errorf("WorkflowService_DescribeDomain_Result should have exactly one field: got %v fields", i) @@ -1802,6 +1940,14 @@ func (v *WorkflowService_DescribeDomain_Result) FromWire(w wire.Value) error { return err } + } + case 6: + if field.Value.Type() == wire.TStruct { + v.AccessDeniedError, err = _AccessDeniedError_Read(field.Value) + if err != nil { + return err + } + } } } @@ -1822,6 +1968,9 @@ func (v *WorkflowService_DescribeDomain_Result) FromWire(w wire.Value) error { if v.ClientVersionNotSupportedError != nil { count++ } + if v.AccessDeniedError != nil { + count++ + } if count != 1 { return fmt.Errorf("WorkflowService_DescribeDomain_Result should have exactly one field: got %v fields", count) } @@ -1836,7 +1985,7 @@ func (v *WorkflowService_DescribeDomain_Result) String() string { return "" } - var fields [5]string + var fields [6]string i := 0 if v.Success != nil { fields[i] = fmt.Sprintf("Success: %v", v.Success) @@ -1858,6 +2007,10 @@ func (v *WorkflowService_DescribeDomain_Result) String() string { fields[i] = fmt.Sprintf("ClientVersionNotSupportedError: %v", v.ClientVersionNotSupportedError) i++ } + if v.AccessDeniedError != nil { + fields[i] = fmt.Sprintf("AccessDeniedError: %v", v.AccessDeniedError) + i++ + } return fmt.Sprintf("WorkflowService_DescribeDomain_Result{%v}", strings.Join(fields[:i], ", ")) } @@ -1887,6 +2040,9 @@ func (v *WorkflowService_DescribeDomain_Result) Equals(rhs *WorkflowService_Desc if !((v.ClientVersionNotSupportedError == nil && rhs.ClientVersionNotSupportedError == nil) || (v.ClientVersionNotSupportedError != nil && rhs.ClientVersionNotSupportedError != nil && v.ClientVersionNotSupportedError.Equals(rhs.ClientVersionNotSupportedError))) { return false } + if !((v.AccessDeniedError == nil && rhs.AccessDeniedError == nil) || (v.AccessDeniedError != nil && rhs.AccessDeniedError != nil && v.AccessDeniedError.Equals(rhs.AccessDeniedError))) { + return false + } return true } @@ -1912,6 +2068,9 @@ func (v *WorkflowService_DescribeDomain_Result) MarshalLogObject(enc zapcore.Obj if v.ClientVersionNotSupportedError != nil { err = multierr.Append(err, enc.AddObject("clientVersionNotSupportedError", v.ClientVersionNotSupportedError)) } + if v.AccessDeniedError != nil { + err = multierr.Append(err, enc.AddObject("accessDeniedError", v.AccessDeniedError)) + } return err } @@ -1990,6 +2149,21 @@ func (v *WorkflowService_DescribeDomain_Result) IsSetClientVersionNotSupportedEr return v != nil && v.ClientVersionNotSupportedError != nil } +// GetAccessDeniedError returns the value of AccessDeniedError if it is set or its +// zero value if it is unset. +func (v *WorkflowService_DescribeDomain_Result) GetAccessDeniedError() (o *shared.AccessDeniedError) { + if v != nil && v.AccessDeniedError != nil { + return v.AccessDeniedError + } + + return +} + +// IsSetAccessDeniedError returns true if AccessDeniedError is not nil. +func (v *WorkflowService_DescribeDomain_Result) IsSetAccessDeniedError() bool { + return v != nil && v.AccessDeniedError != nil +} + // MethodName returns the name of the Thrift function as specified in // the IDL, for which this struct represent the result. // @@ -2231,6 +2405,8 @@ func init() { return true case *shared.ClientVersionNotSupportedError: return true + case *shared.AccessDeniedError: + return true default: return false } @@ -2267,6 +2443,11 @@ func init() { return nil, errors.New("WrapResponse received non-nil error type with nil value for WorkflowService_DescribeTaskList_Result.ClientVersionNotSupportedError") } return &WorkflowService_DescribeTaskList_Result{ClientVersionNotSupportedError: e}, nil + case *shared.AccessDeniedError: + if e == nil { + return nil, errors.New("WrapResponse received non-nil error type with nil value for WorkflowService_DescribeTaskList_Result.AccessDeniedError") + } + return &WorkflowService_DescribeTaskList_Result{AccessDeniedError: e}, nil } return nil, err @@ -2292,6 +2473,10 @@ func init() { err = result.ClientVersionNotSupportedError return } + if result.AccessDeniedError != nil { + err = result.AccessDeniedError + return + } if result.Success != nil { success = result.Success @@ -2317,6 +2502,7 @@ type WorkflowService_DescribeTaskList_Result struct { LimitExceededError *shared.LimitExceededError `json:"limitExceededError,omitempty"` ServiceBusyError *shared.ServiceBusyError `json:"serviceBusyError,omitempty"` ClientVersionNotSupportedError *shared.ClientVersionNotSupportedError `json:"clientVersionNotSupportedError,omitempty"` + AccessDeniedError *shared.AccessDeniedError `json:"accessDeniedError,omitempty"` } // ToWire translates a WorkflowService_DescribeTaskList_Result struct into a Thrift-level intermediate @@ -2336,7 +2522,7 @@ type WorkflowService_DescribeTaskList_Result struct { // } func (v *WorkflowService_DescribeTaskList_Result) ToWire() (wire.Value, error) { var ( - fields [6]wire.Field + fields [7]wire.Field i int = 0 w wire.Value err error @@ -2390,6 +2576,14 @@ func (v *WorkflowService_DescribeTaskList_Result) ToWire() (wire.Value, error) { fields[i] = wire.Field{ID: 6, Value: w} i++ } + if v.AccessDeniedError != nil { + w, err = v.AccessDeniedError.ToWire() + if err != nil { + return w, err + } + fields[i] = wire.Field{ID: 7, Value: w} + i++ + } if i != 1 { return wire.Value{}, fmt.Errorf("WorkflowService_DescribeTaskList_Result should have exactly one field: got %v fields", i) @@ -2479,6 +2673,14 @@ func (v *WorkflowService_DescribeTaskList_Result) FromWire(w wire.Value) error { return err } + } + case 7: + if field.Value.Type() == wire.TStruct { + v.AccessDeniedError, err = _AccessDeniedError_Read(field.Value) + if err != nil { + return err + } + } } } @@ -2502,6 +2704,9 @@ func (v *WorkflowService_DescribeTaskList_Result) FromWire(w wire.Value) error { if v.ClientVersionNotSupportedError != nil { count++ } + if v.AccessDeniedError != nil { + count++ + } if count != 1 { return fmt.Errorf("WorkflowService_DescribeTaskList_Result should have exactly one field: got %v fields", count) } @@ -2516,7 +2721,7 @@ func (v *WorkflowService_DescribeTaskList_Result) String() string { return "" } - var fields [6]string + var fields [7]string i := 0 if v.Success != nil { fields[i] = fmt.Sprintf("Success: %v", v.Success) @@ -2542,6 +2747,10 @@ func (v *WorkflowService_DescribeTaskList_Result) String() string { fields[i] = fmt.Sprintf("ClientVersionNotSupportedError: %v", v.ClientVersionNotSupportedError) i++ } + if v.AccessDeniedError != nil { + fields[i] = fmt.Sprintf("AccessDeniedError: %v", v.AccessDeniedError) + i++ + } return fmt.Sprintf("WorkflowService_DescribeTaskList_Result{%v}", strings.Join(fields[:i], ", ")) } @@ -2574,6 +2783,9 @@ func (v *WorkflowService_DescribeTaskList_Result) Equals(rhs *WorkflowService_De if !((v.ClientVersionNotSupportedError == nil && rhs.ClientVersionNotSupportedError == nil) || (v.ClientVersionNotSupportedError != nil && rhs.ClientVersionNotSupportedError != nil && v.ClientVersionNotSupportedError.Equals(rhs.ClientVersionNotSupportedError))) { return false } + if !((v.AccessDeniedError == nil && rhs.AccessDeniedError == nil) || (v.AccessDeniedError != nil && rhs.AccessDeniedError != nil && v.AccessDeniedError.Equals(rhs.AccessDeniedError))) { + return false + } return true } @@ -2602,6 +2814,9 @@ func (v *WorkflowService_DescribeTaskList_Result) MarshalLogObject(enc zapcore.O if v.ClientVersionNotSupportedError != nil { err = multierr.Append(err, enc.AddObject("clientVersionNotSupportedError", v.ClientVersionNotSupportedError)) } + if v.AccessDeniedError != nil { + err = multierr.Append(err, enc.AddObject("accessDeniedError", v.AccessDeniedError)) + } return err } @@ -2695,6 +2910,21 @@ func (v *WorkflowService_DescribeTaskList_Result) IsSetClientVersionNotSupported return v != nil && v.ClientVersionNotSupportedError != nil } +// GetAccessDeniedError returns the value of AccessDeniedError if it is set or its +// zero value if it is unset. +func (v *WorkflowService_DescribeTaskList_Result) GetAccessDeniedError() (o *shared.AccessDeniedError) { + if v != nil && v.AccessDeniedError != nil { + return v.AccessDeniedError + } + + return +} + +// IsSetAccessDeniedError returns true if AccessDeniedError is not nil. +func (v *WorkflowService_DescribeTaskList_Result) IsSetAccessDeniedError() bool { + return v != nil && v.AccessDeniedError != nil +} + // MethodName returns the name of the Thrift function as specified in // the IDL, for which this struct represent the result. // @@ -2936,6 +3166,8 @@ func init() { return true case *shared.ClientVersionNotSupportedError: return true + case *shared.AccessDeniedError: + return true default: return false } @@ -2972,6 +3204,11 @@ func init() { return nil, errors.New("WrapResponse received non-nil error type with nil value for WorkflowService_DescribeWorkflowExecution_Result.ClientVersionNotSupportedError") } return &WorkflowService_DescribeWorkflowExecution_Result{ClientVersionNotSupportedError: e}, nil + case *shared.AccessDeniedError: + if e == nil { + return nil, errors.New("WrapResponse received non-nil error type with nil value for WorkflowService_DescribeWorkflowExecution_Result.AccessDeniedError") + } + return &WorkflowService_DescribeWorkflowExecution_Result{AccessDeniedError: e}, nil } return nil, err @@ -2997,6 +3234,10 @@ func init() { err = result.ClientVersionNotSupportedError return } + if result.AccessDeniedError != nil { + err = result.AccessDeniedError + return + } if result.Success != nil { success = result.Success @@ -3022,6 +3263,7 @@ type WorkflowService_DescribeWorkflowExecution_Result struct { LimitExceededError *shared.LimitExceededError `json:"limitExceededError,omitempty"` ServiceBusyError *shared.ServiceBusyError `json:"serviceBusyError,omitempty"` ClientVersionNotSupportedError *shared.ClientVersionNotSupportedError `json:"clientVersionNotSupportedError,omitempty"` + AccessDeniedError *shared.AccessDeniedError `json:"accessDeniedError,omitempty"` } // ToWire translates a WorkflowService_DescribeWorkflowExecution_Result struct into a Thrift-level intermediate @@ -3041,7 +3283,7 @@ type WorkflowService_DescribeWorkflowExecution_Result struct { // } func (v *WorkflowService_DescribeWorkflowExecution_Result) ToWire() (wire.Value, error) { var ( - fields [6]wire.Field + fields [7]wire.Field i int = 0 w wire.Value err error @@ -3095,6 +3337,14 @@ func (v *WorkflowService_DescribeWorkflowExecution_Result) ToWire() (wire.Value, fields[i] = wire.Field{ID: 6, Value: w} i++ } + if v.AccessDeniedError != nil { + w, err = v.AccessDeniedError.ToWire() + if err != nil { + return w, err + } + fields[i] = wire.Field{ID: 7, Value: w} + i++ + } if i != 1 { return wire.Value{}, fmt.Errorf("WorkflowService_DescribeWorkflowExecution_Result should have exactly one field: got %v fields", i) @@ -3178,6 +3428,14 @@ func (v *WorkflowService_DescribeWorkflowExecution_Result) FromWire(w wire.Value return err } + } + case 7: + if field.Value.Type() == wire.TStruct { + v.AccessDeniedError, err = _AccessDeniedError_Read(field.Value) + if err != nil { + return err + } + } } } @@ -3201,6 +3459,9 @@ func (v *WorkflowService_DescribeWorkflowExecution_Result) FromWire(w wire.Value if v.ClientVersionNotSupportedError != nil { count++ } + if v.AccessDeniedError != nil { + count++ + } if count != 1 { return fmt.Errorf("WorkflowService_DescribeWorkflowExecution_Result should have exactly one field: got %v fields", count) } @@ -3215,7 +3476,7 @@ func (v *WorkflowService_DescribeWorkflowExecution_Result) String() string { return "" } - var fields [6]string + var fields [7]string i := 0 if v.Success != nil { fields[i] = fmt.Sprintf("Success: %v", v.Success) @@ -3241,6 +3502,10 @@ func (v *WorkflowService_DescribeWorkflowExecution_Result) String() string { fields[i] = fmt.Sprintf("ClientVersionNotSupportedError: %v", v.ClientVersionNotSupportedError) i++ } + if v.AccessDeniedError != nil { + fields[i] = fmt.Sprintf("AccessDeniedError: %v", v.AccessDeniedError) + i++ + } return fmt.Sprintf("WorkflowService_DescribeWorkflowExecution_Result{%v}", strings.Join(fields[:i], ", ")) } @@ -3273,6 +3538,9 @@ func (v *WorkflowService_DescribeWorkflowExecution_Result) Equals(rhs *WorkflowS if !((v.ClientVersionNotSupportedError == nil && rhs.ClientVersionNotSupportedError == nil) || (v.ClientVersionNotSupportedError != nil && rhs.ClientVersionNotSupportedError != nil && v.ClientVersionNotSupportedError.Equals(rhs.ClientVersionNotSupportedError))) { return false } + if !((v.AccessDeniedError == nil && rhs.AccessDeniedError == nil) || (v.AccessDeniedError != nil && rhs.AccessDeniedError != nil && v.AccessDeniedError.Equals(rhs.AccessDeniedError))) { + return false + } return true } @@ -3301,6 +3569,9 @@ func (v *WorkflowService_DescribeWorkflowExecution_Result) MarshalLogObject(enc if v.ClientVersionNotSupportedError != nil { err = multierr.Append(err, enc.AddObject("clientVersionNotSupportedError", v.ClientVersionNotSupportedError)) } + if v.AccessDeniedError != nil { + err = multierr.Append(err, enc.AddObject("accessDeniedError", v.AccessDeniedError)) + } return err } @@ -3394,6 +3665,21 @@ func (v *WorkflowService_DescribeWorkflowExecution_Result) IsSetClientVersionNot return v != nil && v.ClientVersionNotSupportedError != nil } +// GetAccessDeniedError returns the value of AccessDeniedError if it is set or its +// zero value if it is unset. +func (v *WorkflowService_DescribeWorkflowExecution_Result) GetAccessDeniedError() (o *shared.AccessDeniedError) { + if v != nil && v.AccessDeniedError != nil { + return v.AccessDeniedError + } + + return +} + +// IsSetAccessDeniedError returns true if AccessDeniedError is not nil. +func (v *WorkflowService_DescribeWorkflowExecution_Result) IsSetAccessDeniedError() bool { + return v != nil && v.AccessDeniedError != nil +} + // MethodName returns the name of the Thrift function as specified in // the IDL, for which this struct represent the result. // @@ -3409,13 +3695,14 @@ func (v *WorkflowService_DescribeWorkflowExecution_Result) EnvelopeType() wire.E return wire.Reply } -// WorkflowService_GetClusterInfo_Args represents the arguments for the WorkflowService.GetClusterInfo function. +// WorkflowService_DiagnoseWorkflowExecution_Args represents the arguments for the WorkflowService.DiagnoseWorkflowExecution function. // -// The arguments for GetClusterInfo are sent and received over the wire as this struct. -type WorkflowService_GetClusterInfo_Args struct { +// The arguments for DiagnoseWorkflowExecution are sent and received over the wire as this struct. +type WorkflowService_DiagnoseWorkflowExecution_Args struct { + DiagnoseRequest *shared.DiagnoseWorkflowExecutionRequest `json:"diagnoseRequest,omitempty"` } -// ToWire translates a WorkflowService_GetClusterInfo_Args struct into a Thrift-level intermediate +// ToWire translates a WorkflowService_DiagnoseWorkflowExecution_Args struct into a Thrift-level intermediate // representation. This intermediate representation may be serialized // into bytes using a ThriftRW protocol implementation. // @@ -3430,20 +3717,37 @@ type WorkflowService_GetClusterInfo_Args struct { // if err := binaryProtocol.Encode(x, writer); err != nil { // return err // } -func (v *WorkflowService_GetClusterInfo_Args) ToWire() (wire.Value, error) { +func (v *WorkflowService_DiagnoseWorkflowExecution_Args) ToWire() (wire.Value, error) { var ( - fields [0]wire.Field + fields [1]wire.Field i int = 0 + w wire.Value + err error ) + if v.DiagnoseRequest != nil { + w, err = v.DiagnoseRequest.ToWire() + if err != nil { + return w, err + } + fields[i] = wire.Field{ID: 1, Value: w} + i++ + } + return wire.NewValueStruct(wire.Struct{Fields: fields[:i]}), nil } -// FromWire deserializes a WorkflowService_GetClusterInfo_Args struct from its Thrift-level +func _DiagnoseWorkflowExecutionRequest_Read(w wire.Value) (*shared.DiagnoseWorkflowExecutionRequest, error) { + var v shared.DiagnoseWorkflowExecutionRequest + err := v.FromWire(w) + return &v, err +} + +// FromWire deserializes a WorkflowService_DiagnoseWorkflowExecution_Args struct from its Thrift-level // representation. The Thrift-level representation may be obtained // from a ThriftRW protocol implementation. // -// An error is returned if we were unable to build a WorkflowService_GetClusterInfo_Args struct +// An error is returned if we were unable to build a WorkflowService_DiagnoseWorkflowExecution_Args struct // from the provided intermediate representation. // // x, err := binaryProtocol.Decode(reader, wire.TStruct) @@ -3451,84 +3755,765 @@ func (v *WorkflowService_GetClusterInfo_Args) ToWire() (wire.Value, error) { // return nil, err // } // -// var v WorkflowService_GetClusterInfo_Args +// var v WorkflowService_DiagnoseWorkflowExecution_Args // if err := v.FromWire(x); err != nil { // return nil, err // } // return &v, nil -func (v *WorkflowService_GetClusterInfo_Args) FromWire(w wire.Value) error { +func (v *WorkflowService_DiagnoseWorkflowExecution_Args) FromWire(w wire.Value) error { + var err error for _, field := range w.GetStruct().Fields { switch field.ID { + case 1: + if field.Value.Type() == wire.TStruct { + v.DiagnoseRequest, err = _DiagnoseWorkflowExecutionRequest_Read(field.Value) + if err != nil { + return err + } + + } } } return nil } -// String returns a readable string representation of a WorkflowService_GetClusterInfo_Args +// String returns a readable string representation of a WorkflowService_DiagnoseWorkflowExecution_Args // struct. -func (v *WorkflowService_GetClusterInfo_Args) String() string { +func (v *WorkflowService_DiagnoseWorkflowExecution_Args) String() string { if v == nil { return "" } - var fields [0]string + var fields [1]string i := 0 + if v.DiagnoseRequest != nil { + fields[i] = fmt.Sprintf("DiagnoseRequest: %v", v.DiagnoseRequest) + i++ + } - return fmt.Sprintf("WorkflowService_GetClusterInfo_Args{%v}", strings.Join(fields[:i], ", ")) + return fmt.Sprintf("WorkflowService_DiagnoseWorkflowExecution_Args{%v}", strings.Join(fields[:i], ", ")) } -// Equals returns true if all the fields of this WorkflowService_GetClusterInfo_Args match the -// provided WorkflowService_GetClusterInfo_Args. +// Equals returns true if all the fields of this WorkflowService_DiagnoseWorkflowExecution_Args match the +// provided WorkflowService_DiagnoseWorkflowExecution_Args. // // This function performs a deep comparison. -func (v *WorkflowService_GetClusterInfo_Args) Equals(rhs *WorkflowService_GetClusterInfo_Args) bool { +func (v *WorkflowService_DiagnoseWorkflowExecution_Args) Equals(rhs *WorkflowService_DiagnoseWorkflowExecution_Args) bool { if v == nil { return rhs == nil } else if rhs == nil { return false } + if !((v.DiagnoseRequest == nil && rhs.DiagnoseRequest == nil) || (v.DiagnoseRequest != nil && rhs.DiagnoseRequest != nil && v.DiagnoseRequest.Equals(rhs.DiagnoseRequest))) { + return false + } return true } // MarshalLogObject implements zapcore.ObjectMarshaler, enabling -// fast logging of WorkflowService_GetClusterInfo_Args. -func (v *WorkflowService_GetClusterInfo_Args) MarshalLogObject(enc zapcore.ObjectEncoder) (err error) { +// fast logging of WorkflowService_DiagnoseWorkflowExecution_Args. +func (v *WorkflowService_DiagnoseWorkflowExecution_Args) MarshalLogObject(enc zapcore.ObjectEncoder) (err error) { if v == nil { return nil } + if v.DiagnoseRequest != nil { + err = multierr.Append(err, enc.AddObject("diagnoseRequest", v.DiagnoseRequest)) + } return err } +// GetDiagnoseRequest returns the value of DiagnoseRequest if it is set or its +// zero value if it is unset. +func (v *WorkflowService_DiagnoseWorkflowExecution_Args) GetDiagnoseRequest() (o *shared.DiagnoseWorkflowExecutionRequest) { + if v != nil && v.DiagnoseRequest != nil { + return v.DiagnoseRequest + } + + return +} + +// IsSetDiagnoseRequest returns true if DiagnoseRequest is not nil. +func (v *WorkflowService_DiagnoseWorkflowExecution_Args) IsSetDiagnoseRequest() bool { + return v != nil && v.DiagnoseRequest != nil +} + // MethodName returns the name of the Thrift function as specified in // the IDL, for which this struct represent the arguments. // -// This will always be "GetClusterInfo" for this struct. -func (v *WorkflowService_GetClusterInfo_Args) MethodName() string { - return "GetClusterInfo" +// This will always be "DiagnoseWorkflowExecution" for this struct. +func (v *WorkflowService_DiagnoseWorkflowExecution_Args) MethodName() string { + return "DiagnoseWorkflowExecution" } // EnvelopeType returns the kind of value inside this struct. // // This will always be Call for this struct. -func (v *WorkflowService_GetClusterInfo_Args) EnvelopeType() wire.EnvelopeType { +func (v *WorkflowService_DiagnoseWorkflowExecution_Args) EnvelopeType() wire.EnvelopeType { return wire.Call } -// WorkflowService_GetClusterInfo_Helper provides functions that aid in handling the -// parameters and return values of the WorkflowService.GetClusterInfo +// WorkflowService_DiagnoseWorkflowExecution_Helper provides functions that aid in handling the +// parameters and return values of the WorkflowService.DiagnoseWorkflowExecution // function. -var WorkflowService_GetClusterInfo_Helper = struct { - // Args accepts the parameters of GetClusterInfo in-order and returns +var WorkflowService_DiagnoseWorkflowExecution_Helper = struct { + // Args accepts the parameters of DiagnoseWorkflowExecution in-order and returns // the arguments struct for the function. - Args func() *WorkflowService_GetClusterInfo_Args + Args func( + diagnoseRequest *shared.DiagnoseWorkflowExecutionRequest, + ) *WorkflowService_DiagnoseWorkflowExecution_Args // IsException returns true if the given error can be thrown - // by GetClusterInfo. + // by DiagnoseWorkflowExecution. // - // An error can be thrown by GetClusterInfo only if the + // An error can be thrown by DiagnoseWorkflowExecution only if the + // corresponding exception type was mentioned in the 'throws' + // section for it in the Thrift file. + IsException func(error) bool + + // WrapResponse returns the result struct for DiagnoseWorkflowExecution + // given its return value and error. + // + // This allows mapping values and errors returned by + // DiagnoseWorkflowExecution into a serializable result struct. + // WrapResponse returns a non-nil error if the provided + // error cannot be thrown by DiagnoseWorkflowExecution + // + // value, err := DiagnoseWorkflowExecution(args) + // result, err := WorkflowService_DiagnoseWorkflowExecution_Helper.WrapResponse(value, err) + // if err != nil { + // return fmt.Errorf("unexpected error from DiagnoseWorkflowExecution: %v", err) + // } + // serialize(result) + WrapResponse func(*shared.DiagnoseWorkflowExecutionResponse, error) (*WorkflowService_DiagnoseWorkflowExecution_Result, error) + + // UnwrapResponse takes the result struct for DiagnoseWorkflowExecution + // and returns the value or error returned by it. + // + // The error is non-nil only if DiagnoseWorkflowExecution threw an + // exception. + // + // result := deserialize(bytes) + // value, err := WorkflowService_DiagnoseWorkflowExecution_Helper.UnwrapResponse(result) + UnwrapResponse func(*WorkflowService_DiagnoseWorkflowExecution_Result) (*shared.DiagnoseWorkflowExecutionResponse, error) +}{} + +func init() { + WorkflowService_DiagnoseWorkflowExecution_Helper.Args = func( + diagnoseRequest *shared.DiagnoseWorkflowExecutionRequest, + ) *WorkflowService_DiagnoseWorkflowExecution_Args { + return &WorkflowService_DiagnoseWorkflowExecution_Args{ + DiagnoseRequest: diagnoseRequest, + } + } + + WorkflowService_DiagnoseWorkflowExecution_Helper.IsException = func(err error) bool { + switch err.(type) { + case *shared.DomainNotActiveError: + return true + case *shared.ServiceBusyError: + return true + case *shared.EntityNotExistsError: + return true + case *shared.ClientVersionNotSupportedError: + return true + case *shared.AccessDeniedError: + return true + default: + return false + } + } + + WorkflowService_DiagnoseWorkflowExecution_Helper.WrapResponse = func(success *shared.DiagnoseWorkflowExecutionResponse, err error) (*WorkflowService_DiagnoseWorkflowExecution_Result, error) { + if err == nil { + return &WorkflowService_DiagnoseWorkflowExecution_Result{Success: success}, nil + } + + switch e := err.(type) { + case *shared.DomainNotActiveError: + if e == nil { + return nil, errors.New("WrapResponse received non-nil error type with nil value for WorkflowService_DiagnoseWorkflowExecution_Result.DomainNotActiveError") + } + return &WorkflowService_DiagnoseWorkflowExecution_Result{DomainNotActiveError: e}, nil + case *shared.ServiceBusyError: + if e == nil { + return nil, errors.New("WrapResponse received non-nil error type with nil value for WorkflowService_DiagnoseWorkflowExecution_Result.ServiceBusyError") + } + return &WorkflowService_DiagnoseWorkflowExecution_Result{ServiceBusyError: e}, nil + case *shared.EntityNotExistsError: + if e == nil { + return nil, errors.New("WrapResponse received non-nil error type with nil value for WorkflowService_DiagnoseWorkflowExecution_Result.EntityNotExistError") + } + return &WorkflowService_DiagnoseWorkflowExecution_Result{EntityNotExistError: e}, nil + case *shared.ClientVersionNotSupportedError: + if e == nil { + return nil, errors.New("WrapResponse received non-nil error type with nil value for WorkflowService_DiagnoseWorkflowExecution_Result.ClientVersionNotSupportedError") + } + return &WorkflowService_DiagnoseWorkflowExecution_Result{ClientVersionNotSupportedError: e}, nil + case *shared.AccessDeniedError: + if e == nil { + return nil, errors.New("WrapResponse received non-nil error type with nil value for WorkflowService_DiagnoseWorkflowExecution_Result.AccessDeniedError") + } + return &WorkflowService_DiagnoseWorkflowExecution_Result{AccessDeniedError: e}, nil + } + + return nil, err + } + WorkflowService_DiagnoseWorkflowExecution_Helper.UnwrapResponse = func(result *WorkflowService_DiagnoseWorkflowExecution_Result) (success *shared.DiagnoseWorkflowExecutionResponse, err error) { + if result.DomainNotActiveError != nil { + err = result.DomainNotActiveError + return + } + if result.ServiceBusyError != nil { + err = result.ServiceBusyError + return + } + if result.EntityNotExistError != nil { + err = result.EntityNotExistError + return + } + if result.ClientVersionNotSupportedError != nil { + err = result.ClientVersionNotSupportedError + return + } + if result.AccessDeniedError != nil { + err = result.AccessDeniedError + return + } + + if result.Success != nil { + success = result.Success + return + } + + err = errors.New("expected a non-void result") + return + } + +} + +// WorkflowService_DiagnoseWorkflowExecution_Result represents the result of a WorkflowService.DiagnoseWorkflowExecution function call. +// +// The result of a DiagnoseWorkflowExecution execution is sent and received over the wire as this struct. +// +// Success is set only if the function did not throw an exception. +type WorkflowService_DiagnoseWorkflowExecution_Result struct { + // Value returned by DiagnoseWorkflowExecution after a successful execution. + Success *shared.DiagnoseWorkflowExecutionResponse `json:"success,omitempty"` + DomainNotActiveError *shared.DomainNotActiveError `json:"domainNotActiveError,omitempty"` + ServiceBusyError *shared.ServiceBusyError `json:"serviceBusyError,omitempty"` + EntityNotExistError *shared.EntityNotExistsError `json:"entityNotExistError,omitempty"` + ClientVersionNotSupportedError *shared.ClientVersionNotSupportedError `json:"clientVersionNotSupportedError,omitempty"` + AccessDeniedError *shared.AccessDeniedError `json:"accessDeniedError,omitempty"` +} + +// ToWire translates a WorkflowService_DiagnoseWorkflowExecution_Result struct into a Thrift-level intermediate +// representation. This intermediate representation may be serialized +// into bytes using a ThriftRW protocol implementation. +// +// An error is returned if the struct or any of its fields failed to +// validate. +// +// x, err := v.ToWire() +// if err != nil { +// return err +// } +// +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } +func (v *WorkflowService_DiagnoseWorkflowExecution_Result) ToWire() (wire.Value, error) { + var ( + fields [6]wire.Field + i int = 0 + w wire.Value + err error + ) + + if v.Success != nil { + w, err = v.Success.ToWire() + if err != nil { + return w, err + } + fields[i] = wire.Field{ID: 0, Value: w} + i++ + } + if v.DomainNotActiveError != nil { + w, err = v.DomainNotActiveError.ToWire() + if err != nil { + return w, err + } + fields[i] = wire.Field{ID: 1, Value: w} + i++ + } + if v.ServiceBusyError != nil { + w, err = v.ServiceBusyError.ToWire() + if err != nil { + return w, err + } + fields[i] = wire.Field{ID: 2, Value: w} + i++ + } + if v.EntityNotExistError != nil { + w, err = v.EntityNotExistError.ToWire() + if err != nil { + return w, err + } + fields[i] = wire.Field{ID: 3, Value: w} + i++ + } + if v.ClientVersionNotSupportedError != nil { + w, err = v.ClientVersionNotSupportedError.ToWire() + if err != nil { + return w, err + } + fields[i] = wire.Field{ID: 4, Value: w} + i++ + } + if v.AccessDeniedError != nil { + w, err = v.AccessDeniedError.ToWire() + if err != nil { + return w, err + } + fields[i] = wire.Field{ID: 5, Value: w} + i++ + } + + if i != 1 { + return wire.Value{}, fmt.Errorf("WorkflowService_DiagnoseWorkflowExecution_Result should have exactly one field: got %v fields", i) + } + + return wire.NewValueStruct(wire.Struct{Fields: fields[:i]}), nil +} + +func _DiagnoseWorkflowExecutionResponse_Read(w wire.Value) (*shared.DiagnoseWorkflowExecutionResponse, error) { + var v shared.DiagnoseWorkflowExecutionResponse + err := v.FromWire(w) + return &v, err +} + +// FromWire deserializes a WorkflowService_DiagnoseWorkflowExecution_Result struct from its Thrift-level +// representation. The Thrift-level representation may be obtained +// from a ThriftRW protocol implementation. +// +// An error is returned if we were unable to build a WorkflowService_DiagnoseWorkflowExecution_Result struct +// from the provided intermediate representation. +// +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } +// +// var v WorkflowService_DiagnoseWorkflowExecution_Result +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil +func (v *WorkflowService_DiagnoseWorkflowExecution_Result) FromWire(w wire.Value) error { + var err error + + for _, field := range w.GetStruct().Fields { + switch field.ID { + case 0: + if field.Value.Type() == wire.TStruct { + v.Success, err = _DiagnoseWorkflowExecutionResponse_Read(field.Value) + if err != nil { + return err + } + + } + case 1: + if field.Value.Type() == wire.TStruct { + v.DomainNotActiveError, err = _DomainNotActiveError_Read(field.Value) + if err != nil { + return err + } + + } + case 2: + if field.Value.Type() == wire.TStruct { + v.ServiceBusyError, err = _ServiceBusyError_Read(field.Value) + if err != nil { + return err + } + + } + case 3: + if field.Value.Type() == wire.TStruct { + v.EntityNotExistError, err = _EntityNotExistsError_Read(field.Value) + if err != nil { + return err + } + + } + case 4: + if field.Value.Type() == wire.TStruct { + v.ClientVersionNotSupportedError, err = _ClientVersionNotSupportedError_Read(field.Value) + if err != nil { + return err + } + + } + case 5: + if field.Value.Type() == wire.TStruct { + v.AccessDeniedError, err = _AccessDeniedError_Read(field.Value) + if err != nil { + return err + } + + } + } + } + + count := 0 + if v.Success != nil { + count++ + } + if v.DomainNotActiveError != nil { + count++ + } + if v.ServiceBusyError != nil { + count++ + } + if v.EntityNotExistError != nil { + count++ + } + if v.ClientVersionNotSupportedError != nil { + count++ + } + if v.AccessDeniedError != nil { + count++ + } + if count != 1 { + return fmt.Errorf("WorkflowService_DiagnoseWorkflowExecution_Result should have exactly one field: got %v fields", count) + } + + return nil +} + +// String returns a readable string representation of a WorkflowService_DiagnoseWorkflowExecution_Result +// struct. +func (v *WorkflowService_DiagnoseWorkflowExecution_Result) String() string { + if v == nil { + return "" + } + + var fields [6]string + i := 0 + if v.Success != nil { + fields[i] = fmt.Sprintf("Success: %v", v.Success) + i++ + } + if v.DomainNotActiveError != nil { + fields[i] = fmt.Sprintf("DomainNotActiveError: %v", v.DomainNotActiveError) + i++ + } + if v.ServiceBusyError != nil { + fields[i] = fmt.Sprintf("ServiceBusyError: %v", v.ServiceBusyError) + i++ + } + if v.EntityNotExistError != nil { + fields[i] = fmt.Sprintf("EntityNotExistError: %v", v.EntityNotExistError) + i++ + } + if v.ClientVersionNotSupportedError != nil { + fields[i] = fmt.Sprintf("ClientVersionNotSupportedError: %v", v.ClientVersionNotSupportedError) + i++ + } + if v.AccessDeniedError != nil { + fields[i] = fmt.Sprintf("AccessDeniedError: %v", v.AccessDeniedError) + i++ + } + + return fmt.Sprintf("WorkflowService_DiagnoseWorkflowExecution_Result{%v}", strings.Join(fields[:i], ", ")) +} + +// Equals returns true if all the fields of this WorkflowService_DiagnoseWorkflowExecution_Result match the +// provided WorkflowService_DiagnoseWorkflowExecution_Result. +// +// This function performs a deep comparison. +func (v *WorkflowService_DiagnoseWorkflowExecution_Result) Equals(rhs *WorkflowService_DiagnoseWorkflowExecution_Result) bool { + if v == nil { + return rhs == nil + } else if rhs == nil { + return false + } + if !((v.Success == nil && rhs.Success == nil) || (v.Success != nil && rhs.Success != nil && v.Success.Equals(rhs.Success))) { + return false + } + if !((v.DomainNotActiveError == nil && rhs.DomainNotActiveError == nil) || (v.DomainNotActiveError != nil && rhs.DomainNotActiveError != nil && v.DomainNotActiveError.Equals(rhs.DomainNotActiveError))) { + return false + } + if !((v.ServiceBusyError == nil && rhs.ServiceBusyError == nil) || (v.ServiceBusyError != nil && rhs.ServiceBusyError != nil && v.ServiceBusyError.Equals(rhs.ServiceBusyError))) { + return false + } + if !((v.EntityNotExistError == nil && rhs.EntityNotExistError == nil) || (v.EntityNotExistError != nil && rhs.EntityNotExistError != nil && v.EntityNotExistError.Equals(rhs.EntityNotExistError))) { + return false + } + if !((v.ClientVersionNotSupportedError == nil && rhs.ClientVersionNotSupportedError == nil) || (v.ClientVersionNotSupportedError != nil && rhs.ClientVersionNotSupportedError != nil && v.ClientVersionNotSupportedError.Equals(rhs.ClientVersionNotSupportedError))) { + return false + } + if !((v.AccessDeniedError == nil && rhs.AccessDeniedError == nil) || (v.AccessDeniedError != nil && rhs.AccessDeniedError != nil && v.AccessDeniedError.Equals(rhs.AccessDeniedError))) { + return false + } + + return true +} + +// MarshalLogObject implements zapcore.ObjectMarshaler, enabling +// fast logging of WorkflowService_DiagnoseWorkflowExecution_Result. +func (v *WorkflowService_DiagnoseWorkflowExecution_Result) MarshalLogObject(enc zapcore.ObjectEncoder) (err error) { + if v == nil { + return nil + } + if v.Success != nil { + err = multierr.Append(err, enc.AddObject("success", v.Success)) + } + if v.DomainNotActiveError != nil { + err = multierr.Append(err, enc.AddObject("domainNotActiveError", v.DomainNotActiveError)) + } + if v.ServiceBusyError != nil { + err = multierr.Append(err, enc.AddObject("serviceBusyError", v.ServiceBusyError)) + } + if v.EntityNotExistError != nil { + err = multierr.Append(err, enc.AddObject("entityNotExistError", v.EntityNotExistError)) + } + if v.ClientVersionNotSupportedError != nil { + err = multierr.Append(err, enc.AddObject("clientVersionNotSupportedError", v.ClientVersionNotSupportedError)) + } + if v.AccessDeniedError != nil { + err = multierr.Append(err, enc.AddObject("accessDeniedError", v.AccessDeniedError)) + } + return err +} + +// GetSuccess returns the value of Success if it is set or its +// zero value if it is unset. +func (v *WorkflowService_DiagnoseWorkflowExecution_Result) GetSuccess() (o *shared.DiagnoseWorkflowExecutionResponse) { + if v != nil && v.Success != nil { + return v.Success + } + + return +} + +// IsSetSuccess returns true if Success is not nil. +func (v *WorkflowService_DiagnoseWorkflowExecution_Result) IsSetSuccess() bool { + return v != nil && v.Success != nil +} + +// GetDomainNotActiveError returns the value of DomainNotActiveError if it is set or its +// zero value if it is unset. +func (v *WorkflowService_DiagnoseWorkflowExecution_Result) GetDomainNotActiveError() (o *shared.DomainNotActiveError) { + if v != nil && v.DomainNotActiveError != nil { + return v.DomainNotActiveError + } + + return +} + +// IsSetDomainNotActiveError returns true if DomainNotActiveError is not nil. +func (v *WorkflowService_DiagnoseWorkflowExecution_Result) IsSetDomainNotActiveError() bool { + return v != nil && v.DomainNotActiveError != nil +} + +// GetServiceBusyError returns the value of ServiceBusyError if it is set or its +// zero value if it is unset. +func (v *WorkflowService_DiagnoseWorkflowExecution_Result) GetServiceBusyError() (o *shared.ServiceBusyError) { + if v != nil && v.ServiceBusyError != nil { + return v.ServiceBusyError + } + + return +} + +// IsSetServiceBusyError returns true if ServiceBusyError is not nil. +func (v *WorkflowService_DiagnoseWorkflowExecution_Result) IsSetServiceBusyError() bool { + return v != nil && v.ServiceBusyError != nil +} + +// GetEntityNotExistError returns the value of EntityNotExistError if it is set or its +// zero value if it is unset. +func (v *WorkflowService_DiagnoseWorkflowExecution_Result) GetEntityNotExistError() (o *shared.EntityNotExistsError) { + if v != nil && v.EntityNotExistError != nil { + return v.EntityNotExistError + } + + return +} + +// IsSetEntityNotExistError returns true if EntityNotExistError is not nil. +func (v *WorkflowService_DiagnoseWorkflowExecution_Result) IsSetEntityNotExistError() bool { + return v != nil && v.EntityNotExistError != nil +} + +// GetClientVersionNotSupportedError returns the value of ClientVersionNotSupportedError if it is set or its +// zero value if it is unset. +func (v *WorkflowService_DiagnoseWorkflowExecution_Result) GetClientVersionNotSupportedError() (o *shared.ClientVersionNotSupportedError) { + if v != nil && v.ClientVersionNotSupportedError != nil { + return v.ClientVersionNotSupportedError + } + + return +} + +// IsSetClientVersionNotSupportedError returns true if ClientVersionNotSupportedError is not nil. +func (v *WorkflowService_DiagnoseWorkflowExecution_Result) IsSetClientVersionNotSupportedError() bool { + return v != nil && v.ClientVersionNotSupportedError != nil +} + +// GetAccessDeniedError returns the value of AccessDeniedError if it is set or its +// zero value if it is unset. +func (v *WorkflowService_DiagnoseWorkflowExecution_Result) GetAccessDeniedError() (o *shared.AccessDeniedError) { + if v != nil && v.AccessDeniedError != nil { + return v.AccessDeniedError + } + + return +} + +// IsSetAccessDeniedError returns true if AccessDeniedError is not nil. +func (v *WorkflowService_DiagnoseWorkflowExecution_Result) IsSetAccessDeniedError() bool { + return v != nil && v.AccessDeniedError != nil +} + +// MethodName returns the name of the Thrift function as specified in +// the IDL, for which this struct represent the result. +// +// This will always be "DiagnoseWorkflowExecution" for this struct. +func (v *WorkflowService_DiagnoseWorkflowExecution_Result) MethodName() string { + return "DiagnoseWorkflowExecution" +} + +// EnvelopeType returns the kind of value inside this struct. +// +// This will always be Reply for this struct. +func (v *WorkflowService_DiagnoseWorkflowExecution_Result) EnvelopeType() wire.EnvelopeType { + return wire.Reply +} + +// WorkflowService_GetClusterInfo_Args represents the arguments for the WorkflowService.GetClusterInfo function. +// +// The arguments for GetClusterInfo are sent and received over the wire as this struct. +type WorkflowService_GetClusterInfo_Args struct { +} + +// ToWire translates a WorkflowService_GetClusterInfo_Args struct into a Thrift-level intermediate +// representation. This intermediate representation may be serialized +// into bytes using a ThriftRW protocol implementation. +// +// An error is returned if the struct or any of its fields failed to +// validate. +// +// x, err := v.ToWire() +// if err != nil { +// return err +// } +// +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } +func (v *WorkflowService_GetClusterInfo_Args) ToWire() (wire.Value, error) { + var ( + fields [0]wire.Field + i int = 0 + ) + + return wire.NewValueStruct(wire.Struct{Fields: fields[:i]}), nil +} + +// FromWire deserializes a WorkflowService_GetClusterInfo_Args struct from its Thrift-level +// representation. The Thrift-level representation may be obtained +// from a ThriftRW protocol implementation. +// +// An error is returned if we were unable to build a WorkflowService_GetClusterInfo_Args struct +// from the provided intermediate representation. +// +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } +// +// var v WorkflowService_GetClusterInfo_Args +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil +func (v *WorkflowService_GetClusterInfo_Args) FromWire(w wire.Value) error { + + for _, field := range w.GetStruct().Fields { + switch field.ID { + } + } + + return nil +} + +// String returns a readable string representation of a WorkflowService_GetClusterInfo_Args +// struct. +func (v *WorkflowService_GetClusterInfo_Args) String() string { + if v == nil { + return "" + } + + var fields [0]string + i := 0 + + return fmt.Sprintf("WorkflowService_GetClusterInfo_Args{%v}", strings.Join(fields[:i], ", ")) +} + +// Equals returns true if all the fields of this WorkflowService_GetClusterInfo_Args match the +// provided WorkflowService_GetClusterInfo_Args. +// +// This function performs a deep comparison. +func (v *WorkflowService_GetClusterInfo_Args) Equals(rhs *WorkflowService_GetClusterInfo_Args) bool { + if v == nil { + return rhs == nil + } else if rhs == nil { + return false + } + + return true +} + +// MarshalLogObject implements zapcore.ObjectMarshaler, enabling +// fast logging of WorkflowService_GetClusterInfo_Args. +func (v *WorkflowService_GetClusterInfo_Args) MarshalLogObject(enc zapcore.ObjectEncoder) (err error) { + if v == nil { + return nil + } + return err +} + +// MethodName returns the name of the Thrift function as specified in +// the IDL, for which this struct represent the arguments. +// +// This will always be "GetClusterInfo" for this struct. +func (v *WorkflowService_GetClusterInfo_Args) MethodName() string { + return "GetClusterInfo" +} + +// EnvelopeType returns the kind of value inside this struct. +// +// This will always be Call for this struct. +func (v *WorkflowService_GetClusterInfo_Args) EnvelopeType() wire.EnvelopeType { + return wire.Call +} + +// WorkflowService_GetClusterInfo_Helper provides functions that aid in handling the +// parameters and return values of the WorkflowService.GetClusterInfo +// function. +var WorkflowService_GetClusterInfo_Helper = struct { + // Args accepts the parameters of GetClusterInfo in-order and returns + // the arguments struct for the function. + Args func() *WorkflowService_GetClusterInfo_Args + + // IsException returns true if the given error can be thrown + // by GetClusterInfo. + // + // An error can be thrown by GetClusterInfo only if the // corresponding exception type was mentioned in the 'throws' // section for it in the Thrift file. IsException func(error) bool @@ -3571,6 +4556,8 @@ func init() { return true case *shared.ServiceBusyError: return true + case *shared.AccessDeniedError: + return true default: return false } @@ -3592,6 +4579,11 @@ func init() { return nil, errors.New("WrapResponse received non-nil error type with nil value for WorkflowService_GetClusterInfo_Result.ServiceBusyError") } return &WorkflowService_GetClusterInfo_Result{ServiceBusyError: e}, nil + case *shared.AccessDeniedError: + if e == nil { + return nil, errors.New("WrapResponse received non-nil error type with nil value for WorkflowService_GetClusterInfo_Result.AccessDeniedError") + } + return &WorkflowService_GetClusterInfo_Result{AccessDeniedError: e}, nil } return nil, err @@ -3605,6 +4597,10 @@ func init() { err = result.ServiceBusyError return } + if result.AccessDeniedError != nil { + err = result.AccessDeniedError + return + } if result.Success != nil { success = result.Success @@ -3627,6 +4623,7 @@ type WorkflowService_GetClusterInfo_Result struct { Success *shared.ClusterInfo `json:"success,omitempty"` InternalServiceError *shared.InternalServiceError `json:"internalServiceError,omitempty"` ServiceBusyError *shared.ServiceBusyError `json:"serviceBusyError,omitempty"` + AccessDeniedError *shared.AccessDeniedError `json:"accessDeniedError,omitempty"` } // ToWire translates a WorkflowService_GetClusterInfo_Result struct into a Thrift-level intermediate @@ -3646,7 +4643,7 @@ type WorkflowService_GetClusterInfo_Result struct { // } func (v *WorkflowService_GetClusterInfo_Result) ToWire() (wire.Value, error) { var ( - fields [3]wire.Field + fields [4]wire.Field i int = 0 w wire.Value err error @@ -3676,6 +4673,14 @@ func (v *WorkflowService_GetClusterInfo_Result) ToWire() (wire.Value, error) { fields[i] = wire.Field{ID: 2, Value: w} i++ } + if v.AccessDeniedError != nil { + w, err = v.AccessDeniedError.ToWire() + if err != nil { + return w, err + } + fields[i] = wire.Field{ID: 3, Value: w} + i++ + } if i != 1 { return wire.Value{}, fmt.Errorf("WorkflowService_GetClusterInfo_Result should have exactly one field: got %v fields", i) @@ -3741,6 +4746,14 @@ func (v *WorkflowService_GetClusterInfo_Result) FromWire(w wire.Value) error { return err } + } + case 3: + if field.Value.Type() == wire.TStruct { + v.AccessDeniedError, err = _AccessDeniedError_Read(field.Value) + if err != nil { + return err + } + } } } @@ -3755,6 +4768,9 @@ func (v *WorkflowService_GetClusterInfo_Result) FromWire(w wire.Value) error { if v.ServiceBusyError != nil { count++ } + if v.AccessDeniedError != nil { + count++ + } if count != 1 { return fmt.Errorf("WorkflowService_GetClusterInfo_Result should have exactly one field: got %v fields", count) } @@ -3769,7 +4785,7 @@ func (v *WorkflowService_GetClusterInfo_Result) String() string { return "" } - var fields [3]string + var fields [4]string i := 0 if v.Success != nil { fields[i] = fmt.Sprintf("Success: %v", v.Success) @@ -3783,6 +4799,10 @@ func (v *WorkflowService_GetClusterInfo_Result) String() string { fields[i] = fmt.Sprintf("ServiceBusyError: %v", v.ServiceBusyError) i++ } + if v.AccessDeniedError != nil { + fields[i] = fmt.Sprintf("AccessDeniedError: %v", v.AccessDeniedError) + i++ + } return fmt.Sprintf("WorkflowService_GetClusterInfo_Result{%v}", strings.Join(fields[:i], ", ")) } @@ -3806,6 +4826,9 @@ func (v *WorkflowService_GetClusterInfo_Result) Equals(rhs *WorkflowService_GetC if !((v.ServiceBusyError == nil && rhs.ServiceBusyError == nil) || (v.ServiceBusyError != nil && rhs.ServiceBusyError != nil && v.ServiceBusyError.Equals(rhs.ServiceBusyError))) { return false } + if !((v.AccessDeniedError == nil && rhs.AccessDeniedError == nil) || (v.AccessDeniedError != nil && rhs.AccessDeniedError != nil && v.AccessDeniedError.Equals(rhs.AccessDeniedError))) { + return false + } return true } @@ -3825,6 +4848,9 @@ func (v *WorkflowService_GetClusterInfo_Result) MarshalLogObject(enc zapcore.Obj if v.ServiceBusyError != nil { err = multierr.Append(err, enc.AddObject("serviceBusyError", v.ServiceBusyError)) } + if v.AccessDeniedError != nil { + err = multierr.Append(err, enc.AddObject("accessDeniedError", v.AccessDeniedError)) + } return err } @@ -3873,6 +4899,21 @@ func (v *WorkflowService_GetClusterInfo_Result) IsSetServiceBusyError() bool { return v != nil && v.ServiceBusyError != nil } +// GetAccessDeniedError returns the value of AccessDeniedError if it is set or its +// zero value if it is unset. +func (v *WorkflowService_GetClusterInfo_Result) GetAccessDeniedError() (o *shared.AccessDeniedError) { + if v != nil && v.AccessDeniedError != nil { + return v.AccessDeniedError + } + + return +} + +// IsSetAccessDeniedError returns true if AccessDeniedError is not nil. +func (v *WorkflowService_GetClusterInfo_Result) IsSetAccessDeniedError() bool { + return v != nil && v.AccessDeniedError != nil +} + // MethodName returns the name of the Thrift function as specified in // the IDL, for which this struct represent the result. // @@ -4050,6 +5091,8 @@ func init() { return true case *shared.ClientVersionNotSupportedError: return true + case *shared.AccessDeniedError: + return true default: return false } @@ -4071,6 +5114,11 @@ func init() { return nil, errors.New("WrapResponse received non-nil error type with nil value for WorkflowService_GetSearchAttributes_Result.ClientVersionNotSupportedError") } return &WorkflowService_GetSearchAttributes_Result{ClientVersionNotSupportedError: e}, nil + case *shared.AccessDeniedError: + if e == nil { + return nil, errors.New("WrapResponse received non-nil error type with nil value for WorkflowService_GetSearchAttributes_Result.AccessDeniedError") + } + return &WorkflowService_GetSearchAttributes_Result{AccessDeniedError: e}, nil } return nil, err @@ -4084,6 +5132,10 @@ func init() { err = result.ClientVersionNotSupportedError return } + if result.AccessDeniedError != nil { + err = result.AccessDeniedError + return + } if result.Success != nil { success = result.Success @@ -4106,6 +5158,7 @@ type WorkflowService_GetSearchAttributes_Result struct { Success *shared.GetSearchAttributesResponse `json:"success,omitempty"` ServiceBusyError *shared.ServiceBusyError `json:"serviceBusyError,omitempty"` ClientVersionNotSupportedError *shared.ClientVersionNotSupportedError `json:"clientVersionNotSupportedError,omitempty"` + AccessDeniedError *shared.AccessDeniedError `json:"accessDeniedError,omitempty"` } // ToWire translates a WorkflowService_GetSearchAttributes_Result struct into a Thrift-level intermediate @@ -4125,7 +5178,7 @@ type WorkflowService_GetSearchAttributes_Result struct { // } func (v *WorkflowService_GetSearchAttributes_Result) ToWire() (wire.Value, error) { var ( - fields [3]wire.Field + fields [4]wire.Field i int = 0 w wire.Value err error @@ -4155,6 +5208,14 @@ func (v *WorkflowService_GetSearchAttributes_Result) ToWire() (wire.Value, error fields[i] = wire.Field{ID: 3, Value: w} i++ } + if v.AccessDeniedError != nil { + w, err = v.AccessDeniedError.ToWire() + if err != nil { + return w, err + } + fields[i] = wire.Field{ID: 4, Value: w} + i++ + } if i != 1 { return wire.Value{}, fmt.Errorf("WorkflowService_GetSearchAttributes_Result should have exactly one field: got %v fields", i) @@ -4214,6 +5275,14 @@ func (v *WorkflowService_GetSearchAttributes_Result) FromWire(w wire.Value) erro return err } + } + case 4: + if field.Value.Type() == wire.TStruct { + v.AccessDeniedError, err = _AccessDeniedError_Read(field.Value) + if err != nil { + return err + } + } } } @@ -4228,6 +5297,9 @@ func (v *WorkflowService_GetSearchAttributes_Result) FromWire(w wire.Value) erro if v.ClientVersionNotSupportedError != nil { count++ } + if v.AccessDeniedError != nil { + count++ + } if count != 1 { return fmt.Errorf("WorkflowService_GetSearchAttributes_Result should have exactly one field: got %v fields", count) } @@ -4242,7 +5314,7 @@ func (v *WorkflowService_GetSearchAttributes_Result) String() string { return "" } - var fields [3]string + var fields [4]string i := 0 if v.Success != nil { fields[i] = fmt.Sprintf("Success: %v", v.Success) @@ -4256,6 +5328,10 @@ func (v *WorkflowService_GetSearchAttributes_Result) String() string { fields[i] = fmt.Sprintf("ClientVersionNotSupportedError: %v", v.ClientVersionNotSupportedError) i++ } + if v.AccessDeniedError != nil { + fields[i] = fmt.Sprintf("AccessDeniedError: %v", v.AccessDeniedError) + i++ + } return fmt.Sprintf("WorkflowService_GetSearchAttributes_Result{%v}", strings.Join(fields[:i], ", ")) } @@ -4279,6 +5355,9 @@ func (v *WorkflowService_GetSearchAttributes_Result) Equals(rhs *WorkflowService if !((v.ClientVersionNotSupportedError == nil && rhs.ClientVersionNotSupportedError == nil) || (v.ClientVersionNotSupportedError != nil && rhs.ClientVersionNotSupportedError != nil && v.ClientVersionNotSupportedError.Equals(rhs.ClientVersionNotSupportedError))) { return false } + if !((v.AccessDeniedError == nil && rhs.AccessDeniedError == nil) || (v.AccessDeniedError != nil && rhs.AccessDeniedError != nil && v.AccessDeniedError.Equals(rhs.AccessDeniedError))) { + return false + } return true } @@ -4298,6 +5377,9 @@ func (v *WorkflowService_GetSearchAttributes_Result) MarshalLogObject(enc zapcor if v.ClientVersionNotSupportedError != nil { err = multierr.Append(err, enc.AddObject("clientVersionNotSupportedError", v.ClientVersionNotSupportedError)) } + if v.AccessDeniedError != nil { + err = multierr.Append(err, enc.AddObject("accessDeniedError", v.AccessDeniedError)) + } return err } @@ -4346,6 +5428,21 @@ func (v *WorkflowService_GetSearchAttributes_Result) IsSetClientVersionNotSuppor return v != nil && v.ClientVersionNotSupportedError != nil } +// GetAccessDeniedError returns the value of AccessDeniedError if it is set or its +// zero value if it is unset. +func (v *WorkflowService_GetSearchAttributes_Result) GetAccessDeniedError() (o *shared.AccessDeniedError) { + if v != nil && v.AccessDeniedError != nil { + return v.AccessDeniedError + } + + return +} + +// IsSetAccessDeniedError returns true if AccessDeniedError is not nil. +func (v *WorkflowService_GetSearchAttributes_Result) IsSetAccessDeniedError() bool { + return v != nil && v.AccessDeniedError != nil +} + // MethodName returns the name of the Thrift function as specified in // the IDL, for which this struct represent the result. // @@ -4587,6 +5684,8 @@ func init() { return true case *shared.ClientVersionNotSupportedError: return true + case *shared.AccessDeniedError: + return true default: return false } @@ -4623,6 +5722,11 @@ func init() { return nil, errors.New("WrapResponse received non-nil error type with nil value for WorkflowService_GetTaskListsByDomain_Result.ClientVersionNotSupportedError") } return &WorkflowService_GetTaskListsByDomain_Result{ClientVersionNotSupportedError: e}, nil + case *shared.AccessDeniedError: + if e == nil { + return nil, errors.New("WrapResponse received non-nil error type with nil value for WorkflowService_GetTaskListsByDomain_Result.AccessDeniedError") + } + return &WorkflowService_GetTaskListsByDomain_Result{AccessDeniedError: e}, nil } return nil, err @@ -4648,6 +5752,10 @@ func init() { err = result.ClientVersionNotSupportedError return } + if result.AccessDeniedError != nil { + err = result.AccessDeniedError + return + } if result.Success != nil { success = result.Success @@ -4673,6 +5781,7 @@ type WorkflowService_GetTaskListsByDomain_Result struct { LimitExceededError *shared.LimitExceededError `json:"limitExceededError,omitempty"` ServiceBusyError *shared.ServiceBusyError `json:"serviceBusyError,omitempty"` ClientVersionNotSupportedError *shared.ClientVersionNotSupportedError `json:"clientVersionNotSupportedError,omitempty"` + AccessDeniedError *shared.AccessDeniedError `json:"accessDeniedError,omitempty"` } // ToWire translates a WorkflowService_GetTaskListsByDomain_Result struct into a Thrift-level intermediate @@ -4692,7 +5801,7 @@ type WorkflowService_GetTaskListsByDomain_Result struct { // } func (v *WorkflowService_GetTaskListsByDomain_Result) ToWire() (wire.Value, error) { var ( - fields [6]wire.Field + fields [7]wire.Field i int = 0 w wire.Value err error @@ -4746,6 +5855,14 @@ func (v *WorkflowService_GetTaskListsByDomain_Result) ToWire() (wire.Value, erro fields[i] = wire.Field{ID: 5, Value: w} i++ } + if v.AccessDeniedError != nil { + w, err = v.AccessDeniedError.ToWire() + if err != nil { + return w, err + } + fields[i] = wire.Field{ID: 6, Value: w} + i++ + } if i != 1 { return wire.Value{}, fmt.Errorf("WorkflowService_GetTaskListsByDomain_Result should have exactly one field: got %v fields", i) @@ -4829,6 +5946,14 @@ func (v *WorkflowService_GetTaskListsByDomain_Result) FromWire(w wire.Value) err return err } + } + case 6: + if field.Value.Type() == wire.TStruct { + v.AccessDeniedError, err = _AccessDeniedError_Read(field.Value) + if err != nil { + return err + } + } } } @@ -4852,6 +5977,9 @@ func (v *WorkflowService_GetTaskListsByDomain_Result) FromWire(w wire.Value) err if v.ClientVersionNotSupportedError != nil { count++ } + if v.AccessDeniedError != nil { + count++ + } if count != 1 { return fmt.Errorf("WorkflowService_GetTaskListsByDomain_Result should have exactly one field: got %v fields", count) } @@ -4866,7 +5994,7 @@ func (v *WorkflowService_GetTaskListsByDomain_Result) String() string { return "" } - var fields [6]string + var fields [7]string i := 0 if v.Success != nil { fields[i] = fmt.Sprintf("Success: %v", v.Success) @@ -4892,6 +6020,10 @@ func (v *WorkflowService_GetTaskListsByDomain_Result) String() string { fields[i] = fmt.Sprintf("ClientVersionNotSupportedError: %v", v.ClientVersionNotSupportedError) i++ } + if v.AccessDeniedError != nil { + fields[i] = fmt.Sprintf("AccessDeniedError: %v", v.AccessDeniedError) + i++ + } return fmt.Sprintf("WorkflowService_GetTaskListsByDomain_Result{%v}", strings.Join(fields[:i], ", ")) } @@ -4924,6 +6056,9 @@ func (v *WorkflowService_GetTaskListsByDomain_Result) Equals(rhs *WorkflowServic if !((v.ClientVersionNotSupportedError == nil && rhs.ClientVersionNotSupportedError == nil) || (v.ClientVersionNotSupportedError != nil && rhs.ClientVersionNotSupportedError != nil && v.ClientVersionNotSupportedError.Equals(rhs.ClientVersionNotSupportedError))) { return false } + if !((v.AccessDeniedError == nil && rhs.AccessDeniedError == nil) || (v.AccessDeniedError != nil && rhs.AccessDeniedError != nil && v.AccessDeniedError.Equals(rhs.AccessDeniedError))) { + return false + } return true } @@ -4952,6 +6087,9 @@ func (v *WorkflowService_GetTaskListsByDomain_Result) MarshalLogObject(enc zapco if v.ClientVersionNotSupportedError != nil { err = multierr.Append(err, enc.AddObject("clientVersionNotSupportedError", v.ClientVersionNotSupportedError)) } + if v.AccessDeniedError != nil { + err = multierr.Append(err, enc.AddObject("accessDeniedError", v.AccessDeniedError)) + } return err } @@ -5045,6 +6183,21 @@ func (v *WorkflowService_GetTaskListsByDomain_Result) IsSetClientVersionNotSuppo return v != nil && v.ClientVersionNotSupportedError != nil } +// GetAccessDeniedError returns the value of AccessDeniedError if it is set or its +// zero value if it is unset. +func (v *WorkflowService_GetTaskListsByDomain_Result) GetAccessDeniedError() (o *shared.AccessDeniedError) { + if v != nil && v.AccessDeniedError != nil { + return v.AccessDeniedError + } + + return +} + +// IsSetAccessDeniedError returns true if AccessDeniedError is not nil. +func (v *WorkflowService_GetTaskListsByDomain_Result) IsSetAccessDeniedError() bool { + return v != nil && v.AccessDeniedError != nil +} + // MethodName returns the name of the Thrift function as specified in // the IDL, for which this struct represent the result. // @@ -5284,6 +6437,8 @@ func init() { return true case *shared.ClientVersionNotSupportedError: return true + case *shared.AccessDeniedError: + return true default: return false } @@ -5315,6 +6470,11 @@ func init() { return nil, errors.New("WrapResponse received non-nil error type with nil value for WorkflowService_GetWorkflowExecutionHistory_Result.ClientVersionNotSupportedError") } return &WorkflowService_GetWorkflowExecutionHistory_Result{ClientVersionNotSupportedError: e}, nil + case *shared.AccessDeniedError: + if e == nil { + return nil, errors.New("WrapResponse received non-nil error type with nil value for WorkflowService_GetWorkflowExecutionHistory_Result.AccessDeniedError") + } + return &WorkflowService_GetWorkflowExecutionHistory_Result{AccessDeniedError: e}, nil } return nil, err @@ -5336,6 +6496,10 @@ func init() { err = result.ClientVersionNotSupportedError return } + if result.AccessDeniedError != nil { + err = result.AccessDeniedError + return + } if result.Success != nil { success = result.Success @@ -5360,6 +6524,7 @@ type WorkflowService_GetWorkflowExecutionHistory_Result struct { EntityNotExistError *shared.EntityNotExistsError `json:"entityNotExistError,omitempty"` ServiceBusyError *shared.ServiceBusyError `json:"serviceBusyError,omitempty"` ClientVersionNotSupportedError *shared.ClientVersionNotSupportedError `json:"clientVersionNotSupportedError,omitempty"` + AccessDeniedError *shared.AccessDeniedError `json:"accessDeniedError,omitempty"` } // ToWire translates a WorkflowService_GetWorkflowExecutionHistory_Result struct into a Thrift-level intermediate @@ -5379,7 +6544,7 @@ type WorkflowService_GetWorkflowExecutionHistory_Result struct { // } func (v *WorkflowService_GetWorkflowExecutionHistory_Result) ToWire() (wire.Value, error) { var ( - fields [5]wire.Field + fields [6]wire.Field i int = 0 w wire.Value err error @@ -5425,6 +6590,14 @@ func (v *WorkflowService_GetWorkflowExecutionHistory_Result) ToWire() (wire.Valu fields[i] = wire.Field{ID: 5, Value: w} i++ } + if v.AccessDeniedError != nil { + w, err = v.AccessDeniedError.ToWire() + if err != nil { + return w, err + } + fields[i] = wire.Field{ID: 6, Value: w} + i++ + } if i != 1 { return wire.Value{}, fmt.Errorf("WorkflowService_GetWorkflowExecutionHistory_Result should have exactly one field: got %v fields", i) @@ -5500,6 +6673,14 @@ func (v *WorkflowService_GetWorkflowExecutionHistory_Result) FromWire(w wire.Val return err } + } + case 6: + if field.Value.Type() == wire.TStruct { + v.AccessDeniedError, err = _AccessDeniedError_Read(field.Value) + if err != nil { + return err + } + } } } @@ -5520,6 +6701,9 @@ func (v *WorkflowService_GetWorkflowExecutionHistory_Result) FromWire(w wire.Val if v.ClientVersionNotSupportedError != nil { count++ } + if v.AccessDeniedError != nil { + count++ + } if count != 1 { return fmt.Errorf("WorkflowService_GetWorkflowExecutionHistory_Result should have exactly one field: got %v fields", count) } @@ -5534,7 +6718,7 @@ func (v *WorkflowService_GetWorkflowExecutionHistory_Result) String() string { return "" } - var fields [5]string + var fields [6]string i := 0 if v.Success != nil { fields[i] = fmt.Sprintf("Success: %v", v.Success) @@ -5556,6 +6740,10 @@ func (v *WorkflowService_GetWorkflowExecutionHistory_Result) String() string { fields[i] = fmt.Sprintf("ClientVersionNotSupportedError: %v", v.ClientVersionNotSupportedError) i++ } + if v.AccessDeniedError != nil { + fields[i] = fmt.Sprintf("AccessDeniedError: %v", v.AccessDeniedError) + i++ + } return fmt.Sprintf("WorkflowService_GetWorkflowExecutionHistory_Result{%v}", strings.Join(fields[:i], ", ")) } @@ -5585,6 +6773,9 @@ func (v *WorkflowService_GetWorkflowExecutionHistory_Result) Equals(rhs *Workflo if !((v.ClientVersionNotSupportedError == nil && rhs.ClientVersionNotSupportedError == nil) || (v.ClientVersionNotSupportedError != nil && rhs.ClientVersionNotSupportedError != nil && v.ClientVersionNotSupportedError.Equals(rhs.ClientVersionNotSupportedError))) { return false } + if !((v.AccessDeniedError == nil && rhs.AccessDeniedError == nil) || (v.AccessDeniedError != nil && rhs.AccessDeniedError != nil && v.AccessDeniedError.Equals(rhs.AccessDeniedError))) { + return false + } return true } @@ -5610,6 +6801,9 @@ func (v *WorkflowService_GetWorkflowExecutionHistory_Result) MarshalLogObject(en if v.ClientVersionNotSupportedError != nil { err = multierr.Append(err, enc.AddObject("clientVersionNotSupportedError", v.ClientVersionNotSupportedError)) } + if v.AccessDeniedError != nil { + err = multierr.Append(err, enc.AddObject("accessDeniedError", v.AccessDeniedError)) + } return err } @@ -5688,6 +6882,21 @@ func (v *WorkflowService_GetWorkflowExecutionHistory_Result) IsSetClientVersionN return v != nil && v.ClientVersionNotSupportedError != nil } +// GetAccessDeniedError returns the value of AccessDeniedError if it is set or its +// zero value if it is unset. +func (v *WorkflowService_GetWorkflowExecutionHistory_Result) GetAccessDeniedError() (o *shared.AccessDeniedError) { + if v != nil && v.AccessDeniedError != nil { + return v.AccessDeniedError + } + + return +} + +// IsSetAccessDeniedError returns true if AccessDeniedError is not nil. +func (v *WorkflowService_GetWorkflowExecutionHistory_Result) IsSetAccessDeniedError() bool { + return v != nil && v.AccessDeniedError != nil +} + // MethodName returns the name of the Thrift function as specified in // the IDL, for which this struct represent the result. // @@ -5927,6 +7136,8 @@ func init() { return true case *shared.ClientVersionNotSupportedError: return true + case *shared.AccessDeniedError: + return true default: return false } @@ -5958,6 +7169,11 @@ func init() { return nil, errors.New("WrapResponse received non-nil error type with nil value for WorkflowService_ListArchivedWorkflowExecutions_Result.ClientVersionNotSupportedError") } return &WorkflowService_ListArchivedWorkflowExecutions_Result{ClientVersionNotSupportedError: e}, nil + case *shared.AccessDeniedError: + if e == nil { + return nil, errors.New("WrapResponse received non-nil error type with nil value for WorkflowService_ListArchivedWorkflowExecutions_Result.AccessDeniedError") + } + return &WorkflowService_ListArchivedWorkflowExecutions_Result{AccessDeniedError: e}, nil } return nil, err @@ -5979,6 +7195,10 @@ func init() { err = result.ClientVersionNotSupportedError return } + if result.AccessDeniedError != nil { + err = result.AccessDeniedError + return + } if result.Success != nil { success = result.Success @@ -6003,6 +7223,7 @@ type WorkflowService_ListArchivedWorkflowExecutions_Result struct { EntityNotExistError *shared.EntityNotExistsError `json:"entityNotExistError,omitempty"` ServiceBusyError *shared.ServiceBusyError `json:"serviceBusyError,omitempty"` ClientVersionNotSupportedError *shared.ClientVersionNotSupportedError `json:"clientVersionNotSupportedError,omitempty"` + AccessDeniedError *shared.AccessDeniedError `json:"accessDeniedError,omitempty"` } // ToWire translates a WorkflowService_ListArchivedWorkflowExecutions_Result struct into a Thrift-level intermediate @@ -6022,7 +7243,7 @@ type WorkflowService_ListArchivedWorkflowExecutions_Result struct { // } func (v *WorkflowService_ListArchivedWorkflowExecutions_Result) ToWire() (wire.Value, error) { var ( - fields [5]wire.Field + fields [6]wire.Field i int = 0 w wire.Value err error @@ -6068,6 +7289,14 @@ func (v *WorkflowService_ListArchivedWorkflowExecutions_Result) ToWire() (wire.V fields[i] = wire.Field{ID: 5, Value: w} i++ } + if v.AccessDeniedError != nil { + w, err = v.AccessDeniedError.ToWire() + if err != nil { + return w, err + } + fields[i] = wire.Field{ID: 6, Value: w} + i++ + } if i != 1 { return wire.Value{}, fmt.Errorf("WorkflowService_ListArchivedWorkflowExecutions_Result should have exactly one field: got %v fields", i) @@ -6143,6 +7372,14 @@ func (v *WorkflowService_ListArchivedWorkflowExecutions_Result) FromWire(w wire. return err } + } + case 6: + if field.Value.Type() == wire.TStruct { + v.AccessDeniedError, err = _AccessDeniedError_Read(field.Value) + if err != nil { + return err + } + } } } @@ -6163,6 +7400,9 @@ func (v *WorkflowService_ListArchivedWorkflowExecutions_Result) FromWire(w wire. if v.ClientVersionNotSupportedError != nil { count++ } + if v.AccessDeniedError != nil { + count++ + } if count != 1 { return fmt.Errorf("WorkflowService_ListArchivedWorkflowExecutions_Result should have exactly one field: got %v fields", count) } @@ -6177,7 +7417,7 @@ func (v *WorkflowService_ListArchivedWorkflowExecutions_Result) String() string return "" } - var fields [5]string + var fields [6]string i := 0 if v.Success != nil { fields[i] = fmt.Sprintf("Success: %v", v.Success) @@ -6199,6 +7439,10 @@ func (v *WorkflowService_ListArchivedWorkflowExecutions_Result) String() string fields[i] = fmt.Sprintf("ClientVersionNotSupportedError: %v", v.ClientVersionNotSupportedError) i++ } + if v.AccessDeniedError != nil { + fields[i] = fmt.Sprintf("AccessDeniedError: %v", v.AccessDeniedError) + i++ + } return fmt.Sprintf("WorkflowService_ListArchivedWorkflowExecutions_Result{%v}", strings.Join(fields[:i], ", ")) } @@ -6228,6 +7472,9 @@ func (v *WorkflowService_ListArchivedWorkflowExecutions_Result) Equals(rhs *Work if !((v.ClientVersionNotSupportedError == nil && rhs.ClientVersionNotSupportedError == nil) || (v.ClientVersionNotSupportedError != nil && rhs.ClientVersionNotSupportedError != nil && v.ClientVersionNotSupportedError.Equals(rhs.ClientVersionNotSupportedError))) { return false } + if !((v.AccessDeniedError == nil && rhs.AccessDeniedError == nil) || (v.AccessDeniedError != nil && rhs.AccessDeniedError != nil && v.AccessDeniedError.Equals(rhs.AccessDeniedError))) { + return false + } return true } @@ -6253,6 +7500,9 @@ func (v *WorkflowService_ListArchivedWorkflowExecutions_Result) MarshalLogObject if v.ClientVersionNotSupportedError != nil { err = multierr.Append(err, enc.AddObject("clientVersionNotSupportedError", v.ClientVersionNotSupportedError)) } + if v.AccessDeniedError != nil { + err = multierr.Append(err, enc.AddObject("accessDeniedError", v.AccessDeniedError)) + } return err } @@ -6331,6 +7581,21 @@ func (v *WorkflowService_ListArchivedWorkflowExecutions_Result) IsSetClientVersi return v != nil && v.ClientVersionNotSupportedError != nil } +// GetAccessDeniedError returns the value of AccessDeniedError if it is set or its +// zero value if it is unset. +func (v *WorkflowService_ListArchivedWorkflowExecutions_Result) GetAccessDeniedError() (o *shared.AccessDeniedError) { + if v != nil && v.AccessDeniedError != nil { + return v.AccessDeniedError + } + + return +} + +// IsSetAccessDeniedError returns true if AccessDeniedError is not nil. +func (v *WorkflowService_ListArchivedWorkflowExecutions_Result) IsSetAccessDeniedError() bool { + return v != nil && v.AccessDeniedError != nil +} + // MethodName returns the name of the Thrift function as specified in // the IDL, for which this struct represent the result. // @@ -6570,6 +7835,8 @@ func init() { return true case *shared.ClientVersionNotSupportedError: return true + case *shared.AccessDeniedError: + return true default: return false } @@ -6601,6 +7868,11 @@ func init() { return nil, errors.New("WrapResponse received non-nil error type with nil value for WorkflowService_ListClosedWorkflowExecutions_Result.ClientVersionNotSupportedError") } return &WorkflowService_ListClosedWorkflowExecutions_Result{ClientVersionNotSupportedError: e}, nil + case *shared.AccessDeniedError: + if e == nil { + return nil, errors.New("WrapResponse received non-nil error type with nil value for WorkflowService_ListClosedWorkflowExecutions_Result.AccessDeniedError") + } + return &WorkflowService_ListClosedWorkflowExecutions_Result{AccessDeniedError: e}, nil } return nil, err @@ -6622,6 +7894,10 @@ func init() { err = result.ClientVersionNotSupportedError return } + if result.AccessDeniedError != nil { + err = result.AccessDeniedError + return + } if result.Success != nil { success = result.Success @@ -6646,6 +7922,7 @@ type WorkflowService_ListClosedWorkflowExecutions_Result struct { EntityNotExistError *shared.EntityNotExistsError `json:"entityNotExistError,omitempty"` ServiceBusyError *shared.ServiceBusyError `json:"serviceBusyError,omitempty"` ClientVersionNotSupportedError *shared.ClientVersionNotSupportedError `json:"clientVersionNotSupportedError,omitempty"` + AccessDeniedError *shared.AccessDeniedError `json:"accessDeniedError,omitempty"` } // ToWire translates a WorkflowService_ListClosedWorkflowExecutions_Result struct into a Thrift-level intermediate @@ -6665,7 +7942,7 @@ type WorkflowService_ListClosedWorkflowExecutions_Result struct { // } func (v *WorkflowService_ListClosedWorkflowExecutions_Result) ToWire() (wire.Value, error) { var ( - fields [5]wire.Field + fields [6]wire.Field i int = 0 w wire.Value err error @@ -6711,6 +7988,14 @@ func (v *WorkflowService_ListClosedWorkflowExecutions_Result) ToWire() (wire.Val fields[i] = wire.Field{ID: 5, Value: w} i++ } + if v.AccessDeniedError != nil { + w, err = v.AccessDeniedError.ToWire() + if err != nil { + return w, err + } + fields[i] = wire.Field{ID: 6, Value: w} + i++ + } if i != 1 { return wire.Value{}, fmt.Errorf("WorkflowService_ListClosedWorkflowExecutions_Result should have exactly one field: got %v fields", i) @@ -6786,6 +8071,14 @@ func (v *WorkflowService_ListClosedWorkflowExecutions_Result) FromWire(w wire.Va return err } + } + case 6: + if field.Value.Type() == wire.TStruct { + v.AccessDeniedError, err = _AccessDeniedError_Read(field.Value) + if err != nil { + return err + } + } } } @@ -6806,6 +8099,9 @@ func (v *WorkflowService_ListClosedWorkflowExecutions_Result) FromWire(w wire.Va if v.ClientVersionNotSupportedError != nil { count++ } + if v.AccessDeniedError != nil { + count++ + } if count != 1 { return fmt.Errorf("WorkflowService_ListClosedWorkflowExecutions_Result should have exactly one field: got %v fields", count) } @@ -6820,7 +8116,7 @@ func (v *WorkflowService_ListClosedWorkflowExecutions_Result) String() string { return "" } - var fields [5]string + var fields [6]string i := 0 if v.Success != nil { fields[i] = fmt.Sprintf("Success: %v", v.Success) @@ -6842,6 +8138,10 @@ func (v *WorkflowService_ListClosedWorkflowExecutions_Result) String() string { fields[i] = fmt.Sprintf("ClientVersionNotSupportedError: %v", v.ClientVersionNotSupportedError) i++ } + if v.AccessDeniedError != nil { + fields[i] = fmt.Sprintf("AccessDeniedError: %v", v.AccessDeniedError) + i++ + } return fmt.Sprintf("WorkflowService_ListClosedWorkflowExecutions_Result{%v}", strings.Join(fields[:i], ", ")) } @@ -6871,6 +8171,9 @@ func (v *WorkflowService_ListClosedWorkflowExecutions_Result) Equals(rhs *Workfl if !((v.ClientVersionNotSupportedError == nil && rhs.ClientVersionNotSupportedError == nil) || (v.ClientVersionNotSupportedError != nil && rhs.ClientVersionNotSupportedError != nil && v.ClientVersionNotSupportedError.Equals(rhs.ClientVersionNotSupportedError))) { return false } + if !((v.AccessDeniedError == nil && rhs.AccessDeniedError == nil) || (v.AccessDeniedError != nil && rhs.AccessDeniedError != nil && v.AccessDeniedError.Equals(rhs.AccessDeniedError))) { + return false + } return true } @@ -6896,6 +8199,9 @@ func (v *WorkflowService_ListClosedWorkflowExecutions_Result) MarshalLogObject(e if v.ClientVersionNotSupportedError != nil { err = multierr.Append(err, enc.AddObject("clientVersionNotSupportedError", v.ClientVersionNotSupportedError)) } + if v.AccessDeniedError != nil { + err = multierr.Append(err, enc.AddObject("accessDeniedError", v.AccessDeniedError)) + } return err } @@ -6974,6 +8280,21 @@ func (v *WorkflowService_ListClosedWorkflowExecutions_Result) IsSetClientVersion return v != nil && v.ClientVersionNotSupportedError != nil } +// GetAccessDeniedError returns the value of AccessDeniedError if it is set or its +// zero value if it is unset. +func (v *WorkflowService_ListClosedWorkflowExecutions_Result) GetAccessDeniedError() (o *shared.AccessDeniedError) { + if v != nil && v.AccessDeniedError != nil { + return v.AccessDeniedError + } + + return +} + +// IsSetAccessDeniedError returns true if AccessDeniedError is not nil. +func (v *WorkflowService_ListClosedWorkflowExecutions_Result) IsSetAccessDeniedError() bool { + return v != nil && v.AccessDeniedError != nil +} + // MethodName returns the name of the Thrift function as specified in // the IDL, for which this struct represent the result. // @@ -7213,6 +8534,8 @@ func init() { return true case *shared.ClientVersionNotSupportedError: return true + case *shared.AccessDeniedError: + return true default: return false } @@ -7244,6 +8567,11 @@ func init() { return nil, errors.New("WrapResponse received non-nil error type with nil value for WorkflowService_ListDomains_Result.ClientVersionNotSupportedError") } return &WorkflowService_ListDomains_Result{ClientVersionNotSupportedError: e}, nil + case *shared.AccessDeniedError: + if e == nil { + return nil, errors.New("WrapResponse received non-nil error type with nil value for WorkflowService_ListDomains_Result.AccessDeniedError") + } + return &WorkflowService_ListDomains_Result{AccessDeniedError: e}, nil } return nil, err @@ -7265,6 +8593,10 @@ func init() { err = result.ClientVersionNotSupportedError return } + if result.AccessDeniedError != nil { + err = result.AccessDeniedError + return + } if result.Success != nil { success = result.Success @@ -7289,6 +8621,7 @@ type WorkflowService_ListDomains_Result struct { EntityNotExistError *shared.EntityNotExistsError `json:"entityNotExistError,omitempty"` ServiceBusyError *shared.ServiceBusyError `json:"serviceBusyError,omitempty"` ClientVersionNotSupportedError *shared.ClientVersionNotSupportedError `json:"clientVersionNotSupportedError,omitempty"` + AccessDeniedError *shared.AccessDeniedError `json:"accessDeniedError,omitempty"` } // ToWire translates a WorkflowService_ListDomains_Result struct into a Thrift-level intermediate @@ -7308,7 +8641,7 @@ type WorkflowService_ListDomains_Result struct { // } func (v *WorkflowService_ListDomains_Result) ToWire() (wire.Value, error) { var ( - fields [5]wire.Field + fields [6]wire.Field i int = 0 w wire.Value err error @@ -7354,6 +8687,14 @@ func (v *WorkflowService_ListDomains_Result) ToWire() (wire.Value, error) { fields[i] = wire.Field{ID: 5, Value: w} i++ } + if v.AccessDeniedError != nil { + w, err = v.AccessDeniedError.ToWire() + if err != nil { + return w, err + } + fields[i] = wire.Field{ID: 6, Value: w} + i++ + } if i != 1 { return wire.Value{}, fmt.Errorf("WorkflowService_ListDomains_Result should have exactly one field: got %v fields", i) @@ -7429,6 +8770,14 @@ func (v *WorkflowService_ListDomains_Result) FromWire(w wire.Value) error { return err } + } + case 6: + if field.Value.Type() == wire.TStruct { + v.AccessDeniedError, err = _AccessDeniedError_Read(field.Value) + if err != nil { + return err + } + } } } @@ -7449,6 +8798,9 @@ func (v *WorkflowService_ListDomains_Result) FromWire(w wire.Value) error { if v.ClientVersionNotSupportedError != nil { count++ } + if v.AccessDeniedError != nil { + count++ + } if count != 1 { return fmt.Errorf("WorkflowService_ListDomains_Result should have exactly one field: got %v fields", count) } @@ -7463,7 +8815,7 @@ func (v *WorkflowService_ListDomains_Result) String() string { return "" } - var fields [5]string + var fields [6]string i := 0 if v.Success != nil { fields[i] = fmt.Sprintf("Success: %v", v.Success) @@ -7485,6 +8837,10 @@ func (v *WorkflowService_ListDomains_Result) String() string { fields[i] = fmt.Sprintf("ClientVersionNotSupportedError: %v", v.ClientVersionNotSupportedError) i++ } + if v.AccessDeniedError != nil { + fields[i] = fmt.Sprintf("AccessDeniedError: %v", v.AccessDeniedError) + i++ + } return fmt.Sprintf("WorkflowService_ListDomains_Result{%v}", strings.Join(fields[:i], ", ")) } @@ -7514,6 +8870,9 @@ func (v *WorkflowService_ListDomains_Result) Equals(rhs *WorkflowService_ListDom if !((v.ClientVersionNotSupportedError == nil && rhs.ClientVersionNotSupportedError == nil) || (v.ClientVersionNotSupportedError != nil && rhs.ClientVersionNotSupportedError != nil && v.ClientVersionNotSupportedError.Equals(rhs.ClientVersionNotSupportedError))) { return false } + if !((v.AccessDeniedError == nil && rhs.AccessDeniedError == nil) || (v.AccessDeniedError != nil && rhs.AccessDeniedError != nil && v.AccessDeniedError.Equals(rhs.AccessDeniedError))) { + return false + } return true } @@ -7539,6 +8898,9 @@ func (v *WorkflowService_ListDomains_Result) MarshalLogObject(enc zapcore.Object if v.ClientVersionNotSupportedError != nil { err = multierr.Append(err, enc.AddObject("clientVersionNotSupportedError", v.ClientVersionNotSupportedError)) } + if v.AccessDeniedError != nil { + err = multierr.Append(err, enc.AddObject("accessDeniedError", v.AccessDeniedError)) + } return err } @@ -7617,6 +8979,21 @@ func (v *WorkflowService_ListDomains_Result) IsSetClientVersionNotSupportedError return v != nil && v.ClientVersionNotSupportedError != nil } +// GetAccessDeniedError returns the value of AccessDeniedError if it is set or its +// zero value if it is unset. +func (v *WorkflowService_ListDomains_Result) GetAccessDeniedError() (o *shared.AccessDeniedError) { + if v != nil && v.AccessDeniedError != nil { + return v.AccessDeniedError + } + + return +} + +// IsSetAccessDeniedError returns true if AccessDeniedError is not nil. +func (v *WorkflowService_ListDomains_Result) IsSetAccessDeniedError() bool { + return v != nil && v.AccessDeniedError != nil +} + // MethodName returns the name of the Thrift function as specified in // the IDL, for which this struct represent the result. // @@ -7858,6 +9235,8 @@ func init() { return true case *shared.ClientVersionNotSupportedError: return true + case *shared.AccessDeniedError: + return true default: return false } @@ -7894,6 +9273,11 @@ func init() { return nil, errors.New("WrapResponse received non-nil error type with nil value for WorkflowService_ListOpenWorkflowExecutions_Result.ClientVersionNotSupportedError") } return &WorkflowService_ListOpenWorkflowExecutions_Result{ClientVersionNotSupportedError: e}, nil + case *shared.AccessDeniedError: + if e == nil { + return nil, errors.New("WrapResponse received non-nil error type with nil value for WorkflowService_ListOpenWorkflowExecutions_Result.AccessDeniedError") + } + return &WorkflowService_ListOpenWorkflowExecutions_Result{AccessDeniedError: e}, nil } return nil, err @@ -7919,6 +9303,10 @@ func init() { err = result.ClientVersionNotSupportedError return } + if result.AccessDeniedError != nil { + err = result.AccessDeniedError + return + } if result.Success != nil { success = result.Success @@ -7944,6 +9332,7 @@ type WorkflowService_ListOpenWorkflowExecutions_Result struct { ServiceBusyError *shared.ServiceBusyError `json:"serviceBusyError,omitempty"` LimitExceededError *shared.LimitExceededError `json:"limitExceededError,omitempty"` ClientVersionNotSupportedError *shared.ClientVersionNotSupportedError `json:"clientVersionNotSupportedError,omitempty"` + AccessDeniedError *shared.AccessDeniedError `json:"accessDeniedError,omitempty"` } // ToWire translates a WorkflowService_ListOpenWorkflowExecutions_Result struct into a Thrift-level intermediate @@ -7963,7 +9352,7 @@ type WorkflowService_ListOpenWorkflowExecutions_Result struct { // } func (v *WorkflowService_ListOpenWorkflowExecutions_Result) ToWire() (wire.Value, error) { var ( - fields [6]wire.Field + fields [7]wire.Field i int = 0 w wire.Value err error @@ -8017,6 +9406,14 @@ func (v *WorkflowService_ListOpenWorkflowExecutions_Result) ToWire() (wire.Value fields[i] = wire.Field{ID: 6, Value: w} i++ } + if v.AccessDeniedError != nil { + w, err = v.AccessDeniedError.ToWire() + if err != nil { + return w, err + } + fields[i] = wire.Field{ID: 7, Value: w} + i++ + } if i != 1 { return wire.Value{}, fmt.Errorf("WorkflowService_ListOpenWorkflowExecutions_Result should have exactly one field: got %v fields", i) @@ -8100,6 +9497,14 @@ func (v *WorkflowService_ListOpenWorkflowExecutions_Result) FromWire(w wire.Valu return err } + } + case 7: + if field.Value.Type() == wire.TStruct { + v.AccessDeniedError, err = _AccessDeniedError_Read(field.Value) + if err != nil { + return err + } + } } } @@ -8123,6 +9528,9 @@ func (v *WorkflowService_ListOpenWorkflowExecutions_Result) FromWire(w wire.Valu if v.ClientVersionNotSupportedError != nil { count++ } + if v.AccessDeniedError != nil { + count++ + } if count != 1 { return fmt.Errorf("WorkflowService_ListOpenWorkflowExecutions_Result should have exactly one field: got %v fields", count) } @@ -8137,7 +9545,7 @@ func (v *WorkflowService_ListOpenWorkflowExecutions_Result) String() string { return "" } - var fields [6]string + var fields [7]string i := 0 if v.Success != nil { fields[i] = fmt.Sprintf("Success: %v", v.Success) @@ -8163,6 +9571,10 @@ func (v *WorkflowService_ListOpenWorkflowExecutions_Result) String() string { fields[i] = fmt.Sprintf("ClientVersionNotSupportedError: %v", v.ClientVersionNotSupportedError) i++ } + if v.AccessDeniedError != nil { + fields[i] = fmt.Sprintf("AccessDeniedError: %v", v.AccessDeniedError) + i++ + } return fmt.Sprintf("WorkflowService_ListOpenWorkflowExecutions_Result{%v}", strings.Join(fields[:i], ", ")) } @@ -8195,6 +9607,9 @@ func (v *WorkflowService_ListOpenWorkflowExecutions_Result) Equals(rhs *Workflow if !((v.ClientVersionNotSupportedError == nil && rhs.ClientVersionNotSupportedError == nil) || (v.ClientVersionNotSupportedError != nil && rhs.ClientVersionNotSupportedError != nil && v.ClientVersionNotSupportedError.Equals(rhs.ClientVersionNotSupportedError))) { return false } + if !((v.AccessDeniedError == nil && rhs.AccessDeniedError == nil) || (v.AccessDeniedError != nil && rhs.AccessDeniedError != nil && v.AccessDeniedError.Equals(rhs.AccessDeniedError))) { + return false + } return true } @@ -8223,6 +9638,9 @@ func (v *WorkflowService_ListOpenWorkflowExecutions_Result) MarshalLogObject(enc if v.ClientVersionNotSupportedError != nil { err = multierr.Append(err, enc.AddObject("clientVersionNotSupportedError", v.ClientVersionNotSupportedError)) } + if v.AccessDeniedError != nil { + err = multierr.Append(err, enc.AddObject("accessDeniedError", v.AccessDeniedError)) + } return err } @@ -8316,6 +9734,21 @@ func (v *WorkflowService_ListOpenWorkflowExecutions_Result) IsSetClientVersionNo return v != nil && v.ClientVersionNotSupportedError != nil } +// GetAccessDeniedError returns the value of AccessDeniedError if it is set or its +// zero value if it is unset. +func (v *WorkflowService_ListOpenWorkflowExecutions_Result) GetAccessDeniedError() (o *shared.AccessDeniedError) { + if v != nil && v.AccessDeniedError != nil { + return v.AccessDeniedError + } + + return +} + +// IsSetAccessDeniedError returns true if AccessDeniedError is not nil. +func (v *WorkflowService_ListOpenWorkflowExecutions_Result) IsSetAccessDeniedError() bool { + return v != nil && v.AccessDeniedError != nil +} + // MethodName returns the name of the Thrift function as specified in // the IDL, for which this struct represent the result. // @@ -8555,6 +9988,8 @@ func init() { return true case *shared.ServiceBusyError: return true + case *shared.AccessDeniedError: + return true default: return false } @@ -8586,6 +10021,11 @@ func init() { return nil, errors.New("WrapResponse received non-nil error type with nil value for WorkflowService_ListTaskListPartitions_Result.ServiceBusyError") } return &WorkflowService_ListTaskListPartitions_Result{ServiceBusyError: e}, nil + case *shared.AccessDeniedError: + if e == nil { + return nil, errors.New("WrapResponse received non-nil error type with nil value for WorkflowService_ListTaskListPartitions_Result.AccessDeniedError") + } + return &WorkflowService_ListTaskListPartitions_Result{AccessDeniedError: e}, nil } return nil, err @@ -8607,6 +10047,10 @@ func init() { err = result.ServiceBusyError return } + if result.AccessDeniedError != nil { + err = result.AccessDeniedError + return + } if result.Success != nil { success = result.Success @@ -8631,6 +10075,7 @@ type WorkflowService_ListTaskListPartitions_Result struct { EntityNotExistError *shared.EntityNotExistsError `json:"entityNotExistError,omitempty"` LimitExceededError *shared.LimitExceededError `json:"limitExceededError,omitempty"` ServiceBusyError *shared.ServiceBusyError `json:"serviceBusyError,omitempty"` + AccessDeniedError *shared.AccessDeniedError `json:"accessDeniedError,omitempty"` } // ToWire translates a WorkflowService_ListTaskListPartitions_Result struct into a Thrift-level intermediate @@ -8650,7 +10095,7 @@ type WorkflowService_ListTaskListPartitions_Result struct { // } func (v *WorkflowService_ListTaskListPartitions_Result) ToWire() (wire.Value, error) { var ( - fields [5]wire.Field + fields [6]wire.Field i int = 0 w wire.Value err error @@ -8696,6 +10141,14 @@ func (v *WorkflowService_ListTaskListPartitions_Result) ToWire() (wire.Value, er fields[i] = wire.Field{ID: 5, Value: w} i++ } + if v.AccessDeniedError != nil { + w, err = v.AccessDeniedError.ToWire() + if err != nil { + return w, err + } + fields[i] = wire.Field{ID: 6, Value: w} + i++ + } if i != 1 { return wire.Value{}, fmt.Errorf("WorkflowService_ListTaskListPartitions_Result should have exactly one field: got %v fields", i) @@ -8771,6 +10224,14 @@ func (v *WorkflowService_ListTaskListPartitions_Result) FromWire(w wire.Value) e return err } + } + case 6: + if field.Value.Type() == wire.TStruct { + v.AccessDeniedError, err = _AccessDeniedError_Read(field.Value) + if err != nil { + return err + } + } } } @@ -8791,6 +10252,9 @@ func (v *WorkflowService_ListTaskListPartitions_Result) FromWire(w wire.Value) e if v.ServiceBusyError != nil { count++ } + if v.AccessDeniedError != nil { + count++ + } if count != 1 { return fmt.Errorf("WorkflowService_ListTaskListPartitions_Result should have exactly one field: got %v fields", count) } @@ -8805,7 +10269,7 @@ func (v *WorkflowService_ListTaskListPartitions_Result) String() string { return "" } - var fields [5]string + var fields [6]string i := 0 if v.Success != nil { fields[i] = fmt.Sprintf("Success: %v", v.Success) @@ -8827,6 +10291,10 @@ func (v *WorkflowService_ListTaskListPartitions_Result) String() string { fields[i] = fmt.Sprintf("ServiceBusyError: %v", v.ServiceBusyError) i++ } + if v.AccessDeniedError != nil { + fields[i] = fmt.Sprintf("AccessDeniedError: %v", v.AccessDeniedError) + i++ + } return fmt.Sprintf("WorkflowService_ListTaskListPartitions_Result{%v}", strings.Join(fields[:i], ", ")) } @@ -8856,6 +10324,9 @@ func (v *WorkflowService_ListTaskListPartitions_Result) Equals(rhs *WorkflowServ if !((v.ServiceBusyError == nil && rhs.ServiceBusyError == nil) || (v.ServiceBusyError != nil && rhs.ServiceBusyError != nil && v.ServiceBusyError.Equals(rhs.ServiceBusyError))) { return false } + if !((v.AccessDeniedError == nil && rhs.AccessDeniedError == nil) || (v.AccessDeniedError != nil && rhs.AccessDeniedError != nil && v.AccessDeniedError.Equals(rhs.AccessDeniedError))) { + return false + } return true } @@ -8881,6 +10352,9 @@ func (v *WorkflowService_ListTaskListPartitions_Result) MarshalLogObject(enc zap if v.ServiceBusyError != nil { err = multierr.Append(err, enc.AddObject("serviceBusyError", v.ServiceBusyError)) } + if v.AccessDeniedError != nil { + err = multierr.Append(err, enc.AddObject("accessDeniedError", v.AccessDeniedError)) + } return err } @@ -8959,6 +10433,21 @@ func (v *WorkflowService_ListTaskListPartitions_Result) IsSetServiceBusyError() return v != nil && v.ServiceBusyError != nil } +// GetAccessDeniedError returns the value of AccessDeniedError if it is set or its +// zero value if it is unset. +func (v *WorkflowService_ListTaskListPartitions_Result) GetAccessDeniedError() (o *shared.AccessDeniedError) { + if v != nil && v.AccessDeniedError != nil { + return v.AccessDeniedError + } + + return +} + +// IsSetAccessDeniedError returns true if AccessDeniedError is not nil. +func (v *WorkflowService_ListTaskListPartitions_Result) IsSetAccessDeniedError() bool { + return v != nil && v.AccessDeniedError != nil +} + // MethodName returns the name of the Thrift function as specified in // the IDL, for which this struct represent the result. // @@ -9198,6 +10687,8 @@ func init() { return true case *shared.ClientVersionNotSupportedError: return true + case *shared.AccessDeniedError: + return true default: return false } @@ -9229,6 +10720,11 @@ func init() { return nil, errors.New("WrapResponse received non-nil error type with nil value for WorkflowService_ListWorkflowExecutions_Result.ClientVersionNotSupportedError") } return &WorkflowService_ListWorkflowExecutions_Result{ClientVersionNotSupportedError: e}, nil + case *shared.AccessDeniedError: + if e == nil { + return nil, errors.New("WrapResponse received non-nil error type with nil value for WorkflowService_ListWorkflowExecutions_Result.AccessDeniedError") + } + return &WorkflowService_ListWorkflowExecutions_Result{AccessDeniedError: e}, nil } return nil, err @@ -9250,6 +10746,10 @@ func init() { err = result.ClientVersionNotSupportedError return } + if result.AccessDeniedError != nil { + err = result.AccessDeniedError + return + } if result.Success != nil { success = result.Success @@ -9274,6 +10774,7 @@ type WorkflowService_ListWorkflowExecutions_Result struct { EntityNotExistError *shared.EntityNotExistsError `json:"entityNotExistError,omitempty"` ServiceBusyError *shared.ServiceBusyError `json:"serviceBusyError,omitempty"` ClientVersionNotSupportedError *shared.ClientVersionNotSupportedError `json:"clientVersionNotSupportedError,omitempty"` + AccessDeniedError *shared.AccessDeniedError `json:"accessDeniedError,omitempty"` } // ToWire translates a WorkflowService_ListWorkflowExecutions_Result struct into a Thrift-level intermediate @@ -9293,7 +10794,7 @@ type WorkflowService_ListWorkflowExecutions_Result struct { // } func (v *WorkflowService_ListWorkflowExecutions_Result) ToWire() (wire.Value, error) { var ( - fields [5]wire.Field + fields [6]wire.Field i int = 0 w wire.Value err error @@ -9339,6 +10840,14 @@ func (v *WorkflowService_ListWorkflowExecutions_Result) ToWire() (wire.Value, er fields[i] = wire.Field{ID: 5, Value: w} i++ } + if v.AccessDeniedError != nil { + w, err = v.AccessDeniedError.ToWire() + if err != nil { + return w, err + } + fields[i] = wire.Field{ID: 6, Value: w} + i++ + } if i != 1 { return wire.Value{}, fmt.Errorf("WorkflowService_ListWorkflowExecutions_Result should have exactly one field: got %v fields", i) @@ -9414,6 +10923,14 @@ func (v *WorkflowService_ListWorkflowExecutions_Result) FromWire(w wire.Value) e return err } + } + case 6: + if field.Value.Type() == wire.TStruct { + v.AccessDeniedError, err = _AccessDeniedError_Read(field.Value) + if err != nil { + return err + } + } } } @@ -9434,6 +10951,9 @@ func (v *WorkflowService_ListWorkflowExecutions_Result) FromWire(w wire.Value) e if v.ClientVersionNotSupportedError != nil { count++ } + if v.AccessDeniedError != nil { + count++ + } if count != 1 { return fmt.Errorf("WorkflowService_ListWorkflowExecutions_Result should have exactly one field: got %v fields", count) } @@ -9448,7 +10968,7 @@ func (v *WorkflowService_ListWorkflowExecutions_Result) String() string { return "" } - var fields [5]string + var fields [6]string i := 0 if v.Success != nil { fields[i] = fmt.Sprintf("Success: %v", v.Success) @@ -9470,6 +10990,10 @@ func (v *WorkflowService_ListWorkflowExecutions_Result) String() string { fields[i] = fmt.Sprintf("ClientVersionNotSupportedError: %v", v.ClientVersionNotSupportedError) i++ } + if v.AccessDeniedError != nil { + fields[i] = fmt.Sprintf("AccessDeniedError: %v", v.AccessDeniedError) + i++ + } return fmt.Sprintf("WorkflowService_ListWorkflowExecutions_Result{%v}", strings.Join(fields[:i], ", ")) } @@ -9499,6 +11023,9 @@ func (v *WorkflowService_ListWorkflowExecutions_Result) Equals(rhs *WorkflowServ if !((v.ClientVersionNotSupportedError == nil && rhs.ClientVersionNotSupportedError == nil) || (v.ClientVersionNotSupportedError != nil && rhs.ClientVersionNotSupportedError != nil && v.ClientVersionNotSupportedError.Equals(rhs.ClientVersionNotSupportedError))) { return false } + if !((v.AccessDeniedError == nil && rhs.AccessDeniedError == nil) || (v.AccessDeniedError != nil && rhs.AccessDeniedError != nil && v.AccessDeniedError.Equals(rhs.AccessDeniedError))) { + return false + } return true } @@ -9524,6 +11051,9 @@ func (v *WorkflowService_ListWorkflowExecutions_Result) MarshalLogObject(enc zap if v.ClientVersionNotSupportedError != nil { err = multierr.Append(err, enc.AddObject("clientVersionNotSupportedError", v.ClientVersionNotSupportedError)) } + if v.AccessDeniedError != nil { + err = multierr.Append(err, enc.AddObject("accessDeniedError", v.AccessDeniedError)) + } return err } @@ -9602,6 +11132,21 @@ func (v *WorkflowService_ListWorkflowExecutions_Result) IsSetClientVersionNotSup return v != nil && v.ClientVersionNotSupportedError != nil } +// GetAccessDeniedError returns the value of AccessDeniedError if it is set or its +// zero value if it is unset. +func (v *WorkflowService_ListWorkflowExecutions_Result) GetAccessDeniedError() (o *shared.AccessDeniedError) { + if v != nil && v.AccessDeniedError != nil { + return v.AccessDeniedError + } + + return +} + +// IsSetAccessDeniedError returns true if AccessDeniedError is not nil. +func (v *WorkflowService_ListWorkflowExecutions_Result) IsSetAccessDeniedError() bool { + return v != nil && v.AccessDeniedError != nil +} + // MethodName returns the name of the Thrift function as specified in // the IDL, for which this struct represent the result. // @@ -9845,6 +11390,8 @@ func init() { return true case *shared.ClientVersionNotSupportedError: return true + case *shared.AccessDeniedError: + return true default: return false } @@ -9886,6 +11433,11 @@ func init() { return nil, errors.New("WrapResponse received non-nil error type with nil value for WorkflowService_PollForActivityTask_Result.ClientVersionNotSupportedError") } return &WorkflowService_PollForActivityTask_Result{ClientVersionNotSupportedError: e}, nil + case *shared.AccessDeniedError: + if e == nil { + return nil, errors.New("WrapResponse received non-nil error type with nil value for WorkflowService_PollForActivityTask_Result.AccessDeniedError") + } + return &WorkflowService_PollForActivityTask_Result{AccessDeniedError: e}, nil } return nil, err @@ -9915,6 +11467,10 @@ func init() { err = result.ClientVersionNotSupportedError return } + if result.AccessDeniedError != nil { + err = result.AccessDeniedError + return + } if result.Success != nil { success = result.Success @@ -9941,6 +11497,7 @@ type WorkflowService_PollForActivityTask_Result struct { EntityNotExistError *shared.EntityNotExistsError `json:"entityNotExistError,omitempty"` DomainNotActiveError *shared.DomainNotActiveError `json:"domainNotActiveError,omitempty"` ClientVersionNotSupportedError *shared.ClientVersionNotSupportedError `json:"clientVersionNotSupportedError,omitempty"` + AccessDeniedError *shared.AccessDeniedError `json:"accessDeniedError,omitempty"` } // ToWire translates a WorkflowService_PollForActivityTask_Result struct into a Thrift-level intermediate @@ -9960,7 +11517,7 @@ type WorkflowService_PollForActivityTask_Result struct { // } func (v *WorkflowService_PollForActivityTask_Result) ToWire() (wire.Value, error) { var ( - fields [7]wire.Field + fields [8]wire.Field i int = 0 w wire.Value err error @@ -10022,6 +11579,14 @@ func (v *WorkflowService_PollForActivityTask_Result) ToWire() (wire.Value, error fields[i] = wire.Field{ID: 7, Value: w} i++ } + if v.AccessDeniedError != nil { + w, err = v.AccessDeniedError.ToWire() + if err != nil { + return w, err + } + fields[i] = wire.Field{ID: 8, Value: w} + i++ + } if i != 1 { return wire.Value{}, fmt.Errorf("WorkflowService_PollForActivityTask_Result should have exactly one field: got %v fields", i) @@ -10113,6 +11678,14 @@ func (v *WorkflowService_PollForActivityTask_Result) FromWire(w wire.Value) erro return err } + } + case 8: + if field.Value.Type() == wire.TStruct { + v.AccessDeniedError, err = _AccessDeniedError_Read(field.Value) + if err != nil { + return err + } + } } } @@ -10139,6 +11712,9 @@ func (v *WorkflowService_PollForActivityTask_Result) FromWire(w wire.Value) erro if v.ClientVersionNotSupportedError != nil { count++ } + if v.AccessDeniedError != nil { + count++ + } if count != 1 { return fmt.Errorf("WorkflowService_PollForActivityTask_Result should have exactly one field: got %v fields", count) } @@ -10153,7 +11729,7 @@ func (v *WorkflowService_PollForActivityTask_Result) String() string { return "" } - var fields [7]string + var fields [8]string i := 0 if v.Success != nil { fields[i] = fmt.Sprintf("Success: %v", v.Success) @@ -10183,6 +11759,10 @@ func (v *WorkflowService_PollForActivityTask_Result) String() string { fields[i] = fmt.Sprintf("ClientVersionNotSupportedError: %v", v.ClientVersionNotSupportedError) i++ } + if v.AccessDeniedError != nil { + fields[i] = fmt.Sprintf("AccessDeniedError: %v", v.AccessDeniedError) + i++ + } return fmt.Sprintf("WorkflowService_PollForActivityTask_Result{%v}", strings.Join(fields[:i], ", ")) } @@ -10218,6 +11798,9 @@ func (v *WorkflowService_PollForActivityTask_Result) Equals(rhs *WorkflowService if !((v.ClientVersionNotSupportedError == nil && rhs.ClientVersionNotSupportedError == nil) || (v.ClientVersionNotSupportedError != nil && rhs.ClientVersionNotSupportedError != nil && v.ClientVersionNotSupportedError.Equals(rhs.ClientVersionNotSupportedError))) { return false } + if !((v.AccessDeniedError == nil && rhs.AccessDeniedError == nil) || (v.AccessDeniedError != nil && rhs.AccessDeniedError != nil && v.AccessDeniedError.Equals(rhs.AccessDeniedError))) { + return false + } return true } @@ -10249,6 +11832,9 @@ func (v *WorkflowService_PollForActivityTask_Result) MarshalLogObject(enc zapcor if v.ClientVersionNotSupportedError != nil { err = multierr.Append(err, enc.AddObject("clientVersionNotSupportedError", v.ClientVersionNotSupportedError)) } + if v.AccessDeniedError != nil { + err = multierr.Append(err, enc.AddObject("accessDeniedError", v.AccessDeniedError)) + } return err } @@ -10357,6 +11943,21 @@ func (v *WorkflowService_PollForActivityTask_Result) IsSetClientVersionNotSuppor return v != nil && v.ClientVersionNotSupportedError != nil } +// GetAccessDeniedError returns the value of AccessDeniedError if it is set or its +// zero value if it is unset. +func (v *WorkflowService_PollForActivityTask_Result) GetAccessDeniedError() (o *shared.AccessDeniedError) { + if v != nil && v.AccessDeniedError != nil { + return v.AccessDeniedError + } + + return +} + +// IsSetAccessDeniedError returns true if AccessDeniedError is not nil. +func (v *WorkflowService_PollForActivityTask_Result) IsSetAccessDeniedError() bool { + return v != nil && v.AccessDeniedError != nil +} + // MethodName returns the name of the Thrift function as specified in // the IDL, for which this struct represent the result. // @@ -10600,6 +12201,8 @@ func init() { return true case *shared.ClientVersionNotSupportedError: return true + case *shared.AccessDeniedError: + return true default: return false } @@ -10641,6 +12244,11 @@ func init() { return nil, errors.New("WrapResponse received non-nil error type with nil value for WorkflowService_PollForDecisionTask_Result.ClientVersionNotSupportedError") } return &WorkflowService_PollForDecisionTask_Result{ClientVersionNotSupportedError: e}, nil + case *shared.AccessDeniedError: + if e == nil { + return nil, errors.New("WrapResponse received non-nil error type with nil value for WorkflowService_PollForDecisionTask_Result.AccessDeniedError") + } + return &WorkflowService_PollForDecisionTask_Result{AccessDeniedError: e}, nil } return nil, err @@ -10670,6 +12278,10 @@ func init() { err = result.ClientVersionNotSupportedError return } + if result.AccessDeniedError != nil { + err = result.AccessDeniedError + return + } if result.Success != nil { success = result.Success @@ -10696,6 +12308,7 @@ type WorkflowService_PollForDecisionTask_Result struct { EntityNotExistError *shared.EntityNotExistsError `json:"entityNotExistError,omitempty"` DomainNotActiveError *shared.DomainNotActiveError `json:"domainNotActiveError,omitempty"` ClientVersionNotSupportedError *shared.ClientVersionNotSupportedError `json:"clientVersionNotSupportedError,omitempty"` + AccessDeniedError *shared.AccessDeniedError `json:"accessDeniedError,omitempty"` } // ToWire translates a WorkflowService_PollForDecisionTask_Result struct into a Thrift-level intermediate @@ -10715,7 +12328,7 @@ type WorkflowService_PollForDecisionTask_Result struct { // } func (v *WorkflowService_PollForDecisionTask_Result) ToWire() (wire.Value, error) { var ( - fields [7]wire.Field + fields [8]wire.Field i int = 0 w wire.Value err error @@ -10777,6 +12390,14 @@ func (v *WorkflowService_PollForDecisionTask_Result) ToWire() (wire.Value, error fields[i] = wire.Field{ID: 7, Value: w} i++ } + if v.AccessDeniedError != nil { + w, err = v.AccessDeniedError.ToWire() + if err != nil { + return w, err + } + fields[i] = wire.Field{ID: 8, Value: w} + i++ + } if i != 1 { return wire.Value{}, fmt.Errorf("WorkflowService_PollForDecisionTask_Result should have exactly one field: got %v fields", i) @@ -10868,6 +12489,14 @@ func (v *WorkflowService_PollForDecisionTask_Result) FromWire(w wire.Value) erro return err } + } + case 8: + if field.Value.Type() == wire.TStruct { + v.AccessDeniedError, err = _AccessDeniedError_Read(field.Value) + if err != nil { + return err + } + } } } @@ -10894,6 +12523,9 @@ func (v *WorkflowService_PollForDecisionTask_Result) FromWire(w wire.Value) erro if v.ClientVersionNotSupportedError != nil { count++ } + if v.AccessDeniedError != nil { + count++ + } if count != 1 { return fmt.Errorf("WorkflowService_PollForDecisionTask_Result should have exactly one field: got %v fields", count) } @@ -10908,7 +12540,7 @@ func (v *WorkflowService_PollForDecisionTask_Result) String() string { return "" } - var fields [7]string + var fields [8]string i := 0 if v.Success != nil { fields[i] = fmt.Sprintf("Success: %v", v.Success) @@ -10938,6 +12570,10 @@ func (v *WorkflowService_PollForDecisionTask_Result) String() string { fields[i] = fmt.Sprintf("ClientVersionNotSupportedError: %v", v.ClientVersionNotSupportedError) i++ } + if v.AccessDeniedError != nil { + fields[i] = fmt.Sprintf("AccessDeniedError: %v", v.AccessDeniedError) + i++ + } return fmt.Sprintf("WorkflowService_PollForDecisionTask_Result{%v}", strings.Join(fields[:i], ", ")) } @@ -10973,6 +12609,9 @@ func (v *WorkflowService_PollForDecisionTask_Result) Equals(rhs *WorkflowService if !((v.ClientVersionNotSupportedError == nil && rhs.ClientVersionNotSupportedError == nil) || (v.ClientVersionNotSupportedError != nil && rhs.ClientVersionNotSupportedError != nil && v.ClientVersionNotSupportedError.Equals(rhs.ClientVersionNotSupportedError))) { return false } + if !((v.AccessDeniedError == nil && rhs.AccessDeniedError == nil) || (v.AccessDeniedError != nil && rhs.AccessDeniedError != nil && v.AccessDeniedError.Equals(rhs.AccessDeniedError))) { + return false + } return true } @@ -11004,6 +12643,9 @@ func (v *WorkflowService_PollForDecisionTask_Result) MarshalLogObject(enc zapcor if v.ClientVersionNotSupportedError != nil { err = multierr.Append(err, enc.AddObject("clientVersionNotSupportedError", v.ClientVersionNotSupportedError)) } + if v.AccessDeniedError != nil { + err = multierr.Append(err, enc.AddObject("accessDeniedError", v.AccessDeniedError)) + } return err } @@ -11112,6 +12754,21 @@ func (v *WorkflowService_PollForDecisionTask_Result) IsSetClientVersionNotSuppor return v != nil && v.ClientVersionNotSupportedError != nil } +// GetAccessDeniedError returns the value of AccessDeniedError if it is set or its +// zero value if it is unset. +func (v *WorkflowService_PollForDecisionTask_Result) GetAccessDeniedError() (o *shared.AccessDeniedError) { + if v != nil && v.AccessDeniedError != nil { + return v.AccessDeniedError + } + + return +} + +// IsSetAccessDeniedError returns true if AccessDeniedError is not nil. +func (v *WorkflowService_PollForDecisionTask_Result) IsSetAccessDeniedError() bool { + return v != nil && v.AccessDeniedError != nil +} + // MethodName returns the name of the Thrift function as specified in // the IDL, for which this struct represent the result. // @@ -11355,6 +13012,8 @@ func init() { return true case *shared.ClientVersionNotSupportedError: return true + case *shared.AccessDeniedError: + return true default: return false } @@ -11396,6 +13055,11 @@ func init() { return nil, errors.New("WrapResponse received non-nil error type with nil value for WorkflowService_QueryWorkflow_Result.ClientVersionNotSupportedError") } return &WorkflowService_QueryWorkflow_Result{ClientVersionNotSupportedError: e}, nil + case *shared.AccessDeniedError: + if e == nil { + return nil, errors.New("WrapResponse received non-nil error type with nil value for WorkflowService_QueryWorkflow_Result.AccessDeniedError") + } + return &WorkflowService_QueryWorkflow_Result{AccessDeniedError: e}, nil } return nil, err @@ -11425,6 +13089,10 @@ func init() { err = result.ClientVersionNotSupportedError return } + if result.AccessDeniedError != nil { + err = result.AccessDeniedError + return + } if result.Success != nil { success = result.Success @@ -11451,6 +13119,7 @@ type WorkflowService_QueryWorkflow_Result struct { LimitExceededError *shared.LimitExceededError `json:"limitExceededError,omitempty"` ServiceBusyError *shared.ServiceBusyError `json:"serviceBusyError,omitempty"` ClientVersionNotSupportedError *shared.ClientVersionNotSupportedError `json:"clientVersionNotSupportedError,omitempty"` + AccessDeniedError *shared.AccessDeniedError `json:"accessDeniedError,omitempty"` } // ToWire translates a WorkflowService_QueryWorkflow_Result struct into a Thrift-level intermediate @@ -11470,7 +13139,7 @@ type WorkflowService_QueryWorkflow_Result struct { // } func (v *WorkflowService_QueryWorkflow_Result) ToWire() (wire.Value, error) { var ( - fields [7]wire.Field + fields [8]wire.Field i int = 0 w wire.Value err error @@ -11532,6 +13201,14 @@ func (v *WorkflowService_QueryWorkflow_Result) ToWire() (wire.Value, error) { fields[i] = wire.Field{ID: 7, Value: w} i++ } + if v.AccessDeniedError != nil { + w, err = v.AccessDeniedError.ToWire() + if err != nil { + return w, err + } + fields[i] = wire.Field{ID: 8, Value: w} + i++ + } if i != 1 { return wire.Value{}, fmt.Errorf("WorkflowService_QueryWorkflow_Result should have exactly one field: got %v fields", i) @@ -11629,6 +13306,14 @@ func (v *WorkflowService_QueryWorkflow_Result) FromWire(w wire.Value) error { return err } + } + case 8: + if field.Value.Type() == wire.TStruct { + v.AccessDeniedError, err = _AccessDeniedError_Read(field.Value) + if err != nil { + return err + } + } } } @@ -11655,6 +13340,9 @@ func (v *WorkflowService_QueryWorkflow_Result) FromWire(w wire.Value) error { if v.ClientVersionNotSupportedError != nil { count++ } + if v.AccessDeniedError != nil { + count++ + } if count != 1 { return fmt.Errorf("WorkflowService_QueryWorkflow_Result should have exactly one field: got %v fields", count) } @@ -11669,7 +13357,7 @@ func (v *WorkflowService_QueryWorkflow_Result) String() string { return "" } - var fields [7]string + var fields [8]string i := 0 if v.Success != nil { fields[i] = fmt.Sprintf("Success: %v", v.Success) @@ -11699,6 +13387,10 @@ func (v *WorkflowService_QueryWorkflow_Result) String() string { fields[i] = fmt.Sprintf("ClientVersionNotSupportedError: %v", v.ClientVersionNotSupportedError) i++ } + if v.AccessDeniedError != nil { + fields[i] = fmt.Sprintf("AccessDeniedError: %v", v.AccessDeniedError) + i++ + } return fmt.Sprintf("WorkflowService_QueryWorkflow_Result{%v}", strings.Join(fields[:i], ", ")) } @@ -11734,6 +13426,9 @@ func (v *WorkflowService_QueryWorkflow_Result) Equals(rhs *WorkflowService_Query if !((v.ClientVersionNotSupportedError == nil && rhs.ClientVersionNotSupportedError == nil) || (v.ClientVersionNotSupportedError != nil && rhs.ClientVersionNotSupportedError != nil && v.ClientVersionNotSupportedError.Equals(rhs.ClientVersionNotSupportedError))) { return false } + if !((v.AccessDeniedError == nil && rhs.AccessDeniedError == nil) || (v.AccessDeniedError != nil && rhs.AccessDeniedError != nil && v.AccessDeniedError.Equals(rhs.AccessDeniedError))) { + return false + } return true } @@ -11765,6 +13460,9 @@ func (v *WorkflowService_QueryWorkflow_Result) MarshalLogObject(enc zapcore.Obje if v.ClientVersionNotSupportedError != nil { err = multierr.Append(err, enc.AddObject("clientVersionNotSupportedError", v.ClientVersionNotSupportedError)) } + if v.AccessDeniedError != nil { + err = multierr.Append(err, enc.AddObject("accessDeniedError", v.AccessDeniedError)) + } return err } @@ -11873,6 +13571,21 @@ func (v *WorkflowService_QueryWorkflow_Result) IsSetClientVersionNotSupportedErr return v != nil && v.ClientVersionNotSupportedError != nil } +// GetAccessDeniedError returns the value of AccessDeniedError if it is set or its +// zero value if it is unset. +func (v *WorkflowService_QueryWorkflow_Result) GetAccessDeniedError() (o *shared.AccessDeniedError) { + if v != nil && v.AccessDeniedError != nil { + return v.AccessDeniedError + } + + return +} + +// IsSetAccessDeniedError returns true if AccessDeniedError is not nil. +func (v *WorkflowService_QueryWorkflow_Result) IsSetAccessDeniedError() bool { + return v != nil && v.AccessDeniedError != nil +} + // MethodName returns the name of the Thrift function as specified in // the IDL, for which this struct represent the result. // @@ -12118,6 +13831,8 @@ func init() { return true case *shared.WorkflowExecutionAlreadyCompletedError: return true + case *shared.AccessDeniedError: + return true default: return false } @@ -12164,6 +13879,11 @@ func init() { return nil, errors.New("WrapResponse received non-nil error type with nil value for WorkflowService_RecordActivityTaskHeartbeat_Result.WorkflowExecutionAlreadyCompletedError") } return &WorkflowService_RecordActivityTaskHeartbeat_Result{WorkflowExecutionAlreadyCompletedError: e}, nil + case *shared.AccessDeniedError: + if e == nil { + return nil, errors.New("WrapResponse received non-nil error type with nil value for WorkflowService_RecordActivityTaskHeartbeat_Result.AccessDeniedError") + } + return &WorkflowService_RecordActivityTaskHeartbeat_Result{AccessDeniedError: e}, nil } return nil, err @@ -12197,6 +13917,10 @@ func init() { err = result.WorkflowExecutionAlreadyCompletedError return } + if result.AccessDeniedError != nil { + err = result.AccessDeniedError + return + } if result.Success != nil { success = result.Success @@ -12224,6 +13948,7 @@ type WorkflowService_RecordActivityTaskHeartbeat_Result struct { ServiceBusyError *shared.ServiceBusyError `json:"serviceBusyError,omitempty"` ClientVersionNotSupportedError *shared.ClientVersionNotSupportedError `json:"clientVersionNotSupportedError,omitempty"` WorkflowExecutionAlreadyCompletedError *shared.WorkflowExecutionAlreadyCompletedError `json:"workflowExecutionAlreadyCompletedError,omitempty"` + AccessDeniedError *shared.AccessDeniedError `json:"accessDeniedError,omitempty"` } // ToWire translates a WorkflowService_RecordActivityTaskHeartbeat_Result struct into a Thrift-level intermediate @@ -12243,7 +13968,7 @@ type WorkflowService_RecordActivityTaskHeartbeat_Result struct { // } func (v *WorkflowService_RecordActivityTaskHeartbeat_Result) ToWire() (wire.Value, error) { var ( - fields [8]wire.Field + fields [9]wire.Field i int = 0 w wire.Value err error @@ -12313,6 +14038,14 @@ func (v *WorkflowService_RecordActivityTaskHeartbeat_Result) ToWire() (wire.Valu fields[i] = wire.Field{ID: 8, Value: w} i++ } + if v.AccessDeniedError != nil { + w, err = v.AccessDeniedError.ToWire() + if err != nil { + return w, err + } + fields[i] = wire.Field{ID: 9, Value: w} + i++ + } if i != 1 { return wire.Value{}, fmt.Errorf("WorkflowService_RecordActivityTaskHeartbeat_Result should have exactly one field: got %v fields", i) @@ -12418,6 +14151,14 @@ func (v *WorkflowService_RecordActivityTaskHeartbeat_Result) FromWire(w wire.Val return err } + } + case 9: + if field.Value.Type() == wire.TStruct { + v.AccessDeniedError, err = _AccessDeniedError_Read(field.Value) + if err != nil { + return err + } + } } } @@ -12447,6 +14188,9 @@ func (v *WorkflowService_RecordActivityTaskHeartbeat_Result) FromWire(w wire.Val if v.WorkflowExecutionAlreadyCompletedError != nil { count++ } + if v.AccessDeniedError != nil { + count++ + } if count != 1 { return fmt.Errorf("WorkflowService_RecordActivityTaskHeartbeat_Result should have exactly one field: got %v fields", count) } @@ -12461,7 +14205,7 @@ func (v *WorkflowService_RecordActivityTaskHeartbeat_Result) String() string { return "" } - var fields [8]string + var fields [9]string i := 0 if v.Success != nil { fields[i] = fmt.Sprintf("Success: %v", v.Success) @@ -12495,6 +14239,10 @@ func (v *WorkflowService_RecordActivityTaskHeartbeat_Result) String() string { fields[i] = fmt.Sprintf("WorkflowExecutionAlreadyCompletedError: %v", v.WorkflowExecutionAlreadyCompletedError) i++ } + if v.AccessDeniedError != nil { + fields[i] = fmt.Sprintf("AccessDeniedError: %v", v.AccessDeniedError) + i++ + } return fmt.Sprintf("WorkflowService_RecordActivityTaskHeartbeat_Result{%v}", strings.Join(fields[:i], ", ")) } @@ -12533,6 +14281,9 @@ func (v *WorkflowService_RecordActivityTaskHeartbeat_Result) Equals(rhs *Workflo if !((v.WorkflowExecutionAlreadyCompletedError == nil && rhs.WorkflowExecutionAlreadyCompletedError == nil) || (v.WorkflowExecutionAlreadyCompletedError != nil && rhs.WorkflowExecutionAlreadyCompletedError != nil && v.WorkflowExecutionAlreadyCompletedError.Equals(rhs.WorkflowExecutionAlreadyCompletedError))) { return false } + if !((v.AccessDeniedError == nil && rhs.AccessDeniedError == nil) || (v.AccessDeniedError != nil && rhs.AccessDeniedError != nil && v.AccessDeniedError.Equals(rhs.AccessDeniedError))) { + return false + } return true } @@ -12567,6 +14318,9 @@ func (v *WorkflowService_RecordActivityTaskHeartbeat_Result) MarshalLogObject(en if v.WorkflowExecutionAlreadyCompletedError != nil { err = multierr.Append(err, enc.AddObject("workflowExecutionAlreadyCompletedError", v.WorkflowExecutionAlreadyCompletedError)) } + if v.AccessDeniedError != nil { + err = multierr.Append(err, enc.AddObject("accessDeniedError", v.AccessDeniedError)) + } return err } @@ -12690,6 +14444,21 @@ func (v *WorkflowService_RecordActivityTaskHeartbeat_Result) IsSetWorkflowExecut return v != nil && v.WorkflowExecutionAlreadyCompletedError != nil } +// GetAccessDeniedError returns the value of AccessDeniedError if it is set or its +// zero value if it is unset. +func (v *WorkflowService_RecordActivityTaskHeartbeat_Result) GetAccessDeniedError() (o *shared.AccessDeniedError) { + if v != nil && v.AccessDeniedError != nil { + return v.AccessDeniedError + } + + return +} + +// IsSetAccessDeniedError returns true if AccessDeniedError is not nil. +func (v *WorkflowService_RecordActivityTaskHeartbeat_Result) IsSetAccessDeniedError() bool { + return v != nil && v.AccessDeniedError != nil +} + // MethodName returns the name of the Thrift function as specified in // the IDL, for which this struct represent the result. // @@ -12935,6 +14704,8 @@ func init() { return true case *shared.WorkflowExecutionAlreadyCompletedError: return true + case *shared.AccessDeniedError: + return true default: return false } @@ -12981,6 +14752,11 @@ func init() { return nil, errors.New("WrapResponse received non-nil error type with nil value for WorkflowService_RecordActivityTaskHeartbeatByID_Result.WorkflowExecutionAlreadyCompletedError") } return &WorkflowService_RecordActivityTaskHeartbeatByID_Result{WorkflowExecutionAlreadyCompletedError: e}, nil + case *shared.AccessDeniedError: + if e == nil { + return nil, errors.New("WrapResponse received non-nil error type with nil value for WorkflowService_RecordActivityTaskHeartbeatByID_Result.AccessDeniedError") + } + return &WorkflowService_RecordActivityTaskHeartbeatByID_Result{AccessDeniedError: e}, nil } return nil, err @@ -13014,6 +14790,10 @@ func init() { err = result.WorkflowExecutionAlreadyCompletedError return } + if result.AccessDeniedError != nil { + err = result.AccessDeniedError + return + } if result.Success != nil { success = result.Success @@ -13041,6 +14821,7 @@ type WorkflowService_RecordActivityTaskHeartbeatByID_Result struct { ServiceBusyError *shared.ServiceBusyError `json:"serviceBusyError,omitempty"` ClientVersionNotSupportedError *shared.ClientVersionNotSupportedError `json:"clientVersionNotSupportedError,omitempty"` WorkflowExecutionAlreadyCompletedError *shared.WorkflowExecutionAlreadyCompletedError `json:"workflowExecutionAlreadyCompletedError,omitempty"` + AccessDeniedError *shared.AccessDeniedError `json:"accessDeniedError,omitempty"` } // ToWire translates a WorkflowService_RecordActivityTaskHeartbeatByID_Result struct into a Thrift-level intermediate @@ -13060,7 +14841,7 @@ type WorkflowService_RecordActivityTaskHeartbeatByID_Result struct { // } func (v *WorkflowService_RecordActivityTaskHeartbeatByID_Result) ToWire() (wire.Value, error) { var ( - fields [8]wire.Field + fields [9]wire.Field i int = 0 w wire.Value err error @@ -13130,6 +14911,14 @@ func (v *WorkflowService_RecordActivityTaskHeartbeatByID_Result) ToWire() (wire. fields[i] = wire.Field{ID: 8, Value: w} i++ } + if v.AccessDeniedError != nil { + w, err = v.AccessDeniedError.ToWire() + if err != nil { + return w, err + } + fields[i] = wire.Field{ID: 9, Value: w} + i++ + } if i != 1 { return wire.Value{}, fmt.Errorf("WorkflowService_RecordActivityTaskHeartbeatByID_Result should have exactly one field: got %v fields", i) @@ -13223,6 +15012,14 @@ func (v *WorkflowService_RecordActivityTaskHeartbeatByID_Result) FromWire(w wire return err } + } + case 9: + if field.Value.Type() == wire.TStruct { + v.AccessDeniedError, err = _AccessDeniedError_Read(field.Value) + if err != nil { + return err + } + } } } @@ -13252,6 +15049,9 @@ func (v *WorkflowService_RecordActivityTaskHeartbeatByID_Result) FromWire(w wire if v.WorkflowExecutionAlreadyCompletedError != nil { count++ } + if v.AccessDeniedError != nil { + count++ + } if count != 1 { return fmt.Errorf("WorkflowService_RecordActivityTaskHeartbeatByID_Result should have exactly one field: got %v fields", count) } @@ -13266,7 +15066,7 @@ func (v *WorkflowService_RecordActivityTaskHeartbeatByID_Result) String() string return "" } - var fields [8]string + var fields [9]string i := 0 if v.Success != nil { fields[i] = fmt.Sprintf("Success: %v", v.Success) @@ -13300,6 +15100,10 @@ func (v *WorkflowService_RecordActivityTaskHeartbeatByID_Result) String() string fields[i] = fmt.Sprintf("WorkflowExecutionAlreadyCompletedError: %v", v.WorkflowExecutionAlreadyCompletedError) i++ } + if v.AccessDeniedError != nil { + fields[i] = fmt.Sprintf("AccessDeniedError: %v", v.AccessDeniedError) + i++ + } return fmt.Sprintf("WorkflowService_RecordActivityTaskHeartbeatByID_Result{%v}", strings.Join(fields[:i], ", ")) } @@ -13338,6 +15142,9 @@ func (v *WorkflowService_RecordActivityTaskHeartbeatByID_Result) Equals(rhs *Wor if !((v.WorkflowExecutionAlreadyCompletedError == nil && rhs.WorkflowExecutionAlreadyCompletedError == nil) || (v.WorkflowExecutionAlreadyCompletedError != nil && rhs.WorkflowExecutionAlreadyCompletedError != nil && v.WorkflowExecutionAlreadyCompletedError.Equals(rhs.WorkflowExecutionAlreadyCompletedError))) { return false } + if !((v.AccessDeniedError == nil && rhs.AccessDeniedError == nil) || (v.AccessDeniedError != nil && rhs.AccessDeniedError != nil && v.AccessDeniedError.Equals(rhs.AccessDeniedError))) { + return false + } return true } @@ -13372,6 +15179,9 @@ func (v *WorkflowService_RecordActivityTaskHeartbeatByID_Result) MarshalLogObjec if v.WorkflowExecutionAlreadyCompletedError != nil { err = multierr.Append(err, enc.AddObject("workflowExecutionAlreadyCompletedError", v.WorkflowExecutionAlreadyCompletedError)) } + if v.AccessDeniedError != nil { + err = multierr.Append(err, enc.AddObject("accessDeniedError", v.AccessDeniedError)) + } return err } @@ -13495,6 +15305,21 @@ func (v *WorkflowService_RecordActivityTaskHeartbeatByID_Result) IsSetWorkflowEx return v != nil && v.WorkflowExecutionAlreadyCompletedError != nil } +// GetAccessDeniedError returns the value of AccessDeniedError if it is set or its +// zero value if it is unset. +func (v *WorkflowService_RecordActivityTaskHeartbeatByID_Result) GetAccessDeniedError() (o *shared.AccessDeniedError) { + if v != nil && v.AccessDeniedError != nil { + return v.AccessDeniedError + } + + return +} + +// IsSetAccessDeniedError returns true if AccessDeniedError is not nil. +func (v *WorkflowService_RecordActivityTaskHeartbeatByID_Result) IsSetAccessDeniedError() bool { + return v != nil && v.AccessDeniedError != nil +} + // MethodName returns the name of the Thrift function as specified in // the IDL, for which this struct represent the result. // @@ -13735,6 +15560,8 @@ func init() { return true case *shared.EntityNotExistsError: return true + case *shared.AccessDeniedError: + return true default: return false } @@ -13766,6 +15593,11 @@ func init() { return nil, errors.New("WrapResponse received non-nil error type with nil value for WorkflowService_RefreshWorkflowTasks_Result.EntityNotExistError") } return &WorkflowService_RefreshWorkflowTasks_Result{EntityNotExistError: e}, nil + case *shared.AccessDeniedError: + if e == nil { + return nil, errors.New("WrapResponse received non-nil error type with nil value for WorkflowService_RefreshWorkflowTasks_Result.AccessDeniedError") + } + return &WorkflowService_RefreshWorkflowTasks_Result{AccessDeniedError: e}, nil } return nil, err @@ -13787,6 +15619,10 @@ func init() { err = result.EntityNotExistError return } + if result.AccessDeniedError != nil { + err = result.AccessDeniedError + return + } return } @@ -13800,6 +15636,7 @@ type WorkflowService_RefreshWorkflowTasks_Result struct { DomainNotActiveError *shared.DomainNotActiveError `json:"domainNotActiveError,omitempty"` ServiceBusyError *shared.ServiceBusyError `json:"serviceBusyError,omitempty"` EntityNotExistError *shared.EntityNotExistsError `json:"entityNotExistError,omitempty"` + AccessDeniedError *shared.AccessDeniedError `json:"accessDeniedError,omitempty"` } // ToWire translates a WorkflowService_RefreshWorkflowTasks_Result struct into a Thrift-level intermediate @@ -13819,7 +15656,7 @@ type WorkflowService_RefreshWorkflowTasks_Result struct { // } func (v *WorkflowService_RefreshWorkflowTasks_Result) ToWire() (wire.Value, error) { var ( - fields [4]wire.Field + fields [5]wire.Field i int = 0 w wire.Value err error @@ -13857,6 +15694,14 @@ func (v *WorkflowService_RefreshWorkflowTasks_Result) ToWire() (wire.Value, erro fields[i] = wire.Field{ID: 4, Value: w} i++ } + if v.AccessDeniedError != nil { + w, err = v.AccessDeniedError.ToWire() + if err != nil { + return w, err + } + fields[i] = wire.Field{ID: 5, Value: w} + i++ + } if i > 1 { return wire.Value{}, fmt.Errorf("WorkflowService_RefreshWorkflowTasks_Result should have at most one field: got %v fields", i) @@ -13918,6 +15763,14 @@ func (v *WorkflowService_RefreshWorkflowTasks_Result) FromWire(w wire.Value) err return err } + } + case 5: + if field.Value.Type() == wire.TStruct { + v.AccessDeniedError, err = _AccessDeniedError_Read(field.Value) + if err != nil { + return err + } + } } } @@ -13935,6 +15788,9 @@ func (v *WorkflowService_RefreshWorkflowTasks_Result) FromWire(w wire.Value) err if v.EntityNotExistError != nil { count++ } + if v.AccessDeniedError != nil { + count++ + } if count > 1 { return fmt.Errorf("WorkflowService_RefreshWorkflowTasks_Result should have at most one field: got %v fields", count) } @@ -13949,7 +15805,7 @@ func (v *WorkflowService_RefreshWorkflowTasks_Result) String() string { return "" } - var fields [4]string + var fields [5]string i := 0 if v.BadRequestError != nil { fields[i] = fmt.Sprintf("BadRequestError: %v", v.BadRequestError) @@ -13967,6 +15823,10 @@ func (v *WorkflowService_RefreshWorkflowTasks_Result) String() string { fields[i] = fmt.Sprintf("EntityNotExistError: %v", v.EntityNotExistError) i++ } + if v.AccessDeniedError != nil { + fields[i] = fmt.Sprintf("AccessDeniedError: %v", v.AccessDeniedError) + i++ + } return fmt.Sprintf("WorkflowService_RefreshWorkflowTasks_Result{%v}", strings.Join(fields[:i], ", ")) } @@ -13993,6 +15853,9 @@ func (v *WorkflowService_RefreshWorkflowTasks_Result) Equals(rhs *WorkflowServic if !((v.EntityNotExistError == nil && rhs.EntityNotExistError == nil) || (v.EntityNotExistError != nil && rhs.EntityNotExistError != nil && v.EntityNotExistError.Equals(rhs.EntityNotExistError))) { return false } + if !((v.AccessDeniedError == nil && rhs.AccessDeniedError == nil) || (v.AccessDeniedError != nil && rhs.AccessDeniedError != nil && v.AccessDeniedError.Equals(rhs.AccessDeniedError))) { + return false + } return true } @@ -14015,6 +15878,9 @@ func (v *WorkflowService_RefreshWorkflowTasks_Result) MarshalLogObject(enc zapco if v.EntityNotExistError != nil { err = multierr.Append(err, enc.AddObject("entityNotExistError", v.EntityNotExistError)) } + if v.AccessDeniedError != nil { + err = multierr.Append(err, enc.AddObject("accessDeniedError", v.AccessDeniedError)) + } return err } @@ -14078,6 +15944,21 @@ func (v *WorkflowService_RefreshWorkflowTasks_Result) IsSetEntityNotExistError() return v != nil && v.EntityNotExistError != nil } +// GetAccessDeniedError returns the value of AccessDeniedError if it is set or its +// zero value if it is unset. +func (v *WorkflowService_RefreshWorkflowTasks_Result) GetAccessDeniedError() (o *shared.AccessDeniedError) { + if v != nil && v.AccessDeniedError != nil { + return v.AccessDeniedError + } + + return +} + +// IsSetAccessDeniedError returns true if AccessDeniedError is not nil. +func (v *WorkflowService_RefreshWorkflowTasks_Result) IsSetAccessDeniedError() bool { + return v != nil && v.AccessDeniedError != nil +} + // MethodName returns the name of the Thrift function as specified in // the IDL, for which this struct represent the result. // @@ -14318,6 +16199,8 @@ func init() { return true case *shared.ClientVersionNotSupportedError: return true + case *shared.AccessDeniedError: + return true default: return false } @@ -14349,6 +16232,11 @@ func init() { return nil, errors.New("WrapResponse received non-nil error type with nil value for WorkflowService_RegisterDomain_Result.ClientVersionNotSupportedError") } return &WorkflowService_RegisterDomain_Result{ClientVersionNotSupportedError: e}, nil + case *shared.AccessDeniedError: + if e == nil { + return nil, errors.New("WrapResponse received non-nil error type with nil value for WorkflowService_RegisterDomain_Result.AccessDeniedError") + } + return &WorkflowService_RegisterDomain_Result{AccessDeniedError: e}, nil } return nil, err @@ -14370,6 +16258,10 @@ func init() { err = result.ClientVersionNotSupportedError return } + if result.AccessDeniedError != nil { + err = result.AccessDeniedError + return + } return } @@ -14383,6 +16275,7 @@ type WorkflowService_RegisterDomain_Result struct { DomainExistsError *shared.DomainAlreadyExistsError `json:"domainExistsError,omitempty"` ServiceBusyError *shared.ServiceBusyError `json:"serviceBusyError,omitempty"` ClientVersionNotSupportedError *shared.ClientVersionNotSupportedError `json:"clientVersionNotSupportedError,omitempty"` + AccessDeniedError *shared.AccessDeniedError `json:"accessDeniedError,omitempty"` } // ToWire translates a WorkflowService_RegisterDomain_Result struct into a Thrift-level intermediate @@ -14402,7 +16295,7 @@ type WorkflowService_RegisterDomain_Result struct { // } func (v *WorkflowService_RegisterDomain_Result) ToWire() (wire.Value, error) { var ( - fields [4]wire.Field + fields [5]wire.Field i int = 0 w wire.Value err error @@ -14440,6 +16333,14 @@ func (v *WorkflowService_RegisterDomain_Result) ToWire() (wire.Value, error) { fields[i] = wire.Field{ID: 5, Value: w} i++ } + if v.AccessDeniedError != nil { + w, err = v.AccessDeniedError.ToWire() + if err != nil { + return w, err + } + fields[i] = wire.Field{ID: 6, Value: w} + i++ + } if i > 1 { return wire.Value{}, fmt.Errorf("WorkflowService_RegisterDomain_Result should have at most one field: got %v fields", i) @@ -14507,6 +16408,14 @@ func (v *WorkflowService_RegisterDomain_Result) FromWire(w wire.Value) error { return err } + } + case 6: + if field.Value.Type() == wire.TStruct { + v.AccessDeniedError, err = _AccessDeniedError_Read(field.Value) + if err != nil { + return err + } + } } } @@ -14524,6 +16433,9 @@ func (v *WorkflowService_RegisterDomain_Result) FromWire(w wire.Value) error { if v.ClientVersionNotSupportedError != nil { count++ } + if v.AccessDeniedError != nil { + count++ + } if count > 1 { return fmt.Errorf("WorkflowService_RegisterDomain_Result should have at most one field: got %v fields", count) } @@ -14538,7 +16450,7 @@ func (v *WorkflowService_RegisterDomain_Result) String() string { return "" } - var fields [4]string + var fields [5]string i := 0 if v.BadRequestError != nil { fields[i] = fmt.Sprintf("BadRequestError: %v", v.BadRequestError) @@ -14556,6 +16468,10 @@ func (v *WorkflowService_RegisterDomain_Result) String() string { fields[i] = fmt.Sprintf("ClientVersionNotSupportedError: %v", v.ClientVersionNotSupportedError) i++ } + if v.AccessDeniedError != nil { + fields[i] = fmt.Sprintf("AccessDeniedError: %v", v.AccessDeniedError) + i++ + } return fmt.Sprintf("WorkflowService_RegisterDomain_Result{%v}", strings.Join(fields[:i], ", ")) } @@ -14582,6 +16498,9 @@ func (v *WorkflowService_RegisterDomain_Result) Equals(rhs *WorkflowService_Regi if !((v.ClientVersionNotSupportedError == nil && rhs.ClientVersionNotSupportedError == nil) || (v.ClientVersionNotSupportedError != nil && rhs.ClientVersionNotSupportedError != nil && v.ClientVersionNotSupportedError.Equals(rhs.ClientVersionNotSupportedError))) { return false } + if !((v.AccessDeniedError == nil && rhs.AccessDeniedError == nil) || (v.AccessDeniedError != nil && rhs.AccessDeniedError != nil && v.AccessDeniedError.Equals(rhs.AccessDeniedError))) { + return false + } return true } @@ -14604,6 +16523,9 @@ func (v *WorkflowService_RegisterDomain_Result) MarshalLogObject(enc zapcore.Obj if v.ClientVersionNotSupportedError != nil { err = multierr.Append(err, enc.AddObject("clientVersionNotSupportedError", v.ClientVersionNotSupportedError)) } + if v.AccessDeniedError != nil { + err = multierr.Append(err, enc.AddObject("accessDeniedError", v.AccessDeniedError)) + } return err } @@ -14667,6 +16589,21 @@ func (v *WorkflowService_RegisterDomain_Result) IsSetClientVersionNotSupportedEr return v != nil && v.ClientVersionNotSupportedError != nil } +// GetAccessDeniedError returns the value of AccessDeniedError if it is set or its +// zero value if it is unset. +func (v *WorkflowService_RegisterDomain_Result) GetAccessDeniedError() (o *shared.AccessDeniedError) { + if v != nil && v.AccessDeniedError != nil { + return v.AccessDeniedError + } + + return +} + +// IsSetAccessDeniedError returns true if AccessDeniedError is not nil. +func (v *WorkflowService_RegisterDomain_Result) IsSetAccessDeniedError() bool { + return v != nil && v.AccessDeniedError != nil +} + // MethodName returns the name of the Thrift function as specified in // the IDL, for which this struct represent the result. // @@ -14915,6 +16852,8 @@ func init() { return true case *shared.WorkflowExecutionAlreadyCompletedError: return true + case *shared.AccessDeniedError: + return true default: return false } @@ -14966,6 +16905,11 @@ func init() { return nil, errors.New("WrapResponse received non-nil error type with nil value for WorkflowService_RequestCancelWorkflowExecution_Result.WorkflowExecutionAlreadyCompletedError") } return &WorkflowService_RequestCancelWorkflowExecution_Result{WorkflowExecutionAlreadyCompletedError: e}, nil + case *shared.AccessDeniedError: + if e == nil { + return nil, errors.New("WrapResponse received non-nil error type with nil value for WorkflowService_RequestCancelWorkflowExecution_Result.AccessDeniedError") + } + return &WorkflowService_RequestCancelWorkflowExecution_Result{AccessDeniedError: e}, nil } return nil, err @@ -15003,6 +16947,10 @@ func init() { err = result.WorkflowExecutionAlreadyCompletedError return } + if result.AccessDeniedError != nil { + err = result.AccessDeniedError + return + } return } @@ -15020,6 +16968,7 @@ type WorkflowService_RequestCancelWorkflowExecution_Result struct { LimitExceededError *shared.LimitExceededError `json:"limitExceededError,omitempty"` ClientVersionNotSupportedError *shared.ClientVersionNotSupportedError `json:"clientVersionNotSupportedError,omitempty"` WorkflowExecutionAlreadyCompletedError *shared.WorkflowExecutionAlreadyCompletedError `json:"workflowExecutionAlreadyCompletedError,omitempty"` + AccessDeniedError *shared.AccessDeniedError `json:"accessDeniedError,omitempty"` } // ToWire translates a WorkflowService_RequestCancelWorkflowExecution_Result struct into a Thrift-level intermediate @@ -15039,7 +16988,7 @@ type WorkflowService_RequestCancelWorkflowExecution_Result struct { // } func (v *WorkflowService_RequestCancelWorkflowExecution_Result) ToWire() (wire.Value, error) { var ( - fields [8]wire.Field + fields [9]wire.Field i int = 0 w wire.Value err error @@ -15109,6 +17058,14 @@ func (v *WorkflowService_RequestCancelWorkflowExecution_Result) ToWire() (wire.V fields[i] = wire.Field{ID: 9, Value: w} i++ } + if v.AccessDeniedError != nil { + w, err = v.AccessDeniedError.ToWire() + if err != nil { + return w, err + } + fields[i] = wire.Field{ID: 10, Value: w} + i++ + } if i > 1 { return wire.Value{}, fmt.Errorf("WorkflowService_RequestCancelWorkflowExecution_Result should have at most one field: got %v fields", i) @@ -15208,6 +17165,14 @@ func (v *WorkflowService_RequestCancelWorkflowExecution_Result) FromWire(w wire. return err } + } + case 10: + if field.Value.Type() == wire.TStruct { + v.AccessDeniedError, err = _AccessDeniedError_Read(field.Value) + if err != nil { + return err + } + } } } @@ -15237,6 +17202,9 @@ func (v *WorkflowService_RequestCancelWorkflowExecution_Result) FromWire(w wire. if v.WorkflowExecutionAlreadyCompletedError != nil { count++ } + if v.AccessDeniedError != nil { + count++ + } if count > 1 { return fmt.Errorf("WorkflowService_RequestCancelWorkflowExecution_Result should have at most one field: got %v fields", count) } @@ -15251,7 +17219,7 @@ func (v *WorkflowService_RequestCancelWorkflowExecution_Result) String() string return "" } - var fields [8]string + var fields [9]string i := 0 if v.BadRequestError != nil { fields[i] = fmt.Sprintf("BadRequestError: %v", v.BadRequestError) @@ -15285,6 +17253,10 @@ func (v *WorkflowService_RequestCancelWorkflowExecution_Result) String() string fields[i] = fmt.Sprintf("WorkflowExecutionAlreadyCompletedError: %v", v.WorkflowExecutionAlreadyCompletedError) i++ } + if v.AccessDeniedError != nil { + fields[i] = fmt.Sprintf("AccessDeniedError: %v", v.AccessDeniedError) + i++ + } return fmt.Sprintf("WorkflowService_RequestCancelWorkflowExecution_Result{%v}", strings.Join(fields[:i], ", ")) } @@ -15323,6 +17295,9 @@ func (v *WorkflowService_RequestCancelWorkflowExecution_Result) Equals(rhs *Work if !((v.WorkflowExecutionAlreadyCompletedError == nil && rhs.WorkflowExecutionAlreadyCompletedError == nil) || (v.WorkflowExecutionAlreadyCompletedError != nil && rhs.WorkflowExecutionAlreadyCompletedError != nil && v.WorkflowExecutionAlreadyCompletedError.Equals(rhs.WorkflowExecutionAlreadyCompletedError))) { return false } + if !((v.AccessDeniedError == nil && rhs.AccessDeniedError == nil) || (v.AccessDeniedError != nil && rhs.AccessDeniedError != nil && v.AccessDeniedError.Equals(rhs.AccessDeniedError))) { + return false + } return true } @@ -15357,6 +17332,9 @@ func (v *WorkflowService_RequestCancelWorkflowExecution_Result) MarshalLogObject if v.WorkflowExecutionAlreadyCompletedError != nil { err = multierr.Append(err, enc.AddObject("workflowExecutionAlreadyCompletedError", v.WorkflowExecutionAlreadyCompletedError)) } + if v.AccessDeniedError != nil { + err = multierr.Append(err, enc.AddObject("accessDeniedError", v.AccessDeniedError)) + } return err } @@ -15480,6 +17458,21 @@ func (v *WorkflowService_RequestCancelWorkflowExecution_Result) IsSetWorkflowExe return v != nil && v.WorkflowExecutionAlreadyCompletedError != nil } +// GetAccessDeniedError returns the value of AccessDeniedError if it is set or its +// zero value if it is unset. +func (v *WorkflowService_RequestCancelWorkflowExecution_Result) GetAccessDeniedError() (o *shared.AccessDeniedError) { + if v != nil && v.AccessDeniedError != nil { + return v.AccessDeniedError + } + + return +} + +// IsSetAccessDeniedError returns true if AccessDeniedError is not nil. +func (v *WorkflowService_RequestCancelWorkflowExecution_Result) IsSetAccessDeniedError() bool { + return v != nil && v.AccessDeniedError != nil +} + // MethodName returns the name of the Thrift function as specified in // the IDL, for which this struct represent the result. // @@ -15725,6 +17718,8 @@ func init() { return true case *shared.WorkflowExecutionAlreadyCompletedError: return true + case *shared.AccessDeniedError: + return true default: return false } @@ -15771,6 +17766,11 @@ func init() { return nil, errors.New("WrapResponse received non-nil error type with nil value for WorkflowService_ResetStickyTaskList_Result.WorkflowExecutionAlreadyCompletedError") } return &WorkflowService_ResetStickyTaskList_Result{WorkflowExecutionAlreadyCompletedError: e}, nil + case *shared.AccessDeniedError: + if e == nil { + return nil, errors.New("WrapResponse received non-nil error type with nil value for WorkflowService_ResetStickyTaskList_Result.AccessDeniedError") + } + return &WorkflowService_ResetStickyTaskList_Result{AccessDeniedError: e}, nil } return nil, err @@ -15804,6 +17804,10 @@ func init() { err = result.WorkflowExecutionAlreadyCompletedError return } + if result.AccessDeniedError != nil { + err = result.AccessDeniedError + return + } if result.Success != nil { success = result.Success @@ -15831,6 +17835,7 @@ type WorkflowService_ResetStickyTaskList_Result struct { DomainNotActiveError *shared.DomainNotActiveError `json:"domainNotActiveError,omitempty"` ClientVersionNotSupportedError *shared.ClientVersionNotSupportedError `json:"clientVersionNotSupportedError,omitempty"` WorkflowExecutionAlreadyCompletedError *shared.WorkflowExecutionAlreadyCompletedError `json:"workflowExecutionAlreadyCompletedError,omitempty"` + AccessDeniedError *shared.AccessDeniedError `json:"accessDeniedError,omitempty"` } // ToWire translates a WorkflowService_ResetStickyTaskList_Result struct into a Thrift-level intermediate @@ -15850,7 +17855,7 @@ type WorkflowService_ResetStickyTaskList_Result struct { // } func (v *WorkflowService_ResetStickyTaskList_Result) ToWire() (wire.Value, error) { var ( - fields [8]wire.Field + fields [9]wire.Field i int = 0 w wire.Value err error @@ -15920,6 +17925,14 @@ func (v *WorkflowService_ResetStickyTaskList_Result) ToWire() (wire.Value, error fields[i] = wire.Field{ID: 8, Value: w} i++ } + if v.AccessDeniedError != nil { + w, err = v.AccessDeniedError.ToWire() + if err != nil { + return w, err + } + fields[i] = wire.Field{ID: 9, Value: w} + i++ + } if i != 1 { return wire.Value{}, fmt.Errorf("WorkflowService_ResetStickyTaskList_Result should have exactly one field: got %v fields", i) @@ -16019,6 +18032,14 @@ func (v *WorkflowService_ResetStickyTaskList_Result) FromWire(w wire.Value) erro return err } + } + case 9: + if field.Value.Type() == wire.TStruct { + v.AccessDeniedError, err = _AccessDeniedError_Read(field.Value) + if err != nil { + return err + } + } } } @@ -16048,6 +18069,9 @@ func (v *WorkflowService_ResetStickyTaskList_Result) FromWire(w wire.Value) erro if v.WorkflowExecutionAlreadyCompletedError != nil { count++ } + if v.AccessDeniedError != nil { + count++ + } if count != 1 { return fmt.Errorf("WorkflowService_ResetStickyTaskList_Result should have exactly one field: got %v fields", count) } @@ -16062,7 +18086,7 @@ func (v *WorkflowService_ResetStickyTaskList_Result) String() string { return "" } - var fields [8]string + var fields [9]string i := 0 if v.Success != nil { fields[i] = fmt.Sprintf("Success: %v", v.Success) @@ -16096,6 +18120,10 @@ func (v *WorkflowService_ResetStickyTaskList_Result) String() string { fields[i] = fmt.Sprintf("WorkflowExecutionAlreadyCompletedError: %v", v.WorkflowExecutionAlreadyCompletedError) i++ } + if v.AccessDeniedError != nil { + fields[i] = fmt.Sprintf("AccessDeniedError: %v", v.AccessDeniedError) + i++ + } return fmt.Sprintf("WorkflowService_ResetStickyTaskList_Result{%v}", strings.Join(fields[:i], ", ")) } @@ -16134,6 +18162,9 @@ func (v *WorkflowService_ResetStickyTaskList_Result) Equals(rhs *WorkflowService if !((v.WorkflowExecutionAlreadyCompletedError == nil && rhs.WorkflowExecutionAlreadyCompletedError == nil) || (v.WorkflowExecutionAlreadyCompletedError != nil && rhs.WorkflowExecutionAlreadyCompletedError != nil && v.WorkflowExecutionAlreadyCompletedError.Equals(rhs.WorkflowExecutionAlreadyCompletedError))) { return false } + if !((v.AccessDeniedError == nil && rhs.AccessDeniedError == nil) || (v.AccessDeniedError != nil && rhs.AccessDeniedError != nil && v.AccessDeniedError.Equals(rhs.AccessDeniedError))) { + return false + } return true } @@ -16168,6 +18199,9 @@ func (v *WorkflowService_ResetStickyTaskList_Result) MarshalLogObject(enc zapcor if v.WorkflowExecutionAlreadyCompletedError != nil { err = multierr.Append(err, enc.AddObject("workflowExecutionAlreadyCompletedError", v.WorkflowExecutionAlreadyCompletedError)) } + if v.AccessDeniedError != nil { + err = multierr.Append(err, enc.AddObject("accessDeniedError", v.AccessDeniedError)) + } return err } @@ -16291,6 +18325,21 @@ func (v *WorkflowService_ResetStickyTaskList_Result) IsSetWorkflowExecutionAlrea return v != nil && v.WorkflowExecutionAlreadyCompletedError != nil } +// GetAccessDeniedError returns the value of AccessDeniedError if it is set or its +// zero value if it is unset. +func (v *WorkflowService_ResetStickyTaskList_Result) GetAccessDeniedError() (o *shared.AccessDeniedError) { + if v != nil && v.AccessDeniedError != nil { + return v.AccessDeniedError + } + + return +} + +// IsSetAccessDeniedError returns true if AccessDeniedError is not nil. +func (v *WorkflowService_ResetStickyTaskList_Result) IsSetAccessDeniedError() bool { + return v != nil && v.AccessDeniedError != nil +} + // MethodName returns the name of the Thrift function as specified in // the IDL, for which this struct represent the result. // @@ -16534,6 +18583,8 @@ func init() { return true case *shared.ClientVersionNotSupportedError: return true + case *shared.AccessDeniedError: + return true default: return false } @@ -16575,6 +18626,11 @@ func init() { return nil, errors.New("WrapResponse received non-nil error type with nil value for WorkflowService_ResetWorkflowExecution_Result.ClientVersionNotSupportedError") } return &WorkflowService_ResetWorkflowExecution_Result{ClientVersionNotSupportedError: e}, nil + case *shared.AccessDeniedError: + if e == nil { + return nil, errors.New("WrapResponse received non-nil error type with nil value for WorkflowService_ResetWorkflowExecution_Result.AccessDeniedError") + } + return &WorkflowService_ResetWorkflowExecution_Result{AccessDeniedError: e}, nil } return nil, err @@ -16604,6 +18660,10 @@ func init() { err = result.ClientVersionNotSupportedError return } + if result.AccessDeniedError != nil { + err = result.AccessDeniedError + return + } if result.Success != nil { success = result.Success @@ -16630,6 +18690,7 @@ type WorkflowService_ResetWorkflowExecution_Result struct { DomainNotActiveError *shared.DomainNotActiveError `json:"domainNotActiveError,omitempty"` LimitExceededError *shared.LimitExceededError `json:"limitExceededError,omitempty"` ClientVersionNotSupportedError *shared.ClientVersionNotSupportedError `json:"clientVersionNotSupportedError,omitempty"` + AccessDeniedError *shared.AccessDeniedError `json:"accessDeniedError,omitempty"` } // ToWire translates a WorkflowService_ResetWorkflowExecution_Result struct into a Thrift-level intermediate @@ -16649,7 +18710,7 @@ type WorkflowService_ResetWorkflowExecution_Result struct { // } func (v *WorkflowService_ResetWorkflowExecution_Result) ToWire() (wire.Value, error) { var ( - fields [7]wire.Field + fields [8]wire.Field i int = 0 w wire.Value err error @@ -16711,6 +18772,14 @@ func (v *WorkflowService_ResetWorkflowExecution_Result) ToWire() (wire.Value, er fields[i] = wire.Field{ID: 7, Value: w} i++ } + if v.AccessDeniedError != nil { + w, err = v.AccessDeniedError.ToWire() + if err != nil { + return w, err + } + fields[i] = wire.Field{ID: 8, Value: w} + i++ + } if i != 1 { return wire.Value{}, fmt.Errorf("WorkflowService_ResetWorkflowExecution_Result should have exactly one field: got %v fields", i) @@ -16802,6 +18871,14 @@ func (v *WorkflowService_ResetWorkflowExecution_Result) FromWire(w wire.Value) e return err } + } + case 8: + if field.Value.Type() == wire.TStruct { + v.AccessDeniedError, err = _AccessDeniedError_Read(field.Value) + if err != nil { + return err + } + } } } @@ -16828,6 +18905,9 @@ func (v *WorkflowService_ResetWorkflowExecution_Result) FromWire(w wire.Value) e if v.ClientVersionNotSupportedError != nil { count++ } + if v.AccessDeniedError != nil { + count++ + } if count != 1 { return fmt.Errorf("WorkflowService_ResetWorkflowExecution_Result should have exactly one field: got %v fields", count) } @@ -16842,7 +18922,7 @@ func (v *WorkflowService_ResetWorkflowExecution_Result) String() string { return "" } - var fields [7]string + var fields [8]string i := 0 if v.Success != nil { fields[i] = fmt.Sprintf("Success: %v", v.Success) @@ -16872,6 +18952,10 @@ func (v *WorkflowService_ResetWorkflowExecution_Result) String() string { fields[i] = fmt.Sprintf("ClientVersionNotSupportedError: %v", v.ClientVersionNotSupportedError) i++ } + if v.AccessDeniedError != nil { + fields[i] = fmt.Sprintf("AccessDeniedError: %v", v.AccessDeniedError) + i++ + } return fmt.Sprintf("WorkflowService_ResetWorkflowExecution_Result{%v}", strings.Join(fields[:i], ", ")) } @@ -16907,6 +18991,9 @@ func (v *WorkflowService_ResetWorkflowExecution_Result) Equals(rhs *WorkflowServ if !((v.ClientVersionNotSupportedError == nil && rhs.ClientVersionNotSupportedError == nil) || (v.ClientVersionNotSupportedError != nil && rhs.ClientVersionNotSupportedError != nil && v.ClientVersionNotSupportedError.Equals(rhs.ClientVersionNotSupportedError))) { return false } + if !((v.AccessDeniedError == nil && rhs.AccessDeniedError == nil) || (v.AccessDeniedError != nil && rhs.AccessDeniedError != nil && v.AccessDeniedError.Equals(rhs.AccessDeniedError))) { + return false + } return true } @@ -16938,6 +19025,9 @@ func (v *WorkflowService_ResetWorkflowExecution_Result) MarshalLogObject(enc zap if v.ClientVersionNotSupportedError != nil { err = multierr.Append(err, enc.AddObject("clientVersionNotSupportedError", v.ClientVersionNotSupportedError)) } + if v.AccessDeniedError != nil { + err = multierr.Append(err, enc.AddObject("accessDeniedError", v.AccessDeniedError)) + } return err } @@ -17046,6 +19136,21 @@ func (v *WorkflowService_ResetWorkflowExecution_Result) IsSetClientVersionNotSup return v != nil && v.ClientVersionNotSupportedError != nil } +// GetAccessDeniedError returns the value of AccessDeniedError if it is set or its +// zero value if it is unset. +func (v *WorkflowService_ResetWorkflowExecution_Result) GetAccessDeniedError() (o *shared.AccessDeniedError) { + if v != nil && v.AccessDeniedError != nil { + return v.AccessDeniedError + } + + return +} + +// IsSetAccessDeniedError returns true if AccessDeniedError is not nil. +func (v *WorkflowService_ResetWorkflowExecution_Result) IsSetAccessDeniedError() bool { + return v != nil && v.AccessDeniedError != nil +} + // MethodName returns the name of the Thrift function as specified in // the IDL, for which this struct represent the result. // @@ -17292,6 +19397,8 @@ func init() { return true case *shared.WorkflowExecutionAlreadyCompletedError: return true + case *shared.AccessDeniedError: + return true default: return false } @@ -17338,6 +19445,11 @@ func init() { return nil, errors.New("WrapResponse received non-nil error type with nil value for WorkflowService_RespondActivityTaskCanceled_Result.WorkflowExecutionAlreadyCompletedError") } return &WorkflowService_RespondActivityTaskCanceled_Result{WorkflowExecutionAlreadyCompletedError: e}, nil + case *shared.AccessDeniedError: + if e == nil { + return nil, errors.New("WrapResponse received non-nil error type with nil value for WorkflowService_RespondActivityTaskCanceled_Result.AccessDeniedError") + } + return &WorkflowService_RespondActivityTaskCanceled_Result{AccessDeniedError: e}, nil } return nil, err @@ -17371,6 +19483,10 @@ func init() { err = result.WorkflowExecutionAlreadyCompletedError return } + if result.AccessDeniedError != nil { + err = result.AccessDeniedError + return + } return } @@ -17387,6 +19503,7 @@ type WorkflowService_RespondActivityTaskCanceled_Result struct { ServiceBusyError *shared.ServiceBusyError `json:"serviceBusyError,omitempty"` ClientVersionNotSupportedError *shared.ClientVersionNotSupportedError `json:"clientVersionNotSupportedError,omitempty"` WorkflowExecutionAlreadyCompletedError *shared.WorkflowExecutionAlreadyCompletedError `json:"workflowExecutionAlreadyCompletedError,omitempty"` + AccessDeniedError *shared.AccessDeniedError `json:"accessDeniedError,omitempty"` } // ToWire translates a WorkflowService_RespondActivityTaskCanceled_Result struct into a Thrift-level intermediate @@ -17406,7 +19523,7 @@ type WorkflowService_RespondActivityTaskCanceled_Result struct { // } func (v *WorkflowService_RespondActivityTaskCanceled_Result) ToWire() (wire.Value, error) { var ( - fields [7]wire.Field + fields [8]wire.Field i int = 0 w wire.Value err error @@ -17468,6 +19585,14 @@ func (v *WorkflowService_RespondActivityTaskCanceled_Result) ToWire() (wire.Valu fields[i] = wire.Field{ID: 8, Value: w} i++ } + if v.AccessDeniedError != nil { + w, err = v.AccessDeniedError.ToWire() + if err != nil { + return w, err + } + fields[i] = wire.Field{ID: 9, Value: w} + i++ + } if i > 1 { return wire.Value{}, fmt.Errorf("WorkflowService_RespondActivityTaskCanceled_Result should have at most one field: got %v fields", i) @@ -17553,6 +19678,14 @@ func (v *WorkflowService_RespondActivityTaskCanceled_Result) FromWire(w wire.Val return err } + } + case 9: + if field.Value.Type() == wire.TStruct { + v.AccessDeniedError, err = _AccessDeniedError_Read(field.Value) + if err != nil { + return err + } + } } } @@ -17579,6 +19712,9 @@ func (v *WorkflowService_RespondActivityTaskCanceled_Result) FromWire(w wire.Val if v.WorkflowExecutionAlreadyCompletedError != nil { count++ } + if v.AccessDeniedError != nil { + count++ + } if count > 1 { return fmt.Errorf("WorkflowService_RespondActivityTaskCanceled_Result should have at most one field: got %v fields", count) } @@ -17593,7 +19729,7 @@ func (v *WorkflowService_RespondActivityTaskCanceled_Result) String() string { return "" } - var fields [7]string + var fields [8]string i := 0 if v.BadRequestError != nil { fields[i] = fmt.Sprintf("BadRequestError: %v", v.BadRequestError) @@ -17623,6 +19759,10 @@ func (v *WorkflowService_RespondActivityTaskCanceled_Result) String() string { fields[i] = fmt.Sprintf("WorkflowExecutionAlreadyCompletedError: %v", v.WorkflowExecutionAlreadyCompletedError) i++ } + if v.AccessDeniedError != nil { + fields[i] = fmt.Sprintf("AccessDeniedError: %v", v.AccessDeniedError) + i++ + } return fmt.Sprintf("WorkflowService_RespondActivityTaskCanceled_Result{%v}", strings.Join(fields[:i], ", ")) } @@ -17658,6 +19798,9 @@ func (v *WorkflowService_RespondActivityTaskCanceled_Result) Equals(rhs *Workflo if !((v.WorkflowExecutionAlreadyCompletedError == nil && rhs.WorkflowExecutionAlreadyCompletedError == nil) || (v.WorkflowExecutionAlreadyCompletedError != nil && rhs.WorkflowExecutionAlreadyCompletedError != nil && v.WorkflowExecutionAlreadyCompletedError.Equals(rhs.WorkflowExecutionAlreadyCompletedError))) { return false } + if !((v.AccessDeniedError == nil && rhs.AccessDeniedError == nil) || (v.AccessDeniedError != nil && rhs.AccessDeniedError != nil && v.AccessDeniedError.Equals(rhs.AccessDeniedError))) { + return false + } return true } @@ -17689,6 +19832,9 @@ func (v *WorkflowService_RespondActivityTaskCanceled_Result) MarshalLogObject(en if v.WorkflowExecutionAlreadyCompletedError != nil { err = multierr.Append(err, enc.AddObject("workflowExecutionAlreadyCompletedError", v.WorkflowExecutionAlreadyCompletedError)) } + if v.AccessDeniedError != nil { + err = multierr.Append(err, enc.AddObject("accessDeniedError", v.AccessDeniedError)) + } return err } @@ -17797,6 +19943,21 @@ func (v *WorkflowService_RespondActivityTaskCanceled_Result) IsSetWorkflowExecut return v != nil && v.WorkflowExecutionAlreadyCompletedError != nil } +// GetAccessDeniedError returns the value of AccessDeniedError if it is set or its +// zero value if it is unset. +func (v *WorkflowService_RespondActivityTaskCanceled_Result) GetAccessDeniedError() (o *shared.AccessDeniedError) { + if v != nil && v.AccessDeniedError != nil { + return v.AccessDeniedError + } + + return +} + +// IsSetAccessDeniedError returns true if AccessDeniedError is not nil. +func (v *WorkflowService_RespondActivityTaskCanceled_Result) IsSetAccessDeniedError() bool { + return v != nil && v.AccessDeniedError != nil +} + // MethodName returns the name of the Thrift function as specified in // the IDL, for which this struct represent the result. // @@ -18043,6 +20204,8 @@ func init() { return true case *shared.WorkflowExecutionAlreadyCompletedError: return true + case *shared.AccessDeniedError: + return true default: return false } @@ -18089,6 +20252,11 @@ func init() { return nil, errors.New("WrapResponse received non-nil error type with nil value for WorkflowService_RespondActivityTaskCanceledByID_Result.WorkflowExecutionAlreadyCompletedError") } return &WorkflowService_RespondActivityTaskCanceledByID_Result{WorkflowExecutionAlreadyCompletedError: e}, nil + case *shared.AccessDeniedError: + if e == nil { + return nil, errors.New("WrapResponse received non-nil error type with nil value for WorkflowService_RespondActivityTaskCanceledByID_Result.AccessDeniedError") + } + return &WorkflowService_RespondActivityTaskCanceledByID_Result{AccessDeniedError: e}, nil } return nil, err @@ -18122,6 +20290,10 @@ func init() { err = result.WorkflowExecutionAlreadyCompletedError return } + if result.AccessDeniedError != nil { + err = result.AccessDeniedError + return + } return } @@ -18138,6 +20310,7 @@ type WorkflowService_RespondActivityTaskCanceledByID_Result struct { ServiceBusyError *shared.ServiceBusyError `json:"serviceBusyError,omitempty"` ClientVersionNotSupportedError *shared.ClientVersionNotSupportedError `json:"clientVersionNotSupportedError,omitempty"` WorkflowExecutionAlreadyCompletedError *shared.WorkflowExecutionAlreadyCompletedError `json:"workflowExecutionAlreadyCompletedError,omitempty"` + AccessDeniedError *shared.AccessDeniedError `json:"accessDeniedError,omitempty"` } // ToWire translates a WorkflowService_RespondActivityTaskCanceledByID_Result struct into a Thrift-level intermediate @@ -18157,7 +20330,7 @@ type WorkflowService_RespondActivityTaskCanceledByID_Result struct { // } func (v *WorkflowService_RespondActivityTaskCanceledByID_Result) ToWire() (wire.Value, error) { var ( - fields [7]wire.Field + fields [8]wire.Field i int = 0 w wire.Value err error @@ -18219,6 +20392,14 @@ func (v *WorkflowService_RespondActivityTaskCanceledByID_Result) ToWire() (wire. fields[i] = wire.Field{ID: 8, Value: w} i++ } + if v.AccessDeniedError != nil { + w, err = v.AccessDeniedError.ToWire() + if err != nil { + return w, err + } + fields[i] = wire.Field{ID: 9, Value: w} + i++ + } if i > 1 { return wire.Value{}, fmt.Errorf("WorkflowService_RespondActivityTaskCanceledByID_Result should have at most one field: got %v fields", i) @@ -18304,6 +20485,14 @@ func (v *WorkflowService_RespondActivityTaskCanceledByID_Result) FromWire(w wire return err } + } + case 9: + if field.Value.Type() == wire.TStruct { + v.AccessDeniedError, err = _AccessDeniedError_Read(field.Value) + if err != nil { + return err + } + } } } @@ -18330,6 +20519,9 @@ func (v *WorkflowService_RespondActivityTaskCanceledByID_Result) FromWire(w wire if v.WorkflowExecutionAlreadyCompletedError != nil { count++ } + if v.AccessDeniedError != nil { + count++ + } if count > 1 { return fmt.Errorf("WorkflowService_RespondActivityTaskCanceledByID_Result should have at most one field: got %v fields", count) } @@ -18344,7 +20536,7 @@ func (v *WorkflowService_RespondActivityTaskCanceledByID_Result) String() string return "" } - var fields [7]string + var fields [8]string i := 0 if v.BadRequestError != nil { fields[i] = fmt.Sprintf("BadRequestError: %v", v.BadRequestError) @@ -18374,6 +20566,10 @@ func (v *WorkflowService_RespondActivityTaskCanceledByID_Result) String() string fields[i] = fmt.Sprintf("WorkflowExecutionAlreadyCompletedError: %v", v.WorkflowExecutionAlreadyCompletedError) i++ } + if v.AccessDeniedError != nil { + fields[i] = fmt.Sprintf("AccessDeniedError: %v", v.AccessDeniedError) + i++ + } return fmt.Sprintf("WorkflowService_RespondActivityTaskCanceledByID_Result{%v}", strings.Join(fields[:i], ", ")) } @@ -18409,6 +20605,9 @@ func (v *WorkflowService_RespondActivityTaskCanceledByID_Result) Equals(rhs *Wor if !((v.WorkflowExecutionAlreadyCompletedError == nil && rhs.WorkflowExecutionAlreadyCompletedError == nil) || (v.WorkflowExecutionAlreadyCompletedError != nil && rhs.WorkflowExecutionAlreadyCompletedError != nil && v.WorkflowExecutionAlreadyCompletedError.Equals(rhs.WorkflowExecutionAlreadyCompletedError))) { return false } + if !((v.AccessDeniedError == nil && rhs.AccessDeniedError == nil) || (v.AccessDeniedError != nil && rhs.AccessDeniedError != nil && v.AccessDeniedError.Equals(rhs.AccessDeniedError))) { + return false + } return true } @@ -18440,6 +20639,9 @@ func (v *WorkflowService_RespondActivityTaskCanceledByID_Result) MarshalLogObjec if v.WorkflowExecutionAlreadyCompletedError != nil { err = multierr.Append(err, enc.AddObject("workflowExecutionAlreadyCompletedError", v.WorkflowExecutionAlreadyCompletedError)) } + if v.AccessDeniedError != nil { + err = multierr.Append(err, enc.AddObject("accessDeniedError", v.AccessDeniedError)) + } return err } @@ -18548,6 +20750,21 @@ func (v *WorkflowService_RespondActivityTaskCanceledByID_Result) IsSetWorkflowEx return v != nil && v.WorkflowExecutionAlreadyCompletedError != nil } +// GetAccessDeniedError returns the value of AccessDeniedError if it is set or its +// zero value if it is unset. +func (v *WorkflowService_RespondActivityTaskCanceledByID_Result) GetAccessDeniedError() (o *shared.AccessDeniedError) { + if v != nil && v.AccessDeniedError != nil { + return v.AccessDeniedError + } + + return +} + +// IsSetAccessDeniedError returns true if AccessDeniedError is not nil. +func (v *WorkflowService_RespondActivityTaskCanceledByID_Result) IsSetAccessDeniedError() bool { + return v != nil && v.AccessDeniedError != nil +} + // MethodName returns the name of the Thrift function as specified in // the IDL, for which this struct represent the result. // @@ -18794,6 +21011,8 @@ func init() { return true case *shared.WorkflowExecutionAlreadyCompletedError: return true + case *shared.AccessDeniedError: + return true default: return false } @@ -18840,6 +21059,11 @@ func init() { return nil, errors.New("WrapResponse received non-nil error type with nil value for WorkflowService_RespondActivityTaskCompleted_Result.WorkflowExecutionAlreadyCompletedError") } return &WorkflowService_RespondActivityTaskCompleted_Result{WorkflowExecutionAlreadyCompletedError: e}, nil + case *shared.AccessDeniedError: + if e == nil { + return nil, errors.New("WrapResponse received non-nil error type with nil value for WorkflowService_RespondActivityTaskCompleted_Result.AccessDeniedError") + } + return &WorkflowService_RespondActivityTaskCompleted_Result{AccessDeniedError: e}, nil } return nil, err @@ -18873,6 +21097,10 @@ func init() { err = result.WorkflowExecutionAlreadyCompletedError return } + if result.AccessDeniedError != nil { + err = result.AccessDeniedError + return + } return } @@ -18889,6 +21117,7 @@ type WorkflowService_RespondActivityTaskCompleted_Result struct { ServiceBusyError *shared.ServiceBusyError `json:"serviceBusyError,omitempty"` ClientVersionNotSupportedError *shared.ClientVersionNotSupportedError `json:"clientVersionNotSupportedError,omitempty"` WorkflowExecutionAlreadyCompletedError *shared.WorkflowExecutionAlreadyCompletedError `json:"workflowExecutionAlreadyCompletedError,omitempty"` + AccessDeniedError *shared.AccessDeniedError `json:"accessDeniedError,omitempty"` } // ToWire translates a WorkflowService_RespondActivityTaskCompleted_Result struct into a Thrift-level intermediate @@ -18908,7 +21137,7 @@ type WorkflowService_RespondActivityTaskCompleted_Result struct { // } func (v *WorkflowService_RespondActivityTaskCompleted_Result) ToWire() (wire.Value, error) { var ( - fields [7]wire.Field + fields [8]wire.Field i int = 0 w wire.Value err error @@ -18970,6 +21199,14 @@ func (v *WorkflowService_RespondActivityTaskCompleted_Result) ToWire() (wire.Val fields[i] = wire.Field{ID: 8, Value: w} i++ } + if v.AccessDeniedError != nil { + w, err = v.AccessDeniedError.ToWire() + if err != nil { + return w, err + } + fields[i] = wire.Field{ID: 9, Value: w} + i++ + } if i > 1 { return wire.Value{}, fmt.Errorf("WorkflowService_RespondActivityTaskCompleted_Result should have at most one field: got %v fields", i) @@ -19055,6 +21292,14 @@ func (v *WorkflowService_RespondActivityTaskCompleted_Result) FromWire(w wire.Va return err } + } + case 9: + if field.Value.Type() == wire.TStruct { + v.AccessDeniedError, err = _AccessDeniedError_Read(field.Value) + if err != nil { + return err + } + } } } @@ -19081,6 +21326,9 @@ func (v *WorkflowService_RespondActivityTaskCompleted_Result) FromWire(w wire.Va if v.WorkflowExecutionAlreadyCompletedError != nil { count++ } + if v.AccessDeniedError != nil { + count++ + } if count > 1 { return fmt.Errorf("WorkflowService_RespondActivityTaskCompleted_Result should have at most one field: got %v fields", count) } @@ -19095,7 +21343,7 @@ func (v *WorkflowService_RespondActivityTaskCompleted_Result) String() string { return "" } - var fields [7]string + var fields [8]string i := 0 if v.BadRequestError != nil { fields[i] = fmt.Sprintf("BadRequestError: %v", v.BadRequestError) @@ -19125,6 +21373,10 @@ func (v *WorkflowService_RespondActivityTaskCompleted_Result) String() string { fields[i] = fmt.Sprintf("WorkflowExecutionAlreadyCompletedError: %v", v.WorkflowExecutionAlreadyCompletedError) i++ } + if v.AccessDeniedError != nil { + fields[i] = fmt.Sprintf("AccessDeniedError: %v", v.AccessDeniedError) + i++ + } return fmt.Sprintf("WorkflowService_RespondActivityTaskCompleted_Result{%v}", strings.Join(fields[:i], ", ")) } @@ -19160,6 +21412,9 @@ func (v *WorkflowService_RespondActivityTaskCompleted_Result) Equals(rhs *Workfl if !((v.WorkflowExecutionAlreadyCompletedError == nil && rhs.WorkflowExecutionAlreadyCompletedError == nil) || (v.WorkflowExecutionAlreadyCompletedError != nil && rhs.WorkflowExecutionAlreadyCompletedError != nil && v.WorkflowExecutionAlreadyCompletedError.Equals(rhs.WorkflowExecutionAlreadyCompletedError))) { return false } + if !((v.AccessDeniedError == nil && rhs.AccessDeniedError == nil) || (v.AccessDeniedError != nil && rhs.AccessDeniedError != nil && v.AccessDeniedError.Equals(rhs.AccessDeniedError))) { + return false + } return true } @@ -19191,6 +21446,9 @@ func (v *WorkflowService_RespondActivityTaskCompleted_Result) MarshalLogObject(e if v.WorkflowExecutionAlreadyCompletedError != nil { err = multierr.Append(err, enc.AddObject("workflowExecutionAlreadyCompletedError", v.WorkflowExecutionAlreadyCompletedError)) } + if v.AccessDeniedError != nil { + err = multierr.Append(err, enc.AddObject("accessDeniedError", v.AccessDeniedError)) + } return err } @@ -19299,6 +21557,21 @@ func (v *WorkflowService_RespondActivityTaskCompleted_Result) IsSetWorkflowExecu return v != nil && v.WorkflowExecutionAlreadyCompletedError != nil } +// GetAccessDeniedError returns the value of AccessDeniedError if it is set or its +// zero value if it is unset. +func (v *WorkflowService_RespondActivityTaskCompleted_Result) GetAccessDeniedError() (o *shared.AccessDeniedError) { + if v != nil && v.AccessDeniedError != nil { + return v.AccessDeniedError + } + + return +} + +// IsSetAccessDeniedError returns true if AccessDeniedError is not nil. +func (v *WorkflowService_RespondActivityTaskCompleted_Result) IsSetAccessDeniedError() bool { + return v != nil && v.AccessDeniedError != nil +} + // MethodName returns the name of the Thrift function as specified in // the IDL, for which this struct represent the result. // @@ -19545,6 +21818,8 @@ func init() { return true case *shared.WorkflowExecutionAlreadyCompletedError: return true + case *shared.AccessDeniedError: + return true default: return false } @@ -19591,6 +21866,11 @@ func init() { return nil, errors.New("WrapResponse received non-nil error type with nil value for WorkflowService_RespondActivityTaskCompletedByID_Result.WorkflowExecutionAlreadyCompletedError") } return &WorkflowService_RespondActivityTaskCompletedByID_Result{WorkflowExecutionAlreadyCompletedError: e}, nil + case *shared.AccessDeniedError: + if e == nil { + return nil, errors.New("WrapResponse received non-nil error type with nil value for WorkflowService_RespondActivityTaskCompletedByID_Result.AccessDeniedError") + } + return &WorkflowService_RespondActivityTaskCompletedByID_Result{AccessDeniedError: e}, nil } return nil, err @@ -19624,6 +21904,10 @@ func init() { err = result.WorkflowExecutionAlreadyCompletedError return } + if result.AccessDeniedError != nil { + err = result.AccessDeniedError + return + } return } @@ -19640,6 +21924,7 @@ type WorkflowService_RespondActivityTaskCompletedByID_Result struct { ServiceBusyError *shared.ServiceBusyError `json:"serviceBusyError,omitempty"` ClientVersionNotSupportedError *shared.ClientVersionNotSupportedError `json:"clientVersionNotSupportedError,omitempty"` WorkflowExecutionAlreadyCompletedError *shared.WorkflowExecutionAlreadyCompletedError `json:"workflowExecutionAlreadyCompletedError,omitempty"` + AccessDeniedError *shared.AccessDeniedError `json:"accessDeniedError,omitempty"` } // ToWire translates a WorkflowService_RespondActivityTaskCompletedByID_Result struct into a Thrift-level intermediate @@ -19659,7 +21944,7 @@ type WorkflowService_RespondActivityTaskCompletedByID_Result struct { // } func (v *WorkflowService_RespondActivityTaskCompletedByID_Result) ToWire() (wire.Value, error) { var ( - fields [7]wire.Field + fields [8]wire.Field i int = 0 w wire.Value err error @@ -19721,6 +22006,14 @@ func (v *WorkflowService_RespondActivityTaskCompletedByID_Result) ToWire() (wire fields[i] = wire.Field{ID: 8, Value: w} i++ } + if v.AccessDeniedError != nil { + w, err = v.AccessDeniedError.ToWire() + if err != nil { + return w, err + } + fields[i] = wire.Field{ID: 9, Value: w} + i++ + } if i > 1 { return wire.Value{}, fmt.Errorf("WorkflowService_RespondActivityTaskCompletedByID_Result should have at most one field: got %v fields", i) @@ -19806,6 +22099,14 @@ func (v *WorkflowService_RespondActivityTaskCompletedByID_Result) FromWire(w wir return err } + } + case 9: + if field.Value.Type() == wire.TStruct { + v.AccessDeniedError, err = _AccessDeniedError_Read(field.Value) + if err != nil { + return err + } + } } } @@ -19832,6 +22133,9 @@ func (v *WorkflowService_RespondActivityTaskCompletedByID_Result) FromWire(w wir if v.WorkflowExecutionAlreadyCompletedError != nil { count++ } + if v.AccessDeniedError != nil { + count++ + } if count > 1 { return fmt.Errorf("WorkflowService_RespondActivityTaskCompletedByID_Result should have at most one field: got %v fields", count) } @@ -19846,7 +22150,7 @@ func (v *WorkflowService_RespondActivityTaskCompletedByID_Result) String() strin return "" } - var fields [7]string + var fields [8]string i := 0 if v.BadRequestError != nil { fields[i] = fmt.Sprintf("BadRequestError: %v", v.BadRequestError) @@ -19876,6 +22180,10 @@ func (v *WorkflowService_RespondActivityTaskCompletedByID_Result) String() strin fields[i] = fmt.Sprintf("WorkflowExecutionAlreadyCompletedError: %v", v.WorkflowExecutionAlreadyCompletedError) i++ } + if v.AccessDeniedError != nil { + fields[i] = fmt.Sprintf("AccessDeniedError: %v", v.AccessDeniedError) + i++ + } return fmt.Sprintf("WorkflowService_RespondActivityTaskCompletedByID_Result{%v}", strings.Join(fields[:i], ", ")) } @@ -19911,6 +22219,9 @@ func (v *WorkflowService_RespondActivityTaskCompletedByID_Result) Equals(rhs *Wo if !((v.WorkflowExecutionAlreadyCompletedError == nil && rhs.WorkflowExecutionAlreadyCompletedError == nil) || (v.WorkflowExecutionAlreadyCompletedError != nil && rhs.WorkflowExecutionAlreadyCompletedError != nil && v.WorkflowExecutionAlreadyCompletedError.Equals(rhs.WorkflowExecutionAlreadyCompletedError))) { return false } + if !((v.AccessDeniedError == nil && rhs.AccessDeniedError == nil) || (v.AccessDeniedError != nil && rhs.AccessDeniedError != nil && v.AccessDeniedError.Equals(rhs.AccessDeniedError))) { + return false + } return true } @@ -19942,6 +22253,9 @@ func (v *WorkflowService_RespondActivityTaskCompletedByID_Result) MarshalLogObje if v.WorkflowExecutionAlreadyCompletedError != nil { err = multierr.Append(err, enc.AddObject("workflowExecutionAlreadyCompletedError", v.WorkflowExecutionAlreadyCompletedError)) } + if v.AccessDeniedError != nil { + err = multierr.Append(err, enc.AddObject("accessDeniedError", v.AccessDeniedError)) + } return err } @@ -20050,6 +22364,21 @@ func (v *WorkflowService_RespondActivityTaskCompletedByID_Result) IsSetWorkflowE return v != nil && v.WorkflowExecutionAlreadyCompletedError != nil } +// GetAccessDeniedError returns the value of AccessDeniedError if it is set or its +// zero value if it is unset. +func (v *WorkflowService_RespondActivityTaskCompletedByID_Result) GetAccessDeniedError() (o *shared.AccessDeniedError) { + if v != nil && v.AccessDeniedError != nil { + return v.AccessDeniedError + } + + return +} + +// IsSetAccessDeniedError returns true if AccessDeniedError is not nil. +func (v *WorkflowService_RespondActivityTaskCompletedByID_Result) IsSetAccessDeniedError() bool { + return v != nil && v.AccessDeniedError != nil +} + // MethodName returns the name of the Thrift function as specified in // the IDL, for which this struct represent the result. // @@ -20296,6 +22625,8 @@ func init() { return true case *shared.WorkflowExecutionAlreadyCompletedError: return true + case *shared.AccessDeniedError: + return true default: return false } @@ -20341,7 +22672,12 @@ func init() { if e == nil { return nil, errors.New("WrapResponse received non-nil error type with nil value for WorkflowService_RespondActivityTaskFailed_Result.WorkflowExecutionAlreadyCompletedError") } - return &WorkflowService_RespondActivityTaskFailed_Result{WorkflowExecutionAlreadyCompletedError: e}, nil + return &WorkflowService_RespondActivityTaskFailed_Result{WorkflowExecutionAlreadyCompletedError: e}, nil + case *shared.AccessDeniedError: + if e == nil { + return nil, errors.New("WrapResponse received non-nil error type with nil value for WorkflowService_RespondActivityTaskFailed_Result.AccessDeniedError") + } + return &WorkflowService_RespondActivityTaskFailed_Result{AccessDeniedError: e}, nil } return nil, err @@ -20375,6 +22711,10 @@ func init() { err = result.WorkflowExecutionAlreadyCompletedError return } + if result.AccessDeniedError != nil { + err = result.AccessDeniedError + return + } return } @@ -20391,6 +22731,7 @@ type WorkflowService_RespondActivityTaskFailed_Result struct { ServiceBusyError *shared.ServiceBusyError `json:"serviceBusyError,omitempty"` ClientVersionNotSupportedError *shared.ClientVersionNotSupportedError `json:"clientVersionNotSupportedError,omitempty"` WorkflowExecutionAlreadyCompletedError *shared.WorkflowExecutionAlreadyCompletedError `json:"workflowExecutionAlreadyCompletedError,omitempty"` + AccessDeniedError *shared.AccessDeniedError `json:"accessDeniedError,omitempty"` } // ToWire translates a WorkflowService_RespondActivityTaskFailed_Result struct into a Thrift-level intermediate @@ -20410,7 +22751,7 @@ type WorkflowService_RespondActivityTaskFailed_Result struct { // } func (v *WorkflowService_RespondActivityTaskFailed_Result) ToWire() (wire.Value, error) { var ( - fields [7]wire.Field + fields [8]wire.Field i int = 0 w wire.Value err error @@ -20472,6 +22813,14 @@ func (v *WorkflowService_RespondActivityTaskFailed_Result) ToWire() (wire.Value, fields[i] = wire.Field{ID: 8, Value: w} i++ } + if v.AccessDeniedError != nil { + w, err = v.AccessDeniedError.ToWire() + if err != nil { + return w, err + } + fields[i] = wire.Field{ID: 9, Value: w} + i++ + } if i > 1 { return wire.Value{}, fmt.Errorf("WorkflowService_RespondActivityTaskFailed_Result should have at most one field: got %v fields", i) @@ -20557,6 +22906,14 @@ func (v *WorkflowService_RespondActivityTaskFailed_Result) FromWire(w wire.Value return err } + } + case 9: + if field.Value.Type() == wire.TStruct { + v.AccessDeniedError, err = _AccessDeniedError_Read(field.Value) + if err != nil { + return err + } + } } } @@ -20583,6 +22940,9 @@ func (v *WorkflowService_RespondActivityTaskFailed_Result) FromWire(w wire.Value if v.WorkflowExecutionAlreadyCompletedError != nil { count++ } + if v.AccessDeniedError != nil { + count++ + } if count > 1 { return fmt.Errorf("WorkflowService_RespondActivityTaskFailed_Result should have at most one field: got %v fields", count) } @@ -20597,7 +22957,7 @@ func (v *WorkflowService_RespondActivityTaskFailed_Result) String() string { return "" } - var fields [7]string + var fields [8]string i := 0 if v.BadRequestError != nil { fields[i] = fmt.Sprintf("BadRequestError: %v", v.BadRequestError) @@ -20627,6 +22987,10 @@ func (v *WorkflowService_RespondActivityTaskFailed_Result) String() string { fields[i] = fmt.Sprintf("WorkflowExecutionAlreadyCompletedError: %v", v.WorkflowExecutionAlreadyCompletedError) i++ } + if v.AccessDeniedError != nil { + fields[i] = fmt.Sprintf("AccessDeniedError: %v", v.AccessDeniedError) + i++ + } return fmt.Sprintf("WorkflowService_RespondActivityTaskFailed_Result{%v}", strings.Join(fields[:i], ", ")) } @@ -20662,6 +23026,9 @@ func (v *WorkflowService_RespondActivityTaskFailed_Result) Equals(rhs *WorkflowS if !((v.WorkflowExecutionAlreadyCompletedError == nil && rhs.WorkflowExecutionAlreadyCompletedError == nil) || (v.WorkflowExecutionAlreadyCompletedError != nil && rhs.WorkflowExecutionAlreadyCompletedError != nil && v.WorkflowExecutionAlreadyCompletedError.Equals(rhs.WorkflowExecutionAlreadyCompletedError))) { return false } + if !((v.AccessDeniedError == nil && rhs.AccessDeniedError == nil) || (v.AccessDeniedError != nil && rhs.AccessDeniedError != nil && v.AccessDeniedError.Equals(rhs.AccessDeniedError))) { + return false + } return true } @@ -20693,6 +23060,9 @@ func (v *WorkflowService_RespondActivityTaskFailed_Result) MarshalLogObject(enc if v.WorkflowExecutionAlreadyCompletedError != nil { err = multierr.Append(err, enc.AddObject("workflowExecutionAlreadyCompletedError", v.WorkflowExecutionAlreadyCompletedError)) } + if v.AccessDeniedError != nil { + err = multierr.Append(err, enc.AddObject("accessDeniedError", v.AccessDeniedError)) + } return err } @@ -20801,6 +23171,21 @@ func (v *WorkflowService_RespondActivityTaskFailed_Result) IsSetWorkflowExecutio return v != nil && v.WorkflowExecutionAlreadyCompletedError != nil } +// GetAccessDeniedError returns the value of AccessDeniedError if it is set or its +// zero value if it is unset. +func (v *WorkflowService_RespondActivityTaskFailed_Result) GetAccessDeniedError() (o *shared.AccessDeniedError) { + if v != nil && v.AccessDeniedError != nil { + return v.AccessDeniedError + } + + return +} + +// IsSetAccessDeniedError returns true if AccessDeniedError is not nil. +func (v *WorkflowService_RespondActivityTaskFailed_Result) IsSetAccessDeniedError() bool { + return v != nil && v.AccessDeniedError != nil +} + // MethodName returns the name of the Thrift function as specified in // the IDL, for which this struct represent the result. // @@ -21047,6 +23432,8 @@ func init() { return true case *shared.WorkflowExecutionAlreadyCompletedError: return true + case *shared.AccessDeniedError: + return true default: return false } @@ -21093,6 +23480,11 @@ func init() { return nil, errors.New("WrapResponse received non-nil error type with nil value for WorkflowService_RespondActivityTaskFailedByID_Result.WorkflowExecutionAlreadyCompletedError") } return &WorkflowService_RespondActivityTaskFailedByID_Result{WorkflowExecutionAlreadyCompletedError: e}, nil + case *shared.AccessDeniedError: + if e == nil { + return nil, errors.New("WrapResponse received non-nil error type with nil value for WorkflowService_RespondActivityTaskFailedByID_Result.AccessDeniedError") + } + return &WorkflowService_RespondActivityTaskFailedByID_Result{AccessDeniedError: e}, nil } return nil, err @@ -21126,6 +23518,10 @@ func init() { err = result.WorkflowExecutionAlreadyCompletedError return } + if result.AccessDeniedError != nil { + err = result.AccessDeniedError + return + } return } @@ -21142,6 +23538,7 @@ type WorkflowService_RespondActivityTaskFailedByID_Result struct { ServiceBusyError *shared.ServiceBusyError `json:"serviceBusyError,omitempty"` ClientVersionNotSupportedError *shared.ClientVersionNotSupportedError `json:"clientVersionNotSupportedError,omitempty"` WorkflowExecutionAlreadyCompletedError *shared.WorkflowExecutionAlreadyCompletedError `json:"workflowExecutionAlreadyCompletedError,omitempty"` + AccessDeniedError *shared.AccessDeniedError `json:"accessDeniedError,omitempty"` } // ToWire translates a WorkflowService_RespondActivityTaskFailedByID_Result struct into a Thrift-level intermediate @@ -21161,7 +23558,7 @@ type WorkflowService_RespondActivityTaskFailedByID_Result struct { // } func (v *WorkflowService_RespondActivityTaskFailedByID_Result) ToWire() (wire.Value, error) { var ( - fields [7]wire.Field + fields [8]wire.Field i int = 0 w wire.Value err error @@ -21223,6 +23620,14 @@ func (v *WorkflowService_RespondActivityTaskFailedByID_Result) ToWire() (wire.Va fields[i] = wire.Field{ID: 8, Value: w} i++ } + if v.AccessDeniedError != nil { + w, err = v.AccessDeniedError.ToWire() + if err != nil { + return w, err + } + fields[i] = wire.Field{ID: 9, Value: w} + i++ + } if i > 1 { return wire.Value{}, fmt.Errorf("WorkflowService_RespondActivityTaskFailedByID_Result should have at most one field: got %v fields", i) @@ -21308,6 +23713,14 @@ func (v *WorkflowService_RespondActivityTaskFailedByID_Result) FromWire(w wire.V return err } + } + case 9: + if field.Value.Type() == wire.TStruct { + v.AccessDeniedError, err = _AccessDeniedError_Read(field.Value) + if err != nil { + return err + } + } } } @@ -21334,6 +23747,9 @@ func (v *WorkflowService_RespondActivityTaskFailedByID_Result) FromWire(w wire.V if v.WorkflowExecutionAlreadyCompletedError != nil { count++ } + if v.AccessDeniedError != nil { + count++ + } if count > 1 { return fmt.Errorf("WorkflowService_RespondActivityTaskFailedByID_Result should have at most one field: got %v fields", count) } @@ -21348,7 +23764,7 @@ func (v *WorkflowService_RespondActivityTaskFailedByID_Result) String() string { return "" } - var fields [7]string + var fields [8]string i := 0 if v.BadRequestError != nil { fields[i] = fmt.Sprintf("BadRequestError: %v", v.BadRequestError) @@ -21378,6 +23794,10 @@ func (v *WorkflowService_RespondActivityTaskFailedByID_Result) String() string { fields[i] = fmt.Sprintf("WorkflowExecutionAlreadyCompletedError: %v", v.WorkflowExecutionAlreadyCompletedError) i++ } + if v.AccessDeniedError != nil { + fields[i] = fmt.Sprintf("AccessDeniedError: %v", v.AccessDeniedError) + i++ + } return fmt.Sprintf("WorkflowService_RespondActivityTaskFailedByID_Result{%v}", strings.Join(fields[:i], ", ")) } @@ -21413,6 +23833,9 @@ func (v *WorkflowService_RespondActivityTaskFailedByID_Result) Equals(rhs *Workf if !((v.WorkflowExecutionAlreadyCompletedError == nil && rhs.WorkflowExecutionAlreadyCompletedError == nil) || (v.WorkflowExecutionAlreadyCompletedError != nil && rhs.WorkflowExecutionAlreadyCompletedError != nil && v.WorkflowExecutionAlreadyCompletedError.Equals(rhs.WorkflowExecutionAlreadyCompletedError))) { return false } + if !((v.AccessDeniedError == nil && rhs.AccessDeniedError == nil) || (v.AccessDeniedError != nil && rhs.AccessDeniedError != nil && v.AccessDeniedError.Equals(rhs.AccessDeniedError))) { + return false + } return true } @@ -21444,6 +23867,9 @@ func (v *WorkflowService_RespondActivityTaskFailedByID_Result) MarshalLogObject( if v.WorkflowExecutionAlreadyCompletedError != nil { err = multierr.Append(err, enc.AddObject("workflowExecutionAlreadyCompletedError", v.WorkflowExecutionAlreadyCompletedError)) } + if v.AccessDeniedError != nil { + err = multierr.Append(err, enc.AddObject("accessDeniedError", v.AccessDeniedError)) + } return err } @@ -21552,6 +23978,21 @@ func (v *WorkflowService_RespondActivityTaskFailedByID_Result) IsSetWorkflowExec return v != nil && v.WorkflowExecutionAlreadyCompletedError != nil } +// GetAccessDeniedError returns the value of AccessDeniedError if it is set or its +// zero value if it is unset. +func (v *WorkflowService_RespondActivityTaskFailedByID_Result) GetAccessDeniedError() (o *shared.AccessDeniedError) { + if v != nil && v.AccessDeniedError != nil { + return v.AccessDeniedError + } + + return +} + +// IsSetAccessDeniedError returns true if AccessDeniedError is not nil. +func (v *WorkflowService_RespondActivityTaskFailedByID_Result) IsSetAccessDeniedError() bool { + return v != nil && v.AccessDeniedError != nil +} + // MethodName returns the name of the Thrift function as specified in // the IDL, for which this struct represent the result. // @@ -21797,6 +24238,8 @@ func init() { return true case *shared.WorkflowExecutionAlreadyCompletedError: return true + case *shared.AccessDeniedError: + return true default: return false } @@ -21843,6 +24286,11 @@ func init() { return nil, errors.New("WrapResponse received non-nil error type with nil value for WorkflowService_RespondDecisionTaskCompleted_Result.WorkflowExecutionAlreadyCompletedError") } return &WorkflowService_RespondDecisionTaskCompleted_Result{WorkflowExecutionAlreadyCompletedError: e}, nil + case *shared.AccessDeniedError: + if e == nil { + return nil, errors.New("WrapResponse received non-nil error type with nil value for WorkflowService_RespondDecisionTaskCompleted_Result.AccessDeniedError") + } + return &WorkflowService_RespondDecisionTaskCompleted_Result{AccessDeniedError: e}, nil } return nil, err @@ -21876,6 +24324,10 @@ func init() { err = result.WorkflowExecutionAlreadyCompletedError return } + if result.AccessDeniedError != nil { + err = result.AccessDeniedError + return + } if result.Success != nil { success = result.Success @@ -21903,6 +24355,7 @@ type WorkflowService_RespondDecisionTaskCompleted_Result struct { ServiceBusyError *shared.ServiceBusyError `json:"serviceBusyError,omitempty"` ClientVersionNotSupportedError *shared.ClientVersionNotSupportedError `json:"clientVersionNotSupportedError,omitempty"` WorkflowExecutionAlreadyCompletedError *shared.WorkflowExecutionAlreadyCompletedError `json:"workflowExecutionAlreadyCompletedError,omitempty"` + AccessDeniedError *shared.AccessDeniedError `json:"accessDeniedError,omitempty"` } // ToWire translates a WorkflowService_RespondDecisionTaskCompleted_Result struct into a Thrift-level intermediate @@ -21922,7 +24375,7 @@ type WorkflowService_RespondDecisionTaskCompleted_Result struct { // } func (v *WorkflowService_RespondDecisionTaskCompleted_Result) ToWire() (wire.Value, error) { var ( - fields [8]wire.Field + fields [9]wire.Field i int = 0 w wire.Value err error @@ -21992,6 +24445,14 @@ func (v *WorkflowService_RespondDecisionTaskCompleted_Result) ToWire() (wire.Val fields[i] = wire.Field{ID: 8, Value: w} i++ } + if v.AccessDeniedError != nil { + w, err = v.AccessDeniedError.ToWire() + if err != nil { + return w, err + } + fields[i] = wire.Field{ID: 9, Value: w} + i++ + } if i != 1 { return wire.Value{}, fmt.Errorf("WorkflowService_RespondDecisionTaskCompleted_Result should have exactly one field: got %v fields", i) @@ -22091,6 +24552,14 @@ func (v *WorkflowService_RespondDecisionTaskCompleted_Result) FromWire(w wire.Va return err } + } + case 9: + if field.Value.Type() == wire.TStruct { + v.AccessDeniedError, err = _AccessDeniedError_Read(field.Value) + if err != nil { + return err + } + } } } @@ -22120,6 +24589,9 @@ func (v *WorkflowService_RespondDecisionTaskCompleted_Result) FromWire(w wire.Va if v.WorkflowExecutionAlreadyCompletedError != nil { count++ } + if v.AccessDeniedError != nil { + count++ + } if count != 1 { return fmt.Errorf("WorkflowService_RespondDecisionTaskCompleted_Result should have exactly one field: got %v fields", count) } @@ -22134,7 +24606,7 @@ func (v *WorkflowService_RespondDecisionTaskCompleted_Result) String() string { return "" } - var fields [8]string + var fields [9]string i := 0 if v.Success != nil { fields[i] = fmt.Sprintf("Success: %v", v.Success) @@ -22168,6 +24640,10 @@ func (v *WorkflowService_RespondDecisionTaskCompleted_Result) String() string { fields[i] = fmt.Sprintf("WorkflowExecutionAlreadyCompletedError: %v", v.WorkflowExecutionAlreadyCompletedError) i++ } + if v.AccessDeniedError != nil { + fields[i] = fmt.Sprintf("AccessDeniedError: %v", v.AccessDeniedError) + i++ + } return fmt.Sprintf("WorkflowService_RespondDecisionTaskCompleted_Result{%v}", strings.Join(fields[:i], ", ")) } @@ -22206,6 +24682,9 @@ func (v *WorkflowService_RespondDecisionTaskCompleted_Result) Equals(rhs *Workfl if !((v.WorkflowExecutionAlreadyCompletedError == nil && rhs.WorkflowExecutionAlreadyCompletedError == nil) || (v.WorkflowExecutionAlreadyCompletedError != nil && rhs.WorkflowExecutionAlreadyCompletedError != nil && v.WorkflowExecutionAlreadyCompletedError.Equals(rhs.WorkflowExecutionAlreadyCompletedError))) { return false } + if !((v.AccessDeniedError == nil && rhs.AccessDeniedError == nil) || (v.AccessDeniedError != nil && rhs.AccessDeniedError != nil && v.AccessDeniedError.Equals(rhs.AccessDeniedError))) { + return false + } return true } @@ -22240,6 +24719,9 @@ func (v *WorkflowService_RespondDecisionTaskCompleted_Result) MarshalLogObject(e if v.WorkflowExecutionAlreadyCompletedError != nil { err = multierr.Append(err, enc.AddObject("workflowExecutionAlreadyCompletedError", v.WorkflowExecutionAlreadyCompletedError)) } + if v.AccessDeniedError != nil { + err = multierr.Append(err, enc.AddObject("accessDeniedError", v.AccessDeniedError)) + } return err } @@ -22363,6 +24845,21 @@ func (v *WorkflowService_RespondDecisionTaskCompleted_Result) IsSetWorkflowExecu return v != nil && v.WorkflowExecutionAlreadyCompletedError != nil } +// GetAccessDeniedError returns the value of AccessDeniedError if it is set or its +// zero value if it is unset. +func (v *WorkflowService_RespondDecisionTaskCompleted_Result) GetAccessDeniedError() (o *shared.AccessDeniedError) { + if v != nil && v.AccessDeniedError != nil { + return v.AccessDeniedError + } + + return +} + +// IsSetAccessDeniedError returns true if AccessDeniedError is not nil. +func (v *WorkflowService_RespondDecisionTaskCompleted_Result) IsSetAccessDeniedError() bool { + return v != nil && v.AccessDeniedError != nil +} + // MethodName returns the name of the Thrift function as specified in // the IDL, for which this struct represent the result. // @@ -22609,6 +25106,8 @@ func init() { return true case *shared.WorkflowExecutionAlreadyCompletedError: return true + case *shared.AccessDeniedError: + return true default: return false } @@ -22655,6 +25154,11 @@ func init() { return nil, errors.New("WrapResponse received non-nil error type with nil value for WorkflowService_RespondDecisionTaskFailed_Result.WorkflowExecutionAlreadyCompletedError") } return &WorkflowService_RespondDecisionTaskFailed_Result{WorkflowExecutionAlreadyCompletedError: e}, nil + case *shared.AccessDeniedError: + if e == nil { + return nil, errors.New("WrapResponse received non-nil error type with nil value for WorkflowService_RespondDecisionTaskFailed_Result.AccessDeniedError") + } + return &WorkflowService_RespondDecisionTaskFailed_Result{AccessDeniedError: e}, nil } return nil, err @@ -22688,6 +25192,10 @@ func init() { err = result.WorkflowExecutionAlreadyCompletedError return } + if result.AccessDeniedError != nil { + err = result.AccessDeniedError + return + } return } @@ -22704,6 +25212,7 @@ type WorkflowService_RespondDecisionTaskFailed_Result struct { ServiceBusyError *shared.ServiceBusyError `json:"serviceBusyError,omitempty"` ClientVersionNotSupportedError *shared.ClientVersionNotSupportedError `json:"clientVersionNotSupportedError,omitempty"` WorkflowExecutionAlreadyCompletedError *shared.WorkflowExecutionAlreadyCompletedError `json:"workflowExecutionAlreadyCompletedError,omitempty"` + AccessDeniedError *shared.AccessDeniedError `json:"accessDeniedError,omitempty"` } // ToWire translates a WorkflowService_RespondDecisionTaskFailed_Result struct into a Thrift-level intermediate @@ -22723,7 +25232,7 @@ type WorkflowService_RespondDecisionTaskFailed_Result struct { // } func (v *WorkflowService_RespondDecisionTaskFailed_Result) ToWire() (wire.Value, error) { var ( - fields [7]wire.Field + fields [8]wire.Field i int = 0 w wire.Value err error @@ -22785,6 +25294,14 @@ func (v *WorkflowService_RespondDecisionTaskFailed_Result) ToWire() (wire.Value, fields[i] = wire.Field{ID: 8, Value: w} i++ } + if v.AccessDeniedError != nil { + w, err = v.AccessDeniedError.ToWire() + if err != nil { + return w, err + } + fields[i] = wire.Field{ID: 9, Value: w} + i++ + } if i > 1 { return wire.Value{}, fmt.Errorf("WorkflowService_RespondDecisionTaskFailed_Result should have at most one field: got %v fields", i) @@ -22870,6 +25387,14 @@ func (v *WorkflowService_RespondDecisionTaskFailed_Result) FromWire(w wire.Value return err } + } + case 9: + if field.Value.Type() == wire.TStruct { + v.AccessDeniedError, err = _AccessDeniedError_Read(field.Value) + if err != nil { + return err + } + } } } @@ -22896,6 +25421,9 @@ func (v *WorkflowService_RespondDecisionTaskFailed_Result) FromWire(w wire.Value if v.WorkflowExecutionAlreadyCompletedError != nil { count++ } + if v.AccessDeniedError != nil { + count++ + } if count > 1 { return fmt.Errorf("WorkflowService_RespondDecisionTaskFailed_Result should have at most one field: got %v fields", count) } @@ -22910,7 +25438,7 @@ func (v *WorkflowService_RespondDecisionTaskFailed_Result) String() string { return "" } - var fields [7]string + var fields [8]string i := 0 if v.BadRequestError != nil { fields[i] = fmt.Sprintf("BadRequestError: %v", v.BadRequestError) @@ -22940,6 +25468,10 @@ func (v *WorkflowService_RespondDecisionTaskFailed_Result) String() string { fields[i] = fmt.Sprintf("WorkflowExecutionAlreadyCompletedError: %v", v.WorkflowExecutionAlreadyCompletedError) i++ } + if v.AccessDeniedError != nil { + fields[i] = fmt.Sprintf("AccessDeniedError: %v", v.AccessDeniedError) + i++ + } return fmt.Sprintf("WorkflowService_RespondDecisionTaskFailed_Result{%v}", strings.Join(fields[:i], ", ")) } @@ -22975,6 +25507,9 @@ func (v *WorkflowService_RespondDecisionTaskFailed_Result) Equals(rhs *WorkflowS if !((v.WorkflowExecutionAlreadyCompletedError == nil && rhs.WorkflowExecutionAlreadyCompletedError == nil) || (v.WorkflowExecutionAlreadyCompletedError != nil && rhs.WorkflowExecutionAlreadyCompletedError != nil && v.WorkflowExecutionAlreadyCompletedError.Equals(rhs.WorkflowExecutionAlreadyCompletedError))) { return false } + if !((v.AccessDeniedError == nil && rhs.AccessDeniedError == nil) || (v.AccessDeniedError != nil && rhs.AccessDeniedError != nil && v.AccessDeniedError.Equals(rhs.AccessDeniedError))) { + return false + } return true } @@ -23006,6 +25541,9 @@ func (v *WorkflowService_RespondDecisionTaskFailed_Result) MarshalLogObject(enc if v.WorkflowExecutionAlreadyCompletedError != nil { err = multierr.Append(err, enc.AddObject("workflowExecutionAlreadyCompletedError", v.WorkflowExecutionAlreadyCompletedError)) } + if v.AccessDeniedError != nil { + err = multierr.Append(err, enc.AddObject("accessDeniedError", v.AccessDeniedError)) + } return err } @@ -23114,6 +25652,21 @@ func (v *WorkflowService_RespondDecisionTaskFailed_Result) IsSetWorkflowExecutio return v != nil && v.WorkflowExecutionAlreadyCompletedError != nil } +// GetAccessDeniedError returns the value of AccessDeniedError if it is set or its +// zero value if it is unset. +func (v *WorkflowService_RespondDecisionTaskFailed_Result) GetAccessDeniedError() (o *shared.AccessDeniedError) { + if v != nil && v.AccessDeniedError != nil { + return v.AccessDeniedError + } + + return +} + +// IsSetAccessDeniedError returns true if AccessDeniedError is not nil. +func (v *WorkflowService_RespondDecisionTaskFailed_Result) IsSetAccessDeniedError() bool { + return v != nil && v.AccessDeniedError != nil +} + // MethodName returns the name of the Thrift function as specified in // the IDL, for which this struct represent the result. // @@ -23358,6 +25911,8 @@ func init() { return true case *shared.ClientVersionNotSupportedError: return true + case *shared.AccessDeniedError: + return true default: return false } @@ -23399,6 +25954,11 @@ func init() { return nil, errors.New("WrapResponse received non-nil error type with nil value for WorkflowService_RespondQueryTaskCompleted_Result.ClientVersionNotSupportedError") } return &WorkflowService_RespondQueryTaskCompleted_Result{ClientVersionNotSupportedError: e}, nil + case *shared.AccessDeniedError: + if e == nil { + return nil, errors.New("WrapResponse received non-nil error type with nil value for WorkflowService_RespondQueryTaskCompleted_Result.AccessDeniedError") + } + return &WorkflowService_RespondQueryTaskCompleted_Result{AccessDeniedError: e}, nil } return nil, err @@ -23428,6 +25988,10 @@ func init() { err = result.ClientVersionNotSupportedError return } + if result.AccessDeniedError != nil { + err = result.AccessDeniedError + return + } return } @@ -23443,6 +26007,7 @@ type WorkflowService_RespondQueryTaskCompleted_Result struct { ServiceBusyError *shared.ServiceBusyError `json:"serviceBusyError,omitempty"` DomainNotActiveError *shared.DomainNotActiveError `json:"domainNotActiveError,omitempty"` ClientVersionNotSupportedError *shared.ClientVersionNotSupportedError `json:"clientVersionNotSupportedError,omitempty"` + AccessDeniedError *shared.AccessDeniedError `json:"accessDeniedError,omitempty"` } // ToWire translates a WorkflowService_RespondQueryTaskCompleted_Result struct into a Thrift-level intermediate @@ -23462,7 +26027,7 @@ type WorkflowService_RespondQueryTaskCompleted_Result struct { // } func (v *WorkflowService_RespondQueryTaskCompleted_Result) ToWire() (wire.Value, error) { var ( - fields [6]wire.Field + fields [7]wire.Field i int = 0 w wire.Value err error @@ -23516,6 +26081,14 @@ func (v *WorkflowService_RespondQueryTaskCompleted_Result) ToWire() (wire.Value, fields[i] = wire.Field{ID: 7, Value: w} i++ } + if v.AccessDeniedError != nil { + w, err = v.AccessDeniedError.ToWire() + if err != nil { + return w, err + } + fields[i] = wire.Field{ID: 8, Value: w} + i++ + } if i > 1 { return wire.Value{}, fmt.Errorf("WorkflowService_RespondQueryTaskCompleted_Result should have at most one field: got %v fields", i) @@ -23593,6 +26166,14 @@ func (v *WorkflowService_RespondQueryTaskCompleted_Result) FromWire(w wire.Value return err } + } + case 8: + if field.Value.Type() == wire.TStruct { + v.AccessDeniedError, err = _AccessDeniedError_Read(field.Value) + if err != nil { + return err + } + } } } @@ -23616,6 +26197,9 @@ func (v *WorkflowService_RespondQueryTaskCompleted_Result) FromWire(w wire.Value if v.ClientVersionNotSupportedError != nil { count++ } + if v.AccessDeniedError != nil { + count++ + } if count > 1 { return fmt.Errorf("WorkflowService_RespondQueryTaskCompleted_Result should have at most one field: got %v fields", count) } @@ -23630,7 +26214,7 @@ func (v *WorkflowService_RespondQueryTaskCompleted_Result) String() string { return "" } - var fields [6]string + var fields [7]string i := 0 if v.BadRequestError != nil { fields[i] = fmt.Sprintf("BadRequestError: %v", v.BadRequestError) @@ -23656,6 +26240,10 @@ func (v *WorkflowService_RespondQueryTaskCompleted_Result) String() string { fields[i] = fmt.Sprintf("ClientVersionNotSupportedError: %v", v.ClientVersionNotSupportedError) i++ } + if v.AccessDeniedError != nil { + fields[i] = fmt.Sprintf("AccessDeniedError: %v", v.AccessDeniedError) + i++ + } return fmt.Sprintf("WorkflowService_RespondQueryTaskCompleted_Result{%v}", strings.Join(fields[:i], ", ")) } @@ -23688,6 +26276,9 @@ func (v *WorkflowService_RespondQueryTaskCompleted_Result) Equals(rhs *WorkflowS if !((v.ClientVersionNotSupportedError == nil && rhs.ClientVersionNotSupportedError == nil) || (v.ClientVersionNotSupportedError != nil && rhs.ClientVersionNotSupportedError != nil && v.ClientVersionNotSupportedError.Equals(rhs.ClientVersionNotSupportedError))) { return false } + if !((v.AccessDeniedError == nil && rhs.AccessDeniedError == nil) || (v.AccessDeniedError != nil && rhs.AccessDeniedError != nil && v.AccessDeniedError.Equals(rhs.AccessDeniedError))) { + return false + } return true } @@ -23716,6 +26307,9 @@ func (v *WorkflowService_RespondQueryTaskCompleted_Result) MarshalLogObject(enc if v.ClientVersionNotSupportedError != nil { err = multierr.Append(err, enc.AddObject("clientVersionNotSupportedError", v.ClientVersionNotSupportedError)) } + if v.AccessDeniedError != nil { + err = multierr.Append(err, enc.AddObject("accessDeniedError", v.AccessDeniedError)) + } return err } @@ -23809,6 +26403,21 @@ func (v *WorkflowService_RespondQueryTaskCompleted_Result) IsSetClientVersionNot return v != nil && v.ClientVersionNotSupportedError != nil } +// GetAccessDeniedError returns the value of AccessDeniedError if it is set or its +// zero value if it is unset. +func (v *WorkflowService_RespondQueryTaskCompleted_Result) GetAccessDeniedError() (o *shared.AccessDeniedError) { + if v != nil && v.AccessDeniedError != nil { + return v.AccessDeniedError + } + + return +} + +// IsSetAccessDeniedError returns true if AccessDeniedError is not nil. +func (v *WorkflowService_RespondQueryTaskCompleted_Result) IsSetAccessDeniedError() bool { + return v != nil && v.AccessDeniedError != nil +} + // MethodName returns the name of the Thrift function as specified in // the IDL, for which this struct represent the result. // @@ -24052,6 +26661,8 @@ func init() { return true case *shared.ClientVersionNotSupportedError: return true + case *shared.AccessDeniedError: + return true default: return false } @@ -24093,6 +26704,11 @@ func init() { return nil, errors.New("WrapResponse received non-nil error type with nil value for WorkflowService_RestartWorkflowExecution_Result.ClientVersionNotSupportedError") } return &WorkflowService_RestartWorkflowExecution_Result{ClientVersionNotSupportedError: e}, nil + case *shared.AccessDeniedError: + if e == nil { + return nil, errors.New("WrapResponse received non-nil error type with nil value for WorkflowService_RestartWorkflowExecution_Result.AccessDeniedError") + } + return &WorkflowService_RestartWorkflowExecution_Result{AccessDeniedError: e}, nil } return nil, err @@ -24122,6 +26738,10 @@ func init() { err = result.ClientVersionNotSupportedError return } + if result.AccessDeniedError != nil { + err = result.AccessDeniedError + return + } if result.Success != nil { success = result.Success @@ -24148,6 +26768,7 @@ type WorkflowService_RestartWorkflowExecution_Result struct { LimitExceededError *shared.LimitExceededError `json:"limitExceededError,omitempty"` EntityNotExistError *shared.EntityNotExistsError `json:"entityNotExistError,omitempty"` ClientVersionNotSupportedError *shared.ClientVersionNotSupportedError `json:"clientVersionNotSupportedError,omitempty"` + AccessDeniedError *shared.AccessDeniedError `json:"accessDeniedError,omitempty"` } // ToWire translates a WorkflowService_RestartWorkflowExecution_Result struct into a Thrift-level intermediate @@ -24167,7 +26788,7 @@ type WorkflowService_RestartWorkflowExecution_Result struct { // } func (v *WorkflowService_RestartWorkflowExecution_Result) ToWire() (wire.Value, error) { var ( - fields [7]wire.Field + fields [8]wire.Field i int = 0 w wire.Value err error @@ -24229,6 +26850,14 @@ func (v *WorkflowService_RestartWorkflowExecution_Result) ToWire() (wire.Value, fields[i] = wire.Field{ID: 6, Value: w} i++ } + if v.AccessDeniedError != nil { + w, err = v.AccessDeniedError.ToWire() + if err != nil { + return w, err + } + fields[i] = wire.Field{ID: 7, Value: w} + i++ + } if i != 1 { return wire.Value{}, fmt.Errorf("WorkflowService_RestartWorkflowExecution_Result should have exactly one field: got %v fields", i) @@ -24320,6 +26949,14 @@ func (v *WorkflowService_RestartWorkflowExecution_Result) FromWire(w wire.Value) return err } + } + case 7: + if field.Value.Type() == wire.TStruct { + v.AccessDeniedError, err = _AccessDeniedError_Read(field.Value) + if err != nil { + return err + } + } } } @@ -24346,6 +26983,9 @@ func (v *WorkflowService_RestartWorkflowExecution_Result) FromWire(w wire.Value) if v.ClientVersionNotSupportedError != nil { count++ } + if v.AccessDeniedError != nil { + count++ + } if count != 1 { return fmt.Errorf("WorkflowService_RestartWorkflowExecution_Result should have exactly one field: got %v fields", count) } @@ -24360,7 +27000,7 @@ func (v *WorkflowService_RestartWorkflowExecution_Result) String() string { return "" } - var fields [7]string + var fields [8]string i := 0 if v.Success != nil { fields[i] = fmt.Sprintf("Success: %v", v.Success) @@ -24390,6 +27030,10 @@ func (v *WorkflowService_RestartWorkflowExecution_Result) String() string { fields[i] = fmt.Sprintf("ClientVersionNotSupportedError: %v", v.ClientVersionNotSupportedError) i++ } + if v.AccessDeniedError != nil { + fields[i] = fmt.Sprintf("AccessDeniedError: %v", v.AccessDeniedError) + i++ + } return fmt.Sprintf("WorkflowService_RestartWorkflowExecution_Result{%v}", strings.Join(fields[:i], ", ")) } @@ -24425,6 +27069,9 @@ func (v *WorkflowService_RestartWorkflowExecution_Result) Equals(rhs *WorkflowSe if !((v.ClientVersionNotSupportedError == nil && rhs.ClientVersionNotSupportedError == nil) || (v.ClientVersionNotSupportedError != nil && rhs.ClientVersionNotSupportedError != nil && v.ClientVersionNotSupportedError.Equals(rhs.ClientVersionNotSupportedError))) { return false } + if !((v.AccessDeniedError == nil && rhs.AccessDeniedError == nil) || (v.AccessDeniedError != nil && rhs.AccessDeniedError != nil && v.AccessDeniedError.Equals(rhs.AccessDeniedError))) { + return false + } return true } @@ -24456,6 +27103,9 @@ func (v *WorkflowService_RestartWorkflowExecution_Result) MarshalLogObject(enc z if v.ClientVersionNotSupportedError != nil { err = multierr.Append(err, enc.AddObject("clientVersionNotSupportedError", v.ClientVersionNotSupportedError)) } + if v.AccessDeniedError != nil { + err = multierr.Append(err, enc.AddObject("accessDeniedError", v.AccessDeniedError)) + } return err } @@ -24564,6 +27214,21 @@ func (v *WorkflowService_RestartWorkflowExecution_Result) IsSetClientVersionNotS return v != nil && v.ClientVersionNotSupportedError != nil } +// GetAccessDeniedError returns the value of AccessDeniedError if it is set or its +// zero value if it is unset. +func (v *WorkflowService_RestartWorkflowExecution_Result) GetAccessDeniedError() (o *shared.AccessDeniedError) { + if v != nil && v.AccessDeniedError != nil { + return v.AccessDeniedError + } + + return +} + +// IsSetAccessDeniedError returns true if AccessDeniedError is not nil. +func (v *WorkflowService_RestartWorkflowExecution_Result) IsSetAccessDeniedError() bool { + return v != nil && v.AccessDeniedError != nil +} + // MethodName returns the name of the Thrift function as specified in // the IDL, for which this struct represent the result. // @@ -24797,6 +27462,8 @@ func init() { return true case *shared.ClientVersionNotSupportedError: return true + case *shared.AccessDeniedError: + return true default: return false } @@ -24828,6 +27495,11 @@ func init() { return nil, errors.New("WrapResponse received non-nil error type with nil value for WorkflowService_ScanWorkflowExecutions_Result.ClientVersionNotSupportedError") } return &WorkflowService_ScanWorkflowExecutions_Result{ClientVersionNotSupportedError: e}, nil + case *shared.AccessDeniedError: + if e == nil { + return nil, errors.New("WrapResponse received non-nil error type with nil value for WorkflowService_ScanWorkflowExecutions_Result.AccessDeniedError") + } + return &WorkflowService_ScanWorkflowExecutions_Result{AccessDeniedError: e}, nil } return nil, err @@ -24849,6 +27521,10 @@ func init() { err = result.ClientVersionNotSupportedError return } + if result.AccessDeniedError != nil { + err = result.AccessDeniedError + return + } if result.Success != nil { success = result.Success @@ -24873,6 +27549,7 @@ type WorkflowService_ScanWorkflowExecutions_Result struct { EntityNotExistError *shared.EntityNotExistsError `json:"entityNotExistError,omitempty"` ServiceBusyError *shared.ServiceBusyError `json:"serviceBusyError,omitempty"` ClientVersionNotSupportedError *shared.ClientVersionNotSupportedError `json:"clientVersionNotSupportedError,omitempty"` + AccessDeniedError *shared.AccessDeniedError `json:"accessDeniedError,omitempty"` } // ToWire translates a WorkflowService_ScanWorkflowExecutions_Result struct into a Thrift-level intermediate @@ -24892,7 +27569,7 @@ type WorkflowService_ScanWorkflowExecutions_Result struct { // } func (v *WorkflowService_ScanWorkflowExecutions_Result) ToWire() (wire.Value, error) { var ( - fields [5]wire.Field + fields [6]wire.Field i int = 0 w wire.Value err error @@ -24938,6 +27615,14 @@ func (v *WorkflowService_ScanWorkflowExecutions_Result) ToWire() (wire.Value, er fields[i] = wire.Field{ID: 5, Value: w} i++ } + if v.AccessDeniedError != nil { + w, err = v.AccessDeniedError.ToWire() + if err != nil { + return w, err + } + fields[i] = wire.Field{ID: 6, Value: w} + i++ + } if i != 1 { return wire.Value{}, fmt.Errorf("WorkflowService_ScanWorkflowExecutions_Result should have exactly one field: got %v fields", i) @@ -25007,6 +27692,14 @@ func (v *WorkflowService_ScanWorkflowExecutions_Result) FromWire(w wire.Value) e return err } + } + case 6: + if field.Value.Type() == wire.TStruct { + v.AccessDeniedError, err = _AccessDeniedError_Read(field.Value) + if err != nil { + return err + } + } } } @@ -25027,6 +27720,9 @@ func (v *WorkflowService_ScanWorkflowExecutions_Result) FromWire(w wire.Value) e if v.ClientVersionNotSupportedError != nil { count++ } + if v.AccessDeniedError != nil { + count++ + } if count != 1 { return fmt.Errorf("WorkflowService_ScanWorkflowExecutions_Result should have exactly one field: got %v fields", count) } @@ -25041,7 +27737,7 @@ func (v *WorkflowService_ScanWorkflowExecutions_Result) String() string { return "" } - var fields [5]string + var fields [6]string i := 0 if v.Success != nil { fields[i] = fmt.Sprintf("Success: %v", v.Success) @@ -25063,6 +27759,10 @@ func (v *WorkflowService_ScanWorkflowExecutions_Result) String() string { fields[i] = fmt.Sprintf("ClientVersionNotSupportedError: %v", v.ClientVersionNotSupportedError) i++ } + if v.AccessDeniedError != nil { + fields[i] = fmt.Sprintf("AccessDeniedError: %v", v.AccessDeniedError) + i++ + } return fmt.Sprintf("WorkflowService_ScanWorkflowExecutions_Result{%v}", strings.Join(fields[:i], ", ")) } @@ -25092,6 +27792,9 @@ func (v *WorkflowService_ScanWorkflowExecutions_Result) Equals(rhs *WorkflowServ if !((v.ClientVersionNotSupportedError == nil && rhs.ClientVersionNotSupportedError == nil) || (v.ClientVersionNotSupportedError != nil && rhs.ClientVersionNotSupportedError != nil && v.ClientVersionNotSupportedError.Equals(rhs.ClientVersionNotSupportedError))) { return false } + if !((v.AccessDeniedError == nil && rhs.AccessDeniedError == nil) || (v.AccessDeniedError != nil && rhs.AccessDeniedError != nil && v.AccessDeniedError.Equals(rhs.AccessDeniedError))) { + return false + } return true } @@ -25117,6 +27820,9 @@ func (v *WorkflowService_ScanWorkflowExecutions_Result) MarshalLogObject(enc zap if v.ClientVersionNotSupportedError != nil { err = multierr.Append(err, enc.AddObject("clientVersionNotSupportedError", v.ClientVersionNotSupportedError)) } + if v.AccessDeniedError != nil { + err = multierr.Append(err, enc.AddObject("accessDeniedError", v.AccessDeniedError)) + } return err } @@ -25190,9 +27896,24 @@ func (v *WorkflowService_ScanWorkflowExecutions_Result) GetClientVersionNotSuppo return } -// IsSetClientVersionNotSupportedError returns true if ClientVersionNotSupportedError is not nil. -func (v *WorkflowService_ScanWorkflowExecutions_Result) IsSetClientVersionNotSupportedError() bool { - return v != nil && v.ClientVersionNotSupportedError != nil +// IsSetClientVersionNotSupportedError returns true if ClientVersionNotSupportedError is not nil. +func (v *WorkflowService_ScanWorkflowExecutions_Result) IsSetClientVersionNotSupportedError() bool { + return v != nil && v.ClientVersionNotSupportedError != nil +} + +// GetAccessDeniedError returns the value of AccessDeniedError if it is set or its +// zero value if it is unset. +func (v *WorkflowService_ScanWorkflowExecutions_Result) GetAccessDeniedError() (o *shared.AccessDeniedError) { + if v != nil && v.AccessDeniedError != nil { + return v.AccessDeniedError + } + + return +} + +// IsSetAccessDeniedError returns true if AccessDeniedError is not nil. +func (v *WorkflowService_ScanWorkflowExecutions_Result) IsSetAccessDeniedError() bool { + return v != nil && v.AccessDeniedError != nil } // MethodName returns the name of the Thrift function as specified in @@ -25440,6 +28161,8 @@ func init() { return true case *shared.ClientVersionNotSupportedError: return true + case *shared.AccessDeniedError: + return true default: return false } @@ -25486,6 +28209,11 @@ func init() { return nil, errors.New("WrapResponse received non-nil error type with nil value for WorkflowService_SignalWithStartWorkflowExecution_Result.ClientVersionNotSupportedError") } return &WorkflowService_SignalWithStartWorkflowExecution_Result{ClientVersionNotSupportedError: e}, nil + case *shared.AccessDeniedError: + if e == nil { + return nil, errors.New("WrapResponse received non-nil error type with nil value for WorkflowService_SignalWithStartWorkflowExecution_Result.AccessDeniedError") + } + return &WorkflowService_SignalWithStartWorkflowExecution_Result{AccessDeniedError: e}, nil } return nil, err @@ -25519,6 +28247,10 @@ func init() { err = result.ClientVersionNotSupportedError return } + if result.AccessDeniedError != nil { + err = result.AccessDeniedError + return + } if result.Success != nil { success = result.Success @@ -25546,6 +28278,7 @@ type WorkflowService_SignalWithStartWorkflowExecution_Result struct { LimitExceededError *shared.LimitExceededError `json:"limitExceededError,omitempty"` WorkflowAlreadyStartedError *shared.WorkflowExecutionAlreadyStartedError `json:"workflowAlreadyStartedError,omitempty"` ClientVersionNotSupportedError *shared.ClientVersionNotSupportedError `json:"clientVersionNotSupportedError,omitempty"` + AccessDeniedError *shared.AccessDeniedError `json:"accessDeniedError,omitempty"` } // ToWire translates a WorkflowService_SignalWithStartWorkflowExecution_Result struct into a Thrift-level intermediate @@ -25565,7 +28298,7 @@ type WorkflowService_SignalWithStartWorkflowExecution_Result struct { // } func (v *WorkflowService_SignalWithStartWorkflowExecution_Result) ToWire() (wire.Value, error) { var ( - fields [8]wire.Field + fields [9]wire.Field i int = 0 w wire.Value err error @@ -25635,6 +28368,14 @@ func (v *WorkflowService_SignalWithStartWorkflowExecution_Result) ToWire() (wire fields[i] = wire.Field{ID: 8, Value: w} i++ } + if v.AccessDeniedError != nil { + w, err = v.AccessDeniedError.ToWire() + if err != nil { + return w, err + } + fields[i] = wire.Field{ID: 9, Value: w} + i++ + } if i != 1 { return wire.Value{}, fmt.Errorf("WorkflowService_SignalWithStartWorkflowExecution_Result should have exactly one field: got %v fields", i) @@ -25740,6 +28481,14 @@ func (v *WorkflowService_SignalWithStartWorkflowExecution_Result) FromWire(w wir return err } + } + case 9: + if field.Value.Type() == wire.TStruct { + v.AccessDeniedError, err = _AccessDeniedError_Read(field.Value) + if err != nil { + return err + } + } } } @@ -25769,6 +28518,9 @@ func (v *WorkflowService_SignalWithStartWorkflowExecution_Result) FromWire(w wir if v.ClientVersionNotSupportedError != nil { count++ } + if v.AccessDeniedError != nil { + count++ + } if count != 1 { return fmt.Errorf("WorkflowService_SignalWithStartWorkflowExecution_Result should have exactly one field: got %v fields", count) } @@ -25783,7 +28535,7 @@ func (v *WorkflowService_SignalWithStartWorkflowExecution_Result) String() strin return "" } - var fields [8]string + var fields [9]string i := 0 if v.Success != nil { fields[i] = fmt.Sprintf("Success: %v", v.Success) @@ -25817,6 +28569,10 @@ func (v *WorkflowService_SignalWithStartWorkflowExecution_Result) String() strin fields[i] = fmt.Sprintf("ClientVersionNotSupportedError: %v", v.ClientVersionNotSupportedError) i++ } + if v.AccessDeniedError != nil { + fields[i] = fmt.Sprintf("AccessDeniedError: %v", v.AccessDeniedError) + i++ + } return fmt.Sprintf("WorkflowService_SignalWithStartWorkflowExecution_Result{%v}", strings.Join(fields[:i], ", ")) } @@ -25855,6 +28611,9 @@ func (v *WorkflowService_SignalWithStartWorkflowExecution_Result) Equals(rhs *Wo if !((v.ClientVersionNotSupportedError == nil && rhs.ClientVersionNotSupportedError == nil) || (v.ClientVersionNotSupportedError != nil && rhs.ClientVersionNotSupportedError != nil && v.ClientVersionNotSupportedError.Equals(rhs.ClientVersionNotSupportedError))) { return false } + if !((v.AccessDeniedError == nil && rhs.AccessDeniedError == nil) || (v.AccessDeniedError != nil && rhs.AccessDeniedError != nil && v.AccessDeniedError.Equals(rhs.AccessDeniedError))) { + return false + } return true } @@ -25889,6 +28648,9 @@ func (v *WorkflowService_SignalWithStartWorkflowExecution_Result) MarshalLogObje if v.ClientVersionNotSupportedError != nil { err = multierr.Append(err, enc.AddObject("clientVersionNotSupportedError", v.ClientVersionNotSupportedError)) } + if v.AccessDeniedError != nil { + err = multierr.Append(err, enc.AddObject("accessDeniedError", v.AccessDeniedError)) + } return err } @@ -26012,6 +28774,21 @@ func (v *WorkflowService_SignalWithStartWorkflowExecution_Result) IsSetClientVer return v != nil && v.ClientVersionNotSupportedError != nil } +// GetAccessDeniedError returns the value of AccessDeniedError if it is set or its +// zero value if it is unset. +func (v *WorkflowService_SignalWithStartWorkflowExecution_Result) GetAccessDeniedError() (o *shared.AccessDeniedError) { + if v != nil && v.AccessDeniedError != nil { + return v.AccessDeniedError + } + + return +} + +// IsSetAccessDeniedError returns true if AccessDeniedError is not nil. +func (v *WorkflowService_SignalWithStartWorkflowExecution_Result) IsSetAccessDeniedError() bool { + return v != nil && v.AccessDeniedError != nil +} + // MethodName returns the name of the Thrift function as specified in // the IDL, for which this struct represent the result. // @@ -26257,6 +29034,8 @@ func init() { return true case *shared.ClientVersionNotSupportedError: return true + case *shared.AccessDeniedError: + return true default: return false } @@ -26303,6 +29082,11 @@ func init() { return nil, errors.New("WrapResponse received non-nil error type with nil value for WorkflowService_SignalWithStartWorkflowExecutionAsync_Result.ClientVersionNotSupportedError") } return &WorkflowService_SignalWithStartWorkflowExecutionAsync_Result{ClientVersionNotSupportedError: e}, nil + case *shared.AccessDeniedError: + if e == nil { + return nil, errors.New("WrapResponse received non-nil error type with nil value for WorkflowService_SignalWithStartWorkflowExecutionAsync_Result.AccessDeniedError") + } + return &WorkflowService_SignalWithStartWorkflowExecutionAsync_Result{AccessDeniedError: e}, nil } return nil, err @@ -26336,6 +29120,10 @@ func init() { err = result.ClientVersionNotSupportedError return } + if result.AccessDeniedError != nil { + err = result.AccessDeniedError + return + } if result.Success != nil { success = result.Success @@ -26363,6 +29151,7 @@ type WorkflowService_SignalWithStartWorkflowExecutionAsync_Result struct { LimitExceededError *shared.LimitExceededError `json:"limitExceededError,omitempty"` EntityNotExistError *shared.EntityNotExistsError `json:"entityNotExistError,omitempty"` ClientVersionNotSupportedError *shared.ClientVersionNotSupportedError `json:"clientVersionNotSupportedError,omitempty"` + AccessDeniedError *shared.AccessDeniedError `json:"accessDeniedError,omitempty"` } // ToWire translates a WorkflowService_SignalWithStartWorkflowExecutionAsync_Result struct into a Thrift-level intermediate @@ -26382,7 +29171,7 @@ type WorkflowService_SignalWithStartWorkflowExecutionAsync_Result struct { // } func (v *WorkflowService_SignalWithStartWorkflowExecutionAsync_Result) ToWire() (wire.Value, error) { var ( - fields [8]wire.Field + fields [9]wire.Field i int = 0 w wire.Value err error @@ -26452,6 +29241,14 @@ func (v *WorkflowService_SignalWithStartWorkflowExecutionAsync_Result) ToWire() fields[i] = wire.Field{ID: 8, Value: w} i++ } + if v.AccessDeniedError != nil { + w, err = v.AccessDeniedError.ToWire() + if err != nil { + return w, err + } + fields[i] = wire.Field{ID: 9, Value: w} + i++ + } if i != 1 { return wire.Value{}, fmt.Errorf("WorkflowService_SignalWithStartWorkflowExecutionAsync_Result should have exactly one field: got %v fields", i) @@ -26551,6 +29348,14 @@ func (v *WorkflowService_SignalWithStartWorkflowExecutionAsync_Result) FromWire( return err } + } + case 9: + if field.Value.Type() == wire.TStruct { + v.AccessDeniedError, err = _AccessDeniedError_Read(field.Value) + if err != nil { + return err + } + } } } @@ -26580,6 +29385,9 @@ func (v *WorkflowService_SignalWithStartWorkflowExecutionAsync_Result) FromWire( if v.ClientVersionNotSupportedError != nil { count++ } + if v.AccessDeniedError != nil { + count++ + } if count != 1 { return fmt.Errorf("WorkflowService_SignalWithStartWorkflowExecutionAsync_Result should have exactly one field: got %v fields", count) } @@ -26594,7 +29402,7 @@ func (v *WorkflowService_SignalWithStartWorkflowExecutionAsync_Result) String() return "" } - var fields [8]string + var fields [9]string i := 0 if v.Success != nil { fields[i] = fmt.Sprintf("Success: %v", v.Success) @@ -26628,6 +29436,10 @@ func (v *WorkflowService_SignalWithStartWorkflowExecutionAsync_Result) String() fields[i] = fmt.Sprintf("ClientVersionNotSupportedError: %v", v.ClientVersionNotSupportedError) i++ } + if v.AccessDeniedError != nil { + fields[i] = fmt.Sprintf("AccessDeniedError: %v", v.AccessDeniedError) + i++ + } return fmt.Sprintf("WorkflowService_SignalWithStartWorkflowExecutionAsync_Result{%v}", strings.Join(fields[:i], ", ")) } @@ -26666,6 +29478,9 @@ func (v *WorkflowService_SignalWithStartWorkflowExecutionAsync_Result) Equals(rh if !((v.ClientVersionNotSupportedError == nil && rhs.ClientVersionNotSupportedError == nil) || (v.ClientVersionNotSupportedError != nil && rhs.ClientVersionNotSupportedError != nil && v.ClientVersionNotSupportedError.Equals(rhs.ClientVersionNotSupportedError))) { return false } + if !((v.AccessDeniedError == nil && rhs.AccessDeniedError == nil) || (v.AccessDeniedError != nil && rhs.AccessDeniedError != nil && v.AccessDeniedError.Equals(rhs.AccessDeniedError))) { + return false + } return true } @@ -26700,6 +29515,9 @@ func (v *WorkflowService_SignalWithStartWorkflowExecutionAsync_Result) MarshalLo if v.ClientVersionNotSupportedError != nil { err = multierr.Append(err, enc.AddObject("clientVersionNotSupportedError", v.ClientVersionNotSupportedError)) } + if v.AccessDeniedError != nil { + err = multierr.Append(err, enc.AddObject("accessDeniedError", v.AccessDeniedError)) + } return err } @@ -26823,6 +29641,21 @@ func (v *WorkflowService_SignalWithStartWorkflowExecutionAsync_Result) IsSetClie return v != nil && v.ClientVersionNotSupportedError != nil } +// GetAccessDeniedError returns the value of AccessDeniedError if it is set or its +// zero value if it is unset. +func (v *WorkflowService_SignalWithStartWorkflowExecutionAsync_Result) GetAccessDeniedError() (o *shared.AccessDeniedError) { + if v != nil && v.AccessDeniedError != nil { + return v.AccessDeniedError + } + + return +} + +// IsSetAccessDeniedError returns true if AccessDeniedError is not nil. +func (v *WorkflowService_SignalWithStartWorkflowExecutionAsync_Result) IsSetAccessDeniedError() bool { + return v != nil && v.AccessDeniedError != nil +} + // MethodName returns the name of the Thrift function as specified in // the IDL, for which this struct represent the result. // @@ -27069,6 +29902,8 @@ func init() { return true case *shared.WorkflowExecutionAlreadyCompletedError: return true + case *shared.AccessDeniedError: + return true default: return false } @@ -27115,6 +29950,11 @@ func init() { return nil, errors.New("WrapResponse received non-nil error type with nil value for WorkflowService_SignalWorkflowExecution_Result.WorkflowExecutionAlreadyCompletedError") } return &WorkflowService_SignalWorkflowExecution_Result{WorkflowExecutionAlreadyCompletedError: e}, nil + case *shared.AccessDeniedError: + if e == nil { + return nil, errors.New("WrapResponse received non-nil error type with nil value for WorkflowService_SignalWorkflowExecution_Result.AccessDeniedError") + } + return &WorkflowService_SignalWorkflowExecution_Result{AccessDeniedError: e}, nil } return nil, err @@ -27148,6 +29988,10 @@ func init() { err = result.WorkflowExecutionAlreadyCompletedError return } + if result.AccessDeniedError != nil { + err = result.AccessDeniedError + return + } return } @@ -27164,6 +30008,7 @@ type WorkflowService_SignalWorkflowExecution_Result struct { LimitExceededError *shared.LimitExceededError `json:"limitExceededError,omitempty"` ClientVersionNotSupportedError *shared.ClientVersionNotSupportedError `json:"clientVersionNotSupportedError,omitempty"` WorkflowExecutionAlreadyCompletedError *shared.WorkflowExecutionAlreadyCompletedError `json:"workflowExecutionAlreadyCompletedError,omitempty"` + AccessDeniedError *shared.AccessDeniedError `json:"accessDeniedError,omitempty"` } // ToWire translates a WorkflowService_SignalWorkflowExecution_Result struct into a Thrift-level intermediate @@ -27183,7 +30028,7 @@ type WorkflowService_SignalWorkflowExecution_Result struct { // } func (v *WorkflowService_SignalWorkflowExecution_Result) ToWire() (wire.Value, error) { var ( - fields [7]wire.Field + fields [8]wire.Field i int = 0 w wire.Value err error @@ -27245,6 +30090,14 @@ func (v *WorkflowService_SignalWorkflowExecution_Result) ToWire() (wire.Value, e fields[i] = wire.Field{ID: 8, Value: w} i++ } + if v.AccessDeniedError != nil { + w, err = v.AccessDeniedError.ToWire() + if err != nil { + return w, err + } + fields[i] = wire.Field{ID: 9, Value: w} + i++ + } if i > 1 { return wire.Value{}, fmt.Errorf("WorkflowService_SignalWorkflowExecution_Result should have at most one field: got %v fields", i) @@ -27330,6 +30183,14 @@ func (v *WorkflowService_SignalWorkflowExecution_Result) FromWire(w wire.Value) return err } + } + case 9: + if field.Value.Type() == wire.TStruct { + v.AccessDeniedError, err = _AccessDeniedError_Read(field.Value) + if err != nil { + return err + } + } } } @@ -27356,6 +30217,9 @@ func (v *WorkflowService_SignalWorkflowExecution_Result) FromWire(w wire.Value) if v.WorkflowExecutionAlreadyCompletedError != nil { count++ } + if v.AccessDeniedError != nil { + count++ + } if count > 1 { return fmt.Errorf("WorkflowService_SignalWorkflowExecution_Result should have at most one field: got %v fields", count) } @@ -27370,7 +30234,7 @@ func (v *WorkflowService_SignalWorkflowExecution_Result) String() string { return "" } - var fields [7]string + var fields [8]string i := 0 if v.BadRequestError != nil { fields[i] = fmt.Sprintf("BadRequestError: %v", v.BadRequestError) @@ -27400,6 +30264,10 @@ func (v *WorkflowService_SignalWorkflowExecution_Result) String() string { fields[i] = fmt.Sprintf("WorkflowExecutionAlreadyCompletedError: %v", v.WorkflowExecutionAlreadyCompletedError) i++ } + if v.AccessDeniedError != nil { + fields[i] = fmt.Sprintf("AccessDeniedError: %v", v.AccessDeniedError) + i++ + } return fmt.Sprintf("WorkflowService_SignalWorkflowExecution_Result{%v}", strings.Join(fields[:i], ", ")) } @@ -27435,6 +30303,9 @@ func (v *WorkflowService_SignalWorkflowExecution_Result) Equals(rhs *WorkflowSer if !((v.WorkflowExecutionAlreadyCompletedError == nil && rhs.WorkflowExecutionAlreadyCompletedError == nil) || (v.WorkflowExecutionAlreadyCompletedError != nil && rhs.WorkflowExecutionAlreadyCompletedError != nil && v.WorkflowExecutionAlreadyCompletedError.Equals(rhs.WorkflowExecutionAlreadyCompletedError))) { return false } + if !((v.AccessDeniedError == nil && rhs.AccessDeniedError == nil) || (v.AccessDeniedError != nil && rhs.AccessDeniedError != nil && v.AccessDeniedError.Equals(rhs.AccessDeniedError))) { + return false + } return true } @@ -27466,6 +30337,9 @@ func (v *WorkflowService_SignalWorkflowExecution_Result) MarshalLogObject(enc za if v.WorkflowExecutionAlreadyCompletedError != nil { err = multierr.Append(err, enc.AddObject("workflowExecutionAlreadyCompletedError", v.WorkflowExecutionAlreadyCompletedError)) } + if v.AccessDeniedError != nil { + err = multierr.Append(err, enc.AddObject("accessDeniedError", v.AccessDeniedError)) + } return err } @@ -27574,6 +30448,21 @@ func (v *WorkflowService_SignalWorkflowExecution_Result) IsSetWorkflowExecutionA return v != nil && v.WorkflowExecutionAlreadyCompletedError != nil } +// GetAccessDeniedError returns the value of AccessDeniedError if it is set or its +// zero value if it is unset. +func (v *WorkflowService_SignalWorkflowExecution_Result) GetAccessDeniedError() (o *shared.AccessDeniedError) { + if v != nil && v.AccessDeniedError != nil { + return v.AccessDeniedError + } + + return +} + +// IsSetAccessDeniedError returns true if AccessDeniedError is not nil. +func (v *WorkflowService_SignalWorkflowExecution_Result) IsSetAccessDeniedError() bool { + return v != nil && v.AccessDeniedError != nil +} + // MethodName returns the name of the Thrift function as specified in // the IDL, for which this struct represent the result. // @@ -27819,6 +30708,8 @@ func init() { return true case *shared.ClientVersionNotSupportedError: return true + case *shared.AccessDeniedError: + return true default: return false } @@ -27865,6 +30756,11 @@ func init() { return nil, errors.New("WrapResponse received non-nil error type with nil value for WorkflowService_StartWorkflowExecution_Result.ClientVersionNotSupportedError") } return &WorkflowService_StartWorkflowExecution_Result{ClientVersionNotSupportedError: e}, nil + case *shared.AccessDeniedError: + if e == nil { + return nil, errors.New("WrapResponse received non-nil error type with nil value for WorkflowService_StartWorkflowExecution_Result.AccessDeniedError") + } + return &WorkflowService_StartWorkflowExecution_Result{AccessDeniedError: e}, nil } return nil, err @@ -27898,6 +30794,10 @@ func init() { err = result.ClientVersionNotSupportedError return } + if result.AccessDeniedError != nil { + err = result.AccessDeniedError + return + } if result.Success != nil { success = result.Success @@ -27925,6 +30825,7 @@ type WorkflowService_StartWorkflowExecution_Result struct { LimitExceededError *shared.LimitExceededError `json:"limitExceededError,omitempty"` EntityNotExistError *shared.EntityNotExistsError `json:"entityNotExistError,omitempty"` ClientVersionNotSupportedError *shared.ClientVersionNotSupportedError `json:"clientVersionNotSupportedError,omitempty"` + AccessDeniedError *shared.AccessDeniedError `json:"accessDeniedError,omitempty"` } // ToWire translates a WorkflowService_StartWorkflowExecution_Result struct into a Thrift-level intermediate @@ -27944,7 +30845,7 @@ type WorkflowService_StartWorkflowExecution_Result struct { // } func (v *WorkflowService_StartWorkflowExecution_Result) ToWire() (wire.Value, error) { var ( - fields [8]wire.Field + fields [9]wire.Field i int = 0 w wire.Value err error @@ -28014,6 +30915,14 @@ func (v *WorkflowService_StartWorkflowExecution_Result) ToWire() (wire.Value, er fields[i] = wire.Field{ID: 8, Value: w} i++ } + if v.AccessDeniedError != nil { + w, err = v.AccessDeniedError.ToWire() + if err != nil { + return w, err + } + fields[i] = wire.Field{ID: 9, Value: w} + i++ + } if i != 1 { return wire.Value{}, fmt.Errorf("WorkflowService_StartWorkflowExecution_Result should have exactly one field: got %v fields", i) @@ -28107,6 +31016,14 @@ func (v *WorkflowService_StartWorkflowExecution_Result) FromWire(w wire.Value) e return err } + } + case 9: + if field.Value.Type() == wire.TStruct { + v.AccessDeniedError, err = _AccessDeniedError_Read(field.Value) + if err != nil { + return err + } + } } } @@ -28136,6 +31053,9 @@ func (v *WorkflowService_StartWorkflowExecution_Result) FromWire(w wire.Value) e if v.ClientVersionNotSupportedError != nil { count++ } + if v.AccessDeniedError != nil { + count++ + } if count != 1 { return fmt.Errorf("WorkflowService_StartWorkflowExecution_Result should have exactly one field: got %v fields", count) } @@ -28150,7 +31070,7 @@ func (v *WorkflowService_StartWorkflowExecution_Result) String() string { return "" } - var fields [8]string + var fields [9]string i := 0 if v.Success != nil { fields[i] = fmt.Sprintf("Success: %v", v.Success) @@ -28184,6 +31104,10 @@ func (v *WorkflowService_StartWorkflowExecution_Result) String() string { fields[i] = fmt.Sprintf("ClientVersionNotSupportedError: %v", v.ClientVersionNotSupportedError) i++ } + if v.AccessDeniedError != nil { + fields[i] = fmt.Sprintf("AccessDeniedError: %v", v.AccessDeniedError) + i++ + } return fmt.Sprintf("WorkflowService_StartWorkflowExecution_Result{%v}", strings.Join(fields[:i], ", ")) } @@ -28222,6 +31146,9 @@ func (v *WorkflowService_StartWorkflowExecution_Result) Equals(rhs *WorkflowServ if !((v.ClientVersionNotSupportedError == nil && rhs.ClientVersionNotSupportedError == nil) || (v.ClientVersionNotSupportedError != nil && rhs.ClientVersionNotSupportedError != nil && v.ClientVersionNotSupportedError.Equals(rhs.ClientVersionNotSupportedError))) { return false } + if !((v.AccessDeniedError == nil && rhs.AccessDeniedError == nil) || (v.AccessDeniedError != nil && rhs.AccessDeniedError != nil && v.AccessDeniedError.Equals(rhs.AccessDeniedError))) { + return false + } return true } @@ -28256,6 +31183,9 @@ func (v *WorkflowService_StartWorkflowExecution_Result) MarshalLogObject(enc zap if v.ClientVersionNotSupportedError != nil { err = multierr.Append(err, enc.AddObject("clientVersionNotSupportedError", v.ClientVersionNotSupportedError)) } + if v.AccessDeniedError != nil { + err = multierr.Append(err, enc.AddObject("accessDeniedError", v.AccessDeniedError)) + } return err } @@ -28379,6 +31309,21 @@ func (v *WorkflowService_StartWorkflowExecution_Result) IsSetClientVersionNotSup return v != nil && v.ClientVersionNotSupportedError != nil } +// GetAccessDeniedError returns the value of AccessDeniedError if it is set or its +// zero value if it is unset. +func (v *WorkflowService_StartWorkflowExecution_Result) GetAccessDeniedError() (o *shared.AccessDeniedError) { + if v != nil && v.AccessDeniedError != nil { + return v.AccessDeniedError + } + + return +} + +// IsSetAccessDeniedError returns true if AccessDeniedError is not nil. +func (v *WorkflowService_StartWorkflowExecution_Result) IsSetAccessDeniedError() bool { + return v != nil && v.AccessDeniedError != nil +} + // MethodName returns the name of the Thrift function as specified in // the IDL, for which this struct represent the result. // @@ -28624,6 +31569,8 @@ func init() { return true case *shared.ClientVersionNotSupportedError: return true + case *shared.AccessDeniedError: + return true default: return false } @@ -28670,6 +31617,11 @@ func init() { return nil, errors.New("WrapResponse received non-nil error type with nil value for WorkflowService_StartWorkflowExecutionAsync_Result.ClientVersionNotSupportedError") } return &WorkflowService_StartWorkflowExecutionAsync_Result{ClientVersionNotSupportedError: e}, nil + case *shared.AccessDeniedError: + if e == nil { + return nil, errors.New("WrapResponse received non-nil error type with nil value for WorkflowService_StartWorkflowExecutionAsync_Result.AccessDeniedError") + } + return &WorkflowService_StartWorkflowExecutionAsync_Result{AccessDeniedError: e}, nil } return nil, err @@ -28703,6 +31655,10 @@ func init() { err = result.ClientVersionNotSupportedError return } + if result.AccessDeniedError != nil { + err = result.AccessDeniedError + return + } if result.Success != nil { success = result.Success @@ -28730,6 +31686,7 @@ type WorkflowService_StartWorkflowExecutionAsync_Result struct { LimitExceededError *shared.LimitExceededError `json:"limitExceededError,omitempty"` EntityNotExistError *shared.EntityNotExistsError `json:"entityNotExistError,omitempty"` ClientVersionNotSupportedError *shared.ClientVersionNotSupportedError `json:"clientVersionNotSupportedError,omitempty"` + AccessDeniedError *shared.AccessDeniedError `json:"accessDeniedError,omitempty"` } // ToWire translates a WorkflowService_StartWorkflowExecutionAsync_Result struct into a Thrift-level intermediate @@ -28749,7 +31706,7 @@ type WorkflowService_StartWorkflowExecutionAsync_Result struct { // } func (v *WorkflowService_StartWorkflowExecutionAsync_Result) ToWire() (wire.Value, error) { var ( - fields [8]wire.Field + fields [9]wire.Field i int = 0 w wire.Value err error @@ -28819,6 +31776,14 @@ func (v *WorkflowService_StartWorkflowExecutionAsync_Result) ToWire() (wire.Valu fields[i] = wire.Field{ID: 8, Value: w} i++ } + if v.AccessDeniedError != nil { + w, err = v.AccessDeniedError.ToWire() + if err != nil { + return w, err + } + fields[i] = wire.Field{ID: 9, Value: w} + i++ + } if i != 1 { return wire.Value{}, fmt.Errorf("WorkflowService_StartWorkflowExecutionAsync_Result should have exactly one field: got %v fields", i) @@ -28918,6 +31883,14 @@ func (v *WorkflowService_StartWorkflowExecutionAsync_Result) FromWire(w wire.Val return err } + } + case 9: + if field.Value.Type() == wire.TStruct { + v.AccessDeniedError, err = _AccessDeniedError_Read(field.Value) + if err != nil { + return err + } + } } } @@ -28947,6 +31920,9 @@ func (v *WorkflowService_StartWorkflowExecutionAsync_Result) FromWire(w wire.Val if v.ClientVersionNotSupportedError != nil { count++ } + if v.AccessDeniedError != nil { + count++ + } if count != 1 { return fmt.Errorf("WorkflowService_StartWorkflowExecutionAsync_Result should have exactly one field: got %v fields", count) } @@ -28961,7 +31937,7 @@ func (v *WorkflowService_StartWorkflowExecutionAsync_Result) String() string { return "" } - var fields [8]string + var fields [9]string i := 0 if v.Success != nil { fields[i] = fmt.Sprintf("Success: %v", v.Success) @@ -28995,6 +31971,10 @@ func (v *WorkflowService_StartWorkflowExecutionAsync_Result) String() string { fields[i] = fmt.Sprintf("ClientVersionNotSupportedError: %v", v.ClientVersionNotSupportedError) i++ } + if v.AccessDeniedError != nil { + fields[i] = fmt.Sprintf("AccessDeniedError: %v", v.AccessDeniedError) + i++ + } return fmt.Sprintf("WorkflowService_StartWorkflowExecutionAsync_Result{%v}", strings.Join(fields[:i], ", ")) } @@ -29033,6 +32013,9 @@ func (v *WorkflowService_StartWorkflowExecutionAsync_Result) Equals(rhs *Workflo if !((v.ClientVersionNotSupportedError == nil && rhs.ClientVersionNotSupportedError == nil) || (v.ClientVersionNotSupportedError != nil && rhs.ClientVersionNotSupportedError != nil && v.ClientVersionNotSupportedError.Equals(rhs.ClientVersionNotSupportedError))) { return false } + if !((v.AccessDeniedError == nil && rhs.AccessDeniedError == nil) || (v.AccessDeniedError != nil && rhs.AccessDeniedError != nil && v.AccessDeniedError.Equals(rhs.AccessDeniedError))) { + return false + } return true } @@ -29067,6 +32050,9 @@ func (v *WorkflowService_StartWorkflowExecutionAsync_Result) MarshalLogObject(en if v.ClientVersionNotSupportedError != nil { err = multierr.Append(err, enc.AddObject("clientVersionNotSupportedError", v.ClientVersionNotSupportedError)) } + if v.AccessDeniedError != nil { + err = multierr.Append(err, enc.AddObject("accessDeniedError", v.AccessDeniedError)) + } return err } @@ -29190,6 +32176,21 @@ func (v *WorkflowService_StartWorkflowExecutionAsync_Result) IsSetClientVersionN return v != nil && v.ClientVersionNotSupportedError != nil } +// GetAccessDeniedError returns the value of AccessDeniedError if it is set or its +// zero value if it is unset. +func (v *WorkflowService_StartWorkflowExecutionAsync_Result) GetAccessDeniedError() (o *shared.AccessDeniedError) { + if v != nil && v.AccessDeniedError != nil { + return v.AccessDeniedError + } + + return +} + +// IsSetAccessDeniedError returns true if AccessDeniedError is not nil. +func (v *WorkflowService_StartWorkflowExecutionAsync_Result) IsSetAccessDeniedError() bool { + return v != nil && v.AccessDeniedError != nil +} + // MethodName returns the name of the Thrift function as specified in // the IDL, for which this struct represent the result. // @@ -29436,6 +32437,8 @@ func init() { return true case *shared.WorkflowExecutionAlreadyCompletedError: return true + case *shared.AccessDeniedError: + return true default: return false } @@ -29482,6 +32485,11 @@ func init() { return nil, errors.New("WrapResponse received non-nil error type with nil value for WorkflowService_TerminateWorkflowExecution_Result.WorkflowExecutionAlreadyCompletedError") } return &WorkflowService_TerminateWorkflowExecution_Result{WorkflowExecutionAlreadyCompletedError: e}, nil + case *shared.AccessDeniedError: + if e == nil { + return nil, errors.New("WrapResponse received non-nil error type with nil value for WorkflowService_TerminateWorkflowExecution_Result.AccessDeniedError") + } + return &WorkflowService_TerminateWorkflowExecution_Result{AccessDeniedError: e}, nil } return nil, err @@ -29515,6 +32523,10 @@ func init() { err = result.WorkflowExecutionAlreadyCompletedError return } + if result.AccessDeniedError != nil { + err = result.AccessDeniedError + return + } return } @@ -29531,6 +32543,7 @@ type WorkflowService_TerminateWorkflowExecution_Result struct { LimitExceededError *shared.LimitExceededError `json:"limitExceededError,omitempty"` ClientVersionNotSupportedError *shared.ClientVersionNotSupportedError `json:"clientVersionNotSupportedError,omitempty"` WorkflowExecutionAlreadyCompletedError *shared.WorkflowExecutionAlreadyCompletedError `json:"workflowExecutionAlreadyCompletedError,omitempty"` + AccessDeniedError *shared.AccessDeniedError `json:"accessDeniedError,omitempty"` } // ToWire translates a WorkflowService_TerminateWorkflowExecution_Result struct into a Thrift-level intermediate @@ -29550,7 +32563,7 @@ type WorkflowService_TerminateWorkflowExecution_Result struct { // } func (v *WorkflowService_TerminateWorkflowExecution_Result) ToWire() (wire.Value, error) { var ( - fields [7]wire.Field + fields [8]wire.Field i int = 0 w wire.Value err error @@ -29612,6 +32625,14 @@ func (v *WorkflowService_TerminateWorkflowExecution_Result) ToWire() (wire.Value fields[i] = wire.Field{ID: 8, Value: w} i++ } + if v.AccessDeniedError != nil { + w, err = v.AccessDeniedError.ToWire() + if err != nil { + return w, err + } + fields[i] = wire.Field{ID: 9, Value: w} + i++ + } if i > 1 { return wire.Value{}, fmt.Errorf("WorkflowService_TerminateWorkflowExecution_Result should have at most one field: got %v fields", i) @@ -29697,6 +32718,14 @@ func (v *WorkflowService_TerminateWorkflowExecution_Result) FromWire(w wire.Valu return err } + } + case 9: + if field.Value.Type() == wire.TStruct { + v.AccessDeniedError, err = _AccessDeniedError_Read(field.Value) + if err != nil { + return err + } + } } } @@ -29723,6 +32752,9 @@ func (v *WorkflowService_TerminateWorkflowExecution_Result) FromWire(w wire.Valu if v.WorkflowExecutionAlreadyCompletedError != nil { count++ } + if v.AccessDeniedError != nil { + count++ + } if count > 1 { return fmt.Errorf("WorkflowService_TerminateWorkflowExecution_Result should have at most one field: got %v fields", count) } @@ -29737,7 +32769,7 @@ func (v *WorkflowService_TerminateWorkflowExecution_Result) String() string { return "" } - var fields [7]string + var fields [8]string i := 0 if v.BadRequestError != nil { fields[i] = fmt.Sprintf("BadRequestError: %v", v.BadRequestError) @@ -29767,6 +32799,10 @@ func (v *WorkflowService_TerminateWorkflowExecution_Result) String() string { fields[i] = fmt.Sprintf("WorkflowExecutionAlreadyCompletedError: %v", v.WorkflowExecutionAlreadyCompletedError) i++ } + if v.AccessDeniedError != nil { + fields[i] = fmt.Sprintf("AccessDeniedError: %v", v.AccessDeniedError) + i++ + } return fmt.Sprintf("WorkflowService_TerminateWorkflowExecution_Result{%v}", strings.Join(fields[:i], ", ")) } @@ -29802,6 +32838,9 @@ func (v *WorkflowService_TerminateWorkflowExecution_Result) Equals(rhs *Workflow if !((v.WorkflowExecutionAlreadyCompletedError == nil && rhs.WorkflowExecutionAlreadyCompletedError == nil) || (v.WorkflowExecutionAlreadyCompletedError != nil && rhs.WorkflowExecutionAlreadyCompletedError != nil && v.WorkflowExecutionAlreadyCompletedError.Equals(rhs.WorkflowExecutionAlreadyCompletedError))) { return false } + if !((v.AccessDeniedError == nil && rhs.AccessDeniedError == nil) || (v.AccessDeniedError != nil && rhs.AccessDeniedError != nil && v.AccessDeniedError.Equals(rhs.AccessDeniedError))) { + return false + } return true } @@ -29833,6 +32872,9 @@ func (v *WorkflowService_TerminateWorkflowExecution_Result) MarshalLogObject(enc if v.WorkflowExecutionAlreadyCompletedError != nil { err = multierr.Append(err, enc.AddObject("workflowExecutionAlreadyCompletedError", v.WorkflowExecutionAlreadyCompletedError)) } + if v.AccessDeniedError != nil { + err = multierr.Append(err, enc.AddObject("accessDeniedError", v.AccessDeniedError)) + } return err } @@ -29941,6 +32983,21 @@ func (v *WorkflowService_TerminateWorkflowExecution_Result) IsSetWorkflowExecuti return v != nil && v.WorkflowExecutionAlreadyCompletedError != nil } +// GetAccessDeniedError returns the value of AccessDeniedError if it is set or its +// zero value if it is unset. +func (v *WorkflowService_TerminateWorkflowExecution_Result) GetAccessDeniedError() (o *shared.AccessDeniedError) { + if v != nil && v.AccessDeniedError != nil { + return v.AccessDeniedError + } + + return +} + +// IsSetAccessDeniedError returns true if AccessDeniedError is not nil. +func (v *WorkflowService_TerminateWorkflowExecution_Result) IsSetAccessDeniedError() bool { + return v != nil && v.AccessDeniedError != nil +} + // MethodName returns the name of the Thrift function as specified in // the IDL, for which this struct represent the result. // @@ -30182,6 +33239,8 @@ func init() { return true case *shared.ClientVersionNotSupportedError: return true + case *shared.AccessDeniedError: + return true default: return false } @@ -30218,6 +33277,11 @@ func init() { return nil, errors.New("WrapResponse received non-nil error type with nil value for WorkflowService_UpdateDomain_Result.ClientVersionNotSupportedError") } return &WorkflowService_UpdateDomain_Result{ClientVersionNotSupportedError: e}, nil + case *shared.AccessDeniedError: + if e == nil { + return nil, errors.New("WrapResponse received non-nil error type with nil value for WorkflowService_UpdateDomain_Result.AccessDeniedError") + } + return &WorkflowService_UpdateDomain_Result{AccessDeniedError: e}, nil } return nil, err @@ -30243,6 +33307,10 @@ func init() { err = result.ClientVersionNotSupportedError return } + if result.AccessDeniedError != nil { + err = result.AccessDeniedError + return + } if result.Success != nil { success = result.Success @@ -30268,6 +33336,7 @@ type WorkflowService_UpdateDomain_Result struct { ServiceBusyError *shared.ServiceBusyError `json:"serviceBusyError,omitempty"` DomainNotActiveError *shared.DomainNotActiveError `json:"domainNotActiveError,omitempty"` ClientVersionNotSupportedError *shared.ClientVersionNotSupportedError `json:"clientVersionNotSupportedError,omitempty"` + AccessDeniedError *shared.AccessDeniedError `json:"accessDeniedError,omitempty"` } // ToWire translates a WorkflowService_UpdateDomain_Result struct into a Thrift-level intermediate @@ -30287,7 +33356,7 @@ type WorkflowService_UpdateDomain_Result struct { // } func (v *WorkflowService_UpdateDomain_Result) ToWire() (wire.Value, error) { var ( - fields [6]wire.Field + fields [7]wire.Field i int = 0 w wire.Value err error @@ -30341,6 +33410,14 @@ func (v *WorkflowService_UpdateDomain_Result) ToWire() (wire.Value, error) { fields[i] = wire.Field{ID: 6, Value: w} i++ } + if v.AccessDeniedError != nil { + w, err = v.AccessDeniedError.ToWire() + if err != nil { + return w, err + } + fields[i] = wire.Field{ID: 7, Value: w} + i++ + } if i != 1 { return wire.Value{}, fmt.Errorf("WorkflowService_UpdateDomain_Result should have exactly one field: got %v fields", i) @@ -30424,6 +33501,14 @@ func (v *WorkflowService_UpdateDomain_Result) FromWire(w wire.Value) error { return err } + } + case 7: + if field.Value.Type() == wire.TStruct { + v.AccessDeniedError, err = _AccessDeniedError_Read(field.Value) + if err != nil { + return err + } + } } } @@ -30447,6 +33532,9 @@ func (v *WorkflowService_UpdateDomain_Result) FromWire(w wire.Value) error { if v.ClientVersionNotSupportedError != nil { count++ } + if v.AccessDeniedError != nil { + count++ + } if count != 1 { return fmt.Errorf("WorkflowService_UpdateDomain_Result should have exactly one field: got %v fields", count) } @@ -30461,7 +33549,7 @@ func (v *WorkflowService_UpdateDomain_Result) String() string { return "" } - var fields [6]string + var fields [7]string i := 0 if v.Success != nil { fields[i] = fmt.Sprintf("Success: %v", v.Success) @@ -30487,6 +33575,10 @@ func (v *WorkflowService_UpdateDomain_Result) String() string { fields[i] = fmt.Sprintf("ClientVersionNotSupportedError: %v", v.ClientVersionNotSupportedError) i++ } + if v.AccessDeniedError != nil { + fields[i] = fmt.Sprintf("AccessDeniedError: %v", v.AccessDeniedError) + i++ + } return fmt.Sprintf("WorkflowService_UpdateDomain_Result{%v}", strings.Join(fields[:i], ", ")) } @@ -30519,6 +33611,9 @@ func (v *WorkflowService_UpdateDomain_Result) Equals(rhs *WorkflowService_Update if !((v.ClientVersionNotSupportedError == nil && rhs.ClientVersionNotSupportedError == nil) || (v.ClientVersionNotSupportedError != nil && rhs.ClientVersionNotSupportedError != nil && v.ClientVersionNotSupportedError.Equals(rhs.ClientVersionNotSupportedError))) { return false } + if !((v.AccessDeniedError == nil && rhs.AccessDeniedError == nil) || (v.AccessDeniedError != nil && rhs.AccessDeniedError != nil && v.AccessDeniedError.Equals(rhs.AccessDeniedError))) { + return false + } return true } @@ -30547,6 +33642,9 @@ func (v *WorkflowService_UpdateDomain_Result) MarshalLogObject(enc zapcore.Objec if v.ClientVersionNotSupportedError != nil { err = multierr.Append(err, enc.AddObject("clientVersionNotSupportedError", v.ClientVersionNotSupportedError)) } + if v.AccessDeniedError != nil { + err = multierr.Append(err, enc.AddObject("accessDeniedError", v.AccessDeniedError)) + } return err } @@ -30640,6 +33738,21 @@ func (v *WorkflowService_UpdateDomain_Result) IsSetClientVersionNotSupportedErro return v != nil && v.ClientVersionNotSupportedError != nil } +// GetAccessDeniedError returns the value of AccessDeniedError if it is set or its +// zero value if it is unset. +func (v *WorkflowService_UpdateDomain_Result) GetAccessDeniedError() (o *shared.AccessDeniedError) { + if v != nil && v.AccessDeniedError != nil { + return v.AccessDeniedError + } + + return +} + +// IsSetAccessDeniedError returns true if AccessDeniedError is not nil. +func (v *WorkflowService_UpdateDomain_Result) IsSetAccessDeniedError() bool { + return v != nil && v.AccessDeniedError != nil +} + // MethodName returns the name of the Thrift function as specified in // the IDL, for which this struct represent the result. // diff --git a/.gen/go/cadence/workflowserviceclient/client.go b/.gen/go/cadence/workflowserviceclient/client.go index 9d86ed529..063999e1a 100644 --- a/.gen/go/cadence/workflowserviceclient/client.go +++ b/.gen/go/cadence/workflowserviceclient/client.go @@ -68,6 +68,12 @@ type Interface interface { opts ...yarpc.CallOption, ) (*shared.DescribeWorkflowExecutionResponse, error) + DiagnoseWorkflowExecution( + ctx context.Context, + DiagnoseRequest *shared.DiagnoseWorkflowExecutionRequest, + opts ...yarpc.CallOption, + ) (*shared.DiagnoseWorkflowExecutionResponse, error) + GetClusterInfo( ctx context.Context, opts ...yarpc.CallOption, @@ -434,6 +440,29 @@ func (c client) DescribeWorkflowExecution( return } +func (c client) DiagnoseWorkflowExecution( + ctx context.Context, + _DiagnoseRequest *shared.DiagnoseWorkflowExecutionRequest, + opts ...yarpc.CallOption, +) (success *shared.DiagnoseWorkflowExecutionResponse, err error) { + + args := cadence.WorkflowService_DiagnoseWorkflowExecution_Helper.Args(_DiagnoseRequest) + + var body wire.Value + body, err = c.c.Call(ctx, args, opts...) + if err != nil { + return + } + + var result cadence.WorkflowService_DiagnoseWorkflowExecution_Result + if err = result.FromWire(body); err != nil { + return + } + + success, err = cadence.WorkflowService_DiagnoseWorkflowExecution_Helper.UnwrapResponse(&result) + return +} + func (c client) GetClusterInfo( ctx context.Context, opts ...yarpc.CallOption, diff --git a/.gen/go/cadence/workflowserviceserver/server.go b/.gen/go/cadence/workflowserviceserver/server.go index 8095482fe..007b22541 100644 --- a/.gen/go/cadence/workflowserviceserver/server.go +++ b/.gen/go/cadence/workflowserviceserver/server.go @@ -62,6 +62,11 @@ type Interface interface { DescribeRequest *shared.DescribeWorkflowExecutionRequest, ) (*shared.DescribeWorkflowExecutionResponse, error) + DiagnoseWorkflowExecution( + ctx context.Context, + DiagnoseRequest *shared.DiagnoseWorkflowExecutionRequest, + ) (*shared.DiagnoseWorkflowExecutionResponse, error) + GetClusterInfo( ctx context.Context, ) (*shared.ClusterInfo, error) @@ -317,6 +322,17 @@ func New(impl Interface, opts ...thrift.RegisterOption) []transport.Procedure { ThriftModule: cadence.ThriftModule, }, + thrift.Method{ + Name: "DiagnoseWorkflowExecution", + HandlerSpec: thrift.HandlerSpec{ + + Type: transport.Unary, + Unary: thrift.UnaryHandler(h.DiagnoseWorkflowExecution), + }, + Signature: "DiagnoseWorkflowExecution(DiagnoseRequest *shared.DiagnoseWorkflowExecutionRequest) (*shared.DiagnoseWorkflowExecutionResponse)", + ThriftModule: cadence.ThriftModule, + }, + thrift.Method{ Name: "GetClusterInfo", HandlerSpec: thrift.HandlerSpec{ @@ -737,7 +753,7 @@ func New(impl Interface, opts ...thrift.RegisterOption) []transport.Procedure { }, } - procedures := make([]transport.Procedure, 0, 43) + procedures := make([]transport.Procedure, 0, 44) procedures = append(procedures, thrift.BuildProcedures(service, opts...)...) return procedures } @@ -898,6 +914,36 @@ func (h handler) DescribeWorkflowExecution(ctx context.Context, body wire.Value) return response, err } +func (h handler) DiagnoseWorkflowExecution(ctx context.Context, body wire.Value) (thrift.Response, error) { + var args cadence.WorkflowService_DiagnoseWorkflowExecution_Args + if err := args.FromWire(body); err != nil { + return thrift.Response{}, yarpcerrors.InvalidArgumentErrorf( + "could not decode Thrift request for service 'WorkflowService' procedure 'DiagnoseWorkflowExecution': %w", err) + } + + success, appErr := h.impl.DiagnoseWorkflowExecution(ctx, args.DiagnoseRequest) + + hadError := appErr != nil + result, err := cadence.WorkflowService_DiagnoseWorkflowExecution_Helper.WrapResponse(success, appErr) + + var response thrift.Response + if err == nil { + response.IsApplicationError = hadError + response.Body = result + if namer, ok := appErr.(yarpcErrorNamer); ok { + response.ApplicationErrorName = namer.YARPCErrorName() + } + if extractor, ok := appErr.(yarpcErrorCoder); ok { + response.ApplicationErrorCode = extractor.YARPCErrorCode() + } + if appErr != nil { + response.ApplicationErrorDetails = appErr.Error() + } + } + + return response, err +} + func (h handler) GetClusterInfo(ctx context.Context, body wire.Value) (thrift.Response, error) { var args cadence.WorkflowService_GetClusterInfo_Args if err := args.FromWire(body); err != nil { diff --git a/.gen/go/cadence/workflowservicetest/client.go b/.gen/go/cadence/workflowservicetest/client.go index 299945ef5..0da7d67df 100644 --- a/.gen/go/cadence/workflowservicetest/client.go +++ b/.gen/go/cadence/workflowservicetest/client.go @@ -227,6 +227,39 @@ func (mr *_MockClientRecorder) DescribeWorkflowExecution( return mr.mock.ctrl.RecordCall(mr.mock, "DescribeWorkflowExecution", args...) } +// DiagnoseWorkflowExecution responds to a DiagnoseWorkflowExecution call based on the mock expectations. This +// call will fail if the mock does not expect this call. Use EXPECT to expect +// a call to this function. +// +// client.EXPECT().DiagnoseWorkflowExecution(gomock.Any(), ...).Return(...) +// ... := client.DiagnoseWorkflowExecution(...) +func (m *MockClient) DiagnoseWorkflowExecution( + ctx context.Context, + _DiagnoseRequest *shared.DiagnoseWorkflowExecutionRequest, + opts ...yarpc.CallOption, +) (success *shared.DiagnoseWorkflowExecutionResponse, err error) { + + args := []interface{}{ctx, _DiagnoseRequest} + for _, o := range opts { + args = append(args, o) + } + i := 0 + ret := m.ctrl.Call(m, "DiagnoseWorkflowExecution", args...) + success, _ = ret[i].(*shared.DiagnoseWorkflowExecutionResponse) + i++ + err, _ = ret[i].(error) + return +} + +func (mr *_MockClientRecorder) DiagnoseWorkflowExecution( + ctx interface{}, + _DiagnoseRequest interface{}, + opts ...interface{}, +) *gomock.Call { + args := append([]interface{}{ctx, _DiagnoseRequest}, opts...) + return mr.mock.ctrl.RecordCall(mr.mock, "DiagnoseWorkflowExecution", args...) +} + // GetClusterInfo responds to a GetClusterInfo call based on the mock expectations. This // call will fail if the mock does not expect this call. Use EXPECT to expect // a call to this function. diff --git a/.gen/go/shared/shared.go b/.gen/go/shared/shared.go index 85a5f1b2b..1c51b0bce 100644 --- a/.gen/go/shared/shared.go +++ b/.gen/go/shared/shared.go @@ -4598,6 +4598,188 @@ func (v *AsyncWorkflowConfiguration) IsSetQueueConfig() bool { return v != nil && v.QueueConfig != nil } +type AutoConfigHint struct { + EnableAutoConfig *bool `json:"enableAutoConfig,omitempty"` + PollerWaitTimeInMs *int64 `json:"pollerWaitTimeInMs,omitempty"` +} + +// ToWire translates a AutoConfigHint struct into a Thrift-level intermediate +// representation. This intermediate representation may be serialized +// into bytes using a ThriftRW protocol implementation. +// +// An error is returned if the struct or any of its fields failed to +// validate. +// +// x, err := v.ToWire() +// if err != nil { +// return err +// } +// +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } +func (v *AutoConfigHint) ToWire() (wire.Value, error) { + var ( + fields [2]wire.Field + i int = 0 + w wire.Value + err error + ) + + if v.EnableAutoConfig != nil { + w, err = wire.NewValueBool(*(v.EnableAutoConfig)), error(nil) + if err != nil { + return w, err + } + fields[i] = wire.Field{ID: 10, Value: w} + i++ + } + if v.PollerWaitTimeInMs != nil { + w, err = wire.NewValueI64(*(v.PollerWaitTimeInMs)), error(nil) + if err != nil { + return w, err + } + fields[i] = wire.Field{ID: 20, Value: w} + i++ + } + + return wire.NewValueStruct(wire.Struct{Fields: fields[:i]}), nil +} + +// FromWire deserializes a AutoConfigHint struct from its Thrift-level +// representation. The Thrift-level representation may be obtained +// from a ThriftRW protocol implementation. +// +// An error is returned if we were unable to build a AutoConfigHint struct +// from the provided intermediate representation. +// +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } +// +// var v AutoConfigHint +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil +func (v *AutoConfigHint) FromWire(w wire.Value) error { + var err error + + for _, field := range w.GetStruct().Fields { + switch field.ID { + case 10: + if field.Value.Type() == wire.TBool { + var x bool + x, err = field.Value.GetBool(), error(nil) + v.EnableAutoConfig = &x + if err != nil { + return err + } + + } + case 20: + if field.Value.Type() == wire.TI64 { + var x int64 + x, err = field.Value.GetI64(), error(nil) + v.PollerWaitTimeInMs = &x + if err != nil { + return err + } + + } + } + } + + return nil +} + +// String returns a readable string representation of a AutoConfigHint +// struct. +func (v *AutoConfigHint) String() string { + if v == nil { + return "" + } + + var fields [2]string + i := 0 + if v.EnableAutoConfig != nil { + fields[i] = fmt.Sprintf("EnableAutoConfig: %v", *(v.EnableAutoConfig)) + i++ + } + if v.PollerWaitTimeInMs != nil { + fields[i] = fmt.Sprintf("PollerWaitTimeInMs: %v", *(v.PollerWaitTimeInMs)) + i++ + } + + return fmt.Sprintf("AutoConfigHint{%v}", strings.Join(fields[:i], ", ")) +} + +// Equals returns true if all the fields of this AutoConfigHint match the +// provided AutoConfigHint. +// +// This function performs a deep comparison. +func (v *AutoConfigHint) Equals(rhs *AutoConfigHint) bool { + if v == nil { + return rhs == nil + } else if rhs == nil { + return false + } + if !_Bool_EqualsPtr(v.EnableAutoConfig, rhs.EnableAutoConfig) { + return false + } + if !_I64_EqualsPtr(v.PollerWaitTimeInMs, rhs.PollerWaitTimeInMs) { + return false + } + + return true +} + +// MarshalLogObject implements zapcore.ObjectMarshaler, enabling +// fast logging of AutoConfigHint. +func (v *AutoConfigHint) MarshalLogObject(enc zapcore.ObjectEncoder) (err error) { + if v == nil { + return nil + } + if v.EnableAutoConfig != nil { + enc.AddBool("enableAutoConfig", *v.EnableAutoConfig) + } + if v.PollerWaitTimeInMs != nil { + enc.AddInt64("pollerWaitTimeInMs", *v.PollerWaitTimeInMs) + } + return err +} + +// GetEnableAutoConfig returns the value of EnableAutoConfig if it is set or its +// zero value if it is unset. +func (v *AutoConfigHint) GetEnableAutoConfig() (o bool) { + if v != nil && v.EnableAutoConfig != nil { + return *v.EnableAutoConfig + } + + return +} + +// IsSetEnableAutoConfig returns true if EnableAutoConfig is not nil. +func (v *AutoConfigHint) IsSetEnableAutoConfig() bool { + return v != nil && v.EnableAutoConfig != nil +} + +// GetPollerWaitTimeInMs returns the value of PollerWaitTimeInMs if it is set or its +// zero value if it is unset. +func (v *AutoConfigHint) GetPollerWaitTimeInMs() (o int64) { + if v != nil && v.PollerWaitTimeInMs != nil { + return *v.PollerWaitTimeInMs + } + + return +} + +// IsSetPollerWaitTimeInMs returns true if PollerWaitTimeInMs is not nil. +func (v *AutoConfigHint) IsSetPollerWaitTimeInMs() bool { + return v != nil && v.PollerWaitTimeInMs != nil +} + type BadBinaries struct { Binaries map[string]*BadBinaryInfo `json:"binaries,omitempty"` } @@ -21978,6 +22160,410 @@ func (v *DescribeWorkflowExecutionResponse) IsSetPendingDecision() bool { return v != nil && v.PendingDecision != nil } +type DiagnoseWorkflowExecutionRequest struct { + Domain *string `json:"domain,omitempty"` + WorkflowExecution *WorkflowExecution `json:"workflowExecution,omitempty"` + Identity *string `json:"identity,omitempty"` +} + +// ToWire translates a DiagnoseWorkflowExecutionRequest struct into a Thrift-level intermediate +// representation. This intermediate representation may be serialized +// into bytes using a ThriftRW protocol implementation. +// +// An error is returned if the struct or any of its fields failed to +// validate. +// +// x, err := v.ToWire() +// if err != nil { +// return err +// } +// +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } +func (v *DiagnoseWorkflowExecutionRequest) ToWire() (wire.Value, error) { + var ( + fields [3]wire.Field + i int = 0 + w wire.Value + err error + ) + + if v.Domain != nil { + w, err = wire.NewValueString(*(v.Domain)), error(nil) + if err != nil { + return w, err + } + fields[i] = wire.Field{ID: 10, Value: w} + i++ + } + if v.WorkflowExecution != nil { + w, err = v.WorkflowExecution.ToWire() + if err != nil { + return w, err + } + fields[i] = wire.Field{ID: 20, Value: w} + i++ + } + if v.Identity != nil { + w, err = wire.NewValueString(*(v.Identity)), error(nil) + if err != nil { + return w, err + } + fields[i] = wire.Field{ID: 30, Value: w} + i++ + } + + return wire.NewValueStruct(wire.Struct{Fields: fields[:i]}), nil +} + +// FromWire deserializes a DiagnoseWorkflowExecutionRequest struct from its Thrift-level +// representation. The Thrift-level representation may be obtained +// from a ThriftRW protocol implementation. +// +// An error is returned if we were unable to build a DiagnoseWorkflowExecutionRequest struct +// from the provided intermediate representation. +// +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } +// +// var v DiagnoseWorkflowExecutionRequest +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil +func (v *DiagnoseWorkflowExecutionRequest) FromWire(w wire.Value) error { + var err error + + for _, field := range w.GetStruct().Fields { + switch field.ID { + case 10: + if field.Value.Type() == wire.TBinary { + var x string + x, err = field.Value.GetString(), error(nil) + v.Domain = &x + if err != nil { + return err + } + + } + case 20: + if field.Value.Type() == wire.TStruct { + v.WorkflowExecution, err = _WorkflowExecution_Read(field.Value) + if err != nil { + return err + } + + } + case 30: + if field.Value.Type() == wire.TBinary { + var x string + x, err = field.Value.GetString(), error(nil) + v.Identity = &x + if err != nil { + return err + } + + } + } + } + + return nil +} + +// String returns a readable string representation of a DiagnoseWorkflowExecutionRequest +// struct. +func (v *DiagnoseWorkflowExecutionRequest) String() string { + if v == nil { + return "" + } + + var fields [3]string + i := 0 + if v.Domain != nil { + fields[i] = fmt.Sprintf("Domain: %v", *(v.Domain)) + i++ + } + if v.WorkflowExecution != nil { + fields[i] = fmt.Sprintf("WorkflowExecution: %v", v.WorkflowExecution) + i++ + } + if v.Identity != nil { + fields[i] = fmt.Sprintf("Identity: %v", *(v.Identity)) + i++ + } + + return fmt.Sprintf("DiagnoseWorkflowExecutionRequest{%v}", strings.Join(fields[:i], ", ")) +} + +// Equals returns true if all the fields of this DiagnoseWorkflowExecutionRequest match the +// provided DiagnoseWorkflowExecutionRequest. +// +// This function performs a deep comparison. +func (v *DiagnoseWorkflowExecutionRequest) Equals(rhs *DiagnoseWorkflowExecutionRequest) bool { + if v == nil { + return rhs == nil + } else if rhs == nil { + return false + } + if !_String_EqualsPtr(v.Domain, rhs.Domain) { + return false + } + if !((v.WorkflowExecution == nil && rhs.WorkflowExecution == nil) || (v.WorkflowExecution != nil && rhs.WorkflowExecution != nil && v.WorkflowExecution.Equals(rhs.WorkflowExecution))) { + return false + } + if !_String_EqualsPtr(v.Identity, rhs.Identity) { + return false + } + + return true +} + +// MarshalLogObject implements zapcore.ObjectMarshaler, enabling +// fast logging of DiagnoseWorkflowExecutionRequest. +func (v *DiagnoseWorkflowExecutionRequest) MarshalLogObject(enc zapcore.ObjectEncoder) (err error) { + if v == nil { + return nil + } + if v.Domain != nil { + enc.AddString("domain", *v.Domain) + } + if v.WorkflowExecution != nil { + err = multierr.Append(err, enc.AddObject("workflowExecution", v.WorkflowExecution)) + } + if v.Identity != nil { + enc.AddString("identity", *v.Identity) + } + return err +} + +// GetDomain returns the value of Domain if it is set or its +// zero value if it is unset. +func (v *DiagnoseWorkflowExecutionRequest) GetDomain() (o string) { + if v != nil && v.Domain != nil { + return *v.Domain + } + + return +} + +// IsSetDomain returns true if Domain is not nil. +func (v *DiagnoseWorkflowExecutionRequest) IsSetDomain() bool { + return v != nil && v.Domain != nil +} + +// GetWorkflowExecution returns the value of WorkflowExecution if it is set or its +// zero value if it is unset. +func (v *DiagnoseWorkflowExecutionRequest) GetWorkflowExecution() (o *WorkflowExecution) { + if v != nil && v.WorkflowExecution != nil { + return v.WorkflowExecution + } + + return +} + +// IsSetWorkflowExecution returns true if WorkflowExecution is not nil. +func (v *DiagnoseWorkflowExecutionRequest) IsSetWorkflowExecution() bool { + return v != nil && v.WorkflowExecution != nil +} + +// GetIdentity returns the value of Identity if it is set or its +// zero value if it is unset. +func (v *DiagnoseWorkflowExecutionRequest) GetIdentity() (o string) { + if v != nil && v.Identity != nil { + return *v.Identity + } + + return +} + +// IsSetIdentity returns true if Identity is not nil. +func (v *DiagnoseWorkflowExecutionRequest) IsSetIdentity() bool { + return v != nil && v.Identity != nil +} + +type DiagnoseWorkflowExecutionResponse struct { + Domain *string `json:"domain,omitempty"` + DiagnosticWorkflowExecution *WorkflowExecution `json:"diagnosticWorkflowExecution,omitempty"` +} + +// ToWire translates a DiagnoseWorkflowExecutionResponse struct into a Thrift-level intermediate +// representation. This intermediate representation may be serialized +// into bytes using a ThriftRW protocol implementation. +// +// An error is returned if the struct or any of its fields failed to +// validate. +// +// x, err := v.ToWire() +// if err != nil { +// return err +// } +// +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } +func (v *DiagnoseWorkflowExecutionResponse) ToWire() (wire.Value, error) { + var ( + fields [2]wire.Field + i int = 0 + w wire.Value + err error + ) + + if v.Domain != nil { + w, err = wire.NewValueString(*(v.Domain)), error(nil) + if err != nil { + return w, err + } + fields[i] = wire.Field{ID: 10, Value: w} + i++ + } + if v.DiagnosticWorkflowExecution != nil { + w, err = v.DiagnosticWorkflowExecution.ToWire() + if err != nil { + return w, err + } + fields[i] = wire.Field{ID: 20, Value: w} + i++ + } + + return wire.NewValueStruct(wire.Struct{Fields: fields[:i]}), nil +} + +// FromWire deserializes a DiagnoseWorkflowExecutionResponse struct from its Thrift-level +// representation. The Thrift-level representation may be obtained +// from a ThriftRW protocol implementation. +// +// An error is returned if we were unable to build a DiagnoseWorkflowExecutionResponse struct +// from the provided intermediate representation. +// +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } +// +// var v DiagnoseWorkflowExecutionResponse +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil +func (v *DiagnoseWorkflowExecutionResponse) FromWire(w wire.Value) error { + var err error + + for _, field := range w.GetStruct().Fields { + switch field.ID { + case 10: + if field.Value.Type() == wire.TBinary { + var x string + x, err = field.Value.GetString(), error(nil) + v.Domain = &x + if err != nil { + return err + } + + } + case 20: + if field.Value.Type() == wire.TStruct { + v.DiagnosticWorkflowExecution, err = _WorkflowExecution_Read(field.Value) + if err != nil { + return err + } + + } + } + } + + return nil +} + +// String returns a readable string representation of a DiagnoseWorkflowExecutionResponse +// struct. +func (v *DiagnoseWorkflowExecutionResponse) String() string { + if v == nil { + return "" + } + + var fields [2]string + i := 0 + if v.Domain != nil { + fields[i] = fmt.Sprintf("Domain: %v", *(v.Domain)) + i++ + } + if v.DiagnosticWorkflowExecution != nil { + fields[i] = fmt.Sprintf("DiagnosticWorkflowExecution: %v", v.DiagnosticWorkflowExecution) + i++ + } + + return fmt.Sprintf("DiagnoseWorkflowExecutionResponse{%v}", strings.Join(fields[:i], ", ")) +} + +// Equals returns true if all the fields of this DiagnoseWorkflowExecutionResponse match the +// provided DiagnoseWorkflowExecutionResponse. +// +// This function performs a deep comparison. +func (v *DiagnoseWorkflowExecutionResponse) Equals(rhs *DiagnoseWorkflowExecutionResponse) bool { + if v == nil { + return rhs == nil + } else if rhs == nil { + return false + } + if !_String_EqualsPtr(v.Domain, rhs.Domain) { + return false + } + if !((v.DiagnosticWorkflowExecution == nil && rhs.DiagnosticWorkflowExecution == nil) || (v.DiagnosticWorkflowExecution != nil && rhs.DiagnosticWorkflowExecution != nil && v.DiagnosticWorkflowExecution.Equals(rhs.DiagnosticWorkflowExecution))) { + return false + } + + return true +} + +// MarshalLogObject implements zapcore.ObjectMarshaler, enabling +// fast logging of DiagnoseWorkflowExecutionResponse. +func (v *DiagnoseWorkflowExecutionResponse) MarshalLogObject(enc zapcore.ObjectEncoder) (err error) { + if v == nil { + return nil + } + if v.Domain != nil { + enc.AddString("domain", *v.Domain) + } + if v.DiagnosticWorkflowExecution != nil { + err = multierr.Append(err, enc.AddObject("diagnosticWorkflowExecution", v.DiagnosticWorkflowExecution)) + } + return err +} + +// GetDomain returns the value of Domain if it is set or its +// zero value if it is unset. +func (v *DiagnoseWorkflowExecutionResponse) GetDomain() (o string) { + if v != nil && v.Domain != nil { + return *v.Domain + } + + return +} + +// IsSetDomain returns true if Domain is not nil. +func (v *DiagnoseWorkflowExecutionResponse) IsSetDomain() bool { + return v != nil && v.Domain != nil +} + +// GetDiagnosticWorkflowExecution returns the value of DiagnosticWorkflowExecution if it is set or its +// zero value if it is unset. +func (v *DiagnoseWorkflowExecutionResponse) GetDiagnosticWorkflowExecution() (o *WorkflowExecution) { + if v != nil && v.DiagnosticWorkflowExecution != nil { + return v.DiagnosticWorkflowExecution + } + + return +} + +// IsSetDiagnosticWorkflowExecution returns true if DiagnosticWorkflowExecution is not nil. +func (v *DiagnoseWorkflowExecutionResponse) IsSetDiagnosticWorkflowExecution() bool { + return v != nil && v.DiagnosticWorkflowExecution != nil +} + type DomainAlreadyExistsError struct { Message string `json:"message,required"` } @@ -36781,6 +37367,7 @@ type PendingActivityInfo struct { LastWorkerIdentity *string `json:"lastWorkerIdentity,omitempty"` LastFailureDetails []byte `json:"lastFailureDetails,omitempty"` StartedWorkerIdentity *string `json:"startedWorkerIdentity,omitempty"` + ScheduleID *int64 `json:"scheduleID,omitempty"` } // ToWire translates a PendingActivityInfo struct into a Thrift-level intermediate @@ -36800,7 +37387,7 @@ type PendingActivityInfo struct { // } func (v *PendingActivityInfo) ToWire() (wire.Value, error) { var ( - fields [14]wire.Field + fields [15]wire.Field i int = 0 w wire.Value err error @@ -36918,6 +37505,14 @@ func (v *PendingActivityInfo) ToWire() (wire.Value, error) { fields[i] = wire.Field{ID: 140, Value: w} i++ } + if v.ScheduleID != nil { + w, err = wire.NewValueI64(*(v.ScheduleID)), error(nil) + if err != nil { + return w, err + } + fields[i] = wire.Field{ID: 150, Value: w} + i++ + } return wire.NewValueStruct(wire.Struct{Fields: fields[:i]}), nil } @@ -37083,6 +37678,16 @@ func (v *PendingActivityInfo) FromWire(w wire.Value) error { return err } + } + case 150: + if field.Value.Type() == wire.TI64 { + var x int64 + x, err = field.Value.GetI64(), error(nil) + v.ScheduleID = &x + if err != nil { + return err + } + } } } @@ -37097,7 +37702,7 @@ func (v *PendingActivityInfo) String() string { return "" } - var fields [14]string + var fields [15]string i := 0 if v.ActivityID != nil { fields[i] = fmt.Sprintf("ActivityID: %v", *(v.ActivityID)) @@ -37155,6 +37760,10 @@ func (v *PendingActivityInfo) String() string { fields[i] = fmt.Sprintf("StartedWorkerIdentity: %v", *(v.StartedWorkerIdentity)) i++ } + if v.ScheduleID != nil { + fields[i] = fmt.Sprintf("ScheduleID: %v", *(v.ScheduleID)) + i++ + } return fmt.Sprintf("PendingActivityInfo{%v}", strings.Join(fields[:i], ", ")) } @@ -37221,6 +37830,9 @@ func (v *PendingActivityInfo) Equals(rhs *PendingActivityInfo) bool { if !_String_EqualsPtr(v.StartedWorkerIdentity, rhs.StartedWorkerIdentity) { return false } + if !_I64_EqualsPtr(v.ScheduleID, rhs.ScheduleID) { + return false + } return true } @@ -37273,6 +37885,9 @@ func (v *PendingActivityInfo) MarshalLogObject(enc zapcore.ObjectEncoder) (err e if v.StartedWorkerIdentity != nil { enc.AddString("startedWorkerIdentity", *v.StartedWorkerIdentity) } + if v.ScheduleID != nil { + enc.AddInt64("scheduleID", *v.ScheduleID) + } return err } @@ -37486,6 +38101,21 @@ func (v *PendingActivityInfo) IsSetStartedWorkerIdentity() bool { return v != nil && v.StartedWorkerIdentity != nil } +// GetScheduleID returns the value of ScheduleID if it is set or its +// zero value if it is unset. +func (v *PendingActivityInfo) GetScheduleID() (o int64) { + if v != nil && v.ScheduleID != nil { + return *v.ScheduleID + } + + return +} + +// IsSetScheduleID returns true if ScheduleID is not nil. +func (v *PendingActivityInfo) IsSetScheduleID() bool { + return v != nil && v.ScheduleID != nil +} + type PendingActivityState int32 const ( @@ -38034,6 +38664,7 @@ type PendingDecisionInfo struct { StartedTimestamp *int64 `json:"startedTimestamp,omitempty"` Attempt *int64 `json:"attempt,omitempty"` OriginalScheduledTimestamp *int64 `json:"originalScheduledTimestamp,omitempty"` + ScheduleID *int64 `json:"scheduleID,omitempty"` } // ToWire translates a PendingDecisionInfo struct into a Thrift-level intermediate @@ -38053,7 +38684,7 @@ type PendingDecisionInfo struct { // } func (v *PendingDecisionInfo) ToWire() (wire.Value, error) { var ( - fields [5]wire.Field + fields [6]wire.Field i int = 0 w wire.Value err error @@ -38099,6 +38730,14 @@ func (v *PendingDecisionInfo) ToWire() (wire.Value, error) { fields[i] = wire.Field{ID: 50, Value: w} i++ } + if v.ScheduleID != nil { + w, err = wire.NewValueI64(*(v.ScheduleID)), error(nil) + if err != nil { + return w, err + } + fields[i] = wire.Field{ID: 60, Value: w} + i++ + } return wire.NewValueStruct(wire.Struct{Fields: fields[:i]}), nil } @@ -38180,6 +38819,16 @@ func (v *PendingDecisionInfo) FromWire(w wire.Value) error { return err } + } + case 60: + if field.Value.Type() == wire.TI64 { + var x int64 + x, err = field.Value.GetI64(), error(nil) + v.ScheduleID = &x + if err != nil { + return err + } + } } } @@ -38194,7 +38843,7 @@ func (v *PendingDecisionInfo) String() string { return "" } - var fields [5]string + var fields [6]string i := 0 if v.State != nil { fields[i] = fmt.Sprintf("State: %v", *(v.State)) @@ -38216,6 +38865,10 @@ func (v *PendingDecisionInfo) String() string { fields[i] = fmt.Sprintf("OriginalScheduledTimestamp: %v", *(v.OriginalScheduledTimestamp)) i++ } + if v.ScheduleID != nil { + fields[i] = fmt.Sprintf("ScheduleID: %v", *(v.ScheduleID)) + i++ + } return fmt.Sprintf("PendingDecisionInfo{%v}", strings.Join(fields[:i], ", ")) } @@ -38255,6 +38908,9 @@ func (v *PendingDecisionInfo) Equals(rhs *PendingDecisionInfo) bool { if !_I64_EqualsPtr(v.OriginalScheduledTimestamp, rhs.OriginalScheduledTimestamp) { return false } + if !_I64_EqualsPtr(v.ScheduleID, rhs.ScheduleID) { + return false + } return true } @@ -38280,6 +38936,9 @@ func (v *PendingDecisionInfo) MarshalLogObject(enc zapcore.ObjectEncoder) (err e if v.OriginalScheduledTimestamp != nil { enc.AddInt64("originalScheduledTimestamp", *v.OriginalScheduledTimestamp) } + if v.ScheduleID != nil { + enc.AddInt64("scheduleID", *v.ScheduleID) + } return err } @@ -38358,6 +39017,21 @@ func (v *PendingDecisionInfo) IsSetOriginalScheduledTimestamp() bool { return v != nil && v.OriginalScheduledTimestamp != nil } +// GetScheduleID returns the value of ScheduleID if it is set or its +// zero value if it is unset. +func (v *PendingDecisionInfo) GetScheduleID() (o int64) { + if v != nil && v.ScheduleID != nil { + return *v.ScheduleID + } + + return +} + +// IsSetScheduleID returns true if ScheduleID is not nil. +func (v *PendingDecisionInfo) IsSetScheduleID() bool { + return v != nil && v.ScheduleID != nil +} + type PendingDecisionState int32 const ( @@ -38818,6 +39492,7 @@ type PollForActivityTaskResponse struct { WorkflowType *WorkflowType `json:"workflowType,omitempty"` WorkflowDomain *string `json:"workflowDomain,omitempty"` Header *Header `json:"header,omitempty"` + AutoConfigHint *AutoConfigHint `json:"autoConfigHint,omitempty"` } // ToWire translates a PollForActivityTaskResponse struct into a Thrift-level intermediate @@ -38837,7 +39512,7 @@ type PollForActivityTaskResponse struct { // } func (v *PollForActivityTaskResponse) ToWire() (wire.Value, error) { var ( - fields [16]wire.Field + fields [17]wire.Field i int = 0 w wire.Value err error @@ -38971,10 +39646,24 @@ func (v *PollForActivityTaskResponse) ToWire() (wire.Value, error) { fields[i] = wire.Field{ID: 170, Value: w} i++ } + if v.AutoConfigHint != nil { + w, err = v.AutoConfigHint.ToWire() + if err != nil { + return w, err + } + fields[i] = wire.Field{ID: 180, Value: w} + i++ + } return wire.NewValueStruct(wire.Struct{Fields: fields[:i]}), nil } +func _AutoConfigHint_Read(w wire.Value) (*AutoConfigHint, error) { + var v AutoConfigHint + err := v.FromWire(w) + return &v, err +} + // FromWire deserializes a PollForActivityTaskResponse struct from its Thrift-level // representation. The Thrift-level representation may be obtained // from a ThriftRW protocol implementation. @@ -39142,6 +39831,14 @@ func (v *PollForActivityTaskResponse) FromWire(w wire.Value) error { return err } + } + case 180: + if field.Value.Type() == wire.TStruct { + v.AutoConfigHint, err = _AutoConfigHint_Read(field.Value) + if err != nil { + return err + } + } } } @@ -39156,7 +39853,7 @@ func (v *PollForActivityTaskResponse) String() string { return "" } - var fields [16]string + var fields [17]string i := 0 if v.TaskToken != nil { fields[i] = fmt.Sprintf("TaskToken: %v", v.TaskToken) @@ -39222,6 +39919,10 @@ func (v *PollForActivityTaskResponse) String() string { fields[i] = fmt.Sprintf("Header: %v", v.Header) i++ } + if v.AutoConfigHint != nil { + fields[i] = fmt.Sprintf("AutoConfigHint: %v", v.AutoConfigHint) + i++ + } return fmt.Sprintf("PollForActivityTaskResponse{%v}", strings.Join(fields[:i], ", ")) } @@ -39284,6 +39985,9 @@ func (v *PollForActivityTaskResponse) Equals(rhs *PollForActivityTaskResponse) b if !((v.Header == nil && rhs.Header == nil) || (v.Header != nil && rhs.Header != nil && v.Header.Equals(rhs.Header))) { return false } + if !((v.AutoConfigHint == nil && rhs.AutoConfigHint == nil) || (v.AutoConfigHint != nil && rhs.AutoConfigHint != nil && v.AutoConfigHint.Equals(rhs.AutoConfigHint))) { + return false + } return true } @@ -39342,6 +40046,9 @@ func (v *PollForActivityTaskResponse) MarshalLogObject(enc zapcore.ObjectEncoder if v.Header != nil { err = multierr.Append(err, enc.AddObject("header", v.Header)) } + if v.AutoConfigHint != nil { + err = multierr.Append(err, enc.AddObject("autoConfigHint", v.AutoConfigHint)) + } return err } @@ -39585,6 +40292,21 @@ func (v *PollForActivityTaskResponse) IsSetHeader() bool { return v != nil && v.Header != nil } +// GetAutoConfigHint returns the value of AutoConfigHint if it is set or its +// zero value if it is unset. +func (v *PollForActivityTaskResponse) GetAutoConfigHint() (o *AutoConfigHint) { + if v != nil && v.AutoConfigHint != nil { + return v.AutoConfigHint + } + + return +} + +// IsSetAutoConfigHint returns true if AutoConfigHint is not nil. +func (v *PollForActivityTaskResponse) IsSetAutoConfigHint() bool { + return v != nil && v.AutoConfigHint != nil +} + type PollForDecisionTaskRequest struct { Domain *string `json:"domain,omitempty"` TaskList *TaskList `json:"taskList,omitempty"` @@ -39870,6 +40592,7 @@ type PollForDecisionTaskResponse struct { Queries map[string]*WorkflowQuery `json:"queries,omitempty"` NextEventId *int64 `json:"nextEventId,omitempty"` TotalHistoryBytes *int64 `json:"totalHistoryBytes,omitempty"` + AutoConfigHint *AutoConfigHint `json:"autoConfigHint,omitempty"` } type _Map_String_WorkflowQuery_MapItemList map[string]*WorkflowQuery @@ -39927,7 +40650,7 @@ func (_Map_String_WorkflowQuery_MapItemList) Close() {} // } func (v *PollForDecisionTaskResponse) ToWire() (wire.Value, error) { var ( - fields [16]wire.Field + fields [17]wire.Field i int = 0 w wire.Value err error @@ -40061,6 +40784,14 @@ func (v *PollForDecisionTaskResponse) ToWire() (wire.Value, error) { fields[i] = wire.Field{ID: 140, Value: w} i++ } + if v.AutoConfigHint != nil { + w, err = v.AutoConfigHint.ToWire() + if err != nil { + return w, err + } + fields[i] = wire.Field{ID: 150, Value: w} + i++ + } return wire.NewValueStruct(wire.Struct{Fields: fields[:i]}), nil } @@ -40264,6 +40995,14 @@ func (v *PollForDecisionTaskResponse) FromWire(w wire.Value) error { return err } + } + case 150: + if field.Value.Type() == wire.TStruct { + v.AutoConfigHint, err = _AutoConfigHint_Read(field.Value) + if err != nil { + return err + } + } } } @@ -40278,7 +41017,7 @@ func (v *PollForDecisionTaskResponse) String() string { return "" } - var fields [16]string + var fields [17]string i := 0 if v.TaskToken != nil { fields[i] = fmt.Sprintf("TaskToken: %v", v.TaskToken) @@ -40344,6 +41083,10 @@ func (v *PollForDecisionTaskResponse) String() string { fields[i] = fmt.Sprintf("TotalHistoryBytes: %v", *(v.TotalHistoryBytes)) i++ } + if v.AutoConfigHint != nil { + fields[i] = fmt.Sprintf("AutoConfigHint: %v", v.AutoConfigHint) + i++ + } return fmt.Sprintf("PollForDecisionTaskResponse{%v}", strings.Join(fields[:i], ", ")) } @@ -40423,6 +41166,9 @@ func (v *PollForDecisionTaskResponse) Equals(rhs *PollForDecisionTaskResponse) b if !_I64_EqualsPtr(v.TotalHistoryBytes, rhs.TotalHistoryBytes) { return false } + if !((v.AutoConfigHint == nil && rhs.AutoConfigHint == nil) || (v.AutoConfigHint != nil && rhs.AutoConfigHint != nil && v.AutoConfigHint.Equals(rhs.AutoConfigHint))) { + return false + } return true } @@ -40492,6 +41238,9 @@ func (v *PollForDecisionTaskResponse) MarshalLogObject(enc zapcore.ObjectEncoder if v.TotalHistoryBytes != nil { enc.AddInt64("totalHistoryBytes", *v.TotalHistoryBytes) } + if v.AutoConfigHint != nil { + err = multierr.Append(err, enc.AddObject("autoConfigHint", v.AutoConfigHint)) + } return err } @@ -40735,6 +41484,21 @@ func (v *PollForDecisionTaskResponse) IsSetTotalHistoryBytes() bool { return v != nil && v.TotalHistoryBytes != nil } +// GetAutoConfigHint returns the value of AutoConfigHint if it is set or its +// zero value if it is unset. +func (v *PollForDecisionTaskResponse) GetAutoConfigHint() (o *AutoConfigHint) { + if v != nil && v.AutoConfigHint != nil { + return v.AutoConfigHint + } + + return +} + +// IsSetAutoConfigHint returns true if AutoConfigHint is not nil. +func (v *PollForDecisionTaskResponse) IsSetAutoConfigHint() bool { + return v != nil && v.AutoConfigHint != nil +} + type PollerInfo struct { LastAccessTime *int64 `json:"lastAccessTime,omitempty"` Identity *string `json:"identity,omitempty"` @@ -62082,6 +62846,218 @@ func (v *TaskListMetadata) IsSetMaxTasksPerSecond() bool { return v != nil && v.MaxTasksPerSecond != nil } +type TaskListNotOwnedByHostError struct { + OwnedByIdentity string `json:"ownedByIdentity,required"` + MyIdentity string `json:"myIdentity,required"` + TasklistName string `json:"tasklistName,required"` +} + +// ToWire translates a TaskListNotOwnedByHostError struct into a Thrift-level intermediate +// representation. This intermediate representation may be serialized +// into bytes using a ThriftRW protocol implementation. +// +// An error is returned if the struct or any of its fields failed to +// validate. +// +// x, err := v.ToWire() +// if err != nil { +// return err +// } +// +// if err := binaryProtocol.Encode(x, writer); err != nil { +// return err +// } +func (v *TaskListNotOwnedByHostError) ToWire() (wire.Value, error) { + var ( + fields [3]wire.Field + i int = 0 + w wire.Value + err error + ) + + w, err = wire.NewValueString(v.OwnedByIdentity), error(nil) + if err != nil { + return w, err + } + fields[i] = wire.Field{ID: 1, Value: w} + i++ + + w, err = wire.NewValueString(v.MyIdentity), error(nil) + if err != nil { + return w, err + } + fields[i] = wire.Field{ID: 2, Value: w} + i++ + + w, err = wire.NewValueString(v.TasklistName), error(nil) + if err != nil { + return w, err + } + fields[i] = wire.Field{ID: 3, Value: w} + i++ + + return wire.NewValueStruct(wire.Struct{Fields: fields[:i]}), nil +} + +// FromWire deserializes a TaskListNotOwnedByHostError struct from its Thrift-level +// representation. The Thrift-level representation may be obtained +// from a ThriftRW protocol implementation. +// +// An error is returned if we were unable to build a TaskListNotOwnedByHostError struct +// from the provided intermediate representation. +// +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } +// +// var v TaskListNotOwnedByHostError +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil +func (v *TaskListNotOwnedByHostError) FromWire(w wire.Value) error { + var err error + + ownedByIdentityIsSet := false + myIdentityIsSet := false + tasklistNameIsSet := false + + for _, field := range w.GetStruct().Fields { + switch field.ID { + case 1: + if field.Value.Type() == wire.TBinary { + v.OwnedByIdentity, err = field.Value.GetString(), error(nil) + if err != nil { + return err + } + ownedByIdentityIsSet = true + } + case 2: + if field.Value.Type() == wire.TBinary { + v.MyIdentity, err = field.Value.GetString(), error(nil) + if err != nil { + return err + } + myIdentityIsSet = true + } + case 3: + if field.Value.Type() == wire.TBinary { + v.TasklistName, err = field.Value.GetString(), error(nil) + if err != nil { + return err + } + tasklistNameIsSet = true + } + } + } + + if !ownedByIdentityIsSet { + return errors.New("field OwnedByIdentity of TaskListNotOwnedByHostError is required") + } + + if !myIdentityIsSet { + return errors.New("field MyIdentity of TaskListNotOwnedByHostError is required") + } + + if !tasklistNameIsSet { + return errors.New("field TasklistName of TaskListNotOwnedByHostError is required") + } + + return nil +} + +// String returns a readable string representation of a TaskListNotOwnedByHostError +// struct. +func (v *TaskListNotOwnedByHostError) String() string { + if v == nil { + return "" + } + + var fields [3]string + i := 0 + fields[i] = fmt.Sprintf("OwnedByIdentity: %v", v.OwnedByIdentity) + i++ + fields[i] = fmt.Sprintf("MyIdentity: %v", v.MyIdentity) + i++ + fields[i] = fmt.Sprintf("TasklistName: %v", v.TasklistName) + i++ + + return fmt.Sprintf("TaskListNotOwnedByHostError{%v}", strings.Join(fields[:i], ", ")) +} + +// ErrorName is the name of this type as defined in the Thrift +// file. +func (*TaskListNotOwnedByHostError) ErrorName() string { + return "TaskListNotOwnedByHostError" +} + +// Equals returns true if all the fields of this TaskListNotOwnedByHostError match the +// provided TaskListNotOwnedByHostError. +// +// This function performs a deep comparison. +func (v *TaskListNotOwnedByHostError) Equals(rhs *TaskListNotOwnedByHostError) bool { + if v == nil { + return rhs == nil + } else if rhs == nil { + return false + } + if !(v.OwnedByIdentity == rhs.OwnedByIdentity) { + return false + } + if !(v.MyIdentity == rhs.MyIdentity) { + return false + } + if !(v.TasklistName == rhs.TasklistName) { + return false + } + + return true +} + +// MarshalLogObject implements zapcore.ObjectMarshaler, enabling +// fast logging of TaskListNotOwnedByHostError. +func (v *TaskListNotOwnedByHostError) MarshalLogObject(enc zapcore.ObjectEncoder) (err error) { + if v == nil { + return nil + } + enc.AddString("ownedByIdentity", v.OwnedByIdentity) + enc.AddString("myIdentity", v.MyIdentity) + enc.AddString("tasklistName", v.TasklistName) + return err +} + +// GetOwnedByIdentity returns the value of OwnedByIdentity if it is set or its +// zero value if it is unset. +func (v *TaskListNotOwnedByHostError) GetOwnedByIdentity() (o string) { + if v != nil { + o = v.OwnedByIdentity + } + return +} + +// GetMyIdentity returns the value of MyIdentity if it is set or its +// zero value if it is unset. +func (v *TaskListNotOwnedByHostError) GetMyIdentity() (o string) { + if v != nil { + o = v.MyIdentity + } + return +} + +// GetTasklistName returns the value of TasklistName if it is set or its +// zero value if it is unset. +func (v *TaskListNotOwnedByHostError) GetTasklistName() (o string) { + if v != nil { + o = v.TasklistName + } + return +} + +func (v *TaskListNotOwnedByHostError) Error() string { + return v.String() +} + type TaskListPartitionMetadata struct { Key *string `json:"key,omitempty"` OwnerHostName *string `json:"ownerHostName,omitempty"` @@ -72819,8 +73795,8 @@ var ThriftModule = &thriftreflect.ThriftModule{ Name: "shared", Package: "go.uber.org/cadence/.gen/go/shared", FilePath: "shared.thrift", - SHA1: "548ce979525ce001d43baf29defb9d5cbbd2a061", + SHA1: "c24af4a97d8b3051d71619467e1f84024a8f8757", Raw: rawIDL, } -const rawIDL = "// Copyright (c) 2017 Uber Technologies, Inc.\n//\n// Permission is hereby granted, free of charge, to any person obtaining a copy\n// of this software and associated documentation files (the \"Software\"), to deal\n// in the Software without restriction, including without limitation the rights\n// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n// copies of the Software, and to permit persons to whom the Software is\n// furnished to do so, subject to the following conditions:\n//\n// The above copyright notice and this permission notice shall be included in\n// all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n// THE SOFTWARE.\n\nnamespace java com.uber.cadence\n\nexception BadRequestError {\n 1: required string message\n}\n\nexception InternalServiceError {\n 1: required string message\n}\n\nexception InternalDataInconsistencyError {\n 1: required string message\n}\n\nexception DomainAlreadyExistsError {\n 1: required string message\n}\n\nexception WorkflowExecutionAlreadyStartedError {\n 10: optional string message\n 20: optional string startRequestId\n 30: optional string runId\n}\n\nexception WorkflowExecutionAlreadyCompletedError {\n 1: required string message\n}\n\nexception EntityNotExistsError {\n 1: required string message\n 2: optional string currentCluster\n 3: optional string activeCluster\n}\n\nexception ServiceBusyError {\n 1: required string message\n 2: optional string reason\n}\n\nexception CancellationAlreadyRequestedError {\n 1: required string message\n}\n\nexception QueryFailedError {\n 1: required string message\n}\n\nexception DomainNotActiveError {\n 1: required string message\n 2: required string domainName\n 3: required string currentCluster\n 4: required string activeCluster\n}\n\nexception LimitExceededError {\n 1: required string message\n}\n\nexception AccessDeniedError {\n 1: required string message\n}\n\nexception RetryTaskV2Error {\n 1: required string message\n 2: optional string domainId\n 3: optional string workflowId\n 4: optional string runId\n 5: optional i64 (js.type = \"Long\") startEventId\n 6: optional i64 (js.type = \"Long\") startEventVersion\n 7: optional i64 (js.type = \"Long\") endEventId\n 8: optional i64 (js.type = \"Long\") endEventVersion\n}\n\nexception ClientVersionNotSupportedError {\n 1: required string featureVersion\n 2: required string clientImpl\n 3: required string supportedVersions\n}\n\nexception FeatureNotEnabledError {\n 1: required string featureFlag\n}\n\nexception CurrentBranchChangedError {\n 10: required string message\n 20: required binary currentBranchToken\n}\n\nexception RemoteSyncMatchedError {\n 10: required string message\n}\n\nexception StickyWorkerUnavailableError {\n 1: required string message\n}\n\nenum WorkflowIdReusePolicy {\n /*\n * allow start a workflow execution using the same workflow ID,\n * when workflow not running, and the last execution close state is in\n * [terminated, cancelled, timeouted, failed].\n */\n AllowDuplicateFailedOnly,\n /*\n * allow start a workflow execution using the same workflow ID,\n * when workflow not running.\n */\n AllowDuplicate,\n /*\n * do not allow start a workflow execution using the same workflow ID at all\n */\n RejectDuplicate,\n /*\n * if a workflow is running using the same workflow ID, terminate it and start a new one\n */\n TerminateIfRunning,\n}\n\nenum DomainStatus {\n REGISTERED,\n DEPRECATED,\n DELETED,\n}\n\nenum TimeoutType {\n START_TO_CLOSE,\n SCHEDULE_TO_START,\n SCHEDULE_TO_CLOSE,\n HEARTBEAT,\n}\n\nenum ParentClosePolicy {\n\tABANDON,\n\tREQUEST_CANCEL,\n\tTERMINATE,\n}\n\n\n// whenever this list of decision is changed\n// do change the mutableStateBuilder.go\n// function shouldBufferEvent\n// to make sure wo do the correct event ordering\nenum DecisionType {\n ScheduleActivityTask,\n RequestCancelActivityTask,\n StartTimer,\n CompleteWorkflowExecution,\n FailWorkflowExecution,\n CancelTimer,\n CancelWorkflowExecution,\n RequestCancelExternalWorkflowExecution,\n RecordMarker,\n ContinueAsNewWorkflowExecution,\n StartChildWorkflowExecution,\n SignalExternalWorkflowExecution,\n UpsertWorkflowSearchAttributes,\n}\n\nenum EventType {\n WorkflowExecutionStarted,\n WorkflowExecutionCompleted,\n WorkflowExecutionFailed,\n WorkflowExecutionTimedOut,\n DecisionTaskScheduled,\n DecisionTaskStarted,\n DecisionTaskCompleted,\n DecisionTaskTimedOut\n DecisionTaskFailed,\n ActivityTaskScheduled,\n ActivityTaskStarted,\n ActivityTaskCompleted,\n ActivityTaskFailed,\n ActivityTaskTimedOut,\n ActivityTaskCancelRequested,\n RequestCancelActivityTaskFailed,\n ActivityTaskCanceled,\n TimerStarted,\n TimerFired,\n CancelTimerFailed,\n TimerCanceled,\n WorkflowExecutionCancelRequested,\n WorkflowExecutionCanceled,\n RequestCancelExternalWorkflowExecutionInitiated,\n RequestCancelExternalWorkflowExecutionFailed,\n ExternalWorkflowExecutionCancelRequested,\n MarkerRecorded,\n WorkflowExecutionSignaled,\n WorkflowExecutionTerminated,\n WorkflowExecutionContinuedAsNew,\n StartChildWorkflowExecutionInitiated,\n StartChildWorkflowExecutionFailed,\n ChildWorkflowExecutionStarted,\n ChildWorkflowExecutionCompleted,\n ChildWorkflowExecutionFailed,\n ChildWorkflowExecutionCanceled,\n ChildWorkflowExecutionTimedOut,\n ChildWorkflowExecutionTerminated,\n SignalExternalWorkflowExecutionInitiated,\n SignalExternalWorkflowExecutionFailed,\n ExternalWorkflowExecutionSignaled,\n UpsertWorkflowSearchAttributes,\n}\n\nenum DecisionTaskFailedCause {\n UNHANDLED_DECISION,\n BAD_SCHEDULE_ACTIVITY_ATTRIBUTES,\n BAD_REQUEST_CANCEL_ACTIVITY_ATTRIBUTES,\n BAD_START_TIMER_ATTRIBUTES,\n BAD_CANCEL_TIMER_ATTRIBUTES,\n BAD_RECORD_MARKER_ATTRIBUTES,\n BAD_COMPLETE_WORKFLOW_EXECUTION_ATTRIBUTES,\n BAD_FAIL_WORKFLOW_EXECUTION_ATTRIBUTES,\n BAD_CANCEL_WORKFLOW_EXECUTION_ATTRIBUTES,\n BAD_REQUEST_CANCEL_EXTERNAL_WORKFLOW_EXECUTION_ATTRIBUTES,\n BAD_CONTINUE_AS_NEW_ATTRIBUTES,\n START_TIMER_DUPLICATE_ID,\n RESET_STICKY_TASKLIST,\n WORKFLOW_WORKER_UNHANDLED_FAILURE,\n BAD_SIGNAL_WORKFLOW_EXECUTION_ATTRIBUTES,\n BAD_START_CHILD_EXECUTION_ATTRIBUTES,\n FORCE_CLOSE_DECISION,\n FAILOVER_CLOSE_DECISION,\n BAD_SIGNAL_INPUT_SIZE,\n RESET_WORKFLOW,\n BAD_BINARY,\n SCHEDULE_ACTIVITY_DUPLICATE_ID,\n BAD_SEARCH_ATTRIBUTES,\n}\n\nenum DecisionTaskTimedOutCause {\n TIMEOUT,\n RESET,\n}\n\nenum CancelExternalWorkflowExecutionFailedCause {\n UNKNOWN_EXTERNAL_WORKFLOW_EXECUTION,\n WORKFLOW_ALREADY_COMPLETED,\n}\n\nenum SignalExternalWorkflowExecutionFailedCause {\n UNKNOWN_EXTERNAL_WORKFLOW_EXECUTION,\n WORKFLOW_ALREADY_COMPLETED,\n}\n\nenum ChildWorkflowExecutionFailedCause {\n WORKFLOW_ALREADY_RUNNING,\n}\n\n// TODO: when migrating to gRPC, add a running / none status,\n// currently, customer is using null / nil as an indication\n// that workflow is still running\nenum WorkflowExecutionCloseStatus {\n COMPLETED,\n FAILED,\n CANCELED,\n TERMINATED,\n CONTINUED_AS_NEW,\n TIMED_OUT,\n}\n\nenum QueryTaskCompletedType {\n COMPLETED,\n FAILED,\n}\n\nenum QueryResultType {\n ANSWERED,\n FAILED,\n}\n\nenum PendingActivityState {\n SCHEDULED,\n STARTED,\n CANCEL_REQUESTED,\n}\n\nenum PendingDecisionState {\n SCHEDULED,\n STARTED,\n}\n\nenum HistoryEventFilterType {\n ALL_EVENT,\n CLOSE_EVENT,\n}\n\nenum TaskListKind {\n NORMAL,\n STICKY,\n}\n\nenum ArchivalStatus {\n DISABLED,\n ENABLED,\n}\n\nenum IndexedValueType {\n STRING,\n KEYWORD,\n INT,\n DOUBLE,\n BOOL,\n DATETIME,\n}\n\nstruct Header {\n 10: optional map fields\n}\n\nstruct WorkflowType {\n 10: optional string name\n}\n\nstruct ActivityType {\n 10: optional string name\n}\n\nstruct TaskList {\n 10: optional string name\n 20: optional TaskListKind kind\n}\n\nenum EncodingType {\n ThriftRW,\n JSON,\n}\n\nenum QueryRejectCondition {\n // NOT_OPEN indicates that query should be rejected if workflow is not open\n NOT_OPEN\n // NOT_COMPLETED_CLEANLY indicates that query should be rejected if workflow did not complete cleanly\n NOT_COMPLETED_CLEANLY\n}\n\nenum QueryConsistencyLevel {\n // EVENTUAL indicates that query should be eventually consistent\n EVENTUAL\n // STRONG indicates that any events that came before query should be reflected in workflow state before running query\n STRONG\n}\n\nstruct DataBlob {\n 10: optional EncodingType EncodingType\n 20: optional binary Data\n}\n\nstruct TaskListMetadata {\n 10: optional double maxTasksPerSecond\n}\n\nstruct WorkflowExecution {\n 10: optional string workflowId\n 20: optional string runId\n}\n\nstruct Memo {\n 10: optional map fields\n}\n\nstruct SearchAttributes {\n 10: optional map indexedFields\n}\n\nstruct WorkerVersionInfo {\n 10: optional string impl\n 20: optional string featureVersion\n}\n\nstruct WorkflowExecutionInfo {\n 10: optional WorkflowExecution execution\n 20: optional WorkflowType type\n 30: optional i64 (js.type = \"Long\") startTime\n 40: optional i64 (js.type = \"Long\") closeTime\n 50: optional WorkflowExecutionCloseStatus closeStatus\n 60: optional i64 (js.type = \"Long\") historyLength\n 70: optional string parentDomainId\n 71: optional string parentDomainName\n 72: optional i64 parentInitatedId\n 80: optional WorkflowExecution parentExecution\n 90: optional i64 (js.type = \"Long\") executionTime\n 100: optional Memo memo\n 101: optional SearchAttributes searchAttributes\n 110: optional ResetPoints autoResetPoints\n 120: optional string taskList\n 130: optional bool isCron\n 140: optional i64 (js.type = \"Long\") updateTime\n 150: optional map partitionConfig\n}\n\nstruct WorkflowExecutionConfiguration {\n 10: optional TaskList taskList\n 20: optional i32 executionStartToCloseTimeoutSeconds\n 30: optional i32 taskStartToCloseTimeoutSeconds\n// 40: optional ChildPolicy childPolicy -- Removed but reserve the IDL order number\n}\n\nstruct TransientDecisionInfo {\n 10: optional HistoryEvent scheduledEvent\n 20: optional HistoryEvent startedEvent\n}\n\nstruct ScheduleActivityTaskDecisionAttributes {\n 10: optional string activityId\n 20: optional ActivityType activityType\n 25: optional string domain\n 30: optional TaskList taskList\n 40: optional binary input\n 45: optional i32 scheduleToCloseTimeoutSeconds\n 50: optional i32 scheduleToStartTimeoutSeconds\n 55: optional i32 startToCloseTimeoutSeconds\n 60: optional i32 heartbeatTimeoutSeconds\n 70: optional RetryPolicy retryPolicy\n 80: optional Header header\n 90: optional bool requestLocalDispatch\n}\n\nstruct ActivityLocalDispatchInfo{\n 10: optional string activityId\n 20: optional i64 (js.type = \"Long\") scheduledTimestamp\n 30: optional i64 (js.type = \"Long\") startedTimestamp\n 40: optional i64 (js.type = \"Long\") scheduledTimestampOfThisAttempt\n 50: optional binary taskToken\n}\n\nstruct RequestCancelActivityTaskDecisionAttributes {\n 10: optional string activityId\n}\n\nstruct StartTimerDecisionAttributes {\n 10: optional string timerId\n 20: optional i64 (js.type = \"Long\") startToFireTimeoutSeconds\n}\n\nstruct CompleteWorkflowExecutionDecisionAttributes {\n 10: optional binary result\n}\n\nstruct FailWorkflowExecutionDecisionAttributes {\n 10: optional string reason\n 20: optional binary details\n}\n\nstruct CancelTimerDecisionAttributes {\n 10: optional string timerId\n}\n\nstruct CancelWorkflowExecutionDecisionAttributes {\n 10: optional binary details\n}\n\nstruct RequestCancelExternalWorkflowExecutionDecisionAttributes {\n 10: optional string domain\n 20: optional string workflowId\n 30: optional string runId\n 40: optional binary control\n 50: optional bool childWorkflowOnly\n}\n\nstruct SignalExternalWorkflowExecutionDecisionAttributes {\n 10: optional string domain\n 20: optional WorkflowExecution execution\n 30: optional string signalName\n 40: optional binary input\n 50: optional binary control\n 60: optional bool childWorkflowOnly\n}\n\nstruct UpsertWorkflowSearchAttributesDecisionAttributes {\n 10: optional SearchAttributes searchAttributes\n}\n\nstruct RecordMarkerDecisionAttributes {\n 10: optional string markerName\n 20: optional binary details\n 30: optional Header header\n}\n\nstruct ContinueAsNewWorkflowExecutionDecisionAttributes {\n 10: optional WorkflowType workflowType\n 20: optional TaskList taskList\n 30: optional binary input\n 40: optional i32 executionStartToCloseTimeoutSeconds\n 50: optional i32 taskStartToCloseTimeoutSeconds\n 60: optional i32 backoffStartIntervalInSeconds\n 70: optional RetryPolicy retryPolicy\n 80: optional ContinueAsNewInitiator initiator\n 90: optional string failureReason\n 100: optional binary failureDetails\n 110: optional binary lastCompletionResult\n 120: optional string cronSchedule\n 130: optional Header header\n 140: optional Memo memo\n 150: optional SearchAttributes searchAttributes\n 160: optional i32 jitterStartSeconds\n}\n\nstruct StartChildWorkflowExecutionDecisionAttributes {\n 10: optional string domain\n 20: optional string workflowId\n 30: optional WorkflowType workflowType\n 40: optional TaskList taskList\n 50: optional binary input\n 60: optional i32 executionStartToCloseTimeoutSeconds\n 70: optional i32 taskStartToCloseTimeoutSeconds\n// 80: optional ChildPolicy childPolicy -- Removed but reserve the IDL order number\n 81: optional ParentClosePolicy parentClosePolicy\n 90: optional binary control\n 100: optional WorkflowIdReusePolicy workflowIdReusePolicy\n 110: optional RetryPolicy retryPolicy\n 120: optional string cronSchedule\n 130: optional Header header\n 140: optional Memo memo\n 150: optional SearchAttributes searchAttributes\n}\n\nstruct Decision {\n 10: optional DecisionType decisionType\n 20: optional ScheduleActivityTaskDecisionAttributes scheduleActivityTaskDecisionAttributes\n 25: optional StartTimerDecisionAttributes startTimerDecisionAttributes\n 30: optional CompleteWorkflowExecutionDecisionAttributes completeWorkflowExecutionDecisionAttributes\n 35: optional FailWorkflowExecutionDecisionAttributes failWorkflowExecutionDecisionAttributes\n 40: optional RequestCancelActivityTaskDecisionAttributes requestCancelActivityTaskDecisionAttributes\n 50: optional CancelTimerDecisionAttributes cancelTimerDecisionAttributes\n 60: optional CancelWorkflowExecutionDecisionAttributes cancelWorkflowExecutionDecisionAttributes\n 70: optional RequestCancelExternalWorkflowExecutionDecisionAttributes requestCancelExternalWorkflowExecutionDecisionAttributes\n 80: optional RecordMarkerDecisionAttributes recordMarkerDecisionAttributes\n 90: optional ContinueAsNewWorkflowExecutionDecisionAttributes continueAsNewWorkflowExecutionDecisionAttributes\n 100: optional StartChildWorkflowExecutionDecisionAttributes startChildWorkflowExecutionDecisionAttributes\n 110: optional SignalExternalWorkflowExecutionDecisionAttributes signalExternalWorkflowExecutionDecisionAttributes\n 120: optional UpsertWorkflowSearchAttributesDecisionAttributes upsertWorkflowSearchAttributesDecisionAttributes\n}\n\nstruct WorkflowExecutionStartedEventAttributes {\n 10: optional WorkflowType workflowType\n 12: optional string parentWorkflowDomain\n 14: optional WorkflowExecution parentWorkflowExecution\n 16: optional i64 (js.type = \"Long\") parentInitiatedEventId\n 20: optional TaskList taskList\n 30: optional binary input\n 40: optional i32 executionStartToCloseTimeoutSeconds\n 50: optional i32 taskStartToCloseTimeoutSeconds\n// 52: optional ChildPolicy childPolicy -- Removed but reserve the IDL order number\n 54: optional string continuedExecutionRunId\n 55: optional ContinueAsNewInitiator initiator\n 56: optional string continuedFailureReason\n 57: optional binary continuedFailureDetails\n 58: optional binary lastCompletionResult\n 59: optional string originalExecutionRunId // This is the runID when the WorkflowExecutionStarted event is written\n 60: optional string identity\n 61: optional string firstExecutionRunId // This is the very first runID along the chain of ContinueAsNew and Reset.\n 62: optional i64 (js.type = \"Long\") firstScheduledTimeNano\n 70: optional RetryPolicy retryPolicy\n 80: optional i32 attempt\n 90: optional i64 (js.type = \"Long\") expirationTimestamp\n 100: optional string cronSchedule\n 110: optional i32 firstDecisionTaskBackoffSeconds\n 120: optional Memo memo\n 121: optional SearchAttributes searchAttributes\n 130: optional ResetPoints prevAutoResetPoints\n 140: optional Header header\n 150: optional map partitionConfig\n 160: optional string requestId\n}\n\nstruct ResetPoints{\n 10: optional list points\n}\n\n struct ResetPointInfo{\n 10: optional string binaryChecksum\n 20: optional string runId\n 30: optional i64 firstDecisionCompletedId\n 40: optional i64 (js.type = \"Long\") createdTimeNano\n 50: optional i64 (js.type = \"Long\") expiringTimeNano //the time that the run is deleted due to retention\n 60: optional bool resettable // false if the resset point has pending childWFs/reqCancels/signalExternals.\n}\n\nstruct WorkflowExecutionCompletedEventAttributes {\n 10: optional binary result\n 20: optional i64 (js.type = \"Long\") decisionTaskCompletedEventId\n}\n\nstruct WorkflowExecutionFailedEventAttributes {\n 10: optional string reason\n 20: optional binary details\n 30: optional i64 (js.type = \"Long\") decisionTaskCompletedEventId\n}\n\nstruct WorkflowExecutionTimedOutEventAttributes {\n 10: optional TimeoutType timeoutType\n}\n\nenum ContinueAsNewInitiator {\n Decider,\n RetryPolicy,\n CronSchedule,\n}\n\nstruct WorkflowExecutionContinuedAsNewEventAttributes {\n 10: optional string newExecutionRunId\n 20: optional WorkflowType workflowType\n 30: optional TaskList taskList\n 40: optional binary input\n 50: optional i32 executionStartToCloseTimeoutSeconds\n 60: optional i32 taskStartToCloseTimeoutSeconds\n 70: optional i64 (js.type = \"Long\") decisionTaskCompletedEventId\n 80: optional i32 backoffStartIntervalInSeconds\n 90: optional ContinueAsNewInitiator initiator\n 100: optional string failureReason\n 110: optional binary failureDetails\n 120: optional binary lastCompletionResult\n 130: optional Header header\n 140: optional Memo memo\n 150: optional SearchAttributes searchAttributes\n}\n\nstruct DecisionTaskScheduledEventAttributes {\n 10: optional TaskList taskList\n 20: optional i32 startToCloseTimeoutSeconds\n 30: optional i64 (js.type = \"Long\") attempt\n}\n\nstruct DecisionTaskStartedEventAttributes {\n 10: optional i64 (js.type = \"Long\") scheduledEventId\n 20: optional string identity\n 30: optional string requestId\n}\n\nstruct DecisionTaskCompletedEventAttributes {\n 10: optional binary executionContext\n 20: optional i64 (js.type = \"Long\") scheduledEventId\n 30: optional i64 (js.type = \"Long\") startedEventId\n 40: optional string identity\n 50: optional string binaryChecksum\n}\n\nstruct DecisionTaskTimedOutEventAttributes {\n 10: optional i64 (js.type = \"Long\") scheduledEventId\n 20: optional i64 (js.type = \"Long\") startedEventId\n 30: optional TimeoutType timeoutType\n // for reset workflow\n 40: optional string baseRunId\n 50: optional string newRunId\n 60: optional i64 (js.type = \"Long\") forkEventVersion\n 70: optional string reason\n 80: optional DecisionTaskTimedOutCause cause\n 90: optional string requestId\n}\n\nstruct DecisionTaskFailedEventAttributes {\n 10: optional i64 (js.type = \"Long\") scheduledEventId\n 20: optional i64 (js.type = \"Long\") startedEventId\n 30: optional DecisionTaskFailedCause cause\n 35: optional binary details\n 40: optional string identity\n 50: optional string reason\n // for reset workflow\n 60: optional string baseRunId\n 70: optional string newRunId\n 80: optional i64 (js.type = \"Long\") forkEventVersion\n 90: optional string binaryChecksum\n 100: optional string requestId\n}\n\nstruct ActivityTaskScheduledEventAttributes {\n 10: optional string activityId\n 20: optional ActivityType activityType\n 25: optional string domain\n 30: optional TaskList taskList\n 40: optional binary input\n 45: optional i32 scheduleToCloseTimeoutSeconds\n 50: optional i32 scheduleToStartTimeoutSeconds\n 55: optional i32 startToCloseTimeoutSeconds\n 60: optional i32 heartbeatTimeoutSeconds\n 90: optional i64 (js.type = \"Long\") decisionTaskCompletedEventId\n 110: optional RetryPolicy retryPolicy\n 120: optional Header header\n}\n\nstruct ActivityTaskStartedEventAttributes {\n 10: optional i64 (js.type = \"Long\") scheduledEventId\n 20: optional string identity\n 30: optional string requestId\n 40: optional i32 attempt\n 50: optional string lastFailureReason\n 60: optional binary lastFailureDetails\n}\n\nstruct ActivityTaskCompletedEventAttributes {\n 10: optional binary result\n 20: optional i64 (js.type = \"Long\") scheduledEventId\n 30: optional i64 (js.type = \"Long\") startedEventId\n 40: optional string identity\n}\n\nstruct ActivityTaskFailedEventAttributes {\n 10: optional string reason\n 20: optional binary details\n 30: optional i64 (js.type = \"Long\") scheduledEventId\n 40: optional i64 (js.type = \"Long\") startedEventId\n 50: optional string identity\n}\n\nstruct ActivityTaskTimedOutEventAttributes {\n 05: optional binary details\n 10: optional i64 (js.type = \"Long\") scheduledEventId\n 20: optional i64 (js.type = \"Long\") startedEventId\n 30: optional TimeoutType timeoutType\n // For retry activity, it may have a failure before timeout. It's important to keep those information for debug.\n // Client can also provide the info for making next decision\n 40: optional string lastFailureReason\n 50: optional binary lastFailureDetails\n}\n\nstruct ActivityTaskCancelRequestedEventAttributes {\n 10: optional string activityId\n 20: optional i64 (js.type = \"Long\") decisionTaskCompletedEventId\n}\n\nstruct RequestCancelActivityTaskFailedEventAttributes{\n 10: optional string activityId\n 20: optional string cause\n 30: optional i64 (js.type = \"Long\") decisionTaskCompletedEventId\n}\n\nstruct ActivityTaskCanceledEventAttributes {\n 10: optional binary details\n 20: optional i64 (js.type = \"Long\") latestCancelRequestedEventId\n 30: optional i64 (js.type = \"Long\") scheduledEventId\n 40: optional i64 (js.type = \"Long\") startedEventId\n 50: optional string identity\n}\n\nstruct TimerStartedEventAttributes {\n 10: optional string timerId\n 20: optional i64 (js.type = \"Long\") startToFireTimeoutSeconds\n 30: optional i64 (js.type = \"Long\") decisionTaskCompletedEventId\n}\n\nstruct TimerFiredEventAttributes {\n 10: optional string timerId\n 20: optional i64 (js.type = \"Long\") startedEventId\n}\n\nstruct TimerCanceledEventAttributes {\n 10: optional string timerId\n 20: optional i64 (js.type = \"Long\") startedEventId\n 30: optional i64 (js.type = \"Long\") decisionTaskCompletedEventId\n 40: optional string identity\n}\n\nstruct CancelTimerFailedEventAttributes {\n 10: optional string timerId\n 20: optional string cause\n 30: optional i64 (js.type = \"Long\") decisionTaskCompletedEventId\n 40: optional string identity\n}\n\nstruct WorkflowExecutionCancelRequestedEventAttributes {\n 10: optional string cause\n 20: optional i64 (js.type = \"Long\") externalInitiatedEventId\n 30: optional WorkflowExecution externalWorkflowExecution\n 40: optional string identity\n 50: optional string requestId\n}\n\nstruct WorkflowExecutionCanceledEventAttributes {\n 10: optional i64 (js.type = \"Long\") decisionTaskCompletedEventId\n 20: optional binary details\n}\n\nstruct MarkerRecordedEventAttributes {\n 10: optional string markerName\n 20: optional binary details\n 30: optional i64 (js.type = \"Long\") decisionTaskCompletedEventId\n 40: optional Header header\n}\n\nstruct WorkflowExecutionSignaledEventAttributes {\n 10: optional string signalName\n 20: optional binary input\n 30: optional string identity\n 40: optional string requestId\n}\n\nstruct WorkflowExecutionTerminatedEventAttributes {\n 10: optional string reason\n 20: optional binary details\n 30: optional string identity\n}\n\nstruct RequestCancelExternalWorkflowExecutionInitiatedEventAttributes {\n 10: optional i64 (js.type = \"Long\") decisionTaskCompletedEventId\n 20: optional string domain\n 30: optional WorkflowExecution workflowExecution\n 40: optional binary control\n 50: optional bool childWorkflowOnly\n}\n\nstruct RequestCancelExternalWorkflowExecutionFailedEventAttributes {\n 10: optional CancelExternalWorkflowExecutionFailedCause cause\n 20: optional i64 (js.type = \"Long\") decisionTaskCompletedEventId\n 30: optional string domain\n 40: optional WorkflowExecution workflowExecution\n 50: optional i64 (js.type = \"Long\") initiatedEventId\n 60: optional binary control\n}\n\nstruct ExternalWorkflowExecutionCancelRequestedEventAttributes {\n 10: optional i64 (js.type = \"Long\") initiatedEventId\n 20: optional string domain\n 30: optional WorkflowExecution workflowExecution\n}\n\nstruct SignalExternalWorkflowExecutionInitiatedEventAttributes {\n 10: optional i64 (js.type = \"Long\") decisionTaskCompletedEventId\n 20: optional string domain\n 30: optional WorkflowExecution workflowExecution\n 40: optional string signalName\n 50: optional binary input\n 60: optional binary control\n 70: optional bool childWorkflowOnly\n}\n\nstruct SignalExternalWorkflowExecutionFailedEventAttributes {\n 10: optional SignalExternalWorkflowExecutionFailedCause cause\n 20: optional i64 (js.type = \"Long\") decisionTaskCompletedEventId\n 30: optional string domain\n 40: optional WorkflowExecution workflowExecution\n 50: optional i64 (js.type = \"Long\") initiatedEventId\n 60: optional binary control\n}\n\nstruct ExternalWorkflowExecutionSignaledEventAttributes {\n 10: optional i64 (js.type = \"Long\") initiatedEventId\n 20: optional string domain\n 30: optional WorkflowExecution workflowExecution\n 40: optional binary control\n}\n\nstruct UpsertWorkflowSearchAttributesEventAttributes {\n 10: optional i64 (js.type = \"Long\") decisionTaskCompletedEventId\n 20: optional SearchAttributes searchAttributes\n}\n\nstruct StartChildWorkflowExecutionInitiatedEventAttributes {\n 10: optional string domain\n 20: optional string workflowId\n 30: optional WorkflowType workflowType\n 40: optional TaskList taskList\n 50: optional binary input\n 60: optional i32 executionStartToCloseTimeoutSeconds\n 70: optional i32 taskStartToCloseTimeoutSeconds\n// 80: optional ChildPolicy childPolicy -- Removed but reserve the IDL order number\n 81: optional ParentClosePolicy parentClosePolicy\n 90: optional binary control\n 100: optional i64 (js.type = \"Long\") decisionTaskCompletedEventId\n 110: optional WorkflowIdReusePolicy workflowIdReusePolicy\n 120: optional RetryPolicy retryPolicy\n 130: optional string cronSchedule\n 140: optional Header header\n 150: optional Memo memo\n 160: optional SearchAttributes searchAttributes\n 170: optional i32 delayStartSeconds\n 180: optional i32 jitterStartSeconds\n 190: optional i64 (js.type = \"Long\") firstRunAtTimestamp\n}\n\nstruct StartChildWorkflowExecutionFailedEventAttributes {\n 10: optional string domain\n 20: optional string workflowId\n 30: optional WorkflowType workflowType\n 40: optional ChildWorkflowExecutionFailedCause cause\n 50: optional binary control\n 60: optional i64 (js.type = \"Long\") initiatedEventId\n 70: optional i64 (js.type = \"Long\") decisionTaskCompletedEventId\n}\n\nstruct ChildWorkflowExecutionStartedEventAttributes {\n 10: optional string domain\n 20: optional i64 (js.type = \"Long\") initiatedEventId\n 30: optional WorkflowExecution workflowExecution\n 40: optional WorkflowType workflowType\n 50: optional Header header\n}\n\nstruct ChildWorkflowExecutionCompletedEventAttributes {\n 10: optional binary result\n 20: optional string domain\n 30: optional WorkflowExecution workflowExecution\n 40: optional WorkflowType workflowType\n 50: optional i64 (js.type = \"Long\") initiatedEventId\n 60: optional i64 (js.type = \"Long\") startedEventId\n}\n\nstruct ChildWorkflowExecutionFailedEventAttributes {\n 10: optional string reason\n 20: optional binary details\n 30: optional string domain\n 40: optional WorkflowExecution workflowExecution\n 50: optional WorkflowType workflowType\n 60: optional i64 (js.type = \"Long\") initiatedEventId\n 70: optional i64 (js.type = \"Long\") startedEventId\n}\n\nstruct ChildWorkflowExecutionCanceledEventAttributes {\n 10: optional binary details\n 20: optional string domain\n 30: optional WorkflowExecution workflowExecution\n 40: optional WorkflowType workflowType\n 50: optional i64 (js.type = \"Long\") initiatedEventId\n 60: optional i64 (js.type = \"Long\") startedEventId\n}\n\nstruct ChildWorkflowExecutionTimedOutEventAttributes {\n 10: optional TimeoutType timeoutType\n 20: optional string domain\n 30: optional WorkflowExecution workflowExecution\n 40: optional WorkflowType workflowType\n 50: optional i64 (js.type = \"Long\") initiatedEventId\n 60: optional i64 (js.type = \"Long\") startedEventId\n}\n\nstruct ChildWorkflowExecutionTerminatedEventAttributes {\n 10: optional string domain\n 20: optional WorkflowExecution workflowExecution\n 30: optional WorkflowType workflowType\n 40: optional i64 (js.type = \"Long\") initiatedEventId\n 50: optional i64 (js.type = \"Long\") startedEventId\n}\n\nstruct HistoryEvent {\n 10: optional i64 (js.type = \"Long\") eventId\n 20: optional i64 (js.type = \"Long\") timestamp\n 30: optional EventType eventType\n 35: optional i64 (js.type = \"Long\") version\n 36: optional i64 (js.type = \"Long\") taskId\n 40: optional WorkflowExecutionStartedEventAttributes workflowExecutionStartedEventAttributes\n 50: optional WorkflowExecutionCompletedEventAttributes workflowExecutionCompletedEventAttributes\n 60: optional WorkflowExecutionFailedEventAttributes workflowExecutionFailedEventAttributes\n 70: optional WorkflowExecutionTimedOutEventAttributes workflowExecutionTimedOutEventAttributes\n 80: optional DecisionTaskScheduledEventAttributes decisionTaskScheduledEventAttributes\n 90: optional DecisionTaskStartedEventAttributes decisionTaskStartedEventAttributes\n 100: optional DecisionTaskCompletedEventAttributes decisionTaskCompletedEventAttributes\n 110: optional DecisionTaskTimedOutEventAttributes decisionTaskTimedOutEventAttributes\n 120: optional DecisionTaskFailedEventAttributes decisionTaskFailedEventAttributes\n 130: optional ActivityTaskScheduledEventAttributes activityTaskScheduledEventAttributes\n 140: optional ActivityTaskStartedEventAttributes activityTaskStartedEventAttributes\n 150: optional ActivityTaskCompletedEventAttributes activityTaskCompletedEventAttributes\n 160: optional ActivityTaskFailedEventAttributes activityTaskFailedEventAttributes\n 170: optional ActivityTaskTimedOutEventAttributes activityTaskTimedOutEventAttributes\n 180: optional TimerStartedEventAttributes timerStartedEventAttributes\n 190: optional TimerFiredEventAttributes timerFiredEventAttributes\n 200: optional ActivityTaskCancelRequestedEventAttributes activityTaskCancelRequestedEventAttributes\n 210: optional RequestCancelActivityTaskFailedEventAttributes requestCancelActivityTaskFailedEventAttributes\n 220: optional ActivityTaskCanceledEventAttributes activityTaskCanceledEventAttributes\n 230: optional TimerCanceledEventAttributes timerCanceledEventAttributes\n 240: optional CancelTimerFailedEventAttributes cancelTimerFailedEventAttributes\n 250: optional MarkerRecordedEventAttributes markerRecordedEventAttributes\n 260: optional WorkflowExecutionSignaledEventAttributes workflowExecutionSignaledEventAttributes\n 270: optional WorkflowExecutionTerminatedEventAttributes workflowExecutionTerminatedEventAttributes\n 280: optional WorkflowExecutionCancelRequestedEventAttributes workflowExecutionCancelRequestedEventAttributes\n 290: optional WorkflowExecutionCanceledEventAttributes workflowExecutionCanceledEventAttributes\n 300: optional RequestCancelExternalWorkflowExecutionInitiatedEventAttributes requestCancelExternalWorkflowExecutionInitiatedEventAttributes\n 310: optional RequestCancelExternalWorkflowExecutionFailedEventAttributes requestCancelExternalWorkflowExecutionFailedEventAttributes\n 320: optional ExternalWorkflowExecutionCancelRequestedEventAttributes externalWorkflowExecutionCancelRequestedEventAttributes\n 330: optional WorkflowExecutionContinuedAsNewEventAttributes workflowExecutionContinuedAsNewEventAttributes\n 340: optional StartChildWorkflowExecutionInitiatedEventAttributes startChildWorkflowExecutionInitiatedEventAttributes\n 350: optional StartChildWorkflowExecutionFailedEventAttributes startChildWorkflowExecutionFailedEventAttributes\n 360: optional ChildWorkflowExecutionStartedEventAttributes childWorkflowExecutionStartedEventAttributes\n 370: optional ChildWorkflowExecutionCompletedEventAttributes childWorkflowExecutionCompletedEventAttributes\n 380: optional ChildWorkflowExecutionFailedEventAttributes childWorkflowExecutionFailedEventAttributes\n 390: optional ChildWorkflowExecutionCanceledEventAttributes childWorkflowExecutionCanceledEventAttributes\n 400: optional ChildWorkflowExecutionTimedOutEventAttributes childWorkflowExecutionTimedOutEventAttributes\n 410: optional ChildWorkflowExecutionTerminatedEventAttributes childWorkflowExecutionTerminatedEventAttributes\n 420: optional SignalExternalWorkflowExecutionInitiatedEventAttributes signalExternalWorkflowExecutionInitiatedEventAttributes\n 430: optional SignalExternalWorkflowExecutionFailedEventAttributes signalExternalWorkflowExecutionFailedEventAttributes\n 440: optional ExternalWorkflowExecutionSignaledEventAttributes externalWorkflowExecutionSignaledEventAttributes\n 450: optional UpsertWorkflowSearchAttributesEventAttributes upsertWorkflowSearchAttributesEventAttributes\n}\n\nstruct History {\n 10: optional list events\n}\n\nstruct WorkflowExecutionFilter {\n 10: optional string workflowId\n 20: optional string runId\n}\n\nstruct WorkflowTypeFilter {\n 10: optional string name\n}\n\nstruct StartTimeFilter {\n 10: optional i64 (js.type = \"Long\") earliestTime\n 20: optional i64 (js.type = \"Long\") latestTime\n}\n\nstruct DomainInfo {\n 10: optional string name\n 20: optional DomainStatus status\n 30: optional string description\n 40: optional string ownerEmail\n // A key-value map for any customized purpose\n 50: optional map data\n 60: optional string uuid\n}\n\nstruct DomainConfiguration {\n 10: optional i32 workflowExecutionRetentionPeriodInDays\n 20: optional bool emitMetric\n 60: optional IsolationGroupConfiguration isolationgroups\n 70: optional BadBinaries badBinaries\n 80: optional ArchivalStatus historyArchivalStatus\n 90: optional string historyArchivalURI\n 100: optional ArchivalStatus visibilityArchivalStatus\n 110: optional string visibilityArchivalURI\n 120: optional AsyncWorkflowConfiguration AsyncWorkflowConfiguration\n}\n\nstruct FailoverInfo {\n 10: optional i64 (js.type = \"Long\") failoverVersion\n 20: optional i64 (js.type = \"Long\") failoverStartTimestamp\n 30: optional i64 (js.type = \"Long\") failoverExpireTimestamp\n 40: optional i32 completedShardCount\n 50: optional list pendingShards\n}\n\nstruct BadBinaries{\n 10: optional map binaries\n}\n\nstruct BadBinaryInfo{\n 10: optional string reason\n 20: optional string operator\n 30: optional i64 (js.type = \"Long\") createdTimeNano\n}\n\nstruct UpdateDomainInfo {\n 10: optional string description\n 20: optional string ownerEmail\n // A key-value map for any customized purpose\n 30: optional map data\n}\n\nstruct ClusterReplicationConfiguration {\n 10: optional string clusterName\n}\n\nstruct DomainReplicationConfiguration {\n 10: optional string activeClusterName\n 20: optional list clusters\n}\n\nstruct RegisterDomainRequest {\n 10: optional string name\n 20: optional string description\n 30: optional string ownerEmail\n 40: optional i32 workflowExecutionRetentionPeriodInDays\n 50: optional bool emitMetric = true\n 60: optional list clusters\n 70: optional string activeClusterName\n // A key-value map for any customized purpose\n 80: optional map data\n 90: optional string securityToken\n 120: optional bool isGlobalDomain\n 130: optional ArchivalStatus historyArchivalStatus\n 140: optional string historyArchivalURI\n 150: optional ArchivalStatus visibilityArchivalStatus\n 160: optional string visibilityArchivalURI\n}\n\nstruct ListDomainsRequest {\n 10: optional i32 pageSize\n 20: optional binary nextPageToken\n}\n\nstruct ListDomainsResponse {\n 10: optional list domains\n 20: optional binary nextPageToken\n}\n\nstruct DescribeDomainRequest {\n 10: optional string name\n 20: optional string uuid\n}\n\nstruct DescribeDomainResponse {\n 10: optional DomainInfo domainInfo\n 20: optional DomainConfiguration configuration\n 30: optional DomainReplicationConfiguration replicationConfiguration\n 40: optional i64 (js.type = \"Long\") failoverVersion\n 50: optional bool isGlobalDomain\n 60: optional FailoverInfo failoverInfo\n}\n\nstruct UpdateDomainRequest {\n 10: optional string name\n 20: optional UpdateDomainInfo updatedInfo\n 30: optional DomainConfiguration configuration\n 40: optional DomainReplicationConfiguration replicationConfiguration\n 50: optional string securityToken\n 60: optional string deleteBadBinary\n 70: optional i32 failoverTimeoutInSeconds\n}\n\nstruct UpdateDomainResponse {\n 10: optional DomainInfo domainInfo\n 20: optional DomainConfiguration configuration\n 30: optional DomainReplicationConfiguration replicationConfiguration\n 40: optional i64 (js.type = \"Long\") failoverVersion\n 50: optional bool isGlobalDomain\n}\n\nstruct DeprecateDomainRequest {\n 10: optional string name\n 20: optional string securityToken\n}\n\nstruct StartWorkflowExecutionRequest {\n 10: optional string domain\n 20: optional string workflowId\n 30: optional WorkflowType workflowType\n 40: optional TaskList taskList\n 50: optional binary input\n 60: optional i32 executionStartToCloseTimeoutSeconds\n 70: optional i32 taskStartToCloseTimeoutSeconds\n 80: optional string identity\n 90: optional string requestId\n 100: optional WorkflowIdReusePolicy workflowIdReusePolicy\n// 110: optional ChildPolicy childPolicy -- Removed but reserve the IDL order number\n 120: optional RetryPolicy retryPolicy\n 130: optional string cronSchedule\n 140: optional Memo memo\n 141: optional SearchAttributes searchAttributes\n 150: optional Header header\n 160: optional i32 delayStartSeconds\n 170: optional i32 jitterStartSeconds\n 180: optional i64 (js.type = \"Long\") firstRunAtTimestamp\n}\n\nstruct StartWorkflowExecutionResponse {\n 10: optional string runId\n}\n\nstruct StartWorkflowExecutionAsyncRequest {\n 10: optional StartWorkflowExecutionRequest request\n}\n\nstruct StartWorkflowExecutionAsyncResponse {\n}\n\nstruct RestartWorkflowExecutionResponse {\n 10: optional string runId\n}\n\nstruct PollForDecisionTaskRequest {\n 10: optional string domain\n 20: optional TaskList taskList\n 30: optional string identity\n 40: optional string binaryChecksum\n}\n\nstruct PollForDecisionTaskResponse {\n 10: optional binary taskToken\n 20: optional WorkflowExecution workflowExecution\n 30: optional WorkflowType workflowType\n 40: optional i64 (js.type = \"Long\") previousStartedEventId\n 50: optional i64 (js.type = \"Long\") startedEventId\n 51: optional i64 (js.type = 'Long') attempt\n 54: optional i64 (js.type = \"Long\") backlogCountHint\n 60: optional History history\n 70: optional binary nextPageToken\n 80: optional WorkflowQuery query\n 90: optional TaskList WorkflowExecutionTaskList\n 100: optional i64 (js.type = \"Long\") scheduledTimestamp\n 110: optional i64 (js.type = \"Long\") startedTimestamp\n 120: optional map queries\n 130: optional i64 (js.type = 'Long') nextEventId\n 140: optional i64 (js.type = 'Long') totalHistoryBytes\n}\n\nstruct StickyExecutionAttributes {\n 10: optional TaskList workerTaskList\n 20: optional i32 scheduleToStartTimeoutSeconds\n}\n\nstruct RespondDecisionTaskCompletedRequest {\n 10: optional binary taskToken\n 20: optional list decisions\n 30: optional binary executionContext\n 40: optional string identity\n 50: optional StickyExecutionAttributes stickyAttributes\n 60: optional bool returnNewDecisionTask\n 70: optional bool forceCreateNewDecisionTask\n 80: optional string binaryChecksum\n 90: optional map queryResults\n}\n\nstruct RespondDecisionTaskCompletedResponse {\n 10: optional PollForDecisionTaskResponse decisionTask\n 20: optional map activitiesToDispatchLocally\n}\n\nstruct RespondDecisionTaskFailedRequest {\n 10: optional binary taskToken\n 20: optional DecisionTaskFailedCause cause\n 30: optional binary details\n 40: optional string identity\n 50: optional string binaryChecksum\n}\n\nstruct PollForActivityTaskRequest {\n 10: optional string domain\n 20: optional TaskList taskList\n 30: optional string identity\n 40: optional TaskListMetadata taskListMetadata\n}\n\nstruct PollForActivityTaskResponse {\n 10: optional binary taskToken\n 20: optional WorkflowExecution workflowExecution\n 30: optional string activityId\n 40: optional ActivityType activityType\n 50: optional binary input\n 70: optional i64 (js.type = \"Long\") scheduledTimestamp\n 80: optional i32 scheduleToCloseTimeoutSeconds\n 90: optional i64 (js.type = \"Long\") startedTimestamp\n 100: optional i32 startToCloseTimeoutSeconds\n 110: optional i32 heartbeatTimeoutSeconds\n 120: optional i32 attempt\n 130: optional i64 (js.type = \"Long\") scheduledTimestampOfThisAttempt\n 140: optional binary heartbeatDetails\n 150: optional WorkflowType workflowType\n 160: optional string workflowDomain\n 170: optional Header header\n}\n\nstruct RecordActivityTaskHeartbeatRequest {\n 10: optional binary taskToken\n 20: optional binary details\n 30: optional string identity\n}\n\nstruct RecordActivityTaskHeartbeatByIDRequest {\n 10: optional string domain\n 20: optional string workflowID\n 30: optional string runID\n 40: optional string activityID\n 50: optional binary details\n 60: optional string identity\n}\n\nstruct RecordActivityTaskHeartbeatResponse {\n 10: optional bool cancelRequested\n}\n\nstruct RespondActivityTaskCompletedRequest {\n 10: optional binary taskToken\n 20: optional binary result\n 30: optional string identity\n}\n\nstruct RespondActivityTaskFailedRequest {\n 10: optional binary taskToken\n 20: optional string reason\n 30: optional binary details\n 40: optional string identity\n}\n\nstruct RespondActivityTaskCanceledRequest {\n 10: optional binary taskToken\n 20: optional binary details\n 30: optional string identity\n}\n\nstruct RespondActivityTaskCompletedByIDRequest {\n 10: optional string domain\n 20: optional string workflowID\n 30: optional string runID\n 40: optional string activityID\n 50: optional binary result\n 60: optional string identity\n}\n\nstruct RespondActivityTaskFailedByIDRequest {\n 10: optional string domain\n 20: optional string workflowID\n 30: optional string runID\n 40: optional string activityID\n 50: optional string reason\n 60: optional binary details\n 70: optional string identity\n}\n\nstruct RespondActivityTaskCanceledByIDRequest {\n 10: optional string domain\n 20: optional string workflowID\n 30: optional string runID\n 40: optional string activityID\n 50: optional binary details\n 60: optional string identity\n}\n\nstruct RequestCancelWorkflowExecutionRequest {\n 10: optional string domain\n 20: optional WorkflowExecution workflowExecution\n 30: optional string identity\n 40: optional string requestId\n 50: optional string cause\n 60: optional string firstExecutionRunID\n}\n\nstruct GetWorkflowExecutionHistoryRequest {\n 10: optional string domain\n 20: optional WorkflowExecution execution\n 30: optional i32 maximumPageSize\n 40: optional binary nextPageToken\n 50: optional bool waitForNewEvent\n 60: optional HistoryEventFilterType HistoryEventFilterType\n 70: optional bool skipArchival\n}\n\nstruct GetWorkflowExecutionHistoryResponse {\n 10: optional History history\n 11: optional list rawHistory\n 20: optional binary nextPageToken\n 30: optional bool archived\n}\n\nstruct SignalWorkflowExecutionRequest {\n 10: optional string domain\n 20: optional WorkflowExecution workflowExecution\n 30: optional string signalName\n 40: optional binary input\n 50: optional string identity\n 60: optional string requestId\n 70: optional binary control\n}\n\nstruct SignalWithStartWorkflowExecutionRequest {\n 10: optional string domain\n 20: optional string workflowId\n 30: optional WorkflowType workflowType\n 40: optional TaskList taskList\n 50: optional binary input\n 60: optional i32 executionStartToCloseTimeoutSeconds\n 70: optional i32 taskStartToCloseTimeoutSeconds\n 80: optional string identity\n 90: optional string requestId\n 100: optional WorkflowIdReusePolicy workflowIdReusePolicy\n 110: optional string signalName\n 120: optional binary signalInput\n 130: optional binary control\n 140: optional RetryPolicy retryPolicy\n 150: optional string cronSchedule\n 160: optional Memo memo\n 161: optional SearchAttributes searchAttributes\n 170: optional Header header\n 180: optional i32 delayStartSeconds\n 190: optional i32 jitterStartSeconds\n 200: optional i64 (js.type = \"Long\") firstRunAtTimestamp\n}\n\nstruct SignalWithStartWorkflowExecutionAsyncRequest {\n 10: optional SignalWithStartWorkflowExecutionRequest request\n}\n\nstruct SignalWithStartWorkflowExecutionAsyncResponse {\n}\n\nstruct RestartWorkflowExecutionRequest {\n 10: optional string domain\n 20: optional WorkflowExecution workflowExecution\n 30: optional string reason\n 40: optional string identity\n}\nstruct TerminateWorkflowExecutionRequest {\n 10: optional string domain\n 20: optional WorkflowExecution workflowExecution\n 30: optional string reason\n 40: optional binary details\n 50: optional string identity\n 60: optional string firstExecutionRunID\n}\n\nstruct ResetWorkflowExecutionRequest {\n 10: optional string domain\n 20: optional WorkflowExecution workflowExecution\n 30: optional string reason\n 40: optional i64 (js.type = \"Long\") decisionFinishEventId\n 50: optional string requestId\n 60: optional bool skipSignalReapply\n}\n\nstruct ResetWorkflowExecutionResponse {\n 10: optional string runId\n}\n\nstruct ListOpenWorkflowExecutionsRequest {\n 10: optional string domain\n 20: optional i32 maximumPageSize\n 30: optional binary nextPageToken\n 40: optional StartTimeFilter StartTimeFilter\n 50: optional WorkflowExecutionFilter executionFilter\n 60: optional WorkflowTypeFilter typeFilter\n}\n\nstruct ListOpenWorkflowExecutionsResponse {\n 10: optional list executions\n 20: optional binary nextPageToken\n}\n\nstruct ListClosedWorkflowExecutionsRequest {\n 10: optional string domain\n 20: optional i32 maximumPageSize\n 30: optional binary nextPageToken\n 40: optional StartTimeFilter StartTimeFilter\n 50: optional WorkflowExecutionFilter executionFilter\n 60: optional WorkflowTypeFilter typeFilter\n 70: optional WorkflowExecutionCloseStatus statusFilter\n}\n\nstruct ListClosedWorkflowExecutionsResponse {\n 10: optional list executions\n 20: optional binary nextPageToken\n}\n\nstruct ListWorkflowExecutionsRequest {\n 10: optional string domain\n 20: optional i32 pageSize\n 30: optional binary nextPageToken\n 40: optional string query\n}\n\nstruct ListWorkflowExecutionsResponse {\n 10: optional list executions\n 20: optional binary nextPageToken\n}\n\nstruct ListArchivedWorkflowExecutionsRequest {\n 10: optional string domain\n 20: optional i32 pageSize\n 30: optional binary nextPageToken\n 40: optional string query\n}\n\nstruct ListArchivedWorkflowExecutionsResponse {\n 10: optional list executions\n 20: optional binary nextPageToken\n}\n\nstruct CountWorkflowExecutionsRequest {\n 10: optional string domain\n 20: optional string query\n}\n\nstruct CountWorkflowExecutionsResponse {\n 10: optional i64 count\n}\n\nstruct GetSearchAttributesResponse {\n 10: optional map keys\n}\n\nstruct QueryWorkflowRequest {\n 10: optional string domain\n 20: optional WorkflowExecution execution\n 30: optional WorkflowQuery query\n // QueryRejectCondition can used to reject the query if workflow state does not satisify condition\n 40: optional QueryRejectCondition queryRejectCondition\n 50: optional QueryConsistencyLevel queryConsistencyLevel\n}\n\nstruct QueryRejected {\n 10: optional WorkflowExecutionCloseStatus closeStatus\n}\n\nstruct QueryWorkflowResponse {\n 10: optional binary queryResult\n 20: optional QueryRejected queryRejected\n}\n\nstruct WorkflowQuery {\n 10: optional string queryType\n 20: optional binary queryArgs\n}\n\nstruct ResetStickyTaskListRequest {\n 10: optional string domain\n 20: optional WorkflowExecution execution\n}\n\nstruct ResetStickyTaskListResponse {\n // The reason to keep this response is to allow returning\n // information in the future.\n}\n\nstruct RespondQueryTaskCompletedRequest {\n 10: optional binary taskToken\n 20: optional QueryTaskCompletedType completedType\n 30: optional binary queryResult\n 40: optional string errorMessage\n 50: optional WorkerVersionInfo workerVersionInfo\n}\n\nstruct WorkflowQueryResult {\n 10: optional QueryResultType resultType\n 20: optional binary answer\n 30: optional string errorMessage\n}\n\nstruct DescribeWorkflowExecutionRequest {\n 10: optional string domain\n 20: optional WorkflowExecution execution\n}\n\nstruct PendingActivityInfo {\n 10: optional string activityID\n 20: optional ActivityType activityType\n 30: optional PendingActivityState state\n 40: optional binary heartbeatDetails\n 50: optional i64 (js.type = \"Long\") lastHeartbeatTimestamp\n 60: optional i64 (js.type = \"Long\") lastStartedTimestamp\n 70: optional i32 attempt\n 80: optional i32 maximumAttempts\n 90: optional i64 (js.type = \"Long\") scheduledTimestamp\n 100: optional i64 (js.type = \"Long\") expirationTimestamp\n 110: optional string lastFailureReason\n 120: optional string lastWorkerIdentity\n 130: optional binary lastFailureDetails\n 140: optional string startedWorkerIdentity\n}\n\nstruct PendingDecisionInfo {\n 10: optional PendingDecisionState state\n 20: optional i64 (js.type = \"Long\") scheduledTimestamp\n 30: optional i64 (js.type = \"Long\") startedTimestamp\n 40: optional i64 attempt\n 50: optional i64 (js.type = \"Long\") originalScheduledTimestamp\n}\n\nstruct PendingChildExecutionInfo {\n 1: optional string domain\n 10: optional string workflowID\n 20: optional string runID\n 30: optional string workflowTypName\n 40: optional i64 (js.type = \"Long\") initiatedID\n 50: optional ParentClosePolicy parentClosePolicy\n}\n\nstruct DescribeWorkflowExecutionResponse {\n 10: optional WorkflowExecutionConfiguration executionConfiguration\n 20: optional WorkflowExecutionInfo workflowExecutionInfo\n 30: optional list pendingActivities\n 40: optional list pendingChildren\n 50: optional PendingDecisionInfo pendingDecision\n}\n\nstruct DescribeTaskListRequest {\n 10: optional string domain\n 20: optional TaskList taskList\n 30: optional TaskListType taskListType\n 40: optional bool includeTaskListStatus\n}\n\nstruct DescribeTaskListResponse {\n 10: optional list pollers\n 20: optional TaskListStatus taskListStatus\n}\n\nstruct GetTaskListsByDomainRequest {\n 10: optional string domainName\n}\n\nstruct GetTaskListsByDomainResponse {\n 10: optional map decisionTaskListMap\n 20: optional map activityTaskListMap\n}\n\nstruct ListTaskListPartitionsRequest {\n 10: optional string domain\n 20: optional TaskList taskList\n}\n\nstruct TaskListPartitionMetadata {\n 10: optional string key\n 20: optional string ownerHostName\n}\n\nstruct ListTaskListPartitionsResponse {\n 10: optional list activityTaskListPartitions\n 20: optional list decisionTaskListPartitions\n}\n\nstruct TaskListStatus {\n 10: optional i64 (js.type = \"Long\") backlogCountHint\n 20: optional i64 (js.type = \"Long\") readLevel\n 30: optional i64 (js.type = \"Long\") ackLevel\n 35: optional double ratePerSecond\n 40: optional TaskIDBlock taskIDBlock\n}\n\nstruct TaskIDBlock {\n 10: optional i64 (js.type = \"Long\") startID\n 20: optional i64 (js.type = \"Long\") endID\n}\n\n//At least one of the parameters needs to be provided\nstruct DescribeHistoryHostRequest {\n 10: optional string hostAddress //ip:port\n 20: optional i32 shardIdForHost\n 30: optional WorkflowExecution executionForHost\n}\n\nstruct RemoveTaskRequest {\n 10: optional i32 shardID\n 20: optional i32 type\n 30: optional i64 (js.type = \"Long\") taskID\n 40: optional i64 (js.type = \"Long\") visibilityTimestamp\n 50: optional string clusterName\n}\n\nstruct CloseShardRequest {\n 10: optional i32 shardID\n}\n\nstruct ResetQueueRequest {\n 10: optional i32 shardID\n 20: optional string clusterName\n 30: optional i32 type\n}\n\nstruct DescribeQueueRequest {\n 10: optional i32 shardID\n 20: optional string clusterName\n 30: optional i32 type\n}\n\nstruct DescribeQueueResponse {\n 10: optional list processingQueueStates\n}\n\nstruct DescribeShardDistributionRequest {\n 10: optional i32 pageSize\n 20: optional i32 pageID\n}\n\nstruct DescribeShardDistributionResponse {\n 10: optional i32 numberOfShards\n\n // ShardID to Address (ip:port) map\n 20: optional map shards\n}\n\nstruct DescribeHistoryHostResponse{\n 10: optional i32 numberOfShards\n 20: optional list shardIDs\n 30: optional DomainCacheInfo domainCache\n 40: optional string shardControllerStatus\n 50: optional string address\n}\n\nstruct DomainCacheInfo{\n 10: optional i64 numOfItemsInCacheByID\n 20: optional i64 numOfItemsInCacheByName\n}\n\nenum TaskListType {\n /*\n * Decision type of tasklist\n */\n Decision,\n /*\n * Activity type of tasklist\n */\n Activity,\n}\n\nstruct PollerInfo {\n // Unix Nano\n 10: optional i64 (js.type = \"Long\") lastAccessTime\n 20: optional string identity\n 30: optional double ratePerSecond\n}\n\nstruct RetryPolicy {\n // Interval of the first retry. If coefficient is 1.0 then it is used for all retries.\n 10: optional i32 initialIntervalInSeconds\n\n // Coefficient used to calculate the next retry interval.\n // The next retry interval is previous interval multiplied by the coefficient.\n // Must be 1 or larger.\n 20: optional double backoffCoefficient\n\n // Maximum interval between retries. Exponential backoff leads to interval increase.\n // This value is the cap of the increase. Default is 100x of initial interval.\n 30: optional i32 maximumIntervalInSeconds\n\n // Maximum number of attempts. When exceeded the retries stop even if not expired yet.\n // Must be 1 or bigger. Default is unlimited.\n 40: optional i32 maximumAttempts\n\n // Non-Retriable errors. Will stop retrying if error matches this list.\n 50: optional list nonRetriableErrorReasons\n\n // Expiration time for the whole retry process.\n 60: optional i32 expirationIntervalInSeconds\n}\n\n// HistoryBranchRange represents a piece of range for a branch.\nstruct HistoryBranchRange{\n // branchID of original branch forked from\n 10: optional string branchID\n // beinning node for the range, inclusive\n 20: optional i64 beginNodeID\n // ending node for the range, exclusive\n 30: optional i64 endNodeID\n}\n\n// For history persistence to serialize/deserialize branch details\nstruct HistoryBranch{\n 10: optional string treeID\n 20: optional string branchID\n 30: optional list ancestors\n}\n\n// VersionHistoryItem contains signal eventID and the corresponding version\nstruct VersionHistoryItem{\n 10: optional i64 (js.type = \"Long\") eventID\n 20: optional i64 (js.type = \"Long\") version\n}\n\n// VersionHistory contains the version history of a branch\nstruct VersionHistory{\n 10: optional binary branchToken\n 20: optional list items\n}\n\n// VersionHistories contains all version histories from all branches\nstruct VersionHistories{\n 10: optional i32 currentVersionHistoryIndex\n 20: optional list histories\n}\n\n// ReapplyEventsRequest is the request for reapply events API\nstruct ReapplyEventsRequest{\n 10: optional string domainName\n 20: optional WorkflowExecution workflowExecution\n 30: optional DataBlob events\n}\n\n// SupportedClientVersions contains the support versions for client library\nstruct SupportedClientVersions{\n 10: optional string goSdk\n 20: optional string javaSdk\n}\n\n// ClusterInfo contains information about cadence cluster\nstruct ClusterInfo{\n 10: optional SupportedClientVersions supportedClientVersions\n}\n\nstruct RefreshWorkflowTasksRequest {\n 10: optional string domain\n 20: optional WorkflowExecution execution\n}\n\nstruct FeatureFlags {\n\t10: optional bool WorkflowExecutionAlreadyCompletedErrorEnabled\n}\n\nenum CrossClusterTaskType {\n StartChildExecution\n CancelExecution\n SignalExecution\n RecordChildWorkflowExecutionComplete\n ApplyParentClosePolicy\n}\n\nenum CrossClusterTaskFailedCause {\n DOMAIN_NOT_ACTIVE\n DOMAIN_NOT_EXISTS\n WORKFLOW_ALREADY_RUNNING\n WORKFLOW_NOT_EXISTS\n WORKFLOW_ALREADY_COMPLETED\n UNCATEGORIZED\n}\n\nenum GetTaskFailedCause {\n SERVICE_BUSY\n TIMEOUT\n SHARD_OWNERSHIP_LOST\n UNCATEGORIZED\n}\n\nstruct CrossClusterTaskInfo {\n 10: optional string domainID\n 20: optional string workflowID\n 30: optional string runID\n 40: optional CrossClusterTaskType taskType\n 50: optional i16 taskState\n 60: optional i64 (js.type = \"Long\") taskID\n 70: optional i64 (js.type = \"Long\") visibilityTimestamp\n}\n\nstruct CrossClusterStartChildExecutionRequestAttributes {\n 10: optional string targetDomainID\n 20: optional string requestID\n 30: optional i64 (js.type = \"Long\") initiatedEventID\n 40: optional StartChildWorkflowExecutionInitiatedEventAttributes initiatedEventAttributes\n // targetRunID is for scheduling first decision task\n // targetWorkflowID is available in initiatedEventAttributes\n 50: optional string targetRunID\n 60: optional map partitionConfig\n}\n\nstruct CrossClusterStartChildExecutionResponseAttributes {\n 10: optional string runID\n}\n\nstruct CrossClusterCancelExecutionRequestAttributes {\n 10: optional string targetDomainID\n 20: optional string targetWorkflowID\n 30: optional string targetRunID\n 40: optional string requestID\n 50: optional i64 (js.type = \"Long\") initiatedEventID\n 60: optional bool childWorkflowOnly\n}\n\nstruct CrossClusterCancelExecutionResponseAttributes {\n}\n\nstruct CrossClusterSignalExecutionRequestAttributes {\n 10: optional string targetDomainID\n 20: optional string targetWorkflowID\n 30: optional string targetRunID\n 40: optional string requestID\n 50: optional i64 (js.type = \"Long\") initiatedEventID\n 60: optional bool childWorkflowOnly\n 70: optional string signalName\n 80: optional binary signalInput\n 90: optional binary control\n}\n\nstruct CrossClusterSignalExecutionResponseAttributes {\n}\n\nstruct CrossClusterRecordChildWorkflowExecutionCompleteRequestAttributes {\n 10: optional string targetDomainID\n 20: optional string targetWorkflowID\n 30: optional string targetRunID\n 40: optional i64 (js.type = \"Long\") initiatedEventID\n 50: optional HistoryEvent completionEvent\n}\n\nstruct CrossClusterRecordChildWorkflowExecutionCompleteResponseAttributes {\n}\n\nstruct ApplyParentClosePolicyAttributes {\n 10: optional string childDomainID\n 20: optional string childWorkflowID\n 30: optional string childRunID\n 40: optional ParentClosePolicy parentClosePolicy\n}\n\nstruct ApplyParentClosePolicyStatus {\n 10: optional bool completed\n 20: optional CrossClusterTaskFailedCause failedCause\n}\n\nstruct ApplyParentClosePolicyRequest {\n 10: optional ApplyParentClosePolicyAttributes child\n 20: optional ApplyParentClosePolicyStatus status\n}\n\nstruct CrossClusterApplyParentClosePolicyRequestAttributes {\n 10: optional list children\n}\n\nstruct ApplyParentClosePolicyResult {\n 10: optional ApplyParentClosePolicyAttributes child\n 20: optional CrossClusterTaskFailedCause failedCause\n}\n\nstruct CrossClusterApplyParentClosePolicyResponseAttributes {\n 10: optional list childrenStatus\n}\n\nstruct CrossClusterTaskRequest {\n 10: optional CrossClusterTaskInfo taskInfo\n 20: optional CrossClusterStartChildExecutionRequestAttributes startChildExecutionAttributes\n 30: optional CrossClusterCancelExecutionRequestAttributes cancelExecutionAttributes\n 40: optional CrossClusterSignalExecutionRequestAttributes signalExecutionAttributes\n 50: optional CrossClusterRecordChildWorkflowExecutionCompleteRequestAttributes recordChildWorkflowExecutionCompleteAttributes\n 60: optional CrossClusterApplyParentClosePolicyRequestAttributes applyParentClosePolicyAttributes\n}\n\nstruct CrossClusterTaskResponse {\n 10: optional i64 (js.type = \"Long\") taskID\n 20: optional CrossClusterTaskType taskType\n 30: optional i16 taskState\n 40: optional CrossClusterTaskFailedCause failedCause\n 50: optional CrossClusterStartChildExecutionResponseAttributes startChildExecutionAttributes\n 60: optional CrossClusterCancelExecutionResponseAttributes cancelExecutionAttributes\n 70: optional CrossClusterSignalExecutionResponseAttributes signalExecutionAttributes\n 80: optional CrossClusterRecordChildWorkflowExecutionCompleteResponseAttributes recordChildWorkflowExecutionCompleteAttributes\n 90: optional CrossClusterApplyParentClosePolicyResponseAttributes applyParentClosePolicyAttributes\n}\n\nstruct GetCrossClusterTasksRequest {\n 10: optional list shardIDs\n 20: optional string targetCluster\n}\n\nstruct GetCrossClusterTasksResponse {\n 10: optional map> tasksByShard\n 20: optional map failedCauseByShard\n}\n\nstruct RespondCrossClusterTasksCompletedRequest {\n 10: optional i32 shardID\n 20: optional string targetCluster\n 30: optional list taskResponses\n 40: optional bool fetchNewTasks\n}\n\nstruct RespondCrossClusterTasksCompletedResponse {\n 10: optional list tasks\n}\n\nenum IsolationGroupState {\n INVALID,\n HEALTHY,\n DRAINED,\n}\n\nstruct IsolationGroupPartition {\n 10: optional string name\n 20: optional IsolationGroupState state\n}\n\nstruct IsolationGroupConfiguration {\n 10: optional list isolationGroups\n}\n\nstruct AsyncWorkflowConfiguration {\n 10: optional bool enabled\n // PredefinedQueueName is the name of the predefined queue in cadence server config's asyncWorkflowQueues\n 20: optional string predefinedQueueName\n // queueType is the type of the queue if predefined_queue_name is not used\n 30: optional string queueType\n // queueConfig is the configuration for the queue if predefined_queue_name is not used\n 40: optional DataBlob queueConfig\n}\n\n/**\n* Any is a logical duplicate of google.protobuf.Any.\n*\n* The intent of the type is the same, but it is not intended to be directly\n* compatible with google.protobuf.Any or any Thrift equivalent - this blob is\n* RPC-type agnostic by design (as the underlying data may be transported over\n* proto or thrift), and the data-bytes may be in any encoding.\n*\n* This is intentionally different from DataBlob, which supports only a handful\n* of known encodings so it can be interpreted everywhere. Any supports literally\n* any contents, and needs to be considered opaque until it is given to something\n* that is expecting it.\n*\n* See ValueType to interpret the contents.\n**/\nstruct Any {\n // Type-string describing value's contents, and intentionally avoiding the\n // name \"type\" as it is often a special term.\n // This should usually be a hard-coded string of some kind.\n 10: optional string ValueType\n // Arbitrarily-encoded bytes, to be deserialized by a runtime implementation.\n // The contents are described by ValueType.\n 20: optional binary Value\n}\n" +const rawIDL = "// Copyright (c) 2017 Uber Technologies, Inc.\n//\n// Permission is hereby granted, free of charge, to any person obtaining a copy\n// of this software and associated documentation files (the \"Software\"), to deal\n// in the Software without restriction, including without limitation the rights\n// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n// copies of the Software, and to permit persons to whom the Software is\n// furnished to do so, subject to the following conditions:\n//\n// The above copyright notice and this permission notice shall be included in\n// all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n// THE SOFTWARE.\n\nnamespace java com.uber.cadence\n\nexception BadRequestError {\n 1: required string message\n}\n\nexception InternalServiceError {\n 1: required string message\n}\n\nexception InternalDataInconsistencyError {\n 1: required string message\n}\n\nexception DomainAlreadyExistsError {\n 1: required string message\n}\n\nexception WorkflowExecutionAlreadyStartedError {\n 10: optional string message\n 20: optional string startRequestId\n 30: optional string runId\n}\n\nexception WorkflowExecutionAlreadyCompletedError {\n 1: required string message\n}\n\nexception EntityNotExistsError {\n 1: required string message\n 2: optional string currentCluster\n 3: optional string activeCluster\n}\n\nexception ServiceBusyError {\n 1: required string message\n 2: optional string reason\n}\n\nexception CancellationAlreadyRequestedError {\n 1: required string message\n}\n\nexception QueryFailedError {\n 1: required string message\n}\n\nexception DomainNotActiveError {\n 1: required string message\n 2: required string domainName\n 3: required string currentCluster\n 4: required string activeCluster\n}\n\nexception LimitExceededError {\n 1: required string message\n}\n\nexception AccessDeniedError {\n 1: required string message\n}\n\nexception RetryTaskV2Error {\n 1: required string message\n 2: optional string domainId\n 3: optional string workflowId\n 4: optional string runId\n 5: optional i64 (js.type = \"Long\") startEventId\n 6: optional i64 (js.type = \"Long\") startEventVersion\n 7: optional i64 (js.type = \"Long\") endEventId\n 8: optional i64 (js.type = \"Long\") endEventVersion\n}\n\nexception ClientVersionNotSupportedError {\n 1: required string featureVersion\n 2: required string clientImpl\n 3: required string supportedVersions\n}\n\nexception FeatureNotEnabledError {\n 1: required string featureFlag\n}\n\nexception CurrentBranchChangedError {\n 10: required string message\n 20: required binary currentBranchToken\n}\n\nexception RemoteSyncMatchedError {\n 10: required string message\n}\n\nexception StickyWorkerUnavailableError {\n 1: required string message\n}\n\nexception TaskListNotOwnedByHostError {\n 1: required string ownedByIdentity\n 2: required string myIdentity\n 3: required string tasklistName\n}\n\nenum WorkflowIdReusePolicy {\n /*\n * allow start a workflow execution using the same workflow ID,\n * when workflow not running, and the last execution close state is in\n * [terminated, cancelled, timeouted, failed].\n */\n AllowDuplicateFailedOnly,\n /*\n * allow start a workflow execution using the same workflow ID,\n * when workflow not running.\n */\n AllowDuplicate,\n /*\n * do not allow start a workflow execution using the same workflow ID at all\n */\n RejectDuplicate,\n /*\n * if a workflow is running using the same workflow ID, terminate it and start a new one\n */\n TerminateIfRunning,\n}\n\nenum DomainStatus {\n REGISTERED,\n DEPRECATED,\n DELETED,\n}\n\nenum TimeoutType {\n START_TO_CLOSE,\n SCHEDULE_TO_START,\n SCHEDULE_TO_CLOSE,\n HEARTBEAT,\n}\n\nenum ParentClosePolicy {\n\tABANDON,\n\tREQUEST_CANCEL,\n\tTERMINATE,\n}\n\n\n// whenever this list of decision is changed\n// do change the mutableStateBuilder.go\n// function shouldBufferEvent\n// to make sure wo do the correct event ordering\nenum DecisionType {\n ScheduleActivityTask,\n RequestCancelActivityTask,\n StartTimer,\n CompleteWorkflowExecution,\n FailWorkflowExecution,\n CancelTimer,\n CancelWorkflowExecution,\n RequestCancelExternalWorkflowExecution,\n RecordMarker,\n ContinueAsNewWorkflowExecution,\n StartChildWorkflowExecution,\n SignalExternalWorkflowExecution,\n UpsertWorkflowSearchAttributes,\n}\n\nenum EventType {\n WorkflowExecutionStarted,\n WorkflowExecutionCompleted,\n WorkflowExecutionFailed,\n WorkflowExecutionTimedOut,\n DecisionTaskScheduled,\n DecisionTaskStarted,\n DecisionTaskCompleted,\n DecisionTaskTimedOut\n DecisionTaskFailed,\n ActivityTaskScheduled,\n ActivityTaskStarted,\n ActivityTaskCompleted,\n ActivityTaskFailed,\n ActivityTaskTimedOut,\n ActivityTaskCancelRequested,\n RequestCancelActivityTaskFailed,\n ActivityTaskCanceled,\n TimerStarted,\n TimerFired,\n CancelTimerFailed,\n TimerCanceled,\n WorkflowExecutionCancelRequested,\n WorkflowExecutionCanceled,\n RequestCancelExternalWorkflowExecutionInitiated,\n RequestCancelExternalWorkflowExecutionFailed,\n ExternalWorkflowExecutionCancelRequested,\n MarkerRecorded,\n WorkflowExecutionSignaled,\n WorkflowExecutionTerminated,\n WorkflowExecutionContinuedAsNew,\n StartChildWorkflowExecutionInitiated,\n StartChildWorkflowExecutionFailed,\n ChildWorkflowExecutionStarted,\n ChildWorkflowExecutionCompleted,\n ChildWorkflowExecutionFailed,\n ChildWorkflowExecutionCanceled,\n ChildWorkflowExecutionTimedOut,\n ChildWorkflowExecutionTerminated,\n SignalExternalWorkflowExecutionInitiated,\n SignalExternalWorkflowExecutionFailed,\n ExternalWorkflowExecutionSignaled,\n UpsertWorkflowSearchAttributes,\n}\n\nenum DecisionTaskFailedCause {\n UNHANDLED_DECISION,\n BAD_SCHEDULE_ACTIVITY_ATTRIBUTES,\n BAD_REQUEST_CANCEL_ACTIVITY_ATTRIBUTES,\n BAD_START_TIMER_ATTRIBUTES,\n BAD_CANCEL_TIMER_ATTRIBUTES,\n BAD_RECORD_MARKER_ATTRIBUTES,\n BAD_COMPLETE_WORKFLOW_EXECUTION_ATTRIBUTES,\n BAD_FAIL_WORKFLOW_EXECUTION_ATTRIBUTES,\n BAD_CANCEL_WORKFLOW_EXECUTION_ATTRIBUTES,\n BAD_REQUEST_CANCEL_EXTERNAL_WORKFLOW_EXECUTION_ATTRIBUTES,\n BAD_CONTINUE_AS_NEW_ATTRIBUTES,\n START_TIMER_DUPLICATE_ID,\n RESET_STICKY_TASKLIST,\n WORKFLOW_WORKER_UNHANDLED_FAILURE,\n BAD_SIGNAL_WORKFLOW_EXECUTION_ATTRIBUTES,\n BAD_START_CHILD_EXECUTION_ATTRIBUTES,\n FORCE_CLOSE_DECISION,\n FAILOVER_CLOSE_DECISION,\n BAD_SIGNAL_INPUT_SIZE,\n RESET_WORKFLOW,\n BAD_BINARY,\n SCHEDULE_ACTIVITY_DUPLICATE_ID,\n BAD_SEARCH_ATTRIBUTES,\n}\n\nenum DecisionTaskTimedOutCause {\n TIMEOUT,\n RESET,\n}\n\nenum CancelExternalWorkflowExecutionFailedCause {\n UNKNOWN_EXTERNAL_WORKFLOW_EXECUTION,\n WORKFLOW_ALREADY_COMPLETED,\n}\n\nenum SignalExternalWorkflowExecutionFailedCause {\n UNKNOWN_EXTERNAL_WORKFLOW_EXECUTION,\n WORKFLOW_ALREADY_COMPLETED,\n}\n\nenum ChildWorkflowExecutionFailedCause {\n WORKFLOW_ALREADY_RUNNING,\n}\n\n// TODO: when migrating to gRPC, add a running / none status,\n// currently, customer is using null / nil as an indication\n// that workflow is still running\nenum WorkflowExecutionCloseStatus {\n COMPLETED,\n FAILED,\n CANCELED,\n TERMINATED,\n CONTINUED_AS_NEW,\n TIMED_OUT,\n}\n\nenum QueryTaskCompletedType {\n COMPLETED,\n FAILED,\n}\n\nenum QueryResultType {\n ANSWERED,\n FAILED,\n}\n\nenum PendingActivityState {\n SCHEDULED,\n STARTED,\n CANCEL_REQUESTED,\n}\n\nenum PendingDecisionState {\n SCHEDULED,\n STARTED,\n}\n\nenum HistoryEventFilterType {\n ALL_EVENT,\n CLOSE_EVENT,\n}\n\nenum TaskListKind {\n NORMAL,\n STICKY,\n}\n\nenum ArchivalStatus {\n DISABLED,\n ENABLED,\n}\n\nenum IndexedValueType {\n STRING,\n KEYWORD,\n INT,\n DOUBLE,\n BOOL,\n DATETIME,\n}\n\nstruct Header {\n 10: optional map fields\n}\n\nstruct WorkflowType {\n 10: optional string name\n}\n\nstruct ActivityType {\n 10: optional string name\n}\n\nstruct TaskList {\n 10: optional string name\n 20: optional TaskListKind kind\n}\n\nenum EncodingType {\n ThriftRW,\n JSON,\n}\n\nenum QueryRejectCondition {\n // NOT_OPEN indicates that query should be rejected if workflow is not open\n NOT_OPEN\n // NOT_COMPLETED_CLEANLY indicates that query should be rejected if workflow did not complete cleanly\n NOT_COMPLETED_CLEANLY\n}\n\nenum QueryConsistencyLevel {\n // EVENTUAL indicates that query should be eventually consistent\n EVENTUAL\n // STRONG indicates that any events that came before query should be reflected in workflow state before running query\n STRONG\n}\n\nstruct DataBlob {\n 10: optional EncodingType EncodingType\n 20: optional binary Data\n}\n\nstruct TaskListMetadata {\n 10: optional double maxTasksPerSecond\n}\n\nstruct WorkflowExecution {\n 10: optional string workflowId\n 20: optional string runId\n}\n\nstruct Memo {\n 10: optional map fields\n}\n\nstruct SearchAttributes {\n 10: optional map indexedFields\n}\n\nstruct WorkerVersionInfo {\n 10: optional string impl\n 20: optional string featureVersion\n}\n\nstruct WorkflowExecutionInfo {\n 10: optional WorkflowExecution execution\n 20: optional WorkflowType type\n 30: optional i64 (js.type = \"Long\") startTime\n 40: optional i64 (js.type = \"Long\") closeTime\n 50: optional WorkflowExecutionCloseStatus closeStatus\n 60: optional i64 (js.type = \"Long\") historyLength\n 70: optional string parentDomainId\n 71: optional string parentDomainName\n 72: optional i64 parentInitatedId\n 80: optional WorkflowExecution parentExecution\n 90: optional i64 (js.type = \"Long\") executionTime\n 100: optional Memo memo\n 101: optional SearchAttributes searchAttributes\n 110: optional ResetPoints autoResetPoints\n 120: optional string taskList\n 130: optional bool isCron\n 140: optional i64 (js.type = \"Long\") updateTime\n 150: optional map partitionConfig\n}\n\nstruct WorkflowExecutionConfiguration {\n 10: optional TaskList taskList\n 20: optional i32 executionStartToCloseTimeoutSeconds\n 30: optional i32 taskStartToCloseTimeoutSeconds\n// 40: optional ChildPolicy childPolicy -- Removed but reserve the IDL order number\n}\n\nstruct TransientDecisionInfo {\n 10: optional HistoryEvent scheduledEvent\n 20: optional HistoryEvent startedEvent\n}\n\nstruct ScheduleActivityTaskDecisionAttributes {\n 10: optional string activityId\n 20: optional ActivityType activityType\n 25: optional string domain\n 30: optional TaskList taskList\n 40: optional binary input\n 45: optional i32 scheduleToCloseTimeoutSeconds\n 50: optional i32 scheduleToStartTimeoutSeconds\n 55: optional i32 startToCloseTimeoutSeconds\n 60: optional i32 heartbeatTimeoutSeconds\n 70: optional RetryPolicy retryPolicy\n 80: optional Header header\n 90: optional bool requestLocalDispatch\n}\n\nstruct ActivityLocalDispatchInfo{\n 10: optional string activityId\n 20: optional i64 (js.type = \"Long\") scheduledTimestamp\n 30: optional i64 (js.type = \"Long\") startedTimestamp\n 40: optional i64 (js.type = \"Long\") scheduledTimestampOfThisAttempt\n 50: optional binary taskToken\n}\n\nstruct RequestCancelActivityTaskDecisionAttributes {\n 10: optional string activityId\n}\n\nstruct StartTimerDecisionAttributes {\n 10: optional string timerId\n 20: optional i64 (js.type = \"Long\") startToFireTimeoutSeconds\n}\n\nstruct CompleteWorkflowExecutionDecisionAttributes {\n 10: optional binary result\n}\n\nstruct FailWorkflowExecutionDecisionAttributes {\n 10: optional string reason\n 20: optional binary details\n}\n\nstruct CancelTimerDecisionAttributes {\n 10: optional string timerId\n}\n\nstruct CancelWorkflowExecutionDecisionAttributes {\n 10: optional binary details\n}\n\nstruct RequestCancelExternalWorkflowExecutionDecisionAttributes {\n 10: optional string domain\n 20: optional string workflowId\n 30: optional string runId\n 40: optional binary control\n 50: optional bool childWorkflowOnly\n}\n\nstruct SignalExternalWorkflowExecutionDecisionAttributes {\n 10: optional string domain\n 20: optional WorkflowExecution execution\n 30: optional string signalName\n 40: optional binary input\n 50: optional binary control\n 60: optional bool childWorkflowOnly\n}\n\nstruct UpsertWorkflowSearchAttributesDecisionAttributes {\n 10: optional SearchAttributes searchAttributes\n}\n\nstruct RecordMarkerDecisionAttributes {\n 10: optional string markerName\n 20: optional binary details\n 30: optional Header header\n}\n\nstruct ContinueAsNewWorkflowExecutionDecisionAttributes {\n 10: optional WorkflowType workflowType\n 20: optional TaskList taskList\n 30: optional binary input\n 40: optional i32 executionStartToCloseTimeoutSeconds\n 50: optional i32 taskStartToCloseTimeoutSeconds\n 60: optional i32 backoffStartIntervalInSeconds\n 70: optional RetryPolicy retryPolicy\n 80: optional ContinueAsNewInitiator initiator\n 90: optional string failureReason\n 100: optional binary failureDetails\n 110: optional binary lastCompletionResult\n 120: optional string cronSchedule\n 130: optional Header header\n 140: optional Memo memo\n 150: optional SearchAttributes searchAttributes\n 160: optional i32 jitterStartSeconds\n}\n\nstruct StartChildWorkflowExecutionDecisionAttributes {\n 10: optional string domain\n 20: optional string workflowId\n 30: optional WorkflowType workflowType\n 40: optional TaskList taskList\n 50: optional binary input\n 60: optional i32 executionStartToCloseTimeoutSeconds\n 70: optional i32 taskStartToCloseTimeoutSeconds\n// 80: optional ChildPolicy childPolicy -- Removed but reserve the IDL order number\n 81: optional ParentClosePolicy parentClosePolicy\n 90: optional binary control\n 100: optional WorkflowIdReusePolicy workflowIdReusePolicy\n 110: optional RetryPolicy retryPolicy\n 120: optional string cronSchedule\n 130: optional Header header\n 140: optional Memo memo\n 150: optional SearchAttributes searchAttributes\n}\n\nstruct Decision {\n 10: optional DecisionType decisionType\n 20: optional ScheduleActivityTaskDecisionAttributes scheduleActivityTaskDecisionAttributes\n 25: optional StartTimerDecisionAttributes startTimerDecisionAttributes\n 30: optional CompleteWorkflowExecutionDecisionAttributes completeWorkflowExecutionDecisionAttributes\n 35: optional FailWorkflowExecutionDecisionAttributes failWorkflowExecutionDecisionAttributes\n 40: optional RequestCancelActivityTaskDecisionAttributes requestCancelActivityTaskDecisionAttributes\n 50: optional CancelTimerDecisionAttributes cancelTimerDecisionAttributes\n 60: optional CancelWorkflowExecutionDecisionAttributes cancelWorkflowExecutionDecisionAttributes\n 70: optional RequestCancelExternalWorkflowExecutionDecisionAttributes requestCancelExternalWorkflowExecutionDecisionAttributes\n 80: optional RecordMarkerDecisionAttributes recordMarkerDecisionAttributes\n 90: optional ContinueAsNewWorkflowExecutionDecisionAttributes continueAsNewWorkflowExecutionDecisionAttributes\n 100: optional StartChildWorkflowExecutionDecisionAttributes startChildWorkflowExecutionDecisionAttributes\n 110: optional SignalExternalWorkflowExecutionDecisionAttributes signalExternalWorkflowExecutionDecisionAttributes\n 120: optional UpsertWorkflowSearchAttributesDecisionAttributes upsertWorkflowSearchAttributesDecisionAttributes\n}\n\nstruct WorkflowExecutionStartedEventAttributes {\n 10: optional WorkflowType workflowType\n 12: optional string parentWorkflowDomain\n 14: optional WorkflowExecution parentWorkflowExecution\n 16: optional i64 (js.type = \"Long\") parentInitiatedEventId\n 20: optional TaskList taskList\n 30: optional binary input\n 40: optional i32 executionStartToCloseTimeoutSeconds\n 50: optional i32 taskStartToCloseTimeoutSeconds\n// 52: optional ChildPolicy childPolicy -- Removed but reserve the IDL order number\n 54: optional string continuedExecutionRunId\n 55: optional ContinueAsNewInitiator initiator\n 56: optional string continuedFailureReason\n 57: optional binary continuedFailureDetails\n 58: optional binary lastCompletionResult\n 59: optional string originalExecutionRunId // This is the runID when the WorkflowExecutionStarted event is written\n 60: optional string identity\n 61: optional string firstExecutionRunId // This is the very first runID along the chain of ContinueAsNew and Reset.\n 62: optional i64 (js.type = \"Long\") firstScheduledTimeNano\n 70: optional RetryPolicy retryPolicy\n 80: optional i32 attempt\n 90: optional i64 (js.type = \"Long\") expirationTimestamp\n 100: optional string cronSchedule\n 110: optional i32 firstDecisionTaskBackoffSeconds\n 120: optional Memo memo\n 121: optional SearchAttributes searchAttributes\n 130: optional ResetPoints prevAutoResetPoints\n 140: optional Header header\n 150: optional map partitionConfig\n 160: optional string requestId\n}\n\nstruct ResetPoints{\n 10: optional list points\n}\n\n struct ResetPointInfo{\n 10: optional string binaryChecksum\n 20: optional string runId\n 30: optional i64 firstDecisionCompletedId\n 40: optional i64 (js.type = \"Long\") createdTimeNano\n 50: optional i64 (js.type = \"Long\") expiringTimeNano //the time that the run is deleted due to retention\n 60: optional bool resettable // false if the resset point has pending childWFs/reqCancels/signalExternals.\n}\n\nstruct WorkflowExecutionCompletedEventAttributes {\n 10: optional binary result\n 20: optional i64 (js.type = \"Long\") decisionTaskCompletedEventId\n}\n\nstruct WorkflowExecutionFailedEventAttributes {\n 10: optional string reason\n 20: optional binary details\n 30: optional i64 (js.type = \"Long\") decisionTaskCompletedEventId\n}\n\nstruct WorkflowExecutionTimedOutEventAttributes {\n 10: optional TimeoutType timeoutType\n}\n\nenum ContinueAsNewInitiator {\n Decider,\n RetryPolicy,\n CronSchedule,\n}\n\nstruct WorkflowExecutionContinuedAsNewEventAttributes {\n 10: optional string newExecutionRunId\n 20: optional WorkflowType workflowType\n 30: optional TaskList taskList\n 40: optional binary input\n 50: optional i32 executionStartToCloseTimeoutSeconds\n 60: optional i32 taskStartToCloseTimeoutSeconds\n 70: optional i64 (js.type = \"Long\") decisionTaskCompletedEventId\n 80: optional i32 backoffStartIntervalInSeconds\n 90: optional ContinueAsNewInitiator initiator\n 100: optional string failureReason\n 110: optional binary failureDetails\n 120: optional binary lastCompletionResult\n 130: optional Header header\n 140: optional Memo memo\n 150: optional SearchAttributes searchAttributes\n}\n\nstruct DecisionTaskScheduledEventAttributes {\n 10: optional TaskList taskList\n 20: optional i32 startToCloseTimeoutSeconds\n 30: optional i64 (js.type = \"Long\") attempt\n}\n\nstruct DecisionTaskStartedEventAttributes {\n 10: optional i64 (js.type = \"Long\") scheduledEventId\n 20: optional string identity\n 30: optional string requestId\n}\n\nstruct DecisionTaskCompletedEventAttributes {\n 10: optional binary executionContext\n 20: optional i64 (js.type = \"Long\") scheduledEventId\n 30: optional i64 (js.type = \"Long\") startedEventId\n 40: optional string identity\n 50: optional string binaryChecksum\n}\n\nstruct DecisionTaskTimedOutEventAttributes {\n 10: optional i64 (js.type = \"Long\") scheduledEventId\n 20: optional i64 (js.type = \"Long\") startedEventId\n 30: optional TimeoutType timeoutType\n // for reset workflow\n 40: optional string baseRunId\n 50: optional string newRunId\n 60: optional i64 (js.type = \"Long\") forkEventVersion\n 70: optional string reason\n 80: optional DecisionTaskTimedOutCause cause\n 90: optional string requestId\n}\n\nstruct DecisionTaskFailedEventAttributes {\n 10: optional i64 (js.type = \"Long\") scheduledEventId\n 20: optional i64 (js.type = \"Long\") startedEventId\n 30: optional DecisionTaskFailedCause cause\n 35: optional binary details\n 40: optional string identity\n 50: optional string reason\n // for reset workflow\n 60: optional string baseRunId\n 70: optional string newRunId\n 80: optional i64 (js.type = \"Long\") forkEventVersion\n 90: optional string binaryChecksum\n 100: optional string requestId\n}\n\nstruct ActivityTaskScheduledEventAttributes {\n 10: optional string activityId\n 20: optional ActivityType activityType\n 25: optional string domain\n 30: optional TaskList taskList\n 40: optional binary input\n 45: optional i32 scheduleToCloseTimeoutSeconds\n 50: optional i32 scheduleToStartTimeoutSeconds\n 55: optional i32 startToCloseTimeoutSeconds\n 60: optional i32 heartbeatTimeoutSeconds\n 90: optional i64 (js.type = \"Long\") decisionTaskCompletedEventId\n 110: optional RetryPolicy retryPolicy\n 120: optional Header header\n}\n\nstruct ActivityTaskStartedEventAttributes {\n 10: optional i64 (js.type = \"Long\") scheduledEventId\n 20: optional string identity\n 30: optional string requestId\n 40: optional i32 attempt\n 50: optional string lastFailureReason\n 60: optional binary lastFailureDetails\n}\n\nstruct ActivityTaskCompletedEventAttributes {\n 10: optional binary result\n 20: optional i64 (js.type = \"Long\") scheduledEventId\n 30: optional i64 (js.type = \"Long\") startedEventId\n 40: optional string identity\n}\n\nstruct ActivityTaskFailedEventAttributes {\n 10: optional string reason\n 20: optional binary details\n 30: optional i64 (js.type = \"Long\") scheduledEventId\n 40: optional i64 (js.type = \"Long\") startedEventId\n 50: optional string identity\n}\n\nstruct ActivityTaskTimedOutEventAttributes {\n 05: optional binary details\n 10: optional i64 (js.type = \"Long\") scheduledEventId\n 20: optional i64 (js.type = \"Long\") startedEventId\n 30: optional TimeoutType timeoutType\n // For retry activity, it may have a failure before timeout. It's important to keep those information for debug.\n // Client can also provide the info for making next decision\n 40: optional string lastFailureReason\n 50: optional binary lastFailureDetails\n}\n\nstruct ActivityTaskCancelRequestedEventAttributes {\n 10: optional string activityId\n 20: optional i64 (js.type = \"Long\") decisionTaskCompletedEventId\n}\n\nstruct RequestCancelActivityTaskFailedEventAttributes{\n 10: optional string activityId\n 20: optional string cause\n 30: optional i64 (js.type = \"Long\") decisionTaskCompletedEventId\n}\n\nstruct ActivityTaskCanceledEventAttributes {\n 10: optional binary details\n 20: optional i64 (js.type = \"Long\") latestCancelRequestedEventId\n 30: optional i64 (js.type = \"Long\") scheduledEventId\n 40: optional i64 (js.type = \"Long\") startedEventId\n 50: optional string identity\n}\n\nstruct TimerStartedEventAttributes {\n 10: optional string timerId\n 20: optional i64 (js.type = \"Long\") startToFireTimeoutSeconds\n 30: optional i64 (js.type = \"Long\") decisionTaskCompletedEventId\n}\n\nstruct TimerFiredEventAttributes {\n 10: optional string timerId\n 20: optional i64 (js.type = \"Long\") startedEventId\n}\n\nstruct TimerCanceledEventAttributes {\n 10: optional string timerId\n 20: optional i64 (js.type = \"Long\") startedEventId\n 30: optional i64 (js.type = \"Long\") decisionTaskCompletedEventId\n 40: optional string identity\n}\n\nstruct CancelTimerFailedEventAttributes {\n 10: optional string timerId\n 20: optional string cause\n 30: optional i64 (js.type = \"Long\") decisionTaskCompletedEventId\n 40: optional string identity\n}\n\nstruct WorkflowExecutionCancelRequestedEventAttributes {\n 10: optional string cause\n 20: optional i64 (js.type = \"Long\") externalInitiatedEventId\n 30: optional WorkflowExecution externalWorkflowExecution\n 40: optional string identity\n 50: optional string requestId\n}\n\nstruct WorkflowExecutionCanceledEventAttributes {\n 10: optional i64 (js.type = \"Long\") decisionTaskCompletedEventId\n 20: optional binary details\n}\n\nstruct MarkerRecordedEventAttributes {\n 10: optional string markerName\n 20: optional binary details\n 30: optional i64 (js.type = \"Long\") decisionTaskCompletedEventId\n 40: optional Header header\n}\n\nstruct WorkflowExecutionSignaledEventAttributes {\n 10: optional string signalName\n 20: optional binary input\n 30: optional string identity\n 40: optional string requestId\n}\n\nstruct WorkflowExecutionTerminatedEventAttributes {\n 10: optional string reason\n 20: optional binary details\n 30: optional string identity\n}\n\nstruct RequestCancelExternalWorkflowExecutionInitiatedEventAttributes {\n 10: optional i64 (js.type = \"Long\") decisionTaskCompletedEventId\n 20: optional string domain\n 30: optional WorkflowExecution workflowExecution\n 40: optional binary control\n 50: optional bool childWorkflowOnly\n}\n\nstruct RequestCancelExternalWorkflowExecutionFailedEventAttributes {\n 10: optional CancelExternalWorkflowExecutionFailedCause cause\n 20: optional i64 (js.type = \"Long\") decisionTaskCompletedEventId\n 30: optional string domain\n 40: optional WorkflowExecution workflowExecution\n 50: optional i64 (js.type = \"Long\") initiatedEventId\n 60: optional binary control\n}\n\nstruct ExternalWorkflowExecutionCancelRequestedEventAttributes {\n 10: optional i64 (js.type = \"Long\") initiatedEventId\n 20: optional string domain\n 30: optional WorkflowExecution workflowExecution\n}\n\nstruct SignalExternalWorkflowExecutionInitiatedEventAttributes {\n 10: optional i64 (js.type = \"Long\") decisionTaskCompletedEventId\n 20: optional string domain\n 30: optional WorkflowExecution workflowExecution\n 40: optional string signalName\n 50: optional binary input\n 60: optional binary control\n 70: optional bool childWorkflowOnly\n}\n\nstruct SignalExternalWorkflowExecutionFailedEventAttributes {\n 10: optional SignalExternalWorkflowExecutionFailedCause cause\n 20: optional i64 (js.type = \"Long\") decisionTaskCompletedEventId\n 30: optional string domain\n 40: optional WorkflowExecution workflowExecution\n 50: optional i64 (js.type = \"Long\") initiatedEventId\n 60: optional binary control\n}\n\nstruct ExternalWorkflowExecutionSignaledEventAttributes {\n 10: optional i64 (js.type = \"Long\") initiatedEventId\n 20: optional string domain\n 30: optional WorkflowExecution workflowExecution\n 40: optional binary control\n}\n\nstruct UpsertWorkflowSearchAttributesEventAttributes {\n 10: optional i64 (js.type = \"Long\") decisionTaskCompletedEventId\n 20: optional SearchAttributes searchAttributes\n}\n\nstruct StartChildWorkflowExecutionInitiatedEventAttributes {\n 10: optional string domain\n 20: optional string workflowId\n 30: optional WorkflowType workflowType\n 40: optional TaskList taskList\n 50: optional binary input\n 60: optional i32 executionStartToCloseTimeoutSeconds\n 70: optional i32 taskStartToCloseTimeoutSeconds\n// 80: optional ChildPolicy childPolicy -- Removed but reserve the IDL order number\n 81: optional ParentClosePolicy parentClosePolicy\n 90: optional binary control\n 100: optional i64 (js.type = \"Long\") decisionTaskCompletedEventId\n 110: optional WorkflowIdReusePolicy workflowIdReusePolicy\n 120: optional RetryPolicy retryPolicy\n 130: optional string cronSchedule\n 140: optional Header header\n 150: optional Memo memo\n 160: optional SearchAttributes searchAttributes\n 170: optional i32 delayStartSeconds\n 180: optional i32 jitterStartSeconds\n 190: optional i64 (js.type = \"Long\") firstRunAtTimestamp\n}\n\nstruct StartChildWorkflowExecutionFailedEventAttributes {\n 10: optional string domain\n 20: optional string workflowId\n 30: optional WorkflowType workflowType\n 40: optional ChildWorkflowExecutionFailedCause cause\n 50: optional binary control\n 60: optional i64 (js.type = \"Long\") initiatedEventId\n 70: optional i64 (js.type = \"Long\") decisionTaskCompletedEventId\n}\n\nstruct ChildWorkflowExecutionStartedEventAttributes {\n 10: optional string domain\n 20: optional i64 (js.type = \"Long\") initiatedEventId\n 30: optional WorkflowExecution workflowExecution\n 40: optional WorkflowType workflowType\n 50: optional Header header\n}\n\nstruct ChildWorkflowExecutionCompletedEventAttributes {\n 10: optional binary result\n 20: optional string domain\n 30: optional WorkflowExecution workflowExecution\n 40: optional WorkflowType workflowType\n 50: optional i64 (js.type = \"Long\") initiatedEventId\n 60: optional i64 (js.type = \"Long\") startedEventId\n}\n\nstruct ChildWorkflowExecutionFailedEventAttributes {\n 10: optional string reason\n 20: optional binary details\n 30: optional string domain\n 40: optional WorkflowExecution workflowExecution\n 50: optional WorkflowType workflowType\n 60: optional i64 (js.type = \"Long\") initiatedEventId\n 70: optional i64 (js.type = \"Long\") startedEventId\n}\n\nstruct ChildWorkflowExecutionCanceledEventAttributes {\n 10: optional binary details\n 20: optional string domain\n 30: optional WorkflowExecution workflowExecution\n 40: optional WorkflowType workflowType\n 50: optional i64 (js.type = \"Long\") initiatedEventId\n 60: optional i64 (js.type = \"Long\") startedEventId\n}\n\nstruct ChildWorkflowExecutionTimedOutEventAttributes {\n 10: optional TimeoutType timeoutType\n 20: optional string domain\n 30: optional WorkflowExecution workflowExecution\n 40: optional WorkflowType workflowType\n 50: optional i64 (js.type = \"Long\") initiatedEventId\n 60: optional i64 (js.type = \"Long\") startedEventId\n}\n\nstruct ChildWorkflowExecutionTerminatedEventAttributes {\n 10: optional string domain\n 20: optional WorkflowExecution workflowExecution\n 30: optional WorkflowType workflowType\n 40: optional i64 (js.type = \"Long\") initiatedEventId\n 50: optional i64 (js.type = \"Long\") startedEventId\n}\n\nstruct HistoryEvent {\n 10: optional i64 (js.type = \"Long\") eventId\n 20: optional i64 (js.type = \"Long\") timestamp\n 30: optional EventType eventType\n 35: optional i64 (js.type = \"Long\") version\n 36: optional i64 (js.type = \"Long\") taskId\n 40: optional WorkflowExecutionStartedEventAttributes workflowExecutionStartedEventAttributes\n 50: optional WorkflowExecutionCompletedEventAttributes workflowExecutionCompletedEventAttributes\n 60: optional WorkflowExecutionFailedEventAttributes workflowExecutionFailedEventAttributes\n 70: optional WorkflowExecutionTimedOutEventAttributes workflowExecutionTimedOutEventAttributes\n 80: optional DecisionTaskScheduledEventAttributes decisionTaskScheduledEventAttributes\n 90: optional DecisionTaskStartedEventAttributes decisionTaskStartedEventAttributes\n 100: optional DecisionTaskCompletedEventAttributes decisionTaskCompletedEventAttributes\n 110: optional DecisionTaskTimedOutEventAttributes decisionTaskTimedOutEventAttributes\n 120: optional DecisionTaskFailedEventAttributes decisionTaskFailedEventAttributes\n 130: optional ActivityTaskScheduledEventAttributes activityTaskScheduledEventAttributes\n 140: optional ActivityTaskStartedEventAttributes activityTaskStartedEventAttributes\n 150: optional ActivityTaskCompletedEventAttributes activityTaskCompletedEventAttributes\n 160: optional ActivityTaskFailedEventAttributes activityTaskFailedEventAttributes\n 170: optional ActivityTaskTimedOutEventAttributes activityTaskTimedOutEventAttributes\n 180: optional TimerStartedEventAttributes timerStartedEventAttributes\n 190: optional TimerFiredEventAttributes timerFiredEventAttributes\n 200: optional ActivityTaskCancelRequestedEventAttributes activityTaskCancelRequestedEventAttributes\n 210: optional RequestCancelActivityTaskFailedEventAttributes requestCancelActivityTaskFailedEventAttributes\n 220: optional ActivityTaskCanceledEventAttributes activityTaskCanceledEventAttributes\n 230: optional TimerCanceledEventAttributes timerCanceledEventAttributes\n 240: optional CancelTimerFailedEventAttributes cancelTimerFailedEventAttributes\n 250: optional MarkerRecordedEventAttributes markerRecordedEventAttributes\n 260: optional WorkflowExecutionSignaledEventAttributes workflowExecutionSignaledEventAttributes\n 270: optional WorkflowExecutionTerminatedEventAttributes workflowExecutionTerminatedEventAttributes\n 280: optional WorkflowExecutionCancelRequestedEventAttributes workflowExecutionCancelRequestedEventAttributes\n 290: optional WorkflowExecutionCanceledEventAttributes workflowExecutionCanceledEventAttributes\n 300: optional RequestCancelExternalWorkflowExecutionInitiatedEventAttributes requestCancelExternalWorkflowExecutionInitiatedEventAttributes\n 310: optional RequestCancelExternalWorkflowExecutionFailedEventAttributes requestCancelExternalWorkflowExecutionFailedEventAttributes\n 320: optional ExternalWorkflowExecutionCancelRequestedEventAttributes externalWorkflowExecutionCancelRequestedEventAttributes\n 330: optional WorkflowExecutionContinuedAsNewEventAttributes workflowExecutionContinuedAsNewEventAttributes\n 340: optional StartChildWorkflowExecutionInitiatedEventAttributes startChildWorkflowExecutionInitiatedEventAttributes\n 350: optional StartChildWorkflowExecutionFailedEventAttributes startChildWorkflowExecutionFailedEventAttributes\n 360: optional ChildWorkflowExecutionStartedEventAttributes childWorkflowExecutionStartedEventAttributes\n 370: optional ChildWorkflowExecutionCompletedEventAttributes childWorkflowExecutionCompletedEventAttributes\n 380: optional ChildWorkflowExecutionFailedEventAttributes childWorkflowExecutionFailedEventAttributes\n 390: optional ChildWorkflowExecutionCanceledEventAttributes childWorkflowExecutionCanceledEventAttributes\n 400: optional ChildWorkflowExecutionTimedOutEventAttributes childWorkflowExecutionTimedOutEventAttributes\n 410: optional ChildWorkflowExecutionTerminatedEventAttributes childWorkflowExecutionTerminatedEventAttributes\n 420: optional SignalExternalWorkflowExecutionInitiatedEventAttributes signalExternalWorkflowExecutionInitiatedEventAttributes\n 430: optional SignalExternalWorkflowExecutionFailedEventAttributes signalExternalWorkflowExecutionFailedEventAttributes\n 440: optional ExternalWorkflowExecutionSignaledEventAttributes externalWorkflowExecutionSignaledEventAttributes\n 450: optional UpsertWorkflowSearchAttributesEventAttributes upsertWorkflowSearchAttributesEventAttributes\n}\n\nstruct History {\n 10: optional list events\n}\n\nstruct WorkflowExecutionFilter {\n 10: optional string workflowId\n 20: optional string runId\n}\n\nstruct WorkflowTypeFilter {\n 10: optional string name\n}\n\nstruct StartTimeFilter {\n 10: optional i64 (js.type = \"Long\") earliestTime\n 20: optional i64 (js.type = \"Long\") latestTime\n}\n\nstruct DomainInfo {\n 10: optional string name\n 20: optional DomainStatus status\n 30: optional string description\n 40: optional string ownerEmail\n // A key-value map for any customized purpose\n 50: optional map data\n 60: optional string uuid\n}\n\nstruct DomainConfiguration {\n 10: optional i32 workflowExecutionRetentionPeriodInDays\n 20: optional bool emitMetric\n 60: optional IsolationGroupConfiguration isolationgroups\n 70: optional BadBinaries badBinaries\n 80: optional ArchivalStatus historyArchivalStatus\n 90: optional string historyArchivalURI\n 100: optional ArchivalStatus visibilityArchivalStatus\n 110: optional string visibilityArchivalURI\n 120: optional AsyncWorkflowConfiguration AsyncWorkflowConfiguration\n}\n\nstruct FailoverInfo {\n 10: optional i64 (js.type = \"Long\") failoverVersion\n 20: optional i64 (js.type = \"Long\") failoverStartTimestamp\n 30: optional i64 (js.type = \"Long\") failoverExpireTimestamp\n 40: optional i32 completedShardCount\n 50: optional list pendingShards\n}\n\nstruct BadBinaries{\n 10: optional map binaries\n}\n\nstruct BadBinaryInfo{\n 10: optional string reason\n 20: optional string operator\n 30: optional i64 (js.type = \"Long\") createdTimeNano\n}\n\nstruct UpdateDomainInfo {\n 10: optional string description\n 20: optional string ownerEmail\n // A key-value map for any customized purpose\n 30: optional map data\n}\n\nstruct ClusterReplicationConfiguration {\n 10: optional string clusterName\n}\n\nstruct DomainReplicationConfiguration {\n 10: optional string activeClusterName\n 20: optional list clusters\n}\n\nstruct RegisterDomainRequest {\n 10: optional string name\n 20: optional string description\n 30: optional string ownerEmail\n 40: optional i32 workflowExecutionRetentionPeriodInDays\n 50: optional bool emitMetric = true\n 60: optional list clusters\n 70: optional string activeClusterName\n // A key-value map for any customized purpose\n 80: optional map data\n 90: optional string securityToken\n 120: optional bool isGlobalDomain\n 130: optional ArchivalStatus historyArchivalStatus\n 140: optional string historyArchivalURI\n 150: optional ArchivalStatus visibilityArchivalStatus\n 160: optional string visibilityArchivalURI\n}\n\nstruct ListDomainsRequest {\n 10: optional i32 pageSize\n 20: optional binary nextPageToken\n}\n\nstruct ListDomainsResponse {\n 10: optional list domains\n 20: optional binary nextPageToken\n}\n\nstruct DescribeDomainRequest {\n 10: optional string name\n 20: optional string uuid\n}\n\nstruct DescribeDomainResponse {\n 10: optional DomainInfo domainInfo\n 20: optional DomainConfiguration configuration\n 30: optional DomainReplicationConfiguration replicationConfiguration\n 40: optional i64 (js.type = \"Long\") failoverVersion\n 50: optional bool isGlobalDomain\n 60: optional FailoverInfo failoverInfo\n}\n\nstruct UpdateDomainRequest {\n 10: optional string name\n 20: optional UpdateDomainInfo updatedInfo\n 30: optional DomainConfiguration configuration\n 40: optional DomainReplicationConfiguration replicationConfiguration\n 50: optional string securityToken\n 60: optional string deleteBadBinary\n 70: optional i32 failoverTimeoutInSeconds\n}\n\nstruct UpdateDomainResponse {\n 10: optional DomainInfo domainInfo\n 20: optional DomainConfiguration configuration\n 30: optional DomainReplicationConfiguration replicationConfiguration\n 40: optional i64 (js.type = \"Long\") failoverVersion\n 50: optional bool isGlobalDomain\n}\n\nstruct DeprecateDomainRequest {\n 10: optional string name\n 20: optional string securityToken\n}\n\nstruct StartWorkflowExecutionRequest {\n 10: optional string domain\n 20: optional string workflowId\n 30: optional WorkflowType workflowType\n 40: optional TaskList taskList\n 50: optional binary input\n 60: optional i32 executionStartToCloseTimeoutSeconds\n 70: optional i32 taskStartToCloseTimeoutSeconds\n 80: optional string identity\n 90: optional string requestId\n 100: optional WorkflowIdReusePolicy workflowIdReusePolicy\n// 110: optional ChildPolicy childPolicy -- Removed but reserve the IDL order number\n 120: optional RetryPolicy retryPolicy\n 130: optional string cronSchedule\n 140: optional Memo memo\n 141: optional SearchAttributes searchAttributes\n 150: optional Header header\n 160: optional i32 delayStartSeconds\n 170: optional i32 jitterStartSeconds\n 180: optional i64 (js.type = \"Long\") firstRunAtTimestamp\n}\n\nstruct StartWorkflowExecutionResponse {\n 10: optional string runId\n}\n\nstruct StartWorkflowExecutionAsyncRequest {\n 10: optional StartWorkflowExecutionRequest request\n}\n\nstruct StartWorkflowExecutionAsyncResponse {\n}\n\nstruct RestartWorkflowExecutionResponse {\n 10: optional string runId\n}\n\nstruct DiagnoseWorkflowExecutionRequest {\n 10: optional string domain\n 20: optional WorkflowExecution workflowExecution\n 30: optional string identity\n}\n\nstruct DiagnoseWorkflowExecutionResponse {\n 10: optional string domain\n 20: optional WorkflowExecution diagnosticWorkflowExecution\n}\n\nstruct PollForDecisionTaskRequest {\n 10: optional string domain\n 20: optional TaskList taskList\n 30: optional string identity\n 40: optional string binaryChecksum\n}\n\nstruct PollForDecisionTaskResponse {\n 10: optional binary taskToken\n 20: optional WorkflowExecution workflowExecution\n 30: optional WorkflowType workflowType\n 40: optional i64 (js.type = \"Long\") previousStartedEventId\n 50: optional i64 (js.type = \"Long\") startedEventId\n 51: optional i64 (js.type = 'Long') attempt\n 54: optional i64 (js.type = \"Long\") backlogCountHint\n 60: optional History history\n 70: optional binary nextPageToken\n 80: optional WorkflowQuery query\n 90: optional TaskList WorkflowExecutionTaskList\n 100: optional i64 (js.type = \"Long\") scheduledTimestamp\n 110: optional i64 (js.type = \"Long\") startedTimestamp\n 120: optional map queries\n 130: optional i64 (js.type = 'Long') nextEventId\n 140: optional i64 (js.type = 'Long') totalHistoryBytes\n 150: optional AutoConfigHint autoConfigHint\n}\n\nstruct StickyExecutionAttributes {\n 10: optional TaskList workerTaskList\n 20: optional i32 scheduleToStartTimeoutSeconds\n}\n\nstruct RespondDecisionTaskCompletedRequest {\n 10: optional binary taskToken\n 20: optional list decisions\n 30: optional binary executionContext\n 40: optional string identity\n 50: optional StickyExecutionAttributes stickyAttributes\n 60: optional bool returnNewDecisionTask\n 70: optional bool forceCreateNewDecisionTask\n 80: optional string binaryChecksum\n 90: optional map queryResults\n}\n\nstruct RespondDecisionTaskCompletedResponse {\n 10: optional PollForDecisionTaskResponse decisionTask\n 20: optional map activitiesToDispatchLocally\n}\n\nstruct RespondDecisionTaskFailedRequest {\n 10: optional binary taskToken\n 20: optional DecisionTaskFailedCause cause\n 30: optional binary details\n 40: optional string identity\n 50: optional string binaryChecksum\n}\n\nstruct PollForActivityTaskRequest {\n 10: optional string domain\n 20: optional TaskList taskList\n 30: optional string identity\n 40: optional TaskListMetadata taskListMetadata\n}\n\nstruct PollForActivityTaskResponse {\n 10: optional binary taskToken\n 20: optional WorkflowExecution workflowExecution\n 30: optional string activityId\n 40: optional ActivityType activityType\n 50: optional binary input\n 70: optional i64 (js.type = \"Long\") scheduledTimestamp\n 80: optional i32 scheduleToCloseTimeoutSeconds\n 90: optional i64 (js.type = \"Long\") startedTimestamp\n 100: optional i32 startToCloseTimeoutSeconds\n 110: optional i32 heartbeatTimeoutSeconds\n 120: optional i32 attempt\n 130: optional i64 (js.type = \"Long\") scheduledTimestampOfThisAttempt\n 140: optional binary heartbeatDetails\n 150: optional WorkflowType workflowType\n 160: optional string workflowDomain\n 170: optional Header header\n 180: optional AutoConfigHint autoConfigHint\n}\n\nstruct RecordActivityTaskHeartbeatRequest {\n 10: optional binary taskToken\n 20: optional binary details\n 30: optional string identity\n}\n\nstruct RecordActivityTaskHeartbeatByIDRequest {\n 10: optional string domain\n 20: optional string workflowID\n 30: optional string runID\n 40: optional string activityID\n 50: optional binary details\n 60: optional string identity\n}\n\nstruct RecordActivityTaskHeartbeatResponse {\n 10: optional bool cancelRequested\n}\n\nstruct RespondActivityTaskCompletedRequest {\n 10: optional binary taskToken\n 20: optional binary result\n 30: optional string identity\n}\n\nstruct RespondActivityTaskFailedRequest {\n 10: optional binary taskToken\n 20: optional string reason\n 30: optional binary details\n 40: optional string identity\n}\n\nstruct RespondActivityTaskCanceledRequest {\n 10: optional binary taskToken\n 20: optional binary details\n 30: optional string identity\n}\n\nstruct RespondActivityTaskCompletedByIDRequest {\n 10: optional string domain\n 20: optional string workflowID\n 30: optional string runID\n 40: optional string activityID\n 50: optional binary result\n 60: optional string identity\n}\n\nstruct RespondActivityTaskFailedByIDRequest {\n 10: optional string domain\n 20: optional string workflowID\n 30: optional string runID\n 40: optional string activityID\n 50: optional string reason\n 60: optional binary details\n 70: optional string identity\n}\n\nstruct RespondActivityTaskCanceledByIDRequest {\n 10: optional string domain\n 20: optional string workflowID\n 30: optional string runID\n 40: optional string activityID\n 50: optional binary details\n 60: optional string identity\n}\n\nstruct RequestCancelWorkflowExecutionRequest {\n 10: optional string domain\n 20: optional WorkflowExecution workflowExecution\n 30: optional string identity\n 40: optional string requestId\n 50: optional string cause\n 60: optional string firstExecutionRunID\n}\n\nstruct GetWorkflowExecutionHistoryRequest {\n 10: optional string domain\n 20: optional WorkflowExecution execution\n 30: optional i32 maximumPageSize\n 40: optional binary nextPageToken\n 50: optional bool waitForNewEvent\n 60: optional HistoryEventFilterType HistoryEventFilterType\n 70: optional bool skipArchival\n}\n\nstruct GetWorkflowExecutionHistoryResponse {\n 10: optional History history\n 11: optional list rawHistory\n 20: optional binary nextPageToken\n 30: optional bool archived\n}\n\nstruct SignalWorkflowExecutionRequest {\n 10: optional string domain\n 20: optional WorkflowExecution workflowExecution\n 30: optional string signalName\n 40: optional binary input\n 50: optional string identity\n 60: optional string requestId\n 70: optional binary control\n}\n\nstruct SignalWithStartWorkflowExecutionRequest {\n 10: optional string domain\n 20: optional string workflowId\n 30: optional WorkflowType workflowType\n 40: optional TaskList taskList\n 50: optional binary input\n 60: optional i32 executionStartToCloseTimeoutSeconds\n 70: optional i32 taskStartToCloseTimeoutSeconds\n 80: optional string identity\n 90: optional string requestId\n 100: optional WorkflowIdReusePolicy workflowIdReusePolicy\n 110: optional string signalName\n 120: optional binary signalInput\n 130: optional binary control\n 140: optional RetryPolicy retryPolicy\n 150: optional string cronSchedule\n 160: optional Memo memo\n 161: optional SearchAttributes searchAttributes\n 170: optional Header header\n 180: optional i32 delayStartSeconds\n 190: optional i32 jitterStartSeconds\n 200: optional i64 (js.type = \"Long\") firstRunAtTimestamp\n}\n\nstruct SignalWithStartWorkflowExecutionAsyncRequest {\n 10: optional SignalWithStartWorkflowExecutionRequest request\n}\n\nstruct SignalWithStartWorkflowExecutionAsyncResponse {\n}\n\nstruct RestartWorkflowExecutionRequest {\n 10: optional string domain\n 20: optional WorkflowExecution workflowExecution\n 30: optional string reason\n 40: optional string identity\n}\nstruct TerminateWorkflowExecutionRequest {\n 10: optional string domain\n 20: optional WorkflowExecution workflowExecution\n 30: optional string reason\n 40: optional binary details\n 50: optional string identity\n 60: optional string firstExecutionRunID\n}\n\nstruct ResetWorkflowExecutionRequest {\n 10: optional string domain\n 20: optional WorkflowExecution workflowExecution\n 30: optional string reason\n 40: optional i64 (js.type = \"Long\") decisionFinishEventId\n 50: optional string requestId\n 60: optional bool skipSignalReapply\n}\n\nstruct ResetWorkflowExecutionResponse {\n 10: optional string runId\n}\n\nstruct ListOpenWorkflowExecutionsRequest {\n 10: optional string domain\n 20: optional i32 maximumPageSize\n 30: optional binary nextPageToken\n 40: optional StartTimeFilter StartTimeFilter\n 50: optional WorkflowExecutionFilter executionFilter\n 60: optional WorkflowTypeFilter typeFilter\n}\n\nstruct ListOpenWorkflowExecutionsResponse {\n 10: optional list executions\n 20: optional binary nextPageToken\n}\n\nstruct ListClosedWorkflowExecutionsRequest {\n 10: optional string domain\n 20: optional i32 maximumPageSize\n 30: optional binary nextPageToken\n 40: optional StartTimeFilter StartTimeFilter\n 50: optional WorkflowExecutionFilter executionFilter\n 60: optional WorkflowTypeFilter typeFilter\n 70: optional WorkflowExecutionCloseStatus statusFilter\n}\n\nstruct ListClosedWorkflowExecutionsResponse {\n 10: optional list executions\n 20: optional binary nextPageToken\n}\n\nstruct ListWorkflowExecutionsRequest {\n 10: optional string domain\n 20: optional i32 pageSize\n 30: optional binary nextPageToken\n 40: optional string query\n}\n\nstruct ListWorkflowExecutionsResponse {\n 10: optional list executions\n 20: optional binary nextPageToken\n}\n\nstruct ListArchivedWorkflowExecutionsRequest {\n 10: optional string domain\n 20: optional i32 pageSize\n 30: optional binary nextPageToken\n 40: optional string query\n}\n\nstruct ListArchivedWorkflowExecutionsResponse {\n 10: optional list executions\n 20: optional binary nextPageToken\n}\n\nstruct CountWorkflowExecutionsRequest {\n 10: optional string domain\n 20: optional string query\n}\n\nstruct CountWorkflowExecutionsResponse {\n 10: optional i64 count\n}\n\nstruct GetSearchAttributesResponse {\n 10: optional map keys\n}\n\nstruct QueryWorkflowRequest {\n 10: optional string domain\n 20: optional WorkflowExecution execution\n 30: optional WorkflowQuery query\n // QueryRejectCondition can used to reject the query if workflow state does not satisify condition\n 40: optional QueryRejectCondition queryRejectCondition\n 50: optional QueryConsistencyLevel queryConsistencyLevel\n}\n\nstruct QueryRejected {\n 10: optional WorkflowExecutionCloseStatus closeStatus\n}\n\nstruct QueryWorkflowResponse {\n 10: optional binary queryResult\n 20: optional QueryRejected queryRejected\n}\n\nstruct WorkflowQuery {\n 10: optional string queryType\n 20: optional binary queryArgs\n}\n\nstruct ResetStickyTaskListRequest {\n 10: optional string domain\n 20: optional WorkflowExecution execution\n}\n\nstruct ResetStickyTaskListResponse {\n // The reason to keep this response is to allow returning\n // information in the future.\n}\n\nstruct RespondQueryTaskCompletedRequest {\n 10: optional binary taskToken\n 20: optional QueryTaskCompletedType completedType\n 30: optional binary queryResult\n 40: optional string errorMessage\n 50: optional WorkerVersionInfo workerVersionInfo\n}\n\nstruct WorkflowQueryResult {\n 10: optional QueryResultType resultType\n 20: optional binary answer\n 30: optional string errorMessage\n}\n\nstruct DescribeWorkflowExecutionRequest {\n 10: optional string domain\n 20: optional WorkflowExecution execution\n}\n\nstruct PendingActivityInfo {\n 10: optional string activityID\n 20: optional ActivityType activityType\n 30: optional PendingActivityState state\n 40: optional binary heartbeatDetails\n 50: optional i64 (js.type = \"Long\") lastHeartbeatTimestamp\n 60: optional i64 (js.type = \"Long\") lastStartedTimestamp\n 70: optional i32 attempt\n 80: optional i32 maximumAttempts\n 90: optional i64 (js.type = \"Long\") scheduledTimestamp\n 100: optional i64 (js.type = \"Long\") expirationTimestamp\n 110: optional string lastFailureReason\n 120: optional string lastWorkerIdentity\n 130: optional binary lastFailureDetails\n 140: optional string startedWorkerIdentity\n 150: optional i64 (js.type = \"Long\") scheduleID\n}\n\nstruct PendingDecisionInfo {\n 10: optional PendingDecisionState state\n 20: optional i64 (js.type = \"Long\") scheduledTimestamp\n 30: optional i64 (js.type = \"Long\") startedTimestamp\n 40: optional i64 attempt\n 50: optional i64 (js.type = \"Long\") originalScheduledTimestamp\n 60: optional i64 (js.type = \"Long\") scheduleID\n}\n\nstruct PendingChildExecutionInfo {\n 1: optional string domain\n 10: optional string workflowID\n 20: optional string runID\n 30: optional string workflowTypName\n 40: optional i64 (js.type = \"Long\") initiatedID\n 50: optional ParentClosePolicy parentClosePolicy\n}\n\nstruct DescribeWorkflowExecutionResponse {\n 10: optional WorkflowExecutionConfiguration executionConfiguration\n 20: optional WorkflowExecutionInfo workflowExecutionInfo\n 30: optional list pendingActivities\n 40: optional list pendingChildren\n 50: optional PendingDecisionInfo pendingDecision\n}\n\nstruct DescribeTaskListRequest {\n 10: optional string domain\n 20: optional TaskList taskList\n 30: optional TaskListType taskListType\n 40: optional bool includeTaskListStatus\n}\n\nstruct DescribeTaskListResponse {\n 10: optional list pollers\n 20: optional TaskListStatus taskListStatus\n}\n\nstruct GetTaskListsByDomainRequest {\n 10: optional string domainName\n}\n\nstruct GetTaskListsByDomainResponse {\n 10: optional map decisionTaskListMap\n 20: optional map activityTaskListMap\n}\n\nstruct ListTaskListPartitionsRequest {\n 10: optional string domain\n 20: optional TaskList taskList\n}\n\nstruct TaskListPartitionMetadata {\n 10: optional string key\n 20: optional string ownerHostName\n}\n\nstruct ListTaskListPartitionsResponse {\n 10: optional list activityTaskListPartitions\n 20: optional list decisionTaskListPartitions\n}\n\nstruct TaskListStatus {\n 10: optional i64 (js.type = \"Long\") backlogCountHint\n 20: optional i64 (js.type = \"Long\") readLevel\n 30: optional i64 (js.type = \"Long\") ackLevel\n 35: optional double ratePerSecond\n 40: optional TaskIDBlock taskIDBlock\n}\n\nstruct TaskIDBlock {\n 10: optional i64 (js.type = \"Long\") startID\n 20: optional i64 (js.type = \"Long\") endID\n}\n\n//At least one of the parameters needs to be provided\nstruct DescribeHistoryHostRequest {\n 10: optional string hostAddress //ip:port\n 20: optional i32 shardIdForHost\n 30: optional WorkflowExecution executionForHost\n}\n\nstruct RemoveTaskRequest {\n 10: optional i32 shardID\n 20: optional i32 type\n 30: optional i64 (js.type = \"Long\") taskID\n 40: optional i64 (js.type = \"Long\") visibilityTimestamp\n 50: optional string clusterName\n}\n\nstruct CloseShardRequest {\n 10: optional i32 shardID\n}\n\nstruct ResetQueueRequest {\n 10: optional i32 shardID\n 20: optional string clusterName\n 30: optional i32 type\n}\n\nstruct DescribeQueueRequest {\n 10: optional i32 shardID\n 20: optional string clusterName\n 30: optional i32 type\n}\n\nstruct DescribeQueueResponse {\n 10: optional list processingQueueStates\n}\n\nstruct DescribeShardDistributionRequest {\n 10: optional i32 pageSize\n 20: optional i32 pageID\n}\n\nstruct DescribeShardDistributionResponse {\n 10: optional i32 numberOfShards\n\n // ShardID to Address (ip:port) map\n 20: optional map shards\n}\n\nstruct DescribeHistoryHostResponse{\n 10: optional i32 numberOfShards\n 20: optional list shardIDs\n 30: optional DomainCacheInfo domainCache\n 40: optional string shardControllerStatus\n 50: optional string address\n}\n\nstruct DomainCacheInfo{\n 10: optional i64 numOfItemsInCacheByID\n 20: optional i64 numOfItemsInCacheByName\n}\n\nenum TaskListType {\n /*\n * Decision type of tasklist\n */\n Decision,\n /*\n * Activity type of tasklist\n */\n Activity,\n}\n\nstruct PollerInfo {\n // Unix Nano\n 10: optional i64 (js.type = \"Long\") lastAccessTime\n 20: optional string identity\n 30: optional double ratePerSecond\n}\n\nstruct RetryPolicy {\n // Interval of the first retry. If coefficient is 1.0 then it is used for all retries.\n 10: optional i32 initialIntervalInSeconds\n\n // Coefficient used to calculate the next retry interval.\n // The next retry interval is previous interval multiplied by the coefficient.\n // Must be 1 or larger.\n 20: optional double backoffCoefficient\n\n // Maximum interval between retries. Exponential backoff leads to interval increase.\n // This value is the cap of the increase. Default is 100x of initial interval.\n 30: optional i32 maximumIntervalInSeconds\n\n // Maximum number of attempts. When exceeded the retries stop even if not expired yet.\n // Must be 1 or bigger. Default is unlimited.\n 40: optional i32 maximumAttempts\n\n // Non-Retriable errors. Will stop retrying if error matches this list.\n 50: optional list nonRetriableErrorReasons\n\n // Expiration time for the whole retry process.\n 60: optional i32 expirationIntervalInSeconds\n}\n\n// HistoryBranchRange represents a piece of range for a branch.\nstruct HistoryBranchRange{\n // branchID of original branch forked from\n 10: optional string branchID\n // beinning node for the range, inclusive\n 20: optional i64 beginNodeID\n // ending node for the range, exclusive\n 30: optional i64 endNodeID\n}\n\n// For history persistence to serialize/deserialize branch details\nstruct HistoryBranch{\n 10: optional string treeID\n 20: optional string branchID\n 30: optional list ancestors\n}\n\n// VersionHistoryItem contains signal eventID and the corresponding version\nstruct VersionHistoryItem{\n 10: optional i64 (js.type = \"Long\") eventID\n 20: optional i64 (js.type = \"Long\") version\n}\n\n// VersionHistory contains the version history of a branch\nstruct VersionHistory{\n 10: optional binary branchToken\n 20: optional list items\n}\n\n// VersionHistories contains all version histories from all branches\nstruct VersionHistories{\n 10: optional i32 currentVersionHistoryIndex\n 20: optional list histories\n}\n\n// ReapplyEventsRequest is the request for reapply events API\nstruct ReapplyEventsRequest{\n 10: optional string domainName\n 20: optional WorkflowExecution workflowExecution\n 30: optional DataBlob events\n}\n\n// SupportedClientVersions contains the support versions for client library\nstruct SupportedClientVersions{\n 10: optional string goSdk\n 20: optional string javaSdk\n}\n\n// ClusterInfo contains information about cadence cluster\nstruct ClusterInfo{\n 10: optional SupportedClientVersions supportedClientVersions\n}\n\nstruct RefreshWorkflowTasksRequest {\n 10: optional string domain\n 20: optional WorkflowExecution execution\n}\n\nstruct FeatureFlags {\n\t10: optional bool WorkflowExecutionAlreadyCompletedErrorEnabled\n}\n\nenum CrossClusterTaskType {\n StartChildExecution\n CancelExecution\n SignalExecution\n RecordChildWorkflowExecutionComplete\n ApplyParentClosePolicy\n}\n\nenum CrossClusterTaskFailedCause {\n DOMAIN_NOT_ACTIVE\n DOMAIN_NOT_EXISTS\n WORKFLOW_ALREADY_RUNNING\n WORKFLOW_NOT_EXISTS\n WORKFLOW_ALREADY_COMPLETED\n UNCATEGORIZED\n}\n\nenum GetTaskFailedCause {\n SERVICE_BUSY\n TIMEOUT\n SHARD_OWNERSHIP_LOST\n UNCATEGORIZED\n}\n\nstruct CrossClusterTaskInfo {\n 10: optional string domainID\n 20: optional string workflowID\n 30: optional string runID\n 40: optional CrossClusterTaskType taskType\n 50: optional i16 taskState\n 60: optional i64 (js.type = \"Long\") taskID\n 70: optional i64 (js.type = \"Long\") visibilityTimestamp\n}\n\nstruct CrossClusterStartChildExecutionRequestAttributes {\n 10: optional string targetDomainID\n 20: optional string requestID\n 30: optional i64 (js.type = \"Long\") initiatedEventID\n 40: optional StartChildWorkflowExecutionInitiatedEventAttributes initiatedEventAttributes\n // targetRunID is for scheduling first decision task\n // targetWorkflowID is available in initiatedEventAttributes\n 50: optional string targetRunID\n 60: optional map partitionConfig\n}\n\nstruct CrossClusterStartChildExecutionResponseAttributes {\n 10: optional string runID\n}\n\nstruct CrossClusterCancelExecutionRequestAttributes {\n 10: optional string targetDomainID\n 20: optional string targetWorkflowID\n 30: optional string targetRunID\n 40: optional string requestID\n 50: optional i64 (js.type = \"Long\") initiatedEventID\n 60: optional bool childWorkflowOnly\n}\n\nstruct CrossClusterCancelExecutionResponseAttributes {\n}\n\nstruct CrossClusterSignalExecutionRequestAttributes {\n 10: optional string targetDomainID\n 20: optional string targetWorkflowID\n 30: optional string targetRunID\n 40: optional string requestID\n 50: optional i64 (js.type = \"Long\") initiatedEventID\n 60: optional bool childWorkflowOnly\n 70: optional string signalName\n 80: optional binary signalInput\n 90: optional binary control\n}\n\nstruct CrossClusterSignalExecutionResponseAttributes {\n}\n\nstruct CrossClusterRecordChildWorkflowExecutionCompleteRequestAttributes {\n 10: optional string targetDomainID\n 20: optional string targetWorkflowID\n 30: optional string targetRunID\n 40: optional i64 (js.type = \"Long\") initiatedEventID\n 50: optional HistoryEvent completionEvent\n}\n\nstruct CrossClusterRecordChildWorkflowExecutionCompleteResponseAttributes {\n}\n\nstruct ApplyParentClosePolicyAttributes {\n 10: optional string childDomainID\n 20: optional string childWorkflowID\n 30: optional string childRunID\n 40: optional ParentClosePolicy parentClosePolicy\n}\n\nstruct ApplyParentClosePolicyStatus {\n 10: optional bool completed\n 20: optional CrossClusterTaskFailedCause failedCause\n}\n\nstruct ApplyParentClosePolicyRequest {\n 10: optional ApplyParentClosePolicyAttributes child\n 20: optional ApplyParentClosePolicyStatus status\n}\n\nstruct CrossClusterApplyParentClosePolicyRequestAttributes {\n 10: optional list children\n}\n\nstruct ApplyParentClosePolicyResult {\n 10: optional ApplyParentClosePolicyAttributes child\n 20: optional CrossClusterTaskFailedCause failedCause\n}\n\nstruct CrossClusterApplyParentClosePolicyResponseAttributes {\n 10: optional list childrenStatus\n}\n\nstruct CrossClusterTaskRequest {\n 10: optional CrossClusterTaskInfo taskInfo\n 20: optional CrossClusterStartChildExecutionRequestAttributes startChildExecutionAttributes\n 30: optional CrossClusterCancelExecutionRequestAttributes cancelExecutionAttributes\n 40: optional CrossClusterSignalExecutionRequestAttributes signalExecutionAttributes\n 50: optional CrossClusterRecordChildWorkflowExecutionCompleteRequestAttributes recordChildWorkflowExecutionCompleteAttributes\n 60: optional CrossClusterApplyParentClosePolicyRequestAttributes applyParentClosePolicyAttributes\n}\n\nstruct CrossClusterTaskResponse {\n 10: optional i64 (js.type = \"Long\") taskID\n 20: optional CrossClusterTaskType taskType\n 30: optional i16 taskState\n 40: optional CrossClusterTaskFailedCause failedCause\n 50: optional CrossClusterStartChildExecutionResponseAttributes startChildExecutionAttributes\n 60: optional CrossClusterCancelExecutionResponseAttributes cancelExecutionAttributes\n 70: optional CrossClusterSignalExecutionResponseAttributes signalExecutionAttributes\n 80: optional CrossClusterRecordChildWorkflowExecutionCompleteResponseAttributes recordChildWorkflowExecutionCompleteAttributes\n 90: optional CrossClusterApplyParentClosePolicyResponseAttributes applyParentClosePolicyAttributes\n}\n\nstruct GetCrossClusterTasksRequest {\n 10: optional list shardIDs\n 20: optional string targetCluster\n}\n\nstruct GetCrossClusterTasksResponse {\n 10: optional map> tasksByShard\n 20: optional map failedCauseByShard\n}\n\nstruct RespondCrossClusterTasksCompletedRequest {\n 10: optional i32 shardID\n 20: optional string targetCluster\n 30: optional list taskResponses\n 40: optional bool fetchNewTasks\n}\n\nstruct RespondCrossClusterTasksCompletedResponse {\n 10: optional list tasks\n}\n\nenum IsolationGroupState {\n INVALID,\n HEALTHY,\n DRAINED,\n}\n\nstruct IsolationGroupPartition {\n 10: optional string name\n 20: optional IsolationGroupState state\n}\n\nstruct IsolationGroupConfiguration {\n 10: optional list isolationGroups\n}\n\nstruct AsyncWorkflowConfiguration {\n 10: optional bool enabled\n // PredefinedQueueName is the name of the predefined queue in cadence server config's asyncWorkflowQueues\n 20: optional string predefinedQueueName\n // queueType is the type of the queue if predefined_queue_name is not used\n 30: optional string queueType\n // queueConfig is the configuration for the queue if predefined_queue_name is not used\n 40: optional DataBlob queueConfig\n}\n\n/**\n* Any is a logical duplicate of google.protobuf.Any.\n*\n* The intent of the type is the same, but it is not intended to be directly\n* compatible with google.protobuf.Any or any Thrift equivalent - this blob is\n* RPC-type agnostic by design (as the underlying data may be transported over\n* proto or thrift), and the data-bytes may be in any encoding.\n*\n* This is intentionally different from DataBlob, which supports only a handful\n* of known encodings so it can be interpreted everywhere. Any supports literally\n* any contents, and needs to be considered opaque until it is given to something\n* that is expecting it.\n*\n* See ValueType to interpret the contents.\n**/\nstruct Any {\n // Type-string describing value's contents, and intentionally avoiding the\n // name \"type\" as it is often a special term.\n // This should usually be a hard-coded string of some kind.\n 10: optional string ValueType\n // Arbitrarily-encoded bytes, to be deserialized by a runtime implementation.\n // The contents are described by ValueType.\n 20: optional binary Value\n}\n\nstruct AutoConfigHint {\n 10: optional bool enableAutoConfig\n 20: optional i64 pollerWaitTimeInMs\n}\n" diff --git a/go.mod b/go.mod index 904b7df74..b8c7bd3f6 100644 --- a/go.mod +++ b/go.mod @@ -15,7 +15,7 @@ require ( github.com/robfig/cron v1.2.0 github.com/stretchr/testify v1.9.0 github.com/uber-go/tally v3.3.15+incompatible - github.com/uber/cadence-idl v0.0.0-20240723221048-0482c040f91d + github.com/uber/cadence-idl v0.0.0-20241126065313-57bd6876d48f github.com/uber/jaeger-client-go v2.22.1+incompatible github.com/uber/tchannel-go v1.32.1 go.uber.org/atomic v1.11.0 diff --git a/go.sum b/go.sum index 8e0160c30..6767fd226 100644 --- a/go.sum +++ b/go.sum @@ -201,8 +201,8 @@ github.com/uber-go/mapdecode v1.0.0/go.mod h1:b5nP15FwXTgpjTjeA9A2uTHXV5UJCl4arw github.com/uber-go/tally v3.3.12+incompatible/go.mod h1:YDTIBxdXyOU/sCWilKB4bgyufu1cEi0jdVnRdxvjnmU= github.com/uber-go/tally v3.3.15+incompatible h1:9hLSgNBP28CjIaDmAuRTq9qV+UZY+9PcvAkXO4nNMwg= github.com/uber-go/tally v3.3.15+incompatible/go.mod h1:YDTIBxdXyOU/sCWilKB4bgyufu1cEi0jdVnRdxvjnmU= -github.com/uber/cadence-idl v0.0.0-20240723221048-0482c040f91d h1:1dX3Pr0wEW0TQFhj0lwCJPuYUtd7pOhScbiiwNiL1Tw= -github.com/uber/cadence-idl v0.0.0-20240723221048-0482c040f91d/go.mod h1:oyUK7GCNCRHCCyWyzifSzXpVrRYVBbAMHAzF5dXiKws= +github.com/uber/cadence-idl v0.0.0-20241126065313-57bd6876d48f h1:U2nI6IKh80rrueDb2G3wuhCkCHYCsLp9EFBazeTs7Dk= +github.com/uber/cadence-idl v0.0.0-20241126065313-57bd6876d48f/go.mod h1:oyUK7GCNCRHCCyWyzifSzXpVrRYVBbAMHAzF5dXiKws= github.com/uber/jaeger-client-go v2.22.1+incompatible h1:NHcubEkVbahf9t3p75TOCR83gdUHXjRJvjoBh1yACsM= github.com/uber/jaeger-client-go v2.22.1+incompatible/go.mod h1:WVhlPFC8FDjOFMMWRy2pZqQJSXxYSwNYOkTr/Z6d3Kk= github.com/uber/jaeger-lib v2.2.0+incompatible/go.mod h1:ComeNDZlWwrWnDv8aPp0Ba6+uUTzImX/AauajbLI56U= diff --git a/idls b/idls index 0482c040f..57bd6876d 160000 --- a/idls +++ b/idls @@ -1 +1 @@ -Subproject commit 0482c040f91d17be35cccee2bc1cf883f7344992 +Subproject commit 57bd6876d48fe25d17d65a4035068366ba1ec174 diff --git a/internal/common/auth/service_wrapper.go b/internal/common/auth/service_wrapper.go index c11421a9a..b4b352326 100644 --- a/internal/common/auth/service_wrapper.go +++ b/internal/common/auth/service_wrapper.go @@ -113,6 +113,16 @@ func (w *workflowServiceAuthWrapper) DescribeWorkflowExecution(ctx context.Conte return result, err } +func (w *workflowServiceAuthWrapper) DiagnoseWorkflowExecution(ctx context.Context, request *shared.DiagnoseWorkflowExecutionRequest, opts ...yarpc.CallOption) (*shared.DiagnoseWorkflowExecutionResponse, error) { + tokenHeader, err := w.getYarpcJWTHeader() + if err != nil { + return nil, err + } + opts = append(opts, *tokenHeader) + result, err := w.service.DiagnoseWorkflowExecution(ctx, request, opts...) + return result, err +} + func (w *workflowServiceAuthWrapper) GetWorkflowExecutionHistory(ctx context.Context, request *shared.GetWorkflowExecutionHistoryRequest, opts ...yarpc.CallOption) (*shared.GetWorkflowExecutionHistoryResponse, error) { tokenHeader, err := w.getYarpcJWTHeader() if err != nil { diff --git a/internal/common/auth/service_wrapper_test.go b/internal/common/auth/service_wrapper_test.go index 840f0dddd..6126e3186 100644 --- a/internal/common/auth/service_wrapper_test.go +++ b/internal/common/auth/service_wrapper_test.go @@ -140,6 +140,22 @@ func (s *serviceWrapperSuite) TestDescribeWorkflowExecutionInvalidToken() { s.EqualError(err, "error") } +func (s *serviceWrapperSuite) TestDiagnoseWorkflowExecutionValidToken() { + s.Service.EXPECT().DiagnoseWorkflowExecution(gomock.Any(), gomock.Any(), gomock.Any()).Times(1) + sw := NewWorkflowServiceWrapper(s.Service, s.AuthProvider) + ctx, _ := thrift.NewContext(time.Minute) + _, err := sw.DiagnoseWorkflowExecution(ctx, &shared.DiagnoseWorkflowExecutionRequest{}) + s.NoError(err) +} + +func (s *serviceWrapperSuite) TestDiagnoseWorkflowExecutionInvalidToken() { + s.AuthProvider = newJWTAuthIncorrect() + sw := NewWorkflowServiceWrapper(s.Service, s.AuthProvider) + ctx, _ := thrift.NewContext(time.Minute) + _, err := sw.DiagnoseWorkflowExecution(ctx, &shared.DiagnoseWorkflowExecutionRequest{}) + s.EqualError(err, "error") +} + func (s *serviceWrapperSuite) TestGetWorkflowExecutionHistoryValidToken() { s.Service.EXPECT().GetWorkflowExecutionHistory(gomock.Any(), gomock.Any(), gomock.Any()).Times(1) sw := NewWorkflowServiceWrapper(s.Service, s.AuthProvider) diff --git a/internal/common/isolationgroup/service_wrapper.go b/internal/common/isolationgroup/service_wrapper.go index 0ad7072b0..b04bd8a9b 100644 --- a/internal/common/isolationgroup/service_wrapper.go +++ b/internal/common/isolationgroup/service_wrapper.go @@ -73,6 +73,12 @@ func (w *workflowServiceIsolationGroupWrapper) DescribeWorkflowExecution(ctx con return result, err } +func (w *workflowServiceIsolationGroupWrapper) DiagnoseWorkflowExecution(ctx context.Context, request *shared.DiagnoseWorkflowExecutionRequest, opts ...yarpc.CallOption) (*shared.DiagnoseWorkflowExecutionResponse, error) { + opts = append(opts, w.getIsolationGroupIdentifier()) + result, err := w.service.DiagnoseWorkflowExecution(ctx, request, opts...) + return result, err +} + func (w *workflowServiceIsolationGroupWrapper) GetWorkflowExecutionHistory(ctx context.Context, request *shared.GetWorkflowExecutionHistoryRequest, opts ...yarpc.CallOption) (*shared.GetWorkflowExecutionHistoryResponse, error) { opts = append(opts, w.getIsolationGroupIdentifier()) result, err := w.service.GetWorkflowExecutionHistory(ctx, request, opts...) diff --git a/internal/common/isolationgroup/service_wrapper_test.go b/internal/common/isolationgroup/service_wrapper_test.go index d299268eb..8866c3fea 100644 --- a/internal/common/isolationgroup/service_wrapper_test.go +++ b/internal/common/isolationgroup/service_wrapper_test.go @@ -86,6 +86,15 @@ func TestAPICalls(t *testing.T) { }, expectedResponse: &shared.DescribeWorkflowExecutionResponse{}, }, + "DiagnoseWorkflowExecution": { + action: func(ctx context.Context, sw workflowserviceclient.Interface) (interface{}, error) { + return sw.DiagnoseWorkflowExecution(ctx, &shared.DiagnoseWorkflowExecutionRequest{}) + }, + affordance: func(m *workflowservicetest.MockClient) { + m.EXPECT().DiagnoseWorkflowExecution(gomock.Any(), gomock.Any(), gomock.Any()).Times(1).Return(&shared.DiagnoseWorkflowExecutionResponse{}, nil) + }, + expectedResponse: &shared.DiagnoseWorkflowExecutionResponse{}, + }, "ListOpenWorkflowExecutions": { action: func(ctx context.Context, sw workflowserviceclient.Interface) (interface{}, error) { return sw.ListOpenWorkflowExecutions(ctx, &shared.ListOpenWorkflowExecutionsRequest{}) diff --git a/internal/common/metrics/service_wrapper.go b/internal/common/metrics/service_wrapper.go index 5a663598a..85486a6d0 100644 --- a/internal/common/metrics/service_wrapper.go +++ b/internal/common/metrics/service_wrapper.go @@ -85,6 +85,7 @@ const ( scopeNameDescribeTaskList = CadenceMetricsPrefix + "DescribeTaskList" scopeNameRespondQueryTaskCompleted = CadenceMetricsPrefix + "RespondQueryTaskCompleted" scopeNameDescribeWorkflowExecution = CadenceMetricsPrefix + "DescribeWorkflowExecution" + scopeNameDiagnoseWorkflowExecution = CadenceMetricsPrefix + "DiagnoseWorkflowExecution" scopeNameResetStickyTaskList = CadenceMetricsPrefix + "ResetStickyTaskList" scopeNameGetSearchAttributes = CadenceMetricsPrefix + "GetSearchAttributes" scopeNameListTaskListPartitions = CadenceMetricsPrefix + "ListTaskListPartitions" @@ -164,6 +165,13 @@ func (w *workflowServiceMetricsWrapper) DescribeWorkflowExecution(ctx context.Co return result, err } +func (w *workflowServiceMetricsWrapper) DiagnoseWorkflowExecution(ctx context.Context, request *shared.DiagnoseWorkflowExecutionRequest, opts ...yarpc.CallOption) (*shared.DiagnoseWorkflowExecutionResponse, error) { + scope := w.getOperationScope(scopeNameDiagnoseWorkflowExecution) + result, err := w.service.DiagnoseWorkflowExecution(ctx, request, opts...) + scope.handleError(err) + return result, err +} + func (w *workflowServiceMetricsWrapper) GetWorkflowExecutionHistory(ctx context.Context, request *shared.GetWorkflowExecutionHistoryRequest, opts ...yarpc.CallOption) (*shared.GetWorkflowExecutionHistoryResponse, error) { scope := w.getOperationScope(scopeNameGetWorkflowExecutionHistory) result, err := w.service.GetWorkflowExecutionHistory(ctx, request, opts...) diff --git a/internal/compatibility/adapter.go b/internal/compatibility/adapter.go index 93846088c..62cbe2e71 100644 --- a/internal/compatibility/adapter.go +++ b/internal/compatibility/adapter.go @@ -74,6 +74,11 @@ func (a thrift2protoAdapter) DescribeWorkflowExecution(ctx context.Context, requ return thrift.DescribeWorkflowExecutionResponse(response), thrift.Error(err) } +func (a thrift2protoAdapter) DiagnoseWorkflowExecution(ctx context.Context, request *shared.DiagnoseWorkflowExecutionRequest, opts ...yarpc.CallOption) (*shared.DiagnoseWorkflowExecutionResponse, error) { + response, err := a.workflow.DiagnoseWorkflowExecution(ctx, proto.DiagnoseWorkflowExecutionRequest(request), opts...) + return thrift.DiagnoseWorkflowExecutionResponse(response), thrift.Error(err) +} + func (a thrift2protoAdapter) GetClusterInfo(ctx context.Context, opts ...yarpc.CallOption) (*shared.ClusterInfo, error) { response, err := a.workflow.GetClusterInfo(ctx, &apiv1.GetClusterInfoRequest{}, opts...) return thrift.GetClusterInfoResponse(response), thrift.Error(err) @@ -328,6 +333,10 @@ func (a workflowAPIthriftAdapter) DescribeWorkflowExecution(ctx context.Context, response, err := a.service.DescribeWorkflowExecution(ctx, thrift.DescribeWorkflowExecutionRequest(request), opts...) return proto.DescribeWorkflowExecutionResponse(response), proto.Error(err) } +func (a workflowAPIthriftAdapter) DiagnoseWorkflowExecution(ctx context.Context, request *apiv1.DiagnoseWorkflowExecutionRequest, opts ...yarpc.CallOption) (*apiv1.DiagnoseWorkflowExecutionResponse, error) { + response, err := a.service.DiagnoseWorkflowExecution(ctx, thrift.DiagnoseWorkflowExecutionRequest(request), opts...) + return proto.DiagnoseWorkflowExecutionResponse(response), proto.Error(err) +} func (a workflowAPIthriftAdapter) QueryWorkflow(ctx context.Context, request *apiv1.QueryWorkflowRequest, opts ...yarpc.CallOption) (*apiv1.QueryWorkflowResponse, error) { response, err := a.service.QueryWorkflow(ctx, thrift.QueryWorkflowRequest(request), opts...) return proto.QueryWorkflowResponse(response), proto.Error(err) diff --git a/internal/compatibility/api_test.go b/internal/compatibility/api_test.go index 161408ac8..38a5cb2fe 100644 --- a/internal/compatibility/api_test.go +++ b/internal/compatibility/api_test.go @@ -217,6 +217,16 @@ func TestDescribeWorkflowExecutionResponse(t *testing.T) { assert.Equal(t, item, proto.DescribeWorkflowExecutionResponse(thrift.DescribeWorkflowExecutionResponse(item))) } } +func TestDiagnoseWorkflowExecutionRequest(t *testing.T) { + for _, item := range []*apiv1.DiagnoseWorkflowExecutionRequest{nil, {}, &testdata.DiagnoseWorkflowExecutionRequest} { + assert.Equal(t, item, proto.DiagnoseWorkflowExecutionRequest(thrift.DiagnoseWorkflowExecutionRequest(item))) + } +} +func TestDiagnoseWorkflowExecutionResponse(t *testing.T) { + for _, item := range []*apiv1.DiagnoseWorkflowExecutionResponse{nil, {}, &testdata.DiagnoseWorkflowExecutionResponse} { + assert.Equal(t, item, proto.DiagnoseWorkflowExecutionResponse(thrift.DiagnoseWorkflowExecutionResponse(item))) + } +} func TestExternalWorkflowExecutionCancelRequestedEventAttributes(t *testing.T) { for _, item := range []*apiv1.ExternalWorkflowExecutionCancelRequestedEventAttributes{nil, {}, &testdata.ExternalWorkflowExecutionCancelRequestedEventAttributes} { assert.Equal(t, item, proto.ExternalWorkflowExecutionCancelRequestedEventAttributes(thrift.ExternalWorkflowExecutionCancelRequestedEventAttributes(item))) diff --git a/internal/compatibility/proto/request.go b/internal/compatibility/proto/request.go index d3b6b59d4..495fb8a0e 100644 --- a/internal/compatibility/proto/request.go +++ b/internal/compatibility/proto/request.go @@ -81,6 +81,17 @@ func DescribeWorkflowExecutionRequest(t *shared.DescribeWorkflowExecutionRequest } } +func DiagnoseWorkflowExecutionRequest(t *shared.DiagnoseWorkflowExecutionRequest) *apiv1.DiagnoseWorkflowExecutionRequest { + if t == nil { + return nil + } + return &apiv1.DiagnoseWorkflowExecutionRequest{ + Domain: t.GetDomain(), + WorkflowExecution: WorkflowExecution(t.GetWorkflowExecution()), + Identity: t.GetIdentity(), + } +} + func GetWorkflowExecutionHistoryRequest(t *shared.GetWorkflowExecutionHistoryRequest) *apiv1.GetWorkflowExecutionHistoryRequest { if t == nil { return nil diff --git a/internal/compatibility/proto/response.go b/internal/compatibility/proto/response.go index c57e473a9..64698e4d9 100644 --- a/internal/compatibility/proto/response.go +++ b/internal/compatibility/proto/response.go @@ -89,6 +89,16 @@ func DescribeWorkflowExecutionResponse(t *shared.DescribeWorkflowExecutionRespon } } +func DiagnoseWorkflowExecutionResponse(t *shared.DiagnoseWorkflowExecutionResponse) *apiv1.DiagnoseWorkflowExecutionResponse { + if t == nil { + return nil + } + return &apiv1.DiagnoseWorkflowExecutionResponse{ + Domain: t.GetDomain(), + DiagnosticWorkflowExecution: WorkflowExecution(t.DiagnosticWorkflowExecution), + } +} + func GetClusterInfoResponse(t *shared.ClusterInfo) *apiv1.GetClusterInfoResponse { if t == nil { return nil diff --git a/internal/compatibility/testdata/service.go b/internal/compatibility/testdata/service.go index df1534cc8..39658e0a2 100644 --- a/internal/compatibility/testdata/service.go +++ b/internal/compatibility/testdata/service.go @@ -382,6 +382,15 @@ var ( PendingChildren: PendingChildExecutionInfoArray, PendingDecision: &PendingDecisionInfo, } + DiagnoseWorkflowExecutionRequest = apiv1.DiagnoseWorkflowExecutionRequest{ + Domain: DomainName, + WorkflowExecution: &WorkflowExecution, + Identity: Identity, + } + DiagnoseWorkflowExecutionResponse = apiv1.DiagnoseWorkflowExecutionResponse{ + Domain: DomainName, + DiagnosticWorkflowExecution: &WorkflowExecution, + } QueryWorkflowRequest = apiv1.QueryWorkflowRequest{ Domain: DomainName, WorkflowExecution: &WorkflowExecution, diff --git a/internal/compatibility/thrift/request.go b/internal/compatibility/thrift/request.go index 460504a06..a15de3949 100644 --- a/internal/compatibility/thrift/request.go +++ b/internal/compatibility/thrift/request.go @@ -82,6 +82,17 @@ func DescribeWorkflowExecutionRequest(t *apiv1.DescribeWorkflowExecutionRequest) } } +func DiagnoseWorkflowExecutionRequest(t *apiv1.DiagnoseWorkflowExecutionRequest) *shared.DiagnoseWorkflowExecutionRequest { + if t == nil { + return nil + } + return &shared.DiagnoseWorkflowExecutionRequest{ + Domain: &t.Domain, + WorkflowExecution: WorkflowExecution(t.WorkflowExecution), + Identity: &t.Identity, + } +} + func GetWorkflowExecutionHistoryRequest(t *apiv1.GetWorkflowExecutionHistoryRequest) *shared.GetWorkflowExecutionHistoryRequest { if t == nil { return nil diff --git a/internal/compatibility/thrift/response.go b/internal/compatibility/thrift/response.go index 7f24d7364..89c585f5b 100644 --- a/internal/compatibility/thrift/response.go +++ b/internal/compatibility/thrift/response.go @@ -89,6 +89,16 @@ func DescribeWorkflowExecutionResponse(t *apiv1.DescribeWorkflowExecutionRespons } } +func DiagnoseWorkflowExecutionResponse(t *apiv1.DiagnoseWorkflowExecutionResponse) *shared.DiagnoseWorkflowExecutionResponse { + if t == nil { + return nil + } + return &shared.DiagnoseWorkflowExecutionResponse{ + Domain: Domain(t.Domain), + DiagnosticWorkflowExecution: WorkflowExecution(t.DiagnosticWorkflowExecution), + } +} + func GetClusterInfoResponse(t *apiv1.GetClusterInfoResponse) *shared.ClusterInfo { if t == nil { return nil @@ -200,6 +210,7 @@ func PollForActivityTaskResponse(t *apiv1.PollForActivityTaskResponse) *shared.P WorkflowType: WorkflowType(t.WorkflowType), WorkflowDomain: &t.WorkflowDomain, Header: Header(t.Header), + AutoConfigHint: AutoConfigHint(t.AutoConfigHint), } } @@ -224,6 +235,7 @@ func PollForDecisionTaskResponse(t *apiv1.PollForDecisionTaskResponse) *shared.P Queries: WorkflowQueryMap(t.Queries), NextEventId: &t.NextEventId, TotalHistoryBytes: &t.TotalHistoryBytes, + AutoConfigHint: AutoConfigHint(t.AutoConfigHint), } } diff --git a/internal/compatibility/thrift/types.go b/internal/compatibility/thrift/types.go index 79a370fea..616c76a56 100644 --- a/internal/compatibility/thrift/types.go +++ b/internal/compatibility/thrift/types.go @@ -41,6 +41,13 @@ func Payload(p *apiv1.Payload) []byte { return p.Data } +func Domain(domain string) *string { + if domain == "" { + return nil + } + return &domain +} + func FailureReason(failure *apiv1.Failure) *string { if failure == nil { return nil @@ -88,6 +95,16 @@ func ActivityType(t *apiv1.ActivityType) *shared.ActivityType { } } +func AutoConfigHint(t *apiv1.AutoConfigHint) *shared.AutoConfigHint { + if t == nil { + return nil + } + return &shared.AutoConfigHint{ + EnableAutoConfig: &t.EnableAutoConfig, + PollerWaitTimeInMs: &t.PollerWaitTimeInMs, + } +} + func WorkflowType(t *apiv1.WorkflowType) *shared.WorkflowType { if t == nil { return nil