diff --git a/.gen/go/admin/admin.go b/.gen/go/admin/admin.go index d49bc6849ba..9929d0300fb 100644 --- a/.gen/go/admin/admin.go +++ b/.gen/go/admin/admin.go @@ -3900,7 +3900,7 @@ var ThriftModule = &thriftreflect.ThriftModule{ Name: "admin", Package: "github.com/uber/cadence/.gen/go/admin", FilePath: "admin.thrift", - SHA1: "0e97243798cf3b30b092493f7ed672e21c0083b8", + SHA1: "efb17c9e45fd04ca6f6087ed46f9a15c97e3e8cf", Includes: []*thriftreflect.ThriftModule{ replicator.ThriftModule, shared.ThriftModule, @@ -3908,7 +3908,7 @@ var ThriftModule = &thriftreflect.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\nnamespace java com.uber.cadence.admin\n\ninclude \"shared.thrift\"\ninclude \"replicator.thrift\"\n\n/**\n* AdminService provides advanced APIs for debugging and analysis with admin privilege\n**/\nservice AdminService {\n /**\n * DescribeWorkflowExecution returns information about the internal states of workflow execution.\n **/\n DescribeWorkflowExecutionResponse DescribeWorkflowExecution(1: DescribeWorkflowExecutionRequest request)\n throws (\n 1: shared.BadRequestError badRequestError,\n 2: shared.InternalServiceError internalServiceError,\n 3: shared.EntityNotExistsError entityNotExistError,\n 4: shared.AccessDeniedError accessDeniedError,\n )\n\n /**\n * DescribeShardDistribution returns information about history shards within the cluster\n **/\n shared.DescribeShardDistributionResponse DescribeShardDistribution(1: shared.DescribeShardDistributionRequest request)\n throws (\n 1: shared.InternalServiceError internalServiceError,\n )\n\n /**\n * DescribeHistoryHost returns information about the internal states of a history host\n **/\n shared.DescribeHistoryHostResponse DescribeHistoryHost(1: shared.DescribeHistoryHostRequest request)\n throws (\n 1: shared.BadRequestError badRequestError,\n 2: shared.InternalServiceError internalServiceError,\n 3: shared.AccessDeniedError accessDeniedError,\n )\n\n void CloseShard(1: shared.CloseShardRequest request)\n throws (\n 1: shared.BadRequestError badRequestError,\n 2: shared.InternalServiceError internalServiceError,\n 3: shared.AccessDeniedError accessDeniedError,\n )\n\n void RemoveTask(1: shared.RemoveTaskRequest request)\n throws (\n 1: shared.BadRequestError badRequestError,\n 2: shared.InternalServiceError internalServiceError,\n 3: shared.AccessDeniedError accessDeniedError,\n )\n\n void ResetQueue(1: shared.ResetQueueRequest request)\n throws (\n 1: shared.BadRequestError badRequestError,\n 2: shared.InternalServiceError internalServiceError,\n 3: shared.AccessDeniedError accessDeniedError,\n )\n\n shared.DescribeQueueResponse DescribeQueue(1: shared.DescribeQueueRequest request)\n throws (\n 1: shared.BadRequestError badRequestError,\n 2: shared.InternalServiceError internalServiceError,\n 3: shared.AccessDeniedError accessDeniedError,\n )\n\n /**\n * Returns the raw history of specified workflow execution. It fails with 'EntityNotExistError' if speficied workflow\n * execution in unknown to the service.\n * StartEventId defines the beginning of the event to fetch. The first event is inclusive.\n * EndEventId and EndEventVersion defines the end of the event to fetch. The end event is exclusive.\n **/\n GetWorkflowExecutionRawHistoryV2Response GetWorkflowExecutionRawHistoryV2(1: GetWorkflowExecutionRawHistoryV2Request getRequest)\n throws (\n 1: shared.BadRequestError badRequestError,\n 2: shared.InternalServiceError internalServiceError,\n 3: shared.EntityNotExistsError entityNotExistError,\n 4: shared.ServiceBusyError serviceBusyError,\n )\n\n replicator.GetReplicationMessagesResponse GetReplicationMessages(1: replicator.GetReplicationMessagesRequest request)\n throws (\n 1: shared.BadRequestError badRequestError,\n 3: shared.LimitExceededError limitExceededError,\n 4: shared.ServiceBusyError serviceBusyError,\n 5: shared.ClientVersionNotSupportedError clientVersionNotSupportedError,\n )\n\n replicator.GetDomainReplicationMessagesResponse GetDomainReplicationMessages(1: replicator.GetDomainReplicationMessagesRequest request)\n throws (\n 1: shared.BadRequestError badRequestError,\n 3: shared.LimitExceededError limitExceededError,\n 4: shared.ServiceBusyError serviceBusyError,\n 5: shared.ClientVersionNotSupportedError clientVersionNotSupportedError,\n )\n\n replicator.GetDLQReplicationMessagesResponse GetDLQReplicationMessages(1: replicator.GetDLQReplicationMessagesRequest request)\n throws (\n 1: shared.BadRequestError badRequestError,\n 2: shared.ServiceBusyError serviceBusyError,\n )\n\n /**\n * ReapplyEvents applies stale events to the current workflow and current run\n **/\n void ReapplyEvents(1: shared.ReapplyEventsRequest reapplyEventsRequest)\n throws (\n 1: shared.BadRequestError badRequestError,\n 3: shared.DomainNotActiveError domainNotActiveError,\n 4: shared.LimitExceededError limitExceededError,\n 5: shared.ServiceBusyError serviceBusyError,\n 6: shared.EntityNotExistsError entityNotExistError,\n )\n\n /**\n * AddSearchAttribute whitelist search attribute in request.\n **/\n void AddSearchAttribute(1: AddSearchAttributeRequest request)\n throws (\n 1: shared.BadRequestError badRequestError,\n 2: shared.InternalServiceError internalServiceError,\n 3: shared.ServiceBusyError serviceBusyError,\n )\n\n /**\n * DescribeCluster returns information about cadence cluster\n **/\n DescribeClusterResponse DescribeCluster()\n throws (\n 1: shared.InternalServiceError internalServiceError,\n 2: shared.ServiceBusyError serviceBusyError,\n )\n\n /**\n * ReadDLQMessages returns messages from DLQ\n **/\n replicator.ReadDLQMessagesResponse ReadDLQMessages(1: replicator.ReadDLQMessagesRequest request)\n throws (\n 1: shared.BadRequestError badRequestError,\n 2: shared.InternalServiceError internalServiceError,\n 3: shared.ServiceBusyError serviceBusyError,\n 4: shared.EntityNotExistsError entityNotExistError,\n )\n\n /**\n * PurgeDLQMessages purges messages from DLQ\n **/\n void PurgeDLQMessages(1: replicator.PurgeDLQMessagesRequest request)\n throws (\n 1: shared.BadRequestError badRequestError,\n 2: shared.InternalServiceError internalServiceError,\n 3: shared.ServiceBusyError serviceBusyError,\n 4: shared.EntityNotExistsError entityNotExistError,\n )\n\n /**\n * MergeDLQMessages merges messages from DLQ\n **/\n replicator.MergeDLQMessagesResponse MergeDLQMessages(1: replicator.MergeDLQMessagesRequest request)\n throws (\n 1: shared.BadRequestError badRequestError,\n 2: shared.InternalServiceError internalServiceError,\n 3: shared.ServiceBusyError serviceBusyError,\n 4: shared.EntityNotExistsError entityNotExistError,\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 /**\n * ResendReplicationTasks requests replication tasks from remote cluster and apply tasks to current cluster\n **/\n void ResendReplicationTasks(1: ResendReplicationTasksRequest request)\n throws (\n 1: shared.BadRequestError badRequestError,\n 2: shared.ServiceBusyError serviceBusyError,\n 3: shared.EntityNotExistsError entityNotExistError,\n )\n}\n\nstruct DescribeWorkflowExecutionRequest {\n 10: optional string domain\n 20: optional shared.WorkflowExecution execution\n}\n\nstruct DescribeWorkflowExecutionResponse {\n 10: optional string shardId\n 20: optional string historyAddr\n 40: optional string mutableStateInCache\n 50: optional string mutableStateInDatabase\n}\n\n/**\n * StartEventId defines the beginning of the event to fetch. The first event is exclusive.\n * EndEventId and EndEventVersion defines the end of the event to fetch. The end event is exclusive.\n **/\nstruct GetWorkflowExecutionRawHistoryV2Request {\n 10: optional string domain\n 20: optional shared.WorkflowExecution execution\n 30: optional i64 (js.type = \"Long\") startEventId\n 40: optional i64 (js.type = \"Long\") startEventVersion\n 50: optional i64 (js.type = \"Long\") endEventId\n 60: optional i64 (js.type = \"Long\") endEventVersion\n 70: optional i32 maximumPageSize\n 80: optional binary nextPageToken\n}\n\nstruct GetWorkflowExecutionRawHistoryV2Response {\n 10: optional binary nextPageToken\n 20: optional list historyBatches\n 30: optional shared.VersionHistory versionHistory\n}\n\nstruct AddSearchAttributeRequest {\n 10: optional map searchAttribute\n 20: optional string securityToken\n}\n\nstruct HostInfo {\n 10: optional string Identity\n}\n\nstruct RingInfo {\n 10: optional string role\n 20: optional i32 memberCount\n 30: optional list members\n}\n\nstruct MembershipInfo {\n 10: optional HostInfo currentHost\n 20: optional list reachableMembers\n 30: optional list rings\n}\n\nstruct PersistenceSetting {\n 10: optional string key\n 20: optional string value\n}\n\nstruct PersistenceFeature {\n 10: optional string key\n 20: optional bool enabled\n}\n\nstruct PersistenceInfo {\n 10: optional string backend\n 20: optional list settings\n 30: optional list features\n}\n\nstruct DescribeClusterResponse {\n 10: optional shared.SupportedClientVersions supportedClientVersions\n 20: optional MembershipInfo membershipInfo\n 30: optional map persistenceInfo\n}\n\nstruct ResendReplicationTasksRequest {\n 10: optional string domainID\n 20: optional string workflowID\n 30: optional string runID\n 40: optional string remoteCluster\n 50: optional i64 (js.type = \"Long\") startEventID\n 60: optional i64 (js.type = \"Long\") startVersion\n 70: optional i64 (js.type = \"Long\") endEventID\n 80: optional i64 (js.type = \"Long\") endVersion\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.admin\n\ninclude \"shared.thrift\"\ninclude \"replicator.thrift\"\n\n/**\n* AdminService provides advanced APIs for debugging and analysis with admin privilege\n**/\nservice AdminService {\n /**\n * DescribeWorkflowExecution returns information about the internal states of workflow execution.\n **/\n DescribeWorkflowExecutionResponse DescribeWorkflowExecution(1: DescribeWorkflowExecutionRequest request)\n throws (\n 1: shared.BadRequestError badRequestError,\n 2: shared.InternalServiceError internalServiceError,\n 3: shared.EntityNotExistsError entityNotExistError,\n 4: shared.AccessDeniedError accessDeniedError,\n )\n\n /**\n * DescribeShardDistribution returns information about history shards within the cluster\n **/\n shared.DescribeShardDistributionResponse DescribeShardDistribution(1: shared.DescribeShardDistributionRequest request)\n throws (\n 1: shared.InternalServiceError internalServiceError,\n )\n\n /**\n * DescribeHistoryHost returns information about the internal states of a history host\n **/\n shared.DescribeHistoryHostResponse DescribeHistoryHost(1: shared.DescribeHistoryHostRequest request)\n throws (\n 1: shared.BadRequestError badRequestError,\n 2: shared.InternalServiceError internalServiceError,\n 3: shared.AccessDeniedError accessDeniedError,\n )\n\n void CloseShard(1: shared.CloseShardRequest request)\n throws (\n 1: shared.BadRequestError badRequestError,\n 2: shared.InternalServiceError internalServiceError,\n 3: shared.AccessDeniedError accessDeniedError,\n )\n\n void RemoveTask(1: shared.RemoveTaskRequest request)\n throws (\n 1: shared.BadRequestError badRequestError,\n 2: shared.InternalServiceError internalServiceError,\n 3: shared.AccessDeniedError accessDeniedError,\n )\n\n void ResetQueue(1: shared.ResetQueueRequest request)\n throws (\n 1: shared.BadRequestError badRequestError,\n 2: shared.InternalServiceError internalServiceError,\n 3: shared.AccessDeniedError accessDeniedError,\n )\n\n shared.DescribeQueueResponse DescribeQueue(1: shared.DescribeQueueRequest request)\n throws (\n 1: shared.BadRequestError badRequestError,\n 2: shared.InternalServiceError internalServiceError,\n 3: shared.AccessDeniedError accessDeniedError,\n )\n\n /**\n * Returns the raw history of specified workflow execution. It fails with 'EntityNotExistError' if speficied workflow\n * execution in unknown to the service.\n * StartEventId defines the beginning of the event to fetch. The first event is inclusive.\n * EndEventId and EndEventVersion defines the end of the event to fetch. The end event is exclusive.\n **/\n GetWorkflowExecutionRawHistoryV2Response GetWorkflowExecutionRawHistoryV2(1: GetWorkflowExecutionRawHistoryV2Request getRequest)\n throws (\n 1: shared.BadRequestError badRequestError,\n 2: shared.InternalServiceError internalServiceError,\n 3: shared.EntityNotExistsError entityNotExistError,\n 4: shared.ServiceBusyError serviceBusyError,\n )\n\n replicator.GetReplicationMessagesResponse GetReplicationMessages(1: replicator.GetReplicationMessagesRequest request)\n throws (\n 1: shared.BadRequestError badRequestError,\n 3: shared.LimitExceededError limitExceededError,\n 4: shared.ServiceBusyError serviceBusyError,\n 5: shared.ClientVersionNotSupportedError clientVersionNotSupportedError,\n )\n\n replicator.GetDomainReplicationMessagesResponse GetDomainReplicationMessages(1: replicator.GetDomainReplicationMessagesRequest request)\n throws (\n 1: shared.BadRequestError badRequestError,\n 3: shared.LimitExceededError limitExceededError,\n 4: shared.ServiceBusyError serviceBusyError,\n 5: shared.ClientVersionNotSupportedError clientVersionNotSupportedError,\n )\n\n replicator.GetDLQReplicationMessagesResponse GetDLQReplicationMessages(1: replicator.GetDLQReplicationMessagesRequest request)\n throws (\n 1: shared.BadRequestError badRequestError,\n 2: shared.ServiceBusyError serviceBusyError,\n )\n\n /**\n * ReapplyEvents applies stale events to the current workflow and current run\n **/\n void ReapplyEvents(1: shared.ReapplyEventsRequest reapplyEventsRequest)\n throws (\n 1: shared.BadRequestError badRequestError,\n 3: shared.DomainNotActiveError domainNotActiveError,\n 4: shared.LimitExceededError limitExceededError,\n 5: shared.ServiceBusyError serviceBusyError,\n 6: shared.EntityNotExistsError entityNotExistError,\n )\n\n /**\n * AddSearchAttribute whitelist search attribute in request.\n **/\n void AddSearchAttribute(1: AddSearchAttributeRequest request)\n throws (\n 1: shared.BadRequestError badRequestError,\n 2: shared.InternalServiceError internalServiceError,\n 3: shared.ServiceBusyError serviceBusyError,\n )\n\n /**\n * DescribeCluster returns information about cadence cluster\n **/\n DescribeClusterResponse DescribeCluster()\n throws (\n 1: shared.InternalServiceError internalServiceError,\n 2: shared.ServiceBusyError serviceBusyError,\n )\n\n /**\n * ReadDLQMessages returns messages from DLQ\n **/\n replicator.ReadDLQMessagesResponse ReadDLQMessages(1: replicator.ReadDLQMessagesRequest request)\n throws (\n 1: shared.BadRequestError badRequestError,\n 2: shared.InternalServiceError internalServiceError,\n 3: shared.ServiceBusyError serviceBusyError,\n 4: shared.EntityNotExistsError entityNotExistError,\n )\n\n /**\n * PurgeDLQMessages purges messages from DLQ\n **/\n void PurgeDLQMessages(1: replicator.PurgeDLQMessagesRequest request)\n throws (\n 1: shared.BadRequestError badRequestError,\n 2: shared.InternalServiceError internalServiceError,\n 3: shared.ServiceBusyError serviceBusyError,\n 4: shared.EntityNotExistsError entityNotExistError,\n )\n\n /**\n * MergeDLQMessages merges messages from DLQ\n **/\n replicator.MergeDLQMessagesResponse MergeDLQMessages(1: replicator.MergeDLQMessagesRequest request)\n throws (\n 1: shared.BadRequestError badRequestError,\n 2: shared.InternalServiceError internalServiceError,\n 3: shared.ServiceBusyError serviceBusyError,\n 4: shared.EntityNotExistsError entityNotExistError,\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 /**\n * ResendReplicationTasks requests replication tasks from remote cluster and apply tasks to current cluster\n **/\n void ResendReplicationTasks(1: ResendReplicationTasksRequest request)\n throws (\n 1: shared.BadRequestError badRequestError,\n 2: shared.ServiceBusyError serviceBusyError,\n 3: shared.EntityNotExistsError entityNotExistError,\n )\n\n /**\n * GetCrossClusterTasks fetches cross cluster tasks\n **/\n shared.GetCrossClusterTasksResponse GetCrossClusterTasks(1: shared.GetCrossClusterTasksRequest request)\n throws (\n 1: shared.BadRequestError badRequestError,\n 2: shared.InternalServiceError internalServiceError,\n 3: shared.ServiceBusyError serviceBusyError,\n )\n}\n\nstruct DescribeWorkflowExecutionRequest {\n 10: optional string domain\n 20: optional shared.WorkflowExecution execution\n}\n\nstruct DescribeWorkflowExecutionResponse {\n 10: optional string shardId\n 20: optional string historyAddr\n 40: optional string mutableStateInCache\n 50: optional string mutableStateInDatabase\n}\n\n/**\n * StartEventId defines the beginning of the event to fetch. The first event is exclusive.\n * EndEventId and EndEventVersion defines the end of the event to fetch. The end event is exclusive.\n **/\nstruct GetWorkflowExecutionRawHistoryV2Request {\n 10: optional string domain\n 20: optional shared.WorkflowExecution execution\n 30: optional i64 (js.type = \"Long\") startEventId\n 40: optional i64 (js.type = \"Long\") startEventVersion\n 50: optional i64 (js.type = \"Long\") endEventId\n 60: optional i64 (js.type = \"Long\") endEventVersion\n 70: optional i32 maximumPageSize\n 80: optional binary nextPageToken\n}\n\nstruct GetWorkflowExecutionRawHistoryV2Response {\n 10: optional binary nextPageToken\n 20: optional list historyBatches\n 30: optional shared.VersionHistory versionHistory\n}\n\nstruct AddSearchAttributeRequest {\n 10: optional map searchAttribute\n 20: optional string securityToken\n}\n\nstruct HostInfo {\n 10: optional string Identity\n}\n\nstruct RingInfo {\n 10: optional string role\n 20: optional i32 memberCount\n 30: optional list members\n}\n\nstruct MembershipInfo {\n 10: optional HostInfo currentHost\n 20: optional list reachableMembers\n 30: optional list rings\n}\n\nstruct PersistenceSetting {\n 10: optional string key\n 20: optional string value\n}\n\nstruct PersistenceFeature {\n 10: optional string key\n 20: optional bool enabled\n}\n\nstruct PersistenceInfo {\n 10: optional string backend\n 20: optional list settings\n 30: optional list features\n}\n\nstruct DescribeClusterResponse {\n 10: optional shared.SupportedClientVersions supportedClientVersions\n 20: optional MembershipInfo membershipInfo\n 30: optional map persistenceInfo\n}\n\nstruct ResendReplicationTasksRequest {\n 10: optional string domainID\n 20: optional string workflowID\n 30: optional string runID\n 40: optional string remoteCluster\n 50: optional i64 (js.type = \"Long\") startEventID\n 60: optional i64 (js.type = \"Long\") startVersion\n 70: optional i64 (js.type = \"Long\") endEventID\n 80: optional i64 (js.type = \"Long\") endVersion\n}" // AdminService_AddSearchAttribute_Args represents the arguments for the AdminService.AddSearchAttribute function. // @@ -7759,6 +7759,593 @@ func (v *AdminService_DescribeWorkflowExecution_Result) EnvelopeType() wire.Enve return wire.Reply } +// AdminService_GetCrossClusterTasks_Args represents the arguments for the AdminService.GetCrossClusterTasks function. +// +// The arguments for GetCrossClusterTasks are sent and received over the wire as this struct. +type AdminService_GetCrossClusterTasks_Args struct { + Request *shared.GetCrossClusterTasksRequest `json:"request,omitempty"` +} + +// ToWire translates a AdminService_GetCrossClusterTasks_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 *AdminService_GetCrossClusterTasks_Args) ToWire() (wire.Value, error) { + var ( + fields [1]wire.Field + i int = 0 + w wire.Value + err error + ) + + if v.Request != nil { + w, err = v.Request.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 +} + +func _GetCrossClusterTasksRequest_Read(w wire.Value) (*shared.GetCrossClusterTasksRequest, error) { + var v shared.GetCrossClusterTasksRequest + err := v.FromWire(w) + return &v, err +} + +// FromWire deserializes a AdminService_GetCrossClusterTasks_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 AdminService_GetCrossClusterTasks_Args struct +// from the provided intermediate representation. +// +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } +// +// var v AdminService_GetCrossClusterTasks_Args +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil +func (v *AdminService_GetCrossClusterTasks_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.Request, err = _GetCrossClusterTasksRequest_Read(field.Value) + if err != nil { + return err + } + + } + } + } + + return nil +} + +// String returns a readable string representation of a AdminService_GetCrossClusterTasks_Args +// struct. +func (v *AdminService_GetCrossClusterTasks_Args) String() string { + if v == nil { + return "" + } + + var fields [1]string + i := 0 + if v.Request != nil { + fields[i] = fmt.Sprintf("Request: %v", v.Request) + i++ + } + + return fmt.Sprintf("AdminService_GetCrossClusterTasks_Args{%v}", strings.Join(fields[:i], ", ")) +} + +// Equals returns true if all the fields of this AdminService_GetCrossClusterTasks_Args match the +// provided AdminService_GetCrossClusterTasks_Args. +// +// This function performs a deep comparison. +func (v *AdminService_GetCrossClusterTasks_Args) Equals(rhs *AdminService_GetCrossClusterTasks_Args) bool { + if v == nil { + return rhs == nil + } else if rhs == nil { + return false + } + if !((v.Request == nil && rhs.Request == nil) || (v.Request != nil && rhs.Request != nil && v.Request.Equals(rhs.Request))) { + return false + } + + return true +} + +// MarshalLogObject implements zapcore.ObjectMarshaler, enabling +// fast logging of AdminService_GetCrossClusterTasks_Args. +func (v *AdminService_GetCrossClusterTasks_Args) MarshalLogObject(enc zapcore.ObjectEncoder) (err error) { + if v == nil { + return nil + } + if v.Request != nil { + err = multierr.Append(err, enc.AddObject("request", v.Request)) + } + return err +} + +// GetRequest returns the value of Request if it is set or its +// zero value if it is unset. +func (v *AdminService_GetCrossClusterTasks_Args) GetRequest() (o *shared.GetCrossClusterTasksRequest) { + if v != nil && v.Request != nil { + return v.Request + } + + return +} + +// IsSetRequest returns true if Request is not nil. +func (v *AdminService_GetCrossClusterTasks_Args) IsSetRequest() bool { + return v != nil && v.Request != 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 "GetCrossClusterTasks" for this struct. +func (v *AdminService_GetCrossClusterTasks_Args) MethodName() string { + return "GetCrossClusterTasks" +} + +// EnvelopeType returns the kind of value inside this struct. +// +// This will always be Call for this struct. +func (v *AdminService_GetCrossClusterTasks_Args) EnvelopeType() wire.EnvelopeType { + return wire.Call +} + +// AdminService_GetCrossClusterTasks_Helper provides functions that aid in handling the +// parameters and return values of the AdminService.GetCrossClusterTasks +// function. +var AdminService_GetCrossClusterTasks_Helper = struct { + // Args accepts the parameters of GetCrossClusterTasks in-order and returns + // the arguments struct for the function. + Args func( + request *shared.GetCrossClusterTasksRequest, + ) *AdminService_GetCrossClusterTasks_Args + + // IsException returns true if the given error can be thrown + // by GetCrossClusterTasks. + // + // An error can be thrown by GetCrossClusterTasks 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 GetCrossClusterTasks + // given its return value and error. + // + // This allows mapping values and errors returned by + // GetCrossClusterTasks into a serializable result struct. + // WrapResponse returns a non-nil error if the provided + // error cannot be thrown by GetCrossClusterTasks + // + // value, err := GetCrossClusterTasks(args) + // result, err := AdminService_GetCrossClusterTasks_Helper.WrapResponse(value, err) + // if err != nil { + // return fmt.Errorf("unexpected error from GetCrossClusterTasks: %v", err) + // } + // serialize(result) + WrapResponse func(*shared.GetCrossClusterTasksResponse, error) (*AdminService_GetCrossClusterTasks_Result, error) + + // UnwrapResponse takes the result struct for GetCrossClusterTasks + // and returns the value or error returned by it. + // + // The error is non-nil only if GetCrossClusterTasks threw an + // exception. + // + // result := deserialize(bytes) + // value, err := AdminService_GetCrossClusterTasks_Helper.UnwrapResponse(result) + UnwrapResponse func(*AdminService_GetCrossClusterTasks_Result) (*shared.GetCrossClusterTasksResponse, error) +}{} + +func init() { + AdminService_GetCrossClusterTasks_Helper.Args = func( + request *shared.GetCrossClusterTasksRequest, + ) *AdminService_GetCrossClusterTasks_Args { + return &AdminService_GetCrossClusterTasks_Args{ + Request: request, + } + } + + AdminService_GetCrossClusterTasks_Helper.IsException = func(err error) bool { + switch err.(type) { + case *shared.BadRequestError: + return true + case *shared.InternalServiceError: + return true + case *shared.ServiceBusyError: + return true + default: + return false + } + } + + AdminService_GetCrossClusterTasks_Helper.WrapResponse = func(success *shared.GetCrossClusterTasksResponse, err error) (*AdminService_GetCrossClusterTasks_Result, error) { + if err == nil { + return &AdminService_GetCrossClusterTasks_Result{Success: success}, nil + } + + switch e := err.(type) { + case *shared.BadRequestError: + if e == nil { + return nil, errors.New("WrapResponse received non-nil error type with nil value for AdminService_GetCrossClusterTasks_Result.BadRequestError") + } + return &AdminService_GetCrossClusterTasks_Result{BadRequestError: e}, nil + case *shared.InternalServiceError: + if e == nil { + return nil, errors.New("WrapResponse received non-nil error type with nil value for AdminService_GetCrossClusterTasks_Result.InternalServiceError") + } + return &AdminService_GetCrossClusterTasks_Result{InternalServiceError: e}, nil + case *shared.ServiceBusyError: + if e == nil { + return nil, errors.New("WrapResponse received non-nil error type with nil value for AdminService_GetCrossClusterTasks_Result.ServiceBusyError") + } + return &AdminService_GetCrossClusterTasks_Result{ServiceBusyError: e}, nil + } + + return nil, err + } + AdminService_GetCrossClusterTasks_Helper.UnwrapResponse = func(result *AdminService_GetCrossClusterTasks_Result) (success *shared.GetCrossClusterTasksResponse, err error) { + if result.BadRequestError != nil { + err = result.BadRequestError + return + } + if result.InternalServiceError != nil { + err = result.InternalServiceError + return + } + if result.ServiceBusyError != nil { + err = result.ServiceBusyError + return + } + + if result.Success != nil { + success = result.Success + return + } + + err = errors.New("expected a non-void result") + return + } + +} + +// AdminService_GetCrossClusterTasks_Result represents the result of a AdminService.GetCrossClusterTasks function call. +// +// The result of a GetCrossClusterTasks execution is sent and received over the wire as this struct. +// +// Success is set only if the function did not throw an exception. +type AdminService_GetCrossClusterTasks_Result struct { + // Value returned by GetCrossClusterTasks after a successful execution. + Success *shared.GetCrossClusterTasksResponse `json:"success,omitempty"` + BadRequestError *shared.BadRequestError `json:"badRequestError,omitempty"` + InternalServiceError *shared.InternalServiceError `json:"internalServiceError,omitempty"` + ServiceBusyError *shared.ServiceBusyError `json:"serviceBusyError,omitempty"` +} + +// ToWire translates a AdminService_GetCrossClusterTasks_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 *AdminService_GetCrossClusterTasks_Result) ToWire() (wire.Value, error) { + var ( + fields [4]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.BadRequestError != nil { + w, err = v.BadRequestError.ToWire() + if err != nil { + return w, err + } + fields[i] = wire.Field{ID: 1, Value: w} + i++ + } + if v.InternalServiceError != nil { + w, err = v.InternalServiceError.ToWire() + if err != nil { + return w, err + } + fields[i] = wire.Field{ID: 2, Value: w} + i++ + } + if v.ServiceBusyError != nil { + w, err = v.ServiceBusyError.ToWire() + if err != nil { + return w, err + } + fields[i] = wire.Field{ID: 3, Value: w} + i++ + } + + if i != 1 { + return wire.Value{}, fmt.Errorf("AdminService_GetCrossClusterTasks_Result should have exactly one field: got %v fields", i) + } + + return wire.NewValueStruct(wire.Struct{Fields: fields[:i]}), nil +} + +func _GetCrossClusterTasksResponse_Read(w wire.Value) (*shared.GetCrossClusterTasksResponse, error) { + var v shared.GetCrossClusterTasksResponse + err := v.FromWire(w) + return &v, err +} + +// FromWire deserializes a AdminService_GetCrossClusterTasks_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 AdminService_GetCrossClusterTasks_Result struct +// from the provided intermediate representation. +// +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } +// +// var v AdminService_GetCrossClusterTasks_Result +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil +func (v *AdminService_GetCrossClusterTasks_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 = _GetCrossClusterTasksResponse_Read(field.Value) + if err != nil { + return err + } + + } + case 1: + if field.Value.Type() == wire.TStruct { + v.BadRequestError, err = _BadRequestError_Read(field.Value) + if err != nil { + return err + } + + } + case 2: + if field.Value.Type() == wire.TStruct { + v.InternalServiceError, err = _InternalServiceError_Read(field.Value) + if err != nil { + return err + } + + } + case 3: + if field.Value.Type() == wire.TStruct { + v.ServiceBusyError, err = _ServiceBusyError_Read(field.Value) + if err != nil { + return err + } + + } + } + } + + count := 0 + if v.Success != nil { + count++ + } + if v.BadRequestError != nil { + count++ + } + if v.InternalServiceError != nil { + count++ + } + if v.ServiceBusyError != nil { + count++ + } + if count != 1 { + return fmt.Errorf("AdminService_GetCrossClusterTasks_Result should have exactly one field: got %v fields", count) + } + + return nil +} + +// String returns a readable string representation of a AdminService_GetCrossClusterTasks_Result +// struct. +func (v *AdminService_GetCrossClusterTasks_Result) String() string { + if v == nil { + return "" + } + + var fields [4]string + i := 0 + if v.Success != nil { + fields[i] = fmt.Sprintf("Success: %v", v.Success) + i++ + } + if v.BadRequestError != nil { + fields[i] = fmt.Sprintf("BadRequestError: %v", v.BadRequestError) + i++ + } + if v.InternalServiceError != nil { + fields[i] = fmt.Sprintf("InternalServiceError: %v", v.InternalServiceError) + i++ + } + if v.ServiceBusyError != nil { + fields[i] = fmt.Sprintf("ServiceBusyError: %v", v.ServiceBusyError) + i++ + } + + return fmt.Sprintf("AdminService_GetCrossClusterTasks_Result{%v}", strings.Join(fields[:i], ", ")) +} + +// Equals returns true if all the fields of this AdminService_GetCrossClusterTasks_Result match the +// provided AdminService_GetCrossClusterTasks_Result. +// +// This function performs a deep comparison. +func (v *AdminService_GetCrossClusterTasks_Result) Equals(rhs *AdminService_GetCrossClusterTasks_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.BadRequestError == nil && rhs.BadRequestError == nil) || (v.BadRequestError != nil && rhs.BadRequestError != nil && v.BadRequestError.Equals(rhs.BadRequestError))) { + return false + } + if !((v.InternalServiceError == nil && rhs.InternalServiceError == nil) || (v.InternalServiceError != nil && rhs.InternalServiceError != nil && v.InternalServiceError.Equals(rhs.InternalServiceError))) { + return false + } + if !((v.ServiceBusyError == nil && rhs.ServiceBusyError == nil) || (v.ServiceBusyError != nil && rhs.ServiceBusyError != nil && v.ServiceBusyError.Equals(rhs.ServiceBusyError))) { + return false + } + + return true +} + +// MarshalLogObject implements zapcore.ObjectMarshaler, enabling +// fast logging of AdminService_GetCrossClusterTasks_Result. +func (v *AdminService_GetCrossClusterTasks_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.BadRequestError != nil { + err = multierr.Append(err, enc.AddObject("badRequestError", v.BadRequestError)) + } + if v.InternalServiceError != nil { + err = multierr.Append(err, enc.AddObject("internalServiceError", v.InternalServiceError)) + } + if v.ServiceBusyError != nil { + err = multierr.Append(err, enc.AddObject("serviceBusyError", v.ServiceBusyError)) + } + return err +} + +// GetSuccess returns the value of Success if it is set or its +// zero value if it is unset. +func (v *AdminService_GetCrossClusterTasks_Result) GetSuccess() (o *shared.GetCrossClusterTasksResponse) { + if v != nil && v.Success != nil { + return v.Success + } + + return +} + +// IsSetSuccess returns true if Success is not nil. +func (v *AdminService_GetCrossClusterTasks_Result) IsSetSuccess() bool { + return v != nil && v.Success != nil +} + +// GetBadRequestError returns the value of BadRequestError if it is set or its +// zero value if it is unset. +func (v *AdminService_GetCrossClusterTasks_Result) GetBadRequestError() (o *shared.BadRequestError) { + if v != nil && v.BadRequestError != nil { + return v.BadRequestError + } + + return +} + +// IsSetBadRequestError returns true if BadRequestError is not nil. +func (v *AdminService_GetCrossClusterTasks_Result) IsSetBadRequestError() bool { + return v != nil && v.BadRequestError != nil +} + +// GetInternalServiceError returns the value of InternalServiceError if it is set or its +// zero value if it is unset. +func (v *AdminService_GetCrossClusterTasks_Result) GetInternalServiceError() (o *shared.InternalServiceError) { + if v != nil && v.InternalServiceError != nil { + return v.InternalServiceError + } + + return +} + +// IsSetInternalServiceError returns true if InternalServiceError is not nil. +func (v *AdminService_GetCrossClusterTasks_Result) IsSetInternalServiceError() bool { + return v != nil && v.InternalServiceError != nil +} + +// GetServiceBusyError returns the value of ServiceBusyError if it is set or its +// zero value if it is unset. +func (v *AdminService_GetCrossClusterTasks_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 *AdminService_GetCrossClusterTasks_Result) IsSetServiceBusyError() bool { + return v != nil && v.ServiceBusyError != 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 "GetCrossClusterTasks" for this struct. +func (v *AdminService_GetCrossClusterTasks_Result) MethodName() string { + return "GetCrossClusterTasks" +} + +// EnvelopeType returns the kind of value inside this struct. +// +// This will always be Reply for this struct. +func (v *AdminService_GetCrossClusterTasks_Result) EnvelopeType() wire.EnvelopeType { + return wire.Reply +} + // AdminService_GetDLQReplicationMessages_Args represents the arguments for the AdminService.GetDLQReplicationMessages function. // // The arguments for GetDLQReplicationMessages are sent and received over the wire as this struct. diff --git a/.gen/go/admin/adminserviceclient/client.go b/.gen/go/admin/adminserviceclient/client.go index 11a975a5e96..5d3491c7382 100644 --- a/.gen/go/admin/adminserviceclient/client.go +++ b/.gen/go/admin/adminserviceclient/client.go @@ -82,6 +82,12 @@ type Interface interface { opts ...yarpc.CallOption, ) (*admin.DescribeWorkflowExecutionResponse, error) + GetCrossClusterTasks( + ctx context.Context, + Request *shared.GetCrossClusterTasksRequest, + opts ...yarpc.CallOption, + ) (*shared.GetCrossClusterTasksResponse, error) + GetDLQReplicationMessages( ctx context.Context, Request *replicator.GetDLQReplicationMessagesRequest, @@ -339,6 +345,29 @@ func (c client) DescribeWorkflowExecution( return } +func (c client) GetCrossClusterTasks( + ctx context.Context, + _Request *shared.GetCrossClusterTasksRequest, + opts ...yarpc.CallOption, +) (success *shared.GetCrossClusterTasksResponse, err error) { + + args := admin.AdminService_GetCrossClusterTasks_Helper.Args(_Request) + + var body wire.Value + body, err = c.c.Call(ctx, args, opts...) + if err != nil { + return + } + + var result admin.AdminService_GetCrossClusterTasks_Result + if err = result.FromWire(body); err != nil { + return + } + + success, err = admin.AdminService_GetCrossClusterTasks_Helper.UnwrapResponse(&result) + return +} + func (c client) GetDLQReplicationMessages( ctx context.Context, _Request *replicator.GetDLQReplicationMessagesRequest, diff --git a/.gen/go/admin/adminserviceserver/server.go b/.gen/go/admin/adminserviceserver/server.go index 77a4ef2365a..5fc54e39cdc 100644 --- a/.gen/go/admin/adminserviceserver/server.go +++ b/.gen/go/admin/adminserviceserver/server.go @@ -74,6 +74,11 @@ type Interface interface { Request *admin.DescribeWorkflowExecutionRequest, ) (*admin.DescribeWorkflowExecutionResponse, error) + GetCrossClusterTasks( + ctx context.Context, + Request *shared.GetCrossClusterTasksRequest, + ) (*shared.GetCrossClusterTasksResponse, error) + GetDLQReplicationMessages( ctx context.Context, Request *replicator.GetDLQReplicationMessagesRequest, @@ -223,6 +228,17 @@ func New(impl Interface, opts ...thrift.RegisterOption) []transport.Procedure { ThriftModule: admin.ThriftModule, }, + thrift.Method{ + Name: "GetCrossClusterTasks", + HandlerSpec: thrift.HandlerSpec{ + + Type: transport.Unary, + Unary: thrift.UnaryHandler(h.GetCrossClusterTasks), + }, + Signature: "GetCrossClusterTasks(Request *shared.GetCrossClusterTasksRequest) (*shared.GetCrossClusterTasksResponse)", + ThriftModule: admin.ThriftModule, + }, + thrift.Method{ Name: "GetDLQReplicationMessages", HandlerSpec: thrift.HandlerSpec{ @@ -357,7 +373,7 @@ func New(impl Interface, opts ...thrift.RegisterOption) []transport.Procedure { }, } - procedures := make([]transport.Procedure, 0, 19) + procedures := make([]transport.Procedure, 0, 20) procedures = append(procedures, thrift.BuildProcedures(service, opts...)...) return procedures } @@ -578,6 +594,36 @@ func (h handler) DescribeWorkflowExecution(ctx context.Context, body wire.Value) return response, err } +func (h handler) GetCrossClusterTasks(ctx context.Context, body wire.Value) (thrift.Response, error) { + var args admin.AdminService_GetCrossClusterTasks_Args + if err := args.FromWire(body); err != nil { + return thrift.Response{}, yarpcerrors.InvalidArgumentErrorf( + "could not decode Thrift request for service 'AdminService' procedure 'GetCrossClusterTasks': %w", err) + } + + success, appErr := h.impl.GetCrossClusterTasks(ctx, args.Request) + + hadError := appErr != nil + result, err := admin.AdminService_GetCrossClusterTasks_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) GetDLQReplicationMessages(ctx context.Context, body wire.Value) (thrift.Response, error) { var args admin.AdminService_GetDLQReplicationMessages_Args if err := args.FromWire(body); err != nil { diff --git a/.gen/go/admin/adminservicetest/client.go b/.gen/go/admin/adminservicetest/client.go index e6df7b1363a..2b3697fe2ac 100644 --- a/.gen/go/admin/adminservicetest/client.go +++ b/.gen/go/admin/adminservicetest/client.go @@ -293,6 +293,39 @@ func (mr *_MockClientRecorder) DescribeWorkflowExecution( return mr.mock.ctrl.RecordCall(mr.mock, "DescribeWorkflowExecution", args...) } +// GetCrossClusterTasks responds to a GetCrossClusterTasks 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().GetCrossClusterTasks(gomock.Any(), ...).Return(...) +// ... := client.GetCrossClusterTasks(...) +func (m *MockClient) GetCrossClusterTasks( + ctx context.Context, + _Request *shared.GetCrossClusterTasksRequest, + opts ...yarpc.CallOption, +) (success *shared.GetCrossClusterTasksResponse, err error) { + + args := []interface{}{ctx, _Request} + for _, o := range opts { + args = append(args, o) + } + i := 0 + ret := m.ctrl.Call(m, "GetCrossClusterTasks", args...) + success, _ = ret[i].(*shared.GetCrossClusterTasksResponse) + i++ + err, _ = ret[i].(error) + return +} + +func (mr *_MockClientRecorder) GetCrossClusterTasks( + ctx interface{}, + _Request interface{}, + opts ...interface{}, +) *gomock.Call { + args := append([]interface{}{ctx, _Request}, opts...) + return mr.mock.ctrl.RecordCall(mr.mock, "GetCrossClusterTasks", args...) +} + // GetDLQReplicationMessages responds to a GetDLQReplicationMessages 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/history/history.go b/.gen/go/history/history.go index 3fd2536f09f..0d5f9194b20 100644 --- a/.gen/go/history/history.go +++ b/.gen/go/history/history.go @@ -12838,7 +12838,7 @@ var ThriftModule = &thriftreflect.ThriftModule{ Name: "history", Package: "github.com/uber/cadence/.gen/go/history", FilePath: "history.thrift", - SHA1: "6c90dabfa83d3acc24656ddc041fd8a0da8cc64f", + SHA1: "7eb0a360d57e6de98e712865ac1bc75bfd2cf09c", Includes: []*thriftreflect.ThriftModule{ replicator.ThriftModule, shared.ThriftModule, @@ -12846,7 +12846,7 @@ var ThriftModule = &thriftreflect.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\"\ninclude \"replicator.thrift\"\n\nnamespace java com.uber.cadence.history\n\nexception EventAlreadyStartedError {\n 1: required string message\n}\n\nexception ShardOwnershipLostError {\n 10: optional string message\n 20: optional string owner\n}\n\nstruct ParentExecutionInfo {\n 10: optional string domainUUID\n 15: optional string domain\n 20: optional shared.WorkflowExecution execution\n 30: optional i64 (js.type = \"Long\") initiatedId\n}\n\nstruct StartWorkflowExecutionRequest {\n 10: optional string domainUUID\n 20: optional shared.StartWorkflowExecutionRequest startRequest\n 30: optional ParentExecutionInfo parentExecutionInfo\n 40: optional i32 attempt\n 50: optional i64 (js.type = \"Long\") expirationTimestamp\n 55: optional shared.ContinueAsNewInitiator continueAsNewInitiator\n 56: optional string continuedFailureReason\n 57: optional binary continuedFailureDetails\n 58: optional binary lastCompletionResult\n 60: optional i32 firstDecisionTaskBackoffSeconds\n}\n\nstruct DescribeMutableStateRequest{\n 10: optional string domainUUID\n 20: optional shared.WorkflowExecution execution\n}\n\nstruct DescribeMutableStateResponse{\n 30: optional string mutableStateInCache\n 40: optional string mutableStateInDatabase\n}\n\nstruct GetMutableStateRequest {\n 10: optional string domainUUID\n 20: optional shared.WorkflowExecution execution\n 30: optional i64 (js.type = \"Long\") expectedNextEventId\n 40: optional binary currentBranchToken\n}\n\nstruct GetMutableStateResponse {\n 10: optional shared.WorkflowExecution execution\n 20: optional shared.WorkflowType workflowType\n 30: optional i64 (js.type = \"Long\") NextEventId\n 35: optional i64 (js.type = \"Long\") PreviousStartedEventId\n 40: optional i64 (js.type = \"Long\") LastFirstEventId\n 50: optional shared.TaskList taskList\n 60: optional shared.TaskList stickyTaskList\n 70: optional string clientLibraryVersion\n 80: optional string clientFeatureVersion\n 90: optional string clientImpl\n //TODO: isWorkflowRunning is deprecating. workflowState is going replace this field\n 100: optional bool isWorkflowRunning\n 110: optional i32 stickyTaskListScheduleToStartTimeout\n 120: optional i32 eventStoreVersion\n 130: optional binary currentBranchToken\n // TODO: when migrating to gRPC, make this a enum\n // TODO: when migrating to gRPC, unify internal & external representation\n // NOTE: workflowState & workflowCloseState are the same as persistence representation\n 150: optional i32 workflowState\n 160: optional i32 workflowCloseState\n 170: optional shared.VersionHistories versionHistories\n 180: optional bool isStickyTaskListEnabled\n}\n\nstruct PollMutableStateRequest {\n 10: optional string domainUUID\n 20: optional shared.WorkflowExecution execution\n 30: optional i64 (js.type = \"Long\") expectedNextEventId\n 40: optional binary currentBranchToken\n}\n\nstruct PollMutableStateResponse {\n 10: optional shared.WorkflowExecution execution\n 20: optional shared.WorkflowType workflowType\n 30: optional i64 (js.type = \"Long\") NextEventId\n 35: optional i64 (js.type = \"Long\") PreviousStartedEventId\n 40: optional i64 (js.type = \"Long\") LastFirstEventId\n 50: optional shared.TaskList taskList\n 60: optional shared.TaskList stickyTaskList\n 70: optional string clientLibraryVersion\n 80: optional string clientFeatureVersion\n 90: optional string clientImpl\n 100: optional i32 stickyTaskListScheduleToStartTimeout\n 110: optional binary currentBranchToken\n 130: optional shared.VersionHistories versionHistories\n // TODO: when migrating to gRPC, make this a enum\n // TODO: when migrating to gRPC, unify internal & external representation\n // NOTE: workflowState & workflowCloseState are the same as persistence representation\n 140: optional i32 workflowState\n 150: optional i32 workflowCloseState\n}\n\nstruct ResetStickyTaskListRequest {\n 10: optional string domainUUID\n 20: optional shared.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 RespondDecisionTaskCompletedRequest {\n 10: optional string domainUUID\n 20: optional shared.RespondDecisionTaskCompletedRequest completeRequest\n}\n\nstruct RespondDecisionTaskCompletedResponse {\n 10: optional RecordDecisionTaskStartedResponse startedResponse\n 20: optional map activitiesToDispatchLocally\n}\n\nstruct RespondDecisionTaskFailedRequest {\n 10: optional string domainUUID\n 20: optional shared.RespondDecisionTaskFailedRequest failedRequest\n}\n\nstruct RecordActivityTaskHeartbeatRequest {\n 10: optional string domainUUID\n 20: optional shared.RecordActivityTaskHeartbeatRequest heartbeatRequest\n}\n\nstruct RespondActivityTaskCompletedRequest {\n 10: optional string domainUUID\n 20: optional shared.RespondActivityTaskCompletedRequest completeRequest\n}\n\nstruct RespondActivityTaskFailedRequest {\n 10: optional string domainUUID\n 20: optional shared.RespondActivityTaskFailedRequest failedRequest\n}\n\nstruct RespondActivityTaskCanceledRequest {\n 10: optional string domainUUID\n 20: optional shared.RespondActivityTaskCanceledRequest cancelRequest\n}\n\nstruct RefreshWorkflowTasksRequest {\n 10: optional string domainUIID\n 20: optional shared.RefreshWorkflowTasksRequest request\n}\n\nstruct RecordActivityTaskStartedRequest {\n 10: optional string domainUUID\n 20: optional shared.WorkflowExecution workflowExecution\n 30: optional i64 (js.type = \"Long\") scheduleId\n 40: optional i64 (js.type = \"Long\") taskId\n 45: optional string requestId // Unique id of each poll request. Used to ensure at most once delivery of tasks.\n 50: optional shared.PollForActivityTaskRequest pollRequest\n}\n\nstruct RecordActivityTaskStartedResponse {\n 20: optional shared.HistoryEvent scheduledEvent\n 30: optional i64 (js.type = \"Long\") startedTimestamp\n 40: optional i64 (js.type = \"Long\") attempt\n 50: optional i64 (js.type = \"Long\") scheduledTimestampOfThisAttempt\n 60: optional binary heartbeatDetails\n 70: optional shared.WorkflowType workflowType\n 80: optional string workflowDomain\n}\n\nstruct RecordDecisionTaskStartedRequest {\n 10: optional string domainUUID\n 20: optional shared.WorkflowExecution workflowExecution\n 30: optional i64 (js.type = \"Long\") scheduleId\n 40: optional i64 (js.type = \"Long\") taskId\n 45: optional string requestId // Unique id of each poll request. Used to ensure at most once delivery of tasks.\n 50: optional shared.PollForDecisionTaskRequest pollRequest\n}\n\nstruct RecordDecisionTaskStartedResponse {\n 10: optional shared.WorkflowType workflowType\n 20: optional i64 (js.type = \"Long\") previousStartedEventId\n 30: optional i64 (js.type = \"Long\") scheduledEventId\n 40: optional i64 (js.type = \"Long\") startedEventId\n 50: optional i64 (js.type = \"Long\") nextEventId\n 60: optional i64 (js.type = \"Long\") attempt\n 70: optional bool stickyExecutionEnabled\n 80: optional shared.TransientDecisionInfo decisionInfo\n 90: optional shared.TaskList WorkflowExecutionTaskList\n 100: optional i32 eventStoreVersion\n 110: optional binary branchToken\n 120: optional i64 (js.type = \"Long\") scheduledTimestamp\n 130: optional i64 (js.type = \"Long\") startedTimestamp\n 140: optional map queries\n}\n\nstruct SignalWorkflowExecutionRequest {\n 10: optional string domainUUID\n 20: optional shared.SignalWorkflowExecutionRequest signalRequest\n 30: optional shared.WorkflowExecution externalWorkflowExecution\n 40: optional bool childWorkflowOnly\n}\n\nstruct SignalWithStartWorkflowExecutionRequest {\n 10: optional string domainUUID\n 20: optional shared.SignalWithStartWorkflowExecutionRequest signalWithStartRequest\n}\n\nstruct RemoveSignalMutableStateRequest {\n 10: optional string domainUUID\n 20: optional shared.WorkflowExecution workflowExecution\n 30: optional string requestId\n}\n\nstruct TerminateWorkflowExecutionRequest {\n 10: optional string domainUUID\n 20: optional shared.TerminateWorkflowExecutionRequest terminateRequest\n}\n\nstruct ResetWorkflowExecutionRequest {\n 10: optional string domainUUID\n 20: optional shared.ResetWorkflowExecutionRequest resetRequest\n}\n\nstruct RequestCancelWorkflowExecutionRequest {\n 10: optional string domainUUID\n 20: optional shared.RequestCancelWorkflowExecutionRequest cancelRequest\n 30: optional i64 (js.type = \"Long\") externalInitiatedEventId\n 40: optional shared.WorkflowExecution externalWorkflowExecution\n 50: optional bool childWorkflowOnly\n}\n\nstruct ScheduleDecisionTaskRequest {\n 10: optional string domainUUID\n 20: optional shared.WorkflowExecution workflowExecution\n 30: optional bool isFirstDecision\n}\n\nstruct DescribeWorkflowExecutionRequest {\n 10: optional string domainUUID\n 20: optional shared.DescribeWorkflowExecutionRequest request\n}\n\n/**\n* RecordChildExecutionCompletedRequest is used for reporting the completion of child execution to parent workflow\n* execution which started it. When a child execution is completed it creates this request and calls the\n* RecordChildExecutionCompleted API with the workflowExecution of parent. It also sets the completedExecution of the\n* child as it could potentially be different than the ChildExecutionStartedEvent of parent in the situation when\n* child creates multiple runs through ContinueAsNew before finally completing.\n**/\nstruct RecordChildExecutionCompletedRequest {\n 10: optional string domainUUID\n 20: optional shared.WorkflowExecution workflowExecution\n 30: optional i64 (js.type = \"Long\") initiatedId\n 40: optional shared.WorkflowExecution completedExecution\n 50: optional shared.HistoryEvent completionEvent\n}\n\nstruct ReplicateEventsV2Request {\n 10: optional string domainUUID\n 20: optional shared.WorkflowExecution workflowExecution\n 30: optional list versionHistoryItems\n 40: optional shared.DataBlob events\n // new run events does not need version history since there is no prior events\n 60: optional shared.DataBlob newRunEvents\n}\n\nstruct SyncShardStatusRequest {\n 10: optional string sourceCluster\n 20: optional i64 (js.type = \"Long\") shardId\n 30: optional i64 (js.type = \"Long\") timestamp\n}\n\nstruct SyncActivityRequest {\n 10: optional string domainId\n 20: optional string workflowId\n 30: optional string runId\n 40: optional i64 (js.type = \"Long\") version\n 50: optional i64 (js.type = \"Long\") scheduledId\n 60: optional i64 (js.type = \"Long\") scheduledTime\n 70: optional i64 (js.type = \"Long\") startedId\n 80: optional i64 (js.type = \"Long\") startedTime\n 90: optional i64 (js.type = \"Long\") lastHeartbeatTime\n 100: optional binary details\n 110: optional i32 attempt\n 120: optional string lastFailureReason\n 130: optional string lastWorkerIdentity\n 140: optional binary lastFailureDetails\n 150: optional shared.VersionHistory versionHistory\n}\n\nstruct QueryWorkflowRequest {\n 10: optional string domainUUID\n 20: optional shared.QueryWorkflowRequest request\n}\n\nstruct QueryWorkflowResponse {\n 10: optional shared.QueryWorkflowResponse response\n}\n\nstruct ReapplyEventsRequest {\n 10: optional string domainUUID\n 20: optional shared.ReapplyEventsRequest request\n}\n\nstruct FailoverMarkerToken {\n 10: optional list shardIDs\n 20: optional replicator.FailoverMarkerAttributes failoverMarker\n}\n\nstruct NotifyFailoverMarkersRequest {\n 10: optional list failoverMarkerTokens\n}\n\nstruct ProcessingQueueStates {\n 10: optional map> statesByCluster\n}\n\nstruct ProcessingQueueState {\n 10: optional i32 level\n 20: optional i64 ackLevel\n 30: optional i64 maxLevel\n 40: optional DomainFilter domainFilter\n}\n\nstruct DomainFilter {\n 10: optional list domainIDs\n 20: optional bool reverseMatch\n}\n\n/**\n* HistoryService provides API to start a new long running workflow instance, as well as query and update the history\n* of workflow instances already created.\n**/\nservice HistoryService {\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: StartWorkflowExecutionRequest startRequest)\n throws (\n 1: shared.BadRequestError badRequestError,\n 2: shared.InternalServiceError internalServiceError,\n 3: shared.WorkflowExecutionAlreadyStartedError sessionAlreadyExistError,\n 4: ShardOwnershipLostError shardOwnershipLostError,\n 5: shared.DomainNotActiveError domainNotActiveError,\n 6: shared.LimitExceededError limitExceededError,\n 7: shared.ServiceBusyError serviceBusyError,\n )\n\n /**\n * Returns the information from mutable state of workflow execution.\n * It fails with 'EntityNotExistError' if specified workflow execution in unknown to the service.\n * It returns CurrentBranchChangedError if the workflow version branch has changed.\n **/\n GetMutableStateResponse GetMutableState(1: GetMutableStateRequest getRequest)\n throws (\n 1: shared.BadRequestError badRequestError,\n 2: shared.InternalServiceError internalServiceError,\n 3: shared.EntityNotExistsError entityNotExistError,\n 4: ShardOwnershipLostError shardOwnershipLostError,\n 5: shared.LimitExceededError limitExceededError,\n 6: shared.ServiceBusyError serviceBusyError,\n 7: shared.CurrentBranchChangedError currentBranchChangedError,\n )\n\n /**\n * Returns the information from mutable state of workflow execution.\n * It fails with 'EntityNotExistError' if specified workflow execution in unknown to the service.\n * It returns CurrentBranchChangedError if the workflow version branch has changed.\n **/\n PollMutableStateResponse PollMutableState(1: PollMutableStateRequest pollRequest)\n throws (\n 1: shared.BadRequestError badRequestError,\n 2: shared.InternalServiceError internalServiceError,\n 3: shared.EntityNotExistsError entityNotExistError,\n 4: ShardOwnershipLostError shardOwnershipLostError,\n 5: shared.LimitExceededError limitExceededError,\n 6: shared.ServiceBusyError serviceBusyError,\n 7: shared.CurrentBranchChangedError currentBranchChangedError,\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 ResetStickyTaskListResponse ResetStickyTaskList(1: ResetStickyTaskListRequest resetRequest)\n throws (\n 1: shared.BadRequestError badRequestError,\n 2: shared.InternalServiceError internalServiceError,\n 3: shared.EntityNotExistsError entityNotExistError,\n 4: ShardOwnershipLostError shardOwnershipLostError,\n 5: shared.LimitExceededError limitExceededError,\n 6: shared.ServiceBusyError serviceBusyError,\n 7: shared.WorkflowExecutionAlreadyCompletedError workflowExecutionAlreadyCompletedError,\n )\n\n /**\n * RecordDecisionTaskStarted is called by the Matchingservice before it hands a decision task to the application worker in response to\n * a PollForDecisionTask call. It records in the history the event that the decision task has started. It will return 'EventAlreadyStartedError',\n * if the workflow's execution history already includes a record of the event starting.\n **/\n RecordDecisionTaskStartedResponse RecordDecisionTaskStarted(1: RecordDecisionTaskStartedRequest addRequest)\n throws (\n 1: shared.BadRequestError badRequestError,\n 2: shared.InternalServiceError internalServiceError,\n 3: EventAlreadyStartedError eventAlreadyStartedError,\n 4: shared.EntityNotExistsError entityNotExistError,\n 5: ShardOwnershipLostError shardOwnershipLostError,\n 6: shared.DomainNotActiveError domainNotActiveError,\n 7: shared.LimitExceededError limitExceededError,\n 8: shared.ServiceBusyError serviceBusyError,\n 9: shared.WorkflowExecutionAlreadyCompletedError workflowExecutionAlreadyCompletedError,\n )\n\n /**\n * RecordActivityTaskStarted is called by the Matchingservice before it hands a decision task to the application worker in response to\n * a PollForActivityTask call. It records in the history the event that the decision task has started. It will return 'EventAlreadyStartedError',\n * if the workflow's execution history already includes a record of the event starting.\n **/\n RecordActivityTaskStartedResponse RecordActivityTaskStarted(1: RecordActivityTaskStartedRequest addRequest)\n throws (\n 1: shared.BadRequestError badRequestError,\n 2: shared.InternalServiceError internalServiceError,\n 3: EventAlreadyStartedError eventAlreadyStartedError,\n 4: shared.EntityNotExistsError entityNotExistError,\n 5: ShardOwnershipLostError shardOwnershipLostError,\n 6: shared.DomainNotActiveError domainNotActiveError,\n 7: shared.LimitExceededError limitExceededError,\n 8: shared.ServiceBusyError serviceBusyError,\n 9: shared.WorkflowExecutionAlreadyCompletedError workflowExecutionAlreadyCompletedError,\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 **/\n RespondDecisionTaskCompletedResponse RespondDecisionTaskCompleted(1: RespondDecisionTaskCompletedRequest completeRequest)\n throws (\n 1: shared.BadRequestError badRequestError,\n 2: shared.InternalServiceError internalServiceError,\n 3: shared.EntityNotExistsError entityNotExistError,\n 4: ShardOwnershipLostError shardOwnershipLostError,\n 5: shared.DomainNotActiveError domainNotActiveError,\n 6: shared.LimitExceededError limitExceededError,\n 7: shared.ServiceBusyError serviceBusyError,\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 ny panics during DecisionTask processing.\n **/\n void RespondDecisionTaskFailed(1: RespondDecisionTaskFailedRequest failedRequest)\n throws (\n 1: shared.BadRequestError badRequestError,\n 2: shared.InternalServiceError internalServiceError,\n 3: shared.EntityNotExistsError entityNotExistError,\n 4: ShardOwnershipLostError shardOwnershipLostError,\n 5: shared.DomainNotActiveError domainNotActiveError,\n 6: shared.LimitExceededError limitExceededError,\n 7: shared.ServiceBusyError serviceBusyError,\n 8: shared.WorkflowExecutionAlreadyCompletedError workflowExecutionAlreadyCompletedError,\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: RecordActivityTaskHeartbeatRequest heartbeatRequest)\n throws (\n 1: shared.BadRequestError badRequestError,\n 2: shared.InternalServiceError internalServiceError,\n 3: shared.EntityNotExistsError entityNotExistError,\n 4: ShardOwnershipLostError shardOwnershipLostError,\n 5: shared.DomainNotActiveError domainNotActiveError,\n 6: shared.LimitExceededError limitExceededError,\n 7: shared.ServiceBusyError serviceBusyError,\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: RespondActivityTaskCompletedRequest completeRequest)\n throws (\n 1: shared.BadRequestError badRequestError,\n 2: shared.InternalServiceError internalServiceError,\n 3: shared.EntityNotExistsError entityNotExistError,\n 4: ShardOwnershipLostError shardOwnershipLostError,\n 5: shared.DomainNotActiveError domainNotActiveError,\n 6: shared.LimitExceededError limitExceededError,\n 7: shared.ServiceBusyError serviceBusyError,\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: RespondActivityTaskFailedRequest failRequest)\n throws (\n 1: shared.BadRequestError badRequestError,\n 2: shared.InternalServiceError internalServiceError,\n 3: shared.EntityNotExistsError entityNotExistError,\n 4: ShardOwnershipLostError shardOwnershipLostError,\n 5: shared.DomainNotActiveError domainNotActiveError,\n 6: shared.LimitExceededError limitExceededError,\n 7: shared.ServiceBusyError serviceBusyError,\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: RespondActivityTaskCanceledRequest canceledRequest)\n throws (\n 1: shared.BadRequestError badRequestError,\n 2: shared.InternalServiceError internalServiceError,\n 3: shared.EntityNotExistsError entityNotExistError,\n 4: ShardOwnershipLostError shardOwnershipLostError,\n 5: shared.DomainNotActiveError domainNotActiveError,\n 6: shared.LimitExceededError limitExceededError,\n 7: shared.ServiceBusyError serviceBusyError,\n 8: 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: SignalWorkflowExecutionRequest signalRequest)\n throws (\n 1: shared.BadRequestError badRequestError,\n 2: shared.InternalServiceError internalServiceError,\n 3: shared.EntityNotExistsError entityNotExistError,\n 4: ShardOwnershipLostError shardOwnershipLostError,\n 5: shared.DomainNotActiveError domainNotActiveError,\n 6: shared.ServiceBusyError serviceBusyError,\n 7: shared.LimitExceededError limitExceededError,\n 8: shared.WorkflowExecutionAlreadyCompletedError workflowExecutionAlreadyCompletedError,\n )\n\n /**\n * SignalWithStartWorkflowExecution is used to ensure sending a signal event to a workflow execution.\n * If workflow is running, this results in WorkflowExecutionSignaled event recorded in the history\n * and a decision task being created for the execution.\n * If workflow is not running or not found, it will first try start workflow with given WorkflowIDResuePolicy,\n * and record WorkflowExecutionStarted and WorkflowExecutionSignaled event in case of success.\n * It will return `WorkflowExecutionAlreadyStartedError` if start workflow failed with given policy.\n **/\n shared.StartWorkflowExecutionResponse SignalWithStartWorkflowExecution(1: SignalWithStartWorkflowExecutionRequest signalWithStartRequest)\n throws (\n 1: shared.BadRequestError badRequestError,\n 2: shared.InternalServiceError internalServiceError,\n 3: ShardOwnershipLostError shardOwnershipLostError,\n 4: shared.DomainNotActiveError domainNotActiveError,\n 5: shared.LimitExceededError limitExceededError,\n 6: shared.ServiceBusyError serviceBusyError,\n 7: shared.WorkflowExecutionAlreadyStartedError workflowAlreadyStartedError,\n )\n\n /**\n * RemoveSignalMutableState is used to remove a signal request ID that was previously recorded. This is currently\n * used to clean execution info when signal decision finished.\n **/\n void RemoveSignalMutableState(1: RemoveSignalMutableStateRequest removeRequest)\n throws (\n 1: shared.BadRequestError badRequestError,\n 2: shared.InternalServiceError internalServiceError,\n 3: shared.EntityNotExistsError entityNotExistError,\n 4: ShardOwnershipLostError shardOwnershipLostError,\n 5: shared.DomainNotActiveError domainNotActiveError,\n 6: shared.LimitExceededError limitExceededError,\n 7: shared.ServiceBusyError serviceBusyError,\n 8: shared.WorkflowExecutionAlreadyCompletedError workflowExecutionAlreadyCompletedError,\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: TerminateWorkflowExecutionRequest terminateRequest)\n throws (\n 1: shared.BadRequestError badRequestError,\n 2: shared.InternalServiceError internalServiceError,\n 3: shared.EntityNotExistsError entityNotExistError,\n 4: ShardOwnershipLostError shardOwnershipLostError,\n 5: shared.DomainNotActiveError domainNotActiveError,\n 6: shared.LimitExceededError limitExceededError,\n 7: shared.ServiceBusyError serviceBusyError,\n 8: shared.WorkflowExecutionAlreadyCompletedError workflowExecutionAlreadyCompletedError,\n )\n\n /**\n * ResetWorkflowExecution reset an existing workflow execution by a firstEventID of a existing event batch\n * in the history and immediately terminating the current execution instance.\n * After reset, the history will grow from nextFirstEventID.\n **/\n shared.ResetWorkflowExecutionResponse ResetWorkflowExecution(1: ResetWorkflowExecutionRequest resetRequest)\n throws (\n 1: shared.BadRequestError badRequestError,\n 2: shared.InternalServiceError internalServiceError,\n 3: shared.EntityNotExistsError entityNotExistError,\n 4: ShardOwnershipLostError shardOwnershipLostError,\n 5: shared.DomainNotActiveError domainNotActiveError,\n 6: shared.LimitExceededError limitExceededError,\n 7: shared.ServiceBusyError serviceBusyError,\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\n * 'WorkflowExecutionAlreadyCompletedError' if the workflow is not valid\n * anymore due to completion or with 'EntityNotExistsError' if worfklow doesn't exist.\n **/\n void RequestCancelWorkflowExecution(1: RequestCancelWorkflowExecutionRequest cancelRequest)\n throws (\n 1: shared.BadRequestError badRequestError,\n 2: shared.InternalServiceError internalServiceError,\n 3: shared.EntityNotExistsError entityNotExistError,\n 4: ShardOwnershipLostError shardOwnershipLostError,\n 5: shared.CancellationAlreadyRequestedError cancellationAlreadyRequestedError,\n 6: shared.DomainNotActiveError domainNotActiveError,\n 7: shared.LimitExceededError limitExceededError,\n 8: shared.ServiceBusyError serviceBusyError,\n 10: shared.WorkflowExecutionAlreadyCompletedError workflowExecutionAlreadyCompletedError,\n )\n\n /**\n * ScheduleDecisionTask is used for creating a decision task for already started workflow execution. This is mainly\n * used by transfer queue processor during the processing of StartChildWorkflowExecution task, where it first starts\n * child execution without creating the decision task and then calls this API after updating the mutable state of\n * parent execution.\n **/\n void ScheduleDecisionTask(1: ScheduleDecisionTaskRequest scheduleRequest)\n throws (\n 1: shared.BadRequestError badRequestError,\n 2: shared.InternalServiceError internalServiceError,\n 3: shared.EntityNotExistsError entityNotExistError,\n 4: ShardOwnershipLostError shardOwnershipLostError,\n 5: shared.DomainNotActiveError domainNotActiveError,\n 6: shared.LimitExceededError limitExceededError,\n 7: shared.ServiceBusyError serviceBusyError,\n 8: shared.WorkflowExecutionAlreadyCompletedError workflowExecutionAlreadyCompletedError,\n )\n\n /**\n * RecordChildExecutionCompleted is used for reporting the completion of child workflow execution to parent.\n * This is mainly called by transfer queue processor during the processing of DeleteExecution task.\n **/\n void RecordChildExecutionCompleted(1: RecordChildExecutionCompletedRequest completionRequest)\n throws (\n 1: shared.BadRequestError badRequestError,\n 2: shared.InternalServiceError internalServiceError,\n 3: shared.EntityNotExistsError entityNotExistError,\n 4: ShardOwnershipLostError shardOwnershipLostError,\n 5: shared.DomainNotActiveError domainNotActiveError,\n 6: shared.LimitExceededError limitExceededError,\n 7: shared.ServiceBusyError serviceBusyError,\n 8: shared.WorkflowExecutionAlreadyCompletedError workflowExecutionAlreadyCompletedError,\n )\n\n /**\n * DescribeWorkflowExecution returns information about the specified workflow execution.\n **/\n shared.DescribeWorkflowExecutionResponse DescribeWorkflowExecution(1: DescribeWorkflowExecutionRequest describeRequest)\n throws (\n 1: shared.BadRequestError badRequestError,\n 2: shared.InternalServiceError internalServiceError,\n 3: shared.EntityNotExistsError entityNotExistError,\n 4: ShardOwnershipLostError shardOwnershipLostError,\n 5: shared.LimitExceededError limitExceededError,\n 6: shared.ServiceBusyError serviceBusyError,\n )\n\n void ReplicateEventsV2(1: ReplicateEventsV2Request replicateV2Request)\n throws (\n 1: shared.BadRequestError badRequestError,\n 2: shared.InternalServiceError internalServiceError,\n 3: shared.EntityNotExistsError entityNotExistError,\n 4: ShardOwnershipLostError shardOwnershipLostError,\n 5: shared.LimitExceededError limitExceededError,\n 6: shared.RetryTaskV2Error retryTaskError,\n 7: shared.ServiceBusyError serviceBusyError,\n )\n\n /**\n * SyncShardStatus sync the status between shards\n **/\n void SyncShardStatus(1: SyncShardStatusRequest syncShardStatusRequest)\n throws (\n 1: shared.BadRequestError badRequestError,\n 2: shared.InternalServiceError internalServiceError,\n 4: ShardOwnershipLostError shardOwnershipLostError,\n 5: shared.LimitExceededError limitExceededError,\n 6: shared.ServiceBusyError serviceBusyError,\n )\n\n /**\n * SyncActivity sync the activity status\n **/\n void SyncActivity(1: SyncActivityRequest syncActivityRequest)\n throws (\n 1: shared.BadRequestError badRequestError,\n 2: shared.InternalServiceError internalServiceError,\n 3: shared.EntityNotExistsError entityNotExistError,\n 4: ShardOwnershipLostError shardOwnershipLostError,\n 5: shared.ServiceBusyError serviceBusyError,\n 7: shared.RetryTaskV2Error retryTaskV2Error,\n )\n\n /**\n * DescribeMutableState returns information about the internal states of workflow mutable state.\n **/\n DescribeMutableStateResponse DescribeMutableState(1: DescribeMutableStateRequest request)\n throws (\n 1: shared.BadRequestError badRequestError,\n 2: shared.InternalServiceError internalServiceError,\n 3: shared.EntityNotExistsError entityNotExistError,\n 4: shared.AccessDeniedError accessDeniedError,\n 5: ShardOwnershipLostError shardOwnershipLostError,\n 6: shared.LimitExceededError limitExceededError,\n )\n\n /**\n * DescribeHistoryHost returns information about the internal states of a history host\n **/\n shared.DescribeHistoryHostResponse DescribeHistoryHost(1: shared.DescribeHistoryHostRequest request)\n throws (\n 1: shared.BadRequestError badRequestError,\n 2: shared.InternalServiceError internalServiceError,\n 3: shared.AccessDeniedError accessDeniedError,\n )\n\n /**\n * CloseShard close the shard\n **/\n void CloseShard(1: shared.CloseShardRequest request)\n throws (\n 1: shared.BadRequestError badRequestError,\n 2: shared.InternalServiceError internalServiceError,\n 3: shared.AccessDeniedError accessDeniedError,\n )\n\n /**\n * RemoveTask remove task based on type, taskid, shardid\n **/\n void RemoveTask(1: shared.RemoveTaskRequest request)\n throws (\n 1: shared.BadRequestError badRequestError,\n 2: shared.InternalServiceError internalServiceError,\n 3: shared.AccessDeniedError accessDeniedError,\n )\n\n /**\n * ResetQueue reset processing queue state based on cluster name and type\n **/\n void ResetQueue(1: shared.ResetQueueRequest request)\n throws (\n 1: shared.BadRequestError badRequestError,\n 2: shared.InternalServiceError internalServiceError,\n 3: shared.AccessDeniedError accessDeniedError,\n )\n\n /**\n * DescribeQueue return queue states based on cluster name and type\n **/\n shared.DescribeQueueResponse DescribeQueue(1: shared.DescribeQueueRequest request)\n throws (\n 1: shared.BadRequestError badRequestError,\n 2: shared.InternalServiceError internalServiceError,\n 3: shared.AccessDeniedError accessDeniedError,\n )\n\n /**\n * GetReplicationMessages return replication messages based on the read level\n **/\n replicator.GetReplicationMessagesResponse GetReplicationMessages(1: replicator.GetReplicationMessagesRequest request)\n throws (\n 1: shared.BadRequestError badRequestError,\n 2: shared.InternalServiceError internalServiceError,\n 3: shared.LimitExceededError limitExceededError,\n 4: shared.ServiceBusyError serviceBusyError,\n 5: shared.ClientVersionNotSupportedError clientVersionNotSupportedError,\n )\n\n /**\n * GetDLQReplicationMessages return replication messages based on dlq info\n **/\n replicator.GetDLQReplicationMessagesResponse GetDLQReplicationMessages(1: replicator.GetDLQReplicationMessagesRequest request)\n throws (\n 1: shared.BadRequestError badRequestError,\n 2: shared.InternalServiceError internalServiceError,\n 3: shared.ServiceBusyError serviceBusyError,\n 4: shared.EntityNotExistsError entityNotExistError,\n )\n\n /**\n * QueryWorkflow returns query result for a specified workflow execution\n **/\n QueryWorkflowResponse QueryWorkflow(1: QueryWorkflowRequest queryRequest)\n\tthrows (\n\t 1: shared.BadRequestError badRequestError,\n\t 2: shared.InternalServiceError internalServiceError,\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 * ReapplyEvents applies stale events to the current workflow and current run\n **/\n void ReapplyEvents(1: ReapplyEventsRequest reapplyEventsRequest)\n throws (\n 1: shared.BadRequestError badRequestError,\n 2: shared.InternalServiceError internalServiceError,\n 3: shared.DomainNotActiveError domainNotActiveError,\n 4: shared.LimitExceededError limitExceededError,\n 5: shared.ServiceBusyError serviceBusyError,\n 6: ShardOwnershipLostError shardOwnershipLostError,\n 7: shared.EntityNotExistsError entityNotExistError,\n )\n\n /**\n * RefreshWorkflowTasks refreshes all tasks of a workflow\n **/\n void RefreshWorkflowTasks(1: RefreshWorkflowTasksRequest request)\n throws (\n 1: shared.BadRequestError badRequestError,\n 2: shared.InternalServiceError internalServiceError,\n 3: shared.DomainNotActiveError domainNotActiveError,\n 4: ShardOwnershipLostError shardOwnershipLostError,\n 5: shared.ServiceBusyError serviceBusyError,\n 6: shared.EntityNotExistsError entityNotExistError,\n )\n\n /**\n * ReadDLQMessages returns messages from DLQ\n **/\n replicator.ReadDLQMessagesResponse ReadDLQMessages(1: replicator.ReadDLQMessagesRequest request)\n throws (\n 1: shared.BadRequestError badRequestError,\n 2: shared.InternalServiceError internalServiceError,\n 3: shared.ServiceBusyError serviceBusyError,\n 4: shared.EntityNotExistsError entityNotExistError,\n 5: ShardOwnershipLostError shardOwnershipLostError,\n )\n\n /**\n * PurgeDLQMessages purges messages from DLQ\n **/\n void PurgeDLQMessages(1: replicator.PurgeDLQMessagesRequest request)\n throws (\n 1: shared.BadRequestError badRequestError,\n 2: shared.InternalServiceError internalServiceError,\n 3: shared.ServiceBusyError serviceBusyError,\n 4: shared.EntityNotExistsError entityNotExistError,\n 5: ShardOwnershipLostError shardOwnershipLostError,\n )\n\n /**\n * MergeDLQMessages merges messages from DLQ\n **/\n replicator.MergeDLQMessagesResponse MergeDLQMessages(1: replicator.MergeDLQMessagesRequest request)\n throws (\n 1: shared.BadRequestError badRequestError,\n 2: shared.InternalServiceError internalServiceError,\n 3: shared.ServiceBusyError serviceBusyError,\n 4: shared.EntityNotExistsError entityNotExistError,\n 5: ShardOwnershipLostError shardOwnershipLostError,\n )\n\n /**\n * NotifyFailoverMarkers sends failover marker to the failover coordinator\n **/\n void NotifyFailoverMarkers(1: NotifyFailoverMarkersRequest request)\n throws (\n 1: shared.BadRequestError badRequestError,\n 2: shared.InternalServiceError internalServiceError,\n 3: shared.ServiceBusyError serviceBusyError,\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\"\ninclude \"replicator.thrift\"\n\nnamespace java com.uber.cadence.history\n\nexception EventAlreadyStartedError {\n 1: required string message\n}\n\nexception ShardOwnershipLostError {\n 10: optional string message\n 20: optional string owner\n}\n\nstruct ParentExecutionInfo {\n 10: optional string domainUUID\n 15: optional string domain\n 20: optional shared.WorkflowExecution execution\n 30: optional i64 (js.type = \"Long\") initiatedId\n}\n\nstruct StartWorkflowExecutionRequest {\n 10: optional string domainUUID\n 20: optional shared.StartWorkflowExecutionRequest startRequest\n 30: optional ParentExecutionInfo parentExecutionInfo\n 40: optional i32 attempt\n 50: optional i64 (js.type = \"Long\") expirationTimestamp\n 55: optional shared.ContinueAsNewInitiator continueAsNewInitiator\n 56: optional string continuedFailureReason\n 57: optional binary continuedFailureDetails\n 58: optional binary lastCompletionResult\n 60: optional i32 firstDecisionTaskBackoffSeconds\n}\n\nstruct DescribeMutableStateRequest{\n 10: optional string domainUUID\n 20: optional shared.WorkflowExecution execution\n}\n\nstruct DescribeMutableStateResponse{\n 30: optional string mutableStateInCache\n 40: optional string mutableStateInDatabase\n}\n\nstruct GetMutableStateRequest {\n 10: optional string domainUUID\n 20: optional shared.WorkflowExecution execution\n 30: optional i64 (js.type = \"Long\") expectedNextEventId\n 40: optional binary currentBranchToken\n}\n\nstruct GetMutableStateResponse {\n 10: optional shared.WorkflowExecution execution\n 20: optional shared.WorkflowType workflowType\n 30: optional i64 (js.type = \"Long\") NextEventId\n 35: optional i64 (js.type = \"Long\") PreviousStartedEventId\n 40: optional i64 (js.type = \"Long\") LastFirstEventId\n 50: optional shared.TaskList taskList\n 60: optional shared.TaskList stickyTaskList\n 70: optional string clientLibraryVersion\n 80: optional string clientFeatureVersion\n 90: optional string clientImpl\n //TODO: isWorkflowRunning is deprecating. workflowState is going replace this field\n 100: optional bool isWorkflowRunning\n 110: optional i32 stickyTaskListScheduleToStartTimeout\n 120: optional i32 eventStoreVersion\n 130: optional binary currentBranchToken\n // TODO: when migrating to gRPC, make this a enum\n // TODO: when migrating to gRPC, unify internal & external representation\n // NOTE: workflowState & workflowCloseState are the same as persistence representation\n 150: optional i32 workflowState\n 160: optional i32 workflowCloseState\n 170: optional shared.VersionHistories versionHistories\n 180: optional bool isStickyTaskListEnabled\n}\n\nstruct PollMutableStateRequest {\n 10: optional string domainUUID\n 20: optional shared.WorkflowExecution execution\n 30: optional i64 (js.type = \"Long\") expectedNextEventId\n 40: optional binary currentBranchToken\n}\n\nstruct PollMutableStateResponse {\n 10: optional shared.WorkflowExecution execution\n 20: optional shared.WorkflowType workflowType\n 30: optional i64 (js.type = \"Long\") NextEventId\n 35: optional i64 (js.type = \"Long\") PreviousStartedEventId\n 40: optional i64 (js.type = \"Long\") LastFirstEventId\n 50: optional shared.TaskList taskList\n 60: optional shared.TaskList stickyTaskList\n 70: optional string clientLibraryVersion\n 80: optional string clientFeatureVersion\n 90: optional string clientImpl\n 100: optional i32 stickyTaskListScheduleToStartTimeout\n 110: optional binary currentBranchToken\n 130: optional shared.VersionHistories versionHistories\n // TODO: when migrating to gRPC, make this a enum\n // TODO: when migrating to gRPC, unify internal & external representation\n // NOTE: workflowState & workflowCloseState are the same as persistence representation\n 140: optional i32 workflowState\n 150: optional i32 workflowCloseState\n}\n\nstruct ResetStickyTaskListRequest {\n 10: optional string domainUUID\n 20: optional shared.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 RespondDecisionTaskCompletedRequest {\n 10: optional string domainUUID\n 20: optional shared.RespondDecisionTaskCompletedRequest completeRequest\n}\n\nstruct RespondDecisionTaskCompletedResponse {\n 10: optional RecordDecisionTaskStartedResponse startedResponse\n 20: optional map activitiesToDispatchLocally\n}\n\nstruct RespondDecisionTaskFailedRequest {\n 10: optional string domainUUID\n 20: optional shared.RespondDecisionTaskFailedRequest failedRequest\n}\n\nstruct RecordActivityTaskHeartbeatRequest {\n 10: optional string domainUUID\n 20: optional shared.RecordActivityTaskHeartbeatRequest heartbeatRequest\n}\n\nstruct RespondActivityTaskCompletedRequest {\n 10: optional string domainUUID\n 20: optional shared.RespondActivityTaskCompletedRequest completeRequest\n}\n\nstruct RespondActivityTaskFailedRequest {\n 10: optional string domainUUID\n 20: optional shared.RespondActivityTaskFailedRequest failedRequest\n}\n\nstruct RespondActivityTaskCanceledRequest {\n 10: optional string domainUUID\n 20: optional shared.RespondActivityTaskCanceledRequest cancelRequest\n}\n\nstruct RefreshWorkflowTasksRequest {\n 10: optional string domainUIID\n 20: optional shared.RefreshWorkflowTasksRequest request\n}\n\nstruct RecordActivityTaskStartedRequest {\n 10: optional string domainUUID\n 20: optional shared.WorkflowExecution workflowExecution\n 30: optional i64 (js.type = \"Long\") scheduleId\n 40: optional i64 (js.type = \"Long\") taskId\n 45: optional string requestId // Unique id of each poll request. Used to ensure at most once delivery of tasks.\n 50: optional shared.PollForActivityTaskRequest pollRequest\n}\n\nstruct RecordActivityTaskStartedResponse {\n 20: optional shared.HistoryEvent scheduledEvent\n 30: optional i64 (js.type = \"Long\") startedTimestamp\n 40: optional i64 (js.type = \"Long\") attempt\n 50: optional i64 (js.type = \"Long\") scheduledTimestampOfThisAttempt\n 60: optional binary heartbeatDetails\n 70: optional shared.WorkflowType workflowType\n 80: optional string workflowDomain\n}\n\nstruct RecordDecisionTaskStartedRequest {\n 10: optional string domainUUID\n 20: optional shared.WorkflowExecution workflowExecution\n 30: optional i64 (js.type = \"Long\") scheduleId\n 40: optional i64 (js.type = \"Long\") taskId\n 45: optional string requestId // Unique id of each poll request. Used to ensure at most once delivery of tasks.\n 50: optional shared.PollForDecisionTaskRequest pollRequest\n}\n\nstruct RecordDecisionTaskStartedResponse {\n 10: optional shared.WorkflowType workflowType\n 20: optional i64 (js.type = \"Long\") previousStartedEventId\n 30: optional i64 (js.type = \"Long\") scheduledEventId\n 40: optional i64 (js.type = \"Long\") startedEventId\n 50: optional i64 (js.type = \"Long\") nextEventId\n 60: optional i64 (js.type = \"Long\") attempt\n 70: optional bool stickyExecutionEnabled\n 80: optional shared.TransientDecisionInfo decisionInfo\n 90: optional shared.TaskList WorkflowExecutionTaskList\n 100: optional i32 eventStoreVersion\n 110: optional binary branchToken\n 120: optional i64 (js.type = \"Long\") scheduledTimestamp\n 130: optional i64 (js.type = \"Long\") startedTimestamp\n 140: optional map queries\n}\n\nstruct SignalWorkflowExecutionRequest {\n 10: optional string domainUUID\n 20: optional shared.SignalWorkflowExecutionRequest signalRequest\n 30: optional shared.WorkflowExecution externalWorkflowExecution\n 40: optional bool childWorkflowOnly\n}\n\nstruct SignalWithStartWorkflowExecutionRequest {\n 10: optional string domainUUID\n 20: optional shared.SignalWithStartWorkflowExecutionRequest signalWithStartRequest\n}\n\nstruct RemoveSignalMutableStateRequest {\n 10: optional string domainUUID\n 20: optional shared.WorkflowExecution workflowExecution\n 30: optional string requestId\n}\n\nstruct TerminateWorkflowExecutionRequest {\n 10: optional string domainUUID\n 20: optional shared.TerminateWorkflowExecutionRequest terminateRequest\n}\n\nstruct ResetWorkflowExecutionRequest {\n 10: optional string domainUUID\n 20: optional shared.ResetWorkflowExecutionRequest resetRequest\n}\n\nstruct RequestCancelWorkflowExecutionRequest {\n 10: optional string domainUUID\n 20: optional shared.RequestCancelWorkflowExecutionRequest cancelRequest\n 30: optional i64 (js.type = \"Long\") externalInitiatedEventId\n 40: optional shared.WorkflowExecution externalWorkflowExecution\n 50: optional bool childWorkflowOnly\n}\n\nstruct ScheduleDecisionTaskRequest {\n 10: optional string domainUUID\n 20: optional shared.WorkflowExecution workflowExecution\n 30: optional bool isFirstDecision\n}\n\nstruct DescribeWorkflowExecutionRequest {\n 10: optional string domainUUID\n 20: optional shared.DescribeWorkflowExecutionRequest request\n}\n\n/**\n* RecordChildExecutionCompletedRequest is used for reporting the completion of child execution to parent workflow\n* execution which started it. When a child execution is completed it creates this request and calls the\n* RecordChildExecutionCompleted API with the workflowExecution of parent. It also sets the completedExecution of the\n* child as it could potentially be different than the ChildExecutionStartedEvent of parent in the situation when\n* child creates multiple runs through ContinueAsNew before finally completing.\n**/\nstruct RecordChildExecutionCompletedRequest {\n 10: optional string domainUUID\n 20: optional shared.WorkflowExecution workflowExecution\n 30: optional i64 (js.type = \"Long\") initiatedId\n 40: optional shared.WorkflowExecution completedExecution\n 50: optional shared.HistoryEvent completionEvent\n}\n\nstruct ReplicateEventsV2Request {\n 10: optional string domainUUID\n 20: optional shared.WorkflowExecution workflowExecution\n 30: optional list versionHistoryItems\n 40: optional shared.DataBlob events\n // new run events does not need version history since there is no prior events\n 60: optional shared.DataBlob newRunEvents\n}\n\nstruct SyncShardStatusRequest {\n 10: optional string sourceCluster\n 20: optional i64 (js.type = \"Long\") shardId\n 30: optional i64 (js.type = \"Long\") timestamp\n}\n\nstruct SyncActivityRequest {\n 10: optional string domainId\n 20: optional string workflowId\n 30: optional string runId\n 40: optional i64 (js.type = \"Long\") version\n 50: optional i64 (js.type = \"Long\") scheduledId\n 60: optional i64 (js.type = \"Long\") scheduledTime\n 70: optional i64 (js.type = \"Long\") startedId\n 80: optional i64 (js.type = \"Long\") startedTime\n 90: optional i64 (js.type = \"Long\") lastHeartbeatTime\n 100: optional binary details\n 110: optional i32 attempt\n 120: optional string lastFailureReason\n 130: optional string lastWorkerIdentity\n 140: optional binary lastFailureDetails\n 150: optional shared.VersionHistory versionHistory\n}\n\nstruct QueryWorkflowRequest {\n 10: optional string domainUUID\n 20: optional shared.QueryWorkflowRequest request\n}\n\nstruct QueryWorkflowResponse {\n 10: optional shared.QueryWorkflowResponse response\n}\n\nstruct ReapplyEventsRequest {\n 10: optional string domainUUID\n 20: optional shared.ReapplyEventsRequest request\n}\n\nstruct FailoverMarkerToken {\n 10: optional list shardIDs\n 20: optional replicator.FailoverMarkerAttributes failoverMarker\n}\n\nstruct NotifyFailoverMarkersRequest {\n 10: optional list failoverMarkerTokens\n}\n\nstruct ProcessingQueueStates {\n 10: optional map> statesByCluster\n}\n\nstruct ProcessingQueueState {\n 10: optional i32 level\n 20: optional i64 ackLevel\n 30: optional i64 maxLevel\n 40: optional DomainFilter domainFilter\n}\n\nstruct DomainFilter {\n 10: optional list domainIDs\n 20: optional bool reverseMatch\n}\n\n/**\n* HistoryService provides API to start a new long running workflow instance, as well as query and update the history\n* of workflow instances already created.\n**/\nservice HistoryService {\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: StartWorkflowExecutionRequest startRequest)\n throws (\n 1: shared.BadRequestError badRequestError,\n 2: shared.InternalServiceError internalServiceError,\n 3: shared.WorkflowExecutionAlreadyStartedError sessionAlreadyExistError,\n 4: ShardOwnershipLostError shardOwnershipLostError,\n 5: shared.DomainNotActiveError domainNotActiveError,\n 6: shared.LimitExceededError limitExceededError,\n 7: shared.ServiceBusyError serviceBusyError,\n )\n\n /**\n * Returns the information from mutable state of workflow execution.\n * It fails with 'EntityNotExistError' if specified workflow execution in unknown to the service.\n * It returns CurrentBranchChangedError if the workflow version branch has changed.\n **/\n GetMutableStateResponse GetMutableState(1: GetMutableStateRequest getRequest)\n throws (\n 1: shared.BadRequestError badRequestError,\n 2: shared.InternalServiceError internalServiceError,\n 3: shared.EntityNotExistsError entityNotExistError,\n 4: ShardOwnershipLostError shardOwnershipLostError,\n 5: shared.LimitExceededError limitExceededError,\n 6: shared.ServiceBusyError serviceBusyError,\n 7: shared.CurrentBranchChangedError currentBranchChangedError,\n )\n\n /**\n * Returns the information from mutable state of workflow execution.\n * It fails with 'EntityNotExistError' if specified workflow execution in unknown to the service.\n * It returns CurrentBranchChangedError if the workflow version branch has changed.\n **/\n PollMutableStateResponse PollMutableState(1: PollMutableStateRequest pollRequest)\n throws (\n 1: shared.BadRequestError badRequestError,\n 2: shared.InternalServiceError internalServiceError,\n 3: shared.EntityNotExistsError entityNotExistError,\n 4: ShardOwnershipLostError shardOwnershipLostError,\n 5: shared.LimitExceededError limitExceededError,\n 6: shared.ServiceBusyError serviceBusyError,\n 7: shared.CurrentBranchChangedError currentBranchChangedError,\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 ResetStickyTaskListResponse ResetStickyTaskList(1: ResetStickyTaskListRequest resetRequest)\n throws (\n 1: shared.BadRequestError badRequestError,\n 2: shared.InternalServiceError internalServiceError,\n 3: shared.EntityNotExistsError entityNotExistError,\n 4: ShardOwnershipLostError shardOwnershipLostError,\n 5: shared.LimitExceededError limitExceededError,\n 6: shared.ServiceBusyError serviceBusyError,\n 7: shared.WorkflowExecutionAlreadyCompletedError workflowExecutionAlreadyCompletedError,\n )\n\n /**\n * RecordDecisionTaskStarted is called by the Matchingservice before it hands a decision task to the application worker in response to\n * a PollForDecisionTask call. It records in the history the event that the decision task has started. It will return 'EventAlreadyStartedError',\n * if the workflow's execution history already includes a record of the event starting.\n **/\n RecordDecisionTaskStartedResponse RecordDecisionTaskStarted(1: RecordDecisionTaskStartedRequest addRequest)\n throws (\n 1: shared.BadRequestError badRequestError,\n 2: shared.InternalServiceError internalServiceError,\n 3: EventAlreadyStartedError eventAlreadyStartedError,\n 4: shared.EntityNotExistsError entityNotExistError,\n 5: ShardOwnershipLostError shardOwnershipLostError,\n 6: shared.DomainNotActiveError domainNotActiveError,\n 7: shared.LimitExceededError limitExceededError,\n 8: shared.ServiceBusyError serviceBusyError,\n 9: shared.WorkflowExecutionAlreadyCompletedError workflowExecutionAlreadyCompletedError,\n )\n\n /**\n * RecordActivityTaskStarted is called by the Matchingservice before it hands a decision task to the application worker in response to\n * a PollForActivityTask call. It records in the history the event that the decision task has started. It will return 'EventAlreadyStartedError',\n * if the workflow's execution history already includes a record of the event starting.\n **/\n RecordActivityTaskStartedResponse RecordActivityTaskStarted(1: RecordActivityTaskStartedRequest addRequest)\n throws (\n 1: shared.BadRequestError badRequestError,\n 2: shared.InternalServiceError internalServiceError,\n 3: EventAlreadyStartedError eventAlreadyStartedError,\n 4: shared.EntityNotExistsError entityNotExistError,\n 5: ShardOwnershipLostError shardOwnershipLostError,\n 6: shared.DomainNotActiveError domainNotActiveError,\n 7: shared.LimitExceededError limitExceededError,\n 8: shared.ServiceBusyError serviceBusyError,\n 9: shared.WorkflowExecutionAlreadyCompletedError workflowExecutionAlreadyCompletedError,\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 **/\n RespondDecisionTaskCompletedResponse RespondDecisionTaskCompleted(1: RespondDecisionTaskCompletedRequest completeRequest)\n throws (\n 1: shared.BadRequestError badRequestError,\n 2: shared.InternalServiceError internalServiceError,\n 3: shared.EntityNotExistsError entityNotExistError,\n 4: ShardOwnershipLostError shardOwnershipLostError,\n 5: shared.DomainNotActiveError domainNotActiveError,\n 6: shared.LimitExceededError limitExceededError,\n 7: shared.ServiceBusyError serviceBusyError,\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 ny panics during DecisionTask processing.\n **/\n void RespondDecisionTaskFailed(1: RespondDecisionTaskFailedRequest failedRequest)\n throws (\n 1: shared.BadRequestError badRequestError,\n 2: shared.InternalServiceError internalServiceError,\n 3: shared.EntityNotExistsError entityNotExistError,\n 4: ShardOwnershipLostError shardOwnershipLostError,\n 5: shared.DomainNotActiveError domainNotActiveError,\n 6: shared.LimitExceededError limitExceededError,\n 7: shared.ServiceBusyError serviceBusyError,\n 8: shared.WorkflowExecutionAlreadyCompletedError workflowExecutionAlreadyCompletedError,\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: RecordActivityTaskHeartbeatRequest heartbeatRequest)\n throws (\n 1: shared.BadRequestError badRequestError,\n 2: shared.InternalServiceError internalServiceError,\n 3: shared.EntityNotExistsError entityNotExistError,\n 4: ShardOwnershipLostError shardOwnershipLostError,\n 5: shared.DomainNotActiveError domainNotActiveError,\n 6: shared.LimitExceededError limitExceededError,\n 7: shared.ServiceBusyError serviceBusyError,\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: RespondActivityTaskCompletedRequest completeRequest)\n throws (\n 1: shared.BadRequestError badRequestError,\n 2: shared.InternalServiceError internalServiceError,\n 3: shared.EntityNotExistsError entityNotExistError,\n 4: ShardOwnershipLostError shardOwnershipLostError,\n 5: shared.DomainNotActiveError domainNotActiveError,\n 6: shared.LimitExceededError limitExceededError,\n 7: shared.ServiceBusyError serviceBusyError,\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: RespondActivityTaskFailedRequest failRequest)\n throws (\n 1: shared.BadRequestError badRequestError,\n 2: shared.InternalServiceError internalServiceError,\n 3: shared.EntityNotExistsError entityNotExistError,\n 4: ShardOwnershipLostError shardOwnershipLostError,\n 5: shared.DomainNotActiveError domainNotActiveError,\n 6: shared.LimitExceededError limitExceededError,\n 7: shared.ServiceBusyError serviceBusyError,\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: RespondActivityTaskCanceledRequest canceledRequest)\n throws (\n 1: shared.BadRequestError badRequestError,\n 2: shared.InternalServiceError internalServiceError,\n 3: shared.EntityNotExistsError entityNotExistError,\n 4: ShardOwnershipLostError shardOwnershipLostError,\n 5: shared.DomainNotActiveError domainNotActiveError,\n 6: shared.LimitExceededError limitExceededError,\n 7: shared.ServiceBusyError serviceBusyError,\n 8: 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: SignalWorkflowExecutionRequest signalRequest)\n throws (\n 1: shared.BadRequestError badRequestError,\n 2: shared.InternalServiceError internalServiceError,\n 3: shared.EntityNotExistsError entityNotExistError,\n 4: ShardOwnershipLostError shardOwnershipLostError,\n 5: shared.DomainNotActiveError domainNotActiveError,\n 6: shared.ServiceBusyError serviceBusyError,\n 7: shared.LimitExceededError limitExceededError,\n 8: shared.WorkflowExecutionAlreadyCompletedError workflowExecutionAlreadyCompletedError,\n )\n\n /**\n * SignalWithStartWorkflowExecution is used to ensure sending a signal event to a workflow execution.\n * If workflow is running, this results in WorkflowExecutionSignaled event recorded in the history\n * and a decision task being created for the execution.\n * If workflow is not running or not found, it will first try start workflow with given WorkflowIDResuePolicy,\n * and record WorkflowExecutionStarted and WorkflowExecutionSignaled event in case of success.\n * It will return `WorkflowExecutionAlreadyStartedError` if start workflow failed with given policy.\n **/\n shared.StartWorkflowExecutionResponse SignalWithStartWorkflowExecution(1: SignalWithStartWorkflowExecutionRequest signalWithStartRequest)\n throws (\n 1: shared.BadRequestError badRequestError,\n 2: shared.InternalServiceError internalServiceError,\n 3: ShardOwnershipLostError shardOwnershipLostError,\n 4: shared.DomainNotActiveError domainNotActiveError,\n 5: shared.LimitExceededError limitExceededError,\n 6: shared.ServiceBusyError serviceBusyError,\n 7: shared.WorkflowExecutionAlreadyStartedError workflowAlreadyStartedError,\n )\n\n /**\n * RemoveSignalMutableState is used to remove a signal request ID that was previously recorded. This is currently\n * used to clean execution info when signal decision finished.\n **/\n void RemoveSignalMutableState(1: RemoveSignalMutableStateRequest removeRequest)\n throws (\n 1: shared.BadRequestError badRequestError,\n 2: shared.InternalServiceError internalServiceError,\n 3: shared.EntityNotExistsError entityNotExistError,\n 4: ShardOwnershipLostError shardOwnershipLostError,\n 5: shared.DomainNotActiveError domainNotActiveError,\n 6: shared.LimitExceededError limitExceededError,\n 7: shared.ServiceBusyError serviceBusyError,\n 8: shared.WorkflowExecutionAlreadyCompletedError workflowExecutionAlreadyCompletedError,\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: TerminateWorkflowExecutionRequest terminateRequest)\n throws (\n 1: shared.BadRequestError badRequestError,\n 2: shared.InternalServiceError internalServiceError,\n 3: shared.EntityNotExistsError entityNotExistError,\n 4: ShardOwnershipLostError shardOwnershipLostError,\n 5: shared.DomainNotActiveError domainNotActiveError,\n 6: shared.LimitExceededError limitExceededError,\n 7: shared.ServiceBusyError serviceBusyError,\n 8: shared.WorkflowExecutionAlreadyCompletedError workflowExecutionAlreadyCompletedError,\n )\n\n /**\n * ResetWorkflowExecution reset an existing workflow execution by a firstEventID of a existing event batch\n * in the history and immediately terminating the current execution instance.\n * After reset, the history will grow from nextFirstEventID.\n **/\n shared.ResetWorkflowExecutionResponse ResetWorkflowExecution(1: ResetWorkflowExecutionRequest resetRequest)\n throws (\n 1: shared.BadRequestError badRequestError,\n 2: shared.InternalServiceError internalServiceError,\n 3: shared.EntityNotExistsError entityNotExistError,\n 4: ShardOwnershipLostError shardOwnershipLostError,\n 5: shared.DomainNotActiveError domainNotActiveError,\n 6: shared.LimitExceededError limitExceededError,\n 7: shared.ServiceBusyError serviceBusyError,\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\n * 'WorkflowExecutionAlreadyCompletedError' if the workflow is not valid\n * anymore due to completion or with 'EntityNotExistsError' if worfklow doesn't exist.\n **/\n void RequestCancelWorkflowExecution(1: RequestCancelWorkflowExecutionRequest cancelRequest)\n throws (\n 1: shared.BadRequestError badRequestError,\n 2: shared.InternalServiceError internalServiceError,\n 3: shared.EntityNotExistsError entityNotExistError,\n 4: ShardOwnershipLostError shardOwnershipLostError,\n 5: shared.CancellationAlreadyRequestedError cancellationAlreadyRequestedError,\n 6: shared.DomainNotActiveError domainNotActiveError,\n 7: shared.LimitExceededError limitExceededError,\n 8: shared.ServiceBusyError serviceBusyError,\n 10: shared.WorkflowExecutionAlreadyCompletedError workflowExecutionAlreadyCompletedError,\n )\n\n /**\n * ScheduleDecisionTask is used for creating a decision task for already started workflow execution. This is mainly\n * used by transfer queue processor during the processing of StartChildWorkflowExecution task, where it first starts\n * child execution without creating the decision task and then calls this API after updating the mutable state of\n * parent execution.\n **/\n void ScheduleDecisionTask(1: ScheduleDecisionTaskRequest scheduleRequest)\n throws (\n 1: shared.BadRequestError badRequestError,\n 2: shared.InternalServiceError internalServiceError,\n 3: shared.EntityNotExistsError entityNotExistError,\n 4: ShardOwnershipLostError shardOwnershipLostError,\n 5: shared.DomainNotActiveError domainNotActiveError,\n 6: shared.LimitExceededError limitExceededError,\n 7: shared.ServiceBusyError serviceBusyError,\n 8: shared.WorkflowExecutionAlreadyCompletedError workflowExecutionAlreadyCompletedError,\n )\n\n /**\n * RecordChildExecutionCompleted is used for reporting the completion of child workflow execution to parent.\n * This is mainly called by transfer queue processor during the processing of DeleteExecution task.\n **/\n void RecordChildExecutionCompleted(1: RecordChildExecutionCompletedRequest completionRequest)\n throws (\n 1: shared.BadRequestError badRequestError,\n 2: shared.InternalServiceError internalServiceError,\n 3: shared.EntityNotExistsError entityNotExistError,\n 4: ShardOwnershipLostError shardOwnershipLostError,\n 5: shared.DomainNotActiveError domainNotActiveError,\n 6: shared.LimitExceededError limitExceededError,\n 7: shared.ServiceBusyError serviceBusyError,\n 8: shared.WorkflowExecutionAlreadyCompletedError workflowExecutionAlreadyCompletedError,\n )\n\n /**\n * DescribeWorkflowExecution returns information about the specified workflow execution.\n **/\n shared.DescribeWorkflowExecutionResponse DescribeWorkflowExecution(1: DescribeWorkflowExecutionRequest describeRequest)\n throws (\n 1: shared.BadRequestError badRequestError,\n 2: shared.InternalServiceError internalServiceError,\n 3: shared.EntityNotExistsError entityNotExistError,\n 4: ShardOwnershipLostError shardOwnershipLostError,\n 5: shared.LimitExceededError limitExceededError,\n 6: shared.ServiceBusyError serviceBusyError,\n )\n\n void ReplicateEventsV2(1: ReplicateEventsV2Request replicateV2Request)\n throws (\n 1: shared.BadRequestError badRequestError,\n 2: shared.InternalServiceError internalServiceError,\n 3: shared.EntityNotExistsError entityNotExistError,\n 4: ShardOwnershipLostError shardOwnershipLostError,\n 5: shared.LimitExceededError limitExceededError,\n 6: shared.RetryTaskV2Error retryTaskError,\n 7: shared.ServiceBusyError serviceBusyError,\n )\n\n /**\n * SyncShardStatus sync the status between shards\n **/\n void SyncShardStatus(1: SyncShardStatusRequest syncShardStatusRequest)\n throws (\n 1: shared.BadRequestError badRequestError,\n 2: shared.InternalServiceError internalServiceError,\n 4: ShardOwnershipLostError shardOwnershipLostError,\n 5: shared.LimitExceededError limitExceededError,\n 6: shared.ServiceBusyError serviceBusyError,\n )\n\n /**\n * SyncActivity sync the activity status\n **/\n void SyncActivity(1: SyncActivityRequest syncActivityRequest)\n throws (\n 1: shared.BadRequestError badRequestError,\n 2: shared.InternalServiceError internalServiceError,\n 3: shared.EntityNotExistsError entityNotExistError,\n 4: ShardOwnershipLostError shardOwnershipLostError,\n 5: shared.ServiceBusyError serviceBusyError,\n 7: shared.RetryTaskV2Error retryTaskV2Error,\n )\n\n /**\n * DescribeMutableState returns information about the internal states of workflow mutable state.\n **/\n DescribeMutableStateResponse DescribeMutableState(1: DescribeMutableStateRequest request)\n throws (\n 1: shared.BadRequestError badRequestError,\n 2: shared.InternalServiceError internalServiceError,\n 3: shared.EntityNotExistsError entityNotExistError,\n 4: shared.AccessDeniedError accessDeniedError,\n 5: ShardOwnershipLostError shardOwnershipLostError,\n 6: shared.LimitExceededError limitExceededError,\n )\n\n /**\n * DescribeHistoryHost returns information about the internal states of a history host\n **/\n shared.DescribeHistoryHostResponse DescribeHistoryHost(1: shared.DescribeHistoryHostRequest request)\n throws (\n 1: shared.BadRequestError badRequestError,\n 2: shared.InternalServiceError internalServiceError,\n 3: shared.AccessDeniedError accessDeniedError,\n )\n\n /**\n * CloseShard close the shard\n **/\n void CloseShard(1: shared.CloseShardRequest request)\n throws (\n 1: shared.BadRequestError badRequestError,\n 2: shared.InternalServiceError internalServiceError,\n 3: shared.AccessDeniedError accessDeniedError,\n )\n\n /**\n * RemoveTask remove task based on type, taskid, shardid\n **/\n void RemoveTask(1: shared.RemoveTaskRequest request)\n throws (\n 1: shared.BadRequestError badRequestError,\n 2: shared.InternalServiceError internalServiceError,\n 3: shared.AccessDeniedError accessDeniedError,\n )\n\n /**\n * ResetQueue reset processing queue state based on cluster name and type\n **/\n void ResetQueue(1: shared.ResetQueueRequest request)\n throws (\n 1: shared.BadRequestError badRequestError,\n 2: shared.InternalServiceError internalServiceError,\n 3: shared.AccessDeniedError accessDeniedError,\n )\n\n /**\n * DescribeQueue return queue states based on cluster name and type\n **/\n shared.DescribeQueueResponse DescribeQueue(1: shared.DescribeQueueRequest request)\n throws (\n 1: shared.BadRequestError badRequestError,\n 2: shared.InternalServiceError internalServiceError,\n 3: shared.AccessDeniedError accessDeniedError,\n )\n\n /**\n * GetReplicationMessages return replication messages based on the read level\n **/\n replicator.GetReplicationMessagesResponse GetReplicationMessages(1: replicator.GetReplicationMessagesRequest request)\n throws (\n 1: shared.BadRequestError badRequestError,\n 2: shared.InternalServiceError internalServiceError,\n 3: shared.LimitExceededError limitExceededError,\n 4: shared.ServiceBusyError serviceBusyError,\n 5: shared.ClientVersionNotSupportedError clientVersionNotSupportedError,\n )\n\n /**\n * GetDLQReplicationMessages return replication messages based on dlq info\n **/\n replicator.GetDLQReplicationMessagesResponse GetDLQReplicationMessages(1: replicator.GetDLQReplicationMessagesRequest request)\n throws (\n 1: shared.BadRequestError badRequestError,\n 2: shared.InternalServiceError internalServiceError,\n 3: shared.ServiceBusyError serviceBusyError,\n 4: shared.EntityNotExistsError entityNotExistError,\n )\n\n /**\n * QueryWorkflow returns query result for a specified workflow execution\n **/\n QueryWorkflowResponse QueryWorkflow(1: QueryWorkflowRequest queryRequest)\n\tthrows (\n\t 1: shared.BadRequestError badRequestError,\n\t 2: shared.InternalServiceError internalServiceError,\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 * ReapplyEvents applies stale events to the current workflow and current run\n **/\n void ReapplyEvents(1: ReapplyEventsRequest reapplyEventsRequest)\n throws (\n 1: shared.BadRequestError badRequestError,\n 2: shared.InternalServiceError internalServiceError,\n 3: shared.DomainNotActiveError domainNotActiveError,\n 4: shared.LimitExceededError limitExceededError,\n 5: shared.ServiceBusyError serviceBusyError,\n 6: ShardOwnershipLostError shardOwnershipLostError,\n 7: shared.EntityNotExistsError entityNotExistError,\n )\n\n /**\n * RefreshWorkflowTasks refreshes all tasks of a workflow\n **/\n void RefreshWorkflowTasks(1: RefreshWorkflowTasksRequest request)\n throws (\n 1: shared.BadRequestError badRequestError,\n 2: shared.InternalServiceError internalServiceError,\n 3: shared.DomainNotActiveError domainNotActiveError,\n 4: ShardOwnershipLostError shardOwnershipLostError,\n 5: shared.ServiceBusyError serviceBusyError,\n 6: shared.EntityNotExistsError entityNotExistError,\n )\n\n /**\n * ReadDLQMessages returns messages from DLQ\n **/\n replicator.ReadDLQMessagesResponse ReadDLQMessages(1: replicator.ReadDLQMessagesRequest request)\n throws (\n 1: shared.BadRequestError badRequestError,\n 2: shared.InternalServiceError internalServiceError,\n 3: shared.ServiceBusyError serviceBusyError,\n 4: shared.EntityNotExistsError entityNotExistError,\n 5: ShardOwnershipLostError shardOwnershipLostError,\n )\n\n /**\n * PurgeDLQMessages purges messages from DLQ\n **/\n void PurgeDLQMessages(1: replicator.PurgeDLQMessagesRequest request)\n throws (\n 1: shared.BadRequestError badRequestError,\n 2: shared.InternalServiceError internalServiceError,\n 3: shared.ServiceBusyError serviceBusyError,\n 4: shared.EntityNotExistsError entityNotExistError,\n 5: ShardOwnershipLostError shardOwnershipLostError,\n )\n\n /**\n * MergeDLQMessages merges messages from DLQ\n **/\n replicator.MergeDLQMessagesResponse MergeDLQMessages(1: replicator.MergeDLQMessagesRequest request)\n throws (\n 1: shared.BadRequestError badRequestError,\n 2: shared.InternalServiceError internalServiceError,\n 3: shared.ServiceBusyError serviceBusyError,\n 4: shared.EntityNotExistsError entityNotExistError,\n 5: ShardOwnershipLostError shardOwnershipLostError,\n )\n\n /**\n * NotifyFailoverMarkers sends failover marker to the failover coordinator\n **/\n void NotifyFailoverMarkers(1: NotifyFailoverMarkersRequest request)\n throws (\n 1: shared.BadRequestError badRequestError,\n 2: shared.InternalServiceError internalServiceError,\n 3: shared.ServiceBusyError serviceBusyError,\n )\n\n /**\n * GetCrossClusterTasks fetches cross cluster tasks\n **/\n shared.GetCrossClusterTasksResponse GetCrossClusterTasks(1: shared.GetCrossClusterTasksRequest request)\n throws (\n 1: shared.BadRequestError badRequestError,\n 2: shared.InternalServiceError internalServiceError,\n 3: shared.ServiceBusyError serviceBusyError,\n )\n\n /**\n * RespondCrossClusterTasksCompleted responds the result of processing cross cluster tasks\n **/\n shared.RespondCrossClusterTasksCompletedResponse RespondCrossClusterTasksCompleted(1: shared.RespondCrossClusterTasksCompletedRequest request) \n throws (\n 1: shared.BadRequestError badRequestError,\n 2: shared.InternalServiceError internalServiceError,\n 3: shared.ServiceBusyError serviceBusyError,\n 4: ShardOwnershipLostError shardOwnershipLostError,\n )\n}\n" // HistoryService_CloseShard_Args represents the arguments for the HistoryService.CloseShard function. // @@ -16101,14 +16101,14 @@ func (v *HistoryService_DescribeWorkflowExecution_Result) EnvelopeType() wire.En return wire.Reply } -// HistoryService_GetDLQReplicationMessages_Args represents the arguments for the HistoryService.GetDLQReplicationMessages function. +// HistoryService_GetCrossClusterTasks_Args represents the arguments for the HistoryService.GetCrossClusterTasks function. // -// The arguments for GetDLQReplicationMessages are sent and received over the wire as this struct. -type HistoryService_GetDLQReplicationMessages_Args struct { - Request *replicator.GetDLQReplicationMessagesRequest `json:"request,omitempty"` +// The arguments for GetCrossClusterTasks are sent and received over the wire as this struct. +type HistoryService_GetCrossClusterTasks_Args struct { + Request *shared.GetCrossClusterTasksRequest `json:"request,omitempty"` } -// ToWire translates a HistoryService_GetDLQReplicationMessages_Args struct into a Thrift-level intermediate +// ToWire translates a HistoryService_GetCrossClusterTasks_Args struct into a Thrift-level intermediate // representation. This intermediate representation may be serialized // into bytes using a ThriftRW protocol implementation. // @@ -16123,7 +16123,7 @@ type HistoryService_GetDLQReplicationMessages_Args struct { // if err := binaryProtocol.Encode(x, writer); err != nil { // return err // } -func (v *HistoryService_GetDLQReplicationMessages_Args) ToWire() (wire.Value, error) { +func (v *HistoryService_GetCrossClusterTasks_Args) ToWire() (wire.Value, error) { var ( fields [1]wire.Field i int = 0 @@ -16143,17 +16143,17 @@ func (v *HistoryService_GetDLQReplicationMessages_Args) ToWire() (wire.Value, er return wire.NewValueStruct(wire.Struct{Fields: fields[:i]}), nil } -func _GetDLQReplicationMessagesRequest_Read(w wire.Value) (*replicator.GetDLQReplicationMessagesRequest, error) { - var v replicator.GetDLQReplicationMessagesRequest +func _GetCrossClusterTasksRequest_Read(w wire.Value) (*shared.GetCrossClusterTasksRequest, error) { + var v shared.GetCrossClusterTasksRequest err := v.FromWire(w) return &v, err } -// FromWire deserializes a HistoryService_GetDLQReplicationMessages_Args struct from its Thrift-level +// FromWire deserializes a HistoryService_GetCrossClusterTasks_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 HistoryService_GetDLQReplicationMessages_Args struct +// An error is returned if we were unable to build a HistoryService_GetCrossClusterTasks_Args struct // from the provided intermediate representation. // // x, err := binaryProtocol.Decode(reader, wire.TStruct) @@ -16161,19 +16161,19 @@ func _GetDLQReplicationMessagesRequest_Read(w wire.Value) (*replicator.GetDLQRep // return nil, err // } // -// var v HistoryService_GetDLQReplicationMessages_Args +// var v HistoryService_GetCrossClusterTasks_Args // if err := v.FromWire(x); err != nil { // return nil, err // } // return &v, nil -func (v *HistoryService_GetDLQReplicationMessages_Args) FromWire(w wire.Value) error { +func (v *HistoryService_GetCrossClusterTasks_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.Request, err = _GetDLQReplicationMessagesRequest_Read(field.Value) + v.Request, err = _GetCrossClusterTasksRequest_Read(field.Value) if err != nil { return err } @@ -16185,9 +16185,9 @@ func (v *HistoryService_GetDLQReplicationMessages_Args) FromWire(w wire.Value) e return nil } -// String returns a readable string representation of a HistoryService_GetDLQReplicationMessages_Args +// String returns a readable string representation of a HistoryService_GetCrossClusterTasks_Args // struct. -func (v *HistoryService_GetDLQReplicationMessages_Args) String() string { +func (v *HistoryService_GetCrossClusterTasks_Args) String() string { if v == nil { return "" } @@ -16199,14 +16199,14 @@ func (v *HistoryService_GetDLQReplicationMessages_Args) String() string { i++ } - return fmt.Sprintf("HistoryService_GetDLQReplicationMessages_Args{%v}", strings.Join(fields[:i], ", ")) + return fmt.Sprintf("HistoryService_GetCrossClusterTasks_Args{%v}", strings.Join(fields[:i], ", ")) } -// Equals returns true if all the fields of this HistoryService_GetDLQReplicationMessages_Args match the -// provided HistoryService_GetDLQReplicationMessages_Args. +// Equals returns true if all the fields of this HistoryService_GetCrossClusterTasks_Args match the +// provided HistoryService_GetCrossClusterTasks_Args. // // This function performs a deep comparison. -func (v *HistoryService_GetDLQReplicationMessages_Args) Equals(rhs *HistoryService_GetDLQReplicationMessages_Args) bool { +func (v *HistoryService_GetCrossClusterTasks_Args) Equals(rhs *HistoryService_GetCrossClusterTasks_Args) bool { if v == nil { return rhs == nil } else if rhs == nil { @@ -16220,8 +16220,8 @@ func (v *HistoryService_GetDLQReplicationMessages_Args) Equals(rhs *HistoryServi } // MarshalLogObject implements zapcore.ObjectMarshaler, enabling -// fast logging of HistoryService_GetDLQReplicationMessages_Args. -func (v *HistoryService_GetDLQReplicationMessages_Args) MarshalLogObject(enc zapcore.ObjectEncoder) (err error) { +// fast logging of HistoryService_GetCrossClusterTasks_Args. +func (v *HistoryService_GetCrossClusterTasks_Args) MarshalLogObject(enc zapcore.ObjectEncoder) (err error) { if v == nil { return nil } @@ -16233,7 +16233,7 @@ func (v *HistoryService_GetDLQReplicationMessages_Args) MarshalLogObject(enc zap // GetRequest returns the value of Request if it is set or its // zero value if it is unset. -func (v *HistoryService_GetDLQReplicationMessages_Args) GetRequest() (o *replicator.GetDLQReplicationMessagesRequest) { +func (v *HistoryService_GetCrossClusterTasks_Args) GetRequest() (o *shared.GetCrossClusterTasksRequest) { if v != nil && v.Request != nil { return v.Request } @@ -16242,80 +16242,80 @@ func (v *HistoryService_GetDLQReplicationMessages_Args) GetRequest() (o *replica } // IsSetRequest returns true if Request is not nil. -func (v *HistoryService_GetDLQReplicationMessages_Args) IsSetRequest() bool { +func (v *HistoryService_GetCrossClusterTasks_Args) IsSetRequest() bool { return v != nil && v.Request != 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 "GetDLQReplicationMessages" for this struct. -func (v *HistoryService_GetDLQReplicationMessages_Args) MethodName() string { - return "GetDLQReplicationMessages" +// This will always be "GetCrossClusterTasks" for this struct. +func (v *HistoryService_GetCrossClusterTasks_Args) MethodName() string { + return "GetCrossClusterTasks" } // EnvelopeType returns the kind of value inside this struct. // // This will always be Call for this struct. -func (v *HistoryService_GetDLQReplicationMessages_Args) EnvelopeType() wire.EnvelopeType { +func (v *HistoryService_GetCrossClusterTasks_Args) EnvelopeType() wire.EnvelopeType { return wire.Call } -// HistoryService_GetDLQReplicationMessages_Helper provides functions that aid in handling the -// parameters and return values of the HistoryService.GetDLQReplicationMessages +// HistoryService_GetCrossClusterTasks_Helper provides functions that aid in handling the +// parameters and return values of the HistoryService.GetCrossClusterTasks // function. -var HistoryService_GetDLQReplicationMessages_Helper = struct { - // Args accepts the parameters of GetDLQReplicationMessages in-order and returns +var HistoryService_GetCrossClusterTasks_Helper = struct { + // Args accepts the parameters of GetCrossClusterTasks in-order and returns // the arguments struct for the function. Args func( - request *replicator.GetDLQReplicationMessagesRequest, - ) *HistoryService_GetDLQReplicationMessages_Args + request *shared.GetCrossClusterTasksRequest, + ) *HistoryService_GetCrossClusterTasks_Args // IsException returns true if the given error can be thrown - // by GetDLQReplicationMessages. + // by GetCrossClusterTasks. // - // An error can be thrown by GetDLQReplicationMessages only if the + // An error can be thrown by GetCrossClusterTasks 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 GetDLQReplicationMessages + // WrapResponse returns the result struct for GetCrossClusterTasks // given its return value and error. // // This allows mapping values and errors returned by - // GetDLQReplicationMessages into a serializable result struct. + // GetCrossClusterTasks into a serializable result struct. // WrapResponse returns a non-nil error if the provided - // error cannot be thrown by GetDLQReplicationMessages + // error cannot be thrown by GetCrossClusterTasks // - // value, err := GetDLQReplicationMessages(args) - // result, err := HistoryService_GetDLQReplicationMessages_Helper.WrapResponse(value, err) + // value, err := GetCrossClusterTasks(args) + // result, err := HistoryService_GetCrossClusterTasks_Helper.WrapResponse(value, err) // if err != nil { - // return fmt.Errorf("unexpected error from GetDLQReplicationMessages: %v", err) + // return fmt.Errorf("unexpected error from GetCrossClusterTasks: %v", err) // } // serialize(result) - WrapResponse func(*replicator.GetDLQReplicationMessagesResponse, error) (*HistoryService_GetDLQReplicationMessages_Result, error) + WrapResponse func(*shared.GetCrossClusterTasksResponse, error) (*HistoryService_GetCrossClusterTasks_Result, error) - // UnwrapResponse takes the result struct for GetDLQReplicationMessages + // UnwrapResponse takes the result struct for GetCrossClusterTasks // and returns the value or error returned by it. // - // The error is non-nil only if GetDLQReplicationMessages threw an + // The error is non-nil only if GetCrossClusterTasks threw an // exception. // // result := deserialize(bytes) - // value, err := HistoryService_GetDLQReplicationMessages_Helper.UnwrapResponse(result) - UnwrapResponse func(*HistoryService_GetDLQReplicationMessages_Result) (*replicator.GetDLQReplicationMessagesResponse, error) + // value, err := HistoryService_GetCrossClusterTasks_Helper.UnwrapResponse(result) + UnwrapResponse func(*HistoryService_GetCrossClusterTasks_Result) (*shared.GetCrossClusterTasksResponse, error) }{} func init() { - HistoryService_GetDLQReplicationMessages_Helper.Args = func( - request *replicator.GetDLQReplicationMessagesRequest, - ) *HistoryService_GetDLQReplicationMessages_Args { - return &HistoryService_GetDLQReplicationMessages_Args{ + HistoryService_GetCrossClusterTasks_Helper.Args = func( + request *shared.GetCrossClusterTasksRequest, + ) *HistoryService_GetCrossClusterTasks_Args { + return &HistoryService_GetCrossClusterTasks_Args{ Request: request, } } - HistoryService_GetDLQReplicationMessages_Helper.IsException = func(err error) bool { + HistoryService_GetCrossClusterTasks_Helper.IsException = func(err error) bool { switch err.(type) { case *shared.BadRequestError: return true @@ -16323,44 +16323,37 @@ func init() { return true case *shared.ServiceBusyError: return true - case *shared.EntityNotExistsError: - return true default: return false } } - HistoryService_GetDLQReplicationMessages_Helper.WrapResponse = func(success *replicator.GetDLQReplicationMessagesResponse, err error) (*HistoryService_GetDLQReplicationMessages_Result, error) { + HistoryService_GetCrossClusterTasks_Helper.WrapResponse = func(success *shared.GetCrossClusterTasksResponse, err error) (*HistoryService_GetCrossClusterTasks_Result, error) { if err == nil { - return &HistoryService_GetDLQReplicationMessages_Result{Success: success}, nil + return &HistoryService_GetCrossClusterTasks_Result{Success: success}, nil } switch e := err.(type) { case *shared.BadRequestError: if e == nil { - return nil, errors.New("WrapResponse received non-nil error type with nil value for HistoryService_GetDLQReplicationMessages_Result.BadRequestError") + return nil, errors.New("WrapResponse received non-nil error type with nil value for HistoryService_GetCrossClusterTasks_Result.BadRequestError") } - return &HistoryService_GetDLQReplicationMessages_Result{BadRequestError: e}, nil + return &HistoryService_GetCrossClusterTasks_Result{BadRequestError: e}, nil case *shared.InternalServiceError: if e == nil { - return nil, errors.New("WrapResponse received non-nil error type with nil value for HistoryService_GetDLQReplicationMessages_Result.InternalServiceError") + return nil, errors.New("WrapResponse received non-nil error type with nil value for HistoryService_GetCrossClusterTasks_Result.InternalServiceError") } - return &HistoryService_GetDLQReplicationMessages_Result{InternalServiceError: e}, nil + return &HistoryService_GetCrossClusterTasks_Result{InternalServiceError: e}, nil case *shared.ServiceBusyError: if e == nil { - return nil, errors.New("WrapResponse received non-nil error type with nil value for HistoryService_GetDLQReplicationMessages_Result.ServiceBusyError") - } - return &HistoryService_GetDLQReplicationMessages_Result{ServiceBusyError: e}, nil - case *shared.EntityNotExistsError: - if e == nil { - return nil, errors.New("WrapResponse received non-nil error type with nil value for HistoryService_GetDLQReplicationMessages_Result.EntityNotExistError") + return nil, errors.New("WrapResponse received non-nil error type with nil value for HistoryService_GetCrossClusterTasks_Result.ServiceBusyError") } - return &HistoryService_GetDLQReplicationMessages_Result{EntityNotExistError: e}, nil + return &HistoryService_GetCrossClusterTasks_Result{ServiceBusyError: e}, nil } return nil, err } - HistoryService_GetDLQReplicationMessages_Helper.UnwrapResponse = func(result *HistoryService_GetDLQReplicationMessages_Result) (success *replicator.GetDLQReplicationMessagesResponse, err error) { + HistoryService_GetCrossClusterTasks_Helper.UnwrapResponse = func(result *HistoryService_GetCrossClusterTasks_Result) (success *shared.GetCrossClusterTasksResponse, err error) { if result.BadRequestError != nil { err = result.BadRequestError return @@ -16373,10 +16366,6 @@ func init() { err = result.ServiceBusyError return } - if result.EntityNotExistError != nil { - err = result.EntityNotExistError - return - } if result.Success != nil { success = result.Success @@ -16389,21 +16378,20 @@ func init() { } -// HistoryService_GetDLQReplicationMessages_Result represents the result of a HistoryService.GetDLQReplicationMessages function call. +// HistoryService_GetCrossClusterTasks_Result represents the result of a HistoryService.GetCrossClusterTasks function call. // -// The result of a GetDLQReplicationMessages execution is sent and received over the wire as this struct. +// The result of a GetCrossClusterTasks execution is sent and received over the wire as this struct. // // Success is set only if the function did not throw an exception. -type HistoryService_GetDLQReplicationMessages_Result struct { - // Value returned by GetDLQReplicationMessages after a successful execution. - Success *replicator.GetDLQReplicationMessagesResponse `json:"success,omitempty"` - BadRequestError *shared.BadRequestError `json:"badRequestError,omitempty"` - InternalServiceError *shared.InternalServiceError `json:"internalServiceError,omitempty"` - ServiceBusyError *shared.ServiceBusyError `json:"serviceBusyError,omitempty"` - EntityNotExistError *shared.EntityNotExistsError `json:"entityNotExistError,omitempty"` +type HistoryService_GetCrossClusterTasks_Result struct { + // Value returned by GetCrossClusterTasks after a successful execution. + Success *shared.GetCrossClusterTasksResponse `json:"success,omitempty"` + BadRequestError *shared.BadRequestError `json:"badRequestError,omitempty"` + InternalServiceError *shared.InternalServiceError `json:"internalServiceError,omitempty"` + ServiceBusyError *shared.ServiceBusyError `json:"serviceBusyError,omitempty"` } -// ToWire translates a HistoryService_GetDLQReplicationMessages_Result struct into a Thrift-level intermediate +// ToWire translates a HistoryService_GetCrossClusterTasks_Result struct into a Thrift-level intermediate // representation. This intermediate representation may be serialized // into bytes using a ThriftRW protocol implementation. // @@ -16418,9 +16406,9 @@ type HistoryService_GetDLQReplicationMessages_Result struct { // if err := binaryProtocol.Encode(x, writer); err != nil { // return err // } -func (v *HistoryService_GetDLQReplicationMessages_Result) ToWire() (wire.Value, error) { +func (v *HistoryService_GetCrossClusterTasks_Result) ToWire() (wire.Value, error) { var ( - fields [5]wire.Field + fields [4]wire.Field i int = 0 w wire.Value err error @@ -16458,33 +16446,25 @@ func (v *HistoryService_GetDLQReplicationMessages_Result) ToWire() (wire.Value, fields[i] = wire.Field{ID: 3, Value: w} i++ } - if v.EntityNotExistError != nil { - w, err = v.EntityNotExistError.ToWire() - if err != nil { - return w, err - } - fields[i] = wire.Field{ID: 4, Value: w} - i++ - } if i != 1 { - return wire.Value{}, fmt.Errorf("HistoryService_GetDLQReplicationMessages_Result should have exactly one field: got %v fields", i) + return wire.Value{}, fmt.Errorf("HistoryService_GetCrossClusterTasks_Result should have exactly one field: got %v fields", i) } return wire.NewValueStruct(wire.Struct{Fields: fields[:i]}), nil } -func _GetDLQReplicationMessagesResponse_Read(w wire.Value) (*replicator.GetDLQReplicationMessagesResponse, error) { - var v replicator.GetDLQReplicationMessagesResponse +func _GetCrossClusterTasksResponse_Read(w wire.Value) (*shared.GetCrossClusterTasksResponse, error) { + var v shared.GetCrossClusterTasksResponse err := v.FromWire(w) return &v, err } -// FromWire deserializes a HistoryService_GetDLQReplicationMessages_Result struct from its Thrift-level +// FromWire deserializes a HistoryService_GetCrossClusterTasks_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 HistoryService_GetDLQReplicationMessages_Result struct +// An error is returned if we were unable to build a HistoryService_GetCrossClusterTasks_Result struct // from the provided intermediate representation. // // x, err := binaryProtocol.Decode(reader, wire.TStruct) @@ -16492,19 +16472,19 @@ func _GetDLQReplicationMessagesResponse_Read(w wire.Value) (*replicator.GetDLQRe // return nil, err // } // -// var v HistoryService_GetDLQReplicationMessages_Result +// var v HistoryService_GetCrossClusterTasks_Result // if err := v.FromWire(x); err != nil { // return nil, err // } // return &v, nil -func (v *HistoryService_GetDLQReplicationMessages_Result) FromWire(w wire.Value) error { +func (v *HistoryService_GetCrossClusterTasks_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 = _GetDLQReplicationMessagesResponse_Read(field.Value) + v.Success, err = _GetCrossClusterTasksResponse_Read(field.Value) if err != nil { return err } @@ -16533,14 +16513,6 @@ func (v *HistoryService_GetDLQReplicationMessages_Result) FromWire(w wire.Value) return err } - } - case 4: - if field.Value.Type() == wire.TStruct { - v.EntityNotExistError, err = _EntityNotExistsError_Read(field.Value) - if err != nil { - return err - } - } } } @@ -16558,24 +16530,21 @@ func (v *HistoryService_GetDLQReplicationMessages_Result) FromWire(w wire.Value) if v.ServiceBusyError != nil { count++ } - if v.EntityNotExistError != nil { - count++ - } if count != 1 { - return fmt.Errorf("HistoryService_GetDLQReplicationMessages_Result should have exactly one field: got %v fields", count) + return fmt.Errorf("HistoryService_GetCrossClusterTasks_Result should have exactly one field: got %v fields", count) } return nil } -// String returns a readable string representation of a HistoryService_GetDLQReplicationMessages_Result +// String returns a readable string representation of a HistoryService_GetCrossClusterTasks_Result // struct. -func (v *HistoryService_GetDLQReplicationMessages_Result) String() string { +func (v *HistoryService_GetCrossClusterTasks_Result) String() string { if v == nil { return "" } - var fields [5]string + var fields [4]string i := 0 if v.Success != nil { fields[i] = fmt.Sprintf("Success: %v", v.Success) @@ -16593,19 +16562,15 @@ func (v *HistoryService_GetDLQReplicationMessages_Result) String() string { fields[i] = fmt.Sprintf("ServiceBusyError: %v", v.ServiceBusyError) i++ } - if v.EntityNotExistError != nil { - fields[i] = fmt.Sprintf("EntityNotExistError: %v", v.EntityNotExistError) - i++ - } - return fmt.Sprintf("HistoryService_GetDLQReplicationMessages_Result{%v}", strings.Join(fields[:i], ", ")) + return fmt.Sprintf("HistoryService_GetCrossClusterTasks_Result{%v}", strings.Join(fields[:i], ", ")) } -// Equals returns true if all the fields of this HistoryService_GetDLQReplicationMessages_Result match the -// provided HistoryService_GetDLQReplicationMessages_Result. +// Equals returns true if all the fields of this HistoryService_GetCrossClusterTasks_Result match the +// provided HistoryService_GetCrossClusterTasks_Result. // // This function performs a deep comparison. -func (v *HistoryService_GetDLQReplicationMessages_Result) Equals(rhs *HistoryService_GetDLQReplicationMessages_Result) bool { +func (v *HistoryService_GetCrossClusterTasks_Result) Equals(rhs *HistoryService_GetCrossClusterTasks_Result) bool { if v == nil { return rhs == nil } else if rhs == nil { @@ -16623,16 +16588,13 @@ func (v *HistoryService_GetDLQReplicationMessages_Result) Equals(rhs *HistorySer 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 - } return true } // MarshalLogObject implements zapcore.ObjectMarshaler, enabling -// fast logging of HistoryService_GetDLQReplicationMessages_Result. -func (v *HistoryService_GetDLQReplicationMessages_Result) MarshalLogObject(enc zapcore.ObjectEncoder) (err error) { +// fast logging of HistoryService_GetCrossClusterTasks_Result. +func (v *HistoryService_GetCrossClusterTasks_Result) MarshalLogObject(enc zapcore.ObjectEncoder) (err error) { if v == nil { return nil } @@ -16648,15 +16610,12 @@ func (v *HistoryService_GetDLQReplicationMessages_Result) MarshalLogObject(enc z 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)) - } return err } // GetSuccess returns the value of Success if it is set or its // zero value if it is unset. -func (v *HistoryService_GetDLQReplicationMessages_Result) GetSuccess() (o *replicator.GetDLQReplicationMessagesResponse) { +func (v *HistoryService_GetCrossClusterTasks_Result) GetSuccess() (o *shared.GetCrossClusterTasksResponse) { if v != nil && v.Success != nil { return v.Success } @@ -16665,13 +16624,13 @@ func (v *HistoryService_GetDLQReplicationMessages_Result) GetSuccess() (o *repli } // IsSetSuccess returns true if Success is not nil. -func (v *HistoryService_GetDLQReplicationMessages_Result) IsSetSuccess() bool { +func (v *HistoryService_GetCrossClusterTasks_Result) IsSetSuccess() bool { return v != nil && v.Success != nil } // GetBadRequestError returns the value of BadRequestError if it is set or its // zero value if it is unset. -func (v *HistoryService_GetDLQReplicationMessages_Result) GetBadRequestError() (o *shared.BadRequestError) { +func (v *HistoryService_GetCrossClusterTasks_Result) GetBadRequestError() (o *shared.BadRequestError) { if v != nil && v.BadRequestError != nil { return v.BadRequestError } @@ -16680,13 +16639,13 @@ func (v *HistoryService_GetDLQReplicationMessages_Result) GetBadRequestError() ( } // IsSetBadRequestError returns true if BadRequestError is not nil. -func (v *HistoryService_GetDLQReplicationMessages_Result) IsSetBadRequestError() bool { +func (v *HistoryService_GetCrossClusterTasks_Result) IsSetBadRequestError() bool { return v != nil && v.BadRequestError != nil } // GetInternalServiceError returns the value of InternalServiceError if it is set or its // zero value if it is unset. -func (v *HistoryService_GetDLQReplicationMessages_Result) GetInternalServiceError() (o *shared.InternalServiceError) { +func (v *HistoryService_GetCrossClusterTasks_Result) GetInternalServiceError() (o *shared.InternalServiceError) { if v != nil && v.InternalServiceError != nil { return v.InternalServiceError } @@ -16695,13 +16654,13 @@ func (v *HistoryService_GetDLQReplicationMessages_Result) GetInternalServiceErro } // IsSetInternalServiceError returns true if InternalServiceError is not nil. -func (v *HistoryService_GetDLQReplicationMessages_Result) IsSetInternalServiceError() bool { +func (v *HistoryService_GetCrossClusterTasks_Result) IsSetInternalServiceError() bool { return v != nil && v.InternalServiceError != nil } // GetServiceBusyError returns the value of ServiceBusyError if it is set or its // zero value if it is unset. -func (v *HistoryService_GetDLQReplicationMessages_Result) GetServiceBusyError() (o *shared.ServiceBusyError) { +func (v *HistoryService_GetCrossClusterTasks_Result) GetServiceBusyError() (o *shared.ServiceBusyError) { if v != nil && v.ServiceBusyError != nil { return v.ServiceBusyError } @@ -16710,48 +16669,33 @@ func (v *HistoryService_GetDLQReplicationMessages_Result) GetServiceBusyError() } // IsSetServiceBusyError returns true if ServiceBusyError is not nil. -func (v *HistoryService_GetDLQReplicationMessages_Result) IsSetServiceBusyError() bool { +func (v *HistoryService_GetCrossClusterTasks_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 *HistoryService_GetDLQReplicationMessages_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 *HistoryService_GetDLQReplicationMessages_Result) IsSetEntityNotExistError() bool { - return v != nil && v.EntityNotExistError != 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 "GetDLQReplicationMessages" for this struct. -func (v *HistoryService_GetDLQReplicationMessages_Result) MethodName() string { - return "GetDLQReplicationMessages" +// This will always be "GetCrossClusterTasks" for this struct. +func (v *HistoryService_GetCrossClusterTasks_Result) MethodName() string { + return "GetCrossClusterTasks" } // EnvelopeType returns the kind of value inside this struct. // // This will always be Reply for this struct. -func (v *HistoryService_GetDLQReplicationMessages_Result) EnvelopeType() wire.EnvelopeType { +func (v *HistoryService_GetCrossClusterTasks_Result) EnvelopeType() wire.EnvelopeType { return wire.Reply } -// HistoryService_GetMutableState_Args represents the arguments for the HistoryService.GetMutableState function. +// HistoryService_GetDLQReplicationMessages_Args represents the arguments for the HistoryService.GetDLQReplicationMessages function. // -// The arguments for GetMutableState are sent and received over the wire as this struct. -type HistoryService_GetMutableState_Args struct { - GetRequest *GetMutableStateRequest `json:"getRequest,omitempty"` +// The arguments for GetDLQReplicationMessages are sent and received over the wire as this struct. +type HistoryService_GetDLQReplicationMessages_Args struct { + Request *replicator.GetDLQReplicationMessagesRequest `json:"request,omitempty"` } -// ToWire translates a HistoryService_GetMutableState_Args struct into a Thrift-level intermediate +// ToWire translates a HistoryService_GetDLQReplicationMessages_Args struct into a Thrift-level intermediate // representation. This intermediate representation may be serialized // into bytes using a ThriftRW protocol implementation. // @@ -16766,7 +16710,7 @@ type HistoryService_GetMutableState_Args struct { // if err := binaryProtocol.Encode(x, writer); err != nil { // return err // } -func (v *HistoryService_GetMutableState_Args) ToWire() (wire.Value, error) { +func (v *HistoryService_GetDLQReplicationMessages_Args) ToWire() (wire.Value, error) { var ( fields [1]wire.Field i int = 0 @@ -16774,8 +16718,8 @@ func (v *HistoryService_GetMutableState_Args) ToWire() (wire.Value, error) { err error ) - if v.GetRequest != nil { - w, err = v.GetRequest.ToWire() + if v.Request != nil { + w, err = v.Request.ToWire() if err != nil { return w, err } @@ -16786,17 +16730,17 @@ func (v *HistoryService_GetMutableState_Args) ToWire() (wire.Value, error) { return wire.NewValueStruct(wire.Struct{Fields: fields[:i]}), nil } -func _GetMutableStateRequest_Read(w wire.Value) (*GetMutableStateRequest, error) { - var v GetMutableStateRequest +func _GetDLQReplicationMessagesRequest_Read(w wire.Value) (*replicator.GetDLQReplicationMessagesRequest, error) { + var v replicator.GetDLQReplicationMessagesRequest err := v.FromWire(w) return &v, err } -// FromWire deserializes a HistoryService_GetMutableState_Args struct from its Thrift-level +// FromWire deserializes a HistoryService_GetDLQReplicationMessages_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 HistoryService_GetMutableState_Args struct +// An error is returned if we were unable to build a HistoryService_GetDLQReplicationMessages_Args struct // from the provided intermediate representation. // // x, err := binaryProtocol.Decode(reader, wire.TStruct) @@ -16804,19 +16748,19 @@ func _GetMutableStateRequest_Read(w wire.Value) (*GetMutableStateRequest, error) // return nil, err // } // -// var v HistoryService_GetMutableState_Args +// var v HistoryService_GetDLQReplicationMessages_Args // if err := v.FromWire(x); err != nil { // return nil, err // } // return &v, nil -func (v *HistoryService_GetMutableState_Args) FromWire(w wire.Value) error { +func (v *HistoryService_GetDLQReplicationMessages_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.GetRequest, err = _GetMutableStateRequest_Read(field.Value) + v.Request, err = _GetDLQReplicationMessagesRequest_Read(field.Value) if err != nil { return err } @@ -16828,34 +16772,34 @@ func (v *HistoryService_GetMutableState_Args) FromWire(w wire.Value) error { return nil } -// String returns a readable string representation of a HistoryService_GetMutableState_Args +// String returns a readable string representation of a HistoryService_GetDLQReplicationMessages_Args // struct. -func (v *HistoryService_GetMutableState_Args) String() string { +func (v *HistoryService_GetDLQReplicationMessages_Args) String() string { if v == nil { return "" } var fields [1]string i := 0 - if v.GetRequest != nil { - fields[i] = fmt.Sprintf("GetRequest: %v", v.GetRequest) + if v.Request != nil { + fields[i] = fmt.Sprintf("Request: %v", v.Request) i++ } - return fmt.Sprintf("HistoryService_GetMutableState_Args{%v}", strings.Join(fields[:i], ", ")) + return fmt.Sprintf("HistoryService_GetDLQReplicationMessages_Args{%v}", strings.Join(fields[:i], ", ")) } -// Equals returns true if all the fields of this HistoryService_GetMutableState_Args match the -// provided HistoryService_GetMutableState_Args. +// Equals returns true if all the fields of this HistoryService_GetDLQReplicationMessages_Args match the +// provided HistoryService_GetDLQReplicationMessages_Args. // // This function performs a deep comparison. -func (v *HistoryService_GetMutableState_Args) Equals(rhs *HistoryService_GetMutableState_Args) bool { +func (v *HistoryService_GetDLQReplicationMessages_Args) Equals(rhs *HistoryService_GetDLQReplicationMessages_Args) bool { if v == nil { return rhs == nil } else if rhs == nil { return false } - if !((v.GetRequest == nil && rhs.GetRequest == nil) || (v.GetRequest != nil && rhs.GetRequest != nil && v.GetRequest.Equals(rhs.GetRequest))) { + if !((v.Request == nil && rhs.Request == nil) || (v.Request != nil && rhs.Request != nil && v.Request.Equals(rhs.Request))) { return false } @@ -16863,168 +16807,147 @@ func (v *HistoryService_GetMutableState_Args) Equals(rhs *HistoryService_GetMuta } // MarshalLogObject implements zapcore.ObjectMarshaler, enabling -// fast logging of HistoryService_GetMutableState_Args. -func (v *HistoryService_GetMutableState_Args) MarshalLogObject(enc zapcore.ObjectEncoder) (err error) { +// fast logging of HistoryService_GetDLQReplicationMessages_Args. +func (v *HistoryService_GetDLQReplicationMessages_Args) MarshalLogObject(enc zapcore.ObjectEncoder) (err error) { if v == nil { return nil } - if v.GetRequest != nil { - err = multierr.Append(err, enc.AddObject("getRequest", v.GetRequest)) + if v.Request != nil { + err = multierr.Append(err, enc.AddObject("request", v.Request)) } return err } -// GetGetRequest returns the value of GetRequest if it is set or its +// GetRequest returns the value of Request if it is set or its // zero value if it is unset. -func (v *HistoryService_GetMutableState_Args) GetGetRequest() (o *GetMutableStateRequest) { - if v != nil && v.GetRequest != nil { - return v.GetRequest +func (v *HistoryService_GetDLQReplicationMessages_Args) GetRequest() (o *replicator.GetDLQReplicationMessagesRequest) { + if v != nil && v.Request != nil { + return v.Request } return } -// IsSetGetRequest returns true if GetRequest is not nil. -func (v *HistoryService_GetMutableState_Args) IsSetGetRequest() bool { - return v != nil && v.GetRequest != nil +// IsSetRequest returns true if Request is not nil. +func (v *HistoryService_GetDLQReplicationMessages_Args) IsSetRequest() bool { + return v != nil && v.Request != 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 "GetMutableState" for this struct. -func (v *HistoryService_GetMutableState_Args) MethodName() string { - return "GetMutableState" +// This will always be "GetDLQReplicationMessages" for this struct. +func (v *HistoryService_GetDLQReplicationMessages_Args) MethodName() string { + return "GetDLQReplicationMessages" } // EnvelopeType returns the kind of value inside this struct. // // This will always be Call for this struct. -func (v *HistoryService_GetMutableState_Args) EnvelopeType() wire.EnvelopeType { +func (v *HistoryService_GetDLQReplicationMessages_Args) EnvelopeType() wire.EnvelopeType { return wire.Call } -// HistoryService_GetMutableState_Helper provides functions that aid in handling the -// parameters and return values of the HistoryService.GetMutableState +// HistoryService_GetDLQReplicationMessages_Helper provides functions that aid in handling the +// parameters and return values of the HistoryService.GetDLQReplicationMessages // function. -var HistoryService_GetMutableState_Helper = struct { - // Args accepts the parameters of GetMutableState in-order and returns +var HistoryService_GetDLQReplicationMessages_Helper = struct { + // Args accepts the parameters of GetDLQReplicationMessages in-order and returns // the arguments struct for the function. Args func( - getRequest *GetMutableStateRequest, - ) *HistoryService_GetMutableState_Args + request *replicator.GetDLQReplicationMessagesRequest, + ) *HistoryService_GetDLQReplicationMessages_Args // IsException returns true if the given error can be thrown - // by GetMutableState. + // by GetDLQReplicationMessages. // - // An error can be thrown by GetMutableState only if the + // An error can be thrown by GetDLQReplicationMessages 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 GetMutableState + // WrapResponse returns the result struct for GetDLQReplicationMessages // given its return value and error. // // This allows mapping values and errors returned by - // GetMutableState into a serializable result struct. + // GetDLQReplicationMessages into a serializable result struct. // WrapResponse returns a non-nil error if the provided - // error cannot be thrown by GetMutableState + // error cannot be thrown by GetDLQReplicationMessages // - // value, err := GetMutableState(args) - // result, err := HistoryService_GetMutableState_Helper.WrapResponse(value, err) + // value, err := GetDLQReplicationMessages(args) + // result, err := HistoryService_GetDLQReplicationMessages_Helper.WrapResponse(value, err) // if err != nil { - // return fmt.Errorf("unexpected error from GetMutableState: %v", err) + // return fmt.Errorf("unexpected error from GetDLQReplicationMessages: %v", err) // } // serialize(result) - WrapResponse func(*GetMutableStateResponse, error) (*HistoryService_GetMutableState_Result, error) + WrapResponse func(*replicator.GetDLQReplicationMessagesResponse, error) (*HistoryService_GetDLQReplicationMessages_Result, error) - // UnwrapResponse takes the result struct for GetMutableState + // UnwrapResponse takes the result struct for GetDLQReplicationMessages // and returns the value or error returned by it. // - // The error is non-nil only if GetMutableState threw an + // The error is non-nil only if GetDLQReplicationMessages threw an // exception. // // result := deserialize(bytes) - // value, err := HistoryService_GetMutableState_Helper.UnwrapResponse(result) - UnwrapResponse func(*HistoryService_GetMutableState_Result) (*GetMutableStateResponse, error) + // value, err := HistoryService_GetDLQReplicationMessages_Helper.UnwrapResponse(result) + UnwrapResponse func(*HistoryService_GetDLQReplicationMessages_Result) (*replicator.GetDLQReplicationMessagesResponse, error) }{} func init() { - HistoryService_GetMutableState_Helper.Args = func( - getRequest *GetMutableStateRequest, - ) *HistoryService_GetMutableState_Args { - return &HistoryService_GetMutableState_Args{ - GetRequest: getRequest, + HistoryService_GetDLQReplicationMessages_Helper.Args = func( + request *replicator.GetDLQReplicationMessagesRequest, + ) *HistoryService_GetDLQReplicationMessages_Args { + return &HistoryService_GetDLQReplicationMessages_Args{ + Request: request, } } - HistoryService_GetMutableState_Helper.IsException = func(err error) bool { + HistoryService_GetDLQReplicationMessages_Helper.IsException = func(err error) bool { switch err.(type) { case *shared.BadRequestError: return true case *shared.InternalServiceError: return true - case *shared.EntityNotExistsError: - return true - case *ShardOwnershipLostError: - return true - case *shared.LimitExceededError: - return true case *shared.ServiceBusyError: return true - case *shared.CurrentBranchChangedError: + case *shared.EntityNotExistsError: return true default: return false } } - HistoryService_GetMutableState_Helper.WrapResponse = func(success *GetMutableStateResponse, err error) (*HistoryService_GetMutableState_Result, error) { + HistoryService_GetDLQReplicationMessages_Helper.WrapResponse = func(success *replicator.GetDLQReplicationMessagesResponse, err error) (*HistoryService_GetDLQReplicationMessages_Result, error) { if err == nil { - return &HistoryService_GetMutableState_Result{Success: success}, nil + return &HistoryService_GetDLQReplicationMessages_Result{Success: success}, nil } switch e := err.(type) { case *shared.BadRequestError: if e == nil { - return nil, errors.New("WrapResponse received non-nil error type with nil value for HistoryService_GetMutableState_Result.BadRequestError") + return nil, errors.New("WrapResponse received non-nil error type with nil value for HistoryService_GetDLQReplicationMessages_Result.BadRequestError") } - return &HistoryService_GetMutableState_Result{BadRequestError: e}, nil + return &HistoryService_GetDLQReplicationMessages_Result{BadRequestError: e}, nil case *shared.InternalServiceError: if e == nil { - return nil, errors.New("WrapResponse received non-nil error type with nil value for HistoryService_GetMutableState_Result.InternalServiceError") - } - return &HistoryService_GetMutableState_Result{InternalServiceError: e}, nil - case *shared.EntityNotExistsError: - if e == nil { - return nil, errors.New("WrapResponse received non-nil error type with nil value for HistoryService_GetMutableState_Result.EntityNotExistError") - } - return &HistoryService_GetMutableState_Result{EntityNotExistError: e}, nil - case *ShardOwnershipLostError: - if e == nil { - return nil, errors.New("WrapResponse received non-nil error type with nil value for HistoryService_GetMutableState_Result.ShardOwnershipLostError") - } - return &HistoryService_GetMutableState_Result{ShardOwnershipLostError: e}, nil - case *shared.LimitExceededError: - if e == nil { - return nil, errors.New("WrapResponse received non-nil error type with nil value for HistoryService_GetMutableState_Result.LimitExceededError") + return nil, errors.New("WrapResponse received non-nil error type with nil value for HistoryService_GetDLQReplicationMessages_Result.InternalServiceError") } - return &HistoryService_GetMutableState_Result{LimitExceededError: e}, nil + return &HistoryService_GetDLQReplicationMessages_Result{InternalServiceError: e}, nil case *shared.ServiceBusyError: if e == nil { - return nil, errors.New("WrapResponse received non-nil error type with nil value for HistoryService_GetMutableState_Result.ServiceBusyError") + return nil, errors.New("WrapResponse received non-nil error type with nil value for HistoryService_GetDLQReplicationMessages_Result.ServiceBusyError") } - return &HistoryService_GetMutableState_Result{ServiceBusyError: e}, nil - case *shared.CurrentBranchChangedError: + return &HistoryService_GetDLQReplicationMessages_Result{ServiceBusyError: e}, nil + case *shared.EntityNotExistsError: if e == nil { - return nil, errors.New("WrapResponse received non-nil error type with nil value for HistoryService_GetMutableState_Result.CurrentBranchChangedError") + return nil, errors.New("WrapResponse received non-nil error type with nil value for HistoryService_GetDLQReplicationMessages_Result.EntityNotExistError") } - return &HistoryService_GetMutableState_Result{CurrentBranchChangedError: e}, nil + return &HistoryService_GetDLQReplicationMessages_Result{EntityNotExistError: e}, nil } return nil, err } - HistoryService_GetMutableState_Helper.UnwrapResponse = func(result *HistoryService_GetMutableState_Result) (success *GetMutableStateResponse, err error) { + HistoryService_GetDLQReplicationMessages_Helper.UnwrapResponse = func(result *HistoryService_GetDLQReplicationMessages_Result) (success *replicator.GetDLQReplicationMessagesResponse, err error) { if result.BadRequestError != nil { err = result.BadRequestError return @@ -17033,24 +16956,12 @@ func init() { err = result.InternalServiceError return } - if result.EntityNotExistError != nil { - err = result.EntityNotExistError - return - } - if result.ShardOwnershipLostError != nil { - err = result.ShardOwnershipLostError - return - } - if result.LimitExceededError != nil { - err = result.LimitExceededError - return - } if result.ServiceBusyError != nil { err = result.ServiceBusyError return } - if result.CurrentBranchChangedError != nil { - err = result.CurrentBranchChangedError + if result.EntityNotExistError != nil { + err = result.EntityNotExistError return } @@ -17065,24 +16976,21 @@ func init() { } -// HistoryService_GetMutableState_Result represents the result of a HistoryService.GetMutableState function call. +// HistoryService_GetDLQReplicationMessages_Result represents the result of a HistoryService.GetDLQReplicationMessages function call. // -// The result of a GetMutableState execution is sent and received over the wire as this struct. +// The result of a GetDLQReplicationMessages execution is sent and received over the wire as this struct. // // Success is set only if the function did not throw an exception. -type HistoryService_GetMutableState_Result struct { - // Value returned by GetMutableState after a successful execution. - Success *GetMutableStateResponse `json:"success,omitempty"` - BadRequestError *shared.BadRequestError `json:"badRequestError,omitempty"` - InternalServiceError *shared.InternalServiceError `json:"internalServiceError,omitempty"` - EntityNotExistError *shared.EntityNotExistsError `json:"entityNotExistError,omitempty"` - ShardOwnershipLostError *ShardOwnershipLostError `json:"shardOwnershipLostError,omitempty"` - LimitExceededError *shared.LimitExceededError `json:"limitExceededError,omitempty"` - ServiceBusyError *shared.ServiceBusyError `json:"serviceBusyError,omitempty"` - CurrentBranchChangedError *shared.CurrentBranchChangedError `json:"currentBranchChangedError,omitempty"` +type HistoryService_GetDLQReplicationMessages_Result struct { + // Value returned by GetDLQReplicationMessages after a successful execution. + Success *replicator.GetDLQReplicationMessagesResponse `json:"success,omitempty"` + BadRequestError *shared.BadRequestError `json:"badRequestError,omitempty"` + InternalServiceError *shared.InternalServiceError `json:"internalServiceError,omitempty"` + ServiceBusyError *shared.ServiceBusyError `json:"serviceBusyError,omitempty"` + EntityNotExistError *shared.EntityNotExistsError `json:"entityNotExistError,omitempty"` } -// ToWire translates a HistoryService_GetMutableState_Result struct into a Thrift-level intermediate +// ToWire translates a HistoryService_GetDLQReplicationMessages_Result struct into a Thrift-level intermediate // representation. This intermediate representation may be serialized // into bytes using a ThriftRW protocol implementation. // @@ -17097,9 +17005,9 @@ type HistoryService_GetMutableState_Result struct { // if err := binaryProtocol.Encode(x, writer); err != nil { // return err // } -func (v *HistoryService_GetMutableState_Result) ToWire() (wire.Value, error) { +func (v *HistoryService_GetDLQReplicationMessages_Result) ToWire() (wire.Value, error) { var ( - fields [8]wire.Field + fields [5]wire.Field i int = 0 w wire.Value err error @@ -17129,71 +17037,41 @@ func (v *HistoryService_GetMutableState_Result) ToWire() (wire.Value, error) { 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.ShardOwnershipLostError != nil { - w, err = v.ShardOwnershipLostError.ToWire() - if err != nil { - return w, err - } - fields[i] = wire.Field{ID: 4, Value: w} - i++ - } - if v.LimitExceededError != nil { - w, err = v.LimitExceededError.ToWire() - if err != nil { - return w, err - } - fields[i] = wire.Field{ID: 5, Value: w} - i++ - } if v.ServiceBusyError != nil { w, err = v.ServiceBusyError.ToWire() if err != nil { return w, err } - fields[i] = wire.Field{ID: 6, Value: w} + fields[i] = wire.Field{ID: 3, Value: w} i++ } - if v.CurrentBranchChangedError != nil { - w, err = v.CurrentBranchChangedError.ToWire() + if v.EntityNotExistError != nil { + w, err = v.EntityNotExistError.ToWire() if err != nil { return w, err } - fields[i] = wire.Field{ID: 7, Value: w} + fields[i] = wire.Field{ID: 4, Value: w} i++ } if i != 1 { - return wire.Value{}, fmt.Errorf("HistoryService_GetMutableState_Result should have exactly one field: got %v fields", i) + return wire.Value{}, fmt.Errorf("HistoryService_GetDLQReplicationMessages_Result should have exactly one field: got %v fields", i) } return wire.NewValueStruct(wire.Struct{Fields: fields[:i]}), nil } -func _GetMutableStateResponse_Read(w wire.Value) (*GetMutableStateResponse, error) { - var v GetMutableStateResponse - err := v.FromWire(w) - return &v, err -} - -func _CurrentBranchChangedError_Read(w wire.Value) (*shared.CurrentBranchChangedError, error) { - var v shared.CurrentBranchChangedError +func _GetDLQReplicationMessagesResponse_Read(w wire.Value) (*replicator.GetDLQReplicationMessagesResponse, error) { + var v replicator.GetDLQReplicationMessagesResponse err := v.FromWire(w) return &v, err } -// FromWire deserializes a HistoryService_GetMutableState_Result struct from its Thrift-level +// FromWire deserializes a HistoryService_GetDLQReplicationMessages_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 HistoryService_GetMutableState_Result struct +// An error is returned if we were unable to build a HistoryService_GetDLQReplicationMessages_Result struct // from the provided intermediate representation. // // x, err := binaryProtocol.Decode(reader, wire.TStruct) @@ -17201,19 +17079,19 @@ func _CurrentBranchChangedError_Read(w wire.Value) (*shared.CurrentBranchChanged // return nil, err // } // -// var v HistoryService_GetMutableState_Result +// var v HistoryService_GetDLQReplicationMessages_Result // if err := v.FromWire(x); err != nil { // return nil, err // } // return &v, nil -func (v *HistoryService_GetMutableState_Result) FromWire(w wire.Value) error { +func (v *HistoryService_GetDLQReplicationMessages_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 = _GetMutableStateResponse_Read(field.Value) + v.Success, err = _GetDLQReplicationMessagesResponse_Read(field.Value) if err != nil { return err } @@ -17236,30 +17114,6 @@ func (v *HistoryService_GetMutableState_Result) FromWire(w wire.Value) error { } 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.ShardOwnershipLostError, err = _ShardOwnershipLostError_Read(field.Value) - if err != nil { - return err - } - - } - case 5: - if field.Value.Type() == wire.TStruct { - v.LimitExceededError, err = _LimitExceededError_Read(field.Value) - if err != nil { - return err - } - - } - case 6: if field.Value.Type() == wire.TStruct { v.ServiceBusyError, err = _ServiceBusyError_Read(field.Value) if err != nil { @@ -17267,9 +17121,9 @@ func (v *HistoryService_GetMutableState_Result) FromWire(w wire.Value) error { } } - case 7: + case 4: if field.Value.Type() == wire.TStruct { - v.CurrentBranchChangedError, err = _CurrentBranchChangedError_Read(field.Value) + v.EntityNotExistError, err = _EntityNotExistsError_Read(field.Value) if err != nil { return err } @@ -17288,36 +17142,27 @@ func (v *HistoryService_GetMutableState_Result) FromWire(w wire.Value) error { if v.InternalServiceError != nil { count++ } - if v.EntityNotExistError != nil { - count++ - } - if v.ShardOwnershipLostError != nil { - count++ - } - if v.LimitExceededError != nil { - count++ - } if v.ServiceBusyError != nil { count++ } - if v.CurrentBranchChangedError != nil { + if v.EntityNotExistError != nil { count++ } if count != 1 { - return fmt.Errorf("HistoryService_GetMutableState_Result should have exactly one field: got %v fields", count) + return fmt.Errorf("HistoryService_GetDLQReplicationMessages_Result should have exactly one field: got %v fields", count) } return nil } -// String returns a readable string representation of a HistoryService_GetMutableState_Result +// String returns a readable string representation of a HistoryService_GetDLQReplicationMessages_Result // struct. -func (v *HistoryService_GetMutableState_Result) String() string { +func (v *HistoryService_GetDLQReplicationMessages_Result) String() string { if v == nil { return "" } - var fields [8]string + var fields [5]string i := 0 if v.Success != nil { fields[i] = fmt.Sprintf("Success: %v", v.Success) @@ -17331,35 +17176,23 @@ func (v *HistoryService_GetMutableState_Result) String() string { fields[i] = fmt.Sprintf("InternalServiceError: %v", v.InternalServiceError) i++ } - if v.EntityNotExistError != nil { - fields[i] = fmt.Sprintf("EntityNotExistError: %v", v.EntityNotExistError) - i++ - } - if v.ShardOwnershipLostError != nil { - fields[i] = fmt.Sprintf("ShardOwnershipLostError: %v", v.ShardOwnershipLostError) - i++ - } - if v.LimitExceededError != nil { - fields[i] = fmt.Sprintf("LimitExceededError: %v", v.LimitExceededError) - i++ - } if v.ServiceBusyError != nil { fields[i] = fmt.Sprintf("ServiceBusyError: %v", v.ServiceBusyError) i++ } - if v.CurrentBranchChangedError != nil { - fields[i] = fmt.Sprintf("CurrentBranchChangedError: %v", v.CurrentBranchChangedError) + if v.EntityNotExistError != nil { + fields[i] = fmt.Sprintf("EntityNotExistError: %v", v.EntityNotExistError) i++ } - return fmt.Sprintf("HistoryService_GetMutableState_Result{%v}", strings.Join(fields[:i], ", ")) + return fmt.Sprintf("HistoryService_GetDLQReplicationMessages_Result{%v}", strings.Join(fields[:i], ", ")) } -// Equals returns true if all the fields of this HistoryService_GetMutableState_Result match the -// provided HistoryService_GetMutableState_Result. +// Equals returns true if all the fields of this HistoryService_GetDLQReplicationMessages_Result match the +// provided HistoryService_GetDLQReplicationMessages_Result. // // This function performs a deep comparison. -func (v *HistoryService_GetMutableState_Result) Equals(rhs *HistoryService_GetMutableState_Result) bool { +func (v *HistoryService_GetDLQReplicationMessages_Result) Equals(rhs *HistoryService_GetDLQReplicationMessages_Result) bool { if v == nil { return rhs == nil } else if rhs == nil { @@ -17374,19 +17207,10 @@ func (v *HistoryService_GetMutableState_Result) Equals(rhs *HistoryService_GetMu if !((v.InternalServiceError == nil && rhs.InternalServiceError == nil) || (v.InternalServiceError != nil && rhs.InternalServiceError != nil && v.InternalServiceError.Equals(rhs.InternalServiceError))) { return false } - if !((v.EntityNotExistError == nil && rhs.EntityNotExistError == nil) || (v.EntityNotExistError != nil && rhs.EntityNotExistError != nil && v.EntityNotExistError.Equals(rhs.EntityNotExistError))) { - return false - } - if !((v.ShardOwnershipLostError == nil && rhs.ShardOwnershipLostError == nil) || (v.ShardOwnershipLostError != nil && rhs.ShardOwnershipLostError != nil && v.ShardOwnershipLostError.Equals(rhs.ShardOwnershipLostError))) { - return false - } - if !((v.LimitExceededError == nil && rhs.LimitExceededError == nil) || (v.LimitExceededError != nil && rhs.LimitExceededError != nil && v.LimitExceededError.Equals(rhs.LimitExceededError))) { + if !((v.ServiceBusyError == nil && rhs.ServiceBusyError == nil) || (v.ServiceBusyError != nil && rhs.ServiceBusyError != nil && v.ServiceBusyError.Equals(rhs.ServiceBusyError))) { return false } - if !((v.ServiceBusyError == nil && rhs.ServiceBusyError == nil) || (v.ServiceBusyError != nil && rhs.ServiceBusyError != nil && v.ServiceBusyError.Equals(rhs.ServiceBusyError))) { - return false - } - if !((v.CurrentBranchChangedError == nil && rhs.CurrentBranchChangedError == nil) || (v.CurrentBranchChangedError != nil && rhs.CurrentBranchChangedError != nil && v.CurrentBranchChangedError.Equals(rhs.CurrentBranchChangedError))) { + if !((v.EntityNotExistError == nil && rhs.EntityNotExistError == nil) || (v.EntityNotExistError != nil && rhs.EntityNotExistError != nil && v.EntityNotExistError.Equals(rhs.EntityNotExistError))) { return false } @@ -17394,8 +17218,8 @@ func (v *HistoryService_GetMutableState_Result) Equals(rhs *HistoryService_GetMu } // MarshalLogObject implements zapcore.ObjectMarshaler, enabling -// fast logging of HistoryService_GetMutableState_Result. -func (v *HistoryService_GetMutableState_Result) MarshalLogObject(enc zapcore.ObjectEncoder) (err error) { +// fast logging of HistoryService_GetDLQReplicationMessages_Result. +func (v *HistoryService_GetDLQReplicationMessages_Result) MarshalLogObject(enc zapcore.ObjectEncoder) (err error) { if v == nil { return nil } @@ -17408,27 +17232,18 @@ func (v *HistoryService_GetMutableState_Result) MarshalLogObject(enc zapcore.Obj if v.InternalServiceError != nil { err = multierr.Append(err, enc.AddObject("internalServiceError", v.InternalServiceError)) } - if v.EntityNotExistError != nil { - err = multierr.Append(err, enc.AddObject("entityNotExistError", v.EntityNotExistError)) - } - if v.ShardOwnershipLostError != nil { - err = multierr.Append(err, enc.AddObject("shardOwnershipLostError", v.ShardOwnershipLostError)) - } - if v.LimitExceededError != nil { - err = multierr.Append(err, enc.AddObject("limitExceededError", v.LimitExceededError)) - } if v.ServiceBusyError != nil { err = multierr.Append(err, enc.AddObject("serviceBusyError", v.ServiceBusyError)) } - if v.CurrentBranchChangedError != nil { - err = multierr.Append(err, enc.AddObject("currentBranchChangedError", v.CurrentBranchChangedError)) + if v.EntityNotExistError != nil { + err = multierr.Append(err, enc.AddObject("entityNotExistError", v.EntityNotExistError)) } return err } // GetSuccess returns the value of Success if it is set or its // zero value if it is unset. -func (v *HistoryService_GetMutableState_Result) GetSuccess() (o *GetMutableStateResponse) { +func (v *HistoryService_GetDLQReplicationMessages_Result) GetSuccess() (o *replicator.GetDLQReplicationMessagesResponse) { if v != nil && v.Success != nil { return v.Success } @@ -17437,13 +17252,13 @@ func (v *HistoryService_GetMutableState_Result) GetSuccess() (o *GetMutableState } // IsSetSuccess returns true if Success is not nil. -func (v *HistoryService_GetMutableState_Result) IsSetSuccess() bool { +func (v *HistoryService_GetDLQReplicationMessages_Result) IsSetSuccess() bool { return v != nil && v.Success != nil } // GetBadRequestError returns the value of BadRequestError if it is set or its // zero value if it is unset. -func (v *HistoryService_GetMutableState_Result) GetBadRequestError() (o *shared.BadRequestError) { +func (v *HistoryService_GetDLQReplicationMessages_Result) GetBadRequestError() (o *shared.BadRequestError) { if v != nil && v.BadRequestError != nil { return v.BadRequestError } @@ -17452,13 +17267,13 @@ func (v *HistoryService_GetMutableState_Result) GetBadRequestError() (o *shared. } // IsSetBadRequestError returns true if BadRequestError is not nil. -func (v *HistoryService_GetMutableState_Result) IsSetBadRequestError() bool { +func (v *HistoryService_GetDLQReplicationMessages_Result) IsSetBadRequestError() bool { return v != nil && v.BadRequestError != nil } // GetInternalServiceError returns the value of InternalServiceError if it is set or its // zero value if it is unset. -func (v *HistoryService_GetMutableState_Result) GetInternalServiceError() (o *shared.InternalServiceError) { +func (v *HistoryService_GetDLQReplicationMessages_Result) GetInternalServiceError() (o *shared.InternalServiceError) { if v != nil && v.InternalServiceError != nil { return v.InternalServiceError } @@ -17467,58 +17282,13 @@ func (v *HistoryService_GetMutableState_Result) GetInternalServiceError() (o *sh } // IsSetInternalServiceError returns true if InternalServiceError is not nil. -func (v *HistoryService_GetMutableState_Result) IsSetInternalServiceError() bool { +func (v *HistoryService_GetDLQReplicationMessages_Result) IsSetInternalServiceError() bool { return v != nil && v.InternalServiceError != nil } -// GetEntityNotExistError returns the value of EntityNotExistError if it is set or its -// zero value if it is unset. -func (v *HistoryService_GetMutableState_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 *HistoryService_GetMutableState_Result) IsSetEntityNotExistError() bool { - return v != nil && v.EntityNotExistError != nil -} - -// GetShardOwnershipLostError returns the value of ShardOwnershipLostError if it is set or its -// zero value if it is unset. -func (v *HistoryService_GetMutableState_Result) GetShardOwnershipLostError() (o *ShardOwnershipLostError) { - if v != nil && v.ShardOwnershipLostError != nil { - return v.ShardOwnershipLostError - } - - return -} - -// IsSetShardOwnershipLostError returns true if ShardOwnershipLostError is not nil. -func (v *HistoryService_GetMutableState_Result) IsSetShardOwnershipLostError() bool { - return v != nil && v.ShardOwnershipLostError != nil -} - -// GetLimitExceededError returns the value of LimitExceededError if it is set or its -// zero value if it is unset. -func (v *HistoryService_GetMutableState_Result) GetLimitExceededError() (o *shared.LimitExceededError) { - if v != nil && v.LimitExceededError != nil { - return v.LimitExceededError - } - - return -} - -// IsSetLimitExceededError returns true if LimitExceededError is not nil. -func (v *HistoryService_GetMutableState_Result) IsSetLimitExceededError() bool { - return v != nil && v.LimitExceededError != nil -} - // GetServiceBusyError returns the value of ServiceBusyError if it is set or its // zero value if it is unset. -func (v *HistoryService_GetMutableState_Result) GetServiceBusyError() (o *shared.ServiceBusyError) { +func (v *HistoryService_GetDLQReplicationMessages_Result) GetServiceBusyError() (o *shared.ServiceBusyError) { if v != nil && v.ServiceBusyError != nil { return v.ServiceBusyError } @@ -17527,48 +17297,48 @@ func (v *HistoryService_GetMutableState_Result) GetServiceBusyError() (o *shared } // IsSetServiceBusyError returns true if ServiceBusyError is not nil. -func (v *HistoryService_GetMutableState_Result) IsSetServiceBusyError() bool { +func (v *HistoryService_GetDLQReplicationMessages_Result) IsSetServiceBusyError() bool { return v != nil && v.ServiceBusyError != nil } -// GetCurrentBranchChangedError returns the value of CurrentBranchChangedError if it is set or its +// GetEntityNotExistError returns the value of EntityNotExistError if it is set or its // zero value if it is unset. -func (v *HistoryService_GetMutableState_Result) GetCurrentBranchChangedError() (o *shared.CurrentBranchChangedError) { - if v != nil && v.CurrentBranchChangedError != nil { - return v.CurrentBranchChangedError +func (v *HistoryService_GetDLQReplicationMessages_Result) GetEntityNotExistError() (o *shared.EntityNotExistsError) { + if v != nil && v.EntityNotExistError != nil { + return v.EntityNotExistError } return } -// IsSetCurrentBranchChangedError returns true if CurrentBranchChangedError is not nil. -func (v *HistoryService_GetMutableState_Result) IsSetCurrentBranchChangedError() bool { - return v != nil && v.CurrentBranchChangedError != nil +// IsSetEntityNotExistError returns true if EntityNotExistError is not nil. +func (v *HistoryService_GetDLQReplicationMessages_Result) IsSetEntityNotExistError() bool { + return v != nil && v.EntityNotExistError != 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 "GetMutableState" for this struct. -func (v *HistoryService_GetMutableState_Result) MethodName() string { - return "GetMutableState" +// This will always be "GetDLQReplicationMessages" for this struct. +func (v *HistoryService_GetDLQReplicationMessages_Result) MethodName() string { + return "GetDLQReplicationMessages" } // EnvelopeType returns the kind of value inside this struct. // // This will always be Reply for this struct. -func (v *HistoryService_GetMutableState_Result) EnvelopeType() wire.EnvelopeType { +func (v *HistoryService_GetDLQReplicationMessages_Result) EnvelopeType() wire.EnvelopeType { return wire.Reply } -// HistoryService_GetReplicationMessages_Args represents the arguments for the HistoryService.GetReplicationMessages function. +// HistoryService_GetMutableState_Args represents the arguments for the HistoryService.GetMutableState function. // -// The arguments for GetReplicationMessages are sent and received over the wire as this struct. -type HistoryService_GetReplicationMessages_Args struct { - Request *replicator.GetReplicationMessagesRequest `json:"request,omitempty"` +// The arguments for GetMutableState are sent and received over the wire as this struct. +type HistoryService_GetMutableState_Args struct { + GetRequest *GetMutableStateRequest `json:"getRequest,omitempty"` } -// ToWire translates a HistoryService_GetReplicationMessages_Args struct into a Thrift-level intermediate +// ToWire translates a HistoryService_GetMutableState_Args struct into a Thrift-level intermediate // representation. This intermediate representation may be serialized // into bytes using a ThriftRW protocol implementation. // @@ -17583,7 +17353,7 @@ type HistoryService_GetReplicationMessages_Args struct { // if err := binaryProtocol.Encode(x, writer); err != nil { // return err // } -func (v *HistoryService_GetReplicationMessages_Args) ToWire() (wire.Value, error) { +func (v *HistoryService_GetMutableState_Args) ToWire() (wire.Value, error) { var ( fields [1]wire.Field i int = 0 @@ -17591,8 +17361,8 @@ func (v *HistoryService_GetReplicationMessages_Args) ToWire() (wire.Value, error err error ) - if v.Request != nil { - w, err = v.Request.ToWire() + if v.GetRequest != nil { + w, err = v.GetRequest.ToWire() if err != nil { return w, err } @@ -17603,17 +17373,17 @@ func (v *HistoryService_GetReplicationMessages_Args) ToWire() (wire.Value, error return wire.NewValueStruct(wire.Struct{Fields: fields[:i]}), nil } -func _GetReplicationMessagesRequest_Read(w wire.Value) (*replicator.GetReplicationMessagesRequest, error) { - var v replicator.GetReplicationMessagesRequest +func _GetMutableStateRequest_Read(w wire.Value) (*GetMutableStateRequest, error) { + var v GetMutableStateRequest err := v.FromWire(w) return &v, err } -// FromWire deserializes a HistoryService_GetReplicationMessages_Args struct from its Thrift-level +// FromWire deserializes a HistoryService_GetMutableState_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 HistoryService_GetReplicationMessages_Args struct +// An error is returned if we were unable to build a HistoryService_GetMutableState_Args struct // from the provided intermediate representation. // // x, err := binaryProtocol.Decode(reader, wire.TStruct) @@ -17621,19 +17391,19 @@ func _GetReplicationMessagesRequest_Read(w wire.Value) (*replicator.GetReplicati // return nil, err // } // -// var v HistoryService_GetReplicationMessages_Args +// var v HistoryService_GetMutableState_Args // if err := v.FromWire(x); err != nil { // return nil, err // } // return &v, nil -func (v *HistoryService_GetReplicationMessages_Args) FromWire(w wire.Value) error { +func (v *HistoryService_GetMutableState_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.Request, err = _GetReplicationMessagesRequest_Read(field.Value) + v.GetRequest, err = _GetMutableStateRequest_Read(field.Value) if err != nil { return err } @@ -17645,34 +17415,34 @@ func (v *HistoryService_GetReplicationMessages_Args) FromWire(w wire.Value) erro return nil } -// String returns a readable string representation of a HistoryService_GetReplicationMessages_Args +// String returns a readable string representation of a HistoryService_GetMutableState_Args // struct. -func (v *HistoryService_GetReplicationMessages_Args) String() string { +func (v *HistoryService_GetMutableState_Args) String() string { if v == nil { return "" } var fields [1]string i := 0 - if v.Request != nil { - fields[i] = fmt.Sprintf("Request: %v", v.Request) + if v.GetRequest != nil { + fields[i] = fmt.Sprintf("GetRequest: %v", v.GetRequest) i++ } - return fmt.Sprintf("HistoryService_GetReplicationMessages_Args{%v}", strings.Join(fields[:i], ", ")) + return fmt.Sprintf("HistoryService_GetMutableState_Args{%v}", strings.Join(fields[:i], ", ")) } -// Equals returns true if all the fields of this HistoryService_GetReplicationMessages_Args match the -// provided HistoryService_GetReplicationMessages_Args. +// Equals returns true if all the fields of this HistoryService_GetMutableState_Args match the +// provided HistoryService_GetMutableState_Args. // // This function performs a deep comparison. -func (v *HistoryService_GetReplicationMessages_Args) Equals(rhs *HistoryService_GetReplicationMessages_Args) bool { +func (v *HistoryService_GetMutableState_Args) Equals(rhs *HistoryService_GetMutableState_Args) bool { if v == nil { return rhs == nil } else if rhs == nil { return false } - if !((v.Request == nil && rhs.Request == nil) || (v.Request != nil && rhs.Request != nil && v.Request.Equals(rhs.Request))) { + if !((v.GetRequest == nil && rhs.GetRequest == nil) || (v.GetRequest != nil && rhs.GetRequest != nil && v.GetRequest.Equals(rhs.GetRequest))) { return false } @@ -17680,154 +17450,168 @@ func (v *HistoryService_GetReplicationMessages_Args) Equals(rhs *HistoryService_ } // MarshalLogObject implements zapcore.ObjectMarshaler, enabling -// fast logging of HistoryService_GetReplicationMessages_Args. -func (v *HistoryService_GetReplicationMessages_Args) MarshalLogObject(enc zapcore.ObjectEncoder) (err error) { +// fast logging of HistoryService_GetMutableState_Args. +func (v *HistoryService_GetMutableState_Args) MarshalLogObject(enc zapcore.ObjectEncoder) (err error) { if v == nil { return nil } - if v.Request != nil { - err = multierr.Append(err, enc.AddObject("request", v.Request)) + if v.GetRequest != nil { + err = multierr.Append(err, enc.AddObject("getRequest", v.GetRequest)) } return err } -// GetRequest returns the value of Request if it is set or its +// GetGetRequest returns the value of GetRequest if it is set or its // zero value if it is unset. -func (v *HistoryService_GetReplicationMessages_Args) GetRequest() (o *replicator.GetReplicationMessagesRequest) { - if v != nil && v.Request != nil { - return v.Request +func (v *HistoryService_GetMutableState_Args) GetGetRequest() (o *GetMutableStateRequest) { + if v != nil && v.GetRequest != nil { + return v.GetRequest } return } -// IsSetRequest returns true if Request is not nil. -func (v *HistoryService_GetReplicationMessages_Args) IsSetRequest() bool { - return v != nil && v.Request != nil +// IsSetGetRequest returns true if GetRequest is not nil. +func (v *HistoryService_GetMutableState_Args) IsSetGetRequest() bool { + return v != nil && v.GetRequest != 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 "GetReplicationMessages" for this struct. -func (v *HistoryService_GetReplicationMessages_Args) MethodName() string { - return "GetReplicationMessages" +// This will always be "GetMutableState" for this struct. +func (v *HistoryService_GetMutableState_Args) MethodName() string { + return "GetMutableState" } // EnvelopeType returns the kind of value inside this struct. // // This will always be Call for this struct. -func (v *HistoryService_GetReplicationMessages_Args) EnvelopeType() wire.EnvelopeType { +func (v *HistoryService_GetMutableState_Args) EnvelopeType() wire.EnvelopeType { return wire.Call } -// HistoryService_GetReplicationMessages_Helper provides functions that aid in handling the -// parameters and return values of the HistoryService.GetReplicationMessages +// HistoryService_GetMutableState_Helper provides functions that aid in handling the +// parameters and return values of the HistoryService.GetMutableState // function. -var HistoryService_GetReplicationMessages_Helper = struct { - // Args accepts the parameters of GetReplicationMessages in-order and returns +var HistoryService_GetMutableState_Helper = struct { + // Args accepts the parameters of GetMutableState in-order and returns // the arguments struct for the function. Args func( - request *replicator.GetReplicationMessagesRequest, - ) *HistoryService_GetReplicationMessages_Args + getRequest *GetMutableStateRequest, + ) *HistoryService_GetMutableState_Args // IsException returns true if the given error can be thrown - // by GetReplicationMessages. + // by GetMutableState. // - // An error can be thrown by GetReplicationMessages only if the + // An error can be thrown by GetMutableState 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 GetReplicationMessages + // WrapResponse returns the result struct for GetMutableState // given its return value and error. // // This allows mapping values and errors returned by - // GetReplicationMessages into a serializable result struct. + // GetMutableState into a serializable result struct. // WrapResponse returns a non-nil error if the provided - // error cannot be thrown by GetReplicationMessages + // error cannot be thrown by GetMutableState // - // value, err := GetReplicationMessages(args) - // result, err := HistoryService_GetReplicationMessages_Helper.WrapResponse(value, err) + // value, err := GetMutableState(args) + // result, err := HistoryService_GetMutableState_Helper.WrapResponse(value, err) // if err != nil { - // return fmt.Errorf("unexpected error from GetReplicationMessages: %v", err) + // return fmt.Errorf("unexpected error from GetMutableState: %v", err) // } // serialize(result) - WrapResponse func(*replicator.GetReplicationMessagesResponse, error) (*HistoryService_GetReplicationMessages_Result, error) + WrapResponse func(*GetMutableStateResponse, error) (*HistoryService_GetMutableState_Result, error) - // UnwrapResponse takes the result struct for GetReplicationMessages + // UnwrapResponse takes the result struct for GetMutableState // and returns the value or error returned by it. // - // The error is non-nil only if GetReplicationMessages threw an + // The error is non-nil only if GetMutableState threw an // exception. // // result := deserialize(bytes) - // value, err := HistoryService_GetReplicationMessages_Helper.UnwrapResponse(result) - UnwrapResponse func(*HistoryService_GetReplicationMessages_Result) (*replicator.GetReplicationMessagesResponse, error) + // value, err := HistoryService_GetMutableState_Helper.UnwrapResponse(result) + UnwrapResponse func(*HistoryService_GetMutableState_Result) (*GetMutableStateResponse, error) }{} func init() { - HistoryService_GetReplicationMessages_Helper.Args = func( - request *replicator.GetReplicationMessagesRequest, - ) *HistoryService_GetReplicationMessages_Args { - return &HistoryService_GetReplicationMessages_Args{ - Request: request, + HistoryService_GetMutableState_Helper.Args = func( + getRequest *GetMutableStateRequest, + ) *HistoryService_GetMutableState_Args { + return &HistoryService_GetMutableState_Args{ + GetRequest: getRequest, } } - HistoryService_GetReplicationMessages_Helper.IsException = func(err error) bool { + HistoryService_GetMutableState_Helper.IsException = func(err error) bool { switch err.(type) { case *shared.BadRequestError: return true case *shared.InternalServiceError: return true + case *shared.EntityNotExistsError: + return true + case *ShardOwnershipLostError: + return true case *shared.LimitExceededError: return true case *shared.ServiceBusyError: return true - case *shared.ClientVersionNotSupportedError: + case *shared.CurrentBranchChangedError: return true default: return false } } - HistoryService_GetReplicationMessages_Helper.WrapResponse = func(success *replicator.GetReplicationMessagesResponse, err error) (*HistoryService_GetReplicationMessages_Result, error) { + HistoryService_GetMutableState_Helper.WrapResponse = func(success *GetMutableStateResponse, err error) (*HistoryService_GetMutableState_Result, error) { if err == nil { - return &HistoryService_GetReplicationMessages_Result{Success: success}, nil + return &HistoryService_GetMutableState_Result{Success: success}, nil } switch e := err.(type) { case *shared.BadRequestError: if e == nil { - return nil, errors.New("WrapResponse received non-nil error type with nil value for HistoryService_GetReplicationMessages_Result.BadRequestError") + return nil, errors.New("WrapResponse received non-nil error type with nil value for HistoryService_GetMutableState_Result.BadRequestError") } - return &HistoryService_GetReplicationMessages_Result{BadRequestError: e}, nil + return &HistoryService_GetMutableState_Result{BadRequestError: e}, nil case *shared.InternalServiceError: if e == nil { - return nil, errors.New("WrapResponse received non-nil error type with nil value for HistoryService_GetReplicationMessages_Result.InternalServiceError") + return nil, errors.New("WrapResponse received non-nil error type with nil value for HistoryService_GetMutableState_Result.InternalServiceError") } - return &HistoryService_GetReplicationMessages_Result{InternalServiceError: e}, nil - case *shared.LimitExceededError: + return &HistoryService_GetMutableState_Result{InternalServiceError: e}, nil + case *shared.EntityNotExistsError: if e == nil { - return nil, errors.New("WrapResponse received non-nil error type with nil value for HistoryService_GetReplicationMessages_Result.LimitExceededError") + return nil, errors.New("WrapResponse received non-nil error type with nil value for HistoryService_GetMutableState_Result.EntityNotExistError") } - return &HistoryService_GetReplicationMessages_Result{LimitExceededError: e}, nil - case *shared.ServiceBusyError: - if e == nil { - return nil, errors.New("WrapResponse received non-nil error type with nil value for HistoryService_GetReplicationMessages_Result.ServiceBusyError") + return &HistoryService_GetMutableState_Result{EntityNotExistError: e}, nil + case *ShardOwnershipLostError: + if e == nil { + return nil, errors.New("WrapResponse received non-nil error type with nil value for HistoryService_GetMutableState_Result.ShardOwnershipLostError") } - return &HistoryService_GetReplicationMessages_Result{ServiceBusyError: e}, nil - case *shared.ClientVersionNotSupportedError: + return &HistoryService_GetMutableState_Result{ShardOwnershipLostError: e}, nil + case *shared.LimitExceededError: if e == nil { - return nil, errors.New("WrapResponse received non-nil error type with nil value for HistoryService_GetReplicationMessages_Result.ClientVersionNotSupportedError") + return nil, errors.New("WrapResponse received non-nil error type with nil value for HistoryService_GetMutableState_Result.LimitExceededError") } - return &HistoryService_GetReplicationMessages_Result{ClientVersionNotSupportedError: e}, nil + return &HistoryService_GetMutableState_Result{LimitExceededError: e}, nil + case *shared.ServiceBusyError: + if e == nil { + return nil, errors.New("WrapResponse received non-nil error type with nil value for HistoryService_GetMutableState_Result.ServiceBusyError") + } + return &HistoryService_GetMutableState_Result{ServiceBusyError: e}, nil + case *shared.CurrentBranchChangedError: + if e == nil { + return nil, errors.New("WrapResponse received non-nil error type with nil value for HistoryService_GetMutableState_Result.CurrentBranchChangedError") + } + return &HistoryService_GetMutableState_Result{CurrentBranchChangedError: e}, nil } return nil, err } - HistoryService_GetReplicationMessages_Helper.UnwrapResponse = func(result *HistoryService_GetReplicationMessages_Result) (success *replicator.GetReplicationMessagesResponse, err error) { + HistoryService_GetMutableState_Helper.UnwrapResponse = func(result *HistoryService_GetMutableState_Result) (success *GetMutableStateResponse, err error) { if result.BadRequestError != nil { err = result.BadRequestError return @@ -17836,6 +17620,14 @@ func init() { err = result.InternalServiceError return } + if result.EntityNotExistError != nil { + err = result.EntityNotExistError + return + } + if result.ShardOwnershipLostError != nil { + err = result.ShardOwnershipLostError + return + } if result.LimitExceededError != nil { err = result.LimitExceededError return @@ -17844,8 +17636,8 @@ func init() { err = result.ServiceBusyError return } - if result.ClientVersionNotSupportedError != nil { - err = result.ClientVersionNotSupportedError + if result.CurrentBranchChangedError != nil { + err = result.CurrentBranchChangedError return } @@ -17860,22 +17652,24 @@ func init() { } -// HistoryService_GetReplicationMessages_Result represents the result of a HistoryService.GetReplicationMessages function call. +// HistoryService_GetMutableState_Result represents the result of a HistoryService.GetMutableState function call. // -// The result of a GetReplicationMessages execution is sent and received over the wire as this struct. +// The result of a GetMutableState execution is sent and received over the wire as this struct. // // Success is set only if the function did not throw an exception. -type HistoryService_GetReplicationMessages_Result struct { - // Value returned by GetReplicationMessages after a successful execution. - Success *replicator.GetReplicationMessagesResponse `json:"success,omitempty"` - BadRequestError *shared.BadRequestError `json:"badRequestError,omitempty"` - InternalServiceError *shared.InternalServiceError `json:"internalServiceError,omitempty"` - LimitExceededError *shared.LimitExceededError `json:"limitExceededError,omitempty"` - ServiceBusyError *shared.ServiceBusyError `json:"serviceBusyError,omitempty"` - ClientVersionNotSupportedError *shared.ClientVersionNotSupportedError `json:"clientVersionNotSupportedError,omitempty"` +type HistoryService_GetMutableState_Result struct { + // Value returned by GetMutableState after a successful execution. + Success *GetMutableStateResponse `json:"success,omitempty"` + BadRequestError *shared.BadRequestError `json:"badRequestError,omitempty"` + InternalServiceError *shared.InternalServiceError `json:"internalServiceError,omitempty"` + EntityNotExistError *shared.EntityNotExistsError `json:"entityNotExistError,omitempty"` + ShardOwnershipLostError *ShardOwnershipLostError `json:"shardOwnershipLostError,omitempty"` + LimitExceededError *shared.LimitExceededError `json:"limitExceededError,omitempty"` + ServiceBusyError *shared.ServiceBusyError `json:"serviceBusyError,omitempty"` + CurrentBranchChangedError *shared.CurrentBranchChangedError `json:"currentBranchChangedError,omitempty"` } -// ToWire translates a HistoryService_GetReplicationMessages_Result struct into a Thrift-level intermediate +// ToWire translates a HistoryService_GetMutableState_Result struct into a Thrift-level intermediate // representation. This intermediate representation may be serialized // into bytes using a ThriftRW protocol implementation. // @@ -17890,9 +17684,9 @@ type HistoryService_GetReplicationMessages_Result struct { // if err := binaryProtocol.Encode(x, writer); err != nil { // return err // } -func (v *HistoryService_GetReplicationMessages_Result) ToWire() (wire.Value, error) { +func (v *HistoryService_GetMutableState_Result) ToWire() (wire.Value, error) { var ( - fields [6]wire.Field + fields [8]wire.Field i int = 0 w wire.Value err error @@ -17922,12 +17716,28 @@ func (v *HistoryService_GetReplicationMessages_Result) ToWire() (wire.Value, 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.ShardOwnershipLostError != nil { + w, err = v.ShardOwnershipLostError.ToWire() + if err != nil { + return w, err + } + fields[i] = wire.Field{ID: 4, Value: w} + i++ + } if v.LimitExceededError != nil { w, err = v.LimitExceededError.ToWire() if err != nil { return w, err } - fields[i] = wire.Field{ID: 3, Value: w} + fields[i] = wire.Field{ID: 5, Value: w} i++ } if v.ServiceBusyError != nil { @@ -17935,42 +17745,42 @@ func (v *HistoryService_GetReplicationMessages_Result) ToWire() (wire.Value, err if err != nil { return w, err } - fields[i] = wire.Field{ID: 4, Value: w} + fields[i] = wire.Field{ID: 6, Value: w} i++ } - if v.ClientVersionNotSupportedError != nil { - w, err = v.ClientVersionNotSupportedError.ToWire() + if v.CurrentBranchChangedError != nil { + w, err = v.CurrentBranchChangedError.ToWire() if err != nil { return w, err } - fields[i] = wire.Field{ID: 5, Value: w} + fields[i] = wire.Field{ID: 7, Value: w} i++ } if i != 1 { - return wire.Value{}, fmt.Errorf("HistoryService_GetReplicationMessages_Result should have exactly one field: got %v fields", i) + return wire.Value{}, fmt.Errorf("HistoryService_GetMutableState_Result should have exactly one field: got %v fields", i) } return wire.NewValueStruct(wire.Struct{Fields: fields[:i]}), nil } -func _GetReplicationMessagesResponse_Read(w wire.Value) (*replicator.GetReplicationMessagesResponse, error) { - var v replicator.GetReplicationMessagesResponse +func _GetMutableStateResponse_Read(w wire.Value) (*GetMutableStateResponse, error) { + var v GetMutableStateResponse err := v.FromWire(w) return &v, err } -func _ClientVersionNotSupportedError_Read(w wire.Value) (*shared.ClientVersionNotSupportedError, error) { - var v shared.ClientVersionNotSupportedError +func _CurrentBranchChangedError_Read(w wire.Value) (*shared.CurrentBranchChangedError, error) { + var v shared.CurrentBranchChangedError err := v.FromWire(w) return &v, err } -// FromWire deserializes a HistoryService_GetReplicationMessages_Result struct from its Thrift-level +// FromWire deserializes a HistoryService_GetMutableState_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 HistoryService_GetReplicationMessages_Result struct +// An error is returned if we were unable to build a HistoryService_GetMutableState_Result struct // from the provided intermediate representation. // // x, err := binaryProtocol.Decode(reader, wire.TStruct) @@ -17978,19 +17788,19 @@ func _ClientVersionNotSupportedError_Read(w wire.Value) (*shared.ClientVersionNo // return nil, err // } // -// var v HistoryService_GetReplicationMessages_Result +// var v HistoryService_GetMutableState_Result // if err := v.FromWire(x); err != nil { // return nil, err // } // return &v, nil -func (v *HistoryService_GetReplicationMessages_Result) FromWire(w wire.Value) error { +func (v *HistoryService_GetMutableState_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 = _GetReplicationMessagesResponse_Read(field.Value) + v.Success, err = _GetMutableStateResponse_Read(field.Value) if err != nil { return err } @@ -18014,7 +17824,7 @@ func (v *HistoryService_GetReplicationMessages_Result) FromWire(w wire.Value) er } case 3: if field.Value.Type() == wire.TStruct { - v.LimitExceededError, err = _LimitExceededError_Read(field.Value) + v.EntityNotExistError, err = _EntityNotExistsError_Read(field.Value) if err != nil { return err } @@ -18022,7 +17832,7 @@ func (v *HistoryService_GetReplicationMessages_Result) FromWire(w wire.Value) er } case 4: if field.Value.Type() == wire.TStruct { - v.ServiceBusyError, err = _ServiceBusyError_Read(field.Value) + v.ShardOwnershipLostError, err = _ShardOwnershipLostError_Read(field.Value) if err != nil { return err } @@ -18030,7 +17840,23 @@ func (v *HistoryService_GetReplicationMessages_Result) FromWire(w wire.Value) er } case 5: if field.Value.Type() == wire.TStruct { - v.ClientVersionNotSupportedError, err = _ClientVersionNotSupportedError_Read(field.Value) + v.LimitExceededError, err = _LimitExceededError_Read(field.Value) + if err != nil { + return err + } + + } + case 6: + if field.Value.Type() == wire.TStruct { + v.ServiceBusyError, err = _ServiceBusyError_Read(field.Value) + if err != nil { + return err + } + + } + case 7: + if field.Value.Type() == wire.TStruct { + v.CurrentBranchChangedError, err = _CurrentBranchChangedError_Read(field.Value) if err != nil { return err } @@ -18049,30 +17875,36 @@ func (v *HistoryService_GetReplicationMessages_Result) FromWire(w wire.Value) er if v.InternalServiceError != nil { count++ } + if v.EntityNotExistError != nil { + count++ + } + if v.ShardOwnershipLostError != nil { + count++ + } if v.LimitExceededError != nil { count++ } if v.ServiceBusyError != nil { count++ } - if v.ClientVersionNotSupportedError != nil { + if v.CurrentBranchChangedError != nil { count++ } if count != 1 { - return fmt.Errorf("HistoryService_GetReplicationMessages_Result should have exactly one field: got %v fields", count) + return fmt.Errorf("HistoryService_GetMutableState_Result should have exactly one field: got %v fields", count) } return nil } -// String returns a readable string representation of a HistoryService_GetReplicationMessages_Result +// String returns a readable string representation of a HistoryService_GetMutableState_Result // struct. -func (v *HistoryService_GetReplicationMessages_Result) String() string { +func (v *HistoryService_GetMutableState_Result) String() string { if v == nil { return "" } - var fields [6]string + var fields [8]string i := 0 if v.Success != nil { fields[i] = fmt.Sprintf("Success: %v", v.Success) @@ -18086,6 +17918,14 @@ func (v *HistoryService_GetReplicationMessages_Result) String() string { fields[i] = fmt.Sprintf("InternalServiceError: %v", v.InternalServiceError) i++ } + if v.EntityNotExistError != nil { + fields[i] = fmt.Sprintf("EntityNotExistError: %v", v.EntityNotExistError) + i++ + } + if v.ShardOwnershipLostError != nil { + fields[i] = fmt.Sprintf("ShardOwnershipLostError: %v", v.ShardOwnershipLostError) + i++ + } if v.LimitExceededError != nil { fields[i] = fmt.Sprintf("LimitExceededError: %v", v.LimitExceededError) i++ @@ -18094,19 +17934,19 @@ func (v *HistoryService_GetReplicationMessages_Result) String() string { fields[i] = fmt.Sprintf("ServiceBusyError: %v", v.ServiceBusyError) i++ } - if v.ClientVersionNotSupportedError != nil { - fields[i] = fmt.Sprintf("ClientVersionNotSupportedError: %v", v.ClientVersionNotSupportedError) + if v.CurrentBranchChangedError != nil { + fields[i] = fmt.Sprintf("CurrentBranchChangedError: %v", v.CurrentBranchChangedError) i++ } - return fmt.Sprintf("HistoryService_GetReplicationMessages_Result{%v}", strings.Join(fields[:i], ", ")) + return fmt.Sprintf("HistoryService_GetMutableState_Result{%v}", strings.Join(fields[:i], ", ")) } -// Equals returns true if all the fields of this HistoryService_GetReplicationMessages_Result match the -// provided HistoryService_GetReplicationMessages_Result. +// Equals returns true if all the fields of this HistoryService_GetMutableState_Result match the +// provided HistoryService_GetMutableState_Result. // // This function performs a deep comparison. -func (v *HistoryService_GetReplicationMessages_Result) Equals(rhs *HistoryService_GetReplicationMessages_Result) bool { +func (v *HistoryService_GetMutableState_Result) Equals(rhs *HistoryService_GetMutableState_Result) bool { if v == nil { return rhs == nil } else if rhs == nil { @@ -18121,13 +17961,19 @@ func (v *HistoryService_GetReplicationMessages_Result) Equals(rhs *HistoryServic if !((v.InternalServiceError == nil && rhs.InternalServiceError == nil) || (v.InternalServiceError != nil && rhs.InternalServiceError != nil && v.InternalServiceError.Equals(rhs.InternalServiceError))) { return false } + if !((v.EntityNotExistError == nil && rhs.EntityNotExistError == nil) || (v.EntityNotExistError != nil && rhs.EntityNotExistError != nil && v.EntityNotExistError.Equals(rhs.EntityNotExistError))) { + return false + } + if !((v.ShardOwnershipLostError == nil && rhs.ShardOwnershipLostError == nil) || (v.ShardOwnershipLostError != nil && rhs.ShardOwnershipLostError != nil && v.ShardOwnershipLostError.Equals(rhs.ShardOwnershipLostError))) { + return false + } if !((v.LimitExceededError == nil && rhs.LimitExceededError == nil) || (v.LimitExceededError != nil && rhs.LimitExceededError != nil && v.LimitExceededError.Equals(rhs.LimitExceededError))) { return false } if !((v.ServiceBusyError == nil && rhs.ServiceBusyError == nil) || (v.ServiceBusyError != nil && rhs.ServiceBusyError != nil && v.ServiceBusyError.Equals(rhs.ServiceBusyError))) { return false } - if !((v.ClientVersionNotSupportedError == nil && rhs.ClientVersionNotSupportedError == nil) || (v.ClientVersionNotSupportedError != nil && rhs.ClientVersionNotSupportedError != nil && v.ClientVersionNotSupportedError.Equals(rhs.ClientVersionNotSupportedError))) { + if !((v.CurrentBranchChangedError == nil && rhs.CurrentBranchChangedError == nil) || (v.CurrentBranchChangedError != nil && rhs.CurrentBranchChangedError != nil && v.CurrentBranchChangedError.Equals(rhs.CurrentBranchChangedError))) { return false } @@ -18135,8 +17981,8 @@ func (v *HistoryService_GetReplicationMessages_Result) Equals(rhs *HistoryServic } // MarshalLogObject implements zapcore.ObjectMarshaler, enabling -// fast logging of HistoryService_GetReplicationMessages_Result. -func (v *HistoryService_GetReplicationMessages_Result) MarshalLogObject(enc zapcore.ObjectEncoder) (err error) { +// fast logging of HistoryService_GetMutableState_Result. +func (v *HistoryService_GetMutableState_Result) MarshalLogObject(enc zapcore.ObjectEncoder) (err error) { if v == nil { return nil } @@ -18149,21 +17995,27 @@ func (v *HistoryService_GetReplicationMessages_Result) MarshalLogObject(enc zapc if v.InternalServiceError != nil { err = multierr.Append(err, enc.AddObject("internalServiceError", v.InternalServiceError)) } + if v.EntityNotExistError != nil { + err = multierr.Append(err, enc.AddObject("entityNotExistError", v.EntityNotExistError)) + } + if v.ShardOwnershipLostError != nil { + err = multierr.Append(err, enc.AddObject("shardOwnershipLostError", v.ShardOwnershipLostError)) + } if v.LimitExceededError != nil { err = multierr.Append(err, enc.AddObject("limitExceededError", v.LimitExceededError)) } if v.ServiceBusyError != nil { err = multierr.Append(err, enc.AddObject("serviceBusyError", v.ServiceBusyError)) } - if v.ClientVersionNotSupportedError != nil { - err = multierr.Append(err, enc.AddObject("clientVersionNotSupportedError", v.ClientVersionNotSupportedError)) + if v.CurrentBranchChangedError != nil { + err = multierr.Append(err, enc.AddObject("currentBranchChangedError", v.CurrentBranchChangedError)) } return err } // GetSuccess returns the value of Success if it is set or its // zero value if it is unset. -func (v *HistoryService_GetReplicationMessages_Result) GetSuccess() (o *replicator.GetReplicationMessagesResponse) { +func (v *HistoryService_GetMutableState_Result) GetSuccess() (o *GetMutableStateResponse) { if v != nil && v.Success != nil { return v.Success } @@ -18172,13 +18024,13 @@ func (v *HistoryService_GetReplicationMessages_Result) GetSuccess() (o *replicat } // IsSetSuccess returns true if Success is not nil. -func (v *HistoryService_GetReplicationMessages_Result) IsSetSuccess() bool { +func (v *HistoryService_GetMutableState_Result) IsSetSuccess() bool { return v != nil && v.Success != nil } // GetBadRequestError returns the value of BadRequestError if it is set or its // zero value if it is unset. -func (v *HistoryService_GetReplicationMessages_Result) GetBadRequestError() (o *shared.BadRequestError) { +func (v *HistoryService_GetMutableState_Result) GetBadRequestError() (o *shared.BadRequestError) { if v != nil && v.BadRequestError != nil { return v.BadRequestError } @@ -18187,13 +18039,13 @@ func (v *HistoryService_GetReplicationMessages_Result) GetBadRequestError() (o * } // IsSetBadRequestError returns true if BadRequestError is not nil. -func (v *HistoryService_GetReplicationMessages_Result) IsSetBadRequestError() bool { +func (v *HistoryService_GetMutableState_Result) IsSetBadRequestError() bool { return v != nil && v.BadRequestError != nil } // GetInternalServiceError returns the value of InternalServiceError if it is set or its // zero value if it is unset. -func (v *HistoryService_GetReplicationMessages_Result) GetInternalServiceError() (o *shared.InternalServiceError) { +func (v *HistoryService_GetMutableState_Result) GetInternalServiceError() (o *shared.InternalServiceError) { if v != nil && v.InternalServiceError != nil { return v.InternalServiceError } @@ -18202,13 +18054,43 @@ func (v *HistoryService_GetReplicationMessages_Result) GetInternalServiceError() } // IsSetInternalServiceError returns true if InternalServiceError is not nil. -func (v *HistoryService_GetReplicationMessages_Result) IsSetInternalServiceError() bool { +func (v *HistoryService_GetMutableState_Result) IsSetInternalServiceError() bool { return v != nil && v.InternalServiceError != nil } +// GetEntityNotExistError returns the value of EntityNotExistError if it is set or its +// zero value if it is unset. +func (v *HistoryService_GetMutableState_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 *HistoryService_GetMutableState_Result) IsSetEntityNotExistError() bool { + return v != nil && v.EntityNotExistError != nil +} + +// GetShardOwnershipLostError returns the value of ShardOwnershipLostError if it is set or its +// zero value if it is unset. +func (v *HistoryService_GetMutableState_Result) GetShardOwnershipLostError() (o *ShardOwnershipLostError) { + if v != nil && v.ShardOwnershipLostError != nil { + return v.ShardOwnershipLostError + } + + return +} + +// IsSetShardOwnershipLostError returns true if ShardOwnershipLostError is not nil. +func (v *HistoryService_GetMutableState_Result) IsSetShardOwnershipLostError() bool { + return v != nil && v.ShardOwnershipLostError != nil +} + // GetLimitExceededError returns the value of LimitExceededError if it is set or its // zero value if it is unset. -func (v *HistoryService_GetReplicationMessages_Result) GetLimitExceededError() (o *shared.LimitExceededError) { +func (v *HistoryService_GetMutableState_Result) GetLimitExceededError() (o *shared.LimitExceededError) { if v != nil && v.LimitExceededError != nil { return v.LimitExceededError } @@ -18217,13 +18099,13 @@ func (v *HistoryService_GetReplicationMessages_Result) GetLimitExceededError() ( } // IsSetLimitExceededError returns true if LimitExceededError is not nil. -func (v *HistoryService_GetReplicationMessages_Result) IsSetLimitExceededError() bool { +func (v *HistoryService_GetMutableState_Result) IsSetLimitExceededError() bool { return v != nil && v.LimitExceededError != nil } // GetServiceBusyError returns the value of ServiceBusyError if it is set or its // zero value if it is unset. -func (v *HistoryService_GetReplicationMessages_Result) GetServiceBusyError() (o *shared.ServiceBusyError) { +func (v *HistoryService_GetMutableState_Result) GetServiceBusyError() (o *shared.ServiceBusyError) { if v != nil && v.ServiceBusyError != nil { return v.ServiceBusyError } @@ -18232,48 +18114,48 @@ func (v *HistoryService_GetReplicationMessages_Result) GetServiceBusyError() (o } // IsSetServiceBusyError returns true if ServiceBusyError is not nil. -func (v *HistoryService_GetReplicationMessages_Result) IsSetServiceBusyError() bool { +func (v *HistoryService_GetMutableState_Result) IsSetServiceBusyError() bool { return v != nil && v.ServiceBusyError != nil } -// GetClientVersionNotSupportedError returns the value of ClientVersionNotSupportedError if it is set or its +// GetCurrentBranchChangedError returns the value of CurrentBranchChangedError if it is set or its // zero value if it is unset. -func (v *HistoryService_GetReplicationMessages_Result) GetClientVersionNotSupportedError() (o *shared.ClientVersionNotSupportedError) { - if v != nil && v.ClientVersionNotSupportedError != nil { - return v.ClientVersionNotSupportedError +func (v *HistoryService_GetMutableState_Result) GetCurrentBranchChangedError() (o *shared.CurrentBranchChangedError) { + if v != nil && v.CurrentBranchChangedError != nil { + return v.CurrentBranchChangedError } return } -// IsSetClientVersionNotSupportedError returns true if ClientVersionNotSupportedError is not nil. -func (v *HistoryService_GetReplicationMessages_Result) IsSetClientVersionNotSupportedError() bool { - return v != nil && v.ClientVersionNotSupportedError != nil +// IsSetCurrentBranchChangedError returns true if CurrentBranchChangedError is not nil. +func (v *HistoryService_GetMutableState_Result) IsSetCurrentBranchChangedError() bool { + return v != nil && v.CurrentBranchChangedError != 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 "GetReplicationMessages" for this struct. -func (v *HistoryService_GetReplicationMessages_Result) MethodName() string { - return "GetReplicationMessages" +// This will always be "GetMutableState" for this struct. +func (v *HistoryService_GetMutableState_Result) MethodName() string { + return "GetMutableState" } // EnvelopeType returns the kind of value inside this struct. // // This will always be Reply for this struct. -func (v *HistoryService_GetReplicationMessages_Result) EnvelopeType() wire.EnvelopeType { +func (v *HistoryService_GetMutableState_Result) EnvelopeType() wire.EnvelopeType { return wire.Reply } -// HistoryService_MergeDLQMessages_Args represents the arguments for the HistoryService.MergeDLQMessages function. +// HistoryService_GetReplicationMessages_Args represents the arguments for the HistoryService.GetReplicationMessages function. // -// The arguments for MergeDLQMessages are sent and received over the wire as this struct. -type HistoryService_MergeDLQMessages_Args struct { - Request *replicator.MergeDLQMessagesRequest `json:"request,omitempty"` +// The arguments for GetReplicationMessages are sent and received over the wire as this struct. +type HistoryService_GetReplicationMessages_Args struct { + Request *replicator.GetReplicationMessagesRequest `json:"request,omitempty"` } -// ToWire translates a HistoryService_MergeDLQMessages_Args struct into a Thrift-level intermediate +// ToWire translates a HistoryService_GetReplicationMessages_Args struct into a Thrift-level intermediate // representation. This intermediate representation may be serialized // into bytes using a ThriftRW protocol implementation. // @@ -18288,7 +18170,7 @@ type HistoryService_MergeDLQMessages_Args struct { // if err := binaryProtocol.Encode(x, writer); err != nil { // return err // } -func (v *HistoryService_MergeDLQMessages_Args) ToWire() (wire.Value, error) { +func (v *HistoryService_GetReplicationMessages_Args) ToWire() (wire.Value, error) { var ( fields [1]wire.Field i int = 0 @@ -18308,17 +18190,17 @@ func (v *HistoryService_MergeDLQMessages_Args) ToWire() (wire.Value, error) { return wire.NewValueStruct(wire.Struct{Fields: fields[:i]}), nil } -func _MergeDLQMessagesRequest_Read(w wire.Value) (*replicator.MergeDLQMessagesRequest, error) { - var v replicator.MergeDLQMessagesRequest +func _GetReplicationMessagesRequest_Read(w wire.Value) (*replicator.GetReplicationMessagesRequest, error) { + var v replicator.GetReplicationMessagesRequest err := v.FromWire(w) return &v, err } -// FromWire deserializes a HistoryService_MergeDLQMessages_Args struct from its Thrift-level +// FromWire deserializes a HistoryService_GetReplicationMessages_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 HistoryService_MergeDLQMessages_Args struct +// An error is returned if we were unable to build a HistoryService_GetReplicationMessages_Args struct // from the provided intermediate representation. // // x, err := binaryProtocol.Decode(reader, wire.TStruct) @@ -18326,19 +18208,19 @@ func _MergeDLQMessagesRequest_Read(w wire.Value) (*replicator.MergeDLQMessagesRe // return nil, err // } // -// var v HistoryService_MergeDLQMessages_Args +// var v HistoryService_GetReplicationMessages_Args // if err := v.FromWire(x); err != nil { // return nil, err // } // return &v, nil -func (v *HistoryService_MergeDLQMessages_Args) FromWire(w wire.Value) error { +func (v *HistoryService_GetReplicationMessages_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.Request, err = _MergeDLQMessagesRequest_Read(field.Value) + v.Request, err = _GetReplicationMessagesRequest_Read(field.Value) if err != nil { return err } @@ -18350,9 +18232,9 @@ func (v *HistoryService_MergeDLQMessages_Args) FromWire(w wire.Value) error { return nil } -// String returns a readable string representation of a HistoryService_MergeDLQMessages_Args +// String returns a readable string representation of a HistoryService_GetReplicationMessages_Args // struct. -func (v *HistoryService_MergeDLQMessages_Args) String() string { +func (v *HistoryService_GetReplicationMessages_Args) String() string { if v == nil { return "" } @@ -18364,14 +18246,14 @@ func (v *HistoryService_MergeDLQMessages_Args) String() string { i++ } - return fmt.Sprintf("HistoryService_MergeDLQMessages_Args{%v}", strings.Join(fields[:i], ", ")) + return fmt.Sprintf("HistoryService_GetReplicationMessages_Args{%v}", strings.Join(fields[:i], ", ")) } -// Equals returns true if all the fields of this HistoryService_MergeDLQMessages_Args match the -// provided HistoryService_MergeDLQMessages_Args. +// Equals returns true if all the fields of this HistoryService_GetReplicationMessages_Args match the +// provided HistoryService_GetReplicationMessages_Args. // // This function performs a deep comparison. -func (v *HistoryService_MergeDLQMessages_Args) Equals(rhs *HistoryService_MergeDLQMessages_Args) bool { +func (v *HistoryService_GetReplicationMessages_Args) Equals(rhs *HistoryService_GetReplicationMessages_Args) bool { if v == nil { return rhs == nil } else if rhs == nil { @@ -18385,8 +18267,8 @@ func (v *HistoryService_MergeDLQMessages_Args) Equals(rhs *HistoryService_MergeD } // MarshalLogObject implements zapcore.ObjectMarshaler, enabling -// fast logging of HistoryService_MergeDLQMessages_Args. -func (v *HistoryService_MergeDLQMessages_Args) MarshalLogObject(enc zapcore.ObjectEncoder) (err error) { +// fast logging of HistoryService_GetReplicationMessages_Args. +func (v *HistoryService_GetReplicationMessages_Args) MarshalLogObject(enc zapcore.ObjectEncoder) (err error) { if v == nil { return nil } @@ -18398,7 +18280,7 @@ func (v *HistoryService_MergeDLQMessages_Args) MarshalLogObject(enc zapcore.Obje // GetRequest returns the value of Request if it is set or its // zero value if it is unset. -func (v *HistoryService_MergeDLQMessages_Args) GetRequest() (o *replicator.MergeDLQMessagesRequest) { +func (v *HistoryService_GetReplicationMessages_Args) GetRequest() (o *replicator.GetReplicationMessagesRequest) { if v != nil && v.Request != nil { return v.Request } @@ -18407,132 +18289,132 @@ func (v *HistoryService_MergeDLQMessages_Args) GetRequest() (o *replicator.Merge } // IsSetRequest returns true if Request is not nil. -func (v *HistoryService_MergeDLQMessages_Args) IsSetRequest() bool { +func (v *HistoryService_GetReplicationMessages_Args) IsSetRequest() bool { return v != nil && v.Request != 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 "MergeDLQMessages" for this struct. -func (v *HistoryService_MergeDLQMessages_Args) MethodName() string { - return "MergeDLQMessages" +// This will always be "GetReplicationMessages" for this struct. +func (v *HistoryService_GetReplicationMessages_Args) MethodName() string { + return "GetReplicationMessages" } // EnvelopeType returns the kind of value inside this struct. // // This will always be Call for this struct. -func (v *HistoryService_MergeDLQMessages_Args) EnvelopeType() wire.EnvelopeType { +func (v *HistoryService_GetReplicationMessages_Args) EnvelopeType() wire.EnvelopeType { return wire.Call } -// HistoryService_MergeDLQMessages_Helper provides functions that aid in handling the -// parameters and return values of the HistoryService.MergeDLQMessages +// HistoryService_GetReplicationMessages_Helper provides functions that aid in handling the +// parameters and return values of the HistoryService.GetReplicationMessages // function. -var HistoryService_MergeDLQMessages_Helper = struct { - // Args accepts the parameters of MergeDLQMessages in-order and returns +var HistoryService_GetReplicationMessages_Helper = struct { + // Args accepts the parameters of GetReplicationMessages in-order and returns // the arguments struct for the function. Args func( - request *replicator.MergeDLQMessagesRequest, - ) *HistoryService_MergeDLQMessages_Args + request *replicator.GetReplicationMessagesRequest, + ) *HistoryService_GetReplicationMessages_Args // IsException returns true if the given error can be thrown - // by MergeDLQMessages. + // by GetReplicationMessages. // - // An error can be thrown by MergeDLQMessages only if the + // An error can be thrown by GetReplicationMessages 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 MergeDLQMessages + // WrapResponse returns the result struct for GetReplicationMessages // given its return value and error. // // This allows mapping values and errors returned by - // MergeDLQMessages into a serializable result struct. + // GetReplicationMessages into a serializable result struct. // WrapResponse returns a non-nil error if the provided - // error cannot be thrown by MergeDLQMessages + // error cannot be thrown by GetReplicationMessages // - // value, err := MergeDLQMessages(args) - // result, err := HistoryService_MergeDLQMessages_Helper.WrapResponse(value, err) + // value, err := GetReplicationMessages(args) + // result, err := HistoryService_GetReplicationMessages_Helper.WrapResponse(value, err) // if err != nil { - // return fmt.Errorf("unexpected error from MergeDLQMessages: %v", err) + // return fmt.Errorf("unexpected error from GetReplicationMessages: %v", err) // } // serialize(result) - WrapResponse func(*replicator.MergeDLQMessagesResponse, error) (*HistoryService_MergeDLQMessages_Result, error) + WrapResponse func(*replicator.GetReplicationMessagesResponse, error) (*HistoryService_GetReplicationMessages_Result, error) - // UnwrapResponse takes the result struct for MergeDLQMessages + // UnwrapResponse takes the result struct for GetReplicationMessages // and returns the value or error returned by it. // - // The error is non-nil only if MergeDLQMessages threw an + // The error is non-nil only if GetReplicationMessages threw an // exception. // // result := deserialize(bytes) - // value, err := HistoryService_MergeDLQMessages_Helper.UnwrapResponse(result) - UnwrapResponse func(*HistoryService_MergeDLQMessages_Result) (*replicator.MergeDLQMessagesResponse, error) + // value, err := HistoryService_GetReplicationMessages_Helper.UnwrapResponse(result) + UnwrapResponse func(*HistoryService_GetReplicationMessages_Result) (*replicator.GetReplicationMessagesResponse, error) }{} func init() { - HistoryService_MergeDLQMessages_Helper.Args = func( - request *replicator.MergeDLQMessagesRequest, - ) *HistoryService_MergeDLQMessages_Args { - return &HistoryService_MergeDLQMessages_Args{ + HistoryService_GetReplicationMessages_Helper.Args = func( + request *replicator.GetReplicationMessagesRequest, + ) *HistoryService_GetReplicationMessages_Args { + return &HistoryService_GetReplicationMessages_Args{ Request: request, } } - HistoryService_MergeDLQMessages_Helper.IsException = func(err error) bool { + HistoryService_GetReplicationMessages_Helper.IsException = func(err error) bool { switch err.(type) { case *shared.BadRequestError: return true case *shared.InternalServiceError: return true - case *shared.ServiceBusyError: + case *shared.LimitExceededError: return true - case *shared.EntityNotExistsError: + case *shared.ServiceBusyError: return true - case *ShardOwnershipLostError: + case *shared.ClientVersionNotSupportedError: return true default: return false } } - HistoryService_MergeDLQMessages_Helper.WrapResponse = func(success *replicator.MergeDLQMessagesResponse, err error) (*HistoryService_MergeDLQMessages_Result, error) { + HistoryService_GetReplicationMessages_Helper.WrapResponse = func(success *replicator.GetReplicationMessagesResponse, err error) (*HistoryService_GetReplicationMessages_Result, error) { if err == nil { - return &HistoryService_MergeDLQMessages_Result{Success: success}, nil + return &HistoryService_GetReplicationMessages_Result{Success: success}, nil } switch e := err.(type) { case *shared.BadRequestError: if e == nil { - return nil, errors.New("WrapResponse received non-nil error type with nil value for HistoryService_MergeDLQMessages_Result.BadRequestError") + return nil, errors.New("WrapResponse received non-nil error type with nil value for HistoryService_GetReplicationMessages_Result.BadRequestError") } - return &HistoryService_MergeDLQMessages_Result{BadRequestError: e}, nil + return &HistoryService_GetReplicationMessages_Result{BadRequestError: e}, nil case *shared.InternalServiceError: if e == nil { - return nil, errors.New("WrapResponse received non-nil error type with nil value for HistoryService_MergeDLQMessages_Result.InternalServiceError") + return nil, errors.New("WrapResponse received non-nil error type with nil value for HistoryService_GetReplicationMessages_Result.InternalServiceError") } - return &HistoryService_MergeDLQMessages_Result{InternalServiceError: e}, nil - case *shared.ServiceBusyError: + return &HistoryService_GetReplicationMessages_Result{InternalServiceError: e}, nil + case *shared.LimitExceededError: if e == nil { - return nil, errors.New("WrapResponse received non-nil error type with nil value for HistoryService_MergeDLQMessages_Result.ServiceBusyError") + return nil, errors.New("WrapResponse received non-nil error type with nil value for HistoryService_GetReplicationMessages_Result.LimitExceededError") } - return &HistoryService_MergeDLQMessages_Result{ServiceBusyError: e}, nil - case *shared.EntityNotExistsError: + return &HistoryService_GetReplicationMessages_Result{LimitExceededError: e}, nil + case *shared.ServiceBusyError: if e == nil { - return nil, errors.New("WrapResponse received non-nil error type with nil value for HistoryService_MergeDLQMessages_Result.EntityNotExistError") + return nil, errors.New("WrapResponse received non-nil error type with nil value for HistoryService_GetReplicationMessages_Result.ServiceBusyError") } - return &HistoryService_MergeDLQMessages_Result{EntityNotExistError: e}, nil - case *ShardOwnershipLostError: + return &HistoryService_GetReplicationMessages_Result{ServiceBusyError: e}, nil + case *shared.ClientVersionNotSupportedError: if e == nil { - return nil, errors.New("WrapResponse received non-nil error type with nil value for HistoryService_MergeDLQMessages_Result.ShardOwnershipLostError") + return nil, errors.New("WrapResponse received non-nil error type with nil value for HistoryService_GetReplicationMessages_Result.ClientVersionNotSupportedError") } - return &HistoryService_MergeDLQMessages_Result{ShardOwnershipLostError: e}, nil + return &HistoryService_GetReplicationMessages_Result{ClientVersionNotSupportedError: e}, nil } return nil, err } - HistoryService_MergeDLQMessages_Helper.UnwrapResponse = func(result *HistoryService_MergeDLQMessages_Result) (success *replicator.MergeDLQMessagesResponse, err error) { + HistoryService_GetReplicationMessages_Helper.UnwrapResponse = func(result *HistoryService_GetReplicationMessages_Result) (success *replicator.GetReplicationMessagesResponse, err error) { if result.BadRequestError != nil { err = result.BadRequestError return @@ -18541,16 +18423,16 @@ func init() { err = result.InternalServiceError return } - if result.ServiceBusyError != nil { - err = result.ServiceBusyError + if result.LimitExceededError != nil { + err = result.LimitExceededError return } - if result.EntityNotExistError != nil { - err = result.EntityNotExistError + if result.ServiceBusyError != nil { + err = result.ServiceBusyError return } - if result.ShardOwnershipLostError != nil { - err = result.ShardOwnershipLostError + if result.ClientVersionNotSupportedError != nil { + err = result.ClientVersionNotSupportedError return } @@ -18565,22 +18447,22 @@ func init() { } -// HistoryService_MergeDLQMessages_Result represents the result of a HistoryService.MergeDLQMessages function call. +// HistoryService_GetReplicationMessages_Result represents the result of a HistoryService.GetReplicationMessages function call. // -// The result of a MergeDLQMessages execution is sent and received over the wire as this struct. +// The result of a GetReplicationMessages execution is sent and received over the wire as this struct. // // Success is set only if the function did not throw an exception. -type HistoryService_MergeDLQMessages_Result struct { - // Value returned by MergeDLQMessages after a successful execution. - Success *replicator.MergeDLQMessagesResponse `json:"success,omitempty"` - BadRequestError *shared.BadRequestError `json:"badRequestError,omitempty"` - InternalServiceError *shared.InternalServiceError `json:"internalServiceError,omitempty"` - ServiceBusyError *shared.ServiceBusyError `json:"serviceBusyError,omitempty"` - EntityNotExistError *shared.EntityNotExistsError `json:"entityNotExistError,omitempty"` - ShardOwnershipLostError *ShardOwnershipLostError `json:"shardOwnershipLostError,omitempty"` +type HistoryService_GetReplicationMessages_Result struct { + // Value returned by GetReplicationMessages after a successful execution. + Success *replicator.GetReplicationMessagesResponse `json:"success,omitempty"` + BadRequestError *shared.BadRequestError `json:"badRequestError,omitempty"` + InternalServiceError *shared.InternalServiceError `json:"internalServiceError,omitempty"` + LimitExceededError *shared.LimitExceededError `json:"limitExceededError,omitempty"` + ServiceBusyError *shared.ServiceBusyError `json:"serviceBusyError,omitempty"` + ClientVersionNotSupportedError *shared.ClientVersionNotSupportedError `json:"clientVersionNotSupportedError,omitempty"` } -// ToWire translates a HistoryService_MergeDLQMessages_Result struct into a Thrift-level intermediate +// ToWire translates a HistoryService_GetReplicationMessages_Result struct into a Thrift-level intermediate // representation. This intermediate representation may be serialized // into bytes using a ThriftRW protocol implementation. // @@ -18595,7 +18477,7 @@ type HistoryService_MergeDLQMessages_Result struct { // if err := binaryProtocol.Encode(x, writer); err != nil { // return err // } -func (v *HistoryService_MergeDLQMessages_Result) ToWire() (wire.Value, error) { +func (v *HistoryService_GetReplicationMessages_Result) ToWire() (wire.Value, error) { var ( fields [6]wire.Field i int = 0 @@ -18627,24 +18509,24 @@ func (v *HistoryService_MergeDLQMessages_Result) ToWire() (wire.Value, error) { fields[i] = wire.Field{ID: 2, Value: w} i++ } - if v.ServiceBusyError != nil { - w, err = v.ServiceBusyError.ToWire() + if v.LimitExceededError != nil { + w, err = v.LimitExceededError.ToWire() if err != nil { return w, err } fields[i] = wire.Field{ID: 3, Value: w} i++ } - if v.EntityNotExistError != nil { - w, err = v.EntityNotExistError.ToWire() + if v.ServiceBusyError != nil { + w, err = v.ServiceBusyError.ToWire() if err != nil { return w, err } fields[i] = wire.Field{ID: 4, Value: w} i++ } - if v.ShardOwnershipLostError != nil { - w, err = v.ShardOwnershipLostError.ToWire() + if v.ClientVersionNotSupportedError != nil { + w, err = v.ClientVersionNotSupportedError.ToWire() if err != nil { return w, err } @@ -18653,23 +18535,29 @@ func (v *HistoryService_MergeDLQMessages_Result) ToWire() (wire.Value, error) { } if i != 1 { - return wire.Value{}, fmt.Errorf("HistoryService_MergeDLQMessages_Result should have exactly one field: got %v fields", i) + return wire.Value{}, fmt.Errorf("HistoryService_GetReplicationMessages_Result should have exactly one field: got %v fields", i) } return wire.NewValueStruct(wire.Struct{Fields: fields[:i]}), nil } -func _MergeDLQMessagesResponse_Read(w wire.Value) (*replicator.MergeDLQMessagesResponse, error) { - var v replicator.MergeDLQMessagesResponse +func _GetReplicationMessagesResponse_Read(w wire.Value) (*replicator.GetReplicationMessagesResponse, error) { + var v replicator.GetReplicationMessagesResponse err := v.FromWire(w) return &v, err } -// FromWire deserializes a HistoryService_MergeDLQMessages_Result struct from its Thrift-level +func _ClientVersionNotSupportedError_Read(w wire.Value) (*shared.ClientVersionNotSupportedError, error) { + var v shared.ClientVersionNotSupportedError + err := v.FromWire(w) + return &v, err +} + +// FromWire deserializes a HistoryService_GetReplicationMessages_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 HistoryService_MergeDLQMessages_Result struct +// An error is returned if we were unable to build a HistoryService_GetReplicationMessages_Result struct // from the provided intermediate representation. // // x, err := binaryProtocol.Decode(reader, wire.TStruct) @@ -18677,19 +18565,19 @@ func _MergeDLQMessagesResponse_Read(w wire.Value) (*replicator.MergeDLQMessagesR // return nil, err // } // -// var v HistoryService_MergeDLQMessages_Result +// var v HistoryService_GetReplicationMessages_Result // if err := v.FromWire(x); err != nil { // return nil, err // } // return &v, nil -func (v *HistoryService_MergeDLQMessages_Result) FromWire(w wire.Value) error { +func (v *HistoryService_GetReplicationMessages_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 = _MergeDLQMessagesResponse_Read(field.Value) + v.Success, err = _GetReplicationMessagesResponse_Read(field.Value) if err != nil { return err } @@ -18713,7 +18601,7 @@ func (v *HistoryService_MergeDLQMessages_Result) FromWire(w wire.Value) error { } case 3: if field.Value.Type() == wire.TStruct { - v.ServiceBusyError, err = _ServiceBusyError_Read(field.Value) + v.LimitExceededError, err = _LimitExceededError_Read(field.Value) if err != nil { return err } @@ -18721,7 +18609,7 @@ func (v *HistoryService_MergeDLQMessages_Result) FromWire(w wire.Value) error { } case 4: if field.Value.Type() == wire.TStruct { - v.EntityNotExistError, err = _EntityNotExistsError_Read(field.Value) + v.ServiceBusyError, err = _ServiceBusyError_Read(field.Value) if err != nil { return err } @@ -18729,7 +18617,7 @@ func (v *HistoryService_MergeDLQMessages_Result) FromWire(w wire.Value) error { } case 5: if field.Value.Type() == wire.TStruct { - v.ShardOwnershipLostError, err = _ShardOwnershipLostError_Read(field.Value) + v.ClientVersionNotSupportedError, err = _ClientVersionNotSupportedError_Read(field.Value) if err != nil { return err } @@ -18748,25 +18636,25 @@ func (v *HistoryService_MergeDLQMessages_Result) FromWire(w wire.Value) error { if v.InternalServiceError != nil { count++ } - if v.ServiceBusyError != nil { + if v.LimitExceededError != nil { count++ } - if v.EntityNotExistError != nil { + if v.ServiceBusyError != nil { count++ } - if v.ShardOwnershipLostError != nil { + if v.ClientVersionNotSupportedError != nil { count++ } if count != 1 { - return fmt.Errorf("HistoryService_MergeDLQMessages_Result should have exactly one field: got %v fields", count) + return fmt.Errorf("HistoryService_GetReplicationMessages_Result should have exactly one field: got %v fields", count) } return nil } -// String returns a readable string representation of a HistoryService_MergeDLQMessages_Result +// String returns a readable string representation of a HistoryService_GetReplicationMessages_Result // struct. -func (v *HistoryService_MergeDLQMessages_Result) String() string { +func (v *HistoryService_GetReplicationMessages_Result) String() string { if v == nil { return "" } @@ -18785,27 +18673,27 @@ func (v *HistoryService_MergeDLQMessages_Result) String() string { fields[i] = fmt.Sprintf("InternalServiceError: %v", v.InternalServiceError) i++ } - if v.ServiceBusyError != nil { - fields[i] = fmt.Sprintf("ServiceBusyError: %v", v.ServiceBusyError) + if v.LimitExceededError != nil { + fields[i] = fmt.Sprintf("LimitExceededError: %v", v.LimitExceededError) i++ } - if v.EntityNotExistError != nil { - fields[i] = fmt.Sprintf("EntityNotExistError: %v", v.EntityNotExistError) + if v.ServiceBusyError != nil { + fields[i] = fmt.Sprintf("ServiceBusyError: %v", v.ServiceBusyError) i++ } - if v.ShardOwnershipLostError != nil { - fields[i] = fmt.Sprintf("ShardOwnershipLostError: %v", v.ShardOwnershipLostError) + if v.ClientVersionNotSupportedError != nil { + fields[i] = fmt.Sprintf("ClientVersionNotSupportedError: %v", v.ClientVersionNotSupportedError) i++ } - return fmt.Sprintf("HistoryService_MergeDLQMessages_Result{%v}", strings.Join(fields[:i], ", ")) + return fmt.Sprintf("HistoryService_GetReplicationMessages_Result{%v}", strings.Join(fields[:i], ", ")) } -// Equals returns true if all the fields of this HistoryService_MergeDLQMessages_Result match the -// provided HistoryService_MergeDLQMessages_Result. +// Equals returns true if all the fields of this HistoryService_GetReplicationMessages_Result match the +// provided HistoryService_GetReplicationMessages_Result. // // This function performs a deep comparison. -func (v *HistoryService_MergeDLQMessages_Result) Equals(rhs *HistoryService_MergeDLQMessages_Result) bool { +func (v *HistoryService_GetReplicationMessages_Result) Equals(rhs *HistoryService_GetReplicationMessages_Result) bool { if v == nil { return rhs == nil } else if rhs == nil { @@ -18820,13 +18708,13 @@ func (v *HistoryService_MergeDLQMessages_Result) Equals(rhs *HistoryService_Merg if !((v.InternalServiceError == nil && rhs.InternalServiceError == nil) || (v.InternalServiceError != nil && rhs.InternalServiceError != nil && v.InternalServiceError.Equals(rhs.InternalServiceError))) { return false } - if !((v.ServiceBusyError == nil && rhs.ServiceBusyError == nil) || (v.ServiceBusyError != nil && rhs.ServiceBusyError != nil && v.ServiceBusyError.Equals(rhs.ServiceBusyError))) { + if !((v.LimitExceededError == nil && rhs.LimitExceededError == nil) || (v.LimitExceededError != nil && rhs.LimitExceededError != nil && v.LimitExceededError.Equals(rhs.LimitExceededError))) { return false } - if !((v.EntityNotExistError == nil && rhs.EntityNotExistError == nil) || (v.EntityNotExistError != nil && rhs.EntityNotExistError != nil && v.EntityNotExistError.Equals(rhs.EntityNotExistError))) { + if !((v.ServiceBusyError == nil && rhs.ServiceBusyError == nil) || (v.ServiceBusyError != nil && rhs.ServiceBusyError != nil && v.ServiceBusyError.Equals(rhs.ServiceBusyError))) { return false } - if !((v.ShardOwnershipLostError == nil && rhs.ShardOwnershipLostError == nil) || (v.ShardOwnershipLostError != nil && rhs.ShardOwnershipLostError != nil && v.ShardOwnershipLostError.Equals(rhs.ShardOwnershipLostError))) { + if !((v.ClientVersionNotSupportedError == nil && rhs.ClientVersionNotSupportedError == nil) || (v.ClientVersionNotSupportedError != nil && rhs.ClientVersionNotSupportedError != nil && v.ClientVersionNotSupportedError.Equals(rhs.ClientVersionNotSupportedError))) { return false } @@ -18834,8 +18722,8 @@ func (v *HistoryService_MergeDLQMessages_Result) Equals(rhs *HistoryService_Merg } // MarshalLogObject implements zapcore.ObjectMarshaler, enabling -// fast logging of HistoryService_MergeDLQMessages_Result. -func (v *HistoryService_MergeDLQMessages_Result) MarshalLogObject(enc zapcore.ObjectEncoder) (err error) { +// fast logging of HistoryService_GetReplicationMessages_Result. +func (v *HistoryService_GetReplicationMessages_Result) MarshalLogObject(enc zapcore.ObjectEncoder) (err error) { if v == nil { return nil } @@ -18848,21 +18736,21 @@ func (v *HistoryService_MergeDLQMessages_Result) MarshalLogObject(enc zapcore.Ob if v.InternalServiceError != nil { err = multierr.Append(err, enc.AddObject("internalServiceError", v.InternalServiceError)) } + if v.LimitExceededError != nil { + err = multierr.Append(err, enc.AddObject("limitExceededError", v.LimitExceededError)) + } 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.ShardOwnershipLostError != nil { - err = multierr.Append(err, enc.AddObject("shardOwnershipLostError", v.ShardOwnershipLostError)) + if v.ClientVersionNotSupportedError != nil { + err = multierr.Append(err, enc.AddObject("clientVersionNotSupportedError", v.ClientVersionNotSupportedError)) } return err } // GetSuccess returns the value of Success if it is set or its // zero value if it is unset. -func (v *HistoryService_MergeDLQMessages_Result) GetSuccess() (o *replicator.MergeDLQMessagesResponse) { +func (v *HistoryService_GetReplicationMessages_Result) GetSuccess() (o *replicator.GetReplicationMessagesResponse) { if v != nil && v.Success != nil { return v.Success } @@ -18871,13 +18759,13 @@ func (v *HistoryService_MergeDLQMessages_Result) GetSuccess() (o *replicator.Mer } // IsSetSuccess returns true if Success is not nil. -func (v *HistoryService_MergeDLQMessages_Result) IsSetSuccess() bool { +func (v *HistoryService_GetReplicationMessages_Result) IsSetSuccess() bool { return v != nil && v.Success != nil } // GetBadRequestError returns the value of BadRequestError if it is set or its // zero value if it is unset. -func (v *HistoryService_MergeDLQMessages_Result) GetBadRequestError() (o *shared.BadRequestError) { +func (v *HistoryService_GetReplicationMessages_Result) GetBadRequestError() (o *shared.BadRequestError) { if v != nil && v.BadRequestError != nil { return v.BadRequestError } @@ -18886,13 +18774,13 @@ func (v *HistoryService_MergeDLQMessages_Result) GetBadRequestError() (o *shared } // IsSetBadRequestError returns true if BadRequestError is not nil. -func (v *HistoryService_MergeDLQMessages_Result) IsSetBadRequestError() bool { +func (v *HistoryService_GetReplicationMessages_Result) IsSetBadRequestError() bool { return v != nil && v.BadRequestError != nil } // GetInternalServiceError returns the value of InternalServiceError if it is set or its // zero value if it is unset. -func (v *HistoryService_MergeDLQMessages_Result) GetInternalServiceError() (o *shared.InternalServiceError) { +func (v *HistoryService_GetReplicationMessages_Result) GetInternalServiceError() (o *shared.InternalServiceError) { if v != nil && v.InternalServiceError != nil { return v.InternalServiceError } @@ -18901,78 +18789,78 @@ func (v *HistoryService_MergeDLQMessages_Result) GetInternalServiceError() (o *s } // IsSetInternalServiceError returns true if InternalServiceError is not nil. -func (v *HistoryService_MergeDLQMessages_Result) IsSetInternalServiceError() bool { +func (v *HistoryService_GetReplicationMessages_Result) IsSetInternalServiceError() bool { return v != nil && v.InternalServiceError != nil } -// GetServiceBusyError returns the value of ServiceBusyError if it is set or its +// GetLimitExceededError returns the value of LimitExceededError if it is set or its // zero value if it is unset. -func (v *HistoryService_MergeDLQMessages_Result) GetServiceBusyError() (o *shared.ServiceBusyError) { - if v != nil && v.ServiceBusyError != nil { - return v.ServiceBusyError +func (v *HistoryService_GetReplicationMessages_Result) GetLimitExceededError() (o *shared.LimitExceededError) { + if v != nil && v.LimitExceededError != nil { + return v.LimitExceededError } return } -// IsSetServiceBusyError returns true if ServiceBusyError is not nil. -func (v *HistoryService_MergeDLQMessages_Result) IsSetServiceBusyError() bool { - return v != nil && v.ServiceBusyError != nil +// IsSetLimitExceededError returns true if LimitExceededError is not nil. +func (v *HistoryService_GetReplicationMessages_Result) IsSetLimitExceededError() bool { + return v != nil && v.LimitExceededError != nil } -// GetEntityNotExistError returns the value of EntityNotExistError if it is set or its +// GetServiceBusyError returns the value of ServiceBusyError if it is set or its // zero value if it is unset. -func (v *HistoryService_MergeDLQMessages_Result) GetEntityNotExistError() (o *shared.EntityNotExistsError) { - if v != nil && v.EntityNotExistError != nil { - return v.EntityNotExistError +func (v *HistoryService_GetReplicationMessages_Result) GetServiceBusyError() (o *shared.ServiceBusyError) { + if v != nil && v.ServiceBusyError != nil { + return v.ServiceBusyError } return } -// IsSetEntityNotExistError returns true if EntityNotExistError is not nil. -func (v *HistoryService_MergeDLQMessages_Result) IsSetEntityNotExistError() bool { - return v != nil && v.EntityNotExistError != nil +// IsSetServiceBusyError returns true if ServiceBusyError is not nil. +func (v *HistoryService_GetReplicationMessages_Result) IsSetServiceBusyError() bool { + return v != nil && v.ServiceBusyError != nil } -// GetShardOwnershipLostError returns the value of ShardOwnershipLostError if it is set or its +// GetClientVersionNotSupportedError returns the value of ClientVersionNotSupportedError if it is set or its // zero value if it is unset. -func (v *HistoryService_MergeDLQMessages_Result) GetShardOwnershipLostError() (o *ShardOwnershipLostError) { - if v != nil && v.ShardOwnershipLostError != nil { - return v.ShardOwnershipLostError +func (v *HistoryService_GetReplicationMessages_Result) GetClientVersionNotSupportedError() (o *shared.ClientVersionNotSupportedError) { + if v != nil && v.ClientVersionNotSupportedError != nil { + return v.ClientVersionNotSupportedError } return } -// IsSetShardOwnershipLostError returns true if ShardOwnershipLostError is not nil. -func (v *HistoryService_MergeDLQMessages_Result) IsSetShardOwnershipLostError() bool { - return v != nil && v.ShardOwnershipLostError != nil +// IsSetClientVersionNotSupportedError returns true if ClientVersionNotSupportedError is not nil. +func (v *HistoryService_GetReplicationMessages_Result) IsSetClientVersionNotSupportedError() bool { + return v != nil && v.ClientVersionNotSupportedError != 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 "MergeDLQMessages" for this struct. -func (v *HistoryService_MergeDLQMessages_Result) MethodName() string { - return "MergeDLQMessages" +// This will always be "GetReplicationMessages" for this struct. +func (v *HistoryService_GetReplicationMessages_Result) MethodName() string { + return "GetReplicationMessages" } // EnvelopeType returns the kind of value inside this struct. // // This will always be Reply for this struct. -func (v *HistoryService_MergeDLQMessages_Result) EnvelopeType() wire.EnvelopeType { +func (v *HistoryService_GetReplicationMessages_Result) EnvelopeType() wire.EnvelopeType { return wire.Reply } -// HistoryService_NotifyFailoverMarkers_Args represents the arguments for the HistoryService.NotifyFailoverMarkers function. +// HistoryService_MergeDLQMessages_Args represents the arguments for the HistoryService.MergeDLQMessages function. // -// The arguments for NotifyFailoverMarkers are sent and received over the wire as this struct. -type HistoryService_NotifyFailoverMarkers_Args struct { - Request *NotifyFailoverMarkersRequest `json:"request,omitempty"` +// The arguments for MergeDLQMessages are sent and received over the wire as this struct. +type HistoryService_MergeDLQMessages_Args struct { + Request *replicator.MergeDLQMessagesRequest `json:"request,omitempty"` } -// ToWire translates a HistoryService_NotifyFailoverMarkers_Args struct into a Thrift-level intermediate +// ToWire translates a HistoryService_MergeDLQMessages_Args struct into a Thrift-level intermediate // representation. This intermediate representation may be serialized // into bytes using a ThriftRW protocol implementation. // @@ -18987,7 +18875,7 @@ type HistoryService_NotifyFailoverMarkers_Args struct { // if err := binaryProtocol.Encode(x, writer); err != nil { // return err // } -func (v *HistoryService_NotifyFailoverMarkers_Args) ToWire() (wire.Value, error) { +func (v *HistoryService_MergeDLQMessages_Args) ToWire() (wire.Value, error) { var ( fields [1]wire.Field i int = 0 @@ -19007,17 +18895,17 @@ func (v *HistoryService_NotifyFailoverMarkers_Args) ToWire() (wire.Value, error) return wire.NewValueStruct(wire.Struct{Fields: fields[:i]}), nil } -func _NotifyFailoverMarkersRequest_Read(w wire.Value) (*NotifyFailoverMarkersRequest, error) { - var v NotifyFailoverMarkersRequest +func _MergeDLQMessagesRequest_Read(w wire.Value) (*replicator.MergeDLQMessagesRequest, error) { + var v replicator.MergeDLQMessagesRequest err := v.FromWire(w) return &v, err } -// FromWire deserializes a HistoryService_NotifyFailoverMarkers_Args struct from its Thrift-level +// FromWire deserializes a HistoryService_MergeDLQMessages_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 HistoryService_NotifyFailoverMarkers_Args struct +// An error is returned if we were unable to build a HistoryService_MergeDLQMessages_Args struct // from the provided intermediate representation. // // x, err := binaryProtocol.Decode(reader, wire.TStruct) @@ -19025,19 +18913,19 @@ func _NotifyFailoverMarkersRequest_Read(w wire.Value) (*NotifyFailoverMarkersReq // return nil, err // } // -// var v HistoryService_NotifyFailoverMarkers_Args +// var v HistoryService_MergeDLQMessages_Args // if err := v.FromWire(x); err != nil { // return nil, err // } // return &v, nil -func (v *HistoryService_NotifyFailoverMarkers_Args) FromWire(w wire.Value) error { +func (v *HistoryService_MergeDLQMessages_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.Request, err = _NotifyFailoverMarkersRequest_Read(field.Value) + v.Request, err = _MergeDLQMessagesRequest_Read(field.Value) if err != nil { return err } @@ -19049,9 +18937,9 @@ func (v *HistoryService_NotifyFailoverMarkers_Args) FromWire(w wire.Value) error return nil } -// String returns a readable string representation of a HistoryService_NotifyFailoverMarkers_Args +// String returns a readable string representation of a HistoryService_MergeDLQMessages_Args // struct. -func (v *HistoryService_NotifyFailoverMarkers_Args) String() string { +func (v *HistoryService_MergeDLQMessages_Args) String() string { if v == nil { return "" } @@ -19063,14 +18951,14 @@ func (v *HistoryService_NotifyFailoverMarkers_Args) String() string { i++ } - return fmt.Sprintf("HistoryService_NotifyFailoverMarkers_Args{%v}", strings.Join(fields[:i], ", ")) + return fmt.Sprintf("HistoryService_MergeDLQMessages_Args{%v}", strings.Join(fields[:i], ", ")) } -// Equals returns true if all the fields of this HistoryService_NotifyFailoverMarkers_Args match the -// provided HistoryService_NotifyFailoverMarkers_Args. +// Equals returns true if all the fields of this HistoryService_MergeDLQMessages_Args match the +// provided HistoryService_MergeDLQMessages_Args. // // This function performs a deep comparison. -func (v *HistoryService_NotifyFailoverMarkers_Args) Equals(rhs *HistoryService_NotifyFailoverMarkers_Args) bool { +func (v *HistoryService_MergeDLQMessages_Args) Equals(rhs *HistoryService_MergeDLQMessages_Args) bool { if v == nil { return rhs == nil } else if rhs == nil { @@ -19084,8 +18972,8 @@ func (v *HistoryService_NotifyFailoverMarkers_Args) Equals(rhs *HistoryService_N } // MarshalLogObject implements zapcore.ObjectMarshaler, enabling -// fast logging of HistoryService_NotifyFailoverMarkers_Args. -func (v *HistoryService_NotifyFailoverMarkers_Args) MarshalLogObject(enc zapcore.ObjectEncoder) (err error) { +// fast logging of HistoryService_MergeDLQMessages_Args. +func (v *HistoryService_MergeDLQMessages_Args) MarshalLogObject(enc zapcore.ObjectEncoder) (err error) { if v == nil { return nil } @@ -19097,7 +18985,7 @@ func (v *HistoryService_NotifyFailoverMarkers_Args) MarshalLogObject(enc zapcore // GetRequest returns the value of Request if it is set or its // zero value if it is unset. -func (v *HistoryService_NotifyFailoverMarkers_Args) GetRequest() (o *NotifyFailoverMarkersRequest) { +func (v *HistoryService_MergeDLQMessages_Args) GetRequest() (o *replicator.MergeDLQMessagesRequest) { if v != nil && v.Request != nil { return v.Request } @@ -19106,81 +18994,80 @@ func (v *HistoryService_NotifyFailoverMarkers_Args) GetRequest() (o *NotifyFailo } // IsSetRequest returns true if Request is not nil. -func (v *HistoryService_NotifyFailoverMarkers_Args) IsSetRequest() bool { +func (v *HistoryService_MergeDLQMessages_Args) IsSetRequest() bool { return v != nil && v.Request != 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 "NotifyFailoverMarkers" for this struct. -func (v *HistoryService_NotifyFailoverMarkers_Args) MethodName() string { - return "NotifyFailoverMarkers" +// This will always be "MergeDLQMessages" for this struct. +func (v *HistoryService_MergeDLQMessages_Args) MethodName() string { + return "MergeDLQMessages" } // EnvelopeType returns the kind of value inside this struct. // // This will always be Call for this struct. -func (v *HistoryService_NotifyFailoverMarkers_Args) EnvelopeType() wire.EnvelopeType { +func (v *HistoryService_MergeDLQMessages_Args) EnvelopeType() wire.EnvelopeType { return wire.Call } -// HistoryService_NotifyFailoverMarkers_Helper provides functions that aid in handling the -// parameters and return values of the HistoryService.NotifyFailoverMarkers +// HistoryService_MergeDLQMessages_Helper provides functions that aid in handling the +// parameters and return values of the HistoryService.MergeDLQMessages // function. -var HistoryService_NotifyFailoverMarkers_Helper = struct { - // Args accepts the parameters of NotifyFailoverMarkers in-order and returns +var HistoryService_MergeDLQMessages_Helper = struct { + // Args accepts the parameters of MergeDLQMessages in-order and returns // the arguments struct for the function. Args func( - request *NotifyFailoverMarkersRequest, - ) *HistoryService_NotifyFailoverMarkers_Args + request *replicator.MergeDLQMessagesRequest, + ) *HistoryService_MergeDLQMessages_Args // IsException returns true if the given error can be thrown - // by NotifyFailoverMarkers. + // by MergeDLQMessages. // - // An error can be thrown by NotifyFailoverMarkers only if the + // An error can be thrown by MergeDLQMessages 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 NotifyFailoverMarkers - // given the error returned by it. The provided error may - // be nil if NotifyFailoverMarkers did not fail. + // WrapResponse returns the result struct for MergeDLQMessages + // given its return value and error. // - // This allows mapping errors returned by NotifyFailoverMarkers into a - // serializable result struct. WrapResponse returns a - // non-nil error if the provided error cannot be thrown by - // NotifyFailoverMarkers + // This allows mapping values and errors returned by + // MergeDLQMessages into a serializable result struct. + // WrapResponse returns a non-nil error if the provided + // error cannot be thrown by MergeDLQMessages // - // err := NotifyFailoverMarkers(args) - // result, err := HistoryService_NotifyFailoverMarkers_Helper.WrapResponse(err) + // value, err := MergeDLQMessages(args) + // result, err := HistoryService_MergeDLQMessages_Helper.WrapResponse(value, err) // if err != nil { - // return fmt.Errorf("unexpected error from NotifyFailoverMarkers: %v", err) + // return fmt.Errorf("unexpected error from MergeDLQMessages: %v", err) // } // serialize(result) - WrapResponse func(error) (*HistoryService_NotifyFailoverMarkers_Result, error) + WrapResponse func(*replicator.MergeDLQMessagesResponse, error) (*HistoryService_MergeDLQMessages_Result, error) - // UnwrapResponse takes the result struct for NotifyFailoverMarkers - // and returns the erorr returned by it (if any). + // UnwrapResponse takes the result struct for MergeDLQMessages + // and returns the value or error returned by it. // - // The error is non-nil only if NotifyFailoverMarkers threw an + // The error is non-nil only if MergeDLQMessages threw an // exception. // // result := deserialize(bytes) - // err := HistoryService_NotifyFailoverMarkers_Helper.UnwrapResponse(result) - UnwrapResponse func(*HistoryService_NotifyFailoverMarkers_Result) error + // value, err := HistoryService_MergeDLQMessages_Helper.UnwrapResponse(result) + UnwrapResponse func(*HistoryService_MergeDLQMessages_Result) (*replicator.MergeDLQMessagesResponse, error) }{} func init() { - HistoryService_NotifyFailoverMarkers_Helper.Args = func( - request *NotifyFailoverMarkersRequest, - ) *HistoryService_NotifyFailoverMarkers_Args { - return &HistoryService_NotifyFailoverMarkers_Args{ + HistoryService_MergeDLQMessages_Helper.Args = func( + request *replicator.MergeDLQMessagesRequest, + ) *HistoryService_MergeDLQMessages_Args { + return &HistoryService_MergeDLQMessages_Args{ Request: request, } } - HistoryService_NotifyFailoverMarkers_Helper.IsException = func(err error) bool { + HistoryService_MergeDLQMessages_Helper.IsException = func(err error) bool { switch err.(type) { case *shared.BadRequestError: return true @@ -19188,37 +19075,51 @@ func init() { return true case *shared.ServiceBusyError: return true + case *shared.EntityNotExistsError: + return true + case *ShardOwnershipLostError: + return true default: return false } } - HistoryService_NotifyFailoverMarkers_Helper.WrapResponse = func(err error) (*HistoryService_NotifyFailoverMarkers_Result, error) { + HistoryService_MergeDLQMessages_Helper.WrapResponse = func(success *replicator.MergeDLQMessagesResponse, err error) (*HistoryService_MergeDLQMessages_Result, error) { if err == nil { - return &HistoryService_NotifyFailoverMarkers_Result{}, nil + return &HistoryService_MergeDLQMessages_Result{Success: success}, nil } switch e := err.(type) { case *shared.BadRequestError: if e == nil { - return nil, errors.New("WrapResponse received non-nil error type with nil value for HistoryService_NotifyFailoverMarkers_Result.BadRequestError") + return nil, errors.New("WrapResponse received non-nil error type with nil value for HistoryService_MergeDLQMessages_Result.BadRequestError") } - return &HistoryService_NotifyFailoverMarkers_Result{BadRequestError: e}, nil + return &HistoryService_MergeDLQMessages_Result{BadRequestError: e}, nil case *shared.InternalServiceError: if e == nil { - return nil, errors.New("WrapResponse received non-nil error type with nil value for HistoryService_NotifyFailoverMarkers_Result.InternalServiceError") + return nil, errors.New("WrapResponse received non-nil error type with nil value for HistoryService_MergeDLQMessages_Result.InternalServiceError") } - return &HistoryService_NotifyFailoverMarkers_Result{InternalServiceError: e}, nil + return &HistoryService_MergeDLQMessages_Result{InternalServiceError: e}, nil case *shared.ServiceBusyError: if e == nil { - return nil, errors.New("WrapResponse received non-nil error type with nil value for HistoryService_NotifyFailoverMarkers_Result.ServiceBusyError") + return nil, errors.New("WrapResponse received non-nil error type with nil value for HistoryService_MergeDLQMessages_Result.ServiceBusyError") } - return &HistoryService_NotifyFailoverMarkers_Result{ServiceBusyError: e}, nil + return &HistoryService_MergeDLQMessages_Result{ServiceBusyError: e}, nil + case *shared.EntityNotExistsError: + if e == nil { + return nil, errors.New("WrapResponse received non-nil error type with nil value for HistoryService_MergeDLQMessages_Result.EntityNotExistError") + } + return &HistoryService_MergeDLQMessages_Result{EntityNotExistError: e}, nil + case *ShardOwnershipLostError: + if e == nil { + return nil, errors.New("WrapResponse received non-nil error type with nil value for HistoryService_MergeDLQMessages_Result.ShardOwnershipLostError") + } + return &HistoryService_MergeDLQMessages_Result{ShardOwnershipLostError: e}, nil } return nil, err } - HistoryService_NotifyFailoverMarkers_Helper.UnwrapResponse = func(result *HistoryService_NotifyFailoverMarkers_Result) (err error) { + HistoryService_MergeDLQMessages_Helper.UnwrapResponse = func(result *HistoryService_MergeDLQMessages_Result) (success *replicator.MergeDLQMessagesResponse, err error) { if result.BadRequestError != nil { err = result.BadRequestError return @@ -19231,28 +19132,49 @@ func init() { err = result.ServiceBusyError return } + if result.EntityNotExistError != nil { + err = result.EntityNotExistError + return + } + if result.ShardOwnershipLostError != nil { + err = result.ShardOwnershipLostError + return + } + + if result.Success != nil { + success = result.Success + return + } + + err = errors.New("expected a non-void result") return } } -// HistoryService_NotifyFailoverMarkers_Result represents the result of a HistoryService.NotifyFailoverMarkers function call. -// -// The result of a NotifyFailoverMarkers execution is sent and received over the wire as this struct. -type HistoryService_NotifyFailoverMarkers_Result struct { - BadRequestError *shared.BadRequestError `json:"badRequestError,omitempty"` - InternalServiceError *shared.InternalServiceError `json:"internalServiceError,omitempty"` - ServiceBusyError *shared.ServiceBusyError `json:"serviceBusyError,omitempty"` -} - -// ToWire translates a HistoryService_NotifyFailoverMarkers_Result struct into a Thrift-level intermediate -// representation. This intermediate representation may be serialized -// into bytes using a ThriftRW protocol implementation. +// HistoryService_MergeDLQMessages_Result represents the result of a HistoryService.MergeDLQMessages function call. // -// An error is returned if the struct or any of its fields failed to -// validate. +// The result of a MergeDLQMessages execution is sent and received over the wire as this struct. // -// x, err := v.ToWire() +// Success is set only if the function did not throw an exception. +type HistoryService_MergeDLQMessages_Result struct { + // Value returned by MergeDLQMessages after a successful execution. + Success *replicator.MergeDLQMessagesResponse `json:"success,omitempty"` + BadRequestError *shared.BadRequestError `json:"badRequestError,omitempty"` + InternalServiceError *shared.InternalServiceError `json:"internalServiceError,omitempty"` + ServiceBusyError *shared.ServiceBusyError `json:"serviceBusyError,omitempty"` + EntityNotExistError *shared.EntityNotExistsError `json:"entityNotExistError,omitempty"` + ShardOwnershipLostError *ShardOwnershipLostError `json:"shardOwnershipLostError,omitempty"` +} + +// ToWire translates a HistoryService_MergeDLQMessages_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 // } @@ -19260,14 +19182,22 @@ type HistoryService_NotifyFailoverMarkers_Result struct { // if err := binaryProtocol.Encode(x, writer); err != nil { // return err // } -func (v *HistoryService_NotifyFailoverMarkers_Result) ToWire() (wire.Value, error) { +func (v *HistoryService_MergeDLQMessages_Result) ToWire() (wire.Value, error) { var ( - fields [3]wire.Field + 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.BadRequestError != nil { w, err = v.BadRequestError.ToWire() if err != nil { @@ -19292,19 +19222,41 @@ func (v *HistoryService_NotifyFailoverMarkers_Result) ToWire() (wire.Value, erro fields[i] = wire.Field{ID: 3, Value: w} i++ } + if v.EntityNotExistError != nil { + w, err = v.EntityNotExistError.ToWire() + if err != nil { + return w, err + } + fields[i] = wire.Field{ID: 4, Value: w} + i++ + } + if v.ShardOwnershipLostError != nil { + w, err = v.ShardOwnershipLostError.ToWire() + if err != nil { + return w, err + } + fields[i] = wire.Field{ID: 5, Value: w} + i++ + } - if i > 1 { - return wire.Value{}, fmt.Errorf("HistoryService_NotifyFailoverMarkers_Result should have at most one field: got %v fields", i) + if i != 1 { + return wire.Value{}, fmt.Errorf("HistoryService_MergeDLQMessages_Result should have exactly one field: got %v fields", i) } return wire.NewValueStruct(wire.Struct{Fields: fields[:i]}), nil } -// FromWire deserializes a HistoryService_NotifyFailoverMarkers_Result struct from its Thrift-level +func _MergeDLQMessagesResponse_Read(w wire.Value) (*replicator.MergeDLQMessagesResponse, error) { + var v replicator.MergeDLQMessagesResponse + err := v.FromWire(w) + return &v, err +} + +// FromWire deserializes a HistoryService_MergeDLQMessages_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 HistoryService_NotifyFailoverMarkers_Result struct +// An error is returned if we were unable to build a HistoryService_MergeDLQMessages_Result struct // from the provided intermediate representation. // // x, err := binaryProtocol.Decode(reader, wire.TStruct) @@ -19312,16 +19264,24 @@ func (v *HistoryService_NotifyFailoverMarkers_Result) ToWire() (wire.Value, erro // return nil, err // } // -// var v HistoryService_NotifyFailoverMarkers_Result +// var v HistoryService_MergeDLQMessages_Result // if err := v.FromWire(x); err != nil { // return nil, err // } // return &v, nil -func (v *HistoryService_NotifyFailoverMarkers_Result) FromWire(w wire.Value) error { +func (v *HistoryService_MergeDLQMessages_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 = _MergeDLQMessagesResponse_Read(field.Value) + if err != nil { + return err + } + + } case 1: if field.Value.Type() == wire.TStruct { v.BadRequestError, err = _BadRequestError_Read(field.Value) @@ -19345,11 +19305,30 @@ func (v *HistoryService_NotifyFailoverMarkers_Result) FromWire(w wire.Value) err return err } + } + case 4: + if field.Value.Type() == wire.TStruct { + v.EntityNotExistError, err = _EntityNotExistsError_Read(field.Value) + if err != nil { + return err + } + + } + case 5: + if field.Value.Type() == wire.TStruct { + v.ShardOwnershipLostError, err = _ShardOwnershipLostError_Read(field.Value) + if err != nil { + return err + } + } } } count := 0 + if v.Success != nil { + count++ + } if v.BadRequestError != nil { count++ } @@ -19359,22 +19338,32 @@ func (v *HistoryService_NotifyFailoverMarkers_Result) FromWire(w wire.Value) err if v.ServiceBusyError != nil { count++ } - if count > 1 { - return fmt.Errorf("HistoryService_NotifyFailoverMarkers_Result should have at most one field: got %v fields", count) + if v.EntityNotExistError != nil { + count++ + } + if v.ShardOwnershipLostError != nil { + count++ + } + if count != 1 { + return fmt.Errorf("HistoryService_MergeDLQMessages_Result should have exactly one field: got %v fields", count) } return nil } -// String returns a readable string representation of a HistoryService_NotifyFailoverMarkers_Result +// String returns a readable string representation of a HistoryService_MergeDLQMessages_Result // struct. -func (v *HistoryService_NotifyFailoverMarkers_Result) String() string { +func (v *HistoryService_MergeDLQMessages_Result) String() string { if v == nil { return "" } - var fields [3]string + var fields [6]string i := 0 + if v.Success != nil { + fields[i] = fmt.Sprintf("Success: %v", v.Success) + i++ + } if v.BadRequestError != nil { fields[i] = fmt.Sprintf("BadRequestError: %v", v.BadRequestError) i++ @@ -19387,20 +19376,31 @@ func (v *HistoryService_NotifyFailoverMarkers_Result) String() string { fields[i] = fmt.Sprintf("ServiceBusyError: %v", v.ServiceBusyError) i++ } + if v.EntityNotExistError != nil { + fields[i] = fmt.Sprintf("EntityNotExistError: %v", v.EntityNotExistError) + i++ + } + if v.ShardOwnershipLostError != nil { + fields[i] = fmt.Sprintf("ShardOwnershipLostError: %v", v.ShardOwnershipLostError) + i++ + } - return fmt.Sprintf("HistoryService_NotifyFailoverMarkers_Result{%v}", strings.Join(fields[:i], ", ")) + return fmt.Sprintf("HistoryService_MergeDLQMessages_Result{%v}", strings.Join(fields[:i], ", ")) } -// Equals returns true if all the fields of this HistoryService_NotifyFailoverMarkers_Result match the -// provided HistoryService_NotifyFailoverMarkers_Result. +// Equals returns true if all the fields of this HistoryService_MergeDLQMessages_Result match the +// provided HistoryService_MergeDLQMessages_Result. // // This function performs a deep comparison. -func (v *HistoryService_NotifyFailoverMarkers_Result) Equals(rhs *HistoryService_NotifyFailoverMarkers_Result) bool { +func (v *HistoryService_MergeDLQMessages_Result) Equals(rhs *HistoryService_MergeDLQMessages_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.BadRequestError == nil && rhs.BadRequestError == nil) || (v.BadRequestError != nil && rhs.BadRequestError != nil && v.BadRequestError.Equals(rhs.BadRequestError))) { return false } @@ -19410,16 +19410,25 @@ func (v *HistoryService_NotifyFailoverMarkers_Result) Equals(rhs *HistoryService 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.ShardOwnershipLostError == nil && rhs.ShardOwnershipLostError == nil) || (v.ShardOwnershipLostError != nil && rhs.ShardOwnershipLostError != nil && v.ShardOwnershipLostError.Equals(rhs.ShardOwnershipLostError))) { + return false + } return true } // MarshalLogObject implements zapcore.ObjectMarshaler, enabling -// fast logging of HistoryService_NotifyFailoverMarkers_Result. -func (v *HistoryService_NotifyFailoverMarkers_Result) MarshalLogObject(enc zapcore.ObjectEncoder) (err error) { +// fast logging of HistoryService_MergeDLQMessages_Result. +func (v *HistoryService_MergeDLQMessages_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.BadRequestError != nil { err = multierr.Append(err, enc.AddObject("badRequestError", v.BadRequestError)) } @@ -19429,12 +19438,33 @@ func (v *HistoryService_NotifyFailoverMarkers_Result) MarshalLogObject(enc zapco 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.ShardOwnershipLostError != nil { + err = multierr.Append(err, enc.AddObject("shardOwnershipLostError", v.ShardOwnershipLostError)) + } return err } +// GetSuccess returns the value of Success if it is set or its +// zero value if it is unset. +func (v *HistoryService_MergeDLQMessages_Result) GetSuccess() (o *replicator.MergeDLQMessagesResponse) { + if v != nil && v.Success != nil { + return v.Success + } + + return +} + +// IsSetSuccess returns true if Success is not nil. +func (v *HistoryService_MergeDLQMessages_Result) IsSetSuccess() bool { + return v != nil && v.Success != nil +} + // GetBadRequestError returns the value of BadRequestError if it is set or its // zero value if it is unset. -func (v *HistoryService_NotifyFailoverMarkers_Result) GetBadRequestError() (o *shared.BadRequestError) { +func (v *HistoryService_MergeDLQMessages_Result) GetBadRequestError() (o *shared.BadRequestError) { if v != nil && v.BadRequestError != nil { return v.BadRequestError } @@ -19443,13 +19473,13 @@ func (v *HistoryService_NotifyFailoverMarkers_Result) GetBadRequestError() (o *s } // IsSetBadRequestError returns true if BadRequestError is not nil. -func (v *HistoryService_NotifyFailoverMarkers_Result) IsSetBadRequestError() bool { +func (v *HistoryService_MergeDLQMessages_Result) IsSetBadRequestError() bool { return v != nil && v.BadRequestError != nil } // GetInternalServiceError returns the value of InternalServiceError if it is set or its // zero value if it is unset. -func (v *HistoryService_NotifyFailoverMarkers_Result) GetInternalServiceError() (o *shared.InternalServiceError) { +func (v *HistoryService_MergeDLQMessages_Result) GetInternalServiceError() (o *shared.InternalServiceError) { if v != nil && v.InternalServiceError != nil { return v.InternalServiceError } @@ -19458,13 +19488,13 @@ func (v *HistoryService_NotifyFailoverMarkers_Result) GetInternalServiceError() } // IsSetInternalServiceError returns true if InternalServiceError is not nil. -func (v *HistoryService_NotifyFailoverMarkers_Result) IsSetInternalServiceError() bool { +func (v *HistoryService_MergeDLQMessages_Result) IsSetInternalServiceError() bool { return v != nil && v.InternalServiceError != nil } // GetServiceBusyError returns the value of ServiceBusyError if it is set or its // zero value if it is unset. -func (v *HistoryService_NotifyFailoverMarkers_Result) GetServiceBusyError() (o *shared.ServiceBusyError) { +func (v *HistoryService_MergeDLQMessages_Result) GetServiceBusyError() (o *shared.ServiceBusyError) { if v != nil && v.ServiceBusyError != nil { return v.ServiceBusyError } @@ -19473,33 +19503,63 @@ func (v *HistoryService_NotifyFailoverMarkers_Result) GetServiceBusyError() (o * } // IsSetServiceBusyError returns true if ServiceBusyError is not nil. -func (v *HistoryService_NotifyFailoverMarkers_Result) IsSetServiceBusyError() bool { +func (v *HistoryService_MergeDLQMessages_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 *HistoryService_MergeDLQMessages_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 *HistoryService_MergeDLQMessages_Result) IsSetEntityNotExistError() bool { + return v != nil && v.EntityNotExistError != nil +} + +// GetShardOwnershipLostError returns the value of ShardOwnershipLostError if it is set or its +// zero value if it is unset. +func (v *HistoryService_MergeDLQMessages_Result) GetShardOwnershipLostError() (o *ShardOwnershipLostError) { + if v != nil && v.ShardOwnershipLostError != nil { + return v.ShardOwnershipLostError + } + + return +} + +// IsSetShardOwnershipLostError returns true if ShardOwnershipLostError is not nil. +func (v *HistoryService_MergeDLQMessages_Result) IsSetShardOwnershipLostError() bool { + return v != nil && v.ShardOwnershipLostError != 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 "NotifyFailoverMarkers" for this struct. -func (v *HistoryService_NotifyFailoverMarkers_Result) MethodName() string { - return "NotifyFailoverMarkers" +// This will always be "MergeDLQMessages" for this struct. +func (v *HistoryService_MergeDLQMessages_Result) MethodName() string { + return "MergeDLQMessages" } // EnvelopeType returns the kind of value inside this struct. // // This will always be Reply for this struct. -func (v *HistoryService_NotifyFailoverMarkers_Result) EnvelopeType() wire.EnvelopeType { +func (v *HistoryService_MergeDLQMessages_Result) EnvelopeType() wire.EnvelopeType { return wire.Reply } -// HistoryService_PollMutableState_Args represents the arguments for the HistoryService.PollMutableState function. +// HistoryService_NotifyFailoverMarkers_Args represents the arguments for the HistoryService.NotifyFailoverMarkers function. // -// The arguments for PollMutableState are sent and received over the wire as this struct. -type HistoryService_PollMutableState_Args struct { - PollRequest *PollMutableStateRequest `json:"pollRequest,omitempty"` +// The arguments for NotifyFailoverMarkers are sent and received over the wire as this struct. +type HistoryService_NotifyFailoverMarkers_Args struct { + Request *NotifyFailoverMarkersRequest `json:"request,omitempty"` } -// ToWire translates a HistoryService_PollMutableState_Args struct into a Thrift-level intermediate +// ToWire translates a HistoryService_NotifyFailoverMarkers_Args struct into a Thrift-level intermediate // representation. This intermediate representation may be serialized // into bytes using a ThriftRW protocol implementation. // @@ -19514,7 +19574,7 @@ type HistoryService_PollMutableState_Args struct { // if err := binaryProtocol.Encode(x, writer); err != nil { // return err // } -func (v *HistoryService_PollMutableState_Args) ToWire() (wire.Value, error) { +func (v *HistoryService_NotifyFailoverMarkers_Args) ToWire() (wire.Value, error) { var ( fields [1]wire.Field i int = 0 @@ -19522,8 +19582,8 @@ func (v *HistoryService_PollMutableState_Args) ToWire() (wire.Value, error) { err error ) - if v.PollRequest != nil { - w, err = v.PollRequest.ToWire() + if v.Request != nil { + w, err = v.Request.ToWire() if err != nil { return w, err } @@ -19534,17 +19594,17 @@ func (v *HistoryService_PollMutableState_Args) ToWire() (wire.Value, error) { return wire.NewValueStruct(wire.Struct{Fields: fields[:i]}), nil } -func _PollMutableStateRequest_Read(w wire.Value) (*PollMutableStateRequest, error) { - var v PollMutableStateRequest +func _NotifyFailoverMarkersRequest_Read(w wire.Value) (*NotifyFailoverMarkersRequest, error) { + var v NotifyFailoverMarkersRequest err := v.FromWire(w) return &v, err } -// FromWire deserializes a HistoryService_PollMutableState_Args struct from its Thrift-level +// FromWire deserializes a HistoryService_NotifyFailoverMarkers_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 HistoryService_PollMutableState_Args struct +// An error is returned if we were unable to build a HistoryService_NotifyFailoverMarkers_Args struct // from the provided intermediate representation. // // x, err := binaryProtocol.Decode(reader, wire.TStruct) @@ -19552,19 +19612,19 @@ func _PollMutableStateRequest_Read(w wire.Value) (*PollMutableStateRequest, erro // return nil, err // } // -// var v HistoryService_PollMutableState_Args +// var v HistoryService_NotifyFailoverMarkers_Args // if err := v.FromWire(x); err != nil { // return nil, err // } // return &v, nil -func (v *HistoryService_PollMutableState_Args) FromWire(w wire.Value) error { +func (v *HistoryService_NotifyFailoverMarkers_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.PollRequest, err = _PollMutableStateRequest_Read(field.Value) + v.Request, err = _NotifyFailoverMarkersRequest_Read(field.Value) if err != nil { return err } @@ -19576,34 +19636,34 @@ func (v *HistoryService_PollMutableState_Args) FromWire(w wire.Value) error { return nil } -// String returns a readable string representation of a HistoryService_PollMutableState_Args +// String returns a readable string representation of a HistoryService_NotifyFailoverMarkers_Args // struct. -func (v *HistoryService_PollMutableState_Args) String() string { +func (v *HistoryService_NotifyFailoverMarkers_Args) String() string { if v == nil { return "" } var fields [1]string i := 0 - if v.PollRequest != nil { - fields[i] = fmt.Sprintf("PollRequest: %v", v.PollRequest) + if v.Request != nil { + fields[i] = fmt.Sprintf("Request: %v", v.Request) i++ } - return fmt.Sprintf("HistoryService_PollMutableState_Args{%v}", strings.Join(fields[:i], ", ")) + return fmt.Sprintf("HistoryService_NotifyFailoverMarkers_Args{%v}", strings.Join(fields[:i], ", ")) } -// Equals returns true if all the fields of this HistoryService_PollMutableState_Args match the -// provided HistoryService_PollMutableState_Args. +// Equals returns true if all the fields of this HistoryService_NotifyFailoverMarkers_Args match the +// provided HistoryService_NotifyFailoverMarkers_Args. // // This function performs a deep comparison. -func (v *HistoryService_PollMutableState_Args) Equals(rhs *HistoryService_PollMutableState_Args) bool { +func (v *HistoryService_NotifyFailoverMarkers_Args) Equals(rhs *HistoryService_NotifyFailoverMarkers_Args) bool { if v == nil { return rhs == nil } else if rhs == nil { return false } - if !((v.PollRequest == nil && rhs.PollRequest == nil) || (v.PollRequest != nil && rhs.PollRequest != nil && v.PollRequest.Equals(rhs.PollRequest))) { + if !((v.Request == nil && rhs.Request == nil) || (v.Request != nil && rhs.Request != nil && v.Request.Equals(rhs.Request))) { return false } @@ -19611,168 +19671,141 @@ func (v *HistoryService_PollMutableState_Args) Equals(rhs *HistoryService_PollMu } // MarshalLogObject implements zapcore.ObjectMarshaler, enabling -// fast logging of HistoryService_PollMutableState_Args. -func (v *HistoryService_PollMutableState_Args) MarshalLogObject(enc zapcore.ObjectEncoder) (err error) { +// fast logging of HistoryService_NotifyFailoverMarkers_Args. +func (v *HistoryService_NotifyFailoverMarkers_Args) MarshalLogObject(enc zapcore.ObjectEncoder) (err error) { if v == nil { return nil } - if v.PollRequest != nil { - err = multierr.Append(err, enc.AddObject("pollRequest", v.PollRequest)) + if v.Request != nil { + err = multierr.Append(err, enc.AddObject("request", v.Request)) } return err } -// GetPollRequest returns the value of PollRequest if it is set or its +// GetRequest returns the value of Request if it is set or its // zero value if it is unset. -func (v *HistoryService_PollMutableState_Args) GetPollRequest() (o *PollMutableStateRequest) { - if v != nil && v.PollRequest != nil { - return v.PollRequest +func (v *HistoryService_NotifyFailoverMarkers_Args) GetRequest() (o *NotifyFailoverMarkersRequest) { + if v != nil && v.Request != nil { + return v.Request } return } -// IsSetPollRequest returns true if PollRequest is not nil. -func (v *HistoryService_PollMutableState_Args) IsSetPollRequest() bool { - return v != nil && v.PollRequest != nil +// IsSetRequest returns true if Request is not nil. +func (v *HistoryService_NotifyFailoverMarkers_Args) IsSetRequest() bool { + return v != nil && v.Request != 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 "PollMutableState" for this struct. -func (v *HistoryService_PollMutableState_Args) MethodName() string { - return "PollMutableState" +// This will always be "NotifyFailoverMarkers" for this struct. +func (v *HistoryService_NotifyFailoverMarkers_Args) MethodName() string { + return "NotifyFailoverMarkers" } // EnvelopeType returns the kind of value inside this struct. // // This will always be Call for this struct. -func (v *HistoryService_PollMutableState_Args) EnvelopeType() wire.EnvelopeType { +func (v *HistoryService_NotifyFailoverMarkers_Args) EnvelopeType() wire.EnvelopeType { return wire.Call } -// HistoryService_PollMutableState_Helper provides functions that aid in handling the -// parameters and return values of the HistoryService.PollMutableState +// HistoryService_NotifyFailoverMarkers_Helper provides functions that aid in handling the +// parameters and return values of the HistoryService.NotifyFailoverMarkers // function. -var HistoryService_PollMutableState_Helper = struct { - // Args accepts the parameters of PollMutableState in-order and returns +var HistoryService_NotifyFailoverMarkers_Helper = struct { + // Args accepts the parameters of NotifyFailoverMarkers in-order and returns // the arguments struct for the function. Args func( - pollRequest *PollMutableStateRequest, - ) *HistoryService_PollMutableState_Args + request *NotifyFailoverMarkersRequest, + ) *HistoryService_NotifyFailoverMarkers_Args // IsException returns true if the given error can be thrown - // by PollMutableState. + // by NotifyFailoverMarkers. // - // An error can be thrown by PollMutableState only if the + // An error can be thrown by NotifyFailoverMarkers 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 PollMutableState - // given its return value and error. + // WrapResponse returns the result struct for NotifyFailoverMarkers + // given the error returned by it. The provided error may + // be nil if NotifyFailoverMarkers did not fail. // - // This allows mapping values and errors returned by - // PollMutableState into a serializable result struct. - // WrapResponse returns a non-nil error if the provided - // error cannot be thrown by PollMutableState + // This allows mapping errors returned by NotifyFailoverMarkers into a + // serializable result struct. WrapResponse returns a + // non-nil error if the provided error cannot be thrown by + // NotifyFailoverMarkers // - // value, err := PollMutableState(args) - // result, err := HistoryService_PollMutableState_Helper.WrapResponse(value, err) + // err := NotifyFailoverMarkers(args) + // result, err := HistoryService_NotifyFailoverMarkers_Helper.WrapResponse(err) // if err != nil { - // return fmt.Errorf("unexpected error from PollMutableState: %v", err) + // return fmt.Errorf("unexpected error from NotifyFailoverMarkers: %v", err) // } // serialize(result) - WrapResponse func(*PollMutableStateResponse, error) (*HistoryService_PollMutableState_Result, error) + WrapResponse func(error) (*HistoryService_NotifyFailoverMarkers_Result, error) - // UnwrapResponse takes the result struct for PollMutableState - // and returns the value or error returned by it. + // UnwrapResponse takes the result struct for NotifyFailoverMarkers + // and returns the erorr returned by it (if any). // - // The error is non-nil only if PollMutableState threw an + // The error is non-nil only if NotifyFailoverMarkers threw an // exception. // // result := deserialize(bytes) - // value, err := HistoryService_PollMutableState_Helper.UnwrapResponse(result) - UnwrapResponse func(*HistoryService_PollMutableState_Result) (*PollMutableStateResponse, error) + // err := HistoryService_NotifyFailoverMarkers_Helper.UnwrapResponse(result) + UnwrapResponse func(*HistoryService_NotifyFailoverMarkers_Result) error }{} func init() { - HistoryService_PollMutableState_Helper.Args = func( - pollRequest *PollMutableStateRequest, - ) *HistoryService_PollMutableState_Args { - return &HistoryService_PollMutableState_Args{ - PollRequest: pollRequest, + HistoryService_NotifyFailoverMarkers_Helper.Args = func( + request *NotifyFailoverMarkersRequest, + ) *HistoryService_NotifyFailoverMarkers_Args { + return &HistoryService_NotifyFailoverMarkers_Args{ + Request: request, } } - HistoryService_PollMutableState_Helper.IsException = func(err error) bool { + HistoryService_NotifyFailoverMarkers_Helper.IsException = func(err error) bool { switch err.(type) { case *shared.BadRequestError: return true case *shared.InternalServiceError: return true - case *shared.EntityNotExistsError: - return true - case *ShardOwnershipLostError: - return true - case *shared.LimitExceededError: - return true case *shared.ServiceBusyError: return true - case *shared.CurrentBranchChangedError: - return true default: return false } } - HistoryService_PollMutableState_Helper.WrapResponse = func(success *PollMutableStateResponse, err error) (*HistoryService_PollMutableState_Result, error) { + HistoryService_NotifyFailoverMarkers_Helper.WrapResponse = func(err error) (*HistoryService_NotifyFailoverMarkers_Result, error) { if err == nil { - return &HistoryService_PollMutableState_Result{Success: success}, nil + return &HistoryService_NotifyFailoverMarkers_Result{}, nil } switch e := err.(type) { case *shared.BadRequestError: if e == nil { - return nil, errors.New("WrapResponse received non-nil error type with nil value for HistoryService_PollMutableState_Result.BadRequestError") + return nil, errors.New("WrapResponse received non-nil error type with nil value for HistoryService_NotifyFailoverMarkers_Result.BadRequestError") } - return &HistoryService_PollMutableState_Result{BadRequestError: e}, nil + return &HistoryService_NotifyFailoverMarkers_Result{BadRequestError: e}, nil case *shared.InternalServiceError: if e == nil { - return nil, errors.New("WrapResponse received non-nil error type with nil value for HistoryService_PollMutableState_Result.InternalServiceError") - } - return &HistoryService_PollMutableState_Result{InternalServiceError: e}, nil - case *shared.EntityNotExistsError: - if e == nil { - return nil, errors.New("WrapResponse received non-nil error type with nil value for HistoryService_PollMutableState_Result.EntityNotExistError") - } - return &HistoryService_PollMutableState_Result{EntityNotExistError: e}, nil - case *ShardOwnershipLostError: - if e == nil { - return nil, errors.New("WrapResponse received non-nil error type with nil value for HistoryService_PollMutableState_Result.ShardOwnershipLostError") - } - return &HistoryService_PollMutableState_Result{ShardOwnershipLostError: e}, nil - case *shared.LimitExceededError: - if e == nil { - return nil, errors.New("WrapResponse received non-nil error type with nil value for HistoryService_PollMutableState_Result.LimitExceededError") + return nil, errors.New("WrapResponse received non-nil error type with nil value for HistoryService_NotifyFailoverMarkers_Result.InternalServiceError") } - return &HistoryService_PollMutableState_Result{LimitExceededError: e}, nil + return &HistoryService_NotifyFailoverMarkers_Result{InternalServiceError: e}, nil case *shared.ServiceBusyError: if e == nil { - return nil, errors.New("WrapResponse received non-nil error type with nil value for HistoryService_PollMutableState_Result.ServiceBusyError") - } - return &HistoryService_PollMutableState_Result{ServiceBusyError: e}, nil - case *shared.CurrentBranchChangedError: - if e == nil { - return nil, errors.New("WrapResponse received non-nil error type with nil value for HistoryService_PollMutableState_Result.CurrentBranchChangedError") + return nil, errors.New("WrapResponse received non-nil error type with nil value for HistoryService_NotifyFailoverMarkers_Result.ServiceBusyError") } - return &HistoryService_PollMutableState_Result{CurrentBranchChangedError: e}, nil + return &HistoryService_NotifyFailoverMarkers_Result{ServiceBusyError: e}, nil } return nil, err } - HistoryService_PollMutableState_Helper.UnwrapResponse = func(result *HistoryService_PollMutableState_Result) (success *PollMutableStateResponse, err error) { + HistoryService_NotifyFailoverMarkers_Helper.UnwrapResponse = func(result *HistoryService_NotifyFailoverMarkers_Result) (err error) { if result.BadRequestError != nil { err = result.BadRequestError return @@ -19781,56 +19814,25 @@ func init() { err = result.InternalServiceError return } - if result.EntityNotExistError != nil { - err = result.EntityNotExistError - return - } - if result.ShardOwnershipLostError != nil { - err = result.ShardOwnershipLostError - return - } - if result.LimitExceededError != nil { - err = result.LimitExceededError - return - } if result.ServiceBusyError != nil { err = result.ServiceBusyError return } - if result.CurrentBranchChangedError != nil { - err = result.CurrentBranchChangedError - return - } - - if result.Success != nil { - success = result.Success - return - } - - err = errors.New("expected a non-void result") return } } -// HistoryService_PollMutableState_Result represents the result of a HistoryService.PollMutableState function call. -// -// The result of a PollMutableState execution is sent and received over the wire as this struct. +// HistoryService_NotifyFailoverMarkers_Result represents the result of a HistoryService.NotifyFailoverMarkers function call. // -// Success is set only if the function did not throw an exception. -type HistoryService_PollMutableState_Result struct { - // Value returned by PollMutableState after a successful execution. - Success *PollMutableStateResponse `json:"success,omitempty"` - BadRequestError *shared.BadRequestError `json:"badRequestError,omitempty"` - InternalServiceError *shared.InternalServiceError `json:"internalServiceError,omitempty"` - EntityNotExistError *shared.EntityNotExistsError `json:"entityNotExistError,omitempty"` - ShardOwnershipLostError *ShardOwnershipLostError `json:"shardOwnershipLostError,omitempty"` - LimitExceededError *shared.LimitExceededError `json:"limitExceededError,omitempty"` - ServiceBusyError *shared.ServiceBusyError `json:"serviceBusyError,omitempty"` - CurrentBranchChangedError *shared.CurrentBranchChangedError `json:"currentBranchChangedError,omitempty"` +// The result of a NotifyFailoverMarkers execution is sent and received over the wire as this struct. +type HistoryService_NotifyFailoverMarkers_Result struct { + BadRequestError *shared.BadRequestError `json:"badRequestError,omitempty"` + InternalServiceError *shared.InternalServiceError `json:"internalServiceError,omitempty"` + ServiceBusyError *shared.ServiceBusyError `json:"serviceBusyError,omitempty"` } -// ToWire translates a HistoryService_PollMutableState_Result struct into a Thrift-level intermediate +// ToWire translates a HistoryService_NotifyFailoverMarkers_Result struct into a Thrift-level intermediate // representation. This intermediate representation may be serialized // into bytes using a ThriftRW protocol implementation. // @@ -19845,22 +19847,14 @@ type HistoryService_PollMutableState_Result struct { // if err := binaryProtocol.Encode(x, writer); err != nil { // return err // } -func (v *HistoryService_PollMutableState_Result) ToWire() (wire.Value, error) { +func (v *HistoryService_NotifyFailoverMarkers_Result) ToWire() (wire.Value, error) { var ( - fields [8]wire.Field + fields [3]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.BadRequestError != nil { w, err = v.BadRequestError.ToWire() if err != nil { @@ -19877,65 +19871,27 @@ func (v *HistoryService_PollMutableState_Result) ToWire() (wire.Value, error) { 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.ShardOwnershipLostError != nil { - w, err = v.ShardOwnershipLostError.ToWire() - if err != nil { - return w, err - } - fields[i] = wire.Field{ID: 4, Value: w} - i++ - } - if v.LimitExceededError != nil { - w, err = v.LimitExceededError.ToWire() - if err != nil { - return w, err - } - fields[i] = wire.Field{ID: 5, Value: w} - i++ - } if v.ServiceBusyError != nil { w, err = v.ServiceBusyError.ToWire() if err != nil { return w, err } - fields[i] = wire.Field{ID: 6, Value: w} - i++ - } - if v.CurrentBranchChangedError != nil { - w, err = v.CurrentBranchChangedError.ToWire() - if err != nil { - return w, err - } - fields[i] = wire.Field{ID: 7, Value: w} + fields[i] = wire.Field{ID: 3, Value: w} i++ } - if i != 1 { - return wire.Value{}, fmt.Errorf("HistoryService_PollMutableState_Result should have exactly one field: got %v fields", i) + if i > 1 { + return wire.Value{}, fmt.Errorf("HistoryService_NotifyFailoverMarkers_Result should have at most one field: got %v fields", i) } return wire.NewValueStruct(wire.Struct{Fields: fields[:i]}), nil } -func _PollMutableStateResponse_Read(w wire.Value) (*PollMutableStateResponse, error) { - var v PollMutableStateResponse - err := v.FromWire(w) - return &v, err -} - -// FromWire deserializes a HistoryService_PollMutableState_Result struct from its Thrift-level +// FromWire deserializes a HistoryService_NotifyFailoverMarkers_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 HistoryService_PollMutableState_Result struct +// An error is returned if we were unable to build a HistoryService_NotifyFailoverMarkers_Result struct // from the provided intermediate representation. // // x, err := binaryProtocol.Decode(reader, wire.TStruct) @@ -19943,27 +19899,19 @@ func _PollMutableStateResponse_Read(w wire.Value) (*PollMutableStateResponse, er // return nil, err // } // -// var v HistoryService_PollMutableState_Result +// var v HistoryService_NotifyFailoverMarkers_Result // if err := v.FromWire(x); err != nil { // return nil, err // } // return &v, nil -func (v *HistoryService_PollMutableState_Result) FromWire(w wire.Value) error { +func (v *HistoryService_NotifyFailoverMarkers_Result) FromWire(w wire.Value) error { var err error for _, field := range w.GetStruct().Fields { switch field.ID { - case 0: + case 1: if field.Value.Type() == wire.TStruct { - v.Success, err = _PollMutableStateResponse_Read(field.Value) - if err != nil { - return err - } - - } - case 1: - if field.Value.Type() == wire.TStruct { - v.BadRequestError, err = _BadRequestError_Read(field.Value) + v.BadRequestError, err = _BadRequestError_Read(field.Value) if err != nil { return err } @@ -19978,93 +19926,42 @@ func (v *HistoryService_PollMutableState_Result) FromWire(w wire.Value) error { } 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.ShardOwnershipLostError, err = _ShardOwnershipLostError_Read(field.Value) - if err != nil { - return err - } - - } - case 5: - if field.Value.Type() == wire.TStruct { - v.LimitExceededError, err = _LimitExceededError_Read(field.Value) - if err != nil { - return err - } - - } - case 6: if field.Value.Type() == wire.TStruct { v.ServiceBusyError, err = _ServiceBusyError_Read(field.Value) if err != nil { return err } - } - case 7: - if field.Value.Type() == wire.TStruct { - v.CurrentBranchChangedError, err = _CurrentBranchChangedError_Read(field.Value) - if err != nil { - return err - } - } } } count := 0 - if v.Success != nil { - count++ - } if v.BadRequestError != nil { count++ } if v.InternalServiceError != nil { count++ } - if v.EntityNotExistError != nil { - count++ - } - if v.ShardOwnershipLostError != nil { - count++ - } - if v.LimitExceededError != nil { - count++ - } if v.ServiceBusyError != nil { count++ } - if v.CurrentBranchChangedError != nil { - count++ - } - if count != 1 { - return fmt.Errorf("HistoryService_PollMutableState_Result should have exactly one field: got %v fields", count) + if count > 1 { + return fmt.Errorf("HistoryService_NotifyFailoverMarkers_Result should have at most one field: got %v fields", count) } return nil } -// String returns a readable string representation of a HistoryService_PollMutableState_Result +// String returns a readable string representation of a HistoryService_NotifyFailoverMarkers_Result // struct. -func (v *HistoryService_PollMutableState_Result) String() string { +func (v *HistoryService_NotifyFailoverMarkers_Result) String() string { if v == nil { return "" } - var fields [8]string + var fields [3]string i := 0 - if v.Success != nil { - fields[i] = fmt.Sprintf("Success: %v", v.Success) - i++ - } if v.BadRequestError != nil { fields[i] = fmt.Sprintf("BadRequestError: %v", v.BadRequestError) i++ @@ -20073,119 +19970,58 @@ func (v *HistoryService_PollMutableState_Result) String() string { fields[i] = fmt.Sprintf("InternalServiceError: %v", v.InternalServiceError) i++ } - if v.EntityNotExistError != nil { - fields[i] = fmt.Sprintf("EntityNotExistError: %v", v.EntityNotExistError) - i++ - } - if v.ShardOwnershipLostError != nil { - fields[i] = fmt.Sprintf("ShardOwnershipLostError: %v", v.ShardOwnershipLostError) - i++ - } - if v.LimitExceededError != nil { - fields[i] = fmt.Sprintf("LimitExceededError: %v", v.LimitExceededError) - i++ - } if v.ServiceBusyError != nil { fields[i] = fmt.Sprintf("ServiceBusyError: %v", v.ServiceBusyError) i++ } - if v.CurrentBranchChangedError != nil { - fields[i] = fmt.Sprintf("CurrentBranchChangedError: %v", v.CurrentBranchChangedError) - i++ - } - return fmt.Sprintf("HistoryService_PollMutableState_Result{%v}", strings.Join(fields[:i], ", ")) + return fmt.Sprintf("HistoryService_NotifyFailoverMarkers_Result{%v}", strings.Join(fields[:i], ", ")) } -// Equals returns true if all the fields of this HistoryService_PollMutableState_Result match the -// provided HistoryService_PollMutableState_Result. +// Equals returns true if all the fields of this HistoryService_NotifyFailoverMarkers_Result match the +// provided HistoryService_NotifyFailoverMarkers_Result. // // This function performs a deep comparison. -func (v *HistoryService_PollMutableState_Result) Equals(rhs *HistoryService_PollMutableState_Result) bool { +func (v *HistoryService_NotifyFailoverMarkers_Result) Equals(rhs *HistoryService_NotifyFailoverMarkers_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.BadRequestError == nil && rhs.BadRequestError == nil) || (v.BadRequestError != nil && rhs.BadRequestError != nil && v.BadRequestError.Equals(rhs.BadRequestError))) { return false } if !((v.InternalServiceError == nil && rhs.InternalServiceError == nil) || (v.InternalServiceError != nil && rhs.InternalServiceError != nil && v.InternalServiceError.Equals(rhs.InternalServiceError))) { return false } - if !((v.EntityNotExistError == nil && rhs.EntityNotExistError == nil) || (v.EntityNotExistError != nil && rhs.EntityNotExistError != nil && v.EntityNotExistError.Equals(rhs.EntityNotExistError))) { - return false - } - if !((v.ShardOwnershipLostError == nil && rhs.ShardOwnershipLostError == nil) || (v.ShardOwnershipLostError != nil && rhs.ShardOwnershipLostError != nil && v.ShardOwnershipLostError.Equals(rhs.ShardOwnershipLostError))) { - return false - } - if !((v.LimitExceededError == nil && rhs.LimitExceededError == nil) || (v.LimitExceededError != nil && rhs.LimitExceededError != nil && v.LimitExceededError.Equals(rhs.LimitExceededError))) { - return false - } if !((v.ServiceBusyError == nil && rhs.ServiceBusyError == nil) || (v.ServiceBusyError != nil && rhs.ServiceBusyError != nil && v.ServiceBusyError.Equals(rhs.ServiceBusyError))) { return false } - if !((v.CurrentBranchChangedError == nil && rhs.CurrentBranchChangedError == nil) || (v.CurrentBranchChangedError != nil && rhs.CurrentBranchChangedError != nil && v.CurrentBranchChangedError.Equals(rhs.CurrentBranchChangedError))) { - return false - } return true } // MarshalLogObject implements zapcore.ObjectMarshaler, enabling -// fast logging of HistoryService_PollMutableState_Result. -func (v *HistoryService_PollMutableState_Result) MarshalLogObject(enc zapcore.ObjectEncoder) (err error) { +// fast logging of HistoryService_NotifyFailoverMarkers_Result. +func (v *HistoryService_NotifyFailoverMarkers_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.BadRequestError != nil { err = multierr.Append(err, enc.AddObject("badRequestError", v.BadRequestError)) } if v.InternalServiceError != nil { err = multierr.Append(err, enc.AddObject("internalServiceError", v.InternalServiceError)) } - if v.EntityNotExistError != nil { - err = multierr.Append(err, enc.AddObject("entityNotExistError", v.EntityNotExistError)) - } - if v.ShardOwnershipLostError != nil { - err = multierr.Append(err, enc.AddObject("shardOwnershipLostError", v.ShardOwnershipLostError)) - } - if v.LimitExceededError != nil { - err = multierr.Append(err, enc.AddObject("limitExceededError", v.LimitExceededError)) - } if v.ServiceBusyError != nil { err = multierr.Append(err, enc.AddObject("serviceBusyError", v.ServiceBusyError)) } - if v.CurrentBranchChangedError != nil { - err = multierr.Append(err, enc.AddObject("currentBranchChangedError", v.CurrentBranchChangedError)) - } return err } -// GetSuccess returns the value of Success if it is set or its -// zero value if it is unset. -func (v *HistoryService_PollMutableState_Result) GetSuccess() (o *PollMutableStateResponse) { - if v != nil && v.Success != nil { - return v.Success - } - - return -} - -// IsSetSuccess returns true if Success is not nil. -func (v *HistoryService_PollMutableState_Result) IsSetSuccess() bool { - return v != nil && v.Success != nil -} - // GetBadRequestError returns the value of BadRequestError if it is set or its // zero value if it is unset. -func (v *HistoryService_PollMutableState_Result) GetBadRequestError() (o *shared.BadRequestError) { +func (v *HistoryService_NotifyFailoverMarkers_Result) GetBadRequestError() (o *shared.BadRequestError) { if v != nil && v.BadRequestError != nil { return v.BadRequestError } @@ -20194,13 +20030,13 @@ func (v *HistoryService_PollMutableState_Result) GetBadRequestError() (o *shared } // IsSetBadRequestError returns true if BadRequestError is not nil. -func (v *HistoryService_PollMutableState_Result) IsSetBadRequestError() bool { +func (v *HistoryService_NotifyFailoverMarkers_Result) IsSetBadRequestError() bool { return v != nil && v.BadRequestError != nil } // GetInternalServiceError returns the value of InternalServiceError if it is set or its // zero value if it is unset. -func (v *HistoryService_PollMutableState_Result) GetInternalServiceError() (o *shared.InternalServiceError) { +func (v *HistoryService_NotifyFailoverMarkers_Result) GetInternalServiceError() (o *shared.InternalServiceError) { if v != nil && v.InternalServiceError != nil { return v.InternalServiceError } @@ -20209,58 +20045,13 @@ func (v *HistoryService_PollMutableState_Result) GetInternalServiceError() (o *s } // IsSetInternalServiceError returns true if InternalServiceError is not nil. -func (v *HistoryService_PollMutableState_Result) IsSetInternalServiceError() bool { +func (v *HistoryService_NotifyFailoverMarkers_Result) IsSetInternalServiceError() bool { return v != nil && v.InternalServiceError != nil } -// GetEntityNotExistError returns the value of EntityNotExistError if it is set or its -// zero value if it is unset. -func (v *HistoryService_PollMutableState_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 *HistoryService_PollMutableState_Result) IsSetEntityNotExistError() bool { - return v != nil && v.EntityNotExistError != nil -} - -// GetShardOwnershipLostError returns the value of ShardOwnershipLostError if it is set or its -// zero value if it is unset. -func (v *HistoryService_PollMutableState_Result) GetShardOwnershipLostError() (o *ShardOwnershipLostError) { - if v != nil && v.ShardOwnershipLostError != nil { - return v.ShardOwnershipLostError - } - - return -} - -// IsSetShardOwnershipLostError returns true if ShardOwnershipLostError is not nil. -func (v *HistoryService_PollMutableState_Result) IsSetShardOwnershipLostError() bool { - return v != nil && v.ShardOwnershipLostError != nil -} - -// GetLimitExceededError returns the value of LimitExceededError if it is set or its -// zero value if it is unset. -func (v *HistoryService_PollMutableState_Result) GetLimitExceededError() (o *shared.LimitExceededError) { - if v != nil && v.LimitExceededError != nil { - return v.LimitExceededError - } - - return -} - -// IsSetLimitExceededError returns true if LimitExceededError is not nil. -func (v *HistoryService_PollMutableState_Result) IsSetLimitExceededError() bool { - return v != nil && v.LimitExceededError != nil -} - // GetServiceBusyError returns the value of ServiceBusyError if it is set or its // zero value if it is unset. -func (v *HistoryService_PollMutableState_Result) GetServiceBusyError() (o *shared.ServiceBusyError) { +func (v *HistoryService_NotifyFailoverMarkers_Result) GetServiceBusyError() (o *shared.ServiceBusyError) { if v != nil && v.ServiceBusyError != nil { return v.ServiceBusyError } @@ -20269,48 +20060,33 @@ func (v *HistoryService_PollMutableState_Result) GetServiceBusyError() (o *share } // IsSetServiceBusyError returns true if ServiceBusyError is not nil. -func (v *HistoryService_PollMutableState_Result) IsSetServiceBusyError() bool { +func (v *HistoryService_NotifyFailoverMarkers_Result) IsSetServiceBusyError() bool { return v != nil && v.ServiceBusyError != nil } -// GetCurrentBranchChangedError returns the value of CurrentBranchChangedError if it is set or its -// zero value if it is unset. -func (v *HistoryService_PollMutableState_Result) GetCurrentBranchChangedError() (o *shared.CurrentBranchChangedError) { - if v != nil && v.CurrentBranchChangedError != nil { - return v.CurrentBranchChangedError - } - - return -} - -// IsSetCurrentBranchChangedError returns true if CurrentBranchChangedError is not nil. -func (v *HistoryService_PollMutableState_Result) IsSetCurrentBranchChangedError() bool { - return v != nil && v.CurrentBranchChangedError != 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 "PollMutableState" for this struct. -func (v *HistoryService_PollMutableState_Result) MethodName() string { - return "PollMutableState" +// This will always be "NotifyFailoverMarkers" for this struct. +func (v *HistoryService_NotifyFailoverMarkers_Result) MethodName() string { + return "NotifyFailoverMarkers" } // EnvelopeType returns the kind of value inside this struct. // // This will always be Reply for this struct. -func (v *HistoryService_PollMutableState_Result) EnvelopeType() wire.EnvelopeType { +func (v *HistoryService_NotifyFailoverMarkers_Result) EnvelopeType() wire.EnvelopeType { return wire.Reply } -// HistoryService_PurgeDLQMessages_Args represents the arguments for the HistoryService.PurgeDLQMessages function. +// HistoryService_PollMutableState_Args represents the arguments for the HistoryService.PollMutableState function. // -// The arguments for PurgeDLQMessages are sent and received over the wire as this struct. -type HistoryService_PurgeDLQMessages_Args struct { - Request *replicator.PurgeDLQMessagesRequest `json:"request,omitempty"` +// The arguments for PollMutableState are sent and received over the wire as this struct. +type HistoryService_PollMutableState_Args struct { + PollRequest *PollMutableStateRequest `json:"pollRequest,omitempty"` } -// ToWire translates a HistoryService_PurgeDLQMessages_Args struct into a Thrift-level intermediate +// ToWire translates a HistoryService_PollMutableState_Args struct into a Thrift-level intermediate // representation. This intermediate representation may be serialized // into bytes using a ThriftRW protocol implementation. // @@ -20325,7 +20101,7 @@ type HistoryService_PurgeDLQMessages_Args struct { // if err := binaryProtocol.Encode(x, writer); err != nil { // return err // } -func (v *HistoryService_PurgeDLQMessages_Args) ToWire() (wire.Value, error) { +func (v *HistoryService_PollMutableState_Args) ToWire() (wire.Value, error) { var ( fields [1]wire.Field i int = 0 @@ -20333,8 +20109,8 @@ func (v *HistoryService_PurgeDLQMessages_Args) ToWire() (wire.Value, error) { err error ) - if v.Request != nil { - w, err = v.Request.ToWire() + if v.PollRequest != nil { + w, err = v.PollRequest.ToWire() if err != nil { return w, err } @@ -20345,17 +20121,17 @@ func (v *HistoryService_PurgeDLQMessages_Args) ToWire() (wire.Value, error) { return wire.NewValueStruct(wire.Struct{Fields: fields[:i]}), nil } -func _PurgeDLQMessagesRequest_Read(w wire.Value) (*replicator.PurgeDLQMessagesRequest, error) { - var v replicator.PurgeDLQMessagesRequest +func _PollMutableStateRequest_Read(w wire.Value) (*PollMutableStateRequest, error) { + var v PollMutableStateRequest err := v.FromWire(w) return &v, err } -// FromWire deserializes a HistoryService_PurgeDLQMessages_Args struct from its Thrift-level +// FromWire deserializes a HistoryService_PollMutableState_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 HistoryService_PurgeDLQMessages_Args struct +// An error is returned if we were unable to build a HistoryService_PollMutableState_Args struct // from the provided intermediate representation. // // x, err := binaryProtocol.Decode(reader, wire.TStruct) @@ -20363,19 +20139,19 @@ func _PurgeDLQMessagesRequest_Read(w wire.Value) (*replicator.PurgeDLQMessagesRe // return nil, err // } // -// var v HistoryService_PurgeDLQMessages_Args +// var v HistoryService_PollMutableState_Args // if err := v.FromWire(x); err != nil { // return nil, err // } // return &v, nil -func (v *HistoryService_PurgeDLQMessages_Args) FromWire(w wire.Value) error { +func (v *HistoryService_PollMutableState_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.Request, err = _PurgeDLQMessagesRequest_Read(field.Value) + v.PollRequest, err = _PollMutableStateRequest_Read(field.Value) if err != nil { return err } @@ -20387,34 +20163,34 @@ func (v *HistoryService_PurgeDLQMessages_Args) FromWire(w wire.Value) error { return nil } -// String returns a readable string representation of a HistoryService_PurgeDLQMessages_Args +// String returns a readable string representation of a HistoryService_PollMutableState_Args // struct. -func (v *HistoryService_PurgeDLQMessages_Args) String() string { +func (v *HistoryService_PollMutableState_Args) String() string { if v == nil { return "" } var fields [1]string i := 0 - if v.Request != nil { - fields[i] = fmt.Sprintf("Request: %v", v.Request) + if v.PollRequest != nil { + fields[i] = fmt.Sprintf("PollRequest: %v", v.PollRequest) i++ } - return fmt.Sprintf("HistoryService_PurgeDLQMessages_Args{%v}", strings.Join(fields[:i], ", ")) + return fmt.Sprintf("HistoryService_PollMutableState_Args{%v}", strings.Join(fields[:i], ", ")) } -// Equals returns true if all the fields of this HistoryService_PurgeDLQMessages_Args match the -// provided HistoryService_PurgeDLQMessages_Args. +// Equals returns true if all the fields of this HistoryService_PollMutableState_Args match the +// provided HistoryService_PollMutableState_Args. // // This function performs a deep comparison. -func (v *HistoryService_PurgeDLQMessages_Args) Equals(rhs *HistoryService_PurgeDLQMessages_Args) bool { +func (v *HistoryService_PollMutableState_Args) Equals(rhs *HistoryService_PollMutableState_Args) bool { if v == nil { return rhs == nil } else if rhs == nil { return false } - if !((v.Request == nil && rhs.Request == nil) || (v.Request != nil && rhs.Request != nil && v.Request.Equals(rhs.Request))) { + if !((v.PollRequest == nil && rhs.PollRequest == nil) || (v.PollRequest != nil && rhs.PollRequest != nil && v.PollRequest.Equals(rhs.PollRequest))) { return false } @@ -20422,155 +20198,168 @@ func (v *HistoryService_PurgeDLQMessages_Args) Equals(rhs *HistoryService_PurgeD } // MarshalLogObject implements zapcore.ObjectMarshaler, enabling -// fast logging of HistoryService_PurgeDLQMessages_Args. -func (v *HistoryService_PurgeDLQMessages_Args) MarshalLogObject(enc zapcore.ObjectEncoder) (err error) { +// fast logging of HistoryService_PollMutableState_Args. +func (v *HistoryService_PollMutableState_Args) MarshalLogObject(enc zapcore.ObjectEncoder) (err error) { if v == nil { return nil } - if v.Request != nil { - err = multierr.Append(err, enc.AddObject("request", v.Request)) + if v.PollRequest != nil { + err = multierr.Append(err, enc.AddObject("pollRequest", v.PollRequest)) } return err } -// GetRequest returns the value of Request if it is set or its +// GetPollRequest returns the value of PollRequest if it is set or its // zero value if it is unset. -func (v *HistoryService_PurgeDLQMessages_Args) GetRequest() (o *replicator.PurgeDLQMessagesRequest) { - if v != nil && v.Request != nil { - return v.Request +func (v *HistoryService_PollMutableState_Args) GetPollRequest() (o *PollMutableStateRequest) { + if v != nil && v.PollRequest != nil { + return v.PollRequest } return } -// IsSetRequest returns true if Request is not nil. -func (v *HistoryService_PurgeDLQMessages_Args) IsSetRequest() bool { - return v != nil && v.Request != nil +// IsSetPollRequest returns true if PollRequest is not nil. +func (v *HistoryService_PollMutableState_Args) IsSetPollRequest() bool { + return v != nil && v.PollRequest != 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 "PurgeDLQMessages" for this struct. -func (v *HistoryService_PurgeDLQMessages_Args) MethodName() string { - return "PurgeDLQMessages" +// This will always be "PollMutableState" for this struct. +func (v *HistoryService_PollMutableState_Args) MethodName() string { + return "PollMutableState" } // EnvelopeType returns the kind of value inside this struct. // // This will always be Call for this struct. -func (v *HistoryService_PurgeDLQMessages_Args) EnvelopeType() wire.EnvelopeType { +func (v *HistoryService_PollMutableState_Args) EnvelopeType() wire.EnvelopeType { return wire.Call } -// HistoryService_PurgeDLQMessages_Helper provides functions that aid in handling the -// parameters and return values of the HistoryService.PurgeDLQMessages +// HistoryService_PollMutableState_Helper provides functions that aid in handling the +// parameters and return values of the HistoryService.PollMutableState // function. -var HistoryService_PurgeDLQMessages_Helper = struct { - // Args accepts the parameters of PurgeDLQMessages in-order and returns +var HistoryService_PollMutableState_Helper = struct { + // Args accepts the parameters of PollMutableState in-order and returns // the arguments struct for the function. Args func( - request *replicator.PurgeDLQMessagesRequest, - ) *HistoryService_PurgeDLQMessages_Args + pollRequest *PollMutableStateRequest, + ) *HistoryService_PollMutableState_Args // IsException returns true if the given error can be thrown - // by PurgeDLQMessages. + // by PollMutableState. // - // An error can be thrown by PurgeDLQMessages only if the + // An error can be thrown by PollMutableState 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 PurgeDLQMessages - // given the error returned by it. The provided error may - // be nil if PurgeDLQMessages did not fail. + // WrapResponse returns the result struct for PollMutableState + // given its return value and error. // - // This allows mapping errors returned by PurgeDLQMessages into a - // serializable result struct. WrapResponse returns a - // non-nil error if the provided error cannot be thrown by - // PurgeDLQMessages + // This allows mapping values and errors returned by + // PollMutableState into a serializable result struct. + // WrapResponse returns a non-nil error if the provided + // error cannot be thrown by PollMutableState // - // err := PurgeDLQMessages(args) - // result, err := HistoryService_PurgeDLQMessages_Helper.WrapResponse(err) + // value, err := PollMutableState(args) + // result, err := HistoryService_PollMutableState_Helper.WrapResponse(value, err) // if err != nil { - // return fmt.Errorf("unexpected error from PurgeDLQMessages: %v", err) + // return fmt.Errorf("unexpected error from PollMutableState: %v", err) // } // serialize(result) - WrapResponse func(error) (*HistoryService_PurgeDLQMessages_Result, error) + WrapResponse func(*PollMutableStateResponse, error) (*HistoryService_PollMutableState_Result, error) - // UnwrapResponse takes the result struct for PurgeDLQMessages - // and returns the erorr returned by it (if any). + // UnwrapResponse takes the result struct for PollMutableState + // and returns the value or error returned by it. // - // The error is non-nil only if PurgeDLQMessages threw an + // The error is non-nil only if PollMutableState threw an // exception. // // result := deserialize(bytes) - // err := HistoryService_PurgeDLQMessages_Helper.UnwrapResponse(result) - UnwrapResponse func(*HistoryService_PurgeDLQMessages_Result) error + // value, err := HistoryService_PollMutableState_Helper.UnwrapResponse(result) + UnwrapResponse func(*HistoryService_PollMutableState_Result) (*PollMutableStateResponse, error) }{} func init() { - HistoryService_PurgeDLQMessages_Helper.Args = func( - request *replicator.PurgeDLQMessagesRequest, - ) *HistoryService_PurgeDLQMessages_Args { - return &HistoryService_PurgeDLQMessages_Args{ - Request: request, + HistoryService_PollMutableState_Helper.Args = func( + pollRequest *PollMutableStateRequest, + ) *HistoryService_PollMutableState_Args { + return &HistoryService_PollMutableState_Args{ + PollRequest: pollRequest, } } - HistoryService_PurgeDLQMessages_Helper.IsException = func(err error) bool { + HistoryService_PollMutableState_Helper.IsException = func(err error) bool { switch err.(type) { case *shared.BadRequestError: return true case *shared.InternalServiceError: return true - case *shared.ServiceBusyError: - return true case *shared.EntityNotExistsError: return true case *ShardOwnershipLostError: return true + case *shared.LimitExceededError: + return true + case *shared.ServiceBusyError: + return true + case *shared.CurrentBranchChangedError: + return true default: return false } } - HistoryService_PurgeDLQMessages_Helper.WrapResponse = func(err error) (*HistoryService_PurgeDLQMessages_Result, error) { + HistoryService_PollMutableState_Helper.WrapResponse = func(success *PollMutableStateResponse, err error) (*HistoryService_PollMutableState_Result, error) { if err == nil { - return &HistoryService_PurgeDLQMessages_Result{}, nil + return &HistoryService_PollMutableState_Result{Success: success}, nil } switch e := err.(type) { case *shared.BadRequestError: if e == nil { - return nil, errors.New("WrapResponse received non-nil error type with nil value for HistoryService_PurgeDLQMessages_Result.BadRequestError") + return nil, errors.New("WrapResponse received non-nil error type with nil value for HistoryService_PollMutableState_Result.BadRequestError") } - return &HistoryService_PurgeDLQMessages_Result{BadRequestError: e}, nil + return &HistoryService_PollMutableState_Result{BadRequestError: e}, nil case *shared.InternalServiceError: if e == nil { - return nil, errors.New("WrapResponse received non-nil error type with nil value for HistoryService_PurgeDLQMessages_Result.InternalServiceError") - } - return &HistoryService_PurgeDLQMessages_Result{InternalServiceError: e}, nil - case *shared.ServiceBusyError: - if e == nil { - return nil, errors.New("WrapResponse received non-nil error type with nil value for HistoryService_PurgeDLQMessages_Result.ServiceBusyError") + return nil, errors.New("WrapResponse received non-nil error type with nil value for HistoryService_PollMutableState_Result.InternalServiceError") } - return &HistoryService_PurgeDLQMessages_Result{ServiceBusyError: e}, nil + return &HistoryService_PollMutableState_Result{InternalServiceError: e}, nil case *shared.EntityNotExistsError: if e == nil { - return nil, errors.New("WrapResponse received non-nil error type with nil value for HistoryService_PurgeDLQMessages_Result.EntityNotExistError") + return nil, errors.New("WrapResponse received non-nil error type with nil value for HistoryService_PollMutableState_Result.EntityNotExistError") } - return &HistoryService_PurgeDLQMessages_Result{EntityNotExistError: e}, nil + return &HistoryService_PollMutableState_Result{EntityNotExistError: e}, nil case *ShardOwnershipLostError: if e == nil { - return nil, errors.New("WrapResponse received non-nil error type with nil value for HistoryService_PurgeDLQMessages_Result.ShardOwnershipLostError") + return nil, errors.New("WrapResponse received non-nil error type with nil value for HistoryService_PollMutableState_Result.ShardOwnershipLostError") } - return &HistoryService_PurgeDLQMessages_Result{ShardOwnershipLostError: e}, nil + return &HistoryService_PollMutableState_Result{ShardOwnershipLostError: e}, nil + case *shared.LimitExceededError: + if e == nil { + return nil, errors.New("WrapResponse received non-nil error type with nil value for HistoryService_PollMutableState_Result.LimitExceededError") + } + return &HistoryService_PollMutableState_Result{LimitExceededError: e}, nil + case *shared.ServiceBusyError: + if e == nil { + return nil, errors.New("WrapResponse received non-nil error type with nil value for HistoryService_PollMutableState_Result.ServiceBusyError") + } + return &HistoryService_PollMutableState_Result{ServiceBusyError: e}, nil + case *shared.CurrentBranchChangedError: + if e == nil { + return nil, errors.New("WrapResponse received non-nil error type with nil value for HistoryService_PollMutableState_Result.CurrentBranchChangedError") + } + return &HistoryService_PollMutableState_Result{CurrentBranchChangedError: e}, nil } return nil, err } - HistoryService_PurgeDLQMessages_Helper.UnwrapResponse = func(result *HistoryService_PurgeDLQMessages_Result) (err error) { + HistoryService_PollMutableState_Helper.UnwrapResponse = func(result *HistoryService_PollMutableState_Result) (success *PollMutableStateResponse, err error) { if result.BadRequestError != nil { err = result.BadRequestError return @@ -20579,10 +20368,6 @@ func init() { err = result.InternalServiceError return } - if result.ServiceBusyError != nil { - err = result.ServiceBusyError - return - } if result.EntityNotExistError != nil { err = result.EntityNotExistError return @@ -20591,23 +20376,48 @@ func init() { err = result.ShardOwnershipLostError return } + if result.LimitExceededError != nil { + err = result.LimitExceededError + return + } + if result.ServiceBusyError != nil { + err = result.ServiceBusyError + return + } + if result.CurrentBranchChangedError != nil { + err = result.CurrentBranchChangedError + return + } + + if result.Success != nil { + success = result.Success + return + } + + err = errors.New("expected a non-void result") return } } -// HistoryService_PurgeDLQMessages_Result represents the result of a HistoryService.PurgeDLQMessages function call. +// HistoryService_PollMutableState_Result represents the result of a HistoryService.PollMutableState function call. // -// The result of a PurgeDLQMessages execution is sent and received over the wire as this struct. -type HistoryService_PurgeDLQMessages_Result struct { - BadRequestError *shared.BadRequestError `json:"badRequestError,omitempty"` - InternalServiceError *shared.InternalServiceError `json:"internalServiceError,omitempty"` - ServiceBusyError *shared.ServiceBusyError `json:"serviceBusyError,omitempty"` - EntityNotExistError *shared.EntityNotExistsError `json:"entityNotExistError,omitempty"` - ShardOwnershipLostError *ShardOwnershipLostError `json:"shardOwnershipLostError,omitempty"` +// The result of a PollMutableState execution is sent and received over the wire as this struct. +// +// Success is set only if the function did not throw an exception. +type HistoryService_PollMutableState_Result struct { + // Value returned by PollMutableState after a successful execution. + Success *PollMutableStateResponse `json:"success,omitempty"` + BadRequestError *shared.BadRequestError `json:"badRequestError,omitempty"` + InternalServiceError *shared.InternalServiceError `json:"internalServiceError,omitempty"` + EntityNotExistError *shared.EntityNotExistsError `json:"entityNotExistError,omitempty"` + ShardOwnershipLostError *ShardOwnershipLostError `json:"shardOwnershipLostError,omitempty"` + LimitExceededError *shared.LimitExceededError `json:"limitExceededError,omitempty"` + ServiceBusyError *shared.ServiceBusyError `json:"serviceBusyError,omitempty"` + CurrentBranchChangedError *shared.CurrentBranchChangedError `json:"currentBranchChangedError,omitempty"` } -// ToWire translates a HistoryService_PurgeDLQMessages_Result struct into a Thrift-level intermediate +// ToWire translates a HistoryService_PollMutableState_Result struct into a Thrift-level intermediate // representation. This intermediate representation may be serialized // into bytes using a ThriftRW protocol implementation. // @@ -20622,14 +20432,22 @@ type HistoryService_PurgeDLQMessages_Result struct { // if err := binaryProtocol.Encode(x, writer); err != nil { // return err // } -func (v *HistoryService_PurgeDLQMessages_Result) ToWire() (wire.Value, error) { +func (v *HistoryService_PollMutableState_Result) ToWire() (wire.Value, error) { var ( - fields [5]wire.Field + fields [8]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.BadRequestError != nil { w, err = v.BadRequestError.ToWire() if err != nil { @@ -20646,43 +20464,65 @@ func (v *HistoryService_PurgeDLQMessages_Result) ToWire() (wire.Value, error) { fields[i] = wire.Field{ID: 2, Value: w} i++ } - if v.ServiceBusyError != nil { - w, err = v.ServiceBusyError.ToWire() + 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.EntityNotExistError != nil { - w, err = v.EntityNotExistError.ToWire() + if v.ShardOwnershipLostError != nil { + w, err = v.ShardOwnershipLostError.ToWire() if err != nil { return w, err } fields[i] = wire.Field{ID: 4, Value: w} i++ } - if v.ShardOwnershipLostError != nil { - w, err = v.ShardOwnershipLostError.ToWire() + if v.LimitExceededError != nil { + w, err = v.LimitExceededError.ToWire() if err != nil { return w, err } fields[i] = wire.Field{ID: 5, Value: w} i++ } + if v.ServiceBusyError != nil { + w, err = v.ServiceBusyError.ToWire() + if err != nil { + return w, err + } + fields[i] = wire.Field{ID: 6, Value: w} + i++ + } + if v.CurrentBranchChangedError != nil { + w, err = v.CurrentBranchChangedError.ToWire() + if err != nil { + return w, err + } + fields[i] = wire.Field{ID: 7, Value: w} + i++ + } - if i > 1 { - return wire.Value{}, fmt.Errorf("HistoryService_PurgeDLQMessages_Result should have at most one field: got %v fields", i) + if i != 1 { + return wire.Value{}, fmt.Errorf("HistoryService_PollMutableState_Result should have exactly one field: got %v fields", i) } return wire.NewValueStruct(wire.Struct{Fields: fields[:i]}), nil } -// FromWire deserializes a HistoryService_PurgeDLQMessages_Result struct from its Thrift-level +func _PollMutableStateResponse_Read(w wire.Value) (*PollMutableStateResponse, error) { + var v PollMutableStateResponse + err := v.FromWire(w) + return &v, err +} + +// FromWire deserializes a HistoryService_PollMutableState_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 HistoryService_PurgeDLQMessages_Result struct +// An error is returned if we were unable to build a HistoryService_PollMutableState_Result struct // from the provided intermediate representation. // // x, err := binaryProtocol.Decode(reader, wire.TStruct) @@ -20690,16 +20530,24 @@ func (v *HistoryService_PurgeDLQMessages_Result) ToWire() (wire.Value, error) { // return nil, err // } // -// var v HistoryService_PurgeDLQMessages_Result +// var v HistoryService_PollMutableState_Result // if err := v.FromWire(x); err != nil { // return nil, err // } // return &v, nil -func (v *HistoryService_PurgeDLQMessages_Result) FromWire(w wire.Value) error { +func (v *HistoryService_PollMutableState_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 = _PollMutableStateResponse_Read(field.Value) + if err != nil { + return err + } + + } case 1: if field.Value.Type() == wire.TStruct { v.BadRequestError, err = _BadRequestError_Read(field.Value) @@ -20718,7 +20566,7 @@ func (v *HistoryService_PurgeDLQMessages_Result) FromWire(w wire.Value) error { } case 3: if field.Value.Type() == wire.TStruct { - v.ServiceBusyError, err = _ServiceBusyError_Read(field.Value) + v.EntityNotExistError, err = _EntityNotExistsError_Read(field.Value) if err != nil { return err } @@ -20726,7 +20574,7 @@ func (v *HistoryService_PurgeDLQMessages_Result) FromWire(w wire.Value) error { } case 4: if field.Value.Type() == wire.TStruct { - v.EntityNotExistError, err = _EntityNotExistsError_Read(field.Value) + v.ShardOwnershipLostError, err = _ShardOwnershipLostError_Read(field.Value) if err != nil { return err } @@ -20734,7 +20582,23 @@ func (v *HistoryService_PurgeDLQMessages_Result) FromWire(w wire.Value) error { } case 5: if field.Value.Type() == wire.TStruct { - v.ShardOwnershipLostError, err = _ShardOwnershipLostError_Read(field.Value) + v.LimitExceededError, err = _LimitExceededError_Read(field.Value) + if err != nil { + return err + } + + } + case 6: + if field.Value.Type() == wire.TStruct { + v.ServiceBusyError, err = _ServiceBusyError_Read(field.Value) + if err != nil { + return err + } + + } + case 7: + if field.Value.Type() == wire.TStruct { + v.CurrentBranchChangedError, err = _CurrentBranchChangedError_Read(field.Value) if err != nil { return err } @@ -20744,13 +20608,13 @@ func (v *HistoryService_PurgeDLQMessages_Result) FromWire(w wire.Value) error { } count := 0 - if v.BadRequestError != nil { + if v.Success != nil { count++ } - if v.InternalServiceError != nil { + if v.BadRequestError != nil { count++ } - if v.ServiceBusyError != nil { + if v.InternalServiceError != nil { count++ } if v.EntityNotExistError != nil { @@ -20759,22 +20623,35 @@ func (v *HistoryService_PurgeDLQMessages_Result) FromWire(w wire.Value) error { if v.ShardOwnershipLostError != nil { count++ } - if count > 1 { - return fmt.Errorf("HistoryService_PurgeDLQMessages_Result should have at most one field: got %v fields", count) + if v.LimitExceededError != nil { + count++ + } + if v.ServiceBusyError != nil { + count++ + } + if v.CurrentBranchChangedError != nil { + count++ + } + if count != 1 { + return fmt.Errorf("HistoryService_PollMutableState_Result should have exactly one field: got %v fields", count) } return nil } -// String returns a readable string representation of a HistoryService_PurgeDLQMessages_Result +// String returns a readable string representation of a HistoryService_PollMutableState_Result // struct. -func (v *HistoryService_PurgeDLQMessages_Result) String() string { +func (v *HistoryService_PollMutableState_Result) String() string { if v == nil { return "" } - var fields [5]string + var fields [8]string i := 0 + if v.Success != nil { + fields[i] = fmt.Sprintf("Success: %v", v.Success) + i++ + } if v.BadRequestError != nil { fields[i] = fmt.Sprintf("BadRequestError: %v", v.BadRequestError) i++ @@ -20783,10 +20660,6 @@ func (v *HistoryService_PurgeDLQMessages_Result) String() string { fields[i] = fmt.Sprintf("InternalServiceError: %v", v.InternalServiceError) 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++ @@ -20795,27 +20668,39 @@ func (v *HistoryService_PurgeDLQMessages_Result) String() string { fields[i] = fmt.Sprintf("ShardOwnershipLostError: %v", v.ShardOwnershipLostError) i++ } + if v.LimitExceededError != nil { + fields[i] = fmt.Sprintf("LimitExceededError: %v", v.LimitExceededError) + i++ + } + if v.ServiceBusyError != nil { + fields[i] = fmt.Sprintf("ServiceBusyError: %v", v.ServiceBusyError) + i++ + } + if v.CurrentBranchChangedError != nil { + fields[i] = fmt.Sprintf("CurrentBranchChangedError: %v", v.CurrentBranchChangedError) + i++ + } - return fmt.Sprintf("HistoryService_PurgeDLQMessages_Result{%v}", strings.Join(fields[:i], ", ")) + return fmt.Sprintf("HistoryService_PollMutableState_Result{%v}", strings.Join(fields[:i], ", ")) } -// Equals returns true if all the fields of this HistoryService_PurgeDLQMessages_Result match the -// provided HistoryService_PurgeDLQMessages_Result. +// Equals returns true if all the fields of this HistoryService_PollMutableState_Result match the +// provided HistoryService_PollMutableState_Result. // // This function performs a deep comparison. -func (v *HistoryService_PurgeDLQMessages_Result) Equals(rhs *HistoryService_PurgeDLQMessages_Result) bool { +func (v *HistoryService_PollMutableState_Result) Equals(rhs *HistoryService_PollMutableState_Result) bool { if v == nil { return rhs == nil } else if rhs == nil { return false } - if !((v.BadRequestError == nil && rhs.BadRequestError == nil) || (v.BadRequestError != nil && rhs.BadRequestError != nil && v.BadRequestError.Equals(rhs.BadRequestError))) { + if !((v.Success == nil && rhs.Success == nil) || (v.Success != nil && rhs.Success != nil && v.Success.Equals(rhs.Success))) { return false } - if !((v.InternalServiceError == nil && rhs.InternalServiceError == nil) || (v.InternalServiceError != nil && rhs.InternalServiceError != nil && v.InternalServiceError.Equals(rhs.InternalServiceError))) { + if !((v.BadRequestError == nil && rhs.BadRequestError == nil) || (v.BadRequestError != nil && rhs.BadRequestError != nil && v.BadRequestError.Equals(rhs.BadRequestError))) { return false } - if !((v.ServiceBusyError == nil && rhs.ServiceBusyError == nil) || (v.ServiceBusyError != nil && rhs.ServiceBusyError != nil && v.ServiceBusyError.Equals(rhs.ServiceBusyError))) { + if !((v.InternalServiceError == nil && rhs.InternalServiceError == nil) || (v.InternalServiceError != nil && rhs.InternalServiceError != nil && v.InternalServiceError.Equals(rhs.InternalServiceError))) { return false } if !((v.EntityNotExistError == nil && rhs.EntityNotExistError == nil) || (v.EntityNotExistError != nil && rhs.EntityNotExistError != nil && v.EntityNotExistError.Equals(rhs.EntityNotExistError))) { @@ -20824,37 +20709,70 @@ func (v *HistoryService_PurgeDLQMessages_Result) Equals(rhs *HistoryService_Purg if !((v.ShardOwnershipLostError == nil && rhs.ShardOwnershipLostError == nil) || (v.ShardOwnershipLostError != nil && rhs.ShardOwnershipLostError != nil && v.ShardOwnershipLostError.Equals(rhs.ShardOwnershipLostError))) { return false } + if !((v.LimitExceededError == nil && rhs.LimitExceededError == nil) || (v.LimitExceededError != nil && rhs.LimitExceededError != nil && v.LimitExceededError.Equals(rhs.LimitExceededError))) { + return false + } + if !((v.ServiceBusyError == nil && rhs.ServiceBusyError == nil) || (v.ServiceBusyError != nil && rhs.ServiceBusyError != nil && v.ServiceBusyError.Equals(rhs.ServiceBusyError))) { + return false + } + if !((v.CurrentBranchChangedError == nil && rhs.CurrentBranchChangedError == nil) || (v.CurrentBranchChangedError != nil && rhs.CurrentBranchChangedError != nil && v.CurrentBranchChangedError.Equals(rhs.CurrentBranchChangedError))) { + return false + } return true } // MarshalLogObject implements zapcore.ObjectMarshaler, enabling -// fast logging of HistoryService_PurgeDLQMessages_Result. -func (v *HistoryService_PurgeDLQMessages_Result) MarshalLogObject(enc zapcore.ObjectEncoder) (err error) { +// fast logging of HistoryService_PollMutableState_Result. +func (v *HistoryService_PollMutableState_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.BadRequestError != nil { err = multierr.Append(err, enc.AddObject("badRequestError", v.BadRequestError)) } if v.InternalServiceError != nil { err = multierr.Append(err, enc.AddObject("internalServiceError", v.InternalServiceError)) } - 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.ShardOwnershipLostError != nil { err = multierr.Append(err, enc.AddObject("shardOwnershipLostError", v.ShardOwnershipLostError)) } + if v.LimitExceededError != nil { + err = multierr.Append(err, enc.AddObject("limitExceededError", v.LimitExceededError)) + } + if v.ServiceBusyError != nil { + err = multierr.Append(err, enc.AddObject("serviceBusyError", v.ServiceBusyError)) + } + if v.CurrentBranchChangedError != nil { + err = multierr.Append(err, enc.AddObject("currentBranchChangedError", v.CurrentBranchChangedError)) + } return err } +// GetSuccess returns the value of Success if it is set or its +// zero value if it is unset. +func (v *HistoryService_PollMutableState_Result) GetSuccess() (o *PollMutableStateResponse) { + if v != nil && v.Success != nil { + return v.Success + } + + return +} + +// IsSetSuccess returns true if Success is not nil. +func (v *HistoryService_PollMutableState_Result) IsSetSuccess() bool { + return v != nil && v.Success != nil +} + // GetBadRequestError returns the value of BadRequestError if it is set or its // zero value if it is unset. -func (v *HistoryService_PurgeDLQMessages_Result) GetBadRequestError() (o *shared.BadRequestError) { +func (v *HistoryService_PollMutableState_Result) GetBadRequestError() (o *shared.BadRequestError) { if v != nil && v.BadRequestError != nil { return v.BadRequestError } @@ -20863,13 +20781,13 @@ func (v *HistoryService_PurgeDLQMessages_Result) GetBadRequestError() (o *shared } // IsSetBadRequestError returns true if BadRequestError is not nil. -func (v *HistoryService_PurgeDLQMessages_Result) IsSetBadRequestError() bool { +func (v *HistoryService_PollMutableState_Result) IsSetBadRequestError() bool { return v != nil && v.BadRequestError != nil } // GetInternalServiceError returns the value of InternalServiceError if it is set or its // zero value if it is unset. -func (v *HistoryService_PurgeDLQMessages_Result) GetInternalServiceError() (o *shared.InternalServiceError) { +func (v *HistoryService_PollMutableState_Result) GetInternalServiceError() (o *shared.InternalServiceError) { if v != nil && v.InternalServiceError != nil { return v.InternalServiceError } @@ -20878,28 +20796,13 @@ func (v *HistoryService_PurgeDLQMessages_Result) GetInternalServiceError() (o *s } // IsSetInternalServiceError returns true if InternalServiceError is not nil. -func (v *HistoryService_PurgeDLQMessages_Result) IsSetInternalServiceError() bool { +func (v *HistoryService_PollMutableState_Result) IsSetInternalServiceError() bool { return v != nil && v.InternalServiceError != nil } -// GetServiceBusyError returns the value of ServiceBusyError if it is set or its -// zero value if it is unset. -func (v *HistoryService_PurgeDLQMessages_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 *HistoryService_PurgeDLQMessages_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 *HistoryService_PurgeDLQMessages_Result) GetEntityNotExistError() (o *shared.EntityNotExistsError) { +func (v *HistoryService_PollMutableState_Result) GetEntityNotExistError() (o *shared.EntityNotExistsError) { if v != nil && v.EntityNotExistError != nil { return v.EntityNotExistError } @@ -20908,13 +20811,13 @@ func (v *HistoryService_PurgeDLQMessages_Result) GetEntityNotExistError() (o *sh } // IsSetEntityNotExistError returns true if EntityNotExistError is not nil. -func (v *HistoryService_PurgeDLQMessages_Result) IsSetEntityNotExistError() bool { +func (v *HistoryService_PollMutableState_Result) IsSetEntityNotExistError() bool { return v != nil && v.EntityNotExistError != nil } // GetShardOwnershipLostError returns the value of ShardOwnershipLostError if it is set or its // zero value if it is unset. -func (v *HistoryService_PurgeDLQMessages_Result) GetShardOwnershipLostError() (o *ShardOwnershipLostError) { +func (v *HistoryService_PollMutableState_Result) GetShardOwnershipLostError() (o *ShardOwnershipLostError) { if v != nil && v.ShardOwnershipLostError != nil { return v.ShardOwnershipLostError } @@ -20923,33 +20826,78 @@ func (v *HistoryService_PurgeDLQMessages_Result) GetShardOwnershipLostError() (o } // IsSetShardOwnershipLostError returns true if ShardOwnershipLostError is not nil. -func (v *HistoryService_PurgeDLQMessages_Result) IsSetShardOwnershipLostError() bool { +func (v *HistoryService_PollMutableState_Result) IsSetShardOwnershipLostError() bool { return v != nil && v.ShardOwnershipLostError != nil } +// GetLimitExceededError returns the value of LimitExceededError if it is set or its +// zero value if it is unset. +func (v *HistoryService_PollMutableState_Result) GetLimitExceededError() (o *shared.LimitExceededError) { + if v != nil && v.LimitExceededError != nil { + return v.LimitExceededError + } + + return +} + +// IsSetLimitExceededError returns true if LimitExceededError is not nil. +func (v *HistoryService_PollMutableState_Result) IsSetLimitExceededError() bool { + return v != nil && v.LimitExceededError != nil +} + +// GetServiceBusyError returns the value of ServiceBusyError if it is set or its +// zero value if it is unset. +func (v *HistoryService_PollMutableState_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 *HistoryService_PollMutableState_Result) IsSetServiceBusyError() bool { + return v != nil && v.ServiceBusyError != nil +} + +// GetCurrentBranchChangedError returns the value of CurrentBranchChangedError if it is set or its +// zero value if it is unset. +func (v *HistoryService_PollMutableState_Result) GetCurrentBranchChangedError() (o *shared.CurrentBranchChangedError) { + if v != nil && v.CurrentBranchChangedError != nil { + return v.CurrentBranchChangedError + } + + return +} + +// IsSetCurrentBranchChangedError returns true if CurrentBranchChangedError is not nil. +func (v *HistoryService_PollMutableState_Result) IsSetCurrentBranchChangedError() bool { + return v != nil && v.CurrentBranchChangedError != 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 "PurgeDLQMessages" for this struct. -func (v *HistoryService_PurgeDLQMessages_Result) MethodName() string { - return "PurgeDLQMessages" +// This will always be "PollMutableState" for this struct. +func (v *HistoryService_PollMutableState_Result) MethodName() string { + return "PollMutableState" } // EnvelopeType returns the kind of value inside this struct. // // This will always be Reply for this struct. -func (v *HistoryService_PurgeDLQMessages_Result) EnvelopeType() wire.EnvelopeType { +func (v *HistoryService_PollMutableState_Result) EnvelopeType() wire.EnvelopeType { return wire.Reply } -// HistoryService_QueryWorkflow_Args represents the arguments for the HistoryService.QueryWorkflow function. +// HistoryService_PurgeDLQMessages_Args represents the arguments for the HistoryService.PurgeDLQMessages function. // -// The arguments for QueryWorkflow are sent and received over the wire as this struct. -type HistoryService_QueryWorkflow_Args struct { - QueryRequest *QueryWorkflowRequest `json:"queryRequest,omitempty"` +// The arguments for PurgeDLQMessages are sent and received over the wire as this struct. +type HistoryService_PurgeDLQMessages_Args struct { + Request *replicator.PurgeDLQMessagesRequest `json:"request,omitempty"` } -// ToWire translates a HistoryService_QueryWorkflow_Args struct into a Thrift-level intermediate +// ToWire translates a HistoryService_PurgeDLQMessages_Args struct into a Thrift-level intermediate // representation. This intermediate representation may be serialized // into bytes using a ThriftRW protocol implementation. // @@ -20964,7 +20912,7 @@ type HistoryService_QueryWorkflow_Args struct { // if err := binaryProtocol.Encode(x, writer); err != nil { // return err // } -func (v *HistoryService_QueryWorkflow_Args) ToWire() (wire.Value, error) { +func (v *HistoryService_PurgeDLQMessages_Args) ToWire() (wire.Value, error) { var ( fields [1]wire.Field i int = 0 @@ -20972,8 +20920,8 @@ func (v *HistoryService_QueryWorkflow_Args) ToWire() (wire.Value, error) { err error ) - if v.QueryRequest != nil { - w, err = v.QueryRequest.ToWire() + if v.Request != nil { + w, err = v.Request.ToWire() if err != nil { return w, err } @@ -20984,17 +20932,17 @@ func (v *HistoryService_QueryWorkflow_Args) ToWire() (wire.Value, error) { return wire.NewValueStruct(wire.Struct{Fields: fields[:i]}), nil } -func _QueryWorkflowRequest_1_Read(w wire.Value) (*QueryWorkflowRequest, error) { - var v QueryWorkflowRequest +func _PurgeDLQMessagesRequest_Read(w wire.Value) (*replicator.PurgeDLQMessagesRequest, error) { + var v replicator.PurgeDLQMessagesRequest err := v.FromWire(w) return &v, err } -// FromWire deserializes a HistoryService_QueryWorkflow_Args struct from its Thrift-level +// FromWire deserializes a HistoryService_PurgeDLQMessages_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 HistoryService_QueryWorkflow_Args struct +// An error is returned if we were unable to build a HistoryService_PurgeDLQMessages_Args struct // from the provided intermediate representation. // // x, err := binaryProtocol.Decode(reader, wire.TStruct) @@ -21002,19 +20950,19 @@ func _QueryWorkflowRequest_1_Read(w wire.Value) (*QueryWorkflowRequest, error) { // return nil, err // } // -// var v HistoryService_QueryWorkflow_Args +// var v HistoryService_PurgeDLQMessages_Args // if err := v.FromWire(x); err != nil { // return nil, err // } // return &v, nil -func (v *HistoryService_QueryWorkflow_Args) FromWire(w wire.Value) error { +func (v *HistoryService_PurgeDLQMessages_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.QueryRequest, err = _QueryWorkflowRequest_1_Read(field.Value) + v.Request, err = _PurgeDLQMessagesRequest_Read(field.Value) if err != nil { return err } @@ -21026,34 +20974,34 @@ func (v *HistoryService_QueryWorkflow_Args) FromWire(w wire.Value) error { return nil } -// String returns a readable string representation of a HistoryService_QueryWorkflow_Args +// String returns a readable string representation of a HistoryService_PurgeDLQMessages_Args // struct. -func (v *HistoryService_QueryWorkflow_Args) String() string { +func (v *HistoryService_PurgeDLQMessages_Args) String() string { if v == nil { return "" } var fields [1]string i := 0 - if v.QueryRequest != nil { - fields[i] = fmt.Sprintf("QueryRequest: %v", v.QueryRequest) + if v.Request != nil { + fields[i] = fmt.Sprintf("Request: %v", v.Request) i++ } - return fmt.Sprintf("HistoryService_QueryWorkflow_Args{%v}", strings.Join(fields[:i], ", ")) + return fmt.Sprintf("HistoryService_PurgeDLQMessages_Args{%v}", strings.Join(fields[:i], ", ")) } -// Equals returns true if all the fields of this HistoryService_QueryWorkflow_Args match the -// provided HistoryService_QueryWorkflow_Args. +// Equals returns true if all the fields of this HistoryService_PurgeDLQMessages_Args match the +// provided HistoryService_PurgeDLQMessages_Args. // // This function performs a deep comparison. -func (v *HistoryService_QueryWorkflow_Args) Equals(rhs *HistoryService_QueryWorkflow_Args) bool { +func (v *HistoryService_PurgeDLQMessages_Args) Equals(rhs *HistoryService_PurgeDLQMessages_Args) bool { if v == nil { return rhs == nil } else if rhs == nil { return false } - if !((v.QueryRequest == nil && rhs.QueryRequest == nil) || (v.QueryRequest != nil && rhs.QueryRequest != nil && v.QueryRequest.Equals(rhs.QueryRequest))) { + if !((v.Request == nil && rhs.Request == nil) || (v.Request != nil && rhs.Request != nil && v.Request.Equals(rhs.Request))) { return false } @@ -21061,168 +21009,155 @@ func (v *HistoryService_QueryWorkflow_Args) Equals(rhs *HistoryService_QueryWork } // MarshalLogObject implements zapcore.ObjectMarshaler, enabling -// fast logging of HistoryService_QueryWorkflow_Args. -func (v *HistoryService_QueryWorkflow_Args) MarshalLogObject(enc zapcore.ObjectEncoder) (err error) { +// fast logging of HistoryService_PurgeDLQMessages_Args. +func (v *HistoryService_PurgeDLQMessages_Args) MarshalLogObject(enc zapcore.ObjectEncoder) (err error) { if v == nil { return nil } - if v.QueryRequest != nil { - err = multierr.Append(err, enc.AddObject("queryRequest", v.QueryRequest)) + if v.Request != nil { + err = multierr.Append(err, enc.AddObject("request", v.Request)) } return err } -// GetQueryRequest returns the value of QueryRequest if it is set or its +// GetRequest returns the value of Request if it is set or its // zero value if it is unset. -func (v *HistoryService_QueryWorkflow_Args) GetQueryRequest() (o *QueryWorkflowRequest) { - if v != nil && v.QueryRequest != nil { - return v.QueryRequest +func (v *HistoryService_PurgeDLQMessages_Args) GetRequest() (o *replicator.PurgeDLQMessagesRequest) { + if v != nil && v.Request != nil { + return v.Request } return } -// IsSetQueryRequest returns true if QueryRequest is not nil. -func (v *HistoryService_QueryWorkflow_Args) IsSetQueryRequest() bool { - return v != nil && v.QueryRequest != nil +// IsSetRequest returns true if Request is not nil. +func (v *HistoryService_PurgeDLQMessages_Args) IsSetRequest() bool { + return v != nil && v.Request != 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 "QueryWorkflow" for this struct. -func (v *HistoryService_QueryWorkflow_Args) MethodName() string { - return "QueryWorkflow" +// This will always be "PurgeDLQMessages" for this struct. +func (v *HistoryService_PurgeDLQMessages_Args) MethodName() string { + return "PurgeDLQMessages" } // EnvelopeType returns the kind of value inside this struct. // // This will always be Call for this struct. -func (v *HistoryService_QueryWorkflow_Args) EnvelopeType() wire.EnvelopeType { +func (v *HistoryService_PurgeDLQMessages_Args) EnvelopeType() wire.EnvelopeType { return wire.Call } -// HistoryService_QueryWorkflow_Helper provides functions that aid in handling the -// parameters and return values of the HistoryService.QueryWorkflow +// HistoryService_PurgeDLQMessages_Helper provides functions that aid in handling the +// parameters and return values of the HistoryService.PurgeDLQMessages // function. -var HistoryService_QueryWorkflow_Helper = struct { - // Args accepts the parameters of QueryWorkflow in-order and returns +var HistoryService_PurgeDLQMessages_Helper = struct { + // Args accepts the parameters of PurgeDLQMessages in-order and returns // the arguments struct for the function. Args func( - queryRequest *QueryWorkflowRequest, - ) *HistoryService_QueryWorkflow_Args + request *replicator.PurgeDLQMessagesRequest, + ) *HistoryService_PurgeDLQMessages_Args // IsException returns true if the given error can be thrown - // by QueryWorkflow. + // by PurgeDLQMessages. // - // An error can be thrown by QueryWorkflow only if the + // An error can be thrown by PurgeDLQMessages 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 QueryWorkflow - // given its return value and error. + // WrapResponse returns the result struct for PurgeDLQMessages + // given the error returned by it. The provided error may + // be nil if PurgeDLQMessages did not fail. // - // This allows mapping values and errors returned by - // QueryWorkflow into a serializable result struct. - // WrapResponse returns a non-nil error if the provided - // error cannot be thrown by QueryWorkflow + // This allows mapping errors returned by PurgeDLQMessages into a + // serializable result struct. WrapResponse returns a + // non-nil error if the provided error cannot be thrown by + // PurgeDLQMessages // - // value, err := QueryWorkflow(args) - // result, err := HistoryService_QueryWorkflow_Helper.WrapResponse(value, err) + // err := PurgeDLQMessages(args) + // result, err := HistoryService_PurgeDLQMessages_Helper.WrapResponse(err) // if err != nil { - // return fmt.Errorf("unexpected error from QueryWorkflow: %v", err) + // return fmt.Errorf("unexpected error from PurgeDLQMessages: %v", err) // } // serialize(result) - WrapResponse func(*QueryWorkflowResponse, error) (*HistoryService_QueryWorkflow_Result, error) + WrapResponse func(error) (*HistoryService_PurgeDLQMessages_Result, error) - // UnwrapResponse takes the result struct for QueryWorkflow - // and returns the value or error returned by it. + // UnwrapResponse takes the result struct for PurgeDLQMessages + // and returns the erorr returned by it (if any). // - // The error is non-nil only if QueryWorkflow threw an + // The error is non-nil only if PurgeDLQMessages threw an // exception. // // result := deserialize(bytes) - // value, err := HistoryService_QueryWorkflow_Helper.UnwrapResponse(result) - UnwrapResponse func(*HistoryService_QueryWorkflow_Result) (*QueryWorkflowResponse, error) + // err := HistoryService_PurgeDLQMessages_Helper.UnwrapResponse(result) + UnwrapResponse func(*HistoryService_PurgeDLQMessages_Result) error }{} func init() { - HistoryService_QueryWorkflow_Helper.Args = func( - queryRequest *QueryWorkflowRequest, - ) *HistoryService_QueryWorkflow_Args { - return &HistoryService_QueryWorkflow_Args{ - QueryRequest: queryRequest, + HistoryService_PurgeDLQMessages_Helper.Args = func( + request *replicator.PurgeDLQMessagesRequest, + ) *HistoryService_PurgeDLQMessages_Args { + return &HistoryService_PurgeDLQMessages_Args{ + Request: request, } } - HistoryService_QueryWorkflow_Helper.IsException = func(err error) bool { + HistoryService_PurgeDLQMessages_Helper.IsException = func(err error) bool { switch err.(type) { case *shared.BadRequestError: return true case *shared.InternalServiceError: return true - case *shared.EntityNotExistsError: - return true - case *shared.QueryFailedError: - return true - case *shared.LimitExceededError: - return true case *shared.ServiceBusyError: return true - case *shared.ClientVersionNotSupportedError: + case *shared.EntityNotExistsError: + return true + case *ShardOwnershipLostError: return true default: return false } } - HistoryService_QueryWorkflow_Helper.WrapResponse = func(success *QueryWorkflowResponse, err error) (*HistoryService_QueryWorkflow_Result, error) { + HistoryService_PurgeDLQMessages_Helper.WrapResponse = func(err error) (*HistoryService_PurgeDLQMessages_Result, error) { if err == nil { - return &HistoryService_QueryWorkflow_Result{Success: success}, nil + return &HistoryService_PurgeDLQMessages_Result{}, nil } switch e := err.(type) { case *shared.BadRequestError: if e == nil { - return nil, errors.New("WrapResponse received non-nil error type with nil value for HistoryService_QueryWorkflow_Result.BadRequestError") + return nil, errors.New("WrapResponse received non-nil error type with nil value for HistoryService_PurgeDLQMessages_Result.BadRequestError") } - return &HistoryService_QueryWorkflow_Result{BadRequestError: e}, nil + return &HistoryService_PurgeDLQMessages_Result{BadRequestError: e}, nil case *shared.InternalServiceError: if e == nil { - return nil, errors.New("WrapResponse received non-nil error type with nil value for HistoryService_QueryWorkflow_Result.InternalServiceError") - } - return &HistoryService_QueryWorkflow_Result{InternalServiceError: e}, nil - case *shared.EntityNotExistsError: - if e == nil { - return nil, errors.New("WrapResponse received non-nil error type with nil value for HistoryService_QueryWorkflow_Result.EntityNotExistError") - } - return &HistoryService_QueryWorkflow_Result{EntityNotExistError: e}, nil - case *shared.QueryFailedError: - if e == nil { - return nil, errors.New("WrapResponse received non-nil error type with nil value for HistoryService_QueryWorkflow_Result.QueryFailedError") + return nil, errors.New("WrapResponse received non-nil error type with nil value for HistoryService_PurgeDLQMessages_Result.InternalServiceError") } - return &HistoryService_QueryWorkflow_Result{QueryFailedError: e}, nil - case *shared.LimitExceededError: + return &HistoryService_PurgeDLQMessages_Result{InternalServiceError: e}, nil + case *shared.ServiceBusyError: if e == nil { - return nil, errors.New("WrapResponse received non-nil error type with nil value for HistoryService_QueryWorkflow_Result.LimitExceededError") + return nil, errors.New("WrapResponse received non-nil error type with nil value for HistoryService_PurgeDLQMessages_Result.ServiceBusyError") } - return &HistoryService_QueryWorkflow_Result{LimitExceededError: e}, nil - case *shared.ServiceBusyError: + return &HistoryService_PurgeDLQMessages_Result{ServiceBusyError: e}, nil + case *shared.EntityNotExistsError: if e == nil { - return nil, errors.New("WrapResponse received non-nil error type with nil value for HistoryService_QueryWorkflow_Result.ServiceBusyError") + return nil, errors.New("WrapResponse received non-nil error type with nil value for HistoryService_PurgeDLQMessages_Result.EntityNotExistError") } - return &HistoryService_QueryWorkflow_Result{ServiceBusyError: e}, nil - case *shared.ClientVersionNotSupportedError: + return &HistoryService_PurgeDLQMessages_Result{EntityNotExistError: e}, nil + case *ShardOwnershipLostError: if e == nil { - return nil, errors.New("WrapResponse received non-nil error type with nil value for HistoryService_QueryWorkflow_Result.ClientVersionNotSupportedError") + return nil, errors.New("WrapResponse received non-nil error type with nil value for HistoryService_PurgeDLQMessages_Result.ShardOwnershipLostError") } - return &HistoryService_QueryWorkflow_Result{ClientVersionNotSupportedError: e}, nil + return &HistoryService_PurgeDLQMessages_Result{ShardOwnershipLostError: e}, nil } return nil, err } - HistoryService_QueryWorkflow_Helper.UnwrapResponse = func(result *HistoryService_QueryWorkflow_Result) (success *QueryWorkflowResponse, err error) { + HistoryService_PurgeDLQMessages_Helper.UnwrapResponse = func(result *HistoryService_PurgeDLQMessages_Result) (err error) { if result.BadRequestError != nil { err = result.BadRequestError return @@ -21231,56 +21166,35 @@ func init() { err = result.InternalServiceError return } - if result.EntityNotExistError != nil { - err = result.EntityNotExistError - return - } - if result.QueryFailedError != nil { - err = result.QueryFailedError - return - } - if result.LimitExceededError != nil { - err = result.LimitExceededError - return - } if result.ServiceBusyError != nil { err = result.ServiceBusyError return } - if result.ClientVersionNotSupportedError != nil { - err = result.ClientVersionNotSupportedError + if result.EntityNotExistError != nil { + err = result.EntityNotExistError return } - - if result.Success != nil { - success = result.Success + if result.ShardOwnershipLostError != nil { + err = result.ShardOwnershipLostError return } - - err = errors.New("expected a non-void result") return } } -// HistoryService_QueryWorkflow_Result represents the result of a HistoryService.QueryWorkflow function call. -// -// The result of a QueryWorkflow execution is sent and received over the wire as this struct. +// HistoryService_PurgeDLQMessages_Result represents the result of a HistoryService.PurgeDLQMessages function call. // -// Success is set only if the function did not throw an exception. -type HistoryService_QueryWorkflow_Result struct { - // Value returned by QueryWorkflow after a successful execution. - Success *QueryWorkflowResponse `json:"success,omitempty"` - BadRequestError *shared.BadRequestError `json:"badRequestError,omitempty"` - InternalServiceError *shared.InternalServiceError `json:"internalServiceError,omitempty"` - EntityNotExistError *shared.EntityNotExistsError `json:"entityNotExistError,omitempty"` - QueryFailedError *shared.QueryFailedError `json:"queryFailedError,omitempty"` - LimitExceededError *shared.LimitExceededError `json:"limitExceededError,omitempty"` - ServiceBusyError *shared.ServiceBusyError `json:"serviceBusyError,omitempty"` - ClientVersionNotSupportedError *shared.ClientVersionNotSupportedError `json:"clientVersionNotSupportedError,omitempty"` +// The result of a PurgeDLQMessages execution is sent and received over the wire as this struct. +type HistoryService_PurgeDLQMessages_Result struct { + BadRequestError *shared.BadRequestError `json:"badRequestError,omitempty"` + InternalServiceError *shared.InternalServiceError `json:"internalServiceError,omitempty"` + ServiceBusyError *shared.ServiceBusyError `json:"serviceBusyError,omitempty"` + EntityNotExistError *shared.EntityNotExistsError `json:"entityNotExistError,omitempty"` + ShardOwnershipLostError *ShardOwnershipLostError `json:"shardOwnershipLostError,omitempty"` } -// ToWire translates a HistoryService_QueryWorkflow_Result struct into a Thrift-level intermediate +// ToWire translates a HistoryService_PurgeDLQMessages_Result struct into a Thrift-level intermediate // representation. This intermediate representation may be serialized // into bytes using a ThriftRW protocol implementation. // @@ -21295,22 +21209,14 @@ type HistoryService_QueryWorkflow_Result struct { // if err := binaryProtocol.Encode(x, writer); err != nil { // return err // } -func (v *HistoryService_QueryWorkflow_Result) ToWire() (wire.Value, error) { +func (v *HistoryService_PurgeDLQMessages_Result) ToWire() (wire.Value, error) { var ( - fields [8]wire.Field + fields [5]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.BadRequestError != nil { w, err = v.BadRequestError.ToWire() if err != nil { @@ -21327,71 +21233,43 @@ func (v *HistoryService_QueryWorkflow_Result) ToWire() (wire.Value, error) { fields[i] = wire.Field{ID: 2, Value: w} i++ } - if v.EntityNotExistError != nil { - w, err = v.EntityNotExistError.ToWire() + if v.ServiceBusyError != nil { + w, err = v.ServiceBusyError.ToWire() if err != nil { return w, err } fields[i] = wire.Field{ID: 3, Value: w} i++ } - if v.QueryFailedError != nil { - w, err = v.QueryFailedError.ToWire() + if v.EntityNotExistError != nil { + w, err = v.EntityNotExistError.ToWire() if err != nil { return w, err } fields[i] = wire.Field{ID: 4, Value: w} i++ } - if v.LimitExceededError != nil { - w, err = v.LimitExceededError.ToWire() + if v.ShardOwnershipLostError != nil { + w, err = v.ShardOwnershipLostError.ToWire() if err != nil { return w, err } fields[i] = wire.Field{ID: 5, Value: w} i++ } - if v.ServiceBusyError != nil { - w, err = v.ServiceBusyError.ToWire() - if err != nil { - return w, err - } - fields[i] = wire.Field{ID: 6, Value: w} - i++ - } - if v.ClientVersionNotSupportedError != nil { - w, err = v.ClientVersionNotSupportedError.ToWire() - if err != nil { - return w, err - } - fields[i] = wire.Field{ID: 7, Value: w} - i++ - } - if i != 1 { - return wire.Value{}, fmt.Errorf("HistoryService_QueryWorkflow_Result should have exactly one field: got %v fields", i) + if i > 1 { + return wire.Value{}, fmt.Errorf("HistoryService_PurgeDLQMessages_Result should have at most one field: got %v fields", i) } return wire.NewValueStruct(wire.Struct{Fields: fields[:i]}), nil } -func _QueryWorkflowResponse_1_Read(w wire.Value) (*QueryWorkflowResponse, error) { - var v QueryWorkflowResponse - err := v.FromWire(w) - return &v, err -} - -func _QueryFailedError_Read(w wire.Value) (*shared.QueryFailedError, error) { - var v shared.QueryFailedError - err := v.FromWire(w) - return &v, err -} - -// FromWire deserializes a HistoryService_QueryWorkflow_Result struct from its Thrift-level +// FromWire deserializes a HistoryService_PurgeDLQMessages_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 HistoryService_QueryWorkflow_Result struct +// An error is returned if we were unable to build a HistoryService_PurgeDLQMessages_Result struct // from the provided intermediate representation. // // x, err := binaryProtocol.Decode(reader, wire.TStruct) @@ -21399,24 +21277,16 @@ func _QueryFailedError_Read(w wire.Value) (*shared.QueryFailedError, error) { // return nil, err // } // -// var v HistoryService_QueryWorkflow_Result +// var v HistoryService_PurgeDLQMessages_Result // if err := v.FromWire(x); err != nil { // return nil, err // } // return &v, nil -func (v *HistoryService_QueryWorkflow_Result) FromWire(w wire.Value) error { +func (v *HistoryService_PurgeDLQMessages_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 = _QueryWorkflowResponse_1_Read(field.Value) - if err != nil { - return err - } - - } case 1: if field.Value.Type() == wire.TStruct { v.BadRequestError, err = _BadRequestError_Read(field.Value) @@ -21435,7 +21305,7 @@ func (v *HistoryService_QueryWorkflow_Result) FromWire(w wire.Value) error { } case 3: if field.Value.Type() == wire.TStruct { - v.EntityNotExistError, err = _EntityNotExistsError_Read(field.Value) + v.ServiceBusyError, err = _ServiceBusyError_Read(field.Value) if err != nil { return err } @@ -21443,7 +21313,7 @@ func (v *HistoryService_QueryWorkflow_Result) FromWire(w wire.Value) error { } case 4: if field.Value.Type() == wire.TStruct { - v.QueryFailedError, err = _QueryFailedError_Read(field.Value) + v.EntityNotExistError, err = _EntityNotExistsError_Read(field.Value) if err != nil { return err } @@ -21451,23 +21321,7 @@ func (v *HistoryService_QueryWorkflow_Result) FromWire(w wire.Value) error { } case 5: if field.Value.Type() == wire.TStruct { - v.LimitExceededError, err = _LimitExceededError_Read(field.Value) - if err != nil { - return err - } - - } - case 6: - if field.Value.Type() == wire.TStruct { - v.ServiceBusyError, err = _ServiceBusyError_Read(field.Value) - if err != nil { - return err - } - - } - case 7: - if field.Value.Type() == wire.TStruct { - v.ClientVersionNotSupportedError, err = _ClientVersionNotSupportedError_Read(field.Value) + v.ShardOwnershipLostError, err = _ShardOwnershipLostError_Read(field.Value) if err != nil { return err } @@ -21477,50 +21331,37 @@ func (v *HistoryService_QueryWorkflow_Result) FromWire(w wire.Value) error { } count := 0 - if v.Success != nil { - count++ - } if v.BadRequestError != nil { count++ } if v.InternalServiceError != nil { count++ } - if v.EntityNotExistError != nil { - count++ - } - if v.QueryFailedError != nil { - count++ - } - if v.LimitExceededError != nil { + if v.ServiceBusyError != nil { count++ } - if v.ServiceBusyError != nil { + if v.EntityNotExistError != nil { count++ } - if v.ClientVersionNotSupportedError != nil { + if v.ShardOwnershipLostError != nil { count++ } - if count != 1 { - return fmt.Errorf("HistoryService_QueryWorkflow_Result should have exactly one field: got %v fields", count) + if count > 1 { + return fmt.Errorf("HistoryService_PurgeDLQMessages_Result should have at most one field: got %v fields", count) } return nil } -// String returns a readable string representation of a HistoryService_QueryWorkflow_Result +// String returns a readable string representation of a HistoryService_PurgeDLQMessages_Result // struct. -func (v *HistoryService_QueryWorkflow_Result) String() string { +func (v *HistoryService_PurgeDLQMessages_Result) String() string { if v == nil { return "" } - var fields [8]string + var fields [5]string i := 0 - if v.Success != nil { - fields[i] = fmt.Sprintf("Success: %v", v.Success) - i++ - } if v.BadRequestError != nil { fields[i] = fmt.Sprintf("BadRequestError: %v", v.BadRequestError) i++ @@ -21529,62 +21370,45 @@ func (v *HistoryService_QueryWorkflow_Result) String() string { fields[i] = fmt.Sprintf("InternalServiceError: %v", v.InternalServiceError) i++ } - if v.EntityNotExistError != nil { - fields[i] = fmt.Sprintf("EntityNotExistError: %v", v.EntityNotExistError) - i++ - } - if v.QueryFailedError != nil { - fields[i] = fmt.Sprintf("QueryFailedError: %v", v.QueryFailedError) - i++ - } - if v.LimitExceededError != nil { - fields[i] = fmt.Sprintf("LimitExceededError: %v", v.LimitExceededError) - i++ - } if v.ServiceBusyError != nil { fields[i] = fmt.Sprintf("ServiceBusyError: %v", v.ServiceBusyError) i++ } - if v.ClientVersionNotSupportedError != nil { - fields[i] = fmt.Sprintf("ClientVersionNotSupportedError: %v", v.ClientVersionNotSupportedError) + if v.EntityNotExistError != nil { + fields[i] = fmt.Sprintf("EntityNotExistError: %v", v.EntityNotExistError) + i++ + } + if v.ShardOwnershipLostError != nil { + fields[i] = fmt.Sprintf("ShardOwnershipLostError: %v", v.ShardOwnershipLostError) i++ } - return fmt.Sprintf("HistoryService_QueryWorkflow_Result{%v}", strings.Join(fields[:i], ", ")) + return fmt.Sprintf("HistoryService_PurgeDLQMessages_Result{%v}", strings.Join(fields[:i], ", ")) } -// Equals returns true if all the fields of this HistoryService_QueryWorkflow_Result match the -// provided HistoryService_QueryWorkflow_Result. +// Equals returns true if all the fields of this HistoryService_PurgeDLQMessages_Result match the +// provided HistoryService_PurgeDLQMessages_Result. // // This function performs a deep comparison. -func (v *HistoryService_QueryWorkflow_Result) Equals(rhs *HistoryService_QueryWorkflow_Result) bool { +func (v *HistoryService_PurgeDLQMessages_Result) Equals(rhs *HistoryService_PurgeDLQMessages_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.BadRequestError == nil && rhs.BadRequestError == nil) || (v.BadRequestError != nil && rhs.BadRequestError != nil && v.BadRequestError.Equals(rhs.BadRequestError))) { return false } if !((v.InternalServiceError == nil && rhs.InternalServiceError == nil) || (v.InternalServiceError != nil && rhs.InternalServiceError != nil && v.InternalServiceError.Equals(rhs.InternalServiceError))) { return false } - if !((v.EntityNotExistError == nil && rhs.EntityNotExistError == nil) || (v.EntityNotExistError != nil && rhs.EntityNotExistError != nil && v.EntityNotExistError.Equals(rhs.EntityNotExistError))) { - return false - } - if !((v.QueryFailedError == nil && rhs.QueryFailedError == nil) || (v.QueryFailedError != nil && rhs.QueryFailedError != nil && v.QueryFailedError.Equals(rhs.QueryFailedError))) { - return false - } - if !((v.LimitExceededError == nil && rhs.LimitExceededError == nil) || (v.LimitExceededError != nil && rhs.LimitExceededError != nil && v.LimitExceededError.Equals(rhs.LimitExceededError))) { + if !((v.ServiceBusyError == nil && rhs.ServiceBusyError == nil) || (v.ServiceBusyError != nil && rhs.ServiceBusyError != nil && v.ServiceBusyError.Equals(rhs.ServiceBusyError))) { return false } - if !((v.ServiceBusyError == nil && rhs.ServiceBusyError == nil) || (v.ServiceBusyError != nil && rhs.ServiceBusyError != nil && v.ServiceBusyError.Equals(rhs.ServiceBusyError))) { + 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))) { + if !((v.ShardOwnershipLostError == nil && rhs.ShardOwnershipLostError == nil) || (v.ShardOwnershipLostError != nil && rhs.ShardOwnershipLostError != nil && v.ShardOwnershipLostError.Equals(rhs.ShardOwnershipLostError))) { return false } @@ -21592,56 +21416,32 @@ func (v *HistoryService_QueryWorkflow_Result) Equals(rhs *HistoryService_QueryWo } // MarshalLogObject implements zapcore.ObjectMarshaler, enabling -// fast logging of HistoryService_QueryWorkflow_Result. -func (v *HistoryService_QueryWorkflow_Result) MarshalLogObject(enc zapcore.ObjectEncoder) (err error) { +// fast logging of HistoryService_PurgeDLQMessages_Result. +func (v *HistoryService_PurgeDLQMessages_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.BadRequestError != nil { err = multierr.Append(err, enc.AddObject("badRequestError", v.BadRequestError)) } if v.InternalServiceError != nil { err = multierr.Append(err, enc.AddObject("internalServiceError", v.InternalServiceError)) } - if v.EntityNotExistError != nil { - err = multierr.Append(err, enc.AddObject("entityNotExistError", v.EntityNotExistError)) - } - if v.QueryFailedError != nil { - err = multierr.Append(err, enc.AddObject("queryFailedError", v.QueryFailedError)) - } - if v.LimitExceededError != nil { - err = multierr.Append(err, enc.AddObject("limitExceededError", v.LimitExceededError)) - } if v.ServiceBusyError != nil { err = multierr.Append(err, enc.AddObject("serviceBusyError", v.ServiceBusyError)) } - if v.ClientVersionNotSupportedError != nil { - err = multierr.Append(err, enc.AddObject("clientVersionNotSupportedError", v.ClientVersionNotSupportedError)) + if v.EntityNotExistError != nil { + err = multierr.Append(err, enc.AddObject("entityNotExistError", v.EntityNotExistError)) } - return err -} - -// GetSuccess returns the value of Success if it is set or its -// zero value if it is unset. -func (v *HistoryService_QueryWorkflow_Result) GetSuccess() (o *QueryWorkflowResponse) { - if v != nil && v.Success != nil { - return v.Success + if v.ShardOwnershipLostError != nil { + err = multierr.Append(err, enc.AddObject("shardOwnershipLostError", v.ShardOwnershipLostError)) } - - return -} - -// IsSetSuccess returns true if Success is not nil. -func (v *HistoryService_QueryWorkflow_Result) IsSetSuccess() bool { - return v != nil && v.Success != nil + return err } // GetBadRequestError returns the value of BadRequestError if it is set or its // zero value if it is unset. -func (v *HistoryService_QueryWorkflow_Result) GetBadRequestError() (o *shared.BadRequestError) { +func (v *HistoryService_PurgeDLQMessages_Result) GetBadRequestError() (o *shared.BadRequestError) { if v != nil && v.BadRequestError != nil { return v.BadRequestError } @@ -21650,13 +21450,13 @@ func (v *HistoryService_QueryWorkflow_Result) GetBadRequestError() (o *shared.Ba } // IsSetBadRequestError returns true if BadRequestError is not nil. -func (v *HistoryService_QueryWorkflow_Result) IsSetBadRequestError() bool { +func (v *HistoryService_PurgeDLQMessages_Result) IsSetBadRequestError() bool { return v != nil && v.BadRequestError != nil } // GetInternalServiceError returns the value of InternalServiceError if it is set or its // zero value if it is unset. -func (v *HistoryService_QueryWorkflow_Result) GetInternalServiceError() (o *shared.InternalServiceError) { +func (v *HistoryService_PurgeDLQMessages_Result) GetInternalServiceError() (o *shared.InternalServiceError) { if v != nil && v.InternalServiceError != nil { return v.InternalServiceError } @@ -21665,108 +21465,78 @@ func (v *HistoryService_QueryWorkflow_Result) GetInternalServiceError() (o *shar } // IsSetInternalServiceError returns true if InternalServiceError is not nil. -func (v *HistoryService_QueryWorkflow_Result) IsSetInternalServiceError() bool { +func (v *HistoryService_PurgeDLQMessages_Result) IsSetInternalServiceError() bool { return v != nil && v.InternalServiceError != nil } -// GetEntityNotExistError returns the value of EntityNotExistError if it is set or its -// zero value if it is unset. -func (v *HistoryService_QueryWorkflow_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 *HistoryService_QueryWorkflow_Result) IsSetEntityNotExistError() bool { - return v != nil && v.EntityNotExistError != nil -} - -// GetQueryFailedError returns the value of QueryFailedError if it is set or its -// zero value if it is unset. -func (v *HistoryService_QueryWorkflow_Result) GetQueryFailedError() (o *shared.QueryFailedError) { - if v != nil && v.QueryFailedError != nil { - return v.QueryFailedError - } - - return -} - -// IsSetQueryFailedError returns true if QueryFailedError is not nil. -func (v *HistoryService_QueryWorkflow_Result) IsSetQueryFailedError() bool { - return v != nil && v.QueryFailedError != nil -} - -// GetLimitExceededError returns the value of LimitExceededError if it is set or its +// GetServiceBusyError returns the value of ServiceBusyError if it is set or its // zero value if it is unset. -func (v *HistoryService_QueryWorkflow_Result) GetLimitExceededError() (o *shared.LimitExceededError) { - if v != nil && v.LimitExceededError != nil { - return v.LimitExceededError +func (v *HistoryService_PurgeDLQMessages_Result) GetServiceBusyError() (o *shared.ServiceBusyError) { + if v != nil && v.ServiceBusyError != nil { + return v.ServiceBusyError } return } -// IsSetLimitExceededError returns true if LimitExceededError is not nil. -func (v *HistoryService_QueryWorkflow_Result) IsSetLimitExceededError() bool { - return v != nil && v.LimitExceededError != nil +// IsSetServiceBusyError returns true if ServiceBusyError is not nil. +func (v *HistoryService_PurgeDLQMessages_Result) IsSetServiceBusyError() bool { + return v != nil && v.ServiceBusyError != nil } -// GetServiceBusyError returns the value of ServiceBusyError if it is set or its +// GetEntityNotExistError returns the value of EntityNotExistError if it is set or its // zero value if it is unset. -func (v *HistoryService_QueryWorkflow_Result) GetServiceBusyError() (o *shared.ServiceBusyError) { - if v != nil && v.ServiceBusyError != nil { - return v.ServiceBusyError +func (v *HistoryService_PurgeDLQMessages_Result) GetEntityNotExistError() (o *shared.EntityNotExistsError) { + if v != nil && v.EntityNotExistError != nil { + return v.EntityNotExistError } return } -// IsSetServiceBusyError returns true if ServiceBusyError is not nil. -func (v *HistoryService_QueryWorkflow_Result) IsSetServiceBusyError() bool { - return v != nil && v.ServiceBusyError != nil +// IsSetEntityNotExistError returns true if EntityNotExistError is not nil. +func (v *HistoryService_PurgeDLQMessages_Result) IsSetEntityNotExistError() bool { + return v != nil && v.EntityNotExistError != nil } -// GetClientVersionNotSupportedError returns the value of ClientVersionNotSupportedError if it is set or its +// GetShardOwnershipLostError returns the value of ShardOwnershipLostError if it is set or its // zero value if it is unset. -func (v *HistoryService_QueryWorkflow_Result) GetClientVersionNotSupportedError() (o *shared.ClientVersionNotSupportedError) { - if v != nil && v.ClientVersionNotSupportedError != nil { - return v.ClientVersionNotSupportedError +func (v *HistoryService_PurgeDLQMessages_Result) GetShardOwnershipLostError() (o *ShardOwnershipLostError) { + if v != nil && v.ShardOwnershipLostError != nil { + return v.ShardOwnershipLostError } return } -// IsSetClientVersionNotSupportedError returns true if ClientVersionNotSupportedError is not nil. -func (v *HistoryService_QueryWorkflow_Result) IsSetClientVersionNotSupportedError() bool { - return v != nil && v.ClientVersionNotSupportedError != nil +// IsSetShardOwnershipLostError returns true if ShardOwnershipLostError is not nil. +func (v *HistoryService_PurgeDLQMessages_Result) IsSetShardOwnershipLostError() bool { + return v != nil && v.ShardOwnershipLostError != 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 "QueryWorkflow" for this struct. -func (v *HistoryService_QueryWorkflow_Result) MethodName() string { - return "QueryWorkflow" +// This will always be "PurgeDLQMessages" for this struct. +func (v *HistoryService_PurgeDLQMessages_Result) MethodName() string { + return "PurgeDLQMessages" } // EnvelopeType returns the kind of value inside this struct. // // This will always be Reply for this struct. -func (v *HistoryService_QueryWorkflow_Result) EnvelopeType() wire.EnvelopeType { +func (v *HistoryService_PurgeDLQMessages_Result) EnvelopeType() wire.EnvelopeType { return wire.Reply } -// HistoryService_ReadDLQMessages_Args represents the arguments for the HistoryService.ReadDLQMessages function. +// HistoryService_QueryWorkflow_Args represents the arguments for the HistoryService.QueryWorkflow function. // -// The arguments for ReadDLQMessages are sent and received over the wire as this struct. -type HistoryService_ReadDLQMessages_Args struct { - Request *replicator.ReadDLQMessagesRequest `json:"request,omitempty"` +// The arguments for QueryWorkflow are sent and received over the wire as this struct. +type HistoryService_QueryWorkflow_Args struct { + QueryRequest *QueryWorkflowRequest `json:"queryRequest,omitempty"` } -// ToWire translates a HistoryService_ReadDLQMessages_Args struct into a Thrift-level intermediate +// ToWire translates a HistoryService_QueryWorkflow_Args struct into a Thrift-level intermediate // representation. This intermediate representation may be serialized // into bytes using a ThriftRW protocol implementation. // @@ -21781,7 +21551,7 @@ type HistoryService_ReadDLQMessages_Args struct { // if err := binaryProtocol.Encode(x, writer); err != nil { // return err // } -func (v *HistoryService_ReadDLQMessages_Args) ToWire() (wire.Value, error) { +func (v *HistoryService_QueryWorkflow_Args) ToWire() (wire.Value, error) { var ( fields [1]wire.Field i int = 0 @@ -21789,8 +21559,8 @@ func (v *HistoryService_ReadDLQMessages_Args) ToWire() (wire.Value, error) { err error ) - if v.Request != nil { - w, err = v.Request.ToWire() + if v.QueryRequest != nil { + w, err = v.QueryRequest.ToWire() if err != nil { return w, err } @@ -21801,17 +21571,17 @@ func (v *HistoryService_ReadDLQMessages_Args) ToWire() (wire.Value, error) { return wire.NewValueStruct(wire.Struct{Fields: fields[:i]}), nil } -func _ReadDLQMessagesRequest_Read(w wire.Value) (*replicator.ReadDLQMessagesRequest, error) { - var v replicator.ReadDLQMessagesRequest +func _QueryWorkflowRequest_1_Read(w wire.Value) (*QueryWorkflowRequest, error) { + var v QueryWorkflowRequest err := v.FromWire(w) return &v, err } -// FromWire deserializes a HistoryService_ReadDLQMessages_Args struct from its Thrift-level +// FromWire deserializes a HistoryService_QueryWorkflow_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 HistoryService_ReadDLQMessages_Args struct +// An error is returned if we were unable to build a HistoryService_QueryWorkflow_Args struct // from the provided intermediate representation. // // x, err := binaryProtocol.Decode(reader, wire.TStruct) @@ -21819,19 +21589,19 @@ func _ReadDLQMessagesRequest_Read(w wire.Value) (*replicator.ReadDLQMessagesRequ // return nil, err // } // -// var v HistoryService_ReadDLQMessages_Args +// var v HistoryService_QueryWorkflow_Args // if err := v.FromWire(x); err != nil { // return nil, err // } // return &v, nil -func (v *HistoryService_ReadDLQMessages_Args) FromWire(w wire.Value) error { +func (v *HistoryService_QueryWorkflow_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.Request, err = _ReadDLQMessagesRequest_Read(field.Value) + v.QueryRequest, err = _QueryWorkflowRequest_1_Read(field.Value) if err != nil { return err } @@ -21843,34 +21613,34 @@ func (v *HistoryService_ReadDLQMessages_Args) FromWire(w wire.Value) error { return nil } -// String returns a readable string representation of a HistoryService_ReadDLQMessages_Args +// String returns a readable string representation of a HistoryService_QueryWorkflow_Args // struct. -func (v *HistoryService_ReadDLQMessages_Args) String() string { +func (v *HistoryService_QueryWorkflow_Args) String() string { if v == nil { return "" } var fields [1]string i := 0 - if v.Request != nil { - fields[i] = fmt.Sprintf("Request: %v", v.Request) + if v.QueryRequest != nil { + fields[i] = fmt.Sprintf("QueryRequest: %v", v.QueryRequest) i++ } - return fmt.Sprintf("HistoryService_ReadDLQMessages_Args{%v}", strings.Join(fields[:i], ", ")) + return fmt.Sprintf("HistoryService_QueryWorkflow_Args{%v}", strings.Join(fields[:i], ", ")) } -// Equals returns true if all the fields of this HistoryService_ReadDLQMessages_Args match the -// provided HistoryService_ReadDLQMessages_Args. +// Equals returns true if all the fields of this HistoryService_QueryWorkflow_Args match the +// provided HistoryService_QueryWorkflow_Args. // // This function performs a deep comparison. -func (v *HistoryService_ReadDLQMessages_Args) Equals(rhs *HistoryService_ReadDLQMessages_Args) bool { +func (v *HistoryService_QueryWorkflow_Args) Equals(rhs *HistoryService_QueryWorkflow_Args) bool { if v == nil { return rhs == nil } else if rhs == nil { return false } - if !((v.Request == nil && rhs.Request == nil) || (v.Request != nil && rhs.Request != nil && v.Request.Equals(rhs.Request))) { + if !((v.QueryRequest == nil && rhs.QueryRequest == nil) || (v.QueryRequest != nil && rhs.QueryRequest != nil && v.QueryRequest.Equals(rhs.QueryRequest))) { return false } @@ -21878,154 +21648,168 @@ func (v *HistoryService_ReadDLQMessages_Args) Equals(rhs *HistoryService_ReadDLQ } // MarshalLogObject implements zapcore.ObjectMarshaler, enabling -// fast logging of HistoryService_ReadDLQMessages_Args. -func (v *HistoryService_ReadDLQMessages_Args) MarshalLogObject(enc zapcore.ObjectEncoder) (err error) { +// fast logging of HistoryService_QueryWorkflow_Args. +func (v *HistoryService_QueryWorkflow_Args) MarshalLogObject(enc zapcore.ObjectEncoder) (err error) { if v == nil { return nil } - if v.Request != nil { - err = multierr.Append(err, enc.AddObject("request", v.Request)) + if v.QueryRequest != nil { + err = multierr.Append(err, enc.AddObject("queryRequest", v.QueryRequest)) } return err } -// GetRequest returns the value of Request if it is set or its +// GetQueryRequest returns the value of QueryRequest if it is set or its // zero value if it is unset. -func (v *HistoryService_ReadDLQMessages_Args) GetRequest() (o *replicator.ReadDLQMessagesRequest) { - if v != nil && v.Request != nil { - return v.Request +func (v *HistoryService_QueryWorkflow_Args) GetQueryRequest() (o *QueryWorkflowRequest) { + if v != nil && v.QueryRequest != nil { + return v.QueryRequest } return } -// IsSetRequest returns true if Request is not nil. -func (v *HistoryService_ReadDLQMessages_Args) IsSetRequest() bool { - return v != nil && v.Request != nil +// IsSetQueryRequest returns true if QueryRequest is not nil. +func (v *HistoryService_QueryWorkflow_Args) IsSetQueryRequest() bool { + return v != nil && v.QueryRequest != 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 "ReadDLQMessages" for this struct. -func (v *HistoryService_ReadDLQMessages_Args) MethodName() string { - return "ReadDLQMessages" +// This will always be "QueryWorkflow" for this struct. +func (v *HistoryService_QueryWorkflow_Args) MethodName() string { + return "QueryWorkflow" } // EnvelopeType returns the kind of value inside this struct. // // This will always be Call for this struct. -func (v *HistoryService_ReadDLQMessages_Args) EnvelopeType() wire.EnvelopeType { +func (v *HistoryService_QueryWorkflow_Args) EnvelopeType() wire.EnvelopeType { return wire.Call } -// HistoryService_ReadDLQMessages_Helper provides functions that aid in handling the -// parameters and return values of the HistoryService.ReadDLQMessages +// HistoryService_QueryWorkflow_Helper provides functions that aid in handling the +// parameters and return values of the HistoryService.QueryWorkflow // function. -var HistoryService_ReadDLQMessages_Helper = struct { - // Args accepts the parameters of ReadDLQMessages in-order and returns +var HistoryService_QueryWorkflow_Helper = struct { + // Args accepts the parameters of QueryWorkflow in-order and returns // the arguments struct for the function. Args func( - request *replicator.ReadDLQMessagesRequest, - ) *HistoryService_ReadDLQMessages_Args + queryRequest *QueryWorkflowRequest, + ) *HistoryService_QueryWorkflow_Args // IsException returns true if the given error can be thrown - // by ReadDLQMessages. + // by QueryWorkflow. // - // An error can be thrown by ReadDLQMessages only if the + // An error can be thrown by QueryWorkflow 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 ReadDLQMessages + // WrapResponse returns the result struct for QueryWorkflow // given its return value and error. // // This allows mapping values and errors returned by - // ReadDLQMessages into a serializable result struct. + // QueryWorkflow into a serializable result struct. // WrapResponse returns a non-nil error if the provided - // error cannot be thrown by ReadDLQMessages + // error cannot be thrown by QueryWorkflow // - // value, err := ReadDLQMessages(args) - // result, err := HistoryService_ReadDLQMessages_Helper.WrapResponse(value, err) + // value, err := QueryWorkflow(args) + // result, err := HistoryService_QueryWorkflow_Helper.WrapResponse(value, err) // if err != nil { - // return fmt.Errorf("unexpected error from ReadDLQMessages: %v", err) + // return fmt.Errorf("unexpected error from QueryWorkflow: %v", err) // } // serialize(result) - WrapResponse func(*replicator.ReadDLQMessagesResponse, error) (*HistoryService_ReadDLQMessages_Result, error) + WrapResponse func(*QueryWorkflowResponse, error) (*HistoryService_QueryWorkflow_Result, error) - // UnwrapResponse takes the result struct for ReadDLQMessages + // UnwrapResponse takes the result struct for QueryWorkflow // and returns the value or error returned by it. // - // The error is non-nil only if ReadDLQMessages threw an + // The error is non-nil only if QueryWorkflow threw an // exception. // // result := deserialize(bytes) - // value, err := HistoryService_ReadDLQMessages_Helper.UnwrapResponse(result) - UnwrapResponse func(*HistoryService_ReadDLQMessages_Result) (*replicator.ReadDLQMessagesResponse, error) + // value, err := HistoryService_QueryWorkflow_Helper.UnwrapResponse(result) + UnwrapResponse func(*HistoryService_QueryWorkflow_Result) (*QueryWorkflowResponse, error) }{} func init() { - HistoryService_ReadDLQMessages_Helper.Args = func( - request *replicator.ReadDLQMessagesRequest, - ) *HistoryService_ReadDLQMessages_Args { - return &HistoryService_ReadDLQMessages_Args{ - Request: request, + HistoryService_QueryWorkflow_Helper.Args = func( + queryRequest *QueryWorkflowRequest, + ) *HistoryService_QueryWorkflow_Args { + return &HistoryService_QueryWorkflow_Args{ + QueryRequest: queryRequest, } } - HistoryService_ReadDLQMessages_Helper.IsException = func(err error) bool { + HistoryService_QueryWorkflow_Helper.IsException = func(err error) bool { switch err.(type) { case *shared.BadRequestError: return true case *shared.InternalServiceError: return true - case *shared.ServiceBusyError: - return true case *shared.EntityNotExistsError: return true - case *ShardOwnershipLostError: + case *shared.QueryFailedError: + return true + case *shared.LimitExceededError: + return true + case *shared.ServiceBusyError: + return true + case *shared.ClientVersionNotSupportedError: return true default: return false } } - HistoryService_ReadDLQMessages_Helper.WrapResponse = func(success *replicator.ReadDLQMessagesResponse, err error) (*HistoryService_ReadDLQMessages_Result, error) { + HistoryService_QueryWorkflow_Helper.WrapResponse = func(success *QueryWorkflowResponse, err error) (*HistoryService_QueryWorkflow_Result, error) { if err == nil { - return &HistoryService_ReadDLQMessages_Result{Success: success}, nil + return &HistoryService_QueryWorkflow_Result{Success: success}, nil } switch e := err.(type) { case *shared.BadRequestError: if e == nil { - return nil, errors.New("WrapResponse received non-nil error type with nil value for HistoryService_ReadDLQMessages_Result.BadRequestError") + return nil, errors.New("WrapResponse received non-nil error type with nil value for HistoryService_QueryWorkflow_Result.BadRequestError") } - return &HistoryService_ReadDLQMessages_Result{BadRequestError: e}, nil + return &HistoryService_QueryWorkflow_Result{BadRequestError: e}, nil case *shared.InternalServiceError: if e == nil { - return nil, errors.New("WrapResponse received non-nil error type with nil value for HistoryService_ReadDLQMessages_Result.InternalServiceError") + return nil, errors.New("WrapResponse received non-nil error type with nil value for HistoryService_QueryWorkflow_Result.InternalServiceError") } - return &HistoryService_ReadDLQMessages_Result{InternalServiceError: e}, nil - case *shared.ServiceBusyError: + return &HistoryService_QueryWorkflow_Result{InternalServiceError: e}, nil + case *shared.EntityNotExistsError: if e == nil { - return nil, errors.New("WrapResponse received non-nil error type with nil value for HistoryService_ReadDLQMessages_Result.ServiceBusyError") + return nil, errors.New("WrapResponse received non-nil error type with nil value for HistoryService_QueryWorkflow_Result.EntityNotExistError") } - return &HistoryService_ReadDLQMessages_Result{ServiceBusyError: e}, nil - case *shared.EntityNotExistsError: + return &HistoryService_QueryWorkflow_Result{EntityNotExistError: e}, nil + case *shared.QueryFailedError: if e == nil { - return nil, errors.New("WrapResponse received non-nil error type with nil value for HistoryService_ReadDLQMessages_Result.EntityNotExistError") + return nil, errors.New("WrapResponse received non-nil error type with nil value for HistoryService_QueryWorkflow_Result.QueryFailedError") } - return &HistoryService_ReadDLQMessages_Result{EntityNotExistError: e}, nil - case *ShardOwnershipLostError: + return &HistoryService_QueryWorkflow_Result{QueryFailedError: e}, nil + case *shared.LimitExceededError: if e == nil { - return nil, errors.New("WrapResponse received non-nil error type with nil value for HistoryService_ReadDLQMessages_Result.ShardOwnershipLostError") + return nil, errors.New("WrapResponse received non-nil error type with nil value for HistoryService_QueryWorkflow_Result.LimitExceededError") } - return &HistoryService_ReadDLQMessages_Result{ShardOwnershipLostError: e}, nil + return &HistoryService_QueryWorkflow_Result{LimitExceededError: e}, nil + case *shared.ServiceBusyError: + if e == nil { + return nil, errors.New("WrapResponse received non-nil error type with nil value for HistoryService_QueryWorkflow_Result.ServiceBusyError") + } + return &HistoryService_QueryWorkflow_Result{ServiceBusyError: e}, nil + case *shared.ClientVersionNotSupportedError: + if e == nil { + return nil, errors.New("WrapResponse received non-nil error type with nil value for HistoryService_QueryWorkflow_Result.ClientVersionNotSupportedError") + } + return &HistoryService_QueryWorkflow_Result{ClientVersionNotSupportedError: e}, nil } return nil, err } - HistoryService_ReadDLQMessages_Helper.UnwrapResponse = func(result *HistoryService_ReadDLQMessages_Result) (success *replicator.ReadDLQMessagesResponse, err error) { + HistoryService_QueryWorkflow_Helper.UnwrapResponse = func(result *HistoryService_QueryWorkflow_Result) (success *QueryWorkflowResponse, err error) { if result.BadRequestError != nil { err = result.BadRequestError return @@ -22034,16 +21818,24 @@ func init() { err = result.InternalServiceError return } - if result.ServiceBusyError != nil { - err = result.ServiceBusyError - return - } if result.EntityNotExistError != nil { err = result.EntityNotExistError return } - if result.ShardOwnershipLostError != nil { - err = result.ShardOwnershipLostError + if result.QueryFailedError != nil { + err = result.QueryFailedError + return + } + if result.LimitExceededError != nil { + err = result.LimitExceededError + return + } + if result.ServiceBusyError != nil { + err = result.ServiceBusyError + return + } + if result.ClientVersionNotSupportedError != nil { + err = result.ClientVersionNotSupportedError return } @@ -22058,22 +21850,24 @@ func init() { } -// HistoryService_ReadDLQMessages_Result represents the result of a HistoryService.ReadDLQMessages function call. +// HistoryService_QueryWorkflow_Result represents the result of a HistoryService.QueryWorkflow function call. // -// The result of a ReadDLQMessages execution is sent and received over the wire as this struct. +// The result of a QueryWorkflow execution is sent and received over the wire as this struct. // // Success is set only if the function did not throw an exception. -type HistoryService_ReadDLQMessages_Result struct { - // Value returned by ReadDLQMessages after a successful execution. - Success *replicator.ReadDLQMessagesResponse `json:"success,omitempty"` - BadRequestError *shared.BadRequestError `json:"badRequestError,omitempty"` - InternalServiceError *shared.InternalServiceError `json:"internalServiceError,omitempty"` - ServiceBusyError *shared.ServiceBusyError `json:"serviceBusyError,omitempty"` - EntityNotExistError *shared.EntityNotExistsError `json:"entityNotExistError,omitempty"` - ShardOwnershipLostError *ShardOwnershipLostError `json:"shardOwnershipLostError,omitempty"` +type HistoryService_QueryWorkflow_Result struct { + // Value returned by QueryWorkflow after a successful execution. + Success *QueryWorkflowResponse `json:"success,omitempty"` + BadRequestError *shared.BadRequestError `json:"badRequestError,omitempty"` + InternalServiceError *shared.InternalServiceError `json:"internalServiceError,omitempty"` + EntityNotExistError *shared.EntityNotExistsError `json:"entityNotExistError,omitempty"` + QueryFailedError *shared.QueryFailedError `json:"queryFailedError,omitempty"` + LimitExceededError *shared.LimitExceededError `json:"limitExceededError,omitempty"` + ServiceBusyError *shared.ServiceBusyError `json:"serviceBusyError,omitempty"` + ClientVersionNotSupportedError *shared.ClientVersionNotSupportedError `json:"clientVersionNotSupportedError,omitempty"` } -// ToWire translates a HistoryService_ReadDLQMessages_Result struct into a Thrift-level intermediate +// ToWire translates a HistoryService_QueryWorkflow_Result struct into a Thrift-level intermediate // representation. This intermediate representation may be serialized // into bytes using a ThriftRW protocol implementation. // @@ -22088,9 +21882,9 @@ type HistoryService_ReadDLQMessages_Result struct { // if err := binaryProtocol.Encode(x, writer); err != nil { // return err // } -func (v *HistoryService_ReadDLQMessages_Result) ToWire() (wire.Value, error) { +func (v *HistoryService_QueryWorkflow_Result) ToWire() (wire.Value, error) { var ( - fields [6]wire.Field + fields [8]wire.Field i int = 0 w wire.Value err error @@ -22120,49 +21914,71 @@ func (v *HistoryService_ReadDLQMessages_Result) ToWire() (wire.Value, error) { fields[i] = wire.Field{ID: 2, Value: w} i++ } - if v.ServiceBusyError != nil { - w, err = v.ServiceBusyError.ToWire() + 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.EntityNotExistError != nil { - w, err = v.EntityNotExistError.ToWire() + if v.QueryFailedError != nil { + w, err = v.QueryFailedError.ToWire() if err != nil { return w, err } fields[i] = wire.Field{ID: 4, Value: w} i++ } - if v.ShardOwnershipLostError != nil { - w, err = v.ShardOwnershipLostError.ToWire() + if v.LimitExceededError != nil { + w, err = v.LimitExceededError.ToWire() if err != nil { return w, err } fields[i] = wire.Field{ID: 5, Value: w} i++ } + if v.ServiceBusyError != nil { + w, err = v.ServiceBusyError.ToWire() + if err != nil { + return w, err + } + fields[i] = wire.Field{ID: 6, Value: w} + i++ + } + if v.ClientVersionNotSupportedError != nil { + w, err = v.ClientVersionNotSupportedError.ToWire() + if err != nil { + return w, err + } + fields[i] = wire.Field{ID: 7, Value: w} + i++ + } if i != 1 { - return wire.Value{}, fmt.Errorf("HistoryService_ReadDLQMessages_Result should have exactly one field: got %v fields", i) + return wire.Value{}, fmt.Errorf("HistoryService_QueryWorkflow_Result should have exactly one field: got %v fields", i) } return wire.NewValueStruct(wire.Struct{Fields: fields[:i]}), nil } -func _ReadDLQMessagesResponse_Read(w wire.Value) (*replicator.ReadDLQMessagesResponse, error) { - var v replicator.ReadDLQMessagesResponse +func _QueryWorkflowResponse_1_Read(w wire.Value) (*QueryWorkflowResponse, error) { + var v QueryWorkflowResponse err := v.FromWire(w) return &v, err } -// FromWire deserializes a HistoryService_ReadDLQMessages_Result struct from its Thrift-level +func _QueryFailedError_Read(w wire.Value) (*shared.QueryFailedError, error) { + var v shared.QueryFailedError + err := v.FromWire(w) + return &v, err +} + +// FromWire deserializes a HistoryService_QueryWorkflow_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 HistoryService_ReadDLQMessages_Result struct +// An error is returned if we were unable to build a HistoryService_QueryWorkflow_Result struct // from the provided intermediate representation. // // x, err := binaryProtocol.Decode(reader, wire.TStruct) @@ -22170,19 +21986,19 @@ func _ReadDLQMessagesResponse_Read(w wire.Value) (*replicator.ReadDLQMessagesRes // return nil, err // } // -// var v HistoryService_ReadDLQMessages_Result +// var v HistoryService_QueryWorkflow_Result // if err := v.FromWire(x); err != nil { // return nil, err // } // return &v, nil -func (v *HistoryService_ReadDLQMessages_Result) FromWire(w wire.Value) error { +func (v *HistoryService_QueryWorkflow_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 = _ReadDLQMessagesResponse_Read(field.Value) + v.Success, err = _QueryWorkflowResponse_1_Read(field.Value) if err != nil { return err } @@ -22206,7 +22022,7 @@ func (v *HistoryService_ReadDLQMessages_Result) FromWire(w wire.Value) error { } case 3: if field.Value.Type() == wire.TStruct { - v.ServiceBusyError, err = _ServiceBusyError_Read(field.Value) + v.EntityNotExistError, err = _EntityNotExistsError_Read(field.Value) if err != nil { return err } @@ -22214,7 +22030,7 @@ func (v *HistoryService_ReadDLQMessages_Result) FromWire(w wire.Value) error { } case 4: if field.Value.Type() == wire.TStruct { - v.EntityNotExistError, err = _EntityNotExistsError_Read(field.Value) + v.QueryFailedError, err = _QueryFailedError_Read(field.Value) if err != nil { return err } @@ -22222,7 +22038,23 @@ func (v *HistoryService_ReadDLQMessages_Result) FromWire(w wire.Value) error { } case 5: if field.Value.Type() == wire.TStruct { - v.ShardOwnershipLostError, err = _ShardOwnershipLostError_Read(field.Value) + v.LimitExceededError, err = _LimitExceededError_Read(field.Value) + if err != nil { + return err + } + + } + case 6: + if field.Value.Type() == wire.TStruct { + v.ServiceBusyError, err = _ServiceBusyError_Read(field.Value) + if err != nil { + return err + } + + } + case 7: + if field.Value.Type() == wire.TStruct { + v.ClientVersionNotSupportedError, err = _ClientVersionNotSupportedError_Read(field.Value) if err != nil { return err } @@ -22241,30 +22073,36 @@ func (v *HistoryService_ReadDLQMessages_Result) FromWire(w wire.Value) error { if v.InternalServiceError != nil { count++ } - if v.ServiceBusyError != nil { + if v.EntityNotExistError != nil { count++ } - if v.EntityNotExistError != nil { + if v.QueryFailedError != nil { count++ } - if v.ShardOwnershipLostError != nil { + if v.LimitExceededError != nil { + count++ + } + if v.ServiceBusyError != nil { + count++ + } + if v.ClientVersionNotSupportedError != nil { count++ } if count != 1 { - return fmt.Errorf("HistoryService_ReadDLQMessages_Result should have exactly one field: got %v fields", count) + return fmt.Errorf("HistoryService_QueryWorkflow_Result should have exactly one field: got %v fields", count) } return nil } -// String returns a readable string representation of a HistoryService_ReadDLQMessages_Result +// String returns a readable string representation of a HistoryService_QueryWorkflow_Result // struct. -func (v *HistoryService_ReadDLQMessages_Result) String() string { +func (v *HistoryService_QueryWorkflow_Result) String() string { if v == nil { return "" } - var fields [6]string + var fields [8]string i := 0 if v.Success != nil { fields[i] = fmt.Sprintf("Success: %v", v.Success) @@ -22278,27 +22116,35 @@ func (v *HistoryService_ReadDLQMessages_Result) String() string { fields[i] = fmt.Sprintf("InternalServiceError: %v", v.InternalServiceError) 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.ShardOwnershipLostError != nil { - fields[i] = fmt.Sprintf("ShardOwnershipLostError: %v", v.ShardOwnershipLostError) + if v.QueryFailedError != nil { + fields[i] = fmt.Sprintf("QueryFailedError: %v", v.QueryFailedError) + i++ + } + if v.LimitExceededError != nil { + fields[i] = fmt.Sprintf("LimitExceededError: %v", v.LimitExceededError) + i++ + } + if v.ServiceBusyError != nil { + fields[i] = fmt.Sprintf("ServiceBusyError: %v", v.ServiceBusyError) + i++ + } + if v.ClientVersionNotSupportedError != nil { + fields[i] = fmt.Sprintf("ClientVersionNotSupportedError: %v", v.ClientVersionNotSupportedError) i++ } - return fmt.Sprintf("HistoryService_ReadDLQMessages_Result{%v}", strings.Join(fields[:i], ", ")) + return fmt.Sprintf("HistoryService_QueryWorkflow_Result{%v}", strings.Join(fields[:i], ", ")) } -// Equals returns true if all the fields of this HistoryService_ReadDLQMessages_Result match the -// provided HistoryService_ReadDLQMessages_Result. +// Equals returns true if all the fields of this HistoryService_QueryWorkflow_Result match the +// provided HistoryService_QueryWorkflow_Result. // // This function performs a deep comparison. -func (v *HistoryService_ReadDLQMessages_Result) Equals(rhs *HistoryService_ReadDLQMessages_Result) bool { +func (v *HistoryService_QueryWorkflow_Result) Equals(rhs *HistoryService_QueryWorkflow_Result) bool { if v == nil { return rhs == nil } else if rhs == nil { @@ -22313,13 +22159,19 @@ func (v *HistoryService_ReadDLQMessages_Result) Equals(rhs *HistoryService_ReadD if !((v.InternalServiceError == nil && rhs.InternalServiceError == nil) || (v.InternalServiceError != nil && rhs.InternalServiceError != nil && v.InternalServiceError.Equals(rhs.InternalServiceError))) { return false } - if !((v.ServiceBusyError == nil && rhs.ServiceBusyError == nil) || (v.ServiceBusyError != nil && rhs.ServiceBusyError != nil && v.ServiceBusyError.Equals(rhs.ServiceBusyError))) { + if !((v.EntityNotExistError == nil && rhs.EntityNotExistError == nil) || (v.EntityNotExistError != nil && rhs.EntityNotExistError != nil && v.EntityNotExistError.Equals(rhs.EntityNotExistError))) { return false } - if !((v.EntityNotExistError == nil && rhs.EntityNotExistError == nil) || (v.EntityNotExistError != nil && rhs.EntityNotExistError != nil && v.EntityNotExistError.Equals(rhs.EntityNotExistError))) { + if !((v.QueryFailedError == nil && rhs.QueryFailedError == nil) || (v.QueryFailedError != nil && rhs.QueryFailedError != nil && v.QueryFailedError.Equals(rhs.QueryFailedError))) { return false } - if !((v.ShardOwnershipLostError == nil && rhs.ShardOwnershipLostError == nil) || (v.ShardOwnershipLostError != nil && rhs.ShardOwnershipLostError != nil && v.ShardOwnershipLostError.Equals(rhs.ShardOwnershipLostError))) { + if !((v.LimitExceededError == nil && rhs.LimitExceededError == nil) || (v.LimitExceededError != nil && rhs.LimitExceededError != nil && v.LimitExceededError.Equals(rhs.LimitExceededError))) { + return false + } + if !((v.ServiceBusyError == nil && rhs.ServiceBusyError == nil) || (v.ServiceBusyError != nil && rhs.ServiceBusyError != nil && v.ServiceBusyError.Equals(rhs.ServiceBusyError))) { + return false + } + if !((v.ClientVersionNotSupportedError == nil && rhs.ClientVersionNotSupportedError == nil) || (v.ClientVersionNotSupportedError != nil && rhs.ClientVersionNotSupportedError != nil && v.ClientVersionNotSupportedError.Equals(rhs.ClientVersionNotSupportedError))) { return false } @@ -22327,8 +22179,8 @@ func (v *HistoryService_ReadDLQMessages_Result) Equals(rhs *HistoryService_ReadD } // MarshalLogObject implements zapcore.ObjectMarshaler, enabling -// fast logging of HistoryService_ReadDLQMessages_Result. -func (v *HistoryService_ReadDLQMessages_Result) MarshalLogObject(enc zapcore.ObjectEncoder) (err error) { +// fast logging of HistoryService_QueryWorkflow_Result. +func (v *HistoryService_QueryWorkflow_Result) MarshalLogObject(enc zapcore.ObjectEncoder) (err error) { if v == nil { return nil } @@ -22341,21 +22193,27 @@ func (v *HistoryService_ReadDLQMessages_Result) MarshalLogObject(enc zapcore.Obj if v.InternalServiceError != nil { err = multierr.Append(err, enc.AddObject("internalServiceError", v.InternalServiceError)) } - 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.ShardOwnershipLostError != nil { - err = multierr.Append(err, enc.AddObject("shardOwnershipLostError", v.ShardOwnershipLostError)) + if v.QueryFailedError != nil { + err = multierr.Append(err, enc.AddObject("queryFailedError", v.QueryFailedError)) + } + if v.LimitExceededError != nil { + err = multierr.Append(err, enc.AddObject("limitExceededError", v.LimitExceededError)) + } + if v.ServiceBusyError != nil { + err = multierr.Append(err, enc.AddObject("serviceBusyError", v.ServiceBusyError)) + } + if v.ClientVersionNotSupportedError != nil { + err = multierr.Append(err, enc.AddObject("clientVersionNotSupportedError", v.ClientVersionNotSupportedError)) } return err } // GetSuccess returns the value of Success if it is set or its // zero value if it is unset. -func (v *HistoryService_ReadDLQMessages_Result) GetSuccess() (o *replicator.ReadDLQMessagesResponse) { +func (v *HistoryService_QueryWorkflow_Result) GetSuccess() (o *QueryWorkflowResponse) { if v != nil && v.Success != nil { return v.Success } @@ -22364,13 +22222,13 @@ func (v *HistoryService_ReadDLQMessages_Result) GetSuccess() (o *replicator.Read } // IsSetSuccess returns true if Success is not nil. -func (v *HistoryService_ReadDLQMessages_Result) IsSetSuccess() bool { +func (v *HistoryService_QueryWorkflow_Result) IsSetSuccess() bool { return v != nil && v.Success != nil } // GetBadRequestError returns the value of BadRequestError if it is set or its // zero value if it is unset. -func (v *HistoryService_ReadDLQMessages_Result) GetBadRequestError() (o *shared.BadRequestError) { +func (v *HistoryService_QueryWorkflow_Result) GetBadRequestError() (o *shared.BadRequestError) { if v != nil && v.BadRequestError != nil { return v.BadRequestError } @@ -22379,13 +22237,13 @@ func (v *HistoryService_ReadDLQMessages_Result) GetBadRequestError() (o *shared. } // IsSetBadRequestError returns true if BadRequestError is not nil. -func (v *HistoryService_ReadDLQMessages_Result) IsSetBadRequestError() bool { +func (v *HistoryService_QueryWorkflow_Result) IsSetBadRequestError() bool { return v != nil && v.BadRequestError != nil } // GetInternalServiceError returns the value of InternalServiceError if it is set or its // zero value if it is unset. -func (v *HistoryService_ReadDLQMessages_Result) GetInternalServiceError() (o *shared.InternalServiceError) { +func (v *HistoryService_QueryWorkflow_Result) GetInternalServiceError() (o *shared.InternalServiceError) { if v != nil && v.InternalServiceError != nil { return v.InternalServiceError } @@ -22394,78 +22252,108 @@ func (v *HistoryService_ReadDLQMessages_Result) GetInternalServiceError() (o *sh } // IsSetInternalServiceError returns true if InternalServiceError is not nil. -func (v *HistoryService_ReadDLQMessages_Result) IsSetInternalServiceError() bool { +func (v *HistoryService_QueryWorkflow_Result) IsSetInternalServiceError() bool { return v != nil && v.InternalServiceError != nil } -// GetServiceBusyError returns the value of ServiceBusyError if it is set or its +// GetEntityNotExistError returns the value of EntityNotExistError if it is set or its // zero value if it is unset. -func (v *HistoryService_ReadDLQMessages_Result) GetServiceBusyError() (o *shared.ServiceBusyError) { - if v != nil && v.ServiceBusyError != nil { - return v.ServiceBusyError +func (v *HistoryService_QueryWorkflow_Result) GetEntityNotExistError() (o *shared.EntityNotExistsError) { + if v != nil && v.EntityNotExistError != nil { + return v.EntityNotExistError } return } -// IsSetServiceBusyError returns true if ServiceBusyError is not nil. -func (v *HistoryService_ReadDLQMessages_Result) IsSetServiceBusyError() bool { - return v != nil && v.ServiceBusyError != nil +// IsSetEntityNotExistError returns true if EntityNotExistError is not nil. +func (v *HistoryService_QueryWorkflow_Result) IsSetEntityNotExistError() bool { + return v != nil && v.EntityNotExistError != nil } -// GetEntityNotExistError returns the value of EntityNotExistError if it is set or its +// GetQueryFailedError returns the value of QueryFailedError if it is set or its // zero value if it is unset. -func (v *HistoryService_ReadDLQMessages_Result) GetEntityNotExistError() (o *shared.EntityNotExistsError) { - if v != nil && v.EntityNotExistError != nil { - return v.EntityNotExistError +func (v *HistoryService_QueryWorkflow_Result) GetQueryFailedError() (o *shared.QueryFailedError) { + if v != nil && v.QueryFailedError != nil { + return v.QueryFailedError } return } -// IsSetEntityNotExistError returns true if EntityNotExistError is not nil. -func (v *HistoryService_ReadDLQMessages_Result) IsSetEntityNotExistError() bool { - return v != nil && v.EntityNotExistError != nil +// IsSetQueryFailedError returns true if QueryFailedError is not nil. +func (v *HistoryService_QueryWorkflow_Result) IsSetQueryFailedError() bool { + return v != nil && v.QueryFailedError != nil } -// GetShardOwnershipLostError returns the value of ShardOwnershipLostError if it is set or its +// GetLimitExceededError returns the value of LimitExceededError if it is set or its // zero value if it is unset. -func (v *HistoryService_ReadDLQMessages_Result) GetShardOwnershipLostError() (o *ShardOwnershipLostError) { - if v != nil && v.ShardOwnershipLostError != nil { - return v.ShardOwnershipLostError +func (v *HistoryService_QueryWorkflow_Result) GetLimitExceededError() (o *shared.LimitExceededError) { + if v != nil && v.LimitExceededError != nil { + return v.LimitExceededError } return } -// IsSetShardOwnershipLostError returns true if ShardOwnershipLostError is not nil. -func (v *HistoryService_ReadDLQMessages_Result) IsSetShardOwnershipLostError() bool { - return v != nil && v.ShardOwnershipLostError != nil +// IsSetLimitExceededError returns true if LimitExceededError is not nil. +func (v *HistoryService_QueryWorkflow_Result) IsSetLimitExceededError() bool { + return v != nil && v.LimitExceededError != nil +} + +// GetServiceBusyError returns the value of ServiceBusyError if it is set or its +// zero value if it is unset. +func (v *HistoryService_QueryWorkflow_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 *HistoryService_QueryWorkflow_Result) IsSetServiceBusyError() bool { + return v != nil && v.ServiceBusyError != nil +} + +// GetClientVersionNotSupportedError returns the value of ClientVersionNotSupportedError if it is set or its +// zero value if it is unset. +func (v *HistoryService_QueryWorkflow_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 *HistoryService_QueryWorkflow_Result) IsSetClientVersionNotSupportedError() bool { + return v != nil && v.ClientVersionNotSupportedError != 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 "ReadDLQMessages" for this struct. -func (v *HistoryService_ReadDLQMessages_Result) MethodName() string { - return "ReadDLQMessages" +// This will always be "QueryWorkflow" for this struct. +func (v *HistoryService_QueryWorkflow_Result) MethodName() string { + return "QueryWorkflow" } // EnvelopeType returns the kind of value inside this struct. // // This will always be Reply for this struct. -func (v *HistoryService_ReadDLQMessages_Result) EnvelopeType() wire.EnvelopeType { +func (v *HistoryService_QueryWorkflow_Result) EnvelopeType() wire.EnvelopeType { return wire.Reply } -// HistoryService_ReapplyEvents_Args represents the arguments for the HistoryService.ReapplyEvents function. +// HistoryService_ReadDLQMessages_Args represents the arguments for the HistoryService.ReadDLQMessages function. // -// The arguments for ReapplyEvents are sent and received over the wire as this struct. -type HistoryService_ReapplyEvents_Args struct { - ReapplyEventsRequest *ReapplyEventsRequest `json:"reapplyEventsRequest,omitempty"` +// The arguments for ReadDLQMessages are sent and received over the wire as this struct. +type HistoryService_ReadDLQMessages_Args struct { + Request *replicator.ReadDLQMessagesRequest `json:"request,omitempty"` } -// ToWire translates a HistoryService_ReapplyEvents_Args struct into a Thrift-level intermediate +// ToWire translates a HistoryService_ReadDLQMessages_Args struct into a Thrift-level intermediate // representation. This intermediate representation may be serialized // into bytes using a ThriftRW protocol implementation. // @@ -22480,7 +22368,7 @@ type HistoryService_ReapplyEvents_Args struct { // if err := binaryProtocol.Encode(x, writer); err != nil { // return err // } -func (v *HistoryService_ReapplyEvents_Args) ToWire() (wire.Value, error) { +func (v *HistoryService_ReadDLQMessages_Args) ToWire() (wire.Value, error) { var ( fields [1]wire.Field i int = 0 @@ -22488,8 +22376,8 @@ func (v *HistoryService_ReapplyEvents_Args) ToWire() (wire.Value, error) { err error ) - if v.ReapplyEventsRequest != nil { - w, err = v.ReapplyEventsRequest.ToWire() + if v.Request != nil { + w, err = v.Request.ToWire() if err != nil { return w, err } @@ -22500,17 +22388,17 @@ func (v *HistoryService_ReapplyEvents_Args) ToWire() (wire.Value, error) { return wire.NewValueStruct(wire.Struct{Fields: fields[:i]}), nil } -func _ReapplyEventsRequest_1_Read(w wire.Value) (*ReapplyEventsRequest, error) { - var v ReapplyEventsRequest +func _ReadDLQMessagesRequest_Read(w wire.Value) (*replicator.ReadDLQMessagesRequest, error) { + var v replicator.ReadDLQMessagesRequest err := v.FromWire(w) return &v, err } -// FromWire deserializes a HistoryService_ReapplyEvents_Args struct from its Thrift-level +// FromWire deserializes a HistoryService_ReadDLQMessages_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 HistoryService_ReapplyEvents_Args struct +// An error is returned if we were unable to build a HistoryService_ReadDLQMessages_Args struct // from the provided intermediate representation. // // x, err := binaryProtocol.Decode(reader, wire.TStruct) @@ -22518,19 +22406,19 @@ func _ReapplyEventsRequest_1_Read(w wire.Value) (*ReapplyEventsRequest, error) { // return nil, err // } // -// var v HistoryService_ReapplyEvents_Args +// var v HistoryService_ReadDLQMessages_Args // if err := v.FromWire(x); err != nil { // return nil, err // } // return &v, nil -func (v *HistoryService_ReapplyEvents_Args) FromWire(w wire.Value) error { +func (v *HistoryService_ReadDLQMessages_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.ReapplyEventsRequest, err = _ReapplyEventsRequest_1_Read(field.Value) + v.Request, err = _ReadDLQMessagesRequest_Read(field.Value) if err != nil { return err } @@ -22542,34 +22430,34 @@ func (v *HistoryService_ReapplyEvents_Args) FromWire(w wire.Value) error { return nil } -// String returns a readable string representation of a HistoryService_ReapplyEvents_Args +// String returns a readable string representation of a HistoryService_ReadDLQMessages_Args // struct. -func (v *HistoryService_ReapplyEvents_Args) String() string { +func (v *HistoryService_ReadDLQMessages_Args) String() string { if v == nil { return "" } var fields [1]string i := 0 - if v.ReapplyEventsRequest != nil { - fields[i] = fmt.Sprintf("ReapplyEventsRequest: %v", v.ReapplyEventsRequest) + if v.Request != nil { + fields[i] = fmt.Sprintf("Request: %v", v.Request) i++ } - return fmt.Sprintf("HistoryService_ReapplyEvents_Args{%v}", strings.Join(fields[:i], ", ")) + return fmt.Sprintf("HistoryService_ReadDLQMessages_Args{%v}", strings.Join(fields[:i], ", ")) } -// Equals returns true if all the fields of this HistoryService_ReapplyEvents_Args match the -// provided HistoryService_ReapplyEvents_Args. +// Equals returns true if all the fields of this HistoryService_ReadDLQMessages_Args match the +// provided HistoryService_ReadDLQMessages_Args. // // This function performs a deep comparison. -func (v *HistoryService_ReapplyEvents_Args) Equals(rhs *HistoryService_ReapplyEvents_Args) bool { +func (v *HistoryService_ReadDLQMessages_Args) Equals(rhs *HistoryService_ReadDLQMessages_Args) bool { if v == nil { return rhs == nil } else if rhs == nil { return false } - if !((v.ReapplyEventsRequest == nil && rhs.ReapplyEventsRequest == nil) || (v.ReapplyEventsRequest != nil && rhs.ReapplyEventsRequest != nil && v.ReapplyEventsRequest.Equals(rhs.ReapplyEventsRequest))) { + if !((v.Request == nil && rhs.Request == nil) || (v.Request != nil && rhs.Request != nil && v.Request.Equals(rhs.Request))) { return false } @@ -22577,169 +22465,154 @@ func (v *HistoryService_ReapplyEvents_Args) Equals(rhs *HistoryService_ReapplyEv } // MarshalLogObject implements zapcore.ObjectMarshaler, enabling -// fast logging of HistoryService_ReapplyEvents_Args. -func (v *HistoryService_ReapplyEvents_Args) MarshalLogObject(enc zapcore.ObjectEncoder) (err error) { +// fast logging of HistoryService_ReadDLQMessages_Args. +func (v *HistoryService_ReadDLQMessages_Args) MarshalLogObject(enc zapcore.ObjectEncoder) (err error) { if v == nil { return nil } - if v.ReapplyEventsRequest != nil { - err = multierr.Append(err, enc.AddObject("reapplyEventsRequest", v.ReapplyEventsRequest)) + if v.Request != nil { + err = multierr.Append(err, enc.AddObject("request", v.Request)) } return err } -// GetReapplyEventsRequest returns the value of ReapplyEventsRequest if it is set or its +// GetRequest returns the value of Request if it is set or its // zero value if it is unset. -func (v *HistoryService_ReapplyEvents_Args) GetReapplyEventsRequest() (o *ReapplyEventsRequest) { - if v != nil && v.ReapplyEventsRequest != nil { - return v.ReapplyEventsRequest - } - +func (v *HistoryService_ReadDLQMessages_Args) GetRequest() (o *replicator.ReadDLQMessagesRequest) { + if v != nil && v.Request != nil { + return v.Request + } + return } -// IsSetReapplyEventsRequest returns true if ReapplyEventsRequest is not nil. -func (v *HistoryService_ReapplyEvents_Args) IsSetReapplyEventsRequest() bool { - return v != nil && v.ReapplyEventsRequest != nil +// IsSetRequest returns true if Request is not nil. +func (v *HistoryService_ReadDLQMessages_Args) IsSetRequest() bool { + return v != nil && v.Request != 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 "ReapplyEvents" for this struct. -func (v *HistoryService_ReapplyEvents_Args) MethodName() string { - return "ReapplyEvents" +// This will always be "ReadDLQMessages" for this struct. +func (v *HistoryService_ReadDLQMessages_Args) MethodName() string { + return "ReadDLQMessages" } // EnvelopeType returns the kind of value inside this struct. // // This will always be Call for this struct. -func (v *HistoryService_ReapplyEvents_Args) EnvelopeType() wire.EnvelopeType { +func (v *HistoryService_ReadDLQMessages_Args) EnvelopeType() wire.EnvelopeType { return wire.Call } -// HistoryService_ReapplyEvents_Helper provides functions that aid in handling the -// parameters and return values of the HistoryService.ReapplyEvents +// HistoryService_ReadDLQMessages_Helper provides functions that aid in handling the +// parameters and return values of the HistoryService.ReadDLQMessages // function. -var HistoryService_ReapplyEvents_Helper = struct { - // Args accepts the parameters of ReapplyEvents in-order and returns +var HistoryService_ReadDLQMessages_Helper = struct { + // Args accepts the parameters of ReadDLQMessages in-order and returns // the arguments struct for the function. Args func( - reapplyEventsRequest *ReapplyEventsRequest, - ) *HistoryService_ReapplyEvents_Args + request *replicator.ReadDLQMessagesRequest, + ) *HistoryService_ReadDLQMessages_Args // IsException returns true if the given error can be thrown - // by ReapplyEvents. + // by ReadDLQMessages. // - // An error can be thrown by ReapplyEvents only if the + // An error can be thrown by ReadDLQMessages 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 ReapplyEvents - // given the error returned by it. The provided error may - // be nil if ReapplyEvents did not fail. + // WrapResponse returns the result struct for ReadDLQMessages + // given its return value and error. // - // This allows mapping errors returned by ReapplyEvents into a - // serializable result struct. WrapResponse returns a - // non-nil error if the provided error cannot be thrown by - // ReapplyEvents + // This allows mapping values and errors returned by + // ReadDLQMessages into a serializable result struct. + // WrapResponse returns a non-nil error if the provided + // error cannot be thrown by ReadDLQMessages // - // err := ReapplyEvents(args) - // result, err := HistoryService_ReapplyEvents_Helper.WrapResponse(err) + // value, err := ReadDLQMessages(args) + // result, err := HistoryService_ReadDLQMessages_Helper.WrapResponse(value, err) // if err != nil { - // return fmt.Errorf("unexpected error from ReapplyEvents: %v", err) + // return fmt.Errorf("unexpected error from ReadDLQMessages: %v", err) // } // serialize(result) - WrapResponse func(error) (*HistoryService_ReapplyEvents_Result, error) + WrapResponse func(*replicator.ReadDLQMessagesResponse, error) (*HistoryService_ReadDLQMessages_Result, error) - // UnwrapResponse takes the result struct for ReapplyEvents - // and returns the erorr returned by it (if any). + // UnwrapResponse takes the result struct for ReadDLQMessages + // and returns the value or error returned by it. // - // The error is non-nil only if ReapplyEvents threw an + // The error is non-nil only if ReadDLQMessages threw an // exception. // // result := deserialize(bytes) - // err := HistoryService_ReapplyEvents_Helper.UnwrapResponse(result) - UnwrapResponse func(*HistoryService_ReapplyEvents_Result) error + // value, err := HistoryService_ReadDLQMessages_Helper.UnwrapResponse(result) + UnwrapResponse func(*HistoryService_ReadDLQMessages_Result) (*replicator.ReadDLQMessagesResponse, error) }{} func init() { - HistoryService_ReapplyEvents_Helper.Args = func( - reapplyEventsRequest *ReapplyEventsRequest, - ) *HistoryService_ReapplyEvents_Args { - return &HistoryService_ReapplyEvents_Args{ - ReapplyEventsRequest: reapplyEventsRequest, + HistoryService_ReadDLQMessages_Helper.Args = func( + request *replicator.ReadDLQMessagesRequest, + ) *HistoryService_ReadDLQMessages_Args { + return &HistoryService_ReadDLQMessages_Args{ + Request: request, } } - HistoryService_ReapplyEvents_Helper.IsException = func(err error) bool { + HistoryService_ReadDLQMessages_Helper.IsException = func(err error) bool { switch err.(type) { case *shared.BadRequestError: return true case *shared.InternalServiceError: return true - case *shared.DomainNotActiveError: - return true - case *shared.LimitExceededError: - return true case *shared.ServiceBusyError: return true - case *ShardOwnershipLostError: - return true case *shared.EntityNotExistsError: return true + case *ShardOwnershipLostError: + return true default: return false } } - HistoryService_ReapplyEvents_Helper.WrapResponse = func(err error) (*HistoryService_ReapplyEvents_Result, error) { + HistoryService_ReadDLQMessages_Helper.WrapResponse = func(success *replicator.ReadDLQMessagesResponse, err error) (*HistoryService_ReadDLQMessages_Result, error) { if err == nil { - return &HistoryService_ReapplyEvents_Result{}, nil + return &HistoryService_ReadDLQMessages_Result{Success: success}, nil } switch e := err.(type) { case *shared.BadRequestError: if e == nil { - return nil, errors.New("WrapResponse received non-nil error type with nil value for HistoryService_ReapplyEvents_Result.BadRequestError") + return nil, errors.New("WrapResponse received non-nil error type with nil value for HistoryService_ReadDLQMessages_Result.BadRequestError") } - return &HistoryService_ReapplyEvents_Result{BadRequestError: e}, nil + return &HistoryService_ReadDLQMessages_Result{BadRequestError: e}, nil case *shared.InternalServiceError: if e == nil { - return nil, errors.New("WrapResponse received non-nil error type with nil value for HistoryService_ReapplyEvents_Result.InternalServiceError") - } - return &HistoryService_ReapplyEvents_Result{InternalServiceError: e}, nil - case *shared.DomainNotActiveError: - if e == nil { - return nil, errors.New("WrapResponse received non-nil error type with nil value for HistoryService_ReapplyEvents_Result.DomainNotActiveError") - } - return &HistoryService_ReapplyEvents_Result{DomainNotActiveError: e}, nil - case *shared.LimitExceededError: - if e == nil { - return nil, errors.New("WrapResponse received non-nil error type with nil value for HistoryService_ReapplyEvents_Result.LimitExceededError") + return nil, errors.New("WrapResponse received non-nil error type with nil value for HistoryService_ReadDLQMessages_Result.InternalServiceError") } - return &HistoryService_ReapplyEvents_Result{LimitExceededError: e}, nil + return &HistoryService_ReadDLQMessages_Result{InternalServiceError: e}, nil case *shared.ServiceBusyError: if e == nil { - return nil, errors.New("WrapResponse received non-nil error type with nil value for HistoryService_ReapplyEvents_Result.ServiceBusyError") + return nil, errors.New("WrapResponse received non-nil error type with nil value for HistoryService_ReadDLQMessages_Result.ServiceBusyError") } - return &HistoryService_ReapplyEvents_Result{ServiceBusyError: e}, nil - case *ShardOwnershipLostError: + return &HistoryService_ReadDLQMessages_Result{ServiceBusyError: e}, nil + case *shared.EntityNotExistsError: if e == nil { - return nil, errors.New("WrapResponse received non-nil error type with nil value for HistoryService_ReapplyEvents_Result.ShardOwnershipLostError") + return nil, errors.New("WrapResponse received non-nil error type with nil value for HistoryService_ReadDLQMessages_Result.EntityNotExistError") } - return &HistoryService_ReapplyEvents_Result{ShardOwnershipLostError: e}, nil - case *shared.EntityNotExistsError: + return &HistoryService_ReadDLQMessages_Result{EntityNotExistError: e}, nil + case *ShardOwnershipLostError: if e == nil { - return nil, errors.New("WrapResponse received non-nil error type with nil value for HistoryService_ReapplyEvents_Result.EntityNotExistError") + return nil, errors.New("WrapResponse received non-nil error type with nil value for HistoryService_ReadDLQMessages_Result.ShardOwnershipLostError") } - return &HistoryService_ReapplyEvents_Result{EntityNotExistError: e}, nil + return &HistoryService_ReadDLQMessages_Result{ShardOwnershipLostError: e}, nil } return nil, err } - HistoryService_ReapplyEvents_Helper.UnwrapResponse = func(result *HistoryService_ReapplyEvents_Result) (err error) { + HistoryService_ReadDLQMessages_Helper.UnwrapResponse = func(result *HistoryService_ReadDLQMessages_Result) (success *replicator.ReadDLQMessagesResponse, err error) { if result.BadRequestError != nil { err = result.BadRequestError return @@ -22748,45 +22621,46 @@ func init() { err = result.InternalServiceError return } - if result.DomainNotActiveError != nil { - err = result.DomainNotActiveError - return - } - if result.LimitExceededError != nil { - err = result.LimitExceededError - return - } if result.ServiceBusyError != nil { err = result.ServiceBusyError return } + if result.EntityNotExistError != nil { + err = result.EntityNotExistError + return + } if result.ShardOwnershipLostError != nil { err = result.ShardOwnershipLostError return } - if result.EntityNotExistError != nil { - err = result.EntityNotExistError + + if result.Success != nil { + success = result.Success return } + + err = errors.New("expected a non-void result") return } } -// HistoryService_ReapplyEvents_Result represents the result of a HistoryService.ReapplyEvents function call. +// HistoryService_ReadDLQMessages_Result represents the result of a HistoryService.ReadDLQMessages function call. // -// The result of a ReapplyEvents execution is sent and received over the wire as this struct. -type HistoryService_ReapplyEvents_Result struct { - BadRequestError *shared.BadRequestError `json:"badRequestError,omitempty"` - InternalServiceError *shared.InternalServiceError `json:"internalServiceError,omitempty"` - DomainNotActiveError *shared.DomainNotActiveError `json:"domainNotActiveError,omitempty"` - LimitExceededError *shared.LimitExceededError `json:"limitExceededError,omitempty"` - ServiceBusyError *shared.ServiceBusyError `json:"serviceBusyError,omitempty"` - ShardOwnershipLostError *ShardOwnershipLostError `json:"shardOwnershipLostError,omitempty"` - EntityNotExistError *shared.EntityNotExistsError `json:"entityNotExistError,omitempty"` +// The result of a ReadDLQMessages execution is sent and received over the wire as this struct. +// +// Success is set only if the function did not throw an exception. +type HistoryService_ReadDLQMessages_Result struct { + // Value returned by ReadDLQMessages after a successful execution. + Success *replicator.ReadDLQMessagesResponse `json:"success,omitempty"` + BadRequestError *shared.BadRequestError `json:"badRequestError,omitempty"` + InternalServiceError *shared.InternalServiceError `json:"internalServiceError,omitempty"` + ServiceBusyError *shared.ServiceBusyError `json:"serviceBusyError,omitempty"` + EntityNotExistError *shared.EntityNotExistsError `json:"entityNotExistError,omitempty"` + ShardOwnershipLostError *ShardOwnershipLostError `json:"shardOwnershipLostError,omitempty"` } -// ToWire translates a HistoryService_ReapplyEvents_Result struct into a Thrift-level intermediate +// ToWire translates a HistoryService_ReadDLQMessages_Result struct into a Thrift-level intermediate // representation. This intermediate representation may be serialized // into bytes using a ThriftRW protocol implementation. // @@ -22801,14 +22675,22 @@ type HistoryService_ReapplyEvents_Result struct { // if err := binaryProtocol.Encode(x, writer); err != nil { // return err // } -func (v *HistoryService_ReapplyEvents_Result) ToWire() (wire.Value, error) { +func (v *HistoryService_ReadDLQMessages_Result) ToWire() (wire.Value, error) { var ( - fields [7]wire.Field + 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.BadRequestError != nil { w, err = v.BadRequestError.ToWire() if err != nil { @@ -22825,65 +22707,49 @@ func (v *HistoryService_ReapplyEvents_Result) ToWire() (wire.Value, error) { fields[i] = wire.Field{ID: 2, Value: w} i++ } - if v.DomainNotActiveError != nil { - w, err = v.DomainNotActiveError.ToWire() + if v.ServiceBusyError != nil { + w, err = v.ServiceBusyError.ToWire() if err != nil { return w, err } fields[i] = wire.Field{ID: 3, Value: w} i++ } - if v.LimitExceededError != nil { - w, err = v.LimitExceededError.ToWire() + if v.EntityNotExistError != nil { + w, err = v.EntityNotExistError.ToWire() if err != nil { return w, err } fields[i] = wire.Field{ID: 4, Value: w} i++ } - if v.ServiceBusyError != nil { - w, err = v.ServiceBusyError.ToWire() - if err != nil { - return w, err - } - fields[i] = wire.Field{ID: 5, Value: w} - i++ - } if v.ShardOwnershipLostError != nil { w, err = v.ShardOwnershipLostError.ToWire() if err != nil { return w, err } - fields[i] = wire.Field{ID: 6, Value: w} - i++ - } - if v.EntityNotExistError != nil { - w, err = v.EntityNotExistError.ToWire() - if err != nil { - return w, err - } - fields[i] = wire.Field{ID: 7, Value: w} + fields[i] = wire.Field{ID: 5, Value: w} i++ } - if i > 1 { - return wire.Value{}, fmt.Errorf("HistoryService_ReapplyEvents_Result should have at most one field: got %v fields", i) + if i != 1 { + return wire.Value{}, fmt.Errorf("HistoryService_ReadDLQMessages_Result should have exactly one field: got %v fields", i) } return wire.NewValueStruct(wire.Struct{Fields: fields[:i]}), nil } -func _DomainNotActiveError_Read(w wire.Value) (*shared.DomainNotActiveError, error) { - var v shared.DomainNotActiveError +func _ReadDLQMessagesResponse_Read(w wire.Value) (*replicator.ReadDLQMessagesResponse, error) { + var v replicator.ReadDLQMessagesResponse err := v.FromWire(w) return &v, err } -// FromWire deserializes a HistoryService_ReapplyEvents_Result struct from its Thrift-level +// FromWire deserializes a HistoryService_ReadDLQMessages_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 HistoryService_ReapplyEvents_Result struct +// An error is returned if we were unable to build a HistoryService_ReadDLQMessages_Result struct // from the provided intermediate representation. // // x, err := binaryProtocol.Decode(reader, wire.TStruct) @@ -22891,16 +22757,24 @@ func _DomainNotActiveError_Read(w wire.Value) (*shared.DomainNotActiveError, err // return nil, err // } // -// var v HistoryService_ReapplyEvents_Result +// var v HistoryService_ReadDLQMessages_Result // if err := v.FromWire(x); err != nil { // return nil, err // } // return &v, nil -func (v *HistoryService_ReapplyEvents_Result) FromWire(w wire.Value) error { +func (v *HistoryService_ReadDLQMessages_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 = _ReadDLQMessagesResponse_Read(field.Value) + if err != nil { + return err + } + + } case 1: if field.Value.Type() == wire.TStruct { v.BadRequestError, err = _BadRequestError_Read(field.Value) @@ -22919,7 +22793,7 @@ func (v *HistoryService_ReapplyEvents_Result) FromWire(w wire.Value) error { } case 3: if field.Value.Type() == wire.TStruct { - v.DomainNotActiveError, err = _DomainNotActiveError_Read(field.Value) + v.ServiceBusyError, err = _ServiceBusyError_Read(field.Value) if err != nil { return err } @@ -22927,77 +22801,62 @@ func (v *HistoryService_ReapplyEvents_Result) FromWire(w wire.Value) error { } case 4: if field.Value.Type() == wire.TStruct { - v.LimitExceededError, err = _LimitExceededError_Read(field.Value) + v.EntityNotExistError, err = _EntityNotExistsError_Read(field.Value) if err != nil { return err } } case 5: - if field.Value.Type() == wire.TStruct { - v.ServiceBusyError, err = _ServiceBusyError_Read(field.Value) - if err != nil { - return err - } - - } - case 6: if field.Value.Type() == wire.TStruct { v.ShardOwnershipLostError, err = _ShardOwnershipLostError_Read(field.Value) if err != nil { return err } - } - case 7: - if field.Value.Type() == wire.TStruct { - v.EntityNotExistError, err = _EntityNotExistsError_Read(field.Value) - if err != nil { - return err - } - } } } count := 0 + if v.Success != nil { + count++ + } if v.BadRequestError != nil { count++ } if v.InternalServiceError != nil { count++ } - if v.DomainNotActiveError != nil { + if v.ServiceBusyError != nil { count++ } - if v.LimitExceededError != nil { - count++ - } - if v.ServiceBusyError != nil { + if v.EntityNotExistError != nil { count++ } if v.ShardOwnershipLostError != nil { count++ } - if v.EntityNotExistError != nil { - count++ - } - if count > 1 { - return fmt.Errorf("HistoryService_ReapplyEvents_Result should have at most one field: got %v fields", count) + if count != 1 { + return fmt.Errorf("HistoryService_ReadDLQMessages_Result should have exactly one field: got %v fields", count) } return nil } -// String returns a readable string representation of a HistoryService_ReapplyEvents_Result +// String returns a readable string representation of a HistoryService_ReadDLQMessages_Result // struct. -func (v *HistoryService_ReapplyEvents_Result) String() string { +func (v *HistoryService_ReadDLQMessages_Result) String() string { if v == nil { return "" } - var fields [7]string + var fields [6]string i := 0 + if v.Success != nil { + fields[i] = fmt.Sprintf("Success: %v", v.Success) + i++ + } if v.BadRequestError != nil { fields[i] = fmt.Sprintf("BadRequestError: %v", v.BadRequestError) i++ @@ -23006,59 +22865,48 @@ func (v *HistoryService_ReapplyEvents_Result) String() string { fields[i] = fmt.Sprintf("InternalServiceError: %v", v.InternalServiceError) i++ } - if v.DomainNotActiveError != nil { - fields[i] = fmt.Sprintf("DomainNotActiveError: %v", v.DomainNotActiveError) - i++ - } - if v.LimitExceededError != nil { - fields[i] = fmt.Sprintf("LimitExceededError: %v", v.LimitExceededError) - i++ - } if v.ServiceBusyError != nil { fields[i] = fmt.Sprintf("ServiceBusyError: %v", v.ServiceBusyError) i++ } - if v.ShardOwnershipLostError != nil { - fields[i] = fmt.Sprintf("ShardOwnershipLostError: %v", v.ShardOwnershipLostError) - i++ - } if v.EntityNotExistError != nil { fields[i] = fmt.Sprintf("EntityNotExistError: %v", v.EntityNotExistError) i++ } + if v.ShardOwnershipLostError != nil { + fields[i] = fmt.Sprintf("ShardOwnershipLostError: %v", v.ShardOwnershipLostError) + i++ + } - return fmt.Sprintf("HistoryService_ReapplyEvents_Result{%v}", strings.Join(fields[:i], ", ")) + return fmt.Sprintf("HistoryService_ReadDLQMessages_Result{%v}", strings.Join(fields[:i], ", ")) } -// Equals returns true if all the fields of this HistoryService_ReapplyEvents_Result match the -// provided HistoryService_ReapplyEvents_Result. +// Equals returns true if all the fields of this HistoryService_ReadDLQMessages_Result match the +// provided HistoryService_ReadDLQMessages_Result. // // This function performs a deep comparison. -func (v *HistoryService_ReapplyEvents_Result) Equals(rhs *HistoryService_ReapplyEvents_Result) bool { +func (v *HistoryService_ReadDLQMessages_Result) Equals(rhs *HistoryService_ReadDLQMessages_Result) bool { if v == nil { return rhs == nil } else if rhs == nil { return false } - if !((v.BadRequestError == nil && rhs.BadRequestError == nil) || (v.BadRequestError != nil && rhs.BadRequestError != nil && v.BadRequestError.Equals(rhs.BadRequestError))) { - return false - } - if !((v.InternalServiceError == nil && rhs.InternalServiceError == nil) || (v.InternalServiceError != nil && rhs.InternalServiceError != nil && v.InternalServiceError.Equals(rhs.InternalServiceError))) { + 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))) { + if !((v.BadRequestError == nil && rhs.BadRequestError == nil) || (v.BadRequestError != nil && rhs.BadRequestError != nil && v.BadRequestError.Equals(rhs.BadRequestError))) { return false } - if !((v.LimitExceededError == nil && rhs.LimitExceededError == nil) || (v.LimitExceededError != nil && rhs.LimitExceededError != nil && v.LimitExceededError.Equals(rhs.LimitExceededError))) { + if !((v.InternalServiceError == nil && rhs.InternalServiceError == nil) || (v.InternalServiceError != nil && rhs.InternalServiceError != nil && v.InternalServiceError.Equals(rhs.InternalServiceError))) { return false } if !((v.ServiceBusyError == nil && rhs.ServiceBusyError == nil) || (v.ServiceBusyError != nil && rhs.ServiceBusyError != nil && v.ServiceBusyError.Equals(rhs.ServiceBusyError))) { return false } - if !((v.ShardOwnershipLostError == nil && rhs.ShardOwnershipLostError == nil) || (v.ShardOwnershipLostError != nil && rhs.ShardOwnershipLostError != nil && v.ShardOwnershipLostError.Equals(rhs.ShardOwnershipLostError))) { + if !((v.EntityNotExistError == nil && rhs.EntityNotExistError == nil) || (v.EntityNotExistError != nil && rhs.EntityNotExistError != nil && v.EntityNotExistError.Equals(rhs.EntityNotExistError))) { return false } - if !((v.EntityNotExistError == nil && rhs.EntityNotExistError == nil) || (v.EntityNotExistError != nil && rhs.EntityNotExistError != nil && v.EntityNotExistError.Equals(rhs.EntityNotExistError))) { + if !((v.ShardOwnershipLostError == nil && rhs.ShardOwnershipLostError == nil) || (v.ShardOwnershipLostError != nil && rhs.ShardOwnershipLostError != nil && v.ShardOwnershipLostError.Equals(rhs.ShardOwnershipLostError))) { return false } @@ -23066,38 +22914,50 @@ func (v *HistoryService_ReapplyEvents_Result) Equals(rhs *HistoryService_Reapply } // MarshalLogObject implements zapcore.ObjectMarshaler, enabling -// fast logging of HistoryService_ReapplyEvents_Result. -func (v *HistoryService_ReapplyEvents_Result) MarshalLogObject(enc zapcore.ObjectEncoder) (err error) { +// fast logging of HistoryService_ReadDLQMessages_Result. +func (v *HistoryService_ReadDLQMessages_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.BadRequestError != nil { err = multierr.Append(err, enc.AddObject("badRequestError", v.BadRequestError)) } if v.InternalServiceError != nil { err = multierr.Append(err, enc.AddObject("internalServiceError", v.InternalServiceError)) } - if v.DomainNotActiveError != nil { - err = multierr.Append(err, enc.AddObject("domainNotActiveError", v.DomainNotActiveError)) - } - if v.LimitExceededError != nil { - err = multierr.Append(err, enc.AddObject("limitExceededError", v.LimitExceededError)) - } if v.ServiceBusyError != nil { err = multierr.Append(err, enc.AddObject("serviceBusyError", v.ServiceBusyError)) } - if v.ShardOwnershipLostError != nil { - err = multierr.Append(err, enc.AddObject("shardOwnershipLostError", v.ShardOwnershipLostError)) - } if v.EntityNotExistError != nil { err = multierr.Append(err, enc.AddObject("entityNotExistError", v.EntityNotExistError)) } + if v.ShardOwnershipLostError != nil { + err = multierr.Append(err, enc.AddObject("shardOwnershipLostError", v.ShardOwnershipLostError)) + } return err } +// GetSuccess returns the value of Success if it is set or its +// zero value if it is unset. +func (v *HistoryService_ReadDLQMessages_Result) GetSuccess() (o *replicator.ReadDLQMessagesResponse) { + if v != nil && v.Success != nil { + return v.Success + } + + return +} + +// IsSetSuccess returns true if Success is not nil. +func (v *HistoryService_ReadDLQMessages_Result) IsSetSuccess() bool { + return v != nil && v.Success != nil +} + // GetBadRequestError returns the value of BadRequestError if it is set or its // zero value if it is unset. -func (v *HistoryService_ReapplyEvents_Result) GetBadRequestError() (o *shared.BadRequestError) { +func (v *HistoryService_ReadDLQMessages_Result) GetBadRequestError() (o *shared.BadRequestError) { if v != nil && v.BadRequestError != nil { return v.BadRequestError } @@ -23106,13 +22966,13 @@ func (v *HistoryService_ReapplyEvents_Result) GetBadRequestError() (o *shared.Ba } // IsSetBadRequestError returns true if BadRequestError is not nil. -func (v *HistoryService_ReapplyEvents_Result) IsSetBadRequestError() bool { +func (v *HistoryService_ReadDLQMessages_Result) IsSetBadRequestError() bool { return v != nil && v.BadRequestError != nil } // GetInternalServiceError returns the value of InternalServiceError if it is set or its // zero value if it is unset. -func (v *HistoryService_ReapplyEvents_Result) GetInternalServiceError() (o *shared.InternalServiceError) { +func (v *HistoryService_ReadDLQMessages_Result) GetInternalServiceError() (o *shared.InternalServiceError) { if v != nil && v.InternalServiceError != nil { return v.InternalServiceError } @@ -23121,43 +22981,13 @@ func (v *HistoryService_ReapplyEvents_Result) GetInternalServiceError() (o *shar } // IsSetInternalServiceError returns true if InternalServiceError is not nil. -func (v *HistoryService_ReapplyEvents_Result) IsSetInternalServiceError() bool { +func (v *HistoryService_ReadDLQMessages_Result) IsSetInternalServiceError() bool { return v != nil && v.InternalServiceError != nil } -// GetDomainNotActiveError returns the value of DomainNotActiveError if it is set or its -// zero value if it is unset. -func (v *HistoryService_ReapplyEvents_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 *HistoryService_ReapplyEvents_Result) IsSetDomainNotActiveError() bool { - return v != nil && v.DomainNotActiveError != nil -} - -// GetLimitExceededError returns the value of LimitExceededError if it is set or its -// zero value if it is unset. -func (v *HistoryService_ReapplyEvents_Result) GetLimitExceededError() (o *shared.LimitExceededError) { - if v != nil && v.LimitExceededError != nil { - return v.LimitExceededError - } - - return -} - -// IsSetLimitExceededError returns true if LimitExceededError is not nil. -func (v *HistoryService_ReapplyEvents_Result) IsSetLimitExceededError() bool { - return v != nil && v.LimitExceededError != nil -} - // GetServiceBusyError returns the value of ServiceBusyError if it is set or its // zero value if it is unset. -func (v *HistoryService_ReapplyEvents_Result) GetServiceBusyError() (o *shared.ServiceBusyError) { +func (v *HistoryService_ReadDLQMessages_Result) GetServiceBusyError() (o *shared.ServiceBusyError) { if v != nil && v.ServiceBusyError != nil { return v.ServiceBusyError } @@ -23166,63 +22996,63 @@ func (v *HistoryService_ReapplyEvents_Result) GetServiceBusyError() (o *shared.S } // IsSetServiceBusyError returns true if ServiceBusyError is not nil. -func (v *HistoryService_ReapplyEvents_Result) IsSetServiceBusyError() bool { +func (v *HistoryService_ReadDLQMessages_Result) IsSetServiceBusyError() bool { return v != nil && v.ServiceBusyError != nil } -// GetShardOwnershipLostError returns the value of ShardOwnershipLostError if it is set or its +// GetEntityNotExistError returns the value of EntityNotExistError if it is set or its // zero value if it is unset. -func (v *HistoryService_ReapplyEvents_Result) GetShardOwnershipLostError() (o *ShardOwnershipLostError) { - if v != nil && v.ShardOwnershipLostError != nil { - return v.ShardOwnershipLostError +func (v *HistoryService_ReadDLQMessages_Result) GetEntityNotExistError() (o *shared.EntityNotExistsError) { + if v != nil && v.EntityNotExistError != nil { + return v.EntityNotExistError } return } -// IsSetShardOwnershipLostError returns true if ShardOwnershipLostError is not nil. -func (v *HistoryService_ReapplyEvents_Result) IsSetShardOwnershipLostError() bool { - return v != nil && v.ShardOwnershipLostError != nil +// IsSetEntityNotExistError returns true if EntityNotExistError is not nil. +func (v *HistoryService_ReadDLQMessages_Result) IsSetEntityNotExistError() bool { + return v != nil && v.EntityNotExistError != nil } -// GetEntityNotExistError returns the value of EntityNotExistError if it is set or its +// GetShardOwnershipLostError returns the value of ShardOwnershipLostError if it is set or its // zero value if it is unset. -func (v *HistoryService_ReapplyEvents_Result) GetEntityNotExistError() (o *shared.EntityNotExistsError) { - if v != nil && v.EntityNotExistError != nil { - return v.EntityNotExistError +func (v *HistoryService_ReadDLQMessages_Result) GetShardOwnershipLostError() (o *ShardOwnershipLostError) { + if v != nil && v.ShardOwnershipLostError != nil { + return v.ShardOwnershipLostError } return } -// IsSetEntityNotExistError returns true if EntityNotExistError is not nil. -func (v *HistoryService_ReapplyEvents_Result) IsSetEntityNotExistError() bool { - return v != nil && v.EntityNotExistError != nil +// IsSetShardOwnershipLostError returns true if ShardOwnershipLostError is not nil. +func (v *HistoryService_ReadDLQMessages_Result) IsSetShardOwnershipLostError() bool { + return v != nil && v.ShardOwnershipLostError != 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 "ReapplyEvents" for this struct. -func (v *HistoryService_ReapplyEvents_Result) MethodName() string { - return "ReapplyEvents" +// This will always be "ReadDLQMessages" for this struct. +func (v *HistoryService_ReadDLQMessages_Result) MethodName() string { + return "ReadDLQMessages" } // EnvelopeType returns the kind of value inside this struct. // // This will always be Reply for this struct. -func (v *HistoryService_ReapplyEvents_Result) EnvelopeType() wire.EnvelopeType { +func (v *HistoryService_ReadDLQMessages_Result) EnvelopeType() wire.EnvelopeType { return wire.Reply } -// HistoryService_RecordActivityTaskHeartbeat_Args represents the arguments for the HistoryService.RecordActivityTaskHeartbeat function. +// HistoryService_ReapplyEvents_Args represents the arguments for the HistoryService.ReapplyEvents function. // -// The arguments for RecordActivityTaskHeartbeat are sent and received over the wire as this struct. -type HistoryService_RecordActivityTaskHeartbeat_Args struct { - HeartbeatRequest *RecordActivityTaskHeartbeatRequest `json:"heartbeatRequest,omitempty"` +// The arguments for ReapplyEvents are sent and received over the wire as this struct. +type HistoryService_ReapplyEvents_Args struct { + ReapplyEventsRequest *ReapplyEventsRequest `json:"reapplyEventsRequest,omitempty"` } -// ToWire translates a HistoryService_RecordActivityTaskHeartbeat_Args struct into a Thrift-level intermediate +// ToWire translates a HistoryService_ReapplyEvents_Args struct into a Thrift-level intermediate // representation. This intermediate representation may be serialized // into bytes using a ThriftRW protocol implementation. // @@ -23237,7 +23067,7 @@ type HistoryService_RecordActivityTaskHeartbeat_Args struct { // if err := binaryProtocol.Encode(x, writer); err != nil { // return err // } -func (v *HistoryService_RecordActivityTaskHeartbeat_Args) ToWire() (wire.Value, error) { +func (v *HistoryService_ReapplyEvents_Args) ToWire() (wire.Value, error) { var ( fields [1]wire.Field i int = 0 @@ -23245,8 +23075,8 @@ func (v *HistoryService_RecordActivityTaskHeartbeat_Args) ToWire() (wire.Value, err error ) - if v.HeartbeatRequest != nil { - w, err = v.HeartbeatRequest.ToWire() + if v.ReapplyEventsRequest != nil { + w, err = v.ReapplyEventsRequest.ToWire() if err != nil { return w, err } @@ -23257,17 +23087,17 @@ func (v *HistoryService_RecordActivityTaskHeartbeat_Args) ToWire() (wire.Value, return wire.NewValueStruct(wire.Struct{Fields: fields[:i]}), nil } -func _RecordActivityTaskHeartbeatRequest_1_Read(w wire.Value) (*RecordActivityTaskHeartbeatRequest, error) { - var v RecordActivityTaskHeartbeatRequest +func _ReapplyEventsRequest_1_Read(w wire.Value) (*ReapplyEventsRequest, error) { + var v ReapplyEventsRequest err := v.FromWire(w) return &v, err } -// FromWire deserializes a HistoryService_RecordActivityTaskHeartbeat_Args struct from its Thrift-level +// FromWire deserializes a HistoryService_ReapplyEvents_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 HistoryService_RecordActivityTaskHeartbeat_Args struct +// An error is returned if we were unable to build a HistoryService_ReapplyEvents_Args struct // from the provided intermediate representation. // // x, err := binaryProtocol.Decode(reader, wire.TStruct) @@ -23275,19 +23105,19 @@ func _RecordActivityTaskHeartbeatRequest_1_Read(w wire.Value) (*RecordActivityTa // return nil, err // } // -// var v HistoryService_RecordActivityTaskHeartbeat_Args +// var v HistoryService_ReapplyEvents_Args // if err := v.FromWire(x); err != nil { // return nil, err // } // return &v, nil -func (v *HistoryService_RecordActivityTaskHeartbeat_Args) FromWire(w wire.Value) error { +func (v *HistoryService_ReapplyEvents_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.HeartbeatRequest, err = _RecordActivityTaskHeartbeatRequest_1_Read(field.Value) + v.ReapplyEventsRequest, err = _ReapplyEventsRequest_1_Read(field.Value) if err != nil { return err } @@ -23299,34 +23129,34 @@ func (v *HistoryService_RecordActivityTaskHeartbeat_Args) FromWire(w wire.Value) return nil } -// String returns a readable string representation of a HistoryService_RecordActivityTaskHeartbeat_Args +// String returns a readable string representation of a HistoryService_ReapplyEvents_Args // struct. -func (v *HistoryService_RecordActivityTaskHeartbeat_Args) String() string { +func (v *HistoryService_ReapplyEvents_Args) String() string { if v == nil { return "" } var fields [1]string i := 0 - if v.HeartbeatRequest != nil { - fields[i] = fmt.Sprintf("HeartbeatRequest: %v", v.HeartbeatRequest) + if v.ReapplyEventsRequest != nil { + fields[i] = fmt.Sprintf("ReapplyEventsRequest: %v", v.ReapplyEventsRequest) i++ } - return fmt.Sprintf("HistoryService_RecordActivityTaskHeartbeat_Args{%v}", strings.Join(fields[:i], ", ")) + return fmt.Sprintf("HistoryService_ReapplyEvents_Args{%v}", strings.Join(fields[:i], ", ")) } -// Equals returns true if all the fields of this HistoryService_RecordActivityTaskHeartbeat_Args match the -// provided HistoryService_RecordActivityTaskHeartbeat_Args. +// Equals returns true if all the fields of this HistoryService_ReapplyEvents_Args match the +// provided HistoryService_ReapplyEvents_Args. // // This function performs a deep comparison. -func (v *HistoryService_RecordActivityTaskHeartbeat_Args) Equals(rhs *HistoryService_RecordActivityTaskHeartbeat_Args) bool { +func (v *HistoryService_ReapplyEvents_Args) Equals(rhs *HistoryService_ReapplyEvents_Args) bool { if v == nil { return rhs == nil } else if rhs == nil { return false } - if !((v.HeartbeatRequest == nil && rhs.HeartbeatRequest == nil) || (v.HeartbeatRequest != nil && rhs.HeartbeatRequest != nil && v.HeartbeatRequest.Equals(rhs.HeartbeatRequest))) { + if !((v.ReapplyEventsRequest == nil && rhs.ReapplyEventsRequest == nil) || (v.ReapplyEventsRequest != nil && rhs.ReapplyEventsRequest != nil && v.ReapplyEventsRequest.Equals(rhs.ReapplyEventsRequest))) { return false } @@ -23334,175 +23164,169 @@ func (v *HistoryService_RecordActivityTaskHeartbeat_Args) Equals(rhs *HistorySer } // MarshalLogObject implements zapcore.ObjectMarshaler, enabling -// fast logging of HistoryService_RecordActivityTaskHeartbeat_Args. -func (v *HistoryService_RecordActivityTaskHeartbeat_Args) MarshalLogObject(enc zapcore.ObjectEncoder) (err error) { +// fast logging of HistoryService_ReapplyEvents_Args. +func (v *HistoryService_ReapplyEvents_Args) MarshalLogObject(enc zapcore.ObjectEncoder) (err error) { if v == nil { return nil } - if v.HeartbeatRequest != nil { - err = multierr.Append(err, enc.AddObject("heartbeatRequest", v.HeartbeatRequest)) + if v.ReapplyEventsRequest != nil { + err = multierr.Append(err, enc.AddObject("reapplyEventsRequest", v.ReapplyEventsRequest)) } return err } -// GetHeartbeatRequest returns the value of HeartbeatRequest if it is set or its +// GetReapplyEventsRequest returns the value of ReapplyEventsRequest if it is set or its // zero value if it is unset. -func (v *HistoryService_RecordActivityTaskHeartbeat_Args) GetHeartbeatRequest() (o *RecordActivityTaskHeartbeatRequest) { - if v != nil && v.HeartbeatRequest != nil { - return v.HeartbeatRequest +func (v *HistoryService_ReapplyEvents_Args) GetReapplyEventsRequest() (o *ReapplyEventsRequest) { + if v != nil && v.ReapplyEventsRequest != nil { + return v.ReapplyEventsRequest } return } -// IsSetHeartbeatRequest returns true if HeartbeatRequest is not nil. -func (v *HistoryService_RecordActivityTaskHeartbeat_Args) IsSetHeartbeatRequest() bool { - return v != nil && v.HeartbeatRequest != nil +// IsSetReapplyEventsRequest returns true if ReapplyEventsRequest is not nil. +func (v *HistoryService_ReapplyEvents_Args) IsSetReapplyEventsRequest() bool { + return v != nil && v.ReapplyEventsRequest != 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 "RecordActivityTaskHeartbeat" for this struct. -func (v *HistoryService_RecordActivityTaskHeartbeat_Args) MethodName() string { - return "RecordActivityTaskHeartbeat" +// This will always be "ReapplyEvents" for this struct. +func (v *HistoryService_ReapplyEvents_Args) MethodName() string { + return "ReapplyEvents" } // EnvelopeType returns the kind of value inside this struct. // // This will always be Call for this struct. -func (v *HistoryService_RecordActivityTaskHeartbeat_Args) EnvelopeType() wire.EnvelopeType { +func (v *HistoryService_ReapplyEvents_Args) EnvelopeType() wire.EnvelopeType { return wire.Call } -// HistoryService_RecordActivityTaskHeartbeat_Helper provides functions that aid in handling the -// parameters and return values of the HistoryService.RecordActivityTaskHeartbeat +// HistoryService_ReapplyEvents_Helper provides functions that aid in handling the +// parameters and return values of the HistoryService.ReapplyEvents // function. -var HistoryService_RecordActivityTaskHeartbeat_Helper = struct { - // Args accepts the parameters of RecordActivityTaskHeartbeat in-order and returns - // the arguments struct for the function. +var HistoryService_ReapplyEvents_Helper = struct { + // Args accepts the parameters of ReapplyEvents in-order and returns + // the arguments struct for the function. Args func( - heartbeatRequest *RecordActivityTaskHeartbeatRequest, - ) *HistoryService_RecordActivityTaskHeartbeat_Args + reapplyEventsRequest *ReapplyEventsRequest, + ) *HistoryService_ReapplyEvents_Args // IsException returns true if the given error can be thrown - // by RecordActivityTaskHeartbeat. + // by ReapplyEvents. // - // An error can be thrown by RecordActivityTaskHeartbeat only if the + // An error can be thrown by ReapplyEvents 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 RecordActivityTaskHeartbeat - // given its return value and error. + // WrapResponse returns the result struct for ReapplyEvents + // given the error returned by it. The provided error may + // be nil if ReapplyEvents did not fail. // - // This allows mapping values and errors returned by - // RecordActivityTaskHeartbeat into a serializable result struct. - // WrapResponse returns a non-nil error if the provided - // error cannot be thrown by RecordActivityTaskHeartbeat + // This allows mapping errors returned by ReapplyEvents into a + // serializable result struct. WrapResponse returns a + // non-nil error if the provided error cannot be thrown by + // ReapplyEvents // - // value, err := RecordActivityTaskHeartbeat(args) - // result, err := HistoryService_RecordActivityTaskHeartbeat_Helper.WrapResponse(value, err) + // err := ReapplyEvents(args) + // result, err := HistoryService_ReapplyEvents_Helper.WrapResponse(err) // if err != nil { - // return fmt.Errorf("unexpected error from RecordActivityTaskHeartbeat: %v", err) + // return fmt.Errorf("unexpected error from ReapplyEvents: %v", err) // } // serialize(result) - WrapResponse func(*shared.RecordActivityTaskHeartbeatResponse, error) (*HistoryService_RecordActivityTaskHeartbeat_Result, error) + WrapResponse func(error) (*HistoryService_ReapplyEvents_Result, error) - // UnwrapResponse takes the result struct for RecordActivityTaskHeartbeat - // and returns the value or error returned by it. + // UnwrapResponse takes the result struct for ReapplyEvents + // and returns the erorr returned by it (if any). // - // The error is non-nil only if RecordActivityTaskHeartbeat threw an + // The error is non-nil only if ReapplyEvents threw an // exception. // // result := deserialize(bytes) - // value, err := HistoryService_RecordActivityTaskHeartbeat_Helper.UnwrapResponse(result) - UnwrapResponse func(*HistoryService_RecordActivityTaskHeartbeat_Result) (*shared.RecordActivityTaskHeartbeatResponse, error) + // err := HistoryService_ReapplyEvents_Helper.UnwrapResponse(result) + UnwrapResponse func(*HistoryService_ReapplyEvents_Result) error }{} func init() { - HistoryService_RecordActivityTaskHeartbeat_Helper.Args = func( - heartbeatRequest *RecordActivityTaskHeartbeatRequest, - ) *HistoryService_RecordActivityTaskHeartbeat_Args { - return &HistoryService_RecordActivityTaskHeartbeat_Args{ - HeartbeatRequest: heartbeatRequest, + HistoryService_ReapplyEvents_Helper.Args = func( + reapplyEventsRequest *ReapplyEventsRequest, + ) *HistoryService_ReapplyEvents_Args { + return &HistoryService_ReapplyEvents_Args{ + ReapplyEventsRequest: reapplyEventsRequest, } } - HistoryService_RecordActivityTaskHeartbeat_Helper.IsException = func(err error) bool { + HistoryService_ReapplyEvents_Helper.IsException = func(err error) bool { switch err.(type) { case *shared.BadRequestError: return true case *shared.InternalServiceError: return true - case *shared.EntityNotExistsError: - return true - case *ShardOwnershipLostError: - return true case *shared.DomainNotActiveError: return true case *shared.LimitExceededError: return true case *shared.ServiceBusyError: return true - case *shared.WorkflowExecutionAlreadyCompletedError: + case *ShardOwnershipLostError: + return true + case *shared.EntityNotExistsError: return true default: return false } } - HistoryService_RecordActivityTaskHeartbeat_Helper.WrapResponse = func(success *shared.RecordActivityTaskHeartbeatResponse, err error) (*HistoryService_RecordActivityTaskHeartbeat_Result, error) { + HistoryService_ReapplyEvents_Helper.WrapResponse = func(err error) (*HistoryService_ReapplyEvents_Result, error) { if err == nil { - return &HistoryService_RecordActivityTaskHeartbeat_Result{Success: success}, nil + return &HistoryService_ReapplyEvents_Result{}, nil } switch e := err.(type) { case *shared.BadRequestError: if e == nil { - return nil, errors.New("WrapResponse received non-nil error type with nil value for HistoryService_RecordActivityTaskHeartbeat_Result.BadRequestError") + return nil, errors.New("WrapResponse received non-nil error type with nil value for HistoryService_ReapplyEvents_Result.BadRequestError") } - return &HistoryService_RecordActivityTaskHeartbeat_Result{BadRequestError: e}, nil + return &HistoryService_ReapplyEvents_Result{BadRequestError: e}, nil case *shared.InternalServiceError: if e == nil { - return nil, errors.New("WrapResponse received non-nil error type with nil value for HistoryService_RecordActivityTaskHeartbeat_Result.InternalServiceError") - } - return &HistoryService_RecordActivityTaskHeartbeat_Result{InternalServiceError: e}, nil - case *shared.EntityNotExistsError: - if e == nil { - return nil, errors.New("WrapResponse received non-nil error type with nil value for HistoryService_RecordActivityTaskHeartbeat_Result.EntityNotExistError") - } - return &HistoryService_RecordActivityTaskHeartbeat_Result{EntityNotExistError: e}, nil - case *ShardOwnershipLostError: - if e == nil { - return nil, errors.New("WrapResponse received non-nil error type with nil value for HistoryService_RecordActivityTaskHeartbeat_Result.ShardOwnershipLostError") + return nil, errors.New("WrapResponse received non-nil error type with nil value for HistoryService_ReapplyEvents_Result.InternalServiceError") } - return &HistoryService_RecordActivityTaskHeartbeat_Result{ShardOwnershipLostError: e}, nil + return &HistoryService_ReapplyEvents_Result{InternalServiceError: e}, nil case *shared.DomainNotActiveError: if e == nil { - return nil, errors.New("WrapResponse received non-nil error type with nil value for HistoryService_RecordActivityTaskHeartbeat_Result.DomainNotActiveError") + return nil, errors.New("WrapResponse received non-nil error type with nil value for HistoryService_ReapplyEvents_Result.DomainNotActiveError") } - return &HistoryService_RecordActivityTaskHeartbeat_Result{DomainNotActiveError: e}, nil + return &HistoryService_ReapplyEvents_Result{DomainNotActiveError: e}, nil case *shared.LimitExceededError: if e == nil { - return nil, errors.New("WrapResponse received non-nil error type with nil value for HistoryService_RecordActivityTaskHeartbeat_Result.LimitExceededError") + return nil, errors.New("WrapResponse received non-nil error type with nil value for HistoryService_ReapplyEvents_Result.LimitExceededError") } - return &HistoryService_RecordActivityTaskHeartbeat_Result{LimitExceededError: e}, nil + return &HistoryService_ReapplyEvents_Result{LimitExceededError: e}, nil case *shared.ServiceBusyError: if e == nil { - return nil, errors.New("WrapResponse received non-nil error type with nil value for HistoryService_RecordActivityTaskHeartbeat_Result.ServiceBusyError") + return nil, errors.New("WrapResponse received non-nil error type with nil value for HistoryService_ReapplyEvents_Result.ServiceBusyError") } - return &HistoryService_RecordActivityTaskHeartbeat_Result{ServiceBusyError: e}, nil - case *shared.WorkflowExecutionAlreadyCompletedError: + return &HistoryService_ReapplyEvents_Result{ServiceBusyError: e}, nil + case *ShardOwnershipLostError: if e == nil { - return nil, errors.New("WrapResponse received non-nil error type with nil value for HistoryService_RecordActivityTaskHeartbeat_Result.WorkflowExecutionAlreadyCompletedError") + return nil, errors.New("WrapResponse received non-nil error type with nil value for HistoryService_ReapplyEvents_Result.ShardOwnershipLostError") } - return &HistoryService_RecordActivityTaskHeartbeat_Result{WorkflowExecutionAlreadyCompletedError: e}, nil + return &HistoryService_ReapplyEvents_Result{ShardOwnershipLostError: e}, nil + case *shared.EntityNotExistsError: + if e == nil { + return nil, errors.New("WrapResponse received non-nil error type with nil value for HistoryService_ReapplyEvents_Result.EntityNotExistError") + } + return &HistoryService_ReapplyEvents_Result{EntityNotExistError: e}, nil } return nil, err } - HistoryService_RecordActivityTaskHeartbeat_Helper.UnwrapResponse = func(result *HistoryService_RecordActivityTaskHeartbeat_Result) (success *shared.RecordActivityTaskHeartbeatResponse, err error) { + HistoryService_ReapplyEvents_Helper.UnwrapResponse = func(result *HistoryService_ReapplyEvents_Result) (err error) { if result.BadRequestError != nil { err = result.BadRequestError return @@ -23511,14 +23335,6 @@ func init() { err = result.InternalServiceError return } - if result.EntityNotExistError != nil { - err = result.EntityNotExistError - return - } - if result.ShardOwnershipLostError != nil { - err = result.ShardOwnershipLostError - return - } if result.DomainNotActiveError != nil { err = result.DomainNotActiveError return @@ -23531,41 +23347,33 @@ func init() { err = result.ServiceBusyError return } - if result.WorkflowExecutionAlreadyCompletedError != nil { - err = result.WorkflowExecutionAlreadyCompletedError + if result.ShardOwnershipLostError != nil { + err = result.ShardOwnershipLostError return } - - if result.Success != nil { - success = result.Success + if result.EntityNotExistError != nil { + err = result.EntityNotExistError return } - - err = errors.New("expected a non-void result") return } } -// HistoryService_RecordActivityTaskHeartbeat_Result represents the result of a HistoryService.RecordActivityTaskHeartbeat function call. -// -// The result of a RecordActivityTaskHeartbeat execution is sent and received over the wire as this struct. +// HistoryService_ReapplyEvents_Result represents the result of a HistoryService.ReapplyEvents function call. // -// Success is set only if the function did not throw an exception. -type HistoryService_RecordActivityTaskHeartbeat_Result struct { - // Value returned by RecordActivityTaskHeartbeat after a successful execution. - Success *shared.RecordActivityTaskHeartbeatResponse `json:"success,omitempty"` - BadRequestError *shared.BadRequestError `json:"badRequestError,omitempty"` - InternalServiceError *shared.InternalServiceError `json:"internalServiceError,omitempty"` - EntityNotExistError *shared.EntityNotExistsError `json:"entityNotExistError,omitempty"` - ShardOwnershipLostError *ShardOwnershipLostError `json:"shardOwnershipLostError,omitempty"` - DomainNotActiveError *shared.DomainNotActiveError `json:"domainNotActiveError,omitempty"` - LimitExceededError *shared.LimitExceededError `json:"limitExceededError,omitempty"` - ServiceBusyError *shared.ServiceBusyError `json:"serviceBusyError,omitempty"` - WorkflowExecutionAlreadyCompletedError *shared.WorkflowExecutionAlreadyCompletedError `json:"workflowExecutionAlreadyCompletedError,omitempty"` +// The result of a ReapplyEvents execution is sent and received over the wire as this struct. +type HistoryService_ReapplyEvents_Result struct { + BadRequestError *shared.BadRequestError `json:"badRequestError,omitempty"` + InternalServiceError *shared.InternalServiceError `json:"internalServiceError,omitempty"` + DomainNotActiveError *shared.DomainNotActiveError `json:"domainNotActiveError,omitempty"` + LimitExceededError *shared.LimitExceededError `json:"limitExceededError,omitempty"` + ServiceBusyError *shared.ServiceBusyError `json:"serviceBusyError,omitempty"` + ShardOwnershipLostError *ShardOwnershipLostError `json:"shardOwnershipLostError,omitempty"` + EntityNotExistError *shared.EntityNotExistsError `json:"entityNotExistError,omitempty"` } -// ToWire translates a HistoryService_RecordActivityTaskHeartbeat_Result struct into a Thrift-level intermediate +// ToWire translates a HistoryService_ReapplyEvents_Result struct into a Thrift-level intermediate // representation. This intermediate representation may be serialized // into bytes using a ThriftRW protocol implementation. // @@ -23580,22 +23388,14 @@ type HistoryService_RecordActivityTaskHeartbeat_Result struct { // if err := binaryProtocol.Encode(x, writer); err != nil { // return err // } -func (v *HistoryService_RecordActivityTaskHeartbeat_Result) ToWire() (wire.Value, error) { +func (v *HistoryService_ReapplyEvents_Result) ToWire() (wire.Value, error) { var ( - fields [9]wire.Field + fields [7]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.BadRequestError != nil { w, err = v.BadRequestError.ToWire() if err != nil { @@ -23612,79 +23412,65 @@ func (v *HistoryService_RecordActivityTaskHeartbeat_Result) ToWire() (wire.Value fields[i] = wire.Field{ID: 2, Value: w} i++ } - if v.EntityNotExistError != nil { - w, err = v.EntityNotExistError.ToWire() + if v.DomainNotActiveError != nil { + w, err = v.DomainNotActiveError.ToWire() if err != nil { return w, err } fields[i] = wire.Field{ID: 3, Value: w} i++ } - if v.ShardOwnershipLostError != nil { - w, err = v.ShardOwnershipLostError.ToWire() + if v.LimitExceededError != nil { + w, err = v.LimitExceededError.ToWire() if err != nil { return w, err } fields[i] = wire.Field{ID: 4, Value: w} i++ } - if v.DomainNotActiveError != nil { - w, err = v.DomainNotActiveError.ToWire() + if v.ServiceBusyError != nil { + w, err = v.ServiceBusyError.ToWire() if err != nil { return w, err } fields[i] = wire.Field{ID: 5, Value: w} i++ } - if v.LimitExceededError != nil { - w, err = v.LimitExceededError.ToWire() + if v.ShardOwnershipLostError != nil { + w, err = v.ShardOwnershipLostError.ToWire() if err != nil { return w, err } fields[i] = wire.Field{ID: 6, Value: w} i++ } - if v.ServiceBusyError != nil { - w, err = v.ServiceBusyError.ToWire() + if v.EntityNotExistError != nil { + w, err = v.EntityNotExistError.ToWire() if err != nil { return w, err } fields[i] = wire.Field{ID: 7, Value: w} i++ } - if v.WorkflowExecutionAlreadyCompletedError != nil { - w, err = v.WorkflowExecutionAlreadyCompletedError.ToWire() - if err != nil { - return w, err - } - fields[i] = wire.Field{ID: 8, Value: w} - i++ - } - if i != 1 { - return wire.Value{}, fmt.Errorf("HistoryService_RecordActivityTaskHeartbeat_Result should have exactly one field: got %v fields", i) + if i > 1 { + return wire.Value{}, fmt.Errorf("HistoryService_ReapplyEvents_Result should have at most one field: got %v fields", i) } return wire.NewValueStruct(wire.Struct{Fields: fields[:i]}), nil } -func _RecordActivityTaskHeartbeatResponse_Read(w wire.Value) (*shared.RecordActivityTaskHeartbeatResponse, error) { - var v shared.RecordActivityTaskHeartbeatResponse - err := v.FromWire(w) - return &v, err -} - -func _WorkflowExecutionAlreadyCompletedError_Read(w wire.Value) (*shared.WorkflowExecutionAlreadyCompletedError, error) { - var v shared.WorkflowExecutionAlreadyCompletedError +func _DomainNotActiveError_Read(w wire.Value) (*shared.DomainNotActiveError, error) { + var v shared.DomainNotActiveError err := v.FromWire(w) return &v, err } -// FromWire deserializes a HistoryService_RecordActivityTaskHeartbeat_Result struct from its Thrift-level +// FromWire deserializes a HistoryService_ReapplyEvents_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 HistoryService_RecordActivityTaskHeartbeat_Result struct +// An error is returned if we were unable to build a HistoryService_ReapplyEvents_Result struct // from the provided intermediate representation. // // x, err := binaryProtocol.Decode(reader, wire.TStruct) @@ -23692,24 +23478,16 @@ func _WorkflowExecutionAlreadyCompletedError_Read(w wire.Value) (*shared.Workflo // return nil, err // } // -// var v HistoryService_RecordActivityTaskHeartbeat_Result +// var v HistoryService_ReapplyEvents_Result // if err := v.FromWire(x); err != nil { // return nil, err // } // return &v, nil -func (v *HistoryService_RecordActivityTaskHeartbeat_Result) FromWire(w wire.Value) error { +func (v *HistoryService_ReapplyEvents_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 = _RecordActivityTaskHeartbeatResponse_Read(field.Value) - if err != nil { - return err - } - - } case 1: if field.Value.Type() == wire.TStruct { v.BadRequestError, err = _BadRequestError_Read(field.Value) @@ -23728,7 +23506,7 @@ func (v *HistoryService_RecordActivityTaskHeartbeat_Result) FromWire(w wire.Valu } case 3: if field.Value.Type() == wire.TStruct { - v.EntityNotExistError, err = _EntityNotExistsError_Read(field.Value) + v.DomainNotActiveError, err = _DomainNotActiveError_Read(field.Value) if err != nil { return err } @@ -23736,7 +23514,7 @@ func (v *HistoryService_RecordActivityTaskHeartbeat_Result) FromWire(w wire.Valu } case 4: if field.Value.Type() == wire.TStruct { - v.ShardOwnershipLostError, err = _ShardOwnershipLostError_Read(field.Value) + v.LimitExceededError, err = _LimitExceededError_Read(field.Value) if err != nil { return err } @@ -23744,7 +23522,7 @@ func (v *HistoryService_RecordActivityTaskHeartbeat_Result) FromWire(w wire.Valu } case 5: if field.Value.Type() == wire.TStruct { - v.DomainNotActiveError, err = _DomainNotActiveError_Read(field.Value) + v.ServiceBusyError, err = _ServiceBusyError_Read(field.Value) if err != nil { return err } @@ -23752,7 +23530,7 @@ func (v *HistoryService_RecordActivityTaskHeartbeat_Result) FromWire(w wire.Valu } case 6: if field.Value.Type() == wire.TStruct { - v.LimitExceededError, err = _LimitExceededError_Read(field.Value) + v.ShardOwnershipLostError, err = _ShardOwnershipLostError_Read(field.Value) if err != nil { return err } @@ -23760,15 +23538,7 @@ func (v *HistoryService_RecordActivityTaskHeartbeat_Result) FromWire(w wire.Valu } case 7: if field.Value.Type() == wire.TStruct { - v.ServiceBusyError, err = _ServiceBusyError_Read(field.Value) - if err != nil { - return err - } - - } - case 8: - if field.Value.Type() == wire.TStruct { - v.WorkflowExecutionAlreadyCompletedError, err = _WorkflowExecutionAlreadyCompletedError_Read(field.Value) + v.EntityNotExistError, err = _EntityNotExistsError_Read(field.Value) if err != nil { return err } @@ -23778,21 +23548,12 @@ func (v *HistoryService_RecordActivityTaskHeartbeat_Result) FromWire(w wire.Valu } count := 0 - if v.Success != nil { - count++ - } if v.BadRequestError != nil { count++ } if v.InternalServiceError != nil { count++ } - if v.EntityNotExistError != nil { - count++ - } - if v.ShardOwnershipLostError != nil { - count++ - } if v.DomainNotActiveError != nil { count++ } @@ -23802,29 +23563,28 @@ func (v *HistoryService_RecordActivityTaskHeartbeat_Result) FromWire(w wire.Valu if v.ServiceBusyError != nil { count++ } - if v.WorkflowExecutionAlreadyCompletedError != nil { + if v.ShardOwnershipLostError != nil { count++ } - if count != 1 { - return fmt.Errorf("HistoryService_RecordActivityTaskHeartbeat_Result should have exactly one field: got %v fields", count) + if v.EntityNotExistError != nil { + count++ + } + if count > 1 { + return fmt.Errorf("HistoryService_ReapplyEvents_Result should have at most one field: got %v fields", count) } return nil } -// String returns a readable string representation of a HistoryService_RecordActivityTaskHeartbeat_Result +// String returns a readable string representation of a HistoryService_ReapplyEvents_Result // struct. -func (v *HistoryService_RecordActivityTaskHeartbeat_Result) String() string { +func (v *HistoryService_ReapplyEvents_Result) String() string { if v == nil { return "" } - var fields [9]string + var fields [7]string i := 0 - if v.Success != nil { - fields[i] = fmt.Sprintf("Success: %v", v.Success) - i++ - } if v.BadRequestError != nil { fields[i] = fmt.Sprintf("BadRequestError: %v", v.BadRequestError) i++ @@ -23833,14 +23593,6 @@ func (v *HistoryService_RecordActivityTaskHeartbeat_Result) String() string { fields[i] = fmt.Sprintf("InternalServiceError: %v", v.InternalServiceError) i++ } - if v.EntityNotExistError != nil { - fields[i] = fmt.Sprintf("EntityNotExistError: %v", v.EntityNotExistError) - i++ - } - if v.ShardOwnershipLostError != nil { - fields[i] = fmt.Sprintf("ShardOwnershipLostError: %v", v.ShardOwnershipLostError) - i++ - } if v.DomainNotActiveError != nil { fields[i] = fmt.Sprintf("DomainNotActiveError: %v", v.DomainNotActiveError) i++ @@ -23853,39 +23605,34 @@ func (v *HistoryService_RecordActivityTaskHeartbeat_Result) String() string { fields[i] = fmt.Sprintf("ServiceBusyError: %v", v.ServiceBusyError) i++ } - if v.WorkflowExecutionAlreadyCompletedError != nil { - fields[i] = fmt.Sprintf("WorkflowExecutionAlreadyCompletedError: %v", v.WorkflowExecutionAlreadyCompletedError) + if v.ShardOwnershipLostError != nil { + fields[i] = fmt.Sprintf("ShardOwnershipLostError: %v", v.ShardOwnershipLostError) + i++ + } + if v.EntityNotExistError != nil { + fields[i] = fmt.Sprintf("EntityNotExistError: %v", v.EntityNotExistError) i++ } - return fmt.Sprintf("HistoryService_RecordActivityTaskHeartbeat_Result{%v}", strings.Join(fields[:i], ", ")) + return fmt.Sprintf("HistoryService_ReapplyEvents_Result{%v}", strings.Join(fields[:i], ", ")) } -// Equals returns true if all the fields of this HistoryService_RecordActivityTaskHeartbeat_Result match the -// provided HistoryService_RecordActivityTaskHeartbeat_Result. +// Equals returns true if all the fields of this HistoryService_ReapplyEvents_Result match the +// provided HistoryService_ReapplyEvents_Result. // // This function performs a deep comparison. -func (v *HistoryService_RecordActivityTaskHeartbeat_Result) Equals(rhs *HistoryService_RecordActivityTaskHeartbeat_Result) bool { +func (v *HistoryService_ReapplyEvents_Result) Equals(rhs *HistoryService_ReapplyEvents_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.BadRequestError == nil && rhs.BadRequestError == nil) || (v.BadRequestError != nil && rhs.BadRequestError != nil && v.BadRequestError.Equals(rhs.BadRequestError))) { return false } if !((v.InternalServiceError == nil && rhs.InternalServiceError == nil) || (v.InternalServiceError != nil && rhs.InternalServiceError != nil && v.InternalServiceError.Equals(rhs.InternalServiceError))) { return false } - if !((v.EntityNotExistError == nil && rhs.EntityNotExistError == nil) || (v.EntityNotExistError != nil && rhs.EntityNotExistError != nil && v.EntityNotExistError.Equals(rhs.EntityNotExistError))) { - return false - } - if !((v.ShardOwnershipLostError == nil && rhs.ShardOwnershipLostError == nil) || (v.ShardOwnershipLostError != nil && rhs.ShardOwnershipLostError != nil && v.ShardOwnershipLostError.Equals(rhs.ShardOwnershipLostError))) { - return false - } if !((v.DomainNotActiveError == nil && rhs.DomainNotActiveError == nil) || (v.DomainNotActiveError != nil && rhs.DomainNotActiveError != nil && v.DomainNotActiveError.Equals(rhs.DomainNotActiveError))) { return false } @@ -23895,7 +23642,10 @@ func (v *HistoryService_RecordActivityTaskHeartbeat_Result) Equals(rhs *HistoryS if !((v.ServiceBusyError == nil && rhs.ServiceBusyError == nil) || (v.ServiceBusyError != nil && rhs.ServiceBusyError != nil && v.ServiceBusyError.Equals(rhs.ServiceBusyError))) { return false } - if !((v.WorkflowExecutionAlreadyCompletedError == nil && rhs.WorkflowExecutionAlreadyCompletedError == nil) || (v.WorkflowExecutionAlreadyCompletedError != nil && rhs.WorkflowExecutionAlreadyCompletedError != nil && v.WorkflowExecutionAlreadyCompletedError.Equals(rhs.WorkflowExecutionAlreadyCompletedError))) { + if !((v.ShardOwnershipLostError == nil && rhs.ShardOwnershipLostError == nil) || (v.ShardOwnershipLostError != nil && rhs.ShardOwnershipLostError != nil && v.ShardOwnershipLostError.Equals(rhs.ShardOwnershipLostError))) { + return false + } + if !((v.EntityNotExistError == nil && rhs.EntityNotExistError == nil) || (v.EntityNotExistError != nil && rhs.EntityNotExistError != nil && v.EntityNotExistError.Equals(rhs.EntityNotExistError))) { return false } @@ -23903,26 +23653,17 @@ func (v *HistoryService_RecordActivityTaskHeartbeat_Result) Equals(rhs *HistoryS } // MarshalLogObject implements zapcore.ObjectMarshaler, enabling -// fast logging of HistoryService_RecordActivityTaskHeartbeat_Result. -func (v *HistoryService_RecordActivityTaskHeartbeat_Result) MarshalLogObject(enc zapcore.ObjectEncoder) (err error) { +// fast logging of HistoryService_ReapplyEvents_Result. +func (v *HistoryService_ReapplyEvents_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.BadRequestError != nil { err = multierr.Append(err, enc.AddObject("badRequestError", v.BadRequestError)) } if v.InternalServiceError != nil { err = multierr.Append(err, enc.AddObject("internalServiceError", v.InternalServiceError)) } - if v.EntityNotExistError != nil { - err = multierr.Append(err, enc.AddObject("entityNotExistError", v.EntityNotExistError)) - } - if v.ShardOwnershipLostError != nil { - err = multierr.Append(err, enc.AddObject("shardOwnershipLostError", v.ShardOwnershipLostError)) - } if v.DomainNotActiveError != nil { err = multierr.Append(err, enc.AddObject("domainNotActiveError", v.DomainNotActiveError)) } @@ -23932,30 +23673,18 @@ func (v *HistoryService_RecordActivityTaskHeartbeat_Result) MarshalLogObject(enc if v.ServiceBusyError != nil { err = multierr.Append(err, enc.AddObject("serviceBusyError", v.ServiceBusyError)) } - if v.WorkflowExecutionAlreadyCompletedError != nil { - err = multierr.Append(err, enc.AddObject("workflowExecutionAlreadyCompletedError", v.WorkflowExecutionAlreadyCompletedError)) + if v.ShardOwnershipLostError != nil { + err = multierr.Append(err, enc.AddObject("shardOwnershipLostError", v.ShardOwnershipLostError)) } - return err -} - -// GetSuccess returns the value of Success if it is set or its -// zero value if it is unset. -func (v *HistoryService_RecordActivityTaskHeartbeat_Result) GetSuccess() (o *shared.RecordActivityTaskHeartbeatResponse) { - if v != nil && v.Success != nil { - return v.Success + if v.EntityNotExistError != nil { + err = multierr.Append(err, enc.AddObject("entityNotExistError", v.EntityNotExistError)) } - - return -} - -// IsSetSuccess returns true if Success is not nil. -func (v *HistoryService_RecordActivityTaskHeartbeat_Result) IsSetSuccess() bool { - return v != nil && v.Success != nil + return err } // GetBadRequestError returns the value of BadRequestError if it is set or its // zero value if it is unset. -func (v *HistoryService_RecordActivityTaskHeartbeat_Result) GetBadRequestError() (o *shared.BadRequestError) { +func (v *HistoryService_ReapplyEvents_Result) GetBadRequestError() (o *shared.BadRequestError) { if v != nil && v.BadRequestError != nil { return v.BadRequestError } @@ -23964,13 +23693,13 @@ func (v *HistoryService_RecordActivityTaskHeartbeat_Result) GetBadRequestError() } // IsSetBadRequestError returns true if BadRequestError is not nil. -func (v *HistoryService_RecordActivityTaskHeartbeat_Result) IsSetBadRequestError() bool { +func (v *HistoryService_ReapplyEvents_Result) IsSetBadRequestError() bool { return v != nil && v.BadRequestError != nil } // GetInternalServiceError returns the value of InternalServiceError if it is set or its // zero value if it is unset. -func (v *HistoryService_RecordActivityTaskHeartbeat_Result) GetInternalServiceError() (o *shared.InternalServiceError) { +func (v *HistoryService_ReapplyEvents_Result) GetInternalServiceError() (o *shared.InternalServiceError) { if v != nil && v.InternalServiceError != nil { return v.InternalServiceError } @@ -23979,43 +23708,13 @@ func (v *HistoryService_RecordActivityTaskHeartbeat_Result) GetInternalServiceEr } // IsSetInternalServiceError returns true if InternalServiceError is not nil. -func (v *HistoryService_RecordActivityTaskHeartbeat_Result) IsSetInternalServiceError() bool { +func (v *HistoryService_ReapplyEvents_Result) IsSetInternalServiceError() bool { return v != nil && v.InternalServiceError != nil } -// GetEntityNotExistError returns the value of EntityNotExistError if it is set or its -// zero value if it is unset. -func (v *HistoryService_RecordActivityTaskHeartbeat_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 *HistoryService_RecordActivityTaskHeartbeat_Result) IsSetEntityNotExistError() bool { - return v != nil && v.EntityNotExistError != nil -} - -// GetShardOwnershipLostError returns the value of ShardOwnershipLostError if it is set or its -// zero value if it is unset. -func (v *HistoryService_RecordActivityTaskHeartbeat_Result) GetShardOwnershipLostError() (o *ShardOwnershipLostError) { - if v != nil && v.ShardOwnershipLostError != nil { - return v.ShardOwnershipLostError - } - - return -} - -// IsSetShardOwnershipLostError returns true if ShardOwnershipLostError is not nil. -func (v *HistoryService_RecordActivityTaskHeartbeat_Result) IsSetShardOwnershipLostError() bool { - return v != nil && v.ShardOwnershipLostError != nil -} - // GetDomainNotActiveError returns the value of DomainNotActiveError if it is set or its // zero value if it is unset. -func (v *HistoryService_RecordActivityTaskHeartbeat_Result) GetDomainNotActiveError() (o *shared.DomainNotActiveError) { +func (v *HistoryService_ReapplyEvents_Result) GetDomainNotActiveError() (o *shared.DomainNotActiveError) { if v != nil && v.DomainNotActiveError != nil { return v.DomainNotActiveError } @@ -24024,13 +23723,13 @@ func (v *HistoryService_RecordActivityTaskHeartbeat_Result) GetDomainNotActiveEr } // IsSetDomainNotActiveError returns true if DomainNotActiveError is not nil. -func (v *HistoryService_RecordActivityTaskHeartbeat_Result) IsSetDomainNotActiveError() bool { +func (v *HistoryService_ReapplyEvents_Result) IsSetDomainNotActiveError() bool { return v != nil && v.DomainNotActiveError != nil } // GetLimitExceededError returns the value of LimitExceededError if it is set or its // zero value if it is unset. -func (v *HistoryService_RecordActivityTaskHeartbeat_Result) GetLimitExceededError() (o *shared.LimitExceededError) { +func (v *HistoryService_ReapplyEvents_Result) GetLimitExceededError() (o *shared.LimitExceededError) { if v != nil && v.LimitExceededError != nil { return v.LimitExceededError } @@ -24039,13 +23738,13 @@ func (v *HistoryService_RecordActivityTaskHeartbeat_Result) GetLimitExceededErro } // IsSetLimitExceededError returns true if LimitExceededError is not nil. -func (v *HistoryService_RecordActivityTaskHeartbeat_Result) IsSetLimitExceededError() bool { +func (v *HistoryService_ReapplyEvents_Result) IsSetLimitExceededError() bool { return v != nil && v.LimitExceededError != nil } // GetServiceBusyError returns the value of ServiceBusyError if it is set or its // zero value if it is unset. -func (v *HistoryService_RecordActivityTaskHeartbeat_Result) GetServiceBusyError() (o *shared.ServiceBusyError) { +func (v *HistoryService_ReapplyEvents_Result) GetServiceBusyError() (o *shared.ServiceBusyError) { if v != nil && v.ServiceBusyError != nil { return v.ServiceBusyError } @@ -24054,48 +23753,63 @@ func (v *HistoryService_RecordActivityTaskHeartbeat_Result) GetServiceBusyError( } // IsSetServiceBusyError returns true if ServiceBusyError is not nil. -func (v *HistoryService_RecordActivityTaskHeartbeat_Result) IsSetServiceBusyError() bool { +func (v *HistoryService_ReapplyEvents_Result) IsSetServiceBusyError() bool { return v != nil && v.ServiceBusyError != nil } -// GetWorkflowExecutionAlreadyCompletedError returns the value of WorkflowExecutionAlreadyCompletedError if it is set or its +// GetShardOwnershipLostError returns the value of ShardOwnershipLostError if it is set or its // zero value if it is unset. -func (v *HistoryService_RecordActivityTaskHeartbeat_Result) GetWorkflowExecutionAlreadyCompletedError() (o *shared.WorkflowExecutionAlreadyCompletedError) { - if v != nil && v.WorkflowExecutionAlreadyCompletedError != nil { - return v.WorkflowExecutionAlreadyCompletedError +func (v *HistoryService_ReapplyEvents_Result) GetShardOwnershipLostError() (o *ShardOwnershipLostError) { + if v != nil && v.ShardOwnershipLostError != nil { + return v.ShardOwnershipLostError } return } -// IsSetWorkflowExecutionAlreadyCompletedError returns true if WorkflowExecutionAlreadyCompletedError is not nil. -func (v *HistoryService_RecordActivityTaskHeartbeat_Result) IsSetWorkflowExecutionAlreadyCompletedError() bool { - return v != nil && v.WorkflowExecutionAlreadyCompletedError != nil +// IsSetShardOwnershipLostError returns true if ShardOwnershipLostError is not nil. +func (v *HistoryService_ReapplyEvents_Result) IsSetShardOwnershipLostError() bool { + return v != nil && v.ShardOwnershipLostError != nil +} + +// GetEntityNotExistError returns the value of EntityNotExistError if it is set or its +// zero value if it is unset. +func (v *HistoryService_ReapplyEvents_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 *HistoryService_ReapplyEvents_Result) IsSetEntityNotExistError() bool { + return v != nil && v.EntityNotExistError != 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 "RecordActivityTaskHeartbeat" for this struct. -func (v *HistoryService_RecordActivityTaskHeartbeat_Result) MethodName() string { - return "RecordActivityTaskHeartbeat" +// This will always be "ReapplyEvents" for this struct. +func (v *HistoryService_ReapplyEvents_Result) MethodName() string { + return "ReapplyEvents" } // EnvelopeType returns the kind of value inside this struct. // // This will always be Reply for this struct. -func (v *HistoryService_RecordActivityTaskHeartbeat_Result) EnvelopeType() wire.EnvelopeType { +func (v *HistoryService_ReapplyEvents_Result) EnvelopeType() wire.EnvelopeType { return wire.Reply } -// HistoryService_RecordActivityTaskStarted_Args represents the arguments for the HistoryService.RecordActivityTaskStarted function. +// HistoryService_RecordActivityTaskHeartbeat_Args represents the arguments for the HistoryService.RecordActivityTaskHeartbeat function. // -// The arguments for RecordActivityTaskStarted are sent and received over the wire as this struct. -type HistoryService_RecordActivityTaskStarted_Args struct { - AddRequest *RecordActivityTaskStartedRequest `json:"addRequest,omitempty"` +// The arguments for RecordActivityTaskHeartbeat are sent and received over the wire as this struct. +type HistoryService_RecordActivityTaskHeartbeat_Args struct { + HeartbeatRequest *RecordActivityTaskHeartbeatRequest `json:"heartbeatRequest,omitempty"` } -// ToWire translates a HistoryService_RecordActivityTaskStarted_Args struct into a Thrift-level intermediate +// ToWire translates a HistoryService_RecordActivityTaskHeartbeat_Args struct into a Thrift-level intermediate // representation. This intermediate representation may be serialized // into bytes using a ThriftRW protocol implementation. // @@ -24110,7 +23824,7 @@ type HistoryService_RecordActivityTaskStarted_Args struct { // if err := binaryProtocol.Encode(x, writer); err != nil { // return err // } -func (v *HistoryService_RecordActivityTaskStarted_Args) ToWire() (wire.Value, error) { +func (v *HistoryService_RecordActivityTaskHeartbeat_Args) ToWire() (wire.Value, error) { var ( fields [1]wire.Field i int = 0 @@ -24118,8 +23832,8 @@ func (v *HistoryService_RecordActivityTaskStarted_Args) ToWire() (wire.Value, er err error ) - if v.AddRequest != nil { - w, err = v.AddRequest.ToWire() + if v.HeartbeatRequest != nil { + w, err = v.HeartbeatRequest.ToWire() if err != nil { return w, err } @@ -24130,17 +23844,17 @@ func (v *HistoryService_RecordActivityTaskStarted_Args) ToWire() (wire.Value, er return wire.NewValueStruct(wire.Struct{Fields: fields[:i]}), nil } -func _RecordActivityTaskStartedRequest_Read(w wire.Value) (*RecordActivityTaskStartedRequest, error) { - var v RecordActivityTaskStartedRequest +func _RecordActivityTaskHeartbeatRequest_1_Read(w wire.Value) (*RecordActivityTaskHeartbeatRequest, error) { + var v RecordActivityTaskHeartbeatRequest err := v.FromWire(w) return &v, err } -// FromWire deserializes a HistoryService_RecordActivityTaskStarted_Args struct from its Thrift-level +// FromWire deserializes a HistoryService_RecordActivityTaskHeartbeat_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 HistoryService_RecordActivityTaskStarted_Args struct +// An error is returned if we were unable to build a HistoryService_RecordActivityTaskHeartbeat_Args struct // from the provided intermediate representation. // // x, err := binaryProtocol.Decode(reader, wire.TStruct) @@ -24148,19 +23862,19 @@ func _RecordActivityTaskStartedRequest_Read(w wire.Value) (*RecordActivityTaskSt // return nil, err // } // -// var v HistoryService_RecordActivityTaskStarted_Args +// var v HistoryService_RecordActivityTaskHeartbeat_Args // if err := v.FromWire(x); err != nil { // return nil, err // } // return &v, nil -func (v *HistoryService_RecordActivityTaskStarted_Args) FromWire(w wire.Value) error { +func (v *HistoryService_RecordActivityTaskHeartbeat_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.AddRequest, err = _RecordActivityTaskStartedRequest_Read(field.Value) + v.HeartbeatRequest, err = _RecordActivityTaskHeartbeatRequest_1_Read(field.Value) if err != nil { return err } @@ -24172,34 +23886,34 @@ func (v *HistoryService_RecordActivityTaskStarted_Args) FromWire(w wire.Value) e return nil } -// String returns a readable string representation of a HistoryService_RecordActivityTaskStarted_Args +// String returns a readable string representation of a HistoryService_RecordActivityTaskHeartbeat_Args // struct. -func (v *HistoryService_RecordActivityTaskStarted_Args) String() string { +func (v *HistoryService_RecordActivityTaskHeartbeat_Args) String() string { if v == nil { return "" } var fields [1]string i := 0 - if v.AddRequest != nil { - fields[i] = fmt.Sprintf("AddRequest: %v", v.AddRequest) + if v.HeartbeatRequest != nil { + fields[i] = fmt.Sprintf("HeartbeatRequest: %v", v.HeartbeatRequest) i++ } - return fmt.Sprintf("HistoryService_RecordActivityTaskStarted_Args{%v}", strings.Join(fields[:i], ", ")) + return fmt.Sprintf("HistoryService_RecordActivityTaskHeartbeat_Args{%v}", strings.Join(fields[:i], ", ")) } -// Equals returns true if all the fields of this HistoryService_RecordActivityTaskStarted_Args match the -// provided HistoryService_RecordActivityTaskStarted_Args. +// Equals returns true if all the fields of this HistoryService_RecordActivityTaskHeartbeat_Args match the +// provided HistoryService_RecordActivityTaskHeartbeat_Args. // // This function performs a deep comparison. -func (v *HistoryService_RecordActivityTaskStarted_Args) Equals(rhs *HistoryService_RecordActivityTaskStarted_Args) bool { +func (v *HistoryService_RecordActivityTaskHeartbeat_Args) Equals(rhs *HistoryService_RecordActivityTaskHeartbeat_Args) bool { if v == nil { return rhs == nil } else if rhs == nil { return false } - if !((v.AddRequest == nil && rhs.AddRequest == nil) || (v.AddRequest != nil && rhs.AddRequest != nil && v.AddRequest.Equals(rhs.AddRequest))) { + if !((v.HeartbeatRequest == nil && rhs.HeartbeatRequest == nil) || (v.HeartbeatRequest != nil && rhs.HeartbeatRequest != nil && v.HeartbeatRequest.Equals(rhs.HeartbeatRequest))) { return false } @@ -24207,109 +23921,107 @@ func (v *HistoryService_RecordActivityTaskStarted_Args) Equals(rhs *HistoryServi } // MarshalLogObject implements zapcore.ObjectMarshaler, enabling -// fast logging of HistoryService_RecordActivityTaskStarted_Args. -func (v *HistoryService_RecordActivityTaskStarted_Args) MarshalLogObject(enc zapcore.ObjectEncoder) (err error) { +// fast logging of HistoryService_RecordActivityTaskHeartbeat_Args. +func (v *HistoryService_RecordActivityTaskHeartbeat_Args) MarshalLogObject(enc zapcore.ObjectEncoder) (err error) { if v == nil { return nil } - if v.AddRequest != nil { - err = multierr.Append(err, enc.AddObject("addRequest", v.AddRequest)) + if v.HeartbeatRequest != nil { + err = multierr.Append(err, enc.AddObject("heartbeatRequest", v.HeartbeatRequest)) } return err } -// GetAddRequest returns the value of AddRequest if it is set or its +// GetHeartbeatRequest returns the value of HeartbeatRequest if it is set or its // zero value if it is unset. -func (v *HistoryService_RecordActivityTaskStarted_Args) GetAddRequest() (o *RecordActivityTaskStartedRequest) { - if v != nil && v.AddRequest != nil { - return v.AddRequest +func (v *HistoryService_RecordActivityTaskHeartbeat_Args) GetHeartbeatRequest() (o *RecordActivityTaskHeartbeatRequest) { + if v != nil && v.HeartbeatRequest != nil { + return v.HeartbeatRequest } return } -// IsSetAddRequest returns true if AddRequest is not nil. -func (v *HistoryService_RecordActivityTaskStarted_Args) IsSetAddRequest() bool { - return v != nil && v.AddRequest != nil +// IsSetHeartbeatRequest returns true if HeartbeatRequest is not nil. +func (v *HistoryService_RecordActivityTaskHeartbeat_Args) IsSetHeartbeatRequest() bool { + return v != nil && v.HeartbeatRequest != 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 "RecordActivityTaskStarted" for this struct. -func (v *HistoryService_RecordActivityTaskStarted_Args) MethodName() string { - return "RecordActivityTaskStarted" +// This will always be "RecordActivityTaskHeartbeat" for this struct. +func (v *HistoryService_RecordActivityTaskHeartbeat_Args) MethodName() string { + return "RecordActivityTaskHeartbeat" } // EnvelopeType returns the kind of value inside this struct. // // This will always be Call for this struct. -func (v *HistoryService_RecordActivityTaskStarted_Args) EnvelopeType() wire.EnvelopeType { +func (v *HistoryService_RecordActivityTaskHeartbeat_Args) EnvelopeType() wire.EnvelopeType { return wire.Call } -// HistoryService_RecordActivityTaskStarted_Helper provides functions that aid in handling the -// parameters and return values of the HistoryService.RecordActivityTaskStarted -// function. -var HistoryService_RecordActivityTaskStarted_Helper = struct { - // Args accepts the parameters of RecordActivityTaskStarted in-order and returns +// HistoryService_RecordActivityTaskHeartbeat_Helper provides functions that aid in handling the +// parameters and return values of the HistoryService.RecordActivityTaskHeartbeat +// function. +var HistoryService_RecordActivityTaskHeartbeat_Helper = struct { + // Args accepts the parameters of RecordActivityTaskHeartbeat in-order and returns // the arguments struct for the function. Args func( - addRequest *RecordActivityTaskStartedRequest, - ) *HistoryService_RecordActivityTaskStarted_Args + heartbeatRequest *RecordActivityTaskHeartbeatRequest, + ) *HistoryService_RecordActivityTaskHeartbeat_Args // IsException returns true if the given error can be thrown - // by RecordActivityTaskStarted. + // by RecordActivityTaskHeartbeat. // - // An error can be thrown by RecordActivityTaskStarted only if the + // An error can be thrown by RecordActivityTaskHeartbeat 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 RecordActivityTaskStarted + // WrapResponse returns the result struct for RecordActivityTaskHeartbeat // given its return value and error. // // This allows mapping values and errors returned by - // RecordActivityTaskStarted into a serializable result struct. + // RecordActivityTaskHeartbeat into a serializable result struct. // WrapResponse returns a non-nil error if the provided - // error cannot be thrown by RecordActivityTaskStarted + // error cannot be thrown by RecordActivityTaskHeartbeat // - // value, err := RecordActivityTaskStarted(args) - // result, err := HistoryService_RecordActivityTaskStarted_Helper.WrapResponse(value, err) + // value, err := RecordActivityTaskHeartbeat(args) + // result, err := HistoryService_RecordActivityTaskHeartbeat_Helper.WrapResponse(value, err) // if err != nil { - // return fmt.Errorf("unexpected error from RecordActivityTaskStarted: %v", err) + // return fmt.Errorf("unexpected error from RecordActivityTaskHeartbeat: %v", err) // } // serialize(result) - WrapResponse func(*RecordActivityTaskStartedResponse, error) (*HistoryService_RecordActivityTaskStarted_Result, error) + WrapResponse func(*shared.RecordActivityTaskHeartbeatResponse, error) (*HistoryService_RecordActivityTaskHeartbeat_Result, error) - // UnwrapResponse takes the result struct for RecordActivityTaskStarted + // UnwrapResponse takes the result struct for RecordActivityTaskHeartbeat // and returns the value or error returned by it. // - // The error is non-nil only if RecordActivityTaskStarted threw an + // The error is non-nil only if RecordActivityTaskHeartbeat threw an // exception. // // result := deserialize(bytes) - // value, err := HistoryService_RecordActivityTaskStarted_Helper.UnwrapResponse(result) - UnwrapResponse func(*HistoryService_RecordActivityTaskStarted_Result) (*RecordActivityTaskStartedResponse, error) + // value, err := HistoryService_RecordActivityTaskHeartbeat_Helper.UnwrapResponse(result) + UnwrapResponse func(*HistoryService_RecordActivityTaskHeartbeat_Result) (*shared.RecordActivityTaskHeartbeatResponse, error) }{} func init() { - HistoryService_RecordActivityTaskStarted_Helper.Args = func( - addRequest *RecordActivityTaskStartedRequest, - ) *HistoryService_RecordActivityTaskStarted_Args { - return &HistoryService_RecordActivityTaskStarted_Args{ - AddRequest: addRequest, + HistoryService_RecordActivityTaskHeartbeat_Helper.Args = func( + heartbeatRequest *RecordActivityTaskHeartbeatRequest, + ) *HistoryService_RecordActivityTaskHeartbeat_Args { + return &HistoryService_RecordActivityTaskHeartbeat_Args{ + HeartbeatRequest: heartbeatRequest, } } - HistoryService_RecordActivityTaskStarted_Helper.IsException = func(err error) bool { + HistoryService_RecordActivityTaskHeartbeat_Helper.IsException = func(err error) bool { switch err.(type) { case *shared.BadRequestError: return true case *shared.InternalServiceError: return true - case *EventAlreadyStartedError: - return true case *shared.EntityNotExistsError: return true case *ShardOwnershipLostError: @@ -24327,62 +24039,57 @@ func init() { } } - HistoryService_RecordActivityTaskStarted_Helper.WrapResponse = func(success *RecordActivityTaskStartedResponse, err error) (*HistoryService_RecordActivityTaskStarted_Result, error) { + HistoryService_RecordActivityTaskHeartbeat_Helper.WrapResponse = func(success *shared.RecordActivityTaskHeartbeatResponse, err error) (*HistoryService_RecordActivityTaskHeartbeat_Result, error) { if err == nil { - return &HistoryService_RecordActivityTaskStarted_Result{Success: success}, nil + return &HistoryService_RecordActivityTaskHeartbeat_Result{Success: success}, nil } switch e := err.(type) { case *shared.BadRequestError: if e == nil { - return nil, errors.New("WrapResponse received non-nil error type with nil value for HistoryService_RecordActivityTaskStarted_Result.BadRequestError") + return nil, errors.New("WrapResponse received non-nil error type with nil value for HistoryService_RecordActivityTaskHeartbeat_Result.BadRequestError") } - return &HistoryService_RecordActivityTaskStarted_Result{BadRequestError: e}, nil + return &HistoryService_RecordActivityTaskHeartbeat_Result{BadRequestError: e}, nil case *shared.InternalServiceError: if e == nil { - return nil, errors.New("WrapResponse received non-nil error type with nil value for HistoryService_RecordActivityTaskStarted_Result.InternalServiceError") - } - return &HistoryService_RecordActivityTaskStarted_Result{InternalServiceError: e}, nil - case *EventAlreadyStartedError: - if e == nil { - return nil, errors.New("WrapResponse received non-nil error type with nil value for HistoryService_RecordActivityTaskStarted_Result.EventAlreadyStartedError") + return nil, errors.New("WrapResponse received non-nil error type with nil value for HistoryService_RecordActivityTaskHeartbeat_Result.InternalServiceError") } - return &HistoryService_RecordActivityTaskStarted_Result{EventAlreadyStartedError: e}, nil + return &HistoryService_RecordActivityTaskHeartbeat_Result{InternalServiceError: e}, nil case *shared.EntityNotExistsError: if e == nil { - return nil, errors.New("WrapResponse received non-nil error type with nil value for HistoryService_RecordActivityTaskStarted_Result.EntityNotExistError") + return nil, errors.New("WrapResponse received non-nil error type with nil value for HistoryService_RecordActivityTaskHeartbeat_Result.EntityNotExistError") } - return &HistoryService_RecordActivityTaskStarted_Result{EntityNotExistError: e}, nil + return &HistoryService_RecordActivityTaskHeartbeat_Result{EntityNotExistError: e}, nil case *ShardOwnershipLostError: if e == nil { - return nil, errors.New("WrapResponse received non-nil error type with nil value for HistoryService_RecordActivityTaskStarted_Result.ShardOwnershipLostError") + return nil, errors.New("WrapResponse received non-nil error type with nil value for HistoryService_RecordActivityTaskHeartbeat_Result.ShardOwnershipLostError") } - return &HistoryService_RecordActivityTaskStarted_Result{ShardOwnershipLostError: e}, nil + return &HistoryService_RecordActivityTaskHeartbeat_Result{ShardOwnershipLostError: e}, nil case *shared.DomainNotActiveError: if e == nil { - return nil, errors.New("WrapResponse received non-nil error type with nil value for HistoryService_RecordActivityTaskStarted_Result.DomainNotActiveError") + return nil, errors.New("WrapResponse received non-nil error type with nil value for HistoryService_RecordActivityTaskHeartbeat_Result.DomainNotActiveError") } - return &HistoryService_RecordActivityTaskStarted_Result{DomainNotActiveError: e}, nil + return &HistoryService_RecordActivityTaskHeartbeat_Result{DomainNotActiveError: e}, nil case *shared.LimitExceededError: if e == nil { - return nil, errors.New("WrapResponse received non-nil error type with nil value for HistoryService_RecordActivityTaskStarted_Result.LimitExceededError") + return nil, errors.New("WrapResponse received non-nil error type with nil value for HistoryService_RecordActivityTaskHeartbeat_Result.LimitExceededError") } - return &HistoryService_RecordActivityTaskStarted_Result{LimitExceededError: e}, nil + return &HistoryService_RecordActivityTaskHeartbeat_Result{LimitExceededError: e}, nil case *shared.ServiceBusyError: if e == nil { - return nil, errors.New("WrapResponse received non-nil error type with nil value for HistoryService_RecordActivityTaskStarted_Result.ServiceBusyError") + return nil, errors.New("WrapResponse received non-nil error type with nil value for HistoryService_RecordActivityTaskHeartbeat_Result.ServiceBusyError") } - return &HistoryService_RecordActivityTaskStarted_Result{ServiceBusyError: e}, nil + return &HistoryService_RecordActivityTaskHeartbeat_Result{ServiceBusyError: e}, nil case *shared.WorkflowExecutionAlreadyCompletedError: if e == nil { - return nil, errors.New("WrapResponse received non-nil error type with nil value for HistoryService_RecordActivityTaskStarted_Result.WorkflowExecutionAlreadyCompletedError") + return nil, errors.New("WrapResponse received non-nil error type with nil value for HistoryService_RecordActivityTaskHeartbeat_Result.WorkflowExecutionAlreadyCompletedError") } - return &HistoryService_RecordActivityTaskStarted_Result{WorkflowExecutionAlreadyCompletedError: e}, nil + return &HistoryService_RecordActivityTaskHeartbeat_Result{WorkflowExecutionAlreadyCompletedError: e}, nil } return nil, err } - HistoryService_RecordActivityTaskStarted_Helper.UnwrapResponse = func(result *HistoryService_RecordActivityTaskStarted_Result) (success *RecordActivityTaskStartedResponse, err error) { + HistoryService_RecordActivityTaskHeartbeat_Helper.UnwrapResponse = func(result *HistoryService_RecordActivityTaskHeartbeat_Result) (success *shared.RecordActivityTaskHeartbeatResponse, err error) { if result.BadRequestError != nil { err = result.BadRequestError return @@ -24391,10 +24098,6 @@ func init() { err = result.InternalServiceError return } - if result.EventAlreadyStartedError != nil { - err = result.EventAlreadyStartedError - return - } if result.EntityNotExistError != nil { err = result.EntityNotExistError return @@ -24431,17 +24134,16 @@ func init() { } -// HistoryService_RecordActivityTaskStarted_Result represents the result of a HistoryService.RecordActivityTaskStarted function call. +// HistoryService_RecordActivityTaskHeartbeat_Result represents the result of a HistoryService.RecordActivityTaskHeartbeat function call. // -// The result of a RecordActivityTaskStarted execution is sent and received over the wire as this struct. +// The result of a RecordActivityTaskHeartbeat execution is sent and received over the wire as this struct. // // Success is set only if the function did not throw an exception. -type HistoryService_RecordActivityTaskStarted_Result struct { - // Value returned by RecordActivityTaskStarted after a successful execution. - Success *RecordActivityTaskStartedResponse `json:"success,omitempty"` +type HistoryService_RecordActivityTaskHeartbeat_Result struct { + // Value returned by RecordActivityTaskHeartbeat after a successful execution. + Success *shared.RecordActivityTaskHeartbeatResponse `json:"success,omitempty"` BadRequestError *shared.BadRequestError `json:"badRequestError,omitempty"` InternalServiceError *shared.InternalServiceError `json:"internalServiceError,omitempty"` - EventAlreadyStartedError *EventAlreadyStartedError `json:"eventAlreadyStartedError,omitempty"` EntityNotExistError *shared.EntityNotExistsError `json:"entityNotExistError,omitempty"` ShardOwnershipLostError *ShardOwnershipLostError `json:"shardOwnershipLostError,omitempty"` DomainNotActiveError *shared.DomainNotActiveError `json:"domainNotActiveError,omitempty"` @@ -24450,7 +24152,7 @@ type HistoryService_RecordActivityTaskStarted_Result struct { WorkflowExecutionAlreadyCompletedError *shared.WorkflowExecutionAlreadyCompletedError `json:"workflowExecutionAlreadyCompletedError,omitempty"` } -// ToWire translates a HistoryService_RecordActivityTaskStarted_Result struct into a Thrift-level intermediate +// ToWire translates a HistoryService_RecordActivityTaskHeartbeat_Result struct into a Thrift-level intermediate // representation. This intermediate representation may be serialized // into bytes using a ThriftRW protocol implementation. // @@ -24465,9 +24167,9 @@ type HistoryService_RecordActivityTaskStarted_Result struct { // if err := binaryProtocol.Encode(x, writer); err != nil { // return err // } -func (v *HistoryService_RecordActivityTaskStarted_Result) ToWire() (wire.Value, error) { +func (v *HistoryService_RecordActivityTaskHeartbeat_Result) ToWire() (wire.Value, error) { var ( - fields [10]wire.Field + fields [9]wire.Field i int = 0 w wire.Value err error @@ -24497,20 +24199,12 @@ func (v *HistoryService_RecordActivityTaskStarted_Result) ToWire() (wire.Value, fields[i] = wire.Field{ID: 2, Value: w} i++ } - if v.EventAlreadyStartedError != nil { - w, err = v.EventAlreadyStartedError.ToWire() - if err != nil { - return w, err - } - fields[i] = wire.Field{ID: 3, Value: w} - i++ - } if v.EntityNotExistError != nil { w, err = v.EntityNotExistError.ToWire() if err != nil { return w, err } - fields[i] = wire.Field{ID: 4, Value: w} + fields[i] = wire.Field{ID: 3, Value: w} i++ } if v.ShardOwnershipLostError != nil { @@ -24518,7 +24212,7 @@ func (v *HistoryService_RecordActivityTaskStarted_Result) ToWire() (wire.Value, if err != nil { return w, err } - fields[i] = wire.Field{ID: 5, Value: w} + fields[i] = wire.Field{ID: 4, Value: w} i++ } if v.DomainNotActiveError != nil { @@ -24526,7 +24220,7 @@ func (v *HistoryService_RecordActivityTaskStarted_Result) ToWire() (wire.Value, if err != nil { return w, err } - fields[i] = wire.Field{ID: 6, Value: w} + fields[i] = wire.Field{ID: 5, Value: w} i++ } if v.LimitExceededError != nil { @@ -24534,7 +24228,7 @@ func (v *HistoryService_RecordActivityTaskStarted_Result) ToWire() (wire.Value, if err != nil { return w, err } - fields[i] = wire.Field{ID: 7, Value: w} + fields[i] = wire.Field{ID: 6, Value: w} i++ } if v.ServiceBusyError != nil { @@ -24542,7 +24236,7 @@ func (v *HistoryService_RecordActivityTaskStarted_Result) ToWire() (wire.Value, if err != nil { return w, err } - fields[i] = wire.Field{ID: 8, Value: w} + fields[i] = wire.Field{ID: 7, Value: w} i++ } if v.WorkflowExecutionAlreadyCompletedError != nil { @@ -24550,34 +24244,34 @@ func (v *HistoryService_RecordActivityTaskStarted_Result) ToWire() (wire.Value, if err != nil { return w, err } - fields[i] = wire.Field{ID: 9, Value: w} + fields[i] = wire.Field{ID: 8, Value: w} i++ } if i != 1 { - return wire.Value{}, fmt.Errorf("HistoryService_RecordActivityTaskStarted_Result should have exactly one field: got %v fields", i) + return wire.Value{}, fmt.Errorf("HistoryService_RecordActivityTaskHeartbeat_Result should have exactly one field: got %v fields", i) } return wire.NewValueStruct(wire.Struct{Fields: fields[:i]}), nil } -func _RecordActivityTaskStartedResponse_Read(w wire.Value) (*RecordActivityTaskStartedResponse, error) { - var v RecordActivityTaskStartedResponse +func _RecordActivityTaskHeartbeatResponse_Read(w wire.Value) (*shared.RecordActivityTaskHeartbeatResponse, error) { + var v shared.RecordActivityTaskHeartbeatResponse err := v.FromWire(w) return &v, err } -func _EventAlreadyStartedError_Read(w wire.Value) (*EventAlreadyStartedError, error) { - var v EventAlreadyStartedError +func _WorkflowExecutionAlreadyCompletedError_Read(w wire.Value) (*shared.WorkflowExecutionAlreadyCompletedError, error) { + var v shared.WorkflowExecutionAlreadyCompletedError err := v.FromWire(w) return &v, err } -// FromWire deserializes a HistoryService_RecordActivityTaskStarted_Result struct from its Thrift-level +// FromWire deserializes a HistoryService_RecordActivityTaskHeartbeat_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 HistoryService_RecordActivityTaskStarted_Result struct +// An error is returned if we were unable to build a HistoryService_RecordActivityTaskHeartbeat_Result struct // from the provided intermediate representation. // // x, err := binaryProtocol.Decode(reader, wire.TStruct) @@ -24585,19 +24279,19 @@ func _EventAlreadyStartedError_Read(w wire.Value) (*EventAlreadyStartedError, er // return nil, err // } // -// var v HistoryService_RecordActivityTaskStarted_Result +// var v HistoryService_RecordActivityTaskHeartbeat_Result // if err := v.FromWire(x); err != nil { // return nil, err // } // return &v, nil -func (v *HistoryService_RecordActivityTaskStarted_Result) FromWire(w wire.Value) error { +func (v *HistoryService_RecordActivityTaskHeartbeat_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 = _RecordActivityTaskStartedResponse_Read(field.Value) + v.Success, err = _RecordActivityTaskHeartbeatResponse_Read(field.Value) if err != nil { return err } @@ -24620,14 +24314,6 @@ func (v *HistoryService_RecordActivityTaskStarted_Result) FromWire(w wire.Value) } case 3: - if field.Value.Type() == wire.TStruct { - v.EventAlreadyStartedError, err = _EventAlreadyStartedError_Read(field.Value) - if err != nil { - return err - } - - } - case 4: if field.Value.Type() == wire.TStruct { v.EntityNotExistError, err = _EntityNotExistsError_Read(field.Value) if err != nil { @@ -24635,7 +24321,7 @@ func (v *HistoryService_RecordActivityTaskStarted_Result) FromWire(w wire.Value) } } - case 5: + case 4: if field.Value.Type() == wire.TStruct { v.ShardOwnershipLostError, err = _ShardOwnershipLostError_Read(field.Value) if err != nil { @@ -24643,7 +24329,7 @@ func (v *HistoryService_RecordActivityTaskStarted_Result) FromWire(w wire.Value) } } - case 6: + case 5: if field.Value.Type() == wire.TStruct { v.DomainNotActiveError, err = _DomainNotActiveError_Read(field.Value) if err != nil { @@ -24651,7 +24337,7 @@ func (v *HistoryService_RecordActivityTaskStarted_Result) FromWire(w wire.Value) } } - case 7: + case 6: if field.Value.Type() == wire.TStruct { v.LimitExceededError, err = _LimitExceededError_Read(field.Value) if err != nil { @@ -24659,7 +24345,7 @@ func (v *HistoryService_RecordActivityTaskStarted_Result) FromWire(w wire.Value) } } - case 8: + case 7: if field.Value.Type() == wire.TStruct { v.ServiceBusyError, err = _ServiceBusyError_Read(field.Value) if err != nil { @@ -24667,7 +24353,7 @@ func (v *HistoryService_RecordActivityTaskStarted_Result) FromWire(w wire.Value) } } - case 9: + case 8: if field.Value.Type() == wire.TStruct { v.WorkflowExecutionAlreadyCompletedError, err = _WorkflowExecutionAlreadyCompletedError_Read(field.Value) if err != nil { @@ -24688,9 +24374,6 @@ func (v *HistoryService_RecordActivityTaskStarted_Result) FromWire(w wire.Value) if v.InternalServiceError != nil { count++ } - if v.EventAlreadyStartedError != nil { - count++ - } if v.EntityNotExistError != nil { count++ } @@ -24710,20 +24393,20 @@ func (v *HistoryService_RecordActivityTaskStarted_Result) FromWire(w wire.Value) count++ } if count != 1 { - return fmt.Errorf("HistoryService_RecordActivityTaskStarted_Result should have exactly one field: got %v fields", count) + return fmt.Errorf("HistoryService_RecordActivityTaskHeartbeat_Result should have exactly one field: got %v fields", count) } return nil } -// String returns a readable string representation of a HistoryService_RecordActivityTaskStarted_Result +// String returns a readable string representation of a HistoryService_RecordActivityTaskHeartbeat_Result // struct. -func (v *HistoryService_RecordActivityTaskStarted_Result) String() string { +func (v *HistoryService_RecordActivityTaskHeartbeat_Result) String() string { if v == nil { return "" } - var fields [10]string + var fields [9]string i := 0 if v.Success != nil { fields[i] = fmt.Sprintf("Success: %v", v.Success) @@ -24737,10 +24420,6 @@ func (v *HistoryService_RecordActivityTaskStarted_Result) String() string { fields[i] = fmt.Sprintf("InternalServiceError: %v", v.InternalServiceError) i++ } - if v.EventAlreadyStartedError != nil { - fields[i] = fmt.Sprintf("EventAlreadyStartedError: %v", v.EventAlreadyStartedError) - i++ - } if v.EntityNotExistError != nil { fields[i] = fmt.Sprintf("EntityNotExistError: %v", v.EntityNotExistError) i++ @@ -24766,14 +24445,14 @@ func (v *HistoryService_RecordActivityTaskStarted_Result) String() string { i++ } - return fmt.Sprintf("HistoryService_RecordActivityTaskStarted_Result{%v}", strings.Join(fields[:i], ", ")) + return fmt.Sprintf("HistoryService_RecordActivityTaskHeartbeat_Result{%v}", strings.Join(fields[:i], ", ")) } -// Equals returns true if all the fields of this HistoryService_RecordActivityTaskStarted_Result match the -// provided HistoryService_RecordActivityTaskStarted_Result. +// Equals returns true if all the fields of this HistoryService_RecordActivityTaskHeartbeat_Result match the +// provided HistoryService_RecordActivityTaskHeartbeat_Result. // // This function performs a deep comparison. -func (v *HistoryService_RecordActivityTaskStarted_Result) Equals(rhs *HistoryService_RecordActivityTaskStarted_Result) bool { +func (v *HistoryService_RecordActivityTaskHeartbeat_Result) Equals(rhs *HistoryService_RecordActivityTaskHeartbeat_Result) bool { if v == nil { return rhs == nil } else if rhs == nil { @@ -24788,9 +24467,6 @@ func (v *HistoryService_RecordActivityTaskStarted_Result) Equals(rhs *HistorySer if !((v.InternalServiceError == nil && rhs.InternalServiceError == nil) || (v.InternalServiceError != nil && rhs.InternalServiceError != nil && v.InternalServiceError.Equals(rhs.InternalServiceError))) { return false } - if !((v.EventAlreadyStartedError == nil && rhs.EventAlreadyStartedError == nil) || (v.EventAlreadyStartedError != nil && rhs.EventAlreadyStartedError != nil && v.EventAlreadyStartedError.Equals(rhs.EventAlreadyStartedError))) { - return false - } if !((v.EntityNotExistError == nil && rhs.EntityNotExistError == nil) || (v.EntityNotExistError != nil && rhs.EntityNotExistError != nil && v.EntityNotExistError.Equals(rhs.EntityNotExistError))) { return false } @@ -24814,8 +24490,8 @@ func (v *HistoryService_RecordActivityTaskStarted_Result) Equals(rhs *HistorySer } // MarshalLogObject implements zapcore.ObjectMarshaler, enabling -// fast logging of HistoryService_RecordActivityTaskStarted_Result. -func (v *HistoryService_RecordActivityTaskStarted_Result) MarshalLogObject(enc zapcore.ObjectEncoder) (err error) { +// fast logging of HistoryService_RecordActivityTaskHeartbeat_Result. +func (v *HistoryService_RecordActivityTaskHeartbeat_Result) MarshalLogObject(enc zapcore.ObjectEncoder) (err error) { if v == nil { return nil } @@ -24828,9 +24504,6 @@ func (v *HistoryService_RecordActivityTaskStarted_Result) MarshalLogObject(enc z if v.InternalServiceError != nil { err = multierr.Append(err, enc.AddObject("internalServiceError", v.InternalServiceError)) } - if v.EventAlreadyStartedError != nil { - err = multierr.Append(err, enc.AddObject("eventAlreadyStartedError", v.EventAlreadyStartedError)) - } if v.EntityNotExistError != nil { err = multierr.Append(err, enc.AddObject("entityNotExistError", v.EntityNotExistError)) } @@ -24854,7 +24527,7 @@ func (v *HistoryService_RecordActivityTaskStarted_Result) MarshalLogObject(enc z // GetSuccess returns the value of Success if it is set or its // zero value if it is unset. -func (v *HistoryService_RecordActivityTaskStarted_Result) GetSuccess() (o *RecordActivityTaskStartedResponse) { +func (v *HistoryService_RecordActivityTaskHeartbeat_Result) GetSuccess() (o *shared.RecordActivityTaskHeartbeatResponse) { if v != nil && v.Success != nil { return v.Success } @@ -24863,13 +24536,13 @@ func (v *HistoryService_RecordActivityTaskStarted_Result) GetSuccess() (o *Recor } // IsSetSuccess returns true if Success is not nil. -func (v *HistoryService_RecordActivityTaskStarted_Result) IsSetSuccess() bool { +func (v *HistoryService_RecordActivityTaskHeartbeat_Result) IsSetSuccess() bool { return v != nil && v.Success != nil } // GetBadRequestError returns the value of BadRequestError if it is set or its // zero value if it is unset. -func (v *HistoryService_RecordActivityTaskStarted_Result) GetBadRequestError() (o *shared.BadRequestError) { +func (v *HistoryService_RecordActivityTaskHeartbeat_Result) GetBadRequestError() (o *shared.BadRequestError) { if v != nil && v.BadRequestError != nil { return v.BadRequestError } @@ -24878,13 +24551,13 @@ func (v *HistoryService_RecordActivityTaskStarted_Result) GetBadRequestError() ( } // IsSetBadRequestError returns true if BadRequestError is not nil. -func (v *HistoryService_RecordActivityTaskStarted_Result) IsSetBadRequestError() bool { +func (v *HistoryService_RecordActivityTaskHeartbeat_Result) IsSetBadRequestError() bool { return v != nil && v.BadRequestError != nil } // GetInternalServiceError returns the value of InternalServiceError if it is set or its // zero value if it is unset. -func (v *HistoryService_RecordActivityTaskStarted_Result) GetInternalServiceError() (o *shared.InternalServiceError) { +func (v *HistoryService_RecordActivityTaskHeartbeat_Result) GetInternalServiceError() (o *shared.InternalServiceError) { if v != nil && v.InternalServiceError != nil { return v.InternalServiceError } @@ -24893,28 +24566,13 @@ func (v *HistoryService_RecordActivityTaskStarted_Result) GetInternalServiceErro } // IsSetInternalServiceError returns true if InternalServiceError is not nil. -func (v *HistoryService_RecordActivityTaskStarted_Result) IsSetInternalServiceError() bool { +func (v *HistoryService_RecordActivityTaskHeartbeat_Result) IsSetInternalServiceError() bool { return v != nil && v.InternalServiceError != nil } -// GetEventAlreadyStartedError returns the value of EventAlreadyStartedError if it is set or its -// zero value if it is unset. -func (v *HistoryService_RecordActivityTaskStarted_Result) GetEventAlreadyStartedError() (o *EventAlreadyStartedError) { - if v != nil && v.EventAlreadyStartedError != nil { - return v.EventAlreadyStartedError - } - - return -} - -// IsSetEventAlreadyStartedError returns true if EventAlreadyStartedError is not nil. -func (v *HistoryService_RecordActivityTaskStarted_Result) IsSetEventAlreadyStartedError() bool { - return v != nil && v.EventAlreadyStartedError != nil -} - // GetEntityNotExistError returns the value of EntityNotExistError if it is set or its // zero value if it is unset. -func (v *HistoryService_RecordActivityTaskStarted_Result) GetEntityNotExistError() (o *shared.EntityNotExistsError) { +func (v *HistoryService_RecordActivityTaskHeartbeat_Result) GetEntityNotExistError() (o *shared.EntityNotExistsError) { if v != nil && v.EntityNotExistError != nil { return v.EntityNotExistError } @@ -24923,13 +24581,13 @@ func (v *HistoryService_RecordActivityTaskStarted_Result) GetEntityNotExistError } // IsSetEntityNotExistError returns true if EntityNotExistError is not nil. -func (v *HistoryService_RecordActivityTaskStarted_Result) IsSetEntityNotExistError() bool { +func (v *HistoryService_RecordActivityTaskHeartbeat_Result) IsSetEntityNotExistError() bool { return v != nil && v.EntityNotExistError != nil } // GetShardOwnershipLostError returns the value of ShardOwnershipLostError if it is set or its // zero value if it is unset. -func (v *HistoryService_RecordActivityTaskStarted_Result) GetShardOwnershipLostError() (o *ShardOwnershipLostError) { +func (v *HistoryService_RecordActivityTaskHeartbeat_Result) GetShardOwnershipLostError() (o *ShardOwnershipLostError) { if v != nil && v.ShardOwnershipLostError != nil { return v.ShardOwnershipLostError } @@ -24938,13 +24596,13 @@ func (v *HistoryService_RecordActivityTaskStarted_Result) GetShardOwnershipLostE } // IsSetShardOwnershipLostError returns true if ShardOwnershipLostError is not nil. -func (v *HistoryService_RecordActivityTaskStarted_Result) IsSetShardOwnershipLostError() bool { +func (v *HistoryService_RecordActivityTaskHeartbeat_Result) IsSetShardOwnershipLostError() bool { return v != nil && v.ShardOwnershipLostError != nil } // GetDomainNotActiveError returns the value of DomainNotActiveError if it is set or its // zero value if it is unset. -func (v *HistoryService_RecordActivityTaskStarted_Result) GetDomainNotActiveError() (o *shared.DomainNotActiveError) { +func (v *HistoryService_RecordActivityTaskHeartbeat_Result) GetDomainNotActiveError() (o *shared.DomainNotActiveError) { if v != nil && v.DomainNotActiveError != nil { return v.DomainNotActiveError } @@ -24953,13 +24611,13 @@ func (v *HistoryService_RecordActivityTaskStarted_Result) GetDomainNotActiveErro } // IsSetDomainNotActiveError returns true if DomainNotActiveError is not nil. -func (v *HistoryService_RecordActivityTaskStarted_Result) IsSetDomainNotActiveError() bool { +func (v *HistoryService_RecordActivityTaskHeartbeat_Result) IsSetDomainNotActiveError() bool { return v != nil && v.DomainNotActiveError != nil } // GetLimitExceededError returns the value of LimitExceededError if it is set or its // zero value if it is unset. -func (v *HistoryService_RecordActivityTaskStarted_Result) GetLimitExceededError() (o *shared.LimitExceededError) { +func (v *HistoryService_RecordActivityTaskHeartbeat_Result) GetLimitExceededError() (o *shared.LimitExceededError) { if v != nil && v.LimitExceededError != nil { return v.LimitExceededError } @@ -24968,13 +24626,13 @@ func (v *HistoryService_RecordActivityTaskStarted_Result) GetLimitExceededError( } // IsSetLimitExceededError returns true if LimitExceededError is not nil. -func (v *HistoryService_RecordActivityTaskStarted_Result) IsSetLimitExceededError() bool { +func (v *HistoryService_RecordActivityTaskHeartbeat_Result) IsSetLimitExceededError() bool { return v != nil && v.LimitExceededError != nil } // GetServiceBusyError returns the value of ServiceBusyError if it is set or its // zero value if it is unset. -func (v *HistoryService_RecordActivityTaskStarted_Result) GetServiceBusyError() (o *shared.ServiceBusyError) { +func (v *HistoryService_RecordActivityTaskHeartbeat_Result) GetServiceBusyError() (o *shared.ServiceBusyError) { if v != nil && v.ServiceBusyError != nil { return v.ServiceBusyError } @@ -24983,13 +24641,13 @@ func (v *HistoryService_RecordActivityTaskStarted_Result) GetServiceBusyError() } // IsSetServiceBusyError returns true if ServiceBusyError is not nil. -func (v *HistoryService_RecordActivityTaskStarted_Result) IsSetServiceBusyError() bool { +func (v *HistoryService_RecordActivityTaskHeartbeat_Result) IsSetServiceBusyError() bool { return v != nil && v.ServiceBusyError != nil } // GetWorkflowExecutionAlreadyCompletedError returns the value of WorkflowExecutionAlreadyCompletedError if it is set or its // zero value if it is unset. -func (v *HistoryService_RecordActivityTaskStarted_Result) GetWorkflowExecutionAlreadyCompletedError() (o *shared.WorkflowExecutionAlreadyCompletedError) { +func (v *HistoryService_RecordActivityTaskHeartbeat_Result) GetWorkflowExecutionAlreadyCompletedError() (o *shared.WorkflowExecutionAlreadyCompletedError) { if v != nil && v.WorkflowExecutionAlreadyCompletedError != nil { return v.WorkflowExecutionAlreadyCompletedError } @@ -24998,33 +24656,33 @@ func (v *HistoryService_RecordActivityTaskStarted_Result) GetWorkflowExecutionAl } // IsSetWorkflowExecutionAlreadyCompletedError returns true if WorkflowExecutionAlreadyCompletedError is not nil. -func (v *HistoryService_RecordActivityTaskStarted_Result) IsSetWorkflowExecutionAlreadyCompletedError() bool { +func (v *HistoryService_RecordActivityTaskHeartbeat_Result) IsSetWorkflowExecutionAlreadyCompletedError() bool { return v != nil && v.WorkflowExecutionAlreadyCompletedError != 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 "RecordActivityTaskStarted" for this struct. -func (v *HistoryService_RecordActivityTaskStarted_Result) MethodName() string { - return "RecordActivityTaskStarted" +// This will always be "RecordActivityTaskHeartbeat" for this struct. +func (v *HistoryService_RecordActivityTaskHeartbeat_Result) MethodName() string { + return "RecordActivityTaskHeartbeat" } // EnvelopeType returns the kind of value inside this struct. // // This will always be Reply for this struct. -func (v *HistoryService_RecordActivityTaskStarted_Result) EnvelopeType() wire.EnvelopeType { +func (v *HistoryService_RecordActivityTaskHeartbeat_Result) EnvelopeType() wire.EnvelopeType { return wire.Reply } -// HistoryService_RecordChildExecutionCompleted_Args represents the arguments for the HistoryService.RecordChildExecutionCompleted function. +// HistoryService_RecordActivityTaskStarted_Args represents the arguments for the HistoryService.RecordActivityTaskStarted function. // -// The arguments for RecordChildExecutionCompleted are sent and received over the wire as this struct. -type HistoryService_RecordChildExecutionCompleted_Args struct { - CompletionRequest *RecordChildExecutionCompletedRequest `json:"completionRequest,omitempty"` +// The arguments for RecordActivityTaskStarted are sent and received over the wire as this struct. +type HistoryService_RecordActivityTaskStarted_Args struct { + AddRequest *RecordActivityTaskStartedRequest `json:"addRequest,omitempty"` } -// ToWire translates a HistoryService_RecordChildExecutionCompleted_Args struct into a Thrift-level intermediate +// ToWire translates a HistoryService_RecordActivityTaskStarted_Args struct into a Thrift-level intermediate // representation. This intermediate representation may be serialized // into bytes using a ThriftRW protocol implementation. // @@ -25039,7 +24697,7 @@ type HistoryService_RecordChildExecutionCompleted_Args struct { // if err := binaryProtocol.Encode(x, writer); err != nil { // return err // } -func (v *HistoryService_RecordChildExecutionCompleted_Args) ToWire() (wire.Value, error) { +func (v *HistoryService_RecordActivityTaskStarted_Args) ToWire() (wire.Value, error) { var ( fields [1]wire.Field i int = 0 @@ -25047,8 +24705,8 @@ func (v *HistoryService_RecordChildExecutionCompleted_Args) ToWire() (wire.Value err error ) - if v.CompletionRequest != nil { - w, err = v.CompletionRequest.ToWire() + if v.AddRequest != nil { + w, err = v.AddRequest.ToWire() if err != nil { return w, err } @@ -25059,17 +24717,17 @@ func (v *HistoryService_RecordChildExecutionCompleted_Args) ToWire() (wire.Value return wire.NewValueStruct(wire.Struct{Fields: fields[:i]}), nil } -func _RecordChildExecutionCompletedRequest_Read(w wire.Value) (*RecordChildExecutionCompletedRequest, error) { - var v RecordChildExecutionCompletedRequest +func _RecordActivityTaskStartedRequest_Read(w wire.Value) (*RecordActivityTaskStartedRequest, error) { + var v RecordActivityTaskStartedRequest err := v.FromWire(w) return &v, err } -// FromWire deserializes a HistoryService_RecordChildExecutionCompleted_Args struct from its Thrift-level +// FromWire deserializes a HistoryService_RecordActivityTaskStarted_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 HistoryService_RecordChildExecutionCompleted_Args struct +// An error is returned if we were unable to build a HistoryService_RecordActivityTaskStarted_Args struct // from the provided intermediate representation. // // x, err := binaryProtocol.Decode(reader, wire.TStruct) @@ -25077,19 +24735,19 @@ func _RecordChildExecutionCompletedRequest_Read(w wire.Value) (*RecordChildExecu // return nil, err // } // -// var v HistoryService_RecordChildExecutionCompleted_Args +// var v HistoryService_RecordActivityTaskStarted_Args // if err := v.FromWire(x); err != nil { // return nil, err // } // return &v, nil -func (v *HistoryService_RecordChildExecutionCompleted_Args) FromWire(w wire.Value) error { +func (v *HistoryService_RecordActivityTaskStarted_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.CompletionRequest, err = _RecordChildExecutionCompletedRequest_Read(field.Value) + v.AddRequest, err = _RecordActivityTaskStartedRequest_Read(field.Value) if err != nil { return err } @@ -25101,34 +24759,34 @@ func (v *HistoryService_RecordChildExecutionCompleted_Args) FromWire(w wire.Valu return nil } -// String returns a readable string representation of a HistoryService_RecordChildExecutionCompleted_Args +// String returns a readable string representation of a HistoryService_RecordActivityTaskStarted_Args // struct. -func (v *HistoryService_RecordChildExecutionCompleted_Args) String() string { +func (v *HistoryService_RecordActivityTaskStarted_Args) String() string { if v == nil { return "" } var fields [1]string i := 0 - if v.CompletionRequest != nil { - fields[i] = fmt.Sprintf("CompletionRequest: %v", v.CompletionRequest) + if v.AddRequest != nil { + fields[i] = fmt.Sprintf("AddRequest: %v", v.AddRequest) i++ } - return fmt.Sprintf("HistoryService_RecordChildExecutionCompleted_Args{%v}", strings.Join(fields[:i], ", ")) + return fmt.Sprintf("HistoryService_RecordActivityTaskStarted_Args{%v}", strings.Join(fields[:i], ", ")) } -// Equals returns true if all the fields of this HistoryService_RecordChildExecutionCompleted_Args match the -// provided HistoryService_RecordChildExecutionCompleted_Args. +// Equals returns true if all the fields of this HistoryService_RecordActivityTaskStarted_Args match the +// provided HistoryService_RecordActivityTaskStarted_Args. // // This function performs a deep comparison. -func (v *HistoryService_RecordChildExecutionCompleted_Args) Equals(rhs *HistoryService_RecordChildExecutionCompleted_Args) bool { +func (v *HistoryService_RecordActivityTaskStarted_Args) Equals(rhs *HistoryService_RecordActivityTaskStarted_Args) bool { if v == nil { return rhs == nil } else if rhs == nil { return false } - if !((v.CompletionRequest == nil && rhs.CompletionRequest == nil) || (v.CompletionRequest != nil && rhs.CompletionRequest != nil && v.CompletionRequest.Equals(rhs.CompletionRequest))) { + if !((v.AddRequest == nil && rhs.AddRequest == nil) || (v.AddRequest != nil && rhs.AddRequest != nil && v.AddRequest.Equals(rhs.AddRequest))) { return false } @@ -25136,108 +24794,109 @@ func (v *HistoryService_RecordChildExecutionCompleted_Args) Equals(rhs *HistoryS } // MarshalLogObject implements zapcore.ObjectMarshaler, enabling -// fast logging of HistoryService_RecordChildExecutionCompleted_Args. -func (v *HistoryService_RecordChildExecutionCompleted_Args) MarshalLogObject(enc zapcore.ObjectEncoder) (err error) { +// fast logging of HistoryService_RecordActivityTaskStarted_Args. +func (v *HistoryService_RecordActivityTaskStarted_Args) MarshalLogObject(enc zapcore.ObjectEncoder) (err error) { if v == nil { return nil } - if v.CompletionRequest != nil { - err = multierr.Append(err, enc.AddObject("completionRequest", v.CompletionRequest)) + if v.AddRequest != nil { + err = multierr.Append(err, enc.AddObject("addRequest", v.AddRequest)) } return err } -// GetCompletionRequest returns the value of CompletionRequest if it is set or its +// GetAddRequest returns the value of AddRequest if it is set or its // zero value if it is unset. -func (v *HistoryService_RecordChildExecutionCompleted_Args) GetCompletionRequest() (o *RecordChildExecutionCompletedRequest) { - if v != nil && v.CompletionRequest != nil { - return v.CompletionRequest +func (v *HistoryService_RecordActivityTaskStarted_Args) GetAddRequest() (o *RecordActivityTaskStartedRequest) { + if v != nil && v.AddRequest != nil { + return v.AddRequest } return } -// IsSetCompletionRequest returns true if CompletionRequest is not nil. -func (v *HistoryService_RecordChildExecutionCompleted_Args) IsSetCompletionRequest() bool { - return v != nil && v.CompletionRequest != nil +// IsSetAddRequest returns true if AddRequest is not nil. +func (v *HistoryService_RecordActivityTaskStarted_Args) IsSetAddRequest() bool { + return v != nil && v.AddRequest != 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 "RecordChildExecutionCompleted" for this struct. -func (v *HistoryService_RecordChildExecutionCompleted_Args) MethodName() string { - return "RecordChildExecutionCompleted" +// This will always be "RecordActivityTaskStarted" for this struct. +func (v *HistoryService_RecordActivityTaskStarted_Args) MethodName() string { + return "RecordActivityTaskStarted" } // EnvelopeType returns the kind of value inside this struct. // // This will always be Call for this struct. -func (v *HistoryService_RecordChildExecutionCompleted_Args) EnvelopeType() wire.EnvelopeType { +func (v *HistoryService_RecordActivityTaskStarted_Args) EnvelopeType() wire.EnvelopeType { return wire.Call } -// HistoryService_RecordChildExecutionCompleted_Helper provides functions that aid in handling the -// parameters and return values of the HistoryService.RecordChildExecutionCompleted +// HistoryService_RecordActivityTaskStarted_Helper provides functions that aid in handling the +// parameters and return values of the HistoryService.RecordActivityTaskStarted // function. -var HistoryService_RecordChildExecutionCompleted_Helper = struct { - // Args accepts the parameters of RecordChildExecutionCompleted in-order and returns +var HistoryService_RecordActivityTaskStarted_Helper = struct { + // Args accepts the parameters of RecordActivityTaskStarted in-order and returns // the arguments struct for the function. Args func( - completionRequest *RecordChildExecutionCompletedRequest, - ) *HistoryService_RecordChildExecutionCompleted_Args + addRequest *RecordActivityTaskStartedRequest, + ) *HistoryService_RecordActivityTaskStarted_Args // IsException returns true if the given error can be thrown - // by RecordChildExecutionCompleted. + // by RecordActivityTaskStarted. // - // An error can be thrown by RecordChildExecutionCompleted only if the + // An error can be thrown by RecordActivityTaskStarted 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 RecordChildExecutionCompleted - // given the error returned by it. The provided error may - // be nil if RecordChildExecutionCompleted did not fail. + // WrapResponse returns the result struct for RecordActivityTaskStarted + // given its return value and error. // - // This allows mapping errors returned by RecordChildExecutionCompleted into a - // serializable result struct. WrapResponse returns a - // non-nil error if the provided error cannot be thrown by - // RecordChildExecutionCompleted + // This allows mapping values and errors returned by + // RecordActivityTaskStarted into a serializable result struct. + // WrapResponse returns a non-nil error if the provided + // error cannot be thrown by RecordActivityTaskStarted // - // err := RecordChildExecutionCompleted(args) - // result, err := HistoryService_RecordChildExecutionCompleted_Helper.WrapResponse(err) + // value, err := RecordActivityTaskStarted(args) + // result, err := HistoryService_RecordActivityTaskStarted_Helper.WrapResponse(value, err) // if err != nil { - // return fmt.Errorf("unexpected error from RecordChildExecutionCompleted: %v", err) + // return fmt.Errorf("unexpected error from RecordActivityTaskStarted: %v", err) // } // serialize(result) - WrapResponse func(error) (*HistoryService_RecordChildExecutionCompleted_Result, error) + WrapResponse func(*RecordActivityTaskStartedResponse, error) (*HistoryService_RecordActivityTaskStarted_Result, error) - // UnwrapResponse takes the result struct for RecordChildExecutionCompleted - // and returns the erorr returned by it (if any). + // UnwrapResponse takes the result struct for RecordActivityTaskStarted + // and returns the value or error returned by it. // - // The error is non-nil only if RecordChildExecutionCompleted threw an + // The error is non-nil only if RecordActivityTaskStarted threw an // exception. // // result := deserialize(bytes) - // err := HistoryService_RecordChildExecutionCompleted_Helper.UnwrapResponse(result) - UnwrapResponse func(*HistoryService_RecordChildExecutionCompleted_Result) error + // value, err := HistoryService_RecordActivityTaskStarted_Helper.UnwrapResponse(result) + UnwrapResponse func(*HistoryService_RecordActivityTaskStarted_Result) (*RecordActivityTaskStartedResponse, error) }{} func init() { - HistoryService_RecordChildExecutionCompleted_Helper.Args = func( - completionRequest *RecordChildExecutionCompletedRequest, - ) *HistoryService_RecordChildExecutionCompleted_Args { - return &HistoryService_RecordChildExecutionCompleted_Args{ - CompletionRequest: completionRequest, + HistoryService_RecordActivityTaskStarted_Helper.Args = func( + addRequest *RecordActivityTaskStartedRequest, + ) *HistoryService_RecordActivityTaskStarted_Args { + return &HistoryService_RecordActivityTaskStarted_Args{ + AddRequest: addRequest, } } - HistoryService_RecordChildExecutionCompleted_Helper.IsException = func(err error) bool { + HistoryService_RecordActivityTaskStarted_Helper.IsException = func(err error) bool { switch err.(type) { case *shared.BadRequestError: return true case *shared.InternalServiceError: return true + case *EventAlreadyStartedError: + return true case *shared.EntityNotExistsError: return true case *ShardOwnershipLostError: @@ -25255,57 +24914,62 @@ func init() { } } - HistoryService_RecordChildExecutionCompleted_Helper.WrapResponse = func(err error) (*HistoryService_RecordChildExecutionCompleted_Result, error) { + HistoryService_RecordActivityTaskStarted_Helper.WrapResponse = func(success *RecordActivityTaskStartedResponse, err error) (*HistoryService_RecordActivityTaskStarted_Result, error) { if err == nil { - return &HistoryService_RecordChildExecutionCompleted_Result{}, nil + return &HistoryService_RecordActivityTaskStarted_Result{Success: success}, nil } switch e := err.(type) { case *shared.BadRequestError: if e == nil { - return nil, errors.New("WrapResponse received non-nil error type with nil value for HistoryService_RecordChildExecutionCompleted_Result.BadRequestError") + return nil, errors.New("WrapResponse received non-nil error type with nil value for HistoryService_RecordActivityTaskStarted_Result.BadRequestError") } - return &HistoryService_RecordChildExecutionCompleted_Result{BadRequestError: e}, nil + return &HistoryService_RecordActivityTaskStarted_Result{BadRequestError: e}, nil case *shared.InternalServiceError: if e == nil { - return nil, errors.New("WrapResponse received non-nil error type with nil value for HistoryService_RecordChildExecutionCompleted_Result.InternalServiceError") + return nil, errors.New("WrapResponse received non-nil error type with nil value for HistoryService_RecordActivityTaskStarted_Result.InternalServiceError") } - return &HistoryService_RecordChildExecutionCompleted_Result{InternalServiceError: e}, nil + return &HistoryService_RecordActivityTaskStarted_Result{InternalServiceError: e}, nil + case *EventAlreadyStartedError: + if e == nil { + return nil, errors.New("WrapResponse received non-nil error type with nil value for HistoryService_RecordActivityTaskStarted_Result.EventAlreadyStartedError") + } + return &HistoryService_RecordActivityTaskStarted_Result{EventAlreadyStartedError: e}, nil case *shared.EntityNotExistsError: if e == nil { - return nil, errors.New("WrapResponse received non-nil error type with nil value for HistoryService_RecordChildExecutionCompleted_Result.EntityNotExistError") + return nil, errors.New("WrapResponse received non-nil error type with nil value for HistoryService_RecordActivityTaskStarted_Result.EntityNotExistError") } - return &HistoryService_RecordChildExecutionCompleted_Result{EntityNotExistError: e}, nil + return &HistoryService_RecordActivityTaskStarted_Result{EntityNotExistError: e}, nil case *ShardOwnershipLostError: if e == nil { - return nil, errors.New("WrapResponse received non-nil error type with nil value for HistoryService_RecordChildExecutionCompleted_Result.ShardOwnershipLostError") + return nil, errors.New("WrapResponse received non-nil error type with nil value for HistoryService_RecordActivityTaskStarted_Result.ShardOwnershipLostError") } - return &HistoryService_RecordChildExecutionCompleted_Result{ShardOwnershipLostError: e}, nil + return &HistoryService_RecordActivityTaskStarted_Result{ShardOwnershipLostError: e}, nil case *shared.DomainNotActiveError: if e == nil { - return nil, errors.New("WrapResponse received non-nil error type with nil value for HistoryService_RecordChildExecutionCompleted_Result.DomainNotActiveError") + return nil, errors.New("WrapResponse received non-nil error type with nil value for HistoryService_RecordActivityTaskStarted_Result.DomainNotActiveError") } - return &HistoryService_RecordChildExecutionCompleted_Result{DomainNotActiveError: e}, nil + return &HistoryService_RecordActivityTaskStarted_Result{DomainNotActiveError: e}, nil case *shared.LimitExceededError: if e == nil { - return nil, errors.New("WrapResponse received non-nil error type with nil value for HistoryService_RecordChildExecutionCompleted_Result.LimitExceededError") + return nil, errors.New("WrapResponse received non-nil error type with nil value for HistoryService_RecordActivityTaskStarted_Result.LimitExceededError") } - return &HistoryService_RecordChildExecutionCompleted_Result{LimitExceededError: e}, nil + return &HistoryService_RecordActivityTaskStarted_Result{LimitExceededError: e}, nil case *shared.ServiceBusyError: if e == nil { - return nil, errors.New("WrapResponse received non-nil error type with nil value for HistoryService_RecordChildExecutionCompleted_Result.ServiceBusyError") + return nil, errors.New("WrapResponse received non-nil error type with nil value for HistoryService_RecordActivityTaskStarted_Result.ServiceBusyError") } - return &HistoryService_RecordChildExecutionCompleted_Result{ServiceBusyError: e}, nil + return &HistoryService_RecordActivityTaskStarted_Result{ServiceBusyError: e}, nil case *shared.WorkflowExecutionAlreadyCompletedError: if e == nil { - return nil, errors.New("WrapResponse received non-nil error type with nil value for HistoryService_RecordChildExecutionCompleted_Result.WorkflowExecutionAlreadyCompletedError") + return nil, errors.New("WrapResponse received non-nil error type with nil value for HistoryService_RecordActivityTaskStarted_Result.WorkflowExecutionAlreadyCompletedError") } - return &HistoryService_RecordChildExecutionCompleted_Result{WorkflowExecutionAlreadyCompletedError: e}, nil + return &HistoryService_RecordActivityTaskStarted_Result{WorkflowExecutionAlreadyCompletedError: e}, nil } return nil, err } - HistoryService_RecordChildExecutionCompleted_Helper.UnwrapResponse = func(result *HistoryService_RecordChildExecutionCompleted_Result) (err error) { + HistoryService_RecordActivityTaskStarted_Helper.UnwrapResponse = func(result *HistoryService_RecordActivityTaskStarted_Result) (success *RecordActivityTaskStartedResponse, err error) { if result.BadRequestError != nil { err = result.BadRequestError return @@ -25314,6 +24978,10 @@ func init() { err = result.InternalServiceError return } + if result.EventAlreadyStartedError != nil { + err = result.EventAlreadyStartedError + return + } if result.EntityNotExistError != nil { err = result.EntityNotExistError return @@ -25338,17 +25006,29 @@ func init() { err = result.WorkflowExecutionAlreadyCompletedError return } + + if result.Success != nil { + success = result.Success + return + } + + err = errors.New("expected a non-void result") return } } -// HistoryService_RecordChildExecutionCompleted_Result represents the result of a HistoryService.RecordChildExecutionCompleted function call. +// HistoryService_RecordActivityTaskStarted_Result represents the result of a HistoryService.RecordActivityTaskStarted function call. // -// The result of a RecordChildExecutionCompleted execution is sent and received over the wire as this struct. -type HistoryService_RecordChildExecutionCompleted_Result struct { +// The result of a RecordActivityTaskStarted execution is sent and received over the wire as this struct. +// +// Success is set only if the function did not throw an exception. +type HistoryService_RecordActivityTaskStarted_Result struct { + // Value returned by RecordActivityTaskStarted after a successful execution. + Success *RecordActivityTaskStartedResponse `json:"success,omitempty"` BadRequestError *shared.BadRequestError `json:"badRequestError,omitempty"` InternalServiceError *shared.InternalServiceError `json:"internalServiceError,omitempty"` + EventAlreadyStartedError *EventAlreadyStartedError `json:"eventAlreadyStartedError,omitempty"` EntityNotExistError *shared.EntityNotExistsError `json:"entityNotExistError,omitempty"` ShardOwnershipLostError *ShardOwnershipLostError `json:"shardOwnershipLostError,omitempty"` DomainNotActiveError *shared.DomainNotActiveError `json:"domainNotActiveError,omitempty"` @@ -25357,7 +25037,7 @@ type HistoryService_RecordChildExecutionCompleted_Result struct { WorkflowExecutionAlreadyCompletedError *shared.WorkflowExecutionAlreadyCompletedError `json:"workflowExecutionAlreadyCompletedError,omitempty"` } -// ToWire translates a HistoryService_RecordChildExecutionCompleted_Result struct into a Thrift-level intermediate +// ToWire translates a HistoryService_RecordActivityTaskStarted_Result struct into a Thrift-level intermediate // representation. This intermediate representation may be serialized // into bytes using a ThriftRW protocol implementation. // @@ -25372,14 +25052,22 @@ type HistoryService_RecordChildExecutionCompleted_Result struct { // if err := binaryProtocol.Encode(x, writer); err != nil { // return err // } -func (v *HistoryService_RecordChildExecutionCompleted_Result) ToWire() (wire.Value, error) { +func (v *HistoryService_RecordActivityTaskStarted_Result) ToWire() (wire.Value, error) { var ( - fields [8]wire.Field + fields [10]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.BadRequestError != nil { w, err = v.BadRequestError.ToWire() if err != nil { @@ -25396,12 +25084,20 @@ func (v *HistoryService_RecordChildExecutionCompleted_Result) ToWire() (wire.Val fields[i] = wire.Field{ID: 2, Value: w} i++ } + if v.EventAlreadyStartedError != nil { + w, err = v.EventAlreadyStartedError.ToWire() + if err != nil { + return w, err + } + fields[i] = wire.Field{ID: 3, 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} + fields[i] = wire.Field{ID: 4, Value: w} i++ } if v.ShardOwnershipLostError != nil { @@ -25409,7 +25105,7 @@ func (v *HistoryService_RecordChildExecutionCompleted_Result) ToWire() (wire.Val if err != nil { return w, err } - fields[i] = wire.Field{ID: 4, Value: w} + fields[i] = wire.Field{ID: 5, Value: w} i++ } if v.DomainNotActiveError != nil { @@ -25417,7 +25113,7 @@ func (v *HistoryService_RecordChildExecutionCompleted_Result) ToWire() (wire.Val if err != nil { return w, err } - fields[i] = wire.Field{ID: 5, Value: w} + fields[i] = wire.Field{ID: 6, Value: w} i++ } if v.LimitExceededError != nil { @@ -25425,7 +25121,7 @@ func (v *HistoryService_RecordChildExecutionCompleted_Result) ToWire() (wire.Val if err != nil { return w, err } - fields[i] = wire.Field{ID: 6, Value: w} + fields[i] = wire.Field{ID: 7, Value: w} i++ } if v.ServiceBusyError != nil { @@ -25433,7 +25129,7 @@ func (v *HistoryService_RecordChildExecutionCompleted_Result) ToWire() (wire.Val if err != nil { return w, err } - fields[i] = wire.Field{ID: 7, Value: w} + fields[i] = wire.Field{ID: 8, Value: w} i++ } if v.WorkflowExecutionAlreadyCompletedError != nil { @@ -25441,22 +25137,34 @@ func (v *HistoryService_RecordChildExecutionCompleted_Result) ToWire() (wire.Val if err != nil { return w, err } - fields[i] = wire.Field{ID: 8, Value: w} + fields[i] = wire.Field{ID: 9, Value: w} i++ } - if i > 1 { - return wire.Value{}, fmt.Errorf("HistoryService_RecordChildExecutionCompleted_Result should have at most one field: got %v fields", i) + if i != 1 { + return wire.Value{}, fmt.Errorf("HistoryService_RecordActivityTaskStarted_Result should have exactly one field: got %v fields", i) } return wire.NewValueStruct(wire.Struct{Fields: fields[:i]}), nil } -// FromWire deserializes a HistoryService_RecordChildExecutionCompleted_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 HistoryService_RecordChildExecutionCompleted_Result struct +func _RecordActivityTaskStartedResponse_Read(w wire.Value) (*RecordActivityTaskStartedResponse, error) { + var v RecordActivityTaskStartedResponse + err := v.FromWire(w) + return &v, err +} + +func _EventAlreadyStartedError_Read(w wire.Value) (*EventAlreadyStartedError, error) { + var v EventAlreadyStartedError + err := v.FromWire(w) + return &v, err +} + +// FromWire deserializes a HistoryService_RecordActivityTaskStarted_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 HistoryService_RecordActivityTaskStarted_Result struct // from the provided intermediate representation. // // x, err := binaryProtocol.Decode(reader, wire.TStruct) @@ -25464,16 +25172,24 @@ func (v *HistoryService_RecordChildExecutionCompleted_Result) ToWire() (wire.Val // return nil, err // } // -// var v HistoryService_RecordChildExecutionCompleted_Result +// var v HistoryService_RecordActivityTaskStarted_Result // if err := v.FromWire(x); err != nil { // return nil, err // } // return &v, nil -func (v *HistoryService_RecordChildExecutionCompleted_Result) FromWire(w wire.Value) error { +func (v *HistoryService_RecordActivityTaskStarted_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 = _RecordActivityTaskStartedResponse_Read(field.Value) + if err != nil { + return err + } + + } case 1: if field.Value.Type() == wire.TStruct { v.BadRequestError, err = _BadRequestError_Read(field.Value) @@ -25492,7 +25208,7 @@ func (v *HistoryService_RecordChildExecutionCompleted_Result) FromWire(w wire.Va } case 3: if field.Value.Type() == wire.TStruct { - v.EntityNotExistError, err = _EntityNotExistsError_Read(field.Value) + v.EventAlreadyStartedError, err = _EventAlreadyStartedError_Read(field.Value) if err != nil { return err } @@ -25500,7 +25216,7 @@ func (v *HistoryService_RecordChildExecutionCompleted_Result) FromWire(w wire.Va } case 4: if field.Value.Type() == wire.TStruct { - v.ShardOwnershipLostError, err = _ShardOwnershipLostError_Read(field.Value) + v.EntityNotExistError, err = _EntityNotExistsError_Read(field.Value) if err != nil { return err } @@ -25508,7 +25224,7 @@ func (v *HistoryService_RecordChildExecutionCompleted_Result) FromWire(w wire.Va } case 5: if field.Value.Type() == wire.TStruct { - v.DomainNotActiveError, err = _DomainNotActiveError_Read(field.Value) + v.ShardOwnershipLostError, err = _ShardOwnershipLostError_Read(field.Value) if err != nil { return err } @@ -25516,7 +25232,7 @@ func (v *HistoryService_RecordChildExecutionCompleted_Result) FromWire(w wire.Va } case 6: if field.Value.Type() == wire.TStruct { - v.LimitExceededError, err = _LimitExceededError_Read(field.Value) + v.DomainNotActiveError, err = _DomainNotActiveError_Read(field.Value) if err != nil { return err } @@ -25524,13 +25240,21 @@ func (v *HistoryService_RecordChildExecutionCompleted_Result) FromWire(w wire.Va } case 7: if field.Value.Type() == wire.TStruct { - v.ServiceBusyError, err = _ServiceBusyError_Read(field.Value) + v.LimitExceededError, err = _LimitExceededError_Read(field.Value) if err != nil { return err } } case 8: + if field.Value.Type() == wire.TStruct { + v.ServiceBusyError, err = _ServiceBusyError_Read(field.Value) + if err != nil { + return err + } + + } + case 9: if field.Value.Type() == wire.TStruct { v.WorkflowExecutionAlreadyCompletedError, err = _WorkflowExecutionAlreadyCompletedError_Read(field.Value) if err != nil { @@ -25542,12 +25266,18 @@ func (v *HistoryService_RecordChildExecutionCompleted_Result) FromWire(w wire.Va } count := 0 + if v.Success != nil { + count++ + } if v.BadRequestError != nil { count++ } if v.InternalServiceError != nil { count++ } + if v.EventAlreadyStartedError != nil { + count++ + } if v.EntityNotExistError != nil { count++ } @@ -25566,22 +25296,26 @@ func (v *HistoryService_RecordChildExecutionCompleted_Result) FromWire(w wire.Va if v.WorkflowExecutionAlreadyCompletedError != nil { count++ } - if count > 1 { - return fmt.Errorf("HistoryService_RecordChildExecutionCompleted_Result should have at most one field: got %v fields", count) + if count != 1 { + return fmt.Errorf("HistoryService_RecordActivityTaskStarted_Result should have exactly one field: got %v fields", count) } return nil } -// String returns a readable string representation of a HistoryService_RecordChildExecutionCompleted_Result +// String returns a readable string representation of a HistoryService_RecordActivityTaskStarted_Result // struct. -func (v *HistoryService_RecordChildExecutionCompleted_Result) String() string { +func (v *HistoryService_RecordActivityTaskStarted_Result) String() string { if v == nil { return "" } - var fields [8]string + var fields [10]string i := 0 + if v.Success != nil { + fields[i] = fmt.Sprintf("Success: %v", v.Success) + i++ + } if v.BadRequestError != nil { fields[i] = fmt.Sprintf("BadRequestError: %v", v.BadRequestError) i++ @@ -25590,6 +25324,10 @@ func (v *HistoryService_RecordChildExecutionCompleted_Result) String() string { fields[i] = fmt.Sprintf("InternalServiceError: %v", v.InternalServiceError) i++ } + if v.EventAlreadyStartedError != nil { + fields[i] = fmt.Sprintf("EventAlreadyStartedError: %v", v.EventAlreadyStartedError) + i++ + } if v.EntityNotExistError != nil { fields[i] = fmt.Sprintf("EntityNotExistError: %v", v.EntityNotExistError) i++ @@ -25615,25 +25353,31 @@ func (v *HistoryService_RecordChildExecutionCompleted_Result) String() string { i++ } - return fmt.Sprintf("HistoryService_RecordChildExecutionCompleted_Result{%v}", strings.Join(fields[:i], ", ")) + return fmt.Sprintf("HistoryService_RecordActivityTaskStarted_Result{%v}", strings.Join(fields[:i], ", ")) } -// Equals returns true if all the fields of this HistoryService_RecordChildExecutionCompleted_Result match the -// provided HistoryService_RecordChildExecutionCompleted_Result. +// Equals returns true if all the fields of this HistoryService_RecordActivityTaskStarted_Result match the +// provided HistoryService_RecordActivityTaskStarted_Result. // // This function performs a deep comparison. -func (v *HistoryService_RecordChildExecutionCompleted_Result) Equals(rhs *HistoryService_RecordChildExecutionCompleted_Result) bool { +func (v *HistoryService_RecordActivityTaskStarted_Result) Equals(rhs *HistoryService_RecordActivityTaskStarted_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.BadRequestError == nil && rhs.BadRequestError == nil) || (v.BadRequestError != nil && rhs.BadRequestError != nil && v.BadRequestError.Equals(rhs.BadRequestError))) { return false } if !((v.InternalServiceError == nil && rhs.InternalServiceError == nil) || (v.InternalServiceError != nil && rhs.InternalServiceError != nil && v.InternalServiceError.Equals(rhs.InternalServiceError))) { return false } + if !((v.EventAlreadyStartedError == nil && rhs.EventAlreadyStartedError == nil) || (v.EventAlreadyStartedError != nil && rhs.EventAlreadyStartedError != nil && v.EventAlreadyStartedError.Equals(rhs.EventAlreadyStartedError))) { + return false + } if !((v.EntityNotExistError == nil && rhs.EntityNotExistError == nil) || (v.EntityNotExistError != nil && rhs.EntityNotExistError != nil && v.EntityNotExistError.Equals(rhs.EntityNotExistError))) { return false } @@ -25657,17 +25401,23 @@ func (v *HistoryService_RecordChildExecutionCompleted_Result) Equals(rhs *Histor } // MarshalLogObject implements zapcore.ObjectMarshaler, enabling -// fast logging of HistoryService_RecordChildExecutionCompleted_Result. -func (v *HistoryService_RecordChildExecutionCompleted_Result) MarshalLogObject(enc zapcore.ObjectEncoder) (err error) { +// fast logging of HistoryService_RecordActivityTaskStarted_Result. +func (v *HistoryService_RecordActivityTaskStarted_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.BadRequestError != nil { err = multierr.Append(err, enc.AddObject("badRequestError", v.BadRequestError)) } if v.InternalServiceError != nil { err = multierr.Append(err, enc.AddObject("internalServiceError", v.InternalServiceError)) } + if v.EventAlreadyStartedError != nil { + err = multierr.Append(err, enc.AddObject("eventAlreadyStartedError", v.EventAlreadyStartedError)) + } if v.EntityNotExistError != nil { err = multierr.Append(err, enc.AddObject("entityNotExistError", v.EntityNotExistError)) } @@ -25689,9 +25439,24 @@ func (v *HistoryService_RecordChildExecutionCompleted_Result) MarshalLogObject(e return err } +// GetSuccess returns the value of Success if it is set or its +// zero value if it is unset. +func (v *HistoryService_RecordActivityTaskStarted_Result) GetSuccess() (o *RecordActivityTaskStartedResponse) { + if v != nil && v.Success != nil { + return v.Success + } + + return +} + +// IsSetSuccess returns true if Success is not nil. +func (v *HistoryService_RecordActivityTaskStarted_Result) IsSetSuccess() bool { + return v != nil && v.Success != nil +} + // GetBadRequestError returns the value of BadRequestError if it is set or its // zero value if it is unset. -func (v *HistoryService_RecordChildExecutionCompleted_Result) GetBadRequestError() (o *shared.BadRequestError) { +func (v *HistoryService_RecordActivityTaskStarted_Result) GetBadRequestError() (o *shared.BadRequestError) { if v != nil && v.BadRequestError != nil { return v.BadRequestError } @@ -25700,13 +25465,13 @@ func (v *HistoryService_RecordChildExecutionCompleted_Result) GetBadRequestError } // IsSetBadRequestError returns true if BadRequestError is not nil. -func (v *HistoryService_RecordChildExecutionCompleted_Result) IsSetBadRequestError() bool { +func (v *HistoryService_RecordActivityTaskStarted_Result) IsSetBadRequestError() bool { return v != nil && v.BadRequestError != nil } // GetInternalServiceError returns the value of InternalServiceError if it is set or its // zero value if it is unset. -func (v *HistoryService_RecordChildExecutionCompleted_Result) GetInternalServiceError() (o *shared.InternalServiceError) { +func (v *HistoryService_RecordActivityTaskStarted_Result) GetInternalServiceError() (o *shared.InternalServiceError) { if v != nil && v.InternalServiceError != nil { return v.InternalServiceError } @@ -25715,13 +25480,28 @@ func (v *HistoryService_RecordChildExecutionCompleted_Result) GetInternalService } // IsSetInternalServiceError returns true if InternalServiceError is not nil. -func (v *HistoryService_RecordChildExecutionCompleted_Result) IsSetInternalServiceError() bool { +func (v *HistoryService_RecordActivityTaskStarted_Result) IsSetInternalServiceError() bool { return v != nil && v.InternalServiceError != nil } +// GetEventAlreadyStartedError returns the value of EventAlreadyStartedError if it is set or its +// zero value if it is unset. +func (v *HistoryService_RecordActivityTaskStarted_Result) GetEventAlreadyStartedError() (o *EventAlreadyStartedError) { + if v != nil && v.EventAlreadyStartedError != nil { + return v.EventAlreadyStartedError + } + + return +} + +// IsSetEventAlreadyStartedError returns true if EventAlreadyStartedError is not nil. +func (v *HistoryService_RecordActivityTaskStarted_Result) IsSetEventAlreadyStartedError() bool { + return v != nil && v.EventAlreadyStartedError != nil +} + // GetEntityNotExistError returns the value of EntityNotExistError if it is set or its // zero value if it is unset. -func (v *HistoryService_RecordChildExecutionCompleted_Result) GetEntityNotExistError() (o *shared.EntityNotExistsError) { +func (v *HistoryService_RecordActivityTaskStarted_Result) GetEntityNotExistError() (o *shared.EntityNotExistsError) { if v != nil && v.EntityNotExistError != nil { return v.EntityNotExistError } @@ -25730,13 +25510,13 @@ func (v *HistoryService_RecordChildExecutionCompleted_Result) GetEntityNotExistE } // IsSetEntityNotExistError returns true if EntityNotExistError is not nil. -func (v *HistoryService_RecordChildExecutionCompleted_Result) IsSetEntityNotExistError() bool { +func (v *HistoryService_RecordActivityTaskStarted_Result) IsSetEntityNotExistError() bool { return v != nil && v.EntityNotExistError != nil } // GetShardOwnershipLostError returns the value of ShardOwnershipLostError if it is set or its // zero value if it is unset. -func (v *HistoryService_RecordChildExecutionCompleted_Result) GetShardOwnershipLostError() (o *ShardOwnershipLostError) { +func (v *HistoryService_RecordActivityTaskStarted_Result) GetShardOwnershipLostError() (o *ShardOwnershipLostError) { if v != nil && v.ShardOwnershipLostError != nil { return v.ShardOwnershipLostError } @@ -25745,13 +25525,13 @@ func (v *HistoryService_RecordChildExecutionCompleted_Result) GetShardOwnershipL } // IsSetShardOwnershipLostError returns true if ShardOwnershipLostError is not nil. -func (v *HistoryService_RecordChildExecutionCompleted_Result) IsSetShardOwnershipLostError() bool { +func (v *HistoryService_RecordActivityTaskStarted_Result) IsSetShardOwnershipLostError() bool { return v != nil && v.ShardOwnershipLostError != nil } // GetDomainNotActiveError returns the value of DomainNotActiveError if it is set or its // zero value if it is unset. -func (v *HistoryService_RecordChildExecutionCompleted_Result) GetDomainNotActiveError() (o *shared.DomainNotActiveError) { +func (v *HistoryService_RecordActivityTaskStarted_Result) GetDomainNotActiveError() (o *shared.DomainNotActiveError) { if v != nil && v.DomainNotActiveError != nil { return v.DomainNotActiveError } @@ -25760,13 +25540,13 @@ func (v *HistoryService_RecordChildExecutionCompleted_Result) GetDomainNotActive } // IsSetDomainNotActiveError returns true if DomainNotActiveError is not nil. -func (v *HistoryService_RecordChildExecutionCompleted_Result) IsSetDomainNotActiveError() bool { +func (v *HistoryService_RecordActivityTaskStarted_Result) IsSetDomainNotActiveError() bool { return v != nil && v.DomainNotActiveError != nil } // GetLimitExceededError returns the value of LimitExceededError if it is set or its // zero value if it is unset. -func (v *HistoryService_RecordChildExecutionCompleted_Result) GetLimitExceededError() (o *shared.LimitExceededError) { +func (v *HistoryService_RecordActivityTaskStarted_Result) GetLimitExceededError() (o *shared.LimitExceededError) { if v != nil && v.LimitExceededError != nil { return v.LimitExceededError } @@ -25775,13 +25555,13 @@ func (v *HistoryService_RecordChildExecutionCompleted_Result) GetLimitExceededEr } // IsSetLimitExceededError returns true if LimitExceededError is not nil. -func (v *HistoryService_RecordChildExecutionCompleted_Result) IsSetLimitExceededError() bool { +func (v *HistoryService_RecordActivityTaskStarted_Result) IsSetLimitExceededError() bool { return v != nil && v.LimitExceededError != nil } // GetServiceBusyError returns the value of ServiceBusyError if it is set or its // zero value if it is unset. -func (v *HistoryService_RecordChildExecutionCompleted_Result) GetServiceBusyError() (o *shared.ServiceBusyError) { +func (v *HistoryService_RecordActivityTaskStarted_Result) GetServiceBusyError() (o *shared.ServiceBusyError) { if v != nil && v.ServiceBusyError != nil { return v.ServiceBusyError } @@ -25790,13 +25570,13 @@ func (v *HistoryService_RecordChildExecutionCompleted_Result) GetServiceBusyErro } // IsSetServiceBusyError returns true if ServiceBusyError is not nil. -func (v *HistoryService_RecordChildExecutionCompleted_Result) IsSetServiceBusyError() bool { +func (v *HistoryService_RecordActivityTaskStarted_Result) IsSetServiceBusyError() bool { return v != nil && v.ServiceBusyError != nil } // GetWorkflowExecutionAlreadyCompletedError returns the value of WorkflowExecutionAlreadyCompletedError if it is set or its // zero value if it is unset. -func (v *HistoryService_RecordChildExecutionCompleted_Result) GetWorkflowExecutionAlreadyCompletedError() (o *shared.WorkflowExecutionAlreadyCompletedError) { +func (v *HistoryService_RecordActivityTaskStarted_Result) GetWorkflowExecutionAlreadyCompletedError() (o *shared.WorkflowExecutionAlreadyCompletedError) { if v != nil && v.WorkflowExecutionAlreadyCompletedError != nil { return v.WorkflowExecutionAlreadyCompletedError } @@ -25805,33 +25585,33 @@ func (v *HistoryService_RecordChildExecutionCompleted_Result) GetWorkflowExecuti } // IsSetWorkflowExecutionAlreadyCompletedError returns true if WorkflowExecutionAlreadyCompletedError is not nil. -func (v *HistoryService_RecordChildExecutionCompleted_Result) IsSetWorkflowExecutionAlreadyCompletedError() bool { +func (v *HistoryService_RecordActivityTaskStarted_Result) IsSetWorkflowExecutionAlreadyCompletedError() bool { return v != nil && v.WorkflowExecutionAlreadyCompletedError != 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 "RecordChildExecutionCompleted" for this struct. -func (v *HistoryService_RecordChildExecutionCompleted_Result) MethodName() string { - return "RecordChildExecutionCompleted" +// This will always be "RecordActivityTaskStarted" for this struct. +func (v *HistoryService_RecordActivityTaskStarted_Result) MethodName() string { + return "RecordActivityTaskStarted" } // EnvelopeType returns the kind of value inside this struct. // // This will always be Reply for this struct. -func (v *HistoryService_RecordChildExecutionCompleted_Result) EnvelopeType() wire.EnvelopeType { +func (v *HistoryService_RecordActivityTaskStarted_Result) EnvelopeType() wire.EnvelopeType { return wire.Reply } -// HistoryService_RecordDecisionTaskStarted_Args represents the arguments for the HistoryService.RecordDecisionTaskStarted function. +// HistoryService_RecordChildExecutionCompleted_Args represents the arguments for the HistoryService.RecordChildExecutionCompleted function. // -// The arguments for RecordDecisionTaskStarted are sent and received over the wire as this struct. -type HistoryService_RecordDecisionTaskStarted_Args struct { - AddRequest *RecordDecisionTaskStartedRequest `json:"addRequest,omitempty"` +// The arguments for RecordChildExecutionCompleted are sent and received over the wire as this struct. +type HistoryService_RecordChildExecutionCompleted_Args struct { + CompletionRequest *RecordChildExecutionCompletedRequest `json:"completionRequest,omitempty"` } -// ToWire translates a HistoryService_RecordDecisionTaskStarted_Args struct into a Thrift-level intermediate +// ToWire translates a HistoryService_RecordChildExecutionCompleted_Args struct into a Thrift-level intermediate // representation. This intermediate representation may be serialized // into bytes using a ThriftRW protocol implementation. // @@ -25846,7 +25626,7 @@ type HistoryService_RecordDecisionTaskStarted_Args struct { // if err := binaryProtocol.Encode(x, writer); err != nil { // return err // } -func (v *HistoryService_RecordDecisionTaskStarted_Args) ToWire() (wire.Value, error) { +func (v *HistoryService_RecordChildExecutionCompleted_Args) ToWire() (wire.Value, error) { var ( fields [1]wire.Field i int = 0 @@ -25854,8 +25634,8 @@ func (v *HistoryService_RecordDecisionTaskStarted_Args) ToWire() (wire.Value, er err error ) - if v.AddRequest != nil { - w, err = v.AddRequest.ToWire() + if v.CompletionRequest != nil { + w, err = v.CompletionRequest.ToWire() if err != nil { return w, err } @@ -25866,17 +25646,17 @@ func (v *HistoryService_RecordDecisionTaskStarted_Args) ToWire() (wire.Value, er return wire.NewValueStruct(wire.Struct{Fields: fields[:i]}), nil } -func _RecordDecisionTaskStartedRequest_Read(w wire.Value) (*RecordDecisionTaskStartedRequest, error) { - var v RecordDecisionTaskStartedRequest +func _RecordChildExecutionCompletedRequest_Read(w wire.Value) (*RecordChildExecutionCompletedRequest, error) { + var v RecordChildExecutionCompletedRequest err := v.FromWire(w) return &v, err } -// FromWire deserializes a HistoryService_RecordDecisionTaskStarted_Args struct from its Thrift-level +// FromWire deserializes a HistoryService_RecordChildExecutionCompleted_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 HistoryService_RecordDecisionTaskStarted_Args struct +// An error is returned if we were unable to build a HistoryService_RecordChildExecutionCompleted_Args struct // from the provided intermediate representation. // // x, err := binaryProtocol.Decode(reader, wire.TStruct) @@ -25884,19 +25664,19 @@ func _RecordDecisionTaskStartedRequest_Read(w wire.Value) (*RecordDecisionTaskSt // return nil, err // } // -// var v HistoryService_RecordDecisionTaskStarted_Args +// var v HistoryService_RecordChildExecutionCompleted_Args // if err := v.FromWire(x); err != nil { // return nil, err // } // return &v, nil -func (v *HistoryService_RecordDecisionTaskStarted_Args) FromWire(w wire.Value) error { +func (v *HistoryService_RecordChildExecutionCompleted_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.AddRequest, err = _RecordDecisionTaskStartedRequest_Read(field.Value) + v.CompletionRequest, err = _RecordChildExecutionCompletedRequest_Read(field.Value) if err != nil { return err } @@ -25908,34 +25688,34 @@ func (v *HistoryService_RecordDecisionTaskStarted_Args) FromWire(w wire.Value) e return nil } -// String returns a readable string representation of a HistoryService_RecordDecisionTaskStarted_Args +// String returns a readable string representation of a HistoryService_RecordChildExecutionCompleted_Args // struct. -func (v *HistoryService_RecordDecisionTaskStarted_Args) String() string { +func (v *HistoryService_RecordChildExecutionCompleted_Args) String() string { if v == nil { return "" } var fields [1]string i := 0 - if v.AddRequest != nil { - fields[i] = fmt.Sprintf("AddRequest: %v", v.AddRequest) + if v.CompletionRequest != nil { + fields[i] = fmt.Sprintf("CompletionRequest: %v", v.CompletionRequest) i++ } - return fmt.Sprintf("HistoryService_RecordDecisionTaskStarted_Args{%v}", strings.Join(fields[:i], ", ")) + return fmt.Sprintf("HistoryService_RecordChildExecutionCompleted_Args{%v}", strings.Join(fields[:i], ", ")) } -// Equals returns true if all the fields of this HistoryService_RecordDecisionTaskStarted_Args match the -// provided HistoryService_RecordDecisionTaskStarted_Args. +// Equals returns true if all the fields of this HistoryService_RecordChildExecutionCompleted_Args match the +// provided HistoryService_RecordChildExecutionCompleted_Args. // // This function performs a deep comparison. -func (v *HistoryService_RecordDecisionTaskStarted_Args) Equals(rhs *HistoryService_RecordDecisionTaskStarted_Args) bool { +func (v *HistoryService_RecordChildExecutionCompleted_Args) Equals(rhs *HistoryService_RecordChildExecutionCompleted_Args) bool { if v == nil { return rhs == nil } else if rhs == nil { return false } - if !((v.AddRequest == nil && rhs.AddRequest == nil) || (v.AddRequest != nil && rhs.AddRequest != nil && v.AddRequest.Equals(rhs.AddRequest))) { + if !((v.CompletionRequest == nil && rhs.CompletionRequest == nil) || (v.CompletionRequest != nil && rhs.CompletionRequest != nil && v.CompletionRequest.Equals(rhs.CompletionRequest))) { return false } @@ -25943,109 +25723,108 @@ func (v *HistoryService_RecordDecisionTaskStarted_Args) Equals(rhs *HistoryServi } // MarshalLogObject implements zapcore.ObjectMarshaler, enabling -// fast logging of HistoryService_RecordDecisionTaskStarted_Args. -func (v *HistoryService_RecordDecisionTaskStarted_Args) MarshalLogObject(enc zapcore.ObjectEncoder) (err error) { +// fast logging of HistoryService_RecordChildExecutionCompleted_Args. +func (v *HistoryService_RecordChildExecutionCompleted_Args) MarshalLogObject(enc zapcore.ObjectEncoder) (err error) { if v == nil { return nil } - if v.AddRequest != nil { - err = multierr.Append(err, enc.AddObject("addRequest", v.AddRequest)) + if v.CompletionRequest != nil { + err = multierr.Append(err, enc.AddObject("completionRequest", v.CompletionRequest)) } return err } -// GetAddRequest returns the value of AddRequest if it is set or its +// GetCompletionRequest returns the value of CompletionRequest if it is set or its // zero value if it is unset. -func (v *HistoryService_RecordDecisionTaskStarted_Args) GetAddRequest() (o *RecordDecisionTaskStartedRequest) { - if v != nil && v.AddRequest != nil { - return v.AddRequest +func (v *HistoryService_RecordChildExecutionCompleted_Args) GetCompletionRequest() (o *RecordChildExecutionCompletedRequest) { + if v != nil && v.CompletionRequest != nil { + return v.CompletionRequest } return } -// IsSetAddRequest returns true if AddRequest is not nil. -func (v *HistoryService_RecordDecisionTaskStarted_Args) IsSetAddRequest() bool { - return v != nil && v.AddRequest != nil +// IsSetCompletionRequest returns true if CompletionRequest is not nil. +func (v *HistoryService_RecordChildExecutionCompleted_Args) IsSetCompletionRequest() bool { + return v != nil && v.CompletionRequest != 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 "RecordDecisionTaskStarted" for this struct. -func (v *HistoryService_RecordDecisionTaskStarted_Args) MethodName() string { - return "RecordDecisionTaskStarted" +// This will always be "RecordChildExecutionCompleted" for this struct. +func (v *HistoryService_RecordChildExecutionCompleted_Args) MethodName() string { + return "RecordChildExecutionCompleted" } // EnvelopeType returns the kind of value inside this struct. // // This will always be Call for this struct. -func (v *HistoryService_RecordDecisionTaskStarted_Args) EnvelopeType() wire.EnvelopeType { +func (v *HistoryService_RecordChildExecutionCompleted_Args) EnvelopeType() wire.EnvelopeType { return wire.Call } -// HistoryService_RecordDecisionTaskStarted_Helper provides functions that aid in handling the -// parameters and return values of the HistoryService.RecordDecisionTaskStarted +// HistoryService_RecordChildExecutionCompleted_Helper provides functions that aid in handling the +// parameters and return values of the HistoryService.RecordChildExecutionCompleted // function. -var HistoryService_RecordDecisionTaskStarted_Helper = struct { - // Args accepts the parameters of RecordDecisionTaskStarted in-order and returns +var HistoryService_RecordChildExecutionCompleted_Helper = struct { + // Args accepts the parameters of RecordChildExecutionCompleted in-order and returns // the arguments struct for the function. Args func( - addRequest *RecordDecisionTaskStartedRequest, - ) *HistoryService_RecordDecisionTaskStarted_Args + completionRequest *RecordChildExecutionCompletedRequest, + ) *HistoryService_RecordChildExecutionCompleted_Args // IsException returns true if the given error can be thrown - // by RecordDecisionTaskStarted. + // by RecordChildExecutionCompleted. // - // An error can be thrown by RecordDecisionTaskStarted only if the + // An error can be thrown by RecordChildExecutionCompleted 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 RecordDecisionTaskStarted - // given its return value and error. + // WrapResponse returns the result struct for RecordChildExecutionCompleted + // given the error returned by it. The provided error may + // be nil if RecordChildExecutionCompleted did not fail. // - // This allows mapping values and errors returned by - // RecordDecisionTaskStarted into a serializable result struct. - // WrapResponse returns a non-nil error if the provided - // error cannot be thrown by RecordDecisionTaskStarted + // This allows mapping errors returned by RecordChildExecutionCompleted into a + // serializable result struct. WrapResponse returns a + // non-nil error if the provided error cannot be thrown by + // RecordChildExecutionCompleted // - // value, err := RecordDecisionTaskStarted(args) - // result, err := HistoryService_RecordDecisionTaskStarted_Helper.WrapResponse(value, err) + // err := RecordChildExecutionCompleted(args) + // result, err := HistoryService_RecordChildExecutionCompleted_Helper.WrapResponse(err) // if err != nil { - // return fmt.Errorf("unexpected error from RecordDecisionTaskStarted: %v", err) + // return fmt.Errorf("unexpected error from RecordChildExecutionCompleted: %v", err) // } // serialize(result) - WrapResponse func(*RecordDecisionTaskStartedResponse, error) (*HistoryService_RecordDecisionTaskStarted_Result, error) + WrapResponse func(error) (*HistoryService_RecordChildExecutionCompleted_Result, error) - // UnwrapResponse takes the result struct for RecordDecisionTaskStarted - // and returns the value or error returned by it. + // UnwrapResponse takes the result struct for RecordChildExecutionCompleted + // and returns the erorr returned by it (if any). // - // The error is non-nil only if RecordDecisionTaskStarted threw an + // The error is non-nil only if RecordChildExecutionCompleted threw an // exception. // // result := deserialize(bytes) - // value, err := HistoryService_RecordDecisionTaskStarted_Helper.UnwrapResponse(result) - UnwrapResponse func(*HistoryService_RecordDecisionTaskStarted_Result) (*RecordDecisionTaskStartedResponse, error) + // err := HistoryService_RecordChildExecutionCompleted_Helper.UnwrapResponse(result) + UnwrapResponse func(*HistoryService_RecordChildExecutionCompleted_Result) error }{} func init() { - HistoryService_RecordDecisionTaskStarted_Helper.Args = func( - addRequest *RecordDecisionTaskStartedRequest, - ) *HistoryService_RecordDecisionTaskStarted_Args { - return &HistoryService_RecordDecisionTaskStarted_Args{ - AddRequest: addRequest, + HistoryService_RecordChildExecutionCompleted_Helper.Args = func( + completionRequest *RecordChildExecutionCompletedRequest, + ) *HistoryService_RecordChildExecutionCompleted_Args { + return &HistoryService_RecordChildExecutionCompleted_Args{ + CompletionRequest: completionRequest, } } - HistoryService_RecordDecisionTaskStarted_Helper.IsException = func(err error) bool { + HistoryService_RecordChildExecutionCompleted_Helper.IsException = func(err error) bool { switch err.(type) { case *shared.BadRequestError: return true case *shared.InternalServiceError: return true - case *EventAlreadyStartedError: - return true case *shared.EntityNotExistsError: return true case *ShardOwnershipLostError: @@ -26063,62 +25842,57 @@ func init() { } } - HistoryService_RecordDecisionTaskStarted_Helper.WrapResponse = func(success *RecordDecisionTaskStartedResponse, err error) (*HistoryService_RecordDecisionTaskStarted_Result, error) { + HistoryService_RecordChildExecutionCompleted_Helper.WrapResponse = func(err error) (*HistoryService_RecordChildExecutionCompleted_Result, error) { if err == nil { - return &HistoryService_RecordDecisionTaskStarted_Result{Success: success}, nil + return &HistoryService_RecordChildExecutionCompleted_Result{}, nil } switch e := err.(type) { case *shared.BadRequestError: if e == nil { - return nil, errors.New("WrapResponse received non-nil error type with nil value for HistoryService_RecordDecisionTaskStarted_Result.BadRequestError") + return nil, errors.New("WrapResponse received non-nil error type with nil value for HistoryService_RecordChildExecutionCompleted_Result.BadRequestError") } - return &HistoryService_RecordDecisionTaskStarted_Result{BadRequestError: e}, nil + return &HistoryService_RecordChildExecutionCompleted_Result{BadRequestError: e}, nil case *shared.InternalServiceError: if e == nil { - return nil, errors.New("WrapResponse received non-nil error type with nil value for HistoryService_RecordDecisionTaskStarted_Result.InternalServiceError") - } - return &HistoryService_RecordDecisionTaskStarted_Result{InternalServiceError: e}, nil - case *EventAlreadyStartedError: - if e == nil { - return nil, errors.New("WrapResponse received non-nil error type with nil value for HistoryService_RecordDecisionTaskStarted_Result.EventAlreadyStartedError") + return nil, errors.New("WrapResponse received non-nil error type with nil value for HistoryService_RecordChildExecutionCompleted_Result.InternalServiceError") } - return &HistoryService_RecordDecisionTaskStarted_Result{EventAlreadyStartedError: e}, nil + return &HistoryService_RecordChildExecutionCompleted_Result{InternalServiceError: e}, nil case *shared.EntityNotExistsError: if e == nil { - return nil, errors.New("WrapResponse received non-nil error type with nil value for HistoryService_RecordDecisionTaskStarted_Result.EntityNotExistError") + return nil, errors.New("WrapResponse received non-nil error type with nil value for HistoryService_RecordChildExecutionCompleted_Result.EntityNotExistError") } - return &HistoryService_RecordDecisionTaskStarted_Result{EntityNotExistError: e}, nil + return &HistoryService_RecordChildExecutionCompleted_Result{EntityNotExistError: e}, nil case *ShardOwnershipLostError: if e == nil { - return nil, errors.New("WrapResponse received non-nil error type with nil value for HistoryService_RecordDecisionTaskStarted_Result.ShardOwnershipLostError") + return nil, errors.New("WrapResponse received non-nil error type with nil value for HistoryService_RecordChildExecutionCompleted_Result.ShardOwnershipLostError") } - return &HistoryService_RecordDecisionTaskStarted_Result{ShardOwnershipLostError: e}, nil + return &HistoryService_RecordChildExecutionCompleted_Result{ShardOwnershipLostError: e}, nil case *shared.DomainNotActiveError: if e == nil { - return nil, errors.New("WrapResponse received non-nil error type with nil value for HistoryService_RecordDecisionTaskStarted_Result.DomainNotActiveError") + return nil, errors.New("WrapResponse received non-nil error type with nil value for HistoryService_RecordChildExecutionCompleted_Result.DomainNotActiveError") } - return &HistoryService_RecordDecisionTaskStarted_Result{DomainNotActiveError: e}, nil + return &HistoryService_RecordChildExecutionCompleted_Result{DomainNotActiveError: e}, nil case *shared.LimitExceededError: if e == nil { - return nil, errors.New("WrapResponse received non-nil error type with nil value for HistoryService_RecordDecisionTaskStarted_Result.LimitExceededError") + return nil, errors.New("WrapResponse received non-nil error type with nil value for HistoryService_RecordChildExecutionCompleted_Result.LimitExceededError") } - return &HistoryService_RecordDecisionTaskStarted_Result{LimitExceededError: e}, nil + return &HistoryService_RecordChildExecutionCompleted_Result{LimitExceededError: e}, nil case *shared.ServiceBusyError: if e == nil { - return nil, errors.New("WrapResponse received non-nil error type with nil value for HistoryService_RecordDecisionTaskStarted_Result.ServiceBusyError") + return nil, errors.New("WrapResponse received non-nil error type with nil value for HistoryService_RecordChildExecutionCompleted_Result.ServiceBusyError") } - return &HistoryService_RecordDecisionTaskStarted_Result{ServiceBusyError: e}, nil + return &HistoryService_RecordChildExecutionCompleted_Result{ServiceBusyError: e}, nil case *shared.WorkflowExecutionAlreadyCompletedError: if e == nil { - return nil, errors.New("WrapResponse received non-nil error type with nil value for HistoryService_RecordDecisionTaskStarted_Result.WorkflowExecutionAlreadyCompletedError") + return nil, errors.New("WrapResponse received non-nil error type with nil value for HistoryService_RecordChildExecutionCompleted_Result.WorkflowExecutionAlreadyCompletedError") } - return &HistoryService_RecordDecisionTaskStarted_Result{WorkflowExecutionAlreadyCompletedError: e}, nil + return &HistoryService_RecordChildExecutionCompleted_Result{WorkflowExecutionAlreadyCompletedError: e}, nil } return nil, err } - HistoryService_RecordDecisionTaskStarted_Helper.UnwrapResponse = func(result *HistoryService_RecordDecisionTaskStarted_Result) (success *RecordDecisionTaskStartedResponse, err error) { + HistoryService_RecordChildExecutionCompleted_Helper.UnwrapResponse = func(result *HistoryService_RecordChildExecutionCompleted_Result) (err error) { if result.BadRequestError != nil { err = result.BadRequestError return @@ -26127,10 +25901,6 @@ func init() { err = result.InternalServiceError return } - if result.EventAlreadyStartedError != nil { - err = result.EventAlreadyStartedError - return - } if result.EntityNotExistError != nil { err = result.EntityNotExistError return @@ -26155,29 +25925,17 @@ func init() { err = result.WorkflowExecutionAlreadyCompletedError return } - - if result.Success != nil { - success = result.Success - return - } - - err = errors.New("expected a non-void result") return } } -// HistoryService_RecordDecisionTaskStarted_Result represents the result of a HistoryService.RecordDecisionTaskStarted function call. -// -// The result of a RecordDecisionTaskStarted execution is sent and received over the wire as this struct. +// HistoryService_RecordChildExecutionCompleted_Result represents the result of a HistoryService.RecordChildExecutionCompleted function call. // -// Success is set only if the function did not throw an exception. -type HistoryService_RecordDecisionTaskStarted_Result struct { - // Value returned by RecordDecisionTaskStarted after a successful execution. - Success *RecordDecisionTaskStartedResponse `json:"success,omitempty"` +// The result of a RecordChildExecutionCompleted execution is sent and received over the wire as this struct. +type HistoryService_RecordChildExecutionCompleted_Result struct { BadRequestError *shared.BadRequestError `json:"badRequestError,omitempty"` InternalServiceError *shared.InternalServiceError `json:"internalServiceError,omitempty"` - EventAlreadyStartedError *EventAlreadyStartedError `json:"eventAlreadyStartedError,omitempty"` EntityNotExistError *shared.EntityNotExistsError `json:"entityNotExistError,omitempty"` ShardOwnershipLostError *ShardOwnershipLostError `json:"shardOwnershipLostError,omitempty"` DomainNotActiveError *shared.DomainNotActiveError `json:"domainNotActiveError,omitempty"` @@ -26186,7 +25944,7 @@ type HistoryService_RecordDecisionTaskStarted_Result struct { WorkflowExecutionAlreadyCompletedError *shared.WorkflowExecutionAlreadyCompletedError `json:"workflowExecutionAlreadyCompletedError,omitempty"` } -// ToWire translates a HistoryService_RecordDecisionTaskStarted_Result struct into a Thrift-level intermediate +// ToWire translates a HistoryService_RecordChildExecutionCompleted_Result struct into a Thrift-level intermediate // representation. This intermediate representation may be serialized // into bytes using a ThriftRW protocol implementation. // @@ -26201,22 +25959,14 @@ type HistoryService_RecordDecisionTaskStarted_Result struct { // if err := binaryProtocol.Encode(x, writer); err != nil { // return err // } -func (v *HistoryService_RecordDecisionTaskStarted_Result) ToWire() (wire.Value, error) { +func (v *HistoryService_RecordChildExecutionCompleted_Result) ToWire() (wire.Value, error) { var ( - fields [10]wire.Field + fields [8]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.BadRequestError != nil { w, err = v.BadRequestError.ToWire() if err != nil { @@ -26233,20 +25983,12 @@ func (v *HistoryService_RecordDecisionTaskStarted_Result) ToWire() (wire.Value, fields[i] = wire.Field{ID: 2, Value: w} i++ } - if v.EventAlreadyStartedError != nil { - w, err = v.EventAlreadyStartedError.ToWire() - if err != nil { - return w, err - } - fields[i] = wire.Field{ID: 3, Value: w} - i++ - } if v.EntityNotExistError != nil { w, err = v.EntityNotExistError.ToWire() if err != nil { return w, err } - fields[i] = wire.Field{ID: 4, Value: w} + fields[i] = wire.Field{ID: 3, Value: w} i++ } if v.ShardOwnershipLostError != nil { @@ -26254,7 +25996,7 @@ func (v *HistoryService_RecordDecisionTaskStarted_Result) ToWire() (wire.Value, if err != nil { return w, err } - fields[i] = wire.Field{ID: 5, Value: w} + fields[i] = wire.Field{ID: 4, Value: w} i++ } if v.DomainNotActiveError != nil { @@ -26262,7 +26004,7 @@ func (v *HistoryService_RecordDecisionTaskStarted_Result) ToWire() (wire.Value, if err != nil { return w, err } - fields[i] = wire.Field{ID: 6, Value: w} + fields[i] = wire.Field{ID: 5, Value: w} i++ } if v.LimitExceededError != nil { @@ -26270,7 +26012,7 @@ func (v *HistoryService_RecordDecisionTaskStarted_Result) ToWire() (wire.Value, if err != nil { return w, err } - fields[i] = wire.Field{ID: 7, Value: w} + fields[i] = wire.Field{ID: 6, Value: w} i++ } if v.ServiceBusyError != nil { @@ -26278,7 +26020,7 @@ func (v *HistoryService_RecordDecisionTaskStarted_Result) ToWire() (wire.Value, if err != nil { return w, err } - fields[i] = wire.Field{ID: 8, Value: w} + fields[i] = wire.Field{ID: 7, Value: w} i++ } if v.WorkflowExecutionAlreadyCompletedError != nil { @@ -26286,22 +26028,22 @@ func (v *HistoryService_RecordDecisionTaskStarted_Result) ToWire() (wire.Value, if err != nil { return w, err } - fields[i] = wire.Field{ID: 9, Value: w} + fields[i] = wire.Field{ID: 8, Value: w} i++ } - if i != 1 { - return wire.Value{}, fmt.Errorf("HistoryService_RecordDecisionTaskStarted_Result should have exactly one field: got %v fields", i) + if i > 1 { + return wire.Value{}, fmt.Errorf("HistoryService_RecordChildExecutionCompleted_Result should have at most one field: got %v fields", i) } return wire.NewValueStruct(wire.Struct{Fields: fields[:i]}), nil } -// FromWire deserializes a HistoryService_RecordDecisionTaskStarted_Result struct from its Thrift-level +// FromWire deserializes a HistoryService_RecordChildExecutionCompleted_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 HistoryService_RecordDecisionTaskStarted_Result struct +// An error is returned if we were unable to build a HistoryService_RecordChildExecutionCompleted_Result struct // from the provided intermediate representation. // // x, err := binaryProtocol.Decode(reader, wire.TStruct) @@ -26309,24 +26051,16 @@ func (v *HistoryService_RecordDecisionTaskStarted_Result) ToWire() (wire.Value, // return nil, err // } // -// var v HistoryService_RecordDecisionTaskStarted_Result +// var v HistoryService_RecordChildExecutionCompleted_Result // if err := v.FromWire(x); err != nil { // return nil, err // } // return &v, nil -func (v *HistoryService_RecordDecisionTaskStarted_Result) FromWire(w wire.Value) error { +func (v *HistoryService_RecordChildExecutionCompleted_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 = _RecordDecisionTaskStartedResponse_Read(field.Value) - if err != nil { - return err - } - - } case 1: if field.Value.Type() == wire.TStruct { v.BadRequestError, err = _BadRequestError_Read(field.Value) @@ -26344,14 +26078,6 @@ func (v *HistoryService_RecordDecisionTaskStarted_Result) FromWire(w wire.Value) } case 3: - if field.Value.Type() == wire.TStruct { - v.EventAlreadyStartedError, err = _EventAlreadyStartedError_Read(field.Value) - if err != nil { - return err - } - - } - case 4: if field.Value.Type() == wire.TStruct { v.EntityNotExistError, err = _EntityNotExistsError_Read(field.Value) if err != nil { @@ -26359,7 +26085,7 @@ func (v *HistoryService_RecordDecisionTaskStarted_Result) FromWire(w wire.Value) } } - case 5: + case 4: if field.Value.Type() == wire.TStruct { v.ShardOwnershipLostError, err = _ShardOwnershipLostError_Read(field.Value) if err != nil { @@ -26367,7 +26093,7 @@ func (v *HistoryService_RecordDecisionTaskStarted_Result) FromWire(w wire.Value) } } - case 6: + case 5: if field.Value.Type() == wire.TStruct { v.DomainNotActiveError, err = _DomainNotActiveError_Read(field.Value) if err != nil { @@ -26375,7 +26101,7 @@ func (v *HistoryService_RecordDecisionTaskStarted_Result) FromWire(w wire.Value) } } - case 7: + case 6: if field.Value.Type() == wire.TStruct { v.LimitExceededError, err = _LimitExceededError_Read(field.Value) if err != nil { @@ -26383,7 +26109,7 @@ func (v *HistoryService_RecordDecisionTaskStarted_Result) FromWire(w wire.Value) } } - case 8: + case 7: if field.Value.Type() == wire.TStruct { v.ServiceBusyError, err = _ServiceBusyError_Read(field.Value) if err != nil { @@ -26391,7 +26117,7 @@ func (v *HistoryService_RecordDecisionTaskStarted_Result) FromWire(w wire.Value) } } - case 9: + case 8: if field.Value.Type() == wire.TStruct { v.WorkflowExecutionAlreadyCompletedError, err = _WorkflowExecutionAlreadyCompletedError_Read(field.Value) if err != nil { @@ -26403,18 +26129,12 @@ func (v *HistoryService_RecordDecisionTaskStarted_Result) FromWire(w wire.Value) } count := 0 - if v.Success != nil { - count++ - } if v.BadRequestError != nil { count++ } if v.InternalServiceError != nil { count++ } - if v.EventAlreadyStartedError != nil { - count++ - } if v.EntityNotExistError != nil { count++ } @@ -26433,26 +26153,22 @@ func (v *HistoryService_RecordDecisionTaskStarted_Result) FromWire(w wire.Value) if v.WorkflowExecutionAlreadyCompletedError != nil { count++ } - if count != 1 { - return fmt.Errorf("HistoryService_RecordDecisionTaskStarted_Result should have exactly one field: got %v fields", count) + if count > 1 { + return fmt.Errorf("HistoryService_RecordChildExecutionCompleted_Result should have at most one field: got %v fields", count) } return nil } -// String returns a readable string representation of a HistoryService_RecordDecisionTaskStarted_Result +// String returns a readable string representation of a HistoryService_RecordChildExecutionCompleted_Result // struct. -func (v *HistoryService_RecordDecisionTaskStarted_Result) String() string { +func (v *HistoryService_RecordChildExecutionCompleted_Result) String() string { if v == nil { return "" } - var fields [10]string + var fields [8]string i := 0 - if v.Success != nil { - fields[i] = fmt.Sprintf("Success: %v", v.Success) - i++ - } if v.BadRequestError != nil { fields[i] = fmt.Sprintf("BadRequestError: %v", v.BadRequestError) i++ @@ -26461,10 +26177,6 @@ func (v *HistoryService_RecordDecisionTaskStarted_Result) String() string { fields[i] = fmt.Sprintf("InternalServiceError: %v", v.InternalServiceError) i++ } - if v.EventAlreadyStartedError != nil { - fields[i] = fmt.Sprintf("EventAlreadyStartedError: %v", v.EventAlreadyStartedError) - i++ - } if v.EntityNotExistError != nil { fields[i] = fmt.Sprintf("EntityNotExistError: %v", v.EntityNotExistError) i++ @@ -26490,31 +26202,25 @@ func (v *HistoryService_RecordDecisionTaskStarted_Result) String() string { i++ } - return fmt.Sprintf("HistoryService_RecordDecisionTaskStarted_Result{%v}", strings.Join(fields[:i], ", ")) + return fmt.Sprintf("HistoryService_RecordChildExecutionCompleted_Result{%v}", strings.Join(fields[:i], ", ")) } -// Equals returns true if all the fields of this HistoryService_RecordDecisionTaskStarted_Result match the -// provided HistoryService_RecordDecisionTaskStarted_Result. +// Equals returns true if all the fields of this HistoryService_RecordChildExecutionCompleted_Result match the +// provided HistoryService_RecordChildExecutionCompleted_Result. // // This function performs a deep comparison. -func (v *HistoryService_RecordDecisionTaskStarted_Result) Equals(rhs *HistoryService_RecordDecisionTaskStarted_Result) bool { +func (v *HistoryService_RecordChildExecutionCompleted_Result) Equals(rhs *HistoryService_RecordChildExecutionCompleted_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.BadRequestError == nil && rhs.BadRequestError == nil) || (v.BadRequestError != nil && rhs.BadRequestError != nil && v.BadRequestError.Equals(rhs.BadRequestError))) { return false } if !((v.InternalServiceError == nil && rhs.InternalServiceError == nil) || (v.InternalServiceError != nil && rhs.InternalServiceError != nil && v.InternalServiceError.Equals(rhs.InternalServiceError))) { return false } - if !((v.EventAlreadyStartedError == nil && rhs.EventAlreadyStartedError == nil) || (v.EventAlreadyStartedError != nil && rhs.EventAlreadyStartedError != nil && v.EventAlreadyStartedError.Equals(rhs.EventAlreadyStartedError))) { - return false - } if !((v.EntityNotExistError == nil && rhs.EntityNotExistError == nil) || (v.EntityNotExistError != nil && rhs.EntityNotExistError != nil && v.EntityNotExistError.Equals(rhs.EntityNotExistError))) { return false } @@ -26538,23 +26244,17 @@ func (v *HistoryService_RecordDecisionTaskStarted_Result) Equals(rhs *HistorySer } // MarshalLogObject implements zapcore.ObjectMarshaler, enabling -// fast logging of HistoryService_RecordDecisionTaskStarted_Result. -func (v *HistoryService_RecordDecisionTaskStarted_Result) MarshalLogObject(enc zapcore.ObjectEncoder) (err error) { +// fast logging of HistoryService_RecordChildExecutionCompleted_Result. +func (v *HistoryService_RecordChildExecutionCompleted_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.BadRequestError != nil { err = multierr.Append(err, enc.AddObject("badRequestError", v.BadRequestError)) } if v.InternalServiceError != nil { err = multierr.Append(err, enc.AddObject("internalServiceError", v.InternalServiceError)) } - if v.EventAlreadyStartedError != nil { - err = multierr.Append(err, enc.AddObject("eventAlreadyStartedError", v.EventAlreadyStartedError)) - } if v.EntityNotExistError != nil { err = multierr.Append(err, enc.AddObject("entityNotExistError", v.EntityNotExistError)) } @@ -26576,24 +26276,9 @@ func (v *HistoryService_RecordDecisionTaskStarted_Result) MarshalLogObject(enc z return err } -// GetSuccess returns the value of Success if it is set or its -// zero value if it is unset. -func (v *HistoryService_RecordDecisionTaskStarted_Result) GetSuccess() (o *RecordDecisionTaskStartedResponse) { - if v != nil && v.Success != nil { - return v.Success - } - - return -} - -// IsSetSuccess returns true if Success is not nil. -func (v *HistoryService_RecordDecisionTaskStarted_Result) IsSetSuccess() bool { - return v != nil && v.Success != nil -} - // GetBadRequestError returns the value of BadRequestError if it is set or its // zero value if it is unset. -func (v *HistoryService_RecordDecisionTaskStarted_Result) GetBadRequestError() (o *shared.BadRequestError) { +func (v *HistoryService_RecordChildExecutionCompleted_Result) GetBadRequestError() (o *shared.BadRequestError) { if v != nil && v.BadRequestError != nil { return v.BadRequestError } @@ -26602,13 +26287,13 @@ func (v *HistoryService_RecordDecisionTaskStarted_Result) GetBadRequestError() ( } // IsSetBadRequestError returns true if BadRequestError is not nil. -func (v *HistoryService_RecordDecisionTaskStarted_Result) IsSetBadRequestError() bool { +func (v *HistoryService_RecordChildExecutionCompleted_Result) IsSetBadRequestError() bool { return v != nil && v.BadRequestError != nil } // GetInternalServiceError returns the value of InternalServiceError if it is set or its // zero value if it is unset. -func (v *HistoryService_RecordDecisionTaskStarted_Result) GetInternalServiceError() (o *shared.InternalServiceError) { +func (v *HistoryService_RecordChildExecutionCompleted_Result) GetInternalServiceError() (o *shared.InternalServiceError) { if v != nil && v.InternalServiceError != nil { return v.InternalServiceError } @@ -26617,28 +26302,13 @@ func (v *HistoryService_RecordDecisionTaskStarted_Result) GetInternalServiceErro } // IsSetInternalServiceError returns true if InternalServiceError is not nil. -func (v *HistoryService_RecordDecisionTaskStarted_Result) IsSetInternalServiceError() bool { +func (v *HistoryService_RecordChildExecutionCompleted_Result) IsSetInternalServiceError() bool { return v != nil && v.InternalServiceError != nil } -// GetEventAlreadyStartedError returns the value of EventAlreadyStartedError if it is set or its -// zero value if it is unset. -func (v *HistoryService_RecordDecisionTaskStarted_Result) GetEventAlreadyStartedError() (o *EventAlreadyStartedError) { - if v != nil && v.EventAlreadyStartedError != nil { - return v.EventAlreadyStartedError - } - - return -} - -// IsSetEventAlreadyStartedError returns true if EventAlreadyStartedError is not nil. -func (v *HistoryService_RecordDecisionTaskStarted_Result) IsSetEventAlreadyStartedError() bool { - return v != nil && v.EventAlreadyStartedError != nil -} - // GetEntityNotExistError returns the value of EntityNotExistError if it is set or its // zero value if it is unset. -func (v *HistoryService_RecordDecisionTaskStarted_Result) GetEntityNotExistError() (o *shared.EntityNotExistsError) { +func (v *HistoryService_RecordChildExecutionCompleted_Result) GetEntityNotExistError() (o *shared.EntityNotExistsError) { if v != nil && v.EntityNotExistError != nil { return v.EntityNotExistError } @@ -26647,13 +26317,13 @@ func (v *HistoryService_RecordDecisionTaskStarted_Result) GetEntityNotExistError } // IsSetEntityNotExistError returns true if EntityNotExistError is not nil. -func (v *HistoryService_RecordDecisionTaskStarted_Result) IsSetEntityNotExistError() bool { +func (v *HistoryService_RecordChildExecutionCompleted_Result) IsSetEntityNotExistError() bool { return v != nil && v.EntityNotExistError != nil } // GetShardOwnershipLostError returns the value of ShardOwnershipLostError if it is set or its // zero value if it is unset. -func (v *HistoryService_RecordDecisionTaskStarted_Result) GetShardOwnershipLostError() (o *ShardOwnershipLostError) { +func (v *HistoryService_RecordChildExecutionCompleted_Result) GetShardOwnershipLostError() (o *ShardOwnershipLostError) { if v != nil && v.ShardOwnershipLostError != nil { return v.ShardOwnershipLostError } @@ -26662,13 +26332,13 @@ func (v *HistoryService_RecordDecisionTaskStarted_Result) GetShardOwnershipLostE } // IsSetShardOwnershipLostError returns true if ShardOwnershipLostError is not nil. -func (v *HistoryService_RecordDecisionTaskStarted_Result) IsSetShardOwnershipLostError() bool { +func (v *HistoryService_RecordChildExecutionCompleted_Result) IsSetShardOwnershipLostError() bool { return v != nil && v.ShardOwnershipLostError != nil } // GetDomainNotActiveError returns the value of DomainNotActiveError if it is set or its // zero value if it is unset. -func (v *HistoryService_RecordDecisionTaskStarted_Result) GetDomainNotActiveError() (o *shared.DomainNotActiveError) { +func (v *HistoryService_RecordChildExecutionCompleted_Result) GetDomainNotActiveError() (o *shared.DomainNotActiveError) { if v != nil && v.DomainNotActiveError != nil { return v.DomainNotActiveError } @@ -26677,13 +26347,13 @@ func (v *HistoryService_RecordDecisionTaskStarted_Result) GetDomainNotActiveErro } // IsSetDomainNotActiveError returns true if DomainNotActiveError is not nil. -func (v *HistoryService_RecordDecisionTaskStarted_Result) IsSetDomainNotActiveError() bool { +func (v *HistoryService_RecordChildExecutionCompleted_Result) IsSetDomainNotActiveError() bool { return v != nil && v.DomainNotActiveError != nil } // GetLimitExceededError returns the value of LimitExceededError if it is set or its // zero value if it is unset. -func (v *HistoryService_RecordDecisionTaskStarted_Result) GetLimitExceededError() (o *shared.LimitExceededError) { +func (v *HistoryService_RecordChildExecutionCompleted_Result) GetLimitExceededError() (o *shared.LimitExceededError) { if v != nil && v.LimitExceededError != nil { return v.LimitExceededError } @@ -26692,13 +26362,13 @@ func (v *HistoryService_RecordDecisionTaskStarted_Result) GetLimitExceededError( } // IsSetLimitExceededError returns true if LimitExceededError is not nil. -func (v *HistoryService_RecordDecisionTaskStarted_Result) IsSetLimitExceededError() bool { +func (v *HistoryService_RecordChildExecutionCompleted_Result) IsSetLimitExceededError() bool { return v != nil && v.LimitExceededError != nil } // GetServiceBusyError returns the value of ServiceBusyError if it is set or its // zero value if it is unset. -func (v *HistoryService_RecordDecisionTaskStarted_Result) GetServiceBusyError() (o *shared.ServiceBusyError) { +func (v *HistoryService_RecordChildExecutionCompleted_Result) GetServiceBusyError() (o *shared.ServiceBusyError) { if v != nil && v.ServiceBusyError != nil { return v.ServiceBusyError } @@ -26707,13 +26377,13 @@ func (v *HistoryService_RecordDecisionTaskStarted_Result) GetServiceBusyError() } // IsSetServiceBusyError returns true if ServiceBusyError is not nil. -func (v *HistoryService_RecordDecisionTaskStarted_Result) IsSetServiceBusyError() bool { +func (v *HistoryService_RecordChildExecutionCompleted_Result) IsSetServiceBusyError() bool { return v != nil && v.ServiceBusyError != nil } // GetWorkflowExecutionAlreadyCompletedError returns the value of WorkflowExecutionAlreadyCompletedError if it is set or its // zero value if it is unset. -func (v *HistoryService_RecordDecisionTaskStarted_Result) GetWorkflowExecutionAlreadyCompletedError() (o *shared.WorkflowExecutionAlreadyCompletedError) { +func (v *HistoryService_RecordChildExecutionCompleted_Result) GetWorkflowExecutionAlreadyCompletedError() (o *shared.WorkflowExecutionAlreadyCompletedError) { if v != nil && v.WorkflowExecutionAlreadyCompletedError != nil { return v.WorkflowExecutionAlreadyCompletedError } @@ -26722,33 +26392,33 @@ func (v *HistoryService_RecordDecisionTaskStarted_Result) GetWorkflowExecutionAl } // IsSetWorkflowExecutionAlreadyCompletedError returns true if WorkflowExecutionAlreadyCompletedError is not nil. -func (v *HistoryService_RecordDecisionTaskStarted_Result) IsSetWorkflowExecutionAlreadyCompletedError() bool { +func (v *HistoryService_RecordChildExecutionCompleted_Result) IsSetWorkflowExecutionAlreadyCompletedError() bool { return v != nil && v.WorkflowExecutionAlreadyCompletedError != 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 "RecordDecisionTaskStarted" for this struct. -func (v *HistoryService_RecordDecisionTaskStarted_Result) MethodName() string { - return "RecordDecisionTaskStarted" +// This will always be "RecordChildExecutionCompleted" for this struct. +func (v *HistoryService_RecordChildExecutionCompleted_Result) MethodName() string { + return "RecordChildExecutionCompleted" } // EnvelopeType returns the kind of value inside this struct. // // This will always be Reply for this struct. -func (v *HistoryService_RecordDecisionTaskStarted_Result) EnvelopeType() wire.EnvelopeType { +func (v *HistoryService_RecordChildExecutionCompleted_Result) EnvelopeType() wire.EnvelopeType { return wire.Reply } -// HistoryService_RefreshWorkflowTasks_Args represents the arguments for the HistoryService.RefreshWorkflowTasks function. +// HistoryService_RecordDecisionTaskStarted_Args represents the arguments for the HistoryService.RecordDecisionTaskStarted function. // -// The arguments for RefreshWorkflowTasks are sent and received over the wire as this struct. -type HistoryService_RefreshWorkflowTasks_Args struct { - Request *RefreshWorkflowTasksRequest `json:"request,omitempty"` +// The arguments for RecordDecisionTaskStarted are sent and received over the wire as this struct. +type HistoryService_RecordDecisionTaskStarted_Args struct { + AddRequest *RecordDecisionTaskStartedRequest `json:"addRequest,omitempty"` } -// ToWire translates a HistoryService_RefreshWorkflowTasks_Args struct into a Thrift-level intermediate +// ToWire translates a HistoryService_RecordDecisionTaskStarted_Args struct into a Thrift-level intermediate // representation. This intermediate representation may be serialized // into bytes using a ThriftRW protocol implementation. // @@ -26763,7 +26433,7 @@ type HistoryService_RefreshWorkflowTasks_Args struct { // if err := binaryProtocol.Encode(x, writer); err != nil { // return err // } -func (v *HistoryService_RefreshWorkflowTasks_Args) ToWire() (wire.Value, error) { +func (v *HistoryService_RecordDecisionTaskStarted_Args) ToWire() (wire.Value, error) { var ( fields [1]wire.Field i int = 0 @@ -26771,8 +26441,8 @@ func (v *HistoryService_RefreshWorkflowTasks_Args) ToWire() (wire.Value, error) err error ) - if v.Request != nil { - w, err = v.Request.ToWire() + if v.AddRequest != nil { + w, err = v.AddRequest.ToWire() if err != nil { return w, err } @@ -26783,17 +26453,17 @@ func (v *HistoryService_RefreshWorkflowTasks_Args) ToWire() (wire.Value, error) return wire.NewValueStruct(wire.Struct{Fields: fields[:i]}), nil } -func _RefreshWorkflowTasksRequest_1_Read(w wire.Value) (*RefreshWorkflowTasksRequest, error) { - var v RefreshWorkflowTasksRequest +func _RecordDecisionTaskStartedRequest_Read(w wire.Value) (*RecordDecisionTaskStartedRequest, error) { + var v RecordDecisionTaskStartedRequest err := v.FromWire(w) return &v, err } -// FromWire deserializes a HistoryService_RefreshWorkflowTasks_Args struct from its Thrift-level +// FromWire deserializes a HistoryService_RecordDecisionTaskStarted_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 HistoryService_RefreshWorkflowTasks_Args struct +// An error is returned if we were unable to build a HistoryService_RecordDecisionTaskStarted_Args struct // from the provided intermediate representation. // // x, err := binaryProtocol.Decode(reader, wire.TStruct) @@ -26801,19 +26471,19 @@ func _RefreshWorkflowTasksRequest_1_Read(w wire.Value) (*RefreshWorkflowTasksReq // return nil, err // } // -// var v HistoryService_RefreshWorkflowTasks_Args +// var v HistoryService_RecordDecisionTaskStarted_Args // if err := v.FromWire(x); err != nil { // return nil, err // } // return &v, nil -func (v *HistoryService_RefreshWorkflowTasks_Args) FromWire(w wire.Value) error { +func (v *HistoryService_RecordDecisionTaskStarted_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.Request, err = _RefreshWorkflowTasksRequest_1_Read(field.Value) + v.AddRequest, err = _RecordDecisionTaskStartedRequest_Read(field.Value) if err != nil { return err } @@ -26825,34 +26495,34 @@ func (v *HistoryService_RefreshWorkflowTasks_Args) FromWire(w wire.Value) error return nil } -// String returns a readable string representation of a HistoryService_RefreshWorkflowTasks_Args +// String returns a readable string representation of a HistoryService_RecordDecisionTaskStarted_Args // struct. -func (v *HistoryService_RefreshWorkflowTasks_Args) String() string { +func (v *HistoryService_RecordDecisionTaskStarted_Args) String() string { if v == nil { return "" } var fields [1]string i := 0 - if v.Request != nil { - fields[i] = fmt.Sprintf("Request: %v", v.Request) + if v.AddRequest != nil { + fields[i] = fmt.Sprintf("AddRequest: %v", v.AddRequest) i++ } - return fmt.Sprintf("HistoryService_RefreshWorkflowTasks_Args{%v}", strings.Join(fields[:i], ", ")) + return fmt.Sprintf("HistoryService_RecordDecisionTaskStarted_Args{%v}", strings.Join(fields[:i], ", ")) } -// Equals returns true if all the fields of this HistoryService_RefreshWorkflowTasks_Args match the -// provided HistoryService_RefreshWorkflowTasks_Args. +// Equals returns true if all the fields of this HistoryService_RecordDecisionTaskStarted_Args match the +// provided HistoryService_RecordDecisionTaskStarted_Args. // // This function performs a deep comparison. -func (v *HistoryService_RefreshWorkflowTasks_Args) Equals(rhs *HistoryService_RefreshWorkflowTasks_Args) bool { +func (v *HistoryService_RecordDecisionTaskStarted_Args) Equals(rhs *HistoryService_RecordDecisionTaskStarted_Args) bool { if v == nil { return rhs == nil } else if rhs == nil { return false } - if !((v.Request == nil && rhs.Request == nil) || (v.Request != nil && rhs.Request != nil && v.Request.Equals(rhs.Request))) { + if !((v.AddRequest == nil && rhs.AddRequest == nil) || (v.AddRequest != nil && rhs.AddRequest != nil && v.AddRequest.Equals(rhs.AddRequest))) { return false } @@ -26860,162 +26530,182 @@ func (v *HistoryService_RefreshWorkflowTasks_Args) Equals(rhs *HistoryService_Re } // MarshalLogObject implements zapcore.ObjectMarshaler, enabling -// fast logging of HistoryService_RefreshWorkflowTasks_Args. -func (v *HistoryService_RefreshWorkflowTasks_Args) MarshalLogObject(enc zapcore.ObjectEncoder) (err error) { +// fast logging of HistoryService_RecordDecisionTaskStarted_Args. +func (v *HistoryService_RecordDecisionTaskStarted_Args) MarshalLogObject(enc zapcore.ObjectEncoder) (err error) { if v == nil { return nil } - if v.Request != nil { - err = multierr.Append(err, enc.AddObject("request", v.Request)) + if v.AddRequest != nil { + err = multierr.Append(err, enc.AddObject("addRequest", v.AddRequest)) } return err } -// GetRequest returns the value of Request if it is set or its +// GetAddRequest returns the value of AddRequest if it is set or its // zero value if it is unset. -func (v *HistoryService_RefreshWorkflowTasks_Args) GetRequest() (o *RefreshWorkflowTasksRequest) { - if v != nil && v.Request != nil { - return v.Request +func (v *HistoryService_RecordDecisionTaskStarted_Args) GetAddRequest() (o *RecordDecisionTaskStartedRequest) { + if v != nil && v.AddRequest != nil { + return v.AddRequest } return } -// IsSetRequest returns true if Request is not nil. -func (v *HistoryService_RefreshWorkflowTasks_Args) IsSetRequest() bool { - return v != nil && v.Request != nil +// IsSetAddRequest returns true if AddRequest is not nil. +func (v *HistoryService_RecordDecisionTaskStarted_Args) IsSetAddRequest() bool { + return v != nil && v.AddRequest != 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 "RefreshWorkflowTasks" for this struct. -func (v *HistoryService_RefreshWorkflowTasks_Args) MethodName() string { - return "RefreshWorkflowTasks" +// This will always be "RecordDecisionTaskStarted" for this struct. +func (v *HistoryService_RecordDecisionTaskStarted_Args) MethodName() string { + return "RecordDecisionTaskStarted" } // EnvelopeType returns the kind of value inside this struct. // // This will always be Call for this struct. -func (v *HistoryService_RefreshWorkflowTasks_Args) EnvelopeType() wire.EnvelopeType { +func (v *HistoryService_RecordDecisionTaskStarted_Args) EnvelopeType() wire.EnvelopeType { return wire.Call } -// HistoryService_RefreshWorkflowTasks_Helper provides functions that aid in handling the -// parameters and return values of the HistoryService.RefreshWorkflowTasks +// HistoryService_RecordDecisionTaskStarted_Helper provides functions that aid in handling the +// parameters and return values of the HistoryService.RecordDecisionTaskStarted // function. -var HistoryService_RefreshWorkflowTasks_Helper = struct { - // Args accepts the parameters of RefreshWorkflowTasks in-order and returns +var HistoryService_RecordDecisionTaskStarted_Helper = struct { + // Args accepts the parameters of RecordDecisionTaskStarted in-order and returns // the arguments struct for the function. Args func( - request *RefreshWorkflowTasksRequest, - ) *HistoryService_RefreshWorkflowTasks_Args + addRequest *RecordDecisionTaskStartedRequest, + ) *HistoryService_RecordDecisionTaskStarted_Args // IsException returns true if the given error can be thrown - // by RefreshWorkflowTasks. + // by RecordDecisionTaskStarted. // - // An error can be thrown by RefreshWorkflowTasks only if the + // An error can be thrown by RecordDecisionTaskStarted 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 RefreshWorkflowTasks - // given the error returned by it. The provided error may - // be nil if RefreshWorkflowTasks did not fail. + // WrapResponse returns the result struct for RecordDecisionTaskStarted + // given its return value and error. // - // This allows mapping errors returned by RefreshWorkflowTasks into a - // serializable result struct. WrapResponse returns a - // non-nil error if the provided error cannot be thrown by - // RefreshWorkflowTasks + // This allows mapping values and errors returned by + // RecordDecisionTaskStarted into a serializable result struct. + // WrapResponse returns a non-nil error if the provided + // error cannot be thrown by RecordDecisionTaskStarted // - // err := RefreshWorkflowTasks(args) - // result, err := HistoryService_RefreshWorkflowTasks_Helper.WrapResponse(err) + // value, err := RecordDecisionTaskStarted(args) + // result, err := HistoryService_RecordDecisionTaskStarted_Helper.WrapResponse(value, err) // if err != nil { - // return fmt.Errorf("unexpected error from RefreshWorkflowTasks: %v", err) + // return fmt.Errorf("unexpected error from RecordDecisionTaskStarted: %v", err) // } // serialize(result) - WrapResponse func(error) (*HistoryService_RefreshWorkflowTasks_Result, error) + WrapResponse func(*RecordDecisionTaskStartedResponse, error) (*HistoryService_RecordDecisionTaskStarted_Result, error) - // UnwrapResponse takes the result struct for RefreshWorkflowTasks - // and returns the erorr returned by it (if any). + // UnwrapResponse takes the result struct for RecordDecisionTaskStarted + // and returns the value or error returned by it. // - // The error is non-nil only if RefreshWorkflowTasks threw an + // The error is non-nil only if RecordDecisionTaskStarted threw an // exception. // // result := deserialize(bytes) - // err := HistoryService_RefreshWorkflowTasks_Helper.UnwrapResponse(result) - UnwrapResponse func(*HistoryService_RefreshWorkflowTasks_Result) error + // value, err := HistoryService_RecordDecisionTaskStarted_Helper.UnwrapResponse(result) + UnwrapResponse func(*HistoryService_RecordDecisionTaskStarted_Result) (*RecordDecisionTaskStartedResponse, error) }{} func init() { - HistoryService_RefreshWorkflowTasks_Helper.Args = func( - request *RefreshWorkflowTasksRequest, - ) *HistoryService_RefreshWorkflowTasks_Args { - return &HistoryService_RefreshWorkflowTasks_Args{ - Request: request, + HistoryService_RecordDecisionTaskStarted_Helper.Args = func( + addRequest *RecordDecisionTaskStartedRequest, + ) *HistoryService_RecordDecisionTaskStarted_Args { + return &HistoryService_RecordDecisionTaskStarted_Args{ + AddRequest: addRequest, } } - HistoryService_RefreshWorkflowTasks_Helper.IsException = func(err error) bool { + HistoryService_RecordDecisionTaskStarted_Helper.IsException = func(err error) bool { switch err.(type) { case *shared.BadRequestError: return true case *shared.InternalServiceError: return true - case *shared.DomainNotActiveError: + case *EventAlreadyStartedError: + return true + case *shared.EntityNotExistsError: return true case *ShardOwnershipLostError: return true + case *shared.DomainNotActiveError: + return true + case *shared.LimitExceededError: + return true case *shared.ServiceBusyError: return true - case *shared.EntityNotExistsError: + case *shared.WorkflowExecutionAlreadyCompletedError: return true default: return false } } - HistoryService_RefreshWorkflowTasks_Helper.WrapResponse = func(err error) (*HistoryService_RefreshWorkflowTasks_Result, error) { + HistoryService_RecordDecisionTaskStarted_Helper.WrapResponse = func(success *RecordDecisionTaskStartedResponse, err error) (*HistoryService_RecordDecisionTaskStarted_Result, error) { if err == nil { - return &HistoryService_RefreshWorkflowTasks_Result{}, nil + return &HistoryService_RecordDecisionTaskStarted_Result{Success: success}, nil } switch e := err.(type) { case *shared.BadRequestError: if e == nil { - return nil, errors.New("WrapResponse received non-nil error type with nil value for HistoryService_RefreshWorkflowTasks_Result.BadRequestError") + return nil, errors.New("WrapResponse received non-nil error type with nil value for HistoryService_RecordDecisionTaskStarted_Result.BadRequestError") } - return &HistoryService_RefreshWorkflowTasks_Result{BadRequestError: e}, nil + return &HistoryService_RecordDecisionTaskStarted_Result{BadRequestError: e}, nil case *shared.InternalServiceError: if e == nil { - return nil, errors.New("WrapResponse received non-nil error type with nil value for HistoryService_RefreshWorkflowTasks_Result.InternalServiceError") + return nil, errors.New("WrapResponse received non-nil error type with nil value for HistoryService_RecordDecisionTaskStarted_Result.InternalServiceError") } - return &HistoryService_RefreshWorkflowTasks_Result{InternalServiceError: e}, nil - case *shared.DomainNotActiveError: + return &HistoryService_RecordDecisionTaskStarted_Result{InternalServiceError: e}, nil + case *EventAlreadyStartedError: if e == nil { - return nil, errors.New("WrapResponse received non-nil error type with nil value for HistoryService_RefreshWorkflowTasks_Result.DomainNotActiveError") + return nil, errors.New("WrapResponse received non-nil error type with nil value for HistoryService_RecordDecisionTaskStarted_Result.EventAlreadyStartedError") } - return &HistoryService_RefreshWorkflowTasks_Result{DomainNotActiveError: e}, nil + return &HistoryService_RecordDecisionTaskStarted_Result{EventAlreadyStartedError: e}, nil + case *shared.EntityNotExistsError: + if e == nil { + return nil, errors.New("WrapResponse received non-nil error type with nil value for HistoryService_RecordDecisionTaskStarted_Result.EntityNotExistError") + } + return &HistoryService_RecordDecisionTaskStarted_Result{EntityNotExistError: e}, nil case *ShardOwnershipLostError: if e == nil { - return nil, errors.New("WrapResponse received non-nil error type with nil value for HistoryService_RefreshWorkflowTasks_Result.ShardOwnershipLostError") + return nil, errors.New("WrapResponse received non-nil error type with nil value for HistoryService_RecordDecisionTaskStarted_Result.ShardOwnershipLostError") } - return &HistoryService_RefreshWorkflowTasks_Result{ShardOwnershipLostError: e}, nil + return &HistoryService_RecordDecisionTaskStarted_Result{ShardOwnershipLostError: e}, nil + case *shared.DomainNotActiveError: + if e == nil { + return nil, errors.New("WrapResponse received non-nil error type with nil value for HistoryService_RecordDecisionTaskStarted_Result.DomainNotActiveError") + } + return &HistoryService_RecordDecisionTaskStarted_Result{DomainNotActiveError: e}, nil + case *shared.LimitExceededError: + if e == nil { + return nil, errors.New("WrapResponse received non-nil error type with nil value for HistoryService_RecordDecisionTaskStarted_Result.LimitExceededError") + } + return &HistoryService_RecordDecisionTaskStarted_Result{LimitExceededError: e}, nil case *shared.ServiceBusyError: if e == nil { - return nil, errors.New("WrapResponse received non-nil error type with nil value for HistoryService_RefreshWorkflowTasks_Result.ServiceBusyError") + return nil, errors.New("WrapResponse received non-nil error type with nil value for HistoryService_RecordDecisionTaskStarted_Result.ServiceBusyError") } - return &HistoryService_RefreshWorkflowTasks_Result{ServiceBusyError: e}, nil - case *shared.EntityNotExistsError: + return &HistoryService_RecordDecisionTaskStarted_Result{ServiceBusyError: e}, nil + case *shared.WorkflowExecutionAlreadyCompletedError: if e == nil { - return nil, errors.New("WrapResponse received non-nil error type with nil value for HistoryService_RefreshWorkflowTasks_Result.EntityNotExistError") + return nil, errors.New("WrapResponse received non-nil error type with nil value for HistoryService_RecordDecisionTaskStarted_Result.WorkflowExecutionAlreadyCompletedError") } - return &HistoryService_RefreshWorkflowTasks_Result{EntityNotExistError: e}, nil + return &HistoryService_RecordDecisionTaskStarted_Result{WorkflowExecutionAlreadyCompletedError: e}, nil } return nil, err } - HistoryService_RefreshWorkflowTasks_Helper.UnwrapResponse = func(result *HistoryService_RefreshWorkflowTasks_Result) (err error) { + HistoryService_RecordDecisionTaskStarted_Helper.UnwrapResponse = func(result *HistoryService_RecordDecisionTaskStarted_Result) (success *RecordDecisionTaskStartedResponse, err error) { if result.BadRequestError != nil { err = result.BadRequestError return @@ -27024,40 +26714,66 @@ func init() { err = result.InternalServiceError return } - if result.DomainNotActiveError != nil { - err = result.DomainNotActiveError + if result.EventAlreadyStartedError != nil { + err = result.EventAlreadyStartedError + return + } + if result.EntityNotExistError != nil { + err = result.EntityNotExistError return } if result.ShardOwnershipLostError != nil { err = result.ShardOwnershipLostError return } - if result.ServiceBusyError != nil { - err = result.ServiceBusyError + if result.DomainNotActiveError != nil { + err = result.DomainNotActiveError return } - if result.EntityNotExistError != nil { - err = result.EntityNotExistError + if result.LimitExceededError != nil { + err = result.LimitExceededError + return + } + if result.ServiceBusyError != nil { + err = result.ServiceBusyError + return + } + if result.WorkflowExecutionAlreadyCompletedError != nil { + err = result.WorkflowExecutionAlreadyCompletedError + return + } + + if result.Success != nil { + success = result.Success return } + + err = errors.New("expected a non-void result") return } } -// HistoryService_RefreshWorkflowTasks_Result represents the result of a HistoryService.RefreshWorkflowTasks function call. +// HistoryService_RecordDecisionTaskStarted_Result represents the result of a HistoryService.RecordDecisionTaskStarted function call. // -// The result of a RefreshWorkflowTasks execution is sent and received over the wire as this struct. -type HistoryService_RefreshWorkflowTasks_Result struct { - BadRequestError *shared.BadRequestError `json:"badRequestError,omitempty"` - InternalServiceError *shared.InternalServiceError `json:"internalServiceError,omitempty"` - DomainNotActiveError *shared.DomainNotActiveError `json:"domainNotActiveError,omitempty"` - ShardOwnershipLostError *ShardOwnershipLostError `json:"shardOwnershipLostError,omitempty"` - ServiceBusyError *shared.ServiceBusyError `json:"serviceBusyError,omitempty"` - EntityNotExistError *shared.EntityNotExistsError `json:"entityNotExistError,omitempty"` +// The result of a RecordDecisionTaskStarted execution is sent and received over the wire as this struct. +// +// Success is set only if the function did not throw an exception. +type HistoryService_RecordDecisionTaskStarted_Result struct { + // Value returned by RecordDecisionTaskStarted after a successful execution. + Success *RecordDecisionTaskStartedResponse `json:"success,omitempty"` + BadRequestError *shared.BadRequestError `json:"badRequestError,omitempty"` + InternalServiceError *shared.InternalServiceError `json:"internalServiceError,omitempty"` + EventAlreadyStartedError *EventAlreadyStartedError `json:"eventAlreadyStartedError,omitempty"` + EntityNotExistError *shared.EntityNotExistsError `json:"entityNotExistError,omitempty"` + ShardOwnershipLostError *ShardOwnershipLostError `json:"shardOwnershipLostError,omitempty"` + DomainNotActiveError *shared.DomainNotActiveError `json:"domainNotActiveError,omitempty"` + LimitExceededError *shared.LimitExceededError `json:"limitExceededError,omitempty"` + ServiceBusyError *shared.ServiceBusyError `json:"serviceBusyError,omitempty"` + WorkflowExecutionAlreadyCompletedError *shared.WorkflowExecutionAlreadyCompletedError `json:"workflowExecutionAlreadyCompletedError,omitempty"` } -// ToWire translates a HistoryService_RefreshWorkflowTasks_Result struct into a Thrift-level intermediate +// ToWire translates a HistoryService_RecordDecisionTaskStarted_Result struct into a Thrift-level intermediate // representation. This intermediate representation may be serialized // into bytes using a ThriftRW protocol implementation. // @@ -27072,14 +26788,22 @@ type HistoryService_RefreshWorkflowTasks_Result struct { // if err := binaryProtocol.Encode(x, writer); err != nil { // return err // } -func (v *HistoryService_RefreshWorkflowTasks_Result) ToWire() (wire.Value, error) { +func (v *HistoryService_RecordDecisionTaskStarted_Result) ToWire() (wire.Value, error) { var ( - fields [6]wire.Field + fields [10]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.BadRequestError != nil { w, err = v.BadRequestError.ToWire() if err != nil { @@ -27096,20 +26820,44 @@ func (v *HistoryService_RefreshWorkflowTasks_Result) ToWire() (wire.Value, error fields[i] = wire.Field{ID: 2, Value: w} i++ } - if v.DomainNotActiveError != nil { - w, err = v.DomainNotActiveError.ToWire() + if v.EventAlreadyStartedError != nil { + w, err = v.EventAlreadyStartedError.ToWire() if err != nil { return w, err } fields[i] = wire.Field{ID: 3, Value: w} i++ } + if v.EntityNotExistError != nil { + w, err = v.EntityNotExistError.ToWire() + if err != nil { + return w, err + } + fields[i] = wire.Field{ID: 4, Value: w} + i++ + } if v.ShardOwnershipLostError != nil { w, err = v.ShardOwnershipLostError.ToWire() if err != nil { return w, err } - fields[i] = wire.Field{ID: 4, Value: w} + fields[i] = wire.Field{ID: 5, Value: w} + i++ + } + if v.DomainNotActiveError != nil { + w, err = v.DomainNotActiveError.ToWire() + if err != nil { + return w, err + } + fields[i] = wire.Field{ID: 6, Value: w} + i++ + } + if v.LimitExceededError != nil { + w, err = v.LimitExceededError.ToWire() + if err != nil { + return w, err + } + fields[i] = wire.Field{ID: 7, Value: w} i++ } if v.ServiceBusyError != nil { @@ -27117,30 +26865,30 @@ func (v *HistoryService_RefreshWorkflowTasks_Result) ToWire() (wire.Value, error if err != nil { return w, err } - fields[i] = wire.Field{ID: 5, Value: w} + fields[i] = wire.Field{ID: 8, Value: w} i++ } - if v.EntityNotExistError != nil { - w, err = v.EntityNotExistError.ToWire() + if v.WorkflowExecutionAlreadyCompletedError != nil { + w, err = v.WorkflowExecutionAlreadyCompletedError.ToWire() if err != nil { return w, err } - fields[i] = wire.Field{ID: 6, Value: w} + fields[i] = wire.Field{ID: 9, Value: w} i++ } - if i > 1 { - return wire.Value{}, fmt.Errorf("HistoryService_RefreshWorkflowTasks_Result should have at most one field: got %v fields", i) + if i != 1 { + return wire.Value{}, fmt.Errorf("HistoryService_RecordDecisionTaskStarted_Result should have exactly one field: got %v fields", i) } return wire.NewValueStruct(wire.Struct{Fields: fields[:i]}), nil } -// FromWire deserializes a HistoryService_RefreshWorkflowTasks_Result struct from its Thrift-level +// FromWire deserializes a HistoryService_RecordDecisionTaskStarted_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 HistoryService_RefreshWorkflowTasks_Result struct +// An error is returned if we were unable to build a HistoryService_RecordDecisionTaskStarted_Result struct // from the provided intermediate representation. // // x, err := binaryProtocol.Decode(reader, wire.TStruct) @@ -27148,16 +26896,24 @@ func (v *HistoryService_RefreshWorkflowTasks_Result) ToWire() (wire.Value, error // return nil, err // } // -// var v HistoryService_RefreshWorkflowTasks_Result +// var v HistoryService_RecordDecisionTaskStarted_Result // if err := v.FromWire(x); err != nil { // return nil, err // } // return &v, nil -func (v *HistoryService_RefreshWorkflowTasks_Result) FromWire(w wire.Value) error { +func (v *HistoryService_RecordDecisionTaskStarted_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 = _RecordDecisionTaskStartedResponse_Read(field.Value) + if err != nil { + return err + } + + } case 1: if field.Value.Type() == wire.TStruct { v.BadRequestError, err = _BadRequestError_Read(field.Value) @@ -27176,7 +26932,7 @@ func (v *HistoryService_RefreshWorkflowTasks_Result) FromWire(w wire.Value) erro } case 3: if field.Value.Type() == wire.TStruct { - v.DomainNotActiveError, err = _DomainNotActiveError_Read(field.Value) + v.EventAlreadyStartedError, err = _EventAlreadyStartedError_Read(field.Value) if err != nil { return err } @@ -27184,7 +26940,7 @@ func (v *HistoryService_RefreshWorkflowTasks_Result) FromWire(w wire.Value) erro } case 4: if field.Value.Type() == wire.TStruct { - v.ShardOwnershipLostError, err = _ShardOwnershipLostError_Read(field.Value) + v.EntityNotExistError, err = _EntityNotExistsError_Read(field.Value) if err != nil { return err } @@ -27192,7 +26948,7 @@ func (v *HistoryService_RefreshWorkflowTasks_Result) FromWire(w wire.Value) erro } case 5: if field.Value.Type() == wire.TStruct { - v.ServiceBusyError, err = _ServiceBusyError_Read(field.Value) + v.ShardOwnershipLostError, err = _ShardOwnershipLostError_Read(field.Value) if err != nil { return err } @@ -27200,7 +26956,31 @@ func (v *HistoryService_RefreshWorkflowTasks_Result) FromWire(w wire.Value) erro } case 6: if field.Value.Type() == wire.TStruct { - v.EntityNotExistError, err = _EntityNotExistsError_Read(field.Value) + v.DomainNotActiveError, err = _DomainNotActiveError_Read(field.Value) + if err != nil { + return err + } + + } + case 7: + if field.Value.Type() == wire.TStruct { + v.LimitExceededError, err = _LimitExceededError_Read(field.Value) + if err != nil { + return err + } + + } + case 8: + if field.Value.Type() == wire.TStruct { + v.ServiceBusyError, err = _ServiceBusyError_Read(field.Value) + if err != nil { + return err + } + + } + case 9: + if field.Value.Type() == wire.TStruct { + v.WorkflowExecutionAlreadyCompletedError, err = _WorkflowExecutionAlreadyCompletedError_Read(field.Value) if err != nil { return err } @@ -27210,40 +26990,56 @@ func (v *HistoryService_RefreshWorkflowTasks_Result) FromWire(w wire.Value) erro } count := 0 + if v.Success != nil { + count++ + } if v.BadRequestError != nil { count++ } if v.InternalServiceError != nil { count++ } - if v.DomainNotActiveError != nil { + if v.EventAlreadyStartedError != nil { + count++ + } + if v.EntityNotExistError != nil { count++ } if v.ShardOwnershipLostError != nil { count++ } + if v.DomainNotActiveError != nil { + count++ + } + if v.LimitExceededError != nil { + count++ + } if v.ServiceBusyError != nil { count++ } - if v.EntityNotExistError != nil { + if v.WorkflowExecutionAlreadyCompletedError != nil { count++ } - if count > 1 { - return fmt.Errorf("HistoryService_RefreshWorkflowTasks_Result should have at most one field: got %v fields", count) + if count != 1 { + return fmt.Errorf("HistoryService_RecordDecisionTaskStarted_Result should have exactly one field: got %v fields", count) } return nil } -// String returns a readable string representation of a HistoryService_RefreshWorkflowTasks_Result +// String returns a readable string representation of a HistoryService_RecordDecisionTaskStarted_Result // struct. -func (v *HistoryService_RefreshWorkflowTasks_Result) String() string { +func (v *HistoryService_RecordDecisionTaskStarted_Result) String() string { if v == nil { return "" } - var fields [6]string + var fields [10]string i := 0 + if v.Success != nil { + fields[i] = fmt.Sprintf("Success: %v", v.Success) + i++ + } if v.BadRequestError != nil { fields[i] = fmt.Sprintf("BadRequestError: %v", v.BadRequestError) i++ @@ -27252,52 +27048,76 @@ func (v *HistoryService_RefreshWorkflowTasks_Result) String() string { fields[i] = fmt.Sprintf("InternalServiceError: %v", v.InternalServiceError) i++ } - if v.DomainNotActiveError != nil { - fields[i] = fmt.Sprintf("DomainNotActiveError: %v", v.DomainNotActiveError) + if v.EventAlreadyStartedError != nil { + fields[i] = fmt.Sprintf("EventAlreadyStartedError: %v", v.EventAlreadyStartedError) + i++ + } + if v.EntityNotExistError != nil { + fields[i] = fmt.Sprintf("EntityNotExistError: %v", v.EntityNotExistError) i++ } if v.ShardOwnershipLostError != nil { fields[i] = fmt.Sprintf("ShardOwnershipLostError: %v", v.ShardOwnershipLostError) i++ } + if v.DomainNotActiveError != nil { + fields[i] = fmt.Sprintf("DomainNotActiveError: %v", v.DomainNotActiveError) + i++ + } + if v.LimitExceededError != nil { + fields[i] = fmt.Sprintf("LimitExceededError: %v", v.LimitExceededError) + 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) + if v.WorkflowExecutionAlreadyCompletedError != nil { + fields[i] = fmt.Sprintf("WorkflowExecutionAlreadyCompletedError: %v", v.WorkflowExecutionAlreadyCompletedError) i++ } - return fmt.Sprintf("HistoryService_RefreshWorkflowTasks_Result{%v}", strings.Join(fields[:i], ", ")) + return fmt.Sprintf("HistoryService_RecordDecisionTaskStarted_Result{%v}", strings.Join(fields[:i], ", ")) } -// Equals returns true if all the fields of this HistoryService_RefreshWorkflowTasks_Result match the -// provided HistoryService_RefreshWorkflowTasks_Result. +// Equals returns true if all the fields of this HistoryService_RecordDecisionTaskStarted_Result match the +// provided HistoryService_RecordDecisionTaskStarted_Result. // // This function performs a deep comparison. -func (v *HistoryService_RefreshWorkflowTasks_Result) Equals(rhs *HistoryService_RefreshWorkflowTasks_Result) bool { +func (v *HistoryService_RecordDecisionTaskStarted_Result) Equals(rhs *HistoryService_RecordDecisionTaskStarted_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.BadRequestError == nil && rhs.BadRequestError == nil) || (v.BadRequestError != nil && rhs.BadRequestError != nil && v.BadRequestError.Equals(rhs.BadRequestError))) { return false } if !((v.InternalServiceError == nil && rhs.InternalServiceError == nil) || (v.InternalServiceError != nil && rhs.InternalServiceError != nil && v.InternalServiceError.Equals(rhs.InternalServiceError))) { return false } - if !((v.DomainNotActiveError == nil && rhs.DomainNotActiveError == nil) || (v.DomainNotActiveError != nil && rhs.DomainNotActiveError != nil && v.DomainNotActiveError.Equals(rhs.DomainNotActiveError))) { + if !((v.EventAlreadyStartedError == nil && rhs.EventAlreadyStartedError == nil) || (v.EventAlreadyStartedError != nil && rhs.EventAlreadyStartedError != nil && v.EventAlreadyStartedError.Equals(rhs.EventAlreadyStartedError))) { + return false + } + if !((v.EntityNotExistError == nil && rhs.EntityNotExistError == nil) || (v.EntityNotExistError != nil && rhs.EntityNotExistError != nil && v.EntityNotExistError.Equals(rhs.EntityNotExistError))) { return false } if !((v.ShardOwnershipLostError == nil && rhs.ShardOwnershipLostError == nil) || (v.ShardOwnershipLostError != nil && rhs.ShardOwnershipLostError != nil && v.ShardOwnershipLostError.Equals(rhs.ShardOwnershipLostError))) { return false } + if !((v.DomainNotActiveError == nil && rhs.DomainNotActiveError == nil) || (v.DomainNotActiveError != nil && rhs.DomainNotActiveError != nil && v.DomainNotActiveError.Equals(rhs.DomainNotActiveError))) { + return false + } + if !((v.LimitExceededError == nil && rhs.LimitExceededError == nil) || (v.LimitExceededError != nil && rhs.LimitExceededError != nil && v.LimitExceededError.Equals(rhs.LimitExceededError))) { + 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))) { + if !((v.WorkflowExecutionAlreadyCompletedError == nil && rhs.WorkflowExecutionAlreadyCompletedError == nil) || (v.WorkflowExecutionAlreadyCompletedError != nil && rhs.WorkflowExecutionAlreadyCompletedError != nil && v.WorkflowExecutionAlreadyCompletedError.Equals(rhs.WorkflowExecutionAlreadyCompletedError))) { return false } @@ -27305,50 +27125,77 @@ func (v *HistoryService_RefreshWorkflowTasks_Result) Equals(rhs *HistoryService_ } // MarshalLogObject implements zapcore.ObjectMarshaler, enabling -// fast logging of HistoryService_RefreshWorkflowTasks_Result. -func (v *HistoryService_RefreshWorkflowTasks_Result) MarshalLogObject(enc zapcore.ObjectEncoder) (err error) { +// fast logging of HistoryService_RecordDecisionTaskStarted_Result. +func (v *HistoryService_RecordDecisionTaskStarted_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.BadRequestError != nil { err = multierr.Append(err, enc.AddObject("badRequestError", v.BadRequestError)) } if v.InternalServiceError != nil { err = multierr.Append(err, enc.AddObject("internalServiceError", v.InternalServiceError)) } - if v.DomainNotActiveError != nil { - err = multierr.Append(err, enc.AddObject("domainNotActiveError", v.DomainNotActiveError)) + if v.EventAlreadyStartedError != nil { + err = multierr.Append(err, enc.AddObject("eventAlreadyStartedError", v.EventAlreadyStartedError)) + } + if v.EntityNotExistError != nil { + err = multierr.Append(err, enc.AddObject("entityNotExistError", v.EntityNotExistError)) } if v.ShardOwnershipLostError != nil { err = multierr.Append(err, enc.AddObject("shardOwnershipLostError", v.ShardOwnershipLostError)) } + if v.DomainNotActiveError != nil { + err = multierr.Append(err, enc.AddObject("domainNotActiveError", v.DomainNotActiveError)) + } + if v.LimitExceededError != nil { + err = multierr.Append(err, enc.AddObject("limitExceededError", v.LimitExceededError)) + } 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.WorkflowExecutionAlreadyCompletedError != nil { + err = multierr.Append(err, enc.AddObject("workflowExecutionAlreadyCompletedError", v.WorkflowExecutionAlreadyCompletedError)) } return err } -// GetBadRequestError returns the value of BadRequestError if it is set or its +// GetSuccess returns the value of Success if it is set or its // zero value if it is unset. -func (v *HistoryService_RefreshWorkflowTasks_Result) GetBadRequestError() (o *shared.BadRequestError) { - if v != nil && v.BadRequestError != nil { - return v.BadRequestError +func (v *HistoryService_RecordDecisionTaskStarted_Result) GetSuccess() (o *RecordDecisionTaskStartedResponse) { + if v != nil && v.Success != nil { + return v.Success } return } -// IsSetBadRequestError returns true if BadRequestError is not nil. -func (v *HistoryService_RefreshWorkflowTasks_Result) IsSetBadRequestError() bool { - return v != nil && v.BadRequestError != nil +// IsSetSuccess returns true if Success is not nil. +func (v *HistoryService_RecordDecisionTaskStarted_Result) IsSetSuccess() bool { + return v != nil && v.Success != nil +} + +// GetBadRequestError returns the value of BadRequestError if it is set or its +// zero value if it is unset. +func (v *HistoryService_RecordDecisionTaskStarted_Result) GetBadRequestError() (o *shared.BadRequestError) { + if v != nil && v.BadRequestError != nil { + return v.BadRequestError + } + + return +} + +// IsSetBadRequestError returns true if BadRequestError is not nil. +func (v *HistoryService_RecordDecisionTaskStarted_Result) IsSetBadRequestError() bool { + return v != nil && v.BadRequestError != nil } // GetInternalServiceError returns the value of InternalServiceError if it is set or its // zero value if it is unset. -func (v *HistoryService_RefreshWorkflowTasks_Result) GetInternalServiceError() (o *shared.InternalServiceError) { +func (v *HistoryService_RecordDecisionTaskStarted_Result) GetInternalServiceError() (o *shared.InternalServiceError) { if v != nil && v.InternalServiceError != nil { return v.InternalServiceError } @@ -27357,28 +27204,43 @@ func (v *HistoryService_RefreshWorkflowTasks_Result) GetInternalServiceError() ( } // IsSetInternalServiceError returns true if InternalServiceError is not nil. -func (v *HistoryService_RefreshWorkflowTasks_Result) IsSetInternalServiceError() bool { +func (v *HistoryService_RecordDecisionTaskStarted_Result) IsSetInternalServiceError() bool { return v != nil && v.InternalServiceError != nil } -// GetDomainNotActiveError returns the value of DomainNotActiveError if it is set or its +// GetEventAlreadyStartedError returns the value of EventAlreadyStartedError if it is set or its // zero value if it is unset. -func (v *HistoryService_RefreshWorkflowTasks_Result) GetDomainNotActiveError() (o *shared.DomainNotActiveError) { - if v != nil && v.DomainNotActiveError != nil { - return v.DomainNotActiveError +func (v *HistoryService_RecordDecisionTaskStarted_Result) GetEventAlreadyStartedError() (o *EventAlreadyStartedError) { + if v != nil && v.EventAlreadyStartedError != nil { + return v.EventAlreadyStartedError } return } -// IsSetDomainNotActiveError returns true if DomainNotActiveError is not nil. -func (v *HistoryService_RefreshWorkflowTasks_Result) IsSetDomainNotActiveError() bool { - return v != nil && v.DomainNotActiveError != nil +// IsSetEventAlreadyStartedError returns true if EventAlreadyStartedError is not nil. +func (v *HistoryService_RecordDecisionTaskStarted_Result) IsSetEventAlreadyStartedError() bool { + return v != nil && v.EventAlreadyStartedError != nil +} + +// GetEntityNotExistError returns the value of EntityNotExistError if it is set or its +// zero value if it is unset. +func (v *HistoryService_RecordDecisionTaskStarted_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 *HistoryService_RecordDecisionTaskStarted_Result) IsSetEntityNotExistError() bool { + return v != nil && v.EntityNotExistError != nil } // GetShardOwnershipLostError returns the value of ShardOwnershipLostError if it is set or its // zero value if it is unset. -func (v *HistoryService_RefreshWorkflowTasks_Result) GetShardOwnershipLostError() (o *ShardOwnershipLostError) { +func (v *HistoryService_RecordDecisionTaskStarted_Result) GetShardOwnershipLostError() (o *ShardOwnershipLostError) { if v != nil && v.ShardOwnershipLostError != nil { return v.ShardOwnershipLostError } @@ -27387,13 +27249,43 @@ func (v *HistoryService_RefreshWorkflowTasks_Result) GetShardOwnershipLostError( } // IsSetShardOwnershipLostError returns true if ShardOwnershipLostError is not nil. -func (v *HistoryService_RefreshWorkflowTasks_Result) IsSetShardOwnershipLostError() bool { +func (v *HistoryService_RecordDecisionTaskStarted_Result) IsSetShardOwnershipLostError() bool { return v != nil && v.ShardOwnershipLostError != nil } +// GetDomainNotActiveError returns the value of DomainNotActiveError if it is set or its +// zero value if it is unset. +func (v *HistoryService_RecordDecisionTaskStarted_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 *HistoryService_RecordDecisionTaskStarted_Result) IsSetDomainNotActiveError() bool { + return v != nil && v.DomainNotActiveError != nil +} + +// GetLimitExceededError returns the value of LimitExceededError if it is set or its +// zero value if it is unset. +func (v *HistoryService_RecordDecisionTaskStarted_Result) GetLimitExceededError() (o *shared.LimitExceededError) { + if v != nil && v.LimitExceededError != nil { + return v.LimitExceededError + } + + return +} + +// IsSetLimitExceededError returns true if LimitExceededError is not nil. +func (v *HistoryService_RecordDecisionTaskStarted_Result) IsSetLimitExceededError() bool { + return v != nil && v.LimitExceededError != nil +} + // GetServiceBusyError returns the value of ServiceBusyError if it is set or its // zero value if it is unset. -func (v *HistoryService_RefreshWorkflowTasks_Result) GetServiceBusyError() (o *shared.ServiceBusyError) { +func (v *HistoryService_RecordDecisionTaskStarted_Result) GetServiceBusyError() (o *shared.ServiceBusyError) { if v != nil && v.ServiceBusyError != nil { return v.ServiceBusyError } @@ -27402,48 +27294,48 @@ func (v *HistoryService_RefreshWorkflowTasks_Result) GetServiceBusyError() (o *s } // IsSetServiceBusyError returns true if ServiceBusyError is not nil. -func (v *HistoryService_RefreshWorkflowTasks_Result) IsSetServiceBusyError() bool { +func (v *HistoryService_RecordDecisionTaskStarted_Result) IsSetServiceBusyError() bool { return v != nil && v.ServiceBusyError != nil } -// GetEntityNotExistError returns the value of EntityNotExistError if it is set or its +// GetWorkflowExecutionAlreadyCompletedError returns the value of WorkflowExecutionAlreadyCompletedError if it is set or its // zero value if it is unset. -func (v *HistoryService_RefreshWorkflowTasks_Result) GetEntityNotExistError() (o *shared.EntityNotExistsError) { - if v != nil && v.EntityNotExistError != nil { - return v.EntityNotExistError +func (v *HistoryService_RecordDecisionTaskStarted_Result) GetWorkflowExecutionAlreadyCompletedError() (o *shared.WorkflowExecutionAlreadyCompletedError) { + if v != nil && v.WorkflowExecutionAlreadyCompletedError != nil { + return v.WorkflowExecutionAlreadyCompletedError } return } -// IsSetEntityNotExistError returns true if EntityNotExistError is not nil. -func (v *HistoryService_RefreshWorkflowTasks_Result) IsSetEntityNotExistError() bool { - return v != nil && v.EntityNotExistError != nil +// IsSetWorkflowExecutionAlreadyCompletedError returns true if WorkflowExecutionAlreadyCompletedError is not nil. +func (v *HistoryService_RecordDecisionTaskStarted_Result) IsSetWorkflowExecutionAlreadyCompletedError() bool { + return v != nil && v.WorkflowExecutionAlreadyCompletedError != 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 "RefreshWorkflowTasks" for this struct. -func (v *HistoryService_RefreshWorkflowTasks_Result) MethodName() string { - return "RefreshWorkflowTasks" +// This will always be "RecordDecisionTaskStarted" for this struct. +func (v *HistoryService_RecordDecisionTaskStarted_Result) MethodName() string { + return "RecordDecisionTaskStarted" } // EnvelopeType returns the kind of value inside this struct. // // This will always be Reply for this struct. -func (v *HistoryService_RefreshWorkflowTasks_Result) EnvelopeType() wire.EnvelopeType { +func (v *HistoryService_RecordDecisionTaskStarted_Result) EnvelopeType() wire.EnvelopeType { return wire.Reply } -// HistoryService_RemoveSignalMutableState_Args represents the arguments for the HistoryService.RemoveSignalMutableState function. +// HistoryService_RefreshWorkflowTasks_Args represents the arguments for the HistoryService.RefreshWorkflowTasks function. // -// The arguments for RemoveSignalMutableState are sent and received over the wire as this struct. -type HistoryService_RemoveSignalMutableState_Args struct { - RemoveRequest *RemoveSignalMutableStateRequest `json:"removeRequest,omitempty"` +// The arguments for RefreshWorkflowTasks are sent and received over the wire as this struct. +type HistoryService_RefreshWorkflowTasks_Args struct { + Request *RefreshWorkflowTasksRequest `json:"request,omitempty"` } -// ToWire translates a HistoryService_RemoveSignalMutableState_Args struct into a Thrift-level intermediate +// ToWire translates a HistoryService_RefreshWorkflowTasks_Args struct into a Thrift-level intermediate // representation. This intermediate representation may be serialized // into bytes using a ThriftRW protocol implementation. // @@ -27458,7 +27350,7 @@ type HistoryService_RemoveSignalMutableState_Args struct { // if err := binaryProtocol.Encode(x, writer); err != nil { // return err // } -func (v *HistoryService_RemoveSignalMutableState_Args) ToWire() (wire.Value, error) { +func (v *HistoryService_RefreshWorkflowTasks_Args) ToWire() (wire.Value, error) { var ( fields [1]wire.Field i int = 0 @@ -27466,8 +27358,8 @@ func (v *HistoryService_RemoveSignalMutableState_Args) ToWire() (wire.Value, err err error ) - if v.RemoveRequest != nil { - w, err = v.RemoveRequest.ToWire() + if v.Request != nil { + w, err = v.Request.ToWire() if err != nil { return w, err } @@ -27478,17 +27370,17 @@ func (v *HistoryService_RemoveSignalMutableState_Args) ToWire() (wire.Value, err return wire.NewValueStruct(wire.Struct{Fields: fields[:i]}), nil } -func _RemoveSignalMutableStateRequest_Read(w wire.Value) (*RemoveSignalMutableStateRequest, error) { - var v RemoveSignalMutableStateRequest +func _RefreshWorkflowTasksRequest_1_Read(w wire.Value) (*RefreshWorkflowTasksRequest, error) { + var v RefreshWorkflowTasksRequest err := v.FromWire(w) return &v, err } -// FromWire deserializes a HistoryService_RemoveSignalMutableState_Args struct from its Thrift-level +// FromWire deserializes a HistoryService_RefreshWorkflowTasks_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 HistoryService_RemoveSignalMutableState_Args struct +// An error is returned if we were unable to build a HistoryService_RefreshWorkflowTasks_Args struct // from the provided intermediate representation. // // x, err := binaryProtocol.Decode(reader, wire.TStruct) @@ -27496,19 +27388,19 @@ func _RemoveSignalMutableStateRequest_Read(w wire.Value) (*RemoveSignalMutableSt // return nil, err // } // -// var v HistoryService_RemoveSignalMutableState_Args +// var v HistoryService_RefreshWorkflowTasks_Args // if err := v.FromWire(x); err != nil { // return nil, err // } // return &v, nil -func (v *HistoryService_RemoveSignalMutableState_Args) FromWire(w wire.Value) error { +func (v *HistoryService_RefreshWorkflowTasks_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.RemoveRequest, err = _RemoveSignalMutableStateRequest_Read(field.Value) + v.Request, err = _RefreshWorkflowTasksRequest_1_Read(field.Value) if err != nil { return err } @@ -27520,34 +27412,34 @@ func (v *HistoryService_RemoveSignalMutableState_Args) FromWire(w wire.Value) er return nil } -// String returns a readable string representation of a HistoryService_RemoveSignalMutableState_Args +// String returns a readable string representation of a HistoryService_RefreshWorkflowTasks_Args // struct. -func (v *HistoryService_RemoveSignalMutableState_Args) String() string { +func (v *HistoryService_RefreshWorkflowTasks_Args) String() string { if v == nil { return "" } var fields [1]string i := 0 - if v.RemoveRequest != nil { - fields[i] = fmt.Sprintf("RemoveRequest: %v", v.RemoveRequest) + if v.Request != nil { + fields[i] = fmt.Sprintf("Request: %v", v.Request) i++ } - return fmt.Sprintf("HistoryService_RemoveSignalMutableState_Args{%v}", strings.Join(fields[:i], ", ")) + return fmt.Sprintf("HistoryService_RefreshWorkflowTasks_Args{%v}", strings.Join(fields[:i], ", ")) } -// Equals returns true if all the fields of this HistoryService_RemoveSignalMutableState_Args match the -// provided HistoryService_RemoveSignalMutableState_Args. +// Equals returns true if all the fields of this HistoryService_RefreshWorkflowTasks_Args match the +// provided HistoryService_RefreshWorkflowTasks_Args. // // This function performs a deep comparison. -func (v *HistoryService_RemoveSignalMutableState_Args) Equals(rhs *HistoryService_RemoveSignalMutableState_Args) bool { +func (v *HistoryService_RefreshWorkflowTasks_Args) Equals(rhs *HistoryService_RefreshWorkflowTasks_Args) bool { if v == nil { return rhs == nil } else if rhs == nil { return false } - if !((v.RemoveRequest == nil && rhs.RemoveRequest == nil) || (v.RemoveRequest != nil && rhs.RemoveRequest != nil && v.RemoveRequest.Equals(rhs.RemoveRequest))) { + if !((v.Request == nil && rhs.Request == nil) || (v.Request != nil && rhs.Request != nil && v.Request.Equals(rhs.Request))) { return false } @@ -27555,176 +27447,162 @@ func (v *HistoryService_RemoveSignalMutableState_Args) Equals(rhs *HistoryServic } // MarshalLogObject implements zapcore.ObjectMarshaler, enabling -// fast logging of HistoryService_RemoveSignalMutableState_Args. -func (v *HistoryService_RemoveSignalMutableState_Args) MarshalLogObject(enc zapcore.ObjectEncoder) (err error) { +// fast logging of HistoryService_RefreshWorkflowTasks_Args. +func (v *HistoryService_RefreshWorkflowTasks_Args) MarshalLogObject(enc zapcore.ObjectEncoder) (err error) { if v == nil { return nil } - if v.RemoveRequest != nil { - err = multierr.Append(err, enc.AddObject("removeRequest", v.RemoveRequest)) + if v.Request != nil { + err = multierr.Append(err, enc.AddObject("request", v.Request)) } return err } -// GetRemoveRequest returns the value of RemoveRequest if it is set or its +// GetRequest returns the value of Request if it is set or its // zero value if it is unset. -func (v *HistoryService_RemoveSignalMutableState_Args) GetRemoveRequest() (o *RemoveSignalMutableStateRequest) { - if v != nil && v.RemoveRequest != nil { - return v.RemoveRequest +func (v *HistoryService_RefreshWorkflowTasks_Args) GetRequest() (o *RefreshWorkflowTasksRequest) { + if v != nil && v.Request != nil { + return v.Request } return } -// IsSetRemoveRequest returns true if RemoveRequest is not nil. -func (v *HistoryService_RemoveSignalMutableState_Args) IsSetRemoveRequest() bool { - return v != nil && v.RemoveRequest != nil +// IsSetRequest returns true if Request is not nil. +func (v *HistoryService_RefreshWorkflowTasks_Args) IsSetRequest() bool { + return v != nil && v.Request != 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 "RemoveSignalMutableState" for this struct. -func (v *HistoryService_RemoveSignalMutableState_Args) MethodName() string { - return "RemoveSignalMutableState" +// This will always be "RefreshWorkflowTasks" for this struct. +func (v *HistoryService_RefreshWorkflowTasks_Args) MethodName() string { + return "RefreshWorkflowTasks" } // EnvelopeType returns the kind of value inside this struct. // // This will always be Call for this struct. -func (v *HistoryService_RemoveSignalMutableState_Args) EnvelopeType() wire.EnvelopeType { +func (v *HistoryService_RefreshWorkflowTasks_Args) EnvelopeType() wire.EnvelopeType { return wire.Call } -// HistoryService_RemoveSignalMutableState_Helper provides functions that aid in handling the -// parameters and return values of the HistoryService.RemoveSignalMutableState +// HistoryService_RefreshWorkflowTasks_Helper provides functions that aid in handling the +// parameters and return values of the HistoryService.RefreshWorkflowTasks // function. -var HistoryService_RemoveSignalMutableState_Helper = struct { - // Args accepts the parameters of RemoveSignalMutableState in-order and returns +var HistoryService_RefreshWorkflowTasks_Helper = struct { + // Args accepts the parameters of RefreshWorkflowTasks in-order and returns // the arguments struct for the function. Args func( - removeRequest *RemoveSignalMutableStateRequest, - ) *HistoryService_RemoveSignalMutableState_Args + request *RefreshWorkflowTasksRequest, + ) *HistoryService_RefreshWorkflowTasks_Args // IsException returns true if the given error can be thrown - // by RemoveSignalMutableState. + // by RefreshWorkflowTasks. // - // An error can be thrown by RemoveSignalMutableState only if the + // An error can be thrown by RefreshWorkflowTasks 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 RemoveSignalMutableState + // WrapResponse returns the result struct for RefreshWorkflowTasks // given the error returned by it. The provided error may - // be nil if RemoveSignalMutableState did not fail. + // be nil if RefreshWorkflowTasks did not fail. // - // This allows mapping errors returned by RemoveSignalMutableState into a + // This allows mapping errors returned by RefreshWorkflowTasks into a // serializable result struct. WrapResponse returns a // non-nil error if the provided error cannot be thrown by - // RemoveSignalMutableState + // RefreshWorkflowTasks // - // err := RemoveSignalMutableState(args) - // result, err := HistoryService_RemoveSignalMutableState_Helper.WrapResponse(err) + // err := RefreshWorkflowTasks(args) + // result, err := HistoryService_RefreshWorkflowTasks_Helper.WrapResponse(err) // if err != nil { - // return fmt.Errorf("unexpected error from RemoveSignalMutableState: %v", err) + // return fmt.Errorf("unexpected error from RefreshWorkflowTasks: %v", err) // } // serialize(result) - WrapResponse func(error) (*HistoryService_RemoveSignalMutableState_Result, error) + WrapResponse func(error) (*HistoryService_RefreshWorkflowTasks_Result, error) - // UnwrapResponse takes the result struct for RemoveSignalMutableState + // UnwrapResponse takes the result struct for RefreshWorkflowTasks // and returns the erorr returned by it (if any). // - // The error is non-nil only if RemoveSignalMutableState threw an + // The error is non-nil only if RefreshWorkflowTasks threw an // exception. // // result := deserialize(bytes) - // err := HistoryService_RemoveSignalMutableState_Helper.UnwrapResponse(result) - UnwrapResponse func(*HistoryService_RemoveSignalMutableState_Result) error + // err := HistoryService_RefreshWorkflowTasks_Helper.UnwrapResponse(result) + UnwrapResponse func(*HistoryService_RefreshWorkflowTasks_Result) error }{} func init() { - HistoryService_RemoveSignalMutableState_Helper.Args = func( - removeRequest *RemoveSignalMutableStateRequest, - ) *HistoryService_RemoveSignalMutableState_Args { - return &HistoryService_RemoveSignalMutableState_Args{ - RemoveRequest: removeRequest, + HistoryService_RefreshWorkflowTasks_Helper.Args = func( + request *RefreshWorkflowTasksRequest, + ) *HistoryService_RefreshWorkflowTasks_Args { + return &HistoryService_RefreshWorkflowTasks_Args{ + Request: request, } } - HistoryService_RemoveSignalMutableState_Helper.IsException = func(err error) bool { + HistoryService_RefreshWorkflowTasks_Helper.IsException = func(err error) bool { switch err.(type) { case *shared.BadRequestError: return true case *shared.InternalServiceError: return true - case *shared.EntityNotExistsError: - return true - case *ShardOwnershipLostError: - return true case *shared.DomainNotActiveError: return true - case *shared.LimitExceededError: + case *ShardOwnershipLostError: return true case *shared.ServiceBusyError: return true - case *shared.WorkflowExecutionAlreadyCompletedError: + case *shared.EntityNotExistsError: return true default: return false } } - HistoryService_RemoveSignalMutableState_Helper.WrapResponse = func(err error) (*HistoryService_RemoveSignalMutableState_Result, error) { + HistoryService_RefreshWorkflowTasks_Helper.WrapResponse = func(err error) (*HistoryService_RefreshWorkflowTasks_Result, error) { if err == nil { - return &HistoryService_RemoveSignalMutableState_Result{}, nil + return &HistoryService_RefreshWorkflowTasks_Result{}, nil } switch e := err.(type) { case *shared.BadRequestError: if e == nil { - return nil, errors.New("WrapResponse received non-nil error type with nil value for HistoryService_RemoveSignalMutableState_Result.BadRequestError") + return nil, errors.New("WrapResponse received non-nil error type with nil value for HistoryService_RefreshWorkflowTasks_Result.BadRequestError") } - return &HistoryService_RemoveSignalMutableState_Result{BadRequestError: e}, nil + return &HistoryService_RefreshWorkflowTasks_Result{BadRequestError: e}, nil case *shared.InternalServiceError: if e == nil { - return nil, errors.New("WrapResponse received non-nil error type with nil value for HistoryService_RemoveSignalMutableState_Result.InternalServiceError") - } - return &HistoryService_RemoveSignalMutableState_Result{InternalServiceError: e}, nil - case *shared.EntityNotExistsError: - if e == nil { - return nil, errors.New("WrapResponse received non-nil error type with nil value for HistoryService_RemoveSignalMutableState_Result.EntityNotExistError") - } - return &HistoryService_RemoveSignalMutableState_Result{EntityNotExistError: e}, nil - case *ShardOwnershipLostError: - if e == nil { - return nil, errors.New("WrapResponse received non-nil error type with nil value for HistoryService_RemoveSignalMutableState_Result.ShardOwnershipLostError") + return nil, errors.New("WrapResponse received non-nil error type with nil value for HistoryService_RefreshWorkflowTasks_Result.InternalServiceError") } - return &HistoryService_RemoveSignalMutableState_Result{ShardOwnershipLostError: e}, nil + return &HistoryService_RefreshWorkflowTasks_Result{InternalServiceError: e}, nil case *shared.DomainNotActiveError: if e == nil { - return nil, errors.New("WrapResponse received non-nil error type with nil value for HistoryService_RemoveSignalMutableState_Result.DomainNotActiveError") + return nil, errors.New("WrapResponse received non-nil error type with nil value for HistoryService_RefreshWorkflowTasks_Result.DomainNotActiveError") } - return &HistoryService_RemoveSignalMutableState_Result{DomainNotActiveError: e}, nil - case *shared.LimitExceededError: + return &HistoryService_RefreshWorkflowTasks_Result{DomainNotActiveError: e}, nil + case *ShardOwnershipLostError: if e == nil { - return nil, errors.New("WrapResponse received non-nil error type with nil value for HistoryService_RemoveSignalMutableState_Result.LimitExceededError") + return nil, errors.New("WrapResponse received non-nil error type with nil value for HistoryService_RefreshWorkflowTasks_Result.ShardOwnershipLostError") } - return &HistoryService_RemoveSignalMutableState_Result{LimitExceededError: e}, nil + return &HistoryService_RefreshWorkflowTasks_Result{ShardOwnershipLostError: e}, nil case *shared.ServiceBusyError: if e == nil { - return nil, errors.New("WrapResponse received non-nil error type with nil value for HistoryService_RemoveSignalMutableState_Result.ServiceBusyError") + return nil, errors.New("WrapResponse received non-nil error type with nil value for HistoryService_RefreshWorkflowTasks_Result.ServiceBusyError") } - return &HistoryService_RemoveSignalMutableState_Result{ServiceBusyError: e}, nil - case *shared.WorkflowExecutionAlreadyCompletedError: + return &HistoryService_RefreshWorkflowTasks_Result{ServiceBusyError: e}, nil + case *shared.EntityNotExistsError: if e == nil { - return nil, errors.New("WrapResponse received non-nil error type with nil value for HistoryService_RemoveSignalMutableState_Result.WorkflowExecutionAlreadyCompletedError") + return nil, errors.New("WrapResponse received non-nil error type with nil value for HistoryService_RefreshWorkflowTasks_Result.EntityNotExistError") } - return &HistoryService_RemoveSignalMutableState_Result{WorkflowExecutionAlreadyCompletedError: e}, nil + return &HistoryService_RefreshWorkflowTasks_Result{EntityNotExistError: e}, nil } return nil, err } - HistoryService_RemoveSignalMutableState_Helper.UnwrapResponse = func(result *HistoryService_RemoveSignalMutableState_Result) (err error) { + HistoryService_RefreshWorkflowTasks_Helper.UnwrapResponse = func(result *HistoryService_RefreshWorkflowTasks_Result) (err error) { if result.BadRequestError != nil { err = result.BadRequestError return @@ -27733,28 +27611,20 @@ func init() { err = result.InternalServiceError return } - if result.EntityNotExistError != nil { - err = result.EntityNotExistError - return - } - if result.ShardOwnershipLostError != nil { - err = result.ShardOwnershipLostError - return - } if result.DomainNotActiveError != nil { err = result.DomainNotActiveError return } - if result.LimitExceededError != nil { - err = result.LimitExceededError + if result.ShardOwnershipLostError != nil { + err = result.ShardOwnershipLostError return } if result.ServiceBusyError != nil { err = result.ServiceBusyError return } - if result.WorkflowExecutionAlreadyCompletedError != nil { - err = result.WorkflowExecutionAlreadyCompletedError + if result.EntityNotExistError != nil { + err = result.EntityNotExistError return } return @@ -27762,21 +27632,19 @@ func init() { } -// HistoryService_RemoveSignalMutableState_Result represents the result of a HistoryService.RemoveSignalMutableState function call. +// HistoryService_RefreshWorkflowTasks_Result represents the result of a HistoryService.RefreshWorkflowTasks function call. // -// The result of a RemoveSignalMutableState execution is sent and received over the wire as this struct. -type HistoryService_RemoveSignalMutableState_Result struct { - BadRequestError *shared.BadRequestError `json:"badRequestError,omitempty"` - InternalServiceError *shared.InternalServiceError `json:"internalServiceError,omitempty"` - EntityNotExistError *shared.EntityNotExistsError `json:"entityNotExistError,omitempty"` - ShardOwnershipLostError *ShardOwnershipLostError `json:"shardOwnershipLostError,omitempty"` - DomainNotActiveError *shared.DomainNotActiveError `json:"domainNotActiveError,omitempty"` - LimitExceededError *shared.LimitExceededError `json:"limitExceededError,omitempty"` - ServiceBusyError *shared.ServiceBusyError `json:"serviceBusyError,omitempty"` - WorkflowExecutionAlreadyCompletedError *shared.WorkflowExecutionAlreadyCompletedError `json:"workflowExecutionAlreadyCompletedError,omitempty"` +// The result of a RefreshWorkflowTasks execution is sent and received over the wire as this struct. +type HistoryService_RefreshWorkflowTasks_Result struct { + BadRequestError *shared.BadRequestError `json:"badRequestError,omitempty"` + InternalServiceError *shared.InternalServiceError `json:"internalServiceError,omitempty"` + DomainNotActiveError *shared.DomainNotActiveError `json:"domainNotActiveError,omitempty"` + ShardOwnershipLostError *ShardOwnershipLostError `json:"shardOwnershipLostError,omitempty"` + ServiceBusyError *shared.ServiceBusyError `json:"serviceBusyError,omitempty"` + EntityNotExistError *shared.EntityNotExistsError `json:"entityNotExistError,omitempty"` } -// ToWire translates a HistoryService_RemoveSignalMutableState_Result struct into a Thrift-level intermediate +// ToWire translates a HistoryService_RefreshWorkflowTasks_Result struct into a Thrift-level intermediate // representation. This intermediate representation may be serialized // into bytes using a ThriftRW protocol implementation. // @@ -27791,9 +27659,9 @@ type HistoryService_RemoveSignalMutableState_Result struct { // if err := binaryProtocol.Encode(x, writer); err != nil { // return err // } -func (v *HistoryService_RemoveSignalMutableState_Result) ToWire() (wire.Value, error) { +func (v *HistoryService_RefreshWorkflowTasks_Result) ToWire() (wire.Value, error) { var ( - fields [8]wire.Field + fields [6]wire.Field i int = 0 w wire.Value err error @@ -27815,8 +27683,8 @@ func (v *HistoryService_RemoveSignalMutableState_Result) ToWire() (wire.Value, e fields[i] = wire.Field{ID: 2, Value: w} i++ } - if v.EntityNotExistError != nil { - w, err = v.EntityNotExistError.ToWire() + if v.DomainNotActiveError != nil { + w, err = v.DomainNotActiveError.ToWire() if err != nil { return w, err } @@ -27831,51 +27699,35 @@ func (v *HistoryService_RemoveSignalMutableState_Result) ToWire() (wire.Value, e fields[i] = wire.Field{ID: 4, Value: w} i++ } - if v.DomainNotActiveError != nil { - w, err = v.DomainNotActiveError.ToWire() - if err != nil { - return w, err - } - fields[i] = wire.Field{ID: 5, Value: w} - i++ - } - if v.LimitExceededError != nil { - w, err = v.LimitExceededError.ToWire() - if err != nil { - return w, err - } - fields[i] = wire.Field{ID: 6, Value: w} - i++ - } if v.ServiceBusyError != nil { w, err = v.ServiceBusyError.ToWire() if err != nil { return w, err } - fields[i] = wire.Field{ID: 7, Value: w} + fields[i] = wire.Field{ID: 5, Value: w} i++ } - if v.WorkflowExecutionAlreadyCompletedError != nil { - w, err = v.WorkflowExecutionAlreadyCompletedError.ToWire() + if v.EntityNotExistError != nil { + w, err = v.EntityNotExistError.ToWire() if err != nil { return w, err } - fields[i] = wire.Field{ID: 8, Value: w} + fields[i] = wire.Field{ID: 6, Value: w} i++ } if i > 1 { - return wire.Value{}, fmt.Errorf("HistoryService_RemoveSignalMutableState_Result should have at most one field: got %v fields", i) + return wire.Value{}, fmt.Errorf("HistoryService_RefreshWorkflowTasks_Result should have at most one field: got %v fields", i) } return wire.NewValueStruct(wire.Struct{Fields: fields[:i]}), nil } -// FromWire deserializes a HistoryService_RemoveSignalMutableState_Result struct from its Thrift-level +// FromWire deserializes a HistoryService_RefreshWorkflowTasks_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 HistoryService_RemoveSignalMutableState_Result struct +// An error is returned if we were unable to build a HistoryService_RefreshWorkflowTasks_Result struct // from the provided intermediate representation. // // x, err := binaryProtocol.Decode(reader, wire.TStruct) @@ -27883,12 +27735,12 @@ func (v *HistoryService_RemoveSignalMutableState_Result) ToWire() (wire.Value, e // return nil, err // } // -// var v HistoryService_RemoveSignalMutableState_Result +// var v HistoryService_RefreshWorkflowTasks_Result // if err := v.FromWire(x); err != nil { // return nil, err // } // return &v, nil -func (v *HistoryService_RemoveSignalMutableState_Result) FromWire(w wire.Value) error { +func (v *HistoryService_RefreshWorkflowTasks_Result) FromWire(w wire.Value) error { var err error for _, field := range w.GetStruct().Fields { @@ -27911,7 +27763,7 @@ func (v *HistoryService_RemoveSignalMutableState_Result) FromWire(w wire.Value) } case 3: if field.Value.Type() == wire.TStruct { - v.EntityNotExistError, err = _EntityNotExistsError_Read(field.Value) + v.DomainNotActiveError, err = _DomainNotActiveError_Read(field.Value) if err != nil { return err } @@ -27926,22 +27778,6 @@ func (v *HistoryService_RemoveSignalMutableState_Result) FromWire(w wire.Value) } case 5: - if field.Value.Type() == wire.TStruct { - v.DomainNotActiveError, err = _DomainNotActiveError_Read(field.Value) - if err != nil { - return err - } - - } - case 6: - if field.Value.Type() == wire.TStruct { - v.LimitExceededError, err = _LimitExceededError_Read(field.Value) - if err != nil { - return err - } - - } - case 7: if field.Value.Type() == wire.TStruct { v.ServiceBusyError, err = _ServiceBusyError_Read(field.Value) if err != nil { @@ -27949,9 +27785,9 @@ func (v *HistoryService_RemoveSignalMutableState_Result) FromWire(w wire.Value) } } - case 8: + case 6: if field.Value.Type() == wire.TStruct { - v.WorkflowExecutionAlreadyCompletedError, err = _WorkflowExecutionAlreadyCompletedError_Read(field.Value) + v.EntityNotExistError, err = _EntityNotExistsError_Read(field.Value) if err != nil { return err } @@ -27967,39 +27803,33 @@ func (v *HistoryService_RemoveSignalMutableState_Result) FromWire(w wire.Value) if v.InternalServiceError != nil { count++ } - if v.EntityNotExistError != nil { - count++ - } - if v.ShardOwnershipLostError != nil { - count++ - } if v.DomainNotActiveError != nil { count++ } - if v.LimitExceededError != nil { + if v.ShardOwnershipLostError != nil { count++ } if v.ServiceBusyError != nil { count++ } - if v.WorkflowExecutionAlreadyCompletedError != nil { + if v.EntityNotExistError != nil { count++ } if count > 1 { - return fmt.Errorf("HistoryService_RemoveSignalMutableState_Result should have at most one field: got %v fields", count) + return fmt.Errorf("HistoryService_RefreshWorkflowTasks_Result should have at most one field: got %v fields", count) } return nil } -// String returns a readable string representation of a HistoryService_RemoveSignalMutableState_Result +// String returns a readable string representation of a HistoryService_RefreshWorkflowTasks_Result // struct. -func (v *HistoryService_RemoveSignalMutableState_Result) String() string { +func (v *HistoryService_RefreshWorkflowTasks_Result) String() string { if v == nil { return "" } - var fields [8]string + var fields [6]string i := 0 if v.BadRequestError != nil { fields[i] = fmt.Sprintf("BadRequestError: %v", v.BadRequestError) @@ -28009,39 +27839,31 @@ func (v *HistoryService_RemoveSignalMutableState_Result) String() string { fields[i] = fmt.Sprintf("InternalServiceError: %v", v.InternalServiceError) i++ } - if v.EntityNotExistError != nil { - fields[i] = fmt.Sprintf("EntityNotExistError: %v", v.EntityNotExistError) - i++ - } - if v.ShardOwnershipLostError != nil { - fields[i] = fmt.Sprintf("ShardOwnershipLostError: %v", v.ShardOwnershipLostError) - i++ - } if v.DomainNotActiveError != nil { fields[i] = fmt.Sprintf("DomainNotActiveError: %v", v.DomainNotActiveError) i++ } - if v.LimitExceededError != nil { - fields[i] = fmt.Sprintf("LimitExceededError: %v", v.LimitExceededError) + if v.ShardOwnershipLostError != nil { + fields[i] = fmt.Sprintf("ShardOwnershipLostError: %v", v.ShardOwnershipLostError) i++ } if v.ServiceBusyError != nil { fields[i] = fmt.Sprintf("ServiceBusyError: %v", v.ServiceBusyError) i++ } - if v.WorkflowExecutionAlreadyCompletedError != nil { - fields[i] = fmt.Sprintf("WorkflowExecutionAlreadyCompletedError: %v", v.WorkflowExecutionAlreadyCompletedError) + if v.EntityNotExistError != nil { + fields[i] = fmt.Sprintf("EntityNotExistError: %v", v.EntityNotExistError) i++ } - return fmt.Sprintf("HistoryService_RemoveSignalMutableState_Result{%v}", strings.Join(fields[:i], ", ")) + return fmt.Sprintf("HistoryService_RefreshWorkflowTasks_Result{%v}", strings.Join(fields[:i], ", ")) } -// Equals returns true if all the fields of this HistoryService_RemoveSignalMutableState_Result match the -// provided HistoryService_RemoveSignalMutableState_Result. +// Equals returns true if all the fields of this HistoryService_RefreshWorkflowTasks_Result match the +// provided HistoryService_RefreshWorkflowTasks_Result. // // This function performs a deep comparison. -func (v *HistoryService_RemoveSignalMutableState_Result) Equals(rhs *HistoryService_RemoveSignalMutableState_Result) bool { +func (v *HistoryService_RefreshWorkflowTasks_Result) Equals(rhs *HistoryService_RefreshWorkflowTasks_Result) bool { if v == nil { return rhs == nil } else if rhs == nil { @@ -28053,22 +27875,16 @@ func (v *HistoryService_RemoveSignalMutableState_Result) Equals(rhs *HistoryServ if !((v.InternalServiceError == nil && rhs.InternalServiceError == nil) || (v.InternalServiceError != nil && rhs.InternalServiceError != nil && v.InternalServiceError.Equals(rhs.InternalServiceError))) { return false } - if !((v.EntityNotExistError == nil && rhs.EntityNotExistError == nil) || (v.EntityNotExistError != nil && rhs.EntityNotExistError != nil && v.EntityNotExistError.Equals(rhs.EntityNotExistError))) { - return false - } - if !((v.ShardOwnershipLostError == nil && rhs.ShardOwnershipLostError == nil) || (v.ShardOwnershipLostError != nil && rhs.ShardOwnershipLostError != nil && v.ShardOwnershipLostError.Equals(rhs.ShardOwnershipLostError))) { - return false - } if !((v.DomainNotActiveError == nil && rhs.DomainNotActiveError == nil) || (v.DomainNotActiveError != nil && rhs.DomainNotActiveError != nil && v.DomainNotActiveError.Equals(rhs.DomainNotActiveError))) { return false } - if !((v.LimitExceededError == nil && rhs.LimitExceededError == nil) || (v.LimitExceededError != nil && rhs.LimitExceededError != nil && v.LimitExceededError.Equals(rhs.LimitExceededError))) { + if !((v.ShardOwnershipLostError == nil && rhs.ShardOwnershipLostError == nil) || (v.ShardOwnershipLostError != nil && rhs.ShardOwnershipLostError != nil && v.ShardOwnershipLostError.Equals(rhs.ShardOwnershipLostError))) { return false } if !((v.ServiceBusyError == nil && rhs.ServiceBusyError == nil) || (v.ServiceBusyError != nil && rhs.ServiceBusyError != nil && v.ServiceBusyError.Equals(rhs.ServiceBusyError))) { return false } - if !((v.WorkflowExecutionAlreadyCompletedError == nil && rhs.WorkflowExecutionAlreadyCompletedError == nil) || (v.WorkflowExecutionAlreadyCompletedError != nil && rhs.WorkflowExecutionAlreadyCompletedError != nil && v.WorkflowExecutionAlreadyCompletedError.Equals(rhs.WorkflowExecutionAlreadyCompletedError))) { + if !((v.EntityNotExistError == nil && rhs.EntityNotExistError == nil) || (v.EntityNotExistError != nil && rhs.EntityNotExistError != nil && v.EntityNotExistError.Equals(rhs.EntityNotExistError))) { return false } @@ -28076,8 +27892,8 @@ func (v *HistoryService_RemoveSignalMutableState_Result) Equals(rhs *HistoryServ } // MarshalLogObject implements zapcore.ObjectMarshaler, enabling -// fast logging of HistoryService_RemoveSignalMutableState_Result. -func (v *HistoryService_RemoveSignalMutableState_Result) MarshalLogObject(enc zapcore.ObjectEncoder) (err error) { +// fast logging of HistoryService_RefreshWorkflowTasks_Result. +func (v *HistoryService_RefreshWorkflowTasks_Result) MarshalLogObject(enc zapcore.ObjectEncoder) (err error) { if v == nil { return nil } @@ -28087,30 +27903,24 @@ func (v *HistoryService_RemoveSignalMutableState_Result) MarshalLogObject(enc za if v.InternalServiceError != nil { err = multierr.Append(err, enc.AddObject("internalServiceError", v.InternalServiceError)) } - if v.EntityNotExistError != nil { - err = multierr.Append(err, enc.AddObject("entityNotExistError", v.EntityNotExistError)) - } - if v.ShardOwnershipLostError != nil { - err = multierr.Append(err, enc.AddObject("shardOwnershipLostError", v.ShardOwnershipLostError)) - } if v.DomainNotActiveError != nil { err = multierr.Append(err, enc.AddObject("domainNotActiveError", v.DomainNotActiveError)) } - if v.LimitExceededError != nil { - err = multierr.Append(err, enc.AddObject("limitExceededError", v.LimitExceededError)) + if v.ShardOwnershipLostError != nil { + err = multierr.Append(err, enc.AddObject("shardOwnershipLostError", v.ShardOwnershipLostError)) } if v.ServiceBusyError != nil { err = multierr.Append(err, enc.AddObject("serviceBusyError", v.ServiceBusyError)) } - if v.WorkflowExecutionAlreadyCompletedError != nil { - err = multierr.Append(err, enc.AddObject("workflowExecutionAlreadyCompletedError", v.WorkflowExecutionAlreadyCompletedError)) + if v.EntityNotExistError != nil { + err = multierr.Append(err, enc.AddObject("entityNotExistError", v.EntityNotExistError)) } return err } // GetBadRequestError returns the value of BadRequestError if it is set or its // zero value if it is unset. -func (v *HistoryService_RemoveSignalMutableState_Result) GetBadRequestError() (o *shared.BadRequestError) { +func (v *HistoryService_RefreshWorkflowTasks_Result) GetBadRequestError() (o *shared.BadRequestError) { if v != nil && v.BadRequestError != nil { return v.BadRequestError } @@ -28119,13 +27929,13 @@ func (v *HistoryService_RemoveSignalMutableState_Result) GetBadRequestError() (o } // IsSetBadRequestError returns true if BadRequestError is not nil. -func (v *HistoryService_RemoveSignalMutableState_Result) IsSetBadRequestError() bool { +func (v *HistoryService_RefreshWorkflowTasks_Result) IsSetBadRequestError() bool { return v != nil && v.BadRequestError != nil } // GetInternalServiceError returns the value of InternalServiceError if it is set or its // zero value if it is unset. -func (v *HistoryService_RemoveSignalMutableState_Result) GetInternalServiceError() (o *shared.InternalServiceError) { +func (v *HistoryService_RefreshWorkflowTasks_Result) GetInternalServiceError() (o *shared.InternalServiceError) { if v != nil && v.InternalServiceError != nil { return v.InternalServiceError } @@ -28134,28 +27944,28 @@ func (v *HistoryService_RemoveSignalMutableState_Result) GetInternalServiceError } // IsSetInternalServiceError returns true if InternalServiceError is not nil. -func (v *HistoryService_RemoveSignalMutableState_Result) IsSetInternalServiceError() bool { +func (v *HistoryService_RefreshWorkflowTasks_Result) IsSetInternalServiceError() bool { return v != nil && v.InternalServiceError != nil } -// GetEntityNotExistError returns the value of EntityNotExistError if it is set or its +// GetDomainNotActiveError returns the value of DomainNotActiveError if it is set or its // zero value if it is unset. -func (v *HistoryService_RemoveSignalMutableState_Result) GetEntityNotExistError() (o *shared.EntityNotExistsError) { - if v != nil && v.EntityNotExistError != nil { - return v.EntityNotExistError +func (v *HistoryService_RefreshWorkflowTasks_Result) GetDomainNotActiveError() (o *shared.DomainNotActiveError) { + if v != nil && v.DomainNotActiveError != nil { + return v.DomainNotActiveError } return } -// IsSetEntityNotExistError returns true if EntityNotExistError is not nil. -func (v *HistoryService_RemoveSignalMutableState_Result) IsSetEntityNotExistError() bool { - return v != nil && v.EntityNotExistError != nil +// IsSetDomainNotActiveError returns true if DomainNotActiveError is not nil. +func (v *HistoryService_RefreshWorkflowTasks_Result) IsSetDomainNotActiveError() bool { + return v != nil && v.DomainNotActiveError != nil } // GetShardOwnershipLostError returns the value of ShardOwnershipLostError if it is set or its // zero value if it is unset. -func (v *HistoryService_RemoveSignalMutableState_Result) GetShardOwnershipLostError() (o *ShardOwnershipLostError) { +func (v *HistoryService_RefreshWorkflowTasks_Result) GetShardOwnershipLostError() (o *ShardOwnershipLostError) { if v != nil && v.ShardOwnershipLostError != nil { return v.ShardOwnershipLostError } @@ -28164,93 +27974,63 @@ func (v *HistoryService_RemoveSignalMutableState_Result) GetShardOwnershipLostEr } // IsSetShardOwnershipLostError returns true if ShardOwnershipLostError is not nil. -func (v *HistoryService_RemoveSignalMutableState_Result) IsSetShardOwnershipLostError() bool { +func (v *HistoryService_RefreshWorkflowTasks_Result) IsSetShardOwnershipLostError() bool { return v != nil && v.ShardOwnershipLostError != nil } -// GetDomainNotActiveError returns the value of DomainNotActiveError if it is set or its +// GetServiceBusyError returns the value of ServiceBusyError if it is set or its // zero value if it is unset. -func (v *HistoryService_RemoveSignalMutableState_Result) GetDomainNotActiveError() (o *shared.DomainNotActiveError) { - if v != nil && v.DomainNotActiveError != nil { - return v.DomainNotActiveError +func (v *HistoryService_RefreshWorkflowTasks_Result) GetServiceBusyError() (o *shared.ServiceBusyError) { + if v != nil && v.ServiceBusyError != nil { + return v.ServiceBusyError } return } -// IsSetDomainNotActiveError returns true if DomainNotActiveError is not nil. -func (v *HistoryService_RemoveSignalMutableState_Result) IsSetDomainNotActiveError() bool { - return v != nil && v.DomainNotActiveError != nil +// IsSetServiceBusyError returns true if ServiceBusyError is not nil. +func (v *HistoryService_RefreshWorkflowTasks_Result) IsSetServiceBusyError() bool { + return v != nil && v.ServiceBusyError != nil } -// GetLimitExceededError returns the value of LimitExceededError if it is set or its +// GetEntityNotExistError returns the value of EntityNotExistError if it is set or its // zero value if it is unset. -func (v *HistoryService_RemoveSignalMutableState_Result) GetLimitExceededError() (o *shared.LimitExceededError) { - if v != nil && v.LimitExceededError != nil { - return v.LimitExceededError - } - - return -} - -// IsSetLimitExceededError returns true if LimitExceededError is not nil. -func (v *HistoryService_RemoveSignalMutableState_Result) IsSetLimitExceededError() bool { - return v != nil && v.LimitExceededError != nil -} - -// GetServiceBusyError returns the value of ServiceBusyError if it is set or its -// zero value if it is unset. -func (v *HistoryService_RemoveSignalMutableState_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 *HistoryService_RemoveSignalMutableState_Result) IsSetServiceBusyError() bool { - return v != nil && v.ServiceBusyError != nil -} - -// GetWorkflowExecutionAlreadyCompletedError returns the value of WorkflowExecutionAlreadyCompletedError if it is set or its -// zero value if it is unset. -func (v *HistoryService_RemoveSignalMutableState_Result) GetWorkflowExecutionAlreadyCompletedError() (o *shared.WorkflowExecutionAlreadyCompletedError) { - if v != nil && v.WorkflowExecutionAlreadyCompletedError != nil { - return v.WorkflowExecutionAlreadyCompletedError +func (v *HistoryService_RefreshWorkflowTasks_Result) GetEntityNotExistError() (o *shared.EntityNotExistsError) { + if v != nil && v.EntityNotExistError != nil { + return v.EntityNotExistError } return } -// IsSetWorkflowExecutionAlreadyCompletedError returns true if WorkflowExecutionAlreadyCompletedError is not nil. -func (v *HistoryService_RemoveSignalMutableState_Result) IsSetWorkflowExecutionAlreadyCompletedError() bool { - return v != nil && v.WorkflowExecutionAlreadyCompletedError != nil +// IsSetEntityNotExistError returns true if EntityNotExistError is not nil. +func (v *HistoryService_RefreshWorkflowTasks_Result) IsSetEntityNotExistError() bool { + return v != nil && v.EntityNotExistError != 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 "RemoveSignalMutableState" for this struct. -func (v *HistoryService_RemoveSignalMutableState_Result) MethodName() string { - return "RemoveSignalMutableState" +// This will always be "RefreshWorkflowTasks" for this struct. +func (v *HistoryService_RefreshWorkflowTasks_Result) MethodName() string { + return "RefreshWorkflowTasks" } // EnvelopeType returns the kind of value inside this struct. // // This will always be Reply for this struct. -func (v *HistoryService_RemoveSignalMutableState_Result) EnvelopeType() wire.EnvelopeType { +func (v *HistoryService_RefreshWorkflowTasks_Result) EnvelopeType() wire.EnvelopeType { return wire.Reply } -// HistoryService_RemoveTask_Args represents the arguments for the HistoryService.RemoveTask function. +// HistoryService_RemoveSignalMutableState_Args represents the arguments for the HistoryService.RemoveSignalMutableState function. // -// The arguments for RemoveTask are sent and received over the wire as this struct. -type HistoryService_RemoveTask_Args struct { - Request *shared.RemoveTaskRequest `json:"request,omitempty"` +// The arguments for RemoveSignalMutableState are sent and received over the wire as this struct. +type HistoryService_RemoveSignalMutableState_Args struct { + RemoveRequest *RemoveSignalMutableStateRequest `json:"removeRequest,omitempty"` } -// ToWire translates a HistoryService_RemoveTask_Args struct into a Thrift-level intermediate +// ToWire translates a HistoryService_RemoveSignalMutableState_Args struct into a Thrift-level intermediate // representation. This intermediate representation may be serialized // into bytes using a ThriftRW protocol implementation. // @@ -28265,7 +28045,7 @@ type HistoryService_RemoveTask_Args struct { // if err := binaryProtocol.Encode(x, writer); err != nil { // return err // } -func (v *HistoryService_RemoveTask_Args) ToWire() (wire.Value, error) { +func (v *HistoryService_RemoveSignalMutableState_Args) ToWire() (wire.Value, error) { var ( fields [1]wire.Field i int = 0 @@ -28273,8 +28053,8 @@ func (v *HistoryService_RemoveTask_Args) ToWire() (wire.Value, error) { err error ) - if v.Request != nil { - w, err = v.Request.ToWire() + if v.RemoveRequest != nil { + w, err = v.RemoveRequest.ToWire() if err != nil { return w, err } @@ -28285,17 +28065,17 @@ func (v *HistoryService_RemoveTask_Args) ToWire() (wire.Value, error) { return wire.NewValueStruct(wire.Struct{Fields: fields[:i]}), nil } -func _RemoveTaskRequest_Read(w wire.Value) (*shared.RemoveTaskRequest, error) { - var v shared.RemoveTaskRequest +func _RemoveSignalMutableStateRequest_Read(w wire.Value) (*RemoveSignalMutableStateRequest, error) { + var v RemoveSignalMutableStateRequest err := v.FromWire(w) return &v, err } -// FromWire deserializes a HistoryService_RemoveTask_Args struct from its Thrift-level +// FromWire deserializes a HistoryService_RemoveSignalMutableState_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 HistoryService_RemoveTask_Args struct +// An error is returned if we were unable to build a HistoryService_RemoveSignalMutableState_Args struct // from the provided intermediate representation. // // x, err := binaryProtocol.Decode(reader, wire.TStruct) @@ -28303,19 +28083,19 @@ func _RemoveTaskRequest_Read(w wire.Value) (*shared.RemoveTaskRequest, error) { // return nil, err // } // -// var v HistoryService_RemoveTask_Args +// var v HistoryService_RemoveSignalMutableState_Args // if err := v.FromWire(x); err != nil { // return nil, err // } // return &v, nil -func (v *HistoryService_RemoveTask_Args) FromWire(w wire.Value) error { +func (v *HistoryService_RemoveSignalMutableState_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.Request, err = _RemoveTaskRequest_Read(field.Value) + v.RemoveRequest, err = _RemoveSignalMutableStateRequest_Read(field.Value) if err != nil { return err } @@ -28327,34 +28107,34 @@ func (v *HistoryService_RemoveTask_Args) FromWire(w wire.Value) error { return nil } -// String returns a readable string representation of a HistoryService_RemoveTask_Args +// String returns a readable string representation of a HistoryService_RemoveSignalMutableState_Args // struct. -func (v *HistoryService_RemoveTask_Args) String() string { +func (v *HistoryService_RemoveSignalMutableState_Args) String() string { if v == nil { return "" } var fields [1]string i := 0 - if v.Request != nil { - fields[i] = fmt.Sprintf("Request: %v", v.Request) + if v.RemoveRequest != nil { + fields[i] = fmt.Sprintf("RemoveRequest: %v", v.RemoveRequest) i++ } - return fmt.Sprintf("HistoryService_RemoveTask_Args{%v}", strings.Join(fields[:i], ", ")) + return fmt.Sprintf("HistoryService_RemoveSignalMutableState_Args{%v}", strings.Join(fields[:i], ", ")) } -// Equals returns true if all the fields of this HistoryService_RemoveTask_Args match the -// provided HistoryService_RemoveTask_Args. +// Equals returns true if all the fields of this HistoryService_RemoveSignalMutableState_Args match the +// provided HistoryService_RemoveSignalMutableState_Args. // // This function performs a deep comparison. -func (v *HistoryService_RemoveTask_Args) Equals(rhs *HistoryService_RemoveTask_Args) bool { +func (v *HistoryService_RemoveSignalMutableState_Args) Equals(rhs *HistoryService_RemoveSignalMutableState_Args) bool { if v == nil { return rhs == nil } else if rhs == nil { return false } - if !((v.Request == nil && rhs.Request == nil) || (v.Request != nil && rhs.Request != nil && v.Request.Equals(rhs.Request))) { + if !((v.RemoveRequest == nil && rhs.RemoveRequest == nil) || (v.RemoveRequest != nil && rhs.RemoveRequest != nil && v.RemoveRequest.Equals(rhs.RemoveRequest))) { return false } @@ -28362,141 +28142,176 @@ func (v *HistoryService_RemoveTask_Args) Equals(rhs *HistoryService_RemoveTask_A } // MarshalLogObject implements zapcore.ObjectMarshaler, enabling -// fast logging of HistoryService_RemoveTask_Args. -func (v *HistoryService_RemoveTask_Args) MarshalLogObject(enc zapcore.ObjectEncoder) (err error) { +// fast logging of HistoryService_RemoveSignalMutableState_Args. +func (v *HistoryService_RemoveSignalMutableState_Args) MarshalLogObject(enc zapcore.ObjectEncoder) (err error) { if v == nil { return nil } - if v.Request != nil { - err = multierr.Append(err, enc.AddObject("request", v.Request)) + if v.RemoveRequest != nil { + err = multierr.Append(err, enc.AddObject("removeRequest", v.RemoveRequest)) } return err } -// GetRequest returns the value of Request if it is set or its +// GetRemoveRequest returns the value of RemoveRequest if it is set or its // zero value if it is unset. -func (v *HistoryService_RemoveTask_Args) GetRequest() (o *shared.RemoveTaskRequest) { - if v != nil && v.Request != nil { - return v.Request +func (v *HistoryService_RemoveSignalMutableState_Args) GetRemoveRequest() (o *RemoveSignalMutableStateRequest) { + if v != nil && v.RemoveRequest != nil { + return v.RemoveRequest } return } -// IsSetRequest returns true if Request is not nil. -func (v *HistoryService_RemoveTask_Args) IsSetRequest() bool { - return v != nil && v.Request != nil +// IsSetRemoveRequest returns true if RemoveRequest is not nil. +func (v *HistoryService_RemoveSignalMutableState_Args) IsSetRemoveRequest() bool { + return v != nil && v.RemoveRequest != 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 "RemoveTask" for this struct. -func (v *HistoryService_RemoveTask_Args) MethodName() string { - return "RemoveTask" +// This will always be "RemoveSignalMutableState" for this struct. +func (v *HistoryService_RemoveSignalMutableState_Args) MethodName() string { + return "RemoveSignalMutableState" } // EnvelopeType returns the kind of value inside this struct. // // This will always be Call for this struct. -func (v *HistoryService_RemoveTask_Args) EnvelopeType() wire.EnvelopeType { +func (v *HistoryService_RemoveSignalMutableState_Args) EnvelopeType() wire.EnvelopeType { return wire.Call } -// HistoryService_RemoveTask_Helper provides functions that aid in handling the -// parameters and return values of the HistoryService.RemoveTask +// HistoryService_RemoveSignalMutableState_Helper provides functions that aid in handling the +// parameters and return values of the HistoryService.RemoveSignalMutableState // function. -var HistoryService_RemoveTask_Helper = struct { - // Args accepts the parameters of RemoveTask in-order and returns +var HistoryService_RemoveSignalMutableState_Helper = struct { + // Args accepts the parameters of RemoveSignalMutableState in-order and returns // the arguments struct for the function. Args func( - request *shared.RemoveTaskRequest, - ) *HistoryService_RemoveTask_Args + removeRequest *RemoveSignalMutableStateRequest, + ) *HistoryService_RemoveSignalMutableState_Args // IsException returns true if the given error can be thrown - // by RemoveTask. + // by RemoveSignalMutableState. // - // An error can be thrown by RemoveTask only if the + // An error can be thrown by RemoveSignalMutableState 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 RemoveTask + // WrapResponse returns the result struct for RemoveSignalMutableState // given the error returned by it. The provided error may - // be nil if RemoveTask did not fail. + // be nil if RemoveSignalMutableState did not fail. // - // This allows mapping errors returned by RemoveTask into a + // This allows mapping errors returned by RemoveSignalMutableState into a // serializable result struct. WrapResponse returns a // non-nil error if the provided error cannot be thrown by - // RemoveTask + // RemoveSignalMutableState // - // err := RemoveTask(args) - // result, err := HistoryService_RemoveTask_Helper.WrapResponse(err) + // err := RemoveSignalMutableState(args) + // result, err := HistoryService_RemoveSignalMutableState_Helper.WrapResponse(err) // if err != nil { - // return fmt.Errorf("unexpected error from RemoveTask: %v", err) + // return fmt.Errorf("unexpected error from RemoveSignalMutableState: %v", err) // } // serialize(result) - WrapResponse func(error) (*HistoryService_RemoveTask_Result, error) + WrapResponse func(error) (*HistoryService_RemoveSignalMutableState_Result, error) - // UnwrapResponse takes the result struct for RemoveTask + // UnwrapResponse takes the result struct for RemoveSignalMutableState // and returns the erorr returned by it (if any). // - // The error is non-nil only if RemoveTask threw an + // The error is non-nil only if RemoveSignalMutableState threw an // exception. // // result := deserialize(bytes) - // err := HistoryService_RemoveTask_Helper.UnwrapResponse(result) - UnwrapResponse func(*HistoryService_RemoveTask_Result) error + // err := HistoryService_RemoveSignalMutableState_Helper.UnwrapResponse(result) + UnwrapResponse func(*HistoryService_RemoveSignalMutableState_Result) error }{} func init() { - HistoryService_RemoveTask_Helper.Args = func( - request *shared.RemoveTaskRequest, - ) *HistoryService_RemoveTask_Args { - return &HistoryService_RemoveTask_Args{ - Request: request, + HistoryService_RemoveSignalMutableState_Helper.Args = func( + removeRequest *RemoveSignalMutableStateRequest, + ) *HistoryService_RemoveSignalMutableState_Args { + return &HistoryService_RemoveSignalMutableState_Args{ + RemoveRequest: removeRequest, } } - HistoryService_RemoveTask_Helper.IsException = func(err error) bool { + HistoryService_RemoveSignalMutableState_Helper.IsException = func(err error) bool { switch err.(type) { case *shared.BadRequestError: return true case *shared.InternalServiceError: return true - case *shared.AccessDeniedError: + case *shared.EntityNotExistsError: + return true + case *ShardOwnershipLostError: + return true + case *shared.DomainNotActiveError: + return true + case *shared.LimitExceededError: + return true + case *shared.ServiceBusyError: + return true + case *shared.WorkflowExecutionAlreadyCompletedError: return true default: return false } } - HistoryService_RemoveTask_Helper.WrapResponse = func(err error) (*HistoryService_RemoveTask_Result, error) { + HistoryService_RemoveSignalMutableState_Helper.WrapResponse = func(err error) (*HistoryService_RemoveSignalMutableState_Result, error) { if err == nil { - return &HistoryService_RemoveTask_Result{}, nil + return &HistoryService_RemoveSignalMutableState_Result{}, nil } switch e := err.(type) { case *shared.BadRequestError: if e == nil { - return nil, errors.New("WrapResponse received non-nil error type with nil value for HistoryService_RemoveTask_Result.BadRequestError") + return nil, errors.New("WrapResponse received non-nil error type with nil value for HistoryService_RemoveSignalMutableState_Result.BadRequestError") } - return &HistoryService_RemoveTask_Result{BadRequestError: e}, nil + return &HistoryService_RemoveSignalMutableState_Result{BadRequestError: e}, nil case *shared.InternalServiceError: if e == nil { - return nil, errors.New("WrapResponse received non-nil error type with nil value for HistoryService_RemoveTask_Result.InternalServiceError") + return nil, errors.New("WrapResponse received non-nil error type with nil value for HistoryService_RemoveSignalMutableState_Result.InternalServiceError") } - return &HistoryService_RemoveTask_Result{InternalServiceError: e}, nil - case *shared.AccessDeniedError: + return &HistoryService_RemoveSignalMutableState_Result{InternalServiceError: e}, nil + case *shared.EntityNotExistsError: if e == nil { - return nil, errors.New("WrapResponse received non-nil error type with nil value for HistoryService_RemoveTask_Result.AccessDeniedError") + return nil, errors.New("WrapResponse received non-nil error type with nil value for HistoryService_RemoveSignalMutableState_Result.EntityNotExistError") } - return &HistoryService_RemoveTask_Result{AccessDeniedError: e}, nil + return &HistoryService_RemoveSignalMutableState_Result{EntityNotExistError: e}, nil + case *ShardOwnershipLostError: + if e == nil { + return nil, errors.New("WrapResponse received non-nil error type with nil value for HistoryService_RemoveSignalMutableState_Result.ShardOwnershipLostError") + } + return &HistoryService_RemoveSignalMutableState_Result{ShardOwnershipLostError: e}, nil + case *shared.DomainNotActiveError: + if e == nil { + return nil, errors.New("WrapResponse received non-nil error type with nil value for HistoryService_RemoveSignalMutableState_Result.DomainNotActiveError") + } + return &HistoryService_RemoveSignalMutableState_Result{DomainNotActiveError: e}, nil + case *shared.LimitExceededError: + if e == nil { + return nil, errors.New("WrapResponse received non-nil error type with nil value for HistoryService_RemoveSignalMutableState_Result.LimitExceededError") + } + return &HistoryService_RemoveSignalMutableState_Result{LimitExceededError: e}, nil + case *shared.ServiceBusyError: + if e == nil { + return nil, errors.New("WrapResponse received non-nil error type with nil value for HistoryService_RemoveSignalMutableState_Result.ServiceBusyError") + } + return &HistoryService_RemoveSignalMutableState_Result{ServiceBusyError: e}, nil + case *shared.WorkflowExecutionAlreadyCompletedError: + if e == nil { + return nil, errors.New("WrapResponse received non-nil error type with nil value for HistoryService_RemoveSignalMutableState_Result.WorkflowExecutionAlreadyCompletedError") + } + return &HistoryService_RemoveSignalMutableState_Result{WorkflowExecutionAlreadyCompletedError: e}, nil } return nil, err } - HistoryService_RemoveTask_Helper.UnwrapResponse = func(result *HistoryService_RemoveTask_Result) (err error) { + HistoryService_RemoveSignalMutableState_Helper.UnwrapResponse = func(result *HistoryService_RemoveSignalMutableState_Result) (err error) { if result.BadRequestError != nil { err = result.BadRequestError return @@ -28505,8 +28320,28 @@ func init() { err = result.InternalServiceError return } - if result.AccessDeniedError != nil { - err = result.AccessDeniedError + if result.EntityNotExistError != nil { + err = result.EntityNotExistError + return + } + if result.ShardOwnershipLostError != nil { + err = result.ShardOwnershipLostError + return + } + if result.DomainNotActiveError != nil { + err = result.DomainNotActiveError + return + } + if result.LimitExceededError != nil { + err = result.LimitExceededError + return + } + if result.ServiceBusyError != nil { + err = result.ServiceBusyError + return + } + if result.WorkflowExecutionAlreadyCompletedError != nil { + err = result.WorkflowExecutionAlreadyCompletedError return } return @@ -28514,16 +28349,21 @@ func init() { } -// HistoryService_RemoveTask_Result represents the result of a HistoryService.RemoveTask function call. +// HistoryService_RemoveSignalMutableState_Result represents the result of a HistoryService.RemoveSignalMutableState function call. // -// The result of a RemoveTask execution is sent and received over the wire as this struct. -type HistoryService_RemoveTask_Result struct { - BadRequestError *shared.BadRequestError `json:"badRequestError,omitempty"` - InternalServiceError *shared.InternalServiceError `json:"internalServiceError,omitempty"` - AccessDeniedError *shared.AccessDeniedError `json:"accessDeniedError,omitempty"` +// The result of a RemoveSignalMutableState execution is sent and received over the wire as this struct. +type HistoryService_RemoveSignalMutableState_Result struct { + BadRequestError *shared.BadRequestError `json:"badRequestError,omitempty"` + InternalServiceError *shared.InternalServiceError `json:"internalServiceError,omitempty"` + EntityNotExistError *shared.EntityNotExistsError `json:"entityNotExistError,omitempty"` + ShardOwnershipLostError *ShardOwnershipLostError `json:"shardOwnershipLostError,omitempty"` + DomainNotActiveError *shared.DomainNotActiveError `json:"domainNotActiveError,omitempty"` + LimitExceededError *shared.LimitExceededError `json:"limitExceededError,omitempty"` + ServiceBusyError *shared.ServiceBusyError `json:"serviceBusyError,omitempty"` + WorkflowExecutionAlreadyCompletedError *shared.WorkflowExecutionAlreadyCompletedError `json:"workflowExecutionAlreadyCompletedError,omitempty"` } -// ToWire translates a HistoryService_RemoveTask_Result struct into a Thrift-level intermediate +// ToWire translates a HistoryService_RemoveSignalMutableState_Result struct into a Thrift-level intermediate // representation. This intermediate representation may be serialized // into bytes using a ThriftRW protocol implementation. // @@ -28538,9 +28378,9 @@ type HistoryService_RemoveTask_Result struct { // if err := binaryProtocol.Encode(x, writer); err != nil { // return err // } -func (v *HistoryService_RemoveTask_Result) ToWire() (wire.Value, error) { +func (v *HistoryService_RemoveSignalMutableState_Result) ToWire() (wire.Value, error) { var ( - fields [3]wire.Field + fields [8]wire.Field i int = 0 w wire.Value err error @@ -28562,27 +28402,67 @@ func (v *HistoryService_RemoveTask_Result) ToWire() (wire.Value, error) { fields[i] = wire.Field{ID: 2, Value: w} i++ } - if v.AccessDeniedError != nil { - w, err = v.AccessDeniedError.ToWire() + 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.ShardOwnershipLostError != nil { + w, err = v.ShardOwnershipLostError.ToWire() + if err != nil { + return w, err + } + fields[i] = wire.Field{ID: 4, Value: w} + i++ + } + if v.DomainNotActiveError != nil { + w, err = v.DomainNotActiveError.ToWire() + if err != nil { + return w, err + } + fields[i] = wire.Field{ID: 5, Value: w} + i++ + } + if v.LimitExceededError != nil { + w, err = v.LimitExceededError.ToWire() + if err != nil { + return w, err + } + fields[i] = wire.Field{ID: 6, Value: w} + i++ + } + if v.ServiceBusyError != nil { + w, err = v.ServiceBusyError.ToWire() + if err != nil { + return w, err + } + fields[i] = wire.Field{ID: 7, Value: w} + i++ + } + if v.WorkflowExecutionAlreadyCompletedError != nil { + w, err = v.WorkflowExecutionAlreadyCompletedError.ToWire() + if err != nil { + return w, err + } + fields[i] = wire.Field{ID: 8, Value: w} + i++ + } if i > 1 { - return wire.Value{}, fmt.Errorf("HistoryService_RemoveTask_Result should have at most one field: got %v fields", i) + return wire.Value{}, fmt.Errorf("HistoryService_RemoveSignalMutableState_Result should have at most one field: got %v fields", i) } return wire.NewValueStruct(wire.Struct{Fields: fields[:i]}), nil } -// FromWire deserializes a HistoryService_RemoveTask_Result struct from its Thrift-level +// FromWire deserializes a HistoryService_RemoveSignalMutableState_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 HistoryService_RemoveTask_Result struct +// An error is returned if we were unable to build a HistoryService_RemoveSignalMutableState_Result struct // from the provided intermediate representation. // // x, err := binaryProtocol.Decode(reader, wire.TStruct) @@ -28590,12 +28470,12 @@ func (v *HistoryService_RemoveTask_Result) ToWire() (wire.Value, error) { // return nil, err // } // -// var v HistoryService_RemoveTask_Result +// var v HistoryService_RemoveSignalMutableState_Result // if err := v.FromWire(x); err != nil { // return nil, err // } // return &v, nil -func (v *HistoryService_RemoveTask_Result) FromWire(w wire.Value) error { +func (v *HistoryService_RemoveSignalMutableState_Result) FromWire(w wire.Value) error { var err error for _, field := range w.GetStruct().Fields { @@ -28618,7 +28498,47 @@ func (v *HistoryService_RemoveTask_Result) FromWire(w wire.Value) error { } case 3: if field.Value.Type() == wire.TStruct { - v.AccessDeniedError, err = _AccessDeniedError_Read(field.Value) + v.EntityNotExistError, err = _EntityNotExistsError_Read(field.Value) + if err != nil { + return err + } + + } + case 4: + if field.Value.Type() == wire.TStruct { + v.ShardOwnershipLostError, err = _ShardOwnershipLostError_Read(field.Value) + if err != nil { + return err + } + + } + case 5: + if field.Value.Type() == wire.TStruct { + v.DomainNotActiveError, err = _DomainNotActiveError_Read(field.Value) + if err != nil { + return err + } + + } + case 6: + if field.Value.Type() == wire.TStruct { + v.LimitExceededError, err = _LimitExceededError_Read(field.Value) + if err != nil { + return err + } + + } + case 7: + if field.Value.Type() == wire.TStruct { + v.ServiceBusyError, err = _ServiceBusyError_Read(field.Value) + if err != nil { + return err + } + + } + case 8: + if field.Value.Type() == wire.TStruct { + v.WorkflowExecutionAlreadyCompletedError, err = _WorkflowExecutionAlreadyCompletedError_Read(field.Value) if err != nil { return err } @@ -28634,24 +28554,39 @@ func (v *HistoryService_RemoveTask_Result) FromWire(w wire.Value) error { if v.InternalServiceError != nil { count++ } - if v.AccessDeniedError != nil { + if v.EntityNotExistError != nil { + count++ + } + if v.ShardOwnershipLostError != nil { + count++ + } + if v.DomainNotActiveError != nil { + count++ + } + if v.LimitExceededError != nil { + count++ + } + if v.ServiceBusyError != nil { + count++ + } + if v.WorkflowExecutionAlreadyCompletedError != nil { count++ } if count > 1 { - return fmt.Errorf("HistoryService_RemoveTask_Result should have at most one field: got %v fields", count) + return fmt.Errorf("HistoryService_RemoveSignalMutableState_Result should have at most one field: got %v fields", count) } return nil } -// String returns a readable string representation of a HistoryService_RemoveTask_Result +// String returns a readable string representation of a HistoryService_RemoveSignalMutableState_Result // struct. -func (v *HistoryService_RemoveTask_Result) String() string { +func (v *HistoryService_RemoveSignalMutableState_Result) String() string { if v == nil { return "" } - var fields [3]string + var fields [8]string i := 0 if v.BadRequestError != nil { fields[i] = fmt.Sprintf("BadRequestError: %v", v.BadRequestError) @@ -28661,19 +28596,39 @@ func (v *HistoryService_RemoveTask_Result) String() string { fields[i] = fmt.Sprintf("InternalServiceError: %v", v.InternalServiceError) i++ } - if v.AccessDeniedError != nil { - fields[i] = fmt.Sprintf("AccessDeniedError: %v", v.AccessDeniedError) + if v.EntityNotExistError != nil { + fields[i] = fmt.Sprintf("EntityNotExistError: %v", v.EntityNotExistError) + i++ + } + if v.ShardOwnershipLostError != nil { + fields[i] = fmt.Sprintf("ShardOwnershipLostError: %v", v.ShardOwnershipLostError) + i++ + } + if v.DomainNotActiveError != nil { + fields[i] = fmt.Sprintf("DomainNotActiveError: %v", v.DomainNotActiveError) + i++ + } + if v.LimitExceededError != nil { + fields[i] = fmt.Sprintf("LimitExceededError: %v", v.LimitExceededError) + i++ + } + if v.ServiceBusyError != nil { + fields[i] = fmt.Sprintf("ServiceBusyError: %v", v.ServiceBusyError) + i++ + } + if v.WorkflowExecutionAlreadyCompletedError != nil { + fields[i] = fmt.Sprintf("WorkflowExecutionAlreadyCompletedError: %v", v.WorkflowExecutionAlreadyCompletedError) i++ } - return fmt.Sprintf("HistoryService_RemoveTask_Result{%v}", strings.Join(fields[:i], ", ")) + return fmt.Sprintf("HistoryService_RemoveSignalMutableState_Result{%v}", strings.Join(fields[:i], ", ")) } -// Equals returns true if all the fields of this HistoryService_RemoveTask_Result match the -// provided HistoryService_RemoveTask_Result. +// Equals returns true if all the fields of this HistoryService_RemoveSignalMutableState_Result match the +// provided HistoryService_RemoveSignalMutableState_Result. // // This function performs a deep comparison. -func (v *HistoryService_RemoveTask_Result) Equals(rhs *HistoryService_RemoveTask_Result) bool { +func (v *HistoryService_RemoveSignalMutableState_Result) Equals(rhs *HistoryService_RemoveSignalMutableState_Result) bool { if v == nil { return rhs == nil } else if rhs == nil { @@ -28685,7 +28640,22 @@ func (v *HistoryService_RemoveTask_Result) Equals(rhs *HistoryService_RemoveTask if !((v.InternalServiceError == nil && rhs.InternalServiceError == nil) || (v.InternalServiceError != nil && rhs.InternalServiceError != nil && v.InternalServiceError.Equals(rhs.InternalServiceError))) { return false } - if !((v.AccessDeniedError == nil && rhs.AccessDeniedError == nil) || (v.AccessDeniedError != nil && rhs.AccessDeniedError != nil && v.AccessDeniedError.Equals(rhs.AccessDeniedError))) { + if !((v.EntityNotExistError == nil && rhs.EntityNotExistError == nil) || (v.EntityNotExistError != nil && rhs.EntityNotExistError != nil && v.EntityNotExistError.Equals(rhs.EntityNotExistError))) { + return false + } + if !((v.ShardOwnershipLostError == nil && rhs.ShardOwnershipLostError == nil) || (v.ShardOwnershipLostError != nil && rhs.ShardOwnershipLostError != nil && v.ShardOwnershipLostError.Equals(rhs.ShardOwnershipLostError))) { + return false + } + if !((v.DomainNotActiveError == nil && rhs.DomainNotActiveError == nil) || (v.DomainNotActiveError != nil && rhs.DomainNotActiveError != nil && v.DomainNotActiveError.Equals(rhs.DomainNotActiveError))) { + return false + } + if !((v.LimitExceededError == nil && rhs.LimitExceededError == nil) || (v.LimitExceededError != nil && rhs.LimitExceededError != nil && v.LimitExceededError.Equals(rhs.LimitExceededError))) { + return false + } + if !((v.ServiceBusyError == nil && rhs.ServiceBusyError == nil) || (v.ServiceBusyError != nil && rhs.ServiceBusyError != nil && v.ServiceBusyError.Equals(rhs.ServiceBusyError))) { + return false + } + if !((v.WorkflowExecutionAlreadyCompletedError == nil && rhs.WorkflowExecutionAlreadyCompletedError == nil) || (v.WorkflowExecutionAlreadyCompletedError != nil && rhs.WorkflowExecutionAlreadyCompletedError != nil && v.WorkflowExecutionAlreadyCompletedError.Equals(rhs.WorkflowExecutionAlreadyCompletedError))) { return false } @@ -28693,8 +28663,8 @@ func (v *HistoryService_RemoveTask_Result) Equals(rhs *HistoryService_RemoveTask } // MarshalLogObject implements zapcore.ObjectMarshaler, enabling -// fast logging of HistoryService_RemoveTask_Result. -func (v *HistoryService_RemoveTask_Result) MarshalLogObject(enc zapcore.ObjectEncoder) (err error) { +// fast logging of HistoryService_RemoveSignalMutableState_Result. +func (v *HistoryService_RemoveSignalMutableState_Result) MarshalLogObject(enc zapcore.ObjectEncoder) (err error) { if v == nil { return nil } @@ -28704,15 +28674,30 @@ func (v *HistoryService_RemoveTask_Result) MarshalLogObject(enc zapcore.ObjectEn if v.InternalServiceError != nil { err = multierr.Append(err, enc.AddObject("internalServiceError", v.InternalServiceError)) } - if v.AccessDeniedError != nil { - err = multierr.Append(err, enc.AddObject("accessDeniedError", v.AccessDeniedError)) + if v.EntityNotExistError != nil { + err = multierr.Append(err, enc.AddObject("entityNotExistError", v.EntityNotExistError)) + } + if v.ShardOwnershipLostError != nil { + err = multierr.Append(err, enc.AddObject("shardOwnershipLostError", v.ShardOwnershipLostError)) + } + if v.DomainNotActiveError != nil { + err = multierr.Append(err, enc.AddObject("domainNotActiveError", v.DomainNotActiveError)) + } + if v.LimitExceededError != nil { + err = multierr.Append(err, enc.AddObject("limitExceededError", v.LimitExceededError)) + } + if v.ServiceBusyError != nil { + err = multierr.Append(err, enc.AddObject("serviceBusyError", v.ServiceBusyError)) + } + if v.WorkflowExecutionAlreadyCompletedError != nil { + err = multierr.Append(err, enc.AddObject("workflowExecutionAlreadyCompletedError", v.WorkflowExecutionAlreadyCompletedError)) } return err } // GetBadRequestError returns the value of BadRequestError if it is set or its // zero value if it is unset. -func (v *HistoryService_RemoveTask_Result) GetBadRequestError() (o *shared.BadRequestError) { +func (v *HistoryService_RemoveSignalMutableState_Result) GetBadRequestError() (o *shared.BadRequestError) { if v != nil && v.BadRequestError != nil { return v.BadRequestError } @@ -28721,13 +28706,13 @@ func (v *HistoryService_RemoveTask_Result) GetBadRequestError() (o *shared.BadRe } // IsSetBadRequestError returns true if BadRequestError is not nil. -func (v *HistoryService_RemoveTask_Result) IsSetBadRequestError() bool { +func (v *HistoryService_RemoveSignalMutableState_Result) IsSetBadRequestError() bool { return v != nil && v.BadRequestError != nil } // GetInternalServiceError returns the value of InternalServiceError if it is set or its // zero value if it is unset. -func (v *HistoryService_RemoveTask_Result) GetInternalServiceError() (o *shared.InternalServiceError) { +func (v *HistoryService_RemoveSignalMutableState_Result) GetInternalServiceError() (o *shared.InternalServiceError) { if v != nil && v.InternalServiceError != nil { return v.InternalServiceError } @@ -28736,48 +28721,123 @@ func (v *HistoryService_RemoveTask_Result) GetInternalServiceError() (o *shared. } // IsSetInternalServiceError returns true if InternalServiceError is not nil. -func (v *HistoryService_RemoveTask_Result) IsSetInternalServiceError() bool { +func (v *HistoryService_RemoveSignalMutableState_Result) IsSetInternalServiceError() bool { return v != nil && v.InternalServiceError != nil } -// GetAccessDeniedError returns the value of AccessDeniedError if it is set or its +// GetEntityNotExistError returns the value of EntityNotExistError if it is set or its // zero value if it is unset. -func (v *HistoryService_RemoveTask_Result) GetAccessDeniedError() (o *shared.AccessDeniedError) { - if v != nil && v.AccessDeniedError != nil { - return v.AccessDeniedError +func (v *HistoryService_RemoveSignalMutableState_Result) GetEntityNotExistError() (o *shared.EntityNotExistsError) { + if v != nil && v.EntityNotExistError != nil { + return v.EntityNotExistError } return } -// IsSetAccessDeniedError returns true if AccessDeniedError is not nil. -func (v *HistoryService_RemoveTask_Result) IsSetAccessDeniedError() bool { - return v != nil && v.AccessDeniedError != nil +// IsSetEntityNotExistError returns true if EntityNotExistError is not nil. +func (v *HistoryService_RemoveSignalMutableState_Result) IsSetEntityNotExistError() bool { + return v != nil && v.EntityNotExistError != 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 "RemoveTask" for this struct. -func (v *HistoryService_RemoveTask_Result) MethodName() string { - return "RemoveTask" +// GetShardOwnershipLostError returns the value of ShardOwnershipLostError if it is set or its +// zero value if it is unset. +func (v *HistoryService_RemoveSignalMutableState_Result) GetShardOwnershipLostError() (o *ShardOwnershipLostError) { + if v != nil && v.ShardOwnershipLostError != nil { + return v.ShardOwnershipLostError + } + + return } -// EnvelopeType returns the kind of value inside this struct. -// -// This will always be Reply for this struct. -func (v *HistoryService_RemoveTask_Result) EnvelopeType() wire.EnvelopeType { +// IsSetShardOwnershipLostError returns true if ShardOwnershipLostError is not nil. +func (v *HistoryService_RemoveSignalMutableState_Result) IsSetShardOwnershipLostError() bool { + return v != nil && v.ShardOwnershipLostError != nil +} + +// GetDomainNotActiveError returns the value of DomainNotActiveError if it is set or its +// zero value if it is unset. +func (v *HistoryService_RemoveSignalMutableState_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 *HistoryService_RemoveSignalMutableState_Result) IsSetDomainNotActiveError() bool { + return v != nil && v.DomainNotActiveError != nil +} + +// GetLimitExceededError returns the value of LimitExceededError if it is set or its +// zero value if it is unset. +func (v *HistoryService_RemoveSignalMutableState_Result) GetLimitExceededError() (o *shared.LimitExceededError) { + if v != nil && v.LimitExceededError != nil { + return v.LimitExceededError + } + + return +} + +// IsSetLimitExceededError returns true if LimitExceededError is not nil. +func (v *HistoryService_RemoveSignalMutableState_Result) IsSetLimitExceededError() bool { + return v != nil && v.LimitExceededError != nil +} + +// GetServiceBusyError returns the value of ServiceBusyError if it is set or its +// zero value if it is unset. +func (v *HistoryService_RemoveSignalMutableState_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 *HistoryService_RemoveSignalMutableState_Result) IsSetServiceBusyError() bool { + return v != nil && v.ServiceBusyError != nil +} + +// GetWorkflowExecutionAlreadyCompletedError returns the value of WorkflowExecutionAlreadyCompletedError if it is set or its +// zero value if it is unset. +func (v *HistoryService_RemoveSignalMutableState_Result) GetWorkflowExecutionAlreadyCompletedError() (o *shared.WorkflowExecutionAlreadyCompletedError) { + if v != nil && v.WorkflowExecutionAlreadyCompletedError != nil { + return v.WorkflowExecutionAlreadyCompletedError + } + + return +} + +// IsSetWorkflowExecutionAlreadyCompletedError returns true if WorkflowExecutionAlreadyCompletedError is not nil. +func (v *HistoryService_RemoveSignalMutableState_Result) IsSetWorkflowExecutionAlreadyCompletedError() bool { + return v != nil && v.WorkflowExecutionAlreadyCompletedError != 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 "RemoveSignalMutableState" for this struct. +func (v *HistoryService_RemoveSignalMutableState_Result) MethodName() string { + return "RemoveSignalMutableState" +} + +// EnvelopeType returns the kind of value inside this struct. +// +// This will always be Reply for this struct. +func (v *HistoryService_RemoveSignalMutableState_Result) EnvelopeType() wire.EnvelopeType { return wire.Reply } -// HistoryService_ReplicateEventsV2_Args represents the arguments for the HistoryService.ReplicateEventsV2 function. +// HistoryService_RemoveTask_Args represents the arguments for the HistoryService.RemoveTask function. // -// The arguments for ReplicateEventsV2 are sent and received over the wire as this struct. -type HistoryService_ReplicateEventsV2_Args struct { - ReplicateV2Request *ReplicateEventsV2Request `json:"replicateV2Request,omitempty"` +// The arguments for RemoveTask are sent and received over the wire as this struct. +type HistoryService_RemoveTask_Args struct { + Request *shared.RemoveTaskRequest `json:"request,omitempty"` } -// ToWire translates a HistoryService_ReplicateEventsV2_Args struct into a Thrift-level intermediate +// ToWire translates a HistoryService_RemoveTask_Args struct into a Thrift-level intermediate // representation. This intermediate representation may be serialized // into bytes using a ThriftRW protocol implementation. // @@ -28792,7 +28852,7 @@ type HistoryService_ReplicateEventsV2_Args struct { // if err := binaryProtocol.Encode(x, writer); err != nil { // return err // } -func (v *HistoryService_ReplicateEventsV2_Args) ToWire() (wire.Value, error) { +func (v *HistoryService_RemoveTask_Args) ToWire() (wire.Value, error) { var ( fields [1]wire.Field i int = 0 @@ -28800,8 +28860,8 @@ func (v *HistoryService_ReplicateEventsV2_Args) ToWire() (wire.Value, error) { err error ) - if v.ReplicateV2Request != nil { - w, err = v.ReplicateV2Request.ToWire() + if v.Request != nil { + w, err = v.Request.ToWire() if err != nil { return w, err } @@ -28812,17 +28872,17 @@ func (v *HistoryService_ReplicateEventsV2_Args) ToWire() (wire.Value, error) { return wire.NewValueStruct(wire.Struct{Fields: fields[:i]}), nil } -func _ReplicateEventsV2Request_Read(w wire.Value) (*ReplicateEventsV2Request, error) { - var v ReplicateEventsV2Request +func _RemoveTaskRequest_Read(w wire.Value) (*shared.RemoveTaskRequest, error) { + var v shared.RemoveTaskRequest err := v.FromWire(w) return &v, err } -// FromWire deserializes a HistoryService_ReplicateEventsV2_Args struct from its Thrift-level +// FromWire deserializes a HistoryService_RemoveTask_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 HistoryService_ReplicateEventsV2_Args struct +// An error is returned if we were unable to build a HistoryService_RemoveTask_Args struct // from the provided intermediate representation. // // x, err := binaryProtocol.Decode(reader, wire.TStruct) @@ -28830,19 +28890,19 @@ func _ReplicateEventsV2Request_Read(w wire.Value) (*ReplicateEventsV2Request, er // return nil, err // } // -// var v HistoryService_ReplicateEventsV2_Args +// var v HistoryService_RemoveTask_Args // if err := v.FromWire(x); err != nil { // return nil, err // } // return &v, nil -func (v *HistoryService_ReplicateEventsV2_Args) FromWire(w wire.Value) error { +func (v *HistoryService_RemoveTask_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.ReplicateV2Request, err = _ReplicateEventsV2Request_Read(field.Value) + v.Request, err = _RemoveTaskRequest_Read(field.Value) if err != nil { return err } @@ -28854,34 +28914,34 @@ func (v *HistoryService_ReplicateEventsV2_Args) FromWire(w wire.Value) error { return nil } -// String returns a readable string representation of a HistoryService_ReplicateEventsV2_Args +// String returns a readable string representation of a HistoryService_RemoveTask_Args // struct. -func (v *HistoryService_ReplicateEventsV2_Args) String() string { +func (v *HistoryService_RemoveTask_Args) String() string { if v == nil { return "" } var fields [1]string i := 0 - if v.ReplicateV2Request != nil { - fields[i] = fmt.Sprintf("ReplicateV2Request: %v", v.ReplicateV2Request) + if v.Request != nil { + fields[i] = fmt.Sprintf("Request: %v", v.Request) i++ } - return fmt.Sprintf("HistoryService_ReplicateEventsV2_Args{%v}", strings.Join(fields[:i], ", ")) + return fmt.Sprintf("HistoryService_RemoveTask_Args{%v}", strings.Join(fields[:i], ", ")) } -// Equals returns true if all the fields of this HistoryService_ReplicateEventsV2_Args match the -// provided HistoryService_ReplicateEventsV2_Args. +// Equals returns true if all the fields of this HistoryService_RemoveTask_Args match the +// provided HistoryService_RemoveTask_Args. // // This function performs a deep comparison. -func (v *HistoryService_ReplicateEventsV2_Args) Equals(rhs *HistoryService_ReplicateEventsV2_Args) bool { +func (v *HistoryService_RemoveTask_Args) Equals(rhs *HistoryService_RemoveTask_Args) bool { if v == nil { return rhs == nil } else if rhs == nil { return false } - if !((v.ReplicateV2Request == nil && rhs.ReplicateV2Request == nil) || (v.ReplicateV2Request != nil && rhs.ReplicateV2Request != nil && v.ReplicateV2Request.Equals(rhs.ReplicateV2Request))) { + if !((v.Request == nil && rhs.Request == nil) || (v.Request != nil && rhs.Request != nil && v.Request.Equals(rhs.Request))) { return false } @@ -28889,169 +28949,141 @@ func (v *HistoryService_ReplicateEventsV2_Args) Equals(rhs *HistoryService_Repli } // MarshalLogObject implements zapcore.ObjectMarshaler, enabling -// fast logging of HistoryService_ReplicateEventsV2_Args. -func (v *HistoryService_ReplicateEventsV2_Args) MarshalLogObject(enc zapcore.ObjectEncoder) (err error) { +// fast logging of HistoryService_RemoveTask_Args. +func (v *HistoryService_RemoveTask_Args) MarshalLogObject(enc zapcore.ObjectEncoder) (err error) { if v == nil { return nil } - if v.ReplicateV2Request != nil { - err = multierr.Append(err, enc.AddObject("replicateV2Request", v.ReplicateV2Request)) + if v.Request != nil { + err = multierr.Append(err, enc.AddObject("request", v.Request)) } return err } -// GetReplicateV2Request returns the value of ReplicateV2Request if it is set or its +// GetRequest returns the value of Request if it is set or its // zero value if it is unset. -func (v *HistoryService_ReplicateEventsV2_Args) GetReplicateV2Request() (o *ReplicateEventsV2Request) { - if v != nil && v.ReplicateV2Request != nil { - return v.ReplicateV2Request +func (v *HistoryService_RemoveTask_Args) GetRequest() (o *shared.RemoveTaskRequest) { + if v != nil && v.Request != nil { + return v.Request } return } -// IsSetReplicateV2Request returns true if ReplicateV2Request is not nil. -func (v *HistoryService_ReplicateEventsV2_Args) IsSetReplicateV2Request() bool { - return v != nil && v.ReplicateV2Request != nil +// IsSetRequest returns true if Request is not nil. +func (v *HistoryService_RemoveTask_Args) IsSetRequest() bool { + return v != nil && v.Request != 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 "ReplicateEventsV2" for this struct. -func (v *HistoryService_ReplicateEventsV2_Args) MethodName() string { - return "ReplicateEventsV2" +// This will always be "RemoveTask" for this struct. +func (v *HistoryService_RemoveTask_Args) MethodName() string { + return "RemoveTask" } // EnvelopeType returns the kind of value inside this struct. // // This will always be Call for this struct. -func (v *HistoryService_ReplicateEventsV2_Args) EnvelopeType() wire.EnvelopeType { +func (v *HistoryService_RemoveTask_Args) EnvelopeType() wire.EnvelopeType { return wire.Call } -// HistoryService_ReplicateEventsV2_Helper provides functions that aid in handling the -// parameters and return values of the HistoryService.ReplicateEventsV2 +// HistoryService_RemoveTask_Helper provides functions that aid in handling the +// parameters and return values of the HistoryService.RemoveTask // function. -var HistoryService_ReplicateEventsV2_Helper = struct { - // Args accepts the parameters of ReplicateEventsV2 in-order and returns +var HistoryService_RemoveTask_Helper = struct { + // Args accepts the parameters of RemoveTask in-order and returns // the arguments struct for the function. Args func( - replicateV2Request *ReplicateEventsV2Request, - ) *HistoryService_ReplicateEventsV2_Args + request *shared.RemoveTaskRequest, + ) *HistoryService_RemoveTask_Args // IsException returns true if the given error can be thrown - // by ReplicateEventsV2. + // by RemoveTask. // - // An error can be thrown by ReplicateEventsV2 only if the + // An error can be thrown by RemoveTask 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 ReplicateEventsV2 + // WrapResponse returns the result struct for RemoveTask // given the error returned by it. The provided error may - // be nil if ReplicateEventsV2 did not fail. + // be nil if RemoveTask did not fail. // - // This allows mapping errors returned by ReplicateEventsV2 into a + // This allows mapping errors returned by RemoveTask into a // serializable result struct. WrapResponse returns a // non-nil error if the provided error cannot be thrown by - // ReplicateEventsV2 + // RemoveTask // - // err := ReplicateEventsV2(args) - // result, err := HistoryService_ReplicateEventsV2_Helper.WrapResponse(err) + // err := RemoveTask(args) + // result, err := HistoryService_RemoveTask_Helper.WrapResponse(err) // if err != nil { - // return fmt.Errorf("unexpected error from ReplicateEventsV2: %v", err) + // return fmt.Errorf("unexpected error from RemoveTask: %v", err) // } // serialize(result) - WrapResponse func(error) (*HistoryService_ReplicateEventsV2_Result, error) + WrapResponse func(error) (*HistoryService_RemoveTask_Result, error) - // UnwrapResponse takes the result struct for ReplicateEventsV2 + // UnwrapResponse takes the result struct for RemoveTask // and returns the erorr returned by it (if any). // - // The error is non-nil only if ReplicateEventsV2 threw an + // The error is non-nil only if RemoveTask threw an // exception. // // result := deserialize(bytes) - // err := HistoryService_ReplicateEventsV2_Helper.UnwrapResponse(result) - UnwrapResponse func(*HistoryService_ReplicateEventsV2_Result) error + // err := HistoryService_RemoveTask_Helper.UnwrapResponse(result) + UnwrapResponse func(*HistoryService_RemoveTask_Result) error }{} func init() { - HistoryService_ReplicateEventsV2_Helper.Args = func( - replicateV2Request *ReplicateEventsV2Request, - ) *HistoryService_ReplicateEventsV2_Args { - return &HistoryService_ReplicateEventsV2_Args{ - ReplicateV2Request: replicateV2Request, + HistoryService_RemoveTask_Helper.Args = func( + request *shared.RemoveTaskRequest, + ) *HistoryService_RemoveTask_Args { + return &HistoryService_RemoveTask_Args{ + Request: request, } } - HistoryService_ReplicateEventsV2_Helper.IsException = func(err error) bool { + HistoryService_RemoveTask_Helper.IsException = func(err error) bool { switch err.(type) { case *shared.BadRequestError: return true case *shared.InternalServiceError: return true - case *shared.EntityNotExistsError: - return true - case *ShardOwnershipLostError: - return true - case *shared.LimitExceededError: - return true - case *shared.RetryTaskV2Error: - return true - case *shared.ServiceBusyError: + case *shared.AccessDeniedError: return true default: return false } } - HistoryService_ReplicateEventsV2_Helper.WrapResponse = func(err error) (*HistoryService_ReplicateEventsV2_Result, error) { + HistoryService_RemoveTask_Helper.WrapResponse = func(err error) (*HistoryService_RemoveTask_Result, error) { if err == nil { - return &HistoryService_ReplicateEventsV2_Result{}, nil + return &HistoryService_RemoveTask_Result{}, nil } switch e := err.(type) { case *shared.BadRequestError: if e == nil { - return nil, errors.New("WrapResponse received non-nil error type with nil value for HistoryService_ReplicateEventsV2_Result.BadRequestError") + return nil, errors.New("WrapResponse received non-nil error type with nil value for HistoryService_RemoveTask_Result.BadRequestError") } - return &HistoryService_ReplicateEventsV2_Result{BadRequestError: e}, nil + return &HistoryService_RemoveTask_Result{BadRequestError: e}, nil case *shared.InternalServiceError: if e == nil { - return nil, errors.New("WrapResponse received non-nil error type with nil value for HistoryService_ReplicateEventsV2_Result.InternalServiceError") - } - return &HistoryService_ReplicateEventsV2_Result{InternalServiceError: e}, nil - case *shared.EntityNotExistsError: - if e == nil { - return nil, errors.New("WrapResponse received non-nil error type with nil value for HistoryService_ReplicateEventsV2_Result.EntityNotExistError") - } - return &HistoryService_ReplicateEventsV2_Result{EntityNotExistError: e}, nil - case *ShardOwnershipLostError: - if e == nil { - return nil, errors.New("WrapResponse received non-nil error type with nil value for HistoryService_ReplicateEventsV2_Result.ShardOwnershipLostError") - } - return &HistoryService_ReplicateEventsV2_Result{ShardOwnershipLostError: e}, nil - case *shared.LimitExceededError: - if e == nil { - return nil, errors.New("WrapResponse received non-nil error type with nil value for HistoryService_ReplicateEventsV2_Result.LimitExceededError") - } - return &HistoryService_ReplicateEventsV2_Result{LimitExceededError: e}, nil - case *shared.RetryTaskV2Error: - if e == nil { - return nil, errors.New("WrapResponse received non-nil error type with nil value for HistoryService_ReplicateEventsV2_Result.RetryTaskError") + return nil, errors.New("WrapResponse received non-nil error type with nil value for HistoryService_RemoveTask_Result.InternalServiceError") } - return &HistoryService_ReplicateEventsV2_Result{RetryTaskError: e}, nil - case *shared.ServiceBusyError: + return &HistoryService_RemoveTask_Result{InternalServiceError: e}, nil + case *shared.AccessDeniedError: if e == nil { - return nil, errors.New("WrapResponse received non-nil error type with nil value for HistoryService_ReplicateEventsV2_Result.ServiceBusyError") + return nil, errors.New("WrapResponse received non-nil error type with nil value for HistoryService_RemoveTask_Result.AccessDeniedError") } - return &HistoryService_ReplicateEventsV2_Result{ServiceBusyError: e}, nil + return &HistoryService_RemoveTask_Result{AccessDeniedError: e}, nil } return nil, err } - HistoryService_ReplicateEventsV2_Helper.UnwrapResponse = func(result *HistoryService_ReplicateEventsV2_Result) (err error) { + HistoryService_RemoveTask_Helper.UnwrapResponse = func(result *HistoryService_RemoveTask_Result) (err error) { if result.BadRequestError != nil { err = result.BadRequestError return @@ -29060,24 +29092,8 @@ func init() { err = result.InternalServiceError return } - if result.EntityNotExistError != nil { - err = result.EntityNotExistError - return - } - if result.ShardOwnershipLostError != nil { - err = result.ShardOwnershipLostError - return - } - if result.LimitExceededError != nil { - err = result.LimitExceededError - return - } - if result.RetryTaskError != nil { - err = result.RetryTaskError - return - } - if result.ServiceBusyError != nil { - err = result.ServiceBusyError + if result.AccessDeniedError != nil { + err = result.AccessDeniedError return } return @@ -29085,20 +29101,16 @@ func init() { } -// HistoryService_ReplicateEventsV2_Result represents the result of a HistoryService.ReplicateEventsV2 function call. +// HistoryService_RemoveTask_Result represents the result of a HistoryService.RemoveTask function call. // -// The result of a ReplicateEventsV2 execution is sent and received over the wire as this struct. -type HistoryService_ReplicateEventsV2_Result struct { - BadRequestError *shared.BadRequestError `json:"badRequestError,omitempty"` - InternalServiceError *shared.InternalServiceError `json:"internalServiceError,omitempty"` - EntityNotExistError *shared.EntityNotExistsError `json:"entityNotExistError,omitempty"` - ShardOwnershipLostError *ShardOwnershipLostError `json:"shardOwnershipLostError,omitempty"` - LimitExceededError *shared.LimitExceededError `json:"limitExceededError,omitempty"` - RetryTaskError *shared.RetryTaskV2Error `json:"retryTaskError,omitempty"` - ServiceBusyError *shared.ServiceBusyError `json:"serviceBusyError,omitempty"` +// The result of a RemoveTask execution is sent and received over the wire as this struct. +type HistoryService_RemoveTask_Result struct { + BadRequestError *shared.BadRequestError `json:"badRequestError,omitempty"` + InternalServiceError *shared.InternalServiceError `json:"internalServiceError,omitempty"` + AccessDeniedError *shared.AccessDeniedError `json:"accessDeniedError,omitempty"` } -// ToWire translates a HistoryService_ReplicateEventsV2_Result struct into a Thrift-level intermediate +// ToWire translates a HistoryService_RemoveTask_Result struct into a Thrift-level intermediate // representation. This intermediate representation may be serialized // into bytes using a ThriftRW protocol implementation. // @@ -29113,9 +29125,9 @@ type HistoryService_ReplicateEventsV2_Result struct { // if err := binaryProtocol.Encode(x, writer); err != nil { // return err // } -func (v *HistoryService_ReplicateEventsV2_Result) ToWire() (wire.Value, error) { +func (v *HistoryService_RemoveTask_Result) ToWire() (wire.Value, error) { var ( - fields [7]wire.Field + fields [3]wire.Field i int = 0 w wire.Value err error @@ -29137,65 +29149,27 @@ func (v *HistoryService_ReplicateEventsV2_Result) ToWire() (wire.Value, error) { fields[i] = wire.Field{ID: 2, Value: w} i++ } - if v.EntityNotExistError != nil { - w, err = v.EntityNotExistError.ToWire() + 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 v.ShardOwnershipLostError != nil { - w, err = v.ShardOwnershipLostError.ToWire() - if err != nil { - return w, err - } - fields[i] = wire.Field{ID: 4, Value: w} - i++ - } - if v.LimitExceededError != nil { - w, err = v.LimitExceededError.ToWire() - if err != nil { - return w, err - } - fields[i] = wire.Field{ID: 5, Value: w} - i++ - } - if v.RetryTaskError != nil { - w, err = v.RetryTaskError.ToWire() - if err != nil { - return w, err - } - fields[i] = wire.Field{ID: 6, Value: w} - i++ - } - if v.ServiceBusyError != nil { - w, err = v.ServiceBusyError.ToWire() - if err != nil { - return w, err - } - fields[i] = wire.Field{ID: 7, Value: w} - i++ - } if i > 1 { - return wire.Value{}, fmt.Errorf("HistoryService_ReplicateEventsV2_Result should have at most one field: got %v fields", i) + return wire.Value{}, fmt.Errorf("HistoryService_RemoveTask_Result should have at most one field: got %v fields", i) } return wire.NewValueStruct(wire.Struct{Fields: fields[:i]}), nil } -func _RetryTaskV2Error_Read(w wire.Value) (*shared.RetryTaskV2Error, error) { - var v shared.RetryTaskV2Error - err := v.FromWire(w) - return &v, err -} - -// FromWire deserializes a HistoryService_ReplicateEventsV2_Result struct from its Thrift-level +// FromWire deserializes a HistoryService_RemoveTask_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 HistoryService_ReplicateEventsV2_Result struct +// An error is returned if we were unable to build a HistoryService_RemoveTask_Result struct // from the provided intermediate representation. // // x, err := binaryProtocol.Decode(reader, wire.TStruct) @@ -29203,12 +29177,12 @@ func _RetryTaskV2Error_Read(w wire.Value) (*shared.RetryTaskV2Error, error) { // return nil, err // } // -// var v HistoryService_ReplicateEventsV2_Result +// var v HistoryService_RemoveTask_Result // if err := v.FromWire(x); err != nil { // return nil, err // } // return &v, nil -func (v *HistoryService_ReplicateEventsV2_Result) FromWire(w wire.Value) error { +func (v *HistoryService_RemoveTask_Result) FromWire(w wire.Value) error { var err error for _, field := range w.GetStruct().Fields { @@ -29231,39 +29205,7 @@ func (v *HistoryService_ReplicateEventsV2_Result) FromWire(w wire.Value) error { } 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.ShardOwnershipLostError, err = _ShardOwnershipLostError_Read(field.Value) - if err != nil { - return err - } - - } - case 5: - if field.Value.Type() == wire.TStruct { - v.LimitExceededError, err = _LimitExceededError_Read(field.Value) - if err != nil { - return err - } - - } - case 6: - if field.Value.Type() == wire.TStruct { - v.RetryTaskError, err = _RetryTaskV2Error_Read(field.Value) - if err != nil { - return err - } - - } - case 7: - if field.Value.Type() == wire.TStruct { - v.ServiceBusyError, err = _ServiceBusyError_Read(field.Value) + v.AccessDeniedError, err = _AccessDeniedError_Read(field.Value) if err != nil { return err } @@ -29279,36 +29221,24 @@ func (v *HistoryService_ReplicateEventsV2_Result) FromWire(w wire.Value) error { if v.InternalServiceError != nil { count++ } - if v.EntityNotExistError != nil { - count++ - } - if v.ShardOwnershipLostError != nil { - count++ - } - if v.LimitExceededError != nil { - count++ - } - if v.RetryTaskError != nil { - count++ - } - if v.ServiceBusyError != nil { + if v.AccessDeniedError != nil { count++ } if count > 1 { - return fmt.Errorf("HistoryService_ReplicateEventsV2_Result should have at most one field: got %v fields", count) + return fmt.Errorf("HistoryService_RemoveTask_Result should have at most one field: got %v fields", count) } return nil } -// String returns a readable string representation of a HistoryService_ReplicateEventsV2_Result +// String returns a readable string representation of a HistoryService_RemoveTask_Result // struct. -func (v *HistoryService_ReplicateEventsV2_Result) String() string { +func (v *HistoryService_RemoveTask_Result) String() string { if v == nil { return "" } - var fields [7]string + var fields [3]string i := 0 if v.BadRequestError != nil { fields[i] = fmt.Sprintf("BadRequestError: %v", v.BadRequestError) @@ -29318,35 +29248,19 @@ func (v *HistoryService_ReplicateEventsV2_Result) String() string { fields[i] = fmt.Sprintf("InternalServiceError: %v", v.InternalServiceError) i++ } - if v.EntityNotExistError != nil { - fields[i] = fmt.Sprintf("EntityNotExistError: %v", v.EntityNotExistError) - i++ - } - if v.ShardOwnershipLostError != nil { - fields[i] = fmt.Sprintf("ShardOwnershipLostError: %v", v.ShardOwnershipLostError) - i++ - } - if v.LimitExceededError != nil { - fields[i] = fmt.Sprintf("LimitExceededError: %v", v.LimitExceededError) - i++ - } - if v.RetryTaskError != nil { - fields[i] = fmt.Sprintf("RetryTaskError: %v", v.RetryTaskError) - i++ - } - if v.ServiceBusyError != nil { - fields[i] = fmt.Sprintf("ServiceBusyError: %v", v.ServiceBusyError) + if v.AccessDeniedError != nil { + fields[i] = fmt.Sprintf("AccessDeniedError: %v", v.AccessDeniedError) i++ } - return fmt.Sprintf("HistoryService_ReplicateEventsV2_Result{%v}", strings.Join(fields[:i], ", ")) + return fmt.Sprintf("HistoryService_RemoveTask_Result{%v}", strings.Join(fields[:i], ", ")) } -// Equals returns true if all the fields of this HistoryService_ReplicateEventsV2_Result match the -// provided HistoryService_ReplicateEventsV2_Result. +// Equals returns true if all the fields of this HistoryService_RemoveTask_Result match the +// provided HistoryService_RemoveTask_Result. // // This function performs a deep comparison. -func (v *HistoryService_ReplicateEventsV2_Result) Equals(rhs *HistoryService_ReplicateEventsV2_Result) bool { +func (v *HistoryService_RemoveTask_Result) Equals(rhs *HistoryService_RemoveTask_Result) bool { if v == nil { return rhs == nil } else if rhs == nil { @@ -29358,19 +29272,7 @@ func (v *HistoryService_ReplicateEventsV2_Result) Equals(rhs *HistoryService_Rep if !((v.InternalServiceError == nil && rhs.InternalServiceError == nil) || (v.InternalServiceError != nil && rhs.InternalServiceError != nil && v.InternalServiceError.Equals(rhs.InternalServiceError))) { return false } - if !((v.EntityNotExistError == nil && rhs.EntityNotExistError == nil) || (v.EntityNotExistError != nil && rhs.EntityNotExistError != nil && v.EntityNotExistError.Equals(rhs.EntityNotExistError))) { - return false - } - if !((v.ShardOwnershipLostError == nil && rhs.ShardOwnershipLostError == nil) || (v.ShardOwnershipLostError != nil && rhs.ShardOwnershipLostError != nil && v.ShardOwnershipLostError.Equals(rhs.ShardOwnershipLostError))) { - return false - } - if !((v.LimitExceededError == nil && rhs.LimitExceededError == nil) || (v.LimitExceededError != nil && rhs.LimitExceededError != nil && v.LimitExceededError.Equals(rhs.LimitExceededError))) { - return false - } - if !((v.RetryTaskError == nil && rhs.RetryTaskError == nil) || (v.RetryTaskError != nil && rhs.RetryTaskError != nil && v.RetryTaskError.Equals(rhs.RetryTaskError))) { - return false - } - if !((v.ServiceBusyError == nil && rhs.ServiceBusyError == nil) || (v.ServiceBusyError != nil && rhs.ServiceBusyError != nil && v.ServiceBusyError.Equals(rhs.ServiceBusyError))) { + if !((v.AccessDeniedError == nil && rhs.AccessDeniedError == nil) || (v.AccessDeniedError != nil && rhs.AccessDeniedError != nil && v.AccessDeniedError.Equals(rhs.AccessDeniedError))) { return false } @@ -29378,8 +29280,8 @@ func (v *HistoryService_ReplicateEventsV2_Result) Equals(rhs *HistoryService_Rep } // MarshalLogObject implements zapcore.ObjectMarshaler, enabling -// fast logging of HistoryService_ReplicateEventsV2_Result. -func (v *HistoryService_ReplicateEventsV2_Result) MarshalLogObject(enc zapcore.ObjectEncoder) (err error) { +// fast logging of HistoryService_RemoveTask_Result. +func (v *HistoryService_RemoveTask_Result) MarshalLogObject(enc zapcore.ObjectEncoder) (err error) { if v == nil { return nil } @@ -29389,27 +29291,15 @@ func (v *HistoryService_ReplicateEventsV2_Result) MarshalLogObject(enc zapcore.O if v.InternalServiceError != nil { err = multierr.Append(err, enc.AddObject("internalServiceError", v.InternalServiceError)) } - if v.EntityNotExistError != nil { - err = multierr.Append(err, enc.AddObject("entityNotExistError", v.EntityNotExistError)) - } - if v.ShardOwnershipLostError != nil { - err = multierr.Append(err, enc.AddObject("shardOwnershipLostError", v.ShardOwnershipLostError)) - } - if v.LimitExceededError != nil { - err = multierr.Append(err, enc.AddObject("limitExceededError", v.LimitExceededError)) - } - if v.RetryTaskError != nil { - err = multierr.Append(err, enc.AddObject("retryTaskError", v.RetryTaskError)) - } - 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 } // GetBadRequestError returns the value of BadRequestError if it is set or its // zero value if it is unset. -func (v *HistoryService_ReplicateEventsV2_Result) GetBadRequestError() (o *shared.BadRequestError) { +func (v *HistoryService_RemoveTask_Result) GetBadRequestError() (o *shared.BadRequestError) { if v != nil && v.BadRequestError != nil { return v.BadRequestError } @@ -29418,13 +29308,13 @@ func (v *HistoryService_ReplicateEventsV2_Result) GetBadRequestError() (o *share } // IsSetBadRequestError returns true if BadRequestError is not nil. -func (v *HistoryService_ReplicateEventsV2_Result) IsSetBadRequestError() bool { +func (v *HistoryService_RemoveTask_Result) IsSetBadRequestError() bool { return v != nil && v.BadRequestError != nil } // GetInternalServiceError returns the value of InternalServiceError if it is set or its // zero value if it is unset. -func (v *HistoryService_ReplicateEventsV2_Result) GetInternalServiceError() (o *shared.InternalServiceError) { +func (v *HistoryService_RemoveTask_Result) GetInternalServiceError() (o *shared.InternalServiceError) { if v != nil && v.InternalServiceError != nil { return v.InternalServiceError } @@ -29433,108 +29323,48 @@ func (v *HistoryService_ReplicateEventsV2_Result) GetInternalServiceError() (o * } // IsSetInternalServiceError returns true if InternalServiceError is not nil. -func (v *HistoryService_ReplicateEventsV2_Result) IsSetInternalServiceError() bool { +func (v *HistoryService_RemoveTask_Result) IsSetInternalServiceError() bool { return v != nil && v.InternalServiceError != nil } -// GetEntityNotExistError returns the value of EntityNotExistError if it is set or its +// GetAccessDeniedError returns the value of AccessDeniedError if it is set or its // zero value if it is unset. -func (v *HistoryService_ReplicateEventsV2_Result) GetEntityNotExistError() (o *shared.EntityNotExistsError) { - if v != nil && v.EntityNotExistError != nil { - return v.EntityNotExistError +func (v *HistoryService_RemoveTask_Result) GetAccessDeniedError() (o *shared.AccessDeniedError) { + if v != nil && v.AccessDeniedError != nil { + return v.AccessDeniedError } return } -// IsSetEntityNotExistError returns true if EntityNotExistError is not nil. -func (v *HistoryService_ReplicateEventsV2_Result) IsSetEntityNotExistError() bool { - return v != nil && v.EntityNotExistError != nil +// IsSetAccessDeniedError returns true if AccessDeniedError is not nil. +func (v *HistoryService_RemoveTask_Result) IsSetAccessDeniedError() bool { + return v != nil && v.AccessDeniedError != nil } -// GetShardOwnershipLostError returns the value of ShardOwnershipLostError if it is set or its -// zero value if it is unset. -func (v *HistoryService_ReplicateEventsV2_Result) GetShardOwnershipLostError() (o *ShardOwnershipLostError) { - if v != nil && v.ShardOwnershipLostError != nil { - return v.ShardOwnershipLostError - } +// MethodName returns the name of the Thrift function as specified in +// the IDL, for which this struct represent the result. +// +// This will always be "RemoveTask" for this struct. +func (v *HistoryService_RemoveTask_Result) MethodName() string { + return "RemoveTask" +} - return +// EnvelopeType returns the kind of value inside this struct. +// +// This will always be Reply for this struct. +func (v *HistoryService_RemoveTask_Result) EnvelopeType() wire.EnvelopeType { + return wire.Reply } -// IsSetShardOwnershipLostError returns true if ShardOwnershipLostError is not nil. -func (v *HistoryService_ReplicateEventsV2_Result) IsSetShardOwnershipLostError() bool { - return v != nil && v.ShardOwnershipLostError != nil -} - -// GetLimitExceededError returns the value of LimitExceededError if it is set or its -// zero value if it is unset. -func (v *HistoryService_ReplicateEventsV2_Result) GetLimitExceededError() (o *shared.LimitExceededError) { - if v != nil && v.LimitExceededError != nil { - return v.LimitExceededError - } - - return -} - -// IsSetLimitExceededError returns true if LimitExceededError is not nil. -func (v *HistoryService_ReplicateEventsV2_Result) IsSetLimitExceededError() bool { - return v != nil && v.LimitExceededError != nil -} - -// GetRetryTaskError returns the value of RetryTaskError if it is set or its -// zero value if it is unset. -func (v *HistoryService_ReplicateEventsV2_Result) GetRetryTaskError() (o *shared.RetryTaskV2Error) { - if v != nil && v.RetryTaskError != nil { - return v.RetryTaskError - } - - return -} - -// IsSetRetryTaskError returns true if RetryTaskError is not nil. -func (v *HistoryService_ReplicateEventsV2_Result) IsSetRetryTaskError() bool { - return v != nil && v.RetryTaskError != nil -} - -// GetServiceBusyError returns the value of ServiceBusyError if it is set or its -// zero value if it is unset. -func (v *HistoryService_ReplicateEventsV2_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 *HistoryService_ReplicateEventsV2_Result) IsSetServiceBusyError() bool { - return v != nil && v.ServiceBusyError != 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 "ReplicateEventsV2" for this struct. -func (v *HistoryService_ReplicateEventsV2_Result) MethodName() string { - return "ReplicateEventsV2" -} - -// EnvelopeType returns the kind of value inside this struct. -// -// This will always be Reply for this struct. -func (v *HistoryService_ReplicateEventsV2_Result) EnvelopeType() wire.EnvelopeType { - return wire.Reply -} - -// HistoryService_RequestCancelWorkflowExecution_Args represents the arguments for the HistoryService.RequestCancelWorkflowExecution function. +// HistoryService_ReplicateEventsV2_Args represents the arguments for the HistoryService.ReplicateEventsV2 function. // -// The arguments for RequestCancelWorkflowExecution are sent and received over the wire as this struct. -type HistoryService_RequestCancelWorkflowExecution_Args struct { - CancelRequest *RequestCancelWorkflowExecutionRequest `json:"cancelRequest,omitempty"` +// The arguments for ReplicateEventsV2 are sent and received over the wire as this struct. +type HistoryService_ReplicateEventsV2_Args struct { + ReplicateV2Request *ReplicateEventsV2Request `json:"replicateV2Request,omitempty"` } -// ToWire translates a HistoryService_RequestCancelWorkflowExecution_Args struct into a Thrift-level intermediate +// ToWire translates a HistoryService_ReplicateEventsV2_Args struct into a Thrift-level intermediate // representation. This intermediate representation may be serialized // into bytes using a ThriftRW protocol implementation. // @@ -29549,7 +29379,7 @@ type HistoryService_RequestCancelWorkflowExecution_Args struct { // if err := binaryProtocol.Encode(x, writer); err != nil { // return err // } -func (v *HistoryService_RequestCancelWorkflowExecution_Args) ToWire() (wire.Value, error) { +func (v *HistoryService_ReplicateEventsV2_Args) ToWire() (wire.Value, error) { var ( fields [1]wire.Field i int = 0 @@ -29557,8 +29387,8 @@ func (v *HistoryService_RequestCancelWorkflowExecution_Args) ToWire() (wire.Valu err error ) - if v.CancelRequest != nil { - w, err = v.CancelRequest.ToWire() + if v.ReplicateV2Request != nil { + w, err = v.ReplicateV2Request.ToWire() if err != nil { return w, err } @@ -29569,17 +29399,17 @@ func (v *HistoryService_RequestCancelWorkflowExecution_Args) ToWire() (wire.Valu return wire.NewValueStruct(wire.Struct{Fields: fields[:i]}), nil } -func _RequestCancelWorkflowExecutionRequest_1_Read(w wire.Value) (*RequestCancelWorkflowExecutionRequest, error) { - var v RequestCancelWorkflowExecutionRequest +func _ReplicateEventsV2Request_Read(w wire.Value) (*ReplicateEventsV2Request, error) { + var v ReplicateEventsV2Request err := v.FromWire(w) return &v, err } -// FromWire deserializes a HistoryService_RequestCancelWorkflowExecution_Args struct from its Thrift-level +// FromWire deserializes a HistoryService_ReplicateEventsV2_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 HistoryService_RequestCancelWorkflowExecution_Args struct +// An error is returned if we were unable to build a HistoryService_ReplicateEventsV2_Args struct // from the provided intermediate representation. // // x, err := binaryProtocol.Decode(reader, wire.TStruct) @@ -29587,19 +29417,19 @@ func _RequestCancelWorkflowExecutionRequest_1_Read(w wire.Value) (*RequestCancel // return nil, err // } // -// var v HistoryService_RequestCancelWorkflowExecution_Args +// var v HistoryService_ReplicateEventsV2_Args // if err := v.FromWire(x); err != nil { // return nil, err // } // return &v, nil -func (v *HistoryService_RequestCancelWorkflowExecution_Args) FromWire(w wire.Value) error { +func (v *HistoryService_ReplicateEventsV2_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.CancelRequest, err = _RequestCancelWorkflowExecutionRequest_1_Read(field.Value) + v.ReplicateV2Request, err = _ReplicateEventsV2Request_Read(field.Value) if err != nil { return err } @@ -29611,34 +29441,34 @@ func (v *HistoryService_RequestCancelWorkflowExecution_Args) FromWire(w wire.Val return nil } -// String returns a readable string representation of a HistoryService_RequestCancelWorkflowExecution_Args +// String returns a readable string representation of a HistoryService_ReplicateEventsV2_Args // struct. -func (v *HistoryService_RequestCancelWorkflowExecution_Args) String() string { +func (v *HistoryService_ReplicateEventsV2_Args) String() string { if v == nil { return "" } var fields [1]string i := 0 - if v.CancelRequest != nil { - fields[i] = fmt.Sprintf("CancelRequest: %v", v.CancelRequest) + if v.ReplicateV2Request != nil { + fields[i] = fmt.Sprintf("ReplicateV2Request: %v", v.ReplicateV2Request) i++ } - return fmt.Sprintf("HistoryService_RequestCancelWorkflowExecution_Args{%v}", strings.Join(fields[:i], ", ")) + return fmt.Sprintf("HistoryService_ReplicateEventsV2_Args{%v}", strings.Join(fields[:i], ", ")) } -// Equals returns true if all the fields of this HistoryService_RequestCancelWorkflowExecution_Args match the -// provided HistoryService_RequestCancelWorkflowExecution_Args. +// Equals returns true if all the fields of this HistoryService_ReplicateEventsV2_Args match the +// provided HistoryService_ReplicateEventsV2_Args. // // This function performs a deep comparison. -func (v *HistoryService_RequestCancelWorkflowExecution_Args) Equals(rhs *HistoryService_RequestCancelWorkflowExecution_Args) bool { +func (v *HistoryService_ReplicateEventsV2_Args) Equals(rhs *HistoryService_ReplicateEventsV2_Args) bool { if v == nil { return rhs == nil } else if rhs == nil { return false } - if !((v.CancelRequest == nil && rhs.CancelRequest == nil) || (v.CancelRequest != nil && rhs.CancelRequest != nil && v.CancelRequest.Equals(rhs.CancelRequest))) { + if !((v.ReplicateV2Request == nil && rhs.ReplicateV2Request == nil) || (v.ReplicateV2Request != nil && rhs.ReplicateV2Request != nil && v.ReplicateV2Request.Equals(rhs.ReplicateV2Request))) { return false } @@ -29646,103 +29476,103 @@ func (v *HistoryService_RequestCancelWorkflowExecution_Args) Equals(rhs *History } // MarshalLogObject implements zapcore.ObjectMarshaler, enabling -// fast logging of HistoryService_RequestCancelWorkflowExecution_Args. -func (v *HistoryService_RequestCancelWorkflowExecution_Args) MarshalLogObject(enc zapcore.ObjectEncoder) (err error) { +// fast logging of HistoryService_ReplicateEventsV2_Args. +func (v *HistoryService_ReplicateEventsV2_Args) MarshalLogObject(enc zapcore.ObjectEncoder) (err error) { if v == nil { return nil } - if v.CancelRequest != nil { - err = multierr.Append(err, enc.AddObject("cancelRequest", v.CancelRequest)) + if v.ReplicateV2Request != nil { + err = multierr.Append(err, enc.AddObject("replicateV2Request", v.ReplicateV2Request)) } return err } -// GetCancelRequest returns the value of CancelRequest if it is set or its +// GetReplicateV2Request returns the value of ReplicateV2Request if it is set or its // zero value if it is unset. -func (v *HistoryService_RequestCancelWorkflowExecution_Args) GetCancelRequest() (o *RequestCancelWorkflowExecutionRequest) { - if v != nil && v.CancelRequest != nil { - return v.CancelRequest +func (v *HistoryService_ReplicateEventsV2_Args) GetReplicateV2Request() (o *ReplicateEventsV2Request) { + if v != nil && v.ReplicateV2Request != nil { + return v.ReplicateV2Request } return } -// IsSetCancelRequest returns true if CancelRequest is not nil. -func (v *HistoryService_RequestCancelWorkflowExecution_Args) IsSetCancelRequest() bool { - return v != nil && v.CancelRequest != nil +// IsSetReplicateV2Request returns true if ReplicateV2Request is not nil. +func (v *HistoryService_ReplicateEventsV2_Args) IsSetReplicateV2Request() bool { + return v != nil && v.ReplicateV2Request != 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 "RequestCancelWorkflowExecution" for this struct. -func (v *HistoryService_RequestCancelWorkflowExecution_Args) MethodName() string { - return "RequestCancelWorkflowExecution" +// This will always be "ReplicateEventsV2" for this struct. +func (v *HistoryService_ReplicateEventsV2_Args) MethodName() string { + return "ReplicateEventsV2" } // EnvelopeType returns the kind of value inside this struct. // // This will always be Call for this struct. -func (v *HistoryService_RequestCancelWorkflowExecution_Args) EnvelopeType() wire.EnvelopeType { +func (v *HistoryService_ReplicateEventsV2_Args) EnvelopeType() wire.EnvelopeType { return wire.Call } -// HistoryService_RequestCancelWorkflowExecution_Helper provides functions that aid in handling the -// parameters and return values of the HistoryService.RequestCancelWorkflowExecution +// HistoryService_ReplicateEventsV2_Helper provides functions that aid in handling the +// parameters and return values of the HistoryService.ReplicateEventsV2 // function. -var HistoryService_RequestCancelWorkflowExecution_Helper = struct { - // Args accepts the parameters of RequestCancelWorkflowExecution in-order and returns +var HistoryService_ReplicateEventsV2_Helper = struct { + // Args accepts the parameters of ReplicateEventsV2 in-order and returns // the arguments struct for the function. Args func( - cancelRequest *RequestCancelWorkflowExecutionRequest, - ) *HistoryService_RequestCancelWorkflowExecution_Args + replicateV2Request *ReplicateEventsV2Request, + ) *HistoryService_ReplicateEventsV2_Args // IsException returns true if the given error can be thrown - // by RequestCancelWorkflowExecution. + // by ReplicateEventsV2. // - // An error can be thrown by RequestCancelWorkflowExecution only if the + // An error can be thrown by ReplicateEventsV2 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 RequestCancelWorkflowExecution + // WrapResponse returns the result struct for ReplicateEventsV2 // given the error returned by it. The provided error may - // be nil if RequestCancelWorkflowExecution did not fail. + // be nil if ReplicateEventsV2 did not fail. // - // This allows mapping errors returned by RequestCancelWorkflowExecution into a + // This allows mapping errors returned by ReplicateEventsV2 into a // serializable result struct. WrapResponse returns a // non-nil error if the provided error cannot be thrown by - // RequestCancelWorkflowExecution + // ReplicateEventsV2 // - // err := RequestCancelWorkflowExecution(args) - // result, err := HistoryService_RequestCancelWorkflowExecution_Helper.WrapResponse(err) + // err := ReplicateEventsV2(args) + // result, err := HistoryService_ReplicateEventsV2_Helper.WrapResponse(err) // if err != nil { - // return fmt.Errorf("unexpected error from RequestCancelWorkflowExecution: %v", err) + // return fmt.Errorf("unexpected error from ReplicateEventsV2: %v", err) // } // serialize(result) - WrapResponse func(error) (*HistoryService_RequestCancelWorkflowExecution_Result, error) + WrapResponse func(error) (*HistoryService_ReplicateEventsV2_Result, error) - // UnwrapResponse takes the result struct for RequestCancelWorkflowExecution + // UnwrapResponse takes the result struct for ReplicateEventsV2 // and returns the erorr returned by it (if any). // - // The error is non-nil only if RequestCancelWorkflowExecution threw an + // The error is non-nil only if ReplicateEventsV2 threw an // exception. // // result := deserialize(bytes) - // err := HistoryService_RequestCancelWorkflowExecution_Helper.UnwrapResponse(result) - UnwrapResponse func(*HistoryService_RequestCancelWorkflowExecution_Result) error + // err := HistoryService_ReplicateEventsV2_Helper.UnwrapResponse(result) + UnwrapResponse func(*HistoryService_ReplicateEventsV2_Result) error }{} func init() { - HistoryService_RequestCancelWorkflowExecution_Helper.Args = func( - cancelRequest *RequestCancelWorkflowExecutionRequest, - ) *HistoryService_RequestCancelWorkflowExecution_Args { - return &HistoryService_RequestCancelWorkflowExecution_Args{ - CancelRequest: cancelRequest, + HistoryService_ReplicateEventsV2_Helper.Args = func( + replicateV2Request *ReplicateEventsV2Request, + ) *HistoryService_ReplicateEventsV2_Args { + return &HistoryService_ReplicateEventsV2_Args{ + ReplicateV2Request: replicateV2Request, } } - HistoryService_RequestCancelWorkflowExecution_Helper.IsException = func(err error) bool { + HistoryService_ReplicateEventsV2_Helper.IsException = func(err error) bool { switch err.(type) { case *shared.BadRequestError: return true @@ -29752,77 +29582,63 @@ func init() { return true case *ShardOwnershipLostError: return true - case *shared.CancellationAlreadyRequestedError: - return true - case *shared.DomainNotActiveError: - return true case *shared.LimitExceededError: return true - case *shared.ServiceBusyError: + case *shared.RetryTaskV2Error: return true - case *shared.WorkflowExecutionAlreadyCompletedError: + case *shared.ServiceBusyError: return true default: return false } } - HistoryService_RequestCancelWorkflowExecution_Helper.WrapResponse = func(err error) (*HistoryService_RequestCancelWorkflowExecution_Result, error) { + HistoryService_ReplicateEventsV2_Helper.WrapResponse = func(err error) (*HistoryService_ReplicateEventsV2_Result, error) { if err == nil { - return &HistoryService_RequestCancelWorkflowExecution_Result{}, nil + return &HistoryService_ReplicateEventsV2_Result{}, nil } switch e := err.(type) { case *shared.BadRequestError: if e == nil { - return nil, errors.New("WrapResponse received non-nil error type with nil value for HistoryService_RequestCancelWorkflowExecution_Result.BadRequestError") + return nil, errors.New("WrapResponse received non-nil error type with nil value for HistoryService_ReplicateEventsV2_Result.BadRequestError") } - return &HistoryService_RequestCancelWorkflowExecution_Result{BadRequestError: e}, nil + return &HistoryService_ReplicateEventsV2_Result{BadRequestError: e}, nil case *shared.InternalServiceError: if e == nil { - return nil, errors.New("WrapResponse received non-nil error type with nil value for HistoryService_RequestCancelWorkflowExecution_Result.InternalServiceError") + return nil, errors.New("WrapResponse received non-nil error type with nil value for HistoryService_ReplicateEventsV2_Result.InternalServiceError") } - return &HistoryService_RequestCancelWorkflowExecution_Result{InternalServiceError: e}, nil + return &HistoryService_ReplicateEventsV2_Result{InternalServiceError: e}, nil case *shared.EntityNotExistsError: if e == nil { - return nil, errors.New("WrapResponse received non-nil error type with nil value for HistoryService_RequestCancelWorkflowExecution_Result.EntityNotExistError") + return nil, errors.New("WrapResponse received non-nil error type with nil value for HistoryService_ReplicateEventsV2_Result.EntityNotExistError") } - return &HistoryService_RequestCancelWorkflowExecution_Result{EntityNotExistError: e}, nil + return &HistoryService_ReplicateEventsV2_Result{EntityNotExistError: e}, nil case *ShardOwnershipLostError: if e == nil { - return nil, errors.New("WrapResponse received non-nil error type with nil value for HistoryService_RequestCancelWorkflowExecution_Result.ShardOwnershipLostError") - } - return &HistoryService_RequestCancelWorkflowExecution_Result{ShardOwnershipLostError: e}, nil - case *shared.CancellationAlreadyRequestedError: - if e == nil { - return nil, errors.New("WrapResponse received non-nil error type with nil value for HistoryService_RequestCancelWorkflowExecution_Result.CancellationAlreadyRequestedError") - } - return &HistoryService_RequestCancelWorkflowExecution_Result{CancellationAlreadyRequestedError: e}, nil - case *shared.DomainNotActiveError: - if e == nil { - return nil, errors.New("WrapResponse received non-nil error type with nil value for HistoryService_RequestCancelWorkflowExecution_Result.DomainNotActiveError") + return nil, errors.New("WrapResponse received non-nil error type with nil value for HistoryService_ReplicateEventsV2_Result.ShardOwnershipLostError") } - return &HistoryService_RequestCancelWorkflowExecution_Result{DomainNotActiveError: e}, nil + return &HistoryService_ReplicateEventsV2_Result{ShardOwnershipLostError: e}, nil case *shared.LimitExceededError: if e == nil { - return nil, errors.New("WrapResponse received non-nil error type with nil value for HistoryService_RequestCancelWorkflowExecution_Result.LimitExceededError") + return nil, errors.New("WrapResponse received non-nil error type with nil value for HistoryService_ReplicateEventsV2_Result.LimitExceededError") } - return &HistoryService_RequestCancelWorkflowExecution_Result{LimitExceededError: e}, nil - case *shared.ServiceBusyError: + return &HistoryService_ReplicateEventsV2_Result{LimitExceededError: e}, nil + case *shared.RetryTaskV2Error: if e == nil { - return nil, errors.New("WrapResponse received non-nil error type with nil value for HistoryService_RequestCancelWorkflowExecution_Result.ServiceBusyError") + return nil, errors.New("WrapResponse received non-nil error type with nil value for HistoryService_ReplicateEventsV2_Result.RetryTaskError") } - return &HistoryService_RequestCancelWorkflowExecution_Result{ServiceBusyError: e}, nil - case *shared.WorkflowExecutionAlreadyCompletedError: + return &HistoryService_ReplicateEventsV2_Result{RetryTaskError: e}, nil + case *shared.ServiceBusyError: if e == nil { - return nil, errors.New("WrapResponse received non-nil error type with nil value for HistoryService_RequestCancelWorkflowExecution_Result.WorkflowExecutionAlreadyCompletedError") + return nil, errors.New("WrapResponse received non-nil error type with nil value for HistoryService_ReplicateEventsV2_Result.ServiceBusyError") } - return &HistoryService_RequestCancelWorkflowExecution_Result{WorkflowExecutionAlreadyCompletedError: e}, nil + return &HistoryService_ReplicateEventsV2_Result{ServiceBusyError: e}, nil } return nil, err } - HistoryService_RequestCancelWorkflowExecution_Helper.UnwrapResponse = func(result *HistoryService_RequestCancelWorkflowExecution_Result) (err error) { + HistoryService_ReplicateEventsV2_Helper.UnwrapResponse = func(result *HistoryService_ReplicateEventsV2_Result) (err error) { if result.BadRequestError != nil { err = result.BadRequestError return @@ -29839,47 +29655,37 @@ func init() { err = result.ShardOwnershipLostError return } - if result.CancellationAlreadyRequestedError != nil { - err = result.CancellationAlreadyRequestedError + if result.LimitExceededError != nil { + err = result.LimitExceededError return } - if result.DomainNotActiveError != nil { - err = result.DomainNotActiveError - return - } - if result.LimitExceededError != nil { - err = result.LimitExceededError + if result.RetryTaskError != nil { + err = result.RetryTaskError return } if result.ServiceBusyError != nil { err = result.ServiceBusyError return } - if result.WorkflowExecutionAlreadyCompletedError != nil { - err = result.WorkflowExecutionAlreadyCompletedError - return - } return } } -// HistoryService_RequestCancelWorkflowExecution_Result represents the result of a HistoryService.RequestCancelWorkflowExecution function call. +// HistoryService_ReplicateEventsV2_Result represents the result of a HistoryService.ReplicateEventsV2 function call. // -// The result of a RequestCancelWorkflowExecution execution is sent and received over the wire as this struct. -type HistoryService_RequestCancelWorkflowExecution_Result struct { - BadRequestError *shared.BadRequestError `json:"badRequestError,omitempty"` - InternalServiceError *shared.InternalServiceError `json:"internalServiceError,omitempty"` - EntityNotExistError *shared.EntityNotExistsError `json:"entityNotExistError,omitempty"` - ShardOwnershipLostError *ShardOwnershipLostError `json:"shardOwnershipLostError,omitempty"` - CancellationAlreadyRequestedError *shared.CancellationAlreadyRequestedError `json:"cancellationAlreadyRequestedError,omitempty"` - DomainNotActiveError *shared.DomainNotActiveError `json:"domainNotActiveError,omitempty"` - LimitExceededError *shared.LimitExceededError `json:"limitExceededError,omitempty"` - ServiceBusyError *shared.ServiceBusyError `json:"serviceBusyError,omitempty"` - WorkflowExecutionAlreadyCompletedError *shared.WorkflowExecutionAlreadyCompletedError `json:"workflowExecutionAlreadyCompletedError,omitempty"` +// The result of a ReplicateEventsV2 execution is sent and received over the wire as this struct. +type HistoryService_ReplicateEventsV2_Result struct { + BadRequestError *shared.BadRequestError `json:"badRequestError,omitempty"` + InternalServiceError *shared.InternalServiceError `json:"internalServiceError,omitempty"` + EntityNotExistError *shared.EntityNotExistsError `json:"entityNotExistError,omitempty"` + ShardOwnershipLostError *ShardOwnershipLostError `json:"shardOwnershipLostError,omitempty"` + LimitExceededError *shared.LimitExceededError `json:"limitExceededError,omitempty"` + RetryTaskError *shared.RetryTaskV2Error `json:"retryTaskError,omitempty"` + ServiceBusyError *shared.ServiceBusyError `json:"serviceBusyError,omitempty"` } -// ToWire translates a HistoryService_RequestCancelWorkflowExecution_Result struct into a Thrift-level intermediate +// ToWire translates a HistoryService_ReplicateEventsV2_Result struct into a Thrift-level intermediate // representation. This intermediate representation may be serialized // into bytes using a ThriftRW protocol implementation. // @@ -29894,9 +29700,9 @@ type HistoryService_RequestCancelWorkflowExecution_Result struct { // if err := binaryProtocol.Encode(x, writer); err != nil { // return err // } -func (v *HistoryService_RequestCancelWorkflowExecution_Result) ToWire() (wire.Value, error) { +func (v *HistoryService_ReplicateEventsV2_Result) ToWire() (wire.Value, error) { var ( - fields [9]wire.Field + fields [7]wire.Field i int = 0 w wire.Value err error @@ -29934,65 +29740,49 @@ func (v *HistoryService_RequestCancelWorkflowExecution_Result) ToWire() (wire.Va fields[i] = wire.Field{ID: 4, Value: w} i++ } - if v.CancellationAlreadyRequestedError != nil { - w, err = v.CancellationAlreadyRequestedError.ToWire() + if v.LimitExceededError != nil { + w, err = v.LimitExceededError.ToWire() if err != nil { return w, err } fields[i] = wire.Field{ID: 5, Value: w} i++ } - if v.DomainNotActiveError != nil { - w, err = v.DomainNotActiveError.ToWire() + if v.RetryTaskError != nil { + w, err = v.RetryTaskError.ToWire() if err != nil { return w, err } fields[i] = wire.Field{ID: 6, Value: w} i++ } - if v.LimitExceededError != nil { - w, err = v.LimitExceededError.ToWire() - if err != nil { - return w, err - } - fields[i] = wire.Field{ID: 7, Value: w} - i++ - } if v.ServiceBusyError != nil { w, err = v.ServiceBusyError.ToWire() if err != nil { return w, err } - fields[i] = wire.Field{ID: 8, Value: w} - i++ - } - if v.WorkflowExecutionAlreadyCompletedError != nil { - w, err = v.WorkflowExecutionAlreadyCompletedError.ToWire() - if err != nil { - return w, err - } - fields[i] = wire.Field{ID: 10, Value: w} + fields[i] = wire.Field{ID: 7, Value: w} i++ } if i > 1 { - return wire.Value{}, fmt.Errorf("HistoryService_RequestCancelWorkflowExecution_Result should have at most one field: got %v fields", i) + return wire.Value{}, fmt.Errorf("HistoryService_ReplicateEventsV2_Result should have at most one field: got %v fields", i) } return wire.NewValueStruct(wire.Struct{Fields: fields[:i]}), nil } -func _CancellationAlreadyRequestedError_Read(w wire.Value) (*shared.CancellationAlreadyRequestedError, error) { - var v shared.CancellationAlreadyRequestedError +func _RetryTaskV2Error_Read(w wire.Value) (*shared.RetryTaskV2Error, error) { + var v shared.RetryTaskV2Error err := v.FromWire(w) return &v, err } -// FromWire deserializes a HistoryService_RequestCancelWorkflowExecution_Result struct from its Thrift-level +// FromWire deserializes a HistoryService_ReplicateEventsV2_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 HistoryService_RequestCancelWorkflowExecution_Result struct +// An error is returned if we were unable to build a HistoryService_ReplicateEventsV2_Result struct // from the provided intermediate representation. // // x, err := binaryProtocol.Decode(reader, wire.TStruct) @@ -30000,12 +29790,12 @@ func _CancellationAlreadyRequestedError_Read(w wire.Value) (*shared.Cancellation // return nil, err // } // -// var v HistoryService_RequestCancelWorkflowExecution_Result +// var v HistoryService_ReplicateEventsV2_Result // if err := v.FromWire(x); err != nil { // return nil, err // } // return &v, nil -func (v *HistoryService_RequestCancelWorkflowExecution_Result) FromWire(w wire.Value) error { +func (v *HistoryService_ReplicateEventsV2_Result) FromWire(w wire.Value) error { var err error for _, field := range w.GetStruct().Fields { @@ -30044,7 +29834,7 @@ func (v *HistoryService_RequestCancelWorkflowExecution_Result) FromWire(w wire.V } case 5: if field.Value.Type() == wire.TStruct { - v.CancellationAlreadyRequestedError, err = _CancellationAlreadyRequestedError_Read(field.Value) + v.LimitExceededError, err = _LimitExceededError_Read(field.Value) if err != nil { return err } @@ -30052,35 +29842,19 @@ func (v *HistoryService_RequestCancelWorkflowExecution_Result) FromWire(w wire.V } case 6: if field.Value.Type() == wire.TStruct { - v.DomainNotActiveError, err = _DomainNotActiveError_Read(field.Value) + v.RetryTaskError, err = _RetryTaskV2Error_Read(field.Value) if err != nil { return err } } case 7: - if field.Value.Type() == wire.TStruct { - v.LimitExceededError, err = _LimitExceededError_Read(field.Value) - if err != nil { - return err - } - - } - case 8: if field.Value.Type() == wire.TStruct { v.ServiceBusyError, err = _ServiceBusyError_Read(field.Value) if err != nil { return err } - } - case 10: - if field.Value.Type() == wire.TStruct { - v.WorkflowExecutionAlreadyCompletedError, err = _WorkflowExecutionAlreadyCompletedError_Read(field.Value) - if err != nil { - return err - } - } } } @@ -30098,36 +29872,30 @@ func (v *HistoryService_RequestCancelWorkflowExecution_Result) FromWire(w wire.V if v.ShardOwnershipLostError != nil { count++ } - if v.CancellationAlreadyRequestedError != nil { - count++ - } - if v.DomainNotActiveError != nil { - count++ - } if v.LimitExceededError != nil { count++ } - if v.ServiceBusyError != nil { + if v.RetryTaskError != nil { count++ } - if v.WorkflowExecutionAlreadyCompletedError != nil { + if v.ServiceBusyError != nil { count++ } if count > 1 { - return fmt.Errorf("HistoryService_RequestCancelWorkflowExecution_Result should have at most one field: got %v fields", count) + return fmt.Errorf("HistoryService_ReplicateEventsV2_Result should have at most one field: got %v fields", count) } return nil } -// String returns a readable string representation of a HistoryService_RequestCancelWorkflowExecution_Result +// String returns a readable string representation of a HistoryService_ReplicateEventsV2_Result // struct. -func (v *HistoryService_RequestCancelWorkflowExecution_Result) String() string { +func (v *HistoryService_ReplicateEventsV2_Result) String() string { if v == nil { return "" } - var fields [9]string + var fields [7]string i := 0 if v.BadRequestError != nil { fields[i] = fmt.Sprintf("BadRequestError: %v", v.BadRequestError) @@ -30145,35 +29913,27 @@ func (v *HistoryService_RequestCancelWorkflowExecution_Result) String() string { fields[i] = fmt.Sprintf("ShardOwnershipLostError: %v", v.ShardOwnershipLostError) i++ } - if v.CancellationAlreadyRequestedError != nil { - fields[i] = fmt.Sprintf("CancellationAlreadyRequestedError: %v", v.CancellationAlreadyRequestedError) - i++ - } - if v.DomainNotActiveError != nil { - fields[i] = fmt.Sprintf("DomainNotActiveError: %v", v.DomainNotActiveError) - i++ - } if v.LimitExceededError != nil { fields[i] = fmt.Sprintf("LimitExceededError: %v", v.LimitExceededError) i++ } - if v.ServiceBusyError != nil { - fields[i] = fmt.Sprintf("ServiceBusyError: %v", v.ServiceBusyError) + if v.RetryTaskError != nil { + fields[i] = fmt.Sprintf("RetryTaskError: %v", v.RetryTaskError) i++ } - if v.WorkflowExecutionAlreadyCompletedError != nil { - fields[i] = fmt.Sprintf("WorkflowExecutionAlreadyCompletedError: %v", v.WorkflowExecutionAlreadyCompletedError) + if v.ServiceBusyError != nil { + fields[i] = fmt.Sprintf("ServiceBusyError: %v", v.ServiceBusyError) i++ } - return fmt.Sprintf("HistoryService_RequestCancelWorkflowExecution_Result{%v}", strings.Join(fields[:i], ", ")) + return fmt.Sprintf("HistoryService_ReplicateEventsV2_Result{%v}", strings.Join(fields[:i], ", ")) } -// Equals returns true if all the fields of this HistoryService_RequestCancelWorkflowExecution_Result match the -// provided HistoryService_RequestCancelWorkflowExecution_Result. +// Equals returns true if all the fields of this HistoryService_ReplicateEventsV2_Result match the +// provided HistoryService_ReplicateEventsV2_Result. // // This function performs a deep comparison. -func (v *HistoryService_RequestCancelWorkflowExecution_Result) Equals(rhs *HistoryService_RequestCancelWorkflowExecution_Result) bool { +func (v *HistoryService_ReplicateEventsV2_Result) Equals(rhs *HistoryService_ReplicateEventsV2_Result) bool { if v == nil { return rhs == nil } else if rhs == nil { @@ -30191,19 +29951,13 @@ func (v *HistoryService_RequestCancelWorkflowExecution_Result) Equals(rhs *Histo if !((v.ShardOwnershipLostError == nil && rhs.ShardOwnershipLostError == nil) || (v.ShardOwnershipLostError != nil && rhs.ShardOwnershipLostError != nil && v.ShardOwnershipLostError.Equals(rhs.ShardOwnershipLostError))) { return false } - if !((v.CancellationAlreadyRequestedError == nil && rhs.CancellationAlreadyRequestedError == nil) || (v.CancellationAlreadyRequestedError != nil && rhs.CancellationAlreadyRequestedError != nil && v.CancellationAlreadyRequestedError.Equals(rhs.CancellationAlreadyRequestedError))) { - return false - } - if !((v.DomainNotActiveError == nil && rhs.DomainNotActiveError == nil) || (v.DomainNotActiveError != nil && rhs.DomainNotActiveError != nil && v.DomainNotActiveError.Equals(rhs.DomainNotActiveError))) { - return false - } if !((v.LimitExceededError == nil && rhs.LimitExceededError == nil) || (v.LimitExceededError != nil && rhs.LimitExceededError != nil && v.LimitExceededError.Equals(rhs.LimitExceededError))) { return false } - if !((v.ServiceBusyError == nil && rhs.ServiceBusyError == nil) || (v.ServiceBusyError != nil && rhs.ServiceBusyError != nil && v.ServiceBusyError.Equals(rhs.ServiceBusyError))) { + if !((v.RetryTaskError == nil && rhs.RetryTaskError == nil) || (v.RetryTaskError != nil && rhs.RetryTaskError != nil && v.RetryTaskError.Equals(rhs.RetryTaskError))) { return false } - if !((v.WorkflowExecutionAlreadyCompletedError == nil && rhs.WorkflowExecutionAlreadyCompletedError == nil) || (v.WorkflowExecutionAlreadyCompletedError != nil && rhs.WorkflowExecutionAlreadyCompletedError != nil && v.WorkflowExecutionAlreadyCompletedError.Equals(rhs.WorkflowExecutionAlreadyCompletedError))) { + if !((v.ServiceBusyError == nil && rhs.ServiceBusyError == nil) || (v.ServiceBusyError != nil && rhs.ServiceBusyError != nil && v.ServiceBusyError.Equals(rhs.ServiceBusyError))) { return false } @@ -30211,8 +29965,8 @@ func (v *HistoryService_RequestCancelWorkflowExecution_Result) Equals(rhs *Histo } // MarshalLogObject implements zapcore.ObjectMarshaler, enabling -// fast logging of HistoryService_RequestCancelWorkflowExecution_Result. -func (v *HistoryService_RequestCancelWorkflowExecution_Result) MarshalLogObject(enc zapcore.ObjectEncoder) (err error) { +// fast logging of HistoryService_ReplicateEventsV2_Result. +func (v *HistoryService_ReplicateEventsV2_Result) MarshalLogObject(enc zapcore.ObjectEncoder) (err error) { if v == nil { return nil } @@ -30228,27 +29982,21 @@ func (v *HistoryService_RequestCancelWorkflowExecution_Result) MarshalLogObject( if v.ShardOwnershipLostError != nil { err = multierr.Append(err, enc.AddObject("shardOwnershipLostError", v.ShardOwnershipLostError)) } - if v.CancellationAlreadyRequestedError != nil { - err = multierr.Append(err, enc.AddObject("cancellationAlreadyRequestedError", v.CancellationAlreadyRequestedError)) - } - if v.DomainNotActiveError != nil { - err = multierr.Append(err, enc.AddObject("domainNotActiveError", v.DomainNotActiveError)) - } if v.LimitExceededError != nil { err = multierr.Append(err, enc.AddObject("limitExceededError", v.LimitExceededError)) } + if v.RetryTaskError != nil { + err = multierr.Append(err, enc.AddObject("retryTaskError", v.RetryTaskError)) + } if v.ServiceBusyError != nil { err = multierr.Append(err, enc.AddObject("serviceBusyError", v.ServiceBusyError)) } - if v.WorkflowExecutionAlreadyCompletedError != nil { - err = multierr.Append(err, enc.AddObject("workflowExecutionAlreadyCompletedError", v.WorkflowExecutionAlreadyCompletedError)) - } return err } // GetBadRequestError returns the value of BadRequestError if it is set or its // zero value if it is unset. -func (v *HistoryService_RequestCancelWorkflowExecution_Result) GetBadRequestError() (o *shared.BadRequestError) { +func (v *HistoryService_ReplicateEventsV2_Result) GetBadRequestError() (o *shared.BadRequestError) { if v != nil && v.BadRequestError != nil { return v.BadRequestError } @@ -30257,13 +30005,13 @@ func (v *HistoryService_RequestCancelWorkflowExecution_Result) GetBadRequestErro } // IsSetBadRequestError returns true if BadRequestError is not nil. -func (v *HistoryService_RequestCancelWorkflowExecution_Result) IsSetBadRequestError() bool { +func (v *HistoryService_ReplicateEventsV2_Result) IsSetBadRequestError() bool { return v != nil && v.BadRequestError != nil } // GetInternalServiceError returns the value of InternalServiceError if it is set or its // zero value if it is unset. -func (v *HistoryService_RequestCancelWorkflowExecution_Result) GetInternalServiceError() (o *shared.InternalServiceError) { +func (v *HistoryService_ReplicateEventsV2_Result) GetInternalServiceError() (o *shared.InternalServiceError) { if v != nil && v.InternalServiceError != nil { return v.InternalServiceError } @@ -30272,13 +30020,13 @@ func (v *HistoryService_RequestCancelWorkflowExecution_Result) GetInternalServic } // IsSetInternalServiceError returns true if InternalServiceError is not nil. -func (v *HistoryService_RequestCancelWorkflowExecution_Result) IsSetInternalServiceError() bool { +func (v *HistoryService_ReplicateEventsV2_Result) IsSetInternalServiceError() bool { return v != nil && v.InternalServiceError != nil } // GetEntityNotExistError returns the value of EntityNotExistError if it is set or its // zero value if it is unset. -func (v *HistoryService_RequestCancelWorkflowExecution_Result) GetEntityNotExistError() (o *shared.EntityNotExistsError) { +func (v *HistoryService_ReplicateEventsV2_Result) GetEntityNotExistError() (o *shared.EntityNotExistsError) { if v != nil && v.EntityNotExistError != nil { return v.EntityNotExistError } @@ -30287,13 +30035,13 @@ func (v *HistoryService_RequestCancelWorkflowExecution_Result) GetEntityNotExist } // IsSetEntityNotExistError returns true if EntityNotExistError is not nil. -func (v *HistoryService_RequestCancelWorkflowExecution_Result) IsSetEntityNotExistError() bool { +func (v *HistoryService_ReplicateEventsV2_Result) IsSetEntityNotExistError() bool { return v != nil && v.EntityNotExistError != nil } // GetShardOwnershipLostError returns the value of ShardOwnershipLostError if it is set or its // zero value if it is unset. -func (v *HistoryService_RequestCancelWorkflowExecution_Result) GetShardOwnershipLostError() (o *ShardOwnershipLostError) { +func (v *HistoryService_ReplicateEventsV2_Result) GetShardOwnershipLostError() (o *ShardOwnershipLostError) { if v != nil && v.ShardOwnershipLostError != nil { return v.ShardOwnershipLostError } @@ -30302,43 +30050,13 @@ func (v *HistoryService_RequestCancelWorkflowExecution_Result) GetShardOwnership } // IsSetShardOwnershipLostError returns true if ShardOwnershipLostError is not nil. -func (v *HistoryService_RequestCancelWorkflowExecution_Result) IsSetShardOwnershipLostError() bool { +func (v *HistoryService_ReplicateEventsV2_Result) IsSetShardOwnershipLostError() bool { return v != nil && v.ShardOwnershipLostError != nil } -// GetCancellationAlreadyRequestedError returns the value of CancellationAlreadyRequestedError if it is set or its -// zero value if it is unset. -func (v *HistoryService_RequestCancelWorkflowExecution_Result) GetCancellationAlreadyRequestedError() (o *shared.CancellationAlreadyRequestedError) { - if v != nil && v.CancellationAlreadyRequestedError != nil { - return v.CancellationAlreadyRequestedError - } - - return -} - -// IsSetCancellationAlreadyRequestedError returns true if CancellationAlreadyRequestedError is not nil. -func (v *HistoryService_RequestCancelWorkflowExecution_Result) IsSetCancellationAlreadyRequestedError() bool { - return v != nil && v.CancellationAlreadyRequestedError != nil -} - -// GetDomainNotActiveError returns the value of DomainNotActiveError if it is set or its -// zero value if it is unset. -func (v *HistoryService_RequestCancelWorkflowExecution_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 *HistoryService_RequestCancelWorkflowExecution_Result) IsSetDomainNotActiveError() bool { - return v != nil && v.DomainNotActiveError != nil -} - // GetLimitExceededError returns the value of LimitExceededError if it is set or its // zero value if it is unset. -func (v *HistoryService_RequestCancelWorkflowExecution_Result) GetLimitExceededError() (o *shared.LimitExceededError) { +func (v *HistoryService_ReplicateEventsV2_Result) GetLimitExceededError() (o *shared.LimitExceededError) { if v != nil && v.LimitExceededError != nil { return v.LimitExceededError } @@ -30347,63 +30065,63 @@ func (v *HistoryService_RequestCancelWorkflowExecution_Result) GetLimitExceededE } // IsSetLimitExceededError returns true if LimitExceededError is not nil. -func (v *HistoryService_RequestCancelWorkflowExecution_Result) IsSetLimitExceededError() bool { +func (v *HistoryService_ReplicateEventsV2_Result) IsSetLimitExceededError() bool { return v != nil && v.LimitExceededError != nil } -// GetServiceBusyError returns the value of ServiceBusyError if it is set or its +// GetRetryTaskError returns the value of RetryTaskError if it is set or its // zero value if it is unset. -func (v *HistoryService_RequestCancelWorkflowExecution_Result) GetServiceBusyError() (o *shared.ServiceBusyError) { - if v != nil && v.ServiceBusyError != nil { - return v.ServiceBusyError +func (v *HistoryService_ReplicateEventsV2_Result) GetRetryTaskError() (o *shared.RetryTaskV2Error) { + if v != nil && v.RetryTaskError != nil { + return v.RetryTaskError } return } -// IsSetServiceBusyError returns true if ServiceBusyError is not nil. -func (v *HistoryService_RequestCancelWorkflowExecution_Result) IsSetServiceBusyError() bool { - return v != nil && v.ServiceBusyError != nil +// IsSetRetryTaskError returns true if RetryTaskError is not nil. +func (v *HistoryService_ReplicateEventsV2_Result) IsSetRetryTaskError() bool { + return v != nil && v.RetryTaskError != nil } -// GetWorkflowExecutionAlreadyCompletedError returns the value of WorkflowExecutionAlreadyCompletedError if it is set or its +// GetServiceBusyError returns the value of ServiceBusyError if it is set or its // zero value if it is unset. -func (v *HistoryService_RequestCancelWorkflowExecution_Result) GetWorkflowExecutionAlreadyCompletedError() (o *shared.WorkflowExecutionAlreadyCompletedError) { - if v != nil && v.WorkflowExecutionAlreadyCompletedError != nil { - return v.WorkflowExecutionAlreadyCompletedError +func (v *HistoryService_ReplicateEventsV2_Result) GetServiceBusyError() (o *shared.ServiceBusyError) { + if v != nil && v.ServiceBusyError != nil { + return v.ServiceBusyError } return } -// IsSetWorkflowExecutionAlreadyCompletedError returns true if WorkflowExecutionAlreadyCompletedError is not nil. -func (v *HistoryService_RequestCancelWorkflowExecution_Result) IsSetWorkflowExecutionAlreadyCompletedError() bool { - return v != nil && v.WorkflowExecutionAlreadyCompletedError != nil +// IsSetServiceBusyError returns true if ServiceBusyError is not nil. +func (v *HistoryService_ReplicateEventsV2_Result) IsSetServiceBusyError() bool { + return v != nil && v.ServiceBusyError != 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 "RequestCancelWorkflowExecution" for this struct. -func (v *HistoryService_RequestCancelWorkflowExecution_Result) MethodName() string { - return "RequestCancelWorkflowExecution" +// This will always be "ReplicateEventsV2" for this struct. +func (v *HistoryService_ReplicateEventsV2_Result) MethodName() string { + return "ReplicateEventsV2" } // EnvelopeType returns the kind of value inside this struct. // // This will always be Reply for this struct. -func (v *HistoryService_RequestCancelWorkflowExecution_Result) EnvelopeType() wire.EnvelopeType { +func (v *HistoryService_ReplicateEventsV2_Result) EnvelopeType() wire.EnvelopeType { return wire.Reply } -// HistoryService_ResetQueue_Args represents the arguments for the HistoryService.ResetQueue function. +// HistoryService_RequestCancelWorkflowExecution_Args represents the arguments for the HistoryService.RequestCancelWorkflowExecution function. // -// The arguments for ResetQueue are sent and received over the wire as this struct. -type HistoryService_ResetQueue_Args struct { - Request *shared.ResetQueueRequest `json:"request,omitempty"` +// The arguments for RequestCancelWorkflowExecution are sent and received over the wire as this struct. +type HistoryService_RequestCancelWorkflowExecution_Args struct { + CancelRequest *RequestCancelWorkflowExecutionRequest `json:"cancelRequest,omitempty"` } -// ToWire translates a HistoryService_ResetQueue_Args struct into a Thrift-level intermediate +// ToWire translates a HistoryService_RequestCancelWorkflowExecution_Args struct into a Thrift-level intermediate // representation. This intermediate representation may be serialized // into bytes using a ThriftRW protocol implementation. // @@ -30418,7 +30136,7 @@ type HistoryService_ResetQueue_Args struct { // if err := binaryProtocol.Encode(x, writer); err != nil { // return err // } -func (v *HistoryService_ResetQueue_Args) ToWire() (wire.Value, error) { +func (v *HistoryService_RequestCancelWorkflowExecution_Args) ToWire() (wire.Value, error) { var ( fields [1]wire.Field i int = 0 @@ -30426,8 +30144,8 @@ func (v *HistoryService_ResetQueue_Args) ToWire() (wire.Value, error) { err error ) - if v.Request != nil { - w, err = v.Request.ToWire() + if v.CancelRequest != nil { + w, err = v.CancelRequest.ToWire() if err != nil { return w, err } @@ -30438,17 +30156,17 @@ func (v *HistoryService_ResetQueue_Args) ToWire() (wire.Value, error) { return wire.NewValueStruct(wire.Struct{Fields: fields[:i]}), nil } -func _ResetQueueRequest_Read(w wire.Value) (*shared.ResetQueueRequest, error) { - var v shared.ResetQueueRequest +func _RequestCancelWorkflowExecutionRequest_1_Read(w wire.Value) (*RequestCancelWorkflowExecutionRequest, error) { + var v RequestCancelWorkflowExecutionRequest err := v.FromWire(w) return &v, err } -// FromWire deserializes a HistoryService_ResetQueue_Args struct from its Thrift-level +// FromWire deserializes a HistoryService_RequestCancelWorkflowExecution_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 HistoryService_ResetQueue_Args struct +// An error is returned if we were unable to build a HistoryService_RequestCancelWorkflowExecution_Args struct // from the provided intermediate representation. // // x, err := binaryProtocol.Decode(reader, wire.TStruct) @@ -30456,19 +30174,19 @@ func _ResetQueueRequest_Read(w wire.Value) (*shared.ResetQueueRequest, error) { // return nil, err // } // -// var v HistoryService_ResetQueue_Args +// var v HistoryService_RequestCancelWorkflowExecution_Args // if err := v.FromWire(x); err != nil { // return nil, err // } // return &v, nil -func (v *HistoryService_ResetQueue_Args) FromWire(w wire.Value) error { +func (v *HistoryService_RequestCancelWorkflowExecution_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.Request, err = _ResetQueueRequest_Read(field.Value) + v.CancelRequest, err = _RequestCancelWorkflowExecutionRequest_1_Read(field.Value) if err != nil { return err } @@ -30480,34 +30198,34 @@ func (v *HistoryService_ResetQueue_Args) FromWire(w wire.Value) error { return nil } -// String returns a readable string representation of a HistoryService_ResetQueue_Args +// String returns a readable string representation of a HistoryService_RequestCancelWorkflowExecution_Args // struct. -func (v *HistoryService_ResetQueue_Args) String() string { +func (v *HistoryService_RequestCancelWorkflowExecution_Args) String() string { if v == nil { return "" } var fields [1]string i := 0 - if v.Request != nil { - fields[i] = fmt.Sprintf("Request: %v", v.Request) + if v.CancelRequest != nil { + fields[i] = fmt.Sprintf("CancelRequest: %v", v.CancelRequest) i++ } - return fmt.Sprintf("HistoryService_ResetQueue_Args{%v}", strings.Join(fields[:i], ", ")) + return fmt.Sprintf("HistoryService_RequestCancelWorkflowExecution_Args{%v}", strings.Join(fields[:i], ", ")) } -// Equals returns true if all the fields of this HistoryService_ResetQueue_Args match the -// provided HistoryService_ResetQueue_Args. +// Equals returns true if all the fields of this HistoryService_RequestCancelWorkflowExecution_Args match the +// provided HistoryService_RequestCancelWorkflowExecution_Args. // // This function performs a deep comparison. -func (v *HistoryService_ResetQueue_Args) Equals(rhs *HistoryService_ResetQueue_Args) bool { +func (v *HistoryService_RequestCancelWorkflowExecution_Args) Equals(rhs *HistoryService_RequestCancelWorkflowExecution_Args) bool { if v == nil { return rhs == nil } else if rhs == nil { return false } - if !((v.Request == nil && rhs.Request == nil) || (v.Request != nil && rhs.Request != nil && v.Request.Equals(rhs.Request))) { + if !((v.CancelRequest == nil && rhs.CancelRequest == nil) || (v.CancelRequest != nil && rhs.CancelRequest != nil && v.CancelRequest.Equals(rhs.CancelRequest))) { return false } @@ -30515,141 +30233,183 @@ func (v *HistoryService_ResetQueue_Args) Equals(rhs *HistoryService_ResetQueue_A } // MarshalLogObject implements zapcore.ObjectMarshaler, enabling -// fast logging of HistoryService_ResetQueue_Args. -func (v *HistoryService_ResetQueue_Args) MarshalLogObject(enc zapcore.ObjectEncoder) (err error) { +// fast logging of HistoryService_RequestCancelWorkflowExecution_Args. +func (v *HistoryService_RequestCancelWorkflowExecution_Args) MarshalLogObject(enc zapcore.ObjectEncoder) (err error) { if v == nil { return nil } - if v.Request != nil { - err = multierr.Append(err, enc.AddObject("request", v.Request)) + if v.CancelRequest != nil { + err = multierr.Append(err, enc.AddObject("cancelRequest", v.CancelRequest)) } return err } -// GetRequest returns the value of Request if it is set or its +// GetCancelRequest returns the value of CancelRequest if it is set or its // zero value if it is unset. -func (v *HistoryService_ResetQueue_Args) GetRequest() (o *shared.ResetQueueRequest) { - if v != nil && v.Request != nil { - return v.Request +func (v *HistoryService_RequestCancelWorkflowExecution_Args) GetCancelRequest() (o *RequestCancelWorkflowExecutionRequest) { + if v != nil && v.CancelRequest != nil { + return v.CancelRequest } return } -// IsSetRequest returns true if Request is not nil. -func (v *HistoryService_ResetQueue_Args) IsSetRequest() bool { - return v != nil && v.Request != nil +// IsSetCancelRequest returns true if CancelRequest is not nil. +func (v *HistoryService_RequestCancelWorkflowExecution_Args) IsSetCancelRequest() bool { + return v != nil && v.CancelRequest != 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 "ResetQueue" for this struct. -func (v *HistoryService_ResetQueue_Args) MethodName() string { - return "ResetQueue" +// This will always be "RequestCancelWorkflowExecution" for this struct. +func (v *HistoryService_RequestCancelWorkflowExecution_Args) MethodName() string { + return "RequestCancelWorkflowExecution" } // EnvelopeType returns the kind of value inside this struct. // // This will always be Call for this struct. -func (v *HistoryService_ResetQueue_Args) EnvelopeType() wire.EnvelopeType { +func (v *HistoryService_RequestCancelWorkflowExecution_Args) EnvelopeType() wire.EnvelopeType { return wire.Call } -// HistoryService_ResetQueue_Helper provides functions that aid in handling the -// parameters and return values of the HistoryService.ResetQueue +// HistoryService_RequestCancelWorkflowExecution_Helper provides functions that aid in handling the +// parameters and return values of the HistoryService.RequestCancelWorkflowExecution // function. -var HistoryService_ResetQueue_Helper = struct { - // Args accepts the parameters of ResetQueue in-order and returns +var HistoryService_RequestCancelWorkflowExecution_Helper = struct { + // Args accepts the parameters of RequestCancelWorkflowExecution in-order and returns // the arguments struct for the function. Args func( - request *shared.ResetQueueRequest, - ) *HistoryService_ResetQueue_Args + cancelRequest *RequestCancelWorkflowExecutionRequest, + ) *HistoryService_RequestCancelWorkflowExecution_Args // IsException returns true if the given error can be thrown - // by ResetQueue. + // by RequestCancelWorkflowExecution. // - // An error can be thrown by ResetQueue only if the + // An error can be thrown by RequestCancelWorkflowExecution 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 ResetQueue + // WrapResponse returns the result struct for RequestCancelWorkflowExecution // given the error returned by it. The provided error may - // be nil if ResetQueue did not fail. + // be nil if RequestCancelWorkflowExecution did not fail. // - // This allows mapping errors returned by ResetQueue into a + // This allows mapping errors returned by RequestCancelWorkflowExecution into a // serializable result struct. WrapResponse returns a // non-nil error if the provided error cannot be thrown by - // ResetQueue + // RequestCancelWorkflowExecution // - // err := ResetQueue(args) - // result, err := HistoryService_ResetQueue_Helper.WrapResponse(err) + // err := RequestCancelWorkflowExecution(args) + // result, err := HistoryService_RequestCancelWorkflowExecution_Helper.WrapResponse(err) // if err != nil { - // return fmt.Errorf("unexpected error from ResetQueue: %v", err) + // return fmt.Errorf("unexpected error from RequestCancelWorkflowExecution: %v", err) // } // serialize(result) - WrapResponse func(error) (*HistoryService_ResetQueue_Result, error) + WrapResponse func(error) (*HistoryService_RequestCancelWorkflowExecution_Result, error) - // UnwrapResponse takes the result struct for ResetQueue + // UnwrapResponse takes the result struct for RequestCancelWorkflowExecution // and returns the erorr returned by it (if any). // - // The error is non-nil only if ResetQueue threw an + // The error is non-nil only if RequestCancelWorkflowExecution threw an // exception. // // result := deserialize(bytes) - // err := HistoryService_ResetQueue_Helper.UnwrapResponse(result) - UnwrapResponse func(*HistoryService_ResetQueue_Result) error + // err := HistoryService_RequestCancelWorkflowExecution_Helper.UnwrapResponse(result) + UnwrapResponse func(*HistoryService_RequestCancelWorkflowExecution_Result) error }{} func init() { - HistoryService_ResetQueue_Helper.Args = func( - request *shared.ResetQueueRequest, - ) *HistoryService_ResetQueue_Args { - return &HistoryService_ResetQueue_Args{ - Request: request, + HistoryService_RequestCancelWorkflowExecution_Helper.Args = func( + cancelRequest *RequestCancelWorkflowExecutionRequest, + ) *HistoryService_RequestCancelWorkflowExecution_Args { + return &HistoryService_RequestCancelWorkflowExecution_Args{ + CancelRequest: cancelRequest, } } - HistoryService_ResetQueue_Helper.IsException = func(err error) bool { + HistoryService_RequestCancelWorkflowExecution_Helper.IsException = func(err error) bool { switch err.(type) { case *shared.BadRequestError: return true case *shared.InternalServiceError: return true - case *shared.AccessDeniedError: + case *shared.EntityNotExistsError: + return true + case *ShardOwnershipLostError: + return true + case *shared.CancellationAlreadyRequestedError: + return true + case *shared.DomainNotActiveError: + return true + case *shared.LimitExceededError: + return true + case *shared.ServiceBusyError: + return true + case *shared.WorkflowExecutionAlreadyCompletedError: return true default: return false } } - HistoryService_ResetQueue_Helper.WrapResponse = func(err error) (*HistoryService_ResetQueue_Result, error) { + HistoryService_RequestCancelWorkflowExecution_Helper.WrapResponse = func(err error) (*HistoryService_RequestCancelWorkflowExecution_Result, error) { if err == nil { - return &HistoryService_ResetQueue_Result{}, nil + return &HistoryService_RequestCancelWorkflowExecution_Result{}, nil } switch e := err.(type) { case *shared.BadRequestError: if e == nil { - return nil, errors.New("WrapResponse received non-nil error type with nil value for HistoryService_ResetQueue_Result.BadRequestError") + return nil, errors.New("WrapResponse received non-nil error type with nil value for HistoryService_RequestCancelWorkflowExecution_Result.BadRequestError") } - return &HistoryService_ResetQueue_Result{BadRequestError: e}, nil + return &HistoryService_RequestCancelWorkflowExecution_Result{BadRequestError: e}, nil case *shared.InternalServiceError: if e == nil { - return nil, errors.New("WrapResponse received non-nil error type with nil value for HistoryService_ResetQueue_Result.InternalServiceError") + return nil, errors.New("WrapResponse received non-nil error type with nil value for HistoryService_RequestCancelWorkflowExecution_Result.InternalServiceError") } - return &HistoryService_ResetQueue_Result{InternalServiceError: e}, nil - case *shared.AccessDeniedError: + return &HistoryService_RequestCancelWorkflowExecution_Result{InternalServiceError: e}, nil + case *shared.EntityNotExistsError: if e == nil { - return nil, errors.New("WrapResponse received non-nil error type with nil value for HistoryService_ResetQueue_Result.AccessDeniedError") + return nil, errors.New("WrapResponse received non-nil error type with nil value for HistoryService_RequestCancelWorkflowExecution_Result.EntityNotExistError") } - return &HistoryService_ResetQueue_Result{AccessDeniedError: e}, nil + return &HistoryService_RequestCancelWorkflowExecution_Result{EntityNotExistError: e}, nil + case *ShardOwnershipLostError: + if e == nil { + return nil, errors.New("WrapResponse received non-nil error type with nil value for HistoryService_RequestCancelWorkflowExecution_Result.ShardOwnershipLostError") + } + return &HistoryService_RequestCancelWorkflowExecution_Result{ShardOwnershipLostError: e}, nil + case *shared.CancellationAlreadyRequestedError: + if e == nil { + return nil, errors.New("WrapResponse received non-nil error type with nil value for HistoryService_RequestCancelWorkflowExecution_Result.CancellationAlreadyRequestedError") + } + return &HistoryService_RequestCancelWorkflowExecution_Result{CancellationAlreadyRequestedError: e}, nil + case *shared.DomainNotActiveError: + if e == nil { + return nil, errors.New("WrapResponse received non-nil error type with nil value for HistoryService_RequestCancelWorkflowExecution_Result.DomainNotActiveError") + } + return &HistoryService_RequestCancelWorkflowExecution_Result{DomainNotActiveError: e}, nil + case *shared.LimitExceededError: + if e == nil { + return nil, errors.New("WrapResponse received non-nil error type with nil value for HistoryService_RequestCancelWorkflowExecution_Result.LimitExceededError") + } + return &HistoryService_RequestCancelWorkflowExecution_Result{LimitExceededError: e}, nil + case *shared.ServiceBusyError: + if e == nil { + return nil, errors.New("WrapResponse received non-nil error type with nil value for HistoryService_RequestCancelWorkflowExecution_Result.ServiceBusyError") + } + return &HistoryService_RequestCancelWorkflowExecution_Result{ServiceBusyError: e}, nil + case *shared.WorkflowExecutionAlreadyCompletedError: + if e == nil { + return nil, errors.New("WrapResponse received non-nil error type with nil value for HistoryService_RequestCancelWorkflowExecution_Result.WorkflowExecutionAlreadyCompletedError") + } + return &HistoryService_RequestCancelWorkflowExecution_Result{WorkflowExecutionAlreadyCompletedError: e}, nil } return nil, err } - HistoryService_ResetQueue_Helper.UnwrapResponse = func(result *HistoryService_ResetQueue_Result) (err error) { + HistoryService_RequestCancelWorkflowExecution_Helper.UnwrapResponse = func(result *HistoryService_RequestCancelWorkflowExecution_Result) (err error) { if result.BadRequestError != nil { err = result.BadRequestError return @@ -30658,8 +30418,32 @@ func init() { err = result.InternalServiceError return } - if result.AccessDeniedError != nil { - err = result.AccessDeniedError + if result.EntityNotExistError != nil { + err = result.EntityNotExistError + return + } + if result.ShardOwnershipLostError != nil { + err = result.ShardOwnershipLostError + return + } + if result.CancellationAlreadyRequestedError != nil { + err = result.CancellationAlreadyRequestedError + return + } + if result.DomainNotActiveError != nil { + err = result.DomainNotActiveError + return + } + if result.LimitExceededError != nil { + err = result.LimitExceededError + return + } + if result.ServiceBusyError != nil { + err = result.ServiceBusyError + return + } + if result.WorkflowExecutionAlreadyCompletedError != nil { + err = result.WorkflowExecutionAlreadyCompletedError return } return @@ -30667,16 +30451,22 @@ func init() { } -// HistoryService_ResetQueue_Result represents the result of a HistoryService.ResetQueue function call. +// HistoryService_RequestCancelWorkflowExecution_Result represents the result of a HistoryService.RequestCancelWorkflowExecution function call. // -// The result of a ResetQueue execution is sent and received over the wire as this struct. -type HistoryService_ResetQueue_Result struct { - BadRequestError *shared.BadRequestError `json:"badRequestError,omitempty"` - InternalServiceError *shared.InternalServiceError `json:"internalServiceError,omitempty"` - AccessDeniedError *shared.AccessDeniedError `json:"accessDeniedError,omitempty"` +// The result of a RequestCancelWorkflowExecution execution is sent and received over the wire as this struct. +type HistoryService_RequestCancelWorkflowExecution_Result struct { + BadRequestError *shared.BadRequestError `json:"badRequestError,omitempty"` + InternalServiceError *shared.InternalServiceError `json:"internalServiceError,omitempty"` + EntityNotExistError *shared.EntityNotExistsError `json:"entityNotExistError,omitempty"` + ShardOwnershipLostError *ShardOwnershipLostError `json:"shardOwnershipLostError,omitempty"` + CancellationAlreadyRequestedError *shared.CancellationAlreadyRequestedError `json:"cancellationAlreadyRequestedError,omitempty"` + DomainNotActiveError *shared.DomainNotActiveError `json:"domainNotActiveError,omitempty"` + LimitExceededError *shared.LimitExceededError `json:"limitExceededError,omitempty"` + ServiceBusyError *shared.ServiceBusyError `json:"serviceBusyError,omitempty"` + WorkflowExecutionAlreadyCompletedError *shared.WorkflowExecutionAlreadyCompletedError `json:"workflowExecutionAlreadyCompletedError,omitempty"` } -// ToWire translates a HistoryService_ResetQueue_Result struct into a Thrift-level intermediate +// ToWire translates a HistoryService_RequestCancelWorkflowExecution_Result struct into a Thrift-level intermediate // representation. This intermediate representation may be serialized // into bytes using a ThriftRW protocol implementation. // @@ -30691,9 +30481,9 @@ type HistoryService_ResetQueue_Result struct { // if err := binaryProtocol.Encode(x, writer); err != nil { // return err // } -func (v *HistoryService_ResetQueue_Result) ToWire() (wire.Value, error) { +func (v *HistoryService_RequestCancelWorkflowExecution_Result) ToWire() (wire.Value, error) { var ( - fields [3]wire.Field + fields [9]wire.Field i int = 0 w wire.Value err error @@ -30715,27 +30505,81 @@ func (v *HistoryService_ResetQueue_Result) ToWire() (wire.Value, error) { fields[i] = wire.Field{ID: 2, Value: w} i++ } - if v.AccessDeniedError != nil { - w, err = v.AccessDeniedError.ToWire() + 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 i > 1 { - return wire.Value{}, fmt.Errorf("HistoryService_ResetQueue_Result should have at most one field: got %v fields", i) + if v.ShardOwnershipLostError != nil { + w, err = v.ShardOwnershipLostError.ToWire() + if err != nil { + return w, err + } + fields[i] = wire.Field{ID: 4, Value: w} + i++ } - + if v.CancellationAlreadyRequestedError != nil { + w, err = v.CancellationAlreadyRequestedError.ToWire() + if err != nil { + return w, err + } + fields[i] = wire.Field{ID: 5, Value: w} + i++ + } + if v.DomainNotActiveError != nil { + w, err = v.DomainNotActiveError.ToWire() + if err != nil { + return w, err + } + fields[i] = wire.Field{ID: 6, Value: w} + i++ + } + if v.LimitExceededError != nil { + w, err = v.LimitExceededError.ToWire() + if err != nil { + return w, err + } + fields[i] = wire.Field{ID: 7, Value: w} + i++ + } + if v.ServiceBusyError != nil { + w, err = v.ServiceBusyError.ToWire() + if err != nil { + return w, err + } + fields[i] = wire.Field{ID: 8, Value: w} + i++ + } + if v.WorkflowExecutionAlreadyCompletedError != nil { + w, err = v.WorkflowExecutionAlreadyCompletedError.ToWire() + if err != nil { + return w, err + } + fields[i] = wire.Field{ID: 10, Value: w} + i++ + } + + if i > 1 { + return wire.Value{}, fmt.Errorf("HistoryService_RequestCancelWorkflowExecution_Result should have at most one field: got %v fields", i) + } + return wire.NewValueStruct(wire.Struct{Fields: fields[:i]}), nil } -// FromWire deserializes a HistoryService_ResetQueue_Result struct from its Thrift-level +func _CancellationAlreadyRequestedError_Read(w wire.Value) (*shared.CancellationAlreadyRequestedError, error) { + var v shared.CancellationAlreadyRequestedError + err := v.FromWire(w) + return &v, err +} + +// FromWire deserializes a HistoryService_RequestCancelWorkflowExecution_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 HistoryService_ResetQueue_Result struct +// An error is returned if we were unable to build a HistoryService_RequestCancelWorkflowExecution_Result struct // from the provided intermediate representation. // // x, err := binaryProtocol.Decode(reader, wire.TStruct) @@ -30743,12 +30587,12 @@ func (v *HistoryService_ResetQueue_Result) ToWire() (wire.Value, error) { // return nil, err // } // -// var v HistoryService_ResetQueue_Result +// var v HistoryService_RequestCancelWorkflowExecution_Result // if err := v.FromWire(x); err != nil { // return nil, err // } // return &v, nil -func (v *HistoryService_ResetQueue_Result) FromWire(w wire.Value) error { +func (v *HistoryService_RequestCancelWorkflowExecution_Result) FromWire(w wire.Value) error { var err error for _, field := range w.GetStruct().Fields { @@ -30771,7 +30615,55 @@ func (v *HistoryService_ResetQueue_Result) FromWire(w wire.Value) error { } case 3: if field.Value.Type() == wire.TStruct { - v.AccessDeniedError, err = _AccessDeniedError_Read(field.Value) + v.EntityNotExistError, err = _EntityNotExistsError_Read(field.Value) + if err != nil { + return err + } + + } + case 4: + if field.Value.Type() == wire.TStruct { + v.ShardOwnershipLostError, err = _ShardOwnershipLostError_Read(field.Value) + if err != nil { + return err + } + + } + case 5: + if field.Value.Type() == wire.TStruct { + v.CancellationAlreadyRequestedError, err = _CancellationAlreadyRequestedError_Read(field.Value) + if err != nil { + return err + } + + } + case 6: + if field.Value.Type() == wire.TStruct { + v.DomainNotActiveError, err = _DomainNotActiveError_Read(field.Value) + if err != nil { + return err + } + + } + case 7: + if field.Value.Type() == wire.TStruct { + v.LimitExceededError, err = _LimitExceededError_Read(field.Value) + if err != nil { + return err + } + + } + case 8: + if field.Value.Type() == wire.TStruct { + v.ServiceBusyError, err = _ServiceBusyError_Read(field.Value) + if err != nil { + return err + } + + } + case 10: + if field.Value.Type() == wire.TStruct { + v.WorkflowExecutionAlreadyCompletedError, err = _WorkflowExecutionAlreadyCompletedError_Read(field.Value) if err != nil { return err } @@ -30787,24 +30679,42 @@ func (v *HistoryService_ResetQueue_Result) FromWire(w wire.Value) error { if v.InternalServiceError != nil { count++ } - if v.AccessDeniedError != nil { + if v.EntityNotExistError != nil { + count++ + } + if v.ShardOwnershipLostError != nil { + count++ + } + if v.CancellationAlreadyRequestedError != nil { + count++ + } + if v.DomainNotActiveError != nil { + count++ + } + if v.LimitExceededError != nil { + count++ + } + if v.ServiceBusyError != nil { + count++ + } + if v.WorkflowExecutionAlreadyCompletedError != nil { count++ } if count > 1 { - return fmt.Errorf("HistoryService_ResetQueue_Result should have at most one field: got %v fields", count) + return fmt.Errorf("HistoryService_RequestCancelWorkflowExecution_Result should have at most one field: got %v fields", count) } return nil } -// String returns a readable string representation of a HistoryService_ResetQueue_Result +// String returns a readable string representation of a HistoryService_RequestCancelWorkflowExecution_Result // struct. -func (v *HistoryService_ResetQueue_Result) String() string { +func (v *HistoryService_RequestCancelWorkflowExecution_Result) String() string { if v == nil { return "" } - var fields [3]string + var fields [9]string i := 0 if v.BadRequestError != nil { fields[i] = fmt.Sprintf("BadRequestError: %v", v.BadRequestError) @@ -30814,31 +30724,1429 @@ func (v *HistoryService_ResetQueue_Result) String() string { fields[i] = fmt.Sprintf("InternalServiceError: %v", v.InternalServiceError) i++ } - if v.AccessDeniedError != nil { - fields[i] = fmt.Sprintf("AccessDeniedError: %v", v.AccessDeniedError) + if v.EntityNotExistError != nil { + fields[i] = fmt.Sprintf("EntityNotExistError: %v", v.EntityNotExistError) + i++ + } + if v.ShardOwnershipLostError != nil { + fields[i] = fmt.Sprintf("ShardOwnershipLostError: %v", v.ShardOwnershipLostError) + i++ + } + if v.CancellationAlreadyRequestedError != nil { + fields[i] = fmt.Sprintf("CancellationAlreadyRequestedError: %v", v.CancellationAlreadyRequestedError) + i++ + } + if v.DomainNotActiveError != nil { + fields[i] = fmt.Sprintf("DomainNotActiveError: %v", v.DomainNotActiveError) + i++ + } + if v.LimitExceededError != nil { + fields[i] = fmt.Sprintf("LimitExceededError: %v", v.LimitExceededError) + i++ + } + if v.ServiceBusyError != nil { + fields[i] = fmt.Sprintf("ServiceBusyError: %v", v.ServiceBusyError) + i++ + } + if v.WorkflowExecutionAlreadyCompletedError != nil { + fields[i] = fmt.Sprintf("WorkflowExecutionAlreadyCompletedError: %v", v.WorkflowExecutionAlreadyCompletedError) i++ } - return fmt.Sprintf("HistoryService_ResetQueue_Result{%v}", strings.Join(fields[:i], ", ")) + return fmt.Sprintf("HistoryService_RequestCancelWorkflowExecution_Result{%v}", strings.Join(fields[:i], ", ")) } -// Equals returns true if all the fields of this HistoryService_ResetQueue_Result match the -// provided HistoryService_ResetQueue_Result. +// Equals returns true if all the fields of this HistoryService_RequestCancelWorkflowExecution_Result match the +// provided HistoryService_RequestCancelWorkflowExecution_Result. // // This function performs a deep comparison. -func (v *HistoryService_ResetQueue_Result) Equals(rhs *HistoryService_ResetQueue_Result) bool { +func (v *HistoryService_RequestCancelWorkflowExecution_Result) Equals(rhs *HistoryService_RequestCancelWorkflowExecution_Result) bool { if v == nil { return rhs == nil } else if rhs == nil { return false } - if !((v.BadRequestError == nil && rhs.BadRequestError == nil) || (v.BadRequestError != nil && rhs.BadRequestError != nil && v.BadRequestError.Equals(rhs.BadRequestError))) { + if !((v.BadRequestError == nil && rhs.BadRequestError == nil) || (v.BadRequestError != nil && rhs.BadRequestError != nil && v.BadRequestError.Equals(rhs.BadRequestError))) { + return false + } + if !((v.InternalServiceError == nil && rhs.InternalServiceError == nil) || (v.InternalServiceError != nil && rhs.InternalServiceError != nil && v.InternalServiceError.Equals(rhs.InternalServiceError))) { + return false + } + if !((v.EntityNotExistError == nil && rhs.EntityNotExistError == nil) || (v.EntityNotExistError != nil && rhs.EntityNotExistError != nil && v.EntityNotExistError.Equals(rhs.EntityNotExistError))) { + return false + } + if !((v.ShardOwnershipLostError == nil && rhs.ShardOwnershipLostError == nil) || (v.ShardOwnershipLostError != nil && rhs.ShardOwnershipLostError != nil && v.ShardOwnershipLostError.Equals(rhs.ShardOwnershipLostError))) { + return false + } + if !((v.CancellationAlreadyRequestedError == nil && rhs.CancellationAlreadyRequestedError == nil) || (v.CancellationAlreadyRequestedError != nil && rhs.CancellationAlreadyRequestedError != nil && v.CancellationAlreadyRequestedError.Equals(rhs.CancellationAlreadyRequestedError))) { + return false + } + if !((v.DomainNotActiveError == nil && rhs.DomainNotActiveError == nil) || (v.DomainNotActiveError != nil && rhs.DomainNotActiveError != nil && v.DomainNotActiveError.Equals(rhs.DomainNotActiveError))) { + return false + } + if !((v.LimitExceededError == nil && rhs.LimitExceededError == nil) || (v.LimitExceededError != nil && rhs.LimitExceededError != nil && v.LimitExceededError.Equals(rhs.LimitExceededError))) { + return false + } + if !((v.ServiceBusyError == nil && rhs.ServiceBusyError == nil) || (v.ServiceBusyError != nil && rhs.ServiceBusyError != nil && v.ServiceBusyError.Equals(rhs.ServiceBusyError))) { + return false + } + if !((v.WorkflowExecutionAlreadyCompletedError == nil && rhs.WorkflowExecutionAlreadyCompletedError == nil) || (v.WorkflowExecutionAlreadyCompletedError != nil && rhs.WorkflowExecutionAlreadyCompletedError != nil && v.WorkflowExecutionAlreadyCompletedError.Equals(rhs.WorkflowExecutionAlreadyCompletedError))) { + return false + } + + return true +} + +// MarshalLogObject implements zapcore.ObjectMarshaler, enabling +// fast logging of HistoryService_RequestCancelWorkflowExecution_Result. +func (v *HistoryService_RequestCancelWorkflowExecution_Result) MarshalLogObject(enc zapcore.ObjectEncoder) (err error) { + if v == nil { + return nil + } + if v.BadRequestError != nil { + err = multierr.Append(err, enc.AddObject("badRequestError", v.BadRequestError)) + } + if v.InternalServiceError != nil { + err = multierr.Append(err, enc.AddObject("internalServiceError", v.InternalServiceError)) + } + if v.EntityNotExistError != nil { + err = multierr.Append(err, enc.AddObject("entityNotExistError", v.EntityNotExistError)) + } + if v.ShardOwnershipLostError != nil { + err = multierr.Append(err, enc.AddObject("shardOwnershipLostError", v.ShardOwnershipLostError)) + } + if v.CancellationAlreadyRequestedError != nil { + err = multierr.Append(err, enc.AddObject("cancellationAlreadyRequestedError", v.CancellationAlreadyRequestedError)) + } + if v.DomainNotActiveError != nil { + err = multierr.Append(err, enc.AddObject("domainNotActiveError", v.DomainNotActiveError)) + } + if v.LimitExceededError != nil { + err = multierr.Append(err, enc.AddObject("limitExceededError", v.LimitExceededError)) + } + if v.ServiceBusyError != nil { + err = multierr.Append(err, enc.AddObject("serviceBusyError", v.ServiceBusyError)) + } + if v.WorkflowExecutionAlreadyCompletedError != nil { + err = multierr.Append(err, enc.AddObject("workflowExecutionAlreadyCompletedError", v.WorkflowExecutionAlreadyCompletedError)) + } + return err +} + +// GetBadRequestError returns the value of BadRequestError if it is set or its +// zero value if it is unset. +func (v *HistoryService_RequestCancelWorkflowExecution_Result) GetBadRequestError() (o *shared.BadRequestError) { + if v != nil && v.BadRequestError != nil { + return v.BadRequestError + } + + return +} + +// IsSetBadRequestError returns true if BadRequestError is not nil. +func (v *HistoryService_RequestCancelWorkflowExecution_Result) IsSetBadRequestError() bool { + return v != nil && v.BadRequestError != nil +} + +// GetInternalServiceError returns the value of InternalServiceError if it is set or its +// zero value if it is unset. +func (v *HistoryService_RequestCancelWorkflowExecution_Result) GetInternalServiceError() (o *shared.InternalServiceError) { + if v != nil && v.InternalServiceError != nil { + return v.InternalServiceError + } + + return +} + +// IsSetInternalServiceError returns true if InternalServiceError is not nil. +func (v *HistoryService_RequestCancelWorkflowExecution_Result) IsSetInternalServiceError() bool { + return v != nil && v.InternalServiceError != nil +} + +// GetEntityNotExistError returns the value of EntityNotExistError if it is set or its +// zero value if it is unset. +func (v *HistoryService_RequestCancelWorkflowExecution_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 *HistoryService_RequestCancelWorkflowExecution_Result) IsSetEntityNotExistError() bool { + return v != nil && v.EntityNotExistError != nil +} + +// GetShardOwnershipLostError returns the value of ShardOwnershipLostError if it is set or its +// zero value if it is unset. +func (v *HistoryService_RequestCancelWorkflowExecution_Result) GetShardOwnershipLostError() (o *ShardOwnershipLostError) { + if v != nil && v.ShardOwnershipLostError != nil { + return v.ShardOwnershipLostError + } + + return +} + +// IsSetShardOwnershipLostError returns true if ShardOwnershipLostError is not nil. +func (v *HistoryService_RequestCancelWorkflowExecution_Result) IsSetShardOwnershipLostError() bool { + return v != nil && v.ShardOwnershipLostError != nil +} + +// GetCancellationAlreadyRequestedError returns the value of CancellationAlreadyRequestedError if it is set or its +// zero value if it is unset. +func (v *HistoryService_RequestCancelWorkflowExecution_Result) GetCancellationAlreadyRequestedError() (o *shared.CancellationAlreadyRequestedError) { + if v != nil && v.CancellationAlreadyRequestedError != nil { + return v.CancellationAlreadyRequestedError + } + + return +} + +// IsSetCancellationAlreadyRequestedError returns true if CancellationAlreadyRequestedError is not nil. +func (v *HistoryService_RequestCancelWorkflowExecution_Result) IsSetCancellationAlreadyRequestedError() bool { + return v != nil && v.CancellationAlreadyRequestedError != nil +} + +// GetDomainNotActiveError returns the value of DomainNotActiveError if it is set or its +// zero value if it is unset. +func (v *HistoryService_RequestCancelWorkflowExecution_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 *HistoryService_RequestCancelWorkflowExecution_Result) IsSetDomainNotActiveError() bool { + return v != nil && v.DomainNotActiveError != nil +} + +// GetLimitExceededError returns the value of LimitExceededError if it is set or its +// zero value if it is unset. +func (v *HistoryService_RequestCancelWorkflowExecution_Result) GetLimitExceededError() (o *shared.LimitExceededError) { + if v != nil && v.LimitExceededError != nil { + return v.LimitExceededError + } + + return +} + +// IsSetLimitExceededError returns true if LimitExceededError is not nil. +func (v *HistoryService_RequestCancelWorkflowExecution_Result) IsSetLimitExceededError() bool { + return v != nil && v.LimitExceededError != nil +} + +// GetServiceBusyError returns the value of ServiceBusyError if it is set or its +// zero value if it is unset. +func (v *HistoryService_RequestCancelWorkflowExecution_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 *HistoryService_RequestCancelWorkflowExecution_Result) IsSetServiceBusyError() bool { + return v != nil && v.ServiceBusyError != nil +} + +// GetWorkflowExecutionAlreadyCompletedError returns the value of WorkflowExecutionAlreadyCompletedError if it is set or its +// zero value if it is unset. +func (v *HistoryService_RequestCancelWorkflowExecution_Result) GetWorkflowExecutionAlreadyCompletedError() (o *shared.WorkflowExecutionAlreadyCompletedError) { + if v != nil && v.WorkflowExecutionAlreadyCompletedError != nil { + return v.WorkflowExecutionAlreadyCompletedError + } + + return +} + +// IsSetWorkflowExecutionAlreadyCompletedError returns true if WorkflowExecutionAlreadyCompletedError is not nil. +func (v *HistoryService_RequestCancelWorkflowExecution_Result) IsSetWorkflowExecutionAlreadyCompletedError() bool { + return v != nil && v.WorkflowExecutionAlreadyCompletedError != 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 "RequestCancelWorkflowExecution" for this struct. +func (v *HistoryService_RequestCancelWorkflowExecution_Result) MethodName() string { + return "RequestCancelWorkflowExecution" +} + +// EnvelopeType returns the kind of value inside this struct. +// +// This will always be Reply for this struct. +func (v *HistoryService_RequestCancelWorkflowExecution_Result) EnvelopeType() wire.EnvelopeType { + return wire.Reply +} + +// HistoryService_ResetQueue_Args represents the arguments for the HistoryService.ResetQueue function. +// +// The arguments for ResetQueue are sent and received over the wire as this struct. +type HistoryService_ResetQueue_Args struct { + Request *shared.ResetQueueRequest `json:"request,omitempty"` +} + +// ToWire translates a HistoryService_ResetQueue_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 *HistoryService_ResetQueue_Args) ToWire() (wire.Value, error) { + var ( + fields [1]wire.Field + i int = 0 + w wire.Value + err error + ) + + if v.Request != nil { + w, err = v.Request.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 +} + +func _ResetQueueRequest_Read(w wire.Value) (*shared.ResetQueueRequest, error) { + var v shared.ResetQueueRequest + err := v.FromWire(w) + return &v, err +} + +// FromWire deserializes a HistoryService_ResetQueue_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 HistoryService_ResetQueue_Args struct +// from the provided intermediate representation. +// +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } +// +// var v HistoryService_ResetQueue_Args +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil +func (v *HistoryService_ResetQueue_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.Request, err = _ResetQueueRequest_Read(field.Value) + if err != nil { + return err + } + + } + } + } + + return nil +} + +// String returns a readable string representation of a HistoryService_ResetQueue_Args +// struct. +func (v *HistoryService_ResetQueue_Args) String() string { + if v == nil { + return "" + } + + var fields [1]string + i := 0 + if v.Request != nil { + fields[i] = fmt.Sprintf("Request: %v", v.Request) + i++ + } + + return fmt.Sprintf("HistoryService_ResetQueue_Args{%v}", strings.Join(fields[:i], ", ")) +} + +// Equals returns true if all the fields of this HistoryService_ResetQueue_Args match the +// provided HistoryService_ResetQueue_Args. +// +// This function performs a deep comparison. +func (v *HistoryService_ResetQueue_Args) Equals(rhs *HistoryService_ResetQueue_Args) bool { + if v == nil { + return rhs == nil + } else if rhs == nil { + return false + } + if !((v.Request == nil && rhs.Request == nil) || (v.Request != nil && rhs.Request != nil && v.Request.Equals(rhs.Request))) { + return false + } + + return true +} + +// MarshalLogObject implements zapcore.ObjectMarshaler, enabling +// fast logging of HistoryService_ResetQueue_Args. +func (v *HistoryService_ResetQueue_Args) MarshalLogObject(enc zapcore.ObjectEncoder) (err error) { + if v == nil { + return nil + } + if v.Request != nil { + err = multierr.Append(err, enc.AddObject("request", v.Request)) + } + return err +} + +// GetRequest returns the value of Request if it is set or its +// zero value if it is unset. +func (v *HistoryService_ResetQueue_Args) GetRequest() (o *shared.ResetQueueRequest) { + if v != nil && v.Request != nil { + return v.Request + } + + return +} + +// IsSetRequest returns true if Request is not nil. +func (v *HistoryService_ResetQueue_Args) IsSetRequest() bool { + return v != nil && v.Request != 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 "ResetQueue" for this struct. +func (v *HistoryService_ResetQueue_Args) MethodName() string { + return "ResetQueue" +} + +// EnvelopeType returns the kind of value inside this struct. +// +// This will always be Call for this struct. +func (v *HistoryService_ResetQueue_Args) EnvelopeType() wire.EnvelopeType { + return wire.Call +} + +// HistoryService_ResetQueue_Helper provides functions that aid in handling the +// parameters and return values of the HistoryService.ResetQueue +// function. +var HistoryService_ResetQueue_Helper = struct { + // Args accepts the parameters of ResetQueue in-order and returns + // the arguments struct for the function. + Args func( + request *shared.ResetQueueRequest, + ) *HistoryService_ResetQueue_Args + + // IsException returns true if the given error can be thrown + // by ResetQueue. + // + // An error can be thrown by ResetQueue 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 ResetQueue + // given the error returned by it. The provided error may + // be nil if ResetQueue did not fail. + // + // This allows mapping errors returned by ResetQueue into a + // serializable result struct. WrapResponse returns a + // non-nil error if the provided error cannot be thrown by + // ResetQueue + // + // err := ResetQueue(args) + // result, err := HistoryService_ResetQueue_Helper.WrapResponse(err) + // if err != nil { + // return fmt.Errorf("unexpected error from ResetQueue: %v", err) + // } + // serialize(result) + WrapResponse func(error) (*HistoryService_ResetQueue_Result, error) + + // UnwrapResponse takes the result struct for ResetQueue + // and returns the erorr returned by it (if any). + // + // The error is non-nil only if ResetQueue threw an + // exception. + // + // result := deserialize(bytes) + // err := HistoryService_ResetQueue_Helper.UnwrapResponse(result) + UnwrapResponse func(*HistoryService_ResetQueue_Result) error +}{} + +func init() { + HistoryService_ResetQueue_Helper.Args = func( + request *shared.ResetQueueRequest, + ) *HistoryService_ResetQueue_Args { + return &HistoryService_ResetQueue_Args{ + Request: request, + } + } + + HistoryService_ResetQueue_Helper.IsException = func(err error) bool { + switch err.(type) { + case *shared.BadRequestError: + return true + case *shared.InternalServiceError: + return true + case *shared.AccessDeniedError: + return true + default: + return false + } + } + + HistoryService_ResetQueue_Helper.WrapResponse = func(err error) (*HistoryService_ResetQueue_Result, error) { + if err == nil { + return &HistoryService_ResetQueue_Result{}, nil + } + + switch e := err.(type) { + case *shared.BadRequestError: + if e == nil { + return nil, errors.New("WrapResponse received non-nil error type with nil value for HistoryService_ResetQueue_Result.BadRequestError") + } + return &HistoryService_ResetQueue_Result{BadRequestError: e}, nil + case *shared.InternalServiceError: + if e == nil { + return nil, errors.New("WrapResponse received non-nil error type with nil value for HistoryService_ResetQueue_Result.InternalServiceError") + } + return &HistoryService_ResetQueue_Result{InternalServiceError: e}, nil + case *shared.AccessDeniedError: + if e == nil { + return nil, errors.New("WrapResponse received non-nil error type with nil value for HistoryService_ResetQueue_Result.AccessDeniedError") + } + return &HistoryService_ResetQueue_Result{AccessDeniedError: e}, nil + } + + return nil, err + } + HistoryService_ResetQueue_Helper.UnwrapResponse = func(result *HistoryService_ResetQueue_Result) (err error) { + if result.BadRequestError != nil { + err = result.BadRequestError + return + } + if result.InternalServiceError != nil { + err = result.InternalServiceError + return + } + if result.AccessDeniedError != nil { + err = result.AccessDeniedError + return + } + return + } + +} + +// HistoryService_ResetQueue_Result represents the result of a HistoryService.ResetQueue function call. +// +// The result of a ResetQueue execution is sent and received over the wire as this struct. +type HistoryService_ResetQueue_Result struct { + BadRequestError *shared.BadRequestError `json:"badRequestError,omitempty"` + InternalServiceError *shared.InternalServiceError `json:"internalServiceError,omitempty"` + AccessDeniedError *shared.AccessDeniedError `json:"accessDeniedError,omitempty"` +} + +// ToWire translates a HistoryService_ResetQueue_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 *HistoryService_ResetQueue_Result) ToWire() (wire.Value, error) { + var ( + fields [3]wire.Field + i int = 0 + w wire.Value + err error + ) + + if v.BadRequestError != nil { + w, err = v.BadRequestError.ToWire() + if err != nil { + return w, err + } + fields[i] = wire.Field{ID: 1, Value: w} + i++ + } + if v.InternalServiceError != nil { + w, err = v.InternalServiceError.ToWire() + if err != nil { + return w, err + } + 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("HistoryService_ResetQueue_Result should have at most one field: got %v fields", i) + } + + return wire.NewValueStruct(wire.Struct{Fields: fields[:i]}), nil +} + +// FromWire deserializes a HistoryService_ResetQueue_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 HistoryService_ResetQueue_Result struct +// from the provided intermediate representation. +// +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } +// +// var v HistoryService_ResetQueue_Result +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil +func (v *HistoryService_ResetQueue_Result) 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.BadRequestError, err = _BadRequestError_Read(field.Value) + if err != nil { + return err + } + + } + case 2: + if field.Value.Type() == wire.TStruct { + v.InternalServiceError, err = _InternalServiceError_Read(field.Value) + if err != nil { + return err + } + + } + case 3: + if field.Value.Type() == wire.TStruct { + v.AccessDeniedError, err = _AccessDeniedError_Read(field.Value) + if err != nil { + return err + } + + } + } + } + + count := 0 + if v.BadRequestError != nil { + count++ + } + if v.InternalServiceError != nil { + count++ + } + if v.AccessDeniedError != nil { + count++ + } + if count > 1 { + return fmt.Errorf("HistoryService_ResetQueue_Result should have at most one field: got %v fields", count) + } + + return nil +} + +// String returns a readable string representation of a HistoryService_ResetQueue_Result +// struct. +func (v *HistoryService_ResetQueue_Result) String() string { + if v == nil { + return "" + } + + var fields [3]string + i := 0 + if v.BadRequestError != nil { + fields[i] = fmt.Sprintf("BadRequestError: %v", v.BadRequestError) + i++ + } + if v.InternalServiceError != nil { + fields[i] = fmt.Sprintf("InternalServiceError: %v", v.InternalServiceError) + i++ + } + if v.AccessDeniedError != nil { + fields[i] = fmt.Sprintf("AccessDeniedError: %v", v.AccessDeniedError) + i++ + } + + return fmt.Sprintf("HistoryService_ResetQueue_Result{%v}", strings.Join(fields[:i], ", ")) +} + +// Equals returns true if all the fields of this HistoryService_ResetQueue_Result match the +// provided HistoryService_ResetQueue_Result. +// +// This function performs a deep comparison. +func (v *HistoryService_ResetQueue_Result) Equals(rhs *HistoryService_ResetQueue_Result) bool { + if v == nil { + return rhs == nil + } else if rhs == nil { + return false + } + if !((v.BadRequestError == nil && rhs.BadRequestError == nil) || (v.BadRequestError != nil && rhs.BadRequestError != nil && v.BadRequestError.Equals(rhs.BadRequestError))) { + return false + } + if !((v.InternalServiceError == nil && rhs.InternalServiceError == nil) || (v.InternalServiceError != nil && rhs.InternalServiceError != nil && v.InternalServiceError.Equals(rhs.InternalServiceError))) { + 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 HistoryService_ResetQueue_Result. +func (v *HistoryService_ResetQueue_Result) MarshalLogObject(enc zapcore.ObjectEncoder) (err error) { + if v == nil { + return nil + } + if v.BadRequestError != nil { + err = multierr.Append(err, enc.AddObject("badRequestError", v.BadRequestError)) + } + if v.InternalServiceError != nil { + err = multierr.Append(err, enc.AddObject("internalServiceError", v.InternalServiceError)) + } + if v.AccessDeniedError != nil { + err = multierr.Append(err, enc.AddObject("accessDeniedError", v.AccessDeniedError)) + } + return err +} + +// GetBadRequestError returns the value of BadRequestError if it is set or its +// zero value if it is unset. +func (v *HistoryService_ResetQueue_Result) GetBadRequestError() (o *shared.BadRequestError) { + if v != nil && v.BadRequestError != nil { + return v.BadRequestError + } + + return +} + +// IsSetBadRequestError returns true if BadRequestError is not nil. +func (v *HistoryService_ResetQueue_Result) IsSetBadRequestError() bool { + return v != nil && v.BadRequestError != nil +} + +// GetInternalServiceError returns the value of InternalServiceError if it is set or its +// zero value if it is unset. +func (v *HistoryService_ResetQueue_Result) GetInternalServiceError() (o *shared.InternalServiceError) { + if v != nil && v.InternalServiceError != nil { + return v.InternalServiceError + } + + return +} + +// IsSetInternalServiceError returns true if InternalServiceError is not nil. +func (v *HistoryService_ResetQueue_Result) IsSetInternalServiceError() bool { + return v != nil && v.InternalServiceError != nil +} + +// GetAccessDeniedError returns the value of AccessDeniedError if it is set or its +// zero value if it is unset. +func (v *HistoryService_ResetQueue_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 *HistoryService_ResetQueue_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 "ResetQueue" for this struct. +func (v *HistoryService_ResetQueue_Result) MethodName() string { + return "ResetQueue" +} + +// EnvelopeType returns the kind of value inside this struct. +// +// This will always be Reply for this struct. +func (v *HistoryService_ResetQueue_Result) EnvelopeType() wire.EnvelopeType { + return wire.Reply +} + +// HistoryService_ResetStickyTaskList_Args represents the arguments for the HistoryService.ResetStickyTaskList function. +// +// The arguments for ResetStickyTaskList are sent and received over the wire as this struct. +type HistoryService_ResetStickyTaskList_Args struct { + ResetRequest *ResetStickyTaskListRequest `json:"resetRequest,omitempty"` +} + +// ToWire translates a HistoryService_ResetStickyTaskList_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 *HistoryService_ResetStickyTaskList_Args) ToWire() (wire.Value, error) { + var ( + fields [1]wire.Field + i int = 0 + w wire.Value + err error + ) + + if v.ResetRequest != nil { + w, err = v.ResetRequest.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 +} + +func _ResetStickyTaskListRequest_Read(w wire.Value) (*ResetStickyTaskListRequest, error) { + var v ResetStickyTaskListRequest + err := v.FromWire(w) + return &v, err +} + +// FromWire deserializes a HistoryService_ResetStickyTaskList_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 HistoryService_ResetStickyTaskList_Args struct +// from the provided intermediate representation. +// +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } +// +// var v HistoryService_ResetStickyTaskList_Args +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil +func (v *HistoryService_ResetStickyTaskList_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.ResetRequest, err = _ResetStickyTaskListRequest_Read(field.Value) + if err != nil { + return err + } + + } + } + } + + return nil +} + +// String returns a readable string representation of a HistoryService_ResetStickyTaskList_Args +// struct. +func (v *HistoryService_ResetStickyTaskList_Args) String() string { + if v == nil { + return "" + } + + var fields [1]string + i := 0 + if v.ResetRequest != nil { + fields[i] = fmt.Sprintf("ResetRequest: %v", v.ResetRequest) + i++ + } + + return fmt.Sprintf("HistoryService_ResetStickyTaskList_Args{%v}", strings.Join(fields[:i], ", ")) +} + +// Equals returns true if all the fields of this HistoryService_ResetStickyTaskList_Args match the +// provided HistoryService_ResetStickyTaskList_Args. +// +// This function performs a deep comparison. +func (v *HistoryService_ResetStickyTaskList_Args) Equals(rhs *HistoryService_ResetStickyTaskList_Args) bool { + if v == nil { + return rhs == nil + } else if rhs == nil { + return false + } + if !((v.ResetRequest == nil && rhs.ResetRequest == nil) || (v.ResetRequest != nil && rhs.ResetRequest != nil && v.ResetRequest.Equals(rhs.ResetRequest))) { + return false + } + + return true +} + +// MarshalLogObject implements zapcore.ObjectMarshaler, enabling +// fast logging of HistoryService_ResetStickyTaskList_Args. +func (v *HistoryService_ResetStickyTaskList_Args) MarshalLogObject(enc zapcore.ObjectEncoder) (err error) { + if v == nil { + return nil + } + if v.ResetRequest != nil { + err = multierr.Append(err, enc.AddObject("resetRequest", v.ResetRequest)) + } + return err +} + +// GetResetRequest returns the value of ResetRequest if it is set or its +// zero value if it is unset. +func (v *HistoryService_ResetStickyTaskList_Args) GetResetRequest() (o *ResetStickyTaskListRequest) { + if v != nil && v.ResetRequest != nil { + return v.ResetRequest + } + + return +} + +// IsSetResetRequest returns true if ResetRequest is not nil. +func (v *HistoryService_ResetStickyTaskList_Args) IsSetResetRequest() bool { + return v != nil && v.ResetRequest != 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 "ResetStickyTaskList" for this struct. +func (v *HistoryService_ResetStickyTaskList_Args) MethodName() string { + return "ResetStickyTaskList" +} + +// EnvelopeType returns the kind of value inside this struct. +// +// This will always be Call for this struct. +func (v *HistoryService_ResetStickyTaskList_Args) EnvelopeType() wire.EnvelopeType { + return wire.Call +} + +// HistoryService_ResetStickyTaskList_Helper provides functions that aid in handling the +// parameters and return values of the HistoryService.ResetStickyTaskList +// function. +var HistoryService_ResetStickyTaskList_Helper = struct { + // Args accepts the parameters of ResetStickyTaskList in-order and returns + // the arguments struct for the function. + Args func( + resetRequest *ResetStickyTaskListRequest, + ) *HistoryService_ResetStickyTaskList_Args + + // IsException returns true if the given error can be thrown + // by ResetStickyTaskList. + // + // An error can be thrown by ResetStickyTaskList 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 ResetStickyTaskList + // given its return value and error. + // + // This allows mapping values and errors returned by + // ResetStickyTaskList into a serializable result struct. + // WrapResponse returns a non-nil error if the provided + // error cannot be thrown by ResetStickyTaskList + // + // value, err := ResetStickyTaskList(args) + // result, err := HistoryService_ResetStickyTaskList_Helper.WrapResponse(value, err) + // if err != nil { + // return fmt.Errorf("unexpected error from ResetStickyTaskList: %v", err) + // } + // serialize(result) + WrapResponse func(*ResetStickyTaskListResponse, error) (*HistoryService_ResetStickyTaskList_Result, error) + + // UnwrapResponse takes the result struct for ResetStickyTaskList + // and returns the value or error returned by it. + // + // The error is non-nil only if ResetStickyTaskList threw an + // exception. + // + // result := deserialize(bytes) + // value, err := HistoryService_ResetStickyTaskList_Helper.UnwrapResponse(result) + UnwrapResponse func(*HistoryService_ResetStickyTaskList_Result) (*ResetStickyTaskListResponse, error) +}{} + +func init() { + HistoryService_ResetStickyTaskList_Helper.Args = func( + resetRequest *ResetStickyTaskListRequest, + ) *HistoryService_ResetStickyTaskList_Args { + return &HistoryService_ResetStickyTaskList_Args{ + ResetRequest: resetRequest, + } + } + + HistoryService_ResetStickyTaskList_Helper.IsException = func(err error) bool { + switch err.(type) { + case *shared.BadRequestError: + return true + case *shared.InternalServiceError: + return true + case *shared.EntityNotExistsError: + return true + case *ShardOwnershipLostError: + return true + case *shared.LimitExceededError: + return true + case *shared.ServiceBusyError: + return true + case *shared.WorkflowExecutionAlreadyCompletedError: + return true + default: + return false + } + } + + HistoryService_ResetStickyTaskList_Helper.WrapResponse = func(success *ResetStickyTaskListResponse, err error) (*HistoryService_ResetStickyTaskList_Result, error) { + if err == nil { + return &HistoryService_ResetStickyTaskList_Result{Success: success}, nil + } + + switch e := err.(type) { + case *shared.BadRequestError: + if e == nil { + return nil, errors.New("WrapResponse received non-nil error type with nil value for HistoryService_ResetStickyTaskList_Result.BadRequestError") + } + return &HistoryService_ResetStickyTaskList_Result{BadRequestError: e}, nil + case *shared.InternalServiceError: + if e == nil { + return nil, errors.New("WrapResponse received non-nil error type with nil value for HistoryService_ResetStickyTaskList_Result.InternalServiceError") + } + return &HistoryService_ResetStickyTaskList_Result{InternalServiceError: e}, nil + case *shared.EntityNotExistsError: + if e == nil { + return nil, errors.New("WrapResponse received non-nil error type with nil value for HistoryService_ResetStickyTaskList_Result.EntityNotExistError") + } + return &HistoryService_ResetStickyTaskList_Result{EntityNotExistError: e}, nil + case *ShardOwnershipLostError: + if e == nil { + return nil, errors.New("WrapResponse received non-nil error type with nil value for HistoryService_ResetStickyTaskList_Result.ShardOwnershipLostError") + } + return &HistoryService_ResetStickyTaskList_Result{ShardOwnershipLostError: e}, nil + case *shared.LimitExceededError: + if e == nil { + return nil, errors.New("WrapResponse received non-nil error type with nil value for HistoryService_ResetStickyTaskList_Result.LimitExceededError") + } + return &HistoryService_ResetStickyTaskList_Result{LimitExceededError: e}, nil + case *shared.ServiceBusyError: + if e == nil { + return nil, errors.New("WrapResponse received non-nil error type with nil value for HistoryService_ResetStickyTaskList_Result.ServiceBusyError") + } + return &HistoryService_ResetStickyTaskList_Result{ServiceBusyError: e}, nil + case *shared.WorkflowExecutionAlreadyCompletedError: + if e == nil { + return nil, errors.New("WrapResponse received non-nil error type with nil value for HistoryService_ResetStickyTaskList_Result.WorkflowExecutionAlreadyCompletedError") + } + return &HistoryService_ResetStickyTaskList_Result{WorkflowExecutionAlreadyCompletedError: e}, nil + } + + return nil, err + } + HistoryService_ResetStickyTaskList_Helper.UnwrapResponse = func(result *HistoryService_ResetStickyTaskList_Result) (success *ResetStickyTaskListResponse, err error) { + if result.BadRequestError != nil { + err = result.BadRequestError + return + } + if result.InternalServiceError != nil { + err = result.InternalServiceError + return + } + if result.EntityNotExistError != nil { + err = result.EntityNotExistError + return + } + if result.ShardOwnershipLostError != nil { + err = result.ShardOwnershipLostError + return + } + if result.LimitExceededError != nil { + err = result.LimitExceededError + return + } + if result.ServiceBusyError != nil { + err = result.ServiceBusyError + return + } + if result.WorkflowExecutionAlreadyCompletedError != nil { + err = result.WorkflowExecutionAlreadyCompletedError + return + } + + if result.Success != nil { + success = result.Success + return + } + + err = errors.New("expected a non-void result") + return + } + +} + +// HistoryService_ResetStickyTaskList_Result represents the result of a HistoryService.ResetStickyTaskList function call. +// +// The result of a ResetStickyTaskList execution is sent and received over the wire as this struct. +// +// Success is set only if the function did not throw an exception. +type HistoryService_ResetStickyTaskList_Result struct { + // Value returned by ResetStickyTaskList after a successful execution. + Success *ResetStickyTaskListResponse `json:"success,omitempty"` + BadRequestError *shared.BadRequestError `json:"badRequestError,omitempty"` + InternalServiceError *shared.InternalServiceError `json:"internalServiceError,omitempty"` + EntityNotExistError *shared.EntityNotExistsError `json:"entityNotExistError,omitempty"` + ShardOwnershipLostError *ShardOwnershipLostError `json:"shardOwnershipLostError,omitempty"` + LimitExceededError *shared.LimitExceededError `json:"limitExceededError,omitempty"` + ServiceBusyError *shared.ServiceBusyError `json:"serviceBusyError,omitempty"` + WorkflowExecutionAlreadyCompletedError *shared.WorkflowExecutionAlreadyCompletedError `json:"workflowExecutionAlreadyCompletedError,omitempty"` +} + +// ToWire translates a HistoryService_ResetStickyTaskList_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 *HistoryService_ResetStickyTaskList_Result) ToWire() (wire.Value, error) { + var ( + fields [8]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.BadRequestError != nil { + w, err = v.BadRequestError.ToWire() + if err != nil { + return w, err + } + fields[i] = wire.Field{ID: 1, Value: w} + i++ + } + if v.InternalServiceError != nil { + w, err = v.InternalServiceError.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.ShardOwnershipLostError != nil { + w, err = v.ShardOwnershipLostError.ToWire() + if err != nil { + return w, err + } + fields[i] = wire.Field{ID: 4, Value: w} + i++ + } + if v.LimitExceededError != nil { + w, err = v.LimitExceededError.ToWire() + if err != nil { + return w, err + } + fields[i] = wire.Field{ID: 5, Value: w} + i++ + } + if v.ServiceBusyError != nil { + w, err = v.ServiceBusyError.ToWire() + if err != nil { + return w, err + } + fields[i] = wire.Field{ID: 6, Value: w} + i++ + } + if v.WorkflowExecutionAlreadyCompletedError != nil { + w, err = v.WorkflowExecutionAlreadyCompletedError.ToWire() + if err != nil { + return w, err + } + fields[i] = wire.Field{ID: 7, Value: w} + i++ + } + + if i != 1 { + return wire.Value{}, fmt.Errorf("HistoryService_ResetStickyTaskList_Result should have exactly one field: got %v fields", i) + } + + return wire.NewValueStruct(wire.Struct{Fields: fields[:i]}), nil +} + +func _ResetStickyTaskListResponse_Read(w wire.Value) (*ResetStickyTaskListResponse, error) { + var v ResetStickyTaskListResponse + err := v.FromWire(w) + return &v, err +} + +// FromWire deserializes a HistoryService_ResetStickyTaskList_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 HistoryService_ResetStickyTaskList_Result struct +// from the provided intermediate representation. +// +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } +// +// var v HistoryService_ResetStickyTaskList_Result +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil +func (v *HistoryService_ResetStickyTaskList_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 = _ResetStickyTaskListResponse_Read(field.Value) + if err != nil { + return err + } + + } + case 1: + if field.Value.Type() == wire.TStruct { + v.BadRequestError, err = _BadRequestError_Read(field.Value) + if err != nil { + return err + } + + } + case 2: + if field.Value.Type() == wire.TStruct { + v.InternalServiceError, err = _InternalServiceError_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.ShardOwnershipLostError, err = _ShardOwnershipLostError_Read(field.Value) + if err != nil { + return err + } + + } + case 5: + if field.Value.Type() == wire.TStruct { + v.LimitExceededError, err = _LimitExceededError_Read(field.Value) + if err != nil { + return err + } + + } + case 6: + if field.Value.Type() == wire.TStruct { + v.ServiceBusyError, err = _ServiceBusyError_Read(field.Value) + if err != nil { + return err + } + + } + case 7: + if field.Value.Type() == wire.TStruct { + v.WorkflowExecutionAlreadyCompletedError, err = _WorkflowExecutionAlreadyCompletedError_Read(field.Value) + if err != nil { + return err + } + + } + } + } + + count := 0 + if v.Success != nil { + count++ + } + if v.BadRequestError != nil { + count++ + } + if v.InternalServiceError != nil { + count++ + } + if v.EntityNotExistError != nil { + count++ + } + if v.ShardOwnershipLostError != nil { + count++ + } + if v.LimitExceededError != nil { + count++ + } + if v.ServiceBusyError != nil { + count++ + } + if v.WorkflowExecutionAlreadyCompletedError != nil { + count++ + } + if count != 1 { + return fmt.Errorf("HistoryService_ResetStickyTaskList_Result should have exactly one field: got %v fields", count) + } + + return nil +} + +// String returns a readable string representation of a HistoryService_ResetStickyTaskList_Result +// struct. +func (v *HistoryService_ResetStickyTaskList_Result) String() string { + if v == nil { + return "" + } + + var fields [8]string + i := 0 + if v.Success != nil { + fields[i] = fmt.Sprintf("Success: %v", v.Success) + i++ + } + if v.BadRequestError != nil { + fields[i] = fmt.Sprintf("BadRequestError: %v", v.BadRequestError) + i++ + } + if v.InternalServiceError != nil { + fields[i] = fmt.Sprintf("InternalServiceError: %v", v.InternalServiceError) + i++ + } + if v.EntityNotExistError != nil { + fields[i] = fmt.Sprintf("EntityNotExistError: %v", v.EntityNotExistError) + i++ + } + if v.ShardOwnershipLostError != nil { + fields[i] = fmt.Sprintf("ShardOwnershipLostError: %v", v.ShardOwnershipLostError) + i++ + } + if v.LimitExceededError != nil { + fields[i] = fmt.Sprintf("LimitExceededError: %v", v.LimitExceededError) + i++ + } + if v.ServiceBusyError != nil { + fields[i] = fmt.Sprintf("ServiceBusyError: %v", v.ServiceBusyError) + i++ + } + if v.WorkflowExecutionAlreadyCompletedError != nil { + fields[i] = fmt.Sprintf("WorkflowExecutionAlreadyCompletedError: %v", v.WorkflowExecutionAlreadyCompletedError) + i++ + } + + return fmt.Sprintf("HistoryService_ResetStickyTaskList_Result{%v}", strings.Join(fields[:i], ", ")) +} + +// Equals returns true if all the fields of this HistoryService_ResetStickyTaskList_Result match the +// provided HistoryService_ResetStickyTaskList_Result. +// +// This function performs a deep comparison. +func (v *HistoryService_ResetStickyTaskList_Result) Equals(rhs *HistoryService_ResetStickyTaskList_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.BadRequestError == nil && rhs.BadRequestError == nil) || (v.BadRequestError != nil && rhs.BadRequestError != nil && v.BadRequestError.Equals(rhs.BadRequestError))) { + return false + } + if !((v.InternalServiceError == nil && rhs.InternalServiceError == nil) || (v.InternalServiceError != nil && rhs.InternalServiceError != nil && v.InternalServiceError.Equals(rhs.InternalServiceError))) { + return false + } + if !((v.EntityNotExistError == nil && rhs.EntityNotExistError == nil) || (v.EntityNotExistError != nil && rhs.EntityNotExistError != nil && v.EntityNotExistError.Equals(rhs.EntityNotExistError))) { return false } - if !((v.InternalServiceError == nil && rhs.InternalServiceError == nil) || (v.InternalServiceError != nil && rhs.InternalServiceError != nil && v.InternalServiceError.Equals(rhs.InternalServiceError))) { + if !((v.ShardOwnershipLostError == nil && rhs.ShardOwnershipLostError == nil) || (v.ShardOwnershipLostError != nil && rhs.ShardOwnershipLostError != nil && v.ShardOwnershipLostError.Equals(rhs.ShardOwnershipLostError))) { return false } - if !((v.AccessDeniedError == nil && rhs.AccessDeniedError == nil) || (v.AccessDeniedError != nil && rhs.AccessDeniedError != nil && v.AccessDeniedError.Equals(rhs.AccessDeniedError))) { + if !((v.LimitExceededError == nil && rhs.LimitExceededError == nil) || (v.LimitExceededError != nil && rhs.LimitExceededError != nil && v.LimitExceededError.Equals(rhs.LimitExceededError))) { + return false + } + if !((v.ServiceBusyError == nil && rhs.ServiceBusyError == nil) || (v.ServiceBusyError != nil && rhs.ServiceBusyError != nil && v.ServiceBusyError.Equals(rhs.ServiceBusyError))) { + return false + } + if !((v.WorkflowExecutionAlreadyCompletedError == nil && rhs.WorkflowExecutionAlreadyCompletedError == nil) || (v.WorkflowExecutionAlreadyCompletedError != nil && rhs.WorkflowExecutionAlreadyCompletedError != nil && v.WorkflowExecutionAlreadyCompletedError.Equals(rhs.WorkflowExecutionAlreadyCompletedError))) { return false } @@ -30846,26 +32154,56 @@ func (v *HistoryService_ResetQueue_Result) Equals(rhs *HistoryService_ResetQueue } // MarshalLogObject implements zapcore.ObjectMarshaler, enabling -// fast logging of HistoryService_ResetQueue_Result. -func (v *HistoryService_ResetQueue_Result) MarshalLogObject(enc zapcore.ObjectEncoder) (err error) { +// fast logging of HistoryService_ResetStickyTaskList_Result. +func (v *HistoryService_ResetStickyTaskList_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.BadRequestError != nil { err = multierr.Append(err, enc.AddObject("badRequestError", v.BadRequestError)) } if v.InternalServiceError != nil { err = multierr.Append(err, enc.AddObject("internalServiceError", v.InternalServiceError)) } - if v.AccessDeniedError != nil { - err = multierr.Append(err, enc.AddObject("accessDeniedError", v.AccessDeniedError)) + if v.EntityNotExistError != nil { + err = multierr.Append(err, enc.AddObject("entityNotExistError", v.EntityNotExistError)) + } + if v.ShardOwnershipLostError != nil { + err = multierr.Append(err, enc.AddObject("shardOwnershipLostError", v.ShardOwnershipLostError)) + } + if v.LimitExceededError != nil { + err = multierr.Append(err, enc.AddObject("limitExceededError", v.LimitExceededError)) + } + if v.ServiceBusyError != nil { + err = multierr.Append(err, enc.AddObject("serviceBusyError", v.ServiceBusyError)) + } + if v.WorkflowExecutionAlreadyCompletedError != nil { + err = multierr.Append(err, enc.AddObject("workflowExecutionAlreadyCompletedError", v.WorkflowExecutionAlreadyCompletedError)) } return err } +// GetSuccess returns the value of Success if it is set or its +// zero value if it is unset. +func (v *HistoryService_ResetStickyTaskList_Result) GetSuccess() (o *ResetStickyTaskListResponse) { + if v != nil && v.Success != nil { + return v.Success + } + + return +} + +// IsSetSuccess returns true if Success is not nil. +func (v *HistoryService_ResetStickyTaskList_Result) IsSetSuccess() bool { + return v != nil && v.Success != nil +} + // GetBadRequestError returns the value of BadRequestError if it is set or its // zero value if it is unset. -func (v *HistoryService_ResetQueue_Result) GetBadRequestError() (o *shared.BadRequestError) { +func (v *HistoryService_ResetStickyTaskList_Result) GetBadRequestError() (o *shared.BadRequestError) { if v != nil && v.BadRequestError != nil { return v.BadRequestError } @@ -30874,13 +32212,13 @@ func (v *HistoryService_ResetQueue_Result) GetBadRequestError() (o *shared.BadRe } // IsSetBadRequestError returns true if BadRequestError is not nil. -func (v *HistoryService_ResetQueue_Result) IsSetBadRequestError() bool { +func (v *HistoryService_ResetStickyTaskList_Result) IsSetBadRequestError() bool { return v != nil && v.BadRequestError != nil } // GetInternalServiceError returns the value of InternalServiceError if it is set or its // zero value if it is unset. -func (v *HistoryService_ResetQueue_Result) GetInternalServiceError() (o *shared.InternalServiceError) { +func (v *HistoryService_ResetStickyTaskList_Result) GetInternalServiceError() (o *shared.InternalServiceError) { if v != nil && v.InternalServiceError != nil { return v.InternalServiceError } @@ -30889,48 +32227,108 @@ func (v *HistoryService_ResetQueue_Result) GetInternalServiceError() (o *shared. } // IsSetInternalServiceError returns true if InternalServiceError is not nil. -func (v *HistoryService_ResetQueue_Result) IsSetInternalServiceError() bool { +func (v *HistoryService_ResetStickyTaskList_Result) IsSetInternalServiceError() bool { return v != nil && v.InternalServiceError != nil } -// GetAccessDeniedError returns the value of AccessDeniedError if it is set or its +// GetEntityNotExistError returns the value of EntityNotExistError if it is set or its // zero value if it is unset. -func (v *HistoryService_ResetQueue_Result) GetAccessDeniedError() (o *shared.AccessDeniedError) { - if v != nil && v.AccessDeniedError != nil { - return v.AccessDeniedError +func (v *HistoryService_ResetStickyTaskList_Result) GetEntityNotExistError() (o *shared.EntityNotExistsError) { + if v != nil && v.EntityNotExistError != nil { + return v.EntityNotExistError } return } -// IsSetAccessDeniedError returns true if AccessDeniedError is not nil. -func (v *HistoryService_ResetQueue_Result) IsSetAccessDeniedError() bool { - return v != nil && v.AccessDeniedError != nil +// IsSetEntityNotExistError returns true if EntityNotExistError is not nil. +func (v *HistoryService_ResetStickyTaskList_Result) IsSetEntityNotExistError() bool { + return v != nil && v.EntityNotExistError != nil +} + +// GetShardOwnershipLostError returns the value of ShardOwnershipLostError if it is set or its +// zero value if it is unset. +func (v *HistoryService_ResetStickyTaskList_Result) GetShardOwnershipLostError() (o *ShardOwnershipLostError) { + if v != nil && v.ShardOwnershipLostError != nil { + return v.ShardOwnershipLostError + } + + return +} + +// IsSetShardOwnershipLostError returns true if ShardOwnershipLostError is not nil. +func (v *HistoryService_ResetStickyTaskList_Result) IsSetShardOwnershipLostError() bool { + return v != nil && v.ShardOwnershipLostError != nil +} + +// GetLimitExceededError returns the value of LimitExceededError if it is set or its +// zero value if it is unset. +func (v *HistoryService_ResetStickyTaskList_Result) GetLimitExceededError() (o *shared.LimitExceededError) { + if v != nil && v.LimitExceededError != nil { + return v.LimitExceededError + } + + return +} + +// IsSetLimitExceededError returns true if LimitExceededError is not nil. +func (v *HistoryService_ResetStickyTaskList_Result) IsSetLimitExceededError() bool { + return v != nil && v.LimitExceededError != nil +} + +// GetServiceBusyError returns the value of ServiceBusyError if it is set or its +// zero value if it is unset. +func (v *HistoryService_ResetStickyTaskList_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 *HistoryService_ResetStickyTaskList_Result) IsSetServiceBusyError() bool { + return v != nil && v.ServiceBusyError != nil +} + +// GetWorkflowExecutionAlreadyCompletedError returns the value of WorkflowExecutionAlreadyCompletedError if it is set or its +// zero value if it is unset. +func (v *HistoryService_ResetStickyTaskList_Result) GetWorkflowExecutionAlreadyCompletedError() (o *shared.WorkflowExecutionAlreadyCompletedError) { + if v != nil && v.WorkflowExecutionAlreadyCompletedError != nil { + return v.WorkflowExecutionAlreadyCompletedError + } + + return +} + +// IsSetWorkflowExecutionAlreadyCompletedError returns true if WorkflowExecutionAlreadyCompletedError is not nil. +func (v *HistoryService_ResetStickyTaskList_Result) IsSetWorkflowExecutionAlreadyCompletedError() bool { + return v != nil && v.WorkflowExecutionAlreadyCompletedError != 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 "ResetQueue" for this struct. -func (v *HistoryService_ResetQueue_Result) MethodName() string { - return "ResetQueue" +// This will always be "ResetStickyTaskList" for this struct. +func (v *HistoryService_ResetStickyTaskList_Result) MethodName() string { + return "ResetStickyTaskList" } // EnvelopeType returns the kind of value inside this struct. // // This will always be Reply for this struct. -func (v *HistoryService_ResetQueue_Result) EnvelopeType() wire.EnvelopeType { +func (v *HistoryService_ResetStickyTaskList_Result) EnvelopeType() wire.EnvelopeType { return wire.Reply } -// HistoryService_ResetStickyTaskList_Args represents the arguments for the HistoryService.ResetStickyTaskList function. +// HistoryService_ResetWorkflowExecution_Args represents the arguments for the HistoryService.ResetWorkflowExecution function. // -// The arguments for ResetStickyTaskList are sent and received over the wire as this struct. -type HistoryService_ResetStickyTaskList_Args struct { - ResetRequest *ResetStickyTaskListRequest `json:"resetRequest,omitempty"` +// The arguments for ResetWorkflowExecution are sent and received over the wire as this struct. +type HistoryService_ResetWorkflowExecution_Args struct { + ResetRequest *ResetWorkflowExecutionRequest `json:"resetRequest,omitempty"` } -// ToWire translates a HistoryService_ResetStickyTaskList_Args struct into a Thrift-level intermediate +// ToWire translates a HistoryService_ResetWorkflowExecution_Args struct into a Thrift-level intermediate // representation. This intermediate representation may be serialized // into bytes using a ThriftRW protocol implementation. // @@ -30945,7 +32343,7 @@ type HistoryService_ResetStickyTaskList_Args struct { // if err := binaryProtocol.Encode(x, writer); err != nil { // return err // } -func (v *HistoryService_ResetStickyTaskList_Args) ToWire() (wire.Value, error) { +func (v *HistoryService_ResetWorkflowExecution_Args) ToWire() (wire.Value, error) { var ( fields [1]wire.Field i int = 0 @@ -30965,17 +32363,17 @@ func (v *HistoryService_ResetStickyTaskList_Args) ToWire() (wire.Value, error) { return wire.NewValueStruct(wire.Struct{Fields: fields[:i]}), nil } -func _ResetStickyTaskListRequest_Read(w wire.Value) (*ResetStickyTaskListRequest, error) { - var v ResetStickyTaskListRequest +func _ResetWorkflowExecutionRequest_1_Read(w wire.Value) (*ResetWorkflowExecutionRequest, error) { + var v ResetWorkflowExecutionRequest err := v.FromWire(w) return &v, err } -// FromWire deserializes a HistoryService_ResetStickyTaskList_Args struct from its Thrift-level +// FromWire deserializes a HistoryService_ResetWorkflowExecution_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 HistoryService_ResetStickyTaskList_Args struct +// An error is returned if we were unable to build a HistoryService_ResetWorkflowExecution_Args struct // from the provided intermediate representation. // // x, err := binaryProtocol.Decode(reader, wire.TStruct) @@ -30983,19 +32381,19 @@ func _ResetStickyTaskListRequest_Read(w wire.Value) (*ResetStickyTaskListRequest // return nil, err // } // -// var v HistoryService_ResetStickyTaskList_Args +// var v HistoryService_ResetWorkflowExecution_Args // if err := v.FromWire(x); err != nil { // return nil, err // } // return &v, nil -func (v *HistoryService_ResetStickyTaskList_Args) FromWire(w wire.Value) error { +func (v *HistoryService_ResetWorkflowExecution_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.ResetRequest, err = _ResetStickyTaskListRequest_Read(field.Value) + v.ResetRequest, err = _ResetWorkflowExecutionRequest_1_Read(field.Value) if err != nil { return err } @@ -31007,9 +32405,9 @@ func (v *HistoryService_ResetStickyTaskList_Args) FromWire(w wire.Value) error { return nil } -// String returns a readable string representation of a HistoryService_ResetStickyTaskList_Args +// String returns a readable string representation of a HistoryService_ResetWorkflowExecution_Args // struct. -func (v *HistoryService_ResetStickyTaskList_Args) String() string { +func (v *HistoryService_ResetWorkflowExecution_Args) String() string { if v == nil { return "" } @@ -31021,14 +32419,14 @@ func (v *HistoryService_ResetStickyTaskList_Args) String() string { i++ } - return fmt.Sprintf("HistoryService_ResetStickyTaskList_Args{%v}", strings.Join(fields[:i], ", ")) + return fmt.Sprintf("HistoryService_ResetWorkflowExecution_Args{%v}", strings.Join(fields[:i], ", ")) } -// Equals returns true if all the fields of this HistoryService_ResetStickyTaskList_Args match the -// provided HistoryService_ResetStickyTaskList_Args. +// Equals returns true if all the fields of this HistoryService_ResetWorkflowExecution_Args match the +// provided HistoryService_ResetWorkflowExecution_Args. // // This function performs a deep comparison. -func (v *HistoryService_ResetStickyTaskList_Args) Equals(rhs *HistoryService_ResetStickyTaskList_Args) bool { +func (v *HistoryService_ResetWorkflowExecution_Args) Equals(rhs *HistoryService_ResetWorkflowExecution_Args) bool { if v == nil { return rhs == nil } else if rhs == nil { @@ -31042,8 +32440,8 @@ func (v *HistoryService_ResetStickyTaskList_Args) Equals(rhs *HistoryService_Res } // MarshalLogObject implements zapcore.ObjectMarshaler, enabling -// fast logging of HistoryService_ResetStickyTaskList_Args. -func (v *HistoryService_ResetStickyTaskList_Args) MarshalLogObject(enc zapcore.ObjectEncoder) (err error) { +// fast logging of HistoryService_ResetWorkflowExecution_Args. +func (v *HistoryService_ResetWorkflowExecution_Args) MarshalLogObject(enc zapcore.ObjectEncoder) (err error) { if v == nil { return nil } @@ -31055,7 +32453,7 @@ func (v *HistoryService_ResetStickyTaskList_Args) MarshalLogObject(enc zapcore.O // GetResetRequest returns the value of ResetRequest if it is set or its // zero value if it is unset. -func (v *HistoryService_ResetStickyTaskList_Args) GetResetRequest() (o *ResetStickyTaskListRequest) { +func (v *HistoryService_ResetWorkflowExecution_Args) GetResetRequest() (o *ResetWorkflowExecutionRequest) { if v != nil && v.ResetRequest != nil { return v.ResetRequest } @@ -31064,80 +32462,80 @@ func (v *HistoryService_ResetStickyTaskList_Args) GetResetRequest() (o *ResetSti } // IsSetResetRequest returns true if ResetRequest is not nil. -func (v *HistoryService_ResetStickyTaskList_Args) IsSetResetRequest() bool { +func (v *HistoryService_ResetWorkflowExecution_Args) IsSetResetRequest() bool { return v != nil && v.ResetRequest != 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 "ResetStickyTaskList" for this struct. -func (v *HistoryService_ResetStickyTaskList_Args) MethodName() string { - return "ResetStickyTaskList" +// This will always be "ResetWorkflowExecution" for this struct. +func (v *HistoryService_ResetWorkflowExecution_Args) MethodName() string { + return "ResetWorkflowExecution" } // EnvelopeType returns the kind of value inside this struct. // // This will always be Call for this struct. -func (v *HistoryService_ResetStickyTaskList_Args) EnvelopeType() wire.EnvelopeType { +func (v *HistoryService_ResetWorkflowExecution_Args) EnvelopeType() wire.EnvelopeType { return wire.Call } -// HistoryService_ResetStickyTaskList_Helper provides functions that aid in handling the -// parameters and return values of the HistoryService.ResetStickyTaskList +// HistoryService_ResetWorkflowExecution_Helper provides functions that aid in handling the +// parameters and return values of the HistoryService.ResetWorkflowExecution // function. -var HistoryService_ResetStickyTaskList_Helper = struct { - // Args accepts the parameters of ResetStickyTaskList in-order and returns +var HistoryService_ResetWorkflowExecution_Helper = struct { + // Args accepts the parameters of ResetWorkflowExecution in-order and returns // the arguments struct for the function. Args func( - resetRequest *ResetStickyTaskListRequest, - ) *HistoryService_ResetStickyTaskList_Args + resetRequest *ResetWorkflowExecutionRequest, + ) *HistoryService_ResetWorkflowExecution_Args // IsException returns true if the given error can be thrown - // by ResetStickyTaskList. + // by ResetWorkflowExecution. // - // An error can be thrown by ResetStickyTaskList only if the + // An error can be thrown by ResetWorkflowExecution 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 ResetStickyTaskList + // WrapResponse returns the result struct for ResetWorkflowExecution // given its return value and error. // // This allows mapping values and errors returned by - // ResetStickyTaskList into a serializable result struct. + // ResetWorkflowExecution into a serializable result struct. // WrapResponse returns a non-nil error if the provided - // error cannot be thrown by ResetStickyTaskList + // error cannot be thrown by ResetWorkflowExecution // - // value, err := ResetStickyTaskList(args) - // result, err := HistoryService_ResetStickyTaskList_Helper.WrapResponse(value, err) + // value, err := ResetWorkflowExecution(args) + // result, err := HistoryService_ResetWorkflowExecution_Helper.WrapResponse(value, err) // if err != nil { - // return fmt.Errorf("unexpected error from ResetStickyTaskList: %v", err) + // return fmt.Errorf("unexpected error from ResetWorkflowExecution: %v", err) // } // serialize(result) - WrapResponse func(*ResetStickyTaskListResponse, error) (*HistoryService_ResetStickyTaskList_Result, error) + WrapResponse func(*shared.ResetWorkflowExecutionResponse, error) (*HistoryService_ResetWorkflowExecution_Result, error) - // UnwrapResponse takes the result struct for ResetStickyTaskList + // UnwrapResponse takes the result struct for ResetWorkflowExecution // and returns the value or error returned by it. // - // The error is non-nil only if ResetStickyTaskList threw an + // The error is non-nil only if ResetWorkflowExecution threw an // exception. // // result := deserialize(bytes) - // value, err := HistoryService_ResetStickyTaskList_Helper.UnwrapResponse(result) - UnwrapResponse func(*HistoryService_ResetStickyTaskList_Result) (*ResetStickyTaskListResponse, error) + // value, err := HistoryService_ResetWorkflowExecution_Helper.UnwrapResponse(result) + UnwrapResponse func(*HistoryService_ResetWorkflowExecution_Result) (*shared.ResetWorkflowExecutionResponse, error) }{} func init() { - HistoryService_ResetStickyTaskList_Helper.Args = func( - resetRequest *ResetStickyTaskListRequest, - ) *HistoryService_ResetStickyTaskList_Args { - return &HistoryService_ResetStickyTaskList_Args{ + HistoryService_ResetWorkflowExecution_Helper.Args = func( + resetRequest *ResetWorkflowExecutionRequest, + ) *HistoryService_ResetWorkflowExecution_Args { + return &HistoryService_ResetWorkflowExecution_Args{ ResetRequest: resetRequest, } } - HistoryService_ResetStickyTaskList_Helper.IsException = func(err error) bool { + HistoryService_ResetWorkflowExecution_Helper.IsException = func(err error) bool { switch err.(type) { case *shared.BadRequestError: return true @@ -31147,63 +32545,63 @@ func init() { return true case *ShardOwnershipLostError: return true + case *shared.DomainNotActiveError: + return true case *shared.LimitExceededError: return true case *shared.ServiceBusyError: return true - case *shared.WorkflowExecutionAlreadyCompletedError: - return true default: return false } } - HistoryService_ResetStickyTaskList_Helper.WrapResponse = func(success *ResetStickyTaskListResponse, err error) (*HistoryService_ResetStickyTaskList_Result, error) { + HistoryService_ResetWorkflowExecution_Helper.WrapResponse = func(success *shared.ResetWorkflowExecutionResponse, err error) (*HistoryService_ResetWorkflowExecution_Result, error) { if err == nil { - return &HistoryService_ResetStickyTaskList_Result{Success: success}, nil + return &HistoryService_ResetWorkflowExecution_Result{Success: success}, nil } switch e := err.(type) { case *shared.BadRequestError: if e == nil { - return nil, errors.New("WrapResponse received non-nil error type with nil value for HistoryService_ResetStickyTaskList_Result.BadRequestError") + return nil, errors.New("WrapResponse received non-nil error type with nil value for HistoryService_ResetWorkflowExecution_Result.BadRequestError") } - return &HistoryService_ResetStickyTaskList_Result{BadRequestError: e}, nil + return &HistoryService_ResetWorkflowExecution_Result{BadRequestError: e}, nil case *shared.InternalServiceError: if e == nil { - return nil, errors.New("WrapResponse received non-nil error type with nil value for HistoryService_ResetStickyTaskList_Result.InternalServiceError") + return nil, errors.New("WrapResponse received non-nil error type with nil value for HistoryService_ResetWorkflowExecution_Result.InternalServiceError") } - return &HistoryService_ResetStickyTaskList_Result{InternalServiceError: e}, nil + return &HistoryService_ResetWorkflowExecution_Result{InternalServiceError: e}, nil case *shared.EntityNotExistsError: if e == nil { - return nil, errors.New("WrapResponse received non-nil error type with nil value for HistoryService_ResetStickyTaskList_Result.EntityNotExistError") + return nil, errors.New("WrapResponse received non-nil error type with nil value for HistoryService_ResetWorkflowExecution_Result.EntityNotExistError") } - return &HistoryService_ResetStickyTaskList_Result{EntityNotExistError: e}, nil + return &HistoryService_ResetWorkflowExecution_Result{EntityNotExistError: e}, nil case *ShardOwnershipLostError: if e == nil { - return nil, errors.New("WrapResponse received non-nil error type with nil value for HistoryService_ResetStickyTaskList_Result.ShardOwnershipLostError") + return nil, errors.New("WrapResponse received non-nil error type with nil value for HistoryService_ResetWorkflowExecution_Result.ShardOwnershipLostError") } - return &HistoryService_ResetStickyTaskList_Result{ShardOwnershipLostError: e}, nil - case *shared.LimitExceededError: + return &HistoryService_ResetWorkflowExecution_Result{ShardOwnershipLostError: e}, nil + case *shared.DomainNotActiveError: if e == nil { - return nil, errors.New("WrapResponse received non-nil error type with nil value for HistoryService_ResetStickyTaskList_Result.LimitExceededError") + return nil, errors.New("WrapResponse received non-nil error type with nil value for HistoryService_ResetWorkflowExecution_Result.DomainNotActiveError") } - return &HistoryService_ResetStickyTaskList_Result{LimitExceededError: e}, nil - case *shared.ServiceBusyError: + return &HistoryService_ResetWorkflowExecution_Result{DomainNotActiveError: e}, nil + case *shared.LimitExceededError: if e == nil { - return nil, errors.New("WrapResponse received non-nil error type with nil value for HistoryService_ResetStickyTaskList_Result.ServiceBusyError") + return nil, errors.New("WrapResponse received non-nil error type with nil value for HistoryService_ResetWorkflowExecution_Result.LimitExceededError") } - return &HistoryService_ResetStickyTaskList_Result{ServiceBusyError: e}, nil - case *shared.WorkflowExecutionAlreadyCompletedError: + return &HistoryService_ResetWorkflowExecution_Result{LimitExceededError: e}, nil + case *shared.ServiceBusyError: if e == nil { - return nil, errors.New("WrapResponse received non-nil error type with nil value for HistoryService_ResetStickyTaskList_Result.WorkflowExecutionAlreadyCompletedError") + return nil, errors.New("WrapResponse received non-nil error type with nil value for HistoryService_ResetWorkflowExecution_Result.ServiceBusyError") } - return &HistoryService_ResetStickyTaskList_Result{WorkflowExecutionAlreadyCompletedError: e}, nil + return &HistoryService_ResetWorkflowExecution_Result{ServiceBusyError: e}, nil } return nil, err } - HistoryService_ResetStickyTaskList_Helper.UnwrapResponse = func(result *HistoryService_ResetStickyTaskList_Result) (success *ResetStickyTaskListResponse, err error) { + HistoryService_ResetWorkflowExecution_Helper.UnwrapResponse = func(result *HistoryService_ResetWorkflowExecution_Result) (success *shared.ResetWorkflowExecutionResponse, err error) { if result.BadRequestError != nil { err = result.BadRequestError return @@ -31220,6 +32618,10 @@ func init() { err = result.ShardOwnershipLostError return } + if result.DomainNotActiveError != nil { + err = result.DomainNotActiveError + return + } if result.LimitExceededError != nil { err = result.LimitExceededError return @@ -31228,10 +32630,6 @@ func init() { err = result.ServiceBusyError return } - if result.WorkflowExecutionAlreadyCompletedError != nil { - err = result.WorkflowExecutionAlreadyCompletedError - return - } if result.Success != nil { success = result.Success @@ -31244,24 +32642,24 @@ func init() { } -// HistoryService_ResetStickyTaskList_Result represents the result of a HistoryService.ResetStickyTaskList function call. +// HistoryService_ResetWorkflowExecution_Result represents the result of a HistoryService.ResetWorkflowExecution function call. // -// The result of a ResetStickyTaskList execution is sent and received over the wire as this struct. +// The result of a ResetWorkflowExecution execution is sent and received over the wire as this struct. // // Success is set only if the function did not throw an exception. -type HistoryService_ResetStickyTaskList_Result struct { - // Value returned by ResetStickyTaskList after a successful execution. - Success *ResetStickyTaskListResponse `json:"success,omitempty"` - BadRequestError *shared.BadRequestError `json:"badRequestError,omitempty"` - InternalServiceError *shared.InternalServiceError `json:"internalServiceError,omitempty"` - EntityNotExistError *shared.EntityNotExistsError `json:"entityNotExistError,omitempty"` - ShardOwnershipLostError *ShardOwnershipLostError `json:"shardOwnershipLostError,omitempty"` - LimitExceededError *shared.LimitExceededError `json:"limitExceededError,omitempty"` - ServiceBusyError *shared.ServiceBusyError `json:"serviceBusyError,omitempty"` - WorkflowExecutionAlreadyCompletedError *shared.WorkflowExecutionAlreadyCompletedError `json:"workflowExecutionAlreadyCompletedError,omitempty"` +type HistoryService_ResetWorkflowExecution_Result struct { + // Value returned by ResetWorkflowExecution after a successful execution. + Success *shared.ResetWorkflowExecutionResponse `json:"success,omitempty"` + BadRequestError *shared.BadRequestError `json:"badRequestError,omitempty"` + InternalServiceError *shared.InternalServiceError `json:"internalServiceError,omitempty"` + EntityNotExistError *shared.EntityNotExistsError `json:"entityNotExistError,omitempty"` + ShardOwnershipLostError *ShardOwnershipLostError `json:"shardOwnershipLostError,omitempty"` + DomainNotActiveError *shared.DomainNotActiveError `json:"domainNotActiveError,omitempty"` + LimitExceededError *shared.LimitExceededError `json:"limitExceededError,omitempty"` + ServiceBusyError *shared.ServiceBusyError `json:"serviceBusyError,omitempty"` } -// ToWire translates a HistoryService_ResetStickyTaskList_Result struct into a Thrift-level intermediate +// ToWire translates a HistoryService_ResetWorkflowExecution_Result struct into a Thrift-level intermediate // representation. This intermediate representation may be serialized // into bytes using a ThriftRW protocol implementation. // @@ -31276,7 +32674,7 @@ type HistoryService_ResetStickyTaskList_Result struct { // if err := binaryProtocol.Encode(x, writer); err != nil { // return err // } -func (v *HistoryService_ResetStickyTaskList_Result) ToWire() (wire.Value, error) { +func (v *HistoryService_ResetWorkflowExecution_Result) ToWire() (wire.Value, error) { var ( fields [8]wire.Field i int = 0 @@ -31324,24 +32722,24 @@ func (v *HistoryService_ResetStickyTaskList_Result) ToWire() (wire.Value, error) fields[i] = wire.Field{ID: 4, Value: w} i++ } - if v.LimitExceededError != nil { - w, err = v.LimitExceededError.ToWire() + if v.DomainNotActiveError != nil { + w, err = v.DomainNotActiveError.ToWire() if err != nil { return w, err } fields[i] = wire.Field{ID: 5, Value: w} i++ } - if v.ServiceBusyError != nil { - w, err = v.ServiceBusyError.ToWire() + if v.LimitExceededError != nil { + w, err = v.LimitExceededError.ToWire() if err != nil { return w, err } fields[i] = wire.Field{ID: 6, Value: w} i++ } - if v.WorkflowExecutionAlreadyCompletedError != nil { - w, err = v.WorkflowExecutionAlreadyCompletedError.ToWire() + if v.ServiceBusyError != nil { + w, err = v.ServiceBusyError.ToWire() if err != nil { return w, err } @@ -31350,23 +32748,23 @@ func (v *HistoryService_ResetStickyTaskList_Result) ToWire() (wire.Value, error) } if i != 1 { - return wire.Value{}, fmt.Errorf("HistoryService_ResetStickyTaskList_Result should have exactly one field: got %v fields", i) + return wire.Value{}, fmt.Errorf("HistoryService_ResetWorkflowExecution_Result should have exactly one field: got %v fields", i) } return wire.NewValueStruct(wire.Struct{Fields: fields[:i]}), nil } -func _ResetStickyTaskListResponse_Read(w wire.Value) (*ResetStickyTaskListResponse, error) { - var v ResetStickyTaskListResponse +func _ResetWorkflowExecutionResponse_Read(w wire.Value) (*shared.ResetWorkflowExecutionResponse, error) { + var v shared.ResetWorkflowExecutionResponse err := v.FromWire(w) return &v, err } -// FromWire deserializes a HistoryService_ResetStickyTaskList_Result struct from its Thrift-level +// FromWire deserializes a HistoryService_ResetWorkflowExecution_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 HistoryService_ResetStickyTaskList_Result struct +// An error is returned if we were unable to build a HistoryService_ResetWorkflowExecution_Result struct // from the provided intermediate representation. // // x, err := binaryProtocol.Decode(reader, wire.TStruct) @@ -31374,19 +32772,19 @@ func _ResetStickyTaskListResponse_Read(w wire.Value) (*ResetStickyTaskListRespon // return nil, err // } // -// var v HistoryService_ResetStickyTaskList_Result +// var v HistoryService_ResetWorkflowExecution_Result // if err := v.FromWire(x); err != nil { // return nil, err // } // return &v, nil -func (v *HistoryService_ResetStickyTaskList_Result) FromWire(w wire.Value) error { +func (v *HistoryService_ResetWorkflowExecution_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 = _ResetStickyTaskListResponse_Read(field.Value) + v.Success, err = _ResetWorkflowExecutionResponse_Read(field.Value) if err != nil { return err } @@ -31426,7 +32824,7 @@ func (v *HistoryService_ResetStickyTaskList_Result) FromWire(w wire.Value) error } case 5: if field.Value.Type() == wire.TStruct { - v.LimitExceededError, err = _LimitExceededError_Read(field.Value) + v.DomainNotActiveError, err = _DomainNotActiveError_Read(field.Value) if err != nil { return err } @@ -31434,7 +32832,7 @@ func (v *HistoryService_ResetStickyTaskList_Result) FromWire(w wire.Value) error } case 6: if field.Value.Type() == wire.TStruct { - v.ServiceBusyError, err = _ServiceBusyError_Read(field.Value) + v.LimitExceededError, err = _LimitExceededError_Read(field.Value) if err != nil { return err } @@ -31442,7 +32840,7 @@ func (v *HistoryService_ResetStickyTaskList_Result) FromWire(w wire.Value) error } case 7: if field.Value.Type() == wire.TStruct { - v.WorkflowExecutionAlreadyCompletedError, err = _WorkflowExecutionAlreadyCompletedError_Read(field.Value) + v.ServiceBusyError, err = _ServiceBusyError_Read(field.Value) if err != nil { return err } @@ -31467,25 +32865,25 @@ func (v *HistoryService_ResetStickyTaskList_Result) FromWire(w wire.Value) error if v.ShardOwnershipLostError != nil { count++ } - if v.LimitExceededError != nil { + if v.DomainNotActiveError != nil { count++ } - if v.ServiceBusyError != nil { + if v.LimitExceededError != nil { count++ } - if v.WorkflowExecutionAlreadyCompletedError != nil { + if v.ServiceBusyError != nil { count++ } if count != 1 { - return fmt.Errorf("HistoryService_ResetStickyTaskList_Result should have exactly one field: got %v fields", count) + return fmt.Errorf("HistoryService_ResetWorkflowExecution_Result should have exactly one field: got %v fields", count) } return nil } -// String returns a readable string representation of a HistoryService_ResetStickyTaskList_Result +// String returns a readable string representation of a HistoryService_ResetWorkflowExecution_Result // struct. -func (v *HistoryService_ResetStickyTaskList_Result) String() string { +func (v *HistoryService_ResetWorkflowExecution_Result) String() string { if v == nil { return "" } @@ -31512,6 +32910,10 @@ func (v *HistoryService_ResetStickyTaskList_Result) String() string { fields[i] = fmt.Sprintf("ShardOwnershipLostError: %v", v.ShardOwnershipLostError) i++ } + if v.DomainNotActiveError != nil { + fields[i] = fmt.Sprintf("DomainNotActiveError: %v", v.DomainNotActiveError) + i++ + } if v.LimitExceededError != nil { fields[i] = fmt.Sprintf("LimitExceededError: %v", v.LimitExceededError) i++ @@ -31520,19 +32922,15 @@ func (v *HistoryService_ResetStickyTaskList_Result) String() string { fields[i] = fmt.Sprintf("ServiceBusyError: %v", v.ServiceBusyError) i++ } - if v.WorkflowExecutionAlreadyCompletedError != nil { - fields[i] = fmt.Sprintf("WorkflowExecutionAlreadyCompletedError: %v", v.WorkflowExecutionAlreadyCompletedError) - i++ - } - return fmt.Sprintf("HistoryService_ResetStickyTaskList_Result{%v}", strings.Join(fields[:i], ", ")) + return fmt.Sprintf("HistoryService_ResetWorkflowExecution_Result{%v}", strings.Join(fields[:i], ", ")) } -// Equals returns true if all the fields of this HistoryService_ResetStickyTaskList_Result match the -// provided HistoryService_ResetStickyTaskList_Result. +// Equals returns true if all the fields of this HistoryService_ResetWorkflowExecution_Result match the +// provided HistoryService_ResetWorkflowExecution_Result. // // This function performs a deep comparison. -func (v *HistoryService_ResetStickyTaskList_Result) Equals(rhs *HistoryService_ResetStickyTaskList_Result) bool { +func (v *HistoryService_ResetWorkflowExecution_Result) Equals(rhs *HistoryService_ResetWorkflowExecution_Result) bool { if v == nil { return rhs == nil } else if rhs == nil { @@ -31553,13 +32951,13 @@ func (v *HistoryService_ResetStickyTaskList_Result) Equals(rhs *HistoryService_R if !((v.ShardOwnershipLostError == nil && rhs.ShardOwnershipLostError == nil) || (v.ShardOwnershipLostError != nil && rhs.ShardOwnershipLostError != nil && v.ShardOwnershipLostError.Equals(rhs.ShardOwnershipLostError))) { return false } - if !((v.LimitExceededError == nil && rhs.LimitExceededError == nil) || (v.LimitExceededError != nil && rhs.LimitExceededError != nil && v.LimitExceededError.Equals(rhs.LimitExceededError))) { + 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))) { + if !((v.LimitExceededError == nil && rhs.LimitExceededError == nil) || (v.LimitExceededError != nil && rhs.LimitExceededError != nil && v.LimitExceededError.Equals(rhs.LimitExceededError))) { return false } - if !((v.WorkflowExecutionAlreadyCompletedError == nil && rhs.WorkflowExecutionAlreadyCompletedError == nil) || (v.WorkflowExecutionAlreadyCompletedError != nil && rhs.WorkflowExecutionAlreadyCompletedError != nil && v.WorkflowExecutionAlreadyCompletedError.Equals(rhs.WorkflowExecutionAlreadyCompletedError))) { + if !((v.ServiceBusyError == nil && rhs.ServiceBusyError == nil) || (v.ServiceBusyError != nil && rhs.ServiceBusyError != nil && v.ServiceBusyError.Equals(rhs.ServiceBusyError))) { return false } @@ -31567,8 +32965,8 @@ func (v *HistoryService_ResetStickyTaskList_Result) Equals(rhs *HistoryService_R } // MarshalLogObject implements zapcore.ObjectMarshaler, enabling -// fast logging of HistoryService_ResetStickyTaskList_Result. -func (v *HistoryService_ResetStickyTaskList_Result) MarshalLogObject(enc zapcore.ObjectEncoder) (err error) { +// fast logging of HistoryService_ResetWorkflowExecution_Result. +func (v *HistoryService_ResetWorkflowExecution_Result) MarshalLogObject(enc zapcore.ObjectEncoder) (err error) { if v == nil { return nil } @@ -31587,21 +32985,21 @@ func (v *HistoryService_ResetStickyTaskList_Result) MarshalLogObject(enc zapcore if v.ShardOwnershipLostError != nil { err = multierr.Append(err, enc.AddObject("shardOwnershipLostError", v.ShardOwnershipLostError)) } + if v.DomainNotActiveError != nil { + err = multierr.Append(err, enc.AddObject("domainNotActiveError", v.DomainNotActiveError)) + } if v.LimitExceededError != nil { err = multierr.Append(err, enc.AddObject("limitExceededError", v.LimitExceededError)) } if v.ServiceBusyError != nil { err = multierr.Append(err, enc.AddObject("serviceBusyError", v.ServiceBusyError)) } - if v.WorkflowExecutionAlreadyCompletedError != nil { - err = multierr.Append(err, enc.AddObject("workflowExecutionAlreadyCompletedError", v.WorkflowExecutionAlreadyCompletedError)) - } return err } // GetSuccess returns the value of Success if it is set or its // zero value if it is unset. -func (v *HistoryService_ResetStickyTaskList_Result) GetSuccess() (o *ResetStickyTaskListResponse) { +func (v *HistoryService_ResetWorkflowExecution_Result) GetSuccess() (o *shared.ResetWorkflowExecutionResponse) { if v != nil && v.Success != nil { return v.Success } @@ -31610,13 +33008,13 @@ func (v *HistoryService_ResetStickyTaskList_Result) GetSuccess() (o *ResetSticky } // IsSetSuccess returns true if Success is not nil. -func (v *HistoryService_ResetStickyTaskList_Result) IsSetSuccess() bool { +func (v *HistoryService_ResetWorkflowExecution_Result) IsSetSuccess() bool { return v != nil && v.Success != nil } // GetBadRequestError returns the value of BadRequestError if it is set or its // zero value if it is unset. -func (v *HistoryService_ResetStickyTaskList_Result) GetBadRequestError() (o *shared.BadRequestError) { +func (v *HistoryService_ResetWorkflowExecution_Result) GetBadRequestError() (o *shared.BadRequestError) { if v != nil && v.BadRequestError != nil { return v.BadRequestError } @@ -31625,13 +33023,13 @@ func (v *HistoryService_ResetStickyTaskList_Result) GetBadRequestError() (o *sha } // IsSetBadRequestError returns true if BadRequestError is not nil. -func (v *HistoryService_ResetStickyTaskList_Result) IsSetBadRequestError() bool { +func (v *HistoryService_ResetWorkflowExecution_Result) IsSetBadRequestError() bool { return v != nil && v.BadRequestError != nil } // GetInternalServiceError returns the value of InternalServiceError if it is set or its // zero value if it is unset. -func (v *HistoryService_ResetStickyTaskList_Result) GetInternalServiceError() (o *shared.InternalServiceError) { +func (v *HistoryService_ResetWorkflowExecution_Result) GetInternalServiceError() (o *shared.InternalServiceError) { if v != nil && v.InternalServiceError != nil { return v.InternalServiceError } @@ -31640,13 +33038,13 @@ func (v *HistoryService_ResetStickyTaskList_Result) GetInternalServiceError() (o } // IsSetInternalServiceError returns true if InternalServiceError is not nil. -func (v *HistoryService_ResetStickyTaskList_Result) IsSetInternalServiceError() bool { +func (v *HistoryService_ResetWorkflowExecution_Result) IsSetInternalServiceError() bool { return v != nil && v.InternalServiceError != nil } // GetEntityNotExistError returns the value of EntityNotExistError if it is set or its // zero value if it is unset. -func (v *HistoryService_ResetStickyTaskList_Result) GetEntityNotExistError() (o *shared.EntityNotExistsError) { +func (v *HistoryService_ResetWorkflowExecution_Result) GetEntityNotExistError() (o *shared.EntityNotExistsError) { if v != nil && v.EntityNotExistError != nil { return v.EntityNotExistError } @@ -31655,13 +33053,13 @@ func (v *HistoryService_ResetStickyTaskList_Result) GetEntityNotExistError() (o } // IsSetEntityNotExistError returns true if EntityNotExistError is not nil. -func (v *HistoryService_ResetStickyTaskList_Result) IsSetEntityNotExistError() bool { +func (v *HistoryService_ResetWorkflowExecution_Result) IsSetEntityNotExistError() bool { return v != nil && v.EntityNotExistError != nil } // GetShardOwnershipLostError returns the value of ShardOwnershipLostError if it is set or its // zero value if it is unset. -func (v *HistoryService_ResetStickyTaskList_Result) GetShardOwnershipLostError() (o *ShardOwnershipLostError) { +func (v *HistoryService_ResetWorkflowExecution_Result) GetShardOwnershipLostError() (o *ShardOwnershipLostError) { if v != nil && v.ShardOwnershipLostError != nil { return v.ShardOwnershipLostError } @@ -31670,13 +33068,28 @@ func (v *HistoryService_ResetStickyTaskList_Result) GetShardOwnershipLostError() } // IsSetShardOwnershipLostError returns true if ShardOwnershipLostError is not nil. -func (v *HistoryService_ResetStickyTaskList_Result) IsSetShardOwnershipLostError() bool { +func (v *HistoryService_ResetWorkflowExecution_Result) IsSetShardOwnershipLostError() bool { return v != nil && v.ShardOwnershipLostError != nil } +// GetDomainNotActiveError returns the value of DomainNotActiveError if it is set or its +// zero value if it is unset. +func (v *HistoryService_ResetWorkflowExecution_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 *HistoryService_ResetWorkflowExecution_Result) IsSetDomainNotActiveError() bool { + return v != nil && v.DomainNotActiveError != nil +} + // GetLimitExceededError returns the value of LimitExceededError if it is set or its // zero value if it is unset. -func (v *HistoryService_ResetStickyTaskList_Result) GetLimitExceededError() (o *shared.LimitExceededError) { +func (v *HistoryService_ResetWorkflowExecution_Result) GetLimitExceededError() (o *shared.LimitExceededError) { if v != nil && v.LimitExceededError != nil { return v.LimitExceededError } @@ -31685,13 +33098,13 @@ func (v *HistoryService_ResetStickyTaskList_Result) GetLimitExceededError() (o * } // IsSetLimitExceededError returns true if LimitExceededError is not nil. -func (v *HistoryService_ResetStickyTaskList_Result) IsSetLimitExceededError() bool { +func (v *HistoryService_ResetWorkflowExecution_Result) IsSetLimitExceededError() bool { return v != nil && v.LimitExceededError != nil } // GetServiceBusyError returns the value of ServiceBusyError if it is set or its // zero value if it is unset. -func (v *HistoryService_ResetStickyTaskList_Result) GetServiceBusyError() (o *shared.ServiceBusyError) { +func (v *HistoryService_ResetWorkflowExecution_Result) GetServiceBusyError() (o *shared.ServiceBusyError) { if v != nil && v.ServiceBusyError != nil { return v.ServiceBusyError } @@ -31700,48 +33113,33 @@ func (v *HistoryService_ResetStickyTaskList_Result) GetServiceBusyError() (o *sh } // IsSetServiceBusyError returns true if ServiceBusyError is not nil. -func (v *HistoryService_ResetStickyTaskList_Result) IsSetServiceBusyError() bool { +func (v *HistoryService_ResetWorkflowExecution_Result) IsSetServiceBusyError() bool { return v != nil && v.ServiceBusyError != nil } -// GetWorkflowExecutionAlreadyCompletedError returns the value of WorkflowExecutionAlreadyCompletedError if it is set or its -// zero value if it is unset. -func (v *HistoryService_ResetStickyTaskList_Result) GetWorkflowExecutionAlreadyCompletedError() (o *shared.WorkflowExecutionAlreadyCompletedError) { - if v != nil && v.WorkflowExecutionAlreadyCompletedError != nil { - return v.WorkflowExecutionAlreadyCompletedError - } - - return -} - -// IsSetWorkflowExecutionAlreadyCompletedError returns true if WorkflowExecutionAlreadyCompletedError is not nil. -func (v *HistoryService_ResetStickyTaskList_Result) IsSetWorkflowExecutionAlreadyCompletedError() bool { - return v != nil && v.WorkflowExecutionAlreadyCompletedError != 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 "ResetStickyTaskList" for this struct. -func (v *HistoryService_ResetStickyTaskList_Result) MethodName() string { - return "ResetStickyTaskList" +// This will always be "ResetWorkflowExecution" for this struct. +func (v *HistoryService_ResetWorkflowExecution_Result) MethodName() string { + return "ResetWorkflowExecution" } // EnvelopeType returns the kind of value inside this struct. // // This will always be Reply for this struct. -func (v *HistoryService_ResetStickyTaskList_Result) EnvelopeType() wire.EnvelopeType { +func (v *HistoryService_ResetWorkflowExecution_Result) EnvelopeType() wire.EnvelopeType { return wire.Reply } -// HistoryService_ResetWorkflowExecution_Args represents the arguments for the HistoryService.ResetWorkflowExecution function. +// HistoryService_RespondActivityTaskCanceled_Args represents the arguments for the HistoryService.RespondActivityTaskCanceled function. // -// The arguments for ResetWorkflowExecution are sent and received over the wire as this struct. -type HistoryService_ResetWorkflowExecution_Args struct { - ResetRequest *ResetWorkflowExecutionRequest `json:"resetRequest,omitempty"` +// The arguments for RespondActivityTaskCanceled are sent and received over the wire as this struct. +type HistoryService_RespondActivityTaskCanceled_Args struct { + CanceledRequest *RespondActivityTaskCanceledRequest `json:"canceledRequest,omitempty"` } -// ToWire translates a HistoryService_ResetWorkflowExecution_Args struct into a Thrift-level intermediate +// ToWire translates a HistoryService_RespondActivityTaskCanceled_Args struct into a Thrift-level intermediate // representation. This intermediate representation may be serialized // into bytes using a ThriftRW protocol implementation. // @@ -31756,7 +33154,7 @@ type HistoryService_ResetWorkflowExecution_Args struct { // if err := binaryProtocol.Encode(x, writer); err != nil { // return err // } -func (v *HistoryService_ResetWorkflowExecution_Args) ToWire() (wire.Value, error) { +func (v *HistoryService_RespondActivityTaskCanceled_Args) ToWire() (wire.Value, error) { var ( fields [1]wire.Field i int = 0 @@ -31764,8 +33162,8 @@ func (v *HistoryService_ResetWorkflowExecution_Args) ToWire() (wire.Value, error err error ) - if v.ResetRequest != nil { - w, err = v.ResetRequest.ToWire() + if v.CanceledRequest != nil { + w, err = v.CanceledRequest.ToWire() if err != nil { return w, err } @@ -31776,17 +33174,17 @@ func (v *HistoryService_ResetWorkflowExecution_Args) ToWire() (wire.Value, error return wire.NewValueStruct(wire.Struct{Fields: fields[:i]}), nil } -func _ResetWorkflowExecutionRequest_1_Read(w wire.Value) (*ResetWorkflowExecutionRequest, error) { - var v ResetWorkflowExecutionRequest +func _RespondActivityTaskCanceledRequest_1_Read(w wire.Value) (*RespondActivityTaskCanceledRequest, error) { + var v RespondActivityTaskCanceledRequest err := v.FromWire(w) return &v, err } -// FromWire deserializes a HistoryService_ResetWorkflowExecution_Args struct from its Thrift-level +// FromWire deserializes a HistoryService_RespondActivityTaskCanceled_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 HistoryService_ResetWorkflowExecution_Args struct +// An error is returned if we were unable to build a HistoryService_RespondActivityTaskCanceled_Args struct // from the provided intermediate representation. // // x, err := binaryProtocol.Decode(reader, wire.TStruct) @@ -31794,19 +33192,19 @@ func _ResetWorkflowExecutionRequest_1_Read(w wire.Value) (*ResetWorkflowExecutio // return nil, err // } // -// var v HistoryService_ResetWorkflowExecution_Args +// var v HistoryService_RespondActivityTaskCanceled_Args // if err := v.FromWire(x); err != nil { // return nil, err // } // return &v, nil -func (v *HistoryService_ResetWorkflowExecution_Args) FromWire(w wire.Value) error { +func (v *HistoryService_RespondActivityTaskCanceled_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.ResetRequest, err = _ResetWorkflowExecutionRequest_1_Read(field.Value) + v.CanceledRequest, err = _RespondActivityTaskCanceledRequest_1_Read(field.Value) if err != nil { return err } @@ -31818,34 +33216,34 @@ func (v *HistoryService_ResetWorkflowExecution_Args) FromWire(w wire.Value) erro return nil } -// String returns a readable string representation of a HistoryService_ResetWorkflowExecution_Args +// String returns a readable string representation of a HistoryService_RespondActivityTaskCanceled_Args // struct. -func (v *HistoryService_ResetWorkflowExecution_Args) String() string { +func (v *HistoryService_RespondActivityTaskCanceled_Args) String() string { if v == nil { return "" } var fields [1]string i := 0 - if v.ResetRequest != nil { - fields[i] = fmt.Sprintf("ResetRequest: %v", v.ResetRequest) + if v.CanceledRequest != nil { + fields[i] = fmt.Sprintf("CanceledRequest: %v", v.CanceledRequest) i++ } - return fmt.Sprintf("HistoryService_ResetWorkflowExecution_Args{%v}", strings.Join(fields[:i], ", ")) + return fmt.Sprintf("HistoryService_RespondActivityTaskCanceled_Args{%v}", strings.Join(fields[:i], ", ")) } -// Equals returns true if all the fields of this HistoryService_ResetWorkflowExecution_Args match the -// provided HistoryService_ResetWorkflowExecution_Args. +// Equals returns true if all the fields of this HistoryService_RespondActivityTaskCanceled_Args match the +// provided HistoryService_RespondActivityTaskCanceled_Args. // // This function performs a deep comparison. -func (v *HistoryService_ResetWorkflowExecution_Args) Equals(rhs *HistoryService_ResetWorkflowExecution_Args) bool { +func (v *HistoryService_RespondActivityTaskCanceled_Args) Equals(rhs *HistoryService_RespondActivityTaskCanceled_Args) bool { if v == nil { return rhs == nil } else if rhs == nil { return false } - if !((v.ResetRequest == nil && rhs.ResetRequest == nil) || (v.ResetRequest != nil && rhs.ResetRequest != nil && v.ResetRequest.Equals(rhs.ResetRequest))) { + if !((v.CanceledRequest == nil && rhs.CanceledRequest == nil) || (v.CanceledRequest != nil && rhs.CanceledRequest != nil && v.CanceledRequest.Equals(rhs.CanceledRequest))) { return false } @@ -31853,102 +33251,103 @@ func (v *HistoryService_ResetWorkflowExecution_Args) Equals(rhs *HistoryService_ } // MarshalLogObject implements zapcore.ObjectMarshaler, enabling -// fast logging of HistoryService_ResetWorkflowExecution_Args. -func (v *HistoryService_ResetWorkflowExecution_Args) MarshalLogObject(enc zapcore.ObjectEncoder) (err error) { +// fast logging of HistoryService_RespondActivityTaskCanceled_Args. +func (v *HistoryService_RespondActivityTaskCanceled_Args) MarshalLogObject(enc zapcore.ObjectEncoder) (err error) { if v == nil { return nil } - if v.ResetRequest != nil { - err = multierr.Append(err, enc.AddObject("resetRequest", v.ResetRequest)) + if v.CanceledRequest != nil { + err = multierr.Append(err, enc.AddObject("canceledRequest", v.CanceledRequest)) } return err } -// GetResetRequest returns the value of ResetRequest if it is set or its +// GetCanceledRequest returns the value of CanceledRequest if it is set or its // zero value if it is unset. -func (v *HistoryService_ResetWorkflowExecution_Args) GetResetRequest() (o *ResetWorkflowExecutionRequest) { - if v != nil && v.ResetRequest != nil { - return v.ResetRequest +func (v *HistoryService_RespondActivityTaskCanceled_Args) GetCanceledRequest() (o *RespondActivityTaskCanceledRequest) { + if v != nil && v.CanceledRequest != nil { + return v.CanceledRequest } return } -// IsSetResetRequest returns true if ResetRequest is not nil. -func (v *HistoryService_ResetWorkflowExecution_Args) IsSetResetRequest() bool { - return v != nil && v.ResetRequest != nil +// IsSetCanceledRequest returns true if CanceledRequest is not nil. +func (v *HistoryService_RespondActivityTaskCanceled_Args) IsSetCanceledRequest() bool { + return v != nil && v.CanceledRequest != 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 "ResetWorkflowExecution" for this struct. -func (v *HistoryService_ResetWorkflowExecution_Args) MethodName() string { - return "ResetWorkflowExecution" +// This will always be "RespondActivityTaskCanceled" for this struct. +func (v *HistoryService_RespondActivityTaskCanceled_Args) MethodName() string { + return "RespondActivityTaskCanceled" } // EnvelopeType returns the kind of value inside this struct. // // This will always be Call for this struct. -func (v *HistoryService_ResetWorkflowExecution_Args) EnvelopeType() wire.EnvelopeType { +func (v *HistoryService_RespondActivityTaskCanceled_Args) EnvelopeType() wire.EnvelopeType { return wire.Call } -// HistoryService_ResetWorkflowExecution_Helper provides functions that aid in handling the -// parameters and return values of the HistoryService.ResetWorkflowExecution +// HistoryService_RespondActivityTaskCanceled_Helper provides functions that aid in handling the +// parameters and return values of the HistoryService.RespondActivityTaskCanceled // function. -var HistoryService_ResetWorkflowExecution_Helper = struct { - // Args accepts the parameters of ResetWorkflowExecution in-order and returns +var HistoryService_RespondActivityTaskCanceled_Helper = struct { + // Args accepts the parameters of RespondActivityTaskCanceled in-order and returns // the arguments struct for the function. Args func( - resetRequest *ResetWorkflowExecutionRequest, - ) *HistoryService_ResetWorkflowExecution_Args + canceledRequest *RespondActivityTaskCanceledRequest, + ) *HistoryService_RespondActivityTaskCanceled_Args // IsException returns true if the given error can be thrown - // by ResetWorkflowExecution. + // by RespondActivityTaskCanceled. // - // An error can be thrown by ResetWorkflowExecution only if the + // An error can be thrown by RespondActivityTaskCanceled 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 ResetWorkflowExecution - // given its return value and error. + // WrapResponse returns the result struct for RespondActivityTaskCanceled + // given the error returned by it. The provided error may + // be nil if RespondActivityTaskCanceled did not fail. // - // This allows mapping values and errors returned by - // ResetWorkflowExecution into a serializable result struct. - // WrapResponse returns a non-nil error if the provided - // error cannot be thrown by ResetWorkflowExecution + // This allows mapping errors returned by RespondActivityTaskCanceled into a + // serializable result struct. WrapResponse returns a + // non-nil error if the provided error cannot be thrown by + // RespondActivityTaskCanceled // - // value, err := ResetWorkflowExecution(args) - // result, err := HistoryService_ResetWorkflowExecution_Helper.WrapResponse(value, err) + // err := RespondActivityTaskCanceled(args) + // result, err := HistoryService_RespondActivityTaskCanceled_Helper.WrapResponse(err) // if err != nil { - // return fmt.Errorf("unexpected error from ResetWorkflowExecution: %v", err) + // return fmt.Errorf("unexpected error from RespondActivityTaskCanceled: %v", err) // } // serialize(result) - WrapResponse func(*shared.ResetWorkflowExecutionResponse, error) (*HistoryService_ResetWorkflowExecution_Result, error) + WrapResponse func(error) (*HistoryService_RespondActivityTaskCanceled_Result, error) - // UnwrapResponse takes the result struct for ResetWorkflowExecution - // and returns the value or error returned by it. + // UnwrapResponse takes the result struct for RespondActivityTaskCanceled + // and returns the erorr returned by it (if any). // - // The error is non-nil only if ResetWorkflowExecution threw an + // The error is non-nil only if RespondActivityTaskCanceled threw an // exception. // // result := deserialize(bytes) - // value, err := HistoryService_ResetWorkflowExecution_Helper.UnwrapResponse(result) - UnwrapResponse func(*HistoryService_ResetWorkflowExecution_Result) (*shared.ResetWorkflowExecutionResponse, error) + // err := HistoryService_RespondActivityTaskCanceled_Helper.UnwrapResponse(result) + UnwrapResponse func(*HistoryService_RespondActivityTaskCanceled_Result) error }{} func init() { - HistoryService_ResetWorkflowExecution_Helper.Args = func( - resetRequest *ResetWorkflowExecutionRequest, - ) *HistoryService_ResetWorkflowExecution_Args { - return &HistoryService_ResetWorkflowExecution_Args{ - ResetRequest: resetRequest, + HistoryService_RespondActivityTaskCanceled_Helper.Args = func( + canceledRequest *RespondActivityTaskCanceledRequest, + ) *HistoryService_RespondActivityTaskCanceled_Args { + return &HistoryService_RespondActivityTaskCanceled_Args{ + CanceledRequest: canceledRequest, } } - HistoryService_ResetWorkflowExecution_Helper.IsException = func(err error) bool { + HistoryService_RespondActivityTaskCanceled_Helper.IsException = func(err error) bool { switch err.(type) { case *shared.BadRequestError: return true @@ -31964,57 +33363,64 @@ func init() { return true case *shared.ServiceBusyError: return true + case *shared.WorkflowExecutionAlreadyCompletedError: + return true default: return false } } - HistoryService_ResetWorkflowExecution_Helper.WrapResponse = func(success *shared.ResetWorkflowExecutionResponse, err error) (*HistoryService_ResetWorkflowExecution_Result, error) { + HistoryService_RespondActivityTaskCanceled_Helper.WrapResponse = func(err error) (*HistoryService_RespondActivityTaskCanceled_Result, error) { if err == nil { - return &HistoryService_ResetWorkflowExecution_Result{Success: success}, nil + return &HistoryService_RespondActivityTaskCanceled_Result{}, nil } switch e := err.(type) { case *shared.BadRequestError: if e == nil { - return nil, errors.New("WrapResponse received non-nil error type with nil value for HistoryService_ResetWorkflowExecution_Result.BadRequestError") + return nil, errors.New("WrapResponse received non-nil error type with nil value for HistoryService_RespondActivityTaskCanceled_Result.BadRequestError") } - return &HistoryService_ResetWorkflowExecution_Result{BadRequestError: e}, nil + return &HistoryService_RespondActivityTaskCanceled_Result{BadRequestError: e}, nil case *shared.InternalServiceError: if e == nil { - return nil, errors.New("WrapResponse received non-nil error type with nil value for HistoryService_ResetWorkflowExecution_Result.InternalServiceError") + return nil, errors.New("WrapResponse received non-nil error type with nil value for HistoryService_RespondActivityTaskCanceled_Result.InternalServiceError") } - return &HistoryService_ResetWorkflowExecution_Result{InternalServiceError: e}, nil + return &HistoryService_RespondActivityTaskCanceled_Result{InternalServiceError: e}, nil case *shared.EntityNotExistsError: if e == nil { - return nil, errors.New("WrapResponse received non-nil error type with nil value for HistoryService_ResetWorkflowExecution_Result.EntityNotExistError") + return nil, errors.New("WrapResponse received non-nil error type with nil value for HistoryService_RespondActivityTaskCanceled_Result.EntityNotExistError") } - return &HistoryService_ResetWorkflowExecution_Result{EntityNotExistError: e}, nil + return &HistoryService_RespondActivityTaskCanceled_Result{EntityNotExistError: e}, nil case *ShardOwnershipLostError: if e == nil { - return nil, errors.New("WrapResponse received non-nil error type with nil value for HistoryService_ResetWorkflowExecution_Result.ShardOwnershipLostError") + return nil, errors.New("WrapResponse received non-nil error type with nil value for HistoryService_RespondActivityTaskCanceled_Result.ShardOwnershipLostError") } - return &HistoryService_ResetWorkflowExecution_Result{ShardOwnershipLostError: e}, nil + return &HistoryService_RespondActivityTaskCanceled_Result{ShardOwnershipLostError: e}, nil case *shared.DomainNotActiveError: if e == nil { - return nil, errors.New("WrapResponse received non-nil error type with nil value for HistoryService_ResetWorkflowExecution_Result.DomainNotActiveError") + return nil, errors.New("WrapResponse received non-nil error type with nil value for HistoryService_RespondActivityTaskCanceled_Result.DomainNotActiveError") } - return &HistoryService_ResetWorkflowExecution_Result{DomainNotActiveError: e}, nil + return &HistoryService_RespondActivityTaskCanceled_Result{DomainNotActiveError: e}, nil case *shared.LimitExceededError: if e == nil { - return nil, errors.New("WrapResponse received non-nil error type with nil value for HistoryService_ResetWorkflowExecution_Result.LimitExceededError") + return nil, errors.New("WrapResponse received non-nil error type with nil value for HistoryService_RespondActivityTaskCanceled_Result.LimitExceededError") } - return &HistoryService_ResetWorkflowExecution_Result{LimitExceededError: e}, nil + return &HistoryService_RespondActivityTaskCanceled_Result{LimitExceededError: e}, nil case *shared.ServiceBusyError: if e == nil { - return nil, errors.New("WrapResponse received non-nil error type with nil value for HistoryService_ResetWorkflowExecution_Result.ServiceBusyError") + return nil, errors.New("WrapResponse received non-nil error type with nil value for HistoryService_RespondActivityTaskCanceled_Result.ServiceBusyError") } - return &HistoryService_ResetWorkflowExecution_Result{ServiceBusyError: e}, nil + return &HistoryService_RespondActivityTaskCanceled_Result{ServiceBusyError: e}, nil + case *shared.WorkflowExecutionAlreadyCompletedError: + if e == nil { + return nil, errors.New("WrapResponse received non-nil error type with nil value for HistoryService_RespondActivityTaskCanceled_Result.WorkflowExecutionAlreadyCompletedError") + } + return &HistoryService_RespondActivityTaskCanceled_Result{WorkflowExecutionAlreadyCompletedError: e}, nil } return nil, err } - HistoryService_ResetWorkflowExecution_Helper.UnwrapResponse = func(result *HistoryService_ResetWorkflowExecution_Result) (success *shared.ResetWorkflowExecutionResponse, err error) { + HistoryService_RespondActivityTaskCanceled_Helper.UnwrapResponse = func(result *HistoryService_RespondActivityTaskCanceled_Result) (err error) { if result.BadRequestError != nil { err = result.BadRequestError return @@ -32043,36 +33449,30 @@ func init() { err = result.ServiceBusyError return } - - if result.Success != nil { - success = result.Success + if result.WorkflowExecutionAlreadyCompletedError != nil { + err = result.WorkflowExecutionAlreadyCompletedError return } - - err = errors.New("expected a non-void result") return } } -// HistoryService_ResetWorkflowExecution_Result represents the result of a HistoryService.ResetWorkflowExecution function call. -// -// The result of a ResetWorkflowExecution execution is sent and received over the wire as this struct. +// HistoryService_RespondActivityTaskCanceled_Result represents the result of a HistoryService.RespondActivityTaskCanceled function call. // -// Success is set only if the function did not throw an exception. -type HistoryService_ResetWorkflowExecution_Result struct { - // Value returned by ResetWorkflowExecution after a successful execution. - Success *shared.ResetWorkflowExecutionResponse `json:"success,omitempty"` - BadRequestError *shared.BadRequestError `json:"badRequestError,omitempty"` - InternalServiceError *shared.InternalServiceError `json:"internalServiceError,omitempty"` - EntityNotExistError *shared.EntityNotExistsError `json:"entityNotExistError,omitempty"` - ShardOwnershipLostError *ShardOwnershipLostError `json:"shardOwnershipLostError,omitempty"` - DomainNotActiveError *shared.DomainNotActiveError `json:"domainNotActiveError,omitempty"` - LimitExceededError *shared.LimitExceededError `json:"limitExceededError,omitempty"` - ServiceBusyError *shared.ServiceBusyError `json:"serviceBusyError,omitempty"` +// The result of a RespondActivityTaskCanceled execution is sent and received over the wire as this struct. +type HistoryService_RespondActivityTaskCanceled_Result struct { + BadRequestError *shared.BadRequestError `json:"badRequestError,omitempty"` + InternalServiceError *shared.InternalServiceError `json:"internalServiceError,omitempty"` + EntityNotExistError *shared.EntityNotExistsError `json:"entityNotExistError,omitempty"` + ShardOwnershipLostError *ShardOwnershipLostError `json:"shardOwnershipLostError,omitempty"` + DomainNotActiveError *shared.DomainNotActiveError `json:"domainNotActiveError,omitempty"` + LimitExceededError *shared.LimitExceededError `json:"limitExceededError,omitempty"` + ServiceBusyError *shared.ServiceBusyError `json:"serviceBusyError,omitempty"` + WorkflowExecutionAlreadyCompletedError *shared.WorkflowExecutionAlreadyCompletedError `json:"workflowExecutionAlreadyCompletedError,omitempty"` } -// ToWire translates a HistoryService_ResetWorkflowExecution_Result struct into a Thrift-level intermediate +// ToWire translates a HistoryService_RespondActivityTaskCanceled_Result struct into a Thrift-level intermediate // representation. This intermediate representation may be serialized // into bytes using a ThriftRW protocol implementation. // @@ -32087,7 +33487,7 @@ type HistoryService_ResetWorkflowExecution_Result struct { // if err := binaryProtocol.Encode(x, writer); err != nil { // return err // } -func (v *HistoryService_ResetWorkflowExecution_Result) ToWire() (wire.Value, error) { +func (v *HistoryService_RespondActivityTaskCanceled_Result) ToWire() (wire.Value, error) { var ( fields [8]wire.Field i int = 0 @@ -32095,14 +33495,6 @@ func (v *HistoryService_ResetWorkflowExecution_Result) ToWire() (wire.Value, err 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.BadRequestError != nil { w, err = v.BadRequestError.ToWire() if err != nil { @@ -32159,25 +33551,27 @@ func (v *HistoryService_ResetWorkflowExecution_Result) ToWire() (wire.Value, err fields[i] = wire.Field{ID: 7, Value: w} i++ } + if v.WorkflowExecutionAlreadyCompletedError != nil { + w, err = v.WorkflowExecutionAlreadyCompletedError.ToWire() + if err != nil { + return w, err + } + fields[i] = wire.Field{ID: 8, Value: w} + i++ + } - if i != 1 { - return wire.Value{}, fmt.Errorf("HistoryService_ResetWorkflowExecution_Result should have exactly one field: got %v fields", i) + if i > 1 { + return wire.Value{}, fmt.Errorf("HistoryService_RespondActivityTaskCanceled_Result should have at most one field: got %v fields", i) } return wire.NewValueStruct(wire.Struct{Fields: fields[:i]}), nil } -func _ResetWorkflowExecutionResponse_Read(w wire.Value) (*shared.ResetWorkflowExecutionResponse, error) { - var v shared.ResetWorkflowExecutionResponse - err := v.FromWire(w) - return &v, err -} - -// FromWire deserializes a HistoryService_ResetWorkflowExecution_Result struct from its Thrift-level +// FromWire deserializes a HistoryService_RespondActivityTaskCanceled_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 HistoryService_ResetWorkflowExecution_Result struct +// An error is returned if we were unable to build a HistoryService_RespondActivityTaskCanceled_Result struct // from the provided intermediate representation. // // x, err := binaryProtocol.Decode(reader, wire.TStruct) @@ -32185,24 +33579,16 @@ func _ResetWorkflowExecutionResponse_Read(w wire.Value) (*shared.ResetWorkflowEx // return nil, err // } // -// var v HistoryService_ResetWorkflowExecution_Result +// var v HistoryService_RespondActivityTaskCanceled_Result // if err := v.FromWire(x); err != nil { // return nil, err // } // return &v, nil -func (v *HistoryService_ResetWorkflowExecution_Result) FromWire(w wire.Value) error { +func (v *HistoryService_RespondActivityTaskCanceled_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 = _ResetWorkflowExecutionResponse_Read(field.Value) - if err != nil { - return err - } - - } case 1: if field.Value.Type() == wire.TStruct { v.BadRequestError, err = _BadRequestError_Read(field.Value) @@ -32258,14 +33644,19 @@ func (v *HistoryService_ResetWorkflowExecution_Result) FromWire(w wire.Value) er return err } + } + case 8: + if field.Value.Type() == wire.TStruct { + v.WorkflowExecutionAlreadyCompletedError, err = _WorkflowExecutionAlreadyCompletedError_Read(field.Value) + if err != nil { + return err + } + } } } count := 0 - if v.Success != nil { - count++ - } if v.BadRequestError != nil { count++ } @@ -32287,26 +33678,25 @@ func (v *HistoryService_ResetWorkflowExecution_Result) FromWire(w wire.Value) er if v.ServiceBusyError != nil { count++ } - if count != 1 { - return fmt.Errorf("HistoryService_ResetWorkflowExecution_Result should have exactly one field: got %v fields", count) + if v.WorkflowExecutionAlreadyCompletedError != nil { + count++ + } + if count > 1 { + return fmt.Errorf("HistoryService_RespondActivityTaskCanceled_Result should have at most one field: got %v fields", count) } return nil } -// String returns a readable string representation of a HistoryService_ResetWorkflowExecution_Result +// String returns a readable string representation of a HistoryService_RespondActivityTaskCanceled_Result // struct. -func (v *HistoryService_ResetWorkflowExecution_Result) String() string { +func (v *HistoryService_RespondActivityTaskCanceled_Result) String() string { if v == nil { return "" } var fields [8]string i := 0 - if v.Success != nil { - fields[i] = fmt.Sprintf("Success: %v", v.Success) - i++ - } if v.BadRequestError != nil { fields[i] = fmt.Sprintf("BadRequestError: %v", v.BadRequestError) i++ @@ -32335,23 +33725,24 @@ func (v *HistoryService_ResetWorkflowExecution_Result) String() string { fields[i] = fmt.Sprintf("ServiceBusyError: %v", v.ServiceBusyError) i++ } + if v.WorkflowExecutionAlreadyCompletedError != nil { + fields[i] = fmt.Sprintf("WorkflowExecutionAlreadyCompletedError: %v", v.WorkflowExecutionAlreadyCompletedError) + i++ + } - return fmt.Sprintf("HistoryService_ResetWorkflowExecution_Result{%v}", strings.Join(fields[:i], ", ")) + return fmt.Sprintf("HistoryService_RespondActivityTaskCanceled_Result{%v}", strings.Join(fields[:i], ", ")) } -// Equals returns true if all the fields of this HistoryService_ResetWorkflowExecution_Result match the -// provided HistoryService_ResetWorkflowExecution_Result. +// Equals returns true if all the fields of this HistoryService_RespondActivityTaskCanceled_Result match the +// provided HistoryService_RespondActivityTaskCanceled_Result. // // This function performs a deep comparison. -func (v *HistoryService_ResetWorkflowExecution_Result) Equals(rhs *HistoryService_ResetWorkflowExecution_Result) bool { +func (v *HistoryService_RespondActivityTaskCanceled_Result) Equals(rhs *HistoryService_RespondActivityTaskCanceled_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.BadRequestError == nil && rhs.BadRequestError == nil) || (v.BadRequestError != nil && rhs.BadRequestError != nil && v.BadRequestError.Equals(rhs.BadRequestError))) { return false } @@ -32373,19 +33764,19 @@ func (v *HistoryService_ResetWorkflowExecution_Result) Equals(rhs *HistoryServic if !((v.ServiceBusyError == nil && rhs.ServiceBusyError == nil) || (v.ServiceBusyError != nil && rhs.ServiceBusyError != nil && v.ServiceBusyError.Equals(rhs.ServiceBusyError))) { return false } + if !((v.WorkflowExecutionAlreadyCompletedError == nil && rhs.WorkflowExecutionAlreadyCompletedError == nil) || (v.WorkflowExecutionAlreadyCompletedError != nil && rhs.WorkflowExecutionAlreadyCompletedError != nil && v.WorkflowExecutionAlreadyCompletedError.Equals(rhs.WorkflowExecutionAlreadyCompletedError))) { + return false + } return true } // MarshalLogObject implements zapcore.ObjectMarshaler, enabling -// fast logging of HistoryService_ResetWorkflowExecution_Result. -func (v *HistoryService_ResetWorkflowExecution_Result) MarshalLogObject(enc zapcore.ObjectEncoder) (err error) { +// fast logging of HistoryService_RespondActivityTaskCanceled_Result. +func (v *HistoryService_RespondActivityTaskCanceled_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.BadRequestError != nil { err = multierr.Append(err, enc.AddObject("badRequestError", v.BadRequestError)) } @@ -32407,27 +33798,15 @@ func (v *HistoryService_ResetWorkflowExecution_Result) MarshalLogObject(enc zapc if v.ServiceBusyError != nil { err = multierr.Append(err, enc.AddObject("serviceBusyError", v.ServiceBusyError)) } - return err -} - -// GetSuccess returns the value of Success if it is set or its -// zero value if it is unset. -func (v *HistoryService_ResetWorkflowExecution_Result) GetSuccess() (o *shared.ResetWorkflowExecutionResponse) { - if v != nil && v.Success != nil { - return v.Success + if v.WorkflowExecutionAlreadyCompletedError != nil { + err = multierr.Append(err, enc.AddObject("workflowExecutionAlreadyCompletedError", v.WorkflowExecutionAlreadyCompletedError)) } - - return -} - -// IsSetSuccess returns true if Success is not nil. -func (v *HistoryService_ResetWorkflowExecution_Result) IsSetSuccess() bool { - return v != nil && v.Success != nil + return err } // GetBadRequestError returns the value of BadRequestError if it is set or its // zero value if it is unset. -func (v *HistoryService_ResetWorkflowExecution_Result) GetBadRequestError() (o *shared.BadRequestError) { +func (v *HistoryService_RespondActivityTaskCanceled_Result) GetBadRequestError() (o *shared.BadRequestError) { if v != nil && v.BadRequestError != nil { return v.BadRequestError } @@ -32436,13 +33815,13 @@ func (v *HistoryService_ResetWorkflowExecution_Result) GetBadRequestError() (o * } // IsSetBadRequestError returns true if BadRequestError is not nil. -func (v *HistoryService_ResetWorkflowExecution_Result) IsSetBadRequestError() bool { +func (v *HistoryService_RespondActivityTaskCanceled_Result) IsSetBadRequestError() bool { return v != nil && v.BadRequestError != nil } // GetInternalServiceError returns the value of InternalServiceError if it is set or its // zero value if it is unset. -func (v *HistoryService_ResetWorkflowExecution_Result) GetInternalServiceError() (o *shared.InternalServiceError) { +func (v *HistoryService_RespondActivityTaskCanceled_Result) GetInternalServiceError() (o *shared.InternalServiceError) { if v != nil && v.InternalServiceError != nil { return v.InternalServiceError } @@ -32451,13 +33830,13 @@ func (v *HistoryService_ResetWorkflowExecution_Result) GetInternalServiceError() } // IsSetInternalServiceError returns true if InternalServiceError is not nil. -func (v *HistoryService_ResetWorkflowExecution_Result) IsSetInternalServiceError() bool { +func (v *HistoryService_RespondActivityTaskCanceled_Result) IsSetInternalServiceError() bool { return v != nil && v.InternalServiceError != nil } // GetEntityNotExistError returns the value of EntityNotExistError if it is set or its // zero value if it is unset. -func (v *HistoryService_ResetWorkflowExecution_Result) GetEntityNotExistError() (o *shared.EntityNotExistsError) { +func (v *HistoryService_RespondActivityTaskCanceled_Result) GetEntityNotExistError() (o *shared.EntityNotExistsError) { if v != nil && v.EntityNotExistError != nil { return v.EntityNotExistError } @@ -32466,13 +33845,13 @@ func (v *HistoryService_ResetWorkflowExecution_Result) GetEntityNotExistError() } // IsSetEntityNotExistError returns true if EntityNotExistError is not nil. -func (v *HistoryService_ResetWorkflowExecution_Result) IsSetEntityNotExistError() bool { +func (v *HistoryService_RespondActivityTaskCanceled_Result) IsSetEntityNotExistError() bool { return v != nil && v.EntityNotExistError != nil } // GetShardOwnershipLostError returns the value of ShardOwnershipLostError if it is set or its // zero value if it is unset. -func (v *HistoryService_ResetWorkflowExecution_Result) GetShardOwnershipLostError() (o *ShardOwnershipLostError) { +func (v *HistoryService_RespondActivityTaskCanceled_Result) GetShardOwnershipLostError() (o *ShardOwnershipLostError) { if v != nil && v.ShardOwnershipLostError != nil { return v.ShardOwnershipLostError } @@ -32481,13 +33860,13 @@ func (v *HistoryService_ResetWorkflowExecution_Result) GetShardOwnershipLostErro } // IsSetShardOwnershipLostError returns true if ShardOwnershipLostError is not nil. -func (v *HistoryService_ResetWorkflowExecution_Result) IsSetShardOwnershipLostError() bool { +func (v *HistoryService_RespondActivityTaskCanceled_Result) IsSetShardOwnershipLostError() bool { return v != nil && v.ShardOwnershipLostError != nil } // GetDomainNotActiveError returns the value of DomainNotActiveError if it is set or its // zero value if it is unset. -func (v *HistoryService_ResetWorkflowExecution_Result) GetDomainNotActiveError() (o *shared.DomainNotActiveError) { +func (v *HistoryService_RespondActivityTaskCanceled_Result) GetDomainNotActiveError() (o *shared.DomainNotActiveError) { if v != nil && v.DomainNotActiveError != nil { return v.DomainNotActiveError } @@ -32496,13 +33875,13 @@ func (v *HistoryService_ResetWorkflowExecution_Result) GetDomainNotActiveError() } // IsSetDomainNotActiveError returns true if DomainNotActiveError is not nil. -func (v *HistoryService_ResetWorkflowExecution_Result) IsSetDomainNotActiveError() bool { +func (v *HistoryService_RespondActivityTaskCanceled_Result) IsSetDomainNotActiveError() bool { return v != nil && v.DomainNotActiveError != nil } // GetLimitExceededError returns the value of LimitExceededError if it is set or its // zero value if it is unset. -func (v *HistoryService_ResetWorkflowExecution_Result) GetLimitExceededError() (o *shared.LimitExceededError) { +func (v *HistoryService_RespondActivityTaskCanceled_Result) GetLimitExceededError() (o *shared.LimitExceededError) { if v != nil && v.LimitExceededError != nil { return v.LimitExceededError } @@ -32511,13 +33890,13 @@ func (v *HistoryService_ResetWorkflowExecution_Result) GetLimitExceededError() ( } // IsSetLimitExceededError returns true if LimitExceededError is not nil. -func (v *HistoryService_ResetWorkflowExecution_Result) IsSetLimitExceededError() bool { +func (v *HistoryService_RespondActivityTaskCanceled_Result) IsSetLimitExceededError() bool { return v != nil && v.LimitExceededError != nil } // GetServiceBusyError returns the value of ServiceBusyError if it is set or its // zero value if it is unset. -func (v *HistoryService_ResetWorkflowExecution_Result) GetServiceBusyError() (o *shared.ServiceBusyError) { +func (v *HistoryService_RespondActivityTaskCanceled_Result) GetServiceBusyError() (o *shared.ServiceBusyError) { if v != nil && v.ServiceBusyError != nil { return v.ServiceBusyError } @@ -32526,33 +33905,48 @@ func (v *HistoryService_ResetWorkflowExecution_Result) GetServiceBusyError() (o } // IsSetServiceBusyError returns true if ServiceBusyError is not nil. -func (v *HistoryService_ResetWorkflowExecution_Result) IsSetServiceBusyError() bool { +func (v *HistoryService_RespondActivityTaskCanceled_Result) IsSetServiceBusyError() bool { return v != nil && v.ServiceBusyError != nil } +// GetWorkflowExecutionAlreadyCompletedError returns the value of WorkflowExecutionAlreadyCompletedError if it is set or its +// zero value if it is unset. +func (v *HistoryService_RespondActivityTaskCanceled_Result) GetWorkflowExecutionAlreadyCompletedError() (o *shared.WorkflowExecutionAlreadyCompletedError) { + if v != nil && v.WorkflowExecutionAlreadyCompletedError != nil { + return v.WorkflowExecutionAlreadyCompletedError + } + + return +} + +// IsSetWorkflowExecutionAlreadyCompletedError returns true if WorkflowExecutionAlreadyCompletedError is not nil. +func (v *HistoryService_RespondActivityTaskCanceled_Result) IsSetWorkflowExecutionAlreadyCompletedError() bool { + return v != nil && v.WorkflowExecutionAlreadyCompletedError != 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 "ResetWorkflowExecution" for this struct. -func (v *HistoryService_ResetWorkflowExecution_Result) MethodName() string { - return "ResetWorkflowExecution" +// This will always be "RespondActivityTaskCanceled" for this struct. +func (v *HistoryService_RespondActivityTaskCanceled_Result) MethodName() string { + return "RespondActivityTaskCanceled" } // EnvelopeType returns the kind of value inside this struct. // // This will always be Reply for this struct. -func (v *HistoryService_ResetWorkflowExecution_Result) EnvelopeType() wire.EnvelopeType { +func (v *HistoryService_RespondActivityTaskCanceled_Result) EnvelopeType() wire.EnvelopeType { return wire.Reply } -// HistoryService_RespondActivityTaskCanceled_Args represents the arguments for the HistoryService.RespondActivityTaskCanceled function. +// HistoryService_RespondActivityTaskCompleted_Args represents the arguments for the HistoryService.RespondActivityTaskCompleted function. // -// The arguments for RespondActivityTaskCanceled are sent and received over the wire as this struct. -type HistoryService_RespondActivityTaskCanceled_Args struct { - CanceledRequest *RespondActivityTaskCanceledRequest `json:"canceledRequest,omitempty"` +// The arguments for RespondActivityTaskCompleted are sent and received over the wire as this struct. +type HistoryService_RespondActivityTaskCompleted_Args struct { + CompleteRequest *RespondActivityTaskCompletedRequest `json:"completeRequest,omitempty"` } -// ToWire translates a HistoryService_RespondActivityTaskCanceled_Args struct into a Thrift-level intermediate +// ToWire translates a HistoryService_RespondActivityTaskCompleted_Args struct into a Thrift-level intermediate // representation. This intermediate representation may be serialized // into bytes using a ThriftRW protocol implementation. // @@ -32567,7 +33961,7 @@ type HistoryService_RespondActivityTaskCanceled_Args struct { // if err := binaryProtocol.Encode(x, writer); err != nil { // return err // } -func (v *HistoryService_RespondActivityTaskCanceled_Args) ToWire() (wire.Value, error) { +func (v *HistoryService_RespondActivityTaskCompleted_Args) ToWire() (wire.Value, error) { var ( fields [1]wire.Field i int = 0 @@ -32575,8 +33969,8 @@ func (v *HistoryService_RespondActivityTaskCanceled_Args) ToWire() (wire.Value, err error ) - if v.CanceledRequest != nil { - w, err = v.CanceledRequest.ToWire() + if v.CompleteRequest != nil { + w, err = v.CompleteRequest.ToWire() if err != nil { return w, err } @@ -32587,17 +33981,17 @@ func (v *HistoryService_RespondActivityTaskCanceled_Args) ToWire() (wire.Value, return wire.NewValueStruct(wire.Struct{Fields: fields[:i]}), nil } -func _RespondActivityTaskCanceledRequest_1_Read(w wire.Value) (*RespondActivityTaskCanceledRequest, error) { - var v RespondActivityTaskCanceledRequest +func _RespondActivityTaskCompletedRequest_1_Read(w wire.Value) (*RespondActivityTaskCompletedRequest, error) { + var v RespondActivityTaskCompletedRequest err := v.FromWire(w) return &v, err } -// FromWire deserializes a HistoryService_RespondActivityTaskCanceled_Args struct from its Thrift-level +// FromWire deserializes a HistoryService_RespondActivityTaskCompleted_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 HistoryService_RespondActivityTaskCanceled_Args struct +// An error is returned if we were unable to build a HistoryService_RespondActivityTaskCompleted_Args struct // from the provided intermediate representation. // // x, err := binaryProtocol.Decode(reader, wire.TStruct) @@ -32605,19 +33999,19 @@ func _RespondActivityTaskCanceledRequest_1_Read(w wire.Value) (*RespondActivityT // return nil, err // } // -// var v HistoryService_RespondActivityTaskCanceled_Args +// var v HistoryService_RespondActivityTaskCompleted_Args // if err := v.FromWire(x); err != nil { // return nil, err // } // return &v, nil -func (v *HistoryService_RespondActivityTaskCanceled_Args) FromWire(w wire.Value) error { +func (v *HistoryService_RespondActivityTaskCompleted_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.CanceledRequest, err = _RespondActivityTaskCanceledRequest_1_Read(field.Value) + v.CompleteRequest, err = _RespondActivityTaskCompletedRequest_1_Read(field.Value) if err != nil { return err } @@ -32629,34 +34023,34 @@ func (v *HistoryService_RespondActivityTaskCanceled_Args) FromWire(w wire.Value) return nil } -// String returns a readable string representation of a HistoryService_RespondActivityTaskCanceled_Args +// String returns a readable string representation of a HistoryService_RespondActivityTaskCompleted_Args // struct. -func (v *HistoryService_RespondActivityTaskCanceled_Args) String() string { +func (v *HistoryService_RespondActivityTaskCompleted_Args) String() string { if v == nil { return "" } var fields [1]string i := 0 - if v.CanceledRequest != nil { - fields[i] = fmt.Sprintf("CanceledRequest: %v", v.CanceledRequest) + if v.CompleteRequest != nil { + fields[i] = fmt.Sprintf("CompleteRequest: %v", v.CompleteRequest) i++ } - return fmt.Sprintf("HistoryService_RespondActivityTaskCanceled_Args{%v}", strings.Join(fields[:i], ", ")) + return fmt.Sprintf("HistoryService_RespondActivityTaskCompleted_Args{%v}", strings.Join(fields[:i], ", ")) } -// Equals returns true if all the fields of this HistoryService_RespondActivityTaskCanceled_Args match the -// provided HistoryService_RespondActivityTaskCanceled_Args. +// Equals returns true if all the fields of this HistoryService_RespondActivityTaskCompleted_Args match the +// provided HistoryService_RespondActivityTaskCompleted_Args. // // This function performs a deep comparison. -func (v *HistoryService_RespondActivityTaskCanceled_Args) Equals(rhs *HistoryService_RespondActivityTaskCanceled_Args) bool { +func (v *HistoryService_RespondActivityTaskCompleted_Args) Equals(rhs *HistoryService_RespondActivityTaskCompleted_Args) bool { if v == nil { return rhs == nil } else if rhs == nil { return false } - if !((v.CanceledRequest == nil && rhs.CanceledRequest == nil) || (v.CanceledRequest != nil && rhs.CanceledRequest != nil && v.CanceledRequest.Equals(rhs.CanceledRequest))) { + if !((v.CompleteRequest == nil && rhs.CompleteRequest == nil) || (v.CompleteRequest != nil && rhs.CompleteRequest != nil && v.CompleteRequest.Equals(rhs.CompleteRequest))) { return false } @@ -32664,103 +34058,103 @@ func (v *HistoryService_RespondActivityTaskCanceled_Args) Equals(rhs *HistorySer } // MarshalLogObject implements zapcore.ObjectMarshaler, enabling -// fast logging of HistoryService_RespondActivityTaskCanceled_Args. -func (v *HistoryService_RespondActivityTaskCanceled_Args) MarshalLogObject(enc zapcore.ObjectEncoder) (err error) { +// fast logging of HistoryService_RespondActivityTaskCompleted_Args. +func (v *HistoryService_RespondActivityTaskCompleted_Args) MarshalLogObject(enc zapcore.ObjectEncoder) (err error) { if v == nil { return nil } - if v.CanceledRequest != nil { - err = multierr.Append(err, enc.AddObject("canceledRequest", v.CanceledRequest)) + if v.CompleteRequest != nil { + err = multierr.Append(err, enc.AddObject("completeRequest", v.CompleteRequest)) } return err } -// GetCanceledRequest returns the value of CanceledRequest if it is set or its +// GetCompleteRequest returns the value of CompleteRequest if it is set or its // zero value if it is unset. -func (v *HistoryService_RespondActivityTaskCanceled_Args) GetCanceledRequest() (o *RespondActivityTaskCanceledRequest) { - if v != nil && v.CanceledRequest != nil { - return v.CanceledRequest +func (v *HistoryService_RespondActivityTaskCompleted_Args) GetCompleteRequest() (o *RespondActivityTaskCompletedRequest) { + if v != nil && v.CompleteRequest != nil { + return v.CompleteRequest } return } -// IsSetCanceledRequest returns true if CanceledRequest is not nil. -func (v *HistoryService_RespondActivityTaskCanceled_Args) IsSetCanceledRequest() bool { - return v != nil && v.CanceledRequest != nil +// IsSetCompleteRequest returns true if CompleteRequest is not nil. +func (v *HistoryService_RespondActivityTaskCompleted_Args) IsSetCompleteRequest() bool { + return v != nil && v.CompleteRequest != 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 "RespondActivityTaskCanceled" for this struct. -func (v *HistoryService_RespondActivityTaskCanceled_Args) MethodName() string { - return "RespondActivityTaskCanceled" +// This will always be "RespondActivityTaskCompleted" for this struct. +func (v *HistoryService_RespondActivityTaskCompleted_Args) MethodName() string { + return "RespondActivityTaskCompleted" } // EnvelopeType returns the kind of value inside this struct. // // This will always be Call for this struct. -func (v *HistoryService_RespondActivityTaskCanceled_Args) EnvelopeType() wire.EnvelopeType { +func (v *HistoryService_RespondActivityTaskCompleted_Args) EnvelopeType() wire.EnvelopeType { return wire.Call } -// HistoryService_RespondActivityTaskCanceled_Helper provides functions that aid in handling the -// parameters and return values of the HistoryService.RespondActivityTaskCanceled +// HistoryService_RespondActivityTaskCompleted_Helper provides functions that aid in handling the +// parameters and return values of the HistoryService.RespondActivityTaskCompleted // function. -var HistoryService_RespondActivityTaskCanceled_Helper = struct { - // Args accepts the parameters of RespondActivityTaskCanceled in-order and returns +var HistoryService_RespondActivityTaskCompleted_Helper = struct { + // Args accepts the parameters of RespondActivityTaskCompleted in-order and returns // the arguments struct for the function. Args func( - canceledRequest *RespondActivityTaskCanceledRequest, - ) *HistoryService_RespondActivityTaskCanceled_Args + completeRequest *RespondActivityTaskCompletedRequest, + ) *HistoryService_RespondActivityTaskCompleted_Args // IsException returns true if the given error can be thrown - // by RespondActivityTaskCanceled. + // by RespondActivityTaskCompleted. // - // An error can be thrown by RespondActivityTaskCanceled only if the + // An error can be thrown by RespondActivityTaskCompleted 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 RespondActivityTaskCanceled + // WrapResponse returns the result struct for RespondActivityTaskCompleted // given the error returned by it. The provided error may - // be nil if RespondActivityTaskCanceled did not fail. + // be nil if RespondActivityTaskCompleted did not fail. // - // This allows mapping errors returned by RespondActivityTaskCanceled into a + // This allows mapping errors returned by RespondActivityTaskCompleted into a // serializable result struct. WrapResponse returns a // non-nil error if the provided error cannot be thrown by - // RespondActivityTaskCanceled + // RespondActivityTaskCompleted // - // err := RespondActivityTaskCanceled(args) - // result, err := HistoryService_RespondActivityTaskCanceled_Helper.WrapResponse(err) + // err := RespondActivityTaskCompleted(args) + // result, err := HistoryService_RespondActivityTaskCompleted_Helper.WrapResponse(err) // if err != nil { - // return fmt.Errorf("unexpected error from RespondActivityTaskCanceled: %v", err) + // return fmt.Errorf("unexpected error from RespondActivityTaskCompleted: %v", err) // } // serialize(result) - WrapResponse func(error) (*HistoryService_RespondActivityTaskCanceled_Result, error) + WrapResponse func(error) (*HistoryService_RespondActivityTaskCompleted_Result, error) - // UnwrapResponse takes the result struct for RespondActivityTaskCanceled + // UnwrapResponse takes the result struct for RespondActivityTaskCompleted // and returns the erorr returned by it (if any). // - // The error is non-nil only if RespondActivityTaskCanceled threw an + // The error is non-nil only if RespondActivityTaskCompleted threw an // exception. // // result := deserialize(bytes) - // err := HistoryService_RespondActivityTaskCanceled_Helper.UnwrapResponse(result) - UnwrapResponse func(*HistoryService_RespondActivityTaskCanceled_Result) error + // err := HistoryService_RespondActivityTaskCompleted_Helper.UnwrapResponse(result) + UnwrapResponse func(*HistoryService_RespondActivityTaskCompleted_Result) error }{} func init() { - HistoryService_RespondActivityTaskCanceled_Helper.Args = func( - canceledRequest *RespondActivityTaskCanceledRequest, - ) *HistoryService_RespondActivityTaskCanceled_Args { - return &HistoryService_RespondActivityTaskCanceled_Args{ - CanceledRequest: canceledRequest, + HistoryService_RespondActivityTaskCompleted_Helper.Args = func( + completeRequest *RespondActivityTaskCompletedRequest, + ) *HistoryService_RespondActivityTaskCompleted_Args { + return &HistoryService_RespondActivityTaskCompleted_Args{ + CompleteRequest: completeRequest, } } - HistoryService_RespondActivityTaskCanceled_Helper.IsException = func(err error) bool { + HistoryService_RespondActivityTaskCompleted_Helper.IsException = func(err error) bool { switch err.(type) { case *shared.BadRequestError: return true @@ -32783,57 +34177,57 @@ func init() { } } - HistoryService_RespondActivityTaskCanceled_Helper.WrapResponse = func(err error) (*HistoryService_RespondActivityTaskCanceled_Result, error) { + HistoryService_RespondActivityTaskCompleted_Helper.WrapResponse = func(err error) (*HistoryService_RespondActivityTaskCompleted_Result, error) { if err == nil { - return &HistoryService_RespondActivityTaskCanceled_Result{}, nil + return &HistoryService_RespondActivityTaskCompleted_Result{}, nil } switch e := err.(type) { case *shared.BadRequestError: if e == nil { - return nil, errors.New("WrapResponse received non-nil error type with nil value for HistoryService_RespondActivityTaskCanceled_Result.BadRequestError") + return nil, errors.New("WrapResponse received non-nil error type with nil value for HistoryService_RespondActivityTaskCompleted_Result.BadRequestError") } - return &HistoryService_RespondActivityTaskCanceled_Result{BadRequestError: e}, nil + return &HistoryService_RespondActivityTaskCompleted_Result{BadRequestError: e}, nil case *shared.InternalServiceError: if e == nil { - return nil, errors.New("WrapResponse received non-nil error type with nil value for HistoryService_RespondActivityTaskCanceled_Result.InternalServiceError") + return nil, errors.New("WrapResponse received non-nil error type with nil value for HistoryService_RespondActivityTaskCompleted_Result.InternalServiceError") } - return &HistoryService_RespondActivityTaskCanceled_Result{InternalServiceError: e}, nil + return &HistoryService_RespondActivityTaskCompleted_Result{InternalServiceError: e}, nil case *shared.EntityNotExistsError: if e == nil { - return nil, errors.New("WrapResponse received non-nil error type with nil value for HistoryService_RespondActivityTaskCanceled_Result.EntityNotExistError") + return nil, errors.New("WrapResponse received non-nil error type with nil value for HistoryService_RespondActivityTaskCompleted_Result.EntityNotExistError") } - return &HistoryService_RespondActivityTaskCanceled_Result{EntityNotExistError: e}, nil + return &HistoryService_RespondActivityTaskCompleted_Result{EntityNotExistError: e}, nil case *ShardOwnershipLostError: if e == nil { - return nil, errors.New("WrapResponse received non-nil error type with nil value for HistoryService_RespondActivityTaskCanceled_Result.ShardOwnershipLostError") + return nil, errors.New("WrapResponse received non-nil error type with nil value for HistoryService_RespondActivityTaskCompleted_Result.ShardOwnershipLostError") } - return &HistoryService_RespondActivityTaskCanceled_Result{ShardOwnershipLostError: e}, nil + return &HistoryService_RespondActivityTaskCompleted_Result{ShardOwnershipLostError: e}, nil case *shared.DomainNotActiveError: if e == nil { - return nil, errors.New("WrapResponse received non-nil error type with nil value for HistoryService_RespondActivityTaskCanceled_Result.DomainNotActiveError") + return nil, errors.New("WrapResponse received non-nil error type with nil value for HistoryService_RespondActivityTaskCompleted_Result.DomainNotActiveError") } - return &HistoryService_RespondActivityTaskCanceled_Result{DomainNotActiveError: e}, nil + return &HistoryService_RespondActivityTaskCompleted_Result{DomainNotActiveError: e}, nil case *shared.LimitExceededError: if e == nil { - return nil, errors.New("WrapResponse received non-nil error type with nil value for HistoryService_RespondActivityTaskCanceled_Result.LimitExceededError") + return nil, errors.New("WrapResponse received non-nil error type with nil value for HistoryService_RespondActivityTaskCompleted_Result.LimitExceededError") } - return &HistoryService_RespondActivityTaskCanceled_Result{LimitExceededError: e}, nil + return &HistoryService_RespondActivityTaskCompleted_Result{LimitExceededError: e}, nil case *shared.ServiceBusyError: if e == nil { - return nil, errors.New("WrapResponse received non-nil error type with nil value for HistoryService_RespondActivityTaskCanceled_Result.ServiceBusyError") + return nil, errors.New("WrapResponse received non-nil error type with nil value for HistoryService_RespondActivityTaskCompleted_Result.ServiceBusyError") } - return &HistoryService_RespondActivityTaskCanceled_Result{ServiceBusyError: e}, nil + return &HistoryService_RespondActivityTaskCompleted_Result{ServiceBusyError: e}, nil case *shared.WorkflowExecutionAlreadyCompletedError: if e == nil { - return nil, errors.New("WrapResponse received non-nil error type with nil value for HistoryService_RespondActivityTaskCanceled_Result.WorkflowExecutionAlreadyCompletedError") + return nil, errors.New("WrapResponse received non-nil error type with nil value for HistoryService_RespondActivityTaskCompleted_Result.WorkflowExecutionAlreadyCompletedError") } - return &HistoryService_RespondActivityTaskCanceled_Result{WorkflowExecutionAlreadyCompletedError: e}, nil + return &HistoryService_RespondActivityTaskCompleted_Result{WorkflowExecutionAlreadyCompletedError: e}, nil } return nil, err } - HistoryService_RespondActivityTaskCanceled_Helper.UnwrapResponse = func(result *HistoryService_RespondActivityTaskCanceled_Result) (err error) { + HistoryService_RespondActivityTaskCompleted_Helper.UnwrapResponse = func(result *HistoryService_RespondActivityTaskCompleted_Result) (err error) { if result.BadRequestError != nil { err = result.BadRequestError return @@ -32871,10 +34265,10 @@ func init() { } -// HistoryService_RespondActivityTaskCanceled_Result represents the result of a HistoryService.RespondActivityTaskCanceled function call. +// HistoryService_RespondActivityTaskCompleted_Result represents the result of a HistoryService.RespondActivityTaskCompleted function call. // -// The result of a RespondActivityTaskCanceled execution is sent and received over the wire as this struct. -type HistoryService_RespondActivityTaskCanceled_Result struct { +// The result of a RespondActivityTaskCompleted execution is sent and received over the wire as this struct. +type HistoryService_RespondActivityTaskCompleted_Result struct { BadRequestError *shared.BadRequestError `json:"badRequestError,omitempty"` InternalServiceError *shared.InternalServiceError `json:"internalServiceError,omitempty"` EntityNotExistError *shared.EntityNotExistsError `json:"entityNotExistError,omitempty"` @@ -32885,7 +34279,7 @@ type HistoryService_RespondActivityTaskCanceled_Result struct { WorkflowExecutionAlreadyCompletedError *shared.WorkflowExecutionAlreadyCompletedError `json:"workflowExecutionAlreadyCompletedError,omitempty"` } -// ToWire translates a HistoryService_RespondActivityTaskCanceled_Result struct into a Thrift-level intermediate +// ToWire translates a HistoryService_RespondActivityTaskCompleted_Result struct into a Thrift-level intermediate // representation. This intermediate representation may be serialized // into bytes using a ThriftRW protocol implementation. // @@ -32900,7 +34294,7 @@ type HistoryService_RespondActivityTaskCanceled_Result struct { // if err := binaryProtocol.Encode(x, writer); err != nil { // return err // } -func (v *HistoryService_RespondActivityTaskCanceled_Result) ToWire() (wire.Value, error) { +func (v *HistoryService_RespondActivityTaskCompleted_Result) ToWire() (wire.Value, error) { var ( fields [8]wire.Field i int = 0 @@ -32974,17 +34368,17 @@ func (v *HistoryService_RespondActivityTaskCanceled_Result) ToWire() (wire.Value } if i > 1 { - return wire.Value{}, fmt.Errorf("HistoryService_RespondActivityTaskCanceled_Result should have at most one field: got %v fields", i) + return wire.Value{}, fmt.Errorf("HistoryService_RespondActivityTaskCompleted_Result should have at most one field: got %v fields", i) } return wire.NewValueStruct(wire.Struct{Fields: fields[:i]}), nil } -// FromWire deserializes a HistoryService_RespondActivityTaskCanceled_Result struct from its Thrift-level +// FromWire deserializes a HistoryService_RespondActivityTaskCompleted_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 HistoryService_RespondActivityTaskCanceled_Result struct +// An error is returned if we were unable to build a HistoryService_RespondActivityTaskCompleted_Result struct // from the provided intermediate representation. // // x, err := binaryProtocol.Decode(reader, wire.TStruct) @@ -32992,12 +34386,12 @@ func (v *HistoryService_RespondActivityTaskCanceled_Result) ToWire() (wire.Value // return nil, err // } // -// var v HistoryService_RespondActivityTaskCanceled_Result +// var v HistoryService_RespondActivityTaskCompleted_Result // if err := v.FromWire(x); err != nil { // return nil, err // } // return &v, nil -func (v *HistoryService_RespondActivityTaskCanceled_Result) FromWire(w wire.Value) error { +func (v *HistoryService_RespondActivityTaskCompleted_Result) FromWire(w wire.Value) error { var err error for _, field := range w.GetStruct().Fields { @@ -33095,15 +34489,15 @@ func (v *HistoryService_RespondActivityTaskCanceled_Result) FromWire(w wire.Valu count++ } if count > 1 { - return fmt.Errorf("HistoryService_RespondActivityTaskCanceled_Result should have at most one field: got %v fields", count) + return fmt.Errorf("HistoryService_RespondActivityTaskCompleted_Result should have at most one field: got %v fields", count) } return nil } -// String returns a readable string representation of a HistoryService_RespondActivityTaskCanceled_Result +// String returns a readable string representation of a HistoryService_RespondActivityTaskCompleted_Result // struct. -func (v *HistoryService_RespondActivityTaskCanceled_Result) String() string { +func (v *HistoryService_RespondActivityTaskCompleted_Result) String() string { if v == nil { return "" } @@ -33143,14 +34537,14 @@ func (v *HistoryService_RespondActivityTaskCanceled_Result) String() string { i++ } - return fmt.Sprintf("HistoryService_RespondActivityTaskCanceled_Result{%v}", strings.Join(fields[:i], ", ")) + return fmt.Sprintf("HistoryService_RespondActivityTaskCompleted_Result{%v}", strings.Join(fields[:i], ", ")) } -// Equals returns true if all the fields of this HistoryService_RespondActivityTaskCanceled_Result match the -// provided HistoryService_RespondActivityTaskCanceled_Result. +// Equals returns true if all the fields of this HistoryService_RespondActivityTaskCompleted_Result match the +// provided HistoryService_RespondActivityTaskCompleted_Result. // // This function performs a deep comparison. -func (v *HistoryService_RespondActivityTaskCanceled_Result) Equals(rhs *HistoryService_RespondActivityTaskCanceled_Result) bool { +func (v *HistoryService_RespondActivityTaskCompleted_Result) Equals(rhs *HistoryService_RespondActivityTaskCompleted_Result) bool { if v == nil { return rhs == nil } else if rhs == nil { @@ -33185,8 +34579,8 @@ func (v *HistoryService_RespondActivityTaskCanceled_Result) Equals(rhs *HistoryS } // MarshalLogObject implements zapcore.ObjectMarshaler, enabling -// fast logging of HistoryService_RespondActivityTaskCanceled_Result. -func (v *HistoryService_RespondActivityTaskCanceled_Result) MarshalLogObject(enc zapcore.ObjectEncoder) (err error) { +// fast logging of HistoryService_RespondActivityTaskCompleted_Result. +func (v *HistoryService_RespondActivityTaskCompleted_Result) MarshalLogObject(enc zapcore.ObjectEncoder) (err error) { if v == nil { return nil } @@ -33219,7 +34613,7 @@ func (v *HistoryService_RespondActivityTaskCanceled_Result) MarshalLogObject(enc // GetBadRequestError returns the value of BadRequestError if it is set or its // zero value if it is unset. -func (v *HistoryService_RespondActivityTaskCanceled_Result) GetBadRequestError() (o *shared.BadRequestError) { +func (v *HistoryService_RespondActivityTaskCompleted_Result) GetBadRequestError() (o *shared.BadRequestError) { if v != nil && v.BadRequestError != nil { return v.BadRequestError } @@ -33228,13 +34622,13 @@ func (v *HistoryService_RespondActivityTaskCanceled_Result) GetBadRequestError() } // IsSetBadRequestError returns true if BadRequestError is not nil. -func (v *HistoryService_RespondActivityTaskCanceled_Result) IsSetBadRequestError() bool { +func (v *HistoryService_RespondActivityTaskCompleted_Result) IsSetBadRequestError() bool { return v != nil && v.BadRequestError != nil } // GetInternalServiceError returns the value of InternalServiceError if it is set or its // zero value if it is unset. -func (v *HistoryService_RespondActivityTaskCanceled_Result) GetInternalServiceError() (o *shared.InternalServiceError) { +func (v *HistoryService_RespondActivityTaskCompleted_Result) GetInternalServiceError() (o *shared.InternalServiceError) { if v != nil && v.InternalServiceError != nil { return v.InternalServiceError } @@ -33243,13 +34637,13 @@ func (v *HistoryService_RespondActivityTaskCanceled_Result) GetInternalServiceEr } // IsSetInternalServiceError returns true if InternalServiceError is not nil. -func (v *HistoryService_RespondActivityTaskCanceled_Result) IsSetInternalServiceError() bool { +func (v *HistoryService_RespondActivityTaskCompleted_Result) IsSetInternalServiceError() bool { return v != nil && v.InternalServiceError != nil } // GetEntityNotExistError returns the value of EntityNotExistError if it is set or its // zero value if it is unset. -func (v *HistoryService_RespondActivityTaskCanceled_Result) GetEntityNotExistError() (o *shared.EntityNotExistsError) { +func (v *HistoryService_RespondActivityTaskCompleted_Result) GetEntityNotExistError() (o *shared.EntityNotExistsError) { if v != nil && v.EntityNotExistError != nil { return v.EntityNotExistError } @@ -33258,13 +34652,13 @@ func (v *HistoryService_RespondActivityTaskCanceled_Result) GetEntityNotExistErr } // IsSetEntityNotExistError returns true if EntityNotExistError is not nil. -func (v *HistoryService_RespondActivityTaskCanceled_Result) IsSetEntityNotExistError() bool { +func (v *HistoryService_RespondActivityTaskCompleted_Result) IsSetEntityNotExistError() bool { return v != nil && v.EntityNotExistError != nil } // GetShardOwnershipLostError returns the value of ShardOwnershipLostError if it is set or its // zero value if it is unset. -func (v *HistoryService_RespondActivityTaskCanceled_Result) GetShardOwnershipLostError() (o *ShardOwnershipLostError) { +func (v *HistoryService_RespondActivityTaskCompleted_Result) GetShardOwnershipLostError() (o *ShardOwnershipLostError) { if v != nil && v.ShardOwnershipLostError != nil { return v.ShardOwnershipLostError } @@ -33273,13 +34667,13 @@ func (v *HistoryService_RespondActivityTaskCanceled_Result) GetShardOwnershipLos } // IsSetShardOwnershipLostError returns true if ShardOwnershipLostError is not nil. -func (v *HistoryService_RespondActivityTaskCanceled_Result) IsSetShardOwnershipLostError() bool { +func (v *HistoryService_RespondActivityTaskCompleted_Result) IsSetShardOwnershipLostError() bool { return v != nil && v.ShardOwnershipLostError != nil } // GetDomainNotActiveError returns the value of DomainNotActiveError if it is set or its // zero value if it is unset. -func (v *HistoryService_RespondActivityTaskCanceled_Result) GetDomainNotActiveError() (o *shared.DomainNotActiveError) { +func (v *HistoryService_RespondActivityTaskCompleted_Result) GetDomainNotActiveError() (o *shared.DomainNotActiveError) { if v != nil && v.DomainNotActiveError != nil { return v.DomainNotActiveError } @@ -33288,13 +34682,13 @@ func (v *HistoryService_RespondActivityTaskCanceled_Result) GetDomainNotActiveEr } // IsSetDomainNotActiveError returns true if DomainNotActiveError is not nil. -func (v *HistoryService_RespondActivityTaskCanceled_Result) IsSetDomainNotActiveError() bool { +func (v *HistoryService_RespondActivityTaskCompleted_Result) IsSetDomainNotActiveError() bool { return v != nil && v.DomainNotActiveError != nil } // GetLimitExceededError returns the value of LimitExceededError if it is set or its // zero value if it is unset. -func (v *HistoryService_RespondActivityTaskCanceled_Result) GetLimitExceededError() (o *shared.LimitExceededError) { +func (v *HistoryService_RespondActivityTaskCompleted_Result) GetLimitExceededError() (o *shared.LimitExceededError) { if v != nil && v.LimitExceededError != nil { return v.LimitExceededError } @@ -33303,13 +34697,13 @@ func (v *HistoryService_RespondActivityTaskCanceled_Result) GetLimitExceededErro } // IsSetLimitExceededError returns true if LimitExceededError is not nil. -func (v *HistoryService_RespondActivityTaskCanceled_Result) IsSetLimitExceededError() bool { +func (v *HistoryService_RespondActivityTaskCompleted_Result) IsSetLimitExceededError() bool { return v != nil && v.LimitExceededError != nil } // GetServiceBusyError returns the value of ServiceBusyError if it is set or its // zero value if it is unset. -func (v *HistoryService_RespondActivityTaskCanceled_Result) GetServiceBusyError() (o *shared.ServiceBusyError) { +func (v *HistoryService_RespondActivityTaskCompleted_Result) GetServiceBusyError() (o *shared.ServiceBusyError) { if v != nil && v.ServiceBusyError != nil { return v.ServiceBusyError } @@ -33318,13 +34712,13 @@ func (v *HistoryService_RespondActivityTaskCanceled_Result) GetServiceBusyError( } // IsSetServiceBusyError returns true if ServiceBusyError is not nil. -func (v *HistoryService_RespondActivityTaskCanceled_Result) IsSetServiceBusyError() bool { +func (v *HistoryService_RespondActivityTaskCompleted_Result) IsSetServiceBusyError() bool { return v != nil && v.ServiceBusyError != nil } // GetWorkflowExecutionAlreadyCompletedError returns the value of WorkflowExecutionAlreadyCompletedError if it is set or its // zero value if it is unset. -func (v *HistoryService_RespondActivityTaskCanceled_Result) GetWorkflowExecutionAlreadyCompletedError() (o *shared.WorkflowExecutionAlreadyCompletedError) { +func (v *HistoryService_RespondActivityTaskCompleted_Result) GetWorkflowExecutionAlreadyCompletedError() (o *shared.WorkflowExecutionAlreadyCompletedError) { if v != nil && v.WorkflowExecutionAlreadyCompletedError != nil { return v.WorkflowExecutionAlreadyCompletedError } @@ -33333,33 +34727,33 @@ func (v *HistoryService_RespondActivityTaskCanceled_Result) GetWorkflowExecution } // IsSetWorkflowExecutionAlreadyCompletedError returns true if WorkflowExecutionAlreadyCompletedError is not nil. -func (v *HistoryService_RespondActivityTaskCanceled_Result) IsSetWorkflowExecutionAlreadyCompletedError() bool { +func (v *HistoryService_RespondActivityTaskCompleted_Result) IsSetWorkflowExecutionAlreadyCompletedError() bool { return v != nil && v.WorkflowExecutionAlreadyCompletedError != 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 "RespondActivityTaskCanceled" for this struct. -func (v *HistoryService_RespondActivityTaskCanceled_Result) MethodName() string { - return "RespondActivityTaskCanceled" +// This will always be "RespondActivityTaskCompleted" for this struct. +func (v *HistoryService_RespondActivityTaskCompleted_Result) MethodName() string { + return "RespondActivityTaskCompleted" } // EnvelopeType returns the kind of value inside this struct. // // This will always be Reply for this struct. -func (v *HistoryService_RespondActivityTaskCanceled_Result) EnvelopeType() wire.EnvelopeType { +func (v *HistoryService_RespondActivityTaskCompleted_Result) EnvelopeType() wire.EnvelopeType { return wire.Reply } -// HistoryService_RespondActivityTaskCompleted_Args represents the arguments for the HistoryService.RespondActivityTaskCompleted function. +// HistoryService_RespondActivityTaskFailed_Args represents the arguments for the HistoryService.RespondActivityTaskFailed function. // -// The arguments for RespondActivityTaskCompleted are sent and received over the wire as this struct. -type HistoryService_RespondActivityTaskCompleted_Args struct { - CompleteRequest *RespondActivityTaskCompletedRequest `json:"completeRequest,omitempty"` +// The arguments for RespondActivityTaskFailed are sent and received over the wire as this struct. +type HistoryService_RespondActivityTaskFailed_Args struct { + FailRequest *RespondActivityTaskFailedRequest `json:"failRequest,omitempty"` } -// ToWire translates a HistoryService_RespondActivityTaskCompleted_Args struct into a Thrift-level intermediate +// ToWire translates a HistoryService_RespondActivityTaskFailed_Args struct into a Thrift-level intermediate // representation. This intermediate representation may be serialized // into bytes using a ThriftRW protocol implementation. // @@ -33374,7 +34768,7 @@ type HistoryService_RespondActivityTaskCompleted_Args struct { // if err := binaryProtocol.Encode(x, writer); err != nil { // return err // } -func (v *HistoryService_RespondActivityTaskCompleted_Args) ToWire() (wire.Value, error) { +func (v *HistoryService_RespondActivityTaskFailed_Args) ToWire() (wire.Value, error) { var ( fields [1]wire.Field i int = 0 @@ -33382,8 +34776,8 @@ func (v *HistoryService_RespondActivityTaskCompleted_Args) ToWire() (wire.Value, err error ) - if v.CompleteRequest != nil { - w, err = v.CompleteRequest.ToWire() + if v.FailRequest != nil { + w, err = v.FailRequest.ToWire() if err != nil { return w, err } @@ -33394,17 +34788,17 @@ func (v *HistoryService_RespondActivityTaskCompleted_Args) ToWire() (wire.Value, return wire.NewValueStruct(wire.Struct{Fields: fields[:i]}), nil } -func _RespondActivityTaskCompletedRequest_1_Read(w wire.Value) (*RespondActivityTaskCompletedRequest, error) { - var v RespondActivityTaskCompletedRequest +func _RespondActivityTaskFailedRequest_1_Read(w wire.Value) (*RespondActivityTaskFailedRequest, error) { + var v RespondActivityTaskFailedRequest err := v.FromWire(w) return &v, err } -// FromWire deserializes a HistoryService_RespondActivityTaskCompleted_Args struct from its Thrift-level +// FromWire deserializes a HistoryService_RespondActivityTaskFailed_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 HistoryService_RespondActivityTaskCompleted_Args struct +// An error is returned if we were unable to build a HistoryService_RespondActivityTaskFailed_Args struct // from the provided intermediate representation. // // x, err := binaryProtocol.Decode(reader, wire.TStruct) @@ -33412,19 +34806,19 @@ func _RespondActivityTaskCompletedRequest_1_Read(w wire.Value) (*RespondActivity // return nil, err // } // -// var v HistoryService_RespondActivityTaskCompleted_Args +// var v HistoryService_RespondActivityTaskFailed_Args // if err := v.FromWire(x); err != nil { // return nil, err // } // return &v, nil -func (v *HistoryService_RespondActivityTaskCompleted_Args) FromWire(w wire.Value) error { +func (v *HistoryService_RespondActivityTaskFailed_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.CompleteRequest, err = _RespondActivityTaskCompletedRequest_1_Read(field.Value) + v.FailRequest, err = _RespondActivityTaskFailedRequest_1_Read(field.Value) if err != nil { return err } @@ -33436,34 +34830,34 @@ func (v *HistoryService_RespondActivityTaskCompleted_Args) FromWire(w wire.Value return nil } -// String returns a readable string representation of a HistoryService_RespondActivityTaskCompleted_Args +// String returns a readable string representation of a HistoryService_RespondActivityTaskFailed_Args // struct. -func (v *HistoryService_RespondActivityTaskCompleted_Args) String() string { +func (v *HistoryService_RespondActivityTaskFailed_Args) String() string { if v == nil { return "" } var fields [1]string i := 0 - if v.CompleteRequest != nil { - fields[i] = fmt.Sprintf("CompleteRequest: %v", v.CompleteRequest) + if v.FailRequest != nil { + fields[i] = fmt.Sprintf("FailRequest: %v", v.FailRequest) i++ } - return fmt.Sprintf("HistoryService_RespondActivityTaskCompleted_Args{%v}", strings.Join(fields[:i], ", ")) + return fmt.Sprintf("HistoryService_RespondActivityTaskFailed_Args{%v}", strings.Join(fields[:i], ", ")) } -// Equals returns true if all the fields of this HistoryService_RespondActivityTaskCompleted_Args match the -// provided HistoryService_RespondActivityTaskCompleted_Args. +// Equals returns true if all the fields of this HistoryService_RespondActivityTaskFailed_Args match the +// provided HistoryService_RespondActivityTaskFailed_Args. // // This function performs a deep comparison. -func (v *HistoryService_RespondActivityTaskCompleted_Args) Equals(rhs *HistoryService_RespondActivityTaskCompleted_Args) bool { +func (v *HistoryService_RespondActivityTaskFailed_Args) Equals(rhs *HistoryService_RespondActivityTaskFailed_Args) bool { if v == nil { return rhs == nil } else if rhs == nil { return false } - if !((v.CompleteRequest == nil && rhs.CompleteRequest == nil) || (v.CompleteRequest != nil && rhs.CompleteRequest != nil && v.CompleteRequest.Equals(rhs.CompleteRequest))) { + if !((v.FailRequest == nil && rhs.FailRequest == nil) || (v.FailRequest != nil && rhs.FailRequest != nil && v.FailRequest.Equals(rhs.FailRequest))) { return false } @@ -33471,103 +34865,103 @@ func (v *HistoryService_RespondActivityTaskCompleted_Args) Equals(rhs *HistorySe } // MarshalLogObject implements zapcore.ObjectMarshaler, enabling -// fast logging of HistoryService_RespondActivityTaskCompleted_Args. -func (v *HistoryService_RespondActivityTaskCompleted_Args) MarshalLogObject(enc zapcore.ObjectEncoder) (err error) { +// fast logging of HistoryService_RespondActivityTaskFailed_Args. +func (v *HistoryService_RespondActivityTaskFailed_Args) MarshalLogObject(enc zapcore.ObjectEncoder) (err error) { if v == nil { return nil } - if v.CompleteRequest != nil { - err = multierr.Append(err, enc.AddObject("completeRequest", v.CompleteRequest)) + if v.FailRequest != nil { + err = multierr.Append(err, enc.AddObject("failRequest", v.FailRequest)) } return err } -// GetCompleteRequest returns the value of CompleteRequest if it is set or its +// GetFailRequest returns the value of FailRequest if it is set or its // zero value if it is unset. -func (v *HistoryService_RespondActivityTaskCompleted_Args) GetCompleteRequest() (o *RespondActivityTaskCompletedRequest) { - if v != nil && v.CompleteRequest != nil { - return v.CompleteRequest +func (v *HistoryService_RespondActivityTaskFailed_Args) GetFailRequest() (o *RespondActivityTaskFailedRequest) { + if v != nil && v.FailRequest != nil { + return v.FailRequest } return } -// IsSetCompleteRequest returns true if CompleteRequest is not nil. -func (v *HistoryService_RespondActivityTaskCompleted_Args) IsSetCompleteRequest() bool { - return v != nil && v.CompleteRequest != nil +// IsSetFailRequest returns true if FailRequest is not nil. +func (v *HistoryService_RespondActivityTaskFailed_Args) IsSetFailRequest() bool { + return v != nil && v.FailRequest != 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 "RespondActivityTaskCompleted" for this struct. -func (v *HistoryService_RespondActivityTaskCompleted_Args) MethodName() string { - return "RespondActivityTaskCompleted" +// This will always be "RespondActivityTaskFailed" for this struct. +func (v *HistoryService_RespondActivityTaskFailed_Args) MethodName() string { + return "RespondActivityTaskFailed" } // EnvelopeType returns the kind of value inside this struct. // // This will always be Call for this struct. -func (v *HistoryService_RespondActivityTaskCompleted_Args) EnvelopeType() wire.EnvelopeType { +func (v *HistoryService_RespondActivityTaskFailed_Args) EnvelopeType() wire.EnvelopeType { return wire.Call } -// HistoryService_RespondActivityTaskCompleted_Helper provides functions that aid in handling the -// parameters and return values of the HistoryService.RespondActivityTaskCompleted +// HistoryService_RespondActivityTaskFailed_Helper provides functions that aid in handling the +// parameters and return values of the HistoryService.RespondActivityTaskFailed // function. -var HistoryService_RespondActivityTaskCompleted_Helper = struct { - // Args accepts the parameters of RespondActivityTaskCompleted in-order and returns +var HistoryService_RespondActivityTaskFailed_Helper = struct { + // Args accepts the parameters of RespondActivityTaskFailed in-order and returns // the arguments struct for the function. Args func( - completeRequest *RespondActivityTaskCompletedRequest, - ) *HistoryService_RespondActivityTaskCompleted_Args + failRequest *RespondActivityTaskFailedRequest, + ) *HistoryService_RespondActivityTaskFailed_Args // IsException returns true if the given error can be thrown - // by RespondActivityTaskCompleted. + // by RespondActivityTaskFailed. // - // An error can be thrown by RespondActivityTaskCompleted only if the + // An error can be thrown by RespondActivityTaskFailed 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 RespondActivityTaskCompleted + // WrapResponse returns the result struct for RespondActivityTaskFailed // given the error returned by it. The provided error may - // be nil if RespondActivityTaskCompleted did not fail. + // be nil if RespondActivityTaskFailed did not fail. // - // This allows mapping errors returned by RespondActivityTaskCompleted into a + // This allows mapping errors returned by RespondActivityTaskFailed into a // serializable result struct. WrapResponse returns a // non-nil error if the provided error cannot be thrown by - // RespondActivityTaskCompleted + // RespondActivityTaskFailed // - // err := RespondActivityTaskCompleted(args) - // result, err := HistoryService_RespondActivityTaskCompleted_Helper.WrapResponse(err) + // err := RespondActivityTaskFailed(args) + // result, err := HistoryService_RespondActivityTaskFailed_Helper.WrapResponse(err) // if err != nil { - // return fmt.Errorf("unexpected error from RespondActivityTaskCompleted: %v", err) + // return fmt.Errorf("unexpected error from RespondActivityTaskFailed: %v", err) // } // serialize(result) - WrapResponse func(error) (*HistoryService_RespondActivityTaskCompleted_Result, error) + WrapResponse func(error) (*HistoryService_RespondActivityTaskFailed_Result, error) - // UnwrapResponse takes the result struct for RespondActivityTaskCompleted + // UnwrapResponse takes the result struct for RespondActivityTaskFailed // and returns the erorr returned by it (if any). // - // The error is non-nil only if RespondActivityTaskCompleted threw an + // The error is non-nil only if RespondActivityTaskFailed threw an // exception. // // result := deserialize(bytes) - // err := HistoryService_RespondActivityTaskCompleted_Helper.UnwrapResponse(result) - UnwrapResponse func(*HistoryService_RespondActivityTaskCompleted_Result) error + // err := HistoryService_RespondActivityTaskFailed_Helper.UnwrapResponse(result) + UnwrapResponse func(*HistoryService_RespondActivityTaskFailed_Result) error }{} func init() { - HistoryService_RespondActivityTaskCompleted_Helper.Args = func( - completeRequest *RespondActivityTaskCompletedRequest, - ) *HistoryService_RespondActivityTaskCompleted_Args { - return &HistoryService_RespondActivityTaskCompleted_Args{ - CompleteRequest: completeRequest, + HistoryService_RespondActivityTaskFailed_Helper.Args = func( + failRequest *RespondActivityTaskFailedRequest, + ) *HistoryService_RespondActivityTaskFailed_Args { + return &HistoryService_RespondActivityTaskFailed_Args{ + FailRequest: failRequest, } } - HistoryService_RespondActivityTaskCompleted_Helper.IsException = func(err error) bool { + HistoryService_RespondActivityTaskFailed_Helper.IsException = func(err error) bool { switch err.(type) { case *shared.BadRequestError: return true @@ -33590,57 +34984,57 @@ func init() { } } - HistoryService_RespondActivityTaskCompleted_Helper.WrapResponse = func(err error) (*HistoryService_RespondActivityTaskCompleted_Result, error) { + HistoryService_RespondActivityTaskFailed_Helper.WrapResponse = func(err error) (*HistoryService_RespondActivityTaskFailed_Result, error) { if err == nil { - return &HistoryService_RespondActivityTaskCompleted_Result{}, nil + return &HistoryService_RespondActivityTaskFailed_Result{}, nil } switch e := err.(type) { case *shared.BadRequestError: if e == nil { - return nil, errors.New("WrapResponse received non-nil error type with nil value for HistoryService_RespondActivityTaskCompleted_Result.BadRequestError") + return nil, errors.New("WrapResponse received non-nil error type with nil value for HistoryService_RespondActivityTaskFailed_Result.BadRequestError") } - return &HistoryService_RespondActivityTaskCompleted_Result{BadRequestError: e}, nil + return &HistoryService_RespondActivityTaskFailed_Result{BadRequestError: e}, nil case *shared.InternalServiceError: if e == nil { - return nil, errors.New("WrapResponse received non-nil error type with nil value for HistoryService_RespondActivityTaskCompleted_Result.InternalServiceError") + return nil, errors.New("WrapResponse received non-nil error type with nil value for HistoryService_RespondActivityTaskFailed_Result.InternalServiceError") } - return &HistoryService_RespondActivityTaskCompleted_Result{InternalServiceError: e}, nil + return &HistoryService_RespondActivityTaskFailed_Result{InternalServiceError: e}, nil case *shared.EntityNotExistsError: if e == nil { - return nil, errors.New("WrapResponse received non-nil error type with nil value for HistoryService_RespondActivityTaskCompleted_Result.EntityNotExistError") + return nil, errors.New("WrapResponse received non-nil error type with nil value for HistoryService_RespondActivityTaskFailed_Result.EntityNotExistError") } - return &HistoryService_RespondActivityTaskCompleted_Result{EntityNotExistError: e}, nil + return &HistoryService_RespondActivityTaskFailed_Result{EntityNotExistError: e}, nil case *ShardOwnershipLostError: if e == nil { - return nil, errors.New("WrapResponse received non-nil error type with nil value for HistoryService_RespondActivityTaskCompleted_Result.ShardOwnershipLostError") + return nil, errors.New("WrapResponse received non-nil error type with nil value for HistoryService_RespondActivityTaskFailed_Result.ShardOwnershipLostError") } - return &HistoryService_RespondActivityTaskCompleted_Result{ShardOwnershipLostError: e}, nil + return &HistoryService_RespondActivityTaskFailed_Result{ShardOwnershipLostError: e}, nil case *shared.DomainNotActiveError: if e == nil { - return nil, errors.New("WrapResponse received non-nil error type with nil value for HistoryService_RespondActivityTaskCompleted_Result.DomainNotActiveError") + return nil, errors.New("WrapResponse received non-nil error type with nil value for HistoryService_RespondActivityTaskFailed_Result.DomainNotActiveError") } - return &HistoryService_RespondActivityTaskCompleted_Result{DomainNotActiveError: e}, nil + return &HistoryService_RespondActivityTaskFailed_Result{DomainNotActiveError: e}, nil case *shared.LimitExceededError: if e == nil { - return nil, errors.New("WrapResponse received non-nil error type with nil value for HistoryService_RespondActivityTaskCompleted_Result.LimitExceededError") + return nil, errors.New("WrapResponse received non-nil error type with nil value for HistoryService_RespondActivityTaskFailed_Result.LimitExceededError") } - return &HistoryService_RespondActivityTaskCompleted_Result{LimitExceededError: e}, nil + return &HistoryService_RespondActivityTaskFailed_Result{LimitExceededError: e}, nil case *shared.ServiceBusyError: if e == nil { - return nil, errors.New("WrapResponse received non-nil error type with nil value for HistoryService_RespondActivityTaskCompleted_Result.ServiceBusyError") + return nil, errors.New("WrapResponse received non-nil error type with nil value for HistoryService_RespondActivityTaskFailed_Result.ServiceBusyError") } - return &HistoryService_RespondActivityTaskCompleted_Result{ServiceBusyError: e}, nil + return &HistoryService_RespondActivityTaskFailed_Result{ServiceBusyError: e}, nil case *shared.WorkflowExecutionAlreadyCompletedError: if e == nil { - return nil, errors.New("WrapResponse received non-nil error type with nil value for HistoryService_RespondActivityTaskCompleted_Result.WorkflowExecutionAlreadyCompletedError") + return nil, errors.New("WrapResponse received non-nil error type with nil value for HistoryService_RespondActivityTaskFailed_Result.WorkflowExecutionAlreadyCompletedError") } - return &HistoryService_RespondActivityTaskCompleted_Result{WorkflowExecutionAlreadyCompletedError: e}, nil + return &HistoryService_RespondActivityTaskFailed_Result{WorkflowExecutionAlreadyCompletedError: e}, nil } return nil, err } - HistoryService_RespondActivityTaskCompleted_Helper.UnwrapResponse = func(result *HistoryService_RespondActivityTaskCompleted_Result) (err error) { + HistoryService_RespondActivityTaskFailed_Helper.UnwrapResponse = func(result *HistoryService_RespondActivityTaskFailed_Result) (err error) { if result.BadRequestError != nil { err = result.BadRequestError return @@ -33678,10 +35072,10 @@ func init() { } -// HistoryService_RespondActivityTaskCompleted_Result represents the result of a HistoryService.RespondActivityTaskCompleted function call. +// HistoryService_RespondActivityTaskFailed_Result represents the result of a HistoryService.RespondActivityTaskFailed function call. // -// The result of a RespondActivityTaskCompleted execution is sent and received over the wire as this struct. -type HistoryService_RespondActivityTaskCompleted_Result struct { +// The result of a RespondActivityTaskFailed execution is sent and received over the wire as this struct. +type HistoryService_RespondActivityTaskFailed_Result struct { BadRequestError *shared.BadRequestError `json:"badRequestError,omitempty"` InternalServiceError *shared.InternalServiceError `json:"internalServiceError,omitempty"` EntityNotExistError *shared.EntityNotExistsError `json:"entityNotExistError,omitempty"` @@ -33692,7 +35086,7 @@ type HistoryService_RespondActivityTaskCompleted_Result struct { WorkflowExecutionAlreadyCompletedError *shared.WorkflowExecutionAlreadyCompletedError `json:"workflowExecutionAlreadyCompletedError,omitempty"` } -// ToWire translates a HistoryService_RespondActivityTaskCompleted_Result struct into a Thrift-level intermediate +// ToWire translates a HistoryService_RespondActivityTaskFailed_Result struct into a Thrift-level intermediate // representation. This intermediate representation may be serialized // into bytes using a ThriftRW protocol implementation. // @@ -33707,7 +35101,7 @@ type HistoryService_RespondActivityTaskCompleted_Result struct { // if err := binaryProtocol.Encode(x, writer); err != nil { // return err // } -func (v *HistoryService_RespondActivityTaskCompleted_Result) ToWire() (wire.Value, error) { +func (v *HistoryService_RespondActivityTaskFailed_Result) ToWire() (wire.Value, error) { var ( fields [8]wire.Field i int = 0 @@ -33781,17 +35175,17 @@ func (v *HistoryService_RespondActivityTaskCompleted_Result) ToWire() (wire.Valu } if i > 1 { - return wire.Value{}, fmt.Errorf("HistoryService_RespondActivityTaskCompleted_Result should have at most one field: got %v fields", i) + return wire.Value{}, fmt.Errorf("HistoryService_RespondActivityTaskFailed_Result should have at most one field: got %v fields", i) } return wire.NewValueStruct(wire.Struct{Fields: fields[:i]}), nil } -// FromWire deserializes a HistoryService_RespondActivityTaskCompleted_Result struct from its Thrift-level +// FromWire deserializes a HistoryService_RespondActivityTaskFailed_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 HistoryService_RespondActivityTaskCompleted_Result struct +// An error is returned if we were unable to build a HistoryService_RespondActivityTaskFailed_Result struct // from the provided intermediate representation. // // x, err := binaryProtocol.Decode(reader, wire.TStruct) @@ -33799,12 +35193,12 @@ func (v *HistoryService_RespondActivityTaskCompleted_Result) ToWire() (wire.Valu // return nil, err // } // -// var v HistoryService_RespondActivityTaskCompleted_Result +// var v HistoryService_RespondActivityTaskFailed_Result // if err := v.FromWire(x); err != nil { // return nil, err // } // return &v, nil -func (v *HistoryService_RespondActivityTaskCompleted_Result) FromWire(w wire.Value) error { +func (v *HistoryService_RespondActivityTaskFailed_Result) FromWire(w wire.Value) error { var err error for _, field := range w.GetStruct().Fields { @@ -33902,15 +35296,15 @@ func (v *HistoryService_RespondActivityTaskCompleted_Result) FromWire(w wire.Val count++ } if count > 1 { - return fmt.Errorf("HistoryService_RespondActivityTaskCompleted_Result should have at most one field: got %v fields", count) + return fmt.Errorf("HistoryService_RespondActivityTaskFailed_Result should have at most one field: got %v fields", count) } return nil } -// String returns a readable string representation of a HistoryService_RespondActivityTaskCompleted_Result +// String returns a readable string representation of a HistoryService_RespondActivityTaskFailed_Result // struct. -func (v *HistoryService_RespondActivityTaskCompleted_Result) String() string { +func (v *HistoryService_RespondActivityTaskFailed_Result) String() string { if v == nil { return "" } @@ -33950,14 +35344,14 @@ func (v *HistoryService_RespondActivityTaskCompleted_Result) String() string { i++ } - return fmt.Sprintf("HistoryService_RespondActivityTaskCompleted_Result{%v}", strings.Join(fields[:i], ", ")) + return fmt.Sprintf("HistoryService_RespondActivityTaskFailed_Result{%v}", strings.Join(fields[:i], ", ")) } -// Equals returns true if all the fields of this HistoryService_RespondActivityTaskCompleted_Result match the -// provided HistoryService_RespondActivityTaskCompleted_Result. +// Equals returns true if all the fields of this HistoryService_RespondActivityTaskFailed_Result match the +// provided HistoryService_RespondActivityTaskFailed_Result. // // This function performs a deep comparison. -func (v *HistoryService_RespondActivityTaskCompleted_Result) Equals(rhs *HistoryService_RespondActivityTaskCompleted_Result) bool { +func (v *HistoryService_RespondActivityTaskFailed_Result) Equals(rhs *HistoryService_RespondActivityTaskFailed_Result) bool { if v == nil { return rhs == nil } else if rhs == nil { @@ -33992,8 +35386,8 @@ func (v *HistoryService_RespondActivityTaskCompleted_Result) Equals(rhs *History } // MarshalLogObject implements zapcore.ObjectMarshaler, enabling -// fast logging of HistoryService_RespondActivityTaskCompleted_Result. -func (v *HistoryService_RespondActivityTaskCompleted_Result) MarshalLogObject(enc zapcore.ObjectEncoder) (err error) { +// fast logging of HistoryService_RespondActivityTaskFailed_Result. +func (v *HistoryService_RespondActivityTaskFailed_Result) MarshalLogObject(enc zapcore.ObjectEncoder) (err error) { if v == nil { return nil } @@ -34026,7 +35420,7 @@ func (v *HistoryService_RespondActivityTaskCompleted_Result) MarshalLogObject(en // GetBadRequestError returns the value of BadRequestError if it is set or its // zero value if it is unset. -func (v *HistoryService_RespondActivityTaskCompleted_Result) GetBadRequestError() (o *shared.BadRequestError) { +func (v *HistoryService_RespondActivityTaskFailed_Result) GetBadRequestError() (o *shared.BadRequestError) { if v != nil && v.BadRequestError != nil { return v.BadRequestError } @@ -34035,13 +35429,13 @@ func (v *HistoryService_RespondActivityTaskCompleted_Result) GetBadRequestError( } // IsSetBadRequestError returns true if BadRequestError is not nil. -func (v *HistoryService_RespondActivityTaskCompleted_Result) IsSetBadRequestError() bool { +func (v *HistoryService_RespondActivityTaskFailed_Result) IsSetBadRequestError() bool { return v != nil && v.BadRequestError != nil } // GetInternalServiceError returns the value of InternalServiceError if it is set or its // zero value if it is unset. -func (v *HistoryService_RespondActivityTaskCompleted_Result) GetInternalServiceError() (o *shared.InternalServiceError) { +func (v *HistoryService_RespondActivityTaskFailed_Result) GetInternalServiceError() (o *shared.InternalServiceError) { if v != nil && v.InternalServiceError != nil { return v.InternalServiceError } @@ -34050,13 +35444,13 @@ func (v *HistoryService_RespondActivityTaskCompleted_Result) GetInternalServiceE } // IsSetInternalServiceError returns true if InternalServiceError is not nil. -func (v *HistoryService_RespondActivityTaskCompleted_Result) IsSetInternalServiceError() bool { +func (v *HistoryService_RespondActivityTaskFailed_Result) IsSetInternalServiceError() bool { return v != nil && v.InternalServiceError != nil } // GetEntityNotExistError returns the value of EntityNotExistError if it is set or its // zero value if it is unset. -func (v *HistoryService_RespondActivityTaskCompleted_Result) GetEntityNotExistError() (o *shared.EntityNotExistsError) { +func (v *HistoryService_RespondActivityTaskFailed_Result) GetEntityNotExistError() (o *shared.EntityNotExistsError) { if v != nil && v.EntityNotExistError != nil { return v.EntityNotExistError } @@ -34065,13 +35459,13 @@ func (v *HistoryService_RespondActivityTaskCompleted_Result) GetEntityNotExistEr } // IsSetEntityNotExistError returns true if EntityNotExistError is not nil. -func (v *HistoryService_RespondActivityTaskCompleted_Result) IsSetEntityNotExistError() bool { +func (v *HistoryService_RespondActivityTaskFailed_Result) IsSetEntityNotExistError() bool { return v != nil && v.EntityNotExistError != nil } // GetShardOwnershipLostError returns the value of ShardOwnershipLostError if it is set or its // zero value if it is unset. -func (v *HistoryService_RespondActivityTaskCompleted_Result) GetShardOwnershipLostError() (o *ShardOwnershipLostError) { +func (v *HistoryService_RespondActivityTaskFailed_Result) GetShardOwnershipLostError() (o *ShardOwnershipLostError) { if v != nil && v.ShardOwnershipLostError != nil { return v.ShardOwnershipLostError } @@ -34080,13 +35474,13 @@ func (v *HistoryService_RespondActivityTaskCompleted_Result) GetShardOwnershipLo } // IsSetShardOwnershipLostError returns true if ShardOwnershipLostError is not nil. -func (v *HistoryService_RespondActivityTaskCompleted_Result) IsSetShardOwnershipLostError() bool { +func (v *HistoryService_RespondActivityTaskFailed_Result) IsSetShardOwnershipLostError() bool { return v != nil && v.ShardOwnershipLostError != nil } // GetDomainNotActiveError returns the value of DomainNotActiveError if it is set or its // zero value if it is unset. -func (v *HistoryService_RespondActivityTaskCompleted_Result) GetDomainNotActiveError() (o *shared.DomainNotActiveError) { +func (v *HistoryService_RespondActivityTaskFailed_Result) GetDomainNotActiveError() (o *shared.DomainNotActiveError) { if v != nil && v.DomainNotActiveError != nil { return v.DomainNotActiveError } @@ -34095,13 +35489,13 @@ func (v *HistoryService_RespondActivityTaskCompleted_Result) GetDomainNotActiveE } // IsSetDomainNotActiveError returns true if DomainNotActiveError is not nil. -func (v *HistoryService_RespondActivityTaskCompleted_Result) IsSetDomainNotActiveError() bool { +func (v *HistoryService_RespondActivityTaskFailed_Result) IsSetDomainNotActiveError() bool { return v != nil && v.DomainNotActiveError != nil } // GetLimitExceededError returns the value of LimitExceededError if it is set or its // zero value if it is unset. -func (v *HistoryService_RespondActivityTaskCompleted_Result) GetLimitExceededError() (o *shared.LimitExceededError) { +func (v *HistoryService_RespondActivityTaskFailed_Result) GetLimitExceededError() (o *shared.LimitExceededError) { if v != nil && v.LimitExceededError != nil { return v.LimitExceededError } @@ -34110,13 +35504,13 @@ func (v *HistoryService_RespondActivityTaskCompleted_Result) GetLimitExceededErr } // IsSetLimitExceededError returns true if LimitExceededError is not nil. -func (v *HistoryService_RespondActivityTaskCompleted_Result) IsSetLimitExceededError() bool { +func (v *HistoryService_RespondActivityTaskFailed_Result) IsSetLimitExceededError() bool { return v != nil && v.LimitExceededError != nil } // GetServiceBusyError returns the value of ServiceBusyError if it is set or its // zero value if it is unset. -func (v *HistoryService_RespondActivityTaskCompleted_Result) GetServiceBusyError() (o *shared.ServiceBusyError) { +func (v *HistoryService_RespondActivityTaskFailed_Result) GetServiceBusyError() (o *shared.ServiceBusyError) { if v != nil && v.ServiceBusyError != nil { return v.ServiceBusyError } @@ -34125,13 +35519,13 @@ func (v *HistoryService_RespondActivityTaskCompleted_Result) GetServiceBusyError } // IsSetServiceBusyError returns true if ServiceBusyError is not nil. -func (v *HistoryService_RespondActivityTaskCompleted_Result) IsSetServiceBusyError() bool { +func (v *HistoryService_RespondActivityTaskFailed_Result) IsSetServiceBusyError() bool { return v != nil && v.ServiceBusyError != nil } // GetWorkflowExecutionAlreadyCompletedError returns the value of WorkflowExecutionAlreadyCompletedError if it is set or its // zero value if it is unset. -func (v *HistoryService_RespondActivityTaskCompleted_Result) GetWorkflowExecutionAlreadyCompletedError() (o *shared.WorkflowExecutionAlreadyCompletedError) { +func (v *HistoryService_RespondActivityTaskFailed_Result) GetWorkflowExecutionAlreadyCompletedError() (o *shared.WorkflowExecutionAlreadyCompletedError) { if v != nil && v.WorkflowExecutionAlreadyCompletedError != nil { return v.WorkflowExecutionAlreadyCompletedError } @@ -34140,33 +35534,33 @@ func (v *HistoryService_RespondActivityTaskCompleted_Result) GetWorkflowExecutio } // IsSetWorkflowExecutionAlreadyCompletedError returns true if WorkflowExecutionAlreadyCompletedError is not nil. -func (v *HistoryService_RespondActivityTaskCompleted_Result) IsSetWorkflowExecutionAlreadyCompletedError() bool { +func (v *HistoryService_RespondActivityTaskFailed_Result) IsSetWorkflowExecutionAlreadyCompletedError() bool { return v != nil && v.WorkflowExecutionAlreadyCompletedError != 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 "RespondActivityTaskCompleted" for this struct. -func (v *HistoryService_RespondActivityTaskCompleted_Result) MethodName() string { - return "RespondActivityTaskCompleted" +// This will always be "RespondActivityTaskFailed" for this struct. +func (v *HistoryService_RespondActivityTaskFailed_Result) MethodName() string { + return "RespondActivityTaskFailed" } // EnvelopeType returns the kind of value inside this struct. // // This will always be Reply for this struct. -func (v *HistoryService_RespondActivityTaskCompleted_Result) EnvelopeType() wire.EnvelopeType { +func (v *HistoryService_RespondActivityTaskFailed_Result) EnvelopeType() wire.EnvelopeType { return wire.Reply } -// HistoryService_RespondActivityTaskFailed_Args represents the arguments for the HistoryService.RespondActivityTaskFailed function. +// HistoryService_RespondCrossClusterTasksCompleted_Args represents the arguments for the HistoryService.RespondCrossClusterTasksCompleted function. // -// The arguments for RespondActivityTaskFailed are sent and received over the wire as this struct. -type HistoryService_RespondActivityTaskFailed_Args struct { - FailRequest *RespondActivityTaskFailedRequest `json:"failRequest,omitempty"` +// The arguments for RespondCrossClusterTasksCompleted are sent and received over the wire as this struct. +type HistoryService_RespondCrossClusterTasksCompleted_Args struct { + Request *shared.RespondCrossClusterTasksCompletedRequest `json:"request,omitempty"` } -// ToWire translates a HistoryService_RespondActivityTaskFailed_Args struct into a Thrift-level intermediate +// ToWire translates a HistoryService_RespondCrossClusterTasksCompleted_Args struct into a Thrift-level intermediate // representation. This intermediate representation may be serialized // into bytes using a ThriftRW protocol implementation. // @@ -34181,7 +35575,7 @@ type HistoryService_RespondActivityTaskFailed_Args struct { // if err := binaryProtocol.Encode(x, writer); err != nil { // return err // } -func (v *HistoryService_RespondActivityTaskFailed_Args) ToWire() (wire.Value, error) { +func (v *HistoryService_RespondCrossClusterTasksCompleted_Args) ToWire() (wire.Value, error) { var ( fields [1]wire.Field i int = 0 @@ -34189,8 +35583,8 @@ func (v *HistoryService_RespondActivityTaskFailed_Args) ToWire() (wire.Value, er err error ) - if v.FailRequest != nil { - w, err = v.FailRequest.ToWire() + if v.Request != nil { + w, err = v.Request.ToWire() if err != nil { return w, err } @@ -34201,17 +35595,17 @@ func (v *HistoryService_RespondActivityTaskFailed_Args) ToWire() (wire.Value, er return wire.NewValueStruct(wire.Struct{Fields: fields[:i]}), nil } -func _RespondActivityTaskFailedRequest_1_Read(w wire.Value) (*RespondActivityTaskFailedRequest, error) { - var v RespondActivityTaskFailedRequest +func _RespondCrossClusterTasksCompletedRequest_Read(w wire.Value) (*shared.RespondCrossClusterTasksCompletedRequest, error) { + var v shared.RespondCrossClusterTasksCompletedRequest err := v.FromWire(w) return &v, err } -// FromWire deserializes a HistoryService_RespondActivityTaskFailed_Args struct from its Thrift-level +// FromWire deserializes a HistoryService_RespondCrossClusterTasksCompleted_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 HistoryService_RespondActivityTaskFailed_Args struct +// An error is returned if we were unable to build a HistoryService_RespondCrossClusterTasksCompleted_Args struct // from the provided intermediate representation. // // x, err := binaryProtocol.Decode(reader, wire.TStruct) @@ -34219,19 +35613,19 @@ func _RespondActivityTaskFailedRequest_1_Read(w wire.Value) (*RespondActivityTas // return nil, err // } // -// var v HistoryService_RespondActivityTaskFailed_Args +// var v HistoryService_RespondCrossClusterTasksCompleted_Args // if err := v.FromWire(x); err != nil { // return nil, err // } // return &v, nil -func (v *HistoryService_RespondActivityTaskFailed_Args) FromWire(w wire.Value) error { +func (v *HistoryService_RespondCrossClusterTasksCompleted_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.FailRequest, err = _RespondActivityTaskFailedRequest_1_Read(field.Value) + v.Request, err = _RespondCrossClusterTasksCompletedRequest_Read(field.Value) if err != nil { return err } @@ -34243,34 +35637,34 @@ func (v *HistoryService_RespondActivityTaskFailed_Args) FromWire(w wire.Value) e return nil } -// String returns a readable string representation of a HistoryService_RespondActivityTaskFailed_Args +// String returns a readable string representation of a HistoryService_RespondCrossClusterTasksCompleted_Args // struct. -func (v *HistoryService_RespondActivityTaskFailed_Args) String() string { +func (v *HistoryService_RespondCrossClusterTasksCompleted_Args) String() string { if v == nil { return "" } var fields [1]string i := 0 - if v.FailRequest != nil { - fields[i] = fmt.Sprintf("FailRequest: %v", v.FailRequest) + if v.Request != nil { + fields[i] = fmt.Sprintf("Request: %v", v.Request) i++ } - return fmt.Sprintf("HistoryService_RespondActivityTaskFailed_Args{%v}", strings.Join(fields[:i], ", ")) + return fmt.Sprintf("HistoryService_RespondCrossClusterTasksCompleted_Args{%v}", strings.Join(fields[:i], ", ")) } -// Equals returns true if all the fields of this HistoryService_RespondActivityTaskFailed_Args match the -// provided HistoryService_RespondActivityTaskFailed_Args. +// Equals returns true if all the fields of this HistoryService_RespondCrossClusterTasksCompleted_Args match the +// provided HistoryService_RespondCrossClusterTasksCompleted_Args. // // This function performs a deep comparison. -func (v *HistoryService_RespondActivityTaskFailed_Args) Equals(rhs *HistoryService_RespondActivityTaskFailed_Args) bool { +func (v *HistoryService_RespondCrossClusterTasksCompleted_Args) Equals(rhs *HistoryService_RespondCrossClusterTasksCompleted_Args) bool { if v == nil { return rhs == nil } else if rhs == nil { return false } - if !((v.FailRequest == nil && rhs.FailRequest == nil) || (v.FailRequest != nil && rhs.FailRequest != nil && v.FailRequest.Equals(rhs.FailRequest))) { + if !((v.Request == nil && rhs.Request == nil) || (v.Request != nil && rhs.Request != nil && v.Request.Equals(rhs.Request))) { return false } @@ -34278,176 +35672,147 @@ func (v *HistoryService_RespondActivityTaskFailed_Args) Equals(rhs *HistoryServi } // MarshalLogObject implements zapcore.ObjectMarshaler, enabling -// fast logging of HistoryService_RespondActivityTaskFailed_Args. -func (v *HistoryService_RespondActivityTaskFailed_Args) MarshalLogObject(enc zapcore.ObjectEncoder) (err error) { +// fast logging of HistoryService_RespondCrossClusterTasksCompleted_Args. +func (v *HistoryService_RespondCrossClusterTasksCompleted_Args) MarshalLogObject(enc zapcore.ObjectEncoder) (err error) { if v == nil { return nil } - if v.FailRequest != nil { - err = multierr.Append(err, enc.AddObject("failRequest", v.FailRequest)) + if v.Request != nil { + err = multierr.Append(err, enc.AddObject("request", v.Request)) } return err } -// GetFailRequest returns the value of FailRequest if it is set or its +// GetRequest returns the value of Request if it is set or its // zero value if it is unset. -func (v *HistoryService_RespondActivityTaskFailed_Args) GetFailRequest() (o *RespondActivityTaskFailedRequest) { - if v != nil && v.FailRequest != nil { - return v.FailRequest +func (v *HistoryService_RespondCrossClusterTasksCompleted_Args) GetRequest() (o *shared.RespondCrossClusterTasksCompletedRequest) { + if v != nil && v.Request != nil { + return v.Request } return } -// IsSetFailRequest returns true if FailRequest is not nil. -func (v *HistoryService_RespondActivityTaskFailed_Args) IsSetFailRequest() bool { - return v != nil && v.FailRequest != nil +// IsSetRequest returns true if Request is not nil. +func (v *HistoryService_RespondCrossClusterTasksCompleted_Args) IsSetRequest() bool { + return v != nil && v.Request != 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 "RespondActivityTaskFailed" for this struct. -func (v *HistoryService_RespondActivityTaskFailed_Args) MethodName() string { - return "RespondActivityTaskFailed" +// This will always be "RespondCrossClusterTasksCompleted" for this struct. +func (v *HistoryService_RespondCrossClusterTasksCompleted_Args) MethodName() string { + return "RespondCrossClusterTasksCompleted" } // EnvelopeType returns the kind of value inside this struct. // // This will always be Call for this struct. -func (v *HistoryService_RespondActivityTaskFailed_Args) EnvelopeType() wire.EnvelopeType { +func (v *HistoryService_RespondCrossClusterTasksCompleted_Args) EnvelopeType() wire.EnvelopeType { return wire.Call } -// HistoryService_RespondActivityTaskFailed_Helper provides functions that aid in handling the -// parameters and return values of the HistoryService.RespondActivityTaskFailed +// HistoryService_RespondCrossClusterTasksCompleted_Helper provides functions that aid in handling the +// parameters and return values of the HistoryService.RespondCrossClusterTasksCompleted // function. -var HistoryService_RespondActivityTaskFailed_Helper = struct { - // Args accepts the parameters of RespondActivityTaskFailed in-order and returns +var HistoryService_RespondCrossClusterTasksCompleted_Helper = struct { + // Args accepts the parameters of RespondCrossClusterTasksCompleted in-order and returns // the arguments struct for the function. Args func( - failRequest *RespondActivityTaskFailedRequest, - ) *HistoryService_RespondActivityTaskFailed_Args + request *shared.RespondCrossClusterTasksCompletedRequest, + ) *HistoryService_RespondCrossClusterTasksCompleted_Args // IsException returns true if the given error can be thrown - // by RespondActivityTaskFailed. + // by RespondCrossClusterTasksCompleted. // - // An error can be thrown by RespondActivityTaskFailed only if the + // An error can be thrown by RespondCrossClusterTasksCompleted 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 RespondActivityTaskFailed - // given the error returned by it. The provided error may - // be nil if RespondActivityTaskFailed did not fail. + // WrapResponse returns the result struct for RespondCrossClusterTasksCompleted + // given its return value and error. // - // This allows mapping errors returned by RespondActivityTaskFailed into a - // serializable result struct. WrapResponse returns a - // non-nil error if the provided error cannot be thrown by - // RespondActivityTaskFailed + // This allows mapping values and errors returned by + // RespondCrossClusterTasksCompleted into a serializable result struct. + // WrapResponse returns a non-nil error if the provided + // error cannot be thrown by RespondCrossClusterTasksCompleted // - // err := RespondActivityTaskFailed(args) - // result, err := HistoryService_RespondActivityTaskFailed_Helper.WrapResponse(err) + // value, err := RespondCrossClusterTasksCompleted(args) + // result, err := HistoryService_RespondCrossClusterTasksCompleted_Helper.WrapResponse(value, err) // if err != nil { - // return fmt.Errorf("unexpected error from RespondActivityTaskFailed: %v", err) + // return fmt.Errorf("unexpected error from RespondCrossClusterTasksCompleted: %v", err) // } // serialize(result) - WrapResponse func(error) (*HistoryService_RespondActivityTaskFailed_Result, error) + WrapResponse func(*shared.RespondCrossClusterTasksCompletedResponse, error) (*HistoryService_RespondCrossClusterTasksCompleted_Result, error) - // UnwrapResponse takes the result struct for RespondActivityTaskFailed - // and returns the erorr returned by it (if any). + // UnwrapResponse takes the result struct for RespondCrossClusterTasksCompleted + // and returns the value or error returned by it. // - // The error is non-nil only if RespondActivityTaskFailed threw an + // The error is non-nil only if RespondCrossClusterTasksCompleted threw an // exception. // // result := deserialize(bytes) - // err := HistoryService_RespondActivityTaskFailed_Helper.UnwrapResponse(result) - UnwrapResponse func(*HistoryService_RespondActivityTaskFailed_Result) error + // value, err := HistoryService_RespondCrossClusterTasksCompleted_Helper.UnwrapResponse(result) + UnwrapResponse func(*HistoryService_RespondCrossClusterTasksCompleted_Result) (*shared.RespondCrossClusterTasksCompletedResponse, error) }{} func init() { - HistoryService_RespondActivityTaskFailed_Helper.Args = func( - failRequest *RespondActivityTaskFailedRequest, - ) *HistoryService_RespondActivityTaskFailed_Args { - return &HistoryService_RespondActivityTaskFailed_Args{ - FailRequest: failRequest, + HistoryService_RespondCrossClusterTasksCompleted_Helper.Args = func( + request *shared.RespondCrossClusterTasksCompletedRequest, + ) *HistoryService_RespondCrossClusterTasksCompleted_Args { + return &HistoryService_RespondCrossClusterTasksCompleted_Args{ + Request: request, } } - HistoryService_RespondActivityTaskFailed_Helper.IsException = func(err error) bool { + HistoryService_RespondCrossClusterTasksCompleted_Helper.IsException = func(err error) bool { switch err.(type) { case *shared.BadRequestError: return true case *shared.InternalServiceError: return true - case *shared.EntityNotExistsError: - return true - case *ShardOwnershipLostError: - return true - case *shared.DomainNotActiveError: - return true - case *shared.LimitExceededError: - return true case *shared.ServiceBusyError: return true - case *shared.WorkflowExecutionAlreadyCompletedError: + case *ShardOwnershipLostError: return true default: return false } } - HistoryService_RespondActivityTaskFailed_Helper.WrapResponse = func(err error) (*HistoryService_RespondActivityTaskFailed_Result, error) { + HistoryService_RespondCrossClusterTasksCompleted_Helper.WrapResponse = func(success *shared.RespondCrossClusterTasksCompletedResponse, err error) (*HistoryService_RespondCrossClusterTasksCompleted_Result, error) { if err == nil { - return &HistoryService_RespondActivityTaskFailed_Result{}, nil + return &HistoryService_RespondCrossClusterTasksCompleted_Result{Success: success}, nil } switch e := err.(type) { case *shared.BadRequestError: if e == nil { - return nil, errors.New("WrapResponse received non-nil error type with nil value for HistoryService_RespondActivityTaskFailed_Result.BadRequestError") + return nil, errors.New("WrapResponse received non-nil error type with nil value for HistoryService_RespondCrossClusterTasksCompleted_Result.BadRequestError") } - return &HistoryService_RespondActivityTaskFailed_Result{BadRequestError: e}, nil + return &HistoryService_RespondCrossClusterTasksCompleted_Result{BadRequestError: e}, nil case *shared.InternalServiceError: if e == nil { - return nil, errors.New("WrapResponse received non-nil error type with nil value for HistoryService_RespondActivityTaskFailed_Result.InternalServiceError") - } - return &HistoryService_RespondActivityTaskFailed_Result{InternalServiceError: e}, nil - case *shared.EntityNotExistsError: - if e == nil { - return nil, errors.New("WrapResponse received non-nil error type with nil value for HistoryService_RespondActivityTaskFailed_Result.EntityNotExistError") - } - return &HistoryService_RespondActivityTaskFailed_Result{EntityNotExistError: e}, nil - case *ShardOwnershipLostError: - if e == nil { - return nil, errors.New("WrapResponse received non-nil error type with nil value for HistoryService_RespondActivityTaskFailed_Result.ShardOwnershipLostError") - } - return &HistoryService_RespondActivityTaskFailed_Result{ShardOwnershipLostError: e}, nil - case *shared.DomainNotActiveError: - if e == nil { - return nil, errors.New("WrapResponse received non-nil error type with nil value for HistoryService_RespondActivityTaskFailed_Result.DomainNotActiveError") - } - return &HistoryService_RespondActivityTaskFailed_Result{DomainNotActiveError: e}, nil - case *shared.LimitExceededError: - if e == nil { - return nil, errors.New("WrapResponse received non-nil error type with nil value for HistoryService_RespondActivityTaskFailed_Result.LimitExceededError") + return nil, errors.New("WrapResponse received non-nil error type with nil value for HistoryService_RespondCrossClusterTasksCompleted_Result.InternalServiceError") } - return &HistoryService_RespondActivityTaskFailed_Result{LimitExceededError: e}, nil + return &HistoryService_RespondCrossClusterTasksCompleted_Result{InternalServiceError: e}, nil case *shared.ServiceBusyError: if e == nil { - return nil, errors.New("WrapResponse received non-nil error type with nil value for HistoryService_RespondActivityTaskFailed_Result.ServiceBusyError") + return nil, errors.New("WrapResponse received non-nil error type with nil value for HistoryService_RespondCrossClusterTasksCompleted_Result.ServiceBusyError") } - return &HistoryService_RespondActivityTaskFailed_Result{ServiceBusyError: e}, nil - case *shared.WorkflowExecutionAlreadyCompletedError: + return &HistoryService_RespondCrossClusterTasksCompleted_Result{ServiceBusyError: e}, nil + case *ShardOwnershipLostError: if e == nil { - return nil, errors.New("WrapResponse received non-nil error type with nil value for HistoryService_RespondActivityTaskFailed_Result.WorkflowExecutionAlreadyCompletedError") + return nil, errors.New("WrapResponse received non-nil error type with nil value for HistoryService_RespondCrossClusterTasksCompleted_Result.ShardOwnershipLostError") } - return &HistoryService_RespondActivityTaskFailed_Result{WorkflowExecutionAlreadyCompletedError: e}, nil + return &HistoryService_RespondCrossClusterTasksCompleted_Result{ShardOwnershipLostError: e}, nil } return nil, err } - HistoryService_RespondActivityTaskFailed_Helper.UnwrapResponse = func(result *HistoryService_RespondActivityTaskFailed_Result) (err error) { + HistoryService_RespondCrossClusterTasksCompleted_Helper.UnwrapResponse = func(result *HistoryService_RespondCrossClusterTasksCompleted_Result) (success *shared.RespondCrossClusterTasksCompletedResponse, err error) { if result.BadRequestError != nil { err = result.BadRequestError return @@ -34456,50 +35821,41 @@ func init() { err = result.InternalServiceError return } - if result.EntityNotExistError != nil { - err = result.EntityNotExistError + if result.ServiceBusyError != nil { + err = result.ServiceBusyError return } if result.ShardOwnershipLostError != nil { err = result.ShardOwnershipLostError return } - if result.DomainNotActiveError != nil { - err = result.DomainNotActiveError - return - } - if result.LimitExceededError != nil { - err = result.LimitExceededError - return - } - if result.ServiceBusyError != nil { - err = result.ServiceBusyError - return - } - if result.WorkflowExecutionAlreadyCompletedError != nil { - err = result.WorkflowExecutionAlreadyCompletedError + + if result.Success != nil { + success = result.Success return } + + err = errors.New("expected a non-void result") return } } -// HistoryService_RespondActivityTaskFailed_Result represents the result of a HistoryService.RespondActivityTaskFailed function call. +// HistoryService_RespondCrossClusterTasksCompleted_Result represents the result of a HistoryService.RespondCrossClusterTasksCompleted function call. // -// The result of a RespondActivityTaskFailed execution is sent and received over the wire as this struct. -type HistoryService_RespondActivityTaskFailed_Result struct { - BadRequestError *shared.BadRequestError `json:"badRequestError,omitempty"` - InternalServiceError *shared.InternalServiceError `json:"internalServiceError,omitempty"` - EntityNotExistError *shared.EntityNotExistsError `json:"entityNotExistError,omitempty"` - ShardOwnershipLostError *ShardOwnershipLostError `json:"shardOwnershipLostError,omitempty"` - DomainNotActiveError *shared.DomainNotActiveError `json:"domainNotActiveError,omitempty"` - LimitExceededError *shared.LimitExceededError `json:"limitExceededError,omitempty"` - ServiceBusyError *shared.ServiceBusyError `json:"serviceBusyError,omitempty"` - WorkflowExecutionAlreadyCompletedError *shared.WorkflowExecutionAlreadyCompletedError `json:"workflowExecutionAlreadyCompletedError,omitempty"` +// The result of a RespondCrossClusterTasksCompleted execution is sent and received over the wire as this struct. +// +// Success is set only if the function did not throw an exception. +type HistoryService_RespondCrossClusterTasksCompleted_Result struct { + // Value returned by RespondCrossClusterTasksCompleted after a successful execution. + Success *shared.RespondCrossClusterTasksCompletedResponse `json:"success,omitempty"` + BadRequestError *shared.BadRequestError `json:"badRequestError,omitempty"` + InternalServiceError *shared.InternalServiceError `json:"internalServiceError,omitempty"` + ServiceBusyError *shared.ServiceBusyError `json:"serviceBusyError,omitempty"` + ShardOwnershipLostError *ShardOwnershipLostError `json:"shardOwnershipLostError,omitempty"` } -// ToWire translates a HistoryService_RespondActivityTaskFailed_Result struct into a Thrift-level intermediate +// ToWire translates a HistoryService_RespondCrossClusterTasksCompleted_Result struct into a Thrift-level intermediate // representation. This intermediate representation may be serialized // into bytes using a ThriftRW protocol implementation. // @@ -34514,60 +35870,36 @@ type HistoryService_RespondActivityTaskFailed_Result struct { // if err := binaryProtocol.Encode(x, writer); err != nil { // return err // } -func (v *HistoryService_RespondActivityTaskFailed_Result) ToWire() (wire.Value, error) { +func (v *HistoryService_RespondCrossClusterTasksCompleted_Result) ToWire() (wire.Value, error) { var ( - fields [8]wire.Field + fields [5]wire.Field i int = 0 w wire.Value err error ) - if v.BadRequestError != nil { - w, err = v.BadRequestError.ToWire() - if err != nil { - return w, err - } - fields[i] = wire.Field{ID: 1, Value: w} - i++ - } - if v.InternalServiceError != nil { - w, err = v.InternalServiceError.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.ShardOwnershipLostError != nil { - w, err = v.ShardOwnershipLostError.ToWire() + if v.Success != nil { + w, err = v.Success.ToWire() if err != nil { return w, err } - fields[i] = wire.Field{ID: 4, Value: w} + fields[i] = wire.Field{ID: 0, Value: w} i++ - } - if v.DomainNotActiveError != nil { - w, err = v.DomainNotActiveError.ToWire() + } + if v.BadRequestError != nil { + w, err = v.BadRequestError.ToWire() if err != nil { return w, err } - fields[i] = wire.Field{ID: 5, Value: w} + fields[i] = wire.Field{ID: 1, Value: w} i++ } - if v.LimitExceededError != nil { - w, err = v.LimitExceededError.ToWire() + if v.InternalServiceError != nil { + w, err = v.InternalServiceError.ToWire() if err != nil { return w, err } - fields[i] = wire.Field{ID: 6, Value: w} + fields[i] = wire.Field{ID: 2, Value: w} i++ } if v.ServiceBusyError != nil { @@ -34575,30 +35907,36 @@ func (v *HistoryService_RespondActivityTaskFailed_Result) ToWire() (wire.Value, if err != nil { return w, err } - fields[i] = wire.Field{ID: 7, Value: w} + fields[i] = wire.Field{ID: 3, Value: w} i++ } - if v.WorkflowExecutionAlreadyCompletedError != nil { - w, err = v.WorkflowExecutionAlreadyCompletedError.ToWire() + if v.ShardOwnershipLostError != nil { + w, err = v.ShardOwnershipLostError.ToWire() if err != nil { return w, err } - fields[i] = wire.Field{ID: 8, Value: w} + fields[i] = wire.Field{ID: 4, Value: w} i++ } - if i > 1 { - return wire.Value{}, fmt.Errorf("HistoryService_RespondActivityTaskFailed_Result should have at most one field: got %v fields", i) + if i != 1 { + return wire.Value{}, fmt.Errorf("HistoryService_RespondCrossClusterTasksCompleted_Result should have exactly one field: got %v fields", i) } return wire.NewValueStruct(wire.Struct{Fields: fields[:i]}), nil } -// FromWire deserializes a HistoryService_RespondActivityTaskFailed_Result struct from its Thrift-level +func _RespondCrossClusterTasksCompletedResponse_Read(w wire.Value) (*shared.RespondCrossClusterTasksCompletedResponse, error) { + var v shared.RespondCrossClusterTasksCompletedResponse + err := v.FromWire(w) + return &v, err +} + +// FromWire deserializes a HistoryService_RespondCrossClusterTasksCompleted_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 HistoryService_RespondActivityTaskFailed_Result struct +// An error is returned if we were unable to build a HistoryService_RespondCrossClusterTasksCompleted_Result struct // from the provided intermediate representation. // // x, err := binaryProtocol.Decode(reader, wire.TStruct) @@ -34606,65 +35944,41 @@ func (v *HistoryService_RespondActivityTaskFailed_Result) ToWire() (wire.Value, // return nil, err // } // -// var v HistoryService_RespondActivityTaskFailed_Result +// var v HistoryService_RespondCrossClusterTasksCompleted_Result // if err := v.FromWire(x); err != nil { // return nil, err // } // return &v, nil -func (v *HistoryService_RespondActivityTaskFailed_Result) FromWire(w wire.Value) error { +func (v *HistoryService_RespondCrossClusterTasksCompleted_Result) 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.BadRequestError, err = _BadRequestError_Read(field.Value) - if err != nil { - return err - } - - } - case 2: - if field.Value.Type() == wire.TStruct { - v.InternalServiceError, err = _InternalServiceError_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: + case 0: if field.Value.Type() == wire.TStruct { - v.ShardOwnershipLostError, err = _ShardOwnershipLostError_Read(field.Value) + v.Success, err = _RespondCrossClusterTasksCompletedResponse_Read(field.Value) if err != nil { return err } } - case 5: + case 1: if field.Value.Type() == wire.TStruct { - v.DomainNotActiveError, err = _DomainNotActiveError_Read(field.Value) + v.BadRequestError, err = _BadRequestError_Read(field.Value) if err != nil { return err } } - case 6: + case 2: if field.Value.Type() == wire.TStruct { - v.LimitExceededError, err = _LimitExceededError_Read(field.Value) + v.InternalServiceError, err = _InternalServiceError_Read(field.Value) if err != nil { return err } } - case 7: + case 3: if field.Value.Type() == wire.TStruct { v.ServiceBusyError, err = _ServiceBusyError_Read(field.Value) if err != nil { @@ -34672,9 +35986,9 @@ func (v *HistoryService_RespondActivityTaskFailed_Result) FromWire(w wire.Value) } } - case 8: + case 4: if field.Value.Type() == wire.TStruct { - v.WorkflowExecutionAlreadyCompletedError, err = _WorkflowExecutionAlreadyCompletedError_Read(field.Value) + v.ShardOwnershipLostError, err = _ShardOwnershipLostError_Read(field.Value) if err != nil { return err } @@ -34684,46 +35998,41 @@ func (v *HistoryService_RespondActivityTaskFailed_Result) FromWire(w wire.Value) } count := 0 - if v.BadRequestError != nil { - count++ - } - if v.InternalServiceError != nil { - count++ - } - if v.EntityNotExistError != nil { - count++ - } - if v.ShardOwnershipLostError != nil { + if v.Success != nil { count++ } - if v.DomainNotActiveError != nil { + if v.BadRequestError != nil { count++ } - if v.LimitExceededError != nil { + if v.InternalServiceError != nil { count++ } if v.ServiceBusyError != nil { count++ } - if v.WorkflowExecutionAlreadyCompletedError != nil { + if v.ShardOwnershipLostError != nil { count++ } - if count > 1 { - return fmt.Errorf("HistoryService_RespondActivityTaskFailed_Result should have at most one field: got %v fields", count) + if count != 1 { + return fmt.Errorf("HistoryService_RespondCrossClusterTasksCompleted_Result should have exactly one field: got %v fields", count) } return nil } -// String returns a readable string representation of a HistoryService_RespondActivityTaskFailed_Result +// String returns a readable string representation of a HistoryService_RespondCrossClusterTasksCompleted_Result // struct. -func (v *HistoryService_RespondActivityTaskFailed_Result) String() string { +func (v *HistoryService_RespondCrossClusterTasksCompleted_Result) String() string { if v == nil { return "" } - var fields [8]string + var fields [5]string i := 0 + if v.Success != nil { + fields[i] = fmt.Sprintf("Success: %v", v.Success) + i++ + } if v.BadRequestError != nil { fields[i] = fmt.Sprintf("BadRequestError: %v", v.BadRequestError) i++ @@ -34732,66 +36041,41 @@ func (v *HistoryService_RespondActivityTaskFailed_Result) String() string { fields[i] = fmt.Sprintf("InternalServiceError: %v", v.InternalServiceError) i++ } - if v.EntityNotExistError != nil { - fields[i] = fmt.Sprintf("EntityNotExistError: %v", v.EntityNotExistError) - i++ - } - if v.ShardOwnershipLostError != nil { - fields[i] = fmt.Sprintf("ShardOwnershipLostError: %v", v.ShardOwnershipLostError) - i++ - } - if v.DomainNotActiveError != nil { - fields[i] = fmt.Sprintf("DomainNotActiveError: %v", v.DomainNotActiveError) - i++ - } - if v.LimitExceededError != nil { - fields[i] = fmt.Sprintf("LimitExceededError: %v", v.LimitExceededError) - i++ - } if v.ServiceBusyError != nil { fields[i] = fmt.Sprintf("ServiceBusyError: %v", v.ServiceBusyError) i++ } - if v.WorkflowExecutionAlreadyCompletedError != nil { - fields[i] = fmt.Sprintf("WorkflowExecutionAlreadyCompletedError: %v", v.WorkflowExecutionAlreadyCompletedError) + if v.ShardOwnershipLostError != nil { + fields[i] = fmt.Sprintf("ShardOwnershipLostError: %v", v.ShardOwnershipLostError) i++ } - return fmt.Sprintf("HistoryService_RespondActivityTaskFailed_Result{%v}", strings.Join(fields[:i], ", ")) + return fmt.Sprintf("HistoryService_RespondCrossClusterTasksCompleted_Result{%v}", strings.Join(fields[:i], ", ")) } -// Equals returns true if all the fields of this HistoryService_RespondActivityTaskFailed_Result match the -// provided HistoryService_RespondActivityTaskFailed_Result. +// Equals returns true if all the fields of this HistoryService_RespondCrossClusterTasksCompleted_Result match the +// provided HistoryService_RespondCrossClusterTasksCompleted_Result. // // This function performs a deep comparison. -func (v *HistoryService_RespondActivityTaskFailed_Result) Equals(rhs *HistoryService_RespondActivityTaskFailed_Result) bool { +func (v *HistoryService_RespondCrossClusterTasksCompleted_Result) Equals(rhs *HistoryService_RespondCrossClusterTasksCompleted_Result) bool { if v == nil { return rhs == nil } else if rhs == nil { return false } - if !((v.BadRequestError == nil && rhs.BadRequestError == nil) || (v.BadRequestError != nil && rhs.BadRequestError != nil && v.BadRequestError.Equals(rhs.BadRequestError))) { - return false - } - if !((v.InternalServiceError == nil && rhs.InternalServiceError == nil) || (v.InternalServiceError != nil && rhs.InternalServiceError != nil && v.InternalServiceError.Equals(rhs.InternalServiceError))) { - return false - } - if !((v.EntityNotExistError == nil && rhs.EntityNotExistError == nil) || (v.EntityNotExistError != nil && rhs.EntityNotExistError != nil && v.EntityNotExistError.Equals(rhs.EntityNotExistError))) { - return false - } - if !((v.ShardOwnershipLostError == nil && rhs.ShardOwnershipLostError == nil) || (v.ShardOwnershipLostError != nil && rhs.ShardOwnershipLostError != nil && v.ShardOwnershipLostError.Equals(rhs.ShardOwnershipLostError))) { + 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))) { + if !((v.BadRequestError == nil && rhs.BadRequestError == nil) || (v.BadRequestError != nil && rhs.BadRequestError != nil && v.BadRequestError.Equals(rhs.BadRequestError))) { return false } - if !((v.LimitExceededError == nil && rhs.LimitExceededError == nil) || (v.LimitExceededError != nil && rhs.LimitExceededError != nil && v.LimitExceededError.Equals(rhs.LimitExceededError))) { + if !((v.InternalServiceError == nil && rhs.InternalServiceError == nil) || (v.InternalServiceError != nil && rhs.InternalServiceError != nil && v.InternalServiceError.Equals(rhs.InternalServiceError))) { return false } if !((v.ServiceBusyError == nil && rhs.ServiceBusyError == nil) || (v.ServiceBusyError != nil && rhs.ServiceBusyError != nil && v.ServiceBusyError.Equals(rhs.ServiceBusyError))) { return false } - if !((v.WorkflowExecutionAlreadyCompletedError == nil && rhs.WorkflowExecutionAlreadyCompletedError == nil) || (v.WorkflowExecutionAlreadyCompletedError != nil && rhs.WorkflowExecutionAlreadyCompletedError != nil && v.WorkflowExecutionAlreadyCompletedError.Equals(rhs.WorkflowExecutionAlreadyCompletedError))) { + if !((v.ShardOwnershipLostError == nil && rhs.ShardOwnershipLostError == nil) || (v.ShardOwnershipLostError != nil && rhs.ShardOwnershipLostError != nil && v.ShardOwnershipLostError.Equals(rhs.ShardOwnershipLostError))) { return false } @@ -34799,41 +36083,47 @@ func (v *HistoryService_RespondActivityTaskFailed_Result) Equals(rhs *HistorySer } // MarshalLogObject implements zapcore.ObjectMarshaler, enabling -// fast logging of HistoryService_RespondActivityTaskFailed_Result. -func (v *HistoryService_RespondActivityTaskFailed_Result) MarshalLogObject(enc zapcore.ObjectEncoder) (err error) { +// fast logging of HistoryService_RespondCrossClusterTasksCompleted_Result. +func (v *HistoryService_RespondCrossClusterTasksCompleted_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.BadRequestError != nil { err = multierr.Append(err, enc.AddObject("badRequestError", v.BadRequestError)) } if v.InternalServiceError != nil { err = multierr.Append(err, enc.AddObject("internalServiceError", v.InternalServiceError)) } - if v.EntityNotExistError != nil { - err = multierr.Append(err, enc.AddObject("entityNotExistError", v.EntityNotExistError)) - } - if v.ShardOwnershipLostError != nil { - err = multierr.Append(err, enc.AddObject("shardOwnershipLostError", v.ShardOwnershipLostError)) - } - if v.DomainNotActiveError != nil { - err = multierr.Append(err, enc.AddObject("domainNotActiveError", v.DomainNotActiveError)) - } - if v.LimitExceededError != nil { - err = multierr.Append(err, enc.AddObject("limitExceededError", v.LimitExceededError)) - } if v.ServiceBusyError != nil { err = multierr.Append(err, enc.AddObject("serviceBusyError", v.ServiceBusyError)) } - if v.WorkflowExecutionAlreadyCompletedError != nil { - err = multierr.Append(err, enc.AddObject("workflowExecutionAlreadyCompletedError", v.WorkflowExecutionAlreadyCompletedError)) + if v.ShardOwnershipLostError != nil { + err = multierr.Append(err, enc.AddObject("shardOwnershipLostError", v.ShardOwnershipLostError)) } return err } +// GetSuccess returns the value of Success if it is set or its +// zero value if it is unset. +func (v *HistoryService_RespondCrossClusterTasksCompleted_Result) GetSuccess() (o *shared.RespondCrossClusterTasksCompletedResponse) { + if v != nil && v.Success != nil { + return v.Success + } + + return +} + +// IsSetSuccess returns true if Success is not nil. +func (v *HistoryService_RespondCrossClusterTasksCompleted_Result) IsSetSuccess() bool { + return v != nil && v.Success != nil +} + // GetBadRequestError returns the value of BadRequestError if it is set or its // zero value if it is unset. -func (v *HistoryService_RespondActivityTaskFailed_Result) GetBadRequestError() (o *shared.BadRequestError) { +func (v *HistoryService_RespondCrossClusterTasksCompleted_Result) GetBadRequestError() (o *shared.BadRequestError) { if v != nil && v.BadRequestError != nil { return v.BadRequestError } @@ -34842,13 +36132,13 @@ func (v *HistoryService_RespondActivityTaskFailed_Result) GetBadRequestError() ( } // IsSetBadRequestError returns true if BadRequestError is not nil. -func (v *HistoryService_RespondActivityTaskFailed_Result) IsSetBadRequestError() bool { +func (v *HistoryService_RespondCrossClusterTasksCompleted_Result) IsSetBadRequestError() bool { return v != nil && v.BadRequestError != nil } // GetInternalServiceError returns the value of InternalServiceError if it is set or its // zero value if it is unset. -func (v *HistoryService_RespondActivityTaskFailed_Result) GetInternalServiceError() (o *shared.InternalServiceError) { +func (v *HistoryService_RespondCrossClusterTasksCompleted_Result) GetInternalServiceError() (o *shared.InternalServiceError) { if v != nil && v.InternalServiceError != nil { return v.InternalServiceError } @@ -34857,73 +36147,13 @@ func (v *HistoryService_RespondActivityTaskFailed_Result) GetInternalServiceErro } // IsSetInternalServiceError returns true if InternalServiceError is not nil. -func (v *HistoryService_RespondActivityTaskFailed_Result) IsSetInternalServiceError() bool { +func (v *HistoryService_RespondCrossClusterTasksCompleted_Result) IsSetInternalServiceError() bool { return v != nil && v.InternalServiceError != nil } -// GetEntityNotExistError returns the value of EntityNotExistError if it is set or its -// zero value if it is unset. -func (v *HistoryService_RespondActivityTaskFailed_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 *HistoryService_RespondActivityTaskFailed_Result) IsSetEntityNotExistError() bool { - return v != nil && v.EntityNotExistError != nil -} - -// GetShardOwnershipLostError returns the value of ShardOwnershipLostError if it is set or its -// zero value if it is unset. -func (v *HistoryService_RespondActivityTaskFailed_Result) GetShardOwnershipLostError() (o *ShardOwnershipLostError) { - if v != nil && v.ShardOwnershipLostError != nil { - return v.ShardOwnershipLostError - } - - return -} - -// IsSetShardOwnershipLostError returns true if ShardOwnershipLostError is not nil. -func (v *HistoryService_RespondActivityTaskFailed_Result) IsSetShardOwnershipLostError() bool { - return v != nil && v.ShardOwnershipLostError != nil -} - -// GetDomainNotActiveError returns the value of DomainNotActiveError if it is set or its -// zero value if it is unset. -func (v *HistoryService_RespondActivityTaskFailed_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 *HistoryService_RespondActivityTaskFailed_Result) IsSetDomainNotActiveError() bool { - return v != nil && v.DomainNotActiveError != nil -} - -// GetLimitExceededError returns the value of LimitExceededError if it is set or its -// zero value if it is unset. -func (v *HistoryService_RespondActivityTaskFailed_Result) GetLimitExceededError() (o *shared.LimitExceededError) { - if v != nil && v.LimitExceededError != nil { - return v.LimitExceededError - } - - return -} - -// IsSetLimitExceededError returns true if LimitExceededError is not nil. -func (v *HistoryService_RespondActivityTaskFailed_Result) IsSetLimitExceededError() bool { - return v != nil && v.LimitExceededError != nil -} - // GetServiceBusyError returns the value of ServiceBusyError if it is set or its // zero value if it is unset. -func (v *HistoryService_RespondActivityTaskFailed_Result) GetServiceBusyError() (o *shared.ServiceBusyError) { +func (v *HistoryService_RespondCrossClusterTasksCompleted_Result) GetServiceBusyError() (o *shared.ServiceBusyError) { if v != nil && v.ServiceBusyError != nil { return v.ServiceBusyError } @@ -34932,37 +36162,37 @@ func (v *HistoryService_RespondActivityTaskFailed_Result) GetServiceBusyError() } // IsSetServiceBusyError returns true if ServiceBusyError is not nil. -func (v *HistoryService_RespondActivityTaskFailed_Result) IsSetServiceBusyError() bool { +func (v *HistoryService_RespondCrossClusterTasksCompleted_Result) IsSetServiceBusyError() bool { return v != nil && v.ServiceBusyError != nil } -// GetWorkflowExecutionAlreadyCompletedError returns the value of WorkflowExecutionAlreadyCompletedError if it is set or its +// GetShardOwnershipLostError returns the value of ShardOwnershipLostError if it is set or its // zero value if it is unset. -func (v *HistoryService_RespondActivityTaskFailed_Result) GetWorkflowExecutionAlreadyCompletedError() (o *shared.WorkflowExecutionAlreadyCompletedError) { - if v != nil && v.WorkflowExecutionAlreadyCompletedError != nil { - return v.WorkflowExecutionAlreadyCompletedError +func (v *HistoryService_RespondCrossClusterTasksCompleted_Result) GetShardOwnershipLostError() (o *ShardOwnershipLostError) { + if v != nil && v.ShardOwnershipLostError != nil { + return v.ShardOwnershipLostError } return } -// IsSetWorkflowExecutionAlreadyCompletedError returns true if WorkflowExecutionAlreadyCompletedError is not nil. -func (v *HistoryService_RespondActivityTaskFailed_Result) IsSetWorkflowExecutionAlreadyCompletedError() bool { - return v != nil && v.WorkflowExecutionAlreadyCompletedError != nil +// IsSetShardOwnershipLostError returns true if ShardOwnershipLostError is not nil. +func (v *HistoryService_RespondCrossClusterTasksCompleted_Result) IsSetShardOwnershipLostError() bool { + return v != nil && v.ShardOwnershipLostError != 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 "RespondActivityTaskFailed" for this struct. -func (v *HistoryService_RespondActivityTaskFailed_Result) MethodName() string { - return "RespondActivityTaskFailed" +// This will always be "RespondCrossClusterTasksCompleted" for this struct. +func (v *HistoryService_RespondCrossClusterTasksCompleted_Result) MethodName() string { + return "RespondCrossClusterTasksCompleted" } // EnvelopeType returns the kind of value inside this struct. // // This will always be Reply for this struct. -func (v *HistoryService_RespondActivityTaskFailed_Result) EnvelopeType() wire.EnvelopeType { +func (v *HistoryService_RespondCrossClusterTasksCompleted_Result) EnvelopeType() wire.EnvelopeType { return wire.Reply } diff --git a/.gen/go/history/historyserviceclient/client.go b/.gen/go/history/historyserviceclient/client.go index 7498e419509..5f7d83a7832 100644 --- a/.gen/go/history/historyserviceclient/client.go +++ b/.gen/go/history/historyserviceclient/client.go @@ -71,6 +71,12 @@ type Interface interface { opts ...yarpc.CallOption, ) (*shared.DescribeWorkflowExecutionResponse, error) + GetCrossClusterTasks( + ctx context.Context, + Request *shared.GetCrossClusterTasksRequest, + opts ...yarpc.CallOption, + ) (*shared.GetCrossClusterTasksResponse, error) + GetDLQReplicationMessages( ctx context.Context, Request *replicator.GetDLQReplicationMessagesRequest, @@ -221,6 +227,12 @@ type Interface interface { opts ...yarpc.CallOption, ) error + RespondCrossClusterTasksCompleted( + ctx context.Context, + Request *shared.RespondCrossClusterTasksCompletedRequest, + opts ...yarpc.CallOption, + ) (*shared.RespondCrossClusterTasksCompletedResponse, error) + RespondDecisionTaskCompleted( ctx context.Context, CompleteRequest *history.RespondDecisionTaskCompletedRequest, @@ -415,6 +427,29 @@ func (c client) DescribeWorkflowExecution( return } +func (c client) GetCrossClusterTasks( + ctx context.Context, + _Request *shared.GetCrossClusterTasksRequest, + opts ...yarpc.CallOption, +) (success *shared.GetCrossClusterTasksResponse, err error) { + + args := history.HistoryService_GetCrossClusterTasks_Helper.Args(_Request) + + var body wire.Value + body, err = c.c.Call(ctx, args, opts...) + if err != nil { + return + } + + var result history.HistoryService_GetCrossClusterTasks_Result + if err = result.FromWire(body); err != nil { + return + } + + success, err = history.HistoryService_GetCrossClusterTasks_Helper.UnwrapResponse(&result) + return +} + func (c client) GetDLQReplicationMessages( ctx context.Context, _Request *replicator.GetDLQReplicationMessagesRequest, @@ -990,6 +1025,29 @@ func (c client) RespondActivityTaskFailed( return } +func (c client) RespondCrossClusterTasksCompleted( + ctx context.Context, + _Request *shared.RespondCrossClusterTasksCompletedRequest, + opts ...yarpc.CallOption, +) (success *shared.RespondCrossClusterTasksCompletedResponse, err error) { + + args := history.HistoryService_RespondCrossClusterTasksCompleted_Helper.Args(_Request) + + var body wire.Value + body, err = c.c.Call(ctx, args, opts...) + if err != nil { + return + } + + var result history.HistoryService_RespondCrossClusterTasksCompleted_Result + if err = result.FromWire(body); err != nil { + return + } + + success, err = history.HistoryService_RespondCrossClusterTasksCompleted_Helper.UnwrapResponse(&result) + return +} + func (c client) RespondDecisionTaskCompleted( ctx context.Context, _CompleteRequest *history.RespondDecisionTaskCompletedRequest, diff --git a/.gen/go/history/historyserviceserver/server.go b/.gen/go/history/historyserviceserver/server.go index 2011fe7eb17..45685f8254c 100644 --- a/.gen/go/history/historyserviceserver/server.go +++ b/.gen/go/history/historyserviceserver/server.go @@ -65,6 +65,11 @@ type Interface interface { DescribeRequest *history.DescribeWorkflowExecutionRequest, ) (*shared.DescribeWorkflowExecutionResponse, error) + GetCrossClusterTasks( + ctx context.Context, + Request *shared.GetCrossClusterTasksRequest, + ) (*shared.GetCrossClusterTasksResponse, error) + GetDLQReplicationMessages( ctx context.Context, Request *replicator.GetDLQReplicationMessagesRequest, @@ -190,6 +195,11 @@ type Interface interface { FailRequest *history.RespondActivityTaskFailedRequest, ) error + RespondCrossClusterTasksCompleted( + ctx context.Context, + Request *shared.RespondCrossClusterTasksCompletedRequest, + ) (*shared.RespondCrossClusterTasksCompletedResponse, error) + RespondDecisionTaskCompleted( ctx context.Context, CompleteRequest *history.RespondDecisionTaskCompletedRequest, @@ -302,6 +312,17 @@ func New(impl Interface, opts ...thrift.RegisterOption) []transport.Procedure { ThriftModule: history.ThriftModule, }, + thrift.Method{ + Name: "GetCrossClusterTasks", + HandlerSpec: thrift.HandlerSpec{ + + Type: transport.Unary, + Unary: thrift.UnaryHandler(h.GetCrossClusterTasks), + }, + Signature: "GetCrossClusterTasks(Request *shared.GetCrossClusterTasksRequest) (*shared.GetCrossClusterTasksResponse)", + ThriftModule: history.ThriftModule, + }, + thrift.Method{ Name: "GetDLQReplicationMessages", HandlerSpec: thrift.HandlerSpec{ @@ -577,6 +598,17 @@ func New(impl Interface, opts ...thrift.RegisterOption) []transport.Procedure { ThriftModule: history.ThriftModule, }, + thrift.Method{ + Name: "RespondCrossClusterTasksCompleted", + HandlerSpec: thrift.HandlerSpec{ + + Type: transport.Unary, + Unary: thrift.UnaryHandler(h.RespondCrossClusterTasksCompleted), + }, + Signature: "RespondCrossClusterTasksCompleted(Request *shared.RespondCrossClusterTasksCompletedRequest) (*shared.RespondCrossClusterTasksCompletedResponse)", + ThriftModule: history.ThriftModule, + }, + thrift.Method{ Name: "RespondDecisionTaskCompleted", HandlerSpec: thrift.HandlerSpec{ @@ -678,7 +710,7 @@ func New(impl Interface, opts ...thrift.RegisterOption) []transport.Procedure { }, } - procedures := make([]transport.Procedure, 0, 39) + procedures := make([]transport.Procedure, 0, 41) procedures = append(procedures, thrift.BuildProcedures(service, opts...)...) return procedures } @@ -839,6 +871,36 @@ func (h handler) DescribeWorkflowExecution(ctx context.Context, body wire.Value) return response, err } +func (h handler) GetCrossClusterTasks(ctx context.Context, body wire.Value) (thrift.Response, error) { + var args history.HistoryService_GetCrossClusterTasks_Args + if err := args.FromWire(body); err != nil { + return thrift.Response{}, yarpcerrors.InvalidArgumentErrorf( + "could not decode Thrift request for service 'HistoryService' procedure 'GetCrossClusterTasks': %w", err) + } + + success, appErr := h.impl.GetCrossClusterTasks(ctx, args.Request) + + hadError := appErr != nil + result, err := history.HistoryService_GetCrossClusterTasks_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) GetDLQReplicationMessages(ctx context.Context, body wire.Value) (thrift.Response, error) { var args history.HistoryService_GetDLQReplicationMessages_Args if err := args.FromWire(body); err != nil { @@ -1589,6 +1651,36 @@ func (h handler) RespondActivityTaskFailed(ctx context.Context, body wire.Value) return response, err } +func (h handler) RespondCrossClusterTasksCompleted(ctx context.Context, body wire.Value) (thrift.Response, error) { + var args history.HistoryService_RespondCrossClusterTasksCompleted_Args + if err := args.FromWire(body); err != nil { + return thrift.Response{}, yarpcerrors.InvalidArgumentErrorf( + "could not decode Thrift request for service 'HistoryService' procedure 'RespondCrossClusterTasksCompleted': %w", err) + } + + success, appErr := h.impl.RespondCrossClusterTasksCompleted(ctx, args.Request) + + hadError := appErr != nil + result, err := history.HistoryService_RespondCrossClusterTasksCompleted_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) RespondDecisionTaskCompleted(ctx context.Context, body wire.Value) (thrift.Response, error) { var args history.HistoryService_RespondDecisionTaskCompleted_Args if err := args.FromWire(body); err != nil { diff --git a/.gen/go/history/historyservicetest/client.go b/.gen/go/history/historyservicetest/client.go index 5e74a77799a..6438a97597c 100644 --- a/.gen/go/history/historyservicetest/client.go +++ b/.gen/go/history/historyservicetest/client.go @@ -231,6 +231,39 @@ func (mr *_MockClientRecorder) DescribeWorkflowExecution( return mr.mock.ctrl.RecordCall(mr.mock, "DescribeWorkflowExecution", args...) } +// GetCrossClusterTasks responds to a GetCrossClusterTasks 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().GetCrossClusterTasks(gomock.Any(), ...).Return(...) +// ... := client.GetCrossClusterTasks(...) +func (m *MockClient) GetCrossClusterTasks( + ctx context.Context, + _Request *shared.GetCrossClusterTasksRequest, + opts ...yarpc.CallOption, +) (success *shared.GetCrossClusterTasksResponse, err error) { + + args := []interface{}{ctx, _Request} + for _, o := range opts { + args = append(args, o) + } + i := 0 + ret := m.ctrl.Call(m, "GetCrossClusterTasks", args...) + success, _ = ret[i].(*shared.GetCrossClusterTasksResponse) + i++ + err, _ = ret[i].(error) + return +} + +func (mr *_MockClientRecorder) GetCrossClusterTasks( + ctx interface{}, + _Request interface{}, + opts ...interface{}, +) *gomock.Call { + args := append([]interface{}{ctx, _Request}, opts...) + return mr.mock.ctrl.RecordCall(mr.mock, "GetCrossClusterTasks", args...) +} + // GetDLQReplicationMessages responds to a GetDLQReplicationMessages 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. @@ -1030,6 +1063,39 @@ func (mr *_MockClientRecorder) RespondActivityTaskFailed( return mr.mock.ctrl.RecordCall(mr.mock, "RespondActivityTaskFailed", args...) } +// RespondCrossClusterTasksCompleted responds to a RespondCrossClusterTasksCompleted 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().RespondCrossClusterTasksCompleted(gomock.Any(), ...).Return(...) +// ... := client.RespondCrossClusterTasksCompleted(...) +func (m *MockClient) RespondCrossClusterTasksCompleted( + ctx context.Context, + _Request *shared.RespondCrossClusterTasksCompletedRequest, + opts ...yarpc.CallOption, +) (success *shared.RespondCrossClusterTasksCompletedResponse, err error) { + + args := []interface{}{ctx, _Request} + for _, o := range opts { + args = append(args, o) + } + i := 0 + ret := m.ctrl.Call(m, "RespondCrossClusterTasksCompleted", args...) + success, _ = ret[i].(*shared.RespondCrossClusterTasksCompletedResponse) + i++ + err, _ = ret[i].(error) + return +} + +func (mr *_MockClientRecorder) RespondCrossClusterTasksCompleted( + ctx interface{}, + _Request interface{}, + opts ...interface{}, +) *gomock.Call { + args := append([]interface{}{ctx, _Request}, opts...) + return mr.mock.ctrl.RecordCall(mr.mock, "RespondCrossClusterTasksCompleted", args...) +} + // RespondDecisionTaskCompleted responds to a RespondDecisionTaskCompleted 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/replicator/replicator.go b/.gen/go/replicator/replicator.go index d2efaa262e0..dd429d48b37 100644 --- a/.gen/go/replicator/replicator.go +++ b/.gen/go/replicator/replicator.go @@ -7351,11 +7351,11 @@ var ThriftModule = &thriftreflect.ThriftModule{ Name: "replicator", Package: "github.com/uber/cadence/.gen/go/replicator", FilePath: "replicator.thrift", - SHA1: "f3cf74d03a9d51e306e6faf89a07466feaec9846", + SHA1: "85475c6529845fd2ee1b039bfa9eda1128146139", 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\nnamespace java com.uber.cadence.replicator\n\ninclude \"shared.thrift\"\n\nenum ReplicationTaskType {\n Domain\n History\n SyncShardStatus\n SyncActivity\n HistoryMetadata\n HistoryV2\n FailoverMarker\n}\n\nenum DomainOperation {\n Create\n Update\n}\n\nstruct DomainTaskAttributes {\n 05: optional DomainOperation domainOperation\n 10: optional string id\n 20: optional shared.DomainInfo info\n 30: optional shared.DomainConfiguration config\n 40: optional shared.DomainReplicationConfiguration replicationConfig\n 50: optional i64 (js.type = \"Long\") configVersion\n 60: optional i64 (js.type = \"Long\") failoverVersion\n 70: optional i64 (js.type = \"Long\") previousFailoverVersion\n}\n\nstruct SyncShardStatusTaskAttributes {\n 10: optional string sourceCluster\n 20: optional i64 (js.type = \"Long\") shardId\n 30: optional i64 (js.type = \"Long\") timestamp\n}\n\nstruct SyncActivityTaskAttributes {\n 10: optional string domainId\n 20: optional string workflowId\n 30: optional string runId\n 40: optional i64 (js.type = \"Long\") version\n 50: optional i64 (js.type = \"Long\") scheduledId\n 60: optional i64 (js.type = \"Long\") scheduledTime\n 70: optional i64 (js.type = \"Long\") startedId\n 80: optional i64 (js.type = \"Long\") startedTime\n 90: optional i64 (js.type = \"Long\") lastHeartbeatTime\n 100: optional binary details\n 110: optional i32 attempt\n 120: optional string lastFailureReason\n 130: optional string lastWorkerIdentity\n 140: optional binary lastFailureDetails\n 150: optional shared.VersionHistory versionHistory\n}\n\nstruct HistoryTaskV2Attributes {\n 05: optional i64 (js.type = \"Long\") taskId\n 10: optional string domainId\n 20: optional string workflowId\n 30: optional string runId\n 40: optional list versionHistoryItems\n 50: optional shared.DataBlob events\n // new run events does not need version history since there is no prior events\n 70: optional shared.DataBlob newRunEvents\n}\n\nstruct FailoverMarkerAttributes{\n\t10: optional string domainID\n\t20: optional i64 (js.type = \"Long\") failoverVersion\n\t30: optional i64 (js.type = \"Long\") creationTime\n}\n\nstruct FailoverMarkers{\n\t10: optional list failoverMarkers\n}\n\nstruct ReplicationTask {\n 10: optional ReplicationTaskType taskType\n 11: optional i64 (js.type = \"Long\") sourceTaskId\n 20: optional DomainTaskAttributes domainTaskAttributes\n 40: optional SyncShardStatusTaskAttributes syncShardStatusTaskAttributes\n 50: optional SyncActivityTaskAttributes syncActivityTaskAttributes\n 70: optional HistoryTaskV2Attributes historyTaskV2Attributes\n 80: optional FailoverMarkerAttributes failoverMarkerAttributes\n 90: optional i64 (js.type = \"Long\") creationTime\n}\n\nstruct ReplicationToken {\n 10: optional i32 shardID\n // lastRetrivedMessageId is where the next fetch should begin with\n 20: optional i64 (js.type = \"Long\") lastRetrievedMessageId\n // lastProcessedMessageId is the last messageId that is processed on the passive side.\n // This can be different than lastRetrievedMessageId if passive side supports prefetching messages.\n 30: optional i64 (js.type = \"Long\") lastProcessedMessageId\n}\n\nstruct SyncShardStatus {\n 10: optional i64 (js.type = \"Long\") timestamp\n}\n\nstruct ReplicationMessages {\n 10: optional list replicationTasks\n // This can be different than the last taskId in the above list, because sender can decide to skip tasks (e.g. for completed workflows).\n 20: optional i64 (js.type = \"Long\") lastRetrievedMessageId\n 30: optional bool hasMore // Hint for flow control\n 40: optional SyncShardStatus syncShardStatus\n}\n\nstruct ReplicationTaskInfo {\n 10: optional string domainID\n 20: optional string workflowID\n 30: optional string runID\n 40: optional i16 taskType\n 50: optional i64 (js.type = \"Long\") taskID\n 60: optional i64 (js.type = \"Long\") version\n 70: optional i64 (js.type = \"Long\") firstEventID\n 80: optional i64 (js.type = \"Long\") nextEventID\n 90: optional i64 (js.type = \"Long\") scheduledID\n}\n\nstruct GetReplicationMessagesRequest {\n 10: optional list tokens\n 20: optional string clusterName\n}\n\nstruct GetReplicationMessagesResponse {\n 10: optional map messagesByShard\n}\n\nstruct GetDomainReplicationMessagesRequest {\n // lastRetrievedMessageId is where the next fetch should begin with\n 10: optional i64 (js.type = \"Long\") lastRetrievedMessageId\n // lastProcessedMessageId is the last messageId that is processed on the passive side.\n // This can be different than lastRetrievedMessageId if passive side supports prefetching messages.\n 20: optional i64 (js.type = \"Long\") lastProcessedMessageId\n // clusterName is the name of the pulling cluster\n 30: optional string clusterName\n}\n\nstruct GetDomainReplicationMessagesResponse {\n 10: optional ReplicationMessages messages\n}\n\nstruct GetDLQReplicationMessagesRequest {\n 10: optional list taskInfos\n}\n\nstruct GetDLQReplicationMessagesResponse {\n 10: optional list replicationTasks\n}\n\nenum DLQType {\n Replication,\n Domain,\n}\n\nstruct ReadDLQMessagesRequest{\n 10: optional DLQType type\n 20: optional i32 shardID\n 30: optional string sourceCluster\n 40: optional i64 (js.type = \"Long\") inclusiveEndMessageID\n 50: optional i32 maximumPageSize\n 60: optional binary nextPageToken\n}\n\nstruct ReadDLQMessagesResponse{\n 10: optional DLQType type\n 20: optional list replicationTasks\n 30: optional binary nextPageToken\n 40: optional list replicationTasksInfo\n}\n\nstruct PurgeDLQMessagesRequest{\n 10: optional DLQType type\n 20: optional i32 shardID\n 30: optional string sourceCluster\n 40: optional i64 (js.type = \"Long\") inclusiveEndMessageID\n}\n\nstruct MergeDLQMessagesRequest{\n 10: optional DLQType type\n 20: optional i32 shardID\n 30: optional string sourceCluster\n 40: optional i64 (js.type = \"Long\") inclusiveEndMessageID\n 50: optional i32 maximumPageSize\n 60: optional binary nextPageToken\n}\n\nstruct MergeDLQMessagesResponse{\n 10: optional binary nextPageToken\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.replicator\n\ninclude \"shared.thrift\"\n\nenum ReplicationTaskType {\n Domain\n History\n SyncShardStatus\n SyncActivity\n HistoryMetadata\n HistoryV2\n FailoverMarker\n}\n\nenum DomainOperation {\n Create\n Update\n}\n\nstruct DomainTaskAttributes {\n 05: optional DomainOperation domainOperation\n 10: optional string id\n 20: optional shared.DomainInfo info\n 30: optional shared.DomainConfiguration config\n 40: optional shared.DomainReplicationConfiguration replicationConfig\n 50: optional i64 (js.type = \"Long\") configVersion\n 60: optional i64 (js.type = \"Long\") failoverVersion\n 70: optional i64 (js.type = \"Long\") previousFailoverVersion\n}\n\nstruct SyncShardStatusTaskAttributes {\n 10: optional string sourceCluster\n 20: optional i64 (js.type = \"Long\") shardId\n 30: optional i64 (js.type = \"Long\") timestamp\n}\n\nstruct SyncActivityTaskAttributes {\n 10: optional string domainId\n 20: optional string workflowId\n 30: optional string runId\n 40: optional i64 (js.type = \"Long\") version\n 50: optional i64 (js.type = \"Long\") scheduledId\n 60: optional i64 (js.type = \"Long\") scheduledTime\n 70: optional i64 (js.type = \"Long\") startedId\n 80: optional i64 (js.type = \"Long\") startedTime\n 90: optional i64 (js.type = \"Long\") lastHeartbeatTime\n 100: optional binary details\n 110: optional i32 attempt\n 120: optional string lastFailureReason\n 130: optional string lastWorkerIdentity\n 140: optional binary lastFailureDetails\n 150: optional shared.VersionHistory versionHistory\n}\n\nstruct HistoryTaskV2Attributes {\n 05: optional i64 (js.type = \"Long\") taskId\n 10: optional string domainId\n 20: optional string workflowId\n 30: optional string runId\n 40: optional list versionHistoryItems\n 50: optional shared.DataBlob events\n // new run events does not need version history since there is no prior events\n 70: optional shared.DataBlob newRunEvents\n}\n\nstruct FailoverMarkerAttributes{\n\t10: optional string domainID\n\t20: optional i64 (js.type = \"Long\") failoverVersion\n\t30: optional i64 (js.type = \"Long\") creationTime\n}\n\nstruct FailoverMarkers{\n\t10: optional list failoverMarkers\n}\n\nstruct ReplicationTask {\n 10: optional ReplicationTaskType taskType\n 11: optional i64 (js.type = \"Long\") sourceTaskId\n 20: optional DomainTaskAttributes domainTaskAttributes\n 40: optional SyncShardStatusTaskAttributes syncShardStatusTaskAttributes\n 50: optional SyncActivityTaskAttributes syncActivityTaskAttributes\n 70: optional HistoryTaskV2Attributes historyTaskV2Attributes\n 80: optional FailoverMarkerAttributes failoverMarkerAttributes\n 90: optional i64 (js.type = \"Long\") creationTime\n}\n\nstruct ReplicationToken {\n 10: optional i32 shardID\n // lastRetrivedMessageId is where the next fetch should begin with\n 20: optional i64 (js.type = \"Long\") lastRetrievedMessageId\n // lastProcessedMessageId is the last messageId that is processed on the passive side.\n // This can be different than lastRetrievedMessageId if passive side supports prefetching messages.\n 30: optional i64 (js.type = \"Long\") lastProcessedMessageId\n}\n\nstruct SyncShardStatus {\n 10: optional i64 (js.type = \"Long\") timestamp\n}\n\nstruct ReplicationMessages {\n 10: optional list replicationTasks\n // This can be different than the last taskId in the above list, because sender can decide to skip tasks (e.g. for completed workflows).\n 20: optional i64 (js.type = \"Long\") lastRetrievedMessageId\n 30: optional bool hasMore // Hint for flow control\n 40: optional SyncShardStatus syncShardStatus\n}\n\nstruct ReplicationTaskInfo {\n 10: optional string domainID\n 20: optional string workflowID\n 30: optional string runID\n 40: optional i16 taskType\n 50: optional i64 (js.type = \"Long\") taskID\n 60: optional i64 (js.type = \"Long\") version\n 70: optional i64 (js.type = \"Long\") firstEventID\n 80: optional i64 (js.type = \"Long\") nextEventID\n 90: optional i64 (js.type = \"Long\") scheduledID\n}\n\nstruct GetReplicationMessagesRequest {\n 10: optional list tokens\n 20: optional string clusterName\n}\n\nstruct GetReplicationMessagesResponse {\n 10: optional map messagesByShard\n}\n\nstruct GetDomainReplicationMessagesRequest {\n // lastRetrievedMessageId is where the next fetch should begin with\n 10: optional i64 (js.type = \"Long\") lastRetrievedMessageId\n // lastProcessedMessageId is the last messageId that is processed on the passive side.\n // This can be different than lastRetrievedMessageId if passive side supports prefetching messages.\n 20: optional i64 (js.type = \"Long\") lastProcessedMessageId\n // clusterName is the name of the pulling cluster\n 30: optional string clusterName\n}\n\nstruct GetDomainReplicationMessagesResponse {\n 10: optional ReplicationMessages messages\n}\n\nstruct GetDLQReplicationMessagesRequest {\n 10: optional list taskInfos\n}\n\nstruct GetDLQReplicationMessagesResponse {\n 10: optional list replicationTasks\n}\n\nenum DLQType {\n Replication,\n Domain,\n}\n\nstruct ReadDLQMessagesRequest{\n 10: optional DLQType type\n 20: optional i32 shardID\n 30: optional string sourceCluster\n 40: optional i64 (js.type = \"Long\") inclusiveEndMessageID\n 50: optional i32 maximumPageSize\n 60: optional binary nextPageToken\n}\n\nstruct ReadDLQMessagesResponse{\n 10: optional DLQType type\n 20: optional list replicationTasks\n 30: optional binary nextPageToken\n 40: optional list replicationTasksInfo\n}\n\nstruct PurgeDLQMessagesRequest{\n 10: optional DLQType type\n 20: optional i32 shardID\n 30: optional string sourceCluster\n 40: optional i64 (js.type = \"Long\") inclusiveEndMessageID\n}\n\nstruct MergeDLQMessagesRequest{\n 10: optional DLQType type\n 20: optional i32 shardID\n 30: optional string sourceCluster\n 40: optional i64 (js.type = \"Long\") inclusiveEndMessageID\n 50: optional i32 maximumPageSize\n 60: optional binary nextPageToken\n}\n\nstruct MergeDLQMessagesResponse{\n 10: optional binary nextPageToken\n}\n" diff --git a/.gen/go/shared/shared.go b/.gen/go/shared/shared.go index 82e0638869f..d7d5ff91cac 100644 --- a/.gen/go/shared/shared.go +++ b/.gen/go/shared/shared.go @@ -8989,6 +8989,2977 @@ func (v *CountWorkflowExecutionsResponse) IsSetCount() bool { return v != nil && v.Count != nil } +type CrossClusterCancelExecutionRequestAttributes struct { + TargetDomainID *string `json:"targetDomainID,omitempty"` + TargetWorkflowID *string `json:"targetWorkflowID,omitempty"` + TargetRunID *string `json:"targetRunID,omitempty"` + RequestID *string `json:"requestID,omitempty"` + InitiatedEventID *int64 `json:"initiatedEventID,omitempty"` + ChildWorkflowOnly *bool `json:"childWorkflowOnly,omitempty"` +} + +// ToWire translates a CrossClusterCancelExecutionRequestAttributes 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 *CrossClusterCancelExecutionRequestAttributes) ToWire() (wire.Value, error) { + var ( + fields [6]wire.Field + i int = 0 + w wire.Value + err error + ) + + if v.TargetDomainID != nil { + w, err = wire.NewValueString(*(v.TargetDomainID)), error(nil) + if err != nil { + return w, err + } + fields[i] = wire.Field{ID: 10, Value: w} + i++ + } + if v.TargetWorkflowID != nil { + w, err = wire.NewValueString(*(v.TargetWorkflowID)), error(nil) + if err != nil { + return w, err + } + fields[i] = wire.Field{ID: 20, Value: w} + i++ + } + if v.TargetRunID != nil { + w, err = wire.NewValueString(*(v.TargetRunID)), error(nil) + if err != nil { + return w, err + } + fields[i] = wire.Field{ID: 30, Value: w} + i++ + } + if v.RequestID != nil { + w, err = wire.NewValueString(*(v.RequestID)), error(nil) + if err != nil { + return w, err + } + fields[i] = wire.Field{ID: 40, Value: w} + i++ + } + if v.InitiatedEventID != nil { + w, err = wire.NewValueI64(*(v.InitiatedEventID)), error(nil) + if err != nil { + return w, err + } + fields[i] = wire.Field{ID: 50, Value: w} + i++ + } + if v.ChildWorkflowOnly != nil { + w, err = wire.NewValueBool(*(v.ChildWorkflowOnly)), 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 +} + +// FromWire deserializes a CrossClusterCancelExecutionRequestAttributes 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 CrossClusterCancelExecutionRequestAttributes struct +// from the provided intermediate representation. +// +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } +// +// var v CrossClusterCancelExecutionRequestAttributes +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil +func (v *CrossClusterCancelExecutionRequestAttributes) 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.TargetDomainID = &x + if err != nil { + return err + } + + } + case 20: + if field.Value.Type() == wire.TBinary { + var x string + x, err = field.Value.GetString(), error(nil) + v.TargetWorkflowID = &x + if err != nil { + return err + } + + } + case 30: + if field.Value.Type() == wire.TBinary { + var x string + x, err = field.Value.GetString(), error(nil) + v.TargetRunID = &x + if err != nil { + return err + } + + } + case 40: + if field.Value.Type() == wire.TBinary { + var x string + x, err = field.Value.GetString(), error(nil) + v.RequestID = &x + if err != nil { + return err + } + + } + case 50: + if field.Value.Type() == wire.TI64 { + var x int64 + x, err = field.Value.GetI64(), error(nil) + v.InitiatedEventID = &x + if err != nil { + return err + } + + } + case 60: + if field.Value.Type() == wire.TBool { + var x bool + x, err = field.Value.GetBool(), error(nil) + v.ChildWorkflowOnly = &x + if err != nil { + return err + } + + } + } + } + + return nil +} + +// String returns a readable string representation of a CrossClusterCancelExecutionRequestAttributes +// struct. +func (v *CrossClusterCancelExecutionRequestAttributes) String() string { + if v == nil { + return "" + } + + var fields [6]string + i := 0 + if v.TargetDomainID != nil { + fields[i] = fmt.Sprintf("TargetDomainID: %v", *(v.TargetDomainID)) + i++ + } + if v.TargetWorkflowID != nil { + fields[i] = fmt.Sprintf("TargetWorkflowID: %v", *(v.TargetWorkflowID)) + i++ + } + if v.TargetRunID != nil { + fields[i] = fmt.Sprintf("TargetRunID: %v", *(v.TargetRunID)) + i++ + } + if v.RequestID != nil { + fields[i] = fmt.Sprintf("RequestID: %v", *(v.RequestID)) + i++ + } + if v.InitiatedEventID != nil { + fields[i] = fmt.Sprintf("InitiatedEventID: %v", *(v.InitiatedEventID)) + i++ + } + if v.ChildWorkflowOnly != nil { + fields[i] = fmt.Sprintf("ChildWorkflowOnly: %v", *(v.ChildWorkflowOnly)) + i++ + } + + return fmt.Sprintf("CrossClusterCancelExecutionRequestAttributes{%v}", strings.Join(fields[:i], ", ")) +} + +func _Bool_EqualsPtr(lhs, rhs *bool) bool { + if lhs != nil && rhs != nil { + + x := *lhs + y := *rhs + return (x == y) + } + return lhs == nil && rhs == nil +} + +// Equals returns true if all the fields of this CrossClusterCancelExecutionRequestAttributes match the +// provided CrossClusterCancelExecutionRequestAttributes. +// +// This function performs a deep comparison. +func (v *CrossClusterCancelExecutionRequestAttributes) Equals(rhs *CrossClusterCancelExecutionRequestAttributes) bool { + if v == nil { + return rhs == nil + } else if rhs == nil { + return false + } + if !_String_EqualsPtr(v.TargetDomainID, rhs.TargetDomainID) { + return false + } + if !_String_EqualsPtr(v.TargetWorkflowID, rhs.TargetWorkflowID) { + return false + } + if !_String_EqualsPtr(v.TargetRunID, rhs.TargetRunID) { + return false + } + if !_String_EqualsPtr(v.RequestID, rhs.RequestID) { + return false + } + if !_I64_EqualsPtr(v.InitiatedEventID, rhs.InitiatedEventID) { + return false + } + if !_Bool_EqualsPtr(v.ChildWorkflowOnly, rhs.ChildWorkflowOnly) { + return false + } + + return true +} + +// MarshalLogObject implements zapcore.ObjectMarshaler, enabling +// fast logging of CrossClusterCancelExecutionRequestAttributes. +func (v *CrossClusterCancelExecutionRequestAttributes) MarshalLogObject(enc zapcore.ObjectEncoder) (err error) { + if v == nil { + return nil + } + if v.TargetDomainID != nil { + enc.AddString("targetDomainID", *v.TargetDomainID) + } + if v.TargetWorkflowID != nil { + enc.AddString("targetWorkflowID", *v.TargetWorkflowID) + } + if v.TargetRunID != nil { + enc.AddString("targetRunID", *v.TargetRunID) + } + if v.RequestID != nil { + enc.AddString("requestID", *v.RequestID) + } + if v.InitiatedEventID != nil { + enc.AddInt64("initiatedEventID", *v.InitiatedEventID) + } + if v.ChildWorkflowOnly != nil { + enc.AddBool("childWorkflowOnly", *v.ChildWorkflowOnly) + } + return err +} + +// GetTargetDomainID returns the value of TargetDomainID if it is set or its +// zero value if it is unset. +func (v *CrossClusterCancelExecutionRequestAttributes) GetTargetDomainID() (o string) { + if v != nil && v.TargetDomainID != nil { + return *v.TargetDomainID + } + + return +} + +// IsSetTargetDomainID returns true if TargetDomainID is not nil. +func (v *CrossClusterCancelExecutionRequestAttributes) IsSetTargetDomainID() bool { + return v != nil && v.TargetDomainID != nil +} + +// GetTargetWorkflowID returns the value of TargetWorkflowID if it is set or its +// zero value if it is unset. +func (v *CrossClusterCancelExecutionRequestAttributes) GetTargetWorkflowID() (o string) { + if v != nil && v.TargetWorkflowID != nil { + return *v.TargetWorkflowID + } + + return +} + +// IsSetTargetWorkflowID returns true if TargetWorkflowID is not nil. +func (v *CrossClusterCancelExecutionRequestAttributes) IsSetTargetWorkflowID() bool { + return v != nil && v.TargetWorkflowID != nil +} + +// GetTargetRunID returns the value of TargetRunID if it is set or its +// zero value if it is unset. +func (v *CrossClusterCancelExecutionRequestAttributes) GetTargetRunID() (o string) { + if v != nil && v.TargetRunID != nil { + return *v.TargetRunID + } + + return +} + +// IsSetTargetRunID returns true if TargetRunID is not nil. +func (v *CrossClusterCancelExecutionRequestAttributes) IsSetTargetRunID() bool { + return v != nil && v.TargetRunID != nil +} + +// GetRequestID returns the value of RequestID if it is set or its +// zero value if it is unset. +func (v *CrossClusterCancelExecutionRequestAttributes) GetRequestID() (o string) { + if v != nil && v.RequestID != nil { + return *v.RequestID + } + + return +} + +// IsSetRequestID returns true if RequestID is not nil. +func (v *CrossClusterCancelExecutionRequestAttributes) IsSetRequestID() bool { + return v != nil && v.RequestID != nil +} + +// GetInitiatedEventID returns the value of InitiatedEventID if it is set or its +// zero value if it is unset. +func (v *CrossClusterCancelExecutionRequestAttributes) GetInitiatedEventID() (o int64) { + if v != nil && v.InitiatedEventID != nil { + return *v.InitiatedEventID + } + + return +} + +// IsSetInitiatedEventID returns true if InitiatedEventID is not nil. +func (v *CrossClusterCancelExecutionRequestAttributes) IsSetInitiatedEventID() bool { + return v != nil && v.InitiatedEventID != nil +} + +// GetChildWorkflowOnly returns the value of ChildWorkflowOnly if it is set or its +// zero value if it is unset. +func (v *CrossClusterCancelExecutionRequestAttributes) GetChildWorkflowOnly() (o bool) { + if v != nil && v.ChildWorkflowOnly != nil { + return *v.ChildWorkflowOnly + } + + return +} + +// IsSetChildWorkflowOnly returns true if ChildWorkflowOnly is not nil. +func (v *CrossClusterCancelExecutionRequestAttributes) IsSetChildWorkflowOnly() bool { + return v != nil && v.ChildWorkflowOnly != nil +} + +type CrossClusterCancelExecutionResponseAttributes struct { +} + +// ToWire translates a CrossClusterCancelExecutionResponseAttributes 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 *CrossClusterCancelExecutionResponseAttributes) ToWire() (wire.Value, error) { + var ( + fields [0]wire.Field + i int = 0 + ) + + return wire.NewValueStruct(wire.Struct{Fields: fields[:i]}), nil +} + +// FromWire deserializes a CrossClusterCancelExecutionResponseAttributes 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 CrossClusterCancelExecutionResponseAttributes struct +// from the provided intermediate representation. +// +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } +// +// var v CrossClusterCancelExecutionResponseAttributes +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil +func (v *CrossClusterCancelExecutionResponseAttributes) FromWire(w wire.Value) error { + + for _, field := range w.GetStruct().Fields { + switch field.ID { + } + } + + return nil +} + +// String returns a readable string representation of a CrossClusterCancelExecutionResponseAttributes +// struct. +func (v *CrossClusterCancelExecutionResponseAttributes) String() string { + if v == nil { + return "" + } + + var fields [0]string + i := 0 + + return fmt.Sprintf("CrossClusterCancelExecutionResponseAttributes{%v}", strings.Join(fields[:i], ", ")) +} + +// Equals returns true if all the fields of this CrossClusterCancelExecutionResponseAttributes match the +// provided CrossClusterCancelExecutionResponseAttributes. +// +// This function performs a deep comparison. +func (v *CrossClusterCancelExecutionResponseAttributes) Equals(rhs *CrossClusterCancelExecutionResponseAttributes) bool { + if v == nil { + return rhs == nil + } else if rhs == nil { + return false + } + + return true +} + +// MarshalLogObject implements zapcore.ObjectMarshaler, enabling +// fast logging of CrossClusterCancelExecutionResponseAttributes. +func (v *CrossClusterCancelExecutionResponseAttributes) MarshalLogObject(enc zapcore.ObjectEncoder) (err error) { + if v == nil { + return nil + } + return err +} + +type CrossClusterSignalExecutionRequestAttributes struct { + TargetDomainID *string `json:"targetDomainID,omitempty"` + TargetWorkflowID *string `json:"targetWorkflowID,omitempty"` + TargetRunID *string `json:"targetRunID,omitempty"` + RequestID *string `json:"requestID,omitempty"` + InitiatedEventID *int64 `json:"initiatedEventID,omitempty"` + ChildWorkflowOnly *bool `json:"childWorkflowOnly,omitempty"` + SignalName *string `json:"signalName,omitempty"` + SignalInput []byte `json:"signalInput,omitempty"` + Control []byte `json:"control,omitempty"` +} + +// ToWire translates a CrossClusterSignalExecutionRequestAttributes 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 *CrossClusterSignalExecutionRequestAttributes) ToWire() (wire.Value, error) { + var ( + fields [9]wire.Field + i int = 0 + w wire.Value + err error + ) + + if v.TargetDomainID != nil { + w, err = wire.NewValueString(*(v.TargetDomainID)), error(nil) + if err != nil { + return w, err + } + fields[i] = wire.Field{ID: 10, Value: w} + i++ + } + if v.TargetWorkflowID != nil { + w, err = wire.NewValueString(*(v.TargetWorkflowID)), error(nil) + if err != nil { + return w, err + } + fields[i] = wire.Field{ID: 20, Value: w} + i++ + } + if v.TargetRunID != nil { + w, err = wire.NewValueString(*(v.TargetRunID)), error(nil) + if err != nil { + return w, err + } + fields[i] = wire.Field{ID: 30, Value: w} + i++ + } + if v.RequestID != nil { + w, err = wire.NewValueString(*(v.RequestID)), error(nil) + if err != nil { + return w, err + } + fields[i] = wire.Field{ID: 40, Value: w} + i++ + } + if v.InitiatedEventID != nil { + w, err = wire.NewValueI64(*(v.InitiatedEventID)), error(nil) + if err != nil { + return w, err + } + fields[i] = wire.Field{ID: 50, Value: w} + i++ + } + if v.ChildWorkflowOnly != nil { + w, err = wire.NewValueBool(*(v.ChildWorkflowOnly)), error(nil) + if err != nil { + return w, err + } + fields[i] = wire.Field{ID: 60, Value: w} + i++ + } + if v.SignalName != nil { + w, err = wire.NewValueString(*(v.SignalName)), error(nil) + if err != nil { + return w, err + } + fields[i] = wire.Field{ID: 70, Value: w} + i++ + } + if v.SignalInput != nil { + w, err = wire.NewValueBinary(v.SignalInput), error(nil) + if err != nil { + return w, err + } + fields[i] = wire.Field{ID: 80, Value: w} + i++ + } + if v.Control != nil { + w, err = wire.NewValueBinary(v.Control), error(nil) + if err != nil { + return w, err + } + fields[i] = wire.Field{ID: 90, Value: w} + i++ + } + + return wire.NewValueStruct(wire.Struct{Fields: fields[:i]}), nil +} + +// FromWire deserializes a CrossClusterSignalExecutionRequestAttributes 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 CrossClusterSignalExecutionRequestAttributes struct +// from the provided intermediate representation. +// +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } +// +// var v CrossClusterSignalExecutionRequestAttributes +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil +func (v *CrossClusterSignalExecutionRequestAttributes) 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.TargetDomainID = &x + if err != nil { + return err + } + + } + case 20: + if field.Value.Type() == wire.TBinary { + var x string + x, err = field.Value.GetString(), error(nil) + v.TargetWorkflowID = &x + if err != nil { + return err + } + + } + case 30: + if field.Value.Type() == wire.TBinary { + var x string + x, err = field.Value.GetString(), error(nil) + v.TargetRunID = &x + if err != nil { + return err + } + + } + case 40: + if field.Value.Type() == wire.TBinary { + var x string + x, err = field.Value.GetString(), error(nil) + v.RequestID = &x + if err != nil { + return err + } + + } + case 50: + if field.Value.Type() == wire.TI64 { + var x int64 + x, err = field.Value.GetI64(), error(nil) + v.InitiatedEventID = &x + if err != nil { + return err + } + + } + case 60: + if field.Value.Type() == wire.TBool { + var x bool + x, err = field.Value.GetBool(), error(nil) + v.ChildWorkflowOnly = &x + if err != nil { + return err + } + + } + case 70: + if field.Value.Type() == wire.TBinary { + var x string + x, err = field.Value.GetString(), error(nil) + v.SignalName = &x + if err != nil { + return err + } + + } + case 80: + if field.Value.Type() == wire.TBinary { + v.SignalInput, err = field.Value.GetBinary(), error(nil) + if err != nil { + return err + } + + } + case 90: + if field.Value.Type() == wire.TBinary { + v.Control, err = field.Value.GetBinary(), error(nil) + if err != nil { + return err + } + + } + } + } + + return nil +} + +// String returns a readable string representation of a CrossClusterSignalExecutionRequestAttributes +// struct. +func (v *CrossClusterSignalExecutionRequestAttributes) String() string { + if v == nil { + return "" + } + + var fields [9]string + i := 0 + if v.TargetDomainID != nil { + fields[i] = fmt.Sprintf("TargetDomainID: %v", *(v.TargetDomainID)) + i++ + } + if v.TargetWorkflowID != nil { + fields[i] = fmt.Sprintf("TargetWorkflowID: %v", *(v.TargetWorkflowID)) + i++ + } + if v.TargetRunID != nil { + fields[i] = fmt.Sprintf("TargetRunID: %v", *(v.TargetRunID)) + i++ + } + if v.RequestID != nil { + fields[i] = fmt.Sprintf("RequestID: %v", *(v.RequestID)) + i++ + } + if v.InitiatedEventID != nil { + fields[i] = fmt.Sprintf("InitiatedEventID: %v", *(v.InitiatedEventID)) + i++ + } + if v.ChildWorkflowOnly != nil { + fields[i] = fmt.Sprintf("ChildWorkflowOnly: %v", *(v.ChildWorkflowOnly)) + i++ + } + if v.SignalName != nil { + fields[i] = fmt.Sprintf("SignalName: %v", *(v.SignalName)) + i++ + } + if v.SignalInput != nil { + fields[i] = fmt.Sprintf("SignalInput: %v", v.SignalInput) + i++ + } + if v.Control != nil { + fields[i] = fmt.Sprintf("Control: %v", v.Control) + i++ + } + + return fmt.Sprintf("CrossClusterSignalExecutionRequestAttributes{%v}", strings.Join(fields[:i], ", ")) +} + +// Equals returns true if all the fields of this CrossClusterSignalExecutionRequestAttributes match the +// provided CrossClusterSignalExecutionRequestAttributes. +// +// This function performs a deep comparison. +func (v *CrossClusterSignalExecutionRequestAttributes) Equals(rhs *CrossClusterSignalExecutionRequestAttributes) bool { + if v == nil { + return rhs == nil + } else if rhs == nil { + return false + } + if !_String_EqualsPtr(v.TargetDomainID, rhs.TargetDomainID) { + return false + } + if !_String_EqualsPtr(v.TargetWorkflowID, rhs.TargetWorkflowID) { + return false + } + if !_String_EqualsPtr(v.TargetRunID, rhs.TargetRunID) { + return false + } + if !_String_EqualsPtr(v.RequestID, rhs.RequestID) { + return false + } + if !_I64_EqualsPtr(v.InitiatedEventID, rhs.InitiatedEventID) { + return false + } + if !_Bool_EqualsPtr(v.ChildWorkflowOnly, rhs.ChildWorkflowOnly) { + return false + } + if !_String_EqualsPtr(v.SignalName, rhs.SignalName) { + return false + } + if !((v.SignalInput == nil && rhs.SignalInput == nil) || (v.SignalInput != nil && rhs.SignalInput != nil && bytes.Equal(v.SignalInput, rhs.SignalInput))) { + return false + } + if !((v.Control == nil && rhs.Control == nil) || (v.Control != nil && rhs.Control != nil && bytes.Equal(v.Control, rhs.Control))) { + return false + } + + return true +} + +// MarshalLogObject implements zapcore.ObjectMarshaler, enabling +// fast logging of CrossClusterSignalExecutionRequestAttributes. +func (v *CrossClusterSignalExecutionRequestAttributes) MarshalLogObject(enc zapcore.ObjectEncoder) (err error) { + if v == nil { + return nil + } + if v.TargetDomainID != nil { + enc.AddString("targetDomainID", *v.TargetDomainID) + } + if v.TargetWorkflowID != nil { + enc.AddString("targetWorkflowID", *v.TargetWorkflowID) + } + if v.TargetRunID != nil { + enc.AddString("targetRunID", *v.TargetRunID) + } + if v.RequestID != nil { + enc.AddString("requestID", *v.RequestID) + } + if v.InitiatedEventID != nil { + enc.AddInt64("initiatedEventID", *v.InitiatedEventID) + } + if v.ChildWorkflowOnly != nil { + enc.AddBool("childWorkflowOnly", *v.ChildWorkflowOnly) + } + if v.SignalName != nil { + enc.AddString("signalName", *v.SignalName) + } + if v.SignalInput != nil { + enc.AddString("signalInput", base64.StdEncoding.EncodeToString(v.SignalInput)) + } + if v.Control != nil { + enc.AddString("control", base64.StdEncoding.EncodeToString(v.Control)) + } + return err +} + +// GetTargetDomainID returns the value of TargetDomainID if it is set or its +// zero value if it is unset. +func (v *CrossClusterSignalExecutionRequestAttributes) GetTargetDomainID() (o string) { + if v != nil && v.TargetDomainID != nil { + return *v.TargetDomainID + } + + return +} + +// IsSetTargetDomainID returns true if TargetDomainID is not nil. +func (v *CrossClusterSignalExecutionRequestAttributes) IsSetTargetDomainID() bool { + return v != nil && v.TargetDomainID != nil +} + +// GetTargetWorkflowID returns the value of TargetWorkflowID if it is set or its +// zero value if it is unset. +func (v *CrossClusterSignalExecutionRequestAttributes) GetTargetWorkflowID() (o string) { + if v != nil && v.TargetWorkflowID != nil { + return *v.TargetWorkflowID + } + + return +} + +// IsSetTargetWorkflowID returns true if TargetWorkflowID is not nil. +func (v *CrossClusterSignalExecutionRequestAttributes) IsSetTargetWorkflowID() bool { + return v != nil && v.TargetWorkflowID != nil +} + +// GetTargetRunID returns the value of TargetRunID if it is set or its +// zero value if it is unset. +func (v *CrossClusterSignalExecutionRequestAttributes) GetTargetRunID() (o string) { + if v != nil && v.TargetRunID != nil { + return *v.TargetRunID + } + + return +} + +// IsSetTargetRunID returns true if TargetRunID is not nil. +func (v *CrossClusterSignalExecutionRequestAttributes) IsSetTargetRunID() bool { + return v != nil && v.TargetRunID != nil +} + +// GetRequestID returns the value of RequestID if it is set or its +// zero value if it is unset. +func (v *CrossClusterSignalExecutionRequestAttributes) GetRequestID() (o string) { + if v != nil && v.RequestID != nil { + return *v.RequestID + } + + return +} + +// IsSetRequestID returns true if RequestID is not nil. +func (v *CrossClusterSignalExecutionRequestAttributes) IsSetRequestID() bool { + return v != nil && v.RequestID != nil +} + +// GetInitiatedEventID returns the value of InitiatedEventID if it is set or its +// zero value if it is unset. +func (v *CrossClusterSignalExecutionRequestAttributes) GetInitiatedEventID() (o int64) { + if v != nil && v.InitiatedEventID != nil { + return *v.InitiatedEventID + } + + return +} + +// IsSetInitiatedEventID returns true if InitiatedEventID is not nil. +func (v *CrossClusterSignalExecutionRequestAttributes) IsSetInitiatedEventID() bool { + return v != nil && v.InitiatedEventID != nil +} + +// GetChildWorkflowOnly returns the value of ChildWorkflowOnly if it is set or its +// zero value if it is unset. +func (v *CrossClusterSignalExecutionRequestAttributes) GetChildWorkflowOnly() (o bool) { + if v != nil && v.ChildWorkflowOnly != nil { + return *v.ChildWorkflowOnly + } + + return +} + +// IsSetChildWorkflowOnly returns true if ChildWorkflowOnly is not nil. +func (v *CrossClusterSignalExecutionRequestAttributes) IsSetChildWorkflowOnly() bool { + return v != nil && v.ChildWorkflowOnly != nil +} + +// GetSignalName returns the value of SignalName if it is set or its +// zero value if it is unset. +func (v *CrossClusterSignalExecutionRequestAttributes) GetSignalName() (o string) { + if v != nil && v.SignalName != nil { + return *v.SignalName + } + + return +} + +// IsSetSignalName returns true if SignalName is not nil. +func (v *CrossClusterSignalExecutionRequestAttributes) IsSetSignalName() bool { + return v != nil && v.SignalName != nil +} + +// GetSignalInput returns the value of SignalInput if it is set or its +// zero value if it is unset. +func (v *CrossClusterSignalExecutionRequestAttributes) GetSignalInput() (o []byte) { + if v != nil && v.SignalInput != nil { + return v.SignalInput + } + + return +} + +// IsSetSignalInput returns true if SignalInput is not nil. +func (v *CrossClusterSignalExecutionRequestAttributes) IsSetSignalInput() bool { + return v != nil && v.SignalInput != nil +} + +// GetControl returns the value of Control if it is set or its +// zero value if it is unset. +func (v *CrossClusterSignalExecutionRequestAttributes) GetControl() (o []byte) { + if v != nil && v.Control != nil { + return v.Control + } + + return +} + +// IsSetControl returns true if Control is not nil. +func (v *CrossClusterSignalExecutionRequestAttributes) IsSetControl() bool { + return v != nil && v.Control != nil +} + +type CrossClusterSignalExecutionResponseAttributes struct { +} + +// ToWire translates a CrossClusterSignalExecutionResponseAttributes 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 *CrossClusterSignalExecutionResponseAttributes) ToWire() (wire.Value, error) { + var ( + fields [0]wire.Field + i int = 0 + ) + + return wire.NewValueStruct(wire.Struct{Fields: fields[:i]}), nil +} + +// FromWire deserializes a CrossClusterSignalExecutionResponseAttributes 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 CrossClusterSignalExecutionResponseAttributes struct +// from the provided intermediate representation. +// +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } +// +// var v CrossClusterSignalExecutionResponseAttributes +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil +func (v *CrossClusterSignalExecutionResponseAttributes) FromWire(w wire.Value) error { + + for _, field := range w.GetStruct().Fields { + switch field.ID { + } + } + + return nil +} + +// String returns a readable string representation of a CrossClusterSignalExecutionResponseAttributes +// struct. +func (v *CrossClusterSignalExecutionResponseAttributes) String() string { + if v == nil { + return "" + } + + var fields [0]string + i := 0 + + return fmt.Sprintf("CrossClusterSignalExecutionResponseAttributes{%v}", strings.Join(fields[:i], ", ")) +} + +// Equals returns true if all the fields of this CrossClusterSignalExecutionResponseAttributes match the +// provided CrossClusterSignalExecutionResponseAttributes. +// +// This function performs a deep comparison. +func (v *CrossClusterSignalExecutionResponseAttributes) Equals(rhs *CrossClusterSignalExecutionResponseAttributes) bool { + if v == nil { + return rhs == nil + } else if rhs == nil { + return false + } + + return true +} + +// MarshalLogObject implements zapcore.ObjectMarshaler, enabling +// fast logging of CrossClusterSignalExecutionResponseAttributes. +func (v *CrossClusterSignalExecutionResponseAttributes) MarshalLogObject(enc zapcore.ObjectEncoder) (err error) { + if v == nil { + return nil + } + return err +} + +type CrossClusterStartChildExecutionRequestAttributes struct { + TargetDomainID *string `json:"targetDomainID,omitempty"` + RequestID *string `json:"requestID,omitempty"` + InitiatedEventID *int64 `json:"initiatedEventID,omitempty"` + InitiatedEventAttributes *StartChildWorkflowExecutionInitiatedEventAttributes `json:"initiatedEventAttributes,omitempty"` + TargetRunID *string `json:"targetRunID,omitempty"` +} + +// ToWire translates a CrossClusterStartChildExecutionRequestAttributes 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 *CrossClusterStartChildExecutionRequestAttributes) ToWire() (wire.Value, error) { + var ( + fields [5]wire.Field + i int = 0 + w wire.Value + err error + ) + + if v.TargetDomainID != nil { + w, err = wire.NewValueString(*(v.TargetDomainID)), error(nil) + if err != nil { + return w, err + } + fields[i] = wire.Field{ID: 10, Value: w} + i++ + } + if v.RequestID != nil { + w, err = wire.NewValueString(*(v.RequestID)), error(nil) + if err != nil { + return w, err + } + fields[i] = wire.Field{ID: 20, Value: w} + i++ + } + if v.InitiatedEventID != nil { + w, err = wire.NewValueI64(*(v.InitiatedEventID)), error(nil) + if err != nil { + return w, err + } + fields[i] = wire.Field{ID: 30, Value: w} + i++ + } + if v.InitiatedEventAttributes != nil { + w, err = v.InitiatedEventAttributes.ToWire() + if err != nil { + return w, err + } + fields[i] = wire.Field{ID: 40, Value: w} + i++ + } + if v.TargetRunID != nil { + w, err = wire.NewValueString(*(v.TargetRunID)), error(nil) + if err != nil { + return w, err + } + fields[i] = wire.Field{ID: 50, Value: w} + i++ + } + + return wire.NewValueStruct(wire.Struct{Fields: fields[:i]}), nil +} + +func _StartChildWorkflowExecutionInitiatedEventAttributes_Read(w wire.Value) (*StartChildWorkflowExecutionInitiatedEventAttributes, error) { + var v StartChildWorkflowExecutionInitiatedEventAttributes + err := v.FromWire(w) + return &v, err +} + +// FromWire deserializes a CrossClusterStartChildExecutionRequestAttributes 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 CrossClusterStartChildExecutionRequestAttributes struct +// from the provided intermediate representation. +// +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } +// +// var v CrossClusterStartChildExecutionRequestAttributes +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil +func (v *CrossClusterStartChildExecutionRequestAttributes) 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.TargetDomainID = &x + if err != nil { + return err + } + + } + case 20: + if field.Value.Type() == wire.TBinary { + var x string + x, err = field.Value.GetString(), error(nil) + v.RequestID = &x + if err != nil { + return err + } + + } + case 30: + if field.Value.Type() == wire.TI64 { + var x int64 + x, err = field.Value.GetI64(), error(nil) + v.InitiatedEventID = &x + if err != nil { + return err + } + + } + case 40: + if field.Value.Type() == wire.TStruct { + v.InitiatedEventAttributes, err = _StartChildWorkflowExecutionInitiatedEventAttributes_Read(field.Value) + if err != nil { + return err + } + + } + case 50: + if field.Value.Type() == wire.TBinary { + var x string + x, err = field.Value.GetString(), error(nil) + v.TargetRunID = &x + if err != nil { + return err + } + + } + } + } + + return nil +} + +// String returns a readable string representation of a CrossClusterStartChildExecutionRequestAttributes +// struct. +func (v *CrossClusterStartChildExecutionRequestAttributes) String() string { + if v == nil { + return "" + } + + var fields [5]string + i := 0 + if v.TargetDomainID != nil { + fields[i] = fmt.Sprintf("TargetDomainID: %v", *(v.TargetDomainID)) + i++ + } + if v.RequestID != nil { + fields[i] = fmt.Sprintf("RequestID: %v", *(v.RequestID)) + i++ + } + if v.InitiatedEventID != nil { + fields[i] = fmt.Sprintf("InitiatedEventID: %v", *(v.InitiatedEventID)) + i++ + } + if v.InitiatedEventAttributes != nil { + fields[i] = fmt.Sprintf("InitiatedEventAttributes: %v", v.InitiatedEventAttributes) + i++ + } + if v.TargetRunID != nil { + fields[i] = fmt.Sprintf("TargetRunID: %v", *(v.TargetRunID)) + i++ + } + + return fmt.Sprintf("CrossClusterStartChildExecutionRequestAttributes{%v}", strings.Join(fields[:i], ", ")) +} + +// Equals returns true if all the fields of this CrossClusterStartChildExecutionRequestAttributes match the +// provided CrossClusterStartChildExecutionRequestAttributes. +// +// This function performs a deep comparison. +func (v *CrossClusterStartChildExecutionRequestAttributes) Equals(rhs *CrossClusterStartChildExecutionRequestAttributes) bool { + if v == nil { + return rhs == nil + } else if rhs == nil { + return false + } + if !_String_EqualsPtr(v.TargetDomainID, rhs.TargetDomainID) { + return false + } + if !_String_EqualsPtr(v.RequestID, rhs.RequestID) { + return false + } + if !_I64_EqualsPtr(v.InitiatedEventID, rhs.InitiatedEventID) { + return false + } + if !((v.InitiatedEventAttributes == nil && rhs.InitiatedEventAttributes == nil) || (v.InitiatedEventAttributes != nil && rhs.InitiatedEventAttributes != nil && v.InitiatedEventAttributes.Equals(rhs.InitiatedEventAttributes))) { + return false + } + if !_String_EqualsPtr(v.TargetRunID, rhs.TargetRunID) { + return false + } + + return true +} + +// MarshalLogObject implements zapcore.ObjectMarshaler, enabling +// fast logging of CrossClusterStartChildExecutionRequestAttributes. +func (v *CrossClusterStartChildExecutionRequestAttributes) MarshalLogObject(enc zapcore.ObjectEncoder) (err error) { + if v == nil { + return nil + } + if v.TargetDomainID != nil { + enc.AddString("targetDomainID", *v.TargetDomainID) + } + if v.RequestID != nil { + enc.AddString("requestID", *v.RequestID) + } + if v.InitiatedEventID != nil { + enc.AddInt64("initiatedEventID", *v.InitiatedEventID) + } + if v.InitiatedEventAttributes != nil { + err = multierr.Append(err, enc.AddObject("initiatedEventAttributes", v.InitiatedEventAttributes)) + } + if v.TargetRunID != nil { + enc.AddString("targetRunID", *v.TargetRunID) + } + return err +} + +// GetTargetDomainID returns the value of TargetDomainID if it is set or its +// zero value if it is unset. +func (v *CrossClusterStartChildExecutionRequestAttributes) GetTargetDomainID() (o string) { + if v != nil && v.TargetDomainID != nil { + return *v.TargetDomainID + } + + return +} + +// IsSetTargetDomainID returns true if TargetDomainID is not nil. +func (v *CrossClusterStartChildExecutionRequestAttributes) IsSetTargetDomainID() bool { + return v != nil && v.TargetDomainID != nil +} + +// GetRequestID returns the value of RequestID if it is set or its +// zero value if it is unset. +func (v *CrossClusterStartChildExecutionRequestAttributes) GetRequestID() (o string) { + if v != nil && v.RequestID != nil { + return *v.RequestID + } + + return +} + +// IsSetRequestID returns true if RequestID is not nil. +func (v *CrossClusterStartChildExecutionRequestAttributes) IsSetRequestID() bool { + return v != nil && v.RequestID != nil +} + +// GetInitiatedEventID returns the value of InitiatedEventID if it is set or its +// zero value if it is unset. +func (v *CrossClusterStartChildExecutionRequestAttributes) GetInitiatedEventID() (o int64) { + if v != nil && v.InitiatedEventID != nil { + return *v.InitiatedEventID + } + + return +} + +// IsSetInitiatedEventID returns true if InitiatedEventID is not nil. +func (v *CrossClusterStartChildExecutionRequestAttributes) IsSetInitiatedEventID() bool { + return v != nil && v.InitiatedEventID != nil +} + +// GetInitiatedEventAttributes returns the value of InitiatedEventAttributes if it is set or its +// zero value if it is unset. +func (v *CrossClusterStartChildExecutionRequestAttributes) GetInitiatedEventAttributes() (o *StartChildWorkflowExecutionInitiatedEventAttributes) { + if v != nil && v.InitiatedEventAttributes != nil { + return v.InitiatedEventAttributes + } + + return +} + +// IsSetInitiatedEventAttributes returns true if InitiatedEventAttributes is not nil. +func (v *CrossClusterStartChildExecutionRequestAttributes) IsSetInitiatedEventAttributes() bool { + return v != nil && v.InitiatedEventAttributes != nil +} + +// GetTargetRunID returns the value of TargetRunID if it is set or its +// zero value if it is unset. +func (v *CrossClusterStartChildExecutionRequestAttributes) GetTargetRunID() (o string) { + if v != nil && v.TargetRunID != nil { + return *v.TargetRunID + } + + return +} + +// IsSetTargetRunID returns true if TargetRunID is not nil. +func (v *CrossClusterStartChildExecutionRequestAttributes) IsSetTargetRunID() bool { + return v != nil && v.TargetRunID != nil +} + +type CrossClusterStartChildExecutionResponseAttributes struct { + RunID *string `json:"runID,omitempty"` +} + +// ToWire translates a CrossClusterStartChildExecutionResponseAttributes 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 *CrossClusterStartChildExecutionResponseAttributes) ToWire() (wire.Value, error) { + var ( + fields [1]wire.Field + i int = 0 + w wire.Value + err error + ) + + if v.RunID != nil { + w, err = wire.NewValueString(*(v.RunID)), error(nil) + if err != nil { + return w, err + } + fields[i] = wire.Field{ID: 10, Value: w} + i++ + } + + return wire.NewValueStruct(wire.Struct{Fields: fields[:i]}), nil +} + +// FromWire deserializes a CrossClusterStartChildExecutionResponseAttributes 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 CrossClusterStartChildExecutionResponseAttributes struct +// from the provided intermediate representation. +// +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } +// +// var v CrossClusterStartChildExecutionResponseAttributes +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil +func (v *CrossClusterStartChildExecutionResponseAttributes) 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.RunID = &x + if err != nil { + return err + } + + } + } + } + + return nil +} + +// String returns a readable string representation of a CrossClusterStartChildExecutionResponseAttributes +// struct. +func (v *CrossClusterStartChildExecutionResponseAttributes) String() string { + if v == nil { + return "" + } + + var fields [1]string + i := 0 + if v.RunID != nil { + fields[i] = fmt.Sprintf("RunID: %v", *(v.RunID)) + i++ + } + + return fmt.Sprintf("CrossClusterStartChildExecutionResponseAttributes{%v}", strings.Join(fields[:i], ", ")) +} + +// Equals returns true if all the fields of this CrossClusterStartChildExecutionResponseAttributes match the +// provided CrossClusterStartChildExecutionResponseAttributes. +// +// This function performs a deep comparison. +func (v *CrossClusterStartChildExecutionResponseAttributes) Equals(rhs *CrossClusterStartChildExecutionResponseAttributes) bool { + if v == nil { + return rhs == nil + } else if rhs == nil { + return false + } + if !_String_EqualsPtr(v.RunID, rhs.RunID) { + return false + } + + return true +} + +// MarshalLogObject implements zapcore.ObjectMarshaler, enabling +// fast logging of CrossClusterStartChildExecutionResponseAttributes. +func (v *CrossClusterStartChildExecutionResponseAttributes) MarshalLogObject(enc zapcore.ObjectEncoder) (err error) { + if v == nil { + return nil + } + if v.RunID != nil { + enc.AddString("runID", *v.RunID) + } + return err +} + +// GetRunID returns the value of RunID if it is set or its +// zero value if it is unset. +func (v *CrossClusterStartChildExecutionResponseAttributes) GetRunID() (o string) { + if v != nil && v.RunID != nil { + return *v.RunID + } + + return +} + +// IsSetRunID returns true if RunID is not nil. +func (v *CrossClusterStartChildExecutionResponseAttributes) IsSetRunID() bool { + return v != nil && v.RunID != nil +} + +type CrossClusterTaskFailedCause int32 + +const ( + CrossClusterTaskFailedCauseDomainNotActive CrossClusterTaskFailedCause = 0 + CrossClusterTaskFailedCauseDomainNotExists CrossClusterTaskFailedCause = 1 + CrossClusterTaskFailedCauseWorkflowAlreadyRunning CrossClusterTaskFailedCause = 2 + CrossClusterTaskFailedCauseWorkflowNotExists CrossClusterTaskFailedCause = 3 +) + +// CrossClusterTaskFailedCause_Values returns all recognized values of CrossClusterTaskFailedCause. +func CrossClusterTaskFailedCause_Values() []CrossClusterTaskFailedCause { + return []CrossClusterTaskFailedCause{ + CrossClusterTaskFailedCauseDomainNotActive, + CrossClusterTaskFailedCauseDomainNotExists, + CrossClusterTaskFailedCauseWorkflowAlreadyRunning, + CrossClusterTaskFailedCauseWorkflowNotExists, + } +} + +// UnmarshalText tries to decode CrossClusterTaskFailedCause from a byte slice +// containing its name. +// +// var v CrossClusterTaskFailedCause +// err := v.UnmarshalText([]byte("DOMAIN_NOT_ACTIVE")) +func (v *CrossClusterTaskFailedCause) UnmarshalText(value []byte) error { + switch s := string(value); s { + case "DOMAIN_NOT_ACTIVE": + *v = CrossClusterTaskFailedCauseDomainNotActive + return nil + case "DOMAIN_NOT_EXISTS": + *v = CrossClusterTaskFailedCauseDomainNotExists + return nil + case "WORKFLOW_ALREADY_RUNNING": + *v = CrossClusterTaskFailedCauseWorkflowAlreadyRunning + return nil + case "WORKFLOW_NOT_EXISTS": + *v = CrossClusterTaskFailedCauseWorkflowNotExists + return nil + default: + val, err := strconv.ParseInt(s, 10, 32) + if err != nil { + return fmt.Errorf("unknown enum value %q for %q: %v", s, "CrossClusterTaskFailedCause", err) + } + *v = CrossClusterTaskFailedCause(val) + return nil + } +} + +// MarshalText encodes CrossClusterTaskFailedCause to text. +// +// If the enum value is recognized, its name is returned. Otherwise, +// its integer value is returned. +// +// This implements the TextMarshaler interface. +func (v CrossClusterTaskFailedCause) MarshalText() ([]byte, error) { + switch int32(v) { + case 0: + return []byte("DOMAIN_NOT_ACTIVE"), nil + case 1: + return []byte("DOMAIN_NOT_EXISTS"), nil + case 2: + return []byte("WORKFLOW_ALREADY_RUNNING"), nil + case 3: + return []byte("WORKFLOW_NOT_EXISTS"), nil + } + return []byte(strconv.FormatInt(int64(v), 10)), nil +} + +// MarshalLogObject implements zapcore.ObjectMarshaler, enabling +// fast logging of CrossClusterTaskFailedCause. +// Enums are logged as objects, where the value is logged with key "value", and +// if this value's name is known, the name is logged with key "name". +func (v CrossClusterTaskFailedCause) MarshalLogObject(enc zapcore.ObjectEncoder) error { + enc.AddInt32("value", int32(v)) + switch int32(v) { + case 0: + enc.AddString("name", "DOMAIN_NOT_ACTIVE") + case 1: + enc.AddString("name", "DOMAIN_NOT_EXISTS") + case 2: + enc.AddString("name", "WORKFLOW_ALREADY_RUNNING") + case 3: + enc.AddString("name", "WORKFLOW_NOT_EXISTS") + } + return nil +} + +// Ptr returns a pointer to this enum value. +func (v CrossClusterTaskFailedCause) Ptr() *CrossClusterTaskFailedCause { + return &v +} + +// ToWire translates CrossClusterTaskFailedCause into a Thrift-level intermediate +// representation. This intermediate representation may be serialized +// into bytes using a ThriftRW protocol implementation. +// +// Enums are represented as 32-bit integers over the wire. +func (v CrossClusterTaskFailedCause) ToWire() (wire.Value, error) { + return wire.NewValueI32(int32(v)), nil +} + +// FromWire deserializes CrossClusterTaskFailedCause from its Thrift-level +// representation. +// +// x, err := binaryProtocol.Decode(reader, wire.TI32) +// if err != nil { +// return CrossClusterTaskFailedCause(0), err +// } +// +// var v CrossClusterTaskFailedCause +// if err := v.FromWire(x); err != nil { +// return CrossClusterTaskFailedCause(0), err +// } +// return v, nil +func (v *CrossClusterTaskFailedCause) FromWire(w wire.Value) error { + *v = (CrossClusterTaskFailedCause)(w.GetI32()) + return nil +} + +// String returns a readable string representation of CrossClusterTaskFailedCause. +func (v CrossClusterTaskFailedCause) String() string { + w := int32(v) + switch w { + case 0: + return "DOMAIN_NOT_ACTIVE" + case 1: + return "DOMAIN_NOT_EXISTS" + case 2: + return "WORKFLOW_ALREADY_RUNNING" + case 3: + return "WORKFLOW_NOT_EXISTS" + } + return fmt.Sprintf("CrossClusterTaskFailedCause(%d)", w) +} + +// Equals returns true if this CrossClusterTaskFailedCause value matches the provided +// value. +func (v CrossClusterTaskFailedCause) Equals(rhs CrossClusterTaskFailedCause) bool { + return v == rhs +} + +// MarshalJSON serializes CrossClusterTaskFailedCause into JSON. +// +// If the enum value is recognized, its name is returned. Otherwise, +// its integer value is returned. +// +// This implements json.Marshaler. +func (v CrossClusterTaskFailedCause) MarshalJSON() ([]byte, error) { + switch int32(v) { + case 0: + return ([]byte)("\"DOMAIN_NOT_ACTIVE\""), nil + case 1: + return ([]byte)("\"DOMAIN_NOT_EXISTS\""), nil + case 2: + return ([]byte)("\"WORKFLOW_ALREADY_RUNNING\""), nil + case 3: + return ([]byte)("\"WORKFLOW_NOT_EXISTS\""), nil + } + return ([]byte)(strconv.FormatInt(int64(v), 10)), nil +} + +// UnmarshalJSON attempts to decode CrossClusterTaskFailedCause from its JSON +// representation. +// +// This implementation supports both, numeric and string inputs. If a +// string is provided, it must be a known enum name. +// +// This implements json.Unmarshaler. +func (v *CrossClusterTaskFailedCause) UnmarshalJSON(text []byte) error { + d := json.NewDecoder(bytes.NewReader(text)) + d.UseNumber() + t, err := d.Token() + if err != nil { + return err + } + + switch w := t.(type) { + case json.Number: + x, err := w.Int64() + if err != nil { + return err + } + if x > math.MaxInt32 { + return fmt.Errorf("enum overflow from JSON %q for %q", text, "CrossClusterTaskFailedCause") + } + if x < math.MinInt32 { + return fmt.Errorf("enum underflow from JSON %q for %q", text, "CrossClusterTaskFailedCause") + } + *v = (CrossClusterTaskFailedCause)(x) + return nil + case string: + return v.UnmarshalText([]byte(w)) + default: + return fmt.Errorf("invalid JSON value %q (%T) to unmarshal into %q", t, t, "CrossClusterTaskFailedCause") + } +} + +type CrossClusterTaskInfo struct { + DomainID *string `json:"domainID,omitempty"` + WorkflowID *string `json:"workflowID,omitempty"` + RunID *string `json:"runID,omitempty"` + TaskType *CrossClusterTaskType `json:"taskType,omitempty"` + TaskState *int16 `json:"taskState,omitempty"` + TaskID *int64 `json:"taskID,omitempty"` + VisibilityTimestamp *int64 `json:"visibilityTimestamp,omitempty"` +} + +// ToWire translates a CrossClusterTaskInfo 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 *CrossClusterTaskInfo) ToWire() (wire.Value, error) { + var ( + fields [7]wire.Field + i int = 0 + w wire.Value + err error + ) + + if v.DomainID != nil { + w, err = wire.NewValueString(*(v.DomainID)), error(nil) + if err != nil { + return w, err + } + fields[i] = wire.Field{ID: 10, Value: w} + i++ + } + if v.WorkflowID != nil { + w, err = wire.NewValueString(*(v.WorkflowID)), error(nil) + if err != nil { + return w, err + } + fields[i] = wire.Field{ID: 20, Value: w} + i++ + } + if v.RunID != nil { + w, err = wire.NewValueString(*(v.RunID)), error(nil) + if err != nil { + return w, err + } + fields[i] = wire.Field{ID: 30, Value: w} + i++ + } + if v.TaskType != nil { + w, err = v.TaskType.ToWire() + if err != nil { + return w, err + } + fields[i] = wire.Field{ID: 40, Value: w} + i++ + } + if v.TaskState != nil { + w, err = wire.NewValueI16(*(v.TaskState)), error(nil) + if err != nil { + return w, err + } + fields[i] = wire.Field{ID: 50, Value: w} + i++ + } + if v.TaskID != nil { + w, err = wire.NewValueI64(*(v.TaskID)), error(nil) + if err != nil { + return w, err + } + fields[i] = wire.Field{ID: 60, Value: w} + i++ + } + if v.VisibilityTimestamp != nil { + w, err = wire.NewValueI64(*(v.VisibilityTimestamp)), error(nil) + if err != nil { + return w, err + } + fields[i] = wire.Field{ID: 70, Value: w} + i++ + } + + return wire.NewValueStruct(wire.Struct{Fields: fields[:i]}), nil +} + +func _CrossClusterTaskType_Read(w wire.Value) (CrossClusterTaskType, error) { + var v CrossClusterTaskType + err := v.FromWire(w) + return v, err +} + +// FromWire deserializes a CrossClusterTaskInfo 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 CrossClusterTaskInfo struct +// from the provided intermediate representation. +// +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } +// +// var v CrossClusterTaskInfo +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil +func (v *CrossClusterTaskInfo) 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.DomainID = &x + if err != nil { + return err + } + + } + case 20: + if field.Value.Type() == wire.TBinary { + var x string + x, err = field.Value.GetString(), error(nil) + v.WorkflowID = &x + if err != nil { + return err + } + + } + case 30: + if field.Value.Type() == wire.TBinary { + var x string + x, err = field.Value.GetString(), error(nil) + v.RunID = &x + if err != nil { + return err + } + + } + case 40: + if field.Value.Type() == wire.TI32 { + var x CrossClusterTaskType + x, err = _CrossClusterTaskType_Read(field.Value) + v.TaskType = &x + if err != nil { + return err + } + + } + case 50: + if field.Value.Type() == wire.TI16 { + var x int16 + x, err = field.Value.GetI16(), error(nil) + v.TaskState = &x + if err != nil { + return err + } + + } + case 60: + if field.Value.Type() == wire.TI64 { + var x int64 + x, err = field.Value.GetI64(), error(nil) + v.TaskID = &x + if err != nil { + return err + } + + } + case 70: + if field.Value.Type() == wire.TI64 { + var x int64 + x, err = field.Value.GetI64(), error(nil) + v.VisibilityTimestamp = &x + if err != nil { + return err + } + + } + } + } + + return nil +} + +// String returns a readable string representation of a CrossClusterTaskInfo +// struct. +func (v *CrossClusterTaskInfo) String() string { + if v == nil { + return "" + } + + var fields [7]string + i := 0 + if v.DomainID != nil { + fields[i] = fmt.Sprintf("DomainID: %v", *(v.DomainID)) + i++ + } + if v.WorkflowID != nil { + fields[i] = fmt.Sprintf("WorkflowID: %v", *(v.WorkflowID)) + i++ + } + if v.RunID != nil { + fields[i] = fmt.Sprintf("RunID: %v", *(v.RunID)) + i++ + } + if v.TaskType != nil { + fields[i] = fmt.Sprintf("TaskType: %v", *(v.TaskType)) + i++ + } + if v.TaskState != nil { + fields[i] = fmt.Sprintf("TaskState: %v", *(v.TaskState)) + i++ + } + if v.TaskID != nil { + fields[i] = fmt.Sprintf("TaskID: %v", *(v.TaskID)) + i++ + } + if v.VisibilityTimestamp != nil { + fields[i] = fmt.Sprintf("VisibilityTimestamp: %v", *(v.VisibilityTimestamp)) + i++ + } + + return fmt.Sprintf("CrossClusterTaskInfo{%v}", strings.Join(fields[:i], ", ")) +} + +func _CrossClusterTaskType_EqualsPtr(lhs, rhs *CrossClusterTaskType) bool { + if lhs != nil && rhs != nil { + + x := *lhs + y := *rhs + return x.Equals(y) + } + return lhs == nil && rhs == nil +} + +func _I16_EqualsPtr(lhs, rhs *int16) bool { + if lhs != nil && rhs != nil { + + x := *lhs + y := *rhs + return (x == y) + } + return lhs == nil && rhs == nil +} + +// Equals returns true if all the fields of this CrossClusterTaskInfo match the +// provided CrossClusterTaskInfo. +// +// This function performs a deep comparison. +func (v *CrossClusterTaskInfo) Equals(rhs *CrossClusterTaskInfo) bool { + if v == nil { + return rhs == nil + } else if rhs == nil { + return false + } + if !_String_EqualsPtr(v.DomainID, rhs.DomainID) { + return false + } + if !_String_EqualsPtr(v.WorkflowID, rhs.WorkflowID) { + return false + } + if !_String_EqualsPtr(v.RunID, rhs.RunID) { + return false + } + if !_CrossClusterTaskType_EqualsPtr(v.TaskType, rhs.TaskType) { + return false + } + if !_I16_EqualsPtr(v.TaskState, rhs.TaskState) { + return false + } + if !_I64_EqualsPtr(v.TaskID, rhs.TaskID) { + return false + } + if !_I64_EqualsPtr(v.VisibilityTimestamp, rhs.VisibilityTimestamp) { + return false + } + + return true +} + +// MarshalLogObject implements zapcore.ObjectMarshaler, enabling +// fast logging of CrossClusterTaskInfo. +func (v *CrossClusterTaskInfo) MarshalLogObject(enc zapcore.ObjectEncoder) (err error) { + if v == nil { + return nil + } + if v.DomainID != nil { + enc.AddString("domainID", *v.DomainID) + } + if v.WorkflowID != nil { + enc.AddString("workflowID", *v.WorkflowID) + } + if v.RunID != nil { + enc.AddString("runID", *v.RunID) + } + if v.TaskType != nil { + err = multierr.Append(err, enc.AddObject("taskType", *v.TaskType)) + } + if v.TaskState != nil { + enc.AddInt16("taskState", *v.TaskState) + } + if v.TaskID != nil { + enc.AddInt64("taskID", *v.TaskID) + } + if v.VisibilityTimestamp != nil { + enc.AddInt64("visibilityTimestamp", *v.VisibilityTimestamp) + } + return err +} + +// GetDomainID returns the value of DomainID if it is set or its +// zero value if it is unset. +func (v *CrossClusterTaskInfo) GetDomainID() (o string) { + if v != nil && v.DomainID != nil { + return *v.DomainID + } + + return +} + +// IsSetDomainID returns true if DomainID is not nil. +func (v *CrossClusterTaskInfo) IsSetDomainID() bool { + return v != nil && v.DomainID != nil +} + +// GetWorkflowID returns the value of WorkflowID if it is set or its +// zero value if it is unset. +func (v *CrossClusterTaskInfo) GetWorkflowID() (o string) { + if v != nil && v.WorkflowID != nil { + return *v.WorkflowID + } + + return +} + +// IsSetWorkflowID returns true if WorkflowID is not nil. +func (v *CrossClusterTaskInfo) IsSetWorkflowID() bool { + return v != nil && v.WorkflowID != nil +} + +// GetRunID returns the value of RunID if it is set or its +// zero value if it is unset. +func (v *CrossClusterTaskInfo) GetRunID() (o string) { + if v != nil && v.RunID != nil { + return *v.RunID + } + + return +} + +// IsSetRunID returns true if RunID is not nil. +func (v *CrossClusterTaskInfo) IsSetRunID() bool { + return v != nil && v.RunID != nil +} + +// GetTaskType returns the value of TaskType if it is set or its +// zero value if it is unset. +func (v *CrossClusterTaskInfo) GetTaskType() (o CrossClusterTaskType) { + if v != nil && v.TaskType != nil { + return *v.TaskType + } + + return +} + +// IsSetTaskType returns true if TaskType is not nil. +func (v *CrossClusterTaskInfo) IsSetTaskType() bool { + return v != nil && v.TaskType != nil +} + +// GetTaskState returns the value of TaskState if it is set or its +// zero value if it is unset. +func (v *CrossClusterTaskInfo) GetTaskState() (o int16) { + if v != nil && v.TaskState != nil { + return *v.TaskState + } + + return +} + +// IsSetTaskState returns true if TaskState is not nil. +func (v *CrossClusterTaskInfo) IsSetTaskState() bool { + return v != nil && v.TaskState != nil +} + +// GetTaskID returns the value of TaskID if it is set or its +// zero value if it is unset. +func (v *CrossClusterTaskInfo) GetTaskID() (o int64) { + if v != nil && v.TaskID != nil { + return *v.TaskID + } + + return +} + +// IsSetTaskID returns true if TaskID is not nil. +func (v *CrossClusterTaskInfo) IsSetTaskID() bool { + return v != nil && v.TaskID != nil +} + +// GetVisibilityTimestamp returns the value of VisibilityTimestamp if it is set or its +// zero value if it is unset. +func (v *CrossClusterTaskInfo) GetVisibilityTimestamp() (o int64) { + if v != nil && v.VisibilityTimestamp != nil { + return *v.VisibilityTimestamp + } + + return +} + +// IsSetVisibilityTimestamp returns true if VisibilityTimestamp is not nil. +func (v *CrossClusterTaskInfo) IsSetVisibilityTimestamp() bool { + return v != nil && v.VisibilityTimestamp != nil +} + +type CrossClusterTaskRequest struct { + TaskInfo *CrossClusterTaskInfo `json:"taskInfo,omitempty"` + StartChildExecutionAttributes *CrossClusterStartChildExecutionRequestAttributes `json:"startChildExecutionAttributes,omitempty"` + CancelExecutionAttributes *CrossClusterCancelExecutionRequestAttributes `json:"cancelExecutionAttributes,omitempty"` + SignalExecutionAttributes *CrossClusterSignalExecutionRequestAttributes `json:"signalExecutionAttributes,omitempty"` +} + +// ToWire translates a CrossClusterTaskRequest 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 *CrossClusterTaskRequest) ToWire() (wire.Value, error) { + var ( + fields [4]wire.Field + i int = 0 + w wire.Value + err error + ) + + if v.TaskInfo != nil { + w, err = v.TaskInfo.ToWire() + if err != nil { + return w, err + } + fields[i] = wire.Field{ID: 10, Value: w} + i++ + } + if v.StartChildExecutionAttributes != nil { + w, err = v.StartChildExecutionAttributes.ToWire() + if err != nil { + return w, err + } + fields[i] = wire.Field{ID: 20, Value: w} + i++ + } + if v.CancelExecutionAttributes != nil { + w, err = v.CancelExecutionAttributes.ToWire() + if err != nil { + return w, err + } + fields[i] = wire.Field{ID: 30, Value: w} + i++ + } + if v.SignalExecutionAttributes != nil { + w, err = v.SignalExecutionAttributes.ToWire() + if err != nil { + return w, err + } + fields[i] = wire.Field{ID: 40, Value: w} + i++ + } + + return wire.NewValueStruct(wire.Struct{Fields: fields[:i]}), nil +} + +func _CrossClusterTaskInfo_Read(w wire.Value) (*CrossClusterTaskInfo, error) { + var v CrossClusterTaskInfo + err := v.FromWire(w) + return &v, err +} + +func _CrossClusterStartChildExecutionRequestAttributes_Read(w wire.Value) (*CrossClusterStartChildExecutionRequestAttributes, error) { + var v CrossClusterStartChildExecutionRequestAttributes + err := v.FromWire(w) + return &v, err +} + +func _CrossClusterCancelExecutionRequestAttributes_Read(w wire.Value) (*CrossClusterCancelExecutionRequestAttributes, error) { + var v CrossClusterCancelExecutionRequestAttributes + err := v.FromWire(w) + return &v, err +} + +func _CrossClusterSignalExecutionRequestAttributes_Read(w wire.Value) (*CrossClusterSignalExecutionRequestAttributes, error) { + var v CrossClusterSignalExecutionRequestAttributes + err := v.FromWire(w) + return &v, err +} + +// FromWire deserializes a CrossClusterTaskRequest 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 CrossClusterTaskRequest struct +// from the provided intermediate representation. +// +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } +// +// var v CrossClusterTaskRequest +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil +func (v *CrossClusterTaskRequest) FromWire(w wire.Value) error { + var err error + + for _, field := range w.GetStruct().Fields { + switch field.ID { + case 10: + if field.Value.Type() == wire.TStruct { + v.TaskInfo, err = _CrossClusterTaskInfo_Read(field.Value) + if err != nil { + return err + } + + } + case 20: + if field.Value.Type() == wire.TStruct { + v.StartChildExecutionAttributes, err = _CrossClusterStartChildExecutionRequestAttributes_Read(field.Value) + if err != nil { + return err + } + + } + case 30: + if field.Value.Type() == wire.TStruct { + v.CancelExecutionAttributes, err = _CrossClusterCancelExecutionRequestAttributes_Read(field.Value) + if err != nil { + return err + } + + } + case 40: + if field.Value.Type() == wire.TStruct { + v.SignalExecutionAttributes, err = _CrossClusterSignalExecutionRequestAttributes_Read(field.Value) + if err != nil { + return err + } + + } + } + } + + return nil +} + +// String returns a readable string representation of a CrossClusterTaskRequest +// struct. +func (v *CrossClusterTaskRequest) String() string { + if v == nil { + return "" + } + + var fields [4]string + i := 0 + if v.TaskInfo != nil { + fields[i] = fmt.Sprintf("TaskInfo: %v", v.TaskInfo) + i++ + } + if v.StartChildExecutionAttributes != nil { + fields[i] = fmt.Sprintf("StartChildExecutionAttributes: %v", v.StartChildExecutionAttributes) + i++ + } + if v.CancelExecutionAttributes != nil { + fields[i] = fmt.Sprintf("CancelExecutionAttributes: %v", v.CancelExecutionAttributes) + i++ + } + if v.SignalExecutionAttributes != nil { + fields[i] = fmt.Sprintf("SignalExecutionAttributes: %v", v.SignalExecutionAttributes) + i++ + } + + return fmt.Sprintf("CrossClusterTaskRequest{%v}", strings.Join(fields[:i], ", ")) +} + +// Equals returns true if all the fields of this CrossClusterTaskRequest match the +// provided CrossClusterTaskRequest. +// +// This function performs a deep comparison. +func (v *CrossClusterTaskRequest) Equals(rhs *CrossClusterTaskRequest) bool { + if v == nil { + return rhs == nil + } else if rhs == nil { + return false + } + if !((v.TaskInfo == nil && rhs.TaskInfo == nil) || (v.TaskInfo != nil && rhs.TaskInfo != nil && v.TaskInfo.Equals(rhs.TaskInfo))) { + return false + } + if !((v.StartChildExecutionAttributes == nil && rhs.StartChildExecutionAttributes == nil) || (v.StartChildExecutionAttributes != nil && rhs.StartChildExecutionAttributes != nil && v.StartChildExecutionAttributes.Equals(rhs.StartChildExecutionAttributes))) { + return false + } + if !((v.CancelExecutionAttributes == nil && rhs.CancelExecutionAttributes == nil) || (v.CancelExecutionAttributes != nil && rhs.CancelExecutionAttributes != nil && v.CancelExecutionAttributes.Equals(rhs.CancelExecutionAttributes))) { + return false + } + if !((v.SignalExecutionAttributes == nil && rhs.SignalExecutionAttributes == nil) || (v.SignalExecutionAttributes != nil && rhs.SignalExecutionAttributes != nil && v.SignalExecutionAttributes.Equals(rhs.SignalExecutionAttributes))) { + return false + } + + return true +} + +// MarshalLogObject implements zapcore.ObjectMarshaler, enabling +// fast logging of CrossClusterTaskRequest. +func (v *CrossClusterTaskRequest) MarshalLogObject(enc zapcore.ObjectEncoder) (err error) { + if v == nil { + return nil + } + if v.TaskInfo != nil { + err = multierr.Append(err, enc.AddObject("taskInfo", v.TaskInfo)) + } + if v.StartChildExecutionAttributes != nil { + err = multierr.Append(err, enc.AddObject("startChildExecutionAttributes", v.StartChildExecutionAttributes)) + } + if v.CancelExecutionAttributes != nil { + err = multierr.Append(err, enc.AddObject("cancelExecutionAttributes", v.CancelExecutionAttributes)) + } + if v.SignalExecutionAttributes != nil { + err = multierr.Append(err, enc.AddObject("signalExecutionAttributes", v.SignalExecutionAttributes)) + } + return err +} + +// GetTaskInfo returns the value of TaskInfo if it is set or its +// zero value if it is unset. +func (v *CrossClusterTaskRequest) GetTaskInfo() (o *CrossClusterTaskInfo) { + if v != nil && v.TaskInfo != nil { + return v.TaskInfo + } + + return +} + +// IsSetTaskInfo returns true if TaskInfo is not nil. +func (v *CrossClusterTaskRequest) IsSetTaskInfo() bool { + return v != nil && v.TaskInfo != nil +} + +// GetStartChildExecutionAttributes returns the value of StartChildExecutionAttributes if it is set or its +// zero value if it is unset. +func (v *CrossClusterTaskRequest) GetStartChildExecutionAttributes() (o *CrossClusterStartChildExecutionRequestAttributes) { + if v != nil && v.StartChildExecutionAttributes != nil { + return v.StartChildExecutionAttributes + } + + return +} + +// IsSetStartChildExecutionAttributes returns true if StartChildExecutionAttributes is not nil. +func (v *CrossClusterTaskRequest) IsSetStartChildExecutionAttributes() bool { + return v != nil && v.StartChildExecutionAttributes != nil +} + +// GetCancelExecutionAttributes returns the value of CancelExecutionAttributes if it is set or its +// zero value if it is unset. +func (v *CrossClusterTaskRequest) GetCancelExecutionAttributes() (o *CrossClusterCancelExecutionRequestAttributes) { + if v != nil && v.CancelExecutionAttributes != nil { + return v.CancelExecutionAttributes + } + + return +} + +// IsSetCancelExecutionAttributes returns true if CancelExecutionAttributes is not nil. +func (v *CrossClusterTaskRequest) IsSetCancelExecutionAttributes() bool { + return v != nil && v.CancelExecutionAttributes != nil +} + +// GetSignalExecutionAttributes returns the value of SignalExecutionAttributes if it is set or its +// zero value if it is unset. +func (v *CrossClusterTaskRequest) GetSignalExecutionAttributes() (o *CrossClusterSignalExecutionRequestAttributes) { + if v != nil && v.SignalExecutionAttributes != nil { + return v.SignalExecutionAttributes + } + + return +} + +// IsSetSignalExecutionAttributes returns true if SignalExecutionAttributes is not nil. +func (v *CrossClusterTaskRequest) IsSetSignalExecutionAttributes() bool { + return v != nil && v.SignalExecutionAttributes != nil +} + +type CrossClusterTaskResponse struct { + TaskID *int64 `json:"taskID,omitempty"` + TaskType *CrossClusterTaskType `json:"taskType,omitempty"` + FailedCause *CrossClusterTaskFailedCause `json:"failedCause,omitempty"` + StartChildExecutionAttributes *CrossClusterStartChildExecutionResponseAttributes `json:"startChildExecutionAttributes,omitempty"` + CancelExecutionAttributes *CrossClusterCancelExecutionResponseAttributes `json:"cancelExecutionAttributes,omitempty"` + SignalExecutionAttributes *CrossClusterSignalExecutionResponseAttributes `json:"signalExecutionAttributes,omitempty"` +} + +// ToWire translates a CrossClusterTaskResponse 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 *CrossClusterTaskResponse) ToWire() (wire.Value, error) { + var ( + fields [6]wire.Field + i int = 0 + w wire.Value + err error + ) + + if v.TaskID != nil { + w, err = wire.NewValueI64(*(v.TaskID)), error(nil) + if err != nil { + return w, err + } + fields[i] = wire.Field{ID: 10, Value: w} + i++ + } + if v.TaskType != nil { + w, err = v.TaskType.ToWire() + if err != nil { + return w, err + } + fields[i] = wire.Field{ID: 20, Value: w} + i++ + } + if v.FailedCause != nil { + w, err = v.FailedCause.ToWire() + if err != nil { + return w, err + } + fields[i] = wire.Field{ID: 30, Value: w} + i++ + } + if v.StartChildExecutionAttributes != nil { + w, err = v.StartChildExecutionAttributes.ToWire() + if err != nil { + return w, err + } + fields[i] = wire.Field{ID: 40, Value: w} + i++ + } + if v.CancelExecutionAttributes != nil { + w, err = v.CancelExecutionAttributes.ToWire() + if err != nil { + return w, err + } + fields[i] = wire.Field{ID: 50, Value: w} + i++ + } + if v.SignalExecutionAttributes != nil { + w, err = v.SignalExecutionAttributes.ToWire() + if err != nil { + return w, err + } + fields[i] = wire.Field{ID: 60, Value: w} + i++ + } + + return wire.NewValueStruct(wire.Struct{Fields: fields[:i]}), nil +} + +func _CrossClusterTaskFailedCause_Read(w wire.Value) (CrossClusterTaskFailedCause, error) { + var v CrossClusterTaskFailedCause + err := v.FromWire(w) + return v, err +} + +func _CrossClusterStartChildExecutionResponseAttributes_Read(w wire.Value) (*CrossClusterStartChildExecutionResponseAttributes, error) { + var v CrossClusterStartChildExecutionResponseAttributes + err := v.FromWire(w) + return &v, err +} + +func _CrossClusterCancelExecutionResponseAttributes_Read(w wire.Value) (*CrossClusterCancelExecutionResponseAttributes, error) { + var v CrossClusterCancelExecutionResponseAttributes + err := v.FromWire(w) + return &v, err +} + +func _CrossClusterSignalExecutionResponseAttributes_Read(w wire.Value) (*CrossClusterSignalExecutionResponseAttributes, error) { + var v CrossClusterSignalExecutionResponseAttributes + err := v.FromWire(w) + return &v, err +} + +// FromWire deserializes a CrossClusterTaskResponse 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 CrossClusterTaskResponse struct +// from the provided intermediate representation. +// +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } +// +// var v CrossClusterTaskResponse +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil +func (v *CrossClusterTaskResponse) FromWire(w wire.Value) error { + var err error + + for _, field := range w.GetStruct().Fields { + switch field.ID { + case 10: + if field.Value.Type() == wire.TI64 { + var x int64 + x, err = field.Value.GetI64(), error(nil) + v.TaskID = &x + if err != nil { + return err + } + + } + case 20: + if field.Value.Type() == wire.TI32 { + var x CrossClusterTaskType + x, err = _CrossClusterTaskType_Read(field.Value) + v.TaskType = &x + if err != nil { + return err + } + + } + case 30: + if field.Value.Type() == wire.TI32 { + var x CrossClusterTaskFailedCause + x, err = _CrossClusterTaskFailedCause_Read(field.Value) + v.FailedCause = &x + if err != nil { + return err + } + + } + case 40: + if field.Value.Type() == wire.TStruct { + v.StartChildExecutionAttributes, err = _CrossClusterStartChildExecutionResponseAttributes_Read(field.Value) + if err != nil { + return err + } + + } + case 50: + if field.Value.Type() == wire.TStruct { + v.CancelExecutionAttributes, err = _CrossClusterCancelExecutionResponseAttributes_Read(field.Value) + if err != nil { + return err + } + + } + case 60: + if field.Value.Type() == wire.TStruct { + v.SignalExecutionAttributes, err = _CrossClusterSignalExecutionResponseAttributes_Read(field.Value) + if err != nil { + return err + } + + } + } + } + + return nil +} + +// String returns a readable string representation of a CrossClusterTaskResponse +// struct. +func (v *CrossClusterTaskResponse) String() string { + if v == nil { + return "" + } + + var fields [6]string + i := 0 + if v.TaskID != nil { + fields[i] = fmt.Sprintf("TaskID: %v", *(v.TaskID)) + i++ + } + if v.TaskType != nil { + fields[i] = fmt.Sprintf("TaskType: %v", *(v.TaskType)) + i++ + } + if v.FailedCause != nil { + fields[i] = fmt.Sprintf("FailedCause: %v", *(v.FailedCause)) + i++ + } + if v.StartChildExecutionAttributes != nil { + fields[i] = fmt.Sprintf("StartChildExecutionAttributes: %v", v.StartChildExecutionAttributes) + i++ + } + if v.CancelExecutionAttributes != nil { + fields[i] = fmt.Sprintf("CancelExecutionAttributes: %v", v.CancelExecutionAttributes) + i++ + } + if v.SignalExecutionAttributes != nil { + fields[i] = fmt.Sprintf("SignalExecutionAttributes: %v", v.SignalExecutionAttributes) + i++ + } + + return fmt.Sprintf("CrossClusterTaskResponse{%v}", strings.Join(fields[:i], ", ")) +} + +func _CrossClusterTaskFailedCause_EqualsPtr(lhs, rhs *CrossClusterTaskFailedCause) bool { + if lhs != nil && rhs != nil { + + x := *lhs + y := *rhs + return x.Equals(y) + } + return lhs == nil && rhs == nil +} + +// Equals returns true if all the fields of this CrossClusterTaskResponse match the +// provided CrossClusterTaskResponse. +// +// This function performs a deep comparison. +func (v *CrossClusterTaskResponse) Equals(rhs *CrossClusterTaskResponse) bool { + if v == nil { + return rhs == nil + } else if rhs == nil { + return false + } + if !_I64_EqualsPtr(v.TaskID, rhs.TaskID) { + return false + } + if !_CrossClusterTaskType_EqualsPtr(v.TaskType, rhs.TaskType) { + return false + } + if !_CrossClusterTaskFailedCause_EqualsPtr(v.FailedCause, rhs.FailedCause) { + return false + } + if !((v.StartChildExecutionAttributes == nil && rhs.StartChildExecutionAttributes == nil) || (v.StartChildExecutionAttributes != nil && rhs.StartChildExecutionAttributes != nil && v.StartChildExecutionAttributes.Equals(rhs.StartChildExecutionAttributes))) { + return false + } + if !((v.CancelExecutionAttributes == nil && rhs.CancelExecutionAttributes == nil) || (v.CancelExecutionAttributes != nil && rhs.CancelExecutionAttributes != nil && v.CancelExecutionAttributes.Equals(rhs.CancelExecutionAttributes))) { + return false + } + if !((v.SignalExecutionAttributes == nil && rhs.SignalExecutionAttributes == nil) || (v.SignalExecutionAttributes != nil && rhs.SignalExecutionAttributes != nil && v.SignalExecutionAttributes.Equals(rhs.SignalExecutionAttributes))) { + return false + } + + return true +} + +// MarshalLogObject implements zapcore.ObjectMarshaler, enabling +// fast logging of CrossClusterTaskResponse. +func (v *CrossClusterTaskResponse) MarshalLogObject(enc zapcore.ObjectEncoder) (err error) { + if v == nil { + return nil + } + if v.TaskID != nil { + enc.AddInt64("taskID", *v.TaskID) + } + if v.TaskType != nil { + err = multierr.Append(err, enc.AddObject("taskType", *v.TaskType)) + } + if v.FailedCause != nil { + err = multierr.Append(err, enc.AddObject("failedCause", *v.FailedCause)) + } + if v.StartChildExecutionAttributes != nil { + err = multierr.Append(err, enc.AddObject("startChildExecutionAttributes", v.StartChildExecutionAttributes)) + } + if v.CancelExecutionAttributes != nil { + err = multierr.Append(err, enc.AddObject("cancelExecutionAttributes", v.CancelExecutionAttributes)) + } + if v.SignalExecutionAttributes != nil { + err = multierr.Append(err, enc.AddObject("signalExecutionAttributes", v.SignalExecutionAttributes)) + } + return err +} + +// GetTaskID returns the value of TaskID if it is set or its +// zero value if it is unset. +func (v *CrossClusterTaskResponse) GetTaskID() (o int64) { + if v != nil && v.TaskID != nil { + return *v.TaskID + } + + return +} + +// IsSetTaskID returns true if TaskID is not nil. +func (v *CrossClusterTaskResponse) IsSetTaskID() bool { + return v != nil && v.TaskID != nil +} + +// GetTaskType returns the value of TaskType if it is set or its +// zero value if it is unset. +func (v *CrossClusterTaskResponse) GetTaskType() (o CrossClusterTaskType) { + if v != nil && v.TaskType != nil { + return *v.TaskType + } + + return +} + +// IsSetTaskType returns true if TaskType is not nil. +func (v *CrossClusterTaskResponse) IsSetTaskType() bool { + return v != nil && v.TaskType != nil +} + +// GetFailedCause returns the value of FailedCause if it is set or its +// zero value if it is unset. +func (v *CrossClusterTaskResponse) GetFailedCause() (o CrossClusterTaskFailedCause) { + if v != nil && v.FailedCause != nil { + return *v.FailedCause + } + + return +} + +// IsSetFailedCause returns true if FailedCause is not nil. +func (v *CrossClusterTaskResponse) IsSetFailedCause() bool { + return v != nil && v.FailedCause != nil +} + +// GetStartChildExecutionAttributes returns the value of StartChildExecutionAttributes if it is set or its +// zero value if it is unset. +func (v *CrossClusterTaskResponse) GetStartChildExecutionAttributes() (o *CrossClusterStartChildExecutionResponseAttributes) { + if v != nil && v.StartChildExecutionAttributes != nil { + return v.StartChildExecutionAttributes + } + + return +} + +// IsSetStartChildExecutionAttributes returns true if StartChildExecutionAttributes is not nil. +func (v *CrossClusterTaskResponse) IsSetStartChildExecutionAttributes() bool { + return v != nil && v.StartChildExecutionAttributes != nil +} + +// GetCancelExecutionAttributes returns the value of CancelExecutionAttributes if it is set or its +// zero value if it is unset. +func (v *CrossClusterTaskResponse) GetCancelExecutionAttributes() (o *CrossClusterCancelExecutionResponseAttributes) { + if v != nil && v.CancelExecutionAttributes != nil { + return v.CancelExecutionAttributes + } + + return +} + +// IsSetCancelExecutionAttributes returns true if CancelExecutionAttributes is not nil. +func (v *CrossClusterTaskResponse) IsSetCancelExecutionAttributes() bool { + return v != nil && v.CancelExecutionAttributes != nil +} + +// GetSignalExecutionAttributes returns the value of SignalExecutionAttributes if it is set or its +// zero value if it is unset. +func (v *CrossClusterTaskResponse) GetSignalExecutionAttributes() (o *CrossClusterSignalExecutionResponseAttributes) { + if v != nil && v.SignalExecutionAttributes != nil { + return v.SignalExecutionAttributes + } + + return +} + +// IsSetSignalExecutionAttributes returns true if SignalExecutionAttributes is not nil. +func (v *CrossClusterTaskResponse) IsSetSignalExecutionAttributes() bool { + return v != nil && v.SignalExecutionAttributes != nil +} + +type CrossClusterTaskType int32 + +const ( + CrossClusterTaskTypeStartChildExecution CrossClusterTaskType = 0 + CrossClusterTaskTypeCancelExecution CrossClusterTaskType = 1 + CrossClusterTaskTypeSignalExecution CrossClusterTaskType = 2 +) + +// CrossClusterTaskType_Values returns all recognized values of CrossClusterTaskType. +func CrossClusterTaskType_Values() []CrossClusterTaskType { + return []CrossClusterTaskType{ + CrossClusterTaskTypeStartChildExecution, + CrossClusterTaskTypeCancelExecution, + CrossClusterTaskTypeSignalExecution, + } +} + +// UnmarshalText tries to decode CrossClusterTaskType from a byte slice +// containing its name. +// +// var v CrossClusterTaskType +// err := v.UnmarshalText([]byte("StartChildExecution")) +func (v *CrossClusterTaskType) UnmarshalText(value []byte) error { + switch s := string(value); s { + case "StartChildExecution": + *v = CrossClusterTaskTypeStartChildExecution + return nil + case "CancelExecution": + *v = CrossClusterTaskTypeCancelExecution + return nil + case "SignalExecution": + *v = CrossClusterTaskTypeSignalExecution + return nil + default: + val, err := strconv.ParseInt(s, 10, 32) + if err != nil { + return fmt.Errorf("unknown enum value %q for %q: %v", s, "CrossClusterTaskType", err) + } + *v = CrossClusterTaskType(val) + return nil + } +} + +// MarshalText encodes CrossClusterTaskType to text. +// +// If the enum value is recognized, its name is returned. Otherwise, +// its integer value is returned. +// +// This implements the TextMarshaler interface. +func (v CrossClusterTaskType) MarshalText() ([]byte, error) { + switch int32(v) { + case 0: + return []byte("StartChildExecution"), nil + case 1: + return []byte("CancelExecution"), nil + case 2: + return []byte("SignalExecution"), nil + } + return []byte(strconv.FormatInt(int64(v), 10)), nil +} + +// MarshalLogObject implements zapcore.ObjectMarshaler, enabling +// fast logging of CrossClusterTaskType. +// Enums are logged as objects, where the value is logged with key "value", and +// if this value's name is known, the name is logged with key "name". +func (v CrossClusterTaskType) MarshalLogObject(enc zapcore.ObjectEncoder) error { + enc.AddInt32("value", int32(v)) + switch int32(v) { + case 0: + enc.AddString("name", "StartChildExecution") + case 1: + enc.AddString("name", "CancelExecution") + case 2: + enc.AddString("name", "SignalExecution") + } + return nil +} + +// Ptr returns a pointer to this enum value. +func (v CrossClusterTaskType) Ptr() *CrossClusterTaskType { + return &v +} + +// ToWire translates CrossClusterTaskType into a Thrift-level intermediate +// representation. This intermediate representation may be serialized +// into bytes using a ThriftRW protocol implementation. +// +// Enums are represented as 32-bit integers over the wire. +func (v CrossClusterTaskType) ToWire() (wire.Value, error) { + return wire.NewValueI32(int32(v)), nil +} + +// FromWire deserializes CrossClusterTaskType from its Thrift-level +// representation. +// +// x, err := binaryProtocol.Decode(reader, wire.TI32) +// if err != nil { +// return CrossClusterTaskType(0), err +// } +// +// var v CrossClusterTaskType +// if err := v.FromWire(x); err != nil { +// return CrossClusterTaskType(0), err +// } +// return v, nil +func (v *CrossClusterTaskType) FromWire(w wire.Value) error { + *v = (CrossClusterTaskType)(w.GetI32()) + return nil +} + +// String returns a readable string representation of CrossClusterTaskType. +func (v CrossClusterTaskType) String() string { + w := int32(v) + switch w { + case 0: + return "StartChildExecution" + case 1: + return "CancelExecution" + case 2: + return "SignalExecution" + } + return fmt.Sprintf("CrossClusterTaskType(%d)", w) +} + +// Equals returns true if this CrossClusterTaskType value matches the provided +// value. +func (v CrossClusterTaskType) Equals(rhs CrossClusterTaskType) bool { + return v == rhs +} + +// MarshalJSON serializes CrossClusterTaskType into JSON. +// +// If the enum value is recognized, its name is returned. Otherwise, +// its integer value is returned. +// +// This implements json.Marshaler. +func (v CrossClusterTaskType) MarshalJSON() ([]byte, error) { + switch int32(v) { + case 0: + return ([]byte)("\"StartChildExecution\""), nil + case 1: + return ([]byte)("\"CancelExecution\""), nil + case 2: + return ([]byte)("\"SignalExecution\""), nil + } + return ([]byte)(strconv.FormatInt(int64(v), 10)), nil +} + +// UnmarshalJSON attempts to decode CrossClusterTaskType from its JSON +// representation. +// +// This implementation supports both, numeric and string inputs. If a +// string is provided, it must be a known enum name. +// +// This implements json.Unmarshaler. +func (v *CrossClusterTaskType) UnmarshalJSON(text []byte) error { + d := json.NewDecoder(bytes.NewReader(text)) + d.UseNumber() + t, err := d.Token() + if err != nil { + return err + } + + switch w := t.(type) { + case json.Number: + x, err := w.Int64() + if err != nil { + return err + } + if x > math.MaxInt32 { + return fmt.Errorf("enum overflow from JSON %q for %q", text, "CrossClusterTaskType") + } + if x < math.MinInt32 { + return fmt.Errorf("enum underflow from JSON %q for %q", text, "CrossClusterTaskType") + } + *v = (CrossClusterTaskType)(x) + return nil + case string: + return v.UnmarshalText([]byte(w)) + default: + return fmt.Errorf("invalid JSON value %q (%T) to unmarshal into %q", t, t, "CrossClusterTaskType") + } +} + type CurrentBranchChangedError struct { Message string `json:"message,required"` CurrentBranchToken []byte `json:"currentBranchToken,required"` @@ -13409,16 +16380,6 @@ func (v *DescribeDomainResponse) String() string { return fmt.Sprintf("DescribeDomainResponse{%v}", strings.Join(fields[:i], ", ")) } -func _Bool_EqualsPtr(lhs, rhs *bool) bool { - if lhs != nil && rhs != nil { - - x := *lhs - y := *rhs - return (x == y) - } - return lhs == nil && rhs == nil -} - // Equals returns true if all the fields of this DescribeDomainResponse match the // provided DescribeDomainResponse. // @@ -20198,6 +23159,508 @@ func (v *FeatureNotEnabledError) Error() string { return v.String() } +type GetCrossClusterTasksRequest struct { + ShardIDs []int32 `json:"shardIDs,omitempty"` + TargetCluster *string `json:"targetCluster,omitempty"` +} + +// ToWire translates a GetCrossClusterTasksRequest 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 *GetCrossClusterTasksRequest) ToWire() (wire.Value, error) { + var ( + fields [2]wire.Field + i int = 0 + w wire.Value + err error + ) + + if v.ShardIDs != nil { + w, err = wire.NewValueList(_List_I32_ValueList(v.ShardIDs)), error(nil) + if err != nil { + return w, err + } + fields[i] = wire.Field{ID: 10, Value: w} + i++ + } + if v.TargetCluster != nil { + w, err = wire.NewValueString(*(v.TargetCluster)), 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 GetCrossClusterTasksRequest 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 GetCrossClusterTasksRequest struct +// from the provided intermediate representation. +// +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } +// +// var v GetCrossClusterTasksRequest +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil +func (v *GetCrossClusterTasksRequest) FromWire(w wire.Value) error { + var err error + + for _, field := range w.GetStruct().Fields { + switch field.ID { + case 10: + if field.Value.Type() == wire.TList { + v.ShardIDs, err = _List_I32_Read(field.Value.GetList()) + if err != nil { + return err + } + + } + case 20: + if field.Value.Type() == wire.TBinary { + var x string + x, err = field.Value.GetString(), error(nil) + v.TargetCluster = &x + if err != nil { + return err + } + + } + } + } + + return nil +} + +// String returns a readable string representation of a GetCrossClusterTasksRequest +// struct. +func (v *GetCrossClusterTasksRequest) String() string { + if v == nil { + return "" + } + + var fields [2]string + i := 0 + if v.ShardIDs != nil { + fields[i] = fmt.Sprintf("ShardIDs: %v", v.ShardIDs) + i++ + } + if v.TargetCluster != nil { + fields[i] = fmt.Sprintf("TargetCluster: %v", *(v.TargetCluster)) + i++ + } + + return fmt.Sprintf("GetCrossClusterTasksRequest{%v}", strings.Join(fields[:i], ", ")) +} + +// Equals returns true if all the fields of this GetCrossClusterTasksRequest match the +// provided GetCrossClusterTasksRequest. +// +// This function performs a deep comparison. +func (v *GetCrossClusterTasksRequest) Equals(rhs *GetCrossClusterTasksRequest) bool { + if v == nil { + return rhs == nil + } else if rhs == nil { + return false + } + if !((v.ShardIDs == nil && rhs.ShardIDs == nil) || (v.ShardIDs != nil && rhs.ShardIDs != nil && _List_I32_Equals(v.ShardIDs, rhs.ShardIDs))) { + return false + } + if !_String_EqualsPtr(v.TargetCluster, rhs.TargetCluster) { + return false + } + + return true +} + +// MarshalLogObject implements zapcore.ObjectMarshaler, enabling +// fast logging of GetCrossClusterTasksRequest. +func (v *GetCrossClusterTasksRequest) MarshalLogObject(enc zapcore.ObjectEncoder) (err error) { + if v == nil { + return nil + } + if v.ShardIDs != nil { + err = multierr.Append(err, enc.AddArray("shardIDs", (_List_I32_Zapper)(v.ShardIDs))) + } + if v.TargetCluster != nil { + enc.AddString("targetCluster", *v.TargetCluster) + } + return err +} + +// GetShardIDs returns the value of ShardIDs if it is set or its +// zero value if it is unset. +func (v *GetCrossClusterTasksRequest) GetShardIDs() (o []int32) { + if v != nil && v.ShardIDs != nil { + return v.ShardIDs + } + + return +} + +// IsSetShardIDs returns true if ShardIDs is not nil. +func (v *GetCrossClusterTasksRequest) IsSetShardIDs() bool { + return v != nil && v.ShardIDs != nil +} + +// GetTargetCluster returns the value of TargetCluster if it is set or its +// zero value if it is unset. +func (v *GetCrossClusterTasksRequest) GetTargetCluster() (o string) { + if v != nil && v.TargetCluster != nil { + return *v.TargetCluster + } + + return +} + +// IsSetTargetCluster returns true if TargetCluster is not nil. +func (v *GetCrossClusterTasksRequest) IsSetTargetCluster() bool { + return v != nil && v.TargetCluster != nil +} + +type GetCrossClusterTasksResponse struct { + TasksByShard map[int32][]*CrossClusterTaskRequest `json:"tasksByShard,omitempty"` +} + +type _List_CrossClusterTaskRequest_ValueList []*CrossClusterTaskRequest + +func (v _List_CrossClusterTaskRequest_ValueList) ForEach(f func(wire.Value) error) error { + for i, x := range v { + if x == nil { + return fmt.Errorf("invalid [%v]: value is nil", i) + } + w, err := x.ToWire() + if err != nil { + return err + } + err = f(w) + if err != nil { + return err + } + } + return nil +} + +func (v _List_CrossClusterTaskRequest_ValueList) Size() int { + return len(v) +} + +func (_List_CrossClusterTaskRequest_ValueList) ValueType() wire.Type { + return wire.TStruct +} + +func (_List_CrossClusterTaskRequest_ValueList) Close() {} + +type _Map_I32_List_CrossClusterTaskRequest_MapItemList map[int32][]*CrossClusterTaskRequest + +func (m _Map_I32_List_CrossClusterTaskRequest_MapItemList) ForEach(f func(wire.MapItem) error) error { + for k, v := range m { + if v == nil { + return fmt.Errorf("invalid [%v]: value is nil", k) + } + kw, err := wire.NewValueI32(k), error(nil) + if err != nil { + return err + } + + vw, err := wire.NewValueList(_List_CrossClusterTaskRequest_ValueList(v)), error(nil) + if err != nil { + return err + } + err = f(wire.MapItem{Key: kw, Value: vw}) + if err != nil { + return err + } + } + return nil +} + +func (m _Map_I32_List_CrossClusterTaskRequest_MapItemList) Size() int { + return len(m) +} + +func (_Map_I32_List_CrossClusterTaskRequest_MapItemList) KeyType() wire.Type { + return wire.TI32 +} + +func (_Map_I32_List_CrossClusterTaskRequest_MapItemList) ValueType() wire.Type { + return wire.TList +} + +func (_Map_I32_List_CrossClusterTaskRequest_MapItemList) Close() {} + +// ToWire translates a GetCrossClusterTasksResponse 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 *GetCrossClusterTasksResponse) ToWire() (wire.Value, error) { + var ( + fields [1]wire.Field + i int = 0 + w wire.Value + err error + ) + + if v.TasksByShard != nil { + w, err = wire.NewValueMap(_Map_I32_List_CrossClusterTaskRequest_MapItemList(v.TasksByShard)), error(nil) + if err != nil { + return w, err + } + fields[i] = wire.Field{ID: 10, Value: w} + i++ + } + + return wire.NewValueStruct(wire.Struct{Fields: fields[:i]}), nil +} + +func _CrossClusterTaskRequest_Read(w wire.Value) (*CrossClusterTaskRequest, error) { + var v CrossClusterTaskRequest + err := v.FromWire(w) + return &v, err +} + +func _List_CrossClusterTaskRequest_Read(l wire.ValueList) ([]*CrossClusterTaskRequest, error) { + if l.ValueType() != wire.TStruct { + return nil, nil + } + + o := make([]*CrossClusterTaskRequest, 0, l.Size()) + err := l.ForEach(func(x wire.Value) error { + i, err := _CrossClusterTaskRequest_Read(x) + if err != nil { + return err + } + o = append(o, i) + return nil + }) + l.Close() + return o, err +} + +func _Map_I32_List_CrossClusterTaskRequest_Read(m wire.MapItemList) (map[int32][]*CrossClusterTaskRequest, error) { + if m.KeyType() != wire.TI32 { + return nil, nil + } + + if m.ValueType() != wire.TList { + return nil, nil + } + + o := make(map[int32][]*CrossClusterTaskRequest, m.Size()) + err := m.ForEach(func(x wire.MapItem) error { + k, err := x.Key.GetI32(), error(nil) + if err != nil { + return err + } + + v, err := _List_CrossClusterTaskRequest_Read(x.Value.GetList()) + if err != nil { + return err + } + + o[k] = v + return nil + }) + m.Close() + return o, err +} + +// FromWire deserializes a GetCrossClusterTasksResponse 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 GetCrossClusterTasksResponse struct +// from the provided intermediate representation. +// +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } +// +// var v GetCrossClusterTasksResponse +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil +func (v *GetCrossClusterTasksResponse) FromWire(w wire.Value) error { + var err error + + for _, field := range w.GetStruct().Fields { + switch field.ID { + case 10: + if field.Value.Type() == wire.TMap { + v.TasksByShard, err = _Map_I32_List_CrossClusterTaskRequest_Read(field.Value.GetMap()) + if err != nil { + return err + } + + } + } + } + + return nil +} + +// String returns a readable string representation of a GetCrossClusterTasksResponse +// struct. +func (v *GetCrossClusterTasksResponse) String() string { + if v == nil { + return "" + } + + var fields [1]string + i := 0 + if v.TasksByShard != nil { + fields[i] = fmt.Sprintf("TasksByShard: %v", v.TasksByShard) + i++ + } + + return fmt.Sprintf("GetCrossClusterTasksResponse{%v}", strings.Join(fields[:i], ", ")) +} + +func _List_CrossClusterTaskRequest_Equals(lhs, rhs []*CrossClusterTaskRequest) bool { + if len(lhs) != len(rhs) { + return false + } + + for i, lv := range lhs { + rv := rhs[i] + if !lv.Equals(rv) { + return false + } + } + + return true +} + +func _Map_I32_List_CrossClusterTaskRequest_Equals(lhs, rhs map[int32][]*CrossClusterTaskRequest) bool { + if len(lhs) != len(rhs) { + return false + } + + for lk, lv := range lhs { + rv, ok := rhs[lk] + if !ok { + return false + } + if !_List_CrossClusterTaskRequest_Equals(lv, rv) { + return false + } + } + return true +} + +// Equals returns true if all the fields of this GetCrossClusterTasksResponse match the +// provided GetCrossClusterTasksResponse. +// +// This function performs a deep comparison. +func (v *GetCrossClusterTasksResponse) Equals(rhs *GetCrossClusterTasksResponse) bool { + if v == nil { + return rhs == nil + } else if rhs == nil { + return false + } + if !((v.TasksByShard == nil && rhs.TasksByShard == nil) || (v.TasksByShard != nil && rhs.TasksByShard != nil && _Map_I32_List_CrossClusterTaskRequest_Equals(v.TasksByShard, rhs.TasksByShard))) { + return false + } + + return true +} + +type _List_CrossClusterTaskRequest_Zapper []*CrossClusterTaskRequest + +// MarshalLogArray implements zapcore.ArrayMarshaler, enabling +// fast logging of _List_CrossClusterTaskRequest_Zapper. +func (l _List_CrossClusterTaskRequest_Zapper) MarshalLogArray(enc zapcore.ArrayEncoder) (err error) { + for _, v := range l { + err = multierr.Append(err, enc.AppendObject(v)) + } + return err +} + +type _Map_I32_List_CrossClusterTaskRequest_Item_Zapper struct { + Key int32 + Value []*CrossClusterTaskRequest +} + +// MarshalLogArray implements zapcore.ArrayMarshaler, enabling +// fast logging of _Map_I32_List_CrossClusterTaskRequest_Item_Zapper. +func (v _Map_I32_List_CrossClusterTaskRequest_Item_Zapper) MarshalLogObject(enc zapcore.ObjectEncoder) (err error) { + enc.AddInt32("key", v.Key) + err = multierr.Append(err, enc.AddArray("value", (_List_CrossClusterTaskRequest_Zapper)(v.Value))) + return err +} + +type _Map_I32_List_CrossClusterTaskRequest_Zapper map[int32][]*CrossClusterTaskRequest + +// MarshalLogArray implements zapcore.ArrayMarshaler, enabling +// fast logging of _Map_I32_List_CrossClusterTaskRequest_Zapper. +func (m _Map_I32_List_CrossClusterTaskRequest_Zapper) MarshalLogArray(enc zapcore.ArrayEncoder) (err error) { + for k, v := range m { + err = multierr.Append(err, enc.AppendObject(_Map_I32_List_CrossClusterTaskRequest_Item_Zapper{Key: k, Value: v})) + } + return err +} + +// MarshalLogObject implements zapcore.ObjectMarshaler, enabling +// fast logging of GetCrossClusterTasksResponse. +func (v *GetCrossClusterTasksResponse) MarshalLogObject(enc zapcore.ObjectEncoder) (err error) { + if v == nil { + return nil + } + if v.TasksByShard != nil { + err = multierr.Append(err, enc.AddArray("tasksByShard", (_Map_I32_List_CrossClusterTaskRequest_Zapper)(v.TasksByShard))) + } + return err +} + +// GetTasksByShard returns the value of TasksByShard if it is set or its +// zero value if it is unset. +func (v *GetCrossClusterTasksResponse) GetTasksByShard() (o map[int32][]*CrossClusterTaskRequest) { + if v != nil && v.TasksByShard != nil { + return v.TasksByShard + } + + return +} + +// IsSetTasksByShard returns true if TasksByShard is not nil. +func (v *GetCrossClusterTasksResponse) IsSetTasksByShard() bool { + return v != nil && v.TasksByShard != nil +} + type GetSearchAttributesResponse struct { Keys map[string]IndexedValueType `json:"keys,omitempty"` } @@ -22807,12 +26270,6 @@ func _WorkflowExecutionContinuedAsNewEventAttributes_Read(w wire.Value) (*Workfl return &v, err } -func _StartChildWorkflowExecutionInitiatedEventAttributes_Read(w wire.Value) (*StartChildWorkflowExecutionInitiatedEventAttributes, error) { - var v StartChildWorkflowExecutionInitiatedEventAttributes - err := v.FromWire(w) - return &v, err -} - func _StartChildWorkflowExecutionFailedEventAttributes_Read(w wire.Value) (*StartChildWorkflowExecutionFailedEventAttributes, error) { var v StartChildWorkflowExecutionFailedEventAttributes err := v.FromWire(w) @@ -41945,6 +45402,445 @@ func (v *RespondActivityTaskFailedRequest) IsSetIdentity() bool { return v != nil && v.Identity != nil } +type RespondCrossClusterTasksCompletedRequest struct { + ShardID *int32 `json:"shardID,omitempty"` + TargetCluster *string `json:"targetCluster,omitempty"` + TaskResponses []*CrossClusterTaskResponse `json:"taskResponses,omitempty"` +} + +type _List_CrossClusterTaskResponse_ValueList []*CrossClusterTaskResponse + +func (v _List_CrossClusterTaskResponse_ValueList) ForEach(f func(wire.Value) error) error { + for i, x := range v { + if x == nil { + return fmt.Errorf("invalid [%v]: value is nil", i) + } + w, err := x.ToWire() + if err != nil { + return err + } + err = f(w) + if err != nil { + return err + } + } + return nil +} + +func (v _List_CrossClusterTaskResponse_ValueList) Size() int { + return len(v) +} + +func (_List_CrossClusterTaskResponse_ValueList) ValueType() wire.Type { + return wire.TStruct +} + +func (_List_CrossClusterTaskResponse_ValueList) Close() {} + +// ToWire translates a RespondCrossClusterTasksCompletedRequest 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 *RespondCrossClusterTasksCompletedRequest) ToWire() (wire.Value, error) { + var ( + fields [3]wire.Field + i int = 0 + w wire.Value + err error + ) + + if v.ShardID != nil { + w, err = wire.NewValueI32(*(v.ShardID)), error(nil) + if err != nil { + return w, err + } + fields[i] = wire.Field{ID: 10, Value: w} + i++ + } + if v.TargetCluster != nil { + w, err = wire.NewValueString(*(v.TargetCluster)), error(nil) + if err != nil { + return w, err + } + fields[i] = wire.Field{ID: 20, Value: w} + i++ + } + if v.TaskResponses != nil { + w, err = wire.NewValueList(_List_CrossClusterTaskResponse_ValueList(v.TaskResponses)), 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 +} + +func _CrossClusterTaskResponse_Read(w wire.Value) (*CrossClusterTaskResponse, error) { + var v CrossClusterTaskResponse + err := v.FromWire(w) + return &v, err +} + +func _List_CrossClusterTaskResponse_Read(l wire.ValueList) ([]*CrossClusterTaskResponse, error) { + if l.ValueType() != wire.TStruct { + return nil, nil + } + + o := make([]*CrossClusterTaskResponse, 0, l.Size()) + err := l.ForEach(func(x wire.Value) error { + i, err := _CrossClusterTaskResponse_Read(x) + if err != nil { + return err + } + o = append(o, i) + return nil + }) + l.Close() + return o, err +} + +// FromWire deserializes a RespondCrossClusterTasksCompletedRequest 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 RespondCrossClusterTasksCompletedRequest struct +// from the provided intermediate representation. +// +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } +// +// var v RespondCrossClusterTasksCompletedRequest +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil +func (v *RespondCrossClusterTasksCompletedRequest) FromWire(w wire.Value) error { + var err error + + for _, field := range w.GetStruct().Fields { + switch field.ID { + case 10: + if field.Value.Type() == wire.TI32 { + var x int32 + x, err = field.Value.GetI32(), error(nil) + v.ShardID = &x + if err != nil { + return err + } + + } + case 20: + if field.Value.Type() == wire.TBinary { + var x string + x, err = field.Value.GetString(), error(nil) + v.TargetCluster = &x + if err != nil { + return err + } + + } + case 30: + if field.Value.Type() == wire.TList { + v.TaskResponses, err = _List_CrossClusterTaskResponse_Read(field.Value.GetList()) + if err != nil { + return err + } + + } + } + } + + return nil +} + +// String returns a readable string representation of a RespondCrossClusterTasksCompletedRequest +// struct. +func (v *RespondCrossClusterTasksCompletedRequest) String() string { + if v == nil { + return "" + } + + var fields [3]string + i := 0 + if v.ShardID != nil { + fields[i] = fmt.Sprintf("ShardID: %v", *(v.ShardID)) + i++ + } + if v.TargetCluster != nil { + fields[i] = fmt.Sprintf("TargetCluster: %v", *(v.TargetCluster)) + i++ + } + if v.TaskResponses != nil { + fields[i] = fmt.Sprintf("TaskResponses: %v", v.TaskResponses) + i++ + } + + return fmt.Sprintf("RespondCrossClusterTasksCompletedRequest{%v}", strings.Join(fields[:i], ", ")) +} + +func _List_CrossClusterTaskResponse_Equals(lhs, rhs []*CrossClusterTaskResponse) bool { + if len(lhs) != len(rhs) { + return false + } + + for i, lv := range lhs { + rv := rhs[i] + if !lv.Equals(rv) { + return false + } + } + + return true +} + +// Equals returns true if all the fields of this RespondCrossClusterTasksCompletedRequest match the +// provided RespondCrossClusterTasksCompletedRequest. +// +// This function performs a deep comparison. +func (v *RespondCrossClusterTasksCompletedRequest) Equals(rhs *RespondCrossClusterTasksCompletedRequest) bool { + if v == nil { + return rhs == nil + } else if rhs == nil { + return false + } + if !_I32_EqualsPtr(v.ShardID, rhs.ShardID) { + return false + } + if !_String_EqualsPtr(v.TargetCluster, rhs.TargetCluster) { + return false + } + if !((v.TaskResponses == nil && rhs.TaskResponses == nil) || (v.TaskResponses != nil && rhs.TaskResponses != nil && _List_CrossClusterTaskResponse_Equals(v.TaskResponses, rhs.TaskResponses))) { + return false + } + + return true +} + +type _List_CrossClusterTaskResponse_Zapper []*CrossClusterTaskResponse + +// MarshalLogArray implements zapcore.ArrayMarshaler, enabling +// fast logging of _List_CrossClusterTaskResponse_Zapper. +func (l _List_CrossClusterTaskResponse_Zapper) MarshalLogArray(enc zapcore.ArrayEncoder) (err error) { + for _, v := range l { + err = multierr.Append(err, enc.AppendObject(v)) + } + return err +} + +// MarshalLogObject implements zapcore.ObjectMarshaler, enabling +// fast logging of RespondCrossClusterTasksCompletedRequest. +func (v *RespondCrossClusterTasksCompletedRequest) MarshalLogObject(enc zapcore.ObjectEncoder) (err error) { + if v == nil { + return nil + } + if v.ShardID != nil { + enc.AddInt32("shardID", *v.ShardID) + } + if v.TargetCluster != nil { + enc.AddString("targetCluster", *v.TargetCluster) + } + if v.TaskResponses != nil { + err = multierr.Append(err, enc.AddArray("taskResponses", (_List_CrossClusterTaskResponse_Zapper)(v.TaskResponses))) + } + return err +} + +// GetShardID returns the value of ShardID if it is set or its +// zero value if it is unset. +func (v *RespondCrossClusterTasksCompletedRequest) GetShardID() (o int32) { + if v != nil && v.ShardID != nil { + return *v.ShardID + } + + return +} + +// IsSetShardID returns true if ShardID is not nil. +func (v *RespondCrossClusterTasksCompletedRequest) IsSetShardID() bool { + return v != nil && v.ShardID != nil +} + +// GetTargetCluster returns the value of TargetCluster if it is set or its +// zero value if it is unset. +func (v *RespondCrossClusterTasksCompletedRequest) GetTargetCluster() (o string) { + if v != nil && v.TargetCluster != nil { + return *v.TargetCluster + } + + return +} + +// IsSetTargetCluster returns true if TargetCluster is not nil. +func (v *RespondCrossClusterTasksCompletedRequest) IsSetTargetCluster() bool { + return v != nil && v.TargetCluster != nil +} + +// GetTaskResponses returns the value of TaskResponses if it is set or its +// zero value if it is unset. +func (v *RespondCrossClusterTasksCompletedRequest) GetTaskResponses() (o []*CrossClusterTaskResponse) { + if v != nil && v.TaskResponses != nil { + return v.TaskResponses + } + + return +} + +// IsSetTaskResponses returns true if TaskResponses is not nil. +func (v *RespondCrossClusterTasksCompletedRequest) IsSetTaskResponses() bool { + return v != nil && v.TaskResponses != nil +} + +type RespondCrossClusterTasksCompletedResponse struct { + Tasks []*CrossClusterTaskRequest `json:"tasks,omitempty"` +} + +// ToWire translates a RespondCrossClusterTasksCompletedResponse 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 *RespondCrossClusterTasksCompletedResponse) ToWire() (wire.Value, error) { + var ( + fields [1]wire.Field + i int = 0 + w wire.Value + err error + ) + + if v.Tasks != nil { + w, err = wire.NewValueList(_List_CrossClusterTaskRequest_ValueList(v.Tasks)), error(nil) + if err != nil { + return w, err + } + fields[i] = wire.Field{ID: 10, Value: w} + i++ + } + + return wire.NewValueStruct(wire.Struct{Fields: fields[:i]}), nil +} + +// FromWire deserializes a RespondCrossClusterTasksCompletedResponse 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 RespondCrossClusterTasksCompletedResponse struct +// from the provided intermediate representation. +// +// x, err := binaryProtocol.Decode(reader, wire.TStruct) +// if err != nil { +// return nil, err +// } +// +// var v RespondCrossClusterTasksCompletedResponse +// if err := v.FromWire(x); err != nil { +// return nil, err +// } +// return &v, nil +func (v *RespondCrossClusterTasksCompletedResponse) FromWire(w wire.Value) error { + var err error + + for _, field := range w.GetStruct().Fields { + switch field.ID { + case 10: + if field.Value.Type() == wire.TList { + v.Tasks, err = _List_CrossClusterTaskRequest_Read(field.Value.GetList()) + if err != nil { + return err + } + + } + } + } + + return nil +} + +// String returns a readable string representation of a RespondCrossClusterTasksCompletedResponse +// struct. +func (v *RespondCrossClusterTasksCompletedResponse) String() string { + if v == nil { + return "" + } + + var fields [1]string + i := 0 + if v.Tasks != nil { + fields[i] = fmt.Sprintf("Tasks: %v", v.Tasks) + i++ + } + + return fmt.Sprintf("RespondCrossClusterTasksCompletedResponse{%v}", strings.Join(fields[:i], ", ")) +} + +// Equals returns true if all the fields of this RespondCrossClusterTasksCompletedResponse match the +// provided RespondCrossClusterTasksCompletedResponse. +// +// This function performs a deep comparison. +func (v *RespondCrossClusterTasksCompletedResponse) Equals(rhs *RespondCrossClusterTasksCompletedResponse) bool { + if v == nil { + return rhs == nil + } else if rhs == nil { + return false + } + if !((v.Tasks == nil && rhs.Tasks == nil) || (v.Tasks != nil && rhs.Tasks != nil && _List_CrossClusterTaskRequest_Equals(v.Tasks, rhs.Tasks))) { + return false + } + + return true +} + +// MarshalLogObject implements zapcore.ObjectMarshaler, enabling +// fast logging of RespondCrossClusterTasksCompletedResponse. +func (v *RespondCrossClusterTasksCompletedResponse) MarshalLogObject(enc zapcore.ObjectEncoder) (err error) { + if v == nil { + return nil + } + if v.Tasks != nil { + err = multierr.Append(err, enc.AddArray("tasks", (_List_CrossClusterTaskRequest_Zapper)(v.Tasks))) + } + return err +} + +// GetTasks returns the value of Tasks if it is set or its +// zero value if it is unset. +func (v *RespondCrossClusterTasksCompletedResponse) GetTasks() (o []*CrossClusterTaskRequest) { + if v != nil && v.Tasks != nil { + return v.Tasks + } + + return +} + +// IsSetTasks returns true if Tasks is not nil. +func (v *RespondCrossClusterTasksCompletedResponse) IsSetTasks() bool { + return v != nil && v.Tasks != nil +} + type RespondDecisionTaskCompletedRequest struct { TaskToken []byte `json:"taskToken,omitempty"` Decisions []*Decision `json:"decisions,omitempty"` @@ -62442,8 +66338,8 @@ var ThriftModule = &thriftreflect.ThriftModule{ Name: "shared", Package: "github.com/uber/cadence/.gen/go/shared", FilePath: "shared.thrift", - SHA1: "6b019835f7998d0d56e81eb10f15a199aaffc308", + SHA1: "54c995b34108f89870f44b14b0e56790cf390743", 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}\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\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}\n\nenum SignalExternalWorkflowExecutionFailedCause {\n UNKNOWN_EXTERNAL_WORKFLOW_EXECUTION,\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 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}\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}\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 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}\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}\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}\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}\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}\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}\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 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}\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}\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}\n\nstruct StartWorkflowExecutionResponse {\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}\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}\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}\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}\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}\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 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 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}\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}" +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}\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\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}\n\nenum SignalExternalWorkflowExecutionFailedCause {\n UNKNOWN_EXTERNAL_WORKFLOW_EXECUTION,\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 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}\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}\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 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}\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}\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}\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}\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}\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}\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 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}\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}\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}\n\nstruct StartWorkflowExecutionResponse {\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}\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}\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}\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}\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}\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 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 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}\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}\n\nenum CrossClusterTaskFailedCause {\n DOMAIN_NOT_ACTIVE\n DOMAIN_NOT_EXISTS\n WORKFLOW_ALREADY_RUNNING\n WORKFLOW_NOT_EXISTS\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}\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 CrossClusterTaskRequest {\n 10: optional CrossClusterTaskInfo taskInfo\n 20: optional CrossClusterStartChildExecutionRequestAttributes startChildExecutionAttributes\n 30: optional CrossClusterCancelExecutionRequestAttributes cancelExecutionAttributes\n 40: optional CrossClusterSignalExecutionRequestAttributes signalExecutionAttributes\n}\n\nstruct CrossClusterTaskResponse {\n 10: optional i64 (js.type = \"Long\") taskID\n 20: optional CrossClusterTaskType taskType\n 30: optional CrossClusterTaskFailedCause failedCause\n 40: optional CrossClusterStartChildExecutionResponseAttributes startChildExecutionAttributes\n 50: optional CrossClusterCancelExecutionResponseAttributes cancelExecutionAttributes\n 60: optional CrossClusterSignalExecutionResponseAttributes signalExecutionAttributes\n}\n\nstruct GetCrossClusterTasksRequest {\n 10: optional list shardIDs\n 20: optional string targetCluster\n}\n\nstruct GetCrossClusterTasksResponse {\n 10: optional map> tasksByShard\n}\n\nstruct RespondCrossClusterTasksCompletedRequest {\n 10: optional i32 shardID\n 20: optional string targetCluster\n 30: optional list taskResponses\n}\n\nstruct RespondCrossClusterTasksCompletedResponse {\n 10: optional list tasks\n}\n" diff --git a/.gen/proto/admin/v1/service.pb.go b/.gen/proto/admin/v1/service.pb.go index fe68caaf4c2..5a50ed7212d 100644 --- a/.gen/proto/admin/v1/service.pb.go +++ b/.gen/proto/admin/v1/service.pb.go @@ -2250,6 +2250,108 @@ func (m *ResendReplicationTasksResponse) XXX_DiscardUnknown() { var xxx_messageInfo_ResendReplicationTasksResponse proto.InternalMessageInfo +type GetCrossClusterTasksRequest struct { + ShardIds []int32 `protobuf:"varint,1,rep,packed,name=shard_ids,json=shardIds,proto3" json:"shard_ids,omitempty"` + TargetCluster string `protobuf:"bytes,2,opt,name=target_cluster,json=targetCluster,proto3" json:"target_cluster,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *GetCrossClusterTasksRequest) Reset() { *m = GetCrossClusterTasksRequest{} } +func (m *GetCrossClusterTasksRequest) String() string { return proto.CompactTextString(m) } +func (*GetCrossClusterTasksRequest) ProtoMessage() {} +func (*GetCrossClusterTasksRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_c6fc96d64a8b67fd, []int{38} +} +func (m *GetCrossClusterTasksRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *GetCrossClusterTasksRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_GetCrossClusterTasksRequest.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *GetCrossClusterTasksRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_GetCrossClusterTasksRequest.Merge(m, src) +} +func (m *GetCrossClusterTasksRequest) XXX_Size() int { + return m.Size() +} +func (m *GetCrossClusterTasksRequest) XXX_DiscardUnknown() { + xxx_messageInfo_GetCrossClusterTasksRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_GetCrossClusterTasksRequest proto.InternalMessageInfo + +func (m *GetCrossClusterTasksRequest) GetShardIds() []int32 { + if m != nil { + return m.ShardIds + } + return nil +} + +func (m *GetCrossClusterTasksRequest) GetTargetCluster() string { + if m != nil { + return m.TargetCluster + } + return "" +} + +type GetCrossClusterTasksResponse struct { + TasksByShard map[int32]*v11.CrossClusterTaskRequests `protobuf:"bytes,1,rep,name=tasks_by_shard,json=tasksByShard,proto3" json:"tasks_by_shard,omitempty" protobuf_key:"varint,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *GetCrossClusterTasksResponse) Reset() { *m = GetCrossClusterTasksResponse{} } +func (m *GetCrossClusterTasksResponse) String() string { return proto.CompactTextString(m) } +func (*GetCrossClusterTasksResponse) ProtoMessage() {} +func (*GetCrossClusterTasksResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_c6fc96d64a8b67fd, []int{39} +} +func (m *GetCrossClusterTasksResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *GetCrossClusterTasksResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_GetCrossClusterTasksResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *GetCrossClusterTasksResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_GetCrossClusterTasksResponse.Merge(m, src) +} +func (m *GetCrossClusterTasksResponse) XXX_Size() int { + return m.Size() +} +func (m *GetCrossClusterTasksResponse) XXX_DiscardUnknown() { + xxx_messageInfo_GetCrossClusterTasksResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_GetCrossClusterTasksResponse proto.InternalMessageInfo + +func (m *GetCrossClusterTasksResponse) GetTasksByShard() map[int32]*v11.CrossClusterTaskRequests { + if m != nil { + return m.TasksByShard + } + return nil +} + func init() { proto.RegisterType((*DescribeWorkflowExecutionRequest)(nil), "uber.cadence.admin.v1.DescribeWorkflowExecutionRequest") proto.RegisterType((*DescribeWorkflowExecutionResponse)(nil), "uber.cadence.admin.v1.DescribeWorkflowExecutionResponse") @@ -2293,6 +2395,9 @@ func init() { proto.RegisterType((*RefreshWorkflowTasksResponse)(nil), "uber.cadence.admin.v1.RefreshWorkflowTasksResponse") proto.RegisterType((*ResendReplicationTasksRequest)(nil), "uber.cadence.admin.v1.ResendReplicationTasksRequest") proto.RegisterType((*ResendReplicationTasksResponse)(nil), "uber.cadence.admin.v1.ResendReplicationTasksResponse") + proto.RegisterType((*GetCrossClusterTasksRequest)(nil), "uber.cadence.admin.v1.GetCrossClusterTasksRequest") + proto.RegisterType((*GetCrossClusterTasksResponse)(nil), "uber.cadence.admin.v1.GetCrossClusterTasksResponse") + proto.RegisterMapType((map[int32]*v11.CrossClusterTaskRequests)(nil), "uber.cadence.admin.v1.GetCrossClusterTasksResponse.TasksByShardEntry") } func init() { @@ -2300,144 +2405,151 @@ func init() { } var fileDescriptor_c6fc96d64a8b67fd = []byte{ - // 2188 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xdc, 0x5a, 0x4d, 0x6c, 0x24, 0x47, - 0x15, 0x4e, 0xcf, 0xd8, 0x5e, 0xfb, 0xcd, 0x7a, 0xec, 0xad, 0xf8, 0x67, 0x3c, 0xde, 0x75, 0xbc, - 0xbd, 0xd9, 0xac, 0x21, 0xa1, 0x8d, 0xc7, 0xc9, 0x92, 0x64, 0x15, 0xc0, 0x7f, 0xd8, 0x13, 0x76, - 0x59, 0x6f, 0xdb, 0x6c, 0x10, 0x42, 0x6a, 0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- 0x30, 0x9f, 0xda, 0xbd, 0xec, 0x01, 0x7e, 0x93, 0x83, 0xa5, 0x2d, 0xc7, 0x39, 0xc2, 0x76, 0x58, - 0x6f, 0x6c, 0x51, 0xd1, 0x4b, 0x5f, 0x36, 0x02, 0x01, 0xcc, 0x12, 0xbe, 0x62, 0xd9, 0xd1, 0x92, - 0x84, 0xed, 0x9e, 0x22, 0x5d, 0x28, 0x75, 0x19, 0x29, 0xb2, 0xc8, 0x15, 0x33, 0x24, 0x49, 0x45, - 0x77, 0xa1, 0x48, 0x70, 0xbd, 0x1d, 0xf2, 0xae, 0x8c, 0x17, 0x02, 0x91, 0xe6, 0xa6, 0x23, 0x2a, - 0xcf, 0x89, 0x65, 0x17, 0xe6, 0xb2, 0xf4, 0xc5, 0xd3, 0xca, 0x94, 0x48, 0x2b, 0x0f, 0xe2, 0x69, - 0xa5, 0x58, 0xb9, 0x9b, 0x19, 0xaf, 0xaa, 0xe7, 0xe0, 0x67, 0xd8, 0xe1, 0xb0, 0xe4, 0xed, 0x48, - 0x2c, 0xa1, 0xdc, 0x84, 0x72, 0x96, 0x53, 0x32, 0x7e, 0x25, 0x58, 0x88, 0xba, 0x95, 0x1d, 0x81, - 0x4f, 0xe9, 0xaf, 0xfe, 0xc7, 0x3c, 0x2c, 0xf6, 0x2c, 0x49, 0x58, 0x36, 0x60, 0x89, 0xb4, 0x83, - 0xc0, 0x0f, 0x29, 0x76, 0xac, 0x7a, 0xd3, 0xc5, 0x1e, 0xb5, 0x64, 0x45, 0x89, 0x70, 0xfa, 0x56, - 0xe6, 0x46, 0x8f, 0x22, 0xa9, 0x1d, 0x2e, 0x24, 0xab, 0x12, 0x31, 0x17, 0x49, 0xf6, 0x02, 0xab, - 0x74, 0x2d, 0xcc, 0xde, 0x20, 0xa4, 0xe1, 0x06, 0x3c, 0xe1, 0x65, 0x63, 0xb0, 0x7b, 0x0f, 0x1e, - 0x5d, 0xb2, 0xf3, 0x54, 0x57, 0x6c, 0x25, 0xbe,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, 0xa8, 0xb4, 0xa8, 0x7a, - 0x16, 0x11, 0x98, 0x4d, 0xf7, 0xc5, 0x48, 0xa5, 0x43, 0xf1, 0x50, 0x28, 0xaf, 0x0f, 0xcd, 0xdf, - 0x35, 0x9a, 0x6e, 0x21, 0x95, 0x46, 0x15, 0x8d, 0xb9, 0xd2, 0xa8, 0xb2, 0x37, 0xfd, 0x21, 0xcc, - 0x65, 0x35, 0x79, 0xa8, 0xa2, 0x8c, 0x98, 0xb2, 0x3f, 0x2d, 0x6f, 0x8e, 0x24, 0x13, 0x4b, 0x74, - 0xd9, 0x3d, 0x8f, 0x32, 0xd1, 0xf5, 0x6d, 0x3a, 0x95, 0x89, 0xae, 0x7f, 0x63, 0xb5, 0xbd, 0xf5, - 0x97, 0xe7, 0x2b, 0xda, 0xa7, 0xcf, 0x57, 0xb4, 0x7f, 0x3c, 0x5f, 0xd1, 0xbe, 0xbb, 0x79, 0xea, - 0xd2, 0x46, 0xbb, 0x66, 0xd4, 0xfd, 0xd6, 0x7a, 0xe2, 0x7f, 0x3e, 0x8c, 0x53, 0xec, 0x89, 0x7f, - 0x6b, 0xb9, 0xfc, 0x9f, 0x99, 0x07, 0xfc, 0x47, 0x67, 0xa3, 0x36, 0xc1, 0xe9, 0x9b, 0xff, 0x09, - 0x00, 0x00, 0xff, 0xff, 0x54, 0x47, 0x99, 0x06, 0x5b, 0x23, 0x00, 0x00, + // 2299 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xdc, 0x5a, 0x4d, 0x6c, 0x1c, 0x49, + 0xf5, 0x4f, 0x8f, 0x3f, 0x62, 0xbf, 0xb1, 0xc7, 0x4e, 0xc5, 0xf1, 0x47, 0x3b, 0xf1, 0x3a, 0x9d, + 0xcd, 0xc6, 0xff, 0xff, 0x2e, 0xe3, 0xf5, 0x64, 0x37, 0xec, 0x6e, 0xb4, 0x80, 0x3f, 0xb2, 0xf6, + 0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, 0xda, 0x67, 0x2f, 0x36, 0xb4, 0xbf, 0xbd, 0xd8, 0xd0, 0xbe, 0x7d, 0xbb, 0xe6, 0xd2, + 0x7a, 0xab, 0x52, 0xac, 0xfa, 0xcd, 0xed, 0xc4, 0x3f, 0xf6, 0x14, 0x6b, 0xd8, 0x13, 0xff, 0xbb, + 0xd4, 0xfd, 0xc7, 0xa8, 0xbb, 0xfc, 0x8f, 0xf6, 0x4e, 0x65, 0x9a, 0xd3, 0x6f, 0xff, 0x3b, 0x00, + 0x00, 0xff, 0xff, 0xd0, 0x04, 0x11, 0xa0, 0x40, 0x25, 0x00, 0x00, } func (m *DescribeWorkflowExecutionRequest) Marshal() (dAtA []byte, err error) { @@ -4260,6 +4372,110 @@ func (m *ResendReplicationTasksResponse) MarshalToSizedBuffer(dAtA []byte) (int, return len(dAtA) - i, nil } +func (m *GetCrossClusterTasksRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *GetCrossClusterTasksRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *GetCrossClusterTasksRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.TargetCluster) > 0 { + i -= len(m.TargetCluster) + copy(dAtA[i:], m.TargetCluster) + i = encodeVarintService(dAtA, i, uint64(len(m.TargetCluster))) + i-- + dAtA[i] = 0x12 + } + if len(m.ShardIds) > 0 { + dAtA28 := make([]byte, len(m.ShardIds)*10) + var j27 int + for _, num1 := range m.ShardIds { + num := uint64(num1) + for num >= 1<<7 { + dAtA28[j27] = uint8(uint64(num)&0x7f | 0x80) + num >>= 7 + j27++ + } + dAtA28[j27] = uint8(num) + j27++ + } + i -= j27 + copy(dAtA[i:], dAtA28[:j27]) + i = encodeVarintService(dAtA, i, uint64(j27)) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *GetCrossClusterTasksResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *GetCrossClusterTasksResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *GetCrossClusterTasksResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.TasksByShard) > 0 { + for k := range m.TasksByShard { + v := m.TasksByShard[k] + baseI := i + if v != nil { + { + size, err := v.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintService(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + i = encodeVarintService(dAtA, i, uint64(k)) + i-- + dAtA[i] = 0x8 + i = encodeVarintService(dAtA, i, uint64(baseI-i)) + i-- + dAtA[i] = 0xa + } + } + return len(dAtA) - i, nil +} + func encodeVarintService(dAtA []byte, offset int, v uint64) int { offset -= sovService(v) base := offset @@ -5105,6 +5321,54 @@ func (m *ResendReplicationTasksResponse) Size() (n int) { return n } +func (m *GetCrossClusterTasksRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.ShardIds) > 0 { + l = 0 + for _, e := range m.ShardIds { + l += sovService(uint64(e)) + } + n += 1 + sovService(uint64(l)) + l + } + l = len(m.TargetCluster) + if l > 0 { + n += 1 + l + sovService(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *GetCrossClusterTasksResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.TasksByShard) > 0 { + for k, v := range m.TasksByShard { + _ = k + _ = v + l = 0 + if v != nil { + l = v.Size() + l += 1 + sovService(uint64(l)) + } + mapEntrySize := 1 + sovService(uint64(k)) + l + n += mapEntrySize + 1 + sovService(uint64(mapEntrySize)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + func sovService(x uint64) (n int) { return (math_bits.Len64(x|1) + 6) / 7 } @@ -10037,6 +10301,337 @@ func (m *ResendReplicationTasksResponse) Unmarshal(dAtA []byte) error { } return nil } +func (m *GetCrossClusterTasksRequest) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowService + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: GetCrossClusterTasksRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: GetCrossClusterTasksRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType == 0 { + var v int32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowService + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.ShardIds = append(m.ShardIds, v) + } else if wireType == 2 { + var packedLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowService + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + packedLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if packedLen < 0 { + return ErrInvalidLengthService + } + postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthService + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + var elementCount int + var count int + for _, integer := range dAtA[iNdEx:postIndex] { + if integer < 128 { + count++ + } + } + elementCount = count + if elementCount != 0 && len(m.ShardIds) == 0 { + m.ShardIds = make([]int32, 0, elementCount) + } + for iNdEx < postIndex { + var v int32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowService + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.ShardIds = append(m.ShardIds, v) + } + } else { + return fmt.Errorf("proto: wrong wireType = %d for field ShardIds", wireType) + } + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TargetCluster", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowService + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthService + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthService + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.TargetCluster = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipService(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthService + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthService + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *GetCrossClusterTasksResponse) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowService + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: GetCrossClusterTasksResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: GetCrossClusterTasksResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TasksByShard", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowService + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthService + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthService + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.TasksByShard == nil { + m.TasksByShard = make(map[int32]*v11.CrossClusterTaskRequests) + } + var mapkey int32 + var mapvalue *v11.CrossClusterTaskRequests + for iNdEx < postIndex { + entryPreIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowService + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + if fieldNum == 1 { + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowService + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + mapkey |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + } else if fieldNum == 2 { + var mapmsglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowService + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + mapmsglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if mapmsglen < 0 { + return ErrInvalidLengthService + } + postmsgIndex := iNdEx + mapmsglen + if postmsgIndex < 0 { + return ErrInvalidLengthService + } + if postmsgIndex > l { + return io.ErrUnexpectedEOF + } + mapvalue = &v11.CrossClusterTaskRequests{} + if err := mapvalue.Unmarshal(dAtA[iNdEx:postmsgIndex]); err != nil { + return err + } + iNdEx = postmsgIndex + } else { + iNdEx = entryPreIndex + skippy, err := skipService(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthService + } + if (iNdEx + skippy) > postIndex { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + m.TasksByShard[mapkey] = mapvalue + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipService(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthService + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthService + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} func skipService(dAtA []byte) (n int, err error) { l := len(dAtA) iNdEx := 0 diff --git a/.gen/proto/admin/v1/service.pb.yarpc.go b/.gen/proto/admin/v1/service.pb.yarpc.go index ddb99f9027d..0eb541ed0cc 100644 --- a/.gen/proto/admin/v1/service.pb.yarpc.go +++ b/.gen/proto/admin/v1/service.pb.yarpc.go @@ -63,6 +63,7 @@ type AdminAPIYARPCClient interface { MergeDLQMessages(context.Context, *MergeDLQMessagesRequest, ...yarpc.CallOption) (*MergeDLQMessagesResponse, error) RefreshWorkflowTasks(context.Context, *RefreshWorkflowTasksRequest, ...yarpc.CallOption) (*RefreshWorkflowTasksResponse, error) ResendReplicationTasks(context.Context, *ResendReplicationTasksRequest, ...yarpc.CallOption) (*ResendReplicationTasksResponse, error) + GetCrossClusterTasks(context.Context, *GetCrossClusterTasksRequest, ...yarpc.CallOption) (*GetCrossClusterTasksResponse, error) } func newAdminAPIYARPCClient(clientConfig transport.ClientConfig, anyResolver jsonpb.AnyResolver, options ...protobuf.ClientOption) AdminAPIYARPCClient { @@ -102,6 +103,7 @@ type AdminAPIYARPCServer interface { MergeDLQMessages(context.Context, *MergeDLQMessagesRequest) (*MergeDLQMessagesResponse, error) RefreshWorkflowTasks(context.Context, *RefreshWorkflowTasksRequest) (*RefreshWorkflowTasksResponse, error) ResendReplicationTasks(context.Context, *ResendReplicationTasksRequest) (*ResendReplicationTasksResponse, error) + GetCrossClusterTasks(context.Context, *GetCrossClusterTasksRequest) (*GetCrossClusterTasksResponse, error) } type buildAdminAPIYARPCProceduresParams struct { @@ -305,6 +307,16 @@ func buildAdminAPIYARPCProcedures(params buildAdminAPIYARPCProceduresParams) []t }, ), }, + { + MethodName: "GetCrossClusterTasks", + Handler: protobuf.NewUnaryHandler( + protobuf.UnaryHandlerParams{ + Handle: handler.GetCrossClusterTasks, + NewRequest: newAdminAPIServiceGetCrossClusterTasksYARPCRequest, + AnyResolver: params.AnyResolver, + }, + ), + }, }, OnewayHandlerParams: []protobuf.BuildProceduresOnewayHandlerParams{}, StreamHandlerParams: []protobuf.BuildProceduresStreamHandlerParams{}, @@ -645,6 +657,18 @@ func (c *_AdminAPIYARPCCaller) ResendReplicationTasks(ctx context.Context, reque return response, err } +func (c *_AdminAPIYARPCCaller) GetCrossClusterTasks(ctx context.Context, request *GetCrossClusterTasksRequest, options ...yarpc.CallOption) (*GetCrossClusterTasksResponse, error) { + responseMessage, err := c.streamClient.Call(ctx, "GetCrossClusterTasks", request, newAdminAPIServiceGetCrossClusterTasksYARPCResponse, options...) + if responseMessage == nil { + return nil, err + } + response, ok := responseMessage.(*GetCrossClusterTasksResponse) + if !ok { + return nil, protobuf.CastError(emptyAdminAPIServiceGetCrossClusterTasksYARPCResponse, responseMessage) + } + return response, err +} + type _AdminAPIYARPCHandler struct { server AdminAPIYARPCServer } @@ -953,6 +977,22 @@ func (h *_AdminAPIYARPCHandler) ResendReplicationTasks(ctx context.Context, requ return response, err } +func (h *_AdminAPIYARPCHandler) GetCrossClusterTasks(ctx context.Context, requestMessage proto.Message) (proto.Message, error) { + var request *GetCrossClusterTasksRequest + var ok bool + if requestMessage != nil { + request, ok = requestMessage.(*GetCrossClusterTasksRequest) + if !ok { + return nil, protobuf.CastError(emptyAdminAPIServiceGetCrossClusterTasksYARPCRequest, requestMessage) + } + } + response, err := h.server.GetCrossClusterTasks(ctx, request) + if response == nil { + return nil, err + } + return response, err +} + func newAdminAPIServiceDescribeWorkflowExecutionYARPCRequest() proto.Message { return &DescribeWorkflowExecutionRequest{} } @@ -1105,6 +1145,14 @@ func newAdminAPIServiceResendReplicationTasksYARPCResponse() proto.Message { return &ResendReplicationTasksResponse{} } +func newAdminAPIServiceGetCrossClusterTasksYARPCRequest() proto.Message { + return &GetCrossClusterTasksRequest{} +} + +func newAdminAPIServiceGetCrossClusterTasksYARPCResponse() proto.Message { + return &GetCrossClusterTasksResponse{} +} + var ( emptyAdminAPIServiceDescribeWorkflowExecutionYARPCRequest = &DescribeWorkflowExecutionRequest{} emptyAdminAPIServiceDescribeWorkflowExecutionYARPCResponse = &DescribeWorkflowExecutionResponse{} @@ -1144,147 +1192,156 @@ var ( emptyAdminAPIServiceRefreshWorkflowTasksYARPCResponse = &RefreshWorkflowTasksResponse{} emptyAdminAPIServiceResendReplicationTasksYARPCRequest = &ResendReplicationTasksRequest{} emptyAdminAPIServiceResendReplicationTasksYARPCResponse = &ResendReplicationTasksResponse{} + emptyAdminAPIServiceGetCrossClusterTasksYARPCRequest = &GetCrossClusterTasksRequest{} + emptyAdminAPIServiceGetCrossClusterTasksYARPCResponse = &GetCrossClusterTasksResponse{} ) var yarpcFileDescriptorClosurec6fc96d64a8b67fd = [][]byte{ // uber/cadence/admin/v1/service.proto []byte{ 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xdc, 0x5a, 0xcd, 0x73, 0x1b, 0x49, - 0x15, 0xcf, 0x48, 0xb6, 0x63, 0x3f, 0xd9, 0xb2, 0xd3, 0xeb, 0x0f, 0x59, 0x4e, 0xb2, 0xce, 0x64, - 0xb3, 0x31, 0xec, 0x32, 0xc6, 0xf2, 0x26, 0xec, 0x6e, 0x6a, 0x01, 0x7f, 0x61, 0x6b, 0x49, 0x88, - 0x33, 0x36, 0x59, 0x8a, 0xa2, 0x6a, 0x6a, 0xa4, 0x69, 0x5b, 0x83, 0xa5, 0x99, 0xd9, 0xe9, 0x96, - 0x1c, 0x6f, 0x51, 0x05, 0x45, 0xc1, 0x8d, 0xa2, 0xa0, 0x38, 0x70, 0xe4, 0xc0, 0x0d, 0x0e, 0x14, - 0x77, 0xce, 0x5c, 0xb8, 0xc0, 0x85, 0x3f, 0x61, 0x2f, 0x1c, 0xb9, 0x70, 0xa4, 0xfa, 0x63, 0xac, - 0x99, 0xd1, 0xb4, 0x3e, 0x4c, 0xa8, 0x6c, 0xe5, 0xa6, 0x79, 0xfd, 0x3e, 0xfa, 0xbd, 0xfe, 0xf5, - 0x7b, 0xaf, 0x9f, 0x0d, 0x77, 0xdb, 0x35, 0x1c, 0xae, 0xd7, 0x6d, 0x07, 0x7b, 0x75, 0xbc, 0x6e, - 0x3b, 0x2d, 0xd7, 0x5b, 0xef, 0x6c, 0xac, 0x13, 0x1c, 0x76, 0xdc, 0x3a, 0x36, 0x82, 0xd0, 0xa7, - 0x3e, 0x5a, 0x60, 0x4c, 0x86, 0x64, 0x32, 0x38, 0x93, 0xd1, 0xd9, 0x28, 0xbf, 0x79, 0xea, 0xfb, - 0xa7, 0x4d, 0xbc, 0xce, 0x99, 0x6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51, 0x9c, 0xbe, 0x93, + 0xe9, 0xe8, 0x71, 0x24, 0xb5, 0xcf, 0x85, 0x64, 0x55, 0x22, 0xe6, 0x1a, 0xc9, 0x5e, 0x60, 0x95, + 0xae, 0x85, 0xd9, 0x1b, 0x84, 0x34, 0xdc, 0x80, 0x27, 0xbc, 0xec, 0x18, 0xec, 0xdf, 0x83, 0x47, + 0x3d, 0x76, 0x9e, 0xea, 0x0a, 0xad, 0xc4, 0x37, 0xf2, 0x60, 0x39, 0x60, 0xca, 0x09, 0x65, 0x72, + 0x42, 0xe3, 0x14, 0x0f, 0x89, 0xfd, 0x11, 0xef, 0xb5, 0x14, 0x08, 0xa5, 0x27, 0x7d, 0x35, 0x4c, + 0xb3, 0x0c, 0x88, 0x20, 0x49, 0xd5, 0xcf, 0x60, 0x25, 0x8b, 0x31, 0xe3, 0xa4, 0x3f, 0x4a, 0x16, + 0x10, 0x65, 0x62, 0x4d, 0xa9, 0x8b, 0x9f, 0xf5, 0xef, 0x72, 0xb0, 0x6a, 0x62, 0xdb, 0x39, 0x78, + 0xf8, 0x34, 0x9d, 0x44, 0xef, 0xc0, 0x34, 0x6f, 0x68, 0x35, 0x1e, 0x46, 0x6f, 0x28, 0x5f, 0x65, + 0x0f, 0x9f, 0xf2, 0x00, 0xe2, 0xcc, 0x89, 0x46, 0x3a, 0x97, 0x6c, 0xa4, 0x59, 0xa0, 0xfb, 0xed, + 0xb0, 0x86, 0x2d, 0x99, 0xd7, 0x64, 0x9a, 0x5b, 0x14, 0x54, 0x09, 0x16, 0x3a, 0x81, 0xa2, 0xeb, + 0x31, 0x0e, 0xb7, 0x83, 0x2d, 0xd6, 0xde, 0xc5, 0x52, 0xec, 0xf4, 0xe8, 0x14, 0x7b, 0xa5, 0x27, + 0xfc, 0xc0, 0x8b, 0x65, 0xd8, 0x57, 0xd2, 0xe1, 0xfd, 0x21, 0x07, 0x6b, 0x03, 0x60, 0xc9, 0x00, + 0x3f, 0x17, 0x5a, 0x99, 0x55, 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, 0x99, 0x48, 0x26, 0x96, 0xe8, 0xb2, 0xfb, 0x4a, 0x65, + 0xa2, 0x1b, 0xda, 0xd8, 0x2b, 0x13, 0xdd, 0xf0, 0xe6, 0x95, 0x01, 0x91, 0xd5, 0x0b, 0x2a, 0x81, + 0x18, 0xd2, 0xe9, 0x2a, 0x81, 0x18, 0xd6, 0x6c, 0xee, 0xdd, 0xfd, 0xee, 0x9d, 0xba, 0x4b, 0x1b, + 0xed, 0x6a, 0xa9, 0xe6, 0xb7, 0xb6, 0x13, 0xff, 0xcc, 0x53, 0xaa, 0x63, 0x4f, 0xfc, 0xbf, 0x52, + 0xef, 0x9f, 0xa1, 0xee, 0xf3, 0x3f, 0x3a, 0x3b, 0xd5, 0x59, 0x4e, 0xbf, 0xf3, 0x9f, 0x00, 0x00, + 0x00, 0xff, 0xff, 0x89, 0x98, 0x85, 0x14, 0x34, 0x25, 0x00, 0x00, }, // google/protobuf/timestamp.proto []byte{ @@ -1907,18 +1964,78 @@ var yarpcFileDescriptorClosurec6fc96d64a8b67fd = [][]byte{ }, // uber/cadence/shared/v1/queue.proto []byte{ - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x52, 0x2a, 0x4d, 0x4a, 0x2d, - 0xd2, 0x4f, 0x4e, 0x4c, 0x49, 0xcd, 0x4b, 0x4e, 0xd5, 0x2f, 0xce, 0x48, 0x2c, 0x4a, 0x4d, 0xd1, - 0x2f, 0x33, 0xd4, 0x2f, 0x2c, 0x4d, 0x2d, 0x4d, 0xd5, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x12, - 0x03, 0xa9, 0xd1, 0x83, 0xaa, 0xd1, 0x83, 0xa8, 0xd1, 0x2b, 0x33, 0xd4, 0xca, 0xe4, 0xe2, 0x08, - 0x49, 0x2c, 0xce, 0x0e, 0xa9, 0x2c, 0x48, 0x15, 0x12, 0xe5, 0x12, 0x0c, 0x71, 0x0c, 0xf6, 0x8e, - 0x0f, 0x89, 0x0c, 0x70, 0x8d, 0xf7, 0xf4, 0x0b, 0x73, 0xf4, 0xf1, 0x74, 0x11, 0x60, 0x10, 0x12, - 0xe3, 0x12, 0x42, 0x08, 0x87, 0x04, 0x39, 0xfa, 0x05, 0xbb, 0xb9, 0x06, 0x09, 0x30, 0x0a, 0x09, - 0x73, 0xf1, 0x23, 0x89, 0x7b, 0xfa, 0xba, 0x06, 0x09, 0x30, 0x09, 0x49, 0x72, 0x89, 0x22, 0x04, - 0x83, 0x5c, 0x03, 0x7c, 0x3c, 0x9d, 0x1d, 0x43, 0x3c, 0xfd, 0xfd, 0x04, 0x98, 0x9d, 0xcc, 0xa3, - 0x4c, 0xd3, 0x33, 0x4b, 0x32, 0x4a, 0x93, 0xf4, 0x92, 0xf3, 0x73, 0xf5, 0x51, 0xdc, 0xac, 0x97, - 0x9e, 0x9a, 0xa7, 0x0f, 0x76, 0x28, 0xc2, 0xf9, 0xd6, 0x10, 0x56, 0x99, 0x61, 0x12, 0x1b, 0x58, - 0xc6, 0x18, 0x10, 0x00, 0x00, 0xff, 0xff, 0xe6, 0x91, 0x63, 0x5d, 0xe8, 0x00, 0x00, 0x00, + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xec, 0x57, 0xcd, 0x6e, 0xdb, 0x46, + 0x10, 0x0e, 0x25, 0xdb, 0xb1, 0x46, 0x6e, 0xaa, 0x6c, 0x9a, 0x84, 0x71, 0x6a, 0x58, 0x55, 0x81, + 0x56, 0x70, 0x1d, 0xaa, 0xb2, 0x11, 0xa4, 0x40, 0x0b, 0x14, 0x0c, 0x45, 0xc7, 0x6c, 0x14, 0xc9, + 0x58, 0xd2, 0x76, 0xd2, 0x0b, 0x41, 0x89, 0x2b, 0x79, 0x61, 0x89, 0x54, 0xc8, 0xa5, 0x5c, 0xdd, + 0x9b, 0xa2, 0xc7, 0x16, 0x7d, 0x90, 0x9e, 0x7a, 0xe8, 0x2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a, 0x68, 0x1f, 0x8a, 0xf3, 0x5c, 0x14, 0xb9, 0xa6, 0xa8, + 0xd5, 0x04, 0x3a, 0xb5, 0x08, 0xad, 0x6b, 0xcf, 0x6a, 0x72, 0x12, 0x9d, 0xde, 0xfb, 0x3d, 0x05, + 0x0f, 0x17, 0x1c, 0x44, 0xf4, 0x05, 0x7c, 0x3e, 0x23, 0xda, 0x91, 0xac, 0x55, 0xd5, 0x8a, 0xa9, + 0xc8, 0xa7, 0x7a, 0xb2, 0xb6, 0xc7, 0x50, 0x5e, 0x06, 0xae, 0xd4, 0x5f, 0xc8, 0x5a, 0xcd, 0xac, + 0xd5, 0x0d, 0x53, 0x56, 0x0c, 0xed, 0x4c, 0xcd, 0x09, 0x6f, 0xe9, 0xa6, 0xbe, 0xd4, 0x74, 0x43, + 0xcf, 0xa5, 0xd0, 0x37, 0xf0, 0xd5, 0x32, 0xb7, 0xf3, 0x3a, 0x7e, 0x7e, 0x54, 0xad, 0x9f, 0x9b, + 0x72, 0x15, 0xab, 0x72, 0xe5, 0x95, 0x89, 0x4f, 0x6b, 0x35, 0xad, 0xf6, 0x2c, 0x97, 0x46, 0x4f, + 0xe0, 0x70, 0x65, 0xef, 0xc4, 0xb6, 0x6b, 0x4f, 0x9f, 0x7c, 0xff, 0xb8, 0x4d, 0xd9, 0x45, 0xd0, + 0x90, 0x9a, 0x6e, 0xb7, 0x34, 0xf6, 0x15, 0x28, 0xb5, 0x89, 0x13, 0x7d, 0x53, 0x8e, 0xbe, 0x47, + 0xbf, 0x8e, 0x7e, 0xf5, 0xcb, 0x8d, 0x0d, 0xbe, 0x72, 0xf8, 0x6f, 0x00, 0x00, 0x00, 0xff, 0xff, + 0x06, 0x68, 0xab, 0x76, 0xb9, 0x0e, 0x00, 0x00, }, // uber/cadence/shared/v1/replication.proto []byte{ diff --git a/.gen/proto/history/v1/service.pb.go b/.gen/proto/history/v1/service.pb.go index 0679907510b..33749c429ed 100644 --- a/.gen/proto/history/v1/service.pb.go +++ b/.gen/proto/history/v1/service.pb.go @@ -4817,6 +4817,224 @@ func (m *NotifyFailoverMarkersResponse) XXX_DiscardUnknown() { var xxx_messageInfo_NotifyFailoverMarkersResponse proto.InternalMessageInfo +type GetCrossClusterTasksRequest struct { + ShardIds []int32 `protobuf:"varint,1,rep,packed,name=shard_ids,json=shardIds,proto3" json:"shard_ids,omitempty"` + TargetCluster string `protobuf:"bytes,2,opt,name=target_cluster,json=targetCluster,proto3" json:"target_cluster,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *GetCrossClusterTasksRequest) Reset() { *m = GetCrossClusterTasksRequest{} } +func (m *GetCrossClusterTasksRequest) String() string { return proto.CompactTextString(m) } +func (*GetCrossClusterTasksRequest) ProtoMessage() {} +func (*GetCrossClusterTasksRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_fee8ff76963a38ed, []int{78} +} +func (m *GetCrossClusterTasksRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *GetCrossClusterTasksRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_GetCrossClusterTasksRequest.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *GetCrossClusterTasksRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_GetCrossClusterTasksRequest.Merge(m, src) +} +func (m *GetCrossClusterTasksRequest) XXX_Size() int { + return m.Size() +} +func (m *GetCrossClusterTasksRequest) XXX_DiscardUnknown() { + xxx_messageInfo_GetCrossClusterTasksRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_GetCrossClusterTasksRequest proto.InternalMessageInfo + +func (m *GetCrossClusterTasksRequest) GetShardIds() []int32 { + if m != nil { + return m.ShardIds + } + return nil +} + +func (m *GetCrossClusterTasksRequest) GetTargetCluster() string { + if m != nil { + return m.TargetCluster + } + return "" +} + +type GetCrossClusterTasksResponse struct { + TasksByShard map[int32]*v11.CrossClusterTaskRequests `protobuf:"bytes,1,rep,name=tasks_by_shard,json=tasksByShard,proto3" json:"tasks_by_shard,omitempty" protobuf_key:"varint,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *GetCrossClusterTasksResponse) Reset() { *m = GetCrossClusterTasksResponse{} } +func (m *GetCrossClusterTasksResponse) String() string { return proto.CompactTextString(m) } +func (*GetCrossClusterTasksResponse) ProtoMessage() {} +func (*GetCrossClusterTasksResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_fee8ff76963a38ed, []int{79} +} +func (m *GetCrossClusterTasksResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *GetCrossClusterTasksResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_GetCrossClusterTasksResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *GetCrossClusterTasksResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_GetCrossClusterTasksResponse.Merge(m, src) +} +func (m *GetCrossClusterTasksResponse) XXX_Size() int { + return m.Size() +} +func (m *GetCrossClusterTasksResponse) XXX_DiscardUnknown() { + xxx_messageInfo_GetCrossClusterTasksResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_GetCrossClusterTasksResponse proto.InternalMessageInfo + +func (m *GetCrossClusterTasksResponse) GetTasksByShard() map[int32]*v11.CrossClusterTaskRequests { + if m != nil { + return m.TasksByShard + } + return nil +} + +type RespondCrossClusterTasksCompletedRequest struct { + ShardId int32 `protobuf:"varint,1,opt,name=shard_id,json=shardId,proto3" json:"shard_id,omitempty"` + TargetCluster string `protobuf:"bytes,2,opt,name=target_cluster,json=targetCluster,proto3" json:"target_cluster,omitempty"` + TaskResponses []*v11.CrossClusterTaskResponse `protobuf:"bytes,3,rep,name=task_responses,json=taskResponses,proto3" json:"task_responses,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *RespondCrossClusterTasksCompletedRequest) Reset() { + *m = RespondCrossClusterTasksCompletedRequest{} +} +func (m *RespondCrossClusterTasksCompletedRequest) String() string { return proto.CompactTextString(m) } +func (*RespondCrossClusterTasksCompletedRequest) ProtoMessage() {} +func (*RespondCrossClusterTasksCompletedRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_fee8ff76963a38ed, []int{80} +} +func (m *RespondCrossClusterTasksCompletedRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RespondCrossClusterTasksCompletedRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RespondCrossClusterTasksCompletedRequest.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RespondCrossClusterTasksCompletedRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_RespondCrossClusterTasksCompletedRequest.Merge(m, src) +} +func (m *RespondCrossClusterTasksCompletedRequest) XXX_Size() int { + return m.Size() +} +func (m *RespondCrossClusterTasksCompletedRequest) XXX_DiscardUnknown() { + xxx_messageInfo_RespondCrossClusterTasksCompletedRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_RespondCrossClusterTasksCompletedRequest proto.InternalMessageInfo + +func (m *RespondCrossClusterTasksCompletedRequest) GetShardId() int32 { + if m != nil { + return m.ShardId + } + return 0 +} + +func (m *RespondCrossClusterTasksCompletedRequest) GetTargetCluster() string { + if m != nil { + return m.TargetCluster + } + return "" +} + +func (m *RespondCrossClusterTasksCompletedRequest) GetTaskResponses() []*v11.CrossClusterTaskResponse { + if m != nil { + return m.TaskResponses + } + return nil +} + +type RespondCrossClusterTasksCompletedResponse struct { + Tasks *v11.CrossClusterTaskRequests `protobuf:"bytes,1,opt,name=tasks,proto3" json:"tasks,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *RespondCrossClusterTasksCompletedResponse) Reset() { + *m = RespondCrossClusterTasksCompletedResponse{} +} +func (m *RespondCrossClusterTasksCompletedResponse) String() string { + return proto.CompactTextString(m) +} +func (*RespondCrossClusterTasksCompletedResponse) ProtoMessage() {} +func (*RespondCrossClusterTasksCompletedResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_fee8ff76963a38ed, []int{81} +} +func (m *RespondCrossClusterTasksCompletedResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RespondCrossClusterTasksCompletedResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RespondCrossClusterTasksCompletedResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RespondCrossClusterTasksCompletedResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_RespondCrossClusterTasksCompletedResponse.Merge(m, src) +} +func (m *RespondCrossClusterTasksCompletedResponse) XXX_Size() int { + return m.Size() +} +func (m *RespondCrossClusterTasksCompletedResponse) XXX_DiscardUnknown() { + xxx_messageInfo_RespondCrossClusterTasksCompletedResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_RespondCrossClusterTasksCompletedResponse proto.InternalMessageInfo + +func (m *RespondCrossClusterTasksCompletedResponse) GetTasks() *v11.CrossClusterTaskRequests { + if m != nil { + return m.Tasks + } + return nil +} + func init() { proto.RegisterType((*StartWorkflowExecutionRequest)(nil), "uber.cadence.history.v1.StartWorkflowExecutionRequest") proto.RegisterType((*StartWorkflowExecutionResponse)(nil), "uber.cadence.history.v1.StartWorkflowExecutionResponse") @@ -4899,6 +5117,11 @@ func init() { proto.RegisterType((*MergeDLQMessagesResponse)(nil), "uber.cadence.history.v1.MergeDLQMessagesResponse") proto.RegisterType((*NotifyFailoverMarkersRequest)(nil), "uber.cadence.history.v1.NotifyFailoverMarkersRequest") proto.RegisterType((*NotifyFailoverMarkersResponse)(nil), "uber.cadence.history.v1.NotifyFailoverMarkersResponse") + proto.RegisterType((*GetCrossClusterTasksRequest)(nil), "uber.cadence.history.v1.GetCrossClusterTasksRequest") + proto.RegisterType((*GetCrossClusterTasksResponse)(nil), "uber.cadence.history.v1.GetCrossClusterTasksResponse") + proto.RegisterMapType((map[int32]*v11.CrossClusterTaskRequests)(nil), "uber.cadence.history.v1.GetCrossClusterTasksResponse.TasksByShardEntry") + proto.RegisterType((*RespondCrossClusterTasksCompletedRequest)(nil), "uber.cadence.history.v1.RespondCrossClusterTasksCompletedRequest") + proto.RegisterType((*RespondCrossClusterTasksCompletedResponse)(nil), "uber.cadence.history.v1.RespondCrossClusterTasksCompletedResponse") } func init() { @@ -4906,281 +5129,293 @@ func init() { } var fileDescriptor_fee8ff76963a38ed = []byte{ - // 4384 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xec, 0x5c, 0x4b, 0x6c, 0xdc, 0x48, - 0x7a, 0x06, 0xd5, 0xd6, 0xeb, 0xd7, 0xbb, 0xac, 0x47, 0xab, 0x65, 0xcb, 0x12, 0x77, 0x6c, 0x6b, - 0x3c, 0x3b, 0xed, 0xb1, 0x3d, 0x63, 0x7b, 0x3c, 0x33, 0x3b, 0x6b, 0x4b, 0xb6, 0xa7, 0x0d, 0x79, - 0x6c, 0x53, 0x8a, 0x27, 0x09, 0x02, 0x13, 0x14, 0x59, 0x2d, 0x31, 0x62, 0x93, 0x6d, 0x92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9a, 0x85, 0xca, 0x21, 0xee, 0x72, - 0xb0, 0x22, 0x7f, 0xa2, 0xdb, 0x30, 0x7c, 0x44, 0xcc, 0x5f, 0x1a, 0x7f, 0x88, 0x4e, 0x1d, 0x8b, - 0x43, 0x30, 0x82, 0x3b, 0x43, 0xb7, 0x95, 0x04, 0x4e, 0x46, 0x51, 0xa7, 0x6f, 0x70, 0x32, 0x83, - 0x93, 0x49, 0xd5, 0x08, 0x71, 0xf2, 0xcb, 0x4a, 0x84, 0x93, 0x42, 0x2d, 0x72, 0x9c, 0x7c, 0x04, - 0x33, 0x7d, 0x38, 0x24, 0x45, 0x4a, 0x76, 0xff, 0x76, 0x29, 0x92, 0x68, 0xd3, 0x69, 0x9c, 0xca, - 0x58, 0xee, 0xd0, 0x60, 0x96, 0x9b, 0x80, 0xa5, 0x4a, 0x1a, 0x96, 0x5e, 0xc0, 0x6a, 0xfa, 0x54, - 0xe9, 0x5e, 0x53, 0x0f, 0x0f, 0xec, 0x40, 0x4f, 0xe6, 0xff, 0xe4, 0x53, 0xd5, 0x52, 0xa7, 0xec, - 0x49, 0x73, 0xf7, 0xc0, 0x0e, 0xee, 0x72, 0xfe, 0x0d, 0x98, 0x3b, 0xc0, 0x86, 0x1f, 0xee, 0x61, - 0x23, 0xd4, 0x2d, 0x1c, 0x1a, 0xb6, 0x13, 0xf0, 0x10, 0xa3, 0x3c, 0xfa, 0x36, 0x1b, 0x93, 0x6d, - 0x31, 0xaa, 0xec, 0xbd, 0x33, 0x72, 0xb2, 0x7b, 0xe7, 0x32, 0xcc, 0xc4, 0x7c, 0x98, 0x59, 0x53, - 0x00, 0x1e, 0xd7, 0xe2, 0x57, 0xcf, 0x16, 0x6d, 0x55, 0xff, 0x48, 0x81, 0x6f, 0xb1, 0xdd, 0x4c, - 0x9d, 0x64, 0x9e, 0xc6, 0xeb, 0x9d, 0x17, 0xad, 0x3f, 0x62, 0x77, 0x3b, 0x2f, 0x62, 0x57, 0xc4, - 0xaa, 0x64, 0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0x41, 0x27, 0xa7, 0xad, 0x42, 0x6c, 0xba, 0xd7, 0x4d, - 0x29, 0xe9, 0x29, 0x0f, 0xd4, 0xef, 0x29, 0x70, 0xfe, 0x21, 0x0e, 0xb5, 0xde, 0x17, 0x32, 0x8f, - 0x71, 0x10, 0x18, 0xfb, 0x38, 0x7e, 0x94, 0x7c, 0x17, 0x46, 0x68, 0x86, 0x86, 0x31, 0x92, 0xe4, - 0x99, 0x13, 0x3c, 0x68, 0xfe, 0x46, 0xe3, 0x74, 0x25, 0xd4, 0x42, 0x50, 0x64, 0x35, 0x4f, 0x0c, - 0xbe, 0xc2, 0x97, 0x30, 0xcd, 0xf4, 0xde, 0xe2, 0x3d, 0x5c, 0x9e, 0x47, 0xb9, 0x11, 0x46, 0x39, - 0xc3, 0x3a, 0x3d, 0x7c, 0x51, 0x2b, 0x8b, 0x26, 0x4e, 0x05, 0xc9, 0xb6, 0x5a, 0x0b, 0x50, 0x76, - 0x50, 0x32, 0x62, 0x38, 0xcc, 0x22, 0x86, 0x77, 0xd3, 0x11, 0xc3, 0xb7, 0x4a, 0x68, 0x28, 0x96, - 0x26, 0x11, 0x2e, 0x74, 0x61, 0xed, 0x21, 0x0e, 0xb7, 0xb6, 0x9f, 0x49, 0x76, 0xe3, 0x11, 0x00, - 0x3b, 0xb3, 0x6e, 0xd3, 0x8b, 0x34, 0x50, 0x66, 0x3e, 0x62, 0x4b, 0x14, 0x09, 0xa9, 0xf9, 0x91, - 0xbf, 0x02, 0xb5, 0x0b, 0xeb, 0x92, 0xf9, 0xb8, 0xda, 0x77, 0x61, 0x2e, 0xf1, 0xf9, 0x14, 0x4d, - 0x18, 0x46, 0xf3, 0x5e, 0x2e, 0x39, 0xaf, 0x36, 0xeb, 0xa7, 0x1b, 0x02, 0xf5, 0x5f, 0x14, 0x98, - 0xd7, 0xb0, 0xd1, 0x6e, 0x3b, 0xcc, 0xb3, 0x89, 0xd7, 0xb7, 0x08, 0x23, 0x3c, 0x42, 0xcf, 0x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xee, - 0x0b, 0x81, 0x4b, 0x70, 0x5a, 0x9c, 0x59, 0x90, 0xe0, 0x74, 0x5e, 0x74, 0x9d, 0x78, 0x8d, 0x7d, - 0xe1, 0x55, 0x99, 0xd7, 0x28, 0x8e, 0x38, 0xcb, 0xbc, 0xc6, 0x9c, 0xd8, 0x2d, 0x99, 0xb8, 0x3f, - 0x1a, 0x29, 0x99, 0x38, 0x27, 0xca, 0x2b, 0x99, 0x38, 0x37, 0xd4, 0xf9, 0xdb, 0x0a, 0x2c, 0x08, - 0xe3, 0x87, 0x28, 0x7f, 0xe3, 0x64, 0x21, 0xcf, 0xda, 0xcd, 0x41, 0xc9, 0x98, 0x20, 0xf7, 0xee, - 0xff, 0xc3, 0x17, 0xab, 0xca, 0x3f, 0x7f, 0xb1, 0xaa, 0xfc, 0xdb, 0x17, 0xab, 0xca, 0x2f, 0xdf, - 0xda, 0xb7, 0xc3, 0x83, 0xce, 0x5e, 0xdd, 0xf4, 0x5a, 0x57, 0x53, 0xff, 0x7b, 0xb1, 0xbe, 0x8f, - 0x5d, 0xf6, 0x4f, 0x34, 0x13, 0xff, 0xc5, 0xf3, 0x03, 0xfe, 0xe7, 0xd1, 0xb5, 0xbd, 0x11, 0xda, - 0x77, 0xe3, 0x7f, 0x02, 0x00, 0x00, 0xff, 0xff, 0x75, 0x51, 0xf3, 0x9b, 0xf1, 0x53, 0x00, 0x00, + // 4572 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xec, 0x3c, 0x5b, 0x6c, 0x1c, 0x59, + 0x56, 0x2a, 0x77, 0xfc, 0x3a, 0xb6, 0xdb, 0xf6, 0x8d, 0x1f, 0xed, 0x76, 0xe2, 0xd8, 0xb5, 0x93, + 0xc4, 0x93, 0xd9, 0xe9, 0x4c, 0x92, 0x99, 0x24, 0x93, 0x99, 0xd9, 0xd9, 0xc4, 0x4e, 0x32, 0x1d, + 0x25, 0x93, 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 0xea, 0xf0, 0x09, 0xe2, 0xaf, 0xb9, 0x94, 0xe2, 0xf0, 0xc5, 0x49, 0x20, 0x0d, 0x07, 0xd5, 0x57, + 0xb0, 0xf0, 0x94, 0x38, 0xa5, 0x21, 0xf7, 0x42, 0x31, 0xdc, 0x1a, 0x14, 0xc3, 0x37, 0x85, 0x7b, + 0x88, 0x60, 0x0b, 0x8a, 0xde, 0x4f, 0x14, 0x58, 0x1c, 0x00, 0xe7, 0xe2, 0xf6, 0x31, 0x4c, 0x53, + 0x47, 0x39, 0x7c, 0xb3, 0x95, 0x02, 0x6f, 0xf6, 0x14, 0x85, 0xe0, 0x4f, 0x75, 0x1d, 0xca, 0x21, + 0x82, 0x5f, 0xc5, 0xcd, 0x00, 0x9b, 0x5c, 0x70, 0xd4, 0xec, 0x33, 0x68, 0x7c, 0xa5, 0x36, 0xf3, + 0x32, 0xfe, 0x53, 0xfd, 0xae, 0x02, 0x55, 0x6a, 0xa8, 0x76, 0x02, 0xab, 0x79, 0xd0, 0x23, 0xcf, + 0xf6, 0x43, 0xcb, 0x0f, 0x42, 0x36, 0xd5, 0x07, 0xd9, 0x74, 0x39, 0xdb, 0x62, 0x0a, 0x31, 0x14, + 0x64, 0xd6, 0x59, 0x58, 0x15, 0xe2, 0xe0, 0x96, 0xe5, 0xbf, 0x14, 0x58, 0xba, 0x8f, 0x83, 0x47, + 0xdd, 0xc0, 0x68, 0xd8, 0x78, 0x27, 0x30, 0x02, 0xac, 0x89, 0xd0, 0x2a, 0x03, 0x2f, 0xf6, 0x2f, + 0x00, 0x12, 0x3c, 0xd4, 0x23, 0x43, 0x3d, 0xd4, 0xf3, 0x29, 0x0d, 0x43, 0xd7, 0x60, 0x09, 0xbf, + 0xea, 0x50, 0x06, 0xea, 0x0e, 0x7e, 0x15, 0xe8, 0xf8, 0x90, 0xf8, 0xbe, 0x96, 0x49, 0x7d, 0x80, + 0x92, 0x76, 0x3a, 0x9c, 0xfd, 0x14, 0xbf, 0x0a, 0xee,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x7e, 0x0f, 0xe7, + 0xa1, 0xec, 0xbb, 0x5d, 0xaf, 0x89, 0x75, 0xde, 0x21, 0xcb, 0x2f, 0x63, 0x86, 0x8d, 0x6e, 0xb1, + 0x41, 0xb4, 0x02, 0x13, 0x84, 0x1f, 0x66, 0xf8, 0x82, 0x8d, 0x6a, 0xe3, 0xf4, 0x77, 0xdd, 0x44, + 0x35, 0x38, 0x45, 0xa3, 0xc5, 0x52, 0x6e, 0x08, 0x47, 0xd7, 0xa9, 0x2b, 0xb0, 0x9c, 0xa2, 0x85, + 0xd3, 0xf9, 0x8f, 0xa3, 0x70, 0x9a, 0xcc, 0x85, 0x2f, 0xe1, 0xeb, 0x14, 0x96, 0x0a, 0x8c, 0x87, + 0x09, 0x25, 0xa6, 0xab, 0xe1, 0x4f, 0xa2, 0xca, 0xfd, 0x68, 0x36, 0xca, 0x14, 0x44, 0x99, 0x05, + 0xc2, 0x93, 0x74, 0x1a, 0x69, 0x74, 0xd8, 0x34, 0xd2, 0x59, 0x80, 0x30, 0xaa, 0xb2, 0x4c, 0x1a, + 0x85, 0x96, 0xb4, 0x49, 0x3e, 0x52, 0x37, 0x53, 0xb1, 0xfa, 0xf8, 0x70, 0xb1, 0xfa, 0x03, 0x5e, + 0xbc, 0xe9, 0x87, 0xcd, 0x14, 0xcb, 0x44, 0x2e, 0x96, 0x79, 0x02, 0x16, 0x39, 0xc0, 0x14, 0xd7, + 0x75, 0x18, 0x0f, 0x63, 0xee, 0xc9, 0x02, 0x31, 0x77, 0xb8, 0x38, 0x9e, 0x2f, 0x80, 0x64, 0xbe, + 0xe0, 0x63, 0x98, 0x66, 0xa5, 0x25, 0xde, 0x4c, 0x3b, 0x55, 0xa0, 0x99, 0x76, 0x8a, 0x56, 0x9c, + 0x78, 0x1f, 0xed, 0x3b, 0x40, 0x7b, 0x61, 0x79, 0x6b, 0xb8, 0x6e, 0x99, 0xd8, 0x09, 0xac, 0xa0, + 0x47, 0x93, 0x79, 0x93, 0x1a, 0x22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 0xa5, + 0xb0, 0x86, 0x09, 0xb5, 0xa1, 0xed, 0xcc, 0xc2, 0x20, 0x7a, 0x9a, 0x50, 0x13, 0x70, 0xec, 0x94, + 0x88, 0x63, 0xff, 0xa1, 0xc0, 0xf2, 0x93, 0xae, 0xb7, 0x87, 0xbf, 0xe2, 0xf2, 0xa5, 0x56, 0xa1, + 0x92, 0x3e, 0x27, 0xd7, 0xb1, 0xbf, 0x18, 0x81, 0xe5, 0x47, 0xf8, 0xab, 0xcf, 0x84, 0xff, 0x1b, + 0x25, 0xbb, 0x03, 0x95, 0x34, 0xb3, 0xb8, 0x92, 0x09, 0x70, 0x28, 0x22, 0x1c, 0xbf, 0xae, 0xc0, + 0x99, 0x4f, 0xdd, 0xc0, 0x6a, 0xf5, 0x48, 0xf0, 0xea, 0x1e, 0x62, 0xef, 0x91, 0x41, 0x22, 0xd3, + 0x88, 0xed, 0x06, 0x2c, 0xb5, 0xf8, 0x8c, 0xde, 0xa6, 0x53, 0x7a, 0xc2, 0x39, 0xca, 0x54, 0x91, + 0x24, 0x3e, 0xe6, 0x1f, 0x2d, 0xb4, 0xd2, 0x83, 0xbe, 0x7a, 0x0e, 0xce, 0x66, 0x90, 0xc0, 0xc5, + 0xc2, 0x80, 0xd5, 0xfb, 0x38, 0xd8, 0xf2, 0x5c, 0xdf, 0xe7, 0xd7, 0x92, 0x78, 0x45, 0x12, 0x61, + 0x94, 0x32, 0x10, 0x46, 0x9d, 0x87, 0x72, 0x60, 0x78, 0x7b, 0x38, 0x88, 0xae, 0x99, 0xbd, 0x27, + 0x33, 0x6c, 0x94, 0xe3, 0x53, 0xbf, 0x33, 0x02, 0x67, 0xc4, 0x7b, 0x70, 0x86, 0xb6, 0x09, 0x1e, + 0x62, 0x1e, 0x1a, 0x3d, 0x16, 0xd4, 0xf1, 0xf3, 0xdf, 0x97, 0x39, 0x63, 0x99, 0xe8, 0xa8, 0xa7, + 0xeb, 0xdf, 0xe9, 0x51, 0x67, 0x8b, 0x79, 0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a, 0x5a, 0x4b, 0xa4, 0x50, 0x52, + 0x77, 0x97, 0x48, 0xa1, 0xb4, 0x32, 0x4e, 0x3c, 0x4f, 0x41, 0x2d, 0x5a, 0xe2, 0x79, 0x66, 0x17, + 0xb6, 0xab, 0xef, 0x0e, 0x07, 0x14, 0xf5, 0xdf, 0x43, 0xbf, 0xb2, 0x8b, 0x2e, 0x65, 0xe2, 0x48, + 0x95, 0x8b, 0xab, 0x6f, 0x15, 0x5a, 0xdb, 0xdf, 0xa6, 0x5f, 0x5c, 0x95, 0x6c, 0x93, 0x2a, 0x27, + 0x4b, 0xb6, 0x49, 0x57, 0x6b, 0xd9, 0x36, 0x61, 0x69, 0x54, 0xba, 0xcd, 0x40, 0x45, 0x57, 0xba, + 0xcd, 0x60, 0xad, 0x95, 0x44, 0x28, 0x89, 0xaa, 0xa6, 0x24, 0x42, 0x11, 0x95, 0x64, 0x25, 0x11, + 0x8a, 0xb8, 0x58, 0xfa, 0x3d, 0xf6, 0x9f, 0x4e, 0x04, 0x65, 0x2f, 0x49, 0x28, 0x2b, 0xad, 0x92, + 0x4a, 0x42, 0xd9, 0x9c, 0xb2, 0x26, 0x71, 0x60, 0x32, 0xab, 0x70, 0x12, 0x07, 0x26, 0xaf, 0x52, + 0x28, 0x71, 0x60, 0xf2, 0x8b, 0x7e, 0x0e, 0xcc, 0x24, 0x4a, 0x58, 0x92, 0x0b, 0x11, 0x55, 0xf1, + 0x24, 0x17, 0x22, 0xac, 0x8c, 0x51, 0xf3, 0x21, 0x2a, 0x37, 0x21, 0x59, 0xf8, 0x97, 0x59, 0x48, + 0x93, 0x98, 0x0f, 0x59, 0x4d, 0x8b, 0xd8, 0xe9, 0x81, 0x2a, 0x8d, 0xc4, 0x4e, 0x8b, 0x8b, 0x5f, + 0x12, 0x3b, 0x9d, 0x55, 0x00, 0x22, 0x51, 0xe3, 0x40, 0x05, 0x40, 0x16, 0x35, 0x8a, 0x8b, 0x22, + 0xb2, 0xa8, 0x31, 0xa3, 0xbc, 0x40, 0x36, 0x1e, 0x4c, 0x98, 0x4b, 0x36, 0xce, 0x28, 0x44, 0x48, + 0x36, 0xce, 0xcc, 0xc6, 0xff, 0x96, 0x02, 0x8b, 0xc2, 0x14, 0x37, 0xca, 0xbe, 0x38, 0x59, 0x56, + 0xbe, 0x7a, 0x7d, 0x58, 0xb0, 0x98, 0xd8, 0x89, 0xf2, 0xd2, 0x12, 0xb1, 0x93, 0x64, 0xde, 0x25, + 0x62, 0x27, 0xcd, 0xa5, 0xff, 0x4c, 0x89, 0xbe, 0x98, 0xc8, 0x4e, 0xd1, 0xa2, 0xdb, 0x79, 0x6e, + 0x7f, 0x6e, 0x96, 0xba, 0x7a, 0xe7, 0x24, 0x28, 0x18, 0xb1, 0x77, 0xee, 0xfe, 0xc3, 0xe7, 0x6b, + 0xca, 0x3f, 0x7f, 0xbe, 0xa6, 0xfc, 0xfb, 0xe7, 0x6b, 0xca, 0x2f, 0xdf, 0xd8, 0xb3, 0x82, 0xfd, + 0x6e, 0xa3, 0xd6, 0x74, 0xdb, 0x97, 0x13, 0xff, 0x51, 0xb5, 0xb6, 0x87, 0x1d, 0xf6, 0xaf, 0x71, + 0x63, 0xff, 0x9b, 0xf7, 0x03, 0xfe, 0xe7, 0xe1, 0x95, 0xc6, 0x18, 0x9d, 0xbb, 0xf6, 0xbf, 0x01, + 0x00, 0x00, 0xff, 0xff, 0x45, 0x2b, 0x22, 0x0a, 0xc7, 0x57, 0x00, 0x00, } func (m *StartWorkflowExecutionRequest) Marshal() (dAtA []byte, err error) { @@ -9267,106 +9502,302 @@ func (m *NotifyFailoverMarkersResponse) MarshalToSizedBuffer(dAtA []byte) (int, return len(dAtA) - i, nil } -func encodeVarintService(dAtA []byte, offset int, v uint64) int { - offset -= sovService(v) - base := offset - for v >= 1<<7 { - dAtA[offset] = uint8(v&0x7f | 0x80) - v >>= 7 - offset++ +func (m *GetCrossClusterTasksRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err } - dAtA[offset] = uint8(v) - return base + return dAtA[:n], nil } -func (m *StartWorkflowExecutionRequest) Size() (n int) { - if m == nil { - return 0 - } + +func (m *GetCrossClusterTasksRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *GetCrossClusterTasksRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i var l int _ = l - if m.Request != nil { - l = m.Request.Size() - n += 1 + l + sovService(uint64(l)) - } - l = len(m.DomainId) - if l > 0 { - n += 1 + l + sovService(uint64(l)) - } - if m.ParentExecutionInfo != nil { - l = m.ParentExecutionInfo.Size() - n += 1 + l + sovService(uint64(l)) - } - if m.Attempt != 0 { - n += 1 + sovService(uint64(m.Attempt)) - } - if m.ExpirationTime != nil { - l = m.ExpirationTime.Size() - n += 1 + l + sovService(uint64(l)) - } - if m.ContinueAsNewInitiator != 0 { - n += 1 + sovService(uint64(m.ContinueAsNewInitiator)) - } - if m.ContinuedFailure != nil { - l = m.ContinuedFailure.Size() - n += 1 + l + sovService(uint64(l)) - } - if m.LastCompletionResult != nil { - l = m.LastCompletionResult.Size() - n += 1 + l + sovService(uint64(l)) + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } - if m.FirstDecisionTaskBackoff != nil { - l = m.FirstDecisionTaskBackoff.Size() - n += 1 + l + sovService(uint64(l)) + if len(m.TargetCluster) > 0 { + i -= len(m.TargetCluster) + copy(dAtA[i:], m.TargetCluster) + i = encodeVarintService(dAtA, i, uint64(len(m.TargetCluster))) + i-- + dAtA[i] = 0x12 } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) + if len(m.ShardIds) > 0 { + dAtA91 := make([]byte, len(m.ShardIds)*10) + var j90 int + for _, num1 := range m.ShardIds { + num := uint64(num1) + for num >= 1<<7 { + dAtA91[j90] = uint8(uint64(num)&0x7f | 0x80) + num >>= 7 + j90++ + } + dAtA91[j90] = uint8(num) + j90++ + } + i -= j90 + copy(dAtA[i:], dAtA91[:j90]) + i = encodeVarintService(dAtA, i, uint64(j90)) + i-- + dAtA[i] = 0xa } - return n + return len(dAtA) - i, nil } -func (m *StartWorkflowExecutionResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.RunId) - if l > 0 { - n += 1 + l + sovService(uint64(l)) - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) +func (m *GetCrossClusterTasksResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err } - return n + return dAtA[:n], nil } -func (m *SignalWorkflowExecutionRequest) Size() (n int) { - if m == nil { - return 0 - } +func (m *GetCrossClusterTasksResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *GetCrossClusterTasksResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i var l int _ = l - if m.Request != nil { - l = m.Request.Size() - n += 1 + l + sovService(uint64(l)) - } - l = len(m.DomainId) - if l > 0 { - n += 1 + l + sovService(uint64(l)) - } - if m.ExternalWorkflowExecution != nil { - l = m.ExternalWorkflowExecution.Size() - n += 1 + l + sovService(uint64(l)) - } - if m.ChildWorkflowOnly { - n += 2 - } if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } - return n -} - + if len(m.TasksByShard) > 0 { + for k := range m.TasksByShard { + v := m.TasksByShard[k] + baseI := i + if v != nil { + { + size, err := v.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintService(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + i = encodeVarintService(dAtA, i, uint64(k)) + i-- + dAtA[i] = 0x8 + i = encodeVarintService(dAtA, i, uint64(baseI-i)) + i-- + dAtA[i] = 0xa + } + } + return len(dAtA) - i, nil +} + +func (m *RespondCrossClusterTasksCompletedRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RespondCrossClusterTasksCompletedRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RespondCrossClusterTasksCompletedRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.TaskResponses) > 0 { + for iNdEx := len(m.TaskResponses) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.TaskResponses[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintService(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + } + } + if len(m.TargetCluster) > 0 { + i -= len(m.TargetCluster) + copy(dAtA[i:], m.TargetCluster) + i = encodeVarintService(dAtA, i, uint64(len(m.TargetCluster))) + i-- + dAtA[i] = 0x12 + } + if m.ShardId != 0 { + i = encodeVarintService(dAtA, i, uint64(m.ShardId)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *RespondCrossClusterTasksCompletedResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RespondCrossClusterTasksCompletedResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RespondCrossClusterTasksCompletedResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.Tasks != nil { + { + size, err := m.Tasks.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintService(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func encodeVarintService(dAtA []byte, offset int, v uint64) int { + offset -= sovService(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *StartWorkflowExecutionRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Request != nil { + l = m.Request.Size() + n += 1 + l + sovService(uint64(l)) + } + l = len(m.DomainId) + if l > 0 { + n += 1 + l + sovService(uint64(l)) + } + if m.ParentExecutionInfo != nil { + l = m.ParentExecutionInfo.Size() + n += 1 + l + sovService(uint64(l)) + } + if m.Attempt != 0 { + n += 1 + sovService(uint64(m.Attempt)) + } + if m.ExpirationTime != nil { + l = m.ExpirationTime.Size() + n += 1 + l + sovService(uint64(l)) + } + if m.ContinueAsNewInitiator != 0 { + n += 1 + sovService(uint64(m.ContinueAsNewInitiator)) + } + if m.ContinuedFailure != nil { + l = m.ContinuedFailure.Size() + n += 1 + l + sovService(uint64(l)) + } + if m.LastCompletionResult != nil { + l = m.LastCompletionResult.Size() + n += 1 + l + sovService(uint64(l)) + } + if m.FirstDecisionTaskBackoff != nil { + l = m.FirstDecisionTaskBackoff.Size() + n += 1 + l + sovService(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *StartWorkflowExecutionResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.RunId) + if l > 0 { + n += 1 + l + sovService(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *SignalWorkflowExecutionRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Request != nil { + l = m.Request.Size() + n += 1 + l + sovService(uint64(l)) + } + l = len(m.DomainId) + if l > 0 { + n += 1 + l + sovService(uint64(l)) + } + if m.ExternalWorkflowExecution != nil { + l = m.ExternalWorkflowExecution.Size() + n += 1 + l + sovService(uint64(l)) + } + if m.ChildWorkflowOnly { + n += 2 + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + func (m *SignalWorkflowExecutionResponse) Size() (n int) { if m == nil { return 0 @@ -11067,32 +11498,121 @@ func (m *NotifyFailoverMarkersResponse) Size() (n int) { return n } -func sovService(x uint64) (n int) { - return (math_bits.Len64(x|1) + 6) / 7 -} -func sozService(x uint64) (n int) { - return sovService(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +func (m *GetCrossClusterTasksRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.ShardIds) > 0 { + l = 0 + for _, e := range m.ShardIds { + l += sovService(uint64(e)) + } + n += 1 + sovService(uint64(l)) + l + } + l = len(m.TargetCluster) + if l > 0 { + n += 1 + l + sovService(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n } -func (m *StartWorkflowExecutionRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowService - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break + +func (m *GetCrossClusterTasksResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.TasksByShard) > 0 { + for k, v := range m.TasksByShard { + _ = k + _ = v + l = 0 + if v != nil { + l = v.Size() + l += 1 + sovService(uint64(l)) } - } + mapEntrySize := 1 + sovService(uint64(k)) + l + n += mapEntrySize + 1 + sovService(uint64(mapEntrySize)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *RespondCrossClusterTasksCompletedRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.ShardId != 0 { + n += 1 + sovService(uint64(m.ShardId)) + } + l = len(m.TargetCluster) + if l > 0 { + n += 1 + l + sovService(uint64(l)) + } + if len(m.TaskResponses) > 0 { + for _, e := range m.TaskResponses { + l = e.Size() + n += 1 + l + sovService(uint64(l)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *RespondCrossClusterTasksCompletedResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Tasks != nil { + l = m.Tasks.Size() + n += 1 + l + sovService(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func sovService(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozService(x uint64) (n int) { + return sovService(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *StartWorkflowExecutionRequest) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowService + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { @@ -22143,6 +22663,566 @@ func (m *NotifyFailoverMarkersResponse) Unmarshal(dAtA []byte) error { } return nil } +func (m *GetCrossClusterTasksRequest) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowService + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: GetCrossClusterTasksRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: GetCrossClusterTasksRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType == 0 { + var v int32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowService + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.ShardIds = append(m.ShardIds, v) + } else if wireType == 2 { + var packedLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowService + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + packedLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if packedLen < 0 { + return ErrInvalidLengthService + } + postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthService + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + var elementCount int + var count int + for _, integer := range dAtA[iNdEx:postIndex] { + if integer < 128 { + count++ + } + } + elementCount = count + if elementCount != 0 && len(m.ShardIds) == 0 { + m.ShardIds = make([]int32, 0, elementCount) + } + for iNdEx < postIndex { + var v int32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowService + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.ShardIds = append(m.ShardIds, v) + } + } else { + return fmt.Errorf("proto: wrong wireType = %d for field ShardIds", wireType) + } + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TargetCluster", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowService + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthService + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthService + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.TargetCluster = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipService(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthService + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthService + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *GetCrossClusterTasksResponse) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowService + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: GetCrossClusterTasksResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: GetCrossClusterTasksResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TasksByShard", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowService + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthService + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthService + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.TasksByShard == nil { + m.TasksByShard = make(map[int32]*v11.CrossClusterTaskRequests) + } + var mapkey int32 + var mapvalue *v11.CrossClusterTaskRequests + for iNdEx < postIndex { + entryPreIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowService + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + if fieldNum == 1 { + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowService + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + mapkey |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + } else if fieldNum == 2 { + var mapmsglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowService + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + mapmsglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if mapmsglen < 0 { + return ErrInvalidLengthService + } + postmsgIndex := iNdEx + mapmsglen + if postmsgIndex < 0 { + return ErrInvalidLengthService + } + if postmsgIndex > l { + return io.ErrUnexpectedEOF + } + mapvalue = &v11.CrossClusterTaskRequests{} + if err := mapvalue.Unmarshal(dAtA[iNdEx:postmsgIndex]); err != nil { + return err + } + iNdEx = postmsgIndex + } else { + iNdEx = entryPreIndex + skippy, err := skipService(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthService + } + if (iNdEx + skippy) > postIndex { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + m.TasksByShard[mapkey] = mapvalue + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipService(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthService + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthService + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RespondCrossClusterTasksCompletedRequest) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowService + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: RespondCrossClusterTasksCompletedRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: RespondCrossClusterTasksCompletedRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ShardId", wireType) + } + m.ShardId = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowService + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.ShardId |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TargetCluster", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowService + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthService + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthService + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.TargetCluster = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TaskResponses", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowService + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthService + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthService + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.TaskResponses = append(m.TaskResponses, &v11.CrossClusterTaskResponse{}) + if err := m.TaskResponses[len(m.TaskResponses)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipService(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthService + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthService + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RespondCrossClusterTasksCompletedResponse) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowService + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: RespondCrossClusterTasksCompletedResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: RespondCrossClusterTasksCompletedResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Tasks", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowService + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthService + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthService + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Tasks == nil { + m.Tasks = &v11.CrossClusterTaskRequests{} + } + if err := m.Tasks.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipService(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthService + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthService + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} func skipService(dAtA []byte) (n int, err error) { l := len(dAtA) iNdEx := 0 diff --git a/.gen/proto/history/v1/service.pb.yarpc.go b/.gen/proto/history/v1/service.pb.yarpc.go index 419e2d5665f..6d12dce9960 100644 --- a/.gen/proto/history/v1/service.pb.yarpc.go +++ b/.gen/proto/history/v1/service.pb.yarpc.go @@ -83,6 +83,8 @@ type HistoryAPIYARPCClient interface { PurgeDLQMessages(context.Context, *PurgeDLQMessagesRequest, ...yarpc.CallOption) (*PurgeDLQMessagesResponse, error) MergeDLQMessages(context.Context, *MergeDLQMessagesRequest, ...yarpc.CallOption) (*MergeDLQMessagesResponse, error) NotifyFailoverMarkers(context.Context, *NotifyFailoverMarkersRequest, ...yarpc.CallOption) (*NotifyFailoverMarkersResponse, error) + GetCrossClusterTasks(context.Context, *GetCrossClusterTasksRequest, ...yarpc.CallOption) (*GetCrossClusterTasksResponse, error) + RespondCrossClusterTasksCompleted(context.Context, *RespondCrossClusterTasksCompletedRequest, ...yarpc.CallOption) (*RespondCrossClusterTasksCompletedResponse, error) } func newHistoryAPIYARPCClient(clientConfig transport.ClientConfig, anyResolver jsonpb.AnyResolver, options ...protobuf.ClientOption) HistoryAPIYARPCClient { @@ -142,6 +144,8 @@ type HistoryAPIYARPCServer interface { PurgeDLQMessages(context.Context, *PurgeDLQMessagesRequest) (*PurgeDLQMessagesResponse, error) MergeDLQMessages(context.Context, *MergeDLQMessagesRequest) (*MergeDLQMessagesResponse, error) NotifyFailoverMarkers(context.Context, *NotifyFailoverMarkersRequest) (*NotifyFailoverMarkersResponse, error) + GetCrossClusterTasks(context.Context, *GetCrossClusterTasksRequest) (*GetCrossClusterTasksResponse, error) + RespondCrossClusterTasksCompleted(context.Context, *RespondCrossClusterTasksCompletedRequest) (*RespondCrossClusterTasksCompletedResponse, error) } type buildHistoryAPIYARPCProceduresParams struct { @@ -545,6 +549,26 @@ func buildHistoryAPIYARPCProcedures(params buildHistoryAPIYARPCProceduresParams) }, ), }, + { + MethodName: "GetCrossClusterTasks", + Handler: protobuf.NewUnaryHandler( + protobuf.UnaryHandlerParams{ + Handle: handler.GetCrossClusterTasks, + NewRequest: newHistoryAPIServiceGetCrossClusterTasksYARPCRequest, + AnyResolver: params.AnyResolver, + }, + ), + }, + { + MethodName: "RespondCrossClusterTasksCompleted", + Handler: protobuf.NewUnaryHandler( + protobuf.UnaryHandlerParams{ + Handle: handler.RespondCrossClusterTasksCompleted, + NewRequest: newHistoryAPIServiceRespondCrossClusterTasksCompletedYARPCRequest, + AnyResolver: params.AnyResolver, + }, + ), + }, }, OnewayHandlerParams: []protobuf.BuildProceduresOnewayHandlerParams{}, StreamHandlerParams: []protobuf.BuildProceduresStreamHandlerParams{}, @@ -1125,6 +1149,30 @@ func (c *_HistoryAPIYARPCCaller) NotifyFailoverMarkers(ctx context.Context, requ return response, err } +func (c *_HistoryAPIYARPCCaller) GetCrossClusterTasks(ctx context.Context, request *GetCrossClusterTasksRequest, options ...yarpc.CallOption) (*GetCrossClusterTasksResponse, error) { + responseMessage, err := c.streamClient.Call(ctx, "GetCrossClusterTasks", request, newHistoryAPIServiceGetCrossClusterTasksYARPCResponse, options...) + if responseMessage == nil { + return nil, err + } + response, ok := responseMessage.(*GetCrossClusterTasksResponse) + if !ok { + return nil, protobuf.CastError(emptyHistoryAPIServiceGetCrossClusterTasksYARPCResponse, responseMessage) + } + return response, err +} + +func (c *_HistoryAPIYARPCCaller) RespondCrossClusterTasksCompleted(ctx context.Context, request *RespondCrossClusterTasksCompletedRequest, options ...yarpc.CallOption) (*RespondCrossClusterTasksCompletedResponse, error) { + responseMessage, err := c.streamClient.Call(ctx, "RespondCrossClusterTasksCompleted", request, newHistoryAPIServiceRespondCrossClusterTasksCompletedYARPCResponse, options...) + if responseMessage == nil { + return nil, err + } + response, ok := responseMessage.(*RespondCrossClusterTasksCompletedResponse) + if !ok { + return nil, protobuf.CastError(emptyHistoryAPIServiceRespondCrossClusterTasksCompletedYARPCResponse, responseMessage) + } + return response, err +} + type _HistoryAPIYARPCHandler struct { server HistoryAPIYARPCServer } @@ -1753,6 +1801,38 @@ func (h *_HistoryAPIYARPCHandler) NotifyFailoverMarkers(ctx context.Context, req return response, err } +func (h *_HistoryAPIYARPCHandler) GetCrossClusterTasks(ctx context.Context, requestMessage proto.Message) (proto.Message, error) { + var request *GetCrossClusterTasksRequest + var ok bool + if requestMessage != nil { + request, ok = requestMessage.(*GetCrossClusterTasksRequest) + if !ok { + return nil, protobuf.CastError(emptyHistoryAPIServiceGetCrossClusterTasksYARPCRequest, requestMessage) + } + } + response, err := h.server.GetCrossClusterTasks(ctx, request) + if response == nil { + return nil, err + } + return response, err +} + +func (h *_HistoryAPIYARPCHandler) RespondCrossClusterTasksCompleted(ctx context.Context, requestMessage proto.Message) (proto.Message, error) { + var request *RespondCrossClusterTasksCompletedRequest + var ok bool + if requestMessage != nil { + request, ok = requestMessage.(*RespondCrossClusterTasksCompletedRequest) + if !ok { + return nil, protobuf.CastError(emptyHistoryAPIServiceRespondCrossClusterTasksCompletedYARPCRequest, requestMessage) + } + } + response, err := h.server.RespondCrossClusterTasksCompleted(ctx, request) + if response == nil { + return nil, err + } + return response, err +} + func newHistoryAPIServiceStartWorkflowExecutionYARPCRequest() proto.Message { return &StartWorkflowExecutionRequest{} } @@ -2065,364 +2145,395 @@ func newHistoryAPIServiceNotifyFailoverMarkersYARPCResponse() proto.Message { return &NotifyFailoverMarkersResponse{} } +func newHistoryAPIServiceGetCrossClusterTasksYARPCRequest() proto.Message { + return &GetCrossClusterTasksRequest{} +} + +func newHistoryAPIServiceGetCrossClusterTasksYARPCResponse() proto.Message { + return &GetCrossClusterTasksResponse{} +} + +func newHistoryAPIServiceRespondCrossClusterTasksCompletedYARPCRequest() proto.Message { + return &RespondCrossClusterTasksCompletedRequest{} +} + +func newHistoryAPIServiceRespondCrossClusterTasksCompletedYARPCResponse() proto.Message { + return &RespondCrossClusterTasksCompletedResponse{} +} + var ( - emptyHistoryAPIServiceStartWorkflowExecutionYARPCRequest = &StartWorkflowExecutionRequest{} - emptyHistoryAPIServiceStartWorkflowExecutionYARPCResponse = &StartWorkflowExecutionResponse{} - emptyHistoryAPIServiceSignalWorkflowExecutionYARPCRequest = &SignalWorkflowExecutionRequest{} - emptyHistoryAPIServiceSignalWorkflowExecutionYARPCResponse = &SignalWorkflowExecutionResponse{} - emptyHistoryAPIServiceSignalWithStartWorkflowExecutionYARPCRequest = &SignalWithStartWorkflowExecutionRequest{} - emptyHistoryAPIServiceSignalWithStartWorkflowExecutionYARPCResponse = &SignalWithStartWorkflowExecutionResponse{} - emptyHistoryAPIServiceResetWorkflowExecutionYARPCRequest = &ResetWorkflowExecutionRequest{} - emptyHistoryAPIServiceResetWorkflowExecutionYARPCResponse = &ResetWorkflowExecutionResponse{} - emptyHistoryAPIServiceTerminateWorkflowExecutionYARPCRequest = &TerminateWorkflowExecutionRequest{} - emptyHistoryAPIServiceTerminateWorkflowExecutionYARPCResponse = &TerminateWorkflowExecutionResponse{} - emptyHistoryAPIServiceDescribeWorkflowExecutionYARPCRequest = &DescribeWorkflowExecutionRequest{} - emptyHistoryAPIServiceDescribeWorkflowExecutionYARPCResponse = &DescribeWorkflowExecutionResponse{} - emptyHistoryAPIServiceQueryWorkflowYARPCRequest = &QueryWorkflowRequest{} - emptyHistoryAPIServiceQueryWorkflowYARPCResponse = &QueryWorkflowResponse{} - emptyHistoryAPIServiceResetStickyTaskListYARPCRequest = &ResetStickyTaskListRequest{} - emptyHistoryAPIServiceResetStickyTaskListYARPCResponse = &ResetStickyTaskListResponse{} - emptyHistoryAPIServiceGetMutableStateYARPCRequest = &GetMutableStateRequest{} - emptyHistoryAPIServiceGetMutableStateYARPCResponse = &GetMutableStateResponse{} - emptyHistoryAPIServicePollMutableStateYARPCRequest = &PollMutableStateRequest{} - emptyHistoryAPIServicePollMutableStateYARPCResponse = &PollMutableStateResponse{} - emptyHistoryAPIServiceRecordDecisionTaskStartedYARPCRequest = &RecordDecisionTaskStartedRequest{} - emptyHistoryAPIServiceRecordDecisionTaskStartedYARPCResponse = &RecordDecisionTaskStartedResponse{} - emptyHistoryAPIServiceRespondDecisionTaskCompletedYARPCRequest = &RespondDecisionTaskCompletedRequest{} - emptyHistoryAPIServiceRespondDecisionTaskCompletedYARPCResponse = &RespondDecisionTaskCompletedResponse{} - emptyHistoryAPIServiceRespondDecisionTaskFailedYARPCRequest = &RespondDecisionTaskFailedRequest{} - emptyHistoryAPIServiceRespondDecisionTaskFailedYARPCResponse = &RespondDecisionTaskFailedResponse{} - emptyHistoryAPIServiceRecordActivityTaskStartedYARPCRequest = &RecordActivityTaskStartedRequest{} - emptyHistoryAPIServiceRecordActivityTaskStartedYARPCResponse = &RecordActivityTaskStartedResponse{} - emptyHistoryAPIServiceRespondActivityTaskCompletedYARPCRequest = &RespondActivityTaskCompletedRequest{} - emptyHistoryAPIServiceRespondActivityTaskCompletedYARPCResponse = &RespondActivityTaskCompletedResponse{} - emptyHistoryAPIServiceRespondActivityTaskFailedYARPCRequest = &RespondActivityTaskFailedRequest{} - emptyHistoryAPIServiceRespondActivityTaskFailedYARPCResponse = &RespondActivityTaskFailedResponse{} - emptyHistoryAPIServiceRespondActivityTaskCanceledYARPCRequest = &RespondActivityTaskCanceledRequest{} - emptyHistoryAPIServiceRespondActivityTaskCanceledYARPCResponse = &RespondActivityTaskCanceledResponse{} - emptyHistoryAPIServiceRecordActivityTaskHeartbeatYARPCRequest = &RecordActivityTaskHeartbeatRequest{} - emptyHistoryAPIServiceRecordActivityTaskHeartbeatYARPCResponse = &RecordActivityTaskHeartbeatResponse{} - emptyHistoryAPIServiceRequestCancelWorkflowExecutionYARPCRequest = &RequestCancelWorkflowExecutionRequest{} - emptyHistoryAPIServiceRequestCancelWorkflowExecutionYARPCResponse = &RequestCancelWorkflowExecutionResponse{} - emptyHistoryAPIServiceRemoveSignalMutableStateYARPCRequest = &RemoveSignalMutableStateRequest{} - emptyHistoryAPIServiceRemoveSignalMutableStateYARPCResponse = &RemoveSignalMutableStateResponse{} - emptyHistoryAPIServiceScheduleDecisionTaskYARPCRequest = &ScheduleDecisionTaskRequest{} - emptyHistoryAPIServiceScheduleDecisionTaskYARPCResponse = &ScheduleDecisionTaskResponse{} - emptyHistoryAPIServiceRecordChildExecutionCompletedYARPCRequest = &RecordChildExecutionCompletedRequest{} - emptyHistoryAPIServiceRecordChildExecutionCompletedYARPCResponse = &RecordChildExecutionCompletedResponse{} - emptyHistoryAPIServiceReplicateEventsV2YARPCRequest = &ReplicateEventsV2Request{} - emptyHistoryAPIServiceReplicateEventsV2YARPCResponse = &ReplicateEventsV2Response{} - emptyHistoryAPIServiceSyncShardStatusYARPCRequest = &SyncShardStatusRequest{} - emptyHistoryAPIServiceSyncShardStatusYARPCResponse = &SyncShardStatusResponse{} - emptyHistoryAPIServiceSyncActivityYARPCRequest = &SyncActivityRequest{} - emptyHistoryAPIServiceSyncActivityYARPCResponse = &SyncActivityResponse{} - emptyHistoryAPIServiceDescribeMutableStateYARPCRequest = &DescribeMutableStateRequest{} - emptyHistoryAPIServiceDescribeMutableStateYARPCResponse = &DescribeMutableStateResponse{} - emptyHistoryAPIServiceDescribeHistoryHostYARPCRequest = &DescribeHistoryHostRequest{} - emptyHistoryAPIServiceDescribeHistoryHostYARPCResponse = &DescribeHistoryHostResponse{} - emptyHistoryAPIServiceCloseShardYARPCRequest = &CloseShardRequest{} - emptyHistoryAPIServiceCloseShardYARPCResponse = &CloseShardResponse{} - emptyHistoryAPIServiceRemoveTaskYARPCRequest = &RemoveTaskRequest{} - emptyHistoryAPIServiceRemoveTaskYARPCResponse = &RemoveTaskResponse{} - emptyHistoryAPIServiceResetQueueYARPCRequest = &ResetQueueRequest{} - emptyHistoryAPIServiceResetQueueYARPCResponse = &ResetQueueResponse{} - emptyHistoryAPIServiceDescribeQueueYARPCRequest = &DescribeQueueRequest{} - emptyHistoryAPIServiceDescribeQueueYARPCResponse = &DescribeQueueResponse{} - emptyHistoryAPIServiceGetReplicationMessagesYARPCRequest = &GetReplicationMessagesRequest{} - emptyHistoryAPIServiceGetReplicationMessagesYARPCResponse = &GetReplicationMessagesResponse{} - emptyHistoryAPIServiceGetDLQReplicationMessagesYARPCRequest = &GetDLQReplicationMessagesRequest{} - emptyHistoryAPIServiceGetDLQReplicationMessagesYARPCResponse = &GetDLQReplicationMessagesResponse{} - emptyHistoryAPIServiceReapplyEventsYARPCRequest = &ReapplyEventsRequest{} - emptyHistoryAPIServiceReapplyEventsYARPCResponse = &ReapplyEventsResponse{} - emptyHistoryAPIServiceRefreshWorkflowTasksYARPCRequest = &RefreshWorkflowTasksRequest{} - emptyHistoryAPIServiceRefreshWorkflowTasksYARPCResponse = &RefreshWorkflowTasksResponse{} - emptyHistoryAPIServiceReadDLQMessagesYARPCRequest = &ReadDLQMessagesRequest{} - emptyHistoryAPIServiceReadDLQMessagesYARPCResponse = &ReadDLQMessagesResponse{} - emptyHistoryAPIServicePurgeDLQMessagesYARPCRequest = &PurgeDLQMessagesRequest{} - emptyHistoryAPIServicePurgeDLQMessagesYARPCResponse = &PurgeDLQMessagesResponse{} - emptyHistoryAPIServiceMergeDLQMessagesYARPCRequest = &MergeDLQMessagesRequest{} - emptyHistoryAPIServiceMergeDLQMessagesYARPCResponse = &MergeDLQMessagesResponse{} - emptyHistoryAPIServiceNotifyFailoverMarkersYARPCRequest = &NotifyFailoverMarkersRequest{} - emptyHistoryAPIServiceNotifyFailoverMarkersYARPCResponse = &NotifyFailoverMarkersResponse{} + emptyHistoryAPIServiceStartWorkflowExecutionYARPCRequest = &StartWorkflowExecutionRequest{} + emptyHistoryAPIServiceStartWorkflowExecutionYARPCResponse = &StartWorkflowExecutionResponse{} + emptyHistoryAPIServiceSignalWorkflowExecutionYARPCRequest = &SignalWorkflowExecutionRequest{} + emptyHistoryAPIServiceSignalWorkflowExecutionYARPCResponse = &SignalWorkflowExecutionResponse{} + emptyHistoryAPIServiceSignalWithStartWorkflowExecutionYARPCRequest = &SignalWithStartWorkflowExecutionRequest{} + emptyHistoryAPIServiceSignalWithStartWorkflowExecutionYARPCResponse = &SignalWithStartWorkflowExecutionResponse{} + emptyHistoryAPIServiceResetWorkflowExecutionYARPCRequest = &ResetWorkflowExecutionRequest{} + emptyHistoryAPIServiceResetWorkflowExecutionYARPCResponse = &ResetWorkflowExecutionResponse{} + emptyHistoryAPIServiceTerminateWorkflowExecutionYARPCRequest = &TerminateWorkflowExecutionRequest{} + emptyHistoryAPIServiceTerminateWorkflowExecutionYARPCResponse = &TerminateWorkflowExecutionResponse{} + emptyHistoryAPIServiceDescribeWorkflowExecutionYARPCRequest = &DescribeWorkflowExecutionRequest{} + emptyHistoryAPIServiceDescribeWorkflowExecutionYARPCResponse = &DescribeWorkflowExecutionResponse{} + emptyHistoryAPIServiceQueryWorkflowYARPCRequest = &QueryWorkflowRequest{} + emptyHistoryAPIServiceQueryWorkflowYARPCResponse = &QueryWorkflowResponse{} + emptyHistoryAPIServiceResetStickyTaskListYARPCRequest = &ResetStickyTaskListRequest{} + emptyHistoryAPIServiceResetStickyTaskListYARPCResponse = &ResetStickyTaskListResponse{} + emptyHistoryAPIServiceGetMutableStateYARPCRequest = &GetMutableStateRequest{} + emptyHistoryAPIServiceGetMutableStateYARPCResponse = &GetMutableStateResponse{} + emptyHistoryAPIServicePollMutableStateYARPCRequest = &PollMutableStateRequest{} + emptyHistoryAPIServicePollMutableStateYARPCResponse = &PollMutableStateResponse{} + emptyHistoryAPIServiceRecordDecisionTaskStartedYARPCRequest = &RecordDecisionTaskStartedRequest{} + emptyHistoryAPIServiceRecordDecisionTaskStartedYARPCResponse = &RecordDecisionTaskStartedResponse{} + emptyHistoryAPIServiceRespondDecisionTaskCompletedYARPCRequest = &RespondDecisionTaskCompletedRequest{} + emptyHistoryAPIServiceRespondDecisionTaskCompletedYARPCResponse = &RespondDecisionTaskCompletedResponse{} + emptyHistoryAPIServiceRespondDecisionTaskFailedYARPCRequest = &RespondDecisionTaskFailedRequest{} + emptyHistoryAPIServiceRespondDecisionTaskFailedYARPCResponse = &RespondDecisionTaskFailedResponse{} + emptyHistoryAPIServiceRecordActivityTaskStartedYARPCRequest = &RecordActivityTaskStartedRequest{} + emptyHistoryAPIServiceRecordActivityTaskStartedYARPCResponse = &RecordActivityTaskStartedResponse{} + emptyHistoryAPIServiceRespondActivityTaskCompletedYARPCRequest = &RespondActivityTaskCompletedRequest{} + emptyHistoryAPIServiceRespondActivityTaskCompletedYARPCResponse = &RespondActivityTaskCompletedResponse{} + emptyHistoryAPIServiceRespondActivityTaskFailedYARPCRequest = &RespondActivityTaskFailedRequest{} + emptyHistoryAPIServiceRespondActivityTaskFailedYARPCResponse = &RespondActivityTaskFailedResponse{} + emptyHistoryAPIServiceRespondActivityTaskCanceledYARPCRequest = &RespondActivityTaskCanceledRequest{} + emptyHistoryAPIServiceRespondActivityTaskCanceledYARPCResponse = &RespondActivityTaskCanceledResponse{} + emptyHistoryAPIServiceRecordActivityTaskHeartbeatYARPCRequest = &RecordActivityTaskHeartbeatRequest{} + emptyHistoryAPIServiceRecordActivityTaskHeartbeatYARPCResponse = &RecordActivityTaskHeartbeatResponse{} + emptyHistoryAPIServiceRequestCancelWorkflowExecutionYARPCRequest = &RequestCancelWorkflowExecutionRequest{} + emptyHistoryAPIServiceRequestCancelWorkflowExecutionYARPCResponse = &RequestCancelWorkflowExecutionResponse{} + emptyHistoryAPIServiceRemoveSignalMutableStateYARPCRequest = &RemoveSignalMutableStateRequest{} + emptyHistoryAPIServiceRemoveSignalMutableStateYARPCResponse = &RemoveSignalMutableStateResponse{} + emptyHistoryAPIServiceScheduleDecisionTaskYARPCRequest = &ScheduleDecisionTaskRequest{} + emptyHistoryAPIServiceScheduleDecisionTaskYARPCResponse = &ScheduleDecisionTaskResponse{} + emptyHistoryAPIServiceRecordChildExecutionCompletedYARPCRequest = &RecordChildExecutionCompletedRequest{} + emptyHistoryAPIServiceRecordChildExecutionCompletedYARPCResponse = &RecordChildExecutionCompletedResponse{} + emptyHistoryAPIServiceReplicateEventsV2YARPCRequest = &ReplicateEventsV2Request{} + emptyHistoryAPIServiceReplicateEventsV2YARPCResponse = &ReplicateEventsV2Response{} + emptyHistoryAPIServiceSyncShardStatusYARPCRequest = &SyncShardStatusRequest{} + emptyHistoryAPIServiceSyncShardStatusYARPCResponse = &SyncShardStatusResponse{} + emptyHistoryAPIServiceSyncActivityYARPCRequest = &SyncActivityRequest{} + emptyHistoryAPIServiceSyncActivityYARPCResponse = &SyncActivityResponse{} + emptyHistoryAPIServiceDescribeMutableStateYARPCRequest = &DescribeMutableStateRequest{} + emptyHistoryAPIServiceDescribeMutableStateYARPCResponse = &DescribeMutableStateResponse{} + emptyHistoryAPIServiceDescribeHistoryHostYARPCRequest = &DescribeHistoryHostRequest{} + emptyHistoryAPIServiceDescribeHistoryHostYARPCResponse = &DescribeHistoryHostResponse{} + emptyHistoryAPIServiceCloseShardYARPCRequest = &CloseShardRequest{} + emptyHistoryAPIServiceCloseShardYARPCResponse = &CloseShardResponse{} + emptyHistoryAPIServiceRemoveTaskYARPCRequest = &RemoveTaskRequest{} + emptyHistoryAPIServiceRemoveTaskYARPCResponse = &RemoveTaskResponse{} + emptyHistoryAPIServiceResetQueueYARPCRequest = &ResetQueueRequest{} + emptyHistoryAPIServiceResetQueueYARPCResponse = &ResetQueueResponse{} + emptyHistoryAPIServiceDescribeQueueYARPCRequest = &DescribeQueueRequest{} + emptyHistoryAPIServiceDescribeQueueYARPCResponse = &DescribeQueueResponse{} + emptyHistoryAPIServiceGetReplicationMessagesYARPCRequest = &GetReplicationMessagesRequest{} + emptyHistoryAPIServiceGetReplicationMessagesYARPCResponse = &GetReplicationMessagesResponse{} + emptyHistoryAPIServiceGetDLQReplicationMessagesYARPCRequest = &GetDLQReplicationMessagesRequest{} + emptyHistoryAPIServiceGetDLQReplicationMessagesYARPCResponse = &GetDLQReplicationMessagesResponse{} + emptyHistoryAPIServiceReapplyEventsYARPCRequest = &ReapplyEventsRequest{} + emptyHistoryAPIServiceReapplyEventsYARPCResponse = &ReapplyEventsResponse{} + emptyHistoryAPIServiceRefreshWorkflowTasksYARPCRequest = &RefreshWorkflowTasksRequest{} + emptyHistoryAPIServiceRefreshWorkflowTasksYARPCResponse = &RefreshWorkflowTasksResponse{} + emptyHistoryAPIServiceReadDLQMessagesYARPCRequest = &ReadDLQMessagesRequest{} + emptyHistoryAPIServiceReadDLQMessagesYARPCResponse = &ReadDLQMessagesResponse{} + emptyHistoryAPIServicePurgeDLQMessagesYARPCRequest = &PurgeDLQMessagesRequest{} + emptyHistoryAPIServicePurgeDLQMessagesYARPCResponse = &PurgeDLQMessagesResponse{} + emptyHistoryAPIServiceMergeDLQMessagesYARPCRequest = &MergeDLQMessagesRequest{} + emptyHistoryAPIServiceMergeDLQMessagesYARPCResponse = &MergeDLQMessagesResponse{} + emptyHistoryAPIServiceNotifyFailoverMarkersYARPCRequest = &NotifyFailoverMarkersRequest{} + emptyHistoryAPIServiceNotifyFailoverMarkersYARPCResponse = &NotifyFailoverMarkersResponse{} + emptyHistoryAPIServiceGetCrossClusterTasksYARPCRequest = &GetCrossClusterTasksRequest{} + emptyHistoryAPIServiceGetCrossClusterTasksYARPCResponse = &GetCrossClusterTasksResponse{} + emptyHistoryAPIServiceRespondCrossClusterTasksCompletedYARPCRequest = &RespondCrossClusterTasksCompletedRequest{} + emptyHistoryAPIServiceRespondCrossClusterTasksCompletedYARPCResponse = &RespondCrossClusterTasksCompletedResponse{} ) var yarpcFileDescriptorClosurefee8ff76963a38ed = [][]byte{ // uber/cadence/history/v1/service.proto []byte{ - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xec, 0x5c, 0xcb, 0x6f, 0xdc, 0x48, - 0x7a, 0x07, 0xd5, 0xd6, 0xeb, 0x93, 0xd4, 0x92, 0xca, 0x7a, 0xb4, 0x5a, 0x7e, 0x48, 0xdc, 0xb1, - 0xad, 0xf1, 0xec, 0xb4, 0xc7, 0xf6, 0x8c, 0xed, 0xf1, 0xcc, 0xec, 0xac, 0x2d, 0xd9, 0x9e, 0x36, - 0xe4, 0xb1, 0x4d, 0x29, 0x9e, 0x24, 0x08, 0x4c, 0x50, 0x64, 0xb5, 0xc4, 0x88, 0x4d, 0xb6, 0x49, - 0xb6, 0xe4, 0x9e, 0x43, 0x90, 0xc7, 0x22, 0xc0, 0x2e, 0x82, 0x64, 0xb3, 0xd9, 0x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xa8, 0x5a, 0xd8, 0x08, 0xbb, 0x3e, 0x8e, 0xa9, 0x26, 0x93, 0x54, 0x0f, - 0x59, 0x67, 0x44, 0x75, 0x11, 0xa6, 0x38, 0x95, 0xdd, 0xee, 0x38, 0x35, 0xa0, 0x43, 0x81, 0x35, - 0x35, 0xdb, 0x1d, 0x07, 0x05, 0x70, 0x75, 0x70, 0x55, 0x7a, 0x60, 0x1e, 0x60, 0xab, 0xeb, 0x60, - 0x3d, 0xf4, 0xd8, 0x66, 0x51, 0x6f, 0xcb, 0xeb, 0x86, 0xb5, 0xa9, 0x22, 0xc7, 0xe0, 0xad, 0xf4, - 0x5a, 0x77, 0x38, 0xa7, 0x5d, 0x8f, 0xee, 0xdb, 0x2e, 0x63, 0x43, 0x1e, 0xbd, 0x6c, 0xab, 0x88, - 0x67, 0xdd, 0x5f, 0xc8, 0x34, 0x75, 0xf8, 0xe6, 0x69, 0xd7, 0x0e, 0xe9, 0x89, 0x56, 0x91, 0x77, - 0x9c, 0x66, 0xf2, 0x8e, 0x13, 0xda, 0x86, 0x6a, 0x6c, 0xdb, 0x01, 0x39, 0x4c, 0xb5, 0x2a, 0x75, - 0xee, 0x2e, 0xa5, 0xb7, 0x8a, 0x79, 0xdc, 0x49, 0xfb, 0x66, 0x27, 0x2f, 0x3e, 0x18, 0xf4, 0x27, - 0x32, 0x61, 0x21, 0xe6, 0x66, 0x3a, 0x5e, 0x80, 0x39, 0xcf, 0x59, 0xca, 0xf3, 0x7a, 0xc9, 0x07, - 0x03, 0x21, 0x24, 0xfc, 0xba, 0x81, 0x16, 0x9f, 0xe7, 0xb8, 0x91, 0x9c, 0xf2, 0x79, 0xae, 0x08, - 0x9d, 0x85, 0x1c, 0xc8, 0x2d, 0x3e, 0x27, 0xba, 0x13, 0xfb, 0x52, 0x73, 0x05, 0x7d, 0x16, 0x8d, - 0xd7, 0xe6, 0x8e, 0x06, 0x5a, 0xd0, 0xc7, 0xb0, 0x6a, 0x93, 0x33, 0x37, 0xb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36, 0x50, 0x30, 0xf0, 0x34, 0x16, 0x96, 0xcb, 0x67, 0x68, 0x0b, - 0x13, 0x71, 0x4a, 0x59, 0x58, 0x76, 0x81, 0x74, 0x7f, 0xfa, 0x92, 0x97, 0xb6, 0xb0, 0x22, 0x4e, - 0x25, 0x65, 0xbf, 0x24, 0x36, 0x87, 0x98, 0x17, 0x97, 0xfe, 0x1f, 0x14, 0xb8, 0xa8, 0xe1, 0xb6, - 0x77, 0x84, 0x59, 0x3a, 0xfd, 0xab, 0x12, 0xa4, 0x4b, 0x3f, 0x8c, 0x2a, 0x03, 0x0f, 0x23, 0x55, - 0x25, 0xb6, 0x92, 0x27, 0x35, 0x5f, 0xda, 0x3f, 0x8e, 0xc0, 0x25, 0xbe, 0x04, 0xb6, 0xec, 0xdc, - 0x1c, 0xb3, 0x74, 0x81, 0x06, 0x54, 0xd3, 0x67, 0x90, 0x2f, 0xee, 0x6e, 0xce, 0xfe, 0x95, 0x98, - 0x50, 0x9b, 0x49, 0x9d, 0x5e, 0xb4, 0x07, 0xcb, 0x71, 0xa1, 0x88, 0xb0, 0x20, 0x4a, 0x9c, 0xe1, - 0x7d, 0xc0, 0x69, 0x06, 0x32, 0xbc, 0x58, 0xd4, 0x3c, 0x74, 0x91, 0xc8, 0x06, 0x5c, 0x2e, 0x5a, - 0x0b, 0xd7, 0xf3, 0x3f, 0x29, 0xb0, 0x1a, 0x45, 0x85, 0x04, 0x5e, 0xfa, 0x1b, 0x31, 0x9f, 0xab, - 0x30, 0x6f, 0x07, 0x7a, 0xba, 0x3e, 0x89, 0xea, 0x72, 0x42, 0x9b, 0xb5, 0x83, 0x87, 0xc9, 0xca, - 0x23, 0xf5, 0x02, 0x9c, 0x13, 0x8b, 0xcf, 0xd7, 0xf7, 0x8b, 0x11, 0x82, 0x60, 0x04, 0xac, 0xd3, - 0x59, 0xe9, 0x0c, 0xb4, 0xbe, 0x89, 0x85, 0xae, 0xc3, 0x34, 0x2f, 0x3e, 0xc3, 0x56, 0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, 0x11, 0x0e, 0xb5, 0xfe, 0x17, 0x32, 0x4f, 0x70, - 0x10, 0x18, 0xfb, 0x38, 0x7e, 0x94, 0x7c, 0x17, 0xc6, 0x68, 0x86, 0x86, 0x31, 0x92, 0xe4, 0x99, - 0x13, 0x3c, 0x68, 0xfe, 0x46, 0xe3, 0x74, 0x25, 0xd4, 0x42, 0x50, 0xe4, 0x42, 0x9e, 0x18, 0x7c, - 0x85, 0xaf, 0xa0, 0xca, 0xf4, 0xde, 0xe6, 0x3d, 0x5c, 0x9e, 0xc7, 0xb9, 0x11, 0x46, 0x39, 0xc3, - 0x06, 0x3d, 0x7c, 0x51, 0x2b, 0x8b, 0x26, 0xce, 0x04, 0xc9, 0xb6, 0x7a, 0x1b, 0x50, 0x76, 0x50, - 0x32, 0x62, 0x38, 0xca, 0x22, 0x86, 0xf7, 0xd2, 0x11, 0xc3, 0x77, 0x4a, 0x68, 0x28, 0x96, 0x26, - 0x11, 0x2e, 0x74, 0x61, 0xed, 0x11, 0x0e, 0xb7, 0xb6, 0x9f, 0x4b, 0x76, 0xe3, 0x31, 0x00, 0x3b, - 0xb3, 0x6e, 0xcb, 0x8b, 0x34, 0x50, 0x66, 0x3e, 0x62, 0x4b, 0x14, 0x09, 0xa9, 0xf9, 0x91, 0xbf, - 0x02, 0xb5, 0x07, 0xeb, 0x92, 0xf9, 0xb8, 0xda, 0x77, 0x61, 0x3e, 0xf1, 0xf9, 0x14, 0x4d, 0x18, - 0x46, 0xf3, 0x5e, 0x29, 0x39, 0xaf, 0x36, 0xe7, 0xa7, 0x1b, 0x02, 0xf5, 0xdf, 0x14, 0x58, 0xd0, - 0xb0, 0xd1, 0xe9, 0x38, 0xcc, 0xb3, 0x89, 0xd7, 0xb7, 0x04, 0x63, 0x3c, 0x42, 0xcf, 0x2e, 0x33, - 0xfe, 0x4b, 0xfe, 0xcd, 0x88, 0xf8, 0x26, 0xae, 0x9c, 0xf6, 0xd5, 0x79, 0x32, 0x17, 0x42, 0x5d, - 0x86, 0xc5, 0x81, 0xa5, 0x71, 0x48, 0xf9, 0x6b, 0x05, 0x56, 0x35, 0xdc, 0xf2, 0x71, 0x70, 0x10, - 0x27, 0x2b, 0x88, 0x36, 0xbe, 0x82, 0x6b, 0x27, 0xfe, 0xbd, 0x58, 0x54, 0xbe, 0x96, 0xbf, 0x19, - 0x81, 0x25, 0x0d, 0x1b, 0xd6, 0xd6, 0xf6, 0xf3, 0x41, 0x13, 0xbd, 0x09, 0x67, 0xe2, 0x22, 0x81, - 0xea, 0x8d, 0x8b, 0xb9, 0x57, 0xf4, 0xf6, 0x73, 0x0a, 0x6e, 0x74, 0xb0, 0xcc, 0xa7, 0xc9, 0x7a, - 0x45, 0x15, 0x91, 0x57, 0xb4, 0x0b, 0x35, 0xdb, 0x25, 0x23, 0xec, 0x23, 0xac, 0x63, 0x37, 0xc6, - 0x89, 0x92, 0x95, 0x55, 0x8b, 0x31, 0xf1, 0x03, 0x37, 0x3a, 0xf0, 0x4d, 0x8b, 0xe8, 0xbe, 0x43, - 0x98, 0x04, 0xf6, 0x97, 0xcc, 0x6f, 0x18, 0xd5, 0x26, 0x48, 0xc3, 0x8e, 0xfd, 0x25, 0x46, 0x97, - 0x61, 0x96, 0xd6, 0x07, 0xd0, 0x11, 0x2c, 0x8d, 0x3d, 0x46, 0xd3, 0xd8, 0xb4, 0x6c, 0xe0, 0x99, - 0xb1, 0x8f, 0x59, 0x55, 0xdb, 0xdf, 0x8d, 0xc0, 0x72, 0x46, 0x59, 0xf1, 0x6b, 0xee, 0x04, 0xda, - 0x12, 0x1e, 0xca, 0x91, 0x53, 0x1e, 0x4a, 0x64, 0xc0, 0x52, 0x86, 0x6b, 0x14, 0x50, 0x1b, 0x1a, - 0x67, 0x16, 0x06, 0xd9, 0xd3, 0x80, 0x9a, 0x40, 0x63, 0x67, 0x44, 0x1a, 0xfb, 0x0f, 0x05, 0x96, - 0x9f, 0x75, 0xfd, 0x7d, 0xfc, 0x35, 0xb7, 0x2f, 0xb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0x77, 0x4b, 0x8e, 0x4e, 0x58, 0xa1, - 0x28, 0x23, 0x28, 0xb1, 0x42, 0x49, 0x52, 0x53, 0x62, 0x85, 0xd2, 0xb4, 0x23, 0x79, 0x79, 0x0a, - 0x12, 0x7d, 0x92, 0x97, 0x67, 0x7e, 0xd6, 0xb0, 0xfe, 0xfe, 0x70, 0x44, 0x71, 0x71, 0x33, 0xf4, - 0xd3, 0x66, 0xe8, 0x6a, 0x2e, 0x8f, 0x4c, 0x2e, 0xae, 0xfe, 0x4e, 0xa9, 0xb1, 0xfd, 0x69, 0xfa, - 0x99, 0x2b, 0xc9, 0x34, 0x99, 0x5c, 0x9d, 0x64, 0x9a, 0x6c, 0x2a, 0x8c, 0x4d, 0x13, 0xe5, 0x9d, - 0xa4, 0xd3, 0x0c, 0xa4, 0xcb, 0xa4, 0xd3, 0x0c, 0x26, 0xb2, 0x88, 0x87, 0x92, 0x4a, 0x19, 0x49, - 0x3c, 0x14, 0x51, 0xbe, 0x4b, 0xe2, 0xa1, 0x88, 0x33, 0x51, 0xdf, 0x67, 0xff, 0x46, 0x42, 0x90, - 0x53, 0x90, 0xb8, 0xb2, 0xd2, 0x14, 0x94, 0xc4, 0x95, 0x2d, 0xc8, 0x19, 0x91, 0x07, 0x4c, 0x6e, - 0x8a, 0x43, 0xf2, 0x80, 0x29, 0x4a, 0xc3, 0x48, 0x1e, 0x30, 0xc5, 0x19, 0x15, 0x17, 0x66, 0x52, - 0xf9, 0x01, 0xc9, 0x86, 0x88, 0x52, 0x24, 0x92, 0x0d, 0x11, 0xa6, 0x1d, 0x28, 0x7c, 0x88, 0x62, - 0xf9, 0x48, 0xe6, 0xfe, 0xe5, 0x66, 0x29, 0x24, 0xf0, 0x21, 0x4b, 0x18, 0x10, 0x9c, 0x1e, 0x08, - 0x81, 0x4b, 0x70, 0x5a, 0x9c, 0x59, 0x90, 0xe0, 0x74, 0x5e, 0x74, 0x9d, 0x78, 0x8d, 0x03, 0xe1, - 0x55, 0x99, 0xd7, 0x28, 0x8e, 0x38, 0xcb, 0xbc, 0xc6, 0x9c, 0xd8, 0x2d, 0x99, 0x78, 0x30, 0x1a, - 0x29, 0x99, 0x38, 0x27, 0xca, 0x2b, 0x99, 0x38, 0x37, 0xd4, 0xf9, 0xfb, 0x0a, 0x2c, 0x0a, 0xe3, - 0x87, 0x28, 0x7f, 0xe3, 0x64, 0x21, 0xcf, 0xfa, 0xad, 0x61, 0xc9, 0x98, 0x20, 0xf7, 0x3f, 0xfc, - 0xf5, 0xdb, 0xfb, 0x76, 0x78, 0xd0, 0xdd, 0x6b, 0x98, 0x5e, 0xfb, 0x5a, 0xea, 0xff, 0x2d, 0x36, - 0xf6, 0xb1, 0xcb, 0xfe, 0x71, 0x66, 0xe2, 0x3f, 0x77, 0x7e, 0xc4, 0xff, 0x3c, 0xba, 0xbe, 0x37, - 0x46, 0xfb, 0x6e, 0xfe, 0x6f, 0x00, 0x00, 0x00, 0xff, 0xff, 0x12, 0x63, 0x68, 0x6b, 0xe5, 0x53, - 0x00, 0x00, + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xec, 0x3c, 0x5d, 0x6f, 0x1c, 0x59, + 0x56, 0x2a, 0x77, 0xfc, 0x75, 0x6c, 0xb7, 0xed, 0x1b, 0x7f, 0xb4, 0xdb, 0xf9, 0xb0, 0x6b, 0x27, + 0x89, 0x27, 0xb3, 0xd3, 0x99, 0x24, 0x33, 0x49, 0x26, 0x33, 0xb3, 0xb3, 0x89, 0x9d, 0x64, 0x3a, + 0x4a, 0x26, 0x49, 0xd9, 0x24, 0x80, 0x50, 0x4a, 0xe5, 0xae, 0xdb, 0x76, 0xe1, 0xea, 0xaa, 0x4e, + 0x55, 0xb5, 0x9d, 0x9e, 0x07, 0xb4, 0xc0, 0x0a, 0x69, 0x57, 0x08, 0x96, 0x65, 0x41, 0x48, 0x48, + 0x2b, 0xa1, 0x45, 0x5a, 0x58, 0x1e, 0x78, 0x80, 0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x05, 0x0b, 0x4f, 0x22, 0x61, + 0xb9, 0x78, 0x86, 0x96, 0x30, 0x11, 0xa6, 0x84, 0x84, 0x65, 0x0f, 0x48, 0xef, 0x67, 0x40, 0x79, + 0x69, 0x09, 0x2b, 0xc2, 0x54, 0x92, 0xf6, 0x0b, 0x62, 0x71, 0x88, 0x70, 0x71, 0xea, 0xff, 0x56, + 0x81, 0xf3, 0x1a, 0xee, 0xb8, 0x87, 0x98, 0x95, 0xd3, 0xbf, 0x2a, 0x49, 0xba, 0xa4, 0x63, 0x54, + 0x49, 0x39, 0x46, 0xaa, 0x4a, 0x64, 0x25, 0x8f, 0x6a, 0x7e, 0xb4, 0xbf, 0x1b, 0x81, 0x0b, 0xfc, + 0x08, 0xec, 0xd8, 0xb9, 0x35, 0x66, 0xe9, 0x01, 0x0d, 0xa8, 0x26, 0x75, 0x90, 0x1f, 0xee, 0x76, + 0xce, 0xfd, 0x95, 0xd8, 0x50, 0x9b, 0x49, 0x68, 0x2f, 0xda, 0x85, 0xe5, 0xa8, 0x51, 0x44, 0xd8, + 0x10, 0x25, 0xae, 0xf0, 0xde, 0xe3, 0x30, 0xa9, 0x0a, 0x2f, 0x16, 0x0d, 0x0f, 0xdd, 0x24, 0xb2, + 0x01, 0x17, 0x8b, 0xce, 0xc2, 0xf9, 0xfc, 0xf7, 0x0a, 0xac, 0x86, 0x59, 0x21, 0x41, 0x94, 0xfe, + 0x46, 0xc4, 0xe7, 0x32, 0xcc, 0x5b, 0xbe, 0x9e, 0xec, 0x4f, 0xa2, 0xbc, 0x9c, 0xd0, 0x66, 0x2d, + 0xff, 0x7e, 0xbc, 0xf3, 0x48, 0x3d, 0x07, 0x67, 0xc4, 0xe4, 0xf3, 0xf3, 0x7d, 0x39, 0x42, 0x2c, + 0x18, 0x31, 0xd6, 0xc9, 0xaa, 0x74, 0xc6, 0xb4, 0xbe, 0x89, 0x83, 0xae, 0xc3, 0x34, 0x6f, 0x3e, + 0xc3, 0x66, 0x2c, 0x51, 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x05, 0x16, 0x85, 0x29, 0x6e, 0x94, 0x7f, 0x71, 0xb2, 0xac, 0x7c, 0xfd, 0xc6, + 0xb0, 0x60, 0x31, 0xb1, 0x13, 0xe5, 0xa5, 0x25, 0x62, 0x27, 0xc9, 0xbc, 0x4b, 0xc4, 0x4e, 0x9a, + 0x4b, 0xff, 0x85, 0x12, 0x7d, 0x31, 0x91, 0x9f, 0xa2, 0x45, 0x77, 0x8a, 0xdc, 0xfe, 0xc2, 0x2c, + 0x75, 0xfd, 0xee, 0x49, 0x50, 0x30, 0x62, 0xef, 0x7e, 0xf8, 0xab, 0x37, 0xf7, 0xac, 0x60, 0xbf, + 0xb7, 0xdb, 0x68, 0xb9, 0x9d, 0x2b, 0x89, 0xff, 0xa2, 0xda, 0xd8, 0xc3, 0x0e, 0xfb, 0x77, 0xb8, + 0xb1, 0xff, 0xc7, 0xfb, 0x11, 0xff, 0xf3, 0xf0, 0xea, 0xee, 0x18, 0x9d, 0xbb, 0xfe, 0x3f, 0x01, + 0x00, 0x00, 0xff, 0xff, 0x45, 0x04, 0x2a, 0xa0, 0xbb, 0x57, 0x00, 0x00, }, // google/protobuf/duration.proto []byte{ @@ -3404,18 +3515,78 @@ var yarpcFileDescriptorClosurefee8ff76963a38ed = [][]byte{ }, // uber/cadence/shared/v1/queue.proto []byte{ - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x52, 0x2a, 0x4d, 0x4a, 0x2d, - 0xd2, 0x4f, 0x4e, 0x4c, 0x49, 0xcd, 0x4b, 0x4e, 0xd5, 0x2f, 0xce, 0x48, 0x2c, 0x4a, 0x4d, 0xd1, - 0x2f, 0x33, 0xd4, 0x2f, 0x2c, 0x4d, 0x2d, 0x4d, 0xd5, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x12, - 0x03, 0xa9, 0xd1, 0x83, 0xaa, 0xd1, 0x83, 0xa8, 0xd1, 0x2b, 0x33, 0xd4, 0xca, 0xe4, 0xe2, 0x08, - 0x49, 0x2c, 0xce, 0x0e, 0xa9, 0x2c, 0x48, 0x15, 0x12, 0xe5, 0x12, 0x0c, 0x71, 0x0c, 0xf6, 0x8e, - 0x0f, 0x89, 0x0c, 0x70, 0x8d, 0xf7, 0xf4, 0x0b, 0x73, 0xf4, 0xf1, 0x74, 0x11, 0x60, 0x10, 0x12, - 0xe3, 0x12, 0x42, 0x08, 0x87, 0x04, 0x39, 0xfa, 0x05, 0xbb, 0xb9, 0x06, 0x09, 0x30, 0x0a, 0x09, - 0x73, 0xf1, 0x23, 0x89, 0x7b, 0xfa, 0xba, 0x06, 0x09, 0x30, 0x09, 0x49, 0x72, 0x89, 0x22, 0x04, - 0x83, 0x5c, 0x03, 0x7c, 0x3c, 0x9d, 0x1d, 0x43, 0x3c, 0xfd, 0xfd, 0x04, 0x98, 0x9d, 0xcc, 0xa3, - 0x4c, 0xd3, 0x33, 0x4b, 0x32, 0x4a, 0x93, 0xf4, 0x92, 0xf3, 0x73, 0xf5, 0x51, 0xdc, 0xac, 0x97, - 0x9e, 0x9a, 0xa7, 0x0f, 0x76, 0x28, 0xc2, 0xf9, 0xd6, 0x10, 0x56, 0x99, 0x61, 0x12, 0x1b, 0x58, - 0xc6, 0x18, 0x10, 0x00, 0x00, 0xff, 0xff, 0xe6, 0x91, 0x63, 0x5d, 0xe8, 0x00, 0x00, 0x00, + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xec, 0x57, 0xcd, 0x6e, 0xdb, 0x46, + 0x10, 0x0e, 0x25, 0xdb, 0xb1, 0x46, 0x6e, 0xaa, 0x6c, 0x9a, 0x84, 0x71, 0x6a, 0x58, 0x55, 0x81, + 0x56, 0x70, 0x1d, 0xaa, 0xb2, 0x11, 0xa4, 0x40, 0x0b, 0x14, 0x0c, 0x45, 0xc7, 0x6c, 0x14, 0xc9, + 0x58, 0xd2, 0x76, 0xd2, 0x0b, 0x41, 0x89,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/cadence/shared/v1/replication.proto []byte{ diff --git a/.gen/proto/shared/v1/queue.pb.go b/.gen/proto/shared/v1/queue.pb.go index 3f2b3ff9a9f..87bf9c842ff 100644 --- a/.gen/proto/shared/v1/queue.pb.go +++ b/.gen/proto/shared/v1/queue.pb.go @@ -27,9 +27,14 @@ package sharedv1 import ( fmt "fmt" + io "io" math "math" + math_bits "math/bits" proto "github.com/gogo/protobuf/proto" + types "github.com/gogo/protobuf/types" + + v1 "github.com/uber/cadence/.gen/proto/api/v1" ) // Reference imports to suppress errors if they are not otherwise used. @@ -74,8 +79,867 @@ func (TaskType) EnumDescriptor() ([]byte, []int) { return fileDescriptor_8958fa454fc8f819, []int{0} } +type CrossClusterTaskType int32 + +const ( + CrossClusterTaskType_CROSS_CLUSTER_TASK_TYPE_INVALID CrossClusterTaskType = 0 + CrossClusterTaskType_CROSS_CLUSTER_TASK_TYPE_START_CHILD_EXECUTION CrossClusterTaskType = 1 + CrossClusterTaskType_CROSS_CLUSTER_TASK_TYPE_CANCEL_EXECUTION CrossClusterTaskType = 2 + CrossClusterTaskType_CROSS_CLUSTER_TASK_TYPE_SIGNAL_EXECUTION CrossClusterTaskType = 3 +) + +var CrossClusterTaskType_name = map[int32]string{ + 0: "CROSS_CLUSTER_TASK_TYPE_INVALID", + 1: "CROSS_CLUSTER_TASK_TYPE_START_CHILD_EXECUTION", + 2: "CROSS_CLUSTER_TASK_TYPE_CANCEL_EXECUTION", + 3: "CROSS_CLUSTER_TASK_TYPE_SIGNAL_EXECUTION", +} + +var CrossClusterTaskType_value = map[string]int32{ + "CROSS_CLUSTER_TASK_TYPE_INVALID": 0, + "CROSS_CLUSTER_TASK_TYPE_START_CHILD_EXECUTION": 1, + "CROSS_CLUSTER_TASK_TYPE_CANCEL_EXECUTION": 2, + "CROSS_CLUSTER_TASK_TYPE_SIGNAL_EXECUTION": 3, +} + +func (x CrossClusterTaskType) String() string { + return proto.EnumName(CrossClusterTaskType_name, int32(x)) +} + +func (CrossClusterTaskType) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_8958fa454fc8f819, []int{1} +} + +type CrossClusterTaskFailedCause int32 + +const ( + CrossClusterTaskFailedCause_CROSS_CLUSTER_TASK_FAILED_CAUSE_INVALID CrossClusterTaskFailedCause = 0 + CrossClusterTaskFailedCause_CROSS_CLUSTER_TASK_FAILED_CAUSE_DOMAIN_NOT_ACTIVE CrossClusterTaskFailedCause = 1 + CrossClusterTaskFailedCause_CROSS_CLUSTER_TASK_FAILED_CAUSE_DOMAIN_NOT_EXISTS CrossClusterTaskFailedCause = 2 + CrossClusterTaskFailedCause_CROSS_CLUSTER_TASK_FAILED_CAUSE_WORKFLOW_ALREADY_RUNNING CrossClusterTaskFailedCause = 3 + CrossClusterTaskFailedCause_CROSS_CLUSTER_TASK_FAILED_CAUSE_WORKFLOW_NOT_EXISTS CrossClusterTaskFailedCause = 4 +) + +var CrossClusterTaskFailedCause_name = map[int32]string{ + 0: "CROSS_CLUSTER_TASK_FAILED_CAUSE_INVALID", + 1: "CROSS_CLUSTER_TASK_FAILED_CAUSE_DOMAIN_NOT_ACTIVE", + 2: "CROSS_CLUSTER_TASK_FAILED_CAUSE_DOMAIN_NOT_EXISTS", + 3: "CROSS_CLUSTER_TASK_FAILED_CAUSE_WORKFLOW_ALREADY_RUNNING", + 4: "CROSS_CLUSTER_TASK_FAILED_CAUSE_WORKFLOW_NOT_EXISTS", +} + +var CrossClusterTaskFailedCause_value = map[string]int32{ + "CROSS_CLUSTER_TASK_FAILED_CAUSE_INVALID": 0, + "CROSS_CLUSTER_TASK_FAILED_CAUSE_DOMAIN_NOT_ACTIVE": 1, + "CROSS_CLUSTER_TASK_FAILED_CAUSE_DOMAIN_NOT_EXISTS": 2, + "CROSS_CLUSTER_TASK_FAILED_CAUSE_WORKFLOW_ALREADY_RUNNING": 3, + "CROSS_CLUSTER_TASK_FAILED_CAUSE_WORKFLOW_NOT_EXISTS": 4, +} + +func (x CrossClusterTaskFailedCause) String() string { + return proto.EnumName(CrossClusterTaskFailedCause_name, int32(x)) +} + +func (CrossClusterTaskFailedCause) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_8958fa454fc8f819, []int{2} +} + +type CrossClusterTaskInfo struct { + DomainId string `protobuf:"bytes,1,opt,name=domain_id,json=domainId,proto3" json:"domain_id,omitempty"` + WorkflowExecution *v1.WorkflowExecution `protobuf:"bytes,2,opt,name=workflow_execution,json=workflowExecution,proto3" json:"workflow_execution,omitempty"` + TaskType CrossClusterTaskType `protobuf:"varint,3,opt,name=task_type,json=taskType,proto3,enum=uber.cadence.shared.v1.CrossClusterTaskType" json:"task_type,omitempty"` + TaskState int32 `protobuf:"varint,4,opt,name=task_state,json=taskState,proto3" json:"task_state,omitempty"` + TaskId int64 `protobuf:"varint,5,opt,name=task_id,json=taskId,proto3" json:"task_id,omitempty"` + VisibilityTimestamp *types.Timestamp `protobuf:"bytes,6,opt,name=visibilityTimestamp,proto3" json:"visibilityTimestamp,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *CrossClusterTaskInfo) Reset() { *m = CrossClusterTaskInfo{} } +func (m *CrossClusterTaskInfo) String() string { return proto.CompactTextString(m) } +func (*CrossClusterTaskInfo) ProtoMessage() {} +func (*CrossClusterTaskInfo) Descriptor() ([]byte, []int) { + return fileDescriptor_8958fa454fc8f819, []int{0} +} +func (m *CrossClusterTaskInfo) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *CrossClusterTaskInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_CrossClusterTaskInfo.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *CrossClusterTaskInfo) XXX_Merge(src proto.Message) { + xxx_messageInfo_CrossClusterTaskInfo.Merge(m, src) +} +func (m *CrossClusterTaskInfo) XXX_Size() int { + return m.Size() +} +func (m *CrossClusterTaskInfo) XXX_DiscardUnknown() { + xxx_messageInfo_CrossClusterTaskInfo.DiscardUnknown(m) +} + +var xxx_messageInfo_CrossClusterTaskInfo proto.InternalMessageInfo + +func (m *CrossClusterTaskInfo) GetDomainId() string { + if m != nil { + return m.DomainId + } + return "" +} + +func (m *CrossClusterTaskInfo) GetWorkflowExecution() *v1.WorkflowExecution { + if m != nil { + return m.WorkflowExecution + } + return nil +} + +func (m *CrossClusterTaskInfo) GetTaskType() CrossClusterTaskType { + if m != nil { + return m.TaskType + } + return CrossClusterTaskType_CROSS_CLUSTER_TASK_TYPE_INVALID +} + +func (m *CrossClusterTaskInfo) GetTaskState() int32 { + if m != nil { + return m.TaskState + } + return 0 +} + +func (m *CrossClusterTaskInfo) GetTaskId() int64 { + if m != nil { + return m.TaskId + } + return 0 +} + +func (m *CrossClusterTaskInfo) GetVisibilityTimestamp() *types.Timestamp { + if m != nil { + return m.VisibilityTimestamp + } + return nil +} + +type CrossClusterStartChildExecutionRequestAttributes struct { + TargetDomainId string `protobuf:"bytes,1,opt,name=target_domain_id,json=targetDomainId,proto3" json:"target_domain_id,omitempty"` + RequestId string `protobuf:"bytes,2,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"` + InitiatedEventId int64 `protobuf:"varint,3,opt,name=initiated_event_id,json=initiatedEventId,proto3" json:"initiated_event_id,omitempty"` + InitiatedEventAttributes *v1.StartChildWorkflowExecutionInitiatedEventAttributes `protobuf:"bytes,4,opt,name=initiated_event_attributes,json=initiatedEventAttributes,proto3" json:"initiated_event_attributes,omitempty"` + // targetRunID is for scheduling first decision task + // targetWorkflowID is available in initiatedEventAttributes + TargetRunId string `protobuf:"bytes,5,opt,name=target_run_id,json=targetRunId,proto3" json:"target_run_id,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *CrossClusterStartChildExecutionRequestAttributes) Reset() { + *m = CrossClusterStartChildExecutionRequestAttributes{} +} +func (m *CrossClusterStartChildExecutionRequestAttributes) String() string { + return proto.CompactTextString(m) +} +func (*CrossClusterStartChildExecutionRequestAttributes) ProtoMessage() {} +func (*CrossClusterStartChildExecutionRequestAttributes) Descriptor() ([]byte, []int) { + return fileDescriptor_8958fa454fc8f819, []int{1} +} +func (m *CrossClusterStartChildExecutionRequestAttributes) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *CrossClusterStartChildExecutionRequestAttributes) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_CrossClusterStartChildExecutionRequestAttributes.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *CrossClusterStartChildExecutionRequestAttributes) XXX_Merge(src proto.Message) { + xxx_messageInfo_CrossClusterStartChildExecutionRequestAttributes.Merge(m, src) +} +func (m *CrossClusterStartChildExecutionRequestAttributes) XXX_Size() int { + return m.Size() +} +func (m *CrossClusterStartChildExecutionRequestAttributes) XXX_DiscardUnknown() { + xxx_messageInfo_CrossClusterStartChildExecutionRequestAttributes.DiscardUnknown(m) +} + +var xxx_messageInfo_CrossClusterStartChildExecutionRequestAttributes proto.InternalMessageInfo + +func (m *CrossClusterStartChildExecutionRequestAttributes) GetTargetDomainId() string { + if m != nil { + return m.TargetDomainId + } + return "" +} + +func (m *CrossClusterStartChildExecutionRequestAttributes) GetRequestId() string { + if m != nil { + return m.RequestId + } + return "" +} + +func (m *CrossClusterStartChildExecutionRequestAttributes) GetInitiatedEventId() int64 { + if m != nil { + return m.InitiatedEventId + } + return 0 +} + +func (m *CrossClusterStartChildExecutionRequestAttributes) GetInitiatedEventAttributes() *v1.StartChildWorkflowExecutionInitiatedEventAttributes { + if m != nil { + return m.InitiatedEventAttributes + } + return nil +} + +func (m *CrossClusterStartChildExecutionRequestAttributes) GetTargetRunId() string { + if m != nil { + return m.TargetRunId + } + return "" +} + +type CrossClusterStartChildExecutionResponseAttributes struct { + RunId string `protobuf:"bytes,1,opt,name=run_id,json=runId,proto3" json:"run_id,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *CrossClusterStartChildExecutionResponseAttributes) Reset() { + *m = CrossClusterStartChildExecutionResponseAttributes{} +} +func (m *CrossClusterStartChildExecutionResponseAttributes) String() string { + return proto.CompactTextString(m) +} +func (*CrossClusterStartChildExecutionResponseAttributes) ProtoMessage() {} +func (*CrossClusterStartChildExecutionResponseAttributes) Descriptor() ([]byte, []int) { + return fileDescriptor_8958fa454fc8f819, []int{2} +} +func (m *CrossClusterStartChildExecutionResponseAttributes) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *CrossClusterStartChildExecutionResponseAttributes) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_CrossClusterStartChildExecutionResponseAttributes.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *CrossClusterStartChildExecutionResponseAttributes) XXX_Merge(src proto.Message) { + xxx_messageInfo_CrossClusterStartChildExecutionResponseAttributes.Merge(m, src) +} +func (m *CrossClusterStartChildExecutionResponseAttributes) XXX_Size() int { + return m.Size() +} +func (m *CrossClusterStartChildExecutionResponseAttributes) XXX_DiscardUnknown() { + xxx_messageInfo_CrossClusterStartChildExecutionResponseAttributes.DiscardUnknown(m) +} + +var xxx_messageInfo_CrossClusterStartChildExecutionResponseAttributes proto.InternalMessageInfo + +func (m *CrossClusterStartChildExecutionResponseAttributes) GetRunId() string { + if m != nil { + return m.RunId + } + return "" +} + +type CrossClusterCancelExecutionRequestAttributes struct { + TargetDomainId string `protobuf:"bytes,1,opt,name=target_domain_id,json=targetDomainId,proto3" json:"target_domain_id,omitempty"` + TargetWorkflowExecution *v1.WorkflowExecution `protobuf:"bytes,2,opt,name=target_workflow_execution,json=targetWorkflowExecution,proto3" json:"target_workflow_execution,omitempty"` + RequestId string `protobuf:"bytes,3,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"` + InitiatedEventId int64 `protobuf:"varint,4,opt,name=initiated_event_id,json=initiatedEventId,proto3" json:"initiated_event_id,omitempty"` + ChildWorkflowOnly bool `protobuf:"varint,5,opt,name=child_workflow_only,json=childWorkflowOnly,proto3" json:"child_workflow_only,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *CrossClusterCancelExecutionRequestAttributes) Reset() { + *m = CrossClusterCancelExecutionRequestAttributes{} +} +func (m *CrossClusterCancelExecutionRequestAttributes) String() string { + return proto.CompactTextString(m) +} +func (*CrossClusterCancelExecutionRequestAttributes) ProtoMessage() {} +func (*CrossClusterCancelExecutionRequestAttributes) Descriptor() ([]byte, []int) { + return fileDescriptor_8958fa454fc8f819, []int{3} +} +func (m *CrossClusterCancelExecutionRequestAttributes) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *CrossClusterCancelExecutionRequestAttributes) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_CrossClusterCancelExecutionRequestAttributes.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *CrossClusterCancelExecutionRequestAttributes) XXX_Merge(src proto.Message) { + xxx_messageInfo_CrossClusterCancelExecutionRequestAttributes.Merge(m, src) +} +func (m *CrossClusterCancelExecutionRequestAttributes) XXX_Size() int { + return m.Size() +} +func (m *CrossClusterCancelExecutionRequestAttributes) XXX_DiscardUnknown() { + xxx_messageInfo_CrossClusterCancelExecutionRequestAttributes.DiscardUnknown(m) +} + +var xxx_messageInfo_CrossClusterCancelExecutionRequestAttributes proto.InternalMessageInfo + +func (m *CrossClusterCancelExecutionRequestAttributes) GetTargetDomainId() string { + if m != nil { + return m.TargetDomainId + } + return "" +} + +func (m *CrossClusterCancelExecutionRequestAttributes) GetTargetWorkflowExecution() *v1.WorkflowExecution { + if m != nil { + return m.TargetWorkflowExecution + } + return nil +} + +func (m *CrossClusterCancelExecutionRequestAttributes) GetRequestId() string { + if m != nil { + return m.RequestId + } + return "" +} + +func (m *CrossClusterCancelExecutionRequestAttributes) GetInitiatedEventId() int64 { + if m != nil { + return m.InitiatedEventId + } + return 0 +} + +func (m *CrossClusterCancelExecutionRequestAttributes) GetChildWorkflowOnly() bool { + if m != nil { + return m.ChildWorkflowOnly + } + return false +} + +type CrossClusterCancelExecutionResponseAttributes struct { + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *CrossClusterCancelExecutionResponseAttributes) Reset() { + *m = CrossClusterCancelExecutionResponseAttributes{} +} +func (m *CrossClusterCancelExecutionResponseAttributes) String() string { + return proto.CompactTextString(m) +} +func (*CrossClusterCancelExecutionResponseAttributes) ProtoMessage() {} +func (*CrossClusterCancelExecutionResponseAttributes) Descriptor() ([]byte, []int) { + return fileDescriptor_8958fa454fc8f819, []int{4} +} +func (m *CrossClusterCancelExecutionResponseAttributes) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *CrossClusterCancelExecutionResponseAttributes) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_CrossClusterCancelExecutionResponseAttributes.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *CrossClusterCancelExecutionResponseAttributes) XXX_Merge(src proto.Message) { + xxx_messageInfo_CrossClusterCancelExecutionResponseAttributes.Merge(m, src) +} +func (m *CrossClusterCancelExecutionResponseAttributes) XXX_Size() int { + return m.Size() +} +func (m *CrossClusterCancelExecutionResponseAttributes) XXX_DiscardUnknown() { + xxx_messageInfo_CrossClusterCancelExecutionResponseAttributes.DiscardUnknown(m) +} + +var xxx_messageInfo_CrossClusterCancelExecutionResponseAttributes proto.InternalMessageInfo + +type CrossClusterSignalExecutionRequestAttributes struct { + TargetDomainId string `protobuf:"bytes,1,opt,name=target_domain_id,json=targetDomainId,proto3" json:"target_domain_id,omitempty"` + TargetWorkflowExecution *v1.WorkflowExecution `protobuf:"bytes,2,opt,name=target_workflow_execution,json=targetWorkflowExecution,proto3" json:"target_workflow_execution,omitempty"` + RequestId string `protobuf:"bytes,3,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"` + InitiatedEventId int64 `protobuf:"varint,4,opt,name=initiated_event_id,json=initiatedEventId,proto3" json:"initiated_event_id,omitempty"` + ChildWorkflowOnly bool `protobuf:"varint,5,opt,name=child_workflow_only,json=childWorkflowOnly,proto3" json:"child_workflow_only,omitempty"` + SignalName string `protobuf:"bytes,6,opt,name=signal_name,json=signalName,proto3" json:"signal_name,omitempty"` + SignalInput *v1.Payload `protobuf:"bytes,7,opt,name=signal_input,json=signalInput,proto3" json:"signal_input,omitempty"` + Control []byte `protobuf:"bytes,8,opt,name=control,proto3" json:"control,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *CrossClusterSignalExecutionRequestAttributes) Reset() { + *m = CrossClusterSignalExecutionRequestAttributes{} +} +func (m *CrossClusterSignalExecutionRequestAttributes) String() string { + return proto.CompactTextString(m) +} +func (*CrossClusterSignalExecutionRequestAttributes) ProtoMessage() {} +func (*CrossClusterSignalExecutionRequestAttributes) Descriptor() ([]byte, []int) { + return fileDescriptor_8958fa454fc8f819, []int{5} +} +func (m *CrossClusterSignalExecutionRequestAttributes) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *CrossClusterSignalExecutionRequestAttributes) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_CrossClusterSignalExecutionRequestAttributes.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *CrossClusterSignalExecutionRequestAttributes) XXX_Merge(src proto.Message) { + xxx_messageInfo_CrossClusterSignalExecutionRequestAttributes.Merge(m, src) +} +func (m *CrossClusterSignalExecutionRequestAttributes) XXX_Size() int { + return m.Size() +} +func (m *CrossClusterSignalExecutionRequestAttributes) XXX_DiscardUnknown() { + xxx_messageInfo_CrossClusterSignalExecutionRequestAttributes.DiscardUnknown(m) +} + +var xxx_messageInfo_CrossClusterSignalExecutionRequestAttributes proto.InternalMessageInfo + +func (m *CrossClusterSignalExecutionRequestAttributes) GetTargetDomainId() string { + if m != nil { + return m.TargetDomainId + } + return "" +} + +func (m *CrossClusterSignalExecutionRequestAttributes) GetTargetWorkflowExecution() *v1.WorkflowExecution { + if m != nil { + return m.TargetWorkflowExecution + } + return nil +} + +func (m *CrossClusterSignalExecutionRequestAttributes) GetRequestId() string { + if m != nil { + return m.RequestId + } + return "" +} + +func (m *CrossClusterSignalExecutionRequestAttributes) GetInitiatedEventId() int64 { + if m != nil { + return m.InitiatedEventId + } + return 0 +} + +func (m *CrossClusterSignalExecutionRequestAttributes) GetChildWorkflowOnly() bool { + if m != nil { + return m.ChildWorkflowOnly + } + return false +} + +func (m *CrossClusterSignalExecutionRequestAttributes) GetSignalName() string { + if m != nil { + return m.SignalName + } + return "" +} + +func (m *CrossClusterSignalExecutionRequestAttributes) GetSignalInput() *v1.Payload { + if m != nil { + return m.SignalInput + } + return nil +} + +func (m *CrossClusterSignalExecutionRequestAttributes) GetControl() []byte { + if m != nil { + return m.Control + } + return nil +} + +type CrossClusterSignalExecutionResponseAttributes struct { + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *CrossClusterSignalExecutionResponseAttributes) Reset() { + *m = CrossClusterSignalExecutionResponseAttributes{} +} +func (m *CrossClusterSignalExecutionResponseAttributes) String() string { + return proto.CompactTextString(m) +} +func (*CrossClusterSignalExecutionResponseAttributes) ProtoMessage() {} +func (*CrossClusterSignalExecutionResponseAttributes) Descriptor() ([]byte, []int) { + return fileDescriptor_8958fa454fc8f819, []int{6} +} +func (m *CrossClusterSignalExecutionResponseAttributes) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *CrossClusterSignalExecutionResponseAttributes) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_CrossClusterSignalExecutionResponseAttributes.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *CrossClusterSignalExecutionResponseAttributes) XXX_Merge(src proto.Message) { + xxx_messageInfo_CrossClusterSignalExecutionResponseAttributes.Merge(m, src) +} +func (m *CrossClusterSignalExecutionResponseAttributes) XXX_Size() int { + return m.Size() +} +func (m *CrossClusterSignalExecutionResponseAttributes) XXX_DiscardUnknown() { + xxx_messageInfo_CrossClusterSignalExecutionResponseAttributes.DiscardUnknown(m) +} + +var xxx_messageInfo_CrossClusterSignalExecutionResponseAttributes proto.InternalMessageInfo + +type CrossClusterTaskRequest struct { + TaskInfo *CrossClusterTaskInfo `protobuf:"bytes,1,opt,name=task_info,json=taskInfo,proto3" json:"task_info,omitempty"` + // Types that are valid to be assigned to Attributes: + // *CrossClusterTaskRequest_StartChildExecutionAttributes + // *CrossClusterTaskRequest_CancelExecutionAttributes + // *CrossClusterTaskRequest_SignalExecutionAttributes + Attributes isCrossClusterTaskRequest_Attributes `protobuf_oneof:"attributes"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *CrossClusterTaskRequest) Reset() { *m = CrossClusterTaskRequest{} } +func (m *CrossClusterTaskRequest) String() string { return proto.CompactTextString(m) } +func (*CrossClusterTaskRequest) ProtoMessage() {} +func (*CrossClusterTaskRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_8958fa454fc8f819, []int{7} +} +func (m *CrossClusterTaskRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *CrossClusterTaskRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_CrossClusterTaskRequest.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *CrossClusterTaskRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_CrossClusterTaskRequest.Merge(m, src) +} +func (m *CrossClusterTaskRequest) XXX_Size() int { + return m.Size() +} +func (m *CrossClusterTaskRequest) XXX_DiscardUnknown() { + xxx_messageInfo_CrossClusterTaskRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_CrossClusterTaskRequest proto.InternalMessageInfo + +type isCrossClusterTaskRequest_Attributes interface { + isCrossClusterTaskRequest_Attributes() + MarshalTo([]byte) (int, error) + Size() int +} + +type CrossClusterTaskRequest_StartChildExecutionAttributes struct { + StartChildExecutionAttributes *CrossClusterStartChildExecutionRequestAttributes `protobuf:"bytes,2,opt,name=startChildExecutionAttributes,proto3,oneof" json:"startChildExecutionAttributes,omitempty"` +} +type CrossClusterTaskRequest_CancelExecutionAttributes struct { + CancelExecutionAttributes *CrossClusterCancelExecutionRequestAttributes `protobuf:"bytes,3,opt,name=cancelExecutionAttributes,proto3,oneof" json:"cancelExecutionAttributes,omitempty"` +} +type CrossClusterTaskRequest_SignalExecutionAttributes struct { + SignalExecutionAttributes *CrossClusterSignalExecutionRequestAttributes `protobuf:"bytes,4,opt,name=signalExecutionAttributes,proto3,oneof" json:"signalExecutionAttributes,omitempty"` +} + +func (*CrossClusterTaskRequest_StartChildExecutionAttributes) isCrossClusterTaskRequest_Attributes() { +} +func (*CrossClusterTaskRequest_CancelExecutionAttributes) isCrossClusterTaskRequest_Attributes() {} +func (*CrossClusterTaskRequest_SignalExecutionAttributes) isCrossClusterTaskRequest_Attributes() {} + +func (m *CrossClusterTaskRequest) GetAttributes() isCrossClusterTaskRequest_Attributes { + if m != nil { + return m.Attributes + } + return nil +} + +func (m *CrossClusterTaskRequest) GetTaskInfo() *CrossClusterTaskInfo { + if m != nil { + return m.TaskInfo + } + return nil +} + +func (m *CrossClusterTaskRequest) GetStartChildExecutionAttributes() *CrossClusterStartChildExecutionRequestAttributes { + if x, ok := m.GetAttributes().(*CrossClusterTaskRequest_StartChildExecutionAttributes); ok { + return x.StartChildExecutionAttributes + } + return nil +} + +func (m *CrossClusterTaskRequest) GetCancelExecutionAttributes() *CrossClusterCancelExecutionRequestAttributes { + if x, ok := m.GetAttributes().(*CrossClusterTaskRequest_CancelExecutionAttributes); ok { + return x.CancelExecutionAttributes + } + return nil +} + +func (m *CrossClusterTaskRequest) GetSignalExecutionAttributes() *CrossClusterSignalExecutionRequestAttributes { + if x, ok := m.GetAttributes().(*CrossClusterTaskRequest_SignalExecutionAttributes); ok { + return x.SignalExecutionAttributes + } + return nil +} + +// XXX_OneofWrappers is for the internal use of the proto package. +func (*CrossClusterTaskRequest) XXX_OneofWrappers() []interface{} { + return []interface{}{ + (*CrossClusterTaskRequest_StartChildExecutionAttributes)(nil), + (*CrossClusterTaskRequest_CancelExecutionAttributes)(nil), + (*CrossClusterTaskRequest_SignalExecutionAttributes)(nil), + } +} + +type CrossClusterTaskResponse struct { + TaskId int64 `protobuf:"varint,1,opt,name=task_id,json=taskId,proto3" json:"task_id,omitempty"` + TaskType CrossClusterTaskType `protobuf:"varint,2,opt,name=task_type,json=taskType,proto3,enum=uber.cadence.shared.v1.CrossClusterTaskType" json:"task_type,omitempty"` + FailedCause CrossClusterTaskFailedCause `protobuf:"varint,3,opt,name=failed_cause,json=failedCause,proto3,enum=uber.cadence.shared.v1.CrossClusterTaskFailedCause" json:"failed_cause,omitempty"` + // Types that are valid to be assigned to Attributes: + // *CrossClusterTaskResponse_StartChildExecutionAttributes + // *CrossClusterTaskResponse_CancelExecutionAttributes + // *CrossClusterTaskResponse_SignalExecutionAttributes + Attributes isCrossClusterTaskResponse_Attributes `protobuf_oneof:"attributes"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *CrossClusterTaskResponse) Reset() { *m = CrossClusterTaskResponse{} } +func (m *CrossClusterTaskResponse) String() string { return proto.CompactTextString(m) } +func (*CrossClusterTaskResponse) ProtoMessage() {} +func (*CrossClusterTaskResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_8958fa454fc8f819, []int{8} +} +func (m *CrossClusterTaskResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *CrossClusterTaskResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_CrossClusterTaskResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *CrossClusterTaskResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_CrossClusterTaskResponse.Merge(m, src) +} +func (m *CrossClusterTaskResponse) XXX_Size() int { + return m.Size() +} +func (m *CrossClusterTaskResponse) XXX_DiscardUnknown() { + xxx_messageInfo_CrossClusterTaskResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_CrossClusterTaskResponse proto.InternalMessageInfo + +type isCrossClusterTaskResponse_Attributes interface { + isCrossClusterTaskResponse_Attributes() + MarshalTo([]byte) (int, error) + Size() int +} + +type CrossClusterTaskResponse_StartChildExecutionAttributes struct { + StartChildExecutionAttributes *CrossClusterStartChildExecutionResponseAttributes `protobuf:"bytes,4,opt,name=startChildExecutionAttributes,proto3,oneof" json:"startChildExecutionAttributes,omitempty"` +} +type CrossClusterTaskResponse_CancelExecutionAttributes struct { + CancelExecutionAttributes *CrossClusterCancelExecutionResponseAttributes `protobuf:"bytes,5,opt,name=cancelExecutionAttributes,proto3,oneof" json:"cancelExecutionAttributes,omitempty"` +} +type CrossClusterTaskResponse_SignalExecutionAttributes struct { + SignalExecutionAttributes *CrossClusterSignalExecutionResponseAttributes `protobuf:"bytes,6,opt,name=signalExecutionAttributes,proto3,oneof" json:"signalExecutionAttributes,omitempty"` +} + +func (*CrossClusterTaskResponse_StartChildExecutionAttributes) isCrossClusterTaskResponse_Attributes() { +} +func (*CrossClusterTaskResponse_CancelExecutionAttributes) isCrossClusterTaskResponse_Attributes() {} +func (*CrossClusterTaskResponse_SignalExecutionAttributes) isCrossClusterTaskResponse_Attributes() {} + +func (m *CrossClusterTaskResponse) GetAttributes() isCrossClusterTaskResponse_Attributes { + if m != nil { + return m.Attributes + } + return nil +} + +func (m *CrossClusterTaskResponse) GetTaskId() int64 { + if m != nil { + return m.TaskId + } + return 0 +} + +func (m *CrossClusterTaskResponse) GetTaskType() CrossClusterTaskType { + if m != nil { + return m.TaskType + } + return CrossClusterTaskType_CROSS_CLUSTER_TASK_TYPE_INVALID +} + +func (m *CrossClusterTaskResponse) GetFailedCause() CrossClusterTaskFailedCause { + if m != nil { + return m.FailedCause + } + return CrossClusterTaskFailedCause_CROSS_CLUSTER_TASK_FAILED_CAUSE_INVALID +} + +func (m *CrossClusterTaskResponse) GetStartChildExecutionAttributes() *CrossClusterStartChildExecutionResponseAttributes { + if x, ok := m.GetAttributes().(*CrossClusterTaskResponse_StartChildExecutionAttributes); ok { + return x.StartChildExecutionAttributes + } + return nil +} + +func (m *CrossClusterTaskResponse) GetCancelExecutionAttributes() *CrossClusterCancelExecutionResponseAttributes { + if x, ok := m.GetAttributes().(*CrossClusterTaskResponse_CancelExecutionAttributes); ok { + return x.CancelExecutionAttributes + } + return nil +} + +func (m *CrossClusterTaskResponse) GetSignalExecutionAttributes() *CrossClusterSignalExecutionResponseAttributes { + if x, ok := m.GetAttributes().(*CrossClusterTaskResponse_SignalExecutionAttributes); ok { + return x.SignalExecutionAttributes + } + return nil +} + +// XXX_OneofWrappers is for the internal use of the proto package. +func (*CrossClusterTaskResponse) XXX_OneofWrappers() []interface{} { + return []interface{}{ + (*CrossClusterTaskResponse_StartChildExecutionAttributes)(nil), + (*CrossClusterTaskResponse_CancelExecutionAttributes)(nil), + (*CrossClusterTaskResponse_SignalExecutionAttributes)(nil), + } +} + +type CrossClusterTaskRequests struct { + TaskRequests []*CrossClusterTaskRequest `protobuf:"bytes,1,rep,name=task_requests,json=taskRequests,proto3" json:"task_requests,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *CrossClusterTaskRequests) Reset() { *m = CrossClusterTaskRequests{} } +func (m *CrossClusterTaskRequests) String() string { return proto.CompactTextString(m) } +func (*CrossClusterTaskRequests) ProtoMessage() {} +func (*CrossClusterTaskRequests) Descriptor() ([]byte, []int) { + return fileDescriptor_8958fa454fc8f819, []int{9} +} +func (m *CrossClusterTaskRequests) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *CrossClusterTaskRequests) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_CrossClusterTaskRequests.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *CrossClusterTaskRequests) XXX_Merge(src proto.Message) { + xxx_messageInfo_CrossClusterTaskRequests.Merge(m, src) +} +func (m *CrossClusterTaskRequests) XXX_Size() int { + return m.Size() +} +func (m *CrossClusterTaskRequests) XXX_DiscardUnknown() { + xxx_messageInfo_CrossClusterTaskRequests.DiscardUnknown(m) +} + +var xxx_messageInfo_CrossClusterTaskRequests proto.InternalMessageInfo + +func (m *CrossClusterTaskRequests) GetTaskRequests() []*CrossClusterTaskRequest { + if m != nil { + return m.TaskRequests + } + return nil +} + func init() { proto.RegisterEnum("uber.cadence.shared.v1.TaskType", TaskType_name, TaskType_value) + proto.RegisterEnum("uber.cadence.shared.v1.CrossClusterTaskType", CrossClusterTaskType_name, CrossClusterTaskType_value) + proto.RegisterEnum("uber.cadence.shared.v1.CrossClusterTaskFailedCause", CrossClusterTaskFailedCause_name, CrossClusterTaskFailedCause_value) + proto.RegisterType((*CrossClusterTaskInfo)(nil), "uber.cadence.shared.v1.CrossClusterTaskInfo") + proto.RegisterType((*CrossClusterStartChildExecutionRequestAttributes)(nil), "uber.cadence.shared.v1.CrossClusterStartChildExecutionRequestAttributes") + proto.RegisterType((*CrossClusterStartChildExecutionResponseAttributes)(nil), "uber.cadence.shared.v1.CrossClusterStartChildExecutionResponseAttributes") + proto.RegisterType((*CrossClusterCancelExecutionRequestAttributes)(nil), "uber.cadence.shared.v1.CrossClusterCancelExecutionRequestAttributes") + proto.RegisterType((*CrossClusterCancelExecutionResponseAttributes)(nil), "uber.cadence.shared.v1.CrossClusterCancelExecutionResponseAttributes") + proto.RegisterType((*CrossClusterSignalExecutionRequestAttributes)(nil), "uber.cadence.shared.v1.CrossClusterSignalExecutionRequestAttributes") + proto.RegisterType((*CrossClusterSignalExecutionResponseAttributes)(nil), "uber.cadence.shared.v1.CrossClusterSignalExecutionResponseAttributes") + proto.RegisterType((*CrossClusterTaskRequest)(nil), "uber.cadence.shared.v1.CrossClusterTaskRequest") + proto.RegisterType((*CrossClusterTaskResponse)(nil), "uber.cadence.shared.v1.CrossClusterTaskResponse") + proto.RegisterType((*CrossClusterTaskRequests)(nil), "uber.cadence.shared.v1.CrossClusterTaskRequests") } func init() { @@ -83,18 +947,2744 @@ func init() { } var fileDescriptor_8958fa454fc8f819 = []byte{ - // 204 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0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x06, 0x96, 0x31, 0x06, 0x04, - 0x00, 0x00, 0xff, 0xff, 0x50, 0xb6, 0xf6, 0xfb, 0xf4, 0x00, 0x00, 0x00, + // 1159 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xec, 0x57, 0x4f, 0x6f, 0xe3, 0x44, + 0x14, 0xaf, 0x93, 0xfe, 0xcb, 0xa4, 0x2c, 0xe9, 0x94, 0x6e, 0xdd, 0x2e, 0x6d, 0x43, 0x90, 0x20, + 0x2a, 0x5d, 0x87, 0xb4, 0x5a, 0x81, 0x04, 0x12, 0xf2, 0x3a, 0xee, 0xd6, 0x6c, 0x36, 0xa9, 0xc6, + 0x6e, 0xbb, 0xcb, 0xc5, 0x72, 0xe2, 0x49, 0x3a, 0x6a, 0x62, 0x67, 0xed, 0x71, 0x4a, 0xee, 0x2c, + 0xe2, 0x08, 0xe2, 0x83, 0x70, 0xe2, 0xc0, 0x37, 0x40, 0x9c, 0x38, 0x71, 0xe1, 0x82, 0xfa, 0x49, + 0x90, 0xc7, 0x4e, 0xe3, 0xfc, 0xf7, 0xee, 0x72, 0xe4, 0x96, 0xbc, 0xf9, 0xbd, 0x37, 0xef, 0xbd, + 0xdf, 0x6f, 0xde, 0x8c, 0x41, 0xce, 0xab, 0x61, 0xa7, 0x50, 0x37, 0x4c, 0x6c, 0xd5, 0x71, 0xc1, + 0xbd, 0x32, 0x1c, 0x6c, 0x16, 0xba, 0xc5, 0xc2, 0x4b, 0x0f, 0x7b, 0x58, 0xe8, 0x38, 0x36, 0xb5, + 0xe1, 0x7d, 0x1f, 0x23, 0x84, 0x18, 0x21, 0xc0, 0x08, 0xdd, 0xe2, 0xce, 0x7e, 0xd3, 0xb6, 0x9b, + 0x2d, 0x5c, 0x60, 0xa8, 0x9a, 0xd7, 0x28, 0x50, 0xd2, 0xc6, 0x2e, 0x35, 0xda, 0x9d, 0xc0, 0x71, + 0x27, 0x3b, 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 0xe7, 0x97, 0x59, 0x69, 0x3b, 0x42, 0xc0, + 0x89, 0xd0, 0xe7, 0x44, 0xb8, 0x43, 0xa0, 0x49, 0x6e, 0xb9, 0xbf, 0x12, 0xe0, 0xd3, 0x68, 0xa2, + 0x2a, 0x35, 0x1c, 0x2a, 0x5d, 0x91, 0x96, 0x39, 0xe8, 0x03, 0x7e, 0xe9, 0x61, 0x97, 0x8a, 0x94, + 0x3a, 0xa4, 0xe6, 0x51, 0xec, 0xc2, 0x3c, 0xc8, 0x50, 0xc3, 0x69, 0x62, 0xaa, 0x8f, 0x12, 0x70, + 0x2f, 0xb0, 0x97, 0xfa, 0x34, 0xec, 0x02, 0xe0, 0x04, 0xee, 0x3e, 0x26, 0xc1, 0x30, 0xa9, 0xd0, + 0xa2, 0x98, 0xf0, 0x10, 0x40, 0x62, 0x11, 0x4a, 0x0c, 0x8a, 0x4d, 0x1d, 0x77, 0xb1, 0xc5, 0x60, + 0x49, 0x56, 0x6f, 0xe6, 0x6e, 0x45, 0xf6, 0x17, 0x14, 0x13, 0x7e, 0xcf, 0x81, 0x9d, 0x51, 0xb8, + 0x71, 0x97, 0x15, 0x6b, 0x61, 0xfa, 0xe8, 0x74, 0x22, 0xb9, 0x83, 0xb2, 0xc6, 0x68, 0x56, 0x86, + 0xb6, 0x19, 0x54, 0x89, 0x78, 0x32, 0x65, 0x05, 0xe6, 0xc0, 0x3b, 0x61, 0xfd, 0x8e, 0x67, 0xf5, + 0x19, 0x4a, 0xa1, 0x74, 0x60, 0x44, 0x9e, 0xa5, 0x98, 0xb9, 0xaf, 0x41, 0x71, 0x6e, 0x5f, 0xdd, + 0x8e, 0x6d, 0xb9, 0x38, 0x12, 0x78, 0x13, 0x2c, 0x87, 0x11, 0x83, 0x76, 0x2e, 0x39, 0x2c, 0xd6, + 0x6f, 0x09, 0x70, 0x18, 0x0d, 0x26, 0x19, 0x56, 0x1d, 0xb7, 0xfe, 0x13, 0x82, 0x6a, 0x60, 0x3b, + 0x44, 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0xce, 0x64, 0x5d, + 0xa9, 0x5c, 0x88, 0x65, 0xa5, 0x94, 0x59, 0x80, 0xf7, 0x01, 0x1c, 0x98, 0x35, 0x24, 0x56, 0xd4, + 0x13, 0x19, 0x65, 0x38, 0xb8, 0x01, 0xde, 0x8d, 0xd8, 0x95, 0x67, 0x32, 0xca, 0x24, 0xe0, 0x36, + 0xd8, 0x1c, 0x18, 0x91, 0x7c, 0x56, 0x56, 0x24, 0x51, 0x53, 0xaa, 0x95, 0x4c, 0xf2, 0xe0, 0x0f, + 0x6e, 0xfc, 0x59, 0xcf, 0xf6, 0xfd, 0x10, 0xec, 0x4b, 0xa8, 0xaa, 0xaa, 0xba, 0x54, 0x3e, 0x57, + 0x35, 0x19, 0xe9, 0x93, 0xb2, 0x28, 0x82, 0x87, 0xd3, 0x40, 0xaa, 0x26, 0x22, 0x4d, 0x97, 0x4e, + 0x95, 0x72, 0x49, 0x97, 0x9f, 0xcb, 0xd2, 0x39, 0xdb, 0x90, 0x83, 0x87, 0x20, 0x3f, 0xcd, 0x45, + 0x12, 0x2b, 0x92, 0x5c, 0x8e, 0xa0, 0x13, 0xb3, 0xd0, 0xaa, 0xf2, 0xa4, 0x22, 0x46, 0xd1, 0xc9, + 0x83, 0x5f, 0x12, 0xe0, 0xc1, 0x8c, 0x83, 0x08, 0x3f, 0x01, 0x1f, 0x4f, 0x88, 0x76, 0x22, 0x2a, + 0x65, 0xb9, 0xa4, 0x4b, 0xe2, 0xb9, 0x1a, 0xad, 0xed, 0x11, 0x28, 0xce, 0x03, 0x97, 0xaa, 0xcf, + 0x44, 0xa5, 0xa2, 0x57, 0xaa, 0x9a, 0x2e, 0x4a, 0x9a, 0x72, 0x21, 0x67, 0xb8, 0xd7, 0x74, 0x93, + 0x9f, 0x2b, 0xaa, 0xa6, 0x66, 0x12, 0xf0, 0x4b, 0xf0, 0xf9, 0x3c, 0xb7, 0xcb, 0x2a, 0x7a, 0x7a, + 0x52, 0xae, 0x5e, 0xea, 0x62, 0x19, 0xc9, 0x62, 0xe9, 0x85, 0x8e, 0xce, 0x2b, 0x15, 0xa5, 0xf2, + 0x24, 0x93, 0x84, 0x9f, 0x81, 0xe3, 0xd8, 0xde, 0x91, 0x6d, 0x17, 0x1f, 0x4b, 0xbf, 0xdf, 0xee, + 0x71, 0x7f, 0xde, 0xee, 0x71, 0xff, 0xdc, 0xee, 0x71, 0xdf, 0x3c, 0x6a, 0x12, 0x7a, 0xe5, 0xd5, + 0x84, 0xba, 0xdd, 0x2e, 0x0c, 0x7d, 0x11, 0x0a, 0x4d, 0x6c, 0x05, 0xdf, 0x97, 0x83, 0x6f, 0xd3, + 0x2f, 0x82, 0x5f, 0xdd, 0x62, 0x6d, 0x99, 0xad, 0x1c, 0xff, 0x1b, 0x00, 0x00, 0xff, 0xff, 0x7a, + 0xbe, 0x21, 0x2a, 0xc5, 0x0e, 0x00, 0x00, +} + +func (m *CrossClusterTaskInfo) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *CrossClusterTaskInfo) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *CrossClusterTaskInfo) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.VisibilityTimestamp != nil { + { + size, err := m.VisibilityTimestamp.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintQueue(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x32 + } + if m.TaskId != 0 { + i = encodeVarintQueue(dAtA, i, uint64(m.TaskId)) + i-- + dAtA[i] = 0x28 + } + if m.TaskState != 0 { + i = encodeVarintQueue(dAtA, i, uint64(m.TaskState)) + i-- + dAtA[i] = 0x20 + } + if m.TaskType != 0 { + i = encodeVarintQueue(dAtA, i, uint64(m.TaskType)) + i-- + dAtA[i] = 0x18 + } + if m.WorkflowExecution != nil { + { + size, err := m.WorkflowExecution.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintQueue(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + if len(m.DomainId) > 0 { + i -= len(m.DomainId) + copy(dAtA[i:], m.DomainId) + i = encodeVarintQueue(dAtA, i, uint64(len(m.DomainId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *CrossClusterStartChildExecutionRequestAttributes) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *CrossClusterStartChildExecutionRequestAttributes) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *CrossClusterStartChildExecutionRequestAttributes) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.TargetRunId) > 0 { + i -= len(m.TargetRunId) + copy(dAtA[i:], m.TargetRunId) + i = encodeVarintQueue(dAtA, i, uint64(len(m.TargetRunId))) + i-- + dAtA[i] = 0x2a + } + if m.InitiatedEventAttributes != nil { + { + size, err := m.InitiatedEventAttributes.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintQueue(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x22 + } + if m.InitiatedEventId != 0 { + i = encodeVarintQueue(dAtA, i, uint64(m.InitiatedEventId)) + i-- + dAtA[i] = 0x18 + } + if len(m.RequestId) > 0 { + i -= len(m.RequestId) + copy(dAtA[i:], m.RequestId) + i = encodeVarintQueue(dAtA, i, uint64(len(m.RequestId))) + i-- + dAtA[i] = 0x12 + } + if len(m.TargetDomainId) > 0 { + i -= len(m.TargetDomainId) + copy(dAtA[i:], m.TargetDomainId) + i = encodeVarintQueue(dAtA, i, uint64(len(m.TargetDomainId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *CrossClusterStartChildExecutionResponseAttributes) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *CrossClusterStartChildExecutionResponseAttributes) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *CrossClusterStartChildExecutionResponseAttributes) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.RunId) > 0 { + i -= len(m.RunId) + copy(dAtA[i:], m.RunId) + i = encodeVarintQueue(dAtA, i, uint64(len(m.RunId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *CrossClusterCancelExecutionRequestAttributes) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *CrossClusterCancelExecutionRequestAttributes) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *CrossClusterCancelExecutionRequestAttributes) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.ChildWorkflowOnly { + i-- + if m.ChildWorkflowOnly { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x28 + } + if m.InitiatedEventId != 0 { + i = encodeVarintQueue(dAtA, i, uint64(m.InitiatedEventId)) + i-- + dAtA[i] = 0x20 + } + if len(m.RequestId) > 0 { + i -= len(m.RequestId) + copy(dAtA[i:], m.RequestId) + i = encodeVarintQueue(dAtA, i, uint64(len(m.RequestId))) + i-- + dAtA[i] = 0x1a + } + if m.TargetWorkflowExecution != nil { + { + size, err := m.TargetWorkflowExecution.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintQueue(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + if len(m.TargetDomainId) > 0 { + i -= len(m.TargetDomainId) + copy(dAtA[i:], m.TargetDomainId) + i = encodeVarintQueue(dAtA, i, uint64(len(m.TargetDomainId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *CrossClusterCancelExecutionResponseAttributes) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *CrossClusterCancelExecutionResponseAttributes) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *CrossClusterCancelExecutionResponseAttributes) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + return len(dAtA) - i, nil +} + +func (m *CrossClusterSignalExecutionRequestAttributes) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *CrossClusterSignalExecutionRequestAttributes) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *CrossClusterSignalExecutionRequestAttributes) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.Control) > 0 { + i -= len(m.Control) + copy(dAtA[i:], m.Control) + i = encodeVarintQueue(dAtA, i, uint64(len(m.Control))) + i-- + dAtA[i] = 0x42 + } + if m.SignalInput != nil { + { + size, err := m.SignalInput.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintQueue(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x3a + } + if len(m.SignalName) > 0 { + i -= len(m.SignalName) + copy(dAtA[i:], m.SignalName) + i = encodeVarintQueue(dAtA, i, uint64(len(m.SignalName))) + i-- + dAtA[i] = 0x32 + } + if m.ChildWorkflowOnly { + i-- + if m.ChildWorkflowOnly { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x28 + } + if m.InitiatedEventId != 0 { + i = encodeVarintQueue(dAtA, i, uint64(m.InitiatedEventId)) + i-- + dAtA[i] = 0x20 + } + if len(m.RequestId) > 0 { + i -= len(m.RequestId) + copy(dAtA[i:], m.RequestId) + i = encodeVarintQueue(dAtA, i, uint64(len(m.RequestId))) + i-- + dAtA[i] = 0x1a + } + if m.TargetWorkflowExecution != nil { + { + size, err := m.TargetWorkflowExecution.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintQueue(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + if len(m.TargetDomainId) > 0 { + i -= len(m.TargetDomainId) + copy(dAtA[i:], m.TargetDomainId) + i = encodeVarintQueue(dAtA, i, uint64(len(m.TargetDomainId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *CrossClusterSignalExecutionResponseAttributes) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *CrossClusterSignalExecutionResponseAttributes) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) } + +func (m *CrossClusterSignalExecutionResponseAttributes) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + return len(dAtA) - i, nil +} + +func (m *CrossClusterTaskRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *CrossClusterTaskRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *CrossClusterTaskRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.Attributes != nil { + { + size := m.Attributes.Size() + i -= size + if _, err := m.Attributes.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + } + } + if m.TaskInfo != nil { + { + size, err := m.TaskInfo.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintQueue(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *CrossClusterTaskRequest_StartChildExecutionAttributes) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *CrossClusterTaskRequest_StartChildExecutionAttributes) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + if m.StartChildExecutionAttributes != nil { + { + size, err := m.StartChildExecutionAttributes.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintQueue(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + return len(dAtA) - i, nil +} +func (m *CrossClusterTaskRequest_CancelExecutionAttributes) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *CrossClusterTaskRequest_CancelExecutionAttributes) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + if m.CancelExecutionAttributes != nil { + { + size, err := m.CancelExecutionAttributes.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintQueue(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + } + return len(dAtA) - i, nil +} +func (m *CrossClusterTaskRequest_SignalExecutionAttributes) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *CrossClusterTaskRequest_SignalExecutionAttributes) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + if m.SignalExecutionAttributes != nil { + { + size, err := m.SignalExecutionAttributes.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintQueue(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x22 + } + return len(dAtA) - i, nil +} +func (m *CrossClusterTaskResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *CrossClusterTaskResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *CrossClusterTaskResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.Attributes != nil { + { + size := m.Attributes.Size() + i -= size + if _, err := m.Attributes.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + } + } + if m.FailedCause != 0 { + i = encodeVarintQueue(dAtA, i, uint64(m.FailedCause)) + i-- + dAtA[i] = 0x18 + } + if m.TaskType != 0 { + i = encodeVarintQueue(dAtA, i, uint64(m.TaskType)) + i-- + dAtA[i] = 0x10 + } + if m.TaskId != 0 { + i = encodeVarintQueue(dAtA, i, uint64(m.TaskId)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *CrossClusterTaskResponse_StartChildExecutionAttributes) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *CrossClusterTaskResponse_StartChildExecutionAttributes) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + if m.StartChildExecutionAttributes != nil { + { + size, err := m.StartChildExecutionAttributes.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintQueue(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x22 + } + return len(dAtA) - i, nil +} +func (m *CrossClusterTaskResponse_CancelExecutionAttributes) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *CrossClusterTaskResponse_CancelExecutionAttributes) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + if m.CancelExecutionAttributes != nil { + { + size, err := m.CancelExecutionAttributes.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintQueue(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x2a + } + return len(dAtA) - i, nil +} +func (m *CrossClusterTaskResponse_SignalExecutionAttributes) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *CrossClusterTaskResponse_SignalExecutionAttributes) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + if m.SignalExecutionAttributes != nil { + { + size, err := m.SignalExecutionAttributes.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintQueue(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x32 + } + return len(dAtA) - i, nil +} +func (m *CrossClusterTaskRequests) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *CrossClusterTaskRequests) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *CrossClusterTaskRequests) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.TaskRequests) > 0 { + for iNdEx := len(m.TaskRequests) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.TaskRequests[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintQueue(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + } + return len(dAtA) - i, nil +} + +func encodeVarintQueue(dAtA []byte, offset int, v uint64) int { + offset -= sovQueue(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *CrossClusterTaskInfo) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.DomainId) + if l > 0 { + n += 1 + l + sovQueue(uint64(l)) + } + if m.WorkflowExecution != nil { + l = m.WorkflowExecution.Size() + n += 1 + l + sovQueue(uint64(l)) + } + if m.TaskType != 0 { + n += 1 + sovQueue(uint64(m.TaskType)) + } + if m.TaskState != 0 { + n += 1 + sovQueue(uint64(m.TaskState)) + } + if m.TaskId != 0 { + n += 1 + sovQueue(uint64(m.TaskId)) + } + if m.VisibilityTimestamp != nil { + l = m.VisibilityTimestamp.Size() + n += 1 + l + sovQueue(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *CrossClusterStartChildExecutionRequestAttributes) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.TargetDomainId) + if l > 0 { + n += 1 + l + sovQueue(uint64(l)) + } + l = len(m.RequestId) + if l > 0 { + n += 1 + l + sovQueue(uint64(l)) + } + if m.InitiatedEventId != 0 { + n += 1 + sovQueue(uint64(m.InitiatedEventId)) + } + if m.InitiatedEventAttributes != nil { + l = m.InitiatedEventAttributes.Size() + n += 1 + l + sovQueue(uint64(l)) + } + l = len(m.TargetRunId) + if l > 0 { + n += 1 + l + sovQueue(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *CrossClusterStartChildExecutionResponseAttributes) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.RunId) + if l > 0 { + n += 1 + l + sovQueue(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *CrossClusterCancelExecutionRequestAttributes) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.TargetDomainId) + if l > 0 { + n += 1 + l + sovQueue(uint64(l)) + } + if m.TargetWorkflowExecution != nil { + l = m.TargetWorkflowExecution.Size() + n += 1 + l + sovQueue(uint64(l)) + } + l = len(m.RequestId) + if l > 0 { + n += 1 + l + sovQueue(uint64(l)) + } + if m.InitiatedEventId != 0 { + n += 1 + sovQueue(uint64(m.InitiatedEventId)) + } + if m.ChildWorkflowOnly { + n += 2 + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *CrossClusterCancelExecutionResponseAttributes) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *CrossClusterSignalExecutionRequestAttributes) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.TargetDomainId) + if l > 0 { + n += 1 + l + sovQueue(uint64(l)) + } + if m.TargetWorkflowExecution != nil { + l = m.TargetWorkflowExecution.Size() + n += 1 + l + sovQueue(uint64(l)) + } + l = len(m.RequestId) + if l > 0 { + n += 1 + l + sovQueue(uint64(l)) + } + if m.InitiatedEventId != 0 { + n += 1 + sovQueue(uint64(m.InitiatedEventId)) + } + if m.ChildWorkflowOnly { + n += 2 + } + l = len(m.SignalName) + if l > 0 { + n += 1 + l + sovQueue(uint64(l)) + } + if m.SignalInput != nil { + l = m.SignalInput.Size() + n += 1 + l + sovQueue(uint64(l)) + } + l = len(m.Control) + if l > 0 { + n += 1 + l + sovQueue(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *CrossClusterSignalExecutionResponseAttributes) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *CrossClusterTaskRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.TaskInfo != nil { + l = m.TaskInfo.Size() + n += 1 + l + sovQueue(uint64(l)) + } + if m.Attributes != nil { + n += m.Attributes.Size() + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *CrossClusterTaskRequest_StartChildExecutionAttributes) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.StartChildExecutionAttributes != nil { + l = m.StartChildExecutionAttributes.Size() + n += 1 + l + sovQueue(uint64(l)) + } + return n +} +func (m *CrossClusterTaskRequest_CancelExecutionAttributes) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.CancelExecutionAttributes != nil { + l = m.CancelExecutionAttributes.Size() + n += 1 + l + sovQueue(uint64(l)) + } + return n +} +func (m *CrossClusterTaskRequest_SignalExecutionAttributes) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.SignalExecutionAttributes != nil { + l = m.SignalExecutionAttributes.Size() + n += 1 + l + sovQueue(uint64(l)) + } + return n +} +func (m *CrossClusterTaskResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.TaskId != 0 { + n += 1 + sovQueue(uint64(m.TaskId)) + } + if m.TaskType != 0 { + n += 1 + sovQueue(uint64(m.TaskType)) + } + if m.FailedCause != 0 { + n += 1 + sovQueue(uint64(m.FailedCause)) + } + if m.Attributes != nil { + n += m.Attributes.Size() + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *CrossClusterTaskResponse_StartChildExecutionAttributes) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.StartChildExecutionAttributes != nil { + l = m.StartChildExecutionAttributes.Size() + n += 1 + l + sovQueue(uint64(l)) + } + return n +} +func (m *CrossClusterTaskResponse_CancelExecutionAttributes) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.CancelExecutionAttributes != nil { + l = m.CancelExecutionAttributes.Size() + n += 1 + l + sovQueue(uint64(l)) + } + return n +} +func (m *CrossClusterTaskResponse_SignalExecutionAttributes) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.SignalExecutionAttributes != nil { + l = m.SignalExecutionAttributes.Size() + n += 1 + l + sovQueue(uint64(l)) + } + return n +} +func (m *CrossClusterTaskRequests) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.TaskRequests) > 0 { + for _, e := range m.TaskRequests { + l = e.Size() + n += 1 + l + sovQueue(uint64(l)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func sovQueue(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozQueue(x uint64) (n int) { + return sovQueue(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *CrossClusterTaskInfo) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQueue + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: CrossClusterTaskInfo: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: CrossClusterTaskInfo: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field DomainId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQueue + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthQueue + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthQueue + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.DomainId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field WorkflowExecution", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQueue + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthQueue + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthQueue + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.WorkflowExecution == nil { + m.WorkflowExecution = &v1.WorkflowExecution{} + } + if err := m.WorkflowExecution.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field TaskType", wireType) + } + m.TaskType = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQueue + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.TaskType |= CrossClusterTaskType(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field TaskState", wireType) + } + m.TaskState = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQueue + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.TaskState |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 5: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field TaskId", wireType) + } + m.TaskId = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQueue + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.TaskId |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field VisibilityTimestamp", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQueue + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthQueue + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthQueue + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.VisibilityTimestamp == nil { + m.VisibilityTimestamp = &types.Timestamp{} + } + if err := m.VisibilityTimestamp.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipQueue(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthQueue + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthQueue + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *CrossClusterStartChildExecutionRequestAttributes) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQueue + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: CrossClusterStartChildExecutionRequestAttributes: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: CrossClusterStartChildExecutionRequestAttributes: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TargetDomainId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQueue + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthQueue + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthQueue + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.TargetDomainId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field RequestId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQueue + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthQueue + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthQueue + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.RequestId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field InitiatedEventId", wireType) + } + m.InitiatedEventId = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQueue + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.InitiatedEventId |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field InitiatedEventAttributes", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQueue + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthQueue + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthQueue + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.InitiatedEventAttributes == nil { + m.InitiatedEventAttributes = &v1.StartChildWorkflowExecutionInitiatedEventAttributes{} + } + if err := m.InitiatedEventAttributes.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TargetRunId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQueue + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthQueue + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthQueue + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.TargetRunId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipQueue(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthQueue + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthQueue + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *CrossClusterStartChildExecutionResponseAttributes) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQueue + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: CrossClusterStartChildExecutionResponseAttributes: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: CrossClusterStartChildExecutionResponseAttributes: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field RunId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQueue + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthQueue + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthQueue + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.RunId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipQueue(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthQueue + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthQueue + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *CrossClusterCancelExecutionRequestAttributes) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQueue + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: CrossClusterCancelExecutionRequestAttributes: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: CrossClusterCancelExecutionRequestAttributes: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TargetDomainId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQueue + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthQueue + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthQueue + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.TargetDomainId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TargetWorkflowExecution", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQueue + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthQueue + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthQueue + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.TargetWorkflowExecution == nil { + m.TargetWorkflowExecution = &v1.WorkflowExecution{} + } + if err := m.TargetWorkflowExecution.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field RequestId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQueue + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthQueue + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthQueue + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.RequestId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field InitiatedEventId", wireType) + } + m.InitiatedEventId = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQueue + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.InitiatedEventId |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 5: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ChildWorkflowOnly", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQueue + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.ChildWorkflowOnly = bool(v != 0) + default: + iNdEx = preIndex + skippy, err := skipQueue(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthQueue + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthQueue + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *CrossClusterCancelExecutionResponseAttributes) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQueue + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: CrossClusterCancelExecutionResponseAttributes: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: CrossClusterCancelExecutionResponseAttributes: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + default: + iNdEx = preIndex + skippy, err := skipQueue(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthQueue + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthQueue + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *CrossClusterSignalExecutionRequestAttributes) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQueue + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: CrossClusterSignalExecutionRequestAttributes: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: CrossClusterSignalExecutionRequestAttributes: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TargetDomainId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQueue + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthQueue + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthQueue + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.TargetDomainId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TargetWorkflowExecution", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQueue + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthQueue + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthQueue + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.TargetWorkflowExecution == nil { + m.TargetWorkflowExecution = &v1.WorkflowExecution{} + } + if err := m.TargetWorkflowExecution.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field RequestId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQueue + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthQueue + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthQueue + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.RequestId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field InitiatedEventId", wireType) + } + m.InitiatedEventId = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQueue + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.InitiatedEventId |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 5: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ChildWorkflowOnly", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQueue + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.ChildWorkflowOnly = bool(v != 0) + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SignalName", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQueue + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthQueue + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthQueue + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.SignalName = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 7: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SignalInput", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQueue + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthQueue + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthQueue + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.SignalInput == nil { + m.SignalInput = &v1.Payload{} + } + if err := m.SignalInput.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 8: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Control", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQueue + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLengthQueue + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthQueue + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Control = append(m.Control[:0], dAtA[iNdEx:postIndex]...) + if m.Control == nil { + m.Control = []byte{} + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipQueue(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthQueue + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthQueue + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *CrossClusterSignalExecutionResponseAttributes) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQueue + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: CrossClusterSignalExecutionResponseAttributes: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: CrossClusterSignalExecutionResponseAttributes: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + default: + iNdEx = preIndex + skippy, err := skipQueue(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthQueue + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthQueue + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *CrossClusterTaskRequest) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQueue + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: CrossClusterTaskRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: CrossClusterTaskRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TaskInfo", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQueue + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthQueue + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthQueue + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.TaskInfo == nil { + m.TaskInfo = &CrossClusterTaskInfo{} + } + if err := m.TaskInfo.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field StartChildExecutionAttributes", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQueue + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthQueue + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthQueue + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + v := &CrossClusterStartChildExecutionRequestAttributes{} + if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + m.Attributes = &CrossClusterTaskRequest_StartChildExecutionAttributes{v} + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CancelExecutionAttributes", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQueue + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthQueue + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthQueue + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + v := &CrossClusterCancelExecutionRequestAttributes{} + if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + m.Attributes = &CrossClusterTaskRequest_CancelExecutionAttributes{v} + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SignalExecutionAttributes", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQueue + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthQueue + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthQueue + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + v := &CrossClusterSignalExecutionRequestAttributes{} + if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + m.Attributes = &CrossClusterTaskRequest_SignalExecutionAttributes{v} + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipQueue(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthQueue + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthQueue + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *CrossClusterTaskResponse) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQueue + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: CrossClusterTaskResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: CrossClusterTaskResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field TaskId", wireType) + } + m.TaskId = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQueue + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.TaskId |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field TaskType", wireType) + } + m.TaskType = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQueue + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.TaskType |= CrossClusterTaskType(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field FailedCause", wireType) + } + m.FailedCause = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQueue + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.FailedCause |= CrossClusterTaskFailedCause(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field StartChildExecutionAttributes", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQueue + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthQueue + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthQueue + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + v := &CrossClusterStartChildExecutionResponseAttributes{} + if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + m.Attributes = &CrossClusterTaskResponse_StartChildExecutionAttributes{v} + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CancelExecutionAttributes", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQueue + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthQueue + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthQueue + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + v := &CrossClusterCancelExecutionResponseAttributes{} + if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + m.Attributes = &CrossClusterTaskResponse_CancelExecutionAttributes{v} + iNdEx = postIndex + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SignalExecutionAttributes", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQueue + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthQueue + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthQueue + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + v := &CrossClusterSignalExecutionResponseAttributes{} + if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + m.Attributes = &CrossClusterTaskResponse_SignalExecutionAttributes{v} + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipQueue(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthQueue + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthQueue + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *CrossClusterTaskRequests) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQueue + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: CrossClusterTaskRequests: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: CrossClusterTaskRequests: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TaskRequests", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQueue + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthQueue + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthQueue + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.TaskRequests = append(m.TaskRequests, &CrossClusterTaskRequest{}) + if err := m.TaskRequests[len(m.TaskRequests)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipQueue(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthQueue + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthQueue + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipQueue(dAtA []byte) (n int, err error) { + l := len(dAtA) + iNdEx := 0 + depth := 0 + for iNdEx < l { + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowQueue + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + wireType := int(wire & 0x7) + switch wireType { + case 0: + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowQueue + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + iNdEx++ + if dAtA[iNdEx-1] < 0x80 { + break + } + } + case 1: + iNdEx += 8 + case 2: + var length int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowQueue + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + length |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if length < 0 { + return 0, ErrInvalidLengthQueue + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupQueue + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthQueue + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthQueue = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowQueue = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupQueue = fmt.Errorf("proto: unexpected end of group") +) diff --git a/.gen/proto/shared/v1/queue.pb.yarpc.go b/.gen/proto/shared/v1/queue.pb.yarpc.go index 677c2a4d109..481771eb9ad 100644 --- a/.gen/proto/shared/v1/queue.pb.yarpc.go +++ b/.gen/proto/shared/v1/queue.pb.yarpc.go @@ -28,17 +28,605 @@ package sharedv1 var yarpcFileDescriptorClosure8958fa454fc8f819 = [][]byte{ // uber/cadence/shared/v1/queue.proto []byte{ - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x52, 0x2a, 0x4d, 0x4a, 0x2d, - 0xd2, 0x4f, 0x4e, 0x4c, 0x49, 0xcd, 0x4b, 0x4e, 0xd5, 0x2f, 0xce, 0x48, 0x2c, 0x4a, 0x4d, 0xd1, - 0x2f, 0x33, 0xd4, 0x2f, 0x2c, 0x4d, 0x2d, 0x4d, 0xd5, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x12, - 0x03, 0xa9, 0xd1, 0x83, 0xaa, 0xd1, 0x83, 0xa8, 0xd1, 0x2b, 0x33, 0xd4, 0xca, 0xe4, 0xe2, 0x08, - 0x49, 0x2c, 0xce, 0x0e, 0xa9, 0x2c, 0x48, 0x15, 0x12, 0xe5, 0x12, 0x0c, 0x71, 0x0c, 0xf6, 0x8e, - 0x0f, 0x89, 0x0c, 0x70, 0x8d, 0xf7, 0xf4, 0x0b, 0x73, 0xf4, 0xf1, 0x74, 0x11, 0x60, 0x10, 0x12, - 0xe3, 0x12, 0x42, 0x08, 0x87, 0x04, 0x39, 0xfa, 0x05, 0xbb, 0xb9, 0x06, 0x09, 0x30, 0x0a, 0x09, - 0x73, 0xf1, 0x23, 0x89, 0x7b, 0xfa, 0xba, 0x06, 0x09, 0x30, 0x09, 0x49, 0x72, 0x89, 0x22, 0x04, - 0x83, 0x5c, 0x03, 0x7c, 0x3c, 0x9d, 0x1d, 0x43, 0x3c, 0xfd, 0xfd, 0x04, 0x98, 0x9d, 0xcc, 0xa3, - 0x4c, 0xd3, 0x33, 0x4b, 0x32, 0x4a, 0x93, 0xf4, 0x92, 0xf3, 0x73, 0xf5, 0x51, 0xdc, 0xac, 0x97, - 0x9e, 0x9a, 0xa7, 0x0f, 0x76, 0x28, 0xc2, 0xf9, 0xd6, 0x10, 0x56, 0x99, 0x61, 0x12, 0x1b, 0x58, - 0xc6, 0x18, 0x10, 0x00, 0x00, 0xff, 0xff, 0xe6, 0x91, 0x63, 0x5d, 0xe8, 0x00, 0x00, 0x00, + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xec, 0x57, 0xcd, 0x6e, 0xdb, 0x46, + 0x10, 0x0e, 0x25, 0xdb, 0xb1, 0x46, 0x6e, 0xaa, 0x6c, 0x9a, 0x84, 0x71, 0x6a, 0x58, 0x55, 0x81, + 0x56, 0x70, 0x1d, 0xa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 0x8d, 0x0d, 0xbe, 0x72, 0xf8, 0x6f, 0x00, 0x00, 0x00, 0xff, 0xff, + 0x06, 0x68, 0xab, 0x76, 0xb9, 0x0e, 0x00, 0x00, + }, + // google/protobuf/timestamp.proto + []byte{ + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x92, 0x4f, 0xcf, 0xcf, 0x4f, + 0xcf, 0x49, 0xd5, 0x2f, 0x28, 0xca, 0x2f, 0xc9, 0x4f, 0x2a, 0x4d, 0xd3, 0x2f, 0xc9, 0xcc, 0x4d, + 0x2d, 0x2e, 0x49, 0xcc, 0x2d, 0xd0, 0x03, 0x0b, 0x09, 0xf1, 0x43, 0x14, 0xe8, 0xc1, 0x14, 0x28, + 0x59, 0x73, 0x71, 0x86, 0xc0, 0xd4, 0x08, 0x49, 0x70, 0xb1, 0x17, 0xa7, 0x26, 0xe7, 0xe7, 0xa5, + 0x14, 0x4b, 0x30, 0x2a, 0x30, 0x6a, 0x30, 0x07, 0xc1, 0xb8, 0x42, 0x22, 0x5c, 0xac, 0x79, 0x89, + 0x79, 0xf9, 0xc5, 0x12, 0x4c, 0x0a, 0x8c, 0x1a, 0xac, 0x41, 0x10, 0x8e, 0x53, 0x2b, 0x23, 0x97, + 0x70, 0x72, 0x7e, 0xae, 0x1e, 0x9a, 0xa1, 0x4e, 0x7c, 0x70, 0x23, 0x03, 0x40, 0x42, 0x01, 0x8c, + 0x51, 0x46, 0x50, 0x25, 0xe9, 0xf9, 0x39, 0x89, 0x79, 0xe9, 0x7a, 0xf9, 0x45, 0xe9, 0x48, 0x6e, + 0xac, 0x2c, 0x48, 0x2d, 0xd6, 0xcf, 0xce, 0xcb, 0x2f, 0xcf, 0x43, 0xb8, 0xb7, 0x20, 0xe9, 0x07, + 0x23, 0xe3, 0x22, 0x26, 0x66, 0xf7, 0x00, 0xa7, 0x55, 0x4c, 0x72, 0xee, 0x10, 0xdd, 0x01, 0x50, + 0x2d, 0x7a, 0xe1, 0xa9, 0x39, 0x39, 0xde, 0x20, 0x0d, 0x21, 0x20, 0xbd, 0x49, 0x6c, 0x60, 0xb3, + 0x8c, 0x01, 0x01, 0x00, 0x00, 0xff, 0xff, 0xae, 0x65, 0xce, 0x7d, 0xff, 0x00, 0x00, 0x00, + }, + // uber/cadence/api/v1/common.proto + []byte{ + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x55, 0x4f, 0x6f, 0xdb, 0x36, + 0x14, 0x9f, 0xe2, 0xda, 0x49, 0x9f, 0xdd, 0xd4, 0x63, 0xd6, 0xd4, 0xc9, 0xfe, 0x79, 0x06, 0x86, + 0x66, 0x3b, 0x48, 0x88, 0x7b, 0x29, 0x56, 0x14, 0x83, 0x13, 0x3b, 0xab, 0xda, 0x2d, 0x31, 0x64, + 0x23, 0xc1, 0x76, 0x98, 0x40, 0x4b, 0x4f, 0x2e, 0x67, 0x89, 0x14, 0x28, 0xca, 0x89, 0x6f, 0xfb, + 0x24, 0x3b, 0xec, 0x2b, 0xed, 0x0b, 0x0d, 0x94, 0xe8, 0xd8, 0xee, 0x3c, 0xf4, 0x32, 0xec, 0x46, + 0xbe, 0xdf, 0x9f, 0xf7, 0xa3, 0xf0, 0x48, 0x41, 0x3b, 0x9f, 0xa0, 0x74, 0x02, 0x1a, 0x22, 0x0f, + 0xd0, 0xa1, 0x29, 0x73, 0xe6, 0xa7, 0x4e, 0x20, 0x92, 0x44, 0x70, 0x3b, 0x95, 0x42, 0x09, 0x72, + 0xa0, 0x19, 0xb6, 0x61, 0xd8, 0x34, 0x65, 0xf6, 0xfc, 0xf4, 0xf8, 0x8b, 0xa9, 0x10, 0xd3, 0x18, + 0x9d, 0x82, 0x32, 0xc9, 0x23, 0x27, 0xcc, 0x25, 0x55, 0x6c, 0x29, 0xea, 0xbc, 0x85, 0x8f, 0x6f, + 0x84, 0x9c, 0x45, 0xb1, 0xb8, 0x1d, 0xdc,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xf9, 0x83, 0x3f, 0xfe, 0x79, 0x38, 0xf0, + 0xdd, 0xcb, 0xeb, 0xde, 0x8f, 0x6e, 0xbf, 0xf9, 0x11, 0x39, 0x86, 0xc3, 0x4d, 0x68, 0xfc, 0xda, + 0x73, 0x2f, 0xc6, 0xde, 0x4d, 0xd3, 0x22, 0x87, 0x40, 0x36, 0xb1, 0x37, 0xa3, 0xab, 0xcb, 0xe6, + 0x0e, 0x69, 0xc1, 0x27, 0x9b, 0xf5, 0xa1, 0x77, 0x35, 0xbe, 0x7a, 0xde, 0xac, 0x9c, 0x5d, 0xc3, + 0xd3, 0x40, 0x24, 0xdb, 0x86, 0xfc, 0x6c, 0xaf, 0x97, 0xb2, 0xa1, 0x4e, 0x3f, 0xb4, 0x7e, 0x71, + 0xa6, 0x4c, 0xbd, 0xcb, 0x27, 0x76, 0x20, 0x12, 0x67, 0xe3, 0xc7, 0x64, 0x4f, 0x91, 0x97, 0x3f, + 0x1b, 0xf3, 0x8f, 0x7a, 0x49, 0x53, 0x36, 0x3f, 0x9d, 0xd4, 0x8a, 0xda, 0xf3, 0xbf, 0x03, 0x00, + 0x00, 0xff, 0xff, 0xdc, 0x8c, 0x77, 0x9a, 0xc7, 0x06, 0x00, 0x00, + }, + // google/protobuf/duration.proto + []byte{ + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x92, 0x4b, 0xcf, 0xcf, 0x4f, + 0xcf, 0x49, 0xd5, 0x2f, 0x28, 0xca, 0x2f, 0xc9, 0x4f, 0x2a, 0x4d, 0xd3, 0x4f, 0x29, 0x2d, 0x4a, + 0x2c, 0xc9, 0xcc, 0xcf, 0xd3, 0x03, 0x8b, 0x08, 0xf1, 0x43, 0xe4, 0xf5, 0x60, 0xf2, 0x4a, 0x56, + 0x5c, 0x1c, 0x2e, 0x50, 0x25, 0x42, 0x12, 0x5c, 0xec, 0xc5, 0xa9, 0xc9, 0xf9, 0x79, 0x29, 0xc5, + 0x12, 0x8c, 0x0a, 0x8c, 0x1a, 0xcc, 0x41, 0x30, 0xae, 0x90, 0x08, 0x17, 0x6b, 0x5e, 0x62, 0x5e, + 0x7e, 0xb1, 0x04, 0x93, 0x02, 0xa3, 0x06, 0x6b, 0x10, 0x84, 0xe3, 0xd4, 0xcc, 0xc8, 0x25, 0x9c, + 0x9c, 0x9f, 0xab, 0x87, 0x66, 0xa6, 0x13, 0x2f, 0xcc, 0xc4, 0x00, 0x90, 0x48, 0x00, 0x63, 0x94, + 0x21, 0x54, 0x45, 0x7a, 0x7e, 0x4e, 0x62, 0x5e, 0xba, 0x5e, 0x7e, 0x51, 0x3a, 0xc2, 0x81, 0x25, + 0x95, 0x05, 0xa9, 0xc5, 0xfa, 0xd9, 0x79, 0xf9, 0xe5, 0x79, 0x70, 0xc7, 0x16, 0x24, 0xfd, 0x60, + 0x64, 0x5c, 0xc4, 0xc4, 0xec, 0x1e, 0xe0, 0xb4, 0x8a, 0x49, 0xce, 0x1d, 0xa2, 0x39, 0x00, 0xaa, + 0x43, 0x2f, 0x3c, 0x35, 0x27, 0xc7, 0x1b, 0xa4, 0x3e, 0x04, 0xa4, 0x35, 0x89, 0x0d, 0x6c, 0x94, + 0x31, 0x20, 0x00, 0x00, 0xff, 0xff, 0xef, 0x8a, 0xb4, 0xc3, 0xfb, 0x00, 0x00, 0x00, + }, + // uber/cadence/api/v1/history.proto + []byte{ + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xec, 0x5c, 0x5f, 0x6c, 0x1c, 0x57, + 0xd5, 0xef, 0xec, 0xda, 0xbb, 0xde, 0xb3, 0x8e, 0x63, 0xdf, 0x24, 0x8e, 0x9d, 0xbf, 0xce, 0x24, + 0x4d, 0x5c, 0xc7, 0x59, 0x27, 0x4e, 0x9a, 0x7c, 0x69, 0xbe, 0xb6, 0x38, 0x8e, 0xad, 0xae, 0x64, + 0x92, 0x68, 0xe2, 0xa4, 0x80, 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, 0xd6, 0x31, 0x13, 0x60, 0x81, 0x00, 0x7c, 0x41, 0x0c, 0xe0, 0x72, 0xc0, + 0x27, 0x0e, 0xf1, 0x99, 0xb6, 0x28, 0x31, 0x7a, 0x53, 0x82, 0x39, 0x06, 0xc8, 0x4d, 0xd5, 0xa8, + 0xb3, 0x10, 0x16, 0x09, 0xc2, 0x1b, 0x62, 0x08, 0x57, 0x09, 0x93, 0x38, 0xbc, 0xb3, 0x6d, 0x21, + 0x4a, 0xf4, 0x2d, 0xb6, 0x00, 0x3d, 0xdd, 0xd2, 0x6b, 0x56, 0xcb, 0x8d, 0xc3, 0x1b, 0x21, 0xf0, + 0x9e, 0x17, 0x83, 0xe7, 0xa9, 0x9d, 0x7e, 0xa7, 0xe5, 0xc6, 0x01, 0xce, 0xb6, 0x05, 0x69, 0xd1, + 0x1b, 0x12, 0xcc, 0xea, 0x58, 0x33, 0x1c, 0x02, 0xcc, 0xd3, 0x52, 0x47, 0xdb, 0xc2, 0x7a, 0x8b, + 0x29, 0xbc, 0x12, 0x41, 0x77, 0x9d, 0x89, 0xee, 0x16, 0x65, 0xb2, 0xae, 0x3a, 0xdb, 0xf7, 0x02, + 0x16, 0x71, 0x64, 0x67, 0x74, 0x01, 0x3a, 0xf4, 0x9a, 0x04, 0x67, 0x23, 0xa8, 0x78, 0x36, 0x01, + 0x04, 0xd3, 0xb5, 0x74, 0x4c, 0x3c, 0x73, 0x90, 0xf5, 0x54, 0x2a, 0x86, 0x94, 0x12, 0x8c, 0xa0, + 0x2c, 0x28, 0xa5, 0x04, 0xfd, 0x0f, 0x49, 0x89, 0xab, 0xfa, 0xaf, 0xc7, 0x50, 0x25, 0x68, 0xd6, + 0x28, 0x41, 0xf5, 0x7f, 0xa9, 0xa8, 0xf8, 0x4a, 0x75, 0x5a, 0x4f, 0x27, 0x43, 0x5f, 0x94, 0xe0, + 0xe9, 0x30, 0x26, 0x9e, 0x25, 0xee, 0x23, 0x80, 0xae, 0xa6, 0x02, 0xe2, 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c9, 0xdd, 0x7c, 0x00, 0x87, 0x35, 0xab, 0xc1, 0x92, 0xc1, 0xcd, 0x91, + 0xa5, 0xa6, 0x71, 0xd7, 0x0b, 0x61, 0xef, 0x4a, 0x9f, 0x5a, 0x78, 0x68, 0xb8, 0x5b, 0xad, 0x8d, + 0x8a, 0x66, 0x35, 0x16, 0x42, 0xff, 0xe7, 0xb4, 0xf2, 0x10, 0x9b, 0xfe, 0x7f, 0x56, 0xa5, 0xff, + 0xf2, 0xf4, 0x86, 0xda, 0x34, 0x76, 0x2e, 0x6d, 0x14, 0xc8, 0xd8, 0xe5, 0xff, 0x04, 0x00, 0x00, + 0xff, 0xff, 0xee, 0x07, 0x38, 0xbd, 0xd5, 0x55, 0x00, 0x00, + }, + // uber/cadence/api/v1/tasklist.proto + []byte{ + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x7c, 0x54, 0xdd, 0x6e, 0xdb, 0x36, + 0x14, 0x9e, 0xe2, 0xb4, 0x73, 0x98, 0x25, 0xd5, 0xb8, 0xb5, 0x8d, 0xdd, 0x75, 0xcb, 0x74, 0x51, + 0x04, 0xc5, 0x20, 0x21, 0x19, 0x76, 0xb5, 0x8b, 0xc1, 0x89, 0x83, 0x55, 0x88, 0xe3, 0x1a, 0x92, + 0x1a, 0x20, 0xbb, 0xe1, 0x28, 0xf1, 0xd4, 0x21, 0xf4, 0x43, 0x81, 0xa4, 0x92, 0xf8, 0x45, 0xf6, + 0x30, 0x7b, 0xa2, 0x3d, 0xc6, 0x40, 0x4a, 0xf6, 0xdc, 0xc4, 0xeb, 0x1d, 0x79, 0xbe, 0xf3, 0x9d, + 0x9f, 0x8f, 0xe7, 0x10, 0x79, 0x4d, 0x0a, 0x32, 0xc8, 0x28, 0x83, 0x2a, 0x83, 0x80, 0xd6, 0x3c, + 0xb8, 0x3d, 0x0e, 0x34, 0x55, 0x79, 0xc1, 0x95, 0xf6, 0x6b, 0x29, 0xb4, 0xc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0x15, 0x48, 0x72, 0x23, 0x94, 0x26, 0xb6, 0xcf, 0x2d, 0x8b, 0xee, 0x59, 0xf3, 0x3b, 0xa1, + 0xf4, 0x94, 0x96, 0xe0, 0xfd, 0xe3, 0xa0, 0xfd, 0x65, 0xdc, 0x58, 0x53, 0xdd, 0x28, 0xfc, 0x13, + 0xc2, 0x29, 0xcd, 0xf2, 0x42, 0xcc, 0x49, 0x26, 0x9a, 0x4a, 0x93, 0x1b, 0x5e, 0x69, 0x1b, 0xbb, + 0x17, 0xb9, 0x1d, 0x72, 0x66, 0x80, 0x77, 0xbc, 0xd2, 0xf8, 0x35, 0x42, 0x12, 0x28, 0x23, 0x05, + 0xdc, 0x42, 0x61, 0x73, 0xf4, 0xa2, 0x1d, 0x63, 0x99, 0x18, 0x03, 0x7e, 0x85, 0x76, 0x68, 0x96, + 0x77, 0x68, 0xcf, 0xa2, 0x7d, 0x9a, 0xe5, 0x2d, 0xf8, 0x06, 0x3d, 0x93, 0x54, 0xc3, 0xba, 0x3a, + 0xdb, 0x87, 0xce, 0x91, 0x13, 0xed, 0x19, 0xf3, 0xaa, 0x77, 0x3c, 0x46, 0x7b, 0x46, 0x46, 0xc2, + 0x19, 0x49, 0x0b, 0x91, 0xe5, 0x07, 0x4f, 0xac, 0x86, 0x87, 0xff, 0xfb, 0x3c, 0xe1, 0xf8, 0xd4, + 0xf8, 0x45, 0xbb, 0x86, 0x16, 0x32, 0x7b, 0xf1, 0x7e, 0x43, 0xbb, 0x6b, 0x18, 0x1e, 0xa0, 0xbe, + 0xd2, 0x54, 0x6a, 0xc2, 0x59, 0xd7, 0xdc, 0x97, 0xf6, 0x1e, 0x32, 0xfc, 0x1c, 0x3d, 0x85, 0x8a, + 0x19, 0xa0, 0xed, 0xe7, 0x09, 0x54, 0x2c, 0x64, 0xde, 0x5f, 0x0e, 0x42, 0x33, 0x51, 0x14, 0x20, + 0xc3, 0xea, 0xa3, 0xc0, 0x63, 0xe4, 0x16, 0x54, 0x69, 0x42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 0xd3, 0x0c, 0xc9, + 0xf5, 0xec, 0x7c, 0x2d, 0xc3, 0x2b, 0xf4, 0xf2, 0x01, 0x36, 0x3e, 0x3f, 0x0b, 0xe3, 0xf0, 0xfd, + 0xd4, 0x75, 0x36, 0x80, 0xa3, 0xb3, 0x24, 0xbc, 0x0a, 0x93, 0x6b, 0x77, 0xeb, 0xf4, 0x0a, 0xbd, + 0xcc, 0x44, 0xb9, 0x49, 0xd1, 0xd3, 0xfe, 0xa8, 0xe6, 0x33, 0x23, 0xc8, 0xcc, 0xf9, 0x23, 0x98, + 0x73, 0x7d, 0xd3, 0xa4, 0x7e, 0x26, 0xca, 0xe0, 0x93, 0x6f, 0xd2, 0x9f, 0x43, 0xd5, 0xfe, 0x5b, + 0xdd, 0x8f, 0xf9, 0x2b, 0xad, 0xf9, 0xed, 0x71, 0xfa, 0xd4, 0xda, 0x7e, 0xfe, 0x37, 0x00, 0x00, + 0xff, 0xff, 0x58, 0x62, 0x2b, 0xbf, 0x55, 0x05, 0x00, 0x00, + }, + // google/protobuf/wrappers.proto + []byte{ + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x92, 0x4b, 0xcf, 0xcf, 0x4f, + 0xcf, 0x49, 0xd5, 0x2f, 0x28, 0xca, 0x2f, 0xc9, 0x4f, 0x2a, 0x4d, 0xd3, 0x2f, 0x2f, 0x4a, 0x2c, + 0x28, 0x48, 0x2d, 0x2a, 0xd6, 0x03, 0x8b, 0x08, 0xf1, 0x43, 0xe4, 0xf5, 0x60, 0xf2, 0x4a, 0xca, + 0x5c, 0xdc, 0x2e, 0xf9, 0xa5, 0x49, 0x39, 0xa9, 0x61, 0x89, 0x39, 0xa5, 0xa9, 0x42, 0x22, 0x5c, + 0xac, 0x65, 0x20, 0x86, 0x04, 0xa3, 0x02, 0xa3, 0x06, 0x63, 0x10, 0x84, 0xa3, 0xa4, 0xc4, 0xc5, + 0xe5, 0x96, 0x93, 0x9f, 0x58, 0x82, 0x45, 0x0d, 0x13, 0x92, 0x1a, 0xcf, 0xbc, 0x12, 0x33, 0x13, + 0x2c, 0x6a, 0x98, 0x61, 0x6a, 0x94, 0xb9, 0xb8, 0x43, 0x71, 0x29, 0x62, 0x41, 0x35, 0xc8, 0xd8, + 0x08, 0x8b, 0x1a, 0x56, 0x34, 0x83, 0xb0, 0x2a, 0xe2, 0x85, 0x29, 0x52, 0xe4, 0xe2, 0x74, 0xca, + 0xcf, 0xcf, 0xc1, 0xa2, 0x84, 0x03, 0xc9, 0x9c, 0xe0, 0x92, 0xa2, 0xcc, 0xbc, 0x74, 0x2c, 0x8a, + 0x38, 0x91, 0x1c, 0xe4, 0x54, 0x59, 0x92, 0x5a, 0x8c, 0x45, 0x0d, 0x0f, 0x54, 0x8d, 0x53, 0x33, + 0x23, 0x97, 0x70, 0x72, 0x7e, 0xae, 0x1e, 0x5a, 0xf0, 0x3a, 0xf1, 0x86, 0x43, 0xc3, 0x3f, 0x00, + 0x24, 0x12, 0xc0, 0x18, 0x65, 0x08, 0x55, 0x91, 0x9e, 0x9f, 0x93, 0x98, 0x97, 0xae, 0x97, 0x5f, + 0x94, 0x8e, 0x88, 0xab, 0x92, 0xca, 0x82, 0xd4, 0x62, 0xfd, 0xec, 0xbc, 0xfc, 0xf2, 0x3c, 0x78, + 0xbc, 0x15, 0x24, 0xfd, 0x60, 0x64, 0x5c, 0xc4, 0xc4, 0xec, 0x1e, 0xe0, 0xb4, 0x8a, 0x49, 0xce, + 0x1d, 0xa2, 0x39, 0x00, 0xaa, 0x43, 0x2f, 0x3c, 0x35, 0x27, 0xc7, 0x1b, 0xa4, 0x3e, 0x04, 0xa4, + 0x35, 0x89, 0x0d, 0x6c, 0x94, 0x31, 0x20, 0x00, 0x00, 0xff, 0xff, 0x3c, 0x92, 0x48, 0x30, 0x06, + 0x02, 0x00, 0x00, + }, + // uber/cadence/api/v1/workflow.proto + []byte{ + 0x1f, 0x8b, 0x08, 0x00, 0x00, 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 0x74, 0x9e, 0xf1, 0x03, 0x74, 0x17, 0xee, 0xc4, 0xfa, + 0x42, 0xde, 0x36, 0x4c, 0xc3, 0x32, 0x14, 0xab, 0x82, 0x13, 0xf5, 0x9d, 0x08, 0x63, 0x03, 0xa9, + 0xe9, 0x38, 0xaa, 0xeb, 0x78, 0x18, 0xd6, 0x2d, 0x7c, 0x24, 0x5a, 0x21, 0x72, 0x98, 0xf1, 0x58, + 0x15, 0xb3, 0xf9, 0x16, 0xf3, 0x2f, 0x67, 0x8b, 0xbf, 0x97, 0x20, 0x27, 0xbe, 0x45, 0xf9, 0xa7, + 0x4a, 0x1e, 0x2e, 0xb3, 0x05, 0x56, 0xea, 0x96, 0x6d, 0x1d, 0x55, 0xf5, 0xc1, 0x1e, 0x1e, 0xb8, + 0xc3, 0xed, 0xc1, 0xb6, 0x2a, 0x51, 0x75, 0x22, 0x27, 0x19, 0x04, 0x88, 0xa7, 0x30, 0x0c, 0x07, + 0xcb, 0x99, 0x89, 0x98, 0x48, 0x27, 0x8b, 0xae, 0xc1, 0x95, 0x01, 0xcc, 0xbe, 0xae, 0x60, 0x6b, + 0x57, 0x57, 0x2c, 0x79, 0xa6, 0xf8, 0x1b, 0x09, 0xae, 0xc6, 0x4e, 0x68, 0xb1, 0x17, 0xab, 0xdb, + 0x26, 0xcd, 0x4a, 0x97, 0xaa, 0x4e, 0x37, 0x24, 0xe8, 0x01, 0xdc, 0xed, 0x79, 0x98, 0xa5, 0xd4, + 0xde, 0xf4, 0xf7, 0xca, 0x56, 0x15, 0x36, 0xdc, 0xfd, 0xd5, 0xa4, 0x42, 0x45, 0x0a, 0xb2, 0x84, + 0xee, 0xc3, 0x17, 0x93, 0xa1, 0x58, 0xaf, 0xe9, 0x96, 0x9c, 0x29, 0xfe, 0x23, 0x07, 0x1b, 0xc9, + 0xe4, 0xd8, 0x81, 0x9e, 0x34, 0xa3, 0xd4, 0xee, 0x41, 0x61, 0x50, 0x44, 0xf8, 0xdc, 0xc5, 0xb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 0x25, 0xd7, 0xcd, 0x37, 0x66, + 0xe5, 0xd0, 0x9c, 0x44, 0x10, 0x8b, 0xa8, 0xb9, 0xa7, 0xfc, 0x9f, 0xc6, 0xd3, 0x2d, 0x42, 0xb4, + 0xdd, 0x7f, 0xb6, 0x88, 0xcf, 0x25, 0x4f, 0xb5, 0x88, 0xdd, 0xb7, 0xb0, 0xd1, 0xf0, 0xdb, 0xa3, + 0xbe, 0xe2, 0x77, 0xe7, 0x95, 0x8e, 0x5b, 0x65, 0x5f, 0xb0, 0x55, 0xe9, 0xbb, 0xed, 0x53, 0x97, + 0x9e, 0x75, 0x8f, 0x4b, 0x0d, 0xbf, 0xbd, 0x3d, 0xf0, 0xfb, 0x63, 0xe9, 0x94, 0x78, 0xd1, 0xaf, + 0x99, 0xe2, 0xa7, 0xc8, 0xe7, 0x4e, 0xc7, 0xfd, 0xb0, 0x73, 0x3c, 0xc7, 0x63, 0x8f, 0xff, 0x1d, + 0x00, 0x00, 0xff, 0xff, 0x1c, 0xfe, 0xdc, 0x7d, 0x4a, 0x1d, 0x00, 0x00, }, } diff --git a/common/archiver/historyIterator.go b/common/archiver/historyIterator.go index 2620169751d..c17b8a74bf3 100644 --- a/common/archiver/historyIterator.go +++ b/common/archiver/historyIterator.go @@ -29,7 +29,7 @@ import ( "github.com/uber/cadence/common" "github.com/uber/cadence/common/persistence" - "github.com/uber/cadence/common/persistence/persistence-utils" + persistenceutils "github.com/uber/cadence/common/persistence/persistence-utils" "github.com/uber/cadence/common/types" ) diff --git a/common/persistence/cassandra/cassandraHistoryPersistence.go b/common/persistence/cassandra/cassandraHistoryPersistence.go index af3921c92c8..3c2d955bec6 100644 --- a/common/persistence/cassandra/cassandraHistoryPersistence.go +++ b/common/persistence/cassandra/cassandraHistoryPersistence.go @@ -32,7 +32,7 @@ import ( "github.com/uber/cadence/common/persistence/nosql/nosqlplugin" "github.com/uber/cadence/common/persistence/nosql/nosqlplugin/cassandra" "github.com/uber/cadence/common/persistence/nosql/nosqlplugin/cassandra/gocql" - "github.com/uber/cadence/common/persistence/persistence-utils" + persistenceutils "github.com/uber/cadence/common/persistence/persistence-utils" "github.com/uber/cadence/common/types" ) diff --git a/common/persistence/sql/sqlHistoryStore.go b/common/persistence/sql/sqlHistoryStore.go index e05ec87cacf..eb8074f53da 100644 --- a/common/persistence/sql/sqlHistoryStore.go +++ b/common/persistence/sql/sqlHistoryStore.go @@ -26,7 +26,7 @@ import ( "fmt" "time" - "github.com/uber/cadence/common/persistence/persistence-utils" + persistenceutils "github.com/uber/cadence/common/persistence/persistence-utils" "github.com/uber/cadence/common/persistence/serialization" "github.com/uber/cadence/common/types" diff --git a/idls b/idls index 7d2d225f313..ab860cdfc5d 160000 --- a/idls +++ b/idls @@ -1 +1 @@ -Subproject commit 7d2d225f3137d3105243ee5021b4d44565735d8a +Subproject commit ab860cdfc5d8ab95a20b862586452215e489c668 diff --git a/proto/internal/uber/cadence/admin/v1/service.proto b/proto/internal/uber/cadence/admin/v1/service.proto index b2e0e84b122..edfd6554038 100644 --- a/proto/internal/uber/cadence/admin/v1/service.proto +++ b/proto/internal/uber/cadence/admin/v1/service.proto @@ -94,6 +94,9 @@ service AdminAPI { // ResendReplicationTasks requests replication tasks from remote cluster and apply tasks to current cluster. rpc ResendReplicationTasks(ResendReplicationTasksRequest) returns (ResendReplicationTasksResponse); + + // GetCrossClusterTasks return cross cluster tasks based on cluster name. + rpc GetCrossClusterTasks(GetCrossClusterTasksRequest) returns (GetCrossClusterTasksResponse); } message DescribeWorkflowExecutionRequest { @@ -300,3 +303,12 @@ message ResendReplicationTasksRequest { message ResendReplicationTasksResponse { } + +message GetCrossClusterTasksRequest { + repeated int32 shard_ids = 1; + string target_cluster = 2; +} + +message GetCrossClusterTasksResponse { + map tasks_by_shard = 1; +} diff --git a/proto/internal/uber/cadence/history/v1/service.proto b/proto/internal/uber/cadence/history/v1/service.proto index 667b8e86b4b..d0fc75ffee4 100644 --- a/proto/internal/uber/cadence/history/v1/service.proto +++ b/proto/internal/uber/cadence/history/v1/service.proto @@ -215,6 +215,12 @@ service HistoryAPI { // NotifyFailoverMarkers sends failover marker to the failover coordinator. rpc NotifyFailoverMarkers(NotifyFailoverMarkersRequest) returns (NotifyFailoverMarkersResponse); + + // GetCrossClusterTasks return cross cluster tasks based on cluster name. + rpc GetCrossClusterTasks(GetCrossClusterTasksRequest) returns (GetCrossClusterTasksResponse); + + // RespondCrossClusterTasksCompleted responds the result of processing cross cluster tasks. + rpc RespondCrossClusterTasksCompleted(RespondCrossClusterTasksCompletedRequest) returns (RespondCrossClusterTasksCompletedResponse); } @@ -673,3 +679,22 @@ message NotifyFailoverMarkersRequest { message NotifyFailoverMarkersResponse { } + +message GetCrossClusterTasksRequest { + repeated int32 shard_ids = 1; + string target_cluster = 2; +} + +message GetCrossClusterTasksResponse { + map tasks_by_shard = 1; +} + +message RespondCrossClusterTasksCompletedRequest { + int32 shard_id = 1; + string target_cluster = 2; + repeated shared.v1.CrossClusterTaskResponse task_responses = 3; +} + +message RespondCrossClusterTasksCompletedResponse { + shared.v1.CrossClusterTaskRequests tasks = 1; +} diff --git a/proto/internal/uber/cadence/shared/v1/queue.proto b/proto/internal/uber/cadence/shared/v1/queue.proto index e884e1de276..00601cd7219 100644 --- a/proto/internal/uber/cadence/shared/v1/queue.proto +++ b/proto/internal/uber/cadence/shared/v1/queue.proto @@ -24,9 +24,103 @@ package uber.cadence.shared.v1; option go_package = "github.com/uber/cadence/.gen/proto/shared/v1;sharedv1"; +import "google/protobuf/timestamp.proto"; +import "uber/cadence/api/v1/common.proto"; +import "uber/cadence/api/v1/history.proto"; + enum TaskType { TASK_TYPE_INVALID = 0; TASK_TYPE_TRANSFER = 1; TASK_TYPE_TIMER = 2; TASK_TYPE_REPLICATION = 3; + // TODO: add TASK_TYPE_CROSS_CLUSTER + // when updating RemoveTask, Reset/DescribeQueue API + // for supporting cross cluster task queue +} + +enum CrossClusterTaskType { + CROSS_CLUSTER_TASK_TYPE_INVALID = 0; + CROSS_CLUSTER_TASK_TYPE_START_CHILD_EXECUTION = 1; + CROSS_CLUSTER_TASK_TYPE_CANCEL_EXECUTION = 2; + CROSS_CLUSTER_TASK_TYPE_SIGNAL_EXECUTION = 3; +} + +enum CrossClusterTaskFailedCause { + CROSS_CLUSTER_TASK_FAILED_CAUSE_INVALID = 0; + CROSS_CLUSTER_TASK_FAILED_CAUSE_DOMAIN_NOT_ACTIVE = 1; + CROSS_CLUSTER_TASK_FAILED_CAUSE_DOMAIN_NOT_EXISTS = 2; + CROSS_CLUSTER_TASK_FAILED_CAUSE_WORKFLOW_ALREADY_RUNNING = 3; + CROSS_CLUSTER_TASK_FAILED_CAUSE_WORKFLOW_NOT_EXISTS = 4; +} + +message CrossClusterTaskInfo { + string domain_id = 1; + api.v1.WorkflowExecution workflow_execution = 2; + CrossClusterTaskType task_type = 3; + int32 task_state = 4; + int64 task_id = 5; + google.protobuf.Timestamp visibilityTimestamp = 6; +} + +message CrossClusterStartChildExecutionRequestAttributes { + string target_domain_id = 1; + string request_id = 2; + int64 initiated_event_id = 3; + api.v1.StartChildWorkflowExecutionInitiatedEventAttributes initiated_event_attributes = 4; + // targetRunID is for scheduling first decision task + // targetWorkflowID is available in initiatedEventAttributes + string target_run_id = 5; +} + +message CrossClusterStartChildExecutionResponseAttributes { + string run_id = 1; +} + +message CrossClusterCancelExecutionRequestAttributes { + string target_domain_id = 1; + api.v1.WorkflowExecution target_workflow_execution = 2; + string request_id = 3; + int64 initiated_event_id = 4; + bool child_workflow_only = 5; +} + +message CrossClusterCancelExecutionResponseAttributes { +} + +message CrossClusterSignalExecutionRequestAttributes { + string target_domain_id = 1; + api.v1.WorkflowExecution target_workflow_execution = 2; + string request_id = 3; + int64 initiated_event_id = 4; + bool child_workflow_only = 5; + string signal_name = 6; + api.v1.Payload signal_input = 7; + bytes control = 8; +} + +message CrossClusterSignalExecutionResponseAttributes { +} + +message CrossClusterTaskRequest { + CrossClusterTaskInfo task_info = 1; + oneof attributes { + CrossClusterStartChildExecutionRequestAttributes startChildExecutionAttributes = 2; + CrossClusterCancelExecutionRequestAttributes cancelExecutionAttributes = 3; + CrossClusterSignalExecutionRequestAttributes signalExecutionAttributes = 4; + } +} + +message CrossClusterTaskResponse { + int64 task_id = 1; + CrossClusterTaskType task_type = 2; + CrossClusterTaskFailedCause failed_cause = 3; + oneof attributes { + CrossClusterStartChildExecutionResponseAttributes startChildExecutionAttributes = 4; + CrossClusterCancelExecutionResponseAttributes cancelExecutionAttributes = 5; + CrossClusterSignalExecutionResponseAttributes signalExecutionAttributes = 6; + } +} + +message CrossClusterTaskRequests { + repeated CrossClusterTaskRequest task_requests = 1; } \ No newline at end of file diff --git a/service/frontend/adminGrpcHandler.go b/service/frontend/adminGrpcHandler.go index bdf76de2544..26007376b40 100644 --- a/service/frontend/adminGrpcHandler.go +++ b/service/frontend/adminGrpcHandler.go @@ -26,6 +26,7 @@ import ( "go.uber.org/yarpc" adminv1 "github.com/uber/cadence/.gen/proto/admin/v1" + "github.com/uber/cadence/common/types" "github.com/uber/cadence/common/types/mapper/proto" ) @@ -135,3 +136,7 @@ func (g adminGRPCHandler) ResetQueue(ctx context.Context, request *adminv1.Reset err := g.h.ResetQueue(withGRPCTag(ctx), proto.ToAdminResetQueueRequest(request)) return &adminv1.ResetQueueResponse{}, proto.FromError(err) } + +func (g adminGRPCHandler) GetCrossClusterTasks(ctx context.Context, request *adminv1.GetCrossClusterTasksRequest) (*adminv1.GetCrossClusterTasksResponse, error) { + return nil, proto.FromError(types.InternalServiceError{Message: "not implemented"}) +} diff --git a/service/frontend/adminThriftHandler.go b/service/frontend/adminThriftHandler.go index b5c50c0f58b..c10c74fc877 100644 --- a/service/frontend/adminThriftHandler.go +++ b/service/frontend/adminThriftHandler.go @@ -29,6 +29,7 @@ import ( "github.com/uber/cadence/.gen/go/admin/adminserviceserver" "github.com/uber/cadence/.gen/go/replicator" "github.com/uber/cadence/.gen/go/shared" + "github.com/uber/cadence/common/types" "github.com/uber/cadence/common/types/mapper/thrift" ) @@ -159,3 +160,8 @@ func (t AdminThriftHandler) ResetQueue(ctx context.Context, request *shared.Rese err := t.h.ResetQueue(withThriftTag(ctx), thrift.ToResetQueueRequest(request)) return thrift.FromError(err) } + +// GetCrossClusterTasks fetches cross cluster tasks +func (t AdminThriftHandler) GetCrossClusterTasks(ctx context.Context, request *shared.GetCrossClusterTasksRequest) (*shared.GetCrossClusterTasksResponse, error) { + return nil, thrift.FromError(types.InternalServiceError{Message: "not implemented"}) +} diff --git a/service/frontend/workflowHandler.go b/service/frontend/workflowHandler.go index 282c36221b2..09698651586 100644 --- a/service/frontend/workflowHandler.go +++ b/service/frontend/workflowHandler.go @@ -46,7 +46,7 @@ import ( "github.com/uber/cadence/common/messaging" "github.com/uber/cadence/common/metrics" "github.com/uber/cadence/common/persistence" - "github.com/uber/cadence/common/persistence/persistence-utils" + persistenceutils "github.com/uber/cadence/common/persistence/persistence-utils" "github.com/uber/cadence/common/quotas" "github.com/uber/cadence/common/resource" "github.com/uber/cadence/common/types" diff --git a/service/history/execution/state_rebuilder.go b/service/history/execution/state_rebuilder.go index a4ea6897eed..2b85721c399 100644 --- a/service/history/execution/state_rebuilder.go +++ b/service/history/execution/state_rebuilder.go @@ -36,7 +36,7 @@ import ( "github.com/uber/cadence/common/log" "github.com/uber/cadence/common/log/tag" "github.com/uber/cadence/common/persistence" - "github.com/uber/cadence/common/persistence/persistence-utils" + persistenceutils "github.com/uber/cadence/common/persistence/persistence-utils" "github.com/uber/cadence/common/types" "github.com/uber/cadence/service/history/shard" ) diff --git a/service/history/grpcHandler.go b/service/history/grpcHandler.go index 215279dc8c0..fce2fb58dcf 100644 --- a/service/history/grpcHandler.go +++ b/service/history/grpcHandler.go @@ -28,6 +28,7 @@ import ( apiv1 "github.com/uber/cadence/.gen/proto/api/v1" historyv1 "github.com/uber/cadence/.gen/proto/history/v1" "github.com/uber/cadence/common/metrics" + "github.com/uber/cadence/common/types" "github.com/uber/cadence/common/types/mapper/proto" ) @@ -74,6 +75,10 @@ func (g grpcHandler) DescribeWorkflowExecution(ctx context.Context, request *his return proto.FromHistoryDescribeWorkflowExecutionResponse(response), proto.FromError(err) } +func (g grpcHandler) GetCrossClusterTasks(ctx context.Context, request *historyv1.GetCrossClusterTasksRequest) (*historyv1.GetCrossClusterTasksResponse, error) { + return nil, proto.FromError(types.InternalServiceError{Message: "not implemented"}) +} + func (g grpcHandler) GetDLQReplicationMessages(ctx context.Context, request *historyv1.GetDLQReplicationMessagesRequest) (*historyv1.GetDLQReplicationMessagesResponse, error) { response, err := g.h.GetDLQReplicationMessages(withGRPCTag(ctx), proto.ToHistoryGetDLQReplicationMessagesRequest(request)) return proto.FromHistoryGetDLQReplicationMessagesResponse(response), proto.FromError(err) @@ -199,6 +204,10 @@ func (g grpcHandler) RespondActivityTaskFailed(ctx context.Context, request *his return &historyv1.RespondActivityTaskFailedResponse{}, proto.FromError(err) } +func (g grpcHandler) RespondCrossClusterTasksCompleted(ctx context.Context, request *historyv1.RespondCrossClusterTasksCompletedRequest) (*historyv1.RespondCrossClusterTasksCompletedResponse, error) { + return nil, proto.FromError(types.InternalServiceError{Message: "not implemented"}) +} + func (g grpcHandler) RespondDecisionTaskCompleted(ctx context.Context, request *historyv1.RespondDecisionTaskCompletedRequest) (*historyv1.RespondDecisionTaskCompletedResponse, error) { response, err := g.h.RespondDecisionTaskCompleted(withGRPCTag(ctx), proto.ToHistoryRespondDecisionTaskCompletedRequest(request)) return proto.FromHistoryRespondDecisionTaskCompletedResponse(response), proto.FromError(err) diff --git a/service/history/replication/task_ack_manager.go b/service/history/replication/task_ack_manager.go index bb900eda0bd..3025043618f 100644 --- a/service/history/replication/task_ack_manager.go +++ b/service/history/replication/task_ack_manager.go @@ -40,7 +40,7 @@ import ( "github.com/uber/cadence/common/log/tag" "github.com/uber/cadence/common/metrics" "github.com/uber/cadence/common/persistence" - "github.com/uber/cadence/common/persistence/persistence-utils" + persistenceutils "github.com/uber/cadence/common/persistence/persistence-utils" "github.com/uber/cadence/common/quotas" "github.com/uber/cadence/common/types" exec "github.com/uber/cadence/service/history/execution" diff --git a/service/history/reset/resetter.go b/service/history/reset/resetter.go index 47fdb53be4b..2930f716b96 100644 --- a/service/history/reset/resetter.go +++ b/service/history/reset/resetter.go @@ -33,7 +33,7 @@ import ( "github.com/uber/cadence/common/definition" "github.com/uber/cadence/common/log" "github.com/uber/cadence/common/persistence" - "github.com/uber/cadence/common/persistence/persistence-utils" + persistenceutils "github.com/uber/cadence/common/persistence/persistence-utils" "github.com/uber/cadence/common/types" "github.com/uber/cadence/service/history/execution" "github.com/uber/cadence/service/history/shard" diff --git a/service/history/thriftHandler.go b/service/history/thriftHandler.go index 4432cb75fb0..0bcb3fcce5a 100644 --- a/service/history/thriftHandler.go +++ b/service/history/thriftHandler.go @@ -32,6 +32,7 @@ import ( "github.com/uber/cadence/.gen/go/replicator" "github.com/uber/cadence/.gen/go/shared" "github.com/uber/cadence/common/metrics" + "github.com/uber/cadence/common/types" "github.com/uber/cadence/common/types/mapper/thrift" ) @@ -86,6 +87,11 @@ func (t ThriftHandler) DescribeWorkflowExecution(ctx context.Context, request *h return thrift.FromDescribeWorkflowExecutionResponse(response), thrift.FromError(err) } +// GetCrossClusterTasks fetches cross cluster tasks +func (t ThriftHandler) GetCrossClusterTasks(ctx context.Context, request *shared.GetCrossClusterTasksRequest) (*shared.GetCrossClusterTasksResponse, error) { + return nil, thrift.FromError(types.InternalServiceError{Message: "not implemented"}) +} + // GetDLQReplicationMessages forwards request to the underlying handler func (t ThriftHandler) GetDLQReplicationMessages(ctx context.Context, request *replicator.GetDLQReplicationMessagesRequest) (*replicator.GetDLQReplicationMessagesResponse, error) { response, err := t.h.GetDLQReplicationMessages(withThriftTag(ctx), thrift.ToGetDLQReplicationMessagesRequest(request)) @@ -236,6 +242,11 @@ func (t ThriftHandler) RespondActivityTaskFailed(ctx context.Context, request *h return thrift.FromError(err) } +// RespondCrossClusterTasksCompleted responds the result of processing cross cluster tasks +func (t ThriftHandler) RespondCrossClusterTasksCompleted(ctx context.Context, request *shared.RespondCrossClusterTasksCompletedRequest) (*shared.RespondCrossClusterTasksCompletedResponse, error) { + return nil, thrift.FromError(types.InternalServiceError{Message: "not implemented"}) +} + // RespondDecisionTaskCompleted forwards request to the underlying handler func (t ThriftHandler) RespondDecisionTaskCompleted(ctx context.Context, request *h.RespondDecisionTaskCompletedRequest) (*h.RespondDecisionTaskCompletedResponse, error) { response, err := t.h.RespondDecisionTaskCompleted(withThriftTag(ctx), thrift.ToHistoryRespondDecisionTaskCompletedRequest(request))